@hexure/ui 1.13.21 → 1.13.23

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,20 @@ 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
+ interface TooltipProps {
73
+ /** It is used to give label to tag. */
74
+ children: any;
75
+ /** It is callback function called when user wants to close the tag. */
76
+ position?: 'right-top' | 'right-bottom' | 'right-center' | 'left-top' | 'left-bottom' | 'left-center';
77
+ /** Override the default content width of 240px */
78
+ width?: string;
79
+ /** The element to display that triggers the tooltip content */
80
+ trigger?: any;
81
+ }
82
+ declare const Tooltip: FC<TooltipProps>;
83
+
72
84
  interface ButtonProps$3 extends AccessibleProps {
73
85
  /** Display a number badge on the right side of the button */
74
86
  badge?: number;
@@ -90,15 +102,17 @@ interface ButtonProps$3 extends AccessibleProps {
90
102
  small?: boolean;
91
103
  /** Define which button format to display. By default the Primary button will be used. */
92
104
  format?: 'primary' | 'secondary' | 'red' | 'green' | string;
105
+ /** Tooltip Props */
106
+ toolTip?: TooltipProps;
93
107
  }
94
- declare const Button: FC<ButtonProps$3>;
95
-
108
+ declare const Button: FC<ButtonProps$3>;
109
+
96
110
  interface AppHeaderProps {
97
111
  logoUrl?: string;
98
112
  buttons: ButtonProps$3[];
99
113
  }
100
- declare const AppHeader: FC<AppHeaderProps>;
101
-
114
+ declare const AppHeader: FC<AppHeaderProps>;
115
+
102
116
  interface MenuItemType extends AccessibleProps {
103
117
  icon: string;
104
118
  label: string;
@@ -116,8 +130,8 @@ interface AppMenuProps extends AccessibleProps {
116
130
  footerTag?: string;
117
131
  defaultWidth?: string;
118
132
  }
119
- declare const AppMenu: FC<AppMenuProps>;
120
-
133
+ declare const AppMenu: FC<AppMenuProps>;
134
+
121
135
  interface ButtonProps$2 {
122
136
  children: string;
123
137
  onClick: (e?: any) => void;
@@ -130,8 +144,8 @@ interface BulkActionBarProps extends AccessibleProps {
130
144
  onClear: (e?: any) => void;
131
145
  selectedCount?: number;
132
146
  }
133
- declare const BulkActionBar: FC<BulkActionBarProps>;
134
-
147
+ declare const BulkActionBar: FC<BulkActionBarProps>;
148
+
135
149
  interface MenuItemProps extends AccessibleProps {
136
150
  icon?: string;
137
151
  label?: string;
@@ -142,8 +156,8 @@ interface MoreMenuProps extends AccessibleProps {
142
156
  menuItems: MenuItemProps[];
143
157
  maxHeight?: string | number;
144
158
  }
145
- declare const MoreMenu: FC<MoreMenuProps>;
146
-
159
+ declare const MoreMenu: FC<MoreMenuProps>;
160
+
147
161
  interface ButtonMenuProps {
148
162
  disabled?: boolean;
149
163
  label: string;
@@ -157,20 +171,8 @@ interface ButtonMenuProps {
157
171
  enableClick?: boolean;
158
172
  show?: boolean;
159
173
  }
160
- declare const ButtonMenu: FC<ButtonMenuProps>;
161
-
162
- interface TooltipProps {
163
- /** It is used to give label to tag. */
164
- children: any;
165
- /** It is callback function called when user wants to close the tag. */
166
- position?: 'right-top' | 'right-bottom' | 'right-center' | 'left-top' | 'left-bottom' | 'left-center';
167
- /** Override the default content width of 240px */
168
- width?: string;
169
- /** The element to display that triggers the tooltip content */
170
- trigger?: any;
171
- }
172
- declare const Tooltip: FC<TooltipProps>;
173
-
174
+ declare const ButtonMenu: FC<ButtonMenuProps>;
175
+
174
176
  interface CheckboxProps extends AccessibleProps {
175
177
  /** It is used to give label to checkbox. */
176
178
  children?: string;
@@ -186,8 +188,8 @@ interface CheckboxProps extends AccessibleProps {
186
188
  /** Display a tooltip next to the label */
187
189
  tooltip?: TooltipProps;
188
190
  }
189
- declare const Checkbox: FC<CheckboxProps>;
190
-
191
+ declare const Checkbox: FC<CheckboxProps>;
192
+
191
193
  interface OptionProps$3 {
192
194
  label?: string;
193
195
  value: string | number;
@@ -200,8 +202,8 @@ interface ChecklistProps extends AccessibleProps {
200
202
  selected: (string | number)[];
201
203
  showSelectAll?: boolean;
202
204
  }
203
- declare const Checklist: FC<ChecklistProps>;
204
-
205
+ declare const Checklist: FC<ChecklistProps>;
206
+
205
207
  interface CopyProps extends AccessibleProps {
206
208
  /** Set the text to be displayed */
207
209
  children: string | React.ReactNode;
@@ -215,8 +217,8 @@ interface CopyProps extends AccessibleProps {
215
217
  /** Set the color of the copy based on the design system color pallette */
216
218
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'GRAY' | 'MEDIUM_GRAY' | 'LIGHT_GRAY';
217
219
  }
218
- declare const Copy: FC<CopyProps>;
219
-
220
+ declare const Copy: FC<CopyProps>;
221
+
220
222
  interface styleProps$3 {
221
223
  width?: number | string;
222
224
  }
@@ -229,8 +231,8 @@ interface DateProps extends AccessibleProps {
229
231
  onChange?: (e: any) => void;
230
232
  style?: styleProps$3;
231
233
  }
232
- declare const DatePicker: FC<DateProps>;
233
-
234
+ declare const DatePicker: FC<DateProps>;
235
+
234
236
  interface ButtonProps$1 extends AccessibleProps {
235
237
  disabled?: boolean;
236
238
  children: string;
@@ -259,8 +261,8 @@ interface DrawerProps extends AccessibleProps {
259
261
  /** It is used to close drawer. */
260
262
  onClose: (e?: any) => void;
261
263
  }
262
- declare const Drawer: FC<DrawerProps>;
263
-
264
+ declare const Drawer: FC<DrawerProps>;
265
+
264
266
  interface ActionProps {
265
267
  id?: string;
266
268
  label: string;
@@ -283,16 +285,16 @@ interface FieldProps extends AccessibleProps {
283
285
  /** Display a tooltip next to the label */
284
286
  tooltip?: TooltipProps;
285
287
  }
286
- declare const Field: FC<FieldProps>;
287
-
288
+ declare const Field: FC<FieldProps>;
289
+
288
290
  interface FieldGroupProps {
289
291
  /** The label to display above the field group */
290
292
  label: string;
291
293
  /** The content of the field group...usually a set of Field components */
292
294
  children: any;
293
295
  }
294
- declare const FieldGroup: FC<FieldGroupProps>;
295
-
296
+ declare const FieldGroup: FC<FieldGroupProps>;
297
+
296
298
  interface FileUploadProps {
297
299
  /** A method to call when files are added/removed. Return the new file or array of files. */
298
300
  onChange?: (files: Array<File>) => void;
@@ -315,8 +317,8 @@ interface ErrorObject {
315
317
  file: File;
316
318
  message: string;
317
319
  }
318
- declare const FileUpload: FC<FileUploadProps>;
319
-
320
+ declare const FileUpload: FC<FileUploadProps>;
321
+
320
322
  interface HeadingProps extends AccessibleProps {
321
323
  /** Toggle between bold and normal font weights */
322
324
  bold?: boolean;
@@ -329,8 +331,8 @@ interface HeadingProps extends AccessibleProps {
329
331
  /** Set the type of heading to display: primary, secondary, tertiary */
330
332
  type?: 'primary' | 'secondary' | 'tertiary';
331
333
  }
332
- declare const Heading: FC<HeadingProps>;
333
-
334
+ declare const Heading: FC<HeadingProps>;
335
+
334
336
  interface styleProps$2 {
335
337
  width?: number | string;
336
338
  }
@@ -357,8 +359,8 @@ interface InputProps extends AccessibleProps {
357
359
  value?: string;
358
360
  suggestedValues?: string[];
359
361
  }
360
- declare const Input: FC<InputProps>;
361
-
362
+ declare const Input: FC<InputProps>;
363
+
362
364
  interface LinkProps extends AccessibleProps {
363
365
  /** Set the text to be displayed */
364
366
  children: string;
@@ -367,16 +369,16 @@ interface LinkProps extends AccessibleProps {
367
369
  /** A method to execute when this component is clicked */
368
370
  onClick?: (e?: any) => void;
369
371
  }
370
- declare const Link: FC<LinkProps>;
371
-
372
- declare const Loader: FC;
373
-
372
+ declare const Link: FC<LinkProps>;
373
+
374
+ declare const Loader: FC;
375
+
374
376
  interface LogoProps extends AccessibleProps {
375
377
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
376
378
  height?: string;
377
379
  }
378
- declare const Logo: FC<LogoProps>;
379
-
380
+ declare const Logo: FC<LogoProps>;
381
+
380
382
  interface StepProps {
381
383
  label: string;
382
384
  complete?: boolean;
@@ -387,8 +389,8 @@ interface ProgressBarProps {
387
389
  steps: StepProps[];
388
390
  showStepLine?: boolean;
389
391
  }
390
- declare const ProgressBar: FC<ProgressBarProps>;
391
-
392
+ declare const ProgressBar: FC<ProgressBarProps>;
393
+
392
394
  interface ButtonProps {
393
395
  disabled?: boolean;
394
396
  children: string;
@@ -420,8 +422,8 @@ interface ModalProps extends AccessibleProps {
420
422
  /** Display steps at the top of the modal */
421
423
  steps?: StepProps[];
422
424
  }
423
- declare const Modal: FC<ModalProps>;
424
-
425
+ declare const Modal: FC<ModalProps>;
426
+
425
427
  interface OptionProps$2 {
426
428
  label?: string;
427
429
  value: string | number;
@@ -441,8 +443,8 @@ interface MultiSelectProps extends AccessibleProps {
441
443
  style?: styleProps$1;
442
444
  searchable?: boolean;
443
445
  }
444
- declare const MultiSelect: FC<MultiSelectProps>;
445
-
446
+ declare const MultiSelect: FC<MultiSelectProps>;
447
+
446
448
  interface TagProps extends AccessibleProps {
447
449
  /** It is used to select tag-type either default or removable. */
448
450
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -453,8 +455,8 @@ interface TagProps extends AccessibleProps {
453
455
  /** It is callback function called when user wants to close the tag. */
454
456
  removable?: boolean;
455
457
  }
456
- declare const Tag: FC<TagProps>;
457
-
458
+ declare const Tag: FC<TagProps>;
459
+
458
460
  interface PageHeaderProps {
459
461
  title?: string;
460
462
  breadcrumbs?: Array<{
@@ -481,15 +483,15 @@ interface PageHeaderProps {
481
483
  };
482
484
  tag?: TagProps;
483
485
  }
484
- declare const PageHeader: FC<PageHeaderProps>;
485
-
486
+ declare const PageHeader: FC<PageHeaderProps>;
487
+
486
488
  interface PaginationProps extends AccessibleProps {
487
489
  currentPage: number;
488
490
  onClick: (e?: any) => void;
489
491
  pageCount: number;
490
492
  }
491
- declare const Pagination: FC<PaginationProps>;
492
-
493
+ declare const Pagination: FC<PaginationProps>;
494
+
493
495
  interface RadioProps extends AccessibleProps {
494
496
  /** It is used to give label to radio. */
495
497
  children: string | number;
@@ -506,8 +508,8 @@ interface RadioProps extends AccessibleProps {
506
508
  /** Display a tooltip next to the label */
507
509
  tooltip?: TooltipProps;
508
510
  }
509
- declare const Radio: FC<RadioProps>;
510
-
511
+ declare const Radio: FC<RadioProps>;
512
+
511
513
  interface OptionProps$1 {
512
514
  label?: string;
513
515
  value: string | number;
@@ -518,8 +520,8 @@ interface RadioListProps extends AccessibleProps {
518
520
  options: OptionProps$1[];
519
521
  value: string;
520
522
  }
521
- declare const RadioList: FC<RadioListProps>;
522
-
523
+ declare const RadioList: FC<RadioListProps>;
524
+
523
525
  interface OptionProps {
524
526
  label?: string;
525
527
  value: string | number;
@@ -546,8 +548,8 @@ interface SelectProps extends AccessibleProps {
546
548
  onChange?: (e: any) => void;
547
549
  onSearch?: (searchTerm: string) => void;
548
550
  }
549
- declare const Select: FC<SelectProps>;
550
-
551
+ declare const Select: FC<SelectProps>;
552
+
551
553
  interface RowObject {
552
554
  [key: string]: any;
553
555
  }
@@ -570,8 +572,8 @@ interface TableProps extends AccessibleProps {
570
572
  onSortChange?: (e?: any) => void;
571
573
  tableLayout?: string;
572
574
  }
573
- declare const Table: FC<TableProps>;
574
-
575
+ declare const Table: FC<TableProps>;
576
+
575
577
  interface TabProps extends AccessibleProps {
576
578
  badgeCount?: number;
577
579
  errorBadge?: boolean;
@@ -582,16 +584,16 @@ interface TabProps extends AccessibleProps {
582
584
  interface TabsProps extends AccessibleProps {
583
585
  tabs: TabProps[];
584
586
  }
585
- declare const Tabs: FC<TabsProps>;
586
-
587
+ declare const Tabs: FC<TabsProps>;
588
+
587
589
  interface ToggleProps extends AccessibleProps {
588
590
  /** It is used to check whether Toggle is checked or not */
589
591
  on: boolean;
590
592
  /** Pass a callback then fires when user change value */
591
593
  onClick: (e?: any) => void;
592
594
  }
593
- declare const Toggle: FC<ToggleProps>;
594
-
595
+ declare const Toggle: FC<ToggleProps>;
596
+
595
597
  interface ZeroStateProps extends AccessibleProps {
596
598
  /** The SVG path of the icon to show */
597
599
  icon: string;
@@ -608,8 +610,8 @@ interface ZeroStateProps extends AccessibleProps {
608
610
  disabled?: boolean;
609
611
  };
610
612
  }
611
- declare const ZeroState: FC<ZeroStateProps>;
612
-
613
+ declare const ZeroState: FC<ZeroStateProps>;
614
+
613
615
  declare const getAgesFromDob: (dob: string) => {
614
616
  calculated_nearest_age: number | null;
615
617
  calculated_current_age: number | null;
@@ -623,8 +625,8 @@ declare const getYears: () => {
623
625
  declare const validateEmail: (email: string) => boolean;
624
626
  declare const validatePhone: (phone: string) => boolean;
625
627
  declare const formatAsPhone: (number: string) => string;
626
- declare const formatAsSsn: (number: string) => string;
627
-
628
+ declare const formatAsSsn: (number: string) => string;
629
+
628
630
  declare const Colors: {
629
631
  PRIMARY: {
630
632
  Hex: string;
@@ -676,6 +678,6 @@ declare const EditableTheme: {
676
678
  Hex: string;
677
679
  Rgb: string;
678
680
  };
679
- };
680
-
681
- 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 };
681
+ };
682
+
683
+ 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.21",
3
+ "version": "1.13.23",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",