@bifrostui/react 1.5.0 → 1.5.1

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.
@@ -63,7 +63,7 @@ var import_IconButton2 = require("./IconButton.css");
63
63
  const prefixCls = "bui-icon-btn";
64
64
  const IconButton = /* @__PURE__ */ import_react.default.forwardRef(
65
65
  (props, ref) => {
66
- var _b, _c;
66
+ var _b, _c, _d;
67
67
  const _a = props, {
68
68
  className,
69
69
  children,
@@ -100,9 +100,10 @@ const IconButton = /* @__PURE__ */ import_react.default.forwardRef(
100
100
  ref
101
101
  }, others),
102
102
  import_utils.isMini && import_react.default.isValidElement(children) ? import_react.default.cloneElement(children, __spreadValues(__spreadValues({}, !isContainedVariant && {
103
- color: ((_b = children.props) == null ? void 0 : _b.color) || color
103
+ color: ((_b = children.props) == null ? void 0 : _b.color) || color,
104
+ htmlColor: ((_c = children.props) == null ? void 0 : _c.htmlColor) || "#959aa5"
104
105
  }), isContainedVariant && {
105
- htmlColor: ((_c = children.props) == null ? void 0 : _c.htmlColor) || "#fff"
106
+ htmlColor: ((_d = children.props) == null ? void 0 : _d.htmlColor) || "#fff"
106
107
  })) : children
107
108
  );
108
109
  }
@@ -112,7 +113,6 @@ IconButton.defaultProps = {
112
113
  size: "medium",
113
114
  variant: "default",
114
115
  shape: "circular",
115
- color: "default",
116
116
  disabled: false
117
117
  };
118
118
  var IconButton_default = IconButton;
@@ -10,7 +10,6 @@ export type IconButtonProps<D extends React.ElementType = 'button', P = {}> = Ov
10
10
  */
11
11
  size?: 'small' | 'medium' | 'large';
12
12
  /** 按钮颜色
13
- * @default 'default'
14
13
  */
15
14
  color?: ThemeColor | 'default';
16
15
  /**
@@ -12,5 +12,5 @@ declare const Modal: React.ForwardRefExoticComponent<Omit<ViewProps & {
12
12
  keepMounted?: boolean;
13
13
  } & import("@bifrostui/types").ICommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
14
14
  ref?: React.Ref<HTMLDivElement>;
15
- }, "open" | keyof import("@bifrostui/types").ICommonProps | "container" | "disablePortal" | "hideBackdrop" | "BackdropProps" | "onClose" | "disableScrollLock" | "keepMounted">, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
+ }, "open" | keyof import("@bifrostui/types").ICommonProps | "container" | "disablePortal" | "onClose" | "keepMounted" | "BackdropProps" | "hideBackdrop" | "disableScrollLock">, "ref"> & React.RefAttributes<HTMLDivElement>>;
16
16
  export default Modal;
@@ -33,7 +33,7 @@ import "./IconButton.css";
33
33
  const prefixCls = "bui-icon-btn";
34
34
  const IconButton = /* @__PURE__ */ React.forwardRef(
35
35
  (props, ref) => {
36
- var _b, _c;
36
+ var _b, _c, _d;
37
37
  const _a = props, {
38
38
  className,
39
39
  children,
@@ -70,9 +70,10 @@ const IconButton = /* @__PURE__ */ React.forwardRef(
70
70
  ref
71
71
  }, others),
72
72
  isMini && React.isValidElement(children) ? React.cloneElement(children, __spreadValues(__spreadValues({}, !isContainedVariant && {
73
- color: ((_b = children.props) == null ? void 0 : _b.color) || color
73
+ color: ((_b = children.props) == null ? void 0 : _b.color) || color,
74
+ htmlColor: ((_c = children.props) == null ? void 0 : _c.htmlColor) || "#959aa5"
74
75
  }), isContainedVariant && {
75
- htmlColor: ((_c = children.props) == null ? void 0 : _c.htmlColor) || "#fff"
76
+ htmlColor: ((_d = children.props) == null ? void 0 : _d.htmlColor) || "#fff"
76
77
  })) : children
77
78
  );
78
79
  }
@@ -82,7 +83,6 @@ IconButton.defaultProps = {
82
83
  size: "medium",
83
84
  variant: "default",
84
85
  shape: "circular",
85
- color: "default",
86
86
  disabled: false
87
87
  };
88
88
  var IconButton_default = IconButton;
@@ -10,7 +10,6 @@ export type IconButtonProps<D extends React.ElementType = 'button', P = {}> = Ov
10
10
  */
11
11
  size?: 'small' | 'medium' | 'large';
12
12
  /** 按钮颜色
13
- * @default 'default'
14
13
  */
15
14
  color?: ThemeColor | 'default';
16
15
  /**
@@ -12,5 +12,5 @@ declare const Modal: React.ForwardRefExoticComponent<Omit<ViewProps & {
12
12
  keepMounted?: boolean;
13
13
  } & import("@bifrostui/types").ICommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
14
14
  ref?: React.Ref<HTMLDivElement>;
15
- }, "open" | "container" | "disablePortal" | keyof import("@bifrostui/types").ICommonProps | "hideBackdrop" | "BackdropProps" | "onClose" | "disableScrollLock" | "keepMounted">, "ref"> & React.RefAttributes<HTMLDivElement>>;
15
+ }, "open" | keyof import("@bifrostui/types").ICommonProps | "container" | "disablePortal" | "hideBackdrop" | "BackdropProps" | "onClose" | "disableScrollLock" | "keepMounted">, "ref"> & React.RefAttributes<HTMLDivElement>>;
16
16
  export default Modal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bifrostui/react",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "React components for building mobile application",
5
5
  "homepage": "http://bui.taopiaopiao.com",
6
6
  "license": "MIT",
@@ -33,10 +33,10 @@
33
33
  "clsx": "^1.2.1",
34
34
  "dayjs": "^1.11.7",
35
35
  "swiper": "^8.1.5",
36
- "@bifrostui/icons": "1.5.0",
37
- "@bifrostui/types": "1.5.0",
38
- "@bifrostui/utils": "1.5.0",
39
- "@bifrostui/styles": "1.5.0"
36
+ "@bifrostui/icons": "1.5.1",
37
+ "@bifrostui/styles": "1.5.1",
38
+ "@bifrostui/types": "1.5.1",
39
+ "@bifrostui/utils": "1.5.1"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@tarojs/components": "^3.0.0",