@alfalab/core-components 48.21.0-beta.6 → 48.21.0-beta.7
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/calendar/Component.responsive.js +1 -1
- package/calendar/{calendarMonthOnlyView-76b66eef.js → calendarMonthOnlyView-a5bcfc2c.js} +9 -23
- package/calendar/components/calendar-mobile/Component.js +1 -1
- package/calendar/components/calendar-mobile/calendarMonthOnlyView.js +1 -2
- package/calendar/components/calendar-mobile/index.d.ts +1 -1
- package/calendar/components/calendar-mobile/index.js +1 -1
- package/calendar/cssm/Component.responsive.js +1 -1
- package/calendar/cssm/components/calendar-mobile/calendarMonthOnlyView.js +9 -23
- package/calendar/cssm/typings.d.ts +1 -6
- package/calendar/esm/Component.responsive.js +2 -2
- package/calendar/esm/{calendarMonthOnlyView-8575391d.js → calendarMonthOnlyView-5140c059.js} +10 -22
- package/calendar/esm/components/calendar-mobile/Component.js +1 -1
- package/calendar/esm/components/calendar-mobile/calendarMonthOnlyView.js +2 -2
- package/calendar/esm/components/calendar-mobile/index.d.ts +1 -1
- package/calendar/esm/components/calendar-mobile/index.js +1 -1
- package/calendar/esm/index.js +1 -1
- package/calendar/esm/mobile/index.js +1 -1
- package/calendar/esm/typings.d.ts +1 -6
- package/calendar/mobile/index.js +1 -1
- package/calendar/modern/Component.responsive.js +2 -2
- package/calendar/modern/{calendarMonthOnlyView-96281715.js → calendarMonthOnlyView-5e2d1063.js} +14 -27
- package/calendar/modern/components/calendar-mobile/Component.js +1 -1
- package/calendar/modern/components/calendar-mobile/calendarMonthOnlyView.js +2 -2
- package/calendar/modern/components/calendar-mobile/index.d.ts +1 -1
- package/calendar/modern/components/calendar-mobile/index.js +1 -1
- package/calendar/modern/index.js +1 -1
- package/calendar/modern/mobile/index.js +1 -1
- package/calendar/modern/typings.d.ts +1 -6
- package/calendar/moderncssm/Component.responsive.js +1 -1
- package/calendar/moderncssm/components/calendar-mobile/calendarMonthOnlyView.js +14 -27
- package/calendar/moderncssm/typings.d.ts +1 -6
- package/calendar/typings.d.ts +1 -6
- package/calendar-range/esm/Component.js +1 -1
- package/calendar-range/esm/index.js +1 -1
- package/calendar-range/esm/views/popover.js +1 -1
- package/calendar-range/esm/views/static.js +1 -1
- package/calendar-range/modern/Component.js +1 -1
- package/calendar-range/modern/index.js +1 -1
- package/calendar-range/modern/views/popover.js +1 -1
- package/calendar-range/modern/views/static.js +1 -1
- package/calendar-range/views/popover.js +1 -1
- package/calendar-range/views/static.js +1 -1
- 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/image-viewer/component.js +1 -1
- package/gallery/components/image-viewer/hooks.js +1 -1
- package/gallery/components/image-viewer/single.js +1 -1
- package/gallery/components/image-viewer/slide.js +1 -1
- package/gallery/esm/Component.js +1 -1
- package/gallery/esm/components/image-viewer/component.js +1 -1
- package/gallery/esm/components/image-viewer/hooks.js +1 -1
- package/gallery/esm/components/image-viewer/index.js +1 -1
- package/gallery/esm/components/image-viewer/single.js +1 -1
- package/gallery/esm/components/image-viewer/slide.js +1 -1
- package/gallery/esm/components/index.js +1 -1
- package/gallery/esm/index.js +1 -1
- package/gallery/modern/Component.js +1 -1
- package/gallery/modern/components/image-viewer/component.js +1 -1
- package/gallery/modern/components/image-viewer/hooks.js +1 -1
- package/gallery/modern/components/image-viewer/index.js +1 -1
- package/gallery/modern/components/image-viewer/single.js +1 -1
- package/gallery/modern/components/image-viewer/slide.js +1 -1
- package/gallery/modern/components/index.js +1 -1
- package/gallery/modern/index.js +1 -1
- package/international-phone-input/components/base-international-phone-input/Component.js +1 -1
- package/international-phone-input/components/country-select/Component.js +11 -5
- package/international-phone-input/components/country-select/index.css +7 -3
- package/international-phone-input/components/select-field/component.js +2 -11
- package/international-phone-input/consts.d.ts +12 -1
- package/international-phone-input/consts.js +12 -0
- package/international-phone-input/cssm/components/base-international-phone-input/Component.js +1 -1
- package/international-phone-input/cssm/components/country-select/Component.js +10 -4
- package/international-phone-input/cssm/components/country-select/index.module.css +7 -3
- package/international-phone-input/cssm/components/select-field/component.js +2 -11
- package/international-phone-input/cssm/consts.d.ts +12 -1
- package/international-phone-input/cssm/consts.js +12 -0
- package/international-phone-input/cssm/typings-d515b24c.d.ts +1 -5
- package/international-phone-input/esm/Component.responsive.js +1 -1
- package/international-phone-input/esm/components/base-international-phone-input/Component.js +2 -2
- package/international-phone-input/esm/components/base-international-phone-input/index.js +1 -1
- package/international-phone-input/esm/components/country-select/Component.js +10 -6
- package/international-phone-input/esm/components/country-select/index.css +7 -3
- package/international-phone-input/esm/components/country-select/index.js +2 -1
- package/international-phone-input/esm/components/select-field/component.js +1 -10
- package/international-phone-input/esm/components/select-field/index.js +1 -0
- package/international-phone-input/esm/consts.d.ts +12 -1
- package/international-phone-input/esm/consts.js +12 -1
- package/international-phone-input/esm/desktop/Component.desktop.js +1 -1
- package/international-phone-input/esm/desktop/index.js +1 -1
- package/international-phone-input/esm/index.js +1 -1
- package/international-phone-input/esm/mobile/Component.mobile.js +1 -1
- package/international-phone-input/esm/mobile/index.js +1 -1
- package/international-phone-input/esm/typings-d515b24c.d.ts +1 -5
- package/international-phone-input/modern/Component.responsive.js +1 -1
- package/international-phone-input/modern/components/base-international-phone-input/Component.js +2 -2
- package/international-phone-input/modern/components/base-international-phone-input/index.js +1 -1
- package/international-phone-input/modern/components/country-select/Component.js +10 -6
- package/international-phone-input/modern/components/country-select/index.css +7 -3
- package/international-phone-input/modern/components/country-select/index.js +2 -1
- package/international-phone-input/modern/components/select-field/component.js +1 -10
- package/international-phone-input/modern/components/select-field/index.js +1 -0
- package/international-phone-input/modern/consts.d.ts +12 -1
- package/international-phone-input/modern/consts.js +12 -1
- package/international-phone-input/modern/desktop/Component.desktop.js +1 -1
- package/international-phone-input/modern/desktop/index.js +1 -1
- package/international-phone-input/modern/index.js +1 -1
- package/international-phone-input/modern/mobile/Component.mobile.js +1 -1
- package/international-phone-input/modern/mobile/index.js +1 -1
- package/international-phone-input/modern/typings-d515b24c.d.ts +1 -5
- package/international-phone-input/moderncssm/Component.responsive.js +1 -1
- package/international-phone-input/moderncssm/components/base-international-phone-input/Component.js +2 -2
- package/international-phone-input/moderncssm/components/base-international-phone-input/index.js +1 -1
- package/international-phone-input/moderncssm/components/country-select/Component.js +9 -5
- package/international-phone-input/moderncssm/components/country-select/index.js +2 -1
- package/international-phone-input/moderncssm/components/country-select/index.module.css +5 -1
- package/international-phone-input/moderncssm/components/select-field/component.js +1 -10
- package/international-phone-input/moderncssm/components/select-field/index.js +1 -0
- package/international-phone-input/moderncssm/consts.d.ts +12 -1
- package/international-phone-input/moderncssm/consts.js +12 -1
- package/international-phone-input/moderncssm/desktop/Component.desktop.js +1 -1
- package/international-phone-input/moderncssm/desktop/index.js +1 -1
- package/international-phone-input/moderncssm/index.js +1 -1
- package/international-phone-input/moderncssm/mobile/Component.mobile.js +1 -1
- package/international-phone-input/moderncssm/mobile/index.js +1 -1
- package/international-phone-input/moderncssm/typings-d515b24c.d.ts +1 -5
- package/international-phone-input/typings-d515b24c.d.ts +1 -5
- package/list/Component.js +1 -1
- package/list/components/item/Component.js +1 -1
- package/list/components/item/index.d.ts +1 -1
- package/list/components/item/index.js +1 -1
- package/list/esm/Component.js +1 -1
- package/list/esm/components/item/Component.js +1 -1
- package/list/esm/components/item/index.d.ts +1 -1
- package/list/esm/components/item/index.js +1 -1
- package/list/esm/index.js +1 -1
- package/list/index.js +1 -1
- package/list/modern/Component.js +1 -1
- package/list/modern/components/item/Component.js +1 -1
- package/list/modern/components/item/index.d.ts +1 -1
- package/list/modern/components/item/index.js +1 -1
- package/list/modern/index.js +1 -1
- package/modal/components/controls/Component.js +1 -1
- package/modal/components/footer/Component.js +1 -1
- package/modal/esm/Component.responsive.js +1 -1
- package/modal/esm/components/controls/Component.js +1 -1
- package/modal/esm/components/controls/index.js +1 -1
- package/modal/esm/components/footer/Component.js +1 -1
- package/modal/esm/desktop/Component.desktop.js +1 -1
- package/modal/esm/desktop/index.js +1 -1
- package/modal/esm/index.js +1 -1
- package/modal/esm/mobile/Component.mobile.js +1 -1
- package/modal/esm/mobile/index.js +1 -1
- package/modal/modern/Component.responsive.js +1 -1
- package/modal/modern/components/controls/Component.js +1 -1
- package/modal/modern/components/controls/index.js +1 -1
- package/modal/modern/components/footer/Component.js +1 -1
- package/modal/modern/desktop/Component.desktop.js +1 -1
- package/modal/modern/desktop/index.js +1 -1
- package/modal/modern/index.js +1 -1
- package/modal/modern/mobile/Component.mobile.js +1 -1
- package/modal/modern/mobile/index.js +1 -1
- package/navigation-bar-private/components/closer/Component.d.ts +0 -5
- package/navigation-bar-private/components/closer/Component.js +3 -15
- package/navigation-bar-private/components/closer/index.css +18 -3
- package/navigation-bar-private/cssm/components/closer/Component.d.ts +0 -5
- package/navigation-bar-private/cssm/components/closer/Component.js +2 -12
- package/navigation-bar-private/cssm/components/closer/index.module.css +18 -3
- package/navigation-bar-private/esm/components/closer/Component.d.ts +0 -5
- package/navigation-bar-private/esm/components/closer/Component.js +3 -15
- package/navigation-bar-private/esm/components/closer/index.css +18 -3
- package/navigation-bar-private/modern/components/closer/Component.d.ts +0 -5
- package/navigation-bar-private/modern/components/closer/Component.js +3 -15
- package/navigation-bar-private/modern/components/closer/index.css +18 -3
- package/navigation-bar-private/moderncssm/Component.js +0 -2
- package/navigation-bar-private/moderncssm/components/closer/Component.d.ts +0 -5
- package/navigation-bar-private/moderncssm/components/closer/Component.js +2 -10
- package/navigation-bar-private/moderncssm/components/closer/index.js +0 -2
- package/navigation-bar-private/moderncssm/components/closer/index.module.css +14 -3
- package/navigation-bar-private/moderncssm/index.js +0 -2
- package/navigation-bar-private/moderncssm/shared/index.js +0 -2
- package/package.json +1 -1
- package/picker-button/cssm/typings-d515b24c.d.ts +1 -5
- package/picker-button/esm/typings-d515b24c.d.ts +1 -5
- package/picker-button/modern/typings-d515b24c.d.ts +1 -5
- package/picker-button/moderncssm/typings-d515b24c.d.ts +1 -5
- package/picker-button/typings-d515b24c.d.ts +1 -5
- package/pure-cell/component-fb05ccb7.d.ts +5 -5
- 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-option/Component.js +5 -4
- package/select/components/base-option/index.css +7 -2
- package/select/components/base-select/Component.js +4 -3
- package/select/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
- package/select/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
- package/select/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
- package/select/components/base-select/index.css +7 -2
- package/select/components/search/Component.js +1 -1
- package/select/components/search/index.css +6 -1
- package/select/cssm/components/base-option/Component.js +4 -3
- package/select/cssm/components/base-option/index.module.css +7 -2
- package/select/cssm/components/base-select/Component.js +2 -1
- package/select/cssm/components/base-select/index.module.css +7 -2
- package/select/cssm/components/search/index.module.css +6 -1
- package/select/{hook-ef45b601.js → cssm/hook-bb149630.js} +3 -3
- package/select/cssm/mobile/Component.mobile.js +1 -1
- package/select/cssm/presets/index.js +1 -1
- package/select/cssm/presets/useSelectWithApply/hook.js +1 -1
- package/select/cssm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/select/cssm/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +3 -2
- package/select/cssm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +5 -2
- package/select/cssm/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css +6 -2
- package/select/cssm/presets/useSelectWithApply/options-list-with-apply/header/Component.d.ts +2 -0
- package/select/cssm/presets/useSelectWithApply/options-list-with-apply/header/Component.js +6 -2
- package/select/cssm/presets/useSelectWithApply/options-list-with-apply/header/index.module.css +7 -3
- package/select/cssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/cssm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/select/cssm/shared/index.js +1 -1
- package/select/esm/Component.responsive.js +4 -4
- package/select/esm/components/base-option/Component.js +5 -4
- package/select/esm/components/base-option/index.css +7 -2
- package/select/esm/components/base-option/index.js +1 -0
- package/select/esm/components/base-select/Component.js +4 -3
- package/select/esm/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
- package/select/esm/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
- package/select/esm/components/base-select/components/list-mobile/list-mobile.js +1 -1
- package/select/esm/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
- package/select/esm/components/base-select/index.css +7 -2
- package/select/esm/components/base-select/index.js +3 -2
- package/select/esm/components/index.js +3 -3
- package/select/esm/components/search/Component.js +1 -1
- package/select/esm/components/search/index.css +6 -1
- package/select/esm/desktop/Component.desktop.js +3 -3
- package/select/esm/desktop/index.js +3 -3
- package/select/esm/{hook-99851882.js → hook-90470cc5.js} +3 -3
- package/select/esm/index.js +4 -4
- package/select/esm/{list-popover-desktop-d69b4d3b.js → list-popover-desktop-dd5afbab.js} +1 -1
- package/select/esm/mobile/Component.mobile.js +4 -4
- package/select/esm/mobile/Component.modal.mobile.js +4 -4
- package/select/esm/mobile/index.js +4 -4
- 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/footer/Component.d.ts +3 -2
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +5 -3
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/footer/index.css +6 -2
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/header/Component.d.ts +2 -0
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/header/Component.js +7 -3
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/header/index.css +7 -3
- 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 +3 -3
- package/select/{cssm/hook-928265a3.js → hook-62b57f5c.js} +3 -3
- package/select/{list-popover-desktop-9b282f32.js → list-popover-desktop-08c1b71a.js} +1 -1
- package/select/mobile/Component.mobile.js +1 -1
- package/select/modern/Component.responsive.js +4 -4
- package/select/modern/components/base-option/Component.js +4 -3
- package/select/modern/components/base-option/index.css +7 -2
- package/select/modern/components/base-option/index.js +1 -0
- package/select/modern/components/base-select/Component.js +4 -3
- package/select/modern/components/base-select/components/list-desktop/list-popover-desktop.js +1 -1
- package/select/modern/components/base-select/components/list-mobile/list-bottom-sheet-mobile.js +1 -1
- package/select/modern/components/base-select/components/list-mobile/list-mobile.js +1 -1
- package/select/modern/components/base-select/components/list-mobile/list-modal-mobile.js +1 -1
- package/select/modern/components/base-select/index.css +7 -2
- package/select/modern/components/base-select/index.js +3 -2
- package/select/modern/components/index.js +3 -3
- package/select/modern/components/search/Component.js +1 -1
- package/select/modern/components/search/index.css +6 -1
- package/select/modern/desktop/Component.desktop.js +3 -3
- package/select/modern/desktop/index.js +3 -3
- package/select/modern/{hook-3f21c631.js → hook-d837219f.js} +3 -3
- package/select/modern/index.js +4 -4
- package/select/modern/{list-popover-desktop-e03140fe.js → list-popover-desktop-e615c25f.js} +1 -1
- package/select/modern/mobile/Component.mobile.js +4 -4
- package/select/modern/mobile/Component.modal.mobile.js +4 -4
- package/select/modern/mobile/index.js +4 -4
- 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/footer/Component.d.ts +3 -2
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +5 -3
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/footer/index.css +6 -2
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/header/Component.d.ts +2 -0
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/header/Component.js +6 -2
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/header/index.css +7 -3
- 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 +3 -3
- package/select/moderncssm/Component.responsive.js +2 -2
- package/select/moderncssm/components/base-option/Component.js +3 -2
- package/select/moderncssm/components/base-option/index.js +1 -0
- package/select/moderncssm/components/base-option/index.module.css +7 -0
- package/select/moderncssm/components/base-select/Component.js +2 -1
- package/select/moderncssm/components/base-select/index.js +1 -0
- package/select/moderncssm/components/base-select/index.module.css +4 -0
- package/select/moderncssm/components/index.js +1 -1
- package/select/moderncssm/components/search/index.module.css +3 -0
- package/select/moderncssm/desktop/Component.desktop.js +1 -1
- package/select/moderncssm/desktop/index.js +1 -1
- package/select/moderncssm/{hook-0c8b8277.js → hook-fc2403e7.js} +3 -3
- package/select/moderncssm/index.js +2 -2
- package/select/moderncssm/mobile/Component.mobile.js +2 -2
- package/select/moderncssm/mobile/Component.modal.mobile.js +2 -2
- package/select/moderncssm/mobile/index.js +2 -2
- package/select/moderncssm/presets/index.js +1 -1
- package/select/moderncssm/presets/useSelectWithApply/hook.js +1 -1
- package/select/moderncssm/presets/useSelectWithApply/options-list-with-apply/Component.js +2 -2
- package/select/moderncssm/presets/useSelectWithApply/options-list-with-apply/footer/Component.d.ts +3 -2
- package/select/moderncssm/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +4 -2
- package/select/moderncssm/presets/useSelectWithApply/options-list-with-apply/footer/index.module.css +3 -0
- package/select/moderncssm/presets/useSelectWithApply/options-list-with-apply/header/Component.d.ts +2 -0
- package/select/moderncssm/presets/useSelectWithApply/options-list-with-apply/header/Component.js +5 -1
- package/select/moderncssm/presets/useSelectWithApply/options-list-with-apply/header/index.module.css +5 -1
- package/select/moderncssm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/moderncssm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/select/moderncssm/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/footer/Component.d.ts +3 -2
- package/select/presets/useSelectWithApply/options-list-with-apply/footer/Component.js +6 -3
- package/select/presets/useSelectWithApply/options-list-with-apply/footer/index.css +6 -2
- package/select/presets/useSelectWithApply/options-list-with-apply/header/Component.d.ts +2 -0
- package/select/presets/useSelectWithApply/options-list-with-apply/header/Component.js +7 -3
- package/select/presets/useSelectWithApply/options-list-with-apply/header/index.css +7 -3
- 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/skeleton/Component.js +2 -2
- package/skeleton/cssm/Component.js +1 -1
- package/skeleton/cssm/index.module.css +0 -2
- package/skeleton/esm/Component.js +2 -2
- package/skeleton/esm/index.css +0 -2
- package/skeleton/index.css +0 -2
- package/skeleton/modern/Component.js +2 -2
- package/skeleton/modern/index.css +0 -2
- package/skeleton/moderncssm/Component.js +1 -1
- package/skeleton/moderncssm/index.module.css +0 -6
- package/themes/compiled/mobile-dark-bluetint.css +4 -4
- package/typography/esm/component.js +2 -2
- package/typography/esm/index.js +2 -2
- package/typography/esm/text/component.js +1 -1
- package/typography/esm/text/index.js +1 -1
- package/typography/esm/title/component.js +1 -1
- package/typography/esm/title/index.js +2 -2
- package/typography/esm/title-mobile/component.js +2 -2
- package/typography/esm/title-mobile/index.js +2 -2
- package/typography/esm/title-responsive/component.js +2 -2
- package/typography/esm/title-responsive/index.js +2 -2
- package/typography/modern/component.js +2 -2
- package/typography/modern/index.js +2 -2
- package/typography/modern/text/component.js +1 -1
- package/typography/modern/text/index.js +1 -1
- package/typography/modern/title/component.js +1 -1
- package/typography/modern/title/index.js +2 -2
- package/typography/modern/title-mobile/component.js +2 -2
- package/typography/modern/title-mobile/index.js +2 -2
- package/typography/modern/title-responsive/component.js +2 -2
- package/typography/modern/title-responsive/index.js +2 -2
- package/typography/text/component.js +1 -1
- package/typography/title/component.js +1 -1
- package/typography/title/index.js +1 -1
- package/typography/title-mobile/component.js +1 -1
- package/universal-date-input/cssm/index-5712fce2.d.ts +0 -5
- package/universal-date-input/cssm/index-63dec22f.d.ts +1 -1
- package/universal-date-input/cssm/{typings-ebe70d06.d.ts → typings-5684a67d.d.ts} +1 -6
- package/universal-date-input/cssm/useCalendar-ebe70d06.d.ts +1 -1
- package/universal-date-input/cssm/utils-5712fce2.d.ts +1 -1
- package/universal-date-input/esm/index-5712fce2.d.ts +0 -5
- package/universal-date-input/esm/index-63dec22f.d.ts +1 -1
- package/universal-date-input/esm/{typings-ebe70d06.d.ts → typings-5684a67d.d.ts} +1 -6
- package/universal-date-input/esm/useCalendar-ebe70d06.d.ts +1 -1
- package/universal-date-input/esm/utils-5712fce2.d.ts +1 -1
- package/universal-date-input/index-5712fce2.d.ts +0 -5
- package/universal-date-input/index-63dec22f.d.ts +1 -1
- package/universal-date-input/modern/index-5712fce2.d.ts +0 -5
- package/universal-date-input/modern/index-63dec22f.d.ts +1 -1
- package/universal-date-input/modern/{typings-ebe70d06.d.ts → typings-5684a67d.d.ts} +1 -6
- package/universal-date-input/modern/useCalendar-ebe70d06.d.ts +1 -1
- package/universal-date-input/modern/utils-5712fce2.d.ts +1 -1
- package/universal-date-input/moderncssm/index-5712fce2.d.ts +0 -5
- package/universal-date-input/moderncssm/index-63dec22f.d.ts +1 -1
- package/universal-date-input/moderncssm/{typings-ebe70d06.d.ts → typings-5684a67d.d.ts} +1 -6
- package/universal-date-input/moderncssm/useCalendar-ebe70d06.d.ts +1 -1
- package/universal-date-input/moderncssm/utils-5712fce2.d.ts +1 -1
- package/universal-date-input/typings-5684a67d.d.ts +23 -0
- package/universal-date-input/useCalendar-ebe70d06.d.ts +1 -1
- package/universal-date-input/utils-5712fce2.d.ts +1 -1
- package/universal-modal/components/header/desktop/Component.desktop.js +1 -1
- package/universal-modal/components/header/mobile/Component.mobile.js +1 -1
- package/universal-modal/cssm/desktop/components/buttons/cross-button/cross-button.module.css +4 -5
- package/universal-modal/desktop/components/buttons/cross-button/cross-button.css +4 -5
- package/universal-modal/esm/Component.responsive.js +1 -1
- package/universal-modal/esm/components/header/desktop/Component.desktop.js +1 -1
- package/universal-modal/esm/components/header/index.js +1 -1
- package/universal-modal/esm/components/header/mobile/Component.mobile.js +1 -1
- package/universal-modal/esm/components/header/responsive/Component.responsive.js +1 -1
- package/universal-modal/esm/desktop/Component.desktop.js +1 -1
- package/universal-modal/esm/desktop/components/buttons/cross-button/cross-button.css +4 -5
- package/universal-modal/esm/desktop/index.js +1 -1
- package/universal-modal/esm/index.js +1 -1
- package/universal-modal/esm/mobile/Component.mobile.js +1 -1
- package/universal-modal/esm/mobile/index.js +1 -1
- package/universal-modal/modern/Component.responsive.js +1 -1
- package/universal-modal/modern/components/header/desktop/Component.desktop.js +1 -1
- package/universal-modal/modern/components/header/index.js +1 -1
- package/universal-modal/modern/components/header/mobile/Component.mobile.js +1 -1
- package/universal-modal/modern/components/header/responsive/Component.responsive.js +1 -1
- package/universal-modal/modern/desktop/Component.desktop.js +1 -1
- package/universal-modal/modern/desktop/components/buttons/cross-button/cross-button.css +4 -5
- package/universal-modal/modern/desktop/index.js +1 -1
- package/universal-modal/modern/index.js +1 -1
- package/universal-modal/modern/mobile/Component.mobile.js +1 -1
- package/universal-modal/modern/mobile/index.js +1 -1
- package/universal-modal/moderncssm/desktop/components/buttons/cross-button/cross-button.module.css +2 -4
- package/navigation-bar-private/components/closer/default.css +0 -50
- package/navigation-bar-private/components/closer/inverted.css +0 -51
- package/navigation-bar-private/cssm/components/closer/default.module.css +0 -49
- package/navigation-bar-private/cssm/components/closer/inverted.module.css +0 -50
- package/navigation-bar-private/esm/components/closer/default.css +0 -50
- package/navigation-bar-private/esm/components/closer/inverted.css +0 -51
- package/navigation-bar-private/modern/components/closer/default.css +0 -50
- package/navigation-bar-private/modern/components/closer/inverted.css +0 -51
- package/navigation-bar-private/moderncssm/components/closer/default.module.css +0 -18
- package/navigation-bar-private/moderncssm/components/closer/inverted.module.css +0 -20
- package/universal-date-input/typings-ebe70d06.d.ts +0 -28
- /package/calendar/{calendarMonthOnlyView-76b66eef.d.ts → calendarMonthOnlyView-a5bcfc2c.d.ts} +0 -0
- /package/calendar/esm/{calendarMonthOnlyView-8575391d.d.ts → calendarMonthOnlyView-5140c059.d.ts} +0 -0
- /package/calendar/modern/{calendarMonthOnlyView-96281715.d.ts → calendarMonthOnlyView-5e2d1063.d.ts} +0 -0
- /package/calendar-range/esm/{index.module-9812f07f.js → index.module-1425aba7.js} +0 -0
- /package/calendar-range/{index.module-d8573280.js → index.module-8dc9cad2.js} +0 -0
- /package/calendar-range/modern/{index.module-85078057.js → index.module-b54b4802.js} +0 -0
- /package/confirmation/{countdown-section-dd025f3e.d.ts → countdown-section-b41e29b5.d.ts} +0 -0
- /package/confirmation/{countdown-section-dd025f3e.js → countdown-section-b41e29b5.js} +0 -0
- /package/confirmation/esm/{countdown-section-2c71fa7c.d.ts → countdown-section-c682b9b2.d.ts} +0 -0
- /package/confirmation/esm/{countdown-section-2c71fa7c.js → countdown-section-c682b9b2.js} +0 -0
- /package/confirmation/modern/{countdown-section-20dcb204.d.ts → countdown-section-a36d9e1d.d.ts} +0 -0
- /package/confirmation/modern/{countdown-section-20dcb204.js → countdown-section-a36d9e1d.js} +0 -0
- /package/gallery/esm/{hooks-3c0218fd.d.ts → hooks-9297a156.d.ts} +0 -0
- /package/gallery/esm/{hooks-3c0218fd.js → hooks-9297a156.js} +0 -0
- /package/gallery/{hooks-76002eed.d.ts → hooks-63939a41.d.ts} +0 -0
- /package/gallery/{hooks-76002eed.js → hooks-63939a41.js} +0 -0
- /package/gallery/modern/{hooks-53f26eb0.d.ts → hooks-4237cffb.d.ts} +0 -0
- /package/gallery/modern/{hooks-53f26eb0.js → hooks-4237cffb.js} +0 -0
- /package/list/{Component-8a46cf45.d.ts → Component-c91392a4.d.ts} +0 -0
- /package/list/{Component-8a46cf45.js → Component-c91392a4.js} +0 -0
- /package/list/esm/{Component-ae9327ce.d.ts → Component-95e47678.d.ts} +0 -0
- /package/list/esm/{Component-ae9327ce.js → Component-95e47678.js} +0 -0
- /package/list/modern/{Component-c7086493.d.ts → Component-c4d321ef.d.ts} +0 -0
- /package/list/modern/{Component-c7086493.js → Component-c4d321ef.js} +0 -0
- /package/modal/esm/{layout.module-284050a3.js → layout.module-88c350fe.js} +0 -0
- /package/modal/{layout.module-7e07d8c8.js → layout.module-191d7eff.js} +0 -0
- /package/modal/modern/{layout.module-f996b1f4.js → layout.module-9df0f639.js} +0 -0
- /package/pure-cell/{component-333042c1.d.ts → component-b6a27d0b.d.ts} +0 -0
- /package/pure-cell/{component-333042c1.js → component-b6a27d0b.js} +0 -0
- /package/pure-cell/esm/{component-69ecb66e.d.ts → component-1327917f.d.ts} +0 -0
- /package/pure-cell/esm/{component-69ecb66e.js → component-1327917f.js} +0 -0
- /package/pure-cell/modern/{component-5ed1dd37.d.ts → component-1c682f9d.d.ts} +0 -0
- /package/pure-cell/modern/{component-5ed1dd37.js → component-1c682f9d.js} +0 -0
- /package/select/cssm/{hook-928265a3.d.ts → hook-bb149630.d.ts} +0 -0
- /package/select/esm/{hook-99851882.d.ts → hook-90470cc5.d.ts} +0 -0
- /package/select/esm/{list-popover-desktop-d69b4d3b.d.ts → list-popover-desktop-dd5afbab.d.ts} +0 -0
- /package/select/esm/{mobile.module-53bb5743.js → mobile.module-bed8012e.js} +0 -0
- /package/select/{hook-ef45b601.d.ts → hook-62b57f5c.d.ts} +0 -0
- /package/select/{list-popover-desktop-9b282f32.d.ts → list-popover-desktop-08c1b71a.d.ts} +0 -0
- /package/select/{mobile.module-29d7f3db.js → mobile.module-3a578806.js} +0 -0
- /package/select/modern/{hook-3f21c631.d.ts → hook-d837219f.d.ts} +0 -0
- /package/select/modern/{list-popover-desktop-e03140fe.d.ts → list-popover-desktop-e615c25f.d.ts} +0 -0
- /package/select/modern/{mobile.module-26de034b.js → mobile.module-aeca1625.js} +0 -0
- /package/select/moderncssm/{hook-0c8b8277.d.ts → hook-fc2403e7.d.ts} +0 -0
- /package/side-panel/esm/{layout.module-9f5195fe.js → layout.module-59d8fe29.js} +0 -0
- /package/side-panel/{layout.module-2d71b862.js → layout.module-8fe6bb9a.js} +0 -0
- /package/side-panel/modern/{layout.module-43ff826c.js → layout.module-4bec6b36.js} +0 -0
- /package/typography/{colors.module-04be230e.js → colors.module-a72fdfab.js} +0 -0
- /package/typography/{common.module-ccbfde56.js → common.module-536693bd.js} +0 -0
- /package/typography/esm/{colors.module-955617dc.js → colors.module-3c025306.js} +0 -0
- /package/typography/esm/{common.module-b2640559.js → common.module-94979543.js} +0 -0
- /package/typography/modern/{colors.module-4014a95b.js → colors.module-28b61493.js} +0 -0
- /package/typography/modern/{common.module-b972d968.js → common.module-f77c1a26.js} +0 -0
- /package/universal-modal/esm/{index.module-a7ff1816.js → index.module-1246dc84.js} +0 -0
- /package/universal-modal/{index.module-7ad5a0ef.js → index.module-8b898c3b.js} +0 -0
- /package/universal-modal/modern/{index.module-c46261c1.js → index.module-a2ae370a.js} +0 -0
|
@@ -13,9 +13,9 @@ import '../utils/index.js';
|
|
|
13
13
|
import '../consts.js';
|
|
14
14
|
import '../data/country-data.js';
|
|
15
15
|
import '../components/country-select/Component.js';
|
|
16
|
+
import 'classnames';
|
|
16
17
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
17
18
|
import '../components/flag-icon/component.js';
|
|
18
|
-
import 'classnames';
|
|
19
19
|
import '../components/flag-icon/flagSprite.js';
|
|
20
20
|
import '../components/select-field/component.js';
|
|
21
21
|
import '@alfalab/hooks';
|
|
@@ -14,9 +14,9 @@ import '../utils/index.js';
|
|
|
14
14
|
import '../consts.js';
|
|
15
15
|
import '../data/country-data.js';
|
|
16
16
|
import '../components/country-select/Component.js';
|
|
17
|
+
import 'classnames';
|
|
17
18
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
18
19
|
import '../components/flag-icon/component.js';
|
|
19
|
-
import 'classnames';
|
|
20
20
|
import '../components/flag-icon/flagSprite.js';
|
|
21
21
|
import '../components/select-field/component.js';
|
|
22
22
|
import '@alfalab/hooks';
|
|
@@ -16,9 +16,9 @@ import '../../shared/esm';
|
|
|
16
16
|
import './utils/index.js';
|
|
17
17
|
import './consts.js';
|
|
18
18
|
import './components/country-select/Component.js';
|
|
19
|
+
import 'classnames';
|
|
19
20
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
20
21
|
import './components/flag-icon/component.js';
|
|
21
|
-
import 'classnames';
|
|
22
22
|
import './components/flag-icon/flagSprite.js';
|
|
23
23
|
import './components/select-field/component.js';
|
|
24
24
|
import '@alfalab/hooks';
|
|
@@ -13,9 +13,9 @@ import '../utils/index.js';
|
|
|
13
13
|
import '../consts.js';
|
|
14
14
|
import '../data/country-data.js';
|
|
15
15
|
import '../components/country-select/Component.js';
|
|
16
|
+
import 'classnames';
|
|
16
17
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
17
18
|
import '../components/flag-icon/component.js';
|
|
18
|
-
import 'classnames';
|
|
19
19
|
import '../components/flag-icon/flagSprite.js';
|
|
20
20
|
import '../components/select-field/component.js';
|
|
21
21
|
import '@alfalab/hooks';
|
|
@@ -14,9 +14,9 @@ import '../utils/index.js';
|
|
|
14
14
|
import '../consts.js';
|
|
15
15
|
import '../data/country-data.js';
|
|
16
16
|
import '../components/country-select/Component.js';
|
|
17
|
+
import 'classnames';
|
|
17
18
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
18
19
|
import '../components/flag-icon/component.js';
|
|
19
|
-
import 'classnames';
|
|
20
20
|
import '../components/flag-icon/flagSprite.js';
|
|
21
21
|
import '../components/select-field/component.js';
|
|
22
22
|
import '@alfalab/hooks';
|
|
@@ -5,8 +5,8 @@ import { HTMLAttributes, ReactElement, ReactNode, RefObject, ButtonHTMLAttribute
|
|
|
5
5
|
import { HandledEvents } from "react-swipeable/es/types";
|
|
6
6
|
import { TransitionProps } from "react-transition-group/Transition";
|
|
7
7
|
import { BaseModalProps, BaseModalContext } from "./index-11f20b2e";
|
|
8
|
-
import { IconButtonProps, BaseFormControlProps, BackdropProps } from "./index-ebda875c";
|
|
9
8
|
import { BackgroundColorType } from "./index-464d40a4";
|
|
9
|
+
import { BaseFormControlProps, BackdropProps } from "./index-ebda875c";
|
|
10
10
|
import { ContentProps } from "./typings-4b7234ef";
|
|
11
11
|
import { ModalResponsiveProps as ModalProps } from "./typings-4b7234ef";
|
|
12
12
|
import { CSSTransitionProps } from "react-transition-group/CSSTransition";
|
|
@@ -60,10 +60,6 @@ interface CloserProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
60
60
|
* Иконка
|
|
61
61
|
*/
|
|
62
62
|
icon?: ElementType;
|
|
63
|
-
/**
|
|
64
|
-
* Набор цветов для компонента
|
|
65
|
-
*/
|
|
66
|
-
colors?: IconButtonProps["colors"];
|
|
67
63
|
/**
|
|
68
64
|
* Идентификатор для систем автоматизированного тестирования
|
|
69
65
|
*/
|
|
@@ -15,9 +15,9 @@ import './utils/index.js';
|
|
|
15
15
|
import './consts.js';
|
|
16
16
|
import './data/country-data.js';
|
|
17
17
|
import './components/country-select/Component.js';
|
|
18
|
+
import 'classnames';
|
|
18
19
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
19
20
|
import './components/flag-icon/component.js';
|
|
20
|
-
import 'classnames';
|
|
21
21
|
import './components/flag-icon/flagSprite.js';
|
|
22
22
|
import './components/select-field/component.js';
|
|
23
23
|
import '@alfalab/hooks';
|
package/international-phone-input/modern/components/base-international-phone-input/Component.js
CHANGED
|
@@ -8,9 +8,9 @@ import { initCountries, findCountry, filterPhones, createMaskOptions, getClear,
|
|
|
8
8
|
import { CountrySelect } from '../country-select/Component.js';
|
|
9
9
|
import '../../consts.js';
|
|
10
10
|
import '../../data/country-data.js';
|
|
11
|
+
import 'classnames';
|
|
11
12
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
12
13
|
import '../flag-icon/component.js';
|
|
13
|
-
import 'classnames';
|
|
14
14
|
import '../flag-icon/flagSprite.js';
|
|
15
15
|
import '../select-field/component.js';
|
|
16
16
|
import '@alfalab/hooks';
|
|
@@ -105,7 +105,7 @@ const BaseInternationalPhoneInput = forwardRef(({ clearableCountryCode: clearabl
|
|
|
105
105
|
};
|
|
106
106
|
const showPhoneSelect = Boolean(open || openProps);
|
|
107
107
|
const showCountrySelect = Boolean(openCountry || countrySelectProps?.open);
|
|
108
|
-
const renderCountrySelect = (compact = false) => (React.createElement(CountrySelect, { dataTestId: restProps?.dataTestId, ...countrySelectProps, view: view, SelectComponent: SelectComponent, disabled: disabled || countrySelectProps?.disabled, onChange: handleSelectCountry, country: country, countries: compact ? [] : countriesData, fieldWidth: inputWrapperRef.current?.getBoundingClientRect().width, onOpen: handleCountrySelectOpen, open: showCountrySelect }));
|
|
108
|
+
const renderCountrySelect = (compact = false) => (React.createElement(CountrySelect, { dataTestId: restProps?.dataTestId, ...countrySelectProps, view: view, SelectComponent: SelectComponent, disabled: disabled || countrySelectProps?.disabled, onChange: handleSelectCountry, country: country, countries: compact ? [] : countriesData, fieldWidth: inputWrapperRef.current?.getBoundingClientRect().width, onOpen: handleCountrySelectOpen, open: showCountrySelect, size: size }));
|
|
109
109
|
const inputProps = {
|
|
110
110
|
className: styles.component,
|
|
111
111
|
ref: mergeRefs([maskRef, ref, inputRef]),
|
|
@@ -9,9 +9,9 @@ import '../../utils/index.js';
|
|
|
9
9
|
import '../../consts.js';
|
|
10
10
|
import '../../data/country-data.js';
|
|
11
11
|
import '../country-select/Component.js';
|
|
12
|
+
import 'classnames';
|
|
12
13
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
13
14
|
import '../flag-icon/component.js';
|
|
14
|
-
import 'classnames';
|
|
15
15
|
import '../flag-icon/flagSprite.js';
|
|
16
16
|
import '../select-field/component.js';
|
|
17
17
|
import '@alfalab/hooks';
|
|
@@ -1,24 +1,28 @@
|
|
|
1
1
|
import React, { useMemo, useCallback } from 'react';
|
|
2
|
+
import cn from 'classnames';
|
|
2
3
|
import { VirtualOptionsList, BaseOption } from '../../../../select/modern/shared';
|
|
3
4
|
import { getDataTestId } from '../../../../shared/modern';
|
|
4
5
|
import { WorldMagnifierMIcon } from '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
6
|
+
import { SIZE_TO_CLASSNAME_MAP } from '../../consts.js';
|
|
5
7
|
import { FlagIcon } from '../flag-icon/component.js';
|
|
6
8
|
import { EMPTY_COUNTRY_SELECT_FIELD, SelectField } from '../select-field/component.js';
|
|
7
|
-
import 'classnames';
|
|
8
9
|
import '../flag-icon/flagSprite.js';
|
|
9
10
|
import 'react-merge-refs';
|
|
10
11
|
import '@alfalab/hooks';
|
|
11
12
|
|
|
12
|
-
const styles = {"component":"international-phone-input__component_rcew7","option":"international-phone-input__option_rcew7","flag":"international-phone-input__flag_rcew7","countryName":"international-phone-input__countryName_rcew7","dialCode":"international-phone-input__dialCode_rcew7","flagIconWrapper":"international-phone-input__flagIconWrapper_rcew7","emptyCountryIcon":"international-phone-input__emptyCountryIcon_rcew7"};
|
|
13
|
+
const styles = {"component":"international-phone-input__component_rcew7","option":"international-phone-input__option_rcew7","size-72":"international-phone-input__size-72_rcew7","flag":"international-phone-input__flag_rcew7","countryName":"international-phone-input__countryName_rcew7","dialCode":"international-phone-input__dialCode_rcew7","flagIconWrapper":"international-phone-input__flagIconWrapper_rcew7","emptyCountryIcon":"international-phone-input__emptyCountryIcon_rcew7"};
|
|
13
14
|
require('./index.css');
|
|
14
15
|
|
|
15
|
-
const CountrySelect = ({ hideCountrySelect, countries, country, dataTestId, fieldWidth, onChange, view = 'desktop', SelectComponent, ...restProps }) => {
|
|
16
|
+
const CountrySelect = ({ hideCountrySelect, countries, country, dataTestId, fieldWidth, onChange, view = 'desktop', SelectComponent, size, ...restProps }) => {
|
|
16
17
|
const options = useMemo(() => countries?.map((areas) => {
|
|
17
18
|
const { iso2, dialCode, name } = areas[0];
|
|
18
19
|
return {
|
|
19
20
|
key: iso2,
|
|
20
21
|
value: areas[0],
|
|
21
|
-
content: (React.createElement("span", { className:
|
|
22
|
+
content: (React.createElement("span", { className: cn([
|
|
23
|
+
styles.option,
|
|
24
|
+
size && styles[SIZE_TO_CLASSNAME_MAP[size]],
|
|
25
|
+
]) },
|
|
22
26
|
React.createElement(FlagIcon, { country: iso2, className: styles.flag }),
|
|
23
27
|
React.createElement("span", { className: styles.optionTextWrap },
|
|
24
28
|
React.createElement("span", { className: styles.countryName }, name),
|
|
@@ -26,7 +30,7 @@ const CountrySelect = ({ hideCountrySelect, countries, country, dataTestId, fiel
|
|
|
26
30
|
"+",
|
|
27
31
|
dialCode)))),
|
|
28
32
|
};
|
|
29
|
-
}) || [], [countries]);
|
|
33
|
+
}) || [], [countries, size]);
|
|
30
34
|
const renderOptionsList = useCallback((props) => (React.createElement("div", { style: { width: fieldWidth || 0 } },
|
|
31
35
|
React.createElement(VirtualOptionsList, { ...props, optionsListWidth: 'field' }))), [fieldWidth]);
|
|
32
36
|
const renderFlagIcon = () => (React.createElement("span", { className: styles.flagIconWrapper }, country?.iso2 ? (React.createElement(FlagIcon, { country: country.iso2 })) : (React.createElement(WorldMagnifierMIcon, { className: styles.emptyCountryIcon }))));
|
|
@@ -35,7 +39,7 @@ const CountrySelect = ({ hideCountrySelect, countries, country, dataTestId, fiel
|
|
|
35
39
|
return (
|
|
36
40
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
37
41
|
React.createElement("div", { className: styles.component, onClick: (event) => event.stopPropagation() },
|
|
38
|
-
React.createElement(SelectComponent, { Option: BaseOption, ...restProps, dataTestId: getDataTestId(dataTestId, 'country-select'), options: options, selected: selected || EMPTY_COUNTRY_SELECT_FIELD, onChange: onChange, Field: SelectField, OptionsList: view === 'mobile' ? VirtualOptionsList : renderOptionsList, ...(view === 'mobile' && {
|
|
42
|
+
React.createElement(SelectComponent, { Option: BaseOption, size: size, ...restProps, dataTestId: getDataTestId(dataTestId, 'country-select'), options: options, selected: selected || EMPTY_COUNTRY_SELECT_FIELD, onChange: onChange, Field: SelectField, OptionsList: view === 'mobile' ? VirtualOptionsList : renderOptionsList, ...(view === 'mobile' && {
|
|
39
43
|
bottomSheetProps: {
|
|
40
44
|
title: 'Выберите страну',
|
|
41
45
|
},
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
/* новые значения, используйте их */
|
|
18
18
|
} :root { /* deprecated */ /* deprecated */
|
|
19
19
|
--gap-xs: 8px; /* deprecated */
|
|
20
|
-
--gap-s: 12px; /* deprecated */ /* deprecated */
|
|
20
|
+
--gap-s: 12px; /* deprecated */ /* deprecated */
|
|
21
|
+
--gap-m: 16px; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
21
22
|
|
|
22
23
|
/* новые значения, используйте их */
|
|
23
24
|
|
|
@@ -25,6 +26,7 @@
|
|
|
25
26
|
/* stylelint-disable-next-line length-zero-no-unit */
|
|
26
27
|
--gap-8: var(--gap-xs);
|
|
27
28
|
--gap-12: var(--gap-s);
|
|
29
|
+
--gap-16: var(--gap-m);
|
|
28
30
|
} :root {
|
|
29
31
|
} :root {
|
|
30
32
|
} /* сбрасывает синюю подсветку при нажатии */ .international-phone-input__component_rcew7 {
|
|
@@ -35,8 +37,10 @@
|
|
|
35
37
|
} .international-phone-input__option_rcew7 {
|
|
36
38
|
display: flex;
|
|
37
39
|
align-items: flex-start;
|
|
38
|
-
padding: var(--gap-12)
|
|
39
|
-
} .international-phone-
|
|
40
|
+
padding: var(--gap-12)
|
|
41
|
+
} .international-phone-input__option_rcew7.international-phone-input__size-72_rcew7 {
|
|
42
|
+
padding-left: var(--gap-16);
|
|
43
|
+
} .international-phone-input__flag_rcew7 {
|
|
40
44
|
flex-shrink: 0;
|
|
41
45
|
margin-right: var(--gap-8);
|
|
42
46
|
} .international-phone-input__countryName_rcew7 {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export { CountrySelect } from './Component.js';
|
|
2
2
|
import 'react';
|
|
3
|
+
import 'classnames';
|
|
3
4
|
import '../../../../select/modern/shared';
|
|
4
5
|
import '../../../../shared/modern';
|
|
5
6
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
7
|
+
import '../../consts.js';
|
|
6
8
|
import '../flag-icon/component.js';
|
|
7
|
-
import 'classnames';
|
|
8
9
|
import '../flag-icon/flagSprite.js';
|
|
9
10
|
import '../select-field/component.js';
|
|
10
11
|
import 'react-merge-refs';
|
|
@@ -3,6 +3,7 @@ import mergeRefs from 'react-merge-refs';
|
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { useFocus } from '@alfalab/hooks';
|
|
5
5
|
import { WorldMagnifierMIcon } from '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
6
|
+
import { SIZE_TO_CLASSNAME_MAP } from '../../consts.js';
|
|
6
7
|
import { FlagIcon } from '../flag-icon/component.js';
|
|
7
8
|
import '../flag-icon/flagSprite.js';
|
|
8
9
|
|
|
@@ -13,16 +14,6 @@ const EMPTY_COUNTRY_SELECT_FIELD = {
|
|
|
13
14
|
value: 'EMPTY_COUNTRY_SELECT_VALUE',
|
|
14
15
|
key: 'EMPTY_COUNTRY_SELECT_KEY',
|
|
15
16
|
};
|
|
16
|
-
const SIZE_TO_CLASSNAME_MAP = {
|
|
17
|
-
s: 'size-48',
|
|
18
|
-
m: 'size-56',
|
|
19
|
-
l: 'size-64',
|
|
20
|
-
xl: 'size-72',
|
|
21
|
-
48: 'size-48',
|
|
22
|
-
56: 'size-56',
|
|
23
|
-
64: 'size-64',
|
|
24
|
-
72: 'size-72',
|
|
25
|
-
};
|
|
26
17
|
const SelectField = ({ selected, Arrow, size, disabled, innerProps = {}, }) => {
|
|
27
18
|
const wrapperRef = useRef(null);
|
|
28
19
|
const [focusVisible] = useFocus(wrapperRef, 'keyboard');
|
|
@@ -1,2 +1,13 @@
|
|
|
1
1
|
declare const DEFAULT_PHONE_FORMAT = "... ... ... ... ...";
|
|
2
|
-
|
|
2
|
+
declare const SIZE_TO_CLASSNAME_MAP: {
|
|
3
|
+
s: string;
|
|
4
|
+
m: string;
|
|
5
|
+
l: string;
|
|
6
|
+
xl: string;
|
|
7
|
+
40: string;
|
|
8
|
+
48: string;
|
|
9
|
+
56: string;
|
|
10
|
+
64: string;
|
|
11
|
+
72: string;
|
|
12
|
+
};
|
|
13
|
+
export { DEFAULT_PHONE_FORMAT, SIZE_TO_CLASSNAME_MAP };
|
|
@@ -1,3 +1,14 @@
|
|
|
1
1
|
const DEFAULT_PHONE_FORMAT = '... ... ... ... ...';
|
|
2
|
+
const SIZE_TO_CLASSNAME_MAP = {
|
|
3
|
+
s: 'size-48',
|
|
4
|
+
m: 'size-56',
|
|
5
|
+
l: 'size-64',
|
|
6
|
+
xl: 'size-72',
|
|
7
|
+
40: 'size-40',
|
|
8
|
+
48: 'size-48',
|
|
9
|
+
56: 'size-56',
|
|
10
|
+
64: 'size-64',
|
|
11
|
+
72: 'size-72',
|
|
12
|
+
};
|
|
2
13
|
|
|
3
|
-
export { DEFAULT_PHONE_FORMAT };
|
|
14
|
+
export { DEFAULT_PHONE_FORMAT, SIZE_TO_CLASSNAME_MAP };
|
|
@@ -12,9 +12,9 @@ import '../utils/index.js';
|
|
|
12
12
|
import '../consts.js';
|
|
13
13
|
import '../data/country-data.js';
|
|
14
14
|
import '../components/country-select/Component.js';
|
|
15
|
+
import 'classnames';
|
|
15
16
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
16
17
|
import '../components/flag-icon/component.js';
|
|
17
|
-
import 'classnames';
|
|
18
18
|
import '../components/flag-icon/flagSprite.js';
|
|
19
19
|
import '../components/select-field/component.js';
|
|
20
20
|
import '@alfalab/hooks';
|
|
@@ -13,9 +13,9 @@ import '../utils/index.js';
|
|
|
13
13
|
import '../consts.js';
|
|
14
14
|
import '../data/country-data.js';
|
|
15
15
|
import '../components/country-select/Component.js';
|
|
16
|
+
import 'classnames';
|
|
16
17
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
17
18
|
import '../components/flag-icon/component.js';
|
|
18
|
-
import 'classnames';
|
|
19
19
|
import '../components/flag-icon/flagSprite.js';
|
|
20
20
|
import '../components/select-field/component.js';
|
|
21
21
|
import '@alfalab/hooks';
|
|
@@ -15,9 +15,9 @@ import '../../shared/modern';
|
|
|
15
15
|
import './utils/index.js';
|
|
16
16
|
import './consts.js';
|
|
17
17
|
import './components/country-select/Component.js';
|
|
18
|
+
import 'classnames';
|
|
18
19
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
19
20
|
import './components/flag-icon/component.js';
|
|
20
|
-
import 'classnames';
|
|
21
21
|
import './components/flag-icon/flagSprite.js';
|
|
22
22
|
import './components/select-field/component.js';
|
|
23
23
|
import '@alfalab/hooks';
|
|
@@ -12,9 +12,9 @@ import '../utils/index.js';
|
|
|
12
12
|
import '../consts.js';
|
|
13
13
|
import '../data/country-data.js';
|
|
14
14
|
import '../components/country-select/Component.js';
|
|
15
|
+
import 'classnames';
|
|
15
16
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
16
17
|
import '../components/flag-icon/component.js';
|
|
17
|
-
import 'classnames';
|
|
18
18
|
import '../components/flag-icon/flagSprite.js';
|
|
19
19
|
import '../components/select-field/component.js';
|
|
20
20
|
import '@alfalab/hooks';
|
|
@@ -13,9 +13,9 @@ import '../utils/index.js';
|
|
|
13
13
|
import '../consts.js';
|
|
14
14
|
import '../data/country-data.js';
|
|
15
15
|
import '../components/country-select/Component.js';
|
|
16
|
+
import 'classnames';
|
|
16
17
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
17
18
|
import '../components/flag-icon/component.js';
|
|
18
|
-
import 'classnames';
|
|
19
19
|
import '../components/flag-icon/flagSprite.js';
|
|
20
20
|
import '../components/select-field/component.js';
|
|
21
21
|
import '@alfalab/hooks';
|
|
@@ -5,8 +5,8 @@ import { HTMLAttributes, ReactElement, ReactNode, RefObject, ButtonHTMLAttribute
|
|
|
5
5
|
import { HandledEvents } from "react-swipeable/es/types";
|
|
6
6
|
import { TransitionProps } from "react-transition-group/Transition";
|
|
7
7
|
import { BaseModalProps, BaseModalContext } from "./index-11f20b2e";
|
|
8
|
-
import { IconButtonProps, BaseFormControlProps, BackdropProps } from "./index-ebda875c";
|
|
9
8
|
import { BackgroundColorType } from "./index-464d40a4";
|
|
9
|
+
import { BaseFormControlProps, BackdropProps } from "./index-ebda875c";
|
|
10
10
|
import { ContentProps } from "./typings-4b7234ef";
|
|
11
11
|
import { ModalResponsiveProps as ModalProps } from "./typings-4b7234ef";
|
|
12
12
|
import { CSSTransitionProps } from "react-transition-group/CSSTransition";
|
|
@@ -60,10 +60,6 @@ interface CloserProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
60
60
|
* Иконка
|
|
61
61
|
*/
|
|
62
62
|
icon?: ElementType;
|
|
63
|
-
/**
|
|
64
|
-
* Набор цветов для компонента
|
|
65
|
-
*/
|
|
66
|
-
colors?: IconButtonProps["colors"];
|
|
67
63
|
/**
|
|
68
64
|
* Идентификатор для систем автоматизированного тестирования
|
|
69
65
|
*/
|
|
@@ -15,9 +15,9 @@ import './utils/index.js';
|
|
|
15
15
|
import './consts.js';
|
|
16
16
|
import './data/country-data.js';
|
|
17
17
|
import './components/country-select/Component.js';
|
|
18
|
+
import 'classnames';
|
|
18
19
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
19
20
|
import './components/flag-icon/component.js';
|
|
20
|
-
import 'classnames';
|
|
21
21
|
import './components/flag-icon/flagSprite.js';
|
|
22
22
|
import './components/flag-icon/index.module.css';
|
|
23
23
|
import './components/select-field/component.js';
|
package/international-phone-input/moderncssm/components/base-international-phone-input/Component.js
CHANGED
|
@@ -9,9 +9,9 @@ import { CountrySelect } from '../country-select/Component.js';
|
|
|
9
9
|
import styles from './index.module.css';
|
|
10
10
|
import '../../consts.js';
|
|
11
11
|
import '../../data/country-data.js';
|
|
12
|
+
import 'classnames';
|
|
12
13
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
13
14
|
import '../flag-icon/component.js';
|
|
14
|
-
import 'classnames';
|
|
15
15
|
import '../flag-icon/flagSprite.js';
|
|
16
16
|
import '../flag-icon/index.module.css';
|
|
17
17
|
import '../select-field/component.js';
|
|
@@ -106,7 +106,7 @@ const BaseInternationalPhoneInput = forwardRef(({ clearableCountryCode: clearabl
|
|
|
106
106
|
};
|
|
107
107
|
const showPhoneSelect = Boolean(open || openProps);
|
|
108
108
|
const showCountrySelect = Boolean(openCountry || countrySelectProps?.open);
|
|
109
|
-
const renderCountrySelect = (compact = false) => (React.createElement(CountrySelect, { dataTestId: restProps?.dataTestId, ...countrySelectProps, view: view, SelectComponent: SelectComponent, disabled: disabled || countrySelectProps?.disabled, onChange: handleSelectCountry, country: country, countries: compact ? [] : countriesData, fieldWidth: inputWrapperRef.current?.getBoundingClientRect().width, onOpen: handleCountrySelectOpen, open: showCountrySelect }));
|
|
109
|
+
const renderCountrySelect = (compact = false) => (React.createElement(CountrySelect, { dataTestId: restProps?.dataTestId, ...countrySelectProps, view: view, SelectComponent: SelectComponent, disabled: disabled || countrySelectProps?.disabled, onChange: handleSelectCountry, country: country, countries: compact ? [] : countriesData, fieldWidth: inputWrapperRef.current?.getBoundingClientRect().width, onOpen: handleCountrySelectOpen, open: showCountrySelect, size: size }));
|
|
110
110
|
const inputProps = {
|
|
111
111
|
className: styles.component,
|
|
112
112
|
ref: mergeRefs([maskRef, ref, inputRef]),
|
package/international-phone-input/moderncssm/components/base-international-phone-input/index.js
CHANGED
|
@@ -9,9 +9,9 @@ import '../../utils/index.js';
|
|
|
9
9
|
import '../../consts.js';
|
|
10
10
|
import '../../data/country-data.js';
|
|
11
11
|
import '../country-select/Component.js';
|
|
12
|
+
import 'classnames';
|
|
12
13
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
13
14
|
import '../flag-icon/component.js';
|
|
14
|
-
import 'classnames';
|
|
15
15
|
import '../flag-icon/flagSprite.js';
|
|
16
16
|
import '../flag-icon/index.module.css';
|
|
17
17
|
import '../select-field/component.js';
|
|
@@ -1,24 +1,28 @@
|
|
|
1
1
|
import React, { useMemo, useCallback } from 'react';
|
|
2
|
+
import cn from 'classnames';
|
|
2
3
|
import { VirtualOptionsList, BaseOption } from '../../../../select/moderncssm/shared';
|
|
3
4
|
import { getDataTestId } from '../../../../shared/moderncssm';
|
|
4
5
|
import { WorldMagnifierMIcon } from '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
6
|
+
import { SIZE_TO_CLASSNAME_MAP } from '../../consts.js';
|
|
5
7
|
import { FlagIcon } from '../flag-icon/component.js';
|
|
6
8
|
import { EMPTY_COUNTRY_SELECT_FIELD, SelectField } from '../select-field/component.js';
|
|
7
9
|
import styles from './index.module.css';
|
|
8
|
-
import 'classnames';
|
|
9
10
|
import '../flag-icon/flagSprite.js';
|
|
10
11
|
import '../flag-icon/index.module.css';
|
|
11
12
|
import 'react-merge-refs';
|
|
12
13
|
import '@alfalab/hooks';
|
|
13
14
|
import '../select-field/index.module.css';
|
|
14
15
|
|
|
15
|
-
const CountrySelect = ({ hideCountrySelect, countries, country, dataTestId, fieldWidth, onChange, view = 'desktop', SelectComponent, ...restProps }) => {
|
|
16
|
+
const CountrySelect = ({ hideCountrySelect, countries, country, dataTestId, fieldWidth, onChange, view = 'desktop', SelectComponent, size, ...restProps }) => {
|
|
16
17
|
const options = useMemo(() => countries?.map((areas) => {
|
|
17
18
|
const { iso2, dialCode, name } = areas[0];
|
|
18
19
|
return {
|
|
19
20
|
key: iso2,
|
|
20
21
|
value: areas[0],
|
|
21
|
-
content: (React.createElement("span", { className:
|
|
22
|
+
content: (React.createElement("span", { className: cn([
|
|
23
|
+
styles.option,
|
|
24
|
+
size && styles[SIZE_TO_CLASSNAME_MAP[size]],
|
|
25
|
+
]) },
|
|
22
26
|
React.createElement(FlagIcon, { country: iso2, className: styles.flag }),
|
|
23
27
|
React.createElement("span", { className: styles.optionTextWrap },
|
|
24
28
|
React.createElement("span", { className: styles.countryName }, name),
|
|
@@ -26,7 +30,7 @@ const CountrySelect = ({ hideCountrySelect, countries, country, dataTestId, fiel
|
|
|
26
30
|
"+",
|
|
27
31
|
dialCode)))),
|
|
28
32
|
};
|
|
29
|
-
}) || [], [countries]);
|
|
33
|
+
}) || [], [countries, size]);
|
|
30
34
|
const renderOptionsList = useCallback((props) => (React.createElement("div", { style: { width: fieldWidth || 0 } },
|
|
31
35
|
React.createElement(VirtualOptionsList, { ...props, optionsListWidth: 'field' }))), [fieldWidth]);
|
|
32
36
|
const renderFlagIcon = () => (React.createElement("span", { className: styles.flagIconWrapper }, country?.iso2 ? (React.createElement(FlagIcon, { country: country.iso2 })) : (React.createElement(WorldMagnifierMIcon, { className: styles.emptyCountryIcon }))));
|
|
@@ -35,7 +39,7 @@ const CountrySelect = ({ hideCountrySelect, countries, country, dataTestId, fiel
|
|
|
35
39
|
return (
|
|
36
40
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
37
41
|
React.createElement("div", { className: styles.component, onClick: (event) => event.stopPropagation() },
|
|
38
|
-
React.createElement(SelectComponent, { Option: BaseOption, ...restProps, dataTestId: getDataTestId(dataTestId, 'country-select'), options: options, selected: selected || EMPTY_COUNTRY_SELECT_FIELD, onChange: onChange, Field: SelectField, OptionsList: view === 'mobile' ? VirtualOptionsList : renderOptionsList, ...(view === 'mobile' && {
|
|
42
|
+
React.createElement(SelectComponent, { Option: BaseOption, size: size, ...restProps, dataTestId: getDataTestId(dataTestId, 'country-select'), options: options, selected: selected || EMPTY_COUNTRY_SELECT_FIELD, onChange: onChange, Field: SelectField, OptionsList: view === 'mobile' ? VirtualOptionsList : renderOptionsList, ...(view === 'mobile' && {
|
|
39
43
|
bottomSheetProps: {
|
|
40
44
|
title: 'Выберите страну',
|
|
41
45
|
},
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export { CountrySelect } from './Component.js';
|
|
2
2
|
import 'react';
|
|
3
|
+
import 'classnames';
|
|
3
4
|
import '../../../../select/moderncssm/shared';
|
|
4
5
|
import '../../../../shared/moderncssm';
|
|
5
6
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
7
|
+
import '../../consts.js';
|
|
6
8
|
import '../flag-icon/component.js';
|
|
7
|
-
import 'classnames';
|
|
8
9
|
import '../flag-icon/flagSprite.js';
|
|
9
10
|
import '../flag-icon/index.module.css';
|
|
10
11
|
import '../select-field/component.js';
|
|
@@ -3,6 +3,7 @@ import mergeRefs from 'react-merge-refs';
|
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { useFocus } from '@alfalab/hooks';
|
|
5
5
|
import { WorldMagnifierMIcon } from '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
6
|
+
import { SIZE_TO_CLASSNAME_MAP } from '../../consts.js';
|
|
6
7
|
import { FlagIcon } from '../flag-icon/component.js';
|
|
7
8
|
import styles from './index.module.css';
|
|
8
9
|
import '../flag-icon/flagSprite.js';
|
|
@@ -12,16 +13,6 @@ const EMPTY_COUNTRY_SELECT_FIELD = {
|
|
|
12
13
|
value: 'EMPTY_COUNTRY_SELECT_VALUE',
|
|
13
14
|
key: 'EMPTY_COUNTRY_SELECT_KEY',
|
|
14
15
|
};
|
|
15
|
-
const SIZE_TO_CLASSNAME_MAP = {
|
|
16
|
-
s: 'size-48',
|
|
17
|
-
m: 'size-56',
|
|
18
|
-
l: 'size-64',
|
|
19
|
-
xl: 'size-72',
|
|
20
|
-
48: 'size-48',
|
|
21
|
-
56: 'size-56',
|
|
22
|
-
64: 'size-64',
|
|
23
|
-
72: 'size-72',
|
|
24
|
-
};
|
|
25
16
|
const SelectField = ({ selected, Arrow, size, disabled, innerProps = {}, }) => {
|
|
26
17
|
const wrapperRef = useRef(null);
|
|
27
18
|
const [focusVisible] = useFocus(wrapperRef, 'keyboard');
|
|
@@ -4,6 +4,7 @@ import 'react-merge-refs';
|
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '@alfalab/hooks';
|
|
6
6
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
7
|
+
import '../../consts.js';
|
|
7
8
|
import '../flag-icon/component.js';
|
|
8
9
|
import '../flag-icon/flagSprite.js';
|
|
9
10
|
import '../flag-icon/index.module.css';
|
|
@@ -1,2 +1,13 @@
|
|
|
1
1
|
declare const DEFAULT_PHONE_FORMAT = "... ... ... ... ...";
|
|
2
|
-
|
|
2
|
+
declare const SIZE_TO_CLASSNAME_MAP: {
|
|
3
|
+
s: string;
|
|
4
|
+
m: string;
|
|
5
|
+
l: string;
|
|
6
|
+
xl: string;
|
|
7
|
+
40: string;
|
|
8
|
+
48: string;
|
|
9
|
+
56: string;
|
|
10
|
+
64: string;
|
|
11
|
+
72: string;
|
|
12
|
+
};
|
|
13
|
+
export { DEFAULT_PHONE_FORMAT, SIZE_TO_CLASSNAME_MAP };
|
|
@@ -1,3 +1,14 @@
|
|
|
1
1
|
const DEFAULT_PHONE_FORMAT = '... ... ... ... ...';
|
|
2
|
+
const SIZE_TO_CLASSNAME_MAP = {
|
|
3
|
+
s: 'size-48',
|
|
4
|
+
m: 'size-56',
|
|
5
|
+
l: 'size-64',
|
|
6
|
+
xl: 'size-72',
|
|
7
|
+
40: 'size-40',
|
|
8
|
+
48: 'size-48',
|
|
9
|
+
56: 'size-56',
|
|
10
|
+
64: 'size-64',
|
|
11
|
+
72: 'size-72',
|
|
12
|
+
};
|
|
2
13
|
|
|
3
|
-
export { DEFAULT_PHONE_FORMAT };
|
|
14
|
+
export { DEFAULT_PHONE_FORMAT, SIZE_TO_CLASSNAME_MAP };
|
|
@@ -12,9 +12,9 @@ import '../utils/index.js';
|
|
|
12
12
|
import '../consts.js';
|
|
13
13
|
import '../data/country-data.js';
|
|
14
14
|
import '../components/country-select/Component.js';
|
|
15
|
+
import 'classnames';
|
|
15
16
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
16
17
|
import '../components/flag-icon/component.js';
|
|
17
|
-
import 'classnames';
|
|
18
18
|
import '../components/flag-icon/flagSprite.js';
|
|
19
19
|
import '../components/flag-icon/index.module.css';
|
|
20
20
|
import '../components/select-field/component.js';
|
|
@@ -13,9 +13,9 @@ import '../utils/index.js';
|
|
|
13
13
|
import '../consts.js';
|
|
14
14
|
import '../data/country-data.js';
|
|
15
15
|
import '../components/country-select/Component.js';
|
|
16
|
+
import 'classnames';
|
|
16
17
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
17
18
|
import '../components/flag-icon/component.js';
|
|
18
|
-
import 'classnames';
|
|
19
19
|
import '../components/flag-icon/flagSprite.js';
|
|
20
20
|
import '../components/flag-icon/index.module.css';
|
|
21
21
|
import '../components/select-field/component.js';
|
|
@@ -15,9 +15,9 @@ import '../../shared/moderncssm';
|
|
|
15
15
|
import './utils/index.js';
|
|
16
16
|
import './consts.js';
|
|
17
17
|
import './components/country-select/Component.js';
|
|
18
|
+
import 'classnames';
|
|
18
19
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
19
20
|
import './components/flag-icon/component.js';
|
|
20
|
-
import 'classnames';
|
|
21
21
|
import './components/flag-icon/flagSprite.js';
|
|
22
22
|
import './components/flag-icon/index.module.css';
|
|
23
23
|
import './components/select-field/component.js';
|
|
@@ -12,9 +12,9 @@ import '../utils/index.js';
|
|
|
12
12
|
import '../consts.js';
|
|
13
13
|
import '../data/country-data.js';
|
|
14
14
|
import '../components/country-select/Component.js';
|
|
15
|
+
import 'classnames';
|
|
15
16
|
import '@alfalab/icons-glyph/WorldMagnifierMIcon';
|
|
16
17
|
import '../components/flag-icon/component.js';
|
|
17
|
-
import 'classnames';
|
|
18
18
|
import '../components/flag-icon/flagSprite.js';
|
|
19
19
|
import '../components/flag-icon/index.module.css';
|
|
20
20
|
import '../components/select-field/component.js';
|