jamespot-react-components 1.0.86 → 1.0.96
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/build/assets/404.6ddcf23842aa398fdb2521ed61e26426.png +0 -0
- package/build/jamespot-react-components.js +351 -325
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/404/index.d.ts +2 -0
- package/build/src/components/Common/util/getColor.util.d.ts +1 -1
- package/build/src/components/Form/Input/Common/JRCFormErrors.d.ts +3 -4
- package/build/src/components/Form/Input/Common/JRCFormFieldRenderer.d.ts +2 -1
- package/build/src/components/Form/Input/Common/JRCFormFieldRenderer.types.d.ts +5 -5
- package/build/src/components/Form/Input/Common/useFormControls.d.ts +12 -24
- package/build/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.d.ts +3 -0
- package/build/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.style.d.ts +2 -2
- package/build/src/components/Form/Input/JRCFormCheckbox/JRCFormCheckbox.types.d.ts +6 -6
- package/build/src/components/Form/Input/JRCFormEmail/JRCInputEmail.d.ts +2 -1
- package/build/src/components/Form/Input/JRCFormRichText/JRCFormRichTextField.d.ts +1 -1
- package/build/src/components/Form/Input/JRCFormSelect/JRCFormSelect.d.ts +4 -3
- package/build/src/components/Form/Input/JRCFormSelect/JRCFormSelectTag.d.ts +2 -1
- package/build/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.d.ts +4 -3
- package/build/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.types.d.ts +6 -5
- package/build/src/components/Form/Input/JRCInputDate/JRCInputDate.d.ts +2 -1
- package/build/src/components/Form/Input/JRCInputDate/JRCInputDate.stories.d.ts +3 -1
- package/build/src/components/Form/Input/JRCInputText/JRCInputText.d.ts +2 -1
- package/build/src/components/Form/Input/JRCInputText/JRCInputText.stories.d.ts +3 -1
- package/build/src/components/Form/Input/JRCInputTextarea/JRCInputTextarea.d.ts +2 -1
- package/build/src/components/Form/Input/JRCInputTextarea/JRCInputTextarea.stories.d.ts +3 -1
- package/build/src/components/Form/Input/JRCSelect/JRCAutocompleteCommunity.d.ts +3 -2
- package/build/src/components/Form/Input/JRCSelect/JRCInputAutocomplete.d.ts +3 -2
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.d.ts +3 -2
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.style.d.ts +5 -5
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.types.d.ts +5 -4
- package/build/src/components/JRCAppLeftColumn/JRCAppLeftColumn.stories.d.ts +5 -3
- package/build/src/components/JRCAppLeftColumn/JRCAppLeftColumn.styles.d.ts +1 -1
- package/build/src/components/JRCButton/JRCButton.d.ts +2 -2
- package/build/src/components/JRCButton/JRCButton.stories.d.ts +4 -1
- package/build/src/components/JRCButtonDropdown/JRCButtonDropdown.styles.d.ts +1 -1
- package/build/src/components/JRCGrid/JRCGrid.stories.d.ts +12 -3
- package/build/src/components/JRCIcon/JRCIcon.stories.d.ts +4 -1
- package/build/src/components/JRCMenu/JRCMenu.stories.d.ts +4 -1
- package/build/src/components/JRCModal/JRCModal.d.ts +7 -0
- package/build/src/components/JRCModal/JRCModal.styles.d.ts +3 -0
- package/build/src/components/JRCModalImg/JRCModalImg.stories.d.ts +4 -1
- package/build/src/components/JRCSkeleton/JRCSkeletonLine.d.ts +10 -0
- package/build/src/components/JRCSkeleton/JRCSkeletonSquare.d.ts +10 -0
- package/build/src/components/JRCSkeleton/common.d.ts +1 -0
- package/build/src/components/JRCTabs/JRCTabs.stories.d.ts +12 -3
- package/build/src/components/JRCTypography/JRCTypography.styles.d.ts +7 -6
- package/build/src/components/Templates/template.styles.d.ts +6 -6
- package/build/src/hooks/UseDidMountEffect.d.ts +5 -0
- package/build/src/hooks/UseTimeout.d.ts +1 -1
- package/build/src/index.d.ts +3 -0
- package/build/src/storybook/decorators.d.ts +0 -1
- package/build/src/styles/theme.d.ts +5 -5
- package/build/src/types.d.ts +2 -0
- package/build/src/utils/utils.date.d.ts +1 -1
- package/package.json +3 -3
- package/storybook-static/587.e803fde0.iframe.bundle.js +2 -0
- package/storybook-static/{587.e875d59e.iframe.bundle.js.LICENSE.txt → 587.e803fde0.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/main.b14e8790.iframe.bundle.js +1 -0
- package/storybook-static/587.e875d59e.iframe.bundle.js +0 -2
- package/storybook-static/main.08c3c60d.iframe.bundle.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare type MessageType = 'success' | 'error' | 'warning';
|
|
2
|
-
export declare const getColor: (type: MessageType) => "
|
|
2
|
+
export declare const getColor: (type: MessageType) => "green" | "orange" | "yellow";
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FieldValues } from 'react-hook-form/dist/types';
|
|
1
|
+
import { FieldError } from 'react-hook-form/dist/types/errors';
|
|
3
2
|
/**
|
|
4
3
|
* Component that displays a list of input error if any.
|
|
5
4
|
* The required message is not displayed within this component.
|
|
6
5
|
* @param error react-hook-form object
|
|
7
6
|
*/
|
|
8
|
-
export declare const JRCFormErrors:
|
|
9
|
-
error
|
|
7
|
+
export declare const JRCFormErrors: ({ error }: {
|
|
8
|
+
error?: FieldError | undefined;
|
|
10
9
|
}) => JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { JRCFormFieldRendererProps } from './JRCFormFieldRenderer.types';
|
|
3
|
-
|
|
3
|
+
import { FieldValues } from 'react-hook-form';
|
|
4
|
+
export declare function JRCFormFieldRenderer<TFieldValues extends FieldValues = FieldValues>(props: JRCFormFieldRendererProps<TFieldValues>): JSX.Element;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { JRCTooltipProps } from '../../../JRCTooltip/JRCTooltip';
|
|
3
3
|
import { ControllerRenderProps } from 'react-hook-form/dist/types/controller';
|
|
4
4
|
import { FormControls, JRCFormControls } from './useFormControls';
|
|
5
|
-
import { UseControllerProps } from 'react-hook-form';
|
|
5
|
+
import { UseControllerProps, FieldValues } from 'react-hook-form';
|
|
6
6
|
import { DataCy } from '../../../../types/dataAttributes';
|
|
7
7
|
/**
|
|
8
8
|
* Form field render props that might be provided outside of this library
|
|
@@ -23,22 +23,22 @@ export interface FieldRenderProps extends DataCy {
|
|
|
23
23
|
/**
|
|
24
24
|
* react-hook-form prop alias for the required *name* and *control* props
|
|
25
25
|
*/
|
|
26
|
-
export declare type NameControl<T> = Required<Pick<UseControllerProps<T>, 'name' | 'control'>>;
|
|
26
|
+
export declare type NameControl<T extends FieldValues = FieldValues> = Required<Pick<UseControllerProps<T>, 'name' | 'control'>>;
|
|
27
27
|
/**
|
|
28
28
|
* Renderer Props
|
|
29
29
|
*/
|
|
30
|
-
export interface RendererProps<T> {
|
|
30
|
+
export interface RendererProps<T extends FieldValues = FieldValues> {
|
|
31
31
|
renderFunction: (props: ControllerRenderProps<T>) => JSX.Element;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* Prop types of any input wrapper with react-hook-form
|
|
35
35
|
*/
|
|
36
|
-
export declare type JRCFormFieldRendererProps<T> = FieldRenderProps & NameControl<T> & RendererProps<T> & {
|
|
36
|
+
export declare type JRCFormFieldRendererProps<T extends FieldValues = FieldValues> = FieldRenderProps & NameControl<T> & RendererProps<T> & {
|
|
37
37
|
rules?: FormControls & JRCFormControls;
|
|
38
38
|
};
|
|
39
39
|
/**
|
|
40
40
|
* Prop types for an input rendered by react-hook-form
|
|
41
41
|
*/
|
|
42
|
-
export declare type JRCInputFieldProps<T> = FieldRenderProps & NameControl<T> & {
|
|
42
|
+
export declare type JRCInputFieldProps<T extends FieldValues = FieldValues> = FieldRenderProps & NameControl<T> & {
|
|
43
43
|
rules?: FormControls;
|
|
44
44
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { RegisterOptions, ValidationRule, ValidationValue } from 'react-hook-form/dist/types/validator';
|
|
2
3
|
import { IntlShape } from 'react-intl/src/types';
|
|
3
4
|
export declare type AllowedDefaultTypes = 'required' | 'min' | 'max' | 'maxLength' | 'minLength' | 'pattern';
|
|
4
5
|
export declare type FormControls = Pick<RegisterOptions, AllowedDefaultTypes>;
|
|
@@ -11,32 +12,19 @@ export declare type AllowedTypes = AllowedDefaultTypes | keyof JRCFormControls;
|
|
|
11
12
|
* @param rules rules applied to the field
|
|
12
13
|
* @param intl translation object
|
|
13
14
|
*/
|
|
14
|
-
export declare const useFormControls: (rules: FormControls & JRCFormControls, intl: IntlShape) => FormControls | undefined;
|
|
15
|
+
export declare const useFormControls: (rules: (FormControls & JRCFormControls) | undefined, intl: IntlShape) => FormControls | undefined;
|
|
16
|
+
declare type getJRCErrorsReturnType = [
|
|
17
|
+
AllowedTypes,
|
|
18
|
+
{
|
|
19
|
+
value: ValidationValue;
|
|
20
|
+
message: string | React.ReactNode;
|
|
21
|
+
}
|
|
22
|
+
];
|
|
15
23
|
/**
|
|
16
24
|
* Produces a react-hook-form compatible validation object with default messages for each error type
|
|
17
25
|
* @param rule rule applied to the field
|
|
18
26
|
* @param validation validation object
|
|
19
27
|
* @param intl translation object
|
|
20
28
|
*/
|
|
21
|
-
export declare const
|
|
22
|
-
|
|
23
|
-
message: string;
|
|
24
|
-
})[] | ("max" | {
|
|
25
|
-
value: import("react-hook-form/dist/types/validator").ValidationValue;
|
|
26
|
-
message: import("react").ReactNode;
|
|
27
|
-
})[] | ("min" | {
|
|
28
|
-
value: import("react-hook-form/dist/types/validator").ValidationValue;
|
|
29
|
-
message: import("react").ReactNode;
|
|
30
|
-
})[] | ("maxLength" | {
|
|
31
|
-
value: import("react-hook-form/dist/types/validator").ValidationValue;
|
|
32
|
-
message: import("react").ReactNode;
|
|
33
|
-
})[] | ("minLength" | {
|
|
34
|
-
value: import("react-hook-form/dist/types/validator").ValidationValue;
|
|
35
|
-
message: import("react").ReactNode;
|
|
36
|
-
})[] | ("pattern" | {
|
|
37
|
-
value: import("react-hook-form/dist/types/validator").ValidationValue;
|
|
38
|
-
message: import("react").ReactNode;
|
|
39
|
-
})[] | (string | {
|
|
40
|
-
value: RegExp;
|
|
41
|
-
message: string;
|
|
42
|
-
})[] | undefined;
|
|
29
|
+
export declare const getJRCErrors: (rule: AllowedTypes, validation: ValidationRule, intl: IntlShape) => getJRCErrorsReturnType | undefined;
|
|
30
|
+
export {};
|
|
@@ -9,8 +9,8 @@ export declare const FocusBackground: import("styled-components").StyledComponen
|
|
|
9
9
|
}, never>;
|
|
10
10
|
export declare const CheckboxLabel: import("styled-components").StyledComponent<"label", any, CheckboxLabelProps, never>;
|
|
11
11
|
export declare type CheckboxOrToggleProps = Omit<React.ComponentPropsWithoutRef<'input'>, 'type'> & {
|
|
12
|
-
checkboxMode
|
|
12
|
+
checkboxMode?: string;
|
|
13
13
|
};
|
|
14
14
|
export declare const CheckboxOrToggle: React.ForwardRefExoticComponent<Omit<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type"> & {
|
|
15
|
-
checkboxMode
|
|
15
|
+
checkboxMode?: string | undefined;
|
|
16
16
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -45,11 +45,11 @@ export interface JRCFormCheckboxProps extends React.ComponentPropsWithoutRef<'in
|
|
|
45
45
|
reduxFormValueType?: 'array' | 'boolean';
|
|
46
46
|
}
|
|
47
47
|
export declare type CheckboxLabelProps = {
|
|
48
|
-
direction
|
|
49
|
-
variant
|
|
48
|
+
direction?: string;
|
|
49
|
+
variant?: string;
|
|
50
50
|
checked: boolean;
|
|
51
|
-
disabled
|
|
52
|
-
labelPosition
|
|
53
|
-
backgroundOnHover
|
|
54
|
-
backgroundOnSelect
|
|
51
|
+
disabled?: boolean;
|
|
52
|
+
labelPosition?: string;
|
|
53
|
+
backgroundOnHover?: boolean;
|
|
54
|
+
backgroundOnSelect?: boolean;
|
|
55
55
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
3
|
+
import { FieldValues } from 'react-hook-form/dist/types';
|
|
3
4
|
/**
|
|
4
5
|
* Component used as a <input type="text"/>
|
|
5
6
|
* @param rules validation rules applied to the field
|
|
@@ -7,4 +8,4 @@ import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
|
7
8
|
* validation props: required
|
|
8
9
|
* @returns JSX.Element
|
|
9
10
|
*/
|
|
10
|
-
export declare function JRCInputEmail<TFieldValues>({ rules, ...props }: JRCInputFieldProps<TFieldValues>): JSX.Element;
|
|
11
|
+
export declare function JRCInputEmail<TFieldValues extends FieldValues = FieldValues>({ rules, ...props }: JRCInputFieldProps<TFieldValues>): JSX.Element;
|
|
@@ -4,7 +4,7 @@ import { WrappedFieldInputProps } from 'redux-form';
|
|
|
4
4
|
export declare const MenuBar: ({ editor }: {
|
|
5
5
|
editor: Editor | null;
|
|
6
6
|
}) => JSX.Element | null;
|
|
7
|
-
export declare const FormRichTextField: (
|
|
7
|
+
export declare const FormRichTextField: (_props: JRCWritableFormInputProps, input: WrappedFieldInputProps) => JSX.Element;
|
|
8
8
|
/**
|
|
9
9
|
* Component used as a <input type="text"/>
|
|
10
10
|
* @param props JRCWritableFormInputProps
|
|
@@ -3,9 +3,10 @@ import { WrappedFieldInputProps } from 'redux-form';
|
|
|
3
3
|
import { ExternalFormFieldRenderProps, InputState } from '../JRCFormFieldRender';
|
|
4
4
|
import { JRCValueLabelProps } from 'components/Form/Common/types';
|
|
5
5
|
import { SelectComponentsConfig } from 'react-select/src/components';
|
|
6
|
+
import { FieldValues } from 'react-hook-form/dist/types';
|
|
6
7
|
export declare const JRCFormSelectInput: (props: any) => JSX.Element;
|
|
7
8
|
export declare const JRCFormSelectAsyncInput: (props: any) => JSX.Element;
|
|
8
|
-
export declare const JRCFormSelectFieldRender: <TValue>(props: JRCFormSelectProps<TValue> & {
|
|
9
|
+
export declare const JRCFormSelectFieldRender: <TValue extends FieldValues = FieldValues>(props: JRCFormSelectProps<TValue> & {
|
|
9
10
|
input: WrappedFieldInputProps;
|
|
10
11
|
inputState: InputState;
|
|
11
12
|
}) => JSX.Element;
|
|
@@ -36,7 +37,7 @@ export declare const JRCFormSelectFieldRender: <TValue>(props: JRCFormSelectProp
|
|
|
36
37
|
* @member customReactSelectStyle extra style
|
|
37
38
|
* @member extraLink link displayed at the bottom of the menu
|
|
38
39
|
*/
|
|
39
|
-
export interface JRCFormSelectProps<T> extends ExternalFormFieldRenderProps, Partial<React.ComponentPropsWithoutRef<'select'>> {
|
|
40
|
+
export interface JRCFormSelectProps<T extends FieldValues = FieldValues> extends ExternalFormFieldRenderProps, Partial<React.ComponentPropsWithoutRef<'select'>> {
|
|
40
41
|
name: string;
|
|
41
42
|
required?: boolean;
|
|
42
43
|
placeholder?: string;
|
|
@@ -67,7 +68,7 @@ export interface JRCFormSelectProps<T> extends ExternalFormFieldRenderProps, Par
|
|
|
67
68
|
* @returns JSX.Element
|
|
68
69
|
*/
|
|
69
70
|
declare const JRCFormSelectField: {
|
|
70
|
-
<TValue>(props: JRCFormSelectProps<TValue>): JSX.Element;
|
|
71
|
+
<TValue extends FieldValues = FieldValues>(props: JRCFormSelectProps<TValue>): JSX.Element;
|
|
71
72
|
defaultProps: JRCFormSelectProps<JRCValueLabelProps>;
|
|
72
73
|
};
|
|
73
74
|
export { JRCFormSelectField };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { JRCFormSelectProps } from './JRCFormSelect';
|
|
2
|
+
import { FieldValues } from 'react-hook-form/dist/types';
|
|
2
3
|
/**
|
|
3
4
|
* Component used as a select sync or async with custom display: options are JRCTags
|
|
4
5
|
* options (or asyncPromise) elements should have a uri and a name attributes
|
|
@@ -6,5 +7,5 @@ import { JRCFormSelectProps } from './JRCFormSelect';
|
|
|
6
7
|
* validation props: required
|
|
7
8
|
* @returns JSX.Element
|
|
8
9
|
*/
|
|
9
|
-
declare const JRCFormSelectTagField: <TValue>(props: JRCFormSelectProps<TValue>) => JSX.Element;
|
|
10
|
+
declare const JRCFormSelectTagField: <TValue extends FieldValues = FieldValues>(props: JRCFormSelectProps<TValue>) => JSX.Element;
|
|
10
11
|
export { JRCFormSelectTagField };
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { ControllerRenderProps } from 'react-hook-form/dist/types/controller';
|
|
3
3
|
import { DataCy } from '../../../../types/dataAttributes';
|
|
4
4
|
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
5
|
+
import { FieldValues } from 'react-hook-form/dist/types';
|
|
5
6
|
declare type CheckboxOption<TFieldValues> = {
|
|
6
7
|
label: string | JSX.Element;
|
|
7
8
|
value: string | number | TFieldValues;
|
|
@@ -19,11 +20,11 @@ export declare type CheckboxProps<TFieldValues> = DataCy & {
|
|
|
19
20
|
backgroundOnSelect?: boolean;
|
|
20
21
|
valueTypeIsBoolean?: boolean;
|
|
21
22
|
};
|
|
22
|
-
export declare type JRCInputCheckboxProps<TFieldValues> = CheckboxProps<TFieldValues> & JRCInputFieldProps<TFieldValues>;
|
|
23
|
-
export declare type NativeCheckboxProps<TFieldValues> = CheckboxProps<TFieldValues> & Omit<ControllerRenderProps<TFieldValues>, 'value'> & {
|
|
23
|
+
export declare type JRCInputCheckboxProps<TFieldValues extends FieldValues = FieldValues> = CheckboxProps<TFieldValues> & JRCInputFieldProps<TFieldValues>;
|
|
24
|
+
export declare type NativeCheckboxProps<TFieldValues extends FieldValues = FieldValues> = CheckboxProps<TFieldValues> & Omit<ControllerRenderProps<TFieldValues>, 'value'> & {
|
|
24
25
|
value: TFieldValues | TFieldValues[];
|
|
25
26
|
};
|
|
26
|
-
export declare function JRCInputCheckbox<TFieldValues>({ name, control, rules, label, htmlFor, labelIsLegend, description, helper, ...props }: JRCInputCheckboxProps<TFieldValues>): JSX.Element;
|
|
27
|
+
export declare function JRCInputCheckbox<TFieldValues extends FieldValues = FieldValues>({ name, control, rules, label, htmlFor, labelIsLegend, description, helper, ...props }: JRCInputCheckboxProps<TFieldValues>): JSX.Element;
|
|
27
28
|
export declare namespace JRCInputCheckbox {
|
|
28
29
|
var defaultProps: {
|
|
29
30
|
direction: string;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
3
3
|
import { ControllerRenderProps } from 'react-hook-form/dist/types/controller';
|
|
4
|
-
|
|
5
|
-
export declare type
|
|
4
|
+
import { FieldValues } from 'react-hook-form/dist/types';
|
|
5
|
+
export declare type CheckboxValue<T extends FieldValues = FieldValues> = string | number | T;
|
|
6
|
+
export declare type CheckboxOption<TFieldValues extends FieldValues = FieldValues> = {
|
|
6
7
|
label: string | JSX.Element;
|
|
7
8
|
value: CheckboxValue<TFieldValues>;
|
|
8
9
|
disabled?: boolean;
|
|
9
10
|
};
|
|
10
|
-
export declare type InnerProps<TFieldValues> = {
|
|
11
|
+
export declare type InnerProps<TFieldValues extends FieldValues = FieldValues> = {
|
|
11
12
|
disabled?: boolean;
|
|
12
13
|
checkboxMode?: 'checkbox' | 'toggle' | 'radio';
|
|
13
14
|
options: CheckboxOption<TFieldValues>[];
|
|
@@ -19,7 +20,7 @@ export declare type InnerProps<TFieldValues> = {
|
|
|
19
20
|
backgroundOnSelect?: boolean;
|
|
20
21
|
valueTypeIsBoolean?: boolean;
|
|
21
22
|
};
|
|
22
|
-
export declare type JRCInputCheckboxProps<TFieldValues> = InnerProps<TFieldValues> & JRCInputFieldProps<TFieldValues>;
|
|
23
|
-
export declare type InputCheckboxProps<TFieldValues> = InnerProps<TFieldValues> & Omit<ControllerRenderProps<TFieldValues>, 'value'> & {
|
|
23
|
+
export declare type JRCInputCheckboxProps<TFieldValues extends FieldValues = FieldValues> = InnerProps<TFieldValues> & JRCInputFieldProps<TFieldValues>;
|
|
24
|
+
export declare type InputCheckboxProps<TFieldValues extends FieldValues = FieldValues> = InnerProps<TFieldValues> & Omit<ControllerRenderProps<TFieldValues>, 'value'> & {
|
|
24
25
|
value: TFieldValues | TFieldValues[];
|
|
25
26
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
3
3
|
import { DataCy } from '../../../../types/dataAttributes';
|
|
4
|
+
import { FieldValues } from 'react-hook-form/dist/types';
|
|
4
5
|
export declare type JRCInputDateProps = DataCy & React.ComponentPropsWithoutRef<'input'>;
|
|
5
6
|
/**
|
|
6
7
|
* Component used as a <input type="date"/>
|
|
@@ -8,4 +9,4 @@ export declare type JRCInputDateProps = DataCy & React.ComponentPropsWithoutRef<
|
|
|
8
9
|
* validation props: required
|
|
9
10
|
* @returns JSX.Element
|
|
10
11
|
*/
|
|
11
|
-
export declare function JRCInputDate<T>(props: JRCInputFieldProps<T>): JSX.Element;
|
|
12
|
+
export declare function JRCInputDate<T extends FieldValues = FieldValues>(props: JRCInputFieldProps<T>): JSX.Element;
|
|
@@ -2,4 +2,6 @@ import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
|
2
2
|
import { Meta, Story } from '@storybook/react';
|
|
3
3
|
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const InputDate: Story<JRCInputFieldProps<
|
|
5
|
+
export declare const InputDate: Story<JRCInputFieldProps<{
|
|
6
|
+
date: 'date';
|
|
7
|
+
}>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
3
3
|
import { DataCy } from '../../../../types/dataAttributes';
|
|
4
|
+
import { FieldValues } from 'react-hook-form/dist/types';
|
|
4
5
|
export declare type JRCInputTextProps = DataCy & React.ComponentPropsWithoutRef<'input'>;
|
|
5
6
|
/**
|
|
6
7
|
* Component used as a <input type="text"/>
|
|
@@ -8,4 +9,4 @@ export declare type JRCInputTextProps = DataCy & React.ComponentPropsWithoutRef<
|
|
|
8
9
|
* validation props: required
|
|
9
10
|
* @returns JSX.Element
|
|
10
11
|
*/
|
|
11
|
-
export declare function JRCInputText<T>(props: JRCInputFieldProps<T>): JSX.Element;
|
|
12
|
+
export declare function JRCInputText<T extends FieldValues = FieldValues>(props: JRCInputFieldProps<T>): JSX.Element;
|
|
@@ -2,4 +2,6 @@ import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
|
2
2
|
import { Meta, Story } from '@storybook/react';
|
|
3
3
|
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const InputText: Story<JRCInputFieldProps<
|
|
5
|
+
export declare const InputText: Story<JRCInputFieldProps<{
|
|
6
|
+
text: 'text';
|
|
7
|
+
}>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
3
3
|
import { DataCy } from '../../../../types/dataAttributes';
|
|
4
|
+
import { FieldValues } from 'react-hook-form/dist/types';
|
|
4
5
|
export declare type JRCInputTextareaProps = DataCy & React.ComponentPropsWithoutRef<'textarea'>;
|
|
5
6
|
export declare const StyledTextArea: import("styled-components").StyledComponent<"textarea", any, DataCy & {
|
|
6
7
|
error?: boolean | undefined;
|
|
@@ -12,4 +13,4 @@ export declare const StyledTextArea: import("styled-components").StyledComponent
|
|
|
12
13
|
* validation props: required
|
|
13
14
|
* @returns JSX.Element
|
|
14
15
|
*/
|
|
15
|
-
export declare function JRCInputTextarea<T>(props: JRCInputFieldProps<T>): JSX.Element;
|
|
16
|
+
export declare function JRCInputTextarea<T extends FieldValues = FieldValues>(props: JRCInputFieldProps<T>): JSX.Element;
|
|
@@ -2,4 +2,6 @@ import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
|
2
2
|
import { Meta, Story } from '@storybook/react';
|
|
3
3
|
declare const _default: Meta<import("@storybook/react").Args>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const InputTextarea: Story<JRCInputFieldProps<
|
|
5
|
+
export declare const InputTextarea: Story<JRCInputFieldProps<{
|
|
6
|
+
textarea: 'textarea';
|
|
7
|
+
}>>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
3
|
-
|
|
3
|
+
import { FieldValues } from 'react-hook-form/dist/types';
|
|
4
|
+
export declare type JRCAutocompleteCommunityProps<T extends FieldValues = FieldValues> = JRCInputFieldProps<T> & {
|
|
4
5
|
multiple?: boolean;
|
|
5
6
|
searchable?: boolean;
|
|
6
7
|
};
|
|
7
|
-
export declare function JRCInputCommunity<T>(props: JRCAutocompleteCommunityProps<T>,
|
|
8
|
+
export declare function JRCInputCommunity<T extends FieldValues = FieldValues>(props: JRCAutocompleteCommunityProps<T>, _ref: React.ForwardedRef<HTMLInputElement>): JSX.Element;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AutocompleteLittle, JRCAutocompleteProps, NativeAutocompleteProps } from './JRCInputSelect.types';
|
|
3
|
+
import { FieldValues } from 'react-hook-form/dist/types';
|
|
3
4
|
export declare function CustomOption({ option }: {
|
|
4
5
|
option: AutocompleteLittle;
|
|
5
6
|
}): JSX.Element;
|
|
6
7
|
export declare function CustomSelectedOption({ option }: {
|
|
7
8
|
option: AutocompleteLittle;
|
|
8
9
|
}): JSX.Element;
|
|
9
|
-
export declare const NativeAutocomplete: <T>(props: NativeAutocompleteProps<T>) => JSX.Element;
|
|
10
|
-
export declare function JRCInputAutocomplete<T>(props: JRCAutocompleteProps<T>): JSX.Element;
|
|
10
|
+
export declare const NativeAutocomplete: <T extends FieldValues = FieldValues>(props: NativeAutocompleteProps<T>) => JSX.Element;
|
|
11
|
+
export declare function JRCInputAutocomplete<T extends FieldValues = FieldValues>(props: JRCAutocompleteProps<T>): JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { JRCInputSelectProps, NativeSelectProps } from './JRCInputSelect.types';
|
|
3
|
-
|
|
4
|
-
export declare
|
|
3
|
+
import type { FieldValues } from 'react-hook-form';
|
|
4
|
+
export declare const Select: <T extends FieldValues = FieldValues>(props: NativeSelectProps<T>) => JSX.Element;
|
|
5
|
+
export declare function JRCInputSelect<T extends FieldValues = FieldValues>(props: JRCInputSelectProps<T>): JSX.Element;
|
|
@@ -13,13 +13,15 @@ export declare const OptionMenu: import("styled-components").StyledComponent<"di
|
|
|
13
13
|
slot?: string | undefined;
|
|
14
14
|
style?: React.CSSProperties | undefined;
|
|
15
15
|
title?: string | undefined;
|
|
16
|
+
onError?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
17
|
+
children?: React.ReactNode;
|
|
16
18
|
key?: React.Key | null | undefined;
|
|
17
19
|
defaultChecked?: boolean | undefined;
|
|
18
20
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
19
21
|
suppressContentEditableWarning?: boolean | undefined;
|
|
20
22
|
suppressHydrationWarning?: boolean | undefined;
|
|
21
23
|
accessKey?: string | undefined;
|
|
22
|
-
contentEditable?:
|
|
24
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
23
25
|
contextMenu?: string | undefined;
|
|
24
26
|
dir?: string | undefined;
|
|
25
27
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -52,7 +54,7 @@ export declare const OptionMenu: import("styled-components").StyledComponent<"di
|
|
|
52
54
|
results?: number | undefined;
|
|
53
55
|
security?: string | undefined;
|
|
54
56
|
unselectable?: "on" | "off" | undefined;
|
|
55
|
-
inputMode?: "
|
|
57
|
+
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
56
58
|
is?: string | undefined;
|
|
57
59
|
'aria-activedescendant'?: string | undefined;
|
|
58
60
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
@@ -102,7 +104,6 @@ export declare const OptionMenu: import("styled-components").StyledComponent<"di
|
|
|
102
104
|
'aria-valuemin'?: number | undefined;
|
|
103
105
|
'aria-valuenow'?: number | undefined;
|
|
104
106
|
'aria-valuetext'?: string | undefined;
|
|
105
|
-
children?: React.ReactNode;
|
|
106
107
|
dangerouslySetInnerHTML?: {
|
|
107
108
|
__html: string;
|
|
108
109
|
} | undefined;
|
|
@@ -136,7 +137,6 @@ export declare const OptionMenu: import("styled-components").StyledComponent<"di
|
|
|
136
137
|
onInvalidCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
|
|
137
138
|
onLoad?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
138
139
|
onLoadCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
139
|
-
onError?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
140
140
|
onErrorCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
|
|
141
141
|
onKeyDown?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
142
142
|
onKeyDownCapture?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
@@ -269,7 +269,7 @@ export declare const OptionMenu: import("styled-components").StyledComponent<"di
|
|
|
269
269
|
css?: import("@emotion/core").InterpolationWithTheme<any>;
|
|
270
270
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
271
271
|
theme: any;
|
|
272
|
-
}, "slot" | "style" | "title" | "ref" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "
|
|
272
|
+
}, "slot" | "style" | "title" | "ref" | "onError" | "children" | "theme" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css">;
|
|
273
273
|
export declare const SelectedOptionWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
274
274
|
export declare const SelectedOption: import("styled-components").StyledComponent<"button", any, {
|
|
275
275
|
type: "button";
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
|
|
3
3
|
import { ControllerRenderProps } from 'react-hook-form/dist/types/controller';
|
|
4
4
|
import { DataCy } from '../../../../types/dataAttributes';
|
|
5
|
+
import { FieldValues } from 'react-hook-form/dist/types';
|
|
5
6
|
/**
|
|
6
7
|
* Select
|
|
7
8
|
*/
|
|
8
|
-
export declare type NativeSelectProps<T> = ControllerRenderProps<T> & SelectProps;
|
|
9
|
-
export declare type JRCInputSelectProps<T> = JRCInputFieldProps<T> & SelectProps;
|
|
9
|
+
export declare type NativeSelectProps<T extends FieldValues = FieldValues> = ControllerRenderProps<T> & SelectProps;
|
|
10
|
+
export declare type JRCInputSelectProps<T extends FieldValues = FieldValues> = JRCInputFieldProps<T> & SelectProps;
|
|
10
11
|
export declare type Getter = ((option: any) => any) | string;
|
|
11
12
|
export declare type SelectProps = DataCy & {
|
|
12
13
|
options?: Array<any>;
|
|
@@ -36,8 +37,8 @@ export declare type SelectProps = DataCy & {
|
|
|
36
37
|
/**
|
|
37
38
|
* Autocomplete
|
|
38
39
|
*/
|
|
39
|
-
export declare type NativeAutocompleteProps<T> = ControllerRenderProps<T> & AutocompleteInnerProps;
|
|
40
|
-
export declare type JRCAutocompleteProps<T> = JRCInputFieldProps<T> & AutocompleteInnerProps;
|
|
40
|
+
export declare type NativeAutocompleteProps<T extends FieldValues = FieldValues> = ControllerRenderProps<T> & AutocompleteInnerProps;
|
|
41
|
+
export declare type JRCAutocompleteProps<T extends FieldValues = FieldValues> = JRCInputFieldProps<T> & AutocompleteInnerProps;
|
|
41
42
|
export declare type AutocompleteLittle = {
|
|
42
43
|
uri: string;
|
|
43
44
|
title: string;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { JRCAppLeftColumnProps } from './JRCAppLeftColumn.types';
|
|
3
2
|
declare const _default: {
|
|
4
3
|
title: string;
|
|
5
|
-
component: <T extends import("./JRCAppLeftColumn.types").SectionEntry = import("./JRCAppLeftColumn.types").SectionEntry>({ Component, ...props }: JRCAppLeftColumnProps<T>) => JSX.Element;
|
|
4
|
+
component: <T extends import("./JRCAppLeftColumn.types").SectionEntry = import("./JRCAppLeftColumn.types").SectionEntry>({ Component, ...props }: import("./JRCAppLeftColumn.types").JRCAppLeftColumnProps<T>) => JSX.Element;
|
|
6
5
|
};
|
|
7
6
|
export default _default;
|
|
8
|
-
export declare const Simple:
|
|
7
|
+
export declare const Simple: {
|
|
8
|
+
(): JSX.Element;
|
|
9
|
+
parameters: any;
|
|
10
|
+
};
|
|
@@ -29,7 +29,7 @@ export declare const JRCIconButtonAppLeftColumn: import("styled-components").Sty
|
|
|
29
29
|
value?: string | undefined;
|
|
30
30
|
disabled?: boolean | undefined;
|
|
31
31
|
type?: "button" | "reset" | "submit" | undefined;
|
|
32
|
-
color?: import("../../styles/theme").Colors | import("../../styles/theme").Shades |
|
|
32
|
+
color?: "inherit" | import("../../styles/theme").Colors | import("../../styles/theme").Shades | undefined;
|
|
33
33
|
tooltip?: Omit<import("../..").JRCTooltipProps, "children"> | undefined;
|
|
34
34
|
variant?: "circle" | "square" | undefined;
|
|
35
35
|
} & {
|
|
@@ -32,7 +32,7 @@ export declare const Button: import("styled-components").StyledComponent<"button
|
|
|
32
32
|
hasLabel: boolean;
|
|
33
33
|
} & Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & DataCy & {
|
|
34
34
|
/** Color of the background of the button */
|
|
35
|
-
color?: "primary" | "
|
|
35
|
+
color?: "primary" | "valid" | "danger" | "secondary" | undefined;
|
|
36
36
|
/** Indicates loading of content on the button */
|
|
37
37
|
loader?: boolean | undefined;
|
|
38
38
|
/** This Boolean attribute specifies that the button should have input focus when the page loads */
|
|
@@ -52,7 +52,7 @@ export declare const Button: import("styled-components").StyledComponent<"button
|
|
|
52
52
|
} & DashedFocusBorderProps, never>;
|
|
53
53
|
export declare const JRCButton: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & DataCy & {
|
|
54
54
|
/** Color of the background of the button */
|
|
55
|
-
color?: "primary" | "
|
|
55
|
+
color?: "primary" | "valid" | "danger" | "secondary" | undefined;
|
|
56
56
|
/** Indicates loading of content on the button */
|
|
57
57
|
loader?: boolean | undefined;
|
|
58
58
|
/** This Boolean attribute specifies that the button should have input focus when the page loads */
|
|
@@ -5,5 +5,8 @@ import { Meta, Story } from '@storybook/react';
|
|
|
5
5
|
declare const _default: Meta<import("@storybook/react").Args>;
|
|
6
6
|
export default _default;
|
|
7
7
|
export declare const CustomButton: Story<JRCButtonProps>;
|
|
8
|
-
export declare const AllButtons:
|
|
8
|
+
export declare const AllButtons: {
|
|
9
|
+
(): JSX.Element;
|
|
10
|
+
parameters: any;
|
|
11
|
+
};
|
|
9
12
|
export declare const ValidationButton: Story<JRCValidationButtonProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ButtonProps, MenuWithTitleProps } from './JRCButtonDropdown.types';
|
|
3
3
|
export declare const MarginLessJRCButton: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & import("../../types/dataAttributes").DataCy & {
|
|
4
|
-
color?: "primary" | "
|
|
4
|
+
color?: "primary" | "valid" | "danger" | "secondary" | undefined;
|
|
5
5
|
loader?: boolean | undefined;
|
|
6
6
|
autofocus?: boolean | undefined;
|
|
7
7
|
value?: string | undefined;
|
|
@@ -4,6 +4,15 @@ declare const _default: {
|
|
|
4
4
|
component: (props: import("./JRCGrid").JRCGridProps) => JSX.Element;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
|
-
export declare const Grid_1_col:
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
export declare const Grid_1_col: {
|
|
8
|
+
(): JSX.Element;
|
|
9
|
+
parameters: any;
|
|
10
|
+
};
|
|
11
|
+
export declare const Grid_2_col_Left_Center: {
|
|
12
|
+
(): JSX.Element;
|
|
13
|
+
parameters: any;
|
|
14
|
+
};
|
|
15
|
+
export declare const Grid_3_col_Left_Center_Right: {
|
|
16
|
+
(): JSX.Element;
|
|
17
|
+
parameters: any;
|
|
18
|
+
};
|
|
@@ -4,4 +4,7 @@ import { Meta, Story } from '@storybook/react';
|
|
|
4
4
|
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Primary: Story<JRCIconProps>;
|
|
7
|
-
export declare const AllIcons:
|
|
7
|
+
export declare const AllIcons: {
|
|
8
|
+
(): JSX.Element;
|
|
9
|
+
parameters: any;
|
|
10
|
+
};
|
|
@@ -4,4 +4,7 @@ declare const _default: {
|
|
|
4
4
|
component: ({ items, defaultActiveItem }: import("./JRCMenu").JRCMenuProps) => JSX.Element;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
|
-
export declare const jrcmenu:
|
|
7
|
+
export declare const jrcmenu: {
|
|
8
|
+
(): JSX.Element;
|
|
9
|
+
parameters: any;
|
|
10
|
+
};
|