@itwin/core-react 3.6.0-dev.7 → 4.0.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/CHANGELOG.md +26 -1
  2. package/LICENSE.md +1 -1
  3. package/lib/cjs/core-react/button/Button.d.ts +4 -4
  4. package/lib/cjs/core-react/button/Button.js +3 -3
  5. package/lib/cjs/core-react/button/Button.js.map +1 -1
  6. package/lib/cjs/core-react/checkbox/Checkbox.d.ts +2 -2
  7. package/lib/cjs/core-react/checkbox/Checkbox.js +1 -1
  8. package/lib/cjs/core-react/checkbox/Checkbox.js.map +1 -1
  9. package/lib/cjs/core-react/dialog/DialogButtonDef.d.ts +3 -3
  10. package/lib/cjs/core-react/dialog/DialogButtonDef.js +2 -2
  11. package/lib/cjs/core-react/dialog/DialogButtonDef.js.map +1 -1
  12. package/lib/cjs/core-react/expandable/ExpandableBlock.d.ts +2 -2
  13. package/lib/cjs/core-react/expandable/ExpandableBlock.js +1 -1
  14. package/lib/cjs/core-react/expandable/ExpandableBlock.js.map +1 -1
  15. package/lib/cjs/core-react/form/Field.d.ts +2 -2
  16. package/lib/cjs/core-react/form/Field.js +1 -1
  17. package/lib/cjs/core-react/form/Field.js.map +1 -1
  18. package/lib/cjs/core-react/form/Form.d.ts +5 -5
  19. package/lib/cjs/core-react/form/Form.js +1 -1
  20. package/lib/cjs/core-react/form/Form.js.map +1 -1
  21. package/lib/cjs/core-react/icons/SvgSprite.d.ts +2 -2
  22. package/lib/cjs/core-react/icons/SvgSprite.js +1 -1
  23. package/lib/cjs/core-react/icons/SvgSprite.js.map +1 -1
  24. package/lib/cjs/core-react/inputs/Input.d.ts +2 -2
  25. package/lib/cjs/core-react/inputs/Input.js +1 -1
  26. package/lib/cjs/core-react/inputs/Input.js.map +1 -1
  27. package/lib/cjs/core-react/inputs/LabeledInput.d.ts +2 -2
  28. package/lib/cjs/core-react/inputs/LabeledInput.js +1 -1
  29. package/lib/cjs/core-react/inputs/LabeledInput.js.map +1 -1
  30. package/lib/cjs/core-react/inputs/LabeledTextarea.d.ts +2 -2
  31. package/lib/cjs/core-react/inputs/LabeledTextarea.js +1 -1
  32. package/lib/cjs/core-react/inputs/LabeledTextarea.js.map +1 -1
  33. package/lib/cjs/core-react/inputs/Textarea.d.ts +2 -2
  34. package/lib/cjs/core-react/inputs/Textarea.js +1 -1
  35. package/lib/cjs/core-react/inputs/Textarea.js.map +1 -1
  36. package/lib/cjs/core-react/loading/Spinner.d.ts +3 -3
  37. package/lib/cjs/core-react/loading/Spinner.js +2 -2
  38. package/lib/cjs/core-react/loading/Spinner.js.map +1 -1
  39. package/lib/cjs/core-react/messagebox/MessageSeverity.d.ts +1 -1
  40. package/lib/cjs/core-react/messagebox/MessageSeverity.js +1 -1
  41. package/lib/cjs/core-react/messagebox/MessageSeverity.js.map +1 -1
  42. package/lib/cjs/core-react/progress-indicators/ProgressBar.d.ts +2 -2
  43. package/lib/cjs/core-react/progress-indicators/ProgressBar.js +1 -1
  44. package/lib/cjs/core-react/progress-indicators/ProgressBar.js.map +1 -1
  45. package/lib/cjs/core-react/progress-indicators/ProgressSpinner.d.ts +2 -2
  46. package/lib/cjs/core-react/progress-indicators/ProgressSpinner.js +1 -1
  47. package/lib/cjs/core-react/progress-indicators/ProgressSpinner.js.map +1 -1
  48. package/lib/cjs/core-react/radio/Radio.d.ts +2 -2
  49. package/lib/cjs/core-react/radio/Radio.js +1 -1
  50. package/lib/cjs/core-react/radio/Radio.js.map +1 -1
  51. package/lib/cjs/core-react/select/LabeledSelect.d.ts +2 -2
  52. package/lib/cjs/core-react/select/LabeledSelect.js +1 -1
  53. package/lib/cjs/core-react/select/LabeledSelect.js.map +1 -1
  54. package/lib/cjs/core-react/select/LabeledThemedSelect.d.ts +2 -2
  55. package/lib/cjs/core-react/select/LabeledThemedSelect.js +1 -1
  56. package/lib/cjs/core-react/select/LabeledThemedSelect.js.map +1 -1
  57. package/lib/cjs/core-react/select/Select.d.ts +3 -3
  58. package/lib/cjs/core-react/select/Select.js +1 -1
  59. package/lib/cjs/core-react/select/Select.js.map +1 -1
  60. package/lib/cjs/core-react/select/ThemedSelect.d.ts +4 -4
  61. package/lib/cjs/core-react/select/ThemedSelect.js +1 -1
  62. package/lib/cjs/core-react/select/ThemedSelect.js.map +1 -1
  63. package/lib/cjs/core-react/slider/Slider.d.ts +1 -1
  64. package/lib/cjs/core-react/slider/Slider.js +1 -1
  65. package/lib/cjs/core-react/slider/Slider.js.map +1 -1
  66. package/lib/cjs/core-react/splitbutton/SplitButton.d.ts +2 -2
  67. package/lib/cjs/core-react/splitbutton/SplitButton.js +1 -1
  68. package/lib/cjs/core-react/splitbutton/SplitButton.js.map +1 -1
  69. package/lib/cjs/core-react/tabs/HorizontalTabs.d.ts +1 -1
  70. package/lib/cjs/core-react/tabs/HorizontalTabs.js +1 -1
  71. package/lib/cjs/core-react/tabs/HorizontalTabs.js.map +1 -1
  72. package/lib/cjs/core-react/text/Headline.d.ts +1 -1
  73. package/lib/cjs/core-react/text/Headline.js +1 -1
  74. package/lib/cjs/core-react/text/Headline.js.map +1 -1
  75. package/lib/cjs/core-react/text/LeadingText.d.ts +1 -1
  76. package/lib/cjs/core-react/text/LeadingText.js +1 -1
  77. package/lib/cjs/core-react/text/LeadingText.js.map +1 -1
  78. package/lib/cjs/core-react/text/LeadingText2.d.ts +1 -1
  79. package/lib/cjs/core-react/text/LeadingText2.js +1 -1
  80. package/lib/cjs/core-react/text/LeadingText2.js.map +1 -1
  81. package/lib/cjs/core-react/text/SmallText.d.ts +1 -1
  82. package/lib/cjs/core-react/text/SmallText.js +1 -1
  83. package/lib/cjs/core-react/text/SmallText.js.map +1 -1
  84. package/lib/cjs/core-react/text/Subheading.d.ts +1 -1
  85. package/lib/cjs/core-react/text/Subheading.js +1 -1
  86. package/lib/cjs/core-react/text/Subheading.js.map +1 -1
  87. package/lib/cjs/core-react/text/Subheading2.d.ts +1 -1
  88. package/lib/cjs/core-react/text/Subheading2.js +1 -1
  89. package/lib/cjs/core-react/text/Subheading2.js.map +1 -1
  90. package/lib/cjs/core-react/text/Title.d.ts +1 -1
  91. package/lib/cjs/core-react/text/Title.js +1 -1
  92. package/lib/cjs/core-react/text/Title.js.map +1 -1
  93. package/lib/cjs/core-react/text/Title2.d.ts +1 -1
  94. package/lib/cjs/core-react/text/Title2.js +1 -1
  95. package/lib/cjs/core-react/text/Title2.js.map +1 -1
  96. package/lib/cjs/core-react/tiles/FeaturedTile.d.ts +1 -1
  97. package/lib/cjs/core-react/tiles/FeaturedTile.js +1 -1
  98. package/lib/cjs/core-react/tiles/FeaturedTile.js.map +1 -1
  99. package/lib/cjs/core-react/tiles/MinimalFeaturedTile.d.ts +1 -1
  100. package/lib/cjs/core-react/tiles/MinimalFeaturedTile.js +1 -1
  101. package/lib/cjs/core-react/tiles/MinimalFeaturedTile.js.map +1 -1
  102. package/lib/cjs/core-react/tiles/MinimalTile.d.ts +1 -1
  103. package/lib/cjs/core-react/tiles/MinimalTile.js +1 -1
  104. package/lib/cjs/core-react/tiles/MinimalTile.js.map +1 -1
  105. package/lib/cjs/core-react/tiles/Tile.d.ts +2 -2
  106. package/lib/cjs/core-react/tiles/Tile.js +1 -1
  107. package/lib/cjs/core-react/tiles/Tile.js.map +1 -1
  108. package/lib/cjs/core-react/toggle/LabeledToggle.d.ts +2 -2
  109. package/lib/cjs/core-react/toggle/LabeledToggle.js +1 -1
  110. package/lib/cjs/core-react/toggle/LabeledToggle.js.map +1 -1
  111. package/lib/cjs/core-react/toggle/Toggle.d.ts +4 -4
  112. package/lib/cjs/core-react/toggle/Toggle.d.ts.map +1 -1
  113. package/lib/cjs/core-react/toggle/Toggle.js +2 -2
  114. package/lib/cjs/core-react/toggle/Toggle.js.map +1 -1
  115. package/lib/cjs/core-react/tooltip/Tooltip.d.ts +3 -3
  116. package/lib/cjs/core-react/tooltip/Tooltip.js +1 -1
  117. package/lib/cjs/core-react/tooltip/Tooltip.js.map +1 -1
  118. package/lib/cjs/core-react/utils/PointProps.d.ts +1 -1
  119. package/lib/cjs/core-react/utils/PointProps.js.map +1 -1
  120. package/lib/cjs/core-react/utils/UiEvent.d.ts +1 -1
  121. package/lib/cjs/core-react/utils/UiEvent.js +1 -1
  122. package/lib/cjs/core-react/utils/UiEvent.js.map +1 -1
  123. package/lib/esm/core-react/button/Button.d.ts +4 -4
  124. package/lib/esm/core-react/button/Button.js +3 -3
  125. package/lib/esm/core-react/button/Button.js.map +1 -1
  126. package/lib/esm/core-react/checkbox/Checkbox.d.ts +2 -2
  127. package/lib/esm/core-react/checkbox/Checkbox.js +1 -1
  128. package/lib/esm/core-react/checkbox/Checkbox.js.map +1 -1
  129. package/lib/esm/core-react/dialog/DialogButtonDef.d.ts +3 -3
  130. package/lib/esm/core-react/dialog/DialogButtonDef.js +2 -2
  131. package/lib/esm/core-react/dialog/DialogButtonDef.js.map +1 -1
  132. package/lib/esm/core-react/expandable/ExpandableBlock.d.ts +2 -2
  133. package/lib/esm/core-react/expandable/ExpandableBlock.js +1 -1
  134. package/lib/esm/core-react/expandable/ExpandableBlock.js.map +1 -1
  135. package/lib/esm/core-react/form/Field.d.ts +2 -2
  136. package/lib/esm/core-react/form/Field.js +1 -1
  137. package/lib/esm/core-react/form/Field.js.map +1 -1
  138. package/lib/esm/core-react/form/Form.d.ts +5 -5
  139. package/lib/esm/core-react/form/Form.js +1 -1
  140. package/lib/esm/core-react/form/Form.js.map +1 -1
  141. package/lib/esm/core-react/icons/SvgSprite.d.ts +2 -2
  142. package/lib/esm/core-react/icons/SvgSprite.js +1 -1
  143. package/lib/esm/core-react/icons/SvgSprite.js.map +1 -1
  144. package/lib/esm/core-react/inputs/Input.d.ts +2 -2
  145. package/lib/esm/core-react/inputs/Input.js +1 -1
  146. package/lib/esm/core-react/inputs/Input.js.map +1 -1
  147. package/lib/esm/core-react/inputs/LabeledInput.d.ts +2 -2
  148. package/lib/esm/core-react/inputs/LabeledInput.js +1 -1
  149. package/lib/esm/core-react/inputs/LabeledInput.js.map +1 -1
  150. package/lib/esm/core-react/inputs/LabeledTextarea.d.ts +2 -2
  151. package/lib/esm/core-react/inputs/LabeledTextarea.js +1 -1
  152. package/lib/esm/core-react/inputs/LabeledTextarea.js.map +1 -1
  153. package/lib/esm/core-react/inputs/Textarea.d.ts +2 -2
  154. package/lib/esm/core-react/inputs/Textarea.js +1 -1
  155. package/lib/esm/core-react/inputs/Textarea.js.map +1 -1
  156. package/lib/esm/core-react/loading/Spinner.d.ts +3 -3
  157. package/lib/esm/core-react/loading/Spinner.js +2 -2
  158. package/lib/esm/core-react/loading/Spinner.js.map +1 -1
  159. package/lib/esm/core-react/messagebox/MessageSeverity.d.ts +1 -1
  160. package/lib/esm/core-react/messagebox/MessageSeverity.js +1 -1
  161. package/lib/esm/core-react/messagebox/MessageSeverity.js.map +1 -1
  162. package/lib/esm/core-react/progress-indicators/ProgressBar.d.ts +2 -2
  163. package/lib/esm/core-react/progress-indicators/ProgressBar.js +1 -1
  164. package/lib/esm/core-react/progress-indicators/ProgressBar.js.map +1 -1
  165. package/lib/esm/core-react/progress-indicators/ProgressSpinner.d.ts +2 -2
  166. package/lib/esm/core-react/progress-indicators/ProgressSpinner.js +1 -1
  167. package/lib/esm/core-react/progress-indicators/ProgressSpinner.js.map +1 -1
  168. package/lib/esm/core-react/radio/Radio.d.ts +2 -2
  169. package/lib/esm/core-react/radio/Radio.js +1 -1
  170. package/lib/esm/core-react/radio/Radio.js.map +1 -1
  171. package/lib/esm/core-react/select/LabeledSelect.d.ts +2 -2
  172. package/lib/esm/core-react/select/LabeledSelect.js +1 -1
  173. package/lib/esm/core-react/select/LabeledSelect.js.map +1 -1
  174. package/lib/esm/core-react/select/LabeledThemedSelect.d.ts +2 -2
  175. package/lib/esm/core-react/select/LabeledThemedSelect.js +1 -1
  176. package/lib/esm/core-react/select/LabeledThemedSelect.js.map +1 -1
  177. package/lib/esm/core-react/select/Select.d.ts +3 -3
  178. package/lib/esm/core-react/select/Select.js +1 -1
  179. package/lib/esm/core-react/select/Select.js.map +1 -1
  180. package/lib/esm/core-react/select/ThemedSelect.d.ts +4 -4
  181. package/lib/esm/core-react/select/ThemedSelect.js +1 -1
  182. package/lib/esm/core-react/select/ThemedSelect.js.map +1 -1
  183. package/lib/esm/core-react/slider/Slider.d.ts +1 -1
  184. package/lib/esm/core-react/slider/Slider.js +1 -1
  185. package/lib/esm/core-react/slider/Slider.js.map +1 -1
  186. package/lib/esm/core-react/splitbutton/SplitButton.d.ts +2 -2
  187. package/lib/esm/core-react/splitbutton/SplitButton.js +1 -1
  188. package/lib/esm/core-react/splitbutton/SplitButton.js.map +1 -1
  189. package/lib/esm/core-react/tabs/HorizontalTabs.d.ts +1 -1
  190. package/lib/esm/core-react/tabs/HorizontalTabs.js +1 -1
  191. package/lib/esm/core-react/tabs/HorizontalTabs.js.map +1 -1
  192. package/lib/esm/core-react/text/Headline.d.ts +1 -1
  193. package/lib/esm/core-react/text/Headline.js +1 -1
  194. package/lib/esm/core-react/text/Headline.js.map +1 -1
  195. package/lib/esm/core-react/text/LeadingText.d.ts +1 -1
  196. package/lib/esm/core-react/text/LeadingText.js +1 -1
  197. package/lib/esm/core-react/text/LeadingText.js.map +1 -1
  198. package/lib/esm/core-react/text/LeadingText2.d.ts +1 -1
  199. package/lib/esm/core-react/text/LeadingText2.js +1 -1
  200. package/lib/esm/core-react/text/LeadingText2.js.map +1 -1
  201. package/lib/esm/core-react/text/SmallText.d.ts +1 -1
  202. package/lib/esm/core-react/text/SmallText.js +1 -1
  203. package/lib/esm/core-react/text/SmallText.js.map +1 -1
  204. package/lib/esm/core-react/text/Subheading.d.ts +1 -1
  205. package/lib/esm/core-react/text/Subheading.js +1 -1
  206. package/lib/esm/core-react/text/Subheading.js.map +1 -1
  207. package/lib/esm/core-react/text/Subheading2.d.ts +1 -1
  208. package/lib/esm/core-react/text/Subheading2.js +1 -1
  209. package/lib/esm/core-react/text/Subheading2.js.map +1 -1
  210. package/lib/esm/core-react/text/Title.d.ts +1 -1
  211. package/lib/esm/core-react/text/Title.js +1 -1
  212. package/lib/esm/core-react/text/Title.js.map +1 -1
  213. package/lib/esm/core-react/text/Title2.d.ts +1 -1
  214. package/lib/esm/core-react/text/Title2.js +1 -1
  215. package/lib/esm/core-react/text/Title2.js.map +1 -1
  216. package/lib/esm/core-react/tiles/FeaturedTile.d.ts +1 -1
  217. package/lib/esm/core-react/tiles/FeaturedTile.js +1 -1
  218. package/lib/esm/core-react/tiles/FeaturedTile.js.map +1 -1
  219. package/lib/esm/core-react/tiles/MinimalFeaturedTile.d.ts +1 -1
  220. package/lib/esm/core-react/tiles/MinimalFeaturedTile.js +1 -1
  221. package/lib/esm/core-react/tiles/MinimalFeaturedTile.js.map +1 -1
  222. package/lib/esm/core-react/tiles/MinimalTile.d.ts +1 -1
  223. package/lib/esm/core-react/tiles/MinimalTile.js +1 -1
  224. package/lib/esm/core-react/tiles/MinimalTile.js.map +1 -1
  225. package/lib/esm/core-react/tiles/Tile.d.ts +2 -2
  226. package/lib/esm/core-react/tiles/Tile.js +1 -1
  227. package/lib/esm/core-react/tiles/Tile.js.map +1 -1
  228. package/lib/esm/core-react/toggle/LabeledToggle.d.ts +2 -2
  229. package/lib/esm/core-react/toggle/LabeledToggle.js +1 -1
  230. package/lib/esm/core-react/toggle/LabeledToggle.js.map +1 -1
  231. package/lib/esm/core-react/toggle/Toggle.d.ts +4 -4
  232. package/lib/esm/core-react/toggle/Toggle.d.ts.map +1 -1
  233. package/lib/esm/core-react/toggle/Toggle.js +2 -2
  234. package/lib/esm/core-react/toggle/Toggle.js.map +1 -1
  235. package/lib/esm/core-react/tooltip/Tooltip.d.ts +3 -3
  236. package/lib/esm/core-react/tooltip/Tooltip.js +1 -1
  237. package/lib/esm/core-react/tooltip/Tooltip.js.map +1 -1
  238. package/lib/esm/core-react/utils/PointProps.d.ts +1 -1
  239. package/lib/esm/core-react/utils/PointProps.js.map +1 -1
  240. package/lib/esm/core-react/utils/UiEvent.d.ts +1 -1
  241. package/lib/esm/core-react/utils/UiEvent.js +1 -1
  242. package/lib/esm/core-react/utils/UiEvent.js.map +1 -1
  243. package/package.json +20 -10
