intelicoreact 1.5.38 → 1.5.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/dist/Atomic/FormElements/ActionAlert/ActionAlert.js +44 -93
- package/dist/Atomic/FormElements/ActionAlert/ActionAlert.scss +13 -23
- package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.js +38 -43
- package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.scss +10 -20
- package/dist/Atomic/FormElements/Calendar/Calendar.js +164 -243
- package/dist/Atomic/FormElements/Calendar/Calendar.scss +0 -1
- package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.js +51 -60
- package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.scss +15 -25
- package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.js +39 -47
- package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.scss +2 -5
- package/dist/Atomic/FormElements/Datepicker/Datepicker.js +308 -410
- package/dist/Atomic/FormElements/Datepicker/components/Calendar.js +109 -169
- package/dist/Atomic/FormElements/Dropdown/Dropdown.js +527 -680
- package/dist/Atomic/FormElements/Dropdown/Dropdown.scss +59 -61
- package/dist/Atomic/FormElements/Dropdown/components/DropdownLoader.js +15 -28
- package/dist/Atomic/FormElements/DropdownLiveSearch/DropdownLiveSearch.js +378 -498
- package/dist/Atomic/FormElements/DropdownLiveSearch/DropdownLiveSearch.scss +32 -36
- package/dist/Atomic/FormElements/FileLoader/FileLoader.js +70 -103
- package/dist/Atomic/FormElements/FileLoader/FileLoader.scss +2 -0
- package/dist/Atomic/FormElements/FileLoader/partial/LoadZone.js +91 -138
- package/dist/Atomic/FormElements/FileLoader/partial/LoadedContent.js +55 -109
- package/dist/Atomic/FormElements/FileLoaderDescription/FileLoaderDescription.js +193 -254
- package/dist/Atomic/FormElements/FileLoaderDescription/FileLoaderDescription.scss +16 -19
- package/dist/Atomic/FormElements/FileLoaderLocal/FileLoaderLocal.js +140 -156
- package/dist/Atomic/FormElements/FileLoaderLocal/FileLoaderLocal.scss +4 -8
- package/dist/Atomic/FormElements/FileLoaderLocalGroup/FileLoaderLocalGroup.js +156 -222
- package/dist/Atomic/FormElements/FormattedRawSSN/FormattedRawSSN.js +114 -158
- package/dist/Atomic/FormElements/FormattedRawSSN/FormattedRawSSN_old.js +92 -151
- package/dist/Atomic/FormElements/Input/Input.js +330 -340
- package/dist/Atomic/FormElements/Input/Input.scss +1 -1
- package/dist/Atomic/FormElements/InputCalendar/InputCalendar.js +110 -156
- package/dist/Atomic/FormElements/InputColor/InputColor.js +58 -57
- package/dist/Atomic/FormElements/InputCurrency/InputCurrency.js +145 -188
- package/dist/Atomic/FormElements/InputDateRange/InputDateRange.js +228 -294
- package/dist/Atomic/FormElements/InputDateRange/InputDateRange.scss +2 -1
- package/dist/Atomic/FormElements/InputDateRange/components/DateInput.js +56 -55
- package/dist/Atomic/FormElements/InputDateRange/components/Datepicker.js +536 -645
- package/dist/Atomic/FormElements/InputDateRange/components/OpenedPart.js +190 -220
- package/dist/Atomic/FormElements/InputDateRange/components/SelectItem.js +31 -33
- package/dist/Atomic/FormElements/InputDateRange/dependencies.js +169 -247
- package/dist/Atomic/FormElements/InputLink/InputLink.js +71 -118
- package/dist/Atomic/FormElements/InputMask/InputCarretPosition.js +38 -47
- package/dist/Atomic/FormElements/InputMask/InputMask.js +1053 -938
- package/dist/Atomic/FormElements/InputMask/config.js +15 -16
- package/dist/Atomic/FormElements/InputMask/functions.js +51 -77
- package/dist/Atomic/FormElements/InputMask2/InputMask2.js +592 -569
- package/dist/Atomic/FormElements/InputMask2/config.js +15 -16
- package/dist/Atomic/FormElements/InputMask2/functions.js +51 -77
- package/dist/Atomic/FormElements/InputMask3/InputMask3.js +679 -651
- package/dist/Atomic/FormElements/InputMask3/config.js +15 -16
- package/dist/Atomic/FormElements/InputMask3/functions.js +51 -77
- package/dist/Atomic/FormElements/InputWithAction/InputWithAction.js +88 -127
- package/dist/Atomic/FormElements/InputWithAction/InputWithAction.scss +1 -1
- package/dist/Atomic/FormElements/InputsRow/InputsRow.js +111 -182
- package/dist/Atomic/FormElements/Label/Label.js +55 -82
- package/dist/Atomic/FormElements/Label/Label.scss +8 -18
- package/dist/Atomic/FormElements/MobileCalendar/MobileCalendar.js +382 -437
- package/dist/Atomic/FormElements/MobileCalendar/MobileCalendar.scss +3 -3
- package/dist/Atomic/FormElements/MultiSelect/MultiSelect.js +50 -88
- package/dist/Atomic/FormElements/NumericInput/NumericInput.js +264 -314
- package/dist/Atomic/FormElements/NumericInput/NumericInput.scss +1 -1
- package/dist/Atomic/FormElements/RadioGroup/RadioGroup.js +51 -93
- package/dist/Atomic/FormElements/RadioGroupWithInput/RadioGroupWithInput.js +55 -69
- package/dist/Atomic/FormElements/RadioInput/RadioInput.js +45 -51
- package/dist/Atomic/FormElements/RadioInput/RadioInput.scss +4 -4
- package/dist/Atomic/FormElements/RadioRowSwitcher/RadioRowSwitcher.js +40 -53
- package/dist/Atomic/FormElements/RangeCalendar/RangeCalendar.js +120 -169
- package/dist/Atomic/FormElements/RangeInputs/RangeInputs.js +141 -195
- package/dist/Atomic/FormElements/RangeList/RangeList.js +140 -199
- package/dist/Atomic/FormElements/RangeList/RangeList.scss +2 -2
- package/dist/Atomic/FormElements/RangeList/partial/AnyOuterClass.scss +4 -1
- package/dist/Atomic/FormElements/RangeList/partial/RangeListRow.js +44 -57
- package/dist/Atomic/FormElements/RangeSlider/RangeSlider.js +377 -463
- package/dist/Atomic/FormElements/RangeSlider/RangeSlider.scss +1 -1
- package/dist/Atomic/FormElements/RangeSlider2/RangeSlider2.js +759 -760
- package/dist/Atomic/FormElements/RangeSlider2/RangeSlider2.scss +9 -9
- package/dist/Atomic/FormElements/SwitchableRow/SwitchableRow.js +31 -36
- package/dist/Atomic/FormElements/SwitchableRow/SwitchableRow.scss +2 -0
- package/dist/Atomic/FormElements/SwitchableRow/partial/AnyOuterClass.scss +1 -1
- package/dist/Atomic/FormElements/Switcher/Switcher.js +44 -52
- package/dist/Atomic/FormElements/Switcher/Switcher.scss +3 -3
- package/dist/Atomic/FormElements/SwitcherCheckbox/SwitcherCheckbox.js +44 -43
- package/dist/Atomic/FormElements/SwitcherCheckbox/SwitcherCheckbox.scss +2 -0
- package/dist/Atomic/FormElements/SwitcherHide/SwitcherHide.js +36 -37
- package/dist/Atomic/FormElements/SwitcherHide/SwitcherHide.scss +2 -0
- package/dist/Atomic/FormElements/SwitcherRadio/SwitcherRadio.js +56 -93
- package/dist/Atomic/FormElements/SwitcherRadio/SwitcherRadio.scss +2 -0
- package/dist/Atomic/FormElements/SwitcherRange/SwitcherRange.js +53 -86
- package/dist/Atomic/FormElements/SwitcherRange/SwitcherRange.scss +2 -0
- package/dist/Atomic/FormElements/SwitcherRangeList/SwitcherRangeList.js +54 -46
- package/dist/Atomic/FormElements/SwitcherRangeList/partial/AnyOuterClass.scss +1 -1
- package/dist/Atomic/FormElements/SwitcherTagsDropdown/SwitcherTagsDropdown.js +102 -172
- package/dist/Atomic/FormElements/SwitcherTagsDropdown/SwitcherTagsDropdown.scss +6 -4
- package/dist/Atomic/FormElements/SwitcherTagsDropdown/partial/States.js +154 -209
- package/dist/Atomic/FormElements/SwitcherTextarea/SwitcherTextarea.js +56 -59
- package/dist/Atomic/FormElements/SwitcherTextarea/SwitcherTextarea.scss +2 -2
- package/dist/Atomic/FormElements/TagListToDropdown/TagListToDropdown.js +112 -140
- package/dist/Atomic/FormElements/TagsDropdown/TagsDropdown.js +919 -1035
- package/dist/Atomic/FormElements/TagsDropdown/TagsDropdown.scss +119 -155
- package/dist/Atomic/FormElements/Text/Text.js +97 -88
- package/dist/Atomic/FormElements/TextSwitcher/TextSwitcher.js +35 -44
- package/dist/Atomic/FormElements/TextSwitcher/TextSwitcher.scss +8 -8
- package/dist/Atomic/FormElements/Textarea/Textarea.js +64 -102
- package/dist/Atomic/FormElements/Textarea/Textarea.scss +8 -4
- package/dist/Atomic/FormElements/TieredCheckboxes/TieredCheckboxes.js +133 -172
- package/dist/Atomic/FormElements/TieredCheckboxes/partial/AccordionWithCheckbox.js +49 -48
- package/dist/Atomic/FormElements/TimeRange/TimeRange.js +63 -114
- package/dist/Atomic/FormElements/TimeRange/TimeRange.scss +3 -9
- package/dist/Atomic/FormElements/UserContacts/UserContacts.js +122 -179
- package/dist/Atomic/FormElements/UserContacts/UserContacts.scss +5 -10
- package/dist/Atomic/FormElements/UserContacts/partial/AnyOuterClass.scss +1 -1
- package/dist/Atomic/FormElements/VariantsListRadio/VariantsListRadio.js +65 -101
- package/dist/Atomic/FormElements/VariantsListRadio/VariantsListRadio.scss +12 -4
- package/dist/Atomic/FormElements/VariantsListRadio/partials/VariantsListRadioItem.js +71 -80
- package/dist/Atomic/FormElements/WidgetPseudoTable/WidgetPseudoTable.js +64 -79
- package/dist/Atomic/FormElements/WidgetPseudoTable/WidgetPseudoTable.scss +3 -1
- package/dist/Atomic/FormElements/WidgetPseudoTable/partial/AnyOuterClass.scss +1 -1
- package/dist/Atomic/FormElements/WidgetPseudoTable/partial/constructor.js +34 -42
- package/dist/Atomic/FormElements/WidgetWithSwitchableRows/WidgetWithSwitchableRows.js +83 -102
- package/dist/Atomic/FormElements/WidgetWithSwitchableRows/WidgetWithSwitchableRows.scss +3 -1
- package/dist/Atomic/FormElements/WidgetWithSwitchableRows/partial/AnyOuterClass.scss +1 -1
- package/dist/Atomic/FormElements/WidgetWithSwitchableRows/partial/constructor.js +35 -42
- package/dist/Atomic/Layout/Header/Header.js +80 -148
- package/dist/Atomic/Layout/Header/Header.scss +1 -1
- package/dist/Atomic/Layout/MainMenu/MainMenu.js +133 -213
- package/dist/Atomic/Layout/MainMenu/MainMenu.scss +9 -9
- package/dist/Atomic/Layout/Spinner/Spinner.js +22 -39
- package/dist/Atomic/Layout/Spinner/Spinner.scss +16 -32
- package/dist/Atomic/UI/Accordion/Accordion.js +52 -102
- package/dist/Atomic/UI/Accordion/Accordion.scss +14 -25
- package/dist/Atomic/UI/Accordion/AccordionItem.js +102 -170
- package/dist/Atomic/UI/AccordionTable/AccordionTable.js +167 -251
- package/dist/Atomic/UI/AccordionText/AccordionText.js +54 -105
- package/dist/Atomic/UI/AccordionText/AccordionText.scss +9 -22
- package/dist/Atomic/UI/AdvancedTag/AdvTag.js +135 -207
- package/dist/Atomic/UI/AdvancedTag/AdvancedTags.js +46 -100
- package/dist/Atomic/UI/AdvancedTag/AdvancedTags.scss +2 -2
- package/dist/Atomic/UI/Alert/Alert.js +63 -116
- package/dist/Atomic/UI/Alert/Alert.scss +2 -2
- package/dist/Atomic/UI/Arrow/Arrow.js +110 -163
- package/dist/Atomic/UI/Box/Box.js +37 -37
- package/dist/Atomic/UI/Box/Box.scss +11 -11
- package/dist/Atomic/UI/Button/Button.js +41 -43
- package/dist/Atomic/UI/ButtonsBar/ButtonsBar.js +67 -61
- package/dist/Atomic/UI/Chart/Chart.js +96 -170
- package/dist/Atomic/UI/Chart/partial/Chart.constants.js +74 -142
- package/dist/Atomic/UI/Chart/partial/ChartTypeSwitcherIcon/ChartTypeSwitcherIcon.js +77 -91
- package/dist/Atomic/UI/Chart/partial/datasetSetters.js +117 -120
- package/dist/Atomic/UI/Chart/partial/optionsConstructor.js +292 -314
- package/dist/Atomic/UI/Chart/partial/optionsSetters.js +39 -54
- package/dist/Atomic/UI/Chart/partial/utils.js +33 -56
- package/dist/Atomic/UI/CircleProgressBar/CircleProgressBar.js +88 -145
- package/dist/Atomic/UI/DateTime/DateTime.js +37 -89
- package/dist/Atomic/UI/DateTime/DateTime.scss +2 -2
- package/dist/Atomic/UI/DateTime/partial/AnyOuterClass.scss +1 -1
- package/dist/Atomic/UI/DebugContainer/DebugContainer.js +31 -93
- package/dist/Atomic/UI/DebugContainer/useDebugContainer.js +18 -66
- package/dist/Atomic/UI/DoubleString/DoubleString.js +77 -134
- package/dist/Atomic/UI/DoubleString/DoubleString.scss +4 -6
- package/dist/Atomic/UI/DoubleString/partial/AnyOuterClass.scss +1 -1
- package/dist/Atomic/UI/DynamicIcon/DynamicIcon.js +22 -65
- package/dist/Atomic/UI/ExampleChartIntegration/ExampleChartIntegration.js +170 -251
- package/dist/Atomic/UI/ExampleChartIntegration/partial/AnyOuterClass.scss +1 -1
- package/dist/Atomic/UI/ExampleChartIntegration/partial/utils.js +84 -109
- package/dist/Atomic/UI/Hint/Hint.js +202 -243
- package/dist/Atomic/UI/Hint/Hint.scss +3 -5
- package/dist/Atomic/UI/Hint/partials/_utils.js +42 -54
- package/dist/Atomic/UI/Modal/Modal.js +172 -171
- package/dist/Atomic/UI/Modal/Modal.scss +69 -91
- package/dist/Atomic/UI/Modal/ModalHOC.js +38 -92
- package/dist/Atomic/UI/Modal/ModalMobile.scss +14 -24
- package/dist/Atomic/UI/Modal/partials/ModalFooter.js +18 -68
- package/dist/Atomic/UI/Modal/partials/ModalTitle.js +38 -107
- package/dist/Atomic/UI/Modal/partials/useMobileModal.js +153 -130
- package/dist/Atomic/UI/MonoAccordion/MonoAccordion.js +62 -118
- package/dist/Atomic/UI/MonoAccordion/MonoAccordion.scss +25 -163
- package/dist/Atomic/UI/NavLine/NavLine.js +273 -306
- package/dist/Atomic/UI/NavLine/NavLine.scss +155 -195
- package/dist/Atomic/UI/NavLine/Tabs.js +115 -0
- package/dist/Atomic/UI/PageTitle/PageTitle.js +52 -73
- package/dist/Atomic/UI/PageTitle/PageTitle.scss +14 -52
- package/dist/Atomic/UI/PieChart/PieChart.js +42 -105
- package/dist/Atomic/UI/PieChart/PieChart.scss +11 -86
- package/dist/Atomic/UI/Price/Price.js +20 -27
- package/dist/Atomic/UI/PriceRange/PriceRange.js +18 -40
- package/dist/Atomic/UI/ProgressLine/ProgressLine.js +73 -92
- package/dist/Atomic/UI/ProgressLine/ProgressLine.scss +71 -85
- package/dist/Atomic/UI/Status/Status.js +51 -62
- package/dist/Atomic/UI/Status/Status.scss +29 -48
- package/dist/Atomic/UI/Table/Partials/TdCell.js +88 -126
- package/dist/Atomic/UI/Table/Partials/TdHeader.js +39 -58
- package/dist/Atomic/UI/Table/Partials/TdRow.js +73 -124
- package/dist/Atomic/UI/Table/Partials/TdTitle.js +45 -113
- package/dist/Atomic/UI/Table/Table.js +43 -61
- package/dist/Atomic/UI/Table/Table.scss +3 -0
- package/dist/Atomic/UI/Table/TdTypes/TdActions.js +64 -108
- package/dist/Atomic/UI/Table/TdTypes/TdPriority.js +31 -44
- package/dist/Atomic/UI/Table/TdTypes/TdRange.js +10 -24
- package/dist/Atomic/UI/Table/TdTypes/TdWeight.js +48 -59
- package/dist/Atomic/UI/Tag/Tag.js +113 -157
- package/dist/Atomic/UI/Tag/Tag.scss +48 -102
- package/dist/Atomic/UI/TagList/TagList.js +179 -223
- package/dist/Atomic/UI/TagList/TagList.scss +9 -13
- package/dist/Atomic/UI/UserBox/UserBox.js +56 -80
- package/dist/Atomic/UI/UserBox/UserBox.scss +21 -45
- package/dist/Atomic/UI/WizardStepper/constructor.js +89 -127
- package/dist/Atomic/UI/WizardStepper/index.js +6 -14
- package/dist/Atomic/UI/WizardStepper/ui/StateIcon/StateIcon.js +51 -53
- package/dist/Atomic/UI/WizardStepper/ui/StateIcon/StateIcon.scss +7 -11
- package/dist/Atomic/UI/WizardStepper/ui/StateIcon/index.js +5 -9
- package/dist/Atomic/UI/WizardStepper/ui/StepRow/StepRow.js +67 -84
- package/dist/Atomic/UI/WizardStepper/ui/StepRow/StepRow.scss +7 -13
- package/dist/Atomic/UI/WizardStepper/ui/StepRow/index.js +6 -14
- package/dist/Atomic/UI/WizardStepper/ui/StepWrapper/StepWrapper.js +45 -50
- package/dist/Atomic/UI/WizardStepper/ui/StepWrapper/StepWrapper.scss +18 -24
- package/dist/Atomic/UI/WizardStepper/ui/StepWrapper/index.js +6 -14
- package/dist/Atomic/UI/WizardStepper/ui/icons.js +106 -138
- package/dist/Atomic/UI/WizardStepper/ui/index.js +6 -14
- package/dist/Classes/AbortableFetch.js +326 -394
- package/dist/Classes/AnimatedHandler.js +44 -31
- package/dist/Classes/RESTAPI/index.js +173 -131
- package/dist/Classes/RESTAPI/partials/AbortableFetch.js +334 -399
- package/dist/Classes/RESTAPI/partials/ApiBase.js +30 -30
- package/dist/Classes/RESTAPI/partials/ApiRequestCreators.js +88 -107
- package/dist/Classes/RESTAPI/partials/ApiUtils.js +166 -144
- package/dist/Classes/RESTAPI/partials/CredentialsProcessing.js +204 -180
- package/dist/Classes/RESTAPI/partials/Utils.js +83 -80
- package/dist/Classes/RESTAPI/partials/_outerDependencies.js +8 -16
- package/dist/Classes/RESTAPI/partials/_utils.js +125 -139
- package/dist/Constants/index.constants.js +22 -102
- package/dist/Functions/Portal.js +23 -67
- package/dist/Functions/animatingFunctions/getAnimatedHandler.js +1 -1
- package/dist/Functions/customEventListener.js +50 -48
- package/dist/Functions/dateTime.js +177 -130
- package/dist/Functions/fieldValueFormatters.js +346 -275
- package/dist/Functions/hooks/useFormFieldsChangesManager.js +96 -125
- package/dist/Functions/locale/createTranslator.js +27 -29
- package/dist/Functions/operations.js +102 -129
- package/dist/Functions/presets/inputMaskPresets.js +99 -88
- package/dist/Functions/presets/inputPresets.js +35 -41
- package/dist/Functions/presets/mobileKeyboardTypesPresets.js +49 -30
- package/dist/Functions/schemas.js +20 -78
- package/dist/Functions/useBodyScrollLock.js +15 -21
- package/dist/Functions/useClickOutside.js +16 -21
- package/dist/Functions/useDebounce.js +21 -62
- package/dist/Functions/useFieldFocus.js +79 -83
- package/dist/Functions/useFormTools/form-drivers/ArrayWithObjects.js +46 -39
- package/dist/Functions/useFormTools/form-drivers/ObjectWithIterableObjects.js +137 -132
- package/dist/Functions/useFormTools/form-drivers/ObjectWithNamedKeyObjects.js +73 -63
- package/dist/Functions/useFormTools/functions/General.js +129 -117
- package/dist/Functions/useFormTools/functions/RenderFields.js +85 -75
- package/dist/Functions/useFormTools/functions/usePrevious.js +10 -16
- package/dist/Functions/useFormTools/index.js +709 -647
- package/dist/Functions/useInputHighlightError.js +53 -104
- package/dist/Functions/useIsMobile.js +26 -0
- package/dist/Functions/useKeyPress/useHandleKeyPress.js +33 -40
- package/dist/Functions/useKeyPress/useKeyPress.js +39 -48
- package/dist/Functions/useLocalStorage.js +31 -38
- package/dist/Functions/useLocationParams.js +24 -31
- package/dist/Functions/useMediaQuery.js +10 -14
- package/dist/Functions/useMetaInfo.js +35 -45
- package/dist/Functions/useMouseUpOutside.js +15 -21
- package/dist/Functions/useOnlineStatus.js +21 -25
- package/dist/Functions/usePasswordChecker.js +111 -183
- package/dist/Functions/usePrevious.js +10 -16
- package/dist/Functions/useResize.js +28 -32
- package/dist/Functions/useScrollTo.js +16 -26
- package/dist/Functions/useToggle.js +16 -20
- package/dist/Functions/utils.js +469 -493
- package/dist/Molecular/CustomIcons/components/AffiliateNetworks.js +28 -75
- package/dist/Molecular/CustomIcons/components/AlertCircle.js +28 -77
- package/dist/Molecular/CustomIcons/components/AppStore.js +32 -84
- package/dist/Molecular/CustomIcons/components/Arrow.js +38 -93
- package/dist/Molecular/CustomIcons/components/ArrowDown.js +20 -63
- package/dist/Molecular/CustomIcons/components/ArrowLeft.js +23 -71
- package/dist/Molecular/CustomIcons/components/ArrowRight.js +23 -71
- package/dist/Molecular/CustomIcons/components/ArrowUp.js +20 -63
- package/dist/Molecular/CustomIcons/components/Bell.js +18 -61
- package/dist/Molecular/CustomIcons/components/Button.js +18 -61
- package/dist/Molecular/CustomIcons/components/Campaigns.js +19 -62
- package/dist/Molecular/CustomIcons/components/Check.js +19 -62
- package/dist/Molecular/CustomIcons/components/Check2.js +18 -61
- package/dist/Molecular/CustomIcons/components/ChevronDown.js +18 -61
- package/dist/Molecular/CustomIcons/components/ChevronDownDisabled.js +18 -61
- package/dist/Molecular/CustomIcons/components/ChevronLeft.js +18 -61
- package/dist/Molecular/CustomIcons/components/ChevronRight.js +18 -61
- package/dist/Molecular/CustomIcons/components/ChevronUp.js +18 -61
- package/dist/Molecular/CustomIcons/components/ChevronUpDown.js +33 -81
- package/dist/Molecular/CustomIcons/components/Close.js +20 -64
- package/dist/Molecular/CustomIcons/components/ColumnsOrder.js +45 -95
- package/dist/Molecular/CustomIcons/components/Delete.js +19 -62
- package/dist/Molecular/CustomIcons/components/Edit.js +18 -61
- package/dist/Molecular/CustomIcons/components/Email.js +36 -87
- package/dist/Molecular/CustomIcons/components/FinturfLogo.js +26 -82
- package/dist/Molecular/CustomIcons/components/FinturfLogo2.js +34 -83
- package/dist/Molecular/CustomIcons/components/Flows.js +18 -61
- package/dist/Molecular/CustomIcons/components/Gift.js +23 -71
- package/dist/Molecular/CustomIcons/components/GoogleAuth.js +32 -84
- package/dist/Molecular/CustomIcons/components/GooglePlay.js +32 -84
- package/dist/Molecular/CustomIcons/components/HelpCircle.js +21 -67
- package/dist/Molecular/CustomIcons/components/HelpCircle2.js +22 -68
- package/dist/Molecular/CustomIcons/components/HelpCircleFilled.js +21 -67
- package/dist/Molecular/CustomIcons/components/Home.js +21 -67
- package/dist/Molecular/CustomIcons/components/Home2.js +24 -70
- package/dist/Molecular/CustomIcons/components/Key.js +26 -69
- package/dist/Molecular/CustomIcons/components/Landers.js +22 -68
- package/dist/Molecular/CustomIcons/components/Lock.js +18 -61
- package/dist/Molecular/CustomIcons/components/Mail.js +26 -75
- package/dist/Molecular/CustomIcons/components/Mastercard.js +68 -128
- package/dist/Molecular/CustomIcons/components/Minus.js +31 -79
- package/dist/Molecular/CustomIcons/components/Offers.js +19 -62
- package/dist/Molecular/CustomIcons/components/Pause.js +31 -79
- package/dist/Molecular/CustomIcons/components/PayPal.js +45 -96
- package/dist/Molecular/CustomIcons/components/PayPalLightLarge.js +32 -81
- package/dist/Molecular/CustomIcons/components/Phone.js +33 -81
- package/dist/Molecular/CustomIcons/components/Play.js +31 -79
- package/dist/Molecular/CustomIcons/components/Plus.js +31 -79
- package/dist/Molecular/CustomIcons/components/Profile.js +23 -69
- package/dist/Molecular/CustomIcons/components/QRCode.js +33 -85
- package/dist/Molecular/CustomIcons/components/Rectangle.js +18 -61
- package/dist/Molecular/CustomIcons/components/Revert.js +21 -67
- package/dist/Molecular/CustomIcons/components/Star.js +17 -60
- package/dist/Molecular/CustomIcons/components/Star2.js +19 -62
- package/dist/Molecular/CustomIcons/components/TrafficSources.js +21 -68
- package/dist/Molecular/CustomIcons/components/Trash.js +18 -61
- package/dist/Molecular/CustomIcons/components/TrashRed.js +18 -61
- package/dist/Molecular/CustomIcons/components/Triggers.js +18 -61
- package/dist/Molecular/CustomIcons/components/User.js +23 -71
- package/dist/Molecular/CustomIcons/components/Visa.js +34 -88
- package/dist/Molecular/CustomIcons/components/X.js +18 -61
- package/dist/Molecular/CustomIcons/index.js +674 -76
- package/dist/Molecular/FormElement/FormElement.js +41 -44
- package/dist/Molecular/FormWithDependOn/FormWithDependOn.js +161 -179
- package/dist/Molecular/FormWithDependOn/partials/_utils.js +56 -49
- package/dist/Molecular/InputAddress/InputAddress.js +421 -496
- package/dist/Molecular/InputAddress/InputAddress.scss +16 -14
- package/dist/Molecular/InputPassword/InputPassword.js +47 -99
- package/dist/index.js +8 -11
- package/dist/scss/_fonts.scss +60 -48
- package/dist/scss/_mixins.scss +2 -2
- package/dist/scss/_vars.scss +5 -4
- package/dist/scss/main.scss +4 -5
- package/package.json +21 -18
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.MASK_PRESETS = void 0;
|
|
1
7
|
/**
|
|
2
8
|
* @param type: 'inputMask',
|
|
3
9
|
* @param maskPattern: 'DD.DD.DDDD',
|
|
@@ -8,27 +14,19 @@
|
|
|
8
14
|
* @param showErrors: false,
|
|
9
15
|
* @param autocomplete: 'bday',
|
|
10
16
|
* @param focusSelector: 'input',
|
|
11
|
-
*/
|
|
12
|
-
Object.defineProperty(exports, "__esModule", {
|
|
13
|
-
value: true
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(exports, "MASK_PRESETS", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function() {
|
|
18
|
-
return MASK_PRESETS;
|
|
19
|
-
}
|
|
20
|
-
});
|
|
17
|
+
*/
|
|
21
18
|
const DATE_PRESET = {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
19
|
+
type: "inputMask",
|
|
20
|
+
maskPattern: "DD.DD.DDDD",
|
|
21
|
+
maskPatternPlaceholder: "MM.DD.YYYY",
|
|
22
|
+
usePatternPlaceholder: true,
|
|
23
|
+
isNumericMobileKeyboard: true,
|
|
24
|
+
blinkErrors: true,
|
|
25
|
+
showErrors: false,
|
|
26
|
+
autocomplete: "bday",
|
|
27
|
+
focusSelector: "input"
|
|
31
28
|
};
|
|
29
|
+
|
|
32
30
|
/**
|
|
33
31
|
* @param type: 'inputMask',
|
|
34
32
|
* @param maskPattern: 'DDDDD',
|
|
@@ -39,17 +37,19 @@ const DATE_PRESET = {
|
|
|
39
37
|
* @param focusSelector: 'input',
|
|
40
38
|
* @param autocomplete: 'postal-code',
|
|
41
39
|
* @param rules: 'fieldZip'
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
40
|
+
*/
|
|
41
|
+
const ZIP_PRESET = {
|
|
42
|
+
type: "inputMask",
|
|
43
|
+
focusSelector: "input",
|
|
44
|
+
maskPattern: "DDDDD",
|
|
45
|
+
maskPlaceholder: "X",
|
|
46
|
+
isNumericMobileKeyboard: true,
|
|
47
|
+
blinkErrors: true,
|
|
48
|
+
showErrors: false,
|
|
49
|
+
autocomplete: "postal-code",
|
|
50
|
+
rules: "fieldZip"
|
|
52
51
|
};
|
|
52
|
+
|
|
53
53
|
/**
|
|
54
54
|
* @param type: 'inputMask',
|
|
55
55
|
* @param maskPattern: 'DDDDDDDDD',
|
|
@@ -58,15 +58,17 @@ const DATE_PRESET = {
|
|
|
58
58
|
* @param blinkErrors: true,
|
|
59
59
|
* @param showErrors: false,
|
|
60
60
|
* @param focusSelector: 'input',
|
|
61
|
-
*/
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
61
|
+
*/
|
|
62
|
+
const SSN_PRESET = {
|
|
63
|
+
type: "inputMask",
|
|
64
|
+
maskPattern: "DDDDDDDDD",
|
|
65
|
+
maskPlaceholder: "X",
|
|
66
|
+
focusSelector: "input",
|
|
67
|
+
isNumericMobileKeyboard: true,
|
|
68
|
+
blinkErrors: true,
|
|
69
|
+
showErrors: false
|
|
69
70
|
};
|
|
71
|
+
|
|
70
72
|
/**
|
|
71
73
|
* @param type: 'inputMask',
|
|
72
74
|
* @param maskPattern: 'DDD-DDD-DDDD',
|
|
@@ -76,17 +78,19 @@ const DATE_PRESET = {
|
|
|
76
78
|
* @param showErrors: false,
|
|
77
79
|
* @param focusSelector: 'input',
|
|
78
80
|
* @param autocomplete: 'tel-national',
|
|
79
|
-
*/
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
81
|
+
*/
|
|
82
|
+
const MOBILE_PHONE_PRESET = {
|
|
83
|
+
type: "inputMask",
|
|
84
|
+
// maskPattern: 'DDD-DDD-DDDD',
|
|
85
|
+
maskPattern: "(DDD) DDD-DDDD",
|
|
86
|
+
maskPlaceholder: "X",
|
|
87
|
+
focusSelector: "input",
|
|
88
|
+
isNumericMobileKeyboard: true,
|
|
89
|
+
blinkErrors: true,
|
|
90
|
+
showErrors: false,
|
|
91
|
+
autocomplete: "tel-national"
|
|
89
92
|
};
|
|
93
|
+
|
|
90
94
|
/**
|
|
91
95
|
* @param type: 'inputMask3',
|
|
92
96
|
* @param maskPattern: 'DDDD',
|
|
@@ -94,15 +98,17 @@ const DATE_PRESET = {
|
|
|
94
98
|
* @param isNumericMobileKeyboard: true,
|
|
95
99
|
* @param blinkErrors: true,
|
|
96
100
|
* @param showErrors: false,
|
|
97
|
-
*/
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
*/
|
|
102
|
+
const SHORT_SSN_PRESET = {
|
|
103
|
+
type: "inputMask3",
|
|
104
|
+
maskPattern: "DDDD",
|
|
105
|
+
maskPlaceholder: "X",
|
|
106
|
+
focusSelector: "input",
|
|
107
|
+
isNumericMobileKeyboard: true,
|
|
108
|
+
blinkErrors: true,
|
|
109
|
+
showErrors: false
|
|
105
110
|
};
|
|
111
|
+
|
|
106
112
|
/**
|
|
107
113
|
* @param type: 'inputMask',
|
|
108
114
|
* @param maskPattern: 'DDDDDDDDD',
|
|
@@ -110,14 +116,16 @@ const DATE_PRESET = {
|
|
|
110
116
|
* @param isNumericMobileKeyboard: true,
|
|
111
117
|
* @param blinkErrors: true,
|
|
112
118
|
* @param showErrors: false,
|
|
113
|
-
*/
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
*/
|
|
120
|
+
const ABA_PRESET = {
|
|
121
|
+
type: "inputMask",
|
|
122
|
+
maskPattern: "DDDDDDDDD",
|
|
123
|
+
maskPlaceholder: "X",
|
|
124
|
+
isNumericMobileKeyboard: true,
|
|
125
|
+
blinkErrors: true,
|
|
126
|
+
showErrors: false
|
|
120
127
|
};
|
|
128
|
+
|
|
121
129
|
/**
|
|
122
130
|
* @param type: 'inputMask',
|
|
123
131
|
* @param maskPattern: 'MM/YY',
|
|
@@ -127,16 +135,18 @@ const DATE_PRESET = {
|
|
|
127
135
|
* @param blinkErrors: true,
|
|
128
136
|
* @param showErrors: false,
|
|
129
137
|
* @param focusSelector: 'input',
|
|
130
|
-
*/
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
138
|
+
*/
|
|
139
|
+
const CC_EXPIRATION_DATE = {
|
|
140
|
+
type: "inputMask",
|
|
141
|
+
maskPattern: "MM/YY",
|
|
142
|
+
maskPatternPlaceholder: "MM/YY",
|
|
143
|
+
usePatternPlaceholder: true,
|
|
144
|
+
isNumericMobileKeyboard: true,
|
|
145
|
+
blinkErrors: true,
|
|
146
|
+
showErrors: false,
|
|
147
|
+
focusSelector: "input"
|
|
139
148
|
};
|
|
149
|
+
|
|
140
150
|
/**
|
|
141
151
|
* @param type: 'inputMask',
|
|
142
152
|
* @param maskPattern: 'DDDDDDDDDD',
|
|
@@ -144,21 +154,22 @@ const DATE_PRESET = {
|
|
|
144
154
|
* @param isNumericMobileKeyboard: true,
|
|
145
155
|
* @param blinkErrors: true,
|
|
146
156
|
* @param showErrors: false,
|
|
147
|
-
*/
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
const MASK_PRESETS = {
|
|
156
|
-
BANK_ACCOUNT,
|
|
157
|
-
CC_EXPIRATION_DATE,
|
|
158
|
-
DATE_PRESET,
|
|
159
|
-
ZIP_PRESET,
|
|
160
|
-
SSN_PRESET,
|
|
161
|
-
MOBILE_PHONE_PRESET,
|
|
162
|
-
SHORT_SSN_PRESET,
|
|
163
|
-
ABA_PRESET
|
|
157
|
+
*/
|
|
158
|
+
const BANK_ACCOUNT = {
|
|
159
|
+
type: "inputMask",
|
|
160
|
+
maskPattern: "DDDDDDDDDD",
|
|
161
|
+
maskPlaceholder: "X",
|
|
162
|
+
isNumericMobileKeyboard: true,
|
|
163
|
+
blinkErrors: true,
|
|
164
|
+
showErrors: false
|
|
164
165
|
};
|
|
166
|
+
const MASK_PRESETS = exports.MASK_PRESETS = {
|
|
167
|
+
BANK_ACCOUNT,
|
|
168
|
+
CC_EXPIRATION_DATE,
|
|
169
|
+
DATE_PRESET,
|
|
170
|
+
ZIP_PRESET,
|
|
171
|
+
SSN_PRESET,
|
|
172
|
+
MOBILE_PHONE_PRESET,
|
|
173
|
+
SHORT_SSN_PRESET,
|
|
174
|
+
ABA_PRESET
|
|
175
|
+
};
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
|
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
|
|
4
|
+
value: true
|
|
4
5
|
});
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
get: function() {
|
|
8
|
-
return INPUT_PRESETS;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _fieldValueFormatters = require("../fieldValueFormatters");
|
|
6
|
+
exports.INPUT_PRESETS = void 0;
|
|
7
|
+
var _fieldValueFormatters = require("../fieldValueFormatters");
|
|
12
8
|
const NAME_SYMBOLS_EXCLUDER = {
|
|
13
|
-
|
|
9
|
+
/**
|
|
14
10
|
* @name fieldChangesMiddleware
|
|
15
11
|
* @description Обрабатывает входящую строку, удаляет все символы, которые не являются
|
|
16
12
|
* алфавитными, дефисами, апострофами или пробелами. Не дает ввести дубли символов дефиса или апострофа.
|
|
@@ -18,43 +14,41 @@ const NAME_SYMBOLS_EXCLUDER = {
|
|
|
18
14
|
*
|
|
19
15
|
* @param {string} value - Входная строка для обработки.
|
|
20
16
|
* @returns {string} - Обработанная строка.
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
" "
|
|
40
|
-
]
|
|
41
|
-
}
|
|
17
|
+
*/
|
|
18
|
+
fieldChangesMiddleware: value => {
|
|
19
|
+
// remove invalid characters
|
|
20
|
+
const invalidCharacters = new RegExp(/[^a-zA-Z-\s']/g);
|
|
21
|
+
// handle any two '-' or ''' should not be side by side
|
|
22
|
+
const sideBySideHyphenOrApostrophe = new RegExp(/['-]{2,}/g);
|
|
23
|
+
// replace sequence of spaces with single space
|
|
24
|
+
const multipleSpaces = new RegExp(/\s{2,}/g);
|
|
25
|
+
// remove '-' or ''' if they are followed by a space
|
|
26
|
+
const beforeSpace = new RegExp(/['-](?=\s)/g);
|
|
27
|
+
const sanitizedValue = (0, _fieldValueFormatters.getSafelyValue)(value).replace(invalidCharacters, "").replace(sideBySideHyphenOrApostrophe, "").replace(multipleSpaces, " ").replace(beforeSpace, "");
|
|
28
|
+
return sanitizedValue;
|
|
29
|
+
},
|
|
30
|
+
blurTrim: {
|
|
31
|
+
trimStart: true,
|
|
32
|
+
trimEnd: true,
|
|
33
|
+
characters: ["-", "'", " "]
|
|
34
|
+
}
|
|
42
35
|
};
|
|
43
36
|
const ONLY_STRING_AND_DASH = {
|
|
44
|
-
|
|
37
|
+
/**
|
|
45
38
|
* @name fieldChangesMiddleware
|
|
46
39
|
* @description Обрабатывает входную строку, удаляет все неалфавитные символы, заменяет двойные дефисы на одинарные
|
|
47
40
|
* и удаляет все дефисы в начале или конце строки.
|
|
48
41
|
* @param {string} value - входная строка для обработки
|
|
49
42
|
* @returns {string} обработанная строка
|
|
50
|
-
*/
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
const INPUT_PRESETS = {
|
|
58
|
-
NAME_SYMBOLS_EXCLUDER,
|
|
59
|
-
ONLY_STRING_AND_DASH
|
|
43
|
+
*/
|
|
44
|
+
fieldChangesMiddleware: value => {
|
|
45
|
+
const nonAlphabeticAndNotSingleDash = new RegExp(/[^a-zA-Z-]|--/gi);
|
|
46
|
+
const consecutiveDashes = new RegExp(/-+/g);
|
|
47
|
+
const sanitizedInput = (0, _fieldValueFormatters.getSafelyValue)(value);
|
|
48
|
+
return sanitizedInput.replace(nonAlphabeticAndNotSingleDash, "").replace(consecutiveDashes, "-");
|
|
49
|
+
}
|
|
60
50
|
};
|
|
51
|
+
const INPUT_PRESETS = exports.INPUT_PRESETS = {
|
|
52
|
+
NAME_SYMBOLS_EXCLUDER,
|
|
53
|
+
ONLY_STRING_AND_DASH
|
|
54
|
+
};
|
|
@@ -1,36 +1,55 @@
|
|
|
1
|
-
//? Удобно использовать для расширения объекта атрибутов
|
|
2
1
|
"use strict";
|
|
2
|
+
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
|
|
4
|
+
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
6
|
+
exports.NUMERIC_KEYBOARD = exports.EMAIL_KEYBOARD = exports.ALL_KEYBOARD_TYPES = void 0;
|
|
7
|
+
//? Удобно использовать для расширения объекта атрибутов
|
|
8
|
+
const ALL_KEYBOARD_TYPES = exports.ALL_KEYBOARD_TYPES = {
|
|
9
|
+
numeric: {
|
|
10
|
+
inputMode: "decimal"
|
|
11
|
+
},
|
|
12
|
+
email: {
|
|
13
|
+
inputMode: "email"
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//? Например:
|
|
18
|
+
/*
|
|
19
|
+
const constructor = [
|
|
20
|
+
...
|
|
21
|
+
{
|
|
22
|
+
key: 'someField',
|
|
23
|
+
...
|
|
24
|
+
attributesOfNativeInput: {
|
|
25
|
+
'data-testId': `someFieldTestId-${someId}`,
|
|
26
|
+
...ALL_KEYBOARD_TYPES.numeric
|
|
27
|
+
}
|
|
21
28
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
...
|
|
30
|
+
];
|
|
31
|
+
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
// *****************************
|
|
35
|
+
//? Удобно использовать для расширения объекта филда, если в филде более не добавляются другие атрибуты
|
|
36
|
+
//? Например:
|
|
37
|
+
/*
|
|
38
|
+
const constructor = [
|
|
39
|
+
...
|
|
40
|
+
{
|
|
41
|
+
key: 'someField',
|
|
42
|
+
...NUMERIC_KEYBOARD
|
|
43
|
+
...
|
|
29
44
|
}
|
|
45
|
+
...
|
|
46
|
+
];
|
|
47
|
+
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
const NUMERIC_KEYBOARD = exports.NUMERIC_KEYBOARD = {
|
|
51
|
+
attributesOfNativeInput: ALL_KEYBOARD_TYPES.numeric
|
|
30
52
|
};
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
};
|
|
34
|
-
const EMAIL_KEYBOARD = {
|
|
35
|
-
attributesOfNativeInput: ALL_KEYBOARD_TYPES.email
|
|
36
|
-
};
|
|
53
|
+
const EMAIL_KEYBOARD = exports.EMAIL_KEYBOARD = {
|
|
54
|
+
attributesOfNativeInput: ALL_KEYBOARD_TYPES.email
|
|
55
|
+
};
|
|
@@ -1,83 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
|
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
|
|
4
|
+
value: true
|
|
4
5
|
});
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
_export(exports, {
|
|
12
|
-
forgotSchema: function() {
|
|
13
|
-
return forgotSchema;
|
|
14
|
-
},
|
|
15
|
-
loginSchema: function() {
|
|
16
|
-
return loginSchema;
|
|
17
|
-
},
|
|
18
|
-
registerSchema: function() {
|
|
19
|
-
return registerSchema;
|
|
20
|
-
}
|
|
6
|
+
exports.registerSchema = exports.loginSchema = exports.forgotSchema = void 0;
|
|
7
|
+
var yup = _interopRequireWildcard(require("yup"));
|
|
8
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
9
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
10
|
+
const forgotSchema = exports.forgotSchema = yup.object().shape({
|
|
11
|
+
email: yup.string().email("Invalid email").required("E-mail is required")
|
|
21
12
|
});
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
var cacheNodeInterop = new WeakMap();
|
|
27
|
-
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
28
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
29
|
-
})(nodeInterop);
|
|
30
|
-
}
|
|
31
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
32
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
33
|
-
return obj;
|
|
34
|
-
}
|
|
35
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
36
|
-
return {
|
|
37
|
-
default: obj
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
41
|
-
if (cache && cache.has(obj)) {
|
|
42
|
-
return cache.get(obj);
|
|
43
|
-
}
|
|
44
|
-
var newObj = {
|
|
45
|
-
__proto__: null
|
|
46
|
-
};
|
|
47
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
48
|
-
for(var key in obj){
|
|
49
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
50
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
51
|
-
if (desc && (desc.get || desc.set)) {
|
|
52
|
-
Object.defineProperty(newObj, key, desc);
|
|
53
|
-
} else {
|
|
54
|
-
newObj[key] = obj[key];
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
newObj.default = obj;
|
|
59
|
-
if (cache) {
|
|
60
|
-
cache.set(obj, newObj);
|
|
61
|
-
}
|
|
62
|
-
return newObj;
|
|
63
|
-
}
|
|
64
|
-
const forgotSchema = _yup.object().shape({
|
|
65
|
-
email: _yup.string().email("Invalid email").required("E-mail is required")
|
|
66
|
-
});
|
|
67
|
-
const loginSchema = _yup.object().shape({
|
|
68
|
-
email: _yup.string().email("Invalid email").required("E-mail is required"),
|
|
69
|
-
password: _yup.string().required("No password provided").min(8, "Password is too short - should be 8 chars minimum").matches(/[a-zA-Z]/, "Password can only contain Latin letters"),
|
|
70
|
-
remember: _yup.bool()
|
|
71
|
-
});
|
|
72
|
-
const registerSchema = _yup.object().shape({
|
|
73
|
-
name: _yup.string().required("Name is required"),
|
|
74
|
-
email: _yup.string().email("Invalid email").required("E-mail is required"),
|
|
75
|
-
password: _yup.string().required("No password provided").min(8, "Password is too short - should be 8 chars minimum").matches(/[a-zA-Z]/, "Password can only contain Latin letters"),
|
|
76
|
-
confirmPassword: _yup.string().required("Confirm password").oneOf([
|
|
77
|
-
_yup.ref("password")
|
|
78
|
-
], "Passwords must match"),
|
|
79
|
-
promo: _yup.string(),
|
|
80
|
-
recaptcha: _yup.bool().oneOf([
|
|
81
|
-
true
|
|
82
|
-
], "Field must be checked")
|
|
13
|
+
const loginSchema = exports.loginSchema = yup.object().shape({
|
|
14
|
+
email: yup.string().email("Invalid email").required("E-mail is required"),
|
|
15
|
+
password: yup.string().required("No password provided").min(8, "Password is too short - should be 8 chars minimum").matches(/[a-zA-Z]/, "Password can only contain Latin letters"),
|
|
16
|
+
remember: yup.bool()
|
|
83
17
|
});
|
|
18
|
+
const registerSchema = exports.registerSchema = yup.object().shape({
|
|
19
|
+
name: yup.string().required("Name is required"),
|
|
20
|
+
email: yup.string().email("Invalid email").required("E-mail is required"),
|
|
21
|
+
password: yup.string().required("No password provided").min(8, "Password is too short - should be 8 chars minimum").matches(/[a-zA-Z]/, "Password can only contain Latin letters"),
|
|
22
|
+
confirmPassword: yup.string().required("Confirm password").oneOf([yup.ref("password")], "Passwords must match"),
|
|
23
|
+
promo: yup.string(),
|
|
24
|
+
recaptcha: yup.bool().oneOf([true], "Field must be checked")
|
|
25
|
+
});
|
|
@@ -1,26 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
|
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
|
|
4
|
+
value: true
|
|
4
5
|
});
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
const useBodyScrollLock = isScrollBodyLocked => {
|
|
9
|
+
(0, _react.useEffect)(() => {
|
|
10
|
+
if (isScrollBodyLocked) {
|
|
11
|
+
document.body.style.overflow = "hidden";
|
|
12
|
+
} else {
|
|
13
|
+
document.body.style.overflow = "auto";
|
|
9
14
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
if (isScrollBodyLocked) {
|
|
15
|
-
document.body.style.overflow = "hidden";
|
|
16
|
-
} else {
|
|
17
|
-
document.body.style.overflow = "auto";
|
|
18
|
-
}
|
|
19
|
-
return ()=>{
|
|
20
|
-
document.body.style.overflow = "auto";
|
|
21
|
-
};
|
|
22
|
-
}, [
|
|
23
|
-
isScrollBodyLocked
|
|
24
|
-
]);
|
|
15
|
+
return () => {
|
|
16
|
+
document.body.style.overflow = "auto";
|
|
17
|
+
};
|
|
18
|
+
}, [isScrollBodyLocked]);
|
|
25
19
|
};
|
|
26
|
-
|
|
20
|
+
var _default = exports.default = useBodyScrollLock;
|
|
@@ -1,26 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
|
|
2
3
|
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
|
|
4
|
+
value: true
|
|
4
5
|
});
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
exports.useClickOutside = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
const useClickOutside = (ref, setOut, open) => {
|
|
9
|
+
function handleClickOutside(event) {
|
|
10
|
+
if (ref.current && !ref.current.contains(event.target)) {
|
|
11
|
+
setOut(open);
|
|
9
12
|
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
(0, _react.useEffect)(()=>{
|
|
19
|
-
document.addEventListener("mousedown", handleClickOutside);
|
|
20
|
-
return ()=>{
|
|
21
|
-
document.removeEventListener("mousedown", handleClickOutside);
|
|
22
|
-
};
|
|
23
|
-
}, [
|
|
24
|
-
ref
|
|
25
|
-
]);
|
|
13
|
+
}
|
|
14
|
+
(0, _react.useEffect)(() => {
|
|
15
|
+
document.addEventListener("mousedown", handleClickOutside);
|
|
16
|
+
return () => {
|
|
17
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
|
18
|
+
};
|
|
19
|
+
}, [ref]);
|
|
26
20
|
};
|
|
21
|
+
exports.useClickOutside = useClickOutside;
|