@hitachivantara/uikit-react-core 3.66.1-next.4 → 3.67.0

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 (295) hide show
  1. package/dist/Barchart/Barchart.d.ts +14 -0
  2. package/dist/Barchart/Barchart.js +239 -0
  3. package/dist/Barchart/Barchart.js.map +1 -0
  4. package/dist/Barchart/barchartPlotlyOverrides.js +59 -0
  5. package/dist/Barchart/barchartPlotlyOverrides.js.map +1 -0
  6. package/dist/Barchart/index.d.ts +2 -0
  7. package/dist/Barchart/index.js +16 -0
  8. package/dist/Barchart/index.js.map +1 -0
  9. package/dist/Barchart/styles.js +10 -0
  10. package/dist/Barchart/styles.js.map +1 -0
  11. package/dist/BaseInput/BaseInput.js +6 -1
  12. package/dist/BaseInput/BaseInput.js.map +1 -1
  13. package/dist/BaseInput/styles.js +3 -0
  14. package/dist/BaseInput/styles.js.map +1 -1
  15. package/dist/Chart/Chart.d.ts +25 -0
  16. package/dist/Chart/Chart.js +215 -0
  17. package/dist/Chart/Chart.js.map +1 -0
  18. package/dist/Chart/Plot/Plot.d.ts +43 -0
  19. package/dist/Chart/Plot/Plot.js +131 -0
  20. package/dist/Chart/Plot/Plot.js.map +1 -0
  21. package/dist/Chart/Plot/index.d.ts +2 -0
  22. package/dist/Chart/Plot/index.js +16 -0
  23. package/dist/Chart/Plot/index.js.map +1 -0
  24. package/dist/Chart/Plot/styles.js +10 -0
  25. package/dist/Chart/Plot/styles.js.map +1 -0
  26. package/dist/Chart/Tooltip/MultiTooltip/MultiTooltip.js +162 -0
  27. package/dist/Chart/Tooltip/MultiTooltip/MultiTooltip.js.map +1 -0
  28. package/dist/Chart/Tooltip/MultiTooltip/index.js +16 -0
  29. package/dist/Chart/Tooltip/MultiTooltip/index.js.map +1 -0
  30. package/dist/Chart/Tooltip/MultiTooltip/styles.js +51 -0
  31. package/dist/Chart/Tooltip/MultiTooltip/styles.js.map +1 -0
  32. package/dist/Chart/Tooltip/SingleTooltip/SingleTooltip.js +87 -0
  33. package/dist/Chart/Tooltip/SingleTooltip/SingleTooltip.js.map +1 -0
  34. package/dist/Chart/Tooltip/SingleTooltip/index.js +16 -0
  35. package/dist/Chart/Tooltip/SingleTooltip/index.js.map +1 -0
  36. package/dist/Chart/Tooltip/SingleTooltip/styles.js +26 -0
  37. package/dist/Chart/Tooltip/SingleTooltip/styles.js.map +1 -0
  38. package/dist/Chart/Tooltip/Tooltip.js +165 -0
  39. package/dist/Chart/Tooltip/Tooltip.js.map +1 -0
  40. package/dist/Chart/Tooltip/index.js +16 -0
  41. package/dist/Chart/Tooltip/index.js.map +1 -0
  42. package/dist/Chart/Tooltip/styles.js +16 -0
  43. package/dist/Chart/Tooltip/styles.js.map +1 -0
  44. package/dist/Chart/chartPlotlyOverrides.js +169 -0
  45. package/dist/Chart/chartPlotlyOverrides.js.map +1 -0
  46. package/dist/Chart/index.d.ts +5 -0
  47. package/dist/Chart/index.js +16 -0
  48. package/dist/Chart/index.js.map +1 -0
  49. package/dist/Chart/styles.js +49 -0
  50. package/dist/Chart/styles.js.map +1 -0
  51. package/dist/Donutchart/Donutchart.d.ts +10 -0
  52. package/dist/Donutchart/Donutchart.js +124 -0
  53. package/dist/Donutchart/Donutchart.js.map +1 -0
  54. package/dist/Donutchart/donutchartPlotlyOverrides.js +56 -0
  55. package/dist/Donutchart/donutchartPlotlyOverrides.js.map +1 -0
  56. package/dist/Donutchart/index.d.ts +2 -0
  57. package/dist/Donutchart/index.js +16 -0
  58. package/dist/Donutchart/index.js.map +1 -0
  59. package/dist/Donutchart/styles.js +10 -0
  60. package/dist/Donutchart/styles.js.map +1 -0
  61. package/dist/FilterGroup/FilterGroup.d.ts +3 -3
  62. package/dist/Forms/FormElement/index.d.ts +4 -0
  63. package/dist/Forms/FormElement/index.js +14 -0
  64. package/dist/Forms/FormElement/index.js.map +1 -1
  65. package/dist/Linechart/Linechart.d.ts +14 -0
  66. package/dist/Linechart/Linechart.js +130 -0
  67. package/dist/Linechart/Linechart.js.map +1 -0
  68. package/dist/Linechart/index.d.ts +2 -0
  69. package/dist/Linechart/index.js +16 -0
  70. package/dist/Linechart/index.js.map +1 -0
  71. package/dist/Linechart/lineChartPlotlyOverrides.js +79 -0
  72. package/dist/Linechart/lineChartPlotlyOverrides.js.map +1 -0
  73. package/dist/Linechart/styles.js +10 -0
  74. package/dist/Linechart/styles.js.map +1 -0
  75. package/dist/Provider/Provider.js +3 -14
  76. package/dist/Provider/Provider.js.map +1 -1
  77. package/dist/Slider/Slider.d.ts +185 -0
  78. package/dist/Slider/Slider.js +803 -0
  79. package/dist/Slider/Slider.js.map +1 -0
  80. package/dist/Slider/SliderInput/SliderInput.js +194 -0
  81. package/dist/Slider/SliderInput/SliderInput.js.map +1 -0
  82. package/dist/Slider/SliderInput/index.d.ts +1 -0
  83. package/dist/Slider/SliderInput/index.js +16 -0
  84. package/dist/Slider/SliderInput/index.js.map +1 -0
  85. package/dist/Slider/SliderInput/styles.js +24 -0
  86. package/dist/Slider/SliderInput/styles.js.map +1 -0
  87. package/dist/Slider/index.d.ts +2 -0
  88. package/dist/Slider/index.js +16 -0
  89. package/dist/Slider/index.js.map +1 -0
  90. package/dist/Slider/styles.js +238 -0
  91. package/dist/Slider/styles.js.map +1 -0
  92. package/dist/Slider/utils.js +413 -0
  93. package/dist/Slider/utils.js.map +1 -0
  94. package/dist/Stack/Stack.js +14 -14
  95. package/dist/Stack/Stack.js.map +1 -1
  96. package/dist/index.d.ts +12 -0
  97. package/dist/index.js +36 -0
  98. package/dist/index.js.map +1 -1
  99. package/dist/legacy/Barchart/Barchart.d.ts +14 -0
  100. package/dist/legacy/Barchart/Barchart.js +195 -0
  101. package/dist/legacy/Barchart/Barchart.js.map +1 -0
  102. package/dist/legacy/Barchart/barchartPlotlyOverrides.js +43 -0
  103. package/dist/legacy/Barchart/barchartPlotlyOverrides.js.map +1 -0
  104. package/dist/legacy/Barchart/index.d.ts +2 -0
  105. package/dist/legacy/Barchart/index.js +2 -0
  106. package/dist/legacy/Barchart/index.js.map +1 -0
  107. package/dist/legacy/Barchart/styles.js +3 -0
  108. package/dist/legacy/Barchart/styles.js.map +1 -0
  109. package/dist/legacy/BaseInput/BaseInput.js +6 -1
  110. package/dist/legacy/BaseInput/BaseInput.js.map +1 -1
  111. package/dist/legacy/BaseInput/styles.js +3 -0
  112. package/dist/legacy/BaseInput/styles.js.map +1 -1
  113. package/dist/legacy/Chart/Chart.d.ts +25 -0
  114. package/dist/legacy/Chart/Chart.js +174 -0
  115. package/dist/legacy/Chart/Chart.js.map +1 -0
  116. package/dist/legacy/Chart/Plot/Plot.d.ts +43 -0
  117. package/dist/legacy/Chart/Plot/Plot.js +93 -0
  118. package/dist/legacy/Chart/Plot/Plot.js.map +1 -0
  119. package/dist/legacy/Chart/Plot/index.d.ts +2 -0
  120. package/dist/legacy/Chart/Plot/index.js +2 -0
  121. package/dist/legacy/Chart/Plot/index.js.map +1 -0
  122. package/dist/legacy/Chart/Plot/styles.js +3 -0
  123. package/dist/legacy/Chart/Plot/styles.js.map +1 -0
  124. package/dist/legacy/Chart/Tooltip/MultiTooltip/MultiTooltip.js +130 -0
  125. package/dist/legacy/Chart/Tooltip/MultiTooltip/MultiTooltip.js.map +1 -0
  126. package/dist/legacy/Chart/Tooltip/MultiTooltip/index.js +2 -0
  127. package/dist/legacy/Chart/Tooltip/MultiTooltip/index.js.map +1 -0
  128. package/dist/legacy/Chart/Tooltip/MultiTooltip/styles.js +43 -0
  129. package/dist/legacy/Chart/Tooltip/MultiTooltip/styles.js.map +1 -0
  130. package/dist/legacy/Chart/Tooltip/SingleTooltip/SingleTooltip.js +54 -0
  131. package/dist/legacy/Chart/Tooltip/SingleTooltip/SingleTooltip.js.map +1 -0
  132. package/dist/legacy/Chart/Tooltip/SingleTooltip/index.js +2 -0
  133. package/dist/legacy/Chart/Tooltip/SingleTooltip/index.js.map +1 -0
  134. package/dist/legacy/Chart/Tooltip/SingleTooltip/styles.js +18 -0
  135. package/dist/legacy/Chart/Tooltip/SingleTooltip/styles.js.map +1 -0
  136. package/dist/legacy/Chart/Tooltip/Tooltip.js +128 -0
  137. package/dist/legacy/Chart/Tooltip/Tooltip.js.map +1 -0
  138. package/dist/legacy/Chart/Tooltip/index.js +2 -0
  139. package/dist/legacy/Chart/Tooltip/index.js.map +1 -0
  140. package/dist/legacy/Chart/Tooltip/styles.js +9 -0
  141. package/dist/legacy/Chart/Tooltip/styles.js.map +1 -0
  142. package/dist/legacy/Chart/chartPlotlyOverrides.js +147 -0
  143. package/dist/legacy/Chart/chartPlotlyOverrides.js.map +1 -0
  144. package/dist/legacy/Chart/index.d.ts +5 -0
  145. package/dist/legacy/Chart/index.js +2 -0
  146. package/dist/legacy/Chart/index.js.map +1 -0
  147. package/dist/legacy/Chart/styles.js +32 -0
  148. package/dist/legacy/Chart/styles.js.map +1 -0
  149. package/dist/legacy/Donutchart/Donutchart.d.ts +10 -0
  150. package/dist/legacy/Donutchart/Donutchart.js +86 -0
  151. package/dist/legacy/Donutchart/Donutchart.js.map +1 -0
  152. package/dist/legacy/Donutchart/donutchartPlotlyOverrides.js +40 -0
  153. package/dist/legacy/Donutchart/donutchartPlotlyOverrides.js.map +1 -0
  154. package/dist/legacy/Donutchart/index.d.ts +2 -0
  155. package/dist/legacy/Donutchart/index.js +2 -0
  156. package/dist/legacy/Donutchart/index.js.map +1 -0
  157. package/dist/legacy/Donutchart/styles.js +3 -0
  158. package/dist/legacy/Donutchart/styles.js.map +1 -0
  159. package/dist/legacy/FilterGroup/FilterGroup.d.ts +3 -3
  160. package/dist/legacy/Forms/FormElement/index.d.ts +4 -0
  161. package/dist/legacy/Forms/FormElement/index.js +1 -0
  162. package/dist/legacy/Forms/FormElement/index.js.map +1 -1
  163. package/dist/legacy/Linechart/Linechart.d.ts +14 -0
  164. package/dist/legacy/Linechart/Linechart.js +92 -0
  165. package/dist/legacy/Linechart/Linechart.js.map +1 -0
  166. package/dist/legacy/Linechart/index.d.ts +2 -0
  167. package/dist/legacy/Linechart/index.js +2 -0
  168. package/dist/legacy/Linechart/index.js.map +1 -0
  169. package/dist/legacy/Linechart/lineChartPlotlyOverrides.js +63 -0
  170. package/dist/legacy/Linechart/lineChartPlotlyOverrides.js.map +1 -0
  171. package/dist/legacy/Linechart/styles.js +3 -0
  172. package/dist/legacy/Linechart/styles.js.map +1 -0
  173. package/dist/legacy/Provider/Provider.js +4 -15
  174. package/dist/legacy/Provider/Provider.js.map +1 -1
  175. package/dist/legacy/Slider/Slider.d.ts +185 -0
  176. package/dist/legacy/Slider/Slider.js +752 -0
  177. package/dist/legacy/Slider/Slider.js.map +1 -0
  178. package/dist/legacy/Slider/SliderInput/SliderInput.js +151 -0
  179. package/dist/legacy/Slider/SliderInput/SliderInput.js.map +1 -0
  180. package/dist/legacy/Slider/SliderInput/index.d.ts +1 -0
  181. package/dist/legacy/Slider/SliderInput/index.js +2 -0
  182. package/dist/legacy/Slider/SliderInput/index.js.map +1 -0
  183. package/dist/legacy/Slider/SliderInput/styles.js +16 -0
  184. package/dist/legacy/Slider/SliderInput/styles.js.map +1 -0
  185. package/dist/legacy/Slider/index.d.ts +2 -0
  186. package/dist/legacy/Slider/index.js +2 -0
  187. package/dist/legacy/Slider/index.js.map +1 -0
  188. package/dist/legacy/Slider/styles.js +221 -0
  189. package/dist/legacy/Slider/styles.js.map +1 -0
  190. package/dist/legacy/Slider/utils.js +347 -0
  191. package/dist/legacy/Slider/utils.js.map +1 -0
  192. package/dist/legacy/Stack/Stack.js +14 -14
  193. package/dist/legacy/Stack/Stack.js.map +1 -1
  194. package/dist/legacy/index.d.ts +12 -0
  195. package/dist/legacy/index.js +4 -0
  196. package/dist/legacy/index.js.map +1 -1
  197. package/dist/modern/Barchart/Barchart.d.ts +14 -0
  198. package/dist/modern/Barchart/Barchart.js +176 -0
  199. package/dist/modern/Barchart/Barchart.js.map +1 -0
  200. package/dist/modern/Barchart/barchartPlotlyOverrides.js +41 -0
  201. package/dist/modern/Barchart/barchartPlotlyOverrides.js.map +1 -0
  202. package/dist/modern/Barchart/index.d.ts +2 -0
  203. package/dist/modern/Barchart/index.js +2 -0
  204. package/dist/modern/Barchart/index.js.map +1 -0
  205. package/dist/modern/Barchart/styles.js +3 -0
  206. package/dist/modern/Barchart/styles.js.map +1 -0
  207. package/dist/modern/BaseInput/BaseInput.js +6 -1
  208. package/dist/modern/BaseInput/BaseInput.js.map +1 -1
  209. package/dist/modern/BaseInput/styles.js +3 -0
  210. package/dist/modern/BaseInput/styles.js.map +1 -1
  211. package/dist/modern/Chart/Chart.d.ts +25 -0
  212. package/dist/modern/Chart/Chart.js +158 -0
  213. package/dist/modern/Chart/Chart.js.map +1 -0
  214. package/dist/modern/Chart/Plot/Plot.d.ts +43 -0
  215. package/dist/modern/Chart/Plot/Plot.js +94 -0
  216. package/dist/modern/Chart/Plot/Plot.js.map +1 -0
  217. package/dist/modern/Chart/Plot/index.d.ts +2 -0
  218. package/dist/modern/Chart/Plot/index.js +2 -0
  219. package/dist/modern/Chart/Plot/index.js.map +1 -0
  220. package/dist/modern/Chart/Plot/styles.js +3 -0
  221. package/dist/modern/Chart/Plot/styles.js.map +1 -0
  222. package/dist/modern/Chart/Tooltip/MultiTooltip/MultiTooltip.js +123 -0
  223. package/dist/modern/Chart/Tooltip/MultiTooltip/MultiTooltip.js.map +1 -0
  224. package/dist/modern/Chart/Tooltip/MultiTooltip/index.js +2 -0
  225. package/dist/modern/Chart/Tooltip/MultiTooltip/index.js.map +1 -0
  226. package/dist/modern/Chart/Tooltip/MultiTooltip/styles.js +41 -0
  227. package/dist/modern/Chart/Tooltip/MultiTooltip/styles.js.map +1 -0
  228. package/dist/modern/Chart/Tooltip/SingleTooltip/SingleTooltip.js +51 -0
  229. package/dist/modern/Chart/Tooltip/SingleTooltip/SingleTooltip.js.map +1 -0
  230. package/dist/modern/Chart/Tooltip/SingleTooltip/index.js +2 -0
  231. package/dist/modern/Chart/Tooltip/SingleTooltip/index.js.map +1 -0
  232. package/dist/modern/Chart/Tooltip/SingleTooltip/styles.js +16 -0
  233. package/dist/modern/Chart/Tooltip/SingleTooltip/styles.js.map +1 -0
  234. package/dist/modern/Chart/Tooltip/Tooltip.js +125 -0
  235. package/dist/modern/Chart/Tooltip/Tooltip.js.map +1 -0
  236. package/dist/modern/Chart/Tooltip/index.js +2 -0
  237. package/dist/modern/Chart/Tooltip/index.js.map +1 -0
  238. package/dist/modern/Chart/Tooltip/styles.js +9 -0
  239. package/dist/modern/Chart/Tooltip/styles.js.map +1 -0
  240. package/dist/modern/Chart/chartPlotlyOverrides.js +137 -0
  241. package/dist/modern/Chart/chartPlotlyOverrides.js.map +1 -0
  242. package/dist/modern/Chart/index.d.ts +5 -0
  243. package/dist/modern/Chart/index.js +2 -0
  244. package/dist/modern/Chart/index.js.map +1 -0
  245. package/dist/modern/Chart/styles.js +23 -0
  246. package/dist/modern/Chart/styles.js.map +1 -0
  247. package/dist/modern/Donutchart/Donutchart.d.ts +10 -0
  248. package/dist/modern/Donutchart/Donutchart.js +82 -0
  249. package/dist/modern/Donutchart/Donutchart.js.map +1 -0
  250. package/dist/modern/Donutchart/donutchartPlotlyOverrides.js +38 -0
  251. package/dist/modern/Donutchart/donutchartPlotlyOverrides.js.map +1 -0
  252. package/dist/modern/Donutchart/index.d.ts +2 -0
  253. package/dist/modern/Donutchart/index.js +2 -0
  254. package/dist/modern/Donutchart/index.js.map +1 -0
  255. package/dist/modern/Donutchart/styles.js +3 -0
  256. package/dist/modern/Donutchart/styles.js.map +1 -0
  257. package/dist/modern/FilterGroup/FilterGroup.d.ts +3 -3
  258. package/dist/modern/Forms/FormElement/index.d.ts +4 -0
  259. package/dist/modern/Forms/FormElement/index.js +1 -0
  260. package/dist/modern/Forms/FormElement/index.js.map +1 -1
  261. package/dist/modern/Linechart/Linechart.d.ts +14 -0
  262. package/dist/modern/Linechart/Linechart.js +87 -0
  263. package/dist/modern/Linechart/Linechart.js.map +1 -0
  264. package/dist/modern/Linechart/index.d.ts +2 -0
  265. package/dist/modern/Linechart/index.js +2 -0
  266. package/dist/modern/Linechart/index.js.map +1 -0
  267. package/dist/modern/Linechart/lineChartPlotlyOverrides.js +59 -0
  268. package/dist/modern/Linechart/lineChartPlotlyOverrides.js.map +1 -0
  269. package/dist/modern/Linechart/styles.js +3 -0
  270. package/dist/modern/Linechart/styles.js.map +1 -0
  271. package/dist/modern/Provider/Provider.js +3 -8
  272. package/dist/modern/Provider/Provider.js.map +1 -1
  273. package/dist/modern/Slider/Slider.d.ts +185 -0
  274. package/dist/modern/Slider/Slider.js +689 -0
  275. package/dist/modern/Slider/Slider.js.map +1 -0
  276. package/dist/modern/Slider/SliderInput/SliderInput.js +129 -0
  277. package/dist/modern/Slider/SliderInput/SliderInput.js.map +1 -0
  278. package/dist/modern/Slider/SliderInput/index.d.ts +1 -0
  279. package/dist/modern/Slider/SliderInput/index.js +2 -0
  280. package/dist/modern/Slider/SliderInput/index.js.map +1 -0
  281. package/dist/modern/Slider/SliderInput/styles.js +16 -0
  282. package/dist/modern/Slider/SliderInput/styles.js.map +1 -0
  283. package/dist/modern/Slider/index.d.ts +2 -0
  284. package/dist/modern/Slider/index.js +2 -0
  285. package/dist/modern/Slider/index.js.map +1 -0
  286. package/dist/modern/Slider/styles.js +214 -0
  287. package/dist/modern/Slider/styles.js.map +1 -0
  288. package/dist/modern/Slider/utils.js +302 -0
  289. package/dist/modern/Slider/utils.js.map +1 -0
  290. package/dist/modern/Stack/Stack.js +4 -4
  291. package/dist/modern/Stack/Stack.js.map +1 -1
  292. package/dist/modern/index.d.ts +12 -0
  293. package/dist/modern/index.js +4 -0
  294. package/dist/modern/index.js.map +1 -1
  295. package/package.json +9 -6
