@alfalab/core-components 45.8.0-beta.3 → 45.8.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base-modal/Component.d.ts +4 -0
- package/base-modal/Component.js +19 -11
- package/base-modal/cssm/Component.d.ts +4 -0
- package/base-modal/cssm/Component.js +19 -11
- package/base-modal/cssm/helpers/lockScroll.d.ts +4 -0
- package/base-modal/cssm/helpers/lockScroll.js +18 -0
- package/base-modal/cssm/index.module.css +6 -1
- package/base-modal/cssm/utils.d.ts +1 -1
- package/base-modal/cssm/utils.js +5 -2
- package/base-modal/esm/Component.d.ts +4 -0
- package/base-modal/esm/Component.js +20 -12
- package/base-modal/esm/helpers/lockScroll.d.ts +4 -0
- package/base-modal/esm/helpers/lockScroll.js +14 -0
- package/base-modal/esm/index.css +6 -1
- package/base-modal/esm/index.js +1 -0
- package/base-modal/esm/utils.d.ts +1 -1
- package/base-modal/esm/utils.js +5 -2
- package/base-modal/helpers/lockScroll.d.ts +4 -0
- package/base-modal/helpers/lockScroll.js +18 -0
- package/base-modal/index.css +6 -1
- package/base-modal/modern/Component.d.ts +4 -0
- package/base-modal/modern/Component.js +13 -5
- package/base-modal/modern/helpers/lockScroll.d.ts +4 -0
- package/base-modal/modern/helpers/lockScroll.js +14 -0
- package/base-modal/modern/index.css +6 -1
- package/base-modal/modern/index.js +1 -0
- package/base-modal/modern/utils.d.ts +1 -1
- package/base-modal/modern/utils.js +4 -2
- package/base-modal/utils.d.ts +1 -1
- package/base-modal/utils.js +5 -2
- 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/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/Component-bdb4c6b9.d.ts +2 -1
- package/international-phone-input/{ResponsiveContext-88b743b5.d.ts → ResponsiveContext-d6bfd5b7.d.ts} +1 -1
- package/international-phone-input/cssm/Component-bdb4c6b9.d.ts +2 -1
- package/international-phone-input/cssm/{ResponsiveContext-88b743b5.d.ts → ResponsiveContext-d6bfd5b7.d.ts} +1 -1
- package/international-phone-input/cssm/index-bdb4c6b9.d.ts +9 -2
- package/international-phone-input/cssm/typings-57569e57.d.ts +6 -5
- package/international-phone-input/{esm/typings-88b743b5.d.ts → cssm/typings-d6bfd5b7.d.ts} +4 -0
- package/international-phone-input/cssm/use-skeleton-1328ead9.d.ts +0 -4
- package/international-phone-input/esm/Component-bdb4c6b9.d.ts +2 -1
- package/international-phone-input/esm/{ResponsiveContext-88b743b5.d.ts → ResponsiveContext-d6bfd5b7.d.ts} +1 -1
- package/international-phone-input/esm/index-bdb4c6b9.d.ts +9 -2
- package/international-phone-input/esm/typings-57569e57.d.ts +6 -5
- package/international-phone-input/{typings-88b743b5.d.ts → esm/typings-d6bfd5b7.d.ts} +4 -0
- package/international-phone-input/esm/use-skeleton-1328ead9.d.ts +0 -4
- package/international-phone-input/index-bdb4c6b9.d.ts +9 -2
- package/international-phone-input/modern/Component-bdb4c6b9.d.ts +2 -1
- package/international-phone-input/modern/{ResponsiveContext-88b743b5.d.ts → ResponsiveContext-d6bfd5b7.d.ts} +1 -1
- package/international-phone-input/modern/index-bdb4c6b9.d.ts +9 -2
- package/international-phone-input/modern/typings-57569e57.d.ts +6 -5
- package/international-phone-input/{cssm/typings-88b743b5.d.ts → modern/typings-d6bfd5b7.d.ts} +4 -0
- package/international-phone-input/modern/use-skeleton-1328ead9.d.ts +0 -4
- package/international-phone-input/typings-57569e57.d.ts +6 -5
- package/international-phone-input/{modern/typings-88b743b5.d.ts → typings-d6bfd5b7.d.ts} +4 -0
- package/international-phone-input/use-skeleton-1328ead9.d.ts +0 -4
- package/modal/Component.d.ts +1 -0
- package/modal/Component.responsive.d.ts +1 -0
- package/modal/components/controls/Component.js +1 -1
- package/modal/components/footer/Component.js +1 -1
- package/modal/cssm/Component.d.ts +1 -0
- package/modal/cssm/Component.responsive.d.ts +1 -0
- package/modal/cssm/desktop/Component.desktop.d.ts +1 -0
- package/modal/cssm/typings.d.ts +4 -0
- package/modal/desktop/Component.desktop.d.ts +1 -0
- package/modal/esm/Component.d.ts +1 -0
- package/modal/esm/Component.responsive.d.ts +1 -0
- 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.d.ts +1 -0
- 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/esm/typings.d.ts +4 -0
- package/modal/modern/Component.d.ts +1 -0
- package/modal/modern/Component.responsive.d.ts +1 -0
- 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.d.ts +1 -0
- 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/modal/modern/typings.d.ts +4 -0
- package/modal/typings.d.ts +4 -0
- package/package.json +1 -1
- package/picker-button/Component-bdb4c6b9.d.ts +2 -1
- package/picker-button/ResponsiveContext-d6bfd5b7.d.ts +5 -0
- package/picker-button/cssm/Component-bdb4c6b9.d.ts +2 -1
- package/picker-button/cssm/ResponsiveContext-d6bfd5b7.d.ts +5 -0
- package/picker-button/cssm/{index-307da6d7.d.ts → index-a5b021bd.d.ts} +1 -2
- package/picker-button/cssm/index-bdb4c6b9.d.ts +9 -2
- package/picker-button/cssm/typings-57569e57.d.ts +5 -4
- package/picker-button/cssm/typings-d6bfd5b7.d.ts +62 -0
- package/picker-button/cssm/use-skeleton-1328ead9.d.ts +0 -4
- package/picker-button/esm/Component-bdb4c6b9.d.ts +2 -1
- package/picker-button/esm/ResponsiveContext-d6bfd5b7.d.ts +5 -0
- package/picker-button/esm/{index-307da6d7.d.ts → index-a5b021bd.d.ts} +1 -2
- package/picker-button/esm/index-bdb4c6b9.d.ts +9 -2
- package/picker-button/esm/typings-57569e57.d.ts +5 -4
- package/picker-button/esm/typings-d6bfd5b7.d.ts +62 -0
- 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/index-bdb4c6b9.d.ts +9 -2
- package/picker-button/modern/Component-bdb4c6b9.d.ts +2 -1
- package/picker-button/modern/ResponsiveContext-d6bfd5b7.d.ts +5 -0
- package/picker-button/modern/{index-307da6d7.d.ts → index-a5b021bd.d.ts} +1 -2
- package/picker-button/modern/index-bdb4c6b9.d.ts +9 -2
- package/picker-button/modern/typings-57569e57.d.ts +5 -4
- package/picker-button/modern/typings-d6bfd5b7.d.ts +62 -0
- package/picker-button/modern/use-skeleton-1328ead9.d.ts +0 -4
- package/picker-button/typings-57569e57.d.ts +5 -4
- package/picker-button/typings-d6bfd5b7.d.ts +62 -0
- package/picker-button/use-skeleton-1328ead9.d.ts +0 -4
- 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/textarea/Component.js +1 -1
- package/textarea/components/PseudoTextArea.js +1 -1
- package/textarea/components/index.d.ts +1 -1
- package/textarea/components/index.js +1 -1
- package/textarea/esm/Component.js +1 -1
- package/textarea/esm/components/PseudoTextArea.js +1 -1
- package/textarea/esm/components/index.d.ts +1 -1
- package/textarea/esm/components/index.js +1 -1
- package/textarea/esm/index.js +1 -1
- package/textarea/modern/Component.js +1 -1
- package/textarea/modern/components/PseudoTextArea.js +1 -1
- package/textarea/modern/components/index.d.ts +1 -1
- package/textarea/modern/components/index.js +1 -1
- package/textarea/modern/index.js +1 -1
- package/themes/click.css +6 -0
- package/themes/compiled/mobile-dark-bluetint.css +75 -65
- 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/index-5712fce2.d.ts +13 -1
- package/universal-date-input/cssm/use-skeleton-1328ead9.d.ts +0 -4
- package/universal-date-input/esm/index-5712fce2.d.ts +13 -1
- package/universal-date-input/esm/use-skeleton-1328ead9.d.ts +0 -4
- package/universal-date-input/index-5712fce2.d.ts +13 -1
- package/universal-date-input/modern/index-5712fce2.d.ts +13 -1
- 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/picker-button/ResponsiveContext-88b743b5.d.ts +0 -5
- package/picker-button/cssm/ResponsiveContext-88b743b5.d.ts +0 -5
- package/picker-button/cssm/typings-88b743b5.d.ts +0 -58
- package/picker-button/esm/ResponsiveContext-88b743b5.d.ts +0 -5
- package/picker-button/esm/typings-88b743b5.d.ts +0 -58
- package/picker-button/modern/ResponsiveContext-88b743b5.d.ts +0 -5
- package/picker-button/modern/typings-88b743b5.d.ts +0 -58
- package/picker-button/typings-88b743b5.d.ts +0 -58
- 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/gallery/{buttons-19c30d23.d.ts → buttons-2d6e11d3.d.ts} +0 -0
- /package/gallery/{buttons-19c30d23.js → buttons-2d6e11d3.js} +0 -0
- /package/gallery/esm/{buttons-37ed3ab5.d.ts → buttons-d13012b7.d.ts} +0 -0
- /package/gallery/esm/{buttons-37ed3ab5.js → buttons-d13012b7.js} +0 -0
- /package/gallery/esm/{slide-8d1299a5.d.ts → slide-88bae15c.d.ts} +0 -0
- /package/gallery/esm/{slide-8d1299a5.js → slide-88bae15c.js} +0 -0
- /package/gallery/modern/{buttons-92efe05c.d.ts → buttons-884f9ca9.d.ts} +0 -0
- /package/gallery/modern/{buttons-92efe05c.js → buttons-884f9ca9.js} +0 -0
- /package/gallery/modern/{slide-57aa7661.d.ts → slide-e59a9638.d.ts} +0 -0
- /package/gallery/modern/{slide-57aa7661.js → slide-e59a9638.js} +0 -0
- /package/gallery/{slide-45ca49f1.d.ts → slide-684c0f6f.d.ts} +0 -0
- /package/gallery/{slide-45ca49f1.js → slide-684c0f6f.js} +0 -0
- /package/modal/esm/{layout.module-b635b128.js → layout.module-aa5cb2cc.js} +0 -0
- /package/modal/{layout.module-34149103.js → layout.module-c255bbac.js} +0 -0
- /package/modal/modern/{layout.module-41e8947b.js → layout.module-60771d9c.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/select/esm/{hook-c0758dcd.d.ts → hook-086659f0.d.ts} +0 -0
- /package/select/esm/{hook-c0758dcd.js → hook-086659f0.js} +0 -0
- /package/select/{hook-10a14b43.d.ts → hook-b62c1963.d.ts} +0 -0
- /package/select/{hook-10a14b43.js → hook-b62c1963.js} +0 -0
- /package/select/modern/{hook-5ccdb908.d.ts → hook-a746b596.d.ts} +0 -0
- /package/select/modern/{hook-5ccdb908.js → hook-a746b596.js} +0 -0
- /package/textarea/{PseudoTextArea-e22e1b15.d.ts → PseudoTextArea-7aea41b8.d.ts} +0 -0
- /package/textarea/{PseudoTextArea-e22e1b15.js → PseudoTextArea-7aea41b8.js} +0 -0
- /package/textarea/esm/{PseudoTextArea-ebaaf545.d.ts → PseudoTextArea-ba968d63.d.ts} +0 -0
- /package/textarea/esm/{PseudoTextArea-ebaaf545.js → PseudoTextArea-ba968d63.js} +0 -0
- /package/textarea/modern/{PseudoTextArea-df487b32.d.ts → PseudoTextArea-d7134e87.d.ts} +0 -0
- /package/textarea/modern/{PseudoTextArea-df487b32.js → PseudoTextArea-d7134e87.js} +0 -0
- /package/typography/{colors.module-5b90a9cc.js → colors.module-b5f1970b.js} +0 -0
- /package/typography/{common.module-53a00318.js → common.module-8f051b74.js} +0 -0
- /package/typography/esm/{colors.module-f2501c6f.js → colors.module-bf4fcd9a.js} +0 -0
- /package/typography/esm/{common.module-04c7810e.js → common.module-efe4e6e2.js} +0 -0
- /package/typography/modern/{colors.module-83a4b747.js → colors.module-21f32eaa.js} +0 -0
- /package/typography/modern/{common.module-278c339a.js → common.module-086a5ae1.js} +0 -0
package/themes/click.css
CHANGED
|
@@ -1637,6 +1637,12 @@
|
|
|
1637
1637
|
--toast-plate-action-margin: 0;
|
|
1638
1638
|
/* theme */
|
|
1639
1639
|
--list-item-margin: var(--gap-m);
|
|
1640
|
+
/* theme */
|
|
1641
|
+
--skeleton-default-color: transparent;
|
|
1642
|
+
--skeleton-backdrop-filter: blur(20px);
|
|
1643
|
+
--skeleton-gradient-animation-display: none;
|
|
1644
|
+
--skeleton-bg-animation-display: block;
|
|
1645
|
+
--skeleton-bg-animation-color: var(--color-light-graphic-quaternary);
|
|
1640
1646
|
--dropzone-active-cursor: pointer;
|
|
1641
1647
|
--bottom-sheet-header-border-bottom: none;
|
|
1642
1648
|
--bottom-sheet-footer-border-top: none;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
.
|
|
1
|
+
.card-image__cardImage_1w4ef {
|
|
2
|
+
background: #e7e8ea;
|
|
3
|
+
} .card-image__loaded_1w4ef {
|
|
4
|
+
background: transparent
|
|
5
|
+
}.badge__component_13jfy.badge__background-accent_13jfy {
|
|
2
6
|
background-color: #f83a2a;
|
|
3
7
|
color: rgba(255, 255, 255, 0.94);
|
|
4
8
|
} .badge__component_13jfy.badge__background-specialbg-secondary-transparent_13jfy {
|
|
@@ -58,10 +62,6 @@
|
|
|
58
62
|
background-color: #fff;
|
|
59
63
|
} .badge__dot_13jfy.badge__outlineCount_13jfy {
|
|
60
64
|
border: 1px solid #121213;
|
|
61
|
-
}.card-image__cardImage_1w4ef {
|
|
62
|
-
background: #e7e8ea;
|
|
63
|
-
} .card-image__loaded_1w4ef {
|
|
64
|
-
background: transparent
|
|
65
65
|
}.backdrop__backdrop_1d6xc {
|
|
66
66
|
-webkit-tap-highlight-color: transparent;
|
|
67
67
|
} .backdrop__appear_1d6xc,
|
|
@@ -168,14 +168,7 @@
|
|
|
168
168
|
background: #fff;
|
|
169
169
|
} .hatching-progress-bar__accent_1g4sq {
|
|
170
170
|
background: #f83a2a;
|
|
171
|
-
}.
|
|
172
|
-
color: rgba(238, 238, 251, 0.55)
|
|
173
|
-
} .icon-view__bg_19x5k {
|
|
174
|
-
fill: #1c1c1e;
|
|
175
|
-
} .icon-view__border_19x5k {
|
|
176
|
-
stroke: rgba(225, 225, 248, 0.09);
|
|
177
|
-
fill: transparent;
|
|
178
|
-
}.indicator__component_11fsk {
|
|
171
|
+
}.indicator__component_11fsk {
|
|
179
172
|
color: rgba(255, 255, 255, 0.94);
|
|
180
173
|
background-color: #f83a2a;
|
|
181
174
|
} .indicator__red_11fsk {
|
|
@@ -193,7 +186,14 @@
|
|
|
193
186
|
color: rgba(255, 255, 255, 0.94)
|
|
194
187
|
} .indicator__grey_11fsk.indicator__border_11fsk {
|
|
195
188
|
outline: 2px solid #121213;
|
|
196
|
-
}
|
|
189
|
+
}.icon-view__component_19x5k {
|
|
190
|
+
color: rgba(238, 238, 251, 0.55)
|
|
191
|
+
} .icon-view__bg_19x5k {
|
|
192
|
+
fill: #1c1c1e;
|
|
193
|
+
} .icon-view__border_19x5k {
|
|
194
|
+
stroke: rgba(225, 225, 248, 0.09);
|
|
195
|
+
fill: transparent;
|
|
196
|
+
}@keyframes loader__blink_1nz23 {
|
|
197
197
|
}.link__primary_1tca1 {
|
|
198
198
|
color: rgba(255, 255, 255, 0.94);
|
|
199
199
|
border-bottom-color: rgba(255, 255, 255, 0.94)
|
|
@@ -290,35 +290,27 @@
|
|
|
290
290
|
background-color: rgba(4, 4, 21, 0.47);
|
|
291
291
|
}.skeleton__component_9mjjy {
|
|
292
292
|
color: transparent;
|
|
293
|
-
background: rgba(214, 214, 229, 0.07)
|
|
293
|
+
background: rgba(214, 214, 229, 0.07);
|
|
294
294
|
} .skeleton__component_9mjjy:before {
|
|
295
295
|
background: transparent;
|
|
296
|
+
} .skeleton__animate_9mjjy:after {
|
|
297
|
+
background-image: linear-gradient(
|
|
298
|
+
to left,
|
|
299
|
+
rgba(0, 0, 0, 0),
|
|
300
|
+
rgba(0, 0, 0, 0) 40%,
|
|
301
|
+
rgba(0, 0, 0, 0.05) 50%,
|
|
302
|
+
rgba(0, 0, 0, 0) 60%,
|
|
303
|
+
rgba(0, 0, 0, 0)
|
|
304
|
+
);
|
|
305
|
+
} @keyframes skeleton__gradient_9mjjy {
|
|
296
306
|
} @keyframes skeleton__background_9mjjy {
|
|
297
307
|
0% {
|
|
298
|
-
background:
|
|
308
|
+
background: rgb(182, 188, 195);
|
|
299
309
|
}
|
|
300
310
|
100% {
|
|
301
|
-
background:
|
|
311
|
+
background: rgb(198, 205, 214);
|
|
302
312
|
}
|
|
303
|
-
}.
|
|
304
|
-
background: rgba(222, 222, 238, 0.13);
|
|
305
|
-
} .slider__component_1qlg3 .noUi-base:hover .noUi-connect {
|
|
306
|
-
background: #f83a2a;
|
|
307
|
-
} .slider__component_1qlg3 .noUi-handle:hover .noUi-touch-area {
|
|
308
|
-
background: #ff503e;
|
|
309
|
-
} .slider__component_1qlg3 .noUi-handle:active .noUi-touch-area {
|
|
310
|
-
background: #fd624e;
|
|
311
|
-
} .slider__component_1qlg3 .noUi-connects {
|
|
312
|
-
background: rgba(222, 222, 238, 0.13);
|
|
313
|
-
} .slider__component_1qlg3 .noUi-connect {
|
|
314
|
-
background: #f83a2a;
|
|
315
|
-
} .slider__component_1qlg3 .noUi-handle {
|
|
316
|
-
border: 2px solid transparent;
|
|
317
|
-
} .slider__component_1qlg3 .noUi-touch-area {
|
|
318
|
-
background: #f83a2a;
|
|
319
|
-
} .slider__component_1qlg3 .noUi-pips {
|
|
320
|
-
color: rgba(238, 238, 251, 0.55);
|
|
321
|
-
}.segmented-control__wrapper_97jjo {
|
|
313
|
+
}.segmented-control__wrapper_97jjo {
|
|
322
314
|
background-color: rgba(225, 225, 248, 0.09);
|
|
323
315
|
} .segmented-control__segment_97jjo.segmented-control__selected_97jjo {
|
|
324
316
|
color: rgba(255, 255, 255, 0.94);
|
|
@@ -352,6 +344,24 @@
|
|
|
352
344
|
color: rgba(3, 3, 6, 0.88)
|
|
353
345
|
} .segmented-control__segment_1ci04:not(:first-child):before {
|
|
354
346
|
background-color: rgba(15, 25, 55, 0.1);
|
|
347
|
+
}.slider__component_1qlg3 .noUi-base:hover .noUi-connects {
|
|
348
|
+
background: rgba(222, 222, 238, 0.13);
|
|
349
|
+
} .slider__component_1qlg3 .noUi-base:hover .noUi-connect {
|
|
350
|
+
background: #f83a2a;
|
|
351
|
+
} .slider__component_1qlg3 .noUi-handle:hover .noUi-touch-area {
|
|
352
|
+
background: #ff503e;
|
|
353
|
+
} .slider__component_1qlg3 .noUi-handle:active .noUi-touch-area {
|
|
354
|
+
background: #fd624e;
|
|
355
|
+
} .slider__component_1qlg3 .noUi-connects {
|
|
356
|
+
background: rgba(222, 222, 238, 0.13);
|
|
357
|
+
} .slider__component_1qlg3 .noUi-connect {
|
|
358
|
+
background: #f83a2a;
|
|
359
|
+
} .slider__component_1qlg3 .noUi-handle {
|
|
360
|
+
border: 2px solid transparent;
|
|
361
|
+
} .slider__component_1qlg3 .noUi-touch-area {
|
|
362
|
+
background: #f83a2a;
|
|
363
|
+
} .slider__component_1qlg3 .noUi-pips {
|
|
364
|
+
color: rgba(238, 238, 251, 0.55);
|
|
355
365
|
}.spinner__component_6d0oa {
|
|
356
366
|
color: #fff;
|
|
357
367
|
}
|
|
@@ -359,34 +369,6 @@
|
|
|
359
369
|
}
|
|
360
370
|
.spinner__component_11jun {
|
|
361
371
|
color: #121213;
|
|
362
|
-
}.status-badge__positive-checkmark_1qjlx {
|
|
363
|
-
background-color: #17d055;
|
|
364
|
-
} .status-badge__negative-cross_1qjlx,
|
|
365
|
-
.status-badge__negative-alert_1qjlx,
|
|
366
|
-
.status-badge__negative-block_1qjlx {
|
|
367
|
-
background-color: #ff4837;
|
|
368
|
-
} .status-badge__attention-alert_1qjlx {
|
|
369
|
-
background-color: #fda136;
|
|
370
|
-
} .status-badge__neutral-information_1qjlx,
|
|
371
|
-
.status-badge__neutral-operation_1qjlx,
|
|
372
|
-
.status-badge__neutral-cross_1qjlx {
|
|
373
|
-
background-color: #898991;
|
|
374
|
-
}
|
|
375
|
-
.status-badge__component_75yw9 {
|
|
376
|
-
color: #fff;
|
|
377
|
-
}
|
|
378
|
-
.status-badge__positive-checkmark_yo7iy {
|
|
379
|
-
background-color: #0cc44d;
|
|
380
|
-
} .status-badge__negative-cross_yo7iy,
|
|
381
|
-
.status-badge__negative-alert_yo7iy,
|
|
382
|
-
.status-badge__negative-block_yo7iy {
|
|
383
|
-
background-color: #ff4837;
|
|
384
|
-
} .status-badge__attention-alert_yo7iy {
|
|
385
|
-
background-color: #fa9313;
|
|
386
|
-
} .status-badge__neutral-information_yo7iy,
|
|
387
|
-
.status-badge__neutral-operation_yo7iy,
|
|
388
|
-
.status-badge__neutral-cross_yo7iy {
|
|
389
|
-
background-color: #898991;
|
|
390
372
|
}.status__soft_1unag.status__green_1unag {
|
|
391
373
|
background: #d1f1d7;
|
|
392
374
|
color: #0d9336;
|
|
@@ -424,4 +406,32 @@
|
|
|
424
406
|
background: #09b9be;
|
|
425
407
|
} .status__contrast_1unag.status__purple_1unag {
|
|
426
408
|
background: #897eff;
|
|
427
|
-
}
|
|
409
|
+
}.status-badge__positive-checkmark_1qjlx {
|
|
410
|
+
background-color: #17d055;
|
|
411
|
+
} .status-badge__negative-cross_1qjlx,
|
|
412
|
+
.status-badge__negative-alert_1qjlx,
|
|
413
|
+
.status-badge__negative-block_1qjlx {
|
|
414
|
+
background-color: #ff4837;
|
|
415
|
+
} .status-badge__attention-alert_1qjlx {
|
|
416
|
+
background-color: #fda136;
|
|
417
|
+
} .status-badge__neutral-information_1qjlx,
|
|
418
|
+
.status-badge__neutral-operation_1qjlx,
|
|
419
|
+
.status-badge__neutral-cross_1qjlx {
|
|
420
|
+
background-color: #898991;
|
|
421
|
+
}
|
|
422
|
+
.status-badge__component_75yw9 {
|
|
423
|
+
color: #fff;
|
|
424
|
+
}
|
|
425
|
+
.status-badge__positive-checkmark_yo7iy {
|
|
426
|
+
background-color: #0cc44d;
|
|
427
|
+
} .status-badge__negative-cross_yo7iy,
|
|
428
|
+
.status-badge__negative-alert_yo7iy,
|
|
429
|
+
.status-badge__negative-block_yo7iy {
|
|
430
|
+
background-color: #ff4837;
|
|
431
|
+
} .status-badge__attention-alert_yo7iy {
|
|
432
|
+
background-color: #fa9313;
|
|
433
|
+
} .status-badge__neutral-information_yo7iy,
|
|
434
|
+
.status-badge__neutral-operation_yo7iy,
|
|
435
|
+
.status-badge__neutral-cross_yo7iy {
|
|
436
|
+
background-color: #898991;
|
|
437
|
+
}
|
package/themes/mixins/click.css
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
@import './modal/click.css';
|
|
9
9
|
@import './toast-plate/click.css';
|
|
10
10
|
@import './list/click.css';
|
|
11
|
+
@import './skeleton/click.css';
|
|
11
12
|
@import './dropzone/click.css';
|
|
12
13
|
@import './bottom-sheet/click.css';
|
|
13
14
|
@import './icon-button/click.css';
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
@mixin modal-click;
|
|
39
40
|
@mixin toast-plate-click;
|
|
40
41
|
@mixin list-click;
|
|
42
|
+
@mixin skeleton-click;
|
|
41
43
|
@mixin dropzone-click;
|
|
42
44
|
@mixin bottom-sheet-click;
|
|
43
45
|
@mixin icon-button-click;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
@define-mixin skeleton-click {
|
|
2
|
+
/* theme */
|
|
3
|
+
--skeleton-default-color: transparent;
|
|
4
|
+
--skeleton-backdrop-filter: blur(20px);
|
|
5
|
+
--skeleton-gradient-animation-display: none;
|
|
6
|
+
--skeleton-bg-animation-display: block;
|
|
7
|
+
--skeleton-bg-animation-color: var(--color-light-graphic-quaternary);
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* theme */
|
|
3
|
+
--skeleton-default-color: transparent;
|
|
4
|
+
--skeleton-backdrop-filter: blur(20px);
|
|
5
|
+
--skeleton-gradient-animation-display: none;
|
|
6
|
+
--skeleton-bg-animation-display: block;
|
|
7
|
+
--skeleton-bg-animation-color: var(--color-light-graphic-quaternary);
|
|
8
|
+
}
|
|
@@ -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');
|
|
6
7
|
var coreComponentsIconButton = require('../../../icon-button');
|
|
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
|
|
|
15
13
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
16
14
|
|
|
@@ -30,27 +28,27 @@ var colorStyles = {
|
|
|
30
28
|
default: defaultColors,
|
|
31
29
|
inverted: invertedColors,
|
|
32
30
|
};
|
|
31
|
+
var iconDefaultComponents = {
|
|
32
|
+
negative: React__default.default.createElement(CrossCircleMIcon.CrossCircleMIcon, { className: commonStyles.badgeIcon }),
|
|
33
|
+
positive: React__default.default.createElement(CheckmarkCircleMIcon.CheckmarkCircleMIcon, { className: commonStyles.badgeIcon }),
|
|
34
|
+
attention: React__default.default.createElement(AlertCircleMIcon.AlertCircleMIcon, { className: commonStyles.badgeIcon }),
|
|
35
|
+
};
|
|
33
36
|
var BaseToastPlate = React.forwardRef(function (_a, ref) {
|
|
34
37
|
var _b, _c, _d;
|
|
35
38
|
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"]);
|
|
36
39
|
var needRenderLeftAddons = Boolean(leftAddons || badge);
|
|
37
|
-
var
|
|
38
|
-
|
|
40
|
+
var iconComponents = getBadgeIcons
|
|
41
|
+
? getBadgeIcons(iconDefaultComponents)
|
|
42
|
+
: iconDefaultComponents;
|
|
39
43
|
var handleClose = React.useCallback(function (event) {
|
|
40
44
|
if (onClose) {
|
|
41
45
|
onClose(event);
|
|
42
46
|
}
|
|
43
47
|
}, [onClose]);
|
|
44
|
-
|
|
45
|
-
if (badge && components_baseToastPlate_utils_isUnsafeBadge.isUnsafeBadge(badge)) {
|
|
46
|
-
statusBadgeView = transformDeprecatedBadge(badge);
|
|
47
|
-
}
|
|
48
|
-
var customIcons = getCustomIcons(getBadgeIcons);
|
|
49
|
-
return (React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(commonStyles.component, colorStyles[colors].component, (_b = {}, _b[commonStyles.block] = block, _b[commonStyles.hasCloser] = hasCloser, _b), className), ref: ref, "data-test-id": getDataTestId.getDataTestId(dataTestId, 'component') }, restProps),
|
|
48
|
+
return (React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(commonStyles.component, colorStyles[colors].component, (_b = {}, _b[commonStyles.block] = block, _b[commonStyles.hasCloser] = hasCloser, _b), className), ref: ref, "data-test-id": dataTestId }, restProps),
|
|
50
49
|
React__default.default.createElement("div", { className: commonStyles.wrapper },
|
|
51
50
|
React__default.default.createElement("div", { className: commonStyles.contentWrapper },
|
|
52
|
-
needRenderLeftAddons && (React__default.default.createElement("div", { className: commonStyles.leftAddons }, leftAddons ||
|
|
53
|
-
(badge && (React__default.default.createElement(coreComponentsStatusBadge.StatusBadge, tslib.__assign({ view: statusBadgeView, dataTestId: getDataTestId.getDataTestId(dataTestId, 'badge') }, (customIcons && { customIcons: customIcons }))))))),
|
|
51
|
+
needRenderLeftAddons && (React__default.default.createElement("div", { className: commonStyles.leftAddons }, leftAddons || (React__default.default.createElement(coreComponentsBadge.Badge, { view: 'icon', content: badge && iconComponents[badge], iconColor: badge, className: commonStyles.badge, dataTestId: 'badge', visibleColorOutline: true })))),
|
|
54
52
|
React__default.default.createElement("div", { className: cn__default.default(contentClassName, commonStyles.content, (_c = {},
|
|
55
53
|
_c[commonStyles.hasCloser] = hasCloser,
|
|
56
54
|
_c[commonStyles.hasActionButton] = !!actionButton,
|
|
@@ -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';
|