@alfalab/core-components-international-phone-input 1.0.0
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/Component-4cd3936b.d.ts +19 -0
- package/Component-63dec22f.d.ts +184 -0
- package/Component-8b2c2707.d.ts +71 -0
- package/Component-9211a437.d.ts +38 -0
- package/Component-bdb4c6b9.d.ts +12 -0
- package/Component-c76d6398.d.ts +5 -0
- package/Component-d078a845.d.ts +7 -0
- package/Component-dd8ca091.d.ts +72 -0
- package/Component-ebda875c.d.ts +12 -0
- package/Component.desktop-2e2b2125.d.ts +6 -0
- package/Component.desktop-785df74d.d.ts +6 -0
- package/Component.desktop-d078a845.d.ts +73 -0
- package/Component.desktop-d873d97d.d.ts +6 -0
- package/Component.desktop.d.ts +5 -0
- package/Component.desktop.js +47 -0
- package/Component.mobile-4cd3936b.d.ts +98 -0
- package/Component.mobile-755fbaa3.d.ts +6 -0
- package/Component.mobile-ade26e99.d.ts +41 -0
- package/Component.mobile-d7e9f69d.d.ts +6 -0
- package/Component.mobile-ebda875c.d.ts +6 -0
- package/Component.mobile-f1f15074.d.ts +34 -0
- package/Component.mobile.d.ts +5 -0
- package/Component.mobile.js +82 -0
- package/Component.modal.mobile-4cd3936b.d.ts +91 -0
- package/Component.modal.mobile-dd8ca091.d.ts +60 -0
- package/Component.responsive-785df74d.d.ts +26 -0
- package/Component.responsive.d.ts +46 -0
- package/Component.responsive.js +43 -0
- package/Context-bdb4c6b9.d.ts +4 -0
- package/ResponsiveContext-baf4875b.d.ts +5 -0
- package/components/base-international-phone-input/Component.d.ts +26 -0
- package/components/base-international-phone-input/Component.js +98 -0
- package/components/base-international-phone-input/index.css +5 -0
- package/components/base-international-phone-input/index.d.ts +1 -0
- package/components/base-international-phone-input/index.js +26 -0
- package/components/country-select/Component.d.ts +21 -0
- package/components/country-select/Component.js +60 -0
- package/components/country-select/index.css +47 -0
- package/components/country-select/index.d.ts +1 -0
- package/components/country-select/index.js +20 -0
- package/components/flag-icon/component.d.ts +16 -0
- package/components/flag-icon/component.js +27 -0
- package/components/flag-icon/flagSprite.d.ts +2 -0
- package/components/flag-icon/flagSprite.js +233 -0
- package/components/flag-icon/index.css +30 -0
- package/components/flag-icon/index.d.ts +1 -0
- package/components/flag-icon/index.js +12 -0
- package/components/select-field/component.d.ts +8 -0
- package/components/select-field/component.js +43 -0
- package/components/select-field/index.css +53 -0
- package/components/select-field/index.d.ts +1 -0
- package/components/select-field/index.js +18 -0
- package/consts-f777ba1a.d.ts +2 -0
- package/consts.d.ts +2 -0
- package/consts.js +7 -0
- package/cssm/Component-4cd3936b.d.ts +7 -0
- package/cssm/Component-8b2c2707.d.ts +71 -0
- package/cssm/Component-9211a437.d.ts +38 -0
- package/cssm/Component-96988a65.d.ts +9 -0
- package/cssm/Component-aed0af6e.d.ts +11 -0
- package/cssm/Component-bdb4c6b9.d.ts +12 -0
- package/cssm/Component-c76d6398.d.ts +5 -0
- package/cssm/Component-dd8ca091.d.ts +5 -0
- package/cssm/Component-ebda875c.d.ts +101 -0
- package/cssm/Component-f12ee135.d.ts +72 -0
- package/cssm/Component.desktop-2e2b2125.d.ts +6 -0
- package/cssm/Component.desktop-4cd3936b.d.ts +73 -0
- package/cssm/Component.desktop-785df74d.d.ts +6 -0
- package/cssm/Component.desktop-d873d97d.d.ts +6 -0
- package/cssm/Component.desktop-ebda875c.d.ts +18 -0
- package/cssm/Component.desktop.d.ts +5 -0
- package/cssm/Component.desktop.js +51 -0
- package/cssm/Component.mobile-755fbaa3.d.ts +6 -0
- package/cssm/Component.mobile-ade26e99.d.ts +41 -0
- package/cssm/Component.mobile-d7e9f69d.d.ts +6 -0
- package/cssm/Component.mobile-f1f15074.d.ts +34 -0
- package/cssm/Component.mobile.d.ts +5 -0
- package/cssm/Component.mobile.js +86 -0
- package/cssm/Component.responsive-d7e9f69d.d.ts +26 -0
- package/cssm/Component.responsive.d.ts +46 -0
- package/cssm/Component.responsive.js +47 -0
- package/cssm/Context-bdb4c6b9.d.ts +4 -0
- package/cssm/ResponsiveContext-baf4875b.d.ts +5 -0
- package/cssm/components/base-international-phone-input/Component.d.ts +26 -0
- package/cssm/components/base-international-phone-input/Component.js +100 -0
- package/cssm/components/base-international-phone-input/index.d.ts +1 -0
- package/cssm/components/base-international-phone-input/index.js +30 -0
- package/cssm/components/base-international-phone-input/index.module.css +4 -0
- package/cssm/components/country-select/Component.d.ts +21 -0
- package/cssm/components/country-select/Component.js +61 -0
- package/cssm/components/country-select/index.d.ts +1 -0
- package/cssm/components/country-select/index.js +23 -0
- package/cssm/components/country-select/index.module.css +47 -0
- package/cssm/components/flag-icon/component.d.ts +16 -0
- package/cssm/components/flag-icon/component.js +26 -0
- package/cssm/components/flag-icon/flagSprite.d.ts +2 -0
- package/cssm/components/flag-icon/flagSprite.js +233 -0
- package/cssm/components/flag-icon/index.d.ts +1 -0
- package/cssm/components/flag-icon/index.js +13 -0
- package/cssm/components/flag-icon/index.module.css +29 -0
- package/cssm/components/select-field/component.d.ts +8 -0
- package/cssm/components/select-field/component.js +43 -0
- package/cssm/components/select-field/index.d.ts +1 -0
- package/cssm/components/select-field/index.js +20 -0
- package/cssm/components/select-field/index.module.css +52 -0
- package/cssm/consts-f777ba1a.d.ts +2 -0
- package/cssm/consts.d.ts +2 -0
- package/cssm/consts.js +7 -0
- package/cssm/data/country-data.d.ts +3 -0
- package/cssm/data/country-data.js +587 -0
- package/cssm/desktop-232828f7.d.ts +2 -0
- package/cssm/desktop-2e2b2125.d.ts +2 -0
- package/cssm/desktop-63dec22f.d.ts +2 -0
- package/cssm/desktop-785df74d.d.ts +2 -0
- package/cssm/desktop.d.ts +2 -0
- package/cssm/desktop.js +34 -0
- package/cssm/hook-8abfea97.d.ts +90 -0
- package/cssm/hook-ebda875c.d.ts +48 -0
- package/cssm/index-136acbb1.d.ts +28 -0
- package/cssm/index-72dda473.d.ts +12 -0
- package/cssm/index-8b2c2707.d.ts +6 -0
- package/cssm/index-bdb4c6b9.d.ts +180 -0
- package/cssm/index-c76d6398.d.ts +319 -0
- package/cssm/index-ebda875c.d.ts +3 -0
- package/cssm/index-f12ee135.d.ts +52 -0
- package/cssm/index.d.ts +2 -0
- package/cssm/index.js +40 -0
- package/cssm/mobile-45dc17c6.d.ts +47 -0
- package/cssm/mobile-4c19bc40.d.ts +121 -0
- package/cssm/mobile-96988a65.d.ts +3 -0
- package/cssm/mobile.d.ts +2 -0
- package/cssm/mobile.js +34 -0
- package/cssm/shared-4cd3936b.d.ts +7 -0
- package/cssm/types-1b036d4b.d.ts +13 -0
- package/cssm/types-72dda473.d.ts +276 -0
- package/cssm/types.d.ts +100 -0
- package/cssm/types.js +2 -0
- package/cssm/typings-9211a437.d.ts +95 -0
- package/cssm/typings-bdb4c6b9.d.ts +52 -0
- package/cssm/typings-dd8ca091.d.ts +572 -0
- package/cssm/useSkeleton-1b036d4b.d.ts +12 -0
- package/cssm/utils/index.d.ts +18 -0
- package/cssm/utils/index.js +201 -0
- package/cssm/utils-dd8ca091.d.ts +41 -0
- package/data/country-data.d.ts +3 -0
- package/data/country-data.js +587 -0
- package/desktop-232828f7.d.ts +2 -0
- package/desktop-2e2b2125.d.ts +2 -0
- package/desktop-63dec22f.d.ts +2 -0
- package/desktop.d.ts +2 -0
- package/desktop.js +30 -0
- package/esm/Component-4cd3936b.d.ts +19 -0
- package/esm/Component-63dec22f.d.ts +184 -0
- package/esm/Component-8b2c2707.d.ts +71 -0
- package/esm/Component-9211a437.d.ts +38 -0
- package/esm/Component-bdb4c6b9.d.ts +12 -0
- package/esm/Component-c76d6398.d.ts +5 -0
- package/esm/Component-d078a845.d.ts +7 -0
- package/esm/Component-dd8ca091.d.ts +72 -0
- package/esm/Component-ebda875c.d.ts +12 -0
- package/esm/Component.desktop-2e2b2125.d.ts +6 -0
- package/esm/Component.desktop-785df74d.d.ts +6 -0
- package/esm/Component.desktop-d078a845.d.ts +73 -0
- package/esm/Component.desktop-d873d97d.d.ts +6 -0
- package/esm/Component.desktop.d.ts +5 -0
- package/esm/Component.desktop.js +39 -0
- package/esm/Component.mobile-4cd3936b.d.ts +98 -0
- package/esm/Component.mobile-755fbaa3.d.ts +6 -0
- package/esm/Component.mobile-ade26e99.d.ts +41 -0
- package/esm/Component.mobile-d7e9f69d.d.ts +6 -0
- package/esm/Component.mobile-ebda875c.d.ts +6 -0
- package/esm/Component.mobile-f1f15074.d.ts +34 -0
- package/esm/Component.mobile.d.ts +5 -0
- package/esm/Component.mobile.js +74 -0
- package/esm/Component.modal.mobile-4cd3936b.d.ts +91 -0
- package/esm/Component.modal.mobile-dd8ca091.d.ts +60 -0
- package/esm/Component.responsive-785df74d.d.ts +26 -0
- package/esm/Component.responsive.d.ts +46 -0
- package/esm/Component.responsive.js +35 -0
- package/esm/Context-bdb4c6b9.d.ts +4 -0
- package/esm/ResponsiveContext-baf4875b.d.ts +5 -0
- package/esm/components/base-international-phone-input/Component.d.ts +26 -0
- package/esm/components/base-international-phone-input/Component.js +89 -0
- package/esm/components/base-international-phone-input/index.css +5 -0
- package/esm/components/base-international-phone-input/index.d.ts +1 -0
- package/esm/components/base-international-phone-input/index.js +18 -0
- package/esm/components/country-select/Component.d.ts +21 -0
- package/esm/components/country-select/Component.js +52 -0
- package/esm/components/country-select/index.css +47 -0
- package/esm/components/country-select/index.d.ts +1 -0
- package/esm/components/country-select/index.js +12 -0
- package/esm/components/flag-icon/component.d.ts +16 -0
- package/esm/components/flag-icon/component.js +18 -0
- package/esm/components/flag-icon/flagSprite.d.ts +2 -0
- package/esm/components/flag-icon/flagSprite.js +229 -0
- package/esm/components/flag-icon/index.css +30 -0
- package/esm/components/flag-icon/index.d.ts +1 -0
- package/esm/components/flag-icon/index.js +4 -0
- package/esm/components/select-field/component.d.ts +8 -0
- package/esm/components/select-field/component.js +32 -0
- package/esm/components/select-field/index.css +53 -0
- package/esm/components/select-field/index.d.ts +1 -0
- package/esm/components/select-field/index.js +9 -0
- package/esm/consts-f777ba1a.d.ts +2 -0
- package/esm/consts.d.ts +2 -0
- package/esm/consts.js +3 -0
- package/esm/data/country-data.d.ts +3 -0
- package/esm/data/country-data.js +583 -0
- package/esm/desktop-232828f7.d.ts +2 -0
- package/esm/desktop-2e2b2125.d.ts +2 -0
- package/esm/desktop-63dec22f.d.ts +2 -0
- package/esm/desktop.d.ts +2 -0
- package/esm/desktop.js +22 -0
- package/esm/hook-8abfea97.d.ts +90 -0
- package/esm/index-136acbb1.d.ts +28 -0
- package/esm/index-72dda473.d.ts +12 -0
- package/esm/index-8b2c2707.d.ts +6 -0
- package/esm/index-bdb4c6b9.d.ts +2 -0
- package/esm/index-c76d6398.d.ts +141 -0
- package/esm/index-ebda875c.d.ts +3 -0
- package/esm/index-f12ee135.d.ts +52 -0
- package/esm/index.d.ts +2 -0
- package/esm/index.js +28 -0
- package/esm/mobile-4c19bc40.d.ts +3 -0
- package/esm/mobile-755fbaa3.d.ts +2 -0
- package/esm/mobile-96988a65.d.ts +2 -0
- package/esm/mobile-ade26e99.d.ts +5 -0
- package/esm/mobile-d7e9f69d.d.ts +2 -0
- package/esm/mobile.d.ts +2 -0
- package/esm/mobile.js +22 -0
- package/esm/shared-4cd3936b.d.ts +65 -0
- package/esm/types-1b036d4b.d.ts +13 -0
- package/esm/types-72dda473.d.ts +276 -0
- package/esm/types.d.ts +100 -0
- package/esm/types.js +1 -0
- package/esm/typings-9211a437.d.ts +95 -0
- package/esm/typings-bdb4c6b9.d.ts +52 -0
- package/esm/typings-dd8ca091.d.ts +572 -0
- package/esm/useSkeleton-ebda875c.d.ts +12 -0
- package/esm/utils/index.d.ts +18 -0
- package/esm/utils/index.js +189 -0
- package/esm/utils-1574ad8b.d.ts +29 -0
- package/esm/utils-dd8ca091.d.ts +41 -0
- package/hook-8abfea97.d.ts +90 -0
- package/index-136acbb1.d.ts +28 -0
- package/index-72dda473.d.ts +12 -0
- package/index-8b2c2707.d.ts +6 -0
- package/index-bdb4c6b9.d.ts +2 -0
- package/index-c76d6398.d.ts +141 -0
- package/index-ebda875c.d.ts +3 -0
- package/index-f12ee135.d.ts +52 -0
- package/index.d.ts +2 -0
- package/index.js +36 -0
- package/mobile-4c19bc40.d.ts +3 -0
- package/mobile-755fbaa3.d.ts +2 -0
- package/mobile-96988a65.d.ts +2 -0
- package/mobile-ade26e99.d.ts +5 -0
- package/mobile-d7e9f69d.d.ts +2 -0
- package/mobile.d.ts +2 -0
- package/mobile.js +30 -0
- package/modern/Component-4cd3936b.d.ts +19 -0
- package/modern/Component-63dec22f.d.ts +184 -0
- package/modern/Component-8b2c2707.d.ts +71 -0
- package/modern/Component-9211a437.d.ts +38 -0
- package/modern/Component-bdb4c6b9.d.ts +12 -0
- package/modern/Component-c76d6398.d.ts +5 -0
- package/modern/Component-d078a845.d.ts +7 -0
- package/modern/Component-dd8ca091.d.ts +72 -0
- package/modern/Component-ebda875c.d.ts +12 -0
- package/modern/Component.desktop-2e2b2125.d.ts +6 -0
- package/modern/Component.desktop-785df74d.d.ts +6 -0
- package/modern/Component.desktop-d078a845.d.ts +73 -0
- package/modern/Component.desktop-d873d97d.d.ts +6 -0
- package/modern/Component.desktop.d.ts +5 -0
- package/modern/Component.desktop.js +35 -0
- package/modern/Component.mobile-4cd3936b.d.ts +98 -0
- package/modern/Component.mobile-755fbaa3.d.ts +6 -0
- package/modern/Component.mobile-ade26e99.d.ts +41 -0
- package/modern/Component.mobile-d7e9f69d.d.ts +6 -0
- package/modern/Component.mobile-ebda875c.d.ts +6 -0
- package/modern/Component.mobile-f1f15074.d.ts +34 -0
- package/modern/Component.mobile.d.ts +5 -0
- package/modern/Component.mobile.js +77 -0
- package/modern/Component.modal.mobile-4cd3936b.d.ts +91 -0
- package/modern/Component.modal.mobile-dd8ca091.d.ts +60 -0
- package/modern/Component.responsive-785df74d.d.ts +26 -0
- package/modern/Component.responsive.d.ts +46 -0
- package/modern/Component.responsive.js +33 -0
- package/modern/Context-bdb4c6b9.d.ts +4 -0
- package/modern/ResponsiveContext-baf4875b.d.ts +5 -0
- package/modern/components/base-international-phone-input/Component.d.ts +26 -0
- package/modern/components/base-international-phone-input/Component.js +91 -0
- package/modern/components/base-international-phone-input/index.css +5 -0
- package/modern/components/base-international-phone-input/index.d.ts +1 -0
- package/modern/components/base-international-phone-input/index.js +17 -0
- package/modern/components/country-select/Component.d.ts +21 -0
- package/modern/components/country-select/Component.js +47 -0
- package/modern/components/country-select/index.css +47 -0
- package/modern/components/country-select/index.d.ts +1 -0
- package/modern/components/country-select/index.js +11 -0
- package/modern/components/flag-icon/component.d.ts +16 -0
- package/modern/components/flag-icon/component.js +15 -0
- package/modern/components/flag-icon/flagSprite.d.ts +2 -0
- package/modern/components/flag-icon/flagSprite.js +229 -0
- package/modern/components/flag-icon/index.css +30 -0
- package/modern/components/flag-icon/index.d.ts +1 -0
- package/modern/components/flag-icon/index.js +4 -0
- package/modern/components/select-field/component.d.ts +8 -0
- package/modern/components/select-field/component.js +29 -0
- package/modern/components/select-field/index.css +53 -0
- package/modern/components/select-field/index.d.ts +1 -0
- package/modern/components/select-field/index.js +8 -0
- package/modern/consts-f777ba1a.d.ts +2 -0
- package/modern/consts.d.ts +2 -0
- package/modern/consts.js +3 -0
- package/modern/data/country-data.d.ts +3 -0
- package/modern/data/country-data.js +583 -0
- package/modern/desktop-232828f7.d.ts +2 -0
- package/modern/desktop-2e2b2125.d.ts +2 -0
- package/modern/desktop-63dec22f.d.ts +2 -0
- package/modern/desktop.d.ts +2 -0
- package/modern/desktop.js +21 -0
- package/modern/hook-8abfea97.d.ts +90 -0
- package/modern/index-136acbb1.d.ts +28 -0
- package/modern/index-72dda473.d.ts +12 -0
- package/modern/index-8b2c2707.d.ts +6 -0
- package/modern/index-bdb4c6b9.d.ts +2 -0
- package/modern/index-c76d6398.d.ts +141 -0
- package/modern/index-ebda875c.d.ts +3 -0
- package/modern/index-f12ee135.d.ts +52 -0
- package/modern/index.d.ts +2 -0
- package/modern/index.js +27 -0
- package/modern/mobile-4c19bc40.d.ts +3 -0
- package/modern/mobile-755fbaa3.d.ts +2 -0
- package/modern/mobile-96988a65.d.ts +2 -0
- package/modern/mobile-ade26e99.d.ts +5 -0
- package/modern/mobile-d7e9f69d.d.ts +2 -0
- package/modern/mobile.d.ts +2 -0
- package/modern/mobile.js +21 -0
- package/modern/shared-4cd3936b.d.ts +65 -0
- package/modern/types-1b036d4b.d.ts +13 -0
- package/modern/types-72dda473.d.ts +276 -0
- package/modern/types.d.ts +100 -0
- package/modern/types.js +1 -0
- package/modern/typings-9211a437.d.ts +95 -0
- package/modern/typings-bdb4c6b9.d.ts +52 -0
- package/modern/typings-dd8ca091.d.ts +572 -0
- package/modern/useSkeleton-ebda875c.d.ts +12 -0
- package/modern/utils/index.d.ts +18 -0
- package/modern/utils/index.js +183 -0
- package/modern/utils-1574ad8b.d.ts +29 -0
- package/modern/utils-dd8ca091.d.ts +41 -0
- package/package.json +30 -0
- package/shared-4cd3936b.d.ts +65 -0
- package/src/Component.desktop.tsx +68 -0
- package/src/Component.mobile.tsx +132 -0
- package/src/Component.responsive.tsx +20 -0
- package/src/components/base-international-phone-input/Component.tsx +174 -0
- package/src/components/base-international-phone-input/index.module.css +5 -0
- package/src/components/base-international-phone-input/index.ts +1 -0
- package/src/components/country-select/Component.tsx +120 -0
- package/src/components/country-select/index.module.css +40 -0
- package/src/components/country-select/index.ts +1 -0
- package/src/components/flag-icon/component.tsx +33 -0
- package/src/components/flag-icon/flagSprite.ts +228 -0
- package/src/components/flag-icon/index.module.css +15 -0
- package/src/components/flag-icon/index.ts +1 -0
- package/src/components/select-field/component.tsx +51 -0
- package/src/components/select-field/index.module.css +43 -0
- package/src/components/select-field/index.ts +1 -0
- package/src/consts.ts +1 -0
- package/src/data/country-data.ts +584 -0
- package/src/desktop.ts +2 -0
- package/src/index.ts +2 -0
- package/src/mobile.ts +2 -0
- package/src/types.ts +132 -0
- package/src/utils/index.ts +246 -0
- package/types-1b036d4b.d.ts +13 -0
- package/types-72dda473.d.ts +276 -0
- package/types.d.ts +100 -0
- package/types.js +2 -0
- package/typings-9211a437.d.ts +95 -0
- package/typings-bdb4c6b9.d.ts +52 -0
- package/typings-dd8ca091.d.ts +572 -0
- package/useSkeleton-ebda875c.d.ts +12 -0
- package/utils/index.d.ts +18 -0
- package/utils/index.js +201 -0
- package/utils-1574ad8b.d.ts +29 -0
- package/utils-dd8ca091.d.ts +41 -0
package/mobile.d.ts
ADDED
package/mobile.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var Component_mobile = require('./Component.mobile.js');
|
|
6
|
+
require('tslib');
|
|
7
|
+
require('react');
|
|
8
|
+
require('@alfalab/core-components-input/mobile');
|
|
9
|
+
require('@alfalab/core-components-input-autocomplete/mobile');
|
|
10
|
+
require('@alfalab/core-components-select/mobile');
|
|
11
|
+
require('./components/base-international-phone-input/Component.js');
|
|
12
|
+
require('react-merge-refs');
|
|
13
|
+
require('@maskito/core');
|
|
14
|
+
require('@maskito/react');
|
|
15
|
+
require('@alfalab/core-components-select/shared');
|
|
16
|
+
require('./utils/index.js');
|
|
17
|
+
require('@alfalab/core-components-shared');
|
|
18
|
+
require('./consts.js');
|
|
19
|
+
require('./data/country-data.js');
|
|
20
|
+
require('./components/country-select/Component.js');
|
|
21
|
+
require('@alfalab/icons-glyph/WorldMagnifierMIcon');
|
|
22
|
+
require('./components/flag-icon/component.js');
|
|
23
|
+
require('classnames');
|
|
24
|
+
require('./components/flag-icon/flagSprite.js');
|
|
25
|
+
require('./components/select-field/component.js');
|
|
26
|
+
require('@alfalab/hooks');
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
exports.InternationalPhoneInputMobile = Component_mobile.InternationalPhoneInputMobile;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ElementType } from "react";
|
|
4
|
+
import { FormControlMobileProps } from "./mobile-d7e9f69d";
|
|
5
|
+
import { FieldProps as BaseFieldProps } from "./shared-4cd3936b";
|
|
6
|
+
type FieldProps = {
|
|
7
|
+
/**
|
|
8
|
+
* Компонент FormControl
|
|
9
|
+
*/
|
|
10
|
+
FormControlComponent?: ElementType;
|
|
11
|
+
};
|
|
12
|
+
type AutocompleteMobileFieldProps = FormControlMobileProps & Omit<BaseFieldProps, 'selected' | 'multiple' | 'success'> & {
|
|
13
|
+
/**
|
|
14
|
+
* Значение поля ввода
|
|
15
|
+
*/
|
|
16
|
+
value?: string;
|
|
17
|
+
};
|
|
18
|
+
declare const AutocompleteMobileField: ({ size, open, disabled, value, innerProps, dataTestId, fieldClassName, labelView, placeholder, Arrow, valueRenderer, toggleMenu, setSelectedItems, selectedMultiple, FormControlComponent, ...restProps }: AutocompleteMobileFieldProps & FieldProps) => React.JSX.Element;
|
|
19
|
+
export { AutocompleteMobileFieldProps, AutocompleteMobileField };
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FC, ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from "react";
|
|
4
|
+
import { TextElementType, TextSkeletonProps } from "./types-1b036d4b";
|
|
5
|
+
declare const colors: readonly [
|
|
6
|
+
"tertiary",
|
|
7
|
+
"disabled",
|
|
8
|
+
"accent",
|
|
9
|
+
"primary",
|
|
10
|
+
"attention",
|
|
11
|
+
"positive",
|
|
12
|
+
"secondary",
|
|
13
|
+
"tertiary-inverted",
|
|
14
|
+
"primary-inverted",
|
|
15
|
+
"secondary-inverted",
|
|
16
|
+
"link",
|
|
17
|
+
"negative",
|
|
18
|
+
"static-primary-light",
|
|
19
|
+
"static-secondary-light",
|
|
20
|
+
"static-tertiary-light",
|
|
21
|
+
"static-primary-dark",
|
|
22
|
+
"static-secondary-dark",
|
|
23
|
+
"static-tertiary-dark",
|
|
24
|
+
"static-accent"
|
|
25
|
+
];
|
|
26
|
+
type Color = (typeof colors)[number];
|
|
27
|
+
type NativeProps = HTMLAttributes<HTMLSpanElement>;
|
|
28
|
+
type TextBaseProps = {
|
|
29
|
+
/**
|
|
30
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/tokens-assets-типографика--docs)
|
|
31
|
+
*/
|
|
32
|
+
view?: "primary-large" | "primary-medium" | "primary-small" | "secondary-large" | "secondary-medium" | "secondary-small" | "component" | "caps";
|
|
33
|
+
/**
|
|
34
|
+
* Цвет текста
|
|
35
|
+
*/
|
|
36
|
+
color?: Color;
|
|
37
|
+
/**
|
|
38
|
+
* Толщина шрифта
|
|
39
|
+
*/
|
|
40
|
+
weight?: "regular" | "medium" | "bold";
|
|
41
|
+
/**
|
|
42
|
+
* Делает цифры моноширинными
|
|
43
|
+
*/
|
|
44
|
+
monospaceNumbers?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* HTML тег
|
|
47
|
+
*/
|
|
48
|
+
tag?: "span" | "div";
|
|
49
|
+
/**
|
|
50
|
+
* Css-класс для стилизации (native prop)
|
|
51
|
+
*/
|
|
52
|
+
className?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Id компонента для тестов
|
|
55
|
+
*/
|
|
56
|
+
dataTestId?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Контент (native prop)
|
|
59
|
+
*/
|
|
60
|
+
children?: React.ReactNode;
|
|
61
|
+
/**
|
|
62
|
+
* Добавляет отступы к тэгу 'p'
|
|
63
|
+
*/
|
|
64
|
+
defaultMargins?: never;
|
|
65
|
+
/**
|
|
66
|
+
* Количество строк (не поддерживает IE)
|
|
67
|
+
*/
|
|
68
|
+
rowLimit?: 1 | 2 | 3;
|
|
69
|
+
/**
|
|
70
|
+
* Показать скелетон
|
|
71
|
+
*/
|
|
72
|
+
showSkeleton?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Пропы для скелетона
|
|
75
|
+
*/
|
|
76
|
+
skeletonProps?: TextSkeletonProps;
|
|
77
|
+
};
|
|
78
|
+
type TextPTagProps = Omit<TextBaseProps, "tag" | "defaultMargins"> & {
|
|
79
|
+
tag?: "p";
|
|
80
|
+
defaultMargins?: boolean;
|
|
81
|
+
};
|
|
82
|
+
type TextProps = Omit<NativeProps, "color"> & (TextBaseProps | TextPTagProps);
|
|
83
|
+
type NativeProps$0 = HTMLAttributes<HTMLHeadingElement>;
|
|
84
|
+
type TitleProps = Omit<NativeProps$0, "color"> & {
|
|
85
|
+
/**
|
|
86
|
+
* HTML тег
|
|
87
|
+
*/
|
|
88
|
+
tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
|
|
89
|
+
/**
|
|
90
|
+
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/guidelines-typography--page)
|
|
91
|
+
*/
|
|
92
|
+
view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
|
|
93
|
+
/**
|
|
94
|
+
* Цвет текста
|
|
95
|
+
*/
|
|
96
|
+
color?: Color;
|
|
97
|
+
/**
|
|
98
|
+
* Толщина шрифта
|
|
99
|
+
*/
|
|
100
|
+
weight?: "regular" | "medium" | "bold";
|
|
101
|
+
/**
|
|
102
|
+
* Шрифт текста
|
|
103
|
+
*/
|
|
104
|
+
font?: "styrene" | "system";
|
|
105
|
+
/**
|
|
106
|
+
* Добавляет отступы
|
|
107
|
+
*/
|
|
108
|
+
defaultMargins?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Css-класс для стилизации (native prop)
|
|
111
|
+
*/
|
|
112
|
+
className?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Id компонента для тестов
|
|
115
|
+
*/
|
|
116
|
+
dataTestId?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Контент (native prop)
|
|
119
|
+
*/
|
|
120
|
+
children?: React.ReactNode;
|
|
121
|
+
/**
|
|
122
|
+
* Количество строк (не поддерживает IE)
|
|
123
|
+
*/
|
|
124
|
+
rowLimit?: 1 | 2 | 3;
|
|
125
|
+
/**
|
|
126
|
+
* Показать скелетон
|
|
127
|
+
*/
|
|
128
|
+
showSkeleton?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Пропы для скелетона
|
|
131
|
+
*/
|
|
132
|
+
skeletonProps?: TextSkeletonProps;
|
|
133
|
+
};
|
|
134
|
+
type TitleMobileProps = Omit<TitleProps, "defaultMargins">;
|
|
135
|
+
declare const Typography: {
|
|
136
|
+
Title: FC<TitleProps>;
|
|
137
|
+
Text: ForwardRefExoticComponent<TextProps & RefAttributes<TextElementType>>;
|
|
138
|
+
TitleResponsive: FC<TitleProps>;
|
|
139
|
+
TitleMobile: FC<TitleMobileProps>;
|
|
140
|
+
};
|
|
141
|
+
declare const typographyPresets: {
|
|
142
|
+
mobile: {
|
|
143
|
+
list: {
|
|
144
|
+
text: {
|
|
145
|
+
primary: {
|
|
146
|
+
tag: string;
|
|
147
|
+
view: string;
|
|
148
|
+
};
|
|
149
|
+
secondary: {
|
|
150
|
+
tag: string;
|
|
151
|
+
color: string;
|
|
152
|
+
view: string;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
declare const TitleResponsive: FC<TitleProps>;
|
|
159
|
+
interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
160
|
+
/**
|
|
161
|
+
* Текст после иконки
|
|
162
|
+
*/
|
|
163
|
+
text?: string;
|
|
164
|
+
/**
|
|
165
|
+
* Дополнительный класс
|
|
166
|
+
*/
|
|
167
|
+
className?: string;
|
|
168
|
+
/**
|
|
169
|
+
* Вид компонента
|
|
170
|
+
*/
|
|
171
|
+
view: 'mobile' | 'desktop';
|
|
172
|
+
/**
|
|
173
|
+
* Прозрачность текста
|
|
174
|
+
*/
|
|
175
|
+
textOpacity?: number;
|
|
176
|
+
/**
|
|
177
|
+
* Обработчик клика
|
|
178
|
+
*/
|
|
179
|
+
onClick?: () => void;
|
|
180
|
+
}
|
|
181
|
+
declare const BackArrowAddon: React.FC<BackArrowAddonProps>;
|
|
182
|
+
export { Typography, typographyPresets, TitleResponsive, BackArrowAddonProps, BackArrowAddon };
|
|
183
|
+
export type { TitleProps, TextProps, Color };
|
|
184
|
+
export * from "./useSkeleton-ebda875c";
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { AnchorHTMLAttributes, ButtonHTMLAttributes, ElementType, ReactElement } from "react";
|
|
4
|
+
import { ButtonProps } from "./index-8b2c2707";
|
|
5
|
+
type IconButtonProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Компонент иконки
|
|
8
|
+
*/
|
|
9
|
+
icon: ElementType<{
|
|
10
|
+
className?: string;
|
|
11
|
+
}> | ReactElement;
|
|
12
|
+
/**
|
|
13
|
+
* Тип кнопки
|
|
14
|
+
*/
|
|
15
|
+
view?: 'primary' | 'secondary' | 'transparent' | 'tertiary' | 'negative';
|
|
16
|
+
/**
|
|
17
|
+
* Размер компонента
|
|
18
|
+
*/
|
|
19
|
+
size?: 'xxs' | 'xs' | 's';
|
|
20
|
+
/**
|
|
21
|
+
* Дополнительный класс
|
|
22
|
+
*/
|
|
23
|
+
className?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Выравнивание иконки
|
|
26
|
+
* @default 'center'
|
|
27
|
+
*/
|
|
28
|
+
alignIcon?: 'left' | 'center' | 'right';
|
|
29
|
+
/**
|
|
30
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
31
|
+
*/
|
|
32
|
+
dataTestId?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Набор цветов для компонента
|
|
35
|
+
*/
|
|
36
|
+
colors?: 'default' | 'inverted';
|
|
37
|
+
} & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'size'> & Pick<ButtonProps, 'href' | 'loading' | 'breakpoint'> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, 'target' | 'download'>;
|
|
38
|
+
declare const IconButton: React.ForwardRefExoticComponent<{
|
|
39
|
+
/**
|
|
40
|
+
* Компонент иконки
|
|
41
|
+
*/
|
|
42
|
+
icon: ElementType<{
|
|
43
|
+
className?: string;
|
|
44
|
+
}> | ReactElement;
|
|
45
|
+
/**
|
|
46
|
+
* Тип кнопки
|
|
47
|
+
*/
|
|
48
|
+
view?: "primary" | "secondary" | "tertiary" | "negative" | "transparent" | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Размер компонента
|
|
51
|
+
*/
|
|
52
|
+
size?: "s" | "xs" | "xxs" | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Дополнительный класс
|
|
55
|
+
*/
|
|
56
|
+
className?: string | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Выравнивание иконки
|
|
59
|
+
* @default 'center'
|
|
60
|
+
*/
|
|
61
|
+
alignIcon?: "center" | "right" | "left" | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
64
|
+
*/
|
|
65
|
+
dataTestId?: string | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Набор цветов для компонента
|
|
68
|
+
*/
|
|
69
|
+
colors?: "default" | "inverted" | undefined;
|
|
70
|
+
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "loading" | "breakpoint"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
|
|
71
|
+
export { IconButtonProps, IconButton };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FC } from "react";
|
|
4
|
+
import { BaseButtonProps } from "./typings-9211a437";
|
|
5
|
+
type SpinnerProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Управление видимостью компонента
|
|
8
|
+
*/
|
|
9
|
+
visible?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Размер компонента
|
|
12
|
+
*/
|
|
13
|
+
size?: "xs" | "s" | "m";
|
|
14
|
+
/**
|
|
15
|
+
* Дополнительный класс
|
|
16
|
+
*/
|
|
17
|
+
className?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Идентификатор компонента в DOM
|
|
20
|
+
*/
|
|
21
|
+
id?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
24
|
+
*/
|
|
25
|
+
dataTestId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Палитра, в контексте которой используется спиннер
|
|
28
|
+
*/
|
|
29
|
+
colors?: "default" | "inverted";
|
|
30
|
+
};
|
|
31
|
+
declare const Spinner: FC<SpinnerProps>;
|
|
32
|
+
/**
|
|
33
|
+
* Минимальное время отображения лоадера - 500мс,
|
|
34
|
+
* чтобы при быстрых ответах от сервера кнопка не «моргала».
|
|
35
|
+
*/
|
|
36
|
+
declare const LOADER_MIN_DISPLAY_INTERVAL = 500;
|
|
37
|
+
declare const BaseButton: React.ForwardRefExoticComponent<BaseButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
38
|
+
export { SpinnerProps, Spinner, LOADER_MIN_DISPLAY_INTERVAL, BaseButton };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { View } from "./typings-bdb4c6b9";
|
|
4
|
+
declare const Modal: React.ForwardRefExoticComponent<import("./index-bdb4c6b9").BaseModalProps & {
|
|
5
|
+
size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
|
|
6
|
+
fullscreen?: boolean | undefined;
|
|
7
|
+
fixedPosition?: boolean | undefined;
|
|
8
|
+
hasCloser?: boolean | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
view: View;
|
|
11
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export { Modal };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { FieldProps } from "./shared-4cd3936b";
|
|
4
|
+
import { InputAutocompleteDesktopProps } from "./Component.desktop-d078a845";
|
|
5
|
+
type AutocompleteFieldProps = FieldProps & Pick<InputAutocompleteDesktopProps, 'Input' | 'inputProps' | 'value' | 'onInput' | 'readOnly'>;
|
|
6
|
+
declare const AutocompleteField: ({ label, labelView, placeholder, size, Arrow, Input, value, error, success, hint, disabled, readOnly, onInput, inputProps, innerProps, }: AutocompleteFieldProps) => React.JSX.Element;
|
|
7
|
+
export { AutocompleteFieldProps, AutocompleteField };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
import { BottomSheetProps } from "./index-f12ee135";
|
|
5
|
+
import { BaseSelectProps } from "./typings-dd8ca091";
|
|
6
|
+
type SelectMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & {
|
|
7
|
+
/**
|
|
8
|
+
* Футер
|
|
9
|
+
* @deprecated Используйте bottomSheetProps.actionButton
|
|
10
|
+
*/
|
|
11
|
+
footer?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Будет ли свайпаться шторка
|
|
14
|
+
* @deprecated Используйте bottomSheetProps.swipeable
|
|
15
|
+
*/
|
|
16
|
+
swipeable?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Отображать в BottomSheet
|
|
19
|
+
*/
|
|
20
|
+
isBottomSheet?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Дополнительные пропсы шторки
|
|
23
|
+
*/
|
|
24
|
+
bottomSheetProps?: Partial<BottomSheetProps>;
|
|
25
|
+
/**
|
|
26
|
+
* Дополнительные пропсы модалки
|
|
27
|
+
*/
|
|
28
|
+
modalProps?: Partial<React.ComponentProps<typeof ModalMobile>>;
|
|
29
|
+
/**
|
|
30
|
+
* Дополнительные пропсы шапки модалки
|
|
31
|
+
*/
|
|
32
|
+
modalHeaderProps?: Partial<React.ComponentProps<typeof ModalMobile.Header>>;
|
|
33
|
+
/**
|
|
34
|
+
* Дополнительные пропсы футера модалки
|
|
35
|
+
*/
|
|
36
|
+
modalFooterProps?: Partial<React.ComponentProps<typeof ModalMobile.Footer>>;
|
|
37
|
+
};
|
|
38
|
+
declare const BaseSelectMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "Checkmark"> & {
|
|
39
|
+
/**
|
|
40
|
+
* Футер
|
|
41
|
+
* @deprecated Используйте bottomSheetProps.actionButton
|
|
42
|
+
*/
|
|
43
|
+
footer?: ReactNode;
|
|
44
|
+
/**
|
|
45
|
+
* Будет ли свайпаться шторка
|
|
46
|
+
* @deprecated Используйте bottomSheetProps.swipeable
|
|
47
|
+
*/
|
|
48
|
+
swipeable?: boolean | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Отображать в BottomSheet
|
|
51
|
+
*/
|
|
52
|
+
isBottomSheet?: boolean | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Дополнительные пропсы шторки
|
|
55
|
+
*/
|
|
56
|
+
bottomSheetProps?: Partial<BottomSheetProps> | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Дополнительные пропсы модалки
|
|
59
|
+
*/
|
|
60
|
+
modalProps?: Partial<ModalMobileProps & React.RefAttributes<HTMLDivElement>> | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Дополнительные пропсы шапки модалки
|
|
63
|
+
*/
|
|
64
|
+
modalHeaderProps?: Partial<import("./Component-c76d6398").HeaderProps> | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Дополнительные пропсы футера модалки
|
|
67
|
+
*/
|
|
68
|
+
modalFooterProps?: Partial<import("./Component.mobile-f1f15074").FooterProps> | undefined;
|
|
69
|
+
} & React.RefAttributes<unknown>>;
|
|
70
|
+
export * from "./Component.mobile-f1f15074";
|
|
71
|
+
export { ModalMobileProps } from "./typings-bdb4c6b9";
|
|
72
|
+
export { SelectMobileProps, BaseSelectMobile };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react-transition-group" />
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { CheckboxProps } from "./index-ebda875c";
|
|
5
|
+
type HeaderProps = {
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
indeterminate?: boolean;
|
|
8
|
+
onChange?: CheckboxProps['onChange'];
|
|
9
|
+
mobile?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const Header: React.FC<HeaderProps>;
|
|
12
|
+
export { HeaderProps, Header };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
|
|
4
|
+
type ButtonDesktopProps = Partial<AnchorButtonProps | NativeButtonProps>;
|
|
5
|
+
declare const ButtonDesktop: React.ForwardRefExoticComponent<ButtonDesktopProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
6
|
+
export { ButtonDesktopProps, ButtonDesktop };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BaseFormControlProps } from "./index-ebda875c";
|
|
4
|
+
type FormControlDesktopProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
|
|
5
|
+
declare const FormControlDesktop: React.ForwardRefExoticComponent<FormControlDesktopProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { FormControlDesktopProps, FormControlDesktop };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ChangeEvent, FC, RefAttributes } from "react";
|
|
4
|
+
import { InputProps } from "@alfalab/core-components-input";
|
|
5
|
+
import { BaseSelectProps } from "./shared-4cd3936b";
|
|
6
|
+
type InputAutocompleteDesktopProps = Omit<BaseSelectProps, 'Field' | 'nativeSelect'> & {
|
|
7
|
+
/**
|
|
8
|
+
* Компонент ввода значения
|
|
9
|
+
*/
|
|
10
|
+
Input?: FC<InputProps & RefAttributes<HTMLInputElement>>;
|
|
11
|
+
/**
|
|
12
|
+
* Пропсы, которые будут прокинуты в инпут
|
|
13
|
+
*/
|
|
14
|
+
inputProps?: InputProps & Record<string, unknown>;
|
|
15
|
+
/**
|
|
16
|
+
* Значение поля ввода
|
|
17
|
+
*/
|
|
18
|
+
value?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Поле доступно только для чтения
|
|
21
|
+
*/
|
|
22
|
+
readOnly?: InputProps['readOnly'];
|
|
23
|
+
/**
|
|
24
|
+
* Отображение иконки успеха
|
|
25
|
+
*/
|
|
26
|
+
success?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Обработчик ввода
|
|
29
|
+
*/
|
|
30
|
+
onInput?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
31
|
+
/**
|
|
32
|
+
* Хранит функцию, с помощью которой можно обновить положение поповера
|
|
33
|
+
*/
|
|
34
|
+
updatePopover?: BaseSelectProps['updatePopover'];
|
|
35
|
+
};
|
|
36
|
+
declare const InputAutocompleteDesktop: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "nativeSelect" | "Field"> & {
|
|
37
|
+
/**
|
|
38
|
+
* Компонент ввода значения
|
|
39
|
+
*/
|
|
40
|
+
Input?: React.FC<Omit<import("./index-ebda875c").BaseInputProps, "colorStyles" | "FormControlComponent"> & {
|
|
41
|
+
breakpoint?: number | undefined;
|
|
42
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
43
|
+
} & React.RefAttributes<HTMLInputElement>> | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Пропсы, которые будут прокинуты в инпут
|
|
46
|
+
*/
|
|
47
|
+
inputProps?: (Omit<import("./index-ebda875c").BaseInputProps, "colorStyles" | "FormControlComponent"> & {
|
|
48
|
+
breakpoint?: number | undefined;
|
|
49
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
50
|
+
} & Record<string, unknown>) | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Значение поля ввода
|
|
53
|
+
*/
|
|
54
|
+
value?: string | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Поле доступно только для чтения
|
|
57
|
+
*/
|
|
58
|
+
readOnly?: InputProps['readOnly'];
|
|
59
|
+
/**
|
|
60
|
+
* Отображение иконки успеха
|
|
61
|
+
*/
|
|
62
|
+
success?: boolean | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Обработчик ввода
|
|
65
|
+
*/
|
|
66
|
+
onInput?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Хранит функцию, с помощью которой можно обновить положение поповера
|
|
69
|
+
*/
|
|
70
|
+
updatePopover?: BaseSelectProps['updatePopover'];
|
|
71
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
72
|
+
export * from "./Component-d078a845";
|
|
73
|
+
export { InputAutocompleteDesktopProps, InputAutocompleteDesktop };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BaseInputProps } from "./index-ebda875c";
|
|
4
|
+
type InputDesktopProps = Omit<BaseInputProps, 'FormControlComponent' | 'colorStyles'>;
|
|
5
|
+
declare const InputDesktop: React.ForwardRefExoticComponent<InputDesktopProps & React.RefAttributes<HTMLInputElement>>;
|
|
6
|
+
export { InputDesktopProps, InputDesktop };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { InternationalPhoneInputDesktopProps } from "./types";
|
|
4
|
+
declare const InternationalPhoneInputDesktop: React.ForwardRefExoticComponent<InternationalPhoneInputDesktopProps & React.RefAttributes<HTMLInputElement>>;
|
|
5
|
+
export { InternationalPhoneInputDesktop };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React, { forwardRef, useMemo, useState } from 'react';
|
|
2
|
+
import { InputDesktop } from '@alfalab/core-components-input/modern/Component.desktop';
|
|
3
|
+
import { InputAutocompleteDesktop } from '@alfalab/core-components-input-autocomplete/modern/desktop';
|
|
4
|
+
import { SelectDesktop } from '@alfalab/core-components-select/modern/desktop';
|
|
5
|
+
import { BaseInternationalPhoneInput } from './components/base-international-phone-input/Component.js';
|
|
6
|
+
import { initCountries, findCountry, filterPhones, getClear } from './utils/index.js';
|
|
7
|
+
import 'react-merge-refs';
|
|
8
|
+
import '@maskito/core';
|
|
9
|
+
import '@maskito/react';
|
|
10
|
+
import '@alfalab/core-components-select/modern/shared';
|
|
11
|
+
import './components/country-select/Component.js';
|
|
12
|
+
import '@alfalab/core-components-shared/modern';
|
|
13
|
+
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
14
|
+
import './components/flag-icon/component.js';
|
|
15
|
+
import 'classnames';
|
|
16
|
+
import './components/flag-icon/flagSprite.js';
|
|
17
|
+
import './components/select-field/component.js';
|
|
18
|
+
import '@alfalab/hooks';
|
|
19
|
+
import './consts.js';
|
|
20
|
+
import './data/country-data.js';
|
|
21
|
+
|
|
22
|
+
const InternationalPhoneInputDesktop = forwardRef(({ options, country: countryProp, countries, onCountryChange, value, filterFn, defaultIso2, clear, clearableCountryCode = true, ...restProps }, ref) => {
|
|
23
|
+
const countriesData = useMemo(() => initCountries(countries), [countries]);
|
|
24
|
+
const [selectedCountry, setSelectedCountry] = useState(() => findCountry(countriesData, value, defaultIso2, countryProp));
|
|
25
|
+
const filteredOptions = filterPhones(value, options, filterFn);
|
|
26
|
+
const country = countryProp ?? selectedCountry;
|
|
27
|
+
const handleCountryChange = (nextCountry) => {
|
|
28
|
+
if (countryProp === undefined)
|
|
29
|
+
setSelectedCountry(nextCountry);
|
|
30
|
+
onCountryChange?.(nextCountry);
|
|
31
|
+
};
|
|
32
|
+
return (React.createElement(BaseInternationalPhoneInput, { countriesData: countriesData, selected: value, ...restProps, clear: getClear(clear, clearableCountryCode, value, country?.countryCode), clearableCountryCode: clearableCountryCode, country: country, onCountryChange: handleCountryChange, defaultIso2: defaultIso2, value: value, view: 'desktop', options: filteredOptions, ref: ref, SelectComponent: SelectDesktop, Input: InputDesktop, InputAutocomplete: InputAutocompleteDesktop }));
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export { InternationalPhoneInputDesktop };
|