@linzjs/lui 17.25.1 → 17.26.1-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.26.0](https://github.com/linz/lui/compare/v17.25.1...v17.26.0) (2023-01-05)
2
+
3
+
4
+ ### Features
5
+
6
+ * LuiListBox now passes down disabledKeys ([#810](https://github.com/linz/lui/issues/810)) ([64c1b7b](https://github.com/linz/lui/commit/64c1b7bef3f630306e4b361ede0aa55fe3434cee))
7
+
1
8
  ## [17.25.1](https://github.com/linz/lui/compare/v17.25.0...v17.25.1) (2023-01-05)
2
9
 
3
10
 
@@ -35,6 +35,7 @@ export interface ILuiListBoxProps<T = ILuiListBoxItem> extends Omit<HTMLAttribut
35
35
  ariaProps?: Omit<AriaListBoxOptions<ILuiListItemNode<T>>, 'children' | 'selectedKeys' | 'onSelectionChange' | 'selectionMode'>;
36
36
  selectionMode?: SelectionMode;
37
37
  selectionBehavior?: SelectionBehavior;
38
+ disabledKeys?: Key[];
38
39
  itemRenderer?: (props: IItemRendererProps<T>) => ReactNode;
39
40
  groupHeadingRenderer?: (props: IGroupHeadingRendererProps) => ReactNode;
40
41
  getKey?: KeyGetter<T>;
@@ -43,4 +44,4 @@ export interface ILuiListBoxProps<T = ILuiListBoxItem> extends Omit<HTMLAttribut
43
44
  loadingIndicator?: () => ReactNode;
44
45
  emptyIndicator?: () => ReactNode;
45
46
  }
46
- export declare function LuiListBox<T extends object = ILuiListBoxItem>({ ariaLabel, ariaLabelledBy, itemRenderer, groupHeadingRenderer, loadingIndicator, emptyIndicator, selectionMode, selectionBehavior, disabled, items, value, onChange, getKey, getGroup, getLabel, ariaProps, className, ...ulProps }: ILuiListBoxProps<T>): JSX.Element;
47
+ export declare function LuiListBox<T extends object = ILuiListBoxItem>({ ariaLabel, ariaLabelledBy, itemRenderer, groupHeadingRenderer, loadingIndicator, emptyIndicator, selectionMode, selectionBehavior, disabled, disabledKeys, items, value, onChange, getKey, getGroup, getLabel, ariaProps, className, ...ulProps }: ILuiListBoxProps<T>): JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { ListProps } from '@react-stately/list';
2
2
  import { ILuiListBoxProps, ILuiListItemNode } from './LuiListBox';
3
- export declare function useLuiListBox<T extends object>({ selectionMode, selectionBehavior, items, value, onChange, ariaProps, getGroup, getKey, getLabel, }: ILuiListBoxProps<T>): ListProps<ILuiListItemNode<T>>;
3
+ export declare function useLuiListBox<T extends object>({ selectionMode, selectionBehavior, items, value, onChange, ariaProps, disabledKeys, getGroup, getKey, getLabel, }: ILuiListBoxProps<T>): ListProps<ILuiListItemNode<T>>;
@@ -0,0 +1,21 @@
1
+ import React, { ReactNode, RefObject } from 'react';
2
+ import { MinSizes } from 'split-grid';
3
+ import './LuiResizableLayout.scss';
4
+ export declare enum SplitPanelState {
5
+ OPEN = 0,
6
+ CLOSED_LEFT = 1,
7
+ CLOSED_RIGHT = 2
8
+ }
9
+ export declare const LuiResizableLayout: React.FC<{
10
+ givenLeftRef?: RefObject<HTMLDivElement>;
11
+ givenRightRef?: RefObject<HTMLDivElement>;
12
+ leftContentComponent?: ReactNode;
13
+ rightContentComponent?: ReactNode;
14
+ givenGridTemplateColumns?: string;
15
+ givenColumnMinSizes?: MinSizes;
16
+ givenColumnSnapOffset?: number;
17
+ callbackOnSplitStateChange?: (currentSplitState: SplitPanelState, leftWidth: number, rightWidth: number, gridTemplateColumns: string) => void;
18
+ splitStateChecker?: (leftWidth: number, rightWidth: number) => SplitPanelState;
19
+ callbackOnClickLeftArrowButton?: (leftWidth: number, rightWidth: number) => void;
20
+ callbackOnClickRightArrowButton?: (leftWidth: number, rightWidth: number) => void;
21
+ }>;
package/dist/index.d.ts CHANGED
@@ -6,6 +6,7 @@ export * from './contexts/LuiMessagingContextProvider';
6
6
  export { LuiButtonGroup } from './components/LuiButton/LuiButton';
7
7
  export { LuiExpandableBanner } from './components/LuiExpandableBanner/LuiExpandableBanner';
8
8
  export { LuiMenu, LuiControlledMenu } from './components/LuiMenu/LuiMenu';
9
+ export { LuiResizableLayout, SplitPanelState, } from './components/LuiResizableLayout/LuiResizableLayout';
9
10
  export { LuiSelectMenu, LuiSelectMenuItem, LuiSelectSubMenuItem, } from './components/LuiSelectMenu/LuiSelectMenu';
10
11
  export { LuiSelectDataMenu } from './components/LuiSelectMenu/LuiSelectDataMenu';
11
12
  export { LuiFilterMenu } from './components/LuiFilterMenu/LuiFilterMenu';