@lynx-js/lynx-ui-presence 3.130.0 → 3.133.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 +14 -0
- package/dist/types/index.docs.d.ts +53 -0
- package/dist/types/index.docs.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/types/index.docs.ts +61 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @lynx-js/lynx-ui-presence
|
|
2
2
|
|
|
3
|
+
## 3.133.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`85d2e9d`](https://github.com/lynx-family/lynx-ui/commit/85d2e9d12e9aeee3256856f1be0076524ddb7d8a)]:
|
|
8
|
+
- @lynx-js/lynx-ui-common@3.133.0
|
|
9
|
+
|
|
10
|
+
## 3.131.0
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`bc167c5`](https://github.com/lynx-family/lynx-ui/commit/bc167c5d03cdb344156e897c4d2d69f95bf7d29b)]:
|
|
15
|
+
- @lynx-js/lynx-ui-common@3.131.0
|
|
16
|
+
|
|
3
17
|
## 3.130.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -2,12 +2,65 @@ import type { ReactNode } from '@lynx-js/react';
|
|
|
2
2
|
import type { AnimationEvent, EventHandler, TransitionEvent } from '@lynx-js/types';
|
|
3
3
|
import type { PresenceState } from '../utils';
|
|
4
4
|
export interface PresenceAnimationStatus {
|
|
5
|
+
/**
|
|
6
|
+
* The popper is opened.
|
|
7
|
+
* @zh 弹层处于打开状态。
|
|
8
|
+
*/
|
|
5
9
|
open?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* The popper is closed.
|
|
12
|
+
* If it's force mounted, the initial status will be closed.
|
|
13
|
+
* @zh 弹层处于关闭状态。如果开启了 forceMount,初始状态会是 ui-closed。
|
|
14
|
+
*/
|
|
6
15
|
closed?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The popper is performing the leaving animation. Takes effect when transition:true.
|
|
18
|
+
* @zh 弹层正在执行离开动画。仅在 transition:true 时生效。
|
|
19
|
+
*/
|
|
7
20
|
leaving?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* The popper is performing the entering animation. Takes effect when transition:true.
|
|
23
|
+
* @zh 弹层正在执行进入动画。仅在 transition:true 时生效。
|
|
24
|
+
*/
|
|
8
25
|
entering?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* The popper is doing the animations. Takes effect when transition:true.
|
|
28
|
+
* @zh 弹层正在执行动画。仅在 transition:true 时生效。
|
|
29
|
+
*/
|
|
9
30
|
animating?: boolean;
|
|
10
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* UI variants applied by Presence based on animation status.
|
|
34
|
+
* Use them as CSS selectors to style different states.
|
|
35
|
+
* @zh Presence 根据状态注入的 ui-variants,可用于 CSS selector 按状态定制样式。
|
|
36
|
+
*/
|
|
37
|
+
export interface PresenceUiVariants {
|
|
38
|
+
/**
|
|
39
|
+
* Applied when `status.open` is true.
|
|
40
|
+
* @zh 当 status.open 为 true 时生效,可用于 `.ui-open { ... }`。
|
|
41
|
+
*/
|
|
42
|
+
'ui-open'?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Applied when `status.closed` is true.
|
|
45
|
+
* @zh 当 status.closed 为 true 时生效,可用于 `.ui-closed { ... }`。
|
|
46
|
+
*/
|
|
47
|
+
'ui-closed'?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Applied when `status.entering` is true.
|
|
50
|
+
* @zh 当 status.entering 为 true 时生效,可用于 `.ui-entering { ... }`。
|
|
51
|
+
*/
|
|
52
|
+
'ui-entering'?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Applied when `status.leaving` is true.
|
|
55
|
+
* @zh 当 status.leaving 为 true 时生效,可用于 `.ui-leaving { ... }`。
|
|
56
|
+
*/
|
|
57
|
+
'ui-leaving'?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Applied when `status.animating` is true.
|
|
60
|
+
* @zh 当 status.animating 为 true 时生效,可用于 `.ui-animating { ... }`。
|
|
61
|
+
*/
|
|
62
|
+
'ui-animating'?: boolean;
|
|
63
|
+
}
|
|
11
64
|
export type PresenceChildrenType = (status: PresenceAnimationStatus) => ReactNode;
|
|
12
65
|
export interface PresenceProps {
|
|
13
66
|
show: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.docs.d.ts","sourceRoot":"","sources":["../../src/types/index.docs.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,eAAe,EAChB,MAAM,gBAAgB,CAAA;AAEvB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAE7C,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.docs.d.ts","sourceRoot":"","sources":["../../src/types/index.docs.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,eAAe,EAChB,MAAM,gBAAgB,CAAA;AAEvB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAE7C,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED;;;;GAI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gB,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAA;KAIjD,CAAA;IACD,iBAAiB,EAAE;QACjB,aAAa,EAAE,YAAY,CAAC,cAAc,CAAC,CAAA;QAC3C,cAAc,EAAE,YAAY,CAAC,cAAc,CAAC,CAAA;QAC5C,sBAAsB,EAAE,YAAY,CAAC,eAAe,CAAC,CAAA;QACrD,WAAW,EAAE,YAAY,CAAC,cAAc,CAAC,CAAA;QACzC,qBAAqB,EAAE,YAAY,CAAC,eAAe,CAAC,CAAA;QACpD,mBAAmB,EAAE,YAAY,CAAC,eAAe,CAAC,CAAA;KACnD,CAAA;CACF;AAED,MAAM,MAAM,qBAAqB,GAAG,mBAAmB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/lynx-ui-presence",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.133.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/lynx-family/lynx-ui.git",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"clsx": "^2.1.1",
|
|
28
|
-
"@lynx-js/lynx-ui-common": "3.
|
|
28
|
+
"@lynx-js/lynx-ui-common": "3.133.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@lynx-js/react": "0.
|
|
31
|
+
"@lynx-js/react": "0.114.0",
|
|
32
32
|
"@lynx-js/types": "3.6.0",
|
|
33
33
|
"@rslib/core": "^0.16.0",
|
|
34
34
|
"@types/react": "^18.3.8",
|
package/src/types/index.docs.ts
CHANGED
|
@@ -13,14 +13,75 @@ import type {
|
|
|
13
13
|
import type { PresenceState } from '../utils'
|
|
14
14
|
|
|
15
15
|
export interface PresenceAnimationStatus {
|
|
16
|
+
/**
|
|
17
|
+
* The popper is opened.
|
|
18
|
+
* @zh 弹层处于打开状态。
|
|
19
|
+
*/
|
|
16
20
|
open?: boolean
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The popper is closed.
|
|
24
|
+
* If it's force mounted, the initial status will be closed.
|
|
25
|
+
* @zh 弹层处于关闭状态。如果开启了 forceMount,初始状态会是 ui-closed。
|
|
26
|
+
*/
|
|
17
27
|
closed?: boolean
|
|
18
28
|
|
|
29
|
+
/**
|
|
30
|
+
* The popper is performing the leaving animation. Takes effect when transition:true.
|
|
31
|
+
* @zh 弹层正在执行离开动画。仅在 transition:true 时生效。
|
|
32
|
+
*/
|
|
19
33
|
leaving?: boolean
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The popper is performing the entering animation. Takes effect when transition:true.
|
|
37
|
+
* @zh 弹层正在执行进入动画。仅在 transition:true 时生效。
|
|
38
|
+
*/
|
|
20
39
|
entering?: boolean
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* The popper is doing the animations. Takes effect when transition:true.
|
|
43
|
+
* @zh 弹层正在执行动画。仅在 transition:true 时生效。
|
|
44
|
+
*/
|
|
21
45
|
animating?: boolean
|
|
22
46
|
}
|
|
23
47
|
|
|
48
|
+
/**
|
|
49
|
+
* UI variants applied by Presence based on animation status.
|
|
50
|
+
* Use them as CSS selectors to style different states.
|
|
51
|
+
* @zh Presence 根据状态注入的 ui-variants,可用于 CSS selector 按状态定制样式。
|
|
52
|
+
*/
|
|
53
|
+
export interface PresenceUiVariants {
|
|
54
|
+
/**
|
|
55
|
+
* Applied when `status.open` is true.
|
|
56
|
+
* @zh 当 status.open 为 true 时生效,可用于 `.ui-open { ... }`。
|
|
57
|
+
*/
|
|
58
|
+
'ui-open'?: boolean
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Applied when `status.closed` is true.
|
|
62
|
+
* @zh 当 status.closed 为 true 时生效,可用于 `.ui-closed { ... }`。
|
|
63
|
+
*/
|
|
64
|
+
'ui-closed'?: boolean
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Applied when `status.entering` is true.
|
|
68
|
+
* @zh 当 status.entering 为 true 时生效,可用于 `.ui-entering { ... }`。
|
|
69
|
+
*/
|
|
70
|
+
'ui-entering'?: boolean
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Applied when `status.leaving` is true.
|
|
74
|
+
* @zh 当 status.leaving 为 true 时生效,可用于 `.ui-leaving { ... }`。
|
|
75
|
+
*/
|
|
76
|
+
'ui-leaving'?: boolean
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Applied when `status.animating` is true.
|
|
80
|
+
* @zh 当 status.animating 为 true 时生效,可用于 `.ui-animating { ... }`。
|
|
81
|
+
*/
|
|
82
|
+
'ui-animating'?: boolean
|
|
83
|
+
}
|
|
84
|
+
|
|
24
85
|
export type PresenceChildrenType = (
|
|
25
86
|
status: PresenceAnimationStatus,
|
|
26
87
|
) => ReactNode
|