@alfalab/core-components 42.2.3 → 42.2.4
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-50136800.d.ts +166 -3
- package/calendar/cssm/Component-50136800.d.ts +3 -166
- package/calendar/cssm/desktop-63dec22f.d.ts +6 -2
- package/calendar/desktop-63dec22f.d.ts +2 -6
- package/calendar/modern/Component-50136800.d.ts +3 -166
- package/calendar/modern/desktop-63dec22f.d.ts +6 -2
- package/calendar-input/Component-50136800.d.ts +3 -166
- package/calendar-input/Component-63dec22f.d.ts +155 -12
- package/calendar-input/Component-ebda875c.d.ts +35 -0
- package/calendar-input/Component.desktop-8b5756fe.d.ts +61 -5
- package/calendar-input/components/calendar-input/Component.d.ts +1 -1
- package/calendar-input/cssm/Component-50136800.d.ts +3 -166
- package/calendar-input/cssm/Component-63dec22f.d.ts +155 -12
- package/calendar-input/cssm/Component-ebda875c.d.ts +35 -0
- package/calendar-input/cssm/Component.desktop-8b5756fe.d.ts +61 -5
- package/calendar-input/cssm/components/calendar-input/Component.d.ts +1 -1
- package/calendar-input/cssm/index-9211a437.d.ts +1 -1
- package/calendar-input/cssm/index-ebda875c.d.ts +1 -1
- package/calendar-input/cssm/index-f034f741.d.ts +83 -2
- package/calendar-input/cssm/mobile-c219f8ca.d.ts +1 -367
- package/calendar-input/index-9211a437.d.ts +1 -1
- package/calendar-input/index-ebda875c.d.ts +1 -1
- package/calendar-input/index-f034f741.d.ts +83 -2
- package/calendar-input/mobile-c219f8ca.d.ts +1 -367
- package/calendar-input/modern/Component-50136800.d.ts +3 -166
- package/calendar-input/modern/Component-63dec22f.d.ts +155 -12
- package/calendar-input/modern/Component-ebda875c.d.ts +35 -0
- package/calendar-input/modern/Component.desktop-8b5756fe.d.ts +61 -5
- package/calendar-input/modern/components/calendar-input/Component.d.ts +1 -1
- package/calendar-input/modern/index-9211a437.d.ts +1 -1
- package/calendar-input/modern/index-ebda875c.d.ts +1 -1
- package/calendar-input/modern/index-f034f741.d.ts +83 -2
- package/calendar-input/modern/mobile-c219f8ca.d.ts +1 -367
- package/calendar-range/cssm/utils.js +1 -3
- package/calendar-range/modern/Component-5684a67d.d.ts +18 -0
- package/calendar-range/modern/Component.desktop-e2b6c730.d.ts +134 -0
- package/calendar-range/modern/index-ebda875c.d.ts +1 -52
- package/calendar-range/modern/index-f034f741.d.ts +2 -130
- package/calendar-range/modern/shared-848397c5.d.ts +2 -2
- package/calendar-range/modern/shared-c111a9fd.d.ts +13 -1
- package/confirmation/component.desktop.js +1 -1
- package/confirmation/component.mobile.js +1 -1
- package/confirmation/component.responsive.js +1 -1
- package/confirmation/components/base-confirmation/component.js +1 -1
- package/confirmation/components/base-confirmation/index.js +1 -1
- package/confirmation/components/index.js +1 -1
- package/confirmation/components/screens/index.js +1 -1
- package/confirmation/components/screens/initial/component.js +1 -1
- package/confirmation/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/components/screens/initial/index.js +1 -1
- package/confirmation/desktop.js +1 -1
- package/confirmation/esm/component.desktop.js +1 -1
- package/confirmation/esm/component.mobile.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.js +1 -1
- package/confirmation/esm/index.js +1 -1
- package/confirmation/esm/mobile.js +1 -1
- package/confirmation/esm/shared.js +1 -1
- package/confirmation/index.js +1 -1
- package/confirmation/mobile.js +1 -1
- package/confirmation/modern/component.desktop.js +1 -1
- package/confirmation/modern/component.mobile.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.js +1 -1
- package/confirmation/modern/index.js +1 -1
- package/confirmation/modern/mobile.js +1 -1
- package/confirmation/modern/shared.js +1 -1
- package/confirmation/shared.js +1 -1
- package/custom-picker-button/Component-5e1b8383.d.ts +20 -70
- package/custom-picker-button/Component-72dda473.d.ts +53 -0
- package/custom-picker-button/Component-8b2c2707.d.ts +9 -68
- package/custom-picker-button/Component.mobile.d.ts +1 -1
- package/custom-picker-button/desktop-d446ae02.d.ts +39 -2
- package/custom-picker-button/index-50136800.d.ts +5 -2
- package/custom-picker-button/index-c44170fe.d.ts +0 -137
- package/custom-picker-button/index-ebda875c.d.ts +35 -1
- package/custom-picker-button/index-f12ee135.d.ts +1 -1
- package/custom-picker-button/shared-4cd3936b.d.ts +1 -0
- package/date-range-input/Component-50136800.d.ts +166 -3
- package/date-range-input/Component-63dec22f.d.ts +12 -155
- package/date-range-input/Component.desktop-8b5756fe.d.ts +5 -68
- package/date-range-input/components/date-range-input/Component.d.ts +1 -1
- package/date-range-input/cssm/Component-50136800.d.ts +166 -3
- package/date-range-input/cssm/Component-63dec22f.d.ts +12 -155
- package/date-range-input/cssm/Component.desktop-8b5756fe.d.ts +5 -68
- package/date-range-input/cssm/components/date-range-input/Component.d.ts +1 -1
- package/date-range-input/cssm/index-9211a437.d.ts +1 -1
- package/date-range-input/cssm/index-ebda875c.d.ts +115 -15
- package/date-range-input/cssm/index-f034f741.d.ts +2 -80
- package/date-range-input/cssm/mobile-c219f8ca.d.ts +367 -1
- package/date-range-input/esm/Component-50136800.d.ts +3 -166
- package/date-range-input/esm/Component-63dec22f.d.ts +155 -12
- package/date-range-input/esm/Component-8b5756fe.d.ts +388 -0
- package/date-range-input/esm/Component.desktop-8b5756fe.d.ts +68 -5
- package/date-range-input/esm/components/date-range-input/Component.d.ts +1 -1
- package/date-range-input/esm/index-9211a437.d.ts +1 -1
- package/date-range-input/esm/index-ebda875c.d.ts +15 -115
- package/date-range-input/esm/index-f034f741.d.ts +80 -2
- package/date-range-input/esm/mobile-c219f8ca.d.ts +1 -367
- package/date-range-input/index-9211a437.d.ts +1 -1
- package/date-range-input/index-ebda875c.d.ts +115 -15
- package/date-range-input/index-f034f741.d.ts +2 -80
- package/date-range-input/mobile-c219f8ca.d.ts +367 -1
- package/date-time-input/esm/Component-50136800.d.ts +166 -3
- package/date-time-input/esm/Component-63dec22f.d.ts +12 -155
- package/date-time-input/esm/Component.desktop-8b5756fe.d.ts +5 -68
- package/date-time-input/esm/components/date-time-input/Component.d.ts +1 -1
- package/date-time-input/esm/index-9211a437.d.ts +1 -1
- package/date-time-input/esm/index-ebda875c.d.ts +115 -15
- package/date-time-input/esm/index-f034f741.d.ts +2 -80
- package/date-time-input/esm/mobile-c219f8ca.d.ts +367 -1
- package/date-time-input/modern/Component-50136800.d.ts +3 -166
- package/date-time-input/modern/Component-63dec22f.d.ts +155 -12
- package/date-time-input/modern/Component-8b5756fe.d.ts +388 -0
- package/date-time-input/modern/Component.desktop-8b5756fe.d.ts +68 -5
- package/date-time-input/modern/components/date-time-input/Component.d.ts +1 -1
- package/date-time-input/modern/index-9211a437.d.ts +1 -1
- package/date-time-input/modern/index-ebda875c.d.ts +15 -115
- package/date-time-input/modern/index-f034f741.d.ts +80 -2
- package/date-time-input/modern/mobile-c219f8ca.d.ts +1 -367
- package/gallery/Component.js +2 -2
- package/gallery/components/header/Component.js +1 -1
- package/gallery/components/header/buttons.js +1 -1
- package/gallery/components/header/index.js +1 -1
- package/gallery/components/image-viewer/component.js +1 -1
- package/gallery/components/image-viewer/index.js +1 -1
- package/gallery/components/image-viewer/slide.js +1 -1
- package/gallery/components/index.js +2 -2
- package/gallery/esm/Component.js +2 -2
- package/gallery/esm/components/header/Component.js +1 -1
- package/gallery/esm/components/header/buttons.js +1 -1
- package/gallery/esm/components/header/index.js +1 -1
- package/gallery/esm/components/image-viewer/component.js +1 -1
- package/gallery/esm/components/image-viewer/index.js +1 -1
- package/gallery/esm/components/image-viewer/slide.js +1 -1
- package/gallery/esm/components/index.js +2 -2
- package/gallery/esm/index.js +2 -2
- package/gallery/index.js +2 -2
- package/gallery/modern/Component.js +2 -2
- package/gallery/modern/components/header/Component.js +1 -1
- package/gallery/modern/components/header/buttons.js +1 -1
- package/gallery/modern/components/header/index.js +1 -1
- package/gallery/modern/components/image-viewer/component.js +1 -1
- package/gallery/modern/components/image-viewer/index.js +1 -1
- package/gallery/modern/components/image-viewer/slide.js +1 -1
- package/gallery/modern/components/index.js +2 -2
- package/gallery/modern/index.js +2 -2
- package/grid/Component.js +1 -1
- package/grid/col/Component.js +1 -1
- package/grid/col/index.js +1 -1
- package/grid/esm/Component.js +1 -1
- package/grid/esm/col/Component.js +1 -1
- package/grid/esm/col/index.js +1 -1
- package/grid/esm/index.js +1 -1
- package/grid/esm/row/Component.js +1 -1
- package/grid/esm/row/index.js +1 -1
- package/grid/index.js +1 -1
- package/grid/modern/Component.js +1 -1
- package/grid/modern/col/Component.js +1 -1
- package/grid/modern/col/index.js +1 -1
- package/grid/modern/index.js +1 -1
- package/grid/modern/row/Component.js +1 -1
- package/grid/modern/row/index.js +1 -1
- package/grid/row/Component.js +1 -1
- package/grid/row/index.js +1 -1
- package/input/esm/Component.responsive.d.ts +1 -1
- package/input/esm/components/base-input/Component.d.ts +1 -1
- package/input/modern/Component.responsive.d.ts +1 -1
- package/input/modern/components/base-input/Component.d.ts +1 -1
- package/input-autocomplete/Component-50136800.d.ts +44 -0
- package/input-autocomplete/Component-5e1b8383.d.ts +3 -70
- package/input-autocomplete/Component-ebda875c.d.ts +265 -8
- package/input-autocomplete/Component.mobile.d.ts +1 -1
- package/input-autocomplete/Component.modal.mobile.d.ts +2 -2
- package/input-autocomplete/Component.responsive.d.ts +1 -1
- package/input-autocomplete/cssm/Component-5e1b8383.d.ts +4 -21
- package/input-autocomplete/cssm/Component-aed0af6e.d.ts +11 -0
- package/input-autocomplete/cssm/Component-ebda875c.d.ts +265 -8
- package/input-autocomplete/cssm/Component.mobile.d.ts +1 -1
- package/input-autocomplete/cssm/Component.modal.mobile.d.ts +2 -2
- package/input-autocomplete/cssm/Component.responsive.d.ts +1 -1
- package/input-autocomplete/{component-50136800.d.ts → cssm/component-50136800.d.ts} +5 -5
- package/input-autocomplete/cssm/hook-9ea9e32c.d.ts +4 -4
- package/input-autocomplete/cssm/index-bdb4c6b9.d.ts +180 -2
- package/input-autocomplete/cssm/index-ebda875c.d.ts +11 -115
- package/input-autocomplete/cssm/shared-4cd3936b.d.ts +1 -87
- package/input-autocomplete/desktop-63dec22f.d.ts +2 -6
- package/input-autocomplete/esm/Component-50136800.d.ts +44 -0
- package/input-autocomplete/esm/Component-5e1b8383.d.ts +70 -20
- package/input-autocomplete/esm/Component.mobile-ebda875c.d.ts +6 -0
- package/input-autocomplete/esm/desktop-63dec22f.d.ts +6 -2
- package/input-autocomplete/esm/mobile-96988a65.d.ts +2 -5
- package/input-autocomplete/esm/shared-4cd3936b.d.ts +0 -1
- package/input-autocomplete/hook-9ea9e32c.d.ts +4 -4
- package/input-autocomplete/index-bdb4c6b9.d.ts +180 -2
- package/input-autocomplete/index-ebda875c.d.ts +11 -115
- package/input-autocomplete/{cssm/Component.modal.mobile-5e1b8383.d.ts → mobile-45dc17c6.d.ts} +13 -26
- package/input-autocomplete/mobile-96988a65.d.ts +5 -2
- package/input-autocomplete/modern/Component-5e1b8383.d.ts +70 -3
- package/input-autocomplete/modern/Component-ebda875c.d.ts +8 -265
- package/input-autocomplete/modern/Component.mobile-ebda875c.d.ts +6 -0
- package/input-autocomplete/modern/Component.mobile.d.ts +1 -1
- package/input-autocomplete/modern/Component.modal.mobile.d.ts +2 -2
- package/input-autocomplete/modern/Component.responsive.d.ts +1 -1
- package/input-autocomplete/modern/component-50136800.d.ts +5 -5
- package/input-autocomplete/modern/desktop-63dec22f.d.ts +6 -2
- package/input-autocomplete/modern/hook-9ea9e32c.d.ts +4 -4
- package/input-autocomplete/modern/index-bdb4c6b9.d.ts +2 -180
- package/input-autocomplete/modern/index-ebda875c.d.ts +115 -11
- package/input-autocomplete/modern/mobile-96988a65.d.ts +2 -5
- package/input-autocomplete/modern/shared-4cd3936b.d.ts +87 -2
- package/input-autocomplete/shared-4cd3936b.d.ts +2 -87
- package/intl-phone-input/component-50136800.d.ts +0 -38
- package/intl-phone-input/cssm/Component-4cd3936b.d.ts +1 -1
- package/intl-phone-input/cssm/Component-5e1b8383.d.ts +96 -18
- package/intl-phone-input/cssm/component.d.ts +1 -1
- package/intl-phone-input/cssm/components/select/component.d.ts +1 -1
- package/intl-phone-input/cssm/desktop-63dec22f.d.ts +1 -1
- package/intl-phone-input/cssm/shared-4cd3936b.d.ts +83 -13
- package/intl-phone-input/esm/Component-4cd3936b.d.ts +1 -1
- package/intl-phone-input/esm/Component-5e1b8383.d.ts +18 -96
- package/intl-phone-input/esm/component.d.ts +1 -1
- package/intl-phone-input/esm/components/select/component.d.ts +1 -1
- package/intl-phone-input/esm/desktop-63dec22f.d.ts +1 -1
- package/intl-phone-input/esm/hook-c44170fe.d.ts +48 -0
- package/intl-phone-input/esm/shared-4cd3936b.d.ts +13 -83
- package/intl-phone-input/modern/{component-50136800.d.ts → Component-50136800.d.ts} +27 -25
- 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/number-input/Component.d.ts +1 -1
- package/number-input/cssm/Component.d.ts +1 -1
- package/package.json +1 -1327
- package/phone-input/utils/index.js +3 -1
- package/picker-button/esm/Component-50136800.d.ts +21 -27
- package/picker-button/esm/Component-5e1b8383.d.ts +3 -70
- package/picker-button/esm/Component-72dda473.d.ts +53 -0
- package/picker-button/esm/Component-aed0af6e.d.ts +11 -0
- package/picker-button/esm/Component-ebda875c.d.ts +98 -9
- package/picker-button/esm/Component.desktop.d.ts +1 -1
- package/picker-button/esm/Component.mobile-96988a65.d.ts +6 -0
- package/picker-button/esm/Component.mobile.d.ts +1 -1
- package/picker-button/esm/Component.responsive.d.ts +1 -1
- package/picker-button/esm/hook-9ea9e32c.d.ts +4 -4
- package/picker-button/esm/hook-ebda875c.d.ts +48 -0
- package/picker-button/esm/index-50136800.d.ts +5 -2
- package/picker-button/esm/index-bdb4c6b9.d.ts +180 -2
- package/picker-button/esm/index-c44170fe.d.ts +3 -141
- package/picker-button/esm/index-ebda875c.d.ts +13 -62
- package/picker-button/esm/index-f12ee135.d.ts +307 -3
- package/picker-button/esm/shared-4cd3936b.d.ts +1 -87
- package/pure-cell/component-5a229016.d.ts +9 -9
- package/pure-cell/component.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/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/cssm/component-5a229016.d.ts +9 -9
- package/pure-cell/esm/component.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/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/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/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/Component.desktop-ebda875c.d.ts +6 -0
- package/select/Component.desktop.d.ts +0 -2
- package/select/Component.mobile-f1f15074.d.ts +12 -12
- package/select/Component.mobile.js +1 -1
- package/select/Component.modal.mobile.js +1 -1
- package/select/Component.responsive.js +1 -1
- package/select/cssm/Component.desktop.d.ts +2 -0
- package/select/cssm/Component.mobile-f1f15074.d.ts +12 -12
- package/select/cssm/mobile-96988a65.d.ts +2 -6
- package/select/esm/Component.desktop.d.ts +2 -0
- package/select/esm/Component.mobile-f1f15074.d.ts +1 -1
- package/select/esm/Component.mobile.js +1 -1
- package/select/esm/Component.modal.mobile.js +1 -1
- package/select/esm/Component.responsive.js +1 -1
- package/select/esm/index.js +1 -1
- package/select/esm/mobile-96988a65.d.ts +2 -6
- package/select/esm/mobile.js +1 -1
- package/select/esm/presets/index.js +1 -1
- package/select/esm/presets/useSelectWithApply/hook.js +1 -1
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/select/esm/shared.js +1 -1
- package/select/index.js +1 -1
- package/select/mobile-96988a65.d.ts +6 -2
- package/select/mobile.js +1 -1
- package/select/modern/Component.desktop.d.ts +2 -0
- package/select/modern/Component.mobile-f1f15074.d.ts +12 -12
- package/select/modern/Component.mobile.js +1 -1
- package/select/modern/Component.modal.mobile.js +1 -1
- package/select/modern/Component.responsive.js +1 -1
- package/select/modern/index.js +1 -1
- package/select/modern/mobile-96988a65.d.ts +2 -6
- package/select/modern/mobile.js +1 -1
- package/select/modern/presets/index.js +1 -1
- package/select/modern/presets/useSelectWithApply/hook.js +1 -1
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/select/modern/shared.js +1 -1
- package/select/presets/index.js +1 -1
- package/select/presets/useSelectWithApply/hook.js +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/select/shared.js +1 -1
- package/select-with-tags/Component-9211a437.d.ts +1 -1
- package/select-with-tags/Component.desktop-2e2b2125.d.ts +1 -1
- package/select-with-tags/Component.mobile-755fbaa3.d.ts +1 -1
- package/select-with-tags/Component.responsive-3109f463.d.ts +1 -1
- package/select-with-tags/component-50136800.d.ts +6 -6
- package/select-with-tags/cssm/Component-8b2c2707.d.ts +1 -1
- package/select-with-tags/cssm/index-c44170fe.d.ts +1 -1
- package/select-with-tags/esm/Component-8b2c2707.d.ts +1 -1
- package/select-with-tags/esm/Component-9211a437.d.ts +1 -1
- package/select-with-tags/esm/Component.desktop-2e2b2125.d.ts +1 -1
- package/select-with-tags/esm/Component.mobile-755fbaa3.d.ts +1 -1
- package/select-with-tags/esm/Component.responsive-3109f463.d.ts +1 -1
- package/select-with-tags/esm/index-c44170fe.d.ts +1 -1
- package/select-with-tags/modern/Component-8b2c2707.d.ts +1 -1
- package/select-with-tags/modern/index-c44170fe.d.ts +1 -1
- package/table/Component-50136800.d.ts +6 -6
- package/tabs/cssm/Component.desktop-ebda875c.d.ts +6 -0
- package/tabs/cssm/index-ebda875c.d.ts +21 -86
- package/tabs/modern/Component.desktop-ebda875c.d.ts +6 -0
- package/tabs/modern/index-ebda875c.d.ts +21 -86
- package/tag/cssm/components/base-tag/Component.d.ts +1 -1
- package/textarea/esm/Component.d.ts +1 -1
- package/textarea/modern/Component.d.ts +1 -1
- package/themes/compiled/mobile-dark-bluetint.css +559 -559
- package/toast/Component.mobile-7ca84eff.d.ts +6 -0
- package/toast/Component.responsive.d.ts +1 -1
- package/toast/components/base-toast/component.d.ts +1 -1
- package/toast/esm/Component.responsive.d.ts +1 -1
- package/toast/esm/components/base-toast/component.d.ts +1 -1
- package/toast/esm/index-7ca84eff.d.ts +3 -3
- package/toast/index-7ca84eff.d.ts +3 -3
- package/toast/modern/Component.mobile-7ca84eff.d.ts +6 -0
- package/toast/modern/Component.responsive.d.ts +1 -1
- package/toast/modern/components/base-toast/component.d.ts +1 -1
- package/toast/modern/index-7ca84eff.d.ts +3 -3
- package/typography/component.js +2 -2
- package/typography/cssm/title/component.d.ts +1 -1
- 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.d.ts +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/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/text/index.js +1 -1
- package/typography/title/component.js +1 -1
- package/typography/title/index.js +2 -2
- package/typography/title-mobile/component.js +2 -2
- package/typography/title-mobile/index.js +2 -2
- package/typography/title-responsive/component.js +2 -2
- package/typography/title-responsive/index.js +2 -2
- package/calendar/modern/Component.desktop-ebda875c.d.ts +0 -6
- package/calendar-range/modern/utils-848397c5.d.ts +0 -13
- package/custom-picker-button/Component-df3978fd.d.ts +0 -12
- package/custom-picker-button/Component.desktop-4cd3936b.d.ts +0 -49
- package/custom-picker-button/createPaddingStyle-72dda473.d.ts +0 -5
- package/date-range-input/esm/Component-e2b6c730.d.ts +0 -76
- package/date-range-input/esm/desktop-8b5756fe.d.ts +0 -2
- package/date-time-input/esm/Component.mobile-ebda875c.d.ts +0 -6
- package/date-time-input/modern/Component-5684a67d.d.ts +0 -23
- package/date-time-input/modern/Component-e2b6c730.d.ts +0 -76
- package/date-time-input/modern/desktop-8b5756fe.d.ts +0 -2
- package/date-time-input/modern/utils-e0a54580.d.ts +0 -8
- package/input/Component.mobile-ebda875c.d.ts +0 -6
- package/input/cssm/Component.mobile-ebda875c.d.ts +0 -6
- package/input-autocomplete/mobile-06ffd24b.d.ts +0 -5
- package/input-autocomplete/modern/Component-96988a65.d.ts +0 -9
- package/input-autocomplete/utils-1574ad8b.d.ts +0 -29
- package/picker-button/esm/Component-63dec22f.d.ts +0 -167
- package/picker-button/esm/Component.modal.mobile-5e1b8383.d.ts +0 -60
- package/picker-button/esm/createPaddingStyle-72dda473.d.ts +0 -5
- package/picker-button/esm/types-72dda473.d.ts +0 -259
- package/picker-button/esm/utils-1574ad8b.d.ts +0 -29
- package/picker-button/esm/utils-49cc3c24.d.ts +0 -8
- package/select-with-tags/modern/component-50136800.d.ts +0 -44
- package/tabs/cssm/Component.mobile-ebda875c.d.ts +0 -6
- package/tabs/modern/Component.mobile-ebda875c.d.ts +0 -6
- package/toast/Component.desktop-7ca84eff.d.ts +0 -6
- package/toast/modern/Component.desktop-7ca84eff.d.ts +0 -6
- /package/calendar/{cssm/Component.desktop-ebda875c.d.ts → Component.desktop-ebda875c.d.ts} +0 -0
- /package/calendar/{Component-63dec22f.d.ts → cssm/Component-63dec22f.d.ts} +0 -0
- /package/calendar/{Component.mobile-ebda875c.d.ts → cssm/Component.mobile-ebda875c.d.ts} +0 -0
- /package/{input-autocomplete → calendar/modern}/Component-63dec22f.d.ts +0 -0
- /package/{input-autocomplete → calendar/modern}/Component.mobile-ebda875c.d.ts +0 -0
- /package/{date-range-input → calendar-input}/Component-8b5756fe.d.ts +0 -0
- /package/{date-range-input → calendar-input}/Component.responsive-2e2b2125.d.ts +0 -0
- /package/{date-range-input → calendar-input}/cssm/Component-8b5756fe.d.ts +0 -0
- /package/{date-range-input → calendar-input}/cssm/Component.responsive-2e2b2125.d.ts +0 -0
- /package/calendar-input/cssm/{shared-71d94e2b.d.ts → shared-848397c5.d.ts} +0 -0
- /package/{date-time-input/esm → calendar-input/modern}/Component-8b5756fe.d.ts +0 -0
- /package/{date-time-input/esm → calendar-input/modern}/Component.responsive-2e2b2125.d.ts +0 -0
- /package/calendar-input/modern/{shared-71d94e2b.d.ts → shared-848397c5.d.ts} +0 -0
- /package/calendar-input/{shared-71d94e2b.d.ts → shared-848397c5.d.ts} +0 -0
- /package/{calendar-input/Component-5684a67d.d.ts → calendar-range/modern/Component-e2b6c730.d.ts} +0 -0
- /package/calendar-range/modern/{useCalendar-5684a67d.d.ts → useCalendar-71d94e2b.d.ts} +0 -0
- /package/{calendar-input/cssm → calendar-range/modern}/utils-e0a54580.d.ts +0 -0
- /package/calendar-range/modern/{utils-5684a67d.d.ts → utils-e2b6c730.d.ts} +0 -0
- /package/confirmation/{countdown-section-b13f3b39.d.ts → countdown-section-fed12d77.d.ts} +0 -0
- /package/confirmation/{countdown-section-b13f3b39.js → countdown-section-fed12d77.js} +0 -0
- /package/confirmation/esm/{countdown-section-1197a364.d.ts → countdown-section-9f6c08f9.d.ts} +0 -0
- /package/confirmation/esm/{countdown-section-1197a364.js → countdown-section-9f6c08f9.js} +0 -0
- /package/confirmation/modern/{countdown-section-eae4e9ec.d.ts → countdown-section-8e55fbd5.d.ts} +0 -0
- /package/confirmation/modern/{countdown-section-eae4e9ec.js → countdown-section-8e55fbd5.js} +0 -0
- /package/custom-picker-button/{Component.mobile-4cd3936b.d.ts → Component.mobile-d446ae02.d.ts} +0 -0
- /package/custom-picker-button/{modern/component-50136800.d.ts → component-50136800.d.ts} +0 -0
- /package/{intl-phone-input/cssm → custom-picker-button}/desktop-2e2b2125.d.ts +0 -0
- /package/{input-autocomplete/cssm → custom-picker-button/modern}/Component-50136800.d.ts +0 -0
- /package/custom-picker-button/{types-72dda473.d.ts → types-d9f9bbcc.d.ts} +0 -0
- /package/{calendar-input/cssm → date-range-input}/Component-5684a67d.d.ts +0 -0
- /package/{calendar-input → date-range-input}/Component-e2b6c730.d.ts +0 -0
- /package/date-range-input/{esm/Component.desktop-ebda875c.d.ts → Component.desktop-ebda875c.d.ts} +0 -0
- /package/{calendar-input → date-range-input}/Component.responsive-755fbaa3.d.ts +0 -0
- /package/{calendar-input/modern → date-range-input/cssm}/Component-5684a67d.d.ts +0 -0
- /package/{calendar-input → date-range-input}/cssm/Component-e2b6c730.d.ts +0 -0
- /package/{date-time-input/modern → date-range-input/cssm}/Component.desktop-ebda875c.d.ts +0 -0
- /package/{calendar-input → date-range-input}/cssm/Component.responsive-755fbaa3.d.ts +0 -0
- /package/{calendar-input → date-range-input}/cssm/desktop-8b5756fe.d.ts +0 -0
- /package/{calendar-input/modern → date-range-input/cssm}/utils-e0a54580.d.ts +0 -0
- /package/{calendar-input → date-range-input}/desktop-8b5756fe.d.ts +0 -0
- /package/date-range-input/{Component.mobile-ebda875c.d.ts → esm/Component.mobile-ebda875c.d.ts} +0 -0
- /package/{calendar-input/modern/Component.responsive-755fbaa3.d.ts → date-range-input/esm/Component.responsive-2e2b2125.d.ts} +0 -0
- /package/{calendar-input → date-range-input}/utils-e0a54580.d.ts +0 -0
- /package/{date-range-input → date-time-input}/esm/Component-5684a67d.d.ts +0 -0
- /package/{calendar-input/modern → date-time-input/esm}/Component-e2b6c730.d.ts +0 -0
- /package/{select/cssm → date-time-input/esm}/Component.desktop-ebda875c.d.ts +0 -0
- /package/{date-range-input → date-time-input}/esm/Component.responsive-755fbaa3.d.ts +0 -0
- /package/{calendar-input/modern → date-time-input/esm}/desktop-8b5756fe.d.ts +0 -0
- /package/{date-range-input → date-time-input}/esm/utils-e0a54580.d.ts +0 -0
- /package/{date-range-input/cssm → date-time-input/modern}/Component.mobile-ebda875c.d.ts +0 -0
- /package/date-time-input/modern/{Component.responsive-755fbaa3.d.ts → Component.responsive-2e2b2125.d.ts} +0 -0
- /package/gallery/{buttons-2f4a679b.d.ts → buttons-5b37d450.d.ts} +0 -0
- /package/gallery/{buttons-2f4a679b.js → buttons-5b37d450.js} +0 -0
- /package/gallery/esm/{buttons-b1e4ad57.d.ts → buttons-7ba89ae6.d.ts} +0 -0
- /package/gallery/esm/{buttons-b1e4ad57.js → buttons-7ba89ae6.js} +0 -0
- /package/gallery/esm/{slide-e001786d.d.ts → slide-5fdc2385.d.ts} +0 -0
- /package/gallery/esm/{slide-e001786d.js → slide-5fdc2385.js} +0 -0
- /package/gallery/modern/{buttons-2996f117.d.ts → buttons-67214141.d.ts} +0 -0
- /package/gallery/modern/{buttons-2996f117.js → buttons-67214141.js} +0 -0
- /package/gallery/modern/{slide-b6eba657.d.ts → slide-b30acf22.d.ts} +0 -0
- /package/gallery/modern/{slide-b6eba657.js → slide-b30acf22.js} +0 -0
- /package/gallery/{slide-df46da69.d.ts → slide-8fd6374f.d.ts} +0 -0
- /package/gallery/{slide-df46da69.js → slide-8fd6374f.js} +0 -0
- /package/grid/esm/{gutters.module-1c1cf33b.js → gutters.module-f3a98e38.js} +0 -0
- /package/grid/{gutters.module-2e2a7ca2.js → gutters.module-d27c6380.js} +0 -0
- /package/grid/modern/{gutters.module-834cfc1b.js → gutters.module-28d7eaed.js} +0 -0
- /package/{select/esm → input}/Component.desktop-ebda875c.d.ts +0 -0
- /package/{select/modern → input/cssm}/Component.desktop-ebda875c.d.ts +0 -0
- /package/input-autocomplete/{esm/Component-96988a65.d.ts → Component-96988a65.d.ts} +0 -0
- /package/input-autocomplete/{modern/Component-aed0af6e.d.ts → Component-aed0af6e.d.ts} +0 -0
- /package/input-autocomplete/{modern → cssm}/hook-ebda875c.d.ts +0 -0
- /package/input-autocomplete/{modern → cssm}/mobile-45dc17c6.d.ts +0 -0
- /package/{intl-phone-input/cssm/hook-c44170fe.d.ts → input-autocomplete/hook-ebda875c.d.ts} +0 -0
- /package/input-autocomplete/{cssm → modern}/Component-63dec22f.d.ts +0 -0
- /package/input-autocomplete/{Component.modal.mobile-5e1b8383.d.ts → modern/Component.modal.mobile-5e1b8383.d.ts} +0 -0
- /package/input-autocomplete/{cssm → modern}/mobile-06ffd24b.d.ts +0 -0
- /package/input-autocomplete/{cssm → modern}/utils-1574ad8b.d.ts +0 -0
- /package/intl-phone-input/{esm → cssm}/Component.desktop-4cd3936b.d.ts +0 -0
- /package/intl-phone-input/{esm → cssm}/Component.desktop-5e1b8383.d.ts +0 -0
- /package/intl-phone-input/{esm → cssm}/component-50136800.d.ts +0 -0
- /package/intl-phone-input/{cssm → esm}/Component-50136800.d.ts +0 -0
- /package/intl-phone-input/{cssm → esm}/Component.desktop-63dec22f.d.ts +0 -0
- /package/intl-phone-input/{cssm → esm}/Component.desktop-ed17077e.d.ts +0 -0
- /package/{custom-picker-button/desktop-63dec22f.d.ts → intl-phone-input/esm/desktop-2e2b2125.d.ts} +0 -0
- /package/list/{Component-97126071.d.ts → Component-3d45b936.d.ts} +0 -0
- /package/list/{Component-97126071.js → Component-3d45b936.js} +0 -0
- /package/list/esm/{Component-dfbde161.d.ts → Component-a5c6bc96.d.ts} +0 -0
- /package/list/esm/{Component-dfbde161.js → Component-a5c6bc96.js} +0 -0
- /package/list/modern/{Component-b032dada.d.ts → Component-116c4d34.d.ts} +0 -0
- /package/list/modern/{Component-b032dada.js → Component-116c4d34.js} +0 -0
- /package/picker-button/cssm/{component-50136800.d.ts → Component-50136800.d.ts} +0 -0
- /package/{input-autocomplete/esm/component-50136800.d.ts → picker-button/esm/Component-f12ee135.d.ts} +0 -0
- /package/picker-button/esm/{Component.responsive-3109f463.d.ts → Component.responsive-d7e9f69d.d.ts} +0 -0
- /package/{custom-picker-button → picker-button/modern}/Component-50136800.d.ts +0 -0
- /package/pure-cell/{component-8604627d.d.ts → component-b456f95e.d.ts} +0 -0
- /package/pure-cell/{component-8604627d.js → component-b456f95e.js} +0 -0
- /package/pure-cell/esm/{component-63d496d4.d.ts → component-c6360997.d.ts} +0 -0
- /package/pure-cell/esm/{component-63d496d4.js → component-c6360997.js} +0 -0
- /package/pure-cell/modern/{component-90332901.d.ts → component-4573932e.d.ts} +0 -0
- /package/pure-cell/modern/{component-90332901.js → component-4573932e.js} +0 -0
- /package/select/esm/{hook-6b3b9eba.d.ts → hook-7d563fb2.d.ts} +0 -0
- /package/select/esm/{hook-6b3b9eba.js → hook-7d563fb2.js} +0 -0
- /package/select/{hook-71d733f5.d.ts → hook-f268f742.d.ts} +0 -0
- /package/select/{hook-71d733f5.js → hook-f268f742.js} +0 -0
- /package/select/modern/{hook-721ecf1e.d.ts → hook-c8f658eb.d.ts} +0 -0
- /package/select/modern/{hook-721ecf1e.js → hook-c8f658eb.js} +0 -0
- /package/{picker-button/modern/component-50136800.d.ts → select-with-tags/modern/Component-50136800.d.ts} +0 -0
- /package/typography/{colors.module-43260d58.js → colors.module-9a51484c.js} +0 -0
- /package/typography/{common.module-68032073.js → common.module-df49bf94.js} +0 -0
- /package/typography/esm/{colors.module-786a42c1.js → colors.module-152d2f21.js} +0 -0
- /package/typography/esm/{common.module-c9d01ac6.js → common.module-41c5c8e0.js} +0 -0
- /package/typography/modern/{colors.module-4d1dd4b4.js → colors.module-54809efe.js} +0 -0
- /package/typography/modern/{common.module-947d9aed.js → common.module-6884bf64.js} +0 -0
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
* Удаляет форматирование номера телефона
|
|
5
5
|
* @param phone Номер телефона
|
|
6
6
|
*/
|
|
7
|
-
var deleteFormatting = function (phone) {
|
|
7
|
+
var deleteFormatting = function (phone) {
|
|
8
|
+
return phone.replace('+', '').replace(/^7/, '').replace(/\s/g, '').replace(/-/g, '');
|
|
9
|
+
};
|
|
8
10
|
function setCaretPosition(_a) {
|
|
9
11
|
var position = _a.position, inputRef = _a.inputRef;
|
|
10
12
|
window.requestAnimationFrame(function () {
|
|
@@ -1,44 +1,38 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { FC
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
import { BackdropProps } from "./index-ebda875c";
|
|
7
|
-
import { BottomSheetProps } from "./types-72dda473";
|
|
8
|
-
type FooterProps = {
|
|
3
|
+
import { FC } from "react";
|
|
4
|
+
import { BaseButtonProps } from "./typings-9211a437";
|
|
5
|
+
type SpinnerProps = {
|
|
9
6
|
/**
|
|
10
|
-
*
|
|
7
|
+
* Управление видимостью компонента
|
|
11
8
|
*/
|
|
12
|
-
|
|
9
|
+
visible?: boolean;
|
|
13
10
|
/**
|
|
14
|
-
*
|
|
11
|
+
* Размер компонента
|
|
15
12
|
*/
|
|
16
|
-
|
|
13
|
+
size?: "xs" | "s" | "m";
|
|
17
14
|
/**
|
|
18
15
|
* Дополнительный класс
|
|
19
16
|
*/
|
|
20
17
|
className?: string;
|
|
21
|
-
};
|
|
22
|
-
declare const Footer: FC<FooterProps>;
|
|
23
|
-
type HeaderProps = Omit<NavigationBarProps, "view" | "size"> & {
|
|
24
|
-
headerRef: RefObject<HTMLDivElement>;
|
|
25
|
-
headerOffset: number;
|
|
26
|
-
};
|
|
27
|
-
declare const Header: FC<HeaderProps>;
|
|
28
|
-
type SwipeableBackdropProps = BackdropProps & {
|
|
29
18
|
/**
|
|
30
|
-
*
|
|
19
|
+
* Идентификатор компонента в DOM
|
|
31
20
|
*/
|
|
32
|
-
|
|
21
|
+
id?: string;
|
|
33
22
|
/**
|
|
34
|
-
*
|
|
23
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
35
24
|
*/
|
|
36
|
-
|
|
25
|
+
dataTestId?: string;
|
|
37
26
|
/**
|
|
38
|
-
*
|
|
27
|
+
* Палитра, в контексте которой используется спиннер
|
|
39
28
|
*/
|
|
40
|
-
|
|
29
|
+
colors?: "default" | "inverted";
|
|
41
30
|
};
|
|
42
|
-
declare const
|
|
43
|
-
|
|
44
|
-
|
|
31
|
+
declare const Spinner: FC<SpinnerProps>;
|
|
32
|
+
/**
|
|
33
|
+
* Минимальное время отображения лоадера - 500мс,
|
|
34
|
+
* чтобы при быстрых ответах от сервера кнопка не «моргала».
|
|
35
|
+
*/
|
|
36
|
+
declare const LOADER_MIN_DISPLAY_INTERVAL = 500;
|
|
37
|
+
declare const BaseButton: React.ForwardRefExoticComponent<BaseButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
38
|
+
export { SpinnerProps, Spinner, LOADER_MIN_DISPLAY_INTERVAL, BaseButton };
|
|
@@ -1,72 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
type SelectMobileProps = Omit<BaseSelectProps, 'Checkmark' | 'onScroll'> & {
|
|
7
|
-
/**
|
|
8
|
-
* Футер
|
|
9
|
-
* @deprecated Используйте bottomSheetProps.actionButton
|
|
10
|
-
*/
|
|
11
|
-
footer?: ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* Будет ли свайпаться шторка
|
|
14
|
-
* @deprecated Используйте bottomSheetProps.swipeable
|
|
15
|
-
*/
|
|
16
|
-
swipeable?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Отображать в BottomSheet
|
|
19
|
-
*/
|
|
20
|
-
isBottomSheet?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Дополнительные пропсы шторки
|
|
23
|
-
*/
|
|
24
|
-
bottomSheetProps?: Partial<BottomSheetProps>;
|
|
25
|
-
/**
|
|
26
|
-
* Дополнительные пропсы модалки
|
|
27
|
-
*/
|
|
28
|
-
modalProps?: Partial<React.ComponentProps<typeof ModalMobile>>;
|
|
29
|
-
/**
|
|
30
|
-
* Дополнительные пропсы шапки модалки
|
|
31
|
-
*/
|
|
32
|
-
modalHeaderProps?: Partial<React.ComponentProps<typeof ModalMobile.Header>>;
|
|
33
|
-
/**
|
|
34
|
-
* Дополнительные пропсы футера модалки
|
|
35
|
-
*/
|
|
36
|
-
modalFooterProps?: Partial<React.ComponentProps<typeof ModalMobile.Footer>>;
|
|
37
|
-
};
|
|
38
|
-
declare const BaseSelectMobile: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "onScroll" | "Checkmark"> & {
|
|
39
|
-
/**
|
|
40
|
-
* Футер
|
|
41
|
-
* @deprecated Используйте bottomSheetProps.actionButton
|
|
42
|
-
*/
|
|
43
|
-
footer?: ReactNode;
|
|
44
|
-
/**
|
|
45
|
-
* Будет ли свайпаться шторка
|
|
46
|
-
* @deprecated Используйте bottomSheetProps.swipeable
|
|
47
|
-
*/
|
|
48
|
-
swipeable?: boolean | undefined;
|
|
49
|
-
/**
|
|
50
|
-
* Отображать в BottomSheet
|
|
51
|
-
*/
|
|
52
|
-
isBottomSheet?: boolean | undefined;
|
|
53
|
-
/**
|
|
54
|
-
* Дополнительные пропсы шторки
|
|
55
|
-
*/
|
|
56
|
-
bottomSheetProps?: Partial<BottomSheetProps> | undefined;
|
|
57
|
-
/**
|
|
58
|
-
* Дополнительные пропсы модалки
|
|
59
|
-
*/
|
|
60
|
-
modalProps?: Partial<ModalMobileProps & React.RefAttributes<HTMLDivElement>> | undefined;
|
|
61
|
-
/**
|
|
62
|
-
* Дополнительные пропсы шапки модалки
|
|
63
|
-
*/
|
|
64
|
-
modalHeaderProps?: Partial<import("./Component-c76d6398").HeaderProps> | undefined;
|
|
65
|
-
/**
|
|
66
|
-
* Дополнительные пропсы футера модалки
|
|
67
|
-
*/
|
|
68
|
-
modalFooterProps?: Partial<import("./Component.mobile-f1f15074").FooterProps> | undefined;
|
|
69
|
-
} & React.RefAttributes<unknown>>;
|
|
70
|
-
export * from "./Component.mobile-f1f15074";
|
|
71
|
-
export { ModalMobileProps } from "./typings-bdb4c6b9";
|
|
72
|
-
export { SelectMobileProps, BaseSelectMobile };
|
|
3
|
+
import { CheckmarkProps } from "./typings-5e1b8383";
|
|
4
|
+
declare const BaseCheckmark: ({ selected, disabled, className, multiple, }: CheckmarkProps) => React.JSX.Element;
|
|
5
|
+
export { BaseCheckmark };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BackgroundColorType, GraphicColorType } from "./index-72dda473";
|
|
4
|
+
type IconColorType = Extract<GraphicColorType, 'positive' | 'attention' | 'link' | 'negative' | 'tertiary' | 'secondary' | 'primary'>;
|
|
5
|
+
type BadgeProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Дополнительный класс
|
|
8
|
+
*/
|
|
9
|
+
className?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Вид компонента
|
|
12
|
+
*/
|
|
13
|
+
view: 'icon' | 'count';
|
|
14
|
+
/**
|
|
15
|
+
* Размер компонента (только для view=icon)
|
|
16
|
+
* //deprecated(используйте height для view=count )
|
|
17
|
+
*/
|
|
18
|
+
size?: 's' | 'm' | 'l' | 'xl';
|
|
19
|
+
/**
|
|
20
|
+
* Видимость белой обводки вокруг иконки
|
|
21
|
+
*/
|
|
22
|
+
visibleIconOutline?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Видимость цветной обводки вокруг иконки (только для view=icon)
|
|
25
|
+
*/
|
|
26
|
+
visibleColorOutline?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Контент компонента
|
|
29
|
+
*/
|
|
30
|
+
content?: React.ReactElement | number;
|
|
31
|
+
/**
|
|
32
|
+
* Высота компонента, min = 16; max = 48 (только для view=count)
|
|
33
|
+
*/
|
|
34
|
+
height?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Цветовое оформление бейджа при view='count'
|
|
37
|
+
*/
|
|
38
|
+
color?: Extract<BackgroundColorType, 'accent' | 'primary' | 'specialbg-secondary-transparent'>;
|
|
39
|
+
/**
|
|
40
|
+
* Цветовое оформление бейджа при view='icon'
|
|
41
|
+
*/
|
|
42
|
+
iconColor?: IconColorType;
|
|
43
|
+
/**
|
|
44
|
+
* Цвет подложки под иконкой
|
|
45
|
+
*/
|
|
46
|
+
iconUnderlayColor?: Extract<GraphicColorType, 'primary' | 'static-light'>;
|
|
47
|
+
/**
|
|
48
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
49
|
+
*/
|
|
50
|
+
dataTestId?: string;
|
|
51
|
+
};
|
|
52
|
+
declare const Badge: ({ className, size, view, visibleIconOutline, visibleColorOutline, content, height, iconColor, color, iconUnderlayColor, dataTestId, }: BadgeProps) => React.JSX.Element;
|
|
53
|
+
export { IconColorType, BadgeProps, Badge };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { CheckboxProps } from "./index-ebda875c";
|
|
4
|
+
type HeaderProps = {
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
indeterminate?: boolean;
|
|
7
|
+
onChange?: CheckboxProps['onChange'];
|
|
8
|
+
mobile?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const Header: React.FC<HeaderProps>;
|
|
11
|
+
export { HeaderProps, Header };
|
|
@@ -1,12 +1,101 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/// <reference types="react-transition-group" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
import { CSSProperties, MutableRefObject, ReactNode } from "react";
|
|
5
|
+
import { CSSTransitionProps } from 'react-transition-group/CSSTransition';
|
|
6
|
+
import { BasePlacement, VariationPlacement } from '@popperjs/core';
|
|
7
|
+
type RefElement = HTMLElement | null;
|
|
8
|
+
type Position = BasePlacement | VariationPlacement;
|
|
9
|
+
type PopoverProps = {
|
|
10
|
+
/**
|
|
11
|
+
* Управление состоянием поповера (открыт/закрыт)
|
|
12
|
+
*/
|
|
13
|
+
open: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Элемент, относительного которого появляется поповер
|
|
16
|
+
*/
|
|
17
|
+
anchorElement: RefElement;
|
|
18
|
+
/**
|
|
19
|
+
* Использовать ширину родительского элемента
|
|
20
|
+
*/
|
|
21
|
+
useAnchorWidth?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Позиционирование поповера
|
|
24
|
+
*/
|
|
25
|
+
position?: Position;
|
|
26
|
+
/**
|
|
27
|
+
* Запрещает поповеру менять свою позицию.
|
|
28
|
+
* Например, если места снизу недостаточно,то он все равно будет показан снизу
|
|
29
|
+
*/
|
|
30
|
+
preventFlip?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Запрещает поповеру менять свою позицию, если он не влезает в видимую область.
|
|
33
|
+
*/
|
|
34
|
+
preventOverflow?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Позволяет поповеру подствраивать свою высоту под границы экрана, если из-за величины контента он выходит за рамки видимой области экрана
|
|
37
|
+
*/
|
|
38
|
+
availableHeight?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Если `true`, будет отрисована стрелочка
|
|
41
|
+
*/
|
|
42
|
+
withArrow?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Смещение поповера.
|
|
45
|
+
* Если позиционирование top, bottom, то [x, y].
|
|
46
|
+
* Если позиционирование left, right то [y, x].
|
|
47
|
+
*/
|
|
48
|
+
offset?: [number, number];
|
|
49
|
+
/**
|
|
50
|
+
* Дополнительный класс для поповера
|
|
51
|
+
*/
|
|
52
|
+
popperClassName?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Дополнительный класс для стрелочки
|
|
55
|
+
*/
|
|
56
|
+
arrowClassName?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Функция, возвращающая контейнер, в который будет рендериться поповер
|
|
59
|
+
*/
|
|
60
|
+
getPortalContainer?: () => HTMLElement;
|
|
61
|
+
/**
|
|
62
|
+
* CSSTransitionProps, прокидываются в компонент CSSTransitionProps.
|
|
63
|
+
*/
|
|
64
|
+
transition?: CSSTransitionProps;
|
|
65
|
+
/**
|
|
66
|
+
* Выставляет кастомное свойство transition-duration
|
|
67
|
+
*/
|
|
68
|
+
transitionDuration?: CSSProperties['transitionDuration'];
|
|
69
|
+
/**
|
|
70
|
+
* Рендерит компонент, обернутый в Transition
|
|
71
|
+
*/
|
|
72
|
+
withTransition?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
75
|
+
*/
|
|
76
|
+
dataTestId?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Хранит функцию, с помощью которой можно обновить положение компонента
|
|
79
|
+
*/
|
|
80
|
+
update?: MutableRefObject<() => void>;
|
|
81
|
+
/**
|
|
82
|
+
* Дополнительный класс
|
|
83
|
+
*/
|
|
84
|
+
className?: string;
|
|
85
|
+
/**
|
|
86
|
+
* z-index компонента
|
|
87
|
+
*/
|
|
88
|
+
zIndex?: number;
|
|
89
|
+
/**
|
|
90
|
+
* Если поповер не помещается в переданной позиции (position), он попробует открыться в другой позиции,
|
|
91
|
+
* по очереди для каждой позиции из этого списка.
|
|
92
|
+
* Если не передавать, то поповер открывается в противоположном направлении от переданного position.
|
|
93
|
+
*/
|
|
94
|
+
fallbackPlacements?: Position[];
|
|
95
|
+
/**
|
|
96
|
+
* Контент
|
|
97
|
+
*/
|
|
98
|
+
children?: ReactNode;
|
|
10
99
|
};
|
|
11
|
-
declare const
|
|
12
|
-
export {
|
|
100
|
+
declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<HTMLDivElement>>;
|
|
101
|
+
export { Position, PopoverProps, Popover };
|
|
@@ -25,7 +25,7 @@ type PickerButtonDesktopProps = Omit<BaseSelectProps, 'placeholder' | 'Arrow' |
|
|
|
25
25
|
*/
|
|
26
26
|
showArrow?: boolean;
|
|
27
27
|
};
|
|
28
|
-
declare const PickerButtonDesktop: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "
|
|
28
|
+
declare const PickerButtonDesktop: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "Arrow" | "autocomplete" | "allowUnselect" | "closeOnSelect"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
|
|
29
29
|
options: Array<BaseSelectProps['options'][0] & {
|
|
30
30
|
/**
|
|
31
31
|
* Иконка, отображающаяся слева от текстового представления пункта
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BaseInputProps } from "./index-ebda875c";
|
|
4
|
+
type InputMobileProps = Omit<BaseInputProps, 'FormControlComponent' | 'colorStyles'>;
|
|
5
|
+
declare const InputMobile: React.ForwardRefExoticComponent<InputMobileProps & React.RefAttributes<HTMLInputElement>>;
|
|
6
|
+
export { InputMobileProps, InputMobile };
|
|
@@ -9,7 +9,7 @@ type PickerButtonMobileProps = Omit<PickerButtonDesktopProps, 'OptionsList' | 'C
|
|
|
9
9
|
*/
|
|
10
10
|
breakpoint?: number;
|
|
11
11
|
};
|
|
12
|
-
declare const PickerButtonMobile: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "onScroll" | "
|
|
12
|
+
declare const PickerButtonMobile: React.ForwardRefExoticComponent<Omit<PickerButtonDesktopProps, "onScroll" | "Checkmark" | "OptionsList"> & AdditionalMobileProps & {
|
|
13
13
|
/**
|
|
14
14
|
* Контрольная точка для кнопки, с нее начинается desktop версия
|
|
15
15
|
* @default 1024
|
|
@@ -11,7 +11,7 @@ type PickerButtonResponsiveProps = PickerButtonDesktopProps & AdditionalMobilePr
|
|
|
11
11
|
*/
|
|
12
12
|
breakpoint?: number;
|
|
13
13
|
};
|
|
14
|
-
declare const PickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("./shared-4cd3936b").BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "
|
|
14
|
+
declare const PickerButtonResponsive: React.ForwardRefExoticComponent<Omit<import("./shared-4cd3936b").BaseSelectProps, "size" | "placeholder" | "onFocus" | "selected" | "multiple" | "hint" | "options" | "Arrow" | "autocomplete" | "allowUnselect" | "closeOnSelect"> & Pick<ButtonProps, "view" | "leftAddons" | "rightAddons" | "loading"> & {
|
|
15
15
|
options: ((import("./shared-4cd3936b").OptionShape | import("./shared-4cd3936b").GroupShape) & {
|
|
16
16
|
icon?: React.FC<React.SVGProps<SVGSVGElement>> | undefined;
|
|
17
17
|
})[];
|
|
@@ -41,9 +41,9 @@ declare function useSelectWithApply({ options, selected, onChange, OptionsList,
|
|
|
41
41
|
onClose?: (() => void) | undefined;
|
|
42
42
|
selectedDraft?: OptionShape[] | undefined;
|
|
43
43
|
OptionsList?: import("react").FC<import("./typings-5e1b8383").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
44
|
-
Footer?: import("react").FC<import("./Component-
|
|
45
|
-
Header?: import("react").FC<import("./Component-
|
|
46
|
-
headerProps?: import("./Component-
|
|
44
|
+
Footer?: import("react").FC<import("./Component-ebda875c").FooterProps> | undefined;
|
|
45
|
+
Header?: import("react").FC<import("./Component-aed0af6e").HeaderProps> | undefined;
|
|
46
|
+
headerProps?: import("./Component-aed0af6e").HeaderProps | undefined; /**
|
|
47
47
|
* Показывать кнопку очистки
|
|
48
48
|
*/
|
|
49
49
|
showHeaderWithSelectAll?: boolean | undefined;
|
|
@@ -71,5 +71,5 @@ declare function useSelectWithApply({ options, selected, onChange, OptionsList,
|
|
|
71
71
|
onChange: (payload: import("./typings-5e1b8383").BaseSelectChangePayload) => void;
|
|
72
72
|
selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
|
|
73
73
|
};
|
|
74
|
-
export * from "./Component-
|
|
74
|
+
export * from "./Component-ebda875c";
|
|
75
75
|
export { UseSelectWithApplyProps, SELECT_ALL_KEY, useSelectWithApply };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { OptionProps, OptionShape } from "./typings-5e1b8383";
|
|
4
|
+
type OptionsFetcherResponse = {
|
|
5
|
+
options: OptionShape[];
|
|
6
|
+
hasMore: boolean;
|
|
7
|
+
};
|
|
8
|
+
type useLazyLoadingProps = {
|
|
9
|
+
/** Количество элементов на "странице" */
|
|
10
|
+
limit?: number;
|
|
11
|
+
/** Начальный номер "страницы" */
|
|
12
|
+
initialOffset?: number;
|
|
13
|
+
/** Скелетон загружаемых элементов */
|
|
14
|
+
skeleton?: React.ReactNode;
|
|
15
|
+
/** Компонент пункта меню */
|
|
16
|
+
Option?: React.FC<OptionProps>;
|
|
17
|
+
/**
|
|
18
|
+
* Функция-загрузчик опций.
|
|
19
|
+
* @param offset - текущая страница
|
|
20
|
+
* @param limit - количество элементов на странице
|
|
21
|
+
* @param queryString - строчные данные, пробрасываемые для поиска из кастомного инпута, расположенного в заголовке OptionsList
|
|
22
|
+
* @returns Promise<{
|
|
23
|
+
* options - список опций следующей "страницы". Они аппендятся к предыдущим
|
|
24
|
+
* hasMore - указывает, есть ли еще незагруженные элементы (в случае false перестает загружать "следующую страницу")
|
|
25
|
+
* }>
|
|
26
|
+
*/
|
|
27
|
+
optionsFetcher(offset: number, limit: number, queryString?: string): Promise<OptionsFetcherResponse>;
|
|
28
|
+
};
|
|
29
|
+
declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton, Option, }: useLazyLoadingProps): {
|
|
30
|
+
optionsProps: {
|
|
31
|
+
Option: (props: OptionProps) => React.JSX.Element;
|
|
32
|
+
options: OptionShape[];
|
|
33
|
+
optionsListProps: {
|
|
34
|
+
ref: React.RefObject<HTMLDivElement>;
|
|
35
|
+
inputProps: {
|
|
36
|
+
onChange: (event: React.ChangeEvent<HTMLInputElement>, payload: {
|
|
37
|
+
value: string;
|
|
38
|
+
}) => void;
|
|
39
|
+
value: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
onOpen: (payload: {
|
|
43
|
+
open?: boolean;
|
|
44
|
+
}) => void;
|
|
45
|
+
};
|
|
46
|
+
reset: () => void;
|
|
47
|
+
};
|
|
48
|
+
export { useLazyLoading };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { PaddingType } from "./index-72dda473";
|
|
1
4
|
declare const isClient: () => boolean;
|
|
2
5
|
declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
|
|
6
|
+
declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
|
|
3
7
|
declare function easeInOutQuad(x: number): number;
|
|
4
8
|
declare const easingFns: {
|
|
5
9
|
easeInOutQuad: typeof easeInOutQuad;
|
|
6
10
|
};
|
|
7
|
-
export { isClient, getDataTestId, easingFns };
|
|
8
|
-
export * from "./createPaddingStyle-72dda473";
|
|
11
|
+
export { isClient, getDataTestId, createPaddingStyle, easingFns };
|
|
@@ -1,2 +1,180 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react-transition-group" />
|
|
3
|
+
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { FC, KeyboardEvent, MouseEvent, MutableRefObject, ReactNode, Ref } from "react";
|
|
6
|
+
import { TransitionProps } from "react-transition-group/Transition";
|
|
7
|
+
import { BackdropProps, PortalProps } from "./index-ebda875c";
|
|
8
|
+
type BaseModalProps = {
|
|
9
|
+
/**
|
|
10
|
+
* Контент
|
|
11
|
+
*/
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Компонент бэкдропа
|
|
15
|
+
*/
|
|
16
|
+
Backdrop?: FC<BackdropProps>;
|
|
17
|
+
/**
|
|
18
|
+
* Свойства для Бэкдропа
|
|
19
|
+
*/
|
|
20
|
+
backdropProps?: Partial<BackdropProps> & Record<string, unknown>;
|
|
21
|
+
/**
|
|
22
|
+
* Нода, компонент или функция возвращающая их
|
|
23
|
+
*
|
|
24
|
+
* Контейнер к которому будут добавляться порталы
|
|
25
|
+
*/
|
|
26
|
+
container?: PortalProps["getPortalContainer"];
|
|
27
|
+
/**
|
|
28
|
+
* Отключает автоматический перевод фокуса на модалку при открытии
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
disableAutoFocus?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Отключает ловушку фокуса
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
disableFocusLock?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Отключает восстановление фокуса на предыдущем элементе после закрытия модалки
|
|
39
|
+
* @default false
|
|
40
|
+
*/
|
|
41
|
+
disableRestoreFocus?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Отключает вызов `callback` при нажатии Escape
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
46
|
+
disableEscapeKeyDown?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Отключает вызов `callback` при клике на бэкдроп
|
|
49
|
+
* @default false
|
|
50
|
+
*/
|
|
51
|
+
disableBackdropClick?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Отключает блокировку скролла при открытии модального окна
|
|
54
|
+
* @default false
|
|
55
|
+
*/
|
|
56
|
+
disableBlockingScroll?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Содержимое модалки всегда в DOM
|
|
59
|
+
* @default false
|
|
60
|
+
*/
|
|
61
|
+
keepMounted?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Управление видимостью модалки
|
|
64
|
+
*/
|
|
65
|
+
open: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Дополнительный класс
|
|
68
|
+
*/
|
|
69
|
+
className?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Дополнительный класс
|
|
72
|
+
*/
|
|
73
|
+
contentClassName?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Дополнительные пропсы на обертку контента
|
|
76
|
+
*/
|
|
77
|
+
contentProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
78
|
+
/**
|
|
79
|
+
* Дополнительные пропсы на компонентную обертку контента
|
|
80
|
+
*/
|
|
81
|
+
componentDivProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
82
|
+
/**
|
|
83
|
+
* Дополнительный класс для обертки (Modal)
|
|
84
|
+
*/
|
|
85
|
+
wrapperClassName?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Обработчик скролла контента
|
|
88
|
+
*/
|
|
89
|
+
scrollHandler?: "wrapper" | "content" | MutableRefObject<HTMLDivElement | null>;
|
|
90
|
+
/**
|
|
91
|
+
* Пропсы для анимации (CSSTransition)
|
|
92
|
+
*/
|
|
93
|
+
transitionProps?: Partial<TransitionProps>;
|
|
94
|
+
/**
|
|
95
|
+
* Рендерить ли в контейнер через портал.
|
|
96
|
+
* @default true
|
|
97
|
+
*/
|
|
98
|
+
usePortal?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Обработчик события нажатия на бэкдроп
|
|
101
|
+
*/
|
|
102
|
+
onBackdropClick?: (event: MouseEvent) => void;
|
|
103
|
+
/**
|
|
104
|
+
* Обработчик события нажатия на Escape
|
|
105
|
+
*
|
|
106
|
+
* Если `disableEscapeKeyDown` - false и модальное окно в фокусе
|
|
107
|
+
*/
|
|
108
|
+
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
109
|
+
/**
|
|
110
|
+
* Обработчик закрытия
|
|
111
|
+
*/
|
|
112
|
+
onClose?: (event: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>, reason?: "backdropClick" | "escapeKeyDown" | "closerClick") => void;
|
|
113
|
+
/**
|
|
114
|
+
* Обработчик события onEntered компонента Transition
|
|
115
|
+
*/
|
|
116
|
+
onMount?: () => void;
|
|
117
|
+
/**
|
|
118
|
+
* Обработчик события onExited компонента Transition
|
|
119
|
+
*/
|
|
120
|
+
onUnmount?: () => void;
|
|
121
|
+
/**
|
|
122
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
123
|
+
*/
|
|
124
|
+
dataTestId?: string;
|
|
125
|
+
/**
|
|
126
|
+
* z-index компонента
|
|
127
|
+
*/
|
|
128
|
+
zIndex?: number;
|
|
129
|
+
/**
|
|
130
|
+
* Реф, который должен быть установлен компонентной области
|
|
131
|
+
*/
|
|
132
|
+
componentRef?: MutableRefObject<HTMLDivElement | null>;
|
|
133
|
+
};
|
|
134
|
+
type BaseModalContext = {
|
|
135
|
+
parentRef: React.RefObject<HTMLDivElement>;
|
|
136
|
+
componentRef: React.RefObject<HTMLDivElement>;
|
|
137
|
+
hasFooter?: boolean;
|
|
138
|
+
hasHeader?: boolean;
|
|
139
|
+
hasScroll?: boolean;
|
|
140
|
+
headerHighlighted?: boolean;
|
|
141
|
+
footerHighlighted?: boolean;
|
|
142
|
+
headerOffset?: number;
|
|
143
|
+
setHeaderOffset: (offset: number) => void;
|
|
144
|
+
contentRef: Ref<HTMLElement>;
|
|
145
|
+
setHasHeader: (exists: boolean) => void;
|
|
146
|
+
setHasFooter: (exists: boolean) => void;
|
|
147
|
+
onClose: Required<BaseModalProps>["onClose"];
|
|
148
|
+
};
|
|
149
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
150
|
+
declare const BaseModalContext: React.Context<BaseModalContext>;
|
|
151
|
+
declare const BaseModal: React.ForwardRefExoticComponent<BaseModalProps & React.RefAttributes<HTMLDivElement>>;
|
|
152
|
+
declare function isScrolledToTop(target: HTMLElement): boolean;
|
|
153
|
+
declare function isScrolledToBottom(target: HTMLElement): boolean;
|
|
154
|
+
declare function hasScrollbar(target: HTMLElement): boolean;
|
|
155
|
+
declare const getScrollbarSize: () => number;
|
|
156
|
+
declare const restoreContainerStyles: (container: HTMLElement) => void;
|
|
157
|
+
declare const handleContainer: (container?: HTMLElement) => void;
|
|
158
|
+
type SavedStyle = {
|
|
159
|
+
value: string;
|
|
160
|
+
key: string;
|
|
161
|
+
el: HTMLElement;
|
|
162
|
+
};
|
|
163
|
+
type RestoreStyle = {
|
|
164
|
+
container: HTMLElement;
|
|
165
|
+
modals: number;
|
|
166
|
+
styles: SavedStyle[];
|
|
167
|
+
};
|
|
168
|
+
declare class ModalStore {
|
|
169
|
+
private readonly restoreStyles;
|
|
170
|
+
constructor();
|
|
171
|
+
getRestoreStyles: () => RestoreStyle[];
|
|
172
|
+
}
|
|
173
|
+
declare const getModalStore: () => ModalStore;
|
|
174
|
+
declare class GlobalStore {
|
|
175
|
+
private readonly modalStore;
|
|
176
|
+
constructor();
|
|
177
|
+
getModalStore: () => ModalStore;
|
|
178
|
+
}
|
|
179
|
+
export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, getScrollbarSize, restoreContainerStyles, handleContainer, getModalStore, GlobalStore };
|
|
180
|
+
export type { SavedStyle };
|