@@ -13,7 +13,7 @@ const React = require("react");
13
13
  const Input_1 = require("./Input");
14
14
  /** Text input wrapper that provides additional styling and labeling
15
15
  * @public
16
- * @deprecated Use LabeledInput in itwinui-react instead
16
+ * @deprecated in 3.0. Use LabeledInput in itwinui-react instead
17
17
  */
18
18
  function LabeledInput(props) {
19
19
  const { label, status, className, style, inputClassName, inputStyle, labelClassName, labelStyle, disabled, message, messageClassName, messageStyle, ...otherProps } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"LabeledInput.js","sourceRoot":"","sources":["../../../../src/core-react/inputs/LabeledInput.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAC/B,mCAA4C;AAW5C;;;GAGG;AACH,SAAgB,YAAY,CAAC,KAAwB;IACnD,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EACrC,cAAc,EAAE,UAAU,EAC1B,cAAc,EAAE,UAAU,EAAE,QAAQ,EACpC,OAAO,EAAE,gBAAgB,EAAE,YAAY,EACvC,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAE1B,OAAO,CACL,+BAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,IAAA,oBAAU,EACxC,6BAA6B,EAC7B,QAAQ,IAAI,iBAAiB,EAC7B,MAAM,EACN,SAAS,CACV;QACE,KAAK;YACJ,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,cAAc,EAAE,cAAc,CAAC,EAAE,KAAK,EAAE,UAAU;;gBAAI,KAAK;oBAAQ;QAEhG,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,OAAO,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;YAC5D,oBAAC,aAAK,IAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,KAAK,EAAE,UAAU,KAAM,UAAU,GAAI;YAC1F,MAAM;gBACL,2BAAG,SAAS,EAAE,IAAA,oBAAU,EAAC,MAAM,EAAE,eAAe,MAAM,EAAE,CAAC,GAAI,CAE3D;QACL,OAAO;YACN,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,KAAK,EAAE,YAAY,IAAG,OAAO,CAAO,CAEhG,CACT,CAAC;AACJ,CAAC;AA5BD,oCA4BC","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 Inputs\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { Input, InputProps } from \"./Input\";\r\nimport { LabeledComponentProps, MessagedComponentProps } from \"./LabeledComponentProps\";\r\n\r\n/* eslint-disable deprecation/deprecation */\r\n\r\n/** Properties for [[LabeledInput]] components\r\n * @public\r\n * @deprecated Use LabeledInputProps in itwinui-react instead\r\n */\r\nexport interface LabeledInputProps extends InputProps, LabeledComponentProps, MessagedComponentProps { } // eslint-disable-line deprecation/deprecation\r\n\r\n/** Text input wrapper that provides additional styling and labeling\r\n * @public\r\n * @deprecated Use LabeledInput in itwinui-react instead\r\n */\r\nexport function LabeledInput(props: LabeledInputProps) { // eslint-disable-line deprecation/deprecation\r\n const { label, status, className, style,\r\n inputClassName, inputStyle,\r\n labelClassName, labelStyle, disabled,\r\n message, messageClassName, messageStyle,\r\n ...otherProps } = props;\r\n\r\n return (\r\n <label style={style} className={classnames(\r\n \"uicore-inputs-labeled-input\",\r\n disabled && \"uicore-disabled\",\r\n status,\r\n className,\r\n )}>\r\n {label &&\r\n <div className={classnames(\"uicore-label\", labelClassName)} style={labelStyle}> {label} </div>\r\n }\r\n <div className={classnames(\"input\", { \"with-icon\": !!status })}>\r\n <Input disabled={disabled} className={inputClassName} style={inputStyle} {...otherProps} />\r\n {status &&\r\n <i className={classnames(\"icon\", `icon-status-${status}`)} />\r\n }\r\n </div>\r\n {message &&\r\n <div className={classnames(\"uicore-message\", messageClassName)} style={messageStyle}>{message}</div>\r\n }\r\n </label>\r\n );\r\n}\r\n"]}
1
+ {"version":3,"file":"LabeledInput.js","sourceRoot":"","sources":["../../../../src/core-react/inputs/LabeledInput.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAC/B,mCAA4C;AAW5C;;;GAGG;AACH,SAAgB,YAAY,CAAC,KAAwB;IACnD,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EACrC,cAAc,EAAE,UAAU,EAC1B,cAAc,EAAE,UAAU,EAAE,QAAQ,EACpC,OAAO,EAAE,gBAAgB,EAAE,YAAY,EACvC,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAE1B,OAAO,CACL,+BAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,IAAA,oBAAU,EACxC,6BAA6B,EAC7B,QAAQ,IAAI,iBAAiB,EAC7B,MAAM,EACN,SAAS,CACV;QACE,KAAK;YACJ,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,cAAc,EAAE,cAAc,CAAC,EAAE,KAAK,EAAE,UAAU;;gBAAI,KAAK;oBAAQ;QAEhG,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,OAAO,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;YAC5D,oBAAC,aAAK,IAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,KAAK,EAAE,UAAU,KAAM,UAAU,GAAI;YAC1F,MAAM;gBACL,2BAAG,SAAS,EAAE,IAAA,oBAAU,EAAC,MAAM,EAAE,eAAe,MAAM,EAAE,CAAC,GAAI,CAE3D;QACL,OAAO;YACN,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,KAAK,EAAE,YAAY,IAAG,OAAO,CAAO,CAEhG,CACT,CAAC;AACJ,CAAC;AA5BD,oCA4BC","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 Inputs\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { Input, InputProps } from \"./Input\";\r\nimport { LabeledComponentProps, MessagedComponentProps } from \"./LabeledComponentProps\";\r\n\r\n/* eslint-disable deprecation/deprecation */\r\n\r\n/** Properties for [[LabeledInput]] components\r\n * @public\r\n * @deprecated in 3.0. Use LabeledInputProps in itwinui-react instead\r\n */\r\nexport interface LabeledInputProps extends InputProps, LabeledComponentProps, MessagedComponentProps { } // eslint-disable-line deprecation/deprecation\r\n\r\n/** Text input wrapper that provides additional styling and labeling\r\n * @public\r\n * @deprecated in 3.0. Use LabeledInput in itwinui-react instead\r\n */\r\nexport function LabeledInput(props: LabeledInputProps) { // eslint-disable-line deprecation/deprecation\r\n const { label, status, className, style,\r\n inputClassName, inputStyle,\r\n labelClassName, labelStyle, disabled,\r\n message, messageClassName, messageStyle,\r\n ...otherProps } = props;\r\n\r\n return (\r\n <label style={style} className={classnames(\r\n \"uicore-inputs-labeled-input\",\r\n disabled && \"uicore-disabled\",\r\n status,\r\n className,\r\n )}>\r\n {label &&\r\n <div className={classnames(\"uicore-label\", labelClassName)} style={labelStyle}> {label} </div>\r\n }\r\n <div className={classnames(\"input\", { \"with-icon\": !!status })}>\r\n <Input disabled={disabled} className={inputClassName} style={inputStyle} {...otherProps} />\r\n {status &&\r\n <i className={classnames(\"icon\", `icon-status-${status}`)} />\r\n }\r\n </div>\r\n {message &&\r\n <div className={classnames(\"uicore-message\", messageClassName)} style={messageStyle}>{message}</div>\r\n }\r\n </label>\r\n );\r\n}\r\n"]}
@@ -6,13 +6,13 @@ import { LabeledComponentProps, MessagedComponentProps } from "./LabeledComponen
6
6
  import { TextareaProps } from "./Textarea";
7
7
  /** Properties for [[LabeledTextarea]] component
8
8
  * @public
9
- * @deprecated Use LabeledTextareaProps in itwinui-react instead
9
+ * @deprecated in 3.0. Use LabeledTextareaProps in itwinui-react instead
10
10
  */
11
11
  export interface LabeledTextareaProps extends TextareaProps, LabeledComponentProps, MessagedComponentProps {
12
12
  }
13
13
  /** Textarea wrapper that allows for additional styling and labelling
14
14
  * @public
15
- * @deprecated Use LabeledTextarea in itwinui-react instead
15
+ * @deprecated in 3.0. Use LabeledTextarea in itwinui-react instead
16
16
  */
17
17
  export declare function LabeledTextarea(props: LabeledTextareaProps): JSX.Element;
18
18
  //# sourceMappingURL=LabeledTextarea.d.ts.map
@@ -13,7 +13,7 @@ const React = require("react");
13
13
  const Textarea_1 = require("./Textarea");
14
14
  /** Textarea wrapper that allows for additional styling and labelling
15
15
  * @public
16
- * @deprecated Use LabeledTextarea in itwinui-react instead
16
+ * @deprecated in 3.0. Use LabeledTextarea in itwinui-react instead
17
17
  */
