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

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 (657) hide show
  1. package/CHANGELOG.md +144 -7
  2. package/ContributeGuidelines.md +17 -14
  3. package/LICENSE.md +1 -1
  4. package/README.md +2 -2
  5. package/lib/cjs/core-react/UiCore.js +1 -1
  6. package/lib/cjs/core-react/UiCore.js.map +1 -1
  7. package/lib/cjs/core-react/_geometry.scss +70 -70
  8. package/lib/cjs/core-react/_helpers.scss +51 -51
  9. package/lib/cjs/core-react/_math.scss +13 -13
  10. package/lib/cjs/core-react/_scrollbar.scss +51 -51
  11. package/lib/cjs/core-react/_typography.scss +44 -44
  12. package/lib/cjs/core-react/_z-index.scss +65 -65
  13. package/lib/cjs/core-react/autosuggest/AutoSuggest.d.ts +2 -2
  14. package/lib/cjs/core-react/autosuggest/AutoSuggest.d.ts.map +1 -1
  15. package/lib/cjs/core-react/autosuggest/AutoSuggest.js +1 -1
  16. package/lib/cjs/core-react/autosuggest/AutoSuggest.js.map +1 -1
  17. package/lib/cjs/core-react/autosuggest/AutoSuggest.scss +79 -82
  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.js.map +1 -1
  21. package/lib/cjs/core-react/badge/BetaBadge.d.ts +0 -1
  22. package/lib/cjs/core-react/badge/BetaBadge.d.ts.map +1 -1
  23. package/lib/cjs/core-react/badge/BetaBadge.js +0 -1
  24. package/lib/cjs/core-react/badge/BetaBadge.js.map +1 -1
  25. package/lib/cjs/core-react/badge/NewBadge.js.map +1 -1
  26. package/lib/cjs/core-react/badge/NewBadge.scss +9 -9
  27. package/lib/cjs/core-react/base/Centered.js.map +1 -1
  28. package/lib/cjs/core-react/base/Div.js.map +1 -1
  29. package/lib/cjs/core-react/base/DivWithOutsideClick.js.map +1 -1
  30. package/lib/cjs/core-react/base/FillCentered.js.map +1 -1
  31. package/lib/cjs/core-react/base/FlexWrapContainer.js.map +1 -1
  32. package/lib/cjs/core-react/base/Gap.js +1 -1
  33. package/lib/cjs/core-react/base/Gap.js.map +1 -1
  34. package/lib/cjs/core-react/base/PointerEvents.js.map +1 -1
  35. package/lib/cjs/core-react/base/ScrollView.js.map +1 -1
  36. package/lib/cjs/core-react/base/base.scss +42 -42
  37. package/lib/cjs/core-react/base/classes.scss +13 -13
  38. package/lib/cjs/core-react/base/index.scss +5 -5
  39. package/lib/cjs/core-react/button/UnderlinedButton.js.map +1 -1
  40. package/lib/cjs/core-react/button/UnderlinedButton.scss +32 -32
  41. package/lib/cjs/core-react/checklistbox/CheckListBox.js.map +1 -1
  42. package/lib/cjs/core-react/checklistbox/CheckListBox.scss +21 -22
  43. package/lib/cjs/core-react/classes.scss +11 -14
  44. package/lib/cjs/core-react/colorthemes.scss +61 -90
  45. package/lib/cjs/core-react/colorvariables.scss +131 -154
  46. package/lib/cjs/core-react/contextmenu/ContextMenu.d.ts +1 -1
  47. package/lib/cjs/core-react/contextmenu/ContextMenu.d.ts.map +1 -1
  48. package/lib/cjs/core-react/contextmenu/ContextMenu.js +2 -3
  49. package/lib/cjs/core-react/contextmenu/ContextMenu.js.map +1 -1
  50. package/lib/cjs/core-react/contextmenu/ContextMenu.scss +236 -237
  51. package/lib/cjs/core-react/contextmenu/ContextMenuDirection.js.map +1 -1
  52. package/lib/cjs/core-react/contextmenu/ContextMenuDivider.js.map +1 -1
  53. package/lib/cjs/core-react/contextmenu/ContextMenuItem.js +1 -1
  54. package/lib/cjs/core-react/contextmenu/ContextMenuItem.js.map +1 -1
  55. package/lib/cjs/core-react/contextmenu/ContextSubMenu.d.ts +1 -1
  56. package/lib/cjs/core-react/contextmenu/ContextSubMenu.d.ts.map +1 -1
  57. package/lib/cjs/core-react/contextmenu/ContextSubMenu.js +5 -2
  58. package/lib/cjs/core-react/contextmenu/ContextSubMenu.js.map +1 -1
  59. package/lib/cjs/core-react/contextmenu/GlobalContextMenu.d.ts.map +1 -1
  60. package/lib/cjs/core-react/contextmenu/GlobalContextMenu.js +6 -4
  61. package/lib/cjs/core-react/contextmenu/GlobalContextMenu.js.map +1 -1
  62. package/lib/cjs/core-react/contextmenu/PopupContextMenu.js.map +1 -1
  63. package/lib/cjs/core-react/contextmenu/TildeFinder.js +1 -1
  64. package/lib/cjs/core-react/contextmenu/TildeFinder.js.map +1 -1
  65. package/lib/cjs/core-react/dialog/Dialog.d.ts.map +1 -1
  66. package/lib/cjs/core-react/dialog/Dialog.js +18 -10
  67. package/lib/cjs/core-react/dialog/Dialog.js.map +1 -1
  68. package/lib/cjs/core-react/dialog/Dialog.scss +245 -244
  69. package/lib/cjs/core-react/dialog/GlobalDialog.js +1 -2
  70. package/lib/cjs/core-react/dialog/GlobalDialog.js.map +1 -1
  71. package/lib/cjs/core-react/elementseparator/ElementSeparator.js +2 -2
  72. package/lib/cjs/core-react/elementseparator/ElementSeparator.js.map +1 -1
  73. package/lib/cjs/core-react/elementseparator/ElementSeparator.scss +85 -85
  74. package/lib/cjs/core-react/enums/Alignment.js.map +1 -1
  75. package/lib/cjs/core-react/enums/CheckBoxState.js.map +1 -1
  76. package/lib/cjs/core-react/enums/Orientation.js.map +1 -1
  77. package/lib/cjs/core-react/enums/SortDirection.js.map +1 -1
  78. package/lib/cjs/core-react/enums/TimeFormat.js.map +1 -1
  79. package/lib/cjs/core-react/expandable/ExpandableList.js +1 -1
  80. package/lib/cjs/core-react/expandable/ExpandableList.js.map +1 -1
  81. package/lib/cjs/core-react/expandable/ExpandableList.scss +8 -8
  82. package/lib/cjs/core-react/expandable/classes.scss +7 -7
  83. package/lib/cjs/core-react/expandable/index.scss +5 -5
  84. package/lib/cjs/core-react/expandable/list.scss +35 -35
  85. package/lib/cjs/core-react/focus/ItemKeyboardNavigator.d.ts +1 -1
  86. package/lib/cjs/core-react/focus/ItemKeyboardNavigator.d.ts.map +1 -1
  87. package/lib/cjs/core-react/focus/ItemKeyboardNavigator.js.map +1 -1
  88. package/lib/cjs/core-react/focustrap/FocusTrap.js.map +1 -1
  89. package/lib/cjs/core-react/hocs/withIsPressed.js.map +1 -1
  90. package/lib/cjs/core-react/hocs/withOnOutsideClick.js +1 -2
  91. package/lib/cjs/core-react/hocs/withOnOutsideClick.js.map +1 -1
  92. package/lib/cjs/core-react/hocs/withTimeout.js.map +1 -1
  93. package/lib/cjs/core-react/icons/ConditionalIconItem.d.ts +27 -0
  94. package/lib/cjs/core-react/icons/ConditionalIconItem.d.ts.map +1 -0
  95. package/lib/cjs/core-react/icons/ConditionalIconItem.js +65 -0
  96. package/lib/cjs/core-react/icons/ConditionalIconItem.js.map +1 -0
  97. package/lib/cjs/core-react/icons/IconComponent.d.ts +3 -2
  98. package/lib/cjs/core-react/icons/IconComponent.d.ts.map +1 -1
  99. package/lib/cjs/core-react/icons/IconComponent.js +1 -7
  100. package/lib/cjs/core-react/icons/IconComponent.js.map +1 -1
  101. package/lib/cjs/core-react/icons/IconComponent.scss +20 -20
  102. package/lib/cjs/core-react/icons/SvgPath.d.ts +1 -1
  103. package/lib/cjs/core-react/icons/SvgPath.d.ts.map +1 -1
  104. package/lib/cjs/core-react/icons/SvgPath.js +2 -2
  105. package/lib/cjs/core-react/icons/SvgPath.js.map +1 -1
  106. package/lib/cjs/core-react/icons/{SvgSprite.scss → SvgPath.scss} +15 -15
  107. package/lib/cjs/core-react/icons/WebFontIcon.d.ts +0 -1
  108. package/lib/cjs/core-react/icons/WebFontIcon.d.ts.map +1 -1
  109. package/lib/cjs/core-react/icons/WebFontIcon.js +0 -1
  110. package/lib/cjs/core-react/icons/WebFontIcon.js.map +1 -1
  111. package/lib/cjs/core-react/icons/WebFontIcon.scss +17 -17
  112. package/lib/cjs/core-react/icons/classes.scss +10 -10
  113. package/lib/cjs/core-react/icons/index.scss +6 -6
  114. package/lib/cjs/core-react/icons/mixins.scss +25 -25
  115. package/lib/cjs/core-react/icons/variables.scss +12 -21
  116. package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.js.map +1 -1
  117. package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.scss +54 -54
  118. package/lib/cjs/core-react/index.scss +21 -23
  119. package/lib/cjs/core-react/inputs/Input.js.map +1 -1
  120. package/lib/cjs/core-react/inputs/InputLabel.d.ts.map +1 -1
  121. package/lib/cjs/core-react/inputs/InputLabel.js +9 -1
  122. package/lib/cjs/core-react/inputs/InputLabel.js.map +1 -1
  123. package/lib/cjs/core-react/inputs/InputStatus.js.map +1 -1
  124. package/lib/cjs/core-react/inputs/LabeledComponentProps.js.map +1 -1
  125. package/lib/cjs/core-react/inputs/classes.scss +8 -8
  126. package/lib/cjs/core-react/inputs/iconinput/IconInput.js.map +1 -1
  127. package/lib/cjs/core-react/inputs/iconinput/IconInput.scss +35 -35
  128. package/lib/cjs/core-react/inputs/index.scss +9 -9
  129. package/lib/cjs/core-react/inputs/input-label.scss +90 -90
  130. package/lib/cjs/core-react/inputs/input.scss +58 -58
  131. package/lib/cjs/core-react/inputs/numberinput/NumberInput.d.ts +6 -1
  132. package/lib/cjs/core-react/inputs/numberinput/NumberInput.d.ts.map +1 -1
  133. package/lib/cjs/core-react/inputs/numberinput/NumberInput.js +13 -8
  134. package/lib/cjs/core-react/inputs/numberinput/NumberInput.js.map +1 -1
  135. package/lib/cjs/core-react/inputs/numberinput/NumberInput.scss +88 -89
  136. package/lib/cjs/core-react/inputs/variables.scss +38 -38
  137. package/lib/cjs/core-react/layout-variables.scss +17 -17
  138. package/lib/cjs/core-react/listbox/Listbox.d.ts +1 -1
  139. package/lib/cjs/core-react/listbox/Listbox.d.ts.map +1 -1
  140. package/lib/cjs/core-react/listbox/Listbox.js +2 -3
  141. package/lib/cjs/core-react/listbox/Listbox.js.map +1 -1
  142. package/lib/cjs/core-react/listbox/Listbox.scss +54 -54
  143. package/lib/cjs/core-react/loading/LoadingBar.js +1 -1
  144. package/lib/cjs/core-react/loading/LoadingBar.js.map +1 -1
  145. package/lib/cjs/core-react/loading/LoadingBar.scss +29 -29
  146. package/lib/cjs/core-react/loading/LoadingPrompt.js +1 -1
  147. package/lib/cjs/core-react/loading/LoadingPrompt.js.map +1 -1
  148. package/lib/cjs/core-react/loading/LoadingPrompt.scss +33 -33
  149. package/lib/cjs/core-react/loading/LoadingSpinner.d.ts +1 -1
  150. package/lib/cjs/core-react/loading/LoadingSpinner.d.ts.map +1 -1
  151. package/lib/cjs/core-react/loading/LoadingSpinner.js +1 -1
  152. package/lib/cjs/core-react/loading/LoadingSpinner.js.map +1 -1
  153. package/lib/cjs/core-react/loading/LoadingSpinner.scss +26 -26
  154. package/lib/cjs/core-react/loading/LoadingStatus.js +1 -1
  155. package/lib/cjs/core-react/loading/LoadingStatus.js.map +1 -1
  156. package/lib/cjs/core-react/loading/LoadingStatus.scss +20 -20
  157. package/lib/cjs/core-react/loading/index.scss +5 -5
  158. package/lib/cjs/core-react/loading/mixins.scss +57 -57
  159. package/lib/cjs/core-react/messagebox/MessageBox.d.ts +13 -1
  160. package/lib/cjs/core-react/messagebox/MessageBox.d.ts.map +1 -1
  161. package/lib/cjs/core-react/messagebox/MessageBox.js +55 -11
  162. package/lib/cjs/core-react/messagebox/MessageBox.js.map +1 -1
  163. package/lib/cjs/core-react/messagebox/MessageBox.scss +56 -46
  164. package/lib/cjs/core-react/notification/MessageRenderer.js +1 -1
  165. package/lib/cjs/core-react/notification/MessageRenderer.js.map +1 -1
  166. package/lib/cjs/core-react/notification/MessageType.d.ts +1 -1
  167. package/lib/cjs/core-react/notification/MessageType.d.ts.map +1 -1
  168. package/lib/cjs/core-react/notification/MessageType.js.map +1 -1
  169. package/lib/cjs/core-react/popup/Popup.d.ts.map +1 -1
  170. package/lib/cjs/core-react/popup/Popup.js +7 -8
  171. package/lib/cjs/core-react/popup/Popup.js.map +1 -1
  172. package/lib/cjs/core-react/popup/Popup.scss +240 -240
  173. package/lib/cjs/core-react/radialmenu/Annulus.js.map +1 -1
  174. package/lib/cjs/core-react/radialmenu/RadialMenu.js +1 -1
  175. package/lib/cjs/core-react/radialmenu/RadialMenu.js.map +1 -1
  176. package/lib/cjs/core-react/radialmenu/RadialMenu.scss +55 -55
  177. package/lib/cjs/core-react/searchbox/SearchBox.d.ts.map +1 -1
  178. package/lib/cjs/core-react/searchbox/SearchBox.js +8 -6
  179. package/lib/cjs/core-react/searchbox/SearchBox.js.map +1 -1
  180. package/lib/cjs/core-react/searchbox/SearchBox.scss +47 -51
  181. package/lib/cjs/core-react/settings/SettingsContainer.js +1 -1
  182. package/lib/cjs/core-react/settings/SettingsContainer.js.map +1 -1
  183. package/lib/cjs/core-react/settings/SettingsContainer.scss +68 -66
  184. package/lib/cjs/core-react/settings/SettingsManager.js.map +1 -1
  185. package/lib/cjs/core-react/style/baseline.scss +11 -11
  186. package/lib/cjs/core-react/style/breakpoints.scss +41 -41
  187. package/lib/cjs/core-react/style/colors.scss +77 -77
  188. package/lib/cjs/core-react/style/index.scss +10 -17
  189. package/lib/cjs/core-react/style/mixins.scss +27 -27
  190. package/lib/cjs/core-react/style/opacity.scss +16 -16
  191. package/lib/cjs/core-react/style/themecolors.scss +123 -129
  192. package/lib/cjs/core-react/tabs/Tabs.js.map +1 -1
  193. package/lib/cjs/core-react/tabs/VerticalTabs.js.map +1 -1
  194. package/lib/cjs/core-react/tabs/classes.scss +7 -7
  195. package/lib/cjs/core-react/tabs/index.scss +5 -5
  196. package/lib/cjs/core-react/tabs/tabs.scss +96 -106
  197. package/lib/cjs/core-react/tabs/vertical.scss +51 -58
  198. package/lib/cjs/core-react/text/BlockText.d.ts.map +1 -1
  199. package/lib/cjs/core-react/text/BlockText.js +1 -0
  200. package/lib/cjs/core-react/text/BlockText.js.map +1 -1
  201. package/lib/cjs/core-react/text/BodyText.d.ts +1 -0
  202. package/lib/cjs/core-react/text/BodyText.d.ts.map +1 -1
  203. package/lib/cjs/core-react/text/BodyText.js +2 -0
  204. package/lib/cjs/core-react/text/BodyText.js.map +1 -1
  205. package/lib/cjs/core-react/text/DisabledText.d.ts.map +1 -1
  206. package/lib/cjs/core-react/text/DisabledText.js +1 -0
  207. package/lib/cjs/core-react/text/DisabledText.js.map +1 -1
  208. package/lib/cjs/core-react/text/FilteredText.js +3 -3
  209. package/lib/cjs/core-react/text/FilteredText.js.map +1 -1
  210. package/lib/cjs/core-react/text/FilteredText.scss +10 -10
  211. package/lib/cjs/core-react/text/MutedText.d.ts +1 -0
  212. package/lib/cjs/core-react/text/MutedText.d.ts.map +1 -1
  213. package/lib/cjs/core-react/text/MutedText.js +2 -0
  214. package/lib/cjs/core-react/text/MutedText.js.map +1 -1
  215. package/lib/cjs/core-react/text/StyledText.d.ts +1 -0
  216. package/lib/cjs/core-react/text/StyledText.d.ts.map +1 -1
  217. package/lib/cjs/core-react/text/StyledText.js +1 -0
  218. package/lib/cjs/core-react/text/StyledText.js.map +1 -1
  219. package/lib/cjs/core-react/text/TextProps.js.map +1 -1
  220. package/lib/cjs/core-react/text/block.scss +15 -10
  221. package/lib/cjs/core-react/text/body.scss +13 -10
  222. package/lib/cjs/core-react/text/classes.scss +10 -10
  223. package/lib/cjs/core-react/text/disabled.scss +10 -10
  224. package/lib/cjs/core-react/text/index.scss +10 -10
  225. package/lib/cjs/core-react/text/mixins.scss +24 -24
  226. package/lib/cjs/core-react/text/muted.scss +10 -10
  227. package/lib/cjs/core-react/tree/Branch.js.map +1 -1
  228. package/lib/cjs/core-react/tree/Branch.scss +12 -12
  229. package/lib/cjs/core-react/tree/ExpansionToggle.d.ts.map +1 -1
  230. package/lib/cjs/core-react/tree/ExpansionToggle.js +3 -1
  231. package/lib/cjs/core-react/tree/ExpansionToggle.js.map +1 -1
  232. package/lib/cjs/core-react/tree/ExpansionToggle.scss +32 -28
  233. package/lib/cjs/core-react/tree/Node.d.ts +2 -2
  234. package/lib/cjs/core-react/tree/Node.d.ts.map +1 -1
  235. package/lib/cjs/core-react/tree/Node.js +2 -3
  236. package/lib/cjs/core-react/tree/Node.js.map +1 -1
  237. package/lib/cjs/core-react/tree/Node.scss +68 -84
  238. package/lib/cjs/core-react/tree/Placeholder.js.map +1 -1
  239. package/lib/cjs/core-react/tree/Placeholder.scss +17 -20
  240. package/lib/cjs/core-react/tree/Tree.js.map +1 -1
  241. package/lib/cjs/core-react/tree/Tree.scss +21 -21
  242. package/lib/cjs/core-react/uistate/LocalStateStorage.js.map +1 -1
  243. package/lib/cjs/core-react/uistate/UiStateEntry.js.map +1 -1
  244. package/lib/cjs/core-react/uistate/UiStateStorage.js.map +1 -1
  245. package/lib/cjs/core-react/utils/IconHelper.js.map +1 -1
  246. package/lib/cjs/core-react/utils/IconWebComponent.js +1 -1
  247. package/lib/cjs/core-react/utils/IconWebComponent.js.map +1 -1
  248. package/lib/cjs/core-react/utils/Point.js +4 -4
  249. package/lib/cjs/core-react/utils/Point.js.map +1 -1
  250. package/lib/cjs/core-react/utils/Props.d.ts +1 -1
  251. package/lib/cjs/core-react/utils/Props.d.ts.map +1 -1
  252. package/lib/cjs/core-react/utils/Props.js.map +1 -1
  253. package/lib/cjs/core-react/utils/Rectangle.js +7 -7
  254. package/lib/cjs/core-react/utils/Rectangle.js.map +1 -1
  255. package/lib/cjs/core-react/utils/ScrollPositionMaintainer.js.map +1 -1
  256. package/lib/cjs/core-react/utils/Size.js +4 -4
  257. package/lib/cjs/core-react/utils/Size.js.map +1 -1
  258. package/lib/cjs/core-react/utils/Timer.d.ts +1 -1
  259. package/lib/cjs/core-react/utils/Timer.d.ts.map +1 -1
  260. package/lib/cjs/core-react/utils/Timer.js.map +1 -1
  261. package/lib/cjs/core-react/utils/UiGeometry.js.map +1 -1
  262. package/lib/cjs/core-react/utils/flattenChildren.js.map +1 -1
  263. package/lib/cjs/core-react/utils/getBestBWContrastColor.js +3 -3
  264. package/lib/cjs/core-react/utils/getBestBWContrastColor.js.map +1 -1
  265. package/lib/cjs/core-react/utils/getCssVariable.js +1 -1
  266. package/lib/cjs/core-react/utils/getCssVariable.js.map +1 -1
  267. package/lib/cjs/core-react/utils/getDisplayName.js.map +1 -1
  268. package/lib/cjs/core-react/utils/getUserColor.js.map +1 -1
  269. package/lib/cjs/core-react/utils/hooks/ResizeObserverPolyfill.d.ts +1 -1
  270. package/lib/cjs/core-react/utils/hooks/ResizeObserverPolyfill.d.ts.map +1 -1
  271. package/lib/cjs/core-react/utils/hooks/ResizeObserverPolyfill.js.map +1 -1
  272. package/lib/cjs/core-react/utils/hooks/useCrossOriginPopup.js +1 -2
  273. package/lib/cjs/core-react/utils/hooks/useCrossOriginPopup.js.map +1 -1
  274. package/lib/cjs/core-react/utils/hooks/useDisposable.js.map +1 -1
  275. package/lib/cjs/core-react/utils/hooks/useEffectSkipFirst.js.map +1 -1
  276. package/lib/cjs/core-react/utils/hooks/useEventListener.js.map +1 -1
  277. package/lib/cjs/core-react/utils/hooks/useInterval.js.map +1 -1
  278. package/lib/cjs/core-react/utils/hooks/useLifecycleLogging.js.map +1 -1
  279. package/lib/cjs/core-react/utils/hooks/useOnOutsideClick.d.ts +1 -1
  280. package/lib/cjs/core-react/utils/hooks/useOnOutsideClick.d.ts.map +1 -1
  281. package/lib/cjs/core-react/utils/hooks/useOnOutsideClick.js.map +1 -1
  282. package/lib/cjs/core-react/utils/hooks/useProximityToMouse.d.ts.map +1 -1
  283. package/lib/cjs/core-react/utils/hooks/useProximityToMouse.js +2 -2
  284. package/lib/cjs/core-react/utils/hooks/useProximityToMouse.js.map +1 -1
  285. package/lib/cjs/core-react/utils/hooks/useRefEffect.js.map +1 -1
  286. package/lib/cjs/core-react/utils/hooks/useRefState.js.map +1 -1
  287. package/lib/cjs/core-react/utils/hooks/useRefs.d.ts +1 -1
  288. package/lib/cjs/core-react/utils/hooks/useRefs.d.ts.map +1 -1
  289. package/lib/cjs/core-react/utils/hooks/useRefs.js.map +1 -1
  290. package/lib/cjs/core-react/utils/hooks/useResizeObserver.js +8 -13
  291. package/lib/cjs/core-react/utils/hooks/useResizeObserver.js.map +1 -1
  292. package/lib/cjs/core-react/utils/hooks/useTargeted.js.map +1 -1
  293. package/lib/cjs/core-react/utils/hooks/useThrottledFn.js.map +1 -1
  294. package/lib/cjs/core-react/utils/hooks/useWidgetOpacityContext.js.map +1 -1
  295. package/lib/cjs/core-react/utils/isPromiseLike.js.map +1 -1
  296. package/lib/cjs/core-react/utils/shallowDiffers.js.map +1 -1
  297. package/lib/cjs/core-react/utils/typeUtils.d.ts +1 -1
  298. package/lib/cjs/core-react/utils/typeUtils.d.ts.map +1 -1
  299. package/lib/cjs/core-react/utils/typeUtils.js.map +1 -1
  300. package/lib/cjs/core-react.d.ts +1 -1
  301. package/lib/cjs/core-react.d.ts.map +1 -1
  302. package/lib/cjs/core-react.js +6 -2
  303. package/lib/cjs/core-react.js.map +1 -1
  304. package/lib/esm/core-react/UiCore.js +2 -1
  305. package/lib/esm/core-react/UiCore.js.map +1 -1
  306. package/lib/esm/core-react/_geometry.scss +70 -70
  307. package/lib/esm/core-react/_helpers.scss +51 -51
  308. package/lib/esm/core-react/_math.scss +13 -13
  309. package/lib/esm/core-react/_scrollbar.scss +51 -51
  310. package/lib/esm/core-react/_typography.scss +44 -44
  311. package/lib/esm/core-react/_z-index.scss +65 -65
  312. package/lib/esm/core-react/autosuggest/AutoSuggest.d.ts +2 -2
  313. package/lib/esm/core-react/autosuggest/AutoSuggest.d.ts.map +1 -1
  314. package/lib/esm/core-react/autosuggest/AutoSuggest.js +1 -1
  315. package/lib/esm/core-react/autosuggest/AutoSuggest.js.map +1 -1
  316. package/lib/esm/core-react/autosuggest/AutoSuggest.scss +79 -82
  317. package/lib/esm/core-react/badge/Badge.js.map +1 -1
  318. package/lib/esm/core-react/badge/Badge.scss +13 -13
  319. package/lib/esm/core-react/badge/BadgeUtilities.js.map +1 -1
  320. package/lib/esm/core-react/badge/BetaBadge.d.ts +0 -1
  321. package/lib/esm/core-react/badge/BetaBadge.d.ts.map +1 -1
  322. package/lib/esm/core-react/badge/BetaBadge.js +0 -1
  323. package/lib/esm/core-react/badge/BetaBadge.js.map +1 -1
  324. package/lib/esm/core-react/badge/NewBadge.js.map +1 -1
  325. package/lib/esm/core-react/badge/NewBadge.scss +9 -9
  326. package/lib/esm/core-react/base/Centered.js.map +1 -1
  327. package/lib/esm/core-react/base/Div.js.map +1 -1
  328. package/lib/esm/core-react/base/DivWithOutsideClick.js.map +1 -1
  329. package/lib/esm/core-react/base/FillCentered.js.map +1 -1
  330. package/lib/esm/core-react/base/FlexWrapContainer.js.map +1 -1
  331. package/lib/esm/core-react/base/Gap.js +1 -1
  332. package/lib/esm/core-react/base/Gap.js.map +1 -1
  333. package/lib/esm/core-react/base/PointerEvents.js.map +1 -1
  334. package/lib/esm/core-react/base/ScrollView.js.map +1 -1
  335. package/lib/esm/core-react/base/base.scss +42 -42
  336. package/lib/esm/core-react/base/classes.scss +13 -13
  337. package/lib/esm/core-react/base/index.scss +5 -5
  338. package/lib/esm/core-react/button/UnderlinedButton.js.map +1 -1
  339. package/lib/esm/core-react/button/UnderlinedButton.scss +32 -32
  340. package/lib/esm/core-react/checklistbox/CheckListBox.js.map +1 -1
  341. package/lib/esm/core-react/checklistbox/CheckListBox.scss +21 -22
  342. package/lib/esm/core-react/classes.scss +11 -14
  343. package/lib/esm/core-react/colorthemes.scss +61 -90
  344. package/lib/esm/core-react/colorvariables.scss +131 -154
  345. package/lib/esm/core-react/contextmenu/ContextMenu.d.ts +1 -1
  346. package/lib/esm/core-react/contextmenu/ContextMenu.d.ts.map +1 -1
  347. package/lib/esm/core-react/contextmenu/ContextMenu.js +3 -3
  348. package/lib/esm/core-react/contextmenu/ContextMenu.js.map +1 -1
  349. package/lib/esm/core-react/contextmenu/ContextMenu.scss +236 -237
  350. package/lib/esm/core-react/contextmenu/ContextMenuDirection.js.map +1 -1
  351. package/lib/esm/core-react/contextmenu/ContextMenuDivider.js.map +1 -1
  352. package/lib/esm/core-react/contextmenu/ContextMenuItem.js +2 -1
  353. package/lib/esm/core-react/contextmenu/ContextMenuItem.js.map +1 -1
  354. package/lib/esm/core-react/contextmenu/ContextSubMenu.d.ts +1 -1
  355. package/lib/esm/core-react/contextmenu/ContextSubMenu.d.ts.map +1 -1
  356. package/lib/esm/core-react/contextmenu/ContextSubMenu.js +6 -2
  357. package/lib/esm/core-react/contextmenu/ContextSubMenu.js.map +1 -1
  358. package/lib/esm/core-react/contextmenu/GlobalContextMenu.d.ts.map +1 -1
  359. package/lib/esm/core-react/contextmenu/GlobalContextMenu.js +6 -4
  360. package/lib/esm/core-react/contextmenu/GlobalContextMenu.js.map +1 -1
  361. package/lib/esm/core-react/contextmenu/PopupContextMenu.js.map +1 -1
  362. package/lib/esm/core-react/contextmenu/TildeFinder.js +2 -1
  363. package/lib/esm/core-react/contextmenu/TildeFinder.js.map +1 -1
  364. package/lib/esm/core-react/dialog/Dialog.d.ts.map +1 -1
  365. package/lib/esm/core-react/dialog/Dialog.js +19 -10
  366. package/lib/esm/core-react/dialog/Dialog.js.map +1 -1
  367. package/lib/esm/core-react/dialog/Dialog.scss +245 -244
  368. package/lib/esm/core-react/dialog/GlobalDialog.js +1 -2
  369. package/lib/esm/core-react/dialog/GlobalDialog.js.map +1 -1
  370. package/lib/esm/core-react/elementseparator/ElementSeparator.js +2 -2
  371. package/lib/esm/core-react/elementseparator/ElementSeparator.js.map +1 -1
  372. package/lib/esm/core-react/elementseparator/ElementSeparator.scss +85 -85
  373. package/lib/esm/core-react/enums/Alignment.js.map +1 -1
  374. package/lib/esm/core-react/enums/CheckBoxState.js.map +1 -1
  375. package/lib/esm/core-react/enums/Orientation.js.map +1 -1
  376. package/lib/esm/core-react/enums/SortDirection.js.map +1 -1
  377. package/lib/esm/core-react/enums/TimeFormat.js.map +1 -1
  378. package/lib/esm/core-react/expandable/ExpandableList.js +2 -1
  379. package/lib/esm/core-react/expandable/ExpandableList.js.map +1 -1
  380. package/lib/esm/core-react/expandable/ExpandableList.scss +8 -8
  381. package/lib/esm/core-react/expandable/classes.scss +7 -7
  382. package/lib/esm/core-react/expandable/index.scss +5 -5
  383. package/lib/esm/core-react/expandable/list.scss +35 -35
  384. package/lib/esm/core-react/focus/ItemKeyboardNavigator.d.ts +1 -1
  385. package/lib/esm/core-react/focus/ItemKeyboardNavigator.d.ts.map +1 -1
  386. package/lib/esm/core-react/focus/ItemKeyboardNavigator.js.map +1 -1
  387. package/lib/esm/core-react/focustrap/FocusTrap.js.map +1 -1
  388. package/lib/esm/core-react/hocs/withIsPressed.js.map +1 -1
  389. package/lib/esm/core-react/hocs/withOnOutsideClick.js +1 -2
  390. package/lib/esm/core-react/hocs/withOnOutsideClick.js.map +1 -1
  391. package/lib/esm/core-react/hocs/withTimeout.js.map +1 -1
  392. package/lib/esm/core-react/icons/ConditionalIconItem.d.ts +27 -0
  393. package/lib/esm/core-react/icons/ConditionalIconItem.d.ts.map +1 -0
  394. package/lib/esm/core-react/icons/ConditionalIconItem.js +61 -0
  395. package/lib/esm/core-react/icons/ConditionalIconItem.js.map +1 -0
  396. package/lib/esm/core-react/icons/IconComponent.d.ts +3 -2
  397. package/lib/esm/core-react/icons/IconComponent.d.ts.map +1 -1
  398. package/lib/esm/core-react/icons/IconComponent.js +1 -7
  399. package/lib/esm/core-react/icons/IconComponent.js.map +1 -1
  400. package/lib/esm/core-react/icons/IconComponent.scss +20 -20
  401. package/lib/esm/core-react/icons/SvgPath.d.ts +1 -1
  402. package/lib/esm/core-react/icons/SvgPath.d.ts.map +1 -1
  403. package/lib/esm/core-react/icons/SvgPath.js +2 -2
  404. package/lib/esm/core-react/icons/SvgPath.js.map +1 -1
  405. package/lib/esm/core-react/icons/{SvgSprite.scss → SvgPath.scss} +15 -15
  406. package/lib/esm/core-react/icons/WebFontIcon.d.ts +0 -1
  407. package/lib/esm/core-react/icons/WebFontIcon.d.ts.map +1 -1
  408. package/lib/esm/core-react/icons/WebFontIcon.js +0 -1
  409. package/lib/esm/core-react/icons/WebFontIcon.js.map +1 -1
  410. package/lib/esm/core-react/icons/WebFontIcon.scss +17 -17
  411. package/lib/esm/core-react/icons/classes.scss +10 -10
  412. package/lib/esm/core-react/icons/index.scss +6 -6
  413. package/lib/esm/core-react/icons/mixins.scss +25 -25
  414. package/lib/esm/core-react/icons/variables.scss +12 -21
  415. package/lib/esm/core-react/imagecheckbox/ImageCheckBox.js.map +1 -1
  416. package/lib/esm/core-react/imagecheckbox/ImageCheckBox.scss +54 -54
  417. package/lib/esm/core-react/index.scss +21 -23
  418. package/lib/esm/core-react/inputs/Input.js.map +1 -1
  419. package/lib/esm/core-react/inputs/InputLabel.d.ts.map +1 -1
  420. package/lib/esm/core-react/inputs/InputLabel.js +9 -1
  421. package/lib/esm/core-react/inputs/InputLabel.js.map +1 -1
  422. package/lib/esm/core-react/inputs/InputStatus.js.map +1 -1
  423. package/lib/esm/core-react/inputs/LabeledComponentProps.js.map +1 -1
  424. package/lib/esm/core-react/inputs/classes.scss +8 -8
  425. package/lib/esm/core-react/inputs/iconinput/IconInput.js.map +1 -1
  426. package/lib/esm/core-react/inputs/iconinput/IconInput.scss +35 -35
  427. package/lib/esm/core-react/inputs/index.scss +9 -9
  428. package/lib/esm/core-react/inputs/input-label.scss +90 -90
  429. package/lib/esm/core-react/inputs/input.scss +58 -58
  430. package/lib/esm/core-react/inputs/numberinput/NumberInput.d.ts +6 -1
  431. package/lib/esm/core-react/inputs/numberinput/NumberInput.d.ts.map +1 -1
  432. package/lib/esm/core-react/inputs/numberinput/NumberInput.js +13 -8
  433. package/lib/esm/core-react/inputs/numberinput/NumberInput.js.map +1 -1
  434. package/lib/esm/core-react/inputs/numberinput/NumberInput.scss +88 -89
  435. package/lib/esm/core-react/inputs/variables.scss +38 -38
  436. package/lib/esm/core-react/layout-variables.scss +17 -17
  437. package/lib/esm/core-react/listbox/Listbox.d.ts +1 -1
  438. package/lib/esm/core-react/listbox/Listbox.d.ts.map +1 -1
  439. package/lib/esm/core-react/listbox/Listbox.js +2 -3
  440. package/lib/esm/core-react/listbox/Listbox.js.map +1 -1
  441. package/lib/esm/core-react/listbox/Listbox.scss +54 -54
  442. package/lib/esm/core-react/loading/LoadingBar.js +2 -1
  443. package/lib/esm/core-react/loading/LoadingBar.js.map +1 -1
  444. package/lib/esm/core-react/loading/LoadingBar.scss +29 -29
  445. package/lib/esm/core-react/loading/LoadingPrompt.js +2 -1
  446. package/lib/esm/core-react/loading/LoadingPrompt.js.map +1 -1
  447. package/lib/esm/core-react/loading/LoadingPrompt.scss +33 -33
  448. package/lib/esm/core-react/loading/LoadingSpinner.d.ts +1 -1
  449. package/lib/esm/core-react/loading/LoadingSpinner.d.ts.map +1 -1
  450. package/lib/esm/core-react/loading/LoadingSpinner.js +2 -1
  451. package/lib/esm/core-react/loading/LoadingSpinner.js.map +1 -1
  452. package/lib/esm/core-react/loading/LoadingSpinner.scss +26 -26
  453. package/lib/esm/core-react/loading/LoadingStatus.js +2 -1
  454. package/lib/esm/core-react/loading/LoadingStatus.js.map +1 -1
  455. package/lib/esm/core-react/loading/LoadingStatus.scss +20 -20
  456. package/lib/esm/core-react/loading/index.scss +5 -5
  457. package/lib/esm/core-react/loading/mixins.scss +57 -57
  458. package/lib/esm/core-react/messagebox/MessageBox.d.ts +13 -1
  459. package/lib/esm/core-react/messagebox/MessageBox.d.ts.map +1 -1
  460. package/lib/esm/core-react/messagebox/MessageBox.js +56 -11
  461. package/lib/esm/core-react/messagebox/MessageBox.js.map +1 -1
  462. package/lib/esm/core-react/messagebox/MessageBox.scss +56 -46
  463. package/lib/esm/core-react/notification/MessageRenderer.js +1 -1
  464. package/lib/esm/core-react/notification/MessageRenderer.js.map +1 -1
  465. package/lib/esm/core-react/notification/MessageType.d.ts +1 -1
  466. package/lib/esm/core-react/notification/MessageType.d.ts.map +1 -1
  467. package/lib/esm/core-react/notification/MessageType.js.map +1 -1
  468. package/lib/esm/core-react/popup/Popup.d.ts.map +1 -1
  469. package/lib/esm/core-react/popup/Popup.js +8 -8
  470. package/lib/esm/core-react/popup/Popup.js.map +1 -1
  471. package/lib/esm/core-react/popup/Popup.scss +240 -240
  472. package/lib/esm/core-react/radialmenu/Annulus.js.map +1 -1
  473. package/lib/esm/core-react/radialmenu/RadialMenu.js +2 -1
  474. package/lib/esm/core-react/radialmenu/RadialMenu.js.map +1 -1
  475. package/lib/esm/core-react/radialmenu/RadialMenu.scss +55 -55
  476. package/lib/esm/core-react/searchbox/SearchBox.d.ts.map +1 -1
  477. package/lib/esm/core-react/searchbox/SearchBox.js +8 -6
  478. package/lib/esm/core-react/searchbox/SearchBox.js.map +1 -1
  479. package/lib/esm/core-react/searchbox/SearchBox.scss +47 -51
  480. package/lib/esm/core-react/settings/SettingsContainer.js +1 -1
  481. package/lib/esm/core-react/settings/SettingsContainer.js.map +1 -1
  482. package/lib/esm/core-react/settings/SettingsContainer.scss +68 -66
  483. package/lib/esm/core-react/settings/SettingsManager.js.map +1 -1
  484. package/lib/esm/core-react/style/baseline.scss +11 -11
  485. package/lib/esm/core-react/style/breakpoints.scss +41 -41
  486. package/lib/esm/core-react/style/colors.scss +77 -77
  487. package/lib/esm/core-react/style/index.scss +10 -17
  488. package/lib/esm/core-react/style/mixins.scss +27 -27
  489. package/lib/esm/core-react/style/opacity.scss +16 -16
  490. package/lib/esm/core-react/style/themecolors.scss +123 -129
  491. package/lib/esm/core-react/tabs/Tabs.js.map +1 -1
  492. package/lib/esm/core-react/tabs/VerticalTabs.js.map +1 -1
  493. package/lib/esm/core-react/tabs/classes.scss +7 -7
  494. package/lib/esm/core-react/tabs/index.scss +5 -5
  495. package/lib/esm/core-react/tabs/tabs.scss +96 -106
  496. package/lib/esm/core-react/tabs/vertical.scss +51 -58
  497. package/lib/esm/core-react/text/BlockText.d.ts.map +1 -1
  498. package/lib/esm/core-react/text/BlockText.js +1 -0
  499. package/lib/esm/core-react/text/BlockText.js.map +1 -1
  500. package/lib/esm/core-react/text/BodyText.d.ts +1 -0
  501. package/lib/esm/core-react/text/BodyText.d.ts.map +1 -1
  502. package/lib/esm/core-react/text/BodyText.js +2 -0
  503. package/lib/esm/core-react/text/BodyText.js.map +1 -1
  504. package/lib/esm/core-react/text/DisabledText.d.ts.map +1 -1
  505. package/lib/esm/core-react/text/DisabledText.js +1 -0
  506. package/lib/esm/core-react/text/DisabledText.js.map +1 -1
  507. package/lib/esm/core-react/text/FilteredText.js +3 -3
  508. package/lib/esm/core-react/text/FilteredText.js.map +1 -1
  509. package/lib/esm/core-react/text/FilteredText.scss +10 -10
  510. package/lib/esm/core-react/text/MutedText.d.ts +1 -0
  511. package/lib/esm/core-react/text/MutedText.d.ts.map +1 -1
  512. package/lib/esm/core-react/text/MutedText.js +2 -0
  513. package/lib/esm/core-react/text/MutedText.js.map +1 -1
  514. package/lib/esm/core-react/text/StyledText.d.ts +1 -0
  515. package/lib/esm/core-react/text/StyledText.d.ts.map +1 -1
  516. package/lib/esm/core-react/text/StyledText.js +1 -0
  517. package/lib/esm/core-react/text/StyledText.js.map +1 -1
  518. package/lib/esm/core-react/text/TextProps.js.map +1 -1
  519. package/lib/esm/core-react/text/block.scss +15 -10
  520. package/lib/esm/core-react/text/body.scss +13 -10
  521. package/lib/esm/core-react/text/classes.scss +10 -10
  522. package/lib/esm/core-react/text/disabled.scss +10 -10
  523. package/lib/esm/core-react/text/index.scss +10 -10
  524. package/lib/esm/core-react/text/mixins.scss +24 -24
  525. package/lib/esm/core-react/text/muted.scss +10 -10
  526. package/lib/esm/core-react/tree/Branch.js.map +1 -1
  527. package/lib/esm/core-react/tree/Branch.scss +12 -12
  528. package/lib/esm/core-react/tree/ExpansionToggle.d.ts.map +1 -1
  529. package/lib/esm/core-react/tree/ExpansionToggle.js +3 -1
  530. package/lib/esm/core-react/tree/ExpansionToggle.js.map +1 -1
  531. package/lib/esm/core-react/tree/ExpansionToggle.scss +32 -28
  532. package/lib/esm/core-react/tree/Node.d.ts +2 -2
  533. package/lib/esm/core-react/tree/Node.d.ts.map +1 -1
  534. package/lib/esm/core-react/tree/Node.js +2 -3
  535. package/lib/esm/core-react/tree/Node.js.map +1 -1
  536. package/lib/esm/core-react/tree/Node.scss +68 -84
  537. package/lib/esm/core-react/tree/Placeholder.js.map +1 -1
  538. package/lib/esm/core-react/tree/Placeholder.scss +17 -20
  539. package/lib/esm/core-react/tree/Tree.js.map +1 -1
  540. package/lib/esm/core-react/tree/Tree.scss +21 -21
  541. package/lib/esm/core-react/uistate/LocalStateStorage.js.map +1 -1
  542. package/lib/esm/core-react/uistate/UiStateEntry.js.map +1 -1
  543. package/lib/esm/core-react/uistate/UiStateStorage.js.map +1 -1
  544. package/lib/esm/core-react/utils/IconHelper.js.map +1 -1
  545. package/lib/esm/core-react/utils/IconWebComponent.js +1 -1
  546. package/lib/esm/core-react/utils/IconWebComponent.js.map +1 -1
  547. package/lib/esm/core-react/utils/Point.js +4 -4
  548. package/lib/esm/core-react/utils/Point.js.map +1 -1
  549. package/lib/esm/core-react/utils/Props.d.ts +1 -1
  550. package/lib/esm/core-react/utils/Props.d.ts.map +1 -1
  551. package/lib/esm/core-react/utils/Props.js.map +1 -1
  552. package/lib/esm/core-react/utils/Rectangle.js +7 -7
  553. package/lib/esm/core-react/utils/Rectangle.js.map +1 -1
  554. package/lib/esm/core-react/utils/ScrollPositionMaintainer.js.map +1 -1
  555. package/lib/esm/core-react/utils/Size.js +4 -4
  556. package/lib/esm/core-react/utils/Size.js.map +1 -1
  557. package/lib/esm/core-react/utils/Timer.d.ts +1 -1
  558. package/lib/esm/core-react/utils/Timer.d.ts.map +1 -1
  559. package/lib/esm/core-react/utils/Timer.js.map +1 -1
  560. package/lib/esm/core-react/utils/UiGeometry.js.map +1 -1
  561. package/lib/esm/core-react/utils/flattenChildren.js.map +1 -1
  562. package/lib/esm/core-react/utils/getBestBWContrastColor.js +3 -3
  563. package/lib/esm/core-react/utils/getBestBWContrastColor.js.map +1 -1
  564. package/lib/esm/core-react/utils/getCssVariable.js +1 -1
  565. package/lib/esm/core-react/utils/getCssVariable.js.map +1 -1
  566. package/lib/esm/core-react/utils/getDisplayName.js.map +1 -1
  567. package/lib/esm/core-react/utils/getUserColor.js.map +1 -1
  568. package/lib/esm/core-react/utils/hooks/ResizeObserverPolyfill.d.ts +1 -1
  569. package/lib/esm/core-react/utils/hooks/ResizeObserverPolyfill.d.ts.map +1 -1
  570. package/lib/esm/core-react/utils/hooks/ResizeObserverPolyfill.js.map +1 -1
  571. package/lib/esm/core-react/utils/hooks/useCrossOriginPopup.js +1 -2
  572. package/lib/esm/core-react/utils/hooks/useCrossOriginPopup.js.map +1 -1
  573. package/lib/esm/core-react/utils/hooks/useDisposable.js.map +1 -1
  574. package/lib/esm/core-react/utils/hooks/useEffectSkipFirst.js.map +1 -1
  575. package/lib/esm/core-react/utils/hooks/useEventListener.js.map +1 -1
  576. package/lib/esm/core-react/utils/hooks/useInterval.js.map +1 -1
  577. package/lib/esm/core-react/utils/hooks/useLifecycleLogging.js.map +1 -1
  578. package/lib/esm/core-react/utils/hooks/useOnOutsideClick.d.ts +1 -1
  579. package/lib/esm/core-react/utils/hooks/useOnOutsideClick.d.ts.map +1 -1
  580. package/lib/esm/core-react/utils/hooks/useOnOutsideClick.js.map +1 -1
  581. package/lib/esm/core-react/utils/hooks/useProximityToMouse.d.ts.map +1 -1
  582. package/lib/esm/core-react/utils/hooks/useProximityToMouse.js +2 -2
  583. package/lib/esm/core-react/utils/hooks/useProximityToMouse.js.map +1 -1
  584. package/lib/esm/core-react/utils/hooks/useRefEffect.js.map +1 -1
  585. package/lib/esm/core-react/utils/hooks/useRefState.js.map +1 -1
  586. package/lib/esm/core-react/utils/hooks/useRefs.d.ts +1 -1
  587. package/lib/esm/core-react/utils/hooks/useRefs.d.ts.map +1 -1
  588. package/lib/esm/core-react/utils/hooks/useRefs.js.map +1 -1
  589. package/lib/esm/core-react/utils/hooks/useResizeObserver.js +8 -13
  590. package/lib/esm/core-react/utils/hooks/useResizeObserver.js.map +1 -1
  591. package/lib/esm/core-react/utils/hooks/useTargeted.js.map +1 -1
  592. package/lib/esm/core-react/utils/hooks/useThrottledFn.js.map +1 -1
  593. package/lib/esm/core-react/utils/hooks/useWidgetOpacityContext.js.map +1 -1
  594. package/lib/esm/core-react/utils/isPromiseLike.js.map +1 -1
  595. package/lib/esm/core-react/utils/shallowDiffers.js.map +1 -1
  596. package/lib/esm/core-react/utils/typeUtils.d.ts +1 -1
  597. package/lib/esm/core-react/utils/typeUtils.d.ts.map +1 -1
  598. package/lib/esm/core-react/utils/typeUtils.js.map +1 -1
  599. package/lib/esm/core-react.d.ts +1 -1
  600. package/lib/esm/core-react.d.ts.map +1 -1
  601. package/lib/esm/core-react.js +1 -1
  602. package/lib/esm/core-react.js.map +1 -1
  603. package/lib/public/locales/en/UiCore.json +30 -30
  604. package/package.json +26 -26
  605. package/ThirdPartyNotices.md +0 -28
  606. package/lib/cjs/core-react/badge/BetaBadge.scss +0 -9
  607. package/lib/cjs/core-react/button/blue-large.scss +0 -12
  608. package/lib/cjs/core-react/button/blue.scss +0 -25
  609. package/lib/cjs/core-react/button/button.scss +0 -70
  610. package/lib/cjs/core-react/button/classes.scss +0 -14
  611. package/lib/cjs/core-react/button/disabled-large.scss +0 -12
  612. package/lib/cjs/core-react/button/disabled.scss +0 -17
  613. package/lib/cjs/core-react/button/hollow-large.scss +0 -13
  614. package/lib/cjs/core-react/button/hollow.scss +0 -30
  615. package/lib/cjs/core-react/button/index.scss +0 -14
  616. package/lib/cjs/core-react/button/primary-large.scss +0 -12
  617. package/lib/cjs/core-react/button/primary.scss +0 -25
  618. package/lib/cjs/core-react/button/variables.scss +0 -22
  619. package/lib/cjs/core-react/checkbox/checkbox.scss +0 -124
  620. package/lib/cjs/core-react/checkbox/classes.scss +0 -8
  621. package/lib/cjs/core-react/checkbox/index.scss +0 -8
  622. package/lib/cjs/core-react/icons/SvgSprite.d.ts +0 -21
  623. package/lib/cjs/core-react/icons/SvgSprite.d.ts.map +0 -1
  624. package/lib/cjs/core-react/icons/SvgSprite.js +0 -27
  625. package/lib/cjs/core-react/icons/SvgSprite.js.map +0 -1
  626. package/lib/cjs/core-react/style/data-viz.scss +0 -20
  627. package/lib/cjs/core-react/style/itwinui-overrides.scss +0 -24
  628. package/lib/cjs/core-react/style/space.scss +0 -13
  629. package/lib/cjs/core-react/style/speed.scss +0 -12
  630. package/lib/cjs/core-react/style/typography.scss +0 -44
  631. package/lib/cjs/core-react/style/variables.scss +0 -12
  632. package/lib/esm/core-react/badge/BetaBadge.scss +0 -9
  633. package/lib/esm/core-react/button/blue-large.scss +0 -12
  634. package/lib/esm/core-react/button/blue.scss +0 -25
  635. package/lib/esm/core-react/button/button.scss +0 -70
  636. package/lib/esm/core-react/button/classes.scss +0 -14
  637. package/lib/esm/core-react/button/disabled-large.scss +0 -12
  638. package/lib/esm/core-react/button/disabled.scss +0 -17
  639. package/lib/esm/core-react/button/hollow-large.scss +0 -13
  640. package/lib/esm/core-react/button/hollow.scss +0 -30
  641. package/lib/esm/core-react/button/index.scss +0 -14
  642. package/lib/esm/core-react/button/primary-large.scss +0 -12
  643. package/lib/esm/core-react/button/primary.scss +0 -25
  644. package/lib/esm/core-react/button/variables.scss +0 -22
  645. package/lib/esm/core-react/checkbox/checkbox.scss +0 -124
  646. package/lib/esm/core-react/checkbox/classes.scss +0 -8
  647. package/lib/esm/core-react/checkbox/index.scss +0 -8
  648. package/lib/esm/core-react/icons/SvgSprite.d.ts +0 -21
  649. package/lib/esm/core-react/icons/SvgSprite.d.ts.map +0 -1
  650. package/lib/esm/core-react/icons/SvgSprite.js +0 -23
  651. package/lib/esm/core-react/icons/SvgSprite.js.map +0 -1
  652. package/lib/esm/core-react/style/data-viz.scss +0 -20
  653. package/lib/esm/core-react/style/itwinui-overrides.scss +0 -24
  654. package/lib/esm/core-react/style/space.scss +0 -13
  655. package/lib/esm/core-react/style/speed.scss +0 -12
  656. package/lib/esm/core-react/style/typography.scss +0 -44
  657. package/lib/esm/core-react/style/variables.scss +0 -12
