@hexure/ui 1.13.74 → 1.13.76

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;
@@ -158,8 +158,8 @@ interface AppMenuProps extends AccessibleProps {
158
158
  defaultWidth?: string;
159
159
  dataItemid?: string;
160
160
  }
161
- declare const AppMenu: FC<AppMenuProps>;
162
-
161
+ declare const AppMenu: FC<AppMenuProps>;
162
+
163
163
  interface ButtonProps$2 {
164
164
  children: string;
165
165
  onClick: (e?: any) => void;
@@ -175,8 +175,8 @@ interface BulkActionBarProps extends AccessibleProps {
175
175
  /** Optional ID for automation purposes */
176
176
  dataItemid?: string;
177
177
  }
178
- declare const BulkActionBar: FC<BulkActionBarProps>;
179
-
178
+ declare const BulkActionBar: FC<BulkActionBarProps>;
179
+
180
180
  interface MenuItemProps extends AccessibleProps {
181
181
  icon?: string;
182
182
  label?: string;
@@ -189,8 +189,8 @@ interface MoreMenuProps extends AccessibleProps {
189
189
  /** Optional ID for automation purposes */
190
190
  dataItemid?: string;
191
191
  }
192
- declare const MoreMenu: FC<MoreMenuProps>;
193
-
192
+ declare const MoreMenu: FC<MoreMenuProps>;
193
+
194
194
  interface ButtonMenuProps {
195
195
  disabled?: boolean;
196
196
  label: string;
@@ -206,8 +206,8 @@ interface ButtonMenuProps {
206
206
  /** Optional ID for automation purposes */
207
207
  dataItemid?: string;
208
208
  }
209
- declare const ButtonMenu: FC<ButtonMenuProps>;
210
-
209
+ declare const ButtonMenu: FC<ButtonMenuProps>;
210
+
211
211
  interface CheckboxProps extends AccessibleProps {
212
212
  /** It is used to give label to checkbox. */
213
213
  children?: string;
@@ -227,8 +227,8 @@ interface CheckboxProps extends AccessibleProps {
227
227
  isInvalidRedBackground?: boolean;
228
228
  isWarningError?: boolean;
229
229
  }
230
- declare const Checkbox: FC<CheckboxProps>;
231
-
230
+ declare const Checkbox: FC<CheckboxProps>;
231
+
232
232
  interface OptionProps$3 {
233
233
  label?: string;
234
234
  value: string | number;
@@ -243,8 +243,8 @@ interface ChecklistProps extends AccessibleProps {
243
243
  /** Optional ID for automation purposes */
244
244
  dataItemid?: string;
245
245
  }
246
- declare const Checklist: FC<ChecklistProps>;
247
-
246
+ declare const Checklist: FC<ChecklistProps>;
247
+
248
248
  interface CopyProps extends AccessibleProps {
249
249
  /** Set the text to be displayed */
250
250
  children: string | React.ReactNode;
@@ -260,8 +260,8 @@ interface CopyProps extends AccessibleProps {
260
260
  /** Optional ID for automation purposes */
261
261
  dataItemid?: string;
262
262
  }
263
- declare const Copy: FC<CopyProps>;
264
-
263
+ declare const Copy: FC<CopyProps>;
264
+
265
265
  interface styleProps$2 {
266
266
  width?: number | string;
267
267
  }
@@ -282,8 +282,8 @@ interface DateProps extends AccessibleProps {
282
282
  dataItemid?: string;
283
283
  locale?: localeProps;
284
284
  }
285
- declare const DatePicker: FC<DateProps>;
286
-
285
+ declare const DatePicker: FC<DateProps>;
286
+
287
287
  interface ButtonProps$1 extends AccessibleProps {
288
288
  disabled?: boolean;
289
289
  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;
@@ -479,8 +479,8 @@ interface ProgressBarProps {
479
479
  /** Optional ID for automation purposes */
480
480
  dataItemid?: string;
481
481
  }
482
- declare const ProgressBar: FC<ProgressBarProps>;
483
-
482
+ declare const ProgressBar: FC<ProgressBarProps>;
483
+
484
484
  interface ButtonProps {
485
485
  disabled?: boolean;
486
486
  children: string;
@@ -515,8 +515,8 @@ interface ModalProps extends AccessibleProps {
515
515
  /** Optional ID for automation purposes */
516
516
  dataItemid?: string;
517
517
  }
518
- declare const Modal: FC<ModalProps>;
519
-
518
+ declare const Modal: FC<ModalProps>;
519
+
520
520
  interface OptionProps$2 {
521
521
  label?: string;
522
522
  value: string | number;
@@ -538,8 +538,8 @@ interface MultiSelectProps extends AccessibleProps {
538
538
  /** Optional ID for automation purposes */
539
539
  dataItemid?: string;
540
540
  }
541
- declare const MultiSelect: FC<MultiSelectProps>;
542
-
541
+ declare const MultiSelect: FC<MultiSelectProps>;
542
+
543
543
  interface TagProps extends AccessibleProps {
544
544
  /** It is used to select tag-type either default or removable. */
545
545
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -553,8 +553,8 @@ interface TagProps extends AccessibleProps {
553
553
  dataItemid?: string;
554
554
  rotate?: boolean;
555
555
  }
556
- declare const Tag: FC<TagProps>;
557
-
556
+ declare const Tag: FC<TagProps>;
557
+
558
558
  interface PageHeaderProps {
559
559
  title?: string;
560
560
  breadcrumbs?: Array<{
@@ -586,8 +586,8 @@ interface PageHeaderProps {
586
586
  /** Optional ID for automation purposes */
587
587
  dataItemid?: string;
588
588
  }
589
- declare const PageHeader: FC<PageHeaderProps>;
590
-
589
+ declare const PageHeader: FC<PageHeaderProps>;
590
+
591
591
  interface PaginationProps extends AccessibleProps {
592
592
  currentPage: number;
593
593
  onClick: (e?: any) => void;
@@ -596,8 +596,8 @@ interface PaginationProps extends AccessibleProps {
596
596
  dataItemid?: string;
597
597
  type?: 'button' | 'submit' | 'reset' | null;
598
598
  }
599
- declare const Pagination: FC<PaginationProps>;
600
-
599
+ declare const Pagination: FC<PaginationProps>;
600
+
601
601
  interface RadioProps extends AccessibleProps {
602
602
  /** It is used to give label to radio. */
603
603
  children: string | number;
@@ -618,8 +618,8 @@ interface RadioProps extends AccessibleProps {
618
618
  isInvalidRedBackground?: boolean;
619
619
  isWarningError?: boolean;
620
620
  }
621
- declare const Radio: FC<RadioProps>;
622
-
621
+ declare const Radio: FC<RadioProps>;
622
+
623
623
  interface OptionProps$1 {
624
624
  label?: string;
625
625
  value: string | number;
@@ -632,8 +632,8 @@ interface RadioListProps extends AccessibleProps {
632
632
  /** Optional ID for automation purposes */
633
633
  dataItemid?: string;
634
634
  }
635
- declare const RadioList: FC<RadioListProps>;
636
-
635
+ declare const RadioList: FC<RadioListProps>;
636
+
637
637
  interface OptionProps {
638
638
  label?: string;
639
639
  value: string | number;
@@ -666,8 +666,8 @@ interface SelectProps extends AccessibleProps {
666
666
  isInvalidRedBackground?: boolean;
667
667
  isWarningError?: boolean;
668
668
  }
669
- declare const Select: FC<SelectProps>;
670
-
669
+ declare const Select: FC<SelectProps>;
670
+
671
671
  interface RowObject {
672
672
  [key: string]: any;
673
673
  }
@@ -693,8 +693,8 @@ interface TableProps extends AccessibleProps {
693
693
  /** Optional ID for automation purposes */
694
694
  dataItemid?: string;
695
695
  }
696
- declare const Table: FC<TableProps>;
697
-
696
+ declare const Table: FC<TableProps>;
697
+
698
698
  interface TabProps extends AccessibleProps {
699
699
  badgeCount?: number;
700
700
  errorBadge?: boolean;
@@ -707,8 +707,8 @@ interface TabsProps extends AccessibleProps {
707
707
  /** Optional ID for automation purposes */
708
708
  dataItemid?: string;
709
709
  }
710
- declare const Tabs: FC<TabsProps>;
711
-
710
+ declare const Tabs: FC<TabsProps>;
711
+
712
712
  interface ToggleProps extends AccessibleProps {
713
713
  /** It is used to check whether Toggle is checked or not */
714
714
  on: boolean;
@@ -717,8 +717,8 @@ interface ToggleProps extends AccessibleProps {
717
717
  /** Optional ID for automation purposes */
718
718
  dataItemid?: string;
719
719
  }
720
- declare const Toggle: FC<ToggleProps>;
721
-
720
+ declare const Toggle: FC<ToggleProps>;
721
+
722
722
  interface ZeroStateProps extends AccessibleProps {
723
723
  /** The SVG path of the icon to show */
724
724
  icon: string;
@@ -737,8 +737,8 @@ interface ZeroStateProps extends AccessibleProps {
737
737
  /** Optional ID for automation purposes */
738
738
  dataItemid?: string;
739
739
  }
740
- declare const ZeroState: FC<ZeroStateProps>;
741
-
740
+ declare const ZeroState: FC<ZeroStateProps>;
741
+
742
742
  declare const getAgesFromDob: (dob: string) => {
743
743
  calculated_nearest_age: number | null;
744
744
  calculated_current_age: number | null;
@@ -753,8 +753,8 @@ declare const validateEmail: (email: string) => boolean;
753
753
  declare const validatePhone: (phone: string) => boolean;
754
754
  declare const formatAsPhone: (number: string) => string;
755
755
  declare const formatAsSsn: (number: string) => string;
756
- declare const formatAsMask: (number: string, mask: string) => string;
757
-
756
+ declare const formatAsMask: (number: string, mask: string) => string;
757
+
758
758
  declare const Colors: {
759
759
  PRIMARY: {
760
760
  Hex: string;
@@ -806,6 +806,6 @@ declare const EditableTheme: {
806
806
  Hex: string;
807
807
  Rgb: string;
808
808
  };
809
- };
810
-
811
- 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 };
809
+ };
810
+
811
+ 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.74",
3
+ "version": "1.13.76",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",