@itwin/core-react 4.0.0-dev.1 → 4.0.0-dev.11

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 (728) hide show
  1. package/CHANGELOG.md +1 -93
  2. package/lib/cjs/core-react/UiCore.d.ts +1 -1
  3. package/lib/cjs/core-react/UiCore.js +1 -1
  4. package/lib/cjs/core-react/UiCore.js.map +1 -1
  5. package/lib/cjs/core-react/_typography.scss +7 -8
  6. package/lib/cjs/core-react/autosuggest/AutoSuggest.js +1 -1
  7. package/lib/cjs/core-react/autosuggest/AutoSuggest.js.map +1 -1
  8. package/lib/cjs/core-react/autosuggest/AutoSuggest.scss +7 -10
  9. package/lib/cjs/core-react/badge/BetaBadge.d.ts +0 -1
  10. package/lib/cjs/core-react/badge/BetaBadge.d.ts.map +1 -1
  11. package/lib/cjs/core-react/badge/BetaBadge.js +0 -1
  12. package/lib/cjs/core-react/badge/BetaBadge.js.map +1 -1
  13. package/lib/cjs/core-react/badge/NewBadge.scss +1 -1
  14. package/lib/cjs/core-react/button/blue.scss +3 -11
  15. package/lib/cjs/core-react/button/button.scss +31 -42
  16. package/lib/cjs/core-react/button/hollow.scss +5 -5
  17. package/lib/cjs/core-react/button/primary.scss +3 -11
  18. package/lib/cjs/core-react/button/variables.scss +10 -7
  19. package/lib/cjs/core-react/checkbox/checkbox.scss +15 -20
  20. package/lib/cjs/core-react/checklistbox/CheckListBox.d.ts +4 -1
  21. package/lib/cjs/core-react/checklistbox/CheckListBox.d.ts.map +1 -1
  22. package/lib/cjs/core-react/checklistbox/CheckListBox.js.map +1 -1
  23. package/lib/cjs/core-react/checklistbox/CheckListBox.scss +1 -1
  24. package/lib/cjs/core-react/classes.scss +0 -5
  25. package/lib/cjs/core-react/colorthemes.scss +15 -12
  26. package/lib/cjs/core-react/colorvariables.scss +65 -50
  27. package/lib/cjs/core-react/contextmenu/ContextMenu.d.ts +2 -0
  28. package/lib/cjs/core-react/contextmenu/ContextMenu.d.ts.map +1 -1
  29. package/lib/cjs/core-react/contextmenu/ContextMenu.js.map +1 -1
  30. package/lib/cjs/core-react/contextmenu/ContextMenu.scss +19 -21
  31. package/lib/cjs/core-react/contextmenu/ContextSubMenu.d.ts.map +1 -1
  32. package/lib/cjs/core-react/contextmenu/ContextSubMenu.js +5 -2
  33. package/lib/cjs/core-react/contextmenu/ContextSubMenu.js.map +1 -1
  34. package/lib/cjs/core-react/contextmenu/GlobalContextMenu.d.ts.map +1 -1
  35. package/lib/cjs/core-react/contextmenu/GlobalContextMenu.js +7 -3
  36. package/lib/cjs/core-react/contextmenu/GlobalContextMenu.js.map +1 -1
  37. package/lib/cjs/core-react/dialog/Dialog.d.ts.map +1 -1
  38. package/lib/cjs/core-react/dialog/Dialog.js +16 -7
  39. package/lib/cjs/core-react/dialog/Dialog.js.map +1 -1
  40. package/lib/cjs/core-react/dialog/Dialog.scss +27 -27
  41. package/lib/cjs/core-react/elementseparator/ElementSeparator.scss +1 -1
  42. package/lib/cjs/core-react/expandable/ExpandableList.d.ts +2 -0
  43. package/lib/cjs/core-react/expandable/ExpandableList.d.ts.map +1 -1
  44. package/lib/cjs/core-react/expandable/ExpandableList.js.map +1 -1
  45. package/lib/cjs/core-react/expandable/list.scss +7 -17
  46. package/lib/cjs/core-react/hocs/withTimeout.js.map +1 -1
  47. package/lib/cjs/core-react/icons/ConditionalIconItem.d.ts +27 -0
  48. package/lib/cjs/core-react/icons/ConditionalIconItem.d.ts.map +1 -0
  49. package/lib/cjs/core-react/icons/ConditionalIconItem.js +65 -0
  50. package/lib/cjs/core-react/icons/ConditionalIconItem.js.map +1 -0
  51. package/lib/cjs/core-react/icons/IconComponent.d.ts +3 -2
  52. package/lib/cjs/core-react/icons/IconComponent.d.ts.map +1 -1
  53. package/lib/cjs/core-react/icons/IconComponent.js +1 -7
  54. package/lib/cjs/core-react/icons/IconComponent.js.map +1 -1
  55. package/lib/cjs/core-react/icons/SvgPath.d.ts +1 -1
  56. package/lib/cjs/core-react/icons/SvgPath.d.ts.map +1 -1
  57. package/lib/cjs/core-react/icons/SvgPath.js +2 -2
  58. package/lib/cjs/core-react/icons/SvgPath.js.map +1 -1
  59. package/lib/{esm/core-react/icons/SvgSprite.scss → cjs/core-react/icons/SvgPath.scss} +1 -1
  60. package/lib/cjs/core-react/icons/WebFontIcon.d.ts +0 -1
  61. package/lib/cjs/core-react/icons/WebFontIcon.d.ts.map +1 -1
  62. package/lib/cjs/core-react/icons/WebFontIcon.js +0 -1
  63. package/lib/cjs/core-react/icons/WebFontIcon.js.map +1 -1
  64. package/lib/cjs/core-react/icons/variables.scss +0 -9
  65. package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.scss +6 -7
  66. package/lib/cjs/core-react/index.scss +0 -4
  67. package/lib/cjs/core-react/inputs/Input.d.ts +2 -4
  68. package/lib/cjs/core-react/inputs/Input.d.ts.map +1 -1
  69. package/lib/cjs/core-react/inputs/Input.js +1 -2
  70. package/lib/cjs/core-react/inputs/Input.js.map +1 -1
  71. package/lib/cjs/core-react/inputs/InputLabel.d.ts +2 -0
  72. package/lib/cjs/core-react/inputs/InputLabel.d.ts.map +1 -1
  73. package/lib/cjs/core-react/inputs/InputLabel.js +9 -1
  74. package/lib/cjs/core-react/inputs/InputLabel.js.map +1 -1
  75. package/lib/cjs/core-react/inputs/classes.scss +0 -2
  76. package/lib/cjs/core-react/inputs/index.scss +1 -3
  77. package/lib/cjs/core-react/inputs/input-label.scss +90 -0
  78. package/lib/cjs/core-react/inputs/input.scss +36 -38
  79. package/lib/cjs/core-react/inputs/numberinput/NumberInput.d.ts +5 -0
  80. package/lib/cjs/core-react/inputs/numberinput/NumberInput.d.ts.map +1 -1
  81. package/lib/cjs/core-react/inputs/numberinput/NumberInput.js +13 -8
  82. package/lib/cjs/core-react/inputs/numberinput/NumberInput.js.map +1 -1
  83. package/lib/cjs/core-react/inputs/numberinput/NumberInput.scss +12 -13
  84. package/lib/cjs/core-react/inputs/variables.scss +20 -15
  85. package/lib/cjs/core-react/listbox/Listbox.scss +11 -11
  86. package/lib/cjs/core-react/loading/LoadingPrompt.scss +2 -2
  87. package/lib/cjs/core-react/loading/LoadingSpinner.d.ts +1 -2
  88. package/lib/cjs/core-react/loading/LoadingSpinner.d.ts.map +1 -1
  89. package/lib/cjs/core-react/loading/LoadingSpinner.js +1 -16
  90. package/lib/cjs/core-react/loading/LoadingSpinner.js.map +1 -1
  91. package/lib/cjs/core-react/loading/LoadingSpinner.scss +5 -6
  92. package/lib/cjs/core-react/messagebox/MessageBox.d.ts +17 -1
  93. package/lib/cjs/core-react/messagebox/MessageBox.d.ts.map +1 -1
  94. package/lib/cjs/core-react/messagebox/MessageBox.js +54 -10
  95. package/lib/cjs/core-react/messagebox/MessageBox.js.map +1 -1
  96. package/lib/cjs/core-react/messagebox/MessageBox.scss +24 -14
  97. package/lib/cjs/core-react/popup/Popup.d.ts +2 -0
  98. package/lib/cjs/core-react/popup/Popup.d.ts.map +1 -1
  99. package/lib/cjs/core-react/popup/Popup.js +4 -1
  100. package/lib/cjs/core-react/popup/Popup.js.map +1 -1
  101. package/lib/cjs/core-react/popup/Popup.scss +123 -123
  102. package/lib/cjs/core-react/radialmenu/RadialMenu.d.ts +4 -0
  103. package/lib/cjs/core-react/radialmenu/RadialMenu.d.ts.map +1 -1
  104. package/lib/cjs/core-react/radialmenu/RadialMenu.js.map +1 -1
  105. package/lib/cjs/core-react/radialmenu/RadialMenu.scss +2 -3
  106. package/lib/cjs/core-react/searchbox/SearchBox.d.ts.map +1 -1
  107. package/lib/cjs/core-react/searchbox/SearchBox.js +8 -6
  108. package/lib/cjs/core-react/searchbox/SearchBox.js.map +1 -1
  109. package/lib/cjs/core-react/searchbox/SearchBox.scss +5 -10
  110. package/lib/cjs/core-react/settings/SettingsContainer.js +1 -1
  111. package/lib/cjs/core-react/settings/SettingsContainer.js.map +1 -1
  112. package/lib/cjs/core-react/settings/SettingsContainer.scss +11 -8
  113. package/lib/cjs/core-react/style/baseline.scss +6 -8
  114. package/lib/cjs/core-react/style/data-viz.scss +11 -14
  115. package/lib/cjs/core-react/style/mixins.scss +2 -3
  116. package/lib/cjs/core-react/style/opacity.scss +9 -10
  117. package/lib/cjs/core-react/style/space.scss +9 -13
  118. package/lib/cjs/core-react/style/speed.scss +3 -7
  119. package/lib/cjs/core-react/style/themecolors.scss +0 -6
  120. package/lib/cjs/core-react/style/typography.scss +22 -26
  121. package/lib/cjs/core-react/style/variables.scss +4 -8
  122. package/lib/cjs/core-react/tabs/Tabs.d.ts +1 -1
  123. package/lib/cjs/core-react/tabs/Tabs.js.map +1 -1
  124. package/lib/cjs/core-react/tabs/classes.scss +0 -1
  125. package/lib/cjs/core-react/tabs/index.scss +0 -1
  126. package/lib/cjs/core-react/tabs/tabs.scss +40 -61
  127. package/lib/cjs/core-react/tabs/vertical.scss +20 -33
  128. package/lib/cjs/core-react/text/BlockText.d.ts.map +1 -1
  129. package/lib/cjs/core-react/text/BlockText.js +1 -0
  130. package/lib/cjs/core-react/text/BlockText.js.map +1 -1
  131. package/lib/cjs/core-react/text/BodyText.d.ts +1 -0
  132. package/lib/cjs/core-react/text/BodyText.d.ts.map +1 -1
  133. package/lib/cjs/core-react/text/BodyText.js +2 -0
  134. package/lib/cjs/core-react/text/BodyText.js.map +1 -1
  135. package/lib/cjs/core-react/text/DisabledText.d.ts.map +1 -1
  136. package/lib/cjs/core-react/text/DisabledText.js +1 -0
  137. package/lib/cjs/core-react/text/DisabledText.js.map +1 -1
  138. package/lib/cjs/core-react/text/MutedText.d.ts +1 -0
  139. package/lib/cjs/core-react/text/MutedText.d.ts.map +1 -1
  140. package/lib/cjs/core-react/text/MutedText.js +2 -0
  141. package/lib/cjs/core-react/text/MutedText.js.map +1 -1
  142. package/lib/cjs/core-react/text/StyledText.d.ts +1 -0
  143. package/lib/cjs/core-react/text/StyledText.d.ts.map +1 -1
  144. package/lib/cjs/core-react/text/StyledText.js +1 -0
  145. package/lib/cjs/core-react/text/StyledText.js.map +1 -1
  146. package/lib/cjs/core-react/text/block.scss +9 -4
  147. package/lib/cjs/core-react/text/body.scss +7 -4
  148. package/lib/cjs/core-react/text/classes.scss +0 -8
  149. package/lib/cjs/core-react/text/index.scss +0 -8
  150. package/lib/cjs/core-react/text/mixins.scss +10 -48
  151. package/lib/cjs/core-react/tree/ExpansionToggle.d.ts.map +1 -1
  152. package/lib/cjs/core-react/tree/ExpansionToggle.js +3 -1
  153. package/lib/cjs/core-react/tree/ExpansionToggle.js.map +1 -1
  154. package/lib/cjs/core-react/tree/ExpansionToggle.scss +7 -4
  155. package/lib/cjs/core-react/tree/Node.scss +8 -9
  156. package/lib/cjs/core-react/tree/Placeholder.scss +1 -4
  157. package/lib/cjs/core-react/utils/hooks/useProximityToMouse.d.ts.map +1 -1
  158. package/lib/cjs/core-react/utils/hooks/useProximityToMouse.js +2 -2
  159. package/lib/cjs/core-react/utils/hooks/useProximityToMouse.js.map +1 -1
  160. package/lib/cjs/core-react/utils/hooks/useRefs.d.ts +1 -1
  161. package/lib/cjs/core-react/utils/hooks/useRefs.d.ts.map +1 -1
  162. package/lib/cjs/core-react/utils/hooks/useRefs.js.map +1 -1
  163. package/lib/cjs/core-react.d.ts +2 -41
  164. package/lib/cjs/core-react.d.ts.map +1 -1
  165. package/lib/cjs/core-react.js +2 -41
  166. package/lib/cjs/core-react.js.map +1 -1
  167. package/lib/esm/core-react/UiCore.d.ts +1 -1
  168. package/lib/esm/core-react/UiCore.js +1 -1
  169. package/lib/esm/core-react/UiCore.js.map +1 -1
  170. package/lib/esm/core-react/_typography.scss +7 -8
  171. package/lib/esm/core-react/autosuggest/AutoSuggest.js +1 -1
  172. package/lib/esm/core-react/autosuggest/AutoSuggest.js.map +1 -1
  173. package/lib/esm/core-react/autosuggest/AutoSuggest.scss +7 -10
  174. package/lib/esm/core-react/badge/BetaBadge.d.ts +0 -1
  175. package/lib/esm/core-react/badge/BetaBadge.d.ts.map +1 -1
  176. package/lib/esm/core-react/badge/BetaBadge.js +0 -1
  177. package/lib/esm/core-react/badge/BetaBadge.js.map +1 -1
  178. package/lib/esm/core-react/badge/NewBadge.scss +1 -1
  179. package/lib/esm/core-react/button/blue.scss +3 -11
  180. package/lib/esm/core-react/button/button.scss +31 -42
  181. package/lib/esm/core-react/button/hollow.scss +5 -5
  182. package/lib/esm/core-react/button/primary.scss +3 -11
  183. package/lib/esm/core-react/button/variables.scss +10 -7
  184. package/lib/esm/core-react/checkbox/checkbox.scss +15 -20
  185. package/lib/esm/core-react/checklistbox/CheckListBox.d.ts +4 -1
  186. package/lib/esm/core-react/checklistbox/CheckListBox.d.ts.map +1 -1
  187. package/lib/esm/core-react/checklistbox/CheckListBox.js.map +1 -1
  188. package/lib/esm/core-react/checklistbox/CheckListBox.scss +1 -1
  189. package/lib/esm/core-react/classes.scss +0 -5
  190. package/lib/esm/core-react/colorthemes.scss +15 -12
  191. package/lib/esm/core-react/colorvariables.scss +65 -50
  192. package/lib/esm/core-react/contextmenu/ContextMenu.d.ts +2 -0
  193. package/lib/esm/core-react/contextmenu/ContextMenu.d.ts.map +1 -1
  194. package/lib/esm/core-react/contextmenu/ContextMenu.js.map +1 -1
  195. package/lib/esm/core-react/contextmenu/ContextMenu.scss +19 -21
  196. package/lib/esm/core-react/contextmenu/ContextSubMenu.d.ts.map +1 -1
  197. package/lib/esm/core-react/contextmenu/ContextSubMenu.js +6 -3
  198. package/lib/esm/core-react/contextmenu/ContextSubMenu.js.map +1 -1
  199. package/lib/esm/core-react/contextmenu/GlobalContextMenu.d.ts.map +1 -1
  200. package/lib/esm/core-react/contextmenu/GlobalContextMenu.js +7 -3
  201. package/lib/esm/core-react/contextmenu/GlobalContextMenu.js.map +1 -1
  202. package/lib/esm/core-react/dialog/Dialog.d.ts.map +1 -1
  203. package/lib/esm/core-react/dialog/Dialog.js +16 -7
  204. package/lib/esm/core-react/dialog/Dialog.js.map +1 -1
  205. package/lib/esm/core-react/dialog/Dialog.scss +27 -27
  206. package/lib/esm/core-react/elementseparator/ElementSeparator.scss +1 -1
  207. package/lib/esm/core-react/expandable/ExpandableList.d.ts +2 -0
  208. package/lib/esm/core-react/expandable/ExpandableList.d.ts.map +1 -1
  209. package/lib/esm/core-react/expandable/ExpandableList.js.map +1 -1
  210. package/lib/esm/core-react/expandable/list.scss +7 -17
  211. package/lib/esm/core-react/hocs/withTimeout.js.map +1 -1
  212. package/lib/esm/core-react/icons/ConditionalIconItem.d.ts +27 -0
  213. package/lib/esm/core-react/icons/ConditionalIconItem.d.ts.map +1 -0
  214. package/lib/esm/core-react/icons/ConditionalIconItem.js +61 -0
  215. package/lib/esm/core-react/icons/ConditionalIconItem.js.map +1 -0
  216. package/lib/esm/core-react/icons/IconComponent.d.ts +3 -2
  217. package/lib/esm/core-react/icons/IconComponent.d.ts.map +1 -1
  218. package/lib/esm/core-react/icons/IconComponent.js +1 -7
  219. package/lib/esm/core-react/icons/IconComponent.js.map +1 -1
  220. package/lib/esm/core-react/icons/SvgPath.d.ts +1 -1
  221. package/lib/esm/core-react/icons/SvgPath.d.ts.map +1 -1
  222. package/lib/esm/core-react/icons/SvgPath.js +2 -2
  223. package/lib/esm/core-react/icons/SvgPath.js.map +1 -1
  224. package/lib/{cjs/core-react/icons/SvgSprite.scss → esm/core-react/icons/SvgPath.scss} +1 -1
  225. package/lib/esm/core-react/icons/WebFontIcon.d.ts +0 -1
  226. package/lib/esm/core-react/icons/WebFontIcon.d.ts.map +1 -1
  227. package/lib/esm/core-react/icons/WebFontIcon.js +0 -1
  228. package/lib/esm/core-react/icons/WebFontIcon.js.map +1 -1
  229. package/lib/esm/core-react/icons/variables.scss +0 -9
  230. package/lib/esm/core-react/imagecheckbox/ImageCheckBox.scss +6 -7
  231. package/lib/esm/core-react/index.scss +0 -4
  232. package/lib/esm/core-react/inputs/Input.d.ts +2 -4
  233. package/lib/esm/core-react/inputs/Input.d.ts.map +1 -1
  234. package/lib/esm/core-react/inputs/Input.js +1 -2
  235. package/lib/esm/core-react/inputs/Input.js.map +1 -1
  236. package/lib/esm/core-react/inputs/InputLabel.d.ts +2 -0
  237. package/lib/esm/core-react/inputs/InputLabel.d.ts.map +1 -1
  238. package/lib/esm/core-react/inputs/InputLabel.js +9 -1
  239. package/lib/esm/core-react/inputs/InputLabel.js.map +1 -1
  240. package/lib/esm/core-react/inputs/classes.scss +0 -2
  241. package/lib/esm/core-react/inputs/index.scss +1 -3
  242. package/lib/esm/core-react/inputs/input-label.scss +90 -0
  243. package/lib/esm/core-react/inputs/input.scss +36 -38
  244. package/lib/esm/core-react/inputs/numberinput/NumberInput.d.ts +5 -0
  245. package/lib/esm/core-react/inputs/numberinput/NumberInput.d.ts.map +1 -1
  246. package/lib/esm/core-react/inputs/numberinput/NumberInput.js +13 -8
  247. package/lib/esm/core-react/inputs/numberinput/NumberInput.js.map +1 -1
  248. package/lib/esm/core-react/inputs/numberinput/NumberInput.scss +12 -13
  249. package/lib/esm/core-react/inputs/variables.scss +20 -15
  250. package/lib/esm/core-react/listbox/Listbox.scss +11 -11
  251. package/lib/esm/core-react/loading/LoadingPrompt.scss +2 -2
  252. package/lib/esm/core-react/loading/LoadingSpinner.d.ts +1 -2
  253. package/lib/esm/core-react/loading/LoadingSpinner.d.ts.map +1 -1
  254. package/lib/esm/core-react/loading/LoadingSpinner.js +1 -16
  255. package/lib/esm/core-react/loading/LoadingSpinner.js.map +1 -1
  256. package/lib/esm/core-react/loading/LoadingSpinner.scss +5 -6
  257. package/lib/esm/core-react/messagebox/MessageBox.d.ts +17 -1
  258. package/lib/esm/core-react/messagebox/MessageBox.d.ts.map +1 -1
  259. package/lib/esm/core-react/messagebox/MessageBox.js +54 -10
  260. package/lib/esm/core-react/messagebox/MessageBox.js.map +1 -1
  261. package/lib/esm/core-react/messagebox/MessageBox.scss +24 -14
  262. package/lib/esm/core-react/popup/Popup.d.ts +2 -0
  263. package/lib/esm/core-react/popup/Popup.d.ts.map +1 -1
  264. package/lib/esm/core-react/popup/Popup.js +4 -1
  265. package/lib/esm/core-react/popup/Popup.js.map +1 -1
  266. package/lib/esm/core-react/popup/Popup.scss +123 -123
  267. package/lib/esm/core-react/radialmenu/RadialMenu.d.ts +4 -0
  268. package/lib/esm/core-react/radialmenu/RadialMenu.d.ts.map +1 -1
  269. package/lib/esm/core-react/radialmenu/RadialMenu.js.map +1 -1
  270. package/lib/esm/core-react/radialmenu/RadialMenu.scss +2 -3
  271. package/lib/esm/core-react/searchbox/SearchBox.d.ts.map +1 -1
  272. package/lib/esm/core-react/searchbox/SearchBox.js +8 -6
  273. package/lib/esm/core-react/searchbox/SearchBox.js.map +1 -1
  274. package/lib/esm/core-react/searchbox/SearchBox.scss +5 -10
  275. package/lib/esm/core-react/settings/SettingsContainer.js +1 -1
  276. package/lib/esm/core-react/settings/SettingsContainer.js.map +1 -1
  277. package/lib/esm/core-react/settings/SettingsContainer.scss +11 -8
  278. package/lib/esm/core-react/style/baseline.scss +6 -8
  279. package/lib/esm/core-react/style/data-viz.scss +11 -14
  280. package/lib/esm/core-react/style/mixins.scss +2 -3
  281. package/lib/esm/core-react/style/opacity.scss +9 -10
  282. package/lib/esm/core-react/style/space.scss +9 -13
  283. package/lib/esm/core-react/style/speed.scss +3 -7
  284. package/lib/esm/core-react/style/themecolors.scss +0 -6
  285. package/lib/esm/core-react/style/typography.scss +22 -26
  286. package/lib/esm/core-react/style/variables.scss +4 -8
  287. package/lib/esm/core-react/tabs/Tabs.d.ts +1 -1
  288. package/lib/esm/core-react/tabs/Tabs.js.map +1 -1
  289. package/lib/esm/core-react/tabs/classes.scss +0 -1
  290. package/lib/esm/core-react/tabs/index.scss +0 -1
  291. package/lib/esm/core-react/tabs/tabs.scss +40 -61
  292. package/lib/esm/core-react/tabs/vertical.scss +20 -33
  293. package/lib/esm/core-react/text/BlockText.d.ts.map +1 -1
  294. package/lib/esm/core-react/text/BlockText.js +1 -0
  295. package/lib/esm/core-react/text/BlockText.js.map +1 -1
  296. package/lib/esm/core-react/text/BodyText.d.ts +1 -0
  297. package/lib/esm/core-react/text/BodyText.d.ts.map +1 -1
  298. package/lib/esm/core-react/text/BodyText.js +2 -0
  299. package/lib/esm/core-react/text/BodyText.js.map +1 -1
  300. package/lib/esm/core-react/text/DisabledText.d.ts.map +1 -1
  301. package/lib/esm/core-react/text/DisabledText.js +1 -0
  302. package/lib/esm/core-react/text/DisabledText.js.map +1 -1
  303. package/lib/esm/core-react/text/MutedText.d.ts +1 -0
  304. package/lib/esm/core-react/text/MutedText.d.ts.map +1 -1
  305. package/lib/esm/core-react/text/MutedText.js +2 -0
  306. package/lib/esm/core-react/text/MutedText.js.map +1 -1
  307. package/lib/esm/core-react/text/StyledText.d.ts +1 -0
  308. package/lib/esm/core-react/text/StyledText.d.ts.map +1 -1
  309. package/lib/esm/core-react/text/StyledText.js +1 -0
  310. package/lib/esm/core-react/text/StyledText.js.map +1 -1
  311. package/lib/esm/core-react/text/block.scss +9 -4
  312. package/lib/esm/core-react/text/body.scss +7 -4
  313. package/lib/esm/core-react/text/classes.scss +0 -8
  314. package/lib/esm/core-react/text/index.scss +0 -8
  315. package/lib/esm/core-react/text/mixins.scss +10 -48
  316. package/lib/esm/core-react/tree/ExpansionToggle.d.ts.map +1 -1
  317. package/lib/esm/core-react/tree/ExpansionToggle.js +3 -1
  318. package/lib/esm/core-react/tree/ExpansionToggle.js.map +1 -1
  319. package/lib/esm/core-react/tree/ExpansionToggle.scss +7 -4
  320. package/lib/esm/core-react/tree/Node.scss +8 -9
  321. package/lib/esm/core-react/tree/Placeholder.scss +1 -4
  322. package/lib/esm/core-react/utils/hooks/useProximityToMouse.d.ts.map +1 -1
  323. package/lib/esm/core-react/utils/hooks/useProximityToMouse.js +2 -2
  324. package/lib/esm/core-react/utils/hooks/useProximityToMouse.js.map +1 -1
  325. package/lib/esm/core-react/utils/hooks/useRefs.d.ts +1 -1
  326. package/lib/esm/core-react/utils/hooks/useRefs.d.ts.map +1 -1
  327. package/lib/esm/core-react/utils/hooks/useRefs.js.map +1 -1
  328. package/lib/esm/core-react.d.ts +2 -41
  329. package/lib/esm/core-react.d.ts.map +1 -1
  330. package/lib/esm/core-react.js +2 -41
  331. package/lib/esm/core-react.js.map +1 -1
  332. package/package.json +27 -35
  333. package/lib/cjs/core-react/badge/BetaBadge.scss +0 -9
  334. package/lib/cjs/core-react/button/Button.d.ts +0 -48
  335. package/lib/cjs/core-react/button/Button.d.ts.map +0 -1
  336. package/lib/cjs/core-react/button/Button.js +0 -86
  337. package/lib/cjs/core-react/button/Button.js.map +0 -1
  338. package/lib/cjs/core-react/checkbox/Checkbox.d.ts +0 -57
  339. package/lib/cjs/core-react/checkbox/Checkbox.d.ts.map +0 -1
  340. package/lib/cjs/core-react/checkbox/Checkbox.js +0 -65
  341. package/lib/cjs/core-react/checkbox/Checkbox.js.map +0 -1
  342. package/lib/cjs/core-react/dialog/DialogButtonDef.d.ts +0 -47
  343. package/lib/cjs/core-react/dialog/DialogButtonDef.d.ts.map +0 -1
  344. package/lib/cjs/core-react/dialog/DialogButtonDef.js +0 -38
  345. package/lib/cjs/core-react/dialog/DialogButtonDef.js.map +0 -1
  346. package/lib/cjs/core-react/expandable/ExpandableBlock.d.ts +0 -34
  347. package/lib/cjs/core-react/expandable/ExpandableBlock.d.ts.map +0 -1
  348. package/lib/cjs/core-react/expandable/ExpandableBlock.js +0 -36
  349. package/lib/cjs/core-react/expandable/ExpandableBlock.js.map +0 -1
  350. package/lib/cjs/core-react/expandable/ExpandableBlock.scss +0 -145
  351. package/lib/cjs/core-react/form/Field.d.ts +0 -20
  352. package/lib/cjs/core-react/form/Field.d.ts.map +0 -1
  353. package/lib/cjs/core-react/form/Field.js +0 -45
  354. package/lib/cjs/core-react/form/Field.js.map +0 -1
  355. package/lib/cjs/core-react/form/Form.d.ts +0 -132
  356. package/lib/cjs/core-react/form/Form.d.ts.map +0 -1
  357. package/lib/cjs/core-react/form/Form.js +0 -132
  358. package/lib/cjs/core-react/form/Form.js.map +0 -1
  359. package/lib/cjs/core-react/form/Form.scss +0 -78
  360. package/lib/cjs/core-react/icons/SvgSprite.d.ts +0 -21
  361. package/lib/cjs/core-react/icons/SvgSprite.d.ts.map +0 -1
  362. package/lib/cjs/core-react/icons/SvgSprite.js +0 -27
  363. package/lib/cjs/core-react/icons/SvgSprite.js.map +0 -1
  364. package/lib/cjs/core-react/inputs/LabeledInput.d.ts +0 -18
  365. package/lib/cjs/core-react/inputs/LabeledInput.d.ts.map +0 -1
  366. package/lib/cjs/core-react/inputs/LabeledInput.js +0 -34
  367. package/lib/cjs/core-react/inputs/LabeledInput.js.map +0 -1
  368. package/lib/cjs/core-react/inputs/LabeledTextarea.d.ts +0 -18
  369. package/lib/cjs/core-react/inputs/LabeledTextarea.d.ts.map +0 -1
  370. package/lib/cjs/core-react/inputs/LabeledTextarea.js +0 -32
  371. package/lib/cjs/core-react/inputs/LabeledTextarea.js.map +0 -1
  372. package/lib/cjs/core-react/inputs/Textarea.d.ts +0 -23
  373. package/lib/cjs/core-react/inputs/Textarea.d.ts.map +0 -1
  374. package/lib/cjs/core-react/inputs/Textarea.js +0 -36
  375. package/lib/cjs/core-react/inputs/Textarea.js.map +0 -1
  376. package/lib/cjs/core-react/inputs/labeled-input.scss +0 -103
  377. package/lib/cjs/core-react/inputs/labeled-textarea.scss +0 -77
  378. package/lib/cjs/core-react/inputs/textarea.scss +0 -55
  379. package/lib/cjs/core-react/loading/Spinner.d.ts +0 -38
  380. package/lib/cjs/core-react/loading/Spinner.d.ts.map +0 -1
  381. package/lib/cjs/core-react/loading/Spinner.js +0 -61
  382. package/lib/cjs/core-react/loading/Spinner.js.map +0 -1
  383. package/lib/cjs/core-react/loading/Spinner.scss +0 -26
  384. package/lib/cjs/core-react/messagebox/MessageSeverity.d.ts +0 -16
  385. package/lib/cjs/core-react/messagebox/MessageSeverity.d.ts.map +0 -1
  386. package/lib/cjs/core-react/messagebox/MessageSeverity.js +0 -24
  387. package/lib/cjs/core-react/messagebox/MessageSeverity.js.map +0 -1
  388. package/lib/cjs/core-react/progress-indicators/ProgressBar.d.ts +0 -29
  389. package/lib/cjs/core-react/progress-indicators/ProgressBar.d.ts.map +0 -1
  390. package/lib/cjs/core-react/progress-indicators/ProgressBar.js +0 -48
  391. package/lib/cjs/core-react/progress-indicators/ProgressBar.js.map +0 -1
  392. package/lib/cjs/core-react/progress-indicators/ProgressSpinner.d.ts +0 -49
  393. package/lib/cjs/core-react/progress-indicators/ProgressSpinner.d.ts.map +0 -1
  394. package/lib/cjs/core-react/progress-indicators/ProgressSpinner.js +0 -74
  395. package/lib/cjs/core-react/progress-indicators/ProgressSpinner.js.map +0 -1
  396. package/lib/cjs/core-react/progress-indicators/classes.scss +0 -33
  397. package/lib/cjs/core-react/progress-indicators/index.scss +0 -6
  398. package/lib/cjs/core-react/progress-indicators/progress-bar.scss +0 -91
  399. package/lib/cjs/core-react/progress-indicators/progress-spinner.scss +0 -132
  400. package/lib/cjs/core-react/radio/Radio.d.ts +0 -20
  401. package/lib/cjs/core-react/radio/Radio.d.ts.map +0 -1
  402. package/lib/cjs/core-react/radio/Radio.js +0 -28
  403. package/lib/cjs/core-react/radio/Radio.js.map +0 -1
  404. package/lib/cjs/core-react/radio/classes.scss +0 -7
  405. package/lib/cjs/core-react/radio/index.scss +0 -8
  406. package/lib/cjs/core-react/radio/radio.scss +0 -89
  407. package/lib/cjs/core-react/select/LabeledSelect.d.ts +0 -20
  408. package/lib/cjs/core-react/select/LabeledSelect.d.ts.map +0 -1
  409. package/lib/cjs/core-react/select/LabeledSelect.js +0 -34
  410. package/lib/cjs/core-react/select/LabeledSelect.js.map +0 -1
  411. package/lib/cjs/core-react/select/LabeledThemedSelect.d.ts +0 -16
  412. package/lib/cjs/core-react/select/LabeledThemedSelect.d.ts.map +0 -1
  413. package/lib/cjs/core-react/select/LabeledThemedSelect.js +0 -31
  414. package/lib/cjs/core-react/select/LabeledThemedSelect.js.map +0 -1
  415. package/lib/cjs/core-react/select/Select.d.ts +0 -53
  416. package/lib/cjs/core-react/select/Select.d.ts.map +0 -1
  417. package/lib/cjs/core-react/select/Select.js +0 -60
  418. package/lib/cjs/core-react/select/Select.js.map +0 -1
  419. package/lib/cjs/core-react/select/ThemedSelect.d.ts +0 -104
  420. package/lib/cjs/core-react/select/ThemedSelect.d.ts.map +0 -1
  421. package/lib/cjs/core-react/select/ThemedSelect.js +0 -57
  422. package/lib/cjs/core-react/select/ThemedSelect.js.map +0 -1
  423. package/lib/cjs/core-react/select/classes.scss +0 -9
  424. package/lib/cjs/core-react/select/index.scss +0 -10
  425. package/lib/cjs/core-react/select/labeled-select.scss +0 -72
  426. package/lib/cjs/core-react/select/labeled-themed-select.scss +0 -77
  427. package/lib/cjs/core-react/select/modalHelper.d.ts +0 -5
  428. package/lib/cjs/core-react/select/modalHelper.d.ts.map +0 -1
  429. package/lib/cjs/core-react/select/modalHelper.js +0 -21
  430. package/lib/cjs/core-react/select/modalHelper.js.map +0 -1
  431. package/lib/cjs/core-react/select/select.scss +0 -74
  432. package/lib/cjs/core-react/select/themed-select.scss +0 -159
  433. package/lib/cjs/core-react/slider/Slider.d.ts +0 -80
  434. package/lib/cjs/core-react/slider/Slider.d.ts.map +0 -1
  435. package/lib/cjs/core-react/slider/Slider.js +0 -91
  436. package/lib/cjs/core-react/slider/Slider.js.map +0 -1
  437. package/lib/cjs/core-react/slider/Slider.scss +0 -96
  438. package/lib/cjs/core-react/splitbutton/SplitButton.d.ts +0 -62
  439. package/lib/cjs/core-react/splitbutton/SplitButton.d.ts.map +0 -1
  440. package/lib/cjs/core-react/splitbutton/SplitButton.js +0 -104
  441. package/lib/cjs/core-react/splitbutton/SplitButton.js.map +0 -1
  442. package/lib/cjs/core-react/splitbutton/SplitButton.scss +0 -137
  443. package/lib/cjs/core-react/style/itwinui-overrides.scss +0 -25
  444. package/lib/cjs/core-react/tabs/HorizontalTabs.d.ts +0 -11
  445. package/lib/cjs/core-react/tabs/HorizontalTabs.d.ts.map +0 -1
  446. package/lib/cjs/core-react/tabs/HorizontalTabs.js +0 -22
  447. package/lib/cjs/core-react/tabs/HorizontalTabs.js.map +0 -1
  448. package/lib/cjs/core-react/tabs/horizontal.scss +0 -77
  449. package/lib/cjs/core-react/text/Headline.d.ts +0 -11
  450. package/lib/cjs/core-react/text/Headline.d.ts.map +0 -1
  451. package/lib/cjs/core-react/text/Headline.js +0 -21
  452. package/lib/cjs/core-react/text/Headline.js.map +0 -1
  453. package/lib/cjs/core-react/text/LeadingText.d.ts +0 -11
  454. package/lib/cjs/core-react/text/LeadingText.d.ts.map +0 -1
  455. package/lib/cjs/core-react/text/LeadingText.js +0 -21
  456. package/lib/cjs/core-react/text/LeadingText.js.map +0 -1
  457. package/lib/cjs/core-react/text/LeadingText2.d.ts +0 -11
  458. package/lib/cjs/core-react/text/LeadingText2.d.ts.map +0 -1
  459. package/lib/cjs/core-react/text/LeadingText2.js +0 -21
  460. package/lib/cjs/core-react/text/LeadingText2.js.map +0 -1
  461. package/lib/cjs/core-react/text/SmallText.d.ts +0 -11
  462. package/lib/cjs/core-react/text/SmallText.d.ts.map +0 -1
  463. package/lib/cjs/core-react/text/SmallText.js +0 -21
  464. package/lib/cjs/core-react/text/SmallText.js.map +0 -1
  465. package/lib/cjs/core-react/text/Subheading.d.ts +0 -11
  466. package/lib/cjs/core-react/text/Subheading.d.ts.map +0 -1
  467. package/lib/cjs/core-react/text/Subheading.js +0 -21
  468. package/lib/cjs/core-react/text/Subheading.js.map +0 -1
  469. package/lib/cjs/core-react/text/Subheading2.d.ts +0 -11
  470. package/lib/cjs/core-react/text/Subheading2.d.ts.map +0 -1
  471. package/lib/cjs/core-react/text/Subheading2.js +0 -21
  472. package/lib/cjs/core-react/text/Subheading2.js.map +0 -1
  473. package/lib/cjs/core-react/text/Title.d.ts +0 -11
  474. package/lib/cjs/core-react/text/Title.d.ts.map +0 -1
  475. package/lib/cjs/core-react/text/Title.js +0 -21
  476. package/lib/cjs/core-react/text/Title.js.map +0 -1
  477. package/lib/cjs/core-react/text/Title2.d.ts +0 -11
  478. package/lib/cjs/core-react/text/Title2.d.ts.map +0 -1
  479. package/lib/cjs/core-react/text/Title2.js +0 -21
  480. package/lib/cjs/core-react/text/Title2.js.map +0 -1
  481. package/lib/cjs/core-react/text/headline.scss +0 -10
  482. package/lib/cjs/core-react/text/leading-2.scss +0 -11
  483. package/lib/cjs/core-react/text/leading.scss +0 -10
  484. package/lib/cjs/core-react/text/small.scss +0 -10
  485. package/lib/cjs/core-react/text/subheading-2.scss +0 -11
  486. package/lib/cjs/core-react/text/subheading.scss +0 -11
  487. package/lib/cjs/core-react/text/title-2.scss +0 -11
  488. package/lib/cjs/core-react/text/title.scss +0 -10
  489. package/lib/cjs/core-react/tiles/FeaturedTile.d.ts +0 -11
  490. package/lib/cjs/core-react/tiles/FeaturedTile.d.ts.map +0 -1
  491. package/lib/cjs/core-react/tiles/FeaturedTile.js +0 -21
  492. package/lib/cjs/core-react/tiles/FeaturedTile.js.map +0 -1
  493. package/lib/cjs/core-react/tiles/MinimalFeaturedTile.d.ts +0 -11
  494. package/lib/cjs/core-react/tiles/MinimalFeaturedTile.d.ts.map +0 -1
  495. package/lib/cjs/core-react/tiles/MinimalFeaturedTile.js +0 -21
  496. package/lib/cjs/core-react/tiles/MinimalFeaturedTile.js.map +0 -1
  497. package/lib/cjs/core-react/tiles/MinimalTile.d.ts +0 -11
  498. package/lib/cjs/core-react/tiles/MinimalTile.d.ts.map +0 -1
  499. package/lib/cjs/core-react/tiles/MinimalTile.js +0 -21
  500. package/lib/cjs/core-react/tiles/MinimalTile.js.map +0 -1
  501. package/lib/cjs/core-react/tiles/Tile.d.ts +0 -32
  502. package/lib/cjs/core-react/tiles/Tile.d.ts.map +0 -1
  503. package/lib/cjs/core-react/tiles/Tile.js +0 -40
  504. package/lib/cjs/core-react/tiles/Tile.js.map +0 -1
  505. package/lib/cjs/core-react/tiles/classes.scss +0 -7
  506. package/lib/cjs/core-react/tiles/index.scss +0 -5
  507. package/lib/cjs/core-react/tiles/tile.scss +0 -134
  508. package/lib/cjs/core-react/toggle/LabeledToggle.d.ts +0 -26
  509. package/lib/cjs/core-react/toggle/LabeledToggle.d.ts.map +0 -1
  510. package/lib/cjs/core-react/toggle/LabeledToggle.js +0 -29
  511. package/lib/cjs/core-react/toggle/LabeledToggle.js.map +0 -1
  512. package/lib/cjs/core-react/toggle/LabeledToggle.scss +0 -21
  513. package/lib/cjs/core-react/toggle/Toggle.d.ts +0 -52
  514. package/lib/cjs/core-react/toggle/Toggle.d.ts.map +0 -1
  515. package/lib/cjs/core-react/toggle/Toggle.js +0 -105
  516. package/lib/cjs/core-react/toggle/Toggle.js.map +0 -1
  517. package/lib/cjs/core-react/toggle/Toggle.scss +0 -135
  518. package/lib/cjs/core-react/tooltip/Tooltip.d.ts +0 -34
  519. package/lib/cjs/core-react/tooltip/Tooltip.d.ts.map +0 -1
  520. package/lib/cjs/core-react/tooltip/Tooltip.js +0 -57
  521. package/lib/cjs/core-react/tooltip/Tooltip.js.map +0 -1
  522. package/lib/cjs/core-react/tooltip/Tooltip.scss +0 -18
  523. package/lib/cjs/core-react/utils/PointProps.d.ts +0 -12
  524. package/lib/cjs/core-react/utils/PointProps.d.ts.map +0 -1
  525. package/lib/cjs/core-react/utils/PointProps.js +0 -10
  526. package/lib/cjs/core-react/utils/PointProps.js.map +0 -1
  527. package/lib/cjs/core-react/utils/UiEvent.d.ts +0 -10
  528. package/lib/cjs/core-react/utils/UiEvent.d.ts.map +0 -1
  529. package/lib/cjs/core-react/utils/UiEvent.js +0 -18
  530. package/lib/cjs/core-react/utils/UiEvent.js.map +0 -1
  531. package/lib/esm/core-react/badge/BetaBadge.scss +0 -9
  532. package/lib/esm/core-react/button/Button.d.ts +0 -48
  533. package/lib/esm/core-react/button/Button.d.ts.map +0 -1
  534. package/lib/esm/core-react/button/Button.js +0 -81
  535. package/lib/esm/core-react/button/Button.js.map +0 -1
  536. package/lib/esm/core-react/checkbox/Checkbox.d.ts +0 -57
  537. package/lib/esm/core-react/checkbox/Checkbox.d.ts.map +0 -1
  538. package/lib/esm/core-react/checkbox/Checkbox.js +0 -61
  539. package/lib/esm/core-react/checkbox/Checkbox.js.map +0 -1
  540. package/lib/esm/core-react/dialog/DialogButtonDef.d.ts +0 -47
  541. package/lib/esm/core-react/dialog/DialogButtonDef.d.ts.map +0 -1
  542. package/lib/esm/core-react/dialog/DialogButtonDef.js +0 -35
  543. package/lib/esm/core-react/dialog/DialogButtonDef.js.map +0 -1
  544. package/lib/esm/core-react/expandable/ExpandableBlock.d.ts +0 -34
  545. package/lib/esm/core-react/expandable/ExpandableBlock.d.ts.map +0 -1
  546. package/lib/esm/core-react/expandable/ExpandableBlock.js +0 -32
  547. package/lib/esm/core-react/expandable/ExpandableBlock.js.map +0 -1
  548. package/lib/esm/core-react/expandable/ExpandableBlock.scss +0 -145
  549. package/lib/esm/core-react/form/Field.d.ts +0 -20
  550. package/lib/esm/core-react/form/Field.d.ts.map +0 -1
  551. package/lib/esm/core-react/form/Field.js +0 -41
  552. package/lib/esm/core-react/form/Field.js.map +0 -1
  553. package/lib/esm/core-react/form/Form.d.ts +0 -132
  554. package/lib/esm/core-react/form/Form.d.ts.map +0 -1
  555. package/lib/esm/core-react/form/Form.js +0 -128
  556. package/lib/esm/core-react/form/Form.js.map +0 -1
  557. package/lib/esm/core-react/form/Form.scss +0 -78
  558. package/lib/esm/core-react/icons/SvgSprite.d.ts +0 -21
  559. package/lib/esm/core-react/icons/SvgSprite.d.ts.map +0 -1
  560. package/lib/esm/core-react/icons/SvgSprite.js +0 -23
  561. package/lib/esm/core-react/icons/SvgSprite.js.map +0 -1
  562. package/lib/esm/core-react/inputs/LabeledInput.d.ts +0 -18
  563. package/lib/esm/core-react/inputs/LabeledInput.d.ts.map +0 -1
  564. package/lib/esm/core-react/inputs/LabeledInput.js +0 -30
  565. package/lib/esm/core-react/inputs/LabeledInput.js.map +0 -1
  566. package/lib/esm/core-react/inputs/LabeledTextarea.d.ts +0 -18
  567. package/lib/esm/core-react/inputs/LabeledTextarea.d.ts.map +0 -1
  568. package/lib/esm/core-react/inputs/LabeledTextarea.js +0 -28
  569. package/lib/esm/core-react/inputs/LabeledTextarea.js.map +0 -1
  570. package/lib/esm/core-react/inputs/Textarea.d.ts +0 -23
  571. package/lib/esm/core-react/inputs/Textarea.d.ts.map +0 -1
  572. package/lib/esm/core-react/inputs/Textarea.js +0 -33
  573. package/lib/esm/core-react/inputs/Textarea.js.map +0 -1
  574. package/lib/esm/core-react/inputs/labeled-input.scss +0 -103
  575. package/lib/esm/core-react/inputs/labeled-textarea.scss +0 -77
  576. package/lib/esm/core-react/inputs/textarea.scss +0 -55
  577. package/lib/esm/core-react/loading/Spinner.d.ts +0 -38
  578. package/lib/esm/core-react/loading/Spinner.d.ts.map +0 -1
  579. package/lib/esm/core-react/loading/Spinner.js +0 -57
  580. package/lib/esm/core-react/loading/Spinner.js.map +0 -1
  581. package/lib/esm/core-react/loading/Spinner.scss +0 -26
  582. package/lib/esm/core-react/messagebox/MessageSeverity.d.ts +0 -16
  583. package/lib/esm/core-react/messagebox/MessageSeverity.d.ts.map +0 -1
  584. package/lib/esm/core-react/messagebox/MessageSeverity.js +0 -21
  585. package/lib/esm/core-react/messagebox/MessageSeverity.js.map +0 -1
  586. package/lib/esm/core-react/progress-indicators/ProgressBar.d.ts +0 -29
  587. package/lib/esm/core-react/progress-indicators/ProgressBar.d.ts.map +0 -1
  588. package/lib/esm/core-react/progress-indicators/ProgressBar.js +0 -44
  589. package/lib/esm/core-react/progress-indicators/ProgressBar.js.map +0 -1
  590. package/lib/esm/core-react/progress-indicators/ProgressSpinner.d.ts +0 -49
  591. package/lib/esm/core-react/progress-indicators/ProgressSpinner.d.ts.map +0 -1
  592. package/lib/esm/core-react/progress-indicators/ProgressSpinner.js +0 -70
  593. package/lib/esm/core-react/progress-indicators/ProgressSpinner.js.map +0 -1
  594. package/lib/esm/core-react/progress-indicators/classes.scss +0 -33
  595. package/lib/esm/core-react/progress-indicators/index.scss +0 -6
  596. package/lib/esm/core-react/progress-indicators/progress-bar.scss +0 -91
  597. package/lib/esm/core-react/progress-indicators/progress-spinner.scss +0 -132
  598. package/lib/esm/core-react/radio/Radio.d.ts +0 -20
  599. package/lib/esm/core-react/radio/Radio.d.ts.map +0 -1
  600. package/lib/esm/core-react/radio/Radio.js +0 -24
  601. package/lib/esm/core-react/radio/Radio.js.map +0 -1
  602. package/lib/esm/core-react/radio/classes.scss +0 -7
  603. package/lib/esm/core-react/radio/index.scss +0 -8
  604. package/lib/esm/core-react/radio/radio.scss +0 -89
  605. package/lib/esm/core-react/select/LabeledSelect.d.ts +0 -20
  606. package/lib/esm/core-react/select/LabeledSelect.d.ts.map +0 -1
  607. package/lib/esm/core-react/select/LabeledSelect.js +0 -30
  608. package/lib/esm/core-react/select/LabeledSelect.js.map +0 -1
  609. package/lib/esm/core-react/select/LabeledThemedSelect.d.ts +0 -16
  610. package/lib/esm/core-react/select/LabeledThemedSelect.d.ts.map +0 -1
  611. package/lib/esm/core-react/select/LabeledThemedSelect.js +0 -27
  612. package/lib/esm/core-react/select/LabeledThemedSelect.js.map +0 -1
  613. package/lib/esm/core-react/select/Select.d.ts +0 -53
  614. package/lib/esm/core-react/select/Select.d.ts.map +0 -1
  615. package/lib/esm/core-react/select/Select.js +0 -57
  616. package/lib/esm/core-react/select/Select.js.map +0 -1
  617. package/lib/esm/core-react/select/ThemedSelect.d.ts +0 -104
  618. package/lib/esm/core-react/select/ThemedSelect.d.ts.map +0 -1
  619. package/lib/esm/core-react/select/ThemedSelect.js +0 -53
  620. package/lib/esm/core-react/select/ThemedSelect.js.map +0 -1
  621. package/lib/esm/core-react/select/classes.scss +0 -9
  622. package/lib/esm/core-react/select/index.scss +0 -10
  623. package/lib/esm/core-react/select/labeled-select.scss +0 -72
  624. package/lib/esm/core-react/select/labeled-themed-select.scss +0 -77
  625. package/lib/esm/core-react/select/modalHelper.d.ts +0 -5
  626. package/lib/esm/core-react/select/modalHelper.d.ts.map +0 -1
  627. package/lib/esm/core-react/select/modalHelper.js +0 -17
  628. package/lib/esm/core-react/select/modalHelper.js.map +0 -1
  629. package/lib/esm/core-react/select/select.scss +0 -74
  630. package/lib/esm/core-react/select/themed-select.scss +0 -159
  631. package/lib/esm/core-react/slider/Slider.d.ts +0 -80
  632. package/lib/esm/core-react/slider/Slider.d.ts.map +0 -1
  633. package/lib/esm/core-react/slider/Slider.js +0 -87
  634. package/lib/esm/core-react/slider/Slider.js.map +0 -1
  635. package/lib/esm/core-react/slider/Slider.scss +0 -96
  636. package/lib/esm/core-react/splitbutton/SplitButton.d.ts +0 -62
  637. package/lib/esm/core-react/splitbutton/SplitButton.d.ts.map +0 -1
  638. package/lib/esm/core-react/splitbutton/SplitButton.js +0 -100
  639. package/lib/esm/core-react/splitbutton/SplitButton.js.map +0 -1
  640. package/lib/esm/core-react/splitbutton/SplitButton.scss +0 -137
  641. package/lib/esm/core-react/style/itwinui-overrides.scss +0 -25
  642. package/lib/esm/core-react/tabs/HorizontalTabs.d.ts +0 -11
  643. package/lib/esm/core-react/tabs/HorizontalTabs.d.ts.map +0 -1
  644. package/lib/esm/core-react/tabs/HorizontalTabs.js +0 -18
  645. package/lib/esm/core-react/tabs/HorizontalTabs.js.map +0 -1
  646. package/lib/esm/core-react/tabs/horizontal.scss +0 -77
  647. package/lib/esm/core-react/text/Headline.d.ts +0 -11
  648. package/lib/esm/core-react/text/Headline.d.ts.map +0 -1
  649. package/lib/esm/core-react/text/Headline.js +0 -17
  650. package/lib/esm/core-react/text/Headline.js.map +0 -1
  651. package/lib/esm/core-react/text/LeadingText.d.ts +0 -11
  652. package/lib/esm/core-react/text/LeadingText.d.ts.map +0 -1
  653. package/lib/esm/core-react/text/LeadingText.js +0 -17
  654. package/lib/esm/core-react/text/LeadingText.js.map +0 -1
  655. package/lib/esm/core-react/text/LeadingText2.d.ts +0 -11
  656. package/lib/esm/core-react/text/LeadingText2.d.ts.map +0 -1
  657. package/lib/esm/core-react/text/LeadingText2.js +0 -17
  658. package/lib/esm/core-react/text/LeadingText2.js.map +0 -1
  659. package/lib/esm/core-react/text/SmallText.d.ts +0 -11
  660. package/lib/esm/core-react/text/SmallText.d.ts.map +0 -1
  661. package/lib/esm/core-react/text/SmallText.js +0 -17
  662. package/lib/esm/core-react/text/SmallText.js.map +0 -1
  663. package/lib/esm/core-react/text/Subheading.d.ts +0 -11
  664. package/lib/esm/core-react/text/Subheading.d.ts.map +0 -1
  665. package/lib/esm/core-react/text/Subheading.js +0 -17
  666. package/lib/esm/core-react/text/Subheading.js.map +0 -1
  667. package/lib/esm/core-react/text/Subheading2.d.ts +0 -11
  668. package/lib/esm/core-react/text/Subheading2.d.ts.map +0 -1
  669. package/lib/esm/core-react/text/Subheading2.js +0 -17
  670. package/lib/esm/core-react/text/Subheading2.js.map +0 -1
  671. package/lib/esm/core-react/text/Title.d.ts +0 -11
  672. package/lib/esm/core-react/text/Title.d.ts.map +0 -1
  673. package/lib/esm/core-react/text/Title.js +0 -17
  674. package/lib/esm/core-react/text/Title.js.map +0 -1
  675. package/lib/esm/core-react/text/Title2.d.ts +0 -11
  676. package/lib/esm/core-react/text/Title2.d.ts.map +0 -1
  677. package/lib/esm/core-react/text/Title2.js +0 -17
  678. package/lib/esm/core-react/text/Title2.js.map +0 -1
  679. package/lib/esm/core-react/text/headline.scss +0 -10
  680. package/lib/esm/core-react/text/leading-2.scss +0 -11
  681. package/lib/esm/core-react/text/leading.scss +0 -10
  682. package/lib/esm/core-react/text/small.scss +0 -10
  683. package/lib/esm/core-react/text/subheading-2.scss +0 -11
  684. package/lib/esm/core-react/text/subheading.scss +0 -11
  685. package/lib/esm/core-react/text/title-2.scss +0 -11
  686. package/lib/esm/core-react/text/title.scss +0 -10
  687. package/lib/esm/core-react/tiles/FeaturedTile.d.ts +0 -11
  688. package/lib/esm/core-react/tiles/FeaturedTile.d.ts.map +0 -1
  689. package/lib/esm/core-react/tiles/FeaturedTile.js +0 -17
  690. package/lib/esm/core-react/tiles/FeaturedTile.js.map +0 -1
  691. package/lib/esm/core-react/tiles/MinimalFeaturedTile.d.ts +0 -11
  692. package/lib/esm/core-react/tiles/MinimalFeaturedTile.d.ts.map +0 -1
  693. package/lib/esm/core-react/tiles/MinimalFeaturedTile.js +0 -17
  694. package/lib/esm/core-react/tiles/MinimalFeaturedTile.js.map +0 -1
  695. package/lib/esm/core-react/tiles/MinimalTile.d.ts +0 -11
  696. package/lib/esm/core-react/tiles/MinimalTile.d.ts.map +0 -1
  697. package/lib/esm/core-react/tiles/MinimalTile.js +0 -17
  698. package/lib/esm/core-react/tiles/MinimalTile.js.map +0 -1
  699. package/lib/esm/core-react/tiles/Tile.d.ts +0 -32
  700. package/lib/esm/core-react/tiles/Tile.d.ts.map +0 -1
  701. package/lib/esm/core-react/tiles/Tile.js +0 -36
  702. package/lib/esm/core-react/tiles/Tile.js.map +0 -1
  703. package/lib/esm/core-react/tiles/classes.scss +0 -7
  704. package/lib/esm/core-react/tiles/index.scss +0 -5
  705. package/lib/esm/core-react/tiles/tile.scss +0 -134
  706. package/lib/esm/core-react/toggle/LabeledToggle.d.ts +0 -26
  707. package/lib/esm/core-react/toggle/LabeledToggle.d.ts.map +0 -1
  708. package/lib/esm/core-react/toggle/LabeledToggle.js +0 -25
  709. package/lib/esm/core-react/toggle/LabeledToggle.js.map +0 -1
  710. package/lib/esm/core-react/toggle/LabeledToggle.scss +0 -21
  711. package/lib/esm/core-react/toggle/Toggle.d.ts +0 -52
  712. package/lib/esm/core-react/toggle/Toggle.d.ts.map +0 -1
  713. package/lib/esm/core-react/toggle/Toggle.js +0 -102
  714. package/lib/esm/core-react/toggle/Toggle.js.map +0 -1
  715. package/lib/esm/core-react/toggle/Toggle.scss +0 -135
  716. package/lib/esm/core-react/tooltip/Tooltip.d.ts +0 -34
  717. package/lib/esm/core-react/tooltip/Tooltip.d.ts.map +0 -1
  718. package/lib/esm/core-react/tooltip/Tooltip.js +0 -52
  719. package/lib/esm/core-react/tooltip/Tooltip.js.map +0 -1
  720. package/lib/esm/core-react/tooltip/Tooltip.scss +0 -18
  721. package/lib/esm/core-react/utils/PointProps.d.ts +0 -12
  722. package/lib/esm/core-react/utils/PointProps.d.ts.map +0 -1
  723. package/lib/esm/core-react/utils/PointProps.js +0 -9
  724. package/lib/esm/core-react/utils/PointProps.js.map +0 -1
  725. package/lib/esm/core-react/utils/UiEvent.d.ts +0 -10
  726. package/lib/esm/core-react/utils/UiEvent.d.ts.map +0 -1
  727. package/lib/esm/core-react/utils/UiEvent.js +0 -14
  728. package/lib/esm/core-react/utils/UiEvent.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,98 +1,6 @@
