@hexure/ui 1.13.59 → 1.13.61

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.
@@ -18,6 +18,7 @@ export interface CheckboxProps extends AccessibleProps {
18
18
  /** Optional ID for automation purposes */
19
19
  dataItemid?: string;
20
20
  isInvalidRedBackground?: boolean;
21
+ isWarningError?: boolean;
21
22
  }
22
23
  declare const Checkbox: FC<CheckboxProps>;
23
24
  export default Checkbox;
@@ -36,6 +36,7 @@ export interface InputProps extends AccessibleProps {
36
36
  onPaste?: (e?: any) => void;
37
37
  autoComplete?: React.InputHTMLAttributes<HTMLInputElement>['autoComplete'];
38
38
  isInvalidRedBackground?: boolean;
39
+ isWarningError?: boolean;
39
40
  }
40
41
  declare const Input: FC<InputProps>;
41
42
  export default Input;
@@ -19,6 +19,7 @@ export interface RadioProps extends AccessibleProps {
19
19
  /** Optional ID for automation purposes */
20
20
  dataItemid?: string;
21
21
  isInvalidRedBackground?: boolean;
22
+ isWarningError?: boolean;
22
23
  }
23
24
  declare const Radio: FC<RadioProps>;
24
25
  export default Radio;
@@ -30,6 +30,7 @@ export interface SelectProps extends AccessibleProps {
30
30
  /** Optional ID for automation purposes */
31
31
  dataItemid?: string;
32
32
  isInvalidRedBackground?: boolean;
33
+ isWarningError?: boolean;
33
34
  }
34
35
  declare const Select: FC<SelectProps>;
35
36
  export default Select;
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;
@@ -90,8 +90,8 @@ interface TooltipProps {
90
90
  /** Override the default icon / wrapper height of 16px */
91
91
  height?: string;
92
92
  }
