@hexure/ui 1.3.4 → 1.3.6

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 (74) hide show
  1. package/dist/cjs/index.js +2248 -2095
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/FileUpload/FileUpload.d.ts +23 -0
  4. package/dist/cjs/types/components/FileUpload/index.d.ts +1 -0
  5. package/dist/cjs/types/components/Input/Input.d.ts +1 -1
  6. package/dist/cjs/types/components/Modal/Modal.d.ts +6 -2
  7. package/dist/cjs/types/index.d.ts +2 -0
  8. package/dist/esm/index.js +2221 -2070
  9. package/dist/esm/index.js.map +1 -1
  10. package/dist/esm/types/components/FileUpload/FileUpload.d.ts +23 -0
  11. package/dist/esm/types/components/FileUpload/index.d.ts +1 -0
  12. package/dist/esm/types/components/Input/Input.d.ts +1 -1
  13. package/dist/esm/types/components/Modal/Modal.d.ts +6 -2
  14. package/dist/esm/types/index.d.ts +2 -0
  15. package/dist/index.d.ts +87 -56
  16. package/package.json +90 -90
  17. package/dist/cjs/types/components/Accordion/Accordion.stories.d.ts +0 -5
  18. package/dist/cjs/types/components/ActionDialog/ActionDialog.stories.d.ts +0 -5
  19. package/dist/cjs/types/components/ActionDialog/ActionDialog.test.d.ts +0 -1
  20. package/dist/cjs/types/components/Alert/Alert.stories.d.ts +0 -5
  21. package/dist/cjs/types/components/BulkActionBar/BulkActionBar.stories.d.ts +0 -5
  22. package/dist/cjs/types/components/Button/Button.stories.d.ts +0 -5
  23. package/dist/cjs/types/components/Checkbox/Checkbox.stories.d.ts +0 -5
  24. package/dist/cjs/types/components/Checklist/Checklist.stories.d.ts +0 -5
  25. package/dist/cjs/types/components/Copy/Copy.stories.d.ts +0 -5
  26. package/dist/cjs/types/components/DatePicker/DatePicker.stories.d.ts +0 -5
  27. package/dist/cjs/types/components/Drawer/Drawer.stories.d.ts +0 -5
  28. package/dist/cjs/types/components/Field/Field.stories.d.ts +0 -5
  29. package/dist/cjs/types/components/Heading/Heading.stories.d.ts +0 -5
  30. package/dist/cjs/types/components/Input/Input.stories.d.ts +0 -5
  31. package/dist/cjs/types/components/Logo/Logo.stories.d.ts +0 -5
  32. package/dist/cjs/types/components/Modal/Modal.stories.d.ts +0 -5
  33. package/dist/cjs/types/components/MoreMenu/MoreMenu.stories.d.ts +0 -5
  34. package/dist/cjs/types/components/Multiselect/MultiSelect.stories.d.ts +0 -5
  35. package/dist/cjs/types/components/Pagination/Pagination.stories.d.ts +0 -5
  36. package/dist/cjs/types/components/Radio/Radio.stories.d.ts +0 -5
  37. package/dist/cjs/types/components/RadioList/RadioList.stories.d.ts +0 -5
  38. package/dist/cjs/types/components/Select/Select.stories.d.ts +0 -5
  39. package/dist/cjs/types/components/Table/Table.stories.d.ts +0 -5
  40. package/dist/cjs/types/components/Tabs/Tabs.stories.d.ts +0 -5
  41. package/dist/cjs/types/components/Tag/Tag.stories.d.ts +0 -5
  42. package/dist/cjs/types/components/Toggle/Toggle.stories.d.ts +0 -5
  43. package/dist/cjs/types/components/ZeroState/ZeroState.stories.d.ts +0 -5
  44. package/dist/esm/types/components/Accordion/Accordion.stories.d.ts +0 -5
  45. package/dist/esm/types/components/ActionDialog/ActionDialog.stories.d.ts +0 -5
  46. package/dist/esm/types/components/ActionDialog/ActionDialog.test.d.ts +0 -1
  47. package/dist/esm/types/components/Alert/Alert.stories.d.ts +0 -5
  48. package/dist/esm/types/components/BulkActionBar/BulkActionBar.stories.d.ts +0 -5
  49. package/dist/esm/types/components/Button/Button.stories.d.ts +0 -5
  50. package/dist/esm/types/components/Checkbox/Checkbox.stories.d.ts +0 -5
  51. package/dist/esm/types/components/Checklist/Checklist.stories.d.ts +0 -5
  52. package/dist/esm/types/components/Copy/Copy.stories.d.ts +0 -5
  53. package/dist/esm/types/components/DatePicker/DatePicker.stories.d.ts +0 -5
  54. package/dist/esm/types/components/Drawer/Drawer.stories.d.ts +0 -5
  55. package/dist/esm/types/components/Field/Field.stories.d.ts +0 -5
  56. package/dist/esm/types/components/Heading/Heading.stories.d.ts +0 -5
  57. package/dist/esm/types/components/Input/Input.stories.d.ts +0 -5
  58. package/dist/esm/types/components/Logo/Logo.stories.d.ts +0 -5
  59. package/dist/esm/types/components/Modal/Modal.stories.d.ts +0 -5
  60. package/dist/esm/types/components/MoreMenu/MoreMenu.stories.d.ts +0 -5
  61. package/dist/esm/types/components/Multiselect/MultiSelect.stories.d.ts +0 -5
  62. package/dist/esm/types/components/Pagination/Pagination.stories.d.ts +0 -5
  63. package/dist/esm/types/components/Radio/Radio.stories.d.ts +0 -5
  64. package/dist/esm/types/components/RadioList/RadioList.stories.d.ts +0 -5
  65. package/dist/esm/types/components/Select/Select.stories.d.ts +0 -5
  66. package/dist/esm/types/components/Table/Table.stories.d.ts +0 -5
  67. package/dist/esm/types/components/Tabs/Tabs.stories.d.ts +0 -5
  68. package/dist/esm/types/components/Tag/Tag.stories.d.ts +0 -5
  69. package/dist/esm/types/components/Toggle/Toggle.stories.d.ts +0 -5
  70. package/dist/esm/types/components/ZeroState/ZeroState.stories.d.ts +0 -5
  71. /package/dist/cjs/types/components/{Multiselect → MultiSelect}/MultiSelect.d.ts +0 -0
  72. /package/dist/cjs/types/components/{Multiselect → MultiSelect}/index.d.ts +0 -0
  73. /package/dist/esm/types/components/{Multiselect → MultiSelect}/MultiSelect.d.ts +0 -0
  74. /package/dist/esm/types/components/{Multiselect → MultiSelect}/index.d.ts +0 -0
