@proximus/lavender-entrypoint-native 0.1.0-alpha.4 → 0.1.0-alpha.6
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 +10 -0
- package/dist/PxEntryPoint.js +51 -0
- package/dist/far/away/package.json +36 -0
- package/dist/index.js +1 -0
- package/package.json +16 -9
- package/tsconfig.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.1.0-alpha.6](https://github.com/Pxs-Corporate/react-native-lavender/compare/@proximus/lavender-entrypoint-native@0.1.0-alpha.5...@proximus/lavender-entrypoint-native@0.1.0-alpha.6) (2025-09-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @proximus/lavender-entrypoint-native
|
|
9
|
+
|
|
10
|
+
# [0.1.0-alpha.5](https://github.com/Pxs-Corporate/react-native-lavender/compare/@proximus/lavender-entrypoint-native@0.1.0-alpha.4...@proximus/lavender-entrypoint-native@0.1.0-alpha.5) (2025-09-25)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- **BCRI-000000:** no free space on gh runner during build ([#27](https://github.com/Pxs-Corporate/react-native-lavender/issues/27)) ([a7c8604](https://github.com/Pxs-Corporate/react-native-lavender/commit/a7c86043b5cefcb10fd768d449c5718fbabe87ec))
|
|
15
|
+
|
|
6
16
|
# [0.1.0-alpha.4](https://github.com/Pxs-Corporate/react-native-lavender/compare/@proximus/lavender-entrypoint-native@0.1.0-alpha.3...@proximus/lavender-entrypoint-native@0.1.0-alpha.4) (2025-09-19)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @proximus/lavender-entrypoint-native
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Image, StyleSheet, TouchableOpacity, View, } from 'react-native';
|
|
3
|
+
import { a11y, e2eID, PxContainer } from '@proximus/lavender-common-native';
|
|
4
|
+
import { PxIcon } from '@proximus/lavender-icon-native';
|
|
5
|
+
import { Body, Header } from '@proximus/lavender-texts-native';
|
|
6
|
+
import { PxPatch } from '@proximus/lavender-patch-native';
|
|
7
|
+
export function PxEntryPoint({ title, subTitle, icon, onPress, iconSize = 24, containerStyle, leftComponent, rightComponent, testID, patch, patchType = 'promo', imageSrc, imageStyle, imageWidth, iconA11yProps, }) {
|
|
8
|
+
return (React.createElement(TouchableOpacity, { ...a11y({
|
|
9
|
+
accessibilityRole: 'button',
|
|
10
|
+
accessible: true,
|
|
11
|
+
accessibilityLabel: title,
|
|
12
|
+
accessibilityHint: subTitle,
|
|
13
|
+
}), style: [{ width: '100%' }, containerStyle], onPress: onPress, ...e2eID(testID) },
|
|
14
|
+
React.createElement(PxContainer, { wrapperStyle: styles.container },
|
|
15
|
+
!!icon && React.createElement(PxIcon, { name: icon, size: iconSize }),
|
|
16
|
+
!icon && !!imageSrc && (React.createElement(Image, { source: imageSrc, resizeMode: "stretch", style: [
|
|
17
|
+
{ height: imageWidth ?? 50, width: imageWidth ?? 50 },
|
|
18
|
+
imageStyle,
|
|
19
|
+
], accessibilityIgnoresInvertColors: true })),
|
|
20
|
+
!icon && !imageSrc && !!leftComponent && (React.createElement(View, { style: styles.leftComponent }, leftComponent)),
|
|
21
|
+
React.createElement(View, { style: styles.content },
|
|
22
|
+
React.createElement(Header, { style: {
|
|
23
|
+
fontSize: 14,
|
|
24
|
+
} }, title),
|
|
25
|
+
subTitle && React.createElement(Body, { ...e2eID(`${testID}_subTitle`) }, subTitle)),
|
|
26
|
+
rightComponent,
|
|
27
|
+
React.createElement(PxIcon, { containerStyle: [styles.rightIcon], background: false, name: 'chevron_right', size: 24, style: {
|
|
28
|
+
marginLeft: 1,
|
|
29
|
+
}, ...a11y({ accessible: true, ...iconA11yProps }) })),
|
|
30
|
+
patch ? (React.createElement(PxPatch, { borderType: 'bottomLeft', type: patchType, title: patch, wrapperStyle: { position: 'absolute', top: -13, right: 16 }, ...a11y({ accessible: false }) })) : undefined));
|
|
31
|
+
}
|
|
32
|
+
const styles = StyleSheet.create({
|
|
33
|
+
container: {
|
|
34
|
+
flexDirection: 'row',
|
|
35
|
+
padding: 16,
|
|
36
|
+
alignItems: 'center',
|
|
37
|
+
},
|
|
38
|
+
content: {
|
|
39
|
+
flex: 1,
|
|
40
|
+
marginLeft: 16,
|
|
41
|
+
},
|
|
42
|
+
rightIcon: {
|
|
43
|
+
marginLeft: 16,
|
|
44
|
+
width: 24,
|
|
45
|
+
height: 24,
|
|
46
|
+
},
|
|
47
|
+
leftComponent: {
|
|
48
|
+
justifyContent: 'center',
|
|
49
|
+
alignItems: 'center',
|
|
50
|
+
},
|
|
51
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@proximus/lavender-entrypoint-native",
|
|
3
|
+
"version": "0.1.0-alpha.6",
|
|
4
|
+
"description": "Lavender entrypoint component",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"peerDependencies": {
|
|
9
|
+
"@proximus/lavender-common-native": "*",
|
|
10
|
+
"@proximus/lavender-icon-native": "*",
|
|
11
|
+
"@proximus/lavender-patch-native": "*",
|
|
12
|
+
"@proximus/lavender-styling-native": "*",
|
|
13
|
+
"@proximus/lavender-texts-native": "*"
|
|
14
|
+
},
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public"
|
|
17
|
+
},
|
|
18
|
+
"lerna": {
|
|
19
|
+
"command": {
|
|
20
|
+
"publish": {
|
|
21
|
+
"assets": [
|
|
22
|
+
{
|
|
23
|
+
"from": "dist/far/away/package.json",
|
|
24
|
+
"to": "."
|
|
25
|
+
},
|
|
26
|
+
"dist/*.js",
|
|
27
|
+
"dist/*.d.ts",
|
|
28
|
+
"dist/*.d.ts.map",
|
|
29
|
+
"src",
|
|
30
|
+
"package.json"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"gitHead": "e50a17526561b3eafb159e36c737173956093e0d"
|
|
36
|
+
}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PxEntryPoint';
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proximus/lavender-entrypoint-native",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.6",
|
|
4
4
|
"description": "Lavender entrypoint component",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"clean": "rm -rf dist",
|
|
10
|
-
"
|
|
10
|
+
"transform-package-json": "node ../../../scripts/tranformPackageJson.js package.json dist/far/away",
|
|
11
|
+
"prepublish": "yarn clean && yarn transform-package-json && yarn build",
|
|
11
12
|
"build": "npx tsc -p tsconfig.json"
|
|
12
13
|
},
|
|
13
14
|
"peerDependencies": {
|
|
@@ -18,11 +19,11 @@
|
|
|
18
19
|
"@proximus/lavender-texts-native": "workspace:*"
|
|
19
20
|
},
|
|
20
21
|
"devDependencies": {
|
|
21
|
-
"@proximus/lavender-common-native": "0.1.0-alpha.
|
|
22
|
-
"@proximus/lavender-icon-native": "0.1.0-alpha.
|
|
23
|
-
"@proximus/lavender-patch-native": "0.1.0-alpha.
|
|
24
|
-
"@proximus/lavender-styling-native": "0.1.0-alpha.
|
|
25
|
-
"@proximus/lavender-texts-native": "0.1.0-alpha.
|
|
22
|
+
"@proximus/lavender-common-native": "0.1.0-alpha.6",
|
|
23
|
+
"@proximus/lavender-icon-native": "0.1.0-alpha.6",
|
|
24
|
+
"@proximus/lavender-patch-native": "0.1.0-alpha.6",
|
|
25
|
+
"@proximus/lavender-styling-native": "0.1.0-alpha.5",
|
|
26
|
+
"@proximus/lavender-texts-native": "0.1.0-alpha.6"
|
|
26
27
|
},
|
|
27
28
|
"publishConfig": {
|
|
28
29
|
"access": "public"
|
|
@@ -31,12 +32,18 @@
|
|
|
31
32
|
"command": {
|
|
32
33
|
"publish": {
|
|
33
34
|
"assets": [
|
|
34
|
-
|
|
35
|
+
{
|
|
36
|
+
"from": "dist/far/away/package.json",
|
|
37
|
+
"to": "."
|
|
38
|
+
},
|
|
39
|
+
"dist/*.js",
|
|
40
|
+
"dist/*.d.ts",
|
|
41
|
+
"dist/*.d.ts.map",
|
|
35
42
|
"src",
|
|
36
43
|
"package.json"
|
|
37
44
|
]
|
|
38
45
|
}
|
|
39
46
|
}
|
|
40
47
|
},
|
|
41
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "e50a17526561b3eafb159e36c737173956093e0d"
|
|
42
49
|
}
|
package/tsconfig.json
CHANGED