@hybridcore/ui 1.6.4 → 1.6.6
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.
- package/CATALOG.md +1 -0
- package/dist/IconX-C2wmVYSK.js +11 -0
- package/dist/components/charts/_common/format.js +49 -0
- package/dist/components/charts/_common/utils.js +12 -7
- package/dist/components/charts/chart-wrapper/index.js +36 -34
- package/dist/components/charts/column-line-mix/logic.js +78 -78
- package/dist/components/charts/donut-chart/index.js +11 -0
- package/dist/components/charts/donut-chart/logic.js +67 -0
- package/dist/components/charts/donut-chart/styled.js +12 -0
- package/dist/components/charts/drill-down-treemap/logic.js +123 -123
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +253 -252
- package/dist/components/charts/heatmap/logic.js +73 -73
- package/dist/components/charts/line/logic.js +66 -66
- package/dist/components/charts/logaritmic-scale/logic.js +65 -65
- package/dist/components/charts/multiple-value-axes/logic.js +75 -74
- package/dist/components/charts/nested-pie/logic.js +43 -42
- package/dist/components/charts/packed-circles/logic.js +111 -110
- package/dist/components/charts/pie-chart/logic.js +40 -39
- package/dist/components/charts/stacked-area-radar/logic.js +51 -51
- package/dist/components/charts/stacked-column-chart/logic.js +79 -79
- package/dist/components/charts/xy-chart/logic.js +71 -71
- package/dist/components/color-picker/index.js +1645 -1602
- package/dist/components/color-picker/logic.js +21 -12
- package/dist/components/color-picker/styled.js +4 -2
- package/dist/components/date-range-picker/index.js +359 -365
- package/dist/components/metric-card/helpers.js +12 -5
- package/dist/components/metric-card/logic.js +65 -57
- package/dist/components/metric-card/styled.js +55 -47
- package/dist/components/simple-pivot-table/index.js +129 -54
- package/dist/components/simple-pivot-table/logic.js +111 -45
- package/dist/components/simple-pivot-table/styled.js +31 -11
- package/dist/main.d.ts +128 -8
- package/dist/main.js +163 -157
- package/dist/{styled-Db1RdcPA.js → styled-SoqbyrkW.js} +116 -89
- package/package.json +1 -1
|
@@ -1,18 +1,27 @@
|
|
|
1
|
-
import { useThemeProps as
|
|
2
|
-
import { useState as
|
|
3
|
-
const i = ["#fe0000", "#fe00f6", "#ffc300", "#002bfe", "#fff", "#000"],
|
|
4
|
-
const
|
|
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:
|
|
8
|
-
actions: {
|
|
9
|
-
e
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
26
|
+
x as useColorPickerLogic
|
|
18
27
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import "@mui/material";
|
|
2
|
-
import {
|
|
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
|
-
|
|
6
|
+
c as ColorPickerSwatch,
|
|
7
|
+
C as ColorPickerTrigger,
|
|
8
|
+
k as ColorPickerWrapper
|
|
7
9
|
};
|