@hexure/ui 1.13.65 → 1.13.66

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;
@@ -94,8 +94,8 @@ interface TooltipProps {
94
94
  */
95
95
  auto?: boolean;
96
96
  }
97
- declare const Tooltip: FC<TooltipProps>;
98
-
97
+ declare const Tooltip: FC<TooltipProps>;
98
+
99
99
  interface ButtonProps$3 extends AccessibleProps {
100
100
  /** Display a number badge on the right side of the button */
101
101
  badge?: number;
@@ -127,16 +127,16 @@ interface ButtonProps$3 extends AccessibleProps {
127
127
  /** Optional type for the button */
128
128
  type?: 'button' | 'submit' | 'reset' | null;
129
129
  }
130
- declare const Button: FC<ButtonProps$3>;
131
-
130
+ declare const Button: FC<ButtonProps$3>;
131
+
132
132
  interface AppHeaderProps {
133
133
  logoUrl?: string;
134
134
  buttons: ButtonProps$3[];
135
135
  /** Optional ID for automation purposes */
136
136
  dataItemid?: string;
137
137
  }
138
- declare const AppHeader: FC<AppHeaderProps>;
139
-
138
+ declare const AppHeader: FC<AppHeaderProps>;
139
+
140
140
  interface MenuItemType extends AccessibleProps {
141
141
  icon: string;
142
142
  label: string;
@@ -157,8 +157,8 @@ interface AppMenuProps extends AccessibleProps {
157
157
  /** Optional ID for automation purposes */
158
158
  dataItemid?: string;
159
159
  }
160
- declare const AppMenu: FC<AppMenuProps>;
161
-
160
+ declare const AppMenu: FC<AppMenuProps>;
161
+
162
162
  interface ButtonProps$2 {
163
163
  children: string;
164
164
  onClick: (e?: any) => void;
@@ -174,8 +174,8 @@ interface BulkActionBarProps extends AccessibleProps {
174
174
  /** Optional ID for automation purposes */
175
175
  dataItemid?: string;
176
176
  }
177
- declare const BulkActionBar: FC<BulkActionBarProps>;
178
-
177
+ declare const BulkActionBar: FC<BulkActionBarProps>;
178
+
179
179
  interface MenuItemProps extends AccessibleProps {
180
180
  icon?: string;
181
181
  label?: string;
@@ -188,8 +188,8 @@ interface MoreMenuProps extends AccessibleProps {
188
188
  /** Optional ID for automation purposes */
189
189
  dataItemid?: string;
190
190
  }
191
- declare const MoreMenu: FC<MoreMenuProps>;
192
-
191
+ declare const MoreMenu: FC<MoreMenuProps>;
192
+
193
193
  interface ButtonMenuProps {
194
194
  disabled?: boolean;
195
195
  label: string;
@@ -205,8 +205,8 @@ interface ButtonMenuProps {
205
205
  /** Optional ID for automation purposes */
206
206
  dataItemid?: string;
207
207
  }
208
- declare const ButtonMenu: FC<ButtonMenuProps>;
209
-
208
+ declare const ButtonMenu: FC<ButtonMenuProps>;
209
+
210
210
  interface CheckboxProps extends AccessibleProps {
211
211
  /** It is used to give label to checkbox. */
212
212
  children?: string;
@@ -226,8 +226,8 @@ interface CheckboxProps extends AccessibleProps {
226
226
  isInvalidRedBackground?: boolean;
227
227
  isWarningError?: boolean;
228
228
  }
229
- declare const Checkbox: FC<CheckboxProps>;
230
-
229
+ declare const Checkbox: FC<CheckboxProps>;
230
+
231
231
  interface OptionProps$3 {
232
232
  label?: string;
233
233
  value: string | number;
@@ -242,8 +242,8 @@ interface ChecklistProps extends AccessibleProps {
242
242
  /** Optional ID for automation purposes */
243
243
  dataItemid?: string;
244
244
  }
245
- declare const Checklist: FC<ChecklistProps>;
246
-
245
+ declare const Checklist: FC<ChecklistProps>;
246
+
247
247
  interface CopyProps extends AccessibleProps {
248
248
  /** Set the text to be displayed */
249
249
  children: string | React.ReactNode;
@@ -259,8 +259,8 @@ interface CopyProps extends AccessibleProps {
259
259
  /** Optional ID for automation purposes */
260
260
  dataItemid?: string;
261
261
  }
262
- declare const Copy: FC<CopyProps>;
263
-
262
+ declare const Copy: FC<CopyProps>;
263
+
264
264
  interface styleProps$2 {
265
265
  width?: number | string;
266
266
  }
@@ -281,8 +281,8 @@ interface DateProps extends AccessibleProps {
281
281
  dataItemid?: string;
282
282
  locale?: localeProps;
283
283
  }
284
- declare const DatePicker: FC<DateProps>;
285
-
284
+ declare const DatePicker: FC<DateProps>;
285
+
286
286
  interface ButtonProps$1 extends AccessibleProps {
287
287
  disabled?: boolean;
288
288
  children: string;
@@ -318,8 +318,8 @@ interface DrawerProps extends AccessibleProps {
318
318
  dataItemid?: string;
319
319
  bottomNotes?: string | ReactNode;
320
320
  }
321
- declare const Drawer: FC<DrawerProps>;
322
-
321
+ declare const Drawer: FC<DrawerProps>;
322
+
323
323
  interface ActionProps {
324
324
  dataItemid?: string;
325
325
  label: string;
@@ -346,8 +346,8 @@ interface FieldProps extends AccessibleProps {
346
346
  /** Optional for black message with icon */
347
347
  isNewMessageType?: boolean;
348
348
  }
349
- declare const Field: FC<FieldProps>;
350
-
349
+ declare const Field: FC<FieldProps>;
350
+
351
351
  interface FieldGroupProps {
352
352
  /** The label to display above the field group */
353
353
  label: string;
@@ -356,8 +356,8 @@ interface FieldGroupProps {
356
356
  /** Optional ID for automation purposes */
357
357
  dataItemid?: string;
358
358
  }
359
- declare const FieldGroup: FC<FieldGroupProps>;
360
-
359
+ declare const FieldGroup: FC<FieldGroupProps>;
360
+
361
361
  interface FileUploadProps {
362
362
  /** A method to call when files are added/removed. Return the new file or array of files. */
363
363
  onChange?: (files: Array<File>) => void;
@@ -383,8 +383,8 @@ interface ErrorObject {
383
383
  file: File;
384
384
  message: string;
385
385
  }
386
- declare const FileUpload: FC<FileUploadProps>;
387
-
386
+ declare const FileUpload: FC<FileUploadProps>;
387
+
388
388
  interface HeadingProps extends AccessibleProps {
389
389
  /** Toggle between bold and normal font weights */
390
390
  bold?: boolean;
@@ -399,8 +399,8 @@ interface HeadingProps extends AccessibleProps {
399
399
  /** Optional ID for automation purposes */
400
400
  dataItemid?: string;
401
401
  }
402
- declare const Heading: FC<HeadingProps>;
403
-
402
+ declare const Heading: FC<HeadingProps>;
403
+
404
404
  interface InputProps extends AccessibleProps {
405
405
  format?: 'phone' | 'currency' | 'currency_decimal' | 'ssn';
406
406
  height?: string;
@@ -435,8 +435,8 @@ interface InputProps extends AccessibleProps {
435
435
  isInvalidRedBackground?: boolean;
436
436
  isWarningError?: boolean;
437
437
  }
438
- declare const Input: FC<InputProps>;
439
-
438
+ declare const Input: FC<InputProps>;
439
+
440
440
  interface LinkProps extends AccessibleProps {
441
441
  /** Set the text to be displayed */
442
442
  children: string;
@@ -447,22 +447,22 @@ interface LinkProps extends AccessibleProps {
447
447
  /** Optional ID for automation purposes */
448
448
  dataItemid?: string;
449
449
  }
450
- declare const Link: FC<LinkProps>;
451
-
450
+ declare const Link: FC<LinkProps>;
451
+
452
452
  interface LoaderProps {
453
453
  /** Optional ID for automation purposes */
454
454
  dataItemid?: string;
455
455
  }
456
- declare const Loader: FC<LoaderProps>;
457
-
456
+ declare const Loader: FC<LoaderProps>;
457
+
458
458
  interface LogoProps extends AccessibleProps {
459
459
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
460
460
  height?: string;
461
461
  /** Optional ID for automation purposes */
462
462
  dataItemid?: string;
463
463
  }
464
- declare const Logo: FC<LogoProps>;
465
-
464
+ declare const Logo: FC<LogoProps>;
465
+
466
466
  interface StepProps {
467
467
  label: string | ReactNode;
468
468
  complete?: boolean;
@@ -475,8 +475,8 @@ interface ProgressBarProps {
475
475
  /** Optional ID for automation purposes */
476
476
  dataItemid?: string;
477
477
  }
478
- declare const ProgressBar: FC<ProgressBarProps>;
479
-
478
+ declare const ProgressBar: FC<ProgressBarProps>;
479
+
480
480
  interface ButtonProps {
481
481
  disabled?: boolean;
482
482
  children: string;
@@ -510,8 +510,8 @@ interface ModalProps extends AccessibleProps {
510
510
  /** Optional ID for automation purposes */
511
511
  dataItemid?: string;
512
512
  }
513
- declare const Modal: FC<ModalProps>;
514
-
513
+ declare const Modal: FC<ModalProps>;
514
+
515
515
  interface OptionProps$2 {
516
516
  label?: string;
517
517
  value: string | number;
@@ -533,8 +533,8 @@ interface MultiSelectProps extends AccessibleProps {
533
533
  /** Optional ID for automation purposes */
534
534
  dataItemid?: string;
535
535
  }
536
- declare const MultiSelect: FC<MultiSelectProps>;
537
-
536
+ declare const MultiSelect: FC<MultiSelectProps>;
537
+
538
538
  interface TagProps extends AccessibleProps {
539
539
  /** It is used to select tag-type either default or removable. */
540
540
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -547,8 +547,8 @@ interface TagProps extends AccessibleProps {
547
547
  /** Optional ID for automation purposes */
548
548
  dataItemid?: string;
549
549
  }
550
- declare const Tag: FC<TagProps>;
551
-
550
+ declare const Tag: FC<TagProps>;
551
+
552
552
  interface PageHeaderProps {
553
553
  title?: string;
554
554
  breadcrumbs?: Array<{
@@ -580,8 +580,8 @@ interface PageHeaderProps {
580
580
  /** Optional ID for automation purposes */
581
581
  dataItemid?: string;
582
582
  }
583
- declare const PageHeader: FC<PageHeaderProps>;
584
-
583
+ declare const PageHeader: FC<PageHeaderProps>;
584
+
585
585
  interface PaginationProps extends AccessibleProps {
586
586
  currentPage: number;
587
587
  onClick: (e?: any) => void;
@@ -590,8 +590,8 @@ interface PaginationProps extends AccessibleProps {
590
590
  dataItemid?: string;
591
591
  type?: 'button' | 'submit' | 'reset' | null;
592
592
  }
593
- declare const Pagination: FC<PaginationProps>;
594
-
593
+ declare const Pagination: FC<PaginationProps>;
594
+
595
595
  interface RadioProps extends AccessibleProps {
596
596
  /** It is used to give label to radio. */
597
597
  children: string | number;
@@ -612,8 +612,8 @@ interface RadioProps extends AccessibleProps {
612
612
  isInvalidRedBackground?: boolean;
613
613
  isWarningError?: boolean;
614
614
  }
615
- declare const Radio: FC<RadioProps>;
616
-
615
+ declare const Radio: FC<RadioProps>;
616
+
617
617
  interface OptionProps$1 {
618
618
  label?: string;
619
619
  value: string | number;
@@ -626,8 +626,8 @@ interface RadioListProps extends AccessibleProps {
626
626
  /** Optional ID for automation purposes */
627
627
  dataItemid?: string;
628
628
  }
629
- declare const RadioList: FC<RadioListProps>;
630
-
629
+ declare const RadioList: FC<RadioListProps>;
630
+
631
631
  interface OptionProps {
632
632
  label?: string;
633
633
  value: string | number;
@@ -660,8 +660,8 @@ interface SelectProps extends AccessibleProps {
660
660
  isInvalidRedBackground?: boolean;
661
661
  isWarningError?: boolean;
662
662
  }
663
- declare const Select: FC<SelectProps>;
664
-
663
+ declare const Select: FC<SelectProps>;
664
+
665
665
  interface RowObject {
666
666
  [key: string]: any;
667
667
  }
@@ -687,8 +687,8 @@ interface TableProps extends AccessibleProps {
687
687
  /** Optional ID for automation purposes */
688
688
  dataItemid?: string;
689
689
  }
690
- declare const Table: FC<TableProps>;
691
-
690
+ declare const Table: FC<TableProps>;
691
+
692
692
  interface TabProps extends AccessibleProps {
693
693
  badgeCount?: number;
694
694
  errorBadge?: boolean;
@@ -701,8 +701,8 @@ interface TabsProps extends AccessibleProps {
701
701
  /** Optional ID for automation purposes */
702
702
  dataItemid?: string;
703
703
  }
704
- declare const Tabs: FC<TabsProps>;
705
-
704
+ declare const Tabs: FC<TabsProps>;
705
+
706
706
  interface ToggleProps extends AccessibleProps {
707
707
  /** It is used to check whether Toggle is checked or not */
708
708
  on: boolean;
@@ -711,8 +711,8 @@ interface ToggleProps extends AccessibleProps {
711
711
  /** Optional ID for automation purposes */
712
712
  dataItemid?: string;
713
713
  }
714
- declare const Toggle: FC<ToggleProps>;
715
-
714
+ declare const Toggle: FC<ToggleProps>;
715
+
716
716
  interface ZeroStateProps extends AccessibleProps {
717
717
  /** The SVG path of the icon to show */
718
718
  icon: string;
@@ -731,8 +731,8 @@ interface ZeroStateProps extends AccessibleProps {
731
731
  /** Optional ID for automation purposes */
732
732
  dataItemid?: string;
733
733
  }
734
- declare const ZeroState: FC<ZeroStateProps>;
735
-
734
+ declare const ZeroState: FC<ZeroStateProps>;
735
+
736
736
  declare const getAgesFromDob: (dob: string) => {
737
737
  calculated_nearest_age: number | null;
738
738
  calculated_current_age: number | null;
@@ -747,8 +747,8 @@ declare const validateEmail: (email: string) => boolean;
747
747
  declare const validatePhone: (phone: string) => boolean;
748
748
  declare const formatAsPhone: (number: string) => string;
749
749
  declare const formatAsSsn: (number: string) => string;
750
- declare const formatAsMask: (number: string, mask: string) => string;
751
-
750
+ declare const formatAsMask: (number: string, mask: string) => string;
751
+
752
752
  declare const Colors: {
753
753
  PRIMARY: {
754
754
  Hex: string;
@@ -800,6 +800,6 @@ declare const EditableTheme: {
800
800
  Hex: string;
801
801
  Rgb: string;
802
802
  };
803
- };
804
-
805
- 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 };
803
+ };
804
+
805
+ 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.65",
3
+ "version": "1.13.66",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",