@laerdal/life-react-components 2.1.0 → 2.1.1-dev.3

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 (103) hide show
  1. package/dist/AuthPage/AuthPage.d.ts +1 -1
  2. package/dist/Banners/Banner.d.ts +1 -1
  3. package/dist/Banners/OverviewBanner.d.ts +1 -1
  4. package/dist/Breadcrumb/Breadcrumb.d.ts +1 -1
  5. package/dist/Button/Iconbutton.cjs +6 -4
  6. package/dist/Button/Iconbutton.cjs.map +1 -1
  7. package/dist/Button/Iconbutton.d.ts +1 -0
  8. package/dist/Button/Iconbutton.js +6 -4
  9. package/dist/Button/Iconbutton.js.map +1 -1
  10. package/dist/Card/HorizontalCard/HorizontalCardActions.d.ts +1 -1
  11. package/dist/Card/HorizontalCard/HorizontalCardBody.d.ts +1 -1
  12. package/dist/Card/HorizontalCard/HorizontalCardThumbnail.d.ts +1 -1
  13. package/dist/Card/HorizontalCard/types.d.ts +4 -4
  14. package/dist/Chips/ChipTypes.d.ts +2 -2
  15. package/dist/ChipsInput/ChipDropdownInput.cjs.map +1 -1
  16. package/dist/ChipsInput/ChipDropdownInput.d.ts +1 -1
  17. package/dist/ChipsInput/ChipDropdownInput.js.map +1 -1
  18. package/dist/ChipsInput/ChipInput.cjs +13 -2
  19. package/dist/ChipsInput/ChipInput.cjs.map +1 -1
  20. package/dist/ChipsInput/ChipInput.js +14 -3
  21. package/dist/ChipsInput/ChipInput.js.map +1 -1
  22. package/dist/ChipsInput/ChipInputField.cjs +1 -0
  23. package/dist/ChipsInput/ChipInputField.cjs.map +1 -1
  24. package/dist/ChipsInput/ChipInputField.js +1 -0
  25. package/dist/ChipsInput/ChipInputField.js.map +1 -1
  26. package/dist/ChipsInput/ChipInputTypes.cjs.map +1 -1
  27. package/dist/ChipsInput/ChipInputTypes.d.ts +2 -1
  28. package/dist/ChipsInput/ChipInputTypes.js.map +1 -1
  29. package/dist/Dropdown/BasicDropdown.cjs.map +1 -1
  30. package/dist/Dropdown/BasicDropdown.d.ts +3 -3
  31. package/dist/Dropdown/BasicDropdown.js.map +1 -1
  32. package/dist/Dropdown/CommonStyling.cjs +1 -1
  33. package/dist/Dropdown/CommonStyling.cjs.map +1 -1
  34. package/dist/Dropdown/CommonStyling.js +1 -1
  35. package/dist/Dropdown/CommonStyling.js.map +1 -1
  36. package/dist/Dropdown/DropdownButtonTypes.d.ts +3 -3
  37. package/dist/GlobalNavigationBar/GlobalNavigationBar.cjs +13 -7
  38. package/dist/GlobalNavigationBar/GlobalNavigationBar.cjs.map +1 -1
  39. package/dist/GlobalNavigationBar/GlobalNavigationBar.d.ts +3 -2
  40. package/dist/GlobalNavigationBar/GlobalNavigationBar.js +13 -7
  41. package/dist/GlobalNavigationBar/GlobalNavigationBar.js.map +1 -1
  42. package/dist/GlobalNavigationBar/Logo.d.ts +1 -1
  43. package/dist/GlobalNavigationBar/desktop/DesktopActions.cjs +3 -1
  44. package/dist/GlobalNavigationBar/desktop/DesktopActions.cjs.map +1 -1
  45. package/dist/GlobalNavigationBar/desktop/DesktopActions.d.ts +1 -0
  46. package/dist/GlobalNavigationBar/desktop/DesktopActions.js +3 -1
  47. package/dist/GlobalNavigationBar/desktop/DesktopActions.js.map +1 -1
  48. package/dist/GlobalNavigationBar/desktop/ExtendedMainMenu.d.ts +1 -1
  49. package/dist/GlobalNavigationBar/desktop/MainMenu.d.ts +1 -1
  50. package/dist/GlobalNavigationBar/desktop/RightSideNav.cjs +1 -1
  51. package/dist/GlobalNavigationBar/desktop/RightSideNav.cjs.map +1 -1
  52. package/dist/GlobalNavigationBar/desktop/RightSideNav.d.ts +1 -1
  53. package/dist/GlobalNavigationBar/desktop/RightSideNav.js +1 -1
  54. package/dist/GlobalNavigationBar/desktop/RightSideNav.js.map +1 -1
  55. package/dist/GlobalNavigationBar/desktop/UserMenu.cjs +4 -2
  56. package/dist/GlobalNavigationBar/desktop/UserMenu.cjs.map +1 -1
  57. package/dist/GlobalNavigationBar/desktop/UserMenu.js +4 -2
  58. package/dist/GlobalNavigationBar/desktop/UserMenu.js.map +1 -1
  59. package/dist/GlobalNavigationBar/mobile/MobileMenu.cjs +3 -0
  60. package/dist/GlobalNavigationBar/mobile/MobileMenu.cjs.map +1 -1
  61. package/dist/GlobalNavigationBar/mobile/MobileMenu.d.ts +1 -1
  62. package/dist/GlobalNavigationBar/mobile/MobileMenu.js +3 -0
  63. package/dist/GlobalNavigationBar/mobile/MobileMenu.js.map +1 -1
  64. package/dist/GlobalNavigationBar/mobile/MobileMenuHeader.cjs +2 -2
  65. package/dist/GlobalNavigationBar/mobile/MobileMenuHeader.cjs.map +1 -1
  66. package/dist/GlobalNavigationBar/mobile/MobileMenuHeader.js +3 -2
  67. package/dist/GlobalNavigationBar/mobile/MobileMenuHeader.js.map +1 -1
  68. package/dist/GlobalNavigationBar/types.d.ts +7 -7
  69. package/dist/Image/ImageWithFallbacks.d.ts +1 -1
  70. package/dist/InputFields/Label.d.ts +1 -1
  71. package/dist/InputFields/QuickSearch.d.ts +1 -1
  72. package/dist/InputFields/ResponsiveComponentWrapper.d.ts +1 -1
  73. package/dist/InputFields/SearchBar.d.ts +1 -1
  74. package/dist/InputFields/components/SearchBarInput.d.ts +1 -1
  75. package/dist/InputFields/types.d.ts +3 -3
  76. package/dist/List/ListRow.d.ts +1 -1
  77. package/dist/LoadingIndicator/LoadingIndicator.d.ts +1 -1
  78. package/dist/MiniProductCard/MiniProductCard.d.ts +1 -1
  79. package/dist/Modals/Modal.d.ts +1 -1
  80. package/dist/Modals/ModalContainer.d.ts +2 -2
  81. package/dist/Modals/ModalTypes.d.ts +1 -1
  82. package/dist/NavItem/NavItem.d.ts +1 -1
  83. package/dist/Paginator/Paginator.d.ts +1 -1
  84. package/dist/Popover/Popover.d.ts +4 -4
  85. package/dist/ProfileButton/ProfileButton.d.ts +1 -1
  86. package/dist/QuizButton/QuizButton.d.ts +1 -1
  87. package/dist/SideMenu/types.d.ts +3 -3
  88. package/dist/SkipToContent/SkipToContent.d.ts +1 -1
  89. package/dist/Table/TableTypes.d.ts +4 -4
  90. package/dist/Tabs/TabLink.d.ts +1 -1
  91. package/dist/Tabs/Tabs.d.ts +1 -1
  92. package/dist/Tag/Tag.cjs +1 -1
  93. package/dist/Tag/Tag.cjs.map +1 -1
  94. package/dist/Tag/Tag.d.ts +2 -2
  95. package/dist/Tag/Tag.js +1 -1
  96. package/dist/Tag/Tag.js.map +1 -1
  97. package/dist/Tile/TileTypes.d.ts +8 -8
  98. package/dist/Toasters/Toast.d.ts +2 -2
  99. package/dist/Toasters/ToastContext.d.ts +2 -2
  100. package/dist/assets/index.d.ts +1 -1
  101. package/dist/icons/index.d.ts +2 -2
  102. package/dist/styles/typography.d.ts +2 -2
  103. package/package.json +10 -13
