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
🔥feat: new component Flex #44362
Merged
Merged
🔥feat: new component Flex #44362
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Run & review this pull request in StackBlitz Codeflow. |
size-limit report 📦
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
afc163
reviewed
Aug 23, 2023
MadCcc
reviewed
Aug 23, 2023
crazyair
reviewed
Aug 23, 2023
crazyair
reviewed
Aug 23, 2023
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## feature #44362 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 683 686 +3
Lines 11582 11647 +65
Branches 3116 3123 +7
=========================================
+ Hits 11582 11647 +65
☔ View full report in Codecov by Sentry. |
afc163
reviewed
Aug 25, 2023
abenhamdine
reviewed
Aug 25, 2023
kiner-tang
reviewed
Sep 14, 2023
kiner-tang
approved these changes
Sep 14, 2023
done~ |
done~ |
done~ |
zombieJ
reviewed
Sep 14, 2023
zombieJ
reviewed
Sep 14, 2023
zombieJ
reviewed
Sep 14, 2023
zombieJ
reviewed
Sep 14, 2023
zombieJ
reviewed
Sep 14, 2023
crazyair
reviewed
Sep 14, 2023
crazyair
reviewed
Sep 14, 2023
crazyair
reviewed
Sep 14, 2023
zombieJ
approved these changes
Sep 14, 2023
crazyair
approved these changes
Sep 14, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
📝 Changelog
☑️ Self-Check before Merge
🚀 Summary
🤖 Generated by Copilot at ff95b08
This pull request introduces a new Flex component that provides a flexible layout system based on CSS flexbox and supports the antd theme system. It adds the component's implementation, types, styles, class names, and documentation files to the
./components/flex
module and exports them from the./components/index.ts
file. It also adds the component's design tokens to the./components/theme/interface/components.ts
file. It includes demo code and markdown files for both Chinese and English languages to showcase the component's features and API.🔍 Walkthrough
🤖 Generated by Copilot at ff95b08
FlexProps
interface that specifies the types of the props for the component (link)createFlexClassNames
function that generates class names for the component based on the props (link)createContainer
function that creates a container element based on thecomponent
prop (link)useStyle
hook that generates the CSS rules for the component based on the theme tokens (link)ComponentToken
andFlexToken
interfaces that specify the component-specific and custom tokens for the component (link)genFlexStyle
function that returns an object with the CSS rules for the component (link)ConfigContext
,classnames
, andwrapSSR
utilities to render the component with the appropriate class names, style props, and ref (link)./components/flex/demo/basic.tsx
(link)./components/flex/demo/basic.md
(link)./components/flex/index.zh-CN.md
and./components/flex/index.en-US.md
(link, link)<code>
and<ComponentTokenTable>
tags to reference the demo code and render the component's design tokens (link, link)Flex
key and value to theComponentTokenMap
interface in./components/theme/interface/components.ts
to support the theme system of antd (link)ComponentToken
type from the./components/flex/style
module (link, link)