tinywidgets 0.0.1 → 0.0.3
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/package.json +1 -1
- package/src/Tag/index.css.ts +5 -0
- package/src/Tag/index.tsx +2 -3
package/package.json
CHANGED
package/src/Tag/index.css.ts
CHANGED
package/src/Tag/index.tsx
CHANGED
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import {classNames} from '../';
|
|
5
5
|
import {Axis} from '../Axis';
|
|
6
|
-
import {
|
|
7
|
-
import {tag, tagVariant} from './index.css';
|
|
6
|
+
import {tag, tagIcon, tagVariant} from './index.css';
|
|
8
7
|
|
|
9
8
|
const {createElement} = React;
|
|
10
9
|
|
|
@@ -19,7 +18,7 @@ export const Tag = ({
|
|
|
19
18
|
title?: string;
|
|
20
19
|
variant?: keyof typeof tagVariant;
|
|
21
20
|
}) => {
|
|
22
|
-
const icon = Icon ? <Icon className={
|
|
21
|
+
const icon = Icon ? <Icon className={tagIcon} /> : null;
|
|
23
22
|
return (
|
|
24
23
|
<Axis className={classNames(tag, tagVariant[variant])} title={title}>
|
|
25
24
|
{icon}
|