Skip to content
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

chore: merge master into feature #6698

Closed
wants to merge 65 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
dcfec98
enhance(Tabs): Add experimental prop `autoScroll` (#6497)
zombieJ Dec 22, 2023
d6f94ec
enhance: 优化数字键盘及虚拟输入框无障碍 (#6494)
majiang666 Dec 22, 2023
1e47dfc
chore: bump 5.33.2
zombieJ Dec 22, 2023
955d716
chore: build script should not clean prev bundles
zombieJ Dec 22, 2023
0294ed5
docs: update time 2022 to 2024 (#6505)
liangchaofei Jan 3, 2024
e5e2fc5
feat(Swiper): support virtual scroll (#6504)
zombieJ Jan 3, 2024
55b6cd4
chore: bump 5.33.4
zombieJ Jan 3, 2024
19d5a4b
fix(TextArea): readOnly should be scrollable (#6509)
Jarryxin Jan 4, 2024
b431a18
fix: 修复Radio组件隐藏所有input的问题 (#6492)
day-xue Jan 12, 2024
7a14295
refactor: replace lodash/isEqual with react-fast-compare (#6526)
guoyunhe Jan 15, 2024
71c0465
feat: add th-TH locale (#6533)
ryozm Jan 26, 2024
5346557
refactor(infinite-scroll): optimize error handling in scroll function…
chooin Feb 5, 2024
50ecb23
docs: update slider demo1.tsx (#6529)
Fun005 Feb 5, 2024
1308bb8
docs: update slider demo2.tsx (#6530)
Fun005 Feb 5, 2024
ca09a21
refactor: replace lodash/memoize with nano-memoize (#6524)
guoyunhe Feb 6, 2024
76e3583
refactor: replace lodash/merge with deepmerge (#6542)
guoyunhe Feb 6, 2024
666f089
fix: createErrorBlock will lost the style cause treeshaking (#6551)
hongxuWei Feb 22, 2024
0af484e
feat: Added hungarian locale (#6555)
CoMPlest Feb 29, 2024
5ebd04e
fix: result page dark theme (#6557)
zombieJ Feb 29, 2024
8468a08
fix: (FormItem) help icon click stopPropagation (#6549)
damonyoungcc Feb 29, 2024
4a43616
feat: export useConfig (#6501)
guoyunhe Mar 1, 2024
784eff5
docs:Remove duplicate CSS variables in the English documentation of t…
daylenjeez Mar 1, 2024
8d6e05d
fix: button patch danger color (#6568)
fqishuai Mar 8, 2024
1d0fc6f
docs: Update index.zh.md (#6571)
Meetacoo Mar 12, 2024
937f845
chore: add size-limit.yml workflow (#6573)
guoyunhe Mar 15, 2024
7d75de6
feat(utils): add touchstart event to PropagationEvent (#6578)
eon-lee96 Mar 25, 2024
bfbc96e
refactor: replace lodash/assignWith with vanilla js (#6581)
guoyunhe Mar 28, 2024
99b7c56
chore: auto merge branches (#6582)
github-actions[bot] Mar 28, 2024
cf550e4
chore: bump 5.35.0
zombieJ Mar 28, 2024
84bad16
fix(Button): onClick type (#6588)
guoyunhe Apr 8, 2024
e55ddf9
feat: add scrollReverse props, autoplay reverse (#6589)
Da-Sheng Apr 9, 2024
d4ff76b
chore: opt zh-CN locale to reduce bundle size (#6592)
guoyunhe Apr 9, 2024
ad988cf
chore: lint-staged and commitlint update (#6593)
guoyunhe Apr 10, 2024
3f91a78
chore: stylelint, ignores, and vscode settings (#6601)
guoyunhe Apr 15, 2024
5730b89
feat: add pt-BR locale (#6562)
Chrzz-jpg Apr 16, 2024
8bd3d17
feat(TextArea): add `enterkeyhint` and `onEnterPress` (#6598)
susiwen8 Apr 16, 2024
3330b9a
fix: input enterKeyHint has wrong action btn on IOS (#6607)
szn796 Apr 23, 2024
9198124
feat(i18n): add locale de-DE & ms-MY & ar-SA & vi-VN (#6613)
CapQing Apr 28, 2024
138b313
chore: bump 5.36.0
zombieJ Apr 28, 2024
027f680
feat(deps): add react-dom peer deps (#6611)
guoyunhe Apr 29, 2024
5e819c2
fix: collapse component expands blank issue #6619 (#6627)
yezhonghu0503 May 21, 2024
c01140f
feat(i18n): add in-ID and update others (#6632)
CapQing May 27, 2024
a4a09ad
chore: bump 5.36.1
zombieJ May 27, 2024
1e21905
feat(card): css variables for border and padding (#6583)
guoyunhe Jun 5, 2024
2203ba2
feat(ConfigProvider): add icons config (#6587)
guoyunhe Jun 12, 2024
c106365
fix(NumberKeyboard): fix IOS missing the touch event when finger trig…
zombieJ Jun 25, 2024
4abf51e
chore: bump 5.37.0
zombieJ Jun 28, 2024
a1018a7
fix: nav_bar backIcon attribute is compatible with backArrow attribut…
dc1053036629 Jul 2, 2024
89e5774
fix(CalendarPicker): fix `jumpTo` & `jumpToToday` not trigger panel s…
zombieJ Jul 2, 2024
e94273e
fix(CalendarPickerView): Fix empty header cell for some month (#6661)
zombieJ Jul 3, 2024
ca4c120
chore: bump 5.37.1
zombieJ Jul 3, 2024
0313082
docs: revert demo (#6662)
zombieJ Jul 3, 2024
dcbe575
feat(DatePicker): add quarter precision (#6664)
keqingrong Jul 8, 2024
c1958aa
docs: remove `--save` flag and fix typos in README.md (#6669)
ChuYang-FE Jul 9, 2024
2b8ee11
docs(ListItem): add arrowIcon demo (#6673)
Layouwen Jul 18, 2024
c7b0b9f
docs: Update demo1.tsx(Switch 添加valuePropName属性) (#6675)
201244010 Jul 23, 2024
c1f432b
feat(CalendarPickerView): title support boolean value to control whet…
Layouwen Jul 23, 2024
4799993
test: unified class name variable (#6677)
Layouwen Jul 23, 2024
7fc3714
feat(Card): icon prop (#6683)
guoyunhe Jul 29, 2024
2696072
fix: rtl mode change not has init animate (#6686)
Layouwen Jul 31, 2024
2ec5d58
fix: remove aria-hidden (#6688)
Layouwen Jul 31, 2024
d4d161e
fix: kk-KZ locale (#6681)
YernarT Jul 31, 2024
3fa4dd5
chore: upgrade rc-field-form dependencies ~1.27.4 to ^1.34.2 (#6690)
Layouwen Aug 1, 2024
49aaff1
docs(CalenderPickerView): update title type doc (#6696)
Layouwen Aug 4, 2024
8e312d9
feat(notice-bar): shape and bordered prop (#6691)
guoyunhe Aug 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
build
coverage
dist
es
lib
node_modules
package-lock.json
pnpm-lock.yaml
yarn.lock
*.min.js
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

- name: Install pnpm
id: pnpm-install
uses: pnpm/action-setup@v2.2.4
uses: pnpm/action-setup@v4
with:
version: 7
run_install: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/compressed-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
- name: Install pnpm
id: pnpm-install
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: 7
run_install: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/doc-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- name: Install pnpm
id: pnpm-install
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: 7
run_install: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/preview-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- name: Install pnpm
id: pnpm-install
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: 7
run_install: false
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/size-limit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: 📦 Size Limit

on:
pull_request:
types: [opened, synchronize]

permissions:
contents: write
pull-requests: write

jobs:
size:
permissions:
checks: read
contents: write
pull-requests: write
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: pnpm/action-setup@v3
with:
version: 8
- name: size-limit
uses: ant-design/size-limit-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
package_manager: pnpm
env:
NODE_OPTIONS: '--max_old_space_size=4096'
PRODUCTION_ONLY: 1
NO_DUP_CHECK: 1
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
# dumi assets meta data
/assets.json

/.vscode/
/.idea/

# yarn https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
Expand Down
6 changes: 3 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm commitlint --edit $1
PATH=$(pwd)/.node/bin:$(pwd)/node_modules/.bin:$PATH commitlint --edit ${1}
5 changes: 3 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm pretty-quick --staged
PATH=$(pwd)/.node/bin:$(pwd)/node_modules/.bin:$PATH lint-staged
12 changes: 10 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
package.json
/pnpm-lock.yaml
build
coverage
dist
es
lib
node_modules
package-lock.json
pnpm-lock.yaml
yarn.lock
*.min.js
*.min.css
10 changes: 10 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
build
coverage
dist
es
lib
node_modules
package-lock.json
pnpm-lock.yaml
yarn.lock
*.min.css
3 changes: 3 additions & 0 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
'extends': ['stylelint-config-ali', 'stylelint-prettier/recommended'],
}
8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"stylelint.vscode-stylelint"
]
}
50 changes: 50 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"stylelint.validate": ["css", "scss", "less"],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.fixAll.stylelint": "explicit",
"source.organizeImports": "explicit"
},
"editor.rulers": [80, 120],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[less]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</div>

```bash
$ npm install --save antd-mobile
$ npm install antd-mobile
# or
$ yarn add antd-mobile
# or
Expand All @@ -39,7 +39,7 @@ You can also play with antd-mobile just in browser with [Codesandbox](https://co

If you found bugs or would like to request some new features, please consider opening an [issue](https://github.com/ant-design/ant-design-mobile/issues/new).

If you have some question about how to use ant-mobile, you can start a [discussion thread](https://github.com/ant-design/ant-design-mobile/discussions).
If you have some questions about how to use ant-mobile, you can start a [discussion thread](https://github.com/ant-design/ant-design-mobile/discussions).

---

Expand Down
2 changes: 1 addition & 1 deletion docs/components/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export default () => {
))}
</div>
<div className={styles.copyright}>
© 2022 Made with ❤ by
© 2024 Made with ❤ by
<a
className={styles.copyrightLink}
href='https://xtech.antfin.com'
Expand Down
9 changes: 9 additions & 0 deletions docs/guide/i18n.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,25 @@ The following languages are currently supported:
| English | en-US |
| Persian | fa-IR |
| Spanish | es-ES |
| Hungarian | hu-HU |
| Korean | ko-KR |
| Japanese | ja-JP |
| Kazakh | kk-KZ |
| Indonesian | id-ID |
| Indonesian(old form) | in-ID |
| Italian | it-IT |
| Danish | da-DK |
| Norwegian (Bokmål) | nb-NO |
| Dutch (Netherlands) | nl-NL |
| Russian (Russia) | ru-RU |
| Turkish (Türkçe) | tr-TR |
| Thai | th-TH |
| French | fr-FR |
| German | de-DE |
| Malay | ms-MY |
| Arabic | ar-SA |
| Portuguese | pt-BR |
| Vietnamese | vi-VN |

See more usage at [ConfigProvider](../components/config-provider).

Expand Down
8 changes: 8 additions & 0 deletions docs/guide/i18n.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,20 @@ return (
| 日语 | ja-JP |
| 哈萨克语 | kk-KZ |
| 印度尼西亚语 | id-ID |
| 印度尼西亚语(旧版) | in-ID |
| 意大利语 | it-IT |
| 丹麦语 | da-DK |
| 挪威 | nb-NO |
| 荷兰语 | nl-NL |
| 俄罗斯语 | ru-RU |
| 土耳其语 | tr-TR |
| 泰语 | th-TH |
| 法语 | fr-FR |
| 德语 | de-DE |
| 马来语 | ms-MY |
| 阿拉伯语 | ar-SA |
| 葡萄牙语 | pt-BR |
| 越南语 | vi-VN |

具体的使用方法请参考 [ConfigProvider](../components/config-provider) 文档。

Expand Down
7 changes: 6 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,12 @@ async function buildBundles(cb) {

// Let it step by step since `style.css` is same name.
// Production should override it.
for (const config of configs) {
for (let i = 0; i < configs.length; i += 1) {
const config = configs[i]
if (i !== 0) {
config.build.emptyOutDir = false
}

await vite.build(config)
}

Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
// maxConcurrency: 1,
maxConcurrency: 1,
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
modulePathIgnorePatterns: ['<rootDir>/lib/', '<rootDir>/dist/'],
moduleDirectories: ['node_modules', 'src/tests'],
Expand Down
Loading
Loading