@itwin/core-react 4.1.0-dev.0 → 4.1.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (685) hide show
  1. package/CHANGELOG.md +32 -7
  2. package/lib/cjs/core-react/UiCore.js.map +1 -1
  3. package/lib/cjs/core-react/_geometry.scss +70 -70
  4. package/lib/cjs/core-react/_helpers.scss +51 -51
  5. package/lib/cjs/core-react/_math.scss +13 -13
  6. package/lib/cjs/core-react/_scrollbar.scss +51 -51
  7. package/lib/cjs/core-react/_typography.scss +44 -44
  8. package/lib/cjs/core-react/_z-index.scss +65 -65
  9. package/lib/cjs/core-react/autosuggest/AutoSuggest.d.ts +1 -1
  10. package/lib/cjs/core-react/autosuggest/AutoSuggest.d.ts.map +1 -1
  11. package/lib/cjs/core-react/autosuggest/AutoSuggest.js.map +1 -1
  12. package/lib/cjs/core-react/autosuggest/AutoSuggest.scss +79 -79
  13. package/lib/cjs/core-react/badge/Badge.d.ts +1 -1
  14. package/lib/cjs/core-react/badge/Badge.d.ts.map +1 -1
  15. package/lib/cjs/core-react/badge/Badge.js.map +1 -1
  16. package/lib/cjs/core-react/badge/Badge.scss +13 -13
  17. package/lib/cjs/core-react/badge/BadgeUtilities.js.map +1 -1
  18. package/lib/cjs/core-react/badge/BetaBadge.d.ts +1 -1
  19. package/lib/cjs/core-react/badge/BetaBadge.d.ts.map +1 -1
  20. package/lib/cjs/core-react/badge/BetaBadge.js.map +1 -1
  21. package/lib/cjs/core-react/badge/NewBadge.d.ts +1 -1
  22. package/lib/cjs/core-react/badge/NewBadge.d.ts.map +1 -1
  23. package/lib/cjs/core-react/badge/NewBadge.js.map +1 -1
  24. package/lib/cjs/core-react/badge/NewBadge.scss +9 -9
  25. package/lib/cjs/core-react/base/Centered.d.ts +1 -1
  26. package/lib/cjs/core-react/base/Centered.d.ts.map +1 -1
  27. package/lib/cjs/core-react/base/Centered.js.map +1 -1
  28. package/lib/cjs/core-react/base/Div.d.ts +1 -1
  29. package/lib/cjs/core-react/base/Div.d.ts.map +1 -1
  30. package/lib/cjs/core-react/base/Div.js.map +1 -1
  31. package/lib/cjs/core-react/base/DivWithOutsideClick.d.ts +1 -1
  32. package/lib/cjs/core-react/base/DivWithOutsideClick.d.ts.map +1 -1
  33. package/lib/cjs/core-react/base/DivWithOutsideClick.js.map +1 -1
  34. package/lib/cjs/core-react/base/FillCentered.d.ts +1 -1
  35. package/lib/cjs/core-react/base/FillCentered.d.ts.map +1 -1
  36. package/lib/cjs/core-react/base/FillCentered.js.map +1 -1
  37. package/lib/cjs/core-react/base/FlexWrapContainer.d.ts +1 -1
  38. package/lib/cjs/core-react/base/FlexWrapContainer.d.ts.map +1 -1
  39. package/lib/cjs/core-react/base/FlexWrapContainer.js.map +1 -1
  40. package/lib/cjs/core-react/base/Gap.d.ts +1 -1
  41. package/lib/cjs/core-react/base/Gap.d.ts.map +1 -1
  42. package/lib/cjs/core-react/base/Gap.js +1 -1
  43. package/lib/cjs/core-react/base/Gap.js.map +1 -1
  44. package/lib/cjs/core-react/base/PointerEvents.js.map +1 -1
  45. package/lib/cjs/core-react/base/ScrollView.d.ts +1 -1
  46. package/lib/cjs/core-react/base/ScrollView.d.ts.map +1 -1
  47. package/lib/cjs/core-react/base/ScrollView.js.map +1 -1
  48. package/lib/cjs/core-react/base/base.scss +42 -42
  49. package/lib/cjs/core-react/base/classes.scss +13 -13
  50. package/lib/cjs/core-react/base/index.scss +5 -5
  51. package/lib/cjs/core-react/button/UnderlinedButton.js.map +1 -1
  52. package/lib/cjs/core-react/button/UnderlinedButton.scss +32 -32
  53. package/lib/cjs/core-react/checklistbox/CheckListBox.d.ts +1 -1
  54. package/lib/cjs/core-react/checklistbox/CheckListBox.d.ts.map +1 -1
  55. package/lib/cjs/core-react/checklistbox/CheckListBox.js.map +1 -1
  56. package/lib/cjs/core-react/checklistbox/CheckListBox.scss +21 -21
  57. package/lib/cjs/core-react/classes.scss +11 -11
  58. package/lib/cjs/core-react/colorthemes.scss +61 -61
  59. package/lib/cjs/core-react/colorvariables.scss +131 -131
  60. package/lib/cjs/core-react/contextmenu/ContextMenu.d.ts +1 -1
  61. package/lib/cjs/core-react/contextmenu/ContextMenu.d.ts.map +1 -1
  62. package/lib/cjs/core-react/contextmenu/ContextMenu.js +2 -1
  63. package/lib/cjs/core-react/contextmenu/ContextMenu.js.map +1 -1
  64. package/lib/cjs/core-react/contextmenu/ContextMenu.scss +236 -236
  65. package/lib/cjs/core-react/contextmenu/ContextMenuDirection.js.map +1 -1
  66. package/lib/cjs/core-react/contextmenu/ContextMenuDivider.d.ts +1 -1
  67. package/lib/cjs/core-react/contextmenu/ContextMenuDivider.d.ts.map +1 -1
  68. package/lib/cjs/core-react/contextmenu/ContextMenuDivider.js.map +1 -1
  69. package/lib/cjs/core-react/contextmenu/ContextMenuItem.d.ts +5 -4
  70. package/lib/cjs/core-react/contextmenu/ContextMenuItem.d.ts.map +1 -1
  71. package/lib/cjs/core-react/contextmenu/ContextMenuItem.js.map +1 -1
  72. package/lib/cjs/core-react/contextmenu/ContextSubMenu.d.ts +3 -3
  73. package/lib/cjs/core-react/contextmenu/ContextSubMenu.d.ts.map +1 -1
  74. package/lib/cjs/core-react/contextmenu/ContextSubMenu.js.map +1 -1
  75. package/lib/cjs/core-react/contextmenu/GlobalContextMenu.d.ts +1 -1
  76. package/lib/cjs/core-react/contextmenu/GlobalContextMenu.d.ts.map +1 -1
  77. package/lib/cjs/core-react/contextmenu/GlobalContextMenu.js +5 -3
  78. package/lib/cjs/core-react/contextmenu/GlobalContextMenu.js.map +1 -1
  79. package/lib/cjs/core-react/contextmenu/PopupContextMenu.d.ts +1 -1
  80. package/lib/cjs/core-react/contextmenu/PopupContextMenu.d.ts.map +1 -1
  81. package/lib/cjs/core-react/contextmenu/PopupContextMenu.js.map +1 -1
  82. package/lib/cjs/core-react/contextmenu/TildeFinder.js.map +1 -1
  83. package/lib/cjs/core-react/dialog/Dialog.d.ts +3 -3
  84. package/lib/cjs/core-react/dialog/Dialog.d.ts.map +1 -1
  85. package/lib/cjs/core-react/dialog/Dialog.js +2 -1
  86. package/lib/cjs/core-react/dialog/Dialog.js.map +1 -1
  87. package/lib/cjs/core-react/dialog/Dialog.scss +245 -245
  88. package/lib/cjs/core-react/dialog/GlobalDialog.d.ts +1 -1
  89. package/lib/cjs/core-react/dialog/GlobalDialog.d.ts.map +1 -1
  90. package/lib/cjs/core-react/dialog/GlobalDialog.js +2 -1
  91. package/lib/cjs/core-react/dialog/GlobalDialog.js.map +1 -1
  92. package/lib/cjs/core-react/elementseparator/ElementSeparator.d.ts +1 -1
  93. package/lib/cjs/core-react/elementseparator/ElementSeparator.d.ts.map +1 -1
  94. package/lib/cjs/core-react/elementseparator/ElementSeparator.js +2 -2
  95. package/lib/cjs/core-react/elementseparator/ElementSeparator.js.map +1 -1
  96. package/lib/cjs/core-react/elementseparator/ElementSeparator.scss +85 -85
  97. package/lib/cjs/core-react/enums/Alignment.js.map +1 -1
  98. package/lib/cjs/core-react/enums/CheckBoxState.js.map +1 -1
  99. package/lib/cjs/core-react/enums/Orientation.js.map +1 -1
  100. package/lib/cjs/core-react/enums/SortDirection.js.map +1 -1
  101. package/lib/cjs/core-react/enums/TimeFormat.js.map +1 -1
  102. package/lib/cjs/core-react/expandable/ExpandableList.d.ts +1 -1
  103. package/lib/cjs/core-react/expandable/ExpandableList.d.ts.map +1 -1
  104. package/lib/cjs/core-react/expandable/ExpandableList.js.map +1 -1
  105. package/lib/cjs/core-react/expandable/ExpandableList.scss +8 -8
  106. package/lib/cjs/core-react/expandable/classes.scss +7 -7
  107. package/lib/cjs/core-react/expandable/index.scss +5 -5
  108. package/lib/cjs/core-react/expandable/list.scss +35 -35
  109. package/lib/cjs/core-react/focus/ItemKeyboardNavigator.js.map +1 -1
  110. package/lib/cjs/core-react/focustrap/FocusTrap.js.map +1 -1
  111. package/lib/cjs/core-react/hocs/withIsPressed.js.map +1 -1
  112. package/lib/cjs/core-react/hocs/withOnOutsideClick.js +2 -1
  113. package/lib/cjs/core-react/hocs/withOnOutsideClick.js.map +1 -1
  114. package/lib/cjs/core-react/hocs/withTimeout.js.map +1 -1
  115. package/lib/cjs/core-react/icons/ConditionalIconItem.d.ts +1 -1
  116. package/lib/cjs/core-react/icons/ConditionalIconItem.d.ts.map +1 -1
  117. package/lib/cjs/core-react/icons/ConditionalIconItem.js.map +1 -1
  118. package/lib/cjs/core-react/icons/IconComponent.d.ts +2 -2
  119. package/lib/cjs/core-react/icons/IconComponent.d.ts.map +1 -1
  120. package/lib/cjs/core-react/icons/IconComponent.js +1 -1
  121. package/lib/cjs/core-react/icons/IconComponent.js.map +1 -1
  122. package/lib/cjs/core-react/icons/IconComponent.scss +20 -20
  123. package/lib/cjs/core-react/icons/SvgPath.d.ts +1 -1
  124. package/lib/cjs/core-react/icons/SvgPath.d.ts.map +1 -1
  125. package/lib/cjs/core-react/icons/SvgPath.js.map +1 -1
  126. package/lib/cjs/core-react/icons/SvgPath.scss +15 -15
  127. package/lib/cjs/core-react/icons/WebFontIcon.d.ts +1 -1
  128. package/lib/cjs/core-react/icons/WebFontIcon.d.ts.map +1 -1
  129. package/lib/cjs/core-react/icons/WebFontIcon.js.map +1 -1
  130. package/lib/cjs/core-react/icons/WebFontIcon.scss +17 -17
  131. package/lib/cjs/core-react/icons/classes.scss +10 -10
  132. package/lib/cjs/core-react/icons/index.scss +6 -6
  133. package/lib/cjs/core-react/icons/mixins.scss +25 -25
  134. package/lib/cjs/core-react/icons/variables.scss +12 -12
  135. package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.d.ts +1 -1
  136. package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.d.ts.map +1 -1
  137. package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.js.map +1 -1
  138. package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.scss +54 -54
  139. package/lib/cjs/core-react/index.scss +21 -21
  140. package/lib/cjs/core-react/inputs/Input.d.ts +1 -1
  141. package/lib/cjs/core-react/inputs/Input.d.ts.map +1 -1
  142. package/lib/cjs/core-react/inputs/Input.js.map +1 -1
  143. package/lib/cjs/core-react/inputs/InputLabel.d.ts +2 -2
  144. package/lib/cjs/core-react/inputs/InputLabel.d.ts.map +1 -1
  145. package/lib/cjs/core-react/inputs/InputLabel.js.map +1 -1
  146. package/lib/cjs/core-react/inputs/InputStatus.js.map +1 -1
  147. package/lib/cjs/core-react/inputs/LabeledComponentProps.d.ts +2 -2
  148. package/lib/cjs/core-react/inputs/LabeledComponentProps.d.ts.map +1 -1
  149. package/lib/cjs/core-react/inputs/LabeledComponentProps.js.map +1 -1
  150. package/lib/cjs/core-react/inputs/classes.scss +8 -8
  151. package/lib/cjs/core-react/inputs/iconinput/IconInput.d.ts +1 -1
  152. package/lib/cjs/core-react/inputs/iconinput/IconInput.d.ts.map +1 -1
  153. package/lib/cjs/core-react/inputs/iconinput/IconInput.js.map +1 -1
  154. package/lib/cjs/core-react/inputs/iconinput/IconInput.scss +35 -35
  155. package/lib/cjs/core-react/inputs/index.scss +9 -9
  156. package/lib/cjs/core-react/inputs/input-label.scss +90 -90
  157. package/lib/cjs/core-react/inputs/input.scss +58 -58
  158. package/lib/cjs/core-react/inputs/numberinput/NumberInput.d.ts +1 -1
  159. package/lib/cjs/core-react/inputs/numberinput/NumberInput.d.ts.map +1 -1
  160. package/lib/cjs/core-react/inputs/numberinput/NumberInput.js.map +1 -1
  161. package/lib/cjs/core-react/inputs/numberinput/NumberInput.scss +88 -88
  162. package/lib/cjs/core-react/inputs/variables.scss +38 -38
  163. package/lib/cjs/core-react/layout-variables.scss +17 -17
  164. package/lib/cjs/core-react/listbox/Listbox.js +3 -2
  165. package/lib/cjs/core-react/listbox/Listbox.js.map +1 -1
  166. package/lib/cjs/core-react/listbox/Listbox.scss +54 -54
  167. package/lib/cjs/core-react/loading/LoadingBar.d.ts +1 -1
  168. package/lib/cjs/core-react/loading/LoadingBar.d.ts.map +1 -1
  169. package/lib/cjs/core-react/loading/LoadingBar.js.map +1 -1
  170. package/lib/cjs/core-react/loading/LoadingBar.scss +29 -29
  171. package/lib/cjs/core-react/loading/LoadingPrompt.d.ts +1 -1
  172. package/lib/cjs/core-react/loading/LoadingPrompt.d.ts.map +1 -1
  173. package/lib/cjs/core-react/loading/LoadingPrompt.js.map +1 -1
  174. package/lib/cjs/core-react/loading/LoadingPrompt.scss +33 -33
  175. package/lib/cjs/core-react/loading/LoadingSpinner.d.ts +1 -1
  176. package/lib/cjs/core-react/loading/LoadingSpinner.d.ts.map +1 -1
  177. package/lib/cjs/core-react/loading/LoadingSpinner.js.map +1 -1
  178. package/lib/cjs/core-react/loading/LoadingSpinner.scss +26 -26
  179. package/lib/cjs/core-react/loading/LoadingStatus.d.ts +1 -1
  180. package/lib/cjs/core-react/loading/LoadingStatus.d.ts.map +1 -1
  181. package/lib/cjs/core-react/loading/LoadingStatus.js.map +1 -1
  182. package/lib/cjs/core-react/loading/LoadingStatus.scss +20 -20
  183. package/lib/cjs/core-react/loading/index.scss +5 -5
  184. package/lib/cjs/core-react/loading/mixins.scss +57 -57
  185. package/lib/cjs/core-react/messagebox/MessageBox.d.ts +4 -3
  186. package/lib/cjs/core-react/messagebox/MessageBox.d.ts.map +1 -1
  187. package/lib/cjs/core-react/messagebox/MessageBox.js.map +1 -1
  188. package/lib/cjs/core-react/messagebox/MessageBox.scss +56 -56
  189. package/lib/cjs/core-react/notification/MessageRenderer.d.ts +2 -2
  190. package/lib/cjs/core-react/notification/MessageRenderer.d.ts.map +1 -1
  191. package/lib/cjs/core-react/notification/MessageRenderer.js +1 -1
  192. package/lib/cjs/core-react/notification/MessageRenderer.js.map +1 -1
  193. package/lib/cjs/core-react/notification/MessageType.d.ts +1 -1
  194. package/lib/cjs/core-react/notification/MessageType.d.ts.map +1 -1
  195. package/lib/cjs/core-react/notification/MessageType.js.map +1 -1
  196. package/lib/cjs/core-react/popup/Popup.d.ts +1 -1
  197. package/lib/cjs/core-react/popup/Popup.d.ts.map +1 -1
  198. package/lib/cjs/core-react/popup/Popup.js +8 -4
  199. package/lib/cjs/core-react/popup/Popup.js.map +1 -1
  200. package/lib/cjs/core-react/popup/Popup.scss +240 -240
  201. package/lib/cjs/core-react/radialmenu/Annulus.js.map +1 -1
  202. package/lib/cjs/core-react/radialmenu/RadialMenu.d.ts +2 -2
  203. package/lib/cjs/core-react/radialmenu/RadialMenu.d.ts.map +1 -1
  204. package/lib/cjs/core-react/radialmenu/RadialMenu.js.map +1 -1
  205. package/lib/cjs/core-react/radialmenu/RadialMenu.scss +55 -55
  206. package/lib/cjs/core-react/searchbox/SearchBox.d.ts +1 -1
  207. package/lib/cjs/core-react/searchbox/SearchBox.d.ts.map +1 -1
  208. package/lib/cjs/core-react/searchbox/SearchBox.js.map +1 -1
  209. package/lib/cjs/core-react/searchbox/SearchBox.scss +47 -47
  210. package/lib/cjs/core-react/settings/SettingsContainer.d.ts +1 -1
  211. package/lib/cjs/core-react/settings/SettingsContainer.d.ts.map +1 -1
  212. package/lib/cjs/core-react/settings/SettingsContainer.js.map +1 -1
  213. package/lib/cjs/core-react/settings/SettingsContainer.scss +68 -68
  214. package/lib/cjs/core-react/settings/SettingsManager.d.ts +1 -1
  215. package/lib/cjs/core-react/settings/SettingsManager.d.ts.map +1 -1
  216. package/lib/cjs/core-react/settings/SettingsManager.js.map +1 -1
  217. package/lib/cjs/core-react/style/baseline.scss +11 -11
  218. package/lib/cjs/core-react/style/breakpoints.scss +41 -41
  219. package/lib/cjs/core-react/style/colors.scss +77 -77
  220. package/lib/cjs/core-react/style/index.scss +10 -10
  221. package/lib/cjs/core-react/style/mixins.scss +27 -27
  222. package/lib/cjs/core-react/style/opacity.scss +16 -16
  223. package/lib/cjs/core-react/style/themecolors.scss +123 -123
  224. package/lib/cjs/core-react/tabs/Tabs.d.ts +1 -1
  225. package/lib/cjs/core-react/tabs/Tabs.d.ts.map +1 -1
  226. package/lib/cjs/core-react/tabs/Tabs.js.map +1 -1
  227. package/lib/cjs/core-react/tabs/VerticalTabs.d.ts +1 -1
  228. package/lib/cjs/core-react/tabs/VerticalTabs.d.ts.map +1 -1
  229. package/lib/cjs/core-react/tabs/VerticalTabs.js.map +1 -1
  230. package/lib/cjs/core-react/tabs/classes.scss +7 -7
  231. package/lib/cjs/core-react/tabs/index.scss +5 -5
  232. package/lib/cjs/core-react/tabs/tabs.scss +96 -96
  233. package/lib/cjs/core-react/tabs/vertical.scss +51 -51
  234. package/lib/cjs/core-react/text/BlockText.d.ts +1 -1
  235. package/lib/cjs/core-react/text/BlockText.d.ts.map +1 -1
  236. package/lib/cjs/core-react/text/BlockText.js.map +1 -1
  237. package/lib/cjs/core-react/text/BodyText.d.ts +1 -1
  238. package/lib/cjs/core-react/text/BodyText.d.ts.map +1 -1
  239. package/lib/cjs/core-react/text/BodyText.js.map +1 -1
  240. package/lib/cjs/core-react/text/DisabledText.d.ts +1 -1
  241. package/lib/cjs/core-react/text/DisabledText.d.ts.map +1 -1
  242. package/lib/cjs/core-react/text/DisabledText.js.map +1 -1
  243. package/lib/cjs/core-react/text/FilteredText.d.ts +2 -2
  244. package/lib/cjs/core-react/text/FilteredText.d.ts.map +1 -1
  245. package/lib/cjs/core-react/text/FilteredText.js.map +1 -1
  246. package/lib/cjs/core-react/text/FilteredText.scss +10 -10
  247. package/lib/cjs/core-react/text/MutedText.d.ts +1 -1
  248. package/lib/cjs/core-react/text/MutedText.d.ts.map +1 -1
  249. package/lib/cjs/core-react/text/MutedText.js.map +1 -1
  250. package/lib/cjs/core-react/text/StyledText.d.ts +1 -1
  251. package/lib/cjs/core-react/text/StyledText.d.ts.map +1 -1
  252. package/lib/cjs/core-react/text/StyledText.js.map +1 -1
  253. package/lib/cjs/core-react/text/TextProps.d.ts +2 -2
  254. package/lib/cjs/core-react/text/TextProps.d.ts.map +1 -1
  255. package/lib/cjs/core-react/text/TextProps.js.map +1 -1
  256. package/lib/cjs/core-react/text/block.scss +15 -15
  257. package/lib/cjs/core-react/text/body.scss +13 -13
  258. package/lib/cjs/core-react/text/classes.scss +10 -10
  259. package/lib/cjs/core-react/text/disabled.scss +10 -10
  260. package/lib/cjs/core-react/text/index.scss +10 -10
  261. package/lib/cjs/core-react/text/mixins.scss +24 -24
  262. package/lib/cjs/core-react/text/muted.scss +10 -10
  263. package/lib/cjs/core-react/tree/Branch.d.ts +1 -1
  264. package/lib/cjs/core-react/tree/Branch.d.ts.map +1 -1
  265. package/lib/cjs/core-react/tree/Branch.js.map +1 -1
  266. package/lib/cjs/core-react/tree/Branch.scss +12 -12
  267. package/lib/cjs/core-react/tree/ExpansionToggle.d.ts +1 -1
  268. package/lib/cjs/core-react/tree/ExpansionToggle.d.ts.map +1 -1
  269. package/lib/cjs/core-react/tree/ExpansionToggle.js.map +1 -1
  270. package/lib/cjs/core-react/tree/ExpansionToggle.scss +32 -32
  271. package/lib/cjs/core-react/tree/Node.d.ts +3 -3
  272. package/lib/cjs/core-react/tree/Node.d.ts.map +1 -1
  273. package/lib/cjs/core-react/tree/Node.js +2 -1
  274. package/lib/cjs/core-react/tree/Node.js.map +1 -1
  275. package/lib/cjs/core-react/tree/Node.scss +68 -68
  276. package/lib/cjs/core-react/tree/Placeholder.d.ts +1 -1
  277. package/lib/cjs/core-react/tree/Placeholder.d.ts.map +1 -1
  278. package/lib/cjs/core-react/tree/Placeholder.js.map +1 -1
  279. package/lib/cjs/core-react/tree/Placeholder.scss +17 -17
  280. package/lib/cjs/core-react/tree/Tree.d.ts +1 -1
  281. package/lib/cjs/core-react/tree/Tree.d.ts.map +1 -1
  282. package/lib/cjs/core-react/tree/Tree.js.map +1 -1
  283. package/lib/cjs/core-react/tree/Tree.scss +21 -21
  284. package/lib/cjs/core-react/uistate/LocalStateStorage.d.ts +1 -1
  285. package/lib/cjs/core-react/uistate/LocalStateStorage.d.ts.map +1 -1
  286. package/lib/cjs/core-react/uistate/LocalStateStorage.js.map +1 -1
  287. package/lib/cjs/core-react/uistate/UiStateEntry.d.ts +1 -1
  288. package/lib/cjs/core-react/uistate/UiStateEntry.d.ts.map +1 -1
  289. package/lib/cjs/core-react/uistate/UiStateEntry.js.map +1 -1
  290. package/lib/cjs/core-react/uistate/UiStateStorage.js.map +1 -1
  291. package/lib/cjs/core-react/utils/IconHelper.d.ts +1 -1
  292. package/lib/cjs/core-react/utils/IconHelper.d.ts.map +1 -1
  293. package/lib/cjs/core-react/utils/IconHelper.js.map +1 -1
  294. package/lib/cjs/core-react/utils/IconWebComponent.js +1 -1
  295. package/lib/cjs/core-react/utils/IconWebComponent.js.map +1 -1
  296. package/lib/cjs/core-react/utils/Point.d.ts +1 -1
  297. package/lib/cjs/core-react/utils/Point.d.ts.map +1 -1
  298. package/lib/cjs/core-react/utils/Point.js.map +1 -1
  299. package/lib/cjs/core-react/utils/Props.d.ts +2 -2
  300. package/lib/cjs/core-react/utils/Props.d.ts.map +1 -1
  301. package/lib/cjs/core-react/utils/Props.js.map +1 -1
  302. package/lib/cjs/core-react/utils/Rectangle.d.ts +3 -2
  303. package/lib/cjs/core-react/utils/Rectangle.d.ts.map +1 -1
  304. package/lib/cjs/core-react/utils/Rectangle.js.map +1 -1
  305. package/lib/cjs/core-react/utils/ScrollPositionMaintainer.d.ts +1 -1
  306. package/lib/cjs/core-react/utils/ScrollPositionMaintainer.d.ts.map +1 -1
  307. package/lib/cjs/core-react/utils/ScrollPositionMaintainer.js.map +1 -1
  308. package/lib/cjs/core-react/utils/Size.js.map +1 -1
  309. package/lib/cjs/core-react/utils/Timer.js.map +1 -1
  310. package/lib/cjs/core-react/utils/UiGeometry.js.map +1 -1
  311. package/lib/cjs/core-react/utils/flattenChildren.js.map +1 -1
  312. package/lib/cjs/core-react/utils/getBestBWContrastColor.js.map +1 -1
  313. package/lib/cjs/core-react/utils/getCssVariable.js +1 -1
  314. package/lib/cjs/core-react/utils/getCssVariable.js.map +1 -1
  315. package/lib/cjs/core-react/utils/getDisplayName.d.ts +1 -1
  316. package/lib/cjs/core-react/utils/getDisplayName.d.ts.map +1 -1
  317. package/lib/cjs/core-react/utils/getDisplayName.js.map +1 -1
  318. package/lib/cjs/core-react/utils/getUserColor.js.map +1 -1
  319. package/lib/cjs/core-react/utils/hooks/ResizeObserverPolyfill.js.map +1 -1
  320. package/lib/cjs/core-react/utils/hooks/useCrossOriginPopup.js +2 -1
  321. package/lib/cjs/core-react/utils/hooks/useCrossOriginPopup.js.map +1 -1
  322. package/lib/cjs/core-react/utils/hooks/useDisposable.d.ts +1 -1
  323. package/lib/cjs/core-react/utils/hooks/useDisposable.d.ts.map +1 -1
  324. package/lib/cjs/core-react/utils/hooks/useDisposable.js.map +1 -1
  325. package/lib/cjs/core-react/utils/hooks/useEffectSkipFirst.js.map +1 -1
  326. package/lib/cjs/core-react/utils/hooks/useEventListener.js.map +1 -1
  327. package/lib/cjs/core-react/utils/hooks/useInterval.js.map +1 -1
  328. package/lib/cjs/core-react/utils/hooks/useLifecycleLogging.js.map +1 -1
  329. package/lib/cjs/core-react/utils/hooks/useOnOutsideClick.js.map +1 -1
  330. package/lib/cjs/core-react/utils/hooks/useProximityToMouse.js.map +1 -1
  331. package/lib/cjs/core-react/utils/hooks/useRefEffect.js.map +1 -1
  332. package/lib/cjs/core-react/utils/hooks/useRefState.js.map +1 -1
  333. package/lib/cjs/core-react/utils/hooks/useRefs.js.map +1 -1
  334. package/lib/cjs/core-react/utils/hooks/useResizeObserver.js +13 -8
  335. package/lib/cjs/core-react/utils/hooks/useResizeObserver.js.map +1 -1
  336. package/lib/cjs/core-react/utils/hooks/useTargeted.js.map +1 -1
  337. package/lib/cjs/core-react/utils/hooks/useThrottledFn.js.map +1 -1
  338. package/lib/cjs/core-react/utils/hooks/useWidgetOpacityContext.js.map +1 -1
  339. package/lib/cjs/core-react/utils/isPromiseLike.js.map +1 -1
  340. package/lib/cjs/core-react/utils/shallowDiffers.js.map +1 -1
  341. package/lib/cjs/core-react/utils/typeUtils.js.map +1 -1
  342. package/lib/cjs/core-react.js.map +1 -1
  343. package/lib/esm/core-react/UiCore.js.map +1 -1
  344. package/lib/esm/core-react/_geometry.scss +70 -70
  345. package/lib/esm/core-react/_helpers.scss +51 -51
  346. package/lib/esm/core-react/_math.scss +13 -13
  347. package/lib/esm/core-react/_scrollbar.scss +51 -51
  348. package/lib/esm/core-react/_typography.scss +44 -44
  349. package/lib/esm/core-react/_z-index.scss +65 -65
  350. package/lib/esm/core-react/autosuggest/AutoSuggest.d.ts +1 -1
  351. package/lib/esm/core-react/autosuggest/AutoSuggest.d.ts.map +1 -1
  352. package/lib/esm/core-react/autosuggest/AutoSuggest.js.map +1 -1
  353. package/lib/esm/core-react/autosuggest/AutoSuggest.scss +79 -79
  354. package/lib/esm/core-react/badge/Badge.d.ts +1 -1
  355. package/lib/esm/core-react/badge/Badge.d.ts.map +1 -1
  356. package/lib/esm/core-react/badge/Badge.js.map +1 -1
  357. package/lib/esm/core-react/badge/Badge.scss +13 -13
  358. package/lib/esm/core-react/badge/BadgeUtilities.js.map +1 -1
  359. package/lib/esm/core-react/badge/BetaBadge.d.ts +1 -1
  360. package/lib/esm/core-react/badge/BetaBadge.d.ts.map +1 -1
  361. package/lib/esm/core-react/badge/BetaBadge.js.map +1 -1
  362. package/lib/esm/core-react/badge/NewBadge.d.ts +1 -1
  363. package/lib/esm/core-react/badge/NewBadge.d.ts.map +1 -1
  364. package/lib/esm/core-react/badge/NewBadge.js.map +1 -1
  365. package/lib/esm/core-react/badge/NewBadge.scss +9 -9
  366. package/lib/esm/core-react/base/Centered.d.ts +1 -1
  367. package/lib/esm/core-react/base/Centered.d.ts.map +1 -1
  368. package/lib/esm/core-react/base/Centered.js.map +1 -1
  369. package/lib/esm/core-react/base/Div.d.ts +1 -1
  370. package/lib/esm/core-react/base/Div.d.ts.map +1 -1
  371. package/lib/esm/core-react/base/Div.js.map +1 -1
  372. package/lib/esm/core-react/base/DivWithOutsideClick.d.ts +1 -1
  373. package/lib/esm/core-react/base/DivWithOutsideClick.d.ts.map +1 -1
  374. package/lib/esm/core-react/base/DivWithOutsideClick.js.map +1 -1
  375. package/lib/esm/core-react/base/FillCentered.d.ts +1 -1
  376. package/lib/esm/core-react/base/FillCentered.d.ts.map +1 -1
  377. package/lib/esm/core-react/base/FillCentered.js.map +1 -1
  378. package/lib/esm/core-react/base/FlexWrapContainer.d.ts +1 -1
  379. package/lib/esm/core-react/base/FlexWrapContainer.d.ts.map +1 -1
  380. package/lib/esm/core-react/base/FlexWrapContainer.js.map +1 -1
  381. package/lib/esm/core-react/base/Gap.d.ts +1 -1
  382. package/lib/esm/core-react/base/Gap.d.ts.map +1 -1
  383. package/lib/esm/core-react/base/Gap.js +1 -1
  384. package/lib/esm/core-react/base/Gap.js.map +1 -1
  385. package/lib/esm/core-react/base/PointerEvents.js.map +1 -1
  386. package/lib/esm/core-react/base/ScrollView.d.ts +1 -1
  387. package/lib/esm/core-react/base/ScrollView.d.ts.map +1 -1
  388. package/lib/esm/core-react/base/ScrollView.js.map +1 -1
  389. package/lib/esm/core-react/base/base.scss +42 -42
  390. package/lib/esm/core-react/base/classes.scss +13 -13
  391. package/lib/esm/core-react/base/index.scss +5 -5
  392. package/lib/esm/core-react/button/UnderlinedButton.js.map +1 -1
  393. package/lib/esm/core-react/button/UnderlinedButton.scss +32 -32
  394. package/lib/esm/core-react/checklistbox/CheckListBox.d.ts +1 -1
  395. package/lib/esm/core-react/checklistbox/CheckListBox.d.ts.map +1 -1
  396. package/lib/esm/core-react/checklistbox/CheckListBox.js.map +1 -1
  397. package/lib/esm/core-react/checklistbox/CheckListBox.scss +21 -21
  398. package/lib/esm/core-react/classes.scss +11 -11
  399. package/lib/esm/core-react/colorthemes.scss +61 -61
  400. package/lib/esm/core-react/colorvariables.scss +131 -131
  401. package/lib/esm/core-react/contextmenu/ContextMenu.d.ts +1 -1
  402. package/lib/esm/core-react/contextmenu/ContextMenu.d.ts.map +1 -1
  403. package/lib/esm/core-react/contextmenu/ContextMenu.js +2 -1
  404. package/lib/esm/core-react/contextmenu/ContextMenu.js.map +1 -1
  405. package/lib/esm/core-react/contextmenu/ContextMenu.scss +236 -236
  406. package/lib/esm/core-react/contextmenu/ContextMenuDirection.js.map +1 -1
  407. package/lib/esm/core-react/contextmenu/ContextMenuDivider.d.ts +1 -1
  408. package/lib/esm/core-react/contextmenu/ContextMenuDivider.d.ts.map +1 -1
  409. package/lib/esm/core-react/contextmenu/ContextMenuDivider.js.map +1 -1
  410. package/lib/esm/core-react/contextmenu/ContextMenuItem.d.ts +5 -4
  411. package/lib/esm/core-react/contextmenu/ContextMenuItem.d.ts.map +1 -1
  412. package/lib/esm/core-react/contextmenu/ContextMenuItem.js.map +1 -1
  413. package/lib/esm/core-react/contextmenu/ContextSubMenu.d.ts +3 -3
  414. package/lib/esm/core-react/contextmenu/ContextSubMenu.d.ts.map +1 -1
  415. package/lib/esm/core-react/contextmenu/ContextSubMenu.js.map +1 -1
  416. package/lib/esm/core-react/contextmenu/GlobalContextMenu.d.ts +1 -1
  417. package/lib/esm/core-react/contextmenu/GlobalContextMenu.d.ts.map +1 -1
  418. package/lib/esm/core-react/contextmenu/GlobalContextMenu.js +5 -3
  419. package/lib/esm/core-react/contextmenu/GlobalContextMenu.js.map +1 -1
  420. package/lib/esm/core-react/contextmenu/PopupContextMenu.d.ts +1 -1
  421. package/lib/esm/core-react/contextmenu/PopupContextMenu.d.ts.map +1 -1
  422. package/lib/esm/core-react/contextmenu/PopupContextMenu.js.map +1 -1
  423. package/lib/esm/core-react/contextmenu/TildeFinder.js.map +1 -1
  424. package/lib/esm/core-react/dialog/Dialog.d.ts +3 -3
  425. package/lib/esm/core-react/dialog/Dialog.d.ts.map +1 -1
  426. package/lib/esm/core-react/dialog/Dialog.js +2 -1
  427. package/lib/esm/core-react/dialog/Dialog.js.map +1 -1
  428. package/lib/esm/core-react/dialog/Dialog.scss +245 -245
  429. package/lib/esm/core-react/dialog/GlobalDialog.d.ts +1 -1
  430. package/lib/esm/core-react/dialog/GlobalDialog.d.ts.map +1 -1
  431. package/lib/esm/core-react/dialog/GlobalDialog.js +2 -1
  432. package/lib/esm/core-react/dialog/GlobalDialog.js.map +1 -1
  433. package/lib/esm/core-react/elementseparator/ElementSeparator.d.ts +1 -1
  434. package/lib/esm/core-react/elementseparator/ElementSeparator.d.ts.map +1 -1
  435. package/lib/esm/core-react/elementseparator/ElementSeparator.js +2 -2
  436. package/lib/esm/core-react/elementseparator/ElementSeparator.js.map +1 -1
  437. package/lib/esm/core-react/elementseparator/ElementSeparator.scss +85 -85
  438. package/lib/esm/core-react/enums/Alignment.js.map +1 -1
  439. package/lib/esm/core-react/enums/CheckBoxState.js.map +1 -1
  440. package/lib/esm/core-react/enums/Orientation.js.map +1 -1
  441. package/lib/esm/core-react/enums/SortDirection.js.map +1 -1
  442. package/lib/esm/core-react/enums/TimeFormat.js.map +1 -1
  443. package/lib/esm/core-react/expandable/ExpandableList.d.ts +1 -1
  444. package/lib/esm/core-react/expandable/ExpandableList.d.ts.map +1 -1
  445. package/lib/esm/core-react/expandable/ExpandableList.js.map +1 -1
  446. package/lib/esm/core-react/expandable/ExpandableList.scss +8 -8
  447. package/lib/esm/core-react/expandable/classes.scss +7 -7
  448. package/lib/esm/core-react/expandable/index.scss +5 -5
  449. package/lib/esm/core-react/expandable/list.scss +35 -35
  450. package/lib/esm/core-react/focus/ItemKeyboardNavigator.js.map +1 -1
  451. package/lib/esm/core-react/focustrap/FocusTrap.js.map +1 -1
  452. package/lib/esm/core-react/hocs/withIsPressed.js.map +1 -1
  453. package/lib/esm/core-react/hocs/withOnOutsideClick.js +2 -1
  454. package/lib/esm/core-react/hocs/withOnOutsideClick.js.map +1 -1
  455. package/lib/esm/core-react/hocs/withTimeout.js.map +1 -1
  456. package/lib/esm/core-react/icons/ConditionalIconItem.d.ts +1 -1
  457. package/lib/esm/core-react/icons/ConditionalIconItem.d.ts.map +1 -1
  458. package/lib/esm/core-react/icons/ConditionalIconItem.js.map +1 -1
  459. package/lib/esm/core-react/icons/IconComponent.d.ts +2 -2
  460. package/lib/esm/core-react/icons/IconComponent.d.ts.map +1 -1
  461. package/lib/esm/core-react/icons/IconComponent.js +1 -1
  462. package/lib/esm/core-react/icons/IconComponent.js.map +1 -1
  463. package/lib/esm/core-react/icons/IconComponent.scss +20 -20
  464. package/lib/esm/core-react/icons/SvgPath.d.ts +1 -1
  465. package/lib/esm/core-react/icons/SvgPath.d.ts.map +1 -1
  466. package/lib/esm/core-react/icons/SvgPath.js.map +1 -1
  467. package/lib/esm/core-react/icons/SvgPath.scss +15 -15
  468. package/lib/esm/core-react/icons/WebFontIcon.d.ts +1 -1
  469. package/lib/esm/core-react/icons/WebFontIcon.d.ts.map +1 -1
  470. package/lib/esm/core-react/icons/WebFontIcon.js.map +1 -1
  471. package/lib/esm/core-react/icons/WebFontIcon.scss +17 -17
  472. package/lib/esm/core-react/icons/classes.scss +10 -10
  473. package/lib/esm/core-react/icons/index.scss +6 -6
  474. package/lib/esm/core-react/icons/mixins.scss +25 -25
  475. package/lib/esm/core-react/icons/variables.scss +12 -12
  476. package/lib/esm/core-react/imagecheckbox/ImageCheckBox.d.ts +1 -1
  477. package/lib/esm/core-react/imagecheckbox/ImageCheckBox.d.ts.map +1 -1
  478. package/lib/esm/core-react/imagecheckbox/ImageCheckBox.js.map +1 -1
  479. package/lib/esm/core-react/imagecheckbox/ImageCheckBox.scss +54 -54
  480. package/lib/esm/core-react/index.scss +21 -21
  481. package/lib/esm/core-react/inputs/Input.d.ts +1 -1
  482. package/lib/esm/core-react/inputs/Input.d.ts.map +1 -1
  483. package/lib/esm/core-react/inputs/Input.js.map +1 -1
  484. package/lib/esm/core-react/inputs/InputLabel.d.ts +2 -2
  485. package/lib/esm/core-react/inputs/InputLabel.d.ts.map +1 -1
  486. package/lib/esm/core-react/inputs/InputLabel.js.map +1 -1
  487. package/lib/esm/core-react/inputs/InputStatus.js.map +1 -1
  488. package/lib/esm/core-react/inputs/LabeledComponentProps.d.ts +2 -2
  489. package/lib/esm/core-react/inputs/LabeledComponentProps.d.ts.map +1 -1
  490. package/lib/esm/core-react/inputs/LabeledComponentProps.js.map +1 -1
  491. package/lib/esm/core-react/inputs/classes.scss +8 -8
  492. package/lib/esm/core-react/inputs/iconinput/IconInput.d.ts +1 -1
  493. package/lib/esm/core-react/inputs/iconinput/IconInput.d.ts.map +1 -1
  494. package/lib/esm/core-react/inputs/iconinput/IconInput.js.map +1 -1
  495. package/lib/esm/core-react/inputs/iconinput/IconInput.scss +35 -35
  496. package/lib/esm/core-react/inputs/index.scss +9 -9
  497. package/lib/esm/core-react/inputs/input-label.scss +90 -90
  498. package/lib/esm/core-react/inputs/input.scss +58 -58
  499. package/lib/esm/core-react/inputs/numberinput/NumberInput.d.ts +1 -1
  500. package/lib/esm/core-react/inputs/numberinput/NumberInput.d.ts.map +1 -1
  501. package/lib/esm/core-react/inputs/numberinput/NumberInput.js.map +1 -1
  502. package/lib/esm/core-react/inputs/numberinput/NumberInput.scss +88 -88
  503. package/lib/esm/core-react/inputs/variables.scss +38 -38
  504. package/lib/esm/core-react/layout-variables.scss +17 -17
  505. package/lib/esm/core-react/listbox/Listbox.js +3 -2
  506. package/lib/esm/core-react/listbox/Listbox.js.map +1 -1
  507. package/lib/esm/core-react/listbox/Listbox.scss +54 -54
  508. package/lib/esm/core-react/loading/LoadingBar.d.ts +1 -1
  509. package/lib/esm/core-react/loading/LoadingBar.d.ts.map +1 -1
  510. package/lib/esm/core-react/loading/LoadingBar.js.map +1 -1
  511. package/lib/esm/core-react/loading/LoadingBar.scss +29 -29
  512. package/lib/esm/core-react/loading/LoadingPrompt.d.ts +1 -1
  513. package/lib/esm/core-react/loading/LoadingPrompt.d.ts.map +1 -1
  514. package/lib/esm/core-react/loading/LoadingPrompt.js.map +1 -1
  515. package/lib/esm/core-react/loading/LoadingPrompt.scss +33 -33
  516. package/lib/esm/core-react/loading/LoadingSpinner.d.ts +1 -1
  517. package/lib/esm/core-react/loading/LoadingSpinner.d.ts.map +1 -1
  518. package/lib/esm/core-react/loading/LoadingSpinner.js.map +1 -1
  519. package/lib/esm/core-react/loading/LoadingSpinner.scss +26 -26
  520. package/lib/esm/core-react/loading/LoadingStatus.d.ts +1 -1
  521. package/lib/esm/core-react/loading/LoadingStatus.d.ts.map +1 -1
  522. package/lib/esm/core-react/loading/LoadingStatus.js.map +1 -1
  523. package/lib/esm/core-react/loading/LoadingStatus.scss +20 -20
  524. package/lib/esm/core-react/loading/index.scss +5 -5
  525. package/lib/esm/core-react/loading/mixins.scss +57 -57
  526. package/lib/esm/core-react/messagebox/MessageBox.d.ts +4 -3
  527. package/lib/esm/core-react/messagebox/MessageBox.d.ts.map +1 -1
  528. package/lib/esm/core-react/messagebox/MessageBox.js.map +1 -1
  529. package/lib/esm/core-react/messagebox/MessageBox.scss +56 -56
  530. package/lib/esm/core-react/notification/MessageRenderer.d.ts +2 -2
  531. package/lib/esm/core-react/notification/MessageRenderer.d.ts.map +1 -1
  532. package/lib/esm/core-react/notification/MessageRenderer.js +1 -1
  533. package/lib/esm/core-react/notification/MessageRenderer.js.map +1 -1
  534. package/lib/esm/core-react/notification/MessageType.d.ts +1 -1
  535. package/lib/esm/core-react/notification/MessageType.d.ts.map +1 -1
  536. package/lib/esm/core-react/notification/MessageType.js.map +1 -1
  537. package/lib/esm/core-react/popup/Popup.d.ts +1 -1
  538. package/lib/esm/core-react/popup/Popup.d.ts.map +1 -1
  539. package/lib/esm/core-react/popup/Popup.js +8 -4
  540. package/lib/esm/core-react/popup/Popup.js.map +1 -1
  541. package/lib/esm/core-react/popup/Popup.scss +240 -240
  542. package/lib/esm/core-react/radialmenu/Annulus.js.map +1 -1
  543. package/lib/esm/core-react/radialmenu/RadialMenu.d.ts +2 -2
  544. package/lib/esm/core-react/radialmenu/RadialMenu.d.ts.map +1 -1
  545. package/lib/esm/core-react/radialmenu/RadialMenu.js.map +1 -1
  546. package/lib/esm/core-react/radialmenu/RadialMenu.scss +55 -55
  547. package/lib/esm/core-react/searchbox/SearchBox.d.ts +1 -1
  548. package/lib/esm/core-react/searchbox/SearchBox.d.ts.map +1 -1
  549. package/lib/esm/core-react/searchbox/SearchBox.js.map +1 -1
  550. package/lib/esm/core-react/searchbox/SearchBox.scss +47 -47
  551. package/lib/esm/core-react/settings/SettingsContainer.d.ts +1 -1
  552. package/lib/esm/core-react/settings/SettingsContainer.d.ts.map +1 -1
  553. package/lib/esm/core-react/settings/SettingsContainer.js.map +1 -1
  554. package/lib/esm/core-react/settings/SettingsContainer.scss +68 -68
  555. package/lib/esm/core-react/settings/SettingsManager.d.ts +1 -1
  556. package/lib/esm/core-react/settings/SettingsManager.d.ts.map +1 -1
  557. package/lib/esm/core-react/settings/SettingsManager.js.map +1 -1
  558. package/lib/esm/core-react/style/baseline.scss +11 -11
  559. package/lib/esm/core-react/style/breakpoints.scss +41 -41
  560. package/lib/esm/core-react/style/colors.scss +77 -77
  561. package/lib/esm/core-react/style/index.scss +10 -10
  562. package/lib/esm/core-react/style/mixins.scss +27 -27
  563. package/lib/esm/core-react/style/opacity.scss +16 -16
  564. package/lib/esm/core-react/style/themecolors.scss +123 -123
  565. package/lib/esm/core-react/tabs/Tabs.d.ts +1 -1
  566. package/lib/esm/core-react/tabs/Tabs.d.ts.map +1 -1
  567. package/lib/esm/core-react/tabs/Tabs.js.map +1 -1
  568. package/lib/esm/core-react/tabs/VerticalTabs.d.ts +1 -1
  569. package/lib/esm/core-react/tabs/VerticalTabs.d.ts.map +1 -1
  570. package/lib/esm/core-react/tabs/VerticalTabs.js.map +1 -1
  571. package/lib/esm/core-react/tabs/classes.scss +7 -7
  572. package/lib/esm/core-react/tabs/index.scss +5 -5
  573. package/lib/esm/core-react/tabs/tabs.scss +96 -96
  574. package/lib/esm/core-react/tabs/vertical.scss +51 -51
  575. package/lib/esm/core-react/text/BlockText.d.ts +1 -1
  576. package/lib/esm/core-react/text/BlockText.d.ts.map +1 -1
  577. package/lib/esm/core-react/text/BlockText.js.map +1 -1
  578. package/lib/esm/core-react/text/BodyText.d.ts +1 -1
  579. package/lib/esm/core-react/text/BodyText.d.ts.map +1 -1
  580. package/lib/esm/core-react/text/BodyText.js.map +1 -1
  581. package/lib/esm/core-react/text/DisabledText.d.ts +1 -1
  582. package/lib/esm/core-react/text/DisabledText.d.ts.map +1 -1
  583. package/lib/esm/core-react/text/DisabledText.js.map +1 -1
  584. package/lib/esm/core-react/text/FilteredText.d.ts +2 -2
  585. package/lib/esm/core-react/text/FilteredText.d.ts.map +1 -1
  586. package/lib/esm/core-react/text/FilteredText.js.map +1 -1
  587. package/lib/esm/core-react/text/FilteredText.scss +10 -10
  588. package/lib/esm/core-react/text/MutedText.d.ts +1 -1
  589. package/lib/esm/core-react/text/MutedText.d.ts.map +1 -1
  590. package/lib/esm/core-react/text/MutedText.js.map +1 -1
  591. package/lib/esm/core-react/text/StyledText.d.ts +1 -1
  592. package/lib/esm/core-react/text/StyledText.d.ts.map +1 -1
  593. package/lib/esm/core-react/text/StyledText.js.map +1 -1
  594. package/lib/esm/core-react/text/TextProps.d.ts +2 -2
  595. package/lib/esm/core-react/text/TextProps.d.ts.map +1 -1
  596. package/lib/esm/core-react/text/TextProps.js.map +1 -1
  597. package/lib/esm/core-react/text/block.scss +15 -15
  598. package/lib/esm/core-react/text/body.scss +13 -13
  599. package/lib/esm/core-react/text/classes.scss +10 -10
  600. package/lib/esm/core-react/text/disabled.scss +10 -10
  601. package/lib/esm/core-react/text/index.scss +10 -10
  602. package/lib/esm/core-react/text/mixins.scss +24 -24
  603. package/lib/esm/core-react/text/muted.scss +10 -10
  604. package/lib/esm/core-react/tree/Branch.d.ts +1 -1
  605. package/lib/esm/core-react/tree/Branch.d.ts.map +1 -1
  606. package/lib/esm/core-react/tree/Branch.js.map +1 -1
  607. package/lib/esm/core-react/tree/Branch.scss +12 -12
  608. package/lib/esm/core-react/tree/ExpansionToggle.d.ts +1 -1
  609. package/lib/esm/core-react/tree/ExpansionToggle.d.ts.map +1 -1
  610. package/lib/esm/core-react/tree/ExpansionToggle.js.map +1 -1
  611. package/lib/esm/core-react/tree/ExpansionToggle.scss +32 -32
  612. package/lib/esm/core-react/tree/Node.d.ts +3 -3
  613. package/lib/esm/core-react/tree/Node.d.ts.map +1 -1
  614. package/lib/esm/core-react/tree/Node.js +2 -1
  615. package/lib/esm/core-react/tree/Node.js.map +1 -1
  616. package/lib/esm/core-react/tree/Node.scss +68 -68
  617. package/lib/esm/core-react/tree/Placeholder.d.ts +1 -1
  618. package/lib/esm/core-react/tree/Placeholder.d.ts.map +1 -1
  619. package/lib/esm/core-react/tree/Placeholder.js.map +1 -1
  620. package/lib/esm/core-react/tree/Placeholder.scss +17 -17
  621. package/lib/esm/core-react/tree/Tree.d.ts +1 -1
  622. package/lib/esm/core-react/tree/Tree.d.ts.map +1 -1
  623. package/lib/esm/core-react/tree/Tree.js.map +1 -1
  624. package/lib/esm/core-react/tree/Tree.scss +21 -21
  625. package/lib/esm/core-react/uistate/LocalStateStorage.d.ts +1 -1
  626. package/lib/esm/core-react/uistate/LocalStateStorage.d.ts.map +1 -1
  627. package/lib/esm/core-react/uistate/LocalStateStorage.js.map +1 -1
  628. package/lib/esm/core-react/uistate/UiStateEntry.d.ts +1 -1
  629. package/lib/esm/core-react/uistate/UiStateEntry.d.ts.map +1 -1
  630. package/lib/esm/core-react/uistate/UiStateEntry.js.map +1 -1
  631. package/lib/esm/core-react/uistate/UiStateStorage.js.map +1 -1
  632. package/lib/esm/core-react/utils/IconHelper.d.ts +1 -1
  633. package/lib/esm/core-react/utils/IconHelper.d.ts.map +1 -1
  634. package/lib/esm/core-react/utils/IconHelper.js.map +1 -1
  635. package/lib/esm/core-react/utils/IconWebComponent.js +1 -1
  636. package/lib/esm/core-react/utils/IconWebComponent.js.map +1 -1
  637. package/lib/esm/core-react/utils/Point.d.ts +1 -1
  638. package/lib/esm/core-react/utils/Point.d.ts.map +1 -1
  639. package/lib/esm/core-react/utils/Point.js.map +1 -1
  640. package/lib/esm/core-react/utils/Props.d.ts +2 -2
  641. package/lib/esm/core-react/utils/Props.d.ts.map +1 -1
  642. package/lib/esm/core-react/utils/Props.js.map +1 -1
  643. package/lib/esm/core-react/utils/Rectangle.d.ts +3 -2
  644. package/lib/esm/core-react/utils/Rectangle.d.ts.map +1 -1
  645. package/lib/esm/core-react/utils/Rectangle.js.map +1 -1
  646. package/lib/esm/core-react/utils/ScrollPositionMaintainer.d.ts +1 -1
  647. package/lib/esm/core-react/utils/ScrollPositionMaintainer.d.ts.map +1 -1
  648. package/lib/esm/core-react/utils/ScrollPositionMaintainer.js.map +1 -1
  649. package/lib/esm/core-react/utils/Size.js.map +1 -1
  650. package/lib/esm/core-react/utils/Timer.js.map +1 -1
  651. package/lib/esm/core-react/utils/UiGeometry.js.map +1 -1
  652. package/lib/esm/core-react/utils/flattenChildren.js.map +1 -1
  653. package/lib/esm/core-react/utils/getBestBWContrastColor.js.map +1 -1
  654. package/lib/esm/core-react/utils/getCssVariable.js +1 -1
  655. package/lib/esm/core-react/utils/getCssVariable.js.map +1 -1
  656. package/lib/esm/core-react/utils/getDisplayName.d.ts +1 -1
  657. package/lib/esm/core-react/utils/getDisplayName.d.ts.map +1 -1
  658. package/lib/esm/core-react/utils/getDisplayName.js.map +1 -1
  659. package/lib/esm/core-react/utils/getUserColor.js.map +1 -1
  660. package/lib/esm/core-react/utils/hooks/ResizeObserverPolyfill.js.map +1 -1
  661. package/lib/esm/core-react/utils/hooks/useCrossOriginPopup.js +2 -1
  662. package/lib/esm/core-react/utils/hooks/useCrossOriginPopup.js.map +1 -1
  663. package/lib/esm/core-react/utils/hooks/useDisposable.d.ts +1 -1
  664. package/lib/esm/core-react/utils/hooks/useDisposable.d.ts.map +1 -1
  665. package/lib/esm/core-react/utils/hooks/useDisposable.js.map +1 -1
  666. package/lib/esm/core-react/utils/hooks/useEffectSkipFirst.js.map +1 -1
  667. package/lib/esm/core-react/utils/hooks/useEventListener.js.map +1 -1
  668. package/lib/esm/core-react/utils/hooks/useInterval.js.map +1 -1
  669. package/lib/esm/core-react/utils/hooks/useLifecycleLogging.js.map +1 -1
  670. package/lib/esm/core-react/utils/hooks/useOnOutsideClick.js.map +1 -1
  671. package/lib/esm/core-react/utils/hooks/useProximityToMouse.js.map +1 -1
  672. package/lib/esm/core-react/utils/hooks/useRefEffect.js.map +1 -1
  673. package/lib/esm/core-react/utils/hooks/useRefState.js.map +1 -1
  674. package/lib/esm/core-react/utils/hooks/useRefs.js.map +1 -1
  675. package/lib/esm/core-react/utils/hooks/useResizeObserver.js +13 -8
  676. package/lib/esm/core-react/utils/hooks/useResizeObserver.js.map +1 -1
  677. package/lib/esm/core-react/utils/hooks/useTargeted.js.map +1 -1
  678. package/lib/esm/core-react/utils/hooks/useThrottledFn.js.map +1 -1
  679. package/lib/esm/core-react/utils/hooks/useWidgetOpacityContext.js.map +1 -1
  680. package/lib/esm/core-react/utils/isPromiseLike.js.map +1 -1
  681. package/lib/esm/core-react/utils/shallowDiffers.js.map +1 -1
  682. package/lib/esm/core-react/utils/typeUtils.js.map +1 -1
  683. package/lib/esm/core-react.js.map +1 -1
  684. package/lib/public/locales/en/UiCore.json +30 -30
  685. package/package.json +9 -4