@@ -5,33 +5,33 @@ import { DropdownButtonProps } from '../Dropdown/DropdownButtonTypes';
5
5
  import { ButtonProps } from '../Button/Button';
6
6
  import { HyperlinkProps } from '../HyperLink/HyperLink';
7
7
  import { Size } from '../types';
8
- export declare type TileIconButton = Pick<IconButtonProps, 'action' | 'disabled'> & {
8
+ export type TileIconButton = Pick<IconButtonProps, 'action' | 'disabled'> & {
9
9
  componentType: 'icon';
10
10
  icon: React.ReactNode;
11
11
  };
12
- export declare type TileToggleButton = Pick<ToggleButtonProps, 'active' | 'onChange' | 'disabled' | 'defaultState' | 'activeState'> & {
12
+ export type TileToggleButton = Pick<ToggleButtonProps, 'active' | 'onChange' | 'disabled' | 'defaultState' | 'activeState'> & {
13
13
  componentType: 'toggle';
14
14
  };
15
- export declare type TileDropdownButton = Pick<DropdownButtonProps, 'items' | 'onClick' | 'disabled' | 'itemsType' | 'action' | 'actionIcon' | 'actionLabel' | 'actionLoading' | 'actionVariant' | 'multiSelect' | 'scrollable' | 'pinTopItem' | 'maxHeight'> & {
15
+ export type TileDropdownButton = Pick<DropdownButtonProps, 'items' | 'onClick' | 'disabled' | 'itemsType' | 'action' | 'actionIcon' | 'actionLabel' | 'actionLoading' | 'actionVariant' | 'multiSelect' | 'scrollable' | 'pinTopItem' | 'maxHeight'> & {
16
16
  componentType: 'dropdown';
17
17
  icon: React.ReactNode;
18
18
  };
19
- export declare type TileStandardButton = Pick<ButtonProps, 'variant' | 'loading' | 'icon' | 'onClick' | 'disabled'> & {
19
+ export type TileStandardButton = Pick<ButtonProps, 'variant' | 'loading' | 'icon' | 'onClick' | 'disabled'> & {
20
20
  componentType: 'button';
21
21
  buttonText: string;
22
22
  };
23
- export declare type TileNote = {
23
+ export type TileNote = {
24
24
  componentType: 'note';
25
25
  noteIcon?: React.ReactNode;
26
26
  noteText: string;
27
27
  };
28
- export declare type TileHyperLink = HyperlinkProps & {
28
+ export type TileHyperLink = HyperlinkProps & {
29
29
  componentType: 'link';
30
30
  linkIcon?: React.ReactNode;
31
31
  linkText: string;
32
32
  };
33
- export declare type FooterButtons = TileIconButton | TileToggleButton | TileDropdownButton | TileStandardButton;
34
- export declare type HeaderButtons = TileIconButton | TileToggleButton | TileDropdownButton;
33
+ export type FooterButtons = TileIconButton | TileToggleButton | TileDropdownButton | TileStandardButton;
34
+ export type HeaderButtons = TileIconButton | TileToggleButton | TileDropdownButton;
35
35
  export interface TileHeaderProps {
36
36
  title: string;
37
37
  tooltip?: string;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ToastActionType, ToastColor, ToastEntryDirection, ToastPosition } from '../types';
3
- export declare type ToastOptions = {
3
+ export type ToastOptions = {
4
4
  color?: ToastColor;
5
5
  autoClose?: boolean;
6
6
  delay?: number;
@@ -14,7 +14,7 @@ export declare type ToastOptions = {
14
14
  enterFrom?: ToastEntryDirection;
15
15
  icon?: React.ReactNode;
16
16
  };
17
- declare type Props = {
17
+ type Props = {
18
18
  remove?: any;
19
19
  content: any;
20
20
  options?: ToastOptions;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { ToastOptions } from './Toast';
3
- export declare type ToastProviderProps = {
3
+ export type ToastProviderProps = {
4
4
  children?: any;
5
5
  };
6
6
  export interface toast {
@@ -8,7 +8,7 @@ export interface toast {
8
8
  id: string;
9
9
  content: any;
10
10
  }
11
- export declare type ToasterValueProps = {
11
+ export type ToasterValueProps = {
12
12
  toasts: toast[];
13
13
  addToast: (content: any, options: ToastOptions) => string;
14
14
  removeToast: (id: string) => void;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type IconProps = {
2
+ export type IconProps = {
3
3
  className?: string;
4
4
  color?: string;
5
5
  size?: string;
@@ -1,12 +1,12 @@
1
1
  import * as React from 'react';
2
2
  import * as ContentIcons from './contenticons/ContentIcons';
3
3
  import * as SystemIcons from './systemicons/SystemIcons';
4
- export declare type BaseProps = {
4
+ export type BaseProps = {
5
5
  children?: any;
6
6
  tooltip?: string;
7
7
  tooltipId?: string;
8
8
  };
9
- export declare type IconProps = {
9
+ export type IconProps = {
10
10
  label?: string;
11
11
  className?: string;
12
12
  color?: string;
@@ -36,7 +36,7 @@ declare enum ParagraphTextStyle {
36
36
  Italic = 3,
37
37
  Underline = 4
38
38
  }
39
- declare type ParagraphProps = {
39
+ type ParagraphProps = {
40
40
  color?: string;
41
41
  textStyle?: ParagraphTextStyle;
42
42
  children?: React.ReactNode;
@@ -57,7 +57,7 @@ declare enum ComponentTextStyle {
57
57
  Italic = 3,
58
58
  UppercaseBold = 4
59
59
  }
60
- declare type ComponentProps = {
60
+ type ComponentProps = {
61
61
  color?: string;
62
62
  className?: string;
63
63
  textStyle?: ComponentTextStyle;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laerdal/life-react-components",
3
- "version": "2.1.0",
3
+ "version": "2.1.1-dev.3",
4
4
  "private": false,
5
5
  "author": "Erik Martirosyan <erik.martirosyan@laerdal.com>",
6
6
  "contributors": [],
@@ -78,34 +78,30 @@
78
78
  "@babel/preset-react": "^7.18.6",
79
79
  "@babel/preset-typescript": "^7.18.6",
80
80
  "@babel/runtime": "^7.19.0",
81
- "@testing-library/jest-dom": "^5.16.4",
81
+ "@testing-library/jest-dom": "^5.16.5",
82
82
  "@testing-library/react": "^12.1.5",
83
- "@testing-library/user-event": "^14.3.0",
84
- "@types/enzyme": "^3.10.12",
85
- "@types/jest": "^26.0.24",
83
+ "@testing-library/user-event": "^14.4.3",
84
+ "@types/jest": "^29.2.3",
86
85
  "@types/node": "^18.0.6",
87
86
  "@types/react": "^17.0.47",
88
87
  "@types/react-datepicker": "^4.4.2",
89
88
  "@types/react-modal": "^3.13.1",
90
89
  "@types/react-router-dom": "^5.3.3",
91
90
  "@types/styled-components": "^5.1.25",
92
- "@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
93
91
  "babel-plugin-inline-react-svg": "^2.0.1",
94
92
  "babel-plugin-typescript-to-proptypes": "^2.0.0",
95
93
  "concurrently": "^5.2.0",
96
94
  "cross-env": "^7.0.3",
97
95
  "cypress": "^9.5.0",
98
- "enzyme": "^3.11.0",
99
96
  "history": "^5.3.0",
100
- "jest": "^26.6.3",
101
- "jest-environment-jsdom-sixteen": "^2.0.0",
102
- "jest-react-hooks-shallow": "^1.5.1",
103
- "jest-styled-components": "^7.0.5",
97
+ "jest": "^29.3.1",
98
+ "jest-environment-jsdom": "^29.2.1",
99
+ "jest-styled-components": "^7.1.1",
104
100
  "jest-svg-transformer": "^1.0.0",
105
101
  "react-router": "^6.3.0",
106
102
  "react-router-dom": "^6.3.0",
107
103
  "regenerator-runtime": "^0.13.9",
108
- "ts-jest": "^26.5.6"
104
+ "ts-jest": "^29.0.3"
109
105
  },
110
106
  "peerDependencies": {
111
107
  "@babel/core": "^7.0.0",
@@ -114,6 +110,7 @@
114
110
  "react-router-dom": "^6"
115
111
  },
116
112
  "resolutions": {
117
- "@types/react": "17.0.48"
113
+ "@types/react": "17.0.48",
114
+ "date-fns": "2.24.0"
118
115
  }
119
116
  }