tinywidgets 0.0.1 → 0.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tinywidgets",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "author": "jamesgpearce",
5
5
  "repository": "github:tinyplex/tinywidgets",
6
6
  "module": "index.ts",
@@ -20,3 +20,8 @@ export const tagVariant = styleVariants({
20
20
  color: theme.accentContrast,
21
21
  },
22
22
  });
23
+
24
+ export const tagIcon = style({
25
+ width: '0.75rem',
26
+ height: '0.75rem',
27
+ });
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 {iconSize} from '../index.css';
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={iconSize} /> : null;
21
+ const icon = Icon ? <Icon className={tagIcon} /> : null;
23
22
  return (
24
23
  <Axis className={classNames(tag, tagVariant[variant])} title={title}>
25
24
  {icon}