@itwin/core-react 4.14.1 → 4.15.1

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 (524) hide show
  1. package/CHANGELOG.md +27 -1
  2. package/lib/cjs/core-react/UiCore.d.ts +1 -1
  3. package/lib/cjs/core-react/UiCore.js +1 -1
  4. package/lib/cjs/core-react/UiCore.js.map +1 -1
  5. package/lib/cjs/core-react/autosuggest/AutoSuggest.d.ts.map +1 -1
  6. package/lib/cjs/core-react/autosuggest/AutoSuggest.js.map +1 -1
  7. package/lib/cjs/core-react/base/Centered.d.ts +1 -1
  8. package/lib/cjs/core-react/base/Centered.d.ts.map +1 -1
  9. package/lib/cjs/core-react/base/Centered.js +2 -1
  10. package/lib/cjs/core-react/base/Centered.js.map +1 -1
  11. package/lib/cjs/core-react/base/Div.d.ts +2 -2
  12. package/lib/cjs/core-react/base/Div.d.ts.map +1 -1
  13. package/lib/cjs/core-react/base/Div.js +1 -1
  14. package/lib/cjs/core-react/base/Div.js.map +1 -1
  15. package/lib/cjs/core-react/base/DivWithOutsideClick.d.ts +1 -1
  16. package/lib/cjs/core-react/base/DivWithOutsideClick.d.ts.map +1 -1
  17. package/lib/cjs/core-react/base/DivWithOutsideClick.js +4 -2
  18. package/lib/cjs/core-react/base/DivWithOutsideClick.js.map +1 -1
  19. package/lib/cjs/core-react/base/FillCentered.d.ts +1 -1
  20. package/lib/cjs/core-react/base/FillCentered.d.ts.map +1 -1
  21. package/lib/cjs/core-react/base/FillCentered.js +2 -1
  22. package/lib/cjs/core-react/base/FillCentered.js.map +1 -1
  23. package/lib/cjs/core-react/base/FlexWrapContainer.d.ts +1 -1
  24. package/lib/cjs/core-react/base/FlexWrapContainer.d.ts.map +1 -1
  25. package/lib/cjs/core-react/base/FlexWrapContainer.js +2 -1
  26. package/lib/cjs/core-react/base/FlexWrapContainer.js.map +1 -1
  27. package/lib/cjs/core-react/base/Gap.d.ts +2 -2
  28. package/lib/cjs/core-react/base/Gap.d.ts.map +1 -1
  29. package/lib/cjs/core-react/base/Gap.js +1 -1
  30. package/lib/cjs/core-react/base/Gap.js.map +1 -1
  31. package/lib/cjs/core-react/base/ScrollView.d.ts +1 -1
  32. package/lib/cjs/core-react/base/ScrollView.d.ts.map +1 -1
  33. package/lib/cjs/core-react/base/ScrollView.js +2 -1
  34. package/lib/cjs/core-react/base/ScrollView.js.map +1 -1
  35. package/lib/cjs/core-react/button/UnderlinedButton.d.ts +2 -2
  36. package/lib/cjs/core-react/button/UnderlinedButton.js +1 -1
  37. package/lib/cjs/core-react/button/UnderlinedButton.js.map +1 -1
  38. package/lib/cjs/core-react/checklistbox/CheckListBox.d.ts +4 -4
  39. package/lib/cjs/core-react/checklistbox/CheckListBox.d.ts.map +1 -1
  40. package/lib/cjs/core-react/checklistbox/CheckListBox.js +3 -3
  41. package/lib/cjs/core-react/checklistbox/CheckListBox.js.map +1 -1
  42. package/lib/cjs/core-react/contextmenu/ContextMenu.d.ts.map +1 -1
  43. package/lib/cjs/core-react/contextmenu/ContextMenu.js.map +1 -1
  44. package/lib/cjs/core-react/contextmenu/ContextMenuDivider.d.ts.map +1 -1
  45. package/lib/cjs/core-react/contextmenu/ContextMenuDivider.js +1 -0
  46. package/lib/cjs/core-react/contextmenu/ContextMenuDivider.js.map +1 -1
  47. package/lib/cjs/core-react/contextmenu/ContextMenuItem.d.ts.map +1 -1
  48. package/lib/cjs/core-react/contextmenu/ContextMenuItem.js.map +1 -1
  49. package/lib/cjs/core-react/contextmenu/ContextSubMenu.d.ts.map +1 -1
  50. package/lib/cjs/core-react/contextmenu/ContextSubMenu.js.map +1 -1
  51. package/lib/cjs/core-react/contextmenu/PopupContextMenu.d.ts.map +1 -1
  52. package/lib/cjs/core-react/contextmenu/PopupContextMenu.js +3 -1
  53. package/lib/cjs/core-react/contextmenu/PopupContextMenu.js.map +1 -1
  54. package/lib/cjs/core-react/dialog/Dialog.d.ts +4 -5
  55. package/lib/cjs/core-react/dialog/Dialog.d.ts.map +1 -1
  56. package/lib/cjs/core-react/dialog/Dialog.js +3 -3
  57. package/lib/cjs/core-react/dialog/Dialog.js.map +1 -1
  58. package/lib/cjs/core-react/dialog/GlobalDialog.d.ts +3 -3
  59. package/lib/cjs/core-react/dialog/GlobalDialog.js +1 -1
  60. package/lib/cjs/core-react/dialog/GlobalDialog.js.map +1 -1
  61. package/lib/cjs/core-react/elementseparator/ElementSeparator.d.ts +3 -3
  62. package/lib/cjs/core-react/elementseparator/ElementSeparator.d.ts.map +1 -1
  63. package/lib/cjs/core-react/elementseparator/ElementSeparator.js +1 -1
  64. package/lib/cjs/core-react/elementseparator/ElementSeparator.js.map +1 -1
  65. package/lib/cjs/core-react/enums/Alignment.d.ts +2 -0
  66. package/lib/cjs/core-react/enums/Alignment.d.ts.map +1 -1
  67. package/lib/cjs/core-react/enums/Alignment.js +2 -0
  68. package/lib/cjs/core-react/enums/Alignment.js.map +1 -1
  69. package/lib/cjs/core-react/enums/CheckBoxState.d.ts +1 -0
  70. package/lib/cjs/core-react/enums/CheckBoxState.d.ts.map +1 -1
  71. package/lib/cjs/core-react/enums/CheckBoxState.js.map +1 -1
  72. package/lib/cjs/core-react/enums/SortDirection.d.ts +1 -0
  73. package/lib/cjs/core-react/enums/SortDirection.d.ts.map +1 -1
  74. package/lib/cjs/core-react/enums/SortDirection.js +1 -0
  75. package/lib/cjs/core-react/enums/SortDirection.js.map +1 -1
  76. package/lib/cjs/core-react/expandable/ExpandableList.d.ts +2 -2
  77. package/lib/cjs/core-react/expandable/ExpandableList.d.ts.map +1 -1
  78. package/lib/cjs/core-react/expandable/ExpandableList.js +1 -1
  79. package/lib/cjs/core-react/expandable/ExpandableList.js.map +1 -1
  80. package/lib/cjs/core-react/hocs/withIsPressed.d.ts +2 -0
  81. package/lib/cjs/core-react/hocs/withIsPressed.d.ts.map +1 -1
  82. package/lib/cjs/core-react/hocs/withIsPressed.js +1 -0
  83. package/lib/cjs/core-react/hocs/withIsPressed.js.map +1 -1
  84. package/lib/cjs/core-react/hocs/withOnOutsideClick.d.ts +2 -0
  85. package/lib/cjs/core-react/hocs/withOnOutsideClick.d.ts.map +1 -1
  86. package/lib/cjs/core-react/hocs/withOnOutsideClick.js +1 -0
  87. package/lib/cjs/core-react/hocs/withOnOutsideClick.js.map +1 -1
  88. package/lib/cjs/core-react/hocs/withTimeout.d.ts +2 -0
  89. package/lib/cjs/core-react/hocs/withTimeout.d.ts.map +1 -1
  90. package/lib/cjs/core-react/hocs/withTimeout.js +4 -1
  91. package/lib/cjs/core-react/hocs/withTimeout.js.map +1 -1
  92. package/lib/cjs/core-react/icons/ConditionalIconItem.d.ts +0 -4
  93. package/lib/cjs/core-react/icons/ConditionalIconItem.d.ts.map +1 -1
  94. package/lib/cjs/core-react/icons/ConditionalIconItem.js +2 -13
  95. package/lib/cjs/core-react/icons/ConditionalIconItem.js.map +1 -1
  96. package/lib/cjs/core-react/icons/IconComponent.d.ts.map +1 -1
  97. package/lib/cjs/core-react/icons/IconComponent.js +1 -1
  98. package/lib/cjs/core-react/icons/IconComponent.js.map +1 -1
  99. package/lib/cjs/core-react/icons/SvgPath.d.ts +2 -0
  100. package/lib/cjs/core-react/icons/SvgPath.d.ts.map +1 -1
  101. package/lib/cjs/core-react/icons/SvgPath.js +2 -0
  102. package/lib/cjs/core-react/icons/SvgPath.js.map +1 -1
  103. package/lib/cjs/core-react/icons/WebFontIcon.d.ts +2 -0
  104. package/lib/cjs/core-react/icons/WebFontIcon.d.ts.map +1 -1
  105. package/lib/cjs/core-react/icons/WebFontIcon.js +2 -0
  106. package/lib/cjs/core-react/icons/WebFontIcon.js.map +1 -1
  107. package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.d.ts +2 -2
  108. package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.d.ts.map +1 -1
  109. package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.js +1 -1
  110. package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.js.map +1 -1
  111. package/lib/cjs/core-react/inputs/Input.d.ts.map +1 -1
  112. package/lib/cjs/core-react/inputs/Input.js.map +1 -1
  113. package/lib/cjs/core-react/inputs/InputLabel.d.ts +2 -2
  114. package/lib/cjs/core-react/inputs/InputLabel.d.ts.map +1 -1
  115. package/lib/cjs/core-react/inputs/InputLabel.js +1 -1
  116. package/lib/cjs/core-react/inputs/InputLabel.js.map +1 -1
  117. package/lib/cjs/core-react/inputs/InputStatus.d.ts +1 -1
  118. package/lib/cjs/core-react/inputs/InputStatus.js +1 -1
  119. package/lib/cjs/core-react/inputs/InputStatus.js.map +1 -1
  120. package/lib/cjs/core-react/inputs/LabeledComponentProps.d.ts +2 -2
  121. package/lib/cjs/core-react/inputs/LabeledComponentProps.js.map +1 -1
  122. package/lib/cjs/core-react/inputs/iconinput/IconInput.d.ts +2 -2
  123. package/lib/cjs/core-react/inputs/iconinput/IconInput.js +1 -1
  124. package/lib/cjs/core-react/inputs/iconinput/IconInput.js.map +1 -1
  125. package/lib/cjs/core-react/inputs/numberinput/NumberInput.d.ts +3 -3
  126. package/lib/cjs/core-react/inputs/numberinput/NumberInput.js +1 -1
  127. package/lib/cjs/core-react/inputs/numberinput/NumberInput.js.map +1 -1
  128. package/lib/cjs/core-react/listbox/Listbox.d.ts +7 -7
  129. package/lib/cjs/core-react/listbox/Listbox.js +3 -3
  130. package/lib/cjs/core-react/listbox/Listbox.js.map +1 -1
  131. package/lib/cjs/core-react/loading/LoadingBar.d.ts +2 -2
  132. package/lib/cjs/core-react/loading/LoadingBar.js +1 -1
  133. package/lib/cjs/core-react/loading/LoadingBar.js.map +1 -1
  134. package/lib/cjs/core-react/loading/LoadingPrompt.d.ts +2 -2
  135. package/lib/cjs/core-react/loading/LoadingPrompt.js +1 -1
  136. package/lib/cjs/core-react/loading/LoadingPrompt.js.map +1 -1
  137. package/lib/cjs/core-react/loading/LoadingSpinner.d.ts +3 -3
  138. package/lib/cjs/core-react/loading/LoadingSpinner.js +1 -1
  139. package/lib/cjs/core-react/loading/LoadingSpinner.js.map +1 -1
  140. package/lib/cjs/core-react/loading/LoadingStatus.d.ts +2 -2
  141. package/lib/cjs/core-react/loading/LoadingStatus.js +1 -1
  142. package/lib/cjs/core-react/loading/LoadingStatus.js.map +1 -1
  143. package/lib/cjs/core-react/messagebox/MessageBox.d.ts +5 -1
  144. package/lib/cjs/core-react/messagebox/MessageBox.d.ts.map +1 -1
  145. package/lib/cjs/core-react/messagebox/MessageBox.js +8 -1
  146. package/lib/cjs/core-react/messagebox/MessageBox.js.map +1 -1
  147. package/lib/cjs/core-react/notification/MessageRenderer.d.ts +2 -0
  148. package/lib/cjs/core-react/notification/MessageRenderer.d.ts.map +1 -1
  149. package/lib/cjs/core-react/notification/MessageRenderer.js +2 -0
  150. package/lib/cjs/core-react/notification/MessageRenderer.js.map +1 -1
  151. package/lib/cjs/core-react/notification/MessageType.d.ts +2 -0
  152. package/lib/cjs/core-react/notification/MessageType.d.ts.map +1 -1
  153. package/lib/cjs/core-react/notification/MessageType.js.map +1 -1
  154. package/lib/cjs/core-react/popup/Popup.d.ts +6 -1
  155. package/lib/cjs/core-react/popup/Popup.d.ts.map +1 -1
  156. package/lib/cjs/core-react/popup/Popup.js +9 -2
  157. package/lib/cjs/core-react/popup/Popup.js.map +1 -1
  158. package/lib/cjs/core-react/radialmenu/RadialMenu.d.ts +4 -4
  159. package/lib/cjs/core-react/radialmenu/RadialMenu.js +2 -2
  160. package/lib/cjs/core-react/radialmenu/RadialMenu.js.map +1 -1
  161. package/lib/cjs/core-react/searchbox/SearchBox.d.ts +2 -2
  162. package/lib/cjs/core-react/searchbox/SearchBox.js +1 -1
  163. package/lib/cjs/core-react/searchbox/SearchBox.js.map +1 -1
  164. package/lib/cjs/core-react/settings/SettingsManager.d.ts +8 -8
  165. package/lib/cjs/core-react/settings/SettingsManager.js +4 -4
  166. package/lib/cjs/core-react/settings/SettingsManager.js.map +1 -1
  167. package/lib/cjs/core-react/tabs/Tabs.d.ts +4 -4
  168. package/lib/cjs/core-react/tabs/Tabs.js +1 -1
  169. package/lib/cjs/core-react/tabs/Tabs.js.map +1 -1
  170. package/lib/cjs/core-react/tabs/VerticalTabs.d.ts +1 -1
  171. package/lib/cjs/core-react/tabs/VerticalTabs.js +1 -1
  172. package/lib/cjs/core-react/tabs/VerticalTabs.js.map +1 -1
  173. package/lib/cjs/core-react/text/BlockText.d.ts +1 -1
  174. package/lib/cjs/core-react/text/BlockText.js +1 -1
  175. package/lib/cjs/core-react/text/BlockText.js.map +1 -1
  176. package/lib/cjs/core-react/text/BodyText.d.ts +1 -1
  177. package/lib/cjs/core-react/text/BodyText.js +1 -1
  178. package/lib/cjs/core-react/text/BodyText.js.map +1 -1
  179. package/lib/cjs/core-react/text/DisabledText.d.ts +1 -1
  180. package/lib/cjs/core-react/text/DisabledText.js +1 -1
  181. package/lib/cjs/core-react/text/DisabledText.js.map +1 -1
  182. package/lib/cjs/core-react/text/FilteredText.d.ts +2 -0
  183. package/lib/cjs/core-react/text/FilteredText.d.ts.map +1 -1
  184. package/lib/cjs/core-react/text/FilteredText.js +2 -0
  185. package/lib/cjs/core-react/text/FilteredText.js.map +1 -1
  186. package/lib/cjs/core-react/text/MutedText.d.ts +1 -1
  187. package/lib/cjs/core-react/text/MutedText.js +1 -1
  188. package/lib/cjs/core-react/text/MutedText.js.map +1 -1
  189. package/lib/cjs/core-react/text/StyledText.d.ts +2 -2
  190. package/lib/cjs/core-react/text/StyledText.js +1 -1
  191. package/lib/cjs/core-react/text/StyledText.js.map +1 -1
  192. package/lib/cjs/core-react/text/TextProps.d.ts +1 -1
  193. package/lib/cjs/core-react/text/TextProps.js.map +1 -1
  194. package/lib/cjs/core-react/tree/Branch.d.ts +2 -0
  195. package/lib/cjs/core-react/tree/Branch.d.ts.map +1 -1
  196. package/lib/cjs/core-react/tree/Branch.js +2 -0
  197. package/lib/cjs/core-react/tree/Branch.js.map +1 -1
  198. package/lib/cjs/core-react/tree/ExpansionToggle.d.ts +2 -0
  199. package/lib/cjs/core-react/tree/ExpansionToggle.d.ts.map +1 -1
  200. package/lib/cjs/core-react/tree/ExpansionToggle.js +2 -0
  201. package/lib/cjs/core-react/tree/ExpansionToggle.js.map +1 -1
  202. package/lib/cjs/core-react/tree/Node.d.ts +3 -3
  203. package/lib/cjs/core-react/tree/Node.d.ts.map +1 -1
  204. package/lib/cjs/core-react/tree/Node.js +6 -1
  205. package/lib/cjs/core-react/tree/Node.js.map +1 -1
  206. package/lib/cjs/core-react/tree/Placeholder.d.ts +2 -0
  207. package/lib/cjs/core-react/tree/Placeholder.d.ts.map +1 -1
  208. package/lib/cjs/core-react/tree/Placeholder.js +2 -0
  209. package/lib/cjs/core-react/tree/Placeholder.js.map +1 -1
  210. package/lib/cjs/core-react/tree/Tree.d.ts +2 -0
  211. package/lib/cjs/core-react/tree/Tree.d.ts.map +1 -1
  212. package/lib/cjs/core-react/tree/Tree.js +2 -0
  213. package/lib/cjs/core-react/tree/Tree.js.map +1 -1
  214. package/lib/cjs/core-react/utils/IconHelper.d.ts +1 -0
  215. package/lib/cjs/core-react/utils/IconHelper.d.ts.map +1 -1
  216. package/lib/cjs/core-react/utils/IconHelper.js +4 -2
  217. package/lib/cjs/core-react/utils/IconHelper.js.map +1 -1
  218. package/lib/cjs/core-react/utils/Props.d.ts +5 -1
  219. package/lib/cjs/core-react/utils/Props.d.ts.map +1 -1
  220. package/lib/cjs/core-react/utils/Props.js.map +1 -1
  221. package/lib/cjs/core-react/utils/ScrollPositionMaintainer.d.ts +1 -0
  222. package/lib/cjs/core-react/utils/ScrollPositionMaintainer.d.ts.map +1 -1
  223. package/lib/cjs/core-react/utils/ScrollPositionMaintainer.js +3 -0
  224. package/lib/cjs/core-react/utils/ScrollPositionMaintainer.js.map +1 -1
  225. package/lib/cjs/core-react/utils/Timer.d.ts +2 -0
  226. package/lib/cjs/core-react/utils/Timer.d.ts.map +1 -1
  227. package/lib/cjs/core-react/utils/Timer.js +2 -0
  228. package/lib/cjs/core-react/utils/Timer.js.map +1 -1
  229. package/lib/cjs/core-react/utils/getCssVariable.d.ts +2 -0
  230. package/lib/cjs/core-react/utils/getCssVariable.d.ts.map +1 -1
  231. package/lib/cjs/core-react/utils/getCssVariable.js +3 -0
  232. package/lib/cjs/core-react/utils/getCssVariable.js.map +1 -1
  233. package/lib/cjs/core-react/utils/hooks/useCrossOriginPopup.d.ts.map +1 -1
  234. package/lib/cjs/core-react/utils/hooks/useCrossOriginPopup.js +1 -0
  235. package/lib/cjs/core-react/utils/hooks/useCrossOriginPopup.js.map +1 -1
  236. package/lib/cjs/core-react/utils/hooks/useDisposable.d.ts +1 -0
  237. package/lib/cjs/core-react/utils/hooks/useDisposable.d.ts.map +1 -1
  238. package/lib/cjs/core-react/utils/hooks/useDisposable.js +1 -0
  239. package/lib/cjs/core-react/utils/hooks/useDisposable.js.map +1 -1
  240. package/lib/cjs/core-react/utils/hooks/useEffectSkipFirst.d.ts +1 -0
  241. package/lib/cjs/core-react/utils/hooks/useEffectSkipFirst.d.ts.map +1 -1
  242. package/lib/cjs/core-react/utils/hooks/useEffectSkipFirst.js +1 -0
  243. package/lib/cjs/core-react/utils/hooks/useEffectSkipFirst.js.map +1 -1
  244. package/lib/cjs/core-react/utils/hooks/useInterval.d.ts +1 -0
  245. package/lib/cjs/core-react/utils/hooks/useInterval.d.ts.map +1 -1
  246. package/lib/cjs/core-react/utils/hooks/useInterval.js +1 -0
  247. package/lib/cjs/core-react/utils/hooks/useInterval.js.map +1 -1
  248. package/lib/cjs/core-react/utils/hooks/useOnOutsideClick.d.ts +5 -1
  249. package/lib/cjs/core-react/utils/hooks/useOnOutsideClick.d.ts.map +1 -1
  250. package/lib/cjs/core-react/utils/hooks/useOnOutsideClick.js +1 -0
  251. package/lib/cjs/core-react/utils/hooks/useOnOutsideClick.js.map +1 -1
  252. package/lib/cjs/core-react/utils/hooks/useResizeObserver.d.ts +2 -0
  253. package/lib/cjs/core-react/utils/hooks/useResizeObserver.d.ts.map +1 -1
  254. package/lib/cjs/core-react/utils/hooks/useResizeObserver.js +2 -0
  255. package/lib/cjs/core-react/utils/hooks/useResizeObserver.js.map +1 -1
  256. package/lib/cjs/core-react/utils/typeUtils.d.ts +1 -0
  257. package/lib/cjs/core-react/utils/typeUtils.d.ts.map +1 -1
  258. package/lib/cjs/core-react/utils/typeUtils.js.map +1 -1
  259. package/lib/cjs/core-react.d.ts +0 -1
  260. package/lib/cjs/core-react.d.ts.map +1 -1
  261. package/lib/cjs/core-react.js +2 -1
  262. package/lib/cjs/core-react.js.map +1 -1
  263. package/lib/esm/core-react/UiCore.d.ts +1 -1
  264. package/lib/esm/core-react/UiCore.js +1 -1
  265. package/lib/esm/core-react/UiCore.js.map +1 -1
  266. package/lib/esm/core-react/autosuggest/AutoSuggest.d.ts.map +1 -1
  267. package/lib/esm/core-react/autosuggest/AutoSuggest.js.map +1 -1
  268. package/lib/esm/core-react/base/Centered.d.ts +1 -1
  269. package/lib/esm/core-react/base/Centered.d.ts.map +1 -1
  270. package/lib/esm/core-react/base/Centered.js +2 -1
  271. package/lib/esm/core-react/base/Centered.js.map +1 -1
  272. package/lib/esm/core-react/base/Div.d.ts +2 -2
  273. package/lib/esm/core-react/base/Div.d.ts.map +1 -1
  274. package/lib/esm/core-react/base/Div.js +1 -1
  275. package/lib/esm/core-react/base/Div.js.map +1 -1
  276. package/lib/esm/core-react/base/DivWithOutsideClick.d.ts +1 -1
  277. package/lib/esm/core-react/base/DivWithOutsideClick.d.ts.map +1 -1
  278. package/lib/esm/core-react/base/DivWithOutsideClick.js +4 -2
  279. package/lib/esm/core-react/base/DivWithOutsideClick.js.map +1 -1
  280. package/lib/esm/core-react/base/FillCentered.d.ts +1 -1
  281. package/lib/esm/core-react/base/FillCentered.d.ts.map +1 -1
  282. package/lib/esm/core-react/base/FillCentered.js +2 -1
  283. package/lib/esm/core-react/base/FillCentered.js.map +1 -1
  284. package/lib/esm/core-react/base/FlexWrapContainer.d.ts +1 -1
  285. package/lib/esm/core-react/base/FlexWrapContainer.d.ts.map +1 -1
  286. package/lib/esm/core-react/base/FlexWrapContainer.js +2 -1
  287. package/lib/esm/core-react/base/FlexWrapContainer.js.map +1 -1
  288. package/lib/esm/core-react/base/Gap.d.ts +2 -2
  289. package/lib/esm/core-react/base/Gap.d.ts.map +1 -1
  290. package/lib/esm/core-react/base/Gap.js +1 -1
  291. package/lib/esm/core-react/base/Gap.js.map +1 -1
  292. package/lib/esm/core-react/base/ScrollView.d.ts +1 -1
  293. package/lib/esm/core-react/base/ScrollView.d.ts.map +1 -1
  294. package/lib/esm/core-react/base/ScrollView.js +2 -1
  295. package/lib/esm/core-react/base/ScrollView.js.map +1 -1
  296. package/lib/esm/core-react/button/UnderlinedButton.d.ts +2 -2
  297. package/lib/esm/core-react/button/UnderlinedButton.js +1 -1
  298. package/lib/esm/core-react/button/UnderlinedButton.js.map +1 -1
  299. package/lib/esm/core-react/checklistbox/CheckListBox.d.ts +4 -4
  300. package/lib/esm/core-react/checklistbox/CheckListBox.d.ts.map +1 -1
  301. package/lib/esm/core-react/checklistbox/CheckListBox.js +3 -3
  302. package/lib/esm/core-react/checklistbox/CheckListBox.js.map +1 -1
  303. package/lib/esm/core-react/contextmenu/ContextMenu.d.ts.map +1 -1
  304. package/lib/esm/core-react/contextmenu/ContextMenu.js.map +1 -1
  305. package/lib/esm/core-react/contextmenu/ContextMenuDivider.d.ts.map +1 -1
  306. package/lib/esm/core-react/contextmenu/ContextMenuDivider.js +1 -0
  307. package/lib/esm/core-react/contextmenu/ContextMenuDivider.js.map +1 -1
  308. package/lib/esm/core-react/contextmenu/ContextMenuItem.d.ts.map +1 -1
  309. package/lib/esm/core-react/contextmenu/ContextMenuItem.js.map +1 -1
  310. package/lib/esm/core-react/contextmenu/ContextSubMenu.d.ts.map +1 -1
  311. package/lib/esm/core-react/contextmenu/ContextSubMenu.js.map +1 -1
  312. package/lib/esm/core-react/contextmenu/PopupContextMenu.d.ts.map +1 -1
  313. package/lib/esm/core-react/contextmenu/PopupContextMenu.js +3 -1
  314. package/lib/esm/core-react/contextmenu/PopupContextMenu.js.map +1 -1
  315. package/lib/esm/core-react/dialog/Dialog.d.ts +4 -5
  316. package/lib/esm/core-react/dialog/Dialog.d.ts.map +1 -1
  317. package/lib/esm/core-react/dialog/Dialog.js +3 -3
  318. package/lib/esm/core-react/dialog/Dialog.js.map +1 -1
  319. package/lib/esm/core-react/dialog/GlobalDialog.d.ts +3 -3
  320. package/lib/esm/core-react/dialog/GlobalDialog.js +1 -1
  321. package/lib/esm/core-react/dialog/GlobalDialog.js.map +1 -1
  322. package/lib/esm/core-react/elementseparator/ElementSeparator.d.ts +3 -3
  323. package/lib/esm/core-react/elementseparator/ElementSeparator.d.ts.map +1 -1
  324. package/lib/esm/core-react/elementseparator/ElementSeparator.js +1 -1
  325. package/lib/esm/core-react/elementseparator/ElementSeparator.js.map +1 -1
  326. package/lib/esm/core-react/enums/Alignment.d.ts +2 -0
  327. package/lib/esm/core-react/enums/Alignment.d.ts.map +1 -1
  328. package/lib/esm/core-react/enums/Alignment.js +2 -0
  329. package/lib/esm/core-react/enums/Alignment.js.map +1 -1
  330. package/lib/esm/core-react/enums/CheckBoxState.d.ts +1 -0
  331. package/lib/esm/core-react/enums/CheckBoxState.d.ts.map +1 -1
  332. package/lib/esm/core-react/enums/CheckBoxState.js.map +1 -1
  333. package/lib/esm/core-react/enums/SortDirection.d.ts +1 -0
  334. package/lib/esm/core-react/enums/SortDirection.d.ts.map +1 -1
  335. package/lib/esm/core-react/enums/SortDirection.js +1 -0
  336. package/lib/esm/core-react/enums/SortDirection.js.map +1 -1
  337. package/lib/esm/core-react/expandable/ExpandableList.d.ts +2 -2
  338. package/lib/esm/core-react/expandable/ExpandableList.d.ts.map +1 -1
  339. package/lib/esm/core-react/expandable/ExpandableList.js +1 -1
  340. package/lib/esm/core-react/expandable/ExpandableList.js.map +1 -1
  341. package/lib/esm/core-react/hocs/withIsPressed.d.ts +2 -0
  342. package/lib/esm/core-react/hocs/withIsPressed.d.ts.map +1 -1
  343. package/lib/esm/core-react/hocs/withIsPressed.js +1 -0
  344. package/lib/esm/core-react/hocs/withIsPressed.js.map +1 -1
  345. package/lib/esm/core-react/hocs/withOnOutsideClick.d.ts +2 -0
  346. package/lib/esm/core-react/hocs/withOnOutsideClick.d.ts.map +1 -1
  347. package/lib/esm/core-react/hocs/withOnOutsideClick.js +1 -0
  348. package/lib/esm/core-react/hocs/withOnOutsideClick.js.map +1 -1
  349. package/lib/esm/core-react/hocs/withTimeout.d.ts +2 -0
  350. package/lib/esm/core-react/hocs/withTimeout.d.ts.map +1 -1
  351. package/lib/esm/core-react/hocs/withTimeout.js +4 -1
  352. package/lib/esm/core-react/hocs/withTimeout.js.map +1 -1
  353. package/lib/esm/core-react/icons/ConditionalIconItem.d.ts +0 -4
  354. package/lib/esm/core-react/icons/ConditionalIconItem.d.ts.map +1 -1
  355. package/lib/esm/core-react/icons/ConditionalIconItem.js +2 -13
  356. package/lib/esm/core-react/icons/ConditionalIconItem.js.map +1 -1
  357. package/lib/esm/core-react/icons/IconComponent.d.ts.map +1 -1
  358. package/lib/esm/core-react/icons/IconComponent.js +1 -1
  359. package/lib/esm/core-react/icons/IconComponent.js.map +1 -1
  360. package/lib/esm/core-react/icons/SvgPath.d.ts +2 -0
  361. package/lib/esm/core-react/icons/SvgPath.d.ts.map +1 -1
  362. package/lib/esm/core-react/icons/SvgPath.js +2 -0
  363. package/lib/esm/core-react/icons/SvgPath.js.map +1 -1
  364. package/lib/esm/core-react/icons/WebFontIcon.d.ts +2 -0
  365. package/lib/esm/core-react/icons/WebFontIcon.d.ts.map +1 -1
  366. package/lib/esm/core-react/icons/WebFontIcon.js +2 -0
  367. package/lib/esm/core-react/icons/WebFontIcon.js.map +1 -1
  368. package/lib/esm/core-react/imagecheckbox/ImageCheckBox.d.ts +2 -2
  369. package/lib/esm/core-react/imagecheckbox/ImageCheckBox.d.ts.map +1 -1
  370. package/lib/esm/core-react/imagecheckbox/ImageCheckBox.js +1 -1
  371. package/lib/esm/core-react/imagecheckbox/ImageCheckBox.js.map +1 -1
  372. package/lib/esm/core-react/inputs/Input.d.ts.map +1 -1
  373. package/lib/esm/core-react/inputs/Input.js.map +1 -1
  374. package/lib/esm/core-react/inputs/InputLabel.d.ts +2 -2
  375. package/lib/esm/core-react/inputs/InputLabel.d.ts.map +1 -1
  376. package/lib/esm/core-react/inputs/InputLabel.js +1 -1
  377. package/lib/esm/core-react/inputs/InputLabel.js.map +1 -1
  378. package/lib/esm/core-react/inputs/InputStatus.d.ts +1 -1
  379. package/lib/esm/core-react/inputs/InputStatus.js +1 -1
  380. package/lib/esm/core-react/inputs/InputStatus.js.map +1 -1
  381. package/lib/esm/core-react/inputs/LabeledComponentProps.d.ts +2 -2
  382. package/lib/esm/core-react/inputs/LabeledComponentProps.js.map +1 -1
  383. package/lib/esm/core-react/inputs/iconinput/IconInput.d.ts +2 -2
  384. package/lib/esm/core-react/inputs/iconinput/IconInput.js +1 -1
  385. package/lib/esm/core-react/inputs/iconinput/IconInput.js.map +1 -1
  386. package/lib/esm/core-react/inputs/numberinput/NumberInput.d.ts +3 -3
  387. package/lib/esm/core-react/inputs/numberinput/NumberInput.js +1 -1
  388. package/lib/esm/core-react/inputs/numberinput/NumberInput.js.map +1 -1
  389. package/lib/esm/core-react/listbox/Listbox.d.ts +7 -7
  390. package/lib/esm/core-react/listbox/Listbox.js +3 -3
  391. package/lib/esm/core-react/listbox/Listbox.js.map +1 -1
  392. package/lib/esm/core-react/loading/LoadingBar.d.ts +2 -2
  393. package/lib/esm/core-react/loading/LoadingBar.js +1 -1
  394. package/lib/esm/core-react/loading/LoadingBar.js.map +1 -1
  395. package/lib/esm/core-react/loading/LoadingPrompt.d.ts +2 -2
  396. package/lib/esm/core-react/loading/LoadingPrompt.js +1 -1
  397. package/lib/esm/core-react/loading/LoadingPrompt.js.map +1 -1
  398. package/lib/esm/core-react/loading/LoadingSpinner.d.ts +3 -3
  399. package/lib/esm/core-react/loading/LoadingSpinner.js +1 -1
  400. package/lib/esm/core-react/loading/LoadingSpinner.js.map +1 -1
  401. package/lib/esm/core-react/loading/LoadingStatus.d.ts +2 -2
  402. package/lib/esm/core-react/loading/LoadingStatus.js +1 -1
  403. package/lib/esm/core-react/loading/LoadingStatus.js.map +1 -1
  404. package/lib/esm/core-react/messagebox/MessageBox.d.ts +5 -1
  405. package/lib/esm/core-react/messagebox/MessageBox.d.ts.map +1 -1
  406. package/lib/esm/core-react/messagebox/MessageBox.js +8 -1
  407. package/lib/esm/core-react/messagebox/MessageBox.js.map +1 -1
  408. package/lib/esm/core-react/notification/MessageRenderer.d.ts +2 -0
  409. package/lib/esm/core-react/notification/MessageRenderer.d.ts.map +1 -1
  410. package/lib/esm/core-react/notification/MessageRenderer.js +2 -0
  411. package/lib/esm/core-react/notification/MessageRenderer.js.map +1 -1
  412. package/lib/esm/core-react/notification/MessageType.d.ts +2 -0
  413. package/lib/esm/core-react/notification/MessageType.d.ts.map +1 -1
  414. package/lib/esm/core-react/notification/MessageType.js.map +1 -1
  415. package/lib/esm/core-react/popup/Popup.d.ts +6 -1
  416. package/lib/esm/core-react/popup/Popup.d.ts.map +1 -1
  417. package/lib/esm/core-react/popup/Popup.js +9 -2
  418. package/lib/esm/core-react/popup/Popup.js.map +1 -1
  419. package/lib/esm/core-react/radialmenu/RadialMenu.d.ts +4 -4
  420. package/lib/esm/core-react/radialmenu/RadialMenu.js +2 -2
  421. package/lib/esm/core-react/radialmenu/RadialMenu.js.map +1 -1
  422. package/lib/esm/core-react/searchbox/SearchBox.d.ts +2 -2
  423. package/lib/esm/core-react/searchbox/SearchBox.js +1 -1
  424. package/lib/esm/core-react/searchbox/SearchBox.js.map +1 -1
  425. package/lib/esm/core-react/settings/SettingsManager.d.ts +8 -8
  426. package/lib/esm/core-react/settings/SettingsManager.js +4 -4
  427. package/lib/esm/core-react/settings/SettingsManager.js.map +1 -1
  428. package/lib/esm/core-react/tabs/Tabs.d.ts +4 -4
  429. package/lib/esm/core-react/tabs/Tabs.js +1 -1
  430. package/lib/esm/core-react/tabs/Tabs.js.map +1 -1
  431. package/lib/esm/core-react/tabs/VerticalTabs.d.ts +1 -1
  432. package/lib/esm/core-react/tabs/VerticalTabs.js +1 -1
  433. package/lib/esm/core-react/tabs/VerticalTabs.js.map +1 -1
  434. package/lib/esm/core-react/text/BlockText.d.ts +1 -1
  435. package/lib/esm/core-react/text/BlockText.js +1 -1
  436. package/lib/esm/core-react/text/BlockText.js.map +1 -1
  437. package/lib/esm/core-react/text/BodyText.d.ts +1 -1
  438. package/lib/esm/core-react/text/BodyText.js +1 -1
  439. package/lib/esm/core-react/text/BodyText.js.map +1 -1
  440. package/lib/esm/core-react/text/DisabledText.d.ts +1 -1
  441. package/lib/esm/core-react/text/DisabledText.js +1 -1
  442. package/lib/esm/core-react/text/DisabledText.js.map +1 -1
  443. package/lib/esm/core-react/text/FilteredText.d.ts +2 -0
  444. package/lib/esm/core-react/text/FilteredText.d.ts.map +1 -1
  445. package/lib/esm/core-react/text/FilteredText.js +2 -0
  446. package/lib/esm/core-react/text/FilteredText.js.map +1 -1
  447. package/lib/esm/core-react/text/MutedText.d.ts +1 -1
  448. package/lib/esm/core-react/text/MutedText.js +1 -1
  449. package/lib/esm/core-react/text/MutedText.js.map +1 -1
  450. package/lib/esm/core-react/text/StyledText.d.ts +2 -2
  451. package/lib/esm/core-react/text/StyledText.js +1 -1
  452. package/lib/esm/core-react/text/StyledText.js.map +1 -1
  453. package/lib/esm/core-react/text/TextProps.d.ts +1 -1
  454. package/lib/esm/core-react/text/TextProps.js.map +1 -1
  455. package/lib/esm/core-react/tree/Branch.d.ts +2 -0
  456. package/lib/esm/core-react/tree/Branch.d.ts.map +1 -1
  457. package/lib/esm/core-react/tree/Branch.js +2 -0
  458. package/lib/esm/core-react/tree/Branch.js.map +1 -1
  459. package/lib/esm/core-react/tree/ExpansionToggle.d.ts +2 -0
  460. package/lib/esm/core-react/tree/ExpansionToggle.d.ts.map +1 -1
  461. package/lib/esm/core-react/tree/ExpansionToggle.js +2 -0
  462. package/lib/esm/core-react/tree/ExpansionToggle.js.map +1 -1
  463. package/lib/esm/core-react/tree/Node.d.ts +3 -3
  464. package/lib/esm/core-react/tree/Node.d.ts.map +1 -1
  465. package/lib/esm/core-react/tree/Node.js +6 -1
  466. package/lib/esm/core-react/tree/Node.js.map +1 -1
  467. package/lib/esm/core-react/tree/Placeholder.d.ts +2 -0
  468. package/lib/esm/core-react/tree/Placeholder.d.ts.map +1 -1
  469. package/lib/esm/core-react/tree/Placeholder.js +2 -0
  470. package/lib/esm/core-react/tree/Placeholder.js.map +1 -1
  471. package/lib/esm/core-react/tree/Tree.d.ts +2 -0
  472. package/lib/esm/core-react/tree/Tree.d.ts.map +1 -1
  473. package/lib/esm/core-react/tree/Tree.js +2 -0
  474. package/lib/esm/core-react/tree/Tree.js.map +1 -1
  475. package/lib/esm/core-react/utils/IconHelper.d.ts +1 -0
  476. package/lib/esm/core-react/utils/IconHelper.d.ts.map +1 -1
  477. package/lib/esm/core-react/utils/IconHelper.js +4 -2
  478. package/lib/esm/core-react/utils/IconHelper.js.map +1 -1
  479. package/lib/esm/core-react/utils/Props.d.ts +5 -1
  480. package/lib/esm/core-react/utils/Props.d.ts.map +1 -1
  481. package/lib/esm/core-react/utils/Props.js.map +1 -1
  482. package/lib/esm/core-react/utils/ScrollPositionMaintainer.d.ts +1 -0
  483. package/lib/esm/core-react/utils/ScrollPositionMaintainer.d.ts.map +1 -1
  484. package/lib/esm/core-react/utils/ScrollPositionMaintainer.js +3 -0
  485. package/lib/esm/core-react/utils/ScrollPositionMaintainer.js.map +1 -1
  486. package/lib/esm/core-react/utils/Timer.d.ts +2 -0
  487. package/lib/esm/core-react/utils/Timer.d.ts.map +1 -1
  488. package/lib/esm/core-react/utils/Timer.js +2 -0
  489. package/lib/esm/core-react/utils/Timer.js.map +1 -1
  490. package/lib/esm/core-react/utils/getCssVariable.d.ts +2 -0
  491. package/lib/esm/core-react/utils/getCssVariable.d.ts.map +1 -1
  492. package/lib/esm/core-react/utils/getCssVariable.js +3 -0
  493. package/lib/esm/core-react/utils/getCssVariable.js.map +1 -1
  494. package/lib/esm/core-react/utils/hooks/useCrossOriginPopup.d.ts.map +1 -1
  495. package/lib/esm/core-react/utils/hooks/useCrossOriginPopup.js +1 -0
  496. package/lib/esm/core-react/utils/hooks/useCrossOriginPopup.js.map +1 -1
  497. package/lib/esm/core-react/utils/hooks/useDisposable.d.ts +1 -0
  498. package/lib/esm/core-react/utils/hooks/useDisposable.d.ts.map +1 -1
  499. package/lib/esm/core-react/utils/hooks/useDisposable.js +1 -0
  500. package/lib/esm/core-react/utils/hooks/useDisposable.js.map +1 -1
  501. package/lib/esm/core-react/utils/hooks/useEffectSkipFirst.d.ts +1 -0
  502. package/lib/esm/core-react/utils/hooks/useEffectSkipFirst.d.ts.map +1 -1
  503. package/lib/esm/core-react/utils/hooks/useEffectSkipFirst.js +1 -0
  504. package/lib/esm/core-react/utils/hooks/useEffectSkipFirst.js.map +1 -1
  505. package/lib/esm/core-react/utils/hooks/useInterval.d.ts +1 -0
  506. package/lib/esm/core-react/utils/hooks/useInterval.d.ts.map +1 -1
  507. package/lib/esm/core-react/utils/hooks/useInterval.js +1 -0
  508. package/lib/esm/core-react/utils/hooks/useInterval.js.map +1 -1
  509. package/lib/esm/core-react/utils/hooks/useOnOutsideClick.d.ts +5 -1
  510. package/lib/esm/core-react/utils/hooks/useOnOutsideClick.d.ts.map +1 -1
  511. package/lib/esm/core-react/utils/hooks/useOnOutsideClick.js +1 -0
  512. package/lib/esm/core-react/utils/hooks/useOnOutsideClick.js.map +1 -1
  513. package/lib/esm/core-react/utils/hooks/useResizeObserver.d.ts +2 -0
  514. package/lib/esm/core-react/utils/hooks/useResizeObserver.d.ts.map +1 -1
  515. package/lib/esm/core-react/utils/hooks/useResizeObserver.js +2 -0
  516. package/lib/esm/core-react/utils/hooks/useResizeObserver.js.map +1 -1
  517. package/lib/esm/core-react/utils/typeUtils.d.ts +1 -0
  518. package/lib/esm/core-react/utils/typeUtils.d.ts.map +1 -1
  519. package/lib/esm/core-react/utils/typeUtils.js.map +1 -1
  520. package/lib/esm/core-react.d.ts +0 -1
  521. package/lib/esm/core-react.d.ts.map +1 -1
  522. package/lib/esm/core-react.js +2 -1
  523. package/lib/esm/core-react.js.map +1 -1
  524. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  # Change Log - @itwin/core-react
