guestbell-forms 3.0.39 → 3.0.40

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 (335) hide show
  1. package/.env.bat +1 -0
  2. package/.eslintrc.json +21 -14
  3. package/build/components/base/input/BaseInput.d.ts +99 -99
  4. package/build/components/base/input/BaseInput.js +4 -0
  5. package/build/components/base/input/BaseInput.js.map +1 -1
  6. package/build/components/base/input/index.d.ts +1 -1
  7. package/build/components/bookingCalendar/BookingCalendar.d.ts +45 -46
  8. package/build/components/bookingCalendar/BookingCalendar.js +4 -5
  9. package/build/components/bookingCalendar/BookingCalendar.js.map +1 -1
  10. package/build/components/bookingCalendar/bookingCalendarControls/BookingCalendarControls.d.ts +17 -17
  11. package/build/components/bookingCalendar/bookingCalendarControls/BookingCalendarControls.js +12 -12
  12. package/build/components/bookingCalendar/bookingCalendarControls/BookingCalendarControls.js.map +1 -1
  13. package/build/components/bookingCalendar/bookingCalendarControls/classes.d.ts +9 -9
  14. package/build/components/bookingCalendar/bookingCalendarControls/index.d.ts +2 -2
  15. package/build/components/bookingCalendar/bookingCalendarDatePicker/BookingCalendarDatePicker.d.ts +13 -13
  16. package/build/components/bookingCalendar/bookingCalendarDatePicker/BookingCalendarDatePicker.js +3 -3
  17. package/build/components/bookingCalendar/bookingCalendarDatePicker/BookingCalendarDatePicker.js.map +1 -1
  18. package/build/components/bookingCalendar/bookingCalendarDatePicker/classes.d.ts +5 -5
  19. package/build/components/bookingCalendar/bookingCalendarDatePicker/index.d.ts +2 -2
  20. package/build/components/bookingCalendar/bookingCalendarGrid/BookingCalendarGrid.d.ts +10 -10
  21. package/build/components/bookingCalendar/bookingCalendarGrid/classes.d.ts +5 -5
  22. package/build/components/bookingCalendar/bookingCalendarItem/BookingCalendarItem.d.ts +57 -57
  23. package/build/components/bookingCalendar/bookingCalendarItem/classes.d.ts +4 -4
  24. package/build/components/bookingCalendar/bookingCalendarItem/index.d.ts +2 -2
  25. package/build/components/bookingCalendar/bookingCalendarLane/BookingCalendarLane.d.ts +16 -16
  26. package/build/components/bookingCalendar/bookingCalendarLane/classes.d.ts +4 -4
  27. package/build/components/bookingCalendar/bookingCalendarLane/index.d.ts +2 -2
  28. package/build/components/bookingCalendar/bookingCalendarLaneHeader/BookingCalendarLaneHeader.d.ts +7 -7
  29. package/build/components/bookingCalendar/bookingCalendarLaneHeader/classes.d.ts +4 -4
  30. package/build/components/bookingCalendar/bookingCalendarLaneHeader/index.d.ts +1 -1
  31. package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeader.d.ts +11 -11
  32. package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeader.js +3 -3
  33. package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeader.js.map +1 -1
  34. package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeaderRenderItem.d.ts +4 -5
  35. package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeaderRenderItem.js.map +1 -1
  36. package/build/components/bookingCalendar/bookingCalendarLanesHeader/classes.d.ts +5 -5
  37. package/build/components/bookingCalendar/bookingCalendarLanesHeader/index.d.ts +2 -2
  38. package/build/components/bookingCalendar/bookingCalendarRenderItem/BookingCalendarRenderItem.d.ts +9 -9
  39. package/build/components/bookingCalendar/bookingCalendarRenderItem/classes.d.ts +6 -6
  40. package/build/components/bookingCalendar/bookingCalendarRenderItem/index.d.ts +1 -1
  41. package/build/components/bookingCalendar/bookingCalendarSelection/BookingCalendarSelection.d.ts +38 -37
  42. package/build/components/bookingCalendar/bookingCalendarSelection/BookingCalendarSelection.js +2 -0
  43. package/build/components/bookingCalendar/bookingCalendarSelection/BookingCalendarSelection.js.map +1 -1
  44. package/build/components/bookingCalendar/bookingCalendarTimeAxis/BookingCalendarTimeAxis.d.ts +11 -11
  45. package/build/components/bookingCalendar/bookingCalendarTimeAxis/classes.d.ts +5 -5
  46. package/build/components/bookingCalendar/classes.d.ts +11 -11
  47. package/build/components/bookingCalendar/common.d.ts +23 -23
  48. package/build/components/bookingCalendar/common.js +3 -4
  49. package/build/components/bookingCalendar/common.js.map +1 -1
  50. package/build/components/bookingCalendar/index.d.ts +3 -3
  51. package/build/components/bookingCalendar/utils.d.ts +52 -50
  52. package/build/components/bookingCalendar/utils.js.map +1 -1
  53. package/build/components/button/Button.d.ts +81 -81
  54. package/build/components/button/Button.js +1 -0
  55. package/build/components/button/Button.js.map +1 -1
  56. package/build/components/button/index.d.ts +2 -2
  57. package/build/components/checkbox/Checkbox.d.ts +23 -23
  58. package/build/components/checkbox/index.d.ts +2 -2
  59. package/build/components/dropdown/Dropdown.d.ts +44 -44
  60. package/build/components/dropdown/index.d.ts +2 -2
  61. package/build/components/dynamicSubmit/DynamicSubmit.d.ts +54 -54
  62. package/build/components/dynamicSubmit/DynamicSubmit.js.map +1 -1
  63. package/build/components/dynamicSubmit/index.d.ts +2 -2
  64. package/build/components/externalValidationComponent/ExternalValidationComponent.d.ts +15 -15
  65. package/build/components/externalValidationComponent/index.d.ts +2 -2
  66. package/build/components/form/Form.d.ts +47 -47
  67. package/build/components/form/FormContext.d.ts +30 -30
  68. package/build/components/form/FormValidationSummary.d.ts +38 -38
  69. package/build/components/form/FormValidationSummary.js.map +1 -1
  70. package/build/components/form/index.d.ts +5 -5
  71. package/build/components/form/withFormContext.d.ts +3 -3
  72. package/build/components/inputGroup/InputGroup.d.ts +15 -17
  73. package/build/components/inputGroup/index.d.ts +2 -2
  74. package/build/components/inputHeader/InputHeader.d.ts +97 -97
  75. package/build/components/inputHeader/InputHeader.js.map +1 -1
  76. package/build/components/inputHeader/InputHeaderContext.d.ts +24 -24
  77. package/build/components/inputHeader/index.d.ts +2 -2
  78. package/build/components/inputHeader/withInputHeaderContext.d.ts +3 -3
  79. package/build/components/money/Money.d.ts +78 -78
  80. package/build/components/money/Money.js.map +1 -1
  81. package/build/components/money/index.d.ts +2 -2
  82. package/build/components/numberInput/NumberInput.d.ts +28 -28
  83. package/build/components/numberInput/index.d.ts +2 -2
  84. package/build/components/openingHours/openingHoursDay/OpeningHoursDay.d.ts +84 -84
  85. package/build/components/openingHours/openingHoursDay/OpeningHoursDay.js +3 -3
  86. package/build/components/openingHours/openingHoursDay/OpeningHoursDay.js.map +1 -1
  87. package/build/components/openingHours/openingHoursDay/index.d.ts +2 -2
  88. package/build/components/openingHours/openingHoursSpecial/OpeningHoursSpecial.d.ts +92 -90
  89. package/build/components/openingHours/openingHoursSpecial/OpeningHoursSpecial.js.map +1 -1
  90. package/build/components/openingHours/openingHoursSpecial/index.d.ts +2 -2
  91. package/build/components/openingHours/openingHoursWeek/OpeningHoursWeek.d.ts +109 -109
  92. package/build/components/openingHours/openingHoursWeek/index.d.ts +2 -2
  93. package/build/components/openingHours/utils/OpeningHoursUtil.d.ts +21 -21
  94. package/build/components/radio/Radio.d.ts +20 -20
  95. package/build/components/radio/index.d.ts +2 -2
  96. package/build/components/radioContainer/RadioContainer.d.ts +17 -16
  97. package/build/components/radioContainer/RadioContainer.js.map +1 -1
  98. package/build/components/radioContainer/index.d.ts +2 -2
  99. package/build/components/select/Select.d.ts +79 -79
  100. package/build/components/select/index.d.ts +2 -2
  101. package/build/components/submit/Submit.d.ts +137 -137
  102. package/build/components/submit/index.d.ts +2 -2
  103. package/build/components/submit/subComponents/SubmitValidationSummary.d.ts +5 -5
  104. package/build/components/tags/Tags.d.ts +92 -92
  105. package/build/components/tags/Tags.js +2 -0
  106. package/build/components/tags/Tags.js.map +1 -1
  107. package/build/components/tags/index.d.ts +2 -2
  108. package/build/components/tags/subComponents/TagsSuggestions.d.ts +34 -34
  109. package/build/components/tags/subComponents/TagsSuggestions.js +2 -2
  110. package/build/components/tags/subComponents/TagsSuggestions.js.map +1 -1
  111. package/build/components/text/Text.d.ts +31 -31
  112. package/build/components/text/index.d.ts +2 -2
  113. package/build/components/textArea/TextArea.d.ts +28 -28
  114. package/build/components/textArea/TextArea.js +1 -0
  115. package/build/components/textArea/TextArea.js.map +1 -1
  116. package/build/components/textArea/index.d.ts +2 -2
  117. package/build/components/themeProvider/ThemeContext.d.ts +9 -9
  118. package/build/components/themeProvider/ThemeProvider.d.ts +8 -7
  119. package/build/components/themeProvider/ThemeProvider.js.map +1 -1
  120. package/build/components/themeProvider/index.d.ts +4 -4
  121. package/build/components/themeProvider/withThemeContext.d.ts +4 -4
  122. package/build/components/time/Time.d.ts +32 -32
  123. package/build/components/time/Time.js +3 -3
  124. package/build/components/time/Time.js.map +1 -1
  125. package/build/components/time/index.d.ts +2 -2
  126. package/build/components/timeSpan/TimeSpan.d.ts +46 -46
  127. package/build/components/timeSpan/TimeSpan.js +6 -6
  128. package/build/components/timeSpan/TimeSpan.js.map +1 -1
  129. package/build/components/timeSpan/index.d.ts +2 -2
  130. package/build/components/utils/Guid.d.ts +2 -2
  131. package/build/components/utils/ShallowEqual.d.ts +16 -16
  132. package/build/components/utils/TimeUtil.d.ts +6 -6
  133. package/build/components/utils/Typescript.d.ts +5 -5
  134. package/build/dist/guestbell-forms.css +152 -170
  135. package/build/dist/guestbell-forms.css.map +1 -1
  136. package/build/dist/guestbell-forms.js +15 -24
  137. package/build/dist/guestbell-forms.js.map +1 -1
  138. package/build/dist/guestbell-forms.min.css +1 -1
  139. package/build/dist/guestbell-forms.min.js +1 -1
  140. package/build/dist/guestbell-forms.min.js.map +1 -1
  141. package/build/dist/report.html +3 -3
  142. package/build/index.d.ts +24 -24
  143. package/build/scss/components/bookingCalendar/bookingCalendar.scss +30 -7
  144. package/build/types/ElementOverrideProp.d.ts +3 -3
  145. package/build/types/Theme.d.ts +4 -4
  146. package/build/types/ThemeOverrides.d.ts +45 -45
  147. package/build/validators/EmailValidator.d.ts +4 -4
  148. package/build/validators/LatitudeValidator.d.ts +4 -4
  149. package/build/validators/LongitudeValidator.d.ts +4 -4
  150. package/build/validators/NumberValidator.d.ts +12 -12
  151. package/build/validators/NumberValidator.js +1 -0
  152. package/build/validators/NumberValidator.js.map +1 -1
  153. package/build/validators/UrlValidator.d.ts +4 -4
  154. package/build/validators/base.d.ts +4 -4
  155. package/build/validators/index.d.ts +6 -6
  156. package/package.json +130 -136
  157. package/src/lib/components/base/input/BaseInput.tsx +526 -0
  158. package/src/lib/components/base/input/index.tsx +1 -0
  159. package/src/lib/components/bookingCalendar/BookingCalendar.tsx +327 -0
  160. package/src/lib/components/bookingCalendar/bookingCalendarControls/BookingCalendarControls.tsx +249 -0
  161. package/src/lib/components/bookingCalendar/bookingCalendarControls/classes.ts +20 -0
  162. package/src/lib/components/bookingCalendar/bookingCalendarControls/index.ts +2 -0
  163. package/src/lib/components/bookingCalendar/bookingCalendarDatePicker/BookingCalendarDatePicker.tsx +104 -0
  164. package/src/lib/components/bookingCalendar/bookingCalendarDatePicker/classes.ts +9 -0
  165. package/src/lib/components/bookingCalendar/bookingCalendarDatePicker/index.ts +2 -0
  166. package/src/lib/components/bookingCalendar/bookingCalendarGrid/BookingCalendarGrid.tsx +56 -0
  167. package/src/lib/components/bookingCalendar/bookingCalendarGrid/classes.ts +9 -0
  168. package/src/lib/components/bookingCalendar/bookingCalendarItem/BookingCalendarItem.tsx +97 -0
  169. package/src/lib/components/bookingCalendar/bookingCalendarItem/classes.ts +7 -0
  170. package/src/lib/components/bookingCalendar/bookingCalendarItem/index.ts +2 -0
  171. package/src/lib/components/bookingCalendar/bookingCalendarLane/BookingCalendarLane.tsx +69 -0
  172. package/src/lib/components/bookingCalendar/bookingCalendarLane/classes.ts +7 -0
  173. package/src/lib/components/bookingCalendar/bookingCalendarLane/index.ts +2 -0
  174. package/src/lib/components/bookingCalendar/bookingCalendarLaneHeader/BookingCalendarLaneHeader.tsx +28 -0
  175. package/src/lib/components/bookingCalendar/bookingCalendarLaneHeader/classes.ts +7 -0
  176. package/src/lib/components/bookingCalendar/bookingCalendarLaneHeader/index.ts +1 -0
  177. package/src/lib/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeader.tsx +57 -0
  178. package/src/lib/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeaderRenderItem.tsx +53 -0
  179. package/src/lib/components/bookingCalendar/bookingCalendarLanesHeader/classes.ts +9 -0
  180. package/src/lib/components/bookingCalendar/bookingCalendarLanesHeader/index.ts +2 -0
  181. package/src/lib/components/bookingCalendar/bookingCalendarRenderItem/BookingCalendarRenderItem.tsx +57 -0
  182. package/src/lib/components/bookingCalendar/bookingCalendarRenderItem/classes.ts +11 -0
  183. package/src/lib/components/bookingCalendar/bookingCalendarRenderItem/index.ts +1 -0
  184. package/src/lib/components/bookingCalendar/bookingCalendarSelection/BookingCalendarSelection.tsx +217 -0
  185. package/src/lib/components/bookingCalendar/bookingCalendarTimeAxis/BookingCalendarTimeAxis.tsx +53 -0
  186. package/src/lib/components/bookingCalendar/bookingCalendarTimeAxis/classes.ts +9 -0
  187. package/src/lib/components/bookingCalendar/classes.ts +21 -0
  188. package/src/lib/components/bookingCalendar/common.ts +61 -0
  189. package/src/lib/components/bookingCalendar/index.ts +3 -0
  190. package/src/lib/components/bookingCalendar/utils.ts +348 -0
  191. package/src/lib/components/button/Button.tsx +193 -0
  192. package/src/lib/components/button/index.tsx +2 -0
  193. package/src/lib/components/checkbox/Checkbox.tsx +178 -0
  194. package/src/lib/components/checkbox/index.tsx +2 -0
  195. package/src/lib/components/dropdown/Dropdown.tsx +135 -0
  196. package/src/lib/components/dropdown/index.tsx +2 -0
  197. package/src/lib/components/dynamicSubmit/DynamicSubmit.tsx +153 -0
  198. package/src/lib/components/dynamicSubmit/index.tsx +2 -0
  199. package/src/lib/components/externalValidationComponent/ExternalValidationComponent.tsx +78 -0
  200. package/src/lib/components/externalValidationComponent/index.tsx +2 -0
  201. package/src/lib/components/form/Form.tsx +276 -0
  202. package/src/lib/components/form/FormContext.ts +49 -0
  203. package/src/lib/components/form/FormValidationSummary.tsx +122 -0
  204. package/src/lib/components/form/index.tsx +5 -0
  205. package/src/lib/components/form/withFormContext.tsx +20 -0
  206. package/src/lib/components/inputGroup/InputGroup.tsx +60 -0
  207. package/src/lib/components/inputGroup/index.tsx +2 -0
  208. package/src/lib/components/inputHeader/InputHeader.tsx +448 -0
  209. package/src/lib/components/inputHeader/InputHeaderContext.ts +42 -0
  210. package/src/lib/components/inputHeader/index.tsx +2 -0
  211. package/src/lib/components/inputHeader/withInputHeaderContext.tsx +24 -0
  212. package/src/lib/components/money/Money.tsx +298 -0
  213. package/src/lib/components/money/index.tsx +2 -0
  214. package/src/lib/components/numberInput/NumberInput.tsx +186 -0
  215. package/src/lib/components/numberInput/index.tsx +2 -0
  216. package/src/lib/components/openingHours/openingHoursDay/OpeningHoursDay.tsx +394 -0
  217. package/src/lib/components/openingHours/openingHoursDay/index.tsx +2 -0
  218. package/src/lib/components/openingHours/openingHoursSpecial/OpeningHoursSpecial.tsx +227 -0
  219. package/src/lib/components/openingHours/openingHoursSpecial/index.tsx +2 -0
  220. package/src/lib/components/openingHours/openingHoursWeek/OpeningHoursWeek.tsx +283 -0
  221. package/src/lib/components/openingHours/openingHoursWeek/index.tsx +2 -0
  222. package/src/lib/components/openingHours/utils/OpeningHoursUtil.tsx +111 -0
  223. package/src/lib/components/radio/Radio.tsx +87 -0
  224. package/src/lib/components/radio/index.tsx +2 -0
  225. package/src/lib/components/radioContainer/RadioContainer.tsx +50 -0
  226. package/src/lib/components/radioContainer/index.tsx +2 -0
  227. package/src/lib/components/select/Select.tsx +335 -0
  228. package/src/lib/components/select/index.tsx +2 -0
  229. package/src/lib/components/submit/Submit.tsx +117 -0
  230. package/src/lib/components/submit/index.tsx +2 -0
  231. package/src/lib/components/submit/subComponents/SubmitValidationSummary.tsx +55 -0
  232. package/src/lib/components/tags/Tags.tsx +702 -0
  233. package/src/lib/components/tags/index.tsx +2 -0
  234. package/src/lib/components/tags/subComponents/TagsSuggestions.tsx +150 -0
  235. package/src/lib/components/text/Text.tsx +200 -0
  236. package/src/lib/components/text/index.tsx +2 -0
  237. package/src/lib/components/textArea/TextArea.tsx +109 -0
  238. package/src/lib/components/textArea/index.tsx +2 -0
  239. package/src/lib/components/themeProvider/ThemeContext.ts +16 -0
  240. package/src/lib/components/themeProvider/ThemeProvider.tsx +21 -0
  241. package/src/lib/components/themeProvider/index.tsx +4 -0
  242. package/src/lib/components/themeProvider/withThemeContext.tsx +30 -0
  243. package/src/lib/components/time/Time.tsx +296 -0
  244. package/src/lib/components/time/index.tsx +2 -0
  245. package/src/lib/components/timeSpan/TimeSpan.tsx +378 -0
  246. package/src/lib/components/timeSpan/index.tsx +2 -0
  247. package/src/lib/components/utils/Guid.ts +9 -0
  248. package/src/lib/components/utils/ShallowEqual.ts +75 -0
  249. package/src/lib/components/utils/TimeUtil.ts +22 -0
  250. package/src/lib/components/utils/Typescript.ts +11 -0
  251. package/src/lib/declarations/import.d.ts +1 -0
  252. package/src/lib/index.ts +24 -0
  253. package/src/lib/scss/components/base/index.scss +1 -0
  254. package/src/lib/scss/components/base/input/index.scss +1 -0
  255. package/src/lib/scss/components/base/input/input.scss +237 -0
  256. package/src/lib/scss/components/bookingCalendar/bookingCalendar.scss +272 -0
  257. package/src/lib/scss/components/bookingCalendar/index.scss +1 -0
  258. package/src/lib/scss/components/button/buttons.scss +161 -0
  259. package/src/lib/scss/components/button/index.scss +1 -0
  260. package/src/lib/scss/components/checkbox/checkbox.scss +115 -0
  261. package/src/lib/scss/components/checkbox/index.scss +1 -0
  262. package/src/lib/scss/components/dropdown/dropdown.scss +111 -0
  263. package/src/lib/scss/components/dropdown/index.scss +1 -0
  264. package/src/lib/scss/components/dynamicSubmit/dynamicSubmit.scss +1 -0
  265. package/src/lib/scss/components/dynamicSubmit/index.scss +1 -0
  266. package/src/lib/scss/components/form/form.scss +1 -0
  267. package/src/lib/scss/components/form/formValidationSummary.scss +55 -0
  268. package/src/lib/scss/components/form/index.scss +2 -0
  269. package/src/lib/scss/components/index.scss +21 -0
  270. package/src/lib/scss/components/inputGroup/index.scss +1 -0
  271. package/src/lib/scss/components/inputGroup/inputGroup.scss +67 -0
  272. package/src/lib/scss/components/inputHeader/index.scss +1 -0
  273. package/src/lib/scss/components/inputHeader/inputHeader.scss +132 -0
  274. package/src/lib/scss/components/money/index.scss +1 -0
  275. package/src/lib/scss/components/money/money.scss +51 -0
  276. package/src/lib/scss/components/numberInput/index.scss +1 -0
  277. package/src/lib/scss/components/numberInput/numberInput.scss +116 -0
  278. package/src/lib/scss/components/openingHours/index.scss +3 -0
  279. package/src/lib/scss/components/openingHours/openingHoursDay/index.scss +1 -0
  280. package/src/lib/scss/components/openingHours/openingHoursDay/openingHoursDay.scss +127 -0
  281. package/src/lib/scss/components/openingHours/openingHoursSpecial/index.scss +1 -0
  282. package/src/lib/scss/components/openingHours/openingHoursSpecial/openingHoursSpecial.scss +93 -0
  283. package/src/lib/scss/components/openingHours/openingHoursWeek/index.scss +1 -0
  284. package/src/lib/scss/components/openingHours/openingHoursWeek/openingHoursWeek.scss +23 -0
  285. package/src/lib/scss/components/radio/index.scss +1 -0
  286. package/src/lib/scss/components/radio/radio.scss +68 -0
  287. package/src/lib/scss/components/radioContainer/index.scss +1 -0
  288. package/src/lib/scss/components/radioContainer/radioContainer.scss +15 -0
  289. package/src/lib/scss/components/select/index.scss +1 -0
  290. package/src/lib/scss/components/select/select.scss +64 -0
  291. package/src/lib/scss/components/submit/index.scss +1 -0
  292. package/src/lib/scss/components/submit/submitValidationSummary.scss +35 -0
  293. package/src/lib/scss/components/tags/index.scss +1 -0
  294. package/src/lib/scss/components/tags/tags.scss +128 -0
  295. package/src/lib/scss/components/text/index.scss +1 -0
  296. package/src/lib/scss/components/text/text.scss +42 -0
  297. package/src/lib/scss/components/textArea/index.scss +1 -0
  298. package/src/lib/scss/components/textArea/textArea.scss +32 -0
  299. package/src/lib/scss/components/time/index.scss +1 -0
  300. package/src/lib/scss/components/time/time.scss +111 -0
  301. package/src/lib/scss/components/timeSpan/index.scss +1 -0
  302. package/src/lib/scss/components/timeSpan/timeSpan.scss +115 -0
  303. package/src/lib/scss/index.scss +8 -0
  304. package/src/lib/scss/styles/base.scss +7 -0
  305. package/src/lib/scss/styles/index.scss +2 -0
  306. package/src/lib/scss/styles/react-tippy.scss +4 -0
  307. package/src/lib/scss/variables/_buttons.scss +6 -0
  308. package/src/lib/scss/variables/_colors.scss +1 -0
  309. package/src/lib/scss/variables/_common.scss +12 -0
  310. package/src/lib/tsconfig.json +19 -0
  311. package/src/lib/types/ElementOverrideProp.ts +3 -0
  312. package/src/lib/types/Theme.ts +5 -0
  313. package/src/lib/types/ThemeOverrides.ts +46 -0
  314. package/src/lib/validators/EmailValidator.ts +15 -0
  315. package/src/lib/validators/LatitudeValidator.ts +25 -0
  316. package/src/lib/validators/LongitudeValidator.ts +25 -0
  317. package/src/lib/validators/NumberValidator.ts +50 -0
  318. package/src/lib/validators/UrlValidator.ts +20 -0
  319. package/src/lib/validators/base.ts +15 -0
  320. package/src/lib/validators/index.ts +6 -0
  321. package/src/stories/Basic.stories.ts +17 -0
  322. package/src/stories/Basic.tsx +1065 -0
  323. package/src/stories/Schedule.stories.ts +16 -0
  324. package/src/stories/Schedule.tsx +73 -0
  325. package/src/stories/ValidationPage.tsx +417 -0
  326. package/tsconfig.json +9 -22
  327. package/typedoc.json +6 -0
  328. package/webpack/webpack.config.base.js +139 -0
  329. package/webpack/webpack.config.dev.js +78 -0
  330. package/webpack/webpack.config.gh-pages.js +78 -0
  331. package/webpack/webpack.config.js +21 -0
  332. package/webpack/webpack.config.min.js +100 -0
  333. package/.vscode/launch.json +0 -15
  334. package/.vscode/settings.json +0 -27
  335. package/.vscode/tasks.json +0 -12
