@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 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)
@@ -4,6 +4,6 @@ export interface ILuiBadge {
4
4
  size?: 'sm' | 'default' | 'lg';
5
5
  backgroundFill?: boolean;
6
6
  variation?: 'default' | 'warning';
7
- ariaRoleDescription?: string;
7
+ ariaRoleDescription: string;
8
8
  }
9
9
  export declare const LuiBadge: (props: ILuiBadge) => JSX.Element;
@@ -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,8 @@
1
+ import React from 'react';
2
+ export declare const LuiFormikFormLabel: React.FC<React.PropsWithChildren<{
3
+ for: string;
4
+ label: string;
5
+ className?: string;
6
+ required?: boolean;
7
+ tooltip?: string;
8
+ }>>;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare const LuiFormikFormSubmitButton: React.ComponentType<{
3
+ className?: string | undefined;
4
+ disabled?: boolean | undefined;
5
+ 'data-testid'?: string | undefined;
6
+ }>;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { LuiCommonInputProps } from '../LuiFormikForm';
3
+ export declare const LuiFormikRadioButton: React.FC<React.PropsWithChildren<{
4
+ label: string;
5
+ className?: string;
6
+ value: string;
7
+ name: string;
8
+ } & LuiCommonInputProps>>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export declare const LuiFormikRadioGroup: React.FC<React.PropsWithChildren<{
3
+ hint?: string;
4
+ legend: string;
5
+ name: string;
6
+ required?: boolean;
7
+ }>>;
@@ -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>;
@@ -3,7 +3,7 @@ export declare const LuiUpdatesSplashModal: React.FC<React.PropsWithChildren<{
3
3
  bigImage: string;
4
4
  smallImage: string;
5
5
  header: string;
6
- wrapperClass?: string;
6
+ wrapperClass: string;
7
7
  onClose: () => void;
8
8
  id: string;
9
9
  }>>;
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';