Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(status-badge): add StatusBadgeBlank; without preload icons #1500

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

denisx
Copy link
Contributor

@denisx denisx commented Dec 15, 2024

Опишите проблему

  • Добавлен StatusBadgeBlank, без предзагрузки иконок
  • Расширен пропс customIcons, теперь он принимает не только структуру иконок, но и массив таких структур (для загрузки сразу нескольких сетов)

Чек лист

  • [х] Документация

Внешний вид

Без изменений

Copy link

changeset-bot bot commented Dec 15, 2024

🦋 Changeset detected

Latest commit: 3316d13

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 30 packages
Name Type
@alfalab/core-components-status-badge Minor
@alfalab/core-components-input Patch
@alfalab/core-components-toast-plate Patch
@alfalab/core-components-amount-input Patch
@alfalab/core-components-date-input Patch
@alfalab/core-components-date-range-input Patch
@alfalab/core-components-date-time-input Patch
@alfalab/core-components-input-autocomplete Patch
@alfalab/core-components-international-phone-input Patch
@alfalab/core-components-masked-input Patch
@alfalab/core-components-number-input Patch
@alfalab/core-components-password-input Patch
@alfalab/core-components-select Patch
@alfalab/core-components-slider-input Patch
@alfalab/core-components-time-input Patch
@alfalab/core-components-universal-date-input Patch
@alfalab/core-components-with-suffix Patch
@alfalab/core-components-notification Patch
@alfalab/core-components-toast Patch
@alfalab/core-components-calendar-input Patch
@alfalab/core-components-calendar-range Patch
@alfalab/core-components-intl-phone-input Patch
@alfalab/core-components-bank-card Patch
@alfalab/core-components-phone-input Patch
@alfalab/core-components-custom-picker-button Patch
@alfalab/core-components-picker-button Patch
@alfalab/core-components-select-with-tags Patch
@alfalab/core-components-table Patch
@alfalab/core-components-notification-manager Patch
@alfalab/core-components-tabs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

view: StatusBadgeViews,
size: StatusBadgeSizes,
customIcons?: StatusBadgeCustomIcon,
export const combineIcons = (
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Просто вытащил ф-ию из хука

@coveralls
Copy link

Pull Request Test Coverage Report for Build 12342123994

Details

  • 42 of 42 (100.0%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 82.328%

Totals Coverage Status
Change from base Build 12314902408: 0.02%
Covered Lines: 10656
Relevant Lines: 11815

💛 - Coveralls

@core-ds-bot
Copy link
Collaborator

Собрана новая демка.

@denisx denisx marked this pull request as ready for review December 16, 2024 08:22
export type IconMap = Record<
StatusBadgeViews,
Record<NonNullable<StatusBadgeSizes>, StatusBadgeIcon>
>;

export const ICON_MAP: IconMap = {
const ICON_MAP_16: StatusBadgeCustomIcon = {
'positive-checkmark': {
Copy link
Collaborator

@fulcanellee fulcanellee Dec 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Если единая мапка делится на несколько разных, которые содержат перечисления единственного размера то теряется смысл в цифрах 16: , 20: и т. д.

16: CheckmarkCompactSIcon
Suggested change
'positive-checkmark': {
'positive-checkmark': CheckmarkCompactSIcon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants