@lynx-js/lynx-ui-swipe-action 3.140.1 → 3.140.2
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 +6 -0
- package/README.md +5 -2
- package/dist/types/index.docs.d.ts +0 -7
- package/dist/types/index.docs.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/types/index.docs.ts +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @lynx-js/lynx-ui-swipe-action
|
|
2
2
|
|
|
3
|
+
## 3.140.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Remove the unused `children` prop from `SwipeActionProps` and its API reference. Use `displayArea` for visible content and `actionArea` for swipe actions. ([#371](https://github.com/lynx-family/lynx-ui/pull/371))
|
|
8
|
+
|
|
3
9
|
## 3.140.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -27,10 +27,13 @@ The `lynx-ui-swipe-action` follows a headless composition pattern.
|
|
|
27
27
|
|
|
28
28
|
## Component Structure
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
`SwipeAction` exposes `displayArea` and `actionArea` as structural slots.
|
|
31
31
|
|
|
32
32
|
```tsx
|
|
33
|
-
<SwipeAction
|
|
33
|
+
<SwipeAction
|
|
34
|
+
displayArea={displayArea}
|
|
35
|
+
actionArea={actionArea}
|
|
36
|
+
/>
|
|
34
37
|
```
|
|
35
38
|
|
|
36
39
|
- **`SwipeAction`**: The main swipe action container.
|
|
@@ -39,13 +39,6 @@ export interface SwipeActionProps extends ComponentBasicProps {
|
|
|
39
39
|
* @iOS
|
|
40
40
|
*/
|
|
41
41
|
estimatedActionAreaSize?: number;
|
|
42
|
-
/**
|
|
43
|
-
* The content of the SwipeAction. The content will be displayed on the left side of the SwipeAction.
|
|
44
|
-
* @zh SwipeAction 的内容. 内容会显示在 SwipeAction 的左侧.
|
|
45
|
-
* @Android
|
|
46
|
-
* @iOS
|
|
47
|
-
*/
|
|
48
|
-
children?: ReactElement;
|
|
49
42
|
/**
|
|
50
43
|
* Force touch event to send to SwipeAction.
|
|
51
44
|
* @zh 制触摸事件发送到 SwipeAction.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.docs.d.ts","sourceRoot":"","sources":["../../src/types/index.docs.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAEhE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAElE,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB;IAC3D,GAAG,CAAC,EAAE,YAAY,CAAC,cAAc,CAAC,CAAA;IAClC;;;;;;OAMG;IACH,WAAW,EAAE,OAAO,CAAA;IACpB;;;;;OAKG;IACH,aAAa,EAAE,MAAM,CAAA;IACrB;;;;;OAKG;IACH,WAAW,EAAE,YAAY,CAAA;IACzB;;;;;OAKG;IACH,UAAU,EAAE,YAAY,CAAA;IACxB;;;;;;OAMG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC;;;;;OAKG;IACH,
|
|
1
|
+
{"version":3,"file":"index.docs.d.ts","sourceRoot":"","sources":["../../src/types/index.docs.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAEhE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAElE,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB;IAC3D,GAAG,CAAC,EAAE,YAAY,CAAC,cAAc,CAAC,CAAA;IAClC;;;;;;OAMG;IACH,WAAW,EAAE,OAAO,CAAA;IACpB;;;;;OAKG;IACH,aAAa,EAAE,MAAM,CAAA;IACrB;;;;;OAKG;IACH,WAAW,EAAE,YAAY,CAAA;IACzB;;;;;OAKG;IACH,UAAU,EAAE,YAAY,CAAA;IACxB;;;;;;OAMG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC;;;;;OAKG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAA;IACpC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAChC;AAED,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,cAAc,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAA;IAC3C;;;;;OAKG;IACH,eAAe,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAA;CAC7C"}
|
package/package.json
CHANGED
package/src/types/index.docs.ts
CHANGED
|
@@ -45,13 +45,6 @@ export interface SwipeActionProps extends ComponentBasicProps {
|
|
|
45
45
|
* @iOS
|
|
46
46
|
*/
|
|
47
47
|
estimatedActionAreaSize?: number
|
|
48
|
-
/**
|
|
49
|
-
* The content of the SwipeAction. The content will be displayed on the left side of the SwipeAction.
|
|
50
|
-
* @zh SwipeAction 的内容. 内容会显示在 SwipeAction 的左侧.
|
|
51
|
-
* @Android
|
|
52
|
-
* @iOS
|
|
53
|
-
*/
|
|
54
|
-
children?: ReactElement
|
|
55
48
|
/**
|
|
56
49
|
* Force touch event to send to SwipeAction.
|
|
57
50
|
* @zh 制触摸事件发送到 SwipeAction.
|