Variable: components
constcomponents: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
| Parameter | Type |
|---|---|
__namedParameters | LunaticBaseProps<boolean> & object |
Returns
Element
CheckboxGroup
CheckboxGroup: (
__namedParameters) =>Element
Parameters
| Parameter | Type |
|---|---|
__namedParameters | LunaticBaseProps<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
| Parameter | Type |
|---|---|
__namedParameters | LunaticBaseProps<string | null> & object |
Returns
Element
Datepicker
Datepicker: (
__namedParameters) =>Element
Parameters
| Parameter | Type |
|---|---|
__namedParameters | LunaticBaseProps<string | null> & object |
Returns
Element
Dropdown
Dropdown: (
__namedParameters) =>Element
Parameters
| Parameter | Type |
|---|---|
__namedParameters | LunaticBaseProps<string | null> & object |
Returns
Element
Duration
Duration: (
__namedParameters) =>Element
Parameters
| Parameter | Type |
|---|---|
__namedParameters | LunaticBaseProps<string | null> & object |
Returns
Element
FilterDescription
FilterDescription: (
__namedParameters) =>Element
Parameters
| Parameter | Type |
|---|---|
__namedParameters | Pick<LunaticBaseProps<string>, "label" | "id"> & object |
Returns
Element
Input
Input: (
__namedParameters) =>Element
Parameters
| Parameter | Type |
|---|---|
__namedParameters | LunaticBaseProps<string> & object |
Returns
Element
InputNumber
InputNumber: (
__namedParameters) =>Element
Parameters
| Parameter | Type |
|---|---|
__namedParameters | LunaticBaseProps<number | null> & object |
Returns
Element
Loop
Loop: (
props) =>Element|null
Loop without specific markup (stack of subcomponents)
Parameters
| Parameter | Type |
|---|---|
props | LunaticBaseProps<unknown> & object |
Returns
Element | null
PairwiseLinks
PairwiseLinks: (
props) =>Element|undefined
Parameters
| Parameter | Type |
|---|---|
props | Omit<LunaticBaseProps<unknown>, "value"> & object |
Returns
Element | undefined
Question
Question: (
props) =>Element
Surround a question giving additional context with label / description / declarations
Parameters
| Parameter | Type |
|---|---|
props | Pick<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
| Parameter | Type |
|---|---|
props | LunaticBaseProps<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
| Parameter | Type |
|---|---|
props | LunaticBaseProps<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
| Parameter | Type |
|---|---|
props | LunaticBaseProps<string | null> & object |
Returns
Element
Summary
Summary: (
props) =>Element
Summarize the responses done by the user
Parameters
| Parameter | Type |
|---|---|
props | LunaticBaseProps<string | null> & object |
Returns
Element
Switch
Switch:
ComponentType<LunaticBaseProps<boolean> &object>
Table
Table: (
props) =>Element
Parameters
| Parameter | Type |
|---|---|
props | LunaticBaseProps<unknown> & object |
Returns
Element
Text
Text: (
__namedParameters) =>ReactNode
Parameters
| Parameter | Type |
|---|---|
__namedParameters | LunaticBaseProps<string> & object |
Returns
ReactNode
Textarea
Textarea: (
__namedParameters) =>Element
Parameters
| Parameter | Type |
|---|---|
__namedParameters | LunaticBaseProps<string> & object |
Returns
Element