@hi-ui/pop-confirm 5.0.0-experimental.1 → 5.0.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 CHANGED
@@ -1,92 +1,49 @@
1
1
  # @hi-ui/pop-confirm
2
2
 
3
- ## 5.0.0-experimental.1
3
+ ## 5.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`8f3aa85e4`](https://github.com/XiaoMi/hiui/commit/8f3aa85e4e1977854cecdf2864498a77e959bc39) Thanks [@zyprepare](https://github.com/zyprepare)! - feat: 组件的 package.json 中的 exports 统一加上 types 配置 (5.0)
4
8
 
5
9
  ### Minor Changes
6
10
 
7
- - 59cef699f: feat: 组件语义化样式改造,增加 styles classNames 属性 (5.0)
11
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`2c1694f56`](https://github.com/XiaoMi/hiui/commit/2c1694f56af43f013e3e038d534d8d458b8f8dc6) Thanks [@zyprepare](https://github.com/zyprepare)! - feat(pop-confirm): PopConfirm 组件支持以 api 方式调用
12
+
13
+ - [#3502](https://github.com/XiaoMi/hiui/pull/3502) [`59cef699f`](https://github.com/XiaoMi/hiui/commit/59cef699f96f56d4f68fae7f9dadb960c487b5de) Thanks [@zyprepare](https://github.com/zyprepare)! - feat: 组件语义化样式改造,增加 styles 和 classNames 属性 (5.0)
8
14
 
9
15
  ### Patch Changes
10
16
 
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
17
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`1e226cd66`](https://github.com/XiaoMi/hiui/commit/1e226cd66413cea8eb1e63b1cb83c1bfbf5f0a41) Thanks [@zyprepare](https://github.com/zyprepare)! - chore: 修改 react-compat 依赖管理方式 & 更新 react-transition-group 依赖 (5.0)
22
18
 
23
- ## 5.0.0-experimental.0
19
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`2e56529f7`](https://github.com/XiaoMi/hiui/commit/2e56529f7ea8c74e2fac8b6061628d4fd0d862ac) Thanks [@zyprepare](https://github.com/zyprepare)! - styles: 主题定制功能完善&&样式变量化写法改造&&兼容 RTL (5.0)
24
20
 
25
- ### Major Changes
21
+ - [#3504](https://github.com/XiaoMi/hiui/pull/3504) [`eb17c4697`](https://github.com/XiaoMi/hiui/commit/eb17c46978dfcb5e8ec0a0e3b3dcffabae8d31fe) Thanks [@zyprepare](https://github.com/zyprepare)! - style: 修复 UI/样式问题 (5.0)
26
22
 
27
- - 8f3aa85e4: feat: 组件的 package.json 中的 exports 统一加上 types 配置 (5.0)
23
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`ecca3edc4`](https://github.com/XiaoMi/hiui/commit/ecca3edc449ce0adaed1df68ab65cb09242b5755) Thanks [@zyprepare](https://github.com/zyprepare)! - style(pop-confirm): 新版样式修改 (5.0)
28
24
 
29
- ### Minor Changes
25
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`d021b4fa6`](https://github.com/XiaoMi/hiui/commit/d021b4fa6440faa7a09140c2c35dda10d51a35b3) Thanks [@zyprepare](https://github.com/zyprepare)! - feat: add onOpen callback trigger on visibility change (5.0)
30
26
 
31
- - 2c1694f56: feat(pop-confirm): PopConfirm 组件支持以 api 方式调用
27
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`33da3144e`](https://github.com/XiaoMi/hiui/commit/33da3144e916edd75ee0669ca9e5090edc681193) Thanks [@zyprepare](https://github.com/zyprepare)! - build: package.json exports 配置中的 types 配置放在最上面 (5.0)
32
28
 
33
- ### Patch Changes
29
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`99801c2d1`](https://github.com/XiaoMi/hiui/commit/99801c2d12628c194657579eccd09a86aedea22b) Thanks [@zyprepare](https://github.com/zyprepare)! - fix: 修复 UI 问题 (5.0)
34
30
 
35
- - 1e226cd66: chore: 修改 react-compat 依赖管理方式 & 更新 react-transition-group 依赖 (5.0)
36
- - 1662753e0: style: fix ui bug (5.0)
37
- - be5a59325: style: 修改样式问题 (5.0)
38
- - 2e56529f7: styles: 主题定制功能完善&&样式变量化写法改造&&兼容 RTL (5.0)
39
- - ecca3edc4: style(pop-confirm): 新版样式修改 (5.0)
40
- - d021b4fa6: feat: add onOpen callback trigger on visibility change (5.0)
41
- - 33da3144e: build: 将 package.json 中 exports 配置中的 types 配置放在最上面 (5.0)
42
- - 7f3abee55: style: fix ui bug (5.0)
43
- - a0f0c9d6b: style: 修改 UI 问题 (5.0)
44
- - 99801c2d1: fix: 修复 UI 问题 (5.0)
45
- - Updated dependencies [1e226cd66]
46
- - Updated dependencies [eea29eade]
47
- - Updated dependencies [1662753e0]
48
- - Updated dependencies [122d1d859]
49
- - Updated dependencies [8c0ee78f0]
50
- - Updated dependencies [9b34d99bc]
51
- - Updated dependencies [8f3aa85e4]
52
- - Updated dependencies [fd4c20bbd]
53
- - Updated dependencies [be5a59325]
54
- - Updated dependencies [71fc15e5c]
55
- - Updated dependencies [79ea480f3]
56
- - Updated dependencies [2e56529f7]
57
- - Updated dependencies [277c5033a]
58
- - Updated dependencies [95abba983]
59
- - Updated dependencies [8a92ec660]
60
- - Updated dependencies [1429eced2]
61
- - Updated dependencies [e3dea9be5]
62
- - Updated dependencies [976ec929d]
63
- - Updated dependencies [f1ab51725]
64
- - Updated dependencies [7f08a4e4f]
65
- - Updated dependencies [4006b2c8c]
66
- - Updated dependencies [e42e2badf]
67
- - Updated dependencies [33da3144e]
68
- - Updated dependencies [0a8cc07a7]
69
- - Updated dependencies [7f3abee55]
70
- - Updated dependencies [58ad82e94]
71
- - Updated dependencies [a0f0c9d6b]
72
- - Updated dependencies [f2be367e9]
73
- - Updated dependencies [1972fd16a]
74
- - Updated dependencies [99801c2d1]
75
- - Updated dependencies [86910f5e2]
76
- - @hi-ui/popper@5.0.0-experimental.0
77
- - @hi-ui/button@5.0.0-experimental.0
78
- - @hi-ui/icons@5.0.0-experimental.0
79
- - @hi-ui/core@5.0.0-experimental.0
80
- - @hi-ui/use-id@5.0.0-experimental.0
81
- - @hi-ui/use-latest@5.0.0-experimental.0
82
- - @hi-ui/use-toggle@5.0.0-experimental.0
83
- - @hi-ui/use-uncontrolled-state@5.0.0-experimental.0
84
- - @hi-ui/classname@5.0.0-experimental.0
85
- - @hi-ui/dom-utils@5.0.0-experimental.0
86
- - @hi-ui/env@5.0.0-experimental.0
87
- - @hi-ui/react-utils@5.0.0-experimental.0
88
- - @hi-ui/type-assertion@5.0.0-experimental.0
89
- - @hi-ui/react-compat@5.0.0-experimental.0
31
+ - Updated dependencies [[`1e226cd66`](https://github.com/XiaoMi/hiui/commit/1e226cd66413cea8eb1e63b1cb83c1bfbf5f0a41), [`eea29eade`](https://github.com/XiaoMi/hiui/commit/eea29eade364317198270daa62d7454279f9068a), [`7f204c892`](https://github.com/XiaoMi/hiui/commit/7f204c892156ea8a4fb95d218db9d59c8c4e0c49), [`122d1d859`](https://github.com/XiaoMi/hiui/commit/122d1d859bb92379fbe109fe9a5581259e6bb9a1), [`eb17c4697`](https://github.com/XiaoMi/hiui/commit/eb17c46978dfcb5e8ec0a0e3b3dcffabae8d31fe), [`8c0ee78f0`](https://github.com/XiaoMi/hiui/commit/8c0ee78f013dcd9ced94cef13a69933e039621aa), [`9b34d99bc`](https://github.com/XiaoMi/hiui/commit/9b34d99bc2aa8b78b9e3281e08afc086ac4afea1), [`8f3aa85e4`](https://github.com/XiaoMi/hiui/commit/8f3aa85e4e1977854cecdf2864498a77e959bc39), [`fd4c20bbd`](https://github.com/XiaoMi/hiui/commit/fd4c20bbd30e18bc4c1a2eb078acaa4790f7b2eb), [`79ea480f3`](https://github.com/XiaoMi/hiui/commit/79ea480f33bb8f692dda1e6252a9d2a75c3ac30d), [`2e56529f7`](https://github.com/XiaoMi/hiui/commit/2e56529f7ea8c74e2fac8b6061628d4fd0d862ac), [`3a7186e4b`](https://github.com/XiaoMi/hiui/commit/3a7186e4b4e7ce351c3856f3e1ba574b9f6df22f), [`277c5033a`](https://github.com/XiaoMi/hiui/commit/277c5033aacd43ef3d6b8e0b9e818a09ebe21875), [`95abba983`](https://github.com/XiaoMi/hiui/commit/95abba98391a31c3cd79704fa0a63f64f437601f), [`8a92ec660`](https://github.com/XiaoMi/hiui/commit/8a92ec660d7622768574dfe2e799b24d14e052a7), [`1429eced2`](https://github.com/XiaoMi/hiui/commit/1429eced2c79d22b6973229af3860b5dc48ad4a9), [`eb17c4697`](https://github.com/XiaoMi/hiui/commit/eb17c46978dfcb5e8ec0a0e3b3dcffabae8d31fe), [`e3dea9be5`](https://github.com/XiaoMi/hiui/commit/e3dea9be5e62d1e83147f787654a3576983572fa), [`976ec929d`](https://github.com/XiaoMi/hiui/commit/976ec929da088830d4d4bfa5438aa679676f71ca), [`f1ab51725`](https://github.com/XiaoMi/hiui/commit/f1ab517258599ee2dfad183e4a8c7b855ef409c1), [`7f08a4e4f`](https://github.com/XiaoMi/hiui/commit/7f08a4e4fa47e44c242fb441d2747a5ab22f3954), [`c407744fe`](https://github.com/XiaoMi/hiui/commit/c407744fea78d93da66b73eed0b62d18e5b3a011), [`d91a8bb0f`](https://github.com/XiaoMi/hiui/commit/d91a8bb0f887fa886215aa596852eef3c2ce8519), [`4006b2c8c`](https://github.com/XiaoMi/hiui/commit/4006b2c8cabba5ec553b69a17e4bf3fb53fe9180), [`e42e2badf`](https://github.com/XiaoMi/hiui/commit/e42e2badfd099ced93eaf8414513d7a49d1e66c0), [`33da3144e`](https://github.com/XiaoMi/hiui/commit/33da3144e916edd75ee0669ca9e5090edc681193), [`58ad82e94`](https://github.com/XiaoMi/hiui/commit/58ad82e9441e76bf6090e6a0f4e36a04342c25f0), [`95d930354`](https://github.com/XiaoMi/hiui/commit/95d930354a1ab4291e98a9abccb9525d6c210795), [`f2be367e9`](https://github.com/XiaoMi/hiui/commit/f2be367e959d42506953fe9d57cf677ccb79305e), [`1972fd16a`](https://github.com/XiaoMi/hiui/commit/1972fd16ae1971690412192bce03d6860af8efdd), [`59cef699f`](https://github.com/XiaoMi/hiui/commit/59cef699f96f56d4f68fae7f9dadb960c487b5de), [`99801c2d1`](https://github.com/XiaoMi/hiui/commit/99801c2d12628c194657579eccd09a86aedea22b)]:
32
+ - @hi-ui/popper@5.0.0
33
+ - @hi-ui/button@5.0.0
34
+ - @hi-ui/icons@5.0.0
35
+ - @hi-ui/core@5.0.0
36
+ - @hi-ui/use-id@5.0.0
37
+ - @hi-ui/use-latest@5.0.0
38
+ - @hi-ui/use-toggle@5.0.0
39
+ - @hi-ui/use-uncontrolled-state@5.0.0
40
+ - @hi-ui/classname@5.0.0
41
+ - @hi-ui/dom-utils@5.0.0
42
+ - @hi-ui/env@5.0.0
43
+ - @hi-ui/react-utils@5.0.0
44
+ - @hi-ui/type-assertion@5.0.0
45
+ - @hi-ui/use-merge-semantic@5.0.0
46
+ - @hi-ui/react-compat@5.0.0
90
47
 
91
48
  ## 4.2.5
92
49
 
@@ -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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './styles/index.scss';
2
3
  export * from './PopConfirm';
3
4
  export declare const PopConfirm: import("react").ForwardRefExoticComponent<import("./PopConfirm").PopConfirmProps & import("react").RefAttributes<HTMLDivElement | null>> & {
@@ -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: React.SyntheticEvent) => void;
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: React.SetStateAction<boolean>, ...args: any[]) => void;
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>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PopConfirm, PopConfirmProps } from './PopConfirm';
2
3
  export interface PopConfirmApiProps extends PopConfirmProps {
3
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hi-ui/pop-confirm",
3
- "version": "5.0.0-experimental.1",
3
+ "version": "5.0.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-experimental.1",
48
- "@hi-ui/classname": "^5.0.0-experimental.0",
49
- "@hi-ui/dom-utils": "^5.0.0-experimental.0",
50
- "@hi-ui/env": "^5.0.0-experimental.0",
51
- "@hi-ui/icons": "^5.0.0-experimental.1",
52
- "@hi-ui/popper": "^5.0.0-experimental.1",
53
- "@hi-ui/react-compat": "^5.0.0-experimental.0",
54
- "@hi-ui/react-utils": "^5.0.0-experimental.0",
55
- "@hi-ui/type-assertion": "^5.0.0-experimental.0",
56
- "@hi-ui/use-id": "^5.0.0-experimental.0",
57
- "@hi-ui/use-latest": "^5.0.0-experimental.0",
58
- "@hi-ui/use-toggle": "^5.0.0-experimental.0",
59
- "@hi-ui/use-uncontrolled-state": "^5.0.0-experimental.0",
60
- "@hi-ui/use-merge-semantic": "^5.0.0-experimental.0"
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-merge-semantic": "^5.0.0",
58
+ "@hi-ui/use-latest": "^5.0.0",
59
+ "@hi-ui/use-toggle": "^5.0.0",
60
+ "@hi-ui/use-uncontrolled-state": "^5.0.0"
61
61
  },
62
62
  "peerDependencies": {
63
- "@hi-ui/core": ">=5.0.0-experimental.1",
63
+ "@hi-ui/core": ">=5.0.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-experimental.1",
69
- "@hi-ui/core-css": "^5.0.0-experimental.2",
68
+ "@hi-ui/core": "^5.0.0",
69
+ "@hi-ui/core-css": "^5.0.0",
70
70
  "react": "^17.0.1",
71
71
  "react-dom": "^17.0.1"
72
72
  }