@hexure/ui 1.14.8 → 1.14.9

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;
@@ -198,8 +198,8 @@ interface MoreMenuProps extends AccessibleProps {
198
198
  /** Optional ID for automation purposes */
199
199
  dataItemid?: string;
200
200
  }
201
- declare const MoreMenu: FC<MoreMenuProps>;
202
-
201
+ declare const MoreMenu: FC<MoreMenuProps>;
202
+
203
203
  interface ButtonMenuProps {
204
204
  disabled?: boolean;
205
205
  label: string;
@@ -216,8 +216,8 @@ interface ButtonMenuProps {
216
216
  dataItemid?: string;
217
217
  dataSectionName?: string;
218
218
  }
219
- declare const ButtonMenu: FC<ButtonMenuProps>;
220
-
219
+ declare const ButtonMenu: FC<ButtonMenuProps>;
220
+
221
221
  interface CheckboxProps extends AccessibleProps {
222
222
  /** It is used to give label to checkbox. */
223
223
  children?: string;
@@ -239,8 +239,8 @@ interface CheckboxProps extends AccessibleProps {
239
239
  dataSectionName?: string;
240
240
  isLabelBold?: boolean;
241
241
  }
242
- declare const Checkbox: FC<CheckboxProps>;
243
-
242
+ declare const Checkbox: FC<CheckboxProps>;
243
+
244
244
  interface OptionProps$3 {
245
245
  label?: string;
246
246
  value: string | number;
@@ -255,8 +255,8 @@ interface ChecklistProps extends AccessibleProps {
255
255
  /** Optional ID for automation purposes */
256
256
  dataItemid?: string;
257
257
  }
258
- declare const Checklist: FC<ChecklistProps>;
259
-
258
+ declare const Checklist: FC<ChecklistProps>;
259
+
260
260
  interface CopyProps extends AccessibleProps {
261
261
  /** Set the text to be displayed */
262
262
  children: string | React.ReactNode;
@@ -272,8 +272,8 @@ interface CopyProps extends AccessibleProps {
272
272
  /** Optional ID for automation purposes */
273
273
  dataItemid?: string;
274
274
  }
275
- declare const Copy: FC<CopyProps>;
276
-
275
+ declare const Copy: FC<CopyProps>;
276
+
277
277
  interface styleProps$1 {
278
278
  width?: number | string;
279
279
  }
@@ -294,8 +294,8 @@ interface DateProps extends AccessibleProps {
294
294
  dataItemid?: string;
295
295
  locale?: localeProps;
296
296
  }
297
- declare const DatePicker: FC<DateProps>;
298
-
297
+ declare const DatePicker: FC<DateProps>;
298
+
299
299
  interface ButtonProps$1 extends AccessibleProps {
300
300
  disabled?: boolean;
301
301
  children: string;
@@ -330,8 +330,8 @@ interface DrawerProps extends AccessibleProps {
330
330
  dataItemid?: string;
331
331
  bottomNotes?: string | ReactNode;
332
332
  }
333
- declare const Drawer: FC<DrawerProps>;
334
-
333
+ declare const Drawer: FC<DrawerProps>;
334
+
335
335
  interface ActionProps {
336
336
  dataItemid?: string;
337
337
  label: string;
@@ -359,8 +359,8 @@ interface FieldProps extends AccessibleProps {
359
359
  /** Optional for black message with icon */
360
360
  isNewMessageType?: boolean;
361
361
  }
362
- declare const Field: FC<FieldProps>;
363
-
362
+ declare const Field: FC<FieldProps>;
363
+
364
364
  interface FieldGroupProps {
365
365
  /** The label to display above the field group */
366
366
  label: string;
@@ -369,8 +369,8 @@ interface FieldGroupProps {
369
369
  /** Optional ID for automation purposes */
370
370
  dataItemid?: string;
371
371
  }
372
- declare const FieldGroup: FC<FieldGroupProps>;
373
-
372
+ declare const FieldGroup: FC<FieldGroupProps>;
373
+
374
374
  interface FileUploadProps {
375
375
  /** A method to call when files are added/removed. Return the new file or array of files. */
376
376
  onChange?: (files: Array<File>) => void;
@@ -396,8 +396,8 @@ interface ErrorObject {
396
396
  file: File;
397
397
  message: string;
398
398
  }
399
- declare const FileUpload: FC<FileUploadProps>;
400
-
399
+ declare const FileUpload: FC<FileUploadProps>;
400
+
401
401
  interface HeadingProps extends AccessibleProps {
402
402
  /** Toggle between bold and normal font weights */
403
403
  bold?: boolean;
@@ -414,8 +414,8 @@ interface HeadingProps extends AccessibleProps {
414
414
  /** Optional style for the header title */
415
415
  style?: CSSProperties;
416
416
  }
417
- declare const Heading: FC<HeadingProps>;
418
-
417
+ declare const Heading: FC<HeadingProps>;
418
+
419
419
  interface InputProps extends AccessibleProps {
420
420
  format?: 'phone' | 'currency' | 'currency_decimal' | 'ssn';
421
421
  height?: string;
@@ -450,8 +450,8 @@ interface InputProps extends AccessibleProps {
450
450
  isInvalidRedBackground?: boolean;
451
451
  isWarningError?: boolean;
452
452
  }
453
- declare const Input: FC<InputProps>;
454
-
453
+ declare const Input: FC<InputProps>;
454
+
455
455
  interface LinkProps extends AccessibleProps {
456
456
  /** Set the text to be displayed */
457
457
  children: string;
@@ -462,22 +462,22 @@ interface LinkProps extends AccessibleProps {
462
462
  /** Optional ID for automation purposes */
463
463
  dataItemid?: string;
464
464
  }
465
- declare const Link: FC<LinkProps>;
466
-
465
+ declare const Link: FC<LinkProps>;
466
+
467
467
  interface LoaderProps {
468
468
  /** Optional ID for automation purposes */
469
469
  dataItemid?: string;
470
470
  }
471
- declare const Loader: FC<LoaderProps>;
472
-
471
+ declare const Loader: FC<LoaderProps>;
472
+
473
473
  interface LogoProps extends AccessibleProps {
474
474
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
475
475
  height?: string;
476
476
  /** Optional ID for automation purposes */
477
477
  dataItemid?: string;
478
478
  }
479
- declare const Logo: FC<LogoProps>;
480
-
479
+ declare const Logo: FC<LogoProps>;
480
+
481
481
  interface StepProps {
482
482
  label: string | ReactNode;
483
483
  complete?: boolean;
@@ -494,8 +494,8 @@ interface ProgressBarProps {
494
494
  /** Optional ID for automation purposes */
495
495
  dataItemid?: string;
496
496
  }
497
- declare const ProgressBar: FC<ProgressBarProps>;
498
-
497
+ declare const ProgressBar: FC<ProgressBarProps>;
498
+
499
499
  interface ButtonProps {
500
500
  disabled?: boolean;
501
501
  children: string;
@@ -536,8 +536,8 @@ interface ModalProps extends AccessibleProps {
536
536
  /** Optional style for the header title */
537
537
  headerTitleStyle?: CSSProperties;
538
538
  }
539
- declare const Modal: FC<ModalProps>;
540
-
539
+ declare const Modal: FC<ModalProps>;
540
+
541
541
  interface OptionProps$2 {
542
542
  label?: string;
543
543
  value: string | number;
@@ -559,8 +559,8 @@ interface MultiSelectProps extends AccessibleProps {
559
559
  /** Optional ID for automation purposes */
560
560
  dataItemid?: string;
561
561
  }
562
- declare const MultiSelect: FC<MultiSelectProps>;
563
-
562
+ declare const MultiSelect: FC<MultiSelectProps>;
563
+
564
564
  interface TagProps extends AccessibleProps {
565
565
  /** It is used to select tag-type either default or removable. */
566
566
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -575,8 +575,8 @@ interface TagProps extends AccessibleProps {
575
575
  rotate?: boolean;
576
576
  dataSectionName?: string;
577
577
  }
578
- declare const Tag: FC<TagProps>;
579
-
578
+ declare const Tag: FC<TagProps>;
579
+
580
580
  interface PageHeaderProps {
581
581
  title?: string;
582
582
  breadcrumbs?: Array<{
@@ -608,8 +608,8 @@ interface PageHeaderProps {
608
608
  /** Optional ID for automation purposes */
609
609
  dataItemid?: string;
610
610
  }
611
- declare const PageHeader: FC<PageHeaderProps>;
612
-
611
+ declare const PageHeader: FC<PageHeaderProps>;
612
+
613
613
  interface PaginationProps extends AccessibleProps {
614
614
  currentPage: number;
615
615
  onClick: (e?: any) => void;
@@ -618,8 +618,8 @@ interface PaginationProps extends AccessibleProps {
618
618
  dataItemid?: string;
619
619
  type?: 'button' | 'submit' | 'reset' | null;
620
620
  }
621
- declare const Pagination: FC<PaginationProps>;
622
-
621
+ declare const Pagination: FC<PaginationProps>;
622
+
623
623
  interface RadioProps extends AccessibleProps {
624
624
  /** It is used to give label to radio. */
625
625
  children: string | number;
@@ -641,8 +641,8 @@ interface RadioProps extends AccessibleProps {
641
641
  isWarningError?: boolean;
642
642
  isLabelBold?: boolean;
643
643
  }
644
- declare const Radio: FC<RadioProps>;
645
-
644
+ declare const Radio: FC<RadioProps>;
645
+
646
646
  interface OptionProps$1 {
647
647
  label?: string;
648
648
  value: string | number;
@@ -655,8 +655,8 @@ interface RadioListProps extends AccessibleProps {
655
655
  /** Optional ID for automation purposes */
656
656
  dataItemid?: string;
657
657
  }
658
- declare const RadioList: FC<RadioListProps>;
659
-
658
+ declare const RadioList: FC<RadioListProps>;
659
+
660
660
  interface OptionProps {
661
661
  label?: string;
662
662
  value: string | number;
@@ -687,8 +687,8 @@ interface SelectProps extends AccessibleProps {
687
687
  innerRef?: any;
688
688
  isCustomSelect?: boolean;
689
689
  }
690
- declare const Select: FC<SelectProps>;
691
-
690
+ declare const Select: FC<SelectProps>;
691
+
692
692
  interface RowObject {
693
693
  [key: string]: any;
694
694
  }
@@ -715,8 +715,8 @@ interface TableProps extends AccessibleProps {
715
715
  /** Optional ID for automation purposes */
716
716
  dataItemid?: string;
717
717
  }
718
- declare const Table: FC<TableProps>;
719
-
718
+ declare const Table: FC<TableProps>;
719
+
720
720
  interface TabProps extends AccessibleProps {
721
721
  badgeCount?: number;
722
722
  errorBadge?: boolean;
@@ -730,8 +730,8 @@ interface TabsProps extends AccessibleProps {
730
730
  /** Optional ID for automation purposes */
731
731
  dataItemid?: string;
732
732
  }
733
- declare const Tabs: FC<TabsProps>;
734
-
733
+ declare const Tabs: FC<TabsProps>;
734
+
735
735
  interface ToggleProps extends AccessibleProps {
736
736
  /** It is used to check whether Toggle is checked or not */
737
737
  on: boolean;
@@ -740,8 +740,8 @@ interface ToggleProps extends AccessibleProps {
740
740
  /** Optional ID for automation purposes */
741
741
  dataItemid?: string;
742
742
  }
743
- declare const Toggle: FC<ToggleProps>;
744
-
743
+ declare const Toggle: FC<ToggleProps>;
744
+
745
745
  interface ZeroStateProps extends AccessibleProps {
746
746
  /** The SVG path of the icon to show */
747
747
  icon: string;
@@ -761,8 +761,8 @@ interface ZeroStateProps extends AccessibleProps {
761
761
  /** Optional ID for automation purposes */
762
762
  dataItemid?: string;
763
763
  }
764
- declare const ZeroState: FC<ZeroStateProps>;
765
-
764
+ declare const ZeroState: FC<ZeroStateProps>;
765
+
766
766
  declare const getAgesFromDob: (dob: string) => {
767
767
  calculated_nearest_age: number | null;
768
768
  calculated_current_age: number | null;
@@ -777,8 +777,8 @@ declare const validateEmail: (email: string) => boolean;
777
777
  declare const validatePhone: (phone: string) => boolean;
778
778
  declare const formatAsPhone: (number: string) => string;
779
779
  declare const formatAsSsn: (number: string) => string;
780
- declare const formatAsMask: (number: string, mask: string) => string;
781
-
780
+ declare const formatAsMask: (number: string, mask: string) => string;
781
+
782
782
  declare const Colors: {
783
783
  PRIMARY: {
784
784
  Hex: string;
@@ -830,6 +830,6 @@ declare const EditableTheme: {
830
830
  Hex: string;
831
831
  Rgb: string;
832
832
  };
833
- };
834
-
835
- 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 };
833
+ };
834
+
835
+ 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.8",
3
+ "version": "1.14.9",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",