@@ -1,65 +1,65 @@
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 "_helpers";
6
-
7
- // Order matters, last is top-most on screen.
8
- $uicore-internal-z-index-layers: view-overlay,
9
- view-content-dialog,
10
- content-card-popup,
11
- widget-grip,
12
- drop-target,
13
- dragged-widget,
14
- zone-target,
15
- zone-outline,
16
- toolbar-panels,
17
- tool-settings-popup,
18
- status-overflow-popup,
19
- status-popup,
20
- modal-frontstage-overlay,
21
- modal-frontstage,
22
- dialog,
23
- dialog-popup,
24
- status-message,
25
- tooltip,
26
- context-menu-z,
27
- dragdrop,
28
- cursor-overlay,
29
- drag-target,
30
- drag-preview,
31
- backstage-overlay,
32
- backstage,
33
- keyin-palette-overlay;
34
-
35
- $uicore-z-index-step: 1000;
36
-
37
- @function uicore-internal-get-next-z-index-step($counter) {
38
- @return $counter + $uicore-z-index-step;
39
- }
40
-
41
- $uicore-internal-z-index-layer-map: uicore-map-from-array-with-result-arg($uicore-internal-z-index-layers, get-function(uicore-internal-get-next-z-index-step), 0);
42
-
43
- // Use this to get z-index value
44
- @function uicore-get-z-index($layer) {
45
- @if map_has_key($uicore-internal-z-index-layer-map, $layer) {
46
- @return map-get($uicore-internal-z-index-layer-map, $layer);
47
- }
48
-
49
- @else {
50
- @error "Failed to get z-index for $layer: #{$layer}";
51
- }
52
- }
53
-
54
- // Use this to add z-index property
55
- @mixin uicore-z-index($layer) {
56
- z-index: uicore-get-z-index($layer);
57
- }
58
-
59
- // Use this to add a CSS variable for each z-index layer
60
- @mixin uicore-z-index-variables() {
61
- @each $layer in $uicore-internal-z-index-layers {
62
- $z-index: uicore-get-z-index($layer);
63
- --uicore-z-index-#{$layer}: #{$z-index};
64
- }
65
- }
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 "_helpers";
6
+
7
+ // Order matters, last is top-most on screen.
8
+ $uicore-internal-z-index-layers: view-overlay,
9
+ view-content-dialog,
10
+ content-card-popup,
11
+ widget-grip,
12
+ drop-target,
13
+ dragged-widget,
14
+ zone-target,
15
+ zone-outline,
16
+ toolbar-panels,
17
+ tool-settings-popup,
18
+ status-overflow-popup,
19
+ status-popup,
20
+ modal-frontstage-overlay,
21
+ modal-frontstage,
22
+ dialog,
23
+ dialog-popup,
24
+ status-message,
25
+ tooltip,
26
+ context-menu-z,
27
+ dragdrop,
28
+ cursor-overlay,
29
+ drag-target,
30
+ drag-preview,
31
+ backstage-overlay,
32
+ backstage,
33
+ keyin-palette-overlay;
34
+
35
+ $uicore-z-index-step: 1000;
36
+
37
+ @function uicore-internal-get-next-z-index-step($counter) {
38
+ @return $counter + $uicore-z-index-step;
39
+ }
40
+
41
+ $uicore-internal-z-index-layer-map: uicore-map-from-array-with-result-arg($uicore-internal-z-index-layers, get-function(uicore-internal-get-next-z-index-step), 0);
42
+
43
+ // Use this to get z-index value
44
+ @function uicore-get-z-index($layer) {
45
+ @if map_has_key($uicore-internal-z-index-layer-map, $layer) {
46
+ @return map-get($uicore-internal-z-index-layer-map, $layer);
47
+ }
48
+
49
+ @else {
50
+ @error "Failed to get z-index for $layer: #{$layer}";
51
+ }
52
+ }
53
+
54
+ // Use this to add z-index property
55
+ @mixin uicore-z-index($layer) {
56
+ z-index: uicore-get-z-index($layer);
57
+ }
58
+
59
+ // Use this to add a CSS variable for each z-index layer
60
+ @mixin uicore-z-index-variables() {
61
+ @each $layer in $uicore-internal-z-index-layers {
62
+ $z-index: uicore-get-z-index($layer);
63
+ --uicore-z-index-#{$layer}: #{$z-index};
64
+ }
65
+ }
@@ -17,11 +17,11 @@ export interface AutoSuggestData {
17
17
  /** Prototype for function returning AutoSuggestData
18
18
  * @public
19
19
  */
20
- export declare type GetAutoSuggestDataFunc = (value: string) => AutoSuggestData[];
20
+ export type GetAutoSuggestDataFunc = (value: string) => AutoSuggestData[];
21
21
  /** Prototype for async function returning AutoSuggestData
22
22
  * @public
23
23
  */
24
- export declare type AsyncGetAutoSuggestDataFunc = (value: string) => Promise<AutoSuggestData[]>;
24
+ export type AsyncGetAutoSuggestDataFunc = (value: string) => Promise<AutoSuggestData[]>;
25
25
  /** Properties for the [[AutoSuggest]] component.
26
26
  * @public
27
27
  */
@@ -1 +1 @@
1
- {"version":3,"file":"AutoSuggest.d.ts","sourceRoot":"","sources":["../../../../src/core-react/autosuggest/AutoSuggest.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,oBAAoB,CAAC;AAC5B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,mBAAmB,CAAC;AAGtD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,oBAAY,sBAAsB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,eAAe,EAAE,CAAC;AAE1E;;GAEG;AACH,oBAAY,2BAA2B,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;AAExF;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,WAAW;IAChG,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4BAA4B;IAC5B,OAAO,CAAC,EAAE,eAAe,EAAE,GAAG,sBAAsB,CAAC;IACrD,sEAAsE;IACtE,cAAc,CAAC,EAAE,2BAA2B,CAAC;IAC7C,iDAAiD;IACjD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,MAAM,CAAC;IACjD,2CAA2C;IAC3C,oBAAoB,EAAE,CAAC,QAAQ,EAAE,eAAe,KAAK,IAAI,CAAC;IAC1D,6BAA6B;IAC7B,Y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,CAAC,SAAS,EAAE,gBAAgB;IAQ9D,OAAO,CAAC,SAAS,CAWf;IAEF,OAAO,CAAC,QAAQ,CAId;IAEF,qFAAqF;IACrF,OAAO,CAAC,4BAA4B,CAMlC;IAEF,oFAAoF;IACpF,OAAO,CAAC,4BAA4B,CAGlC;IAEF,OAAO,CAAC,qBAAqB,CAE3B;IAEF,gFAAgF;IAChF,OAAO,CAAC,eAAe,CAsBrB;IAEF,4GAA4G;IAC5G,OAAO,CAAC,mBAAmB,CAAqD;IAEhF,8BAA8B;IAC9B,OAAO,CAAC,iBAAiB,CAIvB;IAEF,OAAO,CAAC,QAAQ;IAgBhB,OAAO,CAAC,cAAc,CAkBpB;IAEF,OAAO,CAAC,MAAM,CAeZ;IAEc,MAAM,IAAI,GAAG,CAAC,OAAO;CAsCtC"}
@@ -92,7 +92,7 @@ export class AutoSuggest extends React.PureComponent {
92
92
  this._theme = {
93
93
  container: "uicore-autosuggest__container",
94
94
  containerOpen: "uicore-autosuggest__container--open",
95
- input: "uicore-autosuggest__input",
95
+ input: "iui-input uicore-autosuggest__input",
96
96
  inputOpen: "uicore-autosuggest__input--open",
97
97
  inputFocused: "uicore-autosuggest__input--focused",
98
98
  suggestionsContainer: "uicore-autosuggest__suggestions-container",
@@ -1 +1 @@
1
- {"version":3,"file":"AutoSuggest.js","sourceRoot":"","sources":["../../../../src/core-react/autosuggest/AutoSuggest.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,oBAAoB,CAAC;AAC5B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAoEnC;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,K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gBAAgB,EAAE,IAAI,CAAC,iBAAiB,EACxC,UAAU,EAAE,UAAU,EACtB,oBAAoB,EAAE,IAAI,CAAC,qBAAqB,EAChD,uBAAuB,EAAE,uBAAuB,EAChD,oBAAoB,EAAE,oBAAoB,EAC1C,0BAA0B,EAAE,0BAA0B,GACtD,CACE,CACP,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module AutoSuggest\n */\n\nimport \"./AutoSuggest.scss\";\nimport * as React from \"react\";\nimport * as ReactAutosuggest from \"react-autosuggest\";\nimport { Logger } from \"@itwin/core-bentley\";\nimport { SpecialKey } from \"@itwin/appui-abstract\";\nimport { CommonProps } from \"../utils/Props\";\nimport { UiCore } from \"../UiCore\";\n\n/** Data for the [[AutoSuggest]] options\n * @public\n */\nexport interface AutoSuggestData {\n /** Value of [[AutoSuggest]] option. */\n value: string;\n /** Label of [[AutoSuggest]] option. This is shown in the dropdown. */\n label: string;\n}\n\n/** Prototype for function returning AutoSuggestData\n * @public\n */\nexport type GetAutoSuggestDataFunc = (value: string) => AutoSuggestData[];\n\n/** Prototype for async function returning AutoSuggestData\n * @public\n */\nexport type AsyncGetAutoSuggestDataFunc = (value: string) => Promise<AutoSuggestData[]>;\n\n/** Properties for the [[AutoSuggest]] component.\n * @public\n */\nexport interface AutoSuggestProps extends React.InputHTMLAttributes<HTMLInputElement>, CommonProps {\n /** Optional input value override. */\n value?: string;\n /** Options for dropdown. */\n options?: AutoSuggestData[] | GetAutoSuggestDataFunc;\n /** Asynchronously calculate suggestions for any given input value. */\n getSuggestions?: AsyncGetAutoSuggestDataFunc;\n /** Gets a label associated with a given value */\n getLabel?: (value: string | undefined) => string;\n /** Handler for when suggested selected. */\n onSuggestionSelected: (selected: AutoSuggestData) => void;\n /** Handler for Enter key. */\n onPressEnter?: (e: React.KeyboardEvent<HTMLInputElement>) => void;\n /** Handler for Escape key. */\n onPressEscape?: (e: React.KeyboardEvent<HTMLInputElement>) => void;\n /** Handler for Tab key. */\n onPressTab?: (e: React.KeyboardEvent<HTMLInputElement>) => void;\n /** Handler for input receiving focus. */\n onInputFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;\n /** Called every time you need to clear suggestions. */\n onSuggestionsClearRequested?: () => void;\n /** Indicates whether to set focus to the input element */\n setFocus?: boolean;\n\n /** Use it only if you need to customize the rendering of the input.\n * @internal\n */\n renderInputComponent?: any; // ReactAutosuggest.RenderInputComponent<AutoSuggestData>; NOTE: changed to \"any\" because build was failing with RenderInputComponent is not generic?\n /** Use it if you want to customize things inside the suggestions container beyond rendering the suggestions themselves.\n * @internal\n */\n renderSuggestionsContainer?: ReactAutosuggest.RenderSuggestionsContainer;\n\n /** @internal */\n alwaysRenderSuggestions?: boolean;\n}\n\n/** @internal */\ninterface AutoSuggestState {\n inputValue: string;\n suggestions: AutoSuggestData[];\n}\n\n/** Auto Suggest React component. Uses the react-autosuggest component internally.\n * @public\n */\nexport class AutoSuggest extends React.PureComponent<AutoSuggestProps, AutoSuggestState> {\n private _isMounted = false;\n\n constructor(props: AutoSuggestProps) {\n super(props);\n\n // Autosuggest is a controlled component.\n // This means that you need to provide an input value\n // and an onChange handler that updates this value (see below).\n // Suggestions also need to be provided to the Autosuggest,\n // and they are initially empty because the Autosuggest is closed.\n this.state = {\n inputValue: this.getLabel(props.value),\n suggestions: [],\n };\n }\n\n /** @internal */\n public override componentDidMount() {\n this._isMounted = true;\n }\n\n /** @internal */\n public override componentWillUnmount() {\n this._isMounted = false;\n }\n\n public override componentDidUpdate(prevProps: AutoSuggestProps) {\n if (this.props.value !== prevProps.value || this.props.options !== prevProps.options) {\n this.setState((_prevState, props) => ({\n inputValue: this.getLabel(props.value),\n }));\n }\n }\n\n private _onChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n let newValue = \"\";\n\n if (e.target.tagName === \"LI\" && e.target.textContent)\n newValue = e.target.textContent;\n else if (e.target.value)\n newValue = e.target.value;\n\n this.setState({\n inputValue: newValue,\n });\n };\n\n private _onFocus = (e: React.FocusEvent<HTMLInputElement>) => {\n // istanbul ignore else\n if (this.props.onInputFocus)\n this.props.onInputFocus(e);\n };\n\n /** Autosuggest will call this function every time you need to update suggestions. */\n private _onSuggestionsFetchRequested = async (request: ReactAutosuggest.SuggestionsFetchRequestedParams): Promise<void> => {\n const value = request.value;\n const suggestions = await this._getSuggestions(value);\n\n if (this._isMounted)\n this.setState({ suggestions });\n };\n\n /** Autosuggest will call this function every time you need to clear suggestions. */\n private _onSuggestionsClearRequested = () => {\n this.setState({ suggestions: [] });\n this.props.onSuggestionsClearRequested && this.props.onSuggestionsClearRequested();\n };\n\n private _onSuggestionSelected = (_event: React.FormEvent<any>, data: ReactAutosuggest.SuggestionSelectedEventData<AutoSuggestData>): void => {\n this.props.onSuggestionSelected(data.suggestion);\n };\n\n /** Teach Autosuggest how to calculate suggestions for any given input value. */\n private _getSuggestions = async (value: string): Promise<AutoSuggestData[]> => {\n if (typeof this.props.options === \"function\")\n return Promise.resolve(this.props.options(value));\n\n if (this.props.getSuggestions)\n return this.props.getSuggestions(value);\n\n if (this.props.options === undefined) {\n Logger.logError(UiCore.loggerCategory(this), `props.options or props.getSuggestions should be provided`);\n return Promise.resolve([]);\n }\n\n const inputValue = value.trim().toLowerCase();\n const inputLength = inputValue.length;\n\n return Promise.resolve(\n inputLength === 0 ?\n /* istanbul ignore next */[] :\n this.props.options.filter((data: AutoSuggestData) => {\n return data.label.toLowerCase().includes(inputValue) || data.value.toLowerCase().includes(inputValue);\n })\n );\n };\n\n /** When suggestion is clicked, Autosuggest needs to populate the input based on the clicked suggestion. */\n private _getSuggestionValue = (suggestion: AutoSuggestData) => suggestion.label;\n\n /** Render each suggestion. */\n private _renderSuggestion = (suggestion: AutoSuggestData) => (\n <span>\n {suggestion.label}\n </span>\n );\n\n private getLabel(value: string | undefined): string {\n let label = \"\";\n\n if (this.props.getLabel) {\n label = this.props.getLabel(value);\n } else if (this.props.options instanceof Array) {\n const entry = this.props.options.find((data: AutoSuggestData) => data.value === value);\n if (entry)\n label = entry.label;\n } else {\n Logger.logError(UiCore.loggerCategory(this), `props.getLabel should be provided when props.options is a function`);\n }\n\n return label;\n }\n\n private _handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\n switch (e.key) {\n case SpecialKey.Enter:\n // istanbul ignore else\n if (this.props.onPressEnter)\n this.props.onPressEnter(e);\n break;\n case SpecialKey.Escape:\n // istanbul ignore else\n if (this.props.onPressEscape)\n this.props.onPressEscape(e);\n break;\n case SpecialKey.Tab:\n // istanbul ignore else\n if (this.props.onPressTab)\n this.props.onPressTab(e);\n break;\n }\n };\n\n private _theme = {\n container: \"uicore-autosuggest__container\",\n containerOpen: \"uicore-autosuggest__container--open\",\n input: \"uicore-autosuggest__input\",\n inputOpen: \"uicore-autosuggest__input--open\",\n inputFocused: \"uicore-autosuggest__input--focused\",\n suggestionsContainer: \"uicore-autosuggest__suggestions-container\",\n suggestionsContainerOpen: \"uicore-autosuggest__suggestions-container--open\",\n suggestionsList: \"uicore-autosuggest__suggestions-list\",\n suggestion: \"uicore-autosuggest__suggestion\",\n suggestionFirst: \"uicore-autosuggest__suggestion--first\",\n suggestionHighlighted: \"uicore-autosuggest__suggestion--highlighted\",\n sectionContainer: \"uicore-autosuggest__section-container\",\n sectionContainerFirst: \"uicore-autosuggest__section-container--first\",\n sectionTitle: \"uicore-autosuggest__section-title\",\n };\n\n public override render(): JSX.Element {\n const { inputValue, suggestions } = this.state;\n const { value, onChange, placeholder, options, onSuggestionSelected, setFocus, alwaysRenderSuggestions, // eslint-disable-line @typescript-eslint/no-unused-vars\n onPressEnter, onPressEscape, onPressTab, onInputFocus, getLabel, // eslint-disable-line @typescript-eslint/no-unused-vars\n getSuggestions, // eslint-disable-line deprecation/deprecation, @typescript-eslint/no-unused-vars\n renderInputComponent, renderSuggestionsContainer, onSuggestionsClearRequested, // eslint-disable-line @typescript-eslint/no-unused-vars\n ...props } = this.props;\n const inputPlaceholder = (!inputValue) ? placeholder : undefined;\n\n const inputProps: ReactAutosuggest.InputProps<AutoSuggestData> = {\n ...props,\n value: inputValue,\n onChange: this._onChange,\n onFocus: this._onFocus,\n placeholder: inputPlaceholder,\n autoFocus: setFocus,\n };\n\n return (\n // The onKeyDown event handler is only being used to capture bubbled events\n // eslint-disable-next-line jsx-a11y/no-static-element-interactions\n <div className={this.props.className} style={this.props.style} onKeyDown={this._handleKeyDown}>\n <ReactAutosuggest\n theme={this._theme}\n suggestions={suggestions}\n onSuggestionsFetchRequested={this._onSuggestionsFetchRequested}\n onSuggestionsClearRequested={this._onSuggestionsClearRequested}\n getSuggestionValue={this._getSuggestionValue}\n renderSuggestion={this._renderSuggestion}\n inputProps={inputProps}\n onSuggestionSelected={this._onSuggestionSelected}\n alwaysRenderSuggestions={alwaysRenderSuggestions}\n renderInputComponent={renderInputComponent}\n renderSuggestionsContainer={renderSuggestionsContainer}\n />\n </div>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"AutoSuggest.js","sourceRoot":"","sources":["../../../../src/core-react/autosuggest/AutoSuggest.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,oBAAoB,CAAC;AAC5B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAoEnC;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,KAAK,CAAC,aAAiD;IAGtF,YAAY,KAAuB;QACjC,KAAK,CAAC,KAAK,CAAC,CAAC;QAHP,eAAU,GAAG,KAAK,CAAC;QAkCnB,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B,EAAE,uBAAuB,EAChD,oBAAoB,EAAE,oBAAoB,EAC1C,0BAA0B,EAAE,0BAA0B,GACtD,CACE,CACP,CAAC;IACJ,CAAC;CACF","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 AutoSuggest\r\n */\r\n\r\nimport \"./AutoSuggest.scss\";\r\nimport * as React from \"react\";\r\nimport * as ReactAutosuggest from \"react-autosuggest\";\r\nimport { Logger } from \"@itwin/core-bentley\";\r\nimport { SpecialKey } from \"@itwin/appui-abstract\";\r\nimport { CommonProps } from \"../utils/Props\";\r\nimport { UiCore } from \"../UiCore\";\r\n\r\n/** Data for the [[AutoSuggest]] options\r\n * @public\r\n */\r\nexport interface AutoSuggestData {\r\n /** Value of [[AutoSuggest]] option. */\r\n value: string;\r\n /** Label of [[AutoSuggest]] option. This is shown in the dropdown. */\r\n label: string;\r\n}\r\n\r\n/** Prototype for function returning AutoSuggestData\r\n * @public\r\n */\r\nexport type GetAutoSuggestDataFunc = (value: string) => AutoSuggestData[];\r\n\r\n/** Prototype for async function returning AutoSuggestData\r\n * @public\r\n */\r\nexport type AsyncGetAutoSuggestDataFunc = (value: string) => Promise<AutoSuggestData[]>;\r\n\r\n/** Properties for the [[AutoSuggest]] component.\r\n * @public\r\n */\r\nexport interface AutoSuggestProps extends React.InputHTMLAttributes<HTMLInputElement>, CommonProps {\r\n /** Optional input value override. */\r\n value?: string;\r\n /** Options for dropdown. */\r\n options?: AutoSuggestData[] | GetAutoSuggestDataFunc;\r\n /** Asynchronously calculate suggestions for any given input value. */\r\n getSuggestions?: AsyncGetAutoSuggestDataFunc;\r\n /** Gets a label associated with a given value */\r\n getLabel?: (value: string | undefined) => string;\r\n /** Handler for when suggested selected. */\r\n onSuggestionSelected: (selected: AutoSuggestData) => void;\r\n /** Handler for Enter key. */\r\n onPressEnter?: (e: React.KeyboardEvent<HTMLInputElement>) => void;\r\n /** Handler for Escape key. */\r\n onPressEscape?: (e: React.KeyboardEvent<HTMLInputElement>) => void;\r\n /** Handler for Tab key. */\r\n onPressTab?: (e: React.KeyboardEvent<HTMLInputElement>) => void;\r\n /** Handler for input receiving focus. */\r\n onInputFocus?: (e: React.FocusEvent<HTMLInputElement>) => void;\r\n /** Called every time you need to clear suggestions. */\r\n onSuggestionsClearRequested?: () => void;\r\n /** Indicates whether to set focus to the input element */\r\n setFocus?: boolean;\r\n\r\n /** Use it only if you need to customize the rendering of the input.\r\n * @internal\r\n */\r\n renderInputComponent?: any; // ReactAutosuggest.RenderInputComponent<AutoSuggestData>; NOTE: changed to \"any\" because build was failing with RenderInputComponent is not generic?\r\n /** Use it if you want to customize things inside the suggestions container beyond rendering the suggestions themselves.\r\n * @internal\r\n */\r\n renderSuggestionsContainer?: ReactAutosuggest.RenderSuggestionsContainer;\r\n\r\n /** @internal */\r\n alwaysRenderSuggestions?: boolean;\r\n}\r\n\r\n/** @internal */\r\ninterface AutoSuggestState {\r\n inputValue: string;\r\n suggestions: AutoSuggestData[];\r\n}\r\n\r\n/** Auto Suggest React component. Uses the react-autosuggest component internally.\r\n * @public\r\n */\r\nexport class AutoSuggest extends React.PureComponent<AutoSuggestProps, AutoSuggestState> {\r\n private _isMounted = false;\r\n\r\n constructor(props: AutoSuggestProps) {\r\n super(props);\r\n\r\n // Autosuggest is a controlled component.\r\n // This means that you need to provide an input value\r\n // and an onChange handler that updates this value (see below).\r\n // Suggestions also need to be provided to the Autosuggest,\r\n // and they are initially empty because the Autosuggest is closed.\r\n this.state = {\r\n inputValue: this.getLabel(props.value),\r\n suggestions: [],\r\n };\r\n }\r\n\r\n /** @internal */\r\n public override componentDidMount() {\r\n this._isMounted = true;\r\n }\r\n\r\n /** @internal */\r\n public override componentWillUnmount() {\r\n this._isMounted = false;\r\n }\r\n\r\n public override componentDidUpdate(prevProps: AutoSuggestProps) {\r\n if (this.props.value !== prevProps.value || this.props.options !== prevProps.options) {\r\n this.setState((_prevState, props) => ({\r\n inputValue: this.getLabel(props.value),\r\n }));\r\n }\r\n }\r\n\r\n private _onChange = (e: React.ChangeEvent<HTMLInputElement>) => {\r\n let newValue = \"\";\r\n\r\n if (e.target.tagName === \"LI\" && e.target.textContent)\r\n newValue = e.target.textContent;\r\n else if (e.target.value)\r\n newValue = e.target.value;\r\n\r\n this.setState({\r\n inputValue: newValue,\r\n });\r\n };\r\n\r\n private _onFocus = (e: React.FocusEvent<HTMLInputElement>) => {\r\n // istanbul ignore else\r\n if (this.props.onInputFocus)\r\n this.props.onInputFocus(e);\r\n };\r\n\r\n /** Autosuggest will call this function every time you need to update suggestions. */\r\n private _onSuggestionsFetchRequested = async (request: ReactAutosuggest.SuggestionsFetchRequestedParams): Promise<void> => {\r\n const value = request.value;\r\n const suggestions = await this._getSuggestions(value);\r\n\r\n if (this._isMounted)\r\n this.setState({ suggestions });\r\n };\r\n\r\n /** Autosuggest will call this function every time you need to clear suggestions. */\r\n private _onSuggestionsClearRequested = () => {\r\n this.setState({ suggestions: [] });\r\n this.props.onSuggestionsClearRequested && this.props.onSuggestionsClearRequested();\r\n };\r\n\r\n private _onSuggestionSelected = (_event: React.FormEvent<any>, data: ReactAutosuggest.SuggestionSelectedEventData<AutoSuggestData>): void => {\r\n this.props.onSuggestionSelected(data.suggestion);\r\n };\r\n\r\n /** Teach Autosuggest how to calculate suggestions for any given input value. */\r\n private _getSuggestions = async (value: string): Promise<AutoSuggestData[]> => {\r\n if (typeof this.props.options === \"function\")\r\n return Promise.resolve(this.props.options(value));\r\n\r\n if (this.props.getSuggestions)\r\n return this.props.getSuggestions(value);\r\n\r\n if (this.props.options === undefined) {\r\n Logger.logError(UiCore.loggerCategory(this), `props.options or props.getSuggestions should be provided`);\r\n return Promise.resolve([]);\r\n }\r\n\r\n const inputValue = value.trim().toLowerCase();\r\n const inputLength = inputValue.length;\r\n\r\n return Promise.resolve(\r\n inputLength === 0 ?\r\n /* istanbul ignore next */[] :\r\n this.props.options.filter((data: AutoSuggestData) => {\r\n return data.label.toLowerCase().includes(inputValue) || data.value.toLowerCase().includes(inputValue);\r\n })\r\n );\r\n };\r\n\r\n /** When suggestion is clicked, Autosuggest needs to populate the input based on the clicked suggestion. */\r\n private _getSuggestionValue = (suggestion: AutoSuggestData) => suggestion.label;\r\n\r\n /** Render each suggestion. */\r\n private _renderSuggestion = (suggestion: AutoSuggestData) => (\r\n <span>\r\n {suggestion.label}\r\n </span>\r\n );\r\n\r\n private getLabel(value: string | undefined): string {\r\n let label = \"\";\r\n\r\n if (this.props.getLabel) {\r\n label = this.props.getLabel(value);\r\n } else if (this.props.options instanceof Array) {\r\n const entry = this.props.options.find((data: AutoSuggestData) => data.value === value);\r\n if (entry)\r\n label = entry.label;\r\n } else {\r\n Logger.logError(UiCore.loggerCategory(this), `props.getLabel should be provided when props.options is a function`);\r\n }\r\n\r\n return label;\r\n }\r\n\r\n private _handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\r\n switch (e.key) {\r\n case SpecialKey.Enter:\r\n // istanbul ignore else\r\n if (this.props.onPressEnter)\r\n this.props.onPressEnter(e);\r\n break;\r\n case SpecialKey.Escape:\r\n // istanbul ignore else\r\n if (this.props.onPressEscape)\r\n this.props.onPressEscape(e);\r\n break;\r\n case SpecialKey.Tab:\r\n // istanbul ignore else\r\n if (this.props.onPressTab)\r\n this.props.onPressTab(e);\r\n break;\r\n }\r\n };\r\n\r\n private _theme = {\r\n container: \"uicore-autosuggest__container\",\r\n containerOpen: \"uicore-autosuggest__container--open\",\r\n input: \"iui-input uicore-autosuggest__input\",\r\n inputOpen: \"uicore-autosuggest__input--open\",\r\n inputFocused: \"uicore-autosuggest__input--focused\",\r\n suggestionsContainer: \"uicore-autosuggest__suggestions-container\",\r\n suggestionsContainerOpen: \"uicore-autosuggest__suggestions-container--open\",\r\n suggestionsList: \"uicore-autosuggest__suggestions-list\",\r\n suggestion: \"uicore-autosuggest__suggestion\",\r\n suggestionFirst: \"uicore-autosuggest__suggestion--first\",\r\n suggestionHighlighted: \"uicore-autosuggest__suggestion--highlighted\",\r\n sectionContainer: \"uicore-autosuggest__section-container\",\r\n sectionContainerFirst: \"uicore-autosuggest__section-container--first\",\r\n sectionTitle: \"uicore-autosuggest__section-title\",\r\n };\r\n\r\n public override render(): JSX.Element {\r\n const { inputValue, suggestions } = this.state;\r\n const { value, onChange, placeholder, options, onSuggestionSelected, setFocus, alwaysRenderSuggestions, // eslint-disable-line @typescript-eslint/no-unused-vars\r\n onPressEnter, onPressEscape, onPressTab, onInputFocus, getLabel, // eslint-disable-line @typescript-eslint/no-unused-vars\r\n getSuggestions, // eslint-disable-line deprecation/deprecation, @typescript-eslint/no-unused-vars\r\n renderInputComponent, renderSuggestionsContainer, onSuggestionsClearRequested, // eslint-disable-line @typescript-eslint/no-unused-vars\r\n ...props } = this.props;\r\n const inputPlaceholder = (!inputValue) ? placeholder : undefined;\r\n\r\n const inputProps: ReactAutosuggest.InputProps<AutoSuggestData> = {\r\n ...props,\r\n value: inputValue,\r\n onChange: this._onChange,\r\n onFocus: this._onFocus,\r\n placeholder: inputPlaceholder,\r\n autoFocus: setFocus,\r\n };\r\n\r\n return (\r\n // The onKeyDown event handler is only being used to capture bubbled events\r\n // eslint-disable-next-line jsx-a11y/no-static-element-interactions\r\n <div className={this.props.className} style={this.props.style} onKeyDown={this._handleKeyDown}>\r\n <ReactAutosuggest\r\n theme={this._theme}\r\n suggestions={suggestions}\r\n onSuggestionsFetchRequested={this._onSuggestionsFetchRequested}\r\n onSuggestionsClearRequested={this._onSuggestionsClearRequested}\r\n getSuggestionValue={this._getSuggestionValue}\r\n renderSuggestion={this._renderSuggestion}\r\n inputProps={inputProps}\r\n onSuggestionSelected={this._onSuggestionSelected}\r\n alwaysRenderSuggestions={alwaysRenderSuggestions}\r\n renderInputComponent={renderInputComponent}\r\n renderSuggestionsContainer={renderSuggestionsContainer}\r\n />\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
@@ -1,82 +1,79 @@
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 "../scrollbar";
6
- @import "../inputs/variables";
7
- @import "../style/variables";
8
- @import "~@itwin/itwinui-css/scss/inputs/input";
9
-
10
- .uicore-autosuggest__container {
11
- position: relative;
12
- }
13
-
14
- .uicore-autosuggest__input {
15
- @include iui-input;
16
- min-height: $uicore-component-height-normal;
17
- padding: $uicore-iui-input-padding;
18
- }
19
-
20
- .uicore-autosuggest__input--focused {
21
- outline: none;
22
- }
23
-
24
- .uicore-autosuggest__input::-ms-clear {
25
- display: none;
26
- }
27
-
28
- .uicore-autosuggest__input--open {
29
- border-bottom-left-radius: 0;
30
- border-bottom-right-radius: 0;
31
- }
32
-
33
- .uicore-autosuggest__suggestions-container {
34
- display: none;
35
- }
36
-
37
- .uicore-autosuggest__suggestions-container--open {
38
- display: block;
39
- position: absolute;
40
- top: 24px;
41
- width: 100%;
42
- border: 1px solid $buic-inputs-border;
43
- background-color: $buic-background-control;
44
- border-bottom-left-radius: 4px;
45
- border-bottom-right-radius: 4px;
46
- box-sizing: border-box;
47
- max-height: 400px;
48
- overflow-y: auto;
49
- z-index: 2;
50
-
51
- @include uicore-touch-scrolling;
52
- @include uicore-scrollbar();
53
- }
54
-
55
- .uicore-autosuggest__suggestions-list {
56
- margin: 0;
57
- padding: 0;
58
- list-style-type: none;
59
- }
60
-
61
- .uicore-autosuggest__suggestion {
62
- cursor: pointer;
63
- padding: 5px 10px;
64
- }
65
-
66
- .uicore-autosuggest__suggestion--highlighted {
67
- background-color: $buic-row-selection;
68
- }
69
-
70
- .uicore-autosuggest__section-container {
71
- border-top: 1px dashed $buic-background-divider;
72
- }
73
-
74
- .uicore-autosuggest__section-container--first {
75
- border-top: 0;
76
- }
77
-
78
- .uicore-autosuggest__section-title {
79
- padding: 10px 0 0 10px;
80
- font-size: var(--iui-font-size-0);
81
- color: $buic-background-table-header;
82
- }
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 "../scrollbar";
6
+ @import "../inputs/variables";
7
+
8
+ .uicore-autosuggest__container {
9
+ position: relative;
10
+ }
11
+
12
+ .uicore-autosuggest__input {
13
+ min-height: 28px !important;
14
+ padding: $uicore-iui-input-padding !important;
15
+ }
16
+
17
+ .uicore-autosuggest__input--focused {
18
+ outline: none;
19
+ }
20
+
21
+ .uicore-autosuggest__input::-ms-clear {
22
+ display: none;
23
+ }
24
+
25
+ .uicore-autosuggest__input--open {
26
+ border-bottom-left-radius: 0;
27
+ border-bottom-right-radius: 0;
28
+ }
29
+
30
+ .uicore-autosuggest__suggestions-container {
31
+ display: none;
32
+ }
33
+
34
+ .uicore-autosuggest__suggestions-container--open {
35
+ display: block;
36
+ position: absolute;
37
+ top: 24px;
38
+ width: 100%;
39
+ border: 1px solid var(--iui-color-border-foreground);
40
+ background-color: var(--iui-color-background);
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ box-sizing: border-box;
44
+ max-height: 400px;
45
+ overflow-y: auto;
46
+ z-index: 2;
47
+
48
+ @include uicore-touch-scrolling;
49
+ @include uicore-scrollbar();
50
+ }
51
+
52
+ .uicore-autosuggest__suggestions-list {
53
+ margin: 0;
54
+ padding: 0;
55
+ list-style-type: none;
56
+ }
57
+
58
+ .uicore-autosuggest__suggestion {
59
+ cursor: pointer;
60
+ padding: 5px 10px;
61
+ }
62
+
63
+ .uicore-autosuggest__suggestion--highlighted {
64
+ background-color: var(--iui-color-background-accent-muted);
65
+ }
66
+
67
+ .uicore-autosuggest__section-container {
68
+ border-top: 1px dashed $buic-background-divider;
69
+ }
70
+
71
+ .uicore-autosuggest__section-container--first {
72
+ border-top: 0;
73
+ }
74
+
75
+ .uicore-autosuggest__section-title {
76
+ padding: 10px 0 0 10px;
77
+ font-size: var(--iui-font-size-0);
78
+ color: $buic-background-table-header;
79
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.js","sourceRoot":"","sources":["../../../../src/core-react/badge/Badge.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;AAE/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAS9C;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,KAAK,CAAC,aAAyB;IACxC,MAAM;QACpB,MAAM,QAAQ,GAAG,iBAAiB,CAAC,0BAA0B,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC9E,OAAO,CACL,6BAAK,SAAS,EAAE,UAAU,CAAC,YAAY,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK;YACrF,oBAAC,IAAI,IAAC,QAAQ,EAAE,QAAQ,GAAI,CACxB,CACP,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Utilities\n */\n\nimport \"./Badge.scss\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport { CommonProps } from \"../utils/Props\";\nimport { IconSpecUtilities } from \"@itwin/appui-abstract\";\nimport { Icon } from \"../icons/IconComponent\";\n\n/** Properties for the [[Badge]] React component\n * @internal\n */\nexport interface BadgeProps extends CommonProps {\n svg: any;\n}\n\n/** Beta Badge React component\n * @internal\n */\nexport class Badge extends React.PureComponent<BadgeProps> {\n public override render(): JSX.Element {\n const iconSpec = IconSpecUtilities.createWebComponentIconSpec(this.props.svg);\n return (\n <div className={classnames(\"core-badge\", this.props.className)} style={this.props.style}>\n <Icon iconSpec={iconSpec} />\n </div>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"Badge.js","sourceRoot":"","sources":["../../../../src/core-react/badge/Badge.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;AAE/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAS9C;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,KAAK,CAAC,aAAyB;IACxC,MAAM;QACpB,MAAM,QAAQ,GAAG,iBAAiB,CAAC,0BAA0B,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC9E,OAAO,CACL,6BAAK,SAAS,EAAE,UAAU,CAAC,YAAY,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK;YACrF,oBAAC,IAAI,IAAC,QAAQ,EAAE,QAAQ,GAAI,CACxB,CACP,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Utilities\r\n */\r\n\r\nimport \"./Badge.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { CommonProps } from \"../utils/Props\";\r\nimport { IconSpecUtilities } from \"@itwin/appui-abstract\";\r\nimport { Icon } from \"../icons/IconComponent\";\r\n\r\n/** Properties for the [[Badge]] React component\r\n * @internal\r\n */\r\nexport interface BadgeProps extends CommonProps {\r\n svg: any;\r\n}\r\n\r\n/** Beta Badge React component\r\n * @internal\r\n */\r\nexport class Badge extends React.PureComponent<BadgeProps> {\r\n public override render(): JSX.Element {\r\n const iconSpec = IconSpecUtilities.createWebComponentIconSpec(this.props.svg);\r\n return (\r\n <div className={classnames(\"core-badge\", this.props.className)} style={this.props.style}>\r\n <Icon iconSpec={iconSpec} />\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
@@ -1,13 +1,13 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- @import "../style/themecolors";
6
-
7
- $icon-size: 16px;
8
-
9
- .core-badge {
10
- transform: rotate(270deg);
11
- width: $icon-size;
12
- height: $icon-size;
13
- }
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
+ * See LICENSE.md in the project root for license terms and full copyright notice.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ @import "../style/themecolors";
6
+
7
+ $icon-size: 16px;
8
+
9
+ .core-badge {
10
+ transform: rotate(270deg);
11
+ width: $icon-size;
12
+ height: $icon-size;
13
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"BadgeUtilities.js","sourceRoot":"","sources":["../../../../src/core-react/badge/BadgeUtilities.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;GAEG;AACH,MAAM,OAAO,cAAc;IACzB,iDAAiD;IAC1C,MAAM,CAAC,wBAAwB,CAAC,SAAqB;QAC1D,IAAI,SAAS,KAAK,SAAS;YACzB,OAAO,SAAS,CAAC;QAEnB,IAAI,SAA0B,CAAC;QAE/B,QAAQ,SAAS,EAAE;YACjB,KAAK,SAAS,CAAC,gBAAgB;gBAC7B,SAAS,GAAG,oBAAC,SAAS,OAAG,CAAC;gBAC1B,MAAM;YACR,KAAK,SAAS,CAAC,GAAG;gBAChB,SAAS,GAAG,oBAAC,QAAQ,OAAG,CAAC;gBACzB,MAAM;YACR,KAAK,SAAS,CAAC,IAAI;gBACjB,SAAS,GAAG,SAAS,CAAC;gBACtB,MAAM;SACT;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;CAEF","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Utilities\n */\n\nimport * as React from \"react\";\nimport { BadgeType } from \"@itwin/appui-abstract\";\nimport { BetaBadge } from \"./BetaBadge\";\nimport { NewBadge } from \"./NewBadge\";\n\n/** Converts BetaType to Badge React component\n * @internal\n */\nexport class BadgeUtilities {\n /** Converts BetaType to Badge React component */\n public static getComponentForBadgeType(badgeType?: BadgeType): React.ReactNode {\n if (badgeType === undefined)\n return undefined;\n\n let component: React.ReactNode;\n\n switch (badgeType) {\n case BadgeType.TechnicalPreview:\n component = <BetaBadge />;\n break;\n case BadgeType.New:\n component = <NewBadge />;\n break;\n case BadgeType.None:\n component = undefined;\n break;\n }\n\n return component;\n }\n\n}\n"]}
1
+ {"version":3,"file":"BadgeUtilities.js","sourceRoot":"","sources":["../../../../src/core-react/badge/BadgeUtilities.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;GAEG;AACH,MAAM,OAAO,cAAc;IACzB,iDAAiD;IAC1C,MAAM,CAAC,wBAAwB,CAAC,SAAqB;QAC1D,IAAI,SAAS,KAAK,SAAS;YACzB,OAAO,SAAS,CAAC;QAEnB,IAAI,SAA0B,CAAC;QAE/B,QAAQ,SAAS,EAAE;YACjB,KAAK,SAAS,CAAC,gBAAgB;gBAC7B,SAAS,GAAG,oBAAC,SAAS,OAAG,CAAC;gBAC1B,MAAM;YACR,KAAK,SAAS,CAAC,GAAG;gBAChB,SAAS,GAAG,oBAAC,QAAQ,OAAG,CAAC;gBACzB,MAAM;YACR,KAAK,SAAS,CAAC,IAAI;gBACjB,SAAS,GAAG,SAAS,CAAC;gBACtB,MAAM;SACT;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;CAEF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Utilities\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { BadgeType } from \"@itwin/appui-abstract\";\r\nimport { BetaBadge } from \"./BetaBadge\";\r\nimport { NewBadge } from \"./NewBadge\";\r\n\r\n/** Converts BetaType to Badge React component\r\n * @internal\r\n */\r\nexport class BadgeUtilities {\r\n /** Converts BetaType to Badge React component */\r\n public static getComponentForBadgeType(badgeType?: BadgeType): React.ReactNode {\r\n if (badgeType === undefined)\r\n return undefined;\r\n\r\n let component: React.ReactNode;\r\n\r\n switch (badgeType) {\r\n case BadgeType.TechnicalPreview:\r\n component = <BetaBadge />;\r\n break;\r\n case BadgeType.New:\r\n component = <NewBadge />;\r\n break;\r\n case BadgeType.None:\r\n component = undefined;\r\n break;\r\n }\r\n\r\n return component;\r\n }\r\n\r\n}\r\n"]}
@@ -2,7 +2,6 @@
2
2
  * @module Utilities
3
3
  */
4
4
  /// <reference types="react" />
5
- import "./BetaBadge.scss";
6
5
  import { CommonProps } from "../utils/Props";
7
6
  /** Beta Badge React component
8
7
  * @internal
@@ -1 +1 @@
1
- {"version":3,"file":"BetaBadge.d.ts","sourceRoot":"","sources":["../../../../src/core-react/badge/BetaBadge.tsx"],"names":[],"mappings":"AAIA;;GAEG;;AAEH,OAAO,kBAAkB,CAAC;AAG1B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAI7C;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,WAAW,eAS3C"}
1
+ {"version":3,"file":"BetaBadge.d.ts","sourceRoot":"","sources":["../../../../src/core-react/badge/BetaBadge.tsx"],"names":[],"mappings":"AAIA;;GAEG;;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAI7C;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,WAAW,eAS3C"}
@@ -5,7 +5,6 @@
5
5
  /** @packageDocumentation
6
6
  * @module Utilities
7
7
  */
8
- import "./BetaBadge.scss";
9
8
  import classnames from "classnames";
10
9
  import * as React from "react";
11
10
  import { Badge } from "./Badge";
@@ -1 +1 @@
1
- {"version":3,"file":"BetaBadge.js","sourceRoot":"","sources":["../../../../src/core-react/badge/BetaBadge.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,kBAAkB,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,aAAa,MAAM,+BAA+B,CAAC;AAE1D;;GAEG;AACH,MAAM,UAAU,SAAS,CAAC,KAAkB;IAC1C,MAAM,SAAS,GAAG,UAAU,CAAC,sBAAsB,EACjD,KAAK,CAAC,SAAS,CAChB,CAAC;IACF,OAAO,oBAAC,KAAK,OACP,KAAK,EACT,GAAG,EAAE,aAAa,EAClB,SAAS,EAAE,SAAS,GACpB,CAAC;AACL,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Utilities\n */\n\nimport \"./BetaBadge.scss\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport { CommonProps } from \"../utils/Props\";\nimport { Badge } from \"./Badge\";\nimport betaBadgeIcon from \"./technical-preview-badge.svg\";\n\n/** Beta Badge React component\n * @internal\n */\nexport function BetaBadge(props: CommonProps) {\n const className = classnames(\"core-badge-betaBadge\",\n props.className,\n );\n return <Badge\n {...props}\n svg={betaBadgeIcon}\n className={className}\n />;\n}\n"]}
1
+ {"version":3,"file":"BetaBadge.js","sourceRoot":"","sources":["../../../../src/core-react/badge/BetaBadge.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,aAAa,MAAM,+BAA+B,CAAC;AAE1D;;GAEG;AACH,MAAM,UAAU,SAAS,CAAC,KAAkB;IAC1C,MAAM,SAAS,GAAG,UAAU,CAAC,sBAAsB,EACjD,KAAK,CAAC,SAAS,CAChB,CAAC;IACF,OAAO,oBAAC,KAAK,OACP,KAAK,EACT,GAAG,EAAE,aAAa,EAClB,SAAS,EAAE,SAAS,GACpB,CAAC;AACL,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 Utilities\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { CommonProps } from \"../utils/Props\";\r\nimport { Badge } from \"./Badge\";\r\nimport betaBadgeIcon from \"./technical-preview-badge.svg\";\r\n\r\n/** Beta Badge React component\r\n * @internal\r\n */\r\nexport function BetaBadge(props: CommonProps) {\r\n const className = classnames(\"core-badge-betaBadge\",\r\n props.className,\r\n );\r\n return <Badge\r\n {...props}\r\n svg={betaBadgeIcon}\r\n className={className}\r\n />;\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"NewBadge.js","sourceRoot":"","sources":["../../../../src/core-react/badge/NewBadge.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,iBAAiB,CAAC;AACzB,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,YAAY,MAAM,yBAAyB,CAAC;AAEnD;;GAEG;AACH,MAAM,UAAU,QAAQ,CAAC,KAAkB;IACzC,MAAM,EAAE,SAAS,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAC3C,OAAO,oBAAC,KAAK,OAAK,UAAU,EAAE,SAAS,EAAE,UAAU,CAAC,gBAAgB,EAAE,SAAS,CAAC,EAAE,GAAG,EAAE,YAAY,GAAI,CAAC;AAC1G,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Utilities\n */\n\nimport \"./NewBadge.scss\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport { CommonProps } from \"../utils/Props\";\nimport { Badge } from \"./Badge\";\nimport newBadgeIcon from \"./new-feature-badge.svg\";\n\n/** New Badge React component\n * @internal\n */\nexport function NewBadge(props: CommonProps) {\n const { className, ...badgeProps } = props;\n return <Badge {...badgeProps} className={classnames(\"core-new-badge\", className)} svg={newBadgeIcon} />;\n}\n"]}
1
+ {"version":3,"file":"NewBadge.js","sourceRoot":"","sources":["../../../../src/core-react/badge/NewBadge.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,iBAAiB,CAAC;AACzB,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,YAAY,MAAM,yBAAyB,CAAC;AAEnD;;GAEG;AACH,MAAM,UAAU,QAAQ,CAAC,KAAkB;IACzC,MAAM,EAAE,SAAS,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAC3C,OAAO,oBAAC,KAAK,OAAK,UAAU,EAAE,SAAS,EAAE,UAAU,CAAC,gBAAgB,EAAE,SAAS,CAAC,EAAE,GAAG,EAAE,YAAY,GAAI,CAAC;AAC1G,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 Utilities\r\n */\r\n\r\nimport \"./NewBadge.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { CommonProps } from \"../utils/Props\";\r\nimport { Badge } from \"./Badge\";\r\nimport newBadgeIcon from \"./new-feature-badge.svg\";\r\n\r\n/** New Badge React component\r\n * @internal\r\n */\r\nexport function NewBadge(props: CommonProps) {\r\n const { className, ...badgeProps } = props;\r\n return <Badge {...badgeProps} className={classnames(\"core-new-badge\", className)} svg={newBadgeIcon} />;\r\n}\r\n"]}
@@ -1,9 +1,9 @@
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 "../style/themecolors";
6
-
7
- .core-new-badge {
8
- color: $buic-foreground-success;
9
- }
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 "../style/themecolors";
6
+
7
+ .core-new-badge {
8
+ color: var(--iui-color-text-positive);
9
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"Centered.js","sourceRoot":"","sources":["../../../../src/core-react/base/Centered.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B;;;GAGG;AACH,MAAM,UAAU,QAAQ,CAAC,KAAqB;IAC5C,OAAO,oBAAC,GAAG,OAAK,KAAK,EAAE,aAAa,EAAC,iBAAiB,GAAG,CAAC;AAC5D,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Base\n */\n\nimport * as React from \"react\";\nimport { CommonDivProps } from \"../utils/Props\";\nimport { Div } from \"./Div\";\n\n/** Centered React functional component.\n * Displays content centered vertically and horizontally.\n * @public\n */\nexport function Centered(props: CommonDivProps) {\n return <Div {...props} mainClassName=\"uicore-centered\" />;\n}\n"]}
1
+ {"version":3,"file":"Centered.js","sourceRoot":"","sources":["../../../../src/core-react/base/Centered.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B;;;GAGG;AACH,MAAM,UAAU,QAAQ,CAAC,KAAqB;IAC5C,OAAO,oBAAC,GAAG,OAAK,KAAK,EAAE,aAAa,EAAC,iBAAiB,GAAG,CAAC;AAC5D,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 Base\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { CommonDivProps } from \"../utils/Props\";\r\nimport { Div } from \"./Div\";\r\n\r\n/** Centered React functional component.\r\n * Displays content centered vertically and horizontally.\r\n * @public\r\n */\r\nexport function Centered(props: CommonDivProps) {\r\n return <Div {...props} mainClassName=\"uicore-centered\" />;\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"Div.js","sourceRoot":"","sources":["../../../../src/core-react/base/Div.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B;;GAEG;AACH,MAAM,UAAU,GAAG,CAAC,KAAe;IACjC,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,QAAQ,EAAE,GAAG,KAAK,CAAC;IAEzE,OAAO,CACL,gCAAS,QAAQ,EAAE,SAAS,EAAE,UAAU,CAAC,aAAa,EAAE,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,IAC7E,QAAQ,CACL,CACP,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Base\n */\n\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport { CommonDivProps } from \"../utils/Props\";\n\n/** Properties for the [[Div]] component\n * @public\n */\nexport interface DivProps extends CommonDivProps {\n /** Main CSS class name */\n mainClassName: string;\n}\n\n/** Base div element React component\n * @public\n */\nexport function Div(props: DivProps) {\n const { mainClassName, className, style, children, ...divProps } = props;\n\n return (\n <div {...divProps} className={classnames(mainClassName, className)} style={style} >\n {children}\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"Div.js","sourceRoot":"","sources":["../../../../src/core-react/base/Div.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B;;GAEG;AACH,MAAM,UAAU,GAAG,CAAC,KAAe;IACjC,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,QAAQ,EAAE,GAAG,KAAK,CAAC;IAEzE,OAAO,CACL,gCAAS,QAAQ,EAAE,SAAS,EAAE,UAAU,CAAC,aAAa,EAAE,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,IAC7E,QAAQ,CACL,CACP,CAAC;AACJ,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 Base\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { CommonDivProps } from \"../utils/Props\";\r\n\r\n/** Properties for the [[Div]] component\r\n * @public\r\n */\r\nexport interface DivProps extends CommonDivProps {\r\n /** Main CSS class name */\r\n mainClassName: string;\r\n}\r\n\r\n/** Base div element React component\r\n * @public\r\n */\r\nexport function Div(props: DivProps) {\r\n const { mainClassName, className, style, children, ...divProps } = props;\r\n\r\n return (\r\n <div {...divProps} className={classnames(mainClassName, className)} style={style} >\r\n {children}\r\n </div>\r\n );\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"DivWithOutsideClick.js","sourceRoot":"","sources":["../../../../src/core-react/base/DivWithOutsideClick.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGhE;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,CAAC,KAAqB,EAAE,EAAE,CAAC,CAAC,gCAAS,KAAK,GAAI,CAAC,CAAC,CAAC,CAAC,2DAA2D","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Base\n */\n\nimport * as React from \"react\";\nimport { withOnOutsideClick } from \"../hocs/withOnOutsideClick\";\nimport { CommonDivProps } from \"../utils/Props\";\n\n/** Div element with Outside Click behavior\n * @public\n */\nexport const DivWithOutsideClick = withOnOutsideClick((props: CommonDivProps) => (<div {...props} />)); // eslint-disable-line @typescript-eslint/naming-convention\n"]}
1
+ {"version":3,"file":"DivWithOutsideClick.js","sourceRoot":"","sources":["../../../../src/core-react/base/DivWithOutsideClick.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGhE;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,CAAC,KAAqB,EAAE,EAAE,CAAC,CAAC,gCAAS,KAAK,GAAI,CAAC,CAAC,CAAC,CAAC,2DAA2D","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 Base\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { withOnOutsideClick } from \"../hocs/withOnOutsideClick\";\r\nimport { CommonDivProps } from \"../utils/Props\";\r\n\r\n/** Div element with Outside Click behavior\r\n * @public\r\n */\r\nexport const DivWithOutsideClick = withOnOutsideClick((props: CommonDivProps) => (<div {...props} />)); // eslint-disable-line @typescript-eslint/naming-convention\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"FillCentered.js","sourceRoot":"","sources":["../../../../src/core-react/base/FillCentered.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,KAAqB;IAChD,OAAO,oBAAC,GAAG,OAAK,KAAK,EAAE,aAAa,EAAC,sBAAsB,GAAG,CAAC;AACjE,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Base\n */\n\nimport * as React from \"react\";\nimport { CommonDivProps } from \"../utils/Props\";\nimport { Div } from \"./Div\";\n\n/** Full height & width and centered React functional component.\n * Displays content centered vertically and horizontally and has a height and width of 100%.\n * @public\n */\nexport function FillCentered(props: CommonDivProps) {\n return <Div {...props} mainClassName=\"uicore-fill-centered\" />;\n}\n"]}
1
+ {"version":3,"file":"FillCentered.js","sourceRoot":"","sources":["../../../../src/core-react/base/FillCentered.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B;;;GAGG;AACH,MAAM,UAAU,YAAY,CAAC,KAAqB;IAChD,OAAO,oBAAC,GAAG,OAAK,KAAK,EAAE,aAAa,EAAC,sBAAsB,GAAG,CAAC;AACjE,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 Base\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { CommonDivProps } from \"../utils/Props\";\r\nimport { Div } from \"./Div\";\r\n\r\n/** Full height & width and centered React functional component.\r\n * Displays content centered vertically and horizontally and has a height and width of 100%.\r\n * @public\r\n */\r\nexport function FillCentered(props: CommonDivProps) {\r\n return <Div {...props} mainClassName=\"uicore-fill-centered\" />;\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"FlexWrapContainer.js","sourceRoot":"","sources":["../../../../src/core-react/base/FlexWrapContainer.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAqB;IACrD,OAAO,oBAAC,GAAG,OAAK,KAAK,EAAE,aAAa,EAAC,4BAA4B,GAAG,CAAC;AACvE,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Base\n */\n\nimport * as React from \"react\";\nimport { CommonDivProps } from \"../utils/Props\";\nimport { Div } from \"./Div\";\n\n/** Flex Wrap Container React functional component.\n * Wraps content onto multiple lines and\n * has the 'display: flex' and 'flex-wrap: wrap' CSS properties.\n * @public\n */\nexport function FlexWrapContainer(props: CommonDivProps) {\n return <Div {...props} mainClassName=\"uicore-flex-wrap-container\" />;\n}\n"]}
1
+ {"version":3,"file":"FlexWrapContainer.js","sourceRoot":"","sources":["../../../../src/core-react/base/FlexWrapContainer.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAqB;IACrD,OAAO,oBAAC,GAAG,OAAK,KAAK,EAAE,aAAa,EAAC,4BAA4B,GAAG,CAAC;AACvE,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 Base\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { CommonDivProps } from \"../utils/Props\";\r\nimport { Div } from \"./Div\";\r\n\r\n/** Flex Wrap Container React functional component.\r\n * Wraps content onto multiple lines and\r\n * has the 'display: flex' and 'flex-wrap: wrap' CSS properties.\r\n * @public\r\n */\r\nexport function FlexWrapContainer(props: CommonDivProps) {\r\n return <Div {...props} mainClassName=\"uicore-flex-wrap-container\" />;\r\n}\r\n"]}
@@ -11,7 +11,7 @@ import * as React from "react";
11
11
  */
12
12
  export function Gap(props) {
13
13
  const { size, style, ...rest } = props;
14
- const paddingLeft = size !== null && size !== void 0 ? size : "10px";
14
+ const paddingLeft = size ?? "10px";
15
15
  return (React.createElement("span", { style: { ...style, paddingLeft }, ...rest }));
16
16
  }
17
17
  //# sourceMappingURL=Gap.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Gap.js","sourceRoot":"","sources":["../../../../src/core-react/base/Gap.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B;;GAEG;AACH,MAAM,UAAU,GAAG,CAAC,KAAe;IACjC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IACvC,MAAM,WAAW,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,MAAM,CAAC;IAEnC,OAAO,CACL,8BAAM,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,WAAW,EAAE,KAAM,IAAI,GAAI,CACrD,CAAC;AACJ,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Base\n */\n\nimport * as React from \"react\";\nimport { CommonProps } from \"../utils/Props\";\n\n/** Properties for the [[Gap]] component.\n * @public\n */\nexport interface GapProps extends CommonProps {\n size?: string;\n}\n\n/** Horizontal gap or space React component. Defaults to 10px.\n * @public\n */\nexport function Gap(props: GapProps) {\n const { size, style, ...rest } = props;\n const paddingLeft = size ?? \"10px\";\n\n return (\n <span style={{ ...style, paddingLeft }} {...rest} />\n );\n}\n"]}
1
+ {"version":3,"file":"Gap.js","sourceRoot":"","sources":["../../../../src/core-react/base/Gap.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B;;GAEG;AACH,MAAM,UAAU,GAAG,CAAC,KAAe;IACjC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IACvC,MAAM,WAAW,GAAG,IAAI,IAAI,MAAM,CAAC;IAEnC,OAAO,CACL,8BAAM,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,WAAW,EAAE,KAAM,IAAI,GAAI,CACrD,CAAC;AACJ,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 Base\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { CommonProps } from \"../utils/Props\";\r\n\r\n/** Properties for the [[Gap]] component.\r\n * @public\r\n */\r\nexport interface GapProps extends CommonProps {\r\n size?: string;\r\n}\r\n\r\n/** Horizontal gap or space React component. Defaults to 10px.\r\n * @public\r\n */\r\nexport function Gap(props: GapProps) {\r\n const { size, style, ...rest } = props;\r\n const paddingLeft = size ?? \"10px\";\r\n\r\n return (\r\n <span style={{ ...style, paddingLeft }} {...rest} />\r\n );\r\n}\r\n"]}