@hexure/ui 1.8.11 → 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.
@@ -6,6 +6,7 @@ interface ButtonProps {
6
6
  icon?: string;
7
7
  onClick: (e?: any) => void;
8
8
  tabIndex?: number;
9
+ loading?: boolean;
9
10
  }
10
11
  export interface ActionDialogProps extends AccessibleProps {
11
12
  /** It is used to give title. */
@@ -6,6 +6,7 @@ interface ButtonProps {
6
6
  icon?: string;
7
7
  onClick: (e?: any) => void;
8
8
  tabIndex?: number;
9
+ loading?: boolean;
9
10
  }
10
11
  interface StepProps {
11
12
  label: string;
@@ -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
@@ -32,6 +32,7 @@ interface ButtonProps$4 {
32
32
  icon?: string;
33
33
  onClick: (e?: any) => void;
34
34
  tabIndex?: number;
35
+ loading?: boolean;
35
36
  }
36
37
  interface ActionDialogProps extends AccessibleProps {
37
38
  /** It is used to give title. */
@@ -346,6 +347,7 @@ interface ButtonProps {
346
347
  icon?: string;
347
348
  onClick: (e?: any) => void;
348
349
  tabIndex?: number;
350
+ loading?: boolean;
349
351
  }
350
352
  interface StepProps {
351
353
  label: string;
@@ -391,6 +393,18 @@ interface MultiSelectProps extends AccessibleProps {
391
393
  }
392
394
  declare const MultiSelect: FC<MultiSelectProps>;
393
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
+
394
408
  interface PageHeaderProps {
395
409
  title?: string;
396
410
  breadcrumbs?: Array<{
@@ -412,6 +426,7 @@ interface PageHeaderProps {
412
426
  label: string;
413
427
  menuItems: Array<MenuItemProps>;
414
428
  };
429
+ tag?: TagProps;
415
430
  }
416
431
  declare const PageHeader: FC<PageHeaderProps>;
417
432
 
@@ -515,18 +530,6 @@ interface TabsProps extends AccessibleProps {
515
530
  }
516
531
  declare const Tabs: FC<TabsProps>;
517
532
 
518
- interface TagProps extends AccessibleProps {
519
- /** It is used to select tag-type either default or removable. */
520
- color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
521
- /** It is used to give label to tag. */
522
- children: string | React.ReactNode;
523
- /** Method to run when the tag is clicked */
524
- onClick?: (e?: any) => void;
525
- /** It is callback function called when user wants to close the tag. */
526
- removable?: boolean;
527
- }
528
- declare const Tag: FC<TagProps>;
529
-
530
533
  interface ToggleProps extends AccessibleProps {
531
534
  /** It is used to check whether Toggle is checked or not */
532
535
  on: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexure/ui",
3
- "version": "1.8.11",
3
+ "version": "1.8.13",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",