@web-site-utilities/feedback 0.0.1

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.
Files changed (45) hide show
  1. package/LICENSE +551 -0
  2. package/README.md +3 -0
  3. package/dist/common/components/Button.d.ts +7 -0
  4. package/dist/common/components/Checkbox.d.ts +50 -0
  5. package/dist/common/components/ErrorMessage.d.ts +9 -0
  6. package/dist/common/components/Modal.d.ts +23 -0
  7. package/dist/common/components/QuestionMatrix.d.ts +40 -0
  8. package/dist/common/components/Radio.d.ts +51 -0
  9. package/dist/common/components/RangeSlide.d.ts +39 -0
  10. package/dist/common/components/Rating.d.ts +35 -0
  11. package/dist/common/components/Select.d.ts +39 -0
  12. package/dist/common/components/Step.d.ts +15 -0
  13. package/dist/common/components/StepsProgress.d.ts +17 -0
  14. package/dist/common/components/TextInput.d.ts +30 -0
  15. package/dist/common/components/Textarea.d.ts +27 -0
  16. package/dist/common/components/Typography.d.ts +13 -0
  17. package/dist/common/hooks/useForm.d.ts +21 -0
  18. package/dist/common/hooks/useStepper.d.ts +17 -0
  19. package/dist/common/theme/ThemeProvider.d.ts +114 -0
  20. package/dist/common/types/CommonFieldProps.d.ts +6 -0
  21. package/dist/common/types/FormConfig.d.ts +129 -0
  22. package/dist/common/types/FormError.d.ts +4 -0
  23. package/dist/common/types/Locale.d.ts +1 -0
  24. package/dist/common/types/Nullable.d.ts +1 -0
  25. package/dist/common/types/Option.d.ts +5 -0
  26. package/dist/common/types/ValidationPerStep.d.ts +6 -0
  27. package/dist/common/types/isNil.d.ts +2 -0
  28. package/dist/fields/Field/Field.d.ts +65 -0
  29. package/dist/form/App.d.ts +12 -0
  30. package/dist/form/api/baseApi.d.ts +8 -0
  31. package/dist/form/api/getFormConf.d.ts +8 -0
  32. package/dist/form/api/saveForm.d.ts +2 -0
  33. package/dist/form/api/useRequest.d.ts +7 -0
  34. package/dist/form/components/FeedbackInput/FeedbackInput.d.ts +12 -0
  35. package/dist/form/features/InPlaceForm/InPlaceForm.d.ts +31 -0
  36. package/dist/form/features/PopupForm/PopupForm.d.ts +10 -0
  37. package/dist/form/index.d.ts +10 -0
  38. package/dist/form/index.dev.d.ts +1 -0
  39. package/dist/form/types/InitiateFeedbackModuleOptions.d.ts +8 -0
  40. package/dist/index.cjs.js +148 -0
  41. package/dist/index.d.ts +30 -0
  42. package/dist/index.es.js +3207 -0
  43. package/dist/index.iife.js +148 -0
  44. package/package.json +71 -0
  45. package/tsconfig.json +29 -0