@@ -1,240 +1,240 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- @import "../inputs/variables";
6
- @import "../z-index";
7
-
8
- .core-popup {
9
- top: 0;
10
- left: 0;
11
- display: block;
12
- box-sizing: border-box;
13
- position: absolute;
14
- border-radius: var(--iui-border-radius-1);
15
- border: 1px solid var(--iui-color-border);
16
- background: var(--iui-color-background);
17
- color: var(--iui-color-text);
18
- animation-duration: var(--iui-duration-1);
19
- animation-timing-function: ease;
20
- animation-fill-mode: forwards;
21
- cursor: default;
22
-
23
- @include uicore-z-index(dialog-popup);
24
-
25
- &.core-popup-animation-none {
26
- animation-duration: 0s;
27
- }
28
-
29
- &.core-popup-hidden {
30
- display: none;
31
- }
32
-
33
- &.core-animation-ended {
34
- animation-name: none;
35
- }
36
- }
37
-
38
- .core-popup.arrow::after,
39
- .core-popup.arrow::before {
40
- border: solid transparent;
41
- content: " ";
42
- height: 0;
43
- width: 0;
44
- position: absolute;
45
- pointer-events: none;
46
- color: var(--iui-color-background);
47
- }
48
-
49
- .core-popup.core-popup-bottom-left.arrow::after,
50
- .core-popup.core-popup-bottom-left.arrow::before {
51
- bottom: 100%;
52
- left: 25%;
53
- }
54
-
55
- .core-popup.core-popup-bottom-right.arrow::after,
56
- .core-popup.core-popup-bottom-right.arrow::before {
57
- bottom: 100%;
58
- left: 75%;
59
- }
60
-
61
- .core-popup.core-popup-bottom.arrow::after,
62
- .core-popup.core-popup-bottom.arrow::before {
63
- bottom: 100%;
64
- left: 50%;
65
- }
66
-
67
- .core-popup.core-popup-top.arrow::after,
68
- .core-popup.core-popup-top.arrow::before {
69
- top: 100%;
70
- left: 50%;
71
- }
72
-
73
- .core-popup.core-popup-top-left.arrow::after,
74
- .core-popup.core-popup-top-left.arrow::before {
75
- top: 100%;
76
- left: 25%;
77
- }
78
-
79
- .core-popup.core-popup-top-right.arrow::after,
80
- .core-popup.core-popup-top-right.arrow::before {
81
- top: 100%;
82
- left: 75%;
83
- }
84
-
85
- .core-popup.core-popup-left.arrow::after,
86
- .core-popup.core-popup-left.arrow::before {
87
- top: 50%;
88
- left: 100%;
89
- }
90
-
91
- .core-popup.core-popup-right.arrow::after,
92
- .core-popup.core-popup-right.arrow::before {
93
- top: 50%;
94
- right: 100%;
95
- }
96
-
97
- .core-popup.core-popup-bottom.arrow::before,
98
- .core-popup.core-popup-bottom-left.arrow::before,
99
- .core-popup.core-popup-bottom-right.arrow::before {
100
- border-bottom-color: inherit;
101
- border-width: 9px;
102
- margin-left: -9px;
103
- }
104
-
105
- .core-popup.core-popup-top.arrow::before,
106
- .core-popup.core-popup-top-left.arrow::before,
107
- .core-popup.core-popup-top-right.arrow::before {
108
- border-top-color: inherit;
109
- border-width: 9px;
110
- margin-left: -9px;
111
- }
112
-
113
- .core-popup.core-popup-left.arrow::before {
114
- border-left-color: inherit;
115
- border-width: 9px;
116
- margin-top: -9px;
117
- }
118
-
119
- .core-popup.core-popup-right.arrow::before {
120
- border-right-color: inherit;
121
- border-width: 9px;
122
- margin-top: -9px;
123
- }
124
-
125
- .core-popup.core-popup-bottom.arrow::after,
126
- .core-popup.core-popup-bottom-left.arrow::after,
127
- .core-popup.core-popup-bottom-right.arrow::after {
128
- border-bottom-color: currentColor;
129
- border-width: 8px;
130
- margin-left: -8px;
131
- }
132
-
133
- .core-popup.core-popup-top.arrow::after,
134
- .core-popup.core-popup-top-left.arrow::after,
135
- .core-popup.core-popup-top-right.arrow::after {
136
- border-top-color: currentColor;
137
- border-width: 8px;
138
- margin-left: -8px;
139
- }
140
-
141
- .core-popup.core-popup-left.arrow::after {
142
- border-left-color: currentColor;
143
- border-width: 8px;
144
- margin-top: -8px;
145
- }
146
-
147
- .core-popup.core-popup-right.arrow::after {
148
- border-right-color: currentColor;
149
- border-width: 8px;
150
- margin-top: -8px;
151
- }
152
-
153
- .core-popup-shadow {
154
- -webkit-box-shadow: var(--iui-shadow-4);
155
- box-shadow: var(--iui-shadow-4);
156
- background-clip: padding-box;
157
- }
158
-
159
- .core-popup-top-left {
160
- transform-origin: left bottom 0px;
161
- animation-name: animate-corner;
162
- }
163
-
164
- .core-popup-top-right {
165
- transform-origin: right bottom 0px;
166
- animation-name: animate-corner;
167
- }
168
-
169
- .core-popup-bottom-left {
170
- transform-origin: left top 0px;
171
- animation-name: animate-corner;
172
- }
173
-
174
- .core-popup-bottom-right {
175
- transform-origin: right top 0px;
176
- animation-name: animate-corner;
177
- }
178
-
179
- .core-popup-left {
180
- transform-origin: right;
181
- animation-name: animate-horizontal;
182
- }
183
-
184
- .core-popup-left-top {
185
- transform-origin: right top 0px;
186
- animation-name: animate-corner;
187
- }
188
-
189
- .core-popup-right {
190
- transform-origin: left;
191
- animation-name: animate-horizontal;
192
- }
193
-
194
- .core-popup-right-top {
195
- transform-origin: left top 0px;
196
- animation-name: animate-corner;
197
- }
198
-
199
- .core-popup-top {
200
- transform-origin: bottom;
201
- animation-name: animate-vertical;
202
- }
203
-
204
- .core-popup-bottom {
205
- transform-origin: top;
206
- animation-name: animate-vertical;
207
- }
208
-
209
- @keyframes animate-vertical {
210
- from {
211
- visibility: hidden;
212
- transform: scale(1, 0.5);
213
- }
214
- to {
215
- visibility: visible;
216
- transform: scale(1);
217
- }
218
- }
219
-
220
- @keyframes animate-corner {
221
- from {
222
- visibility: hidden;
223
- transform: scale(0.5, 0.5);
224
- }
225
- to {
226
- visibility: visible;
227
- transform: scale(1, 1);
228
- }
229
- }
230
-
231
- @keyframes animate-horizontal {
232
- from {
233
- visibility: hidden;
234
- transform: scale(0.5, 1);
235
- }
236
- to {
237
- visibility: visible;
238
- transform: scale(1, 1);
239
- }
240
- }
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ @import "../inputs/variables";
6
+ @import "../z-index";
7
+
8
+ .core-popup {
9
+ top: 0;
10
+ left: 0;
11
+ display: block;
12
+ box-sizing: border-box;
13
+ position: absolute;
14
+ border-radius: var(--iui-border-radius-1);
15
+ border: 1px solid var(--iui-color-border);
16
+ background: var(--iui-color-background);
17
+ color: var(--iui-color-text);
18
+ animation-duration: var(--iui-duration-1);
19
+ animation-timing-function: ease;
20
+ animation-fill-mode: forwards;
21
+ cursor: default;
22
+
23
+ @include uicore-z-index(dialog-popup);
24
+
25
+ &.core-popup-animation-none {
26
+ animation-duration: 0s;
27
+ }
28
+
29
+ &.core-popup-hidden {
30
+ display: none;
31
+ }
32
+
33
+ &.core-animation-ended {
34
+ animation-name: none;
35
+ }
36
+ }
37
+
38
+ .core-popup.arrow::after,
39
+ .core-popup.arrow::before {
40
+ border: solid transparent;
41
+ content: " ";
42
+ height: 0;
43
+ width: 0;
44
+ position: absolute;
45
+ pointer-events: none;
46
+ color: var(--iui-color-background);
47
+ }
48
+
49
+ .core-popup.core-popup-bottom-left.arrow::after,
50
+ .core-popup.core-popup-bottom-left.arrow::before {
51
+ bottom: 100%;
52
+ left: 25%;
53
+ }
54
+
55
+ .core-popup.core-popup-bottom-right.arrow::after,
56
+ .core-popup.core-popup-bottom-right.arrow::before {
57
+ bottom: 100%;
58
+ left: 75%;
59
+ }
60
+
61
+ .core-popup.core-popup-bottom.arrow::after,
62
+ .core-popup.core-popup-bottom.arrow::before {
63
+ bottom: 100%;
64
+ left: 50%;
65
+ }
66
+
67
+ .core-popup.core-popup-top.arrow::after,
68
+ .core-popup.core-popup-top.arrow::before {
69
+ top: 100%;
70
+ left: 50%;
71
+ }
72
+
73
+ .core-popup.core-popup-top-left.arrow::after,
74
+ .core-popup.core-popup-top-left.arrow::before {
75
+ top: 100%;
76
+ left: 25%;
77
+ }
78
+
79
+ .core-popup.core-popup-top-right.arrow::after,
80
+ .core-popup.core-popup-top-right.arrow::before {
81
+ top: 100%;
82
+ left: 75%;
83
+ }
84
+
85
+ .core-popup.core-popup-left.arrow::after,
86
+ .core-popup.core-popup-left.arrow::before {
87
+ top: 50%;
88
+ left: 100%;
89
+ }
90
+
91
+ .core-popup.core-popup-right.arrow::after,
92
+ .core-popup.core-popup-right.arrow::before {
93
+ top: 50%;
94
+ right: 100%;
95
+ }
96
+
97
+ .core-popup.core-popup-bottom.arrow::before,
98
+ .core-popup.core-popup-bottom-left.arrow::before,
99
+ .core-popup.core-popup-bottom-right.arrow::before {
100
+ border-bottom-color: inherit;
101
+ border-width: 9px;
102
+ margin-left: -9px;
103
+ }
104
+
105
+ .core-popup.core-popup-top.arrow::before,
106
+ .core-popup.core-popup-top-left.arrow::before,
107
+ .core-popup.core-popup-top-right.arrow::before {
108
+ border-top-color: inherit;
109
+ border-width: 9px;
110
+ margin-left: -9px;
111
+ }
112
+
113
+ .core-popup.core-popup-left.arrow::before {
114
+ border-left-color: inherit;
115
+ border-width: 9px;
116
+ margin-top: -9px;
117
+ }
118
+
119
+ .core-popup.core-popup-right.arrow::before {
120
+ border-right-color: inherit;
121
+ border-width: 9px;
122
+ margin-top: -9px;
123
+ }
124
+
125
+ .core-popup.core-popup-bottom.arrow::after,
126
+ .core-popup.core-popup-bottom-left.arrow::after,
127
+ .core-popup.core-popup-bottom-right.arrow::after {
128
+ border-bottom-color: currentColor;
129
+ border-width: 8px;
130
+ margin-left: -8px;
131
+ }
132
+
133
+ .core-popup.core-popup-top.arrow::after,
134
+ .core-popup.core-popup-top-left.arrow::after,
135
+ .core-popup.core-popup-top-right.arrow::after {
136
+ border-top-color: currentColor;
137
+ border-width: 8px;
138
+ margin-left: -8px;
139
+ }
140
+
141
+ .core-popup.core-popup-left.arrow::after {
142
+ border-left-color: currentColor;
143
+ border-width: 8px;
144
+ margin-top: -8px;
145
+ }
146
+
147
+ .core-popup.core-popup-right.arrow::after {
148
+ border-right-color: currentColor;
149
+ border-width: 8px;
150
+ margin-top: -8px;
151
+ }
152
+
153
+ .core-popup-shadow {
154
+ -webkit-box-shadow: var(--iui-shadow-4);
155
+ box-shadow: var(--iui-shadow-4);
156
+ background-clip: padding-box;
157
+ }
158
+
159
+ .core-popup-top-left {
160
+ transform-origin: left bottom 0px;
161
+ animation-name: animate-corner;
162
+ }
163
+
164
+ .core-popup-top-right {
165
+ transform-origin: right bottom 0px;
166
+ animation-name: animate-corner;
167
+ }
168
+
169
+ .core-popup-bottom-left {
170
+ transform-origin: left top 0px;
171
+ animation-name: animate-corner;
172
+ }
173
+
174
+ .core-popup-bottom-right {
175
+ transform-origin: right top 0px;
176
+ animation-name: animate-corner;
177
+ }
178
+
179
+ .core-popup-left {
180
+ transform-origin: right;
181
+ animation-name: animate-horizontal;
182
+ }
183
+
184
+ .core-popup-left-top {
185
+ transform-origin: right top 0px;
186
+ animation-name: animate-corner;
187
+ }
188
+
189
+ .core-popup-right {
190
+ transform-origin: left;
191
+ animation-name: animate-horizontal;
192
+ }
193
+
194
+ .core-popup-right-top {
195
+ transform-origin: left top 0px;
196
+ animation-name: animate-corner;
197
+ }
198
+
199
+ .core-popup-top {
200
+ transform-origin: bottom;
201
+ animation-name: animate-vertical;
202
+ }
203
+
204
+ .core-popup-bottom {
205
+ transform-origin: top;
206
+ animation-name: animate-vertical;
207
+ }
208
+
209
+ @keyframes animate-vertical {
210
+ from {
211
+ visibility: hidden;
212
+ transform: scale(1, 0.5);
213
+ }
214
+ to {
215
+ visibility: visible;
216
+ transform: scale(1);
217
+ }
218
+ }
219
+
220
+ @keyframes animate-corner {
221
+ from {
222
+ visibility: hidden;
223
+ transform: scale(0.5, 0.5);
224
+ }
225
+ to {
226
+ visibility: visible;
227
+ transform: scale(1, 1);
228
+ }
229
+ }
230
+
231
+ @keyframes animate-horizontal {
232
+ from {
233
+ visibility: hidden;
234
+ transform: scale(0.5, 1);
235
+ }
236
+ to {
237
+ visibility: visible;
238
+ transform: scale(1, 1);
239
+ }
240
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"Annulus.js","sourceRoot":"","sources":["../../../../src/core-react/radialmenu/Annulus.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,0CAAuC;AAEvC;;;GAGG;AACH,MAAa,IAAI;IAIf,YAAY,EAAU,EAAE,EAAU;QAKlC,0EAA0E;QACnE,WAAM,GAAG,CAAC,IAAU,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QALjF,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,IAAI,aAAK,EAAE,CAAC;QAC5B,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,IAAI,aAAK,EAAE,CAAC;IAC9B,CAAC;CAIF;AAXD,oBAWC;AAED;;GAEG;AACH,MAAa,MAAM;IAGjB,YAAY,MAAc,EAAE,MAAe;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,IAAI,IAAI,aAAK,EAAE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,QAAQ,CAAC,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;QACzG,cAAc,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;QACxE,cAAc,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,KAAK,MAAM,QAAQ,MAAM,IAAI,CAAC,UAAU,CAAC,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;QAC7G,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,YAAY;QAEtC,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;CACF;AApDD,sCAoDC","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 RadialMenu\r\n */\r\n\r\nimport { Point } from \"../utils/Point\";\r\n\r\n/**\r\n * 2D Line consisting of a start point, and an end point\r\n * @internal\r\n */\r\nexport class Line {\r\n public p1: Point;\r\n public p2: Point;\r\n\r\n constructor(p1?: Point, p2?: Point) {\r\n this.p1 = p1 || new Point();\r\n this.p2 = p2 || new Point();\r\n }\r\n\r\n /** checks for equality with the components of this, and line parameter */\r\n public equals = (line: Line) => this.p1.equals(line.p1) && this.p2.equals(line.p2);\r\n}\r\n\r\n/** @internal\r\n * 2D Circle\r\n */\r\nexport class Circle {\r\n public center: Point;\r\n public radius: number;\r\n constructor(center?: Point, radius?: number) {\r\n this.center = center || new Point();\r\n this.radius = radius || 0;\r\n }\r\n}\r\n\r\n/** @internal\r\n * 2D Annulus (2D doughnut shape/flattened torus) defined by an inner and outer circle with a shared center point.\r\n */\r\nexport class Annulus {\r\n public center: Point;\r\n public inner: Circle;\r\n public outer: Circle;\r\n\r\n constructor(center?: Point, innerRadius?: number, outerRadius?: number) {\r\n this.center = center || new Point();\r\n\r\n this.inner = new Circle(center, innerRadius);\r\n this.outer = new Circle(center, outerRadius);\r\n }\r\n}\r\n\r\n/** @internal\r\n * 2D Sector of an Annulus, defined by both a parent annulus, a startAngle, and an endAngle.\r\n */\r\nexport class AnnularSector {\r\n public parent: Annulus;\r\n public startAngle: number;\r\n public endAngle: number;\r\n\r\n public path: string;\r\n\r\n public innerStart: Point;\r\n public outerStart: Point;\r\n public start: Line;\r\n public innerEnd: Point;\r\n public outerEnd: Point;\r\n public end: Line;\r\n\r\n /**\r\n * initialize AnnularSector on parent annulus, and generate SVG Path to store in this.path\r\n * @param parent parent annulus to initialize sector on.\r\n * @param startAngle angle to begin the annular sector on.\r\n * @param endAngle angle to end the annular sector on.\r\n */\r\n constructor(parent: Annulus, startAngle: number, endAngle: number) {\r\n this.parent = parent;\r\n this.startAngle = startAngle;\r\n this.endAngle = endAngle;\r\n\r\n // adapted from https://gist.github.com/buschtoens/4190516\r\n const { x: cx, y: cy } = parent.center;\r\n const inner = parent.inner.radius;\r\n const outer = parent.outer.radius;\r\n\r\n this.innerStart = new Point(cx + inner * Math.cos(startAngle), cy + inner * Math.sin(startAngle));\r\n this.outerStart = new Point(cx + outer * Math.cos(startAngle), cy + outer * Math.sin(startAngle));\r\n this.start = new Line(this.innerStart, this.outerStart);\r\n\r\n this.outerEnd = new Point(cx + outer * Math.cos(endAngle), cy + outer * Math.sin(endAngle));\r\n this.innerEnd = new Point(cx + inner * Math.cos(endAngle), cy + inner * Math.sin(endAngle));\r\n this.end = new Line(this.outerEnd, this.innerEnd);\r\n\r\n const angleDiff = endAngle - startAngle;\r\n const largeArc = (angleDiff % (Math.PI * 2)) > Math.PI ? /* istanbul ignore next */ 1 : 0;\r\n\r\n const sectorCommands = [];\r\n\r\n sectorCommands.push(`M${this.innerStart.x},${this.innerStart.y}`); // moveTo\r\n sectorCommands.push(`L${this.outerStart.x},${this.outerStart.y}`); // lineTo\r\n sectorCommands.push(`A${outer},${outer} 0 ${largeArc} 1 ${this.outerEnd.x},${this.outerEnd.y}`); // arcTo\r\n sectorCommands.push(`L${this.innerEnd.x},${this.innerEnd.y}`); // lineTo\r\n sectorCommands.push(`A${inner},${inner} 0 ${largeArc} 0 ${this.innerStart.x},${this.innerStart.y}`); // arcTo\r\n sectorCommands.push(`z`); // closePath\r\n\r\n this.path = sectorCommands.join(\" \");\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"Annulus.js","sourceRoot":"","sources":["../../../../src/core-react/radialmenu/Annulus.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,0CAAuC;AAEvC;;;GAGG;AACH,MAAa,IAAI;IAIf,YAAY,EAAU,EAAE,EAAU;QAKlC,0EAA0E;QACnE,WAAM,GAAG,CAAC,IAAU,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QALjF,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,IAAI,aAAK,EAAE,CAAC;QAC5B,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,IAAI,aAAK,EAAE,CAAC;IAC9B,CAAC;CAIF;AAXD,oBAWC;AAED;;GAEG;AACH,MAAa,MAAM;IAGjB,YAAY,MAAc,EAAE,MAAe;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,IAAI,IAAI,aAAK,EAAE,CAAC;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,IAAI,CAAC,CAAC;IAC5B,CAAC;CACF;AAPD,wBAOC;AAED;;GAEG;AACH,MAAa,OAAO;IAKlB,YAAY,MAAc,EAAE,WAAoB,EAAE,WAAoB;QACpE,IAAI,CAAC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AC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS;QACxE,cAAc,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,KAAK,MAAM,QAAQ,MAAM,IAAI,CAAC,UAAU,CAAC,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ;QAC7G,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,YAAY;QAEtC,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;CACF;AApDD,sCAoDC","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 RadialMenu\n */\n\nimport { Point } from \"../utils/Point\";\n\n/**\n * 2D Line consisting of a start point, and an end point\n * @internal\n */\nexport class Line {\n public p1: Point;\n public p2: Point;\n\n constructor(p1?: Point, p2?: Point) {\n this.p1 = p1 || new Point();\n this.p2 = p2 || new Point();\n }\n\n /** checks for equality with the components of this, and line parameter */\n public equals = (line: Line) => this.p1.equals(line.p1) && this.p2.equals(line.p2);\n}\n\n/** @internal\n * 2D Circle\n */\nexport class Circle {\n public center: Point;\n public radius: number;\n constructor(center?: Point, radius?: number) {\n this.center = center || new Point();\n this.radius = radius || 0;\n }\n}\n\n/** @internal\n * 2D Annulus (2D doughnut shape/flattened torus) defined by an inner and outer circle with a shared center point.\n */\nexport class Annulus {\n public center: Point;\n public inner: Circle;\n public outer: Circle;\n\n constructor(center?: Point, innerRadius?: number, outerRadius?: number) {\n this.center = center || new Point();\n\n this.inner = new Circle(center, innerRadius);\n this.outer = new Circle(center, outerRadius);\n }\n}\n\n/** @internal\n * 2D Sector of an Annulus, defined by both a parent annulus, a startAngle, and an endAngle.\n */\nexport class AnnularSector {\n public parent: Annulus;\n public startAngle: number;\n public endAngle: number;\n\n public path: string;\n\n public innerStart: Point;\n public outerStart: Point;\n public start: Line;\n public innerEnd: Point;\n public outerEnd: Point;\n public end: Line;\n\n /**\n * initialize AnnularSector on parent annulus, and generate SVG Path to store in this.path\n * @param parent parent annulus to initialize sector on.\n * @param startAngle angle to begin the annular sector on.\n * @param endAngle angle to end the annular sector on.\n */\n constructor(parent: Annulus, startAngle: number, endAngle: number) {\n this.parent = parent;\n this.startAngle = startAngle;\n this.endAngle = endAngle;\n\n // adapted from https://gist.github.com/buschtoens/4190516\n const { x: cx, y: cy } = parent.center;\n const inner = parent.inner.radius;\n const outer = parent.outer.radius;\n\n this.innerStart = new Point(cx + inner * Math.cos(startAngle), cy + inner * Math.sin(startAngle));\n this.outerStart = new Point(cx + outer * Math.cos(startAngle), cy + outer * Math.sin(startAngle));\n this.start = new Line(this.innerStart, this.outerStart);\n\n this.outerEnd = new Point(cx + outer * Math.cos(endAngle), cy + outer * Math.sin(endAngle));\n this.innerEnd = new Point(cx + inner * Math.cos(endAngle), cy + inner * Math.sin(endAngle));\n this.end = new Line(this.outerEnd, this.innerEnd);\n\n const angleDiff = endAngle - startAngle;\n const largeArc = (angleDiff % (Math.PI * 2)) > Math.PI ? /* istanbul ignore next */ 1 : 0;\n\n const sectorCommands = [];\n\n sectorCommands.push(`M${this.innerStart.x},${this.innerStart.y}`); // moveTo\n sectorCommands.push(`L${this.outerStart.x},${this.outerStart.y}`); // lineTo\n sectorCommands.push(`A${outer},${outer} 0 ${largeArc} 1 ${this.outerEnd.x},${this.outerEnd.y}`); // arcTo\n sectorCommands.push(`L${this.innerEnd.x},${this.innerEnd.y}`); // lineTo\n sectorCommands.push(`A${inner},${inner} 0 ${largeArc} 0 ${this.innerStart.x},${this.innerStart.y}`); // arcTo\n sectorCommands.push(`z`); // closePath\n\n this.path = sectorCommands.join(\" \");\n }\n}\n"]}
@@ -3,8 +3,8 @@
3
3
  */
