Skip to content

PLASMA-7708: add flip and shift props in beta Tooltip - #2956

Merged
shuga2704 merged 1 commit into
devfrom
plasma-7708
Jul 15, 2026
Merged

PLASMA-7708: add flip and shift props in beta Tooltip#2956
shuga2704 merged 1 commit into
devfrom
plasma-7708

Conversation

@shuga2704

@shuga2704 shuga2704 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

SDDS-CS

Tooltip

  • добавлены пропсы shift и flip в beta Tooltip по примеру beta Popover;

SDDS-FINAI

Tooltip

  • добавлены пропсы shift и flip в beta Tooltip по примеру beta Popover;

What/why changed

  • добавлены пропсы shift и flip в beta Tooltip по примеру beta Popover;

Summary by CodeRabbit

  • New Features

    • Added optional tooltip controls to automatically adjust placement near viewport boundaries.
    • Tooltips can now shift away from screen edges or flip to an alternate position.
  • Documentation

    • Added Storybook controls for configuring and previewing the new tooltip placement behaviors.
📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @salutejs/plasma-asdk@0.383.0-canary.2956.29407805173.0
npm install @salutejs/plasma-b2c@1.625.0-canary.2956.29407805173.0
npm install @salutejs/plasma-core@1.232.0-canary.2956.29407805173.0
npm install @salutejs/plasma-giga@0.352.0-canary.2956.29407805173.0
npm install @salutejs/plasma-homeds@0.352.0-canary.2956.29407805173.0
npm install @salutejs/plasma-hope@1.379.0-canary.2956.29407805173.0
npm install @salutejs/plasma-icons@1.243.0-canary.2956.29407805173.0
npm install @salutejs/plasma-new-hope@0.369.0-canary.2956.29407805173.0
npm install @salutejs/plasma-tokens-b2b@1.59.0-canary.2956.29407805173.0
npm install @salutejs/plasma-tokens-b2c@0.70.0-canary.2956.29407805173.0
npm install @salutejs/plasma-tokens-web@1.74.0-canary.2956.29407805173.0
npm install @salutejs/plasma-tokens@1.144.0-canary.2956.29407805173.0
npm install @salutejs/plasma-typo@0.47.0-canary.2956.29407805173.0
npm install @salutejs/plasma-ui@1.355.0-canary.2956.29407805173.0
npm install @salutejs/plasma-web@1.627.0-canary.2956.29407805173.0
npm install @salutejs/sdds-bizcom@0.357.0-canary.2956.29407805173.0
npm install @salutejs/sdds-cs@0.361.0-canary.2956.29407805173.0
npm install @salutejs/sdds-dfa@0.355.0-canary.2956.29407805173.0
npm install @salutejs/sdds-finai@0.348.0-canary.2956.29407805173.0
npm install @salutejs/sdds-insol@0.352.0-canary.2956.29407805173.0
npm install @salutejs/sdds-netology@0.356.0-canary.2956.29407805173.0
npm install @salutejs/sdds-os@0.27.0-canary.2956.29407805173.0
npm install @salutejs/sdds-platform-ai@0.356.0-canary.2956.29407805173.0
npm install @salutejs/sdds-sbcom@0.357.0-canary.2956.29407805173.0
npm install @salutejs/sdds-scan@0.355.0-canary.2956.29407805173.0
npm install @salutejs/sdds-serv@0.356.0-canary.2956.29407805173.0
npm install @salutejs/core-themes@0.35.0-canary.2956.29407805173.0
npm install @salutejs/plasma-themes@0.56.0-canary.2956.29407805173.0
npm install @salutejs/sdds-themes@0.71.0-canary.2956.29407805173.0
npm install @salutejs/sdds-api-tests@0.14.0-canary.2956.29407805173.0
npm install @salutejs/plasma-cy-utils@0.162.0-canary.2956.29407805173.0
npm install @salutejs/plasma-sb-utils@0.233.0-canary.2956.29407805173.0
npm install @salutejs/plasma-tokens-utils@0.55.0-canary.2956.29407805173.0
# or 
yarn add @salutejs/plasma-asdk@0.383.0-canary.2956.29407805173.0
yarn add @salutejs/plasma-b2c@1.625.0-canary.2956.29407805173.0
yarn add @salutejs/plasma-core@1.232.0-canary.2956.29407805173.0
yarn add @salutejs/plasma-giga@0.352.0-canary.2956.29407805173.0
yarn add @salutejs/plasma-homeds@0.352.0-canary.2956.29407805173.0
yarn add @salutejs/plasma-hope@1.379.0-canary.2956.29407805173.0
yarn add @salutejs/plasma-icons@1.243.0-canary.2956.29407805173.0
yarn add @salutejs/plasma-new-hope@0.369.0-canary.2956.29407805173.0
yarn add @salutejs/plasma-tokens-b2b@1.59.0-canary.2956.29407805173.0
yarn add @salutejs/plasma-tokens-b2c@0.70.0-canary.2956.29407805173.0
yarn add @salutejs/plasma-tokens-web@1.74.0-canary.2956.29407805173.0
yarn add @salutejs/plasma-tokens@1.144.0-canary.2956.29407805173.0
yarn add @salutejs/plasma-typo@0.47.0-canary.2956.29407805173.0
yarn add @salutejs/plasma-ui@1.355.0-canary.2956.29407805173.0
yarn add @salutejs/plasma-web@1.627.0-canary.2956.29407805173.0
yarn add @salutejs/sdds-bizcom@0.357.0-canary.2956.29407805173.0
yarn add @salutejs/sdds-cs@0.361.0-canary.2956.29407805173.0
yarn add @salutejs/sdds-dfa@0.355.0-canary.2956.29407805173.0
yarn add @salutejs/sdds-finai@0.348.0-canary.2956.29407805173.0
yarn add @salutejs/sdds-insol@0.352.0-canary.2956.29407805173.0
yarn add @salutejs/sdds-netology@0.356.0-canary.2956.29407805173.0
yarn add @salutejs/sdds-os@0.27.0-canary.2956.29407805173.0
yarn add @salutejs/sdds-platform-ai@0.356.0-canary.2956.29407805173.0
yarn add @salutejs/sdds-sbcom@0.357.0-canary.2956.29407805173.0
yarn add @salutejs/sdds-scan@0.355.0-canary.2956.29407805173.0
yarn add @salutejs/sdds-serv@0.356.0-canary.2956.29407805173.0
yarn add @salutejs/core-themes@0.35.0-canary.2956.29407805173.0
yarn add @salutejs/plasma-themes@0.56.0-canary.2956.29407805173.0
yarn add @salutejs/sdds-themes@0.71.0-canary.2956.29407805173.0
yarn add @salutejs/sdds-api-tests@0.14.0-canary.2956.29407805173.0
yarn add @salutejs/plasma-cy-utils@0.162.0-canary.2956.29407805173.0
yarn add @salutejs/plasma-sb-utils@0.233.0-canary.2956.29407805173.0
yarn add @salutejs/plasma-tokens-utils@0.55.0-canary.2956.29407805173.0

