@alfalab/core-components 45.8.0-beta.2 → 45.8.0-beta.3
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/base-modal/Component.d.ts +0 -4
- package/base-modal/Component.js +11 -28
- package/base-modal/cssm/Component.d.ts +0 -4
- package/base-modal/cssm/Component.js +11 -28
- package/base-modal/cssm/utils.d.ts +1 -1
- package/base-modal/cssm/utils.js +2 -5
- package/base-modal/esm/Component.d.ts +0 -4
- package/base-modal/esm/Component.js +12 -29
- package/base-modal/esm/index.js +0 -1
- package/base-modal/esm/utils.d.ts +1 -1
- package/base-modal/esm/utils.js +2 -5
- package/base-modal/modern/Component.d.ts +0 -4
- package/base-modal/modern/Component.js +5 -22
- package/base-modal/modern/index.js +0 -1
- package/base-modal/modern/utils.d.ts +1 -1
- package/base-modal/modern/utils.js +2 -4
- package/base-modal/utils.d.ts +1 -1
- package/base-modal/utils.js +2 -5
- package/calendar-range/esm/Component.js +1 -1
- package/calendar-range/esm/index.js +1 -1
- package/calendar-range/esm/views/popover.js +1 -1
- package/calendar-range/esm/views/static.js +1 -1
- package/calendar-range/modern/Component.js +1 -1
- package/calendar-range/modern/index.js +1 -1
- package/calendar-range/modern/views/popover.js +1 -1
- package/calendar-range/modern/views/static.js +1 -1
- package/calendar-range/utils.js +1 -3
- package/calendar-range/views/popover.js +1 -1
- package/calendar-range/views/static.js +1 -1
- package/confirmation/components/screens/initial/component.js +1 -1
- package/confirmation/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/esm/component.responsive.js +1 -1
- package/confirmation/esm/components/base-confirmation/component.js +1 -1
- package/confirmation/esm/components/base-confirmation/index.js +1 -1
- package/confirmation/esm/components/index.js +1 -1
- package/confirmation/esm/components/screens/index.js +1 -1
- package/confirmation/esm/components/screens/initial/component.js +1 -1
- package/confirmation/esm/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/esm/components/screens/initial/index.js +1 -1
- package/confirmation/esm/desktop/component.desktop.js +1 -1
- package/confirmation/esm/desktop/index.js +1 -1
- package/confirmation/esm/index.js +1 -1
- package/confirmation/esm/mobile/component.mobile.js +1 -1
- package/confirmation/esm/mobile/index.js +1 -1
- package/confirmation/esm/shared/index.js +1 -1
- package/confirmation/modern/component.responsive.js +1 -1
- package/confirmation/modern/components/base-confirmation/component.js +1 -1
- package/confirmation/modern/components/base-confirmation/index.js +1 -1
- package/confirmation/modern/components/index.js +1 -1
- package/confirmation/modern/components/screens/index.js +1 -1
- package/confirmation/modern/components/screens/initial/component.js +1 -1
- package/confirmation/modern/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/modern/components/screens/initial/index.js +1 -1
- package/confirmation/modern/desktop/component.desktop.js +1 -1
- package/confirmation/modern/desktop/index.js +1 -1
- package/confirmation/modern/index.js +1 -1
- package/confirmation/modern/mobile/component.mobile.js +1 -1
- package/confirmation/modern/mobile/index.js +1 -1
- package/confirmation/modern/shared/index.js +1 -1
- package/dropzone/Component.d.ts +1 -1
- package/dropzone/Component.js +1 -1
- package/dropzone/cssm/Component.d.ts +1 -1
- package/dropzone/cssm/Component.js +1 -1
- package/dropzone/esm/Component.d.ts +1 -1
- package/dropzone/esm/Component.js +1 -1
- package/dropzone/modern/Component.d.ts +1 -1
- package/dropzone/modern/Component.js +1 -1
- package/gallery/components/header/Component.js +1 -1
- package/gallery/components/header/buttons.js +1 -1
- package/gallery/components/image-viewer/component.js +1 -1
- package/gallery/components/image-viewer/slide.js +1 -1
- 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-preview/Component.js +1 -1
- package/gallery/esm/components/image-preview/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/components/navigation-bar/Component.js +1 -1
- package/gallery/esm/components/navigation-bar/index.js +1 -1
- package/gallery/esm/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-preview/Component.js +1 -1
- package/gallery/modern/components/image-preview/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/components/navigation-bar/Component.js +1 -1
- package/gallery/modern/components/navigation-bar/index.js +1 -1
- package/gallery/modern/index.js +2 -2
- package/international-phone-input/cssm/index-bdb4c6b9.d.ts +2 -9
- package/international-phone-input/cssm/use-skeleton-1328ead9.d.ts +4 -0
- package/international-phone-input/esm/index-bdb4c6b9.d.ts +2 -9
- package/international-phone-input/esm/use-skeleton-1328ead9.d.ts +4 -0
- package/international-phone-input/index-bdb4c6b9.d.ts +2 -9
- package/international-phone-input/modern/index-bdb4c6b9.d.ts +2 -9
- package/international-phone-input/modern/use-skeleton-1328ead9.d.ts +4 -0
- package/international-phone-input/use-skeleton-1328ead9.d.ts +4 -0
- package/modal/components/controls/Component.js +1 -1
- package/modal/components/footer/Component.js +1 -1
- package/modal/esm/Component.responsive.js +1 -1
- package/modal/esm/components/controls/Component.js +1 -1
- package/modal/esm/components/controls/index.js +1 -1
- package/modal/esm/components/footer/Component.js +1 -1
- package/modal/esm/desktop/Component.desktop.js +1 -1
- package/modal/esm/desktop/index.js +1 -1
- package/modal/esm/index.js +1 -1
- package/modal/esm/mobile/Component.mobile.js +1 -1
- package/modal/esm/mobile/index.js +1 -1
- package/modal/modern/Component.responsive.js +1 -1
- package/modal/modern/components/controls/Component.js +1 -1
- package/modal/modern/components/controls/index.js +1 -1
- package/modal/modern/components/footer/Component.js +1 -1
- package/modal/modern/desktop/Component.desktop.js +1 -1
- package/modal/modern/desktop/index.js +1 -1
- package/modal/modern/index.js +1 -1
- package/modal/modern/mobile/Component.mobile.js +1 -1
- package/modal/modern/mobile/index.js +1 -1
- package/notification/browser-a216f694.d.ts +6 -0
- package/notification/cssm/browser-a216f694.d.ts +6 -0
- package/notification/cssm/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
- package/notification/cssm/utils/getNotificationTestIds.d.ts +5 -0
- package/notification/cssm/utils/getNotificationTestIds.js +18 -0
- package/notification/esm/browser-a216f694.d.ts +6 -0
- package/notification/esm/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
- package/notification/esm/utils/getNotificationTestIds.d.ts +5 -0
- package/notification/esm/utils/getNotificationTestIds.js +16 -0
- package/notification/modern/browser-a216f694.d.ts +6 -0
- package/notification/modern/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
- package/notification/modern/utils/getNotificationTestIds.d.ts +5 -0
- package/notification/modern/utils/getNotificationTestIds.js +16 -0
- package/notification/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
- package/notification/utils/getNotificationTestIds.d.ts +5 -0
- package/notification/utils/getNotificationTestIds.js +18 -0
- package/package.json +1 -1
- package/picker-button/{modern/index-a5b021bd.d.ts → cssm/index-307da6d7.d.ts} +2 -1
- package/picker-button/cssm/index-bdb4c6b9.d.ts +2 -9
- package/picker-button/cssm/use-skeleton-1328ead9.d.ts +4 -0
- package/picker-button/{cssm/index-a5b021bd.d.ts → esm/index-307da6d7.d.ts} +2 -1
- package/picker-button/esm/index-bdb4c6b9.d.ts +2 -9
- package/picker-button/esm/use-skeleton-1328ead9.d.ts +4 -0
- package/picker-button/{index-a5b021bd.d.ts → index-307da6d7.d.ts} +2 -1
- package/picker-button/index-bdb4c6b9.d.ts +2 -9
- package/picker-button/{esm/index-a5b021bd.d.ts → modern/index-307da6d7.d.ts} +2 -1
- package/picker-button/modern/index-bdb4c6b9.d.ts +2 -9
- package/picker-button/modern/use-skeleton-1328ead9.d.ts +4 -0
- package/picker-button/use-skeleton-1328ead9.d.ts +4 -0
- package/pure-cell/component.js +1 -1
- package/pure-cell/components/addon/component.js +1 -1
- package/pure-cell/components/addon/index.d.ts +1 -1
- package/pure-cell/components/addon/index.js +1 -1
- package/pure-cell/components/amount/component.js +1 -1
- package/pure-cell/components/amount/index.d.ts +1 -1
- package/pure-cell/components/amount/index.js +1 -1
- package/pure-cell/components/amount-title/component.js +1 -1
- package/pure-cell/components/amount-title/index.d.ts +1 -1
- package/pure-cell/components/amount-title/index.js +1 -1
- package/pure-cell/components/category/component.js +1 -1
- package/pure-cell/components/category/index.d.ts +1 -1
- package/pure-cell/components/category/index.js +1 -1
- package/pure-cell/components/content/component.js +1 -1
- package/pure-cell/components/content/index.d.ts +1 -1
- package/pure-cell/components/content/index.js +1 -1
- package/pure-cell/components/footer/component.js +1 -1
- package/pure-cell/components/footer/index.d.ts +1 -1
- package/pure-cell/components/footer/index.js +1 -1
- package/pure-cell/components/footer-button/component.js +1 -1
- package/pure-cell/components/footer-button/index.d.ts +1 -1
- package/pure-cell/components/footer-button/index.js +1 -1
- package/pure-cell/components/footer-text/component.js +1 -1
- package/pure-cell/components/footer-text/index.d.ts +1 -1
- package/pure-cell/components/footer-text/index.js +1 -1
- package/pure-cell/components/graphics/component.js +1 -1
- package/pure-cell/components/graphics/index.d.ts +1 -1
- package/pure-cell/components/graphics/index.js +1 -1
- package/pure-cell/components/main/component.js +1 -1
- package/pure-cell/components/main/index.d.ts +1 -1
- package/pure-cell/components/main/index.js +1 -1
- package/pure-cell/components/text/component.js +1 -1
- package/pure-cell/components/text/index.d.ts +1 -1
- package/pure-cell/components/text/index.js +1 -1
- package/pure-cell/esm/component.js +1 -1
- package/pure-cell/esm/components/addon/component.js +1 -1
- package/pure-cell/esm/components/addon/index.d.ts +1 -1
- package/pure-cell/esm/components/addon/index.js +1 -1
- package/pure-cell/esm/components/amount/component.js +1 -1
- package/pure-cell/esm/components/amount/index.d.ts +1 -1
- package/pure-cell/esm/components/amount/index.js +1 -1
- package/pure-cell/esm/components/amount-title/component.js +1 -1
- package/pure-cell/esm/components/amount-title/index.d.ts +1 -1
- package/pure-cell/esm/components/amount-title/index.js +1 -1
- package/pure-cell/esm/components/category/component.js +1 -1
- package/pure-cell/esm/components/category/index.d.ts +1 -1
- package/pure-cell/esm/components/category/index.js +1 -1
- package/pure-cell/esm/components/content/component.js +1 -1
- package/pure-cell/esm/components/content/index.d.ts +1 -1
- package/pure-cell/esm/components/content/index.js +1 -1
- package/pure-cell/esm/components/footer/component.js +1 -1
- package/pure-cell/esm/components/footer/index.d.ts +1 -1
- package/pure-cell/esm/components/footer/index.js +1 -1
- package/pure-cell/esm/components/footer-button/component.js +1 -1
- package/pure-cell/esm/components/footer-button/index.d.ts +1 -1
- package/pure-cell/esm/components/footer-button/index.js +1 -1
- package/pure-cell/esm/components/footer-text/component.js +1 -1
- package/pure-cell/esm/components/footer-text/index.d.ts +1 -1
- package/pure-cell/esm/components/footer-text/index.js +1 -1
- package/pure-cell/esm/components/graphics/component.js +1 -1
- package/pure-cell/esm/components/graphics/index.d.ts +1 -1
- package/pure-cell/esm/components/graphics/index.js +1 -1
- package/pure-cell/esm/components/main/component.js +1 -1
- package/pure-cell/esm/components/main/index.d.ts +1 -1
- package/pure-cell/esm/components/main/index.js +1 -1
- package/pure-cell/esm/components/text/component.js +1 -1
- package/pure-cell/esm/components/text/index.d.ts +1 -1
- package/pure-cell/esm/components/text/index.js +1 -1
- package/pure-cell/esm/index.js +1 -1
- package/pure-cell/index.js +1 -1
- package/pure-cell/modern/component.js +1 -1
- package/pure-cell/modern/components/addon/component.js +1 -1
- package/pure-cell/modern/components/addon/index.d.ts +1 -1
- package/pure-cell/modern/components/addon/index.js +1 -1
- package/pure-cell/modern/components/amount/component.js +1 -1
- package/pure-cell/modern/components/amount/index.d.ts +1 -1
- package/pure-cell/modern/components/amount/index.js +1 -1
- package/pure-cell/modern/components/amount-title/component.js +1 -1
- package/pure-cell/modern/components/amount-title/index.d.ts +1 -1
- package/pure-cell/modern/components/amount-title/index.js +1 -1
- package/pure-cell/modern/components/category/component.js +1 -1
- package/pure-cell/modern/components/category/index.d.ts +1 -1
- package/pure-cell/modern/components/category/index.js +1 -1
- package/pure-cell/modern/components/content/component.js +1 -1
- package/pure-cell/modern/components/content/index.d.ts +1 -1
- package/pure-cell/modern/components/content/index.js +1 -1
- package/pure-cell/modern/components/footer/component.js +1 -1
- package/pure-cell/modern/components/footer/index.d.ts +1 -1
- package/pure-cell/modern/components/footer/index.js +1 -1
- package/pure-cell/modern/components/footer-button/component.js +1 -1
- package/pure-cell/modern/components/footer-button/index.d.ts +1 -1
- package/pure-cell/modern/components/footer-button/index.js +1 -1
- package/pure-cell/modern/components/footer-text/component.js +1 -1
- package/pure-cell/modern/components/footer-text/index.d.ts +1 -1
- package/pure-cell/modern/components/footer-text/index.js +1 -1
- package/pure-cell/modern/components/graphics/component.js +1 -1
- package/pure-cell/modern/components/graphics/index.d.ts +1 -1
- package/pure-cell/modern/components/graphics/index.js +1 -1
- package/pure-cell/modern/components/main/component.js +1 -1
- package/pure-cell/modern/components/main/index.d.ts +1 -1
- package/pure-cell/modern/components/main/index.js +1 -1
- package/pure-cell/modern/components/text/component.js +1 -1
- package/pure-cell/modern/components/text/index.d.ts +1 -1
- package/pure-cell/modern/components/text/index.js +1 -1
- package/pure-cell/modern/index.js +1 -1
- package/shared/cssm/exhaustiveCheck.d.ts +2 -0
- package/shared/cssm/exhaustiveCheck.js +5 -0
- package/shared/cssm/index.d.ts +1 -0
- package/shared/cssm/index.js +2 -0
- package/shared/esm/exhaustiveCheck.d.ts +2 -0
- package/shared/esm/exhaustiveCheck.js +3 -0
- package/shared/esm/index.d.ts +1 -0
- package/shared/esm/index.js +1 -0
- package/shared/exhaustiveCheck.d.ts +2 -0
- package/shared/exhaustiveCheck.js +5 -0
- package/shared/index.d.ts +1 -0
- package/shared/index.js +2 -0
- package/shared/modern/exhaustiveCheck.d.ts +2 -0
- package/shared/modern/exhaustiveCheck.js +3 -0
- package/shared/modern/index.d.ts +1 -0
- package/shared/modern/index.js +1 -0
- package/side-panel/components/controls/Component.js +1 -1
- package/side-panel/components/footer/Component.js +1 -1
- package/side-panel/esm/Component.responsive.js +1 -1
- package/side-panel/esm/components/controls/Component.js +1 -1
- package/side-panel/esm/components/controls/index.js +1 -1
- package/side-panel/esm/components/footer/Component.desktop.js +1 -1
- package/side-panel/esm/components/footer/Component.js +1 -1
- package/side-panel/esm/components/footer/Component.mobile.js +1 -1
- package/side-panel/esm/desktop/Component.desktop.js +1 -1
- package/side-panel/esm/desktop/index.js +1 -1
- package/side-panel/esm/index.js +1 -1
- package/side-panel/esm/mobile/Component.mobile.js +1 -1
- package/side-panel/esm/mobile/index.js +1 -1
- package/side-panel/modern/Component.responsive.js +1 -1
- package/side-panel/modern/components/controls/Component.js +1 -1
- package/side-panel/modern/components/controls/index.js +1 -1
- package/side-panel/modern/components/footer/Component.desktop.js +1 -1
- package/side-panel/modern/components/footer/Component.js +1 -1
- package/side-panel/modern/components/footer/Component.mobile.js +1 -1
- package/side-panel/modern/desktop/Component.desktop.js +1 -1
- package/side-panel/modern/desktop/index.js +1 -1
- package/side-panel/modern/index.js +1 -1
- package/side-panel/modern/mobile/Component.mobile.js +1 -1
- package/side-panel/modern/mobile/index.js +1 -1
- package/skeleton/Component.d.ts +4 -0
- package/skeleton/Component.js +6 -3
- package/skeleton/cssm/Component.d.ts +4 -0
- package/skeleton/cssm/Component.js +5 -2
- package/skeleton/cssm/index.module.css +9 -42
- package/skeleton/esm/Component.d.ts +4 -0
- package/skeleton/esm/Component.js +6 -3
- package/skeleton/esm/index.css +9 -42
- package/skeleton/index.css +9 -42
- package/skeleton/modern/Component.d.ts +4 -0
- package/skeleton/modern/Component.js +6 -3
- package/skeleton/modern/index.css +9 -42
- package/status-badge/Component.d.ts +8 -3
- package/status-badge/Component.js +3 -73
- package/status-badge/consts/iconMap.d.ts +4 -0
- package/status-badge/consts/iconMap.js +76 -0
- package/status-badge/cssm/Component.d.ts +8 -3
- package/status-badge/cssm/Component.js +3 -73
- package/status-badge/cssm/consts/iconMap.d.ts +4 -0
- package/status-badge/cssm/consts/iconMap.js +76 -0
- package/status-badge/cssm/hooks/useStatusBadgeIcon.d.ts +5 -0
- package/status-badge/cssm/hooks/useStatusBadgeIcon.js +21 -0
- package/status-badge/cssm/index.d.ts +1 -0
- package/status-badge/cssm/types/statusBadgePropTypes.d.ts +7 -0
- package/status-badge/cssm/types/statusBadgePropTypes.js +1 -0
- package/status-badge/esm/Component.d.ts +8 -3
- package/status-badge/esm/Component.js +18 -73
- package/status-badge/esm/consts/iconMap.d.ts +4 -0
- package/status-badge/esm/consts/iconMap.js +74 -0
- package/status-badge/esm/hooks/useStatusBadgeIcon.d.ts +5 -0
- package/status-badge/esm/hooks/useStatusBadgeIcon.js +32 -0
- package/status-badge/esm/index.d.ts +1 -0
- package/status-badge/esm/index.js +3 -0
- package/status-badge/esm/types/statusBadgePropTypes.d.ts +7 -0
- package/status-badge/esm/types/statusBadgePropTypes.js +1 -0
- package/status-badge/hooks/useStatusBadgeIcon.d.ts +5 -0
- package/status-badge/hooks/useStatusBadgeIcon.js +21 -0
- package/status-badge/index.d.ts +1 -0
- package/status-badge/modern/Component.d.ts +8 -3
- package/status-badge/modern/Component.js +17 -73
- package/status-badge/modern/consts/iconMap.d.ts +4 -0
- package/status-badge/modern/consts/iconMap.js +74 -0
- package/status-badge/modern/hooks/useStatusBadgeIcon.d.ts +5 -0
- package/status-badge/modern/hooks/useStatusBadgeIcon.js +34 -0
- package/status-badge/modern/index.d.ts +1 -0
- package/status-badge/modern/index.js +2 -0
- package/status-badge/modern/types/statusBadgePropTypes.d.ts +7 -0
- package/status-badge/modern/types/statusBadgePropTypes.js +1 -0
- package/status-badge/types/statusBadgePropTypes.d.ts +7 -0
- package/status-badge/types/statusBadgePropTypes.js +1 -0
- package/tab-bar/Component.js +7 -3
- package/tab-bar/components/tab/Component.js +9 -5
- package/tab-bar/components/tab/index.css +5 -2
- package/tab-bar/consts.d.ts +9 -0
- package/tab-bar/consts.js +13 -0
- package/tab-bar/cssm/Component.js +6 -2
- package/tab-bar/cssm/components/tab/Component.js +8 -4
- package/tab-bar/cssm/components/tab/index.module.css +5 -2
- package/tab-bar/cssm/consts.d.ts +9 -0
- package/tab-bar/cssm/consts.js +13 -0
- package/tab-bar/cssm/index.module.css +9 -7
- package/tab-bar/cssm/types.d.ts +11 -3
- package/tab-bar/esm/Component.js +9 -4
- package/tab-bar/esm/components/tab/Component.js +9 -5
- package/tab-bar/esm/components/tab/index.css +5 -2
- package/tab-bar/esm/components/tab/index.js +2 -1
- package/tab-bar/esm/consts.d.ts +9 -0
- package/tab-bar/esm/consts.js +10 -0
- package/tab-bar/esm/index.css +9 -7
- package/tab-bar/esm/index.js +2 -1
- package/tab-bar/esm/types.d.ts +11 -3
- package/tab-bar/index.css +9 -7
- package/tab-bar/modern/Component.js +9 -4
- package/tab-bar/modern/components/tab/Component.js +9 -5
- package/tab-bar/modern/components/tab/index.css +5 -2
- package/tab-bar/modern/components/tab/index.js +2 -1
- package/tab-bar/modern/consts.d.ts +9 -0
- package/tab-bar/modern/consts.js +10 -0
- package/tab-bar/modern/index.css +9 -7
- package/tab-bar/modern/index.js +2 -1
- package/tab-bar/modern/types.d.ts +11 -3
- package/tab-bar/types.d.ts +11 -3
- package/themes/click.css +0 -6
- package/themes/compiled/mobile-dark-bluetint.css +70 -219
- package/themes/mixins/click.css +0 -2
- package/toast-plate/browser-a216f694.d.ts +6 -0
- package/toast-plate/components/base-toast-plate/component.d.ts +9 -12
- package/toast-plate/components/base-toast-plate/component.js +16 -14
- package/toast-plate/components/base-toast-plate/hooks/useCustomIcons.d.ts +6 -0
- package/toast-plate/components/base-toast-plate/hooks/useCustomIcons.js +13 -0
- package/toast-plate/components/base-toast-plate/hooks/useDeprecatedBadge.d.ts +7 -0
- package/toast-plate/components/base-toast-plate/hooks/useDeprecatedBadge.js +26 -0
- package/toast-plate/components/base-toast-plate/types/unsafeBadgeProps.d.ts +6 -0
- package/toast-plate/components/base-toast-plate/types/unsafeBadgeProps.js +1 -0
- package/toast-plate/components/base-toast-plate/utils/getBaseToastPlateTestIds.d.ts +5 -0
- package/toast-plate/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +14 -0
- package/toast-plate/components/base-toast-plate/utils/isUnsafeBadge.d.ts +5 -0
- package/toast-plate/components/base-toast-plate/utils/isUnsafeBadge.js +8 -0
- package/toast-plate/cssm/browser-a216f694.d.ts +6 -0
- package/toast-plate/cssm/components/base-toast-plate/component.d.ts +9 -12
- package/toast-plate/cssm/components/base-toast-plate/component.js +16 -14
- package/toast-plate/cssm/components/base-toast-plate/hooks/useCustomIcons.d.ts +6 -0
- package/toast-plate/cssm/components/base-toast-plate/hooks/useCustomIcons.js +13 -0
- package/toast-plate/cssm/components/base-toast-plate/hooks/useDeprecatedBadge.d.ts +7 -0
- package/toast-plate/cssm/components/base-toast-plate/hooks/useDeprecatedBadge.js +26 -0
- package/toast-plate/cssm/components/base-toast-plate/types/unsafeBadgeProps.d.ts +6 -0
- package/toast-plate/cssm/components/base-toast-plate/types/unsafeBadgeProps.js +1 -0
- package/toast-plate/cssm/components/base-toast-plate/utils/getBaseToastPlateTestIds.d.ts +5 -0
- package/toast-plate/cssm/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +14 -0
- package/toast-plate/cssm/components/base-toast-plate/utils/isUnsafeBadge.d.ts +5 -0
- package/toast-plate/cssm/components/base-toast-plate/utils/isUnsafeBadge.js +8 -0
- package/toast-plate/cssm/getDataTestId-73ea38f8.d.ts +3 -0
- package/toast-plate/cssm/getDataTestId-73ea38f8.js +6 -0
- package/toast-plate/cssm/index-307da6d7.d.ts +71 -0
- package/toast-plate/cssm/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
- package/toast-plate/esm/Component.responsive.js +6 -4
- package/toast-plate/esm/browser-a216f694.d.ts +6 -0
- package/toast-plate/esm/components/base-toast-plate/component.d.ts +9 -12
- package/toast-plate/esm/components/base-toast-plate/component.js +16 -14
- package/toast-plate/esm/components/base-toast-plate/hooks/useCustomIcons.d.ts +6 -0
- package/toast-plate/esm/components/base-toast-plate/hooks/useCustomIcons.js +11 -0
- package/toast-plate/esm/components/base-toast-plate/hooks/useDeprecatedBadge.d.ts +7 -0
- package/toast-plate/esm/components/base-toast-plate/hooks/useDeprecatedBadge.js +24 -0
- package/toast-plate/esm/components/base-toast-plate/index.js +6 -4
- package/toast-plate/esm/components/base-toast-plate/types/unsafeBadgeProps.d.ts +6 -0
- package/toast-plate/esm/components/base-toast-plate/types/unsafeBadgeProps.js +1 -0
- package/toast-plate/esm/components/base-toast-plate/utils/getBaseToastPlateTestIds.d.ts +5 -0
- package/toast-plate/esm/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +12 -0
- package/toast-plate/esm/components/base-toast-plate/utils/isUnsafeBadge.d.ts +5 -0
- package/toast-plate/esm/components/base-toast-plate/utils/isUnsafeBadge.js +6 -0
- package/toast-plate/esm/desktop/Component.desktop.js +6 -4
- package/toast-plate/esm/desktop/index.js +6 -4
- package/toast-plate/esm/getDataTestId-b3cf0f77.d.ts +3 -0
- package/toast-plate/esm/getDataTestId-b3cf0f77.js +6 -0
- package/toast-plate/esm/index-307da6d7.d.ts +71 -0
- package/toast-plate/esm/index.js +6 -4
- package/toast-plate/esm/mobile/Component.mobile.js +6 -4
- package/toast-plate/esm/mobile/index.js +6 -4
- package/toast-plate/esm/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
- package/toast-plate/getDataTestId-439ac98c.d.ts +3 -0
- package/toast-plate/getDataTestId-439ac98c.js +6 -0
- package/toast-plate/index-307da6d7.d.ts +71 -0
- package/toast-plate/modern/Component.responsive.js +6 -4
- package/toast-plate/modern/browser-a216f694.d.ts +6 -0
- package/toast-plate/modern/components/base-toast-plate/component.d.ts +9 -12
- package/toast-plate/modern/components/base-toast-plate/component.js +16 -14
- package/toast-plate/modern/components/base-toast-plate/hooks/useCustomIcons.d.ts +6 -0
- package/toast-plate/modern/components/base-toast-plate/hooks/useCustomIcons.js +11 -0
- package/toast-plate/modern/components/base-toast-plate/hooks/useDeprecatedBadge.d.ts +7 -0
- package/toast-plate/modern/components/base-toast-plate/hooks/useDeprecatedBadge.js +24 -0
- package/toast-plate/modern/components/base-toast-plate/index.js +6 -4
- package/toast-plate/modern/components/base-toast-plate/types/unsafeBadgeProps.d.ts +6 -0
- package/toast-plate/modern/components/base-toast-plate/types/unsafeBadgeProps.js +1 -0
- package/toast-plate/modern/components/base-toast-plate/utils/getBaseToastPlateTestIds.d.ts +5 -0
- package/toast-plate/modern/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +12 -0
- package/toast-plate/modern/components/base-toast-plate/utils/isUnsafeBadge.d.ts +5 -0
- package/toast-plate/modern/components/base-toast-plate/utils/isUnsafeBadge.js +4 -0
- package/toast-plate/modern/desktop/Component.desktop.js +6 -4
- package/toast-plate/modern/desktop/index.js +6 -4
- package/toast-plate/modern/getDataTestId-8aa8ef85.d.ts +3 -0
- package/toast-plate/modern/getDataTestId-8aa8ef85.js +6 -0
- package/toast-plate/modern/index-307da6d7.d.ts +71 -0
- package/toast-plate/modern/index.js +6 -4
- package/toast-plate/modern/mobile/Component.mobile.js +6 -4
- package/toast-plate/modern/mobile/index.js +6 -4
- package/toast-plate/modern/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
- package/toast-plate/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
- package/typography/esm/component.js +2 -2
- package/typography/esm/index.js +2 -2
- package/typography/esm/text/component.js +1 -1
- package/typography/esm/text/index.js +1 -1
- package/typography/esm/title/component.js +1 -1
- package/typography/esm/title/index.js +2 -2
- package/typography/esm/title-mobile/component.js +2 -2
- package/typography/esm/title-mobile/index.js +2 -2
- package/typography/esm/title-responsive/component.js +2 -2
- package/typography/esm/title-responsive/index.js +2 -2
- package/typography/modern/component.js +2 -2
- package/typography/modern/index.js +2 -2
- package/typography/modern/text/component.js +1 -1
- package/typography/modern/text/index.js +1 -1
- package/typography/modern/title/component.js +1 -1
- package/typography/modern/title/index.js +2 -2
- package/typography/modern/title-mobile/component.js +2 -2
- package/typography/modern/title-mobile/index.js +2 -2
- package/typography/modern/title-responsive/component.js +2 -2
- package/typography/modern/title-responsive/index.js +2 -2
- package/typography/text/component.js +1 -1
- package/typography/title/component.js +1 -1
- package/typography/title/index.js +1 -1
- package/typography/title-mobile/component.js +1 -1
- package/typography/title-responsive/component.js +1 -1
- package/universal-date-input/cssm/index-5712fce2.d.ts +1 -8
- package/universal-date-input/cssm/use-skeleton-1328ead9.d.ts +4 -0
- package/universal-date-input/esm/index-5712fce2.d.ts +1 -8
- package/universal-date-input/esm/use-skeleton-1328ead9.d.ts +4 -0
- package/universal-date-input/index-5712fce2.d.ts +1 -8
- package/universal-date-input/modern/index-5712fce2.d.ts +1 -8
- package/universal-date-input/modern/use-skeleton-1328ead9.d.ts +4 -0
- package/universal-date-input/use-skeleton-1328ead9.d.ts +4 -0
- package/base-modal/cssm/helpers/lockScroll.d.ts +0 -4
- package/base-modal/cssm/helpers/lockScroll.js +0 -18
- package/base-modal/esm/helpers/lockScroll.d.ts +0 -4
- package/base-modal/esm/helpers/lockScroll.js +0 -14
- package/base-modal/helpers/lockScroll.d.ts +0 -4
- package/base-modal/helpers/lockScroll.js +0 -18
- package/base-modal/modern/helpers/lockScroll.d.ts +0 -4
- package/base-modal/modern/helpers/lockScroll.js +0 -14
- package/themes/mixins/skeleton/click.css +0 -8
- package/themes/skeleton/click.css +0 -8
- /package/calendar-range/esm/{index.module-7ba85cb1.js → index.module-912e88cf.js} +0 -0
- /package/calendar-range/{index.module-c6ded4a2.js → index.module-bf0591f0.js} +0 -0
- /package/calendar-range/modern/{index.module-0604d154.js → index.module-636e08a2.js} +0 -0
- /package/confirmation/{countdown-section-9194293e.d.ts → countdown-section-b30d5212.d.ts} +0 -0
- /package/confirmation/{countdown-section-9194293e.js → countdown-section-b30d5212.js} +0 -0
- /package/confirmation/esm/{countdown-section-fc384721.d.ts → countdown-section-c4f73a77.d.ts} +0 -0
- /package/confirmation/esm/{countdown-section-fc384721.js → countdown-section-c4f73a77.js} +0 -0
- /package/confirmation/modern/{countdown-section-f33e01b7.d.ts → countdown-section-f3215ad8.d.ts} +0 -0
- /package/confirmation/modern/{countdown-section-f33e01b7.js → countdown-section-f3215ad8.js} +0 -0
- /package/gallery/{buttons-160fdb5a.d.ts → buttons-19c30d23.d.ts} +0 -0
- /package/gallery/{buttons-160fdb5a.js → buttons-19c30d23.js} +0 -0
- /package/gallery/esm/{buttons-f951e5ce.d.ts → buttons-37ed3ab5.d.ts} +0 -0
- /package/gallery/esm/{buttons-f951e5ce.js → buttons-37ed3ab5.js} +0 -0
- /package/gallery/esm/{slide-3595abb4.d.ts → slide-8d1299a5.d.ts} +0 -0
- /package/gallery/esm/{slide-3595abb4.js → slide-8d1299a5.js} +0 -0
- /package/gallery/modern/{buttons-a3ff616b.d.ts → buttons-92efe05c.d.ts} +0 -0
- /package/gallery/modern/{buttons-a3ff616b.js → buttons-92efe05c.js} +0 -0
- /package/gallery/modern/{slide-acb49e8e.d.ts → slide-57aa7661.d.ts} +0 -0
- /package/gallery/modern/{slide-acb49e8e.js → slide-57aa7661.js} +0 -0
- /package/gallery/{slide-2268997b.d.ts → slide-45ca49f1.d.ts} +0 -0
- /package/gallery/{slide-2268997b.js → slide-45ca49f1.js} +0 -0
- /package/modal/esm/{layout.module-2fe04090.js → layout.module-b635b128.js} +0 -0
- /package/modal/{layout.module-8adfa2ca.js → layout.module-34149103.js} +0 -0
- /package/modal/modern/{layout.module-5847d827.js → layout.module-41e8947b.js} +0 -0
- /package/picker-button/{Component-a5b021bd.d.ts → Component-307da6d7.d.ts} +0 -0
- /package/picker-button/cssm/{Component-a5b021bd.d.ts → Component-307da6d7.d.ts} +0 -0
- /package/picker-button/esm/{Component-a5b021bd.d.ts → Component-307da6d7.d.ts} +0 -0
- /package/picker-button/modern/{Component-a5b021bd.d.ts → Component-307da6d7.d.ts} +0 -0
- /package/pure-cell/{component-41907143.d.ts → component-5e8acf12.d.ts} +0 -0
- /package/pure-cell/{component-41907143.js → component-5e8acf12.js} +0 -0
- /package/pure-cell/esm/{component-e23350f5.d.ts → component-f28a5631.d.ts} +0 -0
- /package/pure-cell/esm/{component-e23350f5.js → component-f28a5631.js} +0 -0
- /package/pure-cell/modern/{component-b9194169.d.ts → component-10bc9276.d.ts} +0 -0
- /package/pure-cell/modern/{component-b9194169.js → component-10bc9276.js} +0 -0
- /package/side-panel/esm/{layout.module-a9e68775.js → layout.module-0dc6a00f.js} +0 -0
- /package/side-panel/{layout.module-df4fedc9.js → layout.module-5eeb8248.js} +0 -0
- /package/side-panel/modern/{layout.module-d348cc57.js → layout.module-6f83e451.js} +0 -0
- /package/typography/{colors.module-a11b73e9.js → colors.module-5b90a9cc.js} +0 -0
- /package/typography/{common.module-25e7ce83.js → common.module-53a00318.js} +0 -0
- /package/typography/esm/{colors.module-e5414e42.js → colors.module-f2501c6f.js} +0 -0
- /package/typography/esm/{common.module-bd07cc74.js → common.module-04c7810e.js} +0 -0
- /package/typography/modern/{colors.module-9fa7fdee.js → colors.module-83a4b747.js} +0 -0
- /package/typography/modern/{common.module-e73684d9.js → common.module-278c339a.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { g as getDataTestId } from '../../../getDataTestId-b3cf0f77.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import '@alfalab/hooks';
|
|
4
|
+
|
|
5
|
+
function getBaseToastPlateTestIds(dataTestId) {
|
|
6
|
+
return {
|
|
7
|
+
badge: getDataTestId(dataTestId, 'badge'),
|
|
8
|
+
component: getDataTestId(dataTestId, 'component'),
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { getBaseToastPlateTestIds };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { StatusBadgeProps } from "../../../../../status-badge";
|
|
2
|
+
import { unsafe_BadgeProps } from "../types/unsafeBadgeProps";
|
|
3
|
+
type IsUnsafeBadge = unsafe_BadgeProps | StatusBadgeProps['view'];
|
|
4
|
+
declare const isUnsafeBadge: (badge: IsUnsafeBadge) => badge is unsafe_BadgeProps;
|
|
5
|
+
export { isUnsafeBadge };
|
|
@@ -2,12 +2,14 @@ import { __assign } from 'tslib';
|
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import { BaseToastPlate } from '../components/base-toast-plate/component.js';
|
|
4
4
|
import 'classnames';
|
|
5
|
-
import '../../../badge/esm';
|
|
6
5
|
import '../../../icon-button/esm';
|
|
7
|
-
import '
|
|
8
|
-
import '@alfalab/
|
|
9
|
-
import '
|
|
6
|
+
import '../getDataTestId-b3cf0f77.js';
|
|
7
|
+
import '@alfalab/hooks';
|
|
8
|
+
import '../../../status-badge/esm';
|
|
10
9
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
10
|
+
import '../components/base-toast-plate/hooks/useCustomIcons.js';
|
|
11
|
+
import '../components/base-toast-plate/hooks/useDeprecatedBadge.js';
|
|
12
|
+
import '../components/base-toast-plate/utils/isUnsafeBadge.js';
|
|
11
13
|
|
|
12
14
|
var styles = {"actionSection":"toast-plate__actionSection_1heyl","title":"toast-plate__title_1heyl","closeButtonWrapper":"toast-plate__closeButtonWrapper_1heyl","closeButton":"toast-plate__closeButton_1heyl"};
|
|
13
15
|
require('./desktop.css');
|
|
@@ -3,9 +3,11 @@ import 'tslib';
|
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../components/base-toast-plate/component.js';
|
|
5
5
|
import 'classnames';
|
|
6
|
-
import '../../../badge/esm';
|
|
7
6
|
import '../../../icon-button/esm';
|
|
8
|
-
import '
|
|
9
|
-
import '@alfalab/
|
|
10
|
-
import '
|
|
7
|
+
import '../getDataTestId-b3cf0f77.js';
|
|
8
|
+
import '@alfalab/hooks';
|
|
9
|
+
import '../../../status-badge/esm';
|
|
11
10
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
11
|
+
import '../components/base-toast-plate/hooks/useCustomIcons.js';
|
|
12
|
+
import '../components/base-toast-plate/hooks/useDeprecatedBadge.js';
|
|
13
|
+
import '../components/base-toast-plate/utils/isUnsafeBadge.js';
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
/* eslint-disable no-plusplus, no-param-reassign */
|
|
4
|
+
import { MaskitoPlugin, MaskitoPostprocessor, MaskitoPreprocessor } from "@maskito/core";
|
|
5
|
+
import { useCustomWebkitScrollbar } from "./useCustomWebkitScrollbar-a216f694";
|
|
6
|
+
declare const isClient: () => boolean;
|
|
7
|
+
declare function isApplePlatform(): boolean;
|
|
8
|
+
declare function isIOS(): boolean;
|
|
9
|
+
declare const os: {
|
|
10
|
+
isIOS: typeof isIOS;
|
|
11
|
+
isApplePlatform: typeof isApplePlatform;
|
|
12
|
+
};
|
|
13
|
+
type PaddingType = number | string | {
|
|
14
|
+
top?: number;
|
|
15
|
+
right?: number;
|
|
16
|
+
bottom?: number;
|
|
17
|
+
left?: number;
|
|
18
|
+
};
|
|
19
|
+
declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
|
|
20
|
+
declare function easeInOutQuad(x: number): number;
|
|
21
|
+
declare const easingFns: {
|
|
22
|
+
easeInOutQuad: typeof easeInOutQuad;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Возвращает true, если значение равно null или undefined
|
|
26
|
+
*/
|
|
27
|
+
declare function isNil(value: unknown): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Выбор значения между min max границами
|
|
30
|
+
*/
|
|
31
|
+
declare function clamp<T extends Date | number>(value: T, min: T, max: T): T;
|
|
32
|
+
declare function noop(): void;
|
|
33
|
+
declare const fnUtils: {
|
|
34
|
+
clamp: typeof clamp;
|
|
35
|
+
noop: typeof noop;
|
|
36
|
+
isNil: typeof isNil;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Запрещает каретке становиться за указанные границы
|
|
40
|
+
*/
|
|
41
|
+
declare function caretGuard(guard: (value: string, selection: readonly [
|
|
42
|
+
from: number,
|
|
43
|
+
to: number
|
|
44
|
+
]) => [
|
|
45
|
+
from: number,
|
|
46
|
+
to: number
|
|
47
|
+
]): MaskitoPlugin;
|
|
48
|
+
/**
|
|
49
|
+
* Запрещает удалять указанный префикс
|
|
50
|
+
*/
|
|
51
|
+
declare function prefixPostprocessor(prefix: string): MaskitoPostprocessor;
|
|
52
|
+
/**
|
|
53
|
+
* Препроцессор необходим для правильной вставки/автокомплита телефонного номера
|
|
54
|
+
*/
|
|
55
|
+
declare function insertionPhonePreprocessor(mask: Array<string | RegExp>, countryCode?: string, clearableCountryCode?: boolean): MaskitoPreprocessor;
|
|
56
|
+
declare const maskUtils: {
|
|
57
|
+
insertionPhonePreprocessor: typeof insertionPhonePreprocessor;
|
|
58
|
+
prefixPostprocessor: typeof prefixPostprocessor;
|
|
59
|
+
caretGuard: typeof caretGuard;
|
|
60
|
+
};
|
|
61
|
+
declare const hooks: {
|
|
62
|
+
useCustomWebkitScrollbar: typeof useCustomWebkitScrollbar;
|
|
63
|
+
};
|
|
64
|
+
declare function preventDefault(e: React.UIEvent): void;
|
|
65
|
+
declare const dom: {
|
|
66
|
+
preventDefault: typeof preventDefault;
|
|
67
|
+
};
|
|
68
|
+
export { isClient, os, createPaddingStyle, easingFns, fnUtils, maskUtils, hooks, dom };
|
|
69
|
+
export * from "./getDataTestId-b3cf0f77";
|
|
70
|
+
export * from "./browser-a216f694";
|
|
71
|
+
export * from "./components/base-toast-plate/hooks/useDeprecatedBadge";
|
package/toast-plate/esm/index.js
CHANGED
|
@@ -5,10 +5,12 @@ import '../../mq/esm';
|
|
|
5
5
|
import './desktop/Component.desktop.js';
|
|
6
6
|
import './components/base-toast-plate/component.js';
|
|
7
7
|
import 'classnames';
|
|
8
|
-
import '../../badge/esm';
|
|
9
8
|
import '../../icon-button/esm';
|
|
10
|
-
import '
|
|
11
|
-
import '@alfalab/
|
|
12
|
-
import '
|
|
9
|
+
import './getDataTestId-b3cf0f77.js';
|
|
10
|
+
import '@alfalab/hooks';
|
|
11
|
+
import '../../status-badge/esm';
|
|
13
12
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
13
|
+
import './components/base-toast-plate/hooks/useCustomIcons.js';
|
|
14
|
+
import './components/base-toast-plate/hooks/useDeprecatedBadge.js';
|
|
15
|
+
import './components/base-toast-plate/utils/isUnsafeBadge.js';
|
|
14
16
|
import './mobile/Component.mobile.js';
|
|
@@ -2,12 +2,14 @@ import { __assign } from 'tslib';
|
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import { BaseToastPlate } from '../components/base-toast-plate/component.js';
|
|
4
4
|
import 'classnames';
|
|
5
|
-
import '../../../badge/esm';
|
|
6
5
|
import '../../../icon-button/esm';
|
|
7
|
-
import '
|
|
8
|
-
import '@alfalab/
|
|
9
|
-
import '
|
|
6
|
+
import '../getDataTestId-b3cf0f77.js';
|
|
7
|
+
import '@alfalab/hooks';
|
|
8
|
+
import '../../../status-badge/esm';
|
|
10
9
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
10
|
+
import '../components/base-toast-plate/hooks/useCustomIcons.js';
|
|
11
|
+
import '../components/base-toast-plate/hooks/useDeprecatedBadge.js';
|
|
12
|
+
import '../components/base-toast-plate/utils/isUnsafeBadge.js';
|
|
11
13
|
|
|
12
14
|
var styles = {"actionSection":"toast-plate__actionSection_fuxup","title":"toast-plate__title_fuxup","closeButtonWrapper":"toast-plate__closeButtonWrapper_fuxup","closeButton":"toast-plate__closeButton_fuxup"};
|
|
13
15
|
require('./mobile.css');
|
|
@@ -3,9 +3,11 @@ import 'tslib';
|
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../components/base-toast-plate/component.js';
|
|
5
5
|
import 'classnames';
|
|
6
|
-
import '../../../badge/esm';
|
|
7
6
|
import '../../../icon-button/esm';
|
|
8
|
-
import '
|
|
9
|
-
import '@alfalab/
|
|
10
|
-
import '
|
|
7
|
+
import '../getDataTestId-b3cf0f77.js';
|
|
8
|
+
import '@alfalab/hooks';
|
|
9
|
+
import '../../../status-badge/esm';
|
|
11
10
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
11
|
+
import '../components/base-toast-plate/hooks/useCustomIcons.js';
|
|
12
|
+
import '../components/base-toast-plate/hooks/useDeprecatedBadge.js';
|
|
13
|
+
import '../components/base-toast-plate/utils/isUnsafeBadge.js';
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
/* eslint-disable no-plusplus, no-param-reassign */
|
|
4
|
+
import { MaskitoPlugin, MaskitoPostprocessor, MaskitoPreprocessor } from "@maskito/core";
|
|
5
|
+
import { useCustomWebkitScrollbar } from "./useCustomWebkitScrollbar-a216f694";
|
|
6
|
+
declare const isClient: () => boolean;
|
|
7
|
+
declare function isApplePlatform(): boolean;
|
|
8
|
+
declare function isIOS(): boolean;
|
|
9
|
+
declare const os: {
|
|
10
|
+
isIOS: typeof isIOS;
|
|
11
|
+
isApplePlatform: typeof isApplePlatform;
|
|
12
|
+
};
|
|
13
|
+
type PaddingType = number | string | {
|
|
14
|
+
top?: number;
|
|
15
|
+
right?: number;
|
|
16
|
+
bottom?: number;
|
|
17
|
+
left?: number;
|
|
18
|
+
};
|
|
19
|
+
declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
|
|
20
|
+
declare function easeInOutQuad(x: number): number;
|
|
21
|
+
declare const easingFns: {
|
|
22
|
+
easeInOutQuad: typeof easeInOutQuad;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Возвращает true, если значение равно null или undefined
|
|
26
|
+
*/
|
|
27
|
+
declare function isNil(value: unknown): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Выбор значения между min max границами
|
|
30
|
+
*/
|
|
31
|
+
declare function clamp<T extends Date | number>(value: T, min: T, max: T): T;
|
|
32
|
+
declare function noop(): void;
|
|
33
|
+
declare const fnUtils: {
|
|
34
|
+
clamp: typeof clamp;
|
|
35
|
+
noop: typeof noop;
|
|
36
|
+
isNil: typeof isNil;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Запрещает каретке становиться за указанные границы
|
|
40
|
+
*/
|
|
41
|
+
declare function caretGuard(guard: (value: string, selection: readonly [
|
|
42
|
+
from: number,
|
|
43
|
+
to: number
|
|
44
|
+
]) => [
|
|
45
|
+
from: number,
|
|
46
|
+
to: number
|
|
47
|
+
]): MaskitoPlugin;
|
|
48
|
+
/**
|
|
49
|
+
* Запрещает удалять указанный префикс
|
|
50
|
+
*/
|
|
51
|
+
declare function prefixPostprocessor(prefix: string): MaskitoPostprocessor;
|
|
52
|
+
/**
|
|
53
|
+
* Препроцессор необходим для правильной вставки/автокомплита телефонного номера
|
|
54
|
+
*/
|
|
55
|
+
declare function insertionPhonePreprocessor(mask: Array<string | RegExp>, countryCode?: string, clearableCountryCode?: boolean): MaskitoPreprocessor;
|
|
56
|
+
declare const maskUtils: {
|
|
57
|
+
insertionPhonePreprocessor: typeof insertionPhonePreprocessor;
|
|
58
|
+
prefixPostprocessor: typeof prefixPostprocessor;
|
|
59
|
+
caretGuard: typeof caretGuard;
|
|
60
|
+
};
|
|
61
|
+
declare const hooks: {
|
|
62
|
+
useCustomWebkitScrollbar: typeof useCustomWebkitScrollbar;
|
|
63
|
+
};
|
|
64
|
+
declare function preventDefault(e: React.UIEvent): void;
|
|
65
|
+
declare const dom: {
|
|
66
|
+
preventDefault: typeof preventDefault;
|
|
67
|
+
};
|
|
68
|
+
export { isClient, os, createPaddingStyle, easingFns, fnUtils, maskUtils, hooks, dom };
|
|
69
|
+
export * from "./getDataTestId-439ac98c";
|
|
70
|
+
export * from "./browser-a216f694";
|
|
71
|
+
export * from "./components/base-toast-plate/hooks/useDeprecatedBadge";
|
|
@@ -4,12 +4,14 @@ import { ToastPlateDesktop } from './desktop/Component.desktop.js';
|
|
|
4
4
|
import { ToastPlateMobile } from './mobile/Component.mobile.js';
|
|
5
5
|
import './components/base-toast-plate/component.js';
|
|
6
6
|
import 'classnames';
|
|
7
|
-
import '../../badge/modern';
|
|
8
7
|
import '../../icon-button/modern';
|
|
9
|
-
import '
|
|
10
|
-
import '@alfalab/
|
|
11
|
-
import '
|
|
8
|
+
import './getDataTestId-8aa8ef85.js';
|
|
9
|
+
import '@alfalab/hooks';
|
|
10
|
+
import '../../status-badge/modern';
|
|
12
11
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
12
|
+
import './components/base-toast-plate/hooks/useCustomIcons.js';
|
|
13
|
+
import './components/base-toast-plate/hooks/useDeprecatedBadge.js';
|
|
14
|
+
import './components/base-toast-plate/utils/isUnsafeBadge.js';
|
|
13
15
|
|
|
14
16
|
const ToastPlate = forwardRef(({ children, breakpoint = 1024, ...restProps }, ref) => {
|
|
15
17
|
const query = `(min-width: ${breakpoint}px)`;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { HTMLAttributes, MouseEvent, ReactNode } from "react";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
positive: JSX.Element;
|
|
7
|
-
attention: JSX.Element;
|
|
8
|
-
};
|
|
4
|
+
import { StatusBadgeCustomIcon, StatusBadgeViews } from "../../../../status-badge";
|
|
5
|
+
import { unsafe_BadgeProps } from "./types/unsafeBadgeProps";
|
|
9
6
|
type BaseToastPlateProps = HTMLAttributes<HTMLDivElement> & {
|
|
10
7
|
/**
|
|
11
8
|
* Дополнительный класс
|
|
@@ -34,7 +31,7 @@ type BaseToastPlateProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
34
31
|
/**
|
|
35
32
|
* Вид бэйджа
|
|
36
33
|
*/
|
|
37
|
-
badge?:
|
|
34
|
+
badge?: unsafe_BadgeProps | StatusBadgeViews;
|
|
38
35
|
/**
|
|
39
36
|
* Слот слева, заменяет стандартную иконку
|
|
40
37
|
*/
|
|
@@ -68,9 +65,9 @@ type BaseToastPlateProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
68
65
|
*/
|
|
69
66
|
onClose?: (event?: MouseEvent<HTMLButtonElement>) => void;
|
|
70
67
|
/**
|
|
71
|
-
* Функция, с помощью которой можно переопределить иконки в
|
|
68
|
+
* Функция, с помощью которой можно переопределить иконки в StatusBadge
|
|
72
69
|
*/
|
|
73
|
-
getBadgeIcons?:
|
|
70
|
+
getBadgeIcons?: StatusBadgeCustomIcon;
|
|
74
71
|
/**
|
|
75
72
|
* Набор цветов для компонента
|
|
76
73
|
*/
|
|
@@ -114,7 +111,7 @@ declare const BaseToastPlate: React.ForwardRefExoticComponent<React.HTMLAttribut
|
|
|
114
111
|
/**
|
|
115
112
|
* Вид бэйджа
|
|
116
113
|
*/
|
|
117
|
-
badge?:
|
|
114
|
+
badge?: StatusBadgeViews | unsafe_BadgeProps | undefined;
|
|
118
115
|
/**
|
|
119
116
|
* Слот слева, заменяет стандартную иконку
|
|
120
117
|
*/
|
|
@@ -148,9 +145,9 @@ declare const BaseToastPlate: React.ForwardRefExoticComponent<React.HTMLAttribut
|
|
|
148
145
|
*/
|
|
149
146
|
onClose?: ((event?: MouseEvent<HTMLButtonElement>) => void) | undefined;
|
|
150
147
|
/**
|
|
151
|
-
* Функция, с помощью которой можно переопределить иконки в
|
|
148
|
+
* Функция, с помощью которой можно переопределить иконки в StatusBadge
|
|
152
149
|
*/
|
|
153
|
-
getBadgeIcons?: (
|
|
150
|
+
getBadgeIcons?: Partial<Record<StatusBadgeViews, Partial<Record<import("../../../../status-badge").StatusBadgeSizes, import("../../../../status-badge").StatusBadgeIcon>>>> | undefined;
|
|
154
151
|
/**
|
|
155
152
|
* Набор цветов для компонента
|
|
156
153
|
*/
|
|
@@ -166,4 +163,4 @@ declare const BaseToastPlate: React.ForwardRefExoticComponent<React.HTMLAttribut
|
|
|
166
163
|
[key: string]: string;
|
|
167
164
|
} | undefined;
|
|
168
165
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
169
|
-
export {
|
|
166
|
+
export { BaseToastPlateProps, BaseToastPlate };
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React, { forwardRef, useCallback } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import { Badge } from '../../../../badge/modern';
|
|
4
3
|
import { IconButton } from '../../../../icon-button/modern';
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
4
|
+
import { g as getDataTestId } from '../../getDataTestId-8aa8ef85.js';
|
|
5
|
+
import '@alfalab/hooks';
|
|
6
|
+
import { StatusBadge } from '../../../../status-badge/modern';
|
|
8
7
|
import { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';
|
|
8
|
+
import { useCustomIcons } from './hooks/useCustomIcons.js';
|
|
9
|
+
import { useDeprecatedBadge } from './hooks/useDeprecatedBadge.js';
|
|
10
|
+
import { isUnsafeBadge } from './utils/isUnsafeBadge.js';
|
|
9
11
|
|
|
10
12
|
const defaultColors = {"component":"toast-plate__component_eyew1","closeButtonWrapper":"toast-plate__closeButtonWrapper_eyew1"};
|
|
11
13
|
require('./default.css');
|
|
@@ -20,25 +22,25 @@ const colorStyles = {
|
|
|
20
22
|
default: defaultColors,
|
|
21
23
|
inverted: invertedColors,
|
|
22
24
|
};
|
|
23
|
-
const iconDefaultComponents = {
|
|
24
|
-
negative: React.createElement(CrossCircleMIcon, { className: commonStyles.badgeIcon }),
|
|
25
|
-
positive: React.createElement(CheckmarkCircleMIcon, { className: commonStyles.badgeIcon }),
|
|
26
|
-
attention: React.createElement(AlertCircleMIcon, { className: commonStyles.badgeIcon }),
|
|
27
|
-
};
|
|
28
25
|
const BaseToastPlate = forwardRef(({ dataTestId, className, titleClassName, contentClassName, actionSectionClassName, hasCloser, leftAddons, badge, title, children, actionButton, block, onClose, getBadgeIcons, colors = 'default', closerWrapperClassName, closerClassName, bottomButtonPosition = false, styles = {}, ...restProps }, ref) => {
|
|
29
26
|
const needRenderLeftAddons = Boolean(leftAddons || badge);
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
: iconDefaultComponents;
|
|
27
|
+
const { transformDeprecatedBadge } = useDeprecatedBadge();
|
|
28
|
+
const { getCustomIcons } = useCustomIcons();
|
|
33
29
|
const handleClose = useCallback((event) => {
|
|
34
30
|
if (onClose) {
|
|
35
31
|
onClose(event);
|
|
36
32
|
}
|
|
37
33
|
}, [onClose]);
|
|
38
|
-
|
|
34
|
+
let statusBadgeView = badge;
|
|
35
|
+
if (badge && isUnsafeBadge(badge)) {
|
|
36
|
+
statusBadgeView = transformDeprecatedBadge(badge);
|
|
37
|
+
}
|
|
38
|
+
const customIcons = getCustomIcons(getBadgeIcons);
|
|
39
|
+
return (React.createElement("div", { className: cn(commonStyles.component, colorStyles[colors].component, { [commonStyles.block]: block, [commonStyles.hasCloser]: hasCloser }, className), ref: ref, "data-test-id": getDataTestId(dataTestId, 'component'), ...restProps },
|
|
39
40
|
React.createElement("div", { className: commonStyles.wrapper },
|
|
40
41
|
React.createElement("div", { className: commonStyles.contentWrapper },
|
|
41
|
-
needRenderLeftAddons && (React.createElement("div", { className: commonStyles.leftAddons }, leftAddons ||
|
|
42
|
+
needRenderLeftAddons && (React.createElement("div", { className: commonStyles.leftAddons }, leftAddons ||
|
|
43
|
+
(badge && (React.createElement(StatusBadge, { view: statusBadgeView, dataTestId: getDataTestId(dataTestId, 'badge'), ...(customIcons && { customIcons }) }))))),
|
|
42
44
|
React.createElement("div", { className: cn(contentClassName, commonStyles.content, {
|
|
43
45
|
[commonStyles.hasCloser]: hasCloser,
|
|
44
46
|
[commonStyles.hasActionButton]: !!actionButton,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { StatusBadgeCustomIcon } from "../../../../../status-badge";
|
|
2
|
+
type GetCustomIcons = StatusBadgeCustomIcon | null;
|
|
3
|
+
declare const useCustomIcons: () => {
|
|
4
|
+
getCustomIcons: (getBadgeIcons?: StatusBadgeCustomIcon) => GetCustomIcons;
|
|
5
|
+
};
|
|
6
|
+
export { useCustomIcons };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StatusBadgeProps } from "../../../../../status-badge";
|
|
2
|
+
import { unsafe_BadgeProps } from "../types/unsafeBadgeProps";
|
|
3
|
+
type UseDeprecatedBadge = {
|
|
4
|
+
transformDeprecatedBadge: (deprecatedBadge: unsafe_BadgeProps) => StatusBadgeProps['view'];
|
|
5
|
+
};
|
|
6
|
+
declare const useDeprecatedBadge: () => UseDeprecatedBadge;
|
|
7
|
+
export { useDeprecatedBadge };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
import '@alfalab/hooks';
|
|
3
|
+
|
|
4
|
+
const exhaustiveCheck = (value) => value;
|
|
5
|
+
|
|
6
|
+
const useDeprecatedBadge = () => {
|
|
7
|
+
const transformDeprecatedBadge = (unsafeBadge) => {
|
|
8
|
+
switch (unsafeBadge) {
|
|
9
|
+
case 'negative':
|
|
10
|
+
return 'negative-cross';
|
|
11
|
+
case 'positive':
|
|
12
|
+
return 'positive-checkmark';
|
|
13
|
+
case 'attention':
|
|
14
|
+
return 'attention-alert';
|
|
15
|
+
default:
|
|
16
|
+
return exhaustiveCheck(unsafeBadge);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
return {
|
|
20
|
+
transformDeprecatedBadge,
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { useDeprecatedBadge };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export { BaseToastPlate } from './component.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
import '../../../../badge/modern';
|
|
5
4
|
import '../../../../icon-button/modern';
|
|
6
|
-
import '
|
|
7
|
-
import '@alfalab/
|
|
8
|
-
import '
|
|
5
|
+
import '../../getDataTestId-8aa8ef85.js';
|
|
6
|
+
import '@alfalab/hooks';
|
|
7
|
+
import '../../../../status-badge/modern';
|
|
9
8
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
9
|
+
import './hooks/useCustomIcons.js';
|
|
10
|
+
import './hooks/useDeprecatedBadge.js';
|
|
11
|
+
import './utils/isUnsafeBadge.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { g as getDataTestId } from '../../../getDataTestId-8aa8ef85.js';
|
|
2
|
+
import 'react';
|
|
3
|
+
import '@alfalab/hooks';
|
|
4
|
+
|
|
5
|
+
function getBaseToastPlateTestIds(dataTestId) {
|
|
6
|
+
return {
|
|
7
|
+
badge: getDataTestId(dataTestId, 'badge'),
|
|
8
|
+
component: getDataTestId(dataTestId, 'component'),
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { getBaseToastPlateTestIds };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { StatusBadgeProps } from "../../../../../status-badge";
|
|
2
|
+
import { unsafe_BadgeProps } from "../types/unsafeBadgeProps";
|
|
3
|
+
type IsUnsafeBadge = unsafe_BadgeProps | StatusBadgeProps['view'];
|
|
4
|
+
declare const isUnsafeBadge: (badge: IsUnsafeBadge) => badge is unsafe_BadgeProps;
|
|
5
|
+
export { isUnsafeBadge };
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
import { BaseToastPlate } from '../components/base-toast-plate/component.js';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
import '../../../badge/modern';
|
|
5
4
|
import '../../../icon-button/modern';
|
|
6
|
-
import '
|
|
7
|
-
import '@alfalab/
|
|
8
|
-
import '
|
|
5
|
+
import '../getDataTestId-8aa8ef85.js';
|
|
6
|
+
import '@alfalab/hooks';
|
|
7
|
+
import '../../../status-badge/modern';
|
|
9
8
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
9
|
+
import '../components/base-toast-plate/hooks/useCustomIcons.js';
|
|
10
|
+
import '../components/base-toast-plate/hooks/useDeprecatedBadge.js';
|
|
11
|
+
import '../components/base-toast-plate/utils/isUnsafeBadge.js';
|
|
10
12
|
|
|
11
13
|
const styles = {"actionSection":"toast-plate__actionSection_1heyl","title":"toast-plate__title_1heyl","closeButtonWrapper":"toast-plate__closeButtonWrapper_1heyl","closeButton":"toast-plate__closeButton_1heyl"};
|
|
12
14
|
require('./desktop.css');
|
|
@@ -2,9 +2,11 @@ export { ToastPlateDesktop } from './Component.desktop.js';
|
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../components/base-toast-plate/component.js';
|
|
4
4
|
import 'classnames';
|
|
5
|
-
import '../../../badge/modern';
|
|
6
5
|
import '../../../icon-button/modern';
|
|
7
|
-
import '
|
|
8
|
-
import '@alfalab/
|
|
9
|
-
import '
|
|
6
|
+
import '../getDataTestId-8aa8ef85.js';
|
|
7
|
+
import '@alfalab/hooks';
|
|
8
|
+
import '../../../status-badge/modern';
|
|
10
9
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
10
|
+
import '../components/base-toast-plate/hooks/useCustomIcons.js';
|
|
11
|
+
import '../components/base-toast-plate/hooks/useDeprecatedBadge.js';
|
|
12
|
+
import '../components/base-toast-plate/utils/isUnsafeBadge.js';
|