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

feat: the prop direction support four directions: top, bottom, left, right. fix #1181 #1183

Closed
wants to merge 64 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
46f6782
fix: maskClosable of popup not work
JeromeLin Oct 7, 2023
8b4c354
docs(modal): add demo of long content
JeromeLin Oct 7, 2023
c799379
chore(deps): bump postcss from 8.4.21 to 8.4.31 (#1142)
dependabot[bot] Oct 7, 2023
ac6fffc
fix: 修复 popup 内容超长滚动问题 (#1145)
dominicleo Oct 17, 2023
789db7c
chore(deps): bump @babel/traverse from 7.13.13 to 7.23.2 (#1146)
dependabot[bot] Oct 17, 2023
98bdcd9
docs: update safeArea api
JeromeLin Oct 17, 2023
7a58682
perf(image-preview): remove setTimeout
JeromeLin Oct 17, 2023
58954d0
perf(tab-bar): remove safeArea props
JeromeLin Oct 17, 2023
3a1928c
docs: update changelog
JeromeLin Oct 17, 2023
4bb568d
chore(release): publish new version
JeromeLin Oct 17, 2023
87db819
chore(deps): bump react-devtools-core from 4.12.4 to 4.28.4 (#1147)
dependabot[bot] Oct 23, 2023
d5fcebe
perf: dateRender props add value
Yang03 Oct 25, 2023
e10af89
chore(release): publish new version
JeromeLin Oct 25, 2023
adc4e63
fix: module export of icon package
JeromeLin Oct 26, 2023
4dc5630
fix: calendar month (#1149)
Yang03 Oct 26, 2023
cbfc6c5
chore(release): publish new version
JeromeLin Oct 26, 2023
2f068eb
docs: update changelog
JeromeLin Oct 26, 2023
db154ef
chore(release): publish new version
JeromeLin Oct 26, 2023
41dcc86
perf(calendar): scroll into view for calendar (#1150)
Yang03 Oct 31, 2023
1229e8f
chore(release): publish new version
JeromeLin Oct 31, 2023
c00713e
fix: transition event bubbling (#1153)
dominicleo Nov 10, 2023
33fbb6f
docs: update changelog
JeromeLin Nov 10, 2023
50d0497
chore(release): publish new version
JeromeLin Nov 10, 2023
0978d46
perf(calendar): performance optimization (#1155)
Yang03 Nov 15, 2023
f8a56bd
chore(release): publish new version
JeromeLin Nov 15, 2023
e24e48c
chore(deps): bump @adobe/css-tools from 4.3.1 to 4.3.2 (#1156)
dependabot[bot] Dec 1, 2023
ec435ed
chore(deps): bump ip from 1.1.5 to 1.1.9 (#1161)
dependabot[bot] Feb 22, 2024
4c04208
chore(deps): bump es5-ext from 0.10.53 to 0.10.63 (#1162)
dependabot[bot] Feb 27, 2024
89b4e12
fix: toast loading 单独使用没有样式 (#1163)
Yang03 Mar 11, 2024
48fa46f
chore(deps): bump webpack-dev-middleware from 5.3.3 to 5.3.4 (#1164)
dependabot[bot] Mar 27, 2024
41afe63
chore(deps): bump express from 4.18.2 to 4.19.2 (#1165)
dependabot[bot] Mar 27, 2024
d7628b9
chore: optimize zarm icon export module type (#1166)
jinasonlin Apr 15, 2024
1d6d52e
docs: changelog update
JeromeLin Apr 15, 2024
252152f
chore: change order of node versions
JeromeLin Apr 15, 2024
e1ba6f1
chore: update workflow
JeromeLin Apr 16, 2024
1268c18
chore: update workflow
JeromeLin Apr 16, 2024
ff5ffad
test: update snapshots
JeromeLin Apr 16, 2024
0a430ee
chore(release): publish new version
JeromeLin Apr 16, 2024
bacff0a
perf: onMaskClick support export event param. close #1168
JeromeLin May 22, 2024
b42267c
chore(deps-dev): bump gh-pages from 3.1.0 to 5.0.0 (#1167)
dependabot[bot] Apr 23, 2024
0fb506a
chore(release): publish new version
JeromeLin May 22, 2024
1b134c2
docs: changelog update
JeromeLin May 22, 2024
e8c5df5
fix(carousel): image size calculation deviation (#1169)
zyf-xcode Jun 4, 2024
57ff2de
docs: changelog update
JeromeLin Jun 4, 2024
b1537a1
chore(release): publish new version
JeromeLin Jun 4, 2024
f51e343
fix(picker): picker prompt also need the `value` prop (#1172)
aiyogg Aug 19, 2024
39f19c0
chore(deps): bump webpack from 5.76.0 to 5.94.0 (#1173)
dependabot[bot] Sep 18, 2024
d119feb
chore(deps): bump express from 4.19.2 to 4.21.0 (#1174)
dependabot[bot] Sep 18, 2024
39da995
chore(deps): bump serve-static from 1.14.1 to 1.16.2 (#1175)
dependabot[bot] Sep 20, 2024
b8ee84c
chore(deps-dev): bump @sentry/browser from 5.30.0 to 7.119.1 (#1177)
dependabot[bot] Oct 10, 2024
e621b6a
docs(modal): add demo of long content
JeromeLin Oct 7, 2023
3fd04e9
fix: 修复 popup 内容超长滚动问题 (#1145)
dominicleo Oct 17, 2023
bf64979
feat: support nested use of Popup
JeromeLin Oct 31, 2024
699b64e
docs: update changelog
JeromeLin Oct 31, 2024
e5c1d76
chore(release): publish new version
JeromeLin Oct 31, 2024
2d74d86
docs: update changelog
JeromeLin Oct 31, 2024
a9cf2a4
perf: stop event propagation in popup content
JeromeLin Nov 1, 2024
d227e3b
chore(deps): bump http-proxy-middleware from 2.0.6 to 2.0.7 (#1179)
dependabot[bot] Oct 31, 2024
c13b89d
chore(release): publish new version
JeromeLin Nov 1, 2024
c089a73
docs: update changelog
JeromeLin Nov 4, 2024
6e05a5a
chore: remove SentryCliPlugin
JeromeLin Nov 4, 2024
5968b77
docs: update README.md
JeromeLin Nov 6, 2024
ff3a6c3
feat: the prop direction support four directions: top, bottom, left, …
JeromeLin Nov 15, 2024
23fce0b
Merge branch 'pr-tabs-direction' into pr-tabs
JeromeLin Nov 15, 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
211 changes: 112 additions & 99 deletions .github/workflows/test.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ import 'zarm/dist/zarm.css';

| 问题上报 | 讨论交流 | 微信群 |
| :---------------------------------------------------------- | :-------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------- |
| [github issues](https://github.com/ZhongAnTech/zarm/issues) | [github discussions](https://github.com/ZhongAnTech/zarm/discussions) | <img src="https://cdn-health.zhongan.com/zarm/qrcode.jpg" width="80" /> <br />备注 "zarm" 加好友后邀请进群 |
| [github issues](https://github.com/ZhongAnTech/zarm/issues) | [github discussions](https://github.com/ZhongAnTech/zarm/discussions) | <img src="https://cdn-health.zhongan.com/zarm/qrcode.jpg" width="80" /> <br />备注 "zarm github" 加好友后邀请进群 |

## 如何贡献

Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"packages": ["packages/*"],
"workspaces": ["packages/*"],
"version": "independent",
"command": {
"publish": {
Expand Down
2 changes: 1 addition & 1 deletion packages/bem/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zarm-design/bem",
"version": "0.0.8",
"version": "0.0.9",
"description": "bem struct",
"keywords": [
"bem",
Expand Down
6 changes: 6 additions & 0 deletions packages/site/demo/styles/CalendarPage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,9 @@
}
}
}

.za-calendar__day--selected {
.custom__text {
color: var(--day-selected-background);
}
}
20 changes: 5 additions & 15 deletions packages/site/demo/styles/TabsPage.scss
Original file line number Diff line number Diff line change
@@ -1,25 +1,15 @@
@import '@/styles/index';

.tabs-page {
.za-tabs + .za-tabs {
margin-top: r(10);
}

.content {
display: flex;
align-items: center;
justify-content: center;
padding: r(10);
height: r(150);
}

.za-tabs--vertical {
.content {
height: 100%;
}
.custom-width {
width: r(250);
}

&.custom-height {
height: r(200);
}
.custom-height {
height: r(200);
}
}
12 changes: 6 additions & 6 deletions packages/site/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "site",
"version": "0.0.22",
"version": "0.0.31",
"private": true,
"scripts": {
"build": "rimraf assets && mkdir assets && touch assets/CNAME && echo 'zarm.design' > assets/CNAME && zarm deploy",
"clean": "rimraf assets",
"deploy": "yarn build -p && gh-pages -d assets",
"deploy": "yarn build && gh-pages -d assets",
"start": "zarm dev"
},
"browserslist": [
Expand All @@ -17,7 +17,7 @@
"Android >= 4"
],
"dependencies": {
"@zarm-design/icons": "^0.1.13",
"@zarm-design/icons": "^0.1.15",
"antd": "^5.0.7",
"classnames": "2.2.6",
"clipboard": "^2.0.11",
Expand All @@ -28,12 +28,12 @@
"react-intl": "^5.12.1",
"react-loadable": "^5.5.0",
"react-router-dom": "^5.1.2",
"zarm": "^3.0.14",
"zarm": "^3.1.4",
"zarm-web": "0.0.1-alpha.13"
},
"devDependencies": {
"@babel/standalone": "7.12.15",
"@sentry/browser": "^5.30.0",
"@sentry/browser": "^7.119.1",
"@types/classnames": "^2.2.3",
"@types/react": "^17.0.3",
"@types/react-dom": "^17.0.3",
Expand All @@ -45,7 +45,7 @@
"codesandbox": "^2.2.3",
"core-js": "^3.12.1",
"docsearch.js": "^2.6.1",
"gh-pages": "^3.1.0",
"gh-pages": "^5.0.0",
"history": "^5.0.0",
"marked": "^4.0.10",
"prismjs": "^1.23.0",
Expand Down
25 changes: 17 additions & 8 deletions packages/zarm-icons/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
{
"name": "@zarm-design/icons",
"version": "0.1.13",
"version": "0.1.15",
"description": "",
"license": "MIT",
"author": "jerome.lin@zhongan.com",
"exports": {
".": "./lib/index.js",
"./style": "./lib/style/index.scss",
"./style/font": "./lib/font/style/icon.scss"
".": {
"import": "./es/index.js",
"default": "./lib/index.js"
},
"./style": {
"import": "./es/style/index.scss",
"default": "./lib/style/index.scss"
},
"./style/font": {
"import": "./es/font/style/icon.scss",
"default": "./lib/font/style/icon.scss"
}
},
"main": "lib/index.js",
"module": "es/index.js",
"typings": "lib/index.d.ts",
"files": [
"es",
Expand All @@ -19,8 +29,8 @@
"scripts": {
"build": "yarn build:lib && yarn build:es",
"build:es": "rimraf es && tsc --outDir es && zarm build --mode es --path src --out-dir es --copy-files --build-css",
"build:lib": "rimraf lib && tsc --outDir lib && zarm build --mode lib --path src --out-dir lib --copy-files --build-css",
"build:font": "webFontsHelper --src ./svg --fontName zaicon --fontPath src/font --className za-icon",
"build:lib": "rimraf lib && tsc --outDir lib && zarm build --mode lib --path src --out-dir lib --copy-files --build-css",
"build:react": "rimraf src/react && svgr ./svg --out-dir ./src/react",
"build:svg": "rimraf svg && node ./scripts/exportSVG.js",
"clean": "rimraf lib es coverage svg",
Expand All @@ -29,7 +39,7 @@
},
"dependencies": {
"@babel/runtime": "^7.21.0",
"@zarm-design/bem": "^0.0.8",
"@zarm-design/bem": "^0.0.9",
"change-case": "^4.1.2"
},
"devDependencies": {
Expand All @@ -42,6 +52,5 @@
},
"publishConfig": {
"access": "public"
},
"modules": "es/index.js"
}
}
69 changes: 65 additions & 4 deletions packages/zarm/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,75 @@
# 版本更新日志

## v3.0.14
## v3.1.4

- Perf

- [Popup] 支持嵌套使用 [#d94776](https://github.com/ZhongAnTech/zarm/commit/d94776d4762282c3ecc43ffbcd11b75d71fcc5fb)

## v3.1.2

- Bug Fix

- [PickerView] 修复文字过长截断失效的bug。[#1097](https://github.com/ZhongAnTech/zarm/pull/1097)
- [DatePicker] 修复值不能重置为 `undefined` 的bug。[#1100](https://github.com/ZhongAnTech/zarm/pull/1100)[@aiyogg]
- [Carousel] 修复图片大小计算偏差问题 [#1169](https://github.com/ZhongAnTech/zarm/pull/1169) [@zyf-xcode]

## v3.1.1

- Perf

- [Popup] onMaskClick 事件支持原生 event 参数 [#1168](https://github.com/ZhongAnTech/zarm/pull/1168)

## v3.1.0

- Bug Fix

- [Toast] 修复单独使用该组件 loading 模式时样式丢失的情况 [#1163](https://github.com/ZhongAnTech/zarm/pull/1163)

- [@zarm-design/icons] 修复当前图标库的导出配置会导致使用 ES 模块时引用 lib 而不是引用 es 下的资源,从而导致 tree shake 失败 [#1166](https://github.com/ZhongAnTech/zarm/pull/1166)

## v3.0.17

- Bug Fix

- [Popup] 修复内容中包含 transtion 动画时,会影响 Popup 的动画的执行 [#1153](https://github.com/ZhongAnTech/zarm/pull/1153)

- Perf

- [Calendar] 优化初始状态下自动滑动到已选择的日期位置 [#1150](https://github.com/ZhongAnTech/zarm/pull/1150)

- [Popup] 修复 `maskClassName` 属性名错误的bug。[#1102](https://github.com/ZhongAnTech/zarm/pull/1102)[@aiyogg]
## v3.0.16

- Bug Fix

- [@zarm-design/icons] 修复 ES Module 模块无法导出的问题 [#5e5c8f](https://github.com/ZhongAnTech/zarm/commit/5e5c8f125c1dc721ed6df8a9ae39462bd8c9a4db)
- [Calendar] 修复最大/小可选日期设置后展示不正确的问题 [#1149](https://github.com/ZhongAnTech/zarm/pull/1149)

- Perf

- [Calendar] `dateRender` 增加 `value` 参数露出,优化样式 css 变量 [#1148](https://github.com/ZhongAnTech/zarm/pull/1148)

## v3.0.15

- Bug Fix

- [DatePicker] 修复默认值重置为 `undefined` 失效的 bug [#1113](https://github.com/ZhongAnTech/zarm/pull/1113)
- [CustomInput] 修复只读状态样式问题 [#1117](https://github.com/ZhongAnTech/zarm/pull/1117)
- [Popup, Modal] 修复内容超长无法滚动问题 [#1145](https://github.com/ZhongAnTech/zarm/pull/1145)

- Break Change

- [TabBar] 移除弃用的 `visible` 和 `safeArea` 属性 [#1112](https://github.com/ZhongAnTech/zarm/pull/1112) [#8db25c](https://github.com/ZhongAnTech/zarm/commit/8db25cc191fa41d1d13f8308ef94787de61b9f2e)

- Perf

- [Badge] 字体样式优化 [#1118](https://github.com/ZhongAnTech/zarm/pull/1118)

## v3.0.14

- Bug Fix

- [PickerView] 修复文字过长截断失效的 bug。[#1097](https://github.com/ZhongAnTech/zarm/pull/1097)
- [DatePicker] 修复值不能重置为 `undefined` 的 bug。[#1100](https://github.com/ZhongAnTech/zarm/pull/1100)[@aiyogg]
- [Popup] 修复 `maskClassName` 属性名错误的 bug。[#1102](https://github.com/ZhongAnTech/zarm/pull/1102)[@aiyogg]

- Perf

Expand Down
6 changes: 3 additions & 3 deletions packages/zarm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zarm",
"version": "3.0.14",
"version": "3.1.4",
"description": "基于 React 的移动端UI库",
"keywords": [
"react",
Expand Down Expand Up @@ -67,8 +67,8 @@
"dependencies": {
"@floating-ui/react-dom-interactions": "^0.9.1",
"@use-gesture/react": "^10.1.1",
"@zarm-design/bem": "^0.0.8",
"@zarm-design/icons": "^0.1.13",
"@zarm-design/bem": "^0.0.9",
"@zarm-design/icons": "^0.1.15",
"ahooks": "^3.7.6",
"better-scroll": "2.3.1",
"classnames": "^2.3.1",
Expand Down
5 changes: 3 additions & 2 deletions packages/zarm/src/action-sheet/interface.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as React from 'react';
import type { MountContainer } from '../utils/dom';
import type { Locale } from '../config-provider/interface';
import type { PopupProps } from '../popup';
import type { MountContainer } from '../utils/dom';

export interface BaseActionSheetItemProps {
key?: string | number;
Expand All @@ -15,7 +16,7 @@ export interface BaseActionSheetProps {
visible?: boolean;
spacing?: boolean;
cancelText?: string;
onMaskClick?: () => void;
onMaskClick?: PopupProps['onMaskClick'];
onCancel?: () => void;
afterClose?: () => void;
destroy?: boolean;
Expand Down
Loading
Loading