@hybridcore/ui 1.6.0 → 1.6.2

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 (291) hide show
  1. package/CATALOG.md +179 -0
  2. package/README.md +1 -2
  3. package/dist/AccordionSummary-CJppWeqF.js +781 -0
  4. package/dist/Add-CqcD1PWb.js +403 -0
  5. package/dist/Box-DqUMmZjL.js +31 -0
  6. package/dist/{Button-CvE2gnly.js → Button-C5yquWAB.js} +120 -133
  7. package/dist/ButtonBase-BEF7oTOe.js +887 -0
  8. package/dist/{Delete-CW0UZv1m.js → Delete-BdyYpINH.js} +9 -8
  9. package/dist/{DialogContent-B3nbEbuv.js → DialogContent-BvVjD9z3.js} +127 -124
  10. package/dist/FormGroup-CpBsIyYR.js +89 -0
  11. package/dist/{IconButton-CHwRQF-g.js → IconButton-BoGwbvrP.js} +41 -43
  12. package/dist/InputLabel-Dd8RrneV.js +341 -0
  13. package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DwqJqzuM.js} +51 -53
  14. package/dist/Modal-MUZygjmQ.js +1158 -0
  15. package/dist/Paper-BkQLdsCI.js +582 -0
  16. package/dist/Select-DHUl_uG3.js +3916 -0
  17. package/dist/SwitchBase-DTndTqI8.js +235 -0
  18. package/dist/TextField-e2oKaUN1.js +669 -0
  19. package/dist/TransitionGroupContext-BDAp2T0O.js +96 -0
  20. package/dist/{Typography-CxbneZy_.js → Typography-DgsSLCFC.js} +53 -53
  21. package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
  22. package/dist/assets/index4.css +1 -0
  23. package/dist/clsx-OuTLNxxd.js +16 -0
  24. package/dist/components/access/helpers.js +1 -1
  25. package/dist/components/access/index.js +8 -15
  26. package/dist/components/access/logic.js +25 -0
  27. package/dist/components/button/index.js +10 -0
  28. package/dist/components/button/logic.js +26 -0
  29. package/dist/components/button/styled.js +9 -0
  30. package/dist/components/card/index.js +158 -498
  31. package/dist/components/card/logic.js +24 -0
  32. package/dist/components/card/styled.js +226 -51
  33. package/dist/components/card-alternate/index.js +111 -139
  34. package/dist/components/card-alternate/logic.js +17 -0
  35. package/dist/components/card-alternate/styled.js +113 -19
  36. package/dist/components/charts/_common/chart-error.js +19 -0
  37. package/dist/components/charts/candlestick/index.js +3 -3
  38. package/dist/components/charts/candlestick/logic.js +123 -113
  39. package/dist/components/charts/chart-wrapper/index.js +5 -5
  40. package/dist/components/charts/column-line-mix/index.js +9 -8
  41. package/dist/components/charts/column-line-mix/logic.js +68 -71
  42. package/dist/components/charts/drill-down-treemap/index.js +8 -7
  43. package/dist/components/charts/drill-down-treemap/logic.js +138 -144
  44. package/dist/components/charts/drill-down-voronoi-treemap/index.js +9 -8
  45. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +222 -228
  46. package/dist/components/charts/heatmap/index.js +9 -8
  47. package/dist/components/charts/heatmap/logic.js +167 -173
  48. package/dist/components/charts/highlighting-line-data/index.js +3 -3
  49. package/dist/components/charts/line/index.js +9 -8
  50. package/dist/components/charts/line/logic.js +74 -79
  51. package/dist/components/charts/logaritmic-scale/index.js +9 -8
  52. package/dist/components/charts/logaritmic-scale/logic.js +63 -69
  53. package/dist/components/charts/multiple-value-axes/index.js +9 -8
  54. package/dist/components/charts/multiple-value-axes/logic.js +101 -107
  55. package/dist/components/charts/nested-pie/index.js +9 -8
  56. package/dist/components/charts/nested-pie/logic.js +62 -68
  57. package/dist/components/charts/packed-circles/index.js +7 -6
  58. package/dist/components/charts/packed-circles/logic.js +50 -56
  59. package/dist/components/charts/pie-chart/index.js +9 -8
  60. package/dist/components/charts/pie-chart/logic.js +49 -54
  61. package/dist/components/charts/stacked-area-radar/index.js +8 -7
  62. package/dist/components/charts/stacked-area-radar/logic.js +113 -118
  63. package/dist/components/charts/stacked-column-chart/index.js +9 -8
  64. package/dist/components/charts/stacked-column-chart/logic.js +78 -84
  65. package/dist/components/charts/xy-chart/index.js +9 -8
  66. package/dist/components/charts/xy-chart/logic.js +56 -60
  67. package/dist/components/collapsible-card/index.js +11 -10
  68. package/dist/components/collapsible-card/styled.js +1 -1
  69. package/dist/components/color-picker/index.js +7120 -0
  70. package/dist/components/color-picker/logic.js +18 -0
  71. package/dist/components/color-picker/styled.js +7 -0
  72. package/dist/components/confirm/dialog.js +3 -3
  73. package/dist/components/confirm/index.js +1 -1
  74. package/dist/components/container/index.js +28 -269
  75. package/dist/components/container/logic.js +12 -0
  76. package/dist/components/container/styled.js +29 -0
  77. package/dist/components/context-menu/index.js +25 -457
  78. package/dist/components/context-menu/logic.js +14 -0
  79. package/dist/components/context-menu/styled.js +40 -0
  80. package/dist/components/data-grid/index.js +22 -0
  81. package/dist/components/data-grid/logic.js +15 -0
  82. package/dist/components/data-grid/styled.js +20 -0
  83. package/dist/components/data-map/components/controls/index.js +4 -6
  84. package/dist/components/data-map/index.js +11 -11
  85. package/dist/components/data-security-selectors/dissemination-list/index.js +192 -191
  86. package/dist/components/data-security-selectors/dissemination-list/styled.js +12 -12
  87. package/dist/components/data-security-selectors/security-level/index.js +39 -91
  88. package/dist/components/data-security-selectors/security-level/logic.js +28 -0
  89. package/dist/components/data-security-selectors/security-level/styled.js +53 -0
  90. package/dist/components/date-picker-with-custom-range/index.js +1 -1
  91. package/dist/components/date-range-picker/index.js +2748 -0
  92. package/dist/components/date-range-picker/styled.js +14 -0
  93. package/dist/components/date-time-picker/index.js +45 -46
  94. package/dist/components/divider/index.js +11 -11
  95. package/dist/components/document-viewer/components/action-buttons/index.js +15 -15
  96. package/dist/components/document-viewer/components/navigation/index.js +9 -9
  97. package/dist/components/document-viewer/components/viewer/index.js +31 -35
  98. package/dist/components/document-viewer/index.js +31 -39
  99. package/dist/components/document-viewer/logic.js +41 -34
  100. package/dist/components/document-viewer/styled.js +115 -27
  101. package/dist/components/duration-select/index.js +27 -0
  102. package/dist/components/duration-select/logic.js +21 -0
  103. package/dist/components/duration-select/styled.js +26 -0
  104. package/dist/components/editable-text/index.js +20 -0
  105. package/dist/components/editable-text/logic.js +18 -0
  106. package/dist/components/editable-text/styled.js +22 -0
  107. package/dist/components/geometry-picker/coordinate/index.js +29 -29
  108. package/dist/components/geometry-picker/edit/index.js +18 -18
  109. package/dist/components/geometry-picker/geometry/index.js +67 -67
  110. package/dist/components/geometry-picker/geometry/map-overlay.js +6 -6
  111. package/dist/components/geometry-picker/index.js +69 -85
  112. package/dist/components/geometry-picker/kml/index.js +16 -16
  113. package/dist/components/geometry-picker/logic.js +50 -57
  114. package/dist/components/geometry-picker/map/index.js +8 -8
  115. package/dist/components/geometry-picker/parser/coordinate-input/index.js +4 -4
  116. package/dist/components/geometry-picker/parser/index.js +46 -50
  117. package/dist/components/geometry-picker/parser/styled.js +22 -4
  118. package/dist/components/geometry-picker/styled.js +97 -37
  119. package/dist/components/geometry-picker/wkt/index.js +13 -13
  120. package/dist/components/heat-map/components/controls/index.js +4 -6
  121. package/dist/components/heat-map/components/legend/index.js +15 -17
  122. package/dist/components/heat-map/index.js +7 -7
  123. package/dist/components/instance-form/components/TopLabelWrapper.js +8 -48
  124. package/dist/components/instance-form/components/composite-list/index.js +5 -3
  125. package/dist/components/instance-form/components/composite-matrix/components/editable-table/index.js +83 -74
  126. package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +45 -66
  127. package/dist/components/instance-form/components/composite-matrix/components/form/index.js +60 -75
  128. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2425 -2422
  129. package/dist/components/instance-form/components/composite-matrix/components/table/index.js +33 -52
  130. package/dist/components/instance-form/components/composite-matrix/index.js +30 -36
  131. package/dist/components/instance-form/components/policy-list/index.js +47 -81
  132. package/dist/components/instance-form/components/variable/index.js +6 -11
  133. package/dist/components/instance-form/components/variables/index.js +48 -55
  134. package/dist/components/instance-form/helpers.js +9 -0
  135. package/dist/components/instance-form/index.js +402 -518
  136. package/dist/components/instance-form/logic.js +115 -0
  137. package/dist/components/instance-form/styled.js +487 -0
  138. package/dist/components/instance-hierarchy-table/index.js +32 -37
  139. package/dist/components/instance-hierarchy-table/logic.js +16 -0
  140. package/dist/components/instance-hierarchy-table/styled.js +53 -12
  141. package/dist/components/instance-table/index.js +30 -135
  142. package/dist/components/instance-table/logic.js +122 -0
  143. package/dist/components/instance-table/styled.js +53 -11
  144. package/dist/components/instance-variable-list/index.js +11 -11
  145. package/dist/components/loading/index.js +15 -9
  146. package/dist/components/loading/logic.js +15 -0
  147. package/dist/components/loading/styled.js +26 -19
  148. package/dist/components/map/index.js +28 -6
  149. package/dist/components/map/styled.js +1 -1
  150. package/dist/components/notification/index.js +67 -0
  151. package/dist/components/notification/logic.js +30 -0
  152. package/dist/components/notification/store.js +23 -0
  153. package/dist/components/notification/styled.js +52 -0
  154. package/dist/components/object-profile-card/components/avatar/index.js +9 -10
  155. package/dist/components/object-profile-card/index.js +19 -20
  156. package/dist/components/paginated-list/index.js +2 -3
  157. package/dist/components/phone-input/index.js +18 -22
  158. package/dist/components/phone-input/logic.js +14 -0
  159. package/dist/components/phone-input/styled.js +12 -4
  160. package/dist/components/placeholder/index.js +10 -0
  161. package/dist/components/placeholder/logic.js +12 -0
  162. package/dist/components/placeholder/styled.js +32 -0
  163. package/dist/components/positional-tooltip/index.js +24 -0
  164. package/dist/components/positional-tooltip/styled.js +17 -0
  165. package/dist/components/property-mapping/index.js +204 -423
  166. package/dist/components/property-mapping/logic.js +156 -0
  167. package/dist/components/property-mapping/styled.js +199 -0
  168. package/dist/components/prr-map/components/controls/index.js +4 -6
  169. package/dist/components/prr-map/components/legend/index.js +26 -28
  170. package/dist/components/prr-map/index.js +5 -5
  171. package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
  172. package/dist/components/range-selector/components/date-range/index.js +87 -4221
  173. package/dist/components/range-selector/components/geometry-range/index.js +11 -17
  174. package/dist/components/range-selector/components/number-range/index.js +48 -53
  175. package/dist/components/range-selector/components/string-range/index.js +15 -17
  176. package/dist/components/range-selector/index.js +63 -57
  177. package/dist/components/range-selector/logic.js +12 -0
  178. package/dist/components/range-selector/styled.js +4294 -0
  179. package/dist/components/raster-grid-map/components/controls/index.js +4 -6
  180. package/dist/components/raster-grid-map/components/legend/index.js +4 -6
  181. package/dist/components/raster-grid-map/index.js +5 -5
  182. package/dist/components/scroll-drag/index.js +22 -0
  183. package/dist/components/scroll-drag/logic.js +39 -0
  184. package/dist/components/scroll-drag/styled.js +17 -0
  185. package/dist/components/search-input/logic.js +35 -33
  186. package/dist/components/simple-pivot-table/index.js +12 -12
  187. package/dist/components/sortable-list/index.js +599 -0
  188. package/dist/components/sortable-list/logic.js +18 -0
  189. package/dist/components/sortable-list/styled.js +38 -0
  190. package/dist/components/static-text/index.js +6 -6
  191. package/dist/components/stats-box/index.js +12 -0
  192. package/dist/components/stats-box/styled.js +36 -0
  193. package/dist/components/template-filters/components/filter/index.js +13 -18
  194. package/dist/components/template-filters/components/tab-panel/index.js +8 -16
  195. package/dist/components/template-filters/index.js +21 -29
  196. package/dist/components/template-filters/logic.js +18 -0
  197. package/dist/components/template-filters/styled.js +44 -1
  198. package/dist/components/template-form/components/property-list/index.js +27 -26
  199. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  200. package/dist/components/template-form/components/property-list/property-list-form.js +758 -14
  201. package/dist/components/template-form/components/recognition-property-list/index.js +11 -11
  202. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  203. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +24 -23
  204. package/dist/components/template-form/components/select-icon/index.js +24 -24
  205. package/dist/components/template-form/helpers.js +17 -0
  206. package/dist/components/template-form/index.js +270 -309
  207. package/dist/components/template-form/logic.js +69 -0
  208. package/dist/components/template-form/styled.js +84 -0
  209. package/dist/components/template-property-filters/index.js +45 -95
  210. package/dist/components/template-property-filters/logic.js +27 -0
  211. package/dist/components/template-property-filters/property.js +105 -165
  212. package/dist/components/template-property-filters/styled.js +121 -20
  213. package/dist/components/text-overflow/index.js +6 -0
  214. package/dist/components/text-overflow/styled.js +13 -0
  215. package/dist/components/timeline/index.js +12 -12
  216. package/dist/components/toggle-view-button/index.js +35 -0
  217. package/dist/components/toggle-view-button/logic.js +22 -0
  218. package/dist/components/toggle-view-button/styled.js +11 -0
  219. package/dist/components/tree-select/index.js +52 -67
  220. package/dist/components/tree-select/logic.js +59 -0
  221. package/dist/components/tree-select/styled.js +45 -62
  222. package/dist/components/treeview-filter/index.js +43 -65
  223. package/dist/components/treeview-filter/item/index.js +43 -42
  224. package/dist/components/treeview-filter/item-label/index.js +17 -37
  225. package/dist/components/treeview-filter/logic.js +28 -0
  226. package/dist/components/treeview-filter/styled.js +86 -0
  227. package/dist/components/uploader/index.js +532 -567
  228. package/dist/components/uploader/logic.js +74 -0
  229. package/dist/components/uploader/styled.js +93 -46
  230. package/dist/components/visually-hidden-input/index.js +4 -0
  231. package/dist/components/visually-hidden-input/styled.js +18 -0
  232. package/dist/createChainedFunction-C0nujS3O.js +9 -0
  233. package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-Ch_cT8az.js} +69 -68
  234. package/dist/createSvgIcon-DuDuASu1.js +62 -0
  235. package/dist/{dialog-DcwXug9J.js → dialog-BYRnCztH.js} +18 -18
  236. package/dist/formControlState-vgaj2ksH.js +10 -0
  237. package/dist/generateUtilityClasses-C3ivN9Ie.js +2973 -0
  238. package/dist/{helpers-B4UL9NMD.js → helpers-D4uXfBfO.js} +2 -2
  239. package/dist/index-BtlzPygz.js +470 -0
  240. package/dist/index-DH6qsPBn.js +153 -0
  241. package/dist/{index-syTc6m_V.js → index-e9xTIYWt.js} +87 -87
  242. package/dist/main.d.ts +1722 -562
  243. package/dist/main.js +161 -128
  244. package/dist/ownerWindow-wg6foiOE.js +10 -0
  245. package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
  246. package/dist/styled-Db1RdcPA.js +323 -0
  247. package/dist/unsupportedProp-DuqR2hj9.js +36 -0
  248. package/dist/useId-BW-oWmul.js +19 -0
  249. package/dist/useMobilePicker-CY8ndYRL.js +8279 -0
  250. package/dist/useSlot-B_Q4vnX5.js +42 -0
  251. package/package.json +15 -7
  252. package/dist/AccordionSummary-DgAwVTk8.js +0 -742
  253. package/dist/Add-DJLrrVHm.js +0 -382
  254. package/dist/Box-p6OtTUEo.js +0 -30
  255. package/dist/ButtonBase-2bPw77UP.js +0 -961
  256. package/dist/CardContent-CSHh-ZlM.js +0 -74
  257. package/dist/Checkbox-CWRMFTBp.js +0 -421
  258. package/dist/FormControl-BLbrq4C7.js +0 -1636
  259. package/dist/FormControlLabel-C8SPv14J.js +0 -195
  260. package/dist/InputAdornment-DLxWUE6H.js +0 -157
  261. package/dist/List-tqElle9C.js +0 -121
  262. package/dist/ListItem-CfjsIg4B.js +0 -430
  263. package/dist/Modal-DhPpOoGB.js +0 -1299
  264. package/dist/Paper-2B03OBmZ.js +0 -169
  265. package/dist/Select-BgYwkZgI.js +0 -2613
  266. package/dist/TextField-1yCesIbH.js +0 -457
  267. package/dist/assertThisInitialized-BUtkG-md.js +0 -13
  268. package/dist/capitalize-ciszXJ7R.js +0 -9
  269. package/dist/components/instance-form/components/composite-list/styled.js +0 -73
  270. package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +0 -1
  271. package/dist/components/instance-form/components/composite-matrix/styled.js +0 -69
  272. package/dist/components/key-protection/index.js +0 -4
  273. package/dist/components/key-protection/menu.js +0 -85
  274. package/dist/components/key-protection/utils.js +0 -10
  275. package/dist/components/treeview-filter/item/styled.js +0 -39
  276. package/dist/createSvgIcon-BjpIhJ30.js +0 -71
  277. package/dist/createTheme-DYxDnE9u.js +0 -612
  278. package/dist/index-BMS1Otro.js +0 -183
  279. package/dist/index-CcdvNlgr.js +0 -503
  280. package/dist/index-kCJ_Zvl8.js +0 -34
  281. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  282. package/dist/isMuiElement-CxT3_ACP.js +0 -13
  283. package/dist/listItemTextClasses-C3lndiXO.js +0 -16
  284. package/dist/property-list-form-zZQfpR0X.js +0 -386
  285. package/dist/styled-eZwjUruw.js +0 -12
  286. package/dist/unsupportedProp-BND8AB6O.js +0 -25
  287. package/dist/useId-B4-oF9Mq.js +0 -34
  288. package/dist/useMobilePicker-BLg3Blg8.js +0 -7589
  289. package/dist/useThemeProps-BzzHcQyd.js +0 -58
  290. package/dist/utils-BDNynJcd.js +0 -365
  291. package/dist/utils-Bq0ye5vf.js +0 -115
