Major Changes
-
#2103
bb2c98aa6Thanks @zchenwei! - BREAKING CHANGE: removeShareTextexport -
#2082
e79f41839Thanks @reesscot! - 🚨BREAKING CHANGE🚨: Built-in icons removedWe've removed the built-in icons (Icon360, IconSave, etc) from the
@aws-amplify/ui-reactpackage. This change was made for a few reasons:- There are many other React icon libraries that are compatible with Amplify UI components
- Removing the icons reduces the overall package size by about 74%.
- While in most cases the icons are tree-shaken out of the final app bundle, by removing the icons we ensure smaller bundle sizes for all users.
We are not removing the
<Icon>component, which allows customers to easily add SVG icons using thepathDataprop. A limited set of the icons have been left for internal only use in Amplify UI primitives.
Minor Changes
-
#2054
5eedbbed4Thanks @zchenwei! - feat: adding colors theme key support in style propsExample code
import { View } from '@aws-amplify/ui-react'; export const Demo = () => { return <View backgroundColor="pink.10" color="red.40" />; };
-
#2112
d458f3639Thanks @dbanksdesign! - Allowpaddingandmarginto accept theme keys.
Also addingpaddingInline,paddingBlock,marginInline, andmarginBlockstyle props.<View padding="large" /> <View paddingInline="xl" />
-
#2077
736cfe7cbThanks @zchenwei! - feat(style): adding theme key support on more style props(font-family,line-height,opacity,box-shadowandtransform) -
#2070
28bf92ddbThanks @zchenwei! - feat: adding theme key(radii,space,fontSizes, andfontWeights) support for more style props
Patch Changes
-
#2062
d7dbdb1ebThanks @calebpollman! - chore(ui-react): lint components/Geo directory -
#2102
a168acdc6Thanks @dbanksdesign! - fix: nested theme providers by removing menu's portal.
Menu primitive no longer renders in a React Portal which means it properly gets the theme from the nearest ThemeProvider.
Removing the document element modifications in the ThemeProvider because it is no longer needed. Now the ThemeProvider is much cleaner! -
#2060
6800bf6c3Thanks @calebpollman! - chore(ui-react): lint hooks directory -
#2061
ff34a6b9cThanks @reesscot! - fix: build-time error messageCannot find module "mapbox-gl"by pinning mapbox-gl to v1.13.2 -
#2067
c447a53b0Thanks @zchenwei! - fix(docs): fix type error -
#2063
f01bf291fThanks @calebpollman! - chore(ui-react): lint components/ThemeProvider directory -
Updated dependencies [
5eedbbed4,e37b666d9,ef790e5fd,540b4ce97,736cfe7cb,d8085741b,f6ee1355c,a168acdc6,5f3d3a264,28bf92ddb]:- @aws-amplify/[email protected]