foxit-component 1.0.6-alpha.1 → 1.0.6-alpha.2

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/Tag/Tag.d.ts CHANGED
@@ -3,6 +3,7 @@ import './tag.css';
3
3
  interface TagProps {
4
4
  color?: 'active' | 'canceled' | 'pending' | 'offline' | 'trial' | 'expired' | 'completed' | string;
5
5
  children: React.ReactNode;
6
+ className?: string;
6
7
  }
7
8
  declare const Tag: React.FC<TagProps>;
8
9
  export default Tag;
package/es/Tag/Tag.js CHANGED
@@ -1,10 +1,11 @@
1
1
  import { __assign } from '../node_modules/tslib/tslib.es6.js';
2
2
  import { jsx } from 'react/jsx-runtime';
3
+ import classNames from 'classnames';
3
4
 
4
5
  var Tag = function (_a) {
5
- var _b = _a.color, color = _b === void 0 ? 'active' : _b, children = _a.children;
6
- var className = "foxit-tag foxit-tag-".concat(color);
7
- return jsx("span", __assign({ className: className }, { children: children }));
6
+ var _b = _a.color, color = _b === void 0 ? 'active' : _b, children = _a.children, className = _a.className;
7
+ var cls = classNames('foxit-tag', "foxit-tag-".concat(color), className);
8
+ return jsx("span", __assign({ className: cls }, { children: children }));
8
9
  };
9
10
 
10
11
  export { Tag as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foxit-component",
3
- "version": "1.0.6-alpha.1",
3
+ "version": "1.0.6-alpha.2",
4
4
  "author": {
5
5
  "name": "linye",
6
6
  "email": "869675630@qq.com"