@@ -1,22 +1,21 @@
1
- import { styled as i, Card as t, Box as n } from "@mui/material";
2
- const r = i(t, {
3
- name: "SNAlternateCard",
4
- // The component name
5
- slot: "root"
6
- // The slot name
7
- })(({ theme: a }) => ({
1
+ import { styled as t, Card as i, Box as r, Typography as n, Skeleton as l } from "@mui/material";
2
+ const a = (e) => e !== "ownerState", s = t(i, {
3
+ name: "HCCardAlternate",
4
+ slot: "root",
5
+ shouldForwardProp: a
6
+ })(({ theme: e }) => ({
8
7
  position: "relative",
9
8
  display: "flex",
10
- padding: a.spacing(3),
11
- paddingTop: a.spacing(6),
12
- gap: a.spacing(2),
9
+ padding: e.spacing(3),
10
+ paddingTop: e.spacing(6),
11
+ gap: e.spacing(2),
13
12
  "& .MuiCardMedia-root": {
14
- borderRadius: a.shape.borderRadius
13
+ borderRadius: e.shape.borderRadius
15
14
  },
16
15
  "& .MuiCardContent-root, & .MuiCardContent-root:last-child": {
17
16
  display: "flex",
18
17
  flex: 1,
19
- gap: a.spacing(3),
18
+ gap: e.spacing(3),
20
19
  padding: 0,
21
20
  margin: 0
22
21
  },
@@ -24,10 +23,17 @@ const r = i(t, {
24
23
  visibility: "visible",
25
24
  opacity: 1
26
25
  }
27
- })), e = i(n, {
28
- name: "SNAlternateCard",
29
- slot: "menuContainer"
30
- })(() => ({
26
+ })), p = t(r, {
27
+ name: "HCCardAlternate",
28
+ slot: "body",
29
+ shouldForwardProp: a
30
+ })({
31
+ flex: 1
32
+ }), C = t(r, {
33
+ name: "HCCardAlternate",
34
+ slot: "menuContainer",
35
+ shouldForwardProp: a
36
+ })({
31
37
  position: "absolute",
32
38
  top: 8,
33
39
  right: 8,
@@ -38,8 +44,96 @@ const r = i(t, {
38
44
  visibility: "hidden",
39
45
  opacity: 0,
40
46
  transition: "0.3s all"
41
- }));
47
+ }), c = t(r, {
48
+ name: "HCCardAlternate",
49
+ slot: "headerRow",
50
+ shouldForwardProp: a
51
+ })({
52
+ display: "flex",
53
+ alignItems: "center"
54
+ }), b = t(r, {
55
+ name: "HCCardAlternate",
56
+ slot: "avatarContainer",
57
+ shouldForwardProp: a
58
+ })(({ theme: e }) => ({
59
+ marginRight: e.spacing(2)
60
+ })), g = t(r, {
61
+ name: "HCCardAlternate",
62
+ slot: "titleColumn",
63
+ shouldForwardProp: a
64
+ })({
65
+ width: "100%",
66
+ minWidth: 0
67
+ }), w = t(n, {
68
+ name: "HCCardAlternate",
69
+ slot: "title",
70
+ shouldForwardProp: a
71
+ })(({ ownerState: e }) => ({
72
+ marginBottom: 0,
73
+ overflow: "hidden",
74
+ textOverflow: "ellipsis",
75
+ display: "-webkit-box",
76
+ WebkitLineClamp: 3,
77
+ WebkitBoxOrient: "vertical",
78
+ cursor: e.clickable ? "pointer" : "default",
79
+ lineHeight: "22px",
80
+ overflowWrap: "break-word",
81
+ wordBreak: "break-word"
82
+ })), A = t(n, {
83
+ name: "HCCardAlternate",
84
+ slot: "subTitle",
85
+ shouldForwardProp: a
86
+ })(({ theme: e }) => ({
87
+ color: e.palette.text.secondary,
88
+ overflow: "hidden",
89
+ textOverflow: "ellipsis",
90
+ display: "-webkit-box",
91
+ WebkitLineClamp: 4,
92
+ WebkitBoxOrient: "vertical",
93
+ lineHeight: "16px",
94
+ overflowWrap: "break-word",
95
+ wordBreak: "break-word"
96
+ })), k = t(n, {
97
+ name: "HCCardAlternate",
98
+ slot: "text",
99
+ shouldForwardProp: a
100
+ })(({ ownerState: e, theme: o }) => ({
101
+ color: o.palette.text.secondary,
102
+ overflow: "hidden",
103
+ textOverflow: "ellipsis",
104
+ display: "-webkit-box",
105
+ WebkitLineClamp: 4,
106
+ WebkitBoxOrient: "vertical",
107
+ lineHeight: "16px",
108
+ cursor: e.clickable ? "pointer" : "default",
109
+ marginTop: o.spacing(2),
110
+ marginBottom: o.spacing(2),
111
+ overflowWrap: "break-word",
112
+ wordBreak: "break-word"
113
+ })), m = t(r, {
114
+ name: "HCCardAlternate",
115
+ slot: "rightMenu",
116
+ shouldForwardProp: a
117
+ })({}), x = t(l, {
118
+ name: "HCCardAlternate",
119
+ slot: "avatarSkeleton",
120
+ shouldForwardProp: a
121
+ })({}), v = t(l, {
122
+ name: "HCCardAlternate",
123
+ slot: "lineSkeleton",
124
+ shouldForwardProp: a
125
+ })({});
42
126
  export {
43
- e as AlternateCardMenuContainer,
44
- r as AlternateCardRoot
127
+ b as AlternateCardAvatarContainer,
128
+ x as AlternateCardAvatarSkeleton,
129
+ p as AlternateCardBody,
130
+ c as AlternateCardHeaderRow,
131
+ v as AlternateCardLineSkeleton,
132
+ C as AlternateCardMenuContainer,
133
+ m as AlternateCardRightMenu,
134
+ s as AlternateCardRoot,
135
+ A as AlternateCardSubTitle,
136
+ k as AlternateCardText,
137
+ w as AlternateCardTitle,
138
+ g as AlternateCardTitleColumn
45
139
  };
@@ -0,0 +1,19 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { Box as e, Alert as i } from "@mui/material";
3
+ const d = ({ message: t }) => /* @__PURE__ */ r(
4
+ e,
5
+ {
6
+ sx: {
7
+ width: "100%",
8
+ height: "100%",
9
+ display: "flex",
10
+ alignItems: "center",
11
+ justifyContent: "center",
12
+ padding: 2
13
+ },
14
+ children: /* @__PURE__ */ r(i, { severity: "error", variant: "outlined", sx: { width: "100%" }, children: t })
15
+ }
16
+ );
17
+ export {
18
+ d as ChartError
19
+ };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
2
  import { useCandlestickChartLogic as h } from "./logic.js";
3
3
  import { CandlestickChartRoot as f } from "./styled.js";
4
- function u(i) {
4
+ const x = (i) => {
5
5
  const {
6
6
  chartDivRef: n,
7
7
  data: o,
@@ -55,7 +55,7 @@ function u(i) {
55
55
  }
56
56
  )
57
57
  ] });
58
- }
58
+ };
59
59
  export {
60
- u as CandlestickChart
60
+ x as CandlestickChart
61
61
  };
