@linzjs/lui 17.51.0 → 17.52.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.52.0](https://github.com/linz/lui/compare/v17.51.0...v17.52.0) (2023-04-21)
2
+
3
+
4
+ ### Features
5
+
6
+ * Adding Side Toolbar to LUI ([#928](https://github.com/linz/lui/issues/928)) ([79490a6](https://github.com/linz/lui/commit/79490a60f4daac5dce36a5b815408ac3146590f8))
7
+
1
8
  # [17.51.0](https://github.com/linz/lui/compare/v17.50.0...v17.51.0) (2023-04-20)
2
9
 
3
10
 
@@ -0,0 +1,21 @@
1
+ import './LuiSideToolbar.scss';
2
+ import { ReactNode } from 'react';
3
+ export declare type ToolbarConfig<T> = {
4
+ icon: string;
5
+ iconImage?: string;
6
+ isDisabled?: boolean;
7
+ isFetching?: boolean;
8
+ isToggled?: boolean;
9
+ key: T;
10
+ title: string;
11
+ tooltipMessage?: string;
12
+ };
13
+ export declare enum ToolbarDirection {
14
+ LEFT = "Left",
15
+ RIGHT = "Right"
16
+ }
17
+ export interface ToolbarProps {
18
+ direction: ToolbarDirection;
19
+ children: ReactNode[];
20
+ }
21
+ export declare function LuiSideToolbar(props: ToolbarProps): JSX.Element;
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import './ToolbarButton.scss';
3
+ export interface ToolbarButtonProps {
4
+ disabled?: boolean;
5
+ highlighted?: boolean;
6
+ iconImage?: string;
7
+ iconName: string;
8
+ loading?: boolean;
9
+ onClick: () => void;
10
+ panelKey?: string;
11
+ panelTitle?: string;
12
+ tooltip?: string;
13
+ }
14
+ /**
15
+ * Create button for using either LuiIcon or Image.
16
+ *
17
+ * @param props
18
+ * @returns
19
+ */
20
+ export declare const ToolbarButton: ({ disabled, highlighted, iconImage, iconName, loading, onClick, panelTitle, panelKey, tooltip, }: ToolbarButtonProps) => JSX.Element;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ interface ToolbarIconProps {
3
+ iconImage?: string;
4
+ iconName: string;
5
+ }
6
+ /**
7
+ * Show LuiIcon or Image.
8
+ *
9
+ * @param param
10
+ * @returns
11
+ */
12
+ export declare const ToolbarIcon: ({ iconImage, iconName }: ToolbarIconProps) => JSX.Element;
13
+ export {};
@@ -0,0 +1,16 @@
1
+ import { ReactNode } from 'react';
2
+ export interface ToolbarItemProps {
3
+ loading?: boolean;
4
+ onClick?: () => void;
5
+ tooltip?: string;
6
+ children: ReactNode;
7
+ dataTestId?: string;
8
+ }
9
+ /**
10
+ * Allows any item to be added into the toolbar (with appropriate styles and size)
11
+ *
12
+ * @param props
13
+ * @returns
14
+ */
15
+ export declare const ToolbarItem: (props: ToolbarItemProps) => JSX.Element;
16
+ export declare const ToolbarItemSeparator: () => JSX.Element;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "17.51.0",
2
+ "version": "17.52.0",
3
3
  "license": "MIT",
4
4
  "repository": {
5
5
  "type": "git",