@hexure/ui 1.8.4 → 1.8.6

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.
@@ -20,7 +20,7 @@ export interface ButtonProps extends AccessibleProps {
20
20
  /** If enabled, the small button format will be used. */
21
21
  small?: boolean;
22
22
  /** Define which button format to display. By default the Primary button will be used. */
23
- format?: 'primary' | 'secondary' | 'red';
23
+ format?: 'primary' | 'secondary' | 'red' | 'green';
24
24
  }
25
25
  declare const Button: FC<ButtonProps>;
26
26
  export default Button;
@@ -5,7 +5,8 @@ export interface ButtonMenuProps {
5
5
  label: string;
6
6
  small?: boolean;
7
7
  menuItems: Array<MenuItemProps>;
8
- maxHeight?: string | number;
8
+ menuWidth?: string;
9
+ maxHeight?: string;
9
10
  position?: 'left' | 'right';
10
11
  format?: 'primary' | 'secondary';
11
12
  }
@@ -8,13 +8,14 @@ export interface PageHeaderProps {
8
8
  }>;
9
9
  actions?: Array<{
10
10
  disabled?: boolean;
11
- format?: 'primary' | 'secondary' | 'red';
11
+ format?: 'primary' | 'secondary' | 'red' | 'green';
12
12
  icon?: string;
13
13
  label: string;
14
14
  onClick?: (e: any) => void;
15
15
  }>;
16
16
  buttonMenu?: {
17
17
  disabled?: boolean;
18
+ format?: 'primary' | 'secondary';
18
19
  icon?: string;
19
20
  label: string;
20
21
  menuItems: Array<MenuItemProps>;
package/dist/index.d.ts CHANGED
@@ -96,7 +96,7 @@ interface ButtonProps$2 extends AccessibleProps {
96
96
  /** If enabled, the small button format will be used. */
97
97
  small?: boolean;
98
98
  /** Define which button format to display. By default the Primary button will be used. */
99
- format?: 'primary' | 'secondary' | 'red';
99
+ format?: 'primary' | 'secondary' | 'red' | 'green';
100
100
  }
101
101
  declare const Button: FC<ButtonProps$2>;
102
102
 
@@ -116,7 +116,8 @@ interface ButtonMenuProps {
116
116
  label: string;
117
117
  small?: boolean;
118
118
  menuItems: Array<MenuItemProps>;
119
- maxHeight?: string | number;
119
+ menuWidth?: string;
120
+ maxHeight?: string;
120
121
  position?: 'left' | 'right';
121
122
  format?: 'primary' | 'secondary';
122
123
  }
@@ -394,13 +395,14 @@ interface PageHeaderProps {
394
395
  }>;
395
396
  actions?: Array<{
396
397
  disabled?: boolean;
397
- format?: 'primary' | 'secondary' | 'red';
398
+ format?: 'primary' | 'secondary' | 'red' | 'green';
398
399
  icon?: string;
399
400
  label: string;
400
401
  onClick?: (e: any) => void;
401
402
  }>;
402
403
  buttonMenu?: {
403
404
  disabled?: boolean;
405
+ format?: 'primary' | 'secondary';
404
406
  icon?: string;
405
407
  label: string;
406
408
  menuItems: Array<MenuItemProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexure/ui",
3
- "version": "1.8.4",
3
+ "version": "1.8.6",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",