@hexure/ui 1.6.10 → 1.8.0

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.
Files changed (28) hide show
  1. package/dist/cjs/index.js +3642 -2802
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/ButtonMenu/ButtonMenu.d.ts +12 -0
  4. package/dist/cjs/types/components/ButtonMenu/index.d.ts +1 -0
  5. package/dist/cjs/types/components/Field/Field.d.ts +3 -0
  6. package/dist/cjs/types/components/FileUpload/FileUpload.d.ts +19 -19
  7. package/dist/cjs/types/components/Input/Input.d.ts +17 -1
  8. package/dist/cjs/types/components/MoreMenu/MoreMenu.d.ts +1 -1
  9. package/dist/cjs/types/components/PageHeader/PageHeader.d.ts +24 -0
  10. package/dist/cjs/types/components/PageHeader/index.d.ts +1 -0
  11. package/dist/cjs/types/components/Tooltip/Tooltip.d.ts +11 -0
  12. package/dist/cjs/types/components/Tooltip/index.d.ts +1 -0
  13. package/dist/cjs/types/index.d.ts +1 -0
  14. package/dist/esm/index.js +3612 -2773
  15. package/dist/esm/index.js.map +1 -1
  16. package/dist/esm/types/components/ButtonMenu/ButtonMenu.d.ts +12 -0
  17. package/dist/esm/types/components/ButtonMenu/index.d.ts +1 -0
  18. package/dist/esm/types/components/Field/Field.d.ts +3 -0
  19. package/dist/esm/types/components/FileUpload/FileUpload.d.ts +19 -19
  20. package/dist/esm/types/components/Input/Input.d.ts +17 -1
  21. package/dist/esm/types/components/MoreMenu/MoreMenu.d.ts +1 -1
  22. package/dist/esm/types/components/PageHeader/PageHeader.d.ts +24 -0
  23. package/dist/esm/types/components/PageHeader/index.d.ts +1 -0
  24. package/dist/esm/types/components/Tooltip/Tooltip.d.ts +11 -0
  25. package/dist/esm/types/components/Tooltip/index.d.ts +1 -0
  26. package/dist/esm/types/index.d.ts +1 -0
  27. package/dist/index.d.ts +111 -82
  28. package/package.json +1 -1
@@ -0,0 +1,12 @@
1
+ import { FC } from 'react';
2
+ import { MenuItemProps } from '../MoreMenu/MoreMenu';
3
+ export interface ButtonMenuProps {
4
+ disabled?: boolean;
5
+ label: string;
6
+ small?: boolean;
7
+ menuItems: Array<MenuItemProps>;
8
+ maxHeight?: string | number;
9
+ position?: 'left' | 'right';
10
+ }
11
+ declare const ButtonMenu: FC<ButtonMenuProps>;
12
+ export default ButtonMenu;
@@ -0,0 +1 @@
1
+ export { default } from './ButtonMenu';
@@ -1,4 +1,5 @@
1
1
  import { FC, ReactNode } from 'react';
2
+ import { TooltipProps } from '../Tooltip/Tooltip';
2
3
  import { AccessibleProps } from '../../utils/Accessibility';
