@linzjs/lui 11.1.6 → 11.2.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 +28 -0
- package/dist/components/LuiFormElements/LuiSelectInput/LuiSelectInput.d.ts +1 -1
- package/dist/components/LuiFormElements/LuiTextAreaInput/LuiTextAreaInput.d.ts +1 -1
- package/dist/components/LuiFormElements/LuiTextInput/LuiTextInput.d.ts +1 -1
- package/dist/components/LuiFormElements/RadioInput/LuiRadioInput.d.ts +1 -1
- package/dist/components/LuiForms/LuiFormSection/LuiFormSectionHeader.d.ts +7 -0
- package/dist/components/LuiForms/LuiFormSection/LuiFormSectionHeader.stories.d.ts +5 -0
- package/dist/components/LuiForms/LuiFormSection/LuiFormSectionHeader.test.d.ts +1 -0
- package/dist/components/LuiForms/LuiFormSection/LuiHelpInfo/LuiHelpInfo.d.ts +6 -0
- package/dist/index.d.ts +2 -1
- package/dist/lui.cjs.development.js +13160 -5
- package/dist/lui.cjs.development.js.map +1 -1
- package/dist/lui.cjs.production.min.js +1 -1
- package/dist/lui.cjs.production.min.js.map +1 -1
- package/dist/lui.css +57 -1
- package/dist/lui.css.map +1 -1
- package/dist/lui.esm.js +13157 -6
- package/dist/lui.esm.js.map +1 -1
- package/dist/scss/Components/LuiFormSection/LuiFormSectionHeader.scss +45 -0
- package/dist/scss/Components/LuiFormSection/LuiHelpInfo/LuiHelpInfo.scss +16 -0
- package/dist/scss/Foundation/Variables/FormVars.scss +18 -3
- package/dist/scss/Foundation/Variables/_LuiColors.scss +2 -1
- package/dist/scss/base.scss +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
## [11.2.1](https://github.com/linz/lui/compare/v11.2.0...v11.2.1) (2021-12-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Aligning TextInput, TextArea and SelectInput component labels and placeholder text ([#497](https://github.com/linz/lui/issues/497)) ([c7715d5](https://github.com/linz/lui/commit/c7715d59463a5f1ff4dfbaf6225a53cb31af2246))
|
|
7
|
+
|
|
8
|
+
# [11.2.0](https://github.com/linz/lui/compare/v11.1.8...v11.2.0) (2021-12-19)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **LuiFormSectionHeader:** Added new decorative form component ([#496](https://github.com/linz/lui/issues/496)) ([1a572be](https://github.com/linz/lui/commit/1a572be149826e15d2035c961c3d9399da4a3a85))
|
|
14
|
+
|
|
15
|
+
## [11.1.8](https://github.com/linz/lui/compare/v11.1.7...v11.1.8) (2021-12-14)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* Makes onChange an optional prop ([#491](https://github.com/linz/lui/issues/491)) ([38c08cf](https://github.com/linz/lui/commit/38c08cf1e11447befa0d0fa0bc30a8cf05a81818))
|
|
21
|
+
|
|
22
|
+
## [11.1.7](https://github.com/linz/lui/compare/v11.1.6...v11.1.7) (2021-12-13)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* Export Chritmas cheer ([#489](https://github.com/linz/lui/issues/489)) ([97738f9](https://github.com/linz/lui/commit/97738f9826f98e4cb9e96cd59e1cd3e97321417a))
|
|
28
|
+
|
|
1
29
|
## [11.1.6](https://github.com/linz/lui/compare/v11.1.5...v11.1.6) (2021-12-13)
|
|
2
30
|
|
|
3
31
|
|
|
@@ -7,7 +7,7 @@ export declare type SelectOptions = {
|
|
|
7
7
|
};
|
|
8
8
|
export interface SelectProps {
|
|
9
9
|
error?: string;
|
|
10
|
-
onChange
|
|
10
|
+
onChange?: ChangeEventHandler<HTMLSelectElement>;
|
|
11
11
|
options: SelectOptions[];
|
|
12
12
|
value: string;
|
|
13
13
|
hideLabel?: boolean;
|
|
@@ -3,7 +3,7 @@ import './LuiTextAreaInput.scss';
|
|
|
3
3
|
export interface LuiTextAreaInputProps {
|
|
4
4
|
label: JSX.Element | string;
|
|
5
5
|
inputProps?: InputHTMLAttributes<HTMLTextAreaElement>;
|
|
6
|
-
onChange
|
|
6
|
+
onChange?: ChangeEventHandler<HTMLTextAreaElement>;
|
|
7
7
|
value: string;
|
|
8
8
|
error?: string | boolean;
|
|
9
9
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChangeEventHandler, InputHTMLAttributes } from 'react';
|
|
2
2
|
import './LuiTextInput.scss';
|
|
3
3
|
export interface LuiTextInputProps {
|
|
4
|
-
onChange
|
|
4
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
5
5
|
inputProps?: InputHTMLAttributes<HTMLInputElement>;
|
|
6
6
|
error?: string;
|
|
7
7
|
hideLabel?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChangeEventHandler, InputHTMLAttributes } from 'react';
|
|
2
2
|
export interface LuiRadioInputProps {
|
|
3
3
|
legend?: JSX.Element | string;
|
|
4
|
-
onChange
|
|
4
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
5
5
|
options: string[];
|
|
6
6
|
error?: string;
|
|
7
7
|
selectedValue: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
export interface IFormSectionHeaderProps {
|
|
3
|
+
header: string;
|
|
4
|
+
details?: string | ReactNode;
|
|
5
|
+
link?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const LuiFormSectionHeader: (props: PropsWithChildren<IFormSectionHeaderProps>) => JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: import("@storybook/react").Meta<React.PropsWithChildren<import("./LuiFormSectionHeader").IFormSectionHeaderProps>>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const header: import("@storybook/react").Story<React.PropsWithChildren<import("./LuiFormSectionHeader").IFormSectionHeaderProps>>;
|
|
5
|
+
export declare const withDetails: import("@storybook/react").Story<React.PropsWithChildren<import("./LuiFormSectionHeader").IFormSectionHeaderProps>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -30,12 +30,13 @@ export { LuiIcon } from './components/LuiIcon/LuiIcon';
|
|
|
30
30
|
export { LuiBearingFormikInput, LuiBearingInput, } from './components/LuiBearingInput/LuiBearingInput';
|
|
31
31
|
export { LuiFooter } from './components/LuiFooter/LuiFooter';
|
|
32
32
|
export { LuiComboSelect, LuiComboSelectProps, LuiComboSelectOption, } from './components/LuiForms/LuiComboSelect/LuiComboSelect';
|
|
33
|
+
export { LuiFormSectionHeader, IFormSectionHeaderProps, } from './components/LuiForms/LuiFormSection/LuiFormSectionHeader';
|
|
33
34
|
export * from './components/LuiHeader/LuiHeader';
|
|
34
35
|
export * from './components/LuiHeaderMenu/LuiHeaderMenus';
|
|
35
36
|
export { LuiUpdatesSplashModal } from './components/LuiUpdateSplashModal/LuiUpdatesSplashModal';
|
|
36
37
|
export { LuiModal, LuiAlertModal, LuiAlertModalButtons, } from './components/LuiModal/LuiModal';
|
|
37
38
|
export { LuiErrorPage } from './components/LuiErrorPage/LuiErrorPage';
|
|
38
|
-
export
|
|
39
|
+
export * from './components/LuiLoadingSpinner/LuiLoadingSpinner';
|
|
39
40
|
export { LOLFirmSwitcherMenu } from './components/lol/LOLFirmSwitcher';
|
|
40
41
|
export { LOLLogoutLink } from './components/lol/LOLLogoutLink';
|
|
41
42
|
export { LOLUserLastLogin } from './components/lol/LOLUserLastLogin';
|