@itwin/core-react 4.0.0-dev.2 → 4.0.0-dev.4

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 (1290) hide show
  1. package/CHANGELOG.md +93 -1
  2. package/LICENSE.md +1 -1
  3. package/lib/cjs/core-react/UiCore.d.ts +40 -40
  4. package/lib/cjs/core-react/UiCore.js +85 -85
  5. package/lib/cjs/core-react/UiCore.js.map +1 -1
  6. package/lib/cjs/core-react/_geometry.scss +70 -70
  7. package/lib/cjs/core-react/_helpers.scss +51 -51
  8. package/lib/cjs/core-react/_math.scss +13 -13
  9. package/lib/cjs/core-react/_scrollbar.scss +51 -51
  10. package/lib/cjs/core-react/_typography.scss +45 -44
  11. package/lib/cjs/core-react/_z-index.scss +65 -65
  12. package/lib/cjs/core-react/autosuggest/AutoSuggest.d.ts +96 -96
  13. package/lib/cjs/core-react/autosuggest/AutoSuggest.js +174 -174
  14. package/lib/cjs/core-react/autosuggest/AutoSuggest.js.map +1 -1
  15. package/lib/cjs/core-react/autosuggest/AutoSuggest.scss +83 -82
  16. package/lib/cjs/core-react/badge/Badge.d.ts +18 -18
  17. package/lib/cjs/core-react/badge/Badge.js +26 -26
  18. package/lib/cjs/core-react/badge/Badge.js.map +1 -1
  19. package/lib/cjs/core-react/badge/Badge.scss +13 -13
  20. package/lib/cjs/core-react/badge/BadgeUtilities.d.ts +12 -12
  21. package/lib/cjs/core-react/badge/BadgeUtilities.js +38 -38
  22. package/lib/cjs/core-react/badge/BadgeUtilities.js.map +1 -1
  23. package/lib/cjs/core-react/badge/BetaBadge.d.ts +10 -10
  24. package/lib/cjs/core-react/badge/BetaBadge.js +23 -23
  25. package/lib/cjs/core-react/badge/BetaBadge.js.map +1 -1
  26. package/lib/cjs/core-react/badge/BetaBadge.scss +9 -9
  27. package/lib/cjs/core-react/badge/NewBadge.d.ts +10 -10
  28. package/lib/cjs/core-react/badge/NewBadge.js +23 -23
  29. package/lib/cjs/core-react/badge/NewBadge.js.map +1 -1
  30. package/lib/cjs/core-react/badge/NewBadge.scss +9 -9
  31. package/lib/cjs/core-react/base/Centered.d.ts +10 -10
  32. package/lib/cjs/core-react/base/Centered.js +20 -20
  33. package/lib/cjs/core-react/base/Centered.js.map +1 -1
  34. package/lib/cjs/core-react/base/Div.d.ts +16 -16
  35. package/lib/cjs/core-react/base/Div.js +20 -20
  36. package/lib/cjs/core-react/base/Div.js.map +1 -1
  37. package/lib/cjs/core-react/base/DivWithOutsideClick.d.ts +79 -79
  38. package/lib/cjs/core-react/base/DivWithOutsideClick.js +16 -16
  39. package/lib/cjs/core-react/base/DivWithOutsideClick.js.map +1 -1
  40. package/lib/cjs/core-react/base/FillCentered.d.ts +10 -10
  41. package/lib/cjs/core-react/base/FillCentered.js +20 -20
  42. package/lib/cjs/core-react/base/FillCentered.js.map +1 -1
  43. package/lib/cjs/core-react/base/FlexWrapContainer.d.ts +11 -11
  44. package/lib/cjs/core-react/base/FlexWrapContainer.js +21 -21
  45. package/lib/cjs/core-react/base/FlexWrapContainer.js.map +1 -1
  46. package/lib/cjs/core-react/base/Gap.d.ts +15 -15
  47. package/lib/cjs/core-react/base/Gap.js +20 -20
  48. package/lib/cjs/core-react/base/Gap.js.map +1 -1
  49. package/lib/cjs/core-react/base/PointerEvents.d.ts +7 -7
  50. package/lib/cjs/core-react/base/PointerEvents.js +17 -17
  51. package/lib/cjs/core-react/base/PointerEvents.js.map +1 -1
  52. package/lib/cjs/core-react/base/ScrollView.d.ts +11 -11
  53. package/lib/cjs/core-react/base/ScrollView.js +21 -21
  54. package/lib/cjs/core-react/base/ScrollView.js.map +1 -1
  55. package/lib/cjs/core-react/base/base.scss +42 -42
  56. package/lib/cjs/core-react/base/classes.scss +13 -13
  57. package/lib/cjs/core-react/base/index.scss +5 -5
  58. package/lib/cjs/core-react/button/Button.d.ts +48 -0
  59. package/lib/cjs/core-react/button/Button.d.ts.map +1 -0
  60. package/lib/cjs/core-react/button/Button.js +86 -0
  61. package/lib/cjs/core-react/button/Button.js.map +1 -0
  62. package/lib/cjs/core-react/button/UnderlinedButton.d.ts +24 -24
  63. package/lib/cjs/core-react/button/UnderlinedButton.js +35 -35
  64. package/lib/cjs/core-react/button/UnderlinedButton.js.map +1 -1
  65. package/lib/cjs/core-react/button/UnderlinedButton.scss +32 -32
  66. package/lib/cjs/core-react/button/blue-large.scss +12 -12
  67. package/lib/cjs/core-react/button/blue.scss +25 -25
  68. package/lib/cjs/core-react/button/button.scss +81 -70
  69. package/lib/cjs/core-react/button/classes.scss +14 -14
  70. package/lib/cjs/core-react/button/disabled-large.scss +12 -12
  71. package/lib/cjs/core-react/button/disabled.scss +17 -17
  72. package/lib/cjs/core-react/button/hollow-large.scss +13 -13
  73. package/lib/cjs/core-react/button/hollow.scss +30 -30
  74. package/lib/cjs/core-react/button/index.scss +14 -14
  75. package/lib/cjs/core-react/button/primary-large.scss +12 -12
  76. package/lib/cjs/core-react/button/primary.scss +25 -25
  77. package/lib/cjs/core-react/button/variables.scss +19 -22
  78. package/lib/cjs/core-react/checkbox/Checkbox.d.ts +57 -0
  79. package/lib/cjs/core-react/checkbox/Checkbox.d.ts.map +1 -0
  80. package/lib/cjs/core-react/checkbox/Checkbox.js +65 -0
  81. package/lib/cjs/core-react/checkbox/Checkbox.js.map +1 -0
  82. package/lib/cjs/core-react/checkbox/checkbox.scss +129 -124
  83. package/lib/cjs/core-react/checkbox/classes.scss +8 -8
  84. package/lib/cjs/core-react/checkbox/index.scss +8 -8
  85. package/lib/cjs/core-react/checklistbox/CheckListBox.d.ts +37 -40
  86. package/lib/cjs/core-react/checklistbox/CheckListBox.d.ts.map +1 -1
  87. package/lib/cjs/core-react/checklistbox/CheckListBox.js +42 -42
  88. package/lib/cjs/core-react/checklistbox/CheckListBox.js.map +1 -1
  89. package/lib/cjs/core-react/checklistbox/CheckListBox.scss +22 -22
  90. package/lib/cjs/core-react/classes.scss +18 -14
  91. package/lib/cjs/core-react/colorthemes.scss +58 -90
  92. package/lib/cjs/core-react/colorvariables.scss +116 -154
  93. package/lib/cjs/core-react/contextmenu/ContextMenu.d.ts +91 -93
  94. package/lib/cjs/core-react/contextmenu/ContextMenu.d.ts.map +1 -1
  95. package/lib/cjs/core-react/contextmenu/ContextMenu.js +364 -364
  96. package/lib/cjs/core-react/contextmenu/ContextMenu.js.map +1 -1
  97. package/lib/cjs/core-react/contextmenu/ContextMenu.scss +238 -237
  98. package/lib/cjs/core-react/contextmenu/ContextMenuDirection.d.ts +18 -18
  99. package/lib/cjs/core-react/contextmenu/ContextMenuDirection.js +26 -26
  100. package/lib/cjs/core-react/contextmenu/ContextMenuDirection.js.map +1 -1
  101. package/lib/cjs/core-react/contextmenu/ContextMenuDivider.d.ts +12 -12
  102. package/lib/cjs/core-react/contextmenu/ContextMenuDivider.js +23 -23
  103. package/lib/cjs/core-react/contextmenu/ContextMenuDivider.js.map +1 -1
  104. package/lib/cjs/core-react/contextmenu/ContextMenuItem.d.ts +61 -61
  105. package/lib/cjs/core-react/contextmenu/ContextMenuItem.js +108 -108
  106. package/lib/cjs/core-react/contextmenu/ContextMenuItem.js.map +1 -1
  107. package/lib/cjs/core-react/contextmenu/ContextSubMenu.d.ts +51 -51
  108. package/lib/cjs/core-react/contextmenu/ContextSubMenu.js +159 -159
  109. package/lib/cjs/core-react/contextmenu/ContextSubMenu.js.map +1 -1
  110. package/lib/cjs/core-react/contextmenu/GlobalContextMenu.d.ts +34 -34
  111. package/lib/cjs/core-react/contextmenu/GlobalContextMenu.js +59 -59
  112. package/lib/cjs/core-react/contextmenu/GlobalContextMenu.js.map +1 -1
  113. package/lib/cjs/core-react/contextmenu/PopupContextMenu.d.ts +53 -53
  114. package/lib/cjs/core-react/contextmenu/PopupContextMenu.js +55 -55
  115. package/lib/cjs/core-react/contextmenu/PopupContextMenu.js.map +1 -1
  116. package/lib/cjs/core-react/contextmenu/TildeFinder.d.ts +18 -18
  117. package/lib/cjs/core-react/contextmenu/TildeFinder.js +70 -70
  118. package/lib/cjs/core-react/contextmenu/TildeFinder.js.map +1 -1
  119. package/lib/cjs/core-react/dialog/Dialog.d.ts +132 -132
  120. package/lib/cjs/core-react/dialog/Dialog.js +366 -366
  121. package/lib/cjs/core-react/dialog/Dialog.js.map +1 -1
  122. package/lib/cjs/core-react/dialog/Dialog.scss +245 -244
  123. package/lib/cjs/core-react/dialog/DialogButtonDef.d.ts +47 -0
  124. package/lib/cjs/core-react/dialog/DialogButtonDef.d.ts.map +1 -0
  125. package/lib/cjs/core-react/dialog/DialogButtonDef.js +38 -0
  126. package/lib/cjs/core-react/dialog/DialogButtonDef.js.map +1 -0
  127. package/lib/cjs/core-react/dialog/GlobalDialog.d.ts +28 -28
  128. package/lib/cjs/core-react/dialog/GlobalDialog.js +53 -53
  129. package/lib/cjs/core-react/dialog/GlobalDialog.js.map +1 -1
  130. package/lib/cjs/core-react/elementseparator/ElementSeparator.d.ts +41 -41
  131. package/lib/cjs/core-react/elementseparator/ElementSeparator.js +163 -163
  132. package/lib/cjs/core-react/elementseparator/ElementSeparator.js.map +1 -1
  133. package/lib/cjs/core-react/elementseparator/ElementSeparator.scss +85 -85
  134. package/lib/cjs/core-react/enums/Alignment.d.ts +22 -22
  135. package/lib/cjs/core-react/enums/Alignment.js +31 -31
  136. package/lib/cjs/core-react/enums/Alignment.js.map +1 -1
  137. package/lib/cjs/core-react/enums/CheckBoxState.d.ts +20 -20
  138. package/lib/cjs/core-react/enums/CheckBoxState.js +19 -19
  139. package/lib/cjs/core-react/enums/CheckBoxState.js.map +1 -1
  140. package/lib/cjs/core-react/enums/Orientation.d.ts +11 -11
  141. package/lib/cjs/core-react/enums/Orientation.js +19 -19
  142. package/lib/cjs/core-react/enums/Orientation.js.map +1 -1
  143. package/lib/cjs/core-react/enums/SortDirection.d.ts +12 -12
  144. package/lib/cjs/core-react/enums/SortDirection.js +20 -20
  145. package/lib/cjs/core-react/enums/SortDirection.js.map +1 -1
  146. package/lib/cjs/core-react/enums/TimeFormat.d.ts +14 -14
  147. package/lib/cjs/core-react/enums/TimeFormat.js +22 -22
  148. package/lib/cjs/core-react/enums/TimeFormat.js.map +1 -1
  149. package/lib/cjs/core-react/expandable/ExpandableBlock.d.ts +34 -0
  150. package/lib/cjs/core-react/expandable/ExpandableBlock.d.ts.map +1 -0
  151. package/lib/cjs/core-react/expandable/ExpandableBlock.js +36 -0
  152. package/lib/cjs/core-react/expandable/ExpandableBlock.js.map +1 -0
  153. package/lib/cjs/core-react/expandable/ExpandableBlock.scss +145 -0
  154. package/lib/cjs/core-react/expandable/ExpandableList.d.ts +35 -37
  155. package/lib/cjs/core-react/expandable/ExpandableList.d.ts.map +1 -1
  156. package/lib/cjs/core-react/expandable/ExpandableList.js +57 -57
  157. package/lib/cjs/core-react/expandable/ExpandableList.js.map +1 -1
  158. package/lib/cjs/core-react/expandable/ExpandableList.scss +8 -8
  159. package/lib/cjs/core-react/expandable/classes.scss +7 -7
  160. package/lib/cjs/core-react/expandable/index.scss +5 -5
  161. package/lib/cjs/core-react/expandable/list.scss +45 -35
  162. package/lib/cjs/core-react/focus/ItemKeyboardNavigator.d.ts +53 -53
  163. package/lib/cjs/core-react/focus/ItemKeyboardNavigator.js +150 -150
  164. package/lib/cjs/core-react/focus/ItemKeyboardNavigator.js.map +1 -1
  165. package/lib/cjs/core-react/focustrap/FocusTrap.d.ts +28 -28
  166. package/lib/cjs/core-react/focustrap/FocusTrap.js +196 -196
  167. package/lib/cjs/core-react/focustrap/FocusTrap.js.map +1 -1
  168. package/lib/cjs/core-react/form/Field.d.ts +20 -0
  169. package/lib/cjs/core-react/form/Field.d.ts.map +1 -0
  170. package/lib/cjs/core-react/form/Field.js +45 -0
  171. package/lib/cjs/core-react/form/Field.js.map +1 -0
  172. package/lib/cjs/core-react/form/Form.d.ts +132 -0
  173. package/lib/cjs/core-react/form/Form.d.ts.map +1 -0
  174. package/lib/cjs/core-react/form/Form.js +132 -0
  175. package/lib/cjs/core-react/form/Form.js.map +1 -0
  176. package/lib/cjs/core-react/form/Form.scss +78 -0
  177. package/lib/cjs/core-react/hocs/withIsPressed.d.ts +77 -77
  178. package/lib/cjs/core-react/hocs/withIsPressed.js +46 -46
  179. package/lib/cjs/core-react/hocs/withIsPressed.js.map +1 -1
  180. package/lib/cjs/core-react/hocs/withOnOutsideClick.d.ts +103 -103
  181. package/lib/cjs/core-react/hocs/withOnOutsideClick.js +115 -115
  182. package/lib/cjs/core-react/hocs/withOnOutsideClick.js.map +1 -1
  183. package/lib/cjs/core-react/hocs/withTimeout.d.ts +74 -74
  184. package/lib/cjs/core-react/hocs/withTimeout.js +46 -46
  185. package/lib/cjs/core-react/hocs/withTimeout.js.map +1 -1
  186. package/lib/cjs/core-react/icons/IconComponent.d.ts +24 -24
  187. package/lib/cjs/core-react/icons/IconComponent.js +54 -54
  188. package/lib/cjs/core-react/icons/IconComponent.js.map +1 -1
  189. package/lib/cjs/core-react/icons/IconComponent.scss +20 -20
  190. package/lib/cjs/core-react/icons/SvgPath.d.ts +23 -23
  191. package/lib/cjs/core-react/icons/SvgPath.js +27 -27
  192. package/lib/cjs/core-react/icons/SvgPath.js.map +1 -1
  193. package/lib/cjs/core-react/icons/SvgSprite.d.ts +20 -20
  194. package/lib/cjs/core-react/icons/SvgSprite.js +26 -26
  195. package/lib/cjs/core-react/icons/SvgSprite.js.map +1 -1
  196. package/lib/cjs/core-react/icons/SvgSprite.scss +15 -15
  197. package/lib/cjs/core-react/icons/WebFontIcon.d.ts +26 -26
  198. package/lib/cjs/core-react/icons/WebFontIcon.js +22 -22
  199. package/lib/cjs/core-react/icons/WebFontIcon.js.map +1 -1
  200. package/lib/cjs/core-react/icons/WebFontIcon.scss +17 -17
  201. package/lib/cjs/core-react/icons/classes.scss +10 -10
  202. package/lib/cjs/core-react/icons/index.scss +6 -6
  203. package/lib/cjs/core-react/icons/mixins.scss +25 -25
  204. package/lib/cjs/core-react/icons/variables.scss +21 -21
  205. package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.d.ts +42 -42
  206. package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.js +56 -56
  207. package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.js.map +1 -1
  208. package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.scss +55 -54
  209. package/lib/cjs/core-react/index.scss +27 -23
  210. package/lib/cjs/core-react/inputs/Input.d.ts +22 -20
  211. package/lib/cjs/core-react/inputs/Input.d.ts.map +1 -1
  212. package/lib/cjs/core-react/inputs/Input.js +46 -45
  213. package/lib/cjs/core-react/inputs/Input.js.map +1 -1
  214. package/lib/cjs/core-react/inputs/InputLabel.d.ts +18 -20
  215. package/lib/cjs/core-react/inputs/InputLabel.d.ts.map +1 -1
  216. package/lib/cjs/core-react/inputs/InputLabel.js +33 -33
  217. package/lib/cjs/core-react/inputs/InputLabel.js.map +1 -1
  218. package/lib/cjs/core-react/inputs/InputStatus.d.ts +11 -11
  219. package/lib/cjs/core-react/inputs/InputStatus.js +19 -19
  220. package/lib/cjs/core-react/inputs/InputStatus.js.map +1 -1
  221. package/lib/cjs/core-react/inputs/LabeledComponentProps.d.ts +33 -33
  222. package/lib/cjs/core-react/inputs/LabeledComponentProps.js +9 -9
  223. package/lib/cjs/core-react/inputs/LabeledComponentProps.js.map +1 -1
  224. package/lib/cjs/core-react/inputs/LabeledInput.d.ts +18 -0
  225. package/lib/cjs/core-react/inputs/LabeledInput.d.ts.map +1 -0
  226. package/lib/cjs/core-react/inputs/LabeledInput.js +34 -0
  227. package/lib/cjs/core-react/inputs/LabeledInput.js.map +1 -0
  228. package/lib/cjs/core-react/inputs/LabeledTextarea.d.ts +18 -0
  229. package/lib/cjs/core-react/inputs/LabeledTextarea.d.ts.map +1 -0
  230. package/lib/cjs/core-react/inputs/LabeledTextarea.js +32 -0
  231. package/lib/cjs/core-react/inputs/LabeledTextarea.js.map +1 -0
  232. package/lib/cjs/core-react/inputs/Textarea.d.ts +23 -0
  233. package/lib/cjs/core-react/inputs/Textarea.d.ts.map +1 -0
  234. package/lib/cjs/core-react/inputs/Textarea.js +36 -0
  235. package/lib/cjs/core-react/inputs/Textarea.js.map +1 -0
  236. package/lib/cjs/core-react/inputs/classes.scss +10 -8
  237. package/lib/cjs/core-react/inputs/iconinput/IconInput.d.ts +23 -23
  238. package/lib/cjs/core-react/inputs/iconinput/IconInput.js +29 -29
  239. package/lib/cjs/core-react/inputs/iconinput/IconInput.js.map +1 -1
  240. package/lib/cjs/core-react/inputs/iconinput/IconInput.scss +35 -35
  241. package/lib/cjs/core-react/inputs/index.scss +11 -9
  242. package/lib/cjs/core-react/inputs/input.scss +60 -58
  243. package/lib/cjs/core-react/inputs/labeled-input.scss +103 -0
  244. package/lib/cjs/core-react/inputs/labeled-textarea.scss +77 -0
  245. package/lib/cjs/core-react/inputs/numberinput/NumberInput.d.ts +45 -45
  246. package/lib/cjs/core-react/inputs/numberinput/NumberInput.js +148 -148
  247. package/lib/cjs/core-react/inputs/numberinput/NumberInput.js.map +1 -1
  248. package/lib/cjs/core-react/inputs/numberinput/NumberInput.scss +89 -89
  249. package/lib/cjs/core-react/inputs/textarea.scss +55 -0
  250. package/lib/cjs/core-react/inputs/variables.scss +33 -38
  251. package/lib/cjs/core-react/layout-variables.scss +17 -17
  252. package/lib/cjs/core-react/listbox/Listbox.d.ts +55 -55
  253. package/lib/cjs/core-react/listbox/Listbox.js +222 -222
  254. package/lib/cjs/core-react/listbox/Listbox.js.map +1 -1
  255. package/lib/cjs/core-react/listbox/Listbox.scss +54 -54
  256. package/lib/cjs/core-react/loading/LoadingBar.d.ts +29 -29
  257. package/lib/cjs/core-react/loading/LoadingBar.js +40 -40
  258. package/lib/cjs/core-react/loading/LoadingBar.js.map +1 -1
  259. package/lib/cjs/core-react/loading/LoadingBar.scss +29 -29
  260. package/lib/cjs/core-react/loading/LoadingPrompt.d.ts +39 -39
  261. package/lib/cjs/core-react/loading/LoadingPrompt.js +44 -44
  262. package/lib/cjs/core-react/loading/LoadingPrompt.js.map +1 -1
  263. package/lib/cjs/core-react/loading/LoadingPrompt.scss +33 -33
  264. package/lib/cjs/core-react/loading/LoadingSpinner.d.ts +33 -32
  265. package/lib/cjs/core-react/loading/LoadingSpinner.d.ts.map +1 -1
  266. package/lib/cjs/core-react/loading/LoadingSpinner.js +45 -30
  267. package/lib/cjs/core-react/loading/LoadingSpinner.js.map +1 -1
  268. package/lib/cjs/core-react/loading/LoadingSpinner.scss +27 -26
  269. package/lib/cjs/core-react/loading/LoadingStatus.d.ts +24 -24
  270. package/lib/cjs/core-react/loading/LoadingStatus.js +37 -37
  271. package/lib/cjs/core-react/loading/LoadingStatus.js.map +1 -1
  272. package/lib/cjs/core-react/loading/LoadingStatus.scss +20 -20
  273. package/lib/cjs/core-react/loading/Spinner.d.ts +38 -0
  274. package/lib/cjs/core-react/loading/Spinner.d.ts.map +1 -0
  275. package/lib/cjs/core-react/loading/Spinner.js +61 -0
  276. package/lib/cjs/core-react/loading/Spinner.js.map +1 -0
  277. package/lib/cjs/core-react/loading/Spinner.scss +26 -0
  278. package/lib/cjs/core-react/loading/index.scss +5 -5
  279. package/lib/cjs/core-react/loading/mixins.scss +57 -57
  280. package/lib/cjs/core-react/messagebox/MessageBox.d.ts +64 -68
  281. package/lib/cjs/core-react/messagebox/MessageBox.d.ts.map +1 -1
  282. package/lib/cjs/core-react/messagebox/MessageBox.js +70 -70
  283. package/lib/cjs/core-react/messagebox/MessageBox.js.map +1 -1
  284. package/lib/cjs/core-react/messagebox/MessageBox.scss +46 -46
  285. package/lib/cjs/core-react/messagebox/MessageSeverity.d.ts +16 -0
  286. package/lib/cjs/core-react/messagebox/MessageSeverity.d.ts.map +1 -0
  287. package/lib/cjs/core-react/messagebox/MessageSeverity.js +24 -0
  288. package/lib/cjs/core-react/messagebox/MessageSeverity.js.map +1 -0
  289. package/lib/cjs/core-react/notification/MessageRenderer.d.ts +19 -19
  290. package/lib/cjs/core-react/notification/MessageRenderer.js +81 -81
  291. package/lib/cjs/core-react/notification/MessageRenderer.js.map +1 -1
  292. package/lib/cjs/core-react/notification/MessageType.d.ts +22 -22
  293. package/lib/cjs/core-react/notification/MessageType.js +24 -24
  294. package/lib/cjs/core-react/notification/MessageType.js.map +1 -1
  295. package/lib/cjs/core-react/popup/Popup.d.ts +109 -111
  296. package/lib/cjs/core-react/popup/Popup.d.ts.map +1 -1
  297. package/lib/cjs/core-react/popup/Popup.js +419 -419
  298. package/lib/cjs/core-react/popup/Popup.js.map +1 -1
  299. package/lib/cjs/core-react/popup/Popup.scss +240 -240
  300. package/lib/cjs/core-react/progress-indicators/ProgressBar.d.ts +29 -0
  301. package/lib/cjs/core-react/progress-indicators/ProgressBar.d.ts.map +1 -0
  302. package/lib/cjs/core-react/progress-indicators/ProgressBar.js +48 -0
  303. package/lib/cjs/core-react/progress-indicators/ProgressBar.js.map +1 -0
  304. package/lib/cjs/core-react/progress-indicators/ProgressSpinner.d.ts +49 -0
  305. package/lib/cjs/core-react/progress-indicators/ProgressSpinner.d.ts.map +1 -0
  306. package/lib/cjs/core-react/progress-indicators/ProgressSpinner.js +74 -0
  307. package/lib/cjs/core-react/progress-indicators/ProgressSpinner.js.map +1 -0
  308. package/lib/cjs/core-react/progress-indicators/classes.scss +33 -0
  309. package/lib/cjs/core-react/progress-indicators/index.scss +6 -0
  310. package/lib/cjs/core-react/progress-indicators/progress-bar.scss +91 -0
  311. package/lib/cjs/core-react/progress-indicators/progress-spinner.scss +132 -0
  312. package/lib/cjs/core-react/radialmenu/Annulus.d.ts +54 -54
  313. package/lib/cjs/core-react/radialmenu/Annulus.js +82 -82
  314. package/lib/cjs/core-react/radialmenu/Annulus.js.map +1 -1
  315. package/lib/cjs/core-react/radialmenu/RadialMenu.d.ts +93 -97
  316. package/lib/cjs/core-react/radialmenu/RadialMenu.d.ts.map +1 -1
  317. package/lib/cjs/core-react/radialmenu/RadialMenu.js +179 -179
  318. package/lib/cjs/core-react/radialmenu/RadialMenu.js.map +1 -1
  319. package/lib/cjs/core-react/radialmenu/RadialMenu.scss +56 -55
  320. package/lib/cjs/core-react/radio/Radio.d.ts +20 -0
  321. package/lib/cjs/core-react/radio/Radio.d.ts.map +1 -0
  322. package/lib/cjs/core-react/radio/Radio.js +28 -0
  323. package/lib/cjs/core-react/radio/Radio.js.map +1 -0
  324. package/lib/cjs/core-react/radio/classes.scss +7 -0
  325. package/lib/cjs/core-react/radio/index.scss +8 -0
  326. package/lib/cjs/core-react/radio/radio.scss +89 -0
  327. package/lib/cjs/core-react/searchbox/SearchBox.d.ts +52 -52
  328. package/lib/cjs/core-react/searchbox/SearchBox.js +109 -109
  329. package/lib/cjs/core-react/searchbox/SearchBox.js.map +1 -1
  330. package/lib/cjs/core-react/searchbox/SearchBox.scss +53 -51
  331. package/lib/cjs/core-react/select/LabeledSelect.d.ts +20 -0
  332. package/lib/cjs/core-react/select/LabeledSelect.d.ts.map +1 -0
  333. package/lib/cjs/core-react/select/LabeledSelect.js +34 -0
  334. package/lib/cjs/core-react/select/LabeledSelect.js.map +1 -0
  335. package/lib/cjs/core-react/select/LabeledThemedSelect.d.ts +16 -0
  336. package/lib/cjs/core-react/select/LabeledThemedSelect.d.ts.map +1 -0
  337. package/lib/cjs/core-react/select/LabeledThemedSelect.js +31 -0
  338. package/lib/cjs/core-react/select/LabeledThemedSelect.js.map +1 -0
  339. package/lib/cjs/core-react/select/Select.d.ts +53 -0
  340. package/lib/cjs/core-react/select/Select.d.ts.map +1 -0
  341. package/lib/cjs/core-react/select/Select.js +60 -0
  342. package/lib/cjs/core-react/select/Select.js.map +1 -0
  343. package/lib/cjs/core-react/select/ThemedSelect.d.ts +104 -0
  344. package/lib/cjs/core-react/select/ThemedSelect.d.ts.map +1 -0
  345. package/lib/cjs/core-react/select/ThemedSelect.js +57 -0
  346. package/lib/cjs/core-react/select/ThemedSelect.js.map +1 -0
  347. package/lib/cjs/core-react/select/classes.scss +9 -0
  348. package/lib/cjs/core-react/select/index.scss +10 -0
  349. package/lib/cjs/core-react/select/labeled-select.scss +72 -0
  350. package/lib/cjs/core-react/select/labeled-themed-select.scss +77 -0
  351. package/lib/cjs/core-react/select/modalHelper.d.ts +5 -0
  352. package/lib/cjs/core-react/select/modalHelper.d.ts.map +1 -0
  353. package/lib/cjs/core-react/select/modalHelper.js +21 -0
  354. package/lib/cjs/core-react/select/modalHelper.js.map +1 -0
  355. package/lib/cjs/core-react/select/select.scss +74 -0
  356. package/lib/cjs/core-react/select/themed-select.scss +159 -0
  357. package/lib/cjs/core-react/settings/SettingsContainer.d.ts +30 -30
  358. package/lib/cjs/core-react/settings/SettingsContainer.js +121 -121
  359. package/lib/cjs/core-react/settings/SettingsContainer.js.map +1 -1
  360. package/lib/cjs/core-react/settings/SettingsContainer.scss +65 -66
  361. package/lib/cjs/core-react/settings/SettingsManager.d.ts +132 -132
  362. package/lib/cjs/core-react/settings/SettingsManager.js +122 -122
  363. package/lib/cjs/core-react/settings/SettingsManager.js.map +1 -1
  364. package/lib/cjs/core-react/slider/Slider.d.ts +80 -0
  365. package/lib/cjs/core-react/slider/Slider.d.ts.map +1 -0
  366. package/lib/cjs/core-react/slider/Slider.js +91 -0
  367. package/lib/cjs/core-react/slider/Slider.js.map +1 -0
  368. package/lib/cjs/core-react/slider/Slider.scss +96 -0
  369. package/lib/cjs/core-react/splitbutton/SplitButton.d.ts +62 -0
  370. package/lib/cjs/core-react/splitbutton/SplitButton.d.ts.map +1 -0
  371. package/lib/cjs/core-react/splitbutton/SplitButton.js +104 -0
  372. package/lib/cjs/core-react/splitbutton/SplitButton.js.map +1 -0
  373. package/lib/cjs/core-react/splitbutton/SplitButton.scss +137 -0
  374. package/lib/cjs/core-react/style/baseline.scss +13 -11
  375. package/lib/cjs/core-react/style/breakpoints.scss +41 -41
  376. package/lib/cjs/core-react/style/colors.scss +77 -77
  377. package/lib/cjs/core-react/style/data-viz.scss +23 -20
  378. package/lib/cjs/core-react/style/index.scss +17 -17
  379. package/lib/cjs/core-react/style/itwinui-overrides.scss +24 -23
  380. package/lib/cjs/core-react/style/mixins.scss +28 -27
  381. package/lib/cjs/core-react/style/opacity.scss +17 -16
  382. package/lib/cjs/core-react/style/space.scss +17 -13
  383. package/lib/cjs/core-react/style/speed.scss +13 -12
  384. package/lib/cjs/core-react/style/themecolors.scss +129 -129
  385. package/lib/cjs/core-react/style/typography.scss +43 -44
  386. package/lib/cjs/core-react/style/variables.scss +13 -12
  387. package/lib/cjs/core-react/tabs/HorizontalTabs.d.ts +11 -0
  388. package/lib/cjs/core-react/tabs/HorizontalTabs.d.ts.map +1 -0
  389. package/lib/cjs/core-react/tabs/HorizontalTabs.js +22 -0
  390. package/lib/cjs/core-react/tabs/HorizontalTabs.js.map +1 -0
  391. package/lib/cjs/core-react/tabs/Tabs.d.ts +71 -71
  392. package/lib/cjs/core-react/tabs/Tabs.js +125 -125
  393. package/lib/cjs/core-react/tabs/Tabs.js.map +1 -1
  394. package/lib/cjs/core-react/tabs/VerticalTabs.d.ts +9 -9
  395. package/lib/cjs/core-react/tabs/VerticalTabs.js +20 -20
  396. package/lib/cjs/core-react/tabs/VerticalTabs.js.map +1 -1
  397. package/lib/cjs/core-react/tabs/classes.scss +8 -7
  398. package/lib/cjs/core-react/tabs/horizontal.scss +77 -0
  399. package/lib/cjs/core-react/tabs/index.scss +6 -5
  400. package/lib/cjs/core-react/tabs/tabs.scss +117 -106
  401. package/lib/cjs/core-react/tabs/vertical.scss +64 -58
  402. package/lib/cjs/core-react/text/BlockText.d.ts +9 -9
  403. package/lib/cjs/core-react/text/BlockText.js +19 -19
  404. package/lib/cjs/core-react/text/BlockText.js.map +1 -1
  405. package/lib/cjs/core-react/text/BodyText.d.ts +9 -9
  406. package/lib/cjs/core-react/text/BodyText.js +19 -19
  407. package/lib/cjs/core-react/text/BodyText.js.map +1 -1
  408. package/lib/cjs/core-react/text/DisabledText.d.ts +6 -6
  409. package/lib/cjs/core-react/text/DisabledText.js +19 -19
  410. package/lib/cjs/core-react/text/DisabledText.js.map +1 -1
  411. package/lib/cjs/core-react/text/FilteredText.d.ts +24 -24
  412. package/lib/cjs/core-react/text/FilteredText.js +40 -40
  413. package/lib/cjs/core-react/text/FilteredText.js.map +1 -1
  414. package/lib/cjs/core-react/text/FilteredText.scss +10 -10
  415. package/lib/cjs/core-react/text/Headline.d.ts +11 -0
  416. package/lib/cjs/core-react/text/Headline.d.ts.map +1 -0
  417. package/lib/cjs/core-react/text/Headline.js +21 -0
  418. package/lib/cjs/core-react/text/Headline.js.map +1 -0
  419. package/lib/cjs/core-react/text/LeadingText.d.ts +11 -0
  420. package/lib/cjs/core-react/text/LeadingText.d.ts.map +1 -0
  421. package/lib/cjs/core-react/text/LeadingText.js +21 -0
  422. package/lib/cjs/core-react/text/LeadingText.js.map +1 -0
  423. package/lib/cjs/core-react/text/LeadingText2.d.ts +11 -0
  424. package/lib/cjs/core-react/text/LeadingText2.d.ts.map +1 -0
  425. package/lib/cjs/core-react/text/LeadingText2.js +21 -0
  426. package/lib/cjs/core-react/text/LeadingText2.js.map +1 -0
  427. package/lib/cjs/core-react/text/MutedText.d.ts +9 -9
  428. package/lib/cjs/core-react/text/MutedText.js +19 -19
  429. package/lib/cjs/core-react/text/MutedText.js.map +1 -1
  430. package/lib/cjs/core-react/text/SmallText.d.ts +11 -0
  431. package/lib/cjs/core-react/text/SmallText.d.ts.map +1 -0
  432. package/lib/cjs/core-react/text/SmallText.js +21 -0
  433. package/lib/cjs/core-react/text/SmallText.js.map +1 -0
  434. package/lib/cjs/core-react/text/StyledText.d.ts +16 -16
  435. package/lib/cjs/core-react/text/StyledText.js +20 -20
  436. package/lib/cjs/core-react/text/StyledText.js.map +1 -1
  437. package/lib/cjs/core-react/text/Subheading.d.ts +11 -0
  438. package/lib/cjs/core-react/text/Subheading.d.ts.map +1 -0
  439. package/lib/cjs/core-react/text/Subheading.js +21 -0
  440. package/lib/cjs/core-react/text/Subheading.js.map +1 -0
  441. package/lib/cjs/core-react/text/Subheading2.d.ts +11 -0
  442. package/lib/cjs/core-react/text/Subheading2.d.ts.map +1 -0
  443. package/lib/cjs/core-react/text/Subheading2.js +21 -0
  444. package/lib/cjs/core-react/text/Subheading2.js.map +1 -0
  445. package/lib/cjs/core-react/text/TextProps.d.ts +10 -10
  446. package/lib/cjs/core-react/text/TextProps.js +9 -9
  447. package/lib/cjs/core-react/text/TextProps.js.map +1 -1
  448. package/lib/cjs/core-react/text/Title.d.ts +11 -0
  449. package/lib/cjs/core-react/text/Title.d.ts.map +1 -0
  450. package/lib/cjs/core-react/text/Title.js +21 -0
  451. package/lib/cjs/core-react/text/Title.js.map +1 -0
  452. package/lib/cjs/core-react/text/Title2.d.ts +11 -0
  453. package/lib/cjs/core-react/text/Title2.d.ts.map +1 -0
  454. package/lib/cjs/core-react/text/Title2.js +21 -0
  455. package/lib/cjs/core-react/text/Title2.js.map +1 -0
  456. package/lib/cjs/core-react/text/block.scss +10 -10
  457. package/lib/cjs/core-react/text/body.scss +10 -10
  458. package/lib/cjs/core-react/text/classes.scss +18 -10
  459. package/lib/cjs/core-react/text/disabled.scss +10 -10
  460. package/lib/cjs/core-react/text/headline.scss +10 -0
  461. package/lib/cjs/core-react/text/index.scss +18 -10
  462. package/lib/cjs/core-react/text/leading-2.scss +11 -0
  463. package/lib/cjs/core-react/text/leading.scss +10 -0
  464. package/lib/cjs/core-react/text/mixins.scss +62 -24
  465. package/lib/cjs/core-react/text/muted.scss +10 -10
  466. package/lib/cjs/core-react/text/small.scss +10 -0
  467. package/lib/cjs/core-react/text/subheading-2.scss +11 -0
  468. package/lib/cjs/core-react/text/subheading.scss +11 -0
  469. package/lib/cjs/core-react/text/title-2.scss +11 -0
  470. package/lib/cjs/core-react/text/title.scss +10 -0
  471. package/lib/cjs/core-react/tiles/FeaturedTile.d.ts +11 -0
  472. package/lib/cjs/core-react/tiles/FeaturedTile.d.ts.map +1 -0
  473. package/lib/cjs/core-react/tiles/FeaturedTile.js +21 -0
  474. package/lib/cjs/core-react/tiles/FeaturedTile.js.map +1 -0
  475. package/lib/cjs/core-react/tiles/MinimalFeaturedTile.d.ts +11 -0
  476. package/lib/cjs/core-react/tiles/MinimalFeaturedTile.d.ts.map +1 -0
  477. package/lib/cjs/core-react/tiles/MinimalFeaturedTile.js +21 -0
  478. package/lib/cjs/core-react/tiles/MinimalFeaturedTile.js.map +1 -0
  479. package/lib/cjs/core-react/tiles/MinimalTile.d.ts +11 -0
  480. package/lib/cjs/core-react/tiles/MinimalTile.d.ts.map +1 -0
  481. package/lib/cjs/core-react/tiles/MinimalTile.js +21 -0
  482. package/lib/cjs/core-react/tiles/MinimalTile.js.map +1 -0
  483. package/lib/cjs/core-react/tiles/Tile.d.ts +32 -0
  484. package/lib/cjs/core-react/tiles/Tile.d.ts.map +1 -0
  485. package/lib/cjs/core-react/tiles/Tile.js +40 -0
  486. package/lib/cjs/core-react/tiles/Tile.js.map +1 -0
  487. package/lib/cjs/core-react/tiles/classes.scss +7 -0
  488. package/lib/cjs/core-react/tiles/index.scss +5 -0
  489. package/lib/cjs/core-react/tiles/tile.scss +134 -0
  490. package/lib/cjs/core-react/toggle/LabeledToggle.d.ts +26 -0
  491. package/lib/cjs/core-react/toggle/LabeledToggle.d.ts.map +1 -0
  492. package/lib/cjs/core-react/toggle/LabeledToggle.js +29 -0
  493. package/lib/cjs/core-react/toggle/LabeledToggle.js.map +1 -0
  494. package/lib/cjs/core-react/toggle/LabeledToggle.scss +21 -0
  495. package/lib/cjs/core-react/toggle/Toggle.d.ts +52 -0
  496. package/lib/cjs/core-react/toggle/Toggle.d.ts.map +1 -0
  497. package/lib/cjs/core-react/toggle/Toggle.js +105 -0
  498. package/lib/cjs/core-react/toggle/Toggle.js.map +1 -0
  499. package/lib/cjs/core-react/toggle/Toggle.scss +135 -0
  500. package/lib/cjs/core-react/tooltip/Tooltip.d.ts +34 -0
  501. package/lib/cjs/core-react/tooltip/Tooltip.d.ts.map +1 -0
  502. package/lib/cjs/core-react/tooltip/Tooltip.js +57 -0
  503. package/lib/cjs/core-react/tooltip/Tooltip.js.map +1 -0
  504. package/lib/cjs/core-react/tooltip/Tooltip.scss +18 -0
  505. package/lib/cjs/core-react/tree/Branch.d.ts +19 -19
  506. package/lib/cjs/core-react/tree/Branch.js +23 -23
  507. package/lib/cjs/core-react/tree/Branch.js.map +1 -1
  508. package/lib/cjs/core-react/tree/Branch.scss +12 -12
  509. package/lib/cjs/core-react/tree/ExpansionToggle.d.ts +20 -20
  510. package/lib/cjs/core-react/tree/ExpansionToggle.js +28 -28
  511. package/lib/cjs/core-react/tree/ExpansionToggle.js.map +1 -1
  512. package/lib/cjs/core-react/tree/ExpansionToggle.scss +28 -28
  513. package/lib/cjs/core-react/tree/Node.d.ts +79 -79
  514. package/lib/cjs/core-react/tree/Node.js +88 -88
  515. package/lib/cjs/core-react/tree/Node.js.map +1 -1
  516. package/lib/cjs/core-react/tree/Node.scss +84 -84
  517. package/lib/cjs/core-react/tree/Placeholder.d.ts +22 -22
  518. package/lib/cjs/core-react/tree/Placeholder.js +31 -31
  519. package/lib/cjs/core-react/tree/Placeholder.js.map +1 -1
  520. package/lib/cjs/core-react/tree/Placeholder.scss +20 -20
  521. package/lib/cjs/core-react/tree/Tree.d.ts +28 -28
  522. package/lib/cjs/core-react/tree/Tree.js +100 -100
  523. package/lib/cjs/core-react/tree/Tree.js.map +1 -1
  524. package/lib/cjs/core-react/tree/Tree.scss +21 -21
  525. package/lib/cjs/core-react/uistate/LocalStateStorage.d.ts +16 -16
  526. package/lib/cjs/core-react/uistate/LocalStateStorage.js +49 -49
  527. package/lib/cjs/core-react/uistate/LocalStateStorage.js.map +1 -1
  528. package/lib/cjs/core-react/uistate/UiStateEntry.d.ts +30 -30
  529. package/lib/cjs/core-react/uistate/UiStateEntry.js +59 -59
  530. package/lib/cjs/core-react/uistate/UiStateEntry.js.map +1 -1
  531. package/lib/cjs/core-react/uistate/UiStateStorage.d.ts +28 -28
  532. package/lib/cjs/core-react/uistate/UiStateStorage.js +21 -21
  533. package/lib/cjs/core-react/uistate/UiStateStorage.js.map +1 -1
  534. package/lib/cjs/core-react/utils/IconHelper.d.ts +23 -23
  535. package/lib/cjs/core-react/utils/IconHelper.js +62 -62
  536. package/lib/cjs/core-react/utils/IconHelper.js.map +1 -1
  537. package/lib/cjs/core-react/utils/IconWebComponent.d.ts +10 -10
  538. package/lib/cjs/core-react/utils/IconWebComponent.js +72 -72
  539. package/lib/cjs/core-react/utils/IconWebComponent.js.map +1 -1
  540. package/lib/cjs/core-react/utils/Point.d.ts +37 -37
  541. package/lib/cjs/core-react/utils/Point.js +73 -73
  542. package/lib/cjs/core-react/utils/Point.js.map +1 -1
  543. package/lib/cjs/core-react/utils/PointProps.d.ts +12 -0
  544. package/lib/cjs/core-react/utils/PointProps.d.ts.map +1 -0
  545. package/lib/cjs/core-react/utils/PointProps.js +10 -0
  546. package/lib/cjs/core-react/utils/PointProps.js.map +1 -0
  547. package/lib/cjs/core-react/utils/Props.d.ts +38 -38
  548. package/lib/cjs/core-react/utils/Props.js +9 -9
  549. package/lib/cjs/core-react/utils/Props.js.map +1 -1
  550. package/lib/cjs/core-react/utils/Rectangle.d.ts +144 -144
  551. package/lib/cjs/core-react/utils/Rectangle.js +270 -270
  552. package/lib/cjs/core-react/utils/Rectangle.js.map +1 -1
  553. package/lib/cjs/core-react/utils/ScrollPositionMaintainer.d.ts +23 -23
  554. package/lib/cjs/core-react/utils/ScrollPositionMaintainer.js +36 -36
  555. package/lib/cjs/core-react/utils/ScrollPositionMaintainer.js.map +1 -1
  556. package/lib/cjs/core-react/utils/Size.d.ts +23 -23
  557. package/lib/cjs/core-react/utils/Size.js +32 -32
  558. package/lib/cjs/core-react/utils/Size.js.map +1 -1
  559. package/lib/cjs/core-react/utils/Timer.d.ts +35 -35
  560. package/lib/cjs/core-react/utils/Timer.js +64 -64
  561. package/lib/cjs/core-react/utils/Timer.js.map +1 -1
  562. package/lib/cjs/core-react/utils/UiEvent.d.ts +10 -0
  563. package/lib/cjs/core-react/utils/UiEvent.d.ts.map +1 -0
  564. package/lib/cjs/core-react/utils/UiEvent.js +18 -0
  565. package/lib/cjs/core-react/utils/UiEvent.js.map +1 -0
  566. package/lib/cjs/core-react/utils/UiGeometry.d.ts +20 -20
  567. package/lib/cjs/core-react/utils/UiGeometry.js +28 -28
  568. package/lib/cjs/core-react/utils/UiGeometry.js.map +1 -1
  569. package/lib/cjs/core-react/utils/flattenChildren.d.ts +8 -8
  570. package/lib/cjs/core-react/utils/flattenChildren.js +27 -27
  571. package/lib/cjs/core-react/utils/flattenChildren.js.map +1 -1
  572. package/lib/cjs/core-react/utils/getBestBWContrastColor.d.ts +7 -7
  573. package/lib/cjs/core-react/utils/getBestBWContrastColor.js +22 -22
  574. package/lib/cjs/core-react/utils/getBestBWContrastColor.js.map +1 -1
  575. package/lib/cjs/core-react/utils/getCssVariable.d.ts +11 -11
  576. package/lib/cjs/core-react/utils/getCssVariable.js +31 -31
  577. package/lib/cjs/core-react/utils/getCssVariable.js.map +1 -1
  578. package/lib/cjs/core-react/utils/getDisplayName.d.ts +8 -8
  579. package/lib/cjs/core-react/utils/getDisplayName.js +21 -21
  580. package/lib/cjs/core-react/utils/getDisplayName.js.map +1 -1
  581. package/lib/cjs/core-react/utils/getUserColor.d.ts +7 -7
  582. package/lib/cjs/core-react/utils/getUserColor.js +38 -38
  583. package/lib/cjs/core-react/utils/getUserColor.js.map +1 -1
  584. package/lib/cjs/core-react/utils/hooks/ResizeObserverPolyfill.d.ts +4 -4
  585. package/lib/cjs/core-react/utils/hooks/ResizeObserverPolyfill.js +19 -19
  586. package/lib/cjs/core-react/utils/hooks/ResizeObserverPolyfill.js.map +1 -1
  587. package/lib/cjs/core-react/utils/hooks/useCrossOriginPopup.d.ts +7 -7
  588. package/lib/cjs/core-react/utils/hooks/useCrossOriginPopup.js +89 -89
  589. package/lib/cjs/core-react/utils/hooks/useCrossOriginPopup.js.map +1 -1
  590. package/lib/cjs/core-react/utils/hooks/useDisposable.d.ts +17 -17
  591. package/lib/cjs/core-react/utils/hooks/useDisposable.js +38 -38
  592. package/lib/cjs/core-react/utils/hooks/useDisposable.js.map +1 -1
  593. package/lib/cjs/core-react/utils/hooks/useEffectSkipFirst.d.ts +8 -8
  594. package/lib/cjs/core-react/utils/hooks/useEffectSkipFirst.js +26 -26
  595. package/lib/cjs/core-react/utils/hooks/useEffectSkipFirst.js.map +1 -1
  596. package/lib/cjs/core-react/utils/hooks/useEventListener.d.ts +11 -11
  597. package/lib/cjs/core-react/utils/hooks/useEventListener.js +43 -43
  598. package/lib/cjs/core-react/utils/hooks/useEventListener.js.map +1 -1
  599. package/lib/cjs/core-react/utils/hooks/useInterval.d.ts +5 -5
  600. package/lib/cjs/core-react/utils/hooks/useInterval.js +36 -36
  601. package/lib/cjs/core-react/utils/hooks/useInterval.js.map +1 -1
  602. package/lib/cjs/core-react/utils/hooks/useLifecycleLogging.d.ts +5 -5
  603. package/lib/cjs/core-react/utils/hooks/useLifecycleLogging.js +64 -64
  604. package/lib/cjs/core-react/utils/hooks/useLifecycleLogging.js.map +1 -1
  605. package/lib/cjs/core-react/utils/hooks/useOnOutsideClick.d.ts +12 -12
  606. package/lib/cjs/core-react/utils/hooks/useOnOutsideClick.js +92 -92
  607. package/lib/cjs/core-react/utils/hooks/useOnOutsideClick.js.map +1 -1
  608. package/lib/cjs/core-react/utils/hooks/useProximityToMouse.d.ts +55 -55
  609. package/lib/cjs/core-react/utils/hooks/useProximityToMouse.js +114 -114
  610. package/lib/cjs/core-react/utils/hooks/useProximityToMouse.js.map +1 -1
  611. package/lib/cjs/core-react/utils/hooks/useRefEffect.d.ts +7 -7
  612. package/lib/cjs/core-react/utils/hooks/useRefEffect.js +23 -23
  613. package/lib/cjs/core-react/utils/hooks/useRefEffect.js.map +1 -1
  614. package/lib/cjs/core-react/utils/hooks/useRefState.d.ts +21 -21
  615. package/lib/cjs/core-react/utils/hooks/useRefState.js +35 -35
  616. package/lib/cjs/core-react/utils/hooks/useRefState.js.map +1 -1
  617. package/lib/cjs/core-react/utils/hooks/useRefs.d.ts +12 -12
  618. package/lib/cjs/core-react/utils/hooks/useRefs.js +53 -53
  619. package/lib/cjs/core-react/utils/hooks/useRefs.js.map +1 -1
  620. package/lib/cjs/core-react/utils/hooks/useResizeObserver.d.ts +39 -39
  621. package/lib/cjs/core-react/utils/hooks/useResizeObserver.js +208 -208
  622. package/lib/cjs/core-react/utils/hooks/useResizeObserver.js.map +1 -1
  623. package/lib/cjs/core-react/utils/hooks/useTargeted.d.ts +8 -8
  624. package/lib/cjs/core-react/utils/hooks/useTargeted.js +28 -28
  625. package/lib/cjs/core-react/utils/hooks/useTargeted.js.map +1 -1
  626. package/lib/cjs/core-react/utils/hooks/useThrottledFn.d.ts +15 -15
  627. package/lib/cjs/core-react/utils/hooks/useThrottledFn.js +25 -25
  628. package/lib/cjs/core-react/utils/hooks/useThrottledFn.js.map +1 -1
  629. package/lib/cjs/core-react/utils/hooks/useWidgetOpacityContext.d.ts +20 -20
  630. package/lib/cjs/core-react/utils/hooks/useWidgetOpacityContext.js +27 -27
  631. package/lib/cjs/core-react/utils/hooks/useWidgetOpacityContext.js.map +1 -1
  632. package/lib/cjs/core-react/utils/isPromiseLike.d.ts +7 -7
  633. package/lib/cjs/core-react/utils/isPromiseLike.js +17 -17
  634. package/lib/cjs/core-react/utils/isPromiseLike.js.map +1 -1
  635. package/lib/cjs/core-react/utils/shallowDiffers.d.ts +11 -11
  636. package/lib/cjs/core-react/utils/shallowDiffers.js +29 -29
  637. package/lib/cjs/core-react/utils/shallowDiffers.js.map +1 -1
  638. package/lib/cjs/core-react/utils/typeUtils.d.ts +7 -7
  639. package/lib/cjs/core-react/utils/typeUtils.js +9 -9
  640. package/lib/cjs/core-react/utils/typeUtils.js.map +1 -1
  641. package/lib/cjs/core-react.d.ts +275 -236
  642. package/lib/cjs/core-react.d.ts.map +1 -1
  643. package/lib/cjs/core-react.js +298 -259
  644. package/lib/cjs/core-react.js.map +1 -1
  645. package/lib/esm/core-react/UiCore.d.ts +40 -40
  646. package/lib/esm/core-react/UiCore.js +81 -81
  647. package/lib/esm/core-react/UiCore.js.map +1 -1
  648. package/lib/esm/core-react/_geometry.scss +70 -70
  649. package/lib/esm/core-react/_helpers.scss +51 -51
  650. package/lib/esm/core-react/_math.scss +13 -13
  651. package/lib/esm/core-react/_scrollbar.scss +51 -51
  652. package/lib/esm/core-react/_typography.scss +45 -44
  653. package/lib/esm/core-react/_z-index.scss +65 -65
  654. package/lib/esm/core-react/autosuggest/AutoSuggest.d.ts +96 -96
  655. package/lib/esm/core-react/autosuggest/AutoSuggest.js +170 -170
  656. package/lib/esm/core-react/autosuggest/AutoSuggest.js.map +1 -1
  657. package/lib/esm/core-react/autosuggest/AutoSuggest.scss +83 -82
  658. package/lib/esm/core-react/badge/Badge.d.ts +18 -18
  659. package/lib/esm/core-react/badge/Badge.js +22 -22
  660. package/lib/esm/core-react/badge/Badge.js.map +1 -1
  661. package/lib/esm/core-react/badge/Badge.scss +13 -13
  662. package/lib/esm/core-react/badge/BadgeUtilities.d.ts +12 -12
  663. package/lib/esm/core-react/badge/BadgeUtilities.js +34 -34
  664. package/lib/esm/core-react/badge/BadgeUtilities.js.map +1 -1
  665. package/lib/esm/core-react/badge/BetaBadge.d.ts +10 -10
  666. package/lib/esm/core-react/badge/BetaBadge.js +19 -19
  667. package/lib/esm/core-react/badge/BetaBadge.js.map +1 -1
  668. package/lib/esm/core-react/badge/BetaBadge.scss +9 -9
  669. package/lib/esm/core-react/badge/NewBadge.d.ts +10 -10
  670. package/lib/esm/core-react/badge/NewBadge.js +19 -19
  671. package/lib/esm/core-react/badge/NewBadge.js.map +1 -1
  672. package/lib/esm/core-react/badge/NewBadge.scss +9 -9
  673. package/lib/esm/core-react/base/Centered.d.ts +10 -10
  674. package/lib/esm/core-react/base/Centered.js +16 -16
  675. package/lib/esm/core-react/base/Centered.js.map +1 -1
  676. package/lib/esm/core-react/base/Div.d.ts +16 -16
  677. package/lib/esm/core-react/base/Div.js +16 -16
  678. package/lib/esm/core-react/base/Div.js.map +1 -1
  679. package/lib/esm/core-react/base/DivWithOutsideClick.d.ts +79 -79
  680. package/lib/esm/core-react/base/DivWithOutsideClick.js +13 -13
  681. package/lib/esm/core-react/base/DivWithOutsideClick.js.map +1 -1
  682. package/lib/esm/core-react/base/FillCentered.d.ts +10 -10
  683. package/lib/esm/core-react/base/FillCentered.js +16 -16
  684. package/lib/esm/core-react/base/FillCentered.js.map +1 -1
  685. package/lib/esm/core-react/base/FlexWrapContainer.d.ts +11 -11
  686. package/lib/esm/core-react/base/FlexWrapContainer.js +17 -17
  687. package/lib/esm/core-react/base/FlexWrapContainer.js.map +1 -1
  688. package/lib/esm/core-react/base/Gap.d.ts +15 -15
  689. package/lib/esm/core-react/base/Gap.js +16 -16
  690. package/lib/esm/core-react/base/Gap.js.map +1 -1
  691. package/lib/esm/core-react/base/PointerEvents.d.ts +7 -7
  692. package/lib/esm/core-react/base/PointerEvents.js +13 -13
  693. package/lib/esm/core-react/base/PointerEvents.js.map +1 -1
  694. package/lib/esm/core-react/base/ScrollView.d.ts +11 -11
  695. package/lib/esm/core-react/base/ScrollView.js +17 -17
  696. package/lib/esm/core-react/base/ScrollView.js.map +1 -1
  697. package/lib/esm/core-react/base/base.scss +42 -42
  698. package/lib/esm/core-react/base/classes.scss +13 -13
  699. package/lib/esm/core-react/base/index.scss +5 -5
  700. package/lib/esm/core-react/button/Button.d.ts +48 -0
  701. package/lib/esm/core-react/button/Button.d.ts.map +1 -0
  702. package/lib/esm/core-react/button/Button.js +81 -0
  703. package/lib/esm/core-react/button/Button.js.map +1 -0
  704. package/lib/esm/core-react/button/UnderlinedButton.d.ts +24 -24
  705. package/lib/esm/core-react/button/UnderlinedButton.js +31 -31
  706. package/lib/esm/core-react/button/UnderlinedButton.js.map +1 -1
  707. package/lib/esm/core-react/button/UnderlinedButton.scss +32 -32
  708. package/lib/esm/core-react/button/blue-large.scss +12 -12
  709. package/lib/esm/core-react/button/blue.scss +25 -25
  710. package/lib/esm/core-react/button/button.scss +81 -70
  711. package/lib/esm/core-react/button/classes.scss +14 -14
  712. package/lib/esm/core-react/button/disabled-large.scss +12 -12
  713. package/lib/esm/core-react/button/disabled.scss +17 -17
  714. package/lib/esm/core-react/button/hollow-large.scss +13 -13
  715. package/lib/esm/core-react/button/hollow.scss +30 -30
  716. package/lib/esm/core-react/button/index.scss +14 -14
  717. package/lib/esm/core-react/button/primary-large.scss +12 -12
  718. package/lib/esm/core-react/button/primary.scss +25 -25
  719. package/lib/esm/core-react/button/variables.scss +19 -22
  720. package/lib/esm/core-react/checkbox/Checkbox.d.ts +57 -0
  721. package/lib/esm/core-react/checkbox/Checkbox.d.ts.map +1 -0
  722. package/lib/esm/core-react/checkbox/Checkbox.js +61 -0
  723. package/lib/esm/core-react/checkbox/Checkbox.js.map +1 -0
  724. package/lib/esm/core-react/checkbox/checkbox.scss +129 -124
  725. package/lib/esm/core-react/checkbox/classes.scss +8 -8
  726. package/lib/esm/core-react/checkbox/index.scss +8 -8
  727. package/lib/esm/core-react/checklistbox/CheckListBox.d.ts +37 -40
  728. package/lib/esm/core-react/checklistbox/CheckListBox.d.ts.map +1 -1
  729. package/lib/esm/core-react/checklistbox/CheckListBox.js +36 -36
  730. package/lib/esm/core-react/checklistbox/CheckListBox.js.map +1 -1
  731. package/lib/esm/core-react/checklistbox/CheckListBox.scss +22 -22
  732. package/lib/esm/core-react/classes.scss +18 -14
  733. package/lib/esm/core-react/colorthemes.scss +58 -90
  734. package/lib/esm/core-react/colorvariables.scss +116 -154
  735. package/lib/esm/core-react/contextmenu/ContextMenu.d.ts +91 -93
  736. package/lib/esm/core-react/contextmenu/ContextMenu.d.ts.map +1 -1
  737. package/lib/esm/core-react/contextmenu/ContextMenu.js +360 -360
  738. package/lib/esm/core-react/contextmenu/ContextMenu.js.map +1 -1
  739. package/lib/esm/core-react/contextmenu/ContextMenu.scss +238 -237
  740. package/lib/esm/core-react/contextmenu/ContextMenuDirection.d.ts +18 -18
  741. package/lib/esm/core-react/contextmenu/ContextMenuDirection.js +23 -23
  742. package/lib/esm/core-react/contextmenu/ContextMenuDirection.js.map +1 -1
  743. package/lib/esm/core-react/contextmenu/ContextMenuDivider.d.ts +12 -12
  744. package/lib/esm/core-react/contextmenu/ContextMenuDivider.js +19 -19
  745. package/lib/esm/core-react/contextmenu/ContextMenuDivider.js.map +1 -1
  746. package/lib/esm/core-react/contextmenu/ContextMenuItem.d.ts +61 -61
  747. package/lib/esm/core-react/contextmenu/ContextMenuItem.js +104 -104
  748. package/lib/esm/core-react/contextmenu/ContextMenuItem.js.map +1 -1
  749. package/lib/esm/core-react/contextmenu/ContextSubMenu.d.ts +51 -51
  750. package/lib/esm/core-react/contextmenu/ContextSubMenu.js +155 -155
  751. package/lib/esm/core-react/contextmenu/ContextSubMenu.js.map +1 -1
  752. package/lib/esm/core-react/contextmenu/GlobalContextMenu.d.ts +34 -34
  753. package/lib/esm/core-react/contextmenu/GlobalContextMenu.js +55 -55
  754. package/lib/esm/core-react/contextmenu/GlobalContextMenu.js.map +1 -1
  755. package/lib/esm/core-react/contextmenu/PopupContextMenu.d.ts +53 -53
  756. package/lib/esm/core-react/contextmenu/PopupContextMenu.js +51 -51
  757. package/lib/esm/core-react/contextmenu/PopupContextMenu.js.map +1 -1
  758. package/lib/esm/core-react/contextmenu/TildeFinder.d.ts +18 -18
  759. package/lib/esm/core-react/contextmenu/TildeFinder.js +66 -66
  760. package/lib/esm/core-react/contextmenu/TildeFinder.js.map +1 -1
  761. package/lib/esm/core-react/dialog/Dialog.d.ts +132 -132
  762. package/lib/esm/core-react/dialog/Dialog.js +362 -362
  763. package/lib/esm/core-react/dialog/Dialog.js.map +1 -1
  764. package/lib/esm/core-react/dialog/Dialog.scss +245 -244
  765. package/lib/esm/core-react/dialog/DialogButtonDef.d.ts +47 -0
  766. package/lib/esm/core-react/dialog/DialogButtonDef.d.ts.map +1 -0
  767. package/lib/esm/core-react/dialog/DialogButtonDef.js +35 -0
  768. package/lib/esm/core-react/dialog/DialogButtonDef.js.map +1 -0
  769. package/lib/esm/core-react/dialog/GlobalDialog.d.ts +28 -28
  770. package/lib/esm/core-react/dialog/GlobalDialog.js +49 -49
  771. package/lib/esm/core-react/dialog/GlobalDialog.js.map +1 -1
  772. package/lib/esm/core-react/elementseparator/ElementSeparator.d.ts +41 -41
  773. package/lib/esm/core-react/elementseparator/ElementSeparator.js +159 -159
  774. package/lib/esm/core-react/elementseparator/ElementSeparator.js.map +1 -1
  775. package/lib/esm/core-react/elementseparator/ElementSeparator.scss +85 -85
  776. package/lib/esm/core-react/enums/Alignment.d.ts +22 -22
  777. package/lib/esm/core-react/enums/Alignment.js +28 -28
  778. package/lib/esm/core-react/enums/Alignment.js.map +1 -1
  779. package/lib/esm/core-react/enums/CheckBoxState.d.ts +20 -20
  780. package/lib/esm/core-react/enums/CheckBoxState.js +16 -16
  781. package/lib/esm/core-react/enums/CheckBoxState.js.map +1 -1
  782. package/lib/esm/core-react/enums/Orientation.d.ts +11 -11
  783. package/lib/esm/core-react/enums/Orientation.js +16 -16
  784. package/lib/esm/core-react/enums/Orientation.js.map +1 -1
  785. package/lib/esm/core-react/enums/SortDirection.d.ts +12 -12
  786. package/lib/esm/core-react/enums/SortDirection.js +17 -17
  787. package/lib/esm/core-react/enums/SortDirection.js.map +1 -1
  788. package/lib/esm/core-react/enums/TimeFormat.d.ts +14 -14
  789. package/lib/esm/core-react/enums/TimeFormat.js +19 -19
  790. package/lib/esm/core-react/enums/TimeFormat.js.map +1 -1
  791. package/lib/esm/core-react/expandable/ExpandableBlock.d.ts +34 -0
  792. package/lib/esm/core-react/expandable/ExpandableBlock.d.ts.map +1 -0
  793. package/lib/esm/core-react/expandable/ExpandableBlock.js +32 -0
  794. package/lib/esm/core-react/expandable/ExpandableBlock.js.map +1 -0
  795. package/lib/esm/core-react/expandable/ExpandableBlock.scss +145 -0
  796. package/lib/esm/core-react/expandable/ExpandableList.d.ts +35 -37
  797. package/lib/esm/core-react/expandable/ExpandableList.d.ts.map +1 -1
  798. package/lib/esm/core-react/expandable/ExpandableList.js +53 -53
  799. package/lib/esm/core-react/expandable/ExpandableList.js.map +1 -1
  800. package/lib/esm/core-react/expandable/ExpandableList.scss +8 -8
  801. package/lib/esm/core-react/expandable/classes.scss +7 -7
  802. package/lib/esm/core-react/expandable/index.scss +5 -5
  803. package/lib/esm/core-react/expandable/list.scss +45 -35
  804. package/lib/esm/core-react/focus/ItemKeyboardNavigator.d.ts +53 -53
  805. package/lib/esm/core-react/focus/ItemKeyboardNavigator.js +145 -145
  806. package/lib/esm/core-react/focus/ItemKeyboardNavigator.js.map +1 -1
  807. package/lib/esm/core-react/focustrap/FocusTrap.d.ts +28 -28
  808. package/lib/esm/core-react/focustrap/FocusTrap.js +191 -191
  809. package/lib/esm/core-react/focustrap/FocusTrap.js.map +1 -1
  810. package/lib/esm/core-react/form/Field.d.ts +20 -0
  811. package/lib/esm/core-react/form/Field.d.ts.map +1 -0
  812. package/lib/esm/core-react/form/Field.js +41 -0
  813. package/lib/esm/core-react/form/Field.js.map +1 -0
  814. package/lib/esm/core-react/form/Form.d.ts +132 -0
  815. package/lib/esm/core-react/form/Form.d.ts.map +1 -0
  816. package/lib/esm/core-react/form/Form.js +128 -0
  817. package/lib/esm/core-react/form/Form.js.map +1 -0
  818. package/lib/esm/core-react/form/Form.scss +78 -0
  819. package/lib/esm/core-react/hocs/withIsPressed.d.ts +77 -77
  820. package/lib/esm/core-react/hocs/withIsPressed.js +42 -42
  821. package/lib/esm/core-react/hocs/withIsPressed.js.map +1 -1
  822. package/lib/esm/core-react/hocs/withOnOutsideClick.d.ts +103 -103
  823. package/lib/esm/core-react/hocs/withOnOutsideClick.js +111 -111
  824. package/lib/esm/core-react/hocs/withOnOutsideClick.js.map +1 -1
  825. package/lib/esm/core-react/hocs/withTimeout.d.ts +74 -74
  826. package/lib/esm/core-react/hocs/withTimeout.js +42 -42
  827. package/lib/esm/core-react/hocs/withTimeout.js.map +1 -1
  828. package/lib/esm/core-react/icons/IconComponent.d.ts +24 -24
  829. package/lib/esm/core-react/icons/IconComponent.js +50 -50
  830. package/lib/esm/core-react/icons/IconComponent.js.map +1 -1
  831. package/lib/esm/core-react/icons/IconComponent.scss +20 -20
  832. package/lib/esm/core-react/icons/SvgPath.d.ts +23 -23
  833. package/lib/esm/core-react/icons/SvgPath.js +23 -23
  834. package/lib/esm/core-react/icons/SvgPath.js.map +1 -1
  835. package/lib/esm/core-react/icons/SvgSprite.d.ts +20 -20
  836. package/lib/esm/core-react/icons/SvgSprite.js +22 -22
  837. package/lib/esm/core-react/icons/SvgSprite.js.map +1 -1
  838. package/lib/esm/core-react/icons/SvgSprite.scss +15 -15
  839. package/lib/esm/core-react/icons/WebFontIcon.d.ts +26 -26
  840. package/lib/esm/core-react/icons/WebFontIcon.js +18 -18
  841. package/lib/esm/core-react/icons/WebFontIcon.js.map +1 -1
  842. package/lib/esm/core-react/icons/WebFontIcon.scss +17 -17
  843. package/lib/esm/core-react/icons/classes.scss +10 -10
  844. package/lib/esm/core-react/icons/index.scss +6 -6
  845. package/lib/esm/core-react/icons/mixins.scss +25 -25
  846. package/lib/esm/core-react/icons/variables.scss +21 -21
  847. package/lib/esm/core-react/imagecheckbox/ImageCheckBox.d.ts +42 -42
  848. package/lib/esm/core-react/imagecheckbox/ImageCheckBox.js +52 -52
  849. package/lib/esm/core-react/imagecheckbox/ImageCheckBox.js.map +1 -1
  850. package/lib/esm/core-react/imagecheckbox/ImageCheckBox.scss +55 -54
  851. package/lib/esm/core-react/index.scss +27 -23
  852. package/lib/esm/core-react/inputs/Input.d.ts +22 -20
  853. package/lib/esm/core-react/inputs/Input.d.ts.map +1 -1
  854. package/lib/esm/core-react/inputs/Input.js +43 -42
  855. package/lib/esm/core-react/inputs/Input.js.map +1 -1
  856. package/lib/esm/core-react/inputs/InputLabel.d.ts +18 -20
  857. package/lib/esm/core-react/inputs/InputLabel.d.ts.map +1 -1
  858. package/lib/esm/core-react/inputs/InputLabel.js +29 -29
  859. package/lib/esm/core-react/inputs/InputLabel.js.map +1 -1
  860. package/lib/esm/core-react/inputs/InputStatus.d.ts +11 -11
  861. package/lib/esm/core-react/inputs/InputStatus.js +16 -16
  862. package/lib/esm/core-react/inputs/InputStatus.js.map +1 -1
  863. package/lib/esm/core-react/inputs/LabeledComponentProps.d.ts +33 -33
  864. package/lib/esm/core-react/inputs/LabeledComponentProps.js +8 -8
  865. package/lib/esm/core-react/inputs/LabeledComponentProps.js.map +1 -1
  866. package/lib/esm/core-react/inputs/LabeledInput.d.ts +18 -0
  867. package/lib/esm/core-react/inputs/LabeledInput.d.ts.map +1 -0
  868. package/lib/esm/core-react/inputs/LabeledInput.js +30 -0
  869. package/lib/esm/core-react/inputs/LabeledInput.js.map +1 -0
  870. package/lib/esm/core-react/inputs/LabeledTextarea.d.ts +18 -0
  871. package/lib/esm/core-react/inputs/LabeledTextarea.d.ts.map +1 -0
  872. package/lib/esm/core-react/inputs/LabeledTextarea.js +28 -0
  873. package/lib/esm/core-react/inputs/LabeledTextarea.js.map +1 -0
  874. package/lib/esm/core-react/inputs/Textarea.d.ts +23 -0
  875. package/lib/esm/core-react/inputs/Textarea.d.ts.map +1 -0
  876. package/lib/esm/core-react/inputs/Textarea.js +33 -0
  877. package/lib/esm/core-react/inputs/Textarea.js.map +1 -0
  878. package/lib/esm/core-react/inputs/classes.scss +10 -8
  879. package/lib/esm/core-react/inputs/iconinput/IconInput.d.ts +23 -23
  880. package/lib/esm/core-react/inputs/iconinput/IconInput.js +26 -26
  881. package/lib/esm/core-react/inputs/iconinput/IconInput.js.map +1 -1
  882. package/lib/esm/core-react/inputs/iconinput/IconInput.scss +35 -35
  883. package/lib/esm/core-react/inputs/index.scss +11 -9
  884. package/lib/esm/core-react/inputs/input.scss +60 -58
  885. package/lib/esm/core-react/inputs/labeled-input.scss +103 -0
  886. package/lib/esm/core-react/inputs/labeled-textarea.scss +77 -0
  887. package/lib/esm/core-react/inputs/numberinput/NumberInput.d.ts +45 -45
  888. package/lib/esm/core-react/inputs/numberinput/NumberInput.js +145 -145
  889. package/lib/esm/core-react/inputs/numberinput/NumberInput.js.map +1 -1
  890. package/lib/esm/core-react/inputs/numberinput/NumberInput.scss +89 -89
  891. package/lib/esm/core-react/inputs/textarea.scss +55 -0
  892. package/lib/esm/core-react/inputs/variables.scss +33 -38
  893. package/lib/esm/core-react/layout-variables.scss +17 -17
  894. package/lib/esm/core-react/listbox/Listbox.d.ts +55 -55
  895. package/lib/esm/core-react/listbox/Listbox.js +217 -217
  896. package/lib/esm/core-react/listbox/Listbox.js.map +1 -1
  897. package/lib/esm/core-react/listbox/Listbox.scss +54 -54
  898. package/lib/esm/core-react/loading/LoadingBar.d.ts +29 -29
  899. package/lib/esm/core-react/loading/LoadingBar.js +35 -35
  900. package/lib/esm/core-react/loading/LoadingBar.js.map +1 -1
  901. package/lib/esm/core-react/loading/LoadingBar.scss +29 -29
  902. package/lib/esm/core-react/loading/LoadingPrompt.d.ts +39 -39
  903. package/lib/esm/core-react/loading/LoadingPrompt.js +40 -40
  904. package/lib/esm/core-react/loading/LoadingPrompt.js.map +1 -1
  905. package/lib/esm/core-react/loading/LoadingPrompt.scss +33 -33
  906. package/lib/esm/core-react/loading/LoadingSpinner.d.ts +33 -32
  907. package/lib/esm/core-react/loading/LoadingSpinner.d.ts.map +1 -1
  908. package/lib/esm/core-react/loading/LoadingSpinner.js +41 -26
  909. package/lib/esm/core-react/loading/LoadingSpinner.js.map +1 -1
  910. package/lib/esm/core-react/loading/LoadingSpinner.scss +27 -26
  911. package/lib/esm/core-react/loading/LoadingStatus.d.ts +24 -24
  912. package/lib/esm/core-react/loading/LoadingStatus.js +33 -33
  913. package/lib/esm/core-react/loading/LoadingStatus.js.map +1 -1
  914. package/lib/esm/core-react/loading/LoadingStatus.scss +20 -20
  915. package/lib/esm/core-react/loading/Spinner.d.ts +38 -0
  916. package/lib/esm/core-react/loading/Spinner.d.ts.map +1 -0
  917. package/lib/esm/core-react/loading/Spinner.js +57 -0
  918. package/lib/esm/core-react/loading/Spinner.js.map +1 -0
  919. package/lib/esm/core-react/loading/Spinner.scss +26 -0
  920. package/lib/esm/core-react/loading/index.scss +5 -5
  921. package/lib/esm/core-react/loading/mixins.scss +57 -57
  922. package/lib/esm/core-react/messagebox/MessageBox.d.ts +64 -68
  923. package/lib/esm/core-react/messagebox/MessageBox.d.ts.map +1 -1
  924. package/lib/esm/core-react/messagebox/MessageBox.js +65 -65
  925. package/lib/esm/core-react/messagebox/MessageBox.js.map +1 -1
  926. package/lib/esm/core-react/messagebox/MessageBox.scss +46 -46
  927. package/lib/esm/core-react/messagebox/MessageSeverity.d.ts +16 -0
  928. package/lib/esm/core-react/messagebox/MessageSeverity.d.ts.map +1 -0
  929. package/lib/esm/core-react/messagebox/MessageSeverity.js +21 -0
  930. package/lib/esm/core-react/messagebox/MessageSeverity.js.map +1 -0
  931. package/lib/esm/core-react/notification/MessageRenderer.d.ts +19 -19
  932. package/lib/esm/core-react/notification/MessageRenderer.js +77 -77
  933. package/lib/esm/core-react/notification/MessageRenderer.js.map +1 -1
  934. package/lib/esm/core-react/notification/MessageType.d.ts +22 -22
  935. package/lib/esm/core-react/notification/MessageType.js +19 -19
  936. package/lib/esm/core-react/notification/MessageType.js.map +1 -1
  937. package/lib/esm/core-react/popup/Popup.d.ts +109 -111
  938. package/lib/esm/core-react/popup/Popup.d.ts.map +1 -1
  939. package/lib/esm/core-react/popup/Popup.js +415 -415
  940. package/lib/esm/core-react/popup/Popup.js.map +1 -1
  941. package/lib/esm/core-react/popup/Popup.scss +240 -240
  942. package/lib/esm/core-react/progress-indicators/ProgressBar.d.ts +29 -0
  943. package/lib/esm/core-react/progress-indicators/ProgressBar.d.ts.map +1 -0
  944. package/lib/esm/core-react/progress-indicators/ProgressBar.js +44 -0
  945. package/lib/esm/core-react/progress-indicators/ProgressBar.js.map +1 -0
  946. package/lib/esm/core-react/progress-indicators/ProgressSpinner.d.ts +49 -0
  947. package/lib/esm/core-react/progress-indicators/ProgressSpinner.d.ts.map +1 -0
  948. package/lib/esm/core-react/progress-indicators/ProgressSpinner.js +70 -0
  949. package/lib/esm/core-react/progress-indicators/ProgressSpinner.js.map +1 -0
  950. package/lib/esm/core-react/progress-indicators/classes.scss +33 -0
  951. package/lib/esm/core-react/progress-indicators/index.scss +6 -0
  952. package/lib/esm/core-react/progress-indicators/progress-bar.scss +91 -0
  953. package/lib/esm/core-react/progress-indicators/progress-spinner.scss +132 -0
  954. package/lib/esm/core-react/radialmenu/Annulus.d.ts +54 -54
  955. package/lib/esm/core-react/radialmenu/Annulus.js +75 -75
  956. package/lib/esm/core-react/radialmenu/Annulus.js.map +1 -1
  957. package/lib/esm/core-react/radialmenu/RadialMenu.d.ts +93 -97
  958. package/lib/esm/core-react/radialmenu/RadialMenu.d.ts.map +1 -1
  959. package/lib/esm/core-react/radialmenu/RadialMenu.js +174 -174
  960. package/lib/esm/core-react/radialmenu/RadialMenu.js.map +1 -1
  961. package/lib/esm/core-react/radialmenu/RadialMenu.scss +56 -55
  962. package/lib/esm/core-react/radio/Radio.d.ts +20 -0
  963. package/lib/esm/core-react/radio/Radio.d.ts.map +1 -0
  964. package/lib/esm/core-react/radio/Radio.js +24 -0
  965. package/lib/esm/core-react/radio/Radio.js.map +1 -0
  966. package/lib/esm/core-react/radio/classes.scss +7 -0
  967. package/lib/esm/core-react/radio/index.scss +8 -0
  968. package/lib/esm/core-react/radio/radio.scss +89 -0
  969. package/lib/esm/core-react/searchbox/SearchBox.d.ts +52 -52
  970. package/lib/esm/core-react/searchbox/SearchBox.js +105 -105
  971. package/lib/esm/core-react/searchbox/SearchBox.js.map +1 -1
  972. package/lib/esm/core-react/searchbox/SearchBox.scss +53 -51
  973. package/lib/esm/core-react/select/LabeledSelect.d.ts +20 -0
  974. package/lib/esm/core-react/select/LabeledSelect.d.ts.map +1 -0
  975. package/lib/esm/core-react/select/LabeledSelect.js +30 -0
  976. package/lib/esm/core-react/select/LabeledSelect.js.map +1 -0
  977. package/lib/esm/core-react/select/LabeledThemedSelect.d.ts +16 -0
  978. package/lib/esm/core-react/select/LabeledThemedSelect.d.ts.map +1 -0
  979. package/lib/esm/core-react/select/LabeledThemedSelect.js +27 -0
  980. package/lib/esm/core-react/select/LabeledThemedSelect.js.map +1 -0
  981. package/lib/esm/core-react/select/Select.d.ts +53 -0
  982. package/lib/esm/core-react/select/Select.d.ts.map +1 -0
  983. package/lib/esm/core-react/select/Select.js +57 -0
  984. package/lib/esm/core-react/select/Select.js.map +1 -0
  985. package/lib/esm/core-react/select/ThemedSelect.d.ts +104 -0
  986. package/lib/esm/core-react/select/ThemedSelect.d.ts.map +1 -0
  987. package/lib/esm/core-react/select/ThemedSelect.js +53 -0
  988. package/lib/esm/core-react/select/ThemedSelect.js.map +1 -0
  989. package/lib/esm/core-react/select/classes.scss +9 -0
  990. package/lib/esm/core-react/select/index.scss +10 -0
  991. package/lib/esm/core-react/select/labeled-select.scss +72 -0
  992. package/lib/esm/core-react/select/labeled-themed-select.scss +77 -0
  993. package/lib/esm/core-react/select/modalHelper.d.ts +5 -0
  994. package/lib/esm/core-react/select/modalHelper.d.ts.map +1 -0
  995. package/lib/esm/core-react/select/modalHelper.js +17 -0
  996. package/lib/esm/core-react/select/modalHelper.js.map +1 -0
  997. package/lib/esm/core-react/select/select.scss +74 -0
  998. package/lib/esm/core-react/select/themed-select.scss +159 -0
  999. package/lib/esm/core-react/settings/SettingsContainer.d.ts +30 -30
  1000. package/lib/esm/core-react/settings/SettingsContainer.js +115 -115
  1001. package/lib/esm/core-react/settings/SettingsContainer.js.map +1 -1
  1002. package/lib/esm/core-react/settings/SettingsContainer.scss +65 -66
  1003. package/lib/esm/core-react/settings/SettingsManager.d.ts +132 -132
  1004. package/lib/esm/core-react/settings/SettingsManager.js +113 -113
  1005. package/lib/esm/core-react/settings/SettingsManager.js.map +1 -1
  1006. package/lib/esm/core-react/slider/Slider.d.ts +80 -0
  1007. package/lib/esm/core-react/slider/Slider.d.ts.map +1 -0
  1008. package/lib/esm/core-react/slider/Slider.js +87 -0
  1009. package/lib/esm/core-react/slider/Slider.js.map +1 -0
  1010. package/lib/esm/core-react/slider/Slider.scss +96 -0
  1011. package/lib/esm/core-react/splitbutton/SplitButton.d.ts +62 -0
  1012. package/lib/esm/core-react/splitbutton/SplitButton.d.ts.map +1 -0
  1013. package/lib/esm/core-react/splitbutton/SplitButton.js +100 -0
  1014. package/lib/esm/core-react/splitbutton/SplitButton.js.map +1 -0
  1015. package/lib/esm/core-react/splitbutton/SplitButton.scss +137 -0
  1016. package/lib/esm/core-react/style/baseline.scss +13 -11
  1017. package/lib/esm/core-react/style/breakpoints.scss +41 -41
  1018. package/lib/esm/core-react/style/colors.scss +77 -77
  1019. package/lib/esm/core-react/style/data-viz.scss +23 -20
  1020. package/lib/esm/core-react/style/index.scss +17 -17
  1021. package/lib/esm/core-react/style/itwinui-overrides.scss +24 -23
  1022. package/lib/esm/core-react/style/mixins.scss +28 -27
  1023. package/lib/esm/core-react/style/opacity.scss +17 -16
  1024. package/lib/esm/core-react/style/space.scss +17 -13
  1025. package/lib/esm/core-react/style/speed.scss +13 -12
  1026. package/lib/esm/core-react/style/themecolors.scss +129 -129
  1027. package/lib/esm/core-react/style/typography.scss +43 -44
  1028. package/lib/esm/core-react/style/variables.scss +13 -12
  1029. package/lib/esm/core-react/tabs/HorizontalTabs.d.ts +11 -0
  1030. package/lib/esm/core-react/tabs/HorizontalTabs.d.ts.map +1 -0
  1031. package/lib/esm/core-react/tabs/HorizontalTabs.js +18 -0
  1032. package/lib/esm/core-react/tabs/HorizontalTabs.js.map +1 -0
  1033. package/lib/esm/core-react/tabs/Tabs.d.ts +71 -71
  1034. package/lib/esm/core-react/tabs/Tabs.js +121 -121
  1035. package/lib/esm/core-react/tabs/Tabs.js.map +1 -1
  1036. package/lib/esm/core-react/tabs/VerticalTabs.d.ts +9 -9
  1037. package/lib/esm/core-react/tabs/VerticalTabs.js +16 -16
  1038. package/lib/esm/core-react/tabs/VerticalTabs.js.map +1 -1
  1039. package/lib/esm/core-react/tabs/classes.scss +8 -7
  1040. package/lib/esm/core-react/tabs/horizontal.scss +77 -0
  1041. package/lib/esm/core-react/tabs/index.scss +6 -5
  1042. package/lib/esm/core-react/tabs/tabs.scss +117 -106
  1043. package/lib/esm/core-react/tabs/vertical.scss +64 -58
  1044. package/lib/esm/core-react/text/BlockText.d.ts +9 -9
  1045. package/lib/esm/core-react/text/BlockText.js +15 -15
  1046. package/lib/esm/core-react/text/BlockText.js.map +1 -1
  1047. package/lib/esm/core-react/text/BodyText.d.ts +9 -9
  1048. package/lib/esm/core-react/text/BodyText.js +15 -15
  1049. package/lib/esm/core-react/text/BodyText.js.map +1 -1
  1050. package/lib/esm/core-react/text/DisabledText.d.ts +6 -6
  1051. package/lib/esm/core-react/text/DisabledText.js +15 -15
  1052. package/lib/esm/core-react/text/DisabledText.js.map +1 -1
  1053. package/lib/esm/core-react/text/FilteredText.d.ts +24 -24
  1054. package/lib/esm/core-react/text/FilteredText.js +36 -36
  1055. package/lib/esm/core-react/text/FilteredText.js.map +1 -1
  1056. package/lib/esm/core-react/text/FilteredText.scss +10 -10
  1057. package/lib/esm/core-react/text/Headline.d.ts +11 -0
  1058. package/lib/esm/core-react/text/Headline.d.ts.map +1 -0
  1059. package/lib/esm/core-react/text/Headline.js +17 -0
  1060. package/lib/esm/core-react/text/Headline.js.map +1 -0
  1061. package/lib/esm/core-react/text/LeadingText.d.ts +11 -0
  1062. package/lib/esm/core-react/text/LeadingText.d.ts.map +1 -0
  1063. package/lib/esm/core-react/text/LeadingText.js +17 -0
  1064. package/lib/esm/core-react/text/LeadingText.js.map +1 -0
  1065. package/lib/esm/core-react/text/LeadingText2.d.ts +11 -0
  1066. package/lib/esm/core-react/text/LeadingText2.d.ts.map +1 -0
  1067. package/lib/esm/core-react/text/LeadingText2.js +17 -0
  1068. package/lib/esm/core-react/text/LeadingText2.js.map +1 -0
  1069. package/lib/esm/core-react/text/MutedText.d.ts +9 -9
  1070. package/lib/esm/core-react/text/MutedText.js +15 -15
  1071. package/lib/esm/core-react/text/MutedText.js.map +1 -1
  1072. package/lib/esm/core-react/text/SmallText.d.ts +11 -0
  1073. package/lib/esm/core-react/text/SmallText.d.ts.map +1 -0
  1074. package/lib/esm/core-react/text/SmallText.js +17 -0
  1075. package/lib/esm/core-react/text/SmallText.js.map +1 -0
  1076. package/lib/esm/core-react/text/StyledText.d.ts +16 -16
  1077. package/lib/esm/core-react/text/StyledText.js +16 -16
  1078. package/lib/esm/core-react/text/StyledText.js.map +1 -1
  1079. package/lib/esm/core-react/text/Subheading.d.ts +11 -0
  1080. package/lib/esm/core-react/text/Subheading.d.ts.map +1 -0
  1081. package/lib/esm/core-react/text/Subheading.js +17 -0
  1082. package/lib/esm/core-react/text/Subheading.js.map +1 -0
  1083. package/lib/esm/core-react/text/Subheading2.d.ts +11 -0
  1084. package/lib/esm/core-react/text/Subheading2.d.ts.map +1 -0
  1085. package/lib/esm/core-react/text/Subheading2.js +17 -0
  1086. package/lib/esm/core-react/text/Subheading2.js.map +1 -0
  1087. package/lib/esm/core-react/text/TextProps.d.ts +10 -10
  1088. package/lib/esm/core-react/text/TextProps.js +8 -8
  1089. package/lib/esm/core-react/text/TextProps.js.map +1 -1
  1090. package/lib/esm/core-react/text/Title.d.ts +11 -0
  1091. package/lib/esm/core-react/text/Title.d.ts.map +1 -0
  1092. package/lib/esm/core-react/text/Title.js +17 -0
  1093. package/lib/esm/core-react/text/Title.js.map +1 -0
  1094. package/lib/esm/core-react/text/Title2.d.ts +11 -0
  1095. package/lib/esm/core-react/text/Title2.d.ts.map +1 -0
  1096. package/lib/esm/core-react/text/Title2.js +17 -0
  1097. package/lib/esm/core-react/text/Title2.js.map +1 -0
  1098. package/lib/esm/core-react/text/block.scss +10 -10
  1099. package/lib/esm/core-react/text/body.scss +10 -10
  1100. package/lib/esm/core-react/text/classes.scss +18 -10
  1101. package/lib/esm/core-react/text/disabled.scss +10 -10
  1102. package/lib/esm/core-react/text/headline.scss +10 -0
  1103. package/lib/esm/core-react/text/index.scss +18 -10
  1104. package/lib/esm/core-react/text/leading-2.scss +11 -0
  1105. package/lib/esm/core-react/text/leading.scss +10 -0
  1106. package/lib/esm/core-react/text/mixins.scss +62 -24
  1107. package/lib/esm/core-react/text/muted.scss +10 -10
  1108. package/lib/esm/core-react/text/small.scss +10 -0
  1109. package/lib/esm/core-react/text/subheading-2.scss +11 -0
  1110. package/lib/esm/core-react/text/subheading.scss +11 -0
  1111. package/lib/esm/core-react/text/title-2.scss +11 -0
  1112. package/lib/esm/core-react/text/title.scss +10 -0
  1113. package/lib/esm/core-react/tiles/FeaturedTile.d.ts +11 -0
  1114. package/lib/esm/core-react/tiles/FeaturedTile.d.ts.map +1 -0
  1115. package/lib/esm/core-react/tiles/FeaturedTile.js +17 -0
  1116. package/lib/esm/core-react/tiles/FeaturedTile.js.map +1 -0
  1117. package/lib/esm/core-react/tiles/MinimalFeaturedTile.d.ts +11 -0
  1118. package/lib/esm/core-react/tiles/MinimalFeaturedTile.d.ts.map +1 -0
  1119. package/lib/esm/core-react/tiles/MinimalFeaturedTile.js +17 -0
  1120. package/lib/esm/core-react/tiles/MinimalFeaturedTile.js.map +1 -0
  1121. package/lib/esm/core-react/tiles/MinimalTile.d.ts +11 -0
  1122. package/lib/esm/core-react/tiles/MinimalTile.d.ts.map +1 -0
  1123. package/lib/esm/core-react/tiles/MinimalTile.js +17 -0
  1124. package/lib/esm/core-react/tiles/MinimalTile.js.map +1 -0
  1125. package/lib/esm/core-react/tiles/Tile.d.ts +32 -0
  1126. package/lib/esm/core-react/tiles/Tile.d.ts.map +1 -0
  1127. package/lib/esm/core-react/tiles/Tile.js +36 -0
  1128. package/lib/esm/core-react/tiles/Tile.js.map +1 -0
  1129. package/lib/esm/core-react/tiles/classes.scss +7 -0
  1130. package/lib/esm/core-react/tiles/index.scss +5 -0
  1131. package/lib/esm/core-react/tiles/tile.scss +134 -0
  1132. package/lib/esm/core-react/toggle/LabeledToggle.d.ts +26 -0
  1133. package/lib/esm/core-react/toggle/LabeledToggle.d.ts.map +1 -0
  1134. package/lib/esm/core-react/toggle/LabeledToggle.js +25 -0
  1135. package/lib/esm/core-react/toggle/LabeledToggle.js.map +1 -0
  1136. package/lib/esm/core-react/toggle/LabeledToggle.scss +21 -0
  1137. package/lib/esm/core-react/toggle/Toggle.d.ts +52 -0
  1138. package/lib/esm/core-react/toggle/Toggle.d.ts.map +1 -0
  1139. package/lib/esm/core-react/toggle/Toggle.js +102 -0
  1140. package/lib/esm/core-react/toggle/Toggle.js.map +1 -0
  1141. package/lib/esm/core-react/toggle/Toggle.scss +135 -0
  1142. package/lib/esm/core-react/tooltip/Tooltip.d.ts +34 -0
  1143. package/lib/esm/core-react/tooltip/Tooltip.d.ts.map +1 -0
  1144. package/lib/esm/core-react/tooltip/Tooltip.js +52 -0
  1145. package/lib/esm/core-react/tooltip/Tooltip.js.map +1 -0
  1146. package/lib/esm/core-react/tooltip/Tooltip.scss +18 -0
  1147. package/lib/esm/core-react/tree/Branch.d.ts +19 -19
  1148. package/lib/esm/core-react/tree/Branch.js +19 -19
  1149. package/lib/esm/core-react/tree/Branch.js.map +1 -1
  1150. package/lib/esm/core-react/tree/Branch.scss +12 -12
  1151. package/lib/esm/core-react/tree/ExpansionToggle.d.ts +20 -20
  1152. package/lib/esm/core-react/tree/ExpansionToggle.js +24 -24
  1153. package/lib/esm/core-react/tree/ExpansionToggle.js.map +1 -1
  1154. package/lib/esm/core-react/tree/ExpansionToggle.scss +28 -28
  1155. package/lib/esm/core-react/tree/Node.d.ts +79 -79
  1156. package/lib/esm/core-react/tree/Node.js +84 -84
  1157. package/lib/esm/core-react/tree/Node.js.map +1 -1
  1158. package/lib/esm/core-react/tree/Node.scss +84 -84
  1159. package/lib/esm/core-react/tree/Placeholder.d.ts +22 -22
  1160. package/lib/esm/core-react/tree/Placeholder.js +27 -27
  1161. package/lib/esm/core-react/tree/Placeholder.js.map +1 -1
  1162. package/lib/esm/core-react/tree/Placeholder.scss +20 -20
  1163. package/lib/esm/core-react/tree/Tree.d.ts +28 -28
  1164. package/lib/esm/core-react/tree/Tree.js +96 -96
  1165. package/lib/esm/core-react/tree/Tree.js.map +1 -1
  1166. package/lib/esm/core-react/tree/Tree.scss +21 -21
  1167. package/lib/esm/core-react/uistate/LocalStateStorage.d.ts +16 -16
  1168. package/lib/esm/core-react/uistate/LocalStateStorage.js +45 -45
  1169. package/lib/esm/core-react/uistate/LocalStateStorage.js.map +1 -1
  1170. package/lib/esm/core-react/uistate/UiStateEntry.d.ts +30 -30
  1171. package/lib/esm/core-react/uistate/UiStateEntry.js +55 -55
  1172. package/lib/esm/core-react/uistate/UiStateEntry.js.map +1 -1
  1173. package/lib/esm/core-react/uistate/UiStateStorage.d.ts +28 -28
  1174. package/lib/esm/core-react/uistate/UiStateStorage.js +18 -18
  1175. package/lib/esm/core-react/uistate/UiStateStorage.js.map +1 -1
  1176. package/lib/esm/core-react/utils/IconHelper.d.ts +23 -23
  1177. package/lib/esm/core-react/utils/IconHelper.js +58 -58
  1178. package/lib/esm/core-react/utils/IconHelper.js.map +1 -1
  1179. package/lib/esm/core-react/utils/IconWebComponent.d.ts +10 -10
  1180. package/lib/esm/core-react/utils/IconWebComponent.js +68 -68
  1181. package/lib/esm/core-react/utils/IconWebComponent.js.map +1 -1
  1182. package/lib/esm/core-react/utils/Point.d.ts +37 -37
  1183. package/lib/esm/core-react/utils/Point.js +69 -69
  1184. package/lib/esm/core-react/utils/Point.js.map +1 -1
  1185. package/lib/esm/core-react/utils/PointProps.d.ts +12 -0
  1186. package/lib/esm/core-react/utils/PointProps.d.ts.map +1 -0
  1187. package/lib/esm/core-react/utils/PointProps.js +9 -0
  1188. package/lib/esm/core-react/utils/PointProps.js.map +1 -0
  1189. package/lib/esm/core-react/utils/Props.d.ts +38 -38
  1190. package/lib/esm/core-react/utils/Props.js +8 -8
  1191. package/lib/esm/core-react/utils/Props.js.map +1 -1
  1192. package/lib/esm/core-react/utils/Rectangle.d.ts +144 -144
  1193. package/lib/esm/core-react/utils/Rectangle.js +266 -266
  1194. package/lib/esm/core-react/utils/Rectangle.js.map +1 -1
  1195. package/lib/esm/core-react/utils/ScrollPositionMaintainer.d.ts +23 -23
  1196. package/lib/esm/core-react/utils/ScrollPositionMaintainer.js +32 -32
  1197. package/lib/esm/core-react/utils/ScrollPositionMaintainer.js.map +1 -1
  1198. package/lib/esm/core-react/utils/Size.d.ts +23 -23
  1199. package/lib/esm/core-react/utils/Size.js +28 -28
  1200. package/lib/esm/core-react/utils/Size.js.map +1 -1
  1201. package/lib/esm/core-react/utils/Timer.d.ts +35 -35
  1202. package/lib/esm/core-react/utils/Timer.js +60 -60
  1203. package/lib/esm/core-react/utils/Timer.js.map +1 -1
  1204. package/lib/esm/core-react/utils/UiEvent.d.ts +10 -0
  1205. package/lib/esm/core-react/utils/UiEvent.d.ts.map +1 -0
  1206. package/lib/esm/core-react/utils/UiEvent.js +14 -0
  1207. package/lib/esm/core-react/utils/UiEvent.js.map +1 -0
  1208. package/lib/esm/core-react/utils/UiGeometry.d.ts +20 -20
  1209. package/lib/esm/core-react/utils/UiGeometry.js +24 -24
  1210. package/lib/esm/core-react/utils/UiGeometry.js.map +1 -1
  1211. package/lib/esm/core-react/utils/flattenChildren.d.ts +8 -8
  1212. package/lib/esm/core-react/utils/flattenChildren.js +23 -23
  1213. package/lib/esm/core-react/utils/flattenChildren.js.map +1 -1
  1214. package/lib/esm/core-react/utils/getBestBWContrastColor.d.ts +7 -7
  1215. package/lib/esm/core-react/utils/getBestBWContrastColor.js +18 -18
  1216. package/lib/esm/core-react/utils/getBestBWContrastColor.js.map +1 -1
  1217. package/lib/esm/core-react/utils/getCssVariable.d.ts +11 -11
  1218. package/lib/esm/core-react/utils/getCssVariable.js +26 -26
  1219. package/lib/esm/core-react/utils/getCssVariable.js.map +1 -1
  1220. package/lib/esm/core-react/utils/getDisplayName.d.ts +8 -8
  1221. package/lib/esm/core-react/utils/getDisplayName.js +17 -17
  1222. package/lib/esm/core-react/utils/getDisplayName.js.map +1 -1
  1223. package/lib/esm/core-react/utils/getUserColor.d.ts +7 -7
  1224. package/lib/esm/core-react/utils/getUserColor.js +34 -34
  1225. package/lib/esm/core-react/utils/getUserColor.js.map +1 -1
  1226. package/lib/esm/core-react/utils/hooks/ResizeObserverPolyfill.d.ts +4 -4
  1227. package/lib/esm/core-react/utils/hooks/ResizeObserverPolyfill.js +16 -16
  1228. package/lib/esm/core-react/utils/hooks/ResizeObserverPolyfill.js.map +1 -1
  1229. package/lib/esm/core-react/utils/hooks/useCrossOriginPopup.d.ts +7 -7
  1230. package/lib/esm/core-react/utils/hooks/useCrossOriginPopup.js +85 -85
  1231. package/lib/esm/core-react/utils/hooks/useCrossOriginPopup.js.map +1 -1
  1232. package/lib/esm/core-react/utils/hooks/useDisposable.d.ts +17 -17
  1233. package/lib/esm/core-react/utils/hooks/useDisposable.js +33 -33
  1234. package/lib/esm/core-react/utils/hooks/useDisposable.js.map +1 -1
  1235. package/lib/esm/core-react/utils/hooks/useEffectSkipFirst.d.ts +8 -8
  1236. package/lib/esm/core-react/utils/hooks/useEffectSkipFirst.js +22 -22
  1237. package/lib/esm/core-react/utils/hooks/useEffectSkipFirst.js.map +1 -1
  1238. package/lib/esm/core-react/utils/hooks/useEventListener.d.ts +11 -11
  1239. package/lib/esm/core-react/utils/hooks/useEventListener.js +39 -39
  1240. package/lib/esm/core-react/utils/hooks/useEventListener.js.map +1 -1
  1241. package/lib/esm/core-react/utils/hooks/useInterval.d.ts +5 -5
  1242. package/lib/esm/core-react/utils/hooks/useInterval.js +32 -32
  1243. package/lib/esm/core-react/utils/hooks/useInterval.js.map +1 -1
  1244. package/lib/esm/core-react/utils/hooks/useLifecycleLogging.d.ts +5 -5
  1245. package/lib/esm/core-react/utils/hooks/useLifecycleLogging.js +60 -60
  1246. package/lib/esm/core-react/utils/hooks/useLifecycleLogging.js.map +1 -1
  1247. package/lib/esm/core-react/utils/hooks/useOnOutsideClick.d.ts +12 -12
  1248. package/lib/esm/core-react/utils/hooks/useOnOutsideClick.js +88 -88
  1249. package/lib/esm/core-react/utils/hooks/useOnOutsideClick.js.map +1 -1
  1250. package/lib/esm/core-react/utils/hooks/useProximityToMouse.d.ts +55 -55
  1251. package/lib/esm/core-react/utils/hooks/useProximityToMouse.js +102 -102
  1252. package/lib/esm/core-react/utils/hooks/useProximityToMouse.js.map +1 -1
  1253. package/lib/esm/core-react/utils/hooks/useRefEffect.d.ts +7 -7
  1254. package/lib/esm/core-react/utils/hooks/useRefEffect.js +19 -19
  1255. package/lib/esm/core-react/utils/hooks/useRefEffect.js.map +1 -1
  1256. package/lib/esm/core-react/utils/hooks/useRefState.d.ts +21 -21
  1257. package/lib/esm/core-react/utils/hooks/useRefState.js +31 -31
  1258. package/lib/esm/core-react/utils/hooks/useRefState.js.map +1 -1
  1259. package/lib/esm/core-react/utils/hooks/useRefs.d.ts +12 -12
  1260. package/lib/esm/core-react/utils/hooks/useRefs.js +48 -48
  1261. package/lib/esm/core-react/utils/hooks/useRefs.js.map +1 -1
  1262. package/lib/esm/core-react/utils/hooks/useResizeObserver.d.ts +39 -39
  1263. package/lib/esm/core-react/utils/hooks/useResizeObserver.js +201 -201
  1264. package/lib/esm/core-react/utils/hooks/useResizeObserver.js.map +1 -1
  1265. package/lib/esm/core-react/utils/hooks/useTargeted.d.ts +8 -8
  1266. package/lib/esm/core-react/utils/hooks/useTargeted.js +24 -24
  1267. package/lib/esm/core-react/utils/hooks/useTargeted.js.map +1 -1
  1268. package/lib/esm/core-react/utils/hooks/useThrottledFn.d.ts +15 -15
  1269. package/lib/esm/core-react/utils/hooks/useThrottledFn.js +21 -21
  1270. package/lib/esm/core-react/utils/hooks/useThrottledFn.js.map +1 -1
  1271. package/lib/esm/core-react/utils/hooks/useWidgetOpacityContext.d.ts +20 -20
  1272. package/lib/esm/core-react/utils/hooks/useWidgetOpacityContext.js +23 -23
  1273. package/lib/esm/core-react/utils/hooks/useWidgetOpacityContext.js.map +1 -1
  1274. package/lib/esm/core-react/utils/isPromiseLike.d.ts +7 -7
  1275. package/lib/esm/core-react/utils/isPromiseLike.js +13 -13
  1276. package/lib/esm/core-react/utils/isPromiseLike.js.map +1 -1
  1277. package/lib/esm/core-react/utils/shallowDiffers.d.ts +11 -11
  1278. package/lib/esm/core-react/utils/shallowDiffers.js +25 -25
  1279. package/lib/esm/core-react/utils/shallowDiffers.js.map +1 -1
  1280. package/lib/esm/core-react/utils/typeUtils.d.ts +7 -7
  1281. package/lib/esm/core-react/utils/typeUtils.js +8 -8
  1282. package/lib/esm/core-react/utils/typeUtils.js.map +1 -1
  1283. package/lib/esm/core-react.d.ts +275 -236
  1284. package/lib/esm/core-react.d.ts.map +1 -1
  1285. package/lib/esm/core-react.js +280 -241
  1286. package/lib/esm/core-react.js.map +1 -1
  1287. package/lib/public/locales/en/UiCore.json +30 -30
  1288. package/package.json +27 -18
  1289. package/lib/cjs/core-react/inputs/input-label.scss +0 -90
  1290. package/lib/esm/core-react/inputs/input-label.scss +0 -90
