@alfalab/core-components 42.13.0-beta.0 → 42.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bottom-sheet/component.js +3 -1
- package/bottom-sheet/cssm/component.js +3 -1
- package/bottom-sheet/esm/component.js +3 -1
- package/bottom-sheet/modern/component.js +3 -1
- package/calendar/Component-10db897e.d.ts +3 -183
- package/{picker-button/cssm → calendar}/Component-69921c40.d.ts +1 -1
- package/calendar-input/Component.desktop.d.ts +4 -0
- package/calendar-input/Component.desktop.js +4 -0
- package/calendar-input/Component.mobile.d.ts +4 -0
- package/calendar-input/Component.mobile.js +4 -0
- package/calendar-input/Component.responsive.d.ts +4 -0
- package/calendar-input/Component.responsive.js +4 -0
- package/calendar-input/cssm/Component.desktop.d.ts +4 -0
- package/calendar-input/cssm/Component.desktop.js +4 -0
- package/calendar-input/cssm/Component.mobile.d.ts +4 -0
- package/calendar-input/cssm/Component.mobile.js +4 -0
- package/calendar-input/cssm/Component.responsive.d.ts +4 -0
- package/calendar-input/cssm/Component.responsive.js +4 -0
- package/calendar-input/esm/Component.desktop.d.ts +4 -0
- package/calendar-input/esm/Component.desktop.js +4 -0
- package/calendar-input/esm/Component.mobile.d.ts +4 -0
- package/calendar-input/esm/Component.mobile.js +4 -0
- package/calendar-input/esm/Component.responsive.d.ts +4 -0
- package/calendar-input/esm/Component.responsive.js +4 -0
- package/calendar-input/modern/Component.desktop.d.ts +4 -0
- package/calendar-input/modern/Component.desktop.js +4 -0
- package/calendar-input/modern/Component.mobile.d.ts +4 -0
- package/calendar-input/modern/Component.mobile.js +4 -0
- package/calendar-input/modern/Component.responsive.d.ts +4 -0
- package/calendar-input/modern/Component.responsive.js +4 -0
- package/calendar-range/esm/utils.js +3 -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/confirmation-v1/component.d.ts +1 -0
- package/confirmation-v1/component.js +1 -0
- package/confirmation-v1/cssm/component.d.ts +1 -0
- package/confirmation-v1/cssm/component.js +1 -0
- package/confirmation-v1/esm/component.d.ts +1 -0
- package/confirmation-v1/esm/component.js +1 -0
- package/confirmation-v1/modern/component.d.ts +1 -0
- package/confirmation-v1/modern/component.js +1 -0
- package/custom-picker-button/Component-0f4b9bed.d.ts +4 -21
- package/custom-picker-button/Component-10db897e.d.ts +265 -41
- package/custom-picker-button/Component-ebda875c.d.ts +98 -9
- package/custom-picker-button/Component.desktop-4cd3936b.d.ts +49 -0
- package/custom-picker-button/Component.desktop-785df74d.d.ts +1 -1
- package/custom-picker-button/Component.mobile-d7e9f69d.d.ts +1 -1
- package/custom-picker-button/Component.mobile.d.ts +9 -1
- package/custom-picker-button/desktop-d446ae02.d.ts +2 -39
- package/custom-picker-button/hook-8abfea97.d.ts +4 -4
- package/custom-picker-button/index-89f0cb07.d.ts +2 -0
- package/custom-picker-button/index-bdb4c6b9.d.ts +180 -2
- package/custom-picker-button/index-c44170fe.d.ts +2 -17
- package/custom-picker-button/index-ebda875c.d.ts +200 -18
- package/custom-picker-button/index-f12ee135.d.ts +324 -3
- package/custom-picker-button/shared-4cd3936b.d.ts +1 -60
- package/date-input/Component.d.ts +4 -0
- package/date-input/Component.js +4 -0
- package/date-input/cssm/Component.d.ts +4 -0
- package/date-input/cssm/Component.js +4 -0
- package/date-input/esm/Component.d.ts +4 -0
- package/date-input/esm/Component.js +4 -0
- package/date-input/modern/Component.d.ts +4 -0
- package/date-input/modern/Component.js +4 -0
- package/date-range-input/Component-10db897e.d.ts +295 -4
- package/date-range-input/Component-5684a67d.d.ts +23 -0
- package/date-range-input/Component-69921c40.d.ts +12 -172
- package/date-range-input/Component-e2b6c730.d.ts +76 -0
- package/date-range-input/Component.desktop-b5b4c59f.d.ts +5 -72
- package/date-range-input/Component.desktop-ebda875c.d.ts +7 -0
- package/date-range-input/Component.desktop.d.ts +4 -0
- package/date-range-input/Component.desktop.js +4 -0
- package/date-range-input/Component.mobile.d.ts +4 -0
- package/date-range-input/Component.mobile.js +4 -0
- package/date-range-input/Component.responsive.d.ts +4 -0
- package/date-range-input/Component.responsive.js +4 -0
- package/date-range-input/components/date-range-input/Component.d.ts +1 -1
- package/date-range-input/cssm/Component-10db897e.d.ts +295 -4
- package/date-range-input/cssm/Component-5684a67d.d.ts +23 -0
- package/date-range-input/cssm/Component-69921c40.d.ts +12 -172
- package/date-range-input/cssm/Component-e2b6c730.d.ts +76 -0
- package/date-range-input/cssm/Component.desktop-b5b4c59f.d.ts +5 -72
- package/date-range-input/cssm/Component.desktop-ebda875c.d.ts +7 -0
- package/date-range-input/cssm/Component.desktop.d.ts +4 -0
- package/date-range-input/cssm/Component.desktop.js +4 -0
- package/date-range-input/cssm/Component.mobile.d.ts +4 -0
- package/date-range-input/cssm/Component.mobile.js +4 -0
- package/{custom-picker-button/index-8b2c2707.d.ts → date-range-input/cssm/Component.responsive-16b1285a.d.ts} +1 -2
- package/date-range-input/cssm/Component.responsive.d.ts +4 -0
- package/date-range-input/cssm/Component.responsive.js +4 -0
- package/date-range-input/cssm/components/date-range-input/Component.d.ts +1 -1
- package/{intl-phone-input/desktop-69921c40.d.ts → date-range-input/cssm/desktop-89f0cb07.d.ts} +1 -1
- package/date-range-input/cssm/index-89f0cb07.d.ts +1 -1
- package/date-range-input/cssm/index-ebda875c.d.ts +1 -34
- package/date-range-input/cssm/index-f034f741.d.ts +2 -80
- package/date-range-input/cssm/mobile-c219f8ca.d.ts +368 -1
- package/date-range-input/cssm/utils-e0a54580.d.ts +8 -0
- package/date-range-input/{desktop-69921c40.d.ts → desktop-89f0cb07.d.ts} +1 -1
- package/date-range-input/esm/Component.desktop.d.ts +4 -0
- package/date-range-input/esm/Component.desktop.js +4 -0
- package/date-range-input/esm/Component.mobile.d.ts +4 -0
- package/date-range-input/esm/Component.mobile.js +4 -0
- package/date-range-input/esm/Component.responsive.d.ts +4 -0
- package/date-range-input/esm/Component.responsive.js +4 -0
- package/date-range-input/index-89f0cb07.d.ts +1 -1
- package/date-range-input/index-ebda875c.d.ts +1 -34
- package/date-range-input/index-f034f741.d.ts +2 -80
- package/date-range-input/mobile-c219f8ca.d.ts +368 -1
- package/date-range-input/modern/Component.desktop.d.ts +4 -0
- package/date-range-input/modern/Component.desktop.js +4 -0
- package/date-range-input/modern/Component.mobile.d.ts +4 -0
- package/date-range-input/modern/Component.mobile.js +4 -0
- package/date-range-input/modern/Component.responsive.d.ts +4 -0
- package/date-range-input/modern/Component.responsive.js +4 -0
- package/date-range-input/utils-e0a54580.d.ts +8 -0
- package/date-time-input/Component.desktop.d.ts +4 -0
- package/date-time-input/Component.desktop.js +4 -0
- package/date-time-input/cssm/Component.desktop.d.ts +4 -0
- package/date-time-input/cssm/Component.desktop.js +4 -0
- package/date-time-input/esm/Component.desktop.d.ts +4 -0
- package/date-time-input/esm/Component.desktop.js +4 -0
- package/date-time-input/modern/Component.desktop.d.ts +4 -0
- package/date-time-input/modern/Component.desktop.js +4 -0
- 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/intl-phone-input/Component-0f4b9bed.d.ts +18 -96
- package/intl-phone-input/Component-10db897e.d.ts +99 -5
- package/intl-phone-input/Component-4cd3936b.d.ts +1 -1
- package/intl-phone-input/Component-c44170fe.d.ts +13 -0
- package/intl-phone-input/{Component.desktop-0f4b9bed.d.ts → Component.desktop-63dec22f.d.ts} +1 -1
- package/intl-phone-input/component.d.ts +5 -1
- package/intl-phone-input/component.js +4 -0
- package/intl-phone-input/components/select/component.d.ts +1 -1
- package/intl-phone-input/cssm/component.d.ts +4 -0
- package/intl-phone-input/cssm/component.js +4 -0
- package/intl-phone-input/esm/component.d.ts +4 -0
- package/intl-phone-input/esm/component.js +4 -0
- package/intl-phone-input/hook-c44170fe.d.ts +48 -0
- package/intl-phone-input/modern/component.d.ts +4 -0
- package/intl-phone-input/modern/component.js +4 -0
- package/intl-phone-input/shared-4cd3936b.d.ts +14 -57
- package/package.json +1 -1
- package/picker-button/Component-0f4b9bed.d.ts +70 -3
- package/picker-button/Component-10db897e.d.ts +4 -294
- package/picker-button/Component-ebda875c.d.ts +9 -98
- package/picker-button/Component.desktop-785df74d.d.ts +1 -1
- package/picker-button/Component.desktop.d.ts +1 -1
- package/picker-button/Component.mobile-d7e9f69d.d.ts +1 -1
- package/picker-button/Component.mobile.d.ts +1 -1
- package/picker-button/Component.responsive.d.ts +1 -1
- package/picker-button/cssm/Component-0f4b9bed.d.ts +3 -70
- package/picker-button/cssm/Component-10db897e.d.ts +294 -4
- package/picker-button/cssm/Component-aed0af6e.d.ts +11 -0
- package/picker-button/cssm/Component-ebda875c.d.ts +98 -9
- package/picker-button/cssm/Component-f12ee135.d.ts +72 -0
- package/picker-button/cssm/Component.desktop-785df74d.d.ts +1 -1
- package/picker-button/cssm/Component.desktop.d.ts +1 -1
- package/{date-range-input/Component.mobile-ebda875c.d.ts → picker-button/cssm/Component.mobile-96988a65.d.ts} +0 -1
- package/picker-button/cssm/Component.mobile-d7e9f69d.d.ts +1 -1
- package/picker-button/cssm/Component.mobile.d.ts +1 -1
- package/picker-button/cssm/Component.responsive-d7e9f69d.d.ts +26 -0
- package/picker-button/cssm/Component.responsive.d.ts +1 -1
- package/picker-button/cssm/hook-8abfea97.d.ts +4 -4
- package/picker-button/cssm/hook-ebda875c.d.ts +48 -0
- package/picker-button/cssm/index-10db897e.d.ts +2 -2
- package/picker-button/cssm/index-bdb4c6b9.d.ts +180 -2
- package/picker-button/cssm/index-c44170fe.d.ts +1 -1
- package/picker-button/cssm/index-ebda875c.d.ts +191 -53
- package/picker-button/cssm/index-f12ee135.d.ts +324 -3
- package/picker-button/cssm/shared-4cd3936b.d.ts +1 -59
- package/picker-button/hook-8abfea97.d.ts +4 -4
- package/picker-button/index-10db897e.d.ts +2 -2
- package/picker-button/index-bdb4c6b9.d.ts +2 -180
- package/picker-button/index-c44170fe.d.ts +1 -1
- package/picker-button/index-ebda875c.d.ts +53 -191
- package/picker-button/index-f12ee135.d.ts +3 -324
- package/picker-button/shared-4cd3936b.d.ts +59 -1
- 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/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.mobile.js +1 -1
- package/select/Component.modal.mobile.js +1 -1
- package/select/Component.responsive.js +1 -1
- package/select/components/base-select-mobile/Component.js +2 -2
- package/select/components/virtual-options-list/Component.js +8 -4
- package/select/cssm/components/base-select-mobile/Component.js +2 -2
- package/select/cssm/components/virtual-options-list/Component.js +8 -4
- 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/components/base-select-mobile/Component.js +2 -2
- package/select/esm/components/virtual-options-list/Component.js +8 -4
- package/select/esm/index.js +1 -1
- 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.js +1 -1
- 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/components/base-select-mobile/Component.js +2 -2
- package/select/modern/components/virtual-options-list/Component.js +8 -4
- package/select/modern/index.js +1 -1
- 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/tabs/collapsible.js +1 -1
- package/tabs/components/primary-tablist/Component.collapsible.js +1 -1
- package/tabs/components/primary-tablist/Component.desktop.js +3 -2
- package/tabs/components/primary-tablist/Component.js +14 -4
- package/tabs/components/primary-tablist/Component.mobile.js +3 -2
- package/tabs/components/primary-tablist/Component.responsive.js +3 -2
- package/tabs/components/secondary-tablist/Component.desktop.js +1 -1
- package/tabs/components/secondary-tablist/Component.mobile.js +1 -1
- package/tabs/components/secondary-tablist/Component.responsive.js +1 -1
- package/tabs/components/tabs/Component.collapsible.js +1 -1
- package/tabs/components/tabs/Component.desktop.js +4 -3
- package/tabs/components/tabs/Component.mobile.js +4 -3
- package/tabs/components/tabs/Component.responsive.js +4 -3
- package/tabs/cssm/components/primary-tablist/Component.desktop.js +2 -1
- package/tabs/cssm/components/primary-tablist/Component.js +14 -4
- package/tabs/cssm/components/primary-tablist/Component.mobile.js +2 -1
- package/tabs/cssm/components/primary-tablist/Component.responsive.js +2 -1
- package/tabs/cssm/components/tabs/Component.desktop.js +2 -1
- package/tabs/cssm/components/tabs/Component.mobile.js +2 -1
- package/tabs/cssm/components/tabs/Component.responsive.js +2 -1
- package/tabs/cssm/desktop.js +2 -1
- package/tabs/cssm/index.js +2 -1
- package/tabs/cssm/mobile.js +2 -1
- package/tabs/desktop.js +4 -3
- package/tabs/esm/collapsible.js +1 -1
- package/tabs/esm/components/primary-tablist/Component.collapsible.js +1 -1
- package/tabs/esm/components/primary-tablist/Component.desktop.js +2 -1
- package/tabs/esm/components/primary-tablist/Component.js +14 -4
- package/tabs/esm/components/primary-tablist/Component.mobile.js +2 -1
- package/tabs/esm/components/primary-tablist/Component.responsive.js +2 -1
- package/tabs/esm/components/secondary-tablist/Component.desktop.js +1 -1
- package/tabs/esm/components/secondary-tablist/Component.mobile.js +1 -1
- package/tabs/esm/components/secondary-tablist/Component.responsive.js +1 -1
- package/tabs/esm/components/tabs/Component.collapsible.js +1 -1
- package/tabs/esm/components/tabs/Component.desktop.js +3 -2
- package/tabs/esm/components/tabs/Component.mobile.js +3 -2
- package/tabs/esm/components/tabs/Component.responsive.js +3 -2
- package/tabs/esm/desktop.js +3 -2
- package/tabs/esm/index.js +3 -2
- package/tabs/esm/mobile.js +3 -2
- package/tabs/index-ebda875c.d.ts +21 -86
- package/tabs/index.js +4 -3
- package/tabs/mobile.js +4 -3
- package/tabs/modern/collapsible.js +1 -1
- package/tabs/modern/components/primary-tablist/Component.collapsible.js +1 -1
- package/tabs/modern/components/primary-tablist/Component.desktop.js +2 -1
- package/tabs/modern/components/primary-tablist/Component.js +14 -4
- package/tabs/modern/components/primary-tablist/Component.mobile.js +2 -1
- package/tabs/modern/components/primary-tablist/Component.responsive.js +2 -1
- package/tabs/modern/components/secondary-tablist/Component.desktop.js +1 -1
- package/tabs/modern/components/secondary-tablist/Component.mobile.js +1 -1
- package/tabs/modern/components/secondary-tablist/Component.responsive.js +1 -1
- package/tabs/modern/components/tabs/Component.collapsible.js +1 -1
- package/tabs/modern/components/tabs/Component.desktop.js +3 -2
- package/tabs/modern/components/tabs/Component.mobile.js +3 -2
- package/tabs/modern/components/tabs/Component.responsive.js +3 -2
- package/tabs/modern/desktop.js +3 -2
- package/tabs/modern/index.js +3 -2
- package/tabs/modern/mobile.js +3 -2
- package/textarea/Component.d.ts +1 -1
- package/textarea/Component.js +1 -1
- package/textarea/components/PseudoTextArea.js +1 -1
- package/textarea/components/index.d.ts +1 -1
- package/textarea/components/index.js +1 -1
- package/textarea/esm/Component.js +1 -1
- package/textarea/esm/components/PseudoTextArea.js +1 -1
- package/textarea/esm/components/index.d.ts +1 -1
- package/textarea/esm/components/index.js +1 -1
- package/textarea/esm/index.js +1 -1
- package/textarea/index.js +1 -1
- package/textarea/modern/Component.js +1 -1
- package/textarea/modern/components/PseudoTextArea.js +1 -1
- package/textarea/modern/components/index.d.ts +1 -1
- package/textarea/modern/components/index.js +1 -1
- package/textarea/modern/index.js +1 -1
- package/themes/compiled/mobile-dark-bluetint.css +19 -19
- package/themes/dist/compiled/mobile-dark-bluetint.css +262 -262
- package/themes/dist/site.css +348 -343
- package/themes/site.css +348 -343
- package/time-input/Component.d.ts +4 -0
- package/time-input/Component.js +4 -0
- package/time-input/cssm/Component.d.ts +4 -0
- package/time-input/cssm/Component.js +4 -0
- package/time-input/esm/Component.d.ts +4 -0
- package/time-input/esm/Component.js +4 -0
- package/time-input/modern/Component.d.ts +4 -0
- package/time-input/modern/Component.js +4 -0
- package/typography/component.js +2 -2
- 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/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/custom-picker-button/Component-89f0cb07.d.ts +0 -38
- package/custom-picker-button/Component-8b2c2707.d.ts +0 -12
- package/custom-picker-button/Component.mobile-d446ae02.d.ts +0 -23
- package/custom-picker-button/mobile-89f0cb07.d.ts +0 -2
- package/date-range-input/Component-b5b4c59f.d.ts +0 -389
- package/date-range-input/cssm/Component-b5b4c59f.d.ts +0 -389
- package/date-range-input/cssm/Component.mobile-ebda875c.d.ts +0 -7
- package/picker-button/cssm/Component.modal.mobile-0f4b9bed.d.ts +0 -60
- package/picker-button/cssm/component-10db897e.d.ts +0 -44
- package/picker-button/cssm/types-67a2d8af.d.ts +0 -276
- package/picker-button/cssm/utils-1574ad8b.d.ts +0 -29
- package/picker-button/cssm/utils-49cc3c24.d.ts +0 -8
- /package/calendar/{desktop-89f0cb07.d.ts → desktop-69921c40.d.ts} +0 -0
- /package/confirmation/{countdown-section-fd1f820b.d.ts → countdown-section-98424f8e.d.ts} +0 -0
- /package/confirmation/{countdown-section-fd1f820b.js → countdown-section-98424f8e.js} +0 -0
- /package/confirmation/esm/{countdown-section-3a227dc3.d.ts → countdown-section-293411b2.d.ts} +0 -0
- /package/confirmation/esm/{countdown-section-3a227dc3.js → countdown-section-293411b2.js} +0 -0
- /package/confirmation/modern/{countdown-section-0fae6dd8.d.ts → countdown-section-4c466791.d.ts} +0 -0
- /package/confirmation/modern/{countdown-section-0fae6dd8.js → countdown-section-4c466791.js} +0 -0
- /package/{picker-button → custom-picker-button}/Component-aed0af6e.d.ts +0 -0
- /package/{picker-button → custom-picker-button}/Component-f12ee135.d.ts +0 -0
- /package/{picker-button → custom-picker-button}/Component.mobile-96988a65.d.ts +0 -0
- /package/{date-range-input → custom-picker-button}/Component.responsive-0aa4e915.d.ts +0 -0
- /package/{picker-button → custom-picker-button}/Component.responsive-d7e9f69d.d.ts +0 -0
- /package/{date-range-input/cssm → custom-picker-button}/desktop-69921c40.d.ts +0 -0
- /package/{picker-button → custom-picker-button}/hook-ebda875c.d.ts +0 -0
- /package/{picker-button → custom-picker-button}/mobile-96988a65.d.ts +0 -0
- /package/{picker-button → custom-picker-button}/useSkeleton-1b036d4b.d.ts +0 -0
- /package/date-range-input/{Component.desktop-0aa4e915.d.ts → Component.desktop-89f0cb07.d.ts} +0 -0
- /package/date-range-input/{cssm/Component.responsive-0aa4e915.d.ts → Component.responsive-16b1285a.d.ts} +0 -0
- /package/date-range-input/{Component.responsive-785df74d.d.ts → Component.responsive-d7e9f69d.d.ts} +0 -0
- /package/date-range-input/cssm/{Component.desktop-0aa4e915.d.ts → Component.desktop-89f0cb07.d.ts} +0 -0
- /package/date-range-input/cssm/{Component.responsive-785df74d.d.ts → Component.responsive-d7e9f69d.d.ts} +0 -0
- /package/date-range-input/cssm/{desktop-63dec22f.d.ts → desktop-b5b4c59f.d.ts} +0 -0
- /package/date-range-input/{desktop-63dec22f.d.ts → desktop-b5b4c59f.d.ts} +0 -0
- /package/gallery/{buttons-690412e1.d.ts → buttons-0f7e62fa.d.ts} +0 -0
- /package/gallery/{buttons-690412e1.js → buttons-0f7e62fa.js} +0 -0
- /package/gallery/esm/{buttons-56eb04b3.d.ts → buttons-8f2a1c94.d.ts} +0 -0
- /package/gallery/esm/{buttons-56eb04b3.js → buttons-8f2a1c94.js} +0 -0
- /package/gallery/esm/{slide-44fcdb22.d.ts → slide-ceaab2f7.d.ts} +0 -0
- /package/gallery/esm/{slide-44fcdb22.js → slide-ceaab2f7.js} +0 -0
- /package/gallery/modern/{buttons-eaec7dc8.d.ts → buttons-c5da30ee.d.ts} +0 -0
- /package/gallery/modern/{buttons-eaec7dc8.js → buttons-c5da30ee.js} +0 -0
- /package/gallery/modern/{slide-f0094724.d.ts → slide-01729b01.d.ts} +0 -0
- /package/gallery/modern/{slide-f0094724.js → slide-01729b01.js} +0 -0
- /package/gallery/{slide-44acedca.d.ts → slide-d75dc41d.d.ts} +0 -0
- /package/gallery/{slide-44acedca.js → slide-d75dc41d.js} +0 -0
- /package/intl-phone-input/{Component.desktop-4cd3936b.d.ts → Component.desktop-9cded6b9.d.ts} +0 -0
- /package/intl-phone-input/{desktop-785df74d.d.ts → desktop-63dec22f.d.ts} +0 -0
- /package/{custom-picker-button → intl-phone-input}/desktop-89f0cb07.d.ts +0 -0
- /package/{custom-picker-button/mobile-d7e9f69d.d.ts → intl-phone-input/mobile-96988a65.d.ts} +0 -0
- /package/{custom-picker-button → picker-button}/Component-69921c40.d.ts +0 -0
- /package/{custom-picker-button → picker-button}/Component.modal.mobile-0f4b9bed.d.ts +0 -0
- /package/picker-button/{cssm/Component.responsive-3109f463.d.ts → Component.responsive-3109f463.d.ts} +0 -0
- /package/{custom-picker-button → picker-button}/component-10db897e.d.ts +0 -0
- /package/picker-button/{Component-72dda473.d.ts → cssm/Component-72dda473.d.ts} +0 -0
- /package/{intl-phone-input/mobile-d7e9f69d.d.ts → picker-button/cssm/mobile-96988a65.d.ts} +0 -0
- /package/{custom-picker-button/useSkeleton-ebda875c.d.ts → picker-button/cssm/useSkeleton-1b036d4b.d.ts} +0 -0
- /package/picker-button/{cssm/mobile-89f0cb07.d.ts → mobile-89f0cb07.d.ts} +0 -0
- /package/picker-button/{cssm/mobile-d7e9f69d.d.ts → mobile-d7e9f69d.d.ts} +0 -0
- /package/{custom-picker-button → picker-button}/types-67a2d8af.d.ts +0 -0
- /package/picker-button/{cssm/useSkeleton-ebda875c.d.ts → useSkeleton-ebda875c.d.ts} +0 -0
- /package/{custom-picker-button → picker-button}/utils-1574ad8b.d.ts +0 -0
- /package/{custom-picker-button → picker-button}/utils-49cc3c24.d.ts +0 -0
- /package/pure-cell/{component-56e8d476.d.ts → component-0bb227ff.d.ts} +0 -0
- /package/pure-cell/{component-56e8d476.js → component-0bb227ff.js} +0 -0
- /package/pure-cell/esm/{component-81398343.d.ts → component-0fa1f2f4.d.ts} +0 -0
- /package/pure-cell/esm/{component-81398343.js → component-0fa1f2f4.js} +0 -0
- /package/pure-cell/modern/{component-62dc17a6.d.ts → component-62710d9b.d.ts} +0 -0
- /package/pure-cell/modern/{component-62dc17a6.js → component-62710d9b.js} +0 -0
- /package/select/esm/{hook-dbd7a783.d.ts → hook-e63a15d0.d.ts} +0 -0
- /package/select/esm/{hook-dbd7a783.js → hook-e63a15d0.js} +0 -0
- /package/select/{hook-77cb9499.d.ts → hook-74d61833.d.ts} +0 -0
- /package/select/{hook-77cb9499.js → hook-74d61833.js} +0 -0
- /package/select/modern/{hook-2d4246ef.d.ts → hook-5e1db0b0.d.ts} +0 -0
- /package/select/modern/{hook-2d4246ef.js → hook-5e1db0b0.js} +0 -0
- /package/tabs/esm/{index.module-f81c66bd.js → index.module-072f7a03.js} +0 -0
- /package/tabs/esm/{index.module-e596240d.js → index.module-64994e8d.js} +0 -0
- /package/tabs/{index.module-f5167fdf.js → index.module-5f6b14c2.js} +0 -0
- /package/tabs/{index.module-aaabe4b6.js → index.module-e4f107c7.js} +0 -0
- /package/tabs/modern/{index.module-57137d98.js → index.module-5e57388f.js} +0 -0
- /package/tabs/modern/{index.module-328329dc.js → index.module-633b90f6.js} +0 -0
- /package/textarea/{PseudoTextArea-89d92eb6.d.ts → PseudoTextArea-36c6abaa.d.ts} +0 -0
- /package/textarea/{PseudoTextArea-89d92eb6.js → PseudoTextArea-36c6abaa.js} +0 -0
- /package/textarea/esm/{PseudoTextArea-b972f2a1.d.ts → PseudoTextArea-9a6ecffa.d.ts} +0 -0
- /package/textarea/esm/{PseudoTextArea-b972f2a1.js → PseudoTextArea-9a6ecffa.js} +0 -0
- /package/textarea/modern/{PseudoTextArea-05bab99f.d.ts → PseudoTextArea-af080549.d.ts} +0 -0
- /package/textarea/modern/{PseudoTextArea-05bab99f.js → PseudoTextArea-af080549.js} +0 -0
- /package/typography/{colors.module-acfdc4ac.js → colors.module-df0e4b50.js} +0 -0
- /package/typography/{common.module-1e0ee495.js → common.module-f956febc.js} +0 -0
- /package/typography/esm/{colors.module-15b18b20.js → colors.module-9bede968.js} +0 -0
- /package/typography/esm/{common.module-2109e6cf.js → common.module-a7331eab.js} +0 -0
- /package/typography/modern/{colors.module-9ac72522.js → colors.module-3d67b05c.js} +0 -0
- /package/typography/modern/{common.module-89e311be.js → common.module-37e5ffae.js} +0 -0
|
@@ -1,3 +1,324 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/// <reference types="react-transition-group" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { HTMLAttributes, ReactElement, ReactNode, RefObject, FC } from "react";
|
|
5
|
+
import { HandledEvents } from "react-swipeable/es/types";
|
|
6
|
+
import { TransitionProps } from "react-transition-group/Transition";
|
|
7
|
+
import { BaseModalProps } from "./index-bdb4c6b9";
|
|
8
|
+
import { NavigationBarProps } from "./index-c76d6398";
|
|
9
|
+
import { BackgroundColorType } from "./index-72dda473";
|
|
10
|
+
import { SwipeableHandlers } from "react-swipeable";
|
|
11
|
+
import { BackdropProps } from "./index-ebda875c";
|
|
12
|
+
type BottomSheetTitleAlign = "center" | "left";
|
|
13
|
+
type BottomSheetProps = {
|
|
14
|
+
/**
|
|
15
|
+
* Контент
|
|
16
|
+
*/
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Управление видимостью
|
|
20
|
+
*/
|
|
21
|
+
open: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Заголовок
|
|
24
|
+
*/
|
|
25
|
+
title?: ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* Размер заголовка
|
|
28
|
+
*/
|
|
29
|
+
titleSize?: NavigationBarProps["titleSize"];
|
|
30
|
+
/**
|
|
31
|
+
* Подзаголовок.
|
|
32
|
+
*/
|
|
33
|
+
subtitle?: NavigationBarProps["subtitle"];
|
|
34
|
+
/**
|
|
35
|
+
* Кнопка действия (обычно, это кнопка закрытия)
|
|
36
|
+
*/
|
|
37
|
+
actionButton?: ReactNode;
|
|
38
|
+
/**
|
|
39
|
+
* Нода, компонент или функция возвращающая их
|
|
40
|
+
*
|
|
41
|
+
* Контейнер к которому будут добавляться порталы
|
|
42
|
+
*/
|
|
43
|
+
container?: BaseModalProps["container"];
|
|
44
|
+
/**
|
|
45
|
+
* Рендерить ли в контейнер через портал.
|
|
46
|
+
*/
|
|
47
|
+
usePortal?: BaseModalProps["usePortal"];
|
|
48
|
+
/**
|
|
49
|
+
* Дополнительный класс
|
|
50
|
+
*/
|
|
51
|
+
className?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Дополнительный класс
|
|
54
|
+
*/
|
|
55
|
+
contentClassName?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Дополнительные пропсы на контейнер.
|
|
58
|
+
*/
|
|
59
|
+
containerProps?: HTMLAttributes<HTMLDivElement>;
|
|
60
|
+
/**
|
|
61
|
+
* Дополнительный класс
|
|
62
|
+
*/
|
|
63
|
+
containerClassName?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Цвет фона
|
|
66
|
+
*/
|
|
67
|
+
backgroundColor?: Extract<BackgroundColorType, "primary" | "secondary">;
|
|
68
|
+
/**
|
|
69
|
+
* Дополнительный класс шапки
|
|
70
|
+
*/
|
|
71
|
+
headerClassName?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Дополнительный класс футера
|
|
74
|
+
*/
|
|
75
|
+
footerClassName?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Дополнительный класс для аддонов
|
|
78
|
+
*/
|
|
79
|
+
addonClassName?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Дополнительный класс для компонента крестика
|
|
82
|
+
*/
|
|
83
|
+
closerClassName?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Дополнительный класс для компонента стрелки назад
|
|
86
|
+
*/
|
|
87
|
+
backerClassName?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Дополнительный класс для компонента модального окна
|
|
90
|
+
*/
|
|
91
|
+
modalClassName?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Дополнительный класс для обертки модального окна
|
|
94
|
+
*/
|
|
95
|
+
modalWrapperClassName?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Дополнительный класс для маркера
|
|
98
|
+
*/
|
|
99
|
+
swipeableMarkerClassName?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Кастомный маркер
|
|
102
|
+
*/
|
|
103
|
+
swipeableMarker?: ReactElement;
|
|
104
|
+
/**
|
|
105
|
+
* TransitionProps, прокидываются в компонент CSSTransitionProps.
|
|
106
|
+
*/
|
|
107
|
+
transitionProps?: Partial<TransitionProps>;
|
|
108
|
+
/**
|
|
109
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
110
|
+
*/
|
|
111
|
+
dataTestId?: string;
|
|
112
|
+
/**
|
|
113
|
+
* z-index компонента
|
|
114
|
+
*/
|
|
115
|
+
zIndex?: number;
|
|
116
|
+
/**
|
|
117
|
+
* Будет ли свайпаться шторка
|
|
118
|
+
* @default true
|
|
119
|
+
*/
|
|
120
|
+
swipeable?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Будет ли свайпаться контент
|
|
123
|
+
*/
|
|
124
|
+
swipeableContent?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Порог свайпа
|
|
127
|
+
*/
|
|
128
|
+
swipeThreshold?: number;
|
|
129
|
+
/**
|
|
130
|
+
* Слот слева
|
|
131
|
+
*/
|
|
132
|
+
leftAddons?: ReactNode;
|
|
133
|
+
/**
|
|
134
|
+
* Слот справа
|
|
135
|
+
*/
|
|
136
|
+
rightAddons?: ReactNode;
|
|
137
|
+
/**
|
|
138
|
+
* Слот снизу
|
|
139
|
+
*/
|
|
140
|
+
bottomAddons?: ReactNode;
|
|
141
|
+
/**
|
|
142
|
+
* Наличие компонента крестика
|
|
143
|
+
*/
|
|
144
|
+
hasCloser?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* Наличие компонента стрелки назад
|
|
147
|
+
*/
|
|
148
|
+
hasBacker?: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Выравнивание заголовка
|
|
151
|
+
*/
|
|
152
|
+
titleAlign?: BottomSheetTitleAlign;
|
|
153
|
+
/**
|
|
154
|
+
* Фиксирует шапку
|
|
155
|
+
*/
|
|
156
|
+
stickyHeader?: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* Фиксирует футер
|
|
159
|
+
*/
|
|
160
|
+
stickyFooter?: boolean;
|
|
161
|
+
/**
|
|
162
|
+
* Высота шторки
|
|
163
|
+
*/
|
|
164
|
+
initialHeight?: "default" | "full";
|
|
165
|
+
/**
|
|
166
|
+
* Будет ли виден оверлэй
|
|
167
|
+
*/
|
|
168
|
+
hideOverlay?: boolean;
|
|
169
|
+
/**
|
|
170
|
+
* Будет ли видна шапка
|
|
171
|
+
*/
|
|
172
|
+
hideHeader?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Будет ли обрезан заголовок
|
|
175
|
+
*/
|
|
176
|
+
trimTitle?: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* Запретить закрытие шторки кликом на оверлэй
|
|
179
|
+
*/
|
|
180
|
+
disableOverlayClick?: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* Отключает блокировку скролла при открытии модального окна
|
|
183
|
+
*/
|
|
184
|
+
disableBlockingScroll?: boolean;
|
|
185
|
+
/**
|
|
186
|
+
* Отключает ловушку фокуса
|
|
187
|
+
*/
|
|
188
|
+
disableFocusLock?: boolean;
|
|
189
|
+
/**
|
|
190
|
+
* @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
|
|
191
|
+
* Не анимировать шторку при изменении размера вьюпорта
|
|
192
|
+
*/
|
|
193
|
+
ignoreScreenChange?: boolean;
|
|
194
|
+
/**
|
|
195
|
+
* Свойства для Бэкдропа
|
|
196
|
+
*/
|
|
197
|
+
backdropProps?: BaseModalProps["backdropProps"];
|
|
198
|
+
/**
|
|
199
|
+
* Реф на контейнер, в котором происходит скролл
|
|
200
|
+
*/
|
|
201
|
+
scrollableContainerRef?: RefObject<HTMLElement>;
|
|
202
|
+
/**
|
|
203
|
+
* Реф для управления компонентом.
|
|
204
|
+
*/
|
|
205
|
+
bottomSheetInstanceRef?: RefObject<{
|
|
206
|
+
scrollToArea: (idx: number) => void;
|
|
207
|
+
}>;
|
|
208
|
+
/**
|
|
209
|
+
* Реф на контейнер, в котором находится шторка
|
|
210
|
+
*/
|
|
211
|
+
sheetContainerRef?: RefObject<HTMLElement>;
|
|
212
|
+
/**
|
|
213
|
+
* Магнитные области видимой высоты шторки.
|
|
214
|
+
* Можно использовать значения в пикселях - 10(число), либо в процентах - 10%(строка).
|
|
215
|
+
* По-умолчанию -[0, window.innerHeight - '24px']
|
|
216
|
+
* массив должен состоять минимум из 2 элементов
|
|
217
|
+
*/
|
|
218
|
+
magneticAreas?: Array<number | string>;
|
|
219
|
+
/**
|
|
220
|
+
* Индекс точки из magneticAreas, к которому нужно примагнититься при первом открытии шторки.
|
|
221
|
+
*/
|
|
222
|
+
initialActiveAreaIndex?: number;
|
|
223
|
+
/**
|
|
224
|
+
* Отключает скролл контентной области.
|
|
225
|
+
*/
|
|
226
|
+
scrollLocked?: boolean;
|
|
227
|
+
/**
|
|
228
|
+
* Скрыть скроллбар внутри шторки
|
|
229
|
+
*/
|
|
230
|
+
hideScrollbar?: boolean;
|
|
231
|
+
/**
|
|
232
|
+
* Верхний отступ шторки, если она открыта на максимальную высоту
|
|
233
|
+
*/
|
|
234
|
+
headerOffset?: number;
|
|
235
|
+
/**
|
|
236
|
+
* Содержимое bottom-sheet всегда в DOM
|
|
237
|
+
*/
|
|
238
|
+
keepMounted?: boolean;
|
|
239
|
+
/**
|
|
240
|
+
* Отключает автоматический перевод фокуса на bottom-sheet при открытии
|
|
241
|
+
*/
|
|
242
|
+
disableAutoFocus?: boolean;
|
|
243
|
+
/**
|
|
244
|
+
* Отключает восстановление фокуса на предыдущем элементе после закрытия bottom-sheet
|
|
245
|
+
*/
|
|
246
|
+
disableRestoreFocus?: boolean;
|
|
247
|
+
/**
|
|
248
|
+
* Отключает вызов `onClose` при нажатии Escape
|
|
249
|
+
*/
|
|
250
|
+
disableEscapeKeyDown?: boolean;
|
|
251
|
+
/**
|
|
252
|
+
* Обработчик закрытия
|
|
253
|
+
*/
|
|
254
|
+
onClose: () => void;
|
|
255
|
+
/**
|
|
256
|
+
* Обработчик нажатия на стрелку назад
|
|
257
|
+
*/
|
|
258
|
+
onBack?: () => void;
|
|
259
|
+
/**
|
|
260
|
+
* Вызывается в начале анимации притягивания к одной из `magneticAreas`
|
|
261
|
+
*/
|
|
262
|
+
onMagnetize?: (index: number) => void;
|
|
263
|
+
/**
|
|
264
|
+
* Вызывается после окончания анимации притягивания
|
|
265
|
+
*/
|
|
266
|
+
onMagnetizeEnd?: (index: number) => void;
|
|
267
|
+
/**
|
|
268
|
+
* Вызывается при изменении положения шторки
|
|
269
|
+
*/
|
|
270
|
+
onOffsetChange?: (offset: number, percent: number) => void;
|
|
271
|
+
/**
|
|
272
|
+
* Вызывается в начале свайпа
|
|
273
|
+
*/
|
|
274
|
+
onSwipeStart?: (event: HandledEvents) => void;
|
|
275
|
+
/**
|
|
276
|
+
* Вызывается после окончания свайпа
|
|
277
|
+
*/
|
|
278
|
+
onSwipeEnd?: (event: HandledEvents | null) => void;
|
|
279
|
+
};
|
|
280
|
+
declare const BottomSheet: React.ForwardRefExoticComponent<BottomSheetProps & React.RefAttributes<HTMLDivElement>>;
|
|
281
|
+
declare const TIMEOUT = 500;
|
|
282
|
+
declare const SWIPE_VELOCITY = 0.4;
|
|
283
|
+
declare const MARKER_HEIGHT = 24;
|
|
284
|
+
declare const CLOSE_OFFSET = 0.2;
|
|
285
|
+
declare const SCROLL_OFFSET = 1;
|
|
286
|
+
declare const HEADER_OFFSET = 24;
|
|
287
|
+
declare const convertPercentToNumber: (value: string | number, fullHeight: number, headerOffset?: number) => number;
|
|
288
|
+
type FooterProps = {
|
|
289
|
+
/**
|
|
290
|
+
* Контент футера
|
|
291
|
+
*/
|
|
292
|
+
children?: ReactNode;
|
|
293
|
+
/**
|
|
294
|
+
* Фиксирует футер
|
|
295
|
+
*/
|
|
296
|
+
sticky?: boolean;
|
|
297
|
+
/**
|
|
298
|
+
* Дополнительный класс
|
|
299
|
+
*/
|
|
300
|
+
className?: string;
|
|
301
|
+
};
|
|
302
|
+
declare const Footer: FC<FooterProps>;
|
|
303
|
+
type HeaderProps = Omit<NavigationBarProps, "view" | "size"> & {
|
|
304
|
+
headerRef: RefObject<HTMLDivElement>;
|
|
305
|
+
headerOffset: number;
|
|
306
|
+
};
|
|
307
|
+
declare const Header: FC<HeaderProps>;
|
|
308
|
+
type SwipeableBackdropProps = BackdropProps & {
|
|
309
|
+
/**
|
|
310
|
+
* Прозрачность бэкдропа
|
|
311
|
+
*/
|
|
312
|
+
opacity?: number;
|
|
313
|
+
/**
|
|
314
|
+
* Обработчики свайпа
|
|
315
|
+
*/
|
|
316
|
+
handlers?: SwipeableHandlers;
|
|
317
|
+
/**
|
|
318
|
+
* Время анимации opacity
|
|
319
|
+
*/
|
|
320
|
+
opacityTimeout?: number;
|
|
321
|
+
};
|
|
322
|
+
declare const SwipeableBackdrop: FC<SwipeableBackdropProps>;
|
|
323
|
+
export { BottomSheet, TIMEOUT, SWIPE_VELOCITY, MARKER_HEIGHT, CLOSE_OFFSET, SCROLL_OFFSET, HEADER_OFFSET, convertPercentToNumber, FooterProps, Footer, HeaderProps, Header, SwipeableBackdropProps, SwipeableBackdrop };
|
|
324
|
+
export type { BottomSheetProps, BottomSheetTitleAlign };
|
|
@@ -1,65 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { BaseSelectProps, OptionProps, OptionShape } from "./typings-0f4b9bed";
|
|
4
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
5
|
-
type useSelectWithLoadingProps = {
|
|
6
|
-
loading?: boolean;
|
|
7
|
-
visibleOptions?: BaseSelectProps["visibleOptions"];
|
|
8
|
-
Option?: React.FC<OptionProps>;
|
|
9
|
-
};
|
|
10
|
-
declare function useSelectWithLoading({ loading, visibleOptions, Option }: useSelectWithLoadingProps): {
|
|
11
|
-
Option: (props: OptionProps) => React.JSX.Element;
|
|
12
|
-
options: OptionShape[];
|
|
13
|
-
} | null;
|
|
14
|
-
type OptionsFetcherResponse = {
|
|
15
|
-
options: OptionShape[];
|
|
16
|
-
hasMore: boolean;
|
|
17
|
-
};
|
|
18
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
19
|
-
type useLazyLoadingProps = {
|
|
20
|
-
/** Количество элементов на "странице" */
|
|
21
|
-
limit?: number;
|
|
22
|
-
/** Начальный номер "страницы" */
|
|
23
|
-
initialOffset?: number;
|
|
24
|
-
/** Скелетон загружаемых элементов */
|
|
25
|
-
skeleton?: React.ReactNode;
|
|
26
|
-
/** Компонент пункта меню */
|
|
27
|
-
Option?: React.FC<OptionProps>;
|
|
28
|
-
/**
|
|
29
|
-
* Функция-загрузчик опций.
|
|
30
|
-
* @param offset - текущая страница
|
|
31
|
-
* @param limit - количество элементов на странице
|
|
32
|
-
* @param queryString - строчные данные, пробрасываемые для поиска из кастомного инпута, расположенного в заголовке OptionsList
|
|
33
|
-
* @returns Promise<{
|
|
34
|
-
* options - список опций следующей "страницы". Они аппендятся к предыдущим
|
|
35
|
-
* hasMore - указывает, есть ли еще незагруженные элементы (в случае false перестает загружать "следующую страницу")
|
|
36
|
-
* }>
|
|
37
|
-
*/
|
|
38
|
-
optionsFetcher(offset: number, limit: number, queryString?: string): Promise<OptionsFetcherResponse>;
|
|
39
|
-
};
|
|
40
|
-
declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton, Option }: useLazyLoadingProps): {
|
|
41
|
-
optionsProps: {
|
|
42
|
-
Option: (props: OptionProps) => React.JSX.Element;
|
|
43
|
-
options: OptionShape[];
|
|
44
|
-
optionsListProps: {
|
|
45
|
-
ref: React.RefObject<HTMLDivElement>;
|
|
46
|
-
inputProps: {
|
|
47
|
-
onChange: (event: React.ChangeEvent<HTMLInputElement>, payload: {
|
|
48
|
-
value: string;
|
|
49
|
-
}) => void;
|
|
50
|
-
value: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
onOpen: (payload: {
|
|
54
|
-
open?: boolean;
|
|
55
|
-
}) => void;
|
|
56
|
-
};
|
|
57
|
-
reset: () => void;
|
|
58
|
-
};
|
|
59
1
|
export * from "./index-ebda875c";
|
|
60
|
-
export * from "./Component-10db897e";
|
|
61
2
|
export * from "./Component-0f4b9bed";
|
|
62
|
-
export
|
|
3
|
+
export * from "./hook-ebda875c";
|
|
63
4
|
export * from "./hook-8abfea97";
|
|
64
5
|
export * from "./typings-0f4b9bed";
|
|
65
6
|
export * from "./utils-0f4b9bed";
|
|
@@ -22,6 +22,10 @@ type DateInputProps = Omit<InputProps, 'onChange'> & {
|
|
|
22
22
|
value: string;
|
|
23
23
|
}) => void;
|
|
24
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated
|
|
27
|
+
* use UniversalDateInput instead
|
|
28
|
+
*/
|
|
25
29
|
declare const DateInput: React.ForwardRefExoticComponent<Omit<InputProps, "onChange"> & {
|
|
26
30
|
/**
|
|
27
31
|
* Управление нативным режимом на мобильных устройствах
|
package/date-input/Component.js
CHANGED
|
@@ -18,6 +18,10 @@ var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
|
18
18
|
var styles = {"nativeInput":"date-input__nativeInput_1l5r0"};
|
|
19
19
|
require('./index.css');
|
|
20
20
|
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated
|
|
23
|
+
* use UniversalDateInput instead
|
|
24
|
+
*/
|
|
21
25
|
var DateInput = React.forwardRef(function (_a, ref) {
|
|
22
26
|
var _b = _a.mobileMode, mobileMode = _b === void 0 ? 'input' : _b, _c = _a.defaultValue, defaultValue = _c === void 0 ? '' : _c, rightAddons = _a.rightAddons, error = _a.error, propValue = _a.value, onBlur = _a.onBlur, onChange = _a.onChange, onComplete = _a.onComplete, restProps = tslib.__rest(_a, ["mobileMode", "defaultValue", "rightAddons", "error", "value", "onBlur", "onChange", "onComplete"]);
|
|
23
27
|
var inputRef = React.useRef(null);
|
|
@@ -22,6 +22,10 @@ type DateInputProps = Omit<InputProps, 'onChange'> & {
|
|
|
22
22
|
value: string;
|
|
23
23
|
}) => void;
|
|
24
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated
|
|
27
|
+
* use UniversalDateInput instead
|
|
28
|
+
*/
|
|
25
29
|
declare const DateInput: React.ForwardRefExoticComponent<Omit<InputProps, "onChange"> & {
|
|
26
30
|
/**
|
|
27
31
|
* Управление нативным режимом на мобильных устройствах
|
|
@@ -17,6 +17,10 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
17
17
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
18
18
|
var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated
|
|
22
|
+
* use UniversalDateInput instead
|
|
23
|
+
*/
|
|
20
24
|
var DateInput = React.forwardRef(function (_a, ref) {
|
|
21
25
|
var _b = _a.mobileMode, mobileMode = _b === void 0 ? 'input' : _b, _c = _a.defaultValue, defaultValue = _c === void 0 ? '' : _c, rightAddons = _a.rightAddons, error = _a.error, propValue = _a.value, onBlur = _a.onBlur, onChange = _a.onChange, onComplete = _a.onComplete, restProps = tslib.__rest(_a, ["mobileMode", "defaultValue", "rightAddons", "error", "value", "onBlur", "onChange", "onComplete"]);
|
|
22
26
|
var inputRef = React.useRef(null);
|
|
@@ -22,6 +22,10 @@ type DateInputProps = Omit<InputProps, 'onChange'> & {
|
|
|
22
22
|
value: string;
|
|
23
23
|
}) => void;
|
|
24
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated
|
|
27
|
+
* use UniversalDateInput instead
|
|
28
|
+
*/
|
|
25
29
|
declare const DateInput: React.ForwardRefExoticComponent<Omit<InputProps, "onChange"> & {
|
|
26
30
|
/**
|
|
27
31
|
* Управление нативным режимом на мобильных устройствах
|
|
@@ -11,6 +11,10 @@ import 'date-fns/parse';
|
|
|
11
11
|
var styles = {"nativeInput":"date-input__nativeInput_1l5r0"};
|
|
12
12
|
require('./index.css');
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated
|
|
16
|
+
* use UniversalDateInput instead
|
|
17
|
+
*/
|
|
14
18
|
var DateInput = forwardRef(function (_a, ref) {
|
|
15
19
|
var _b = _a.mobileMode, mobileMode = _b === void 0 ? 'input' : _b, _c = _a.defaultValue, defaultValue = _c === void 0 ? '' : _c, rightAddons = _a.rightAddons, error = _a.error, propValue = _a.value, onBlur = _a.onBlur, onChange = _a.onChange, onComplete = _a.onComplete, restProps = __rest(_a, ["mobileMode", "defaultValue", "rightAddons", "error", "value", "onBlur", "onChange", "onComplete"]);
|
|
16
20
|
var inputRef = useRef(null);
|
|
@@ -22,6 +22,10 @@ type DateInputProps = Omit<InputProps, 'onChange'> & {
|
|
|
22
22
|
value: string;
|
|
23
23
|
}) => void;
|
|
24
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated
|
|
27
|
+
* use UniversalDateInput instead
|
|
28
|
+
*/
|
|
25
29
|
declare const DateInput: React.ForwardRefExoticComponent<Omit<InputProps, "onChange"> & {
|
|
26
30
|
/**
|
|
27
31
|
* Управление нативным режимом на мобильных устройствах
|
|
@@ -10,6 +10,10 @@ import 'date-fns/parse';
|
|
|
10
10
|
const styles = {"nativeInput":"date-input__nativeInput_1l5r0"};
|
|
11
11
|
require('./index.css');
|
|
12
12
|
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated
|
|
15
|
+
* use UniversalDateInput instead
|
|
16
|
+
*/
|
|
13
17
|
const DateInput = forwardRef(({ mobileMode = 'input', defaultValue = '', rightAddons, error, value: propValue, onBlur, onChange, onComplete, ...restProps }, ref) => {
|
|
14
18
|
const inputRef = useRef(null);
|
|
15
19
|
const [shouldRenderNative, setShouldRenderNative] = useState(false);
|