@linzjs/lui 17.16.3-1 → 17.17.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 +9 -0
- package/dist/assets/icons/maori_land.svg +1 -0
- package/dist/assets/svg-content.tsx +6 -0
- package/dist/components/LuiBadge/LuiBadge.d.ts +1 -1
- package/dist/components/LuiBearingInput/LuiBearingInput.d.ts +23 -0
- package/dist/components/LuiFormikForms/LuiFormikCheckbox/LuiFormikCheckbox.d.ts +9 -0
- package/dist/components/LuiFormikForms/LuiFormikForm.d.ts +10 -0
- package/dist/components/LuiFormikForms/LuiFormikFormLabel/LuiFormikFormLabel.d.ts +8 -0
- package/dist/components/LuiFormikForms/LuiFormikFormSubmitButton/LuiFormikFormSubmitButton.d.ts +6 -0
- package/dist/components/LuiFormikForms/LuiFormikRadioButton/LuiFormikRadioButton.d.ts +8 -0
- package/dist/components/LuiFormikForms/LuiFormikRadioGroup/LuiFormikRadioGroup.d.ts +7 -0
- package/dist/components/LuiFormikForms/LuiFormikSelect/LuiFormikSelect.d.ts +11 -0
- package/dist/components/LuiFormikForms/LuiFormikTextInput/LuiFormikTextInput.d.ts +17 -0
- package/dist/components/LuiUpdateSplashModal/LuiUpdatesSplashModal.d.ts +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.js +8128 -428
- package/dist/index.js.map +1 -1
- package/dist/lui.css +7 -0
- package/dist/lui.css.map +1 -1
- package/dist/lui.esm.js +8117 -427
- package/dist/lui.esm.js.map +1 -1
- package/dist/scss/Components/LuiFormElements/LuiCheckboxInput/LuiCheckboxInput.scss +7 -0
- package/dist/scss/Components/LuiFormElements/LuiRadioInput/LuiRadioInput.scss +6 -1
- package/dist/scss/Foundation/Utilities/Focus.scss +6 -0
- package/dist/scss/Foundation/Utilities/_index.scss +1 -0
- package/package.json +20 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
# [17.17.0](https://github.com/linz/lui/compare/v17.16.3...v17.17.0) (2022-10-13)
|
|
2
|
+
|
|
3
|
+
## [17.16.3](https://github.com/linz/lui/compare/v17.16.2...v17.16.3) (2022-10-12)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* added visible-focus on checkboxes and radio buttons ([#782](https://github.com/linz/lui/issues/782)) ([41f449d](https://github.com/linz/lui/commit/41f449d092958be807d93c0a959324b7aae08c5c))
|
|
9
|
+
|
|
1
10
|
## [17.16.2](https://github.com/linz/lui/compare/v17.16.1...v17.16.2) (2022-10-10)
|
|
2
11
|
|
|
3
12
|
## [17.16.1](https://github.com/linz/lui/compare/v17.16.0...v17.16.1) (2022-10-06)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.1 4.9C17.1 3 14.8 2 12 2S6.9 3 4.9 4.9C3 6.9 2 9.2 2 12s1 5.1 2.9 7.1c2 2 4.3 2.9 7.1 2.9s5.1-1 7.1-2.9S22 14.8 22 12s-1-5.1-2.9-7.1Zm-5.9 10.8H12V9.5l-2.2 6.2H8.7L6.6 9.5c.1.9.1 1.8.1 2.6v3.6H5.5V8.3h1.7l2.1 5.9 2.1-5.9h1.7v7.4h.1Zm1.9 0V8.3h1.2v6.4h3.2v1h-4.4Z" fill="#000"/></svg>
|
|
@@ -511,6 +511,12 @@ iconMap['ic_manage_adjust'] = (
|
|
|
511
511
|
</svg>
|
|
512
512
|
);
|
|
513
513
|
|
|
514
|
+
iconMap['ic_maori_land'] = (
|
|
515
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
516
|
+
<path d="M19.1 4.9C17.1 3 14.8 2 12 2S6.9 3 4.9 4.9C3 6.9 2 9.2 2 12s1 5.1 2.9 7.1c2 2 4.3 2.9 7.1 2.9s5.1-1 7.1-2.9S22 14.8 22 12s-1-5.1-2.9-7.1Zm-5.9 10.8H12V9.5l-2.2 6.2H8.7L6.6 9.5c.1.9.1 1.8.1 2.6v3.6H5.5V8.3h1.7l2.1 5.9 2.1-5.9h1.7v7.4h.1Zm1.9 0V8.3h1.2v6.4h3.2v1h-4.4Z" />
|
|
517
|
+
</svg>
|
|
518
|
+
);
|
|
519
|
+
|
|
514
520
|
iconMap['ic_mark_linking'] = (
|
|
515
521
|
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
516
522
|
<path d="M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2Zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8Zm3-8c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3Z" />
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { LuiCommonInputProps } from '../LuiFormikForms/LuiFormikForm';
|
|
3
|
+
interface LuiBearingInputProps {
|
|
4
|
+
name: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
helperInfo?: ReactNode;
|
|
7
|
+
tooltip?: string;
|
|
8
|
+
value: string;
|
|
9
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
+
validationError?: string;
|
|
11
|
+
onValidate?: (error: string | null) => void;
|
|
12
|
+
/** If true, validationError prop takes precedence over the internalError value. */
|
|
13
|
+
preferValidationError?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const LuiBearingInput: React.FC<React.PropsWithChildren<LuiBearingInputProps & LuiCommonInputProps>>;
|
|
16
|
+
interface LuiBearingFormikInputProps {
|
|
17
|
+
name: string;
|
|
18
|
+
label: string;
|
|
19
|
+
/** If true, validationError prop takes precedence over the LuiBearingInput internalError value. */
|
|
20
|
+
preferValidationError?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare const LuiBearingFormikInput: React.FC<React.PropsWithChildren<LuiBearingFormikInputProps & LuiCommonInputProps>>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { LuiCommonInputProps } from '../LuiFormikForm';
|
|
3
|
+
export declare function LuiFormikCheckbox(props: {
|
|
4
|
+
name: string;
|
|
5
|
+
value: string;
|
|
6
|
+
label: ReactNode;
|
|
7
|
+
htmlFor?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
} & LuiCommonInputProps): JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormikConfig, FormikValues } from 'formik';
|
|
3
|
+
export declare function LuiFormikForm<Values extends FormikValues = FormikValues, ExtraProps = {}>(props: FormikConfig<Values> & ExtraProps & {
|
|
4
|
+
className?: string;
|
|
5
|
+
}): JSX.Element;
|
|
6
|
+
export interface LuiCommonInputProps {
|
|
7
|
+
inputProps?: object;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { LuiCommonInputProps } from '../LuiFormikForm';
|
|
3
|
+
export declare const LuiFormikSelect: React.ComponentType<{
|
|
4
|
+
name: string;
|
|
5
|
+
label: string;
|
|
6
|
+
className?: string | undefined;
|
|
7
|
+
defaultValue?: string | undefined;
|
|
8
|
+
helperInfo?: (() => React.Component) | undefined;
|
|
9
|
+
tooltip?: string | undefined;
|
|
10
|
+
validate?: ((value: string) => string | undefined) | undefined;
|
|
11
|
+
} & LuiCommonInputProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FormikContextType } from 'formik';
|
|
2
|
+
import React, { ReactNode } from 'react';
|
|
3
|
+
import { LuiCommonInputProps } from '../LuiFormikForm';
|
|
4
|
+
export declare const LuiFormikTextInput: React.ComponentType<{
|
|
5
|
+
name: string;
|
|
6
|
+
label?: string | undefined;
|
|
7
|
+
className?: string | undefined;
|
|
8
|
+
helperInfo?: ReactNode;
|
|
9
|
+
tooltip?: string | undefined;
|
|
10
|
+
validate?: ((value: string) => string | undefined) | undefined;
|
|
11
|
+
onValueChange?: ((newValue: {
|
|
12
|
+
value: string;
|
|
13
|
+
formik: FormikContextType<any>;
|
|
14
|
+
}) => void) | undefined;
|
|
15
|
+
validateOnChange?: boolean | undefined;
|
|
16
|
+
multiLine?: boolean | undefined;
|
|
17
|
+
} & LuiCommonInputProps>;
|
package/dist/index.d.ts
CHANGED
|
@@ -14,13 +14,22 @@ export { LuiTab } from './components/LuiTabs/LuiTab/LuiTab';
|
|
|
14
14
|
export { LuiTabsGroup } from './components/LuiTabs/LuiTabsGroup/LuiTabsGroup';
|
|
15
15
|
export { LuiTabsPanel } from './components/LuiTabs/LuiTabsPanel/LuiTabsPanel';
|
|
16
16
|
export { LuiTabsPanelSwitch } from './components/LuiTabs/LuiTabsPanelSwitch/LuiTabsPanelSwitch';
|
|
17
|
+
export { LuiCommonInputProps, LuiFormikForm, } from './components/LuiFormikForms/LuiFormikForm';
|
|
17
18
|
export { LuiCheckboxInput } from './components/LuiFormElements/LuiCheckboxInput/LuiCheckboxInput';
|
|
18
19
|
export { LuiFileInputBox } from './components/LuiFormElements/LuiFileInputBox/LuiFileInputBox';
|
|
19
20
|
export { LuiSelectInput } from './components/LuiFormElements/LuiSelectInput/LuiSelectInput';
|
|
20
21
|
export { LuiTextAreaInput } from './components/LuiFormElements/LuiTextAreaInput/LuiTextAreaInput';
|
|
21
22
|
export { LuiTextInput } from './components/LuiFormElements/LuiTextInput/LuiTextInput';
|
|
22
23
|
export { LuiRadioInput } from './components/LuiFormElements/LuiRadioInput/LuiRadioInput';
|
|
24
|
+
export { LuiFormikCheckbox } from './components/LuiFormikForms/LuiFormikCheckbox/LuiFormikCheckbox';
|
|
25
|
+
export { LuiFormikTextInput } from './components/LuiFormikForms/LuiFormikTextInput/LuiFormikTextInput';
|
|
26
|
+
export { LuiFormikFormLabel } from './components/LuiFormikForms/LuiFormikFormLabel/LuiFormikFormLabel';
|
|
27
|
+
export { LuiFormikRadioButton } from './components/LuiFormikForms/LuiFormikRadioButton/LuiFormikRadioButton';
|
|
28
|
+
export { LuiFormikRadioGroup } from './components/LuiFormikForms/LuiFormikRadioGroup/LuiFormikRadioGroup';
|
|
29
|
+
export { LuiFormikFormSubmitButton } from './components/LuiFormikForms/LuiFormikFormSubmitButton/LuiFormikFormSubmitButton';
|
|
30
|
+
export { LuiFormikSelect } from './components/LuiFormikForms/LuiFormikSelect/LuiFormikSelect';
|
|
23
31
|
export { LuiIcon } from './components/LuiIcon/LuiIcon';
|
|
32
|
+
export { LuiBearingFormikInput, LuiBearingInput, } from './components/LuiBearingInput/LuiBearingInput';
|
|
24
33
|
export { LuiFooter } from './components/LuiFooter/LuiFooter';
|
|
25
34
|
export { LuiComboSelect, LuiComboSelectProps, LuiComboSelectOption, } from './components/LuiForms/LuiComboSelect/LuiComboSelect';
|
|
26
35
|
export { LuiFormSectionHeader, IFormSectionHeaderProps, } from './components/LuiForms/LuiFormSection/LuiFormSectionHeader';
|