@linzjs/lui 17.16.3-1 → 17.16.3
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/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 +8126 -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 +8115 -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,10 @@
|
|
|
1
|
+
## [17.16.3](https://github.com/linz/lui/compare/v17.16.2...v17.16.3) (2022-10-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* added visible-focus on checkboxes and radio buttons ([#782](https://github.com/linz/lui/issues/782)) ([41f449d](https://github.com/linz/lui/commit/41f449d092958be807d93c0a959324b7aae08c5c))
|
|
7
|
+
|
|
1
8
|
## [17.16.2](https://github.com/linz/lui/compare/v17.16.1...v17.16.2) (2022-10-10)
|
|
2
9
|
|
|
3
10
|
## [17.16.1](https://github.com/linz/lui/compare/v17.16.0...v17.16.1) (2022-10-06)
|
|
@@ -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';
|