@linzjs/lui 24.0.2 → 24.1.2
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 +27 -0
- package/dist/components/LuiAccordicard/LuiAccordicard.d.ts +1 -1
- package/dist/components/LuiAccordicardStatic/LuiAccordicardStatic.d.ts +1 -1
- package/dist/components/LuiBadge/LuiBadge.d.ts +1 -1
- package/dist/components/LuiBanner/LuiBanner.d.ts +3 -3
- package/dist/components/LuiButton/LuiButton.d.ts +1 -1
- package/dist/components/LuiFilterContainer/LuiFilterContainer.d.ts +1 -1
- package/dist/components/LuiFilterMenu/LuiFilterMenu.d.ts +2 -2
- package/dist/components/LuiFormElements/ClearableLuiTextInput/ClearableLuiTextInput.d.ts +1 -1
- package/dist/components/LuiFormElements/LuiCheckboxInput/LuiCheckboxInput.d.ts +1 -1
- package/dist/components/LuiFormElements/LuiComboSelect/LuiComboSelect.d.ts +1 -1
- package/dist/components/LuiFormElements/LuiDateInput/DateInput.d.ts +1 -1
- package/dist/components/LuiFormElements/LuiDateInput/DateInputHelper.d.ts +1 -1
- package/dist/components/LuiFormElements/LuiFileInputBox/LuiFileInputBox.d.ts +3 -3
- package/dist/components/LuiFormElements/LuiRadioInput/LuiRadioInput.d.ts +2 -2
- package/dist/components/LuiFormElements/LuiSelectInput/LuiSelectInput.d.ts +2 -2
- package/dist/components/LuiFormElements/LuiTextAreaInput/LuiAutoExpandTextAreaInput.d.ts +2 -2
- package/dist/components/LuiFormElements/LuiTextAreaInput/LuiTextAreaInput.d.ts +1 -1
- package/dist/components/LuiFormElements/LuiTextInput/LuiTextInput.d.ts +1 -1
- package/dist/components/LuiHeaderMenu/LuiHeaderMenus.d.ts +2 -2
- package/dist/components/LuiHeaderMenuV2/LuiHeaderMenusV2.d.ts +7 -7
- package/dist/components/LuiHeaderV2/LuiHeaderV2.d.ts +2 -2
- package/dist/components/LuiListBox/LuiListBoxItem.d.ts +2 -1
- package/dist/components/LuiMenu/LuiMenu.d.ts +3 -3
- package/dist/components/LuiModal/LuiModalV2.d.ts +1 -1
- package/dist/components/LuiSearchBox/LuiSearchBox.d.ts +1 -1
- package/dist/components/LuiSearchInput/ResultsDisplay.d.ts +1 -1
- package/dist/components/LuiSelectMenu/LuiSelectDataMenu.d.ts +4 -4
- package/dist/components/LuiSelectMenu/LuiSelectMenu.d.ts +4 -4
- package/dist/components/LuiShadow/LuiShadow.d.ts +1 -1
- package/dist/components/LuiSideToolbar/LuiSideToolbar.d.ts +2 -2
- package/dist/components/LuiSideToolbar/ToolbarItem.d.ts +1 -1
- package/dist/components/LuiSplitButton/LuiSplitButton.d.ts +2 -2
- package/dist/components/LuiStaticMessage/LuiStaticMessage.d.ts +2 -2
- package/dist/components/LuiUpdateSplashModal/LuiUpdatesSplashModal.d.ts +2 -2
- package/dist/components/Splitter/Control/ControlIcon.d.ts +1 -1
- package/dist/components/Splitter/Stories/Section.d.ts +2 -4
- package/dist/components/Splitter/helpers/getSeparatorAttributes.d.ts +1 -1
- package/dist/components/Splitter/helpers/getSeparatorPosition.d.ts +1 -1
- package/dist/components/Splitter/helpers/transition.d.ts +1 -1
- package/dist/components/Splitter/helpers/useForkRef.d.ts +2 -2
- package/dist/components/Splitter/helpers/useMoveSeparator.d.ts +1 -1
- package/dist/components/Splitter/helpers/useShowSeparator.d.ts +1 -1
- package/dist/components/Splitter/helpers/useValueSeparator.d.ts +1 -1
- package/dist/components/Splitter/helpers/useValueSeparatorEffects.d.ts +1 -1
- package/dist/components/Splitter/useSplitterRef.d.ts +1 -1
- package/dist/components/Toast/Helpers/useToastState.d.ts +1 -1
- package/dist/components/common/Hooks.d.ts +1 -1
- package/dist/contexts/LuiMessagingContextProvider.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/lui.esm.js +2 -2
- package/dist/lui.esm.js.map +1 -1
- package/package.json +13 -44
- package/dist/components/LuiModal/LuiModalContext.d.ts +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,33 @@
|
|
|
5
5
|
|
|
6
6
|
* **LuiComboSelect:** restore interface to support styling of the input element. ([#1270](https://github.com/linz/lui/issues/1270)) ([7ce6a13](https://github.com/linz/lui/commit/7ce6a137c7f16ffa3acbe4357569a6eb59ef47db))
|
|
7
7
|
|
|
8
|
+
## [24.1.2](https://github.com/linz/Lui/compare/lui-v24.1.1...lui-v24.1.2) (2025-11-18)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **ci:** use correct npm registry ([#1282](https://github.com/linz/Lui/issues/1282)) ([d33375b](https://github.com/linz/Lui/commit/d33375b1ee42c7c7aa883d3edfea5d411bfaeeda))
|
|
14
|
+
|
|
15
|
+
## [24.1.1](https://github.com/linz/Lui/compare/lui-v24.1.0...lui-v24.1.1) (2025-11-18)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **ci:** use enablement PAT for npm publish ([#1280](https://github.com/linz/Lui/issues/1280)) ([4c0d007](https://github.com/linz/Lui/commit/4c0d007489e22ccd5c3e636e57d36c198bbfa46e))
|
|
21
|
+
|
|
22
|
+
## [24.1.0](https://github.com/linz/Lui/compare/lui-v24.0.2...lui-v24.1.0) (2025-11-18)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* CS-8883 bump lui version ([#1274](https://github.com/linz/Lui/issues/1274)) ([df1334c](https://github.com/linz/Lui/commit/df1334c780ccd55352e79eef366484a54983c4e8))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Bug Fixes
|
|
31
|
+
|
|
32
|
+
* **ci:** configure starting point for release please ([#1278](https://github.com/linz/Lui/issues/1278)) ([892aa54](https://github.com/linz/Lui/commit/892aa549ec5280ab6b37b5b2f76fc16a8f24f5b6))
|
|
33
|
+
* **ci:** use correct token for release please ([#1276](https://github.com/linz/Lui/issues/1276)) ([be3f5ba](https://github.com/linz/Lui/commit/be3f5bacdc53e5d17195cad762645a979cf7bb9f))
|
|
34
|
+
|
|
8
35
|
## [24.0.1](https://github.com/linz/lui/compare/v24.0.0...v24.0.1) (2025-11-03)
|
|
9
36
|
|
|
10
37
|
|
|
@@ -8,5 +8,5 @@ export interface ILuiBadge {
|
|
|
8
8
|
ariaRoleDescription: string;
|
|
9
9
|
fillVariation?: LuiBadgeFillVariation;
|
|
10
10
|
}
|
|
11
|
-
export declare const LuiBadge: ({ size, variation, backgroundFill, ariaRoleDescription, fillVariation, children, }: ILuiBadge) => JSX.Element;
|
|
11
|
+
export declare const LuiBadge: ({ size, variation, backgroundFill, ariaRoleDescription, fillVariation, children, }: ILuiBadge) => React.JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
type ILuiBanner = {
|
|
3
3
|
level: 'success' | 'info' | 'warning' | 'error';
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
};
|
|
7
7
|
export declare function getMaterialIconForLevel(level: 'success' | 'info' | 'warning' | 'error'): "info" | "warning" | "error" | "check_circle";
|
|
8
|
-
export declare const LuiBanner: (props: ILuiBanner) => JSX.Element;
|
|
9
|
-
export declare const LuiBannerContent: (props: ILuiBanner) => JSX.Element;
|
|
8
|
+
export declare const LuiBanner: (props: ILuiBanner) => React.JSX.Element;
|
|
9
|
+
export declare const LuiBannerContent: (props: ILuiBanner) => React.JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -38,5 +38,5 @@ interface LuiButtonGroupProps {
|
|
|
38
38
|
/**
|
|
39
39
|
* A series of Lui buttons together.
|
|
40
40
|
*/
|
|
41
|
-
export declare const LuiButtonGroup: (props: LuiButtonGroupProps) => JSX.Element;
|
|
41
|
+
export declare const LuiButtonGroup: (props: LuiButtonGroupProps) => React.JSX.Element;
|
|
42
42
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import '@szhsin/react-menu/dist/index.css';
|
|
3
3
|
type LuiFilterMenuProps = {
|
|
4
4
|
menuButton: (toggleMenu: () => void) => ReactNode;
|
|
@@ -12,5 +12,5 @@ interface SelectMenuItem {
|
|
|
12
12
|
display: string;
|
|
13
13
|
specialType?: 'div' | 'head';
|
|
14
14
|
}
|
|
15
|
-
export declare const LuiFilterMenu: (props: LuiFilterMenuProps) => JSX.Element;
|
|
15
|
+
export declare const LuiFilterMenu: (props: LuiFilterMenuProps) => React.JSX.Element;
|
|
16
16
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { JSX } from 'react';
|
|
2
2
|
import { GroupBase, Props, SelectInstance, OptionProps } from 'react-select';
|
|
3
3
|
export type LuiComboSelectProps<Option extends LuiComboSelectOption = LuiComboSelectOption, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>> = Partial<Props<Option, IsMulti, Group>> & {
|
|
4
4
|
label: JSX.Element | string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { JSX } from 'react';
|
|
2
2
|
type Input = JSX.IntrinsicElements['input'];
|
|
3
3
|
type Props = Omit<Input, 'pattern' | 'type' | 'placeholder'>;
|
|
4
4
|
export declare const DateInput: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export interface LuiFileInputBoxProps {
|
|
3
3
|
fileDescription: string;
|
|
4
4
|
acceptedExtensions: string[];
|
|
@@ -10,14 +10,14 @@ export interface LuiFileInputBoxProps {
|
|
|
10
10
|
width?: number | string;
|
|
11
11
|
height?: number | string;
|
|
12
12
|
}
|
|
13
|
-
export declare const LuiFileInputBox: (props: LuiFileInputBoxProps) => JSX.Element;
|
|
13
|
+
export declare const LuiFileInputBox: (props: LuiFileInputBoxProps) => React.JSX.Element;
|
|
14
14
|
export interface FileUploadInfoProps {
|
|
15
15
|
fileName: string | undefined;
|
|
16
16
|
fileDescription: string;
|
|
17
17
|
fileFormatText: string | undefined;
|
|
18
18
|
openFileBrowserText: string | undefined;
|
|
19
19
|
}
|
|
20
|
-
export declare const FileUploadInfo: (props: FileUploadInfoProps) => JSX.Element;
|
|
20
|
+
export declare const FileUploadInfo: (props: FileUploadInfoProps) => React.JSX.Element;
|
|
21
21
|
/**
|
|
22
22
|
* Get the extension from a filename in upper-case.
|
|
23
23
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ChangeEventHandler, InputHTMLAttributes, JSX } from 'react';
|
|
2
2
|
export interface LuiRadioProps {
|
|
3
3
|
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
4
4
|
selectedValue: string;
|
|
@@ -12,4 +12,4 @@ export interface LuiRadioProps {
|
|
|
12
12
|
inputProps?: InputHTMLAttributes<HTMLInputElement>;
|
|
13
13
|
renderLabelFor?: (value: string) => JSX.Element;
|
|
14
14
|
}
|
|
15
|
-
export declare const LuiRadioInput: (props: LuiRadioProps) =>
|
|
15
|
+
export declare const LuiRadioInput: (props: LuiRadioProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ChangeEventHandler, DetailedHTMLProps, JSX, SelectHTMLAttributes } from 'react';
|
|
2
2
|
export type SelectOptions = {
|
|
3
3
|
label: string;
|
|
4
4
|
value: string;
|
|
@@ -17,4 +17,4 @@ export interface SelectProps {
|
|
|
17
17
|
placeholderText?: string;
|
|
18
18
|
className?: string;
|
|
19
19
|
}
|
|
20
|
-
export declare const LuiSelectInput: (props: SelectProps) =>
|
|
20
|
+
export declare const LuiSelectInput: (props: SelectProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type LuiTextAreaInputProps } from './LuiTextAreaInput';
|
|
3
|
-
export declare const LuiAutoExpandTextAreaInput: (props: LuiTextAreaInputProps) => JSX.Element;
|
|
3
|
+
export declare const LuiAutoExpandTextAreaInput: (props: LuiTextAreaInputProps) => React.JSX.Element;
|
|
@@ -46,6 +46,6 @@ interface ILuiDrawerMenuSection {
|
|
|
46
46
|
collapsible?: boolean;
|
|
47
47
|
children: ReactNode;
|
|
48
48
|
}
|
|
49
|
-
declare const LuiDrawerMenuSection: (props: ILuiDrawerMenuSection) => JSX.Element;
|
|
50
|
-
declare const LuiDrawerMenuDivider: () => JSX.Element;
|
|
49
|
+
declare const LuiDrawerMenuSection: (props: ILuiDrawerMenuSection) => React.JSX.Element;
|
|
50
|
+
declare const LuiDrawerMenuDivider: () => React.JSX.Element;
|
|
51
51
|
export { ILuiDrawerMenu, LuiDrawerMenu, LuiDrawerMenuOptions, ILuiDrawerMenuOption, LuiDrawerMenuOption, ILuiDropdownMenu, LuiDropdownMenu, ILuiDrawerMenuSection, LuiDrawerMenuSection, LuiDrawerMenuDivider, };
|
|
@@ -38,10 +38,10 @@ interface LuiDrawerMenuOptionV2Props {
|
|
|
38
38
|
*/
|
|
39
39
|
url?: string;
|
|
40
40
|
}
|
|
41
|
-
declare const LuiDrawerMenuOptionsV2: ({ children
|
|
41
|
+
declare const LuiDrawerMenuOptionsV2: ({ children }: {
|
|
42
42
|
children: ReactNode;
|
|
43
|
-
}) => JSX.Element;
|
|
44
|
-
declare const LuiDrawerMenuOptionV2: ({ icon, iconColor, label, badge, iconSize, closeMenuOnClick, onClick, url, }: LuiDrawerMenuOptionV2Props) => JSX.Element;
|
|
43
|
+
}) => React.JSX.Element;
|
|
44
|
+
declare const LuiDrawerMenuOptionV2: ({ icon, iconColor, label, badge, iconSize, closeMenuOnClick, onClick, url, }: LuiDrawerMenuOptionV2Props) => React.JSX.Element;
|
|
45
45
|
type LuiDrawerMenuV2Props = Omit<LuiHeaderMenuItemV2Props, 'onClick' | 'isSelected'> & {
|
|
46
46
|
hasStickyHeader?: boolean;
|
|
47
47
|
size?: Exclude<Size, 'xs'>;
|
|
@@ -56,7 +56,7 @@ declare const LuiDrawerMenuV2: ({ children, hasStickyHeader, size, type, ...menu
|
|
|
56
56
|
type?: "drawer" | "dropdown" | undefined;
|
|
57
57
|
} & {
|
|
58
58
|
children: ReactNode;
|
|
59
|
-
}) => JSX.Element;
|
|
59
|
+
}) => React.JSX.Element;
|
|
60
60
|
type LuiDropdownMenuV2Props = Omit<LuiHeaderMenuItemV2Props, 'onClick' | 'isSelected'> & {
|
|
61
61
|
/**
|
|
62
62
|
* The anchor origin of dropdown, default to left
|
|
@@ -88,7 +88,7 @@ declare const LuiDropdownMenuV2: (props: Omit<LuiHeaderMenuItemV2Props, "onClick
|
|
|
88
88
|
size?: Size | "xxl" | undefined;
|
|
89
89
|
} & {
|
|
90
90
|
children: ReactNode;
|
|
91
|
-
}) => JSX.Element;
|
|
91
|
+
}) => React.JSX.Element;
|
|
92
92
|
type LuiDrawerMenuSectionV2Props = {
|
|
93
93
|
/**
|
|
94
94
|
* Optional tile, displays a header if set
|
|
@@ -97,6 +97,6 @@ type LuiDrawerMenuSectionV2Props = {
|
|
|
97
97
|
collapsible?: boolean;
|
|
98
98
|
children: ReactNode;
|
|
99
99
|
};
|
|
100
|
-
declare const LuiDrawerMenuSectionV2: (props: LuiDrawerMenuSectionV2Props) => JSX.Element;
|
|
101
|
-
declare const LuiDrawerMenuDividerV2: () => JSX.Element;
|
|
100
|
+
declare const LuiDrawerMenuSectionV2: (props: LuiDrawerMenuSectionV2Props) => React.JSX.Element;
|
|
101
|
+
declare const LuiDrawerMenuDividerV2: () => React.JSX.Element;
|
|
102
102
|
export { LuiDrawerMenuV2Props, LuiDrawerMenuV2, LuiDrawerMenuOptionV2Props, LuiDrawerMenuOptionV2, LuiDrawerMenuOptionsV2, LuiDrawerMenuSectionV2Props, LuiDrawerMenuSectionV2, LuiDropdownMenuV2Props, LuiDropdownMenuV2, LuiDrawerMenuDividerV2, };
|
|
@@ -11,7 +11,7 @@ type LuiHeaderV2Props = {
|
|
|
11
11
|
};
|
|
12
12
|
declare const LuiHeaderV2: ({ headingText, size, homeLink, transparent, children, sticky, appMenu, }: LuiHeaderV2Props & {
|
|
13
13
|
children: ReactNode;
|
|
14
|
-
}) => JSX.Element;
|
|
14
|
+
}) => React.JSX.Element;
|
|
15
15
|
type LuiHeaderMenuItemV2Props = {
|
|
16
16
|
/**
|
|
17
17
|
* LuiIcon name
|
|
@@ -97,7 +97,7 @@ declare const LuiCloseableHeaderMenuItemV2: ({ children, menuControls, ...props
|
|
|
97
97
|
};
|
|
98
98
|
} & {
|
|
99
99
|
children?: ReactNode;
|
|
100
|
-
}) => JSX.Element;
|
|
100
|
+
}) => React.JSX.Element;
|
|
101
101
|
type LuiMenuCloseButtonV2Props = {
|
|
102
102
|
'data-testid'?: string;
|
|
103
103
|
hide?: boolean;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { IItemRendererProps, ILuiListItemNode } from './LuiListBox';
|
|
3
|
+
import React from 'react';
|
|
3
4
|
import { ListState } from '@react-stately/list';
|
|
4
5
|
export interface ILuiListBoxItemProps<T> {
|
|
5
6
|
node: ILuiListItemNode<T>;
|
|
6
7
|
state: ListState<ILuiListItemNode<T>>;
|
|
7
8
|
renderer: (item: IItemRendererProps<T>) => ReactNode;
|
|
8
9
|
}
|
|
9
|
-
export default function LuiListBoxItem<T>({ node, state, renderer, }: ILuiListBoxItemProps<T>): JSX.Element;
|
|
10
|
+
export default function LuiListBoxItem<T>({ node, state, renderer, }: ILuiListBoxItemProps<T>): React.JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ControlledMenuProps, MenuProps } from '@szhsin/react-menu';
|
|
3
3
|
/**
|
|
4
4
|
* A menu controlled by a user-supplied MenuButton. Open/closed state is managed internally. The defaulted style props,
|
|
5
5
|
* menuClassName and offsetY, can be overridden simply by setting them in the usual way.
|
|
6
6
|
*/
|
|
7
|
-
export declare const LuiMenu: (props: MenuProps) => JSX.Element;
|
|
7
|
+
export declare const LuiMenu: (props: MenuProps) => React.JSX.Element;
|
|
8
8
|
/**
|
|
9
9
|
* A menu with state managed externally. Can be used quite conveniently as a context menu. The defaulted style props,
|
|
10
10
|
* menuClassName and offsetY, can be overridden simply by setting them in the usual way.
|
|
11
11
|
*/
|
|
12
|
-
export declare const LuiControlledMenu: (props: ControlledMenuProps) => JSX.Element;
|
|
12
|
+
export declare const LuiControlledMenu: (props: ControlledMenuProps) => React.JSX.Element;
|
|
@@ -24,7 +24,7 @@ export type LuiModalV2Props = {
|
|
|
24
24
|
};
|
|
25
25
|
/** Implements the [updated modal design system](https://www.figma.com/design/E7g3n5ziI7bR8MisISayia/FigLUI?node-id=9924-54717&t=q2r6Gct1cKGP9Q5B-0), keeping the same api as `LuiModal` as much as possible. */
|
|
26
26
|
export declare const LuiModalV2: {
|
|
27
|
-
(props: PropsWithChildren<LuiModalV2Props>): JSX.Element;
|
|
27
|
+
(props: PropsWithChildren<LuiModalV2Props>): React.JSX.Element;
|
|
28
28
|
Buttons: React.FC<React.PropsWithChildren<{
|
|
29
29
|
className?: string | undefined;
|
|
30
30
|
}>>;
|
|
@@ -37,5 +37,5 @@ export interface ILuiSearchBoxProps {
|
|
|
37
37
|
* The options of the menu and input can be passed in as an array.
|
|
38
38
|
* See examples in SearchBox in storybook.
|
|
39
39
|
*/
|
|
40
|
-
export declare const LuiSearchBox: ({ searchBoxOptions, initOptionValue, onMenuSelect, autoFocus, externalSearch, searchString, onClickInput, onClearInput, }: ILuiSearchBoxProps) => JSX.Element;
|
|
40
|
+
export declare const LuiSearchBox: ({ searchBoxOptions, initOptionValue, onMenuSelect, autoFocus, externalSearch, searchString, onClickInput, onClearInput, }: ILuiSearchBoxProps) => React.JSX.Element;
|
|
41
41
|
export declare const LuiSearchBoxButton: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<LuiButtonProps>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -16,7 +16,7 @@ export interface IResultsProps<SearchResult extends ISearchResult = ISearchResul
|
|
|
16
16
|
setSelectedId: (id: string) => void;
|
|
17
17
|
renderItem: (item: SearchResult) => ReactElement;
|
|
18
18
|
results: SearchResult[] | ISearchGroupedResult<SearchResult>[];
|
|
19
|
-
selectedRef: RefObject<HTMLDivElement>;
|
|
19
|
+
selectedRef: RefObject<HTMLDivElement | null>;
|
|
20
20
|
}
|
|
21
21
|
export declare function isGroupedResult<SearchResult extends ISearchResult = ISearchResult>(result: SearchResult[] | ISearchGroupedResult<SearchResult>[]): result is ISearchGroupedResult<SearchResult>[];
|
|
22
22
|
declare const ResultsDisplay: <SearchResults extends ISearchResult = ISearchResult>({ isLoading, onClick, children, selectedId, selectedRef, setSelectedId, results, renderItem, }: React.PropsWithChildren<IResultsProps<SearchResults>>) => ReactElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MenuHeaderProps } from '@szhsin/react-menu';
|
|
2
|
-
import { ReactElement } from 'react';
|
|
2
|
+
import React, { ReactElement } from 'react';
|
|
3
3
|
export type MenuItemType = {
|
|
4
4
|
[key: string]: any;
|
|
5
5
|
};
|
|
@@ -10,6 +10,6 @@ export interface ILuiSelectMenuProps {
|
|
|
10
10
|
items: (MenuItemType | MenuItemGroupType)[];
|
|
11
11
|
menuButton: ReactElement;
|
|
12
12
|
}
|
|
13
|
-
export declare const LuiSelectDataMenu: ({ ...props }: ILuiSelectMenuProps) => JSX.Element;
|
|
14
|
-
export declare const LuiSelectMenuDivider: () => JSX.Element;
|
|
15
|
-
export declare const LuiSelectMenuHeader: (props: MenuHeaderProps) => JSX.Element;
|
|
13
|
+
export declare const LuiSelectDataMenu: ({ ...props }: ILuiSelectMenuProps) => React.JSX.Element;
|
|
14
|
+
export declare const LuiSelectMenuDivider: () => React.JSX.Element;
|
|
15
|
+
export declare const LuiSelectMenuHeader: (props: MenuHeaderProps) => React.JSX.Element;
|
|
@@ -11,15 +11,15 @@ export interface ILuiSelectMenuItemProps extends MenuItemProps {
|
|
|
11
11
|
'data-testid'?: string;
|
|
12
12
|
loading?: boolean;
|
|
13
13
|
}
|
|
14
|
-
export declare const LuiSelectMenu: ({ ...props }: MenuProps) => JSX.Element;
|
|
15
|
-
export declare const LuiSelectMenuItem: ({ iconName, iconAlt, level, noPadding, loading, ...rest }: ILuiSelectMenuItemProps) => JSX.Element;
|
|
14
|
+
export declare const LuiSelectMenu: ({ ...props }: MenuProps) => React.JSX.Element;
|
|
15
|
+
export declare const LuiSelectMenuItem: ({ iconName, iconAlt, level, noPadding, loading, ...rest }: ILuiSelectMenuItemProps) => React.JSX.Element;
|
|
16
16
|
export type LuiSelectMenuItemSwitchProps = Omit<ILuiSelectMenuItemProps, 'iconName' | 'iconAlt'> & {
|
|
17
17
|
checked?: boolean;
|
|
18
18
|
};
|
|
19
|
-
export declare const LuiSelectMenuItemSwitch: ({ checked, children, className, ...props }: LuiSelectMenuItemSwitchProps) => JSX.Element;
|
|
19
|
+
export declare const LuiSelectMenuItemSwitch: ({ checked, children, className, ...props }: LuiSelectMenuItemSwitchProps) => React.JSX.Element;
|
|
20
20
|
export interface ILuiSelectSubMenuItemProps extends SubMenuProps {
|
|
21
21
|
iconName?: string;
|
|
22
22
|
iconAlt?: string;
|
|
23
23
|
label: string;
|
|
24
24
|
}
|
|
25
|
-
export declare const LuiSelectSubMenuItem: ({ label, iconName, iconAlt, ...rest }: ILuiSelectSubMenuItemProps) => JSX.Element;
|
|
25
|
+
export declare const LuiSelectSubMenuItem: ({ label, iconName, iconAlt, ...rest }: ILuiSelectSubMenuItemProps) => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './LuiSideToolbar.scss';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import React, { ReactNode } from 'react';
|
|
3
3
|
export declare enum ToolbarDirection {
|
|
4
4
|
LEFT = "Left",
|
|
5
5
|
RIGHT = "Right"
|
|
@@ -8,4 +8,4 @@ export interface ToolbarProps {
|
|
|
8
8
|
direction: ToolbarDirection;
|
|
9
9
|
children: ReactNode;
|
|
10
10
|
}
|
|
11
|
-
export declare function LuiSideToolbar(props: ToolbarProps): JSX.Element;
|
|
11
|
+
export declare function LuiSideToolbar(props: ToolbarProps): React.JSX.Element;
|
|
@@ -13,5 +13,5 @@ export interface ToolbarItemProps {
|
|
|
13
13
|
* @param props
|
|
14
14
|
* @returns
|
|
15
15
|
*/
|
|
16
|
-
export declare const ToolbarItem: (props: ToolbarItemProps) => JSX.Element;
|
|
16
|
+
export declare const ToolbarItem: (props: ToolbarItemProps) => React.JSX.Element;
|
|
17
17
|
export declare const ToolbarItemSeparator: () => React.JSX.Element;
|
|
@@ -26,5 +26,5 @@ export declare enum LuiSplitButtonPosition {
|
|
|
26
26
|
TOP = "Top",
|
|
27
27
|
BOTTOM = "Bottom"
|
|
28
28
|
}
|
|
29
|
-
export declare const LuiSplitButtonMenuItem: ({ iconName, iconAlt, level, noPadding, ...rest }: ILuiSplitButtonMenuItemProps) => JSX.Element;
|
|
30
|
-
export declare const LuiSplitButton: ({ position, ...props }: ILuiSplitButtonProps) => JSX.Element;
|
|
29
|
+
export declare const LuiSplitButtonMenuItem: ({ iconName, iconAlt, level, noPadding, ...rest }: ILuiSplitButtonMenuItemProps) => React.JSX.Element;
|
|
30
|
+
export declare const LuiSplitButton: ({ position, ...props }: ILuiSplitButtonProps) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
export interface ILuiStaticMessage {
|
|
3
3
|
level: 'success' | 'info' | 'warning' | 'error';
|
|
4
4
|
closable?: boolean;
|
|
@@ -7,4 +7,4 @@ export interface ILuiStaticMessage {
|
|
|
7
7
|
className?: string;
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
}
|
|
10
|
-
export declare const LuiStaticMessage: (props: ILuiStaticMessage) => JSX.Element;
|
|
10
|
+
export declare const LuiStaticMessage: (props: ILuiStaticMessage) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX, ReactNode } from 'react';
|
|
2
2
|
interface IFrameConfig {
|
|
3
3
|
url: string;
|
|
4
4
|
width: number;
|
|
@@ -23,5 +23,5 @@ type SplashModalProps = {
|
|
|
23
23
|
smallImage?: never;
|
|
24
24
|
iframe: IFrameConfig;
|
|
25
25
|
});
|
|
26
|
-
export declare const LuiUpdatesSplashModal: (props: SplashModalProps) =>
|
|
26
|
+
export declare const LuiUpdatesSplashModal: (props: SplashModalProps) => JSX.Element;
|
|
27
27
|
export {};
|
|
@@ -2,6 +2,6 @@ import React, { RefObject } from 'react';
|
|
|
2
2
|
type Side = 'primary' | 'secondary';
|
|
3
3
|
export declare const ControlIcon: ({ parent, side, }: {
|
|
4
4
|
side: Side;
|
|
5
|
-
parent: RefObject<HTMLButtonElement>;
|
|
5
|
+
parent: RefObject<HTMLButtonElement | null>;
|
|
6
6
|
}) => React.JSX.Element | null;
|
|
7
7
|
export {};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const VerticalSection: (props: SectionProps) => React.JSX.Element;
|
|
5
|
-
export {};
|
|
2
|
+
export declare const HorizontalSection: (props: JSX.IntrinsicElements) => React.JSX.Element;
|
|
3
|
+
export declare const VerticalSection: (props: JSX.IntrinsicElements) => React.JSX.Element;
|
|
@@ -10,7 +10,7 @@ type Props = {
|
|
|
10
10
|
} | {
|
|
11
11
|
child?: never;
|
|
12
12
|
separator?: never;
|
|
13
|
-
ref?: RefObject<HTMLElement> | null | undefined;
|
|
13
|
+
ref?: RefObject<HTMLElement | null> | null | undefined;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* Given a ref/element if finds the Separator and returns the most useful attributes
|
|
@@ -4,4 +4,4 @@ import { RefObject } from 'react';
|
|
|
4
4
|
* @param separatorRef Separator ref
|
|
5
5
|
* @param drag Represents mouse/touch horizontal/vertical coordinate when the user is resizing.
|
|
6
6
|
*/
|
|
7
|
-
export declare const getSeparatorPosition: (separatorRef: RefObject<HTMLDivElement>, drag: number) => number;
|
|
7
|
+
export declare const getSeparatorPosition: (separatorRef: RefObject<HTMLDivElement | null>, drag: number) => number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
-
export declare const transition: (props: RefObject<HTMLDivElement> | HTMLDivElement) => {
|
|
2
|
+
export declare const transition: (props: RefObject<HTMLDivElement | null> | HTMLDivElement) => {
|
|
3
3
|
stop: () => void;
|
|
4
4
|
resume: () => void;
|
|
5
5
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
type ForwardedRef<T> = ((instance: T | null) => void) | React.
|
|
3
|
-
export declare const useForkRef: <T>(forwardedRef: ForwardedRef<T>) => import("react").RefObject<T>;
|
|
2
|
+
type ForwardedRef<T> = ((instance: T | null) => void) | React.RefObject<T | null> | null;
|
|
3
|
+
export declare const useForkRef: <T>(forwardedRef: ForwardedRef<T>) => import("react").RefObject<T | null>;
|
|
4
4
|
export {};
|
|
@@ -3,7 +3,7 @@ import { RefObject } from 'react';
|
|
|
3
3
|
* It captures window events to report a new position.
|
|
4
4
|
* Provides necessary handlers for separator.
|
|
5
5
|
*/
|
|
6
|
-
export declare const useMoveSeparator: (separator: RefObject<HTMLDivElement>, resize: (val: number) => void) => {
|
|
6
|
+
export declare const useMoveSeparator: (separator: RefObject<HTMLDivElement | null>, resize: (val: number) => void) => {
|
|
7
7
|
onMouseDown: () => void;
|
|
8
8
|
onTouchStart: () => void;
|
|
9
9
|
onTouchEnd: () => void;
|
|
@@ -4,4 +4,4 @@ import { RefObject } from 'react';
|
|
|
4
4
|
* The consumer must render 2 element nodes (not components), to be able to split.
|
|
5
5
|
* @param separatorRef Separator ref
|
|
6
6
|
*/
|
|
7
|
-
export declare const useShowSeparator: (separatorRef: RefObject<HTMLDivElement>) => void;
|
|
7
|
+
export declare const useShowSeparator: (separatorRef: RefObject<HTMLDivElement | null>) => void;
|
|
@@ -8,7 +8,7 @@ import { RefObject } from 'react';
|
|
|
8
8
|
export declare const useValueSeparator: ({ separator, ratio, onResized, startAt, }: {
|
|
9
9
|
ratio?: number | undefined;
|
|
10
10
|
onResized?: ((newVal: number) => void) | undefined;
|
|
11
|
-
separator: RefObject<HTMLDivElement>;
|
|
11
|
+
separator: RefObject<HTMLDivElement | null>;
|
|
12
12
|
startAt?: number | undefined;
|
|
13
13
|
}) => {
|
|
14
14
|
setValueNow: (val?: number) => void;
|
|
@@ -2,4 +2,4 @@ import { RefObject } from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* Calls setValueNow when the separator attributes change.
|
|
4
4
|
*/
|
|
5
|
-
export declare const useValueSeparatorEffects: (setValueNow: (val?: number) => void, separator: RefObject<HTMLDivElement>, ratio?: number, startAt?: number) => void;
|
|
5
|
+
export declare const useValueSeparatorEffects: (setValueNow: (val?: number) => void, separator: RefObject<HTMLDivElement | null>, ratio?: number, startAt?: number) => void;
|
|
@@ -14,7 +14,7 @@ export declare const useEscapeFunction: (onEscape: (e: KeyboardEvent) => void |
|
|
|
14
14
|
* @param onClickOutsideArg handler for mouse clicks outside the element
|
|
15
15
|
* @return a react ref which can be bound to an html element
|
|
16
16
|
*/
|
|
17
|
-
export declare const usePageClickFunction: <H extends Element>(onClickInsideArg: (event: MouseEvent) => void, onClickOutsideArg: (event: MouseEvent) => void) => import("react").RefObject<H>;
|
|
17
|
+
export declare const usePageClickFunction: <H extends Element>(onClickInsideArg: (event: MouseEvent) => void, onClickOutsideArg: (event: MouseEvent) => void) => import("react").RefObject<H | null>;
|
|
18
18
|
/** Disables scrolling on an specified element */
|
|
19
19
|
export declare const useDisableScroll: (el?: HTMLElement | null, shouldDisable?: boolean) => void;
|
|
20
20
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX, PropsWithChildren } from 'react';
|
|
2
2
|
export type MessageLevel = 'success' | 'info' | 'warning' | 'error';
|
|
3
3
|
export type MessageType = 'toast';
|
|
4
4
|
export interface IUIMessagingContext {
|
|
@@ -11,4 +11,4 @@ export interface ShowMessageProps {
|
|
|
11
11
|
messageLevel: MessageLevel;
|
|
12
12
|
requireDismiss?: boolean;
|
|
13
13
|
}
|
|
14
|
-
export declare const LuiMessagingContextProvider: ({ children, }: PropsWithChildren<unknown>) =>
|
|
14
|
+
export declare const LuiMessagingContextProvider: ({ children, }: PropsWithChildren<unknown>) => JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -6601,7 +6601,7 @@ var smlLoaderData = {
|
|
|
6601
6601
|
var LuiLottieLight = function (_a) {
|
|
6602
6602
|
var animationData = _a.animationData, style = _a.style, rendererSettings = _a.rendererSettings, autoplay = _a.autoplay, loop = _a.loop;
|
|
6603
6603
|
var element = React__default["default"].useRef(null);
|
|
6604
|
-
var lottieInstance = React__default["default"].useRef();
|
|
6604
|
+
var lottieInstance = React__default["default"].useRef(undefined);
|
|
6605
6605
|
React__default["default"].useEffect(function () {
|
|
6606
6606
|
if (element.current) {
|
|
6607
6607
|
lottieInstance.current = lottie__default["default"].loadAnimation({
|
|
@@ -40282,7 +40282,7 @@ var useValueNowEffect = function (setValueNow, separator) {
|
|
|
40282
40282
|
* Makes sure that separator is within boundaries
|
|
40283
40283
|
*/
|
|
40284
40284
|
var useResizeEffect = function (setValueNow, separator) {
|
|
40285
|
-
var length = React.useRef();
|
|
40285
|
+
var length = React.useRef(undefined);
|
|
40286
40286
|
var _a = React.useState(0), count = _a[0], setCount = _a[1];
|
|
40287
40287
|
React.useEffect(function () {
|
|
40288
40288
|
var element = separator.current.parentElement;
|