@hexure/ui 1.6.8 → 1.6.9

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.
@@ -1,12 +1,17 @@
1
1
  import { FC, ReactNode } from 'react';
2
2
  import { AccessibleProps } from '../../utils/Accessibility';
3
3
  interface ButtonProps {
4
- disabled: boolean;
4
+ disabled?: boolean;
5
5
  children: string;
6
6
  icon?: string;
7
7
  onClick: (e?: any) => void;
8
8
  tabIndex?: number;
9
9
  }
10
+ interface StepProps {
11
+ label: string;
12
+ complete?: boolean;
13
+ active?: boolean;
14
+ }
10
15
  export interface ModalProps extends AccessibleProps {
11
16
  /** Defines a button to be displayed on the far right of the bottom button bar */
12
17
  primaryButton?: ButtonProps;
@@ -22,6 +27,8 @@ export interface ModalProps extends AccessibleProps {
22
27
  title: string;
23
28
  /** It is used to close modal. */
24
29
  onClose: (e?: any) => void;
30
+ /** Display steps at the top of the modal */
31
+ steps?: StepProps[];
25
32
  }
26
33
  declare const Modal: FC<ModalProps>;
27
34
  export default Modal;
package/dist/index.d.ts CHANGED
@@ -285,12 +285,17 @@ interface LogoProps extends AccessibleProps {
285
285
  declare const Logo: FC<LogoProps>;
286
286
 
287
287
  interface ButtonProps {
288
- disabled: boolean;
288
+ disabled?: boolean;
289
289
  children: string;
290
290
  icon?: string;
291
291
  onClick: (e?: any) => void;
292
292
  tabIndex?: number;
293
293
  }
294
+ interface StepProps {
295
+ label: string;
296
+ complete?: boolean;
297
+ active?: boolean;
298
+ }
294
299
  interface ModalProps extends AccessibleProps {
295
300
  /** Defines a button to be displayed on the far right of the bottom button bar */
296
301
  primaryButton?: ButtonProps;
@@ -306,6 +311,8 @@ interface ModalProps extends AccessibleProps {
306
311
  title: string;
307
312
  /** It is used to close modal. */
308
313
  onClose: (e?: any) => void;
314
+ /** Display steps at the top of the modal */
315
+ steps?: StepProps[];
309
316
  }
310
317
  declare const Modal: FC<ModalProps>;
311
318
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexure/ui",
3
- "version": "1.6.8",
3
+ "version": "1.6.9",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",