@befe/brick-comp-badge 0.2.79 → 0.2.80

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.2.80](https://icode.baidu.com/repos/baidu/be-fe/brick/merge/%40befe%2Fbrick-comp-badge%400.2.79...%40befe%2Fbrick-comp-badge%400.2.80) (2025-06-30)
7
+
8
+ **Note:** Version bump only for package @befe/brick-comp-badge
9
+
10
+
11
+
12
+
13
+
6
14
  ## [0.2.79](https://icode.baidu.com:8235/baidu/be-fe/brick//%40befe%2Fbrick-comp-badge%400.2.78...%40befe%2Fbrick-comp-badge%400.2.79) (2025-06-05)
7
15
 
8
16
  **Note:** Version bump only for package @befe/brick-comp-badge
package/es/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import _Reflect$construct from "@babel/runtime-corejs3/core-js-stable/reflect/construct";
2
2
  import _classCallCheck from "@babel/runtime-corejs3/helpers/classCallCheck";
3
3
  import _createClass from "@babel/runtime-corejs3/helpers/createClass";
4
- import _inherits from "@babel/runtime-corejs3/helpers/inherits";
5
4
  import _possibleConstructorReturn from "@babel/runtime-corejs3/helpers/possibleConstructorReturn";
6
5
  import _getPrototypeOf from "@babel/runtime-corejs3/helpers/getPrototypeOf";
6
+ import _inherits from "@babel/runtime-corejs3/helpers/inherits";
7
7
  import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
8
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = _Reflect$construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
8
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
9
9
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  import { Component, isValidElement } from 'react';
11
11
  // import * as PropTypes from 'prop-types'
@@ -15,13 +15,12 @@ import { codeWarning } from '@befe/brick-utils';
15
15
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
16
  var BADGE_MAX_DEFAULT = 99;
17
17
  export var Badge = /*#__PURE__*/function (_Component) {
18
- _inherits(Badge, _Component);
19
- var _super = _createSuper(Badge);
20
18
  function Badge() {
21
19
  _classCallCheck(this, Badge);
22
- return _super.apply(this, arguments);
20
+ return _callSuper(this, Badge, arguments);
23
21
  }
24
- _createClass(Badge, [{
22
+ _inherits(Badge, _Component);
23
+ return _createClass(Badge, [{
25
24
  key: "color",
26
25
  get: function get() {
27
26
  var _ref = this.props,
@@ -73,7 +72,7 @@ export var Badge = /*#__PURE__*/function (_Component) {
73
72
  if (!content) {
74
73
  return null;
75
74
  }
76
- if ( /*#__PURE__*/isValidElement(content) || isString(content)) {
75
+ if (/*#__PURE__*/isValidElement(content) || isString(content)) {
77
76
  return content;
78
77
  }
79
78
  if (content && typeof content === 'number') {
@@ -105,7 +104,6 @@ export var Badge = /*#__PURE__*/function (_Component) {
105
104
  });
106
105
  }
107
106
  }]);
108
- return Badge;
109
107
  }(Component);
110
108
  _defineProperty(Badge, "displayName", 'Badge');
111
109
  // static propTypes = {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@befe/brick-comp-badge",
3
- "version": "0.2.79",
3
+ "version": "0.2.80",
4
4
  "description": "@befe/brick component Badge",
5
5
  "main": "es",
6
6
  "module": "es",
@@ -11,7 +11,7 @@
11
11
  ],
12
12
  "scripts": {
13
13
  "test": "node ../../scripts/test",
14
- "clean": "rm -rf es lib mobx types",
14
+ "clean": "rm -rf es lib types",
15
15
  "build": "npm run clean && npm run build:js && npm run build:dts && npm run build:style",
16
16
  "build:dts": "node ../../scripts/build-dts",
17
17
  "build:js": "node ../../scripts/build-js",
@@ -20,9 +20,9 @@
20
20
  "author": "wujun07",
21
21
  "license": "ISC",
22
22
  "dependencies": {
23
- "@befe/brick-core": "^0.2.44",
23
+ "@befe/brick-core": "^0.2.45",
24
24
  "@befe/brick-style": "^0.2.54",
25
- "@befe/brick-utils": "^0.2.18"
25
+ "@befe/brick-utils": "^0.2.19"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "classnames": "^2.0.0",
@@ -30,5 +30,5 @@
30
30
  "react": "^16.9.0 || ^17.0.0",
31
31
  "react-dom": "^16.9.0 || ^17.0.0"
32
32
  },
33
- "gitHead": "7f5bde3e3f9b05e9707b9f340007b469dad63e68"
33
+ "gitHead": "0dcf23f2624a236727f1d613dce3bd7cf9d0ff27"
34
34
  }