@hexure/ui 1.13.47 → 1.13.48

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.
@@ -29,6 +29,8 @@ export interface ButtonProps extends AccessibleProps {
29
29
  title?: string;
30
30
  /** Optional ID for automation purposes */
31
31
  dataItemid?: string;
32
+ /** Optional type for the button */
33
+ type?: 'button' | 'submit' | 'reset' | null;
32
34
  }
33
35
  declare const Button: FC<ButtonProps>;
34
36
  export default Button;
@@ -14,6 +14,8 @@ export interface PageHeaderProps {
14
14
  icon?: string;
15
15
  label: string;
16
16
  onClick?: (e: any) => void;
17
+ /** Optional type for the button */
18
+ type?: 'button' | 'submit' | 'reset' | null;
17
19
  }>;
18
20
  buttonMenu?: {
19
21
  disabled?: boolean;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import React, { FC, ReactNode } from 'react';
2
-
1
+ import React, { FC, ReactNode } from 'react';
2
+
3
3
  interface AccessibleProps {
4
4
  /** Set the css data-itemid for the main wrapping html element */
5
5
  id?: string;
@@ -14,8 +14,8 @@ interface AccessibleProps {
14
14
  tabIndex?: number;
15
15
  /** Set a label for an interactive element. See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label */
16
16
  'aria-label'?: string;
17
- }
18
-
17
+ }
18
+
19
19
  interface AccordionProps extends AccessibleProps {
20
20
  dataItemid?: string;
21
21
  title?: string;
@@ -26,8 +26,8 @@ interface AccordionProps extends AccessibleProps {
26
26
  /** Method to call when the header is clicked */
27
27
  onClick: (e?: any) => void;
28
28
  }
29
- declare const Accordion: FC<AccordionProps>;
30
-
29
+ declare const Accordion: FC<AccordionProps>;
30
+
31
31
  interface ButtonProps$4 {
32
32
  children: string;
33
33
  format?: string;
@@ -54,8 +54,8 @@ interface ActionDialogProps extends AccessibleProps {
54
54
  interface CustomStyle {
55
55
  [key: string]: string | number;
56
56
  }
57
- declare const ActionDialog: FC<ActionDialogProps>;
58
-
57
+ declare const ActionDialog: FC<ActionDialogProps>;
58
+
59
59
  interface ActionProps$1 extends AccessibleProps {
60
60
  label: string;
61
61
  onClick: (e?: any) => void;
@@ -73,8 +73,8 @@ interface AlertProps extends AccessibleProps {
73
73
  /** Optional ID for automation purposes */
74
74
  dataItemid?: string;
75
75
  }
76
- declare const Alert: FC<AlertProps>;
77
-
76
+ declare const Alert: FC<AlertProps>;
77
+
78
78
  interface TooltipProps {
79
79
  /** It is used to give label to tag. */
80
80
  children: any;
@@ -87,8 +87,8 @@ interface TooltipProps {
87
87
  /** Optional ID for automation purposes */
88
88
  dataItemid?: string;
89
89
  }
90
- declare const Tooltip: FC<TooltipProps>;
91
-
90
+ declare const Tooltip: FC<TooltipProps>;
91
+
92
92
  interface ButtonProps$3 extends AccessibleProps {
93
93
  /** Display a number badge on the right side of the button */
94
94
  badge?: number;
@@ -117,17 +117,19 @@ interface ButtonProps$3 extends AccessibleProps {
117
117
  title?: string;
118
118
  /** Optional ID for automation purposes */
119
119
  dataItemid?: string;
120
+ /** Optional type for the button */
121
+ type?: 'button' | 'submit' | 'reset' | null;
120
122
  }
121
- declare const Button: FC<ButtonProps$3>;
122
-
123
+ declare const Button: FC<ButtonProps$3>;
124
+
123
125
  interface AppHeaderProps {
124
126
  logoUrl?: string;
125
127
  buttons: ButtonProps$3[];
126
128
  /** Optional ID for automation purposes */
127
129
  dataItemid?: string;
128
130
  }
129
- declare const AppHeader: FC<AppHeaderProps>;
130
-
131
+ declare const AppHeader: FC<AppHeaderProps>;
132
+
131
133
  interface MenuItemType extends AccessibleProps {
132
134
  icon: string;
133
135
  label: string;
@@ -148,8 +150,8 @@ interface AppMenuProps extends AccessibleProps {
148
150
  /** Optional ID for automation purposes */
149
151
  dataItemid?: string;
150
152
  }
151
- declare const AppMenu: FC<AppMenuProps>;
152
-
153
+ declare const AppMenu: FC<AppMenuProps>;
154
+
153
155
  interface ButtonProps$2 {
154
156
  children: string;
155
157
  onClick: (e?: any) => void;
@@ -164,8 +166,8 @@ interface BulkActionBarProps extends AccessibleProps {
164
166
  /** Optional ID for automation purposes */
165
167
  dataItemid?: string;
166
168
  }
167
- declare const BulkActionBar: FC<BulkActionBarProps>;
168
-
169
+ declare const BulkActionBar: FC<BulkActionBarProps>;
170
+
169
171
  interface MenuItemProps extends AccessibleProps {
170
172
  icon?: string;
171
173
  label?: string;
@@ -178,8 +180,8 @@ interface MoreMenuProps extends AccessibleProps {
178
180
  /** Optional ID for automation purposes */
179
181
  dataItemid?: string;
180
182
  }
181
- declare const MoreMenu: FC<MoreMenuProps>;
182
-
183
+ declare const MoreMenu: FC<MoreMenuProps>;
184
+
183
185
  interface ButtonMenuProps {
184
186
  disabled?: boolean;
185
187
  label: string;
@@ -195,8 +197,8 @@ interface ButtonMenuProps {
195
197
  /** Optional ID for automation purposes */
196
198
  dataItemid?: string;
197
199
  }
198
- declare const ButtonMenu: FC<ButtonMenuProps>;
199
-
200
+ declare const ButtonMenu: FC<ButtonMenuProps>;
201
+
200
202
  interface CheckboxProps extends AccessibleProps {
201
203
  /** It is used to give label to checkbox. */
202
204
  children?: string;
@@ -214,8 +216,8 @@ interface CheckboxProps extends AccessibleProps {
214
216
  /** Optional ID for automation purposes */
215
217
  dataItemid?: string;
216
218
  }
217
- declare const Checkbox: FC<CheckboxProps>;
218
-
219
+ declare const Checkbox: FC<CheckboxProps>;
220
+
219
221
  interface OptionProps$3 {
220
222
  label?: string;
221
223
  value: string | number;
@@ -230,8 +232,8 @@ interface ChecklistProps extends AccessibleProps {
230
232
  /** Optional ID for automation purposes */
231
233
  dataItemid?: string;
232
234
  }
233
- declare const Checklist: FC<ChecklistProps>;
234
-
235
+ declare const Checklist: FC<ChecklistProps>;
236
+
235
237
  interface CopyProps extends AccessibleProps {
236
238
  /** Set the text to be displayed */
237
239
  children: string | React.ReactNode;
@@ -247,8 +249,8 @@ interface CopyProps extends AccessibleProps {
247
249
  /** Optional ID for automation purposes */
248
250
  dataItemid?: string;
249
251
  }
250
- declare const Copy: FC<CopyProps>;
251
-
252
+ declare const Copy: FC<CopyProps>;
253
+
252
254
  interface styleProps$3 {
253
255
  width?: number | string;
254
256
  }
@@ -269,8 +271,8 @@ interface DateProps extends AccessibleProps {
269
271
  dataItemid?: string;
270
272
  locale?: localeProps;
271
273
  }
272
- declare const DatePicker: FC<DateProps>;
273
-
274
+ declare const DatePicker: FC<DateProps>;
275
+
274
276
  interface ButtonProps$1 extends AccessibleProps {
275
277
  disabled?: boolean;
276
278
  children: string;
@@ -301,8 +303,8 @@ interface DrawerProps extends AccessibleProps {
301
303
  /** Optional ID for automation purposes */
302
304
  dataItemid?: string;
303
305
  }
304
- declare const Drawer: FC<DrawerProps>;
305
-
306
+ declare const Drawer: FC<DrawerProps>;
307
+
306
308
  interface ActionProps {
307
309
  dataItemid?: string;
308
310
  label: string;
@@ -327,8 +329,8 @@ interface FieldProps extends AccessibleProps {
327
329
  /** Optional ID for automation purposes */
328
330
  dataItemid?: string;
329
331
  }
330
- declare const Field: FC<FieldProps>;
331
-
332
+ declare const Field: FC<FieldProps>;
333
+
332
334
  interface FieldGroupProps {
333
335
  /** The label to display above the field group */
334
336
  label: string;
@@ -337,8 +339,8 @@ interface FieldGroupProps {
337
339
  /** Optional ID for automation purposes */
338
340
  dataItemid?: string;
339
341
  }
340
- declare const FieldGroup: FC<FieldGroupProps>;
341
-
342
+ declare const FieldGroup: FC<FieldGroupProps>;
343
+
342
344
  interface FileUploadProps {
343
345
  /** A method to call when files are added/removed. Return the new file or array of files. */
344
346
  onChange?: (files: Array<File>) => void;
@@ -364,8 +366,8 @@ interface ErrorObject {
364
366
  file: File;
365
367
  message: string;
366
368
  }
367
- declare const FileUpload: FC<FileUploadProps>;
368
-
369
+ declare const FileUpload: FC<FileUploadProps>;
370
+
369
371
  interface HeadingProps extends AccessibleProps {
370
372
  /** Toggle between bold and normal font weights */
371
373
  bold?: boolean;
@@ -380,8 +382,8 @@ interface HeadingProps extends AccessibleProps {
380
382
  /** Optional ID for automation purposes */
381
383
  dataItemid?: string;
382
384
  }
383
- declare const Heading: FC<HeadingProps>;
384
-
385
+ declare const Heading: FC<HeadingProps>;
386
+
385
387
  interface styleProps$2 {
386
388
  width?: number | string;
387
389
  }
@@ -414,8 +416,8 @@ interface InputProps extends AccessibleProps {
414
416
  /** Optional ID for automation purposes */
415
417
  dataItemid?: string;
416
418
  }
417
- declare const Input: FC<InputProps>;
418
-
419
+ declare const Input: FC<InputProps>;
420
+
419
421
  interface LinkProps extends AccessibleProps {
420
422
  /** Set the text to be displayed */
421
423
  children: string;
@@ -426,22 +428,22 @@ interface LinkProps extends AccessibleProps {
426
428
  /** Optional ID for automation purposes */
427
429
  dataItemid?: string;
428
430
  }
429
- declare const Link: FC<LinkProps>;
430
-
431
+ declare const Link: FC<LinkProps>;
432
+
431
433
  interface LoaderProps {
432
434
  /** Optional ID for automation purposes */
433
435
  dataItemid?: string;
434
436
  }
435
- declare const Loader: FC<LoaderProps>;
436
-
437
+ declare const Loader: FC<LoaderProps>;
438
+
437
439
  interface LogoProps extends AccessibleProps {
438
440
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
439
441
  height?: string;
440
442
  /** Optional ID for automation purposes */
441
443
  dataItemid?: string;
442
444
  }
443
- declare const Logo: FC<LogoProps>;
444
-
445
+ declare const Logo: FC<LogoProps>;
446
+
445
447
  interface StepProps {
446
448
  label: string | ReactNode;
447
449
  complete?: boolean;
@@ -453,8 +455,8 @@ interface ProgressBarProps {
453
455
  /** Optional ID for automation purposes */
454
456
  dataItemid?: string;
455
457
  }
456
- declare const ProgressBar: FC<ProgressBarProps>;
457
-
458
+ declare const ProgressBar: FC<ProgressBarProps>;
459
+
458
460
  interface ButtonProps {
459
461
  disabled?: boolean;
460
462
  children: string;
@@ -488,8 +490,8 @@ interface ModalProps extends AccessibleProps {
488
490
  /** Optional ID for automation purposes */
489
491
  dataItemid?: string;
490
492
  }
491
- declare const Modal: FC<ModalProps>;
492
-
493
+ declare const Modal: FC<ModalProps>;
494
+
493
495
  interface OptionProps$2 {
494
496
  label?: string;
495
497
  value: string | number;
@@ -511,8 +513,8 @@ interface MultiSelectProps extends AccessibleProps {
511
513
  /** Optional ID for automation purposes */
512
514
  dataItemid?: string;
513
515
  }
514
- declare const MultiSelect: FC<MultiSelectProps>;
515
-
516
+ declare const MultiSelect: FC<MultiSelectProps>;
517
+
516
518
  interface TagProps extends AccessibleProps {
517
519
  /** It is used to select tag-type either default or removable. */
518
520
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -525,8 +527,8 @@ interface TagProps extends AccessibleProps {
525
527
  /** Optional ID for automation purposes */
526
528
  dataItemid?: string;
527
529
  }
528
- declare const Tag: FC<TagProps>;
529
-
530
+ declare const Tag: FC<TagProps>;
531
+
530
532
  interface PageHeaderProps {
531
533
  title?: string;
532
534
  breadcrumbs?: Array<{
@@ -540,6 +542,8 @@ interface PageHeaderProps {
540
542
  icon?: string;
541
543
  label: string;
542
544
  onClick?: (e: any) => void;
545
+ /** Optional type for the button */
546
+ type?: 'button' | 'submit' | 'reset' | null;
543
547
  }>;
544
548
  buttonMenu?: {
545
549
  disabled?: boolean;
@@ -556,8 +560,8 @@ interface PageHeaderProps {
556
560
  /** Optional ID for automation purposes */
557
561
  dataItemid?: string;
558
562
  }
559
- declare const PageHeader: FC<PageHeaderProps>;
560
-
563
+ declare const PageHeader: FC<PageHeaderProps>;
564
+
561
565
  interface PaginationProps extends AccessibleProps {
562
566
  currentPage: number;
563
567
  onClick: (e?: any) => void;
@@ -565,8 +569,8 @@ interface PaginationProps extends AccessibleProps {
565
569
  /** Optional ID for automation purposes */
566
570
  dataItemid?: string;
567
571
  }
568
- declare const Pagination: FC<PaginationProps>;
569
-
572
+ declare const Pagination: FC<PaginationProps>;
573
+
570
574
  interface RadioProps extends AccessibleProps {
571
575
  /** It is used to give label to radio. */
572
576
  children: string | number;
@@ -585,8 +589,8 @@ interface RadioProps extends AccessibleProps {
585
589
  /** Optional ID for automation purposes */
586
590
  dataItemid?: string;
587
591
  }
588
- declare const Radio: FC<RadioProps>;
589
-
592
+ declare const Radio: FC<RadioProps>;
593
+
590
594
  interface OptionProps$1 {
591
595
  label?: string;
592
596
  value: string | number;
@@ -599,8 +603,8 @@ interface RadioListProps extends AccessibleProps {
599
603
  /** Optional ID for automation purposes */
600
604
  dataItemid?: string;
601
605
  }
602
- declare const RadioList: FC<RadioListProps>;
603
-
606
+ declare const RadioList: FC<RadioListProps>;
607
+
604
608
  interface OptionProps {
605
609
  label?: string;
606
610
  value: string | number;
@@ -631,8 +635,8 @@ interface SelectProps extends AccessibleProps {
631
635
  /** Optional ID for automation purposes */
632
636
  dataItemid?: string;
633
637
  }
634
- declare const Select: FC<SelectProps>;
635
-
638
+ declare const Select: FC<SelectProps>;
639
+
636
640
  interface RowObject {
637
641
  [key: string]: any;
638
642
  }
@@ -658,8 +662,8 @@ interface TableProps extends AccessibleProps {
658
662
  /** Optional ID for automation purposes */
659
663
  dataItemid?: string;
660
664
  }
661
- declare const Table: FC<TableProps>;
662
-
665
+ declare const Table: FC<TableProps>;
666
+
663
667
  interface TabProps extends AccessibleProps {
664
668
  badgeCount?: number;
665
669
  errorBadge?: boolean;
@@ -672,8 +676,8 @@ interface TabsProps extends AccessibleProps {
672
676
  /** Optional ID for automation purposes */
673
677
  dataItemid?: string;
674
678
  }
675
- declare const Tabs: FC<TabsProps>;
676
-
679
+ declare const Tabs: FC<TabsProps>;
680
+
677
681
  interface ToggleProps extends AccessibleProps {
678
682
  /** It is used to check whether Toggle is checked or not */
679
683
  on: boolean;
@@ -682,8 +686,8 @@ interface ToggleProps extends AccessibleProps {
682
686
  /** Optional ID for automation purposes */
683
687
  dataItemid?: string;
684
688
  }
685
- declare const Toggle: FC<ToggleProps>;
686
-
689
+ declare const Toggle: FC<ToggleProps>;
690
+
687
691
  interface ZeroStateProps extends AccessibleProps {
688
692
  /** The SVG path of the icon to show */
689
693
  icon: string;
@@ -702,8 +706,8 @@ interface ZeroStateProps extends AccessibleProps {
702
706
  /** Optional ID for automation purposes */
703
707
  dataItemid?: string;
704
708
  }
705
- declare const ZeroState: FC<ZeroStateProps>;
706
-
709
+ declare const ZeroState: FC<ZeroStateProps>;
710
+
707
711
  declare const getAgesFromDob: (dob: string) => {
708
712
  calculated_nearest_age: number | null;
709
713
  calculated_current_age: number | null;
@@ -717,8 +721,8 @@ declare const getYears: () => {
717
721
  declare const validateEmail: (email: string) => boolean;
718
722
  declare const validatePhone: (phone: string) => boolean;
719
723
  declare const formatAsPhone: (number: string) => string;
720
- declare const formatAsSsn: (number: string) => string;
721
-
724
+ declare const formatAsSsn: (number: string) => string;
725
+
722
726
  declare const Colors: {
723
727
  PRIMARY: {
724
728
  Hex: string;
@@ -770,6 +774,6 @@ declare const EditableTheme: {
770
774
  Hex: string;
771
775
  Rgb: string;
772
776
  };
773
- };
774
-
775
- 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, formatAsPhone, formatAsSsn, getAgesFromDob, getDaysForMonth, getYears, validateEmail, validatePhone };
777
+ };
778
+
779
+ 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, 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.47",
3
+ "version": "1.13.48",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",