@@ -1,16 +1,16 @@
1
- import { k as N, l as M, R as B, A as I, T as G } from "../../../AnimatedTheme-jnasw6rT.js";
2
- import { useTheme as U, useThemeProps as Z } from "@mui/material";
3
- import q from "lodash";
4
- import { useRef as P, useLayoutEffect as J, useEffect as K } from "react";
5
- import { m as S, e as j, c as X, p as Q } from "../../../ColorSet-C7vpNXhM.js";
6
- import { X as $, V as H } from "../../../AxisRenderer-DTyLLA6c.js";
1
+ import { k as N, l as M, R as B, A as U, T as G } from "../../../AnimatedTheme-jnasw6rT.js";
2
+ import { useTheme as Z, useThemeProps as q } from "@mui/material";
3
+ import J from "lodash";
4
+ import { useRef as C, useLayoutEffect as K, useEffect as S } from "react";
5
+ import { m as j, e as H, c as m, p as Q } from "../../../ColorSet-C7vpNXhM.js";
6
+ import { X as $, V as E } from "../../../AxisRenderer-DTyLLA6c.js";
7
7
  import { X as ee } from "../../../XYCursor-C8WktvKM.js";
8
8
  import { D as te } from "../../../DateAxis-YX3QNIB-.js";
9
- import { A as se, a as E } from "../../../AxisRendererY-C_ItLPNV.js";
9
+ import { A as se, a as z } from "../../../AxisRendererY-C_ItLPNV.js";
10
10
  import { C as T } from "../../../ColumnSeries-CjgdJ2QL.js";
