@hexure/ui 1.8.12 → 1.8.13
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 +56 -49
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/PageHeader/PageHeader.d.ts +2 -0
- package/dist/esm/index.js +56 -49
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/PageHeader/PageHeader.d.ts +2 -0
- package/dist/index.d.ts +13 -12
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { MenuItemProps } from '../MoreMenu/MoreMenu';
|
|
3
|
+
import { TagProps } from '../Tag/Tag';
|
|
3
4
|
export interface PageHeaderProps {
|
|
4
5
|
title?: string;
|
|
5
6
|
breadcrumbs?: Array<{
|
|
@@ -21,6 +22,7 @@ export interface PageHeaderProps {
|
|
|
21
22
|
label: string;
|
|
22
23
|
menuItems: Array<MenuItemProps>;
|
|
23
24
|
};
|
|
25
|
+
tag?: TagProps;
|
|
24
26
|
}
|
|
25
27
|
declare const PageHeader: FC<PageHeaderProps>;
|
|
26
28
|
export default PageHeader;
|
package/dist/index.d.ts
CHANGED
|
@@ -393,6 +393,18 @@ interface MultiSelectProps extends AccessibleProps {
|
|
|
393
393
|
}
|
|
394
394
|
declare const MultiSelect: FC<MultiSelectProps>;
|
|
395
395
|
|
|
396
|
+
interface TagProps extends AccessibleProps {
|
|
397
|
+
/** It is used to select tag-type either default or removable. */
|
|
398
|
+
color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
|
|
399
|
+
/** It is used to give label to tag. */
|
|
400
|
+
children: string | React.ReactNode;
|
|
401
|
+
/** Method to run when the tag is clicked */
|
|
402
|
+
onClick?: (e?: any) => void;
|
|
403
|
+
/** It is callback function called when user wants to close the tag. */
|
|
404
|
+
removable?: boolean;
|
|
405
|
+
}
|
|
406
|
+
declare const Tag: FC<TagProps>;
|
|
407
|
+
|
|
396
408
|
interface PageHeaderProps {
|
|
397
409
|
title?: string;
|
|
398
410
|
breadcrumbs?: Array<{
|
|
@@ -414,6 +426,7 @@ interface PageHeaderProps {
|
|
|
414
426
|
label: string;
|
|
415
427
|
menuItems: Array<MenuItemProps>;
|
|
416
428
|
};
|
|
429
|
+
tag?: TagProps;
|
|
417
430
|
}
|
|
418
431
|
declare const PageHeader: FC<PageHeaderProps>;
|
|
419
432
|
|
|
@@ -517,18 +530,6 @@ interface TabsProps extends AccessibleProps {
|
|
|
517
530
|
}
|
|
518
531
|
declare const Tabs: FC<TabsProps>;
|
|
519
532
|
|
|
520
|
-
interface TagProps extends AccessibleProps {
|
|
521
|
-
/** It is used to select tag-type either default or removable. */
|
|
522
|
-
color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
|
|
523
|
-
/** It is used to give label to tag. */
|
|
524
|
-
children: string | React.ReactNode;
|
|
525
|
-
/** Method to run when the tag is clicked */
|
|
526
|
-
onClick?: (e?: any) => void;
|
|
527
|
-
/** It is callback function called when user wants to close the tag. */
|
|
528
|
-
removable?: boolean;
|
|
529
|
-
}
|
|
530
|
-
declare const Tag: FC<TagProps>;
|
|
531
|
-
|
|
532
533
|
interface ToggleProps extends AccessibleProps {
|
|
533
534
|
/** It is used to check whether Toggle is checked or not */
|
|
534
535
|
on: boolean;
|