@shopify/polaris@12.0.0-beta.1
版本发布时间: 2023-09-27 21:37:51
Shopify/polaris最新发布版本:@shopify/polaris@13.9.0(2024-08-01 22:59:35)
Major Changes
-
#10122
43b42aefed
Thanks @aveline! - Removedshape
prop onAvatar
component -
#10270
b9bcaef41
Thanks @kyledurand! - Changedspacing
prop togap
onList
andDescriptionList
-
#9997
b59fc9e27
Thanks @yurm04! - [ButtonGroup] Removedsegmented
boolean prop and replaced withvariant
. Replacedspacing
prop withgap
-
#10100
4c7b2d4858
Thanks @kyledurand! - UpdatedborderRadius
props to match web spec -
#10051
69edd97ceb
Thanks @aveline! - Renamedcolor
prop totone
forProgressBar
component -
#10182
e814c0ee1a
Thanks @kyledurand! - Removed connectedDislosure prop on button -
#10283
42ee9f407
Thanks @sam-b-rose! - Renamedsize
prop values for the Avatar component. See the following table for the new prop mappings.Before After size="extraSmall"
size="xs"
size="small"
size="sm"
size="medium"
size="md"
size="large"
size="lg"
size="xl-experimental"
size="xl"
size="2xl-experimental"
size="xl"
-
#10232
eb2c2035c
Thanks @laurkim! - Removeddivider
prop fromPage
component -
#10271
1125087b5
Thanks @kyledurand! - Removed deprecated additionalNavigation prop on Page Header -
#10164
af9f264b9a
Thanks @aveline! - Renameddestructive
prop totone
forButton
component -
#10261
abeef7ad0
Thanks @kyledurand! - Replacedsmall
,large
, andfullScreen
props withsize
prop -
#10206
dad09bde9
Thanks @kyledurand! - Changedstatus
prop onBanner
totone
-
#10220
2b0cdb2fbf
Thanks @kyledurand! - Changedcolor
prop onIcon
totone
-
#10036
359614cf83
Thanks @kyledurand! - Replacedborderless
prop withvariant
on TextFieldMigration:
npx @shopify/polaris-migrator react-rename-component-prop <path> --componentName="TextField" --from="borderless" --to="variant" --newValue="borderless"
-
#10635
340e36e7d
Thanks @laurkim! - RemovedpolarisSummerEditions2023
feature flag from AppProvider context -
#10090
4caed28a77
Thanks @aveline! - Consolidated booleanButton
props intovariant
prop -
#10041
8f927f7622
Thanks @kyledurand! - Replaced boolean props:secondary
,fullWidth
,oneHalf
,oneThird
on Layout.Section withvariant
-
#10266
22a51eae2
Thanks @kyledurand! - Renamedcolor
prop on Text totone
-
#9993
66f5c8df3e
Thanks @gwyneplaine! - Removed Summer Editions experimental styles and code for the following components:AppProvider
,Avatar
,AccountConnection
,ActionList
,ActionMenu
,Autocomplete
,Badge
,Banner
,Breadcrumbs
,BulkActions
,Button
,ButtonGroup
,CalloutCard
,Card
,CheckableButton
,Checkbox
,Choice
,Connected
,DataTable
,DatePicker
,DropZone
,EmptyState
,Filters
,FormLayout
,Frame
,FullscreenBar
,IndexFilters
,IndexTable
,InlineError
,KeyboardKey
,Labelled
,Layout
,LegacyCard
,LegacyFilters
,LegacyTabs
,Link
,List
,Listbox
,MediaCard
,Modal
,Navigation
,OptionList
,Page
,PageActions
,Pagination
,Popover
,ProgressBar
,RadioButton
,ResourceItem
,ResourceList
,Select
,SettingAction
,ShadowBevel
,SkeletonPage
,SkeletonThumbnail
,Spinner
,Tabs
,Tag
,Text
,TextField
,Thumbnail
,TooltipOverlay
,TopBar
, andVideoThumbnail
-
#10232
eb2c2035c
Thanks @laurkim! - RemovedoptionRole
prop fromOptionList
component
Minor Changes
-
#10238
b17d23d69
Thanks @sam-b-rose! - Add a search field to filter ActionList that have more than 10 items
Patch Changes
-
#10228
e18ca907e
Thanks @gwyneplaine! -Filters
Remove unused disabled states inFilterPill
-
#10268
dbe3d9ece
Thanks @laurkim! - Fixed broken focus ring styles onResourceItem
component -
#10238
b17d23d69
Thanks @sam-b-rose! - Ensure Avatar has no background color if an source prop is passed in to allow for transparent images -
#10230
a573e55d0
Thanks @gwyneplaine! -IndexFilter
remove customFilterButton
in favor of directly invoking the PolarisButton
component. -
Updated dependencies [
86d4040c0
]:- @shopify/polaris-tokens@7.13.0-beta.0