-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Component System: Add Grid Component #28531
Conversation
Size Change: -474 B (0%) Total Size: 1.37 MB
ℹ️ View Unchanged
|
import { getAlignmentProps } from './grid-utils'; | ||
|
||
/** | ||
* @param {import('@wp-g2/create-styles').ViewOwnProps<import('./types').Props, 'div'>} props |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like we're missing the types.ts
file that goes along with Grid
. We should move that over as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oo! Thanks for catching this.
I'm unsure how to handle the import
of the types.js
file 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should just be moving it over to the repository in the same directory, just like it lives in G2 itself. Let me know if that doesn't make sense and we can discuss further.
Thanks for the review @saramarcondes + @mtias ! Merging this one :) |
This update adds a new Grid component for the new Component System.
This is a brand new layout primitive component.
@wordpress/components
previously didn't have aGrid
component, so we didn't need to "adapt" it.Note: I adjusted the exports for the new
View
component.Checklist: