@alfalab/core-components 45.8.0-beta.3 → 45.8.0-beta.5
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 +7 -3
- package/bottom-sheet/cssm/component.js +6 -2
- package/bottom-sheet/cssm/index.module.css +3 -1
- package/bottom-sheet/esm/component.js +8 -4
- package/bottom-sheet/esm/index.css +3 -1
- package/bottom-sheet/index.css +3 -1
- package/bottom-sheet/modern/component.js +7 -4
- package/bottom-sheet/modern/index.css +3 -1
- 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 +3 -1
- package/calendar-range/views/popover.js +1 -1
- package/calendar-range/views/static.js +1 -1
- package/confirmation/components/screens/initial/component.js +1 -1
- package/confirmation/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/esm/component.responsive.js +1 -1
- package/confirmation/esm/components/base-confirmation/component.js +1 -1
- package/confirmation/esm/components/base-confirmation/index.js +1 -1
- package/confirmation/esm/components/index.js +1 -1
- package/confirmation/esm/components/screens/index.js +1 -1
- package/confirmation/esm/components/screens/initial/component.js +1 -1
- package/confirmation/esm/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/esm/components/screens/initial/index.js +1 -1
- package/confirmation/esm/desktop/component.desktop.js +1 -1
- package/confirmation/esm/desktop/index.js +1 -1
- package/confirmation/esm/index.js +1 -1
- package/confirmation/esm/mobile/component.mobile.js +1 -1
- package/confirmation/esm/mobile/index.js +1 -1
- package/confirmation/esm/shared/index.js +1 -1
- package/confirmation/modern/component.responsive.js +1 -1
- package/confirmation/modern/components/base-confirmation/component.js +1 -1
- package/confirmation/modern/components/base-confirmation/index.js +1 -1
- package/confirmation/modern/components/index.js +1 -1
- package/confirmation/modern/components/screens/index.js +1 -1
- package/confirmation/modern/components/screens/initial/component.js +1 -1
- package/confirmation/modern/components/screens/initial/countdown-section.js +1 -1
- package/confirmation/modern/components/screens/initial/index.js +1 -1
- package/confirmation/modern/desktop/component.desktop.js +1 -1
- package/confirmation/modern/desktop/index.js +1 -1
- package/confirmation/modern/index.js +1 -1
- package/confirmation/modern/mobile/component.mobile.js +1 -1
- package/confirmation/modern/mobile/index.js +1 -1
- package/confirmation/modern/shared/index.js +1 -1
- package/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/use-skeleton-1328ead9.d.ts +0 -4
- package/international-phone-input/esm/use-skeleton-1328ead9.d.ts +0 -4
- package/international-phone-input/modern/use-skeleton-1328ead9.d.ts +0 -4
- package/international-phone-input/use-skeleton-1328ead9.d.ts +0 -4
- 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/package.json +1 -1
- package/picker-button/{modern/index-307da6d7.d.ts → cssm/index-a5b021bd.d.ts} +1 -2
- package/picker-button/cssm/use-skeleton-1328ead9.d.ts +0 -4
- package/picker-button/{cssm/index-307da6d7.d.ts → esm/index-a5b021bd.d.ts} +1 -2
- package/picker-button/esm/use-skeleton-1328ead9.d.ts +0 -4
- package/picker-button/{index-307da6d7.d.ts → index-a5b021bd.d.ts} +1 -2
- package/picker-button/{esm/index-307da6d7.d.ts → modern/index-a5b021bd.d.ts} +1 -2
- package/picker-button/modern/use-skeleton-1328ead9.d.ts +0 -4
- package/picker-button/use-skeleton-1328ead9.d.ts +0 -4
- package/pure-cell/component.js +1 -1
- package/pure-cell/components/addon/component.js +1 -1
- package/pure-cell/components/addon/index.d.ts +1 -1
- package/pure-cell/components/addon/index.js +1 -1
- package/pure-cell/components/amount/component.js +1 -1
- package/pure-cell/components/amount/index.d.ts +1 -1
- package/pure-cell/components/amount/index.js +1 -1
- package/pure-cell/components/amount-title/component.js +1 -1
- package/pure-cell/components/amount-title/index.d.ts +1 -1
- package/pure-cell/components/amount-title/index.js +1 -1
- package/pure-cell/components/category/component.js +1 -1
- package/pure-cell/components/category/index.d.ts +1 -1
- package/pure-cell/components/category/index.js +1 -1
- package/pure-cell/components/content/component.js +1 -1
- package/pure-cell/components/content/index.d.ts +1 -1
- package/pure-cell/components/content/index.js +1 -1
- package/pure-cell/components/footer/component.js +1 -1
- package/pure-cell/components/footer/index.d.ts +1 -1
- package/pure-cell/components/footer/index.js +1 -1
- package/pure-cell/components/footer-button/component.js +1 -1
- package/pure-cell/components/footer-button/index.d.ts +1 -1
- package/pure-cell/components/footer-button/index.js +1 -1
- package/pure-cell/components/footer-text/component.js +1 -1
- package/pure-cell/components/footer-text/index.d.ts +1 -1
- package/pure-cell/components/footer-text/index.js +1 -1
- package/pure-cell/components/graphics/component.js +1 -1
- package/pure-cell/components/graphics/index.d.ts +1 -1
- package/pure-cell/components/graphics/index.js +1 -1
- package/pure-cell/components/main/component.js +1 -1
- package/pure-cell/components/main/index.d.ts +1 -1
- package/pure-cell/components/main/index.js +1 -1
- package/pure-cell/components/text/component.js +1 -1
- package/pure-cell/components/text/index.d.ts +1 -1
- package/pure-cell/components/text/index.js +1 -1
- package/pure-cell/esm/component.js +1 -1
- package/pure-cell/esm/components/addon/component.js +1 -1
- package/pure-cell/esm/components/addon/index.d.ts +1 -1
- package/pure-cell/esm/components/addon/index.js +1 -1
- package/pure-cell/esm/components/amount/component.js +1 -1
- package/pure-cell/esm/components/amount/index.d.ts +1 -1
- package/pure-cell/esm/components/amount/index.js +1 -1
- package/pure-cell/esm/components/amount-title/component.js +1 -1
- package/pure-cell/esm/components/amount-title/index.d.ts +1 -1
- package/pure-cell/esm/components/amount-title/index.js +1 -1
- package/pure-cell/esm/components/category/component.js +1 -1
- package/pure-cell/esm/components/category/index.d.ts +1 -1
- package/pure-cell/esm/components/category/index.js +1 -1
- package/pure-cell/esm/components/content/component.js +1 -1
- package/pure-cell/esm/components/content/index.d.ts +1 -1
- package/pure-cell/esm/components/content/index.js +1 -1
- package/pure-cell/esm/components/footer/component.js +1 -1
- package/pure-cell/esm/components/footer/index.d.ts +1 -1
- package/pure-cell/esm/components/footer/index.js +1 -1
- package/pure-cell/esm/components/footer-button/component.js +1 -1
- package/pure-cell/esm/components/footer-button/index.d.ts +1 -1
- package/pure-cell/esm/components/footer-button/index.js +1 -1
- package/pure-cell/esm/components/footer-text/component.js +1 -1
- package/pure-cell/esm/components/footer-text/index.d.ts +1 -1
- package/pure-cell/esm/components/footer-text/index.js +1 -1
- package/pure-cell/esm/components/graphics/component.js +1 -1
- package/pure-cell/esm/components/graphics/index.d.ts +1 -1
- package/pure-cell/esm/components/graphics/index.js +1 -1
- package/pure-cell/esm/components/main/component.js +1 -1
- package/pure-cell/esm/components/main/index.d.ts +1 -1
- package/pure-cell/esm/components/main/index.js +1 -1
- package/pure-cell/esm/components/text/component.js +1 -1
- package/pure-cell/esm/components/text/index.d.ts +1 -1
- package/pure-cell/esm/components/text/index.js +1 -1
- package/pure-cell/esm/index.js +1 -1
- package/pure-cell/index.js +1 -1
- package/pure-cell/modern/component.js +1 -1
- package/pure-cell/modern/components/addon/component.js +1 -1
- package/pure-cell/modern/components/addon/index.d.ts +1 -1
- package/pure-cell/modern/components/addon/index.js +1 -1
- package/pure-cell/modern/components/amount/component.js +1 -1
- package/pure-cell/modern/components/amount/index.d.ts +1 -1
- package/pure-cell/modern/components/amount/index.js +1 -1
- package/pure-cell/modern/components/amount-title/component.js +1 -1
- package/pure-cell/modern/components/amount-title/index.d.ts +1 -1
- package/pure-cell/modern/components/amount-title/index.js +1 -1
- package/pure-cell/modern/components/category/component.js +1 -1
- package/pure-cell/modern/components/category/index.d.ts +1 -1
- package/pure-cell/modern/components/category/index.js +1 -1
- package/pure-cell/modern/components/content/component.js +1 -1
- package/pure-cell/modern/components/content/index.d.ts +1 -1
- package/pure-cell/modern/components/content/index.js +1 -1
- package/pure-cell/modern/components/footer/component.js +1 -1
- package/pure-cell/modern/components/footer/index.d.ts +1 -1
- package/pure-cell/modern/components/footer/index.js +1 -1
- package/pure-cell/modern/components/footer-button/component.js +1 -1
- package/pure-cell/modern/components/footer-button/index.d.ts +1 -1
- package/pure-cell/modern/components/footer-button/index.js +1 -1
- package/pure-cell/modern/components/footer-text/component.js +1 -1
- package/pure-cell/modern/components/footer-text/index.d.ts +1 -1
- package/pure-cell/modern/components/footer-text/index.js +1 -1
- package/pure-cell/modern/components/graphics/component.js +1 -1
- package/pure-cell/modern/components/graphics/index.d.ts +1 -1
- package/pure-cell/modern/components/graphics/index.js +1 -1
- package/pure-cell/modern/components/main/component.js +1 -1
- package/pure-cell/modern/components/main/index.d.ts +1 -1
- package/pure-cell/modern/components/main/index.js +1 -1
- package/pure-cell/modern/components/text/component.js +1 -1
- package/pure-cell/modern/components/text/index.d.ts +1 -1
- package/pure-cell/modern/components/text/index.js +1 -1
- package/pure-cell/modern/index.js +1 -1
- package/select/esm/Component.responsive.js +1 -1
- package/select/esm/index.js +1 -1
- package/select/esm/mobile/Component.mobile.js +1 -1
- package/select/esm/mobile/Component.modal.mobile.js +1 -1
- package/select/esm/mobile/index.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/index.js +1 -1
- package/select/mobile/Component.mobile.js +1 -1
- package/select/modern/Component.responsive.js +1 -1
- package/select/modern/index.js +1 -1
- package/select/modern/mobile/Component.mobile.js +1 -1
- package/select/modern/mobile/Component.modal.mobile.js +1 -1
- package/select/modern/mobile/index.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/index.js +1 -1
- package/select/presets/index.js +1 -1
- package/select/presets/useSelectWithApply/hook.js +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
- package/select/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
- package/select/shared/index.js +1 -1
- package/shared/cssm/index.d.ts +0 -1
- package/shared/cssm/index.js +0 -2
- package/shared/esm/index.d.ts +0 -1
- package/shared/esm/index.js +0 -1
- package/shared/index.d.ts +0 -1
- package/shared/index.js +0 -2
- package/shared/modern/index.d.ts +0 -1
- package/shared/modern/index.js +0 -1
- package/skeleton/Component.d.ts +0 -4
- package/skeleton/Component.js +3 -6
- package/skeleton/cssm/Component.d.ts +0 -4
- package/skeleton/cssm/Component.js +2 -5
- package/skeleton/cssm/index.module.css +42 -9
- package/skeleton/esm/Component.d.ts +0 -4
- package/skeleton/esm/Component.js +3 -6
- package/skeleton/esm/index.css +42 -9
- package/skeleton/index.css +42 -9
- package/skeleton/modern/Component.d.ts +0 -4
- package/skeleton/modern/Component.js +3 -6
- package/skeleton/modern/index.css +42 -9
- package/status-badge/Component.d.ts +3 -8
- package/status-badge/Component.js +73 -3
- package/status-badge/cssm/Component.d.ts +3 -8
- package/status-badge/cssm/Component.js +73 -3
- package/status-badge/cssm/index.d.ts +0 -1
- package/status-badge/esm/Component.d.ts +3 -8
- package/status-badge/esm/Component.js +73 -18
- package/status-badge/esm/index.d.ts +0 -1
- package/status-badge/esm/index.js +0 -3
- package/status-badge/index.d.ts +0 -1
- package/status-badge/modern/Component.d.ts +3 -8
- package/status-badge/modern/Component.js +73 -17
- package/status-badge/modern/index.d.ts +0 -1
- package/status-badge/modern/index.js +0 -2
- package/tab-bar/Component.js +3 -7
- package/tab-bar/components/tab/Component.js +5 -9
- package/tab-bar/components/tab/index.css +2 -5
- package/tab-bar/cssm/Component.js +2 -6
- package/tab-bar/cssm/components/tab/Component.js +4 -8
- package/tab-bar/cssm/components/tab/index.module.css +2 -5
- package/tab-bar/cssm/index.module.css +7 -9
- package/tab-bar/cssm/types.d.ts +3 -11
- package/tab-bar/esm/Component.js +4 -9
- package/tab-bar/esm/components/tab/Component.js +5 -9
- package/tab-bar/esm/components/tab/index.css +2 -5
- package/tab-bar/esm/components/tab/index.js +1 -2
- package/tab-bar/esm/index.css +7 -9
- package/tab-bar/esm/index.js +1 -2
- package/tab-bar/esm/types.d.ts +3 -11
- package/tab-bar/index.css +7 -9
- package/tab-bar/modern/Component.js +4 -9
- package/tab-bar/modern/components/tab/Component.js +5 -9
- package/tab-bar/modern/components/tab/index.css +2 -5
- package/tab-bar/modern/components/tab/index.js +1 -2
- package/tab-bar/modern/index.css +7 -9
- package/tab-bar/modern/index.js +1 -2
- package/tab-bar/modern/types.d.ts +3 -11
- package/tab-bar/types.d.ts +3 -11
- package/themes/click.css +6 -0
- package/themes/compiled/mobile-dark-bluetint.css +228 -79
- package/themes/mixins/click.css +2 -0
- package/themes/mixins/skeleton/click.css +8 -0
- package/themes/skeleton/click.css +8 -0
- package/toast-plate/components/base-toast-plate/component.d.ts +12 -9
- package/toast-plate/components/base-toast-plate/component.js +14 -16
- package/toast-plate/cssm/components/base-toast-plate/component.d.ts +12 -9
- package/toast-plate/cssm/components/base-toast-plate/component.js +14 -16
- package/toast-plate/esm/Component.responsive.js +4 -6
- package/toast-plate/esm/components/base-toast-plate/component.d.ts +12 -9
- package/toast-plate/esm/components/base-toast-plate/component.js +14 -16
- package/toast-plate/esm/components/base-toast-plate/index.js +4 -6
- package/toast-plate/esm/desktop/Component.desktop.js +4 -6
- package/toast-plate/esm/desktop/index.js +4 -6
- package/toast-plate/esm/index.js +4 -6
- package/toast-plate/esm/mobile/Component.mobile.js +4 -6
- package/toast-plate/esm/mobile/index.js +4 -6
- package/toast-plate/modern/Component.responsive.js +4 -6
- package/toast-plate/modern/components/base-toast-plate/component.d.ts +12 -9
- package/toast-plate/modern/components/base-toast-plate/component.js +14 -16
- package/toast-plate/modern/components/base-toast-plate/index.js +4 -6
- package/toast-plate/modern/desktop/Component.desktop.js +4 -6
- package/toast-plate/modern/desktop/index.js +4 -6
- package/toast-plate/modern/index.js +4 -6
- package/toast-plate/modern/mobile/Component.mobile.js +4 -6
- package/toast-plate/modern/mobile/index.js +4 -6
- 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/use-skeleton-1328ead9.d.ts +0 -4
- package/universal-date-input/esm/use-skeleton-1328ead9.d.ts +0 -4
- package/universal-date-input/modern/use-skeleton-1328ead9.d.ts +0 -4
- package/universal-date-input/use-skeleton-1328ead9.d.ts +0 -4
- package/notification/browser-a216f694.d.ts +0 -6
- package/notification/cssm/browser-a216f694.d.ts +0 -6
- package/notification/cssm/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
- package/notification/cssm/utils/getNotificationTestIds.d.ts +0 -5
- package/notification/cssm/utils/getNotificationTestIds.js +0 -18
- package/notification/esm/browser-a216f694.d.ts +0 -6
- package/notification/esm/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
- package/notification/esm/utils/getNotificationTestIds.d.ts +0 -5
- package/notification/esm/utils/getNotificationTestIds.js +0 -16
- package/notification/modern/browser-a216f694.d.ts +0 -6
- package/notification/modern/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
- package/notification/modern/utils/getNotificationTestIds.d.ts +0 -5
- package/notification/modern/utils/getNotificationTestIds.js +0 -16
- package/notification/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
- package/notification/utils/getNotificationTestIds.d.ts +0 -5
- package/notification/utils/getNotificationTestIds.js +0 -18
- package/shared/cssm/exhaustiveCheck.d.ts +0 -2
- package/shared/cssm/exhaustiveCheck.js +0 -5
- package/shared/esm/exhaustiveCheck.d.ts +0 -2
- package/shared/esm/exhaustiveCheck.js +0 -3
- package/shared/exhaustiveCheck.d.ts +0 -2
- package/shared/exhaustiveCheck.js +0 -5
- package/shared/modern/exhaustiveCheck.d.ts +0 -2
- package/shared/modern/exhaustiveCheck.js +0 -3
- package/status-badge/consts/iconMap.d.ts +0 -4
- package/status-badge/consts/iconMap.js +0 -76
- package/status-badge/cssm/consts/iconMap.d.ts +0 -4
- package/status-badge/cssm/consts/iconMap.js +0 -76
- package/status-badge/cssm/hooks/useStatusBadgeIcon.d.ts +0 -5
- package/status-badge/cssm/hooks/useStatusBadgeIcon.js +0 -21
- package/status-badge/cssm/types/statusBadgePropTypes.d.ts +0 -7
- package/status-badge/cssm/types/statusBadgePropTypes.js +0 -1
- package/status-badge/esm/consts/iconMap.d.ts +0 -4
- package/status-badge/esm/consts/iconMap.js +0 -74
- package/status-badge/esm/hooks/useStatusBadgeIcon.d.ts +0 -5
- package/status-badge/esm/hooks/useStatusBadgeIcon.js +0 -32
- package/status-badge/esm/types/statusBadgePropTypes.d.ts +0 -7
- package/status-badge/esm/types/statusBadgePropTypes.js +0 -1
- package/status-badge/hooks/useStatusBadgeIcon.d.ts +0 -5
- package/status-badge/hooks/useStatusBadgeIcon.js +0 -21
- package/status-badge/modern/consts/iconMap.d.ts +0 -4
- package/status-badge/modern/consts/iconMap.js +0 -74
- package/status-badge/modern/hooks/useStatusBadgeIcon.d.ts +0 -5
- package/status-badge/modern/hooks/useStatusBadgeIcon.js +0 -34
- package/status-badge/modern/types/statusBadgePropTypes.d.ts +0 -7
- package/status-badge/modern/types/statusBadgePropTypes.js +0 -1
- package/status-badge/types/statusBadgePropTypes.d.ts +0 -7
- package/status-badge/types/statusBadgePropTypes.js +0 -1
- package/tab-bar/consts.d.ts +0 -9
- package/tab-bar/consts.js +0 -13
- package/tab-bar/cssm/consts.d.ts +0 -9
- package/tab-bar/cssm/consts.js +0 -13
- package/tab-bar/esm/consts.d.ts +0 -9
- package/tab-bar/esm/consts.js +0 -10
- package/tab-bar/modern/consts.d.ts +0 -9
- package/tab-bar/modern/consts.js +0 -10
- package/toast-plate/browser-a216f694.d.ts +0 -6
- package/toast-plate/components/base-toast-plate/hooks/useCustomIcons.d.ts +0 -6
- package/toast-plate/components/base-toast-plate/hooks/useCustomIcons.js +0 -13
- package/toast-plate/components/base-toast-plate/hooks/useDeprecatedBadge.d.ts +0 -7
- package/toast-plate/components/base-toast-plate/hooks/useDeprecatedBadge.js +0 -26
- package/toast-plate/components/base-toast-plate/types/unsafeBadgeProps.d.ts +0 -6
- package/toast-plate/components/base-toast-plate/types/unsafeBadgeProps.js +0 -1
- package/toast-plate/components/base-toast-plate/utils/getBaseToastPlateTestIds.d.ts +0 -5
- package/toast-plate/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +0 -14
- package/toast-plate/components/base-toast-plate/utils/isUnsafeBadge.d.ts +0 -5
- package/toast-plate/components/base-toast-plate/utils/isUnsafeBadge.js +0 -8
- package/toast-plate/cssm/browser-a216f694.d.ts +0 -6
- package/toast-plate/cssm/components/base-toast-plate/hooks/useCustomIcons.d.ts +0 -6
- package/toast-plate/cssm/components/base-toast-plate/hooks/useCustomIcons.js +0 -13
- package/toast-plate/cssm/components/base-toast-plate/hooks/useDeprecatedBadge.d.ts +0 -7
- package/toast-plate/cssm/components/base-toast-plate/hooks/useDeprecatedBadge.js +0 -26
- package/toast-plate/cssm/components/base-toast-plate/types/unsafeBadgeProps.d.ts +0 -6
- package/toast-plate/cssm/components/base-toast-plate/types/unsafeBadgeProps.js +0 -1
- package/toast-plate/cssm/components/base-toast-plate/utils/getBaseToastPlateTestIds.d.ts +0 -5
- package/toast-plate/cssm/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +0 -14
- package/toast-plate/cssm/components/base-toast-plate/utils/isUnsafeBadge.d.ts +0 -5
- package/toast-plate/cssm/components/base-toast-plate/utils/isUnsafeBadge.js +0 -8
- package/toast-plate/cssm/getDataTestId-73ea38f8.d.ts +0 -3
- package/toast-plate/cssm/getDataTestId-73ea38f8.js +0 -6
- package/toast-plate/cssm/index-307da6d7.d.ts +0 -71
- package/toast-plate/cssm/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
- package/toast-plate/esm/browser-a216f694.d.ts +0 -6
- package/toast-plate/esm/components/base-toast-plate/hooks/useCustomIcons.d.ts +0 -6
- package/toast-plate/esm/components/base-toast-plate/hooks/useCustomIcons.js +0 -11
- package/toast-plate/esm/components/base-toast-plate/hooks/useDeprecatedBadge.d.ts +0 -7
- package/toast-plate/esm/components/base-toast-plate/hooks/useDeprecatedBadge.js +0 -24
- package/toast-plate/esm/components/base-toast-plate/types/unsafeBadgeProps.d.ts +0 -6
- package/toast-plate/esm/components/base-toast-plate/types/unsafeBadgeProps.js +0 -1
- package/toast-plate/esm/components/base-toast-plate/utils/getBaseToastPlateTestIds.d.ts +0 -5
- package/toast-plate/esm/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +0 -12
- package/toast-plate/esm/components/base-toast-plate/utils/isUnsafeBadge.d.ts +0 -5
- package/toast-plate/esm/components/base-toast-plate/utils/isUnsafeBadge.js +0 -6
- package/toast-plate/esm/getDataTestId-b3cf0f77.d.ts +0 -3
- package/toast-plate/esm/getDataTestId-b3cf0f77.js +0 -6
- package/toast-plate/esm/index-307da6d7.d.ts +0 -71
- package/toast-plate/esm/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
- package/toast-plate/getDataTestId-439ac98c.d.ts +0 -3
- package/toast-plate/getDataTestId-439ac98c.js +0 -6
- package/toast-plate/index-307da6d7.d.ts +0 -71
- package/toast-plate/modern/browser-a216f694.d.ts +0 -6
- package/toast-plate/modern/components/base-toast-plate/hooks/useCustomIcons.d.ts +0 -6
- package/toast-plate/modern/components/base-toast-plate/hooks/useCustomIcons.js +0 -11
- package/toast-plate/modern/components/base-toast-plate/hooks/useDeprecatedBadge.d.ts +0 -7
- package/toast-plate/modern/components/base-toast-plate/hooks/useDeprecatedBadge.js +0 -24
- package/toast-plate/modern/components/base-toast-plate/types/unsafeBadgeProps.d.ts +0 -6
- package/toast-plate/modern/components/base-toast-plate/types/unsafeBadgeProps.js +0 -1
- package/toast-plate/modern/components/base-toast-plate/utils/getBaseToastPlateTestIds.d.ts +0 -5
- package/toast-plate/modern/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +0 -12
- package/toast-plate/modern/components/base-toast-plate/utils/isUnsafeBadge.d.ts +0 -5
- package/toast-plate/modern/components/base-toast-plate/utils/isUnsafeBadge.js +0 -4
- package/toast-plate/modern/getDataTestId-8aa8ef85.d.ts +0 -3
- package/toast-plate/modern/getDataTestId-8aa8ef85.js +0 -6
- package/toast-plate/modern/index-307da6d7.d.ts +0 -71
- package/toast-plate/modern/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
- package/toast-plate/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
- /package/calendar-range/esm/{index.module-912e88cf.js → index.module-7ba85cb1.js} +0 -0
- /package/calendar-range/{index.module-bf0591f0.js → index.module-c6ded4a2.js} +0 -0
- /package/calendar-range/modern/{index.module-636e08a2.js → index.module-0604d154.js} +0 -0
- /package/confirmation/{countdown-section-b30d5212.d.ts → countdown-section-5581379b.d.ts} +0 -0
- /package/confirmation/{countdown-section-b30d5212.js → countdown-section-5581379b.js} +0 -0
- /package/confirmation/esm/{countdown-section-c4f73a77.d.ts → countdown-section-2f02c020.d.ts} +0 -0
- /package/confirmation/esm/{countdown-section-c4f73a77.js → countdown-section-2f02c020.js} +0 -0
- /package/confirmation/modern/{countdown-section-f3215ad8.d.ts → countdown-section-27ad8a44.d.ts} +0 -0
- /package/confirmation/modern/{countdown-section-f3215ad8.js → countdown-section-27ad8a44.js} +0 -0
- /package/gallery/{buttons-19c30d23.d.ts → buttons-160fdb5a.d.ts} +0 -0
- /package/gallery/{buttons-19c30d23.js → buttons-160fdb5a.js} +0 -0
- /package/gallery/esm/{buttons-37ed3ab5.d.ts → buttons-f951e5ce.d.ts} +0 -0
- /package/gallery/esm/{buttons-37ed3ab5.js → buttons-f951e5ce.js} +0 -0
- /package/gallery/esm/{slide-8d1299a5.d.ts → slide-3595abb4.d.ts} +0 -0
- /package/gallery/esm/{slide-8d1299a5.js → slide-3595abb4.js} +0 -0
- /package/gallery/modern/{buttons-92efe05c.d.ts → buttons-a3ff616b.d.ts} +0 -0
- /package/gallery/modern/{buttons-92efe05c.js → buttons-a3ff616b.js} +0 -0
- /package/gallery/modern/{slide-57aa7661.d.ts → slide-acb49e8e.d.ts} +0 -0
- /package/gallery/modern/{slide-57aa7661.js → slide-acb49e8e.js} +0 -0
- /package/gallery/{slide-45ca49f1.d.ts → slide-2268997b.d.ts} +0 -0
- /package/gallery/{slide-45ca49f1.js → slide-2268997b.js} +0 -0
- /package/modal/esm/{layout.module-b635b128.js → layout.module-ec4a90b6.js} +0 -0
- /package/modal/{layout.module-34149103.js → layout.module-0786cc33.js} +0 -0
- /package/modal/modern/{layout.module-41e8947b.js → layout.module-8379050e.js} +0 -0
- /package/picker-button/{Component-307da6d7.d.ts → Component-a5b021bd.d.ts} +0 -0
- /package/picker-button/cssm/{Component-307da6d7.d.ts → Component-a5b021bd.d.ts} +0 -0
- /package/picker-button/esm/{Component-307da6d7.d.ts → Component-a5b021bd.d.ts} +0 -0
- /package/picker-button/modern/{Component-307da6d7.d.ts → Component-a5b021bd.d.ts} +0 -0
- /package/pure-cell/{component-5e8acf12.d.ts → component-911cc97f.d.ts} +0 -0
- /package/pure-cell/{component-5e8acf12.js → component-911cc97f.js} +0 -0
- /package/pure-cell/esm/{component-f28a5631.d.ts → component-53618056.d.ts} +0 -0
- /package/pure-cell/esm/{component-f28a5631.js → component-53618056.js} +0 -0
- /package/pure-cell/modern/{component-10bc9276.d.ts → component-254f4794.d.ts} +0 -0
- /package/pure-cell/modern/{component-10bc9276.js → component-254f4794.js} +0 -0
- /package/select/esm/{hook-c0758dcd.d.ts → hook-234f7a67.d.ts} +0 -0
- /package/select/esm/{hook-c0758dcd.js → hook-234f7a67.js} +0 -0
- /package/select/{hook-10a14b43.d.ts → hook-5f6e7b13.d.ts} +0 -0
- /package/select/{hook-10a14b43.js → hook-5f6e7b13.js} +0 -0
- /package/select/modern/{hook-5ccdb908.d.ts → hook-46a9009f.d.ts} +0 -0
- /package/select/modern/{hook-5ccdb908.js → hook-46a9009f.js} +0 -0
- /package/typography/{colors.module-5b90a9cc.js → colors.module-a11b73e9.js} +0 -0
- /package/typography/{common.module-53a00318.js → common.module-25e7ce83.js} +0 -0
- /package/typography/esm/{colors.module-f2501c6f.js → colors.module-e5414e42.js} +0 -0
- /package/typography/esm/{common.module-04c7810e.js → common.module-bd07cc74.js} +0 -0
- /package/typography/modern/{colors.module-83a4b747.js → colors.module-9fa7fdee.js} +0 -0
- /package/typography/modern/{common.module-278c339a.js → common.module-e73684d9.js} +0 -0
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { HTMLAttributes, MouseEvent, ReactNode } from "react";
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type BadgeIcons = {
|
|
5
|
+
negative: JSX.Element;
|
|
6
|
+
positive: JSX.Element;
|
|
7
|
+
attention: JSX.Element;
|
|
8
|
+
};
|
|
6
9
|
type BaseToastPlateProps = HTMLAttributes<HTMLDivElement> & {
|
|
7
10
|
/**
|
|
8
11
|
* Дополнительный класс
|
|
@@ -31,7 +34,7 @@ type BaseToastPlateProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
31
34
|
/**
|
|
32
35
|
* Вид бэйджа
|
|
33
36
|
*/
|
|
34
|
-
badge?:
|
|
37
|
+
badge?: 'negative' | 'positive' | 'attention';
|
|
35
38
|
/**
|
|
36
39
|
* Слот слева, заменяет стандартную иконку
|
|
37
40
|
*/
|
|
@@ -65,9 +68,9 @@ type BaseToastPlateProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
65
68
|
*/
|
|
66
69
|
onClose?: (event?: MouseEvent<HTMLButtonElement>) => void;
|
|
67
70
|
/**
|
|
68
|
-
* Функция, с помощью которой можно переопределить иконки в
|
|
71
|
+
* Функция, с помощью которой можно переопределить иконки в Badge
|
|
69
72
|
*/
|
|
70
|
-
getBadgeIcons?:
|
|
73
|
+
getBadgeIcons?: (icons: BadgeIcons) => BadgeIcons;
|
|
71
74
|
/**
|
|
72
75
|
* Набор цветов для компонента
|
|
73
76
|
*/
|
|
@@ -111,7 +114,7 @@ declare const BaseToastPlate: React.ForwardRefExoticComponent<React.HTMLAttribut
|
|
|
111
114
|
/**
|
|
112
115
|
* Вид бэйджа
|
|
113
116
|
*/
|
|
114
|
-
badge?:
|
|
117
|
+
badge?: "attention" | "positive" | "negative" | undefined;
|
|
115
118
|
/**
|
|
116
119
|
* Слот слева, заменяет стандартную иконку
|
|
117
120
|
*/
|
|
@@ -145,9 +148,9 @@ declare const BaseToastPlate: React.ForwardRefExoticComponent<React.HTMLAttribut
|
|
|
145
148
|
*/
|
|
146
149
|
onClose?: ((event?: MouseEvent<HTMLButtonElement>) => void) | undefined;
|
|
147
150
|
/**
|
|
148
|
-
* Функция, с помощью которой можно переопределить иконки в
|
|
151
|
+
* Функция, с помощью которой можно переопределить иконки в Badge
|
|
149
152
|
*/
|
|
150
|
-
getBadgeIcons?:
|
|
153
|
+
getBadgeIcons?: ((icons: BadgeIcons) => BadgeIcons) | undefined;
|
|
151
154
|
/**
|
|
152
155
|
* Набор цветов для компонента
|
|
153
156
|
*/
|
|
@@ -163,4 +166,4 @@ declare const BaseToastPlate: React.ForwardRefExoticComponent<React.HTMLAttribut
|
|
|
163
166
|
[key: string]: string;
|
|
164
167
|
} | undefined;
|
|
165
168
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
166
|
-
export { BaseToastPlateProps, BaseToastPlate };
|
|
169
|
+
export { BadgeIcons, BaseToastPlateProps, BaseToastPlate };
|
|
@@ -3,14 +3,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
3
3
|
var tslib = require('tslib');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var cn = require('classnames');
|
|
6
|
+
var coreComponentsBadge = require('../../../../badge/cssm');
|
|
6
7
|
var coreComponentsIconButton = require('../../../../icon-button/cssm');
|
|
7
|
-
var
|
|
8
|
-
require('@alfalab/
|
|
9
|
-
var
|
|
8
|
+
var AlertCircleMIcon = require('@alfalab/icons-glyph/AlertCircleMIcon');
|
|
9
|
+
var CheckmarkCircleMIcon = require('@alfalab/icons-glyph/CheckmarkCircleMIcon');
|
|
10
|
+
var CrossCircleMIcon = require('@alfalab/icons-glyph/CrossCircleMIcon');
|
|
10
11
|
var CrossMIcon = require('@alfalab/icons-glyph/CrossMIcon');
|
|
11
|
-
var components_baseToastPlate_hooks_useCustomIcons = require('./hooks/useCustomIcons.js');
|
|
12
|
-
var components_baseToastPlate_hooks_useDeprecatedBadge = require('./hooks/useDeprecatedBadge.js');
|
|
13
|
-
var components_baseToastPlate_utils_isUnsafeBadge = require('./utils/isUnsafeBadge.js');
|
|
14
12
|
var defaultColors = require('./default.module.css');
|
|
15
13
|
var commonStyles = require('./index.module.css');
|
|
16
14
|
var invertedColors = require('./inverted.module.css');
|
|
@@ -27,27 +25,27 @@ var colorStyles = {
|
|
|
27
25
|
default: defaultColors__default.default,
|
|
28
26
|
inverted: invertedColors__default.default,
|
|
29
27
|
};
|
|
28
|
+
var iconDefaultComponents = {
|
|
29
|
+
negative: React__default.default.createElement(CrossCircleMIcon.CrossCircleMIcon, { className: commonStyles__default.default.badgeIcon }),
|
|
30
|
+
positive: React__default.default.createElement(CheckmarkCircleMIcon.CheckmarkCircleMIcon, { className: commonStyles__default.default.badgeIcon }),
|
|
31
|
+
attention: React__default.default.createElement(AlertCircleMIcon.AlertCircleMIcon, { className: commonStyles__default.default.badgeIcon }),
|
|
32
|
+
};
|
|
30
33
|
var BaseToastPlate = React.forwardRef(function (_a, ref) {
|
|
31
34
|
var _b, _c, _d;
|
|
32
35
|
var dataTestId = _a.dataTestId, className = _a.className, titleClassName = _a.titleClassName, contentClassName = _a.contentClassName, actionSectionClassName = _a.actionSectionClassName, hasCloser = _a.hasCloser, leftAddons = _a.leftAddons, badge = _a.badge, title = _a.title, children = _a.children, actionButton = _a.actionButton, block = _a.block, onClose = _a.onClose, getBadgeIcons = _a.getBadgeIcons, _e = _a.colors, colors = _e === void 0 ? 'default' : _e, closerWrapperClassName = _a.closerWrapperClassName, closerClassName = _a.closerClassName, _f = _a.bottomButtonPosition, bottomButtonPosition = _f === void 0 ? false : _f, _g = _a.styles, styles = _g === void 0 ? {} : _g, restProps = tslib.__rest(_a, ["dataTestId", "className", "titleClassName", "contentClassName", "actionSectionClassName", "hasCloser", "leftAddons", "badge", "title", "children", "actionButton", "block", "onClose", "getBadgeIcons", "colors", "closerWrapperClassName", "closerClassName", "bottomButtonPosition", "styles"]);
|
|
33
36
|
var needRenderLeftAddons = Boolean(leftAddons || badge);
|
|
34
|
-
var
|
|
35
|
-
|
|
37
|
+
var iconComponents = getBadgeIcons
|
|
38
|
+
? getBadgeIcons(iconDefaultComponents)
|
|
39
|
+
: iconDefaultComponents;
|
|
36
40
|
var handleClose = React.useCallback(function (event) {
|
|
37
41
|
if (onClose) {
|
|
38
42
|
onClose(event);
|
|
39
43
|
}
|
|
40
44
|
}, [onClose]);
|
|
41
|
-
|
|
42
|
-
if (badge && components_baseToastPlate_utils_isUnsafeBadge.isUnsafeBadge(badge)) {
|
|
43
|
-
statusBadgeView = transformDeprecatedBadge(badge);
|
|
44
|
-
}
|
|
45
|
-
var customIcons = getCustomIcons(getBadgeIcons);
|
|
46
|
-
return (React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(commonStyles__default.default.component, colorStyles[colors].component, (_b = {}, _b[commonStyles__default.default.block] = block, _b[commonStyles__default.default.hasCloser] = hasCloser, _b), className), ref: ref, "data-test-id": getDataTestId.getDataTestId(dataTestId, 'component') }, restProps),
|
|
45
|
+
return (React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(commonStyles__default.default.component, colorStyles[colors].component, (_b = {}, _b[commonStyles__default.default.block] = block, _b[commonStyles__default.default.hasCloser] = hasCloser, _b), className), ref: ref, "data-test-id": dataTestId }, restProps),
|
|
47
46
|
React__default.default.createElement("div", { className: commonStyles__default.default.wrapper },
|
|
48
47
|
React__default.default.createElement("div", { className: commonStyles__default.default.contentWrapper },
|
|
49
|
-
needRenderLeftAddons && (React__default.default.createElement("div", { className: commonStyles__default.default.leftAddons }, leftAddons ||
|
|
50
|
-
(badge && (React__default.default.createElement(coreComponentsStatusBadge.StatusBadge, tslib.__assign({ view: statusBadgeView, dataTestId: getDataTestId.getDataTestId(dataTestId, 'badge') }, (customIcons && { customIcons: customIcons }))))))),
|
|
48
|
+
needRenderLeftAddons && (React__default.default.createElement("div", { className: commonStyles__default.default.leftAddons }, leftAddons || (React__default.default.createElement(coreComponentsBadge.Badge, { view: 'icon', content: badge && iconComponents[badge], iconColor: badge, className: commonStyles__default.default.badge, dataTestId: 'badge', visibleColorOutline: true })))),
|
|
51
49
|
React__default.default.createElement("div", { className: cn__default.default(contentClassName, commonStyles__default.default.content, (_c = {},
|
|
52
50
|
_c[commonStyles__default.default.hasCloser] = hasCloser,
|
|
53
51
|
_c[commonStyles__default.default.hasActionButton] = !!actionButton,
|
|
@@ -5,14 +5,12 @@ import { ToastPlateDesktop } from './desktop/Component.desktop.js';
|
|
|
5
5
|
import { ToastPlateMobile } from './mobile/Component.mobile.js';
|
|
6
6
|
import './components/base-toast-plate/component.js';
|
|
7
7
|
import 'classnames';
|
|
8
|
+
import '../../badge/esm';
|
|
8
9
|
import '../../icon-button/esm';
|
|
9
|
-
import '
|
|
10
|
-
import '@alfalab/
|
|
11
|
-
import '
|
|
10
|
+
import '@alfalab/icons-glyph/AlertCircleMIcon';
|
|
11
|
+
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
12
|
+
import '@alfalab/icons-glyph/CrossCircleMIcon';
|
|
12
13
|
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';
|
|
16
14
|
|
|
17
15
|
var ToastPlate = forwardRef(function (_a, ref) {
|
|
18
16
|
var children = _a.children, _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = __rest(_a, ["children", "breakpoint"]);
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { HTMLAttributes, MouseEvent, ReactNode } from "react";
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type BadgeIcons = {
|
|
5
|
+
negative: JSX.Element;
|
|
6
|
+
positive: JSX.Element;
|
|
7
|
+
attention: JSX.Element;
|
|
8
|
+
};
|
|
6
9
|
type BaseToastPlateProps = HTMLAttributes<HTMLDivElement> & {
|
|
7
10
|
/**
|
|
8
11
|
* Дополнительный класс
|
|
@@ -31,7 +34,7 @@ type BaseToastPlateProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
31
34
|
/**
|
|
32
35
|
* Вид бэйджа
|
|
33
36
|
*/
|
|
34
|
-
badge?:
|
|
37
|
+
badge?: 'negative' | 'positive' | 'attention';
|
|
35
38
|
/**
|
|
36
39
|
* Слот слева, заменяет стандартную иконку
|
|
37
40
|
*/
|
|
@@ -65,9 +68,9 @@ type BaseToastPlateProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
65
68
|
*/
|
|
66
69
|
onClose?: (event?: MouseEvent<HTMLButtonElement>) => void;
|
|
67
70
|
/**
|
|
68
|
-
* Функция, с помощью которой можно переопределить иконки в
|
|
71
|
+
* Функция, с помощью которой можно переопределить иконки в Badge
|
|
69
72
|
*/
|
|
70
|
-
getBadgeIcons?:
|
|
73
|
+
getBadgeIcons?: (icons: BadgeIcons) => BadgeIcons;
|
|
71
74
|
/**
|
|
72
75
|
* Набор цветов для компонента
|
|
73
76
|
*/
|
|
@@ -111,7 +114,7 @@ declare const BaseToastPlate: React.ForwardRefExoticComponent<React.HTMLAttribut
|
|
|
111
114
|
/**
|
|
112
115
|
* Вид бэйджа
|
|
113
116
|
*/
|
|
114
|
-
badge?:
|
|
117
|
+
badge?: "attention" | "positive" | "negative" | undefined;
|
|
115
118
|
/**
|
|
116
119
|
* Слот слева, заменяет стандартную иконку
|
|
117
120
|
*/
|
|
@@ -145,9 +148,9 @@ declare const BaseToastPlate: React.ForwardRefExoticComponent<React.HTMLAttribut
|
|
|
145
148
|
*/
|
|
146
149
|
onClose?: ((event?: MouseEvent<HTMLButtonElement>) => void) | undefined;
|
|
147
150
|
/**
|
|
148
|
-
* Функция, с помощью которой можно переопределить иконки в
|
|
151
|
+
* Функция, с помощью которой можно переопределить иконки в Badge
|
|
149
152
|
*/
|
|
150
|
-
getBadgeIcons?:
|
|
153
|
+
getBadgeIcons?: ((icons: BadgeIcons) => BadgeIcons) | undefined;
|
|
151
154
|
/**
|
|
152
155
|
* Набор цветов для компонента
|
|
153
156
|
*/
|
|
@@ -163,4 +166,4 @@ declare const BaseToastPlate: React.ForwardRefExoticComponent<React.HTMLAttribut
|
|
|
163
166
|
[key: string]: string;
|
|
164
167
|
} | undefined;
|
|
165
168
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
166
|
-
export { BaseToastPlateProps, BaseToastPlate };
|
|
169
|
+
export { BadgeIcons, BaseToastPlateProps, BaseToastPlate };
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { __rest, __assign } from 'tslib';
|
|
2
2
|
import React, { forwardRef, useCallback } from 'react';
|
|
3
3
|
import cn from 'classnames';
|
|
4
|
+
import { Badge } from '../../../../badge/esm';
|
|
4
5
|
import { IconButton } from '../../../../icon-button/esm';
|
|
5
|
-
import {
|
|
6
|
-
import '@alfalab/
|
|
7
|
-
import {
|
|
6
|
+
import { AlertCircleMIcon } from '@alfalab/icons-glyph/AlertCircleMIcon';
|
|
7
|
+
import { CheckmarkCircleMIcon } from '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
8
|
+
import { CrossCircleMIcon } from '@alfalab/icons-glyph/CrossCircleMIcon';
|
|
8
9
|
import { CrossMIcon } from '@alfalab/icons-glyph/CrossMIcon';
|
|
9
|
-
import { useCustomIcons } from './hooks/useCustomIcons.js';
|
|
10
|
-
import { useDeprecatedBadge } from './hooks/useDeprecatedBadge.js';
|
|
11
|
-
import { isUnsafeBadge } from './utils/isUnsafeBadge.js';
|
|
12
10
|
|
|
13
11
|
var defaultColors = {"component":"toast-plate__component_eyew1","closeButtonWrapper":"toast-plate__closeButtonWrapper_eyew1"};
|
|
14
12
|
require('./default.css');
|
|
@@ -23,27 +21,27 @@ var colorStyles = {
|
|
|
23
21
|
default: defaultColors,
|
|
24
22
|
inverted: invertedColors,
|
|
25
23
|
};
|
|
24
|
+
var iconDefaultComponents = {
|
|
25
|
+
negative: React.createElement(CrossCircleMIcon, { className: commonStyles.badgeIcon }),
|
|
26
|
+
positive: React.createElement(CheckmarkCircleMIcon, { className: commonStyles.badgeIcon }),
|
|
27
|
+
attention: React.createElement(AlertCircleMIcon, { className: commonStyles.badgeIcon }),
|
|
28
|
+
};
|
|
26
29
|
var BaseToastPlate = forwardRef(function (_a, ref) {
|
|
27
30
|
var _b, _c, _d;
|
|
28
31
|
var dataTestId = _a.dataTestId, className = _a.className, titleClassName = _a.titleClassName, contentClassName = _a.contentClassName, actionSectionClassName = _a.actionSectionClassName, hasCloser = _a.hasCloser, leftAddons = _a.leftAddons, badge = _a.badge, title = _a.title, children = _a.children, actionButton = _a.actionButton, block = _a.block, onClose = _a.onClose, getBadgeIcons = _a.getBadgeIcons, _e = _a.colors, colors = _e === void 0 ? 'default' : _e, closerWrapperClassName = _a.closerWrapperClassName, closerClassName = _a.closerClassName, _f = _a.bottomButtonPosition, bottomButtonPosition = _f === void 0 ? false : _f, _g = _a.styles, styles = _g === void 0 ? {} : _g, restProps = __rest(_a, ["dataTestId", "className", "titleClassName", "contentClassName", "actionSectionClassName", "hasCloser", "leftAddons", "badge", "title", "children", "actionButton", "block", "onClose", "getBadgeIcons", "colors", "closerWrapperClassName", "closerClassName", "bottomButtonPosition", "styles"]);
|
|
29
32
|
var needRenderLeftAddons = Boolean(leftAddons || badge);
|
|
30
|
-
var
|
|
31
|
-
|
|
33
|
+
var iconComponents = getBadgeIcons
|
|
34
|
+
? getBadgeIcons(iconDefaultComponents)
|
|
35
|
+
: iconDefaultComponents;
|
|
32
36
|
var handleClose = useCallback(function (event) {
|
|
33
37
|
if (onClose) {
|
|
34
38
|
onClose(event);
|
|
35
39
|
}
|
|
36
40
|
}, [onClose]);
|
|
37
|
-
|
|
38
|
-
if (badge && isUnsafeBadge(badge)) {
|
|
39
|
-
statusBadgeView = transformDeprecatedBadge(badge);
|
|
40
|
-
}
|
|
41
|
-
var customIcons = getCustomIcons(getBadgeIcons);
|
|
42
|
-
return (React.createElement("div", __assign({ className: cn(commonStyles.component, colorStyles[colors].component, (_b = {}, _b[commonStyles.block] = block, _b[commonStyles.hasCloser] = hasCloser, _b), className), ref: ref, "data-test-id": getDataTestId(dataTestId, 'component') }, restProps),
|
|
41
|
+
return (React.createElement("div", __assign({ className: cn(commonStyles.component, colorStyles[colors].component, (_b = {}, _b[commonStyles.block] = block, _b[commonStyles.hasCloser] = hasCloser, _b), className), ref: ref, "data-test-id": dataTestId }, restProps),
|
|
43
42
|
React.createElement("div", { className: commonStyles.wrapper },
|
|
44
43
|
React.createElement("div", { className: commonStyles.contentWrapper },
|
|
45
|
-
needRenderLeftAddons && (React.createElement("div", { className: commonStyles.leftAddons }, leftAddons ||
|
|
46
|
-
(badge && (React.createElement(StatusBadge, __assign({ view: statusBadgeView, dataTestId: getDataTestId(dataTestId, 'badge') }, (customIcons && { customIcons: customIcons }))))))),
|
|
44
|
+
needRenderLeftAddons && (React.createElement("div", { className: commonStyles.leftAddons }, leftAddons || (React.createElement(Badge, { view: 'icon', content: badge && iconComponents[badge], iconColor: badge, className: commonStyles.badge, dataTestId: 'badge', visibleColorOutline: true })))),
|
|
47
45
|
React.createElement("div", { className: cn(contentClassName, commonStyles.content, (_c = {},
|
|
48
46
|
_c[commonStyles.hasCloser] = hasCloser,
|
|
49
47
|
_c[commonStyles.hasActionButton] = !!actionButton,
|
|
@@ -2,11 +2,9 @@ export { BaseToastPlate } from './component.js';
|
|
|
2
2
|
import 'tslib';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'classnames';
|
|
5
|
+
import '../../../../badge/esm';
|
|
5
6
|
import '../../../../icon-button/esm';
|
|
6
|
-
import '
|
|
7
|
-
import '@alfalab/
|
|
8
|
-
import '
|
|
7
|
+
import '@alfalab/icons-glyph/AlertCircleMIcon';
|
|
8
|
+
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
9
|
+
import '@alfalab/icons-glyph/CrossCircleMIcon';
|
|
9
10
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
10
|
-
import './hooks/useCustomIcons.js';
|
|
11
|
-
import './hooks/useDeprecatedBadge.js';
|
|
12
|
-
import './utils/isUnsafeBadge.js';
|
|
@@ -2,14 +2,12 @@ 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';
|
|
5
6
|
import '../../../icon-button/esm';
|
|
6
|
-
import '
|
|
7
|
-
import '@alfalab/
|
|
8
|
-
import '
|
|
7
|
+
import '@alfalab/icons-glyph/AlertCircleMIcon';
|
|
8
|
+
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
9
|
+
import '@alfalab/icons-glyph/CrossCircleMIcon';
|
|
9
10
|
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';
|
|
13
11
|
|
|
14
12
|
var styles = {"actionSection":"toast-plate__actionSection_1heyl","title":"toast-plate__title_1heyl","closeButtonWrapper":"toast-plate__closeButtonWrapper_1heyl","closeButton":"toast-plate__closeButton_1heyl"};
|
|
15
13
|
require('./desktop.css');
|
|
@@ -3,11 +3,9 @@ import 'tslib';
|
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../components/base-toast-plate/component.js';
|
|
5
5
|
import 'classnames';
|
|
6
|
+
import '../../../badge/esm';
|
|
6
7
|
import '../../../icon-button/esm';
|
|
7
|
-
import '
|
|
8
|
-
import '@alfalab/
|
|
9
|
-
import '
|
|
8
|
+
import '@alfalab/icons-glyph/AlertCircleMIcon';
|
|
9
|
+
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
10
|
+
import '@alfalab/icons-glyph/CrossCircleMIcon';
|
|
10
11
|
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';
|
package/toast-plate/esm/index.js
CHANGED
|
@@ -5,12 +5,10 @@ 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';
|
|
8
9
|
import '../../icon-button/esm';
|
|
9
|
-
import '
|
|
10
|
-
import '@alfalab/
|
|
11
|
-
import '
|
|
10
|
+
import '@alfalab/icons-glyph/AlertCircleMIcon';
|
|
11
|
+
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
12
|
+
import '@alfalab/icons-glyph/CrossCircleMIcon';
|
|
12
13
|
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';
|
|
16
14
|
import './mobile/Component.mobile.js';
|
|
@@ -2,14 +2,12 @@ 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';
|
|
5
6
|
import '../../../icon-button/esm';
|
|
6
|
-
import '
|
|
7
|
-
import '@alfalab/
|
|
8
|
-
import '
|
|
7
|
+
import '@alfalab/icons-glyph/AlertCircleMIcon';
|
|
8
|
+
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
9
|
+
import '@alfalab/icons-glyph/CrossCircleMIcon';
|
|
9
10
|
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';
|
|
13
11
|
|
|
14
12
|
var styles = {"actionSection":"toast-plate__actionSection_fuxup","title":"toast-plate__title_fuxup","closeButtonWrapper":"toast-plate__closeButtonWrapper_fuxup","closeButton":"toast-plate__closeButton_fuxup"};
|
|
15
13
|
require('./mobile.css');
|
|
@@ -3,11 +3,9 @@ import 'tslib';
|
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../components/base-toast-plate/component.js';
|
|
5
5
|
import 'classnames';
|
|
6
|
+
import '../../../badge/esm';
|
|
6
7
|
import '../../../icon-button/esm';
|
|
7
|
-
import '
|
|
8
|
-
import '@alfalab/
|
|
9
|
-
import '
|
|
8
|
+
import '@alfalab/icons-glyph/AlertCircleMIcon';
|
|
9
|
+
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
10
|
+
import '@alfalab/icons-glyph/CrossCircleMIcon';
|
|
10
11
|
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';
|
|
@@ -4,14 +4,12 @@ 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';
|
|
7
8
|
import '../../icon-button/modern';
|
|
8
|
-
import '
|
|
9
|
-
import '@alfalab/
|
|
10
|
-
import '
|
|
9
|
+
import '@alfalab/icons-glyph/AlertCircleMIcon';
|
|
10
|
+
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
11
|
+
import '@alfalab/icons-glyph/CrossCircleMIcon';
|
|
11
12
|
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';
|
|
15
13
|
|
|
16
14
|
const ToastPlate = forwardRef(({ children, breakpoint = 1024, ...restProps }, ref) => {
|
|
17
15
|
const query = `(min-width: ${breakpoint}px)`;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { HTMLAttributes, MouseEvent, ReactNode } from "react";
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type BadgeIcons = {
|
|
5
|
+
negative: JSX.Element;
|
|
6
|
+
positive: JSX.Element;
|
|
7
|
+
attention: JSX.Element;
|
|
8
|
+
};
|
|
6
9
|
type BaseToastPlateProps = HTMLAttributes<HTMLDivElement> & {
|
|
7
10
|
/**
|
|
8
11
|
* Дополнительный класс
|
|
@@ -31,7 +34,7 @@ type BaseToastPlateProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
31
34
|
/**
|
|
32
35
|
* Вид бэйджа
|
|
33
36
|
*/
|
|
34
|
-
badge?:
|
|
37
|
+
badge?: 'negative' | 'positive' | 'attention';
|
|
35
38
|
/**
|
|
36
39
|
* Слот слева, заменяет стандартную иконку
|
|
37
40
|
*/
|
|
@@ -65,9 +68,9 @@ type BaseToastPlateProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
65
68
|
*/
|
|
66
69
|
onClose?: (event?: MouseEvent<HTMLButtonElement>) => void;
|
|
67
70
|
/**
|
|
68
|
-
* Функция, с помощью которой можно переопределить иконки в
|
|
71
|
+
* Функция, с помощью которой можно переопределить иконки в Badge
|
|
69
72
|
*/
|
|
70
|
-
getBadgeIcons?:
|
|
73
|
+
getBadgeIcons?: (icons: BadgeIcons) => BadgeIcons;
|
|
71
74
|
/**
|
|
72
75
|
* Набор цветов для компонента
|
|
73
76
|
*/
|
|
@@ -111,7 +114,7 @@ declare const BaseToastPlate: React.ForwardRefExoticComponent<React.HTMLAttribut
|
|
|
111
114
|
/**
|
|
112
115
|
* Вид бэйджа
|
|
113
116
|
*/
|
|
114
|
-
badge?:
|
|
117
|
+
badge?: "attention" | "positive" | "negative" | undefined;
|
|
115
118
|
/**
|
|
116
119
|
* Слот слева, заменяет стандартную иконку
|
|
117
120
|
*/
|
|
@@ -145,9 +148,9 @@ declare const BaseToastPlate: React.ForwardRefExoticComponent<React.HTMLAttribut
|
|
|
145
148
|
*/
|
|
146
149
|
onClose?: ((event?: MouseEvent<HTMLButtonElement>) => void) | undefined;
|
|
147
150
|
/**
|
|
148
|
-
* Функция, с помощью которой можно переопределить иконки в
|
|
151
|
+
* Функция, с помощью которой можно переопределить иконки в Badge
|
|
149
152
|
*/
|
|
150
|
-
getBadgeIcons?:
|
|
153
|
+
getBadgeIcons?: ((icons: BadgeIcons) => BadgeIcons) | undefined;
|
|
151
154
|
/**
|
|
152
155
|
* Набор цветов для компонента
|
|
153
156
|
*/
|
|
@@ -163,4 +166,4 @@ declare const BaseToastPlate: React.ForwardRefExoticComponent<React.HTMLAttribut
|
|
|
163
166
|
[key: string]: string;
|
|
164
167
|
} | undefined;
|
|
165
168
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
166
|
-
export { BaseToastPlateProps, BaseToastPlate };
|
|
169
|
+
export { BadgeIcons, BaseToastPlateProps, BaseToastPlate };
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import React, { forwardRef, useCallback } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
+
import { Badge } from '../../../../badge/modern';
|
|
3
4
|
import { IconButton } from '../../../../icon-button/modern';
|
|
4
|
-
import {
|
|
5
|
-
import '@alfalab/
|
|
6
|
-
import {
|
|
5
|
+
import { AlertCircleMIcon } from '@alfalab/icons-glyph/AlertCircleMIcon';
|
|
6
|
+
import { CheckmarkCircleMIcon } from '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
7
|
+
import { CrossCircleMIcon } from '@alfalab/icons-glyph/CrossCircleMIcon';
|
|
7
8
|
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';
|
|
11
9
|
|
|
12
10
|
const defaultColors = {"component":"toast-plate__component_eyew1","closeButtonWrapper":"toast-plate__closeButtonWrapper_eyew1"};
|
|
13
11
|
require('./default.css');
|
|
@@ -22,25 +20,25 @@ const colorStyles = {
|
|
|
22
20
|
default: defaultColors,
|
|
23
21
|
inverted: invertedColors,
|
|
24
22
|
};
|
|
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
|
+
};
|
|
25
28
|
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) => {
|
|
26
29
|
const needRenderLeftAddons = Boolean(leftAddons || badge);
|
|
27
|
-
const
|
|
28
|
-
|
|
30
|
+
const iconComponents = getBadgeIcons
|
|
31
|
+
? getBadgeIcons(iconDefaultComponents)
|
|
32
|
+
: iconDefaultComponents;
|
|
29
33
|
const handleClose = useCallback((event) => {
|
|
30
34
|
if (onClose) {
|
|
31
35
|
onClose(event);
|
|
32
36
|
}
|
|
33
37
|
}, [onClose]);
|
|
34
|
-
|
|
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 },
|
|
38
|
+
return (React.createElement("div", { className: cn(commonStyles.component, colorStyles[colors].component, { [commonStyles.block]: block, [commonStyles.hasCloser]: hasCloser }, className), ref: ref, "data-test-id": dataTestId, ...restProps },
|
|
40
39
|
React.createElement("div", { className: commonStyles.wrapper },
|
|
41
40
|
React.createElement("div", { className: commonStyles.contentWrapper },
|
|
42
|
-
needRenderLeftAddons && (React.createElement("div", { className: commonStyles.leftAddons }, leftAddons ||
|
|
43
|
-
(badge && (React.createElement(StatusBadge, { view: statusBadgeView, dataTestId: getDataTestId(dataTestId, 'badge'), ...(customIcons && { customIcons }) }))))),
|
|
41
|
+
needRenderLeftAddons && (React.createElement("div", { className: commonStyles.leftAddons }, leftAddons || (React.createElement(Badge, { view: 'icon', content: badge && iconComponents[badge], iconColor: badge, className: commonStyles.badge, dataTestId: 'badge', visibleColorOutline: true })))),
|
|
44
42
|
React.createElement("div", { className: cn(contentClassName, commonStyles.content, {
|
|
45
43
|
[commonStyles.hasCloser]: hasCloser,
|
|
46
44
|
[commonStyles.hasActionButton]: !!actionButton,
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
export { BaseToastPlate } from './component.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
+
import '../../../../badge/modern';
|
|
4
5
|
import '../../../../icon-button/modern';
|
|
5
|
-
import '
|
|
6
|
-
import '@alfalab/
|
|
7
|
-
import '
|
|
6
|
+
import '@alfalab/icons-glyph/AlertCircleMIcon';
|
|
7
|
+
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
8
|
+
import '@alfalab/icons-glyph/CrossCircleMIcon';
|
|
8
9
|
import '@alfalab/icons-glyph/CrossMIcon';
|
|
9
|
-
import './hooks/useCustomIcons.js';
|
|
10
|
-
import './hooks/useDeprecatedBadge.js';
|
|
11
|
-
import './utils/isUnsafeBadge.js';
|
|
@@ -1,14 +1,12 @@
|
|
|
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';
|
|
4
5
|
import '../../../icon-button/modern';
|
|
5
|
-
import '
|
|
6
|
-
import '@alfalab/
|
|
7
|
-
import '
|
|
6
|
+
import '@alfalab/icons-glyph/AlertCircleMIcon';
|
|
7
|
+
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
8
|
+
import '@alfalab/icons-glyph/CrossCircleMIcon';
|
|
8
9
|
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';
|
|
12
10
|
|
|
13
11
|
const styles = {"actionSection":"toast-plate__actionSection_1heyl","title":"toast-plate__title_1heyl","closeButtonWrapper":"toast-plate__closeButtonWrapper_1heyl","closeButton":"toast-plate__closeButton_1heyl"};
|
|
14
12
|
require('./desktop.css');
|
|
@@ -2,11 +2,9 @@ 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';
|
|
5
6
|
import '../../../icon-button/modern';
|
|
6
|
-
import '
|
|
7
|
-
import '@alfalab/
|
|
8
|
-
import '
|
|
7
|
+
import '@alfalab/icons-glyph/AlertCircleMIcon';
|
|
8
|
+
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
9
|
+
import '@alfalab/icons-glyph/CrossCircleMIcon';
|
|
9
10
|
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';
|
|
@@ -4,12 +4,10 @@ import '../../mq/modern';
|
|
|
4
4
|
import './desktop/Component.desktop.js';
|
|
5
5
|
import './components/base-toast-plate/component.js';
|
|
6
6
|
import 'classnames';
|
|
7
|
+
import '../../badge/modern';
|
|
7
8
|
import '../../icon-button/modern';
|
|
8
|
-
import '
|
|
9
|
-
import '@alfalab/
|
|
10
|
-
import '
|
|
9
|
+
import '@alfalab/icons-glyph/AlertCircleMIcon';
|
|
10
|
+
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
11
|
+
import '@alfalab/icons-glyph/CrossCircleMIcon';
|
|
11
12
|
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';
|
|
15
13
|
import './mobile/Component.mobile.js';
|
|
@@ -1,14 +1,12 @@
|
|
|
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';
|
|
4
5
|
import '../../../icon-button/modern';
|
|
5
|
-
import '
|
|
6
|
-
import '@alfalab/
|
|
7
|
-
import '
|
|
6
|
+
import '@alfalab/icons-glyph/AlertCircleMIcon';
|
|
7
|
+
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
8
|
+
import '@alfalab/icons-glyph/CrossCircleMIcon';
|
|
8
9
|
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';
|
|
12
10
|
|
|
13
11
|
const styles = {"actionSection":"toast-plate__actionSection_fuxup","title":"toast-plate__title_fuxup","closeButtonWrapper":"toast-plate__closeButtonWrapper_fuxup","closeButton":"toast-plate__closeButton_fuxup"};
|
|
14
12
|
require('./mobile.css');
|
|
@@ -2,11 +2,9 @@ export { ToastPlateMobile } from './Component.mobile.js';
|
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../components/base-toast-plate/component.js';
|
|
4
4
|
import 'classnames';
|
|
5
|
+
import '../../../badge/modern';
|
|
5
6
|
import '../../../icon-button/modern';
|
|
6
|
-
import '
|
|
7
|
-
import '@alfalab/
|
|
8
|
-
import '
|
|
7
|
+
import '@alfalab/icons-glyph/AlertCircleMIcon';
|
|
8
|
+
import '@alfalab/icons-glyph/CheckmarkCircleMIcon';
|
|
9
|
+
import '@alfalab/icons-glyph/CrossCircleMIcon';
|
|
9
10
|
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';
|