@shuga2704 shuga2704 self-assigned this Jul 13, 2026
@shuga2704 shuga2704 added the changelog-skip Exclude pull request changes from changelog label Jul 13, 2026
@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Tooltip now supports optional viewport-boundary shifting and placement flipping through new props, with corresponding Storybook controls and default values added across the supported Tooltip stories.

Changes

Tooltip positioning controls

Layer / File(s) Summary
Positioning contract and middleware
packages/plasma-new-hope/src/components/_beta/Tooltip/Tooltip.types.ts, packages/plasma-new-hope/src/components/_beta/Tooltip/Tooltip.tsx
Adds optional flip and shift props and conditionally applies Floating UI flip() and limited shift() middleware.
Storybook control wiring
packages/plasma-new-hope/src/examples/components/_beta/Tooltip/Tooltip.stories.tsx, packages/sdds-cs/src/components/_beta/Tooltip/Tooltip.stories.tsx, packages/sdds-finai/src/components/_beta/Tooltip/Tooltip.stories.tsx
Adds boolean controls for flip and shift, defaulting both values to false.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: adding flip and shift props to the beta Tooltip.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch plasma-7708

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

Theme Builder app deployed!

https://plasma.sberdevices.ru/pr/plasma-theme-builder-pr-2956/

@github-actions

Copy link
Copy Markdown
Contributor

Documentation preview deployed!

website: https://plasma.sberdevices.ru/pr/pr-2956/
asdk storybook: https://plasma.sberdevices.ru/pr/pr-2956/asdk-storybook/
b2c storybook: https://plasma.sberdevices.ru/pr/pr-2956/b2c-storybook/
giga storybook: https://plasma.sberdevices.ru/pr/pr-2956/giga-storybook/
homeds storybook: https://plasma.sberdevices.ru/pr/pr-2956/homeds-storybook/
new-hope storybook: https://plasma.sberdevices.ru/pr/pr-2956/new-hope-storybook/
web storybook: https://plasma.sberdevices.ru/pr/pr-2956/web-storybook/
sdds-bizcom storybook: https://plasma.sberdevices.ru/pr/pr-2956/sdds-bizcom-storybook/
sdds-cs storybook: https://plasma.sberdevices.ru/pr/pr-2956/sdds-cs-storybook/
sdds-dfa storybook: https://plasma.sberdevices.ru/pr/pr-2956/sdds-dfa-storybook/
sdds-finai storybook: https://plasma.sberdevices.ru/pr/pr-2956/sdds-finai-storybook/
sdds-insol storybook: https://plasma.sberdevices.ru/pr/pr-2956/sdds-insol-storybook/
sdds-netology storybook: https://plasma.sberdevices.ru/pr/pr-2956/sdds-netology-storybook/
sdds-os storybook: https://plasma.sberdevices.ru/pr/pr-2956/sdds-os-storybook/
sdds-platform-ai storybook: https://plasma.sberdevices.ru/pr/pr-2956/sdds-platform-ai-storybook/
sdds-sbcom storybook: https://plasma.sberdevices.ru/pr/pr-2956/sdds-sbcom-storybook/
sdds-scan storybook: https://plasma.sberdevices.ru/pr/pr-2956/sdds-scan-storybook/
sdds-serv storybook: https://plasma.sberdevices.ru/pr/pr-2956/sdds-serv-storybook/
ui storybook: https://plasma.sberdevices.ru/pr/pr-2956/ui-storybook/

