Aller au contenu principal

Variable: components

const components: object

Defined in: src/components/library.ts:29

We should remove this export to avoid import * as lunatic from "@inseefr/lunatic" in orchestrators but this is a breaking change

Type Declaration​

Accordion​

Accordion: ComponentType<LunaticBaseProps<string> & object>

CheckboxBoolean​

CheckboxBoolean: (__namedParameters) => Element

Parameters​

ParameterType
__namedParametersLunaticBaseProps<boolean> & object

Returns​

Element

CheckboxGroup​

CheckboxGroup: (__namedParameters) => Element

Parameters​

ParameterType
__namedParametersLunaticBaseProps<Record<string, boolean | null>> & object

Returns​

Element

CheckboxOne​

CheckboxOne: (__namedParameters) => Element

Checkbox acting as a radio (only one option can be checked at a time)

Parameters​

ParameterType
__namedParametersLunaticBaseProps<string | null> & object

Returns​

Element

Datepicker​

Datepicker: (__namedParameters) => Element

Parameters​

ParameterType
__namedParametersLunaticBaseProps<string | null> & object

Returns​

Element

Dropdown: (__namedParameters) => Element

Parameters​

ParameterType
__namedParametersLunaticBaseProps<string | null> & object

Returns​

Element

Duration​

Duration: (__namedParameters) => Element

Parameters​

ParameterType
__namedParametersLunaticBaseProps<string | null> & object

Returns​

Element

FilterDescription​

FilterDescription: (__namedParameters) => Element

Parameters​

ParameterType
__namedParametersPick<LunaticBaseProps<string>, "label" | "id"> & object

Returns​

Element

Input​

Input: (__namedParameters) => Element

Parameters​

ParameterType
__namedParametersLunaticBaseProps<string> & object

Returns​

Element

InputNumber​

InputNumber: (__namedParameters) => Element

Parameters​

ParameterType
__namedParametersLunaticBaseProps<number | null> & object

Returns​

Element

Loop​

Loop: (props) => Element | null

Loop without specific markup (stack of subcomponents)

Parameters​

ParameterType
propsLunaticBaseProps<unknown> & object

Returns​

Element | null

PairwiseLinks: (props) => Element | undefined

Parameters​

ParameterType
propsOmit<LunaticBaseProps<unknown>, "value"> & object

Returns​

Element | undefined

Question​

Question: (props) => Element

Surround a question giving additional context with label / description / declarations

Parameters​

ParameterType
propsPick<LunaticBaseProps<unknown>, "label" | "description" | "declarations" | "id" | "disabled" | "shouldBeFiltered" | "propsTransformer" | "errors" | "readOnly"> & object

Returns​

Element

Radio​

Radio: ComponentType<LunaticBaseProps<string | null> & object>

RosterForLoop​

RosterForLoop: (props) => Element | null

Loop displayed as a table

Parameters​

ParameterType
propsLunaticBaseProps<unknown> & object

Returns​

Element | null

Roundabout​

Roundabout: (props) => Element

Roundabout is a special loop component where the user can select the iteration to go to

Parameters​

ParameterType
propsLunaticBaseProps<string> & object

Returns​

Element

Sequence​

Sequence: ComponentType<Pick<LunaticBaseProps<string>, "label" | "description" | "declarations" | "id" | "style" | "shouldBeFiltered"> & object>

Subsequence​

Subsequence: ComponentType<Pick<LunaticBaseProps<string>, "label" | "description" | "declarations" | "id" | "shouldBeFiltered"> & object>

Suggester​

Suggester: (props) => Element

Parameters​

ParameterType
propsLunaticBaseProps<string | null> & object

Returns​

Element

Summary​

Summary: (props) => Element

Summarize the responses done by the user

Parameters​

ParameterType
propsLunaticBaseProps<string | null> & object

Returns​

Element

Switch​

Switch: ComponentType<LunaticBaseProps<boolean> & object>

Table​

Table: (props) => Element

Parameters​

ParameterType
propsLunaticBaseProps<unknown> & object

Returns​

Element

Text​

Text: (__namedParameters) => ReactNode

Parameters​

ParameterType
__namedParametersLunaticBaseProps<string> & object

Returns​

ReactNode

Textarea​

Textarea: (__namedParameters) => Element

Parameters​

ParameterType
__namedParametersLunaticBaseProps<string> & object

Returns​

Element