The variable name was inconsistent and caused transformOrigin to not properly reference
the arrow position for animations.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
* fix(button): add theme-aware preset color hover/active tokens
Add ${colorKey}Hover and ${colorKey}Active tokens that swap values based on dark/light mode for improved contrast and user experience.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix: add preset color hover/active tokens for consistent button interaction
- Add xxxHover and xxxActive tokens for preset colors in genColorMapToken
- Override these tokens in dark mode to swap hover/active values
- Update ButtonToken type to include PresetColorHoverActiveMap
- Update button variant styles to use new hover/active tokens
- Fix#56656: button hover/active state inconsistency in dark mode
* test: add @csstools to compileModules
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* test: support .mjs files in Jest configuration
- Updated .jest.js transform pattern to include .mjs files
- Simplified .jest.node.js transform patterns
- Added jest-mjs-transformer.js for babel-jest mjs handling
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* test: remove unused jest-mjs-transformer.js
- Removed jest-mjs-transformer.js as it's no longer used
- .mjs files are now handled by the updated transform patterns in Jest configs
* test: add .mjs support to .jest.image.js
- Updated .jest.image.js transform pattern to include .mjs files
- fixes image test failures due to ES module parsing errors
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
* test(modal): add mouseDown event before click in test
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* test(modal): add mouseDown event before click in confirm test
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* test(modal): improve confirm test event firing and timer management
- Add mouseDown event before click for mask interaction
- Use fireEvent consistently instead of direct click()
- Properly setup and cleanup fake timers
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
* feat: Add global maskClosable configuration capability to Modal and Drawer
* Update components/modal/__tests__/Modal.test.tsx
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: luozz <15761695277@163.com>
* feat: Add mask.closable capability to Drawer and Modal
* fix: Preserve the original maskClosable capabilities of ConfigDialog
* feat: Added mask handling for Modal Hooks
* rerun
* fix
* docs: update version
* fix: improve mask config merging logic
- Move default values to the beginning of mergedConfig to ensure user props override them
- Validate maskClosable type with double negation
- Add maskClosable to mergedProps in Drawer and Modal
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* refactor: use normalizeMaskConfig in ConfirmDialog
- Export normalizeMaskConfig for external use
- Simplify mask config logic in ConfirmDialog using shared utility
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* chore: adjust
* fix: simplify closable default value assignment
removed: mergedConfig.closable = mergedConfig.closable ?? true;
added: closable: maskConfig.closable ?? maskClosable ?? contextMaskConfig.closable ?? true
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Signed-off-by: luozz <15761695277@163.com>
Co-authored-by: 罗忠泽 <victor.luo@spotterio.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: thinkasany <480968828@qq.com>
Co-authored-by: 二货机器人 <smith3816@gmail.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
* docs(replace): replace sandpack demos with code blocks in customize-theme.en-US.md
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* docs: update demo paths in theme customization docs
* docs: add first example demo and update documentation
* docs(demo): add Radio component to disable-motion example
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix(demo): initialize timerRef with null for proper typing
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
* fix(a11y): add title element to search bar icon for screen readers
* Revert "fix(a10y): add title element to search bar icon for screen readers"
This reverts commit 9caf0bbc4e.
* fix: the svg elements has no accessible name
---------
Co-authored-by: thinkasany <480968828@qq.com>