@hexure/ui 1.14.6 → 1.14.7

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;
@@ -57,8 +57,8 @@ interface ActionDialogProps extends AccessibleProps {
57
57
  interface CustomStyle {
58
58
  [key: string]: string | number;
59
59
  }
60
- declare const ActionDialog: FC<ActionDialogProps>;
61
-
60
+ declare const ActionDialog: FC<ActionDialogProps>;
61
+
62
62
  interface ActionProps$1 extends AccessibleProps {
63
63
  label: string;
64
64
  onClick: (e?: any) => void;
@@ -76,8 +76,8 @@ interface AlertProps extends AccessibleProps {
76
76
  /** Optional ID for automation purposes */
77
77
  dataItemid?: string;
78
78
  }
79
- declare const Alert: FC<AlertProps>;
80
-
79
+ declare const Alert: FC<AlertProps>;
80
+
81
81
  interface TooltipProps {
82
82
  /** It is used to give label to tag. */
83
83
  children: any;
@@ -96,8 +96,8 @@ interface TooltipProps {
96
96
  */
97
97
  auto?: boolean;
98
98
  }
99
- declare const Tooltip: FC<TooltipProps>;
100
-
99
+ declare const Tooltip: FC<TooltipProps>;
100
+
101
101
  interface ButtonProps$3 extends AccessibleProps {
102
102
  /** Display a number badge on the right side of the button */
103
103
  badge?: number;
@@ -131,16 +131,16 @@ interface ButtonProps$3 extends AccessibleProps {
131
131
  /** Optional section name for automation purposes */
132
132
  dataSectionName?: string;
133
133
  }
134
- declare const Button: FC<ButtonProps$3>;
135
-
134
+ declare const Button: FC<ButtonProps$3>;
135
+
136
136
  interface AppHeaderProps {
137
137
  logoUrl?: string;
138
138
  buttons: ButtonProps$3[];
139
139
  /** Optional ID for automation purposes */
140
140
  dataItemid?: string;
141
141
  }
142
- declare const AppHeader: FC<AppHeaderProps>;
143
-
142
+ declare const AppHeader: FC<AppHeaderProps>;
143
+
144
144
  interface MenuItemType extends AccessibleProps {
145
145
  icon: string;
146
146
  label: string;
@@ -164,8 +164,8 @@ interface AppMenuProps extends AccessibleProps {
164
164
  dataSectionName?: string;
165
165
  onChange?: (isCollapsed: boolean) => void;
166
166
  }
167
- declare const AppMenu: FC<AppMenuProps>;
168
-
167
+ declare const AppMenu: FC<AppMenuProps>;
168
+
169
169
  interface ButtonProps$2 {
170
170
  children: string;
171
171
  onClick: (e?: any) => void;
@@ -181,8 +181,8 @@ interface BulkActionBarProps extends AccessibleProps {
181
181
  /** Optional ID for automation purposes */
182
182
  dataItemid?: string;
183
183
  }
184
- declare const BulkActionBar: FC<BulkActionBarProps>;
185
-
184
+ declare const BulkActionBar: FC<BulkActionBarProps>;
185
+
186
186
  interface MenuItemProps extends AccessibleProps {
187
187
  icon?: string;
188
188
  label?: string;
@@ -196,8 +196,8 @@ interface MoreMenuProps extends AccessibleProps {
196
196
  /** Optional ID for automation purposes */
197
197
  dataItemid?: string;
198
198
  }
199
- declare const MoreMenu: FC<MoreMenuProps>;
200
-
199
+ declare const MoreMenu: FC<MoreMenuProps>;
200
+
201
201
  interface ButtonMenuProps {
202
202
  disabled?: boolean;
203
203
  label: string;
@@ -214,8 +214,8 @@ interface ButtonMenuProps {
214
214
  dataItemid?: string;
215
215
  dataSectionName?: string;
216
216
  }
217
- declare const ButtonMenu: FC<ButtonMenuProps>;
218
-
217
+ declare const ButtonMenu: FC<ButtonMenuProps>;
218
+
219
219
  interface CheckboxProps extends AccessibleProps {
220
220
  /** It is used to give label to checkbox. */
221
221
  children?: string;
@@ -237,8 +237,8 @@ interface CheckboxProps extends AccessibleProps {
237
237
  dataSectionName?: string;
238
238
  isLabelBold?: boolean;
239
239
  }
240
- declare const Checkbox: FC<CheckboxProps>;
241
-
240
+ declare const Checkbox: FC<CheckboxProps>;
241
+
242
242
  interface OptionProps$3 {
243
243
  label?: string;
244
244
  value: string | number;
@@ -253,8 +253,8 @@ interface ChecklistProps extends AccessibleProps {
253
253
  /** Optional ID for automation purposes */
254
254
  dataItemid?: string;
255
255
  }
256
- declare const Checklist: FC<ChecklistProps>;
257
-
256
+ declare const Checklist: FC<ChecklistProps>;
257
+
258
258
  interface CopyProps extends AccessibleProps {
259
259
  /** Set the text to be displayed */
260
260
  children: string | React.ReactNode;
@@ -270,8 +270,8 @@ interface CopyProps extends AccessibleProps {
270
270
  /** Optional ID for automation purposes */
271
271
  dataItemid?: string;
272
272
  }
273
- declare const Copy: FC<CopyProps>;
274
-
273
+ declare const Copy: FC<CopyProps>;
274
+
275
275
  interface styleProps$1 {
276
276
  width?: number | string;
277
277
  }
@@ -292,8 +292,8 @@ interface DateProps extends AccessibleProps {
292
292
  dataItemid?: string;
293
293
  locale?: localeProps;
294
294
  }
295
- declare const DatePicker: FC<DateProps>;
296
-
295
+ declare const DatePicker: FC<DateProps>;
296
+
297
297
  interface ButtonProps$1 extends AccessibleProps {
298
298
  disabled?: boolean;
299
299
  children: string;
@@ -328,8 +328,8 @@ interface DrawerProps extends AccessibleProps {
328
328
  dataItemid?: string;
329
329
  bottomNotes?: string | ReactNode;
330
330
  }
331
- declare const Drawer: FC<DrawerProps>;
332
-
331
+ declare const Drawer: FC<DrawerProps>;
332
+
333
333
  interface ActionProps {
334
334
  dataItemid?: string;
335
335
  label: string;
@@ -357,8 +357,8 @@ interface FieldProps extends AccessibleProps {
357
357
  /** Optional for black message with icon */
358
358
  isNewMessageType?: boolean;
359
359
  }
360
- declare const Field: FC<FieldProps>;
361
-
360
+ declare const Field: FC<FieldProps>;
361
+
362
362
  interface FieldGroupProps {
363
363
  /** The label to display above the field group */
364
364
  label: string;
@@ -367,8 +367,8 @@ interface FieldGroupProps {
367
367
  /** Optional ID for automation purposes */
368
368
  dataItemid?: string;
369
369
  }
370
- declare const FieldGroup: FC<FieldGroupProps>;
371
-
370
+ declare const FieldGroup: FC<FieldGroupProps>;
371
+
372
372
  interface FileUploadProps {
373
373
  /** A method to call when files are added/removed. Return the new file or array of files. */
374
374
  onChange?: (files: Array<File>) => void;
@@ -394,8 +394,8 @@ interface ErrorObject {
394
394
  file: File;
395
395
  message: string;
396
396
  }
397
- declare const FileUpload: FC<FileUploadProps>;
398
-
397
+ declare const FileUpload: FC<FileUploadProps>;
398
+
399
399
  interface HeadingProps extends AccessibleProps {
400
400
  /** Toggle between bold and normal font weights */
401
401
  bold?: boolean;
@@ -412,8 +412,8 @@ interface HeadingProps extends AccessibleProps {
412
412
  /** Optional style for the header title */
413
413
  style?: CSSProperties;
414
414
  }
415
- declare const Heading: FC<HeadingProps>;
416
-
415
+ declare const Heading: FC<HeadingProps>;
416
+
417
417
  interface InputProps extends AccessibleProps {
418
418
  format?: 'phone' | 'currency' | 'currency_decimal' | 'ssn';
419
419
  height?: string;
@@ -448,8 +448,8 @@ interface InputProps extends AccessibleProps {
448
448
  isInvalidRedBackground?: boolean;
449
449
  isWarningError?: boolean;
450
450
  }
451
- declare const Input: FC<InputProps>;
452
-
451
+ declare const Input: FC<InputProps>;
452
+
453
453
  interface LinkProps extends AccessibleProps {
454
454
  /** Set the text to be displayed */
455
455
  children: string;
@@ -460,22 +460,22 @@ interface LinkProps extends AccessibleProps {
460
460
  /** Optional ID for automation purposes */
461
461
  dataItemid?: string;
462
462
  }
463
- declare const Link: FC<LinkProps>;
464
-
463
+ declare const Link: FC<LinkProps>;
464
+
465
465
  interface LoaderProps {
466
466
  /** Optional ID for automation purposes */
467
467
  dataItemid?: string;
468
468
  }
469
- declare const Loader: FC<LoaderProps>;
470
-
469
+ declare const Loader: FC<LoaderProps>;
470
+
471
471
  interface LogoProps extends AccessibleProps {
472
472
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
473
473
  height?: string;
474
474
  /** Optional ID for automation purposes */
475
475
  dataItemid?: string;
476
476
  }
477
- declare const Logo: FC<LogoProps>;
478
-
477
+ declare const Logo: FC<LogoProps>;
478
+
479
479
  interface StepProps {
480
480
  label: string | ReactNode;
481
481
  complete?: boolean;
@@ -492,8 +492,8 @@ interface ProgressBarProps {
492
492
  /** Optional ID for automation purposes */
493
493
  dataItemid?: string;
494
494
  }
495
- declare const ProgressBar: FC<ProgressBarProps>;
496
-
495
+ declare const ProgressBar: FC<ProgressBarProps>;
496
+
497
497
  interface ButtonProps {
498
498
  disabled?: boolean;
499
499
  children: string;
@@ -534,8 +534,8 @@ interface ModalProps extends AccessibleProps {
534
534
  /** Optional style for the header title */
535
535
  headerTitleStyle?: CSSProperties;
536
536
  }
537
- declare const Modal: FC<ModalProps>;
538
-
537
+ declare const Modal: FC<ModalProps>;
538
+
539
539
  interface OptionProps$2 {
540
540
  label?: string;
541
541
  value: string | number;
@@ -557,8 +557,8 @@ interface MultiSelectProps extends AccessibleProps {
557
557
  /** Optional ID for automation purposes */
558
558
  dataItemid?: string;
559
559
  }
560
- declare const MultiSelect: FC<MultiSelectProps>;
561
-
560
+ declare const MultiSelect: FC<MultiSelectProps>;
561
+
562
562
  interface TagProps extends AccessibleProps {
563
563
  /** It is used to select tag-type either default or removable. */
564
564
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -573,8 +573,8 @@ interface TagProps extends AccessibleProps {
573
573
  rotate?: boolean;
574
574
  dataSectionName?: string;
575
575
  }
576
- declare const Tag: FC<TagProps>;
577
-
576
+ declare const Tag: FC<TagProps>;
577
+
578
578
  interface PageHeaderProps {
579
579
  title?: string;
580
580
  breadcrumbs?: Array<{
@@ -606,8 +606,8 @@ interface PageHeaderProps {
606
606
  /** Optional ID for automation purposes */
607
607
  dataItemid?: string;
608
608
  }
609
- declare const PageHeader: FC<PageHeaderProps>;
610
-
609
+ declare const PageHeader: FC<PageHeaderProps>;
610
+
611
611
  interface PaginationProps extends AccessibleProps {
612
612
  currentPage: number;
613
613
  onClick: (e?: any) => void;
@@ -616,8 +616,8 @@ interface PaginationProps extends AccessibleProps {
616
616
  dataItemid?: string;
617
617
  type?: 'button' | 'submit' | 'reset' | null;
618
618
  }
619
- declare const Pagination: FC<PaginationProps>;
620
-
619
+ declare const Pagination: FC<PaginationProps>;
620
+
621
621
  interface RadioProps extends AccessibleProps {
622
622
  /** It is used to give label to radio. */
623
623
  children: string | number;
@@ -639,8 +639,8 @@ interface RadioProps extends AccessibleProps {
639
639
  isWarningError?: boolean;
640
640
  isLabelBold?: boolean;
641
641
  }
642
- declare const Radio: FC<RadioProps>;
643
-
642
+ declare const Radio: FC<RadioProps>;
643
+
644
644
  interface OptionProps$1 {
645
645
  label?: string;
646
646
  value: string | number;
@@ -653,8 +653,8 @@ interface RadioListProps extends AccessibleProps {
653
653
  /** Optional ID for automation purposes */
654
654
  dataItemid?: string;
655
655
  }
656
- declare const RadioList: FC<RadioListProps>;
657
-
656
+ declare const RadioList: FC<RadioListProps>;
657
+
658
658
  interface OptionProps {
659
659
  label?: string;
660
660
  value: string | number;
@@ -685,8 +685,8 @@ interface SelectProps extends AccessibleProps {
685
685
  innerRef?: any;
686
686
  isCustomSelect?: boolean;
687
687
  }
688
- declare const Select: FC<SelectProps>;
689
-
688
+ declare const Select: FC<SelectProps>;
689
+
690
690
  interface RowObject {
691
691
  [key: string]: any;
692
692
  }
@@ -713,8 +713,8 @@ interface TableProps extends AccessibleProps {
713
713
  /** Optional ID for automation purposes */
714
714
  dataItemid?: string;
715
715
  }
716
- declare const Table: FC<TableProps>;
717
-
716
+ declare const Table: FC<TableProps>;
717
+
718
718
  interface TabProps extends AccessibleProps {
719
719
  badgeCount?: number;
720
720
  errorBadge?: boolean;
@@ -728,8 +728,8 @@ interface TabsProps extends AccessibleProps {
728
728
  /** Optional ID for automation purposes */
729
729
  dataItemid?: string;
730
730
  }
731
- declare const Tabs: FC<TabsProps>;
732
-
731
+ declare const Tabs: FC<TabsProps>;
732
+
733
733
  interface ToggleProps extends AccessibleProps {
734
734
  /** It is used to check whether Toggle is checked or not */
735
735
  on: boolean;
@@ -738,8 +738,8 @@ interface ToggleProps extends AccessibleProps {
738
738
  /** Optional ID for automation purposes */
739
739
  dataItemid?: string;
740
740
  }
741
- declare const Toggle: FC<ToggleProps>;
742
-
741
+ declare const Toggle: FC<ToggleProps>;
742
+
743
743
  interface ZeroStateProps extends AccessibleProps {
744
744
  /** The SVG path of the icon to show */
745
745
  icon: string;
@@ -759,8 +759,8 @@ interface ZeroStateProps extends AccessibleProps {
759
759
  /** Optional ID for automation purposes */
760
760
  dataItemid?: string;
761
761
  }
762
- declare const ZeroState: FC<ZeroStateProps>;
763
-
762
+ declare const ZeroState: FC<ZeroStateProps>;
763
+
764
764
  declare const getAgesFromDob: (dob: string) => {
765
765
  calculated_nearest_age: number | null;
766
766
  calculated_current_age: number | null;
@@ -775,8 +775,8 @@ declare const validateEmail: (email: string) => boolean;
775
775
  declare const validatePhone: (phone: string) => boolean;
776
776
  declare const formatAsPhone: (number: string) => string;
777
777
  declare const formatAsSsn: (number: string) => string;
778
- declare const formatAsMask: (number: string, mask: string) => string;
779
-
778
+ declare const formatAsMask: (number: string, mask: string) => string;
779
+
780
780
  declare const Colors: {
781
781
  PRIMARY: {
782
782
  Hex: string;
@@ -828,6 +828,6 @@ declare const EditableTheme: {
828
828
  Hex: string;
829
829
  Rgb: string;
830
830
  };
831
- };
832
-
833
- 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 };
831
+ };
832
+
833
+ 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.14.6",
3
+ "version": "1.14.7",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",