@hexure/ui 1.13.93 → 1.13.94

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;
@@ -129,16 +129,16 @@ interface ButtonProps$3 extends AccessibleProps {
129
129
  /** Optional type for the button */
130
130
  type?: 'button' | 'submit' | 'reset' | null;
131
131
  }
132
- declare const Button: FC<ButtonProps$3>;
133
-
132
+ declare const Button: FC<ButtonProps$3>;
133
+
134
134
  interface AppHeaderProps {
135
135
  logoUrl?: string;
136
136
  buttons: ButtonProps$3[];
137
137
  /** Optional ID for automation purposes */
138
138
  dataItemid?: string;
139
139
  }
140
- declare const AppHeader: FC<AppHeaderProps>;
141
-
140
+ declare const AppHeader: FC<AppHeaderProps>;
141
+
142
142
  interface MenuItemType extends AccessibleProps {
143
143
  icon: string;
144
144
  label: string;
@@ -159,8 +159,8 @@ interface AppMenuProps extends AccessibleProps {
159
159
  dataItemid?: string;
160
160
  onChange?: (isCollapsed: boolean) => void;
161
161
  }
162
- declare const AppMenu: FC<AppMenuProps>;
163
-
162
+ declare const AppMenu: FC<AppMenuProps>;
163
+
164
164
  interface ButtonProps$2 {
165
165
  children: string;
166
166
  onClick: (e?: any) => void;
@@ -176,8 +176,8 @@ interface BulkActionBarProps extends AccessibleProps {
176
176
  /** Optional ID for automation purposes */
177
177
  dataItemid?: string;
178
178
  }
179
- declare const BulkActionBar: FC<BulkActionBarProps>;
180
-
179
+ declare const BulkActionBar: FC<BulkActionBarProps>;
180
+
181
181
  interface MenuItemProps extends AccessibleProps {
182
182
  icon?: string;
183
183
  label?: string;
@@ -191,8 +191,8 @@ interface MoreMenuProps extends AccessibleProps {
191
191
  /** Optional ID for automation purposes */
192
192
  dataItemid?: string;
193
193
  }
194
- declare const MoreMenu: FC<MoreMenuProps>;
195
-
194
+ declare const MoreMenu: FC<MoreMenuProps>;
195
+
196
196
  interface ButtonMenuProps {
197
197
  disabled?: boolean;
198
198
  label: string;
@@ -208,8 +208,8 @@ interface ButtonMenuProps {
208
208
  /** Optional ID for automation purposes */
209
209
  dataItemid?: string;
210
210
  }
211
- declare const ButtonMenu: FC<ButtonMenuProps>;
212
-
211
+ declare const ButtonMenu: FC<ButtonMenuProps>;
212
+
213
213
  interface CheckboxProps extends AccessibleProps {
214
214
  /** It is used to give label to checkbox. */
215
215
  children?: string;
@@ -229,8 +229,8 @@ interface CheckboxProps extends AccessibleProps {
229
229
  isInvalidRedBackground?: boolean;
230
230
  isWarningError?: boolean;
231
231
  }
232
- declare const Checkbox: FC<CheckboxProps>;
233
-
232
+ declare const Checkbox: FC<CheckboxProps>;
233
+
234
234
  interface OptionProps$3 {
235
235
  label?: string;
236
236
  value: string | number;
@@ -245,8 +245,8 @@ interface ChecklistProps extends AccessibleProps {
245
245
  /** Optional ID for automation purposes */
246
246
  dataItemid?: string;
247
247
  }
248
- declare const Checklist: FC<ChecklistProps>;
249
-
248
+ declare const Checklist: FC<ChecklistProps>;
249
+
250
250
  interface CopyProps extends AccessibleProps {
251
251
  /** Set the text to be displayed */
252
252
  children: string | React.ReactNode;
@@ -262,8 +262,8 @@ interface CopyProps extends AccessibleProps {
262
262
  /** Optional ID for automation purposes */
263
263
  dataItemid?: string;
264
264
  }
265
- declare const Copy: FC<CopyProps>;
266
-
265
+ declare const Copy: FC<CopyProps>;
266
+
267
267
  interface styleProps$1 {
268
268
  width?: number | string;
269
269
  }
@@ -284,8 +284,8 @@ interface DateProps extends AccessibleProps {
284
284
  dataItemid?: string;
285
285
  locale?: localeProps;
286
286
  }
287
- declare const DatePicker: FC<DateProps>;
288
-
287
+ declare const DatePicker: FC<DateProps>;
288
+
289
289
  interface ButtonProps$1 extends AccessibleProps {
290
290
  disabled?: boolean;
291
291
  children: string;
@@ -320,8 +320,8 @@ interface DrawerProps extends AccessibleProps {
320
320
  dataItemid?: string;
321
321
  bottomNotes?: string | ReactNode;
322
322
  }
323
- declare const Drawer: FC<DrawerProps>;
324
-
323
+ declare const Drawer: FC<DrawerProps>;
324
+
325
325
  interface ActionProps {
326
326
  dataItemid?: string;
327
327
  label: string;
@@ -348,8 +348,8 @@ interface FieldProps extends AccessibleProps {
348
348
  /** Optional for black message with icon */
349
349
  isNewMessageType?: boolean;
350
350
  }
351
- declare const Field: FC<FieldProps>;
352
-
351
+ declare const Field: FC<FieldProps>;
352
+
353
353
  interface FieldGroupProps {
354
354
  /** The label to display above the field group */
355
355
  label: string;
@@ -358,8 +358,8 @@ interface FieldGroupProps {
358
358
  /** Optional ID for automation purposes */
359
359
  dataItemid?: string;
360
360
  }
361
- declare const FieldGroup: FC<FieldGroupProps>;
362
-
361
+ declare const FieldGroup: FC<FieldGroupProps>;
362
+
363
363
  interface FileUploadProps {
364
364
  /** A method to call when files are added/removed. Return the new file or array of files. */
365
365
  onChange?: (files: Array<File>) => void;
@@ -385,8 +385,8 @@ interface ErrorObject {
385
385
  file: File;
386
386
  message: string;
387
387
  }
388
- declare const FileUpload: FC<FileUploadProps>;
389
-
388
+ declare const FileUpload: FC<FileUploadProps>;
389
+
390
390
  interface HeadingProps extends AccessibleProps {
391
391
  /** Toggle between bold and normal font weights */
392
392
  bold?: boolean;
@@ -403,8 +403,8 @@ interface HeadingProps extends AccessibleProps {
403
403
  /** Optional style for the header title */
404
404
  style?: CSSProperties;
405
405
  }
406
- declare const Heading: FC<HeadingProps>;
407
-
406
+ declare const Heading: FC<HeadingProps>;
407
+
408
408
  interface InputProps extends AccessibleProps {
409
409
  format?: 'phone' | 'currency' | 'currency_decimal' | 'ssn';
410
410
  height?: string;
@@ -439,8 +439,8 @@ interface InputProps extends AccessibleProps {
439
439
  isInvalidRedBackground?: boolean;
440
440
  isWarningError?: boolean;
441
441
  }
442
- declare const Input: FC<InputProps>;
443
-
442
+ declare const Input: FC<InputProps>;
443
+
444
444
  interface LinkProps extends AccessibleProps {
445
445
  /** Set the text to be displayed */
446
446
  children: string;
@@ -451,22 +451,22 @@ interface LinkProps extends AccessibleProps {
451
451
  /** Optional ID for automation purposes */
452
452
  dataItemid?: string;
453
453
  }
454
- declare const Link: FC<LinkProps>;
455
-
454
+ declare const Link: FC<LinkProps>;
455
+
456
456
  interface LoaderProps {
457
457
  /** Optional ID for automation purposes */
458
458
  dataItemid?: string;
459
459
  }
460
- declare const Loader: FC<LoaderProps>;
461
-
460
+ declare const Loader: FC<LoaderProps>;
461
+
462
462
  interface LogoProps extends AccessibleProps {
463
463
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
464
464
  height?: string;
465
465
  /** Optional ID for automation purposes */
466
466
  dataItemid?: string;
467
467
  }
468
- declare const Logo: FC<LogoProps>;
469
-
468
+ declare const Logo: FC<LogoProps>;
469
+
470
470
  interface StepProps {
471
471
  label: string | ReactNode;
472
472
  complete?: boolean;
@@ -483,8 +483,8 @@ interface ProgressBarProps {
483
483
  /** Optional ID for automation purposes */
484
484
  dataItemid?: string;
485
485
  }
486
- declare const ProgressBar: FC<ProgressBarProps>;
487
-
486
+ declare const ProgressBar: FC<ProgressBarProps>;
487
+
488
488
  interface ButtonProps {
489
489
  disabled?: boolean;
490
490
  children: string;
@@ -525,8 +525,8 @@ interface ModalProps extends AccessibleProps {
525
525
  /** Optional style for the header title */
526
526
  headerTitleStyle?: CSSProperties;
527
527
  }
528
- declare const Modal: FC<ModalProps>;
529
-
528
+ declare const Modal: FC<ModalProps>;
529
+
530
530
  interface OptionProps$2 {
531
531
  label?: string;
532
532
  value: string | number;
@@ -548,8 +548,8 @@ interface MultiSelectProps extends AccessibleProps {
548
548
  /** Optional ID for automation purposes */
549
549
  dataItemid?: string;
550
550
  }
551
- declare const MultiSelect: FC<MultiSelectProps>;
552
-
551
+ declare const MultiSelect: FC<MultiSelectProps>;
552
+
553
553
  interface TagProps extends AccessibleProps {
554
554
  /** It is used to select tag-type either default or removable. */
555
555
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -563,8 +563,8 @@ interface TagProps extends AccessibleProps {
563
563
  dataItemid?: string;
564
564
  rotate?: boolean;
565
565
  }
566
- declare const Tag: FC<TagProps>;
567
-
566
+ declare const Tag: FC<TagProps>;
567
+
568
568
  interface PageHeaderProps {
569
569
  title?: string;
570
570
  breadcrumbs?: Array<{
@@ -596,8 +596,8 @@ interface PageHeaderProps {
596
596
  /** Optional ID for automation purposes */
597
597
  dataItemid?: string;
598
598
  }
599
- declare const PageHeader: FC<PageHeaderProps>;
600
-
599
+ declare const PageHeader: FC<PageHeaderProps>;
600
+
601
601
  interface PaginationProps extends AccessibleProps {
602
602
  currentPage: number;
603
603
  onClick: (e?: any) => void;
@@ -606,8 +606,8 @@ interface PaginationProps extends AccessibleProps {
606
606
  dataItemid?: string;
607
607
  type?: 'button' | 'submit' | 'reset' | null;
608
608
  }
609
- declare const Pagination: FC<PaginationProps>;
610
-
609
+ declare const Pagination: FC<PaginationProps>;
610
+
611
611
  interface RadioProps extends AccessibleProps {
612
612
  /** It is used to give label to radio. */
613
613
  children: string | number;
@@ -628,8 +628,8 @@ interface RadioProps extends AccessibleProps {
628
628
  isInvalidRedBackground?: boolean;
629
629
  isWarningError?: boolean;
630
630
  }
631
- declare const Radio: FC<RadioProps>;
632
-
631
+ declare const Radio: FC<RadioProps>;
632
+
633
633
  interface OptionProps$1 {
634
634
  label?: string;
635
635
  value: string | number;
@@ -642,8 +642,8 @@ interface RadioListProps extends AccessibleProps {
642
642
  /** Optional ID for automation purposes */
643
643
  dataItemid?: string;
644
644
  }
645
- declare const RadioList: FC<RadioListProps>;
646
-
645
+ declare const RadioList: FC<RadioListProps>;
646
+
647
647
  interface OptionProps {
648
648
  label?: string;
649
649
  value: string | number;
@@ -672,8 +672,8 @@ interface SelectProps extends AccessibleProps {
672
672
  isWarningError?: boolean;
673
673
  innerRef?: any;
674
674
  }
675
- declare const Select: FC<SelectProps>;
676
-
675
+ declare const Select: FC<SelectProps>;
676
+
677
677
  interface RowObject {
678
678
  [key: string]: any;
679
679
  }
@@ -699,8 +699,8 @@ interface TableProps extends AccessibleProps {
699
699
  /** Optional ID for automation purposes */
700
700
  dataItemid?: string;
701
701
  }
702
- declare const Table: FC<TableProps>;
703
-
702
+ declare const Table: FC<TableProps>;
703
+
704
704
  interface TabProps extends AccessibleProps {
705
705
  badgeCount?: number;
706
706
  errorBadge?: boolean;
@@ -713,8 +713,8 @@ interface TabsProps extends AccessibleProps {
713
713
  /** Optional ID for automation purposes */
714
714
  dataItemid?: string;
715
715
  }
716
- declare const Tabs: FC<TabsProps>;
717
-
716
+ declare const Tabs: FC<TabsProps>;
717
+
718
718
  interface ToggleProps extends AccessibleProps {
719
719
  /** It is used to check whether Toggle is checked or not */
720
720
  on: boolean;
@@ -723,8 +723,8 @@ interface ToggleProps extends AccessibleProps {
723
723
  /** Optional ID for automation purposes */
724
724
  dataItemid?: string;
725
725
  }
726
- declare const Toggle: FC<ToggleProps>;
727
-
726
+ declare const Toggle: FC<ToggleProps>;
727
+
728
728
  interface ZeroStateProps extends AccessibleProps {
729
729
  /** The SVG path of the icon to show */
730
730
  icon: string;
@@ -743,8 +743,8 @@ interface ZeroStateProps extends AccessibleProps {
743
743
  /** Optional ID for automation purposes */
744
744
  dataItemid?: string;
745
745
  }
746
- declare const ZeroState: FC<ZeroStateProps>;
747
-
746
+ declare const ZeroState: FC<ZeroStateProps>;
747
+
748
748
  declare const getAgesFromDob: (dob: string) => {
749
749
  calculated_nearest_age: number | null;
750
750
  calculated_current_age: number | null;
@@ -759,8 +759,8 @@ declare const validateEmail: (email: string) => boolean;
759
759
  declare const validatePhone: (phone: string) => boolean;
760
760
  declare const formatAsPhone: (number: string) => string;
761
761
  declare const formatAsSsn: (number: string) => string;
762
- declare const formatAsMask: (number: string, mask: string) => string;
763
-
762
+ declare const formatAsMask: (number: string, mask: string) => string;
763
+
764
764
  declare const Colors: {
765
765
  PRIMARY: {
766
766
  Hex: string;
@@ -812,6 +812,6 @@ declare const EditableTheme: {
812
812
  Hex: string;
813
813
  Rgb: string;
814
814
  };
815
- };
816
-
817
- 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 };
815
+ };
816
+
817
+ 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.93",
3
+ "version": "1.13.94",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",