@hexure/ui 1.13.47 → 1.13.49

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.
@@ -5,6 +5,7 @@ interface ButtonProps {
5
5
  onClick: (e?: any) => void;
6
6
  format?: 'primary' | 'secondary';
7
7
  icon?: string;
8
+ type?: 'button' | 'submit' | 'reset' | null;
8
9
  }
9
10
  export interface BulkActionBarProps extends AccessibleProps {
10
11
  actions?: ButtonProps[];
@@ -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;
@@ -6,6 +6,7 @@ export interface PaginationProps extends AccessibleProps {
6
6
  pageCount: number;
7
7
  /** Optional ID for automation purposes */
8
8
  dataItemid?: string;
9
+ type?: 'button' | 'submit' | 'reset' | null;
9
10
  }
10
11
  declare const Pagination: FC<PaginationProps>;
11
12
  export default Pagination;
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,13 +150,14 @@ 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;
156
158
  format?: 'primary' | 'secondary';
157
159
  icon?: string;
160
+ type?: 'button' | 'submit' | 'reset' | null;
158
161
  }
159
162
  interface BulkActionBarProps extends AccessibleProps {
160
163
  actions?: ButtonProps$2[];
@@ -164,8 +167,8 @@ interface BulkActionBarProps extends AccessibleProps {
164
167
  /** Optional ID for automation purposes */
165
168
  dataItemid?: string;
166
169
  }
167
- declare const BulkActionBar: FC<BulkActionBarProps>;
168
-
170
+ declare const BulkActionBar: FC<BulkActionBarProps>;
171
+
169
172
  interface MenuItemProps extends AccessibleProps {
170
173
  icon?: string;
171
174
  label?: string;
@@ -178,8 +181,8 @@ interface MoreMenuProps extends AccessibleProps {
178
181
  /** Optional ID for automation purposes */
179
182
  dataItemid?: string;
180
183
  }
181
- declare const MoreMenu: FC<MoreMenuProps>;
182
-
184
+ declare const MoreMenu: FC<MoreMenuProps>;
185
+
183
186
  interface ButtonMenuProps {
184
187
  disabled?: boolean;
185
188
  label: string;
@@ -195,8 +198,8 @@ interface ButtonMenuProps {
195
198
  /** Optional ID for automation purposes */
196
199
  dataItemid?: string;
197
200
  }
198
- declare const ButtonMenu: FC<ButtonMenuProps>;
199
-
201
+ declare const ButtonMenu: FC<ButtonMenuProps>;
202
+
200
203
  interface CheckboxProps extends AccessibleProps {
201
204
  /** It is used to give label to checkbox. */
202
205
  children?: string;
@@ -214,8 +217,8 @@ interface CheckboxProps extends AccessibleProps {
214
217
  /** Optional ID for automation purposes */
215
218
  dataItemid?: string;
216
219
  }
217
- declare const Checkbox: FC<CheckboxProps>;
218
-
220
+ declare const Checkbox: FC<CheckboxProps>;
221
+
219
222
  interface OptionProps$3 {
220
223
  label?: string;
221
224
  value: string | number;
@@ -230,8 +233,8 @@ interface ChecklistProps extends AccessibleProps {
230
233
  /** Optional ID for automation purposes */
231
234
  dataItemid?: string;
232
235
  }
233
- declare const Checklist: FC<ChecklistProps>;
234
-
236
+ declare const Checklist: FC<ChecklistProps>;
237
+
235
238
  interface CopyProps extends AccessibleProps {
236
239
  /** Set the text to be displayed */
237
240
  children: string | React.ReactNode;
@@ -247,8 +250,8 @@ interface CopyProps extends AccessibleProps {
247
250
  /** Optional ID for automation purposes */
248
251
  dataItemid?: string;
249
252
  }
250
- declare const Copy: FC<CopyProps>;
251
-
253
+ declare const Copy: FC<CopyProps>;
254
+
252
255
  interface styleProps$3 {
253
256
  width?: number | string;
254
257
  }
@@ -269,8 +272,8 @@ interface DateProps extends AccessibleProps {
269
272
  dataItemid?: string;
270
273
  locale?: localeProps;
271
274
  }
272
- declare const DatePicker: FC<DateProps>;
273
-
275
+ declare const DatePicker: FC<DateProps>;
276
+
274
277
  interface ButtonProps$1 extends AccessibleProps {
275
278
  disabled?: boolean;
276
279
  children: string;
@@ -301,8 +304,8 @@ interface DrawerProps extends AccessibleProps {
301
304
  /** Optional ID for automation purposes */
302
305
  dataItemid?: string;
303
306
  }
304
- declare const Drawer: FC<DrawerProps>;
305
-
307
+ declare const Drawer: FC<DrawerProps>;
308
+
306
309
  interface ActionProps {
307
310
  dataItemid?: string;
308
311
  label: string;
@@ -327,8 +330,8 @@ interface FieldProps extends AccessibleProps {
327
330
  /** Optional ID for automation purposes */
328
331
  dataItemid?: string;
329
332
  }
330
- declare const Field: FC<FieldProps>;
331
-
333
+ declare const Field: FC<FieldProps>;
334
+
332
335
  interface FieldGroupProps {
333
336
  /** The label to display above the field group */
334
337
  label: string;
@@ -337,8 +340,8 @@ interface FieldGroupProps {
337
340
  /** Optional ID for automation purposes */
338
341
  dataItemid?: string;
339
342
  }
340
- declare const FieldGroup: FC<FieldGroupProps>;
341
-
343
+ declare const FieldGroup: FC<FieldGroupProps>;
344
+
342
345
  interface FileUploadProps {
343
346
  /** A method to call when files are added/removed. Return the new file or array of files. */
344
347
  onChange?: (files: Array<File>) => void;
@@ -364,8 +367,8 @@ interface ErrorObject {
364
367
  file: File;
365
368
  message: string;
366
369
  }
367
- declare const FileUpload: FC<FileUploadProps>;
368
-
370
+ declare const FileUpload: FC<FileUploadProps>;
371
+
369
372
  interface HeadingProps extends AccessibleProps {
370
373
  /** Toggle between bold and normal font weights */
371
374
  bold?: boolean;
@@ -380,8 +383,8 @@ interface HeadingProps extends AccessibleProps {
380
383
  /** Optional ID for automation purposes */
381
384
  dataItemid?: string;
382
385
  }
383
- declare const Heading: FC<HeadingProps>;
384
-
386
+ declare const Heading: FC<HeadingProps>;
387
+
385
388
  interface styleProps$2 {
386
389
  width?: number | string;
387
390
  }
@@ -414,8 +417,8 @@ interface InputProps extends AccessibleProps {
414
417
  /** Optional ID for automation purposes */
415
418
  dataItemid?: string;
416
419
  }
417
- declare const Input: FC<InputProps>;
418
-
420
+ declare const Input: FC<InputProps>;
421
+
419
422
  interface LinkProps extends AccessibleProps {
420
423
  /** Set the text to be displayed */
421
424
  children: string;
@@ -426,22 +429,22 @@ interface LinkProps extends AccessibleProps {
426
429
  /** Optional ID for automation purposes */
427
430
  dataItemid?: string;
428
431
  }
429
- declare const Link: FC<LinkProps>;
430
-
432
+ declare const Link: FC<LinkProps>;
433
+
431
434
  interface LoaderProps {
432
435
  /** Optional ID for automation purposes */
433
436
  dataItemid?: string;
434
437
  }
435
- declare const Loader: FC<LoaderProps>;
436
-
438
+ declare const Loader: FC<LoaderProps>;
439
+
437
440
  interface LogoProps extends AccessibleProps {
438
441
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
439
442
  height?: string;
440
443
  /** Optional ID for automation purposes */
441
444
  dataItemid?: string;
442
445
  }
443
- declare const Logo: FC<LogoProps>;
444
-
446
+ declare const Logo: FC<LogoProps>;
447
+
445
448
  interface StepProps {
446
449
  label: string | ReactNode;
447
450
  complete?: boolean;
@@ -453,8 +456,8 @@ interface ProgressBarProps {
453
456
  /** Optional ID for automation purposes */
454
457
  dataItemid?: string;
455
458
  }
456
- declare const ProgressBar: FC<ProgressBarProps>;
457
-
459
+ declare const ProgressBar: FC<ProgressBarProps>;
460
+
458
461
  interface ButtonProps {
459
462
  disabled?: boolean;
460
463
  children: string;
@@ -488,8 +491,8 @@ interface ModalProps extends AccessibleProps {
488
491
  /** Optional ID for automation purposes */
489
492
  dataItemid?: string;
490
493
  }
491
- declare const Modal: FC<ModalProps>;
492
-
494
+ declare const Modal: FC<ModalProps>;
495
+
493
496
  interface OptionProps$2 {
494
497
  label?: string;
495
498
  value: string | number;
@@ -511,8 +514,8 @@ interface MultiSelectProps extends AccessibleProps {
511
514
  /** Optional ID for automation purposes */
512
515
  dataItemid?: string;
513
516
  }
514
- declare const MultiSelect: FC<MultiSelectProps>;
515
-
517
+ declare const MultiSelect: FC<MultiSelectProps>;
518
+
516
519
  interface TagProps extends AccessibleProps {
517
520
  /** It is used to select tag-type either default or removable. */
518
521
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -525,8 +528,8 @@ interface TagProps extends AccessibleProps {
525
528
  /** Optional ID for automation purposes */
526
529
  dataItemid?: string;
527
530
  }
528
- declare const Tag: FC<TagProps>;
529
-
531
+ declare const Tag: FC<TagProps>;
532
+
530
533
  interface PageHeaderProps {
531
534
  title?: string;
532
535
  breadcrumbs?: Array<{
@@ -540,6 +543,8 @@ interface PageHeaderProps {
540
543
  icon?: string;
541
544
  label: string;
542
545
  onClick?: (e: any) => void;
546
+ /** Optional type for the button */
547
+ type?: 'button' | 'submit' | 'reset' | null;
543
548
  }>;
544
549
  buttonMenu?: {
545
550
  disabled?: boolean;
@@ -556,17 +561,18 @@ interface PageHeaderProps {
556
561
  /** Optional ID for automation purposes */
557
562
  dataItemid?: string;
558
563
  }
559
- declare const PageHeader: FC<PageHeaderProps>;
560
-
564
+ declare const PageHeader: FC<PageHeaderProps>;
565
+
561
566
  interface PaginationProps extends AccessibleProps {
562
567
  currentPage: number;
563
568
  onClick: (e?: any) => void;
564
569
  pageCount: number;
565
570
  /** Optional ID for automation purposes */
566
571
  dataItemid?: string;
572
+ type?: 'button' | 'submit' | 'reset' | null;
567
573
  }
568
- declare const Pagination: FC<PaginationProps>;
569
-
574
+ declare const Pagination: FC<PaginationProps>;
575
+
570
576
  interface RadioProps extends AccessibleProps {
571
577
  /** It is used to give label to radio. */
572
578
  children: string | number;
@@ -585,8 +591,8 @@ interface RadioProps extends AccessibleProps {
585
591
  /** Optional ID for automation purposes */
586
592
  dataItemid?: string;
587
593
  }
588
- declare const Radio: FC<RadioProps>;
589
-
594
+ declare const Radio: FC<RadioProps>;
595
+
590
596
  interface OptionProps$1 {
591
597
  label?: string;
592
598
  value: string | number;
@@ -599,8 +605,8 @@ interface RadioListProps extends AccessibleProps {
599
605
  /** Optional ID for automation purposes */
600
606
  dataItemid?: string;
601
607
  }
602
- declare const RadioList: FC<RadioListProps>;
603
-
608
+ declare const RadioList: FC<RadioListProps>;
609
+
604
610
  interface OptionProps {
605
611
  label?: string;
606
612
  value: string | number;
@@ -631,8 +637,8 @@ interface SelectProps extends AccessibleProps {
631
637
  /** Optional ID for automation purposes */
632
638
  dataItemid?: string;
633
639
  }
634
- declare const Select: FC<SelectProps>;
635
-
640
+ declare const Select: FC<SelectProps>;
641
+
636
642
  interface RowObject {
637
643
  [key: string]: any;
638
644
  }
@@ -658,8 +664,8 @@ interface TableProps extends AccessibleProps {
658
664
  /** Optional ID for automation purposes */
659
665
  dataItemid?: string;
660
666
  }
661
- declare const Table: FC<TableProps>;
662
-
667
+ declare const Table: FC<TableProps>;
668
+
663
669
  interface TabProps extends AccessibleProps {
664
670
  badgeCount?: number;
665
671
  errorBadge?: boolean;
@@ -672,8 +678,8 @@ interface TabsProps extends AccessibleProps {
672
678
  /** Optional ID for automation purposes */
673
679
  dataItemid?: string;
674
680
  }
675
- declare const Tabs: FC<TabsProps>;
676
-
681
+ declare const Tabs: FC<TabsProps>;
682
+
677
683
  interface ToggleProps extends AccessibleProps {
678
684
  /** It is used to check whether Toggle is checked or not */
679
685
  on: boolean;
@@ -682,8 +688,8 @@ interface ToggleProps extends AccessibleProps {
682
688
  /** Optional ID for automation purposes */
683
689
  dataItemid?: string;
684
690
  }
685
- declare const Toggle: FC<ToggleProps>;
686
-
691
+ declare const Toggle: FC<ToggleProps>;
692
+
687
693
  interface ZeroStateProps extends AccessibleProps {
688
694
  /** The SVG path of the icon to show */
689
695
  icon: string;
@@ -702,8 +708,8 @@ interface ZeroStateProps extends AccessibleProps {
702
708
  /** Optional ID for automation purposes */
703
709
  dataItemid?: string;
704
710
  }
705
- declare const ZeroState: FC<ZeroStateProps>;
706
-
711
+ declare const ZeroState: FC<ZeroStateProps>;
712
+
707
713
  declare const getAgesFromDob: (dob: string) => {
708
714
  calculated_nearest_age: number | null;
709
715
  calculated_current_age: number | null;
@@ -717,8 +723,8 @@ declare const getYears: () => {
717
723
  declare const validateEmail: (email: string) => boolean;
718
724
  declare const validatePhone: (phone: string) => boolean;
719
725
  declare const formatAsPhone: (number: string) => string;
720
- declare const formatAsSsn: (number: string) => string;
721
-
726
+ declare const formatAsSsn: (number: string) => string;
727
+
722
728
  declare const Colors: {
723
729
  PRIMARY: {
724
730
  Hex: string;
@@ -770,6 +776,6 @@ declare const EditableTheme: {
770
776
  Hex: string;
771
777
  Rgb: string;
772
778
  };
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 };
779
+ };
780
+
781
+ 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.49",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",