Skip to content

Conversation

tenphi
Copy link
Member

@tenphi tenphi commented Oct 1, 2025

Note

Broaden TooltipProvider children to ReactNode and adjust SSR/render logic to accept functions, elements, and strings, wrapping others as fragments.

  • TooltipProvider (src/components/overlays/Tooltip/TooltipProvider.tsx):
    • Update prop typing: children from ReactElement to ReactNode.
    • SSR behavior: return a fragment, invoking function children only when applicable; cast to ReactElement.
    • Render logic: pass through function/valid element/string directly; wrap other node types in a fragment.
    • Add isValidElement import to support child type checks.
  • Changeset: Patch release note for @cube-dev/ui-kit mentioning TooltipProvider return type fix.

Written by Cursor Bugbot for commit 32e322e. This will update automatically on new commits. Configure here.

Copy link

changeset-bot bot commented Oct 1, 2025

🦋 Changeset detected

Latest commit: 32e322e

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

This PR includes changesets to release 1 package
Name Type
@cube-dev/ui-kit 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

Copy link

vercel bot commented Oct 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
cube-ui-kit Ready Ready Preview Comment Oct 1, 2025 4:24pm
cube-ui-kit-cursor Ready Ready Preview Comment Oct 1, 2025 4:24pm

Copy link
Contributor

github-actions bot commented Oct 1, 2025

📦 NPM canary release

Deployed canary version 0.0.0-canary-4e9521e.

Copy link
Contributor

github-actions bot commented Oct 1, 2025

🧪 Storybook is successfully deployed!

Copy link
Contributor

github-actions bot commented Oct 1, 2025

🏋️ Size limit report

Name Size Passed?
All 299.15 KB (+0.01% 🔺) Yes 🎉
Tree shaking (just a Button) 32.07 KB (0% 🟰) Yes 🎉
Tree shaking (just an Icon) 19.39 KB (0% 🟰) Yes 🎉

Click here if you want to find out what is changed in this build

@tenphi tenphi merged commit a4f59bb into main Oct 1, 2025
14 checks passed
@tenphi tenphi deleted the fix-return-type-2 branch October 1, 2025 17:15
@github-actions github-actions bot mentioned this pull request Oct 1, 2025
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.

1 participant