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 +1 -0
- package/es/Tag/Tag.js +4 -3
- package/package.json +1 -1
package/es/Tag/Tag.d.ts
CHANGED
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
|
|
7
|
-
return jsx("span", __assign({ className:
|
|
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 };
|