guestbell-forms 3.0.38 → 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.
- package/.env.bat +1 -0
- package/.eslintrc.json +21 -14
- package/build/components/base/input/BaseInput.d.ts +99 -99
- package/build/components/base/input/BaseInput.js +4 -0
- package/build/components/base/input/BaseInput.js.map +1 -1
- package/build/components/base/input/index.d.ts +1 -1
- package/build/components/bookingCalendar/BookingCalendar.d.ts +45 -46
- package/build/components/bookingCalendar/BookingCalendar.js +4 -5
- package/build/components/bookingCalendar/BookingCalendar.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarControls/BookingCalendarControls.d.ts +17 -17
- package/build/components/bookingCalendar/bookingCalendarControls/BookingCalendarControls.js +12 -12
- package/build/components/bookingCalendar/bookingCalendarControls/BookingCalendarControls.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarControls/classes.d.ts +9 -9
- package/build/components/bookingCalendar/bookingCalendarControls/index.d.ts +2 -2
- package/build/components/bookingCalendar/bookingCalendarDatePicker/BookingCalendarDatePicker.d.ts +13 -13
- package/build/components/bookingCalendar/bookingCalendarDatePicker/BookingCalendarDatePicker.js +3 -3
- package/build/components/bookingCalendar/bookingCalendarDatePicker/BookingCalendarDatePicker.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarDatePicker/classes.d.ts +5 -5
- package/build/components/bookingCalendar/bookingCalendarDatePicker/index.d.ts +2 -2
- package/build/components/bookingCalendar/bookingCalendarGrid/BookingCalendarGrid.d.ts +10 -10
- package/build/components/bookingCalendar/bookingCalendarGrid/classes.d.ts +5 -5
- package/build/components/bookingCalendar/bookingCalendarItem/BookingCalendarItem.d.ts +57 -57
- package/build/components/bookingCalendar/bookingCalendarItem/classes.d.ts +4 -4
- package/build/components/bookingCalendar/bookingCalendarItem/index.d.ts +2 -2
- package/build/components/bookingCalendar/bookingCalendarLane/BookingCalendarLane.d.ts +16 -16
- package/build/components/bookingCalendar/bookingCalendarLane/classes.d.ts +4 -4
- package/build/components/bookingCalendar/bookingCalendarLane/index.d.ts +2 -2
- package/build/components/bookingCalendar/bookingCalendarLaneHeader/BookingCalendarLaneHeader.d.ts +7 -7
- package/build/components/bookingCalendar/bookingCalendarLaneHeader/classes.d.ts +4 -4
- package/build/components/bookingCalendar/bookingCalendarLaneHeader/index.d.ts +1 -1
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeader.d.ts +11 -11
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeader.js +3 -3
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeader.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeaderRenderItem.d.ts +4 -5
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeaderRenderItem.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/classes.d.ts +5 -5
- package/build/components/bookingCalendar/bookingCalendarLanesHeader/index.d.ts +2 -2
- package/build/components/bookingCalendar/bookingCalendarRenderItem/BookingCalendarRenderItem.d.ts +9 -9
- package/build/components/bookingCalendar/bookingCalendarRenderItem/classes.d.ts +6 -6
- package/build/components/bookingCalendar/bookingCalendarRenderItem/index.d.ts +1 -1
- package/build/components/bookingCalendar/bookingCalendarSelection/BookingCalendarSelection.d.ts +38 -37
- package/build/components/bookingCalendar/bookingCalendarSelection/BookingCalendarSelection.js +2 -0
- package/build/components/bookingCalendar/bookingCalendarSelection/BookingCalendarSelection.js.map +1 -1
- package/build/components/bookingCalendar/bookingCalendarTimeAxis/BookingCalendarTimeAxis.d.ts +11 -11
- package/build/components/bookingCalendar/bookingCalendarTimeAxis/classes.d.ts +5 -5
- package/build/components/bookingCalendar/classes.d.ts +11 -11
- package/build/components/bookingCalendar/common.d.ts +23 -23
- package/build/components/bookingCalendar/common.js +3 -4
- package/build/components/bookingCalendar/common.js.map +1 -1
- package/build/components/bookingCalendar/index.d.ts +3 -3
- package/build/components/bookingCalendar/utils.d.ts +52 -50
- package/build/components/bookingCalendar/utils.js.map +1 -1
- package/build/components/button/Button.d.ts +81 -81
- package/build/components/button/Button.js +1 -0
- package/build/components/button/Button.js.map +1 -1
- package/build/components/button/index.d.ts +2 -2
- package/build/components/checkbox/Checkbox.d.ts +23 -23
- package/build/components/checkbox/index.d.ts +2 -2
- package/build/components/dropdown/Dropdown.d.ts +44 -44
- package/build/components/dropdown/index.d.ts +2 -2
- package/build/components/dynamicSubmit/DynamicSubmit.d.ts +54 -54
- package/build/components/dynamicSubmit/DynamicSubmit.js.map +1 -1
- package/build/components/dynamicSubmit/index.d.ts +2 -2
- package/build/components/externalValidationComponent/ExternalValidationComponent.d.ts +15 -15
- package/build/components/externalValidationComponent/index.d.ts +2 -2
- package/build/components/form/Form.d.ts +47 -47
- package/build/components/form/FormContext.d.ts +30 -30
- package/build/components/form/FormValidationSummary.d.ts +38 -38
- package/build/components/form/FormValidationSummary.js.map +1 -1
- package/build/components/form/index.d.ts +5 -5
- package/build/components/form/withFormContext.d.ts +3 -3
- package/build/components/inputGroup/InputGroup.d.ts +15 -17
- package/build/components/inputGroup/index.d.ts +2 -2
- package/build/components/inputHeader/InputHeader.d.ts +97 -97
- package/build/components/inputHeader/InputHeader.js.map +1 -1
- package/build/components/inputHeader/InputHeaderContext.d.ts +24 -24
- package/build/components/inputHeader/index.d.ts +2 -2
- package/build/components/inputHeader/withInputHeaderContext.d.ts +3 -3
- package/build/components/money/Money.d.ts +78 -78
- package/build/components/money/Money.js.map +1 -1
- package/build/components/money/index.d.ts +2 -2
- package/build/components/numberInput/NumberInput.d.ts +28 -28
- package/build/components/numberInput/index.d.ts +2 -2
- package/build/components/openingHours/openingHoursDay/OpeningHoursDay.d.ts +84 -84
- package/build/components/openingHours/openingHoursDay/OpeningHoursDay.js +3 -3
- package/build/components/openingHours/openingHoursDay/OpeningHoursDay.js.map +1 -1
- package/build/components/openingHours/openingHoursDay/index.d.ts +2 -2
- package/build/components/openingHours/openingHoursSpecial/OpeningHoursSpecial.d.ts +92 -90
- package/build/components/openingHours/openingHoursSpecial/OpeningHoursSpecial.js.map +1 -1
- package/build/components/openingHours/openingHoursSpecial/index.d.ts +2 -2
- package/build/components/openingHours/openingHoursWeek/OpeningHoursWeek.d.ts +109 -109
- package/build/components/openingHours/openingHoursWeek/index.d.ts +2 -2
- package/build/components/openingHours/utils/OpeningHoursUtil.d.ts +21 -21
- package/build/components/radio/Radio.d.ts +20 -20
- package/build/components/radio/index.d.ts +2 -2
- package/build/components/radioContainer/RadioContainer.d.ts +17 -16
- package/build/components/radioContainer/RadioContainer.js.map +1 -1
- package/build/components/radioContainer/index.d.ts +2 -2
- package/build/components/select/Select.d.ts +79 -79
- package/build/components/select/index.d.ts +2 -2
- package/build/components/submit/Submit.d.ts +137 -137
- package/build/components/submit/index.d.ts +2 -2
- package/build/components/submit/subComponents/SubmitValidationSummary.d.ts +5 -5
- package/build/components/tags/Tags.d.ts +92 -92
- package/build/components/tags/Tags.js +2 -0
- package/build/components/tags/Tags.js.map +1 -1
- package/build/components/tags/index.d.ts +2 -2
- package/build/components/tags/subComponents/TagsSuggestions.d.ts +34 -34
- package/build/components/tags/subComponents/TagsSuggestions.js +2 -2
- package/build/components/tags/subComponents/TagsSuggestions.js.map +1 -1
- package/build/components/text/Text.d.ts +31 -31
- package/build/components/text/index.d.ts +2 -2
- package/build/components/textArea/TextArea.d.ts +28 -28
- package/build/components/textArea/TextArea.js +1 -0
- package/build/components/textArea/TextArea.js.map +1 -1
- package/build/components/textArea/index.d.ts +2 -2
- package/build/components/themeProvider/ThemeContext.d.ts +9 -9
- package/build/components/themeProvider/ThemeProvider.d.ts +8 -7
- package/build/components/themeProvider/ThemeProvider.js.map +1 -1
- package/build/components/themeProvider/index.d.ts +4 -4
- package/build/components/themeProvider/withThemeContext.d.ts +4 -4
- package/build/components/time/Time.d.ts +32 -32
- package/build/components/time/Time.js +3 -3
- package/build/components/time/Time.js.map +1 -1
- package/build/components/time/index.d.ts +2 -2
- package/build/components/timeSpan/TimeSpan.d.ts +46 -46
- package/build/components/timeSpan/TimeSpan.js +6 -6
- package/build/components/timeSpan/TimeSpan.js.map +1 -1
- package/build/components/timeSpan/index.d.ts +2 -2
- package/build/components/utils/Guid.d.ts +2 -2
- package/build/components/utils/ShallowEqual.d.ts +16 -16
- package/build/components/utils/TimeUtil.d.ts +6 -6
- package/build/components/utils/Typescript.d.ts +5 -5
- package/build/dist/guestbell-forms.css +157 -171
- package/build/dist/guestbell-forms.css.map +1 -1
- package/build/dist/guestbell-forms.js +15 -24
- package/build/dist/guestbell-forms.js.map +1 -1
- package/build/dist/guestbell-forms.min.css +1 -1
- package/build/dist/guestbell-forms.min.js +1 -1
- package/build/dist/guestbell-forms.min.js.map +1 -1
- package/build/dist/report.html +3 -3
- package/build/index.d.ts +24 -24
- package/build/scss/components/bookingCalendar/bookingCalendar.scss +30 -7
- package/build/scss/components/inputHeader/inputHeader.scss +7 -1
- package/build/types/ElementOverrideProp.d.ts +3 -3
- package/build/types/Theme.d.ts +4 -4
- package/build/types/ThemeOverrides.d.ts +45 -45
- package/build/validators/EmailValidator.d.ts +4 -4
- package/build/validators/LatitudeValidator.d.ts +4 -4
- package/build/validators/LongitudeValidator.d.ts +4 -4
- package/build/validators/NumberValidator.d.ts +12 -12
- package/build/validators/NumberValidator.js +1 -0
- package/build/validators/NumberValidator.js.map +1 -1
- package/build/validators/UrlValidator.d.ts +4 -4
- package/build/validators/base.d.ts +4 -4
- package/build/validators/index.d.ts +6 -6
- package/package.json +130 -136
- package/src/lib/components/base/input/BaseInput.tsx +526 -0
- package/src/lib/components/base/input/index.tsx +1 -0
- package/src/lib/components/bookingCalendar/BookingCalendar.tsx +327 -0
- package/src/lib/components/bookingCalendar/bookingCalendarControls/BookingCalendarControls.tsx +249 -0
- package/src/lib/components/bookingCalendar/bookingCalendarControls/classes.ts +20 -0
- package/src/lib/components/bookingCalendar/bookingCalendarControls/index.ts +2 -0
- package/src/lib/components/bookingCalendar/bookingCalendarDatePicker/BookingCalendarDatePicker.tsx +104 -0
- package/src/lib/components/bookingCalendar/bookingCalendarDatePicker/classes.ts +9 -0
- package/src/lib/components/bookingCalendar/bookingCalendarDatePicker/index.ts +2 -0
- package/src/lib/components/bookingCalendar/bookingCalendarGrid/BookingCalendarGrid.tsx +56 -0
- package/src/lib/components/bookingCalendar/bookingCalendarGrid/classes.ts +9 -0
- package/src/lib/components/bookingCalendar/bookingCalendarItem/BookingCalendarItem.tsx +97 -0
- package/src/lib/components/bookingCalendar/bookingCalendarItem/classes.ts +7 -0
- package/src/lib/components/bookingCalendar/bookingCalendarItem/index.ts +2 -0
- package/src/lib/components/bookingCalendar/bookingCalendarLane/BookingCalendarLane.tsx +69 -0
- package/src/lib/components/bookingCalendar/bookingCalendarLane/classes.ts +7 -0
- package/src/lib/components/bookingCalendar/bookingCalendarLane/index.ts +2 -0
- package/src/lib/components/bookingCalendar/bookingCalendarLaneHeader/BookingCalendarLaneHeader.tsx +28 -0
- package/src/lib/components/bookingCalendar/bookingCalendarLaneHeader/classes.ts +7 -0
- package/src/lib/components/bookingCalendar/bookingCalendarLaneHeader/index.ts +1 -0
- package/src/lib/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeader.tsx +57 -0
- package/src/lib/components/bookingCalendar/bookingCalendarLanesHeader/BookingCalendarLanesHeaderRenderItem.tsx +53 -0
- package/src/lib/components/bookingCalendar/bookingCalendarLanesHeader/classes.ts +9 -0
- package/src/lib/components/bookingCalendar/bookingCalendarLanesHeader/index.ts +2 -0
- package/src/lib/components/bookingCalendar/bookingCalendarRenderItem/BookingCalendarRenderItem.tsx +57 -0
- package/src/lib/components/bookingCalendar/bookingCalendarRenderItem/classes.ts +11 -0
- package/src/lib/components/bookingCalendar/bookingCalendarRenderItem/index.ts +1 -0
- package/src/lib/components/bookingCalendar/bookingCalendarSelection/BookingCalendarSelection.tsx +217 -0
- package/src/lib/components/bookingCalendar/bookingCalendarTimeAxis/BookingCalendarTimeAxis.tsx +53 -0
- package/src/lib/components/bookingCalendar/bookingCalendarTimeAxis/classes.ts +9 -0
- package/src/lib/components/bookingCalendar/classes.ts +21 -0
- package/src/lib/components/bookingCalendar/common.ts +61 -0
- package/src/lib/components/bookingCalendar/index.ts +3 -0
- package/src/lib/components/bookingCalendar/utils.ts +348 -0
- package/src/lib/components/button/Button.tsx +193 -0
- package/src/lib/components/button/index.tsx +2 -0
- package/src/lib/components/checkbox/Checkbox.tsx +178 -0
- package/src/lib/components/checkbox/index.tsx +2 -0
- package/src/lib/components/dropdown/Dropdown.tsx +135 -0
- package/src/lib/components/dropdown/index.tsx +2 -0
- package/src/lib/components/dynamicSubmit/DynamicSubmit.tsx +153 -0
- package/src/lib/components/dynamicSubmit/index.tsx +2 -0
- package/src/lib/components/externalValidationComponent/ExternalValidationComponent.tsx +78 -0
- package/src/lib/components/externalValidationComponent/index.tsx +2 -0
- package/src/lib/components/form/Form.tsx +276 -0
- package/src/lib/components/form/FormContext.ts +49 -0
- package/src/lib/components/form/FormValidationSummary.tsx +122 -0
- package/src/lib/components/form/index.tsx +5 -0
- package/src/lib/components/form/withFormContext.tsx +20 -0
- package/src/lib/components/inputGroup/InputGroup.tsx +60 -0
- package/src/lib/components/inputGroup/index.tsx +2 -0
- package/src/lib/components/inputHeader/InputHeader.tsx +448 -0
- package/src/lib/components/inputHeader/InputHeaderContext.ts +42 -0
- package/src/lib/components/inputHeader/index.tsx +2 -0
- package/src/lib/components/inputHeader/withInputHeaderContext.tsx +24 -0
- package/src/lib/components/money/Money.tsx +298 -0
- package/src/lib/components/money/index.tsx +2 -0
- package/src/lib/components/numberInput/NumberInput.tsx +186 -0
- package/src/lib/components/numberInput/index.tsx +2 -0
- package/src/lib/components/openingHours/openingHoursDay/OpeningHoursDay.tsx +394 -0
- package/src/lib/components/openingHours/openingHoursDay/index.tsx +2 -0
- package/src/lib/components/openingHours/openingHoursSpecial/OpeningHoursSpecial.tsx +227 -0
- package/src/lib/components/openingHours/openingHoursSpecial/index.tsx +2 -0
- package/src/lib/components/openingHours/openingHoursWeek/OpeningHoursWeek.tsx +283 -0
- package/src/lib/components/openingHours/openingHoursWeek/index.tsx +2 -0
- package/src/lib/components/openingHours/utils/OpeningHoursUtil.tsx +111 -0
- package/src/lib/components/radio/Radio.tsx +87 -0
- package/src/lib/components/radio/index.tsx +2 -0
- package/src/lib/components/radioContainer/RadioContainer.tsx +50 -0
- package/src/lib/components/radioContainer/index.tsx +2 -0
- package/src/lib/components/select/Select.tsx +335 -0
- package/src/lib/components/select/index.tsx +2 -0
- package/src/lib/components/submit/Submit.tsx +117 -0
- package/src/lib/components/submit/index.tsx +2 -0
- package/src/lib/components/submit/subComponents/SubmitValidationSummary.tsx +55 -0
- package/src/lib/components/tags/Tags.tsx +702 -0
- package/src/lib/components/tags/index.tsx +2 -0
- package/src/lib/components/tags/subComponents/TagsSuggestions.tsx +150 -0
- package/src/lib/components/text/Text.tsx +200 -0
- package/src/lib/components/text/index.tsx +2 -0
- package/src/lib/components/textArea/TextArea.tsx +109 -0
- package/src/lib/components/textArea/index.tsx +2 -0
- package/src/lib/components/themeProvider/ThemeContext.ts +16 -0
- package/src/lib/components/themeProvider/ThemeProvider.tsx +21 -0
- package/src/lib/components/themeProvider/index.tsx +4 -0
- package/src/lib/components/themeProvider/withThemeContext.tsx +30 -0
- package/src/lib/components/time/Time.tsx +296 -0
- package/src/lib/components/time/index.tsx +2 -0
- package/src/lib/components/timeSpan/TimeSpan.tsx +378 -0
- package/src/lib/components/timeSpan/index.tsx +2 -0
- package/src/lib/components/utils/Guid.ts +9 -0
- package/src/lib/components/utils/ShallowEqual.ts +75 -0
- package/src/lib/components/utils/TimeUtil.ts +22 -0
- package/src/lib/components/utils/Typescript.ts +11 -0
- package/src/lib/declarations/import.d.ts +1 -0
- package/src/lib/index.ts +24 -0
- package/src/lib/scss/components/base/index.scss +1 -0
- package/src/lib/scss/components/base/input/index.scss +1 -0
- package/src/lib/scss/components/base/input/input.scss +237 -0
- package/src/lib/scss/components/bookingCalendar/bookingCalendar.scss +272 -0
- package/src/lib/scss/components/bookingCalendar/index.scss +1 -0
- package/src/lib/scss/components/button/buttons.scss +161 -0
- package/src/lib/scss/components/button/index.scss +1 -0
- package/src/lib/scss/components/checkbox/checkbox.scss +115 -0
- package/src/lib/scss/components/checkbox/index.scss +1 -0
- package/src/lib/scss/components/dropdown/dropdown.scss +111 -0
- package/src/lib/scss/components/dropdown/index.scss +1 -0
- package/src/lib/scss/components/dynamicSubmit/dynamicSubmit.scss +1 -0
- package/src/lib/scss/components/dynamicSubmit/index.scss +1 -0
- package/src/lib/scss/components/form/form.scss +1 -0
- package/src/lib/scss/components/form/formValidationSummary.scss +55 -0
- package/src/lib/scss/components/form/index.scss +2 -0
- package/src/lib/scss/components/index.scss +21 -0
- package/src/lib/scss/components/inputGroup/index.scss +1 -0
- package/src/lib/scss/components/inputGroup/inputGroup.scss +67 -0
- package/src/lib/scss/components/inputHeader/index.scss +1 -0
- package/src/lib/scss/components/inputHeader/inputHeader.scss +132 -0
- package/src/lib/scss/components/money/index.scss +1 -0
- package/src/lib/scss/components/money/money.scss +51 -0
- package/src/lib/scss/components/numberInput/index.scss +1 -0
- package/src/lib/scss/components/numberInput/numberInput.scss +116 -0
- package/src/lib/scss/components/openingHours/index.scss +3 -0
- package/src/lib/scss/components/openingHours/openingHoursDay/index.scss +1 -0
- package/src/lib/scss/components/openingHours/openingHoursDay/openingHoursDay.scss +127 -0
- package/src/lib/scss/components/openingHours/openingHoursSpecial/index.scss +1 -0
- package/src/lib/scss/components/openingHours/openingHoursSpecial/openingHoursSpecial.scss +93 -0
- package/src/lib/scss/components/openingHours/openingHoursWeek/index.scss +1 -0
- package/src/lib/scss/components/openingHours/openingHoursWeek/openingHoursWeek.scss +23 -0
- package/src/lib/scss/components/radio/index.scss +1 -0
- package/src/lib/scss/components/radio/radio.scss +68 -0
- package/src/lib/scss/components/radioContainer/index.scss +1 -0
- package/src/lib/scss/components/radioContainer/radioContainer.scss +15 -0
- package/src/lib/scss/components/select/index.scss +1 -0
- package/src/lib/scss/components/select/select.scss +64 -0
- package/src/lib/scss/components/submit/index.scss +1 -0
- package/src/lib/scss/components/submit/submitValidationSummary.scss +35 -0
- package/src/lib/scss/components/tags/index.scss +1 -0
- package/src/lib/scss/components/tags/tags.scss +128 -0
- package/src/lib/scss/components/text/index.scss +1 -0
- package/src/lib/scss/components/text/text.scss +42 -0
- package/src/lib/scss/components/textArea/index.scss +1 -0
- package/src/lib/scss/components/textArea/textArea.scss +32 -0
- package/src/lib/scss/components/time/index.scss +1 -0
- package/src/lib/scss/components/time/time.scss +111 -0
- package/src/lib/scss/components/timeSpan/index.scss +1 -0
- package/src/lib/scss/components/timeSpan/timeSpan.scss +115 -0
- package/src/lib/scss/index.scss +8 -0
- package/src/lib/scss/styles/base.scss +7 -0
- package/src/lib/scss/styles/index.scss +2 -0
- package/src/lib/scss/styles/react-tippy.scss +4 -0
- package/src/lib/scss/variables/_buttons.scss +6 -0
- package/src/lib/scss/variables/_colors.scss +1 -0
- package/src/lib/scss/variables/_common.scss +12 -0
- package/src/lib/tsconfig.json +19 -0
- package/src/lib/types/ElementOverrideProp.ts +3 -0
- package/src/lib/types/Theme.ts +5 -0
- package/src/lib/types/ThemeOverrides.ts +46 -0
- package/src/lib/validators/EmailValidator.ts +15 -0
- package/src/lib/validators/LatitudeValidator.ts +25 -0
- package/src/lib/validators/LongitudeValidator.ts +25 -0
- package/src/lib/validators/NumberValidator.ts +50 -0
- package/src/lib/validators/UrlValidator.ts +20 -0
- package/src/lib/validators/base.ts +15 -0
- package/src/lib/validators/index.ts +6 -0
- package/src/stories/Basic.stories.ts +17 -0
- package/src/stories/Basic.tsx +1065 -0
- package/src/stories/Schedule.stories.ts +16 -0
- package/src/stories/Schedule.tsx +73 -0
- package/src/stories/ValidationPage.tsx +417 -0
- package/tsconfig.json +9 -22
- package/typedoc.json +6 -0
- package/webpack/webpack.config.base.js +139 -0
- package/webpack/webpack.config.dev.js +78 -0
- package/webpack/webpack.config.gh-pages.js +78 -0
- package/webpack/webpack.config.js +21 -0
- package/webpack/webpack.config.min.js +100 -0
- package/.vscode/launch.json +0 -15
- package/.vscode/settings.json +0 -27
- 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":";;;;;;AACA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AAAqE,SAAAE,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAT,wBAAAK,GAAA,EAAAI,WAAA,SAAAA,WAAA,IAAAJ,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAQ,KAAA,GAAAL,wBAAA,CAAAC,WAAA,OAAAI,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAT,GAAA,YAAAQ,KAAA,CAAAE,GAAA,CAAAV,GAAA,SAAAW,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAhB,GAAA,QAAAgB,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAnB,GAAA,EAAAgB,GAAA,SAAAI,IAAA,GAAAR,qBAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAf,GAAA,EAAAgB,GAAA,cAAAI,IAAA,KAAAA,IAAA,CAAAV,GAAA,IAAAU,IAAA,CAAAC,GAAA,KAAAR,MAAA,CAAAC,cAAA,CAAAH,MAAA,EAAAK,GAAA,EAAAI,IAAA,YAAAT,MAAA,CAAAK,GAAA,IAAAhB,GAAA,CAAAgB,GAAA,SAAAL,MAAA,CAAAT,OAAA,GAAAF,GAAA,MAAAQ,KAAA,IAAAA,KAAA,CAAAa,GAAA,CAAArB,GAAA,EAAAW,MAAA,YAAAA,MAAA;AAAA,SAAAW,SAAA,IAAAA,QAAA,GAAAT,MAAA,CAAAU,MAAA,GAAAV,MAAA,CAAAU,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAV,GAAA,IAAAa,MAAA,QAAAhB,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAU,MAAA,EAAAb,GAAA,KAAAS,MAAA,CAAAT,GAAA,IAAAa,MAAA,CAAAb,GAAA,gBAAAS,MAAA,YAAAH,QAAA,CAAAQ,KAAA,OAAAH,SAAA,KAHrE;AAMA;;
|
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
|
10
|
-
export
|
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
|
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;
|