@lobehub/charts 1.9.11 → 1.9.12

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.
@@ -17,7 +17,8 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
17
17
  var BarList = /*#__PURE__*/forwardRef(function (props, ref) {
18
18
  var _useStyles = useStyles(),
19
19
  cx = _useStyles.cx,
20
- styles = _useStyles.styles;
20
+ styles = _useStyles.styles,
21
+ prefixCls = _useStyles.prefixCls;
21
22
  var themeColorRange = useThemeColorRange();
22
23
  var _props$data = props.data,
23
24
  data = _props$data === void 0 ? [] : _props$data,
@@ -95,7 +96,7 @@ var BarList = /*#__PURE__*/forwardRef(function (props, ref) {
95
96
  var _item$key, _item$color;
96
97
  return /*#__PURE__*/_jsxs(Flexbox, {
97
98
  align: 'center',
98
- className: styles.barContainer,
99
+ className: cx(styles.barContainer, onValueChange && styles.barHover),
99
100
  height: rowHeight,
100
101
  horizontal: true,
101
102
  onClick: function onClick() {
@@ -106,7 +107,7 @@ var BarList = /*#__PURE__*/forwardRef(function (props, ref) {
106
107
  },
107
108
  width: '100%',
108
109
  children: [/*#__PURE__*/_jsx("div", {
109
- className: cx(styles.bar, onValueChange && styles.barHover),
110
+ className: cx("".concat(prefixCls, "-chart-bar-item"), styles.bar),
110
111
  style: {
111
112
  background: (_item$color = item.color) !== null && _item$color !== void 0 ? _item$color : color,
112
113
  transition: showAnimation ? undefined : 'none',
@@ -2,12 +2,13 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLit
2
2
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
3
3
  import { createStyles } from 'antd-style';
4
4
  export var useStyles = createStyles(function (_ref) {
5
- var css = _ref.css,
5
+ var prefixCls = _ref.prefixCls,
6
+ css = _ref.css,
6
7
  token = _ref.token;
7
8
  return {
8
9
  bar: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n\n max-width: 100%;\n height: 100%;\n\n opacity: 0.25;\n border-radius: ", "px;\n\n transition: all 0.25s ", ";\n "])), token.borderRadius, token.motionEaseInOut),
9
10
  barContainer: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n "]))),
10
- barHover: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n &:hover {\n opacity: 0.4;\n }\n "]))),
11
+ barHover: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n &:hover {\n .", "-chart-bar-item {\n opacity: 0.4;\n }\n }\n "])), prefixCls),
11
12
  emphasis: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n "]))),
12
13
  label: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n font-size: 12px;\n line-height: 16px;\n color: ", ";\n "])), token.colorTextDescription),
13
14
  sourceALabel: css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n font-size: 14px;\n line-height: 16px;\n color: ", " !important;\n\n &:hover {\n color: ", " !important;\n }\n "])), token.colorText, token.colorLinkHover),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/charts",
3
- "version": "1.9.11",
3
+ "version": "1.9.12",
4
4
  "description": "React modern charts components built on recharts",
5
5
  "keywords": [
6
6
  "lobehub",