1
1
  # Change Log - @itwin/core-react
2
2
 
3
- This log was last generated on Thu, 26 Jan 2023 22:53:27 GMT and should not be manually modified.
4
-
5
- ## 3.5.5
6
- Thu, 26 Jan 2023 22:53:27 GMT
7
-
8
- _Version update only_
9
-
10
- ## 3.5.4
11
- Wed, 18 Jan 2023 15:27:15 GMT
12
-
13
- _Version update only_
14
-
15
- ## 3.5.3
16
- Fri, 13 Jan 2023 17:23:07 GMT
17
-
18
- _Version update only_
19
-
20
- ## 3.5.2
21
- Wed, 11 Jan 2023 16:46:30 GMT
22
-
23
- _Version update only_
24
-
25
- ## 3.5.1
26
- Thu, 15 Dec 2022 16:38:29 GMT
27
-
28
- _Version update only_
29
-
30
- ## 3.5.0
31
- Wed, 07 Dec 2022 19:12:37 GMT
32
-
33
- ### Updates
34
-
35
- - Unpin classnames package, fix invalid use of classnames
36
- - Change core-dialog-hidden class so that modeless dialogs will be compatible with iTwinUI components.
37
- - Use --buic-toolbar-opacity to set the opacity of toolbar items.
38
-
39
- ## 3.4.7
40
- Wed, 30 Nov 2022 14:28:19 GMT
41
-
42
- _Version update only_
43
-
44
- ## 3.4.6
45
- Tue, 22 Nov 2022 14:24:19 GMT
46
-
47
- _Version update only_
48
-
49
- ## 3.4.5
50
- Thu, 17 Nov 2022 21:32:50 GMT
51
-
52
- _Version update only_
53
-
54
- ## 3.4.4
55
- Thu, 10 Nov 2022 19:32:17 GMT
56
-
57
- _Version update only_
58
-
59
- ## 3.4.3
60
- Fri, 28 Oct 2022 13:34:58 GMT
61
-
62
- _Version update only_
63
-
64
- ## 3.4.2
65
- Mon, 24 Oct 2022 13:23:45 GMT
66
-
67
- _Version update only_
68
-
69
- ## 3.4.1
70
- Mon, 17 Oct 2022 20:06:51 GMT
71
-
72
- _Version update only_
73
-
74
- ## 3.4.0
75
- Thu, 13 Oct 2022 20:24:47 GMT
76
-
77
- ### Updates
78
-
79
- - Added data uri handling for svg components
80
- - Updated Node types declaration to support latest v16
81
-
82
- ## 3.3.5
83
- Tue, 27 Sep 2022 11:50:59 GMT
84
-
85
- _Version update only_
86
-
87
- ## 3.3.4
88
- Thu, 08 Sep 2022 19:00:05 GMT
89
-
90
- _Version update only_
91
-
92
- ## 3.3.3
93
- Tue, 06 Sep 2022 20:54:19 GMT
94
-
95
- _Version update only_
3
+ This log was last generated on Thu, 01 Sep 2022 14:37:22 GMT and should not be manually modified.
96
4
 
