v2.2.0
#604
Replies: 2 comments
-
This is amazing 🚀 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Awesome! Thank a lot for your great work! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Improvements & Features
Scaleable
Scaleable is one of the most exciting features of this release, giving Geist a great deal of freedom and imagination, and EVERY COMPONENT fully supports the Scaleable feature.
We removed all
size
props, so that each component no longer needs to be manually scaled, but instead thescale
props control the scaling function:Developers are free to set the size of the component, and if necessary, you can specify a space in the component to be scaled:
You can choose either a fixed CSS value or a scaling factor, and each component supports all scaleable props.
Also, you can also use a more streamlined alias attribute:
💡 Learn more in the Scaleable documentation
More friendly type support
1. Shorter paths
We've noticed that many developers need to import component types to use, excessively long paths and unnecessary declarations should be omitted. The component types will now be exported by default under the root namespace:
2. Alias of type
The types exported from the component will now be shorter and easier to recognize:
3. Easier identification of component names
We also compile an extra copy of the
types
in the exportedesm
package, so that when your project supportsesm
mode, the type checking will be smarter and the hints will be better than before.New components
useKeyboard
. feat: useKeyboard hooks #541Rating
component. feat(rating): a new component rating indicator #543Drawer
component. feat(drawer): create component #575 Drawer #501Other optimizations
className
androwClassName
toTable
for overriding styles. refactor(table): redesign interfaces to improve the experience in TypeScript #569Table
component now fully supports TypeScript type derivation.operation
property of the Table data has been removed and therender
property onTableColumn
.AutoComplete
. feat(auto-complete): add props for popup container #558 feat(auto-complete): getPopupContainer prop #534forwardRef
forAutoComplete
component. feat(auto-complete): add forwardRef for input element #542displayName
) have been added for each componentPatches
AutoComplete
fix(auto-complete): hide shadow when no content #547AutoComplete
fix(auto-complete): fix size of loading icon #546styled-jsx
to the latest version to support React 17. chore(deps): update styled-jsx to ^3.3.1 #520Migration &Breaking changes
If you have any questions about the migration and the new version, please let us know by leaving a comment in the Discussions.
scale
instead ofsize
.Row
andCol
components, this is a legacy component of the old layout system and it is recommended to useGrid
instead of it.Fieldset.Footer.Actions
andFieldset.Footer.Status
components, they don't really do anything, if your style has changed, just add some flex styles.disableAutoResize
andscale
properties of componentImage
, now the Scaleable function can work instead of it.x
andy
of theSpacer
component have been changed tow
andh
. (Scaleable system props)Credits
Thanks to @jorekai @Bowen7 @Gounlaf @Deep-Codes
This discussion was created from the release v2.2.0.
Beta Was this translation helpful? Give feedback.
All reactions