@web-site-utilities/feedback 0.0.6 → 0.0.7

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.
@@ -25,3 +25,168 @@ export declare const PreviewPopupForm: (props: PopupFormProps & {
25
25
  selectedVariant?: Variants;
26
26
  children: React.ReactNode;
27
27
  }>;
28
+ export declare const SurveyFormComponents: {
29
+ Checkbox: (props: {
30
+ options: import("@web-site-utilities/common/types/Option").Options;
31
+ onChange: (value: Array<string>) => void;
32
+ elementsPerCol?: number;
33
+ colorVariant?: Variants;
34
+ value: Array<string>;
35
+ label: string;
36
+ } & import("@web-site-utilities/common/types/CommonFieldProps").CommonFieldProps) => React.DetailedReactHTMLElement<{
37
+ children: (React.FunctionComponentElement<{
38
+ variant?: "title" | "section" | "subtitle" | "subsection" | "paragraph";
39
+ linear?: boolean;
40
+ children?: React.ReactNode;
41
+ }> | React.DOMElement<{
42
+ children: React.DOMElement<{
43
+ key: number;
44
+ children: React.FunctionComponentElement<{
45
+ label: string;
46
+ onSelect: (value: Array<string>) => void;
47
+ value: Array<string>;
48
+ id: string;
49
+ colorVariant?: Variants | undefined;
50
+ name: string;
51
+ }>[];
52
+ }, Element>[];
53
+ }, Element> | React.FunctionComponentElement<{
54
+ errors?: import("@web-site-utilities/common/types/FormError").FormError[];
55
+ }>)[];
56
+ }, HTMLElement>;
57
+ QuestionMatrix: (props: {
58
+ value: import("@web-site-utilities/common/types/Nullable").Nullable<number>;
59
+ minText?: string;
60
+ colorVariant?: Variants;
61
+ maxText?: string;
62
+ onChange: (value: number) => void;
63
+ label: string;
64
+ max: number;
65
+ } & import("@web-site-utilities/common/types/CommonFieldProps").CommonFieldProps) => React.DetailedReactHTMLElement<{
66
+ children: (React.FunctionComponentElement<{
67
+ variant?: "title" | "section" | "subtitle" | "subsection" | "paragraph";
68
+ linear?: boolean;
69
+ children?: React.ReactNode;
70
+ }> | React.FunctionComponentElement<{
71
+ errors?: import("@web-site-utilities/common/types/FormError").FormError[];
72
+ }> | React.DOMElement<{
73
+ withText: string | undefined;
74
+ children: (React.DOMElement<{
75
+ min: boolean;
76
+ children: string;
77
+ }, Element> | React.FunctionComponentElement<{
78
+ onChange: () => void;
79
+ colorVariant?: Variants;
80
+ label: string;
81
+ selected: boolean;
82
+ }>[] | null)[];
83
+ }, Element>)[];
84
+ }, HTMLElement>;
85
+ Radio: (props: {
86
+ options: import("@web-site-utilities/common/types/Option").Options;
87
+ onChange: (value: string) => void;
88
+ value: import("@web-site-utilities/common/types/Nullable").Nullable<string>;
89
+ elementsPerCol?: number;
90
+ colorVariant?: Variants;
91
+ label: string;
92
+ } & import("@web-site-utilities/common/types/CommonFieldProps").CommonFieldProps) => React.DetailedReactHTMLElement<{
93
+ children: (React.FunctionComponentElement<{
94
+ variant?: "title" | "section" | "subtitle" | "subsection" | "paragraph";
95
+ linear?: boolean;
96
+ children?: React.ReactNode;
97
+ }> | React.FunctionComponentElement<{
98
+ errors?: import("@web-site-utilities/common/types/FormError").FormError[];
99
+ }> | React.DOMElement<{
100
+ children: React.DOMElement<{
101
+ children: React.FunctionComponentElement<{
102
+ label: string;
103
+ onSelect: (value: string) => void;
104
+ colorVariant?: Variants | undefined;
105
+ value: import("@web-site-utilities/common/types/Nullable").Nullable<string>;
106
+ id: string;
107
+ name: string;
108
+ }>[];
109
+ }, Element>[];
110
+ }, Element>)[];
111
+ }, HTMLElement>;
112
+ Rating: ({ value, max, errors, label, onChange }: {
113
+ value: number;
114
+ label: string;
115
+ onChange: (value: number) => void;
116
+ max: number;
117
+ } & Omit<{
118
+ colorVariant?: Variants;
119
+ selected: boolean;
120
+ size?: "small" | "medium" | "large";
121
+ icon?: "star" | "star2" | "heart";
122
+ }, "selected"> & import("@web-site-utilities/common/types/CommonFieldProps").CommonFieldProps) => React.DOMElement<{
123
+ value: number;
124
+ max: number;
125
+ children: (React.FunctionComponentElement<{
126
+ variant?: "title" | "section" | "subtitle" | "subsection" | "paragraph";
127
+ linear?: boolean;
128
+ children?: React.ReactNode;
129
+ }> | React.FunctionComponentElement<{
130
+ errors?: import("@web-site-utilities/common/types/FormError").FormError[];
131
+ }> | React.DOMElement<{
132
+ selected: boolean;
133
+ name: string;
134
+ key: string;
135
+ onChange: () => void;
136
+ type: string;
137
+ }, Element>[])[];
138
+ }, Element>;
139
+ Select: (props: {
140
+ label: string;
141
+ value: import("@web-site-utilities/common/types/Nullable").Nullable<string>;
142
+ colorVariant?: Variants;
143
+ onChange: (value: string) => void;
144
+ options: import("@web-site-utilities/common/types/Option").Options;
145
+ } & import("@web-site-utilities/common/types/CommonFieldProps").CommonFieldProps) => React.DetailedReactHTMLElement<{
146
+ children: (React.FunctionComponentElement<{
147
+ variant?: "title" | "section" | "subtitle" | "subsection" | "paragraph";
148
+ linear?: boolean;
149
+ children?: React.ReactNode;
150
+ }> | React.FunctionComponentElement<{
151
+ errors?: import("@web-site-utilities/common/types/FormError").FormError[];
152
+ }> | React.DOMElement<{
153
+ colorVariant: Variants | undefined;
154
+ value: string | null;
155
+ defaultChecked: boolean;
156
+ defaultValue: null;
157
+ onChange: React.ChangeEventHandler<HTMLSelectElement>;
158
+ children: (React.DOMElement<{
159
+ value: string;
160
+ selected: boolean;
161
+ children: string;
162
+ key: string;
163
+ }, Element> | React.DOMElement<{
164
+ value: string;
165
+ selected: boolean;
166
+ children: string;
167
+ key: string;
168
+ }, Element>[])[];
169
+ }, Element>)[];
170
+ }, HTMLElement>;
171
+ Textarea: (props: {
172
+ value: import("@web-site-utilities/common/types/Nullable").Nullable<string>;
173
+ onChange: (value: string) => void;
174
+ placeholder?: string;
175
+ colorVariant?: Variants;
176
+ rows?: number;
177
+ label: string;
178
+ } & import("@web-site-utilities/common/types/CommonFieldProps").CommonFieldProps) => React.DOMElement<{
179
+ children: (React.FunctionComponentElement<{
180
+ variant?: "title" | "section" | "subtitle" | "subsection" | "paragraph";
181
+ linear?: boolean;
182
+ children?: React.ReactNode;
183
+ }> | React.FunctionComponentElement<{
184
+ errors?: import("@web-site-utilities/common/types/FormError").FormError[];
185
+ }> | React.DOMElement<{
186
+ value: string;
187
+ useThemeColors: Variants | undefined;
188
+ rows: number;
189
+ onChange: React.ChangeEventHandler<HTMLTextAreaElement>;
190
+ }, Element>)[];
191
+ }, Element>;
192
+ };