@linzjs/lui 17.16.0 → 17.16.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.
- package/CHANGELOG.md +7 -0
- package/README.md +1 -1
- package/dist/components/LuiBearingInput/LuiBearingInput.d.ts +2 -2
- package/dist/components/LuiErrorPage/LuiErrorPage.d.ts +2 -2
- package/dist/components/LuiExpandableBanner/LuiExpandableBanner.d.ts +1 -1
- package/dist/components/LuiFooter/LuiFooter.d.ts +1 -1
- package/dist/components/LuiFormikForms/LuiFormikFormLabel/LuiFormikFormLabel.d.ts +2 -2
- package/dist/components/LuiFormikForms/LuiFormikRadioButton/LuiFormikRadioButton.d.ts +2 -2
- package/dist/components/LuiFormikForms/LuiFormikRadioGroup/LuiFormikRadioGroup.d.ts +2 -2
- package/dist/components/LuiForms/LuiFormSection/LuiHelpInfo/LuiHelpInfo.d.ts +1 -1
- package/dist/components/LuiHeader/LuiHeader.d.ts +3 -3
- package/dist/components/LuiHeaderMenu/LuiHeaderMenus.d.ts +4 -4
- package/dist/components/LuiLoadingSpinner/LuiLoadingSpinner.d.ts +1 -1
- package/dist/components/LuiModal/LuiModal.d.ts +5 -5
- package/dist/components/LuiSearchInput/LuiSearchInput.d.ts +1 -1
- package/dist/components/LuiSearchInput/ResultsDisplay.d.ts +1 -1
- package/dist/components/LuiSidePanel/LuiSidePanel.d.ts +3 -3
- package/dist/components/LuiTabs/LuiTab/LuiTab.d.ts +1 -1
- package/dist/components/LuiTabs/LuiTabs.d.ts +2 -2
- package/dist/components/LuiTabs/LuiTabsGroup/LuiTabsGroup.d.ts +2 -2
- package/dist/components/LuiTabs/LuiTabsPanel/LuiTabsPanel.d.ts +1 -1
- package/dist/components/LuiTabs/LuiTabsPanelSwitch/LuiTabsPanelSwitch.d.ts +1 -1
- package/dist/components/LuiToastMessage/LuiToastMessage.d.ts +1 -1
- package/dist/components/LuiUpdateSplashModal/LuiUpdatesSplashModal.d.ts +2 -2
- package/dist/components/lol/LOLDrawerMenuFirmSwitcher.d.ts +1 -1
- package/dist/components/lol/LOLFirmSwitcher.d.ts +3 -3
- package/dist/components/lol/LOLUserLastLogin.d.ts +1 -1
- package/dist/contexts/LuiMessagingContextProvider.d.ts +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/lui.esm.js +1 -2
- package/dist/lui.esm.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [17.16.1](https://github.com/linz/lui/compare/v17.16.0...v17.16.1) (2022-10-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **Chromatic:** Increasing diff threshold to prevent false positives on the tooltip stories ([#774](https://github.com/linz/lui/issues/774)) ([771e180](https://github.com/linz/lui/commit/771e180933808be07f4547f0eb6db54bc51e4abb))
|
|
7
|
+
|
|
1
8
|
# [17.16.0](https://github.com/linz/lui/compare/v17.15.1...v17.16.0) (2022-09-29)
|
|
2
9
|
|
|
3
10
|
|
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ over the CSS is part of this project.
|
|
|
45
45
|
There is lots to do in this project, often things will be left until there is demand. Please join the Slack channel
|
|
46
46
|
#cop-lui.
|
|
47
47
|
|
|
48
|
-
## Documentation
|
|
48
|
+
## Documentation
|
|
49
49
|
|
|
50
50
|
Storybook is the main source of documentation.
|
|
51
51
|
|
|
@@ -12,12 +12,12 @@ interface LuiBearingInputProps {
|
|
|
12
12
|
/** If true, validationError prop takes precedence over the internalError value. */
|
|
13
13
|
preferValidationError?: boolean;
|
|
14
14
|
}
|
|
15
|
-
export declare const LuiBearingInput: React.FC<LuiBearingInputProps & LuiCommonInputProps
|
|
15
|
+
export declare const LuiBearingInput: React.FC<React.PropsWithChildren<LuiBearingInputProps & LuiCommonInputProps>>;
|
|
16
16
|
interface LuiBearingFormikInputProps {
|
|
17
17
|
name: string;
|
|
18
18
|
label: string;
|
|
19
19
|
/** If true, validationError prop takes precedence over the LuiBearingInput internalError value. */
|
|
20
20
|
preferValidationError?: boolean;
|
|
21
21
|
}
|
|
22
|
-
export declare const LuiBearingFormikInput: React.FC<LuiBearingFormikInputProps & LuiCommonInputProps
|
|
22
|
+
export declare const LuiBearingFormikInput: React.FC<React.PropsWithChildren<LuiBearingFormikInputProps & LuiCommonInputProps>>;
|
|
23
23
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const LuiFormikFormLabel: React.FC<{
|
|
2
|
+
export declare const LuiFormikFormLabel: React.FC<React.PropsWithChildren<{
|
|
3
3
|
for: string;
|
|
4
4
|
label: string;
|
|
5
5
|
className?: string;
|
|
6
6
|
required?: boolean;
|
|
7
7
|
tooltip?: string;
|
|
8
|
-
}
|
|
8
|
+
}>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LuiCommonInputProps } from '../LuiFormikForm';
|
|
3
|
-
export declare const LuiFormikRadioButton: React.FC<{
|
|
3
|
+
export declare const LuiFormikRadioButton: React.FC<React.PropsWithChildren<{
|
|
4
4
|
label: string;
|
|
5
5
|
className?: string;
|
|
6
6
|
value: string;
|
|
7
7
|
name: string;
|
|
8
|
-
} & LuiCommonInputProps
|
|
8
|
+
} & LuiCommonInputProps>>;
|
|
@@ -9,7 +9,7 @@ interface HeaderProps {
|
|
|
9
9
|
transparent?: boolean;
|
|
10
10
|
sticky?: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare const LuiHeader: React.FC<HeaderProps
|
|
12
|
+
declare const LuiHeader: React.FC<React.PropsWithChildren<HeaderProps>>;
|
|
13
13
|
interface ILuiIcon {
|
|
14
14
|
/**
|
|
15
15
|
* The material-ui icon name (see https://material.io/resources/icons/?search=account_c&style=round)
|
|
@@ -56,9 +56,9 @@ interface ILuiCloseableHeaderMenuItem extends Omit<ILuiHeaderMenuItem, 'onClick'
|
|
|
56
56
|
open: boolean;
|
|
57
57
|
setOpen: (value: boolean) => void;
|
|
58
58
|
}
|
|
59
|
-
declare const LuiCloseableHeaderMenuItem: React.FC<ILuiCloseableHeaderMenuItem
|
|
59
|
+
declare const LuiCloseableHeaderMenuItem: React.FC<React.PropsWithChildren<ILuiCloseableHeaderMenuItem>>;
|
|
60
60
|
interface ILuiMenuCloseButton extends ILuiIcon {
|
|
61
61
|
'data-testid'?: string;
|
|
62
62
|
}
|
|
63
|
-
declare const LuiMenuCloseButton: React.FC<ILuiMenuCloseButton
|
|
63
|
+
declare const LuiMenuCloseButton: React.FC<React.PropsWithChildren<ILuiMenuCloseButton>>;
|
|
64
64
|
export { HeaderSize, HeaderProps, LuiHeader, ILuiIcon, ILuiHeaderMenuItem, LuiHeaderMenuItem, ILuiMenuCloseButton, LuiMenuCloseButton, ILuiCloseableHeaderMenuItem, LuiCloseableHeaderMenuItem, LuiCloseableHeaderMenuContext, };
|
|
@@ -18,14 +18,14 @@ interface ILuiDrawerMenuOption {
|
|
|
18
18
|
*/
|
|
19
19
|
onClick?: () => void;
|
|
20
20
|
}
|
|
21
|
-
declare const LuiDrawerMenuOptions: React.FC<ILuiIcon
|
|
22
|
-
declare const LuiDrawerMenuOption: React.FC<ILuiDrawerMenuOption
|
|
21
|
+
declare const LuiDrawerMenuOptions: React.FC<React.PropsWithChildren<ILuiIcon>>;
|
|
22
|
+
declare const LuiDrawerMenuOption: React.FC<React.PropsWithChildren<ILuiDrawerMenuOption>>;
|
|
23
23
|
declare type ILuiDrawerMenu = Omit<ILuiHeaderMenuItem, 'onClick'> & {
|
|
24
24
|
hasStickyHeader?: boolean;
|
|
25
25
|
};
|
|
26
|
-
declare const LuiDrawerMenu: React.FC<ILuiDrawerMenu
|
|
26
|
+
declare const LuiDrawerMenu: React.FC<React.PropsWithChildren<ILuiDrawerMenu>>;
|
|
27
27
|
declare type ILuiDropdownMenu = Omit<ILuiHeaderMenuItem, 'onClick'>;
|
|
28
|
-
declare const LuiDropdownMenu: React.FC<ILuiDropdownMenu
|
|
28
|
+
declare const LuiDropdownMenu: React.FC<React.PropsWithChildren<ILuiDropdownMenu>>;
|
|
29
29
|
interface ILuiDrawerMenuSection {
|
|
30
30
|
/**
|
|
31
31
|
* Optional tile, displays a header if set
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* A LuiSpinner with a status message beneath it.
|
|
4
4
|
*/
|
|
5
|
-
export declare const LuiStatusSpinner: React.FC
|
|
5
|
+
export declare const LuiStatusSpinner: React.FC<React.PropsWithChildren<unknown>>;
|
|
6
6
|
interface LuiMiniSpinnerProps {
|
|
7
7
|
size: number;
|
|
8
8
|
divProps?: any;
|
|
@@ -9,14 +9,14 @@ interface ILuiModal {
|
|
|
9
9
|
lowContrast?: boolean;
|
|
10
10
|
appendToElement?: () => HTMLElement;
|
|
11
11
|
}
|
|
12
|
-
export declare const LuiModal: React.FC<ILuiModal
|
|
13
|
-
export declare const LuiAlertModal: React.FC<{
|
|
12
|
+
export declare const LuiModal: React.FC<React.PropsWithChildren<ILuiModal>>;
|
|
13
|
+
export declare const LuiAlertModal: React.FC<React.PropsWithChildren<{
|
|
14
14
|
level: 'success' | 'info' | 'warning' | 'error';
|
|
15
|
-
} & ILuiModal
|
|
16
|
-
export declare const LuiAlertModalButtons: React.FC
|
|
15
|
+
} & ILuiModal>>;
|
|
16
|
+
export declare const LuiAlertModalButtons: React.FC<React.PropsWithChildren<unknown>>;
|
|
17
17
|
interface IModalHeader {
|
|
18
18
|
headingText?: string;
|
|
19
19
|
onClose?: () => void;
|
|
20
20
|
}
|
|
21
|
-
export declare const LuiModalHeader: React.FC<IModalHeader
|
|
21
|
+
export declare const LuiModalHeader: React.FC<React.PropsWithChildren<IModalHeader>>;
|
|
22
22
|
export {};
|
|
@@ -23,4 +23,4 @@ export interface ISearchInputProps {
|
|
|
23
23
|
focusUpdate?: boolean;
|
|
24
24
|
}
|
|
25
25
|
export declare function isGroupedResult(result: ISearchResult[] | ISearchGroupedResult[]): result is ISearchGroupedResult[];
|
|
26
|
-
export declare const LuiSearchInput: React.FC<ISearchInputProps
|
|
26
|
+
export declare const LuiSearchInput: React.FC<React.PropsWithChildren<ISearchInputProps>>;
|
|
@@ -9,5 +9,5 @@ export interface IResultsProps {
|
|
|
9
9
|
results: ISearchResult[] | ISearchGroupedResult[];
|
|
10
10
|
selectedRef: RefObject<HTMLDivElement>;
|
|
11
11
|
}
|
|
12
|
-
declare const ResultsDisplay: React.FC<IResultsProps
|
|
12
|
+
declare const ResultsDisplay: React.FC<React.PropsWithChildren<IResultsProps>>;
|
|
13
13
|
export default ResultsDisplay;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const LuiSidePanel: React.FC<{
|
|
2
|
+
export declare const LuiSidePanel: React.FC<React.PropsWithChildren<{
|
|
3
3
|
onClose: () => void;
|
|
4
4
|
width?: string;
|
|
5
5
|
closeBtnTitleAttr?: string;
|
|
6
6
|
top?: number;
|
|
7
|
-
}
|
|
8
|
-
export declare const LuiSidePanelProvider: React.FC
|
|
7
|
+
}>>;
|
|
8
|
+
export declare const LuiSidePanelProvider: React.FC<React.PropsWithChildren<unknown>>;
|
|
@@ -4,7 +4,7 @@ interface ILuiTabsContext {
|
|
|
4
4
|
setActivePanel: (activePanel: string) => void;
|
|
5
5
|
}
|
|
6
6
|
export declare const LuiTabsContext: React.Context<ILuiTabsContext>;
|
|
7
|
-
export declare const LuiTabs: React.FC<{
|
|
7
|
+
export declare const LuiTabs: React.FC<React.PropsWithChildren<{
|
|
8
8
|
defaultPanel: string;
|
|
9
|
-
}
|
|
9
|
+
}>>;
|
|
10
10
|
export {};
|
|
@@ -3,5 +3,5 @@ interface LuiTabsPanelSwitch {
|
|
|
3
3
|
targetPanel: string;
|
|
4
4
|
setActivePanel?: (targetPanel: string) => {};
|
|
5
5
|
}
|
|
6
|
-
export declare const LuiTabsPanelSwitch: React.FC<LuiTabsPanelSwitch
|
|
6
|
+
export declare const LuiTabsPanelSwitch: React.FC<React.PropsWithChildren<LuiTabsPanelSwitch>>;
|
|
7
7
|
export {};
|
|
@@ -14,5 +14,5 @@ interface ILuiToastMessageProps {
|
|
|
14
14
|
children?: React.ReactNode;
|
|
15
15
|
type?: 'button' | 'submit' | 'reset';
|
|
16
16
|
}
|
|
17
|
-
export declare const LuiToastMessage: React.FC<ILuiToastMessageProps
|
|
17
|
+
export declare const LuiToastMessage: React.FC<React.PropsWithChildren<ILuiToastMessageProps>>;
|
|
18
18
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const LuiUpdatesSplashModal: React.FC<{
|
|
2
|
+
export declare const LuiUpdatesSplashModal: React.FC<React.PropsWithChildren<{
|
|
3
3
|
bigImage: string;
|
|
4
4
|
smallImage: string;
|
|
5
5
|
header: string;
|
|
6
6
|
wrapperClass: string;
|
|
7
7
|
onClose: () => void;
|
|
8
8
|
id: string;
|
|
9
|
-
}
|
|
9
|
+
}>>;
|
|
@@ -5,4 +5,4 @@ export interface ILOLDrawerMenuFirmSwitcherProperties {
|
|
|
5
5
|
/**
|
|
6
6
|
* Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
|
|
7
7
|
*/
|
|
8
|
-
export declare const LOLDrawerMenuFirmSwitcher: React.FC<ILOLDrawerMenuFirmSwitcherProperties
|
|
8
|
+
export declare const LOLDrawerMenuFirmSwitcher: React.FC<React.PropsWithChildren<ILOLDrawerMenuFirmSwitcherProperties>>;
|
|
@@ -7,7 +7,7 @@ export declare type ILOLFirmSwitcherMenu = Omit<ILuiDropdownMenu, 'icon' | 'labe
|
|
|
7
7
|
/**
|
|
8
8
|
* Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
|
|
9
9
|
*/
|
|
10
|
-
export declare const LOLFirmSwitcherMenu: React.FC<ILOLFirmSwitcherMenu
|
|
10
|
+
export declare const LOLFirmSwitcherMenu: React.FC<React.PropsWithChildren<ILOLFirmSwitcherMenu>>;
|
|
11
11
|
interface ILOLFirmSwitcherMenuContent {
|
|
12
12
|
firms: IFirm[];
|
|
13
13
|
selectedFirm: IFirm | undefined;
|
|
@@ -15,12 +15,12 @@ interface ILOLFirmSwitcherMenuContent {
|
|
|
15
15
|
collapsible?: boolean;
|
|
16
16
|
minimumFilterCount?: number;
|
|
17
17
|
}
|
|
18
|
-
export declare const LOLFirmSwitcherMenuContent: React.FC<ILOLFirmSwitcherMenuContent
|
|
18
|
+
export declare const LOLFirmSwitcherMenuContent: React.FC<React.PropsWithChildren<ILOLFirmSwitcherMenuContent>>;
|
|
19
19
|
interface IFirmOption {
|
|
20
20
|
value: IFirm;
|
|
21
21
|
selected: boolean;
|
|
22
22
|
onSelect: (optionId: string) => void;
|
|
23
23
|
disabled: boolean;
|
|
24
24
|
}
|
|
25
|
-
export declare const FirmOption: React.FC<IFirmOption
|
|
25
|
+
export declare const FirmOption: React.FC<React.PropsWithChildren<IFirmOption>>;
|
|
26
26
|
export {};
|
|
@@ -2,4 +2,4 @@ import React from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* Deprecated: this is LandOnline specific and has been moved to https://github.com/linz/landonline-common-js
|
|
4
4
|
*/
|
|
5
|
-
export declare const LOLUserLastLogin: React.FC
|
|
5
|
+
export declare const LOLUserLastLogin: React.FC<React.PropsWithChildren<unknown>>;
|
package/dist/index.js
CHANGED
|
@@ -25426,7 +25426,7 @@ var LuiMenuCloseButton = function (_a) {
|
|
|
25426
25426
|
|
|
25427
25427
|
var LuiDrawerMenuOptions = function (_a) {
|
|
25428
25428
|
var children = _a.children;
|
|
25429
|
-
return
|
|
25429
|
+
return React__default["default"].createElement("div", { className: "lui-menu-drawer-options" }, children);
|
|
25430
25430
|
};
|
|
25431
25431
|
var LuiDrawerMenuOption = function (_a) {
|
|
25432
25432
|
var icon = _a.icon, label = _a.label, badge = _a.badge, _b = _a.onClick, onClick = _b === void 0 ? function () { } : _b;
|
|
@@ -33077,7 +33077,6 @@ function useClickedOutsideElement(refElement, handleClickOutside) {
|
|
|
33077
33077
|
var LuiBadge = function (props) { return (React__default["default"].createElement("p", { className: clsx('LuiBadge', props.size === 'sm' && 'LuiBadge--sm', props.size === 'lg' && 'LuiBadge--lg', props.backgroundFill && 'LuiBadge--fill', props.variation === 'warning' && 'LuiBadge--warning'), "aria-roledescription": props.ariaRoleDescription }, props.children)); };
|
|
33078
33078
|
|
|
33079
33079
|
var LuiSidePanelContext = React__default["default"].createContext({ setProps: function () { return undefined; } });
|
|
33080
|
-
/* eslint-disable react/prop-types */
|
|
33081
33080
|
var LuiSidePanel = function (_a) {
|
|
33082
33081
|
var children = _a.children, onClose = _a.onClose, width = _a.width, top = _a.top, closeBtnTitleAttr = _a.closeBtnTitleAttr;
|
|
33083
33082
|
var setProps = React__default["default"].useContext(LuiSidePanelContext).setProps;
|