Commit Graph

339 Commits

Author SHA1 Message Date
二货爱吃白萝卜
96e5dfae2f
docs: add desc (#50967) 2024-09-23 14:47:15 +08:00
renovate[bot]
863f61d908
chore(deps): update dependency eslint to v9 (#50690)
Co-authored-by: afc163 <afc163@gmail.com>
2024-09-19 03:30:19 +08:00
Arvin Xu
51d6a9bf38
chore: Add comments to Token related interfaces (#50392) 2024-08-13 18:18:59 +08:00
renovate[bot]
7fdfb299eb
chore(deps): update dependency @typescript-eslint/parser to v8 (#50228)
* chore(deps): update dependency @typescript-eslint/parser to v8

* Update package.json

Signed-off-by: afc163 <afc163@gmail.com>

* fix eslint errors

---------

Signed-off-by: afc163 <afc163@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
2024-08-04 12:24:35 +08:00
lijianan
f56fee1333
site: update site/demo style (#50107)
* site: update site/demo style

* fix: fix lint
2024-07-27 16:13:25 +08:00
vagusX
38cf5e8a75
docs: unify component export file as index.tsx (#50013)
* docs: unify component export file as index.tsx

* docs: compatible with old anchors

* chore: clean

* test: update snapshot

* fix: window env

---------

Co-authored-by: Peach <scdzwyxst@gmail.com>
2024-07-23 22:22:24 +08:00
afc163
59ad48476b
refactor: add boime lint and fix lint errrors (#49536)
* chore: add boime lint

* fix lint

* use files ignore

* revert change

* ignore clarity.js

* fix some errors

* fix some errors

* fix some errors

* fix some errors

* add yml file

* Update clarity.js

Signed-off-by: afc163 <afc163@gmail.com>

* add npm run lint:biome

* add npm run lint:biome

* fix test case

* fix ts errors

* fix ts errors

* fix lint and add .lintstagedrc

* shorten prop name

* chore: update package.json

* update biome.json

* chore: remove stylelint

* chore: useOptionalChain

* fix lint

* biome format

* prettier all code

* prettier all code

* fix site test

---------

Signed-off-by: afc163 <afc163@gmail.com>
2024-06-22 21:59:12 +08:00
Kazuhiro Kumagai
6ea55a19dc
Remove unnecessary act() calls (#49326)
* refactor(tests): remove unnecessary act() calls

* chore: do npm test -- -u
2024-06-10 10:48:21 +08:00
lijianan
8b1f79c1f5
demo: update demo type { children: React.ReactNode } => React.PropsWithChildren (#48771)
* demo: update demo type React.ReactNode => React.PropsWithChildren

* fix: fix
2024-05-06 12:04:27 +08:00
lijianan
029cb1dff0
test: rm legacy react-dom/test-utils for compatible React-18.3.1 (#48667)
* test: rm legacy react-dom/test-utils for compatible React-18.3.0

* fix: fix

* chore: cls

* chore: update

* fix: fix
2024-04-28 09:52:54 +08:00
lijianan
d1a8376e09
site: fix different font-size between jsx demo and tsx demo (#48448) 2024-04-15 10:27:51 +08:00
叶枫
502dac12aa
docs: format code (#48309)
* docs: fix code

* feat: lint

* feat: prettier

* feat: test

* feat: review

* feat: format html

* feat: format html
2024-04-08 14:04:08 +08:00
叶枫
14a1e6bd51
feat: tsconfig enable strict (#47998)
* feat: tsconfig enable strict

* feat: add no-explicit-any

* feat: strict

* feat: as THEME

* feat: 优化 keys 类型写法

* feat: demo remove any

* feat: as number

* feat: this any

* feat: add eslint

* feat: cascader

* feat: props any

* feat: remove any

* feat: remove any

* feat: any 提示错误

* feat: remove any

* feat: add eslint

* feat: 允许 T = any 存在

* feat: color funciton

* feat: 恢复 lint

* feat: merge master

* feat: as ReactElement

* feat: type
2024-04-01 15:49:45 +08:00
lijianan
87debac578
chore: rename variables merge => merged (#48048) 2024-03-24 10:56:28 +08:00
叶枫
e17cd4ae27
test: keep spaces (#47024)
* feat: snap

* feat: up snap
2024-03-22 20:49:55 +08:00
二货爱吃白萝卜
20561d6f9d
docs: Fix component doc alignment & support import usage (#48004)
* docs: init ref

* docs all support

* docs: fix link show
2024-03-22 14:22:42 +08:00
MadCcc
0652c32830
fix: sibling Tags should have margin (#47736)
* fix: sibling Tag should have margin

* chore: update snapshot

* chore: revert

* chore: link issue

* docs: update demo

* Revert "demo: update Grid、Table、Select demo (#47709)"

This reverts commit c01c1b505b.

* chore: update snapshot

* chore: update demo
2024-03-06 21:51:17 +08:00
lijianan
c01c1b505b
demo: update Grid、Table、Select demo (#47709)
* demo: update demo

* fix: fix test

* feat: table snap

---------

Co-authored-by: 叶枫 <645381995@qq.com>
2024-03-05 17:23:47 +08:00
lijianan
be67895a93
chore: code optimization (#47454) 2024-02-17 19:56:41 +08:00
二货机器人
7d6aed50c0 feat: support flex responsive 2024-01-23 20:43:55 +08:00
二货机器人
8634cdf6a8 chore: add flex css var 2024-01-23 17:23:58 +08:00
MadCcc
2e0942ab26
refactor: separate cssVarCls from hashId (#46424)
* refactor: cssVarCls

* refactor: update

* chore: update

* fix: cascader & tree-select

* fix: ribbon
2023-12-14 14:58:53 +08:00
MadCcc
c4b8c9df93
refactor: genStyleHooks (#46038)
* refactor: genStyleHooks

* chore: update sciprt

* refactor: affix

* refactor: select

* chore: update

* refactor: update

* refactor: update

* refactor: done

* chore: code clean

* chore: code clean

* chore: fix lint

* chore: decrease size limit

* chore: code clean

* chore: code clean

* chore: remove export
2023-11-29 17:23:45 +08:00
lijianan
2954c3f60e
feat: Grid support cssVar (#45855)
* feat: Grid support cssVar

* fix: fix

* fix: fix

---------

Signed-off-by: lijianan <574980606@qq.com>
2023-11-17 16:25:47 +08:00
lijianan
1e0c3b8c58
🔥feat: new component Flex (#44362)
* feat: new component Flex

* feat: new component Flex

* fix: fix

* test: add test case

* fix: fix

* update size-limit

* test: update snap

* fix: fix

* test: update snap

* chore: add use client

* fix: lint

* test: update snap

* fix

* docs: add docs

* fix: fix demo

* clear

* demo: update demo

* update demos

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* test: update snap

* fix: fix

* fix: fix

* demo: update demo

* feat: CP

* fix: use token

* fix: fix

* fix: fix test case

* test: update snap

* Update components/flex/style/index.ts

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: lijianan <574980606@qq.com>

* Update components/flex/demo/align.tsx

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: lijianan <574980606@qq.com>

* demo: update demo

* fix: fix

* docs

* update cover

* fix: fix

* test: update case

* fix: rerun CI

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* demo: update demo

* fix: fix lint

* fix: fix

* fix: fix

* fix: fix

* fix:  fix

* fix: fix test case

* fix: fix

* docs: update docs

* fix: fix

* chore: fix

* chore: fix

* docs: update docs

* docs: update

* fix: fix demo

* type: update type

* add debug demo

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: 栗嘉男 <mac@macdeMacBook-Pro.local>
Co-authored-by: MadCcc <1075746765@qq.com>
2023-09-14 17:04:05 +08:00
MadCcc
114ff39f8c Merge branch 'master' into feature-merge-master 2023-09-05 13:41:06 +08:00
lijianan
6a5e7ded43
refactor: remove Space & Grid IE compatible logic (#44620)
* refactor: remove IE compatible logic

* fix: fix

* fix: fix

* fix: fix
2023-09-05 10:17:56 +08:00
Dunqing
f0c105d262
feat: insert use client automatically at compilations instead of hardcode (#44608)
* feat: remove the hardcode of `use client`

* chore: update `@ant-design/tools`

* test: update

* fix: incorrect dictionary

* chore: update dep

* ci: check use client

* chore: update ci

* fix: should be LIB_DIR

* ci: should only run in dist

* chore: update check tsx files
2023-09-04 19:27:20 +08:00
Amumu
edf907bf11
fix: slider track draggale range height/width error (#44503)
* fix: slider track draggale range height/width error

* chore: style
2023-09-02 00:16:01 +08:00
afc163
3f148d9112 docs: add help text for token customization 2023-08-30 23:02:35 +08:00
二货爱吃白萝卜
7a66d46051
refactor: Form style should always before Grid (#44485)
* fix: use css variable to support dynamic display

* chore: support order

* chore: add ie fallback

* chore: add ie fallback
2023-08-29 15:48:03 +08:00
叶枫
345a3a0624
fix: Form 与 Grid 样式冲突问题 (#44472)
* fix: style

* fix: style

* chore: ref
2023-08-28 22:10:47 +08:00
kiner-tang(文辉)
2f8fa45df3
docs: Add rootClassName in doc (#44061)
* docs: update rootClassName description

* docs: update rootClassName description

* docs: update docs
2023-08-08 18:27:48 +08:00
二货爱吃白萝卜
c583f9a0ad
fix: useLayoutEffect to fix shaking list (#44075) 2023-08-07 16:04:55 +08:00
二货爱吃白萝卜
5d3b45551d
test: snapshot of demo warning message (#43947)
* test: init of test

* test: update snapshot

* test: update snapshot

* chore: adjust size limit

* test: update snapshot

* test: update snapshot

* test: update snapshot

* chore: update snapshot

---------

Co-authored-by: lijianan <574980606@qq.com>
2023-08-02 14:20:13 +08:00
二货爱吃白萝卜
5bf08faeea
refactor: rename qrcode to qr-code (#43607)
* refactor: rename qrcode to qr-code

* test: patch test case

* chore: fix Form missing displayName

* chore: patch displayName

* chore: style path

* chore: fix compile
2023-07-17 23:43:32 +08:00
lijianan
38474628fd
feat: prepend use-client directive for with Next.js App Router (#43573)
* fix: prepend use-client directive for with Next.js App Router

* Update components/affix/index.tsx

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: lijianan <574980606@qq.com>

* Update components/badge/index.tsx

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: lijianan <574980606@qq.com>

* Update components/divider/index.tsx

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: lijianan <574980606@qq.com>

* Update components/cascader/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/list/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/mentions/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/mentions/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/mentions/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/mentions/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/qrcode/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/spin/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/select/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/spin/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/spin/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/steps/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/time-picker/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/transfer/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/tree-select/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: MadCcc <1075746765@qq.com>
2023-07-15 12:57:03 +08:00
MadCcc
7322aa6f5f
Revert "chore: migrate to vitest (#42506)" (#42900)
This reverts commit 6759887c44.
2023-06-07 21:59:21 +08:00
Dunqing
6759887c44
chore: migrate to vitest (#42506)
* chore: migrate to vitest

* chore: update ci

* fix: test correctly

* test: support puppeteer

* chore: update coverage

* chore: update include/exclude

* chore: update config

* test: update incorrect tests

* chore: update script

* chore: update

* fix: should close browser at the ended

* chore: improve

* fix: test cause tsc error

* fix: eslint error

* chore: exclude correctly

* test: update snap and fix some tests

* chore: update test config

* fix: countup.js

* fix: incorrect test

* chore: update reference

* test: update

* fix: countup.js

* fix: timeout

* chore: update site test

* fix: fixed countup version

* chore: remove unsed code

* test: update

* test: update demo timeout

* test: update timeout

* chore: update image test

* chore: update threads

* fix: image/svg+xml test failed

* chore: limits threads

* test: update test coverage include

* chore: remove jest files

* chore: rename jest to vi

* chore: update document

* chore: fix missing @types/jsdom

* chore: update coverage

* chore: update snap

* fix:watermark test cases are incorrect

* feat: update ignore comment

* test: fix test case

* test: reset body scrollTop

* test: clean up

* test: use vi

* test: update snapshot

* test: update snapshot

* test: fix dropdown test failed

* fix: toHaveStyle cause test fail

* test: improve test case

* test: fix

* fix: color failed, refer to https://github.com/jsdom/jsdom/pull/3560

* test: fix

* test: fix

* test: fix circular import

* test: revert

* ci: coverage failed

* test: fix c8 ignore comment

* chore: incorrect config

* chore: fix ignore ci

* test: revert svg+xml

* test: fix realTimers

* feat: rc-trigger should be remove

* test: fix some failed test

* chore: remove unused deps and configure eslint-plugin-vitest

* test: update snap

* chore: remove jest

* test: fix lint error

---------

Co-authored-by: 二货机器人 <smith3816@gmail.com>
Co-authored-by: afc163 <afc163@gmail.com>
2023-06-07 11:54:50 +08:00
二货爱吃白萝卜
f4858ff581
chore: align motion follow popup point (#42225)
* chore: align motion follow popup point

* test: update snapshot
2023-05-08 23:28:13 +08:00
Dunqing
699cec0c91
docs: use uniform naming (#42200) 2023-05-07 17:28:33 +08:00
lijianan
ac5a06027e
revert: "chore: unified import method (#42149)" (#42180)
This reverts commit ea8ed28209.
2023-05-06 15:49:37 +08:00
lijianan
ea8ed28209
chore: unified import method (#42149)
* chore: unified import method

* fix lint
2023-05-05 20:52:44 +08:00
Alexis Sniffer
b27c000d13
fix: Responsive Col don't support 'flex' prop in ColSize (#41962)
Responsive Col don't support 'flex' prop in ColSize #28961
2023-04-25 10:32:56 +08:00
黑雨
cef58664e8
📝doc: add design token table (#41717)
* feat: add token

* 📝doc: update lint

* 📝doc: update doc
2023-04-11 10:25:24 +08:00
JiaQi
bebc05196d
fix(Grid): Row justify setting space-evenly does not work (#41679) 2023-04-06 19:43:32 +08:00
vaakian X
022274d088
type(Grid): enhance autocompletion for Col (#41453)
* fix: better autocompletion

* chore: fix lint
2023-03-26 23:37:46 +08:00
JiaQi
41c4386181
fix(Grid): small screen with offset when switching large screen offset is not overwritten (#41309) 2023-03-19 16:18:27 +08:00
二货爱吃白萝卜
6770b7fb22
test: Use render for demo-extends test (#41242)
* test: update snapshot

* test: use render

* test: fix skip

* test: fix skip
2023-03-15 00:08:31 +08:00
dependabot[bot]
1df1034f20
chore(deps-dev): bump glob from 8.1.0 to 9.2.1 (#41109)
* chore(deps-dev): bump glob from 8.1.0 to 9.2.1

Bumps [glob](https://github.com/isaacs/node-glob) from 8.1.0 to 9.2.1.
- [Release notes](https://github.com/isaacs/node-glob/releases)
- [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/node-glob/compare/v8.1.0...v9.2.1)

---
updated-dependencies:
- dependency-name: glob
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: update api

* fix

* fix

* fix path

* fix path

* update snap

* update snap

* update snap

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: 栗嘉男 <574980606@qq.com>
2023-03-10 11:50:12 +08:00