@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
@@ -8,14 +8,11 @@
8
8
  @import "../text/block";
9
9
  @import "../z-index";
10
10
  @import "../scrollbar";
11
- @import "~@itwin/itwinui-css/scss/style/typography";
12
- @import "~@itwin/itwinui-css/scss/style/variables";
13
- @import "~@itwin/itwinui-css/scss/text/mixins";
14
11
 
15
12
  // cspell:ignore titlebar outoffocus nwse
16
13
 
17
14
  .core-dialog {
18
- @include iui-font-family;
15
+ font-family: var(--iui-font-sans);
19
16
 
20
17
  display: none;
21
18
  position: fixed;
@@ -106,17 +103,17 @@
106
103
  display: flex;
107
104
  flex-grow: 1;
108
105
  flex-direction: column;
109
- border: 1px solid $buic-background-dialog-stroke;
110
- border-radius: $iui-border-radius;
111
- background-color: $buic-background-dialog;
112
- color: $buic-text-color;
106
+ border: 1px solid var(--iui-color-border);
107
+ border-radius: var(--iui-border-radius-1);
108
+ background-color: var(--iui-color-background);
109
+ color: var(--iui-color-text);
113
110
  padding: 0;
114
111
 
115
112
  > .core-dialog-head {
116
113
  flex-shrink: 0;
117
114
  align-items: center;
118
- background-color: $buic-background-titlebar; /* $buic-background-titlebar-outoffocus; */
119
- color: $buic-text-color;
115
+ background-color: var(--iui-color-background-backdrop);
116
+ color: var(--iui-color-text);
120
117
  display: flex;
121
118
  padding: 4px;
122
119
 
@@ -128,37 +125,48 @@
128
125
  > .core-dialog-title {
129
126
  flex: 1 1;
130
127
 
131
- @include iui-text(leading);
128
+ padding: 0;
129
+ border: none;
130
+ vertical-align: baseline;
131
+ font-size: var(--iui-font-size-2);
132
+ font-weight: var(--iui-font-weight-normal);
133
+ line-height: var(--iui-size-l);
132
134
 
133
135
  margin: 0;
134
136
  margin-left: 4px;
135
137
  }
136
138
 
137
139
  &.core-dialog-modal {
138
- background-color: $buic-background-dialog;
140
+ background-color: var(--iui-color-background);
139
141
 
140
142
  > .core-dialog-title {
141
- @include iui-text(subheading);
143
+ margin: 0;
144
+ padding: 0;
145
+ border: none;
146
+ vertical-align: baseline;
147
+ font-size: var(--iui-font-size-3);
148
+ font-weight: var(--iui-font-weight-normal);
149
+ line-height: calc(1.5 * var(--iui-size-l));
142
150
  }
143
151
  }
144
152
 
145
153
  > .core-dialog-close {
146
154
  cursor: pointer;
147
- height: $iui-font-size-title;
148
- width: $iui-font-size-title;
149
- line-height: $iui-font-size-title;
155
+ height: var(--iui-font-size-4);
156
+ width: var(--iui-font-size-4);
157
+ line-height: var(--iui-font-size-4);
150
158
  flex: 0 0 $uicore-icons-medium;
151
159
  text-align: center;
152
- color: $buic-text-color-muted;
160
+ color: var(--iui-color-icon);
153
161
  border: none;
154
162
  background-color: transparent;
155
163
 
156
164
  &:hover,
157
165
  &:focus {
158
- color: $buic-foreground-activehover;
166
+ color: var(--iui-color-icon-hover);
159
167
  }
160
168
  &:focus {
161
- outline: 1px solid $buic-foreground-focus;
169
+ outline: 1px solid var(--iui-color-border-accent);
162
170
  }
163
171
  }
164
172
  }
@@ -198,14 +206,6 @@
198
206
  }
199
207
  }
200
208
  }
201
-
202
- /*
203
- &:focus-within {
204
- .core-dialog-head {
205
- background-color: $buic-background-titlebar;
206
- }
207
- }
208
- */
209
209
  }
210
210
 
211
211
  $dialog-resize-bar-width: 8px;
@@ -9,7 +9,7 @@
9
9
  @return linear-gradient(
10
10
  $orientation,
11
11
  transparent calc(50% - 1px),
12
- $buic-foreground-primary calc(50%),
12
+ var(--iui-color-icon-accent) calc(50%),
13
13
  transparent calc(50% + 1px));
14
14
  }
15
15
 
@@ -14,6 +14,8 @@ export interface ExpandableListProps extends CommonProps {
14
14
  singleExpandOnly?: boolean;
15
15
  /** Indicates whether the single expanded block is collapsible */
16
16
  singleIsCollapsible?: boolean;
17
+ /** Content */
18
+ children?: React.ReactNode;
17
19
  }
18
20
  /** @internal */