@Yakutoc Yakutoc added sdds-beta sdds-cs sdds-finai and removed changelog-skip Exclude pull request changes from changelog labels Jul 14, 2026
@shuga2704
shuga2704 added this pull request to the merge queue Jul 15, 2026
Merged via the queue into dev with commit 0c85c39 Jul 15, 2026
64 checks passed
@shuga2704
shuga2704 deleted the plasma-7708 branch July 15, 2026 14:15
@github-actions

Copy link
Copy Markdown
Contributor

This PR is included in version:

  • @salutejs/plasma-asdk@0.384.0
  • @salutejs/plasma-b2c@1.626.0
  • @salutejs/plasma-core@1.233.0
  • @salutejs/plasma-giga@0.353.0
  • @salutejs/plasma-homeds@0.353.0
  • @salutejs/plasma-hope@1.380.0
  • @salutejs/plasma-icons@1.243.0
  • @salutejs/plasma-new-hope@0.370.0
  • @salutejs/plasma-tokens-b2b@1.59.0
  • @salutejs/plasma-tokens-b2c@0.70.0
  • @salutejs/plasma-tokens-web@1.74.0
  • @salutejs/plasma-tokens@1.145.0
  • @salutejs/plasma-typo@0.47.0
  • @salutejs/plasma-web@1.628.0
  • @salutejs/sdds-bizcom@0.358.0
  • @salutejs/sdds-cs@0.362.0
  • @salutejs/sdds-dfa@0.356.0
  • @salutejs/sdds-finai@0.349.0
  • @salutejs/sdds-insol@0.353.0
  • @salutejs/sdds-netology@0.357.0
  • @salutejs/sdds-os@0.28.0
  • @salutejs/sdds-platform-ai@0.357.0
  • @salutejs/sdds-sbcom@0.358.0
  • @salutejs/sdds-scan@0.356.0
  • @salutejs/sdds-serv@0.357.0
  • @salutejs/core-themes@0.35.0
  • @salutejs/plasma-themes@0.57.0
  • @salutejs/sdds-themes@0.71.0
  • @salutejs/sdds-api-tests@0.15.0
  • @salutejs/plasma-cy-utils@0.163.0
  • @salutejs/plasma-sb-utils@0.234.0
  • @salutejs/plasma-tokens-utils@0.55.0

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

This PR is included in version:

  • @salutejs/plasma-asdk@0.384.0
  • @salutejs/plasma-b2c@1.626.0
  • @salutejs/plasma-core@1.233.0
  • @salutejs/plasma-giga@0.353.0
  • @salutejs/plasma-homeds@0.353.0
  • @salutejs/plasma-hope@1.380.0
  • @salutejs/plasma-icons@1.243.0
  • @salutejs/plasma-new-hope@0.370.0
  • @salutejs/plasma-tokens-b2b@1.59.0
  • @salutejs/plasma-tokens-b2c@0.70.0
  • @salutejs/plasma-tokens-web@1.74.0
  • @salutejs/plasma-tokens@1.145.0
  • @salutejs/plasma-typo@0.47.0
  • @salutejs/plasma-web@1.628.0
  • @salutejs/sdds-bizcom@0.358.0
  • @salutejs/sdds-cs@0.362.0
  • @salutejs/sdds-dfa@0.356.0
  • @salutejs/sdds-finai@0.349.0
  • @salutejs/sdds-insol@0.353.0
  • @salutejs/sdds-netology@0.357.0
  • @salutejs/sdds-os@0.28.0
  • @salutejs/sdds-platform-ai@0.357.0
  • @salutejs/sdds-sbcom@0.358.0
  • @salutejs/sdds-scan@0.356.0
  • @salutejs/sdds-serv@0.357.0
  • @salutejs/core-themes@0.35.0
  • @salutejs/plasma-themes@0.57.0
  • @salutejs/sdds-themes@0.71.0
  • @salutejs/sdds-api-tests@0.15.0
  • @salutejs/plasma-cy-utils@0.163.0
  • @salutejs/plasma-sb-utils@0.234.0
  • @salutejs/plasma-tokens-utils@0.55.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants