@hexure/ui 1.13.66 → 1.13.67

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.
@@ -4,6 +4,10 @@ export interface StepProps {
4
4
  complete?: boolean;
5
5
  active?: boolean;
6
6
  percentComplete?: number;
7
+ extraProps?: {
8
+ title: string;
9
+ onClick?: () => void;
10
+ };
7
11
  }
8
12
  export interface ProgressBarProps {
9
13
  steps: StepProps[];
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import React, { FC, ReactNode } from 'react';
2
- import { CSSProperties } from 'styled-components';
3
-
1
+ import React, { FC, ReactNode } from 'react';
2
+ import { CSSProperties } from 'styled-components';
3
+
4
4
  interface AccessibleProps {
5
5
  /** Set the css data-itemid for the main wrapping html element */
6
6
  id?: string;
@@ -15,8 +15,8 @@ interface AccessibleProps {
15
15
  tabIndex?: number;
16
16
  /** Set a label for an interactive element. See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label */
17
17
  'aria-label'?: string;
18
- }
19
-
18
+ }
19
+
20
20
  interface AccordionProps extends AccessibleProps {
21
21
  dataItemid?: string;
22
22
  title?: string;
@@ -27,8 +27,8 @@ interface AccordionProps extends AccessibleProps {
27
27
  /** Method to call when the header is clicked */
28
28
  onClick: (e?: any) => void;
29
29
  }
30
- declare const Accordion: FC<AccordionProps>;
31
-
30
+ declare const Accordion: FC<AccordionProps>;
31
+
32
32
  interface ButtonProps$4 {
33
33
  children: string;
34
34
  format?: string;
@@ -55,8 +55,8 @@ interface ActionDialogProps extends AccessibleProps {
55
55
  interface CustomStyle {
56
56
  [key: string]: string | number;
57
57
  }
58
- declare const ActionDialog: FC<ActionDialogProps>;
59
-
58
+ declare const ActionDialog: FC<ActionDialogProps>;
59
+
60
60
  interface ActionProps$1 extends AccessibleProps {
61
61
  label: string;
62
62
  onClick: (e?: any) => void;
@@ -74,8 +74,8 @@ interface AlertProps extends AccessibleProps {
74
74
  /** Optional ID for automation purposes */
75
75
  dataItemid?: string;
76
76
  }
77
- declare const Alert: FC<AlertProps>;
78
-
77
+ declare const Alert: FC<AlertProps>;
78
+
79
79
  interface TooltipProps {
80
80
  /** It is used to give label to tag. */
81
81
  children: any;
@@ -94,8 +94,8 @@ interface TooltipProps {
94
94
  */
95
95
  auto?: boolean;
96
96
  }
97
- declare const Tooltip: FC<TooltipProps>;
98
-
97
+ declare const Tooltip: FC<TooltipProps>;
98
+
99
99
  interface ButtonProps$3 extends AccessibleProps {
100
100
  /** Display a number badge on the right side of the button */
101
101
  badge?: number;
@@ -127,16 +127,16 @@ interface ButtonProps$3 extends AccessibleProps {
127
127
  /** Optional type for the button */
128
128
  type?: 'button' | 'submit' | 'reset' | null;
129
129
  }
130
- declare const Button: FC<ButtonProps$3>;
131
-
130
+ declare const Button: FC<ButtonProps$3>;
131
+
132
132
  interface AppHeaderProps {
133
133
  logoUrl?: string;
134
134
  buttons: ButtonProps$3[];
135
135
  /** Optional ID for automation purposes */
136
136
  dataItemid?: string;
137
137
  }
138
- declare const AppHeader: FC<AppHeaderProps>;
139
-
138
+ declare const AppHeader: FC<AppHeaderProps>;
139
+
140
140
  interface MenuItemType extends AccessibleProps {
141
141
  icon: string;
142
142
  label: string;
@@ -157,8 +157,8 @@ interface AppMenuProps extends AccessibleProps {
157
157
  /** Optional ID for automation purposes */
158
158
  dataItemid?: string;
159
159
  }
160
- declare const AppMenu: FC<AppMenuProps>;
161
-
160
+ declare const AppMenu: FC<AppMenuProps>;
161
+
162
162
  interface ButtonProps$2 {
163
163
  children: string;
164
164
  onClick: (e?: any) => void;
@@ -174,8 +174,8 @@ interface BulkActionBarProps extends AccessibleProps {
174
174
  /** Optional ID for automation purposes */
175
175
  dataItemid?: string;
176
176
  }
177
- declare const BulkActionBar: FC<BulkActionBarProps>;
178
-
177
+ declare const BulkActionBar: FC<BulkActionBarProps>;
178
+
179
179
  interface MenuItemProps extends AccessibleProps {
180
180
  icon?: string;
181
181
  label?: string;
@@ -188,8 +188,8 @@ interface MoreMenuProps extends AccessibleProps {
188
188
  /** Optional ID for automation purposes */
189
189
  dataItemid?: string;
190
190
  }
191
- declare const MoreMenu: FC<MoreMenuProps>;
192
-
191
+ declare const MoreMenu: FC<MoreMenuProps>;
192
+
193
193
  interface ButtonMenuProps {
194
194
  disabled?: boolean;
195
195
  label: string;
@@ -205,8 +205,8 @@ interface ButtonMenuProps {
205
205
  /** Optional ID for automation purposes */
206
206
  dataItemid?: string;
207
207
  }
208
- declare const ButtonMenu: FC<ButtonMenuProps>;
209
-
208
+ declare const ButtonMenu: FC<ButtonMenuProps>;
209
+
210
210
  interface CheckboxProps extends AccessibleProps {
211
211
  /** It is used to give label to checkbox. */
212
212
  children?: string;
@@ -226,8 +226,8 @@ interface CheckboxProps extends AccessibleProps {
226
226
  isInvalidRedBackground?: boolean;
227
227
  isWarningError?: boolean;
228
228
  }
229
- declare const Checkbox: FC<CheckboxProps>;
230
-
229
+ declare const Checkbox: FC<CheckboxProps>;
230
+
231
231
  interface OptionProps$3 {
232
232
  label?: string;
233
233
  value: string | number;
@@ -242,8 +242,8 @@ interface ChecklistProps extends AccessibleProps {
242
242
  /** Optional ID for automation purposes */
243
243
  dataItemid?: string;
244
244
  }
245
- declare const Checklist: FC<ChecklistProps>;
246
-
245
+ declare const Checklist: FC<ChecklistProps>;
246
+
247
247
  interface CopyProps extends AccessibleProps {
248
248
  /** Set the text to be displayed */
249
249
  children: string | React.ReactNode;
@@ -259,8 +259,8 @@ interface CopyProps extends AccessibleProps {
259
259
  /** Optional ID for automation purposes */
260
260
  dataItemid?: string;
261
261
  }
262
- declare const Copy: FC<CopyProps>;
263
-
262
+ declare const Copy: FC<CopyProps>;
263
+
264
264
  interface styleProps$2 {
265
265
  width?: number | string;
266
266
  }
@@ -281,8 +281,8 @@ interface DateProps extends AccessibleProps {
281
281
  dataItemid?: string;
282
282
  locale?: localeProps;
283
283
  }
284
- declare const DatePicker: FC<DateProps>;
285
-
284
+ declare const DatePicker: FC<DateProps>;
285
+
286
286
  interface ButtonProps$1 extends AccessibleProps {
287
287
  disabled?: boolean;
288
288
  children: string;
@@ -318,8 +318,8 @@ interface DrawerProps extends AccessibleProps {
318
318
  dataItemid?: string;
319
319
  bottomNotes?: string | ReactNode;
320
320
  }
321
- declare const Drawer: FC<DrawerProps>;
322
-
321
+ declare const Drawer: FC<DrawerProps>;
322
+
323
323
  interface ActionProps {
324
324
  dataItemid?: string;
325
325
  label: string;
@@ -346,8 +346,8 @@ interface FieldProps extends AccessibleProps {
346
346
  /** Optional for black message with icon */
347
347
  isNewMessageType?: boolean;
348
348
  }
349
- declare const Field: FC<FieldProps>;
350
-
349
+ declare const Field: FC<FieldProps>;
350
+
351
351
  interface FieldGroupProps {
352
352
  /** The label to display above the field group */
353
353
  label: string;
@@ -356,8 +356,8 @@ interface FieldGroupProps {
356
356
  /** Optional ID for automation purposes */
357
357
  dataItemid?: string;
358
358
  }
359
- declare const FieldGroup: FC<FieldGroupProps>;
360
-
359
+ declare const FieldGroup: FC<FieldGroupProps>;
360
+
361
361
  interface FileUploadProps {
362
362
  /** A method to call when files are added/removed. Return the new file or array of files. */
363
363
  onChange?: (files: Array<File>) => void;
@@ -383,8 +383,8 @@ interface ErrorObject {
383
383
  file: File;
384
384
  message: string;
385
385
  }
386
- declare const FileUpload: FC<FileUploadProps>;
387
-
386
+ declare const FileUpload: FC<FileUploadProps>;
387
+
388
388
  interface HeadingProps extends AccessibleProps {
389
389
  /** Toggle between bold and normal font weights */
390
390
  bold?: boolean;
@@ -399,8 +399,8 @@ interface HeadingProps extends AccessibleProps {
399
399
  /** Optional ID for automation purposes */
400
400
  dataItemid?: string;
401
401
  }
402
- declare const Heading: FC<HeadingProps>;
403
-
402
+ declare const Heading: FC<HeadingProps>;
403
+
404
404
  interface InputProps extends AccessibleProps {
405
405
  format?: 'phone' | 'currency' | 'currency_decimal' | 'ssn';
406
406
  height?: string;
@@ -435,8 +435,8 @@ interface InputProps extends AccessibleProps {
435
435
  isInvalidRedBackground?: boolean;
436
436
  isWarningError?: boolean;
437
437
  }
438
- declare const Input: FC<InputProps>;
439
-
438
+ declare const Input: FC<InputProps>;
439
+
440
440
  interface LinkProps extends AccessibleProps {
441
441
  /** Set the text to be displayed */
442
442
  children: string;
@@ -447,27 +447,31 @@ interface LinkProps extends AccessibleProps {
447
447
  /** Optional ID for automation purposes */
448
448
  dataItemid?: string;
449
449
  }
450
- declare const Link: FC<LinkProps>;
451
-
450
+ declare const Link: FC<LinkProps>;
451
+
452
452
  interface LoaderProps {
453
453
  /** Optional ID for automation purposes */
454
454
  dataItemid?: string;
455
455
  }
456
- declare const Loader: FC<LoaderProps>;
457
-
456
+ declare const Loader: FC<LoaderProps>;
457
+
458
458
  interface LogoProps extends AccessibleProps {
459
459
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
460
460
  height?: string;
461
461
  /** Optional ID for automation purposes */
462
462
  dataItemid?: string;
463
463
  }
464
- declare const Logo: FC<LogoProps>;
465
-
464
+ declare const Logo: FC<LogoProps>;
465
+
466
466
  interface StepProps {
467
467
  label: string | ReactNode;
468
468
  complete?: boolean;
469
469
  active?: boolean;
470
470
  percentComplete?: number;
471
+ extraProps?: {
472
+ title: string;
473
+ onClick?: () => void;
474
+ };
471
475
  }
472
476
  interface ProgressBarProps {
473
477
  steps: StepProps[];
@@ -475,8 +479,8 @@ interface ProgressBarProps {
475
479
  /** Optional ID for automation purposes */
476
480
  dataItemid?: string;
477
481
  }
478
- declare const ProgressBar: FC<ProgressBarProps>;
479
-
482
+ declare const ProgressBar: FC<ProgressBarProps>;
483
+
480
484
  interface ButtonProps {
481
485
  disabled?: boolean;
482
486
  children: string;
@@ -510,8 +514,8 @@ interface ModalProps extends AccessibleProps {
510
514
  /** Optional ID for automation purposes */
511
515
  dataItemid?: string;
512
516
  }
513
- declare const Modal: FC<ModalProps>;
514
-
517
+ declare const Modal: FC<ModalProps>;
518
+
515
519
  interface OptionProps$2 {
516
520
  label?: string;
517
521
  value: string | number;
@@ -533,8 +537,8 @@ interface MultiSelectProps extends AccessibleProps {
533
537
  /** Optional ID for automation purposes */
534
538
  dataItemid?: string;
535
539
  }
536
- declare const MultiSelect: FC<MultiSelectProps>;
537
-
540
+ declare const MultiSelect: FC<MultiSelectProps>;
541
+
538
542
  interface TagProps extends AccessibleProps {
539
543
  /** It is used to select tag-type either default or removable. */
540
544
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -547,8 +551,8 @@ interface TagProps extends AccessibleProps {
547
551
  /** Optional ID for automation purposes */
548
552
  dataItemid?: string;
549
553
  }
550
- declare const Tag: FC<TagProps>;
551
-
554
+ declare const Tag: FC<TagProps>;
555
+
552
556
  interface PageHeaderProps {
553
557
  title?: string;
554
558
  breadcrumbs?: Array<{
@@ -580,8 +584,8 @@ interface PageHeaderProps {
580
584
  /** Optional ID for automation purposes */
581
585
  dataItemid?: string;
582
586
  }
583
- declare const PageHeader: FC<PageHeaderProps>;
584
-
587
+ declare const PageHeader: FC<PageHeaderProps>;
588
+
585
589
  interface PaginationProps extends AccessibleProps {
586
590
  currentPage: number;
587
591
  onClick: (e?: any) => void;
@@ -590,8 +594,8 @@ interface PaginationProps extends AccessibleProps {
590
594
  dataItemid?: string;
591
595
  type?: 'button' | 'submit' | 'reset' | null;
592
596
  }
593
- declare const Pagination: FC<PaginationProps>;
594
-
597
+ declare const Pagination: FC<PaginationProps>;
598
+
595
599
  interface RadioProps extends AccessibleProps {
596
600
  /** It is used to give label to radio. */
597
601
  children: string | number;
@@ -612,8 +616,8 @@ interface RadioProps extends AccessibleProps {
612
616
  isInvalidRedBackground?: boolean;
613
617
  isWarningError?: boolean;
614
618
  }
615
- declare const Radio: FC<RadioProps>;
616
-
619
+ declare const Radio: FC<RadioProps>;
620
+
617
621
  interface OptionProps$1 {
618
622
  label?: string;
619
623
  value: string | number;
@@ -626,8 +630,8 @@ interface RadioListProps extends AccessibleProps {
626
630
  /** Optional ID for automation purposes */
627
631
  dataItemid?: string;
628
632
  }
629
- declare const RadioList: FC<RadioListProps>;
630
-
633
+ declare const RadioList: FC<RadioListProps>;
634
+
631
635
  interface OptionProps {
632
636
  label?: string;
633
637
  value: string | number;
@@ -660,8 +664,8 @@ interface SelectProps extends AccessibleProps {
660
664
  isInvalidRedBackground?: boolean;
661
665
  isWarningError?: boolean;
662
666
  }
663
- declare const Select: FC<SelectProps>;
664
-
667
+ declare const Select: FC<SelectProps>;
668
+
665
669
  interface RowObject {
666
670
  [key: string]: any;
667
671
  }
@@ -687,8 +691,8 @@ interface TableProps extends AccessibleProps {
687
691
  /** Optional ID for automation purposes */
688
692
  dataItemid?: string;
689
693
  }
690
- declare const Table: FC<TableProps>;
691
-
694
+ declare const Table: FC<TableProps>;
695
+
692
696
  interface TabProps extends AccessibleProps {
693
697
  badgeCount?: number;
694
698
  errorBadge?: boolean;
@@ -701,8 +705,8 @@ interface TabsProps extends AccessibleProps {
701
705
  /** Optional ID for automation purposes */
702
706
  dataItemid?: string;
703
707
  }
704
- declare const Tabs: FC<TabsProps>;
705
-
708
+ declare const Tabs: FC<TabsProps>;
709
+
706
710
  interface ToggleProps extends AccessibleProps {
707
711
  /** It is used to check whether Toggle is checked or not */
708
712
  on: boolean;
@@ -711,8 +715,8 @@ interface ToggleProps extends AccessibleProps {
711
715
  /** Optional ID for automation purposes */
712
716
  dataItemid?: string;
713
717
  }
714
- declare const Toggle: FC<ToggleProps>;
715
-
718
+ declare const Toggle: FC<ToggleProps>;
719
+
716
720
  interface ZeroStateProps extends AccessibleProps {
717
721
  /** The SVG path of the icon to show */
718
722
  icon: string;
@@ -731,8 +735,8 @@ interface ZeroStateProps extends AccessibleProps {
731
735
  /** Optional ID for automation purposes */
732
736
  dataItemid?: string;
733
737
  }
734
- declare const ZeroState: FC<ZeroStateProps>;
735
-
738
+ declare const ZeroState: FC<ZeroStateProps>;
739
+
736
740
  declare const getAgesFromDob: (dob: string) => {
737
741
  calculated_nearest_age: number | null;
738
742
  calculated_current_age: number | null;
@@ -747,8 +751,8 @@ declare const validateEmail: (email: string) => boolean;
747
751
  declare const validatePhone: (phone: string) => boolean;
748
752
  declare const formatAsPhone: (number: string) => string;
749
753
  declare const formatAsSsn: (number: string) => string;
750
- declare const formatAsMask: (number: string, mask: string) => string;
751
-
754
+ declare const formatAsMask: (number: string, mask: string) => string;
755
+
752
756
  declare const Colors: {
753
757
  PRIMARY: {
754
758
  Hex: string;
@@ -800,6 +804,6 @@ declare const EditableTheme: {
800
804
  Hex: string;
801
805
  Rgb: string;
802
806
  };
803
- };
804
-
805
- export { AccessibleProps, Accordion, ActionDialog, Alert, AppHeader, AppMenu, BulkActionBar, Button, ButtonMenu, Checkbox, Checklist, Colors, Copy, DatePicker, Drawer, EditableTheme, Field, FieldGroup, FileUpload, FontSizes, FontStyles, Heading, Input, Link, Loader, Logo, Modal, MoreMenu, MultiSelect, PageHeader, Pagination, ProgressBar, Radio, RadioList, Select, Table, Tabs, Tag, Toggle, Tooltip, ZeroState, formatAsMask, formatAsPhone, formatAsSsn, getAgesFromDob, getDaysForMonth, getYears, validateEmail, validatePhone };
807
+ };
808
+
809
+ export { AccessibleProps, Accordion, ActionDialog, Alert, AppHeader, AppMenu, BulkActionBar, Button, ButtonMenu, Checkbox, Checklist, Colors, Copy, DatePicker, Drawer, EditableTheme, Field, FieldGroup, FileUpload, FontSizes, FontStyles, Heading, Input, Link, Loader, Logo, Modal, MoreMenu, MultiSelect, PageHeader, Pagination, ProgressBar, Radio, RadioList, Select, Table, Tabs, Tag, Toggle, Tooltip, ZeroState, formatAsMask, formatAsPhone, formatAsSsn, getAgesFromDob, getDaysForMonth, getYears, validateEmail, validatePhone };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexure/ui",
3
- "version": "1.13.66",
3
+ "version": "1.13.67",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",