Skip to content

feat(button): добавляет привязки Figma Code Connect - #2280

Open
Oladii wants to merge 4 commits into
masterfrom
feat/code-connect-button
Open

feat(button): добавляет привязки Figma Code Connect#2280
Oladii wants to merge 4 commits into
masterfrom
feat/code-connect-button

Conversation

@Oladii

@Oladii Oladii commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Добавлена инфраструктура Figma Code Connect CLI: figma.config.json, @figma/code-connect, скрипты publish/unpublish, docs/code-connect.md.
  • Подключён Button из Web :: Core: [D] / [M] и inverted → ButtonDesktop / ButtonMobile.
  • В сниппет мапятся view, size, shape, disabled, children (Label), hint, leftAddons / rightAddons, loading (Addon Type=Spinner).

Детали маппинга

  • Слоты Addon лежат внутри FRAME — figma.children их не видит, поэтому иконки мапятся через nestedProps + Type у Addon (эталон diamonds).
  • На один component set — одна CLI-привязка (без дубля SingleIcon true/false).
  • Не мапятся (нет свойств в Figma): block, textResizing, nowrap, allowBackdropBlur.

Канон маппинга — bridge Button в Core-skills. Автопубликация в CI в этом PR не добавлялась.

Vladislav and others added 3 commits July 21, 2026 13:27
Подключает CLI Code Connect и component set Button из Web :: Core,
чтобы в Dev Mode и Figma MCP показывались импорты @alfalab/core-components и props.

Co-authored-by: Cursor <cursoragent@cursor.com>
Добавляет маппинг leftAddons/rightAddons через Addon и glyph, режимы
SingleIcon и loading (Addon Type=Spinner), плюс привязку diamonds.

Co-authored-by: Cursor <cursoragent@cursor.com>
Слоты Addon внутри FRAME недоступны через figma.children — маппинг
через nestedProps и Type. Одна привязка на component set вместо двух SingleIcon.

Co-authored-by: Cursor <cursoragent@cursor.com>
@changeset-bot

changeset-bot Bot commented Jul 21, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 3243332

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@coveralls

coveralls commented Jul 21, 2026

Copy link
Copy Markdown

Coverage Report for CI Build 29838179171

Coverage remained the same at 82.168%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 11796
Covered Lines: 9765
Line Coverage: 82.78%
Relevant Branches: 2246
Covered Branches: 1773
Branch Coverage: 78.94%
Branches in Coverage %: Yes
Coverage Strength: 237.08 hits per line

💛 - Coveralls

@github-actions

Copy link
Copy Markdown
Contributor

Demo build (default)

https://core-ds.github.io/core-components/2280

@github-actions

Copy link
Copy Markdown
Contributor

Demo build (alfasans)

https://core-ds.github.io/core-components/2280-alfasans

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.

2 participants