@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.
Files changed (98) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +1 -1
  3. package/dist/components/LuiFormElements/LuiFileInputBox/LuiFileInputBox.d.ts +1 -0
  4. package/dist/components/LuiLoadingSpinner/LuiLottieLight.d.ts +14 -0
  5. package/dist/components/LuiMenu/LuiMenu.d.ts +8 -39
  6. package/dist/components/lol/LOLActiveFirmMessage.d.ts +1 -0
  7. package/dist/components/lol/LOLAppLauncherMenu.d.ts +1 -0
  8. package/dist/components/lol/LOLAuthorisedLink.d.ts +1 -0
  9. package/dist/components/lol/LOLLogoutLink.d.ts +1 -0
  10. package/dist/components/lol/MockBackendUtils.d.ts +3 -3
  11. package/dist/index.d.ts +1 -1
  12. package/dist/index.js +71308 -3
  13. package/dist/index.js.map +1 -0
  14. package/dist/lui.css +15 -15
  15. package/dist/lui.css.map +1 -1
  16. package/dist/lui.esm.js +54939 -4182
  17. package/dist/lui.esm.js.map +1 -1
  18. package/dist/scss/Components/ContextMenu/context-menu.scss +15 -0
  19. package/dist/scss/Components/Menu/menu.scss +0 -12
  20. package/package.json +23 -20
  21. package/dist/components/LuiBadge/LuiBadge.stories.d.ts +0 -9
  22. package/dist/components/LuiBadge/LuiBadge.test.d.ts +0 -1
  23. package/dist/components/LuiBanner/LuiBanner.stories.d.ts +0 -11
  24. package/dist/components/LuiBanner/LuiBanner.test.d.ts +0 -1
  25. package/dist/components/LuiButton/LuiButton.stories.d.ts +0 -28
  26. package/dist/components/LuiButton/LuiButton.test.d.ts +0 -1
  27. package/dist/components/LuiButton/LuiButtonGroup.stories.d.ts +0 -6
  28. package/dist/components/LuiErrorPage/LuiErrorPage.stories.d.ts +0 -7
  29. package/dist/components/LuiExpandableBanner/LuiExpandableBanner.stories.d.ts +0 -7
  30. package/dist/components/LuiExpandableBanner/LuiExpandableBanner.test.d.ts +0 -1
  31. package/dist/components/LuiFilterContainer/LuiFilterContainer.stories.d.ts +0 -18
  32. package/dist/components/LuiFilterContainer/LuiFilterContainer.test.d.ts +0 -1
  33. package/dist/components/LuiFilterMenu/LuiFilterMenu.test.d.ts +0 -1
  34. package/dist/components/LuiFooter/LuiFooter.stories.d.ts +0 -7
  35. package/dist/components/LuiFooter/LuiFooter.test.d.ts +0 -1
  36. package/dist/components/LuiFormElements/LuiCheckboxInput/LuiCheckboxInput.stories.d.ts +0 -21
  37. package/dist/components/LuiFormElements/LuiCheckboxInput/LuiCheckboxInputWithFormik.stories.d.ts +0 -18
  38. package/dist/components/LuiFormElements/LuiFileInputBox/LuiFileInputBox.stories.d.ts +0 -8
  39. package/dist/components/LuiFormElements/LuiFileInputBox/LuiFileInputBox.test.d.ts +0 -1
  40. package/dist/components/LuiFormElements/LuiRadioInput/LuiRadioInput.stories.d.ts +0 -24
  41. package/dist/components/LuiFormElements/LuiRadioInput/LuiRadioInputWithFormik.stories.d.ts +0 -18
  42. package/dist/components/LuiFormElements/LuiSelectInput/LuiSelectInput.stories.d.ts +0 -35
  43. package/dist/components/LuiFormElements/LuiTextAreaInput/LuiTextAreaInput.stories.d.ts +0 -34
  44. package/dist/components/LuiFormElements/LuiTextAreaInput/LuiTextAreaInput.test.d.ts +0 -2
  45. package/dist/components/LuiFormElements/LuiTextAreaInput/LuiTextAreaInputWithFormik.stories.d.ts +0 -22
  46. package/dist/components/LuiFormElements/LuiTextInput/LuiTextInput.stories.d.ts +0 -39
  47. package/dist/components/LuiFormElements/LuiTextInput/LuiTextInput.test.d.ts +0 -2
  48. package/dist/components/LuiFormElements/LuiTextInput/LuiTextInputWithFormik.stories.d.ts +0 -22
  49. package/dist/components/LuiFormikForms/LuiFormikCheckbox/LuiFormikCheckbox.test.d.ts +0 -5
  50. package/dist/components/LuiFormikForms/LuiFormikForms.integration.test.d.ts +0 -1
  51. package/dist/components/LuiFormikForms/LuiFormikForms.stories.d.ts +0 -20
  52. package/dist/components/LuiFormikForms/LuiFormikRadioButton/LuiFormikRadioButton.test.d.ts +0 -1
  53. package/dist/components/LuiFormikForms/LuiFormikSelect/LuiFormikSelect.test.d.ts +0 -1
  54. package/dist/components/LuiFormikForms/LuiFormikTextInput/LuiFormikTextInput.test.d.ts +0 -1
  55. package/dist/components/LuiForms/LuiComboSelect/LuiComboSelect.stories.d.ts +0 -112
  56. package/dist/components/LuiForms/LuiFormSection/LuiFormSectionHeader.stories.d.ts +0 -5
  57. package/dist/components/LuiForms/LuiFormSection/LuiFormSectionHeader.test.d.ts +0 -1
  58. package/dist/components/LuiHeader/LuiHeader.stories.d.ts +0 -49
  59. package/dist/components/LuiHeader/LuiHeader.test.d.ts +0 -1
  60. package/dist/components/LuiHeaderMenu/LuiHeaderMenus.test.d.ts +0 -1
  61. package/dist/components/LuiIcon/LuiIcon.stories.d.ts +0 -11
  62. package/dist/components/LuiIcon/LuiIcon.test.d.ts +0 -1
  63. package/dist/components/LuiLoadingSpinner/LuiLoadingSpinner.stories.d.ts +0 -13
  64. package/dist/components/LuiLoadingSpinner/LuiLoadingSpinner.test.d.ts +0 -1
  65. package/dist/components/LuiMenu/LuiMenu.stories.d.ts +0 -19
  66. package/dist/components/LuiMenu/LuiMenu.test.d.ts +0 -1
  67. package/dist/components/LuiModal/LuiModal.stories.d.ts +0 -13
  68. package/dist/components/LuiModal/LuiModal.test.d.ts +0 -1
  69. package/dist/components/LuiModal/LuiModalContext.test.d.ts +0 -1
  70. package/dist/components/LuiShadow/LuiShadow.stories.d.ts +0 -7
  71. package/dist/components/LuiStaticMessage/LuiStaticMessage.stories.d.ts +0 -12
  72. package/dist/components/LuiStaticMessage/LuiStaticMessage.test.d.ts +0 -1
  73. package/dist/components/LuiTabs/LuiTabs.stories.d.ts +0 -7
  74. package/dist/components/LuiTabs/LuiTabs.test.d.ts +0 -1
  75. package/dist/components/LuiToastMessage/LuiToastMessage.auto.stories.d.ts +0 -19
  76. package/dist/components/LuiToastMessage/LuiToastMessage.test.d.ts +0 -1
  77. package/dist/components/LuiTooltip/LuiTooltip.stories.d.ts +0 -10
  78. package/dist/components/LuiUpdateSplashModal/LuiUpdateSplashModal.stories.d.ts +0 -7
  79. package/dist/components/LuiUpdateSplashModal/LuiUpdatesSplashModal.test.d.ts +0 -1
  80. package/dist/components/common/ResponsiveUtils.test.d.ts +0 -1
  81. package/dist/components/lol/LOLActiveFirmMessage.test.d.ts +0 -1
  82. package/dist/components/lol/LOLAppLauncherMenu.test.d.ts +0 -56
  83. package/dist/components/lol/LOLAuthorisedLink.test.d.ts +0 -43
  84. package/dist/components/lol/LOLCommonDrawerMenu.test.d.ts +0 -43
  85. package/dist/components/lol/LOLComponents.stories.d.ts +0 -55
  86. package/dist/components/lol/LOLDrawerMenuFirmSwitcher.test.d.ts +0 -1
  87. package/dist/components/lol/LOLFirmSwitcher.test.d.ts +0 -43
  88. package/dist/components/lol/LOLLogoutLink.test.d.ts +0 -1
  89. package/dist/components/lol/LOLUserLastLogin.test.d.ts +0 -1
  90. package/dist/components/lol/contexts/LOLGlobalClientRefContext.test.d.ts +0 -1
  91. package/dist/components/lol/contexts/LOLUserContext.test.d.ts +0 -1
  92. package/dist/contexts/UIMessagingContextProvider.tests.d.ts +0 -1
  93. package/dist/hooks/__tests__/useClickedOutsideElement.test.d.ts +0 -1
  94. package/dist/lui.cjs.development.js +0 -20540
  95. package/dist/lui.cjs.development.js.map +0 -1
  96. package/dist/lui.cjs.production.min.js +0 -2
  97. package/dist/lui.cjs.production.min.js.map +0 -1
  98. 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
