@linzjs/lui 17.31.0 → 17.32.0

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 CHANGED
@@ -1,3 +1,10 @@
1
+ # [17.32.0](https://github.com/linz/lui/compare/v17.31.1...v17.32.0) (2023-02-09)
2
+
3
+
4
+ ### Features
5
+
6
+ * the drawer will not be closed for submenu ([#845](https://github.com/linz/lui/issues/845)) ([1fca1be](https://github.com/linz/lui/commit/1fca1be587ffc038648939c85e716c51f71871a2))
7
+
1
8
  # [17.31.0](https://github.com/linz/lui/compare/v17.30.0...v17.31.0) (2023-02-07)
2
9
 
3
10
 
package/README.md CHANGED
@@ -44,7 +44,7 @@ over the CSS is part of this project.
44
44
 
45
45
  There are lots of things to do in this project, often things will be left until there is demand, e.g add new components or implement new version components. Please join the Slack channel
46
46
 
47
- #cop-lui.
47
+ #cop-lui
48
48
 
49
49
  ## Documentation
50
50
 
@@ -28,11 +28,15 @@ interface ILuiDrawerMenuOptionV2 {
28
28
  * The function to be bound together with closing the drawer on click
29
29
  */
30
30
  onClick?: () => void;
31
+ /**
32
+ * Whether the option is a sub menu, if true, the drawer will not be closed on click
33
+ */
34
+ subMenu?: boolean;
31
35
  }
32
36
  declare const LuiDrawerMenuOptionsV2: ({ children, }: ILuiIcon & {
33
37
  children: ReactNode;
34
38
  }) => JSX.Element;
35
- declare const LuiDrawerMenuOptionV2: ({ icon, iconColor, label, badge, iconSize, onClick, }: ILuiDrawerMenuOptionV2) => JSX.Element;
39
+ declare const LuiDrawerMenuOptionV2: ({ icon, iconColor, label, badge, iconSize, subMenu, onClick, }: ILuiDrawerMenuOptionV2) => JSX.Element;
36
40
  declare const LuiDrawerMenuV2: ({ children, hasStickyHeader, ...menuPropsCopy }: Omit<ILuiHeaderMenuItem, "onClick"> & {
37
41
  hasStickyHeader?: boolean | undefined;
38
42
  } & {
@@ -1,9 +1,13 @@
1
- import React from 'react';
2
- export declare const LuiUpdatesSplashModal: React.FC<React.PropsWithChildren<{
1
+ import { ReactNode } from 'react';
2
+ interface SplashModalProps {
3
3
  bigImage: string;
4
4
  smallImage: string;
5
5
  header: string;
6
6
  wrapperClass?: string;
7
- onClose: () => void;
8
7
  id: string;
9
- }>>;
8
+ releaseVersion: string;
9
+ enabled: boolean;
10
+ children?: ReactNode;
11
+ }
12
+ export declare const LuiUpdatesSplashModal: (props: SplashModalProps) => JSX.Element;
13
+ export {};