2
2
 
3
- This log was last generated on Tue, 11 Jun 2024 15:58:29 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 09 Jul 2024 09:23:12 GMT and should not be manually modified.
4
+
5
+ ## 4.15.1
6
+ Tue, 09 Jul 2024 09:23:12 GMT
7
+
8
+ ### Updates
9
+
10
+ - Remove `ConditionalIconItem.isConditionalIconItem()` workaround to fix an underscore prefix issue.
11
+
12
+ ## 4.15.0
13
+ Fri, 28 Jun 2024 09:09:37 GMT
14
+
15
+ ### Updates
16
+
17
+ - Added `portalTarget` to `Popup` component.
18
+ - Deprecated components, functions, enums that are intended for internal use, are not used by AppUI or can be replaced with alternatives.
4
19
 
5
20
  ## 4.14.1
6
21
  Tue, 11 Jun 2024 15:58:29 GMT
@@ -14,6 +29,17 @@ Thu, 06 Jun 2024 08:24:21 GMT
14
29
 
15
30
  - Fixed SVG icon alignment in ContextMenu components.
16
31
  - Deprecate RadialMenu and RadialButton components.
32
+
33
+ ## 4.13.4
34
+ Tue, 21 May 2024 08:21:34 GMT
35
+
36
+ _Version update only_
37
+
38
+ ## 4.13.3
39
+ Fri, 17 May 2024 09:43:31 GMT
40
+
41
+ ### Updates
42
+
17
43
  - upgrade to TypeScript@5.3.3 and @itwin/build-tools@4.6.x
