@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
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { StatusBadgeCustomIcon, StatusBadgeSizes, StatusBadgeViews } from "./types/statusBadgePropTypes";
|
|
4
3
|
type StatusBadgeProps = {
|
|
5
4
|
/**
|
|
6
5
|
* Дополнительный класс
|
|
@@ -10,7 +9,7 @@ type StatusBadgeProps = {
|
|
|
10
9
|
* Размер компонента
|
|
11
10
|
* @default 24
|
|
12
11
|
*/
|
|
13
|
-
size?:
|
|
12
|
+
size?: 16 | 20 | 24 | 32 | 40;
|
|
14
13
|
/**
|
|
15
14
|
* Набор цветов для компонента
|
|
16
15
|
*/
|
|
@@ -18,15 +17,11 @@ type StatusBadgeProps = {
|
|
|
18
17
|
/**
|
|
19
18
|
* Вид бейджа.
|
|
20
19
|
*/
|
|
21
|
-
view:
|
|
20
|
+
view: 'positive-checkmark' | 'negative-cross' | 'negative-alert' | 'negative-block' | 'attention-alert' | 'neutral-information' | 'neutral-operation' | 'neutral-cross';
|
|
22
21
|
/**
|
|
23
22
|
* Идентификатор для систем автоматизированного тестирования
|
|
24
23
|
*/
|
|
25
24
|
dataTestId?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Кастомные иконки
|
|
28
|
-
*/
|
|
29
|
-
customIcons?: StatusBadgeCustomIcon;
|
|
30
25
|
};
|
|
31
|
-
declare const StatusBadge: ({ className, dataTestId, size, view, colors,
|
|
26
|
+
declare const StatusBadge: ({ className, dataTestId, size, view, colors, }: StatusBadgeProps) => React.JSX.Element;
|
|
32
27
|
export { StatusBadgeProps, StatusBadge };
|
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import {
|
|
4
|
-
import '
|
|
5
|
-
import '
|
|
6
|
-
import '@alfalab/icons-glyph/
|
|
7
|
-
import '@alfalab/icons-glyph/
|
|
8
|
-
import '@alfalab/icons-glyph/
|
|
9
|
-
import '@alfalab/icons-glyph/
|
|
10
|
-
import '@alfalab/icons-glyph/
|
|
11
|
-
import '@alfalab/icons-glyph/
|
|
12
|
-
import '@alfalab/icons-glyph/
|
|
13
|
-
import '@alfalab/icons-glyph/
|
|
14
|
-
import '@alfalab/icons-glyph/
|
|
15
|
-
import '@alfalab/icons-glyph/
|
|
16
|
-
import '@alfalab/icons-glyph/StopBrickCompactMIcon';
|
|
17
|
-
import '@alfalab/icons-glyph/StopBrickMIcon';
|
|
18
|
-
import '@alfalab/icons-glyph/StopBrickSIcon';
|
|
3
|
+
import { CheckmarkCompactMIcon } from '@alfalab/icons-glyph/CheckmarkCompactMIcon';
|
|
4
|
+
import { CheckmarkCompactSIcon } from '@alfalab/icons-glyph/CheckmarkCompactSIcon';
|
|
5
|
+
import { ClockHandsCompactMIcon } from '@alfalab/icons-glyph/ClockHandsCompactMIcon';
|
|
6
|
+
import { ClockHandsCompactSIcon } from '@alfalab/icons-glyph/ClockHandsCompactSIcon';
|
|
7
|
+
import { CrossCompactMIcon } from '@alfalab/icons-glyph/CrossCompactMIcon';
|
|
8
|
+
import { CrossCompactSIcon } from '@alfalab/icons-glyph/CrossCompactSIcon';
|
|
9
|
+
import { ExclamationCompactMIcon } from '@alfalab/icons-glyph/ExclamationCompactMIcon';
|
|
10
|
+
import { ExclamationCompactSIcon } from '@alfalab/icons-glyph/ExclamationCompactSIcon';
|
|
11
|
+
import { InformationCompactMIcon } from '@alfalab/icons-glyph/InformationCompactMIcon';
|
|
12
|
+
import { InformationCompactSIcon } from '@alfalab/icons-glyph/InformationCompactSIcon';
|
|
13
|
+
import { StopBrickCompactMIcon } from '@alfalab/icons-glyph/StopBrickCompactMIcon';
|
|
14
|
+
import { StopBrickMIcon } from '@alfalab/icons-glyph/StopBrickMIcon';
|
|
15
|
+
import { StopBrickSIcon } from '@alfalab/icons-glyph/StopBrickSIcon';
|
|
19
16
|
|
|
20
17
|
var defaultColors = {"positive-checkmark":"status-badge__positive-checkmark_1qjlx","negative-cross":"status-badge__negative-cross_1qjlx","negative-alert":"status-badge__negative-alert_1qjlx","negative-block":"status-badge__negative-block_1qjlx","attention-alert":"status-badge__attention-alert_1qjlx","neutral-information":"status-badge__neutral-information_1qjlx","neutral-operation":"status-badge__neutral-operation_1qjlx","neutral-cross":"status-badge__neutral-cross_1qjlx"};
|
|
21
18
|
require('./default.css');
|
|
@@ -30,9 +27,67 @@ var colorStyles = {
|
|
|
30
27
|
default: defaultColors,
|
|
31
28
|
inverted: invertedColors,
|
|
32
29
|
};
|
|
30
|
+
var ICON_MAP = {
|
|
31
|
+
'positive-checkmark': {
|
|
32
|
+
16: CheckmarkCompactSIcon,
|
|
33
|
+
20: CheckmarkCompactSIcon,
|
|
34
|
+
24: CheckmarkCompactMIcon,
|
|
35
|
+
32: CheckmarkCompactMIcon,
|
|
36
|
+
40: CheckmarkCompactMIcon,
|
|
37
|
+
},
|
|
38
|
+
'negative-cross': {
|
|
39
|
+
16: CrossCompactSIcon,
|
|
40
|
+
20: CrossCompactSIcon,
|
|
41
|
+
24: CrossCompactMIcon,
|
|
42
|
+
32: CrossCompactMIcon,
|
|
43
|
+
40: CrossCompactMIcon,
|
|
44
|
+
},
|
|
45
|
+
'negative-alert': {
|
|
46
|
+
16: ExclamationCompactSIcon,
|
|
47
|
+
20: ExclamationCompactSIcon,
|
|
48
|
+
24: ExclamationCompactMIcon,
|
|
49
|
+
32: ExclamationCompactMIcon,
|
|
50
|
+
40: ExclamationCompactMIcon,
|
|
51
|
+
},
|
|
52
|
+
'negative-block': {
|
|
53
|
+
16: StopBrickSIcon,
|
|
54
|
+
20: StopBrickSIcon,
|
|
55
|
+
24: StopBrickCompactMIcon,
|
|
56
|
+
32: StopBrickMIcon,
|
|
57
|
+
40: StopBrickMIcon,
|
|
58
|
+
},
|
|
59
|
+
'attention-alert': {
|
|
60
|
+
16: ExclamationCompactSIcon,
|
|
61
|
+
20: ExclamationCompactSIcon,
|
|
62
|
+
24: ExclamationCompactMIcon,
|
|
63
|
+
32: ExclamationCompactMIcon,
|
|
64
|
+
40: ExclamationCompactMIcon,
|
|
65
|
+
},
|
|
66
|
+
'neutral-information': {
|
|
67
|
+
16: InformationCompactSIcon,
|
|
68
|
+
20: InformationCompactSIcon,
|
|
69
|
+
24: InformationCompactMIcon,
|
|
70
|
+
32: InformationCompactMIcon,
|
|
71
|
+
40: InformationCompactMIcon,
|
|
72
|
+
},
|
|
73
|
+
'neutral-operation': {
|
|
74
|
+
16: ClockHandsCompactSIcon,
|
|
75
|
+
20: ClockHandsCompactSIcon,
|
|
76
|
+
24: ClockHandsCompactMIcon,
|
|
77
|
+
32: ClockHandsCompactMIcon,
|
|
78
|
+
40: ClockHandsCompactMIcon,
|
|
79
|
+
},
|
|
80
|
+
'neutral-cross': {
|
|
81
|
+
16: CrossCompactSIcon,
|
|
82
|
+
20: CrossCompactSIcon,
|
|
83
|
+
24: CrossCompactMIcon,
|
|
84
|
+
32: CrossCompactMIcon,
|
|
85
|
+
40: CrossCompactMIcon,
|
|
86
|
+
},
|
|
87
|
+
};
|
|
33
88
|
var StatusBadge = function (_a) {
|
|
34
|
-
var className = _a.className, dataTestId = _a.dataTestId, _b = _a.size, size = _b === void 0 ? 24 : _b, view = _a.view, _c = _a.colors, colors = _c === void 0 ? 'default' : _c
|
|
35
|
-
var Icon =
|
|
89
|
+
var className = _a.className, dataTestId = _a.dataTestId, _b = _a.size, size = _b === void 0 ? 24 : _b, view = _a.view, _c = _a.colors, colors = _c === void 0 ? 'default' : _c;
|
|
90
|
+
var Icon = ICON_MAP[view][size];
|
|
36
91
|
return (React.createElement("div", { className: cn(styles.component, className, styles["size-".concat(size)], colorStyles[colors].component, colorStyles[colors][view]), "data-test-id": dataTestId },
|
|
37
92
|
React.createElement(Icon, null)));
|
|
38
93
|
};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
export { StatusBadge } from './Component.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
import './hooks/useStatusBadgeIcon.js';
|
|
5
|
-
import 'tslib';
|
|
6
|
-
import './consts/iconMap.js';
|
|
7
4
|
import '@alfalab/icons-glyph/CheckmarkCompactMIcon';
|
|
8
5
|
import '@alfalab/icons-glyph/CheckmarkCompactSIcon';
|
|
9
6
|
import '@alfalab/icons-glyph/ClockHandsCompactMIcon';
|
package/status-badge/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { StatusBadgeCustomIcon, StatusBadgeSizes, StatusBadgeViews } from "./types/statusBadgePropTypes";
|
|
4
3
|
type StatusBadgeProps = {
|
|
5
4
|
/**
|
|
6
5
|
* Дополнительный класс
|
|
@@ -10,7 +9,7 @@ type StatusBadgeProps = {
|
|
|
10
9
|
* Размер компонента
|
|
11
10
|
* @default 24
|
|
12
11
|
*/
|
|
13
|
-
size?:
|
|
12
|
+
size?: 16 | 20 | 24 | 32 | 40;
|
|
14
13
|
/**
|
|
15
14
|
* Набор цветов для компонента
|
|
16
15
|
*/
|
|
@@ -18,15 +17,11 @@ type StatusBadgeProps = {
|
|
|
18
17
|
/**
|
|
19
18
|
* Вид бейджа.
|
|
20
19
|
*/
|
|
21
|
-
view:
|
|
20
|
+
view: 'positive-checkmark' | 'negative-cross' | 'negative-alert' | 'negative-block' | 'attention-alert' | 'neutral-information' | 'neutral-operation' | 'neutral-cross';
|
|
22
21
|
/**
|
|
23
22
|
* Идентификатор для систем автоматизированного тестирования
|
|
24
23
|
*/
|
|
25
24
|
dataTestId?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Кастомные иконки
|
|
28
|
-
*/
|
|
29
|
-
customIcons?: StatusBadgeCustomIcon;
|
|
30
25
|
};
|
|
31
|
-
declare const StatusBadge: ({ className, dataTestId, size, view, colors,
|
|
26
|
+
declare const StatusBadge: ({ className, dataTestId, size, view, colors, }: StatusBadgeProps) => React.JSX.Element;
|
|
32
27
|
export { StatusBadgeProps, StatusBadge };
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
|
-
import {
|
|
4
|
-
import '
|
|
5
|
-
import '@alfalab/icons-glyph/
|
|
6
|
-
import '@alfalab/icons-glyph/
|
|
7
|
-
import '@alfalab/icons-glyph/
|
|
8
|
-
import '@alfalab/icons-glyph/
|
|
9
|
-
import '@alfalab/icons-glyph/
|
|
10
|
-
import '@alfalab/icons-glyph/
|
|
11
|
-
import '@alfalab/icons-glyph/
|
|
12
|
-
import '@alfalab/icons-glyph/
|
|
13
|
-
import '@alfalab/icons-glyph/
|
|
14
|
-
import '@alfalab/icons-glyph/
|
|
15
|
-
import '@alfalab/icons-glyph/
|
|
16
|
-
import '@alfalab/icons-glyph/StopBrickMIcon';
|
|
17
|
-
import '@alfalab/icons-glyph/StopBrickSIcon';
|
|
3
|
+
import { CheckmarkCompactMIcon } from '@alfalab/icons-glyph/CheckmarkCompactMIcon';
|
|
4
|
+
import { CheckmarkCompactSIcon } from '@alfalab/icons-glyph/CheckmarkCompactSIcon';
|
|
5
|
+
import { ClockHandsCompactMIcon } from '@alfalab/icons-glyph/ClockHandsCompactMIcon';
|
|
6
|
+
import { ClockHandsCompactSIcon } from '@alfalab/icons-glyph/ClockHandsCompactSIcon';
|
|
7
|
+
import { CrossCompactMIcon } from '@alfalab/icons-glyph/CrossCompactMIcon';
|
|
8
|
+
import { CrossCompactSIcon } from '@alfalab/icons-glyph/CrossCompactSIcon';
|
|
9
|
+
import { ExclamationCompactMIcon } from '@alfalab/icons-glyph/ExclamationCompactMIcon';
|
|
10
|
+
import { ExclamationCompactSIcon } from '@alfalab/icons-glyph/ExclamationCompactSIcon';
|
|
11
|
+
import { InformationCompactMIcon } from '@alfalab/icons-glyph/InformationCompactMIcon';
|
|
12
|
+
import { InformationCompactSIcon } from '@alfalab/icons-glyph/InformationCompactSIcon';
|
|
13
|
+
import { StopBrickCompactMIcon } from '@alfalab/icons-glyph/StopBrickCompactMIcon';
|
|
14
|
+
import { StopBrickMIcon } from '@alfalab/icons-glyph/StopBrickMIcon';
|
|
15
|
+
import { StopBrickSIcon } from '@alfalab/icons-glyph/StopBrickSIcon';
|
|
18
16
|
|
|
19
17
|
const defaultColors = {"positive-checkmark":"status-badge__positive-checkmark_1qjlx","negative-cross":"status-badge__negative-cross_1qjlx","negative-alert":"status-badge__negative-alert_1qjlx","negative-block":"status-badge__negative-block_1qjlx","attention-alert":"status-badge__attention-alert_1qjlx","neutral-information":"status-badge__neutral-information_1qjlx","neutral-operation":"status-badge__neutral-operation_1qjlx","neutral-cross":"status-badge__neutral-cross_1qjlx"};
|
|
20
18
|
require('./default.css');
|
|
@@ -29,8 +27,66 @@ const colorStyles = {
|
|
|
29
27
|
default: defaultColors,
|
|
30
28
|
inverted: invertedColors,
|
|
31
29
|
};
|
|
32
|
-
const
|
|
33
|
-
|
|
30
|
+
const ICON_MAP = {
|
|
31
|
+
'positive-checkmark': {
|
|
32
|
+
16: CheckmarkCompactSIcon,
|
|
33
|
+
20: CheckmarkCompactSIcon,
|
|
34
|
+
24: CheckmarkCompactMIcon,
|
|
35
|
+
32: CheckmarkCompactMIcon,
|
|
36
|
+
40: CheckmarkCompactMIcon,
|
|
37
|
+
},
|
|
38
|
+
'negative-cross': {
|
|
39
|
+
16: CrossCompactSIcon,
|
|
40
|
+
20: CrossCompactSIcon,
|
|
41
|
+
24: CrossCompactMIcon,
|
|
42
|
+
32: CrossCompactMIcon,
|
|
43
|
+
40: CrossCompactMIcon,
|
|
44
|
+
},
|
|
45
|
+
'negative-alert': {
|
|
46
|
+
16: ExclamationCompactSIcon,
|
|
47
|
+
20: ExclamationCompactSIcon,
|
|
48
|
+
24: ExclamationCompactMIcon,
|
|
49
|
+
32: ExclamationCompactMIcon,
|
|
50
|
+
40: ExclamationCompactMIcon,
|
|
51
|
+
},
|
|
52
|
+
'negative-block': {
|
|
53
|
+
16: StopBrickSIcon,
|
|
54
|
+
20: StopBrickSIcon,
|
|
55
|
+
24: StopBrickCompactMIcon,
|
|
56
|
+
32: StopBrickMIcon,
|
|
57
|
+
40: StopBrickMIcon,
|
|
58
|
+
},
|
|
59
|
+
'attention-alert': {
|
|
60
|
+
16: ExclamationCompactSIcon,
|
|
61
|
+
20: ExclamationCompactSIcon,
|
|
62
|
+
24: ExclamationCompactMIcon,
|
|
63
|
+
32: ExclamationCompactMIcon,
|
|
64
|
+
40: ExclamationCompactMIcon,
|
|
65
|
+
},
|
|
66
|
+
'neutral-information': {
|
|
67
|
+
16: InformationCompactSIcon,
|
|
68
|
+
20: InformationCompactSIcon,
|
|
69
|
+
24: InformationCompactMIcon,
|
|
70
|
+
32: InformationCompactMIcon,
|
|
71
|
+
40: InformationCompactMIcon,
|
|
72
|
+
},
|
|
73
|
+
'neutral-operation': {
|
|
74
|
+
16: ClockHandsCompactSIcon,
|
|
75
|
+
20: ClockHandsCompactSIcon,
|
|
76
|
+
24: ClockHandsCompactMIcon,
|
|
77
|
+
32: ClockHandsCompactMIcon,
|
|
78
|
+
40: ClockHandsCompactMIcon,
|
|
79
|
+
},
|
|
80
|
+
'neutral-cross': {
|
|
81
|
+
16: CrossCompactSIcon,
|
|
82
|
+
20: CrossCompactSIcon,
|
|
83
|
+
24: CrossCompactMIcon,
|
|
84
|
+
32: CrossCompactMIcon,
|
|
85
|
+
40: CrossCompactMIcon,
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
const StatusBadge = ({ className, dataTestId, size = 24, view, colors = 'default', }) => {
|
|
89
|
+
const Icon = ICON_MAP[view][size];
|
|
34
90
|
return (React.createElement("div", { className: cn(styles.component, className, styles[`size-${size}`], colorStyles[colors].component, colorStyles[colors][view]), "data-test-id": dataTestId },
|
|
35
91
|
React.createElement(Icon, null)));
|
|
36
92
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export { StatusBadge } from './Component.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
import './hooks/useStatusBadgeIcon.js';
|
|
5
|
-
import './consts/iconMap.js';
|
|
6
4
|
import '@alfalab/icons-glyph/CheckmarkCompactMIcon';
|
|
7
5
|
import '@alfalab/icons-glyph/CheckmarkCompactSIcon';
|
|
8
6
|
import '@alfalab/icons-glyph/ClockHandsCompactMIcon';
|
package/tab-bar/Component.js
CHANGED
|
@@ -11,22 +11,18 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
12
12
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
13
13
|
|
|
14
|
-
var styles = {"component":"tab-bar__component_1naag","
|
|
14
|
+
var styles = {"component":"tab-bar__component_1naag","border":"tab-bar__border_1naag"};
|
|
15
15
|
require('./index.css');
|
|
16
16
|
|
|
17
17
|
var TabBarComponent = React.forwardRef(function (_a, ref) {
|
|
18
18
|
var _b;
|
|
19
|
-
var children = _a.children, className = _a.className, selectedId = _a.selectedId, border = _a.border, dataTestId = _a.dataTestId, tabClassNames = _a.tabClassNames, onChange = _a.onChange,
|
|
19
|
+
var children = _a.children, className = _a.className, selectedId = _a.selectedId, border = _a.border, dataTestId = _a.dataTestId, tabClassNames = _a.tabClassNames, onChange = _a.onChange, restProps = tslib.__rest(_a, ["children", "className", "selectedId", "border", "dataTestId", "tabClassNames", "onChange"]);
|
|
20
20
|
if (React.Children.count(children) > 5) {
|
|
21
21
|
// eslint-disable-next-line no-console
|
|
22
22
|
console.error('Компонент TabBar не может содержать больше 5 табов');
|
|
23
23
|
}
|
|
24
|
-
return (React__default.default.createElement("nav", tslib.__assign({ "data-test-id": dataTestId }, restProps, { ref: ref, className: cn__default.default(styles.component,
|
|
25
|
-
_b[styles.border] = border,
|
|
26
|
-
_b)) }), React.Children.map(children, function (tab) {
|
|
24
|
+
return (React__default.default.createElement("nav", tslib.__assign({ "data-test-id": dataTestId }, restProps, { ref: ref, className: cn__default.default(styles.component, className, (_b = {}, _b[styles.border] = border, _b)) }), React.Children.map(children, function (tab) {
|
|
27
25
|
return React.cloneElement(tab, {
|
|
28
|
-
bgColor: bgColor,
|
|
29
|
-
accentColor: accentColor,
|
|
30
26
|
selected: tab.props.id === selectedId,
|
|
31
27
|
onChange: onChange,
|
|
32
28
|
tabClassNames: tabClassNames,
|
|
@@ -3,38 +3,34 @@ 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
|
|
6
|
+
var coreComponentsBadge = require('../../../badge');
|
|
7
7
|
var coreComponentsTypography = require('../../../typography');
|
|
8
|
-
var consts = require('../../consts.js');
|
|
9
8
|
|
|
10
9
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
10
|
|
|
12
11
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
13
12
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
14
13
|
|
|
15
|
-
var styles = {"component":"tab-bar__component_zqkzg","
|
|
14
|
+
var styles = {"component":"tab-bar__component_zqkzg","selected":"tab-bar__selected_zqkzg","icon":"tab-bar__icon_zqkzg","label":"tab-bar__label_zqkzg","labelSelected":"tab-bar__labelSelected_zqkzg","indicator":"tab-bar__indicator_zqkzg"};
|
|
16
15
|
require('./index.css');
|
|
17
16
|
|
|
18
17
|
var TabComponent = React.forwardRef(function (_a, ref) {
|
|
19
18
|
var _b, _c;
|
|
20
|
-
var showIndicator = _a.showIndicator, indicatorProps = _a.indicatorProps, label = _a.label, icon = _a.icon, id = _a.id, selected = _a.selected, onChange = _a.onChange, onClick = _a.onClick, _d = _a.tabClassNames, tabClassNames = _d === void 0 ? {} : _d, dataTestId = _a.dataTestId, className = _a.className, labelClassName = _a.labelClassName, selectedClassName = _a.selectedClassName, iconClassName = _a.iconClassName, href = _a.href, _e = _a.Component, Component = _e === void 0 ? href ? 'a' : 'button' : _e,
|
|
19
|
+
var showIndicator = _a.showIndicator, indicatorProps = _a.indicatorProps, label = _a.label, icon = _a.icon, id = _a.id, selected = _a.selected, onChange = _a.onChange, onClick = _a.onClick, _d = _a.tabClassNames, tabClassNames = _d === void 0 ? {} : _d, dataTestId = _a.dataTestId, className = _a.className, labelClassName = _a.labelClassName, selectedClassName = _a.selectedClassName, iconClassName = _a.iconClassName, href = _a.href, _e = _a.Component, Component = _e === void 0 ? href ? 'a' : 'button' : _e, restProps = tslib.__rest(_a, ["showIndicator", "indicatorProps", "label", "icon", "id", "selected", "onChange", "onClick", "tabClassNames", "dataTestId", "className", "labelClassName", "selectedClassName", "iconClassName", "href", "Component"]);
|
|
21
20
|
var handleClick = function (event) {
|
|
22
21
|
onChange === null || onChange === void 0 ? void 0 : onChange(id);
|
|
23
22
|
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
24
23
|
};
|
|
25
24
|
var commonClassName = tabClassNames.className, commonLabelClassName = tabClassNames.labelClassName, commonSelectedClassName = tabClassNames.selectedClassName, commonIconClassName = tabClassNames.iconClassName;
|
|
26
25
|
return (React__default.default.createElement(Component, tslib.__assign({ "data-test-id": dataTestId, tabIndex: 0 }, (Component === 'button' ? { type: 'button' } : null), restProps, { href: href, id: id, ref: ref, className: cn__default.default(styles.component, commonClassName, className, selected && commonSelectedClassName, selected && selectedClassName, (_b = {},
|
|
27
|
-
_b[styles
|
|
26
|
+
_b[styles.selected] = selected,
|
|
28
27
|
_b)), onClick: handleClick }),
|
|
29
28
|
React__default.default.createElement("div", { className: cn__default.default(styles.icon, commonIconClassName, iconClassName) }, React.isValidElement(icon) ? React.cloneElement(icon, { selected: selected }) : icon),
|
|
30
29
|
React__default.default.createElement(coreComponentsTypography.Typography.Text, { weight: 'medium', view: 'secondary-small', className: cn__default.default(styles.label, commonLabelClassName, labelClassName, (_c = {},
|
|
31
30
|
_c[styles.labelSelected] = selected,
|
|
32
31
|
_c)) }, React.isValidElement(label) ? React.cloneElement(label, { selected: selected }) : label),
|
|
33
32
|
showIndicator && (React__default.default.createElement("div", { className: styles.indicator },
|
|
34
|
-
React__default.default.createElement(
|
|
35
|
-
width: 2,
|
|
36
|
-
color: consts.INDICATOR_BORDER_COLOR[bgColor],
|
|
37
|
-
}, backgroundColor: consts.INDICATOR_BG_COLOR[accentColor] }))))));
|
|
33
|
+
React__default.default.createElement(coreComponentsBadge.Badge, tslib.__assign({ visibleIconOutline: true }, indicatorProps, { view: 'count' }))))));
|
|
38
34
|
});
|
|
39
35
|
var Tab = TabComponent;
|
|
40
36
|
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-accent-primary: #ef3124;
|
|
5
|
-
--color-light-accent-secondary: #212124;
|
|
6
5
|
--color-light-neutral-translucent-700: rgba(4, 4, 21, 0.47);
|
|
7
6
|
--color-light-text-secondary: rgba(4, 4, 19, 0.55); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
8
7
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -44,10 +43,8 @@
|
|
|
44
43
|
align-items: center;
|
|
45
44
|
padding: var(--gap-xs) 0;
|
|
46
45
|
color: var(--color-light-neutral-translucent-700);
|
|
47
|
-
} .tab-
|
|
46
|
+
} .tab-bar__selected_zqkzg {
|
|
48
47
|
color: var(--color-light-accent-primary);
|
|
49
|
-
} .tab-bar__secondary_zqkzg {
|
|
50
|
-
color: var(--color-light-accent-secondary);
|
|
51
48
|
} .tab-bar__icon_zqkzg {
|
|
52
49
|
display: flex;
|
|
53
50
|
align-items: center;
|
|
@@ -67,7 +64,7 @@
|
|
|
67
64
|
color: inherit;
|
|
68
65
|
} .tab-bar__indicator_zqkzg {
|
|
69
66
|
position: absolute;
|
|
70
|
-
top:
|
|
67
|
+
top: var(--gap-2xs);
|
|
71
68
|
left: calc(50% + var(--gap-2xs));
|
|
72
69
|
height: 16px;
|
|
73
70
|
min-width: 16px;
|
|
@@ -15,17 +15,13 @@ var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
|
|
|
15
15
|
|
|
16
16
|
var TabBarComponent = React.forwardRef(function (_a, ref) {
|
|
17
17
|
var _b;
|
|
18
|
-
var children = _a.children, className = _a.className, selectedId = _a.selectedId, border = _a.border, dataTestId = _a.dataTestId, tabClassNames = _a.tabClassNames, onChange = _a.onChange,
|
|
18
|
+
var children = _a.children, className = _a.className, selectedId = _a.selectedId, border = _a.border, dataTestId = _a.dataTestId, tabClassNames = _a.tabClassNames, onChange = _a.onChange, restProps = tslib.__rest(_a, ["children", "className", "selectedId", "border", "dataTestId", "tabClassNames", "onChange"]);
|
|
19
19
|
if (React.Children.count(children) > 5) {
|
|
20
20
|
// eslint-disable-next-line no-console
|
|
21
21
|
console.error('Компонент TabBar не может содержать больше 5 табов');
|
|
22
22
|
}
|
|
23
|
-
return (React__default.default.createElement("nav", tslib.__assign({ "data-test-id": dataTestId }, restProps, { ref: ref, className: cn__default.default(styles__default.default.component, styles__default.default
|
|
24
|
-
_b[styles__default.default.border] = border,
|
|
25
|
-
_b)) }), React.Children.map(children, function (tab) {
|
|
23
|
+
return (React__default.default.createElement("nav", tslib.__assign({ "data-test-id": dataTestId }, restProps, { ref: ref, className: cn__default.default(styles__default.default.component, className, (_b = {}, _b[styles__default.default.border] = border, _b)) }), React.Children.map(children, function (tab) {
|
|
26
24
|
return React.cloneElement(tab, {
|
|
27
|
-
bgColor: bgColor,
|
|
28
|
-
accentColor: accentColor,
|
|
29
25
|
selected: tab.props.id === selectedId,
|
|
30
26
|
onChange: onChange,
|
|
31
27
|
tabClassNames: tabClassNames,
|
|
@@ -3,9 +3,8 @@ 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
|
|
6
|
+
var coreComponentsBadge = require('../../../../badge/cssm');
|
|
7
7
|
var coreComponentsTypography = require('../../../../typography/cssm');
|
|
8
|
-
var consts = require('../../consts.js');
|
|
9
8
|
var styles = require('./index.module.css');
|
|
10
9
|
|
|
11
10
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -16,24 +15,21 @@ var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
|
|
|
16
15
|
|
|
17
16
|
var TabComponent = React.forwardRef(function (_a, ref) {
|
|
18
17
|
var _b, _c;
|
|
19
|
-
var showIndicator = _a.showIndicator, indicatorProps = _a.indicatorProps, label = _a.label, icon = _a.icon, id = _a.id, selected = _a.selected, onChange = _a.onChange, onClick = _a.onClick, _d = _a.tabClassNames, tabClassNames = _d === void 0 ? {} : _d, dataTestId = _a.dataTestId, className = _a.className, labelClassName = _a.labelClassName, selectedClassName = _a.selectedClassName, iconClassName = _a.iconClassName, href = _a.href, _e = _a.Component, Component = _e === void 0 ? href ? 'a' : 'button' : _e,
|
|
18
|
+
var showIndicator = _a.showIndicator, indicatorProps = _a.indicatorProps, label = _a.label, icon = _a.icon, id = _a.id, selected = _a.selected, onChange = _a.onChange, onClick = _a.onClick, _d = _a.tabClassNames, tabClassNames = _d === void 0 ? {} : _d, dataTestId = _a.dataTestId, className = _a.className, labelClassName = _a.labelClassName, selectedClassName = _a.selectedClassName, iconClassName = _a.iconClassName, href = _a.href, _e = _a.Component, Component = _e === void 0 ? href ? 'a' : 'button' : _e, restProps = tslib.__rest(_a, ["showIndicator", "indicatorProps", "label", "icon", "id", "selected", "onChange", "onClick", "tabClassNames", "dataTestId", "className", "labelClassName", "selectedClassName", "iconClassName", "href", "Component"]);
|
|
20
19
|
var handleClick = function (event) {
|
|
21
20
|
onChange === null || onChange === void 0 ? void 0 : onChange(id);
|
|
22
21
|
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
23
22
|
};
|
|
24
23
|
var commonClassName = tabClassNames.className, commonLabelClassName = tabClassNames.labelClassName, commonSelectedClassName = tabClassNames.selectedClassName, commonIconClassName = tabClassNames.iconClassName;
|
|
25
24
|
return (React__default.default.createElement(Component, tslib.__assign({ "data-test-id": dataTestId, tabIndex: 0 }, (Component === 'button' ? { type: 'button' } : null), restProps, { href: href, id: id, ref: ref, className: cn__default.default(styles__default.default.component, commonClassName, className, selected && commonSelectedClassName, selected && selectedClassName, (_b = {},
|
|
26
|
-
_b[styles__default.default
|
|
25
|
+
_b[styles__default.default.selected] = selected,
|
|
27
26
|
_b)), onClick: handleClick }),
|
|
28
27
|
React__default.default.createElement("div", { className: cn__default.default(styles__default.default.icon, commonIconClassName, iconClassName) }, React.isValidElement(icon) ? React.cloneElement(icon, { selected: selected }) : icon),
|
|
29
28
|
React__default.default.createElement(coreComponentsTypography.Typography.Text, { weight: 'medium', view: 'secondary-small', className: cn__default.default(styles__default.default.label, commonLabelClassName, labelClassName, (_c = {},
|
|
30
29
|
_c[styles__default.default.labelSelected] = selected,
|
|
31
30
|
_c)) }, React.isValidElement(label) ? React.cloneElement(label, { selected: selected }) : label),
|
|
32
31
|
showIndicator && (React__default.default.createElement("div", { className: styles__default.default.indicator },
|
|
33
|
-
React__default.default.createElement(
|
|
34
|
-
width: 2,
|
|
35
|
-
color: consts.INDICATOR_BORDER_COLOR[bgColor],
|
|
36
|
-
}, backgroundColor: consts.INDICATOR_BG_COLOR[accentColor] }))))));
|
|
32
|
+
React__default.default.createElement(coreComponentsBadge.Badge, tslib.__assign({ visibleIconOutline: true }, indicatorProps, { view: 'count' }))))));
|
|
37
33
|
});
|
|
38
34
|
var Tab = TabComponent;
|
|
39
35
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
2
2
|
} /* deprecated */ :root {
|
|
3
3
|
--color-light-accent-primary: #ef3124;
|
|
4
|
-
--color-light-accent-secondary: #212124;
|
|
5
4
|
--color-light-neutral-translucent-700: rgba(4, 4, 21, 0.47);
|
|
6
5
|
--color-light-text-secondary: rgba(4, 4, 19, 0.55); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
7
6
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -43,10 +42,8 @@
|
|
|
43
42
|
align-items: center;
|
|
44
43
|
padding: var(--gap-xs) 0;
|
|
45
44
|
color: var(--color-light-neutral-translucent-700);
|
|
46
|
-
} .
|
|
45
|
+
} .selected {
|
|
47
46
|
color: var(--color-light-accent-primary);
|
|
48
|
-
} .secondary {
|
|
49
|
-
color: var(--color-light-accent-secondary);
|
|
50
47
|
} .icon {
|
|
51
48
|
display: flex;
|
|
52
49
|
align-items: center;
|
|
@@ -66,7 +63,7 @@
|
|
|
66
63
|
color: inherit;
|
|
67
64
|
} .indicator {
|
|
68
65
|
position: absolute;
|
|
69
|
-
top:
|
|
66
|
+
top: var(--gap-2xs);
|
|
70
67
|
left: calc(50% + var(--gap-2xs));
|
|
71
68
|
height: 16px;
|
|
72
69
|
min-width: 16px;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
2
2
|
} /* deprecated */ :root {
|
|
3
|
-
--color-light-base-bg-alt-primary: #f2f3f5;
|
|
4
3
|
--color-light-base-bg-primary: #fff;
|
|
5
|
-
--color-light-neutral-
|
|
4
|
+
--color-light-neutral-300: #e7e8eb; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
6
5
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
7
6
|
} :root {
|
|
8
7
|
} :root {
|
|
@@ -16,18 +15,17 @@
|
|
|
16
15
|
} :root {
|
|
17
16
|
} :root {
|
|
18
17
|
} :root {
|
|
18
|
+
} :root {
|
|
19
|
+
--tab-bar-bg-color: var(--color-light-base-bg-primary);
|
|
19
20
|
} .component {
|
|
20
21
|
display: flex;
|
|
21
22
|
justify-content: center;
|
|
22
23
|
height: 64px;
|
|
23
24
|
max-height: 64px;
|
|
25
|
+
background-color: var(--tab-bar-bg-color);
|
|
24
26
|
box-sizing: border-box;
|
|
25
27
|
overflow: hidden;
|
|
26
|
-
transition: box-shadow 0.2s ease
|
|
27
|
-
} .
|
|
28
|
-
|
|
29
|
-
} .component.modal-bg-alt-primary {
|
|
30
|
-
background-color: var(--color-light-base-bg-alt-primary);
|
|
31
|
-
} .border {
|
|
32
|
-
box-shadow: 0 -1px 0 0 var(--color-light-neutral-translucent-300);
|
|
28
|
+
transition: box-shadow 0.2s ease;
|
|
29
|
+
} .border {
|
|
30
|
+
box-shadow: 0 -1px 0 0 var(--color-light-neutral-300);
|
|
33
31
|
}
|
package/tab-bar/cssm/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AllHTMLAttributes, ElementType, ForwardRefExoticComponent, HTMLAttributes, ReactElement, ReactNode, RefAttributes } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { BadgeProps } from "../../badge";
|
|
3
3
|
type TabElementType = ReactElement<TabProps, ForwardRefExoticComponent<TabProps & RefAttributes<HTMLElement>>>;
|
|
4
4
|
interface TabBarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
5
5
|
/**
|
|
@@ -48,14 +48,6 @@ interface TabBarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
|
48
48
|
* Обработчик изменения выбранного таба
|
|
49
49
|
*/
|
|
50
50
|
onChange?: (id: string) => void;
|
|
51
|
-
/**
|
|
52
|
-
* Цвет активного таба
|
|
53
|
-
*/
|
|
54
|
-
accentColor?: 'primary' | 'secondary';
|
|
55
|
-
/**
|
|
56
|
-
* Цвет фона
|
|
57
|
-
*/
|
|
58
|
-
bgColor?: 'modal-bg-primary' | 'modal-bg-alt-primary';
|
|
59
51
|
}
|
|
60
52
|
type AdditionalTabProps = Record<string, unknown>;
|
|
61
53
|
interface TabProps extends Omit<AllHTMLAttributes<unknown>, 'onChange' | 'label'>, AdditionalTabProps {
|
|
@@ -83,7 +75,7 @@ interface TabProps extends Omit<AllHTMLAttributes<unknown>, 'onChange' | 'label'
|
|
|
83
75
|
/**
|
|
84
76
|
* Свойства индикатора
|
|
85
77
|
*/
|
|
86
|
-
indicatorProps?: Omit<
|
|
78
|
+
indicatorProps?: Omit<BadgeProps, 'view' | 'visibleColorOutline' | 'size' | 'iconColor' | 'iconUnderlayColor'>;
|
|
87
79
|
/**
|
|
88
80
|
* Дополнительный класс таба
|
|
89
81
|
*/
|
|
@@ -101,7 +93,7 @@ interface TabProps extends Omit<AllHTMLAttributes<unknown>, 'onChange' | 'label'
|
|
|
101
93
|
*/
|
|
102
94
|
iconClassName?: string;
|
|
103
95
|
}
|
|
104
|
-
interface PrivateTabProps extends Pick<TabBarProps, 'tabClassNames' | 'onChange' | 'dataTestId'
|
|
96
|
+
interface PrivateTabProps extends Pick<TabBarProps, 'tabClassNames' | 'onChange' | 'dataTestId'> {
|
|
105
97
|
selected: boolean;
|
|
106
98
|
}
|
|
107
99
|
export { TabBarProps, TabProps, PrivateTabProps };
|