@lobehub/charts 1.7.1 → 1.8.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.
- package/es/BarList/index.js +5 -2
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/package.json +1 -1
package/es/BarList/index.js
CHANGED
|
@@ -66,6 +66,7 @@ var BarList = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
66
66
|
flex: 1,
|
|
67
67
|
gap: 8,
|
|
68
68
|
style: {
|
|
69
|
+
overflow: 'hidden',
|
|
69
70
|
position: 'relative'
|
|
70
71
|
},
|
|
71
72
|
children: [(leftLabel || rightLabel) && /*#__PURE__*/_jsx(Flexbox, {
|
|
@@ -84,8 +85,7 @@ var BarList = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
84
85
|
onValueChange === null || onValueChange === void 0 || onValueChange(item);
|
|
85
86
|
},
|
|
86
87
|
style: {
|
|
87
|
-
cursor: onValueChange ? 'pointer' : 'default'
|
|
88
|
-
width: "".concat(widths[index], "%")
|
|
88
|
+
cursor: onValueChange ? 'pointer' : 'default'
|
|
89
89
|
},
|
|
90
90
|
width: '100%',
|
|
91
91
|
children: [/*#__PURE__*/_jsx("div", {
|
|
@@ -102,6 +102,9 @@ var BarList = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
102
102
|
horizontal: true,
|
|
103
103
|
paddingInline: 8,
|
|
104
104
|
style: {
|
|
105
|
+
overflow: 'hidden',
|
|
106
|
+
position: 'relative',
|
|
107
|
+
width: '100%',
|
|
105
108
|
zIndex: 1
|
|
106
109
|
},
|
|
107
110
|
children: [item.icon, item.href ? /*#__PURE__*/_jsx(A, {
|
package/es/index.d.ts
CHANGED
|
@@ -12,3 +12,4 @@ export { default as ScatterChart, type ScatterChartProps } from './ScatterChart'
|
|
|
12
12
|
export * from './SparkChart';
|
|
13
13
|
export { default as Tracker, type TrackerProps } from './Tracker';
|
|
14
14
|
export type * from './types';
|
|
15
|
+
export { useThemeColorRange } from "./hooks/useThemeColorRange";
|
package/es/index.js
CHANGED
|
@@ -10,4 +10,5 @@ export { default as Legend } from "./Legend";
|
|
|
10
10
|
export { default as LineChart } from "./LineChart";
|
|
11
11
|
export { default as ScatterChart } from "./ScatterChart";
|
|
12
12
|
export * from "./SparkChart";
|
|
13
|
-
export { default as Tracker } from "./Tracker";
|
|
13
|
+
export { default as Tracker } from "./Tracker";
|
|
14
|
+
export { useThemeColorRange } from "./hooks/useThemeColorRange";
|