@linzjs/lui 12.2.0 → 13.0.0-roll-up.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 +16 -0
- package/README.md +1 -1
- package/dist/components/LuiFormElements/LuiFileInputBox/LuiFileInputBox.d.ts +1 -0
- package/dist/components/LuiLoadingSpinner/LuiLottieLight.d.ts +14 -0
- package/dist/components/LuiMenu/LuiMenu.d.ts +8 -39
- package/dist/components/lol/LOLActiveFirmMessage.d.ts +1 -0
- package/dist/components/lol/LOLAppLauncherMenu.d.ts +1 -0
- package/dist/components/lol/LOLAuthorisedLink.d.ts +1 -0
- package/dist/components/lol/LOLLogoutLink.d.ts +1 -0
- package/dist/components/lol/MockBackendUtils.d.ts +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +71308 -3
- package/dist/index.js.map +1 -0
- package/dist/lui.css +15 -15
- package/dist/lui.css.map +1 -1
- package/dist/lui.esm.js +54939 -4182
- package/dist/lui.esm.js.map +1 -1
- package/dist/scss/Components/ContextMenu/context-menu.scss +15 -0
- package/dist/scss/Components/Menu/menu.scss +0 -12
- package/package.json +23 -20
- package/dist/components/LuiBadge/LuiBadge.stories.d.ts +0 -9
- package/dist/components/LuiBadge/LuiBadge.test.d.ts +0 -1
- package/dist/components/LuiBanner/LuiBanner.stories.d.ts +0 -11
- package/dist/components/LuiBanner/LuiBanner.test.d.ts +0 -1
- package/dist/components/LuiButton/LuiButton.stories.d.ts +0 -28
- package/dist/components/LuiButton/LuiButton.test.d.ts +0 -1
- package/dist/components/LuiButton/LuiButtonGroup.stories.d.ts +0 -6
- package/dist/components/LuiErrorPage/LuiErrorPage.stories.d.ts +0 -7
- package/dist/components/LuiExpandableBanner/LuiExpandableBanner.stories.d.ts +0 -7
- package/dist/components/LuiExpandableBanner/LuiExpandableBanner.test.d.ts +0 -1
- package/dist/components/LuiFilterContainer/LuiFilterContainer.stories.d.ts +0 -18
- package/dist/components/LuiFilterContainer/LuiFilterContainer.test.d.ts +0 -1
- package/dist/components/LuiFilterMenu/LuiFilterMenu.test.d.ts +0 -1
- package/dist/components/LuiFooter/LuiFooter.stories.d.ts +0 -7
- package/dist/components/LuiFooter/LuiFooter.test.d.ts +0 -1
- package/dist/components/LuiFormElements/LuiCheckboxInput/LuiCheckboxInput.stories.d.ts +0 -21
- package/dist/components/LuiFormElements/LuiCheckboxInput/LuiCheckboxInputWithFormik.stories.d.ts +0 -18
- package/dist/components/LuiFormElements/LuiFileInputBox/LuiFileInputBox.stories.d.ts +0 -8
- package/dist/components/LuiFormElements/LuiFileInputBox/LuiFileInputBox.test.d.ts +0 -1
- package/dist/components/LuiFormElements/LuiRadioInput/LuiRadioInput.stories.d.ts +0 -24
- package/dist/components/LuiFormElements/LuiRadioInput/LuiRadioInputWithFormik.stories.d.ts +0 -18
- package/dist/components/LuiFormElements/LuiSelectInput/LuiSelectInput.stories.d.ts +0 -35
- package/dist/components/LuiFormElements/LuiTextAreaInput/LuiTextAreaInput.stories.d.ts +0 -34
- package/dist/components/LuiFormElements/LuiTextAreaInput/LuiTextAreaInput.test.d.ts +0 -2
- package/dist/components/LuiFormElements/LuiTextAreaInput/LuiTextAreaInputWithFormik.stories.d.ts +0 -22
- package/dist/components/LuiFormElements/LuiTextInput/LuiTextInput.stories.d.ts +0 -39
- package/dist/components/LuiFormElements/LuiTextInput/LuiTextInput.test.d.ts +0 -2
- package/dist/components/LuiFormElements/LuiTextInput/LuiTextInputWithFormik.stories.d.ts +0 -22
- package/dist/components/LuiFormikForms/LuiFormikCheckbox/LuiFormikCheckbox.test.d.ts +0 -5
- package/dist/components/LuiFormikForms/LuiFormikForms.integration.test.d.ts +0 -1
- package/dist/components/LuiFormikForms/LuiFormikForms.stories.d.ts +0 -20
- package/dist/components/LuiFormikForms/LuiFormikRadioButton/LuiFormikRadioButton.test.d.ts +0 -1
- package/dist/components/LuiFormikForms/LuiFormikSelect/LuiFormikSelect.test.d.ts +0 -1
- package/dist/components/LuiFormikForms/LuiFormikTextInput/LuiFormikTextInput.test.d.ts +0 -1
- package/dist/components/LuiForms/LuiComboSelect/LuiComboSelect.stories.d.ts +0 -112
- package/dist/components/LuiForms/LuiFormSection/LuiFormSectionHeader.stories.d.ts +0 -5
- package/dist/components/LuiForms/LuiFormSection/LuiFormSectionHeader.test.d.ts +0 -1
- package/dist/components/LuiHeader/LuiHeader.stories.d.ts +0 -49
- package/dist/components/LuiHeader/LuiHeader.test.d.ts +0 -1
- package/dist/components/LuiHeaderMenu/LuiHeaderMenus.test.d.ts +0 -1
- package/dist/components/LuiIcon/LuiIcon.stories.d.ts +0 -11
- package/dist/components/LuiIcon/LuiIcon.test.d.ts +0 -1
- package/dist/components/LuiLoadingSpinner/LuiLoadingSpinner.stories.d.ts +0 -13
- package/dist/components/LuiLoadingSpinner/LuiLoadingSpinner.test.d.ts +0 -1
- package/dist/components/LuiMenu/LuiMenu.stories.d.ts +0 -19
- package/dist/components/LuiMenu/LuiMenu.test.d.ts +0 -1
- package/dist/components/LuiModal/LuiModal.stories.d.ts +0 -13
- package/dist/components/LuiModal/LuiModal.test.d.ts +0 -1
- package/dist/components/LuiModal/LuiModalContext.test.d.ts +0 -1
- package/dist/components/LuiShadow/LuiShadow.stories.d.ts +0 -7
- package/dist/components/LuiStaticMessage/LuiStaticMessage.stories.d.ts +0 -12
- package/dist/components/LuiStaticMessage/LuiStaticMessage.test.d.ts +0 -1
- package/dist/components/LuiTabs/LuiTabs.stories.d.ts +0 -7
- package/dist/components/LuiTabs/LuiTabs.test.d.ts +0 -1
- package/dist/components/LuiToastMessage/LuiToastMessage.auto.stories.d.ts +0 -19
- package/dist/components/LuiToastMessage/LuiToastMessage.test.d.ts +0 -1
- package/dist/components/LuiTooltip/LuiTooltip.stories.d.ts +0 -10
- package/dist/components/LuiUpdateSplashModal/LuiUpdateSplashModal.stories.d.ts +0 -7
- package/dist/components/LuiUpdateSplashModal/LuiUpdatesSplashModal.test.d.ts +0 -1
- package/dist/components/common/ResponsiveUtils.test.d.ts +0 -1
- package/dist/components/lol/LOLActiveFirmMessage.test.d.ts +0 -1
- package/dist/components/lol/LOLAppLauncherMenu.test.d.ts +0 -56
- package/dist/components/lol/LOLAuthorisedLink.test.d.ts +0 -43
- package/dist/components/lol/LOLCommonDrawerMenu.test.d.ts +0 -43
- package/dist/components/lol/LOLComponents.stories.d.ts +0 -55
- package/dist/components/lol/LOLDrawerMenuFirmSwitcher.test.d.ts +0 -1
- package/dist/components/lol/LOLFirmSwitcher.test.d.ts +0 -43
- package/dist/components/lol/LOLLogoutLink.test.d.ts +0 -1
- package/dist/components/lol/LOLUserLastLogin.test.d.ts +0 -1
- package/dist/components/lol/contexts/LOLGlobalClientRefContext.test.d.ts +0 -1
- package/dist/components/lol/contexts/LOLUserContext.test.d.ts +0 -1
- package/dist/contexts/UIMessagingContextProvider.tests.d.ts +0 -1
- package/dist/hooks/__tests__/useClickedOutsideElement.test.d.ts +0 -1
- package/dist/lui.cjs.development.js +0 -20540
- package/dist/lui.cjs.development.js.map +0 -1
- package/dist/lui.cjs.production.min.js +0 -2
- package/dist/lui.cjs.production.min.js.map +0 -1
- package/dist/needs-revision/LuiHtml.stories.d.ts +0 -32
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
# [13.0.0](https://github.com/linz/lui/compare/v12.2.0...v13.0.0) (2022-01-31)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### breaking
|
|
5
|
+
|
|
6
|
+
* **LuiMenu,LuiControlledMenu:** PR to trigger build ([#535](https://github.com/linz/lui/issues/535)) ([c3f117e](https://github.com/linz/lui/commit/c3f117e42476876742517bddb0515b42d9ab46bf))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* **LuiMenu,LuiControlledMenu:** breaking(LuiMenu,LuiControlledMenu) PR to trigger build
|
|
12
|
+
|
|
13
|
+
This is the breaking change commit for https://github.com/linz/Lui/pull/531
|
|
14
|
+
|
|
15
|
+
* Update README.md
|
|
16
|
+
|
|
1
17
|
# [12.2.0](https://github.com/linz/lui/compare/v12.1.4...v12.2.0) (2022-01-20)
|
|
2
18
|
|
|
3
19
|
|
package/README.md
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface LuiLottieLightProps {
|
|
3
|
+
animationData: any;
|
|
4
|
+
loop: boolean;
|
|
5
|
+
autoplay: boolean;
|
|
6
|
+
rendererSettings: any;
|
|
7
|
+
style: any;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Very trivial react wrapper for Lottie-web light. Using lottie-web directly rather than with `react-lottie` or
|
|
11
|
+
* `lottie-react` reduces our bundle size and enables use to use lottie-web in light mode.
|
|
12
|
+
*/
|
|
13
|
+
export declare const LuiLottieLight: ({ animationData, style, rendererSettings, autoplay, loop, }: LuiLottieLightProps) => JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -1,44 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ControlledMenuProps, MenuProps } from '@szhsin/react-menu';
|
|
2
3
|
import '@szhsin/react-menu/dist/index.css';
|
|
3
|
-
interface LuiMenuProps {
|
|
4
|
-
menuButton: ReactNode;
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
/** render the menu in a portal - required if the menu is contained in an absolutely positioned container with overflow settings. Default: false */
|
|
7
|
-
portal?: boolean;
|
|
8
|
-
boundingBoxRef?: React.MutableRefObject<HTMLElement | null>;
|
|
9
|
-
anchorRef?: React.MutableRefObject<HTMLElement | null>;
|
|
10
|
-
}
|
|
11
|
-
interface LuiControlledMenuProps {
|
|
12
|
-
isOpen: boolean;
|
|
13
|
-
onClose: () => void;
|
|
14
|
-
anchorPoint: {
|
|
15
|
-
x: number;
|
|
16
|
-
y: number;
|
|
17
|
-
};
|
|
18
|
-
children: ReactNode;
|
|
19
|
-
boundingBoxRef?: React.MutableRefObject<HTMLElement | null>;
|
|
20
|
-
anchorRef?: React.MutableRefObject<HTMLElement | null>;
|
|
21
|
-
}
|
|
22
|
-
interface LuiMenuItemProps {
|
|
23
|
-
onClick?: () => void;
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
href?: string | undefined;
|
|
26
|
-
target?: string | undefined;
|
|
27
|
-
rel?: string | undefined;
|
|
28
|
-
children: ReactNode;
|
|
29
|
-
}
|
|
30
|
-
interface LuiMenuHeaderProps {
|
|
31
|
-
children: ReactNode;
|
|
32
|
-
}
|
|
33
4
|
/**
|
|
34
|
-
* A menu controlled by a user-supplied MenuButton. Open/closed state is managed internally.
|
|
5
|
+
* A menu controlled by a user-supplied MenuButton. Open/closed state is managed internally. The defaulted style props,
|
|
6
|
+
* menuClassName and offsetY, can be overridden simply by setting them in the usual way.
|
|
35
7
|
*/
|
|
36
|
-
export declare const LuiMenu: (props:
|
|
8
|
+
export declare const LuiMenu: (props: MenuProps) => JSX.Element;
|
|
37
9
|
/**
|
|
38
|
-
* A menu with state managed externally. Can be used quite conveniently as a context menu.
|
|
10
|
+
* A menu with state managed externally. Can be used quite conveniently as a context menu. The defaulted style props,
|
|
11
|
+
* menuClassName and offsetY, can be overridden simply by setting them in the usual way.
|
|
39
12
|
*/
|
|
40
|
-
export declare const LuiControlledMenu: (props:
|
|
41
|
-
export declare const LuiMenuItem: (props: LuiMenuItemProps) => JSX.Element;
|
|
42
|
-
export declare const LuiMenuDivider: () => JSX.Element;
|
|
43
|
-
export declare const LuiMenuHeader: (props: LuiMenuHeaderProps) => JSX.Element;
|
|
44
|
-
export {};
|
|
13
|
+
export declare const LuiControlledMenu: (props: ControlledMenuProps) => JSX.Element;
|
|
@@ -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: Mask, 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: Mask, 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: Mask, 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>;
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export * from './components/LuiToastMessage/LuiToastMessage';
|
|
|
5
5
|
export * from './contexts/LuiMessagingContextProvider';
|
|
6
6
|
export { LuiButtonGroup } from './components/LuiButton/LuiButton';
|
|
7
7
|
export { LuiExpandableBanner } from './components/LuiExpandableBanner/LuiExpandableBanner';
|
|
8
|
-
export { LuiMenu, LuiControlledMenu
|
|
8
|
+
export { LuiMenu, LuiControlledMenu } from './components/LuiMenu/LuiMenu';
|
|
9
9
|
export { LuiFilterMenu } from './components/LuiFilterMenu/LuiFilterMenu';
|
|
10
10
|
export { LuiTabs, LuiTabsContext } from './components/LuiTabs/LuiTabs';
|
|
11
11
|
export { LuiTab } from './components/LuiTabs/LuiTab/LuiTab';
|