@hexure/ui 1.6.2 → 1.6.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.
@@ -31,6 +31,10 @@ export declare const Colors: {
31
31
  Hex: string;
32
32
  Rgb: string;
33
33
  };
34
+ SUBTLE_GRAY: {
35
+ Hex: string;
36
+ Rgb: string;
37
+ };
34
38
  };
35
39
  export declare const FontStyles: {
36
40
  DEFAULT: string;
@@ -1,10 +1,11 @@
1
- import { FC } from 'react';
1
+ import React, { FC } from 'react';
2
2
  import { AccessibleProps } from '../../utils/Accessibility';
3
3
  export interface TagProps extends AccessibleProps {
4
4
  /** It is used to select tag-type either default or removable. */
5
- color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK';
5
+ color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
6
6
  /** It is used to give label to tag. */
7
- children: string | number;
7
+ children: string | React.ReactNode;
8
+ /** Method to run when the tag is clicked */
8
9
  onClick?: (e?: any) => void;
9
10
  /** It is callback function called when user wants to close the tag. */
10
11
  removable?: boolean;
package/dist/index.d.ts CHANGED
@@ -418,9 +418,10 @@ declare const Tabs: FC<TabsProps>;
418
418
 
419
419
  interface TagProps extends AccessibleProps {
420
420
  /** It is used to select tag-type either default or removable. */
421
- color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK';
421
+ color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
422
422
  /** It is used to give label to tag. */
423
- children: string | number;
423
+ children: string | React.ReactNode;
424
+ /** Method to run when the tag is clicked */
424
425
  onClick?: (e?: any) => void;
425
426
  /** It is callback function called when user wants to close the tag. */
426
427
  removable?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexure/ui",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",