@hexure/ui 1.13.3 → 1.13.5

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,5 +1,5 @@
1
- import React, { FC, ReactNode } from 'react';
2
-
1
+ import React, { FC, ReactNode } from 'react';
2
+
3
3
  interface AccessibleProps {
4
4
  /** Set the css id for the main wrapping html element */
5
5
  id?: string;
@@ -13,8 +13,8 @@ interface AccessibleProps {
13
13
  tabIndex?: number;
14
14
  /** Set a label for an interactive element. See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label */
15
15
  'aria-label'?: string;
16
- }
17
-
16
+ }
17
+
18
18
  interface AccordionProps extends AccessibleProps {
19
19
  title?: string;
20
20
  /** Define the content to be displayed */
@@ -24,8 +24,8 @@ interface AccordionProps extends AccessibleProps {
24
24
  /** Method to call when the header is clicked */
25
25
  onClick: (e?: any) => void;
26
26
  }
27
- declare const Accordion: FC<AccordionProps>;
28
-
27
+ declare const Accordion: FC<AccordionProps>;
28
+
29
29
  interface ButtonProps$4 {
30
30
  children: string;
31
31
  format?: string;
@@ -50,8 +50,8 @@ interface ActionDialogProps extends AccessibleProps {
50
50
  interface CustomStyle {
51
51
  [key: string]: string | number;
52
52
  }
53
- declare const ActionDialog: FC<ActionDialogProps>;
54
-
53
+ declare const ActionDialog: FC<ActionDialogProps>;
54
+
55
55
  interface ActionProps$1 extends AccessibleProps {
56
56
  label: string;
57
57
  onClick: (e?: any) => void;
@@ -67,8 +67,8 @@ interface AlertProps extends AccessibleProps {
67
67
  /** Show a condensed, smaller version of the alert. The title and action props will be ignore if this is set to true */
68
68
  small?: boolean;
69
69
  }
70
- declare const Alert: FC<AlertProps>;
71
-
70
+ declare const Alert: FC<AlertProps>;
71
+
72
72
  interface ButtonProps$3 extends AccessibleProps {
73
73
  /** Display a number badge on the right side of the button */
74
74
  badge?: number;
@@ -91,14 +91,14 @@ interface ButtonProps$3 extends AccessibleProps {
91
91
  /** Define which button format to display. By default the Primary button will be used. */
92
92
  format?: 'primary' | 'secondary' | 'red' | 'green' | string;
93
93
  }
94
- declare const Button: FC<ButtonProps$3>;
95
-
94
+ declare const Button: FC<ButtonProps$3>;
95
+
96
96
  interface AppHeaderProps {
97
97
  logoUrl?: string;
98
98
  buttons: ButtonProps$3[];
99
99
  }
100
- declare const AppHeader: FC<AppHeaderProps>;
101
-
100
+ declare const AppHeader: FC<AppHeaderProps>;
101
+
102
102
  interface MenuItemType extends AccessibleProps {
103
103
  icon: string;
104
104
  label: string;
@@ -116,8 +116,8 @@ interface AppMenuProps extends AccessibleProps {
116
116
  footerTag?: string;
117
117
  defaultWidth?: string;
118
118
  }
119
- declare const AppMenu: FC<AppMenuProps>;
120
-
119
+ declare const AppMenu: FC<AppMenuProps>;
120
+
121
121
  interface ButtonProps$2 {
122
122
  children: string;
123
123
  onClick: (e?: any) => void;
@@ -130,8 +130,8 @@ interface BulkActionBarProps extends AccessibleProps {
130
130
  onClear: (e?: any) => void;
131
131
  selectedCount?: number;
132
132
  }
133
- declare const BulkActionBar: FC<BulkActionBarProps>;
134
-
133
+ declare const BulkActionBar: FC<BulkActionBarProps>;
134
+
135
135
  interface MenuItemProps extends AccessibleProps {
136
136
  icon?: string;
137
137
  label?: string;
@@ -141,8 +141,8 @@ interface MoreMenuProps extends AccessibleProps {
141
141
  menuItems: MenuItemProps[];
142
142
  maxHeight?: string | number;
143
143
  }
144
- declare const MoreMenu: FC<MoreMenuProps>;
145
-
144
+ declare const MoreMenu: FC<MoreMenuProps>;
145
+
146
146
  interface ButtonMenuProps {
147
147
  disabled?: boolean;
148
148
  label: string;
@@ -150,13 +150,13 @@ interface ButtonMenuProps {
150
150
  menuItems: Array<MenuItemProps>;
151
151
  menuWidth?: string;
152
152
  maxHeight?: string;
153
- position?: 'left' | 'right' | 'top' | 'bottom';
153
+ position?: 'left' | 'right' | 'top' | 'bottom' | 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight';
154
154
  format?: 'primary' | 'secondary';
155
155
  enableHover?: boolean;
156
156
  enableClick?: boolean;
157
157
  }
158
- declare const ButtonMenu: FC<ButtonMenuProps>;
159
-
158
+ declare const ButtonMenu: FC<ButtonMenuProps>;
159
+
160
160
  interface TooltipProps {
161
161
  /** It is used to give label to tag. */
162
162
  children: any;
@@ -167,8 +167,8 @@ interface TooltipProps {
167
167
  /** The element to display that triggers the tooltip content */
168
168
  trigger?: any;
169
169
  }
170
- declare const Tooltip: FC<TooltipProps>;
171
-
170
+ declare const Tooltip: FC<TooltipProps>;
171
+
172
172
  interface CheckboxProps extends AccessibleProps {
173
173
  /** It is used to give label to checkbox. */
174
174
  children?: string;
@@ -184,8 +184,8 @@ interface CheckboxProps extends AccessibleProps {
184
184
  /** Display a tooltip next to the label */
185
185
  tooltip?: TooltipProps;
186
186
  }
187
- declare const Checkbox: FC<CheckboxProps>;
188
-
187
+ declare const Checkbox: FC<CheckboxProps>;
188
+
189
189
  interface OptionProps$3 {
190
190
  label?: string;
191
191
  value: string | number;
@@ -198,8 +198,8 @@ interface ChecklistProps extends AccessibleProps {
198
198
  selected: (string | number)[];
199
199
  showSelectAll?: boolean;
200
200
  }
201
- declare const Checklist: FC<ChecklistProps>;
202
-
201
+ declare const Checklist: FC<ChecklistProps>;
202
+
203
203
  interface CopyProps extends AccessibleProps {
204
204
  /** Set the text to be displayed */
205
205
  children: string | React.ReactNode;
@@ -213,8 +213,8 @@ interface CopyProps extends AccessibleProps {
213
213
  /** Set the color of the copy based on the design system color pallette */
214
214
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'GRAY' | 'MEDIUM_GRAY' | 'LIGHT_GRAY';
215
215
  }
216
- declare const Copy: FC<CopyProps>;
217
-
216
+ declare const Copy: FC<CopyProps>;
217
+
218
218
  interface styleProps$3 {
219
219
  width?: number | string;
220
220
  }
@@ -234,8 +234,8 @@ interface DateProps extends AccessibleProps {
234
234
  /** Override default styles */
235
235
  style?: styleProps$3;
236
236
  }
237
- declare const DatePicker: FC<DateProps>;
238
-
237
+ declare const DatePicker: FC<DateProps>;
238
+
239
239
  interface ButtonProps$1 extends AccessibleProps {
240
240
  disabled?: boolean;
241
241
  children: string;
@@ -264,8 +264,8 @@ interface DrawerProps extends AccessibleProps {
264
264
  /** It is used to close drawer. */
265
265
  onClose: (e?: any) => void;
266
266
  }
267
- declare const Drawer: FC<DrawerProps>;
268
-
267
+ declare const Drawer: FC<DrawerProps>;
268
+
269
269
  interface ActionProps {
270
270
  id?: string;
271
271
  label: string;
@@ -288,16 +288,16 @@ interface FieldProps extends AccessibleProps {
288
288
  /** Display a tooltip next to the label */
289
289
  tooltip?: TooltipProps;
290
290
  }
291
- declare const Field: FC<FieldProps>;
292
-
291
+ declare const Field: FC<FieldProps>;
292
+
293
293
  interface FieldGroupProps {
294
294
  /** The label to display above the field group */
295
295
  label: string;
296
296
  /** The content of the field group...usually a set of Field components */
297
297
  children: any;
298
298
  }
299
- declare const FieldGroup: FC<FieldGroupProps>;
300
-
299
+ declare const FieldGroup: FC<FieldGroupProps>;
300
+
301
301
  interface FileUploadProps {
302
302
  /** A method to call when files are added/removed. Return the new file or array of files. */
303
303
  onChange?: (files: Array<File>) => void;
@@ -320,8 +320,8 @@ interface ErrorObject {
320
320
  file: File;
321
321
  message: string;
322
322
  }
323
- declare const FileUpload: FC<FileUploadProps>;
324
-
323
+ declare const FileUpload: FC<FileUploadProps>;
324
+
325
325
  interface HeadingProps extends AccessibleProps {
326
326
  /** Toggle between bold and normal font weights */
327
327
  bold?: boolean;
@@ -334,8 +334,8 @@ interface HeadingProps extends AccessibleProps {
334
334
  /** Set the type of heading to display: primary, secondary, tertiary */
335
335
  type?: 'primary' | 'secondary' | 'tertiary';
336
336
  }
337
- declare const Heading: FC<HeadingProps>;
338
-
337
+ declare const Heading: FC<HeadingProps>;
338
+
339
339
  interface styleProps$2 {
340
340
  width?: number | string;
341
341
  }
@@ -383,8 +383,8 @@ interface InputProps extends AccessibleProps {
383
383
  /** Display a loading indicator to the far right of the input */
384
384
  loading?: boolean;
385
385
  }
386
- declare const Input: FC<InputProps>;
387
-
386
+ declare const Input: FC<InputProps>;
387
+
388
388
  interface LinkProps extends AccessibleProps {
389
389
  /** Set the text to be displayed */
390
390
  children: string;
@@ -393,16 +393,16 @@ interface LinkProps extends AccessibleProps {
393
393
  /** A method to execute when this component is clicked */
394
394
  onClick?: (e?: any) => void;
395
395
  }
396
- declare const Link: FC<LinkProps>;
397
-
398
- declare const Loader: FC;
399
-
396
+ declare const Link: FC<LinkProps>;
397
+
398
+ declare const Loader: FC;
399
+
400
400
  interface LogoProps extends AccessibleProps {
401
401
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
402
402
  height?: string;
403
403
  }
404
- declare const Logo: FC<LogoProps>;
405
-
404
+ declare const Logo: FC<LogoProps>;
405
+
406
406
  interface StepProps {
407
407
  label: string;
408
408
  complete?: boolean;
@@ -413,8 +413,8 @@ interface ProgressBarProps {
413
413
  steps: StepProps[];
414
414
  showStepLine?: boolean;
415
415
  }
416
- declare const ProgressBar: FC<ProgressBarProps>;
417
-
416
+ declare const ProgressBar: FC<ProgressBarProps>;
417
+
418
418
  interface ButtonProps {
419
419
  disabled?: boolean;
420
420
  children: string;
@@ -444,8 +444,8 @@ interface ModalProps extends AccessibleProps {
444
444
  /** Display steps at the top of the modal */
445
445
  steps?: StepProps[];
446
446
  }
447
- declare const Modal: FC<ModalProps>;
448
-
447
+ declare const Modal: FC<ModalProps>;
448
+
449
449
  interface OptionProps$2 {
450
450
  label?: string;
451
451
  value: string | number;
@@ -465,8 +465,8 @@ interface MultiSelectProps extends AccessibleProps {
465
465
  style?: styleProps$1;
466
466
  searchable?: boolean;
467
467
  }
468
- declare const MultiSelect: FC<MultiSelectProps>;
469
-
468
+ declare const MultiSelect: FC<MultiSelectProps>;
469
+
470
470
  interface TagProps extends AccessibleProps {
471
471
  /** It is used to select tag-type either default or removable. */
472
472
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -477,8 +477,8 @@ interface TagProps extends AccessibleProps {
477
477
  /** It is callback function called when user wants to close the tag. */
478
478
  removable?: boolean;
479
479
  }
480
- declare const Tag: FC<TagProps>;
481
-
480
+ declare const Tag: FC<TagProps>;
481
+
482
482
  interface PageHeaderProps {
483
483
  title?: string;
484
484
  breadcrumbs?: Array<{
@@ -502,15 +502,15 @@ interface PageHeaderProps {
502
502
  };
503
503
  tag?: TagProps;
504
504
  }
505
- declare const PageHeader: FC<PageHeaderProps>;
506
-
505
+ declare const PageHeader: FC<PageHeaderProps>;
506
+
507
507
  interface PaginationProps extends AccessibleProps {
508
508
  currentPage: number;
509
509
  onClick: (e?: any) => void;
510
510
  pageCount: number;
511
511
  }
512
- declare const Pagination: FC<PaginationProps>;
513
-
512
+ declare const Pagination: FC<PaginationProps>;
513
+
514
514
  interface RadioProps extends AccessibleProps {
515
515
  /** It is used to give label to radio. */
516
516
  children: string | number;
@@ -527,8 +527,8 @@ interface RadioProps extends AccessibleProps {
527
527
  /** Display a tooltip next to the label */
528
528
  tooltip?: TooltipProps;
529
529
  }
530
- declare const Radio: FC<RadioProps>;
531
-
530
+ declare const Radio: FC<RadioProps>;
531
+
532
532
  interface OptionProps$1 {
533
533
  label?: string;
534
534
  value: string | number;
@@ -539,8 +539,8 @@ interface RadioListProps extends AccessibleProps {
539
539
  options: OptionProps$1[];
540
540
  value: string;
541
541
  }
542
- declare const RadioList: FC<RadioListProps>;
543
-
542
+ declare const RadioList: FC<RadioListProps>;
543
+
544
544
  interface OptionProps {
545
545
  /** It is used to give label to option. */
546
546
  label?: string;
@@ -575,8 +575,8 @@ interface SelectProps extends AccessibleProps {
575
575
  onChange: (e: any) => void;
576
576
  onSearch?: (searchTerm: string) => void;
577
577
  }
578
- declare const Select: FC<SelectProps>;
579
-
578
+ declare const Select: FC<SelectProps>;
579
+
580
580
  interface RowObject {
581
581
  [key: string]: any;
582
582
  }
@@ -599,8 +599,8 @@ interface TableProps extends AccessibleProps {
599
599
  onSortChange?: (e?: any) => void;
600
600
  tableLayout?: string;
601
601
  }
602
- declare const Table: FC<TableProps>;
603
-
602
+ declare const Table: FC<TableProps>;
603
+
604
604
  interface TabProps extends AccessibleProps {
605
605
  badgeCount?: number;
606
606
  errorBadge?: boolean;
@@ -611,16 +611,16 @@ interface TabProps extends AccessibleProps {
611
611
  interface TabsProps extends AccessibleProps {
612
612
  tabs: TabProps[];
613
613
  }
614
- declare const Tabs: FC<TabsProps>;
615
-
614
+ declare const Tabs: FC<TabsProps>;
615
+
616
616
  interface ToggleProps extends AccessibleProps {
617
617
  /** It is used to check whether Toggle is checked or not */
618
618
  on: boolean;
619
619
  /** Pass a callback then fires when user change value */
620
620
  onClick: (e?: any) => void;
621
621
  }
622
- declare const Toggle: FC<ToggleProps>;
623
-
622
+ declare const Toggle: FC<ToggleProps>;
623
+
624
624
  interface ZeroStateProps extends AccessibleProps {
625
625
  /** The SVG path of the icon to show */
626
626
  icon: string;
@@ -635,8 +635,8 @@ interface ZeroStateProps extends AccessibleProps {
635
635
  onClick: (e?: any) => void;
636
636
  };
637
637
  }
638
- declare const ZeroState: FC<ZeroStateProps>;
639
-
638
+ declare const ZeroState: FC<ZeroStateProps>;
639
+
640
640
  declare const getAgesFromDob: (dob: string) => {
641
641
  calculated_nearest_age: number | null;
642
642
  calculated_current_age: number | null;
@@ -650,8 +650,8 @@ declare const getYears: () => {
650
650
  declare const validateEmail: (email: string) => boolean;
651
651
  declare const validatePhone: (phone: string) => boolean;
652
652
  declare const formatAsPhone: (number: string) => string;
653
- declare const formatAsSsn: (number: string) => string;
654
-
653
+ declare const formatAsSsn: (number: string) => string;
654
+
655
655
  declare const Colors: {
656
656
  PRIMARY: {
657
657
  Hex: string;
@@ -703,6 +703,6 @@ declare const EditableTheme: {
703
703
  Hex: string;
704
704
  Rgb: string;
705
705
  };
706
- };
707
-
708
- 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, formatAsPhone, formatAsSsn, getAgesFromDob, getDaysForMonth, getYears, validateEmail, validatePhone };
706
+ };
707
+
708
+ 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, 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.3",
3
+ "version": "1.13.5",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",