@skbkontur/react-ui 1.6.4 → 1.6.8-fixed-modal-stack
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/README.md +135 -135
- package/components/Autocomplete/Autocomplete.adapter.d.ts +2 -2
- package/components/Autocomplete/Autocomplete.adapter.js.flow +4 -4
- package/components/Autocomplete/Autocomplete.d.ts +108 -108
- package/components/Autocomplete/Autocomplete.js +23 -23
- package/components/Autocomplete/Autocomplete.js.flow +37 -37
- package/components/Autocomplete/README.md +7 -7
- package/components/Autocomplete/index.d.ts +1 -1
- package/components/Autocomplete/index.js.flow +2 -2
- package/components/Button/Button.adapter.d.ts +3 -3
- package/components/Button/Button.adapter.js.flow +4 -4
- package/components/Button/Button.d.ts +98 -98
- package/components/Button/Button.js +4 -4
- package/components/Button/Button.js.flow +58 -58
- package/components/Button/Button.mixins.d.ts +4 -4
- package/components/Button/Button.styles.d.ts +22 -22
- package/components/Button/Corners.d.ts +7 -7
- package/components/Button/Corners.js.flow +12 -12
- package/components/Button/README.md +85 -85
- package/components/Button/index.d.ts +1 -1
- package/components/Button/index.js.flow +2 -2
- package/components/Calendar/Animation.d.ts +6 -6
- package/components/Calendar/Animation.js.flow +7 -7
- package/components/Calendar/Calendar.d.ts +61 -61
- package/components/Calendar/Calendar.js +3 -3
- package/components/Calendar/Calendar.js.flow +33 -33
- package/components/Calendar/Calendar.styles.d.ts +5 -5
- package/components/Calendar/CalendarDateShape.d.ts +14 -14
- package/components/Calendar/CalendarDateShape.js.flow +26 -26
- package/components/Calendar/CalendarScrollEvents.d.ts +9 -9
- package/components/Calendar/CalendarScrollEvents.js.flow +15 -15
- package/components/Calendar/CalendarUtils.d.ts +18 -18
- package/components/Calendar/CalendarUtils.js.flow +35 -35
- package/components/Calendar/DayCellView.d.ts +19 -19
- package/components/Calendar/DayCellView.js.flow +16 -16
- package/components/Calendar/DayCellView.styles.d.ts +8 -8
- package/components/Calendar/DayCellViewModel.d.ts +8 -8
- package/components/Calendar/DayCellViewModel.js.flow +9 -9
- package/components/Calendar/Month.d.ts +31 -31
- package/components/Calendar/Month.js.flow +23 -23
- package/components/Calendar/MonthView.d.ts +25 -25
- package/components/Calendar/MonthView.js.flow +24 -24
- package/components/Calendar/MonthView.styles.d.ts +6 -6
- package/components/Calendar/MonthViewModel.d.ts +13 -13
- package/components/Calendar/MonthViewModel.js.flow +16 -16
- package/components/Calendar/config.d.ts +25 -25
- package/components/Calendar/config.js +11 -11
- package/components/Calendar/config.js.flow +11 -11
- package/components/Calendar/index.d.ts +1 -1
- package/components/Calendar/index.js.flow +2 -2
- package/components/Calendar/presets.d.ts +19 -19
- package/components/Calendar/presets.js.flow +21 -21
- package/components/Calendar/stepper.d.ts +1 -1
- package/components/Calendar/stepper.js.flow +2 -2
- package/components/Calendar/utils.d.ts +1 -1
- package/components/Calendar/utils.js.flow +2 -2
- package/components/Center/Center.d.ts +26 -26
- package/components/Center/Center.js +3 -3
- package/components/Center/Center.js.flow +15 -15
- package/components/Center/README.md +5 -5
- package/components/Center/index.d.ts +1 -1
- package/components/Center/index.js.flow +2 -2
- package/components/Checkbox/Checkbox.adapter.d.ts +2 -2
- package/components/Checkbox/Checkbox.adapter.js.flow +4 -4
- package/components/Checkbox/Checkbox.d.ts +76 -76
- package/components/Checkbox/Checkbox.js +12 -12
- package/components/Checkbox/Checkbox.js.flow +27 -27
- package/components/Checkbox/Checkbox.styles.d.ts +21 -21
- package/components/Checkbox/README.md +61 -61
- package/components/Checkbox/index.d.ts +1 -1
- package/components/Checkbox/index.js.flow +2 -2
- package/components/ComboBox/ComboBox.d.ts +177 -177
- package/components/ComboBox/ComboBox.js +20 -20
- package/components/ComboBox/ComboBox.js.flow +58 -58
- package/components/ComboBox/README.md +423 -423
- package/components/ComboBox/__mocks__/getCities.js.map +1 -1
- package/components/ComboBox/__mocks__/kladr.json +20002 -20002
- package/components/ComboBox/index.d.ts +1 -1
- package/components/ComboBox/index.js.flow +2 -2
- package/components/ComboBoxOld/ComboBoxOld.adapter.js +1 -1
- package/components/ComboBoxOld/ComboBoxOld.adapter.js.map +1 -1
- package/components/ComboBoxOld/ComboBoxOld.d.ts +120 -120
- package/components/ComboBoxOld/ComboBoxOld.js +47 -47
- package/components/ComboBoxOld/ComboBoxOld.js.map +1 -1
- package/components/ComboBoxOld/ComboBoxRenderer.js +1 -1
- package/components/ComboBoxOld/ComboBoxRenderer.js.map +1 -1
- package/components/ComboBoxOld/README.md +83 -83
- package/components/ComboBoxOld/index.d.ts +1 -1
- package/components/ComboBoxOld/index.js.map +1 -1
- package/components/CurrencyInput/CurrencyHelper.d.ts +38 -38
- package/components/CurrencyInput/CurrencyHelper.js.flow +44 -44
- package/components/CurrencyInput/CurrencyInput.d.ts +98 -98
- package/components/CurrencyInput/CurrencyInput.js +11 -11
- package/components/CurrencyInput/CurrencyInput.js.flow +30 -30
- package/components/CurrencyInput/CurrencyInputHelper.d.ts +20 -20
- package/components/CurrencyInput/CurrencyInputHelper.js.flow +38 -38
- package/components/CurrencyInput/CurrencyInputKeyboardActions.d.ts +18 -18
- package/components/CurrencyInput/CurrencyInputKeyboardActions.js.flow +19 -19
- package/components/CurrencyInput/CursorHelper.d.ts +10 -10
- package/components/CurrencyInput/CursorHelper.js.flow +15 -15
- package/components/CurrencyInput/README.md +19 -19
- package/components/CurrencyInput/SelectionHelper.d.ts +11 -11
- package/components/CurrencyInput/SelectionHelper.js.flow +16 -16
- package/components/CurrencyInput/constants.d.ts +2 -2
- package/components/CurrencyInput/index.d.ts +1 -1
- package/components/CurrencyInput/index.js.flow +2 -2
- package/components/CurrencyLabel/CurrencyLabel.d.ts +23 -23
- package/components/CurrencyLabel/CurrencyLabel.js.flow +10 -10
- package/components/CurrencyLabel/README.md +23 -23
- package/components/CurrencyLabel/index.d.ts +1 -1
- package/components/CurrencyLabel/index.js.flow +2 -2
- package/components/CustomComboBox/ComboBoxMenu.d.ts +31 -31
- package/components/CustomComboBox/ComboBoxMenu.js.flow +22 -22
- package/components/CustomComboBox/ComboBoxView.d.ts +76 -76
- package/components/CustomComboBox/ComboBoxView.js.flow +52 -52
- package/components/CustomComboBox/CustomComboBox.d.ts +129 -129
- package/components/CustomComboBox/CustomComboBox.js +16 -16
- package/components/CustomComboBox/CustomComboBox.js.flow +130 -130
- package/components/CustomComboBox/CustomComboBoxReducer.d.ts +73 -73
- package/components/CustomComboBox/CustomComboBoxTypes.d.ts +6 -6
- package/components/CustomComboBox/index.d.ts +1 -1
- package/components/CustomComboBox/index.js.flow +2 -2
- package/components/CustomComboBox/locale/index.d.ts +4 -4
- package/components/CustomComboBox/locale/locales/en.d.ts +3 -3
- package/components/CustomComboBox/locale/locales/ru.d.ts +3 -3
- package/components/CustomComboBox/locale/types.d.ts +5 -5
- package/components/DateInput/DateFragmentsView.d.ts +17 -17
- package/components/DateInput/DateFragmentsView.styles.d.ts +7 -7
- package/components/DateInput/DateInput.d.ts +107 -107
- package/components/DateInput/DateInput.js.flow +60 -60
- package/components/DateInput/DateInput.styles.d.ts +9 -9
- package/components/DateInput/README.md +104 -104
- package/components/DateInput/ViewDateInputValidateChecks.d.ts +10 -10
- package/components/DateInput/helpers/DateInputKeyboardActions.d.ts +21 -21
- package/components/DateInput/helpers/DateInputKeyboardActions.js.flow +17 -17
- package/components/DateInput/helpers/SelectionHelpers.d.ts +2 -2
- package/components/DateInput/helpers/SelectionHelpers.js.flow +3 -3
- package/components/DateInput/helpers/inputNumber.d.ts +2 -2
- package/components/DateInput/helpers/inputNumber.js.flow +4 -4
- package/components/DateInput/index.d.ts +1 -1
- package/components/DateInput/index.js.flow +2 -2
- package/components/DatePicker/DatePicker.d.ts +116 -116
- package/components/DatePicker/DatePicker.js +15 -15
- package/components/DatePicker/DatePicker.js.flow +45 -45
- package/components/DatePicker/DatePickerHelpers.d.ts +2 -2
- package/components/DatePicker/DatePickerHelpers.js.flow +7 -7
- package/components/DatePicker/DateShape.js.flow +11 -11
- package/components/DatePicker/Picker.d.ts +32 -32
- package/components/DatePicker/Picker.js.flow +23 -23
- package/components/DatePicker/Picker.styles.d.ts +6 -6
- package/components/DatePicker/README.md +307 -307
- package/components/DatePicker/index.d.ts +1 -1
- package/components/DatePicker/index.js.flow +2 -2
- package/components/DatePicker/locale/index.d.ts +5 -5
- package/components/DatePicker/locale/locales/en.d.ts +3 -3
- package/components/DatePicker/locale/locales/ru.d.ts +3 -3
- package/components/DatePicker/locale/types.d.ts +5 -5
- package/components/DatePickerOld/Calendar.js +1 -1
- package/components/DatePickerOld/Calendar.js.map +1 -1
- package/components/DatePickerOld/Calendar.module.css +0 -0
- package/components/DatePickerOld/CalendarCell.js +0 -0
- package/components/DatePickerOld/CalendarCell.js.map +1 -1
- package/components/DatePickerOld/DateInput.js +3 -3
- package/components/DatePickerOld/DateInput.js.map +1 -1
- package/components/DatePickerOld/DatePicker.adapter.js +0 -0
- package/components/DatePickerOld/DatePicker.adapter.js.map +1 -1
- package/components/DatePickerOld/DatePickerOld.d.ts +35 -35
- package/components/DatePickerOld/DatePickerOld.js +17 -17
- package/components/DatePickerOld/DatePickerOld.js.map +1 -1
- package/components/DatePickerOld/Picker.js +1 -1
- package/components/DatePickerOld/Picker.js.map +1 -1
- package/components/DatePickerOld/Picker.module.css +0 -0
- package/components/DatePickerOld/README.md +7 -7
- package/components/DatePickerOld/dateParser.js +0 -0
- package/components/DatePickerOld/dateParser.js.map +1 -1
- package/components/DatePickerOld/index.d.ts +1 -1
- package/components/DatePickerOld/index.js +0 -0
- package/components/DatePickerOld/index.js.map +1 -1
- package/components/DateSelect/DateSelect.d.ts +89 -89
- package/components/DateSelect/DateSelect.js +4 -4
- package/components/DateSelect/DateSelect.js.flow +30 -30
- package/components/DateSelect/DateSelect.styles.d.ts +13 -13
- package/components/DateSelect/index.d.ts +1 -1
- package/components/DateSelect/index.js.flow +2 -2
- package/components/Dropdown/Dropdown.d.ts +119 -119
- package/components/Dropdown/Dropdown.js +24 -24
- package/components/Dropdown/Dropdown.js.flow +41 -41
- package/components/Dropdown/README.md +14 -14
- package/components/Dropdown/index.d.ts +1 -1
- package/components/Dropdown/index.js.flow +2 -2
- package/components/DropdownContainer/DropdownContainer.d.ts +45 -45
- package/components/DropdownContainer/DropdownContainer.js.flow +29 -29
- package/components/DropdownMenu/DropdownMenu.d.ts +45 -45
- package/components/DropdownMenu/DropdownMenu.js +2 -2
- package/components/DropdownMenu/DropdownMenu.js.flow +20 -20
- package/components/DropdownMenu/README.md +66 -66
- package/components/DropdownMenu/index.d.ts +1 -1
- package/components/DropdownMenu/index.js.flow +2 -2
- package/components/Fias/Fias.d.ts +133 -133
- package/components/Fias/Fias.js.flow +37 -37
- package/components/Fias/Fias.styles.d.ts +6 -6
- package/components/Fias/FiasModal.d.ts +14 -14
- package/components/Fias/FiasModal.js.flow +12 -12
- package/components/Fias/FiasSearch/FiasSearch.d.ts +53 -53
- package/components/Fias/FiasSearch/FiasSearch.js.flow +32 -32
- package/components/Fias/FiasSearch/README.md +78 -78
- package/components/Fias/Form/FiasComboBox.d.ts +39 -39
- package/components/Fias/Form/FiasComboBox.js.flow +25 -25
- package/components/Fias/Form/FiasCountrySelector.d.ts +20 -20
- package/components/Fias/Form/FiasForm.d.ts +94 -94
- package/components/Fias/Form/FiasForm.js.flow +21 -21
- package/components/Fias/README.md +436 -436
- package/components/Fias/api/APIResultFactory.d.ts +5 -5
- package/components/Fias/api/APIResultFactory.js.flow +7 -7
- package/components/Fias/api/FiasAPI.d.ts +27 -27
- package/components/Fias/api/FiasAPI.js.flow +13 -13
- package/components/Fias/api/MockAPI.d.ts +9 -9
- package/components/Fias/api/MockAPI.js.flow +13 -13
- package/components/Fias/api/data.json +285 -285
- package/components/Fias/constants/abbreviations.d.ts +4 -4
- package/components/Fias/constants/abbreviations.js.flow +7 -7
- package/components/Fias/index.d.ts +4 -4
- package/components/Fias/index.js.flow +5 -5
- package/components/Fias/locale/index.d.ts +4 -4
- package/components/Fias/locale/locales/ru.d.ts +3 -3
- package/components/Fias/locale/types.d.ts +56 -56
- package/components/Fias/locale/types.js.flow +71 -71
- package/components/Fias/logger/Logger.d.ts +9 -9
- package/components/Fias/logger/Logger.js.flow +13 -13
- package/components/Fias/models/Address.d.ts +97 -97
- package/components/Fias/models/Address.js.flow +57 -57
- package/components/Fias/models/AddressElement.d.ts +18 -18
- package/components/Fias/models/AddressElement.js.flow +15 -15
- package/components/Fias/models/FiasData.d.ts +20 -20
- package/components/Fias/models/FiasData.js.flow +10 -10
- package/components/Fias/types.d.ts +142 -142
- package/components/Fias/types.js.flow +133 -133
- package/components/FxInput/FxInput.adapter.d.ts +2 -2
- package/components/FxInput/FxInput.adapter.js.flow +4 -4
- package/components/FxInput/FxInput.d.ts +44 -44
- package/components/FxInput/FxInput.js +4 -4
- package/components/FxInput/FxInput.js.flow +24 -24
- package/components/FxInput/README.md +13 -13
- package/components/FxInput/index.d.ts +1 -1
- package/components/FxInput/index.js.flow +2 -2
- package/components/Gapped/Gapped.d.ts +35 -35
- package/components/Gapped/Gapped.js +8 -8
- package/components/Gapped/Gapped.js.flow +13 -13
- package/components/Gapped/README.md +6 -6
- package/components/Gapped/index.d.ts +1 -1
- package/components/Gapped/index.js.flow +2 -2
- package/components/Group/Group.d.ts +23 -23
- package/components/Group/Group.js +3 -3
- package/components/Group/Group.js.flow +14 -14
- package/components/Group/README.md +27 -27
- package/components/Group/index.d.ts +1 -1
- package/components/Group/index.js.flow +2 -2
- package/components/HideBodyVerticalScroll/HideBodyVerticalScroll.d.ts +15 -15
- package/components/HideBodyVerticalScroll/HideBodyVerticalScroll.js.flow +7 -7
- package/components/HideBodyVerticalScroll/index.d.ts +1 -1
- package/components/HideBodyVerticalScroll/index.js.flow +2 -2
- package/components/Hint/Hint.d.ts +38 -38
- package/components/Hint/Hint.js.flow +37 -37
- package/components/Hint/README.md +3 -3
- package/components/Hint/index.d.ts +1 -1
- package/components/Hint/index.js.flow +2 -2
- package/components/Icon/20px/Icon.d.ts +32 -32
- package/components/Icon/20px/Icon.js +2 -2
- package/components/Icon/20px/Icon.js.flow +27 -27
- package/components/Icon/20px/index.d.ts +1 -1
- package/components/Icon/20px/index.js.flow +2 -2
- package/components/Icon/README.md +64 -64
- package/components/IgnoreLayerClick/IgnoreLayerClick.d.ts +8 -8
- package/components/IgnoreLayerClick/IgnoreLayerClick.js.flow +12 -12
- package/components/IgnoreLayerClick/index.d.ts +1 -1
- package/components/IgnoreLayerClick/index.js.flow +2 -2
- package/components/Input/Input.adapter.d.ts +7 -7
- package/components/Input/Input.adapter.js.flow +9 -9
- package/components/Input/Input.d.ts +146 -146
- package/components/Input/Input.js +13 -13
- package/components/Input/Input.js.flow +55 -55
- package/components/Input/Input.styles.d.ts +18 -18
- package/components/Input/README.md +13 -13
- package/components/Input/index.d.ts +1 -1
- package/components/Input/index.js.flow +2 -2
- package/components/Kebab/Kebab.d.ts +60 -60
- package/components/Kebab/Kebab.js +6 -6
- package/components/Kebab/Kebab.js.flow +23 -23
- package/components/Kebab/Kebab.styles.d.ts +6 -6
- package/components/Kebab/README.md +44 -44
- package/components/Kebab/index.d.ts +1 -1
- package/components/Kebab/index.js.flow +2 -2
- package/components/Kladr/AddressModal.d.ts +39 -39
- package/components/Kladr/AddressModal.js +1 -1
- package/components/Kladr/AddressModal.js.flow +20 -20
- package/components/Kladr/AddressModal.js.map +1 -1
- package/components/Kladr/Kladr.d.ts +39 -39
- package/components/Kladr/Kladr.js +4 -4
- package/components/Kladr/Kladr.js.flow +27 -27
- package/components/Kladr/Kladr.js.map +1 -1
- package/components/Kladr/KladrAPI.d.ts +8 -8
- package/components/Kladr/KladrAPI.js.flow +8 -8
- package/components/Kladr/KladrAPI.js.map +1 -1
- package/components/Kladr/README.md +3 -3
- package/components/Kladr/Types.d.ts +40 -40
- package/components/Kladr/Types.js.flow +39 -39
- package/components/Kladr/index.d.ts +1 -1
- package/components/Kladr/index.js.flow +2 -2
- package/components/Kladr/index.js.map +1 -1
- package/components/Kladr/util.js.map +1 -1
- package/components/Kladr/utils.d.ts +4 -4
- package/components/Kladr/utils.js.flow +4 -4
- package/components/Link/Link.adapter.d.ts +2 -2
- package/components/Link/Link.adapter.js.flow +4 -4
- package/components/Link/Link.d.ts +51 -51
- package/components/Link/Link.js +5 -5
- package/components/Link/Link.js.flow +25 -25
- package/components/Link/Link.styles.d.ts +8 -8
- package/components/Link/README.md +11 -11
- package/components/Link/index.d.ts +1 -1
- package/components/Link/index.js.flow +2 -2
- package/components/Loader/Loader.d.ts +65 -65
- package/components/Loader/Loader.js +22 -23
- package/components/Loader/Loader.js.flow +20 -20
- package/components/Loader/Loader.js.map +1 -1
- package/components/Loader/Loader.module.css +1 -6
- package/components/Loader/Loader.styles.d.ts +5 -5
- package/components/Loader/Loader.styles.js +1 -2
- package/components/Loader/Loader.styles.js.map +1 -1
- package/components/Loader/README.md +25 -25
- package/components/Loader/index.d.ts +1 -1
- package/components/Loader/index.js.flow +2 -2
- package/components/LocaleProvider/LocaleHelper.d.ts +9 -9
- package/components/LocaleProvider/LocaleProvider.d.ts +16 -16
- package/components/LocaleProvider/constants.d.ts +2 -2
- package/components/LocaleProvider/decorators.d.ts +24 -24
- package/components/LocaleProvider/index.d.ts +3 -3
- package/components/LocaleProvider/types.d.ts +24 -24
- package/components/Logotype/Logotype.d.ts +76 -76
- package/components/Logotype/Logotype.js.flow +21 -21
- package/components/Logotype/Logotype.styles.d.ts +6 -6
- package/components/Logotype/ProductWidget.d.ts +4 -4
- package/components/Logotype/ProductWidget.js.flow +7 -7
- package/components/Logotype/README.md +32 -32
- package/components/Logotype/index.d.ts +1 -1
- package/components/Logotype/index.js.flow +2 -2
- package/components/Logotype/locale/index.d.ts +4 -4
- package/components/Logotype/locale/locales/en.d.ts +3 -3
- package/components/Logotype/locale/locales/ru.d.ts +3 -3
- package/components/Logotype/locale/types.d.ts +4 -4
- package/components/Menu/Menu.d.ts +62 -62
- package/components/Menu/Menu.js +10 -10
- package/components/Menu/Menu.js.flow +24 -24
- package/components/Menu/Menu.styles.d.ts +6 -6
- package/components/Menu/isActiveElement.d.ts +3 -3
- package/components/Menu/isActiveElement.js.flow +7 -7
- package/components/MenuHeader/MenuHeader.d.ts +20 -20
- package/components/MenuHeader/MenuHeader.js +2 -2
- package/components/MenuHeader/MenuHeader.js.flow +11 -11
- package/components/MenuHeader/MenuHeader.styles.d.ts +5 -5
- package/components/MenuHeader/index.d.ts +1 -1
- package/components/MenuHeader/index.js.flow +2 -2
- package/components/MenuItem/MenuItem.d.ts +51 -51
- package/components/MenuItem/MenuItem.js +2 -2
- package/components/MenuItem/MenuItem.js.flow +33 -33
- package/components/MenuItem/MenuItem.styles.d.ts +10 -10
- package/components/MenuItem/README.md +5 -5
- package/components/MenuItem/index.d.ts +1 -1
- package/components/MenuItem/index.js.flow +2 -2
- package/components/MenuSeparator/MenuSeparator.d.ts +9 -9
- package/components/MenuSeparator/MenuSeparator.js +2 -2
- package/components/MenuSeparator/MenuSeparator.js.flow +7 -7
- package/components/MenuSeparator/MenuSeparator.styles.d.ts +5 -5
- package/components/MenuSeparator/index.d.ts +1 -1
- package/components/MenuSeparator/index.js.flow +2 -2
- package/components/Modal/Modal.adapter.d.ts +2 -2
- package/components/Modal/Modal.adapter.js.flow +4 -4
- package/components/Modal/Modal.d.ts +71 -71
- package/components/Modal/Modal.js +13 -13
- package/components/Modal/Modal.js.flow +30 -30
- package/components/Modal/Modal.js.map +1 -1
- package/components/Modal/Modal.module.css +2 -0
- package/components/Modal/Modal.styles.d.ts +11 -11
- package/components/Modal/ModalBody.d.ts +4 -4
- package/components/Modal/ModalBody.js.flow +7 -7
- package/components/Modal/ModalClose.d.ts +7 -7
- package/components/Modal/ModalClose.js.flow +6 -6
- package/components/Modal/ModalContext.d.ts +11 -11
- package/components/Modal/ModalContext.js.flow +15 -15
- package/components/Modal/ModalFooter.d.ts +23 -23
- package/components/Modal/ModalFooter.js +2 -2
- package/components/Modal/ModalFooter.js.flow +11 -11
- package/components/Modal/ModalHeader.d.ts +16 -16
- package/components/Modal/ModalHeader.js.flow +11 -11
- package/components/Modal/README.md +38 -38
- package/components/Modal/index.d.ts +1 -1
- package/components/Modal/index.js.flow +2 -2
- package/components/ModalStack/ModalStack.d.ts +9 -7
- package/components/ModalStack/ModalStack.js +13 -2
- package/components/ModalStack/ModalStack.js.flow +10 -10
- package/components/ModalStack/ModalStack.js.map +1 -1
- package/components/ModalStack/index.d.ts +1 -1
- package/components/ModalStack/index.js.flow +2 -2
- package/components/Paging/NavigationHelper.d.ts +10 -10
- package/components/Paging/NavigationHelper.js.flow +13 -13
- package/components/Paging/Paging.d.ts +93 -93
- package/components/Paging/Paging.js +10 -10
- package/components/Paging/Paging.js.flow +38 -38
- package/components/Paging/Paging.styles.d.ts +11 -11
- package/components/Paging/PagingHelper.d.ts +6 -6
- package/components/Paging/PagingHelper.js.flow +10 -10
- package/components/Paging/README.md +43 -43
- package/components/Paging/index.d.ts +1 -1
- package/components/Paging/index.js.flow +2 -2
- package/components/Paging/locale/index.d.ts +4 -4
- package/components/Paging/locale/locales/en.d.ts +3 -3
- package/components/Paging/locale/locales/ru.d.ts +3 -3
- package/components/Paging/locale/types.d.ts +3 -3
- package/components/PasswordInput/PasswordInput.d.ts +44 -44
- package/components/PasswordInput/PasswordInput.js +8 -8
- package/components/PasswordInput/PasswordInput.js.flow +26 -26
- package/components/PasswordInput/PasswordInputFallback.d.ts +18 -18
- package/components/PasswordInput/PasswordInputFallback.js.flow +13 -13
- package/components/PasswordInput/getCharHelper.js.flow +4 -4
- package/components/PasswordInput/index.d.ts +1 -1
- package/components/PasswordInput/index.js.flow +2 -2
- package/components/PerformanceMetrics/PerformanceMetrics.d.ts +7 -7
- package/components/PhoneInput/PhoneInput.js +4 -4
- package/components/PhoneInput/PhoneInput.js.map +1 -1
- package/components/PhoneInput/index.js.map +1 -1
- package/components/Popup/Popup.d.ts +144 -144
- package/components/Popup/Popup.js +38 -37
- package/components/Popup/Popup.js.flow +60 -60
- package/components/Popup/Popup.js.map +1 -1
- package/components/Popup/Popup.styles.d.ts +8 -8
- package/components/Popup/PopupHelper.d.ts +26 -26
- package/components/Popup/PopupHelper.js.flow +29 -29
- package/components/Popup/PopupPin.d.ts +55 -55
- package/components/Popup/PopupPin.js +16 -16
- package/components/Popup/PopupPin.js.flow +15 -15
- package/components/Popup/index.d.ts +1 -1
- package/components/Popup/index.js.flow +2 -2
- package/components/Radio/README.md +14 -14
- package/components/Radio/Radio.d.ts +89 -89
- package/components/Radio/Radio.js +22 -22
- package/components/Radio/Radio.js.flow +33 -33
- package/components/Radio/Radio.styles.d.ts +11 -11
- package/components/Radio/index.d.ts +1 -1
- package/components/Radio/index.js.flow +2 -2
- package/components/RadioGroup/Prevent.d.ts +9 -9
- package/components/RadioGroup/Prevent.js.flow +9 -9
- package/components/RadioGroup/README.md +44 -44
- package/components/RadioGroup/RadioGroup.adapter.d.ts +2 -2
- package/components/RadioGroup/RadioGroup.adapter.js.flow +4 -4
- package/components/RadioGroup/RadioGroup.d.ts +139 -139
- package/components/RadioGroup/RadioGroup.js +46 -46
- package/components/RadioGroup/RadioGroup.js.flow +42 -42
- package/components/RadioGroup/index.d.ts +1 -1
- package/components/RadioGroup/index.js.flow +2 -2
- package/components/RenderContainer/RenderContainer.d.ts +16 -16
- package/components/RenderContainer/RenderContainer.js.flow +11 -11
- package/components/RenderContainer/RenderContainerFallback.d.ts +25 -25
- package/components/RenderContainer/RenderContainerNative.d.ts +12 -12
- package/components/RenderContainer/RenderContainerTypes.d.ts +8 -8
- package/components/RenderContainer/index.d.ts +1 -1
- package/components/RenderContainer/index.js.flow +2 -2
- package/components/RenderLayer/RenderLayer.d.ts +26 -26
- package/components/RenderLayer/RenderLayer.js.flow +12 -12
- package/components/RenderLayer/index.d.ts +1 -1
- package/components/RenderLayer/index.js.flow +2 -2
- package/components/ScrollContainer/README.md +60 -60
- package/components/ScrollContainer/ScrollContainer.d.ts +65 -65
- package/components/ScrollContainer/ScrollContainer.js +6 -6
- package/components/ScrollContainer/ScrollContainer.js.flow +24 -24
- package/components/ScrollContainer/index.d.ts +1 -1
- package/components/ScrollContainer/index.js.flow +2 -2
- package/components/Select/Item.d.ts +7 -7
- package/components/Select/Item.js.flow +7 -7
- package/components/Select/README.md +23 -23
- package/components/Select/Select.adapter.d.ts +2 -2
- package/components/Select/Select.adapter.js.flow +4 -4
- package/components/Select/Select.d.ts +178 -178
- package/components/Select/Select.js +42 -42
- package/components/Select/Select.js.flow +81 -81
- package/components/Select/Select.styles.d.ts +6 -6
- package/components/Select/index.d.ts +1 -1
- package/components/Select/index.js.flow +2 -2
- package/components/Select/locale/index.d.ts +4 -4
- package/components/Select/locale/locales/en.d.ts +3 -3
- package/components/Select/locale/locales/ru.d.ts +3 -3
- package/components/Select/locale/types.d.ts +4 -4
- package/components/SidePage/README.md +46 -46
- package/components/SidePage/SidePage.d.ts +85 -85
- package/components/SidePage/SidePage.js +11 -11
- package/components/SidePage/SidePage.js.flow +34 -34
- package/components/SidePage/SidePage.js.map +1 -1
- package/components/SidePage/SidePage.styles.d.ts +9 -9
- package/components/SidePage/SidePageBody.d.ts +12 -12
- package/components/SidePage/SidePageBody.js.flow +13 -13
- package/components/SidePage/SidePageContainer.d.ts +4 -4
- package/components/SidePage/SidePageContainer.js.flow +9 -9
- package/components/SidePage/SidePageContext.d.ts +8 -8
- package/components/SidePage/SidePageContext.js.flow +15 -15
- package/components/SidePage/SidePageFooter.d.ts +33 -33
- package/components/SidePage/SidePageFooter.js +2 -2
- package/components/SidePage/SidePageFooter.js.flow +16 -16
- package/components/SidePage/SidePageHeader.d.ts +26 -25
- package/components/SidePage/SidePageHeader.js +10 -9
- package/components/SidePage/SidePageHeader.js.flow +11 -11
- package/components/SidePage/SidePageHeader.js.map +1 -1
- package/components/SidePage/index.d.ts +1 -1
- package/components/SidePage/index.js.flow +2 -2
- package/components/Spinner/README.md +33 -33
- package/components/Spinner/Spinner.d.ts +47 -47
- package/components/Spinner/Spinner.js +12 -12
- package/components/Spinner/Spinner.js.flow +20 -20
- package/components/Spinner/Spinner.styles.d.ts +11 -11
- package/components/Spinner/SpinnerFallback.d.ts +24 -24
- package/components/Spinner/SpinnerFallback.js.flow +15 -15
- package/components/Spinner/index.d.ts +1 -1
- package/components/Spinner/index.js.flow +2 -2
- package/components/Spinner/locale/index.d.ts +4 -4
- package/components/Spinner/locale/locales/en.d.ts +3 -3
- package/components/Spinner/locale/locales/ru.d.ts +3 -3
- package/components/Spinner/locale/types.d.ts +4 -4
- package/components/Spinner/settings.d.ts +38 -38
- package/components/Spinner/settings.js.flow +48 -48
- package/components/Sticky/README.md +27 -27
- package/components/Sticky/Sticky.d.ts +57 -57
- package/components/Sticky/Sticky.js +8 -7
- package/components/Sticky/Sticky.js.flow +22 -22
- package/components/Sticky/Sticky.js.map +1 -1
- package/components/Sticky/Sticky.module.css +0 -1
- package/components/Sticky/index.d.ts +1 -1
- package/components/Sticky/index.js.flow +2 -2
- package/components/Switcher/README.md +10 -10
- package/components/Switcher/Switcher.d.ts +54 -54
- package/components/Switcher/Switcher.js.flow +26 -26
- package/components/Switcher/Switcher.styles.d.ts +5 -5
- package/components/Switcher/index.d.ts +1 -1
- package/components/Switcher/index.js.flow +2 -2
- package/components/Tabs/Indicator.d.ts +29 -29
- package/components/Tabs/Indicator.js.flow +21 -21
- package/components/Tabs/Indicator.styles.d.ts +9 -9
- package/components/Tabs/README.md +28 -28
- package/components/Tabs/Tab.d.ts +134 -134
- package/components/Tabs/Tab.js +14 -14
- package/components/Tabs/Tab.js.flow +48 -48
- package/components/Tabs/Tab.styles.d.ts +12 -12
- package/components/Tabs/Tabs.d.ts +65 -65
- package/components/Tabs/Tabs.js +4 -4
- package/components/Tabs/Tabs.js.flow +28 -28
- package/components/Tabs/TabsContext.d.ts +12 -12
- package/components/Tabs/index.d.ts +1 -1
- package/components/Tabs/index.js.flow +2 -2
- package/components/Textarea/README.md +9 -9
- package/components/Textarea/Textarea.adapter.d.ts +7 -7
- package/components/Textarea/Textarea.adapter.js.flow +11 -11
- package/components/Textarea/Textarea.d.ts +139 -139
- package/components/Textarea/Textarea.js +14 -14
- package/components/Textarea/Textarea.js.flow +33 -33
- package/components/Textarea/Textarea.styles.d.ts +8 -8
- package/components/Textarea/TextareaHelpers.d.ts +4 -4
- package/components/Textarea/TextareaHelpers.js.flow +6 -6
- package/components/Textarea/index.d.ts +1 -1
- package/components/Textarea/index.js.flow +2 -2
- package/components/ThemeConsumer/ThemeConsumer.d.ts +1 -1
- package/components/ThemeConsumer/index.d.ts +1 -1
- package/components/ThemeProvider/Playground/AnotherInputsPlayground.d.ts +13 -13
- package/components/ThemeProvider/Playground/CheckboxPlayground.d.ts +4 -4
- package/components/ThemeProvider/Playground/ComponentsGroup.d.ts +10 -10
- package/components/ThemeProvider/Playground/CurrencyInputPlayground.d.ts +11 -11
- package/components/ThemeProvider/Playground/FxInputPlayground.d.ts +10 -10
- package/components/ThemeProvider/Playground/HintPlayground.d.ts +6 -6
- package/components/ThemeProvider/Playground/PagingPlayground.d.ts +10 -10
- package/components/ThemeProvider/Playground/Playground.d.ts +33 -33
- package/components/ThemeProvider/Playground/README.md +7 -7
- package/components/ThemeProvider/Playground/RadioPlayground.d.ts +4 -4
- package/components/ThemeProvider/Playground/SelectPlayground.d.ts +12 -12
- package/components/ThemeProvider/Playground/ShowcaseGroup.d.ts +6 -6
- package/components/ThemeProvider/Playground/SwitcherPlayground.d.ts +15 -15
- package/components/ThemeProvider/Playground/ThemeEditor.d.ts +30 -30
- package/components/ThemeProvider/Playground/ThemeProviderPlayground.d.ts +50 -50
- package/components/ThemeProvider/Playground/TogglePlayground.d.ts +9 -9
- package/components/ThemeProvider/Playground/TokenInputPlayground.d.ts +7 -7
- package/components/ThemeProvider/Playground/VariableValue.d.ts +42 -42
- package/components/ThemeProvider/Playground/constants.d.ts +14 -14
- package/components/ThemeProvider/Playground/darkTheme.d.ts +252 -252
- package/components/ThemeProvider/Playground/helpers.d.ts +2 -2
- package/components/ThemeProvider/Playground/jsStyles.d.ts +8 -8
- package/components/ThemeProvider/README.md +172 -172
- package/components/ThemeProvider/ThemeProvider.d.ts +14 -14
- package/components/ThemeProvider/index.d.ts +1 -1
- package/components/ThemeShowcase/README.md +13 -13
- package/components/ThemeShowcase/ThemeShowcase.d.ts +22 -22
- package/components/ThemeShowcase/ThemeShowcaseHelpers/FormatSourceCode.d.ts +2 -2
- package/components/ThemeShowcase/ThemeShowcaseHelpers/FormatSourceCode.js +0 -1
- package/components/ThemeShowcase/ThemeShowcaseHelpers/FormatSourceCode.js.map +1 -1
- package/components/ThemeShowcase/ThemeShowcaseHelpers/VariablesCollector.d.ts +24 -24
- package/components/ThemeShowcase/ThemeShowcaseHelpers/VariablesCollector.js +37 -35
- package/components/ThemeShowcase/ThemeShowcaseHelpers/VariablesCollector.js.map +1 -1
- package/components/Toast/README.md +39 -39
- package/components/Toast/Toast.d.ts +53 -53
- package/components/Toast/Toast.js +17 -17
- package/components/Toast/Toast.js.flow +29 -29
- package/components/Toast/ToastStatic.d.ts +9 -9
- package/components/Toast/ToastStatic.js.flow +10 -10
- package/components/Toast/ToastView.d.ts +33 -33
- package/components/Toast/ToastView.js +4 -4
- package/components/Toast/ToastView.js.flow +16 -16
- package/components/Toast/ToastView.styles.d.ts +7 -7
- package/components/Toast/index.d.ts +1 -1
- package/components/Toast/index.js.flow +2 -2
- package/components/Toggle/README.md +9 -9
- package/components/Toggle/Toggle.d.ts +50 -50
- package/components/Toggle/Toggle.js +2 -2
- package/components/Toggle/Toggle.js.flow +28 -28
- package/components/Toggle/Toggle.styles.d.ts +12 -12
- package/components/Toggle/index.d.ts +1 -1
- package/components/Toggle/index.js.flow +2 -2
- package/components/Token/README.md +109 -109
- package/components/Token/Token.d.ts +28 -28
- package/components/Token/Token.js.flow +25 -25
- package/components/Token/Token.styles.d.ts +22 -22
- package/components/Token/TokenRemoveIcon.d.ts +7 -7
- package/components/Token/TokenRemoveIcon.js.flow +11 -11
- package/components/Token/index.d.ts +1 -1
- package/components/Token/index.js.flow +2 -2
- package/components/TokenInput/README.md +82 -82
- package/components/TokenInput/TextWidthHelper.d.ts +10 -10
- package/components/TokenInput/TextWidthHelper.js +2 -2
- package/components/TokenInput/TextWidthHelper.js.flow +10 -10
- package/components/TokenInput/TextWidthHelper.js.map +1 -1
- package/components/TokenInput/TokenInput.d.ts +108 -108
- package/components/TokenInput/TokenInput.js +2 -2
- package/components/TokenInput/TokenInput.js.flow +39 -39
- package/components/TokenInput/TokenInput.styles.d.ts +11 -11
- package/components/TokenInput/TokenInputMenu.d.ts +16 -16
- package/components/TokenInput/TokenInputMenu.js.flow +17 -17
- package/components/TokenInput/TokenInputReducer.d.ts +91 -91
- package/components/TokenInput/TokenInputReducer.js.flow +63 -63
- package/components/TokenInput/index.d.ts +1 -1
- package/components/TokenInput/index.js.flow +2 -2
- package/components/TokenInput/locale/index.d.ts +4 -4
- package/components/TokenInput/locale/locales/en.d.ts +3 -3
- package/components/TokenInput/locale/locales/ru.d.ts +3 -3
- package/components/TokenInput/locale/types.d.ts +4 -4
- package/components/Tooltip/README.md +207 -207
- package/components/Tooltip/Tooltip.d.ts +143 -143
- package/components/Tooltip/Tooltip.js.flow +33 -33
- package/components/Tooltip/Tooltip.styles.d.ts +5 -5
- package/components/Tooltip/index.d.ts +1 -1
- package/components/Tooltip/index.js.flow +2 -2
- package/components/TooltipMenu/README.md +106 -106
- package/components/TooltipMenu/TooltipMenu.d.ts +43 -43
- package/components/TooltipMenu/TooltipMenu.js +7 -7
- package/components/TooltipMenu/TooltipMenu.js.flow +19 -19
- package/components/TooltipMenu/index.d.ts +1 -1
- package/components/TooltipMenu/index.js.flow +2 -2
- package/components/TopBar/ButtonItem.d.ts +21 -21
- package/components/TopBar/ButtonItem.js.flow +22 -22
- package/components/TopBar/Divider.d.ts +7 -7
- package/components/TopBar/Divider.js.flow +5 -5
- package/components/TopBar/Item.d.ts +27 -27
- package/components/TopBar/Item.js.flow +19 -19
- package/components/TopBar/Organizations.d.ts +25 -25
- package/components/TopBar/Organizations.js.flow +16 -16
- package/components/TopBar/README.md +112 -112
- package/components/TopBar/TopBar.d.ts +110 -110
- package/components/TopBar/TopBar.js +36 -36
- package/components/TopBar/TopBar.js.flow +53 -53
- package/components/TopBar/TopBar.styles.d.ts +7 -7
- package/components/TopBar/TopBarDropdown.d.ts +30 -30
- package/components/TopBar/TopBarDropdown.js.flow +23 -23
- package/components/TopBar/TopBarEnd.d.ts +3 -3
- package/components/TopBar/TopBarEnd.js.flow +4 -4
- package/components/TopBar/TopBarLogout.d.ts +10 -10
- package/components/TopBar/TopBarLogout.js.flow +6 -6
- package/components/TopBar/TopBarStart.d.ts +3 -3
- package/components/TopBar/TopBarStart.js.flow +4 -4
- package/components/TopBar/User.d.ts +21 -21
- package/components/TopBar/User.js +2 -2
- package/components/TopBar/User.js.flow +9 -9
- package/components/TopBar/index.d.ts +1 -1
- package/components/TopBar/index.js.flow +2 -2
- package/components/TopBar/locale/index.d.ts +4 -4
- package/components/TopBar/locale/locales/en.d.ts +3 -3
- package/components/TopBar/locale/locales/ru.d.ts +3 -3
- package/components/TopBar/locale/types.d.ts +7 -7
- package/components/ZIndex/ZIndex.d.ts +33 -33
- package/components/ZIndex/ZIndex.js +9 -9
- package/components/ZIndex/ZIndex.js.flow +11 -11
- package/components/ZIndex/ZIndex.js.map +1 -1
- package/components/ZIndex/ZIndexStorage.d.ts +17 -16
- package/components/ZIndex/ZIndexStorage.js +1 -0
- package/components/ZIndex/ZIndexStorage.js.map +1 -1
- package/components/ZIndex/index.d.ts +1 -1
- package/components/ZIndex/index.js.flow +2 -2
- package/components/__mocks__/react-addons-css-transition-group.js.map +1 -1
- package/components/all.d.ts +36 -36
- package/components/all.js.flow +36 -36
- package/components/ensureOldIEClassName.d.ts +4 -4
- package/components/ensureOldIEClassName.js.flow +6 -6
- package/components/eventHandlers.js.flow +9 -9
- package/components/filterProps.d.ts +15 -15
- package/components/index.d.ts +4 -4
- package/components/index.js +2 -2
- package/components/index.js.flow +2 -2
- package/components/internal/ComponentCombinator.d.ts +25 -25
- package/components/internal/ComponentTable.d.ts +21 -21
- package/components/internal/FocusTrap/FocusTrap.d.ts +14 -14
- package/components/internal/FocusTrap/__test__/FocusTrap.test.d.ts +1 -1
- package/components/internal/FocusTrap/index.d.ts +1 -1
- package/components/internal/InputLikeText/InputLikeText.d.ts +49 -49
- package/components/internal/InputLikeText/InputLikeText.js +6 -6
- package/components/internal/InputLikeText/InputLikeText.js.flow +24 -24
- package/components/internal/InputLikeText/index.d.ts +1 -1
- package/components/internal/InputLikeText/index.js.flow +2 -2
- package/components/internal/InternalMenu/InternalMenu.d.ts +63 -63
- package/components/internal/InternalMenu/InternalMenu.js.flow +23 -23
- package/components/internal/InternalMenu/InternalMenu.styles.d.ts +5 -5
- package/components/internal/InternalMenu/isActiveElement.d.ts +3 -3
- package/components/internal/InternalMenu/isActiveElement.js.flow +7 -7
- package/components/internal/LifeCycleProxy.d.ts +13 -13
- package/components/internal/MaskedInput/MaskedInput.d.ts +37 -37
- package/components/internal/MaskedInput/MaskedInput.js.flow +24 -24
- package/components/internal/MaskedInput/MaskedInput.styles.d.ts +5 -5
- package/components/internal/MaskedInput/index.d.ts +1 -1
- package/components/internal/MaskedInput/index.js.flow +2 -2
- package/components/internal/MockDate.d.ts +9 -9
- package/components/internal/MockDate.js.flow +9 -9
- package/components/internal/PopupMenu/PopupMenu.d.ts +81 -81
- package/components/internal/PopupMenu/PopupMenu.js.flow +40 -40
- package/components/internal/PopupMenu/PopupMenuPositions.d.ts +3 -3
- package/components/internal/PopupMenu/PopupMenuPositions.js.flow +4 -4
- package/components/internal/PopupMenu/index.d.ts +1 -1
- package/components/internal/PopupMenu/index.js.flow +2 -2
- package/components/internal/PopupMenu/validatePositions.d.ts +3 -3
- package/components/internal/PopupMenu/validatePositions.js.flow +4 -4
- package/components/internal/ResizeDetector/ResizeDetector.d.ts +11 -11
- package/components/internal/ResizeDetector/ResizeDetector.js.flow +8 -8
- package/components/internal/ResizeDetector/index.d.ts +1 -1
- package/components/internal/ResizeDetector/index.js.flow +2 -2
- package/components/internal/Supports.d.ts +1 -1
- package/components/internal/createPropsGetter.d.ts +2 -2
- package/components/internal/createPropsGetter.js.flow +8 -8
- package/components/internal/cross.d.ts +4 -4
- package/components/internal/cross.js.flow +4 -4
- package/components/internal/currentEnvironment.d.ts +3 -3
- package/components/internal/currentEnvironment.js.flow +4 -4
- package/components/internal/extractKeyboardAction.d.ts +13 -13
- package/components/internal/extractKeyboardAction.js.flow +12 -12
- package/components/polyfillPlaceholder.d.ts +2 -2
- package/components/polyfillPlaceholder.js.flow +4 -4
- package/components/variables.css +1 -1
- package/components/variables.module.css +1 -1
- package/lib/BGRuler.d.ts +30 -30
- package/lib/BGRuler.js +5 -5
- package/lib/Colors.d.ts +6 -6
- package/lib/LayoutEvents.d.ts +9 -9
- package/lib/SSRSafePropTypes.d.ts +2 -2
- package/lib/Upgrades.d.ts +11 -11
- package/lib/date/InternalDate.d.ts +55 -55
- package/lib/date/InternalDate.js +3 -3
- package/lib/date/InternalDateCalculator.d.ts +6 -6
- package/lib/date/InternalDateGetter.d.ts +15 -15
- package/lib/date/InternalDateSetter.d.ts +6 -6
- package/lib/date/InternalDateTransformer.d.ts +12 -12
- package/lib/date/InternalDateValidator.d.ts +9 -9
- package/lib/date/constants.d.ts +27 -27
- package/lib/date/localeSets.d.ts +5 -5
- package/lib/date/types.d.ts +88 -88
- package/lib/dom/getComputedStyle.d.ts +2 -2
- package/lib/dom/getFocusableElements.d.ts +42 -42
- package/lib/dom/getFocusableElements.js +33 -33
- package/lib/dom/getScrollWidth.d.ts +1 -1
- package/lib/events/MouseDrag.d.ts +15 -15
- package/lib/events/fixClickFocusIE.d.ts +1 -1
- package/lib/events/keyboard/KeyboardEventCodes.d.ts +31 -31
- package/lib/events/keyboard/KeyboardMapKeys.d.ts +6 -6
- package/lib/events/keyboard/extractCode.d.ts +3 -3
- package/lib/events/keyboard/identifiers.d.ts +47 -47
- package/lib/events/stopPropagation.d.ts +1 -1
- package/lib/events/tabListener.d.ts +6 -6
- package/lib/listenFocusOutside.d.ts +5 -5
- package/lib/listenFocusOutside.js +9 -9
- package/lib/net/fetch-cors.d.ts +13 -13
- package/lib/pluralize.d.ts +1 -1
- package/lib/reactGetTextContent/reactGetTextContent.d.ts +2 -2
- package/lib/styles/ColorFactory.d.ts +11 -11
- package/lib/styles/ColorFunctions.d.ts +12 -12
- package/lib/styles/ColorHelpers.d.ts +20 -20
- package/lib/styles/ColorKeywords.d.ts +150 -150
- package/lib/styles/ColorObject.d.ts +51 -51
- package/lib/styles/DimensionFunctions.d.ts +4 -4
- package/lib/styles/Mixins.d.ts +2 -2
- package/lib/theming/AnimationKeyframes.d.ts +9 -9
- package/lib/theming/Emotion.d.ts +13 -13
- package/lib/theming/Theme.d.ts +9 -9
- package/lib/theming/ThemeContext.d.ts +6 -6
- package/lib/theming/ThemeFactory.d.ts +10 -10
- package/lib/theming/ThemeHelpers.d.ts +1 -1
- package/lib/theming/themes/DefaultTheme.d.ts +4 -4
- package/lib/theming/themes/FlatTheme.d.ts +4 -4
- package/lib/utils.d.ts +28 -28
- package/package.json +4 -1
- package/typings/console.d.ts +3 -3
- package/typings/event-types.d.ts +4 -4
- package/typings/fbjs.d.ts +4 -4
- package/typings/global.d.ts +6 -6
- package/typings/images.d.ts +1 -1
- package/typings/less.d.ts +4 -4
- package/typings/mockdate.d.ts +1 -1
- package/typings/normalize-wheel.d.ts +1 -1
- package/typings/raf.d.ts +1 -1
- package/typings/react-addons-css-transition-group.d.ts +1 -1
- package/typings/react-testing/index.d.ts +4 -4
- package/typings/react-testing/window.d.ts +5 -5
- package/typings/react.d.ts +8 -8
- package/typings/stylis-plugin-extra-scope.d.ts +3 -3
- package/typings/utility-types.d.ts +17 -17
|
@@ -1,436 +1,436 @@
|
|
|
1
|
-
Базовое использование.
|
|
2
|
-
|
|
3
|
-
```jsx
|
|
4
|
-
let initialState = {
|
|
5
|
-
home: {},
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
let handleChange = value => setState({ home: value });
|
|
9
|
-
|
|
10
|
-
<Fias baseUrl={'https://api.kontur.ru/fias/v1/'} value={state.home} onChange={handleChange} />;
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Поле поиска.
|
|
14
|
-
|
|
15
|
-
```jsx
|
|
16
|
-
let initialState = {
|
|
17
|
-
home: {},
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
let handleChange = value => setState({ home: value });
|
|
21
|
-
|
|
22
|
-
<Fias baseUrl={'https://api.kontur.ru/fias/v1/'} value={state.home} onChange={handleChange} search={true} />;
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Только верифицированные адреса.
|
|
26
|
-
|
|
27
|
-
```jsx
|
|
28
|
-
let initialState = {
|
|
29
|
-
home: {
|
|
30
|
-
address: {
|
|
31
|
-
city: {
|
|
32
|
-
name: 'Екатеринбург',
|
|
33
|
-
data: {
|
|
34
|
-
name: 'Екатеринбург',
|
|
35
|
-
abbreviation: 'г',
|
|
36
|
-
fiasId: '2763c110-cb8b-416a-9dac-ad28a55b4402',
|
|
37
|
-
actuality: true,
|
|
38
|
-
id: 'c2404c2a-0af3-440f-9320-9cbd160c4557',
|
|
39
|
-
parentFiasId: '92b30014-4d52-4e2e-892d-928142b924bf',
|
|
40
|
-
level: 'City',
|
|
41
|
-
okato: '65401000000',
|
|
42
|
-
oktmo: '65701000',
|
|
43
|
-
code: '6600000100000',
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
let handleChange = value => setState({ home: value });
|
|
51
|
-
|
|
52
|
-
<Fias baseUrl={'https://api.kontur.ru/fias/v1/'} value={state.home} onChange={handleChange} allowNotVerified={false} />;
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
Произвольные адреса.
|
|
56
|
-
|
|
57
|
-
```jsx
|
|
58
|
-
let initialState = {
|
|
59
|
-
home: {
|
|
60
|
-
address: {
|
|
61
|
-
city: {
|
|
62
|
-
name: 'Санкт-Контурбург',
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
let handleChange = value => setState({ home: value });
|
|
69
|
-
|
|
70
|
-
<Fias baseUrl={'https://api.kontur.ru/fias/v1/'} value={state.home} onChange={handleChange} formValidation={'None'} />;
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
Настройка полей. Почтовый индекс.
|
|
74
|
-
|
|
75
|
-
```jsx
|
|
76
|
-
let initialState = {
|
|
77
|
-
home: {
|
|
78
|
-
fiasId: '22ead39c-ddcc-4c46-951d-f958750810fd',
|
|
79
|
-
},
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
let handleChange = value => setState({ home: value });
|
|
83
|
-
|
|
84
|
-
<Fias
|
|
85
|
-
baseUrl={'https://api.kontur.ru/fias/v1/'}
|
|
86
|
-
value={state.home}
|
|
87
|
-
onChange={handleChange}
|
|
88
|
-
search={true}
|
|
89
|
-
fieldsSettings={{
|
|
90
|
-
region: {
|
|
91
|
-
visible: false,
|
|
92
|
-
},
|
|
93
|
-
district: {
|
|
94
|
-
visible: false,
|
|
95
|
-
},
|
|
96
|
-
settlement: {
|
|
97
|
-
visible: false,
|
|
98
|
-
},
|
|
99
|
-
intracityarea: {
|
|
100
|
-
visible: false,
|
|
101
|
-
},
|
|
102
|
-
planningstructure: {
|
|
103
|
-
visible: false,
|
|
104
|
-
},
|
|
105
|
-
stead: {
|
|
106
|
-
visible: false,
|
|
107
|
-
},
|
|
108
|
-
room: {
|
|
109
|
-
visible: false,
|
|
110
|
-
},
|
|
111
|
-
postalcode: {
|
|
112
|
-
visible: true,
|
|
113
|
-
},
|
|
114
|
-
}}
|
|
115
|
-
/>;
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
Иностранные адреса.
|
|
119
|
-
|
|
120
|
-
```jsx
|
|
121
|
-
let initialState = {
|
|
122
|
-
home: {
|
|
123
|
-
country: {
|
|
124
|
-
code: '124',
|
|
125
|
-
fullName: 'Канада',
|
|
126
|
-
shortName: 'Канада',
|
|
127
|
-
},
|
|
128
|
-
foreignAddress: '80 Wellington St Ottawa',
|
|
129
|
-
postalCode: 'ON K1A 0A2',
|
|
130
|
-
},
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
let handleChange = value => setState({ home: value });
|
|
134
|
-
|
|
135
|
-
<Fias baseUrl={'https://api.kontur.ru/fias/v1/'} value={state.home} onChange={handleChange} countrySelector={true} />;
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
Пользовательская валидация ошибок верификации
|
|
139
|
-
|
|
140
|
-
```jsx
|
|
141
|
-
let initialState = {
|
|
142
|
-
home: {
|
|
143
|
-
address: {
|
|
144
|
-
city: {
|
|
145
|
-
name: 'Санкт-Контурбург',
|
|
146
|
-
},
|
|
147
|
-
},
|
|
148
|
-
addressErrors: {
|
|
149
|
-
city: 'Адрес не найден',
|
|
150
|
-
},
|
|
151
|
-
},
|
|
152
|
-
warning: true,
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
let handleChange = value =>
|
|
156
|
-
setState({
|
|
157
|
-
home: value,
|
|
158
|
-
warning: Boolean(Object.keys(value.addressErrors).length),
|
|
159
|
-
});
|
|
160
|
-
|
|
161
|
-
<Fias
|
|
162
|
-
baseUrl={'https://api.kontur.ru/fias/v1/'}
|
|
163
|
-
value={state.home}
|
|
164
|
-
onChange={handleChange}
|
|
165
|
-
formValidation={'Warning'}
|
|
166
|
-
warning={state.warning}
|
|
167
|
-
feedback={'Заполнено не по справочнику адресов'}
|
|
168
|
-
/>;
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
Формат данных:
|
|
172
|
-
|
|
173
|
-
```typescript
|
|
174
|
-
enum Fields {
|
|
175
|
-
region = 'region',
|
|
176
|
-
district = 'district',
|
|
177
|
-
city = 'city',
|
|
178
|
-
intracityarea = 'intracityarea',
|
|
179
|
-
settlement = 'settlement',
|
|
180
|
-
planningstructure = 'planningstructure',
|
|
181
|
-
street = 'street',
|
|
182
|
-
stead = 'stead',
|
|
183
|
-
house = 'house',
|
|
184
|
-
room = 'room',
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
enum ExtraFields {
|
|
188
|
-
postalcode = 'postalcode',
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
interface FiasValue {
|
|
192
|
-
address?: {
|
|
193
|
-
[key in Fields]?: {
|
|
194
|
-
name: string;
|
|
195
|
-
data?: FiasObject;
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
addressString?: string;
|
|
199
|
-
addressErrors?: { [key in Fields]?: string };
|
|
200
|
-
fiasId?: string;
|
|
201
|
-
postalCode?: string;
|
|
202
|
-
foreignAddress?: string;
|
|
203
|
-
country?: FiasCountry;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
interface FiasCountry {
|
|
207
|
-
shortName: string;
|
|
208
|
-
fullName: string;
|
|
209
|
-
code: string;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
const value: FiasValue = {
|
|
213
|
-
address: {
|
|
214
|
-
region: {
|
|
215
|
-
name: 'Свердловская',
|
|
216
|
-
data: {
|
|
217
|
-
name: 'Свердловская',
|
|
218
|
-
abbreviation: 'обл',
|
|
219
|
-
fiasId: '92b30014-4d52-4e2e-892d-928142b924bf',
|
|
220
|
-
actuality: true,
|
|
221
|
-
id: 'e76abf09-3148-42f6-85db-51edb09e72b7',
|
|
222
|
-
level: 'Region',
|
|
223
|
-
okato: '65000000000',
|
|
224
|
-
ifnsfl: '6600',
|
|
225
|
-
ifnsul: '6600',
|
|
226
|
-
postalCode: '620000',
|
|
227
|
-
code: '6600000000000',
|
|
228
|
-
},
|
|
229
|
-
},
|
|
230
|
-
city: {
|
|
231
|
-
name: 'Екатеринбург',
|
|
232
|
-
data: {
|
|
233
|
-
name: 'Екатеринбург',
|
|
234
|
-
abbreviation: 'г',
|
|
235
|
-
fiasId: '2763c110-cb8b-416a-9dac-ad28a55b4402',
|
|
236
|
-
actuality: true,
|
|
237
|
-
id: 'c2404c2a-0af3-440f-9320-9cbd160c4557',
|
|
238
|
-
parentFiasId: '92b30014-4d52-4e2e-892d-928142b924bf',
|
|
239
|
-
level: 'City',
|
|
240
|
-
okato: '65401000000',
|
|
241
|
-
oktmo: '65701000',
|
|
242
|
-
code: '6600000100000',
|
|
243
|
-
},
|
|
244
|
-
},
|
|
245
|
-
street: {
|
|
246
|
-
name: 'Малопрудная',
|
|
247
|
-
data: {
|
|
248
|
-
name: 'Малопрудная',
|
|
249
|
-
abbreviation: 'ул',
|
|
250
|
-
fiasId: '1de47f19-2de3-4d4b-9a3c-472fdc858975',
|
|
251
|
-
actuality: true,
|
|
252
|
-
id: '599b198f-4519-4c61-969a-c1bec6902724',
|
|
253
|
-
parentFiasId: '2763c110-cb8b-416a-9dac-ad28a55b4402',
|
|
254
|
-
level: 'Street',
|
|
255
|
-
okato: '65401364000',
|
|
256
|
-
oktmo: '65701000',
|
|
257
|
-
ifnsfl: '6658',
|
|
258
|
-
ifnsul: '6658',
|
|
259
|
-
postalCode: '620036',
|
|
260
|
-
code: '66000001000155300',
|
|
261
|
-
},
|
|
262
|
-
},
|
|
263
|
-
house: {
|
|
264
|
-
name: '5',
|
|
265
|
-
data: {
|
|
266
|
-
number: '5',
|
|
267
|
-
fiasId: '2c9c38a3-e2b1-45d7-993d-d41be557a097',
|
|
268
|
-
parentFiasId: '1de47f19-2de3-4d4b-9a3c-472fdc858975',
|
|
269
|
-
id: '2c9c38a3-e2b1-45d7-993d-d41be557a097',
|
|
270
|
-
structureStatus: 'Structure',
|
|
271
|
-
estateStatus: 'House',
|
|
272
|
-
postalCode: '620036',
|
|
273
|
-
okato: '65401364000',
|
|
274
|
-
oktmo: '65701000',
|
|
275
|
-
ifnsfl: '6658',
|
|
276
|
-
ifnsul: '6658',
|
|
277
|
-
structureNumber: '2',
|
|
278
|
-
},
|
|
279
|
-
},
|
|
280
|
-
room: {
|
|
281
|
-
name: '10',
|
|
282
|
-
},
|
|
283
|
-
},
|
|
284
|
-
addressString: 'Свердловская область, город Екатеринбург, улица Малопрудная, дом 5 строение 2',
|
|
285
|
-
addressErrors: {},
|
|
286
|
-
fiasId: '2c9c38a3-e2b1-45d7-993d-d41be557a097',
|
|
287
|
-
};
|
|
288
|
-
```
|
|
289
|
-
|
|
290
|
-
#### Локали по умолчанию (см. `LocaleProvider`)
|
|
291
|
-
|
|
292
|
-
```typescript
|
|
293
|
-
interface FiasLocale {
|
|
294
|
-
modalTitle: string;
|
|
295
|
-
modalButtonOk: string;
|
|
296
|
-
modalButtonCancel: string;
|
|
297
|
-
|
|
298
|
-
addressFill: string;
|
|
299
|
-
addressEdit: string;
|
|
300
|
-
addressNotVerified: string;
|
|
301
|
-
addressNotFound: string;
|
|
302
|
-
addressFillParentOrSearch: string;
|
|
303
|
-
addressSelectItemFromList: string;
|
|
304
|
-
|
|
305
|
-
searchNotFound: string;
|
|
306
|
-
searchPlaceholder: string;
|
|
307
|
-
|
|
308
|
-
regionLabel: string;
|
|
309
|
-
regionNotFound: string;
|
|
310
|
-
regionPlaceholder: string;
|
|
311
|
-
|
|
312
|
-
districtLabel: string;
|
|
313
|
-
districtNotFound: string;
|
|
314
|
-
districtPlaceholder: string;
|
|
315
|
-
|
|
316
|
-
cityLabel: string;
|
|
317
|
-
cityNotFound: string;
|
|
318
|
-
cityPlaceholder: string;
|
|
319
|
-
|
|
320
|
-
intracityareaLabel: string;
|
|
321
|
-
intracityareaNotFound: string;
|
|
322
|
-
intracityareaPlaceholder: string;
|
|
323
|
-
|
|
324
|
-
settlementLabel: string;
|
|
325
|
-
settlementNotFound: string;
|
|
326
|
-
settlementPlaceholder: string;
|
|
327
|
-
|
|
328
|
-
planningstructureLabel: string;
|
|
329
|
-
planningstructureNotFound: string;
|
|
330
|
-
planningstructurePlaceholder: string;
|
|
331
|
-
|
|
332
|
-
streetLabel: string;
|
|
333
|
-
streetNotFound: string;
|
|
334
|
-
streetFillBefore: string;
|
|
335
|
-
streetPlaceholder: string;
|
|
336
|
-
|
|
337
|
-
steadLabel: string;
|
|
338
|
-
steadNotFound: string;
|
|
339
|
-
steadFillBefore: string;
|
|
340
|
-
steadPlaceholder: string;
|
|
341
|
-
|
|
342
|
-
houseLabel: string;
|
|
343
|
-
houseNotFound: string;
|
|
344
|
-
houseFillBefore: string;
|
|
345
|
-
housePlaceholder: string;
|
|
346
|
-
|
|
347
|
-
roomLabel: string;
|
|
348
|
-
roomNotFound: string;
|
|
349
|
-
roomFillBefore: string;
|
|
350
|
-
roomPlaceholder: string;
|
|
351
|
-
|
|
352
|
-
postalcodeLabel: string;
|
|
353
|
-
postalcodePlaceholder: string;
|
|
354
|
-
postalcodeNotFound: string;
|
|
355
|
-
postalcodeNotValid: string;
|
|
356
|
-
postalcodeReplace: string;
|
|
357
|
-
|
|
358
|
-
foreignAddressLabel: string;
|
|
359
|
-
foreignAddressPlaceholder: string;
|
|
360
|
-
|
|
361
|
-
countryLabel: string;
|
|
362
|
-
countryPlaceholder: string;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
const ru_RU = {
|
|
366
|
-
modalTitle: 'Адрес',
|
|
367
|
-
modalButtonOk: 'Сохранить',
|
|
368
|
-
modalButtonCancel: 'Отменить',
|
|
369
|
-
|
|
370
|
-
addressFill: 'Заполнить адрес',
|
|
371
|
-
addressEdit: 'Изменить адрес',
|
|
372
|
-
addressNotVerified: 'Адрес не найден в справочнике',
|
|
373
|
-
addressNotFound: 'Адрес не найден',
|
|
374
|
-
addressFillParentOrSearch: 'Заполните поля выше, либо воспользуйтесь поиском',
|
|
375
|
-
addressSelectItemFromList: 'Выберите значение из списка',
|
|
376
|
-
|
|
377
|
-
searchNotFound: 'Адрес не найден',
|
|
378
|
-
searchPlaceholder: 'Начните вводить адрес, например: Москва, Внуково',
|
|
379
|
-
|
|
380
|
-
regionLabel: 'Регион',
|
|
381
|
-
regionNotFound: 'Регион не найден',
|
|
382
|
-
regionPlaceholder: 'Можно вводить код или название',
|
|
383
|
-
|
|
384
|
-
districtLabel: 'Район',
|
|
385
|
-
districtNotFound: 'Район не найден',
|
|
386
|
-
districtPlaceholder: '',
|
|
387
|
-
|
|
388
|
-
cityLabel: 'Город',
|
|
389
|
-
cityNotFound: 'Город не найден',
|
|
390
|
-
cityPlaceholder: '',
|
|
391
|
-
|
|
392
|
-
intracityareaLabel: 'Внутригородская территория',
|
|
393
|
-
intracityareaNotFound: 'Внутригородская территория не найдена',
|
|
394
|
-
intracityareaPlaceholder: '',
|
|
395
|
-
|
|
396
|
-
settlementLabel: 'Населенный пункт',
|
|
397
|
-
settlementNotFound: 'Населенный пункт не найден',
|
|
398
|
-
settlementPlaceholder: 'Село, деревня, станица и другие',
|
|
399
|
-
|
|
400
|
-
planningstructureLabel: 'Иная территория',
|
|
401
|
-
planningstructureNotFound: 'Не найдены иные территории по указанному выше расположению',
|
|
402
|
-
planningstructurePlaceholder: 'Сад, парк, санаторий и другие',
|
|
403
|
-
|
|
404
|
-
streetLabel: 'Улица',
|
|
405
|
-
streetNotFound: 'Не найдены улицы по указанному выше расположению',
|
|
406
|
-
streetFillBefore: 'Заполните город или населенный пункт, чтобы выбрать улицу',
|
|
407
|
-
streetPlaceholder: '',
|
|
408
|
-
|
|
409
|
-
steadLabel: 'Земельный участок',
|
|
410
|
-
steadNotFound: 'Не найдены участки по указанному выше расположению',
|
|
411
|
-
steadFillBefore: 'Заполните город или населенный пункт, чтобы выбрать номер участка',
|
|
412
|
-
steadPlaceholder: '',
|
|
413
|
-
|
|
414
|
-
houseLabel: 'Дом, сооружение',
|
|
415
|
-
houseNotFound: 'Не найдены дома по указанному выше расположению',
|
|
416
|
-
houseFillBefore: 'Заполните город или населенный пункт, чтобы выбрать номер дома',
|
|
417
|
-
housePlaceholder: '',
|
|
418
|
-
|
|
419
|
-
roomLabel: 'Квартира, офис',
|
|
420
|
-
roomNotFound: 'Не найдены помещения по указанному выше расположению',
|
|
421
|
-
roomFillBefore: 'Заполните номер дома, чтобы выбрать квартиру',
|
|
422
|
-
roomPlaceholder: '',
|
|
423
|
-
|
|
424
|
-
postalcodeLabel: 'Индекс',
|
|
425
|
-
postalcodePlaceholder: '',
|
|
426
|
-
postalcodeNotFound: 'Заполнено не по справочнику адресов',
|
|
427
|
-
postalcodeNotValid: 'Значение не соответствует формату',
|
|
428
|
-
postalcodeReplace: 'Заменить справочным',
|
|
429
|
-
|
|
430
|
-
foreignAddressLabel: 'Адрес',
|
|
431
|
-
foreignAddressPlaceholder: '',
|
|
432
|
-
|
|
433
|
-
countryLabel: 'Страна',
|
|
434
|
-
countryPlaceholder: 'Начните вводить название страны',
|
|
435
|
-
};
|
|
436
|
-
```
|
|
1
|
+
Базовое использование.
|
|
2
|
+
|
|
3
|
+
```jsx
|
|
4
|
+
let initialState = {
|
|
5
|
+
home: {},
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
let handleChange = value => setState({ home: value });
|
|
9
|
+
|
|
10
|
+
<Fias baseUrl={'https://api.kontur.ru/fias/v1/'} value={state.home} onChange={handleChange} />;
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Поле поиска.
|
|
14
|
+
|
|
15
|
+
```jsx
|
|
16
|
+
let initialState = {
|
|
17
|
+
home: {},
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
let handleChange = value => setState({ home: value });
|
|
21
|
+
|
|
22
|
+
<Fias baseUrl={'https://api.kontur.ru/fias/v1/'} value={state.home} onChange={handleChange} search={true} />;
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Только верифицированные адреса.
|
|
26
|
+
|
|
27
|
+
```jsx
|
|
28
|
+
let initialState = {
|
|
29
|
+
home: {
|
|
30
|
+
address: {
|
|
31
|
+
city: {
|
|
32
|
+
name: 'Екатеринбург',
|
|
33
|
+
data: {
|
|
34
|
+
name: 'Екатеринбург',
|
|
35
|
+
abbreviation: 'г',
|
|
36
|
+
fiasId: '2763c110-cb8b-416a-9dac-ad28a55b4402',
|
|
37
|
+
actuality: true,
|
|
38
|
+
id: 'c2404c2a-0af3-440f-9320-9cbd160c4557',
|
|
39
|
+
parentFiasId: '92b30014-4d52-4e2e-892d-928142b924bf',
|
|
40
|
+
level: 'City',
|
|
41
|
+
okato: '65401000000',
|
|
42
|
+
oktmo: '65701000',
|
|
43
|
+
code: '6600000100000',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
let handleChange = value => setState({ home: value });
|
|
51
|
+
|
|
52
|
+
<Fias baseUrl={'https://api.kontur.ru/fias/v1/'} value={state.home} onChange={handleChange} allowNotVerified={false} />;
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Произвольные адреса.
|
|
56
|
+
|
|
57
|
+
```jsx
|
|
58
|
+
let initialState = {
|
|
59
|
+
home: {
|
|
60
|
+
address: {
|
|
61
|
+
city: {
|
|
62
|
+
name: 'Санкт-Контурбург',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
let handleChange = value => setState({ home: value });
|
|
69
|
+
|
|
70
|
+
<Fias baseUrl={'https://api.kontur.ru/fias/v1/'} value={state.home} onChange={handleChange} formValidation={'None'} />;
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Настройка полей. Почтовый индекс.
|
|
74
|
+
|
|
75
|
+
```jsx
|
|
76
|
+
let initialState = {
|
|
77
|
+
home: {
|
|
78
|
+
fiasId: '22ead39c-ddcc-4c46-951d-f958750810fd',
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
let handleChange = value => setState({ home: value });
|
|
83
|
+
|
|
84
|
+
<Fias
|
|
85
|
+
baseUrl={'https://api.kontur.ru/fias/v1/'}
|
|
86
|
+
value={state.home}
|
|
87
|
+
onChange={handleChange}
|
|
88
|
+
search={true}
|
|
89
|
+
fieldsSettings={{
|
|
90
|
+
region: {
|
|
91
|
+
visible: false,
|
|
92
|
+
},
|
|
93
|
+
district: {
|
|
94
|
+
visible: false,
|
|
95
|
+
},
|
|
96
|
+
settlement: {
|
|
97
|
+
visible: false,
|
|
98
|
+
},
|
|
99
|
+
intracityarea: {
|
|
100
|
+
visible: false,
|
|
101
|
+
},
|
|
102
|
+
planningstructure: {
|
|
103
|
+
visible: false,
|
|
104
|
+
},
|
|
105
|
+
stead: {
|
|
106
|
+
visible: false,
|
|
107
|
+
},
|
|
108
|
+
room: {
|
|
109
|
+
visible: false,
|
|
110
|
+
},
|
|
111
|
+
postalcode: {
|
|
112
|
+
visible: true,
|
|
113
|
+
},
|
|
114
|
+
}}
|
|
115
|
+
/>;
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Иностранные адреса.
|
|
119
|
+
|
|
120
|
+
```jsx
|
|
121
|
+
let initialState = {
|
|
122
|
+
home: {
|
|
123
|
+
country: {
|
|
124
|
+
code: '124',
|
|
125
|
+
fullName: 'Канада',
|
|
126
|
+
shortName: 'Канада',
|
|
127
|
+
},
|
|
128
|
+
foreignAddress: '80 Wellington St Ottawa',
|
|
129
|
+
postalCode: 'ON K1A 0A2',
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
let handleChange = value => setState({ home: value });
|
|
134
|
+
|
|
135
|
+
<Fias baseUrl={'https://api.kontur.ru/fias/v1/'} value={state.home} onChange={handleChange} countrySelector={true} />;
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Пользовательская валидация ошибок верификации
|
|
139
|
+
|
|
140
|
+
```jsx
|
|
141
|
+
let initialState = {
|
|
142
|
+
home: {
|
|
143
|
+
address: {
|
|
144
|
+
city: {
|
|
145
|
+
name: 'Санкт-Контурбург',
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
addressErrors: {
|
|
149
|
+
city: 'Адрес не найден',
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
warning: true,
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
let handleChange = value =>
|
|
156
|
+
setState({
|
|
157
|
+
home: value,
|
|
158
|
+
warning: Boolean(Object.keys(value.addressErrors).length),
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
<Fias
|
|
162
|
+
baseUrl={'https://api.kontur.ru/fias/v1/'}
|
|
163
|
+
value={state.home}
|
|
164
|
+
onChange={handleChange}
|
|
165
|
+
formValidation={'Warning'}
|
|
166
|
+
warning={state.warning}
|
|
167
|
+
feedback={'Заполнено не по справочнику адресов'}
|
|
168
|
+
/>;
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
Формат данных:
|
|
172
|
+
|
|
173
|
+
```typescript
|
|
174
|
+
enum Fields {
|
|
175
|
+
region = 'region',
|
|
176
|
+
district = 'district',
|
|
177
|
+
city = 'city',
|
|
178
|
+
intracityarea = 'intracityarea',
|
|
179
|
+
settlement = 'settlement',
|
|
180
|
+
planningstructure = 'planningstructure',
|
|
181
|
+
street = 'street',
|
|
182
|
+
stead = 'stead',
|
|
183
|
+
house = 'house',
|
|
184
|
+
room = 'room',
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
enum ExtraFields {
|
|
188
|
+
postalcode = 'postalcode',
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
interface FiasValue {
|
|
192
|
+
address?: {
|
|
193
|
+
[key in Fields]?: {
|
|
194
|
+
name: string;
|
|
195
|
+
data?: FiasObject;
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
addressString?: string;
|
|
199
|
+
addressErrors?: { [key in Fields]?: string };
|
|
200
|
+
fiasId?: string;
|
|
201
|
+
postalCode?: string;
|
|
202
|
+
foreignAddress?: string;
|
|
203
|
+
country?: FiasCountry;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
interface FiasCountry {
|
|
207
|
+
shortName: string;
|
|
208
|
+
fullName: string;
|
|
209
|
+
code: string;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
const value: FiasValue = {
|
|
213
|
+
address: {
|
|
214
|
+
region: {
|
|
215
|
+
name: 'Свердловская',
|
|
216
|
+
data: {
|
|
217
|
+
name: 'Свердловская',
|
|
218
|
+
abbreviation: 'обл',
|
|
219
|
+
fiasId: '92b30014-4d52-4e2e-892d-928142b924bf',
|
|
220
|
+
actuality: true,
|
|
221
|
+
id: 'e76abf09-3148-42f6-85db-51edb09e72b7',
|
|
222
|
+
level: 'Region',
|
|
223
|
+
okato: '65000000000',
|
|
224
|
+
ifnsfl: '6600',
|
|
225
|
+
ifnsul: '6600',
|
|
226
|
+
postalCode: '620000',
|
|
227
|
+
code: '6600000000000',
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
city: {
|
|
231
|
+
name: 'Екатеринбург',
|
|
232
|
+
data: {
|
|
233
|
+
name: 'Екатеринбург',
|
|
234
|
+
abbreviation: 'г',
|
|
235
|
+
fiasId: '2763c110-cb8b-416a-9dac-ad28a55b4402',
|
|
236
|
+
actuality: true,
|
|
237
|
+
id: 'c2404c2a-0af3-440f-9320-9cbd160c4557',
|
|
238
|
+
parentFiasId: '92b30014-4d52-4e2e-892d-928142b924bf',
|
|
239
|
+
level: 'City',
|
|
240
|
+
okato: '65401000000',
|
|
241
|
+
oktmo: '65701000',
|
|
242
|
+
code: '6600000100000',
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
street: {
|
|
246
|
+
name: 'Малопрудная',
|
|
247
|
+
data: {
|
|
248
|
+
name: 'Малопрудная',
|
|
249
|
+
abbreviation: 'ул',
|
|
250
|
+
fiasId: '1de47f19-2de3-4d4b-9a3c-472fdc858975',
|
|
251
|
+
actuality: true,
|
|
252
|
+
id: '599b198f-4519-4c61-969a-c1bec6902724',
|
|
253
|
+
parentFiasId: '2763c110-cb8b-416a-9dac-ad28a55b4402',
|
|
254
|
+
level: 'Street',
|
|
255
|
+
okato: '65401364000',
|
|
256
|
+
oktmo: '65701000',
|
|
257
|
+
ifnsfl: '6658',
|
|
258
|
+
ifnsul: '6658',
|
|
259
|
+
postalCode: '620036',
|
|
260
|
+
code: '66000001000155300',
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
house: {
|
|
264
|
+
name: '5',
|
|
265
|
+
data: {
|
|
266
|
+
number: '5',
|
|
267
|
+
fiasId: '2c9c38a3-e2b1-45d7-993d-d41be557a097',
|
|
268
|
+
parentFiasId: '1de47f19-2de3-4d4b-9a3c-472fdc858975',
|
|
269
|
+
id: '2c9c38a3-e2b1-45d7-993d-d41be557a097',
|
|
270
|
+
structureStatus: 'Structure',
|
|
271
|
+
estateStatus: 'House',
|
|
272
|
+
postalCode: '620036',
|
|
273
|
+
okato: '65401364000',
|
|
274
|
+
oktmo: '65701000',
|
|
275
|
+
ifnsfl: '6658',
|
|
276
|
+
ifnsul: '6658',
|
|
277
|
+
structureNumber: '2',
|
|
278
|
+
},
|
|
279
|
+
},
|
|
280
|
+
room: {
|
|
281
|
+
name: '10',
|
|
282
|
+
},
|
|
283
|
+
},
|
|
284
|
+
addressString: 'Свердловская область, город Екатеринбург, улица Малопрудная, дом 5 строение 2',
|
|
285
|
+
addressErrors: {},
|
|
286
|
+
fiasId: '2c9c38a3-e2b1-45d7-993d-d41be557a097',
|
|
287
|
+
};
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
#### Локали по умолчанию (см. `LocaleProvider`)
|
|
291
|
+
|
|
292
|
+
```typescript
|
|
293
|
+
interface FiasLocale {
|
|
294
|
+
modalTitle: string;
|
|
295
|
+
modalButtonOk: string;
|
|
296
|
+
modalButtonCancel: string;
|
|
297
|
+
|
|
298
|
+
addressFill: string;
|
|
299
|
+
addressEdit: string;
|
|
300
|
+
addressNotVerified: string;
|
|
301
|
+
addressNotFound: string;
|
|
302
|
+
addressFillParentOrSearch: string;
|
|
303
|
+
addressSelectItemFromList: string;
|
|
304
|
+
|
|
305
|
+
searchNotFound: string;
|
|
306
|
+
searchPlaceholder: string;
|
|
307
|
+
|
|
308
|
+
regionLabel: string;
|
|
309
|
+
regionNotFound: string;
|
|
310
|
+
regionPlaceholder: string;
|
|
311
|
+
|
|
312
|
+
districtLabel: string;
|
|
313
|
+
districtNotFound: string;
|
|
314
|
+
districtPlaceholder: string;
|
|
315
|
+
|
|
316
|
+
cityLabel: string;
|
|
317
|
+
cityNotFound: string;
|
|
318
|
+
cityPlaceholder: string;
|
|
319
|
+
|
|
320
|
+
intracityareaLabel: string;
|
|
321
|
+
intracityareaNotFound: string;
|
|
322
|
+
intracityareaPlaceholder: string;
|
|
323
|
+
|
|
324
|
+
settlementLabel: string;
|
|
325
|
+
settlementNotFound: string;
|
|
326
|
+
settlementPlaceholder: string;
|
|
327
|
+
|
|
328
|
+
planningstructureLabel: string;
|
|
329
|
+
planningstructureNotFound: string;
|
|
330
|
+
planningstructurePlaceholder: string;
|
|
331
|
+
|
|
332
|
+
streetLabel: string;
|
|
333
|
+
streetNotFound: string;
|
|
334
|
+
streetFillBefore: string;
|
|
335
|
+
streetPlaceholder: string;
|
|
336
|
+
|
|
337
|
+
steadLabel: string;
|
|
338
|
+
steadNotFound: string;
|
|
339
|
+
steadFillBefore: string;
|
|
340
|
+
steadPlaceholder: string;
|
|
341
|
+
|
|
342
|
+
houseLabel: string;
|
|
343
|
+
houseNotFound: string;
|
|
344
|
+
houseFillBefore: string;
|
|
345
|
+
housePlaceholder: string;
|
|
346
|
+
|
|
347
|
+
roomLabel: string;
|
|
348
|
+
roomNotFound: string;
|
|
349
|
+
roomFillBefore: string;
|
|
350
|
+
roomPlaceholder: string;
|
|
351
|
+
|
|
352
|
+
postalcodeLabel: string;
|
|
353
|
+
postalcodePlaceholder: string;
|
|
354
|
+
postalcodeNotFound: string;
|
|
355
|
+
postalcodeNotValid: string;
|
|
356
|
+
postalcodeReplace: string;
|
|
357
|
+
|
|
358
|
+
foreignAddressLabel: string;
|
|
359
|
+
foreignAddressPlaceholder: string;
|
|
360
|
+
|
|
361
|
+
countryLabel: string;
|
|
362
|
+
countryPlaceholder: string;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
const ru_RU = {
|
|
366
|
+
modalTitle: 'Адрес',
|
|
367
|
+
modalButtonOk: 'Сохранить',
|
|
368
|
+
modalButtonCancel: 'Отменить',
|
|
369
|
+
|
|
370
|
+
addressFill: 'Заполнить адрес',
|
|
371
|
+
addressEdit: 'Изменить адрес',
|
|
372
|
+
addressNotVerified: 'Адрес не найден в справочнике',
|
|
373
|
+
addressNotFound: 'Адрес не найден',
|
|
374
|
+
addressFillParentOrSearch: 'Заполните поля выше, либо воспользуйтесь поиском',
|
|
375
|
+
addressSelectItemFromList: 'Выберите значение из списка',
|
|
376
|
+
|
|
377
|
+
searchNotFound: 'Адрес не найден',
|
|
378
|
+
searchPlaceholder: 'Начните вводить адрес, например: Москва, Внуково',
|
|
379
|
+
|
|
380
|
+
regionLabel: 'Регион',
|
|
381
|
+
regionNotFound: 'Регион не найден',
|
|
382
|
+
regionPlaceholder: 'Можно вводить код или название',
|
|
383
|
+
|
|
384
|
+
districtLabel: 'Район',
|
|
385
|
+
districtNotFound: 'Район не найден',
|
|
386
|
+
districtPlaceholder: '',
|
|
387
|
+
|
|
388
|
+
cityLabel: 'Город',
|
|
389
|
+
cityNotFound: 'Город не найден',
|
|
390
|
+
cityPlaceholder: '',
|
|
391
|
+
|
|
392
|
+
intracityareaLabel: 'Внутригородская территория',
|
|
393
|
+
intracityareaNotFound: 'Внутригородская территория не найдена',
|
|
394
|
+
intracityareaPlaceholder: '',
|
|
395
|
+
|
|
396
|
+
settlementLabel: 'Населенный пункт',
|
|
397
|
+
settlementNotFound: 'Населенный пункт не найден',
|
|
398
|
+
settlementPlaceholder: 'Село, деревня, станица и другие',
|
|
399
|
+
|
|
400
|
+
planningstructureLabel: 'Иная территория',
|
|
401
|
+
planningstructureNotFound: 'Не найдены иные территории по указанному выше расположению',
|
|
402
|
+
planningstructurePlaceholder: 'Сад, парк, санаторий и другие',
|
|
403
|
+
|
|
404
|
+
streetLabel: 'Улица',
|
|
405
|
+
streetNotFound: 'Не найдены улицы по указанному выше расположению',
|
|
406
|
+
streetFillBefore: 'Заполните город или населенный пункт, чтобы выбрать улицу',
|
|
407
|
+
streetPlaceholder: '',
|
|
408
|
+
|
|
409
|
+
steadLabel: 'Земельный участок',
|
|
410
|
+
steadNotFound: 'Не найдены участки по указанному выше расположению',
|
|
411
|
+
steadFillBefore: 'Заполните город или населенный пункт, чтобы выбрать номер участка',
|
|
412
|
+
steadPlaceholder: '',
|
|
413
|
+
|
|
414
|
+
houseLabel: 'Дом, сооружение',
|
|
415
|
+
houseNotFound: 'Не найдены дома по указанному выше расположению',
|
|
416
|
+
houseFillBefore: 'Заполните город или населенный пункт, чтобы выбрать номер дома',
|
|
417
|
+
housePlaceholder: '',
|
|
418
|
+
|
|
419
|
+
roomLabel: 'Квартира, офис',
|
|
420
|
+
roomNotFound: 'Не найдены помещения по указанному выше расположению',
|
|
421
|
+
roomFillBefore: 'Заполните номер дома, чтобы выбрать квартиру',
|
|
422
|
+
roomPlaceholder: '',
|
|
423
|
+
|
|
424
|
+
postalcodeLabel: 'Индекс',
|
|
425
|
+
postalcodePlaceholder: '',
|
|
426
|
+
postalcodeNotFound: 'Заполнено не по справочнику адресов',
|
|
427
|
+
postalcodeNotValid: 'Значение не соответствует формату',
|
|
428
|
+
postalcodeReplace: 'Заменить справочным',
|
|
429
|
+
|
|
430
|
+
foreignAddressLabel: 'Адрес',
|
|
431
|
+
foreignAddressPlaceholder: '',
|
|
432
|
+
|
|
433
|
+
countryLabel: 'Страна',
|
|
434
|
+
countryPlaceholder: 'Начните вводить название страны',
|
|
435
|
+
};
|
|
436
|
+
```
|