97
5
  ## 3.3.2
98
6
  Thu, 01 Sep 2022 14:37:22 GMT
@@ -29,7 +29,7 @@ export declare class UiCore {
29
29
  static get localization(): Localization;
30
30
  /** The internationalization service namespace. */
31
31
  static get localizationNamespace(): string;
32
- /** Calls localization.getLocalizedString with the "UiCore" namespace. Do NOT include the namespace in the key.
32
+ /** Calls localization.getLocalizedStringWithNamespace with the "UiCore" namespace. Do NOT include the namespace in the key.
33
33
  * @internal
34
34
  */
35
35
  static translate(key: string | string[]): string;
@@ -60,7 +60,7 @@ class UiCore {
60
60
  static get localizationNamespace() {
61
61
  return "UiCore";
62
62
  }
63
- /** Calls localization.getLocalizedString with the "UiCore" namespace. Do NOT include the namespace in the key.
63
+ /** Calls localization.getLocalizedStringWithNamespace with the "UiCore" namespace. Do NOT include the namespace in the key.
64
64
  * @internal
65
65
  */
66
66
  static translate(key) {
@@ -1 +1 @@
1
- {"version":3,"file":"UiCore.js","sourceRoot":"","sources":["../../../src/core-react/UiCore.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,4EAA4E;AAC5E,8BAA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,aAAa,CAAC;IAC9B,CAAC;IAED,kDAAkD;IAC3C,MAAM,KAAK,qBAAqB;QACrC,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,SAAS,CAAC,GAAsB;QAC5C,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE;YACzB,qBAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,4FAA4F,CAAC,CAAC;YAC3I,OAAO,EAAE,CAAC;SACX;QACD,OAAO,MAAM,CAAC,aAAa,CAAC,kBAAkB,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED,gBAAgB;IACT,MAAM,KAAK,WAAW;QAC3B,OAAO,YAAY,CAAC;IACtB,CAAC;IAED,gBAAgB;IACT,MAAM,CAAC,cAAc,CAAC,GAAQ;QACnC,MAAM,SAAS,GAAG,IAAA,6BAAY,EAAC,GAAG,CAAC,CAAC;QACpC,MAAM,QAAQ,GAAG,MAAM,CAAC,WAAW,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QACzE,OAAO,QAAQ,CAAC;IAClB,CAAC;;AAvEH,wBAyEC;AAxEgB,mBAAY,GAAG,KAAK,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\n/** Import color variables, layout variables and Sass classes barrel file */\r\nimport \"./colorthemes.scss\";\r\nimport \"./colorvariables.scss\";\r\nimport \"./layout-variables.scss\";\r\nimport \"./classes.scss\";\r\n\r\nimport { Logger } from \"@itwin/core-bentley\";\r\nimport type { Localization } from \"@itwin/core-common\";\r\nimport { getClassName, UiError } from \"@itwin/appui-abstract\";\r\nimport { IconWebComponent } from \"./utils/IconWebComponent\";\r\n// cSpell:ignore colorthemes colorvariables\r\n\r\n/**\r\n * Manages the Localization service for the core-react package.\r\n * @public\r\n */\r\nexport class UiCore {\r\n private static _initialized = false;\r\n private static _localization?: Localization;\r\n\r\n /**\r\n * Registers the Localization service namespace for UiCore.\r\n * @param localization The internationalization service created by the host application.\r\n */\r\n public static async initialize(localization: Localization): Promise<void> {\r\n if (UiCore._initialized) {\r\n Logger.logInfo(UiCore.loggerCategory(UiCore), `UiCore.initialize already called`);\r\n return;\r\n }\r\n\r\n UiCore._localization = localization;\r\n await UiCore._localization.registerNamespace(UiCore.localizationNamespace);\r\n if (window.customElements.get(\"svg-loader\") === undefined)\r\n window.customElements.define(\"svg-loader\", IconWebComponent);\r\n\r\n UiCore._initialized = true;\r\n }\r\n\r\n /** Unregisters the UiCore localization namespace */\r\n public static terminate() {\r\n if (UiCore._localization)\r\n UiCore._localization.unregisterNamespace(UiCore.localizationNamespace);\r\n UiCore._localization = undefined;\r\n\r\n UiCore._initialized = false;\r\n }\r\n\r\n /** Determines if UiCore has been initialized */\r\n public static get initialized(): boolean { return UiCore._initialized; }\r\n\r\n /** The internationalization service created by the host application.\r\n * @internal\r\n */\r\n public static get localization(): Localization {\r\n // istanbul ignore else\r\n if (!UiCore._localization)\r\n throw new UiError(UiCore.loggerCategory(this), \"localization: UiCore.initialize has not been called. Unable to return Localization object.\");\r\n // istanbul ignore next\r\n return UiCore._localization;\r\n }\r\n\r\n /** The internationalization service namespace. */\r\n public static get localizationNamespace(): string {\r\n return \"UiCore\";\r\n }\r\n\r\n /** Calls localization.getLocalizedString with the \"UiCore\" namespace. Do NOT include the namespace in the key.\r\n * @internal\r\n */\r\n public static translate(key: string | string[]): string {\r\n if (!UiCore._localization) {\r\n Logger.logError(UiCore.loggerCategory(this), `translate: UiCore must be initialize with a localization provider. Returning blank string.`);\r\n return \"\";\r\n }\r\n return UiCore._localization.getLocalizedString(key, { ns: UiCore.localizationNamespace });\r\n }\r\n\r\n /** @internal */\r\n public static get packageName(): string {\r\n return \"core-react\";\r\n }\r\n\r\n /** @internal */\r\n public static loggerCategory(obj: any): string {\r\n const className = getClassName(obj);\r\n const category = UiCore.packageName + (className ? `.${className}` : \"\");\r\n return category;\r\n }\r\n\r\n}\r\n"]}
1
+ {"version":3,"file":"UiCore.js","sourceRoot":"","sources":["../../../src/core-react/UiCore.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,4EAA4E;AAC5E,8BAA4B;AAC5B,iCAA+B;AAC/B,mCAAiC;AACjC,0BAAwB;AAExB,sDAA6C;AAE7C,0DAA8D;AAC9D,+DAA4D;AAC5D,2CAA2C;AAE3C;;;GAGG;AACH,MAAa,MAAM;IAIjB;;;OAGG;IACI,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,YAA0B;QACvD,IAAI,MAAM,CAAC,YAAY,EAAE;YACvB,qBAAM,CAAC,OAAO,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,kCAAkC,CAAC,CAAC;YAClF,OAAO;SACR;QAED,MAAM,CAAC,aAAa,GAAG,YAAY,CAAC;QACpC,MAAM,MAAM,CAAC,aAAa,CAAC,iBAAiB,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;QAC3E,IAAI,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,YAAY,CAAC,KAAK,SAAS;YACvD,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,YAAY,EAAE,mCAAgB,CAAC,CAAC;QAE/D,MAAM,CAAC,YAAY,GAAG,IAAI,CAAC;IAC7B,CAAC;IAED,oDAAoD;IAC7C,MAAM,CAAC,SAAS;QACrB,IAAI,MAAM,CAAC,aAAa;YACtB,MAAM,CAAC,aAAa,CAAC,mBAAmB,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC;QACzE,MAAM,CAAC,aAAa,GAAG,SAAS,CAAC;QAEjC,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------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Utilities\r\n */\r\n\r\n/** Import color variables, layout variables and Sass classes barrel file */\r\nimport \"./colorthemes.scss\";\r\nimport \"./colorvariables.scss\";\r\nimport \"./layout-variables.scss\";\r\nimport \"./classes.scss\";\r\n\r\nimport { Logger } from \"@itwin/core-bentley\";\r\nimport type { Localization } from \"@itwin/core-common\";\r\nimport { getClassName, UiError } from \"@itwin/appui-abstract\";\r\nimport { IconWebComponent } from \"./utils/IconWebComponent\";\r\n// cSpell:ignore colorthemes colorvariables\r\n\r\n/**\r\n * Manages the Localization service for the core-react package.\r\n * @public\r\n */\r\nexport class UiCore {\r\n private static _initialized = false;\r\n private static _localization?: Localization;\r\n\r\n /**\r\n * Registers the Localization service namespace for UiCore.\r\n * @param localization The internationalization service created by the host application.\r\n */\r\n public static async initialize(localization: Localization): Promise<void> {\r\n if (UiCore._initialized) {\r\n Logger.logInfo(UiCore.loggerCategory(UiCore), `UiCore.initialize already called`);\r\n return;\r\n }\r\n\r\n UiCore._localization = localization;\r\n await UiCore._localization.registerNamespace(UiCore.localizationNamespace);\r\n if (window.customElements.get(\"svg-loader\") === undefined)\r\n window.customElements.define(\"svg-loader\", IconWebComponent);\r\n\r\n UiCore._initialized = true;\r\n }\r\n\r\n /** Unregisters the UiCore localization namespace */\r\n public static terminate() {\r\n if (UiCore._localization)\r\n UiCore._localization.unregisterNamespace(UiCore.localizationNamespace);\r\n UiCore._localization = undefined;\r\n\r\n UiCore._initialized = false;\r\n }\r\n\r\n /** Determines if UiCore has been initialized */\r\n public static get initialized(): boolean { return UiCore._initialized; }\r\n\r\n /** The internationalization service created by the host application.\r\n * @internal\r\n */\r\n public static get localization(): Localization {\r\n // istanbul ignore else\r\n if (!UiCore._localization)\r\n throw new UiError(UiCore.loggerCategory(this), \"localization: UiCore.initialize has not been called. Unable to return Localization object.\");\r\n // istanbul ignore next\r\n return UiCore._localization;\r\n }\r\n\r\n /** The internationalization service namespace. */\r\n public static get localizationNamespace(): string {\r\n return \"UiCore\";\r\n }\r\n\r\n /** Calls localization.getLocalizedStringWithNamespace with the \"UiCore\" namespace. Do NOT include the namespace in the key.\r\n * @internal\r\n */\r\n public static translate(key: string | string[]): string {\r\n if (!UiCore._localization) {\r\n Logger.logError(UiCore.loggerCategory(this), `translate: UiCore must be initialize with a localization provider. Returning blank string.`);\r\n return \"\";\r\n }\r\n return UiCore._localization.getLocalizedString(key, { ns: UiCore.localizationNamespace });\r\n }\r\n\r\n /** @internal */\r\n public static get packageName(): string {\r\n return \"core-react\";\r\n }\r\n\r\n /** @internal */\r\n public static loggerCategory(obj: any): string {\r\n const className = getClassName(obj);\r\n const category = UiCore.packageName + (className ? `.${className}` : \"\");\r\n return category;\r\n }\r\n\r\n}\r\n"]}
@@ -3,18 +3,17 @@
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  @import "./style/opacity.scss";
6
- @import "~@itwin/itwinui-css/scss/style/typography";
7
6
 
8
- $title-weight: $iui-font-weight-normal;
9
- $title-size: $iui-font-size-leading;
7
+ $title-weight: var(--iui-font-weight-normal);
8
+ $title-size: var(--iui-font-size-2);
10
9
  $title-opacity: $uicore-opacity-1;
11
10
 
12
- $body-weight: $iui-font-weight-light;
13
- $body-size: $iui-font-size;
11
+ $body-weight: var(--iui-font-weight-light);
12
+ $body-size: var(--iui-font-size-1);
14
13
  $body-opacity: $uicore-opacity-2;
15
14
 
16
- $body1-weight: $iui-font-weight-normal;
17
- $body1-size: $iui-font-size;
15
+ $body1-weight: var(--iui-font-weight-normal);
16
+ $body1-size: var(--iui-font-size-1);
18
17
  $body1-opacity: $uicore-opacity-2;
19
18
 
20
19
  @mixin title($rgb: unset) {
@@ -42,4 +41,4 @@ $body1-opacity: $uicore-opacity-2;
42
41
  @if $rgb != unset {
43
42
  color: rgba($rgb, $body1-opacity);
44
43
  }
45
- }
44
+ }
@@ -95,7 +95,7 @@ class AutoSuggest extends React.PureComponent {
95
95
  this._theme = {
96
96
  container: "uicore-autosuggest__container",
97
97
  containerOpen: "uicore-autosuggest__container--open",
98
- input: "uicore-autosuggest__input",
98
+ input: "iui-input uicore-autosuggest__input",
99
99
  inputOpen: "uicore-autosuggest__input--open",
100
100
  inputFocused: "uicore-autosuggest__input--focused",
101
101
  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,8BAA4B;AAC5B,+BAA+B;AAC/B,sDAAsD;AACtD,sDAA6C;AAC7C,0DAAmD;AAEnD,sCAAmC;AAoEnC;;GAEG;AACH,MAAa,WAAY,SAAQ,KAAK,CAAC,aAAiD;IAGtF,YAAY,KAAuB;QACjC,KAAK,CAAC,KAAK,CAAC,CAAC;QAHP,eAAU,GAAG,KAAK,CAAC;QAkCnB,cAAS,GAAG,CAAC,CAAsC,EAAE,EAAE;YAC7D,IAAI,QAAQ,GAAG,EAAE,CAAC;YAElB,IAAI,CAAC,CAAC,MAAM,CAAC,OAAO,KAAK,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,WAAW;gBACnD,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC;iBAC7B,IAAI,CAAC,CAAC,MAAM,CAAC,KAAK;gBACrB,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;YAE5B,IAAI,CAAC,QAAQ,CAAC;gBACZ,UAAU,EAAE,QAAQ;aACrB,CAAC,CAAC;QACL,CAAC,CAAC;QAEM,aAAQ,GAAG,CAAC,CAAqC,EAAE,EAAE;YAC3D,uBAAuB;YACvB,IAAI,IAAI,CAAC,KAAK,CAA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AAS,CAAC;QAEjE,MAAM,UAAU,GAAiD;YAC/D,GAAG,KAAK;YACR,KAAK,EAAE,UAAU;YACjB,QAAQ,EAAE,IAAI,CAAC,SAAS;YACxB,OAAO,EAAE,IAAI,CAAC,QAAQ;YACtB,WAAW,EAAE,gBAAgB;YAC7B,SAAS,EAAE,QAAQ;SACpB,CAAC;QAEF,OAAO;QACL,2EAA2E;QAC3E,mEAAmE;QACnE,6BAAK,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,CAAC,cAAc;YAC3F,oBAAC,gBAAgB,IACf,KAAK,EAAE,IAAI,CAAC,MAAM,EAClB,WAAW,EAAE,WAAW,EACxB,2BAA2B,EAAE,IAAI,CAAC,4BAA4B,EAC9D,2BAA2B,EAAE,IAAI,CAAC,4BAA4B,EAC9D,kBAAkB,EAAE,IAAI,CAAC,mBAAmB,EAC5C,gBAAgB,EAAE,IAAI,CAAC,iBAAiB,EACxC,UAAU,EAAE,UAAU,EACtB,oBAAoB,EAAE,IAAI,CAAC,qBAAqB,EAChD,uBAAuB,EAAE,uBAAuB,EAChD,oBAAoB,EAAE,oBAAoB,EAC1C,0BAA0B,EAAE,0BAA0B,GACtD,CACE,CACP,CAAC;IACJ,CAAC;CACF;AAvMD,kCAuMC","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: \"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
+ {"version":3,"file":"AutoSuggest.js","sourceRoot":"","sources":["../../../../src/core-react/autosuggest/AutoSuggest.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,8BAA4B;AAC5B,+BAA+B;AAC/B,sDAAsD;AACtD,sDAA6C;AAC7C,0DAAmD;AAEnD,sCAAmC;AAoEnC;;GAEG;AACH,MAAa,WAAY,SAAQ,KAAK,CAAC,aAAiD;IAGtF,YAAY,KAAuB;QACjC,KAAK,CAAC,KAAK,CAAC,CAAC;QAHP,eAAU,GAAG,KAAK,CAAC;QAkCnB,cAAS,GAAG,CAAC,CAAsC,EAAE,EAAE;YAC7D,IAAI,QAAQ,GAAG,EAAE,CAAC;YAElB,IAAI,CAAC,CAAC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AAC;IACJ,CAAC;CACF;AAvMD,kCAuMC","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"]}
@@ -5,17 +5,14 @@
5
5
  @import "../scrollbar";
6
6
  @import "../inputs/variables";
7
7
  @import "../style/variables";
8
- @import "~@itwin/itwinui-css/scss/inputs/input";
9
- @import "~@itwin/itwinui-css/scss/style/typography";
10
8
 
11
9
  .uicore-autosuggest__container {
12
10
  position: relative;
13
11
  }
14
12
 
15
13
  .uicore-autosuggest__input {
16
- @include iui-input;
17
- min-height: $uicore-component-height-normal;
18
- padding: $uicore-iui-input-padding;
14
+ min-height: $uicore-component-height-normal !important;
15
+ padding: $uicore-iui-input-padding !important;
19
16
  }
20
17
 
21
18
  .uicore-autosuggest__input--focused {
@@ -40,8 +37,8 @@
40
37
  position: absolute;
41
38
  top: 24px;
42
39
  width: 100%;
43
- border: 1px solid $buic-inputs-border;
44
- background-color: $buic-background-control;
40
+ border: 1px solid var(--iui-color-border-foreground);
41
+ background-color: var(--iui-color-background);
45
42
  border-bottom-left-radius: 4px;
46
43
  border-bottom-right-radius: 4px;
47
44
  box-sizing: border-box;
@@ -65,7 +62,7 @@
65
62
  }
66
63
 
67
64
  .uicore-autosuggest__suggestion--highlighted {
68
- background-color: $buic-row-selection;
65
+ background-color: var(--iui-color-background-accent-muted);
69
66
  }
70
67
 
71
68
  .uicore-autosuggest__section-container {
@@ -78,6 +75,6 @@
78
75
 
79
76
  .uicore-autosuggest__section-title {
80
77
  padding: 10px 0 0 10px;
81
- font-size: $iui-font-size-small;
78
+ font-size: var(--iui-font-size-0);
82
79
  color: $buic-background-table-header;
83
- }
80
+ }
@@ -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"}
@@ -8,7 +8,6 @@
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.BetaBadge = void 0;
11
- require("./BetaBadge.scss");
12
11
  const classnames_1 = require("classnames");
13
12
  const React = require("react");
14
13
  const Badge_1 = require("./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,4BAA0B;AAC1B,2CAAoC;AACpC,+BAA+B;AAE/B,mCAAgC;AAChC,+EAA0D;AAE1D;;GAEG;AACH,SAAgB,SAAS,CAAC,KAAkB;IAC1C,MAAM,SAAS,GAAG,IAAA,oBAAU,EAAC,sBAAsB,EACjD,KAAK,CAAC,SAAS,CAChB,CAAC;IACF,OAAO,oBAAC,aAAK,OACP,KAAK,EACT,GAAG,EAAE,qCAAa,EAClB,SAAS,EAAE,SAAS,GACpB,CAAC;AACL,CAAC;AATD,8BASC","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 \"./BetaBadge.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 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
+ {"version":3,"file":"BetaBadge.js","sourceRoot":"","sources":["../../../../src/core-react/badge/BetaBadge.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAE/B,mCAAgC;AAChC,+EAA0D;AAE1D;;GAEG;AACH,SAAgB,SAAS,CAAC,KAAkB;IAC1C,MAAM,SAAS,GAAG,IAAA,oBAAU,EAAC,sBAAsB,EACjD,KAAK,CAAC,SAAS,CAChB,CAAC;IACF,OAAO,oBAAC,aAAK,OACP,KAAK,EACT,GAAG,EAAE,qCAAa,EAClB,SAAS,EAAE,SAAS,GACpB,CAAC;AACL,CAAC;AATD,8BASC","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"]}
@@ -5,5 +5,5 @@
5
5
  @import "../style/themecolors";
6
6
 
7
7
  .core-new-badge {
8
- color: $buic-foreground-success;
8
+ color: var(--iui-color-text-positive);
9
9
  }
@@ -3,23 +3,15 @@
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  @import "../style/index";
6
-
7
6
  @import "./button";
8
7
  @import "./disabled";
9
8
 
10
-
11
9
  @mixin uicore-buttons-blue {
12
-
13
10
  @include uicore-buttons-button;
14
-
15
- background: $buic-accessory-primary;
16
- color: $buic-accessory-hollow;
11
+ background: var(--iui-color-background-accent);
12
+ color: var(--iui-color-white);
17
13
 
18
14
  &:hover {
19
- background-color: $uicore-blue-5;
20
- }
21
-
22
- &:active {
23
- background-color: $uicore-blue-4;
15
+ background-color: var(--iui-color-background-accent-hover);
24
16
  }
25
17
  }
@@ -3,35 +3,30 @@
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  @import "./variables";
6
- @import "~@itwin/itwinui-css/scss/style/speed";
7
- @import "~@itwin/itwinui-css/scss/style/typography";
8
- @import "~@itwin/itwinui-css/scss/style/variables";
9
6
 
10
7
  // cspell:ignore unbordered
11
8
 
12
9
  /// Mixins ---------------------------------------------------------------------
13
10
 
14
11
  @mixin uicore-buttons-button {
15
-
16
- display: inline-block;
17
-
18
- padding: $uicore-button-padding $uicore-unbordered-padding;
19
- margin: $uicore-inputs-margin 0;
20
- border-radius: $iui-border-radius;
21
- line-height: $uicore-button-line-height;
22
- outline: none;
23
- font-family: $iui-font-family;
24
- font-size: $iui-font-size;
25
- text-decoration: none;
26
- cursor: pointer;
27
- box-sizing: border-box;
28
- box-shadow: transparent 0px 1px 1px inset;
29
- border: 1px solid transparent;
30
- transition: all $iui-speed-fast ease-in-out;
12
+ display: inline-block;
13
+
14
+ padding: $uicore-button-padding $uicore-unbordered-padding;
15
+ margin: $uicore-inputs-margin 0;
16
+ border-radius: var(--iui-border-radius-1);
17
+ line-height: $uicore-button-line-height;
18
+ outline: none;
19
+ font-family: var(--iui-font-sans);
20
+ font-size: var(--iui-font-size-1);
21
+ text-decoration: none;
22
+ cursor: pointer;
23
+ box-sizing: border-box;
24
+ box-shadow: transparent 0px 1px 1px inset;
25
+ border: 1px solid transparent;
26
+ transition: all var(--iui-duration-1) ease-in-out;
31
27
 
32
28
  &:active,
33
29
  &:focus {
34
-
35
30
  @include uicore-buttons-button-focused;
36
31
  }
37
32
 
@@ -39,43 +34,37 @@
39
34
  &[disabled]:hover,
40
35
  &[disabled]:active,
41
36
  &[disabled]:focus {
42
-
43
37
  @include uicore-buttons-button-disabled;
44
38
  }
45
39
  }
46
40
 
47
41
  @mixin uicore-buttons-button-focused {
48
-
49
- box-shadow: $uicore-button-focus-boxshadow;
42
+ box-shadow: $uicore-button-focus-boxshadow;
50
43
  }
51
44
 
52
45
  @mixin uicore-buttons-button-unbordered {
53
-
54
- border-color: transparent;
55
- box-shadow: transparent 0px 1px 1px inset;
46
+ border-color: transparent;
47
+ box-shadow: transparent 0px 1px 1px inset;
56
48
  }
57
49
 
58
50
  @mixin uicore-buttons-button-disabled {
59
-
60
- opacity: $uicore-opacity-disabled;
61
- background-color: $uicore-gray;
62
- border: 0;
63
- color: $uicore-white;
64
- cursor: not-allowed;
51
+ opacity: $uicore-opacity-disabled;
52
+ background-color: $uicore-gray;
53
+ border: 0;
54
+ color: var(--iui-color-white);
55
+ cursor: not-allowed;
65
56
  }
66
57
 
67
58
  @mixin uicore-buttons-large-size {
68
-
69
- padding: $uicore-inputs-padding-large $uicore-unbordered-padding-large;
70
- margin: $uicore-inputs-margin-large 0;
71
- font-size: $iui-font-size-leading;
72
- font-weight: $iui-font-weight-normal;
59
+ padding: $uicore-inputs-padding-large $uicore-unbordered-padding-large;
60
+ margin: $uicore-inputs-margin-large 0;
61
+ font-size: var(--iui-font-size-2);
62
+ font-weight: var(--iui-font-weight-normal);
73
63
  }
74
64
 
75
65
  @mixin uicore-buttons-large-bordered-size {
76
-
77
- padding: $uicore-button-padding-bordered-large $uicore-bordered-padding-large;
78
- margin: $uicore-inputs-margin-large 0;
79
- font-size: $iui-font-size-leading;
80
- font-weight: $iui-font-weight-normal;
66
+ padding: $uicore-button-padding-bordered-large $uicore-bordered-padding-large;
67
+ margin: $uicore-inputs-margin-large 0;
68
+ font-size: var(--iui-font-size-2);
69
+ font-weight: var(--iui-font-weight-normal);
81
70
  }
@@ -13,18 +13,18 @@
13
13
  @include uicore-buttons-button;
14
14
 
15
15
  padding: $uicore-button-padding-bordered $uicore-bordered-padding;
16
- border-color: $buic-foreground-disabled;
16
+ border-color: var(--iui-color-border-foreground);
17
17
  background-color: transparent;
18
- color: $buic-text-color;
18
+ color: var(--iui-color-text);
19
19
 
20
20
  &:hover {
21
21
 
22
- border-color: $buic-foreground-body;
23
- color: $buic-foreground-activehover;
22
+ border-color: var(--iui-color-border-foreground-hover);
23
+ color: var(--iui-color-text-hover);
24
24
  }
25
25
 
26
26
  &:active, &:focus {
27
27
 
28
- border-color: $buic-foreground-activehover;
28
+ border-color: var(--iui-color-border-foreground-hover);
29
29
  }
30
30
  }
@@ -3,23 +3,15 @@
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  @import "../style/index";
6
-
7
6
  @import "./button";
8
7
  @import "./disabled";
9
8
 
10
-
11
9
  @mixin uicore-buttons-primary {
12
-
13
10
  @include uicore-buttons-button;
14
-
15
- background: $buic-accessory-success;
16
- color: $buic-accessory-hollow;
11
+ background: var(--iui-color-background-positive);
12
+ color: var(--iui-color-white);
17
13
 
18
14
  &:hover {
19
- background-color: $uicore-green-5;
20
- }
21
-
22
- &:active {
23
- background-color: $uicore-green-4;
15
+ background-color: var(--iui-color-background-positive-hover);
24
16
  }
25
17
  }
@@ -9,11 +9,14 @@
9
9
  // cspell:ignore unbordered
10
10
 
11
11
  $uicore-button-height: 28px;
12
- $uicore-button-line-height: $uicore-baseline * 1.5;
13
- $uicore-button-padding: ($uicore-button-height - $uicore-button-line-height) *
14
- 0.5;
15
- $uicore-button-padding-bordered: $uicore-button-padding - 1px;
16
- $uicore-button-padding-bordered-large: $uicore-inputs-padding-large - 1px;
17
- $uicore-unbordered-padding: $uicore-baseline;
18
- $uicore-bordered-padding: $uicore-unbordered-padding - 1px;
12
+ $uicore-button-line-height: calc(var(--iui-size-s) * 1.5);
13
+ $uicore-button-padding: calc(
14
+ (#{$uicore-button-height} - #{$uicore-button-line-height}) * 0.5
15
+ );
16
+ $uicore-button-padding-bordered: calc(#{$uicore-button-padding} - 1px);
17
+ $uicore-button-padding-bordered-large: calc(
18
+ #{$uicore-inputs-padding-large} - 1px
19
+ );
20
+ $uicore-unbordered-padding: var(--iui-size-s);
21
+ $uicore-bordered-padding: calc(#{$uicore-unbordered-padding} - 1px);
19
22
  $uicore-button-focus-boxshadow: $buic-focus-boxshadow 0px 0px 0px 2px;