@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
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseSelectProps, OptionShape } from "./typings-dd8ca091";
|
|
3
|
+
type UseSelectWithApplyProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Список выбранных пунктов
|
|
6
|
+
*/
|
|
7
|
+
selected: BaseSelectProps['selected'];
|
|
8
|
+
/**
|
|
9
|
+
* Список вариантов выбора
|
|
10
|
+
*/
|
|
11
|
+
options: BaseSelectProps['options'];
|
|
12
|
+
/**
|
|
13
|
+
* Обработчик выбора
|
|
14
|
+
*/
|
|
15
|
+
onChange: BaseSelectProps['onChange'];
|
|
16
|
+
/**
|
|
17
|
+
* Компонент выпадающего меню
|
|
18
|
+
*/
|
|
19
|
+
OptionsList?: BaseSelectProps['OptionsList'];
|
|
20
|
+
/**
|
|
21
|
+
* Пропсы, которые будут прокинуты в компонент списка
|
|
22
|
+
*/
|
|
23
|
+
optionsListProps?: BaseSelectProps['optionsListProps'];
|
|
24
|
+
/**
|
|
25
|
+
* Включает отображение поиска
|
|
26
|
+
*/
|
|
27
|
+
showSearch?: BaseSelectProps['showSearch'];
|
|
28
|
+
/**
|
|
29
|
+
* Настройки поиска
|
|
30
|
+
*/
|
|
31
|
+
searchProps?: BaseSelectProps['searchProps'];
|
|
32
|
+
/**
|
|
33
|
+
* Показывать кнопку очистки
|
|
34
|
+
*/
|
|
35
|
+
showClear?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Показывать пункт "Выбрать все"
|
|
38
|
+
*/
|
|
39
|
+
showSelectAll?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Показывать пункт "Выбрать все" в заголовке списка
|
|
42
|
+
*/
|
|
43
|
+
showHeaderWithSelectAll?: boolean;
|
|
44
|
+
};
|
|
45
|
+
declare const SELECT_ALL_KEY = "select_all";
|
|
46
|
+
declare function useSelectWithApply({ options, selected, onChange, OptionsList, optionsListProps, showClear, showSelectAll, showHeaderWithSelectAll, showSearch, searchProps, }: UseSelectWithApplyProps): {
|
|
47
|
+
OptionsList: import("react").ForwardRefExoticComponent<import("./typings-dd8ca091").OptionsListProps & {
|
|
48
|
+
showClear?: boolean | undefined;
|
|
49
|
+
onClose?: (() => void) | undefined; /**
|
|
50
|
+
* Компонент выпадающего меню
|
|
51
|
+
*/
|
|
52
|
+
selectedDraft?: OptionShape[] | undefined;
|
|
53
|
+
OptionsList?: import("react").FC<import("./typings-dd8ca091").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
54
|
+
Footer?: import("react").FC<import("./Component-dd8ca091").FooterProps> | undefined;
|
|
55
|
+
Header?: import("react").FC<import("./Component-ebda875c").HeaderProps> | undefined;
|
|
56
|
+
headerProps?: import("./Component-ebda875c").HeaderProps | undefined;
|
|
57
|
+
showHeaderWithSelectAll?: boolean | undefined;
|
|
58
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
59
|
+
optionsListProps: {
|
|
60
|
+
OptionsList: import("react").FC<import("./typings-dd8ca091").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
61
|
+
showClear: boolean;
|
|
62
|
+
onClear: () => void;
|
|
63
|
+
onApply: () => void;
|
|
64
|
+
onClose: () => void;
|
|
65
|
+
selectedDraft: OptionShape[];
|
|
66
|
+
showHeaderWithSelectAll: boolean;
|
|
67
|
+
headerProps: {
|
|
68
|
+
indeterminate: boolean;
|
|
69
|
+
checked: boolean;
|
|
70
|
+
onChange: () => void;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
allowUnselect: boolean;
|
|
74
|
+
multiple: boolean;
|
|
75
|
+
options: (OptionShape | import("./typings-dd8ca091").GroupShape | {
|
|
76
|
+
key: string;
|
|
77
|
+
content: string;
|
|
78
|
+
})[];
|
|
79
|
+
onChange: (payload: import("./typings-dd8ca091").BaseSelectChangePayload) => void;
|
|
80
|
+
selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
|
|
81
|
+
showSearch: boolean | undefined;
|
|
82
|
+
searchProps: {
|
|
83
|
+
value: string;
|
|
84
|
+
onChange: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
85
|
+
componentProps?: import("packages/input/src").InputProps | undefined;
|
|
86
|
+
accessor?: ((option: OptionShape) => string) | undefined;
|
|
87
|
+
} | undefined;
|
|
88
|
+
};
|
|
89
|
+
export * from "./Component-dd8ca091";
|
|
90
|
+
export { UseSelectWithApplyProps, SELECT_ALL_KEY, useSelectWithApply };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FC, ReactNode } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* Набор констант для z-index соответствующих классов компонентов.
|
|
5
|
+
* Значения выбраны по приоритету.
|
|
6
|
+
*/
|
|
7
|
+
declare const stackingOrder: {
|
|
8
|
+
FOCUSED: number;
|
|
9
|
+
DEFAULT: number;
|
|
10
|
+
POPOVER: number;
|
|
11
|
+
MODAL: number;
|
|
12
|
+
TOAST: number;
|
|
13
|
+
};
|
|
14
|
+
declare const StackingContext: import("react").Context<number>;
|
|
15
|
+
type StackProps = {
|
|
16
|
+
/**
|
|
17
|
+
* Render prop, в который передается функция.
|
|
18
|
+
* Функция принимает аргумент со значением z-index из текущего контекста.
|
|
19
|
+
*/
|
|
20
|
+
children: (value: number) => ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Исходное значение для z-index.
|
|
23
|
+
* @default 5
|
|
24
|
+
*/
|
|
25
|
+
value?: number;
|
|
26
|
+
};
|
|
27
|
+
declare const Stack: FC<StackProps>;
|
|
28
|
+
export { stackingOrder, StackingContext, StackProps, Stack };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type BackgroundColorType = 'accent' | 'info' | 'attention-muted' | 'positive-muted' | 'negative-muted' | 'primary' | 'primary-inverted' | 'secondary' | 'secondary-inverted' | 'tertiary' | 'tertiary-inverted' | 'quaternary' | 'quaternary-inverted' | 'specialbg-component' | 'specialbg-component-inverted' | 'specialbg-primary-grouped' | 'specialbg-secondary-grouped' | 'specialbg-tertiary-grouped' | 'specialbg-secondary-transparent' | 'specialbg-secondary-transparent-inverted' | 'specialbg-tertiary-transparent' | 'specialbg-tertiary-transparent-inverted';
|
|
2
|
+
type BorderColorType = 'accent' | 'key' | 'key-inverted' | 'link' | 'primary' | 'primary-inverted' | 'secondary' | 'secondary-inverted' | 'tertiary' | 'tertiary-inverted' | 'underline' | 'underline-inverted' | 'graphic-attention' | 'graphic-link' | 'graphic-negative' | 'graphic-positive' | 'specialbg-secondary-transparent' | 'specialbg-secondary-transparent-inverted' | 'specialbg-tertiary-transparent' | 'specialbg-tertiary-transparent-inverted';
|
|
3
|
+
type GraphicColorType = 'accent' | 'link' | 'attention' | 'positive' | 'negative' | 'primary' | 'primary-inverted' | 'secondary' | 'secondary-inverted' | 'tertiary' | 'tertiary-inverted' | 'quaternary' | 'quaternary-inverted' | 'static-light' | 'static-accent' | 'static-dark';
|
|
4
|
+
type ShadowType = 'shadow-xs' | 'shadow-s' | 'shadow-m' | 'shadow-l' | 'shadow-xl' | 'shadow-xs-hard' | 'shadow-s-hard' | 'shadow-m-hard' | 'shadow-l-hard' | 'shadow-xl-hard' | 'shadow-xs-up' | 'shadow-s-up' | 'shadow-m-up' | 'shadow-l-up' | 'shadow-xl-up' | 'shadow-xs-hard-up' | 'shadow-s-hard-up' | 'shadow-m-hard-up' | 'shadow-l-hard-up' | 'shadow-xl-hard-up';
|
|
5
|
+
type GapType = '3xs' | '2xs' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl';
|
|
6
|
+
type PaddingType = number | string | {
|
|
7
|
+
top?: number;
|
|
8
|
+
right?: number;
|
|
9
|
+
bottom?: number;
|
|
10
|
+
left?: number;
|
|
11
|
+
};
|
|
12
|
+
export { BackgroundColorType, BorderColorType, GraphicColorType, ShadowType, GapType, PaddingType };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ButtonProps } from "./typings-9211a437";
|
|
4
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
5
|
+
export { Button };
|
|
6
|
+
export type { ButtonProps } from "./typings-9211a437";
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/* eslint-disable complexity */
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { ReactNode, ButtonHTMLAttributes, ElementType } from "react";
|
|
5
|
+
interface CloserProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
6
|
+
/**
|
|
7
|
+
* Вид компонента
|
|
8
|
+
*/
|
|
9
|
+
view: "desktop" | "mobile";
|
|
10
|
+
/**
|
|
11
|
+
* Дополнительный класс
|
|
12
|
+
*/
|
|
13
|
+
className?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Позиция крестика
|
|
16
|
+
*/
|
|
17
|
+
align?: "left" | "right";
|
|
18
|
+
/**
|
|
19
|
+
* Фиксирует крестик
|
|
20
|
+
*/
|
|
21
|
+
sticky?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Иконка
|
|
24
|
+
*/
|
|
25
|
+
icon?: ElementType;
|
|
26
|
+
/**
|
|
27
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
28
|
+
*/
|
|
29
|
+
dataTestId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Коллбэк закрытия.
|
|
32
|
+
*/
|
|
33
|
+
onClose?: (event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>, reason?: "backdropClick" | "escapeKeyDown" | "closerClick") => void;
|
|
34
|
+
}
|
|
35
|
+
type NavigationBarProps = {
|
|
36
|
+
/**
|
|
37
|
+
* Контент шапки
|
|
38
|
+
*/
|
|
39
|
+
children?: ReactNode;
|
|
40
|
+
/**
|
|
41
|
+
* Заголовок шапки
|
|
42
|
+
*/
|
|
43
|
+
title?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Подзаголовок (доступен только в мобильной версии)
|
|
46
|
+
*/
|
|
47
|
+
subtitle?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Размер заголовка (compact доступен только в мобильной версии)
|
|
50
|
+
*/
|
|
51
|
+
titleSize?: "default" | "compact";
|
|
52
|
+
/**
|
|
53
|
+
* Доп. класс для аддонов
|
|
54
|
+
*/
|
|
55
|
+
addonClassName?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Слот слева
|
|
58
|
+
*/
|
|
59
|
+
leftAddons?: ReactNode;
|
|
60
|
+
/**
|
|
61
|
+
* Слот справа
|
|
62
|
+
*/
|
|
63
|
+
rightAddons?: ReactNode;
|
|
64
|
+
/**
|
|
65
|
+
* Дополнительный класс для closer
|
|
66
|
+
*/
|
|
67
|
+
closerClassName?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Слот снизу
|
|
70
|
+
*/
|
|
71
|
+
bottomAddons?: ReactNode;
|
|
72
|
+
/**
|
|
73
|
+
* Наличие компонента крестика
|
|
74
|
+
*/
|
|
75
|
+
hasCloser?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Наличие кнопки "Назад"
|
|
78
|
+
*/
|
|
79
|
+
hasBackButton?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Дополнительный класс для правого аддона
|
|
82
|
+
*/
|
|
83
|
+
backButtonClassName?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Дополнительный класс
|
|
86
|
+
*/
|
|
87
|
+
className?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Дополнительный класс для контента
|
|
90
|
+
*/
|
|
91
|
+
contentClassName?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Дополнительный класс для нижнего аддона
|
|
94
|
+
*/
|
|
95
|
+
bottomAddonsClassName?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Выравнивание заголовка
|
|
98
|
+
*/
|
|
99
|
+
align?: "left" | "center";
|
|
100
|
+
/**
|
|
101
|
+
* Обрезать ли заголовок
|
|
102
|
+
*/
|
|
103
|
+
trim?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Фиксирует шапку
|
|
106
|
+
*/
|
|
107
|
+
sticky?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
110
|
+
*/
|
|
111
|
+
dataTestId?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Фоновое изображение
|
|
114
|
+
*/
|
|
115
|
+
imageUrl?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Иконка closer.
|
|
118
|
+
*/
|
|
119
|
+
closerIcon?: React.ElementType;
|
|
120
|
+
/**
|
|
121
|
+
* Обработчик закрытия
|
|
122
|
+
*/
|
|
123
|
+
onClose?: CloserProps["onClose"];
|
|
124
|
+
/**
|
|
125
|
+
* обработчик клика по кнопке "назад"
|
|
126
|
+
*/
|
|
127
|
+
onBack?: () => void;
|
|
128
|
+
/**
|
|
129
|
+
* Вид шапки - мобильный или десктоп
|
|
130
|
+
*/
|
|
131
|
+
view: "desktop" | "mobile";
|
|
132
|
+
/**
|
|
133
|
+
* Ссылка на родительскую ноду overflow: auto
|
|
134
|
+
*/
|
|
135
|
+
scrollableParentRef?: React.RefObject<HTMLDivElement>;
|
|
136
|
+
};
|
|
137
|
+
declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
138
|
+
export { NavigationBar };
|
|
139
|
+
export * from "./Component-63dec22f";
|
|
140
|
+
export * from "./Component-8b2c2707";
|
|
141
|
+
export type { NavigationBarProps };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FC, ReactNode, RefObject } from "react";
|
|
4
|
+
import { BottomSheetProps } from "./types-72dda473";
|
|
5
|
+
import { NavigationBarProps } from "./index-c76d6398";
|
|
6
|
+
import { SwipeableHandlers } from "react-swipeable";
|
|
7
|
+
import { BackdropProps } from "./index-ebda875c";
|
|
8
|
+
declare const BottomSheet: React.ForwardRefExoticComponent<BottomSheetProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const TIMEOUT = 500;
|
|
10
|
+
declare const SWIPE_VELOCITY = 0.4;
|
|
11
|
+
declare const MARKER_HEIGHT = 24;
|
|
12
|
+
declare const CLOSE_OFFSET = 0.2;
|
|
13
|
+
declare const SCROLL_OFFSET = 1;
|
|
14
|
+
declare const HEADER_OFFSET = 24;
|
|
15
|
+
declare const convertPercentToNumber: (value: string | number, fullHeight: number, headerOffset?: number) => number;
|
|
16
|
+
type FooterProps = {
|
|
17
|
+
/**
|
|
18
|
+
* Контент футера
|
|
19
|
+
*/
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Фиксирует футер
|
|
23
|
+
*/
|
|
24
|
+
sticky?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Дополнительный класс
|
|
27
|
+
*/
|
|
28
|
+
className?: string;
|
|
29
|
+
};
|
|
30
|
+
declare const Footer: FC<FooterProps>;
|
|
31
|
+
type HeaderProps = Omit<NavigationBarProps, "view" | "size"> & {
|
|
32
|
+
headerRef: RefObject<HTMLDivElement>;
|
|
33
|
+
headerOffset: number;
|
|
34
|
+
};
|
|
35
|
+
declare const Header: FC<HeaderProps>;
|
|
36
|
+
type SwipeableBackdropProps = BackdropProps & {
|
|
37
|
+
/**
|
|
38
|
+
* Прозрачность бэкдропа
|
|
39
|
+
*/
|
|
40
|
+
opacity?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Обработчики свайпа
|
|
43
|
+
*/
|
|
44
|
+
handlers?: SwipeableHandlers;
|
|
45
|
+
/**
|
|
46
|
+
* Время анимации opacity
|
|
47
|
+
*/
|
|
48
|
+
opacityTimeout?: number;
|
|
49
|
+
};
|
|
50
|
+
declare const SwipeableBackdrop: FC<SwipeableBackdropProps>;
|
|
51
|
+
export { BottomSheet, TIMEOUT, SWIPE_VELOCITY, MARKER_HEIGHT, CLOSE_OFFSET, SCROLL_OFFSET, HEADER_OFFSET, convertPercentToNumber, FooterProps, Footer, HeaderProps, Header, SwipeableBackdropProps, SwipeableBackdrop };
|
|
52
|
+
export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-72dda473";
|
package/esm/index.d.ts
ADDED
package/esm/index.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export { InternationalPhoneInput } from './Component.responsive.js';
|
|
2
|
+
import 'tslib';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '@alfalab/core-components-mq/esm';
|
|
5
|
+
import './Component.desktop.js';
|
|
6
|
+
import '@alfalab/core-components-input/esm/Component.desktop';
|
|
7
|
+
import '@alfalab/core-components-input-autocomplete/esm/desktop';
|
|
8
|
+
import '@alfalab/core-components-select/esm/desktop';
|
|
9
|
+
import './components/base-international-phone-input/Component.js';
|
|
10
|
+
import 'react-merge-refs';
|
|
11
|
+
import '@maskito/core';
|
|
12
|
+
import '@maskito/react';
|
|
13
|
+
import '@alfalab/core-components-select/esm/shared';
|
|
14
|
+
import './utils/index.js';
|
|
15
|
+
import '@alfalab/core-components-shared/esm';
|
|
16
|
+
import './consts.js';
|
|
17
|
+
import './data/country-data.js';
|
|
18
|
+
import './components/country-select/Component.js';
|
|
19
|
+
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
20
|
+
import './components/flag-icon/component.js';
|
|
21
|
+
import 'classnames';
|
|
22
|
+
import './components/flag-icon/flagSprite.js';
|
|
23
|
+
import './components/select-field/component.js';
|
|
24
|
+
import '@alfalab/hooks';
|
|
25
|
+
import './Component.mobile.js';
|
|
26
|
+
import '@alfalab/core-components-input/esm/mobile';
|
|
27
|
+
import '@alfalab/core-components-input-autocomplete/esm/mobile';
|
|
28
|
+
import '@alfalab/core-components-select/esm/mobile';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { SelectMobile } from "./Component.mobile-ade26e99";
|
|
2
|
+
export { SelectModalMobile } from "./Component.modal.mobile-dd8ca091";
|
|
3
|
+
export type { SelectMobileProps } from "./Component.mobile-ade26e99";
|
|
4
|
+
export type { SelectModalMobileProps } from "./Component.modal.mobile-dd8ca091";
|
|
5
|
+
export {};
|
package/esm/mobile.d.ts
ADDED
package/esm/mobile.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { InternationalPhoneInputMobile } from './Component.mobile.js';
|
|
2
|
+
import 'tslib';
|
|
3
|
+
import 'react';
|
|
4
|
+
import '@alfalab/core-components-input/esm/mobile';
|
|
5
|
+
import '@alfalab/core-components-input-autocomplete/esm/mobile';
|
|
6
|
+
import '@alfalab/core-components-select/esm/mobile';
|
|
7
|
+
import './components/base-international-phone-input/Component.js';
|
|
8
|
+
import 'react-merge-refs';
|
|
9
|
+
import '@maskito/core';
|
|
10
|
+
import '@maskito/react';
|
|
11
|
+
import '@alfalab/core-components-select/esm/shared';
|
|
12
|
+
import './utils/index.js';
|
|
13
|
+
import '@alfalab/core-components-shared/esm';
|
|
14
|
+
import './consts.js';
|
|
15
|
+
import './data/country-data.js';
|
|
16
|
+
import './components/country-select/Component.js';
|
|
17
|
+
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
18
|
+
import './components/flag-icon/component.js';
|
|
19
|
+
import 'classnames';
|
|
20
|
+
import './components/flag-icon/flagSprite.js';
|
|
21
|
+
import './components/select-field/component.js';
|
|
22
|
+
import '@alfalab/hooks';
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { BaseSelectProps, OptionProps, OptionShape } from "./typings-dd8ca091";
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
5
|
+
type useSelectWithLoadingProps = {
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
visibleOptions?: BaseSelectProps["visibleOptions"];
|
|
8
|
+
Option?: React.FC<OptionProps>;
|
|
9
|
+
};
|
|
10
|
+
declare function useSelectWithLoading({ loading, visibleOptions, Option }: useSelectWithLoadingProps): {
|
|
11
|
+
Option: (props: OptionProps) => React.JSX.Element;
|
|
12
|
+
options: OptionShape[];
|
|
13
|
+
} | null;
|
|
14
|
+
type OptionsFetcherResponse = {
|
|
15
|
+
options: OptionShape[];
|
|
16
|
+
hasMore: boolean;
|
|
17
|
+
};
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
19
|
+
type useLazyLoadingProps = {
|
|
20
|
+
/** Количество элементов на "странице" */
|
|
21
|
+
limit?: number;
|
|
22
|
+
/** Начальный номер "страницы" */
|
|
23
|
+
initialOffset?: number;
|
|
24
|
+
/** Скелетон загружаемых элементов */
|
|
25
|
+
skeleton?: React.ReactNode;
|
|
26
|
+
/** Компонент пункта меню */
|
|
27
|
+
Option?: React.FC<OptionProps>;
|
|
28
|
+
/**
|
|
29
|
+
* Функция-загрузчик опций.
|
|
30
|
+
* @param offset - текущая страница
|
|
31
|
+
* @param limit - количество элементов на странице
|
|
32
|
+
* @param queryString - строчные данные, пробрасываемые для поиска из кастомного инпута, расположенного в заголовке OptionsList
|
|
33
|
+
* @returns Promise<{
|
|
34
|
+
* options - список опций следующей "страницы". Они аппендятся к предыдущим
|
|
35
|
+
* hasMore - указывает, есть ли еще незагруженные элементы (в случае false перестает загружать "следующую страницу")
|
|
36
|
+
* }>
|
|
37
|
+
*/
|
|
38
|
+
optionsFetcher(offset: number, limit: number, queryString?: string): Promise<OptionsFetcherResponse>;
|
|
39
|
+
};
|
|
40
|
+
declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton, Option }: useLazyLoadingProps): {
|
|
41
|
+
optionsProps: {
|
|
42
|
+
Option: (props: OptionProps) => React.JSX.Element;
|
|
43
|
+
options: OptionShape[];
|
|
44
|
+
optionsListProps: {
|
|
45
|
+
ref: React.RefObject<HTMLDivElement>;
|
|
46
|
+
inputProps: {
|
|
47
|
+
onChange: (event: React.ChangeEvent<HTMLInputElement>, payload: {
|
|
48
|
+
value: string;
|
|
49
|
+
}) => void;
|
|
50
|
+
value: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
onOpen: (payload: {
|
|
54
|
+
open?: boolean;
|
|
55
|
+
}) => void;
|
|
56
|
+
};
|
|
57
|
+
reset: () => void;
|
|
58
|
+
};
|
|
59
|
+
export * from "./index-ebda875c";
|
|
60
|
+
export * from "./Component-dd8ca091";
|
|
61
|
+
export { useSelectWithLoading, useLazyLoading };
|
|
62
|
+
export * from "./hook-8abfea97";
|
|
63
|
+
export * from "./typings-dd8ca091";
|
|
64
|
+
export * from "./utils-dd8ca091";
|
|
65
|
+
export type { AdditionalMobileProps } from "./Component.mobile-ade26e99";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
2
|
+
type WidthUnit = number | string;
|
|
3
|
+
type TextSkeletonProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Кол-во строк текста
|
|
6
|
+
*/
|
|
7
|
+
rows?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Ширина строки
|
|
10
|
+
*/
|
|
11
|
+
width?: WidthUnit | WidthUnit[];
|
|
12
|
+
};
|
|
13
|
+
export { TextElementType, TextSkeletonProps };
|