@@ -0,0 +1,14 @@
1
+ import { HvChartProps } from "../Chart";
2
+
3
+ export interface HvBarchartProps extends HvChartProps {
4
+ /**
5
+ * Sets if the chart is stack.
6
+ */
7
+ stack?: boolean;
8
+ /**
9
+ * Sets if the chart is horizontal.
10
+ */
11
+ horizontal?: boolean;
12
+ }
13
+
14
+ export default function HvBarchart(props: HvBarchartProps): JSX.Element | null;
@@ -0,0 +1,239 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.object.keys.js");
4
+
5
+ require("core-js/modules/es.symbol.js");
6
+
7
+ require("core-js/modules/es.array.filter.js");
8
+
9
+ require("core-js/modules/es.object.to-string.js");
10
+
11
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
12
+
13
+ require("core-js/modules/web.dom-collections.for-each.js");
14
+
15
+ require("core-js/modules/es.object.get-own-property-descriptors.js");
16
+
17
+ require("core-js/modules/es.array.iterator.js");
18
+
19
+ require("core-js/modules/es.string.iterator.js");
20
+
21
+ require("core-js/modules/es.weak-map.js");
22
+
23
+ require("core-js/modules/web.dom-collections.iterator.js");
24
+
25
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
26
+
27
+ var _typeof = require("@babel/runtime/helpers/typeof");
28
+
29
+ Object.defineProperty(exports, "__esModule", {
30
+ value: true
31
+ });
32
+ exports.default = void 0;
33
+
34
+ require("core-js/modules/es.array.map.js");
35
+
36
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
37
+
38
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
39
+
40
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
41
+
42
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
43
+
44
+ var _react = _interopRequireWildcard(require("react"));
45
+
46
+ var _propTypes = _interopRequireDefault(require("prop-types"));
47
+
48
+ var _core = require("@material-ui/core");
49
+
50
+ var _Chart = _interopRequireDefault(require("../Chart"));
51
+
52
+ var _barchartPlotlyOverrides = require("./barchartPlotlyOverrides");
53
+
54
+ var _styles = _interopRequireDefault(require("./styles"));
55
+
56
+ var _excluded = ["id", "classes", "data", "layout", "config", "tooltipType", "stack", "horizontal"];
57
+
58
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
59
+
60
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
61
+
62
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
63
+
64
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
65
+
66
+ var MARGIN = 50;
67
+ var MAX_BAR_WIDTH = 90;
68
+ var MIN_BAR_WIDTH = 3;
69
+ /**
70
+ * A Bar chart is a chart or graph that presents categorical data with rectangular bars.
71
+ *
72
+ * Our implementation leverages the Plotly charting library. If you have a specific case
73
+ * that we don't cover, the Plotly [documentation](https://plotly.com/javascript/) is a good starting point.
74
+ */
75
+
76
+ var Barchart = function Barchart(_ref) {
77
+ var id = _ref.id,
78
+ classes = _ref.classes,
79
+ data = _ref.data,
80
+ layout = _ref.layout,
81
+ config = _ref.config,
82
+ _ref$tooltipType = _ref.tooltipType,
83
+ tooltipType = _ref$tooltipType === void 0 ? "multiple" : _ref$tooltipType,
84
+ _ref$stack = _ref.stack,
85
+ stack = _ref$stack === void 0 ? false : _ref$stack,
86
+ _ref$horizontal = _ref.horizontal,
87
+ horizontal = _ref$horizontal === void 0 ? false : _ref$horizontal,
88
+ others = (0, _objectWithoutProperties2.default)(_ref, _excluded);
89
+
90
+ /* Values derived from props */
91
+ var dataWithDefaults = (0, _react.useMemo)(function () {
92
+ return (0, _barchartPlotlyOverrides.applyDataDefaults)(data, horizontal);
93
+ }, [data, horizontal]);
94
+ var chartLayout = (0, _react.useMemo)(function () {
95
+ return (0, _barchartPlotlyOverrides.applyLayoutDefaults)(layout, stack, horizontal);
96
+ }, [layout, stack, horizontal]);
97
+ /* State */
98
+
99
+ var _useState = (0, _react.useState)(dataWithDefaults),
100
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
101
+ chartData = _useState2[0],
102
+ setChartData = _useState2[1];
103
+ /* Effects */
104
+
105
+
106
+ var firstRender = (0, _react.useRef)(true);
107
+ (0, _react.useEffect)(function () {
108
+ // only setChartData when prop value changes
109
+ // not needed on first render because the
110
+ // initial state is already properly set
111
+ if (!firstRender.current) {
112
+ setChartData(dataWithDefaults);
113
+ }
114
+
115
+ firstRender.current = false;
116
+ }, [dataWithDefaults]);
117
+ /**
118
+ * Used to force the max width of each bar with 90px.
119
+ *
120
+ * (this is effectively more an effect than a callback)
121
+ */
122
+
123
+ var recalculateBarWidth = (0, _react.useCallback)(function (ref) {
124
+ // use the data and layout info directly from the plotly ref
125
+ // as it's always the most uptodate version.
126
+ var plotData = ref.current.props.data;
127
+ var plotLayout = ref.current.props.layout;
128
+
129
+ if (plotData.length > 0) {
130
+ var barmode = plotLayout.barmode,
131
+ bargap = plotLayout.bargap,
132
+ bargroupgap = plotLayout.bargroupgap;
133
+ var isStack = barmode === "stack";
134
+ var numberOfBarsByGroup = isStack ? 1 : plotData.length;
135
+ var numberOfGroup = plotData[0].x.length;
136
+
137
+ var _ref$current$el$getBo = ref.current.el.getBoundingClientRect(),
138
+ width = _ref$current$el$getBo.width;
139
+
140
+ var plotWidth = width - MARGIN;
141
+ var groupWidth = plotWidth / numberOfGroup;
142
+ var colWidth = groupWidth * (1 - bargap) - groupWidth * (1 - bargap) * bargroupgap;
143
+ var calculatedBarWidth = colWidth / numberOfBarsByGroup;
144
+ var greaterThan90 = calculatedBarWidth > MAX_BAR_WIDTH;
145
+ var lessThan3 = calculatedBarWidth < MIN_BAR_WIDTH;
146
+ var isAlreadyGreaterThan90 = plotData[0].width !== undefined;
147
+
148
+ if (greaterThan90 && !isAlreadyGreaterThan90) {
149
+ var newWidth = MAX_BAR_WIDTH / plotWidth * numberOfGroup;
150
+ var newData = plotData.map(function (subData) {
151
+ return _objectSpread(_objectSpread({}, subData), {}, {
152
+ width: newWidth
153
+ });
154
+ });
155
+ setChartData(newData);
156
+ }
157
+
158
+ if (lessThan3 && !isAlreadyGreaterThan90) {
159
+ var _newWidth = MIN_BAR_WIDTH / plotWidth * numberOfGroup;
160
+
161
+ var _newData = plotData.map(function (subData) {
162
+ return _objectSpread(_objectSpread({}, subData), {}, {
163
+ width: _newWidth
164
+ });
165
+ });
166
+
167
+ setChartData(_newData);
168
+ }
169
+
170
+ if (!greaterThan90 && isAlreadyGreaterThan90) {
171
+ var _newData2 = plotData.map(function (subData) {
172
+ return _objectSpread(_objectSpread({}, subData), {}, {
173
+ width: undefined
174
+ });
175
+ });
176
+
177
+ setChartData(_newData2);
178
+ }
179
+ }
180
+ }, []);
181
+ return /*#__PURE__*/_react.default.createElement(_Chart.default, (0, _extends2.default)({
182
+ id: id,
183
+ classes: classes,
184
+ data: chartData,
185
+ layout: chartLayout,
186
+ config: config,
187
+ tooltipType: tooltipType,
188
+ afterPlot: recalculateBarWidth
189
+ }, others));
190
+ };
191
+
192
+ process.env.NODE_ENV !== "production" ? Barchart.propTypes = {
193
+ /**
194
+ * An Id passed on to the component
195
+ */
196
+ id: _propTypes.default.string,
197
+
198
+ /**
199
+ * A Jss Object used to override or extend the styles applied.
200
+ */
201
+ classes: _propTypes.default.instanceOf(Object),
202
+
203
+ /**
204
+ * Plotly data object (see https://plot.ly/javascript/reference/).
205
+ */
206
+ data: _propTypes.default.arrayOf(_propTypes.default.instanceOf(Object)).isRequired,
207
+
208
+ /**
209
+ * Plotly layout object (see https://plot.ly/javascript/reference/#layout).
210
+ */
211
+ layout: _propTypes.default.instanceOf(Object),
212
+
213
+ /**
214
+ * Plotly config object (see https://plot.ly/javascript/configuration-options/).
215
+ */
216
+ config: _propTypes.default.instanceOf(Object),
217
+
218
+ /**
219
+ * Defines if should use a single or multiline tooltip.
220
+ */
221
+ tooltipType: _propTypes.default.oneOf(["single", "multiple"]),
222
+
223
+ /**
224
+ * Sets is the chart is stack.
225
+ */
226
+ stack: _propTypes.default.bool,
227
+
228
+ /**
229
+ * Sets is the chart is horizontal.
230
+ */
231
+ horizontal: _propTypes.default.bool
232
+ } : void 0;
233
+
234
+ var _default = (0, _core.withStyles)(_styles.default, {
235
+ name: "HvBarchart"
236
+ })(Barchart);
237
+
238
+ exports.default = _default;
239
+ //# sourceMappingURL=Barchart.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Barchart.js","names":["MARGIN","MAX_BAR_WIDTH","MIN_BAR_WIDTH","Barchart","id","classes","data","layout","config","tooltipType","stack","horizontal","others","dataWithDefaults","chartLayout","chartData","setChartData","firstRender","current","recalculateBarWidth","ref","plotData","props","plotLayout","length","barmode","bargap","bargroupgap","isStack","numberOfBarsByGroup","numberOfGroup","x","el","getBoundingClientRect","width","plotWidth","groupWidth","colWidth","calculatedBarWidth","greaterThan90","lessThan3","isAlreadyGreaterThan90","undefined","newWidth","newData","map","subData","propTypes","PropTypes","string","instanceOf","Object","arrayOf","isRequired","oneOf","bool","styles","name"],"sources":["../../src/Barchart/Barchart.js"],"sourcesContent":["import React, { useMemo, useEffect, useState, useCallback, useRef } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { withStyles } from \"@material-ui/core\";\nimport Chart from \"../Chart\";\nimport { applyLayoutDefaults, applyDataDefaults } from \"./barchartPlotlyOverrides\";\nimport styles from \"./styles\";\n\nconst MARGIN = 50;\nconst MAX_BAR_WIDTH = 90;\nconst MIN_BAR_WIDTH = 3;\n\n/**\n * A Bar chart is a chart or graph that presents categorical data with rectangular bars.\n *\n * Our implementation leverages the Plotly charting library. If you have a specific case\n * that we don't cover, the Plotly [documentation](https://plotly.com/javascript/) is a good starting point.\n */\nconst Barchart = ({\n id,\n classes,\n data,\n layout,\n config,\n tooltipType = \"multiple\",\n stack = false,\n horizontal = false,\n ...others\n}) => {\n /* Values derived from props */\n\n const dataWithDefaults = useMemo(() => applyDataDefaults(data, horizontal), [data, horizontal]);\n const chartLayout = useMemo(\n () => applyLayoutDefaults(layout, stack, horizontal),\n [layout, stack, horizontal]\n );\n\n /* State */\n\n const [chartData, setChartData] = useState(dataWithDefaults);\n\n /* Effects */\n\n const firstRender = useRef(true);\n useEffect(() => {\n // only setChartData when prop value changes\n // not needed on first render because the\n // initial state is already properly set\n if (!firstRender.current) {\n setChartData(dataWithDefaults);\n }\n\n firstRender.current = false;\n }, [dataWithDefaults]);\n\n /**\n * Used to force the max width of each bar with 90px.\n *\n * (this is effectively more an effect than a callback)\n */\n const recalculateBarWidth = useCallback((ref) => {\n // use the data and layout info directly from the plotly ref\n // as it's always the most uptodate version.\n const plotData = ref.current.props.data;\n const plotLayout = ref.current.props.layout;\n\n if (plotData.length > 0) {\n const { barmode, bargap, bargroupgap } = plotLayout;\n\n const isStack = barmode === \"stack\";\n const numberOfBarsByGroup = isStack ? 1 : plotData.length;\n const numberOfGroup = plotData[0].x.length;\n\n const { width } = ref.current.el.getBoundingClientRect();\n const plotWidth = width - MARGIN;\n const groupWidth = plotWidth / numberOfGroup;\n const colWidth = groupWidth * (1 - bargap) - groupWidth * (1 - bargap) * bargroupgap;\n\n const calculatedBarWidth = colWidth / numberOfBarsByGroup;\n const greaterThan90 = calculatedBarWidth > MAX_BAR_WIDTH;\n const lessThan3 = calculatedBarWidth < MIN_BAR_WIDTH;\n const isAlreadyGreaterThan90 = plotData[0].width !== undefined;\n\n if (greaterThan90 && !isAlreadyGreaterThan90) {\n const newWidth = (MAX_BAR_WIDTH / plotWidth) * numberOfGroup;\n\n const newData = plotData.map((subData) => {\n return { ...subData, width: newWidth };\n });\n\n setChartData(newData);\n }\n\n if (lessThan3 && !isAlreadyGreaterThan90) {\n const newWidth = (MIN_BAR_WIDTH / plotWidth) * numberOfGroup;\n\n const newData = plotData.map((subData) => {\n return { ...subData, width: newWidth };\n });\n\n setChartData(newData);\n }\n\n if (!greaterThan90 && isAlreadyGreaterThan90) {\n const newData = plotData.map((subData) => {\n return { ...subData, width: undefined };\n });\n\n setChartData(newData);\n }\n }\n }, []);\n\n return (\n <Chart\n id={id}\n classes={classes}\n data={chartData}\n layout={chartLayout}\n config={config}\n tooltipType={tooltipType}\n afterPlot={recalculateBarWidth}\n {...others}\n />\n );\n};\nBarchart.propTypes = {\n /**\n * An Id passed on to the component\n */\n id: PropTypes.string,\n /**\n * A Jss Object used to override or extend the styles applied.\n */\n classes: PropTypes.instanceOf(Object),\n /**\n * Plotly data object (see https://plot.ly/javascript/reference/).\n */\n data: PropTypes.arrayOf(PropTypes.instanceOf(Object)).isRequired,\n /**\n * Plotly layout object (see https://plot.ly/javascript/reference/#layout).\n */\n layout: PropTypes.instanceOf(Object),\n /**\n * Plotly config object (see https://plot.ly/javascript/configuration-options/).\n */\n config: PropTypes.instanceOf(Object),\n /**\n * Defines if should use a single or multiline tooltip.\n */\n tooltipType: PropTypes.oneOf([\"single\", \"multiple\"]),\n /**\n * Sets is the chart is stack.\n */\n stack: PropTypes.bool,\n /**\n * Sets is the chart is horizontal.\n */\n horizontal: PropTypes.bool,\n};\n\nexport default withStyles(styles, { name: \"HvBarchart\" })(Barchart);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;AAEA,IAAMA,MAAM,GAAG,EAAf;AACA,IAAMC,aAAa,GAAG,EAAtB;AACA,IAAMC,aAAa,GAAG,CAAtB;AAEA;AACA;AACA;AACA;AACA;AACA;;AACA,IAAMC,QAAQ,GAAG,SAAXA,QAAW,OAUX;EAAA,IATJC,EASI,QATJA,EASI;EAAA,IARJC,OAQI,QARJA,OAQI;EAAA,IAPJC,IAOI,QAPJA,IAOI;EAAA,IANJC,MAMI,QANJA,MAMI;EAAA,IALJC,MAKI,QALJA,MAKI;EAAA,4BAJJC,WAII;EAAA,IAJJA,WAII,iCAJU,UAIV;EAAA,sBAHJC,KAGI;EAAA,IAHJA,KAGI,2BAHI,KAGJ;EAAA,2BAFJC,UAEI;EAAA,IAFJA,UAEI,gCAFS,KAET;EAAA,IADDC,MACC;;EACJ;EAEA,IAAMC,gBAAgB,GAAG,oBAAQ;IAAA,OAAM,gDAAkBP,IAAlB,EAAwBK,UAAxB,CAAN;EAAA,CAAR,EAAmD,CAACL,IAAD,EAAOK,UAAP,CAAnD,CAAzB;EACA,IAAMG,WAAW,GAAG,oBAClB;IAAA,OAAM,kDAAoBP,MAApB,EAA4BG,KAA5B,EAAmCC,UAAnC,CAAN;EAAA,CADkB,EAElB,CAACJ,MAAD,EAASG,KAAT,EAAgBC,UAAhB,CAFkB,CAApB;EAKA;;EAEA,gBAAkC,qBAASE,gBAAT,CAAlC;EAAA;EAAA,IAAOE,SAAP;EAAA,IAAkBC,YAAlB;EAEA;;;EAEA,IAAMC,WAAW,GAAG,mBAAO,IAAP,CAApB;EACA,sBAAU,YAAM;IACd;IACA;IACA;IACA,IAAI,CAACA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AAC4C,SAAT,GAAqB;EACnB;AACF;AACA;EACE3C,EAAE,EAAE4C,mBAAUC,MAJK;;EAKnB;AACF;AACA;EACE5C,OAAO,EAAE2C,mBAAUE,UAAV,CAAqBC,MAArB,CARU;;EASnB;AACF;AACA;EACE7C,IAAI,EAAE0C,mBAAUI,OAAV,CAAkBJ,mBAAUE,UAAV,CAAqBC,MAArB,CAAlB,EAAgDE,UAZnC;;EAanB;AACF;AACA;EACE9C,MAAM,EAAEyC,mBAAUE,UAAV,CAAqBC,MAArB,CAhBW;;EAiBnB;AACF;AACA;EACE3C,MAAM,EAAEwC,mBAAUE,UAAV,CAAqBC,MAArB,CApBW;;EAqBnB;AACF;AACA;EACE1C,WAAW,EAAEuC,mBAAUM,KAAV,CAAgB,CAAC,QAAD,EAAW,UAAX,CAAhB,CAxBM;;EAyBnB;AACF;AACA;EACE5C,KAAK,EAAEsC,mBAAUO,IA5BE;;EA6BnB;AACF;AACA;EACE5C,UAAU,EAAEqC,mBAAUO;AAhCH,CAArB;;eAmCe,sBAAWC,eAAX,EAAmB;EAAEC,IAAI,EAAE;AAAR,CAAnB,EAA2CtD,QAA3C,C"}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.applyLayoutDefaults = exports.applyDataDefaults = void 0;
9
+
10
+ require("core-js/modules/es.object.to-string.js");
11
+
12
+ require("core-js/modules/web.dom-collections.for-each.js");
13
+
14
+ var _cloneDeep = _interopRequireDefault(require("lodash/cloneDeep"));
15
+
16
+ var setterIfNil = function setterIfNil(object, property, value) {
17
+ var _object$property;
18
+
19
+ // eslint-disable-next-line no-param-reassign
20
+ object[property] = (_object$property = object[property]) !== null && _object$property !== void 0 ? _object$property : value;
21
+ };
22
+ /**
23
+ * Auxiliary functions to set the layout in order to follow the DS guideline.
24
+ */
25
+
26
+
27
+ var applyLayoutDefaults = function applyLayoutDefaults(inputLayout, stack, isHorizontal) {
28
+ var layout = inputLayout === undefined ? {} : (0, _cloneDeep.default)(inputLayout);
29
+ setterIfNil(layout, "bargap", 0.25);
30
+ setterIfNil(layout, "bargroupgap", 0.25);
31
+ setterIfNil(layout, "hovermode", "closest");
32
+ if (stack) setterIfNil(layout, "barmode", "stack");
33
+ setterIfNil(layout, "yaxis", {});
34
+ setterIfNil(layout, "xaxis", {});
35
+
36
+ if (isHorizontal) {
37
+ setterIfNil(layout.yaxis, "showline", true);
38
+ setterIfNil(layout.xaxis, "showline", false);
39
+ } else {
40
+ setterIfNil(layout.yaxis, "showline", false);
41
+ }
42
+
43
+ return layout;
44
+ };
45
+
46
+ exports.applyLayoutDefaults = applyLayoutDefaults;
47
+
48
+ var applyDataDefaults = function applyDataDefaults(inputData, isHorizontal) {
49
+ var data = inputData;
50
+ data.forEach(function (trace) {
51
+ setterIfNil(trace, "type", "bar");
52
+ setterIfNil(trace, "hoverinfo", "none");
53
+ if (isHorizontal) setterIfNil(trace, "orientation", "h");
54
+ });
55
+ return data;
56
+ };
57
+
58
+ exports.applyDataDefaults = applyDataDefaults;
59
+ //# sourceMappingURL=barchartPlotlyOverrides.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"barchartPlotlyOverrides.js","names":["setterIfNil","object","property","value","applyLayoutDefaults","inputLayout","stack","isHorizontal","layout","undefined","yaxis","xaxis","applyDataDefaults","inputData","data","forEach","trace"],"sources":["../../src/Barchart/barchartPlotlyOverrides.js"],"sourcesContent":["import clone from \"lodash/cloneDeep\";\n\nconst setterIfNil = (object, property, value) => {\n // eslint-disable-next-line no-param-reassign\n object[property] = object[property] ?? value;\n};\n\n/**\n * Auxiliary functions to set the layout in order to follow the DS guideline.\n */\nexport const applyLayoutDefaults = (inputLayout, stack, isHorizontal) => {\n const layout = inputLayout === undefined ? {} : clone(inputLayout);\n setterIfNil(layout, \"bargap\", 0.25);\n setterIfNil(layout, \"bargroupgap\", 0.25);\n setterIfNil(layout, \"hovermode\", \"closest\");\n if (stack) setterIfNil(layout, \"barmode\", \"stack\");\n\n setterIfNil(layout, \"yaxis\", {});\n setterIfNil(layout, \"xaxis\", {});\n\n if (isHorizontal) {\n setterIfNil(layout.yaxis, \"showline\", true);\n setterIfNil(layout.xaxis, \"showline\", false);\n } else {\n setterIfNil(layout.yaxis, \"showline\", false);\n }\n\n return layout;\n};\n\nexport const applyDataDefaults = (inputData, isHorizontal) => {\n const data = inputData;\n\n data.forEach((trace) => {\n setterIfNil(trace, \"type\", \"bar\");\n setterIfNil(trace, \"hoverinfo\", \"none\");\n if (isHorizontal) setterIfNil(trace, \"orientation\", \"h\");\n });\n\n return data;\n};\n"],"mappings":";;;;;;;;;;;;;AAAA;;AAEA,IAAMA,WAAW,GAAG,SAAdA,WAAc,CAACC,MAAD,EAASC,QAAT,EAAmBC,KAAnB,EAA6B;EAAA;;EAC/C;EACAF,MAAM,CAACC,QAAD,CAAN,uBAAmBD,MAAM,CAACC,QAAD,CAAzB,+DAAuCC,KAAvC;AACD,CAHD;AAKA;AACA;AACA;;;AACO,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAsB,CAACC,WAAD,EAAcC,KAAd,EAAqBC,YAArB,EAAsC;EACvE,IAAMC,MAAM,GAAGH,WAAW,KAAKI,SAAhB,GAA4B,EAA5B,GAAiC,wBAAMJ,WAAN,CAAhD;EACAL,WAAW,CAACQ,MAAD,EAAS,QAAT,EAAmB,IAAnB,CAAX;EACAR,WAAW,CAACQ,MAAD,EAAS,aAAT,EAAwB,IAAxB,CAAX;EACAR,WAAW,CAACQ,MAAD,EAAS,WAAT,EAAsB,SAAtB,CAAX;EACA,IAAIF,KAAJ,EAAWN,WAAW,CAACQ,MAAD,EAAS,SAAT,EAAoB,OAApB,CAAX;EAEXR,WAAW,CAACQ,MAAD,EAAS,OAAT,EAAkB,EAAlB,CAAX;EACAR,WAAW,CAACQ,MAAD,EAAS,OAAT,EAAkB,EAAlB,CAAX;;EAEA,IAAID,YAAJ,EAAkB;IAChBP,WAAW,CAACQ,MAAM,CAACE,KAAR,EAAe,UAAf,EAA2B,IAA3B,CAAX;IACAV,WAAW,CAACQ,MAAM,CAACG,KAAR,EAAe,UAAf,EAA2B,KAA3B,CAAX;EACD,CAHD,MAGO;IACLX,WAAW,CAACQ,MAAM,CAACE,KAAR,EAAe,UAAf,EAA2B,KAA3B,CAAX;EACD;;EAED,OAAOF,MAAP;AACD,CAlBM;;;;AAoBA,IAAMI,iBAAiB,GAAG,SAApBA,iBAAoB,CAACC,SAAD,EAAYN,YAAZ,EAA6B;EAC5D,IAAMO,IAAI,GAAGD,SAAb;EAEAC,IAAI,CAACC,OAAL,CAAa,UAACC,KAAD,EAAW;IACtBhB,WAAW,CAACgB,KAAD,EAAQ,MAAR,EAAgB,KAAhB,CAAX;IACAhB,WAAW,CAACgB,KAAD,EAAQ,WAAR,EAAqB,MAArB,CAAX;IACA,IAAIT,YAAJ,EAAkBP,WAAW,CAACgB,KAAD,EAAQ,aAAR,EAAuB,GAAvB,CAAX;EACnB,CAJD;EAMA,OAAOF,IAAP;AACD,CAVM"}
@@ -0,0 +1,2 @@
1
+ export { default } from "./Barchart";
2
+ export * from "./Barchart";
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ Object.defineProperty(exports, "default", {
9
+ enumerable: true,
10
+ get: function get() {
11
+ return _Barchart.default;
12
+ }
13
+ });
14
+
15
+ var _Barchart = _interopRequireDefault(require("./Barchart"));
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/Barchart/index.js"],"sourcesContent":["export { default } from \"./Barchart\";\n"],"mappings":";;;;;;;;;;;;;;AAAA"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var styles = {};
8
+ var _default = styles;
9
+ exports.default = _default;
10
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","names":["styles"],"sources":["../../src/Barchart/styles.js"],"sourcesContent":["const styles = {};\n\nexport default styles;\n"],"mappings":";;;;;;AAAA,IAAMA,MAAM,GAAG,EAAf;eAEeA,M"}
@@ -119,7 +119,7 @@ var HvBaseInput = function HvBaseInput(props) {
119
119
  focused: classes.inputRootFocused,
120
120
  disabled: classes.inputRootDisabled,
121
121
  multiline: classes.inputRootMultiline,
122
- input: (0, _clsx.default)(classes.input, !formElementProps.disabled && resizable && classes.inputResizable)
122
+ input: (0, _clsx.default)(classes.input, !formElementProps.disabled && resizable && classes.inputResizable, disabled && classes.inputDisabled)
123
123
  },