@@ -1 +1 @@
1
- {"version":3,"file":"Popup.js","sourceRoot":"","sources":["../../../../src/core-react/popup/Popup.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,cAAc,CAAC;AACtB,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,QAAQ,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAuFnD;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,KAAK,CAAC,SAAiC;IAGhE,YAAY,KAAiB;;QAC3B,KAAK,CAAC,KAAK,CAAC,CAAC;QAHP,WAAM,GAAuB,IAAI,CAAC;QAkFlC,sBAAiB,GAAG,GAAG,EAAE;YAC/B,MAAM,YAAY,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;YAC5C,YAAY,CAAC,gBAAgB,CAAC,aAAa,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAC;YACvE,YAAY,CAAC,gBAAgB,CAAC,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I,CAAC;SACb;QAED,OAAO,QAAQ,CAAC,YAAY,CAC1B,CACE,6BACE,SAAS,EAAE,SAAS,iBAAc,YAAY,EAC9C,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE,GAAG,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,EAC5C,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,gBACE,IAAI,EAChB,QAAQ,EAAE,CAAC,CAAC,gBACA,IAAI,CAAC,KAAK,CAAC,SAAS,EAChC,cAAc,EAAE,IAAI,CAAC,mBAAmB;YAExC,oBAAC,SAAS,IAAC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,mBAAmB,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,uBAAuB,EAAE,IAAI,IAClH,IAAI,CAAC,KAAK,CAAC,QAAQ,CACV,CACR,CACP,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;;AAhea,kBAAY,GAAwB;IAChD,QAAQ,EAAE,gBAAgB,CAAC,MAAM;IACjC,UAAU,EAAE,IAAI;IAChB,SAAS,EAAE,KAAK;IAChB,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,CAAC;IACT,GAAG,EAAE,CAAC,CAAC;IACP,IAAI,EAAE,CAAC,CAAC;CACT,CAAC;AA2dJ,SAAS,aAAa,CAAC,KAAa;IAClC,MAAM,MAAM,GAAG,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACnC,OAAO,MAAM,IAAI,CAAC,CAAC;AACrB,CAAC;AAED,SAAS,WAAW,CAAC,KAAa;IAChC,OAAO,KAAK,CAAC,CAAC,CAAC,0BAA0B,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAClE,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 Popup\n */\n\nimport \"./Popup.scss\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { RelativePosition, SpecialKey } from \"@itwin/appui-abstract\";\nimport { FocusTrap } from \"../focustrap/FocusTrap\";\nimport { CommonProps } from \"../utils/Props\";\n\n// cSpell:ignore focustrap focusable alertdialog\n\n/** @internal */\ninterface PopupPoint {\n x: number;\n y: number;\n}\n\n/** Properties for the [[Popup]] component\n * @public\n */\nexport interface PopupProps extends CommonProps {\n /** Show or hide the box shadow (defaults to true) */\n showShadow: boolean;\n /** Show or hide the arrow (defaults to false) */\n showArrow: boolean;\n /** Indicates whether the popup is shown or not (defaults to false) */\n isOpen: boolean;\n /** Direction (relative to the target) to which the popup is expanded (defaults to Bottom) */\n position: RelativePosition;\n /** Top position (absolute positioning - defaults to 0) */\n top: number;\n /** Left position (absolute positioning - defaults to 0) */\n left: number;\n /** Function called when the popup is opened */\n onOpen?: () => void;\n /** Function called when user clicks outside the popup */\n onOutsideClick?: (e: MouseEvent) => void;\n /** Function called when the popup is closed */\n onClose?: () => void;\n /** Function called when the popup is closed on Enter */\n onEnter?: () => void;\n /** Function called when the wheel is used */\n onWheel?: (e: WheelEvent) => void;\n /** Function called when the right mouse button is pressed */\n onContextMenu?: (e: MouseEvent) => void;\n /** Offset from the parent (defaults to 4) */\n offset: number;\n /** Target element to position popup */\n target?: HTMLElement | null;\n /** Role - if not specified \"dialog\" is used */\n role?: \"dialog\" | \"alert\" | \"alertdialog\";\n /** accessibility label */\n ariaLabel?: string;\n /** set focus to popup - default to not set focus */\n moveFocus?: boolean;\n /** Element to receive focus, specified by React.RefObject or CSS selector string. If undefined and moveFocus is true then focus is moved to first focusable element. */\n focusTarget?: React.RefObject<HTMLElement> | string;\n /** Indicates whether the popup is pinned. */\n isPinned?: boolean;\n /** Indicates whether to use animation for open/close (defaults to true) */\n animate?: boolean;\n /** Indicates whether to close the popup when Enter is pressed (defaults to true) */\n closeOnEnter?: boolean;\n /** Indicates whether to close the popup when the wheel is used (defaults to true) */\n closeOnWheel?: boolean;\n /** Indicates whether to close the popup when the right mouse button is pressed (defaults to true) */\n closeOnContextMenu?: boolean;\n /** If false outside click processing and closing are skipped if click occurs in another Popup component, default to false. */\n closeOnNestedPopupOutsideClick?: boolean;\n /** If true the children are mounted once and unmounted when this component is unmounted. If false the\n * children are unmounted each time the popup is closed. */\n keepContentsMounted?: boolean;\n\n /**\n * If true the popup will remain open and will be repositioned when window resize events occur, default to false.\n * @beta\n * */\n repositionOnResize?: boolean;\n\n /** Content */\n children?: React.ReactNode;\n}\n\n/** @internal */\ninterface PopupState {\n isOpen: boolean;\n top: number;\n left: number;\n position: RelativePosition;\n parentDocument: Document;\n animationEnded: boolean;\n}\n\n/** Popup React component displays a popup relative to an optional target element.\n * @public\n */\nexport class Popup extends React.Component<PopupProps, PopupState> {\n private _popup: HTMLElement | null = null;\n\n constructor(props: PopupProps) {\n super(props);\n const parentDocument = this.props.target?.ownerDocument ?? document;\n\n this.state = {\n animationEnded: false,\n isOpen: this.props.isOpen,\n top: 0,\n left: 0,\n position: this.props.position,\n parentDocument,\n };\n }\n\n public static defaultProps: Partial<PopupProps> = {\n position: RelativePosition.Bottom,\n showShadow: true,\n showArrow: false,\n isOpen: false,\n offset: 4,\n top: -1,\n left: -1,\n };\n\n public override componentDidMount() {\n if (this.props.isOpen) {\n this._onShow();\n }\n }\n\n private getParentWindow() {\n // istanbul ignore next\n return this.state.parentDocument.defaultView ?? window;\n }\n\n public override componentDidUpdate(previousProps: PopupProps, prevState: PopupState) {\n if (this.state.position !== prevState.position) {\n this.setState( { animationEnded: false });\n }\n\n if (this.props.target !== previousProps.target) {\n // istanbul ignore next\n {\n const parentDocument = this.props.target?.ownerDocument ?? document;\n if (parentDocument !== this.state.parentDocument) {\n this._unBindWindowEvents();\n this.setState({ parentDocument });\n }\n }\n }\n\n if (this.props.isOpen === previousProps.isOpen) {\n if (this.props.isOpen) {\n const position = this._toggleRelativePosition();\n const point = this._fitPopup(this._getPosition(position));\n if ((Math.abs(this.state.left - point.x) < 3) &&\n (Math.abs(this.state.top - point.y) < 3) &&\n this.state.position === position)\n return;\n\n this.setState({\n left: point.x,\n top: point.y,\n position,\n });\n }\n return;\n }\n\n if (this.props.isOpen) {\n this._onShow();\n } else {\n this._onClose();\n }\n }\n\n public override componentWillUnmount() {\n this._unBindWindowEvents();\n }\n\n private _bindWindowEvents = () => {\n const activeWindow = this.getParentWindow();\n activeWindow.addEventListener(\"pointerdown\", this._handleOutsideClick);\n activeWindow.addEventListener(\"resize\", this._resize);\n activeWindow.addEventListener(\"contextmenu\", this._handleContextMenu);\n activeWindow.addEventListener(\"scroll\", this._hide);\n activeWindow.addEventListener(\"wheel\", this._handleWheel);\n activeWindow.addEventListener(\"keydown\", this._handleKeyboard);\n };\n\n private _unBindWindowEvents = () => {\n const activeWindow = this.getParentWindow();\n activeWindow.removeEventListener(\"pointerdown\", this._handleOutsideClick);\n activeWindow.removeEventListener(\"resize\", this._resize);\n activeWindow.removeEventListener(\"contextmenu\", this._handleContextMenu);\n activeWindow.removeEventListener(\"scroll\", this._hide);\n activeWindow.removeEventListener(\"wheel\", this._handleWheel);\n activeWindow.removeEventListener(\"keydown\", this._handleKeyboard);\n };\n\n private _handleWheel = (event: WheelEvent) => {\n if (this._popup && this._popup.contains(event.target as Node))\n return;\n\n if (this.props.onWheel)\n return this.props.onWheel(event);\n\n const closeOnWheel = this.props.closeOnWheel !== undefined ? this.props.closeOnWheel : true;\n if (closeOnWheel)\n this._hide();\n };\n\n private isInCorePopup(element: HTMLElement): boolean {\n if (element.nodeName === \"DIV\") {\n if (element.classList && element.classList.contains(\"core-popup\"))\n return true;\n if (element.parentElement && this.isInCorePopup(element.parentElement))\n return true;\n } else {\n // istanbul ignore else\n if (element.parentElement && this.isInCorePopup(element.parentElement))\n return true;\n }\n return false;\n }\n\n private _handleOutsideClick = (event: MouseEvent): void => {\n if (this._popup && this._popup.contains(event.target as Node))\n return;\n\n if (this.props.isPinned)\n return;\n\n if (!this.props.closeOnNestedPopupOutsideClick && this.isInCorePopup(event.target as HTMLElement))\n return;\n\n if (this.props.onOutsideClick)\n return this.props.onOutsideClick(event);\n\n if (this.props.target && this.props.target.contains(event.target as Node))\n return;\n\n this._onClose();\n };\n\n private _handleContextMenu = (event: MouseEvent) => {\n if (this._popup && this._popup.contains(event.target as Node))\n return;\n\n if (this.props.onContextMenu)\n return this.props.onContextMenu(event);\n\n const closeOnContextMenu = this.props.closeOnContextMenu !== undefined ? this.props.closeOnContextMenu : true;\n if (closeOnContextMenu)\n this._hide();\n };\n\n private _handleKeyboard = (event: KeyboardEvent): void => {\n if (this.props.isPinned)\n return;\n\n if (event.key === SpecialKey.Escape || event.key === SpecialKey.Enter) {\n const closeOnEnter = this.props.closeOnEnter !== undefined ? this.props.closeOnEnter : true;\n if (event.key === SpecialKey.Enter) {\n if (closeOnEnter)\n this._onClose(true);\n else\n this.props.onEnter && this.props.onEnter();\n } else {\n this._onClose(false);\n }\n }\n };\n\n private _resize = () => {\n if (this.props.repositionOnResize) {\n const position = this._toggleRelativePosition();\n const point = this._fitPopup(this._getPosition(position));\n this.setState({ left: point.x, top: point.y, position });\n } else {\n this._hide(); // legacy behavior\n }\n };\n\n private _hide = () => {\n if (this.props.isPinned)\n return;\n\n this._onClose();\n };\n\n private _onShow() {\n this._bindWindowEvents();\n const position = this._toggleRelativePosition();\n const point = this._fitPopup(this._getPosition(position));\n\n this.setState({ left: point.x, top: point.y, isOpen: true, position }, () => {\n if (this.props.onOpen)\n this.props.onOpen();\n });\n }\n\n private _onClose(enterKey?: boolean) {\n if (!this.state.isOpen)\n return;\n\n this._unBindWindowEvents();\n\n this.setState({ isOpen: false }, () => {\n if (enterKey && this.props.onEnter)\n this.props.onEnter();\n if (this.props.onClose)\n this.props.onClose();\n });\n }\n\n private _isPositionAbsolute(): boolean {\n return (this.props.top !== -1 && this.props.left !== -1);\n }\n\n private _getClassNameByPosition(position: RelativePosition): string {\n if (!this._isPositionAbsolute()) {\n switch (position) {\n case RelativePosition.TopLeft:\n return \"core-popup-top-left\";\n case RelativePosition.TopRight:\n return \"core-popup-top-right\";\n case RelativePosition.BottomLeft:\n return \"core-popup-bottom-left\";\n case RelativePosition.BottomRight:\n return \"core-popup-bottom-right\";\n case RelativePosition.Top:\n return \"core-popup-top\";\n case RelativePosition.Left:\n return \"core-popup-left\";\n case RelativePosition.Right:\n return \"core-popup-right\";\n case RelativePosition.Bottom:\n return \"core-popup-bottom\";\n case RelativePosition.LeftTop:\n return \"core-popup-left-top\";\n case RelativePosition.RightTop:\n return \"core-popup-right-top\";\n }\n }\n\n return \"\";\n }\n\n private _getPopupDimensions(): { popupWidth: number, popupHeight: number } {\n let popupWidth = 0;\n let popupHeight = 0;\n // istanbul ignore else\n if (this._popup) {\n const activeWindow = this.getParentWindow();\n const style = activeWindow.getComputedStyle(this._popup);\n const borderLeftWidth = parsePxString(style.borderLeftWidth);\n const borderRightWidth = parsePxString(style.borderRightWidth);\n const borderTopWidth = parsePxString(style.borderTopWidth);\n const borderBottomWidth = parsePxString(style.borderBottomWidth);\n popupWidth = this._popup.clientWidth + borderLeftWidth + borderRightWidth;\n popupHeight = this._popup.clientHeight + borderTopWidth + borderBottomWidth;\n }\n\n return { popupWidth, popupHeight };\n }\n\n private _getPosition = (position: RelativePosition) => {\n const activeWindow = this.getParentWindow();\n const { target, offset, top, left } = this.props;\n const offsetArrow = (this.props.showArrow) ? 6 : 0;\n\n // absolute position\n if (this._isPositionAbsolute())\n return { x: left, y: top };\n\n // sanity check\n const point = { x: 0, y: 0 };\n if (!this._popup || !target)\n return point;\n\n // relative position\n const scrollY = activeWindow.scrollY;\n const scrollX = activeWindow.scrollX;\n\n const targetRect = target.getBoundingClientRect();\n\n const { popupWidth, popupHeight } = this._getPopupDimensions();\n\n switch (position) {\n case RelativePosition.Top:\n point.y = scrollY + targetRect.top - popupHeight - offset - offsetArrow;\n point.x = scrollX + targetRect.left + (targetRect.width / 2) - (popupWidth / 2);\n break;\n\n case RelativePosition.TopLeft:\n point.y = scrollY + targetRect.top - popupHeight - offset - offsetArrow;\n point.x = scrollX + targetRect.left;\n break;\n\n case RelativePosition.TopRight:\n point.y = scrollY + targetRect.top - popupHeight - offset - offsetArrow;\n point.x = scrollX + targetRect.right - popupWidth;\n break;\n\n case RelativePosition.Bottom:\n point.y = scrollY + targetRect.bottom + offset + offsetArrow;\n point.x = scrollX + targetRect.left + (targetRect.width / 2) - (popupWidth / 2);\n break;\n\n case RelativePosition.BottomLeft:\n point.y = scrollY + targetRect.bottom + offset + offsetArrow;\n point.x = scrollX + targetRect.left;\n break;\n\n case RelativePosition.BottomRight:\n point.y = scrollY + targetRect.bottom + offset + offsetArrow;\n point.x = scrollX + targetRect.right - popupWidth;\n break;\n\n case RelativePosition.Left:\n point.y = scrollY + targetRect.top + (targetRect.height / 2) - (popupHeight / 2);\n point.x = scrollX + targetRect.left - popupWidth - offset - offsetArrow;\n break;\n\n case RelativePosition.LeftTop:\n point.y = scrollY + targetRect.top;\n point.x = scrollX + targetRect.left - popupWidth - offset - offsetArrow;\n break;\n\n case RelativePosition.Right:\n point.y = scrollY + targetRect.top + (targetRect.height / 2) - (popupHeight / 2);\n point.x = scrollX + targetRect.right + offset + offsetArrow;\n break;\n\n case RelativePosition.RightTop:\n point.y = scrollY + targetRect.top;\n point.x = scrollX + targetRect.right + offset + offsetArrow;\n break;\n }\n\n return point;\n };\n\n private _toggleRelativePosition(): RelativePosition {\n const { target, position, offset } = this.props;\n\n if (!this._popup || !target)\n return position;\n\n // istanbul ignore if\n if (this._isPositionAbsolute())\n return position;\n\n let newPosition = position;\n\n interface Rect {\n left: number;\n top: number;\n right: number;\n bottom: number;\n }\n\n const activeWindow = this.getParentWindow();\n\n // Note: Cannot use DOMRect yet since it's experimental and not available in all browsers (Nov. 2018)\n const viewportRect: Rect = { left: activeWindow.scrollX, top: activeWindow.scrollY, right: activeWindow.scrollX + activeWindow.innerWidth, bottom: activeWindow.scrollY + activeWindow.innerHeight };\n const targetRect = target.getBoundingClientRect();\n const { popupWidth, popupHeight } = this._getPopupDimensions();\n const containerStyle = activeWindow.getComputedStyle(target);\n const offsetArrow = this.props.showArrow ? /* istanbul ignore next */ 10 : 2;\n\n const bottomMargin = parseMargin(containerStyle.marginBottom);\n if ((targetRect.bottom + popupHeight + bottomMargin + offsetArrow + offset) > viewportRect.bottom) {\n if (newPosition === RelativePosition.Bottom)\n newPosition = RelativePosition.Top;\n else if (newPosition === RelativePosition.BottomLeft)\n newPosition = RelativePosition.TopLeft;\n else if (newPosition === RelativePosition.BottomRight)\n newPosition = RelativePosition.TopRight;\n }\n\n const topMargin = parseMargin(containerStyle.marginTop);\n if ((targetRect.top - popupHeight - topMargin - offsetArrow - offset) < viewportRect.top) {\n if (newPosition === RelativePosition.Top)\n newPosition = RelativePosition.Bottom;\n else if (newPosition === RelativePosition.TopLeft)\n newPosition = RelativePosition.BottomLeft;\n else if (newPosition === RelativePosition.TopRight)\n newPosition = RelativePosition.BottomRight;\n }\n\n const leftMargin = parseMargin(containerStyle.marginLeft);\n if ((targetRect.left - popupWidth - leftMargin - offsetArrow - offset) < viewportRect.left) {\n if (newPosition === RelativePosition.Left)\n newPosition = RelativePosition.Right;\n else if (newPosition === RelativePosition.LeftTop)\n newPosition = RelativePosition.RightTop;\n }\n\n const rightMargin = parseMargin(containerStyle.marginRight);\n if ((targetRect.right + popupWidth + rightMargin + offsetArrow + offset) > viewportRect.right) {\n if (newPosition === RelativePosition.Right)\n newPosition = RelativePosition.Left;\n else if (newPosition === RelativePosition.RightTop)\n newPosition = RelativePosition.LeftTop;\n }\n\n return newPosition;\n }\n\n // fit the popup within the extents of the view port\n private _fitPopup = (point: PopupPoint) => {\n const fittedPoint = point;\n\n // istanbul ignore if\n if (!this._popup) {\n return fittedPoint;\n }\n\n // const popupRect = this._popup.getBoundingClientRect();\n const { popupWidth, popupHeight } = this._getPopupDimensions();\n const { innerWidth, innerHeight } = window;\n\n // istanbul ignore if\n if (fittedPoint.y + popupHeight > innerHeight) {\n fittedPoint.y = innerHeight - popupHeight;\n }\n\n // istanbul ignore if\n if (fittedPoint.x + popupWidth > innerWidth) {\n fittedPoint.x = innerWidth - popupWidth;\n }\n\n // istanbul ignore if\n if (fittedPoint.y < 0) {\n fittedPoint.y = 0;\n }\n\n if (fittedPoint.x < 0) {\n fittedPoint.x = 0;\n }\n\n return fittedPoint;\n };\n\n private _handleAnimationEnd = (event: React.AnimationEvent<HTMLDivElement>) => {\n if (event.target === this._popup) {\n this.setState({ animationEnded: true });\n }\n };\n\n public override render() {\n const animate = this.props.animate !== undefined ? this.props.animate : true;\n const className = classnames(\n \"core-popup\",\n this._getClassNameByPosition(this.state.position),\n this.props.showShadow && \"core-popup-shadow\",\n this.props.showArrow && \"arrow\",\n !animate && \"core-popup-animation-none\",\n this.props.className,\n this.state.animationEnded && \"core-animation-ended\",\n (!this.props.isOpen && this.props.keepContentsMounted) && \"core-popup-hidden\"\n );\n\n const style: React.CSSProperties = {\n top: this.state.top,\n left: this.state.left,\n ...this.props.style,\n };\n\n const role = this.props.role ? this.props.role : \"dialog\"; // accessibility property\n\n if (!this.props.isOpen && !this.props.keepContentsMounted) {\n return null;\n }\n\n return ReactDOM.createPortal(\n (\n <div\n className={className} data-testid=\"core-popup\"\n ref={(element) => { this._popup = element; }}\n style={style}\n role={role}\n aria-modal={true}\n tabIndex={-1}\n aria-label={this.props.ariaLabel}\n onAnimationEnd={this._handleAnimationEnd}\n >\n <FocusTrap active={!!this.props.moveFocus} initialFocusElement={this.props.focusTarget} returnFocusOnDeactivate={true}>\n {this.props.children}\n </FocusTrap>\n </div>\n ), this.state.parentDocument.body);\n }\n}\n\nfunction parsePxString(pxStr: string): number {\n const parsed = parseInt(pxStr, 10);\n return parsed || 0;\n}\n\nfunction parseMargin(value: string) {\n return value ? /* istanbul ignore next */ parseFloat(value) : 0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E,uBAAuB,EAAE,IAAI,IAClH,IAAI,CAAC,KAAK,CAAC,QAAQ,CACV,CACR,CACP,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;;AAhea,kBAAY,GAAwB;IAChD,QAAQ,EAAE,gBAAgB,CAAC,MAAM;IACjC,UAAU,EAAE,IAAI;IAChB,SAAS,EAAE,KAAK;IAChB,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,CAAC;IACT,GAAG,EAAE,CAAC,CAAC;IACP,IAAI,EAAE,CAAC,CAAC;CACT,CAAC;AA2dJ,SAAS,aAAa,CAAC,KAAa;IAClC,MAAM,MAAM,GAAG,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACnC,OAAO,MAAM,IAAI,CAAC,CAAC;AACrB,CAAC;AAED,SAAS,WAAW,CAAC,KAAa;IAChC,OAAO,KAAK,CAAC,CAAC,CAAC,0BAA0B,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAClE,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Popup\r\n */\r\n\r\nimport \"./Popup.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport * as ReactDOM from \"react-dom\";\r\nimport { RelativePosition, SpecialKey } from \"@itwin/appui-abstract\";\r\nimport { FocusTrap } from \"../focustrap/FocusTrap\";\r\nimport { CommonProps } from \"../utils/Props\";\r\n\r\n// cSpell:ignore focustrap focusable alertdialog\r\n\r\n/** @internal */\r\ninterface PopupPoint {\r\n x: number;\r\n y: number;\r\n}\r\n\r\n/** Properties for the [[Popup]] component\r\n * @public\r\n */\r\nexport interface PopupProps extends CommonProps {\r\n /** Show or hide the box shadow (defaults to true) */\r\n showShadow: boolean;\r\n /** Show or hide the arrow (defaults to false) */\r\n showArrow: boolean;\r\n /** Indicates whether the popup is shown or not (defaults to false) */\r\n isOpen: boolean;\r\n /** Direction (relative to the target) to which the popup is expanded (defaults to Bottom) */\r\n position: RelativePosition;\r\n /** Top position (absolute positioning - defaults to 0) */\r\n top: number;\r\n /** Left position (absolute positioning - defaults to 0) */\r\n left: number;\r\n /** Function called when the popup is opened */\r\n onOpen?: () => void;\r\n /** Function called when user clicks outside the popup */\r\n onOutsideClick?: (e: MouseEvent) => void;\r\n /** Function called when the popup is closed */\r\n onClose?: () => void;\r\n /** Function called when the popup is closed on Enter */\r\n onEnter?: () => void;\r\n /** Function called when the wheel is used */\r\n onWheel?: (e: WheelEvent) => void;\r\n /** Function called when the right mouse button is pressed */\r\n onContextMenu?: (e: MouseEvent) => void;\r\n /** Offset from the parent (defaults to 4) */\r\n offset: number;\r\n /** Target element to position popup */\r\n target?: HTMLElement | null;\r\n /** Role - if not specified \"dialog\" is used */\r\n role?: \"dialog\" | \"alert\" | \"alertdialog\";\r\n /** accessibility label */\r\n ariaLabel?: string;\r\n /** set focus to popup - default to not set focus */\r\n moveFocus?: boolean;\r\n /** Element to receive focus, specified by React.RefObject or CSS selector string. If undefined and moveFocus is true then focus is moved to first focusable element. */\r\n focusTarget?: React.RefObject<HTMLElement> | string;\r\n /** Indicates whether the popup is pinned. */\r\n isPinned?: boolean;\r\n /** Indicates whether to use animation for open/close (defaults to true) */\r\n animate?: boolean;\r\n /** Indicates whether to close the popup when Enter is pressed (defaults to true) */\r\n closeOnEnter?: boolean;\r\n /** Indicates whether to close the popup when the wheel is used (defaults to true) */\r\n closeOnWheel?: boolean;\r\n /** Indicates whether to close the popup when the right mouse button is pressed (defaults to true) */\r\n closeOnContextMenu?: boolean;\r\n /** If false outside click processing and closing are skipped if click occurs in another Popup component, default to false. */\r\n closeOnNestedPopupOutsideClick?: boolean;\r\n /** If true the children are mounted once and unmounted when this component is unmounted. If false the\r\n * children are unmounted each time the popup is closed. */\r\n keepContentsMounted?: boolean;\r\n\r\n /**\r\n * If true the popup will remain open and will be repositioned when window resize events occur, default to false.\r\n * @beta\r\n * */\r\n repositionOnResize?: boolean;\r\n}\r\n\r\n/** @internal */\r\ninterface PopupState {\r\n isOpen: boolean;\r\n top: number;\r\n left: number;\r\n position: RelativePosition;\r\n parentDocument: Document;\r\n animationEnded: boolean;\r\n}\r\n\r\n/** Popup React component displays a popup relative to an optional target element.\r\n * @public\r\n */\r\nexport class Popup extends React.Component<PopupProps, PopupState> {\r\n private _popup: HTMLElement | null = null;\r\n\r\n constructor(props: PopupProps) {\r\n super(props);\r\n const parentDocument = this.props.target?.ownerDocument ?? document;\r\n\r\n this.state = {\r\n animationEnded: false,\r\n isOpen: this.props.isOpen,\r\n top: 0,\r\n left: 0,\r\n position: this.props.position,\r\n parentDocument,\r\n };\r\n }\r\n\r\n public static defaultProps: Partial<PopupProps> = {\r\n position: RelativePosition.Bottom,\r\n showShadow: true,\r\n showArrow: false,\r\n isOpen: false,\r\n offset: 4,\r\n top: -1,\r\n left: -1,\r\n };\r\n\r\n public override componentDidMount() {\r\n if (this.props.isOpen) {\r\n this._onShow();\r\n }\r\n }\r\n\r\n private getParentWindow() {\r\n // istanbul ignore next\r\n return this.state.parentDocument.defaultView ?? window;\r\n }\r\n\r\n public override componentDidUpdate(previousProps: PopupProps, prevState: PopupState) {\r\n if (this.state.position !== prevState.position) {\r\n this.setState( { animationEnded: false });\r\n }\r\n\r\n if (this.props.target !== previousProps.target) {\r\n // istanbul ignore next\r\n {\r\n const parentDocument = this.props.target?.ownerDocument ?? document;\r\n if (parentDocument !== this.state.parentDocument) {\r\n this._unBindWindowEvents();\r\n this.setState({ parentDocument });\r\n }\r\n }\r\n }\r\n\r\n if (this.props.isOpen === previousProps.isOpen) {\r\n if (this.props.isOpen) {\r\n const position = this._toggleRelativePosition();\r\n const point = this._fitPopup(this._getPosition(position));\r\n if ((Math.abs(this.state.left - point.x) < 3) &&\r\n (Math.abs(this.state.top - point.y) < 3) &&\r\n this.state.position === position)\r\n return;\r\n\r\n this.setState({\r\n left: point.x,\r\n top: point.y,\r\n position,\r\n });\r\n }\r\n return;\r\n }\r\n\r\n if (this.props.isOpen) {\r\n this._onShow();\r\n } else {\r\n this._onClose();\r\n }\r\n }\r\n\r\n public override componentWillUnmount() {\r\n this._unBindWindowEvents();\r\n }\r\n\r\n private _bindWindowEvents = () => {\r\n const activeWindow = this.getParentWindow();\r\n activeWindow.addEventListener(\"pointerdown\", this._handleOutsideClick);\r\n activeWindow.addEventListener(\"resize\", this._resize);\r\n activeWindow.addEventListener(\"contextmenu\", this._handleContextMenu);\r\n activeWindow.addEventListener(\"scroll\", this._hide);\r\n activeWindow.addEventListener(\"wheel\", this._handleWheel);\r\n activeWindow.addEventListener(\"keydown\", this._handleKeyboard);\r\n };\r\n\r\n private _unBindWindowEvents = () => {\r\n const activeWindow = this.getParentWindow();\r\n activeWindow.removeEventListener(\"pointerdown\", this._handleOutsideClick);\r\n activeWindow.removeEventListener(\"resize\", this._resize);\r\n activeWindow.removeEventListener(\"contextmenu\", this._handleContextMenu);\r\n activeWindow.removeEventListener(\"scroll\", this._hide);\r\n activeWindow.removeEventListener(\"wheel\", this._handleWheel);\r\n activeWindow.removeEventListener(\"keydown\", this._handleKeyboard);\r\n };\r\n\r\n private _handleWheel = (event: WheelEvent) => {\r\n if (this._popup && this._popup.contains(event.target as Node))\r\n return;\r\n\r\n if (this.props.onWheel)\r\n return this.props.onWheel(event);\r\n\r\n const closeOnWheel = this.props.closeOnWheel !== undefined ? this.props.closeOnWheel : true;\r\n if (closeOnWheel)\r\n this._hide();\r\n };\r\n\r\n private isInCorePopup(element: HTMLElement): boolean {\r\n if (element.nodeName === \"DIV\") {\r\n if (element.classList && element.classList.contains(\"core-popup\"))\r\n return true;\r\n if (element.parentElement && this.isInCorePopup(element.parentElement))\r\n return true;\r\n } else {\r\n // istanbul ignore else\r\n if (element.parentElement && this.isInCorePopup(element.parentElement))\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n private _handleOutsideClick = (event: MouseEvent): void => {\r\n if (this._popup && this._popup.contains(event.target as Node))\r\n return;\r\n\r\n if (this.props.isPinned)\r\n return;\r\n\r\n if (!this.props.closeOnNestedPopupOutsideClick && this.isInCorePopup(event.target as HTMLElement))\r\n return;\r\n\r\n if (this.props.onOutsideClick)\r\n return this.props.onOutsideClick(event);\r\n\r\n if (this.props.target && this.props.target.contains(event.target as Node))\r\n return;\r\n\r\n this._onClose();\r\n };\r\n\r\n private _handleContextMenu = (event: MouseEvent) => {\r\n if (this._popup && this._popup.contains(event.target as Node))\r\n return;\r\n\r\n if (this.props.onContextMenu)\r\n return this.props.onContextMenu(event);\r\n\r\n const closeOnContextMenu = this.props.closeOnContextMenu !== undefined ? this.props.closeOnContextMenu : true;\r\n if (closeOnContextMenu)\r\n this._hide();\r\n };\r\n\r\n private _handleKeyboard = (event: KeyboardEvent): void => {\r\n if (this.props.isPinned)\r\n return;\r\n\r\n if (event.key === SpecialKey.Escape || event.key === SpecialKey.Enter) {\r\n const closeOnEnter = this.props.closeOnEnter !== undefined ? this.props.closeOnEnter : true;\r\n if (event.key === SpecialKey.Enter) {\r\n if (closeOnEnter)\r\n this._onClose(true);\r\n else\r\n this.props.onEnter && this.props.onEnter();\r\n } else {\r\n this._onClose(false);\r\n }\r\n }\r\n };\r\n\r\n private _resize = () => {\r\n if (this.props.repositionOnResize) {\r\n const position = this._toggleRelativePosition();\r\n const point = this._fitPopup(this._getPosition(position));\r\n this.setState({ left: point.x, top: point.y, position });\r\n } else {\r\n this._hide(); // legacy behavior\r\n }\r\n };\r\n\r\n private _hide = () => {\r\n if (this.props.isPinned)\r\n return;\r\n\r\n this._onClose();\r\n };\r\n\r\n private _onShow() {\r\n this._bindWindowEvents();\r\n const position = this._toggleRelativePosition();\r\n const point = this._fitPopup(this._getPosition(position));\r\n\r\n this.setState({ left: point.x, top: point.y, isOpen: true, position }, () => {\r\n if (this.props.onOpen)\r\n this.props.onOpen();\r\n });\r\n }\r\n\r\n private _onClose(enterKey?: boolean) {\r\n if (!this.state.isOpen)\r\n return;\r\n\r\n this._unBindWindowEvents();\r\n\r\n this.setState({ isOpen: false }, () => {\r\n if (enterKey && this.props.onEnter)\r\n this.props.onEnter();\r\n if (this.props.onClose)\r\n this.props.onClose();\r\n });\r\n }\r\n\r\n private _isPositionAbsolute(): boolean {\r\n return (this.props.top !== -1 && this.props.left !== -1);\r\n }\r\n\r\n private _getClassNameByPosition(position: RelativePosition): string {\r\n if (!this._isPositionAbsolute()) {\r\n switch (position) {\r\n case RelativePosition.TopLeft:\r\n return \"core-popup-top-left\";\r\n case RelativePosition.TopRight:\r\n return \"core-popup-top-right\";\r\n case RelativePosition.BottomLeft:\r\n return \"core-popup-bottom-left\";\r\n case RelativePosition.BottomRight:\r\n return \"core-popup-bottom-right\";\r\n case RelativePosition.Top:\r\n return \"core-popup-top\";\r\n case RelativePosition.Left:\r\n return \"core-popup-left\";\r\n case RelativePosition.Right:\r\n return \"core-popup-right\";\r\n case RelativePosition.Bottom:\r\n return \"core-popup-bottom\";\r\n case RelativePosition.LeftTop:\r\n return \"core-popup-left-top\";\r\n case RelativePosition.RightTop:\r\n return \"core-popup-right-top\";\r\n }\r\n }\r\n\r\n return \"\";\r\n }\r\n\r\n private _getPopupDimensions(): { popupWidth: number, popupHeight: number } {\r\n let popupWidth = 0;\r\n let popupHeight = 0;\r\n // istanbul ignore else\r\n if (this._popup) {\r\n const activeWindow = this.getParentWindow();\r\n const style = activeWindow.getComputedStyle(this._popup);\r\n const borderLeftWidth = parsePxString(style.borderLeftWidth);\r\n const borderRightWidth = parsePxString(style.borderRightWidth);\r\n const borderTopWidth = parsePxString(style.borderTopWidth);\r\n const borderBottomWidth = parsePxString(style.borderBottomWidth);\r\n popupWidth = this._popup.clientWidth + borderLeftWidth + borderRightWidth;\r\n popupHeight = this._popup.clientHeight + borderTopWidth + borderBottomWidth;\r\n }\r\n\r\n return { popupWidth, popupHeight };\r\n }\r\n\r\n private _getPosition = (position: RelativePosition) => {\r\n const activeWindow = this.getParentWindow();\r\n const { target, offset, top, left } = this.props;\r\n const offsetArrow = (this.props.showArrow) ? 6 : 0;\r\n\r\n // absolute position\r\n if (this._isPositionAbsolute())\r\n return { x: left, y: top };\r\n\r\n // sanity check\r\n const point = { x: 0, y: 0 };\r\n if (!this._popup || !target)\r\n return point;\r\n\r\n // relative position\r\n const scrollY = activeWindow.scrollY;\r\n const scrollX = activeWindow.scrollX;\r\n\r\n const targetRect = target.getBoundingClientRect();\r\n\r\n const { popupWidth, popupHeight } = this._getPopupDimensions();\r\n\r\n switch (position) {\r\n case RelativePosition.Top:\r\n point.y = scrollY + targetRect.top - popupHeight - offset - offsetArrow;\r\n point.x = scrollX + targetRect.left + (targetRect.width / 2) - (popupWidth / 2);\r\n break;\r\n\r\n case RelativePosition.TopLeft:\r\n point.y = scrollY + targetRect.top - popupHeight - offset - offsetArrow;\r\n point.x = scrollX + targetRect.left;\r\n break;\r\n\r\n case RelativePosition.TopRight:\r\n point.y = scrollY + targetRect.top - popupHeight - offset - offsetArrow;\r\n point.x = scrollX + targetRect.right - popupWidth;\r\n break;\r\n\r\n case RelativePosition.Bottom:\r\n point.y = scrollY + targetRect.bottom + offset + offsetArrow;\r\n point.x = scrollX + targetRect.left + (targetRect.width / 2) - (popupWidth / 2);\r\n break;\r\n\r\n case RelativePosition.BottomLeft:\r\n point.y = scrollY + targetRect.bottom + offset + offsetArrow;\r\n point.x = scrollX + targetRect.left;\r\n break;\r\n\r\n case RelativePosition.BottomRight:\r\n point.y = scrollY + targetRect.bottom + offset + offsetArrow;\r\n point.x = scrollX + targetRect.right - popupWidth;\r\n break;\r\n\r\n case RelativePosition.Left:\r\n point.y = scrollY + targetRect.top + (targetRect.height / 2) - (popupHeight / 2);\r\n point.x = scrollX + targetRect.left - popupWidth - offset - offsetArrow;\r\n break;\r\n\r\n case RelativePosition.LeftTop:\r\n point.y = scrollY + targetRect.top;\r\n point.x = scrollX + targetRect.left - popupWidth - offset - offsetArrow;\r\n break;\r\n\r\n case RelativePosition.Right:\r\n point.y = scrollY + targetRect.top + (targetRect.height / 2) - (popupHeight / 2);\r\n point.x = scrollX + targetRect.right + offset + offsetArrow;\r\n break;\r\n\r\n case RelativePosition.RightTop:\r\n point.y = scrollY + targetRect.top;\r\n point.x = scrollX + targetRect.right + offset + offsetArrow;\r\n break;\r\n }\r\n\r\n return point;\r\n };\r\n\r\n private _toggleRelativePosition(): RelativePosition {\r\n const { target, position, offset } = this.props;\r\n\r\n if (!this._popup || !target)\r\n return position;\r\n\r\n // istanbul ignore if\r\n if (this._isPositionAbsolute())\r\n return position;\r\n\r\n let newPosition = position;\r\n\r\n interface Rect {\r\n left: number;\r\n top: number;\r\n right: number;\r\n bottom: number;\r\n }\r\n\r\n const activeWindow = this.getParentWindow();\r\n\r\n // Note: Cannot use DOMRect yet since it's experimental and not available in all browsers (Nov. 2018)\r\n const viewportRect: Rect = { left: activeWindow.scrollX, top: activeWindow.scrollY, right: activeWindow.scrollX + activeWindow.innerWidth, bottom: activeWindow.scrollY + activeWindow.innerHeight };\r\n const targetRect = target.getBoundingClientRect();\r\n const { popupWidth, popupHeight } = this._getPopupDimensions();\r\n const containerStyle = activeWindow.getComputedStyle(target);\r\n const offsetArrow = this.props.showArrow ? /* istanbul ignore next */ 10 : 2;\r\n\r\n const bottomMargin = parseMargin(containerStyle.marginBottom);\r\n if ((targetRect.bottom + popupHeight + bottomMargin + offsetArrow + offset) > viewportRect.bottom) {\r\n if (newPosition === RelativePosition.Bottom)\r\n newPosition = RelativePosition.Top;\r\n else if (newPosition === RelativePosition.BottomLeft)\r\n newPosition = RelativePosition.TopLeft;\r\n else if (newPosition === RelativePosition.BottomRight)\r\n newPosition = RelativePosition.TopRight;\r\n }\r\n\r\n const topMargin = parseMargin(containerStyle.marginTop);\r\n if ((targetRect.top - popupHeight - topMargin - offsetArrow - offset) < viewportRect.top) {\r\n if (newPosition === RelativePosition.Top)\r\n newPosition = RelativePosition.Bottom;\r\n else if (newPosition === RelativePosition.TopLeft)\r\n newPosition = RelativePosition.BottomLeft;\r\n else if (newPosition === RelativePosition.TopRight)\r\n newPosition = RelativePosition.BottomRight;\r\n }\r\n\r\n const leftMargin = parseMargin(containerStyle.marginLeft);\r\n if ((targetRect.left - popupWidth - leftMargin - offsetArrow - offset) < viewportRect.left) {\r\n if (newPosition === RelativePosition.Left)\r\n newPosition = RelativePosition.Right;\r\n else if (newPosition === RelativePosition.LeftTop)\r\n newPosition = RelativePosition.RightTop;\r\n }\r\n\r\n const rightMargin = parseMargin(containerStyle.marginRight);\r\n if ((targetRect.right + popupWidth + rightMargin + offsetArrow + offset) > viewportRect.right) {\r\n if (newPosition === RelativePosition.Right)\r\n newPosition = RelativePosition.Left;\r\n else if (newPosition === RelativePosition.RightTop)\r\n newPosition = RelativePosition.LeftTop;\r\n }\r\n\r\n return newPosition;\r\n }\r\n\r\n // fit the popup within the extents of the view port\r\n private _fitPopup = (point: PopupPoint) => {\r\n const fittedPoint = point;\r\n\r\n // istanbul ignore if\r\n if (!this._popup) {\r\n return fittedPoint;\r\n }\r\n\r\n // const popupRect = this._popup.getBoundingClientRect();\r\n const { popupWidth, popupHeight } = this._getPopupDimensions();\r\n const { innerWidth, innerHeight } = window;\r\n\r\n // istanbul ignore if\r\n if (fittedPoint.y + popupHeight > innerHeight) {\r\n fittedPoint.y = innerHeight - popupHeight;\r\n }\r\n\r\n // istanbul ignore if\r\n if (fittedPoint.x + popupWidth > innerWidth) {\r\n fittedPoint.x = innerWidth - popupWidth;\r\n }\r\n\r\n // istanbul ignore if\r\n if (fittedPoint.y < 0) {\r\n fittedPoint.y = 0;\r\n }\r\n\r\n if (fittedPoint.x < 0) {\r\n fittedPoint.x = 0;\r\n }\r\n\r\n return fittedPoint;\r\n };\r\n\r\n private _handleAnimationEnd = (event: React.AnimationEvent<HTMLDivElement>) => {\r\n if (event.target === this._popup) {\r\n this.setState({ animationEnded: true });\r\n }\r\n };\r\n\r\n public override render() {\r\n const animate = this.props.animate !== undefined ? this.props.animate : true;\r\n const className = classnames(\r\n \"core-popup\",\r\n this._getClassNameByPosition(this.state.position),\r\n this.props.showShadow && \"core-popup-shadow\",\r\n this.props.showArrow && \"arrow\",\r\n !animate && \"core-popup-animation-none\",\r\n this.props.className,\r\n this.state.animationEnded && \"core-animation-ended\",\r\n (!this.props.isOpen && this.props.keepContentsMounted) && \"core-popup-hidden\"\r\n );\r\n\r\n const style: React.CSSProperties = {\r\n top: this.state.top,\r\n left: this.state.left,\r\n ...this.props.style,\r\n };\r\n\r\n const role = this.props.role ? this.props.role : \"dialog\"; // accessibility property\r\n\r\n if (!this.props.isOpen && !this.props.keepContentsMounted) {\r\n return null;\r\n }\r\n\r\n return ReactDOM.createPortal(\r\n (\r\n <div\r\n className={className} data-testid=\"core-popup\"\r\n ref={(element) => { this._popup = element; }}\r\n style={style}\r\n role={role}\r\n aria-modal={true}\r\n tabIndex={-1}\r\n aria-label={this.props.ariaLabel}\r\n onAnimationEnd={this._handleAnimationEnd}\r\n >\r\n <FocusTrap active={!!this.props.moveFocus} initialFocusElement={this.props.focusTarget} returnFocusOnDeactivate={true}>\r\n {this.props.children}\r\n </FocusTrap>\r\n </div>\r\n ), this.state.parentDocument.body);\r\n }\r\n}\r\n\r\nfunction parsePxString(pxStr: string): number {\r\n const parsed = parseInt(pxStr, 10);\r\n return parsed || 0;\r\n}\r\n\r\nfunction parseMargin(value: string) {\r\n return value ? /* istanbul ignore next */ parseFloat(value) : 0;\r\n}\r\n"]}