@hexure/ui 1.13.54 → 1.13.55

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.
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;
@@ -88,8 +88,8 @@ interface TooltipProps {
88
88
  /** Optional ID for automation purposes */
89
89
  dataItemid?: string;
90
90
  }
91
- declare const Tooltip: FC<TooltipProps>;
92
-
91
+ declare const Tooltip: FC<TooltipProps>;
92
+
93
93
  interface ButtonProps$3 extends AccessibleProps {
94
94
  /** Display a number badge on the right side of the button */
95
95
  badge?: number;
@@ -121,16 +121,16 @@ interface ButtonProps$3 extends AccessibleProps {
121
121
  /** Optional type for the button */
122
122
  type?: 'button' | 'submit' | 'reset' | null;
123
123
  }
124
- declare const Button: FC<ButtonProps$3>;
125
-
124
+ declare const Button: FC<ButtonProps$3>;
125
+
126
126
  interface AppHeaderProps {
127
127
  logoUrl?: string;
128
128
  buttons: ButtonProps$3[];
129
129
  /** Optional ID for automation purposes */
130
130
  dataItemid?: string;
131
131
  }
132
- declare const AppHeader: FC<AppHeaderProps>;
133
-
132
+ declare const AppHeader: FC<AppHeaderProps>;
133
+
134
134
  interface MenuItemType extends AccessibleProps {
135
135
  icon: string;
136
136
  label: string;
@@ -151,8 +151,8 @@ interface AppMenuProps extends AccessibleProps {
151
151
  /** Optional ID for automation purposes */
152
152
  dataItemid?: string;
153
153
  }
154
- declare const AppMenu: FC<AppMenuProps>;
155
-
154
+ declare const AppMenu: FC<AppMenuProps>;
155
+
156
156
  interface ButtonProps$2 {
157
157
  children: string;
158
158
  onClick: (e?: any) => void;
@@ -168,8 +168,8 @@ interface BulkActionBarProps extends AccessibleProps {
168
168
  /** Optional ID for automation purposes */
169
169
  dataItemid?: string;
170
170
  }
171
- declare const BulkActionBar: FC<BulkActionBarProps>;
172
-
171
+ declare const BulkActionBar: FC<BulkActionBarProps>;
172
+
173
173
  interface MenuItemProps extends AccessibleProps {
174
174
  icon?: string;
175
175
  label?: string;
@@ -182,8 +182,8 @@ interface MoreMenuProps extends AccessibleProps {
182
182
  /** Optional ID for automation purposes */
183
183
  dataItemid?: string;
184
184
  }
185
- declare const MoreMenu: FC<MoreMenuProps>;
186
-
185
+ declare const MoreMenu: FC<MoreMenuProps>;
186
+
187
187
  interface ButtonMenuProps {
188
188
  disabled?: boolean;
189
189
  label: string;
@@ -199,8 +199,8 @@ interface ButtonMenuProps {
199
199
  /** Optional ID for automation purposes */
200
200
  dataItemid?: string;
201
201
  }
202
- declare const ButtonMenu: FC<ButtonMenuProps>;
203
-
202
+ declare const ButtonMenu: FC<ButtonMenuProps>;
203
+
204
204
  interface CheckboxProps extends AccessibleProps {
205
205
  /** It is used to give label to checkbox. */
206
206
  children?: string;
@@ -218,8 +218,8 @@ interface CheckboxProps extends AccessibleProps {
218
218
  /** Optional ID for automation purposes */
219
219
  dataItemid?: string;
220
220
  }
221
- declare const Checkbox: FC<CheckboxProps>;
222
-
221
+ declare const Checkbox: FC<CheckboxProps>;
222
+
223
223
  interface OptionProps$3 {
224
224
  label?: string;
225
225
  value: string | number;
@@ -234,8 +234,8 @@ interface ChecklistProps extends AccessibleProps {
234
234
  /** Optional ID for automation purposes */
235
235
  dataItemid?: string;
236
236
  }
237
- declare const Checklist: FC<ChecklistProps>;
238
-
237
+ declare const Checklist: FC<ChecklistProps>;
238
+
239
239
  interface CopyProps extends AccessibleProps {
240
240
  /** Set the text to be displayed */
241
241
  children: string | React.ReactNode;
@@ -251,8 +251,8 @@ interface CopyProps extends AccessibleProps {
251
251
  /** Optional ID for automation purposes */
252
252
  dataItemid?: string;
253
253
  }
254
- declare const Copy: FC<CopyProps>;
255
-
254
+ declare const Copy: FC<CopyProps>;
255
+
256
256
  interface styleProps$2 {
257
257
  width?: number | string;
258
258
  }
@@ -273,8 +273,8 @@ interface DateProps extends AccessibleProps {
273
273
  dataItemid?: string;
274
274
  locale?: localeProps;
275
275
  }
276
- declare const DatePicker: FC<DateProps>;
277
-
276
+ declare const DatePicker: FC<DateProps>;
277
+
278
278
  interface ButtonProps$1 extends AccessibleProps {
279
279
  disabled?: boolean;
280
280
  children: string;
@@ -305,8 +305,8 @@ interface DrawerProps extends AccessibleProps {
305
305
  /** Optional ID for automation purposes */
306
306
  dataItemid?: string;
307
307
  }
308
- declare const Drawer: FC<DrawerProps>;
309
-
308
+ declare const Drawer: FC<DrawerProps>;
309
+
310
310
  interface ActionProps {
311
311
  dataItemid?: string;
312
312
  label: string;
@@ -333,8 +333,8 @@ interface FieldProps extends AccessibleProps {
333
333
  /** Optional for black message with icon */
334
334
  isNewMessageType?: boolean;
335
335
  }
336
- declare const Field: FC<FieldProps>;
337
-
336
+ declare const Field: FC<FieldProps>;
337
+
338
338
  interface FieldGroupProps {
339
339
  /** The label to display above the field group */
340
340
  label: string;
@@ -343,8 +343,8 @@ interface FieldGroupProps {
343
343
  /** Optional ID for automation purposes */
344
344
  dataItemid?: string;
345
345
  }
346
- declare const FieldGroup: FC<FieldGroupProps>;
347
-
346
+ declare const FieldGroup: FC<FieldGroupProps>;
347
+
348
348
  interface FileUploadProps {
349
349
  /** A method to call when files are added/removed. Return the new file or array of files. */
350
350
  onChange?: (files: Array<File>) => void;
@@ -370,8 +370,8 @@ interface ErrorObject {
370
370
  file: File;
371
371
  message: string;
372
372
  }
373
- declare const FileUpload: FC<FileUploadProps>;
374
-
373
+ declare const FileUpload: FC<FileUploadProps>;
374
+
375
375
  interface HeadingProps extends AccessibleProps {
376
376
  /** Toggle between bold and normal font weights */
377
377
  bold?: boolean;
@@ -386,8 +386,8 @@ interface HeadingProps extends AccessibleProps {
386
386
  /** Optional ID for automation purposes */
387
387
  dataItemid?: string;
388
388
  }
389
- declare const Heading: FC<HeadingProps>;
390
-
389
+ declare const Heading: FC<HeadingProps>;
390
+
391
391
  interface InputProps extends AccessibleProps {
392
392
  format?: 'phone' | 'currency' | 'currency_decimal' | 'ssn';
393
393
  height?: string;
@@ -418,8 +418,8 @@ interface InputProps extends AccessibleProps {
418
418
  dataItemid?: string;
419
419
  mask?: string;
420
420
  }
421
- declare const Input: FC<InputProps>;
422
-
421
+ declare const Input: FC<InputProps>;
422
+
423
423
  interface LinkProps extends AccessibleProps {
424
424
  /** Set the text to be displayed */
425
425
  children: string;
@@ -430,22 +430,22 @@ interface LinkProps extends AccessibleProps {
430
430
  /** Optional ID for automation purposes */
431
431
  dataItemid?: string;
432
432
  }
433
- declare const Link: FC<LinkProps>;
434
-
433
+ declare const Link: FC<LinkProps>;
434
+
435
435
  interface LoaderProps {
436
436
  /** Optional ID for automation purposes */
437
437
  dataItemid?: string;
438
438
  }
439
- declare const Loader: FC<LoaderProps>;
440
-
439
+ declare const Loader: FC<LoaderProps>;
440
+
441
441
  interface LogoProps extends AccessibleProps {
442
442
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
443
443
  height?: string;
444
444
  /** Optional ID for automation purposes */
445
445
  dataItemid?: string;
446
446
  }
447
- declare const Logo: FC<LogoProps>;
448
-
447
+ declare const Logo: FC<LogoProps>;
448
+
449
449
  interface StepProps {
450
450
  label: string | ReactNode;
451
451
  complete?: boolean;
@@ -458,8 +458,8 @@ interface ProgressBarProps {
458
458
  /** Optional ID for automation purposes */
459
459
  dataItemid?: string;
460
460
  }
461
- declare const ProgressBar: FC<ProgressBarProps>;
462
-
461
+ declare const ProgressBar: FC<ProgressBarProps>;
462
+
463
463
  interface ButtonProps {
464
464
  disabled?: boolean;
465
465
  children: string;
@@ -493,8 +493,8 @@ interface ModalProps extends AccessibleProps {
493
493
  /** Optional ID for automation purposes */
494
494
  dataItemid?: string;
495
495
  }
496
- declare const Modal: FC<ModalProps>;
497
-
496
+ declare const Modal: FC<ModalProps>;
497
+
498
498
  interface OptionProps$2 {
499
499
  label?: string;
500
500
  value: string | number;
@@ -516,8 +516,8 @@ interface MultiSelectProps extends AccessibleProps {
516
516
  /** Optional ID for automation purposes */
517
517
  dataItemid?: string;
518
518
  }
519
- declare const MultiSelect: FC<MultiSelectProps>;
520
-
519
+ declare const MultiSelect: FC<MultiSelectProps>;
520
+
521
521
  interface TagProps extends AccessibleProps {
522
522
  /** It is used to select tag-type either default or removable. */
523
523
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -530,8 +530,8 @@ interface TagProps extends AccessibleProps {
530
530
  /** Optional ID for automation purposes */
531
531
  dataItemid?: string;
532
532
  }
533
- declare const Tag: FC<TagProps>;
534
-
533
+ declare const Tag: FC<TagProps>;
534
+
535
535
  interface PageHeaderProps {
536
536
  title?: string;
537
537
  breadcrumbs?: Array<{
@@ -563,8 +563,8 @@ interface PageHeaderProps {
563
563
  /** Optional ID for automation purposes */
564
564
  dataItemid?: string;
565
565
  }
566
- declare const PageHeader: FC<PageHeaderProps>;
567
-
566
+ declare const PageHeader: FC<PageHeaderProps>;
567
+
568
568
  interface PaginationProps extends AccessibleProps {
569
569
  currentPage: number;
570
570
  onClick: (e?: any) => void;
@@ -573,8 +573,8 @@ interface PaginationProps extends AccessibleProps {
573
573
  dataItemid?: string;
574
574
  type?: 'button' | 'submit' | 'reset' | null;
575
575
  }
576
- declare const Pagination: FC<PaginationProps>;
577
-
576
+ declare const Pagination: FC<PaginationProps>;
577
+
578
578
  interface RadioProps extends AccessibleProps {
579
579
  /** It is used to give label to radio. */
580
580
  children: string | number;
@@ -593,8 +593,8 @@ interface RadioProps extends AccessibleProps {
593
593
  /** Optional ID for automation purposes */
594
594
  dataItemid?: string;
595
595
  }
596
- declare const Radio: FC<RadioProps>;
597
-
596
+ declare const Radio: FC<RadioProps>;
597
+
598
598
  interface OptionProps$1 {
599
599
  label?: string;
600
600
  value: string | number;
@@ -607,8 +607,8 @@ interface RadioListProps extends AccessibleProps {
607
607
  /** Optional ID for automation purposes */
608
608
  dataItemid?: string;
609
609
  }
610
- declare const RadioList: FC<RadioListProps>;
611
-
610
+ declare const RadioList: FC<RadioListProps>;
611
+
612
612
  interface OptionProps {
613
613
  label?: string;
614
614
  value: string | number;
@@ -639,8 +639,8 @@ interface SelectProps extends AccessibleProps {
639
639
  /** Optional ID for automation purposes */
640
640
  dataItemid?: string;
641
641
  }
642
- declare const Select: FC<SelectProps>;
643
-
642
+ declare const Select: FC<SelectProps>;
643
+
644
644
  interface RowObject {
645
645
  [key: string]: any;
646
646
  }
@@ -666,8 +666,8 @@ interface TableProps extends AccessibleProps {
666
666
  /** Optional ID for automation purposes */
667
667
  dataItemid?: string;
668
668
  }
669
- declare const Table: FC<TableProps>;
670
-
669
+ declare const Table: FC<TableProps>;
670
+
671
671
  interface TabProps extends AccessibleProps {
672
672
  badgeCount?: number;
673
673
  errorBadge?: boolean;
@@ -680,8 +680,8 @@ interface TabsProps extends AccessibleProps {
680
680
  /** Optional ID for automation purposes */
681
681
  dataItemid?: string;
682
682
  }
683
- declare const Tabs: FC<TabsProps>;
684
-
683
+ declare const Tabs: FC<TabsProps>;
684
+
685
685
  interface ToggleProps extends AccessibleProps {
686
686
  /** It is used to check whether Toggle is checked or not */
687
687
  on: boolean;
@@ -690,8 +690,8 @@ interface ToggleProps extends AccessibleProps {
690
690
  /** Optional ID for automation purposes */
691
691
  dataItemid?: string;
692
692
  }
693
- declare const Toggle: FC<ToggleProps>;
694
-
693
+ declare const Toggle: FC<ToggleProps>;
694
+
695
695
  interface ZeroStateProps extends AccessibleProps {
696
696
  /** The SVG path of the icon to show */
697
697
  icon: string;
@@ -710,8 +710,8 @@ interface ZeroStateProps extends AccessibleProps {
710
710
  /** Optional ID for automation purposes */
711
711
  dataItemid?: string;
712
712
  }
713
- declare const ZeroState: FC<ZeroStateProps>;
714
-
713
+ declare const ZeroState: FC<ZeroStateProps>;
714
+
715
715
  declare const getAgesFromDob: (dob: string) => {
716
716
  calculated_nearest_age: number | null;
717
717
  calculated_current_age: number | null;
@@ -726,8 +726,8 @@ declare const validateEmail: (email: string) => boolean;
726
726
  declare const validatePhone: (phone: string) => boolean;
727
727
  declare const formatAsPhone: (number: string) => string;
728
728
  declare const formatAsSsn: (number: string) => string;
729
- declare const formatAsMask: (number: string, mask: string) => string;
730
-
729
+ declare const formatAsMask: (number: string, mask: string) => string;
730
+
731
731
  declare const Colors: {
732
732
  PRIMARY: {
733
733
  Hex: string;
@@ -779,6 +779,6 @@ declare const EditableTheme: {
779
779
  Hex: string;
780
780
  Rgb: string;
781
781
  };
782
- };
783
-
784
- 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 };
782
+ };
783
+
784
+ 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.54",
3
+ "version": "1.13.55",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",