124
124
  inputProps: _objectSpread(_objectSpread({
125
125
  // avoid the required attribute at the root node
@@ -190,6 +190,11 @@ process.env.NODE_ENV !== "production" ? HvBaseInput.propTypes = {
190
190
  */
191
191
  input: _propTypes.default.string,
192
192
 
193
+ /**
194
+ * Styles applied to input html element when is disabled.
195
+ */
196
+ inputDisabled: _propTypes.default.string,
197
+
193
198
  /**
194
199
  * Styles applied to input html element when it is resizable.
195
200
  */
@@ -1 +1 @@
1
- {"version":3,"file":"BaseInput.js","names":["HvBaseInput","props","classes","className","id","name","value","defaultValue","required","readOnly","disabled","onChange","type","placeholder","multiline","resizable","invalid","inputRef","inputProps","others","formElementContext","HvFormElementContext","formElementProps","localInvalid","status","formElementDescriptorsContext","HvFormElementDescriptorsContext","ariaProps","onChangeHandler","event","target","root","inputRoot","focused","inputRootFocused","inputRootDisabled","inputRootMultiline","input","inputResizable","inputBorderContainer","formElementType","propTypes","PropTypes","string","shape","isRequired","bool","func","instanceOf","Object","refType","styles"],"sources":["../../src/BaseInput/BaseInput.js"],"sourcesContent":["import React, { useContext } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\nimport { Input, withStyles } from \"@material-ui/core\";\nimport { refType } from \"../utils\";\nimport styles from \"./styles\";\n\nimport {\n HvFormElementContext,\n HvFormElementDescriptorsContext,\n buildFormElementPropsFromContext,\n buildAriaPropsFromContext,\n} from \"../Forms/FormElement\";\n\n/**\n * An Input component that only posses the most basic functionalities.\n * It should be used alongside the other form elements to construct a proper accessible form.\n */\nconst HvBaseInput = (props) => {\n const {\n classes,\n className = \"\",\n\n id,\n name,\n\n value,\n defaultValue,\n\n required,\n readOnly,\n disabled,\n\n onChange,\n\n type = \"text\",\n\n placeholder,\n\n multiline = false,\n resizable = false,\n invalid = false,\n\n inputRef,\n inputProps = {},\n\n ...others\n } = props;\n\n const formElementContext = useContext(HvFormElementContext);\n const formElementProps = buildFormElementPropsFromContext(props, formElementContext);\n\n const localInvalid = invalid || formElementProps.status === \"invalid\";\n\n const formElementDescriptorsContext = useContext(HvFormElementDescriptorsContext);\n const ariaProps = buildAriaPropsFromContext(\n inputProps,\n formElementDescriptorsContext,\n localInvalid,\n id\n );\n\n const onChangeHandler = (event) => {\n onChange?.(event, event.target.value);\n };\n\n return (\n <div\n className={clsx(classes.root, className, {\n [classes.disabled]: formElementProps.disabled,\n [classes.invalid]: localInvalid,\n [classes.resizable]: multiline && resizable,\n [classes.readOnly]: readOnly,\n })}\n >\n <Input\n id={id}\n name={formElementProps.name}\n value={value}\n defaultValue={defaultValue}\n type={type}\n placeholder={placeholder}\n readOnly={formElementProps.readOnly}\n disabled={formElementProps.disabled}\n onChange={onChangeHandler}\n classes={{\n root: classes.inputRoot,\n focused: classes.inputRootFocused,\n disabled: classes.inputRootDisabled,\n multiline: classes.inputRootMultiline,\n input: clsx(classes.input, {\n [classes.inputResizable]: !formElementProps.disabled && resizable,\n }),\n }}\n inputProps={{\n // avoid the required attribute at the root node\n required: formElementProps.required,\n ...inputProps,\n ...ariaProps,\n }}\n inputRef={inputRef}\n multiline={multiline}\n rows={10}\n {...others}\n />\n {!multiline && <div role=\"presentation\" className={classes.inputBorderContainer} />}\n </div>\n );\n};\n\nHvBaseInput.formElementType = \"input\";\n\nHvBaseInput.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * A Jss Object used to override or extend the component styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the root container of the input.\n */\n root: PropTypes.string,\n /**\n * Styles applied to the root container of the input when it is disabled.\n */\n disabled: PropTypes.string,\n /**\n * Styles applied to the root container of the input when it is invalid.\n */\n invalid: PropTypes.string,\n /**\n * Styles applied to the root container of the input when it is resizable.\n */\n resizable: PropTypes.string,\n\n /**\n * Styles applied to input root which is the input that encloses all the other elements.\n */\n inputRoot: PropTypes.string,\n /**\n * Styles applied to input root when it is focused.\n */\n inputRootFocused: PropTypes.string,\n /**\n * Styles applied to input html element when it is disabled.\n */\n inputRootDisabled: PropTypes.string,\n /**\n * Styles applied to input html element when it is multiline mode.\n */\n inputRootMultiline: PropTypes.string,\n\n /**\n * Styles applied to input html element.\n */\n input: PropTypes.string,\n /**\n * Styles applied to input html element when it is resizable.\n */\n inputResizable: PropTypes.string,\n\n /**\n * Styles applied to the container of the border element.\n */\n inputBorderContainer: PropTypes.string,\n /**\n * Styles applied to the container of the border element, when in read only mode.\n */\n readOnly: PropTypes.string,\n }).isRequired,\n\n /**\n * Id to be applied to the root node.\n */\n id: PropTypes.string,\n /**\n * The input name.\n */\n name: PropTypes.string,\n\n /**\n * The value of the input, when controlled.\n */\n value: PropTypes.string,\n /**\n * The initial value of the input, when uncontrolled.\n */\n defaultValue: PropTypes.string,\n\n /**\n * If `true` the input is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * Indicates that the input is not editable.\n */\n readOnly: PropTypes.bool,\n /**\n * If true, the input element will be required.\n */\n required: PropTypes.bool,\n\n /**\n * The function that will be executed onChange, allows modification of the input,\n * it receives the value. If a new value should be presented it must returned it.\n */\n onChange: PropTypes.func,\n\n /**\n * The input type.\n */\n type: PropTypes.string,\n\n /**\n * Label inside the input used to help user.\n */\n placeholder: PropTypes.string,\n\n /**\n * If true, a textarea element will be rendered.\n */\n multiline: PropTypes.bool,\n /**\n * If true and multiline is also true the textarea element will be resizable.\n */\n resizable: PropTypes.bool,\n /**\n * Denotes if the input is in an invalid state.\n */\n invalid: PropTypes.bool,\n\n /**\n * Attributes applied to the input element.\n */\n inputProps: PropTypes.instanceOf(Object),\n /**\n * Allows passing a ref to the underlying input\n */\n inputRef: refType,\n};\n\nexport default withStyles(styles, { name: \"HvBaseInput\" })(HvBaseInput);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;;;;;;;;;;;AAOA;AACA;AACA;AACA;AACA,IAAMA,WAAW,GAAG,SAAdA,WAAc,CAACC,KAAD,EAAW;EAC7B,IACEC,OADF,GA4BID,KA5BJ,CACEC,OADF;EAAA,uBA4BID,KA5BJ,CAEEE,SAFF;EAAA,IAEEA,SAFF,iCAEc,EAFd;EAAA,IAIEC,EAJF,GA4BIH,KA5BJ,CAIEG,EAJF;EAAA,IAKEC,IALF,GA4BIJ,KA5BJ,CAKEI,IALF;EAAA,IAOEC,KAPF,GA4BIL,KA5BJ,CAOEK,KAPF;EAAA,IAQEC,YARF,GA4BIN,KA5BJ,CAQEM,YARF;EAAA,IAUEC,QAVF,GA4BIP,KA5BJ,CAUEO,QAVF;EAAA,IAWEC,QAXF,GA4BIR,KA5BJ,CAWEQ,QAXF;EAAA,IAYEC,QAZF,GA4BIT,KA5BJ,CAYES,QAZF;EAAA,IAcEC,QAdF,GA4BIV,KA5BJ,CAcEU,QAdF;EAAA,kBA4BIV,KA5BJ,CAgBEW,IAhBF;EAAA,IAgBEA,IAhBF,4BAgBS,MAhBT;EAAA,IAkBEC,WAlBF,GA4BIZ,KA5BJ,CAkBEY,WAlBF;EAAA,uBA4BIZ,KA5BJ,CAoBEa,SApBF;EAAA,IAoBEA,SApBF,iCAoBc,KApBd;EAAA,uBA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A0HtB;AACF;AACA;EACE5B,UAAU,EAAEwB,mBAAUM,UAAV,CAAqBC,MAArB,CA7HU;;EA8HtB;AACF;AACA;EACEhC,QAAQ,EAAEiC;AAjIY,CAAxB;;eAoIe,sBAAWC,eAAX,EAAmB;EAAE9C,IAAI,EAAE;AAAR,CAAnB,EAA4CL,WAA5C,C"}
1
+ {"version":3,"file":"BaseInput.js","names":["HvBaseInput","props","classes","className","id","name","value","defaultValue","required","readOnly","disabled","onChange","type","placeholder","multiline","resizable","invalid","inputRef","inputProps","others","formElementContext","HvFormElementContext","formElementProps","localInvalid","status","formElementDescriptorsContext","HvFormElementDescriptorsContext","ariaProps","onChangeHandler","event","target","root","inputRoot","focused","inputRootFocused","inputRootDisabled","inputRootMultiline","input","inputResizable","inputDisabled","inputBorderContainer","formElementType","propTypes","PropTypes","string","shape","isRequired","bool","func","instanceOf","Object","refType","styles"],"sources":["../../src/BaseInput/BaseInput.js"],"sourcesContent":["import React, { useContext } from \"react\";\nimport PropTypes from \"prop-types\";\nimport clsx from \"clsx\";\nimport { Input, withStyles } from \"@material-ui/core\";\nimport { refType } from \"../utils\";\nimport styles from \"./styles\";\n\nimport {\n HvFormElementContext,\n HvFormElementDescriptorsContext,\n buildFormElementPropsFromContext,\n buildAriaPropsFromContext,\n} from \"../Forms/FormElement\";\n\n/**\n * An Input component that only posses the most basic functionalities.\n * It should be used alongside the other form elements to construct a proper accessible form.\n */\nconst HvBaseInput = (props) => {\n const {\n classes,\n className = \"\",\n\n id,\n name,\n\n value,\n defaultValue,\n\n required,\n readOnly,\n disabled,\n\n onChange,\n\n type = \"text\",\n\n placeholder,\n\n multiline = false,\n resizable = false,\n invalid = false,\n\n inputRef,\n inputProps = {},\n\n ...others\n } = props;\n\n const formElementContext = useContext(HvFormElementContext);\n const formElementProps = buildFormElementPropsFromContext(props, formElementContext);\n\n const localInvalid = invalid || formElementProps.status === \"invalid\";\n\n const formElementDescriptorsContext = useContext(HvFormElementDescriptorsContext);\n const ariaProps = buildAriaPropsFromContext(\n inputProps,\n formElementDescriptorsContext,\n localInvalid,\n id\n );\n\n const onChangeHandler = (event) => {\n onChange?.(event, event.target.value);\n };\n\n return (\n <div\n className={clsx(classes.root, className, {\n [classes.disabled]: formElementProps.disabled,\n [classes.invalid]: localInvalid,\n [classes.resizable]: multiline && resizable,\n [classes.readOnly]: readOnly,\n })}\n >\n <Input\n id={id}\n name={formElementProps.name}\n value={value}\n defaultValue={defaultValue}\n type={type}\n placeholder={placeholder}\n readOnly={formElementProps.readOnly}\n disabled={formElementProps.disabled}\n onChange={onChangeHandler}\n classes={{\n root: classes.inputRoot,\n focused: classes.inputRootFocused,\n disabled: classes.inputRootDisabled,\n multiline: classes.inputRootMultiline,\n input: clsx(classes.input, {\n [classes.inputResizable]: !formElementProps.disabled && resizable,\n [classes.inputDisabled]: disabled,\n }),\n }}\n inputProps={{\n // avoid the required attribute at the root node\n required: formElementProps.required,\n ...inputProps,\n ...ariaProps,\n }}\n inputRef={inputRef}\n multiline={multiline}\n rows={10}\n {...others}\n />\n {!multiline && <div role=\"presentation\" className={classes.inputBorderContainer} />}\n </div>\n );\n};\n\nHvBaseInput.formElementType = \"input\";\n\nHvBaseInput.propTypes = {\n /**\n * Class names to be applied.\n */\n className: PropTypes.string,\n /**\n * A Jss Object used to override or extend the component styles applied.\n */\n classes: PropTypes.shape({\n /**\n * Styles applied to the root container of the input.\n */\n root: PropTypes.string,\n /**\n * Styles applied to the root container of the input when it is disabled.\n */\n disabled: PropTypes.string,\n /**\n * Styles applied to the root container of the input when it is invalid.\n */\n invalid: PropTypes.string,\n /**\n * Styles applied to the root container of the input when it is resizable.\n */\n resizable: PropTypes.string,\n\n /**\n * Styles applied to input root which is the input that encloses all the other elements.\n */\n inputRoot: PropTypes.string,\n /**\n * Styles applied to input root when it is focused.\n */\n inputRootFocused: PropTypes.string,\n /**\n * Styles applied to input html element when it is disabled.\n */\n inputRootDisabled: PropTypes.string,\n /**\n * Styles applied to input html element when it is multiline mode.\n */\n inputRootMultiline: PropTypes.string,\n\n /**\n * Styles applied to input html element.\n */\n input: PropTypes.string,\n /**\n * Styles applied to input html element when is disabled.\n */\n inputDisabled: PropTypes.string,\n /**\n * Styles applied to input html element when it is resizable.\n */\n inputResizable: PropTypes.string,\n\n /**\n * Styles applied to the container of the border element.\n */\n inputBorderContainer: PropTypes.string,\n /**\n * Styles applied to the container of the border element, when in read only mode.\n */\n readOnly: PropTypes.string,\n }).isRequired,\n\n /**\n * Id to be applied to the root node.\n */\n id: PropTypes.string,\n /**\n * The input name.\n */\n name: PropTypes.string,\n\n /**\n * The value of the input, when controlled.\n */\n value: PropTypes.string,\n /**\n * The initial value of the input, when uncontrolled.\n */\n defaultValue: PropTypes.string,\n\n /**\n * If `true` the input is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * Indicates that the input is not editable.\n */\n readOnly: PropTypes.bool,\n /**\n * If true, the input element will be required.\n */\n required: PropTypes.bool,\n\n /**\n * The function that will be executed onChange, allows modification of the input,\n * it receives the value. If a new value should be presented it must returned it.\n */\n onChange: PropTypes.func,\n\n /**\n * The input type.\n */\n type: PropTypes.string,\n\n /**\n * Label inside the input used to help user.\n */\n placeholder: PropTypes.string,\n\n /**\n * If true, a textarea element will be rendered.\n */\n multiline: PropTypes.bool,\n /**\n * If true and multiline is also true the textarea element will be resizable.\n */\n resizable: PropTypes.bool,\n /**\n * Denotes if the input is in an invalid state.\n */\n invalid: PropTypes.bool,\n\n /**\n * Attributes applied to the input element.\n */\n inputProps: PropTypes.instanceOf(Object),\n /**\n * Allows passing a ref to the underlying input\n */\n inputRef: refType,\n};\n\nexport default withStyles(styles, { name: \"HvBaseInput\" })(HvBaseInput);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;;;;;;;;;;;AAOA;AACA;AACA;AACA;AACA,IAAMA,WAAW,GAAG,SAAdA,WAAc,CAACC,KAAD,EAAW;E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;AACJ;AACA;IACInC,QAAQ,EAAEkC,mBAAUC;EAvDG,CAAhB,EAwDNE,UAhEmB;;EAkEtB;AACF;AACA;EACE1C,EAAE,EAAEuC,mBAAUC,MArEQ;;EAsEtB;AACF;AACA;EACEvC,IAAI,EAAEsC,mBAAUC,MAzEM;;EA2EtB;AACF;AACA;EACEtC,KAAK,EAAEqC,mBAAUC,MA9EK;;EA+EtB;AACF;AACA;EACErC,YAAY,EAAEoC,mBAAUC,MAlFF;;EAoFtB;AACF;AACA;EACElC,QAAQ,EAAEiC,mBAAUI,IAvFE;;EAwFtB;AACF;AACA;EACEtC,QAAQ,EAAEkC,mBAAUI,IA3FE;;EA4FtB;AACF;AACA;EACEvC,QAAQ,EAAEmC,mBAAUI,IA/FE;;EAiGtB;AACF;AACA;AACA;EACEpC,QAAQ,EAAEgC,mBAAUK,IArGE;;EAuGtB;AACF;AACA;EACEpC,IAAI,EAAE+B,mBAAUC,MA1GM;;EA4GtB;AACF;AACA;EACE/B,WAAW,EAAE8B,mBAAUC,MA/GD;;EAiHtB;AACF;AACA;EACE9B,SAAS,EAAE6B,mBAAUI,IApHC;;EAqHtB;AACF;AACA;EACEhC,SAAS,EAAE4B,mBAAUI,IAxHC;;EAyHtB;AACF;AACA;EACE/B,OAAO,EAAE2B,mBAAUI,IA5HG;;EA8HtB;AACF;AACA;EACE7B,UAAU,EAAEyB,mBAAUM,UAAV,CAAqBC,MAArB,CAjIU;;EAkItB;AACF;AACA;EACEjC,QAAQ,EAAEkC;AArIY,CAAxB;;eAwIe,sBAAWC,eAAX,EAAmB;EAAE/C,IAAI,EAAE;AAAR,CAAnB,EAA4CL,WAA5C,C"}
@@ -201,6 +201,9 @@ var styles = function styles(theme) {
201
201
  width: "initial",
202
202
  flexGrow: 1
203
203
  }),
204
+ inputDisabled: {
205
+ color: theme.hv.palette.atmosphere.atmo5
206
+ },
204
207
  inputResizable: {
205
208
  resize: "both",
206
209
  width: "100%"
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","names":["styles","theme","root","display","width","position","overflow","border","hv","palette","accent","acce1","backgroundColor","resizable","readOnly","disabled","atmosphere","atmo4","atmo3","invalid","semantic","sema4","inputRoot","margin","borderRadius","atmo1","inputRootFocused","background","outlineStyles","inputRootDisabled","cursor","inputRootMultiline","padding","height","minHeight","marginLeft","marginRight","input","spacing","xs","typography","normalText","textOverflow","outline","placeholderText","opacity","flexGrow","inputResizable","resize","inputBorderContainer","top","left","color"],"sources":["../../src/BaseInput/styles.js"],"sourcesContent":["import { outlineStyles } from \"../Focus/styles\";\n\nconst styles = (theme) => ({\n root: {\n display: \"inline-block\",\n width: \"100%\",\n position: \"relative\",\n \"& $inputRootMultiline\": {\n overflow: \"auto\",\n border: \"none\",\n },\n \"&:hover $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.accent.acce1}`,\n },\n },\n \"&:hover $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.accent.acce1,\n },\n \"&:focus-within $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.accent.acce1,\n },\n // IE fallback code (using focus-within-polyfill)\n \"&.focus-within $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.accent.acce1,\n },\n \"&:focus-within $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.accent.acce1}`,\n },\n },\n // IE fallback code (using focus-within-polyfill)\n \"&.focus-within $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.accent.acce1}`,\n },\n },\n },\n resizable: {\n width: \"auto\",\n },\n readOnly: {\n \"& $inputBorderContainer\": {\n backgroundColor: \"transparent\",\n },\n \"&:hover $inputBorderContainer\": {\n backgroundColor: \"transparent\",\n },\n \"&:focus-within $inputBorderContainer\": {\n backgroundColor: \"transparent\",\n },\n\n // multiline\n \"& $inputRootMultiline\": {\n \"& $input\": {\n border: \"1px solid transparent\",\n },\n },\n \"&:hover $inputRootMultiline\": {\n \"& $input\": {\n border: \"1px solid transparent\",\n },\n },\n \"&:focus-within $inputRootMultiline\": {\n \"& $input\": {\n border: \"1px solid transparent\",\n },\n },\n },\n disabled: {\n \"& $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo4,\n },\n \"&:hover $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo4,\n },\n \"& $inputRootMultiline\": {\n \"& $input\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n border: `1px solid ${theme.hv.palette.atmosphere.atmo4}`,\n },\n },\n \"&:hover $inputRootMultiline\": {\n \"& $input\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n border: `1px solid ${theme.hv.palette.atmosphere.atmo4}`,\n },\n },\n },\n invalid: {\n \"&:not($disabled)\": {\n \"& $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.semantic.sema4,\n },\n \"&:hover $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.semantic.sema4,\n },\n \"& $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.semantic.sema4}`,\n },\n },\n \"&:hover $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.semantic.sema4}`,\n },\n },\n \"&:focus-within $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.semantic.sema4}`,\n },\n },\n // IE fallback code (using focus-within-polyfill)\n \"&.focus-within $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.semantic.sema4}`,\n },\n },\n },\n },\n\n inputRoot: {\n margin: 0,\n width: \"100%\",\n borderRadius: \"2px\",\n backgroundColor: theme.hv.palette.atmosphere.atmo1,\n },\n inputRootFocused: {\n background: theme.hv.palette.atmosphere.atmo1,\n ...outlineStyles,\n \"&:hover\": {\n background: theme.hv.palette.atmosphere.atmo1,\n },\n },\n inputRootDisabled: {\n background: theme.hv.palette.atmosphere.atmo3,\n \"&:hover\": {\n background: theme.hv.palette.atmosphere.atmo3,\n cursor: \"not-allowed\",\n },\n cursor: \"not-allowed\",\n },\n inputRootMultiline: {\n padding: 0,\n backgroundColor: \"transparent\",\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.atmosphere.atmo4}`,\n borderRadius: \"2px\",\n backgroundColor: theme.hv.palette.atmosphere.atmo1,\n height: \"auto\",\n minHeight: \"21px\",\n padding: \"5px 10px\",\n overflow: \"auto\",\n marginLeft: \"0px\",\n marginRight: \"0px\",\n },\n },\n\n input: {\n height: \"21px\",\n marginLeft: theme.hv.spacing.xs,\n marginRight: theme.hv.spacing.xs,\n padding: \"6px 0 5px\",\n ...theme.hv.typography.normalText,\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n outline: \"none\",\n \"&::placeholder\": {\n ...theme.hv.typography.placeholderText,\n opacity: 1,\n },\n \"&::-ms-clear\": {\n display: \"none\",\n },\n width: \"initial\",\n flexGrow: 1,\n },\n inputResizable: {\n resize: \"both\",\n width: \"100%\",\n },\n\n inputBorderContainer: {\n position: \"absolute\",\n width: \"calc(100% - 4px)\",\n height: \"1px\",\n top: \"31px\",\n left: \"2px\",\n backgroundColor: theme.hv.palette.atmosphere.atmo4,\n },\n\n \"@global\": {\n \"input:-webkit-autofill\": {\n \"-webkit-box-shadow\": `0 0 0px 1000px ${theme.hv.palette.atmosphere.atmo1} inset`,\n \"-webkit-text-fill-color\": theme.hv.typography.normalText.color,\n },\n },\n});\n\nexport default styles;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;EAAA,OAAY;IACzBC,IAAI,EAAE;MACJC,OAAO,EAAE,cADL;MAEJC,KAAK,EAAE,MAFH;MAGJC,QAAQ,EAAE,UAHN;MAIJ,yBAAyB;QACvBC,QAAQ,EAAE,MADa;QAEvBC,MAAM,EAAE;MAFe,CAJrB;MAQJ,+BAA+B;QAC7B,YAAY;UACVA,MAAM,sBAAeN,KAAK,CAACO,EAAN,CAASC,OAAT,CAAiBC,MAA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W,EAAEnC,KAAK,CAACO,EAAN,CAAS8B,OAAT,CAAiBC,EAH3B;MAIHP,OAAO,EAAE;IAJN,GAKA/B,KAAK,CAACO,EAAN,CAASgC,UAAT,CAAoBC,UALpB;MAMHnC,QAAQ,EAAE,QANP;MAOHoC,YAAY,EAAE,UAPX;MAQHC,OAAO,EAAE,MARN;MASH,kDACK1C,KAAK,CAACO,EAAN,CAASgC,UAAT,CAAoBI,eADzB;QAEEC,OAAO,EAAE;MAFX,EATG;MAaH,gBAAgB;QACd1C,OAAO,EAAE;MADK,CAbb;MAgBHC,KAAK,EAAE,SAhBJ;MAiBH0C,QAAQ,EAAE;IAjBP,EA5JoB;IA+KzBC,cAAc,EAAE;MACdC,MAAM,EAAE,MADM;MAEd5C,KAAK,EAAE;IAFO,CA/KS;IAoLzB6C,oBAAoB,EAAE;MACpB5C,QAAQ,EAAE,UADU;MAEpBD,KAAK,EAAE,kBAFa;MAGpB6B,MAAM,EAAE,KAHY;MAIpBiB,GAAG,EAAE,MAJe;MAKpBC,IAAI,EAAE,KALc;MAMpBvC,eAAe,EAAEX,KAAK,CAACO,EAAN,CAASC,OAAT,CAAiBO,UAAjB,CAA4BC;IANzB,CApLG;IA6LzB,WAAW;MACT,0BAA0B;QACxB,+CAAwChB,KAAK,CAACO,EAAN,CAASC,OAAT,CAAiBO,UAAjB,CAA4BS,KAApE,WADwB;QAExB,2BAA2BxB,KAAK,CAACO,EAAN,CAASgC,UAAT,CAAoBC,UAApB,CAA+BW;MAFlC;IADjB;EA7Lc,CAAZ;AAAA,CAAf;;eAqMepD,M"}
1
+ {"version":3,"file":"styles.js","names":["styles","theme","root","display","width","position","overflow","border","hv","palette","accent","acce1","backgroundColor","resizable","readOnly","disabled","atmosphere","atmo4","atmo3","invalid","semantic","sema4","inputRoot","margin","borderRadius","atmo1","inputRootFocused","background","outlineStyles","inputRootDisabled","cursor","inputRootMultiline","padding","height","minHeight","marginLeft","marginRight","input","spacing","xs","typography","normalText","textOverflow","outline","placeholderText","opacity","flexGrow","inputDisabled","color","atmo5","inputResizable","resize","inputBorderContainer","top","left"],"sources":["../../src/BaseInput/styles.js"],"sourcesContent":["import { outlineStyles } from \"../Focus/styles\";\n\nconst styles = (theme) => ({\n root: {\n display: \"inline-block\",\n width: \"100%\",\n position: \"relative\",\n \"& $inputRootMultiline\": {\n overflow: \"auto\",\n border: \"none\",\n },\n \"&:hover $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.accent.acce1}`,\n },\n },\n \"&:hover $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.accent.acce1,\n },\n \"&:focus-within $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.accent.acce1,\n },\n // IE fallback code (using focus-within-polyfill)\n \"&.focus-within $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.accent.acce1,\n },\n \"&:focus-within $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.accent.acce1}`,\n },\n },\n // IE fallback code (using focus-within-polyfill)\n \"&.focus-within $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.accent.acce1}`,\n },\n },\n },\n resizable: {\n width: \"auto\",\n },\n readOnly: {\n \"& $inputBorderContainer\": {\n backgroundColor: \"transparent\",\n },\n \"&:hover $inputBorderContainer\": {\n backgroundColor: \"transparent\",\n },\n \"&:focus-within $inputBorderContainer\": {\n backgroundColor: \"transparent\",\n },\n\n // multiline\n \"& $inputRootMultiline\": {\n \"& $input\": {\n border: \"1px solid transparent\",\n },\n },\n \"&:hover $inputRootMultiline\": {\n \"& $input\": {\n border: \"1px solid transparent\",\n },\n },\n \"&:focus-within $inputRootMultiline\": {\n \"& $input\": {\n border: \"1px solid transparent\",\n },\n },\n },\n disabled: {\n \"& $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo4,\n },\n \"&:hover $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo4,\n },\n \"& $inputRootMultiline\": {\n \"& $input\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n border: `1px solid ${theme.hv.palette.atmosphere.atmo4}`,\n },\n },\n \"&:hover $inputRootMultiline\": {\n \"& $input\": {\n backgroundColor: theme.hv.palette.atmosphere.atmo3,\n border: `1px solid ${theme.hv.palette.atmosphere.atmo4}`,\n },\n },\n },\n invalid: {\n \"&:not($disabled)\": {\n \"& $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.semantic.sema4,\n },\n \"&:hover $inputBorderContainer\": {\n backgroundColor: theme.hv.palette.semantic.sema4,\n },\n \"& $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.semantic.sema4}`,\n },\n },\n \"&:hover $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.semantic.sema4}`,\n },\n },\n \"&:focus-within $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.semantic.sema4}`,\n },\n },\n // IE fallback code (using focus-within-polyfill)\n \"&.focus-within $inputRootMultiline\": {\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.semantic.sema4}`,\n },\n },\n },\n },\n\n inputRoot: {\n margin: 0,\n width: \"100%\",\n borderRadius: \"2px\",\n backgroundColor: theme.hv.palette.atmosphere.atmo1,\n },\n inputRootFocused: {\n background: theme.hv.palette.atmosphere.atmo1,\n ...outlineStyles,\n \"&:hover\": {\n background: theme.hv.palette.atmosphere.atmo1,\n },\n },\n inputRootDisabled: {\n background: theme.hv.palette.atmosphere.atmo3,\n \"&:hover\": {\n background: theme.hv.palette.atmosphere.atmo3,\n cursor: \"not-allowed\",\n },\n cursor: \"not-allowed\",\n },\n inputRootMultiline: {\n padding: 0,\n backgroundColor: \"transparent\",\n \"& $input\": {\n border: `1px solid ${theme.hv.palette.atmosphere.atmo4}`,\n borderRadius: \"2px\",\n backgroundColor: theme.hv.palette.atmosphere.atmo1,\n height: \"auto\",\n minHeight: \"21px\",\n padding: \"5px 10px\",\n overflow: \"auto\",\n marginLeft: \"0px\",\n marginRight: \"0px\",\n },\n },\n\n input: {\n height: \"21px\",\n marginLeft: theme.hv.spacing.xs,\n marginRight: theme.hv.spacing.xs,\n padding: \"6px 0 5px\",\n ...theme.hv.typography.normalText,\n overflow: \"hidden\",\n textOverflow: \"ellipsis\",\n outline: \"none\",\n \"&::placeholder\": {\n ...theme.hv.typography.placeholderText,\n opacity: 1,\n },\n \"&::-ms-clear\": {\n display: \"none\",\n },\n width: \"initial\",\n flexGrow: 1,\n },\n inputDisabled: {\n color: theme.hv.palette.atmosphere.atmo5,\n },\n inputResizable: {\n resize: \"both\",\n width: \"100%\",\n },\n\n inputBorderContainer: {\n position: \"absolute\",\n width: \"calc(100% - 4px)\",\n height: \"1px\",\n top: \"31px\",\n left: \"2px\",\n backgroundColor: theme.hv.palette.atmosphere.atmo4,\n },\n\n \"@global\": {\n \"input:-webkit-autofill\": {\n \"-webkit-box-shadow\": `0 0 0px 1000px ${theme.hv.palette.atmosphere.atmo1} inset`,\n \"-webkit-text-fill-color\": theme.hv.typography.normalText.color,\n },\n },\n});\n\nexport default styles;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;EAAA,OAAY;IACzBC,IAAI,EAAE;MACJC,OAAO,EAAE,cADL;MAEJC,KAAK,EAAE,MAFH;MAGJC,QAAQ,EAAE,UAHN;MAIJ,yBAAyB;QACvBC,QAAQ,EAAE,MADa;QAEvBC,MAAM,EAAE;MAFe,CAJrB;MAQJ,+BAA+B;QAC7B,YAAY;UACVA,MAAM,sBAAeN,KAAK,CAACO,EAAN,CAASC,OAAT,CAAiBC,MAAjB,CAAwBC,KAAvC;QADI;MADiB,CAR3B;MAaJ,iCAAiC;QAC/BC,eAAe,EAAEX,KAAK,CAACO,EAAN,CAASC,OAAT,CAAiBC,MAAjB,CAAwBC;MADV,CAb7B;MAgBJ,wCAAwC;QACtCC,eAAe,EAAEX,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,EAAE,UAPX;MAQHC,OAAO,EAAE,MARN;MASH,kDACK1C,KAAK,CAACO,EAAN,CAASgC,UAAT,CAAoBI,eADzB;QAEEC,OAAO,EAAE;MAFX,EATG;MAaH,gBAAgB;QACd1C,OAAO,EAAE;MADK,CAbb;MAgBHC,KAAK,EAAE,SAhBJ;MAiBH0C,QAAQ,EAAE;IAjBP,EA5JoB;IA+KzBC,aAAa,EAAE;MACbC,KAAK,EAAE/C,KAAK,CAACO,EAAN,CAASC,OAAT,CAAiBO,UAAjB,CAA4BiC;IADtB,CA/KU;IAkLzBC,cAAc,EAAE;MACdC,MAAM,EAAE,MADM;MAEd/C,KAAK,EAAE;IAFO,CAlLS;IAuLzBgD,oBAAoB,EAAE;MACpB/C,QAAQ,EAAE,UADU;MAEpBD,KAAK,EAAE,kBAFa;MAGpB6B,MAAM,EAAE,KAHY;MAIpBoB,GAAG,EAAE,MAJe;MAKpBC,IAAI,EAAE,KALc;MAMpB1C,eAAe,EAAEX,KAAK,CAACO,EAAN,CAASC,OAAT,CAAiBO,UAAjB,CAA4BC;IANzB,CAvLG;IAgMzB,WAAW;MACT,0BAA0B;QACxB,+CAAwChB,KAAK,CAACO,EAAN,CAASC,OAAT,CAAiBO,UAAjB,CAA4BS,KAApE,WADwB;QAExB,2BAA2BxB,KAAK,CAACO,EAAN,CAASgC,UAAT,CAAoBC,UAApB,CAA+BO;MAFlC;IADjB;EAhMc,CAAZ;AAAA,CAAf;;eAwMehD,M"}
@@ -0,0 +1,25 @@
1
+ import { StandardProps } from "@material-ui/core";
2
+ import { HvPlotProps } from "./Plot";
3
+
4
+ export type HvChartClassKey = "root";
5
+
6
+ export interface HvChartProps extends StandardProps<HvPlotProps, HvChartClassKey> {
7
+ /**
8
+ * Defines if should use a single or multiline tooltip.
9
+ */
10
+ tooltipType?: "single" | "multiple";
11
+ /**
12
+ * Defines the X axis title.
13
+ */
14
+ xAxisTitle?: string;
15
+ /**
16
+ * Defines the Y axis title.
17
+ */
18
+ yAxisTitle?: string;
19
+ /**
20
+ * Defines the chart subtitle.
21
+ */
22
+ subtitle?: string;
23
+ }
24
+
25
+ export default function HvChart(props: HvChartProps): JSX.Element | null;