93
- declare const Tooltip: FC<TooltipProps>;
94
-
93
+ declare const Tooltip: FC<TooltipProps>;
94
+
95
95
  interface ButtonProps$3 extends AccessibleProps {
96
96
  /** Display a number badge on the right side of the button */
97
97
  badge?: number;
@@ -123,16 +123,16 @@ interface ButtonProps$3 extends AccessibleProps {
123
123
  /** Optional type for the button */
124
124
  type?: 'button' | 'submit' | 'reset' | null;
125
125
  }
126
- declare const Button: FC<ButtonProps$3>;
127
-
126
+ declare const Button: FC<ButtonProps$3>;
127
+
128
128
  interface AppHeaderProps {
129
129
  logoUrl?: string;
130
130
  buttons: ButtonProps$3[];
131
131
  /** Optional ID for automation purposes */
132
132
  dataItemid?: string;
133
133
  }
134
- declare const AppHeader: FC<AppHeaderProps>;
135
-
134
+ declare const AppHeader: FC<AppHeaderProps>;
135
+
136
136
  interface MenuItemType extends AccessibleProps {
137
137
  icon: string;
138
138
  label: string;
@@ -153,8 +153,8 @@ interface AppMenuProps extends AccessibleProps {
153
153
  /** Optional ID for automation purposes */
154
154
  dataItemid?: string;
155
155
  }
156
- declare const AppMenu: FC<AppMenuProps>;
157
-
156
+ declare const AppMenu: FC<AppMenuProps>;
157
+
158
158
  interface ButtonProps$2 {
159
159
  children: string;
160
160
  onClick: (e?: any) => void;
@@ -170,8 +170,8 @@ interface BulkActionBarProps extends AccessibleProps {
170
170
  /** Optional ID for automation purposes */
171
171
  dataItemid?: string;
172
172
  }
173
- declare const BulkActionBar: FC<BulkActionBarProps>;
174
-
173
+ declare const BulkActionBar: FC<BulkActionBarProps>;
174
+
175
175
  interface MenuItemProps extends AccessibleProps {
176
176
  icon?: string;
177
177
  label?: string;
@@ -184,8 +184,8 @@ interface MoreMenuProps extends AccessibleProps {
184
184
  /** Optional ID for automation purposes */
185
185
  dataItemid?: string;
186
186
  }
187
- declare const MoreMenu: FC<MoreMenuProps>;
188
-
187
+ declare const MoreMenu: FC<MoreMenuProps>;
188
+
189
189
  interface ButtonMenuProps {
190
190
  disabled?: boolean;
191
191
  label: string;
@@ -201,8 +201,8 @@ interface ButtonMenuProps {
201
201
  /** Optional ID for automation purposes */
202
202
  dataItemid?: string;
203
203
  }
204
- declare const ButtonMenu: FC<ButtonMenuProps>;
205
-
204
+ declare const ButtonMenu: FC<ButtonMenuProps>;
205
+
206
206
  interface CheckboxProps extends AccessibleProps {
207
207
  /** It is used to give label to checkbox. */
208
208
  children?: string;
@@ -220,9 +220,10 @@ interface CheckboxProps extends AccessibleProps {
220
220
  /** Optional ID for automation purposes */
221
221
  dataItemid?: string;
222
222
  isInvalidRedBackground?: boolean;
223
+ isWarningError?: boolean;
223
224
  }
224
- declare const Checkbox: FC<CheckboxProps>;
225
-
225
+ declare const Checkbox: FC<CheckboxProps>;
226
+
226
227
  interface OptionProps$3 {
227
228
  label?: string;
228
229
  value: string | number;
@@ -237,8 +238,8 @@ interface ChecklistProps extends AccessibleProps {
237
238
  /** Optional ID for automation purposes */
238
239
  dataItemid?: string;
239
240
  }
240
- declare const Checklist: FC<ChecklistProps>;
241
-
241
+ declare const Checklist: FC<ChecklistProps>;
242
+
242
243
  interface CopyProps extends AccessibleProps {
243
244
  /** Set the text to be displayed */
244
245
  children: string | React.ReactNode;
@@ -254,8 +255,8 @@ interface CopyProps extends AccessibleProps {
254
255
  /** Optional ID for automation purposes */
255
256
  dataItemid?: string;
256
257
  }
257
- declare const Copy: FC<CopyProps>;
258
-
258
+ declare const Copy: FC<CopyProps>;
259
+
259
260
  interface styleProps$2 {
260
261
  width?: number | string;
261
262
  }
@@ -276,8 +277,8 @@ interface DateProps extends AccessibleProps {
276
277
  dataItemid?: string;
277
278
  locale?: localeProps;
278
279
  }
279
- declare const DatePicker: FC<DateProps>;
280
-
280
+ declare const DatePicker: FC<DateProps>;
281
+
281
282
  interface ButtonProps$1 extends AccessibleProps {
282
283
  disabled?: boolean;
283
284
  children: string;
@@ -313,8 +314,8 @@ interface DrawerProps extends AccessibleProps {
313
314
  dataItemid?: string;
314
315
  bottomNotes?: string | ReactNode;
315
316
  }
316
- declare const Drawer: FC<DrawerProps>;
317
-
317
+ declare const Drawer: FC<DrawerProps>;
318
+
318
319
  interface ActionProps {
319
320
  dataItemid?: string;
320
321
  label: string;
@@ -341,8 +342,8 @@ interface FieldProps extends AccessibleProps {
341
342
  /** Optional for black message with icon */
342
343
  isNewMessageType?: boolean;
343
344
  }
344
- declare const Field: FC<FieldProps>;
345
-
345
+ declare const Field: FC<FieldProps>;
346
+
346
347
  interface FieldGroupProps {
347
348
  /** The label to display above the field group */
348
349
  label: string;
@@ -351,8 +352,8 @@ interface FieldGroupProps {
351
352
  /** Optional ID for automation purposes */
352
353
  dataItemid?: string;
353
354
  }
354
- declare const FieldGroup: FC<FieldGroupProps>;
355
-
355
+ declare const FieldGroup: FC<FieldGroupProps>;
356
+
356
357
  interface FileUploadProps {
357
358
  /** A method to call when files are added/removed. Return the new file or array of files. */
358
359
  onChange?: (files: Array<File>) => void;
@@ -378,8 +379,8 @@ interface ErrorObject {
378
379
  file: File;
379
380
  message: string;
380
381
  }
381
- declare const FileUpload: FC<FileUploadProps>;
382
-
382
+ declare const FileUpload: FC<FileUploadProps>;
383
+
383
384
  interface HeadingProps extends AccessibleProps {
384
385
  /** Toggle between bold and normal font weights */
385
386
  bold?: boolean;
@@ -394,8 +395,8 @@ interface HeadingProps extends AccessibleProps {
394
395
  /** Optional ID for automation purposes */
395
396
  dataItemid?: string;
396
397
  }
397
- declare const Heading: FC<HeadingProps>;
398
-
398
+ declare const Heading: FC<HeadingProps>;
399
+
399
400
  interface InputProps extends AccessibleProps {
400
401
  format?: 'phone' | 'currency' | 'currency_decimal' | 'ssn';
401
402
  height?: string;
@@ -428,9 +429,10 @@ interface InputProps extends AccessibleProps {
428
429
  onPaste?: (e?: any) => void;
429
430
  autoComplete?: React.InputHTMLAttributes<HTMLInputElement>['autoComplete'];
430
431
  isInvalidRedBackground?: boolean;
432
+ isWarningError?: boolean;
431
433
  }
432
- declare const Input: FC<InputProps>;
433
-
434
+ declare const Input: FC<InputProps>;
435
+
434
436
  interface LinkProps extends AccessibleProps {
435
437
  /** Set the text to be displayed */
436
438
  children: string;
@@ -441,22 +443,22 @@ interface LinkProps extends AccessibleProps {
441
443
  /** Optional ID for automation purposes */
442
444
  dataItemid?: string;
443
445
  }
444
- declare const Link: FC<LinkProps>;
445
-
446
+ declare const Link: FC<LinkProps>;
447
+
446
448
  interface LoaderProps {
447
449
  /** Optional ID for automation purposes */
448
450
  dataItemid?: string;
449
451
  }
450
- declare const Loader: FC<LoaderProps>;
451
-
452
+ declare const Loader: FC<LoaderProps>;
453
+
452
454
  interface LogoProps extends AccessibleProps {
453
455
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
454
456
  height?: string;
455
457
  /** Optional ID for automation purposes */
456
458
  dataItemid?: string;
457
459
  }
458
- declare const Logo: FC<LogoProps>;
459
-
460
+ declare const Logo: FC<LogoProps>;
461
+
460
462
  interface StepProps {
461
463
  label: string | ReactNode;
462
464
  complete?: boolean;
@@ -469,8 +471,8 @@ interface ProgressBarProps {
469
471
  /** Optional ID for automation purposes */
470
472
  dataItemid?: string;
471
473
  }
472
- declare const ProgressBar: FC<ProgressBarProps>;
473
-
474
+ declare const ProgressBar: FC<ProgressBarProps>;
475
+
474
476
  interface ButtonProps {
475
477
  disabled?: boolean;
476
478
  children: string;
@@ -504,8 +506,8 @@ interface ModalProps extends AccessibleProps {
504
506
  /** Optional ID for automation purposes */
505
507
  dataItemid?: string;
506
508
  }
507
- declare const Modal: FC<ModalProps>;
508
-
509
+ declare const Modal: FC<ModalProps>;
510
+
509
511
  interface OptionProps$2 {
510
512
  label?: string;
511
513
  value: string | number;
@@ -527,8 +529,8 @@ interface MultiSelectProps extends AccessibleProps {
527
529
  /** Optional ID for automation purposes */
528
530
  dataItemid?: string;
529
531
  }
530
- declare const MultiSelect: FC<MultiSelectProps>;
531
-
532
+ declare const MultiSelect: FC<MultiSelectProps>;
533
+
532
534
  interface TagProps extends AccessibleProps {
533
535
  /** It is used to select tag-type either default or removable. */
534
536
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -541,8 +543,8 @@ interface TagProps extends AccessibleProps {
541
543
  /** Optional ID for automation purposes */
542
544
  dataItemid?: string;
543
545
  }
544
- declare const Tag: FC<TagProps>;
545
-
546
+ declare const Tag: FC<TagProps>;
547
+
546
548
  interface PageHeaderProps {
547
549
  title?: string;
548
550
  breadcrumbs?: Array<{
@@ -574,8 +576,8 @@ interface PageHeaderProps {
574
576
  /** Optional ID for automation purposes */
575
577
  dataItemid?: string;
576
578
  }
577
- declare const PageHeader: FC<PageHeaderProps>;
578
-
579
+ declare const PageHeader: FC<PageHeaderProps>;
580
+
579
581
  interface PaginationProps extends AccessibleProps {
580
582
  currentPage: number;
581
583
  onClick: (e?: any) => void;
@@ -584,8 +586,8 @@ interface PaginationProps extends AccessibleProps {
584
586
  dataItemid?: string;
585
587
  type?: 'button' | 'submit' | 'reset' | null;
586
588
  }
587
- declare const Pagination: FC<PaginationProps>;
588
-
589
+ declare const Pagination: FC<PaginationProps>;
590
+
589
591
  interface RadioProps extends AccessibleProps {
590
592
  /** It is used to give label to radio. */
591
593
  children: string | number;
@@ -604,9 +606,10 @@ interface RadioProps extends AccessibleProps {
604
606
  /** Optional ID for automation purposes */
605
607
  dataItemid?: string;
606
608
  isInvalidRedBackground?: boolean;
609
+ isWarningError?: boolean;
607
610
  }
608
- declare const Radio: FC<RadioProps>;
609
-
611
+ declare const Radio: FC<RadioProps>;
612
+
610
613
  interface OptionProps$1 {
611
614
  label?: string;
612
615
  value: string | number;
@@ -619,8 +622,8 @@ interface RadioListProps extends AccessibleProps {
619
622
  /** Optional ID for automation purposes */
620
623
  dataItemid?: string;
621
624
  }
622
- declare const RadioList: FC<RadioListProps>;
623
-
625
+ declare const RadioList: FC<RadioListProps>;
626
+
624
627
  interface OptionProps {
625
628
  label?: string;
626
629
  value: string | number;
@@ -651,9 +654,10 @@ interface SelectProps extends AccessibleProps {
651
654
  /** Optional ID for automation purposes */
652
655
  dataItemid?: string;
653
656
  isInvalidRedBackground?: boolean;
657
+ isWarningError?: boolean;
654
658
  }
655
- declare const Select: FC<SelectProps>;
656
-
659
+ declare const Select: FC<SelectProps>;
660
+
657
661
  interface RowObject {
658
662
  [key: string]: any;
659
663
  }
@@ -679,8 +683,8 @@ interface TableProps extends AccessibleProps {
679
683
  /** Optional ID for automation purposes */
680
684
  dataItemid?: string;
681
685
  }
682
- declare const Table: FC<TableProps>;
683
-
686
+ declare const Table: FC<TableProps>;
687
+
684
688
  interface TabProps extends AccessibleProps {
685
689
  badgeCount?: number;
686
690
  errorBadge?: boolean;
@@ -693,8 +697,8 @@ interface TabsProps extends AccessibleProps {
693
697
  /** Optional ID for automation purposes */
694
698
  dataItemid?: string;
695
699
  }
696
- declare const Tabs: FC<TabsProps>;
697
-
700
+ declare const Tabs: FC<TabsProps>;
701
+
698
702
  interface ToggleProps extends AccessibleProps {
699
703
  /** It is used to check whether Toggle is checked or not */
700
704
  on: boolean;
@@ -703,8 +707,8 @@ interface ToggleProps extends AccessibleProps {
703
707
  /** Optional ID for automation purposes */
704
708
  dataItemid?: string;
705
709
  }
706
- declare const Toggle: FC<ToggleProps>;
707
-
710
+ declare const Toggle: FC<ToggleProps>;
711
+
708
712
  interface ZeroStateProps extends AccessibleProps {
709
713
  /** The SVG path of the icon to show */
710
714
  icon: string;
@@ -723,8 +727,8 @@ interface ZeroStateProps extends AccessibleProps {
723
727
  /** Optional ID for automation purposes */
724
728
  dataItemid?: string;
725
729
  }
726
- declare const ZeroState: FC<ZeroStateProps>;
727
-
730
+ declare const ZeroState: FC<ZeroStateProps>;
731
+
728
732
  declare const getAgesFromDob: (dob: string) => {
729
733
  calculated_nearest_age: number | null;
730
734
  calculated_current_age: number | null;
@@ -739,8 +743,8 @@ declare const validateEmail: (email: string) => boolean;
739
743
  declare const validatePhone: (phone: string) => boolean;
740
744
  declare const formatAsPhone: (number: string) => string;
741
745
  declare const formatAsSsn: (number: string) => string;
742
- declare const formatAsMask: (number: string, mask: string) => string;
743
-
746
+ declare const formatAsMask: (number: string, mask: string) => string;
747
+
744
748
  declare const Colors: {
745
749
  PRIMARY: {
746
750
  Hex: string;
@@ -792,6 +796,6 @@ declare const EditableTheme: {
792
796
  Hex: string;
793
797
  Rgb: string;
794
798
  };
795
- };
796
-
797
- 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 };
799
+ };
800
+
801
+ 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.59",
3
+ "version": "1.13.61",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",