intelicoreact 1.3.21 → 1.3.23
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 +17 -28
- package/dist/Atomic/FormElements/ActionAlert/ActionAlert.scss +9 -9
- package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.js +19 -30
- package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.scss +8 -10
- package/dist/Atomic/FormElements/Calendar/Calendar.js +87 -144
- package/dist/Atomic/FormElements/Calendar/Calendar.scss +23 -27
- package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.js +28 -37
- package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.scss +16 -19
- package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.js +23 -39
- package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.scss +2 -2
- package/dist/Atomic/FormElements/Datepicker/Datepicker.js +154 -290
- package/dist/Atomic/FormElements/Datepicker/Datepicker.scss +0 -8
- package/dist/Atomic/FormElements/Datepicker/components/Calendar.js +55 -96
- package/dist/Atomic/FormElements/Dropdown/Dropdown.js +294 -464
- package/dist/Atomic/FormElements/Dropdown/Dropdown.scss +141 -95
- package/dist/Atomic/FormElements/Dropdown/components/DropdownLoader.js +6 -10
- package/dist/Atomic/FormElements/Dropdown/components/DropdownLoader.scss +3 -3
- package/dist/Atomic/FormElements/DropdownLiveSearch/DropdownLiveSearch.js +113 -183
- package/dist/Atomic/FormElements/DropdownLiveSearch/DropdownLiveSearch.scss +54 -18
- package/dist/Atomic/FormElements/FileLoader/FileLoader.js +41 -66
- package/dist/Atomic/FormElements/FileLoader/FileLoader.scss +31 -30
- package/dist/Atomic/FormElements/FileLoader/partial/LoadZone.js +51 -132
- package/dist/Atomic/FormElements/FileLoader/partial/LoadedContent.js +36 -75
- package/dist/Atomic/FormElements/FileLoaderLocal/FileLoaderLocal.js +59 -80
- package/dist/Atomic/FormElements/FileLoaderLocal/FileLoaderLocal.scss +44 -29
- package/dist/Atomic/FormElements/FileLoaderLocalGroup/FileLoaderLocalGroup.js +81 -122
- package/dist/Atomic/FormElements/FormattedRawSSN/FormattedRawSSN.js +38 -88
- package/dist/Atomic/FormElements/FormattedRawSSN/FormattedRawSSN.scss +24 -21
- package/dist/Atomic/FormElements/Input/Input.js +185 -279
- package/dist/Atomic/FormElements/Input/Input.scss +18 -18
- package/dist/Atomic/FormElements/InputCalendar/InputCalendar.js +57 -111
- package/dist/Atomic/FormElements/InputColor/InputColor.js +31 -46
- package/dist/Atomic/FormElements/InputCurrency/InputCurrency.js +37 -67
- package/dist/Atomic/FormElements/InputCurrency/InputCurrency.scss +9 -6
- package/dist/Atomic/FormElements/InputDateRange/InputDateRange.js +135 -203
- package/dist/Atomic/FormElements/InputDateRange/InputDateRange.scss +95 -95
- package/dist/Atomic/FormElements/InputDateRange/components/DateInput.js +36 -61
- package/dist/Atomic/FormElements/InputDateRange/components/Datepicker.js +232 -350
- package/dist/Atomic/FormElements/InputDateRange/components/OpenedPart.js +95 -167
- package/dist/Atomic/FormElements/InputDateRange/components/SelectItem.js +15 -20
- package/dist/Atomic/FormElements/InputDateRange/dependencies.js +94 -211
- package/dist/Atomic/FormElements/InputLink/InputLink.js +42 -68
- package/dist/Atomic/FormElements/InputLink/InputLink.scss +5 -5
- package/dist/Atomic/FormElements/InputMask/InputCarretPosition.js +10 -14
- package/dist/Atomic/FormElements/InputMask/InputMask.js +598 -1009
- package/dist/Atomic/FormElements/InputMask/InputMask.scss +10 -10
- package/dist/Atomic/FormElements/InputMask/config.js +9 -9
- package/dist/Atomic/FormElements/InputMask/functions.js +23 -48
- package/dist/Atomic/FormElements/InputMask2/InputMask2.js +296 -432
- package/dist/Atomic/FormElements/InputMask2/InputMask2.scss +13 -12
- package/dist/Atomic/FormElements/InputMask2/config.js +9 -9
- package/dist/Atomic/FormElements/InputMask2/functions.js +23 -48
- package/dist/Atomic/FormElements/InputMask3/InputMask3.js +333 -493
- package/dist/Atomic/FormElements/InputMask3/InputMask3.scss +13 -12
- package/dist/Atomic/FormElements/InputMask3/config.js +9 -9
- package/dist/Atomic/FormElements/InputMask3/functions.js +23 -48
- package/dist/Atomic/FormElements/InputWithAction/InputWithAction.js +53 -115
- package/dist/Atomic/FormElements/InputWithAction/InputWithAction.scss +34 -31
- package/dist/Atomic/FormElements/InputsRow/InputsRow.js +77 -131
- package/dist/Atomic/FormElements/InputsRow/InputsRow.scss +4 -5
- package/dist/Atomic/FormElements/Label/Label.js +14 -24
- package/dist/Atomic/FormElements/Label/Label.scss +2 -2
- package/dist/Atomic/FormElements/MobileCalendar/MobileCalendar.js +227 -359
- package/dist/Atomic/FormElements/MobileCalendar/MobileCalendar.scss +8 -9
- package/dist/Atomic/FormElements/MultiSelect/MultiSelect.js +26 -48
- package/dist/Atomic/FormElements/MultiSelect/MultiSelect.scss +2 -2
- package/dist/Atomic/FormElements/NumericInput/NumericInput.js +149 -223
- package/dist/Atomic/FormElements/NumericInput/NumericInput.scss +18 -18
- package/dist/Atomic/FormElements/RadioGroup/RadioGroup.js +31 -63
- package/dist/Atomic/FormElements/RadioGroup/RadioGroup.scss +1 -0
- package/dist/Atomic/FormElements/RadioGroupWithInput/RadioGroupWithInput.js +25 -47
- package/dist/Atomic/FormElements/RadioGroupWithInput/RadioGroupWithInput.scss +1 -0
- package/dist/Atomic/FormElements/RadioInput/RadioInput.js +22 -33
- package/dist/Atomic/FormElements/RadioInput/RadioInput.scss +4 -8
- package/dist/Atomic/FormElements/RadioRowSwitcher/RadioRowSwitcher.js +21 -44
- package/dist/Atomic/FormElements/RadioRowSwitcher/RadioRowSwitcher.scss +26 -25
- package/dist/Atomic/FormElements/RangeCalendar/RangeCalendar.js +68 -115
- package/dist/Atomic/FormElements/RangeCalendar/RangeCalendar.scss +17 -19
- package/dist/Atomic/FormElements/RangeInputs/RangeInputs.js +71 -114
- package/dist/Atomic/FormElements/RangeInputs/RangeInputs.scss +5 -5
- package/dist/Atomic/FormElements/RangeList/RangeList.js +102 -163
- package/dist/Atomic/FormElements/RangeList/RangeList.scss +23 -23
- package/dist/Atomic/FormElements/RangeList/partial/AnyOuterClass.scss +5 -4
- package/dist/Atomic/FormElements/RangeList/partial/RangeListRow.js +23 -29
- package/dist/Atomic/FormElements/RangeSlider/RangeSlider.js +153 -318
- package/dist/Atomic/FormElements/RangeSlider/RangeSlider.scss +19 -24
- package/dist/Atomic/FormElements/RangeSlider/RangeSlider.stories.scss +7 -7
- package/dist/Atomic/FormElements/RangeSlider2/RangeSlider.stories.scss +8 -8
- package/dist/Atomic/FormElements/RangeSlider2/RangeSlider2.js +395 -585
- package/dist/Atomic/FormElements/RangeSlider2/RangeSlider2.scss +165 -91
- package/dist/Atomic/FormElements/SwitchableRow/SwitchableRow.js +14 -24
- package/dist/Atomic/FormElements/SwitchableRow/SwitchableRow.scss +2 -2
- package/dist/Atomic/FormElements/Switcher/Switcher.js +24 -29
- package/dist/Atomic/FormElements/Switcher/Switcher.scss +10 -12
- package/dist/Atomic/FormElements/Switcher/partial/AnyOuterClass.scss +2 -2
- package/dist/Atomic/FormElements/SwitcherCheckbox/SwitcherCheckbox.js +26 -50
- package/dist/Atomic/FormElements/SwitcherCheckbox/partial/AnyOuterClass.scss +2 -2
- package/dist/Atomic/FormElements/SwitcherHide/SwitcherHide.js +20 -32
- package/dist/Atomic/FormElements/SwitcherHide/partial/AnyOuterClass.scss +2 -2
- package/dist/Atomic/FormElements/SwitcherRadio/SwitcherRadio.js +33 -56
- package/dist/Atomic/FormElements/SwitcherRadio/SwitcherRadio.scss +1 -1
- package/dist/Atomic/FormElements/SwitcherRadio/partial/AnyOuterClass.scss +2 -2
- package/dist/Atomic/FormElements/SwitcherRange/SwitcherRange.js +25 -45
- package/dist/Atomic/FormElements/SwitcherRangeList/SwitcherRangeList.js +24 -34
- package/dist/Atomic/FormElements/SwitcherRangeList/partial/AnyOuterClass.scss +6 -6
- package/dist/Atomic/FormElements/SwitcherTagsDropdown/SwitcherTagsDropdown.js +56 -125
- package/dist/Atomic/FormElements/SwitcherTagsDropdown/SwitcherTagsDropdown.scss +2 -3
- package/dist/Atomic/FormElements/SwitcherTagsDropdown/partial/AnyOuterClass.scss +2 -2
- package/dist/Atomic/FormElements/SwitcherTagsDropdown/partial/States.js +102 -103
- package/dist/Atomic/FormElements/SwitcherTextarea/SwitcherTextarea.js +23 -46
- package/dist/Atomic/FormElements/SwitcherTextarea/SwitcherTextarea.scss +2 -3
- package/dist/Atomic/FormElements/SwitcherTextarea/partial/AnyOuterClass.scss +4 -4
- package/dist/Atomic/FormElements/TagsDropdown/TagsDropdown.js +299 -453
- package/dist/Atomic/FormElements/TagsDropdown/TagsDropdown.scss +103 -64
- package/dist/Atomic/FormElements/Text/Text.js +50 -56
- package/dist/Atomic/FormElements/Text/Text.scss +0 -1
- package/dist/Atomic/FormElements/TextSwitcher/TextSwitcher.js +21 -31
- package/dist/Atomic/FormElements/TextSwitcher/TextSwitcher.scss +15 -15
- package/dist/Atomic/FormElements/Textarea/Textarea.js +16 -27
- package/dist/Atomic/FormElements/Textarea/Textarea.scss +7 -8
- package/dist/Atomic/FormElements/TieredCheckboxes/TieredCheckboxes.js +69 -129
- package/dist/Atomic/FormElements/TieredCheckboxes/TieredCheckboxes.scss +5 -6
- package/dist/Atomic/FormElements/TieredCheckboxes/partial/AccordionWithCheckbox.js +25 -36
- package/dist/Atomic/FormElements/TimeRange/TimeRange.js +39 -76
- package/dist/Atomic/FormElements/TimeRange/TimeRange.scss +1 -1
- package/dist/Atomic/FormElements/UserContacts/UserContacts.js +82 -149
- package/dist/Atomic/FormElements/UserContacts/partial/AnyOuterClass.scss +5 -6
- package/dist/Atomic/FormElements/VariantsListRadio/VariantsListRadio.js +48 -80
- package/dist/Atomic/FormElements/VariantsListRadio/VariantsListRadio.scss +77 -59
- package/dist/Atomic/FormElements/VariantsListRadio/partials/VariantsListRadioItem.js +32 -42
- package/dist/Atomic/FormElements/WidgetPseudoTable/WidgetPseudoTable.js +42 -62
- package/dist/Atomic/FormElements/WidgetPseudoTable/WidgetPseudoTable.scss +9 -10
- package/dist/Atomic/FormElements/WidgetPseudoTable/partial/AnyOuterClass.scss +16 -14
- package/dist/Atomic/FormElements/WidgetPseudoTable/partial/constructor.js +20 -21
- package/dist/Atomic/FormElements/WidgetWithSwitchableRows/WidgetWithSwitchableRows.js +54 -73
- package/dist/Atomic/FormElements/WidgetWithSwitchableRows/WidgetWithSwitchableRows.scss +9 -10
- package/dist/Atomic/FormElements/WidgetWithSwitchableRows/partial/AnyOuterClass.scss +16 -14
- package/dist/Atomic/FormElements/WidgetWithSwitchableRows/partial/constructor.js +17 -17
- package/dist/Atomic/Layout/Header/Header.js +26 -53
- package/dist/Atomic/Layout/Header/Header.scss +9 -10
- package/dist/Atomic/Layout/MainMenu/MainMenu.js +48 -92
- package/dist/Atomic/Layout/MainMenu/MainMenu.scss +14 -17
- package/dist/Atomic/Layout/Spinner/Spinner.js +11 -17
- package/dist/Atomic/Layout/Spinner/Spinner.scss +3 -3
- package/dist/Atomic/UI/Accordion/Accordion.js +23 -53
- package/dist/Atomic/UI/Accordion/Accordion.scss +11 -11
- package/dist/Atomic/UI/Accordion/AccordionItem.js +45 -70
- package/dist/Atomic/UI/AccordionTable/AccordionTable.js +63 -121
- package/dist/Atomic/UI/AccordionTable/AccordionTable.scss +33 -38
- package/dist/Atomic/UI/AccordionText/AccordionText.js +15 -39
- package/dist/Atomic/UI/AccordionText/AccordionText.scss +18 -10
- package/dist/Atomic/UI/AdvancedTag/AdvTag.js +67 -114
- package/dist/Atomic/UI/AdvancedTag/AdvancedTags.js +26 -54
- package/dist/Atomic/UI/AdvancedTag/AdvancedTags.scss +19 -18
- package/dist/Atomic/UI/Alert/Alert.js +24 -48
- package/dist/Atomic/UI/Alert/Alert.scss +21 -21
- package/dist/Atomic/UI/Arrow/Arrow.js +19 -39
- package/dist/Atomic/UI/Box/Box.js +24 -31
- package/dist/Atomic/UI/Box/Box.scss +2 -4
- package/dist/Atomic/UI/Button/Button.js +29 -38
- package/dist/Atomic/UI/Button/Button.scss +34 -34
- package/dist/Atomic/UI/ButtonsBar/ButtonsBar.js +24 -33
- package/dist/Atomic/UI/ButtonsBar/ButtonsBar.scss +1 -1
- package/dist/Atomic/UI/Chart/Chart.js +55 -96
- package/dist/Atomic/UI/Chart/Chart.scss +4 -4
- package/dist/Atomic/UI/Chart/partial/AnyOuterClass.scss +10 -14
- package/dist/Atomic/UI/Chart/partial/Chart.constants.js +37 -47
- package/dist/Atomic/UI/Chart/partial/ChartTypeSwitcherIcon/ChartTypeSwitcherIcon.js +15 -24
- package/dist/Atomic/UI/Chart/partial/ChartTypeSwitcherIcon/ChartTypeSwitcherIcon.scss +1 -1
- package/dist/Atomic/UI/Chart/partial/datasetSetters.js +80 -125
- package/dist/Atomic/UI/Chart/partial/optionsConstructor.js +173 -155
- package/dist/Atomic/UI/Chart/partial/optionsSetters.js +28 -44
- package/dist/Atomic/UI/Chart/partial/utils.js +22 -50
- package/dist/Atomic/UI/CircleProgressBar/CircleProgressBar.js +31 -51
- package/dist/Atomic/UI/CircleProgressBar/CircleProgressBar.scss +7 -9
- package/dist/Atomic/UI/DateTime/DateTime.js +26 -41
- package/dist/Atomic/UI/DateTime/DateTime.scss +1 -1
- package/dist/Atomic/UI/DateTime/partial/AnyOuterClass.scss +2 -2
- package/dist/Atomic/UI/DebugContainer/DebugContainer.js +15 -39
- package/dist/Atomic/UI/DebugContainer/DebugContainer.scss +15 -9
- package/dist/Atomic/UI/DebugContainer/useDebugContainer.js +5 -21
- package/dist/Atomic/UI/DoubleString/DoubleString.js +29 -52
- package/dist/Atomic/UI/DoubleString/DoubleString.scss +11 -5
- package/dist/Atomic/UI/DoubleString/partial/AnyOuterClass.scss +4 -4
- package/dist/Atomic/UI/DynamicIcon/DynamicIcon.js +15 -63
- package/dist/Atomic/UI/ExampleChartIntegration/ExampleChartIntegration.js +99 -194
- package/dist/Atomic/UI/ExampleChartIntegration/partial/AnyOuterClass.scss +10 -15
- package/dist/Atomic/UI/ExampleChartIntegration/partial/utils.js +57 -120
- package/dist/Atomic/UI/Hint/Hint.js +74 -120
- package/dist/Atomic/UI/Hint/Hint.scss +12 -11
- package/dist/Atomic/UI/Modal/Modal.js +152 -190
- package/dist/Atomic/UI/Modal/Modal.scss +42 -43
- package/dist/Atomic/UI/Modal/ModalHOC.js +14 -26
- package/dist/Atomic/UI/Modal/ModalMobile.scss +18 -11
- package/dist/Atomic/UI/Modal/partials/ModalFooter.js +8 -13
- package/dist/Atomic/UI/Modal/partials/ModalTitle.js +20 -24
- package/dist/Atomic/UI/Modal/partials/useMobileModal.js +102 -164
- package/dist/Atomic/UI/ModalBackup/Modal.js +65 -90
- package/dist/Atomic/UI/ModalBackup/ModalHOC.js +12 -21
- package/dist/Atomic/UI/ModalBackup/partials/ModalFooter.js +6 -11
- package/dist/Atomic/UI/ModalBackup/partials/ModalTitle.js +15 -19
- package/dist/Atomic/UI/MonoAccordion/MonoAccordion.js +32 -62
- package/dist/Atomic/UI/MonoAccordion/MonoAccordion.scss +5 -5
- package/dist/Atomic/UI/MonoAccordion/partial/AnyOuterClass.scss +4 -5
- package/dist/Atomic/UI/NavLine/NavLine.js +140 -231
- package/dist/Atomic/UI/NavLine/NavLine.scss +34 -36
- package/dist/Atomic/UI/NavLine/Tabs.js +40 -41
- package/dist/Atomic/UI/PageTitle/PageTitle.js +13 -17
- package/dist/Atomic/UI/PageTitle/PageTitle.scss +7 -7
- package/dist/Atomic/UI/PieChart/PieChart.js +14 -24
- package/dist/Atomic/UI/PieChart/PieChart.scss +21 -10
- package/dist/Atomic/UI/Price/Price.js +12 -15
- package/dist/Atomic/UI/PriceRange/PriceRange.js +9 -13
- package/dist/Atomic/UI/ProgressLine/ProgressLine.js +29 -58
- package/dist/Atomic/UI/ProgressLine/ProgressLine.scss +36 -40
- package/dist/Atomic/UI/Status/Status.js +24 -35
- package/dist/Atomic/UI/Status/Status.scss +19 -19
- package/dist/Atomic/UI/Table/Partials/TdCell.js +38 -81
- package/dist/Atomic/UI/Table/Partials/TdHeader.js +9 -18
- package/dist/Atomic/UI/Table/Partials/TdRow.js +34 -70
- package/dist/Atomic/UI/Table/Partials/TdTitle.js +17 -41
- package/dist/Atomic/UI/Table/Table.js +27 -47
- package/dist/Atomic/UI/Table/Table.scss +11 -13
- package/dist/Atomic/UI/Table/TdTypes/TdActions.js +23 -53
- package/dist/Atomic/UI/Table/TdTypes/TdPriority.js +11 -21
- package/dist/Atomic/UI/Table/TdTypes/TdRange.js +6 -11
- package/dist/Atomic/UI/Table/TdTypes/TdTypes.scss +9 -8
- package/dist/Atomic/UI/Table/TdTypes/TdWeight.js +30 -55
- package/dist/Atomic/UI/Tag/Tag.js +24 -52
- package/dist/Atomic/UI/Tag/Tag.scss +12 -11
- package/dist/Atomic/UI/TagList/TagList.js +83 -153
- package/dist/Atomic/UI/TagList/TagList.scss +1 -1
- package/dist/Atomic/UI/UserBox/UserBox.js +17 -29
- package/dist/Atomic/UI/UserBox/UserBox.scss +9 -9
- package/dist/Classes/AbortableFetch.js +283 -422
- package/dist/Classes/AnimatedHandler.js +44 -56
- package/dist/Classes/RESTAPI/index.js +154 -433
- package/dist/Classes/RESTAPI/partials/AbortableFetch.js +290 -428
- package/dist/Classes/RESTAPI/partials/ApiBase.js +26 -69
- package/dist/Classes/RESTAPI/partials/ApiRequestCreators.js +57 -275
- package/dist/Classes/RESTAPI/partials/ApiUtils.js +146 -377
- package/dist/Classes/RESTAPI/partials/CredentialsProcessing.js +173 -421
- package/dist/Classes/RESTAPI/partials/Utils.js +81 -135
- package/dist/Classes/RESTAPI/partials/_outerDependencies.js +2 -6
- package/dist/Classes/RESTAPI/partials/_utils.js +101 -395
- package/dist/Constants/index.constants.js +15 -22
- package/dist/Functions/Portal.js +14 -33
- package/dist/Functions/customEventListener.js +9 -24
- package/dist/Functions/fieldValueFormatters.js +181 -260
- package/dist/Functions/hooks/useFormFieldsChangesManager.js +75 -137
- package/dist/Functions/locale/createTranslator.js +14 -39
- package/dist/Functions/operations.js +44 -58
- package/dist/Functions/presets/inputMaskPresets.js +59 -61
- package/dist/Functions/presets/inputPresets.js +21 -24
- package/dist/Functions/presets/mobileKeyboardTypesPresets.js +9 -11
- package/dist/Functions/schemas.js +14 -23
- package/dist/Functions/useBodyScrollLock.js +20 -0
- package/dist/Functions/useClickOutside.js +5 -9
- package/dist/Functions/useDebounce.js +11 -25
- package/dist/Functions/useFieldFocus.js +42 -71
- package/dist/Functions/useFormTools/form-drivers/ArrayWithObjects.js +35 -54
- package/dist/Functions/useFormTools/form-drivers/ObjectWithIterableObjects.js +78 -99
- package/dist/Functions/useFormTools/form-drivers/ObjectWithNamedKeyObjects.js +55 -91
- package/dist/Functions/useFormTools/functions/General.js +82 -101
- package/dist/Functions/useFormTools/functions/RenderFields.js +49 -76
- package/dist/Functions/useFormTools/functions/usePrevious.js +3 -7
- package/dist/Functions/useFormTools/index.js +386 -604
- package/dist/Functions/useInputHighlightError.js +27 -52
- package/dist/Functions/useIsMobile.js +13 -36
- package/dist/Functions/useKeyPress/useHandleKeyPress.js +44 -0
- package/dist/Functions/useKeyPress/useKeyPress.js +38 -0
- package/dist/Functions/useLocalStorage.js +9 -35
- package/dist/Functions/useLocationParams.js +16 -27
- package/dist/Functions/useMetaInfo.js +23 -54
- package/dist/Functions/useMouseUpOutside.js +4 -7
- package/dist/Functions/useOnlineStatus.js +12 -40
- package/dist/Functions/usePasswordChecker.js +56 -91
- package/dist/Functions/usePrevious.js +3 -19
- package/dist/Functions/useResize.js +15 -53
- package/dist/Functions/useScrollTo.js +7 -21
- package/dist/Functions/useToggle.js +10 -30
- package/dist/Functions/utils.js +199 -458
- package/dist/Molecular/CustomIcons/components/AffiliateNetworks.js +21 -32
- package/dist/Molecular/CustomIcons/components/AlertCircle.js +21 -32
- package/dist/Molecular/CustomIcons/components/AppStore.js +25 -36
- package/dist/Molecular/CustomIcons/components/Arrow.js +31 -42
- package/dist/Molecular/CustomIcons/components/ArrowDown.js +13 -24
- package/dist/Molecular/CustomIcons/components/ArrowLeft.js +16 -27
- package/dist/Molecular/CustomIcons/components/ArrowRight.js +16 -27
- package/dist/Molecular/CustomIcons/components/ArrowUp.js +13 -24
- package/dist/Molecular/CustomIcons/components/Bell.js +11 -22
- package/dist/Molecular/CustomIcons/components/Button.js +11 -22
- package/dist/Molecular/CustomIcons/components/Campaigns.js +12 -23
- package/dist/Molecular/CustomIcons/components/Check.js +12 -23
- package/dist/Molecular/CustomIcons/components/Check2.js +11 -22
- package/dist/Molecular/CustomIcons/components/ChevronDown.js +11 -22
- package/dist/Molecular/CustomIcons/components/ChevronDownDisabled.js +11 -22
- package/dist/Molecular/CustomIcons/components/ChevronLeft.js +11 -22
- package/dist/Molecular/CustomIcons/components/ChevronRight.js +11 -22
- package/dist/Molecular/CustomIcons/components/ChevronUp.js +11 -22
- package/dist/Molecular/CustomIcons/components/ChevronUpDown.js +26 -37
- package/dist/Molecular/CustomIcons/components/Close.js +13 -24
- package/dist/Molecular/CustomIcons/components/ColumnsOrder.js +38 -49
- package/dist/Molecular/CustomIcons/components/Delete.js +12 -23
- package/dist/Molecular/CustomIcons/components/Edit.js +11 -22
- package/dist/Molecular/CustomIcons/components/Email.js +29 -40
- package/dist/Molecular/CustomIcons/components/FinturfLogo.js +19 -30
- package/dist/Molecular/CustomIcons/components/FinturfLogo2.js +27 -38
- package/dist/Molecular/CustomIcons/components/Flows.js +11 -22
- package/dist/Molecular/CustomIcons/components/Gift.js +16 -27
- package/dist/Molecular/CustomIcons/components/GoogleAuth.js +25 -36
- package/dist/Molecular/CustomIcons/components/GooglePlay.js +25 -36
- package/dist/Molecular/CustomIcons/components/HelpCircle.js +14 -25
- package/dist/Molecular/CustomIcons/components/HelpCircle2.js +15 -26
- package/dist/Molecular/CustomIcons/components/HelpCircleFilled.js +14 -25
- package/dist/Molecular/CustomIcons/components/Home.js +14 -25
- package/dist/Molecular/CustomIcons/components/Home2.js +17 -28
- package/dist/Molecular/CustomIcons/components/Key.js +19 -30
- package/dist/Molecular/CustomIcons/components/Landers.js +15 -26
- package/dist/Molecular/CustomIcons/components/Lock.js +11 -22
- package/dist/Molecular/CustomIcons/components/Mail.js +19 -30
- package/dist/Molecular/CustomIcons/components/Mastercard.js +61 -72
- package/dist/Molecular/CustomIcons/components/Minus.js +24 -35
- package/dist/Molecular/CustomIcons/components/Offers.js +12 -23
- package/dist/Molecular/CustomIcons/components/Pause.js +24 -35
- package/dist/Molecular/CustomIcons/components/PayPal.js +38 -49
- package/dist/Molecular/CustomIcons/components/PayPalLightLarge.js +25 -36
- package/dist/Molecular/CustomIcons/components/Phone.js +26 -37
- package/dist/Molecular/CustomIcons/components/Play.js +24 -35
- package/dist/Molecular/CustomIcons/components/Plus.js +24 -35
- package/dist/Molecular/CustomIcons/components/Profile.js +16 -27
- package/dist/Molecular/CustomIcons/components/QRCode.js +26 -37
- package/dist/Molecular/CustomIcons/components/Rectangle.js +11 -22
- package/dist/Molecular/CustomIcons/components/Revert.js +14 -25
- package/dist/Molecular/CustomIcons/components/Star.js +10 -21
- package/dist/Molecular/CustomIcons/components/Star2.js +12 -23
- package/dist/Molecular/CustomIcons/components/TrafficSources.js +14 -25
- package/dist/Molecular/CustomIcons/components/Trash.js +11 -22
- package/dist/Molecular/CustomIcons/components/TrashRed.js +11 -22
- package/dist/Molecular/CustomIcons/components/Triggers.js +11 -22
- package/dist/Molecular/CustomIcons/components/User.js +16 -27
- package/dist/Molecular/CustomIcons/components/Visa.js +27 -38
- package/dist/Molecular/CustomIcons/components/X.js +11 -22
- package/dist/Molecular/CustomIcons/index.js +61 -183
- package/dist/Molecular/FormElement/FormElement.js +18 -27
- package/dist/Molecular/FormElement/FormElement.scss +4 -3
- package/dist/Molecular/FormWithDependOn/FormWithDependOn.js +99 -116
- package/dist/Molecular/FormWithDependOn/partials/_utils.js +35 -34
- package/dist/Molecular/InputAddress/InputAddress.js +207 -342
- package/dist/Molecular/InputAddress/InputAddress.scss +176 -112
- package/dist/Molecular/InputPassword/InputPassword.js +22 -50
- package/dist/Molecular/InputPassword/InputPassword.scss +8 -7
- package/dist/index.js +1 -3
- package/dist/scss/_fonts.scss +60 -36
- package/dist/scss/_vars.scss +18 -18
- package/dist/scss/main.scss +4 -4
- package/package.json +1 -1
- package/dist/Atomic/FormElements/UserContacts/partial/defaultIcons.js +0 -91
|
@@ -4,21 +4,20 @@
|
|
|
4
4
|
position: relative;
|
|
5
5
|
|
|
6
6
|
display: grid;
|
|
7
|
-
align-items: center;
|
|
8
7
|
justify-content: center;
|
|
8
|
+
align-items: center;
|
|
9
|
+
grid-template-columns: repeat(2, 1fr);
|
|
9
10
|
|
|
10
11
|
box-sizing: border-box;
|
|
11
12
|
padding: 2px;
|
|
12
13
|
|
|
13
|
-
border: 2px solid $color--error-bg;
|
|
14
|
-
border-radius: 26px;
|
|
15
|
-
background: #FFF;
|
|
16
|
-
|
|
17
14
|
font-size: 12px;
|
|
18
15
|
font-weight: 300;
|
|
19
|
-
|
|
20
16
|
font-style: normal;
|
|
21
|
-
|
|
17
|
+
|
|
18
|
+
border: 2px solid $color--error-bg;
|
|
19
|
+
border-radius: 26px;
|
|
20
|
+
background: #fff;
|
|
22
21
|
|
|
23
22
|
&__btn {
|
|
24
23
|
position: relative;
|
|
@@ -28,17 +27,16 @@
|
|
|
28
27
|
height: 100%;
|
|
29
28
|
padding: 0 14px;
|
|
30
29
|
|
|
31
|
-
cursor: pointer;
|
|
32
|
-
white-space: nowrap;
|
|
33
|
-
text-transform: uppercase;
|
|
34
|
-
|
|
35
|
-
color: $green;
|
|
36
|
-
|
|
37
30
|
font-family: inherit;
|
|
38
31
|
font-size: inherit;
|
|
39
32
|
font-weight: inherit;
|
|
40
33
|
font-style: inherit;
|
|
41
34
|
line-height: inherit;
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
white-space: nowrap;
|
|
37
|
+
text-transform: uppercase;
|
|
38
|
+
|
|
39
|
+
color: $green;
|
|
42
40
|
|
|
43
41
|
&_off {
|
|
44
42
|
color: $color--error;
|
|
@@ -54,11 +52,13 @@
|
|
|
54
52
|
|
|
55
53
|
width: 50%;
|
|
56
54
|
|
|
57
|
-
transition: left 0.3s ease, background-color 0.3s ease;
|
|
58
|
-
|
|
59
55
|
border-radius: 28px;
|
|
60
56
|
background-color: $color--green-light;
|
|
61
57
|
|
|
58
|
+
transition:
|
|
59
|
+
left 0.3s ease,
|
|
60
|
+
background-color 0.3s ease;
|
|
61
|
+
|
|
62
62
|
&_inactive {
|
|
63
63
|
left: 50%;
|
|
64
64
|
|
|
@@ -1,35 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
|
|
14
10
|
var _fieldValueFormatters = require("../../../Functions/fieldValueFormatters");
|
|
15
|
-
|
|
16
11
|
require("./Textarea.scss");
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
change: function change(val) {
|
|
32
|
-
var inputValue = val;
|
|
12
|
+
const RC = "textarea";
|
|
13
|
+
const Textarea = _ref => {
|
|
14
|
+
let {
|
|
15
|
+
value,
|
|
16
|
+
onChange,
|
|
17
|
+
placeholder,
|
|
18
|
+
disabled,
|
|
19
|
+
className,
|
|
20
|
+
isNotValidateASCII = false,
|
|
21
|
+
testId = ""
|
|
22
|
+
} = _ref;
|
|
23
|
+
const handle = {
|
|
24
|
+
change: val => {
|
|
25
|
+
let inputValue = val;
|
|
33
26
|
if (!isNotValidateASCII) inputValue = (0, _fieldValueFormatters.formatToOnlyASCIICodeText)(inputValue);
|
|
34
27
|
onChange(inputValue);
|
|
35
28
|
}
|
|
@@ -40,13 +33,9 @@ var Textarea = function Textarea(_ref) {
|
|
|
40
33
|
"data-testid": "textarea-".concat(testId),
|
|
41
34
|
className: "".concat(RC, "__textarea"),
|
|
42
35
|
value: value,
|
|
43
|
-
onChange:
|
|
44
|
-
return handle.change(e.target.value);
|
|
45
|
-
},
|
|
36
|
+
onChange: e => handle.change(e.target.value),
|
|
46
37
|
placeholder: placeholder,
|
|
47
38
|
disabled: disabled
|
|
48
39
|
}));
|
|
49
40
|
};
|
|
50
|
-
|
|
51
|
-
var _default = Textarea;
|
|
52
|
-
exports.default = _default;
|
|
41
|
+
var _default = exports.default = Textarea;
|
|
@@ -9,15 +9,14 @@
|
|
|
9
9
|
min-height: 99px;
|
|
10
10
|
padding: 5px 9px;
|
|
11
11
|
|
|
12
|
-
resize: none;
|
|
13
|
-
|
|
14
|
-
border: 1px solid #E2E5EC;
|
|
15
|
-
outline: none;
|
|
16
|
-
background-color: #FFF;
|
|
17
|
-
|
|
18
12
|
font-family: Roboto, sans-serif;
|
|
19
13
|
font-size: 12px;
|
|
20
14
|
font-weight: 400;
|
|
15
|
+
resize: none;
|
|
16
|
+
|
|
17
|
+
border: 1px solid #e2e5ec;
|
|
18
|
+
outline: none;
|
|
19
|
+
background-color: #fff;
|
|
21
20
|
|
|
22
21
|
@include custom-scroll2;
|
|
23
22
|
|
|
@@ -30,8 +29,8 @@
|
|
|
30
29
|
pointer-events: none;
|
|
31
30
|
|
|
32
31
|
opacity: 0.5;
|
|
33
|
-
border-color: #
|
|
34
|
-
background: #
|
|
32
|
+
border-color: #a6acb1;
|
|
33
|
+
background: #f7f8fa;
|
|
35
34
|
}
|
|
36
35
|
}
|
|
37
36
|
|
|
@@ -1,84 +1,56 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
-
|
|
7
4
|
Object.defineProperty(exports, "__esModule", {
|
|
8
5
|
value: true
|
|
9
6
|
});
|
|
10
7
|
exports.default = void 0;
|
|
11
|
-
|
|
12
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
|
-
|
|
14
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
|
-
|
|
16
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
17
|
-
|
|
18
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
19
|
-
|
|
20
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
21
|
-
|
|
22
11
|
var _utils = require("../../../Functions/utils");
|
|
23
|
-
|
|
24
12
|
var _CheckboxInput = _interopRequireDefault(require("../CheckboxInput/CheckboxInput"));
|
|
25
|
-
|
|
26
13
|
var _AccordionWithCheckbox = _interopRequireDefault(require("./partial/AccordionWithCheckbox"));
|
|
27
|
-
|
|
28
14
|
require("./TieredCheckboxes.scss");
|
|
29
|
-
|
|
30
|
-
function
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
sortGroups = _ref$sortGroups === void 0 ? false : _ref$sortGroups,
|
|
48
|
-
_ref$sortGroupItems = _ref.sortGroupItems,
|
|
49
|
-
sortGroupItems = _ref$sortGroupItems === void 0 ? false : _ref$sortGroupItems;
|
|
50
|
-
var handle = {
|
|
51
|
-
changeParent: function changeParent(value, key, prop) {
|
|
52
|
-
var parent = items.find(function (item) {
|
|
53
|
-
return item.key === key;
|
|
54
|
-
});
|
|
15
|
+
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); }
|
|
16
|
+
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 && Object.prototype.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; }
|
|
17
|
+
const RC = "tiered-checkboxes";
|
|
18
|
+
const TieredCheckboxes = _ref => {
|
|
19
|
+
let {
|
|
20
|
+
items = {},
|
|
21
|
+
className,
|
|
22
|
+
onChange,
|
|
23
|
+
isUseParentsClassesAsDataset,
|
|
24
|
+
isUseAccordionForGroup,
|
|
25
|
+
accordionIcons,
|
|
26
|
+
isOnlyOne = false,
|
|
27
|
+
sortGroups = false,
|
|
28
|
+
sortGroupItems = false
|
|
29
|
+
} = _ref;
|
|
30
|
+
const handle = {
|
|
31
|
+
changeParent: (value, key, prop) => {
|
|
32
|
+
const parent = items.find(item => item.key === key);
|
|
55
33
|
if (prop) parent[prop] = value;else parent.value = value;
|
|
56
|
-
|
|
57
34
|
if (!prop) {
|
|
58
|
-
if (value) parent.children.filter(
|
|
59
|
-
|
|
35
|
+
if (value) parent.children.filter(_ref2 => {
|
|
36
|
+
let {
|
|
37
|
+
disabled
|
|
38
|
+
} = _ref2;
|
|
60
39
|
return !disabled;
|
|
61
|
-
}).forEach(
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
40
|
+
}).forEach(item => item.value = true);else parent.children.filter(_ref3 => {
|
|
41
|
+
let {
|
|
42
|
+
disabled
|
|
43
|
+
} = _ref3;
|
|
65
44
|
return !disabled;
|
|
66
|
-
}).forEach(
|
|
67
|
-
return item.value = false;
|
|
68
|
-
});
|
|
45
|
+
}).forEach(item => item.value = false);
|
|
69
46
|
}
|
|
70
|
-
|
|
71
|
-
onChange((0, _toConsumableArray2.default)(items));
|
|
47
|
+
onChange([...items]);
|
|
72
48
|
},
|
|
73
|
-
changeChild:
|
|
49
|
+
changeChild: (value, key, parentKey) => {
|
|
74
50
|
if (isOnlyOne) {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
parent.children.find(function (item) {
|
|
79
|
-
return item.key === key;
|
|
80
|
-
}).value = value;
|
|
81
|
-
parent.children.map(function (item) {
|
|
51
|
+
const parent = items.find(item => item.key === parentKey);
|
|
52
|
+
parent.children.find(item => item.key === key).value = value;
|
|
53
|
+
parent.children.map(item => {
|
|
82
54
|
if (item.key !== key && value === true) {
|
|
83
55
|
item.disabled = true;
|
|
84
56
|
parent.disabled = true;
|
|
@@ -86,83 +58,56 @@ var TieredCheckboxes = function TieredCheckboxes(_ref) {
|
|
|
86
58
|
item.disabled = false;
|
|
87
59
|
parent.disabled = false;
|
|
88
60
|
} else item.disabled = false;
|
|
89
|
-
|
|
90
61
|
return item;
|
|
91
62
|
});
|
|
92
63
|
parent.disabled = true;
|
|
93
64
|
} else {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
_parent.children.find(function (item) {
|
|
99
|
-
return item.key === key;
|
|
100
|
-
}).value = value;
|
|
101
|
-
if (_parent.children.every(function (item) {
|
|
102
|
-
return item.value;
|
|
103
|
-
})) _parent.value = true;else _parent.value = false;
|
|
65
|
+
const parent = items.find(item => item.key === parentKey);
|
|
66
|
+
parent.children.find(item => item.key === key).value = value;
|
|
67
|
+
if (parent.children.every(item => item.value)) parent.value = true;else parent.value = false;
|
|
104
68
|
}
|
|
105
|
-
|
|
106
|
-
onChange((0, _toConsumableArray2.default)(items));
|
|
69
|
+
onChange([...items]);
|
|
107
70
|
},
|
|
108
|
-
isAllChecked:
|
|
109
|
-
return (item === null || item === void 0 ? void 0 : item.children.some(
|
|
110
|
-
return item.value;
|
|
111
|
-
})) && !(item !== null && item !== void 0 && item.children.every(function (item) {
|
|
112
|
-
return item.value;
|
|
113
|
-
}));
|
|
71
|
+
isAllChecked: item => {
|
|
72
|
+
return (item === null || item === void 0 ? void 0 : item.children.some(item => item.value)) && !(item !== null && item !== void 0 && item.children.every(item => item.value));
|
|
114
73
|
}
|
|
115
74
|
};
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
75
|
+
const preparedItems = (0, _react.useMemo)(() => {
|
|
76
|
+
let newItems = [...items];
|
|
119
77
|
if (sortGroups) {
|
|
120
78
|
var _newItems;
|
|
121
|
-
|
|
122
79
|
newItems = (_newItems = newItems) === null || _newItems === void 0 ? void 0 : _newItems.sort(_utils.compareAlphabetical);
|
|
123
80
|
}
|
|
124
|
-
|
|
125
81
|
if (sortGroupItems) {
|
|
126
82
|
var _newItems2;
|
|
127
|
-
|
|
128
|
-
newItems = (_newItems2 = newItems) === null || _newItems2 === void 0 ? void 0 : _newItems2.map(function (parent) {
|
|
83
|
+
newItems = (_newItems2 = newItems) === null || _newItems2 === void 0 ? void 0 : _newItems2.map(parent => {
|
|
129
84
|
if (parent !== null && parent !== void 0 && parent.children) {
|
|
130
85
|
var _parent$children;
|
|
131
|
-
|
|
132
|
-
parent.children = parent === null || parent === void 0 ? void 0 : (_parent$children = parent.children) === null || _parent$children === void 0 ? void 0 : _parent$children.sort(_utils.compareAlphabetical);
|
|
86
|
+
parent.children = parent === null || parent === void 0 || (_parent$children = parent.children) === null || _parent$children === void 0 ? void 0 : _parent$children.sort(_utils.compareAlphabetical);
|
|
133
87
|
}
|
|
134
|
-
|
|
135
88
|
return parent;
|
|
136
89
|
});
|
|
137
90
|
}
|
|
138
|
-
|
|
139
91
|
return newItems;
|
|
140
92
|
}, [items]);
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
onChange: function onChange(value) {
|
|
153
|
-
return handle.changeChild(value, child.key, parent.key);
|
|
154
|
-
}
|
|
155
|
-
}));
|
|
156
|
-
});
|
|
93
|
+
const renderInner = parent => {
|
|
94
|
+
return parent.children && parent.children.map(child => /*#__PURE__*/_react.default.createElement("div", {
|
|
95
|
+
key: child.key,
|
|
96
|
+
className: "".concat(RC, "__children")
|
|
97
|
+
}, /*#__PURE__*/_react.default.createElement(_CheckboxInput.default, {
|
|
98
|
+
testId: child.key,
|
|
99
|
+
label: child.label,
|
|
100
|
+
value: child.value,
|
|
101
|
+
disabled: child === null || child === void 0 ? void 0 : child.disabled,
|
|
102
|
+
onChange: value => handle.changeChild(value, child.key, parent.key)
|
|
103
|
+
})));
|
|
157
104
|
};
|
|
158
|
-
|
|
159
105
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
160
106
|
className: (0, _classnames.default)(RC, className)
|
|
161
|
-
}, preparedItems.map(
|
|
162
|
-
|
|
163
|
-
|
|
107
|
+
}, preparedItems.map(parent => {
|
|
108
|
+
const datasetProp = isUseParentsClassesAsDataset && parent !== null && parent !== void 0 && parent.className ? {
|
|
109
|
+
"data-key": parent === null || parent === void 0 ? void 0 : parent.className
|
|
164
110
|
} : {};
|
|
165
|
-
|
|
166
111
|
if (isUseAccordionForGroup) {
|
|
167
112
|
return /*#__PURE__*/_react.default.createElement(_AccordionWithCheckbox.default, {
|
|
168
113
|
key: parent.key,
|
|
@@ -171,29 +116,26 @@ var TieredCheckboxes = function TieredCheckboxes(_ref) {
|
|
|
171
116
|
datasetProp: datasetProp,
|
|
172
117
|
isUseParentsClassesAsDataset: isUseParentsClassesAsDataset,
|
|
173
118
|
className: "".concat(RC, "__mono-accordion"),
|
|
174
|
-
setIsOpen:
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
return handle.changeParent(value, parent.key);
|
|
179
|
-
},
|
|
180
|
-
icon: !parent.isOpen ? (accordionIcons === null || accordionIcons === void 0 ? void 0 : accordionIcons[0]) || null : (accordionIcons === null || accordionIcons === void 0 ? void 0 : accordionIcons[1]) || null // disabled={parent.children?.every?.((child) => child.disabled)}
|
|
181
|
-
|
|
119
|
+
setIsOpen: () => handle.changeParent(!parent.isOpen, parent.key, "isOpen"),
|
|
120
|
+
onChange: value => handle.changeParent(value, parent.key),
|
|
121
|
+
icon: !parent.isOpen ? (accordionIcons === null || accordionIcons === void 0 ? void 0 : accordionIcons[0]) || null : (accordionIcons === null || accordionIcons === void 0 ? void 0 : accordionIcons[1]) || null
|
|
122
|
+
// disabled={parent.children?.every?.((child) => child.disabled)}
|
|
182
123
|
}, renderInner(parent));
|
|
183
124
|
}
|
|
184
|
-
|
|
185
125
|
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, datasetProp, {
|
|
186
126
|
key: parent.key,
|
|
187
|
-
className: (0, _classnames.default)("".concat(RC, "__parents"),
|
|
127
|
+
className: (0, _classnames.default)("".concat(RC, "__parents"), {
|
|
128
|
+
["".concat(parent.className)]: !isUseParentsClassesAsDataset
|
|
129
|
+
})
|
|
188
130
|
}), /*#__PURE__*/_react.default.createElement(_CheckboxInput.default, {
|
|
189
131
|
isStark: handle.isAllChecked(parent),
|
|
190
132
|
label: parent.label,
|
|
191
133
|
value: parent.value,
|
|
192
|
-
onChange:
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
134
|
+
onChange: value => handle.changeParent(value, parent.key),
|
|
135
|
+
disabled: parent.children.every(_ref4 => {
|
|
136
|
+
let {
|
|
137
|
+
disabled
|
|
138
|
+
} = _ref4;
|
|
197
139
|
return disabled === true;
|
|
198
140
|
}) || parent.disabled
|
|
199
141
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -201,6 +143,4 @@ var TieredCheckboxes = function TieredCheckboxes(_ref) {
|
|
|
201
143
|
}, renderInner(parent)));
|
|
202
144
|
}));
|
|
203
145
|
};
|
|
204
|
-
|
|
205
|
-
var _default = TieredCheckboxes;
|
|
206
|
-
exports.default = _default;
|
|
146
|
+
var _default = exports.default = TieredCheckboxes;
|
|
@@ -15,21 +15,20 @@
|
|
|
15
15
|
&__description-checked {
|
|
16
16
|
padding-left: 21px;
|
|
17
17
|
|
|
18
|
-
letter-spacing: 0.2px;
|
|
19
|
-
|
|
20
|
-
color: #757F8C;
|
|
21
|
-
|
|
22
18
|
font-size: 10px;
|
|
23
19
|
font-weight: 400;
|
|
24
20
|
font-style: normal;
|
|
25
21
|
line-height: 18px;
|
|
22
|
+
letter-spacing: 0.2px;
|
|
23
|
+
|
|
24
|
+
color: #757f8c;
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
.mono-accordion {
|
|
29
|
-
box-shadow: inset 0 -1px 0 #
|
|
28
|
+
box-shadow: inset 0 -1px 0 #ebeff2;
|
|
30
29
|
|
|
31
30
|
&_is-open {
|
|
32
|
-
border-bottom: 1px solid #
|
|
31
|
+
border-bottom: 1px solid #ebeff2;
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
&__head {
|
|
@@ -1,66 +1,55 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
|
-
|
|
10
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
-
|
|
12
8
|
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
|
|
14
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
|
-
|
|
16
10
|
var _MonoAccordion = _interopRequireDefault(require("../../../UI/MonoAccordion/MonoAccordion"));
|
|
17
|
-
|
|
18
11
|
var _CheckboxInput = _interopRequireDefault(require("../../CheckboxInput/CheckboxInput"));
|
|
19
|
-
|
|
20
12
|
require("../TieredCheckboxes.scss");
|
|
21
|
-
|
|
22
|
-
var AccordionWithCheckbox = function AccordionWithCheckbox(_ref) {
|
|
13
|
+
const AccordionWithCheckbox = _ref => {
|
|
23
14
|
var _parent$children, _parent$children$some, _parent$children2, _parent$children2$eve, _parent$children3, _parent$children4;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
15
|
+
let {
|
|
16
|
+
children,
|
|
17
|
+
parent,
|
|
18
|
+
onChange,
|
|
19
|
+
className,
|
|
20
|
+
RC,
|
|
21
|
+
setIsOpen,
|
|
22
|
+
icon,
|
|
23
|
+
disabled,
|
|
24
|
+
datasetProp,
|
|
25
|
+
isUseParentsClassesAsDataset
|
|
26
|
+
} = _ref;
|
|
35
27
|
return /*#__PURE__*/_react.default.createElement(_MonoAccordion.default, {
|
|
36
28
|
datasetProp: datasetProp,
|
|
37
|
-
className: (0, _classnames.default)(className,
|
|
29
|
+
className: (0, _classnames.default)(className, {
|
|
30
|
+
["".concat(parent.className)]: !isUseParentsClassesAsDataset
|
|
31
|
+
}),
|
|
38
32
|
isOpen: parent.isOpen,
|
|
39
33
|
onClick: setIsOpen,
|
|
40
34
|
icon: icon,
|
|
41
|
-
disabled: disabled
|
|
35
|
+
disabled: disabled
|
|
36
|
+
// disabled={parent.children?.every?.((child) => child.disabled)}
|
|
42
37
|
,
|
|
43
38
|
titleJSX: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_CheckboxInput.default, {
|
|
44
39
|
className: "".concat(RC, "__checkbox-input"),
|
|
45
|
-
isStark: (parent === null || parent === void 0
|
|
46
|
-
return item.value;
|
|
47
|
-
})) && !(parent !== null && parent !== void 0 && (_parent$children2 = parent.children) !== null && _parent$children2 !== void 0 && (_parent$children2$eve = _parent$children2.every) !== null && _parent$children2$eve !== void 0 && _parent$children2$eve.call(_parent$children2, function (item) {
|
|
48
|
-
return item.value;
|
|
49
|
-
})),
|
|
40
|
+
isStark: (parent === null || parent === void 0 || (_parent$children = parent.children) === null || _parent$children === void 0 || (_parent$children$some = _parent$children.some) === null || _parent$children$some === void 0 ? void 0 : _parent$children$some.call(_parent$children, item => item.value)) && !(parent !== null && parent !== void 0 && (_parent$children2 = parent.children) !== null && _parent$children2 !== void 0 && (_parent$children2$eve = _parent$children2.every) !== null && _parent$children2$eve !== void 0 && _parent$children2$eve.call(_parent$children2, item => item.value)),
|
|
50
41
|
label: parent.label,
|
|
51
42
|
value: parent.value,
|
|
52
43
|
onChange: onChange,
|
|
53
|
-
disabled: parent.children.every(
|
|
54
|
-
|
|
44
|
+
disabled: parent.children.every(_ref2 => {
|
|
45
|
+
let {
|
|
46
|
+
disabled
|
|
47
|
+
} = _ref2;
|
|
55
48
|
return disabled === true;
|
|
56
49
|
}) || parent.disabled
|
|
57
50
|
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
58
51
|
className: "".concat(RC, "__description-checked")
|
|
59
|
-
}, parent !== null && parent !== void 0 && (_parent$children3 = parent.children) !== null && _parent$children3 !== void 0 && _parent$children3.length ? "Selected ".concat(parent.children.filter(
|
|
60
|
-
return child.value;
|
|
61
|
-
}).length, " from ").concat((_parent$children4 = parent.children) === null || _parent$children4 === void 0 ? void 0 : _parent$children4.length) : null))
|
|
52
|
+
}, parent !== null && parent !== void 0 && (_parent$children3 = parent.children) !== null && _parent$children3 !== void 0 && _parent$children3.length ? "Selected ".concat(parent.children.filter(child => child.value).length, " from ").concat((_parent$children4 = parent.children) === null || _parent$children4 === void 0 ? void 0 : _parent$children4.length) : null))
|
|
62
53
|
}, children);
|
|
63
54
|
};
|
|
64
|
-
|
|
65
|
-
var _default = AccordionWithCheckbox;
|
|
66
|
-
exports.default = _default;
|
|
55
|
+
var _default = exports.default = AccordionWithCheckbox;
|