3
4
  interface ActionProps {
4
5
  label: string;
@@ -18,6 +19,8 @@ export interface FieldProps extends AccessibleProps {
18
19
  label: string;
19
20
  /** It is used to give description to input. */
20
21
  description?: string;
22
+ /** Display a tooltip next to the label */
23
+ tooltip?: TooltipProps;
21
24
  }
22
25
  declare const Field: FC<FieldProps>;
23
26
  export default Field;
@@ -1,23 +1,23 @@
1
1
  import { FC } from 'react';
2
- import { AccessibleProps } from '../../utils/Accessibility';
3
- export interface FileUploadProps extends AccessibleProps {
4
- /** It is used to get the array of files. */
5
- onChange: (e: any) => void;
6
- /** It is used to get the delete file. */
7
- onFileDelete: (e: any) => void;
8
- /** It is used to get max file size in MBs. */
9
- maxFileSize: number;
10
- /** It is used to whether the progress bar should be shown or not. */
11
- progress: boolean;
12
- /** It is used to set the upload progress value from 0 to 100. */
13
- UploadProgress?: {
14
- index: number;
15
- progress: number;
16
- };
17
- /** It is used to set the value of multile file upload in boolean. */
18
- multiple: boolean;
19
- /** It is used to set the value of acceptable files. Example ".jpg, .jpeg, .pdf"*/
20
- acceptFiles: string;
2
+ export interface FileUploadProps {
3
+ /** A method to call when files are added/removed. Return the new file or array of files. */
4
+ onChange?: (files: Array<File>) => void;
5
+ /** A method to call when files are rejected. Returns an array of files and their errors */
6
+ onError?: (errors: Array<ErrorObject>) => void;
7
+ /** The maximum number of files that be added. */
8
+ maxFiles?: number;
9
+ /** The maximum file size allowed, in MBs. */
10
+ maxSize?: number;
11
+ /** Display a message in the dropzone area */
12
+ message?: string;
13
+ /** A string of comma separated file types */
14
+ accept?: string;
15
+ /** A method that will be run against each file to determine if it's valid before being added. Must return a boolean. */
16
+ validateFile?: (file: File) => boolean;
17
+ }
18
+ interface ErrorObject {
19
+ file: File;
20
+ message: string;
21
21
  }
22
22
  declare const FileUpload: FC<FileUploadProps>;
23
23
  export default FileUpload;
@@ -4,21 +4,37 @@ export interface styleProps {
4
4
  width?: number | string;
5
5
  }
6
6
  export interface InputProps extends AccessibleProps {
7
+ /** Force a specific format/mask for the Input value */
7
8
  format?: 'phone' | 'currency' | 'currency_decimal' | 'ssn';
9
+ /** Set the height of the textarea. This should only be used with textarea */
8
10
  height?: string;
11
+ /** Display a read only suffix. Example: kg, lbs, etc */
9
12
  suffix?: string;
13
+ /** Display the input as invalid, with a red border and red text */
10
14
  invalid?: boolean;
15
+ /** Use with a number input to define the max allowed number */
11
16
  max?: string;
17
+ /** Use with a text input to define the max number of characters */
12
18
  maxLength?: number;
19
+ /** Use with a number input to define the min allowed number */
13
20
  min?: string;
21
+ /** A method to be called when the changes focus away from the input */
14
22
  onBlur?: (e?: any) => void;
23
+ /** A method to be called when the value of the input changes */
15
24
  onChange?: (e?: any) => void;
25
+ /** A method to be called when the use presses a key */
16
26
  onKeyDown?: (e?: any) => void;
27
+ /** Display placeholder text in the input */
17
28
  placeholder?: string;
29
+ /** Display the input as read only, preventing the user from inteacting with it */
18
30
  readOnly?: boolean;
31
+ /** Use with a number input to define how the number increments */
19
32
  step?: number;
33
+ /** Set the css of the wrapping div */
20
34
  style?: styleProps;
21
- type?: 'date' | 'email' | 'number' | 'password' | 'tel' | 'text' | 'url' | 'textarea';
35
+ /** Define the type of input to be displayed */
36
+ type?: 'date' | 'email' | 'number' | 'password' | 'tel' | 'text' | 'url' | 'textarea' | 'search';
37
+ /** Set the value of the input. This should be used by the parent component to control the input's value. */
22
38
  value?: string;
23
39
  }
24
40
  declare const Input: FC<InputProps>;
@@ -1,6 +1,6 @@
1
1
  import { FC } from 'react';
2
2
  import { AccessibleProps } from '../../utils/Accessibility';
3
- interface MenuItemProps extends AccessibleProps {
3
+ export interface MenuItemProps extends AccessibleProps {
4
4
  icon?: string;
5
5
  label?: string;
6
6
  onClick: (e?: any) => void;
@@ -0,0 +1,24 @@
1
+ import { FC } from 'react';
2
+ import { MenuItemProps } from '../MoreMenu/MoreMenu';
3
+ export interface PageHeaderProps {
4
+ title?: string;
5
+ breadcrumbs?: Array<{
6
+ label: string;
7
+ onClick?: (e: any) => void;
8
+ }>;
9
+ actions?: Array<{
10
+ disabled?: boolean;
11
+ format?: 'primary' | 'secondary' | 'red';
12
+ icon?: string;
13
+ label: string;
14
+ onClick?: (e: any) => void;
15
+ }>;
16
+ buttonMenu?: {
17
+ disabled?: boolean;
18
+ icon?: string;
19
+ label: string;
20
+ menuItems: Array<MenuItemProps>;
21
+ };
22
+ }
23
+ declare const PageHeader: FC<PageHeaderProps>;
24
+ export default PageHeader;
@@ -0,0 +1 @@
1
+ export { default } from './PageHeader';
@@ -0,0 +1,11 @@
1
+ import { FC } from 'react';
2
+ export interface TooltipProps {
3
+ /** It is used to give label to tag. */
4
+ children: string;
5
+ /** It is callback function called when user wants to close the tag. */
6
+ position?: 'right-top' | 'right-bottom' | 'right-center' | 'left-top' | 'left-bottom' | 'left-center';
7
+ /** Override the default content width of 240px */
8
+ width?: string;
9
+ }
10
+ declare const Tooltip: FC<TooltipProps>;
11
+ export default Tooltip;
@@ -0,0 +1 @@
1
+ export { default } from './Tooltip';
@@ -25,4 +25,5 @@ export { default as Table } from './components/Table';
25
25
  export { default as Tabs } from './components/Tabs';
26
26
  export { default as Tag } from './components/Tag';
27
27
  export { default as Toggle } from './components/Toggle';
28
+ export { default as Tooltip } from './components/Tooltip';
28
29
  export { default as ZeroState } from './components/ZeroState';
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';
@@ -45,8 +45,8 @@ interface ActionDialogProps extends AccessibleProps {
45
45
  /** Set the tertiary action for the dialog. This should only be defined after a secondary action is defined */
46
46
  tertiaryButton?: ButtonProps$4;
47
47
  }
48
- declare const ActionDialog: FC<ActionDialogProps>;
49
-
48
+ declare const ActionDialog: FC<ActionDialogProps>;
49
+
50
50
  interface ActionProps$1 extends AccessibleProps {
51
51
  label: string;
52
52
  onClick: (e?: any) => void;
@@ -60,8 +60,8 @@ interface AlertProps extends AccessibleProps {
60
60
  /** Display a link to display below the description */
61
61
  action?: ActionProps$1;
62
62
  }
63
- declare const Alert: FC<AlertProps>;
64
-
63
+ declare const Alert: FC<AlertProps>;
64
+
65
65
  interface ButtonProps$3 {
66
66
  children: string;
67
67
  onClick: (e?: any) => void;
@@ -74,8 +74,8 @@ interface BulkActionBarProps extends AccessibleProps {
74
74
  onClear: (e?: any) => void;
75
75
  selectedCount?: number;
76
76
  }
77
- declare const BulkActionBar: FC<BulkActionBarProps>;
78
-
77
+ declare const BulkActionBar: FC<BulkActionBarProps>;
78
+
79
79
  interface ButtonProps$2 extends AccessibleProps {
80
80
  /** Display a number badge on the right side of the button */
81
81
  badge?: number;
@@ -98,8 +98,8 @@ interface ButtonProps$2 extends AccessibleProps {
98
98
  /** Define which button format to display. By default the Primary button will be used. */
99
99
  format?: 'primary' | 'secondary' | 'red';
100
100
  }
101
- declare const Button: FC<ButtonProps$2>;
102
-
101
+ declare const Button: FC<ButtonProps$2>;
102
+
103
103
  interface CheckboxProps extends AccessibleProps {
104
104
  /** It is used to give label to checkbox. */
105
105
  children?: string;
@@ -110,8 +110,8 @@ interface CheckboxProps extends AccessibleProps {
110
110
  /** It is used to change value of checkbox. */
111
111
  onChange: (e?: any) => void;
112
112
  }
113
- declare const Checkbox: FC<CheckboxProps>;
114
-
113
+ declare const Checkbox: FC<CheckboxProps>;
114
+
115
115
  interface OptionProps$3 {
116
116
  label?: string;
117
117
  value: string | number;
@@ -123,8 +123,8 @@ interface ChecklistProps extends AccessibleProps {
123
123
  selected: (string | number)[];
124
124
  showSelectAll?: boolean;
125
125
  }
126
- declare const Checklist: FC<ChecklistProps>;
127
-
126
+ declare const Checklist: FC<ChecklistProps>;
127
+
128
128
  interface CopyProps extends AccessibleProps {
129
129
  /** Set the text to be displayed */
130
130
  children: string;
@@ -138,8 +138,8 @@ interface CopyProps extends AccessibleProps {
138
138
  /** Set the color of the copy based on the design system color pallette */
139
139
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'GRAY' | 'MEDIUM_GRAY' | 'LIGHT_GRAY';
140
140
  }
141
- declare const Copy: FC<CopyProps>;
142
-
141
+ declare const Copy: FC<CopyProps>;
142
+
143
143
  interface styleProps$3 {
144
144
  width?: number | string;
145
145
  }
@@ -159,8 +159,8 @@ interface DateProps extends AccessibleProps {
159
159
  /** Override default styles */
160
160
  style?: styleProps$3;
161
161
  }
162
- declare const DatePicker: FC<DateProps>;
163
-
162
+ declare const DatePicker: FC<DateProps>;
163
+
164
164
  interface ButtonProps$1 extends AccessibleProps {
165
165
  disabled: boolean;
166
166
  children: string;
@@ -187,8 +187,18 @@ interface DrawerProps extends AccessibleProps {
187
187
  /** It is used to close drawer. */
188
188
  onClose: (e?: any) => void;
189
189
  }
190
- declare const Drawer: FC<DrawerProps>;
191
-
190
+ declare const Drawer: FC<DrawerProps>;
191
+
192
+ interface TooltipProps {
193
+ /** It is used to give label to tag. */
194
+ children: string;
195
+ /** It is callback function called when user wants to close the tag. */
196
+ position?: 'right-top' | 'right-bottom' | 'right-center' | 'left-top' | 'left-bottom' | 'left-center';
197
+ /** Override the default content width of 240px */
198
+ width?: string;
199
+ }
200
+ declare const Tooltip: FC<TooltipProps>;
201
+
192
202
  interface ActionProps {
193
203
  label: string;
194
204
  onClick: (e?: any) => void;
@@ -207,30 +217,33 @@ interface FieldProps extends AccessibleProps {
207
217
  label: string;
208
218
  /** It is used to give description to input. */
209
219
  description?: string;
210
- }
211
- declare const Field: FC<FieldProps>;
212
-
213
- interface FileUploadProps extends AccessibleProps {
214
- /** It is used to get the array of files. */
215
- onChange: (e: any) => void;
216
- /** It is used to get the delete file. */
217
- onFileDelete: (e: any) => void;
218
- /** It is used to get max file size in MBs. */
219
- maxFileSize: number;
220
- /** It is used to whether the progress bar should be shown or not. */
221
- progress: boolean;
222
- /** It is used to set the upload progress value from 0 to 100. */
223
- UploadProgress?: {
224
- index: number;
225
- progress: number;
226
- };
227
- /** It is used to set the value of multile file upload in boolean. */
228
- multiple: boolean;
229
- /** It is used to set the value of acceptable files. Example ".jpg, .jpeg, .pdf"*/
230
- acceptFiles: string;
231
- }
232
- declare const FileUpload: FC<FileUploadProps>;
233
-
220
+ /** Display a tooltip next to the label */
221
+ tooltip?: TooltipProps;
222
+ }
223
+ declare const Field: FC<FieldProps>;
224
+
225
+ interface FileUploadProps {
226
+ /** A method to call when files are added/removed. Return the new file or array of files. */
227
+ onChange?: (files: Array<File>) => void;
228
+ /** A method to call when files are rejected. Returns an array of files and their errors */
229
+ onError?: (errors: Array<ErrorObject>) => void;
230
+ /** The maximum number of files that be added. */
231
+ maxFiles?: number;
232
+ /** The maximum file size allowed, in MBs. */
233
+ maxSize?: number;
234
+ /** Display a message in the dropzone area */
235
+ message?: string;
236
+ /** A string of comma separated file types */
237
+ accept?: string;
238
+ /** A method that will be run against each file to determine if it's valid before being added. Must return a boolean. */
239
+ validateFile?: (file: File) => boolean;
240
+ }
241
+ interface ErrorObject {
242
+ file: File;
243
+ message: string;
244
+ }
245
+ declare const FileUpload: FC<FileUploadProps>;
246
+
234
247
  interface HeadingProps extends AccessibleProps {
235
248
  /** Toggle between bold and normal font weights */
236
249
  bold?: boolean;
@@ -243,31 +256,47 @@ interface HeadingProps extends AccessibleProps {
243
256
  /** Set the type of heading to display: primary, secondary, tertiary */
244
257
  type?: 'primary' | 'secondary' | 'tertiary';
245
258
  }
246
- declare const Heading: FC<HeadingProps>;
247
-
259
+ declare const Heading: FC<HeadingProps>;
260
+
248
261
  interface styleProps$2 {
249
262
  width?: number | string;
250
263
  }
251
264
  interface InputProps extends AccessibleProps {
265
+ /** Force a specific format/mask for the Input value */
252
266
  format?: 'phone' | 'currency' | 'currency_decimal' | 'ssn';
267
+ /** Set the height of the textarea. This should only be used with textarea */
253
268
  height?: string;
269
+ /** Display a read only suffix. Example: kg, lbs, etc */
254
270
  suffix?: string;
271
+ /** Display the input as invalid, with a red border and red text */
255
272
  invalid?: boolean;
273
+ /** Use with a number input to define the max allowed number */
256
274
  max?: string;
275
+ /** Use with a text input to define the max number of characters */
257
276
  maxLength?: number;
277
+ /** Use with a number input to define the min allowed number */
258
278
  min?: string;
279
+ /** A method to be called when the changes focus away from the input */
259
280
  onBlur?: (e?: any) => void;
281
+ /** A method to be called when the value of the input changes */
260
282
  onChange?: (e?: any) => void;
283
+ /** A method to be called when the use presses a key */
261
284
  onKeyDown?: (e?: any) => void;
285
+ /** Display placeholder text in the input */
262
286
  placeholder?: string;
287
+ /** Display the input as read only, preventing the user from inteacting with it */
263
288
  readOnly?: boolean;
289
+ /** Use with a number input to define how the number increments */
264
290
  step?: number;
291
+ /** Set the css of the wrapping div */
265
292
  style?: styleProps$2;
266
- type?: 'date' | 'email' | 'number' | 'password' | 'tel' | 'text' | 'url' | 'textarea';
293
+ /** Define the type of input to be displayed */
294
+ type?: 'date' | 'email' | 'number' | 'password' | 'tel' | 'text' | 'url' | 'textarea' | 'search';
295
+ /** Set the value of the input. This should be used by the parent component to control the input's value. */
267
296
  value?: string;
268
297
  }
269
- declare const Input: FC<InputProps>;
270
-
298
+ declare const Input: FC<InputProps>;
299
+
271
300
  interface LinkProps extends AccessibleProps {
272
301
  /** Set the text to be displayed */
273
302
  children: string;
@@ -276,14 +305,14 @@ interface LinkProps extends AccessibleProps {
276
305
  /** A method to execute when this component is clicked */
277
306
  onClick?: (e?: any) => void;
278
307
  }
279
- declare const Link: FC<LinkProps>;
280
-
308
+ declare const Link: FC<LinkProps>;
309
+
281
310
  interface LogoProps extends AccessibleProps {
282
311
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
283
312
  height?: string;
284
313
  }
285
- declare const Logo: FC<LogoProps>;
286
-
314
+ declare const Logo: FC<LogoProps>;
315
+
287
316
  interface ButtonProps {
288
317
  disabled?: boolean;
289
318
  children: string;
@@ -314,8 +343,8 @@ interface ModalProps extends AccessibleProps {
314
343
  /** Display steps at the top of the modal */
315
344
  steps?: StepProps[];
316
345
  }
317
- declare const Modal: FC<ModalProps>;
318
-
346
+ declare const Modal: FC<ModalProps>;
347
+
319
348
  interface MenuItemProps extends AccessibleProps {
320
349
  icon?: string;
321
350
  label?: string;
@@ -325,8 +354,8 @@ interface MoreMenuProps extends AccessibleProps {
325
354
  menuItems: MenuItemProps[];
326
355
  maxHeight?: string | number;
327
356
  }
328
- declare const MoreMenu: FC<MoreMenuProps>;
329
-
357
+ declare const MoreMenu: FC<MoreMenuProps>;
358
+
330
359
  interface OptionProps$2 {
331
360
  label?: string;
332
361
  value: string | number;
@@ -344,15 +373,15 @@ interface MultiSelectProps extends AccessibleProps {
344
373
  showSelectAll?: boolean;
345
374
  style?: styleProps$1;
346
375
  }
347
- declare const MultiSelect: FC<MultiSelectProps>;
348
-
376
+ declare const MultiSelect: FC<MultiSelectProps>;
377
+
349
378
  interface PaginationProps extends AccessibleProps {
350
379
  currentPage: number;
351
380
  onClick: (e?: any) => void;
352
381
  pageCount: number;
353
382
  }
354
- declare const Pagination: FC<PaginationProps>;
355
-
383
+ declare const Pagination: FC<PaginationProps>;
384
+
356
385
  interface RadioProps extends AccessibleProps {
357
386
  /** It is used to give label to radio. */
358
387
  children: string | number;
@@ -364,8 +393,8 @@ interface RadioProps extends AccessibleProps {
364
393
  onChange: (e?: any) => void;
365
394
  value: string | number;
366
395
  }
367
- declare const Radio: FC<RadioProps>;
368
-
396
+ declare const Radio: FC<RadioProps>;
397
+
369
398
  interface OptionProps$1 {
370
399
  label?: string;
371
400
  value: string | number;
@@ -376,8 +405,8 @@ interface RadioListProps extends AccessibleProps {
376
405
  options: OptionProps$1[];
377
406
  value: string;
378
407
  }
379
- declare const RadioList: FC<RadioListProps>;
380
-
408
+ declare const RadioList: FC<RadioListProps>;
409
+
381
410
  interface OptionProps {
382
411
  /** It is used to give label to option. */
383
412
  label?: string;
@@ -409,8 +438,8 @@ interface SelectProps extends AccessibleProps {
409
438
  /** It is used to change value when an option is clicked. */
410
439
  onChange: (e: any) => void;
411
440
  }
412
- declare const Select: FC<SelectProps>;
413
-
441
+ declare const Select: FC<SelectProps>;
442
+
414
443
  interface RowObject {
415
444
  [key: string]: any;
416
445
  }
@@ -432,8 +461,8 @@ interface TableProps extends AccessibleProps {
432
461
  onSortChange?: (e?: any) => void;
433
462
  tableLayout?: string;
434
463
  }
435
- declare const Table: FC<TableProps>;
436
-
464
+ declare const Table: FC<TableProps>;
465
+
437
466
  interface TabProps extends AccessibleProps {
438
467
  badgeCount?: number;
439
468
  errorBadge?: boolean;
@@ -444,8 +473,8 @@ interface TabProps extends AccessibleProps {
444
473
  interface TabsProps extends AccessibleProps {
445
474
  tabs: TabProps[];
446
475
  }
447
- declare const Tabs: FC<TabsProps>;
448
-
476
+ declare const Tabs: FC<TabsProps>;
477
+
449
478
  interface TagProps extends AccessibleProps {
450
479
  /** It is used to select tag-type either default or removable. */
451
480
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -456,16 +485,16 @@ interface TagProps extends AccessibleProps {
456
485
  /** It is callback function called when user wants to close the tag. */
457
486
  removable?: boolean;
458
487
  }
459
- declare const Tag: FC<TagProps>;
460
-
488
+ declare const Tag: FC<TagProps>;
489
+
461
490
  interface ToggleProps extends AccessibleProps {
462
491
  /** It is used to check whether Toggle is checked or not */
463
492
  on: boolean;
464
493
  /** Pass a callback then fires when user change value */
465
494
  onClick: (e?: any) => void;
466
495
  }
467
- declare const Toggle: FC<ToggleProps>;
468
-
496
+ declare const Toggle: FC<ToggleProps>;
497
+
469
498
  interface ZeroStateProps extends AccessibleProps {
470
499
  /** The SVG path of the icon to show */
471
500
  icon: string;
@@ -480,6 +509,6 @@ interface ZeroStateProps extends AccessibleProps {
480
509
  onClick: (e?: any) => void;
481
510
  };
482
511
  }
483
- declare const ZeroState: FC<ZeroStateProps>;
484
-
485
- export { Accordion, ActionDialog, Alert, BulkActionBar, Button, Checkbox, Checklist, Copy, DatePicker, Drawer, Field, FileUpload, Heading, Input, Link, Logo, Modal, MoreMenu, MultiSelect, Pagination, Radio, RadioList, Select, Table, Tabs, Tag, Toggle, ZeroState };
512
+ declare const ZeroState: FC<ZeroStateProps>;
513
+
514
+ export { Accordion, ActionDialog, Alert, BulkActionBar, Button, Checkbox, Checklist, Copy, DatePicker, Drawer, Field, FileUpload, Heading, Input, Link, Logo, Modal, MoreMenu, MultiSelect, Pagination, Radio, RadioList, Select, Table, Tabs, Tag, Toggle, Tooltip, ZeroState };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexure/ui",
3
- "version": "1.6.10",
3
+ "version": "1.8.0",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",