@@ -0,0 +1,23 @@
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;
21
+ }
22
+ declare const FileUpload: FC<FileUploadProps>;
23
+ export default FileUpload;
@@ -0,0 +1 @@
1
+ export { default } from './FileUpload';
@@ -14,7 +14,7 @@ export interface InputProps extends AccessibleProps {
14
14
  placeholder?: string;
15
15
  readOnly?: boolean;
16
16
  step?: number;
17
- type?: 'email' | 'number' | 'password' | 'tel' | 'text' | 'url' | 'textarea';
17
+ type?: 'date' | 'email' | 'number' | 'password' | 'tel' | 'text' | 'url' | 'textarea';
18
18
  value?: string;
19
19
  }
20
20
  declare const Input: FC<InputProps>;
@@ -8,10 +8,14 @@ interface ButtonProps {
8
8
  tabIndex?: number;
9
9
  }
10
10
  export interface ModalProps extends AccessibleProps {
11
- primaryButton: ButtonProps;
11
+ /** Defines a button to be displayed on the far right of the bottom button bar */
12
+ primaryButton?: ButtonProps;
13
+ /** Defines a button to be displayed to the left of the primary button. Should only be used if primary button is used */
12
14
  secondaryButton?: ButtonProps;
15
+ /** Defines a button to be displayed on the far left of the bottom button bar */
13
16
  tertiaryButton?: ButtonProps;
14
- maxWidth?: string | number;
17
+ /** Overrides the default max width of the modal (90vw) */
18
+ maxWidth?: string;
15
19
  /** It is used to pass child nodes, string values and number as child components. */
16
20
  children: ReactNode;
17
21
  /** It is used to give title. */
@@ -8,8 +8,10 @@ export { default as Checklist } from './components/Checklist';
8
8
  export { default as Copy } from './components/Copy';
9
9
  export { default as Drawer } from './components/Drawer';
10
10
  export { default as Field } from './components/Field';
11
+ export { default as FileUpload } from './components/FileUpload';
11
12
  export { default as Heading } from './components/Heading';
12
13
  export { default as Input } from './components/Input';
14
+ export { default as Logo } from './components/Logo';
13
15
  export { default as Modal } from './components/Modal';
14
16
  export { default as MoreMenu } from './components/MoreMenu';
15
17
  export { default as MultiSelect } from './components/MultiSelect';
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
  ariaLabel?: 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
  icon?: string;
@@ -41,8 +41,8 @@ interface ActionDialogProps extends AccessibleProps {
41
41
  secondaryButton?: ButtonProps$4;
42
42
  onClose: (e?: any) => void;
43
43
  }
44
- declare const ActionDialog: FC<ActionDialogProps>;
45
-
44
+ declare const ActionDialog: FC<ActionDialogProps>;
45
+
46
46
  interface ActionProps$1 extends AccessibleProps {
47
47
  label: string;
48
48
  onClick: (e?: any) => void;
@@ -56,8 +56,8 @@ interface AlertProps extends AccessibleProps {
56
56
  /** Display a link to display below the description */
57
57
  action?: ActionProps$1;
58
58
  }
59
- declare const Alert: FC<AlertProps>;
60
-
59
+ declare const Alert: FC<AlertProps>;
60
+
61
61
  interface ButtonProps$3 {
62
62
  children: string;
63
63
  onClick: (e?: any) => void;
@@ -70,8 +70,8 @@ interface BulkActionBarProps extends AccessibleProps {
70
70
  onClear: (e?: any) => void;
71
71
  selectedCount?: number;
72
72
  }
73
- declare const BulkActionBar: FC<BulkActionBarProps>;
74
-
73
+ declare const BulkActionBar: FC<BulkActionBarProps>;
74
+
75
75
  interface ButtonProps$2 extends AccessibleProps {
76
76
  /** Display a number badge on the right side of the button */
77
77
  badge?: number;
@@ -92,8 +92,8 @@ interface ButtonProps$2 extends AccessibleProps {
92
92
  /** Define which button format to display. By default the Primary button will be used. */
93
93
  format?: 'primary' | 'secondary' | 'red';
94
94
  }
95
- declare const Button: FC<ButtonProps$2>;
96
-
95
+ declare const Button: FC<ButtonProps$2>;
96
+
97
97
  interface CheckboxProps extends AccessibleProps {
98
98
  /** It is used to give label to checkbox. */
99
99
  children?: string;
@@ -104,8 +104,8 @@ interface CheckboxProps extends AccessibleProps {
104
104
  /** It is used to change value of checkbox. */
105
105
  onChange: (e?: any) => void;
106
106
  }
107
- declare const Checkbox: FC<CheckboxProps>;
108
-
107
+ declare const Checkbox: FC<CheckboxProps>;
108
+
109
109
  interface OptionProps$3 {
110
110
  label?: string;
111
111
  value: string | number;
@@ -117,8 +117,8 @@ interface ChecklistProps extends AccessibleProps {
117
117
  selected: (string | number)[];
118
118
  showSelectAll?: boolean;
119
119
  }
120
- declare const Checklist: FC<ChecklistProps>;
121
-
120
+ declare const Checklist: FC<ChecklistProps>;
121
+
122
122
  interface CopyProps extends AccessibleProps {
123
123
  /** Set the text to be displayed */
124
124
  children: string;
@@ -132,8 +132,8 @@ interface CopyProps extends AccessibleProps {
132
132
  /** Set the color of the copy based on the design system color pallette */
133
133
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'GRAY' | 'MEDIUM_GRAY' | 'LIGHT_GRAY';
134
134
  }
135
- declare const Copy: FC<CopyProps>;
136
-
135
+ declare const Copy: FC<CopyProps>;
136
+
137
137
  interface ButtonProps$1 extends AccessibleProps {
138
138
  disabled: boolean;
139
139
  children: string;
@@ -158,8 +158,8 @@ interface DrawerProps extends AccessibleProps {
158
158
  /** It is used to close drawer. */
159
159
  onClose: (e?: any) => void;
160
160
  }
161
- declare const Drawer: FC<DrawerProps>;
162
-
161
+ declare const Drawer: FC<DrawerProps>;
162
+
163
163
  interface ActionProps {
164
164
  label: string;
165
165
  onClick: (e?: any) => void;
@@ -179,8 +179,29 @@ interface FieldProps extends AccessibleProps {
179
179
  /** It is used to give description to input. */
180
180
  description?: string;
181
181
  }
182
- declare const Field: FC<FieldProps>;
183
-
182
+ declare const Field: FC<FieldProps>;
183
+
184
+ interface FileUploadProps extends AccessibleProps {
185
+ /** It is used to get the array of files. */
186
+ onChange: (e: any) => void;
187
+ /** It is used to get the delete file. */
188
+ onFileDelete: (e: any) => void;
189
+ /** It is used to get max file size in MBs. */
190
+ maxFileSize: number;
191
+ /** It is used to whether the progress bar should be shown or not. */
192
+ progress: boolean;
193
+ /** It is used to set the upload progress value from 0 to 100. */
194
+ UploadProgress?: {
195
+ index: number;
196
+ progress: number;
197
+ };
198
+ /** It is used to set the value of multile file upload in boolean. */
199
+ multiple: boolean;
200
+ /** It is used to set the value of acceptable files. Example ".jpg, .jpeg, .pdf"*/
201
+ acceptFiles: string;
202
+ }
203
+ declare const FileUpload: FC<FileUploadProps>;
204
+
184
205
  interface HeadingProps extends AccessibleProps {
185
206
  /** Toggle between bold and normal font weights */
186
207
  bold?: boolean;
@@ -193,8 +214,8 @@ interface HeadingProps extends AccessibleProps {
193
214
  /** Set the type of heading to display: primary, secondary, tertiary */
194
215
  type?: 'primary' | 'secondary' | 'tertiary';
195
216
  }
196
- declare const Heading: FC<HeadingProps>;
197
-
217
+ declare const Heading: FC<HeadingProps>;
218
+
198
219
  interface InputProps extends AccessibleProps {
199
220
  format?: 'phone' | 'currency' | 'currency_decimal' | 'ssn';
200
221
  height?: string;
@@ -209,11 +230,17 @@ interface InputProps extends AccessibleProps {
209
230
  placeholder?: string;
210
231
  readOnly?: boolean;
211
232
  step?: number;
212
- type?: 'email' | 'number' | 'password' | 'tel' | 'text' | 'url' | 'textarea';
233
+ type?: 'date' | 'email' | 'number' | 'password' | 'tel' | 'text' | 'url' | 'textarea';
213
234
  value?: string;
214
235
  }
215
- declare const Input: FC<InputProps>;
216
-
236
+ declare const Input: FC<InputProps>;
237
+
238
+ interface LogoProps extends AccessibleProps {
239
+ type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
240
+ height?: string;
241
+ }
242
+ declare const Logo: FC<LogoProps>;
243
+
217
244
  interface ButtonProps {
218
245
  disabled: boolean;
219
246
  children: string;
@@ -222,10 +249,14 @@ interface ButtonProps {
222
249
  tabIndex?: number;
223
250
  }
224
251
  interface ModalProps extends AccessibleProps {
225
- primaryButton: ButtonProps;
252
+ /** Defines a button to be displayed on the far right of the bottom button bar */
253
+ primaryButton?: ButtonProps;
254
+ /** Defines a button to be displayed to the left of the primary button. Should only be used if primary button is used */
226
255
  secondaryButton?: ButtonProps;
256
+ /** Defines a button to be displayed on the far left of the bottom button bar */
227
257
  tertiaryButton?: ButtonProps;
228
- maxWidth?: string | number;
258
+ /** Overrides the default max width of the modal (90vw) */
259
+ maxWidth?: string;
229
260
  /** It is used to pass child nodes, string values and number as child components. */
230
261
  children: ReactNode;
231
262
  /** It is used to give title. */
@@ -233,8 +264,8 @@ interface ModalProps extends AccessibleProps {
233
264
  /** It is used to close modal. */
234
265
  onClose: (e?: any) => void;
235
266
  }
236
- declare const Modal: FC<ModalProps>;
237
-
267
+ declare const Modal: FC<ModalProps>;
268
+
238
269
  interface MenuItemProps extends AccessibleProps {
239
270
  icon?: string;
240
271
  label?: string;
@@ -244,8 +275,8 @@ interface MoreMenuProps extends AccessibleProps {
244
275
  menuItems: MenuItemProps[];
245
276
  maxHeight: string | number;
246
277
  }
247
- declare const MoreMenu: FC<MoreMenuProps>;
248
-
278
+ declare const MoreMenu: FC<MoreMenuProps>;
279
+
249
280
  interface OptionProps$2 {
250
281
  label?: string;
251
282
  value: string | number;
@@ -259,15 +290,15 @@ interface MultiSelectProps extends AccessibleProps {
259
290
  selected: (string | number)[];
260
291
  showSelectAll?: boolean;
261
292
  }
262
- declare const MultiSelect: FC<MultiSelectProps>;
263
-
293
+ declare const MultiSelect: FC<MultiSelectProps>;
294
+
264
295
  interface PaginationProps extends AccessibleProps {
265
296
  currentPage: number;
266
297
  onClick: (e?: any) => void;
267
298
  pageCount: number;
268
299
  }
269
- declare const Pagination: FC<PaginationProps>;
270
-
300
+ declare const Pagination: FC<PaginationProps>;
301
+
271
302
  interface RadioProps extends AccessibleProps {
272
303
  /** It is used to give label to radio. */
273
304
  children: string | number;
@@ -279,8 +310,8 @@ interface RadioProps extends AccessibleProps {
279
310
  onChange: (e?: any) => void;
280
311
  value: string | number;
281
312
  }
282
- declare const Radio: FC<RadioProps>;
283
-
313
+ declare const Radio: FC<RadioProps>;
314
+
284
315
  interface OptionProps$1 {
285
316
  label?: string;
286
317
  value: string | number;
@@ -291,8 +322,8 @@ interface RadioListProps extends AccessibleProps {
291
322
  options: OptionProps$1[];
292
323
  value: string;
293
324
  }
294
- declare const RadioList: FC<RadioListProps>;
295
-
325
+ declare const RadioList: FC<RadioListProps>;
326
+
296
327
  interface OptionProps {
297
328
  /** It is used to give label to option. */
298
329
  label: string;
@@ -322,8 +353,8 @@ interface SelectProps extends AccessibleProps {
322
353
  /** It is used to change value when an option is clicked. */
323
354
  onChange: (e: any) => void;
324
355
  }
325
- declare const Select: FC<SelectProps>;
326
-
356
+ declare const Select: FC<SelectProps>;
357
+
327
358
  interface RowObject {
328
359
  [key: string]: any;
329
360
  }
@@ -345,8 +376,8 @@ interface TableProps extends AccessibleProps {
345
376
  onSortChange?: (e?: any) => void;
346
377
  tableLayout?: string;
347
378
  }
348
- declare const Table: FC<TableProps>;
349
-
379
+ declare const Table: FC<TableProps>;
380
+
350
381
  interface TabProps extends AccessibleProps {
351
382
  label: string;
352
383
  onClick: (e?: any) => void;
@@ -355,8 +386,8 @@ interface TabProps extends AccessibleProps {
355
386
  interface TabsProps extends AccessibleProps {
356
387
  tabs: TabProps[];
357
388
  }
358
- declare const Tabs: FC<TabsProps>;
359
-
389
+ declare const Tabs: FC<TabsProps>;
390
+
360
391
  interface TagProps extends AccessibleProps {
361
392
  /** It is used to select tag-type either default or removable. */
362
393
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK';
@@ -366,16 +397,16 @@ interface TagProps extends AccessibleProps {
366
397
  /** It is callback function called when user wants to close the tag. */
367
398
  removable?: boolean;
368
399
  }
369
- declare const Tag: FC<TagProps>;
370
-
400
+ declare const Tag: FC<TagProps>;
401
+
371
402
  interface ToggleProps extends AccessibleProps {
372
403
  /** It is used to check whether Toggle is checked or not */
373
404
  on: boolean;
374
405
  /** Pass a callback then fires when user change value */
375
406
  onClick: (e?: any) => void;
376
407
  }
377
- declare const Toggle: FC<ToggleProps>;
378
-
408
+ declare const Toggle: FC<ToggleProps>;
409
+
379
410
  interface ZeroStateProps extends AccessibleProps {
380
411
  /** The SVG path of the icon to show */
381
412
  icon: string;
@@ -390,6 +421,6 @@ interface ZeroStateProps extends AccessibleProps {
390
421
  onClick: (e?: any) => void;
391
422
  };
392
423
  }
393
- declare const ZeroState: FC<ZeroStateProps>;
394
-
395
- export { Accordion, ActionDialog, Alert, BulkActionBar, Button, Checkbox, Checklist, Copy, Drawer, Field, Heading, Input, Modal, MoreMenu, MultiSelect, Pagination, Radio, RadioList, Select, Table, Tabs, Tag, Toggle, ZeroState };
424
+ declare const ZeroState: FC<ZeroStateProps>;
425
+
426
+ export { Accordion, ActionDialog, Alert, BulkActionBar, Button, Checkbox, Checklist, Copy, Drawer, Field, FileUpload, Heading, Input, Logo, Modal, MoreMenu, MultiSelect, Pagination, Radio, RadioList, Select, Table, Tabs, Tag, Toggle, ZeroState };
package/package.json CHANGED
@@ -1,90 +1,90 @@
1
- {
2
- "name": "@hexure/ui",
3
- "version": "1.3.4",
4
- "description": "A library of shared UI components used within Hexure products.",
5
- "scripts": {
6
- "rollup": "rollup -c rollup.config.mjs",
7
- "test": "jest",
8
- "prettier": "prettier --write src/",
9
- "eslint": "eslint src/",
10
- "eslint-fix": "eslint src/ --fix",
11
- "test:watch": "jest --watch",
12
- "storybook": "start-storybook -p 6006",
13
- "build-storybook": "build-storybook"
14
- },
15
- "keywords": [
16
- "hexure"
17
- ],
18
- "author": "Hexure",
19
- "license": "ISC",
20
- "devDependencies": {
21
- "@babel/core": "^7.18.13",
22
- "@babel/preset-env": "^7.18.10",
23
- "@babel/preset-react": "^7.18.6",
24
- "@babel/preset-typescript": "^7.18.6",
25
- "@rollup/plugin-babel": "^6.0.3",
26
- "@rollup/plugin-commonjs": "^25.0.0",
27
- "@rollup/plugin-eslint": "^9.0.4",
28
- "@rollup/plugin-node-resolve": "^15.0.2",
29
- "@rollup/plugin-typescript": "^11.1.1",
30
- "@storybook/addon-actions": "^6.5.16",
31
- "@storybook/addon-controls": "^6.5.16",
32
- "@storybook/addon-viewport": "^6.5.16",
33
- "@storybook/builder-webpack5": "^6.5.14",
34
- "@storybook/manager-webpack5": "^6.5.14",
35
- "@storybook/react": "^6.5.14",
36
- "@storybook/testing-library": "^0.0.13",
37
- "@testing-library/jest-dom": "^5.16.5",
38
- "@testing-library/react": "^12.1.5",
39
- "@testing-library/user-event": "^14.4.3",
40
- "@types/jest": "^29.0.3",
41
- "@types/numeral": "^2.0.2",
42
- "@types/react": "^18.0.17",
43
- "@types/styled-components": "^5.1.26",
44
- "@typescript-eslint/eslint-plugin": "^5.50.0",
45
- "@typescript-eslint/parser": "^5.50.0",
46
- "babel-jest": "^29.0.1",
47
- "babel-loader": "^8.2.5",
48
- "eslint": "^8.33.0",
49
- "eslint-config-prettier": "^8.6.0",
50
- "eslint-plugin-react": "^7.32.2",
51
- "identity-obj-proxy": "^3.0.0",
52
- "jest": "^29.0.1",
53
- "jest-environment-jsdom": "^29.0.1",
54
- "jsdom": "^20.0.0",
55
- "prettier": "^2.8.3",
56
- "react": "^16.14.0",
57
- "react-dom": "^16.14.0",
58
- "rollup": "^3.23.0",
59
- "rollup-plugin-dts": "^5.3.0",
60
- "typescript": "^4.8.2"
61
- },
62
- "main": "dist/cjs/index.js",
63
- "module": "dist/esm/index.js",
64
- "files": [
65
- "dist"
66
- ],
67
- "types": "dist/index.d.ts",
68
- "dependencies": {
69
- "@mdi/font": "^7.0.96",
70
- "@mdi/js": "^7.1.96",
71
- "@mdi/react": "^1.6.1",
72
- "dayjs": "^1.11.8",
73
- "moment": "^2.29.4",
74
- "numeral": "^2.0.6",
75
- "styled-components": "^5.3.6"
76
- },
77
- "peerDependencies": {
78
- "@mdi/font": ">=7.0.96",
79
- "@mdi/js": ">=7.1.96",
80
- "@mdi/react": ">=1.6.1",
81
- "moment": ">=2.29.4",
82
- "numeral": ">=2.0.6",
83
- "react": ">=16.14.0",
84
- "react-dom": ">=16.14.0"
85
- },
86
- "repository": {
87
- "type": "git",
88
- "url": "https://InsuranceTechnologies@dev.azure.com/InsuranceTechnologies/Enterprise/_git/InsTech.UI.Library"
89
- }
90
- }
1
+ {
2
+ "name": "@hexure/ui",
3
+ "version": "1.3.6",
4
+ "description": "A library of shared UI components used within Hexure products.",
5
+ "scripts": {
6
+ "rollup": "rollup -c rollup.config.mjs",
7
+ "test": "jest",
8
+ "prettier": "prettier --write src/",
9
+ "eslint": "eslint src/",
10
+ "eslint-fix": "eslint src/ --fix",
11
+ "test:watch": "jest --watch",
12
+ "storybook": "storybook dev -p 6006",
13
+ "build-storybook": "storybook build"
14
+ },
15
+ "keywords": [
16
+ "hexure"
17
+ ],
18
+ "author": "Hexure",
19
+ "license": "ISC",
20
+ "devDependencies": {
21
+ "@babel/core": "^7.18.13",
22
+ "@babel/preset-env": "^7.18.10",
23
+ "@babel/preset-react": "^7.18.6",
24
+ "@babel/preset-typescript": "^7.18.6",
25
+ "@rollup/plugin-babel": "^6.0.3",
26
+ "@rollup/plugin-commonjs": "^25.0.0",
27
+ "@rollup/plugin-eslint": "^9.0.4",
28
+ "@rollup/plugin-node-resolve": "^15.0.2",
29
+ "@rollup/plugin-typescript": "^11.1.1",
30
+ "@storybook/addon-actions": "^7.1.0",
31
+ "@storybook/addon-controls": "^7.1.0",
32
+ "@storybook/addon-viewport": "^7.1.0",
33
+ "@storybook/react": "^7.1.0",
34
+ "@storybook/react-webpack5": "^7.1.0",
35
+ "@storybook/testing-library": "^0.2.0",
36
+ "@testing-library/jest-dom": "^5.16.5",
37
+ "@testing-library/react": "^12.1.5",
38
+ "@testing-library/user-event": "^14.4.3",
39
+ "@types/jest": "^29.0.3",
40
+ "@types/numeral": "^2.0.2",
41
+ "@types/react": "^18.0.17",
42
+ "@types/styled-components": "^5.1.26",
43
+ "@typescript-eslint/eslint-plugin": "^5.50.0",
44
+ "@typescript-eslint/parser": "^5.50.0",
45
+ "babel-jest": "^29.0.1",
46
+ "babel-loader": "^8.2.5",
47
+ "eslint": "^8.33.0",
48
+ "eslint-config-prettier": "^8.6.0",
49
+ "eslint-plugin-react": "^7.32.2",
50
+ "identity-obj-proxy": "^3.0.0",
51
+ "jest": "^29.0.1",
52
+ "jest-environment-jsdom": "^29.0.1",
53
+ "jsdom": "^20.0.0",
54
+ "prettier": "^2.8.3",
55
+ "react": "^16.14.0",
56
+ "react-dom": "^16.14.0",
57
+ "rollup": "^3.23.0",
58
+ "rollup-plugin-dts": "^5.3.0",
59
+ "storybook": "^7.1.0",
60
+ "typescript": "^4.8.2"
61
+ },
62
+ "main": "dist/cjs/index.js",
63
+ "module": "dist/esm/index.js",
64
+ "files": [
65
+ "dist"
66
+ ],
67
+ "types": "dist/index.d.ts",
68
+ "dependencies": {
69
+ "@mdi/font": ">=7.0.96",
70
+ "@mdi/js": ">=7.1.96",
71
+ "@mdi/react": ">=1.6.1",
72
+ "dayjs": "^1.11.8",
73
+ "moment": ">=2.29.4",
74
+ "numeral": ">=2.0.6",
75
+ "styled-components": "^5.3.6"
76
+ },
77
+ "peerDependencies": {
78
+ "@mdi/font": ">=7.0.96",
79
+ "@mdi/js": ">=7.1.96",
80
+ "@mdi/react": ">=1.6.1",
81
+ "moment": ">=2.29.4",
82
+ "numeral": ">=2.0.6",
83
+ "react": ">=16.14.0",
84
+ "react-dom": ">=16.14.0"
85
+ },
86
+ "repository": {
87
+ "type": "git",
88
+ "url": "https://InsuranceTechnologies@dev.azure.com/InsuranceTechnologies/Enterprise/_git/InsTech.UI.Library"
89
+ }
90
+ }
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<React.FC<import("./Accordion").AccordionProps>>;
4
- export default _default;
5
- export declare const _Accordion: ComponentStory<React.FC<import("./Accordion").AccordionProps>>;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<React.FC<import("./ActionDialog").ActionDialogProps>>;
4
- export default _default;
5
- export declare const _ActionDialog: ComponentStory<React.FC<import("./ActionDialog").ActionDialogProps>>;
@@ -1 +0,0 @@
1
- import '@testing-library/jest-dom';
@@ -1,5 +0,0 @@
1
- import { ComponentMeta, ComponentStory } from '@storybook/react';
2
- import React from 'react';
3
- declare const _default: ComponentMeta<React.FC<import("./Alert").AlertProps>>;
4
- export default _default;
5
- export declare const _Alert: ComponentStory<React.FC<import("./Alert").AlertProps>>;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { ComponentMeta, ComponentStory } from '@storybook/react';
3
- declare const _default: ComponentMeta<React.FC<import("./BulkActionBar").BulkActionBarProps>>;
4
- export default _default;
5
- export declare const _BulkActionBar: ComponentStory<React.FC<import("./BulkActionBar").BulkActionBarProps>>;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<React.FC<import("./Button").ButtonProps>>;
4
- export default _default;
5
- export declare const _Button: ComponentStory<React.FC<import("./Button").ButtonProps>>;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<React.FC<import("./Checkbox").CheckboxProps>>;
4
- export default _default;
5
- export declare const _Checkbox: ComponentStory<React.FC<import("./Checkbox").CheckboxProps>>;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<React.FC<import("./Checklist").ChecklistProps>>;
4
- export default _default;
5
- export declare const _Checklist: ComponentStory<React.FC<import("./Checklist").ChecklistProps>>;
@@ -1,5 +0,0 @@
1
- import { ComponentMeta, ComponentStory } from '@storybook/react';
2
- import React from 'react';
3
- declare const _default: ComponentMeta<React.FC<import("./Copy").CopyProps>>;
4
- export default _default;
5
- export declare const _Copy: ComponentStory<React.FC<import("./Copy").CopyProps>>;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<React.FC<import("./DatePicker").DateProps>>;
4
- export default _default;
5
- export declare const _DatePicker: ComponentStory<React.FC<import("./DatePicker").DateProps>>;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<React.FC<import("./Drawer").DrawerProps>>;
4
- export default _default;
5
- export declare const _Drawer: ComponentStory<React.FC<import("./Drawer").DrawerProps>>;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { ComponentStory, ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<React.FC<import("./Field").FieldProps>>;
4
- export default _default;
5
- export declare const _Field: ComponentStory<React.FC<import("./Field").FieldProps>>;