@@ -1,6 +1,6 @@
1
1
  # Lui - Linz User Interface
2
2
 
3
- > It's written in CSS and has a React wrapper!
3
+ > It's written in CSS and a React wrapper!!
4
4
  >
5
5
  > ## You do not need to be using React to use Lui
6
6
  >
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface LuiFileInputBoxProps {
2
3
  fileDescription: string;
3
4
  acceptedExtensions: string[];
@@ -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
- import React, { ReactNode } from 'react';
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: LuiMenuProps) => JSX.Element;
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: LuiControlledMenuProps) => JSX.Element;
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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Size } from '../common/ResponsiveUtils';
2
3
  export interface ILOLActiveFirmMessageProperties {
3
4
  showFrom?: Size;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface ILOLAppLauncherMenuProps {
2
3
  pathname: string;
3
4
  enableNOCLink?: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface LOLAuthorisedLinkProps {
2
3
  label: string;
3
4
  path: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface Props {
2
3
  redirectPath: () => string;
3
4
  }
@@ -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: string | RegExp, resolver: ResponseResolver<MockedRequest<RequestBodyType, RequestParamsType>, {
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: string | RegExp, resolver: ResponseResolver<MockedRequest<RequestBodyType_1, RequestParamsType_1>, {
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: string | RegExp, resolver: ResponseResolver<MockedRequest<RequestBodyType_1, RequestParamsType_1>, {
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, LuiMenuItem, LuiMenuDivider, LuiMenuHeader, } from './components/LuiMenu/LuiMenu';
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';