4
4
  import "./RadialMenu.scss";
5
5
  import * as React from "react";
6
- import { IconSpec } from "../icons/IconComponent";
7
- import { CommonProps } from "../utils/Props";
6
+ import type { IconSpec } from "../icons/IconComponent";
7
+ import type { CommonProps } from "../utils/Props";
8
8
  import { AnnularSector } from "./Annulus";
9
9
  /** Properties for [[RadialMenu]]
10
10
  * @public
@@ -1 +1 @@
1
- {"version":3,"file":"RadialMenu.d.ts","sourceRoot":"","sources":["../../../../src/core-react/radialmenu/RadialMenu.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,mBAAmB,CAAC;AAE3B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAQ,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAW,MAAM,WAAW,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD,iCAAiC;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,4CAA4C;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,8DAA8D;IAC9D,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC;IAC7B,sCAAsC;IACtC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC;IAC5B,cAAc;IACd,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,gBAAgB;AAChB,UAAU,eAAe;IACvB,OAAO,EAAE,aAAa,EAAE,CAAC;CAC1B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,CAAC,IAAI,GAAG,CAAC;gBACX,IAAI,CAAC,GAAG,EAAE;oBACR,CAAC,IAAI,GAAG,CAAC;gBACX,IAAI,CAAC,GAAG,CAAC,EAAE;oBACT,CAAC,IAAI,GAAG,CAAC;gBACX,CAAC,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC;aACnC;SACF;QAED,OAAO,CACL,2BACE,WAAW,EAAE,IAAI,CAAC,gBAAgB,EAClC,UAAU,EAAE,IAAI,CAAC,eAAe,EAChC,OAAO,EAAE,IAAI,CAAC,YAAY;YAC1B,8BACE,SAAS,EAAE,IAAA,oBAAU,EAAC,yBAAyB,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,EACtG,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,CAAC,EAAE,IAAI,GACF;YACP,uCAAe,SAAS,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,6BAA6B;gBAC9H,gCAAS,EAAE,KAAK,EAAE,8BAA8B,EAAE,EAAE,SAAS,EAAE,mCAAmC;oBAChG,6BAAK,SAAS,EAAC,8BAA8B;wBAC3C,oBAAC,oBAAI,IAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,GAAI,CAC/B;oBACN,6BAAK,SAAS,EAAE,iCAAiC,IAC9C,IAAI,CAAC,KAAK,CAAC,QAAQ,CAChB,CACF,CACQ,CACd,CACL,CAAC;IACJ,CAAC;CAsBF;AArFD,oCAqFC","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 RadialMenu\r\n */\r\n\r\nimport \"./RadialMenu.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { SpecialKey } from \"@itwin/appui-abstract\";\r\nimport { Icon, IconSpec } from \"../icons/IconComponent\";\r\nimport { Point } from \"../utils/Point\";\r\nimport { CommonProps } from \"../utils/Props\";\r\nimport { AnnularSector, Annulus } from \"./Annulus\";\r\n\r\n/** Properties for [[RadialMenu]]\r\n * @public\r\n */\r\nexport interface RadialMenuProps extends CommonProps {\r\n /** Whether to show RadialMenu */\r\n opened: boolean;\r\n /** Radius of inner portion of RadialMenu */\r\n innerRadius: number;\r\n /** Radius of outer portion of RadialMenu */\r\n outerRadius: number;\r\n /** Optional parameter to specify left position in viewport. */\r\n left?: number | string;\r\n /** Optional parameter to specify top position in viewport. */\r\n top?: number | string;\r\n /** Whether to rotate labels according to location on the RadialMenu, or to keep labels upright.\r\n * Default: false\r\n */\r\n labelRotate?: boolean;\r\n /** Which child RadialButton to highlight */\r\n selected?: number;\r\n /** triggered in case of onClick events anywhere other than radial menu */\r\n onBlur?: (event: any) => any;\r\n /** triggered onKeyUp for <Esc> key */\r\n onEsc?: (event: any) => any;\r\n /** Content */\r\n children?: React.ReactNode;\r\n}\r\n\r\n/** @internal */\r\ninterface RadialMenuState {\r\n sectors: AnnularSector[];\r\n}\r\n\r\n/**\r\n * A context menu arranged in a radial layout.\r\n * @public\r\n */\r\nexport class RadialMenu extends React.Component<RadialMenuProps, RadialMenuState> {\r\n private _root: HTMLDivElement | null = null;\r\n private _selectedButton: RadialButton | null = null;\r\n public static defaultProps: Partial<RadialMenuProps> = {\r\n labelRotate: false,\r\n selected: -1,\r\n };\r\n\r\n /** @internal */\r\n public override readonly state: Readonly<RadialMenuState> = {\r\n sectors: [],\r\n };\r\n\r\n constructor(props: RadialMenuProps) {\r\n super(props);\r\n }\r\n\r\n public override render(): JSX.Element {\r\n const width = 2 * (this.props.outerRadius + 1);\r\n let x = this.props.left, y = this.props.top;\r\n\r\n if (this.props.left && this.props.top && typeof this.props.left === \"number\" && typeof this.props.top === \"number\") {\r\n x = this.props.left;\r\n y = this.props.top;\r\n\r\n if (x < 0)\r\n x = 0;\r\n if (x > window.innerWidth - width)\r\n x = window.innerWidth - width;\r\n if (y < 0)\r\n y = 0;\r\n if (y > window.innerHeight - width)\r\n y = window.innerHeight - width;\r\n }\r\n\r\n const divStyle: React.CSSProperties = { left: x, top: y, ...this.props.style };\r\n\r\n return (\r\n <div\r\n ref={(el) => { this._root = el; }}\r\n className={classnames(\"core-radial-menu\", { opened: this.props.opened }, this.props.className)}\r\n style={divStyle}\r\n data-testid=\"core-radial-menu\"\r\n >\r\n <svg\r\n xmlns=\"http://w3.org/2000/svg\" version=\"1.1\"\r\n width={width} height={width}\r\n className={\"core-radial-menu-container\"}>\r\n {React.Children.map(this.props.children, (child, index) => {\r\n // istanbul ignore next\r\n if (!child || typeof child !== \"object\" || !(\"props\" in child))\r\n return child;\r\n\r\n const childElement = (child as React.ReactElement<any>);\r\n return React.cloneElement(childElement, {\r\n key: index,\r\n ref: (el: any) => {\r\n if (this.props.selected === index)\r\n this._selectedButton = el;\r\n },\r\n selected: index === this.props.selected,\r\n labelRotate: childElement.props.labelRotate || this.props.labelRotate,\r\n annularSector: this.state.sectors[index],\r\n });\r\n })}\r\n </svg>\r\n </div>\r\n );\r\n }\r\n\r\n public override componentDidMount() {\r\n this._generateAnnularSectors();\r\n\r\n setTimeout(() => {\r\n window.addEventListener(\"keyup\", this._handleKeyUp);\r\n window.addEventListener(\"mouseup\", this._handleClick);\r\n });\r\n }\r\n\r\n public override componentWillUnmount() {\r\n window.removeEventListener(\"keyup\", this._handleKeyUp);\r\n window.removeEventListener(\"mouseup\", this._handleClick);\r\n }\r\n\r\n public override componentDidUpdate(prevProps: RadialMenuProps) {\r\n if (prevProps.innerRadius !== this.props.innerRadius || prevProps.outerRadius !== this.props.outerRadius) {\r\n this._generateAnnularSectors();\r\n }\r\n }\r\n\r\n private _handleKeyUp = (event: KeyboardEvent) => {\r\n if (event.key === SpecialKey.Escape && this.props.onEsc)\r\n this.props.onEsc(event);\r\n };\r\n\r\n private _handleClick = (event: MouseEvent) => {\r\n if (event.target instanceof HTMLElement && this._root && !event.target.contains(this._root) && this.props.onBlur)\r\n this.props.onBlur(event);\r\n };\r\n\r\n /** Manually call onSelect of highlighted button. */\r\n public select = () => {\r\n // istanbul ignore else\r\n if (this._selectedButton)\r\n this._selectedButton.select();\r\n };\r\n\r\n private _generateAnnularSectors = () => {\r\n const n = React.Children.count(this.props.children);\r\n const angle = 2 * Math.PI / n;\r\n const outer = this.props.outerRadius;\r\n const inner = this.props.innerRadius;\r\n\r\n const offset = - Math.PI / 8;\r\n const annulus = new Annulus(new Point(outer + 1, outer + 1), inner + 1, outer - 1);\r\n const sectors: AnnularSector[] = [];\r\n for (let i = 0; i < n; i++) {\r\n sectors.push(new AnnularSector(annulus, angle * i + offset, angle * (i + 1) + offset));\r\n }\r\n this.setState({ sectors });\r\n };\r\n}\r\n\r\n/** Properties for [[RadialButton]] component\r\n * @public\r\n */\r\nexport interface RadialButtonProps extends CommonProps {\r\n /** Whether label is rotated to radial menu. Default: Inherit */\r\n labelRotate?: boolean;\r\n /** which icon to display in on the menu button */\r\n icon?: IconSpec;\r\n /** @internal */\r\n annularSector?: AnnularSector;\r\n /** listens to any onClick event, or any select event, which can be triggered by the select() method. */\r\n onSelect?: (e: any) => any;\r\n /** Whether item is highlighted */\r\n selected?: boolean;\r\n /** Content */\r\n children?: React.ReactNode;\r\n}\r\n\r\n/** @internal */\r\ninterface RadialButtonState {\r\n hover: boolean;\r\n}\r\n\r\n/**\r\n * Button for use within a [[RadialMenu]]\r\n * @public\r\n */\r\nexport class RadialButton extends React.Component<RadialButtonProps, RadialButtonState> {\r\n\r\n /** @internal */\r\n public override readonly state: Readonly<RadialButtonState> = { hover: this.props.selected || false };\r\n\r\n constructor(props: RadialButtonProps) {\r\n super(props);\r\n }\r\n\r\n public override render(): JSX.Element {\r\n const sector = this.props.annularSector;\r\n let p = new Point();\r\n let size = 0;\r\n let t = \"\";\r\n let path = \"\";\r\n\r\n if (sector) {\r\n size = sector.start.p1.getDistanceTo(sector.end.p2) * 2;\r\n path = sector.path;\r\n\r\n const parent = sector.parent;\r\n const { x: cx, y: cy } = parent.center;\r\n const r = (parent.inner.radius + parent.outer.radius) / 2;\r\n const angle = (sector.startAngle + sector.endAngle) / 2;\r\n p = new Point(cx + r * Math.cos(angle), cy + r * Math.sin(angle));\r\n\r\n if (this.props.labelRotate) {\r\n let a = angle * 180 / Math.PI + 90;\r\n while (a > 180)\r\n a -= 360;\r\n while (a < -180)\r\n /* istanbul ignore next */\r\n a += 360;\r\n if (a > 90)\r\n a -= 180;\r\n if (a < -90)\r\n a += 180;\r\n t = `rotate(${a} ${p.x}, ${p.y})`;\r\n }\r\n }\r\n\r\n return (\r\n <g\r\n onMouseOver={this._handleMouseOver}\r\n onMouseOut={this._handleMouseOut}\r\n onClick={this._handleClick}>\r\n <path\r\n className={classnames(\"core-radial-menu-sector\", { selected: this.state.hover }, this.props.className)}\r\n style={this.props.style}\r\n d={path}>\r\n </path>\r\n <foreignObject transform={t} x={p.x - size / 2} y={p.y - 16} width={size} height={size} className={\"core-radial-menu-button-svg\"}>\r\n <div {...{ xmlns: \"http://www.w3.org/1999/xhtml\" }} className={\"core-radial-menu-button-container\"}>\r\n <div className=\"core-radial-menu-button-icon\">\r\n <Icon iconSpec={this.props.icon} />\r\n </div>\r\n <div className={\"core-radial-menu-button-content\"}>\r\n {this.props.children}\r\n </div>\r\n </div>\r\n </foreignObject>\r\n </g>\r\n );\r\n }\r\n\r\n /** Manually call this.props.onSelect */\r\n public select = () => {\r\n // istanbul ignore else\r\n if (this.props.onSelect)\r\n this.props.onSelect(undefined);\r\n };\r\n\r\n private _handleClick = (event: React.MouseEvent<SVGElement>) => {\r\n // istanbul ignore else\r\n if (this.props.onSelect)\r\n this.props.onSelect(event);\r\n };\r\n\r\n private _handleMouseOver = (_event: React.MouseEvent<SVGElement>) => {\r\n this.setState({ hover: true });\r\n };\r\n\r\n private _handleMouseOut = (_event: React.MouseEvent<SVGElement>) => {\r\n this.setState({ hover: false });\r\n };\r\n}\r\n"]}
1
+ {"version":3,"file":"RadialMenu.js","sourceRoot":"","sources":["../../../../src/core-react/radialmenu/RadialMenu.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,6BAA2B;AAC3B,2CAAoC;AACpC,+BAA+B;AAC/B,0DAAmD;AAEnD,0DAA8C;AAC9C,0CAAuC;AAEvC,uCAAmD;AAmCnD;;;GAGG;AACH,MAAa,UAAW,SAAQ,KAAK,CAAC,SAA2C;IAa/E,YAAY,KAAsB;QAChC,KAAK,CAAC,KAAK,CAAC,CAAC;QAbP,UAAK,GAA0B,IAAI,CAAC;QACpC,oBAAe,GAAwB,IAAI,CAAC;QAMpD,gBAAgB;QACS,UAAK,GAA8B;YAC1D,OAAO,EAAE,EAAE;SACZ,CAAC;QA+EM,iBAAY,GAAG,CAAC,KAAoB,EAAE,EAAE;YAC9C,IAAI,KAAK,CAAC,GAAG,KAAK,2BAAU,CAAC,MAAM,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK;gBACrD,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC5B,CAAC,CAAC;QAEM,iBAAY,GAAG,CAAC,KAAiB,EAAE,EAAE;YAC3C,IAAI,KAAK,CAAC,MAAM,YAAY,WAAW,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM;gBAC9G,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC7B,CAAC,CAAC;QAEF,oDAAo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------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module RadialMenu\n */\n\nimport \"./RadialMenu.scss\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport { SpecialKey } from \"@itwin/appui-abstract\";\nimport type { IconSpec } from \"../icons/IconComponent\";\nimport { Icon } from \"../icons/IconComponent\";\nimport { Point } from \"../utils/Point\";\nimport type { CommonProps } from \"../utils/Props\";\nimport { AnnularSector, Annulus } from \"./Annulus\";\n\n/** Properties for [[RadialMenu]]\n * @public\n */\nexport interface RadialMenuProps extends CommonProps {\n /** Whether to show RadialMenu */\n opened: boolean;\n /** Radius of inner portion of RadialMenu */\n innerRadius: number;\n /** Radius of outer portion of RadialMenu */\n outerRadius: number;\n /** Optional parameter to specify left position in viewport. */\n left?: number | string;\n /** Optional parameter to specify top position in viewport. */\n top?: number | string;\n /** Whether to rotate labels according to location on the RadialMenu, or to keep labels upright.\n * Default: false\n */\n labelRotate?: boolean;\n /** Which child RadialButton to highlight */\n selected?: number;\n /** triggered in case of onClick events anywhere other than radial menu */\n onBlur?: (event: any) => any;\n /** triggered onKeyUp for <Esc> key */\n onEsc?: (event: any) => any;\n /** Content */\n children?: React.ReactNode;\n}\n\n/** @internal */\ninterface RadialMenuState {\n sectors: AnnularSector[];\n}\n\n/**\n * A context menu arranged in a radial layout.\n * @public\n */\nexport class RadialMenu extends React.Component<RadialMenuProps, RadialMenuState> {\n private _root: HTMLDivElement | null = null;\n private _selectedButton: RadialButton | null = null;\n public static defaultProps: Partial<RadialMenuProps> = {\n labelRotate: false,\n selected: -1,\n };\n\n /** @internal */\n public override readonly state: Readonly<RadialMenuState> = {\n sectors: [],\n };\n\n constructor(props: RadialMenuProps) {\n super(props);\n }\n\n public override render(): JSX.Element {\n const width = 2 * (this.props.outerRadius + 1);\n let x = this.props.left, y = this.props.top;\n\n if (this.props.left && this.props.top && typeof this.props.left === \"number\" && typeof this.props.top === \"number\") {\n x = this.props.left;\n y = this.props.top;\n\n if (x < 0)\n x = 0;\n if (x > window.innerWidth - width)\n x = window.innerWidth - width;\n if (y < 0)\n y = 0;\n if (y > window.innerHeight - width)\n y = window.innerHeight - width;\n }\n\n const divStyle: React.CSSProperties = { left: x, top: y, ...this.props.style };\n\n return (\n <div\n ref={(el) => { this._root = el; }}\n className={classnames(\"core-radial-menu\", { opened: this.props.opened }, this.props.className)}\n style={divStyle}\n data-testid=\"core-radial-menu\"\n >\n <svg\n xmlns=\"http://w3.org/2000/svg\" version=\"1.1\"\n width={width} height={width}\n className={\"core-radial-menu-container\"}>\n {React.Children.map(this.props.children, (child, index) => {\n // istanbul ignore next\n if (!child || typeof child !== \"object\" || !(\"props\" in child))\n return child;\n\n const childElement = (child as React.ReactElement<any>);\n return React.cloneElement(childElement, {\n key: index,\n ref: (el: any) => {\n if (this.props.selected === index)\n this._selectedButton = el;\n },\n selected: index === this.props.selected,\n labelRotate: childElement.props.labelRotate || this.props.labelRotate,\n annularSector: this.state.sectors[index],\n });\n })}\n </svg>\n </div>\n );\n }\n\n public override componentDidMount() {\n this._generateAnnularSectors();\n\n setTimeout(() => {\n window.addEventListener(\"keyup\", this._handleKeyUp);\n window.addEventListener(\"mouseup\", this._handleClick);\n });\n }\n\n public override componentWillUnmount() {\n window.removeEventListener(\"keyup\", this._handleKeyUp);\n window.removeEventListener(\"mouseup\", this._handleClick);\n }\n\n public override componentDidUpdate(prevProps: RadialMenuProps) {\n if (prevProps.innerRadius !== this.props.innerRadius || prevProps.outerRadius !== this.props.outerRadius) {\n this._generateAnnularSectors();\n }\n }\n\n private _handleKeyUp = (event: KeyboardEvent) => {\n if (event.key === SpecialKey.Escape && this.props.onEsc)\n this.props.onEsc(event);\n };\n\n private _handleClick = (event: MouseEvent) => {\n if (event.target instanceof HTMLElement && this._root && !event.target.contains(this._root) && this.props.onBlur)\n this.props.onBlur(event);\n };\n\n /** Manually call onSelect of highlighted button. */\n public select = () => {\n // istanbul ignore else\n if (this._selectedButton)\n this._selectedButton.select();\n };\n\n private _generateAnnularSectors = () => {\n const n = React.Children.count(this.props.children);\n const angle = 2 * Math.PI / n;\n const outer = this.props.outerRadius;\n const inner = this.props.innerRadius;\n\n const offset = - Math.PI / 8;\n const annulus = new Annulus(new Point(outer + 1, outer + 1), inner + 1, outer - 1);\n const sectors: AnnularSector[] = [];\n for (let i = 0; i < n; i++) {\n sectors.push(new AnnularSector(annulus, angle * i + offset, angle * (i + 1) + offset));\n }\n this.setState({ sectors });\n };\n}\n\n/** Properties for [[RadialButton]] component\n * @public\n */\nexport interface RadialButtonProps extends CommonProps {\n /** Whether label is rotated to radial menu. Default: Inherit */\n labelRotate?: boolean;\n /** which icon to display in on the menu button */\n icon?: IconSpec;\n /** @internal */\n annularSector?: AnnularSector;\n /** listens to any onClick event, or any select event, which can be triggered by the select() method. */\n onSelect?: (e: any) => any;\n /** Whether item is highlighted */\n selected?: boolean;\n /** Content */\n children?: React.ReactNode;\n}\n\n/** @internal */\ninterface RadialButtonState {\n hover: boolean;\n}\n\n/**\n * Button for use within a [[RadialMenu]]\n * @public\n */\nexport class RadialButton extends React.Component<RadialButtonProps, RadialButtonState> {\n\n /** @internal */\n public override readonly state: Readonly<RadialButtonState> = { hover: this.props.selected || false };\n\n constructor(props: RadialButtonProps) {\n super(props);\n }\n\n public override render(): JSX.Element {\n const sector = this.props.annularSector;\n let p = new Point();\n let size = 0;\n let t = \"\";\n let path = \"\";\n\n if (sector) {\n size = sector.start.p1.getDistanceTo(sector.end.p2) * 2;\n path = sector.path;\n\n const parent = sector.parent;\n const { x: cx, y: cy } = parent.center;\n const r = (parent.inner.radius + parent.outer.radius) / 2;\n const angle = (sector.startAngle + sector.endAngle) / 2;\n p = new Point(cx + r * Math.cos(angle), cy + r * Math.sin(angle));\n\n if (this.props.labelRotate) {\n let a = angle * 180 / Math.PI + 90;\n while (a > 180)\n a -= 360;\n while (a < -180)\n /* istanbul ignore next */\n a += 360;\n if (a > 90)\n a -= 180;\n if (a < -90)\n a += 180;\n t = `rotate(${a} ${p.x}, ${p.y})`;\n }\n }\n\n return (\n <g\n onMouseOver={this._handleMouseOver}\n onMouseOut={this._handleMouseOut}\n onClick={this._handleClick}>\n <path\n className={classnames(\"core-radial-menu-sector\", { selected: this.state.hover }, this.props.className)}\n style={this.props.style}\n d={path}>\n </path>\n <foreignObject transform={t} x={p.x - size / 2} y={p.y - 16} width={size} height={size} className={\"core-radial-menu-button-svg\"}>\n <div {...{ xmlns: \"http://www.w3.org/1999/xhtml\" }} className={\"core-radial-menu-button-container\"}>\n <div className=\"core-radial-menu-button-icon\">\n <Icon iconSpec={this.props.icon} />\n </div>\n <div className={\"core-radial-menu-button-content\"}>\n {this.props.children}\n </div>\n </div>\n </foreignObject>\n </g>\n );\n }\n\n /** Manually call this.props.onSelect */\n public select = () => {\n // istanbul ignore else\n if (this.props.onSelect)\n this.props.onSelect(undefined);\n };\n\n private _handleClick = (event: React.MouseEvent<SVGElement>) => {\n // istanbul ignore else\n if (this.props.onSelect)\n this.props.onSelect(event);\n };\n\n private _handleMouseOver = (_event: React.MouseEvent<SVGElement>) => {\n this.setState({ hover: true });\n };\n\n private _handleMouseOut = (_event: React.MouseEvent<SVGElement>) => {\n this.setState({ hover: false });\n };\n}\n"]}