@@ -1 +1 @@
1
- {"version":3,"file":"RadioContainer.js","names":["React","_interopRequireWildcard","require","_InputGroup","_interopRequireDefault","_withThemeContext","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","RadioContainer","PureComponent","constructor","props","render","createElement","title","id","className","horizontal","children","exports","_default","withThemeContext"],"sources":["../../../src/lib/components/radioContainer/RadioContainer.tsx"],"sourcesContent":["// Libs\r\nimport * as React from 'react';\r\nimport InputGroup from '../inputGroup/InputGroup';\r\nimport { withThemeContext } from '../themeProvider/withThemeContext';\r\nimport { ThemeContextProps } from '../themeProvider/ThemeContext';\r\n\r\n// Misc\r\n\r\nexport interface RadioContainerProps extends ThemeContextProps {\r\n id?: string;\r\n className?: string;\r\n title?: string;\r\n horizontal?: boolean;\r\n}\r\n\r\nexport interface RadioContainerState {}\r\n\r\nexport class RadioContainer extends React.PureComponent<\r\n RadioContainerProps,\r\n RadioContainerState\r\n> {\r\n constructor(props: RadioContainerProps) {\r\n super(props);\r\n }\r\n\r\n public render() {\r\n return (\r\n <InputGroup title={this.props.title}>\r\n <div\r\n {...(this.props.id && {\r\n id: this.props.id,\r\n })}\r\n className={`input__base radio-input__container \r\n ${\r\n this.props.horizontal\r\n ? 'radio-input__container--horizontal'\r\n : ''\r\n } \r\n ${this.props.className ? this.props.className : ''}`}\r\n children={this.props.children}\r\n />\r\n </InputGroup>\r\n );\r\n }\r\n}\r\nexport default withThemeContext<\r\n RadioContainerProps,\r\n InstanceType<typeof RadioContainer>\r\n>(RadioContainer, 'radioContainer');\r\n"],"mappings":"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"}
1
+ {"version":3,"file":"RadioContainer.js","names":["React","_interopRequireWildcard","require","_InputGroup","_interopRequireDefault","_withThemeContext","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","RadioContainer","PureComponent","constructor","props","render","createElement","title","id","className","horizontal","children","exports","_default","withThemeContext"],"sources":["../../../src/lib/components/radioContainer/RadioContainer.tsx"],"sourcesContent":["// Libs\r\nimport * as React from 'react';\r\nimport InputGroup from '../inputGroup/InputGroup';\r\nimport { withThemeContext } from '../themeProvider/withThemeContext';\r\nimport { ThemeContextProps } from '../themeProvider/ThemeContext';\r\n\r\n// Misc\r\n\r\nexport interface RadioContainerProps extends ThemeContextProps {\r\n id?: string;\r\n className?: string;\r\n title?: string;\r\n horizontal?: boolean;\r\n children?: React.ReactNode;\r\n}\r\n\r\nexport interface RadioContainerState {}\r\n\r\nexport class RadioContainer extends React.PureComponent<\r\n RadioContainerProps,\r\n RadioContainerState\r\n> {\r\n constructor(props: RadioContainerProps) {\r\n super(props);\r\n }\r\n\r\n public render() {\r\n return (\r\n <InputGroup title={this.props.title}>\r\n <div\r\n {...(this.props.id && {\r\n id: this.props.id,\r\n })}\r\n className={`input__base radio-input__container \r\n ${\r\n this.props.horizontal\r\n ? 'radio-input__container--horizontal'\r\n : ''\r\n } \r\n ${this.props.className ? this.props.className : ''}`}\r\n children={this.props.children}\r\n />\r\n </InputGroup>\r\n );\r\n }\r\n}\r\nexport default withThemeContext<\r\n RadioContainerProps,\r\n InstanceType<typeof RadioContainer>\r\n>(RadioContainer, 'radioContainer');\r\n"],"mappings":"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"}
@@ -1,2 +1,2 @@
1
- export * from './RadioContainer';
2
- export { default } from './RadioContainer';
1
+ export * from './RadioContainer';
2
+ export { default } from './RadioContainer';
@@ -1,79 +1,79 @@
1
- import * as React from 'react';
2
- import { BaseInputProps, BaseInputState, BaseInput, ValidationError } from '../base/input/BaseInput';
3
- export interface SelectValue {
4
- value: number | string;
5
- label?: string;
6
- forceSelected?: boolean;
7
- }
8
- export interface SelectProps extends BaseInputProps<HTMLSelectElement> {
9
- values?: SelectValue[];
10
- defaultEmpty?: boolean;
11
- multiple?: boolean;
12
- selectedValues?: SelectValue[];
13
- onSelectedValuesChange?: (newValues: SelectValue[]) => void;
14
- inputRef?: (input: HTMLSelectElement) => void;
15
- readOnly?: boolean;
16
- readonlyEmptyPlaceholder?: string;
17
- }
18
- export interface SelectState extends BaseInputState {
19
- }
20
- export declare class SelectRaw extends BaseInput<SelectProps, SelectState, HTMLSelectElement> {
21
- static defaultProps: {
22
- theme?: import("../../types/Theme").Theme;
23
- id?: string;
24
- disabled?: boolean;
25
- className?: string;
26
- label?: string | JSX.Element;
27
- tooltip?: string | JSX.Element;
28
- tooltipProps?: import("@tippy.js/react").TippyProps;
29
- value?: string;
30
- onChange?: (e: React.ChangeEvent<never>, isValid: boolean) => void;
31
- required?: boolean;
32
- customValidators?: import("../..").IBaseValidator[];
33
- validators?: import("../..").ValidatorTypes[];
34
- noValidate?: boolean;
35
- validationName?: string;
36
- touchOn?: "focus" | "blur";
37
- ignoreContext?: boolean;
38
- onTheFlightValidate?: (value: string) => boolean;
39
- onFocus?: () => void;
40
- onBlur?: () => void;
41
- onSuggestionsClosed?: () => void;
42
- onSuggestionsOpened?: () => void;
43
- onClick?: (e: React.MouseEvent<Element, MouseEvent>) => void;
44
- title?: string | JSX.Element;
45
- onKeyDown?: (e: React.KeyboardEvent<HTMLElement>) => void;
46
- errors?: ValidationError[];
47
- onErrorsChanged?: (errors: ValidationError[]) => void;
48
- showValidation?: boolean;
49
- reRendersWhenContextChanges?: boolean;
50
- defaultTouched?: boolean;
51
- translations?: Partial<{
52
- required: string;
53
- }>;
54
- inputGroupClassName?: string;
55
- infoText?: string | JSX.Element;
56
- } & import("../form").FormContextProps & {
57
- defaultEmpty: boolean;
58
- multiple: boolean;
59
- readOnly: boolean;
60
- readonlyEmptyPlaceholder: string;
61
- };
62
- constructor(props: SelectProps);
63
- componentDidMount(): void;
64
- componentDidUpdate(oldProps: SelectProps): void;
65
- render(): JSX.Element;
66
- protected handleValueChange(value: string, isValid?: boolean, errors?: ValidationError[], props?: SelectProps, initializing?: boolean): {
67
- isValid: boolean;
68
- errors: ValidationError[];
69
- };
70
- protected handleBlur(): void;
71
- protected handleFocus(): void;
72
- private handleChangeCustom;
73
- private handleValid;
74
- private renderReadonly;
75
- private renderSelectedValues;
76
- private removeItemClick;
77
- }
78
- export declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<SelectRaw>>;
79
- export default Select;
1
+ import * as React from 'react';
2
+ import { BaseInputProps, BaseInputState, BaseInput, ValidationError } from '../base/input/BaseInput';
3
+ export interface SelectValue {
4
+ value: number | string;
5
+ label?: string;
6
+ forceSelected?: boolean;
7
+ }
8
+ export interface SelectProps extends BaseInputProps<HTMLSelectElement> {
9
+ values?: SelectValue[];
10
+ defaultEmpty?: boolean;
11
+ multiple?: boolean;
12
+ selectedValues?: SelectValue[];
13
+ onSelectedValuesChange?: (newValues: SelectValue[]) => void;
14
+ inputRef?: (input: HTMLSelectElement) => void;
15
+ readOnly?: boolean;
16
+ readonlyEmptyPlaceholder?: string;
17
+ }
18
+ export interface SelectState extends BaseInputState {
19
+ }
20
+ export declare class SelectRaw extends BaseInput<SelectProps, SelectState, HTMLSelectElement> {
21
+ static defaultProps: {
22
+ theme?: import("../../types/Theme").Theme;
23
+ id?: string;
24
+ disabled?: boolean;
25
+ className?: string;
26
+ label?: string | JSX.Element;
27
+ tooltip?: string | JSX.Element;
28
+ tooltipProps?: import("@tippy.js/react").TippyProps;
29
+ value?: string;
30
+ onChange?: (e: React.ChangeEvent<never>, isValid: boolean) => void;
31
+ required?: boolean;
32
+ customValidators?: import("../..").IBaseValidator[];
33
+ validators?: import("../..").ValidatorTypes[];
34
+ noValidate?: boolean;
35
+ validationName?: string;
36
+ touchOn?: "focus" | "blur";
37
+ ignoreContext?: boolean;
38
+ onTheFlightValidate?: (value: string) => boolean;
39
+ onFocus?: () => void;
40
+ onBlur?: () => void;
41
+ onSuggestionsClosed?: () => void;
42
+ onSuggestionsOpened?: () => void;
43
+ onClick?: (e: React.MouseEvent<Element, MouseEvent>) => void;
44
+ title?: string | JSX.Element;
45
+ onKeyDown?: (e: React.KeyboardEvent<HTMLElement>) => void;
46
+ errors?: ValidationError[];
47
+ onErrorsChanged?: (errors: ValidationError[]) => void;
48
+ showValidation?: boolean;
49
+ reRendersWhenContextChanges?: boolean;
50
+ defaultTouched?: boolean;
51
+ translations?: Partial<{
52
+ required: string;
53
+ }>;
54
+ inputGroupClassName?: string;
55
+ infoText?: string | JSX.Element;
56
+ } & import("../form").FormContextProps & {
57
+ defaultEmpty: boolean;
58
+ multiple: boolean;
59
+ readOnly: boolean;
60
+ readonlyEmptyPlaceholder: string;
61
+ };
62
+ constructor(props: SelectProps);
63
+ componentDidMount(): void;
64
+ componentDidUpdate(oldProps: SelectProps): void;
65
+ render(): React.JSX.Element;
66
+ protected handleValueChange(value: string, isValid?: boolean, errors?: ValidationError[], props?: SelectProps, initializing?: boolean): {
67
+ isValid: boolean;
68
+ errors: ValidationError[];
69
+ };
70
+ protected handleBlur(): void;
71
+ protected handleFocus(): void;
72
+ private handleChangeCustom;
73
+ private handleValid;
74
+ private renderReadonly;
75
+ private renderSelectedValues;
76
+ private removeItemClick;
77
+ }
78
+ export declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<SelectRaw>>;
79
+ export default Select;
@@ -1,2 +1,2 @@
1
- export * from './Select';
2
- export { default } from './Select';
1
+ export * from './Select';
2
+ export { default } from './Select';
@@ -1,137 +1,137 @@
1
- import * as React from 'react';
2
- import { BaseInputProps, BaseInputState, BaseInput } from '../base/input/BaseInput';
3
- import { ButtonProps } from '../button/Button';
4
- export declare const defaultSubmitTranslations: {
5
- hangOn: string;
6
- needsFixing: string;
7
- required: string;
8
- };
9
- export declare type SubmitTranslations = Partial<typeof defaultSubmitTranslations>;
10
- export declare type SubmitProps = BaseInputProps<never, SubmitTranslations> & ButtonProps & {
11
- onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
12
- validateForm?: boolean;
13
- disabledTitle?: string;
14
- showValidationSummaryTooltip?: boolean;
15
- };
16
- export interface SubmitState extends BaseInputState {
17
- }
18
- export declare class SubmitRaw extends BaseInput<SubmitProps, SubmitState, never, SubmitTranslations> {
19
- static defaultProps: {
20
- theme?: import("../../types/Theme").Theme;
21
- id?: string;
22
- disabled?: boolean;
23
- className?: string;
24
- label?: string | JSX.Element;
25
- tooltip?: string | JSX.Element;
26
- tooltipProps?: import("@tippy.js/react").TippyProps;
27
- value?: string;
28
- onChange?: (e: React.ChangeEvent<never>, isValid: boolean) => void;
29
- required?: boolean;
30
- customValidators?: import("../..").IBaseValidator[];
31
- validators?: import("../..").ValidatorTypes[];
32
- noValidate?: boolean;
33
- validationName?: string;
34
- touchOn?: "focus" | "blur";
35
- ignoreContext?: boolean;
36
- onTheFlightValidate?: (value: string) => boolean;
37
- onFocus?: () => void;
38
- onBlur?: () => void;
39
- onSuggestionsClosed?: () => void;
40
- onSuggestionsOpened?: () => void;
41
- onClick?: (e: React.MouseEvent<Element, MouseEvent>) => void;
42
- title?: string | JSX.Element;
43
- onKeyDown?: (e: React.KeyboardEvent<HTMLElement>) => void;
44
- errors?: import("../base/input/BaseInput").ValidationError[];
45
- onErrorsChanged?: (errors: import("../base/input/BaseInput").ValidationError[]) => void;
46
- showValidation?: boolean;
47
- reRendersWhenContextChanges?: boolean;
48
- defaultTouched?: boolean;
49
- translations?: Partial<{
50
- required: string;
51
- }>;
52
- inputGroupClassName?: string;
53
- infoText?: string | JSX.Element;
54
- } & import("../form").FormContextProps & {
55
- validateForm: boolean;
56
- ignoreContext: boolean;
57
- reRendersWhenContextChanges: boolean;
58
- showValidationSummaryTooltip: boolean;
59
- preventsDefault: boolean;
60
- };
61
- constructor(props: SubmitProps);
62
- render(): JSX.Element;
63
- private handleClick;
64
- private isDisabled;
65
- }
66
- export declare const Submit: React.ForwardRefExoticComponent<{
67
- theme?: import("../../types/Theme").Theme;
68
- id?: string;
69
- disabled?: boolean;
70
- className?: string;
71
- label?: string | JSX.Element;
72
- tooltip?: string | JSX.Element;
73
- tooltipProps?: import("@tippy.js/react").TippyProps;
74
- value?: string;
75
- onChange?: (e: React.ChangeEvent<never>, isValid: boolean) => void;
76
- required?: boolean;
77
- customValidators?: import("../..").IBaseValidator[];
78
- validators?: import("../..").ValidatorTypes[];
79
- noValidate?: boolean;
80
- validationName?: string;
81
- touchOn?: "focus" | "blur";
82
- ignoreContext?: boolean;
83
- onTheFlightValidate?: (value: string) => boolean;
84
- onFocus?: () => void;
85
- onBlur?: () => void;
86
- onSuggestionsClosed?: () => void;
87
- onSuggestionsOpened?: () => void;
88
- onClick?: (e: React.MouseEvent<Element, MouseEvent>) => void;
89
- title?: string | JSX.Element;
90
- onKeyDown?: (e: React.KeyboardEvent<HTMLElement>) => void;
91
- errors?: import("../base/input/BaseInput").ValidationError[];
92
- onErrorsChanged?: (errors: import("../base/input/BaseInput").ValidationError[]) => void;
93
- showValidation?: boolean;
94
- reRendersWhenContextChanges?: boolean;
95
- defaultTouched?: boolean;
96
- translations?: Partial<{
97
- hangOn: string;
98
- needsFixing: string;
99
- required: string;
100
- }>;
101
- inputGroupClassName?: string;
102
- infoText?: string | JSX.Element;
103
- } & import("../form").FormContextProps & {
104
- id?: string;
105
- onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
106
- style?: React.CSSProperties;
107
- className?: string;
108
- disabled?: boolean;
109
- type?: import("../button/Button").ButtonTypes;
110
- circular?: boolean;
111
- noRipples?: boolean;
112
- small?: boolean;
113
- icon?: boolean;
114
- outlined?: boolean;
115
- disableAfterClickMs?: number;
116
- disableAfterClick?: boolean;
117
- buttonProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;
118
- text?: boolean;
119
- hero?: boolean;
120
- noShadow?: boolean;
121
- blank?: boolean;
122
- unobtrusive?: boolean;
123
- dropdown?: boolean;
124
- Component?: React.FC<import("../button/Button").ButtonComponentProps>;
125
- tooltip?: string | JSX.Element;
126
- disableTooltip?: boolean;
127
- tooltipProps?: import("@tippy.js/react").TippyProps;
128
- preventsDefault?: boolean;
129
- } & import("../themeProvider").ThemeContextProps & {
130
- children?: React.ReactNode;
131
- } & {
132
- onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
133
- validateForm?: boolean;
134
- disabledTitle?: string;
135
- showValidationSummaryTooltip?: boolean;
136
- } & React.RefAttributes<SubmitRaw>>;
137
- export default Submit;
1
+ import * as React from 'react';
2
+ import { BaseInputProps, BaseInputState, BaseInput } from '../base/input/BaseInput';
3
+ import { ButtonProps } from '../button/Button';
4
+ export declare const defaultSubmitTranslations: {
5
+ hangOn: string;
6
+ needsFixing: string;
7
+ required: string;
8
+ };
9
+ export type SubmitTranslations = Partial<typeof defaultSubmitTranslations>;
10
+ export type SubmitProps = BaseInputProps<never, SubmitTranslations> & ButtonProps & {
11
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
12
+ validateForm?: boolean;
13
+ disabledTitle?: string;
14
+ showValidationSummaryTooltip?: boolean;
15
+ };
16
+ export interface SubmitState extends BaseInputState {
17
+ }
18
+ export declare class SubmitRaw extends BaseInput<SubmitProps, SubmitState, never, SubmitTranslations> {
19
+ static defaultProps: {
20
+ theme?: import("../../types/Theme").Theme;
21
+ id?: string;
22
+ disabled?: boolean;
23
+ className?: string;
24
+ label?: string | JSX.Element;
25
+ tooltip?: string | JSX.Element;
26
+ tooltipProps?: import("@tippy.js/react").TippyProps;
27
+ value?: string;
28
+ onChange?: (e: React.ChangeEvent<never>, isValid: boolean) => void;
29
+ required?: boolean;
30
+ customValidators?: import("../..").IBaseValidator[];
31
+ validators?: import("../..").ValidatorTypes[];
32
+ noValidate?: boolean;
33
+ validationName?: string;
34
+ touchOn?: "focus" | "blur";
35
+ ignoreContext?: boolean;
36
+ onTheFlightValidate?: (value: string) => boolean;
37
+ onFocus?: () => void;
38
+ onBlur?: () => void;
39
+ onSuggestionsClosed?: () => void;
40
+ onSuggestionsOpened?: () => void;
41
+ onClick?: (e: React.MouseEvent<Element, MouseEvent>) => void;
42
+ title?: string | JSX.Element;
43
+ onKeyDown?: (e: React.KeyboardEvent<HTMLElement>) => void;
44
+ errors?: import("../base/input/BaseInput").ValidationError[];
45
+ onErrorsChanged?: (errors: import("../base/input/BaseInput").ValidationError[]) => void;
46
+ showValidation?: boolean;
47
+ reRendersWhenContextChanges?: boolean;
48
+ defaultTouched?: boolean;
49
+ translations?: Partial<{
50
+ required: string;
51
+ }>;
52
+ inputGroupClassName?: string;
53
+ infoText?: string | JSX.Element;
54
+ } & import("../form").FormContextProps & {
55
+ validateForm: boolean;
56
+ ignoreContext: boolean;
57
+ reRendersWhenContextChanges: boolean;
58
+ showValidationSummaryTooltip: boolean;
59
+ preventsDefault: boolean;
60
+ };
61
+ constructor(props: SubmitProps);
62
+ render(): React.JSX.Element;
63
+ private handleClick;
64
+ private isDisabled;
65
+ }
66
+ export declare const Submit: React.ForwardRefExoticComponent<{
67
+ theme?: import("../../types/Theme").Theme;
68
+ id?: string;
69
+ disabled?: boolean;
70
+ className?: string;
71
+ label?: string | JSX.Element;
72
+ tooltip?: string | JSX.Element;
73
+ tooltipProps?: import("@tippy.js/react").TippyProps;
74
+ value?: string;
75
+ onChange?: (e: React.ChangeEvent<never>, isValid: boolean) => void;
76
+ required?: boolean;
77
+ customValidators?: import("../..").IBaseValidator[];
78
+ validators?: import("../..").ValidatorTypes[];
79
+ noValidate?: boolean;
80
+ validationName?: string;
81
+ touchOn?: "focus" | "blur";
82
+ ignoreContext?: boolean;
83
+ onTheFlightValidate?: (value: string) => boolean;
84
+ onFocus?: () => void;
85
+ onBlur?: () => void;
86
+ onSuggestionsClosed?: () => void;
87
+ onSuggestionsOpened?: () => void;
88
+ onClick?: (e: React.MouseEvent<Element, MouseEvent>) => void;
89
+ title?: string | JSX.Element;
90
+ onKeyDown?: (e: React.KeyboardEvent<HTMLElement>) => void;
91
+ errors?: import("../base/input/BaseInput").ValidationError[];
92
+ onErrorsChanged?: (errors: import("../base/input/BaseInput").ValidationError[]) => void;
93
+ showValidation?: boolean;
94
+ reRendersWhenContextChanges?: boolean;
95
+ defaultTouched?: boolean;
96
+ translations?: Partial<{
97
+ hangOn: string;
98
+ needsFixing: string;
99
+ required: string;
100
+ }>;
101
+ inputGroupClassName?: string;
102
+ infoText?: string | JSX.Element;
103
+ } & import("../form").FormContextProps & {
104
+ id?: string;
105
+ onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
106
+ style?: React.CSSProperties;
107
+ className?: string;
108
+ disabled?: boolean;
109
+ type?: import("../button/Button").ButtonTypes;
110
+ circular?: boolean;
111
+ noRipples?: boolean;
112
+ small?: boolean;
113
+ icon?: boolean;
114
+ outlined?: boolean;
115
+ disableAfterClickMs?: number;
116
+ disableAfterClick?: boolean;
117
+ buttonProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;
118
+ text?: boolean;
119
+ hero?: boolean;
120
+ noShadow?: boolean;
121
+ blank?: boolean;
122
+ unobtrusive?: boolean;
123
+ dropdown?: boolean;
124
+ Component?: React.FC<import("../button/Button").ButtonComponentProps>;
125
+ tooltip?: string | JSX.Element;
126
+ disableTooltip?: boolean;
127
+ tooltipProps?: import("@tippy.js/react").TippyProps;
128
+ preventsDefault?: boolean;
129
+ } & import("../themeProvider").ThemeContextProps & {
130
+ children?: React.ReactNode;
131
+ } & {
132
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
133
+ validateForm?: boolean;
134
+ disabledTitle?: string;
135
+ showValidationSummaryTooltip?: boolean;
136
+ } & React.RefAttributes<SubmitRaw>>;
137
+ export default Submit;
@@ -1,2 +1,2 @@
1
- export * from './Submit';
2
- export { default } from './Submit';
1
+ export * from './Submit';
2
+ export { default } from './Submit';
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import { FormValidationSummaryComponentProps } from './../../form/FormValidationSummary';
3
- export declare type SubmitValidationSummaryProps = {} & FormValidationSummaryComponentProps;
4
- declare const SubmitValidationSummary: React.FC<SubmitValidationSummaryProps>;
5
- export default SubmitValidationSummary;
1
+ import * as React from 'react';
2
+ import { FormValidationSummaryComponentProps } from './../../form/FormValidationSummary';
3
+ export type SubmitValidationSummaryProps = {} & FormValidationSummaryComponentProps;
4
+ declare const SubmitValidationSummary: React.FC<SubmitValidationSummaryProps>;
5
+ export default SubmitValidationSummary;