@hexure/ui 1.13.44 → 1.13.45

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 data-itemid for the main wrapping html element */
5
5
  id?: string;
@@ -14,8 +14,8 @@ interface AccessibleProps {
14
14
  tabIndex?: number;
15
15
  /** Set a label for an interactive element. See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label */
16
16
  'aria-label'?: string;
17
- }
18
-
17
+ }
18
+
19
19
  interface AccordionProps extends AccessibleProps {
20
20
  dataItemid?: string;
21
21
  title?: string;
@@ -26,8 +26,8 @@ interface AccordionProps extends AccessibleProps {
26
26
  /** Method to call when the header is clicked */
27
27
  onClick: (e?: any) => void;
28
28
  }
29
- declare const Accordion: FC<AccordionProps>;
30
-
29
+ declare const Accordion: FC<AccordionProps>;
30
+
31
31
  interface ButtonProps$4 {
32
32
  children: string;
33
33
  format?: string;
@@ -54,8 +54,8 @@ interface ActionDialogProps extends AccessibleProps {
54
54
  interface CustomStyle {
55
55
  [key: string]: string | number;
56
56
  }
57
- declare const ActionDialog: FC<ActionDialogProps>;
58
-
57
+ declare const ActionDialog: FC<ActionDialogProps>;
58
+
59
59
  interface ActionProps$1 extends AccessibleProps {
60
60
  label: string;
61
61
  onClick: (e?: any) => void;
@@ -73,8 +73,8 @@ interface AlertProps extends AccessibleProps {
73
73
  /** Optional ID for automation purposes */
74
74
  dataItemid?: string;
75
75
  }
76
- declare const Alert: FC<AlertProps>;
77
-
76
+ declare const Alert: FC<AlertProps>;
77
+
78
78
  interface TooltipProps {
79
79
  /** It is used to give label to tag. */
80
80
  children: any;
@@ -87,8 +87,8 @@ interface TooltipProps {
87
87
  /** Optional ID for automation purposes */
88
88
  dataItemid?: string;
89
89
  }
90
- declare const Tooltip: FC<TooltipProps>;
91
-
90
+ declare const Tooltip: FC<TooltipProps>;
91
+
92
92
  interface ButtonProps$3 extends AccessibleProps {
93
93
  /** Display a number badge on the right side of the button */
94
94
  badge?: number;
@@ -118,16 +118,16 @@ interface ButtonProps$3 extends AccessibleProps {
118
118
  /** Optional ID for automation purposes */
119
119
  dataItemid?: string;
120
120
  }
121
- declare const Button: FC<ButtonProps$3>;
122
-
121
+ declare const Button: FC<ButtonProps$3>;
122
+
123
123
  interface AppHeaderProps {
124
124
  logoUrl?: string;
125
125
  buttons: ButtonProps$3[];
126
126
  /** Optional ID for automation purposes */
127
127
  dataItemid?: string;
128
128
  }
129
- declare const AppHeader: FC<AppHeaderProps>;
130
-
129
+ declare const AppHeader: FC<AppHeaderProps>;
130
+
131
131
  interface MenuItemType extends AccessibleProps {
132
132
  icon: string;
133
133
  label: string;
@@ -148,8 +148,8 @@ interface AppMenuProps extends AccessibleProps {
148
148
  /** Optional ID for automation purposes */
149
149
  dataItemid?: string;
150
150
  }
151
- declare const AppMenu: FC<AppMenuProps>;
152
-
151
+ declare const AppMenu: FC<AppMenuProps>;
152
+
153
153
  interface ButtonProps$2 {
154
154
  children: string;
155
155
  onClick: (e?: any) => void;
@@ -164,8 +164,8 @@ interface BulkActionBarProps extends AccessibleProps {
164
164
  /** Optional ID for automation purposes */
165
165
  dataItemid?: string;
166
166
  }
167
- declare const BulkActionBar: FC<BulkActionBarProps>;
168
-
167
+ declare const BulkActionBar: FC<BulkActionBarProps>;
168
+
169
169
  interface MenuItemProps extends AccessibleProps {
170
170
  icon?: string;
171
171
  label?: string;
@@ -178,8 +178,8 @@ interface MoreMenuProps extends AccessibleProps {
178
178
  /** Optional ID for automation purposes */
179
179
  dataItemid?: string;
180
180
  }
181
- declare const MoreMenu: FC<MoreMenuProps>;
182
-
181
+ declare const MoreMenu: FC<MoreMenuProps>;
182
+
183
183
  interface ButtonMenuProps {
184
184
  disabled?: boolean;
185
185
  label: string;
@@ -195,8 +195,8 @@ interface ButtonMenuProps {
195
195
  /** Optional ID for automation purposes */
196
196
  dataItemid?: string;
197
197
  }
198
- declare const ButtonMenu: FC<ButtonMenuProps>;
199
-
198
+ declare const ButtonMenu: FC<ButtonMenuProps>;
199
+
200
200
  interface CheckboxProps extends AccessibleProps {
201
201
  /** It is used to give label to checkbox. */
202
202
  children?: string;
@@ -214,8 +214,8 @@ interface CheckboxProps extends AccessibleProps {
214
214
  /** Optional ID for automation purposes */
215
215
  dataItemid?: string;
216
216
  }
217
- declare const Checkbox: FC<CheckboxProps>;
218
-
217
+ declare const Checkbox: FC<CheckboxProps>;
218
+
219
219
  interface OptionProps$3 {
220
220
  label?: string;
221
221
  value: string | number;
@@ -230,8 +230,8 @@ interface ChecklistProps extends AccessibleProps {
230
230
  /** Optional ID for automation purposes */
231
231
  dataItemid?: string;
232
232
  }
233
- declare const Checklist: FC<ChecklistProps>;
234
-
233
+ declare const Checklist: FC<ChecklistProps>;
234
+
235
235
  interface CopyProps extends AccessibleProps {
236
236
  /** Set the text to be displayed */
237
237
  children: string | React.ReactNode;
@@ -247,8 +247,8 @@ interface CopyProps extends AccessibleProps {
247
247
  /** Optional ID for automation purposes */
248
248
  dataItemid?: string;
249
249
  }
250
- declare const Copy: FC<CopyProps>;
251
-
250
+ declare const Copy: FC<CopyProps>;
251
+
252
252
  interface styleProps$3 {
253
253
  width?: number | string;
254
254
  }
@@ -269,8 +269,8 @@ interface DateProps extends AccessibleProps {
269
269
  dataItemid?: string;
270
270
  locale?: localeProps;
271
271
  }
272
- declare const DatePicker: FC<DateProps>;
273
-
272
+ declare const DatePicker: FC<DateProps>;
273
+
274
274
  interface ButtonProps$1 extends AccessibleProps {
275
275
  disabled?: boolean;
276
276
  children: string;
@@ -301,8 +301,8 @@ interface DrawerProps extends AccessibleProps {
301
301
  /** Optional ID for automation purposes */
302
302
  dataItemid?: string;
303
303
  }
304
- declare const Drawer: FC<DrawerProps>;
305
-
304
+ declare const Drawer: FC<DrawerProps>;
305
+
306
306
  interface ActionProps {
307
307
  dataItemid?: string;
308
308
  label: string;
@@ -327,8 +327,8 @@ interface FieldProps extends AccessibleProps {
327
327
  /** Optional ID for automation purposes */
328
328
  dataItemid?: string;
329
329
  }
330
- declare const Field: FC<FieldProps>;
331
-
330
+ declare const Field: FC<FieldProps>;
331
+
332
332
  interface FieldGroupProps {
333
333
  /** The label to display above the field group */
334
334
  label: string;
@@ -337,8 +337,8 @@ interface FieldGroupProps {
337
337
  /** Optional ID for automation purposes */
338
338
  dataItemid?: string;
339
339
  }
340
- declare const FieldGroup: FC<FieldGroupProps>;
341
-
340
+ declare const FieldGroup: FC<FieldGroupProps>;
341
+
342
342
  interface FileUploadProps {
343
343
  /** A method to call when files are added/removed. Return the new file or array of files. */
344
344
  onChange?: (files: Array<File>) => void;
@@ -363,8 +363,8 @@ interface ErrorObject {
363
363
  file: File;
364
364
  message: string;
365
365
  }
366
- declare const FileUpload: FC<FileUploadProps>;
367
-
366
+ declare const FileUpload: FC<FileUploadProps>;
367
+
368
368
  interface HeadingProps extends AccessibleProps {
369
369
  /** Toggle between bold and normal font weights */
370
370
  bold?: boolean;
@@ -379,8 +379,8 @@ interface HeadingProps extends AccessibleProps {
379
379
  /** Optional ID for automation purposes */
380
380
  dataItemid?: string;
381
381
  }
382
- declare const Heading: FC<HeadingProps>;
383
-
382
+ declare const Heading: FC<HeadingProps>;
383
+
384
384
  interface styleProps$2 {
385
385
  width?: number | string;
386
386
  }
@@ -413,8 +413,8 @@ interface InputProps extends AccessibleProps {
413
413
  /** Optional ID for automation purposes */
414
414
  dataItemid?: string;
415
415
  }
416
- declare const Input: FC<InputProps>;
417
-
416
+ declare const Input: FC<InputProps>;
417
+
418
418
  interface LinkProps extends AccessibleProps {
419
419
  /** Set the text to be displayed */
420
420
  children: string;
@@ -425,22 +425,22 @@ interface LinkProps extends AccessibleProps {
425
425
  /** Optional ID for automation purposes */
426
426
  dataItemid?: string;
427
427
  }
428
- declare const Link: FC<LinkProps>;
429
-
428
+ declare const Link: FC<LinkProps>;
429
+
430
430
  interface LoaderProps {
431
431
  /** Optional ID for automation purposes */
432
432
  dataItemid?: string;
433
433
  }
434
- declare const Loader: FC<LoaderProps>;
435
-
434
+ declare const Loader: FC<LoaderProps>;
435
+
436
436
  interface LogoProps extends AccessibleProps {
437
437
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
438
438
  height?: string;
439
439
  /** Optional ID for automation purposes */
440
440
  dataItemid?: string;
441
441
  }
442
- declare const Logo: FC<LogoProps>;
443
-
442
+ declare const Logo: FC<LogoProps>;
443
+
444
444
  interface StepProps {
445
445
  label: string | ReactNode;
446
446
  complete?: boolean;
@@ -452,8 +452,8 @@ interface ProgressBarProps {
452
452
  /** Optional ID for automation purposes */
453
453
  dataItemid?: string;
454
454
  }
455
- declare const ProgressBar: FC<ProgressBarProps>;
456
-
455
+ declare const ProgressBar: FC<ProgressBarProps>;
456
+
457
457
  interface ButtonProps {
458
458
  disabled?: boolean;
459
459
  children: string;
@@ -487,8 +487,8 @@ interface ModalProps extends AccessibleProps {
487
487
  /** Optional ID for automation purposes */
488
488
  dataItemid?: string;
489
489
  }
490
- declare const Modal: FC<ModalProps>;
491
-
490
+ declare const Modal: FC<ModalProps>;
491
+
492
492
  interface OptionProps$2 {
493
493
  label?: string;
494
494
  value: string | number;
@@ -510,8 +510,8 @@ interface MultiSelectProps extends AccessibleProps {
510
510
  /** Optional ID for automation purposes */
511
511
  dataItemid?: string;
512
512
  }
513
- declare const MultiSelect: FC<MultiSelectProps>;
514
-
513
+ declare const MultiSelect: FC<MultiSelectProps>;
514
+
515
515
  interface TagProps extends AccessibleProps {
516
516
  /** It is used to select tag-type either default or removable. */
517
517
  color?: 'PRIMARY' | 'GREEN' | 'RED' | 'YELLOW' | 'BLACK' | 'SUBTLE_GRAY';
@@ -524,8 +524,8 @@ interface TagProps extends AccessibleProps {
524
524
  /** Optional ID for automation purposes */
525
525
  dataItemid?: string;
526
526
  }
527
- declare const Tag: FC<TagProps>;
528
-
527
+ declare const Tag: FC<TagProps>;
528
+
529
529
  interface PageHeaderProps {
530
530
  title?: string;
531
531
  breadcrumbs?: Array<{
@@ -555,8 +555,8 @@ interface PageHeaderProps {
555
555
  /** Optional ID for automation purposes */
556
556
  dataItemid?: string;
557
557
  }
558
- declare const PageHeader: FC<PageHeaderProps>;
559
-
558
+ declare const PageHeader: FC<PageHeaderProps>;
559
+
560
560
  interface PaginationProps extends AccessibleProps {
561
561
  currentPage: number;
562
562
  onClick: (e?: any) => void;
@@ -564,8 +564,8 @@ interface PaginationProps extends AccessibleProps {
564
564
  /** Optional ID for automation purposes */
565
565
  dataItemid?: string;
566
566
  }
567
- declare const Pagination: FC<PaginationProps>;
568
-
567
+ declare const Pagination: FC<PaginationProps>;
568
+
569
569
  interface RadioProps extends AccessibleProps {
570
570
  /** It is used to give label to radio. */
571
571
  children: string | number;
@@ -584,8 +584,8 @@ interface RadioProps extends AccessibleProps {
584
584
  /** Optional ID for automation purposes */
585
585
  dataItemid?: string;
586
586
  }
587
- declare const Radio: FC<RadioProps>;
588
-
587
+ declare const Radio: FC<RadioProps>;
588
+
589
589
  interface OptionProps$1 {
590
590
  label?: string;
591
591
  value: string | number;
@@ -598,8 +598,8 @@ interface RadioListProps extends AccessibleProps {
598
598
  /** Optional ID for automation purposes */
599
599
  dataItemid?: string;
600
600
  }
601
- declare const RadioList: FC<RadioListProps>;
602
-
601
+ declare const RadioList: FC<RadioListProps>;
602
+
603
603
  interface OptionProps {
604
604
  label?: string;
605
605
  value: string | number;
@@ -630,8 +630,8 @@ interface SelectProps extends AccessibleProps {
630
630
  /** Optional ID for automation purposes */
631
631
  dataItemid?: string;
632
632
  }
633
- declare const Select: FC<SelectProps>;
634
-
633
+ declare const Select: FC<SelectProps>;
634
+
635
635
  interface RowObject {
636
636
  [key: string]: any;
637
637
  }
@@ -657,8 +657,8 @@ interface TableProps extends AccessibleProps {
657
657
  /** Optional ID for automation purposes */
658
658
  dataItemid?: string;
659
659
  }
660
- declare const Table: FC<TableProps>;
661
-
660
+ declare const Table: FC<TableProps>;
661
+
662
662
  interface TabProps extends AccessibleProps {
663
663
  badgeCount?: number;
664
664
  errorBadge?: boolean;
@@ -671,8 +671,8 @@ interface TabsProps extends AccessibleProps {
671
671
  /** Optional ID for automation purposes */
672
672
  dataItemid?: string;
673
673
  }
674
- declare const Tabs: FC<TabsProps>;
675
-
674
+ declare const Tabs: FC<TabsProps>;
675
+
676
676
  interface ToggleProps extends AccessibleProps {
677
677
  /** It is used to check whether Toggle is checked or not */
678
678
  on: boolean;
@@ -681,8 +681,8 @@ interface ToggleProps extends AccessibleProps {
681
681
  /** Optional ID for automation purposes */
682
682
  dataItemid?: string;
683
683
  }
684
- declare const Toggle: FC<ToggleProps>;
685
-
684
+ declare const Toggle: FC<ToggleProps>;
685
+
686
686
  interface ZeroStateProps extends AccessibleProps {
687
687
  /** The SVG path of the icon to show */
688
688
  icon: string;
@@ -701,8 +701,8 @@ interface ZeroStateProps extends AccessibleProps {
701
701
  /** Optional ID for automation purposes */
702
702
  dataItemid?: string;
703
703
  }
704
- declare const ZeroState: FC<ZeroStateProps>;
705
-
704
+ declare const ZeroState: FC<ZeroStateProps>;
705
+
706
706
  declare const getAgesFromDob: (dob: string) => {
707
707
  calculated_nearest_age: number | null;
708
708
  calculated_current_age: number | null;
@@ -716,8 +716,8 @@ declare const getYears: () => {
716
716
  declare const validateEmail: (email: string) => boolean;
717
717
  declare const validatePhone: (phone: string) => boolean;
718
718
  declare const formatAsPhone: (number: string) => string;
719
- declare const formatAsSsn: (number: string) => string;
720
-
719
+ declare const formatAsSsn: (number: string) => string;
720
+
721
721
  declare const Colors: {
722
722
  PRIMARY: {
723
723
  Hex: string;
@@ -769,6 +769,6 @@ declare const EditableTheme: {
769
769
  Hex: string;
770
770
  Rgb: string;
771
771
  };
772
- };
773
-
774
- 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 };
772
+ };
773
+
774
+ 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.44",
3
+ "version": "1.13.45",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",
@@ -26,6 +26,7 @@
26
26
  "@rollup/plugin-babel": "^6.0.3",
27
27
  "@rollup/plugin-commonjs": "^25.0.0",
28
28
  "@rollup/plugin-eslint": "^9.0.4",
29
+ "@rollup/plugin-json": "^6.1.0",
29
30
  "@rollup/plugin-node-resolve": "^15.0.2",
30
31
  "@rollup/plugin-typescript": "^11.1.1",
31
32
  "@storybook/addon-actions": "^8.2.4",
@@ -42,11 +43,13 @@
42
43
  "@types/numeral": "^2.0.2",
43
44
  "@types/react": "^18.2.33",
44
45
  "@types/react-dom": "^18.2.14",
45
- "@types/styled-components": "^5.1.26",
46
+ "@types/styled-components": "^5.1.24",
46
47
  "@typescript-eslint/eslint-plugin": "^5.50.0",
47
48
  "@typescript-eslint/parser": "^5.50.0",
48
49
  "babel-jest": "^29.0.1",
49
50
  "babel-loader": "^8.2.5",
51
+ "babel-plugin-macros": "^3.1.0",
52
+ "babel-plugin-styled-components": "^2.1.4",
50
53
  "eslint": "^8.33.0",
51
54
  "eslint-config-prettier": "^8.6.0",
52
55
  "eslint-plugin-react": "^7.32.2",
@@ -70,17 +73,19 @@
70
73
  "types": "dist/index.d.ts",
71
74
  "peerDependencies": {
72
75
  "@mdi/font": ">=7.0.96",
73
- "@mdi/js": ">=7.1.96",
74
- "@mdi/react": ">=1.6.1",
76
+ "@mdi/js": "^7.4.47",
77
+ "@mdi/react": "^1.6.1",
75
78
  "dayjs": "^1.11.8",
76
79
  "moment": ">=2.29.4",
77
80
  "numeral": ">=2.0.6",
78
81
  "react": ">=16.14.0",
79
- "react-dom": ">=16.14.0",
80
- "styled-components": "^6.1.8"
82
+ "react-dom": ">=16.14.0"
81
83
  },
82
84
  "repository": {
83
85
  "type": "git",
84
86
  "url": "https://InsuranceTechnologies@dev.azure.com/InsuranceTechnologies/Enterprise/_git/InsTech.UI.Library"
87
+ },
88
+ "dependencies": {
89
+ "styled-components": "^5.2.1"
85
90
  }
86
- }
91
+ }