18
18
  function LabeledTextarea(props) {
19
19
  const { label, status, className, disabled, style, // eslint-disable-line @typescript-eslint/no-unused-vars
@@ -1 +1 @@
1
- {"version":3,"file":"LabeledTextarea.js","sourceRoot":"","sources":["../../../../src/core-react/inputs/LabeledTextarea.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAE/B,yCAAqD;AAUrD;;;GAGG;AACH,SAAgB,eAAe,CAAC,KAA2B;IACzD,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,wDAAwD;IACzG,cAAc,EAAE,UAAU,EAC1B,cAAc,EAAE,UAAU,EAC1B,OAAO,EAAE,gBAAgB,EAAE,YAAY,EACvC,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAE1B,OAAO,CACL,+BAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,IAAA,oBAAU,EACxC,gCAAgC,EAChC,QAAQ,IAAI,iBAAiB,EAC7B,MAAM,EACN,SAAS,CACV;QACE,KAAK;YACJ,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,cAAc,EAAE,cAAc,CAAC,EAAE,KAAK,EAAE,UAAU;;gBAAI,KAAK;oBAAQ;QAEhG,oBAAC,mBAAQ,IAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,KAAK,EAAE,UAAU,KAAM,UAAU,GAAI;QAC7F,OAAO;YACN,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,KAAK,EAAE,YAAY,IAAG,OAAO,CAAO,CAEhG,CACT,CAAC;AACJ,CAAC;AAvBD,0CAuBC","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 Inputs\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { LabeledComponentProps, MessagedComponentProps } from \"./LabeledComponentProps\";\r\nimport { Textarea, TextareaProps } from \"./Textarea\";\r\n\r\n/* eslint-disable deprecation/deprecation */\r\n\r\n/** Properties for [[LabeledTextarea]] component\r\n * @public\r\n * @deprecated Use LabeledTextareaProps in itwinui-react instead\r\n */\r\nexport interface LabeledTextareaProps extends TextareaProps, LabeledComponentProps, MessagedComponentProps { } // eslint-disable-line deprecation/deprecation\r\n\r\n/** Textarea wrapper that allows for additional styling and labelling\r\n * @public\r\n * @deprecated Use LabeledTextarea in itwinui-react instead\r\n */\r\nexport function LabeledTextarea(props: LabeledTextareaProps) { // eslint-disable-line deprecation/deprecation\r\n const { label, status, className, disabled, style, // eslint-disable-line @typescript-eslint/no-unused-vars\r\n inputClassName, inputStyle,\r\n labelClassName, labelStyle,\r\n message, messageClassName, messageStyle,\r\n ...otherProps } = props;\r\n\r\n return (\r\n <label style={style} className={classnames(\r\n \"uicore-inputs-labeled-textarea\",\r\n disabled && \"uicore-disabled\",\r\n status,\r\n className,\r\n )}>\r\n {label &&\r\n <div className={classnames(\"uicore-label\", labelClassName)} style={labelStyle}> {label} </div>\r\n }\r\n <Textarea disabled={disabled} className={inputClassName} style={inputStyle} {...otherProps} />\r\n {message &&\r\n <div className={classnames(\"uicore-message\", messageClassName)} style={messageStyle}>{message}</div>\r\n }\r\n </label>\r\n );\r\n}\r\n"]}
1
+ {"version":3,"file":"LabeledTextarea.js","sourceRoot":"","sources":["../../../../src/core-react/inputs/LabeledTextarea.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAE/B,yCAAqD;AAUrD;;;GAGG;AACH,SAAgB,eAAe,CAAC,KAA2B;IACzD,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,wDAAwD;IACzG,cAAc,EAAE,UAAU,EAC1B,cAAc,EAAE,UAAU,EAC1B,OAAO,EAAE,gBAAgB,EAAE,YAAY,EACvC,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAE1B,OAAO,CACL,+BAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,IAAA,oBAAU,EACxC,gCAAgC,EAChC,QAAQ,IAAI,iBAAiB,EAC7B,MAAM,EACN,SAAS,CACV;QACE,KAAK;YACJ,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,cAAc,EAAE,cAAc,CAAC,EAAE,KAAK,EAAE,UAAU;;gBAAI,KAAK;oBAAQ;QAEhG,oBAAC,mBAAQ,IAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,KAAK,EAAE,UAAU,KAAM,UAAU,GAAI;QAC7F,OAAO;YACN,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,KAAK,EAAE,YAAY,IAAG,OAAO,CAAO,CAEhG,CACT,CAAC;AACJ,CAAC;AAvBD,0CAuBC","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 Inputs\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { LabeledComponentProps, MessagedComponentProps } from \"./LabeledComponentProps\";\r\nimport { Textarea, TextareaProps } from \"./Textarea\";\r\n\r\n/* eslint-disable deprecation/deprecation */\r\n\r\n/** Properties for [[LabeledTextarea]] component\r\n * @public\r\n * @deprecated in 3.0. Use LabeledTextareaProps in itwinui-react instead\r\n */\r\nexport interface LabeledTextareaProps extends TextareaProps, LabeledComponentProps, MessagedComponentProps { } // eslint-disable-line deprecation/deprecation\r\n\r\n/** Textarea wrapper that allows for additional styling and labelling\r\n * @public\r\n * @deprecated in 3.0. Use LabeledTextarea in itwinui-react instead\r\n */\r\nexport function LabeledTextarea(props: LabeledTextareaProps) { // eslint-disable-line deprecation/deprecation\r\n const { label, status, className, disabled, style, // eslint-disable-line @typescript-eslint/no-unused-vars\r\n inputClassName, inputStyle,\r\n labelClassName, labelStyle,\r\n message, messageClassName, messageStyle,\r\n ...otherProps } = props;\r\n\r\n return (\r\n <label style={style} className={classnames(\r\n \"uicore-inputs-labeled-textarea\",\r\n disabled && \"uicore-disabled\",\r\n status,\r\n className,\r\n )}>\r\n {label &&\r\n <div className={classnames(\"uicore-label\", labelClassName)} style={labelStyle}> {label} </div>\r\n }\r\n <Textarea disabled={disabled} className={inputClassName} style={inputStyle} {...otherProps} />\r\n {message &&\r\n <div className={classnames(\"uicore-message\", messageClassName)} style={messageStyle}>{message}</div>\r\n }\r\n </label>\r\n );\r\n}\r\n"]}
@@ -5,7 +5,7 @@ import * as React from "react";
5
5
  import { CommonProps } from "../utils/Props";
6
6
  /** Properties for [[Textarea]] component
7
7
  * @public
8
- * @deprecated Use TextareaProps in itwinui-react instead
8
+ * @deprecated in 3.0. Use TextareaProps in itwinui-react instead
9
9
  */
10
10
  export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement>, CommonProps {
11
11
  /** Number of textarea rows. Default is 3. */
@@ -17,7 +17,7 @@ export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextArea
17
17
  }
18
18
  /** Basic textarea component
19
19
  * @public
20
- * @deprecated Use Textarea in itwinui-react instead
20
+ * @deprecated in 3.0. Use Textarea in itwinui-react instead
21
21
  */
22
22
  export declare const Textarea: (props: TextareaProps) => JSX.Element | null;
23
23
  //# sourceMappingURL=Textarea.d.ts.map
@@ -30,7 +30,7 @@ function ForwardRefTextarea(props, ref) {
30
30
  });
31
31
  /** Basic textarea component
32
32
  * @public
33
- * @deprecated Use Textarea in itwinui-react instead
33
+ * @deprecated in 3.0. Use Textarea in itwinui-react instead
34
34
  */
35
35
  exports.Textarea = ForwardRefTextarea; // eslint-disable-line deprecation/deprecation
36
36
  //# sourceMappingURL=Textarea.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Textarea.js","sourceRoot":"","sources":["../../../../src/core-react/inputs/Textarea.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAC/B,wDAAoE;AACpE,oDAAiD;AAgBjD,0GAA0G;AAC1G,MAAM,kBAAkB,GAAG,KAAK,CAAC,UAAU,CAAyC,8CAA8C;AAChI,SAAS,kBAAkB,CAAC,KAAK,EAAE,GAAG;IACpC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC,CAAC,wDAAwD;IAC3H,MAAM,QAAQ,GAAG,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/C,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,CAAsB,IAAI,CAAC,CAAC;IACnE,MAAM,IAAI,GAAG,IAAA,iBAAO,EAAC,kBAAkB,EAAE,GAAG,CAAC,CAAC,CAAE,uGAAuG;IAEvJ,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,IAAI,kBAAkB,CAAC,OAAO,IAAI,QAAQ;YACxC,kBAAkB,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACvC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,MAAM,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC,KAA4C,EAAE,EAAE;QACrF,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC;IAC/B,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,oBAAC,wBAAgB,OAAK,UAAU,EAC9B,GAAG,EAAE,IAAI,EACT,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,WAAW,EACpB,SAAS,EAAE,IAAA,oBAAU,EAAC,wBAAwB,EAAE,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,GAAI,CAC/E,CAAC;AACJ,CAAC,CACF,CAAC;AAEF;;;GAGG;AACU,QAAA,QAAQ,GAAiD,kBAAkB,CAAC,CAAG,8CAA8C","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 Inputs\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { Textarea as ITwinUI_Textarea } from \"@itwin/itwinui-react\";\r\nimport { useRefs } from \"../utils/hooks/useRefs\";\r\nimport { CommonProps } from \"../utils/Props\";\r\n\r\n/** Properties for [[Textarea]] component\r\n * @public\r\n * @deprecated Use TextareaProps in itwinui-react instead\r\n */\r\nexport interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement>, CommonProps {\r\n /** Number of textarea rows. Default is 3. */\r\n rows?: number;\r\n /** Indicates whether to set focus to the textarea element */\r\n setFocus?: boolean;\r\n /** Provides ability to return reference to HTMLInputElement */\r\n ref?: React.Ref<HTMLTextAreaElement>;\r\n}\r\n\r\n// Defined using following pattern (const Input at bottom) to ensure useful API documentation is extracted\r\nconst ForwardRefTextarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>( // eslint-disable-line deprecation/deprecation\r\n function ForwardRefTextarea(props, ref) {\r\n const { className, style, rows, setFocus, ...otherProps } = props; // eslint-disable-line @typescript-eslint/no-unused-vars\r\n const textRows = undefined !== rows ? rows : 3;\r\n const textAreaElementRef = React.useRef<HTMLTextAreaElement>(null);\r\n const refs = useRefs(textAreaElementRef, ref); // combine ref needed for target with the forwardRef needed by the Parent when parent is a Type Editor.\r\n\r\n React.useEffect(() => {\r\n if (textAreaElementRef.current && setFocus)\r\n textAreaElementRef.current.focus();\r\n }, [setFocus]);\r\n\r\n const handleFocus = React.useCallback((event: React.FocusEvent<HTMLTextAreaElement>) => {\r\n event.currentTarget.select();\r\n }, []);\r\n\r\n return (\r\n <ITwinUI_Textarea {...otherProps}\r\n ref={refs}\r\n rows={textRows}\r\n onFocus={handleFocus}\r\n className={classnames(\"uicore-inputs-textarea\", className)} style={style} />\r\n );\r\n }\r\n);\r\n\r\n/** Basic textarea component\r\n * @public\r\n * @deprecated Use Textarea in itwinui-react instead\r\n */\r\nexport const Textarea: (props: TextareaProps) => JSX.Element | null = ForwardRefTextarea; // eslint-disable-line deprecation/deprecation\r\n"]}
1
+ {"version":3,"file":"Textarea.js","sourceRoot":"","sources":["../../../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;;;GAGG;AACU,QAAA,QAAQ,GAAiD,kBAAkB,CAAC,CAAG,8CAA8C","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 Inputs\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { Textarea as ITwinUI_Textarea } from \"@itwin/itwinui-react\";\r\nimport { useRefs } from \"../utils/hooks/useRefs\";\r\nimport { CommonProps } from \"../utils/Props\";\r\n\r\n/** Properties for [[Textarea]] component\r\n * @public\r\n * @deprecated in 3.0. Use TextareaProps in itwinui-react instead\r\n */\r\nexport interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement>, CommonProps {\r\n /** Number of textarea rows. Default is 3. */\r\n rows?: number;\r\n /** Indicates whether to set focus to the textarea element */\r\n setFocus?: boolean;\r\n /** Provides ability to return reference to HTMLInputElement */\r\n ref?: React.Ref<HTMLTextAreaElement>;\r\n}\r\n\r\n// Defined using following pattern (const Input at bottom) to ensure useful API documentation is extracted\r\nconst ForwardRefTextarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>( // eslint-disable-line deprecation/deprecation\r\n function ForwardRefTextarea(props, ref) {\r\n const { className, style, rows, setFocus, ...otherProps } = props; // eslint-disable-line @typescript-eslint/no-unused-vars\r\n const textRows = undefined !== rows ? rows : 3;\r\n const textAreaElementRef = React.useRef<HTMLTextAreaElement>(null);\r\n const refs = useRefs(textAreaElementRef, ref); // combine ref needed for target with the forwardRef needed by the Parent when parent is a Type Editor.\r\n\r\n React.useEffect(() => {\r\n if (textAreaElementRef.current && setFocus)\r\n textAreaElementRef.current.focus();\r\n }, [setFocus]);\r\n\r\n const handleFocus = React.useCallback((event: React.FocusEvent<HTMLTextAreaElement>) => {\r\n event.currentTarget.select();\r\n }, []);\r\n\r\n return (\r\n <ITwinUI_Textarea {...otherProps}\r\n ref={refs}\r\n rows={textRows}\r\n onFocus={handleFocus}\r\n className={classnames(\"uicore-inputs-textarea\", className)} style={style} />\r\n );\r\n }\r\n);\r\n\r\n/** Basic textarea component\r\n * @public\r\n * @deprecated in 3.0. Use Textarea in itwinui-react instead\r\n */\r\nexport const Textarea: (props: TextareaProps) => JSX.Element | null = ForwardRefTextarea; // eslint-disable-line deprecation/deprecation\r\n"]}
@@ -5,7 +5,7 @@ import "./Spinner.scss";
5
5
  import * as React from "react";
6
6
  /** Size for [[Spinner]] component
7
7
  * @public
8
- * @deprecated Use `size` in ProgressRadialProps in itwinui-react instead.
8
+ * @deprecated in 3.0. Use `size` in ProgressRadialProps in itwinui-react instead.
9
9
  */
10
10
  export declare enum SpinnerSize {
11
11
  /** width/height of 16px */
@@ -19,7 +19,7 @@ export declare enum SpinnerSize {
19
19
  }
20
20
  /** Properties for [[Spinner]] component
21
21
  * @public
22
- * @deprecated Use ProgressRadialProps in itwinui-react instead.
22
+ * @deprecated in 3.0. Use ProgressRadialProps in itwinui-react instead.
23
23
  */
24
24
  export interface SpinnerProps {
25
25
  /** Size of spinner */
@@ -30,7 +30,7 @@ export interface SpinnerProps {
30
30
  /**
31
31
  * An indeterminate spinner component.
32
32
  * @public
33
- * @deprecated Use ProgressRadial in itwinui-react with `indeterminate` prop instead.
33
+ * @deprecated in 3.0. Use ProgressRadial in itwinui-react with `indeterminate` prop instead.
34
34
  */
35
35
  export declare class Spinner extends React.PureComponent<SpinnerProps> {
36
36
  render(): JSX.Element;
@@ -14,7 +14,7 @@ const React = require("react");
14
14
  // cspell:ignore xlarge
15
15
  /** Size for [[Spinner]] component
16
16
  * @public
17
- * @deprecated Use `size` in ProgressRadialProps in itwinui-react instead.
17
+ * @deprecated in 3.0. Use `size` in ProgressRadialProps in itwinui-react instead.
18
18
  */
19
19
  var SpinnerSize;
20
20
  (function (SpinnerSize) {
@@ -30,7 +30,7 @@ var SpinnerSize;
30
30
  /**
31
31
  * An indeterminate spinner component.
32
32
  * @public
33
- * @deprecated Use ProgressRadial in itwinui-react with `indeterminate` prop instead.
33
+ * @deprecated in 3.0. Use ProgressRadial in itwinui-react with `indeterminate` prop instead.
34
34
  */
35
35
  class Spinner extends React.PureComponent {
36
36
  render() {
@@ -1 +1 @@
1
- {"version":3,"file":"Spinner.js","sourceRoot":"","sources":["../../../../src/core-react/loading/Spinner.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,0BAAwB;AACxB,+BAA+B;AAE/B,4CAA4C;AAC5C,uBAAuB;AAEvB;;;GAGG;AACH,IAAY,WASX;AATD,WAAY,WAAW;IACrB,2BAA2B;IAC3B,+CAAK,CAAA;IACL,2BAA2B;IAC3B,iDAAM,CAAA;IACN,2BAA2B;IAC3B,+CAAK,CAAA;IACL,2BAA2B;IAC3B,iDAAM,CAAA;AACR,CAAC,EATW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAStB;AAaD;;;;GAIG;AACH,MAAa,OAAQ,SAAQ,KAAK,CAAC,aAA2B;IAE5C,MAAM;QACpB,IAAI,SAAiB,CAAC;QAEtB,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS;YACtB,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;aAC9B;YACH,QAAQ,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;gBACvB,KAAK,WAAW,CAAC,KAAK;oBACpB,SAAS,GAAG,oBAAoB,CAAC;oBACjC,MAAM;gBACR,KAAK,WAAW,CAAC,KAAK;oBACpB,SAAS,GAAG,oBAAoB,CAAC;oBACjC,MAAM;gBACR,KAAK,WAAW,CAAC,MAAM;oBACrB,SAAS,GAAG,qBAAqB,CAAC;oBAClC,MAAM;gBACR,KAAK,WAAW,CAAC,MAAM,CAAC;gBACxB;oBACE,SAAS,GAAG,qBAAqB,CAAC;oBAClC,MAAM;aACT;SACF;QAED,OAAO,CACL,6BAAK,SAAS,EAAE,SAAS,GAAI,CAC9B,CAAC;IACJ,CAAC;CACF;AA7BD,0BA6BC","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 Loading\r\n */\r\n\r\nimport \"./Spinner.scss\";\r\nimport * as React from \"react\";\r\n\r\n/* eslint-disable deprecation/deprecation */\r\n// cspell:ignore xlarge\r\n\r\n/** Size for [[Spinner]] component\r\n * @public\r\n * @deprecated Use `size` in ProgressRadialProps in itwinui-react instead.\r\n */\r\nexport enum SpinnerSize {\r\n /** width/height of 16px */\r\n Small,\r\n /** width/height of 32px */\r\n Medium,\r\n /** width/height of 64px */\r\n Large,\r\n /** width/height of 96px */\r\n XLarge,\r\n}\r\n\r\n/** Properties for [[Spinner]] component\r\n * @public\r\n * @deprecated Use ProgressRadialProps in itwinui-react instead.\r\n */\r\nexport interface SpinnerProps {\r\n /** Size of spinner */\r\n size?: SpinnerSize;\r\n /** CSS class for size of spinner */\r\n sizeClass?: string;\r\n}\r\n\r\n/**\r\n * An indeterminate spinner component.\r\n * @public\r\n * @deprecated Use ProgressRadial in itwinui-react with `indeterminate` prop instead.\r\n */\r\nexport class Spinner extends React.PureComponent<SpinnerProps> {\r\n\r\n public override render() {\r\n let sizeClass: string;\r\n\r\n if (this.props.sizeClass)\r\n sizeClass = this.props.sizeClass;\r\n else {\r\n switch (this.props.size) {\r\n case SpinnerSize.Small:\r\n sizeClass = \"core-spinner-small\";\r\n break;\r\n case SpinnerSize.Large:\r\n sizeClass = \"core-spinner-large\";\r\n break;\r\n case SpinnerSize.XLarge:\r\n sizeClass = \"core-spinner-xlarge\";\r\n break;\r\n case SpinnerSize.Medium:\r\n default:\r\n sizeClass = \"core-spinner-medium\";\r\n break;\r\n }\r\n }\r\n\r\n return (\r\n <div className={sizeClass} />\r\n );\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"Spinner.js","sourceRoot":"","sources":["../../../../src/core-react/loading/Spinner.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,0BAAwB;AACxB,+BAA+B;AAE/B,4CAA4C;AAC5C,uBAAuB;AAEvB;;;GAGG;AACH,IAAY,WASX;AATD,WAAY,WAAW;IACrB,2BAA2B;IAC3B,+CAAK,CAAA;IACL,2BAA2B;IAC3B,iDAAM,CAAA;IACN,2BAA2B;IAC3B,+CAAK,CAAA;IACL,2BAA2B;IAC3B,iDAAM,CAAA;AACR,CAAC,EATW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAStB;AAaD;;;;GAIG;AACH,MAAa,OAAQ,SAAQ,KAAK,CAAC,aAA2B;IAE5C,MAAM;QACpB,IAAI,SAAiB,CAAC;QAEtB,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS;YACtB,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC;aAC9B;YACH,QAAQ,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;gBACvB,KAAK,WAAW,CAAC,KAAK;oBACpB,SAAS,GAAG,oBAAoB,CAAC;oBACjC,MAAM;gBACR,KAAK,WAAW,CAAC,KAAK;oBACpB,SAAS,GAAG,oBAAoB,CAAC;oBACjC,MAAM;gBACR,KAAK,WAAW,CAAC,MAAM;oBACrB,SAAS,GAAG,qBAAqB,CAAC;oBAClC,MAAM;gBACR,KAAK,WAAW,CAAC,MAAM,CAAC;gBACxB;oBACE,SAAS,GAAG,qBAAqB,CAAC;oBAClC,MAAM;aACT;SACF;QAED,OAAO,CACL,6BAAK,SAAS,EAAE,SAAS,GAAI,CAC9B,CAAC;IACJ,CAAC;CACF;AA7BD,0BA6BC","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 Loading\r\n */\r\n\r\nimport \"./Spinner.scss\";\r\nimport * as React from \"react\";\r\n\r\n/* eslint-disable deprecation/deprecation */\r\n// cspell:ignore xlarge\r\n\r\n/** Size for [[Spinner]] component\r\n * @public\r\n * @deprecated in 3.0. Use `size` in ProgressRadialProps in itwinui-react instead.\r\n */\r\nexport enum SpinnerSize {\r\n /** width/height of 16px */\r\n Small,\r\n /** width/height of 32px */\r\n Medium,\r\n /** width/height of 64px */\r\n Large,\r\n /** width/height of 96px */\r\n XLarge,\r\n}\r\n\r\n/** Properties for [[Spinner]] component\r\n * @public\r\n * @deprecated in 3.0. Use ProgressRadialProps in itwinui-react instead.\r\n */\r\nexport interface SpinnerProps {\r\n /** Size of spinner */\r\n size?: SpinnerSize;\r\n /** CSS class for size of spinner */\r\n sizeClass?: string;\r\n}\r\n\r\n/**\r\n * An indeterminate spinner component.\r\n * @public\r\n * @deprecated in 3.0. Use ProgressRadial in itwinui-react with `indeterminate` prop instead.\r\n */\r\nexport class Spinner extends React.PureComponent<SpinnerProps> {\r\n\r\n public override render() {\r\n let sizeClass: string;\r\n\r\n if (this.props.sizeClass)\r\n sizeClass = this.props.sizeClass;\r\n else {\r\n switch (this.props.size) {\r\n case SpinnerSize.Small:\r\n sizeClass = \"core-spinner-small\";\r\n break;\r\n case SpinnerSize.Large:\r\n sizeClass = \"core-spinner-large\";\r\n break;\r\n case SpinnerSize.XLarge:\r\n sizeClass = \"core-spinner-xlarge\";\r\n break;\r\n case SpinnerSize.Medium:\r\n default:\r\n sizeClass = \"core-spinner-medium\";\r\n break;\r\n }\r\n }\r\n\r\n return (\r\n <div className={sizeClass} />\r\n );\r\n }\r\n}\r\n"]}
@@ -3,7 +3,7 @@
3
3
  */
4
4
  /** Message Severity enum.
5
5
  * @public
6
- * @deprecated Use [MessageSeverity]($appui-abstract) instead
6
+ * @deprecated in 3.0. Use [MessageSeverity]($appui-abstract) instead
7
7
  */
8
8
  export declare enum MessageSeverity {
9
9
  None = 0,
@@ -10,7 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.MessageSeverity = void 0;
11
11
  /** Message Severity enum.
12
12
  * @public
13
- * @deprecated Use [MessageSeverity]($appui-abstract) instead
13
+ * @deprecated in 3.0. Use [MessageSeverity]($appui-abstract) instead
14
14
  */
15
15
  var MessageSeverity;
16
16
  (function (MessageSeverity) {
@@ -1 +1 @@
1
- {"version":3,"file":"MessageSeverity.js","sourceRoot":"","sources":["../../../../src/core-react/messagebox/MessageSeverity.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH;;;IAGI;AACJ,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,qDAAQ,CAAA;IACR,mEAAe,CAAA;IACf,6DAAY,CAAA;IACZ,2DAAW,CAAA;IACX,uDAAS,CAAA;IACT,uDAAS,CAAA;AACX,CAAC,EAPW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAO1B","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 Dialog\r\n */\r\n\r\n/** Message Severity enum.\r\n * @public\r\n * @deprecated Use [MessageSeverity]($appui-abstract) instead\r\n */\r\nexport enum MessageSeverity {\r\n None = 0,\r\n Information = 1,\r\n Question = 2,\r\n Warning = 3,\r\n Error = 4,\r\n Fatal = 5,\r\n}\r\n"]}
1
+ {"version":3,"file":"MessageSeverity.js","sourceRoot":"","sources":["../../../../src/core-react/messagebox/MessageSeverity.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH;;;IAGI;AACJ,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,qDAAQ,CAAA;IACR,mEAAe,CAAA;IACf,6DAAY,CAAA;IACZ,2DAAW,CAAA;IACX,uDAAS,CAAA;IACT,uDAAS,CAAA;AACX,CAAC,EAPW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAO1B","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 Dialog\r\n */\r\n\r\n/** Message Severity enum.\r\n * @public\r\n * @deprecated in 3.0. Use [MessageSeverity]($appui-abstract) instead\r\n */\r\nexport enum MessageSeverity {\r\n None = 0,\r\n Information = 1,\r\n Question = 2,\r\n Warning = 3,\r\n Error = 4,\r\n Fatal = 5,\r\n}\r\n"]}
@@ -5,7 +5,7 @@
5
5
  import { CommonProps } from "../utils/Props";
6
6
  /** Properties for [[ProgressBar]] component
7
7
  * @beta
8
- * @deprecated Use ProgressLinearProps in itwinui-react instead.
8
+ * @deprecated in 3.0. Use ProgressLinearProps in itwinui-react instead.
9
9
  */
10
10
  export interface ProgressBarProps extends CommonProps {
11
11
  /** Height (in pixels) of the progress bar. (defaults to 4px) */
@@ -23,7 +23,7 @@ export interface ProgressBarProps extends CommonProps {
23
23
  * ProgressBar React component shows a horizontal progress bar.
24
24
  * The determinate bar reflects a percentage and the indeterminate bar continuously animates.
25
25
  * @beta
26
- * @deprecated Use ProgressLinear in itwinui-react instead.
26
+ * @deprecated in 3.0. Use ProgressLinear in itwinui-react instead.
27
27
  */
28
28
  export declare function ProgressBar(props: ProgressBarProps): JSX.Element;
29
29
  //# sourceMappingURL=ProgressBar.d.ts.map
@@ -15,7 +15,7 @@ const LoadingBar_1 = require("../loading/LoadingBar");
15
15
  * ProgressBar React component shows a horizontal progress bar.
16
16
  * The determinate bar reflects a percentage and the indeterminate bar continuously animates.
17
17
  * @beta
18
- * @deprecated Use ProgressLinear in itwinui-react instead.
18
+ * @deprecated in 3.0. Use ProgressLinear in itwinui-react instead.
19
19
  */
20
20
  function ProgressBar(props) {
21
21
  const percent = props.percent !== undefined ? (0, LoadingBar_1.percentInRange)(props.percent) : 0;
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressBar.js","sourceRoot":"","sources":["../../../../src/core-react/progress-indicators/ProgressBar.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAE/B,sDAAuD;AAmBvD;;;;;GAKG;AACH,SAAgB,WAAW,CAAC,KAAuB;IACjD,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,IAAA,2BAAc,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAChF,MAAM,UAAU,GAAwB;QACtC,GAAG,KAAK,CAAC,KAAK;QACd,MAAM,EAAE,KAAK,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,SAAS,IAAI,CAAC,CAAC,CAAC,SAAS;KAC3E,CAAC;IACF,MAAM,UAAU,GAAwB;QACtC,KAAK,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,OAAO,GAAG,CAAC,CAAC,CAAC,SAAS;KACxD,CAAC;IACF,MAAM,UAAU,GAAG,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,iCAAiC,CAAC,CAAC,CAAC,mCAAmC,CAAC;IAClH,MAAM,QAAQ,GAAG,KAAK,CAAC,SAAS,KAAK,SAAS,IAAI,KAAK,CAAC,UAAU,KAAK,SAAS,CAAC;IACjF,MAAM,cAAc,GAAG,KAAK,CAAC,SAAS,KAAK,SAAS,IAAI,KAAK,CAAC,UAAU,KAAK,SAAS,CAAC;IACvF,MAAM,GAAG,GAAG,CACV,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,qBAAqB,EAAE,KAAK,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,UAAU;QACnF,6BAAK,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,GAAI,CAC7C,CACP,CAAC;IACF,MAAM,OAAO,GAAG,CAAC,QAAQ,CAAC,CAAC;QACzB,GAAG,CAAC,CAAC;QACL,CACE,6BAAK,SAAS,EAAC,6BAA6B;YACzC,GAAG;YACJ,6BAAK,SAAS,EAAC,cAAc;gBAC1B,cAAc,IAAI;oBAAE,kCAAO,KAAK,CAAC,SAAS,CAAQ;oBAAA,kCAAO,KAAK,CAAC,UAAU,CAAQ,CAAG;gBACpF,CAAC,cAAc,IAAI;oBAAG,KAAK,CAAC,SAAS;oBAAE,KAAK,CAAC,UAAU,CAAI,CACxD,CACF,CACP,CAAC;IAEJ,OAAO,OAAO,CAAC;AACjB,CAAC;AA9BD,kCA8BC","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 Loading\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { CommonProps } from \"../utils/Props\";\r\nimport { percentInRange } from \"../loading/LoadingBar\";\r\n\r\n/** Properties for [[ProgressBar]] component\r\n * @beta\r\n * @deprecated Use ProgressLinearProps in itwinui-react instead.\r\n */\r\nexport interface ProgressBarProps extends CommonProps {\r\n /** Height (in pixels) of the progress bar. (defaults to 4px) */\r\n barHeight?: number;\r\n /** Indicates whether the progress bar is determinate showing a percentage or indeterminate continuously animating. (defaults to false) */\r\n indeterminate?: boolean;\r\n /** One of two possible labels. If only one label is given it will be centered. Otherwise, this label is shown on the left. */\r\n labelLeft?: string;\r\n /** One of two possible labels. If only one label is given it will be centered. Otherwise, this label is shown on the right. */\r\n labelRight?: string;\r\n /** Percent for determinate progress bar. */\r\n percent?: number;\r\n}\r\n\r\n/**\r\n * ProgressBar React component shows a horizontal progress bar.\r\n * The determinate bar reflects a percentage and the indeterminate bar continuously animates.\r\n * @beta\r\n * @deprecated Use ProgressLinear in itwinui-react instead.\r\n */\r\nexport function ProgressBar(props: ProgressBarProps) { // eslint-disable-line deprecation/deprecation\r\n const percent = props.percent !== undefined ? percentInRange(props.percent) : 0;\r\n const outerStyle: React.CSSProperties = {\r\n ...props.style,\r\n height: props.barHeight !== undefined ? `${props.barHeight}px` : undefined,\r\n };\r\n const innerStyle: React.CSSProperties = {\r\n width: !props.indeterminate ? `${percent}%` : undefined,\r\n };\r\n const innerClass = !props.indeterminate ? \"uicore-progress-bar-determinate\" : \"uicore-progress-bar-indeterminate\";\r\n const hasLabel = props.labelLeft !== undefined || props.labelRight !== undefined;\r\n const multipleLabels = props.labelLeft !== undefined && props.labelRight !== undefined;\r\n const bar = (\r\n <div className={classnames(\"uicore-progress-bar\", props.className)} style={outerStyle}>\r\n <div className={innerClass} style={innerStyle} />\r\n </div>\r\n );\r\n const content = !hasLabel ?\r\n bar :\r\n (\r\n <div className=\"uicore-progress-bar-labeled\">\r\n {bar}\r\n <div className=\"uicore-label\">\r\n {multipleLabels && <><span>{props.labelLeft}</span><span>{props.labelRight}</span></>}\r\n {!multipleLabels && <>{props.labelLeft}{props.labelRight}</>}\r\n </div>\r\n </div>\r\n );\r\n\r\n return content;\r\n}\r\n"]}
1
+ {"version":3,"file":"ProgressBar.js","sourceRoot":"","sources":["../../../../src/core-react/progress-indicators/ProgressBar.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAE/B,sDAAuD;AAmBvD;;;;;GAKG;AACH,SAAgB,WAAW,CAAC,KAAuB;IACjD,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,IAAA,2BAAc,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAChF,MAAM,UAAU,GAAwB;QACtC,GAAG,KAAK,CAAC,KAAK;QACd,MAAM,EAAE,KAAK,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,SAAS,IAAI,CAAC,CAAC,CAAC,SAAS;KAC3E,CAAC;IACF,MAAM,UAAU,GAAwB;QACtC,KAAK,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,OAAO,GAAG,CAAC,CAAC,CAAC,SAAS;KACxD,CAAC;IACF,MAAM,UAAU,GAAG,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,iCAAiC,CAAC,CAAC,CAAC,mCAAmC,CAAC;IAClH,MAAM,QAAQ,GAAG,KAAK,CAAC,SAAS,KAAK,SAAS,IAAI,KAAK,CAAC,UAAU,KAAK,SAAS,CAAC;IACjF,MAAM,cAAc,GAAG,KAAK,CAAC,SAAS,KAAK,SAAS,IAAI,KAAK,CAAC,UAAU,KAAK,SAAS,CAAC;IACvF,MAAM,GAAG,GAAG,CACV,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,qBAAqB,EAAE,KAAK,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,UAAU;QACnF,6BAAK,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,GAAI,CAC7C,CACP,CAAC;IACF,MAAM,OAAO,GAAG,CAAC,QAAQ,CAAC,CAAC;QACzB,GAAG,CAAC,CAAC;QACL,CACE,6BAAK,SAAS,EAAC,6BAA6B;YACzC,GAAG;YACJ,6BAAK,SAAS,EAAC,cAAc;gBAC1B,cAAc,IAAI;oBAAE,kCAAO,KAAK,CAAC,SAAS,CAAQ;oBAAA,kCAAO,KAAK,CAAC,UAAU,CAAQ,CAAG;gBACpF,CAAC,cAAc,IAAI;oBAAG,KAAK,CAAC,SAAS;oBAAE,KAAK,CAAC,UAAU,CAAI,CACxD,CACF,CACP,CAAC;IAEJ,OAAO,OAAO,CAAC;AACjB,CAAC;AA9BD,kCA8BC","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 Loading\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { CommonProps } from \"../utils/Props\";\r\nimport { percentInRange } from \"../loading/LoadingBar\";\r\n\r\n/** Properties for [[ProgressBar]] component\r\n * @beta\r\n * @deprecated in 3.0. Use ProgressLinearProps in itwinui-react instead.\r\n */\r\nexport interface ProgressBarProps extends CommonProps {\r\n /** Height (in pixels) of the progress bar. (defaults to 4px) */\r\n barHeight?: number;\r\n /** Indicates whether the progress bar is determinate showing a percentage or indeterminate continuously animating. (defaults to false) */\r\n indeterminate?: boolean;\r\n /** One of two possible labels. If only one label is given it will be centered. Otherwise, this label is shown on the left. */\r\n labelLeft?: string;\r\n /** One of two possible labels. If only one label is given it will be centered. Otherwise, this label is shown on the right. */\r\n labelRight?: string;\r\n /** Percent for determinate progress bar. */\r\n percent?: number;\r\n}\r\n\r\n/**\r\n * ProgressBar React component shows a horizontal progress bar.\r\n * The determinate bar reflects a percentage and the indeterminate bar continuously animates.\r\n * @beta\r\n * @deprecated in 3.0. Use ProgressLinear in itwinui-react instead.\r\n */\r\nexport function ProgressBar(props: ProgressBarProps) { // eslint-disable-line deprecation/deprecation\r\n const percent = props.percent !== undefined ? percentInRange(props.percent) : 0;\r\n const outerStyle: React.CSSProperties = {\r\n ...props.style,\r\n height: props.barHeight !== undefined ? `${props.barHeight}px` : undefined,\r\n };\r\n const innerStyle: React.CSSProperties = {\r\n width: !props.indeterminate ? `${percent}%` : undefined,\r\n };\r\n const innerClass = !props.indeterminate ? \"uicore-progress-bar-determinate\" : \"uicore-progress-bar-indeterminate\";\r\n const hasLabel = props.labelLeft !== undefined || props.labelRight !== undefined;\r\n const multipleLabels = props.labelLeft !== undefined && props.labelRight !== undefined;\r\n const bar = (\r\n <div className={classnames(\"uicore-progress-bar\", props.className)} style={outerStyle}>\r\n <div className={innerClass} style={innerStyle} />\r\n </div>\r\n );\r\n const content = !hasLabel ?\r\n bar :\r\n (\r\n <div className=\"uicore-progress-bar-labeled\">\r\n {bar}\r\n <div className=\"uicore-label\">\r\n {multipleLabels && <><span>{props.labelLeft}</span><span>{props.labelRight}</span></>}\r\n {!multipleLabels && <>{props.labelLeft}{props.labelRight}</>}\r\n </div>\r\n </div>\r\n );\r\n\r\n return content;\r\n}\r\n"]}
@@ -7,7 +7,7 @@ import { SpinnerSize } from "../loading/Spinner";
7
7
  /**
8
8
  * Properties for [[ProgressSpinner]] component
9
9
  * @beta
10
- * @deprecated Use ProgressRadialProps in itwinui-react instead.
10
+ * @deprecated in 3.0. Use ProgressRadialProps in itwinui-react instead.
11
11
  */
12
12
  export interface ProgressSpinnerProps extends CommonProps {
13
13
  /**
@@ -43,7 +43,7 @@ export interface ProgressSpinnerProps extends CommonProps {
43
43
  /**
44
44
  * Circular Progress Indicator that supports determinate and indeterminate modes.
45
45
  * @beta
46
- * @deprecated Use ProgressRadial in itwinui-react instead.
46
+ * @deprecated in 3.0. Use ProgressRadial in itwinui-react instead.
47
47
  */
48
48
  export declare function ProgressSpinner(props: ProgressSpinnerProps): JSX.Element;
49
49
  //# sourceMappingURL=ProgressSpinner.d.ts.map
@@ -15,7 +15,7 @@ const Spinner_1 = require("../loading/Spinner");
15
15
  /**
16
16
  * Circular Progress Indicator that supports determinate and indeterminate modes.
17
17
  * @beta
18
- * @deprecated Use ProgressRadial in itwinui-react instead.
18
+ * @deprecated in 3.0. Use ProgressRadial in itwinui-react instead.
19
19
  */
20
20
  function ProgressSpinner(props) {
21
21
  const { value = 0, indeterminate = false, success = false, error = false, style = {}, size, children, } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressSpinner.js","sourceRoot":"","sources":["../../../../src/core-react/progress-indicators/ProgressSpinner.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAE/B,0DAA8C;AAC9C,gDAAiD;AAuCjD;;;;GAIG;AACH,SAA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Content":["/*---------------------------------------------------------------------------------------------\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 Loading\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { CommonProps } from \"../utils/Props\";\r\nimport { Icon } from \"../icons/IconComponent\";\r\nimport { SpinnerSize } from \"../loading/Spinner\";\r\n\r\n/**\r\n * Properties for [[ProgressSpinner]] component\r\n * @beta\r\n * @deprecated Use ProgressRadialProps in itwinui-react instead.\r\n */\r\nexport interface ProgressSpinnerProps extends CommonProps {\r\n /**\r\n * Spinner percentage. Should be a number between 0 and 100.\r\n * @default 0\r\n */\r\n value?: number;\r\n /**\r\n * Spinner variant. If true, value will be ignored.\r\n * @default false\r\n */\r\n indeterminate?: boolean;\r\n /**\r\n * If true, spinner will be full, green, and display a checkmark.\r\n * @default false\r\n */\r\n success?: boolean;\r\n /**\r\n * If true, spinner will be full, red, and display an X.\r\n * @default false\r\n */\r\n error?: boolean;\r\n /**\r\n * Size of spinner\r\n * @default width/height of 40px\r\n */\r\n size?: SpinnerSize; // eslint-disable-line deprecation/deprecation\r\n /**\r\n * Child components\r\n */\r\n children?: React.ReactNode;\r\n}\r\n\r\n/**\r\n * Circular Progress Indicator that supports determinate and indeterminate modes.\r\n * @beta\r\n * @deprecated Use ProgressRadial in itwinui-react instead.\r\n */\r\nexport function ProgressSpinner(props: ProgressSpinnerProps) { // eslint-disable-line deprecation/deprecation\r\n const {\r\n value = 0,\r\n indeterminate = false,\r\n success = false,\r\n error = false,\r\n style = {},\r\n size,\r\n children,\r\n } = props;\r\n\r\n let outerClassName = classnames(\"uicore-progress-spinner\");\r\n const outerStyle = { ...style };\r\n const fillStyle: React.CSSProperties = {};\r\n // Ensure value is bounded 0 - 100;\r\n const dashOffset = 100 - Math.min(Math.max(value, 0), 100);\r\n let content: React.ReactNode;\r\n\r\n if (error) {\r\n outerClassName = classnames(outerClassName, \"error\");\r\n content = <Icon iconSpec=\"icon-close-2\" />;\r\n } else if (success) {\r\n outerClassName = classnames(outerClassName, \"success\");\r\n content = (\r\n <Icon iconSpec=\"icon-checkmark\" />\r\n );\r\n } else if (indeterminate) {\r\n outerClassName = classnames(outerClassName, \"indeterminate\");\r\n content = children;\r\n } else {\r\n outerClassName = classnames(outerClassName, \"determinate\");\r\n fillStyle.strokeDashoffset = dashOffset;\r\n content = children;\r\n }\r\n\r\n setDefaultDimensions(outerStyle, size);\r\n\r\n return (\r\n <div className={outerClassName} style={outerStyle}>\r\n <svg className=\"spinner\" viewBox=\"0 0 40 40\">\r\n <circle className=\"shape\" cx=\"20\" cy=\"20\" r=\"15.91549\" />\r\n <circle\r\n className=\"fill\"\r\n cx=\"20\"\r\n cy=\"20\"\r\n r=\"15.91549\"\r\n style={fillStyle}\r\n />\r\n </svg>\r\n {content && <span className=\"uicore-progress-spinner-content\">{content}</span>}\r\n </div>\r\n );\r\n}\r\n\r\nconst setDefaultDimensions = (style: React.CSSProperties, inSize?: SpinnerSize) => { // eslint-disable-line deprecation/deprecation\r\n let size = 40;\r\n\r\n if (inSize !== undefined) {\r\n switch (inSize) {\r\n case SpinnerSize.Small: // eslint-disable-line deprecation/deprecation\r\n size = 16;\r\n break;\r\n case SpinnerSize.Medium: // eslint-disable-line deprecation/deprecation\r\n size = 32;\r\n break;\r\n case SpinnerSize.Large: // eslint-disable-line deprecation/deprecation\r\n size = 64;\r\n break;\r\n case SpinnerSize.XLarge: // eslint-disable-line deprecation/deprecation\r\n size = 96;\r\n break;\r\n }\r\n }\r\n style.width = style.width ? style.width : size;\r\n style.height = style.height ? style.height : size;\r\n};\r\n"]}
1
+ {"version":3,"file":"ProgressSpinner.js","sourceRoot":"","sources":["../../../../src/core-react/progress-indicators/ProgressSpinner.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B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MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;AACpD,CAAC,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 Loading\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { CommonProps } from \"../utils/Props\";\r\nimport { Icon } from \"../icons/IconComponent\";\r\nimport { SpinnerSize } from \"../loading/Spinner\";\r\n\r\n/**\r\n * Properties for [[ProgressSpinner]] component\r\n * @beta\r\n * @deprecated in 3.0. Use ProgressRadialProps in itwinui-react instead.\r\n */\r\nexport interface ProgressSpinnerProps extends CommonProps {\r\n /**\r\n * Spinner percentage. Should be a number between 0 and 100.\r\n * @default 0\r\n */\r\n value?: number;\r\n /**\r\n * Spinner variant. If true, value will be ignored.\r\n * @default false\r\n */\r\n indeterminate?: boolean;\r\n /**\r\n * If true, spinner will be full, green, and display a checkmark.\r\n * @default false\r\n */\r\n success?: boolean;\r\n /**\r\n * If true, spinner will be full, red, and display an X.\r\n * @default false\r\n */\r\n error?: boolean;\r\n /**\r\n * Size of spinner\r\n * @default width/height of 40px\r\n */\r\n size?: SpinnerSize; // eslint-disable-line deprecation/deprecation\r\n /**\r\n * Child components\r\n */\r\n children?: React.ReactNode;\r\n}\r\n\r\n/**\r\n * Circular Progress Indicator that supports determinate and indeterminate modes.\r\n * @beta\r\n * @deprecated in 3.0. Use ProgressRadial in itwinui-react instead.\r\n */\r\nexport function ProgressSpinner(props: ProgressSpinnerProps) { // eslint-disable-line deprecation/deprecation\r\n const {\r\n value = 0,\r\n indeterminate = false,\r\n success = false,\r\n error = false,\r\n style = {},\r\n size,\r\n children,\r\n } = props;\r\n\r\n let outerClassName = classnames(\"uicore-progress-spinner\");\r\n const outerStyle = { ...style };\r\n const fillStyle: React.CSSProperties = {};\r\n // Ensure value is bounded 0 - 100;\r\n const dashOffset = 100 - Math.min(Math.max(value, 0), 100);\r\n let content: React.ReactNode;\r\n\r\n if (error) {\r\n outerClassName = classnames(outerClassName, \"error\");\r\n content = <Icon iconSpec=\"icon-close-2\" />;\r\n } else if (success) {\r\n outerClassName = classnames(outerClassName, \"success\");\r\n content = (\r\n <Icon iconSpec=\"icon-checkmark\" />\r\n );\r\n } else if (indeterminate) {\r\n outerClassName = classnames(outerClassName, \"indeterminate\");\r\n content = children;\r\n } else {\r\n outerClassName = classnames(outerClassName, \"determinate\");\r\n fillStyle.strokeDashoffset = dashOffset;\r\n content = children;\r\n }\r\n\r\n setDefaultDimensions(outerStyle, size);\r\n\r\n return (\r\n <div className={outerClassName} style={outerStyle}>\r\n <svg className=\"spinner\" viewBox=\"0 0 40 40\">\r\n <circle className=\"shape\" cx=\"20\" cy=\"20\" r=\"15.91549\" />\r\n <circle\r\n className=\"fill\"\r\n cx=\"20\"\r\n cy=\"20\"\r\n r=\"15.91549\"\r\n style={fillStyle}\r\n />\r\n </svg>\r\n {content && <span className=\"uicore-progress-spinner-content\">{content}</span>}\r\n </div>\r\n );\r\n}\r\n\r\nconst setDefaultDimensions = (style: React.CSSProperties, inSize?: SpinnerSize) => { // eslint-disable-line deprecation/deprecation\r\n let size = 40;\r\n\r\n if (inSize !== undefined) {\r\n switch (inSize) {\r\n case SpinnerSize.Small: // eslint-disable-line deprecation/deprecation\r\n size = 16;\r\n break;\r\n case SpinnerSize.Medium: // eslint-disable-line deprecation/deprecation\r\n size = 32;\r\n break;\r\n case SpinnerSize.Large: // eslint-disable-line deprecation/deprecation\r\n size = 64;\r\n break;\r\n case SpinnerSize.XLarge: // eslint-disable-line deprecation/deprecation\r\n size = 96;\r\n break;\r\n }\r\n }\r\n style.width = style.width ? style.width : size;\r\n style.height = style.height ? style.height : size;\r\n};\r\n"]}
@@ -6,13 +6,13 @@ import { LabeledComponentProps } from "../inputs/LabeledComponentProps";
6
6
  import { CommonProps } from "../utils/Props";
7
7
  /** Properties for [[Radio]] component
8
8
  * @public
9
- * @deprecated Use RadioProps in itwinui-react instead
9
+ * @deprecated in 3.0. Use RadioProps in itwinui-react instead
10
10
  */
11
11
  export interface RadioProps extends React.InputHTMLAttributes<HTMLInputElement>, CommonProps, LabeledComponentProps {
12
12
  }
13
13
  /** Basic radio input component is a wrapper for the `<input type="radio">` HTML element.
14
14
  * @public
15
- * @deprecated Use Radio in itwinui-react instead
15
+ * @deprecated in 3.0. Use Radio in itwinui-react instead
16
16
  */
17
17
  export declare class Radio extends React.PureComponent<RadioProps> {
18
18
  render(): JSX.Element;
@@ -12,7 +12,7 @@ const classnames_1 = require("classnames");
12
12
  const React = require("react");
13
13
  /** Basic radio input component is a wrapper for the `<input type="radio">` HTML element.
14
14
  * @public
15
- * @deprecated Use Radio in itwinui-react instead
15
+ * @deprecated in 3.0. Use Radio in itwinui-react instead
16
16
  */
17
17
  class Radio extends React.PureComponent {
18
18
  render() {
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.js","sourceRoot":"","sources":["../../../../src/core-react/radio/Radio.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAU/B;;;GAGG;AACH,MAAa,KAAM,SAAQ,KAAK,CAAC,aAAyB;IACxC,MAAM;QACpB,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,wDAAwD;QAEtK,OAAO,CACL,+BAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,IAAA,oBAAU,EACxC,qBAAqB,EACrB,QAAQ,IAAI,eAAe,EAC3B,MAAM,EACN,SAAS,CACV;YACE,KAAK;gBACJ,kCAAO,KAAK,CAAQ;YAEtB,+BAAO,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,KAAM,KAAK,GAAI;YACrG,8BAAM,SAAS,EAAC,sBAAsB,GAAQ,CACxC,CACT,CAAC;IACJ,CAAC;CACF;AAnBD,sBAmBC","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 Radio\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { LabeledComponentProps } from \"../inputs/LabeledComponentProps\";\r\nimport { CommonProps } from \"../utils/Props\";\r\n\r\n/** Properties for [[Radio]] component\r\n * @public\r\n * @deprecated Use RadioProps in itwinui-react instead\r\n */\r\nexport interface RadioProps extends React.InputHTMLAttributes<HTMLInputElement>, CommonProps, LabeledComponentProps { }\r\n\r\n/** Basic radio input component is a wrapper for the `<input type=\"radio\">` HTML element.\r\n * @public\r\n * @deprecated Use Radio in itwinui-react instead\r\n */\r\nexport class Radio extends React.PureComponent<RadioProps> { // eslint-disable-line deprecation/deprecation\r\n public override render(): JSX.Element {\r\n const { label, disabled, status, className, style, inputStyle, inputClassName, type, ...props } = this.props; // eslint-disable-line @typescript-eslint/no-unused-vars\r\n\r\n return (\r\n <label style={style} className={classnames(\r\n \"uicore-inputs-radio\",\r\n disabled && \"core-disabled\",\r\n status,\r\n className,\r\n )}>\r\n {label &&\r\n <span>{label}</span>\r\n }\r\n <input type={\"radio\"} className={inputClassName} style={inputStyle} disabled={disabled} {...props} />\r\n <span className=\"core-radio-checkmark\"></span>\r\n </label>\r\n );\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"Radio.js","sourceRoot":"","sources":["../../../../src/core-react/radio/Radio.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAU/B;;;GAGG;AACH,MAAa,KAAM,SAAQ,KAAK,CAAC,aAAyB;IACxC,MAAM;QACpB,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,wDAAwD;QAEtK,OAAO,CACL,+BAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,IAAA,oBAAU,EACxC,qBAAqB,EACrB,QAAQ,IAAI,eAAe,EAC3B,MAAM,EACN,SAAS,CACV;YACE,KAAK;gBACJ,kCAAO,KAAK,CAAQ;YAEtB,+BAAO,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,KAAM,KAAK,GAAI;YACrG,8BAAM,SAAS,EAAC,sBAAsB,GAAQ,CACxC,CACT,CAAC;IACJ,CAAC;CACF;AAnBD,sBAmBC","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 Radio\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { LabeledComponentProps } from \"../inputs/LabeledComponentProps\";\r\nimport { CommonProps } from \"../utils/Props\";\r\n\r\n/** Properties for [[Radio]] component\r\n * @public\r\n * @deprecated in 3.0. Use RadioProps in itwinui-react instead\r\n */\r\nexport interface RadioProps extends React.InputHTMLAttributes<HTMLInputElement>, CommonProps, LabeledComponentProps { }\r\n\r\n/** Basic radio input component is a wrapper for the `<input type=\"radio\">` HTML element.\r\n * @public\r\n * @deprecated in 3.0. Use Radio in itwinui-react instead\r\n */\r\nexport class Radio extends React.PureComponent<RadioProps> { // eslint-disable-line deprecation/deprecation\r\n public override render(): JSX.Element {\r\n const { label, disabled, status, className, style, inputStyle, inputClassName, type, ...props } = this.props; // eslint-disable-line @typescript-eslint/no-unused-vars\r\n\r\n return (\r\n <label style={style} className={classnames(\r\n \"uicore-inputs-radio\",\r\n disabled && \"core-disabled\",\r\n status,\r\n className,\r\n )}>\r\n {label &&\r\n <span>{label}</span>\r\n }\r\n <input type={\"radio\"} className={inputClassName} style={inputStyle} disabled={disabled} {...props} />\r\n <span className=\"core-radio-checkmark\"></span>\r\n </label>\r\n );\r\n }\r\n}\r\n"]}
@@ -6,13 +6,13 @@ import { LabeledComponentProps, MessagedComponentProps } from "../inputs/Labeled
6
6
  import { SelectProps } from "./Select";
7
7
  /** Properties for [[LabeledSelect]] components
8
8
  * @public
9
- * @deprecated Use LabeledSelectProps in itwinui-react instead
9
+ * @deprecated in 3.0. Use LabeledSelectProps in itwinui-react instead
10
10
  */
11
11
  export interface LabeledSelectProps extends SelectProps, LabeledComponentProps, MessagedComponentProps {
12
12
  }
13
13
  /** Dropdown wrapper that allows for additional styling and labelling
14
14
  * @public
15
- * @deprecated Use LabeledSelect in itwinui-react instead
15
+ * @deprecated in 3.0. Use LabeledSelect in itwinui-react instead
16
16
  */
17
17
  export declare class LabeledSelect extends React.PureComponent<LabeledSelectProps> {
18
18
  render(): JSX.Element;
@@ -14,7 +14,7 @@ const React = require("react");
14
14
  const Select_1 = require("./Select");
15
15
  /** Dropdown wrapper that allows for additional styling and labelling
16
16
  * @public
17
- * @deprecated Use LabeledSelect in itwinui-react instead
17
+ * @deprecated in 3.0. Use LabeledSelect in itwinui-react instead
18
18
  */
19
19
  class LabeledSelect extends React.PureComponent {
20
20
  render() {
@@ -1 +1 @@
1
- {"version":3,"file":"LabeledSelect.js","sourceRoot":"","sources":["../../../../src/core-react/select/LabeledSelect.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,4CAA4C;AAE5C,2CAAoC;AACpC,+BAA+B;AAE/B,qCAA+C;AAQ/C;;;GAGG;AACH,MAAa,aAAc,SAAQ,KAAK,CAAC,aAAiC;IACxD,MAAM;QACpB,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EACrC,cAAc,EAAE,UAAU,EAC1B,cAAc,EAAE,UAAU,EAC1B,OAAO,EAAE,gBAAgB,EAAE,YAAY,EACvC,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAE1B,OAAO,CACL,+BAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,IAAA,oBAAU,EACxC,8BAA8B,EAC9B,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,iBAAiB,EACxC,MAAM,EACN,SAAS,CACV;YACE,KAAK;gBACJ,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,cAAc,EAAE,cAAc,CAAC,EAAE,KAAK,EAAE,UAAU;;oBAAI,KAAK;wBAAQ;YAEhG,oBAAC,eAAM,IAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,KAAK,EAAE,UAAU,KAAM,KAAK,GAAI;YACjG,OAAO;gBACN,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,KAAK,EAAE,YAAY,IAAG,OAAO,CAAO,CAEhG,CACT,CAAC;IACJ,CAAC;CACF;AAzBD,sCAyBC","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 Select\r\n */\r\n\r\n/* eslint-disable deprecation/deprecation */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { LabeledComponentProps, MessagedComponentProps } from \"../inputs/LabeledComponentProps\";\r\nimport { Select, SelectProps } from \"./Select\";\r\n\r\n/** Properties for [[LabeledSelect]] components\r\n * @public\r\n * @deprecated Use LabeledSelectProps in itwinui-react instead\r\n */\r\nexport interface LabeledSelectProps extends SelectProps, LabeledComponentProps, MessagedComponentProps { }\r\n\r\n/** Dropdown wrapper that allows for additional styling and labelling\r\n * @public\r\n * @deprecated Use LabeledSelect in itwinui-react instead\r\n */\r\nexport class LabeledSelect extends React.PureComponent<LabeledSelectProps> {\r\n public override render(): JSX.Element {\r\n const { label, status, className, style,\r\n inputClassName, inputStyle,\r\n labelClassName, labelStyle,\r\n message, messageClassName, messageStyle,\r\n ...props } = this.props;\r\n\r\n return (\r\n <label style={style} className={classnames(\r\n \"uicore-inputs-labeled-select\",\r\n this.props.disabled && \"uicore-disabled\",\r\n status,\r\n className,\r\n )}>\r\n {label &&\r\n <div className={classnames(\"uicore-label\", labelClassName)} style={labelStyle}> {label} </div>\r\n }\r\n <Select disabled={this.props.disabled} className={inputClassName} style={inputStyle} {...props} />\r\n {message &&\r\n <div className={classnames(\"uicore-message\", messageClassName)} style={messageStyle}>{message}</div>\r\n }\r\n </label>\r\n );\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"LabeledSelect.js","sourceRoot":"","sources":["../../../../src/core-react/select/LabeledSelect.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,4CAA4C;AAE5C,2CAAoC;AACpC,+BAA+B;AAE/B,qCAA+C;AAQ/C;;;GAGG;AACH,MAAa,aAAc,SAAQ,KAAK,CAAC,aAAiC;IACxD,MAAM;QACpB,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EACrC,cAAc,EAAE,UAAU,EAC1B,cAAc,EAAE,UAAU,EAC1B,OAAO,EAAE,gBAAgB,EAAE,YAAY,EACvC,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAE1B,OAAO,CACL,+BAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,IAAA,oBAAU,EACxC,8BAA8B,EAC9B,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,iBAAiB,EACxC,MAAM,EACN,SAAS,CACV;YACE,KAAK;gBACJ,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,cAAc,EAAE,cAAc,CAAC,EAAE,KAAK,EAAE,UAAU;;oBAAI,KAAK;wBAAQ;YAEhG,oBAAC,eAAM,IAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,KAAK,EAAE,UAAU,KAAM,KAAK,GAAI;YACjG,OAAO;gBACN,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,KAAK,EAAE,YAAY,IAAG,OAAO,CAAO,CAEhG,CACT,CAAC;IACJ,CAAC;CACF;AAzBD,sCAyBC","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 Select\r\n */\r\n\r\n/* eslint-disable deprecation/deprecation */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { LabeledComponentProps, MessagedComponentProps } from \"../inputs/LabeledComponentProps\";\r\nimport { Select, SelectProps } from \"./Select\";\r\n\r\n/** Properties for [[LabeledSelect]] components\r\n * @public\r\n * @deprecated in 3.0. Use LabeledSelectProps in itwinui-react instead\r\n */\r\nexport interface LabeledSelectProps extends SelectProps, LabeledComponentProps, MessagedComponentProps { }\r\n\r\n/** Dropdown wrapper that allows for additional styling and labelling\r\n * @public\r\n * @deprecated in 3.0. Use LabeledSelect in itwinui-react instead\r\n */\r\nexport class LabeledSelect extends React.PureComponent<LabeledSelectProps> {\r\n public override render(): JSX.Element {\r\n const { label, status, className, style,\r\n inputClassName, inputStyle,\r\n labelClassName, labelStyle,\r\n message, messageClassName, messageStyle,\r\n ...props } = this.props;\r\n\r\n return (\r\n <label style={style} className={classnames(\r\n \"uicore-inputs-labeled-select\",\r\n this.props.disabled && \"uicore-disabled\",\r\n status,\r\n className,\r\n )}>\r\n {label &&\r\n <div className={classnames(\"uicore-label\", labelClassName)} style={labelStyle}> {label} </div>\r\n }\r\n <Select disabled={this.props.disabled} className={inputClassName} style={inputStyle} {...props} />\r\n {message &&\r\n <div className={classnames(\"uicore-message\", messageClassName)} style={messageStyle}>{message}</div>\r\n }\r\n </label>\r\n );\r\n }\r\n}\r\n"]}
@@ -5,12 +5,12 @@
5
5
  import { LabeledComponentProps, MessagedComponentProps } from "../inputs/LabeledComponentProps";
6
6
  import { ThemedSelectProps } from "./ThemedSelect";
7
7
  /** Properties for [[LabeledThemedSelect]] components
8
- * @beta @deprecated
8
+ * @beta @deprecated in 3.0.
9
9
  */
10
10
  export interface LabeledThemedSelectProps extends ThemedSelectProps, LabeledComponentProps, MessagedComponentProps {
11
11
  }
12
12
  /** Dropdown wrapper that allows for additional styling and labelling
13
- * @beta @deprecated
13
+ * @beta @deprecated in 3.0.
14
14
  */
15
15
  export declare function LabeledThemedSelect(props: LabeledThemedSelectProps): JSX.Element;
16
16
  //# sourceMappingURL=LabeledThemedSelect.d.ts.map
@@ -13,7 +13,7 @@ const classnames_1 = require("classnames");
13
13
  const React = require("react");
14
14
  const ThemedSelect_1 = require("./ThemedSelect");
15
15
  /** Dropdown wrapper that allows for additional styling and labelling
16
- * @beta @deprecated
16
+ * @beta @deprecated in 3.0.
17
17
  */
18
18
  function LabeledThemedSelect(props) {
19
19
  const { label, status, className, style, inputClassName, inputStyle, labelClassName, labelStyle, message, messageClassName, messageStyle, ...otherProps } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"LabeledThemedSelect.js","sourceRoot":"","sources":["../../../../src/core-react/select/LabeledThemedSelect.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F,4CAA4C;AAC5C;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAE/B,iDAAiE;AAOjE;;GAEG;AACH,SAAgB,mBAAmB,CAAC,KAA+B;IACjE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EACrC,cAAc,EAAE,UAAU,EAC1B,cAAc,EAAE,UAAU,EAC1B,OAAO,EAAE,gBAAgB,EAAE,YAAY,EACvC,GAAG,UAAU,EAAE,GAAG,KAAY,CAAC;IAEjC,OAAO,CACL,+BAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,IAAA,oBAAU,EACxC,qCAAqC,EACrC,KAAK,CAAC,UAAU,IAAI,iBAAiB,EACrC,MAAM,EACN,SAAS,CACV;QACE,KAAK;YACJ,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,cAAc,EAAE,cAAc,CAAC,EAAE,KAAK,EAAE,UAAU;;gBAAI,KAAK;oBAAQ;QAEhG,oBAAC,2BAAY,IAAC,UAAU,EAAE,KAAK,CAAC,UAAU,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,EAAE,UAAU,KAAM,UAAU,GAAI;QAC5G,OAAO;YACN,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,KAAK,EAAE,YAAY,IAAG,OAAO,CAAO,CAEhG,CACT,CAAC;AACJ,CAAC;AAvBD,kDAuBC","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 Select\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { LabeledComponentProps, MessagedComponentProps } from \"../inputs/LabeledComponentProps\";\r\nimport { ThemedSelect, ThemedSelectProps } from \"./ThemedSelect\";\r\n\r\n/** Properties for [[LabeledThemedSelect]] components\r\n * @beta @deprecated\r\n */\r\nexport interface LabeledThemedSelectProps extends ThemedSelectProps, LabeledComponentProps, MessagedComponentProps { }\r\n\r\n/** Dropdown wrapper that allows for additional styling and labelling\r\n * @beta @deprecated\r\n */\r\nexport function LabeledThemedSelect(props: LabeledThemedSelectProps) {\r\n const { label, status, className, style,\r\n inputClassName, inputStyle,\r\n labelClassName, labelStyle,\r\n message, messageClassName, messageStyle,\r\n ...otherProps } = props as any;\r\n\r\n return (\r\n <label style={style} className={classnames(\r\n \"uicore-inputs-labeled-themed-select\",\r\n props.isDisabled && \"uicore-disabled\",\r\n status,\r\n className,\r\n )}>\r\n {label &&\r\n <div className={classnames(\"uicore-label\", labelClassName)} style={labelStyle}> {label} </div>\r\n }\r\n <ThemedSelect isDisabled={props.isDisabled} className={inputClassName} styles={inputStyle} {...otherProps} />\r\n {message &&\r\n <div className={classnames(\"uicore-message\", messageClassName)} style={messageStyle}>{message}</div>\r\n }\r\n </label>\r\n );\r\n}\r\n"]}
1
+ {"version":3,"file":"LabeledThemedSelect.js","sourceRoot":"","sources":["../../../../src/core-react/select/LabeledThemedSelect.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F,4CAA4C;AAC5C;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAE/B,iDAAiE;AAOjE;;GAEG;AACH,SAAgB,mBAAmB,CAAC,KAA+B;IACjE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EACrC,cAAc,EAAE,UAAU,EAC1B,cAAc,EAAE,UAAU,EAC1B,OAAO,EAAE,gBAAgB,EAAE,YAAY,EACvC,GAAG,UAAU,EAAE,GAAG,KAAY,CAAC;IAEjC,OAAO,CACL,+BAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,IAAA,oBAAU,EACxC,qCAAqC,EACrC,KAAK,CAAC,UAAU,IAAI,iBAAiB,EACrC,MAAM,EACN,SAAS,CACV;QACE,KAAK;YACJ,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,cAAc,EAAE,cAAc,CAAC,EAAE,KAAK,EAAE,UAAU;;gBAAI,KAAK;oBAAQ;QAEhG,oBAAC,2BAAY,IAAC,UAAU,EAAE,KAAK,CAAC,UAAU,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,EAAE,UAAU,KAAM,UAAU,GAAI;QAC5G,OAAO;YACN,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,KAAK,EAAE,YAAY,IAAG,OAAO,CAAO,CAEhG,CACT,CAAC;AACJ,CAAC;AAvBD,kDAuBC","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 Select\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { LabeledComponentProps, MessagedComponentProps } from \"../inputs/LabeledComponentProps\";\r\nimport { ThemedSelect, ThemedSelectProps } from \"./ThemedSelect\";\r\n\r\n/** Properties for [[LabeledThemedSelect]] components\r\n * @beta @deprecated in 3.0.\r\n */\r\nexport interface LabeledThemedSelectProps extends ThemedSelectProps, LabeledComponentProps, MessagedComponentProps { }\r\n\r\n/** Dropdown wrapper that allows for additional styling and labelling\r\n * @beta @deprecated in 3.0.\r\n */\r\nexport function LabeledThemedSelect(props: LabeledThemedSelectProps) {\r\n const { label, status, className, style,\r\n inputClassName, inputStyle,\r\n labelClassName, labelStyle,\r\n message, messageClassName, messageStyle,\r\n ...otherProps } = props as any;\r\n\r\n return (\r\n <label style={style} className={classnames(\r\n \"uicore-inputs-labeled-themed-select\",\r\n props.isDisabled && \"uicore-disabled\",\r\n status,\r\n className,\r\n )}>\r\n {label &&\r\n <div className={classnames(\"uicore-label\", labelClassName)} style={labelStyle}> {label} </div>\r\n }\r\n <ThemedSelect isDisabled={props.isDisabled} className={inputClassName} styles={inputStyle} {...otherProps} />\r\n {message &&\r\n <div className={classnames(\"uicore-message\", messageClassName)} style={messageStyle}>{message}</div>\r\n }\r\n </label>\r\n );\r\n}\r\n"]}
@@ -5,7 +5,7 @@ import * as React from "react";
5
5
  import { CommonProps } from "../utils/Props";
6
6
  /** Properties for a Select option
7
7
  * @public
8
- * @deprecated Use SelectOption in itwinui-react instead
8
+ * @deprecated in 3.0. Use SelectOption in itwinui-react instead
9
9
  */
10
10
  export interface SelectOption {
11
11
  /** Label of the option. If `value` is not set when using SelectOption[], also serves as the value. */
@@ -17,7 +17,7 @@ export interface SelectOption {
17
17
  }
18
18
  /** Properties for [[Select]] component
19
19
  * @public
20
- * @deprecated Use SelectProps in itwinui-react instead
20
+ * @deprecated in 3.0. Use SelectProps in itwinui-react instead
21
21
  */
22
22
  export interface SelectProps extends React.SelectHTMLAttributes<HTMLSelectElement>, CommonProps {
23
23
  /** Options for Select dropdown.
@@ -47,7 +47,7 @@ export interface SelectProps extends React.SelectHTMLAttributes<HTMLSelectElemen
47
47
  }
48
48
  /** Basic select component is a wrapper for the `<select>` HTML element.
49
49
  * @public
50
- * @deprecated Use Select in itwinui-react instead
50
+ * @deprecated in 3.0. Use Select in itwinui-react instead
51
51
  */
52
52
  export declare const Select: (props: SelectProps) => JSX.Element | null;
53
53
  //# sourceMappingURL=Select.d.ts.map
@@ -54,7 +54,7 @@ const ForwardRefSelect = React.forwardRef(function ForwardRefSelect(props, ref)
54
54
  });
55
55
  /** Basic select component is a wrapper for the `<select>` HTML element.
56
56
  * @public
57
- * @deprecated Use Select in itwinui-react instead
57
+ * @deprecated in 3.0. Use Select in itwinui-react instead
58
58
  */
59
59
  exports.Select = ForwardRefSelect;
60
60
  //# sourceMappingURL=Select.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../../src/core-react/select/Select.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,4CAA4C;AAE5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A,oBAAU,EAAC,sBAAsB,EAAE,SAAS,CAAC,EACxD,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS;QAClE,eAAe;YACd,gCAAQ,SAAS,EAAC,aAAa,EAAC,QAAQ,QAAC,GAAG,EAAC,EAAE,EAAC,KAAK,EAAE,gBAAgB,CAAC,OAAO,IAAG,KAAK,CAAC,WAAW,CAAU;QAE9G,OAAO,YAAY,KAAK,CAAC,CAAC;YACzB,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,CAC7B,gCAAQ,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,cAAc,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,iBAAiB,CAAC,MAAM,CAAC,IACnF,cAAc,CAAC,MAAM,CAAC,CAChB,CACV,CAAC;YACF,CAAC;gBACD,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAChC,gCAAQ,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,iBAAiB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,IACpE,cAAc,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CACtB,CACV,CAAC,CAEG,CACV,CAAC;AACJ,CAAC,CACF,CAAC;AAEF;;;GAGG;AACU,QAAA,MAAM,GAA+C,gBAAgB,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 Select\r\n */\r\n\r\n/* eslint-disable deprecation/deprecation */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { CommonProps } from \"../utils/Props\";\r\nimport { useRefs } from \"../utils/hooks/useRefs\";\r\n\r\n/** Properties for a Select option\r\n * @public\r\n * @deprecated Use SelectOption in itwinui-react instead\r\n */\r\nexport interface SelectOption {\r\n /** Label of the option. If `value` is not set when using SelectOption[], also serves as the value. */\r\n label: string;\r\n /** Value of the option when using SelectOption[]. */\r\n value?: string | number | readonly string[];\r\n /** Indicates whether the option is disabled. */\r\n disabled?: boolean;\r\n}\r\n\r\n/** Properties for [[Select]] component\r\n * @public\r\n * @deprecated Use SelectProps in itwinui-react instead\r\n */\r\nexport interface SelectProps extends React.SelectHTMLAttributes<HTMLSelectElement>, CommonProps {\r\n /** Options for Select dropdown.\r\n * @example\r\n * // Example of {[key: string]: (string | SelectOption)} usage:\r\n * <Select options={{\r\n * option1: \"Option 1\",\r\n * option2: \"Option 2\",\r\n * option3: {label: \"Option 3\", disabled: true},\r\n * }} />\r\n *\r\n * // Example of (string | SelectOption)[] usage:\r\n * <Select options={[\r\n * \"Option 1\",\r\n * \"Option 2\",\r\n * {label: \"Option 3\", value: \"option3\", disabled: true},\r\n * ]} />\r\n * }\r\n */\r\n options: (string | SelectOption)[] | { [key: string]: (string | SelectOption) };\r\n /** Indicates whether to set focus to the select element */\r\n setFocus?: boolean;\r\n /** Provides ability to return reference to HTMLSelectElement */\r\n ref?: React.Ref<HTMLSelectElement>;\r\n}\r\n\r\nfunction getCurrentDefaultValue(defaultValue: string | number | readonly string[] | undefined, placeholderValue: string | undefined) {\r\n if (defaultValue)\r\n return defaultValue;\r\n\r\n return placeholderValue;\r\n}\r\n\r\nfunction getOptionLabel(option: string | SelectOption): string {\r\n return (typeof option === \"string\") ? option : option.label;\r\n}\r\n\r\nfunction getOptionValue(option: string | SelectOption): string | number | readonly string[] {\r\n return (typeof option === \"string\") ? option : (undefined !== option.value ? option.value : option.label);\r\n}\r\n\r\nfunction getOptionDisabled(option: string | SelectOption): boolean | undefined {\r\n return (typeof option === \"string\") ? undefined : option.disabled;\r\n}\r\n\r\nconst ForwardRefSelect = React.forwardRef<HTMLSelectElement, SelectProps>(\r\n function ForwardRefSelect(props, ref) {\r\n const selectElement = React.useRef<HTMLSelectElement>(null);\r\n const placeholderValue = React.useRef(\"placeholder\");\r\n const isInitialMount = React.useRef(true);\r\n const refs = useRefs(selectElement, ref); // combine ref needed for target with the forwardRef needed by the Parent when parent is a Type Editor.\r\n\r\n React.useEffect(() => {\r\n if (props.setFocus && selectElement.current)\r\n selectElement.current.focus();\r\n }, [props]);\r\n\r\n React.useEffect(() => {\r\n isInitialMount.current = false;\r\n }, []);\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\r\n const { value: selectValue, required, options, setFocus, className, defaultValue, ...otherProps } = props; // pluck off values that will be explicitly set below\r\n const showPlaceholder = React.useMemo(() => props.placeholder && (undefined === selectValue || selectValue === placeholderValue.current) && !defaultValue, [defaultValue, selectValue, props.placeholder]);\r\n const isRequired = React.useMemo(() => showPlaceholder || required, [required, showPlaceholder]);\r\n const currentDefaultValue = React.useMemo(() => getCurrentDefaultValue(defaultValue, showPlaceholder ? placeholderValue.current : undefined), [defaultValue, showPlaceholder]);\r\n const value = (!isInitialMount.current && undefined === selectValue) ? currentDefaultValue : selectValue;\r\n return (\r\n <select ref={refs} {...otherProps}\r\n required={isRequired}\r\n className={classnames(\"uicore-inputs-select\", className)}\r\n value={value}\r\n defaultValue={value === undefined ? currentDefaultValue : undefined}>\r\n {showPlaceholder &&\r\n <option className=\"placeholder\" disabled key=\"\" value={placeholderValue.current}>{props.placeholder}</option>\r\n }\r\n {options instanceof Array ?\r\n options.map((option, index) => (\r\n <option key={index} value={getOptionValue(option)} disabled={getOptionDisabled(option)} >\r\n {getOptionLabel(option)}\r\n </option>\r\n ))\r\n :\r\n Object.keys(options).map((key) => (\r\n <option key={key} value={key} disabled={getOptionDisabled(options[key])} >\r\n {getOptionLabel(options[key])}\r\n </option>\r\n ))\r\n }\r\n </select>\r\n );\r\n }\r\n);\r\n\r\n/** Basic select component is a wrapper for the `<select>` HTML element.\r\n * @public\r\n * @deprecated Use Select in itwinui-react instead\r\n */\r\nexport const Select: (props: SelectProps) => JSX.Element | null = ForwardRefSelect;\r\n"]}
1
+ {"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../../src/core-react/select/Select.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,4CAA4C;AAE5C,2CAAoC;AACpC,+BAA+B;AAE/B,oDAAiD;AA4CjD,SAAS,sBAAsB,CAAC,YAA6D,EAAE,gBAAoC;IACjI,IAAI,YAAY;QACd,OAAO,YAAY,CAAC;IAEtB,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAED,SAAS,cAAc,CAAC,MAA6B;IACnD,OAAO,CAAC,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;AAC9D,CAAC;AAED,SAAS,cAAc,CAAC,MAA6B;IACnD,OAAO,CAAC,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,KAAK,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC5G,CAAC;AAED,SAAS,iBAAiB,CAAC,MAA6B;IACtD,OAAO,CAAC,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;AACpE,CAAC;AAED,MAAM,gBAAgB,GAAG,KAAK,CAAC,UAAU,CACvC,SAAS,gBAAgB,CAAC,KAAK,EAAE,GAAG;IAClC,MAAM,aAAa,GAAG,KAAK,CAAC,MAAM,CAAoB,IAAI,CAAC,CAAC;IAC5D,MAAM,gBAAgB,GAAG,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IACrD,MAAM,cAAc,GAAG,KA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right (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 Select\r\n */\r\n\r\n/* eslint-disable deprecation/deprecation */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { CommonProps } from \"../utils/Props\";\r\nimport { useRefs } from \"../utils/hooks/useRefs\";\r\n\r\n/** Properties for a Select option\r\n * @public\r\n * @deprecated in 3.0. Use SelectOption in itwinui-react instead\r\n */\r\nexport interface SelectOption {\r\n /** Label of the option. If `value` is not set when using SelectOption[], also serves as the value. */\r\n label: string;\r\n /** Value of the option when using SelectOption[]. */\r\n value?: string | number | readonly string[];\r\n /** Indicates whether the option is disabled. */\r\n disabled?: boolean;\r\n}\r\n\r\n/** Properties for [[Select]] component\r\n * @public\r\n * @deprecated in 3.0. Use SelectProps in itwinui-react instead\r\n */\r\nexport interface SelectProps extends React.SelectHTMLAttributes<HTMLSelectElement>, CommonProps {\r\n /** Options for Select dropdown.\r\n * @example\r\n * // Example of {[key: string]: (string | SelectOption)} usage:\r\n * <Select options={{\r\n * option1: \"Option 1\",\r\n * option2: \"Option 2\",\r\n * option3: {label: \"Option 3\", disabled: true},\r\n * }} />\r\n *\r\n * // Example of (string | SelectOption)[] usage:\r\n * <Select options={[\r\n * \"Option 1\",\r\n * \"Option 2\",\r\n * {label: \"Option 3\", value: \"option3\", disabled: true},\r\n * ]} />\r\n * }\r\n */\r\n options: (string | SelectOption)[] | { [key: string]: (string | SelectOption) };\r\n /** Indicates whether to set focus to the select element */\r\n setFocus?: boolean;\r\n /** Provides ability to return reference to HTMLSelectElement */\r\n ref?: React.Ref<HTMLSelectElement>;\r\n}\r\n\r\nfunction getCurrentDefaultValue(defaultValue: string | number | readonly string[] | undefined, placeholderValue: string | undefined) {\r\n if (defaultValue)\r\n return defaultValue;\r\n\r\n return placeholderValue;\r\n}\r\n\r\nfunction getOptionLabel(option: string | SelectOption): string {\r\n return (typeof option === \"string\") ? option : option.label;\r\n}\r\n\r\nfunction getOptionValue(option: string | SelectOption): string | number | readonly string[] {\r\n return (typeof option === \"string\") ? option : (undefined !== option.value ? option.value : option.label);\r\n}\r\n\r\nfunction getOptionDisabled(option: string | SelectOption): boolean | undefined {\r\n return (typeof option === \"string\") ? undefined : option.disabled;\r\n}\r\n\r\nconst ForwardRefSelect = React.forwardRef<HTMLSelectElement, SelectProps>(\r\n function ForwardRefSelect(props, ref) {\r\n const selectElement = React.useRef<HTMLSelectElement>(null);\r\n const placeholderValue = React.useRef(\"placeholder\");\r\n const isInitialMount = React.useRef(true);\r\n const refs = useRefs(selectElement, ref); // combine ref needed for target with the forwardRef needed by the Parent when parent is a Type Editor.\r\n\r\n React.useEffect(() => {\r\n if (props.setFocus && selectElement.current)\r\n selectElement.current.focus();\r\n }, [props]);\r\n\r\n React.useEffect(() => {\r\n isInitialMount.current = false;\r\n }, []);\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\r\n const { value: selectValue, required, options, setFocus, className, defaultValue, ...otherProps } = props; // pluck off values that will be explicitly set below\r\n const showPlaceholder = React.useMemo(() => props.placeholder && (undefined === selectValue || selectValue === placeholderValue.current) && !defaultValue, [defaultValue, selectValue, props.placeholder]);\r\n const isRequired = React.useMemo(() => showPlaceholder || required, [required, showPlaceholder]);\r\n const currentDefaultValue = React.useMemo(() => getCurrentDefaultValue(defaultValue, showPlaceholder ? placeholderValue.current : undefined), [defaultValue, showPlaceholder]);\r\n const value = (!isInitialMount.current && undefined === selectValue) ? currentDefaultValue : selectValue;\r\n return (\r\n <select ref={refs} {...otherProps}\r\n required={isRequired}\r\n className={classnames(\"uicore-inputs-select\", className)}\r\n value={value}\r\n defaultValue={value === undefined ? currentDefaultValue : undefined}>\r\n {showPlaceholder &&\r\n <option className=\"placeholder\" disabled key=\"\" value={placeholderValue.current}>{props.placeholder}</option>\r\n }\r\n {options instanceof Array ?\r\n options.map((option, index) => (\r\n <option key={index} value={getOptionValue(option)} disabled={getOptionDisabled(option)} >\r\n {getOptionLabel(option)}\r\n </option>\r\n ))\r\n :\r\n Object.keys(options).map((key) => (\r\n <option key={key} value={key} disabled={getOptionDisabled(options[key])} >\r\n {getOptionLabel(options[key])}\r\n </option>\r\n ))\r\n }\r\n </select>\r\n );\r\n }\r\n);\r\n\r\n/** Basic select component is a wrapper for the `<select>` HTML element.\r\n * @public\r\n * @deprecated in 3.0. Use Select in itwinui-react instead\r\n */\r\nexport const Select: (props: SelectProps) => JSX.Element | null = ForwardRefSelect;\r\n"]}
@@ -15,7 +15,7 @@ declare type FormatOptionLabelMeta = {
15
15
  };
16
16
  /** OptionType for react-select 2.0 and above. which only accepts pairs of value & label strings
17
17
  * @beta
18
- * @deprecated use Select from @itwin/itwinui-react
18
+ * @deprecated in 3.0. Use Select from @itwin/itwinui-react
19
19
  */
20
20
  export interface OptionType {
21
21
  value: any;
@@ -23,12 +23,12 @@ export interface OptionType {
23
23
  }
24
24
  /** OptionsType to match label/value pair OptionType
25
25
  * @beta
26
- * @deprecated use Select from @itwin/itwinui-react
26
+ * @deprecated in 3.0. Use Select from @itwin/itwinui-react
27
27
  */
28
28
  export declare type OptionsType = Array<OptionType>;
29
29
  /** ThemedSelectProps to control specific features of ThemedSelect
30
30
  * @beta
31
- * @deprecated use Select from @itwin/itwinui-react
31
+ * @deprecated in 3.0. Use Select from @itwin/itwinui-react
32
32
  */
33
33
  export declare type ThemedSelectProps = {
34
34
  "aria-label"?: string;
@@ -97,7 +97,7 @@ export declare type ThemedSelectProps = {
97
97
  };
98
98
  /** ThemedSelect is a wrapper for react-select with iTwin.js UI theming applied
99
99
  * @beta
100
- * @deprecated use Select from @itwin/itwinui-react
100
+ * @deprecated in 3.0. Use Select from @itwin/itwinui-react
101
101
  */
102
102
  export declare function ThemedSelect(props: ThemedSelectProps): JSX.Element;
103
103
  export {};