1076 Commits

Author SHA1 Message Date
thinkasany
353fd98d99 chore: sync master into feature 2026-02-08 15:45:42 +08:00
thinkasany
7cb9ca9336 chore: bump @antfu/eslint-config 7.3.0 (#56895) 2026-02-07 22:53:24 +08:00
二货机器人
ce4c939910 test(modal): add mouseDown event before click to fix mask click tests 2026-02-06 16:56:00 +08:00
thinkasany
038759b7ee chore: sync master into feature 2026-02-06 14:19:29 +08:00
二货爱吃白萝卜
99eb877828 test(modal): add mouseDown event before click in test (#56874)
* 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>
2026-02-05 22:13:14 +08:00
luozz
c7b3b38cbd feat: Add global maskClosable configuration capability to Modal and Drawer (#56739)
* 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>
2026-02-05 16:23:18 +08:00
thinkasany
ee4220b676 chore: sync master into feature 2026-02-04 20:45:32 +08:00
lijianan
1a789f1e5b refactor(cssinjs): simplify transition style generation (#56826)
* chore: code optimization

* update
2026-02-04 14:54:08 +08:00
aojunhao123
8743710da7 refactor: disable mask blur effect by default (#56781)
* feat: disable mask blur effect by default

Change the blur condition from `blur !== false` to `blur === true`,
making the blur effect opt-in rather than opt-out.

* Update components/_util/hooks/useMergedMask.ts

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: aojunhao123 <1844749591@qq.com>

* update snapshot

* update snapshot

* Update components/modal/demo/mask.tsx

Signed-off-by: thinkasany <480968828@qq.com>

---------

Signed-off-by: aojunhao123 <1844749591@qq.com>
Signed-off-by: thinkasany <480968828@qq.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: thinkasany <480968828@qq.com>
2026-01-28 20:43:12 +08:00
thinkasany
9431db4dc1 chore: sync master into feature 2026-01-28 20:28:03 +08:00
高艳兵
166e9c88e5 fix(Typography): lower link selector specificity (#56759)
* fix(Typography): lower link selector specificity and add danger debug demo

* fix(Typography): scope link styles and raise type color priority

* chore: update snap

* chore: update snap

* fix(Typography): scope link styles and ensure type colors win

---------

Co-authored-by: 遇见同学 <1875694521@qq.com>
2026-01-28 16:01:51 +08:00
高艳兵
1a15e8485e feat(llms): add raw markdown output support (#56561)
* refactor(theme): split monolithic dumi theme plugin into modular plugins

- extract tech stack logic into dedicated plugin
- extract changelog route extensions into routes plugin
- extract build-time asset processing (emotion css, entry injection) into build-assets plugin

No behavior change intended.

* feat(theme): add production raw markdown output for demos

* feat(theme): add ComponentTokenTable to markdown table conversion support

* feat: add semantic.md generation plugin for components

* feat: replace Semantic DOM code tags with links to semantic.md files

* docs(table): add content semantic (#56592)

* fix: add error logging in raw-md plugin catch block

* feat: update semantic-md plugin

* chore: trigger CI

* feat: add configurable options for raw-md plugin including enablePickLocaleBlock

* refactor: adjust codeAppend function signature in raw-md plugin

* feat: Optimize heading hierarchy

* feat: remove debug code

* fix: component name

* feat: add llms plugin

* feat: remove llms script

* fix:  high priority

* feat: update semantic-md plugin read locale

* feat: add md copy

* refactor(dumi): rework llms open/copy menu

* refactor(dumi): simplify llms menu items config and labels

* refactor(dumi): simplify llms menu item mapping

* refactor: simplify ComponentMeta LLMs link

* chore: refine review-related md handling and document semantic snapshot dependency

---------

Co-authored-by: thinkasany <480968828@qq.com>
Co-authored-by: 遇见同学 <1875694521@qq.com>
2026-01-22 16:15:02 +08:00
二货爱吃白萝卜
04dadedeb3 feature: Home page refactor and enhance ConfigProvider (#56573)
* chore: init

* chore: home color

* chore: offset

* chore: opacity bg

* chore: opacity bg

* chore: opacity bg

* chore: bg trans

* chore: trans position

* chore: ui

* chore: of it

* docs: adjust block

* chore: default theme

* chore: default themes

* chore: styles

* chore: app

* chore: shared props

* chore: of it

* chore: of it

* chore: of it

* chore: of it

* chore: current color

* chore: of it

* chore: adjust color

* chore: build with layer

* chore: comment

* chore: build in

* chore: of it

* chore: init

* chore: of it

* chore: of it

* chore: bootstrap

* chore: bootstrap

* chore: bootstrap

* chore: init

* chore: glass theme

* chore: adjust color

* chore: a little shadow

* chore: fix lint

* chore: prefetch image

* chore: default theme follow site

* chore: init cartoon

* chore: cartoon ui

* chore: init

* chore: adjust slider style

* chore: fix shadow

* chore: adjust order

* chore: adjust style

* chore: adjust style

* chore: fix name

---------

Co-authored-by: lijianan <574980606@qq.com>
Co-authored-by: thinkasany <480968828@qq.com>
2026-01-21 17:42:38 +08:00
高艳兵
c5e5ac7c3f feat: add semantic snap (#56600)
* feat: add semantic.md generation plugin for components

* refactor: extract locales from SelectSemanticTemplate to component props

* fix: remove unuse locales

* feat: multipleProps add defaultValue

* feat: update select snap

* feat: update table snap

* feat: tour add snap

* feat: delete semantic-md plugin

* feat: add sematic snap

* refactor: replace hardcoded button clicks with configurable postRenderFn in semantic demo test

* revert: locales

* fix: maxTagCount responsive

* fix: test  maxTagCount set 1

* feat: add test:semantic script

* fix: ci add collectCoverageFrom

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: thinkasany <480968828@qq.com>
2026-01-19 22:10:33 +08:00
遇见同学
3c9bb681e7 docs: improve performance replace createStyles with createStaticStyles (#56605)
* perf: use createStaticStyles

* chore: update snap

* chore: adjust

* chore: snap
2026-01-14 17:58:47 +08:00
lijianan
364bcc74d1 type: export components SemanticName type (#56494)
* types: export components SemanticName type

* update

* update

* update

* update

* update
2026-01-08 09:25:17 +08:00
二货爱吃白萝卜
d7aac85735 chore: add deprecated warning for Modal (#56507)
* test: add test case

* chore: fix lint
2026-01-06 15:12:39 +08:00
二货爱吃白萝卜
0cdfaf578a feat: Modal support focusable (#56500)
* feat: Modal support focusable config

* chore: doc & test

* chore: adjust logic

* test: add test case

* chore: update docs
2026-01-06 14:34:30 +08:00
thinkasany
8af72472fa chore: sync master into feature 2026-01-04 13:15:00 +08:00
aojunhao123
7e2f8ce1f0 refactor: esc handling logic and fix esc can't close image preview in modal (#56386)
* fix: optimize ESC key handling in nested portal scenarios

* fix confirm-modal tests

* remove keyCode in test

* chore: adjust
2026-01-04 11:35:13 +08:00
叶枫
5471db8383 type: fix modal type (#56441)
* fix: fix modal type

* fix: add type

* feat: add warn deprecated

---------

Co-authored-by: 遇见同学 <1875694521@qq.com>
2025-12-31 17:03:15 +08:00
lijianan
886a1d19cd refactor(types): derive SemanticName from semantic maps (#56391) 2025-12-27 20:21:30 +08:00
github-actions[bot]
60cd020a35 chore: auto merge branches (#56380)
chore: merge master into feature
2025-12-27 09:14:24 +00:00
thinkasany
9108b85cf7 chore: biome lint format (#56384)
Co-authored-by: 遇见同学 <1875694521@qq.com>
2025-12-27 16:32:17 +08:00
lijianan
c3f41c19ba refactor(types): replace Record with explicit object for better DX (#56298) 2025-12-22 10:47:06 +08:00
二货爱吃白萝卜
7a919eb971 refactor: simplify dialog dom & adjust focus logic (#56142) 2025-12-10 10:34:20 +08:00
yoyo837
58e3f85dcc Merge branch 'master' into feature-merge-master 2025-12-03 17:31:33 +08:00
Guo Yunhe
408afb0626 refactor: rename button files (#56053)
* refactor: rename button files

* refactor: update import paths for Button component in test files

* refactor: update import paths for Button component across multiple files
2025-12-03 16:59:04 +08:00
lijianan
39470af064 docs: rm duplicate author (#56043)
Co-authored-by: 遇见同学 <1875694521@qq.com>
2025-12-03 09:13:54 +08:00
ug
1d9d977936 fix(token): The colorBgMask does not take effect. (#56031)
Co-authored-by: liuqiang <qiang.liu@xinjifamily.com>
2025-12-02 16:56:21 +08:00
ice
594524b4af docs: update markdown files to add section IDs for examples and FAQs across multiple components (#55882) 2025-11-25 12:16:35 +08:00
二货机器人
1ab1da6154 chore: next merge feature 2025-11-13 15:41:01 +08:00
lijianan
2827a68ff8 test: update test case (#55546)
* test: update test

* update

* update

* update

* update

* update
2025-11-01 11:41:14 +08:00
lijianan
6fc67a0fdd Merge branch feature into next-merge-feature 2025-10-31 16:18:08 +08:00
lijianan
d33d8cf959 test: simplify style test case again (#55539)
* test: simplify test case

* update

* update

* update

* test: simplify style test case

* update

* update

* update

* update

* test: simplify style test case again

* update

* update

* update color to rgb
2025-10-31 15:19:47 +08:00
lijianan
352f6c6c78 test: simplify style test case (#55538)
* test: simplify test case

* update

* update

* update

* test: simplify style test case

* update

* update

* update

* update
2025-10-31 12:46:16 +08:00
lijianan
ec658c9842 test: simplify test case (#55537)
* test: simplify test case

* update

* update

* update
2025-10-31 11:42:54 +08:00
thinkasany
fba4c3d565 chore: sync master into next 2025-10-27 22:03:52 +08:00
ug
27a9c8a57c fix(Modal):Watermark crashes when wrapping Modal with modalRender (#55435)
Co-authored-by: liuqiang <qiang.liu@xinjifamily.com>
Co-authored-by: 遇见同学 <1875694521@qq.com>
2025-10-27 10:03:53 +08:00
lijianan
6cc19c10fc chore: merge feature into next 2025-10-26 18:20:12 +08:00
lijianan
41b5dce953 perf: try to reduce bundle size (#55478)
* refactor: reuse useForceUpdate hook

* update

* perf: try to reduce bundle size

* update
2025-10-26 17:18:36 +08:00
github-actions[bot]
0c14baa8e1 chore: auto merge branches (#55387)
chore: merge feature into next
2025-10-21 03:11:17 +00:00
lijianan
f2ecabc894 chore: merge feature into next 2025-10-21 10:50:45 +08:00
遇见同学
74d2712935 test: improve single test structure (#55383) 2025-10-20 18:48:47 +08:00
lijianan
af1a78a83f refactor: avoid unnecessary re-renders by explicitly listing deps (#55376) 2025-10-20 08:37:24 +08:00
lijianan
20f7653976 chore: merge feature into next 2025-10-19 23:58:00 +08:00
lijianan
072c9fa707 type: update any type to ConfirmDialogProps (#55371) 2025-10-19 23:21:17 +08:00
lijianan
a0a32ff450 fix: add missing getConfirmFunc dependency (#55370)
* fix: add missing getConfirmFunc dependency

* fix: add missing getConfirmFunc dependency
2025-10-19 22:53:07 +08:00
thinkasany
25001647a7 Revert "refactor(modal): use modalRef replace createRef (#55368)" (#55369)
This reverts commit 3b47ac3630.
2025-10-19 20:07:41 +08:00
thinkasany
3b47ac3630 refactor(modal): use modalRef replace createRef (#55368) 2025-10-19 16:28:58 +08:00