@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
@@ -1,159 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- @import "../style/index";
6
- @import "../inputs/variables";
7
- @import "../scrollbar";
8
- @import "../z-index";
9
- @import "~@itwin/itwinui-css/scss/style/speed";
10
- @import "~@itwin/itwinui-css/scss/style/typography";
11
- @import "~@itwin/itwinui-css/scss/style/variables";
12
-
13
- //HACK
14
- // there is an issue in react-select where generated styles have higher
15
- // priority than the class prefix style solution, which we use. I thought
16
- // this was the best solution after testing several, the better of which
17
- // caused an obscure node-sass error
18
- .uicore-reactSelectTop {
19
- $uicore-select-padding-bordered: $uicore-inputs-padding-bordered;
20
-
21
- font-size: $iui-font-size;
22
- font-weight: normal;
23
- color: $buic-text-color;
24
- background-image: none;
25
- border-radius: $iui-border-radius;
26
- box-sizing: border-box;
27
- box-shadow: $buic-inputs-boxshadow 0px 1px 1px inset;
28
- transition: border-color $iui-speed-fast ease-in-out, box-shadow $iui-speed-fast ease-in-out;
29
-
30
- @include firefox-only {
31
- padding-top: $uicore-select-padding-bordered - 1px;
32
- padding-bottom: $uicore-select-padding-bordered - 1px;
33
- }
34
-
35
- .react-select {
36
- &__control {
37
- background-color: $buic-background-control;
38
- color: $buic-foreground-body;
39
- border: 1px solid $buic-inputs-border;
40
- cursor: pointer;
41
-
42
- svg {
43
- width: unset;
44
- height: unset;
45
- }
46
-
47
- &--is-focused {
48
- outline: 0px;
49
- border-color: $buic-foreground-focus-border;
50
- box-shadow: $uicore-inputs-focus-boxshadow;
51
-
52
- &:hover {
53
- border-color: $buic-foreground-focus-border;
54
- }
55
- }
56
-
57
- &--is-disabled {
58
- background-color: $buic-background-control-disabled;
59
- color: $buic-text-color-disabled;
60
- opacity: $uicore-opacity-disabled;
61
- cursor: not-allowed;
62
- }
63
-
64
- .react-select__placeholder {
65
- color: $buic-foreground-disabled;
66
- }
67
-
68
- .react-select__value-container {
69
- .react-select__multi-value {
70
- background: $buic-background-control;
71
- color: $buic-foreground-primary;
72
-
73
- .react-select__multi-value__label {
74
- color: $buic-foreground-body;
75
-
76
- .react-select__multi-value__remove {
77
- background: $buic-background-control;
78
- }
79
- }
80
- }
81
-
82
- .react-select__multi-value__remove {
83
- cursor: pointer;
84
- }
85
- }
86
-
87
- }
88
-
89
- &__single-value {
90
- color: $buic-foreground-body;
91
- }
92
-
93
- &__indicator {
94
- color: $buic-foreground-body;
95
-
96
- &:hover {
97
- color: $buic-foreground-activehover;
98
- cursor: pointer;
99
- }
100
-
101
- &-separator {
102
- visibility: hidden;
103
- }
104
- }
105
-
106
- &__input {
107
- input {
108
- width: 100% !important;
109
- color: $buic-foreground-body !important;
110
- }
111
- }
112
-
113
- &__option {
114
- &:active {
115
- background-color: $buic-background-active-overlay;
116
- }
117
-
118
- &:hover:not(.react-select__option--is-selected) {
119
- background-color: $buic-background-hover-overlay;
120
- }
121
-
122
- &--is-focused:not(.react-select__option--is-selected) {
123
- background-color: $buic-background-hover-overlay;
124
- }
125
-
126
- &--is-selected {
127
- color: $buic-foreground-body;
128
- background-color: $buic-background-pressed-overlay;
129
-
130
- &:active {
131
- background-color: $buic-background-active-overlay;
132
- }
133
- }
134
- }
135
-
136
- &__menu {
137
- //HACK: double selector for specificity
138
- &#{&} {
139
- margin-top: 0;
140
- color: $buic-foreground-body;
141
- background-color: $buic-background-control;
142
- @include uicore-z-index(dialog-popup);
143
- }
144
-
145
- .react-select__menu-list {
146
- @include uicore-scrollbar();
147
- }
148
- }
149
- }
150
-
151
- // Double .react-select__menu intended to be more specific than the inline style.
152
- .react-select__menu.react-select__menu {
153
- @include uicore-scrollbar($buic-background-scrollbar, $buic-foreground-body);
154
- margin-top: 0;
155
- color: $buic-foreground-body;
156
- background-color: $buic-background-control;
157
- @include uicore-z-index(dialog-popup);
158
- }
159
- }
@@ -1,80 +0,0 @@
1
- /** @packageDocumentation
2
- * @module Slider
3
- */
4
- import "./Slider.scss";
5
- import * as React from "react";
6
- import { CommonProps } from "../utils/Props";
7
- /** Properties for [[Slider]] component
8
- * @public
9
- */
10
- export interface SliderProps extends CommonProps {
11
- /** Values to set Slider to initially */
12
- values: number[];
13
- /** Minimum value */
14
- min: number;
15
- /** Maximum value */
16
- max: number;
17
- /** Format the min display value */
18
- formatMin?: (value: number) => string;
19
- /** Format the max display value */
20
- formatMax?: (value: number) => string;
21
- /** Step value. Default is 0.1. */
22
- step?: number;
23
- /** The interaction mode. Default is 1. Possible values:
24
- * 1 - allows handles to cross each other.
25
- * 2 - keeps the sliders from crossing and separated by a step.
26
- */
27
- mode?: number | (() => number);
28
- /** Indicates whether the display of the Slider values is reversed. */
29
- reversed?: boolean;
30
- /** Indicates whether the Slider is disabled. */
31
- disabled?: boolean;
32
- /** Indicates whether to compensate for the tick marks when determining the width. */
33
- includeTicksInWidth?: boolean;
34
- /** Indicates whether to show tooltip with the value. The tooltip will be positioned above the Slider, by default. */
35
- showTooltip?: boolean;
36
- /** Indicates whether the tooltip should show below the Slider instead of above. */
37
- tooltipBelow?: boolean;
38
- /** Format a value for the tooltip */
39
- formatTooltip?: (value: number) => string;
40
- /** Indicates whether to show min & max values to the left & right of the Slider. */
41
- showMinMax?: boolean;
42
- /** Image to show for min. */
43
- minImage?: React.ReactNode;
44
- /** Image to show for max. */
45
- maxImage?: React.ReactNode;
46
- /** Indicates whether to show tick marks under the Slider. */
47
- showTicks?: boolean;
48
- /** Indicates whether to show tick labels under the tick marks. */
49
- showTickLabels?: boolean;
50
- /** Format a tick mark value */
51
- formatTick?: (tick: number) => string;
52
- /** Function to get the tick count. The default tick count is 10. */
53
- getTickCount?: () => number;
54
- /** Function to get the tick values. This overrides the tick count from getTickCount.
55
- * Use this prop if you want to specify your own tick values instead of ticks generated by the slider.
56
- * The numbers should be valid numbers in the domain and correspond to the step value.
57
- * Invalid values will be coerced to the closet matching value in the domain.
58
- */
59
- getTickValues?: () => number[];
60
- /** Listens for value changes.
61
- * Triggered when the value of the slider has changed. This will receive changes at
62
- * the end of a slide as well as changes from clicks on rails and tracks.
63
- */
64
- onChange?: (values: ReadonlyArray<number>) => void;
65
- /** Listens for value updates.
66
- * Called with the values at each update (caution: high-volume updates when dragging).
67
- */
68
- onUpdate?: (values: ReadonlyArray<number>) => void;
69
- /** No longer available use onUpdate. */
70
- onSlideStart?: (values: ReadonlyArray<number>) => void;
71
- /** No longer available use onChange. */
72
- onSlideEnd?: (values: ReadonlyArray<number>) => void;
73
- }
74
- /**
75
- * Slider React component displays a range slider.
76
- * @public
77
- * @deprecated in 3.0. Use Slider in itwinui-react instead
78
- */
79
- export declare function Slider(props: SliderProps): JSX.Element;
80
- //# sourceMappingURL=Slider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../../src/core-react/slider/Slider.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,eAAe,CAAC;AAEvB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAK7C;;IAEI;AACJ,MAAM,WAAW,WAAY,SAAQ,WAAW;IAC9C,wCAAwC;IACxC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,oBAAoB;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,oBAAoB;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,mCAAmC;IACnC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC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CAAC;IACnD,wCAAwC;IACxC,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IACvD,wCAAwC;IACxC,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;CACtD;AAED;;;;IAII;AACJ,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,eAuGxC"}
@@ -1,87 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- /** @packageDocumentation
6
- * @module Slider
7
- */
8
- import "./Slider.scss";
9
- import classnames from "classnames";
10
- import * as React from "react";
11
- import { Slider as ItwinSlider } from "@itwin/itwinui-react";
12
- import { BodyText } from "../text/BodyText";
13
- /**
14
- * Slider React component displays a range slider.
15
- * @public
16
- * @deprecated in 3.0. Use Slider in itwinui-react instead
17
- */
18
- export function Slider(props) {
19
- const { className, style, min, max, values, step, mode, formatMin, formatMax, onChange, onUpdate, showTicks, showTickLabels, formatTick, getTickCount, getTickValues, includeTicksInWidth, reversed, disabled, showMinMax, minImage, maxImage, showTooltip, tooltipBelow, formatTooltip, } = props;
20
- const containerClassNames = classnames("core-slider-container", className, disabled && "core-disabled", showTickLabels && "core-slider-tickLabels", includeTicksInWidth && "core-slider-includeTicksInWidth");
21
- const sliderClassNames = classnames("core-slider", showMinMax && "core-slider-minMax");
22
- const internalFormatTooltip = React.useCallback((value) => {
23
- if (formatTooltip)
24
- return formatTooltip(value);
25
- const actualStep = Math.abs(step !== null && step !== void 0 ? step : 1);
26
- if (Number.isInteger(actualStep))
27
- return value.toFixed(0);
28
- const stepString = actualStep.toString();
29
- const decimalIndex = stepString.indexOf(".");
30
- const numDecimals = actualStep.toString().length - (decimalIndex + 1);
31
- return value.toFixed(numDecimals);
32
- }, [formatTooltip, step]);
33
- const tooltipProps = React.useCallback((_index, val) => {
34
- const content = internalFormatTooltip(val);
35
- if (!showTooltip)
36
- return { visible: false };
37
- return { placement: tooltipBelow ? "bottom" : "top", content };
38
- }, [internalFormatTooltip, showTooltip, tooltipBelow]);
39
- const tickLabels = React.useMemo(() => {
40
- let ticks;
41
- if (showTicks) {
42
- const count = getTickCount ? getTickCount() : 0;
43
- if (count) {
44
- ticks = [];
45
- const increment = (max - min) / count;
46
- for (let i = 0; i <= count; i++) {
47
- const value = (i * increment) + min;
48
- if (showTickLabels) {
49
- const label = formatTick ? formatTick(value) : internalFormatTooltip(value);
50
- ticks.push(label);
51
- }
52
- else {
53
- ticks.push("");
54
- }
55
- }
56
- }
57
- else /* istanbul ignore else */ if (getTickValues) {
58
- return getTickValues().map((val) => formatTick ? formatTick(val) : internalFormatTooltip(val));
59
- }
60
- }
61
- return ticks;
62
- }, [formatTick, getTickCount, getTickValues, internalFormatTooltip, max, min, showTickLabels, showTicks]);
63
- const thumbMode = React.useMemo(() => {
64
- let inMode = 1;
65
- if (typeof mode === "function")
66
- inMode = mode();
67
- return 1 === inMode ? "allow-crossing" : "inhibit-crossing";
68
- }, [mode]);
69
- return (React.createElement("div", { className: containerClassNames, style: style },
70
- showMinMax &&
71
- React.createElement(MinMax, { value: min, testId: "core-slider-min", image: minImage, format: formatMin }),
72
- React.createElement(ItwinSlider, { className: sliderClassNames, values: values, min: min, max: max, step: step, thumbMode: thumbMode, trackDisplayMode: !reversed ? "auto" : "odd-segments", disabled: disabled, minLabel: "", maxLabel: "", tooltipProps: tooltipProps, tickLabels: tickLabels, onChange: onChange, onUpdate: onUpdate }),
73
- showMinMax &&
74
- React.createElement(MinMax, { value: max, testId: "core-slider-max", image: maxImage, format: formatMax })));
75
- }
76
- /** MinMax component for Slider */
77
- function MinMax(props) {
78
- const { value, testId, image, format } = props;
79
- let element;
80
- const displayValue = format !== undefined ? format(value) : value;
81
- if (image)
82
- element = React.createElement(React.Fragment, null, image);
83
- else
84
- element = React.createElement(BodyText, { className: "core-slider-minmax", "data-testid": testId }, displayValue);
85
- return element;
86
- }
87
- //# sourceMappingURL=Slider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Slider.js","sourceRoot":"","sources":["../../../../src/core-react/slider/Slider.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,eAAe,CAAC;AACvB,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AA6E5C;;;;IAII;AACJ,MAAM,UAAU,MAAM,CAAC,KAAkB;IACvC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EACpD,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,cAAc,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,mBAAmB,EACvF,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAC9B,WAAW,EAAE,YAAY,EAAE,aAAa,GACzC,GAAG,KAAK,CAAC;IAEV,MAAM,mBAAmB,GAAG,UAAU,CACpC,uBAAuB,EACvB,SAAS,EACT,QAAQ,IAAI,eAAe,EAC3B,cAAc,IAAI,wBAAwB,EAC1C,mBAAmB,IAAI,iCAAiC,CACzD,CAAC;IACF,MAAM,gBAAgB,GAAG,UAAU,CACjC,aAAa,EACb,UAAU,IAAI,oBAAoB,CACnC,CAAC;IAEF,MAAM,qBAAqB,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC,KAAa,EAAE,EAAE;QAChE,IAAI,aAAa;YACf,OAAO,aAAa,CAAC,KAAK,CAAC,CAAC;QAE9B,MAAM,UAAU,GA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9C,UAAU;YACT,oBAAC,MAAM,IAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAC,iBAAiB,EAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,GAAI;QAErF,oBAAC,WAAW,IACV,SAAS,EAAE,gBAAgB,EAC3B,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,SAAS,EACpB,gBAAgB,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,cAAc,EAErD,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAC,EAAE,EACX,QAAQ,EAAC,EAAE,EACX,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GAClB;QACD,UAAU;YACT,oBAAC,MAAM,IAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAC,iBAAiB,EAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,GAAI,CAEjF,CACP,CAAC;AACJ,CAAC;AAUD,kCAAkC;AAClC,SAAS,MAAM,CAAC,KAAkB;IAChC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAC/C,IAAI,OAAgC,CAAC;IACrC,MAAM,YAAY,GAAG,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAElE,IAAI,KAAK;QACP,OAAO,GAAG,0CAAG,KAAK,CAAI,CAAC;;QAEvB,OAAO,GAAG,oBAAC,QAAQ,IAAC,SAAS,EAAC,oBAAoB,iBAAc,MAAM,IAAG,YAAY,CAAY,CAAC;IAEpG,OAAO,OAAO,CAAC;AACjB,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 Slider\r\n */\r\n\r\nimport \"./Slider.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { Slider as ItwinSlider } from \"@itwin/itwinui-react\";\r\nimport { CommonProps } from \"../utils/Props\";\r\nimport { BodyText } from \"../text/BodyText\";\r\n\r\n// cspell:ignore pushable\r\n\r\n/** Properties for [[Slider]] component\r\n * @public\r\n */\r\nexport interface SliderProps extends CommonProps {\r\n /** Values to set Slider to initially */\r\n values: number[];\r\n /** Minimum value */\r\n min: number;\r\n /** Maximum value */\r\n max: number;\r\n /** Format the min display value */\r\n formatMin?: (value: number) => string;\r\n /** Format the max display value */\r\n formatMax?: (value: number) => string;\r\n\r\n /** Step value. Default is 0.1. */\r\n step?: number;\r\n /** The interaction mode. Default is 1. Possible values:\r\n * 1 - allows handles to cross each other.\r\n * 2 - keeps the sliders from crossing and separated by a step.\r\n */\r\n mode?: number | (() => number);\r\n /** Indicates whether the display of the Slider values is reversed. */\r\n reversed?: boolean;\r\n /** Indicates whether the Slider is disabled. */\r\n disabled?: boolean;\r\n /** Indicates whether to compensate for the tick marks when determining the width. */\r\n includeTicksInWidth?: boolean;\r\n\r\n /** Indicates whether to show tooltip with the value. The tooltip will be positioned above the Slider, by default. */\r\n showTooltip?: boolean;\r\n /** Indicates whether the tooltip should show below the Slider instead of above. */\r\n tooltipBelow?: boolean;\r\n /** Format a value for the tooltip */\r\n formatTooltip?: (value: number) => string;\r\n\r\n /** Indicates whether to show min & max values to the left & right of the Slider. */\r\n showMinMax?: boolean;\r\n /** Image to show for min. */\r\n minImage?: React.ReactNode;\r\n /** Image to show for max. */\r\n maxImage?: React.ReactNode;\r\n\r\n /** Indicates whether to show tick marks under the Slider. */\r\n showTicks?: boolean;\r\n /** Indicates whether to show tick labels under the tick marks. */\r\n showTickLabels?: boolean;\r\n /** Format a tick mark value */\r\n formatTick?: (tick: number) => string;\r\n /** Function to get the tick count. The default tick count is 10. */\r\n getTickCount?: () => number;\r\n /** Function to get the tick values. This overrides the tick count from getTickCount.\r\n * Use this prop if you want to specify your own tick values instead of ticks generated by the slider.\r\n * The numbers should be valid numbers in the domain and correspond to the step value.\r\n * Invalid values will be coerced to the closet matching value in the domain.\r\n */\r\n getTickValues?: () => number[];\r\n\r\n /** Listens for value changes.\r\n * Triggered when the value of the slider has changed. This will receive changes at\r\n * the end of a slide as well as changes from clicks on rails and tracks.\r\n */\r\n onChange?: (values: ReadonlyArray<number>) => void;\r\n /** Listens for value updates.\r\n * Called with the values at each update (caution: high-volume updates when dragging).\r\n */\r\n onUpdate?: (values: ReadonlyArray<number>) => void;\r\n /** No longer available use onUpdate. */\r\n onSlideStart?: (values: ReadonlyArray<number>) => void;\r\n /** No longer available use onChange. */\r\n onSlideEnd?: (values: ReadonlyArray<number>) => void;\r\n}\r\n\r\n/**\r\n * Slider React component displays a range slider.\r\n * @public\r\n * @deprecated in 3.0. Use Slider in itwinui-react instead\r\n */\r\nexport function Slider(props: SliderProps) {\r\n const { className, style, min, max, values, step, mode,\r\n formatMin, formatMax,\r\n onChange, onUpdate,\r\n showTicks, showTickLabels, formatTick, getTickCount, getTickValues, includeTicksInWidth,\r\n reversed, disabled,\r\n showMinMax, minImage, maxImage,\r\n showTooltip, tooltipBelow, formatTooltip,\r\n } = props;\r\n\r\n const containerClassNames = classnames(\r\n \"core-slider-container\",\r\n className,\r\n disabled && \"core-disabled\",\r\n showTickLabels && \"core-slider-tickLabels\",\r\n includeTicksInWidth && \"core-slider-includeTicksInWidth\",\r\n );\r\n const sliderClassNames = classnames(\r\n \"core-slider\",\r\n showMinMax && \"core-slider-minMax\",\r\n );\r\n\r\n const internalFormatTooltip = React.useCallback((value: number) => {\r\n if (formatTooltip)\r\n return formatTooltip(value);\r\n\r\n const actualStep = Math.abs(step ?? 1);\r\n\r\n if (Number.isInteger(actualStep))\r\n return value.toFixed(0);\r\n\r\n const stepString = actualStep.toString();\r\n const decimalIndex = stepString.indexOf(\".\");\r\n const numDecimals = actualStep.toString().length - (decimalIndex + 1);\r\n return value.toFixed(numDecimals);\r\n }, [formatTooltip, step]);\r\n\r\n const tooltipProps = React.useCallback((_index: number, val: number) => {\r\n const content = internalFormatTooltip(val);\r\n if (!showTooltip)\r\n return { visible: false };\r\n return { placement: tooltipBelow ? \"bottom\" : \"top\", content } as const;\r\n }, [internalFormatTooltip, showTooltip, tooltipBelow]);\r\n\r\n const tickLabels = React.useMemo(() => {\r\n let ticks: string[] | undefined;\r\n\r\n if (showTicks) {\r\n const count = getTickCount ? getTickCount() : 0;\r\n if (count) {\r\n ticks = [];\r\n const increment = (max - min) / count;\r\n for (let i = 0; i <= count; i++) {\r\n const value = (i * increment) + min;\r\n if (showTickLabels) {\r\n const label = formatTick ? formatTick(value) : internalFormatTooltip(value);\r\n ticks.push(label);\r\n } else {\r\n ticks.push(\"\");\r\n }\r\n }\r\n } else /* istanbul ignore else */ if (getTickValues) {\r\n return getTickValues().map((val: number) => formatTick ? formatTick(val) : internalFormatTooltip(val));\r\n }\r\n }\r\n return ticks;\r\n }, [formatTick, getTickCount, getTickValues, internalFormatTooltip, max, min, showTickLabels, showTicks]);\r\n\r\n const thumbMode = React.useMemo(() => {\r\n let inMode = 1;\r\n if (typeof mode === \"function\")\r\n inMode = mode();\r\n\r\n return 1 === inMode ? \"allow-crossing\" : \"inhibit-crossing\";\r\n }, [mode]);\r\n\r\n return (\r\n <div className={containerClassNames} style={style}>\r\n {showMinMax &&\r\n <MinMax value={min} testId=\"core-slider-min\" image={minImage} format={formatMin} />\r\n }\r\n <ItwinSlider\r\n className={sliderClassNames}\r\n values={values}\r\n min={min}\r\n max={max}\r\n step={step}\r\n thumbMode={thumbMode}\r\n trackDisplayMode={!reversed ? \"auto\" : \"odd-segments\"\r\n }\r\n disabled={disabled}\r\n minLabel=\"\"\r\n maxLabel=\"\"\r\n tooltipProps={tooltipProps}\r\n tickLabels={tickLabels}\r\n onChange={onChange}\r\n onUpdate={onUpdate}\r\n />\r\n {showMinMax &&\r\n <MinMax value={max} testId=\"core-slider-max\" image={maxImage} format={formatMax} />\r\n }\r\n </div>\r\n );\r\n}\r\n\r\n/** Properties for [[MinMax]] component */\r\ninterface MinMaxProps {\r\n value: number;\r\n testId: string;\r\n image?: React.ReactNode;\r\n format?: (value: number) => string;\r\n}\r\n\r\n/** MinMax component for Slider */\r\nfunction MinMax(props: MinMaxProps) {\r\n const { value, testId, image, format } = props;\r\n let element: React.ReactElement<any>;\r\n const displayValue = format !== undefined ? format(value) : value;\r\n\r\n if (image)\r\n element = <>{image}</>;\r\n else\r\n element = <BodyText className=\"core-slider-minmax\" data-testid={testId}>{displayValue}</BodyText>;\r\n\r\n return element;\r\n}\r\n"]}
@@ -1,96 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- @import "../style/opacity";
6
- @import "../style/themecolors";
7
- @import "../button/button";
8
- @import "../z-index";
9
-
10
- $uicore-slider-height: 24px;
11
- $uicore-slider-rail-height: 4px;
12
- $uicore-slider-handle-size: 14px;
13
- $uicore-slider-minmax-margin: 6px;
14
-
15
- .core-slider-container {
16
- position: relative;
17
- height: $uicore-slider-height;
18
- display: flex;
19
- flex-direction: row;
20
- align-items: center;
21
- width: 100%;
22
-
23
- span.core-slider-minmax[data-testid="core-slider-min"] {
24
- margin-right: 4px;
25
- }
26
-
27
- span.core-slider-minmax[data-testid="core-slider-max"] {
28
- margin-left: 4px;
29
- }
30
-
31
- &.core-slider-tickLabels {
32
- margin-bottom: 9px;
33
- }
34
-
35
- &.core.slider-includeTicksInWidth {
36
- margin-right: 10px;
37
- }
38
-
39
- .core-slider-minMax {
40
- margin-left: $uicore-slider-minmax-margin;
41
- margin-right: $uicore-slider-minmax-margin;
42
- }
43
-
44
- .core-slider {
45
- flex: 1;
46
- position: relative;
47
- height: inherit;
48
- margin-bottom: 2px;
49
- }
50
-
51
- &.core-disabled {
52
- cursor: not-allowed;
53
-
54
- .core-slider {
55
- .core-slider-rail {
56
- cursor: not-allowed;
57
- }
58
-
59
- .core-slider-track {
60
- cursor: not-allowed;
61
-
62
- >.core-slider-track-inner {
63
- background: $buic-foreground-disabled;
64
- }
65
- }
66
-
67
- .core-slider-handle {
68
- background: $buic-background-control-disabled;
69
- border-color: $buic-background-control-stroke-disabled;
70
- cursor: not-allowed;
71
- }
72
-
73
- .core-slider-tick-mark {
74
- opacity: $uicore-opacity-disabled;
75
- }
76
-
77
- .core-slider-tick-label {
78
- color: $buic-foreground-disabled;
79
- }
80
- }
81
-
82
- .uicore-text-body {
83
- color: $buic-foreground-disabled;
84
- }
85
-
86
- .icon {
87
- color: $buic-foreground-disabled;
88
- }
89
- }
90
- }
91
-
92
- .core-slider_track-tooltip-container {
93
- position: absolute;
94
- left: 0;
95
- top: 0;
96
- }
@@ -1,62 +0,0 @@
1
- /** @packageDocumentation
2
- * @module SplitButton
3
- */
4
- import "./SplitButton.scss";
5
- import * as React from "react";
6
- import { IconSpec } from "../icons/IconComponent";
7
- import { CommonProps } from "../utils/Props";
8
- import { RelativePosition } from "@itwin/appui-abstract";
9
- import { ButtonType } from "../button/Button";
10
- /** @internal */
11
- export declare enum SplitButtonActionType {
12
- ContextMenu = 0,
13
- List = 1
14
- }
15
- /** Properties for [[SplitButton]] component
16
- * @public
17
- * @deprecated in 3.0. Use SplitButtonProps in itwinui-react instead
18
- */
19
- export interface SplitButtonProps extends CommonProps {
20
- /** Label to display in click area. */
21
- label: string | React.ReactNode;
22
- /** Listens for click events on button area */
23
- onClick?: (event: any) => any;
24
- /** Listens for execute on button area */
25
- onExecute?: () => any;
26
- /** Specifies icon for Splitbutton component */
27
- icon?: IconSpec;
28
- /** Indicates whether to draw a border around the button */
29
- drawBorder?: boolean;
30
- /** ToolTip text */
31
- toolTip?: string;
32
- /** Direction relative to the button to which the popup is expanded (defaults to Bottom) */
33
- popupPosition?: RelativePosition;
34
- /** 4 styles to tweak the content of the button */
35
- buttonType?: ButtonType;
36
- /** @internal */
37
- initialExpanded?: boolean;
38
- }
39
- /** @internal */
40
- interface SplitButtonState {
41
- expanded: boolean;
42
- }
43
- /**
44
- * SplitButton with an action button on the left and an arrow button that displays a context menu on the right.
45
- * @public
46
- * @deprecated in 3.0. Use SplitButton in itwinui-react instead
47
- */
48
- export declare class SplitButton extends React.Component<SplitButtonProps, SplitButtonState> {
49
- private _arrowElement;
50
- private _buttonRef;
51
- private _closing;
52
- /** @internal */
53
- readonly state: Readonly<SplitButtonState>;
54
- constructor(props: SplitButtonProps);
55
- render(): JSX.Element;
56
- private _handleKeyUp;
57
- private _open;
58
- private _handleArrowClick;
59
- private _handleClose;
60
- }
61
- export {};
62
- //# sourceMappingURL=SplitButton.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SplitButton.d.ts","sourceRoot":"","sources":["../../../../src/core-react/splitbutton/SplitButton.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,oBAAoB,CAAC;AAE5B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAQ,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAc,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,UAAU,EAA0B,MAAM,kBAAkB,CAAC;AAGtE,gBAAgB;AAChB,oBAAY,qBAAqB;IAC/B,WAAW,IAAA;IACX,IAAI,IAAA;CACL;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,sCAAsC;IACtC,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAChC,8CAA8C;IAC9C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC;IAC9B,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,GAAG,CAAC;IACtB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mBAAmB;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2FAA2F;IAC3F,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC,kDAAkD;IAClD,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB,gBAAgB;IAChB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,gBAAgB;AAChB,UAAU,gBAAgB;IACxB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,qBAAa,WAAY,SAAQ,KAAK,CAAC,SAAS,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAClF,OAAO,CAAC,aAAa,CAAqC;IAC1D,OAAO,CAAC,UAAU,CAAqC;IACvD,OAAO,CAAC,QAAQ,CAAkB;IAElC,gBAAgB;IAChB,SAAyB,KAAK,EAAE,QAAQ,CAAC,gBAAgB,CAAC,CAAuB;gBAErE,KAAK,EAAE,gBAAgB;IAQnB,MAAM,IAAI,GAAG,CAAC,OAAO;IAyDrC,OAAO,CAAC,YAAY,CASlB;IAEF,OAAO,CAAC,KAAK,CAOX;IAEF,OAAO,CAAC,iBAAiB,CAQvB;IAEF,OAAO,CAAC,YAAY,CASlB;CACH"}
@@ -1,100 +0,0 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
3
- * See LICENSE.md in the project root for license terms and full copyright notice.
4
- *--------------------------------------------------------------------------------------------*/
5
- /** @packageDocumentation
6
- * @module SplitButton
7
- */
8
- import "./SplitButton.scss";
9
- import classnames from "classnames";
10
- import * as React from "react";
11
- import { PopupContextMenu } from "../contextmenu/PopupContextMenu";
12
- import { Icon } from "../icons/IconComponent";
13
- import { RelativePosition, SpecialKey } from "@itwin/appui-abstract";
14
- import { getButtonTypeClassName } from "../button/Button";
15
- // TODO: implement
16
- /** @internal */
17
- export var SplitButtonActionType;
18
- (function (SplitButtonActionType) {
19
- SplitButtonActionType[SplitButtonActionType["ContextMenu"] = 0] = "ContextMenu";
20
- SplitButtonActionType[SplitButtonActionType["List"] = 1] = "List";
21
- })(SplitButtonActionType || (SplitButtonActionType = {}));
22
- /**
23
- * SplitButton with an action button on the left and an arrow button that displays a context menu on the right.
24
- * @public
25
- * @deprecated in 3.0. Use SplitButton in itwinui-react instead
26
- */
27
- export class SplitButton extends React.Component {
28
- constructor(props) {
29
- super(props);
30
- this._arrowElement = React.createRef();
31
- this._buttonRef = React.createRef();
32
- this._closing = false;
33
- /** @internal */
34
- this.state = { expanded: false };
35
- this._handleKeyUp = (event) => {
36
- if (event.key === SpecialKey.Enter) {
37
- this.props.onExecute && this.props.onExecute();
38
- }
39
- else if (event.key === SpecialKey.ArrowDown && !this.state.expanded) {
40
- this._closing = false;
41
- this._open();
42
- }
43
- else {
44
- this._closing = false;
45
- }
46
- };
47
- this._open = () => {
48
- // istanbul ignore else
49
- if (!this.state.expanded && !this._closing) {
50
- this.setState({ expanded: true });
51
- }
52
- else {
53
- this._closing = false;
54
- }
55
- };
56
- this._handleArrowClick = (event) => {
57
- if (this.state.expanded) {
58
- event.stopPropagation();
59
- this.setState({ expanded: false });
60
- this._closing = false;
61
- }
62
- else {
63
- this._open();
64
- }
65
- };
66
- this._handleClose = (event) => {
67
- // istanbul ignore else
68
- if (this._arrowElement.current && this._buttonRef.current) {
69
- // istanbul ignore next
70
- if (this.state.expanded && "target" in event && this._arrowElement.current.contains(event.target))
71
- this._closing = true;
72
- this.setState((_prevState) => ({ expanded: false }));
73
- this._buttonRef.current.focus();
74
- }
75
- };
76
- this.state = {
77
- expanded: props.initialExpanded !== undefined ? props.initialExpanded : false,
78
- };
79
- }
80
- render() {
81
- let icon = (React.createElement(React.Fragment, null));
82
- if (this.props.icon !== undefined) {
83
- icon = (React.createElement(Icon, { iconSpec: this.props.icon }));
84
- }
85
- const borderClassName = (this.props.drawBorder && this.props.buttonType === undefined) ? "core-split-button-border" : undefined;
86
- const typeClassName = this.props.buttonType !== undefined ? getButtonTypeClassName(this.props.buttonType) : "core-split-button-default-colors";
87
- const classNames = classnames("core-split-button", typeClassName, borderClassName, this.state.expanded && "core-expanded", this.props.className);
88
- const position = this.props.popupPosition !== undefined ? this.props.popupPosition : RelativePosition.BottomLeft;
89
- return (React.createElement("div", { "data-testid": "core-split-button-root", title: this.props.toolTip, className: classNames, style: this.props.style, tabIndex: 0, onKeyUp: this._handleKeyUp, ref: this._buttonRef, role: "button" },
90
- React.createElement("div", { "data-testid": "core-split-button-label", onClick: this.props.onClick, className: classnames("core-split-button-label", this.props.drawBorder && "core-split-button-border"), role: "button", tabIndex: -1 },
91
- icon,
92
- " ",
93
- this.props.label),
94
- React.createElement("div", { className: classnames("core-split-button-divider", this.props.drawBorder && "core-split-button-border") }),
95
- React.createElement("div", { className: "core-split-button-arrow", ref: this._arrowElement, onClick: this._handleArrowClick, role: "button", tabIndex: -1 },
96
- React.createElement("div", { className: classnames("core-split-button-arrow-icon", "icon", "icon-chevron-down") }),
97
- React.createElement(PopupContextMenu, { position: position, target: this._buttonRef.current, animate: false, selectedIndex: 0, onSelect: this._handleClose, onOutsideClick: this._handleClose, onEsc: this._handleClose, isOpen: this.state.expanded, autoflip: false }, this.props.children))));
98
- }
99
- }
100
- //# sourceMappingURL=SplitButton.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SplitButton.js","sourceRoot":"","sources":["../../../../src/core-react/splitbutton/SplitButton.tsx"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,oBAAoB,CAAC;AAC5B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,gBAAg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I,CAAC,KAAK,CAAC,OAAO,EACpE,SAAS,EAAE,UAAU,CAAC,yBAAyB,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,IAAI,0BAA0B,CAAC,EACrG,IAAI,EAAC,QAAQ,EAAC,QAAQ,EAAE,CAAC,CAAC;gBAEzB,IAAI;;gBAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CACpB;YACN,6BAAK,SAAS,EAAE,UAAU,CAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,IAAI,0BAA0B,CAAC,GAAI;YAEhH,6BAAK,SAAS,EAAE,yBAAyB,EAAE,GAAG,EAAE,IAAI,CAAC,aAAa,EAAE,OAAO,EAAE,IAAI,CAAC,iBAAiB,EACjG,IAAI,EAAC,QAAQ,EAAC,QAAQ,EAAE,CAAC,CAAC;gBAE1B,6BAAK,SAAS,EAAE,UAAU,CAAC,8BAA8B,EAAE,MAAM,EAAE,mBAAmB,CAAC,GAAI;gBAC3F,oBAAC,gBAAgB,IACf,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,EAC/B,OAAO,EAAE,KAAK,EACd,aAAa,EAAE,CAAC,EAChB,QAAQ,EAAE,IAAI,CAAC,YAAY,EAC3B,cAAc,EAAE,IAAI,CAAC,YAAY,EACjC,KAAK,EAAE,IAAI,CAAC,YAAY,EACxB,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAC3B,QAAQ,EAAE,KAAK,IACd,IAAI,CAAC,KAAK,CAAC,QAAQ,CACH,CACf,CACF,CACP,CAAC;IACJ,CAAC;CA0CF","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 SplitButton\r\n */\r\n\r\nimport \"./SplitButton.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { PopupContextMenu } from \"../contextmenu/PopupContextMenu\";\r\nimport { Icon, IconSpec } from \"../icons/IconComponent\";\r\nimport { CommonProps } from \"../utils/Props\";\r\nimport { RelativePosition, SpecialKey } from \"@itwin/appui-abstract\";\r\nimport { ButtonType, getButtonTypeClassName } from \"../button/Button\";\r\n\r\n// TODO: implement\r\n/** @internal */\r\nexport enum SplitButtonActionType {\r\n ContextMenu, // eslint-disable-line @typescript-eslint/no-shadow\r\n List,\r\n}\r\n\r\n/** Properties for [[SplitButton]] component\r\n * @public\r\n * @deprecated in 3.0. Use SplitButtonProps in itwinui-react instead\r\n */\r\nexport interface SplitButtonProps extends CommonProps {\r\n /** Label to display in click area. */\r\n label: string | React.ReactNode;\r\n /** Listens for click events on button area */\r\n onClick?: (event: any) => any;\r\n /** Listens for execute on button area */\r\n onExecute?: () => any;\r\n /** Specifies icon for Splitbutton component */\r\n icon?: IconSpec;\r\n /** Indicates whether to draw a border around the button */\r\n drawBorder?: boolean;\r\n /** ToolTip text */\r\n toolTip?: string;\r\n /** Direction relative to the button to which the popup is expanded (defaults to Bottom) */\r\n popupPosition?: RelativePosition;\r\n /** 4 styles to tweak the content of the button */\r\n buttonType?: ButtonType; // eslint-disable-line deprecation/deprecation\r\n\r\n /** @internal */\r\n initialExpanded?: boolean;\r\n}\r\n\r\n/** @internal */\r\ninterface SplitButtonState {\r\n expanded: boolean;\r\n}\r\n\r\n/**\r\n * SplitButton with an action button on the left and an arrow button that displays a context menu on the right.\r\n * @public\r\n * @deprecated in 3.0. Use SplitButton in itwinui-react instead\r\n */\r\nexport class SplitButton extends React.Component<SplitButtonProps, SplitButtonState> { // eslint-disable-line deprecation/deprecation\r\n private _arrowElement = React.createRef<HTMLDivElement>();\r\n private _buttonRef = React.createRef<HTMLDivElement>();\r\n private _closing: boolean = false;\r\n\r\n /** @internal */\r\n public override readonly state: Readonly<SplitButtonState> = { expanded: false };\r\n\r\n constructor(props: SplitButtonProps) { // eslint-disable-line deprecation/deprecation\r\n super(props);\r\n\r\n this.state = {\r\n expanded: props.initialExpanded !== undefined ? props.initialExpanded : false,\r\n };\r\n }\r\n\r\n public override render(): JSX.Element {\r\n let icon = (<></>);\r\n if (this.props.icon !== undefined) {\r\n icon = (\r\n <Icon iconSpec={this.props.icon} />\r\n );\r\n }\r\n\r\n const borderClassName = (this.props.drawBorder && this.props.buttonType === undefined) ? \"core-split-button-border\" : undefined;\r\n const typeClassName = this.props.buttonType !== undefined ? getButtonTypeClassName(this.props.buttonType) : \"core-split-button-default-colors\";\r\n const classNames = classnames(\r\n \"core-split-button\",\r\n typeClassName,\r\n borderClassName,\r\n this.state.expanded && \"core-expanded\",\r\n this.props.className);\r\n const position = this.props.popupPosition !== undefined ? this.props.popupPosition : RelativePosition.BottomLeft;\r\n\r\n return (\r\n <div data-testid=\"core-split-button-root\" title={this.props.toolTip}\r\n className={classNames}\r\n style={this.props.style}\r\n tabIndex={0}\r\n onKeyUp={this._handleKeyUp}\r\n ref={this._buttonRef}\r\n role=\"button\"\r\n >\r\n {/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */}\r\n <div data-testid=\"core-split-button-label\" onClick={this.props.onClick}\r\n className={classnames(\"core-split-button-label\", this.props.drawBorder && \"core-split-button-border\")}\r\n role=\"button\" tabIndex={-1}\r\n >\r\n {icon} {this.props.label}\r\n </div>\r\n <div className={classnames(\"core-split-button-divider\", this.props.drawBorder && \"core-split-button-border\")} />\r\n {/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */}\r\n <div className={\"core-split-button-arrow\"} ref={this._arrowElement} onClick={this._handleArrowClick}\r\n role=\"button\" tabIndex={-1}\r\n >\r\n <div className={classnames(\"core-split-button-arrow-icon\", \"icon\", \"icon-chevron-down\")} />\r\n <PopupContextMenu\r\n position={position}\r\n target={this._buttonRef.current}\r\n animate={false}\r\n selectedIndex={0}\r\n onSelect={this._handleClose}\r\n onOutsideClick={this._handleClose}\r\n onEsc={this._handleClose}\r\n isOpen={this.state.expanded}\r\n autoflip={false}>\r\n {this.props.children}\r\n </PopupContextMenu>\r\n </div>\r\n </div>\r\n );\r\n }\r\n\r\n private _handleKeyUp = (event: React.KeyboardEvent) => {\r\n if (event.key === SpecialKey.Enter) {\r\n this.props.onExecute && this.props.onExecute();\r\n } else if (event.key === SpecialKey.ArrowDown && !this.state.expanded) {\r\n this._closing = false;\r\n this._open();\r\n } else {\r\n this._closing = false;\r\n }\r\n };\r\n\r\n private _open = () => {\r\n // istanbul ignore else\r\n if (!this.state.expanded && !this._closing) {\r\n this.setState({ expanded: true });\r\n } else {\r\n this._closing = false;\r\n }\r\n };\r\n\r\n private _handleArrowClick = (event: React.MouseEvent) => {\r\n if (this.state.expanded) {\r\n event.stopPropagation();\r\n this.setState({ expanded: false });\r\n this._closing = false;\r\n } else {\r\n this._open();\r\n }\r\n };\r\n\r\n private _handleClose = (event: any) => {\r\n // istanbul ignore else\r\n if (this._arrowElement.current && this._buttonRef.current) {\r\n // istanbul ignore next\r\n if (this.state.expanded && \"target\" in event && this._arrowElement.current.contains(event.target))\r\n this._closing = true;\r\n this.setState((_prevState) => ({ expanded: false }));\r\n this._buttonRef.current.focus();\r\n }\r\n };\r\n}\r\n"]}