@hexure/ui 1.13.86 → 1.13.88

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 AppMenuProps extends AccessibleProps {
18
18
  footerTag?: string;
19
19
  defaultWidth?: string;
20
20
  dataItemid?: string;
21
+ onChange?: (isCollapsed: boolean) => void;
21
22
  }
22
23
  declare const AppMenu: FC<AppMenuProps>;
23
24
  export default AppMenu;
@@ -5,6 +5,7 @@ export interface MenuItemProps extends AccessibleProps {
5
5
  label?: string;
6
6
  onClick: (e?: any) => void;
7
7
  disabled?: boolean;
8
+ className?: string;
8
9
  }
9
10
  export interface MoreMenuProps extends AccessibleProps {
10
11
  menuItems: MenuItemProps[];
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;
@@ -157,9 +157,10 @@ interface AppMenuProps extends AccessibleProps {
157
157
  footerTag?: string;
158
158
  defaultWidth?: string;
159
159
  dataItemid?: string;
160
+ onChange?: (isCollapsed: boolean) => void;
160
161
  }
161
- declare const AppMenu: FC<AppMenuProps>;
162
-
162
+ declare const AppMenu: FC<AppMenuProps>;
163
+
163
164
  interface ButtonProps$2 {
164
165
  children: string;
165
166
  onClick: (e?: any) => void;
@@ -175,13 +176,14 @@ interface BulkActionBarProps extends AccessibleProps {
175
176
  /** Optional ID for automation purposes */
176
177
  dataItemid?: string;
177
178
  }
178
- declare const BulkActionBar: FC<BulkActionBarProps>;
179
-
179
+ declare const BulkActionBar: FC<BulkActionBarProps>;
180
+
180
181
  interface MenuItemProps extends AccessibleProps {
181
182
  icon?: string;
182
183
  label?: string;
183
184
  onClick: (e?: any) => void;
184
185
  disabled?: boolean;
186
+ className?: string;
185
187
  }
186
188
  interface MoreMenuProps extends AccessibleProps {
187
189
  menuItems: MenuItemProps[];
@@ -189,8 +191,8 @@ interface MoreMenuProps extends AccessibleProps {
189
191
  /** Optional ID for automation purposes */
190
192
  dataItemid?: string;
191
193
  }
192
- declare const MoreMenu: FC<MoreMenuProps>;
193
-
194
+ declare const MoreMenu: FC<MoreMenuProps>;
195
+
194
196
  interface ButtonMenuProps {
195
197
  disabled?: boolean;
196
198
  label: string;
@@ -206,8 +208,8 @@ interface ButtonMenuProps {
206
208
  /** Optional ID for automation purposes */
207
209
  dataItemid?: string;
208
210
  }
209
- declare const ButtonMenu: FC<ButtonMenuProps>;
210
-
211
+ declare const ButtonMenu: FC<ButtonMenuProps>;
212
+
211
213
  interface CheckboxProps extends AccessibleProps {
212
214
  /** It is used to give label to checkbox. */
213
215
  children?: string;
@@ -227,8 +229,8 @@ interface CheckboxProps extends AccessibleProps {
227
229
  isInvalidRedBackground?: boolean;
228
230
  isWarningError?: boolean;
229
231
  }
230
- declare const Checkbox: FC<CheckboxProps>;
231
-
232
+ declare const Checkbox: FC<CheckboxProps>;
233
+
232
234
  interface OptionProps$3 {
233
235
  label?: string;
234
236
  value: string | number;
@@ -243,8 +245,8 @@ interface ChecklistProps extends AccessibleProps {
243
245
  /** Optional ID for automation purposes */
244
246
  dataItemid?: string;
245
247
  }
246
- declare const Checklist: FC<ChecklistProps>;
247
-
248
+ declare const Checklist: FC<ChecklistProps>;
249
+
248
250
  interface CopyProps extends AccessibleProps {
249
251
  /** Set the text to be displayed */
250
252
  children: string | React.ReactNode;
@@ -260,8 +262,8 @@ interface CopyProps extends AccessibleProps {
260
262
  /** Optional ID for automation purposes */
261
263
  dataItemid?: string;
262
264
  }
263
- declare const Copy: FC<CopyProps>;
264
-
265
+ declare const Copy: FC<CopyProps>;
266
+
265
267
  interface styleProps$1 {
266
268
  width?: number | string;
267
269
  }
@@ -282,8 +284,8 @@ interface DateProps extends AccessibleProps {
282
284
  dataItemid?: string;
283
285
  locale?: localeProps;
284
286
  }
285
- declare const DatePicker: FC<DateProps>;
286
-
287
+ declare const DatePicker: FC<DateProps>;
288
+
287
289
  interface ButtonProps$1 extends AccessibleProps {
288
290
  disabled?: boolean;
289
291
  children: string;
@@ -318,8 +320,8 @@ interface DrawerProps extends AccessibleProps {
318
320
  dataItemid?: string;
319
321
  bottomNotes?: string | ReactNode;
320
322
  }
321
- declare const Drawer: FC<DrawerProps>;
322
-
323
+ declare const Drawer: FC<DrawerProps>;
324
+
323
325
  interface ActionProps {
324
326
  dataItemid?: string;
325
327
  label: string;
@@ -346,8 +348,8 @@ interface FieldProps extends AccessibleProps {
346
348
  /** Optional for black message with icon */
347
349
  isNewMessageType?: boolean;
348
350
  }
349
- declare const Field: FC<FieldProps>;
350
-
351
+ declare const Field: FC<FieldProps>;
352
+
351
353
  interface FieldGroupProps {
352
354
  /** The label to display above the field group */
353
355
  label: string;
@@ -356,8 +358,8 @@ interface FieldGroupProps {
356
358
  /** Optional ID for automation purposes */
357
359
  dataItemid?: string;
358
360
  }
359
- declare const FieldGroup: FC<FieldGroupProps>;
360
-
361
+ declare const FieldGroup: FC<FieldGroupProps>;
362
+
361
363
  interface FileUploadProps {
362
364
  /** A method to call when files are added/removed. Return the new file or array of files. */
363
365
  onChange?: (files: Array<File>) => void;
@@ -383,8 +385,8 @@ interface ErrorObject {
383
385
  file: File;
384
386
  message: string;
385
387
  }
386
- declare const FileUpload: FC<FileUploadProps>;
387
-
388
+ declare const FileUpload: FC<FileUploadProps>;
389
+
388
390
  interface HeadingProps extends AccessibleProps {
389
391
  /** Toggle between bold and normal font weights */
390
392
  bold?: boolean;
@@ -399,8 +401,8 @@ interface HeadingProps extends AccessibleProps {
399
401
  /** Optional ID for automation purposes */
400
402
  dataItemid?: string;
401
403
  }
402
- declare const Heading: FC<HeadingProps>;
403
-
404
+ declare const Heading: FC<HeadingProps>;
405
+
404
406
  interface InputProps extends AccessibleProps {
405
407
  format?: 'phone' | 'currency' | 'currency_decimal' | 'ssn';
406
408
  height?: string;
@@ -435,8 +437,8 @@ interface InputProps extends AccessibleProps {
435
437
  isInvalidRedBackground?: boolean;
436
438
  isWarningError?: boolean;
437
439
  }
438
- declare const Input: FC<InputProps>;
439
-
440
+ declare const Input: FC<InputProps>;
441
+
440
442
  interface LinkProps extends AccessibleProps {
441
443
  /** Set the text to be displayed */
442
444
  children: string;
@@ -447,22 +449,22 @@ interface LinkProps extends AccessibleProps {
447
449
  /** Optional ID for automation purposes */
448
450
  dataItemid?: string;
449
451
  }
450
- declare const Link: FC<LinkProps>;
451
-
452
+ declare const Link: FC<LinkProps>;
453
+
452
454
  interface LoaderProps {
453
455
  /** Optional ID for automation purposes */
454
456
  dataItemid?: string;
455
457
  }
456
- declare const Loader: FC<LoaderProps>;
457
-
458
+ declare const Loader: FC<LoaderProps>;
459
+
458
460
  interface LogoProps extends AccessibleProps {
459
461
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
460
462
  height?: string;
461
463
  /** Optional ID for automation purposes */
462
464
  dataItemid?: string;
463
465
  }
464
- declare const Logo: FC<LogoProps>;
465
-
466
+ declare const Logo: FC<LogoProps>;
467
+
466
468
  interface StepProps {
467
469
  label: string | ReactNode;
468
470
  complete?: boolean;
@@ -479,8 +481,8 @@ interface ProgressBarProps {
479
481
  /** Optional ID for automation purposes */
480
482
  dataItemid?: string;
481
483
  }
482
- declare const ProgressBar: FC<ProgressBarProps>;
483
-
484
+ declare const ProgressBar: FC<ProgressBarProps>;
485
+
484
486
  interface ButtonProps {
485
487
  disabled?: boolean;
486
488
  children: string;
@@ -515,8 +517,8 @@ interface ModalProps extends AccessibleProps {
515
517
  /** Optional ID for automation purposes */
516
518
  dataItemid?: string;
517
519
  }
518
- declare const Modal: FC<ModalProps>;
519
-
520
+ declare const Modal: FC<ModalProps>;
521
+
520
522
  interface OptionProps$2 {
521
523
  label?: string;
522
524
  value: string | number;
@@ -538,8 +540,8 @@ interface MultiSelectProps extends AccessibleProps {
538
540
  /** Optional ID for automation purposes */
539
541
  dataItemid?: string;
540
542
  }
541
- declare const MultiSelect: FC<MultiSelectProps>;
542
-
543
+ declare const MultiSelect: FC<MultiSelectProps>;
544
+
543
545
  interface TagProps extends AccessibleProps {
544
546
  /** It is used to select tag-type either default or removable. */
545
547
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -553,8 +555,8 @@ interface TagProps extends AccessibleProps {
553
555
  dataItemid?: string;
554
556
  rotate?: boolean;
555
557
  }
556
- declare const Tag: FC<TagProps>;
557
-
558
+ declare const Tag: FC<TagProps>;
559
+
558
560
  interface PageHeaderProps {
559
561
  title?: string;
560
562
  breadcrumbs?: Array<{
@@ -586,8 +588,8 @@ interface PageHeaderProps {
586
588
  /** Optional ID for automation purposes */
587
589
  dataItemid?: string;
588
590
  }
589
- declare const PageHeader: FC<PageHeaderProps>;
590
-
591
+ declare const PageHeader: FC<PageHeaderProps>;
592
+
591
593
  interface PaginationProps extends AccessibleProps {
592
594
  currentPage: number;
593
595
  onClick: (e?: any) => void;
@@ -596,8 +598,8 @@ interface PaginationProps extends AccessibleProps {
596
598
  dataItemid?: string;
597
599
  type?: 'button' | 'submit' | 'reset' | null;
598
600
  }
599
- declare const Pagination: FC<PaginationProps>;
600
-
601
+ declare const Pagination: FC<PaginationProps>;
602
+
601
603
  interface RadioProps extends AccessibleProps {
602
604
  /** It is used to give label to radio. */
603
605
  children: string | number;
@@ -618,8 +620,8 @@ interface RadioProps extends AccessibleProps {
618
620
  isInvalidRedBackground?: boolean;
619
621
  isWarningError?: boolean;
620
622
  }
621
- declare const Radio: FC<RadioProps>;
622
-
623
+ declare const Radio: FC<RadioProps>;
624
+
623
625
  interface OptionProps$1 {
624
626
  label?: string;
625
627
  value: string | number;
@@ -632,8 +634,8 @@ interface RadioListProps extends AccessibleProps {
632
634
  /** Optional ID for automation purposes */
633
635
  dataItemid?: string;
634
636
  }
635
- declare const RadioList: FC<RadioListProps>;
636
-
637
+ declare const RadioList: FC<RadioListProps>;
638
+
637
639
  interface OptionProps {
638
640
  label?: string;
639
641
  value: string | number;
@@ -661,8 +663,8 @@ interface SelectProps extends AccessibleProps {
661
663
  isInvalidRedBackground?: boolean;
662
664
  isWarningError?: boolean;
663
665
  }
664
- declare const Select: FC<SelectProps>;
665
-
666
+ declare const Select: FC<SelectProps>;
667
+
666
668
  interface RowObject {
667
669
  [key: string]: any;
668
670
  }
@@ -688,8 +690,8 @@ interface TableProps extends AccessibleProps {
688
690
  /** Optional ID for automation purposes */
689
691
  dataItemid?: string;
690
692
  }
691
- declare const Table: FC<TableProps>;
692
-
693
+ declare const Table: FC<TableProps>;
694
+
693
695
  interface TabProps extends AccessibleProps {
694
696
  badgeCount?: number;
695
697
  errorBadge?: boolean;
@@ -702,8 +704,8 @@ interface TabsProps extends AccessibleProps {
702
704
  /** Optional ID for automation purposes */
703
705
  dataItemid?: string;
704
706
  }
705
- declare const Tabs: FC<TabsProps>;
706
-
707
+ declare const Tabs: FC<TabsProps>;
708
+
707
709
  interface ToggleProps extends AccessibleProps {
708
710
  /** It is used to check whether Toggle is checked or not */
709
711
  on: boolean;
@@ -712,8 +714,8 @@ interface ToggleProps extends AccessibleProps {
712
714
  /** Optional ID for automation purposes */
713
715
  dataItemid?: string;
714
716
  }
715
- declare const Toggle: FC<ToggleProps>;
716
-
717
+ declare const Toggle: FC<ToggleProps>;
718
+
717
719
  interface ZeroStateProps extends AccessibleProps {
718
720
  /** The SVG path of the icon to show */
719
721
  icon: string;
@@ -732,8 +734,8 @@ interface ZeroStateProps extends AccessibleProps {
732
734
  /** Optional ID for automation purposes */
733
735
  dataItemid?: string;
734
736
  }
735
- declare const ZeroState: FC<ZeroStateProps>;
736
-
737
+ declare const ZeroState: FC<ZeroStateProps>;
738
+
737
739
  declare const getAgesFromDob: (dob: string) => {
738
740
  calculated_nearest_age: number | null;
739
741
  calculated_current_age: number | null;
@@ -748,8 +750,8 @@ declare const validateEmail: (email: string) => boolean;
748
750
  declare const validatePhone: (phone: string) => boolean;
749
751
  declare const formatAsPhone: (number: string) => string;
750
752
  declare const formatAsSsn: (number: string) => string;
751
- declare const formatAsMask: (number: string, mask: string) => string;
752
-
753
+ declare const formatAsMask: (number: string, mask: string) => string;
754
+
753
755
  declare const Colors: {
754
756
  PRIMARY: {
755
757
  Hex: string;
@@ -801,6 +803,6 @@ declare const EditableTheme: {
801
803
  Hex: string;
802
804
  Rgb: string;
803
805
  };
804
- };
805
-
806
- 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 };
806
+ };
807
+
808
+ 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.86",
3
+ "version": "1.13.88",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",