18
44
 
19
45
  ## 4.13.2
@@ -25,7 +25,7 @@ export declare class UiCore {
25
25
  /** The internationalization service namespace. */
26
26
  static get localizationNamespace(): string;
27
27
  /** Calls localization.getLocalizedString with the "UiCore" namespace. Do NOT include the namespace in the key.
28
- * @deprecated in 4.12.x. Do not use this internally, this is replaced by `useTranslation`.
28
+ * @deprecated in 4.12.0. Do not use this internally, this is replaced by `useTranslation`.
29
29
  * @internal
30
30
  */
31
31
  static translate(key: string | string[]): string;
@@ -48,7 +48,7 @@ class UiCore {
48
48
  return "UiCore";
49
49
  }
50
50
  /** Calls localization.getLocalizedString with the "UiCore" namespace. Do NOT include the namespace in the key.
51
- * @deprecated in 4.12.x. Do not use this internally, this is replaced by `useTranslation`.
51
+ * @deprecated in 4.12.0. Do not use this internally, this is replaced by `useTranslation`.
52
52
  * @internal
53
53
  */
54
54
  static translate(key) {
@@ -1 +1 @@
1
- {"version":3,"file":"UiCore.js","sourceRoot":"","sources":["../../../src/core-react/UiCore.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,4EAA4E;AAC5E,8BAA4B;AAC5B,iCAA+B;AAC/B,mCAAiC;AACjC,0BAAwB;AAExB,sDAA6C;AAE7C,mEAAgE;AAEhE;;GAEG;AACH,MAAa,MAAM;IAIjB;;;OAGG;IACI,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,YAA0B;QACvD,IAAI,MAAM,CAAC,YAAY,EAAE,CAAC;YACxB,qBAAM,CAAC,OAAO,CACZ,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,EAC7B,kCAAkC,CACnC,CAAC;YACF,OAAO;QACT,CAAC;QAED,MAAM,CAAC,aAAa,GAAG,YAAY,CAAC;QACpC,MAAM,MAAM,CAAC,aAAa,CAAC,iBAAiB,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;QAE3E,MAAM,CAAC,YAAY,GAAG,IAAI,CAAC;IAC7B,CAAC;IAED,oDAAoD;IAC7C,MAAM,CAAC,SAAS;QACrB,IAAI,MAAM,CAAC,aAAa;YACtB,MAAM,CAAC,aAAa,CAAC,mBAAmB,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;QACzE,MAAM,CAAC,aAAa,GAAG,SAAS,CAAC;QAEjC,MAAM,CAAC,YAAY,GAAG,KAAK,CAAC;IAC9B,CAAC;IAED,gDAAgD;IACzC,MAAM,KAAK,WAAW;QAC3B,OAAO,MAAM,CAAC,YAAY,CAAC;IAC7B,CAAC;IAED,kDAAkD;IAC3C,MAAM,KAAK,qBAAqB;QACrC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,SAAS,CAAC,GAAsB;QAC5C,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC;YAC1B,qBAAM,CAAC,QAAQ,CACb,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,EAC3B,4FAA4F,CAC7F,CAAC;YACF,OAAO,EAAE,CAAC;QACZ,CAAC;QACD,OAAO,MAAM,CAAC,aAAa,CAAC,kBAAkB,CAC5C,GAAG,MAAM,CAAC,qBAAqB,IAAI,GAAG,EAAE,CACzC,CAAC;IACJ,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,IAAA,uCAAkB,EAAC,GAAG,CAAC,CAAC;QAC1C,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;;AArEH,wBAsEC;AArEgB,mBAAY,GAAG,KAAK,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Utilities\n */\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 { getObjectClassName } from \"./utils/getObjectClassName\";\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(\n UiCore.loggerCategory(UiCore),\n `UiCore.initialize already called`\n );\n return;\n }\n\n UiCore._localization = localization;\n await UiCore._localization.registerNamespace(UiCore.localizationNamespace);\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 {\n return UiCore._initialized;\n }\n\n /** The internationalization service namespace. */\n public static get localizationNamespace(): string {\n return \"UiCore\";\n }\n\n /** Calls localization.getLocalizedString with the \"UiCore\" namespace. Do NOT include the namespace in the key.\n * @deprecated in 4.12.x. Do not use this internally, this is replaced by `useTranslation`.\n * @internal\n */\n public static translate(key: string | string[]): string {\n if (!UiCore._localization) {\n Logger.logError(\n UiCore.loggerCategory(this),\n `translate: UiCore must be initialize with a localization provider. Returning blank string.`\n );\n return \"\";\n }\n return UiCore._localization.getLocalizedString(\n `${UiCore.localizationNamespace}:${key}`\n );\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 = getObjectClassName(obj);\n const category = UiCore.packageName + (className ? `.${className}` : \"\");\n return category;\n }\n}\n"]}
1
+ {"version":3,"file":"UiCore.js","sourceRoot":"","sources":["../../../src/core-react/UiCore.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,4EAA4E;AAC5E,8BAA4B;AAC5B,iCAA+B;AAC/B,mCAAiC;AACjC,0BAAw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gBAAgB;IACT,MAAM,KAAK,WAAW;QAC3B,OAAO,YAAY,CAAC;IACtB,CAAC;IAED,gBAAgB;IACT,MAAM,CAAC,cAAc,CAAC,GAAQ;QACnC,MAAM,SAAS,GAAG,IAAA,uCAAkB,EAAC,GAAG,CAAC,CAAC;QAC1C,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;;AArEH,wBAsEC;AArEgB,mBAAY,GAAG,KAAK,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Utilities\n */\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 { getObjectClassName } from \"./utils/getObjectClassName\";\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(\n UiCore.loggerCategory(UiCore),\n `UiCore.initialize already called`\n );\n return;\n }\n\n UiCore._localization = localization;\n await UiCore._localization.registerNamespace(UiCore.localizationNamespace);\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 {\n return UiCore._initialized;\n }\n\n /** The internationalization service namespace. */\n public static get localizationNamespace(): string {\n return \"UiCore\";\n }\n\n /** Calls localization.getLocalizedString with the \"UiCore\" namespace. Do NOT include the namespace in the key.\n * @deprecated in 4.12.0. Do not use this internally, this is replaced by `useTranslation`.\n * @internal\n */\n public static translate(key: string | string[]): string {\n if (!UiCore._localization) {\n Logger.logError(\n UiCore.loggerCategory(this),\n `translate: UiCore must be initialize with a localization provider. Returning blank string.`\n );\n return \"\";\n }\n return UiCore._localization.getLocalizedString(\n `${UiCore.localizationNamespace}:${key}`\n );\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 = getObjectClassName(obj);\n const category = UiCore.packageName + (className ? `.${className}` : \"\");\n return category;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"AutoSuggest.d.ts","sourceRoot":"","sources":["../../../../src/core-react/autosuggest/AutoSuggest.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,oBAAoB,CAAC;AAC5B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,gBAAgB,MAAM,mBAAmB,CAAC;AAEjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,eAAe,EAAE,CAAC;AAE1E;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,CACxC,KAAK,EAAE,MAAM,KACV,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;AAEhC;;GAEG;AACH,MAAM,WAAW,gBACf,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBA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EAAE,IAAI,CAAC,4BAA4B,EAC9D,2BAA2B,EAAE,IAAI,CAAC,4BAA4B,EAC9D,kBAAkB,EAAE,IAAI,CAAC,mBAAmB,EAC5C,gBAAgB,EAAE,IAAI,CAAC,iBAAiB,EACxC,UAAU,EAAE,UAAU,EACtB,oBAAoB,EAAE,IAAI,CAAC,qBAAqB,EAChD,uBAAuB,EAAE,uBAAuB,EAChD,oBAAoB,EAClB,oBAAoB,IAAI,2BAA2B,EAErD,0BAA0B,EAAE,0BAA0B,GACtD,CACE,CACP,CAAC;IACJ,CAAC;CACF;AA7OD,kCA6OC","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 AutoSuggest\n */\n\nimport \"./AutoSuggest.scss\";\nimport * as React from \"react\";\nimport { Logger } from \"@itwin/core-bentley\";\nimport { Input } from \"@itwin/itwinui-react\";\nimport ReactAutosuggest from \"react-autosuggest\";\nimport { Key } from \"ts-key-enum\";\nimport type { CommonProps } from \"../utils/Props\";\nimport { UiCore } from \"../UiCore\";\n\n/** Data for the [[AutoSuggest]] options\n * @public\n */\nexport interface AutoSuggestData {\n /** Value of [[AutoSuggest]] option. */\n value: string;\n /** Label of [[AutoSuggest]] option. This is shown in the dropdown. */\n label: string;\n}\n\n/** Prototype for function returning AutoSuggestData\n * @public\n */\nexport type GetAutoSuggestDataFunc = (value: string) => AutoSuggestData[];\n\n/** Prototype for async function returning AutoSuggestData\n * @public\n */\nexport type AsyncGetAutoSuggestDataFunc = (\n value: string\n) => Promise<AutoSuggestData[]>;\n\n/** Properties for the [[AutoSuggest]] component.\n * @public\n */\nexport interface AutoSuggestProps\n extends React.InputHTMLAttributes<HTMLInputElement>,\n CommonProps {\n /** Optional input value override. */\n value?: string;\n /** Options for dropdown. */\n options?: AutoSuggestData[] | GetAutoSuggestDataFunc;\n /** Asynchronously calculate suggestions for any given input value. */\n getSuggestions?: AsyncGetAutoSuggestDataFunc;\n /** Gets a label associated with a given value */\n getLabel?: (value: string | undefined) => string;\n /** Handler for when suggested selected. */\n onSuggestionSelected: (selected: AutoSuggestData) => void;\n /** Handler for Enter key. */\n onPressEnter?: (e: React.KeyboardEvent<HTMLInputElement>) => void;\n /** Handler for Escape key. */\n onPressEscape?: (e: React.KeyboardEvent<HTMLInputElement>) => void;\n /** Handler for Tab key. */\n onPressTab?: (e: React.KeyboardEvent<HTMLInputElement>) => void;\n /** Handler for input receiving focus. */\n onInputFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;\n /** Called every time you need to clear suggestions. */\n onSuggestionsClearRequested?: () => void;\n /** Indicates whether to set focus to the input element */\n setFocus?: boolean;\n\n /** Use it only if you need to customize the rendering of the input.\n * @internal\n */\n renderInputComponent?: any; // ReactAutosuggest.RenderInputComponent<AutoSuggestData>; NOTE: changed to \"any\" because build was failing with RenderInputComponent is not generic?\n /** Use it if you want to customize things inside the suggestions container beyond rendering the suggestions themselves.\n * @internal\n */\n renderSuggestionsContainer?: ReactAutosuggest.RenderSuggestionsContainer;\n\n /** @internal */\n alwaysRenderSuggestions?: boolean;\n}\n\n/** @internal */\ninterface AutoSuggestState {\n inputValue: string;\n suggestions: AutoSuggestData[];\n}\n\n/** Auto Suggest React component. Uses the react-autosuggest component internally.\n * @public\n */\nexport class AutoSuggest extends React.PureComponent<\n AutoSuggestProps,\n AutoSuggestState\n> {\n private _isMounted = false;\n\n constructor(props: AutoSuggestProps) {\n super(props);\n\n // Autosuggest is a controlled component.\n // This means that you need to provide an input value\n // and an onChange handler that updates this value (see below).\n // Suggestions also need to be provided to the Autosuggest,\n // and they are initially empty because the Autosuggest is closed.\n this.state = {\n inputValue: this.getLabel(props.value),\n suggestions: [],\n };\n }\n\n /** @internal */\n public override componentDidMount() {\n this._isMounted = true;\n }\n\n /** @internal */\n public override componentWillUnmount() {\n this._isMounted = false;\n }\n\n public override componentDidUpdate(prevProps: AutoSuggestProps) {\n if (\n this.props.value !== prevProps.value ||\n this.props.options !== prevProps.options\n ) {\n this.setState((_prevState, props) => ({\n inputValue: this.getLabel(props.value),\n }));\n }\n }\n\n private _onChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n let newValue = \"\";\n\n if (e.target.tagName === \"LI\" && e.target.textContent)\n newValue = e.target.textContent;\n else if (e.target.value) newValue = e.target.value;\n\n this.setState({\n inputValue: newValue,\n });\n };\n\n private _onFocus = (e: React.FocusEvent<HTMLInputElement>) => {\n if (this.props.onInputFocus) this.props.onInputFocus(e);\n };\n\n /** Autosuggest will call this function every time you need to update suggestions. */\n private _onSuggestionsFetchRequested = async (\n request: ReactAutosuggest.SuggestionsFetchRequestedParams\n ): Promise<void> => {\n const value = request.value;\n const suggestions = await this._getSuggestions(value);\n\n if (this._isMounted) this.setState({ suggestions });\n };\n\n /** Autosuggest will call this function every time you need to clear suggestions. */\n private _onSuggestionsClearRequested = () => {\n this.setState({ suggestions: [] });\n this.props.onSuggestionsClearRequested &&\n this.props.onSuggestionsClearRequested();\n };\n\n private _onSuggestionSelected = (\n _event: React.FormEvent<any>,\n data: ReactAutosuggest.SuggestionSelectedEventData<AutoSuggestData>\n ): void => {\n this.props.onSuggestionSelected(data.suggestion);\n };\n\n /** Teach Autosuggest how to calculate suggestions for any given input value. */\n private _getSuggestions = async (\n value: string\n ): Promise<AutoSuggestData[]> => {\n if (typeof this.props.options === \"function\")\n return Promise.resolve(this.props.options(value));\n\n if (this.props.getSuggestions) return this.props.getSuggestions(value);\n\n if (this.props.options === undefined) {\n Logger.logError(\n UiCore.loggerCategory(this),\n `props.options or props.getSuggestions should be provided`\n );\n return Promise.resolve([]);\n }\n\n const inputValue = value.trim().toLowerCase();\n const inputLength = inputValue.length;\n\n return Promise.resolve(\n inputLength === 0\n ? []\n : this.props.options.filter((data: AutoSuggestData) => {\n return (\n data.label.toLowerCase().includes(inputValue) ||\n data.value.toLowerCase().includes(inputValue)\n );\n })\n );\n };\n\n /** When suggestion is clicked, Autosuggest needs to populate the input based on the clicked suggestion. */\n private _getSuggestionValue = (suggestion: AutoSuggestData) =>\n suggestion.label;\n\n /** Render each suggestion. */\n private _renderSuggestion = (suggestion: AutoSuggestData) => (\n <span>{suggestion.label}</span>\n );\n\n private getLabel(value: string | undefined): string {\n let label = \"\";\n\n if (this.props.getLabel) {\n label = this.props.getLabel(value);\n } else if (this.props.options instanceof Array) {\n const entry = this.props.options.find(\n (data: AutoSuggestData) => data.value === value\n );\n if (entry) label = entry.label;\n } else {\n Logger.logError(\n UiCore.loggerCategory(this),\n `props.getLabel should be provided when props.options is a function`\n );\n }\n\n return label;\n }\n\n private _handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\n switch (e.key) {\n case Key.Enter.valueOf():\n if (this.props.onPressEnter) this.props.onPressEnter(e);\n break;\n case Key.Escape.valueOf():\n if (this.props.onPressEscape) this.props.onPressEscape(e);\n break;\n case Key.Tab.valueOf():\n if (this.props.onPressTab) this.props.onPressTab(e);\n break;\n }\n };\n\n private _theme = {\n container: \"uicore-autosuggest__container\",\n containerOpen: \"uicore-autosuggest__container--open\",\n input: \"uicore-autosuggest__input\",\n inputOpen: \"uicore-autosuggest__input--open\",\n inputFocused: \"uicore-autosuggest__input--focused\",\n suggestionsContainer: \"uicore-autosuggest__suggestions-container\",\n suggestionsContainerOpen: \"uicore-autosuggest__suggestions-container--open\",\n suggestionsList: \"uicore-autosuggest__suggestions-list\",\n suggestion: \"uicore-autosuggest__suggestion\",\n suggestionFirst: \"uicore-autosuggest__suggestion--first\",\n suggestionHighlighted: \"uicore-autosuggest__suggestion--highlighted\",\n sectionContainer: \"uicore-autosuggest__section-container\",\n sectionContainerFirst: \"uicore-autosuggest__section-container--first\",\n sectionTitle: \"uicore-autosuggest__section-title\",\n };\n\n public override render(): React.ReactElement {\n const { inputValue, suggestions } = this.state;\n const {\n value,\n onChange,\n placeholder,\n options,\n onSuggestionSelected,\n setFocus,\n alwaysRenderSuggestions,\n onPressEnter,\n onPressEscape,\n onPressTab,\n onInputFocus,\n getLabel,\n getSuggestions,\n renderInputComponent,\n renderSuggestionsContainer,\n onSuggestionsClearRequested,\n ...props\n } = this.props;\n const inputPlaceholder = !inputValue ? placeholder : undefined;\n\n const inputProps: ReactAutosuggest.InputProps<AutoSuggestData> = {\n ...props,\n value: inputValue,\n onChange: this._onChange,\n onFocus: this._onFocus,\n placeholder: inputPlaceholder,\n autoFocus: setFocus,\n };\n\n const defaultRenderInputComponent: React.ComponentProps<\n typeof ReactAutosuggest\n >[\"renderInputComponent\"] = (renderInputProps) => {\n const { size, ...other } = renderInputProps;\n return <Input {...other} />;\n };\n return (\n // The onKeyDown event handler is only being used to capture bubbled events\n // eslint-disable-next-line jsx-a11y/no-static-element-interactions\n <div\n className={this.props.className}\n style={this.props.style}\n onKeyDown={this._handleKeyDown}\n >\n <ReactAutosuggest\n theme={this._theme}\n suggestions={suggestions}\n onSuggestionsFetchRequested={this._onSuggestionsFetchRequested}\n onSuggestionsClearRequested={this._onSuggestionsClearRequested}\n getSuggestionValue={this._getSuggestionValue}\n renderSuggestion={this._renderSuggestion}\n inputProps={inputProps}\n onSuggestionSelected={this._onSuggestionSelected}\n alwaysRenderSuggestions={alwaysRenderSuggestions}\n renderInputComponent={\n renderInputComponent || defaultRenderInputComponent\n }\n renderSuggestionsContainer={renderSuggestionsContainer}\n />\n </div>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"AutoSuggest.js","sourceRoot":"","sources":["../../../../src/core-react/autosuggest/AutoSuggest.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,8BAA4B;AAC5B,+BAA+B;AAC/B,sDAA6C;AAC7C,wDAA6C;AAC7C,yDAAiD;AACjD,6CAAkC;AAElC,sCAAmC;AAyEnC;;GAEG;AACH,MAAa,WAAY,SAAQ,KAAK,CAAC,aAGtC;IAGC,YAAY,KAAuB;QACjC,KAAK,CAAC,KAAK,CAAC,CAAC;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AC,4BAA4B,EAC9D,2BAA2B,EAAE,IAAI,CAAC,4BAA4B,EAC9D,kBAAkB,EAAE,IAAI,CAAC,mBAAmB,EAC5C,gBAAgB,EAAE,IAAI,CAAC,iBAAiB,EACxC,UAAU,EAAE,UAAU,EACtB,oBAAoB,EAAE,IAAI,CAAC,qBAAqB,EAChD,uBAAuB,EAAE,uBAAuB,EAChD,oBAAoB,EAClB,oBAAoB,IAAI,2BAA2B,EAErD,0BAA0B,EAAE,0BAA0B,GACtD,CACE,CACP,CAAC;IACJ,CAAC;CACF;AA7OD,kCA6OC","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 AutoSuggest\n */\n\nimport \"./AutoSuggest.scss\";\nimport * as React from \"react\";\nimport { Logger } from \"@itwin/core-bentley\";\nimport { Input } from \"@itwin/itwinui-react\";\nimport ReactAutosuggest from \"react-autosuggest\";\nimport { Key } from \"ts-key-enum\";\nimport type { CommonProps } from \"../utils/Props\";\nimport { UiCore } from \"../UiCore\";\n\n/** Data for the [[AutoSuggest]] options\n * @public\n */\nexport interface AutoSuggestData {\n /** Value of [[AutoSuggest]] option. */\n value: string;\n /** Label of [[AutoSuggest]] option. This is shown in the dropdown. */\n label: string;\n}\n\n/** Prototype for function returning AutoSuggestData\n * @public\n */\nexport type GetAutoSuggestDataFunc = (value: string) => AutoSuggestData[];\n\n/** Prototype for async function returning AutoSuggestData\n * @public\n */\nexport type AsyncGetAutoSuggestDataFunc = (\n value: string\n) => Promise<AutoSuggestData[]>;\n\n/** Properties for the [[AutoSuggest]] component.\n * @public\n */\nexport interface AutoSuggestProps\n extends React.InputHTMLAttributes<HTMLInputElement>,\n // eslint-disable-next-line deprecation/deprecation\n CommonProps {\n /** Optional input value override. */\n value?: string;\n /** Options for dropdown. */\n options?: AutoSuggestData[] | GetAutoSuggestDataFunc;\n /** Asynchronously calculate suggestions for any given input value. */\n getSuggestions?: AsyncGetAutoSuggestDataFunc;\n /** Gets a label associated with a given value */\n getLabel?: (value: string | undefined) => string;\n /** Handler for when suggested selected. */\n onSuggestionSelected: (selected: AutoSuggestData) => void;\n /** Handler for Enter key. */\n onPressEnter?: (e: React.KeyboardEvent<HTMLInputElement>) => void;\n /** Handler for Escape key. */\n onPressEscape?: (e: React.KeyboardEvent<HTMLInputElement>) => void;\n /** Handler for Tab key. */\n onPressTab?: (e: React.KeyboardEvent<HTMLInputElement>) => void;\n /** Handler for input receiving focus. */\n onInputFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;\n /** Called every time you need to clear suggestions. */\n onSuggestionsClearRequested?: () => void;\n /** Indicates whether to set focus to the input element */\n setFocus?: boolean;\n\n /** Use it only if you need to customize the rendering of the input.\n * @internal\n */\n renderInputComponent?: any; // ReactAutosuggest.RenderInputComponent<AutoSuggestData>; NOTE: changed to \"any\" because build was failing with RenderInputComponent is not generic?\n /** Use it if you want to customize things inside the suggestions container beyond rendering the suggestions themselves.\n * @internal\n */\n renderSuggestionsContainer?: ReactAutosuggest.RenderSuggestionsContainer;\n\n /** @internal */\n alwaysRenderSuggestions?: boolean;\n}\n\n/** @internal */\ninterface AutoSuggestState {\n inputValue: string;\n suggestions: AutoSuggestData[];\n}\n\n/** Auto Suggest React component. Uses the react-autosuggest component internally.\n * @public\n */\nexport class AutoSuggest extends React.PureComponent<\n AutoSuggestProps,\n AutoSuggestState\n> {\n private _isMounted = false;\n\n constructor(props: AutoSuggestProps) {\n super(props);\n\n // Autosuggest is a controlled component.\n // This means that you need to provide an input value\n // and an onChange handler that updates this value (see below).\n // Suggestions also need to be provided to the Autosuggest,\n // and they are initially empty because the Autosuggest is closed.\n this.state = {\n inputValue: this.getLabel(props.value),\n suggestions: [],\n };\n }\n\n /** @internal */\n public override componentDidMount() {\n this._isMounted = true;\n }\n\n /** @internal */\n public override componentWillUnmount() {\n this._isMounted = false;\n }\n\n public override componentDidUpdate(prevProps: AutoSuggestProps) {\n if (\n this.props.value !== prevProps.value ||\n this.props.options !== prevProps.options\n ) {\n this.setState((_prevState, props) => ({\n inputValue: this.getLabel(props.value),\n }));\n }\n }\n\n private _onChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n let newValue = \"\";\n\n if (e.target.tagName === \"LI\" && e.target.textContent)\n newValue = e.target.textContent;\n else if (e.target.value) newValue = e.target.value;\n\n this.setState({\n inputValue: newValue,\n });\n };\n\n private _onFocus = (e: React.FocusEvent<HTMLInputElement>) => {\n if (this.props.onInputFocus) this.props.onInputFocus(e);\n };\n\n /** Autosuggest will call this function every time you need to update suggestions. */\n private _onSuggestionsFetchRequested = async (\n request: ReactAutosuggest.SuggestionsFetchRequestedParams\n ): Promise<void> => {\n const value = request.value;\n const suggestions = await this._getSuggestions(value);\n\n if (this._isMounted) this.setState({ suggestions });\n };\n\n /** Autosuggest will call this function every time you need to clear suggestions. */\n private _onSuggestionsClearRequested = () => {\n this.setState({ suggestions: [] });\n this.props.onSuggestionsClearRequested &&\n this.props.onSuggestionsClearRequested();\n };\n\n private _onSuggestionSelected = (\n _event: React.FormEvent<any>,\n data: ReactAutosuggest.SuggestionSelectedEventData<AutoSuggestData>\n ): void => {\n this.props.onSuggestionSelected(data.suggestion);\n };\n\n /** Teach Autosuggest how to calculate suggestions for any given input value. */\n private _getSuggestions = async (\n value: string\n ): Promise<AutoSuggestData[]> => {\n if (typeof this.props.options === \"function\")\n return Promise.resolve(this.props.options(value));\n\n if (this.props.getSuggestions) return this.props.getSuggestions(value);\n\n if (this.props.options === undefined) {\n Logger.logError(\n UiCore.loggerCategory(this),\n `props.options or props.getSuggestions should be provided`\n );\n return Promise.resolve([]);\n }\n\n const inputValue = value.trim().toLowerCase();\n const inputLength = inputValue.length;\n\n return Promise.resolve(\n inputLength === 0\n ? []\n : this.props.options.filter((data: AutoSuggestData) => {\n return (\n data.label.toLowerCase().includes(inputValue) ||\n data.value.toLowerCase().includes(inputValue)\n );\n })\n );\n };\n\n /** When suggestion is clicked, Autosuggest needs to populate the input based on the clicked suggestion. */\n private _getSuggestionValue = (suggestion: AutoSuggestData) =>\n suggestion.label;\n\n /** Render each suggestion. */\n private _renderSuggestion = (suggestion: AutoSuggestData) => (\n <span>{suggestion.label}</span>\n );\n\n private getLabel(value: string | undefined): string {\n let label = \"\";\n\n if (this.props.getLabel) {\n label = this.props.getLabel(value);\n } else if (this.props.options instanceof Array) {\n const entry = this.props.options.find(\n (data: AutoSuggestData) => data.value === value\n );\n if (entry) label = entry.label;\n } else {\n Logger.logError(\n UiCore.loggerCategory(this),\n `props.getLabel should be provided when props.options is a function`\n );\n }\n\n return label;\n }\n\n private _handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\n switch (e.key) {\n case Key.Enter.valueOf():\n if (this.props.onPressEnter) this.props.onPressEnter(e);\n break;\n case Key.Escape.valueOf():\n if (this.props.onPressEscape) this.props.onPressEscape(e);\n break;\n case Key.Tab.valueOf():\n if (this.props.onPressTab) this.props.onPressTab(e);\n break;\n }\n };\n\n private _theme = {\n container: \"uicore-autosuggest__container\",\n containerOpen: \"uicore-autosuggest__container--open\",\n input: \"uicore-autosuggest__input\",\n inputOpen: \"uicore-autosuggest__input--open\",\n inputFocused: \"uicore-autosuggest__input--focused\",\n suggestionsContainer: \"uicore-autosuggest__suggestions-container\",\n suggestionsContainerOpen: \"uicore-autosuggest__suggestions-container--open\",\n suggestionsList: \"uicore-autosuggest__suggestions-list\",\n suggestion: \"uicore-autosuggest__suggestion\",\n suggestionFirst: \"uicore-autosuggest__suggestion--first\",\n suggestionHighlighted: \"uicore-autosuggest__suggestion--highlighted\",\n sectionContainer: \"uicore-autosuggest__section-container\",\n sectionContainerFirst: \"uicore-autosuggest__section-container--first\",\n sectionTitle: \"uicore-autosuggest__section-title\",\n };\n\n public override render(): React.ReactElement {\n const { inputValue, suggestions } = this.state;\n const {\n value,\n onChange,\n placeholder,\n options,\n onSuggestionSelected,\n setFocus,\n alwaysRenderSuggestions,\n onPressEnter,\n onPressEscape,\n onPressTab,\n onInputFocus,\n getLabel,\n getSuggestions,\n renderInputComponent,\n renderSuggestionsContainer,\n onSuggestionsClearRequested,\n ...props\n } = this.props;\n const inputPlaceholder = !inputValue ? placeholder : undefined;\n\n const inputProps: ReactAutosuggest.InputProps<AutoSuggestData> = {\n ...props,\n value: inputValue,\n onChange: this._onChange,\n onFocus: this._onFocus,\n placeholder: inputPlaceholder,\n autoFocus: setFocus,\n };\n\n const defaultRenderInputComponent: React.ComponentProps<\n typeof ReactAutosuggest\n >[\"renderInputComponent\"] = (renderInputProps) => {\n const { size, ...other } = renderInputProps;\n return <Input {...other} />;\n };\n return (\n // The onKeyDown event handler is only being used to capture bubbled events\n // eslint-disable-next-line jsx-a11y/no-static-element-interactions\n <div\n className={this.props.className}\n style={this.props.style}\n onKeyDown={this._handleKeyDown}\n >\n <ReactAutosuggest\n theme={this._theme}\n suggestions={suggestions}\n onSuggestionsFetchRequested={this._onSuggestionsFetchRequested}\n onSuggestionsClearRequested={this._onSuggestionsClearRequested}\n getSuggestionValue={this._getSuggestionValue}\n renderSuggestion={this._renderSuggestion}\n inputProps={inputProps}\n onSuggestionSelected={this._onSuggestionSelected}\n alwaysRenderSuggestions={alwaysRenderSuggestions}\n renderInputComponent={\n renderInputComponent || defaultRenderInputComponent\n }\n renderSuggestionsContainer={renderSuggestionsContainer}\n />\n </div>\n );\n }\n}\n"]}
@@ -6,7 +6,7 @@ import type { CommonDivProps } from "../utils/Props";
6
6
  /** Centered React functional component.
7
7
  * Displays content centered vertically and horizontally.
8
8
  * @public
9
- * @deprecated in 4.12.x. Use CSS to style an element or {@link https://itwinui.bentley.com/docs/flex iTwinUI Flex} instead, i.e. `<Flex justifyContent="center" />`.
9
+ * @deprecated in 4.12.0. Use CSS to style an element or {@link https://itwinui.bentley.com/docs/flex iTwinUI Flex} instead, i.e. `<Flex justifyContent="center" />`.
10
10
  */
11
11
  export declare function Centered(props: CommonDivProps): React.JSX.Element;
12
12
  //# sourceMappingURL=Centered.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Centered.d.ts","sourceRoot":"","sources":["../../../../src/core-react/base/Centered.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,cAAc,qBAG7C"}
1
+ {"version":3,"file":"Centered.d.ts","sourceRoot":"","sources":["../../../../src/core-react/base/Centered.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD;;;;GAIG;AAEH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,cAAc,qBAG7C"}
@@ -13,8 +13,9 @@ const Div_1 = require("./Div");
13
13
  /** Centered React functional component.
14
14
  * Displays content centered vertically and horizontally.
15
15
  * @public
16
- * @deprecated in 4.12.x. Use CSS to style an element or {@link https://itwinui.bentley.com/docs/flex iTwinUI Flex} instead, i.e. `<Flex justifyContent="center" />`.
16
+ * @deprecated in 4.12.0. Use CSS to style an element or {@link https://itwinui.bentley.com/docs/flex iTwinUI Flex} instead, i.e. `<Flex justifyContent="center" />`.
17
17
  */
18
+ // eslint-disable-next-line deprecation/deprecation
18
19
  function Centered(props) {
19
20
  // eslint-disable-next-line deprecation/deprecation
20
21
  return React.createElement(Div_1.Div, { ...props, mainClassName: "uicore-centered" });
@@ -1 +1 @@
1
- {"version":3,"file":"Centered.js","sourceRoot":"","sources":["../../../../src/core-react/base/Centered.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,+BAA+B;AAE/B,+BAA4B;AAE5B;;;;GAIG;AACH,SAAgB,QAAQ,CAAC,KAAqB;IAC5C,mDAAmD;IACnD,OAAO,oBAAC,SAAG,OAAK,KAAK,EAAE,aAAa,EAAC,iBAAiB,GAAG,CAAC;AAC5D,CAAC;AAHD,4BAGC","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 Base\n */\n\nimport * as React from \"react\";\nimport type { CommonDivProps } from \"../utils/Props\";\nimport { Div } from \"./Div\";\n\n/** Centered React functional component.\n * Displays content centered vertically and horizontally.\n * @public\n * @deprecated in 4.12.x. Use CSS to style an element or {@link https://itwinui.bentley.com/docs/flex iTwinUI Flex} instead, i.e. `<Flex justifyContent=\"center\" />`.\n */\nexport function Centered(props: CommonDivProps) {\n // eslint-disable-next-line deprecation/deprecation\n return <Div {...props} mainClassName=\"uicore-centered\" />;\n}\n"]}
1
+ {"version":3,"file":"Centered.js","sourceRoot":"","sources":["../../../../src/core-react/base/Centered.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,+BAA+B;AAE/B,+BAA4B;AAE5B;;;;GAIG;AACH,mDAAmD;AACnD,SAAgB,QAAQ,CAAC,KAAqB;IAC5C,mDAAmD;IACnD,OAAO,oBAAC,SAAG,OAAK,KAAK,EAAE,aAAa,EAAC,iBAAiB,GAAG,CAAC;AAC5D,CAAC;AAHD,4BAGC","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 Base\n */\n\nimport * as React from \"react\";\nimport type { CommonDivProps } from \"../utils/Props\";\nimport { Div } from \"./Div\";\n\n/** Centered React functional component.\n * Displays content centered vertically and horizontally.\n * @public\n * @deprecated in 4.12.0. Use CSS to style an element or {@link https://itwinui.bentley.com/docs/flex iTwinUI Flex} instead, i.e. `<Flex justifyContent=\"center\" />`.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function Centered(props: CommonDivProps) {\n // eslint-disable-next-line deprecation/deprecation\n return <Div {...props} mainClassName=\"uicore-centered\" />;\n}\n"]}
@@ -5,7 +5,7 @@ import * as React from "react";
5
5
  import type { CommonDivProps } from "../utils/Props";
6
6
  /** Properties for the [[Div]] component
7
7
  * @public
8
- * @deprecated in 4.12.x. Props of deprecated component {@link Div}.
8
+ * @deprecated in 4.12.0. Props of deprecated component {@link Div}.
9
9
  */
10
10
  export interface DivProps extends CommonDivProps {
11
11
  /** Main CSS class name */
@@ -13,7 +13,7 @@ export interface DivProps extends CommonDivProps {
13
13
  }
14
14
  /** Base div element React component
15
15
  * @public
16
- * @deprecated in 4.12.x. Use HTMLDivElement instead i.e. `<div />`.
16
+ * @deprecated in 4.12.0. Use HTMLDivElement instead i.e. `<div />`.
17
17
  */
18
18
  export declare function Div(props: DivProps): React.JSX.Element;
19
19
  //# sourceMappingURL=Div.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Div.d.ts","sourceRoot":"","sources":["../../../../src/core-react/base/Div.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD;;;GAGG;AACH,MAAM,WAAW,QAAS,SAAQ,cAAc;IAC9C,0BAA0B;IAC1B,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AAEH,wBAAgB,GAAG,CAAC,KAAK,EAAE,QAAQ,qBAYlC"}
1
+ {"version":3,"file":"Div.d.ts","sourceRoot":"","sources":["../../../../src/core-react/base/Div.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD;;;GAGG;AAEH,MAAM,WAAW,QAAS,SAAQ,cAAc;IAC9C,0BAA0B;IAC1B,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AAEH,wBAAgB,GAAG,CAAC,KAAK,EAAE,QAAQ,qBAYlC"}
@@ -12,7 +12,7 @@ const classnames_1 = require("classnames");
12
12
  const React = require("react");
13
13
  /** Base div element React component
14
14
  * @public
15
- * @deprecated in 4.12.x. Use HTMLDivElement instead i.e. `<div />`.
15
+ * @deprecated in 4.12.0. Use HTMLDivElement instead i.e. `<div />`.
16
16
  */
17
17
  // eslint-disable-next-line deprecation/deprecation
18
18
  function Div(props) {
@@ -1 +1 @@
1
- {"version":3,"file":"Div.js","sourceRoot":"","sources":["../../../../src/core-react/base/Div.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAY/B;;;GAGG;AACH,mDAAmD;AACnD,SAAgB,GAAG,CAAC,KAAe;IACjC,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,QAAQ,EAAE,GAAG,KAAK,CAAC;IAEzE,OAAO,CACL,gCACM,QAAQ,EACZ,SAAS,EAAE,IAAA,oBAAU,EAAC,aAAa,EAAE,SAAS,CAAC,EAC/C,KAAK,EAAE,KAAK,IAEX,QAAQ,CACL,CACP,CAAC;AACJ,CAAC;AAZD,kBAYC","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 Base\n */\n\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport type { CommonDivProps } from \"../utils/Props\";\n\n/** Properties for the [[Div]] component\n * @public\n * @deprecated in 4.12.x. Props of deprecated component {@link Div}.\n */\nexport interface DivProps extends CommonDivProps {\n /** Main CSS class name */\n mainClassName: string;\n}\n\n/** Base div element React component\n * @public\n * @deprecated in 4.12.x. Use HTMLDivElement instead i.e. `<div />`.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function Div(props: DivProps) {\n const { mainClassName, className, style, children, ...divProps } = props;\n\n return (\n <div\n {...divProps}\n className={classnames(mainClassName, className)}\n style={style}\n >\n {children}\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"Div.js","sourceRoot":"","sources":["../../../../src/core-react/base/Div.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAa/B;;;GAGG;AACH,mDAAmD;AACnD,SAAgB,GAAG,CAAC,KAAe;IACjC,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,QAAQ,EAAE,GAAG,KAAK,CAAC;IAEzE,OAAO,CACL,gCACM,QAAQ,EACZ,SAAS,EAAE,IAAA,oBAAU,EAAC,aAAa,EAAE,SAAS,CAAC,EAC/C,KAAK,EAAE,KAAK,IAEX,QAAQ,CACL,CACP,CAAC;AACJ,CAAC;AAZD,kBAYC","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 Base\n */\n\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport type { CommonDivProps } from \"../utils/Props\";\n\n/** Properties for the [[Div]] component\n * @public\n * @deprecated in 4.12.0. Props of deprecated component {@link Div}.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface DivProps extends CommonDivProps {\n /** Main CSS class name */\n mainClassName: string;\n}\n\n/** Base div element React component\n * @public\n * @deprecated in 4.12.0. Use HTMLDivElement instead i.e. `<div />`.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function Div(props: DivProps) {\n const { mainClassName, className, style, children, ...divProps } = props;\n\n return (\n <div\n {...divProps}\n className={classnames(mainClassName, className)}\n style={style}\n >\n {children}\n </div>\n );\n}\n"]}
@@ -5,7 +5,7 @@ import * as React from "react";
5
5
  import type { CommonDivProps } from "../utils/Props";
6
6
  /** Div element with Outside Click behavior
7
7
  * @public
8
- * @deprecated in 4.12.x. Use props of a basic component, like {@link https://itwinui.bentley.com/docs/popover iTwinUI popover `closeOnOutsideClick`} or {@link useOnOutsideClick} hook.
8
+ * @deprecated in 4.12.0. Use props of a basic component, like {@link https://itwinui.bentley.com/docs/popover iTwinUI popover `closeOnOutsideClick`} or {@link useOnOutsideClick} hook.
9
9
  */
10
10
  export declare const DivWithOutsideClick: {
11
11
  new (props: CommonDivProps & import("../hocs/withOnOutsideClick").WithOnOutsideClickProps): {
@@ -1 +1 @@
1
- {"version":3,"file":"DivWithOutsideClick.d.ts","sourceRoot":"","sources":["../../../../src/core-react/base/DivWithOutsideClick.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAE/B,CAAC"}
1
+ {"version":3,"file":"DivWithOutsideClick.d.ts","sourceRoot":"","sources":["../../../../src/core-react/base/DivWithOutsideClick.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD;;;GAGG;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAE/B,CAAC"}
@@ -12,7 +12,9 @@ const React = require("react");
12
12
  const withOnOutsideClick_1 = require("../hocs/withOnOutsideClick");
13
13
  /** Div element with Outside Click behavior
14
14
  * @public
15
- * @deprecated in 4.12.x. Use props of a basic component, like {@link https://itwinui.bentley.com/docs/popover iTwinUI popover `closeOnOutsideClick`} or {@link useOnOutsideClick} hook.
15
+ * @deprecated in 4.12.0. Use props of a basic component, like {@link https://itwinui.bentley.com/docs/popover iTwinUI popover `closeOnOutsideClick`} or {@link useOnOutsideClick} hook.
16
16
  */
17
- exports.DivWithOutsideClick = (0, withOnOutsideClick_1.withOnOutsideClick)((props) => React.createElement("div", { ...props }));
17
+ // eslint-disable-next-line deprecation/deprecation
18
+ exports.DivWithOutsideClick = (0, withOnOutsideClick_1.withOnOutsideClick)((props) => React.createElement("div", { ...props }) // eslint-disable-line deprecation/deprecation
19
+ );
18
20
  //# sourceMappingURL=DivWithOutsideClick.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DivWithOutsideClick.js","sourceRoot":"","sources":["../../../../src/core-react/base/DivWithOutsideClick.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,+BAA+B;AAC/B,mEAAgE;AAIhE;;;GAGG;AACU,QAAA,mBAAmB,GAAG,IAAA,uCAAkB,EACnD,CAAC,KAAqB,EAAE,EAAE,CAAC,gCAAS,KAAK,GAAI,CAC9C,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Base\n */\n\nimport * as React from \"react\";\nimport { withOnOutsideClick } from \"../hocs/withOnOutsideClick\";\nimport type { CommonDivProps } from \"../utils/Props\";\nimport type { useOnOutsideClick } from \"../utils/hooks/useOnOutsideClick\";\n\n/** Div element with Outside Click behavior\n * @public\n * @deprecated in 4.12.x. Use props of a basic component, like {@link https://itwinui.bentley.com/docs/popover iTwinUI popover `closeOnOutsideClick`} or {@link useOnOutsideClick} hook.\n */\nexport const DivWithOutsideClick = withOnOutsideClick(\n (props: CommonDivProps) => <div {...props} />\n);\n"]}
1
+ {"version":3,"file":"DivWithOutsideClick.js","sourceRoot":"","sources":["../../../../src/core-react/base/DivWithOutsideClick.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,+BAA+B;AAC/B,mEAAgE;AAIhE;;;GAGG;AACH,mDAAmD;AACtC,QAAA,mBAAmB,GAAG,IAAA,uCAAkB,EACnD,CAAC,KAAqB,EAAE,EAAE,CAAC,gCAAS,KAAK,GAAI,CAAC,8CAA8C;CAC7F,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Base\n */\n\nimport * as React from \"react\";\nimport { withOnOutsideClick } from \"../hocs/withOnOutsideClick\";\nimport type { CommonDivProps } from \"../utils/Props\";\nimport type { useOnOutsideClick } from \"../utils/hooks/useOnOutsideClick\";\n\n/** Div element with Outside Click behavior\n * @public\n * @deprecated in 4.12.0. Use props of a basic component, like {@link https://itwinui.bentley.com/docs/popover iTwinUI popover `closeOnOutsideClick`} or {@link useOnOutsideClick} hook.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport const DivWithOutsideClick = withOnOutsideClick(\n (props: CommonDivProps) => <div {...props} /> // eslint-disable-line deprecation/deprecation\n);\n"]}
@@ -6,7 +6,7 @@ import type { CommonDivProps } from "../utils/Props";
6
6
  /** Full height & width and centered React functional component.
7
7
  * Displays content centered vertically and horizontally and has a height and width of 100%.
8
8
  * @public
9
- * @deprecated in 4.12.x. Use CSS to style an element or {@link https://itwinui.bentley.com/docs/flex iTwinUI Flex} instead.
9
+ * @deprecated in 4.12.0. Use CSS to style an element or {@link https://itwinui.bentley.com/docs/flex iTwinUI Flex} instead.
10
10
  */
11
11
  export declare function FillCentered(props: CommonDivProps): React.JSX.Element;
12
12
  //# sourceMappingURL=FillCentered.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FillCentered.d.ts","sourceRoot":"","sources":["../../../../src/core-react/base/FillCentered.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,cAAc,qBAGjD"}
1
+ {"version":3,"file":"FillCentered.d.ts","sourceRoot":"","sources":["../../../../src/core-react/base/FillCentered.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD;;;;GAIG;AAEH,wBAAgB,YAAY,CAAC,KAAK,EAAE,cAAc,qBAGjD"}
@@ -13,8 +13,9 @@ const Div_1 = require("./Div");
13
13
  /** Full height & width and centered React functional component.
14
14
  * Displays content centered vertically and horizontally and has a height and width of 100%.
15
15
  * @public
16
- * @deprecated in 4.12.x. Use CSS to style an element or {@link https://itwinui.bentley.com/docs/flex iTwinUI Flex} instead.
16
+ * @deprecated in 4.12.0. Use CSS to style an element or {@link https://itwinui.bentley.com/docs/flex iTwinUI Flex} instead.
17
17
  */
18
+ // eslint-disable-next-line deprecation/deprecation
18
19
  function FillCentered(props) {
19
20
  // eslint-disable-next-line deprecation/deprecation
20
21
  return React.createElement(Div_1.Div, { ...props, mainClassName: "uicore-fill-centered" });
@@ -1 +1 @@
1
- {"version":3,"file":"FillCentered.js","sourceRoot":"","sources":["../../../../src/core-react/base/FillCentered.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,+BAA+B;AAE/B,+BAA4B;AAE5B;;;;GAIG;AACH,SAAgB,YAAY,CAAC,KAAqB;IAChD,mDAAmD;IACnD,OAAO,oBAAC,SAAG,OAAK,KAAK,EAAE,aAAa,EAAC,sBAAsB,GAAG,CAAC;AACjE,CAAC;AAHD,oCAGC","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 Base\n */\n\nimport * as React from \"react\";\nimport type { CommonDivProps } from \"../utils/Props\";\nimport { Div } from \"./Div\";\n\n/** Full height & width and centered React functional component.\n * Displays content centered vertically and horizontally and has a height and width of 100%.\n * @public\n * @deprecated in 4.12.x. Use CSS to style an element or {@link https://itwinui.bentley.com/docs/flex iTwinUI Flex} instead.\n */\nexport function FillCentered(props: CommonDivProps) {\n // eslint-disable-next-line deprecation/deprecation\n return <Div {...props} mainClassName=\"uicore-fill-centered\" />;\n}\n"]}
1
+ {"version":3,"file":"FillCentered.js","sourceRoot":"","sources":["../../../../src/core-react/base/FillCentered.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,+BAA+B;AAE/B,+BAA4B;AAE5B;;;;GAIG;AACH,mDAAmD;AACnD,SAAgB,YAAY,CAAC,KAAqB;IAChD,mDAAmD;IACnD,OAAO,oBAAC,SAAG,OAAK,KAAK,EAAE,aAAa,EAAC,sBAAsB,GAAG,CAAC;AACjE,CAAC;AAHD,oCAGC","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 Base\n */\n\nimport * as React from \"react\";\nimport type { CommonDivProps } from \"../utils/Props\";\nimport { Div } from \"./Div\";\n\n/** Full height & width and centered React functional component.\n * Displays content centered vertically and horizontally and has a height and width of 100%.\n * @public\n * @deprecated in 4.12.0. Use CSS to style an element or {@link https://itwinui.bentley.com/docs/flex iTwinUI Flex} instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function FillCentered(props: CommonDivProps) {\n // eslint-disable-next-line deprecation/deprecation\n return <Div {...props} mainClassName=\"uicore-fill-centered\" />;\n}\n"]}
@@ -7,7 +7,7 @@ import type { CommonDivProps } from "../utils/Props";
7
7
  * Wraps content onto multiple lines and
8
8
  * has the 'display: flex' and 'flex-wrap: wrap' CSS properties.
9
9
  * @public
10
- * @deprecated in 4.12.x. Use {@link https://itwinui.bentley.com/docs/flex iTwinUI Flex} instead.
10
+ * @deprecated in 4.12.0. Use {@link https://itwinui.bentley.com/docs/flex iTwinUI Flex} instead.
11
11
  */
12
12
  export declare function FlexWrapContainer(props: CommonDivProps): React.JSX.Element;
13
13
  //# sourceMappingURL=FlexWrapContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FlexWrapContainer.d.ts","sourceRoot":"","sources":["../../../../src/core-react/base/FlexWrapContainer.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,cAAc,qBAGtD"}
1
+ {"version":3,"file":"FlexWrapContainer.d.ts","sourceRoot":"","sources":["../../../../src/core-react/base/FlexWrapContainer.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD;;;;;GAKG;AAEH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,cAAc,qBAGtD"}
@@ -14,8 +14,9 @@ const Div_1 = require("./Div");
14
14
  * Wraps content onto multiple lines and
15
15
  * has the 'display: flex' and 'flex-wrap: wrap' CSS properties.
16
16
  * @public
17
- * @deprecated in 4.12.x. Use {@link https://itwinui.bentley.com/docs/flex iTwinUI Flex} instead.
17
+ * @deprecated in 4.12.0. Use {@link https://itwinui.bentley.com/docs/flex iTwinUI Flex} instead.
18
18
  */
19
+ // eslint-disable-next-line deprecation/deprecation
19
20
  function FlexWrapContainer(props) {
20
21
  // eslint-disable-next-line deprecation/deprecation
21
22
  return React.createElement(Div_1.Div, { ...props, mainClassName: "uicore-flex-wrap-container" });
@@ -1 +1 @@
1
- {"version":3,"file":"FlexWrapContainer.js","sourceRoot":"","sources":["../../../../src/core-react/base/FlexWrapContainer.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,+BAA+B;AAE/B,+BAA4B;AAE5B;;;;;GAKG;AACH,SAAgB,iBAAiB,CAAC,KAAqB;IACrD,mDAAmD;IACnD,OAAO,oBAAC,SAAG,OAAK,KAAK,EAAE,aAAa,EAAC,4BAA4B,GAAG,CAAC;AACvE,CAAC;AAHD,8CAGC","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 Base\n */\n\nimport * as React from \"react\";\nimport type { CommonDivProps } from \"../utils/Props\";\nimport { Div } from \"./Div\";\n\n/** Flex Wrap Container React functional component.\n * Wraps content onto multiple lines and\n * has the 'display: flex' and 'flex-wrap: wrap' CSS properties.\n * @public\n * @deprecated in 4.12.x. Use {@link https://itwinui.bentley.com/docs/flex iTwinUI Flex} instead.\n */\nexport function FlexWrapContainer(props: CommonDivProps) {\n // eslint-disable-next-line deprecation/deprecation\n return <Div {...props} mainClassName=\"uicore-flex-wrap-container\" />;\n}\n"]}
1
+ {"version":3,"file":"FlexWrapContainer.js","sourceRoot":"","sources":["../../../../src/core-react/base/FlexWrapContainer.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,+BAA+B;AAE/B,+BAA4B;AAE5B;;;;;GAKG;AACH,mDAAmD;AACnD,SAAgB,iBAAiB,CAAC,KAAqB;IACrD,mDAAmD;IACnD,OAAO,oBAAC,SAAG,OAAK,KAAK,EAAE,aAAa,EAAC,4BAA4B,GAAG,CAAC;AACvE,CAAC;AAHD,8CAGC","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 Base\n */\n\nimport * as React from \"react\";\nimport type { CommonDivProps } from \"../utils/Props\";\nimport { Div } from \"./Div\";\n\n/** Flex Wrap Container React functional component.\n * Wraps content onto multiple lines and\n * has the 'display: flex' and 'flex-wrap: wrap' CSS properties.\n * @public\n * @deprecated in 4.12.0. Use {@link https://itwinui.bentley.com/docs/flex iTwinUI Flex} instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function FlexWrapContainer(props: CommonDivProps) {\n // eslint-disable-next-line deprecation/deprecation\n return <Div {...props} mainClassName=\"uicore-flex-wrap-container\" />;\n}\n"]}
@@ -5,14 +5,14 @@ import * as React from "react";
5
5
  import type { CommonProps } from "../utils/Props";
6
6
  /** Properties for the [[Gap]] component.
7
7
  * @public
8
- * @deprecated in 4.12.x. Props of deprecated component {@link Gap}.
8
+ * @deprecated in 4.12.0. Props of deprecated component {@link Gap}.
9
9
  */
10
10
  export interface GapProps extends CommonProps {
11
11
  size?: string;
12
12
  }
13
13
  /** Horizontal gap or space React component. Defaults to 10px.
14
14
  * @public
15
- * @deprecated in 4.12.x. Use {@link https://itwinui.bentley.com/docs/flex iTwinUI Flex `gap`} or {@link https://itwinui.bentley.com/docs/variables#size iTwinUI size variables} instead.
15
+ * @deprecated in 4.12.0. Use {@link https://itwinui.bentley.com/docs/flex iTwinUI Flex `gap`} or {@link https://itwinui.bentley.com/docs/variables#size iTwinUI size variables} instead.
16
16
  */
17
17
  export declare function Gap(props: GapProps): React.JSX.Element;
18
18
  //# sourceMappingURL=Gap.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Gap.d.ts","sourceRoot":"","sources":["../../../../src/core-react/base/Gap.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD;;;GAGG;AACH,MAAM,WAAW,QAAS,SAAQ,WAAW;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AAEH,wBAAgB,GAAG,CAAC,KAAK,EAAE,QAAQ,qBAKlC"}
1
+ {"version":3,"file":"Gap.d.ts","sourceRoot":"","sources":["../../../../src/core-react/base/Gap.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD;;;GAGG;AAEH,MAAM,WAAW,QAAS,SAAQ,WAAW;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AAEH,wBAAgB,GAAG,CAAC,KAAK,EAAE,QAAQ,qBAKlC"}
@@ -11,7 +11,7 @@ exports.Gap = void 0;
11
11
  const React = require("react");
12
12
  /** Horizontal gap or space React component. Defaults to 10px.
13
13
  * @public
14
- * @deprecated in 4.12.x. Use {@link https://itwinui.bentley.com/docs/flex iTwinUI Flex `gap`} or {@link https://itwinui.bentley.com/docs/variables#size iTwinUI size variables} instead.
14
+ * @deprecated in 4.12.0. Use {@link https://itwinui.bentley.com/docs/flex iTwinUI Flex `gap`} or {@link https://itwinui.bentley.com/docs/variables#size iTwinUI size variables} instead.
15
15
  */
16
16
  // eslint-disable-next-line deprecation/deprecation
17
17
  function Gap(props) {
@@ -1 +1 @@
1
- {"version":3,"file":"Gap.js","sourceRoot":"","sources":["../../../../src/core-react/base/Gap.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,+BAA+B;AAW/B;;;GAGG;AACH,mDAAmD;AACnD,SAAgB,GAAG,CAAC,KAAe;IACjC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IACvC,MAAM,WAAW,GAAG,IAAI,IAAI,MAAM,CAAC;IAEnC,OAAO,8BAAM,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,WAAW,EAAE,KAAM,IAAI,GAAI,CAAC;AAC9D,CAAC;AALD,kBAKC","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 Base\n */\n\nimport * as React from \"react\";\nimport type { CommonProps } from \"../utils/Props\";\n\n/** Properties for the [[Gap]] component.\n * @public\n * @deprecated in 4.12.x. Props of deprecated component {@link Gap}.\n */\nexport interface GapProps extends CommonProps {\n size?: string;\n}\n\n/** Horizontal gap or space React component. Defaults to 10px.\n * @public\n * @deprecated in 4.12.x. Use {@link https://itwinui.bentley.com/docs/flex iTwinUI Flex `gap`} or {@link https://itwinui.bentley.com/docs/variables#size iTwinUI size variables} instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function Gap(props: GapProps) {\n const { size, style, ...rest } = props;\n const paddingLeft = size ?? \"10px\";\n\n return <span style={{ ...style, paddingLeft }} {...rest} />;\n}\n"]}
1
+ {"version":3,"file":"Gap.js","sourceRoot":"","sources":["../../../../src/core-react/base/Gap.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,+BAA+B;AAY/B;;;GAGG;AACH,mDAAmD;AACnD,SAAgB,GAAG,CAAC,KAAe;IACjC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IACvC,MAAM,WAAW,GAAG,IAAI,IAAI,MAAM,CAAC;IAEnC,OAAO,8BAAM,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,WAAW,EAAE,KAAM,IAAI,GAAI,CAAC;AAC9D,CAAC;AALD,kBAKC","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 Base\n */\n\nimport * as React from \"react\";\nimport type { CommonProps } from \"../utils/Props\";\n\n/** Properties for the [[Gap]] component.\n * @public\n * @deprecated in 4.12.0. Props of deprecated component {@link Gap}.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport interface GapProps extends CommonProps {\n size?: string;\n}\n\n/** Horizontal gap or space React component. Defaults to 10px.\n * @public\n * @deprecated in 4.12.0. Use {@link https://itwinui.bentley.com/docs/flex iTwinUI Flex `gap`} or {@link https://itwinui.bentley.com/docs/variables#size iTwinUI size variables} instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function Gap(props: GapProps) {\n const { size, style, ...rest } = props;\n const paddingLeft = size ?? \"10px\";\n\n return <span style={{ ...style, paddingLeft }} {...rest} />;\n}\n"]}
@@ -7,7 +7,7 @@ import type { CommonDivProps } from "../utils/Props";
7
7
  * Scrolls content vertically and
8
8
  * has the 'overflow-y: auto' CSS property and has a height and width of 100%.
9
9
  * @public
10
- * @deprecated in 4.12.x. Use {@link https://developer.mozilla.org/en-US/docs/Web/CSS/overflow overflow property} instead.
10
+ * @deprecated in 4.12.0. Use {@link https://developer.mozilla.org/en-US/docs/Web/CSS/overflow overflow property} instead.
11
11
  */
12
12
  export declare function ScrollView(props: CommonDivProps): React.JSX.Element;
13
13
  //# sourceMappingURL=ScrollView.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollView.d.ts","sourceRoot":"","sources":["../../../../src/core-react/base/ScrollView.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,cAAc,qBAG/C"}
1
+ {"version":3,"file":"ScrollView.d.ts","sourceRoot":"","sources":["../../../../src/core-react/base/ScrollView.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD;;;;;GAKG;AAEH,wBAAgB,UAAU,CAAC,KAAK,EAAE,cAAc,qBAG/C"}
@@ -14,8 +14,9 @@ const Div_1 = require("./Div");
14
14
  * Scrolls content vertically and
15
15
  * has the 'overflow-y: auto' CSS property and has a height and width of 100%.
16
16
  * @public
17
- * @deprecated in 4.12.x. Use {@link https://developer.mozilla.org/en-US/docs/Web/CSS/overflow overflow property} instead.
17
+ * @deprecated in 4.12.0. Use {@link https://developer.mozilla.org/en-US/docs/Web/CSS/overflow overflow property} instead.
18
18
  */
19
+ // eslint-disable-next-line deprecation/deprecation
19
20
  function ScrollView(props) {
20
21
  // eslint-disable-next-line deprecation/deprecation
21
22
  return React.createElement(Div_1.Div, { ...props, mainClassName: "uicore-scrollview" });
@@ -1 +1 @@
1
- {"version":3,"file":"ScrollView.js","sourceRoot":"","sources":["../../../../src/core-react/base/ScrollView.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,+BAA+B;AAE/B,+BAA4B;AAE5B;;;;;GAKG;AACH,SAAgB,UAAU,CAAC,KAAqB;IAC9C,mDAAmD;IACnD,OAAO,oBAAC,SAAG,OAAK,KAAK,EAAE,aAAa,EAAC,mBAAmB,GAAG,CAAC;AAC9D,CAAC;AAHD,gCAGC","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 Base\n */\n\nimport * as React from \"react\";\nimport type { CommonDivProps } from \"../utils/Props\";\nimport { Div } from \"./Div\";\n\n/** Scroll View React functional component.\n * Scrolls content vertically and\n * has the 'overflow-y: auto' CSS property and has a height and width of 100%.\n * @public\n * @deprecated in 4.12.x. Use {@link https://developer.mozilla.org/en-US/docs/Web/CSS/overflow overflow property} instead.\n */\nexport function ScrollView(props: CommonDivProps) {\n // eslint-disable-next-line deprecation/deprecation\n return <Div {...props} mainClassName=\"uicore-scrollview\" />;\n}\n"]}
1
+ {"version":3,"file":"ScrollView.js","sourceRoot":"","sources":["../../../../src/core-react/base/ScrollView.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,+BAA+B;AAE/B,+BAA4B;AAE5B;;;;;GAKG;AACH,mDAAmD;AACnD,SAAgB,UAAU,CAAC,KAAqB;IAC9C,mDAAmD;IACnD,OAAO,oBAAC,SAAG,OAAK,KAAK,EAAE,aAAa,EAAC,mBAAmB,GAAG,CAAC;AAC9D,CAAC;AAHD,gCAGC","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 Base\n */\n\nimport * as React from \"react\";\nimport type { CommonDivProps } from \"../utils/Props\";\nimport { Div } from \"./Div\";\n\n/** Scroll View React functional component.\n * Scrolls content vertically and\n * has the 'overflow-y: auto' CSS property and has a height and width of 100%.\n * @public\n * @deprecated in 4.12.0. Use {@link https://developer.mozilla.org/en-US/docs/Web/CSS/overflow overflow property} instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function ScrollView(props: CommonDivProps) {\n // eslint-disable-next-line deprecation/deprecation\n return <Div {...props} mainClassName=\"uicore-scrollview\" />;\n}\n"]}
@@ -5,7 +5,7 @@ import "./UnderlinedButton.scss";
5
5
  import * as React from "react";
6
6
  /** Properties for the [[UnderlinedButton]] React component
7
7
  * @public
8
- * @deprecated in 4.12.x. Props of deprecated component {@link UnderlinedButton}.
8
+ * @deprecated in 4.12.0. Props of deprecated component {@link UnderlinedButton}.
9
9
  */
10
10
  export interface UnderlinedButtonProps {
11
11
  /** String that will be rendered by the button */
@@ -21,7 +21,7 @@ export interface UnderlinedButtonProps {
21
21
  }
22
22
  /** A React component that makes text clickable and underlined
23
23
  * @public
24
- * @deprecated in 4.13.x. Use {@link https://itwinui.bentley.com/docs/anchor iTwinUI anchor} or {@link https://itwinui.bentley.com/docs/button button} instead.
24
+ * @deprecated in 4.13.0. Use {@link https://itwinui.bentley.com/docs/anchor iTwinUI anchor} or {@link https://itwinui.bentley.com/docs/button button} instead.
25
25
  */
26
26
  export declare function UnderlinedButton(props: UnderlinedButtonProps): React.JSX.Element;
27
27
  //# sourceMappingURL=UnderlinedButton.d.ts.map
@@ -14,7 +14,7 @@ const React = require("react");
14
14
  const ts_key_enum_1 = require("ts-key-enum");
15
15
  /** A React component that makes text clickable and underlined
16
16
  * @public
17
- * @deprecated in 4.13.x. Use {@link https://itwinui.bentley.com/docs/anchor iTwinUI anchor} or {@link https://itwinui.bentley.com/docs/button button} instead.
17
+ * @deprecated in 4.13.0. Use {@link https://itwinui.bentley.com/docs/anchor iTwinUI anchor} or {@link https://itwinui.bentley.com/docs/button button} instead.
18
18
  */
19
19
  // eslint-disable-next-line deprecation/deprecation
20
20
  function UnderlinedButton(props) {
@@ -1 +1 @@
1
- {"version":3,"file":"UnderlinedButton.js","sourceRoot":"","sources":["../../../../src/core-react/button/UnderlinedButton.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,mCAAiC;AACjC,2CAAoC;AACpC,+BAA+B;AAC/B,6CAAkC;AAmBlC;;;GAGG;AACH,mDAAmD;AACnD,SAAgB,gBAAgB,CAAC,KAA4B;IAC3D,MAAM,WAAW,GAAG,KAAK,CAAC,WAAW,CACnC,CAAC,KAA0B,EAAE,EAAE;QAC7B,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC;QAEtB,QAAQ,GAAG,EAAE,CAAC;YACZ,KAAK,iBAAG,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;YACzB,KAAK,GAAG;gBACN,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC;gBACvC,MAAM;QACV,CAAC;IACH,CAAC,EACD,CAAC,KAAK,CAAC,CACR,CAAC;IAEF,MAAM,WAAW,GAAG,KAAK,CAAC,WAAW,CACnC,CAAC,CAAmB,EAAE,EAAE;QACtB,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAClC,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC;IACzC,CAAC,EACD,CAAC,KAAK,CAAC,CACR,CAAC;IAEF,MAAM,SAAS,GAAG,IAAA,oBAAU,EAC1B,wBAAwB,EACxB,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAC9C,CAAC;IAEF,OAAO,CACL,8BACE,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,CAAC,EACX,IAAI,EAAC,MAAM,IAEV,KAAK,CAAC,QAAQ,CACV,CACR,CAAC;AACJ,CAAC;AAxCD,4CAwCC","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 Button\n */\n\nimport \"./UnderlinedButton.scss\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport { Key } from \"ts-key-enum\";\n\n/** Properties for the [[UnderlinedButton]] React component\n * @public\n * @deprecated in 4.12.x. Props of deprecated component {@link UnderlinedButton}.\n */\nexport interface UnderlinedButtonProps {\n /** String that will be rendered by the button */\n children: string | React.ReactNode;\n /** Additional className */\n className?: string;\n /** Title of the button */\n title?: string;\n /** Callback to onClick event */\n onClick?: (e: React.MouseEvent) => void;\n /** Callback to activate */\n onActivate?: () => void;\n}\n\n/** A React component that makes text clickable and underlined\n * @public\n * @deprecated in 4.13.x. Use {@link https://itwinui.bentley.com/docs/anchor iTwinUI anchor} or {@link https://itwinui.bentley.com/docs/button button} instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function UnderlinedButton(props: UnderlinedButtonProps) {\n const handleKeyUp = React.useCallback(\n (event: React.KeyboardEvent) => {\n const key = event.key;\n\n switch (key) {\n case Key.Enter.valueOf():\n case \" \":\n props.onActivate && props.onActivate();\n break;\n }\n },\n [props]\n );\n\n const handleClick = React.useCallback(\n (e: React.MouseEvent) => {\n props.onClick && props.onClick(e);\n props.onActivate && props.onActivate();\n },\n [props]\n );\n\n const className = classnames(\n \"core-underlined-button\",\n props.className ? props.className : undefined\n );\n\n return (\n <span\n className={className}\n title={props.title}\n onClick={handleClick}\n onKeyUp={handleKeyUp}\n tabIndex={0}\n role=\"link\"\n >\n {props.children}\n </span>\n );\n}\n"]}
1
+ {"version":3,"file":"UnderlinedButton.js","sourceRoot":"","sources":["../../../../src/core-react/button/UnderlinedButton.tsx"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG;;GAEG;;;AAEH,mCAAiC;AACjC,2CAAoC;AACpC,+BAA+B;AAC/B,6CAAkC;AAmBlC;;;GAGG;AACH,mDAAmD;AACnD,SAAgB,gBAAgB,CAAC,KAA4B;IAC3D,MAAM,WAAW,GAAG,KAAK,CAAC,WAAW,CACnC,CAAC,KAA0B,EAAE,EAAE;QAC7B,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC;QAEtB,QAAQ,GAAG,EAAE,CAAC;YACZ,KAAK,iBAAG,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;YACzB,KAAK,GAAG;gBACN,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC;gBACvC,MAAM;QACV,CAAC;IACH,CAAC,EACD,CAAC,KAAK,CAAC,CACR,CAAC;IAEF,MAAM,WAAW,GAAG,KAAK,CAAC,WAAW,CACnC,CAAC,CAAmB,EAAE,EAAE;QACtB,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAClC,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC;IACzC,CAAC,EACD,CAAC,KAAK,CAAC,CACR,CAAC;IAEF,MAAM,SAAS,GAAG,IAAA,oBAAU,EAC1B,wBAAwB,EACxB,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAC9C,CAAC;IAEF,OAAO,CACL,8BACE,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,CAAC,EACX,IAAI,EAAC,MAAM,IAEV,KAAK,CAAC,QAAQ,CACV,CACR,CAAC;AACJ,CAAC;AAxCD,4CAwCC","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 Button\n */\n\nimport \"./UnderlinedButton.scss\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport { Key } from \"ts-key-enum\";\n\n/** Properties for the [[UnderlinedButton]] React component\n * @public\n * @deprecated in 4.12.0. Props of deprecated component {@link UnderlinedButton}.\n */\nexport interface UnderlinedButtonProps {\n /** String that will be rendered by the button */\n children: string | React.ReactNode;\n /** Additional className */\n className?: string;\n /** Title of the button */\n title?: string;\n /** Callback to onClick event */\n onClick?: (e: React.MouseEvent) => void;\n /** Callback to activate */\n onActivate?: () => void;\n}\n\n/** A React component that makes text clickable and underlined\n * @public\n * @deprecated in 4.13.0. Use {@link https://itwinui.bentley.com/docs/anchor iTwinUI anchor} or {@link https://itwinui.bentley.com/docs/button button} instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport function UnderlinedButton(props: UnderlinedButtonProps) {\n const handleKeyUp = React.useCallback(\n (event: React.KeyboardEvent) => {\n const key = event.key;\n\n switch (key) {\n case Key.Enter.valueOf():\n case \" \":\n props.onActivate && props.onActivate();\n break;\n }\n },\n [props]\n );\n\n const handleClick = React.useCallback(\n (e: React.MouseEvent) => {\n props.onClick && props.onClick(e);\n props.onActivate && props.onActivate();\n },\n [props]\n );\n\n const className = classnames(\n \"core-underlined-button\",\n props.className ? props.className : undefined\n );\n\n return (\n <span\n className={className}\n title={props.title}\n onClick={handleClick}\n onKeyUp={handleKeyUp}\n tabIndex={0}\n role=\"link\"\n >\n {props.children}\n </span>\n );\n}\n"]}
@@ -6,7 +6,7 @@ import * as React from "react";
6
6
  import type { CommonProps } from "../utils/Props";
7
7
  /** Properties for the [[CheckListBoxItem]] component
8
8
  * @public
9
- * @deprecated in 4.12.x. Props of deprecated component {@link CheckListBoxItem}.
9
+ * @deprecated in 4.12.0. Props of deprecated component {@link CheckListBoxItem}.
10
10
  */
11
11
  export interface CheckListBoxItemProps extends CommonProps {
12
12
  /** Label */
@@ -22,19 +22,19 @@ export interface CheckListBoxItemProps extends CommonProps {
22
22
  }
23
23
  /** Item with a checkbox added to a [[CheckListBox]].
24
24
  * @public
25
- * @deprecated in 4.12.x. Use {@link https://itwinui.bentley.com/docs/list iTwinUI list} instead.
25
+ * @deprecated in 4.12.0. Use {@link https://itwinui.bentley.com/docs/list iTwinUI list} instead.
26
26
  */
27
27
  export declare class CheckListBoxItem extends React.PureComponent<CheckListBoxItemProps> {
28
28
  render(): React.JSX.Element;
29
29
  }
30
30
  /** Separator added to a [[CheckListBox]].
31
31
  * @public
32
- * @deprecated in 4.12.x. Use {@link https://itwinui.bentley.com/docs/list iTwinUI list} instead.
32
+ * @deprecated in 4.12.0. Use {@link https://itwinui.bentley.com/docs/list iTwinUI list} instead.
33
33
  */
34
34
  export declare function CheckListBoxSeparator(): React.JSX.Element;
35
35
  /** React component showing a list of Checkbox items.
36
36
  * @public
37
- * @deprecated in 4.12.x. Use {@link https://itwinui.bentley.com/docs/list iTwinUI list} instead.
37
+ * @deprecated in 4.12.0. Use {@link https://itwinui.bentley.com/docs/list iTwinUI list} instead.
38
38
  */
39
39
  export declare class CheckListBox extends React.PureComponent<CommonProps & {
40
40
  /** Content */
@@ -1 +1 @@
1
- {"version":3,"file":"CheckListBox.d.ts","sourceRoot":"","sources":["../../../../src/core-react/checklistbox/CheckListBox.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,qBAAqB,CAAC;AAE7B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD;;;GAGG;AACH,MAAM,WAAW,qBAAsB,SAAQ,WAAW;IACxD,YAAY;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,mDAAmD;IACnD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4CAA4C;IAC5C,OAAO,CAAC,EAAE,MAAM,GAAG,CAAC;IACpB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,GAAG,CAAC;CAC5D;AAED;;;GAGG;AAEH,qBAAa,gBAAiB,SAAQ,KAAK,CAAC,aAAa,CAAC,qBAAqB,CAAC;IAC9D,MAAM;CAsBvB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,sBAEpC;AAED;;;GAGG;AACH,qBAAa,YAAa,SAAQ,KAAK,CAAC,aAAa,CACnD,WAAW,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