@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.
- package/dist/cjs/index.js +7 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Theme.d.ts +4 -0
- package/dist/cjs/types/components/Tag/Tag.d.ts +4 -3
- package/dist/esm/index.js +7 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Theme.d.ts +4 -0
- package/dist/esm/types/components/Tag/Tag.d.ts +4 -3
- package/dist/index.d.ts +3 -2
- package/package.json +1 -1
|
@@ -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 |
|
|
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 |
|
|
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;
|