jamespot-react-components 1.0.91 → 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/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 +4 -1
- 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/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 +1 -1
- 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.0ddc54e5.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.0ddc54e5.iframe.bundle.js +0 -2
- package/storybook-static/main.cbb259a9.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,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;
|
|
@@ -4,4 +4,7 @@ declare const _default: {
|
|
|
4
4
|
component: <T extends import("./JRCAppLeftColumn.types").SectionEntry = import("./JRCAppLeftColumn.types").SectionEntry>({ Component, ...props }: import("./JRCAppLeftColumn.types").JRCAppLeftColumnProps<T>) => JSX.Element;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
|
-
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
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { ModalBorderRadius } from './JRCModal.styles';
|
|
2
3
|
/**
|
|
3
4
|
* Interface to provide Modal Buttons
|
|
4
5
|
* @member color button color "primary" | "red" | "green" | "grey"
|
|
@@ -22,6 +23,9 @@ export interface JRCModalButtonType extends ComponentPropsWithoutRef<'button'> {
|
|
|
22
23
|
* @member title optional string or JSX.Element (header content) if hasHeader= true
|
|
23
24
|
* @member showIconClose boolean to show/hide the close (x) button of the Modal
|
|
24
25
|
* @member enableClickAwayCloseModal boolean to enable the close of the Modal by Click Outside of Modal
|
|
26
|
+
* @member contentFull content without padding
|
|
27
|
+
* @member overflow allow overflow hidden (crop background for radius)
|
|
28
|
+
* @member radius border radius size
|
|
25
29
|
* @member children default ReactNode children in the Modal content
|
|
26
30
|
* @member portalId id attribute for createPortal
|
|
27
31
|
* @member inPlace if true, does not use a portal
|
|
@@ -35,6 +39,9 @@ export interface JRCModalProps {
|
|
|
35
39
|
title?: React.ReactNode;
|
|
36
40
|
showIconClose?: boolean;
|
|
37
41
|
enableClickAwayCloseModal?: boolean;
|
|
42
|
+
contentFull?: boolean;
|
|
43
|
+
overflow?: 'hidden';
|
|
44
|
+
radius?: ModalBorderRadius;
|
|
38
45
|
isFull?: boolean;
|
|
39
46
|
isFullHeight?: boolean;
|
|
40
47
|
modalOptions?: ReactNode;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
export declare type ModalBorderRadius = 'medium' | 'small';
|
|
1
2
|
export declare const JRCModalBox: import("styled-components").StyledComponent<"div", any, {
|
|
2
3
|
isFullHeight?: boolean | undefined;
|
|
3
4
|
}, never>;
|
|
4
5
|
export declare const JRCModalContainerFull: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
6
|
export declare const JRCModalContainer: import("styled-components").StyledComponent<"div", any, {
|
|
6
7
|
isFullHeight?: boolean | undefined;
|
|
8
|
+
overflow?: "hidden" | undefined;
|
|
9
|
+
radius?: ModalBorderRadius | undefined;
|
|
7
10
|
}, never>;
|
|
8
11
|
export declare const JRCModalTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
12
|
export declare const JRCModalOptions: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -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 SkeletonModal: Story<JRCModalImgProps>;
|
|
7
|
-
export declare const ShowAndHideModal:
|
|
7
|
+
export declare const ShowAndHideModal: {
|
|
8
|
+
(): JSX.Element;
|
|
9
|
+
parameters: any;
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TSizes } from '../JRCTypography/JRCTypography.d';
|
|
2
|
+
export declare type JRCSkeletonLineProps = {
|
|
3
|
+
width?: string;
|
|
4
|
+
size?: TSizes;
|
|
5
|
+
lineHeight?: number;
|
|
6
|
+
height?: string;
|
|
7
|
+
borderRadius?: string;
|
|
8
|
+
margin?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const JRCSkeletonLine: ({ width, size, lineHeight, height, borderRadius, margin, }: JRCSkeletonLineProps) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare type JRCSkeletonSquareProps = {
|
|
2
|
+
ratio?: {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
};
|
|
6
|
+
width?: string;
|
|
7
|
+
borderRadius?: string;
|
|
8
|
+
margin?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const JRCSkeletonSquare: import("styled-components").StyledComponent<"div", any, JRCSkeletonSquareProps, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const pulseAnimation: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -4,6 +4,15 @@ declare const _default: {
|
|
|
4
4
|
component: ({ entries, activeItem, direction, callback, dataCy, }: import("./JRCTabs").JRCTabsProps) => JSX.Element;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
|
-
export declare const TabHorizontal:
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
export declare const TabHorizontal: {
|
|
8
|
+
(): JSX.Element;
|
|
9
|
+
parameters: any;
|
|
10
|
+
};
|
|
11
|
+
export declare const TabVertical: {
|
|
12
|
+
(): JSX.Element;
|
|
13
|
+
parameters: any;
|
|
14
|
+
};
|
|
15
|
+
export declare const EmbeddedTab: {
|
|
16
|
+
(): JSX.Element;
|
|
17
|
+
parameters: any;
|
|
18
|
+
};
|