euv_ui/component/questionnaire/view/struct.rs
1use super::*;
2
3/// Props for the [`euv_questionnaire`] component.
4///
5/// The questionnaire takes no settings of its own.
6#[derive(Clone, CustomDebug, Default)]
7pub struct EuvQuestionnaireProps {}
8
9/// Props for the [`euv_questionnaire_progress`] component.
10///
11/// The progress takes no settings of its own.
12#[derive(Clone, CustomDebug, Default)]
13pub struct EuvQuestionnaireProgressProps {}
14
15/// Props for the [`euv_questionnaire_item`] component.
16///
17/// The item takes no settings of its own.
18#[derive(Clone, CustomDebug, Default)]
19pub struct EuvQuestionnaireItemProps {}
20
21/// Props for the [`euv_questionnaire_title`] component.
22///
23/// The title takes no settings of its own.
24#[derive(Clone, CustomDebug, Default)]
25pub struct EuvQuestionnaireTitleProps {}
26
27/// Props for the [`euv_questionnaire_description`] component.
28///
29/// The description takes no settings of its own.
30#[derive(Clone, CustomDebug, Default)]
31pub struct EuvQuestionnaireDescriptionProps {}
32
33/// Props for the [`euv_questionnaire_choices`] component.
34///
35/// The choices carry the kind of answer they take.
36#[derive(Clone, CustomDebug, Default)]
37pub struct EuvQuestionnaireChoicesProps {
38 /// The kind of answer the choices take.
39 pub choice_type: EuvQuestionnaireChoiceType,
40}
41
42/// Props for the [`euv_questionnaire_choice`] component.
43///
44/// The choice carries the kind of answer it takes, whether it is
45/// ticked, and whether it refuses to be picked.
46#[derive(Clone, CustomDebug, Default)]
47pub struct EuvQuestionnaireChoiceProps {
48 /// The kind of answer the choice takes.
49 pub choice_type: EuvQuestionnaireChoiceType,
50 /// Whether the choice is ticked.
51 pub checked: bool,
52 /// Whether the choice refuses to be picked.
53 pub disabled: bool,
54}
55
56/// Props for the [`euv_questionnaire_choice_label`] component.
57///
58/// The label takes no settings of its own.
59#[derive(Clone, CustomDebug, Default)]
60pub struct EuvQuestionnaireChoiceLabelProps {}
61
62/// Props for the [`euv_questionnaire_choice_description`] component.
63///
64/// The description takes no settings of its own.
65#[derive(Clone, CustomDebug, Default)]
66pub struct EuvQuestionnaireChoiceDescriptionProps {}
67
68/// Props for the [`euv_questionnaire_choice_indicator`] component.
69///
70/// The indicator carries the kind of answer it stands for and whether
71/// the choice is ticked.
72#[derive(Clone, CustomDebug, Default)]
73pub struct EuvQuestionnaireChoiceIndicatorProps {
74 /// The kind of answer the indicator stands for.
75 pub choice_type: EuvQuestionnaireChoiceType,
76 /// Whether the choice is ticked.
77 pub checked: bool,
78}
79
80/// Props for the [`euv_questionnaire_input`] component.
81///
82/// The input takes no settings of its own.
83#[derive(Clone, CustomDebug, Default)]
84pub struct EuvQuestionnaireInputProps {}
85
86/// Props for the [`euv_questionnaire_error`] component.
87///
88/// The error takes no settings of its own.
89#[derive(Clone, CustomDebug, Default)]
90pub struct EuvQuestionnaireErrorProps {}
91
92/// Props for the [`euv_questionnaire_actions`] component.
93///
94/// The actions take no settings of their own.
95#[derive(Clone, CustomDebug, Default)]
96pub struct EuvQuestionnaireActionsProps {}
97
98/// Props for the [`euv_questionnaire_previous`] component.
99///
100/// The button takes no settings of its own.
101#[derive(Clone, CustomDebug, Default)]
102pub struct EuvQuestionnairePreviousProps {}
103
104/// Props for the [`euv_questionnaire_skip`] component.
105///
106/// The button takes no settings of its own.
107#[derive(Clone, CustomDebug, Default)]
108pub struct EuvQuestionnaireSkipProps {}
109
110/// Props for the [`euv_questionnaire_next`] component.
111///
112/// The button takes no settings of its own.
113#[derive(Clone, CustomDebug, Default)]
114pub struct EuvQuestionnaireNextProps {}
115
116/// Props for the [`euv_questionnaire_submit`] component.
117///
118/// The button takes no settings of its own.
119#[derive(Clone, CustomDebug, Default)]
120pub struct EuvQuestionnaireSubmitProps {}
121
122/// Props for the [`euv_questionnaire_choice_shortcut`] component.
123///
124/// The shortcut tells the reader which keys answer the question without
125/// taking the room of the label.
126#[derive(Clone, CustomDebug, Default)]
127pub struct EuvQuestionnaireChoiceShortcutProps {
128 /// The keys the shortcut shows.
129 pub keys: &'static str,
130}