[PF-2005] Create Code Connect config Component Library V2 - #5016
[PF-2005] Create Code Connect config Component Library V2#5016Kosov234 wants to merge 157 commits into
Conversation
|
268d14d to
f5bd3e5
Compare
| <Accordion expanded={expanded} borders={borders} content={<p>Content</p>}> | ||
| Summary | ||
| </Accordion> |
There was a problem hiding this comment.
would it make sense to have these examples similar to the stories we have for the components?
(Asking as for example here we have also Accordion.Summary and Accordion.Details)
hmmm we could even re-use the examples from stories?
There was a problem hiding this comment.
Good catch, fixed in 6674432
When it comes to Storybook examples - the issue is that in this case the code examples in Figma will look like <StorybookExampleName/> which eliminates the whole point of Code Connect
|
📖 Storybook Preview 🚀 Your Storybook preview is ready: View Storybook 📍 Preview URL: This preview is updated automatically when you push changes to this PR. |
|
📖 Storybook Preview 🚀 Your Storybook preview is ready: View Storybook 📍 Preview URL: This preview is updated automatically when you push changes to this PR. |
|
|
📖 Storybook Preview 🚀 Your Storybook preview is ready: View Storybook 📍 Preview URL: This preview is updated automatically when you push changes to this PR. |
78685ef to
4ab6f6f
Compare
* [PF-1994] Migrate picasso-charts to @base-ui/react + Tailwind Tier 4 component. See PR description for prop-surface diff, import diff, and Happo summary. Refs: PF-1994 * [PF-1994] Migrate BarChartIndicator to @base-ui/react + Tailwind * [PF-1994] Migrate picasso-charts remove migration comments * [PF-1994] Migrate picasso-charts remove styles.ts file
* [PF-1994] Migrate Dropdown to @base-ui/react + Tailwind Tier 3 component. See PR description for prop-surface diff, import diff, and Happo summary. Refs: PF-1994 * [PF-1994] Migrate Dropdown to @base-ui/react + Tailwind Tier 3 component. See PR description for prop-surface diff, import diff, and Happo summary. Refs: PF-1994 [ci-iter 3] * [PF-1994] Migrate Dropdown to @base-ui/react + Tailwind Tier 3 component. See PR description for prop-surface diff, import diff, and Happo summary. Refs: PF-1994 [ci-iter 5] * [PF-1994] Use shared ClickAwayListener in Dropdown The migration hand-rolled a local useClickAway hook (plus a wrapper <div> kept only for a since-resolved MUI bug) to replace MUI's ClickAwayListener. But @toptal/picasso-utils already exports a ClickAwayListener -- the MUI-free replacement that DatePicker and Menu use -- so swap to it for consistency with the rest of the library. The shared component is also more robust than the local hook: it adds a root-scrollbar click guard, portal / React-tree awareness, touch-move cancellation, and an activation delay so the opening interaction is not counted as a click-away. It clones its child, so no extra DOM node is introduced. Removes use-click-away.ts (the shared component carries its own tests). Render-neutral: verified via Jest (unchanged DOM snapshot) and a local Happo run (no new diffs). Refs: PF-1994 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * [PF-1994] Restore Dropdown open animation via CSS @starting-style The MUI <Grow> replacement was a no-op: growIn flipped in a pre-paint layout effect (collapsed frame never painted) and scale sat on Tailwind v4's `scale` property, which transition-[opacity,transform] did not animate. Replace the growIn state machine with a CSS @starting-style entry transition (transition-[opacity,scale] + starting:scale-75 starting:opacity-0); the resting state is scale-100 so static captures stay stable. Drops the useIsomorphicLayoutEffect hack. Verified: Jest, lint, tsc, and a local Happo run (dropdown snapshots byte-identical to the settled baseline -- no new diffs). A TODO notes the @floating-ui/react Popper migration must trigger the entry animation only once positioned. Refs: PF-1994 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * [PF-1994] Import PopperPlacementType from picasso-popper Dropdown redefined the 12-member placement union locally, duplicating the identical type @toptal/picasso-popper already declares. Surface it from the Popper package entry and import it in Dropdown instead of the local copy. The type is byte-identical in the current popper.js Popper and in the @floating-ui/react migration (PR #5001), and #5001 leaves Popper/index.ts untouched, so this rebases cleanly. PopperOptions stays on popper.js for now; it has no native package export until #5001 and is repointed then. Also refresh the Dropdown changeset to match the landed implementation (shared ClickAwayListener, @starting-style open animation, imported PopperPlacementType). Refs: PF-1994 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * [PF-1994] Migrate Dropdown to @base-ui/react + Tailwind Tier 3 component. See PR description for prop-surface diff, import diff, and Happo summary. Refs: PF-1994 [review-iter 2] address review feedback * [PF-1994] Migrate Dropdown to @base-ui/react + Tailwind Tier 3 component. See PR description for prop-surface diff, import diff, and Happo summary. Refs: PF-1994 [cleanup] strip review-aid comments before merge --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
* [PF-1994] Migrate Modal fix shades Instead of showing them conditionally we animate them with opacity * [PF-1994] Migrate Modal update changeset * [PF-1994] Migrate Modal update cypress * [PF-1994] Migrate Modal tweak cypress further * [PF-1994] Migrate Modal tweak cypress
…nd (#5010) * [PF-1994] Migrate picasso-rich-text-editor to @base-ui/react + Tailwind Tier 4 component. See PR description for prop-surface diff, import diff, and Happo summary. Refs: PF-1994 * [PF-1994] Migrate picasso-rich-text-editor to @base-ui/react + Tailwind Tier 4 component. See PR description for prop-surface diff, import diff, and Happo summary. Refs: PF-1994 [review-iter 1] address review feedback * [PF-1994] Migrate picass-rich-text-editor fix tests and use tokens * [PF-1994] Migrate picasso-rich-text-editor Fix unordered list bullet visibility --------- Co-authored-by: Ante Zebic <a.zebic@toptal.com>
* [PF-1994] Migrate FileInput to @base-ui/react + Tailwind Tier 2 component. See PR description for prop-surface diff, import diff, and Happo summary. Refs: PF-1994 * Fix FileInput changeset: patch bump, remove empty changeset file Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Inline styles into components --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
) * [PF-1994] Migrate OutlinedInput to @base-ui/react + Tailwind Tier 3 component. See PR description for prop-surface diff, import diff, and Happo summary. Refs: PF-1994 Fix OutlinedInput infinite-render loop and audit violations - Wrap setControlRef in useCallback([inputRef]) — prevents React from cycling the callback ref on every render, which caused an infinite loop in Happo's production-mode Storybook - Route all remaining InputHTMLAttributes (aria-*, name, id, tabIndex, form, pattern, min, max, step, accept, multiple, list, etc.) to the control element via nativeInputAttrs spread instead of landing them on the outline <div> where they silently did nothing - Change InputBaseComponentProps index signature from `any` to `unknown` (ESLint @typescript-eslint/no-explicit-any violation) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> [PF-1994] Migrate OutlinedInput to @base-ui/react + Tailwind Tier 3 component. See PR description for prop-surface diff, import diff, and Happo summary. Refs: PF-1994 * Address PR review comments * Simplify handleRootClick * Update snapshots after OutlinedInput migration * Update DateSelect snapshots after OutlinedInput migration
* [PF-1994] Migrate Accordion to @base-ui/react + Tailwind Tier 3 component. See PR description for prop-surface diff, import diff, and Happo summary. Refs: PF-1994 * [PF-1994] Migrate Accordion to @base-ui/react + Tailwind Tier 3 component. See PR description for prop-surface diff, import diff, and Happo summary. Refs: PF-1994 * [PF-1994] Migrate Accordion to @base-ui/react + Tailwind Tier 3 component. See PR description for prop-surface diff, import diff, and Happo summary. Refs: PF-1994 [review-iter 1] address review feedback * [PF-1994] Migrate Accordion to @base-ui/react + Tailwind Tier 3 component. See PR description for prop-surface diff, import diff, and Happo summary. Fix collapsed-panel width: Base UI sets the native `hidden` attribute (display:none) on the collapsed panel, dropping its content out of layout and letting a flex-item Accordion shrink to its summary width. Keep the panel in layout while hidden ([&[hidden]]:block/h-0/invisible). Fix disabled arrow color: drop `disabled` on the expand-icon ButtonAction so the arrow stays full-color (graphite-700) like master instead of the opacity-[.48] dimming; the Accordion is still disabled via Root/Item. Refs: PF-1994 * [PF-1994] Migrate Accordion Fix disabled state for dependent components * [PF-1994] Migrate Accordion Fix failing lint from Page package * [PF-1994] Migrate Accordion to @base-ui/react + Tailwind Tier 3 component. See PR description for prop-surface diff, import diff, and Happo summary. Refs: PF-1994 [review-iter 2] address review feedback * [PF-1994] Migrate Accordion remove unused style file * [PF-1994] Migrate Accordion fix transitionProps timeout * [PF-1994] Migrate Accordion Tweak transitionProps * [PF-1994] Migrate Accordion to @base-ui/react + Tailwind Tier 3 component. See PR description for prop-surface diff, import diff, and Happo summary. Refs: PF-1994 [cleanup] strip review-aid comments before merge * [PF-1994] Migrate Accordion to @base-ui/react + Tailwind Tier 3 component. See PR description for prop-surface diff, import diff, and Happo summary. Refs: PF-1994 [review-iter 2] address review feedback * [PF-1994] Migrate Accordion to @base-ui/react + Tailwind Tier 3 component. See PR description for prop-surface diff, import diff, and Happo summary. Refs: PF-1994 [cleanup] strip review-aid comments before merge --------- Co-authored-by: Vedran Ivanac <vedran.ivanac@toptal.com>
042ade3 to
30547b5
Compare
- Fix all template literal URLs (replaced ${FILE_KEY} with inlined key)
- Fix wrong node IDs pointing to variant instances instead of component sets:
Modal, Notification, Note, Timeline, Loader, Tooltip, OverviewBlock
- Fix wrong node IDs pointing to design frames instead of components:
Table (-> Table Cell), Switch (-> Switches), Stepper, PageHead, List (-> List Item)
- Fix invalid Figma property references: HelpBox Color, Tooltip Content,
EmptyState Title, QueryBuilder Loading, Input Show Error, Section/EmptyState
unsupported expression patterns
- All 95 Code Connect files now pass validation (npx figma connect publish --dry-run)
4ab6f6f to
ea4d5e1
Compare
picasso-tailwind-merge source does not import from picasso-utils. The stale dep + tsconfig reference created a false edge in the Nx task graph that caused a circular dependency, which in turn caused Nx to skip building picasso-tailwind-merge on a cold CI cache. Packages that reference picasso-tailwind-merge in their tsconfig (e.g. Typography) then failed because tsc -b could not find the tailwind-merge artifacts. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
📖 Storybook Preview 🚀 Your Storybook preview is ready: View Storybook 📍 Preview URL: This preview is updated automatically when you push changes to this PR. |
|
📖 Storybook Preview 🚀 Your Storybook preview is ready: View Storybook 📍 Preview URL: This preview is updated automatically when you push changes to this PR. |
ef610dd to
de97766
Compare
[PF-2005](https://toptal-core.atlassian.net/browse/PF-2005?search_id=a20599ed-15c9-4f4e-bc7c-c62e5cce743d)
Description
Creating a Code Connect config for 10 Picasso components
How to test
Development checks
picasso-tailwind-mergerequires major update (check itsREADME.md)propsin component with documentationexamplesfor componentBreaking change
Alpha packages
Manually trigger the publish.yml workflow to publish alpha packages. Specify pull request number as a parameter (only digits, e.g.
123).PR Review Guidelines
When to approve? ✅
You are OK with merging this PR and
nit:to your comment. (ex.nit: I'd rename this variable from makeCircle to getCircle)When to request changes? ❌
You are not OK with merging this PR because
When to comment (neither ✅ nor ❌)
You want your comments to be addressed before merging this PR in cases like:
How to handle the comments?