Open Jarvis1010 opened 11 months ago
There is a plan to make some breaking changes in the next version of the library. These changes are necessary to improve the library and make it more consistent.
The breaking changes are as follows:
MasonryGrid
Padbox
AppBoundry
useForwardedRef
useResizeObserver
useContainerQuery
useStatefulRef
register-resize-callback
center-children
prop from the center components and recommend that they use the Stack component insteadcolumns
prop from the columns components and recommend that they use the colCount
prop insteadgutter
prop from applicable components and recommend that they use the gap
prop insteadnoStretchColumns
prop from the ColumnDrop
component and recommend that they use the variant:centered
prop instead
stretchContent
prop from the Cover
component and recommend that they use the variant:stretch-content
prop insteadstretch-content
prop from the cover componentscenter-children
prop from the center componentscolumns
prop from the columns componentsgutter
prop from applicable components--min-item-width
instead of --minItemWidth
Inline
and InlineCluster
components to center
instead of start
100%
instead of specific widths/heightsnoStretchColumns
prop from the ColumnDrop
componentdata-bedrock-
css selectors in favor of data-br-
css selectorstop
and bottom
props for slots and will instead export a component for the content that needs to be vertically centeredNote: The breaking changes will be released in a major version bump, so you will need to update your code to use the new version of the library. Also those items marked with a checkmark (deprecation items) have already been implemented and are available in the latest version of the library.
The following are some of the non-breaking changes that are planned for the next version of the library. The items marked with a checkmark have already been implemented and are available in the latest version of the library.
variant:masonry
to grid in both CSS and react/solidgap
propcolCount
propvariant:centered
prop for the ColumnDrop
component to replace the noStretchColumns
propvariant:stretch-content
prop for the Cover
component to replace the stretchContent
propdata-br-grid
or data-br-stack
instead of data-bedrock-grid
or data-bedrock-stack
data-br-grid="minItemWidth:sizeContent3"
Stale issue message
Stale issue message
Stale issue message
Removals
grid-template-rows: masonry;
masonry-auto-flow: next ;
Changes
gutter
togap
columns
prop tocolCount
noStretchColumns:boolean
to something like columnType: 'stretch' | 'auto'top
andbottom
props and instead use aCoverCentered
component, much like how the underlying CSS worksReset update
image reset: