@linzjs/lui 12.2.0-roll-up-3.9 → 13.0.1
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/CHANGELOG.md +7 -0
- package/dist/components/LuiBadge/LuiBadge.stories.d.ts +9 -0
- package/dist/components/LuiBadge/LuiBadge.test.d.ts +1 -0
- package/dist/components/LuiBanner/LuiBanner.stories.d.ts +11 -0
- package/dist/components/LuiBanner/LuiBanner.test.d.ts +1 -0
- package/dist/components/LuiButton/LuiButton.stories.d.ts +28 -0
- package/dist/components/LuiButton/LuiButton.test.d.ts +1 -0
- package/dist/components/LuiButton/LuiButtonGroup.stories.d.ts +6 -0
- package/dist/components/LuiErrorPage/LuiErrorPage.stories.d.ts +7 -0
- package/dist/components/LuiExpandableBanner/LuiExpandableBanner.stories.d.ts +7 -0
- package/dist/components/LuiExpandableBanner/LuiExpandableBanner.test.d.ts +1 -0
- package/dist/components/LuiFilterContainer/LuiFilterContainer.stories.d.ts +18 -0
- package/dist/components/LuiFilterContainer/LuiFilterContainer.test.d.ts +1 -0
- package/dist/components/LuiFilterMenu/LuiFilterMenu.test.d.ts +1 -0
- package/dist/components/LuiFooter/LuiFooter.stories.d.ts +7 -0
- package/dist/components/LuiFooter/LuiFooter.test.d.ts +1 -0
- package/dist/components/LuiFormElements/LuiCheckboxInput/LuiCheckboxInput.stories.d.ts +21 -0
- package/dist/components/LuiFormElements/LuiCheckboxInput/LuiCheckboxInputWithFormik.stories.d.ts +18 -0
- package/dist/components/LuiFormElements/LuiFileInputBox/LuiFileInputBox.d.ts +0 -1
- package/dist/components/LuiFormElements/LuiFileInputBox/LuiFileInputBox.stories.d.ts +8 -0
- package/dist/components/LuiFormElements/LuiFileInputBox/LuiFileInputBox.test.d.ts +1 -0
- package/dist/components/LuiFormElements/LuiRadioInput/LuiRadioInput.stories.d.ts +24 -0
- package/dist/components/LuiFormElements/LuiRadioInput/LuiRadioInputWithFormik.stories.d.ts +18 -0
- package/dist/components/LuiFormElements/LuiSelectInput/LuiSelectInput.stories.d.ts +35 -0
- package/dist/components/LuiFormElements/LuiTextAreaInput/LuiTextAreaInput.stories.d.ts +34 -0
- package/dist/components/LuiFormElements/LuiTextAreaInput/LuiTextAreaInput.test.d.ts +2 -0
- package/dist/components/LuiFormElements/LuiTextAreaInput/LuiTextAreaInputWithFormik.stories.d.ts +22 -0
- package/dist/components/LuiFormElements/LuiTextInput/LuiTextInput.stories.d.ts +39 -0
- package/dist/components/LuiFormElements/LuiTextInput/LuiTextInput.test.d.ts +2 -0
- package/dist/components/LuiFormElements/LuiTextInput/LuiTextInputWithFormik.stories.d.ts +22 -0
- package/dist/components/LuiFormikForms/LuiFormikCheckbox/LuiFormikCheckbox.test.d.ts +5 -0
- package/dist/components/LuiFormikForms/LuiFormikForms.integration.test.d.ts +1 -0
- package/dist/components/LuiFormikForms/LuiFormikForms.stories.d.ts +20 -0
- package/dist/components/LuiFormikForms/LuiFormikRadioButton/LuiFormikRadioButton.test.d.ts +1 -0
- package/dist/components/LuiFormikForms/LuiFormikSelect/LuiFormikSelect.test.d.ts +1 -0
- package/dist/components/LuiFormikForms/LuiFormikTextInput/LuiFormikTextInput.test.d.ts +1 -0
- package/dist/components/LuiForms/LuiComboSelect/LuiComboSelect.stories.d.ts +112 -0
- package/dist/components/LuiForms/LuiFormSection/LuiFormSectionHeader.stories.d.ts +5 -0
- package/dist/components/LuiForms/LuiFormSection/LuiFormSectionHeader.test.d.ts +1 -0
- package/dist/components/LuiHeader/LuiHeader.stories.d.ts +49 -0
- package/dist/components/LuiHeader/LuiHeader.test.d.ts +1 -0
- package/dist/components/LuiHeaderMenu/LuiHeaderMenus.test.d.ts +1 -0
- package/dist/components/LuiIcon/LuiIcon.stories.d.ts +11 -0
- package/dist/components/LuiIcon/LuiIcon.test.d.ts +1 -0
- package/dist/components/LuiLoadingSpinner/LuiLoadingSpinner.stories.d.ts +13 -0
- package/dist/components/LuiLoadingSpinner/LuiLoadingSpinner.test.d.ts +1 -0
- package/dist/components/LuiMenu/LuiMenu.d.ts +0 -1
- package/dist/components/LuiMenu/LuiMenu.stories.d.ts +20 -0
- package/dist/components/LuiMenu/LuiMenu.test.d.ts +1 -0
- package/dist/components/LuiModal/LuiModal.stories.d.ts +13 -0
- package/dist/components/LuiModal/LuiModal.test.d.ts +1 -0
- package/dist/components/LuiModal/LuiModalContext.test.d.ts +1 -0
- package/dist/components/LuiShadow/LuiShadow.stories.d.ts +7 -0
- package/dist/components/LuiStaticMessage/LuiStaticMessage.stories.d.ts +12 -0
- package/dist/components/LuiStaticMessage/LuiStaticMessage.test.d.ts +1 -0
- package/dist/components/LuiTabs/LuiTabs.stories.d.ts +7 -0
- package/dist/components/LuiTabs/LuiTabs.test.d.ts +1 -0
- package/dist/components/LuiToastMessage/LuiToastMessage.auto.stories.d.ts +19 -0
- package/dist/components/LuiToastMessage/LuiToastMessage.test.d.ts +1 -0
- package/dist/components/LuiTooltip/LuiTooltip.stories.d.ts +10 -0
- package/dist/components/LuiUpdateSplashModal/LuiUpdateSplashModal.stories.d.ts +7 -0
- package/dist/components/LuiUpdateSplashModal/LuiUpdatesSplashModal.test.d.ts +1 -0
- package/dist/components/common/ResponsiveUtils.test.d.ts +1 -0
- package/dist/components/lol/LOLActiveFirmMessage.d.ts +0 -1
- package/dist/components/lol/LOLActiveFirmMessage.test.d.ts +1 -0
- package/dist/components/lol/LOLAppLauncherMenu.d.ts +0 -1
- package/dist/components/lol/LOLAppLauncherMenu.test.d.ts +56 -0
- package/dist/components/lol/LOLAuthorisedLink.d.ts +0 -1
- package/dist/components/lol/LOLAuthorisedLink.test.d.ts +43 -0
- package/dist/components/lol/LOLCommonDrawerMenu.test.d.ts +43 -0
- package/dist/components/lol/LOLComponents.stories.d.ts +55 -0
- package/dist/components/lol/LOLDrawerMenuFirmSwitcher.test.d.ts +1 -0
- package/dist/components/lol/LOLFirmSwitcher.test.d.ts +43 -0
- package/dist/components/lol/LOLLogoutLink.d.ts +0 -1
- package/dist/components/lol/LOLLogoutLink.test.d.ts +1 -0
- package/dist/components/lol/LOLUserLastLogin.test.d.ts +1 -0
- package/dist/components/lol/MockBackendUtils.d.ts +3 -3
- package/dist/components/lol/contexts/LOLGlobalClientRefContext.test.d.ts +1 -0
- package/dist/components/lol/contexts/LOLUserContext.test.d.ts +1 -0
- package/dist/contexts/UIMessagingContextProvider.tests.d.ts +1 -0
- package/dist/hooks/__tests__/useClickedOutsideElement.test.d.ts +1 -0
- package/dist/index.js +3 -71308
- package/dist/lui.cjs.development.js +20524 -0
- package/dist/lui.cjs.development.js.map +1 -0
- package/dist/lui.cjs.production.min.js +2 -0
- package/dist/lui.cjs.production.min.js.map +1 -0
- package/dist/lui.esm.js +19974 -70744
- package/dist/lui.esm.js.map +1 -1
- package/dist/needs-revision/LuiHtml.stories.d.ts +32 -0
- package/package.json +18 -21
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import './iconStory.scss';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ name, className, size, title, alt, status, spanProps, }: import("./LuiIcon").LuiIconProps) => JSX.Element | null;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Default: import("@storybook/react").Story<import("./LuiIcon").LuiIconProps>;
|
|
9
|
+
export declare const IconList: () => JSX.Element;
|
|
10
|
+
export declare const Sizes: () => JSX.Element;
|
|
11
|
+
export declare const Statuses: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import '../../scss/base.scss';
|
|
3
|
+
import './loadingSpinnerStory.scss';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const LoadingSpinner: () => JSX.Element;
|
|
9
|
+
export declare const MiniSpinner: () => JSX.Element;
|
|
10
|
+
export declare const StatusSpinner: () => JSX.Element;
|
|
11
|
+
export declare const StatusSpinnerLongContent: () => JSX.Element;
|
|
12
|
+
export declare const LoadingSpinnerEaster: () => JSX.Element;
|
|
13
|
+
export declare const LoadingSpinnerChristmas: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const MenuTriggeredByLuiButton: () => JSX.Element;
|
|
7
|
+
export declare const MenuWithOverride: () => JSX.Element;
|
|
8
|
+
export declare const MenuWithButtonChange: () => JSX.Element;
|
|
9
|
+
export declare const MenuTriggeredByDotsIcon: () => JSX.Element;
|
|
10
|
+
export declare const MenuWithBoundingBox: () => JSX.Element;
|
|
11
|
+
export declare const FocusableMenu: () => JSX.Element;
|
|
12
|
+
export declare const FocusableMenuWithDivider: () => JSX.Element;
|
|
13
|
+
export declare const FocusableMenuWithDividerAndHeader: () => JSX.Element;
|
|
14
|
+
export declare const FocusableMenuScrollable: () => JSX.Element;
|
|
15
|
+
export declare const DisabledMenu: () => JSX.Element;
|
|
16
|
+
export declare const InTable: () => JSX.Element;
|
|
17
|
+
export declare const ContextMenu: () => JSX.Element;
|
|
18
|
+
export declare const MenuInScrollableContainer: () => JSX.Element;
|
|
19
|
+
export declare const MenuWithDividers: () => JSX.Element;
|
|
20
|
+
export declare const MenuWithHeaders: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import '../../scss/base.scss';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const ModalNotUsingLuiModalContext: () => JSX.Element;
|
|
8
|
+
export declare const ModalUsingLuiModalContext: () => JSX.Element;
|
|
9
|
+
export declare const ModalMaxWidth: () => JSX.Element;
|
|
10
|
+
export declare const ModalLowContrast: () => JSX.Element;
|
|
11
|
+
export declare const ModalWithHeader: () => JSX.Element;
|
|
12
|
+
export declare const WarningAlertWithButtons: () => JSX.Element;
|
|
13
|
+
export declare const WarningAlertWithButtonsAttachedToElement: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import '../../scss/base.scss';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const success: () => JSX.Element;
|
|
8
|
+
export declare const info: () => JSX.Element;
|
|
9
|
+
export declare const error: () => JSX.Element;
|
|
10
|
+
export declare const warning: () => JSX.Element;
|
|
11
|
+
export declare const noReadMore: () => JSX.Element;
|
|
12
|
+
export declare const notClosable: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Meta } from '@storybook/react';
|
|
3
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Tabs: () => JSX.Element;
|
|
6
|
+
export declare const PanelTabs: () => JSX.Element;
|
|
7
|
+
export declare const JustifiedPanelTabs: () => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '../../scss/base.scss';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const SuccessWhereConsumerRemovesFromDom: React.FC;
|
|
8
|
+
export declare const ToastUsingLuiMessagingContextProvider: React.FC;
|
|
9
|
+
export declare const ToastUsingLuiMessagingContextProviderOpen: React.FC;
|
|
10
|
+
export declare const StackedToast: React.FC;
|
|
11
|
+
export declare const ToastThatStaysForEver: React.FC;
|
|
12
|
+
export declare const Info: React.FC;
|
|
13
|
+
export declare const ErrorRequireDismiss: React.FC;
|
|
14
|
+
export declare const ToastMessageSubmitType: React.FC;
|
|
15
|
+
export declare const ToastMessageButtonType: React.FC;
|
|
16
|
+
export declare const WarningRequireDismiss: () => JSX.Element;
|
|
17
|
+
export declare const NoReadMore: () => JSX.Element;
|
|
18
|
+
export declare const ChangingMessages: React.FC;
|
|
19
|
+
export declare const ToastOverTopOfModal: React.FC;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from '@storybook/react';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
subcomponents: {
|
|
6
|
+
LuiTooltip: (props: import("./LuiTooltip").ILuiTooltipProperties) => JSX.Element;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
export declare const TooltipTopBottom: Story<{}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
export declare const mockGetUserInfo: (loginType: 'INTN' | 'EXTN') => jest.Mock<import("msw/lib/types").AsyncResponseResolverReturnType<import("msw/lib/types").MockedResponse<{
|
|
3
|
+
user: {
|
|
4
|
+
id: string;
|
|
5
|
+
idHash: string;
|
|
6
|
+
email: string;
|
|
7
|
+
givenNames: string;
|
|
8
|
+
surname: string;
|
|
9
|
+
loginType: {
|
|
10
|
+
code: "INTN" | "EXTN";
|
|
11
|
+
desc: string;
|
|
12
|
+
};
|
|
13
|
+
preferredName: string;
|
|
14
|
+
firms: {
|
|
15
|
+
name: string;
|
|
16
|
+
id: string;
|
|
17
|
+
privileges: string[];
|
|
18
|
+
}[];
|
|
19
|
+
passwordChangeRequired: boolean;
|
|
20
|
+
roles: never[];
|
|
21
|
+
lastLogin: string;
|
|
22
|
+
};
|
|
23
|
+
}>>, [import("msw/lib/types").MockedRequest<import("msw/lib/types/utils/handlers/requestHandler").DefaultRequestBodyType, import("msw/lib/types").RequestParams>, import("msw/lib/types").ResponseComposition<{
|
|
24
|
+
user: {
|
|
25
|
+
id: string;
|
|
26
|
+
idHash: string;
|
|
27
|
+
email: string;
|
|
28
|
+
givenNames: string;
|
|
29
|
+
surname: string;
|
|
30
|
+
loginType: {
|
|
31
|
+
code: "INTN" | "EXTN";
|
|
32
|
+
desc: string;
|
|
33
|
+
};
|
|
34
|
+
preferredName: string;
|
|
35
|
+
firms: {
|
|
36
|
+
name: string;
|
|
37
|
+
id: string;
|
|
38
|
+
privileges: string[];
|
|
39
|
+
}[];
|
|
40
|
+
passwordChangeRequired: boolean;
|
|
41
|
+
roles: never[];
|
|
42
|
+
lastLogin: string;
|
|
43
|
+
};
|
|
44
|
+
}>, {
|
|
45
|
+
set: typeof import("msw/lib/types/context").set;
|
|
46
|
+
status: (statusCode: number, statusText?: string | undefined) => import("msw/lib/types").ResponseTransformer<any>;
|
|
47
|
+
cookie: (name: string, value: string, options?: import("cookie").CookieSerializeOptions | undefined) => import("msw/lib/types").ResponseTransformer<any>;
|
|
48
|
+
body: <BodyType extends string | Blob | ArrayBufferView | ArrayBuffer | ReadableStream<any> | FormData>(value: BodyType) => import("msw/lib/types").ResponseTransformer<BodyType>;
|
|
49
|
+
text: <BodyType_1 extends string>(body: BodyType_1) => import("msw/lib/types").ResponseTransformer<BodyType_1>;
|
|
50
|
+
json: <BodyTypeJSON>(body: BodyTypeJSON, { merge }?: {
|
|
51
|
+
merge?: boolean | undefined;
|
|
52
|
+
} | undefined) => import("msw/lib/types").ResponseTransformer<BodyTypeJSON>;
|
|
53
|
+
xml: <BodyType_2 extends string>(body: BodyType_2) => import("msw/lib/types").ResponseTransformer<BodyType_2>;
|
|
54
|
+
delay: (durationMs?: number | undefined) => import("msw/lib/types").ResponseTransformer<any>;
|
|
55
|
+
fetch: (input: string | import("msw/lib/types").MockedRequest<import("msw/lib/types/utils/handlers/requestHandler").DefaultRequestBodyType, import("msw/lib/types").RequestParams>, requestInit?: RequestInit | undefined) => any;
|
|
56
|
+
}]>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { IFirm } from '../..';
|
|
3
|
+
export declare const mockGetUserInfo: (firms: IFirm[]) => jest.Mock<import("msw/lib/types").AsyncResponseResolverReturnType<import("msw/lib/types").MockedResponse<{
|
|
4
|
+
user: {
|
|
5
|
+
id: string;
|
|
6
|
+
idHash: string;
|
|
7
|
+
email: string;
|
|
8
|
+
givenNames: string;
|
|
9
|
+
surname: string;
|
|
10
|
+
loginType: string;
|
|
11
|
+
preferredName: string;
|
|
12
|
+
firms: IFirm[];
|
|
13
|
+
passwordChangeRequired: boolean;
|
|
14
|
+
roles: never[];
|
|
15
|
+
lastLogin: string;
|
|
16
|
+
};
|
|
17
|
+
}>>, [import("msw/lib/types").MockedRequest<import("msw/lib/types/utils/handlers/requestHandler").DefaultRequestBodyType, import("msw/lib/types").RequestParams>, import("msw/lib/types").ResponseComposition<{
|
|
18
|
+
user: {
|
|
19
|
+
id: string;
|
|
20
|
+
idHash: string;
|
|
21
|
+
email: string;
|
|
22
|
+
givenNames: string;
|
|
23
|
+
surname: string;
|
|
24
|
+
loginType: string;
|
|
25
|
+
preferredName: string;
|
|
26
|
+
firms: IFirm[];
|
|
27
|
+
passwordChangeRequired: boolean;
|
|
28
|
+
roles: never[];
|
|
29
|
+
lastLogin: string;
|
|
30
|
+
};
|
|
31
|
+
}>, {
|
|
32
|
+
set: typeof import("msw/lib/types/context").set;
|
|
33
|
+
status: (statusCode: number, statusText?: string | undefined) => import("msw/lib/types").ResponseTransformer<any>;
|
|
34
|
+
cookie: (name: string, value: string, options?: import("cookie").CookieSerializeOptions | undefined) => import("msw/lib/types").ResponseTransformer<any>;
|
|
35
|
+
body: <BodyType extends string | Blob | ArrayBufferView | ArrayBuffer | ReadableStream<any> | FormData>(value: BodyType) => import("msw/lib/types").ResponseTransformer<BodyType>;
|
|
36
|
+
text: <BodyType_1 extends string>(body: BodyType_1) => import("msw/lib/types").ResponseTransformer<BodyType_1>;
|
|
37
|
+
json: <BodyTypeJSON>(body: BodyTypeJSON, { merge }?: {
|
|
38
|
+
merge?: boolean | undefined;
|
|
39
|
+
} | undefined) => import("msw/lib/types").ResponseTransformer<BodyTypeJSON>;
|
|
40
|
+
xml: <BodyType_2 extends string>(body: BodyType_2) => import("msw/lib/types").ResponseTransformer<BodyType_2>;
|
|
41
|
+
delay: (durationMs?: number | undefined) => import("msw/lib/types").ResponseTransformer<any>;
|
|
42
|
+
fetch: (input: string | import("msw/lib/types").MockedRequest<import("msw/lib/types/utils/handlers/requestHandler").DefaultRequestBodyType, import("msw/lib/types").RequestParams>, requestInit?: RequestInit | undefined) => any;
|
|
43
|
+
}]>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { IFirm } from './contexts/LOLUserContext';
|
|
3
|
+
export declare const mockGetUserInfo: (firms: IFirm[]) => jest.Mock<import("msw/lib/types").AsyncResponseResolverReturnType<import("msw/lib/types").MockedResponse<{
|
|
4
|
+
user: {
|
|
5
|
+
id: string;
|
|
6
|
+
idHash: string;
|
|
7
|
+
email: string;
|
|
8
|
+
givenNames: string;
|
|
9
|
+
surname: string;
|
|
10
|
+
loginType: string;
|
|
11
|
+
preferredName: string;
|
|
12
|
+
firms: IFirm[];
|
|
13
|
+
passwordChangeRequired: boolean;
|
|
14
|
+
roles: never[];
|
|
15
|
+
lastLogin: string;
|
|
16
|
+
};
|
|
17
|
+
}>>, [import("msw/lib/types").MockedRequest<import("msw/lib/types/utils/handlers/requestHandler").DefaultRequestBodyType, import("msw/lib/types").RequestParams>, import("msw/lib/types").ResponseComposition<{
|
|
18
|
+
user: {
|
|
19
|
+
id: string;
|
|
20
|
+
idHash: string;
|
|
21
|
+
email: string;
|
|
22
|
+
givenNames: string;
|
|
23
|
+
surname: string;
|
|
24
|
+
loginType: string;
|
|
25
|
+
preferredName: string;
|
|
26
|
+
firms: IFirm[];
|
|
27
|
+
passwordChangeRequired: boolean;
|
|
28
|
+
roles: never[];
|
|
29
|
+
lastLogin: string;
|
|
30
|
+
};
|
|
31
|
+
}>, {
|
|
32
|
+
set: typeof import("msw/lib/types/context").set;
|
|
33
|
+
status: (statusCode: number, statusText?: string | undefined) => import("msw/lib/types").ResponseTransformer<any>;
|
|
34
|
+
cookie: (name: string, value: string, options?: import("cookie").CookieSerializeOptions | undefined) => import("msw/lib/types").ResponseTransformer<any>;
|
|
35
|
+
body: <BodyType extends string | Blob | ArrayBufferView | ArrayBuffer | ReadableStream<any> | FormData>(value: BodyType) => import("msw/lib/types").ResponseTransformer<BodyType>;
|
|
36
|
+
text: <BodyType_1 extends string>(body: BodyType_1) => import("msw/lib/types").ResponseTransformer<BodyType_1>;
|
|
37
|
+
json: <BodyTypeJSON>(body: BodyTypeJSON, { merge }?: {
|
|
38
|
+
merge?: boolean | undefined;
|
|
39
|
+
} | undefined) => import("msw/lib/types").ResponseTransformer<BodyTypeJSON>;
|
|
40
|
+
xml: <BodyType_2 extends string>(body: BodyType_2) => import("msw/lib/types").ResponseTransformer<BodyType_2>;
|
|
41
|
+
delay: (durationMs?: number | undefined) => import("msw/lib/types").ResponseTransformer<any>;
|
|
42
|
+
fetch: (input: string | import("msw/lib/types").MockedRequest<import("msw/lib/types/utils/handlers/requestHandler").DefaultRequestBodyType, import("msw/lib/types").RequestParams>, requestInit?: RequestInit | undefined) => any;
|
|
43
|
+
}]>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Story } from '@storybook/react';
|
|
3
|
+
import { ILOLFirmSwitcherMenu } from './LOLFirmSwitcher';
|
|
4
|
+
import { LOLUserContextProvider } from './contexts/LOLUserContext';
|
|
5
|
+
import { LOLAuthorisedLinkProps } from './LOLAuthorisedLink';
|
|
6
|
+
import { Size } from '../common/ResponsiveUtils';
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
subcomponents: {
|
|
10
|
+
LOLFirmSwitcherMenu: React.FC<ILOLFirmSwitcherMenu>;
|
|
11
|
+
LOLLogoutLink: (props: import("./LOLLogoutLink").Props) => JSX.Element | null;
|
|
12
|
+
LOLUserContextProvider: typeof LOLUserContextProvider;
|
|
13
|
+
LOLAuthorisedLink: (props: LOLAuthorisedLinkProps) => JSX.Element | null;
|
|
14
|
+
LOLAppLauncherMenu: (props: import("./LOLAppLauncherMenu").ILOLAppLauncherMenuProps) => JSX.Element | null;
|
|
15
|
+
LOLDrawerMenuFirmSwitcher: React.FC<import("./LOLDrawerMenuFirmSwitcher").ILOLDrawerMenuFirmSwitcherProperties>;
|
|
16
|
+
LOLDrawerMenu: (props: {
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
hasStickyHeader?: boolean | undefined;
|
|
19
|
+
}) => JSX.Element;
|
|
20
|
+
LOLCommonDrawerMenu: (props: import("./LOLCommonDrawerMenu").ILOLCommonDrawerMenuProps) => JSX.Element;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
24
|
+
export declare const FirmSwitcherMenu: Story<ILOLFirmSwitcherMenu>;
|
|
25
|
+
export declare const SingleFirmNoSwitcherMenu: Story<ILOLFirmSwitcherMenu>;
|
|
26
|
+
interface ITestLOLDrawerMenuFirmSwitcherProperties {
|
|
27
|
+
firmCount: number;
|
|
28
|
+
minimumFilterCount: number;
|
|
29
|
+
}
|
|
30
|
+
export declare const DrawerMenuFirmSwitcher: Story<ITestLOLDrawerMenuFirmSwitcherProperties>;
|
|
31
|
+
export declare const LogoutLink: Story<{}>;
|
|
32
|
+
interface ActiveFirmMessageProps {
|
|
33
|
+
showFrom: Size;
|
|
34
|
+
firmNames: string[];
|
|
35
|
+
}
|
|
36
|
+
export declare const ActiveFirmMessage: Story<ActiveFirmMessageProps>;
|
|
37
|
+
export declare const AuthorisedLink: Story<LOLAuthorisedLinkProps>;
|
|
38
|
+
interface AppLauncherMenuTemplateProps {
|
|
39
|
+
givenPrivileges: string[];
|
|
40
|
+
location: string;
|
|
41
|
+
loginType: string;
|
|
42
|
+
}
|
|
43
|
+
export declare const AppLauncherMenu: Story<AppLauncherMenuTemplateProps>;
|
|
44
|
+
export declare const UserLastLogin: Story<{}>;
|
|
45
|
+
interface CommonDrawerMenuTemplateProps {
|
|
46
|
+
smallHeader: boolean;
|
|
47
|
+
loginType: string;
|
|
48
|
+
stickyHeader: boolean;
|
|
49
|
+
showRequestsLink: boolean;
|
|
50
|
+
}
|
|
51
|
+
export declare const CommonDrawerMenu: Story<CommonDrawerMenuTemplateProps>;
|
|
52
|
+
interface DrawerMenuTemplateProps {
|
|
53
|
+
smallHeader: boolean;
|
|
54
|
+
}
|
|
55
|
+
export declare const DrawerMenu: Story<DrawerMenuTemplateProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/// <reference types="jest" />
|
|
2
|
+
import { IFirm } from '../..';
|
|
3
|
+
export declare const mockGetUserInfo: (firms: IFirm[]) => jest.Mock<import("msw/lib/types").AsyncResponseResolverReturnType<import("msw/lib/types").MockedResponse<{
|
|
4
|
+
user: {
|
|
5
|
+
id: string;
|
|
6
|
+
idHash: string;
|
|
7
|
+
email: string;
|
|
8
|
+
givenNames: string;
|
|
9
|
+
surname: string;
|
|
10
|
+
loginType: string;
|
|
11
|
+
preferredName: string;
|
|
12
|
+
firms: IFirm[];
|
|
13
|
+
passwordChangeRequired: boolean;
|
|
14
|
+
roles: never[];
|
|
15
|
+
lastLogin: string;
|
|
16
|
+
};
|
|
17
|
+
}>>, [import("msw/lib/types").MockedRequest<import("msw/lib/types/utils/handlers/requestHandler").DefaultRequestBodyType, import("msw/lib/types").RequestParams>, import("msw/lib/types").ResponseComposition<{
|
|
18
|
+
user: {
|
|
19
|
+
id: string;
|
|
20
|
+
idHash: string;
|
|
21
|
+
email: string;
|
|
22
|
+
givenNames: string;
|
|
23
|
+
surname: string;
|
|
24
|
+
loginType: string;
|
|
25
|
+
preferredName: string;
|
|
26
|
+
firms: IFirm[];
|
|
27
|
+
passwordChangeRequired: boolean;
|
|
28
|
+
roles: never[];
|
|
29
|
+
lastLogin: string;
|
|
30
|
+
};
|
|
31
|
+
}>, {
|
|
32
|
+
set: typeof import("msw/lib/types/context").set;
|
|
33
|
+
status: (statusCode: number, statusText?: string | undefined) => import("msw/lib/types").ResponseTransformer<any>;
|
|
34
|
+
cookie: (name: string, value: string, options?: import("cookie").CookieSerializeOptions | undefined) => import("msw/lib/types").ResponseTransformer<any>;
|
|
35
|
+
body: <BodyType extends string | Blob | ArrayBufferView | ArrayBuffer | ReadableStream<any> | FormData>(value: BodyType) => import("msw/lib/types").ResponseTransformer<BodyType>;
|
|
36
|
+
text: <BodyType_1 extends string>(body: BodyType_1) => import("msw/lib/types").ResponseTransformer<BodyType_1>;
|
|
37
|
+
json: <BodyTypeJSON>(body: BodyTypeJSON, { merge }?: {
|
|
38
|
+
merge?: boolean | undefined;
|
|
39
|
+
} | undefined) => import("msw/lib/types").ResponseTransformer<BodyTypeJSON>;
|
|
40
|
+
xml: <BodyType_2 extends string>(body: BodyType_2) => import("msw/lib/types").ResponseTransformer<BodyType_2>;
|
|
41
|
+
delay: (durationMs?: number | undefined) => import("msw/lib/types").ResponseTransformer<any>;
|
|
42
|
+
fetch: (input: string | import("msw/lib/types").MockedRequest<import("msw/lib/types/utils/handlers/requestHandler").DefaultRequestBodyType, import("msw/lib/types").RequestParams>, requestInit?: RequestInit | undefined) => any;
|
|
43
|
+
}]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -9,7 +9,7 @@ interface IApi {
|
|
|
9
9
|
}
|
|
10
10
|
export declare const Api: {
|
|
11
11
|
LOGIN: {
|
|
12
|
-
handler: <RequestBodyType = import("msw/lib/types/utils/handlers/requestHandler").DefaultRequestBodyType, ResponseBodyType = any, RequestParamsType extends import("msw/lib/types").RequestParams = import("msw/lib/types").RequestParams>(mask:
|
|
12
|
+
handler: <RequestBodyType = import("msw/lib/types/utils/handlers/requestHandler").DefaultRequestBodyType, ResponseBodyType = any, RequestParamsType extends import("msw/lib/types").RequestParams = import("msw/lib/types").RequestParams>(mask: string | RegExp, resolver: ResponseResolver<MockedRequest<RequestBodyType, RequestParamsType>, {
|
|
13
13
|
set: typeof import("msw/lib/types/context").set;
|
|
14
14
|
status: (statusCode: number, statusText?: string | undefined) => import("msw/lib/types").ResponseTransformer<any>;
|
|
15
15
|
cookie: (name: string, value: string, options?: import("cookie").CookieSerializeOptions | undefined) => import("msw/lib/types").ResponseTransformer<any>;
|
|
@@ -37,7 +37,7 @@ export declare const Api: {
|
|
|
37
37
|
pathname: string;
|
|
38
38
|
};
|
|
39
39
|
LOGOUT: {
|
|
40
|
-
handler: <RequestBodyType_1 = import("msw/lib/types/utils/handlers/requestHandler").DefaultRequestBodyType, ResponseBodyType_1 = any, RequestParamsType_1 extends import("msw/lib/types").RequestParams = import("msw/lib/types").RequestParams>(mask:
|
|
40
|
+
handler: <RequestBodyType_1 = import("msw/lib/types/utils/handlers/requestHandler").DefaultRequestBodyType, ResponseBodyType_1 = any, RequestParamsType_1 extends import("msw/lib/types").RequestParams = import("msw/lib/types").RequestParams>(mask: string | RegExp, resolver: ResponseResolver<MockedRequest<RequestBodyType_1, RequestParamsType_1>, {
|
|
41
41
|
set: typeof import("msw/lib/types/context").set;
|
|
42
42
|
status: (statusCode: number, statusText?: string | undefined) => import("msw/lib/types").ResponseTransformer<any>;
|
|
43
43
|
cookie: (name: string, value: string, options?: import("cookie").CookieSerializeOptions | undefined) => import("msw/lib/types").ResponseTransformer<any>;
|
|
@@ -65,7 +65,7 @@ export declare const Api: {
|
|
|
65
65
|
pathname: string;
|
|
66
66
|
};
|
|
67
67
|
GET_USER_INFO: {
|
|
68
|
-
handler: <RequestBodyType_1 = import("msw/lib/types/utils/handlers/requestHandler").DefaultRequestBodyType, ResponseBodyType_1 = any, RequestParamsType_1 extends import("msw/lib/types").RequestParams = import("msw/lib/types").RequestParams>(mask:
|
|
68
|
+
handler: <RequestBodyType_1 = import("msw/lib/types/utils/handlers/requestHandler").DefaultRequestBodyType, ResponseBodyType_1 = any, RequestParamsType_1 extends import("msw/lib/types").RequestParams = import("msw/lib/types").RequestParams>(mask: string | RegExp, resolver: ResponseResolver<MockedRequest<RequestBodyType_1, RequestParamsType_1>, {
|
|
69
69
|
set: typeof import("msw/lib/types/context").set;
|
|
70
70
|
status: (statusCode: number, statusText?: string | undefined) => import("msw/lib/types").ResponseTransformer<any>;
|
|
71
71
|
cookie: (name: string, value: string, options?: import("cookie").CookieSerializeOptions | undefined) => import("msw/lib/types").ResponseTransformer<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|