@hexure/ui 1.1.1 → 1.1.2

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.
@@ -13,7 +13,7 @@ export interface ButtonProps extends AccessibleProps {
13
13
  /** If enabled, the small button format will be used. */
14
14
  small?: boolean;
15
15
  /** Define which button type to display. By default the Primary button will be used. */
16
- type?: 'primary' | 'secondary';
16
+ type?: 'primary' | 'secondary' | 'red';
17
17
  }
18
18
  declare const Button: FC<ButtonProps>;
19
19
  export default Button;
@@ -9,8 +9,8 @@ interface ButtonProps {
9
9
  }
10
10
  export interface ModalProps extends AccessibleProps {
11
11
  primaryButton: ButtonProps;
12
- secondaryButton: ButtonProps;
13
- tertiaryButton: ButtonProps;
12
+ secondaryButton?: ButtonProps;
13
+ tertiaryButton?: ButtonProps;
14
14
  maxWidth?: string | number;
15
15
  /** It is used to pass child nodes, string values and number as child components. */
16
16
  children: ReactNode;
@@ -8,7 +8,7 @@ export interface MultiSelectProps extends AccessibleProps {
8
8
  readOnly?: boolean;
9
9
  displayCount?: number;
10
10
  invalid?: boolean;
11
- onChange: (e?: any) => void;
11
+ onChange: (e: any) => void;
12
12
  options?: OptionProps[];
13
13
  selected: (string | number)[];
14
14
  showSelectAll?: boolean;
package/dist/index.d.ts CHANGED
@@ -79,7 +79,7 @@ interface ButtonProps$1 extends AccessibleProps {
79
79
  /** If enabled, the small button format will be used. */
80
80
  small?: boolean;
81
81
  /** Define which button type to display. By default the Primary button will be used. */
82
- type?: 'primary' | 'secondary';
82
+ type?: 'primary' | 'secondary' | 'red';
83
83
  }
84
84
  declare const Button: FC<ButtonProps$1>;
85
85
 
@@ -183,8 +183,8 @@ interface ButtonProps {
183
183
  }
184
184
  interface ModalProps extends AccessibleProps {
185
185
  primaryButton: ButtonProps;
186
- secondaryButton: ButtonProps;
187
- tertiaryButton: ButtonProps;
186
+ secondaryButton?: ButtonProps;
187
+ tertiaryButton?: ButtonProps;
188
188
  maxWidth?: string | number;
189
189
  /** It is used to pass child nodes, string values and number as child components. */
190
190
  children: ReactNode;
@@ -203,7 +203,7 @@ interface MultiSelectProps extends AccessibleProps {
203
203
  readOnly?: boolean;
204
204
  displayCount?: number;
205
205
  invalid?: boolean;
206
- onChange: (e?: any) => void;
206
+ onChange: (e: any) => void;
207
207
  options?: OptionProps$2[];
208
208
  selected: (string | number)[];
209
209
  showSelectAll?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexure/ui",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",