package/LICENSE ADDED
@@ -0,0 +1,551 @@
1
+ Copyright (C) 2025 Aleksandr Zabedovskii
2
+
3
+ GNU AFFERO GENERAL PUBLIC LICENSE
4
+ Version 3, 19 November 2007
5
+
6
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
7
+ Everyone is permitted to copy and distribute verbatim copies
8
+ of this license document, but changing it is not allowed.
9
+
10
+ Preamble
11
+
12
+ The GNU Affero General Public License is a free, copyleft license for
13
+ software and other kinds of works, specifically designed to ensure
14
+ cooperation with the community in the case of network server software.
15
+
16
+ The licenses for most software and other practical works are designed
17
+ to take away your freedom to share and change the works. By contrast,
18
+ our General Public Licenses are intended to guarantee your freedom to
19
+ share and change all versions of a program--to make sure it remains free
20
+ software for all its users.
21
+
22
+ When we speak of free software, we are referring to freedom, not
23
+ price. Our General Public Licenses are designed to make sure that you
24
+ have the freedom to distribute copies of free software (and charge for
25
+ them if you wish), that you receive source code or can get it if you
26
+ want it, that you can change the software or use pieces of it in new
27
+ free programs, and that you know you can do these things.
28
+
29
+ Developers that use our General Public Licenses protect your rights
30
+ with two steps: (1) assert copyright on the software, and (2) offer
31
+ you this License which gives you legal permission to copy, distribute
32
+ and/or modify the software.
33
+
34
+ A secondary benefit of defending all users' freedom is that
35
+ improvements made in alternate versions of the program, if they
36
+ receive widespread use, become available for other developers to
37
+ incorporate. Many developers of free software are heartened and
38
+ encouraged by the resulting cooperation. However, in the case of
39
+ software used on network servers, this result does not necessarily
40
+ happen. Users who interact with the program remotely may not have
41
+ the opportunity to receive the source code of those modifications.
42
+
43
+ The GNU Affero General Public License is designed to ensure that, in
44
+ such cases, the modified source code becomes available to the users
45
+ of that server. It requires the operator of a network server to
46
+ provide the source code of the modified version running there to the
47
+ users of that server. Therefore, public use of a modified version,
48
+ on a publicly accessible server, gives the public access to the
49
+ source code of the modified version.
50
+
51
+ An older license, called the Affero General Public License and
52
+ published by Affero, was designed to accomplish similar goals. This
53
+ version, the GNU Affero General Public License, is Affero's successor,
54
+ and it preserves the main aims of Affero's license while fixing some
55
+ problems.
56
+
57
+ The precise terms and conditions for copying, distribution and
58
+ modification follow.
59
+
60
+ TERMS AND CONDITIONS
61
+
62
+ 0. Definitions.
63
+
64
+ "This License" refers to version 3 of the GNU Affero General Public
65
+ License.
66
+
67
+ "Copyright" also means copyright-like laws that apply to other kinds of
68
+ works, such as semiconductor masks.
69
+
70
+ "The Program" refers to any copyrightable work licensed under this
71
+ License. Each licensee is addressed as "you". "Licensees" and
72
+ "recipients" may be individuals or organizations.
73
+
74
+ To "modify" a work means to copy from or adapt all or part of the work
75
+ in a fashion requiring copyright permission, other than the making of an
76
+ exact copy. The resulting work is called a "modified version" of the
77
+ earlier work or a work "based on" the earlier work.
78
+
79
+ A "covered work" means either the unmodified Program or a work based
80
+ on the Program.
81
+
82
+ To "propagate" a work means to do anything with it that, without
83
+ permission, would make you directly or secondarily liable for
84
+ infringement under applicable copyright law, except executing it on a
85
+ computer or modifying a private copy. Propagation includes copying,
86
+ distribution (with or without modification), making available to the
87
+ public, and in some countries other activities as well.
88
+
89
+ To "convey" a work means any kind of propagation that enables other
90
+ parties to make or receive copies. Mere interaction with a user through
91
+ a computer network, with no transfer of a copy, is not conveying.
92
+
93
+ An interactive user interface displays "Appropriate Legal Notices"
94
+ to the extent that it includes a convenient and prominently visible
95
+ feature that (1) displays an appropriate copyright notice, and (2)
96
+ tells the user that there is no warranty for the work (except to the
97
+ extent that warranties are provided), that licensees may convey the
98
+ work under this License, and how to view a copy of this License. If
99
+ the interface presents a list of user commands or options, such as a
100
+ menu, a prominent item in the list meets this criterion.
101
+
102
+ 1. Source Code.
103
+
104
+ The "source code" for a work means the preferred form of the work for
105
+ making modifications to it. "Object code" means any non-source form of
106
+ a work.
107
+
108
+ A "Standard Interface" means an interface that either is an official
109
+ standard defined by a recognized standards body, or, in the case of
110
+ interfaces specified for a particular programming language, one that
111
+ is widely used among developers working in that language.
112
+
113
+ The "Corresponding Source" for a work in object code form means all
114
+ the source code needed to generate, install, and (for an executable
115
+ work) run the object code and to modify the work, including scripts to
116
+ control those activities. However, it does not include the work's
117
+ System Libraries, or general-purpose tools or generally available free
118
+ programs which are used unmodified in performing those activities but
119
+ which are not part of the work. For example, Corresponding Source
120
+ includes interface definition files associated with source files for
121
+ the work, and the source code for shared libraries and dynamically
122
+ linked subprograms that the work is specifically designed to require,
123
+ such as by intimate data communication or control flow between those
124
+ subprograms and other parts of the work.
125
+
126
+ The Corresponding Source need not include anything that users
127
+ can regenerate automatically from other parts of the Corresponding
128
+ Source.
129
+
130
+ The Corresponding Source for a work in source code form is that
131
+ same work.
132
+
133
+ 2. Basic Permissions.
134
+
135
+ All rights granted under this License are granted for the term of
136
+ copyright on the Program, and are irrevocable provided the stated
137
+ conditions are met. This License explicitly affirms your unlimited
138
+ permission to run the unmodified Program. The output from running a
139
+ covered work is covered by this License only if the output, given its
140
+ content, constitutes a covered work. This License acknowledges your
141
+ rights of fair use or other equivalent, as provided by copyright law.
142
+
143
+ You may make, run and propagate covered works that you do not convey,
144
+ without conditions so long as your license otherwise remains in force.
145
+ You may convey covered works to others for the sole purpose of having
146
+ them make modifications exclusively for you, or provide you with
147
+ facilities for running those works, provided that you comply with the
148
+ terms of this License in conveying all material for which you do not
149
+ control copyright. Those thus making or running the works for you
150
+ must do so exclusively on your behalf, under your direction and
151
+ control, on terms that prohibit them from making any copies of your
152
+ copyrighted material outside their relationship with you.
153
+
154
+ Conveying under any other circumstances is permitted solely under
155
+ the conditions stated below. Sublicensing is not allowed; section 10
156
+ makes it unnecessary.
157
+
158
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
159
+
160
+ No covered work shall be deemed part of an effective technological
161
+ measure under any applicable law fulfilling obligations under article
162
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
163
+ similar laws prohibiting or restricting circumvention of such
164
+ measures.
165
+
166
+ When you convey a covered work, you waive any legal power to forbid
167
+ circumvention of technological measures to the extent such circumvention
168
+ is effected by exercising rights under this License with respect to
169
+ the covered work, and you disclaim any intention to limit operation or
170
+ modification of the work as a means of enforcing, against the work's
171
+ users, your or third parties' legal rights to limit circumvention of
172
+ technological protections.
173
+
174
+ 4. Conveying Verbatim Copies.
175
+
176
+ You may convey verbatim copies of the Program's source code as you
177
+ receive it, in any medium, provided that you conspicuously and
178
+ appropriately publish on each copy an appropriate copyright notice;
179
+ keep intact all notices stating that this License and any
180
+ non-permissive terms added in accord with section 7 apply to the code;
181
+ keep intact all notices of the absence of any warranty; and give all
182
+ recipients a copy of this License along with the Program.
183
+
184
+ You may charge any price or no price for each copy that you convey,
185
+ and you may offer support or warranty protection for a fee.
186
+
187
+ 5. Conveying Modified Source Versions.
188
+
189
+ You may convey a work based on the Program, or the modifications to
190
+ produce it from the Program, in the form of source code under the
191
+ terms of section 4, provided that you also meet all of these
192
+ conditions:
193
+
194
+ a) The work must carry prominent notices stating that you modified
195
+ it, and giving a relevant date.
196
+
197
+ b) The work must carry prominent notices stating that it is
198
+ released under this License and any conditions added under section 7.
199
+ This requirement modifies the requirement in section 4 to "keep
200
+ intact all notices".
201
+
202
+ c) You must license the entire work, as a whole, under this License
203
+ to anyone who comes into possession of a copy. This License will
204
+ therefore apply, along with any applicable section 7 additional
205
+ terms, to the whole of the work, and all its parts, regardless of
206
+ how they are packaged. This License gives no permission to
207
+ license the work in any other way, but it does not invalidate such
208
+ permission if you have separately received it.
209
+
210
+ d) If the work has interactive user interfaces, each must display
211
+ Appropriate Legal Notices; however, if the Program has interactive
212
+ interfaces that do not display Appropriate Legal Notices, your
213
+ work need not make them do so.
214
+
215
+ 6. Conveying Non-Source Forms.
216
+
217
+ You may convey a covered work in object code form under the terms
218
+ of sections 4 and 5, provided that you also convey the
219
+ machine-readable Corresponding Source under the terms of this License,
220
+ in one of these ways:
221
+
222
+ a) Convey the object code in, or embodied in, a physical product
223
+ (including a physical distribution medium), accompanied by the
224
+ Corresponding Source fixed on a durable physical medium customarily
225
+ used for software interchange.
226
+
227
+ b) Convey the object code by offering access from a designated
228
+ place (gratis or for a fee), and offer equivalent access to the
229
+ Corresponding Source in the same way through the same place at no
230
+ further charge. You need not require recipients to copy the
231
+ Corresponding Source along with the object code. If the place to
232
+ copy the object code is a network server, the Corresponding Source
233
+ may be on a different server (operated by you or a third party)
234
+ that supports equivalent copying facilities, provided you maintain
235
+ clear directions next to the object code saying where to find the
236
+ Corresponding Source. Regardless of what server hosts the
237
+ Corresponding Source, you remain obligated to ensure that it is
238
+ available for as long as necessary to satisfy these requirements.
239
+
240
+ c) Convey the object code using peer-to-peer transmission, provided
241
+ you inform other peers where the Corresponding Source of the work
242
+ is being offered to the general public at no charge under section
243
+ 6b.
244
+
245
+ d) Convey the object code by offering access from a designated
246
+ place (gratis or for a fee), and offer equivalent access to the
247
+ Corresponding Source via peer-to-peer transmission, provided you
248
+ inform other peers where the Corresponding Source of the work is
249
+ being offered to the general public at no charge under section 6b.
250
+
251
+ The requirement to provide Corresponding Source does not include the
252
+ obligation to provide the Installation Information described in
253
+ section 6 of the GNU General Public License version 3.
254
+
255
+ 7. Additional Terms.
256
+
257
+ "Additional permissions" are terms that supplement the terms of this
258
+ License by making exceptions from one or more of its conditions.
259
+ Additional permissions that are applicable to the entire Program shall
260
+ be treated as though they were included in this License, to the extent
261
+ that they are valid under applicable law. If additional permissions
262
+ apply only to part of the Program, that part may be used separately
263
+ under those permissions, but the entire Program remains governed by
264
+ this License without regard to the additional permissions.
265
+
266
+ When you convey a copy of a covered work, you may at your option
267
+ remove any additional permissions from that copy, or from any part of
268
+ it. (Additional permissions may be written to require their own
269
+ removal in certain cases when you modify the work.) You may place
270
+ additional permissions on material, added by you to a covered work,
271
+ for which you have or can give appropriate copyright permission.
272
+
273
+ Notwithstanding any other provision of this License, for material you
274
+ add to a covered work, you may (if authorized by the copyright holders
275
+ of that material) supplement the terms of this License with terms:
276
+ a) Disclaiming warranty or limiting liability differently from the
277
+ terms of sections 15 and 16 of this License; or
278
+
279
+ b) Requiring preservation of specified reasonable legal notices or
280
+ author attributions in that material or in the Appropriate Legal
281
+ Notices displayed by works containing it; or
282
+
283
+ c) Prohibiting misrepresentation of the origin of that material, or
284
+ requiring that modified versions of such material be marked in
285
+ reasonable ways as different from the original version; or
286
+
287
+ d) Limiting the use for publicity purposes of names of licensors or
288
+ authors; or
289
+
290
+ e) Declining to grant rights under trademark law for use of some
291
+ trade names, trademarks, or service marks; or
292
+
293
+ f) Requiring indemnification of licensors and authors of that
294
+ material by anyone who conveys the material (or modified versions of
295
+ it) with contractual assumptions of liability to the recipient, for
296
+ example, as a consequence of a patent license; or
297
+
298
+ g) Requiring preservation of specified reasonable privacy
299
+ safeguards or other interaction limits for material added by you.
300
+
301
+ All other non-permissive additional terms are considered "further
302
+ restrictions" within the meaning of section 10. If the Program as you
303
+ received it, or any part of it, contains a notice stating that it is
304
+ governed by this License along with a term that is a further
305
+ restriction, you may remove that term. If a license document contains
306
+ a further restriction but permits relicensing or conveying under this
307
+ License, you may add to a covered work material governed by the terms
308
+ of that license, provided that the further restriction does not survive
309
+ such relicensing or conveying.
310
+
311
+ If you add terms to a covered work in accord with this section, you
312
+ must place, in the relevant source files, a statement of the
313
+ additional terms that apply to those files, or a notice indicating
314
+ where to find the applicable terms.
315
+
316
+ 8. Termination.
317
+
318
+ You may not propagate or modify a covered work except as expressly
319
+ provided under this License. Any attempt otherwise to propagate or
320
+ modify it is void, and will automatically terminate your rights under
321
+ this License (including any patent licenses granted under the third
322
+ paragraph of section 11).
323
+
324
+ However, if you cease all violation of this License, then your
325
+ license from a particular copyright holder is reinstated (a)
326
+ provisionally, unless and until the copyright holder explicitly and
327
+ finally terminates your license, and (b) permanently, if the copyright
328
+ holder fails to notify you of the violation by some reasonable means
329
+ prior to 60 days after the cessation.
330
+
331
+ Moreover, your license from a particular copyright holder is
332
+ reinstated permanently if the copyright holder notifies you of the
333
+ violation by some reasonable means, this is the first time you have
334
+ received notice of violation of this License (for any work) from that
335
+ copyright holder, and you cure the violation prior to 30 days after
336
+ your receipt of the notice.
337
+
338
+ Termination of your rights under this section does not terminate the
339
+ licenses of parties who have received copies or rights from you under
340
+ this License. If your rights have been terminated and not permanently
341
+ reinstated, you do not qualify to receive new licenses for the same
342
+ material under section 10.
343
+
344
+ 9. Acceptance Not Required for Having Copies.
345
+
346
+ You are not required to accept this License in order to receive or
347
+ run a copy of the Program. Ancillary propagation of a covered work
348
+ occurring solely as a consequence of using peer-to-peer transmission
349
+ to receive a copy likewise does not require acceptance. However,
350
+ nothing other than this License grants you permission to propagate or
351
+ modify the Program or its derivative works. These actions infringe
352
+ copyright if you do not accept this License. Therefore, by
353
+ propagating or modifying the Program (or any work based on the
354
+ Program), you indicate your acceptance of this License to do so.
355
+
356
+ 10. Automatic Licensing of Downstream Recipients.
357
+
358
+ Each time you convey a covered work, the recipient automatically
359
+ receives a license from the original licensors, to run, modify and
360
+ propagate that work, subject to this License. You are not responsible
361
+ for enforcing compliance by third parties with this License.
362
+
363
+ An "entity transaction" is a transaction transferring control of an
364
+ organization, or substantially all assets of one, or subdividing an
365
+ organization, or merging organizations. If propagation of a covered
366
+ work results from an entity transaction, each party to that
367
+ transaction who receives a copy of the work also receives whatever
368
+ licenses to the work the party's predecessor had or could give under
369
+ the previous paragraph, plus a right to possession of the Corresponding
370
+ Source of the work from the predecessor, if the predecessor had the
371
+ Corresponding Source and the transaction is in effect.
372
+
373
+ You may not impose any further restrictions on the exercise of the
374
+ rights granted or affirmed under this License. For example, you may
375
+ not impose a license fee, royalty, or other charge for exercise of
376
+ rights granted under this License, and you may not initiate litigation
377
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
378
+ any patent claim is infringed by making, using, selling, offering for
379
+ sale, or importing the Program or any portion of it.
380
+
381
+ 11. Patents.
382
+
383
+ A "contributor" is a copyright holder who authorizes use under this
384
+ License of the Program or a work on which the Program is based. The
385
+ work thus licensed is called the contributor's "contributor version".
386
+
387
+ A contributor's "essential patent claims" are all patent claims
388
+ owned or controlled by the contributor, whether already acquired or
389
+ hereafter acquired, that would be infringed by some manner, permitted
390
+ by this License, of making, using, or selling its contributor version,
391
+ but do not include claims that would be infringed only as a
392
+ consequence of further modification of the contributor version.
393
+
394
+ For purposes of this section, "control" includes the right to grant a
395
+ patent license in a manner consistent with the requirements of this
396
+ License.
397
+
398
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
399
+ patent license under the contributor's essential patent claims, to
400
+ make, use, sell, offer for sale, import and otherwise run, modify and
401
+ propagate the contents of its contributor version.
402
+
403
+ In the following three paragraphs, a "patent license" is any express
404
+ agreement or commitment, however denominated, not to enforce a patent
405
+ (such as an express permission to practice a patent or covenant not to
406
+ sue). To "grant" such a patent license to a party means to make such
407
+ an agreement or commitment not to enforce a patent against the party.
408
+
409
+ If you convey a covered work, knowingly relying on a patent license,
410
+ and the Corresponding Source of the work is not available for anyone
411
+ to copy, free of charge and under the terms of this License, through a
412
+ publicly available network server or other readily accessible means,
413
+ then you must either (1) cause the Corresponding Source to be so
414
+ available, or (2) arrange to deprive yourself of the benefit of the
415
+ patent license for this particular work, or (3) arrange, in a manner
416
+ consistent with the requirements of this License, to extend the patent
417
+ license to downstream recipients. "Knowingly relying" means you have
418
+ actual knowledge that, but for the patent license, your conveyance of
419
+ the covered work would infringe one or more identifiable patents.
420
+
421
+ If, as a consequence of a court judgment or an explicit
422
+ commitment in connection with litigation, you are required to pay a
423
+ royalty for exercise of patent rights applied to the Program, the
424
+ patent license which you previously granted automatically becomes
425
+ null and void to the extent such payment is required. In that case,
426
+ you must either stop distributing the Program, or cease relying on
427
+ the patent license and make the Corresponding Source available under
428
+ section 6.
429
+
430
+ Nothing in this License shall be construed as excluding or limiting
431
+ any implied license or other defenses to infringement that may
432
+ otherwise be available to you under applicable patent law.
433
+
434
+ 12. No Surrender of Others' Freedom.
435
+
436
+ If conditions are imposed on you (whether by court order, agreement or
437
+ otherwise) that contradict the conditions of this License, they do not
438
+ excuse you from the conditions of this License. If you cannot convey a
439
+ covered work so as to satisfy simultaneously your obligations under this
440
+ License and any other pertinent obligations, then as a consequence you
441
+ may not convey it at all. For example, if you agree to terms that
442
+ obligate you to collect a royalty for further conveying from those to
443
+ whom you convey the Program, the only way you could satisfy both those
444
+ terms and this License would be to refrain entirely from conveying the
445
+ Program.
446
+
447
+ 13. Use with the GNU General Public License.
448
+
449
+ Notwithstanding any other provision of this License, you have
450
+ permission to link or combine any covered work with a work licensed
451
+ under version 3 of the GNU General Public License into a single
452
+ combined work, and to convey the resulting work. The terms of this
453
+ License will continue to apply to the part which is the covered work,
454
+ but the work with which it is combined will remain governed by
455
+ version 3 of the GNU General Public License.
456
+
457
+ 14. Revised Versions of this License.
458
+
459
+ The Free Software Foundation may publish revised and/or new versions of
460
+ the GNU Affero General Public License from time to time. Such new
461
+ versions will be similar in spirit to the present version, but may
462
+ differ in detail to address new problems or concerns.
463
+
464
+ Each version is given a distinguishing version number. If the Program
465
+ specifies that a certain numbered version of the GNU Affero General
466
+ Public License "or any later version" applies to it, you have the
467
+ option of following the terms and conditions either of that specified
468
+ version or of any later version that has been published (not as a
469
+ draft) by the Free Software Foundation. If the Program does not
470
+ specify a version number of this License, you may choose any version
471
+ ever published (not as a draft) by the Free Software Foundation.
472
+
473
+ If the Program specifies that a proxy can decide which future
474
+ versions of this License can be used, that proxy's public, written
475
+ statement of acceptance of a version permanently authorizes you to
476
+ choose that version for the Program.
477
+
478
+ 15. Disclaimer of Warranty.
479
+
480
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
481
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
482
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
483
+ WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
484
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
485
+ PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
486
+ OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU
487
+ ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
488
+
489
+ 16. Limitation of Liability.
490
+
491
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
492
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR
493
+ CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
494
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
495
+ ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT
496
+ NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSS
497
+ OF PROFITS OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
498
+ OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
499
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
500
+ PROGRAM, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
501
+
502
+ 17. Interpretation of Sections 15 and 16.
503
+
504
+ If the disclaimer of warranty and limitation of liability provided
505
+ above cannot be given local legal effect according to their terms,
506
+ reviewing courts shall apply local law that most closely approximates
507
+ an absolute waiver of all civil liability in connection with the
508
+ Program, unless a warranty or assumption of liability accompanies a
509
+ copy of the Program in return for a fee.
510
+
511
+ 18. Inability to Fulfill Section 6 Obligation.
512
+
513
+ If, because of the operation of a court judgment or order or the
514
+ requirements of a government agency, you cannot provide the
515
+ Corresponding Source as required by section 6, you must make your best
516
+ efforts to provide equivalent access to such source code from a
517
+ publicly available network server at no charge; however, this does not
518
+ relieve you of the obligation to provide the Corresponding Source by
519
+ some other means if you later are able to do so.
520
+
521
+ END OF TERMS AND CONDITIONS
522
+
523
+ How to Apply These Terms to Your New Programs
524
+
525
+ If you develop a new program, and you want it to be of the greatest
526
+ possible use to the public, the best way to achieve this is to make it
527
+ free software which everyone can redistribute and change under these
528
+ terms.
529
+
530
+ To do so, attach the following notices to the program. It is safest
531
+ to attach them to the start of each source file to most effectively
532
+ state the exclusion of warranty; and each file should have at least the
533
+ "copyright" line and a pointer to where the full notice is found.
534
+
535
+ <one line to give the program's name and a brief idea of what it does.>
536
+ Copyright (C) <year> <name of author>
537
+
538
+ This program is free software: you can redistribute it and/or modify
539
+ it under the terms of the GNU Affero General Public License as
540
+ published by the Free Software Foundation, either version 3 of the
541
+ License, or (at your option) any later version.
542
+
543
+ This program is distributed in the hope that it will be useful,
544
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
545
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
546
+ GNU Affero General Public License for more details.
547
+
548
+ You should have received a copy of the GNU Affero General Public License
549
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
550
+
551
+ Also add information on how to contact you by electronic and paper mail.
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # Social Feedback UI form
2
+
3
+ ## TBD
@@ -0,0 +1,7 @@
1
+ type ButtonProps = {
2
+ $outlined?: boolean;
3
+ $dashed?: boolean;
4
+ disabled?: boolean;
5
+ };
6
+ export declare const Button: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonProps>> & string;
7
+ export {};
@@ -0,0 +1,50 @@
1
+ import React from 'react';
2
+ import { Variants } from '../theme/ThemeProvider';
3
+ import { CommonFieldProps } from '../types/CommonFieldProps';
4
+ import { Options } from '../types/Option';
5
+ type CheckboxProps = {
6
+ label: string;
7
+ onSelect: (value: Array<string>) => void;
8
+ value: Array<string>;
9
+ id: string;
10
+ colorVariant?: Variants | undefined;
11
+ name: string;
12
+ };
13
+ export declare const Checkbox: (props: CheckboxProps) => React.DOMElement<{
14
+ selected: boolean;
15
+ children: (React.DOMElement<{
16
+ id: string;
17
+ type: string;
18
+ selected: boolean;
19
+ colorVariant: Variants | undefined;
20
+ onChange: () => void;
21
+ name: string;
22
+ }, Element> | React.FunctionComponentElement<{
23
+ variant?: "title" | "section" | "subtitle" | "subsection" | "paragraph";
24
+ linear?: boolean;
25
+ children?: React.ReactNode;
26
+ }>)[];
27
+ }, Element>;
28
+ type CheckboxGroupProps = {
29
+ options: Options;
30
+ onChange: (value: Array<string>) => void;
31
+ elementsPerCol?: number;
32
+ colorVariant?: Variants;
33
+ value: Array<string>;
34
+ label: string;
35
+ } & CommonFieldProps;
36
+ export declare const CheckboxGroup: (props: CheckboxGroupProps) => 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<CheckboxProps>[];
45
+ }, Element>[];
46
+ }, Element> | React.FunctionComponentElement<{
47
+ errors?: import("../types/FormError").FormError[];
48
+ }>)[];
49
+ }, HTMLElement>;
50
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { FormError } from '../types/FormError';
3
+ type ErrorMessageProps = {
4
+ errors?: FormError[];
5
+ };
6
+ export declare const ErrorMessage: ({ errors }: ErrorMessageProps) => React.DOMElement<{
7
+ children: string | null;
8
+ }, Element>;
9
+ export {};
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ type ModalProps = {
3
+ isOpen: boolean;
4
+ onClose: () => void;
5
+ children: React.ReactNode;
6
+ heading: React.ReactNode;
7
+ footer: React.ReactNode;
8
+ };
9
+ export declare const Modal: (props: ModalProps) => React.DOMElement<{
10
+ $visible: boolean;
11
+ onClick: React.MouseEventHandler<HTMLDialogElement>;
12
+ ref: React.RefObject<HTMLDialogElement | null>;
13
+ id: string;
14
+ children: React.DOMElement<{
15
+ $visible: boolean;
16
+ children: (string | number | bigint | boolean | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.FunctionComponentElement<{
17
+ variant?: "title" | "section" | "subtitle" | "subsection" | "paragraph";
18
+ linear?: boolean;
19
+ children?: React.ReactNode;
20
+ }> | null | undefined)[];
21
+ }, Element>;
22
+ }, HTMLDialogElement>;
23
+ export {};