@linzjs/lui 11.1.5 → 11.2.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,31 @@
1
+ # [11.2.0](https://github.com/linz/lui/compare/v11.1.8...v11.2.0) (2021-12-19)
2
+
3
+
4
+ ### Features
5
+
6
+ * **LuiFormSectionHeader:** Added new decorative form component ([#496](https://github.com/linz/lui/issues/496)) ([1a572be](https://github.com/linz/lui/commit/1a572be149826e15d2035c961c3d9399da4a3a85))
7
+
8
+ ## [11.1.8](https://github.com/linz/lui/compare/v11.1.7...v11.1.8) (2021-12-14)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Makes onChange an optional prop ([#491](https://github.com/linz/lui/issues/491)) ([38c08cf](https://github.com/linz/lui/commit/38c08cf1e11447befa0d0fa0bc30a8cf05a81818))
14
+
15
+ ## [11.1.7](https://github.com/linz/lui/compare/v11.1.6...v11.1.7) (2021-12-13)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * Export Chritmas cheer ([#489](https://github.com/linz/lui/issues/489)) ([97738f9](https://github.com/linz/lui/commit/97738f9826f98e4cb9e96cd59e1cd3e97321417a))
21
+
22
+ ## [11.1.6](https://github.com/linz/lui/compare/v11.1.5...v11.1.6) (2021-12-13)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * Potential fix to SSR issue ([#488](https://github.com/linz/lui/issues/488)) ([2815707](https://github.com/linz/lui/commit/2815707cb496abcb60802fbc9226fb0d07d3aa60))
28
+
1
29
  ## [11.1.5](https://github.com/linz/lui/compare/v11.1.4...v11.1.5) (2021-12-08)
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: ChangeEventHandler<HTMLSelectElement>;
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: ChangeEventHandler<HTMLTextAreaElement>;
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: ChangeEventHandler<HTMLInputElement>;
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: ChangeEventHandler<HTMLInputElement>;
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,6 @@
1
+ import React, { ReactNode } from 'react';
2
+ interface IHelpInfoProps {
3
+ info: string | ReactNode;
4
+ }
5
+ export declare const HelpInfo: React.FC<IHelpInfoProps>;
6
+ export {};
@@ -11,4 +11,5 @@ export declare const LuiMiniSpinner: (props: LuiMiniSpinnerProps) => JSX.Element
11
11
  export declare const LuiLoadingSpinner: () => JSX.Element;
12
12
  export declare const LuiLoadingSpinnerEaster: () => JSX.Element;
13
13
  export declare const LuiLoadingSpinnerChristmas: () => JSX.Element;
14
+ export declare function isChromatic(): boolean;
14
15
  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 { LuiLoadingSpinner, LuiMiniSpinner, LuiStatusSpinner, } from './components/LuiLoadingSpinner/LuiLoadingSpinner';
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';