@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.
- package/dist/AuthPage/AuthPage.d.ts +1 -1
- package/dist/Banners/Banner.d.ts +1 -1
- package/dist/Banners/OverviewBanner.d.ts +1 -1
- package/dist/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/Button/Iconbutton.cjs +6 -4
- package/dist/Button/Iconbutton.cjs.map +1 -1
- package/dist/Button/Iconbutton.d.ts +1 -0
- package/dist/Button/Iconbutton.js +6 -4
- package/dist/Button/Iconbutton.js.map +1 -1
- package/dist/Card/HorizontalCard/HorizontalCardActions.d.ts +1 -1
- package/dist/Card/HorizontalCard/HorizontalCardBody.d.ts +1 -1
- package/dist/Card/HorizontalCard/HorizontalCardThumbnail.d.ts +1 -1
- package/dist/Card/HorizontalCard/types.d.ts +4 -4
- package/dist/Chips/ChipTypes.d.ts +2 -2
- package/dist/ChipsInput/ChipDropdownInput.cjs.map +1 -1
- package/dist/ChipsInput/ChipDropdownInput.d.ts +1 -1
- package/dist/ChipsInput/ChipDropdownInput.js.map +1 -1
- package/dist/ChipsInput/ChipInput.cjs +13 -2
- package/dist/ChipsInput/ChipInput.cjs.map +1 -1
- package/dist/ChipsInput/ChipInput.js +14 -3
- package/dist/ChipsInput/ChipInput.js.map +1 -1
- package/dist/ChipsInput/ChipInputField.cjs +1 -0
- package/dist/ChipsInput/ChipInputField.cjs.map +1 -1
- package/dist/ChipsInput/ChipInputField.js +1 -0
- package/dist/ChipsInput/ChipInputField.js.map +1 -1
- package/dist/ChipsInput/ChipInputTypes.cjs.map +1 -1
- package/dist/ChipsInput/ChipInputTypes.d.ts +2 -1
- package/dist/ChipsInput/ChipInputTypes.js.map +1 -1
- package/dist/Dropdown/BasicDropdown.cjs.map +1 -1
- package/dist/Dropdown/BasicDropdown.d.ts +3 -3
- package/dist/Dropdown/BasicDropdown.js.map +1 -1
- package/dist/Dropdown/CommonStyling.cjs +1 -1
- package/dist/Dropdown/CommonStyling.cjs.map +1 -1
- package/dist/Dropdown/CommonStyling.js +1 -1
- package/dist/Dropdown/CommonStyling.js.map +1 -1
- package/dist/Dropdown/DropdownButtonTypes.d.ts +3 -3
- package/dist/GlobalNavigationBar/GlobalNavigationBar.cjs +13 -7
- package/dist/GlobalNavigationBar/GlobalNavigationBar.cjs.map +1 -1
- package/dist/GlobalNavigationBar/GlobalNavigationBar.d.ts +3 -2
- package/dist/GlobalNavigationBar/GlobalNavigationBar.js +13 -7
- package/dist/GlobalNavigationBar/GlobalNavigationBar.js.map +1 -1
- package/dist/GlobalNavigationBar/Logo.d.ts +1 -1
- package/dist/GlobalNavigationBar/desktop/DesktopActions.cjs +3 -1
- package/dist/GlobalNavigationBar/desktop/DesktopActions.cjs.map +1 -1
- package/dist/GlobalNavigationBar/desktop/DesktopActions.d.ts +1 -0
- package/dist/GlobalNavigationBar/desktop/DesktopActions.js +3 -1
- package/dist/GlobalNavigationBar/desktop/DesktopActions.js.map +1 -1
- package/dist/GlobalNavigationBar/desktop/ExtendedMainMenu.d.ts +1 -1
- package/dist/GlobalNavigationBar/desktop/MainMenu.d.ts +1 -1
- package/dist/GlobalNavigationBar/desktop/RightSideNav.cjs +1 -1
- package/dist/GlobalNavigationBar/desktop/RightSideNav.cjs.map +1 -1
- package/dist/GlobalNavigationBar/desktop/RightSideNav.d.ts +1 -1
- package/dist/GlobalNavigationBar/desktop/RightSideNav.js +1 -1
- package/dist/GlobalNavigationBar/desktop/RightSideNav.js.map +1 -1
- package/dist/GlobalNavigationBar/desktop/UserMenu.cjs +4 -2
- package/dist/GlobalNavigationBar/desktop/UserMenu.cjs.map +1 -1
- package/dist/GlobalNavigationBar/desktop/UserMenu.js +4 -2
- package/dist/GlobalNavigationBar/desktop/UserMenu.js.map +1 -1
- package/dist/GlobalNavigationBar/mobile/MobileMenu.cjs +3 -0
- package/dist/GlobalNavigationBar/mobile/MobileMenu.cjs.map +1 -1
- package/dist/GlobalNavigationBar/mobile/MobileMenu.d.ts +1 -1
- package/dist/GlobalNavigationBar/mobile/MobileMenu.js +3 -0
- package/dist/GlobalNavigationBar/mobile/MobileMenu.js.map +1 -1
- package/dist/GlobalNavigationBar/mobile/MobileMenuHeader.cjs +2 -2
- package/dist/GlobalNavigationBar/mobile/MobileMenuHeader.cjs.map +1 -1
- package/dist/GlobalNavigationBar/mobile/MobileMenuHeader.js +3 -2
- package/dist/GlobalNavigationBar/mobile/MobileMenuHeader.js.map +1 -1
- package/dist/GlobalNavigationBar/types.d.ts +7 -7
- package/dist/Image/ImageWithFallbacks.d.ts +1 -1
- package/dist/InputFields/Label.d.ts +1 -1
- package/dist/InputFields/QuickSearch.d.ts +1 -1
- package/dist/InputFields/ResponsiveComponentWrapper.d.ts +1 -1
- package/dist/InputFields/SearchBar.d.ts +1 -1
- package/dist/InputFields/components/SearchBarInput.d.ts +1 -1
- package/dist/InputFields/types.d.ts +3 -3
- package/dist/List/ListRow.d.ts +1 -1
- package/dist/LoadingIndicator/LoadingIndicator.d.ts +1 -1
- package/dist/MiniProductCard/MiniProductCard.d.ts +1 -1
- package/dist/Modals/Modal.d.ts +1 -1
- package/dist/Modals/ModalContainer.d.ts +2 -2
- package/dist/Modals/ModalTypes.d.ts +1 -1
- package/dist/NavItem/NavItem.d.ts +1 -1
- package/dist/Paginator/Paginator.d.ts +1 -1
- package/dist/Popover/Popover.d.ts +4 -4
- package/dist/ProfileButton/ProfileButton.d.ts +1 -1
- package/dist/QuizButton/QuizButton.d.ts +1 -1
- package/dist/SideMenu/types.d.ts +3 -3
- package/dist/SkipToContent/SkipToContent.d.ts +1 -1
- package/dist/Table/TableTypes.d.ts +4 -4
- package/dist/Tabs/TabLink.d.ts +1 -1
- package/dist/Tabs/Tabs.d.ts +1 -1
- package/dist/Tag/Tag.cjs +1 -1
- package/dist/Tag/Tag.cjs.map +1 -1
- package/dist/Tag/Tag.d.ts +2 -2
- package/dist/Tag/Tag.js +1 -1
- package/dist/Tag/Tag.js.map +1 -1
- package/dist/Tile/TileTypes.d.ts +8 -8
- package/dist/Toasters/Toast.d.ts +2 -2
- package/dist/Toasters/ToastContext.d.ts +2 -2
- package/dist/assets/index.d.ts +1 -1
- package/dist/icons/index.d.ts +2 -2
- package/dist/styles/typography.d.ts +2 -2
- package/package.json +10 -13
package/dist/Tile/TileTypes.d.ts
CHANGED
|
@@ -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
|
|
8
|
+
export type TileIconButton = Pick<IconButtonProps, 'action' | 'disabled'> & {
|
|
9
9
|
componentType: 'icon';
|
|
10
10
|
icon: React.ReactNode;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type TileToggleButton = Pick<ToggleButtonProps, 'active' | 'onChange' | 'disabled' | 'defaultState' | 'activeState'> & {
|
|
13
13
|
componentType: 'toggle';
|
|
14
14
|
};
|
|
15
|
-
export
|
|
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
|
|
19
|
+
export type TileStandardButton = Pick<ButtonProps, 'variant' | 'loading' | 'icon' | 'onClick' | 'disabled'> & {
|
|
20
20
|
componentType: 'button';
|
|
21
21
|
buttonText: string;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export type TileNote = {
|
|
24
24
|
componentType: 'note';
|
|
25
25
|
noteIcon?: React.ReactNode;
|
|
26
26
|
noteText: string;
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type TileHyperLink = HyperlinkProps & {
|
|
29
29
|
componentType: 'link';
|
|
30
30
|
linkIcon?: React.ReactNode;
|
|
31
31
|
linkText: string;
|
|
32
32
|
};
|
|
33
|
-
export
|
|
34
|
-
export
|
|
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;
|
package/dist/Toasters/Toast.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ToastActionType, ToastColor, ToastEntryDirection, ToastPosition } from '../types';
|
|
3
|
-
export
|
|
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
|
-
|
|
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
|
|
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
|
|
11
|
+
export type ToasterValueProps = {
|
|
12
12
|
toasts: toast[];
|
|
13
13
|
addToast: (content: any, options: ToastOptions) => string;
|
|
14
14
|
removeToast: (id: string) => void;
|
package/dist/assets/index.d.ts
CHANGED
package/dist/icons/index.d.ts
CHANGED
|
@@ -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
|
|
4
|
+
export type BaseProps = {
|
|
5
5
|
children?: any;
|
|
6
6
|
tooltip?: string;
|
|
7
7
|
tooltipId?: string;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
81
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
82
82
|
"@testing-library/react": "^12.1.5",
|
|
83
|
-
"@testing-library/user-event": "^14.3
|
|
84
|
-
"@types/
|
|
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": "^
|
|
101
|
-
"jest-environment-jsdom
|
|
102
|
-
"jest-
|
|
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": "^
|
|
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
|
}
|