@hi-ui/pop-confirm 5.0.0-experimental.1 → 5.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -46
- package/lib/types/PopConfirm.d.ts +4 -4
- package/lib/types/index.d.ts +1 -0
- package/lib/types/use-pop-confirm.d.ts +4 -3
- package/lib/types/with-api.d.ts +1 -0
- package/package.json +18 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,26 +1,6 @@
|
|
|
1
1
|
# @hi-ui/pop-confirm
|
|
2
2
|
|
|
3
|
-
## 5.0.0-
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- 59cef699f: feat: 组件语义化样式改造,增加 styles 和 classNames 属性 (5.0)
|
|
8
|
-
|
|
9
|
-
### Patch Changes
|
|
10
|
-
|
|
11
|
-
- eb17c4697: style: 修复 UI/样式问题 (5.0)
|
|
12
|
-
- Updated dependencies [7f204c892]
|
|
13
|
-
- Updated dependencies [eb17c4697]
|
|
14
|
-
- Updated dependencies [eb17c4697]
|
|
15
|
-
- Updated dependencies [c407744fe]
|
|
16
|
-
- Updated dependencies [59cef699f]
|
|
17
|
-
- @hi-ui/icons@5.0.0-experimental.1
|
|
18
|
-
- @hi-ui/core@5.0.0-experimental.1
|
|
19
|
-
- @hi-ui/button@5.0.0-experimental.1
|
|
20
|
-
- @hi-ui/popper@5.0.0-experimental.1
|
|
21
|
-
- @hi-ui/use-merge-semantic@5.0.0-experimental.0
|
|
22
|
-
|
|
23
|
-
## 5.0.0-experimental.0
|
|
3
|
+
## 5.0.0-rc.0
|
|
24
4
|
|
|
25
5
|
### Major Changes
|
|
26
6
|
|
|
@@ -29,64 +9,64 @@
|
|
|
29
9
|
### Minor Changes
|
|
30
10
|
|
|
31
11
|
- 2c1694f56: feat(pop-confirm): PopConfirm 组件支持以 api 方式调用
|
|
12
|
+
- 59cef699f: feat: 组件语义化样式改造,增加 styles 和 classNames 属性 (5.0)
|
|
32
13
|
|
|
33
14
|
### Patch Changes
|
|
34
15
|
|
|
35
16
|
- 1e226cd66: chore: 修改 react-compat 依赖管理方式 & 更新 react-transition-group 依赖 (5.0)
|
|
36
|
-
- 1662753e0: style: fix ui bug (5.0)
|
|
37
|
-
- be5a59325: style: 修改样式问题 (5.0)
|
|
38
17
|
- 2e56529f7: styles: 主题定制功能完善&&样式变量化写法改造&&兼容 RTL (5.0)
|
|
18
|
+
- eb17c4697: style: 修复 UI/样式问题 (5.0)
|
|
39
19
|
- ecca3edc4: style(pop-confirm): 新版样式修改 (5.0)
|
|
40
20
|
- d021b4fa6: feat: add onOpen callback trigger on visibility change (5.0)
|
|
41
21
|
- 33da3144e: build: 将 package.json 中 exports 配置中的 types 配置放在最上面 (5.0)
|
|
42
|
-
- 7f3abee55: style: fix ui bug (5.0)
|
|
43
|
-
- a0f0c9d6b: style: 修改 UI 问题 (5.0)
|
|
44
22
|
- 99801c2d1: fix: 修复 UI 问题 (5.0)
|
|
45
23
|
- Updated dependencies [1e226cd66]
|
|
46
24
|
- Updated dependencies [eea29eade]
|
|
47
|
-
- Updated dependencies [
|
|
25
|
+
- Updated dependencies [7f204c892]
|
|
48
26
|
- Updated dependencies [122d1d859]
|
|
27
|
+
- Updated dependencies [eb17c4697]
|
|
49
28
|
- Updated dependencies [8c0ee78f0]
|
|
50
29
|
- Updated dependencies [9b34d99bc]
|
|
51
30
|
- Updated dependencies [8f3aa85e4]
|
|
52
31
|
- Updated dependencies [fd4c20bbd]
|
|
53
|
-
- Updated dependencies [be5a59325]
|
|
54
|
-
- Updated dependencies [71fc15e5c]
|
|
55
32
|
- Updated dependencies [79ea480f3]
|
|
56
33
|
- Updated dependencies [2e56529f7]
|
|
34
|
+
- Updated dependencies [3a7186e4b]
|
|
57
35
|
- Updated dependencies [277c5033a]
|
|
58
36
|
- Updated dependencies [95abba983]
|
|
59
37
|
- Updated dependencies [8a92ec660]
|
|
60
38
|
- Updated dependencies [1429eced2]
|
|
39
|
+
- Updated dependencies [eb17c4697]
|
|
61
40
|
- Updated dependencies [e3dea9be5]
|
|
62
41
|
- Updated dependencies [976ec929d]
|
|
63
42
|
- Updated dependencies [f1ab51725]
|
|
64
43
|
- Updated dependencies [7f08a4e4f]
|
|
44
|
+
- Updated dependencies [c407744fe]
|
|
45
|
+
- Updated dependencies [d91a8bb0f]
|
|
65
46
|
- Updated dependencies [4006b2c8c]
|
|
66
47
|
- Updated dependencies [e42e2badf]
|
|
67
48
|
- Updated dependencies [33da3144e]
|
|
68
|
-
- Updated dependencies [0a8cc07a7]
|
|
69
|
-
- Updated dependencies [7f3abee55]
|
|
70
49
|
- Updated dependencies [58ad82e94]
|
|
71
|
-
- Updated dependencies [
|
|
50
|
+
- Updated dependencies [95d930354]
|
|
72
51
|
- Updated dependencies [f2be367e9]
|
|
73
52
|
- Updated dependencies [1972fd16a]
|
|
53
|
+
- Updated dependencies [59cef699f]
|
|
74
54
|
- Updated dependencies [99801c2d1]
|
|
75
|
-
-
|
|
76
|
-
- @hi-ui/
|
|
77
|
-
- @hi-ui/
|
|
78
|
-
- @hi-ui/
|
|
79
|
-
- @hi-ui/
|
|
80
|
-
- @hi-ui/use-
|
|
81
|
-
- @hi-ui/use-
|
|
82
|
-
- @hi-ui/use-
|
|
83
|
-
- @hi-ui/
|
|
84
|
-
- @hi-ui/
|
|
85
|
-
- @hi-ui/
|
|
86
|
-
- @hi-ui/
|
|
87
|
-
- @hi-ui/
|
|
88
|
-
- @hi-ui/
|
|
89
|
-
- @hi-ui/react-compat@5.0.0-
|
|
55
|
+
- @hi-ui/popper@5.0.0-rc.0
|
|
56
|
+
- @hi-ui/button@5.0.0-rc.0
|
|
57
|
+
- @hi-ui/icons@5.0.0-rc.0
|
|
58
|
+
- @hi-ui/core@5.0.0-rc.0
|
|
59
|
+
- @hi-ui/use-id@5.0.0-rc.0
|
|
60
|
+
- @hi-ui/use-latest@5.0.0-rc.0
|
|
61
|
+
- @hi-ui/use-toggle@5.0.0-rc.0
|
|
62
|
+
- @hi-ui/use-uncontrolled-state@5.0.0-rc.0
|
|
63
|
+
- @hi-ui/classname@5.0.0-rc.0
|
|
64
|
+
- @hi-ui/dom-utils@5.0.0-rc.0
|
|
65
|
+
- @hi-ui/env@5.0.0-rc.0
|
|
66
|
+
- @hi-ui/react-utils@5.0.0-rc.0
|
|
67
|
+
- @hi-ui/type-assertion@5.0.0-rc.0
|
|
68
|
+
- @hi-ui/use-merge-semantic@5.0.0-rc.0
|
|
69
|
+
- @hi-ui/react-compat@5.0.0-rc.0
|
|
90
70
|
|
|
91
71
|
## 4.2.5
|
|
92
72
|
|
|
@@ -8,10 +8,10 @@ export declare const POP_CONFIRM_PREFIX: string;
|
|
|
8
8
|
* 气泡确认框
|
|
9
9
|
*/
|
|
10
10
|
export declare const PopConfirm: React.ForwardRefExoticComponent<PopConfirmProps & React.RefAttributes<HTMLDivElement | null>>;
|
|
11
|
-
export type PopConfirmSemanticName = PopperSemanticName | 'wrapper' | 'contentSection' | 'contentIcon' | 'contentTitle' | 'body' | 'footer' | 'btnCancel' | 'btnConfirm';
|
|
12
|
-
export type PopConfirmSemanticClassNames = SemanticClassNamesType<PopConfirmProps, PopConfirmSemanticName>;
|
|
13
|
-
export type PopConfirmSemanticStyles = SemanticStylesType<PopConfirmProps, PopConfirmSemanticName>;
|
|
14
|
-
export type PopConfirmSemantic = ComponentSemantic<PopConfirmSemanticClassNames, PopConfirmSemanticStyles>;
|
|
11
|
+
export declare type PopConfirmSemanticName = PopperSemanticName | 'wrapper' | 'contentSection' | 'contentIcon' | 'contentTitle' | 'body' | 'footer' | 'btnCancel' | 'btnConfirm';
|
|
12
|
+
export declare type PopConfirmSemanticClassNames = SemanticClassNamesType<PopConfirmProps, PopConfirmSemanticName>;
|
|
13
|
+
export declare type PopConfirmSemanticStyles = SemanticStylesType<PopConfirmProps, PopConfirmSemanticName>;
|
|
14
|
+
export declare type PopConfirmSemantic = ComponentSemantic<PopConfirmSemanticClassNames, PopConfirmSemanticStyles>;
|
|
15
15
|
export interface PopConfirmProps extends Omit<HiBaseHTMLProps<'div'>, 'title'>, UsePopConfirmProps, PopConfirmSemantic {
|
|
16
16
|
innerRef?: React.Ref<{
|
|
17
17
|
open: () => void;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { PopperOverlayProps } from '@hi-ui/popper';
|
|
2
3
|
export declare const usePopConfirm: ({ visible: visibleProp, disabled, closeOnCancel, closeOnConfirm, onCancel: onCancelProp, onConfirm: onConfirmProp, onOpen, onClose, attachEl, ...restProps }: UsePopConfirmProps) => {
|
|
3
4
|
rootProps: any;
|
|
4
5
|
getTriggerProps: (props: any, ref: any) => {
|
|
5
6
|
ref: ((value: HTMLElement | ((prevState: HTMLElement | null) => HTMLElement | null)) => void) | null;
|
|
6
|
-
onClick: (event:
|
|
7
|
+
onClick: (event: import("react").SyntheticEvent<Element, Event>) => void;
|
|
7
8
|
};
|
|
8
9
|
getPopperProps: () => {
|
|
9
10
|
visible: boolean;
|
|
@@ -16,7 +17,7 @@ export declare const usePopConfirm: ({ visible: visibleProp, disabled, closeOnCa
|
|
|
16
17
|
onCancel: () => void;
|
|
17
18
|
onConfirm: () => void;
|
|
18
19
|
visibleAction: {
|
|
19
|
-
set: (stateOrFunction:
|
|
20
|
+
set: (stateOrFunction: import("react").SetStateAction<boolean>, ...args: any[]) => void;
|
|
20
21
|
on: () => void;
|
|
21
22
|
off: () => void;
|
|
22
23
|
not: () => void;
|
|
@@ -67,4 +68,4 @@ export interface UsePopConfirmProps extends PopperOverlayProps {
|
|
|
67
68
|
*/
|
|
68
69
|
disabled?: boolean;
|
|
69
70
|
}
|
|
70
|
-
export type UsePopConfirmReturn = ReturnType<typeof usePopConfirm>;
|
|
71
|
+
export declare type UsePopConfirmReturn = ReturnType<typeof usePopConfirm>;
|
package/lib/types/with-api.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hi-ui/pop-confirm",
|
|
3
|
-
"version": "5.0.0-
|
|
3
|
+
"version": "5.0.0-rc.0",
|
|
4
4
|
"description": "A sub-package for @hi-ui/hiui.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "HiUI <mi-hiui@xiaomi.com>",
|
|
@@ -44,29 +44,29 @@
|
|
|
44
44
|
"url": "https://github.com/XiaoMi/hiui/issues"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@hi-ui/button": "^5.0.0-
|
|
48
|
-
"@hi-ui/classname": "^5.0.0-
|
|
49
|
-
"@hi-ui/dom-utils": "^5.0.0-
|
|
50
|
-
"@hi-ui/env": "^5.0.0-
|
|
51
|
-
"@hi-ui/icons": "^5.0.0-
|
|
52
|
-
"@hi-ui/popper": "^5.0.0-
|
|
53
|
-
"@hi-ui/react-compat": "^5.0.0-
|
|
54
|
-
"@hi-ui/react-utils": "^5.0.0-
|
|
55
|
-
"@hi-ui/type-assertion": "^5.0.0-
|
|
56
|
-
"@hi-ui/use-id": "^5.0.0-
|
|
57
|
-
"@hi-ui/use-
|
|
58
|
-
"@hi-ui/use-
|
|
59
|
-
"@hi-ui/use-
|
|
60
|
-
"@hi-ui/use-
|
|
47
|
+
"@hi-ui/button": "^5.0.0-rc.0",
|
|
48
|
+
"@hi-ui/classname": "^5.0.0-rc.0",
|
|
49
|
+
"@hi-ui/dom-utils": "^5.0.0-rc.0",
|
|
50
|
+
"@hi-ui/env": "^5.0.0-rc.0",
|
|
51
|
+
"@hi-ui/icons": "^5.0.0-rc.0",
|
|
52
|
+
"@hi-ui/popper": "^5.0.0-rc.0",
|
|
53
|
+
"@hi-ui/react-compat": "^5.0.0-rc.0",
|
|
54
|
+
"@hi-ui/react-utils": "^5.0.0-rc.0",
|
|
55
|
+
"@hi-ui/type-assertion": "^5.0.0-rc.0",
|
|
56
|
+
"@hi-ui/use-id": "^5.0.0-rc.0",
|
|
57
|
+
"@hi-ui/use-merge-semantic": "^5.0.0-rc.0",
|
|
58
|
+
"@hi-ui/use-latest": "^5.0.0-rc.0",
|
|
59
|
+
"@hi-ui/use-toggle": "^5.0.0-rc.0",
|
|
60
|
+
"@hi-ui/use-uncontrolled-state": "^5.0.0-rc.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@hi-ui/core": ">=5.0.0-
|
|
63
|
+
"@hi-ui/core": ">=5.0.0-rc.0",
|
|
64
64
|
"react": ">=16.8.6",
|
|
65
65
|
"react-dom": ">=16.8.6"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@hi-ui/core": "^5.0.0-
|
|
69
|
-
"@hi-ui/core-css": "^5.0.0-
|
|
68
|
+
"@hi-ui/core": "^5.0.0-rc.0",
|
|
69
|
+
"@hi-ui/core-css": "^5.0.0-rc.0",
|
|
70
70
|
"react": "^17.0.1",
|
|
71
71
|
"react-dom": "^17.0.1"
|
|
72
72
|
}
|