@hybridcore/ui 1.6.5 → 1.6.7

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 (34) hide show
  1. package/dist/IconX-C2wmVYSK.js +11 -0
  2. package/dist/components/charts/_common/format.js +55 -0
  3. package/dist/components/charts/_common/utils.js +12 -7
  4. package/dist/components/charts/chart-wrapper/helpers.js +46 -21
  5. package/dist/components/charts/chart-wrapper/logic.js +57 -40
  6. package/dist/components/charts/column-line-mix/logic.js +87 -86
  7. package/dist/components/charts/donut-chart/logic.js +37 -36
  8. package/dist/components/charts/drill-down-treemap/logic.js +123 -123
  9. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +253 -252
  10. package/dist/components/charts/heatmap/logic.js +73 -73
  11. package/dist/components/charts/line/logic.js +201 -103
  12. package/dist/components/charts/logaritmic-scale/logic.js +65 -65
  13. package/dist/components/charts/multiple-value-axes/logic.js +96 -94
  14. package/dist/components/charts/nested-pie/logic.js +43 -42
  15. package/dist/components/charts/packed-circles/logic.js +111 -110
  16. package/dist/components/charts/pie-chart/logic.js +40 -39
  17. package/dist/components/charts/stacked-area-radar/logic.js +68 -67
  18. package/dist/components/charts/stacked-column-chart/logic.js +71 -70
  19. package/dist/components/charts/xy-chart/logic.js +82 -76
  20. package/dist/components/color-picker/index.js +1645 -1602
  21. package/dist/components/color-picker/logic.js +21 -12
  22. package/dist/components/color-picker/styled.js +4 -2
  23. package/dist/components/date-range-picker/index.js +359 -365
  24. package/dist/components/metric-card/helpers.js +12 -5
  25. package/dist/components/metric-card/index.js +58 -54
  26. package/dist/components/metric-card/logic.js +78 -61
  27. package/dist/components/metric-card/styled.js +63 -45
  28. package/dist/components/simple-pivot-table/index.js +129 -54
  29. package/dist/components/simple-pivot-table/logic.js +111 -45
  30. package/dist/components/simple-pivot-table/styled.js +31 -11
  31. package/dist/main.d.ts +125 -8
  32. package/dist/main.js +145 -141
  33. package/dist/{styled-Db1RdcPA.js → styled-SoqbyrkW.js} +116 -89
  34. package/package.json +1 -1
@@ -1,18 +1,27 @@
1
- import { useThemeProps as C } from "@mui/material";
2
- import { useState as l } from "react";
3
- const i = ["#fe0000", "#fe00f6", "#ffc300", "#002bfe", "#fff", "#000"], m = (n) => {
4
- const e = C({ props: n, name: "HCColorPicker" }), [s, r] = l(!1), c = e.swatches ?? i, a = { ...e };
1
+ import { useThemeProps as P } from "@mui/material";
2
+ import { useState as t } from "react";
3
+ const i = ["#fe0000", "#fe00f6", "#ffc300", "#002bfe", "#fff", "#000"], x = (s) => {
4
+ const o = P({ props: s, name: "HCColorPicker" }), [c, a] = t(!1), [h, r] = t(null), l = o.swatches ?? i, g = { ...o };
5
5
  return {
6
6
  refs: {},
7
- state: { ownerState: a, showPicker: s, swatches: c },
8
- actions: { handleSwatchChange: (o, t) => {
9
- e.onChange(t);
10
- }, togglePicker: () => r((o) => !o), handleColorChange: (o) => {
11
- const { r: t, g: h, b: g, a: f } = o.rgb;
12
- e.onChange(`rgba(${t},${h},${g},${f ?? 1})`);
13
- } }
7
+ state: { ownerState: g, showPicker: c, swatches: l, anchorEl: h },
8
+ actions: {
9
+ handleSwatchChange: (e, n) => {
10
+ o.onChange(n);
11
+ },
12
+ togglePicker: () => a((e) => !e),
13
+ handleColorChange: (e) => {
14
+ const { r: n, g: C, b: p, a: f } = e.rgb;
15
+ o.onChange(`rgba(${n},${C},${p},${f ?? 1})`);
16
+ },
17
+ openPopover: (e) => r(e.currentTarget),
18
+ closePopover: () => r(null),
19
+ handleHexColorChange: (e) => {
20
+ o.onChange(e.hex);
21
+ }
22
+ }
14
23
  };
15
24
  };
16
25
  export {
17
- m as useColorPickerLogic
26
+ x as useColorPickerLogic
18
27
  };
@@ -1,7 +1,9 @@
1
1
  import "@mui/material";
2
- import { a as e, C as i, b as p } from "../../styled-Db1RdcPA.js";
2
+ import { c as e, C as i, b as c, a as C, d as k } from "../../styled-SoqbyrkW.js";
3
3
  export {
4
4
  e as ColorPickerRadio,
5
5
  i as ColorPickerRoot,
6
- p as ColorPickerWrapper
6
+ c as ColorPickerSwatch,
7
+ C as ColorPickerTrigger,
8
+ k as ColorPickerWrapper
7
9
  };