-
-
Notifications
You must be signed in to change notification settings - Fork 955
feat(useDialog): add support for useDialog #4300
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
Conversation
- Add warning message when useToaster is used without a CustomProvider - Add test case to verify the warning behavior
- Added descriptive text for each example in both Chinese and English - Included notes about useToaster requiring CustomProvider - Improved documentation clarity for Message, Notification, and Toaster components
- Implemented useDialog hook for managing dialog state - Added Dialog and DialogContainer components - Added documentation in both English and Chinese - Added translations for Dialog component in all supported languages - Added unit tests for the new functionality
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## next #4300 +/- ##
==========================================
+ Coverage 94.27% 94.30% +0.02%
==========================================
Files 543 546 +3
Lines 13266 13390 +124
Branches 3954 3985 +31
==========================================
+ Hits 12507 12627 +120
- Misses 691 695 +4
Partials 68 68
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Removed showCancelButton prop from Dialog component and related types - Added internal logic to show cancel button based on dialog type (confirm/prompt) - Updated tests to remove showCancelButton prop usage - Simplified dialog creation in useDialog hook
This pull request introduces a new
useDialog
React Hook and updates documentation across multiple components to improve clarity and usability. The changes include adding 8000 comprehensive documentation foruseDialog
, enhancing existing component documentation, and integrating theDialogContainer
into theCustomProvider
for dialog management.