@alfalab/core-components 44.7.0-beta.0 → 44.7.0-beta.1
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/confirmation/components/screens/initial/component.js +1 -1
- package/confirmation/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/esm/component.responsive.js +1 -1
- package/confirmation/esm/components/base-confirmation/component.js +1 -1
- package/confirmation/esm/components/base-confirmation/index.js +1 -1
- package/confirmation/esm/components/index.js +1 -1
- package/confirmation/esm/components/screens/index.js +1 -1
- package/confirmation/esm/components/screens/initial/component.js +1 -1
- package/confirmation/esm/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/esm/components/screens/initial/index.js +1 -1
- package/confirmation/esm/desktop/component.desktop.js +1 -1
- package/confirmation/esm/desktop/index.js +1 -1
- package/confirmation/esm/index.js +1 -1
- package/confirmation/esm/mobile/component.mobile.js +1 -1
- package/confirmation/esm/mobile/index.js +1 -1
- package/confirmation/esm/shared/index.js +1 -1
- package/confirmation/modern/component.responsive.js +1 -1
- package/confirmation/modern/components/base-confirmation/component.js +1 -1
- package/confirmation/modern/components/base-confirmation/index.js +1 -1
- package/confirmation/modern/components/index.js +1 -1
- package/confirmation/modern/components/screens/index.js +1 -1
- package/confirmation/modern/components/screens/initial/component.js +1 -1
- package/confirmation/modern/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/modern/components/screens/initial/index.js +1 -1
- package/confirmation/modern/desktop/component.desktop.js +1 -1
- package/confirmation/modern/desktop/index.js +1 -1
- package/confirmation/modern/index.js +1 -1
- package/confirmation/modern/mobile/component.mobile.js +1 -1
- package/confirmation/modern/mobile/index.js +1 -1
- package/confirmation/modern/shared/index.js +1 -1
- package/gallery/components/header/Component.js +1 -1
- package/gallery/components/header/buttons.js +1 -1
- package/gallery/components/image-viewer/component.js +1 -1
- package/gallery/components/image-viewer/slide.js +1 -1
- package/gallery/esm/Component.js +2 -2
- package/gallery/esm/components/header/Component.js +1 -1
- package/gallery/esm/components/header/buttons.js +1 -1
- package/gallery/esm/components/header/index.js +1 -1
- package/gallery/esm/components/image-preview/Component.js +1 -1
- package/gallery/esm/components/image-preview/index.js +1 -1
- package/gallery/esm/components/image-viewer/component.js +1 -1
- package/gallery/esm/components/image-viewer/index.js +1 -1
- package/gallery/esm/components/image-viewer/slide.js +1 -1
- package/gallery/esm/components/index.js +2 -2
- package/gallery/esm/components/navigation-bar/Component.js +1 -1
- package/gallery/esm/components/navigation-bar/index.js +1 -1
- package/gallery/esm/index.js +2 -2
- package/gallery/modern/Component.js +2 -2
- package/gallery/modern/components/header/Component.js +1 -1
- package/gallery/modern/components/header/buttons.js +1 -1
- package/gallery/modern/components/header/index.js +1 -1
- package/gallery/modern/components/image-preview/Component.js +1 -1
- package/gallery/modern/components/image-preview/index.js +1 -1
- package/gallery/modern/components/image-viewer/component.js +1 -1
- package/gallery/modern/components/image-viewer/index.js +1 -1
- package/gallery/modern/components/image-viewer/slide.js +1 -1
- package/gallery/modern/components/index.js +2 -2
- package/gallery/modern/components/navigation-bar/Component.js +1 -1
- package/gallery/modern/components/navigation-bar/index.js +1 -1
- package/gallery/modern/index.js +2 -2
- package/input-autocomplete/autocomplete-field/Component.js +1 -2
- package/input-autocomplete/cssm/autocomplete-field/Component.js +1 -2
- package/input-autocomplete/cssm/mobile/Component.mobile.js +2 -2
- package/input-autocomplete/cssm/types.d.ts +4 -2
- package/input-autocomplete/esm/autocomplete-field/Component.js +1 -2
- package/input-autocomplete/esm/mobile/Component.mobile.js +2 -2
- package/input-autocomplete/esm/types.d.ts +4 -2
- package/input-autocomplete/mobile/Component.mobile.js +2 -2
- package/input-autocomplete/modern/autocomplete-field/Component.js +1 -2
- package/input-autocomplete/modern/mobile/Component.mobile.js +2 -2
- package/input-autocomplete/modern/types.d.ts +4 -2
- package/input-autocomplete/types.d.ts +4 -2
- package/international-phone-input/Component.responsive.d.ts +6 -2
- package/international-phone-input/components/base-international-phone-input/Component.d.ts +3 -1
- package/international-phone-input/components/base-international-phone-input/Component.js +13 -10
- package/international-phone-input/cssm/Component.responsive.d.ts +6 -2
- package/international-phone-input/cssm/components/base-international-phone-input/Component.d.ts +3 -1
- package/international-phone-input/cssm/components/base-international-phone-input/Component.js +13 -10
- package/international-phone-input/cssm/types.d.ts +4 -2
- package/international-phone-input/esm/Component.responsive.d.ts +6 -2
- package/international-phone-input/esm/components/base-international-phone-input/Component.d.ts +3 -1
- package/international-phone-input/esm/components/base-international-phone-input/Component.js +13 -10
- package/international-phone-input/esm/types.d.ts +4 -2
- package/international-phone-input/modern/Component.responsive.d.ts +6 -2
- package/international-phone-input/modern/components/base-international-phone-input/Component.d.ts +3 -1
- package/international-phone-input/modern/components/base-international-phone-input/Component.js +10 -10
- package/international-phone-input/modern/types.d.ts +4 -2
- package/international-phone-input/types.d.ts +4 -2
- package/intl-phone-input/component.js +3 -3
- package/intl-phone-input/cssm/component.js +3 -3
- package/intl-phone-input/esm/component.js +3 -3
- package/intl-phone-input/modern/component.js +3 -3
- package/package.json +2 -2
- package/pure-cell/component.js +1 -1
- package/pure-cell/components/addon/component.js +1 -1
- package/pure-cell/components/addon/index.d.ts +1 -1
- package/pure-cell/components/addon/index.js +1 -1
- package/pure-cell/components/amount/component.js +1 -1
- package/pure-cell/components/amount/index.d.ts +1 -1
- package/pure-cell/components/amount/index.js +1 -1
- package/pure-cell/components/amount-title/component.js +1 -1
- package/pure-cell/components/amount-title/index.d.ts +1 -1
- package/pure-cell/components/amount-title/index.js +1 -1
- package/pure-cell/components/category/component.js +1 -1
- package/pure-cell/components/category/index.d.ts +1 -1
- package/pure-cell/components/category/index.js +1 -1
- package/pure-cell/components/content/component.js +1 -1
- package/pure-cell/components/content/index.d.ts +1 -1
- package/pure-cell/components/content/index.js +1 -1
- package/pure-cell/components/footer/component.js +1 -1
- package/pure-cell/components/footer/index.d.ts +1 -1
- package/pure-cell/components/footer/index.js +1 -1
- package/pure-cell/components/footer-button/component.js +1 -1
- package/pure-cell/components/footer-button/index.d.ts +1 -1
- package/pure-cell/components/footer-button/index.js +1 -1
- package/pure-cell/components/footer-text/component.js +1 -1
- package/pure-cell/components/footer-text/index.d.ts +1 -1
- package/pure-cell/components/footer-text/index.js +1 -1
- package/pure-cell/components/graphics/component.js +1 -1
- package/pure-cell/components/graphics/index.d.ts +1 -1
- package/pure-cell/components/graphics/index.js +1 -1
- package/pure-cell/components/main/component.js +1 -1
- package/pure-cell/components/main/index.d.ts +1 -1
- package/pure-cell/components/main/index.js +1 -1
- package/pure-cell/components/text/component.js +1 -1
- package/pure-cell/components/text/index.d.ts +1 -1
- package/pure-cell/components/text/index.js +1 -1
- package/pure-cell/esm/component.js +1 -1
- package/pure-cell/esm/components/addon/component.js +1 -1
- package/pure-cell/esm/components/addon/index.d.ts +1 -1
- package/pure-cell/esm/components/addon/index.js +1 -1
- package/pure-cell/esm/components/amount/component.js +1 -1
- package/pure-cell/esm/components/amount/index.d.ts +1 -1
- package/pure-cell/esm/components/amount/index.js +1 -1
- package/pure-cell/esm/components/amount-title/component.js +1 -1
- package/pure-cell/esm/components/amount-title/index.d.ts +1 -1
- package/pure-cell/esm/components/amount-title/index.js +1 -1
- package/pure-cell/esm/components/category/component.js +1 -1
- package/pure-cell/esm/components/category/index.d.ts +1 -1
- package/pure-cell/esm/components/category/index.js +1 -1
- package/pure-cell/esm/components/content/component.js +1 -1
- package/pure-cell/esm/components/content/index.d.ts +1 -1
- package/pure-cell/esm/components/content/index.js +1 -1
- package/pure-cell/esm/components/footer/component.js +1 -1
- package/pure-cell/esm/components/footer/index.d.ts +1 -1
- package/pure-cell/esm/components/footer/index.js +1 -1
- package/pure-cell/esm/components/footer-button/component.js +1 -1
- package/pure-cell/esm/components/footer-button/index.d.ts +1 -1
- package/pure-cell/esm/components/footer-button/index.js +1 -1
- package/pure-cell/esm/components/footer-text/component.js +1 -1
- package/pure-cell/esm/components/footer-text/index.d.ts +1 -1
- package/pure-cell/esm/components/footer-text/index.js +1 -1
- package/pure-cell/esm/components/graphics/component.js +1 -1
- package/pure-cell/esm/components/graphics/index.d.ts +1 -1
- package/pure-cell/esm/components/graphics/index.js +1 -1
- package/pure-cell/esm/components/main/component.js +1 -1
- package/pure-cell/esm/components/main/index.d.ts +1 -1
- package/pure-cell/esm/components/main/index.js +1 -1
- package/pure-cell/esm/components/text/component.js +1 -1
- package/pure-cell/esm/components/text/index.d.ts +1 -1
- package/pure-cell/esm/components/text/index.js +1 -1
- package/pure-cell/esm/index.js +1 -1
- package/pure-cell/index.js +1 -1
- package/pure-cell/modern/component.js +1 -1
- package/pure-cell/modern/components/addon/component.js +1 -1
- package/pure-cell/modern/components/addon/index.d.ts +1 -1
- package/pure-cell/modern/components/addon/index.js +1 -1
- package/pure-cell/modern/components/amount/component.js +1 -1
- package/pure-cell/modern/components/amount/index.d.ts +1 -1
- package/pure-cell/modern/components/amount/index.js +1 -1
- package/pure-cell/modern/components/amount-title/component.js +1 -1
- package/pure-cell/modern/components/amount-title/index.d.ts +1 -1
- package/pure-cell/modern/components/amount-title/index.js +1 -1
- package/pure-cell/modern/components/category/component.js +1 -1
- package/pure-cell/modern/components/category/index.d.ts +1 -1
- package/pure-cell/modern/components/category/index.js +1 -1
- package/pure-cell/modern/components/content/component.js +1 -1
- package/pure-cell/modern/components/content/index.d.ts +1 -1
- package/pure-cell/modern/components/content/index.js +1 -1
- package/pure-cell/modern/components/footer/component.js +1 -1
- package/pure-cell/modern/components/footer/index.d.ts +1 -1
- package/pure-cell/modern/components/footer/index.js +1 -1
- package/pure-cell/modern/components/footer-button/component.js +1 -1
- package/pure-cell/modern/components/footer-button/index.d.ts +1 -1
- package/pure-cell/modern/components/footer-button/index.js +1 -1
- package/pure-cell/modern/components/footer-text/component.js +1 -1
- package/pure-cell/modern/components/footer-text/index.d.ts +1 -1
- package/pure-cell/modern/components/footer-text/index.js +1 -1
- package/pure-cell/modern/components/graphics/component.js +1 -1
- package/pure-cell/modern/components/graphics/index.d.ts +1 -1
- package/pure-cell/modern/components/graphics/index.js +1 -1
- package/pure-cell/modern/components/main/component.js +1 -1
- package/pure-cell/modern/components/main/index.d.ts +1 -1
- package/pure-cell/modern/components/main/index.js +1 -1
- package/pure-cell/modern/components/text/component.js +1 -1
- package/pure-cell/modern/components/text/index.d.ts +1 -1
- package/pure-cell/modern/components/text/index.js +1 -1
- package/pure-cell/modern/index.js +1 -1
- package/select/components/base-select/Component.js +41 -37
- package/select/cssm/components/base-select/Component.js +41 -37
- package/select/esm/Component.responsive.js +1 -1
- package/select/esm/components/base-select/Component.js +43 -39
- package/select/esm/index.js +1 -1
- package/select/esm/mobile/Component.mobile.js +1 -1
- package/select/esm/mobile/Component.modal.mobile.js +1 -1
- package/select/esm/mobile/index.js +1 -1
- package/select/esm/presets/index.js +1 -1
- package/select/esm/presets/useSelectWithApply/hook.js +1 -1
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/select/esm/shared/index.js +1 -1
- package/select/mobile/Component.mobile.js +1 -1
- package/select/modern/Component.responsive.js +1 -1
- package/select/modern/components/base-select/Component.js +41 -36
- package/select/modern/index.js +1 -1
- package/select/modern/mobile/Component.mobile.js +1 -1
- package/select/modern/mobile/Component.modal.mobile.js +1 -1
- package/select/modern/mobile/index.js +1 -1
- package/select/modern/presets/index.js +1 -1
- package/select/modern/presets/useSelectWithApply/hook.js +1 -1
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/select/modern/shared/index.js +1 -1
- package/select/presets/index.js +1 -1
- package/select/presets/useSelectWithApply/hook.js +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/select/shared/index.js +1 -1
- package/side-panel/components/controls/Component.js +1 -1
- package/side-panel/components/footer/Component.js +1 -1
- package/side-panel/esm/Component.responsive.js +1 -1
- package/side-panel/esm/components/controls/Component.js +1 -1
- package/side-panel/esm/components/controls/index.js +1 -1
- package/side-panel/esm/components/footer/Component.desktop.js +1 -1
- package/side-panel/esm/components/footer/Component.js +1 -1
- package/side-panel/esm/components/footer/Component.mobile.js +1 -1
- package/side-panel/esm/desktop/Component.desktop.js +1 -1
- package/side-panel/esm/desktop/index.js +1 -1
- package/side-panel/esm/index.js +1 -1
- package/side-panel/esm/mobile/Component.mobile.js +1 -1
- package/side-panel/esm/mobile/index.js +1 -1
- package/side-panel/modern/Component.responsive.js +1 -1
- package/side-panel/modern/components/controls/Component.js +1 -1
- package/side-panel/modern/components/controls/index.js +1 -1
- package/side-panel/modern/components/footer/Component.desktop.js +1 -1
- package/side-panel/modern/components/footer/Component.js +1 -1
- package/side-panel/modern/components/footer/Component.mobile.js +1 -1
- package/side-panel/modern/desktop/Component.desktop.js +1 -1
- package/side-panel/modern/desktop/index.js +1 -1
- package/side-panel/modern/index.js +1 -1
- package/side-panel/modern/mobile/Component.mobile.js +1 -1
- package/side-panel/modern/mobile/index.js +1 -1
- package/themes/compiled/mobile-dark-bluetint.css +21 -21
- package/themes/dist/compiled/mobile-dark-bluetint.css +357 -357
- /package/confirmation/{countdown-section-63d239b8.d.ts → countdown-section-16b088be.d.ts} +0 -0
- /package/confirmation/{countdown-section-63d239b8.js → countdown-section-16b088be.js} +0 -0
- /package/confirmation/esm/{countdown-section-f77f5daf.d.ts → countdown-section-c62fc39d.d.ts} +0 -0
- /package/confirmation/esm/{countdown-section-f77f5daf.js → countdown-section-c62fc39d.js} +0 -0
- /package/confirmation/modern/{countdown-section-7fbcd274.d.ts → countdown-section-abb09576.d.ts} +0 -0
- /package/confirmation/modern/{countdown-section-7fbcd274.js → countdown-section-abb09576.js} +0 -0
- /package/gallery/{buttons-708e8bc9.d.ts → buttons-9a016308.d.ts} +0 -0
- /package/gallery/{buttons-708e8bc9.js → buttons-9a016308.js} +0 -0
- /package/gallery/esm/{buttons-242116ea.d.ts → buttons-b1c05e73.d.ts} +0 -0
- /package/gallery/esm/{buttons-242116ea.js → buttons-b1c05e73.js} +0 -0
- /package/gallery/esm/{slide-9a45bdb6.d.ts → slide-da5bf337.d.ts} +0 -0
- /package/gallery/esm/{slide-9a45bdb6.js → slide-da5bf337.js} +0 -0
- /package/gallery/modern/{buttons-030cc857.d.ts → buttons-30fa8a5d.d.ts} +0 -0
- /package/gallery/modern/{buttons-030cc857.js → buttons-30fa8a5d.js} +0 -0
- /package/gallery/modern/{slide-4029172e.d.ts → slide-438e6913.d.ts} +0 -0
- /package/gallery/modern/{slide-4029172e.js → slide-438e6913.js} +0 -0
- /package/gallery/{slide-7e1cb2fc.d.ts → slide-456f8387.d.ts} +0 -0
- /package/gallery/{slide-7e1cb2fc.js → slide-456f8387.js} +0 -0
- /package/pure-cell/{component-8965c1f1.d.ts → component-ba329973.d.ts} +0 -0
- /package/pure-cell/{component-8965c1f1.js → component-ba329973.js} +0 -0
- /package/pure-cell/esm/{component-991fe90e.d.ts → component-8dcf2e94.d.ts} +0 -0
- /package/pure-cell/esm/{component-991fe90e.js → component-8dcf2e94.js} +0 -0
- /package/pure-cell/modern/{component-23ae9ab3.d.ts → component-4c3cdd38.d.ts} +0 -0
- /package/pure-cell/modern/{component-23ae9ab3.js → component-4c3cdd38.js} +0 -0
- /package/select/esm/{hook-65049d00.d.ts → hook-70d4d250.d.ts} +0 -0
- /package/select/esm/{hook-65049d00.js → hook-70d4d250.js} +0 -0
- /package/select/{hook-2784297a.d.ts → hook-6fc2190d.d.ts} +0 -0
- /package/select/{hook-2784297a.js → hook-6fc2190d.js} +0 -0
- /package/select/modern/{hook-23f60998.d.ts → hook-7bb88af2.d.ts} +0 -0
- /package/select/modern/{hook-23f60998.js → hook-7bb88af2.js} +0 -0
- /package/side-panel/esm/{layout.module-e6804822.js → layout.module-0a3a954f.js} +0 -0
- /package/side-panel/{layout.module-940702b4.js → layout.module-3700a35d.js} +0 -0
- /package/side-panel/modern/{layout.module-e5e92680.js → layout.module-63bb050d.js} +0 -0
|
@@ -19,7 +19,7 @@ import 'swiper/react';
|
|
|
19
19
|
import '@alfalab/hooks';
|
|
20
20
|
import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
|
|
21
21
|
import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
|
|
22
|
-
import '../../slide-
|
|
22
|
+
import '../../slide-438e6913.js';
|
|
23
23
|
import '../image-viewer/paths.js';
|
|
24
24
|
import 'swiper/swiper.min.css';
|
|
25
25
|
import '../image-preview/paths.js';
|
|
@@ -20,7 +20,7 @@ import 'swiper/react';
|
|
|
20
20
|
import '@alfalab/hooks';
|
|
21
21
|
import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
|
|
22
22
|
import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
|
|
23
|
-
import '../../slide-
|
|
23
|
+
import '../../slide-438e6913.js';
|
|
24
24
|
import '../image-viewer/paths.js';
|
|
25
25
|
import 'swiper/swiper.min.css';
|
|
26
26
|
import '../image-preview/paths.js';
|
package/gallery/modern/index.js
CHANGED
|
@@ -22,10 +22,10 @@ import 'swiper/react';
|
|
|
22
22
|
import '@alfalab/hooks';
|
|
23
23
|
import '@alfalab/icons-glyph/ChevronBackHeavyMIcon';
|
|
24
24
|
import '@alfalab/icons-glyph/ChevronForwardHeavyMIcon';
|
|
25
|
-
import './slide-
|
|
25
|
+
import './slide-438e6913.js';
|
|
26
26
|
import './components/image-viewer/paths.js';
|
|
27
27
|
import 'swiper/swiper.min.css';
|
|
28
28
|
import './components/image-preview/paths.js';
|
|
29
29
|
import './components/header/Component.js';
|
|
30
30
|
import './components/header-info-block/Component.js';
|
|
31
|
-
import './buttons-
|
|
31
|
+
import './buttons-30fa8a5d.js';
|
|
@@ -28,11 +28,10 @@ var AutocompleteField = function (_a) {
|
|
|
28
28
|
inputRef.current.focus();
|
|
29
29
|
}
|
|
30
30
|
}, [onClick]);
|
|
31
|
-
var handleInput = function (_, payload) { return onInput === null || onInput === void 0 ? void 0 : onInput(payload.value); };
|
|
32
31
|
return (React__default.default.createElement(Input, tslib.__assign({ dataTestId: dataTestId }, inputProps, innerProps, { wrapperRef: mergeRefs__default.default([
|
|
33
32
|
innerProps.ref,
|
|
34
33
|
inputProps.wrapperRef,
|
|
35
|
-
]), ref: mergeRefs__default.default([inputRef, inputProps.ref]), disabled: disabled, readOnly: readOnly, block: true, label: label, labelView: labelView, placeholder: placeholder, size: size, error: error, success: success, hint: hint, onChange:
|
|
34
|
+
]), ref: mergeRefs__default.default([inputRef, inputProps.ref]), disabled: disabled, readOnly: readOnly, block: true, label: label, labelView: labelView, placeholder: placeholder, size: size, error: error, success: success, hint: hint, onChange: onInput, onClick: inputDisabled ? undefined : handleClick, onFocus: inputDisabled ? undefined : onFocus, autoComplete: 'off', value: value, rightAddons: (Arrow || inputProps.rightAddons) && (React__default.default.createElement(React__default.default.Fragment, null,
|
|
36
35
|
inputProps.rightAddons,
|
|
37
36
|
Arrow && (React__default.default.createElement("span", { className: cn__default.default(styles.arrow, (_b = {},
|
|
38
37
|
_b[styles.error] = error,
|
|
@@ -27,11 +27,10 @@ var AutocompleteField = function (_a) {
|
|
|
27
27
|
inputRef.current.focus();
|
|
28
28
|
}
|
|
29
29
|
}, [onClick]);
|
|
30
|
-
var handleInput = function (_, payload) { return onInput === null || onInput === void 0 ? void 0 : onInput(payload.value); };
|
|
31
30
|
return (React__default.default.createElement(Input, tslib.__assign({ dataTestId: dataTestId }, inputProps, innerProps, { wrapperRef: mergeRefs__default.default([
|
|
32
31
|
innerProps.ref,
|
|
33
32
|
inputProps.wrapperRef,
|
|
34
|
-
]), ref: mergeRefs__default.default([inputRef, inputProps.ref]), disabled: disabled, readOnly: readOnly, block: true, label: label, labelView: labelView, placeholder: placeholder, size: size, error: error, success: success, hint: hint, onChange:
|
|
33
|
+
]), ref: mergeRefs__default.default([inputRef, inputProps.ref]), disabled: disabled, readOnly: readOnly, block: true, label: label, labelView: labelView, placeholder: placeholder, size: size, error: error, success: success, hint: hint, onChange: onInput, onClick: inputDisabled ? undefined : handleClick, onFocus: inputDisabled ? undefined : onFocus, autoComplete: 'off', value: value, rightAddons: (Arrow || inputProps.rightAddons) && (React__default.default.createElement(React__default.default.Fragment, null,
|
|
35
34
|
inputProps.rightAddons,
|
|
36
35
|
Arrow && (React__default.default.createElement("span", { className: cn__default.default(styles__default.default.arrow, (_b = {},
|
|
37
36
|
_b[styles__default.default.error] = error,
|
|
@@ -27,7 +27,7 @@ var InputAutocompleteMobile = React__default.default.forwardRef(function (_a, re
|
|
|
27
27
|
var frozenValue = React.useRef('');
|
|
28
28
|
var searchInputRef = React.useRef(null);
|
|
29
29
|
var targetRef = React.useRef(null);
|
|
30
|
-
var restorePrevValue = function () { return onInput === null || onInput === void 0 ? void 0 : onInput(frozenValue.current); };
|
|
30
|
+
var restorePrevValue = function () { return onInput === null || onInput === void 0 ? void 0 : onInput(null, { value: frozenValue.current }); };
|
|
31
31
|
var setModalVisibility = function (isOpen) {
|
|
32
32
|
if (isOpen) {
|
|
33
33
|
frozenValue.current = value || '';
|
|
@@ -82,7 +82,7 @@ var InputAutocompleteMobile = React__default.default.forwardRef(function (_a, re
|
|
|
82
82
|
}), { dataTestId: dataTestId, useWithApplyHook: false, showSearch: true, searchProps: {
|
|
83
83
|
value: value,
|
|
84
84
|
filterFn: utils.searchFilterStub,
|
|
85
|
-
componentProps: tslib.__assign(tslib.__assign({ leftAddons: null, placeholder: placeholder }, inputProps), { className: cn__default.default(styles__default.default.input, inputProps === null || inputProps === void 0 ? void 0 : inputProps.className), clear: clear, ref: mergeRefs__default.default([searchInputRef, inputProps === null || inputProps === void 0 ? void 0 : inputProps.ref]), onChange:
|
|
85
|
+
componentProps: tslib.__assign(tslib.__assign({ leftAddons: null, placeholder: placeholder }, inputProps), { className: cn__default.default(styles__default.default.input, inputProps === null || inputProps === void 0 ? void 0 : inputProps.className), clear: clear, ref: mergeRefs__default.default([searchInputRef, inputProps === null || inputProps === void 0 ? void 0 : inputProps.ref]), onChange: onInput }),
|
|
86
86
|
}, Search: Input, ref: mergeRefs__default.default([targetRef, ref]), open: isOpen, onOpen: handleOpen, Arrow: Arrow, placeholder: placeholder, label: label, size: size, name: name, multiple: multiple, optionsListProps: tslib.__assign({ footer: (React__default.default.createElement(shared.Footer, { showClear: true, handleClear: handleCancel, handleApply: handleApply, clearText: '\u041E\u0442\u043C\u0435\u043D\u0430', applyText: '\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C', dataTestId: dataTestId })) }, restProps.optionsListProps), fieldProps: tslib.__assign({ value: isOpen ? frozenValue.current : value, clear: clear, onClear: clear ? inputProps === null || inputProps === void 0 ? void 0 : inputProps.onClear : undefined }, restProps.fieldProps) })));
|
|
87
87
|
});
|
|
88
88
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC, RefAttributes } from 'react';
|
|
1
|
+
import { ChangeEvent, FC, RefAttributes } from 'react';
|
|
2
2
|
import { InputProps } from "../../input";
|
|
3
3
|
import { BaseSelectProps, BottomSheetSelectMobileProps } from "../../select/shared";
|
|
4
4
|
interface InputAutocompleteCommonProps extends Omit<BaseSelectProps, 'autocomplete' | 'Field' | 'nativeSelect' | 'searchProps' | 'showSearch' | 'Search'> {
|
|
@@ -25,7 +25,9 @@ interface InputAutocompleteCommonProps extends Omit<BaseSelectProps, 'autocomple
|
|
|
25
25
|
/**
|
|
26
26
|
* Обработчик ввода
|
|
27
27
|
*/
|
|
28
|
-
onInput?: (
|
|
28
|
+
onInput?: (event: ChangeEvent<HTMLInputElement> | null, payload: {
|
|
29
|
+
value: string;
|
|
30
|
+
}) => void;
|
|
29
31
|
}
|
|
30
32
|
type MobileProps = {
|
|
31
33
|
/**
|
|
@@ -20,11 +20,10 @@ var AutocompleteField = function (_a) {
|
|
|
20
20
|
inputRef.current.focus();
|
|
21
21
|
}
|
|
22
22
|
}, [onClick]);
|
|
23
|
-
var handleInput = function (_, payload) { return onInput === null || onInput === void 0 ? void 0 : onInput(payload.value); };
|
|
24
23
|
return (React.createElement(Input, __assign({ dataTestId: dataTestId }, inputProps, innerProps, { wrapperRef: mergeRefs([
|
|
25
24
|
innerProps.ref,
|
|
26
25
|
inputProps.wrapperRef,
|
|
27
|
-
]), ref: mergeRefs([inputRef, inputProps.ref]), disabled: disabled, readOnly: readOnly, block: true, label: label, labelView: labelView, placeholder: placeholder, size: size, error: error, success: success, hint: hint, onChange:
|
|
26
|
+
]), ref: mergeRefs([inputRef, inputProps.ref]), disabled: disabled, readOnly: readOnly, block: true, label: label, labelView: labelView, placeholder: placeholder, size: size, error: error, success: success, hint: hint, onChange: onInput, onClick: inputDisabled ? undefined : handleClick, onFocus: inputDisabled ? undefined : onFocus, autoComplete: 'off', value: value, rightAddons: (Arrow || inputProps.rightAddons) && (React.createElement(React.Fragment, null,
|
|
28
27
|
inputProps.rightAddons,
|
|
29
28
|
Arrow && (React.createElement("span", { className: cn(styles.arrow, (_b = {},
|
|
30
29
|
_b[styles.error] = error,
|
|
@@ -23,7 +23,7 @@ var InputAutocompleteMobile = React.forwardRef(function (_a, ref) {
|
|
|
23
23
|
var frozenValue = useRef('');
|
|
24
24
|
var searchInputRef = useRef(null);
|
|
25
25
|
var targetRef = useRef(null);
|
|
26
|
-
var restorePrevValue = function () { return onInput === null || onInput === void 0 ? void 0 : onInput(frozenValue.current); };
|
|
26
|
+
var restorePrevValue = function () { return onInput === null || onInput === void 0 ? void 0 : onInput(null, { value: frozenValue.current }); };
|
|
27
27
|
var setModalVisibility = function (isOpen) {
|
|
28
28
|
if (isOpen) {
|
|
29
29
|
frozenValue.current = value || '';
|
|
@@ -78,7 +78,7 @@ var InputAutocompleteMobile = React.forwardRef(function (_a, ref) {
|
|
|
78
78
|
}), { dataTestId: dataTestId, useWithApplyHook: false, showSearch: true, searchProps: {
|
|
79
79
|
value: value,
|
|
80
80
|
filterFn: searchFilterStub,
|
|
81
|
-
componentProps: __assign(__assign({ leftAddons: null, placeholder: placeholder }, inputProps), { className: cn(styles.input, inputProps === null || inputProps === void 0 ? void 0 : inputProps.className), clear: clear, ref: mergeRefs([searchInputRef, inputProps === null || inputProps === void 0 ? void 0 : inputProps.ref]), onChange:
|
|
81
|
+
componentProps: __assign(__assign({ leftAddons: null, placeholder: placeholder }, inputProps), { className: cn(styles.input, inputProps === null || inputProps === void 0 ? void 0 : inputProps.className), clear: clear, ref: mergeRefs([searchInputRef, inputProps === null || inputProps === void 0 ? void 0 : inputProps.ref]), onChange: onInput }),
|
|
82
82
|
}, Search: Input, ref: mergeRefs([targetRef, ref]), open: isOpen, onOpen: handleOpen, Arrow: Arrow, placeholder: placeholder, label: label, size: size, name: name, multiple: multiple, optionsListProps: __assign({ footer: (React.createElement(Footer, { showClear: true, handleClear: handleCancel, handleApply: handleApply, clearText: '\u041E\u0442\u043C\u0435\u043D\u0430', applyText: '\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C', dataTestId: dataTestId })) }, restProps.optionsListProps), fieldProps: __assign({ value: isOpen ? frozenValue.current : value, clear: clear, onClear: clear ? inputProps === null || inputProps === void 0 ? void 0 : inputProps.onClear : undefined }, restProps.fieldProps) })));
|
|
83
83
|
});
|
|
84
84
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC, RefAttributes } from 'react';
|
|
1
|
+
import { ChangeEvent, FC, RefAttributes } from 'react';
|
|
2
2
|
import { InputProps } from "../../input";
|
|
3
3
|
import { BaseSelectProps, BottomSheetSelectMobileProps } from "../../select/shared";
|
|
4
4
|
interface InputAutocompleteCommonProps extends Omit<BaseSelectProps, 'autocomplete' | 'Field' | 'nativeSelect' | 'searchProps' | 'showSearch' | 'Search'> {
|
|
@@ -25,7 +25,9 @@ interface InputAutocompleteCommonProps extends Omit<BaseSelectProps, 'autocomple
|
|
|
25
25
|
/**
|
|
26
26
|
* Обработчик ввода
|
|
27
27
|
*/
|
|
28
|
-
onInput?: (
|
|
28
|
+
onInput?: (event: ChangeEvent<HTMLInputElement> | null, payload: {
|
|
29
|
+
value: string;
|
|
30
|
+
}) => void;
|
|
29
31
|
}
|
|
30
32
|
type MobileProps = {
|
|
31
33
|
/**
|
|
@@ -28,7 +28,7 @@ var InputAutocompleteMobile = React__default.default.forwardRef(function (_a, re
|
|
|
28
28
|
var frozenValue = React.useRef('');
|
|
29
29
|
var searchInputRef = React.useRef(null);
|
|
30
30
|
var targetRef = React.useRef(null);
|
|
31
|
-
var restorePrevValue = function () { return onInput === null || onInput === void 0 ? void 0 : onInput(frozenValue.current); };
|
|
31
|
+
var restorePrevValue = function () { return onInput === null || onInput === void 0 ? void 0 : onInput(null, { value: frozenValue.current }); };
|
|
32
32
|
var setModalVisibility = function (isOpen) {
|
|
33
33
|
if (isOpen) {
|
|
34
34
|
frozenValue.current = value || '';
|
|
@@ -83,7 +83,7 @@ var InputAutocompleteMobile = React__default.default.forwardRef(function (_a, re
|
|
|
83
83
|
}), { dataTestId: dataTestId, useWithApplyHook: false, showSearch: true, searchProps: {
|
|
84
84
|
value: value,
|
|
85
85
|
filterFn: utils.searchFilterStub,
|
|
86
|
-
componentProps: tslib.__assign(tslib.__assign({ leftAddons: null, placeholder: placeholder }, inputProps), { className: cn__default.default(styles.input, inputProps === null || inputProps === void 0 ? void 0 : inputProps.className), clear: clear, ref: mergeRefs__default.default([searchInputRef, inputProps === null || inputProps === void 0 ? void 0 : inputProps.ref]), onChange:
|
|
86
|
+
componentProps: tslib.__assign(tslib.__assign({ leftAddons: null, placeholder: placeholder }, inputProps), { className: cn__default.default(styles.input, inputProps === null || inputProps === void 0 ? void 0 : inputProps.className), clear: clear, ref: mergeRefs__default.default([searchInputRef, inputProps === null || inputProps === void 0 ? void 0 : inputProps.ref]), onChange: onInput }),
|
|
87
87
|
}, Search: Input, ref: mergeRefs__default.default([targetRef, ref]), open: isOpen, onOpen: handleOpen, Arrow: Arrow, placeholder: placeholder, label: label, size: size, name: name, multiple: multiple, optionsListProps: tslib.__assign({ footer: (React__default.default.createElement(shared.Footer, { showClear: true, handleClear: handleCancel, handleApply: handleApply, clearText: '\u041E\u0442\u043C\u0435\u043D\u0430', applyText: '\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C', dataTestId: dataTestId })) }, restProps.optionsListProps), fieldProps: tslib.__assign({ value: isOpen ? frozenValue.current : value, clear: clear, onClear: clear ? inputProps === null || inputProps === void 0 ? void 0 : inputProps.onClear : undefined }, restProps.fieldProps) })));
|
|
88
88
|
});
|
|
89
89
|
|
|
@@ -17,11 +17,10 @@ const AutocompleteField = ({ label, labelView = 'inner', placeholder, size, Arro
|
|
|
17
17
|
inputRef.current.focus();
|
|
18
18
|
}
|
|
19
19
|
}, [onClick]);
|
|
20
|
-
const handleInput = (_, payload) => onInput?.(payload.value);
|
|
21
20
|
return (React.createElement(Input, { dataTestId: dataTestId, ...inputProps, ...innerProps, wrapperRef: mergeRefs([
|
|
22
21
|
innerProps.ref,
|
|
23
22
|
inputProps.wrapperRef,
|
|
24
|
-
]), ref: mergeRefs([inputRef, inputProps.ref]), disabled: disabled, readOnly: readOnly, block: true, label: label, labelView: labelView, placeholder: placeholder, size: size, error: error, success: success, hint: hint, onChange:
|
|
23
|
+
]), ref: mergeRefs([inputRef, inputProps.ref]), disabled: disabled, readOnly: readOnly, block: true, label: label, labelView: labelView, placeholder: placeholder, size: size, error: error, success: success, hint: hint, onChange: onInput, onClick: inputDisabled ? undefined : handleClick, onFocus: inputDisabled ? undefined : onFocus, autoComplete: 'off', value: value, rightAddons: (Arrow || inputProps.rightAddons) && (React.createElement(React.Fragment, null,
|
|
25
24
|
inputProps.rightAddons,
|
|
26
25
|
Arrow && (React.createElement("span", { className: cn(styles.arrow, {
|
|
27
26
|
[styles.error]: error,
|
|
@@ -19,7 +19,7 @@ const InputAutocompleteMobile = React.forwardRef(({ Input, value, name, Arrow =
|
|
|
19
19
|
const frozenValue = useRef('');
|
|
20
20
|
const searchInputRef = useRef(null);
|
|
21
21
|
const targetRef = useRef(null);
|
|
22
|
-
const restorePrevValue = () => onInput?.(frozenValue.current);
|
|
22
|
+
const restorePrevValue = () => onInput?.(null, { value: frozenValue.current });
|
|
23
23
|
const setModalVisibility = (isOpen) => {
|
|
24
24
|
if (isOpen) {
|
|
25
25
|
frozenValue.current = value || '';
|
|
@@ -80,7 +80,7 @@ const InputAutocompleteMobile = React.forwardRef(({ Input, value, name, Arrow =
|
|
|
80
80
|
className: cn(styles.input, inputProps?.className),
|
|
81
81
|
clear,
|
|
82
82
|
ref: mergeRefs([searchInputRef, inputProps?.ref]),
|
|
83
|
-
onChange:
|
|
83
|
+
onChange: onInput,
|
|
84
84
|
},
|
|
85
85
|
}, Search: Input, ref: mergeRefs([targetRef, ref]), open: isOpen, onOpen: handleOpen, Arrow: Arrow, placeholder: placeholder, label: label, size: size, name: name, multiple: multiple, optionsListProps: {
|
|
86
86
|
footer: (React.createElement(Footer, { showClear: true, handleClear: handleCancel, handleApply: handleApply, clearText: '\u041E\u0442\u043C\u0435\u043D\u0430', applyText: '\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C', dataTestId: dataTestId })),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC, RefAttributes } from 'react';
|
|
1
|
+
import { ChangeEvent, FC, RefAttributes } from 'react';
|
|
2
2
|
import { InputProps } from "../../input";
|
|
3
3
|
import { BaseSelectProps, BottomSheetSelectMobileProps } from "../../select/shared";
|
|
4
4
|
interface InputAutocompleteCommonProps extends Omit<BaseSelectProps, 'autocomplete' | 'Field' | 'nativeSelect' | 'searchProps' | 'showSearch' | 'Search'> {
|
|
@@ -25,7 +25,9 @@ interface InputAutocompleteCommonProps extends Omit<BaseSelectProps, 'autocomple
|
|
|
25
25
|
/**
|
|
26
26
|
* Обработчик ввода
|
|
27
27
|
*/
|
|
28
|
-
onInput?: (
|
|
28
|
+
onInput?: (event: ChangeEvent<HTMLInputElement> | null, payload: {
|
|
29
|
+
value: string;
|
|
30
|
+
}) => void;
|
|
29
31
|
}
|
|
30
32
|
type MobileProps = {
|
|
31
33
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FC, RefAttributes } from 'react';
|
|
1
|
+
import { ChangeEvent, FC, RefAttributes } from 'react';
|
|
2
2
|
import { InputProps } from "../input";
|
|
3
3
|
import { BaseSelectProps, BottomSheetSelectMobileProps } from "../select/shared";
|
|
4
4
|
interface InputAutocompleteCommonProps extends Omit<BaseSelectProps, 'autocomplete' | 'Field' | 'nativeSelect' | 'searchProps' | 'showSearch' | 'Search'> {
|
|
@@ -25,7 +25,9 @@ interface InputAutocompleteCommonProps extends Omit<BaseSelectProps, 'autocomple
|
|
|
25
25
|
/**
|
|
26
26
|
* Обработчик ввода
|
|
27
27
|
*/
|
|
28
|
-
onInput?: (
|
|
28
|
+
onInput?: (event: ChangeEvent<HTMLInputElement> | null, payload: {
|
|
29
|
+
value: string;
|
|
30
|
+
}) => void;
|
|
29
31
|
}
|
|
30
32
|
type MobileProps = {
|
|
31
33
|
/**
|
|
@@ -9,7 +9,9 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
|
|
|
9
9
|
clear?: boolean | undefined;
|
|
10
10
|
filterFn?: ((value: string | undefined, option: import("./typings-c29389e5").OptionShape) => boolean) | undefined;
|
|
11
11
|
onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
|
|
12
|
-
onChange?: ((
|
|
12
|
+
onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
|
|
13
|
+
value: string;
|
|
14
|
+
}) => void) | undefined;
|
|
13
15
|
onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
|
|
14
16
|
onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
|
|
15
17
|
} & {
|
|
@@ -28,7 +30,9 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
|
|
|
28
30
|
clear?: boolean | undefined;
|
|
29
31
|
filterFn?: ((value: string | undefined, option: import("./typings-c29389e5").OptionShape) => boolean) | undefined;
|
|
30
32
|
onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
|
|
31
|
-
onChange?: ((
|
|
33
|
+
onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
|
|
34
|
+
value: string;
|
|
35
|
+
}) => void) | undefined;
|
|
32
36
|
onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
|
|
33
37
|
onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
|
|
34
38
|
} & {
|
|
@@ -11,7 +11,9 @@ declare const BaseInternationalPhoneInput: React.ForwardRefExoticComponent<{
|
|
|
11
11
|
clear?: boolean | undefined;
|
|
12
12
|
filterFn?: ((value: string | undefined, option: import("../../typings-c29389e5").OptionShape) => boolean) | undefined;
|
|
13
13
|
onCountryChange?: ((country?: Country | undefined) => void) | undefined;
|
|
14
|
-
onChange?: ((
|
|
14
|
+
onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
|
|
15
|
+
value: string;
|
|
16
|
+
}) => void) | undefined;
|
|
15
17
|
onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
|
|
16
18
|
onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
|
|
17
19
|
} & {
|
|
@@ -34,43 +34,43 @@ var BaseInternationalPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
34
34
|
};
|
|
35
35
|
var maskOptions = React.useMemo(function () { return utils_index.createMaskOptions(country, clearableCountryCode); }, [country, clearableCountryCode]);
|
|
36
36
|
var maskRef = react.useMaskito({ options: maskOptions });
|
|
37
|
-
var changeNumber = function (phone) {
|
|
38
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(phone);
|
|
37
|
+
var changeNumber = function (e, phone) {
|
|
38
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(e, { value: phone });
|
|
39
39
|
};
|
|
40
|
-
var updatePhoneData = function (phone) {
|
|
40
|
+
var updatePhoneData = function (phone, e) {
|
|
41
41
|
var _a = utils_index.getPhoneData(phone, countriesData, defaultIso2), nextCountry = _a.nextCountry, nextPhone = _a.nextPhone;
|
|
42
42
|
if (nextCountry !== country) {
|
|
43
43
|
handleCountryChange === null || handleCountryChange === void 0 ? void 0 : handleCountryChange(nextCountry);
|
|
44
44
|
}
|
|
45
|
-
changeNumber(nextPhone);
|
|
45
|
+
changeNumber(e, nextPhone);
|
|
46
46
|
};
|
|
47
47
|
var handleSelectCountry = function (_a) {
|
|
48
48
|
var selected = _a.selected;
|
|
49
49
|
var nextCountry = selected === null || selected === void 0 ? void 0 : selected.value;
|
|
50
50
|
handleCountryChange === null || handleCountryChange === void 0 ? void 0 : handleCountryChange(nextCountry);
|
|
51
51
|
if (nextCountry) {
|
|
52
|
-
changeNumber("+".concat(nextCountry.dialCode));
|
|
52
|
+
changeNumber(null, "+".concat(nextCountry.dialCode));
|
|
53
53
|
}
|
|
54
54
|
requestAnimationFrame(function () { var _a; return (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus(); });
|
|
55
55
|
};
|
|
56
56
|
var handleOptionSelect = function (payload) {
|
|
57
57
|
var _a;
|
|
58
|
-
updatePhoneData(core.maskitoTransform(typeof payload === 'string' ? payload : ((_a = payload.selected) === null || _a === void 0 ? void 0 : _a.key) || '', maskOptions));
|
|
58
|
+
updatePhoneData(core.maskitoTransform(typeof payload === 'string' ? payload : ((_a = payload.selected) === null || _a === void 0 ? void 0 : _a.key) || '', maskOptions), null);
|
|
59
59
|
};
|
|
60
60
|
var handleInput = function (e) {
|
|
61
|
-
updatePhoneData(e.target.value);
|
|
61
|
+
updatePhoneData(e.target.value, e);
|
|
62
62
|
};
|
|
63
63
|
var handleClear = function (event) {
|
|
64
64
|
var _a, _b;
|
|
65
65
|
(_b = (_a = restProps.inputProps) === null || _a === void 0 ? void 0 : _a.onClear) === null || _b === void 0 ? void 0 : _b.call(_a, event);
|
|
66
66
|
var countryCode = (country === null || country === void 0 ? void 0 : country.countryCode) || '';
|
|
67
|
-
changeNumber(clearableCountryCode ? '' : "+".concat(countryCode));
|
|
67
|
+
changeNumber(null, clearableCountryCode ? '' : "+".concat(countryCode));
|
|
68
68
|
};
|
|
69
69
|
React.useEffect(function () {
|
|
70
70
|
if (value) {
|
|
71
71
|
var newValue = core.maskitoTransform(value, maskOptions);
|
|
72
72
|
if (value !== newValue) {
|
|
73
|
-
updatePhoneData(newValue);
|
|
73
|
+
updatePhoneData(newValue, null);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -81,7 +81,10 @@ var BaseInternationalPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
81
81
|
return (React__default.default.createElement(components_countrySelect_Component.CountrySelect, tslib.__assign({ dataTestId: restProps === null || restProps === void 0 ? void 0 : restProps.dataTestId }, countrySelectProps, { view: view, SelectComponent: SelectComponent, disabled: disabled || (countrySelectProps === null || countrySelectProps === void 0 ? void 0 : countrySelectProps.disabled), onChange: handleSelectCountry, country: country, countries: compact ? [] : countriesData, fieldWidth: (_a = inputWrapperRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().width })));
|
|
82
82
|
};
|
|
83
83
|
var inputProps = tslib.__assign({ className: styles.component, ref: mergeRefs__default.default([maskRef, ref, inputRef]), wrapperRef: inputWrapperRef, addonsClassName: styles.addons, type: 'tel', clear: utils_index.getClear(clearProp, clearableCountryCode, value, country === null || country === void 0 ? void 0 : country.countryCode) }, restProps.inputProps);
|
|
84
|
-
return Array.isArray(options) ? (React__default.default.createElement(InputAutocomplete, tslib.__assign({ closeOnSelect: true, Option: shared.BaseOption, size: size }, restProps, { disabled: disabled, options: filteredOptions, value: value, onChange: handleOptionSelect, onInput: function (
|
|
84
|
+
return Array.isArray(options) ? (React__default.default.createElement(InputAutocomplete, tslib.__assign({ closeOnSelect: true, Option: shared.BaseOption, size: size }, restProps, { disabled: disabled, options: filteredOptions, value: value, onChange: handleOptionSelect, onInput: function (event, _a) {
|
|
85
|
+
var phone = _a.value;
|
|
86
|
+
return updatePhoneData(phone, event);
|
|
87
|
+
}, inputProps: tslib.__assign(tslib.__assign({}, inputProps), { onClear: handleClear, onInput: handleInput, leftAddons: renderCountrySelect(view === 'mobile') }), fieldProps: tslib.__assign(tslib.__assign(tslib.__assign({}, restProps.fieldProps), { className: inputProps.className, addonsClassName: inputProps.addonsClassName }), (view === 'mobile' ? { leftAddons: renderCountrySelect() } : null)) }))) : (React__default.default.createElement(Input, tslib.__assign({}, restProps, inputProps, { onClear: inputProps.clear ? handleClear : undefined, leftAddons: renderCountrySelect(), size: size, onInput: handleInput, value: value, disabled: disabled })));
|
|
85
88
|
});
|
|
86
89
|
|
|
87
90
|
exports.BaseInternationalPhoneInput = BaseInternationalPhoneInput;
|
|
@@ -9,7 +9,9 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
|
|
|
9
9
|
clear?: boolean | undefined;
|
|
10
10
|
filterFn?: ((value: string | undefined, option: import("./typings-c29389e5").OptionShape) => boolean) | undefined;
|
|
11
11
|
onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
|
|
12
|
-
onChange?: ((
|
|
12
|
+
onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
|
|
13
|
+
value: string;
|
|
14
|
+
}) => void) | undefined;
|
|
13
15
|
onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
|
|
14
16
|
onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
|
|
15
17
|
} & {
|
|
@@ -28,7 +30,9 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
|
|
|
28
30
|
clear?: boolean | undefined;
|
|
29
31
|
filterFn?: ((value: string | undefined, option: import("./typings-c29389e5").OptionShape) => boolean) | undefined;
|
|
30
32
|
onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
|
|
31
|
-
onChange?: ((
|
|
33
|
+
onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
|
|
34
|
+
value: string;
|
|
35
|
+
}) => void) | undefined;
|
|
32
36
|
onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
|
|
33
37
|
onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
|
|
34
38
|
} & {
|
package/international-phone-input/cssm/components/base-international-phone-input/Component.d.ts
CHANGED
|
@@ -11,7 +11,9 @@ declare const BaseInternationalPhoneInput: React.ForwardRefExoticComponent<{
|
|
|
11
11
|
clear?: boolean | undefined;
|
|
12
12
|
filterFn?: ((value: string | undefined, option: import("../../typings-c29389e5").OptionShape) => boolean) | undefined;
|
|
13
13
|
onCountryChange?: ((country?: Country | undefined) => void) | undefined;
|
|
14
|
-
onChange?: ((
|
|
14
|
+
onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
|
|
15
|
+
value: string;
|
|
16
|
+
}) => void) | undefined;
|
|
15
17
|
onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
|
|
16
18
|
onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
|
|
17
19
|
} & {
|
package/international-phone-input/cssm/components/base-international-phone-input/Component.js
CHANGED
|
@@ -33,43 +33,43 @@ var BaseInternationalPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
33
33
|
};
|
|
34
34
|
var maskOptions = React.useMemo(function () { return utils_index.createMaskOptions(country, clearableCountryCode); }, [country, clearableCountryCode]);
|
|
35
35
|
var maskRef = react.useMaskito({ options: maskOptions });
|
|
36
|
-
var changeNumber = function (phone) {
|
|
37
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(phone);
|
|
36
|
+
var changeNumber = function (e, phone) {
|
|
37
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(e, { value: phone });
|
|
38
38
|
};
|
|
39
|
-
var updatePhoneData = function (phone) {
|
|
39
|
+
var updatePhoneData = function (phone, e) {
|
|
40
40
|
var _a = utils_index.getPhoneData(phone, countriesData, defaultIso2), nextCountry = _a.nextCountry, nextPhone = _a.nextPhone;
|
|
41
41
|
if (nextCountry !== country) {
|
|
42
42
|
handleCountryChange === null || handleCountryChange === void 0 ? void 0 : handleCountryChange(nextCountry);
|
|
43
43
|
}
|
|
44
|
-
changeNumber(nextPhone);
|
|
44
|
+
changeNumber(e, nextPhone);
|
|
45
45
|
};
|
|
46
46
|
var handleSelectCountry = function (_a) {
|
|
47
47
|
var selected = _a.selected;
|
|
48
48
|
var nextCountry = selected === null || selected === void 0 ? void 0 : selected.value;
|
|
49
49
|
handleCountryChange === null || handleCountryChange === void 0 ? void 0 : handleCountryChange(nextCountry);
|
|
50
50
|
if (nextCountry) {
|
|
51
|
-
changeNumber("+".concat(nextCountry.dialCode));
|
|
51
|
+
changeNumber(null, "+".concat(nextCountry.dialCode));
|
|
52
52
|
}
|
|
53
53
|
requestAnimationFrame(function () { var _a; return (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus(); });
|
|
54
54
|
};
|
|
55
55
|
var handleOptionSelect = function (payload) {
|
|
56
56
|
var _a;
|
|
57
|
-
updatePhoneData(core.maskitoTransform(typeof payload === 'string' ? payload : ((_a = payload.selected) === null || _a === void 0 ? void 0 : _a.key) || '', maskOptions));
|
|
57
|
+
updatePhoneData(core.maskitoTransform(typeof payload === 'string' ? payload : ((_a = payload.selected) === null || _a === void 0 ? void 0 : _a.key) || '', maskOptions), null);
|
|
58
58
|
};
|
|
59
59
|
var handleInput = function (e) {
|
|
60
|
-
updatePhoneData(e.target.value);
|
|
60
|
+
updatePhoneData(e.target.value, e);
|
|
61
61
|
};
|
|
62
62
|
var handleClear = function (event) {
|
|
63
63
|
var _a, _b;
|
|
64
64
|
(_b = (_a = restProps.inputProps) === null || _a === void 0 ? void 0 : _a.onClear) === null || _b === void 0 ? void 0 : _b.call(_a, event);
|
|
65
65
|
var countryCode = (country === null || country === void 0 ? void 0 : country.countryCode) || '';
|
|
66
|
-
changeNumber(clearableCountryCode ? '' : "+".concat(countryCode));
|
|
66
|
+
changeNumber(null, clearableCountryCode ? '' : "+".concat(countryCode));
|
|
67
67
|
};
|
|
68
68
|
React.useEffect(function () {
|
|
69
69
|
if (value) {
|
|
70
70
|
var newValue = core.maskitoTransform(value, maskOptions);
|
|
71
71
|
if (value !== newValue) {
|
|
72
|
-
updatePhoneData(newValue);
|
|
72
|
+
updatePhoneData(newValue, null);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -80,7 +80,10 @@ var BaseInternationalPhoneInput = React.forwardRef(function (_a, ref) {
|
|
|
80
80
|
return (React__default.default.createElement(components_countrySelect_Component.CountrySelect, tslib.__assign({ dataTestId: restProps === null || restProps === void 0 ? void 0 : restProps.dataTestId }, countrySelectProps, { view: view, SelectComponent: SelectComponent, disabled: disabled || (countrySelectProps === null || countrySelectProps === void 0 ? void 0 : countrySelectProps.disabled), onChange: handleSelectCountry, country: country, countries: compact ? [] : countriesData, fieldWidth: (_a = inputWrapperRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().width })));
|
|
81
81
|
};
|
|
82
82
|
var inputProps = tslib.__assign({ className: styles__default.default.component, ref: mergeRefs__default.default([maskRef, ref, inputRef]), wrapperRef: inputWrapperRef, addonsClassName: styles__default.default.addons, type: 'tel', clear: utils_index.getClear(clearProp, clearableCountryCode, value, country === null || country === void 0 ? void 0 : country.countryCode) }, restProps.inputProps);
|
|
83
|
-
return Array.isArray(options) ? (React__default.default.createElement(InputAutocomplete, tslib.__assign({ closeOnSelect: true, Option: shared.BaseOption, size: size }, restProps, { disabled: disabled, options: filteredOptions, value: value, onChange: handleOptionSelect, onInput: function (
|
|
83
|
+
return Array.isArray(options) ? (React__default.default.createElement(InputAutocomplete, tslib.__assign({ closeOnSelect: true, Option: shared.BaseOption, size: size }, restProps, { disabled: disabled, options: filteredOptions, value: value, onChange: handleOptionSelect, onInput: function (event, _a) {
|
|
84
|
+
var phone = _a.value;
|
|
85
|
+
return updatePhoneData(phone, event);
|
|
86
|
+
}, inputProps: tslib.__assign(tslib.__assign({}, inputProps), { onClear: handleClear, onInput: handleInput, leftAddons: renderCountrySelect(view === 'mobile') }), fieldProps: tslib.__assign(tslib.__assign(tslib.__assign({}, restProps.fieldProps), { className: inputProps.className, addonsClassName: inputProps.addonsClassName }), (view === 'mobile' ? { leftAddons: renderCountrySelect() } : null)) }))) : (React__default.default.createElement(Input, tslib.__assign({}, restProps, inputProps, { onClear: inputProps.clear ? handleClear : undefined, leftAddons: renderCountrySelect(), size: size, onInput: handleInput, value: value, disabled: disabled })));
|
|
84
87
|
});
|
|
85
88
|
|
|
86
89
|
exports.BaseInternationalPhoneInput = BaseInternationalPhoneInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementType, FC, FocusEvent } from 'react';
|
|
1
|
+
import { ChangeEvent, ElementType, FC, FocusEvent } from 'react';
|
|
2
2
|
import { InputProps } from "../../input";
|
|
3
3
|
import { InputDesktopProps } from "../../input/desktop";
|
|
4
4
|
import { InputMobileProps } from "../../input/mobile";
|
|
@@ -57,7 +57,9 @@ type CommonPhoneInputProps = {
|
|
|
57
57
|
/**
|
|
58
58
|
* Обработчик изменения номера
|
|
59
59
|
*/
|
|
60
|
-
onChange?: (
|
|
60
|
+
onChange?: (e: ChangeEvent<HTMLInputElement> | null, { value }: {
|
|
61
|
+
value: string;
|
|
62
|
+
}) => void;
|
|
61
63
|
/**
|
|
62
64
|
* Обработчик блюра поля
|
|
63
65
|
*/
|
|
@@ -9,7 +9,9 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
|
|
|
9
9
|
clear?: boolean | undefined;
|
|
10
10
|
filterFn?: ((value: string | undefined, option: import("./typings-c29389e5").OptionShape) => boolean) | undefined;
|
|
11
11
|
onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
|
|
12
|
-
onChange?: ((
|
|
12
|
+
onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
|
|
13
|
+
value: string;
|
|
14
|
+
}) => void) | undefined;
|
|
13
15
|
onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
|
|
14
16
|
onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
|
|
15
17
|
} & {
|
|
@@ -28,7 +30,9 @@ declare const InternationalPhoneInput: React.ForwardRefExoticComponent<(({
|
|
|
28
30
|
clear?: boolean | undefined;
|
|
29
31
|
filterFn?: ((value: string | undefined, option: import("./typings-c29389e5").OptionShape) => boolean) | undefined;
|
|
30
32
|
onCountryChange?: ((country?: import("./types").Country | undefined) => void) | undefined;
|
|
31
|
-
onChange?: ((
|
|
33
|
+
onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
|
|
34
|
+
value: string;
|
|
35
|
+
}) => void) | undefined;
|
|
32
36
|
onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
|
|
33
37
|
onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
|
|
34
38
|
} & {
|
package/international-phone-input/esm/components/base-international-phone-input/Component.d.ts
CHANGED
|
@@ -11,7 +11,9 @@ declare const BaseInternationalPhoneInput: React.ForwardRefExoticComponent<{
|
|
|
11
11
|
clear?: boolean | undefined;
|
|
12
12
|
filterFn?: ((value: string | undefined, option: import("../../typings-c29389e5").OptionShape) => boolean) | undefined;
|
|
13
13
|
onCountryChange?: ((country?: Country | undefined) => void) | undefined;
|
|
14
|
-
onChange?: ((
|
|
14
|
+
onChange?: ((e: React.ChangeEvent<HTMLInputElement> | null, { value }: {
|
|
15
|
+
value: string;
|
|
16
|
+
}) => void) | undefined;
|
|
15
17
|
onBlur?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
|
|
16
18
|
onFocus?: ((event: React.FocusEvent<HTMLDivElement | HTMLInputElement, Element>) => void) | undefined;
|
|
17
19
|
} & {
|
package/international-phone-input/esm/components/base-international-phone-input/Component.js
CHANGED
|
@@ -36,43 +36,43 @@ var BaseInternationalPhoneInput = forwardRef(function (_a, ref) {
|
|
|
36
36
|
};
|
|
37
37
|
var maskOptions = useMemo(function () { return createMaskOptions(country, clearableCountryCode); }, [country, clearableCountryCode]);
|
|
38
38
|
var maskRef = useMaskito({ options: maskOptions });
|
|
39
|
-
var changeNumber = function (phone) {
|
|
40
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(phone);
|
|
39
|
+
var changeNumber = function (e, phone) {
|
|
40
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(e, { value: phone });
|
|
41
41
|
};
|
|
42
|
-
var updatePhoneData = function (phone) {
|
|
42
|
+
var updatePhoneData = function (phone, e) {
|
|
43
43
|
var _a = getPhoneData(phone, countriesData, defaultIso2), nextCountry = _a.nextCountry, nextPhone = _a.nextPhone;
|
|
44
44
|
if (nextCountry !== country) {
|
|
45
45
|
handleCountryChange === null || handleCountryChange === void 0 ? void 0 : handleCountryChange(nextCountry);
|
|
46
46
|
}
|
|
47
|
-
changeNumber(nextPhone);
|
|
47
|
+
changeNumber(e, nextPhone);
|
|
48
48
|
};
|
|
49
49
|
var handleSelectCountry = function (_a) {
|
|
50
50
|
var selected = _a.selected;
|
|
51
51
|
var nextCountry = selected === null || selected === void 0 ? void 0 : selected.value;
|
|
52
52
|
handleCountryChange === null || handleCountryChange === void 0 ? void 0 : handleCountryChange(nextCountry);
|
|
53
53
|
if (nextCountry) {
|
|
54
|
-
changeNumber("+".concat(nextCountry.dialCode));
|
|
54
|
+
changeNumber(null, "+".concat(nextCountry.dialCode));
|
|
55
55
|
}
|
|
56
56
|
requestAnimationFrame(function () { var _a; return (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus(); });
|
|
57
57
|
};
|
|
58
58
|
var handleOptionSelect = function (payload) {
|
|
59
59
|
var _a;
|
|
60
|
-
updatePhoneData(maskitoTransform(typeof payload === 'string' ? payload : ((_a = payload.selected) === null || _a === void 0 ? void 0 : _a.key) || '', maskOptions));
|
|
60
|
+
updatePhoneData(maskitoTransform(typeof payload === 'string' ? payload : ((_a = payload.selected) === null || _a === void 0 ? void 0 : _a.key) || '', maskOptions), null);
|
|
61
61
|
};
|
|
62
62
|
var handleInput = function (e) {
|
|
63
|
-
updatePhoneData(e.target.value);
|
|
63
|
+
updatePhoneData(e.target.value, e);
|
|
64
64
|
};
|
|
65
65
|
var handleClear = function (event) {
|
|
66
66
|
var _a, _b;
|
|
67
67
|
(_b = (_a = restProps.inputProps) === null || _a === void 0 ? void 0 : _a.onClear) === null || _b === void 0 ? void 0 : _b.call(_a, event);
|
|
68
68
|
var countryCode = (country === null || country === void 0 ? void 0 : country.countryCode) || '';
|
|
69
|
-
changeNumber(clearableCountryCode ? '' : "+".concat(countryCode));
|
|
69
|
+
changeNumber(null, clearableCountryCode ? '' : "+".concat(countryCode));
|
|
70
70
|
};
|
|
71
71
|
useEffect(function () {
|
|
72
72
|
if (value) {
|
|
73
73
|
var newValue = maskitoTransform(value, maskOptions);
|
|
74
74
|
if (value !== newValue) {
|
|
75
|
-
updatePhoneData(newValue);
|
|
75
|
+
updatePhoneData(newValue, null);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -83,7 +83,10 @@ var BaseInternationalPhoneInput = forwardRef(function (_a, ref) {
|
|
|
83
83
|
return (React.createElement(CountrySelect, __assign({ dataTestId: restProps === null || restProps === void 0 ? void 0 : restProps.dataTestId }, countrySelectProps, { view: view, SelectComponent: SelectComponent, disabled: disabled || (countrySelectProps === null || countrySelectProps === void 0 ? void 0 : countrySelectProps.disabled), onChange: handleSelectCountry, country: country, countries: compact ? [] : countriesData, fieldWidth: (_a = inputWrapperRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().width })));
|
|
84
84
|
};
|
|
85
85
|
var inputProps = __assign({ className: styles.component, ref: mergeRefs([maskRef, ref, inputRef]), wrapperRef: inputWrapperRef, addonsClassName: styles.addons, type: 'tel', clear: getClear(clearProp, clearableCountryCode, value, country === null || country === void 0 ? void 0 : country.countryCode) }, restProps.inputProps);
|
|
86
|
-
return Array.isArray(options) ? (React.createElement(InputAutocomplete, __assign({ closeOnSelect: true, Option: BaseOption, size: size }, restProps, { disabled: disabled, options: filteredOptions, value: value, onChange: handleOptionSelect, onInput: function (
|
|
86
|
+
return Array.isArray(options) ? (React.createElement(InputAutocomplete, __assign({ closeOnSelect: true, Option: BaseOption, size: size }, restProps, { disabled: disabled, options: filteredOptions, value: value, onChange: handleOptionSelect, onInput: function (event, _a) {
|
|
87
|
+
var phone = _a.value;
|
|
88
|
+
return updatePhoneData(phone, event);
|
|
89
|
+
}, inputProps: __assign(__assign({}, inputProps), { onClear: handleClear, onInput: handleInput, leftAddons: renderCountrySelect(view === 'mobile') }), fieldProps: __assign(__assign(__assign({}, restProps.fieldProps), { className: inputProps.className, addonsClassName: inputProps.addonsClassName }), (view === 'mobile' ? { leftAddons: renderCountrySelect() } : null)) }))) : (React.createElement(Input, __assign({}, restProps, inputProps, { onClear: inputProps.clear ? handleClear : undefined, leftAddons: renderCountrySelect(), size: size, onInput: handleInput, value: value, disabled: disabled })));
|
|
87
90
|
});
|
|
88
91
|
|
|
89
92
|
export { BaseInternationalPhoneInput };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementType, FC, FocusEvent } from 'react';
|
|
1
|
+
import { ChangeEvent, ElementType, FC, FocusEvent } from 'react';
|
|
2
2
|
import { InputProps } from "../../input";
|
|
3
3
|
import { InputDesktopProps } from "../../input/desktop";
|
|
4
4
|
import { InputMobileProps } from "../../input/mobile";
|
|
@@ -57,7 +57,9 @@ type CommonPhoneInputProps = {
|
|
|
57
57
|
/**
|
|
58
58
|
* Обработчик изменения номера
|
|
59
59
|
*/
|
|
60
|
-
onChange?: (
|
|
60
|
+
onChange?: (e: ChangeEvent<HTMLInputElement> | null, { value }: {
|
|
61
|
+
value: string;
|
|
62
|
+
}) => void;
|
|
61
63
|
/**
|
|
62
64
|
* Обработчик блюра поля
|
|
63
65
|
*/
|