@alfalab/core-components 42.2.1-beta.0 → 42.3.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 +12 -3
- package/bottom-sheet/cssm/component.js +11 -2
- package/bottom-sheet/cssm/index.module.css +6 -5
- package/bottom-sheet/cssm/types.d.ts +9 -1
- package/bottom-sheet/esm/component.js +12 -3
- package/bottom-sheet/esm/index.css +6 -5
- package/bottom-sheet/esm/types.d.ts +9 -1
- package/bottom-sheet/index.css +6 -5
- package/bottom-sheet/modern/component.js +12 -3
- package/bottom-sheet/modern/index.css +6 -5
- package/bottom-sheet/modern/types.d.ts +9 -1
- package/bottom-sheet/types.d.ts +9 -1
- package/calendar/Component-63dec22f.d.ts +18 -1
- package/calendar/cssm/Component-63dec22f.d.ts +18 -1
- package/calendar/cssm/types-1b036d4b.d.ts +13 -0
- package/calendar/cssm/useSkeleton-1b036d4b.d.ts +40 -0
- package/calendar/esm/Component-63dec22f.d.ts +18 -1
- package/calendar/esm/types-1b036d4b.d.ts +13 -0
- package/calendar/esm/useSkeleton-1b036d4b.d.ts +40 -0
- package/calendar/modern/Component-63dec22f.d.ts +18 -1
- package/calendar/modern/types-1b036d4b.d.ts +13 -0
- package/calendar/modern/useSkeleton-1b036d4b.d.ts +40 -0
- package/calendar/types-1b036d4b.d.ts +13 -0
- package/calendar/useSkeleton-1b036d4b.d.ts +40 -0
- package/calendar-input/Component-63dec22f.d.ts +18 -1
- package/calendar-input/components/calendar-input/Component.js +2 -6
- package/calendar-input/cssm/Component-63dec22f.d.ts +18 -1
- package/calendar-input/cssm/components/calendar-input/Component.js +2 -6
- package/calendar-input/cssm/types-1b036d4b.d.ts +13 -0
- package/calendar-input/cssm/useSkeleton-1b036d4b.d.ts +40 -0
- package/calendar-input/esm/Component-63dec22f.d.ts +18 -1
- package/calendar-input/esm/components/calendar-input/Component.js +2 -6
- package/calendar-input/esm/types-1b036d4b.d.ts +13 -0
- package/calendar-input/esm/useSkeleton-1b036d4b.d.ts +40 -0
- package/calendar-input/modern/Component-63dec22f.d.ts +18 -1
- package/calendar-input/modern/components/calendar-input/Component.js +2 -6
- package/calendar-input/modern/types-1b036d4b.d.ts +13 -0
- package/calendar-input/modern/useSkeleton-1b036d4b.d.ts +40 -0
- package/calendar-input/types-1b036d4b.d.ts +13 -0
- package/calendar-input/useSkeleton-1b036d4b.d.ts +40 -0
- package/checkbox-group/components/base-checkbox-group/index.css +0 -6
- package/checkbox-group/cssm/components/base-checkbox-group/index.module.css +0 -6
- package/checkbox-group/cssm/desktop.module.css +7 -1
- package/checkbox-group/cssm/mobile.module.css +7 -1
- package/checkbox-group/desktop.css +7 -1
- package/checkbox-group/esm/components/base-checkbox-group/index.css +0 -6
- package/checkbox-group/esm/desktop.css +7 -1
- package/checkbox-group/esm/mobile.css +7 -1
- package/checkbox-group/mobile.css +7 -1
- package/checkbox-group/modern/components/base-checkbox-group/index.css +0 -6
- package/checkbox-group/modern/desktop.css +7 -1
- package/checkbox-group/modern/mobile.css +7 -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-63dec22f.d.ts +18 -1
- package/custom-picker-button/component-50136800.d.ts +1 -1
- package/custom-picker-button/cssm/Component-63dec22f.d.ts +18 -1
- package/custom-picker-button/cssm/component-50136800.d.ts +1 -1
- package/custom-picker-button/cssm/index-f12ee135.d.ts +1 -1
- package/custom-picker-button/cssm/shared-4cd3936b.d.ts +1 -29
- package/custom-picker-button/cssm/types-1b036d4b.d.ts +13 -0
- package/custom-picker-button/cssm/{types-d9f9bbcc.d.ts → types-92653002.d.ts} +9 -1
- package/custom-picker-button/cssm/useSkeleton-ebda875c.d.ts +12 -0
- package/custom-picker-button/esm/Component-63dec22f.d.ts +18 -1
- package/custom-picker-button/esm/component-50136800.d.ts +1 -1
- package/custom-picker-button/esm/index-f12ee135.d.ts +1 -1
- package/custom-picker-button/esm/shared-4cd3936b.d.ts +1 -29
- package/custom-picker-button/esm/types-1b036d4b.d.ts +13 -0
- package/custom-picker-button/esm/{types-d9f9bbcc.d.ts → types-92653002.d.ts} +9 -1
- package/custom-picker-button/esm/useSkeleton-ebda875c.d.ts +12 -0
- package/custom-picker-button/index-f12ee135.d.ts +1 -1
- package/custom-picker-button/modern/Component-63dec22f.d.ts +18 -1
- package/custom-picker-button/modern/component-50136800.d.ts +1 -1
- package/custom-picker-button/modern/index-f12ee135.d.ts +1 -1
- package/custom-picker-button/modern/shared-4cd3936b.d.ts +1 -29
- package/custom-picker-button/modern/types-1b036d4b.d.ts +13 -0
- package/custom-picker-button/modern/{types-d9f9bbcc.d.ts → types-92653002.d.ts} +9 -1
- package/custom-picker-button/modern/useSkeleton-ebda875c.d.ts +12 -0
- package/custom-picker-button/shared-4cd3936b.d.ts +1 -29
- package/custom-picker-button/types-1b036d4b.d.ts +13 -0
- package/custom-picker-button/{types-d9f9bbcc.d.ts → types-92653002.d.ts} +9 -1
- package/custom-picker-button/useSkeleton-ebda875c.d.ts +12 -0
- package/date-range-input/Component-63dec22f.d.ts +18 -1
- package/date-range-input/components/date-range-input/Component.js +2 -4
- package/date-range-input/cssm/Component-63dec22f.d.ts +18 -1
- package/date-range-input/cssm/components/date-range-input/Component.js +2 -4
- package/date-range-input/cssm/types-1b036d4b.d.ts +13 -0
- package/date-range-input/cssm/useSkeleton-1b036d4b.d.ts +40 -0
- package/date-range-input/esm/Component-63dec22f.d.ts +18 -1
- package/date-range-input/esm/components/date-range-input/Component.js +2 -4
- package/date-range-input/esm/types-1b036d4b.d.ts +13 -0
- package/date-range-input/esm/useSkeleton-1b036d4b.d.ts +40 -0
- package/date-range-input/modern/Component-63dec22f.d.ts +18 -1
- package/date-range-input/modern/components/date-range-input/Component.js +2 -4
- package/date-range-input/modern/types-1b036d4b.d.ts +13 -0
- package/date-range-input/modern/useSkeleton-1b036d4b.d.ts +40 -0
- package/date-range-input/types-1b036d4b.d.ts +13 -0
- package/date-range-input/useSkeleton-1b036d4b.d.ts +40 -0
- package/date-time-input/Component-63dec22f.d.ts +18 -1
- package/date-time-input/components/date-time-input/Component.js +1 -1
- package/date-time-input/cssm/Component-63dec22f.d.ts +18 -1
- package/date-time-input/cssm/components/date-time-input/Component.js +1 -1
- package/date-time-input/cssm/types-1b036d4b.d.ts +13 -0
- package/date-time-input/cssm/useSkeleton-1b036d4b.d.ts +40 -0
- package/date-time-input/esm/Component-63dec22f.d.ts +18 -1
- package/date-time-input/esm/components/date-time-input/Component.js +1 -1
- package/date-time-input/esm/types-1b036d4b.d.ts +13 -0
- package/date-time-input/esm/useSkeleton-1b036d4b.d.ts +40 -0
- package/date-time-input/modern/Component-63dec22f.d.ts +18 -1
- package/date-time-input/modern/components/date-time-input/Component.js +1 -1
- package/date-time-input/modern/types-1b036d4b.d.ts +13 -0
- package/date-time-input/modern/useSkeleton-1b036d4b.d.ts +40 -0
- package/date-time-input/types-1b036d4b.d.ts +13 -0
- package/date-time-input/useSkeleton-1b036d4b.d.ts +40 -0
- package/drawer/cssm/index.module.css +2 -1
- package/drawer/esm/index.css +2 -1
- package/drawer/index.css +2 -1
- package/drawer/modern/index.css +2 -1
- 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/input-autocomplete/Component-63dec22f.d.ts +18 -1
- package/input-autocomplete/component-50136800.d.ts +1 -1
- package/input-autocomplete/cssm/Component-63dec22f.d.ts +18 -1
- package/input-autocomplete/cssm/component-50136800.d.ts +1 -1
- package/input-autocomplete/cssm/index-f12ee135.d.ts +1 -1
- package/input-autocomplete/cssm/shared-4cd3936b.d.ts +1 -29
- package/input-autocomplete/cssm/types-1b036d4b.d.ts +13 -0
- package/input-autocomplete/cssm/types-92653002.d.ts +267 -0
- package/input-autocomplete/cssm/useSkeleton-ebda875c.d.ts +12 -0
- package/input-autocomplete/esm/Component-63dec22f.d.ts +18 -1
- package/input-autocomplete/esm/component-50136800.d.ts +1 -1
- package/input-autocomplete/esm/index-f12ee135.d.ts +1 -1
- package/input-autocomplete/esm/shared-4cd3936b.d.ts +1 -29
- package/input-autocomplete/esm/types-1b036d4b.d.ts +13 -0
- package/input-autocomplete/esm/types-92653002.d.ts +267 -0
- package/input-autocomplete/esm/useSkeleton-ebda875c.d.ts +12 -0
- package/input-autocomplete/index-f12ee135.d.ts +1 -1
- package/input-autocomplete/modern/Component-63dec22f.d.ts +18 -1
- package/input-autocomplete/modern/component-50136800.d.ts +1 -1
- package/input-autocomplete/modern/index-f12ee135.d.ts +1 -1
- package/input-autocomplete/modern/shared-4cd3936b.d.ts +1 -29
- package/input-autocomplete/modern/types-1b036d4b.d.ts +13 -0
- package/input-autocomplete/modern/types-92653002.d.ts +267 -0
- package/input-autocomplete/modern/useSkeleton-ebda875c.d.ts +12 -0
- package/input-autocomplete/shared-4cd3936b.d.ts +1 -29
- package/input-autocomplete/types-1b036d4b.d.ts +13 -0
- package/input-autocomplete/types-92653002.d.ts +267 -0
- package/input-autocomplete/useSkeleton-ebda875c.d.ts +12 -0
- package/intl-phone-input/Component-63dec22f.d.ts +18 -1
- package/intl-phone-input/cssm/Component-63dec22f.d.ts +18 -1
- package/intl-phone-input/cssm/types-1b036d4b.d.ts +13 -0
- package/intl-phone-input/cssm/types-72dda473.d.ts +9 -1
- package/intl-phone-input/cssm/useSkeleton-ebda875c.d.ts +12 -0
- package/intl-phone-input/esm/Component-63dec22f.d.ts +18 -1
- package/intl-phone-input/esm/types-1b036d4b.d.ts +13 -0
- package/intl-phone-input/esm/types-72dda473.d.ts +9 -1
- package/intl-phone-input/esm/useSkeleton-ebda875c.d.ts +12 -0
- package/intl-phone-input/modern/Component-63dec22f.d.ts +18 -1
- package/intl-phone-input/modern/types-1b036d4b.d.ts +13 -0
- package/intl-phone-input/modern/types-72dda473.d.ts +9 -1
- package/intl-phone-input/modern/useSkeleton-ebda875c.d.ts +12 -0
- package/intl-phone-input/types-1b036d4b.d.ts +13 -0
- package/intl-phone-input/types-72dda473.d.ts +9 -1
- package/intl-phone-input/useSkeleton-ebda875c.d.ts +12 -0
- package/notification/cssm/index.module.css +3 -3
- package/notification/esm/index.css +3 -3
- package/notification/index.css +3 -3
- package/notification/modern/index.css +3 -3
- package/package.json +288 -1614
- package/pagination/components/tag/index.css +7 -7
- package/pagination/cssm/components/tag/index.module.css +7 -7
- package/pagination/esm/components/tag/index.css +7 -7
- package/pagination/modern/components/tag/index.css +7 -7
- package/phone-input/Component.js +11 -4
- package/phone-input/cssm/Component.js +11 -4
- package/phone-input/cssm/utils/index.d.ts +2 -1
- package/phone-input/cssm/utils/index.js +17 -0
- package/phone-input/esm/Component.js +12 -5
- package/phone-input/esm/utils/index.d.ts +2 -1
- package/phone-input/esm/utils/index.js +17 -1
- package/phone-input/modern/Component.js +13 -5
- package/phone-input/modern/utils/index.d.ts +2 -1
- package/phone-input/modern/utils/index.js +17 -1
- package/phone-input/utils/index.d.ts +2 -1
- package/phone-input/utils/index.js +17 -0
- package/picker-button/Component-63dec22f.d.ts +18 -1
- package/picker-button/cssm/Component-63dec22f.d.ts +18 -1
- package/picker-button/cssm/shared-4cd3936b.d.ts +1 -29
- package/picker-button/cssm/types-1b036d4b.d.ts +13 -0
- package/picker-button/cssm/types-72dda473.d.ts +9 -1
- package/picker-button/cssm/useSkeleton-ebda875c.d.ts +12 -0
- package/picker-button/esm/Component-63dec22f.d.ts +18 -1
- package/picker-button/esm/shared-4cd3936b.d.ts +1 -29
- package/picker-button/esm/types-1b036d4b.d.ts +13 -0
- package/picker-button/esm/types-72dda473.d.ts +9 -1
- package/picker-button/esm/useSkeleton-ebda875c.d.ts +12 -0
- package/picker-button/modern/Component-50136800.d.ts +5 -37
- package/picker-button/modern/Component-5e1b8383.d.ts +70 -3
- package/picker-button/modern/Component-63dec22f.d.ts +184 -0
- package/picker-button/modern/Component-ebda875c.d.ts +9 -98
- package/picker-button/modern/Component.desktop.d.ts +1 -1
- package/picker-button/modern/Component.mobile.d.ts +1 -1
- package/picker-button/modern/Component.modal.mobile-5e1b8383.d.ts +60 -0
- package/picker-button/modern/Component.responsive.d.ts +1 -1
- package/picker-button/modern/component-50136800.d.ts +44 -0
- package/picker-button/modern/createPaddingStyle-72dda473.d.ts +5 -0
- package/picker-button/modern/hook-9ea9e32c.d.ts +4 -4
- package/picker-button/modern/index-50136800.d.ts +2 -5
- package/picker-button/modern/index-bdb4c6b9.d.ts +2 -180
- package/picker-button/modern/index-c44170fe.d.ts +141 -3
- package/picker-button/modern/index-ebda875c.d.ts +62 -13
- package/picker-button/modern/index-f12ee135.d.ts +3 -307
- package/picker-button/modern/shared-4cd3936b.d.ts +59 -1
- package/picker-button/modern/types-1b036d4b.d.ts +13 -0
- package/picker-button/modern/types-72dda473.d.ts +267 -0
- package/picker-button/modern/useSkeleton-ebda875c.d.ts +12 -0
- package/picker-button/modern/utils-1574ad8b.d.ts +29 -0
- package/picker-button/modern/utils-49cc3c24.d.ts +8 -0
- package/picker-button/shared-4cd3936b.d.ts +1 -29
- package/picker-button/types-1b036d4b.d.ts +13 -0
- package/picker-button/types-72dda473.d.ts +9 -1
- package/picker-button/useSkeleton-ebda875c.d.ts +12 -0
- package/popup-sheet/cssm/types-1b036d4b.d.ts +13 -0
- package/popup-sheet/cssm/useSkeleton-1b036d4b.d.ts +40 -0
- package/popup-sheet/esm/types-1b036d4b.d.ts +13 -0
- package/popup-sheet/esm/useSkeleton-1b036d4b.d.ts +40 -0
- package/popup-sheet/modern/types-1b036d4b.d.ts +13 -0
- package/popup-sheet/modern/useSkeleton-1b036d4b.d.ts +40 -0
- package/popup-sheet/types-1b036d4b.d.ts +13 -0
- package/popup-sheet/useSkeleton-1b036d4b.d.ts +40 -0
- 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/radio-group/components/base-radio-group/index.css +0 -6
- package/radio-group/cssm/components/base-radio-group/index.module.css +0 -6
- package/radio-group/cssm/desktop.module.css +7 -1
- package/radio-group/cssm/mobile.module.css +7 -1
- package/radio-group/desktop.css +7 -1
- package/radio-group/esm/components/base-radio-group/index.css +0 -6
- package/radio-group/esm/desktop.css +7 -1
- package/radio-group/esm/mobile.css +7 -1
- package/radio-group/mobile.css +7 -1
- package/radio-group/modern/components/base-radio-group/index.css +0 -6
- package/radio-group/modern/desktop.css +7 -1
- package/radio-group/modern/mobile.css +7 -1
- package/select/Component.mobile-f1f15074.d.ts +29 -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.mobile-f1f15074.d.ts +18 -1
- package/select/cssm/types-1b036d4b.d.ts +13 -0
- package/select/cssm/useSkeleton-1b036d4b.d.ts +12 -0
- package/select/esm/Component.mobile-f1f15074.d.ts +18 -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.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/esm/types-1b036d4b.d.ts +13 -0
- package/select/esm/useSkeleton-1b036d4b.d.ts +12 -0
- package/select/index.js +1 -1
- package/select/mobile.js +1 -1
- package/select/modern/Component.mobile-f1f15074.d.ts +18 -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/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/modern/types-1b036d4b.d.ts +13 -0
- package/select/modern/useSkeleton-1b036d4b.d.ts +12 -0
- 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/types-1b036d4b.d.ts +13 -0
- package/select/useSkeleton-1b036d4b.d.ts +12 -0
- package/select-with-tags/Component-63dec22f.d.ts +18 -1
- package/select-with-tags/cssm/Component-63dec22f.d.ts +18 -1
- package/select-with-tags/cssm/shared-4cd3936b.d.ts +1 -28
- package/select-with-tags/cssm/types-1b036d4b.d.ts +13 -0
- package/select-with-tags/cssm/types-72dda473.d.ts +9 -1
- package/select-with-tags/cssm/useSkeleton-ebda875c.d.ts +12 -0
- package/select-with-tags/esm/Component-63dec22f.d.ts +18 -1
- package/select-with-tags/esm/shared-4cd3936b.d.ts +1 -28
- package/select-with-tags/esm/types-1b036d4b.d.ts +13 -0
- package/select-with-tags/esm/types-72dda473.d.ts +9 -1
- package/select-with-tags/esm/useSkeleton-ebda875c.d.ts +12 -0
- package/select-with-tags/modern/Component-63dec22f.d.ts +18 -1
- package/select-with-tags/modern/shared-4cd3936b.d.ts +1 -28
- package/select-with-tags/modern/types-1b036d4b.d.ts +13 -0
- package/select-with-tags/modern/types-72dda473.d.ts +9 -1
- package/select-with-tags/modern/useSkeleton-ebda875c.d.ts +12 -0
- package/select-with-tags/shared-4cd3936b.d.ts +1 -28
- package/select-with-tags/types-1b036d4b.d.ts +13 -0
- package/select-with-tags/types-72dda473.d.ts +9 -1
- package/select-with-tags/useSkeleton-ebda875c.d.ts +12 -0
- package/side-panel/cssm/desktop.module.css +1 -1
- package/side-panel/cssm/mobile.module.css +3 -2
- package/side-panel/desktop.css +1 -1
- package/side-panel/esm/desktop.css +1 -1
- package/side-panel/esm/mobile.css +3 -2
- package/side-panel/mobile.css +3 -2
- package/side-panel/modern/desktop.css +1 -1
- package/side-panel/modern/mobile.css +3 -2
- package/table/Component-63dec22f.d.ts +18 -1
- package/table/cssm/Component-63dec22f.d.ts +18 -1
- package/table/cssm/types-1b036d4b.d.ts +13 -0
- package/table/cssm/types-72dda473.d.ts +9 -1
- package/table/cssm/useSkeleton-ebda875c.d.ts +12 -0
- package/table/esm/Component-63dec22f.d.ts +18 -1
- package/table/esm/types-1b036d4b.d.ts +13 -0
- package/table/esm/types-72dda473.d.ts +9 -1
- package/table/esm/useSkeleton-ebda875c.d.ts +12 -0
- package/table/modern/Component-63dec22f.d.ts +18 -1
- package/table/modern/types-1b036d4b.d.ts +13 -0
- package/table/modern/types-72dda473.d.ts +9 -1
- package/table/modern/useSkeleton-ebda875c.d.ts +12 -0
- package/table/types-1b036d4b.d.ts +13 -0
- package/table/types-72dda473.d.ts +9 -1
- package/table/useSkeleton-ebda875c.d.ts +12 -0
- package/tabs/Component-63dec22f.d.ts +18 -1
- package/tabs/cssm/Component-63dec22f.d.ts +18 -1
- package/tabs/cssm/index-f12ee135.d.ts +9 -1
- package/tabs/cssm/shared-4cd3936b.d.ts +1 -28
- package/tabs/cssm/types-1b036d4b.d.ts +13 -0
- package/tabs/cssm/useSkeleton-ebda875c.d.ts +12 -0
- package/tabs/esm/Component-63dec22f.d.ts +18 -1
- package/tabs/esm/index-f12ee135.d.ts +9 -1
- package/tabs/esm/shared-4cd3936b.d.ts +1 -28
- package/tabs/esm/types-1b036d4b.d.ts +13 -0
- package/tabs/esm/useSkeleton-ebda875c.d.ts +12 -0
- package/tabs/index-ebda875c.d.ts +86 -21
- package/tabs/index-f12ee135.d.ts +9 -1
- package/tabs/modern/Component-63dec22f.d.ts +18 -1
- package/tabs/modern/index-f12ee135.d.ts +9 -1
- package/tabs/modern/shared-4cd3936b.d.ts +1 -28
- package/tabs/modern/types-1b036d4b.d.ts +13 -0
- package/tabs/modern/useSkeleton-ebda875c.d.ts +12 -0
- package/tabs/shared-4cd3936b.d.ts +1 -28
- package/tabs/types-1b036d4b.d.ts +13 -0
- package/tabs/useSkeleton-ebda875c.d.ts +12 -0
- package/themes/compiled/mobile-dark-bluetint.css +35 -79
- package/themes/dist/compiled/mobile-dark-bluetint.css +399 -394
- package/time-input/utils/format.js +6 -10
- package/typography/component.js +6 -2
- package/typography/cssm/component.js +5 -0
- package/typography/cssm/hooks/index.d.ts +1 -0
- package/typography/cssm/hooks/index.js +12 -0
- package/typography/cssm/hooks/use-skeleton.module.css +19 -0
- package/typography/cssm/hooks/useSkeleton.d.ts +12 -0
- package/typography/cssm/hooks/useSkeleton.js +57 -0
- package/typography/cssm/index.js +5 -0
- package/typography/cssm/text/component.d.ts +9 -1
- package/typography/cssm/text/component.js +23 -7
- package/typography/cssm/text/index.js +5 -0
- package/typography/cssm/title/component.d.ts +19 -2
- package/typography/cssm/title/component.js +16 -2
- package/typography/cssm/title/index.js +5 -0
- package/typography/cssm/title-mobile/component.js +5 -0
- package/typography/cssm/title-mobile/index.js +5 -0
- package/typography/cssm/title-responsive/component.js +5 -0
- package/typography/cssm/title-responsive/index.js +5 -0
- package/typography/cssm/types.d.ts +12 -1
- package/typography/esm/component.js +6 -2
- package/typography/esm/hooks/index.d.ts +1 -0
- package/typography/esm/hooks/index.js +5 -0
- package/typography/esm/hooks/use-skeleton.css +20 -0
- package/typography/esm/hooks/useSkeleton.d.ts +12 -0
- package/typography/esm/hooks/useSkeleton.js +52 -0
- package/typography/esm/index.js +6 -2
- package/typography/esm/text/component.d.ts +9 -1
- package/typography/esm/text/component.js +22 -8
- package/typography/esm/text/index.js +5 -1
- package/typography/esm/title/component.d.ts +19 -2
- package/typography/esm/title/component.js +15 -3
- package/typography/esm/title/index.js +6 -2
- package/typography/esm/title-mobile/component.js +6 -2
- package/typography/esm/title-mobile/index.js +6 -2
- package/typography/esm/title-responsive/component.js +6 -2
- package/typography/esm/title-responsive/index.js +6 -2
- package/typography/esm/types.d.ts +12 -1
- package/typography/hooks/index.d.ts +1 -0
- package/typography/hooks/index.js +11 -0
- package/typography/hooks/use-skeleton.css +20 -0
- package/typography/hooks/useSkeleton.d.ts +12 -0
- package/typography/hooks/useSkeleton.js +58 -0
- package/typography/index.js +6 -2
- package/typography/modern/component.js +6 -2
- package/typography/modern/hooks/index.d.ts +1 -0
- package/typography/modern/hooks/index.js +4 -0
- package/typography/modern/hooks/use-skeleton.css +20 -0
- package/typography/modern/hooks/useSkeleton.d.ts +12 -0
- package/typography/modern/hooks/useSkeleton.js +51 -0
- package/typography/modern/index.js +6 -2
- package/typography/modern/text/component.d.ts +9 -1
- package/typography/modern/text/component.js +23 -7
- package/typography/modern/text/index.js +5 -1
- package/typography/modern/title/component.d.ts +19 -2
- package/typography/modern/title/component.js +16 -2
- package/typography/modern/title/index.js +6 -2
- package/typography/modern/title-mobile/component.js +6 -2
- package/typography/modern/title-mobile/index.js +6 -2
- package/typography/modern/title-responsive/component.js +6 -2
- package/typography/modern/title-responsive/index.js +6 -2
- package/typography/modern/types.d.ts +12 -1
- package/typography/text/component.d.ts +9 -1
- package/typography/text/component.js +23 -8
- package/typography/text/index.js +5 -1
- package/typography/title/component.d.ts +19 -2
- package/typography/title/component.js +16 -3
- package/typography/title/index.js +6 -2
- package/typography/title-mobile/component.js +6 -2
- package/typography/title-mobile/index.js +6 -2
- package/typography/title-responsive/component.js +6 -2
- package/typography/title-responsive/index.js +6 -2
- package/typography/types.d.ts +12 -1
- package/input-autocomplete/cssm/types-d9f9bbcc.d.ts +0 -259
- package/input-autocomplete/esm/types-d9f9bbcc.d.ts +0 -259
- package/input-autocomplete/modern/types-d9f9bbcc.d.ts +0 -259
- package/input-autocomplete/types-d9f9bbcc.d.ts +0 -259
- package/picker-button/modern/Component-72dda473.d.ts +0 -53
- package/picker-button/modern/Component-aed0af6e.d.ts +0 -11
- package/picker-button/modern/Component-f12ee135.d.ts +0 -72
- package/picker-button/modern/Component.mobile-96988a65.d.ts +0 -6
- package/picker-button/modern/hook-ebda875c.d.ts +0 -48
- /package/confirmation/{countdown-section-a115a90d.d.ts → countdown-section-3c6c4c16.d.ts} +0 -0
- /package/confirmation/{countdown-section-a115a90d.js → countdown-section-3c6c4c16.js} +0 -0
- /package/confirmation/esm/{countdown-section-e5c5ba2a.d.ts → countdown-section-01e6f37a.d.ts} +0 -0
- /package/confirmation/esm/{countdown-section-e5c5ba2a.js → countdown-section-01e6f37a.js} +0 -0
- /package/confirmation/modern/{countdown-section-9981b2e8.d.ts → countdown-section-3f2be91e.d.ts} +0 -0
- /package/confirmation/modern/{countdown-section-9981b2e8.js → countdown-section-3f2be91e.js} +0 -0
- /package/gallery/{buttons-aec907b7.d.ts → buttons-e800285c.d.ts} +0 -0
- /package/gallery/{buttons-aec907b7.js → buttons-e800285c.js} +0 -0
- /package/gallery/esm/{buttons-7f6bd2e9.d.ts → buttons-5d6a28e1.d.ts} +0 -0
- /package/gallery/esm/{buttons-7f6bd2e9.js → buttons-5d6a28e1.js} +0 -0
- /package/gallery/esm/{slide-db3a4459.d.ts → slide-fe29c2f9.d.ts} +0 -0
- /package/gallery/esm/{slide-db3a4459.js → slide-fe29c2f9.js} +0 -0
- /package/gallery/modern/{buttons-fbc47df5.d.ts → buttons-efb0ad94.d.ts} +0 -0
- /package/gallery/modern/{buttons-fbc47df5.js → buttons-efb0ad94.js} +0 -0
- /package/gallery/modern/{slide-aa26f0c4.d.ts → slide-c5c99c8e.d.ts} +0 -0
- /package/gallery/modern/{slide-aa26f0c4.js → slide-c5c99c8e.js} +0 -0
- /package/gallery/{slide-cd795ee3.d.ts → slide-456e699d.d.ts} +0 -0
- /package/gallery/{slide-cd795ee3.js → slide-456e699d.js} +0 -0
- /package/picker-button/modern/{Component.responsive-d7e9f69d.d.ts → Component.responsive-3109f463.d.ts} +0 -0
- /package/pure-cell/{component-c9226b28.d.ts → component-ecba1273.d.ts} +0 -0
- /package/pure-cell/{component-c9226b28.js → component-ecba1273.js} +0 -0
- /package/pure-cell/esm/{component-dcdb60ca.d.ts → component-6cb924a1.d.ts} +0 -0
- /package/pure-cell/esm/{component-dcdb60ca.js → component-6cb924a1.js} +0 -0
- /package/pure-cell/modern/{component-68b276dc.d.ts → component-43202b7d.d.ts} +0 -0
- /package/pure-cell/modern/{component-68b276dc.js → component-43202b7d.js} +0 -0
- /package/select/esm/{hook-3c18aa89.d.ts → hook-d40b4e10.d.ts} +0 -0
- /package/select/esm/{hook-3c18aa89.js → hook-d40b4e10.js} +0 -0
- /package/select/{hook-d0725060.d.ts → hook-43a35a80.d.ts} +0 -0
- /package/select/{hook-d0725060.js → hook-43a35a80.js} +0 -0
- /package/select/modern/{hook-0d1c88d2.d.ts → hook-d771f2ed.d.ts} +0 -0
- /package/select/modern/{hook-0d1c88d2.js → hook-d771f2ed.js} +0 -0
- /package/typography/{colors.module-47b3b3d8.js → colors.module-69def6bf.js} +0 -0
- /package/typography/{common.module-940fdfee.js → common.module-59cc11ca.js} +0 -0
- /package/typography/esm/{colors.module-137b844d.js → colors.module-64858915.js} +0 -0
- /package/typography/esm/{common.module-7393f125.js → common.module-a0a4a875.js} +0 -0
- /package/typography/modern/{colors.module-554ec60a.js → colors.module-58e8caae.js} +0 -0
- /package/typography/modern/{common.module-42946f41.js → common.module-3d6095da.js} +0 -0
|
@@ -21,12 +21,12 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
21
21
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
22
22
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
23
23
|
|
|
24
|
-
var styles = {"modal":"bottom-sheet__modal_3cpay","wrapper":"bottom-sheet__wrapper_3cpay","fullscreen":"bottom-sheet__fullscreen_3cpay","component":"bottom-sheet__component_3cpay","withTransition":"bottom-sheet__withTransition_3cpay","scrollableContainer":"bottom-sheet__scrollableContainer_3cpay","marker":"bottom-sheet__marker_3cpay","content":"bottom-sheet__content_3cpay","noHeader":"bottom-sheet__noHeader_3cpay","noFooter":"bottom-sheet__noFooter_3cpay","scrollLocked":"bottom-sheet__scrollLocked_3cpay","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_3cpay","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_3cpay","appear":"bottom-sheet__appear_3cpay","enter":"bottom-sheet__enter_3cpay","appearActive":"bottom-sheet__appearActive_3cpay","enterActive":"bottom-sheet__enterActive_3cpay","enterDone":"bottom-sheet__enterDone_3cpay","appearDone":"bottom-sheet__appearDone_3cpay","exit":"bottom-sheet__exit_3cpay","exitActive":"bottom-sheet__exitActive_3cpay","background-accent":"bottom-sheet__background-accent_3cpay","background-info":"bottom-sheet__background-info_3cpay","background-attention-muted":"bottom-sheet__background-attention-muted_3cpay","background-positive-muted":"bottom-sheet__background-positive-muted_3cpay","background-negative-muted":"bottom-sheet__background-negative-muted_3cpay","background-primary":"bottom-sheet__background-primary_3cpay","background-primary-inverted":"bottom-sheet__background-primary-inverted_3cpay","background-secondary":"bottom-sheet__background-secondary_3cpay","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_3cpay","background-tertiary":"bottom-sheet__background-tertiary_3cpay","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_3cpay","background-quaternary":"bottom-sheet__background-quaternary_3cpay","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_3cpay","background-specialbg-component":"bottom-sheet__background-specialbg-component_3cpay","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_3cpay","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_3cpay","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_3cpay","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_3cpay","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_3cpay","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_3cpay","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_3cpay","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_3cpay"};
|
|
24
|
+
var styles = {"modal":"bottom-sheet__modal_3cpay","wrapper":"bottom-sheet__wrapper_3cpay","fullscreen":"bottom-sheet__fullscreen_3cpay","component":"bottom-sheet__component_3cpay","withTransition":"bottom-sheet__withTransition_3cpay","scrollableContainer":"bottom-sheet__scrollableContainer_3cpay","marker":"bottom-sheet__marker_3cpay","defaultMarker":"bottom-sheet__defaultMarker_3cpay","content":"bottom-sheet__content_3cpay","noHeader":"bottom-sheet__noHeader_3cpay","noFooter":"bottom-sheet__noFooter_3cpay","scrollLocked":"bottom-sheet__scrollLocked_3cpay","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_3cpay","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_3cpay","appear":"bottom-sheet__appear_3cpay","enter":"bottom-sheet__enter_3cpay","appearActive":"bottom-sheet__appearActive_3cpay","enterActive":"bottom-sheet__enterActive_3cpay","enterDone":"bottom-sheet__enterDone_3cpay","appearDone":"bottom-sheet__appearDone_3cpay","exit":"bottom-sheet__exit_3cpay","exitActive":"bottom-sheet__exitActive_3cpay","background-accent":"bottom-sheet__background-accent_3cpay","background-info":"bottom-sheet__background-info_3cpay","background-attention-muted":"bottom-sheet__background-attention-muted_3cpay","background-positive-muted":"bottom-sheet__background-positive-muted_3cpay","background-negative-muted":"bottom-sheet__background-negative-muted_3cpay","background-primary":"bottom-sheet__background-primary_3cpay","background-primary-inverted":"bottom-sheet__background-primary-inverted_3cpay","background-secondary":"bottom-sheet__background-secondary_3cpay","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_3cpay","background-tertiary":"bottom-sheet__background-tertiary_3cpay","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_3cpay","background-quaternary":"bottom-sheet__background-quaternary_3cpay","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_3cpay","background-specialbg-component":"bottom-sheet__background-specialbg-component_3cpay","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_3cpay","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_3cpay","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_3cpay","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_3cpay","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_3cpay","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_3cpay","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_3cpay","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_3cpay"};
|
|
25
25
|
require('./index.css');
|
|
26
26
|
|
|
27
27
|
var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
28
28
|
var _b, _c, _d, _e, _f;
|
|
29
|
-
var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, subtitle = _a.subtitle, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _h = _a.titleAlign, titleAlign = _h === void 0 ? 'left' : _h, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _j = _a.stickyFooter, stickyFooter = _j === void 0 ? true : _j, _k = _a.initialHeight, initialHeight = _k === void 0 ? 'default' : _k, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _l = _a.transitionProps, transitionProps = _l === void 0 ? {} : _l, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _m = _a.swipeable, swipeable = _m === void 0 ? true : _m, _o = _a.swipeableContent, swipeableContent = _o === void 0 ? true : _o, _p = _a.swipeThreshold, swipeThreshold = _p === void 0 ? 5 : _p, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _q = _a.scrollableContainerRef, scrollableContainerRef = _q === void 0 ? function () { return null; } : _q, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _r = _a.sheetContainerRef, sheetContainerRef = _r === void 0 ? function () { return null; } : _r, _s = _a.headerOffset, headerOffset = _s === void 0 ? 24 : _s, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted, onMagnetizeEnd = _a.onMagnetizeEnd, onOffsetChange = _a.onOffsetChange;
|
|
29
|
+
var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, subtitle = _a.subtitle, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _h = _a.titleAlign, titleAlign = _h === void 0 ? 'left' : _h, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _j = _a.stickyFooter, stickyFooter = _j === void 0 ? true : _j, _k = _a.initialHeight, initialHeight = _k === void 0 ? 'default' : _k, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _l = _a.transitionProps, transitionProps = _l === void 0 ? {} : _l, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _m = _a.swipeable, swipeable = _m === void 0 ? true : _m, _o = _a.swipeableContent, swipeableContent = _o === void 0 ? true : _o, _p = _a.swipeThreshold, swipeThreshold = _p === void 0 ? 5 : _p, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _q = _a.scrollableContainerRef, scrollableContainerRef = _q === void 0 ? function () { return null; } : _q, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _r = _a.sheetContainerRef, sheetContainerRef = _r === void 0 ? function () { return null; } : _r, _s = _a.headerOffset, headerOffset = _s === void 0 ? 24 : _s, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted, onMagnetizeEnd = _a.onMagnetizeEnd, onOffsetChange = _a.onOffsetChange, swipeableMarker = _a.swipeableMarker, swipeableMarkerClassName = _a.swipeableMarkerClassName;
|
|
30
30
|
var hasInitialIdx = initialActiveAreaIndex !== undefined;
|
|
31
31
|
var fullHeight = reactDiv100vh.use100vh() || 0;
|
|
32
32
|
// Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
|
|
@@ -292,6 +292,15 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
292
292
|
height: !isFirstRender && initialHeight === 'full' ? "".concat(lastMagneticArea, "px") : 'unset',
|
|
293
293
|
maxHeight: isFirstRender ? 0 : "".concat(lastMagneticArea, "px"),
|
|
294
294
|
}); };
|
|
295
|
+
var renderMarker = function () {
|
|
296
|
+
if (swipeable) {
|
|
297
|
+
if (swipeableMarker) {
|
|
298
|
+
return (React__default.default.createElement("div", { className: cn__default.default(styles.marker, swipeableMarkerClassName) }, swipeableMarker));
|
|
299
|
+
}
|
|
300
|
+
return (React__default.default.createElement("div", { className: cn__default.default(styles.marker, styles.defaultMarker, swipeableMarkerClassName) }));
|
|
301
|
+
}
|
|
302
|
+
return null;
|
|
303
|
+
};
|
|
295
304
|
var bgClassName = backgroundColor && styles["background-".concat(backgroundColor)];
|
|
296
305
|
return (React__default.default.createElement(coreComponentsBaseModal.BaseModal, { open: open, ref: ref, container: container, dataTestId: dataTestId, zIndex: zIndex, onClose: onClose, usePortal: usePortal, scrollHandler: scrollableContainer, Backdrop: components_swipeableBackdrop_Component.SwipeableBackdrop, backdropProps: tslib.__assign(tslib.__assign({}, backdropProps), { className: styles.disabledPointerEvents, opacity: backdropOpacity, opacityTimeout: utils.TIMEOUT, invisible: hideOverlay }), disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: cn__default.default(styles.modal, modalClassName), wrapperClassName: cn__default.default(modalWrapperClassName, (_b = {},
|
|
297
306
|
_b[styles.disabledPointerEvents] = hideOverlay,
|
|
@@ -302,11 +311,11 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
302
311
|
React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(styles.component, bgClassName, className, (_d = {},
|
|
303
312
|
_d[styles.withTransition] = swipingInProgress === false,
|
|
304
313
|
_d)), style: tslib.__assign(tslib.__assign({}, getSwipeStyles()), getHeightStyles()) }, sheetSwipeableHandlers, { ref: mergeRefs__default.default([sheetRef, sheetContainerRef, sheetSwipeableHandlers.ref]), onTransitionEnd: handleTransitionEnd }),
|
|
314
|
+
renderMarker(),
|
|
305
315
|
React__default.default.createElement("div", tslib.__assign({}, containerProps, { className: cn__default.default(styles.scrollableContainer, containerProps === null || containerProps === void 0 ? void 0 : containerProps.className, containerClassName, (_e = {},
|
|
306
316
|
_e[styles.scrollLocked] = scrollLockedProp || swipingInProgress,
|
|
307
317
|
_e[styles.hiddenScrollbar] = hideScrollbar,
|
|
308
318
|
_e)), ref: mergeRefs__default.default([scrollableContainer, scrollableContainerRef]) }),
|
|
309
|
-
swipeable && React__default.default.createElement("div", { className: cn__default.default(styles.marker) }),
|
|
310
319
|
!hideHeader && !emptyHeader && React__default.default.createElement(components_header_Component.Header, tslib.__assign({}, headerProps)),
|
|
311
320
|
React__default.default.createElement("div", { ref: contentRef, className: cn__default.default(styles.content, contentClassName, (_f = {},
|
|
312
321
|
_f[styles.noHeader] = hideHeader || emptyHeader,
|
|
@@ -27,7 +27,7 @@ var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
|
|
|
27
27
|
|
|
28
28
|
var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
29
29
|
var _b, _c, _d, _e, _f;
|
|
30
|
-
var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, subtitle = _a.subtitle, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _h = _a.titleAlign, titleAlign = _h === void 0 ? 'left' : _h, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _j = _a.stickyFooter, stickyFooter = _j === void 0 ? true : _j, _k = _a.initialHeight, initialHeight = _k === void 0 ? 'default' : _k, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _l = _a.transitionProps, transitionProps = _l === void 0 ? {} : _l, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _m = _a.swipeable, swipeable = _m === void 0 ? true : _m, _o = _a.swipeableContent, swipeableContent = _o === void 0 ? true : _o, _p = _a.swipeThreshold, swipeThreshold = _p === void 0 ? 5 : _p, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _q = _a.scrollableContainerRef, scrollableContainerRef = _q === void 0 ? function () { return null; } : _q, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _r = _a.sheetContainerRef, sheetContainerRef = _r === void 0 ? function () { return null; } : _r, _s = _a.headerOffset, headerOffset = _s === void 0 ? 24 : _s, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted, onMagnetizeEnd = _a.onMagnetizeEnd, onOffsetChange = _a.onOffsetChange;
|
|
30
|
+
var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, subtitle = _a.subtitle, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _h = _a.titleAlign, titleAlign = _h === void 0 ? 'left' : _h, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _j = _a.stickyFooter, stickyFooter = _j === void 0 ? true : _j, _k = _a.initialHeight, initialHeight = _k === void 0 ? 'default' : _k, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _l = _a.transitionProps, transitionProps = _l === void 0 ? {} : _l, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _m = _a.swipeable, swipeable = _m === void 0 ? true : _m, _o = _a.swipeableContent, swipeableContent = _o === void 0 ? true : _o, _p = _a.swipeThreshold, swipeThreshold = _p === void 0 ? 5 : _p, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _q = _a.scrollableContainerRef, scrollableContainerRef = _q === void 0 ? function () { return null; } : _q, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _r = _a.sheetContainerRef, sheetContainerRef = _r === void 0 ? function () { return null; } : _r, _s = _a.headerOffset, headerOffset = _s === void 0 ? 24 : _s, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted, onMagnetizeEnd = _a.onMagnetizeEnd, onOffsetChange = _a.onOffsetChange, swipeableMarker = _a.swipeableMarker, swipeableMarkerClassName = _a.swipeableMarkerClassName;
|
|
31
31
|
var hasInitialIdx = initialActiveAreaIndex !== undefined;
|
|
32
32
|
var fullHeight = reactDiv100vh.use100vh() || 0;
|
|
33
33
|
// Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
|
|
@@ -293,6 +293,15 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
293
293
|
height: !isFirstRender && initialHeight === 'full' ? "".concat(lastMagneticArea, "px") : 'unset',
|
|
294
294
|
maxHeight: isFirstRender ? 0 : "".concat(lastMagneticArea, "px"),
|
|
295
295
|
}); };
|
|
296
|
+
var renderMarker = function () {
|
|
297
|
+
if (swipeable) {
|
|
298
|
+
if (swipeableMarker) {
|
|
299
|
+
return (React__default.default.createElement("div", { className: cn__default.default(styles__default.default.marker, swipeableMarkerClassName) }, swipeableMarker));
|
|
300
|
+
}
|
|
301
|
+
return (React__default.default.createElement("div", { className: cn__default.default(styles__default.default.marker, styles__default.default.defaultMarker, swipeableMarkerClassName) }));
|
|
302
|
+
}
|
|
303
|
+
return null;
|
|
304
|
+
};
|
|
296
305
|
var bgClassName = backgroundColor && styles__default.default["background-".concat(backgroundColor)];
|
|
297
306
|
return (React__default.default.createElement(coreComponentsBaseModal.BaseModal, { open: open, ref: ref, container: container, dataTestId: dataTestId, zIndex: zIndex, onClose: onClose, usePortal: usePortal, scrollHandler: scrollableContainer, Backdrop: components_swipeableBackdrop_Component.SwipeableBackdrop, backdropProps: tslib.__assign(tslib.__assign({}, backdropProps), { className: styles__default.default.disabledPointerEvents, opacity: backdropOpacity, opacityTimeout: utils.TIMEOUT, invisible: hideOverlay }), disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: cn__default.default(styles__default.default.modal, modalClassName), wrapperClassName: cn__default.default(modalWrapperClassName, (_b = {},
|
|
298
307
|
_b[styles__default.default.disabledPointerEvents] = hideOverlay,
|
|
@@ -303,11 +312,11 @@ var BottomSheet = React.forwardRef(function (_a, ref) {
|
|
|
303
312
|
React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(styles__default.default.component, bgClassName, className, (_d = {},
|
|
304
313
|
_d[styles__default.default.withTransition] = swipingInProgress === false,
|
|
305
314
|
_d)), style: tslib.__assign(tslib.__assign({}, getSwipeStyles()), getHeightStyles()) }, sheetSwipeableHandlers, { ref: mergeRefs__default.default([sheetRef, sheetContainerRef, sheetSwipeableHandlers.ref]), onTransitionEnd: handleTransitionEnd }),
|
|
315
|
+
renderMarker(),
|
|
306
316
|
React__default.default.createElement("div", tslib.__assign({}, containerProps, { className: cn__default.default(styles__default.default.scrollableContainer, containerProps === null || containerProps === void 0 ? void 0 : containerProps.className, containerClassName, (_e = {},
|
|
307
317
|
_e[styles__default.default.scrollLocked] = scrollLockedProp || swipingInProgress,
|
|
308
318
|
_e[styles__default.default.hiddenScrollbar] = hideScrollbar,
|
|
309
319
|
_e)), ref: mergeRefs__default.default([scrollableContainer, scrollableContainerRef]) }),
|
|
310
|
-
swipeable && React__default.default.createElement("div", { className: cn__default.default(styles__default.default.marker) }),
|
|
311
320
|
!hideHeader && !emptyHeader && React__default.default.createElement(components_header_Component.Header, tslib.__assign({}, headerProps)),
|
|
312
321
|
React__default.default.createElement("div", { ref: contentRef, className: cn__default.default(styles__default.default.content, contentClassName, (_f = {},
|
|
313
322
|
_f[styles__default.default.noHeader] = hideHeader || emptyHeader,
|
|
@@ -53,7 +53,6 @@
|
|
|
53
53
|
pointer-events: none;
|
|
54
54
|
} .wrapper {
|
|
55
55
|
transform: translateY(100%);
|
|
56
|
-
overflow: hidden;
|
|
57
56
|
pointer-events: none;
|
|
58
57
|
border-top-right-radius: var(--border-radius-xl);
|
|
59
58
|
border-top-left-radius: var(--border-radius-xl);
|
|
@@ -61,7 +60,6 @@
|
|
|
61
60
|
} .fullscreen {
|
|
62
61
|
border-radius: 0;
|
|
63
62
|
} .component {
|
|
64
|
-
overflow: hidden;
|
|
65
63
|
position: relative;
|
|
66
64
|
display: flex;
|
|
67
65
|
flex-direction: column;
|
|
@@ -77,16 +75,19 @@
|
|
|
77
75
|
position: relative;
|
|
78
76
|
height: 100%;
|
|
79
77
|
background-color: inherit;
|
|
78
|
+
border-radius: inherit;
|
|
80
79
|
} .marker {
|
|
81
80
|
position: fixed;
|
|
82
81
|
top: var(--gap-2xs);
|
|
83
|
-
|
|
82
|
+
right: 0;
|
|
83
|
+
left: 0;
|
|
84
|
+
z-index: 1000;
|
|
84
85
|
width: 36px;
|
|
86
|
+
margin: 0 auto;
|
|
87
|
+
} .defaultMarker {
|
|
85
88
|
height: 4px;
|
|
86
89
|
border-radius: var(--border-radius-xxl);
|
|
87
|
-
transform: translateX(-50%);
|
|
88
90
|
background-color: var(--color-light-graphic-quaternary);
|
|
89
|
-
z-index: 1000;
|
|
90
91
|
} .content {
|
|
91
92
|
position: relative;
|
|
92
93
|
z-index: 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react-transition-group" />
|
|
2
|
-
import { HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
|
|
3
3
|
import { TransitionProps } from 'react-transition-group/Transition';
|
|
4
4
|
import { BaseModalProps } from "../../base-modal";
|
|
5
5
|
import { NavigationBarProps } from "../../navigation-bar";
|
|
@@ -88,6 +88,14 @@ type BottomSheetProps = {
|
|
|
88
88
|
* Дополнительный класс для обертки модального окна
|
|
89
89
|
*/
|
|
90
90
|
modalWrapperClassName?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Дополнительный класс для маркера
|
|
93
|
+
*/
|
|
94
|
+
swipeableMarkerClassName?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Кастомный маркер
|
|
97
|
+
*/
|
|
98
|
+
swipeableMarker?: ReactElement;
|
|
91
99
|
/**
|
|
92
100
|
* TransitionProps, прокидываются в компонент CSSTransitionProps.
|
|
93
101
|
*/
|
|
@@ -13,12 +13,12 @@ import { convertPercentToNumber, TIMEOUT, MARKER_HEIGHT, SCROLL_OFFSET, SWIPE_VE
|
|
|
13
13
|
import '../../navigation-bar/esm';
|
|
14
14
|
import '../../backdrop/esm';
|
|
15
15
|
|
|
16
|
-
var styles = {"modal":"bottom-sheet__modal_3cpay","wrapper":"bottom-sheet__wrapper_3cpay","fullscreen":"bottom-sheet__fullscreen_3cpay","component":"bottom-sheet__component_3cpay","withTransition":"bottom-sheet__withTransition_3cpay","scrollableContainer":"bottom-sheet__scrollableContainer_3cpay","marker":"bottom-sheet__marker_3cpay","content":"bottom-sheet__content_3cpay","noHeader":"bottom-sheet__noHeader_3cpay","noFooter":"bottom-sheet__noFooter_3cpay","scrollLocked":"bottom-sheet__scrollLocked_3cpay","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_3cpay","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_3cpay","appear":"bottom-sheet__appear_3cpay","enter":"bottom-sheet__enter_3cpay","appearActive":"bottom-sheet__appearActive_3cpay","enterActive":"bottom-sheet__enterActive_3cpay","enterDone":"bottom-sheet__enterDone_3cpay","appearDone":"bottom-sheet__appearDone_3cpay","exit":"bottom-sheet__exit_3cpay","exitActive":"bottom-sheet__exitActive_3cpay","background-accent":"bottom-sheet__background-accent_3cpay","background-info":"bottom-sheet__background-info_3cpay","background-attention-muted":"bottom-sheet__background-attention-muted_3cpay","background-positive-muted":"bottom-sheet__background-positive-muted_3cpay","background-negative-muted":"bottom-sheet__background-negative-muted_3cpay","background-primary":"bottom-sheet__background-primary_3cpay","background-primary-inverted":"bottom-sheet__background-primary-inverted_3cpay","background-secondary":"bottom-sheet__background-secondary_3cpay","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_3cpay","background-tertiary":"bottom-sheet__background-tertiary_3cpay","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_3cpay","background-quaternary":"bottom-sheet__background-quaternary_3cpay","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_3cpay","background-specialbg-component":"bottom-sheet__background-specialbg-component_3cpay","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_3cpay","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_3cpay","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_3cpay","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_3cpay","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_3cpay","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_3cpay","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_3cpay","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_3cpay"};
|
|
16
|
+
var styles = {"modal":"bottom-sheet__modal_3cpay","wrapper":"bottom-sheet__wrapper_3cpay","fullscreen":"bottom-sheet__fullscreen_3cpay","component":"bottom-sheet__component_3cpay","withTransition":"bottom-sheet__withTransition_3cpay","scrollableContainer":"bottom-sheet__scrollableContainer_3cpay","marker":"bottom-sheet__marker_3cpay","defaultMarker":"bottom-sheet__defaultMarker_3cpay","content":"bottom-sheet__content_3cpay","noHeader":"bottom-sheet__noHeader_3cpay","noFooter":"bottom-sheet__noFooter_3cpay","scrollLocked":"bottom-sheet__scrollLocked_3cpay","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_3cpay","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_3cpay","appear":"bottom-sheet__appear_3cpay","enter":"bottom-sheet__enter_3cpay","appearActive":"bottom-sheet__appearActive_3cpay","enterActive":"bottom-sheet__enterActive_3cpay","enterDone":"bottom-sheet__enterDone_3cpay","appearDone":"bottom-sheet__appearDone_3cpay","exit":"bottom-sheet__exit_3cpay","exitActive":"bottom-sheet__exitActive_3cpay","background-accent":"bottom-sheet__background-accent_3cpay","background-info":"bottom-sheet__background-info_3cpay","background-attention-muted":"bottom-sheet__background-attention-muted_3cpay","background-positive-muted":"bottom-sheet__background-positive-muted_3cpay","background-negative-muted":"bottom-sheet__background-negative-muted_3cpay","background-primary":"bottom-sheet__background-primary_3cpay","background-primary-inverted":"bottom-sheet__background-primary-inverted_3cpay","background-secondary":"bottom-sheet__background-secondary_3cpay","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_3cpay","background-tertiary":"bottom-sheet__background-tertiary_3cpay","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_3cpay","background-quaternary":"bottom-sheet__background-quaternary_3cpay","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_3cpay","background-specialbg-component":"bottom-sheet__background-specialbg-component_3cpay","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_3cpay","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_3cpay","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_3cpay","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_3cpay","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_3cpay","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_3cpay","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_3cpay","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_3cpay"};
|
|
17
17
|
require('./index.css');
|
|
18
18
|
|
|
19
19
|
var BottomSheet = forwardRef(function (_a, ref) {
|
|
20
20
|
var _b, _c, _d, _e, _f;
|
|
21
|
-
var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, subtitle = _a.subtitle, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _h = _a.titleAlign, titleAlign = _h === void 0 ? 'left' : _h, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _j = _a.stickyFooter, stickyFooter = _j === void 0 ? true : _j, _k = _a.initialHeight, initialHeight = _k === void 0 ? 'default' : _k, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _l = _a.transitionProps, transitionProps = _l === void 0 ? {} : _l, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _m = _a.swipeable, swipeable = _m === void 0 ? true : _m, _o = _a.swipeableContent, swipeableContent = _o === void 0 ? true : _o, _p = _a.swipeThreshold, swipeThreshold = _p === void 0 ? 5 : _p, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _q = _a.scrollableContainerRef, scrollableContainerRef = _q === void 0 ? function () { return null; } : _q, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _r = _a.sheetContainerRef, sheetContainerRef = _r === void 0 ? function () { return null; } : _r, _s = _a.headerOffset, headerOffset = _s === void 0 ? 24 : _s, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted, onMagnetizeEnd = _a.onMagnetizeEnd, onOffsetChange = _a.onOffsetChange;
|
|
21
|
+
var open = _a.open, title = _a.title, container = _a.container, usePortal = _a.usePortal, backgroundColor = _a.backgroundColor, _g = _a.titleSize, titleSize = _g === void 0 ? 'default' : _g, subtitle = _a.subtitle, actionButton = _a.actionButton, contentClassName = _a.contentClassName, containerClassName = _a.containerClassName, containerProps = _a.containerProps, headerClassName = _a.headerClassName, footerClassName = _a.footerClassName, addonClassName = _a.addonClassName, closerClassName = _a.closerClassName, backerClassName = _a.backerClassName, modalClassName = _a.modalClassName, modalWrapperClassName = _a.modalWrapperClassName, className = _a.className, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, bottomAddons = _a.bottomAddons, hasCloser = _a.hasCloser, hasBacker = _a.hasBacker, _h = _a.titleAlign, titleAlign = _h === void 0 ? 'left' : _h, trimTitle = _a.trimTitle, stickyHeader = _a.stickyHeader, _j = _a.stickyFooter, stickyFooter = _j === void 0 ? true : _j, _k = _a.initialHeight, initialHeight = _k === void 0 ? 'default' : _k, hideOverlay = _a.hideOverlay, hideScrollbar = _a.hideScrollbar, hideHeader = _a.hideHeader, disableOverlayClick = _a.disableOverlayClick, disableBlockingScroll = _a.disableBlockingScroll, disableFocusLock = _a.disableFocusLock, children = _a.children, zIndex = _a.zIndex, _l = _a.transitionProps, transitionProps = _l === void 0 ? {} : _l, magneticAreasProp = _a.magneticAreas, initialActiveAreaIndex = _a.initialActiveAreaIndex, dataTestId = _a.dataTestId, _m = _a.swipeable, swipeable = _m === void 0 ? true : _m, _o = _a.swipeableContent, swipeableContent = _o === void 0 ? true : _o, _p = _a.swipeThreshold, swipeThreshold = _p === void 0 ? 5 : _p, scrollLockedProp = _a.scrollLocked, backdropProps = _a.backdropProps, _q = _a.scrollableContainerRef, scrollableContainerRef = _q === void 0 ? function () { return null; } : _q, bottomSheetInstanceRef = _a.bottomSheetInstanceRef, _r = _a.sheetContainerRef, sheetContainerRef = _r === void 0 ? function () { return null; } : _r, _s = _a.headerOffset, headerOffset = _s === void 0 ? 24 : _s, onClose = _a.onClose, onBack = _a.onBack, onMagnetize = _a.onMagnetize, disableRestoreFocus = _a.disableRestoreFocus, disableAutoFocus = _a.disableAutoFocus, disableEscapeKeyDown = _a.disableEscapeKeyDown, keepMounted = _a.keepMounted, onMagnetizeEnd = _a.onMagnetizeEnd, onOffsetChange = _a.onOffsetChange, swipeableMarker = _a.swipeableMarker, swipeableMarkerClassName = _a.swipeableMarkerClassName;
|
|
22
22
|
var hasInitialIdx = initialActiveAreaIndex !== undefined;
|
|
23
23
|
var fullHeight = use100vh() || 0;
|
|
24
24
|
// Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
|
|
@@ -284,6 +284,15 @@ var BottomSheet = forwardRef(function (_a, ref) {
|
|
|
284
284
|
height: !isFirstRender && initialHeight === 'full' ? "".concat(lastMagneticArea, "px") : 'unset',
|
|
285
285
|
maxHeight: isFirstRender ? 0 : "".concat(lastMagneticArea, "px"),
|
|
286
286
|
}); };
|
|
287
|
+
var renderMarker = function () {
|
|
288
|
+
if (swipeable) {
|
|
289
|
+
if (swipeableMarker) {
|
|
290
|
+
return (React.createElement("div", { className: cn(styles.marker, swipeableMarkerClassName) }, swipeableMarker));
|
|
291
|
+
}
|
|
292
|
+
return (React.createElement("div", { className: cn(styles.marker, styles.defaultMarker, swipeableMarkerClassName) }));
|
|
293
|
+
}
|
|
294
|
+
return null;
|
|
295
|
+
};
|
|
287
296
|
var bgClassName = backgroundColor && styles["background-".concat(backgroundColor)];
|
|
288
297
|
return (React.createElement(BaseModal, { open: open, ref: ref, container: container, dataTestId: dataTestId, zIndex: zIndex, onClose: onClose, usePortal: usePortal, scrollHandler: scrollableContainer, Backdrop: SwipeableBackdrop, backdropProps: __assign(__assign({}, backdropProps), { className: styles.disabledPointerEvents, opacity: backdropOpacity, opacityTimeout: TIMEOUT, invisible: hideOverlay }), disableBackdropClick: hideOverlay ? true : disableOverlayClick, className: cn(styles.modal, modalClassName), wrapperClassName: cn(modalWrapperClassName, (_b = {},
|
|
289
298
|
_b[styles.disabledPointerEvents] = hideOverlay,
|
|
@@ -294,11 +303,11 @@ var BottomSheet = forwardRef(function (_a, ref) {
|
|
|
294
303
|
React.createElement("div", __assign({ className: cn(styles.component, bgClassName, className, (_d = {},
|
|
295
304
|
_d[styles.withTransition] = swipingInProgress === false,
|
|
296
305
|
_d)), style: __assign(__assign({}, getSwipeStyles()), getHeightStyles()) }, sheetSwipeableHandlers, { ref: mergeRefs([sheetRef, sheetContainerRef, sheetSwipeableHandlers.ref]), onTransitionEnd: handleTransitionEnd }),
|
|
306
|
+
renderMarker(),
|
|
297
307
|
React.createElement("div", __assign({}, containerProps, { className: cn(styles.scrollableContainer, containerProps === null || containerProps === void 0 ? void 0 : containerProps.className, containerClassName, (_e = {},
|
|
298
308
|
_e[styles.scrollLocked] = scrollLockedProp || swipingInProgress,
|
|
299
309
|
_e[styles.hiddenScrollbar] = hideScrollbar,
|
|
300
310
|
_e)), ref: mergeRefs([scrollableContainer, scrollableContainerRef]) }),
|
|
301
|
-
swipeable && React.createElement("div", { className: cn(styles.marker) }),
|
|
302
311
|
!hideHeader && !emptyHeader && React.createElement(Header, __assign({}, headerProps)),
|
|
303
312
|
React.createElement("div", { ref: contentRef, className: cn(styles.content, contentClassName, (_f = {},
|
|
304
313
|
_f[styles.noHeader] = hideHeader || emptyHeader,
|
|
@@ -54,7 +54,6 @@
|
|
|
54
54
|
pointer-events: none;
|
|
55
55
|
} .bottom-sheet__wrapper_3cpay {
|
|
56
56
|
transform: translateY(100%);
|
|
57
|
-
overflow: hidden;
|
|
58
57
|
pointer-events: none;
|
|
59
58
|
border-top-right-radius: var(--border-radius-xl);
|
|
60
59
|
border-top-left-radius: var(--border-radius-xl);
|
|
@@ -62,7 +61,6 @@
|
|
|
62
61
|
} .bottom-sheet__fullscreen_3cpay {
|
|
63
62
|
border-radius: 0;
|
|
64
63
|
} .bottom-sheet__component_3cpay {
|
|
65
|
-
overflow: hidden;
|
|
66
64
|
position: relative;
|
|
67
65
|
display: flex;
|
|
68
66
|
flex-direction: column;
|
|
@@ -78,16 +76,19 @@
|
|
|
78
76
|
position: relative;
|
|
79
77
|
height: 100%;
|
|
80
78
|
background-color: inherit;
|
|
79
|
+
border-radius: inherit;
|
|
81
80
|
} .bottom-sheet__marker_3cpay {
|
|
82
81
|
position: fixed;
|
|
83
82
|
top: var(--gap-2xs);
|
|
84
|
-
|
|
83
|
+
right: 0;
|
|
84
|
+
left: 0;
|
|
85
|
+
z-index: 1000;
|
|
85
86
|
width: 36px;
|
|
87
|
+
margin: 0 auto;
|
|
88
|
+
} .bottom-sheet__defaultMarker_3cpay {
|
|
86
89
|
height: 4px;
|
|
87
90
|
border-radius: var(--border-radius-xxl);
|
|
88
|
-
transform: translateX(-50%);
|
|
89
91
|
background-color: var(--color-light-graphic-quaternary);
|
|
90
|
-
z-index: 1000;
|
|
91
92
|
} .bottom-sheet__content_3cpay {
|
|
92
93
|
position: relative;
|
|
93
94
|
z-index: 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react-transition-group" />
|
|
2
|
-
import { HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
|
|
3
3
|
import { TransitionProps } from 'react-transition-group/Transition';
|
|
4
4
|
import { BaseModalProps } from "../../base-modal";
|
|
5
5
|
import { NavigationBarProps } from "../../navigation-bar";
|
|
@@ -88,6 +88,14 @@ type BottomSheetProps = {
|
|
|
88
88
|
* Дополнительный класс для обертки модального окна
|
|
89
89
|
*/
|
|
90
90
|
modalWrapperClassName?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Дополнительный класс для маркера
|
|
93
|
+
*/
|
|
94
|
+
swipeableMarkerClassName?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Кастомный маркер
|
|
97
|
+
*/
|
|
98
|
+
swipeableMarker?: ReactElement;
|
|
91
99
|
/**
|
|
92
100
|
* TransitionProps, прокидываются в компонент CSSTransitionProps.
|
|
93
101
|
*/
|
package/bottom-sheet/index.css
CHANGED
|
@@ -54,7 +54,6 @@
|
|
|
54
54
|
pointer-events: none;
|
|
55
55
|
} .bottom-sheet__wrapper_3cpay {
|
|
56
56
|
transform: translateY(100%);
|
|
57
|
-
overflow: hidden;
|
|
58
57
|
pointer-events: none;
|
|
59
58
|
border-top-right-radius: var(--border-radius-xl);
|
|
60
59
|
border-top-left-radius: var(--border-radius-xl);
|
|
@@ -62,7 +61,6 @@
|
|
|
62
61
|
} .bottom-sheet__fullscreen_3cpay {
|
|
63
62
|
border-radius: 0;
|
|
64
63
|
} .bottom-sheet__component_3cpay {
|
|
65
|
-
overflow: hidden;
|
|
66
64
|
position: relative;
|
|
67
65
|
display: flex;
|
|
68
66
|
flex-direction: column;
|
|
@@ -78,16 +76,19 @@
|
|
|
78
76
|
position: relative;
|
|
79
77
|
height: 100%;
|
|
80
78
|
background-color: inherit;
|
|
79
|
+
border-radius: inherit;
|
|
81
80
|
} .bottom-sheet__marker_3cpay {
|
|
82
81
|
position: fixed;
|
|
83
82
|
top: var(--gap-2xs);
|
|
84
|
-
|
|
83
|
+
right: 0;
|
|
84
|
+
left: 0;
|
|
85
|
+
z-index: 1000;
|
|
85
86
|
width: 36px;
|
|
87
|
+
margin: 0 auto;
|
|
88
|
+
} .bottom-sheet__defaultMarker_3cpay {
|
|
86
89
|
height: 4px;
|
|
87
90
|
border-radius: var(--border-radius-xxl);
|
|
88
|
-
transform: translateX(-50%);
|
|
89
91
|
background-color: var(--color-light-graphic-quaternary);
|
|
90
|
-
z-index: 1000;
|
|
91
92
|
} .bottom-sheet__content_3cpay {
|
|
92
93
|
position: relative;
|
|
93
94
|
z-index: 0;
|
|
@@ -12,10 +12,10 @@ import { convertPercentToNumber, TIMEOUT, MARKER_HEIGHT, SCROLL_OFFSET, SWIPE_VE
|
|
|
12
12
|
import '../../navigation-bar/modern';
|
|
13
13
|
import '../../backdrop/modern';
|
|
14
14
|
|
|
15
|
-
const styles = {"modal":"bottom-sheet__modal_3cpay","wrapper":"bottom-sheet__wrapper_3cpay","fullscreen":"bottom-sheet__fullscreen_3cpay","component":"bottom-sheet__component_3cpay","withTransition":"bottom-sheet__withTransition_3cpay","scrollableContainer":"bottom-sheet__scrollableContainer_3cpay","marker":"bottom-sheet__marker_3cpay","content":"bottom-sheet__content_3cpay","noHeader":"bottom-sheet__noHeader_3cpay","noFooter":"bottom-sheet__noFooter_3cpay","scrollLocked":"bottom-sheet__scrollLocked_3cpay","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_3cpay","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_3cpay","appear":"bottom-sheet__appear_3cpay","enter":"bottom-sheet__enter_3cpay","appearActive":"bottom-sheet__appearActive_3cpay","enterActive":"bottom-sheet__enterActive_3cpay","enterDone":"bottom-sheet__enterDone_3cpay","appearDone":"bottom-sheet__appearDone_3cpay","exit":"bottom-sheet__exit_3cpay","exitActive":"bottom-sheet__exitActive_3cpay","background-accent":"bottom-sheet__background-accent_3cpay","background-info":"bottom-sheet__background-info_3cpay","background-attention-muted":"bottom-sheet__background-attention-muted_3cpay","background-positive-muted":"bottom-sheet__background-positive-muted_3cpay","background-negative-muted":"bottom-sheet__background-negative-muted_3cpay","background-primary":"bottom-sheet__background-primary_3cpay","background-primary-inverted":"bottom-sheet__background-primary-inverted_3cpay","background-secondary":"bottom-sheet__background-secondary_3cpay","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_3cpay","background-tertiary":"bottom-sheet__background-tertiary_3cpay","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_3cpay","background-quaternary":"bottom-sheet__background-quaternary_3cpay","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_3cpay","background-specialbg-component":"bottom-sheet__background-specialbg-component_3cpay","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_3cpay","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_3cpay","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_3cpay","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_3cpay","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_3cpay","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_3cpay","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_3cpay","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_3cpay"};
|
|
15
|
+
const styles = {"modal":"bottom-sheet__modal_3cpay","wrapper":"bottom-sheet__wrapper_3cpay","fullscreen":"bottom-sheet__fullscreen_3cpay","component":"bottom-sheet__component_3cpay","withTransition":"bottom-sheet__withTransition_3cpay","scrollableContainer":"bottom-sheet__scrollableContainer_3cpay","marker":"bottom-sheet__marker_3cpay","defaultMarker":"bottom-sheet__defaultMarker_3cpay","content":"bottom-sheet__content_3cpay","noHeader":"bottom-sheet__noHeader_3cpay","noFooter":"bottom-sheet__noFooter_3cpay","scrollLocked":"bottom-sheet__scrollLocked_3cpay","hiddenScrollbar":"bottom-sheet__hiddenScrollbar_3cpay","disabledPointerEvents":"bottom-sheet__disabledPointerEvents_3cpay","appear":"bottom-sheet__appear_3cpay","enter":"bottom-sheet__enter_3cpay","appearActive":"bottom-sheet__appearActive_3cpay","enterActive":"bottom-sheet__enterActive_3cpay","enterDone":"bottom-sheet__enterDone_3cpay","appearDone":"bottom-sheet__appearDone_3cpay","exit":"bottom-sheet__exit_3cpay","exitActive":"bottom-sheet__exitActive_3cpay","background-accent":"bottom-sheet__background-accent_3cpay","background-info":"bottom-sheet__background-info_3cpay","background-attention-muted":"bottom-sheet__background-attention-muted_3cpay","background-positive-muted":"bottom-sheet__background-positive-muted_3cpay","background-negative-muted":"bottom-sheet__background-negative-muted_3cpay","background-primary":"bottom-sheet__background-primary_3cpay","background-primary-inverted":"bottom-sheet__background-primary-inverted_3cpay","background-secondary":"bottom-sheet__background-secondary_3cpay","background-secondary-inverted":"bottom-sheet__background-secondary-inverted_3cpay","background-tertiary":"bottom-sheet__background-tertiary_3cpay","background-tertiary-inverted":"bottom-sheet__background-tertiary-inverted_3cpay","background-quaternary":"bottom-sheet__background-quaternary_3cpay","background-quaternary-inverted":"bottom-sheet__background-quaternary-inverted_3cpay","background-specialbg-component":"bottom-sheet__background-specialbg-component_3cpay","background-specialbg-component-inverted":"bottom-sheet__background-specialbg-component-inverted_3cpay","background-specialbg-primary-grouped":"bottom-sheet__background-specialbg-primary-grouped_3cpay","background-specialbg-secondary-grouped":"bottom-sheet__background-specialbg-secondary-grouped_3cpay","background-specialbg-tertiary-grouped":"bottom-sheet__background-specialbg-tertiary-grouped_3cpay","background-specialbg-secondary-transparent":"bottom-sheet__background-specialbg-secondary-transparent_3cpay","background-specialbg-secondary-transparent-inverted":"bottom-sheet__background-specialbg-secondary-transparent-inverted_3cpay","background-specialbg-tertiary-transparent":"bottom-sheet__background-specialbg-tertiary-transparent_3cpay","background-specialbg-tertiary-transparent-inverted":"bottom-sheet__background-specialbg-tertiary-transparent-inverted_3cpay"};
|
|
16
16
|
require('./index.css');
|
|
17
17
|
|
|
18
|
-
const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundColor, titleSize = 'default', subtitle, actionButton, contentClassName, containerClassName, containerProps, headerClassName, footerClassName, addonClassName, closerClassName, backerClassName, modalClassName, modalWrapperClassName, className, leftAddons, rightAddons, bottomAddons, hasCloser, hasBacker, titleAlign = 'left', trimTitle, stickyHeader, stickyFooter = true, initialHeight = 'default', hideOverlay, hideScrollbar, hideHeader, disableOverlayClick, disableBlockingScroll, disableFocusLock, children, zIndex, transitionProps = {}, magneticAreas: magneticAreasProp, initialActiveAreaIndex, dataTestId, swipeable = true, swipeableContent = true, swipeThreshold = 5, scrollLocked: scrollLockedProp, backdropProps, scrollableContainerRef = () => null, bottomSheetInstanceRef, sheetContainerRef = () => null, headerOffset = 24, onClose, onBack, onMagnetize, disableRestoreFocus, disableAutoFocus, disableEscapeKeyDown, keepMounted, onMagnetizeEnd, onOffsetChange, }, ref) => {
|
|
18
|
+
const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundColor, titleSize = 'default', subtitle, actionButton, contentClassName, containerClassName, containerProps, headerClassName, footerClassName, addonClassName, closerClassName, backerClassName, modalClassName, modalWrapperClassName, className, leftAddons, rightAddons, bottomAddons, hasCloser, hasBacker, titleAlign = 'left', trimTitle, stickyHeader, stickyFooter = true, initialHeight = 'default', hideOverlay, hideScrollbar, hideHeader, disableOverlayClick, disableBlockingScroll, disableFocusLock, children, zIndex, transitionProps = {}, magneticAreas: magneticAreasProp, initialActiveAreaIndex, dataTestId, swipeable = true, swipeableContent = true, swipeThreshold = 5, scrollLocked: scrollLockedProp, backdropProps, scrollableContainerRef = () => null, bottomSheetInstanceRef, sheetContainerRef = () => null, headerOffset = 24, onClose, onBack, onMagnetize, disableRestoreFocus, disableAutoFocus, disableEscapeKeyDown, keepMounted, onMagnetizeEnd, onOffsetChange, swipeableMarker, swipeableMarkerClassName, }, ref) => {
|
|
19
19
|
const hasInitialIdx = initialActiveAreaIndex !== undefined;
|
|
20
20
|
const fullHeight = use100vh() || 0;
|
|
21
21
|
// Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.
|
|
@@ -295,6 +295,15 @@ const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundC
|
|
|
295
295
|
height: !isFirstRender && initialHeight === 'full' ? `${lastMagneticArea}px` : 'unset',
|
|
296
296
|
maxHeight: isFirstRender ? 0 : `${lastMagneticArea}px`,
|
|
297
297
|
});
|
|
298
|
+
const renderMarker = () => {
|
|
299
|
+
if (swipeable) {
|
|
300
|
+
if (swipeableMarker) {
|
|
301
|
+
return (React.createElement("div", { className: cn(styles.marker, swipeableMarkerClassName) }, swipeableMarker));
|
|
302
|
+
}
|
|
303
|
+
return (React.createElement("div", { className: cn(styles.marker, styles.defaultMarker, swipeableMarkerClassName) }));
|
|
304
|
+
}
|
|
305
|
+
return null;
|
|
306
|
+
};
|
|
298
307
|
const bgClassName = backgroundColor && styles[`background-${backgroundColor}`];
|
|
299
308
|
return (React.createElement(BaseModal, { open: open, ref: ref, container: container, dataTestId: dataTestId, zIndex: zIndex, onClose: onClose, usePortal: usePortal, scrollHandler: scrollableContainer, Backdrop: SwipeableBackdrop, backdropProps: {
|
|
300
309
|
...backdropProps,
|
|
@@ -323,11 +332,11 @@ const BottomSheet = forwardRef(({ open, title, container, usePortal, backgroundC
|
|
|
323
332
|
...getSwipeStyles(),
|
|
324
333
|
...getHeightStyles(),
|
|
325
334
|
}, ...sheetSwipeableHandlers, ref: mergeRefs([sheetRef, sheetContainerRef, sheetSwipeableHandlers.ref]), onTransitionEnd: handleTransitionEnd },
|
|
335
|
+
renderMarker(),
|
|
326
336
|
React.createElement("div", { ...containerProps, className: cn(styles.scrollableContainer, containerProps?.className, containerClassName, {
|
|
327
337
|
[styles.scrollLocked]: scrollLockedProp || swipingInProgress,
|
|
328
338
|
[styles.hiddenScrollbar]: hideScrollbar,
|
|
329
339
|
}), ref: mergeRefs([scrollableContainer, scrollableContainerRef]) },
|
|
330
|
-
swipeable && React.createElement("div", { className: cn(styles.marker) }),
|
|
331
340
|
!hideHeader && !emptyHeader && React.createElement(Header, { ...headerProps }),
|
|
332
341
|
React.createElement("div", { ref: contentRef, className: cn(styles.content, contentClassName, {
|
|
333
342
|
[styles.noHeader]: hideHeader || emptyHeader,
|
|
@@ -54,7 +54,6 @@
|
|
|
54
54
|
pointer-events: none;
|
|
55
55
|
} .bottom-sheet__wrapper_3cpay {
|
|
56
56
|
transform: translateY(100%);
|
|
57
|
-
overflow: hidden;
|
|
58
57
|
pointer-events: none;
|
|
59
58
|
border-top-right-radius: var(--border-radius-xl);
|
|
60
59
|
border-top-left-radius: var(--border-radius-xl);
|
|
@@ -62,7 +61,6 @@
|
|
|
62
61
|
} .bottom-sheet__fullscreen_3cpay {
|
|
63
62
|
border-radius: 0;
|
|
64
63
|
} .bottom-sheet__component_3cpay {
|
|
65
|
-
overflow: hidden;
|
|
66
64
|
position: relative;
|
|
67
65
|
display: flex;
|
|
68
66
|
flex-direction: column;
|
|
@@ -78,16 +76,19 @@
|
|
|
78
76
|
position: relative;
|
|
79
77
|
height: 100%;
|
|
80
78
|
background-color: inherit;
|
|
79
|
+
border-radius: inherit;
|
|
81
80
|
} .bottom-sheet__marker_3cpay {
|
|
82
81
|
position: fixed;
|
|
83
82
|
top: var(--gap-2xs);
|
|
84
|
-
|
|
83
|
+
right: 0;
|
|
84
|
+
left: 0;
|
|
85
|
+
z-index: 1000;
|
|
85
86
|
width: 36px;
|
|
87
|
+
margin: 0 auto;
|
|
88
|
+
} .bottom-sheet__defaultMarker_3cpay {
|
|
86
89
|
height: 4px;
|
|
87
90
|
border-radius: var(--border-radius-xxl);
|
|
88
|
-
transform: translateX(-50%);
|
|
89
91
|
background-color: var(--color-light-graphic-quaternary);
|
|
90
|
-
z-index: 1000;
|
|
91
92
|
} .bottom-sheet__content_3cpay {
|
|
92
93
|
position: relative;
|
|
93
94
|
z-index: 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react-transition-group" />
|
|
2
|
-
import { HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
|
|
3
3
|
import { TransitionProps } from 'react-transition-group/Transition';
|
|
4
4
|
import { BaseModalProps } from "../../base-modal";
|
|
5
5
|
import { NavigationBarProps } from "../../navigation-bar";
|
|
@@ -88,6 +88,14 @@ type BottomSheetProps = {
|
|
|
88
88
|
* Дополнительный класс для обертки модального окна
|
|
89
89
|
*/
|
|
90
90
|
modalWrapperClassName?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Дополнительный класс для маркера
|
|
93
|
+
*/
|
|
94
|
+
swipeableMarkerClassName?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Кастомный маркер
|
|
97
|
+
*/
|
|
98
|
+
swipeableMarker?: ReactElement;
|
|
91
99
|
/**
|
|
92
100
|
* TransitionProps, прокидываются в компонент CSSTransitionProps.
|
|
93
101
|
*/
|
package/bottom-sheet/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react-transition-group" />
|
|
2
|
-
import { HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
|
|
3
3
|
import { TransitionProps } from 'react-transition-group/Transition';
|
|
4
4
|
import { BaseModalProps } from "../base-modal";
|
|
5
5
|
import { NavigationBarProps } from "../navigation-bar";
|
|
@@ -88,6 +88,14 @@ type BottomSheetProps = {
|
|
|
88
88
|
* Дополнительный класс для обертки модального окна
|
|
89
89
|
*/
|
|
90
90
|
modalWrapperClassName?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Дополнительный класс для маркера
|
|
93
|
+
*/
|
|
94
|
+
swipeableMarkerClassName?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Кастомный маркер
|
|
97
|
+
*/
|
|
98
|
+
swipeableMarker?: ReactElement;
|
|
91
99
|
/**
|
|
92
100
|
* TransitionProps, прокидываются в компонент CSSTransitionProps.
|
|
93
101
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { FC, ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from "react";
|
|
4
|
+
import { TextElementType, TextSkeletonProps } from "./types-1b036d4b";
|
|
4
5
|
declare const colors: readonly [
|
|
5
6
|
"tertiary",
|
|
6
7
|
"disabled",
|
|
@@ -23,7 +24,6 @@ declare const colors: readonly [
|
|
|
23
24
|
"static-accent"
|
|
24
25
|
];
|
|
25
26
|
type Color = (typeof colors)[number];
|
|
26
|
-
type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
27
27
|
type NativeProps = HTMLAttributes<HTMLSpanElement>;
|
|
28
28
|
type TextBaseProps = {
|
|
29
29
|
/**
|
|
@@ -66,6 +66,14 @@ type TextBaseProps = {
|
|
|
66
66
|
* Количество строк (не поддерживает IE)
|
|
67
67
|
*/
|
|
68
68
|
rowLimit?: 1 | 2 | 3;
|
|
69
|
+
/**
|
|
70
|
+
* Показать скелетон
|
|
71
|
+
*/
|
|
72
|
+
showSkeleton?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Пропы для скелетона
|
|
75
|
+
*/
|
|
76
|
+
skeletonProps?: TextSkeletonProps;
|
|
69
77
|
};
|
|
70
78
|
type TextPTagProps = Omit<TextBaseProps, "tag" | "defaultMargins"> & {
|
|
71
79
|
tag?: "p";
|
|
@@ -114,6 +122,14 @@ type TitleProps = Omit<NativeProps$0, "color"> & {
|
|
|
114
122
|
* Количество строк (не поддерживает IE)
|
|
115
123
|
*/
|
|
116
124
|
rowLimit?: 1 | 2 | 3;
|
|
125
|
+
/**
|
|
126
|
+
* Показать скелетон
|
|
127
|
+
*/
|
|
128
|
+
showSkeleton?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Пропы для скелетона
|
|
131
|
+
*/
|
|
132
|
+
skeletonProps?: TextSkeletonProps;
|
|
117
133
|
};
|
|
118
134
|
type TitleMobileProps = Omit<TitleProps, "defaultMargins">;
|
|
119
135
|
declare const Typography: {
|
|
@@ -165,3 +181,4 @@ interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
|
165
181
|
declare const BackArrowAddon: React.FC<BackArrowAddonProps>;
|
|
166
182
|
export { Typography, typographyPresets, TitleResponsive, BackArrowAddonProps, BackArrowAddon };
|
|
167
183
|
export type { TitleProps, TextProps, Color };
|
|
184
|
+
export * from "./useSkeleton-1b036d4b";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { FC, ForwardRefExoticComponent, RefAttributes, HTMLAttributes } from "react";
|
|
4
|
+
import { TextElementType, TextSkeletonProps } from "./types-1b036d4b";
|
|
4
5
|
declare const colors: readonly [
|
|
5
6
|
"tertiary",
|
|
6
7
|
"disabled",
|
|
@@ -23,7 +24,6 @@ declare const colors: readonly [
|
|
|
23
24
|
"static-accent"
|
|
24
25
|
];
|
|
25
26
|
type Color = (typeof colors)[number];
|
|
26
|
-
type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
27
27
|
type NativeProps = HTMLAttributes<HTMLSpanElement>;
|
|
28
28
|
type TextBaseProps = {
|
|
29
29
|
/**
|
|
@@ -66,6 +66,14 @@ type TextBaseProps = {
|
|
|
66
66
|
* Количество строк (не поддерживает IE)
|
|
67
67
|
*/
|
|
68
68
|
rowLimit?: 1 | 2 | 3;
|
|
69
|
+
/**
|
|
70
|
+
* Показать скелетон
|
|
71
|
+
*/
|
|
72
|
+
showSkeleton?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Пропы для скелетона
|
|
75
|
+
*/
|
|
76
|
+
skeletonProps?: TextSkeletonProps;
|
|
69
77
|
};
|
|
70
78
|
type TextPTagProps = Omit<TextBaseProps, "tag" | "defaultMargins"> & {
|
|
71
79
|
tag?: "p";
|
|
@@ -114,6 +122,14 @@ type TitleProps = Omit<NativeProps$0, "color"> & {
|
|
|
114
122
|
* Количество строк (не поддерживает IE)
|
|
115
123
|
*/
|
|
116
124
|
rowLimit?: 1 | 2 | 3;
|
|
125
|
+
/**
|
|
126
|
+
* Показать скелетон
|
|
127
|
+
*/
|
|
128
|
+
showSkeleton?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Пропы для скелетона
|
|
131
|
+
*/
|
|
132
|
+
skeletonProps?: TextSkeletonProps;
|
|
117
133
|
};
|
|
118
134
|
type TitleMobileProps = Omit<TitleProps, "defaultMargins">;
|
|
119
135
|
declare const Typography: {
|
|
@@ -165,3 +181,4 @@ interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
|
165
181
|
declare const BackArrowAddon: React.FC<BackArrowAddonProps>;
|
|
166
182
|
export { Typography, typographyPresets, TitleResponsive, BackArrowAddonProps, BackArrowAddon };
|
|
167
183
|
export type { TitleProps, TextProps, Color };
|
|
184
|
+
export * from "./useSkeleton-1b036d4b";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
|
2
|
+
type WidthUnit = number | string;
|
|
3
|
+
type TextSkeletonProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Кол-во строк текста
|
|
6
|
+
*/
|
|
7
|
+
rows?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Ширина строки
|
|
10
|
+
*/
|
|
11
|
+
width?: WidthUnit | WidthUnit[];
|
|
12
|
+
};
|
|
13
|
+
export { TextElementType, TextSkeletonProps };
|