@hexure/ui 1.12.5 → 1.12.7

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?: 'primary' | 'red';
@@ -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;
@@ -89,16 +89,16 @@ interface ButtonProps$3 extends AccessibleProps {
89
89
  /** If enabled, the small button format will be used. */
90
90
  small?: boolean;
91
91
  /** Define which button format to display. By default the Primary button will be used. */
92
- format?: 'primary' | 'secondary' | 'red' | 'green';
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;
@@ -153,8 +153,8 @@ interface ButtonMenuProps {
153
153
  position?: 'left' | 'right';
154
154
  format?: 'primary' | 'secondary';
155
155
  }
156
- declare const ButtonMenu: FC<ButtonMenuProps>;
157
-
156
+ declare const ButtonMenu: FC<ButtonMenuProps>;
157
+
158
158
  interface TooltipProps {
159
159
  /** It is used to give label to tag. */
160
160
  children: any;
@@ -165,8 +165,8 @@ interface TooltipProps {
165
165
  /** The element to display that triggers the tooltip content */
166
166
  trigger?: any;
167
167
  }
168
- declare const Tooltip: FC<TooltipProps>;
169
-
168
+ declare const Tooltip: FC<TooltipProps>;
169
+
170
170
  interface CheckboxProps extends AccessibleProps {
171
171
  /** It is used to give label to checkbox. */
172
172
  children?: string;
@@ -181,8 +181,8 @@ interface CheckboxProps extends AccessibleProps {
181
181
  /** Display a tooltip next to the label */
182
182
  tooltip?: TooltipProps;
183
183
  }
184
- declare const Checkbox: FC<CheckboxProps>;
185
-
184
+ declare const Checkbox: FC<CheckboxProps>;
185
+
186
186
  interface OptionProps$3 {
187
187
  label?: string;
188
188
  value: string | number;
@@ -194,8 +194,8 @@ interface ChecklistProps extends AccessibleProps {
194
194
  selected: (string | number)[];
195
195
  showSelectAll?: boolean;
196
196
  }
197
- declare const Checklist: FC<ChecklistProps>;
198
-
197
+ declare const Checklist: FC<ChecklistProps>;
198
+
199
199
  interface CopyProps extends AccessibleProps {
200
200
  /** Set the text to be displayed */
201
201
  children: string | React.ReactNode;
@@ -209,8 +209,8 @@ interface CopyProps extends AccessibleProps {
209
209
  /** Set the color of the copy based on the design system color pallette */
210
210
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'GRAY' | 'MEDIUM_GRAY' | 'LIGHT_GRAY';
211
211
  }
212
- declare const Copy: FC<CopyProps>;
213
-
212
+ declare const Copy: FC<CopyProps>;
213
+
214
214
  interface styleProps$3 {
215
215
  width?: number | string;
216
216
  }
@@ -230,11 +230,12 @@ interface DateProps extends AccessibleProps {
230
230
  /** Override default styles */
231
231
  style?: styleProps$3;
232
232
  }
233
- declare const DatePicker: FC<DateProps>;
234
-
233
+ declare const DatePicker: FC<DateProps>;
234
+
235
235
  interface ButtonProps$1 extends AccessibleProps {
236
236
  disabled?: boolean;
237
237
  children: string;
238
+ format?: string;
238
239
  icon?: string;
239
240
  onClick: (e?: any) => void;
240
241
  tabIndex?: number;
@@ -259,8 +260,8 @@ interface DrawerProps extends AccessibleProps {
259
260
  /** It is used to close drawer. */
260
261
  onClose: (e?: any) => void;
261
262
  }
262
- declare const Drawer: FC<DrawerProps>;
263
-
263
+ declare const Drawer: FC<DrawerProps>;
264
+
264
265
  interface ActionProps {
265
266
  id?: string;
266
267
  label: string;
@@ -283,16 +284,16 @@ interface FieldProps extends AccessibleProps {
283
284
  /** Display a tooltip next to the label */
284
285
  tooltip?: TooltipProps;
285
286
  }
286
- declare const Field: FC<FieldProps>;
287
-
287
+ declare const Field: FC<FieldProps>;
288
+
288
289
  interface FieldGroupProps {
289
290
  /** The label to display above the field group */
290
291
  label: string;
291
292
  /** The content of the field group...usually a set of Field components */
292
293
  children: any;
293
294
  }
294
- declare const FieldGroup: FC<FieldGroupProps>;
295
-
295
+ declare const FieldGroup: FC<FieldGroupProps>;
296
+
296
297
  interface FileUploadProps {
297
298
  /** A method to call when files are added/removed. Return the new file or array of files. */
298
299
  onChange?: (files: Array<File>) => void;
@@ -313,8 +314,8 @@ interface ErrorObject {
313
314
  file: File;
314
315
  message: string;
315
316
  }
316
- declare const FileUpload: FC<FileUploadProps>;
317
-
317
+ declare const FileUpload: FC<FileUploadProps>;
318
+
318
319
  interface HeadingProps extends AccessibleProps {
319
320
  /** Toggle between bold and normal font weights */
320
321
  bold?: boolean;
@@ -327,8 +328,8 @@ interface HeadingProps extends AccessibleProps {
327
328
  /** Set the type of heading to display: primary, secondary, tertiary */
328
329
  type?: 'primary' | 'secondary' | 'tertiary';
329
330
  }
330
- declare const Heading: FC<HeadingProps>;
331
-
331
+ declare const Heading: FC<HeadingProps>;
332
+
332
333
  interface styleProps$2 {
333
334
  width?: number | string;
334
335
  }
@@ -376,8 +377,8 @@ interface InputProps extends AccessibleProps {
376
377
  /** Display a loading indicator to the far right of the input */
377
378
  loading?: boolean;
378
379
  }
379
- declare const Input: FC<InputProps>;
380
-
380
+ declare const Input: FC<InputProps>;
381
+
381
382
  interface LinkProps extends AccessibleProps {
382
383
  /** Set the text to be displayed */
383
384
  children: string;
@@ -386,16 +387,16 @@ interface LinkProps extends AccessibleProps {
386
387
  /** A method to execute when this component is clicked */
387
388
  onClick?: (e?: any) => void;
388
389
  }
389
- declare const Link: FC<LinkProps>;
390
-
391
- declare const Loader: FC;
392
-
390
+ declare const Link: FC<LinkProps>;
391
+
392
+ declare const Loader: FC;
393
+
393
394
  interface LogoProps extends AccessibleProps {
394
395
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
395
396
  height?: string;
396
397
  }
397
- declare const Logo: FC<LogoProps>;
398
-
398
+ declare const Logo: FC<LogoProps>;
399
+
399
400
  interface StepProps {
400
401
  label: string;
401
402
  complete?: boolean;
@@ -406,8 +407,8 @@ interface ProgressBarProps {
406
407
  steps: StepProps[];
407
408
  showStepLine?: boolean;
408
409
  }
409
- declare const ProgressBar: FC<ProgressBarProps>;
410
-
410
+ declare const ProgressBar: FC<ProgressBarProps>;
411
+
411
412
  interface ButtonProps {
412
413
  disabled?: boolean;
413
414
  children: string;
@@ -436,8 +437,8 @@ interface ModalProps extends AccessibleProps {
436
437
  /** Display steps at the top of the modal */
437
438
  steps?: StepProps[];
438
439
  }
439
- declare const Modal: FC<ModalProps>;
440
-
440
+ declare const Modal: FC<ModalProps>;
441
+
441
442
  interface OptionProps$2 {
442
443
  label?: string;
443
444
  value: string | number;
@@ -455,8 +456,8 @@ interface MultiSelectProps extends AccessibleProps {
455
456
  showSelectAll?: boolean;
456
457
  style?: styleProps$1;
457
458
  }
458
- declare const MultiSelect: FC<MultiSelectProps>;
459
-
459
+ declare const MultiSelect: FC<MultiSelectProps>;
460
+
460
461
  interface TagProps extends AccessibleProps {
461
462
  /** It is used to select tag-type either default or removable. */
462
463
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -467,8 +468,8 @@ interface TagProps extends AccessibleProps {
467
468
  /** It is callback function called when user wants to close the tag. */
468
469
  removable?: boolean;
469
470
  }
470
- declare const Tag: FC<TagProps>;
471
-
471
+ declare const Tag: FC<TagProps>;
472
+
472
473
  interface PageHeaderProps {
473
474
  title?: string;
474
475
  breadcrumbs?: Array<{
@@ -492,15 +493,15 @@ interface PageHeaderProps {
492
493
  };
493
494
  tag?: TagProps;
494
495
  }
495
- declare const PageHeader: FC<PageHeaderProps>;
496
-
496
+ declare const PageHeader: FC<PageHeaderProps>;
497
+
497
498
  interface PaginationProps extends AccessibleProps {
498
499
  currentPage: number;
499
500
  onClick: (e?: any) => void;
500
501
  pageCount: number;
501
502
  }
502
- declare const Pagination: FC<PaginationProps>;
503
-
503
+ declare const Pagination: FC<PaginationProps>;
504
+
504
505
  interface RadioProps extends AccessibleProps {
505
506
  /** It is used to give label to radio. */
506
507
  children: string | number;
@@ -517,8 +518,8 @@ interface RadioProps extends AccessibleProps {
517
518
  /** Display a tooltip next to the label */
518
519
  tooltip?: TooltipProps;
519
520
  }
520
- declare const Radio: FC<RadioProps>;
521
-
521
+ declare const Radio: FC<RadioProps>;
522
+
522
523
  interface OptionProps$1 {
523
524
  label?: string;
524
525
  value: string | number;
@@ -529,8 +530,8 @@ interface RadioListProps extends AccessibleProps {
529
530
  options: OptionProps$1[];
530
531
  value: string;
531
532
  }
532
- declare const RadioList: FC<RadioListProps>;
533
-
533
+ declare const RadioList: FC<RadioListProps>;
534
+
534
535
  interface OptionProps {
535
536
  /** It is used to give label to option. */
536
537
  label?: string;
@@ -562,8 +563,8 @@ interface SelectProps extends AccessibleProps {
562
563
  /** It is used to change value when an option is clicked. */
563
564
  onChange: (e: any) => void;
564
565
  }
565
- declare const Select: FC<SelectProps>;
566
-
566
+ declare const Select: FC<SelectProps>;
567
+
567
568
  interface RowObject {
568
569
  [key: string]: any;
569
570
  }
@@ -586,8 +587,8 @@ interface TableProps extends AccessibleProps {
586
587
  onSortChange?: (e?: any) => void;
587
588
  tableLayout?: string;
588
589
  }
589
- declare const Table: FC<TableProps>;
590
-
590
+ declare const Table: FC<TableProps>;
591
+
591
592
  interface TabProps extends AccessibleProps {
592
593
  badgeCount?: number;
593
594
  errorBadge?: boolean;
@@ -598,16 +599,16 @@ interface TabProps extends AccessibleProps {
598
599
  interface TabsProps extends AccessibleProps {
599
600
  tabs: TabProps[];
600
601
  }
601
- declare const Tabs: FC<TabsProps>;
602
-
602
+ declare const Tabs: FC<TabsProps>;
603
+
603
604
  interface ToggleProps extends AccessibleProps {
604
605
  /** It is used to check whether Toggle is checked or not */
605
606
  on: boolean;
606
607
  /** Pass a callback then fires when user change value */
607
608
  onClick: (e?: any) => void;
608
609
  }
609
- declare const Toggle: FC<ToggleProps>;
610
-
610
+ declare const Toggle: FC<ToggleProps>;
611
+
611
612
  interface ZeroStateProps extends AccessibleProps {
612
613
  /** The SVG path of the icon to show */
613
614
  icon: string;
@@ -622,8 +623,8 @@ interface ZeroStateProps extends AccessibleProps {
622
623
  onClick: (e?: any) => void;
623
624
  };
624
625
  }
625
- declare const ZeroState: FC<ZeroStateProps>;
626
-
626
+ declare const ZeroState: FC<ZeroStateProps>;
627
+
627
628
  declare const getAgesFromDob: (dob: string) => {
628
629
  calculated_nearest_age: number | null;
629
630
  calculated_current_age: number | null;
@@ -637,8 +638,8 @@ declare const getYears: () => {
637
638
  declare const validateEmail: (email: string) => boolean;
638
639
  declare const validatePhone: (phone: string) => boolean;
639
640
  declare const formatAsPhone: (number: string) => string;
640
- declare const formatAsSsn: (number: string) => string;
641
-
641
+ declare const formatAsSsn: (number: string) => string;
642
+
642
643
  declare const Colors: {
643
644
  PRIMARY: {
644
645
  Hex: string;
@@ -690,6 +691,6 @@ declare const EditableTheme: {
690
691
  Hex: string;
691
692
  Rgb: string;
692
693
  };
693
- };
694
-
695
- 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 };
694
+ };
695
+
696
+ 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.12.5",
3
+ "version": "1.12.7",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",