11
11
  import { R as W } from "../../../RoundedRectangle-CWLi2PXn.js";
12
- import { D as z } from "../../../DataProcessor-CHDO51q4.js";
13
- class C extends W {
12
+ import { D as I } from "../../../DataProcessor-CHDO51q4.js";
13
+ class A extends W {
14
14
  _beforeChanged() {
15
15
  super._beforeChanged(), (this.isDirty("lowX0") || this.isDirty("lowY0") || this.isDirty("lowX1") || this.isDirty("lowY1") || this.isDirty("highX0") || this.isDirty("highX1") || this.isDirty("highY0") || this.isDirty("highY1")) && (this._clear = !0);
16
16
  }
@@ -20,19 +20,19 @@ class C extends W {
20
20
  e.moveTo(this.get("lowX0", 0), this.get("lowY0", 0)), e.lineTo(this.get("lowX1", 0), this.get("lowY1", 0)), e.moveTo(this.get("highX0", 0), this.get("highY0", 0)), e.lineTo(this.get("highX1", 0), this.get("highY1", 0));
21
21
  }
22
22
  }
23
- Object.defineProperty(C, "className", {
23
+ Object.defineProperty(A, "className", {
24
24
  enumerable: !0,
25
25
  configurable: !0,
26
26
  writable: !0,
27
27
  value: "Candlestick"
28
28
  });
29
- Object.defineProperty(C, "classNames", {
29
+ Object.defineProperty(A, "classNames", {
30
30
  enumerable: !0,
31
31
  configurable: !0,
32
32
  writable: !0,
33
- value: W.classNames.concat([C.className])
33
+ value: W.classNames.concat([A.className])
34
34
  });
35
- class k extends T {
35
+ class F extends T {
36
36
  constructor() {
37
37
  super(...arguments), Object.defineProperty(this, "columns", {
38
38
  enumerable: !0,
@@ -40,8 +40,8 @@ class k extends T {
40
40
  writable: !0,
41
41
  value: this.addDisposer(new N(M.new({
42
42
  themeTags: ["autocolor"]
43
- }), () => C._new(this._root, {
44
- themeTags: S(this.columns.template.get("themeTags", []), ["candlestick", "series", "column"])
43
+ }), () => A._new(this._root, {
44
+ themeTags: j(this.columns.template.get("themeTags", []), ["candlestick", "series", "column"])
45
45
  }, [this.columns.template])))
46
46
  });
47
47
  }
@@ -54,105 +54,105 @@ class k extends T {
54
54
  }
55
55
  _updateGraphics(e, i, h) {
56
56
  super._updateGraphics(e, i, h);
57
- const m = this.getRaw("xAxis"), w = this.getRaw("yAxis");
58
- let Y = this.get("vcy", 1), f = this.get("vcx", 1), l, x, r, o, c, u, p, d, s = this.get("locationX", e.get("locationX", 0.5)), g = this.get("locationY", e.get("locationY", 0.5)), y = this.get("openLocationX", e.get("openLocationX", s)), n = this.get("openLocationY", e.get("openLocationY", g)), b;
57
+ const Y = this.getRaw("xAxis"), x = this.getRaw("yAxis");
58
+ let y = this.get("vcy", 1), X = this.get("vcx", 1), a, c, r, o, u, g, d, w, s = this.get("locationX", e.get("locationX", 0.5)), p = this.get("locationY", e.get("locationY", 0.5)), f = this.get("openLocationX", e.get("openLocationX", s)), n = this.get("openLocationY", e.get("openLocationY", p)), b;
59
59
  if (h == 0) {
60
- let t = w.getDataItemPositionY(e, this._yOpenField, 1, Y), a = w.getDataItemPositionY(e, this._yField, 1, Y);
61
- o = w.getDataItemPositionY(e, this._yLowField, 1, Y), d = w.getDataItemPositionY(e, this._yHighField, 1, Y), p = Math.max(t, a), r = Math.min(t, a);
62
- let v = this._aLocationX0 + y - 0.5, D = this._aLocationX1 + s - 0.5;
63
- l = m.getDataItemPositionX(e, this._xField, v + (D - v) / 2, f), x = l, c = l, u = l, b = "vertical";
60
+ let t = x.getDataItemPositionY(e, this._yOpenField, 1, y), l = x.getDataItemPositionY(e, this._yField, 1, y);
61
+ o = x.getDataItemPositionY(e, this._yLowField, 1, y), w = x.getDataItemPositionY(e, this._yHighField, 1, y), d = Math.max(t, l), r = Math.min(t, l);
62
+ let v = this._aLocationX0 + f - 0.5, D = this._aLocationX1 + s - 0.5;
63
+ a = Y.getDataItemPositionX(e, this._xField, v + (D - v) / 2, X), c = a, u = a, g = a, b = "vertical";
64
64
  } else {
65
- let t = m.getDataItemPositionX(e, this._xOpenField, 1, f), a = m.getDataItemPositionX(e, this._xField, 1, f);
66
- x = m.getDataItemPositionX(e, this._xLowField, 1, f), u = m.getDataItemPositionX(e, this._xHighField, 1, f), c = Math.max(t, a), l = Math.min(t, a);
67
- let v = this._aLocationY0 + n - 0.5, D = this._aLocationY1 + g - 0.5;
68
- r = w.getDataItemPositionY(e, this._yField, v + (D - v) / 2, Y), o = r, p = r, d = r, b = "horizontal";
65
+ let t = Y.getDataItemPositionX(e, this._xOpenField, 1, X), l = Y.getDataItemPositionX(e, this._xField, 1, X);
66
+ c = Y.getDataItemPositionX(e, this._xLowField, 1, X), g = Y.getDataItemPositionX(e, this._xHighField, 1, X), u = Math.max(t, l), a = Math.min(t, l);
67
+ let v = this._aLocationY0 + n - 0.5, D = this._aLocationY1 + p - 0.5;
68
+ r = x.getDataItemPositionY(e, this._yField, v + (D - v) / 2, y), o = r, d = r, w = r, b = "horizontal";
69
69
  }
70
- this._updateCandleGraphics(e, l, x, r, o, c, u, p, d, b);
70
+ this._updateCandleGraphics(e, a, c, r, o, u, g, d, w, b);
71
71
  }
72
- _updateCandleGraphics(e, i, h, m, w, Y, f, l, x, r) {
72
+ _updateCandleGraphics(e, i, h, Y, x, y, X, a, c, r) {
73
73
  let o = e.get("graphics");
74
74
  if (o) {
75
- let c = this.getPoint(i, m), u = this.getPoint(h, w), p = this.getPoint(Y, l), d = this.getPoint(f, x);
75
+ let u = this.getPoint(i, Y), g = this.getPoint(h, x), d = this.getPoint(y, a), w = this.getPoint(X, c);
76
76
  if (this.get("turboMode")) {
77
77
  const s = this.allColumnsData[this.allColumnsData.length - 1];
78
- s.lowX0 = c.x, s.lowY0 = c.y, s.lowX1 = u.x, s.lowY1 = u.y, s.highX0 = p.x, s.highY0 = p.y, s.highX1 = d.x, s.highY1 = d.y;
78
+ s.lowX0 = u.x, s.lowY0 = u.y, s.lowX1 = g.x, s.lowY1 = g.y, s.highX0 = d.x, s.highY0 = d.y, s.highX1 = w.x, s.highY1 = w.y;
79
79
  } else {
80
- let s = o.x(), g = o.y();
81
- o.set("lowX0", c.x - s), o.set("lowY0", c.y - g), o.set("lowX1", u.x - s), o.set("lowY1", u.y - g), o.set("highX0", p.x - s), o.set("highY0", p.y - g), o.set("highX1", d.x - s), o.set("highY1", d.y - g), o.set("orientation", r);
82
- let y = e.get("rangeGraphics");
83
- y && j(y, (n) => {
84
- n.set("lowX0", c.x - s), n.set("lowY0", c.y - g), n.set("lowX1", u.x - s), n.set("lowY1", u.y - g), n.set("highX0", p.x - s), n.set("highY0", p.y - g), n.set("highX1", d.x - s), n.set("highY1", d.y - g), n.set("orientation", r);
80
+ let s = o.x(), p = o.y();
81
+ o.set("lowX0", u.x - s), o.set("lowY0", u.y - p), o.set("lowX1", g.x - s), o.set("lowY1", g.y - p), o.set("highX0", d.x - s), o.set("highY0", d.y - p), o.set("highX1", w.x - s), o.set("highY1", w.y - p), o.set("orientation", r);
82
+ let f = e.get("rangeGraphics");
83
+ f && H(f, (n) => {
84
+ n.set("lowX0", u.x - s), n.set("lowY0", u.y - p), n.set("lowX1", g.x - s), n.set("lowY1", g.y - p), n.set("highX0", d.x - s), n.set("highY0", d.y - p), n.set("highX1", w.x - s), n.set("highY1", w.y - p), n.set("orientation", r);
85
85
  });
86
86
  }
87
87
  }
88
88
  }
89
89
  _afterColumnsDraw() {
90
90
  this.get("turboMode") && this.allColumns.set("draw", (e) => {
91
- e.clear(), j(this.allColumnsData, (i) => {
91
+ e.clear(), H(this.allColumnsData, (i) => {
92
92
  e.beginPath();
93
- const h = i.width, m = i.height, w = i.x, Y = i.y, f = i.stroke, l = i.fill, x = i.strokeWidth, r = i.strokeOpacity, o = i.fillOpacity, c = i.lowX0, u = i.lowY0, p = i.lowX1, d = i.lowY1, s = i.highX0, g = i.highY0, y = i.highX1, n = i.highY1;
94
- e.beginFill(l, o), e.beginPath(), e.lineStyle(x, f, r), e.drawRect(w, Y, h, m), e.moveTo(c, u), e.lineTo(p, d), e.moveTo(s, g), e.lineTo(y, n), e.endStroke(), e.endFill();
93
+ const h = i.width, Y = i.height, x = i.x, y = i.y, X = i.stroke, a = i.fill, c = i.strokeWidth, r = i.strokeOpacity, o = i.fillOpacity, u = i.lowX0, g = i.lowY0, d = i.lowX1, w = i.lowY1, s = i.highX0, p = i.highY0, f = i.highX1, n = i.highY1;
94
+ e.beginFill(a, o), e.beginPath(), e.lineStyle(c, X, r), e.drawRect(x, y, h, Y), e.moveTo(u, g), e.lineTo(d, w), e.moveTo(s, p), e.lineTo(f, n), e.endStroke(), e.endFill();
95
95
  });
96
96
  });
97
97
  }
98
98
  _processAxisRange(e) {
99
- super._processAxisRange(e), e.columns = new N(M.new({}), () => C._new(this._root, {
100
- themeTags: S(e.columns.template.get("themeTags", []), ["candlestick", "series", "column"])
99
+ super._processAxisRange(e), e.columns = new N(M.new({}), () => A._new(this._root, {
100
+ themeTags: j(e.columns.template.get("themeTags", []), ["candlestick", "series", "column"])
101
101
  }, [this.columns.template, e.columns.template]));
102
102
  }
103
103
  }
104
- Object.defineProperty(k, "className", {
104
+ Object.defineProperty(F, "className", {
105
105
  enumerable: !0,
106
106
  configurable: !0,
107
107
  writable: !0,
108
108
  value: "CandlestickSeries"
109
109
  });
110
- Object.defineProperty(k, "classNames", {
110
+ Object.defineProperty(F, "classNames", {
111
111
  enumerable: !0,
112
112
  configurable: !0,
113
113
  writable: !0,
114
- value: T.classNames.concat([k.className])
114
+ value: T.classNames.concat([F.className])
115
115
  });
116
- const me = (F) => {
117
- const e = U(), i = Z({
118
- props: F,
116
+ const de = (P) => {
117
+ const e = Z(), i = q({
118
+ props: P,
119
119
  name: "HCCandlestickChart"
120
120
  }), {
121
121
  data: h,
122
- seriesName: m,
123
- height: w = "100%",
124
- width: Y = "100%",
125
- chartId: f = "candlestick-chart",
126
- showVolume: l = !1,
127
- risingColor: x = e.palette.success.main,
122
+ seriesName: Y,
123
+ height: x = "100%",
124
+ width: y = "100%",
125
+ chartId: X = "candlestick-chart",
126
+ showVolume: a = !1,
127
+ risingColor: c = e.palette.success.main,
128
128
  fallingColor: r = e.palette.error.main,
129
129
  loading: o = !1,
130
- emptyMessage: c = "No data available",
131
- baseInterval: u,
132
- sx: p,
133
- ...d
134
- } = i, s = q.orderBy(h, ["date"]), g = {
130
+ emptyMessage: u = "No data available",
131
+ baseInterval: g,
132
+ sx: d,
133
+ ...w
134
+ } = i, s = J.orderBy(h, ["date"]), p = {
135
135
  ...i,
136
- height: w,
137
- width: Y,
138
- chartId: f,
139
- showVolume: l,
140
- risingColor: x,
136
+ height: x,
137
+ width: y,
138
+ chartId: X,
139
+ showVolume: a,
140
+ risingColor: c,
141
141
  fallingColor: r,
142
142
  loading: o,
143
- emptyMessage: c,
144
- baseInterval: u
145
- }, y = P(null), n = P(null), b = P(null);
146
- return J(() => {
143
+ emptyMessage: u,
144
+ baseInterval: g
145
+ }, f = C(null), n = C(null), b = C(null);
146
+ return K(() => {
147
147
  var O, R, V;
148
148
  if (!b.current) return;
149
149
  const t = B.new(b.current);
150
- n.current = t, t.setThemes([I.new(t)]), t.interfaceColors.setAll({
151
- text: X(e.palette.text.primary),
152
- grid: X(e.palette.divider),
153
- stroke: X(e.palette.divider)
150
+ n.current = t, t.setThemes([U.new(t)]), t.interfaceColors.setAll({
151
+ text: m(e.palette.text.primary),
152
+ grid: m(e.palette.divider),
153
+ stroke: m(e.palette.divider)
154
154
  });
155
- const a = t.container.children.push(
155
+ const l = t.container.children.push(
156
156
  $.new(t, {
157
157
  panX: !0,
158
158
  panY: !0,
@@ -162,39 +162,39 @@ const me = (F) => {
162
162
  layout: t.verticalLayout
163
163
  })
164
164
  );
165
- y.current = a, a.set(
165
+ f.current = l, l.set(
166
166
  "cursor",
167
167
  ee.new(t, {
168
168
  behavior: "zoomX"
169
169
  })
170
170
  ).lineY.set("visible", !1);
171
- const v = a.xAxes.push(
171
+ const v = l.xAxes.push(
172
172
  te.new(t, {
173
173
  maxDeviation: 0.3,
174
174
  groupData: !0,
175
- baseInterval: u || { timeUnit: "day", count: 1 },
175
+ baseInterval: g || { timeUnit: "day", count: 1 },
176
176
  renderer: se.new(t, {
177
177
  minorGridEnabled: !0
178
178
  }),
179
179
  tooltip: G.new(t, {})
180
180
  })
181
- ), D = a.yAxes.push(
182
- H.new(t, {
183
- renderer: E.new(t, {})
181
+ ), D = l.yAxes.push(
182
+ E.new(t, {
183
+ renderer: z.new(t, {})
184
184
  })
185
185
  );
186
186
  (O = v.get("renderer")) == null || O.grid.template.setAll({
187
- stroke: X(e.palette.divider),
187
+ stroke: m(e.palette.divider),
188
188
  strokeOpacity: 1
189
189
  }), (R = v.get("renderer")) == null || R.labels.template.setAll({
190
190
  paddingTop: 12
191
191
  }), (V = D.get("renderer")) == null || V.grid.template.setAll({
192
- stroke: X(e.palette.divider),
192
+ stroke: m(e.palette.divider),
193
193
  strokeOpacity: 1
194
194
  });
195
- const _ = a.series.push(
196
- k.new(t, {
197
- name: m || "Price",
195
+ const _ = l.series.push(
196
+ F.new(t, {
197
+ name: Y || "Price",
198
198
  xAxis: v,
199
199
  yAxis: D,
200
200
  valueXField: "date",
@@ -214,66 +214,76 @@ const me = (F) => {
214
214
  })
215
215
  );
216
216
  _.columns.template.states.create("riseFromPrevious", {
217
- fill: X(x),
218
- stroke: X(x)
217
+ fill: m(c),
218
+ stroke: m(c)
219
219
  }), _.columns.template.states.create("dropFromPrevious", {
220
- fill: X(r),
221
- stroke: X(r)
222
- }), _.data.processor = z.new(t, {
220
+ fill: m(r),
221
+ stroke: m(r)
222
+ }), _.data.processor = I.new(t, {
223
223
  dateFormat: "i",
224
224
  dateFields: ["date"]
225
225
  });
226
- let A = null, L = null;
227
- return l && (L = a.yAxes.push(
228
- H.new(t, {
229
- renderer: E.new(t, {
226
+ let k = null, L = null;
227
+ return a && (L = l.yAxes.push(
228
+ E.new(t, {
229
+ renderer: z.new(t, {
230
230
  opposite: !0
231
231
  }),
232
232
  numberFormat: "#a"
233
233
  })
234
- ), A = a.series.push(
234
+ ), k = l.series.push(
235
235
  T.new(t, {
236
236
  name: "Volume",
237
237
  xAxis: v,
238
238
  yAxis: L,
239
239
  valueYField: "volume",
240
240
  valueXField: "date",
241
- fill: X("#2962ff"),
242
- stroke: X("#2962ff"),
241
+ fill: m("#2962ff"),
242
+ stroke: m("#2962ff"),
243
243
  opacity: 0.6
244
244
  })
245
- ), A.columns.template.setAll({
245
+ ), k.columns.template.setAll({
246
246
  width: Q(80)
247
- }), A.data.processor = z.new(t, {
247
+ }), k.data.processor = I.new(t, {
248
248
  dateFormat: "i",
249
249
  dateFields: ["date"]
250
- })), _.data.setAll(s), l && A && A.data.setAll(s), a.appear(1e3), _.appear(1e3), () => {
250
+ })), _.data.setAll(s), a && k && k.data.setAll(s), l.appear(1e3), _.appear(1e3), () => {
251
251
  t.dispose();
252
252
  };
253
- }, [e.palette.mode]), K(() => {
254
- if (y.current && n.current) {
255
- const t = y.current.series.getIndex(
253
+ }, [e.palette.mode]), S(() => {
254
+ if (f.current && n.current) {
255
+ const t = f.current.series.getIndex(
256
256
  0
257
- ), a = l ? y.current.series.getIndex(1) : null;
258
- t == null || t.data.setAll(s), a == null || a.data.setAll(s);
257
+ ), l = a ? f.current.series.getIndex(1) : null;
258
+ t == null || t.data.setAll(s), l == null || l.data.setAll(s);
259
259
  }
260
- }, [s, l]), {
260
+ }, [s, a]), S(() => {
261
+ if (!f.current) return;
262
+ const t = f.current.series.getIndex(0);
263
+ t && (t.columns.template.states.create("riseFromPrevious", {
264
+ fill: m(c),
265
+ stroke: m(c)
266
+ }), t.columns.template.states.create("dropFromPrevious", {
267
+ fill: m(r),
268
+ stroke: m(r)
269
+ }));
270
+ }, [c, r]), {
261
271
  chartDivRef: b,
262
272
  data: h,
263
- seriesName: m,
264
- height: w,
265
- width: Y,
266
- chartId: f,
267
- showVolume: l,
268
- risingColor: x,
273
+ seriesName: Y,
274
+ height: x,
275
+ width: y,
276
+ chartId: X,
277
+ showVolume: a,
278
+ risingColor: c,
269
279
  fallingColor: r,
270
280
  loading: o,
271
- emptyMessage: c,
272
- sx: p,
273
- other: d,
274
- ownerState: g
281
+ emptyMessage: u,
282
+ sx: d,
283
+ other: w,
284
+ ownerState: p
275
285
  };
276
286
  };
277
287
  export {
278
- me as useCandlestickChartLogic
288
+ de as useCandlestickChartLogic
279
289
  };
@@ -1,5 +1,5 @@
1
1
  import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
- import { Typography as n, Divider as l } from "@mui/material";
2
+ import { Typography as l, Divider as n } from "@mui/material";
3
3
  import { CandlestickChart as C } from "../candlestick/index.js";
4
4
  import { ColumnLineMix as h } from "../column-line-mix/index.js";
5
5
  import { DrillDownTreemap as c } from "../drill-down-treemap/index.js";
@@ -16,11 +16,11 @@ import { StackedColumnChart as g } from "../stacked-column-chart/index.js";
16
16
  import { XYChart as P } from "../xy-chart/index.js";
17
17
  import { useChartWrapperLogic as w } from "./logic.js";
18
18
  import { ChartWrapperRoot as A, ChartWrapperHeader as T, ChartWrapperContent as W } from "./styled.js";
19
- function J(a) {
19
+ const J = (a) => {
20
20
  const { title: m, type: e, chartProps: o, ownerState: t, sx: p } = w(a);
21
21
  return /* @__PURE__ */ i(A, { ownerState: t, sx: p, children: [
22
- /* @__PURE__ */ r(T, { ownerState: t, children: /* @__PURE__ */ r(n, { sx: { paddingLeft: "0.5rem" }, variant: "h3", children: m }) }),
23
- /* @__PURE__ */ r(l, {}),
22
+ /* @__PURE__ */ r(T, { ownerState: t, children: /* @__PURE__ */ r(l, { sx: { paddingLeft: "0.5rem" }, variant: "h3", children: m }) }),
23
+ /* @__PURE__ */ r(n, {}),
24
24
  /* @__PURE__ */ i(W, { ownerState: t, children: [
25
25
  e === "MultipleValueAxes" && /* @__PURE__ */ r(L, { ...o }),
26
26
  e === "XYChart" && /* @__PURE__ */ r(P, { ...o }),
@@ -38,7 +38,7 @@ function J(a) {
38
38
  e === "CandlestickChart" && /* @__PURE__ */ r(C, { ...o })
39
39
  ] })
40
40
  ] });
41
- }
41
+ };
42
42
  export {
43
43
  J as ChartWrapper
44
44
  };
@@ -1,10 +1,11 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { useColumnLineMixLogic as m } from "./logic.js";
3
- import { ColumnLineMixRoot as h } from "./styled.js";
4
- function d(i) {
5
- const { chartId: t, ownerState: r, sx: e, other: n } = m(i);
6
- return /* @__PURE__ */ o(h, { ownerState: r, sx: e, ...n, children: /* @__PURE__ */ o("div", { id: t, style: { width: "100%", height: "100%" } }) });
7
- }
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { ChartError as s } from "../_common/chart-error.js";
3
+ import { useColumnLineMixLogic as h } from "./logic.js";
4
+ import { ColumnLineMixRoot as x } from "./styled.js";
5
+ const u = (t) => {
6
+ const { chartId: i, ownerState: e, sx: m, error: o, other: n } = h(t);
7
+ return /* @__PURE__ */ r(x, { ownerState: e, sx: m, ...n, children: o ? /* @__PURE__ */ r(s, { message: o }) : /* @__PURE__ */ r("div", { id: i, style: { width: "100%", height: "100%" } }) });
8
+ };
8
9
  export {
9
- d as ColumnLineMix
10
+ u as ColumnLineMix
10
11
  };