@node-core/ui-components 1.5.7 → 1.5.8
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/Common/Badge/index.js +3 -1
- package/package.json +1 -1
package/Common/Badge/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import styles from './index.module.css';
|
|
4
|
-
const Badge = ({ kind = 'default', size = 'medium',
|
|
4
|
+
const Badge = ({ kind = 'default', size = 'medium', className, children, ...props }) => (_jsx("span", { className: classNames(styles.badge, styles[kind], styles[size], {
|
|
5
|
+
[styles.circular]: typeof children === 'string' && children.length === 1,
|
|
6
|
+
}, className), ...props, children: children }));
|
|
5
7
|
export default Badge;
|