19
21
  interface ExpandableListState {
@@ -1 +1 @@
1
- {"version":3,"file":"ExpandableList.d.ts","sourceRoot":"","sources":["../../../../src/core-react/expandable/ExpandableList.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,uBAAuB,CAAC;AAE/B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACtD,wCAAwC;IACxC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iEAAiE;IACjE,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,gBAAgB;AAChB,UAAU,mBAAmB;IAC3B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,qBAAa,cAAe,SAAQ,KAAK,CAAC,aAAa,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;gBAEnF,KAAK,EAAE,mBAAmB;IAMtC,OAAc,YAAY,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAGtD;IAGF,OAAO,CAAC,kBAAkB,CAYxB;IAEF,OAAO,CAAC,YAAY;IAUpB,gBAAgB;IACA,kBAAkB,CAAC,SAAS,EAAE,mBAAmB;IAMjD,MAAM,IAAI,GAAG,CAAC,OAAO;CAOtC"}
1
+ {"version":3,"file":"ExpandableList.d.ts","sourceRoot":"","sources":["../../../../src/core-react/expandable/ExpandableList.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,uBAAuB,CAAC;AAE/B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACtD,wCAAwC;IACxC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iEAAiE;IACjE,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,cAAc;IACd,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,gBAAgB;AAChB,UAAU,mBAAmB;IAC3B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,qBAAa,cAAe,SAAQ,KAAK,CAAC,aAAa,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;gBAEnF,KAAK,EAAE,mBAAmB;IAMtC,OAAc,YAAY,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAGtD;IAGF,OAAO,CAAC,kBAAkB,CAYxB;IAEF,OAAO,CAAC,YAAY;IAUpB,gBAAgB;IACA,kBAAkB,CAAC,SAAS,EAAE,mBAAmB;IAMjD,MAAM,IAAI,GAAG,CAAC,OAAO;CAOtC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ExpandableList.js","sourceRoot":"","sources":["../../../../src/core-react/expandable/ExpandableList.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,iCAA+B;AAC/B,2CAAoC;AACpC,+BAA+B;AAoB/B;;;GAGG;AACH,MAAa,cAAe,SAAQ,KAAK,CAAC,aAAuD;IAE/F,YAAY,KAA0B;QACpC,KAAK,CAAC,KAAK,CAAC,CAAC;QAUf,mBAAmB;QACX,uBAAkB,GAAG,CAAC,KAAa,EAAE,QAAuC,EAAE,EAAE;YACtF,IAAI,WAAW,GAAG,KAAK,CAAC;YAExB,IAAI,IAAI,CAAC,KAAK,CAAC,mBAAmB,IAAI,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC,WAAW;gBACpE,WAAW,GAAG,CAAC,CAAC,CAAC;YAEnB,IAAI,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC;YAE/B,uBAAuB;YACvB,IAAI,QAAQ,EAAE;gBACZ,QAAQ,CAAC,WAAW,KAAK,KAAK,CAAC,CAAC,CAAC,oCAAoC;aACtE;QACH,CAAC,CAAC;QArBA,IAAI,CAAC,KAAK,GAAG,EAAE,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,kBAAmB,EAAE,CAAC;IAC/D,CAAC;IAsBO,YAAY;QAClB,OAAO,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,KAAU,EAAE,CAAC,EAAE,EAAE;YAC/D,OAAO,KAAK,CAAC,YAAY,CAAC,KAAK,EAAE;gBAC/B,GAAG,EAAE,CAAC;gBACN,UAAU,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU;gBACjG,QAAQ,EAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC;aACtE,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;IAED,gBAAgB;IACA,kBAAkB,CAAC,SAA8B;QAC/D,IAAI,IAAI,CAAC,KAAK,CAAC,kBAAkB,KAAK,SAAS,CAAC,kBAAkB,IAAI,IAAI,CAAC,KAAK,CAAC,kBAAkB,KAAK,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE;YAC9H,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,kBAAmB,EAAE,CAAC,CAAC,CAAC;SAC3E;IACH,CAAC;IAEe,MAAM;QACpB,OAAO,CACL,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,+BAA+B,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,IACvG,IAAI,CAAC,YAAY,EAAE,CAChB,CACP,CAAC;IACJ,CAAC;;AAnDH,wCAoDC;AA5Ce,2BAAY,GAAiC;IACzD,gBAAgB,EAAE,KAAK;IACvB,kBAAkB,EAAE,CAAC;CACtB,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 Expandable\r\n */\r\n\r\nimport \"./ExpandableList.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { CommonProps } from \"../utils/Props\";\r\n\r\n/** Properties for [[ExpandableList]] component\r\n * @public\r\n */\r\nexport interface ExpandableListProps extends CommonProps {\r\n /** Index of the default active block */\r\n defaultActiveBlock?: number;\r\n /** Indicates whether to allow only one expanded block */\r\n singleExpandOnly?: boolean;\r\n /** Indicates whether the single expanded block is collapsible */\r\n singleIsCollapsible?: boolean;\r\n}\r\n\r\n/** @internal */\r\ninterface ExpandableListState {\r\n activeBlock: number;\r\n}\r\n\r\n/**\r\n * ExpandableList React component is a container for ExpandableBlock components.\r\n * @public\r\n */\r\nexport class ExpandableList extends React.PureComponent<ExpandableListProps, ExpandableListState> {\r\n\r\n constructor(props: ExpandableListProps) {\r\n super(props);\r\n\r\n this.state = { activeBlock: this.props.defaultActiveBlock! };\r\n }\r\n\r\n public static defaultProps: Partial<ExpandableListProps> = {\r\n singleExpandOnly: false,\r\n defaultActiveBlock: 0,\r\n };\r\n\r\n // set active block\r\n private _handleBlockToggle = (index: number, onToggle: (isExpanding: boolean) => any) => {\r\n let activeBlock = index;\r\n\r\n if (this.props.singleIsCollapsible && index === this.state.activeBlock)\r\n activeBlock = -1;\r\n\r\n this.setState({ activeBlock });\r\n\r\n // istanbul ignore else\r\n if (onToggle) {\r\n onToggle(activeBlock === index); // fire the ExpandableBlock onToggle\r\n }\r\n };\r\n\r\n private renderBlocks() {\r\n return React.Children.map(this.props.children, (child: any, i) => {\r\n return React.cloneElement(child, {\r\n key: i,\r\n isExpanded: (this.props.singleExpandOnly) ? i === this.state.activeBlock : child.props.isExpanded,\r\n onToggle: this._handleBlockToggle.bind(this, i, child.props.onToggle),\r\n });\r\n });\r\n }\r\n\r\n /** @internal */\r\n public override componentDidUpdate(prevProps: ExpandableListProps) {\r\n if (this.props.defaultActiveBlock !== prevProps.defaultActiveBlock && this.props.defaultActiveBlock !== this.state.activeBlock) {\r\n this.setState((_, props) => ({ activeBlock: props.defaultActiveBlock! }));\r\n }\r\n }\r\n\r\n public override render(): JSX.Element {\r\n return (\r\n <div className={classnames(\"uicore-expandable-blocks-list\", this.props.className)} style={this.props.style}>\r\n {this.renderBlocks()}\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"ExpandableList.js","sourceRoot":"","sources":["../../../../src/core-react/expandable/ExpandableList.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,iCAA+B;AAC/B,2CAAoC;AACpC,+BAA+B;AAsB/B;;;GAGG;AACH,MAAa,cAAe,SAAQ,KAAK,CAAC,aAAuD;IAE/F,YAAY,KAA0B;QACpC,KAAK,CAAC,KAAK,CAAC,CAAC;QAUf,mBAAmB;QACX,uBAAkB,GAAG,CAAC,KAAa,EAAE,QAAuC,EAAE,EAAE;YACtF,IAAI,WAAW,GAAG,KAAK,CAAC;YAExB,IAAI,IAAI,CAAC,KAAK,CAAC,mBAAmB,IAAI,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC,WAAW;gBACpE,WAAW,GAAG,CAAC,CAAC,CAAC;YAEnB,IAAI,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC;YAE/B,uBAAuB;YACvB,IAAI,QAAQ,EAAE;gBACZ,QAAQ,CAAC,WAAW,KAAK,KAAK,CAAC,CAAC,CAAC,oCAAoC;aACtE;QACH,CAAC,CAAC;QArBA,IAAI,CAAC,KAAK,GAAG,EAAE,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,kBAAmB,EAAE,CAAC;IAC/D,CAAC;IAsBO,YAAY;QAClB,OAAO,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,KAAU,EAAE,CAAC,EAAE,EAAE;YAC/D,OAAO,KAAK,CAAC,YAAY,CAAC,KAAK,EAAE;gBAC/B,GAAG,EAAE,CAAC;gBACN,UAAU,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU;gBACjG,QAAQ,EAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC;aACtE,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;IAED,gBAAgB;IACA,kBAAkB,CAAC,SAA8B;QAC/D,IAAI,IAAI,CAAC,KAAK,CAAC,kBAAkB,KAAK,SAAS,CAAC,kBAAkB,IAAI,IAAI,CAAC,KAAK,CAAC,kBAAkB,KAAK,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE;YAC9H,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,kBAAmB,EAAE,CAAC,CAAC,CAAC;SAC3E;IACH,CAAC;IAEe,MAAM;QACpB,OAAO,CACL,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,+BAA+B,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,IACvG,IAAI,CAAC,YAAY,EAAE,CAChB,CACP,CAAC;IACJ,CAAC;;AAnDH,wCAoDC;AA5Ce,2BAAY,GAAiC;IACzD,gBAAgB,EAAE,KAAK;IACvB,kBAAkB,EAAE,CAAC;CACtB,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 Expandable\r\n */\r\n\r\nimport \"./ExpandableList.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { CommonProps } from \"../utils/Props\";\r\n\r\n/** Properties for [[ExpandableList]] component\r\n * @public\r\n */\r\nexport interface ExpandableListProps extends CommonProps {\r\n /** Index of the default active block */\r\n defaultActiveBlock?: number;\r\n /** Indicates whether to allow only one expanded block */\r\n singleExpandOnly?: boolean;\r\n /** Indicates whether the single expanded block is collapsible */\r\n singleIsCollapsible?: boolean;\r\n /** Content */\r\n children?: React.ReactNode;\r\n}\r\n\r\n/** @internal */\r\ninterface ExpandableListState {\r\n activeBlock: number;\r\n}\r\n\r\n/**\r\n * ExpandableList React component is a container for ExpandableBlock components.\r\n * @public\r\n */\r\nexport class ExpandableList extends React.PureComponent<ExpandableListProps, ExpandableListState> {\r\n\r\n constructor(props: ExpandableListProps) {\r\n super(props);\r\n\r\n this.state = { activeBlock: this.props.defaultActiveBlock! };\r\n }\r\n\r\n public static defaultProps: Partial<ExpandableListProps> = {\r\n singleExpandOnly: false,\r\n defaultActiveBlock: 0,\r\n };\r\n\r\n // set active block\r\n private _handleBlockToggle = (index: number, onToggle: (isExpanding: boolean) => any) => {\r\n let activeBlock = index;\r\n\r\n if (this.props.singleIsCollapsible && index === this.state.activeBlock)\r\n activeBlock = -1;\r\n\r\n this.setState({ activeBlock });\r\n\r\n // istanbul ignore else\r\n if (onToggle) {\r\n onToggle(activeBlock === index); // fire the ExpandableBlock onToggle\r\n }\r\n };\r\n\r\n private renderBlocks() {\r\n return React.Children.map(this.props.children, (child: any, i) => {\r\n return React.cloneElement(child, {\r\n key: i,\r\n isExpanded: (this.props.singleExpandOnly) ? i === this.state.activeBlock : child.props.isExpanded,\r\n onToggle: this._handleBlockToggle.bind(this, i, child.props.onToggle),\r\n });\r\n });\r\n }\r\n\r\n /** @internal */\r\n public override componentDidUpdate(prevProps: ExpandableListProps) {\r\n if (this.props.defaultActiveBlock !== prevProps.defaultActiveBlock && this.props.defaultActiveBlock !== this.state.activeBlock) {\r\n this.setState((_, props) => ({ activeBlock: props.defaultActiveBlock! }));\r\n }\r\n }\r\n\r\n public override render(): JSX.Element {\r\n return (\r\n <div className={classnames(\"uicore-expandable-blocks-list\", this.props.className)} style={this.props.style}>\r\n {this.renderBlocks()}\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
@@ -3,43 +3,33 @@
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  @import "../style/index";
6
- @import "~@itwin/itwinui-css/scss/style/speed";
7
6
 
8
7
  @mixin uicore-expandable-blocks-list {
9
-
10
8
  > div {
11
-
12
- transition: margin $iui-speed-fast ease-in-out;
9
+ transition: margin var(--iui-duration-1) ease-in-out;
13
10
 
14
11
  > .iui-header {
15
-
16
- border-color: $uicore-gray-a transparent transparent;
12
+ border-color: var(--iui-color-border);
17
13
  }
18
14
 
19
15
  &:first-child {
20
-
21
16
  > .iui-header {
22
-
23
- border-top-color: transparent;
17
+ border-top-color: var(--iui-color-border);
24
18
  }
25
19
  }
26
20
  }
27
21
 
28
22
  > .iui-expanded + div {
29
-
30
23
  > .iui-header {
31
-
32
- border-top-color: transparent;
24
+ border-top-color: var(--iui-color-border);
33
25
  }
34
26
 
35
- &.iui-expanded > .iui-header {
36
-
37
- border-top-color: $uicore-blue;
27
+ &.iui-expanded > .iui-header {
28
+ border-top-color: var(--iui-color-border-accent);
38
29
  }
39
30
  }
40
31
 
41
32
  > .iui-expanded + .iui-expanded {
42
-
43
- margin-top: 0; // $uicore-unbordered-padding;
33
+ margin-top: 0;
44
34
  }
45
35
  }
@@ -1 +1 @@
1
- {"version":3,"file":"withTimeout.js","sourceRoot":"","sources":["../../../../src/core-react/hocs/withTimeout.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,+BAA+B;AAC/B,0CAAuC;AAYvC;;GAEG;AACI,MAAM,WAAW,GAAG;AACzB,gEAAgE;AAChE,SAA8C,EAC9C,EAAE;IACF,OAAO,MAAM,WAAY,SAAQ,KAAK,CAAC,aAAgD;QAAhF;;YACE,UAAK,GAAU,IAAI,aAAK,CAAC,CAAC,CAAC,CAAC;QA6BrC,CAAC;QA3BiB,iBAAiB;YAC/B,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC;YAC9E,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QAEe,kBAAkB,CAAC,UAAuD;YACxF,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QAEe,oBAAoB;YAClC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;QACpB,CAAC;QAEe,MAAM;YACpB,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,wDAAwD;YAC7G,OAAO,CACL,oBAAC,SAAS,OAAK,KAAuB,KAAM,IAAI,CAAC,KAAK,GAAI,CAC3D,CAAC;QACJ,CAAC;QAEM,UAAU,CAAC,OAAe;YAC/B,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS;gBACtB,OAAO;YAET,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,OAAO,CAAC;YAC3B,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;QACrB,CAAC;KACF,CAAC;AACJ,CAAC,CAAC;AAnCW,QAAA,WAAW,eAmCtB","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 Common\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { Timer } from \"../utils/Timer\";\r\n\r\n/** Properties for [[withTimeout]] React higher-order component\r\n * @public\r\n */\r\nexport interface WithTimeoutProps {\r\n /** Timeout duration in milliseconds */\r\n timeout: number;\r\n /** Callback function for timeout */\r\n onTimeout?: () => void;\r\n}\r\n\r\n/** withTimeout is a React higher-order component that adds timeout support.\r\n * @public\r\n */\r\nexport const withTimeout = <ComponentProps extends {}>(\r\n // eslint-disable-next-line @typescript-eslint/naming-convention\r\n Component: React.ComponentType<ComponentProps>,\r\n) => {\r\n return class WithTimeout extends React.PureComponent<ComponentProps & WithTimeoutProps> {\r\n public timer: Timer = new Timer(0);\r\n\r\n public override componentDidMount(): void {\r\n this.timer.setOnExecute(() => this.props.onTimeout && this.props.onTimeout());\r\n this.startTimer(this.props.timeout);\r\n }\r\n\r\n public override componentDidUpdate(_prevProps: Readonly<ComponentProps & WithTimeoutProps>): void {\r\n this.startTimer(this.props.timeout);\r\n }\r\n\r\n public override componentWillUnmount(): void {\r\n this.timer.stop();\r\n }\r\n\r\n public override render() {\r\n const { timeout, onTimeout, ...props } = this.props; // eslint-disable-line @typescript-eslint/no-unused-vars\r\n return (\r\n <Component {...props as ComponentProps} {...this.state} />\r\n );\r\n }\r\n\r\n public startTimer(timeout: number) {\r\n if (this.timer.isRunning)\r\n return;\r\n\r\n this.timer.delay = timeout;\r\n this.timer.start();\r\n }\r\n };\r\n};\r\n"]}
1
+ {"version":3,"file":"withTimeout.js","sourceRoot":"","sources":["../../../../src/core-react/hocs/withTimeout.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,+BAA+B;AAC/B,0CAAuC;AAYvC;;GAEG;AACI,MAAM,WAAW,GAAG;AACzB,gEAAgE;AAChE,SAA8C,EAC9C,EAAE;IACF,OAAO,MAAM,WAAY,SAAQ,KAAK,CAAC,aAAgD;QAAhF;;YACE,UAAK,GAAU,IAAI,aAAK,CAAC,CAAC,CAAC,CAAC;QA6BrC,CAAC;QA3BiB,iBAAiB;YAC/B,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC;YAC9E,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QAEe,kBAAkB,CAAC,UAAuD;YACxF,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QAEe,oBAAoB;YAClC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;QACpB,CAAC;QAEe,MAAM;YACpB,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,wDAAwD;YAC7G,OAAO,CACL,oBAAC,SAAS,OAAK,KAAY,KAAM,IAAI,CAAC,KAAK,GAAI,CAChD,CAAC;QACJ,CAAC;QAEM,UAAU,CAAC,OAAe;YAC/B,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS;gBACtB,OAAO;YAET,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,OAAO,CAAC;YAC3B,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;QACrB,CAAC;KACF,CAAC;AACJ,CAAC,CAAC;AAnCW,QAAA,WAAW,eAmCtB","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 Common\r\n */\r\n\r\nimport * as React from \"react\";\r\nimport { Timer } from \"../utils/Timer\";\r\n\r\n/** Properties for [[withTimeout]] React higher-order component\r\n * @public\r\n */\r\nexport interface WithTimeoutProps {\r\n /** Timeout duration in milliseconds */\r\n timeout: number;\r\n /** Callback function for timeout */\r\n onTimeout?: () => void;\r\n}\r\n\r\n/** withTimeout is a React higher-order component that adds timeout support.\r\n * @public\r\n */\r\nexport const withTimeout = <ComponentProps extends {}>(\r\n // eslint-disable-next-line @typescript-eslint/naming-convention\r\n Component: React.ComponentType<ComponentProps>,\r\n) => {\r\n return class WithTimeout extends React.PureComponent<ComponentProps & WithTimeoutProps> {\r\n public timer: Timer = new Timer(0);\r\n\r\n public override componentDidMount(): void {\r\n this.timer.setOnExecute(() => this.props.onTimeout && this.props.onTimeout());\r\n this.startTimer(this.props.timeout);\r\n }\r\n\r\n public override componentDidUpdate(_prevProps: Readonly<ComponentProps & WithTimeoutProps>): void {\r\n this.startTimer(this.props.timeout);\r\n }\r\n\r\n public override componentWillUnmount(): void {\r\n this.timer.stop();\r\n }\r\n\r\n public override render() {\r\n const { timeout, onTimeout, ...props } = this.props; // eslint-disable-line @typescript-eslint/no-unused-vars\r\n return (\r\n <Component {...props as any} {...this.state} />\r\n );\r\n }\r\n\r\n public startTimer(timeout: number) {\r\n if (this.timer.isRunning)\r\n return;\r\n\r\n this.timer.delay = timeout;\r\n this.timer.start();\r\n }\r\n };\r\n};\r\n"]}
@@ -0,0 +1,27 @@
1
+ /** @packageDocumentation
2
+ * @module Item
3
+ */
4
+ import { IconSpec } from "./IconComponent";
5
+ /** Class used to return an icon. The icon is variable and can be changed in response to subscribed event ids.
6
+ * @public
7
+ */
8
+ export declare class ConditionalIconItem {
9
+ readonly iconGetter: () => IconSpec;
10
+ readonly syncEventIds: string[];
11
+ private _value?;
12
+ /** Constructor for ConditionalIconItem
13
+ * @param iconGetter Function to retrieve the icon that matches the condition. Returns an IconSpec.
14
+ * @param syncEventIds The array of event ids to be monitored. These events are triggered when the condition(s) that control the icon change.
15
+ * @param value The default IconSpec. If this is not specified, the function is run to get the initial value.
16
+ */
17
+ constructor(iconGetter: () => IconSpec, syncEventIds: string[], value?: IconSpec);
18
+ /** The current IconSpec according to conditions */
19
+ get value(): IconSpec;
20
+ /** Called to update the value by running the iconGetter */
21
+ refresh(): boolean;
22
+ /** A helper function that updates the IconSpec value when the specified events are triggered */
23
+ static refreshValue(conditionalValue: ConditionalIconItem | string | undefined, eventIds: Set<string>): boolean;
24
+ /** helper function to get the iconSpec from a ConditionIconItem as IconSpec | undefined*/
25
+ static getValue(conditionalValue: ConditionalIconItem | string | undefined): IconSpec | undefined;
26
+ }
27
+ //# sourceMappingURL=ConditionalIconItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConditionalIconItem.d.ts","sourceRoot":"","sources":["../../../../src/core-react/icons/ConditionalIconItem.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C;;GAEG;AACH,qBAAa,mBAAmB;aAQF,UAAU,EAAE,MAAM,QAAQ;aAAkB,YAAY,EAAE,MAAM,EAAE;IAP9F,OAAO,CAAC,MAAM,CAAC,CAAW;IAE1B;;;;MAIE;gBAC0B,UAAU,EAAE,MAAM,QAAQ,EAAkB,YAAY,EAAE,MAAM,EAAE,EAAE,KAAK,CAAC,EAAE,QAAQ;IAIhH,mDAAmD;IACnD,IAAW,KAAK,IAAI,QAAQ,CAM3B;IAED,2DAA2D;IACpD,OAAO,IAAI,OAAO;IAUzB,gGAAgG;WAClF,YAAY,CAAC,gBAAgB,EAAE,mBAAmB,GAAG,MAAM,GAAG,SAAS,EAAE,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,OAAO;IAYtH,0FAA0F;WAC5E,QAAQ,CAAC,gBAAgB,EAAE,mBAAmB,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS;CAWzG"}
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ /*---------------------------------------------------------------------------------------------
3
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
+ * See LICENSE.md in the project root for license terms and full copyright notice.
5
+ *--------------------------------------------------------------------------------------------*/
6
+ /** @packageDocumentation
7
+ * @module Item
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.ConditionalIconItem = void 0;
11
+ /** Class used to return an icon. The icon is variable and can be changed in response to subscribed event ids.
12
+ * @public
13
+ */
14
+ class ConditionalIconItem {
15
+ /** Constructor for ConditionalIconItem
16
+ * @param iconGetter Function to retrieve the icon that matches the condition. Returns an IconSpec.
17
+ * @param syncEventIds The array of event ids to be monitored. These events are triggered when the condition(s) that control the icon change.
18
+ * @param value The default IconSpec. If this is not specified, the function is run to get the initial value.
19
+ */
20
+ constructor(iconGetter, syncEventIds, value) {
21
+ this.iconGetter = iconGetter;
22
+ this.syncEventIds = syncEventIds;
23
+ this._value = value;
24
+ }
25
+ /** The current IconSpec according to conditions */
26
+ get value() {
27
+ /* istanbul ignore else */
28
+ if (undefined !== this._value)
29
+ return this._value;
30
+ this._value = this.iconGetter();
31
+ return this._value;
32
+ }
33
+ /** Called to update the value by running the iconGetter */
34
+ refresh() {
35
+ const newValue = this.iconGetter();
36
+ /* istanbul ignore else */
37
+ if (newValue !== this._value) {
38
+ this._value = newValue;
39
+ return true;
40
+ }
41
+ return false;
42
+ }
43
+ /** A helper function that updates the IconSpec value when the specified events are triggered */
44
+ static refreshValue(conditionalValue, eventIds) {
45
+ /* istanbul ignore else */
46
+ if (undefined === conditionalValue || !(conditionalValue instanceof ConditionalIconItem))
47
+ return false;
48
+ /* istanbul ignore else */
49
+ if (conditionalValue.syncEventIds.some((value) => eventIds.has(value.toLowerCase())))
50
+ return conditionalValue.refresh();
51
+ return false;
52
+ }
53
+ /** helper function to get the iconSpec from a ConditionIconItem as IconSpec | undefined*/
54
+ static getValue(conditionalValue) {
55
+ /* istanbul ignore else */
56
+ if (undefined === conditionalValue)
57
+ return undefined;
58
+ /* istanbul ignore else */
59
+ if (conditionalValue instanceof ConditionalIconItem)
60
+ return conditionalValue.value;
61
+ return conditionalValue;
62
+ }
63
+ }
64
+ exports.ConditionalIconItem = ConditionalIconItem;
65
+ //# sourceMappingURL=ConditionalIconItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConditionalIconItem.js","sourceRoot":"","sources":["../../../../src/core-react/icons/ConditionalIconItem.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAIH;;GAEG;AACH,MAAa,mBAAmB;IAG9B;;;;MAIE;IACF,YAA4B,UAA0B,EAAkB,YAAsB,EAAE,KAAgB;QAApF,eAAU,GAAV,UAAU,CAAgB;QAAkB,iBAAY,GAAZ,YAAY,CAAU;QAC5F,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACtB,CAAC;IAED,mDAAmD;IACnD,IAAW,KAAK;QACd,0BAA0B;QAC1B,IAAI,SAAS,KAAK,IAAI,CAAC,MAAM;YAC3B,OAAO,IAAI,CAAC,MAAM,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED,2DAA2D;IACpD,OAAO;QACZ,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QACnC,0BAA0B;QAC1B,IAAI,QAAQ,KAAK,IAAI,CAAC,MAAM,EAAE;YAC5B,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC;YACvB,OAAO,IAAI,CAAC;SACb;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,gGAAgG;IACzF,MAAM,CAAC,YAAY,CAAC,gBAA0D,EAAE,QAAqB;QAC1G,0BAA0B;QAC1B,IAAI,SAAS,KAAK,gBAAgB,IAAI,CAAC,CAAC,gBAAgB,YAAY,mBAAmB,CAAC;YACtF,OAAO,KAAK,CAAC;QAEf,0BAA0B;QAC1B,IAAI,gBAAgB,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,KAAa,EAAW,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC;YACnG,OAAO,gBAAgB,CAAC,OAAO,EAAE,CAAC;QAEpC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,0FAA0F;IACnF,MAAM,CAAC,QAAQ,CAAC,gBAA0D;QAC/E,0BAA0B;QAC1B,IAAI,SAAS,KAAK,gBAAgB;YAChC,OAAO,SAAS,CAAC;QAEnB,0BAA0B;QAC1B,IAAI,gBAAgB,YAAY,mBAAmB;YACjD,OAAO,gBAAgB,CAAC,KAAK,CAAC;QAEhC,OAAO,gBAAgB,CAAC;IAC1B,CAAC;CACF;AAzDD,kDAyDC","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 Item\r\n */\r\n\r\nimport { IconSpec } from \"./IconComponent\";\r\n\r\n/** Class used to return an icon. The icon is variable and can be changed in response to subscribed event ids.\r\n * @public\r\n */\r\nexport class ConditionalIconItem {\r\n private _value?: IconSpec;\r\n\r\n /** Constructor for ConditionalIconItem\r\n * @param iconGetter Function to retrieve the icon that matches the condition. Returns an IconSpec.\r\n * @param syncEventIds The array of event ids to be monitored. These events are triggered when the condition(s) that control the icon change.\r\n * @param value The default IconSpec. If this is not specified, the function is run to get the initial value.\r\n */\r\n constructor(public readonly iconGetter: () => IconSpec, public readonly syncEventIds: string[], value?: IconSpec) {\r\n this._value = value;\r\n }\r\n\r\n /** The current IconSpec according to conditions */\r\n public get value(): IconSpec {\r\n /* istanbul ignore else */\r\n if (undefined !== this._value)\r\n return this._value;\r\n this._value = this.iconGetter();\r\n return this._value;\r\n }\r\n\r\n /** Called to update the value by running the iconGetter */\r\n public refresh(): boolean {\r\n const newValue = this.iconGetter();\r\n /* istanbul ignore else */\r\n if (newValue !== this._value) {\r\n this._value = newValue;\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n /** A helper function that updates the IconSpec value when the specified events are triggered */\r\n public static refreshValue(conditionalValue: ConditionalIconItem | string | undefined, eventIds: Set<string>): boolean {\r\n /* istanbul ignore else */\r\n if (undefined === conditionalValue || !(conditionalValue instanceof ConditionalIconItem))\r\n return false;\r\n\r\n /* istanbul ignore else */\r\n if (conditionalValue.syncEventIds.some((value: string): boolean => eventIds.has(value.toLowerCase())))\r\n return conditionalValue.refresh();\r\n\r\n return false;\r\n }\r\n\r\n /** helper function to get the iconSpec from a ConditionIconItem as IconSpec | undefined*/\r\n public static getValue(conditionalValue: ConditionalIconItem | string | undefined): IconSpec | undefined {\r\n /* istanbul ignore else */\r\n if (undefined === conditionalValue)\r\n return undefined;\r\n\r\n /* istanbul ignore else */\r\n if (conditionalValue instanceof ConditionalIconItem)\r\n return conditionalValue.value;\r\n\r\n return conditionalValue;\r\n }\r\n}\r\n"]}
@@ -5,15 +5,16 @@ import "./IconComponent.scss";
5
5
  import * as React from "react";
6
6
  import { ConditionalStringValue } from "@itwin/appui-abstract";
7
7
  import { CommonProps } from "../utils/Props";
8
+ import { ConditionalIconItem } from "./ConditionalIconItem";
8
9
  /** Prototype for an IconSpec which can be a string, ReactNode or ConditionalStringValue.
9
10
  * @public
10
11
  */
11
- export declare type IconSpec = string | ConditionalStringValue | React.ReactNode;
12
+ export declare type IconSpec = string | ConditionalStringValue | React.ReactNode | ConditionalIconItem;
12
13
  /** Properties for the [[Icon]] React component
13
14
  * @public
14
15
  */
15
16
  export interface IconProps extends CommonProps {
16
- /** CSS class name or SvgSprite/SvgPath for icon. This is optional because it is improperly
17
+ /** CSS class name or SvgPath for icon. This is optional because it is improperly
17
18
  * used to extend other interfaces and changing it would break existing API.
18
19
  */
19
20
  iconSpec?: IconSpec;
@@ -1 +1 @@
1
- {"version":3,"file":"IconComponent.d.ts","sourceRoot":"","sources":["../../../../src/core-react/icons/IconComponent.tsx"],"names":[],"mappings":"AAKA;;GAEG;AAEH,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,sBAAsB,EAAqB,MAAM,uBAAuB,CAAC;AAElF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C;;GAEG;AACH,oBAAY,QAAQ,GAAG,MAAM,GAAG,sBAAsB,GAAG,KAAK,CAAC,SAAS,CAAC;AAEzE;;GAEG;AACH,MAAM,WAAW,SAAU,SAAQ,WAAW;IAC5C;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,sBAgDpC"}
1
+ {"version":3,"file":"IconComponent.d.ts","sourceRoot":"","sources":["../../../../src/core-react/icons/IconComponent.tsx"],"names":[],"mappings":"AAKA;;GAEG;AAEH,OAAO,sBAAsB,CAAC;AAC9B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,sBAAsB,EAAqB,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;GAEG;AACH,oBAAY,QAAQ,GAAG,MAAM,GAAG,sBAAsB,GAAG,KAAK,CAAC,SAAS,GAAG,mBAAmB,CAAC;AAE/F;;GAEG;AACH,MAAM,WAAW,SAAU,SAAQ,WAAW;IAC5C;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,sBAwCpC"}
@@ -13,7 +13,6 @@ require("./IconComponent.scss");
13
13
  const React = require("react");
14
14
  const classnames_1 = require("classnames");
15
15
  const appui_abstract_1 = require("@itwin/appui-abstract");
16
- const SvgSprite_1 = require("./SvgSprite");
17
16
  const dompurify_1 = require("dompurify"), DOMPurifyNS = dompurify_1;
18
17
  /** Icon Functional component displays an icon based on an [[IconSpec]].
19
18
  * @public
@@ -24,11 +23,6 @@ function Icon(props) {
24
23
  const iconString = (typeof props.iconSpec === "string" || props.iconSpec instanceof appui_abstract_1.ConditionalStringValue) ?
25
24
  appui_abstract_1.ConditionalStringValue.getValue(props.iconSpec) : undefined;
26
25
  if (iconString) {
27
- const svgSource = appui_abstract_1.IconSpecUtilities.getSvgSource(iconString);
28
- // if string begins with "svg:" then we assume it was imported (into extension source file) using webpack loader svg-sprite-loader
29
- if (svgSource !== undefined)
30
- return (React.createElement("i", { className: (0, classnames_1.default)("icon", "core-svg-icon", props.className), style: props.style },
31
- React.createElement(SvgSprite_1.SvgSprite, { src: svgSource })));
32
26
  const webComponentString = appui_abstract_1.IconSpecUtilities.getWebComponentSource(iconString);
33
27
  if (webComponentString) {
34
28
  const svgLoader = `<svg-loader src="${webComponentString}"></svg-loader>`;
@@ -49,7 +43,7 @@ function Icon(props) {
49
43
  }
50
44
  return (React.createElement("i", { className: (0, classnames_1.default)("icon", iconString, props.className), style: props.style }));
51
45
  }
52
- return (React.createElement("i", { className: (0, classnames_1.default)("icon", "core-svg-icon", props.className), style: props.style }, props.iconSpec));
46
+ return (React.createElement("i", { className: (0, classnames_1.default)("icon", "core-svg-icon", props.className), style: props.style }, props.iconSpec instanceof appui_abstract_1.ConditionalStringValue ? undefined : props.iconSpec));
53
47
  }
54
48
  exports.Icon = Icon;
55
49
  //# sourceMappingURL=IconComponent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconComponent.js","sourceRoot":"","sources":["../../../../src/core-react/icons/IconComponent.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F,4CAA4C;AAC5C;;GAEG;;;AAEH,gCAA8B;AAC9B,+BAA+B;AAC/B,2CAAoC;AACpC,0DAAkF;AAClF,2CAAwC;AAExC,oEAAoD;AAiBpD;;GAEG;AACH,SAAgB,IAAI,CAAC,KAAgB;IACnC,IAAI,CAAC,KAAK,CAAC,QAAQ;QACjB,OAAO,IAAI,CAAC;IAEd,MAAM,UAAU,GAAG,CAAC,OAAO,KAAK,CAAC,QAAQ,KAAK,QAAQ,IAAI,KAAK,CAAC,QAAQ,YAAY,uCAAsB,CAAC,CAAC,CAAC;QAC3G,uCAAsB,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAE9D,IAAI,UAAU,EAAE;QACd,MAAM,SAAS,GAAG,kCAAiB,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QAC7D,kIAAkI;QAClI,IAAI,SAAS,KAAK,SAAS;YACzB,OAAO,CACL,2BAAG,SAAS,EAAE,IAAA,oBAAU,EAAC,MAAM,EAAE,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK;gBACpF,oBAAC,qBAAS,IAAC,GAAG,EAAE,SAAS,GAAI,CAC3B,CACL,CAAC;QACJ,MAAM,kBAAkB,GAAG,kCAAiB,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QAC/E,IAAI,kBAAkB,EAAE;YACtB,MAAM,SAAS,GAAG,oBAAoB,kBAAkB,iBAAiB,CAAC;YAC1E,MAAM,MAAM,GAAG,QAAQ,SAAS,QAAQ,CAAC;YACzC,6EAA6E;YAC7E,iFAAiF;YACjF,uBAAuB;YACvB,MAAM,SAAS,GAAG,mBAAS,aAAT,mBAAS,cAAT,mBAAS,GAAI,WAAW,CAAC;YAE3C,MAAM,eAAe,GAAG;gBACtB,YAAY,EAAE,CAAC,YAAY,CAAC;gBAC5B,iBAAiB,EAAE,kBAAkB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE;aACzE,CAAC;YAEF,MAAM,mBAAmB,GAAG,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;YACxE,iFAAiF;YACjF,+FAA+F;YAC/F,MAAM,gBAAgB,GAAG,6BAAK,uBAAuB,EAAE,EAAE,MAAM,EAAE,mBAAmB,EAAE,GAAQ,CAAC;YAC/F,OAAO,CACL,2BAAG,SAAS,EAAE,IAAA,oBAAU,EAAC,MAAM,EAAE,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,IAC/D,gBAAgB,CACf,CACL,CAAC;SACH;QACD,OAAO,CAAC,2BAAG,SAAS,EAAE,IAAA,oBAAU,EAAC,MAAM,EAAE,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,GAAI,CAAC,CAAC;KAChG;IAED,OAAO,CACL,2BAAG,SAAS,EAAE,IAAA,oBAAU,EAAC,MAAM,EAAE,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,IACnF,KAAK,CAAC,QAAQ,CACb,CACL,CAAC;AACJ,CAAC;AAhDD,oBAgDC","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/* eslint-disable deprecation/deprecation */\r\n/** @packageDocumentation\r\n * @module Icon\r\n */\r\n\r\nimport \"./IconComponent.scss\";\r\nimport * as React from \"react\";\r\nimport classnames from \"classnames\";\r\nimport { ConditionalStringValue, IconSpecUtilities } from \"@itwin/appui-abstract\";\r\nimport { SvgSprite } from \"./SvgSprite\";\r\nimport { CommonProps } from \"../utils/Props\";\r\nimport DOMPurify, * as DOMPurifyNS from \"dompurify\";\r\n\r\n/** Prototype for an IconSpec which can be a string, ReactNode or ConditionalStringValue.\r\n * @public\r\n */\r\nexport type IconSpec = string | ConditionalStringValue | React.ReactNode;\r\n\r\n/** Properties for the [[Icon]] React component\r\n * @public\r\n */\r\nexport interface IconProps extends CommonProps {\r\n /** CSS class name or SvgSprite/SvgPath for icon. This is optional because it is improperly\r\n * used to extend other interfaces and changing it would break existing API.\r\n */\r\n iconSpec?: IconSpec;\r\n}\r\n\r\n/** Icon Functional component displays an icon based on an [[IconSpec]].\r\n * @public\r\n */\r\nexport function Icon(props: IconProps) {\r\n if (!props.iconSpec)\r\n return null;\r\n\r\n const iconString = (typeof props.iconSpec === \"string\" || props.iconSpec instanceof ConditionalStringValue) ?\r\n ConditionalStringValue.getValue(props.iconSpec) : undefined;\r\n\r\n if (iconString) {\r\n const svgSource = IconSpecUtilities.getSvgSource(iconString);\r\n // if string begins with \"svg:\" then we assume it was imported (into extension source file) using webpack loader svg-sprite-loader\r\n if (svgSource !== undefined)\r\n return (\r\n <i className={classnames(\"icon\", \"core-svg-icon\", props.className)} style={props.style}>\r\n <SvgSprite src={svgSource} />\r\n </i>\r\n );\r\n const webComponentString = IconSpecUtilities.getWebComponentSource(iconString);\r\n if (webComponentString) {\r\n const svgLoader = `<svg-loader src=\"${webComponentString}\"></svg-loader>`;\r\n const svgDiv = `<div>${svgLoader}</div>`;\r\n // the esm build of dompurify has a default import but the cjs build does not\r\n // if there is a default export, use it (likely esm), otherwise use the namespace\r\n // istanbul ignore next\r\n const sanitizer = DOMPurify ?? DOMPurifyNS;\r\n\r\n const sanitizerConfig = {\r\n ALLOWED_TAGS: [\"svg-loader\"],\r\n ADD_URI_SAFE_ATTR: webComponentString.startsWith(\"data:\") ? [\"src\"] : [],\r\n };\r\n\r\n const sanitizedIconString = sanitizer.sanitize(svgDiv, sanitizerConfig);\r\n // we can safely disable jam3/no-sanitizer-with-danger as we are sanitizing above\r\n // eslint-disable-next-line @typescript-eslint/naming-convention, jam3/no-sanitizer-with-danger\r\n const webComponentNode = <div dangerouslySetInnerHTML={{ __html: sanitizedIconString }}></div>;\r\n return (\r\n <i className={classnames(\"icon\", \"core-svg-icon\", props.className)} >\r\n {webComponentNode}\r\n </i>\r\n );\r\n }\r\n return (<i className={classnames(\"icon\", iconString, props.className)} style={props.style} />);\r\n }\r\n\r\n return (\r\n <i className={classnames(\"icon\", \"core-svg-icon\", props.className)} style={props.style}>\r\n {props.iconSpec}\r\n </i>\r\n );\r\n}\r\n"]}
1
+ {"version":3,"file":"IconComponent.js","sourceRoot":"","sources":["../../../../src/core-react/icons/IconComponent.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F,4CAA4C;AAC5C;;GAEG;;;AAEH,gCAA8B;AAC9B,+BAA+B;AAC/B,2CAAoC;AACpC,0DAAkF;AAElF,oEAAoD;AAkBpD;;GAEG;AACH,SAAgB,IAAI,CAAC,KAAgB;IACnC,IAAI,CAAC,KAAK,CAAC,QAAQ;QACjB,OAAO,IAAI,CAAC;IAEd,MAAM,UAAU,GAAG,CAAC,OAAO,KAAK,CAAC,QAAQ,KAAK,QAAQ,IAAI,KAAK,CAAC,QAAQ,YAAY,uCAAsB,CAAC,CAAC,CAAC;QAC3G,uCAAsB,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAE9D,IAAI,UAAU,EAAE;QACd,MAAM,kBAAkB,GAAG,kCAAiB,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;QAC/E,IAAI,kBAAkB,EAAE;YACtB,MAAM,SAAS,GAAG,oBAAoB,kBAAkB,iBAAiB,CAAC;YAC1E,MAAM,MAAM,GAAG,QAAQ,SAAS,QAAQ,CAAC;YACzC,6EAA6E;YAC7E,iFAAiF;YACjF,uBAAuB;YACvB,MAAM,SAAS,GAAG,mBAAS,aAAT,mBAAS,cAAT,mBAAS,GAAI,WAAW,CAAC;YAE3C,MAAM,eAAe,GAAG;gBACtB,YAAY,EAAE,CAAC,YAAY,CAAC;gBAC5B,iBAAiB,EAAE,kBAAkB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE;aACzE,CAAC;YAEF,MAAM,mBAAmB,GAAG,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;YACxE,iFAAiF;YACjF,+FAA+F;YAC/F,MAAM,gBAAgB,GAAG,6BAAK,uBAAuB,EAAE,EAAE,MAAM,EAAE,mBAAmB,EAAE,GAAQ,CAAC;YAC/F,OAAO,CACL,2BAAG,SAAS,EAAE,IAAA,oBAAU,EAAC,MAAM,EAAE,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,IAC/D,gBAAgB,CACf,CACL,CAAC;SACH;QACD,OAAO,CAAC,2BAAG,SAAS,EAAE,IAAA,oBAAU,EAAC,MAAM,EAAE,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,GAAI,CAAC,CAAC;KAChG;IAED,OAAO,CACL,2BAAG,SAAS,EAAE,IAAA,oBAAU,EAAC,MAAM,EAAE,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,IACnF,KAAK,CAAC,QAAQ,YAAY,uCAAsB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAC5E,CACL,CAAC;AACJ,CAAC;AAxCD,oBAwCC","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/* eslint-disable deprecation/deprecation */\r\n/** @packageDocumentation\r\n * @module Icon\r\n */\r\n\r\nimport \"./IconComponent.scss\";\r\nimport * as React from \"react\";\r\nimport classnames from \"classnames\";\r\nimport { ConditionalStringValue, IconSpecUtilities } from \"@itwin/appui-abstract\";\r\nimport { CommonProps } from \"../utils/Props\";\r\nimport DOMPurify, * as DOMPurifyNS from \"dompurify\";\r\nimport { ConditionalIconItem } from \"./ConditionalIconItem\";\r\n\r\n/** Prototype for an IconSpec which can be a string, ReactNode or ConditionalStringValue.\r\n * @public\r\n */\r\nexport type IconSpec = string | ConditionalStringValue | React.ReactNode | ConditionalIconItem;\r\n\r\n/** Properties for the [[Icon]] React component\r\n * @public\r\n */\r\nexport interface IconProps extends CommonProps {\r\n /** CSS class name or SvgPath for icon. This is optional because it is improperly\r\n * used to extend other interfaces and changing it would break existing API.\r\n */\r\n iconSpec?: IconSpec;\r\n}\r\n\r\n/** Icon Functional component displays an icon based on an [[IconSpec]].\r\n * @public\r\n */\r\nexport function Icon(props: IconProps) {\r\n if (!props.iconSpec)\r\n return null;\r\n\r\n const iconString = (typeof props.iconSpec === \"string\" || props.iconSpec instanceof ConditionalStringValue) ?\r\n ConditionalStringValue.getValue(props.iconSpec) : undefined;\r\n\r\n if (iconString) {\r\n const webComponentString = IconSpecUtilities.getWebComponentSource(iconString);\r\n if (webComponentString) {\r\n const svgLoader = `<svg-loader src=\"${webComponentString}\"></svg-loader>`;\r\n const svgDiv = `<div>${svgLoader}</div>`;\r\n // the esm build of dompurify has a default import but the cjs build does not\r\n // if there is a default export, use it (likely esm), otherwise use the namespace\r\n // istanbul ignore next\r\n const sanitizer = DOMPurify ?? DOMPurifyNS;\r\n\r\n const sanitizerConfig = {\r\n ALLOWED_TAGS: [\"svg-loader\"],\r\n ADD_URI_SAFE_ATTR: webComponentString.startsWith(\"data:\") ? [\"src\"] : [],\r\n };\r\n\r\n const sanitizedIconString = sanitizer.sanitize(svgDiv, sanitizerConfig);\r\n // we can safely disable jam3/no-sanitizer-with-danger as we are sanitizing above\r\n // eslint-disable-next-line @typescript-eslint/naming-convention, jam3/no-sanitizer-with-danger\r\n const webComponentNode = <div dangerouslySetInnerHTML={{ __html: sanitizedIconString }}></div>;\r\n return (\r\n <i className={classnames(\"icon\", \"core-svg-icon\", props.className)} >\r\n {webComponentNode}\r\n </i>\r\n );\r\n }\r\n return (<i className={classnames(\"icon\", iconString, props.className)} style={props.style} />);\r\n }\r\n\r\n return (\r\n <i className={classnames(\"icon\", \"core-svg-icon\", props.className)} style={props.style}>\r\n {props.iconSpec instanceof ConditionalStringValue ? undefined : props.iconSpec}\r\n </i>\r\n );\r\n}\r\n"]}
@@ -1,7 +1,7 @@
1
1
  /** @packageDocumentation
2
2
  * @module Icon
3
3
  */
4
- import "./SvgSprite.scss";
4
+ import "./SvgPath.scss";
5
5
  import * as React from "react";
6
6
  import { CommonProps } from "../utils/Props";
7
7
  /** Properties of [[SvgPath]] component.
@@ -1 +1 @@
1
- {"version":3,"file":"SvgPath.d.ts","sourceRoot":"","sources":["../../../../src/core-react/icons/SvgPath.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,kBAAkB,CAAC;AAE1B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC/C,yBAAyB;IACzB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,wBAAwB;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,yBAAyB;IACzB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,qBAAa,OAAQ,SAAQ,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC;IAC5C,MAAM;CAqBvB"}
1
+ {"version":3,"file":"SvgPath.d.ts","sourceRoot":"","sources":["../../../../src/core-react/icons/SvgPath.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,gBAAgB,CAAC;AAExB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC/C,yBAAyB;IACzB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,wBAAwB;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,yBAAyB;IACzB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,qBAAa,OAAQ,SAAQ,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC;IAC5C,MAAM;CAqBvB"}
@@ -8,7 +8,7 @@
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.SvgPath = void 0;
11
- require("./SvgSprite.scss");
11
+ require("./SvgPath.scss");
12
12
  const classnames_1 = require("classnames");
13
13
  const React = require("react");
14
14
  /** Svg element wrapper with specified Svg paths.
@@ -16,7 +16,7 @@ const React = require("react");
16
16
  */
17
17
  class SvgPath extends React.PureComponent {
18
18
  render() {
19
- const className = (0, classnames_1.default)("core-icons-svgSprite", this.props.className);
19
+ const className = (0, classnames_1.default)("core-icons-svgPath", this.props.className);
20
20
  const viewBox = `0 0 ${this.props.viewBoxWidth} ${this.props.viewBoxHeight}`;
21
21
  return (React.createElement("svg", { className: className, style: this.props.style, width: "100%", height: "100%", viewBox: viewBox },
22
22
  React.createElement("g", null, this.props.paths.map((path, index) => {
@@ -1 +1 @@
1
- {"version":3,"file":"SvgPath.js","sourceRoot":"","sources":["../../../../src/core-react/icons/SvgPath.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,4BAA0B;AAC1B,2CAAoC;AACpC,+BAA+B;AAe/B;;GAEG;AACH,MAAa,OAAQ,SAAQ,KAAK,CAAC,aAA2B;IAC5C,MAAM;QACpB,MAAM,SAAS,GAAG,IAAA,oBAAU,EAC1B,sBAAsB,EACtB,IAAI,CAAC,KAAK,CAAC,SAAS,CACrB,CAAC;QACF,MAAM,OAAO,GAAG,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,IAAI,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC;QAE7E,OAAO,CACL,6BAAK,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,OAAO,EAAE,OAAO;YAC7F,+BAEI,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAY,EAAE,KAAa,EAAE,EAAE;gBACnD,OAAO,CACL,8BAAM,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,GAAI,CAC9B,CAAC;YACJ,CAAC,CAAC,CAEF,CACA,CACP,CAAC;IACJ,CAAC;CACF;AAtBD,0BAsBC","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 Icon\r\n */\r\n\r\nimport \"./SvgSprite.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { CommonProps } from \"../utils/Props\";\r\n\r\n/** Properties of [[SvgPath]] component.\r\n * @public\r\n */\r\nexport interface SvgPathProps extends CommonProps {\r\n /** Svg graphics paths */\r\n paths: string[];\r\n /** Svg viewBox width */\r\n viewBoxWidth: number;\r\n /** Svg viewBox height */\r\n viewBoxHeight: number;\r\n}\r\n\r\n/** Svg element wrapper with specified Svg paths.\r\n * @public\r\n */\r\nexport class SvgPath extends React.PureComponent<SvgPathProps> {\r\n public override render() {\r\n const className = classnames(\r\n \"core-icons-svgSprite\",\r\n this.props.className,\r\n );\r\n const viewBox = `0 0 ${this.props.viewBoxWidth} ${this.props.viewBoxHeight}`;\r\n\r\n return (\r\n <svg className={className} style={this.props.style} width=\"100%\" height=\"100%\" viewBox={viewBox}>\r\n <g>\r\n {\r\n this.props.paths.map((path: string, index: number) => {\r\n return (\r\n <path d={path} key={index} />\r\n );\r\n })\r\n }\r\n </g>\r\n </svg>\r\n );\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"SvgPath.js","sourceRoot":"","sources":["../../../../src/core-react/icons/SvgPath.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,0BAAwB;AACxB,2CAAoC;AACpC,+BAA+B;AAe/B;;GAEG;AACH,MAAa,OAAQ,SAAQ,KAAK,CAAC,aAA2B;IAC5C,MAAM;QACpB,MAAM,SAAS,GAAG,IAAA,oBAAU,EAC1B,oBAAoB,EACpB,IAAI,CAAC,KAAK,CAAC,SAAS,CACrB,CAAC;QACF,MAAM,OAAO,GAAG,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,IAAI,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC;QAE7E,OAAO,CACL,6BAAK,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,EAAC,OAAO,EAAE,OAAO;YAC7F,+BAEI,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAY,EAAE,KAAa,EAAE,EAAE;gBACnD,OAAO,CACL,8BAAM,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,GAAI,CAC9B,CAAC;YACJ,CAAC,CAAC,CAEF,CACA,CACP,CAAC;IACJ,CAAC;CACF;AAtBD,0BAsBC","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 Icon\r\n */\r\n\r\nimport \"./SvgPath.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { CommonProps } from \"../utils/Props\";\r\n\r\n/** Properties of [[SvgPath]] component.\r\n * @public\r\n */\r\nexport interface SvgPathProps extends CommonProps {\r\n /** Svg graphics paths */\r\n paths: string[];\r\n /** Svg viewBox width */\r\n viewBoxWidth: number;\r\n /** Svg viewBox height */\r\n viewBoxHeight: number;\r\n}\r\n\r\n/** Svg element wrapper with specified Svg paths.\r\n * @public\r\n */\r\nexport class SvgPath extends React.PureComponent<SvgPathProps> {\r\n public override render() {\r\n const className = classnames(\r\n \"core-icons-svgPath\",\r\n this.props.className,\r\n );\r\n const viewBox = `0 0 ${this.props.viewBoxWidth} ${this.props.viewBoxHeight}`;\r\n\r\n return (\r\n <svg className={className} style={this.props.style} width=\"100%\" height=\"100%\" viewBox={viewBox}>\r\n <g>\r\n {\r\n this.props.paths.map((path: string, index: number) => {\r\n return (\r\n <path d={path} key={index} />\r\n );\r\n })\r\n }\r\n </g>\r\n </svg>\r\n );\r\n }\r\n}\r\n"]}
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- .core-icons-svgSprite {
5
+ .core-icons-svgPath {
6
6
  display: inline-block;
7
7
  box-sizing: border-box;
8
8
  background-color: transparent;
@@ -2,7 +2,6 @@
2
2
  * @module Icon
3
3
  */
4
4
  import "./WebFontIcon.scss";
5
- import "@bentley/icons-generic-webfont/dist/bentley-icons-generic-webfont.css";
6
5
  import * as React from "react";
7
6
  import { CommonProps } from "../utils/Props";
8
7
  /** Properties for the [[WebFontIcon]] React component
@@ -1 +1 @@
1
- {"version":3,"file":"WebFontIcon.d.ts","sourceRoot":"","sources":["../../../../src/core-react/icons/WebFontIcon.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,oBAAoB,CAAC;AAC5B,OAAO,uEAAuE,CAAC;AAE/E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,iCAAiC;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,0BAA0B;IAC1B,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;IACnD,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uBAAuB;IACvB,QAAQ,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;IAChE,2DAA2D;IAC3D,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,eAiBlD"}
1
+ {"version":3,"file":"WebFontIcon.d.ts","sourceRoot":"","sources":["../../../../src/core-react/icons/WebFontIcon.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,oBAAoB,CAAC;AAE5B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,iCAAiC;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,0BAA0B;IAC1B,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;IACnD,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uBAAuB;IACvB,QAAQ,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;IAChE,2DAA2D;IAC3D,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,eAiBlD"}
@@ -9,7 +9,6 @@
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.WebFontIcon = void 0;
11
11
  require("./WebFontIcon.scss");
12
- require("@bentley/icons-generic-webfont/dist/bentley-icons-generic-webfont.css");
13
12
  const classnames_1 = require("classnames");
14
13
  const React = require("react");
15
14
  /** WebFontIcon React component
@@ -1 +1 @@
1
- {"version":3,"file":"WebFontIcon.js","sourceRoot":"","sources":["../../../../src/core-react/icons/WebFontIcon.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,8BAA4B;AAC5B,iFAA+E;AAC/E,2CAAoC;AACpC,+BAA+B;AAmB/B;;GAEG;AACH,SAAgB,WAAW,CAAC,KAAuB;IACjD,MAAM,SAAS,GAAG,IAAA,oBAAU,EAC1B,KAAK,CAAC,aAAa,IAAI,kBAAkB,EACzC,KAAK,CAAC,QAAQ,EACd,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAgB,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,EAC7D,KAAK,CAAC,SAAS,CAChB,CAAC;IAEF,OAAO,CACL,8BACE,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,IAAI,EAAC,cAAc,GACnB,CACH,CAAC;AACJ,CAAC;AAjBD,kCAiBC","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 Icon\r\n */\r\n\r\nimport \"./WebFontIcon.scss\";\r\nimport \"@bentley/icons-generic-webfont/dist/bentley-icons-generic-webfont.css\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { CommonProps } from \"../utils/Props\";\r\n\r\n/** Properties for the [[WebFontIcon]] React component\r\n * @public\r\n */\r\nexport interface WebFontIconProps extends CommonProps {\r\n /** Bentley Web Font icon name */\r\n iconName: string;\r\n /** Click event handler */\r\n onClick?: React.MouseEventHandler<HTMLSpanElement>;\r\n /** Text that will be shown when hovered on the icon. */\r\n title?: string;\r\n /** Size of the icon */\r\n iconSize?: \"x-small\" | \"small\" | \"medium\" | \"large\" | \"x-large\";\r\n /** Class name of icon used for custom font-family icons */\r\n iconClassName?: string;\r\n}\r\n\r\n/** WebFontIcon React component\r\n * @public\r\n */\r\nexport function WebFontIcon(props: WebFontIconProps) {\r\n const className = classnames(\r\n props.iconClassName || \"bui-webfont-icon\",\r\n props.iconName,\r\n props.iconSize ? `uicore-icons-${props.iconSize}` : undefined,\r\n props.className,\r\n );\r\n\r\n return (\r\n <span\r\n className={className}\r\n title={props.title}\r\n style={props.style}\r\n onClick={props.onClick}\r\n role=\"presentation\"\r\n />\r\n );\r\n}\r\n"]}
1
+ {"version":3,"file":"WebFontIcon.js","sourceRoot":"","sources":["../../../../src/core-react/icons/WebFontIcon.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,8BAA4B;AAC5B,2CAAoC;AACpC,+BAA+B;AAmB/B;;GAEG;AACH,SAAgB,WAAW,CAAC,KAAuB;IACjD,MAAM,SAAS,GAAG,IAAA,oBAAU,EAC1B,KAAK,CAAC,aAAa,IAAI,kBAAkB,EACzC,KAAK,CAAC,QAAQ,EACd,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAgB,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,EAC7D,KAAK,CAAC,SAAS,CAChB,CAAC;IAEF,OAAO,CACL,8BACE,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,IAAI,EAAC,cAAc,GACnB,CACH,CAAC;AACJ,CAAC;AAjBD,kCAiBC","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 Icon\r\n */\r\n\r\nimport \"./WebFontIcon.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { CommonProps } from \"../utils/Props\";\r\n\r\n/** Properties for the [[WebFontIcon]] React component\r\n * @public\r\n */\r\nexport interface WebFontIconProps extends CommonProps {\r\n /** Bentley Web Font icon name */\r\n iconName: string;\r\n /** Click event handler */\r\n onClick?: React.MouseEventHandler<HTMLSpanElement>;\r\n /** Text that will be shown when hovered on the icon. */\r\n title?: string;\r\n /** Size of the icon */\r\n iconSize?: \"x-small\" | \"small\" | \"medium\" | \"large\" | \"x-large\";\r\n /** Class name of icon used for custom font-family icons */\r\n iconClassName?: string;\r\n}\r\n\r\n/** WebFontIcon React component\r\n * @public\r\n */\r\nexport function WebFontIcon(props: WebFontIconProps) {\r\n const className = classnames(\r\n props.iconClassName || \"bui-webfont-icon\",\r\n props.iconName,\r\n props.iconSize ? `uicore-icons-${props.iconSize}` : undefined,\r\n props.className,\r\n );\r\n\r\n return (\r\n <span\r\n className={className}\r\n title={props.title}\r\n style={props.style}\r\n onClick={props.onClick}\r\n role=\"presentation\"\r\n />\r\n );\r\n}\r\n"]}
@@ -2,7 +2,6 @@
2
2
  * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
3
  * See LICENSE.md in the project root for license terms and full copyright notice.
4
4
  *--------------------------------------------------------------------------------------------*/
5
- @import "../style/colors";
6
5
 
7
6
  // Sizes
8
7
  $uicore-icons-x-small: 12px;
@@ -11,11 +10,3 @@ $uicore-icons-small: 16px;
11
10
  $uicore-icons-medium: 2 * $uicore-icons-small;
12
11
  $uicore-icons-large: 3 * $uicore-icons-small;
13
12
  $uicore-icons-x-large: 4 * $uicore-icons-small;
14
-
15
- // Colors
16
- $uicore-icons-light: $uicore-gray;
17
- $uicore-icons-dark: $uicore-gray-5;
18
- $uicore-icons-green: $uicore-green;
19
- $uicore-icons-red: $uicore-red;
20
- $uicore-icons-orange: $uicore-orange;
21
- $uicore-icons-blue: $uicore-teal-b;
@@ -4,7 +4,6 @@
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
  @import "../style/index.scss";
6
6
  @import "../icons/variables.scss";
7
- @import "~@itwin/itwinui-css/scss/style/variables";
8
7
 
9
8
  .core-image-checkbox {
10
9
  display: inline-block;
@@ -22,11 +21,11 @@
22
21
  }
23
22
 
24
23
  input[type="checkbox"]:checked + .image {
25
- color: $buic-foreground-primary;
24
+ color: var(--iui-color-text-accent);
26
25
  }
27
26
 
28
27
  input[type="checkbox"]:not(:checked) + .image {
29
- color: $buic-foreground-body;
28
+ color: var(--iui-color-text);
30
29
  }
31
30
 
32
31
  input[type="checkbox"] + .image {
@@ -39,7 +38,7 @@
39
38
 
40
39
  input[type="checkbox"]:disabled:not(:checked) + .image,
41
40
  input[type="checkbox"]:disabled:checked + .image {
42
- opacity: .25;
41
+ opacity: 0.25;
43
42
  }
44
43
 
45
44
  /* accessibility */
@@ -49,7 +48,7 @@
49
48
  }
50
49
  .image-checkbox-border {
51
50
  border: 1px solid $buic-foreground-disabled;
52
- background-color: $buic-background-control;
53
- border-radius: $iui-border-radius;
51
+ background-color: $buic-background-control;
52
+ border-radius: var(--iui-border-radius-1);
54
53
  padding: 1px 3px 0 2px;
55
- }
54
+ }
@@ -19,9 +19,5 @@
19
19
  @import "./icons/index";
20
20
  @import "./inputs/index";
21
21
  @import "./loading/index";
22
- @import "./progress-indicators/index";
23
- @import "./radio/index";
24
- @import "./select/index";
25
22
  @import "./tabs/index";
26
23
  @import "./text/index";
27
- @import "./tiles/index";