@hexure/ui 1.6.2 → 1.6.4

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;
@@ -11,9 +11,12 @@ export interface ActionDialogProps extends AccessibleProps {
11
11
  title?: string;
12
12
  /** It is used to give description. */
13
13
  description?: string;
14
+ /** Set the primary action for the dialog */
14
15
  primaryButton?: ButtonProps;
16
+ /** Set the secondary action for the dialog. This should only be defined after a primary action is defined */
15
17
  secondaryButton?: ButtonProps;
16
- onClose: (e?: any) => void;
18
+ /** Set the tertiary action for the dialog. This should only be defined after a secondary action is defined */
19
+ tertiaryButton?: ButtonProps;
17
20
  }
18
21
  declare const ActionDialog: FC<ActionDialogProps>;
19
22
  export default ActionDialog;
@@ -11,6 +11,8 @@ export interface ButtonProps extends AccessibleProps {
11
11
  icon?: string;
12
12
  /** Adjust the button to work within a <form> tag. Ignores onClick, sets type='form' */
13
13
  isForm?: boolean;
14
+ /** Displays a loading state for the button */
15
+ loading?: boolean;
14
16
  /** Set the margin of the button as needed */
15
17
  margin?: string;
16
18
  /** Prop to pass a that fires when the user does a click. */
@@ -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
@@ -37,9 +37,12 @@ interface ActionDialogProps extends AccessibleProps {
37
37
  title?: string;
38
38
  /** It is used to give description. */
39
39
  description?: string;
40
+ /** Set the primary action for the dialog */
40
41
  primaryButton?: ButtonProps$4;
42
+ /** Set the secondary action for the dialog. This should only be defined after a primary action is defined */
41
43
  secondaryButton?: ButtonProps$4;
42
- onClose: (e?: any) => void;
44
+ /** Set the tertiary action for the dialog. This should only be defined after a secondary action is defined */
45
+ tertiaryButton?: ButtonProps$4;
43
46
  }
44
47
  declare const ActionDialog: FC<ActionDialogProps>;
45
48
 
@@ -83,6 +86,8 @@ interface ButtonProps$2 extends AccessibleProps {
83
86
  icon?: string;
84
87
  /** Adjust the button to work within a <form> tag. Ignores onClick, sets type='form' */
85
88
  isForm?: boolean;
89
+ /** Displays a loading state for the button */
90
+ loading?: boolean;
86
91
  /** Set the margin of the button as needed */
87
92
  margin?: string;
88
93
  /** Prop to pass a that fires when the user does a click. */
@@ -418,9 +423,10 @@ declare const Tabs: FC<TabsProps>;
418
423
 
419
424
  interface TagProps extends AccessibleProps {
420
425
  /** It is used to select tag-type either default or removable. */
421
- color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK';
426
+ color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
422
427
  /** It is used to give label to tag. */
423
- children: string | number;
428
+ children: string | React.ReactNode;
429
+ /** Method to run when the tag is clicked */
424
430
  onClick?: (e?: any) => void;
425
431
  /** It is callback function called when user wants to close the tag. */
426
432
  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.4",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",