@proximus/lavender-cells-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 CHANGED
@@ -3,51 +3,12 @@
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.4](https://github.com/Pxs-Corporate/react-native-lavender/compare/@proximus/lavender-cells-native@0.1.0-alpha.3...@proximus/lavender-cells-native@0.1.0-alpha.4) (2025-09-19)
6
+ # [0.1.0-alpha.6](https://github.com/Pxs-Corporate/react-native-lavender/compare/@proximus/lavender-cells-native@0.1.0-alpha.5...@proximus/lavender-cells-native@0.1.0-alpha.6) (2025-09-26)
7
7
 
8
8
  **Note:** Version bump only for package @proximus/lavender-cells-native
9
9
 
10
- # [0.1.0-alpha.3](https://github.com/Pxs-Corporate/react-native-lavender/compare/@proximus/lavender-cells-native@0.1.0-alpha.2...@proximus/lavender-cells-native@0.1.0-alpha.3) (2025-09-12)
11
-
12
- **Note:** Version bump only for package @proximus/lavender-cells-native
13
-
14
- # [0.1.0-alpha.2](https://github.com/Pxs-Corporate/react-native-lavender/compare/@proximus/lavender-cells-native@0.1.0-alpha.1...@proximus/lavender-cells-native@0.1.0-alpha.2) (2025-09-05)
15
-
16
- ### Features
17
-
18
- - **BCRI-4279213:** update token architecture and component styles ([#18](https://github.com/Pxs-Corporate/react-native-lavender/issues/18)) ([2fabf41](https://github.com/Pxs-Corporate/react-native-lavender/commit/2fabf416ce069e9756daa868c3012181db87e7f5))
19
-
20
- # [0.1.0-alpha.1](https://github.com/Pxs-Corporate/react-native-lavender/compare/@proximus/lavender-cells-native@0.1.0-alpha.0...@proximus/lavender-cells-native@0.1.0-alpha.1) (2025-08-13)
21
-
22
- ### Bug Fixes
23
-
24
- - **BCRI-4210372:** fix types field in modules ([68ac126](https://github.com/Pxs-Corporate/react-native-lavender/commit/68ac12657112473ae9e0e683076b1d9172be9ce6))
25
-
26
- # 0.1.0-alpha.0 (2025-08-13)
10
+ # [0.1.0-alpha.5](https://github.com/Pxs-Corporate/react-native-lavender/compare/@proximus/lavender-cells-native@0.1.0-alpha.4...@proximus/lavender-cells-native@0.1.0-alpha.5) (2025-09-25)
27
11
 
28
12
  ### Bug Fixes
29
13
 
30
- - **BCRI-3807748:** fix checkbox android native crash ([f358872](https://github.com/Pxs-Corporate/react-native-lavender/commit/f3588725a8a7440722b6fc13a5586da2da758ea0))
31
-
32
- ### Features
33
-
34
- - **BCRI-000000:** adding testids on cells ([1e5f002](https://github.com/Pxs-Corporate/react-native-lavender/commit/1e5f00201a84516c1a6fe3fe5c04032204c32ae8))
35
- - **BCRI-3660857:** cell components ([af9e45c](https://github.com/Pxs-Corporate/react-native-lavender/commit/af9e45cefc20d08d2338380ff4cd8cd6851abe24))
36
- - **BCRI-4002610:** update icon handling and remove deprecated font references ([4399fe4](https://github.com/Pxs-Corporate/react-native-lavender/commit/4399fe4bff06aa70f5c29705fcc89d5243b0e3e7))
37
- - **BCRI-4149480:** cell background color ([acf6722](https://github.com/Pxs-Corporate/react-native-lavender/commit/acf67226cf17589647163886f64f77cd18a87959))
38
- - **BCRI-4210372:** automatic versionning ([9c1f0a0](https://github.com/Pxs-Corporate/react-native-lavender/commit/9c1f0a00e19a9d1a277044ea627632032a674102))
39
- - **BCRI-4210372:** fix bad version numbers ([bc6a8ba](https://github.com/Pxs-Corporate/react-native-lavender/commit/bc6a8ba48c15347442f2ac38dacae7ffba3d95eb))
40
-
41
- # (2025-08-13)
42
-
43
- ### Bug Fixes
44
-
45
- - **BCRI-3807748:** fix checkbox android native crash ([f358872](https://github.com/Pxs-Corporate/react-native-lavender/commit/f3588725a8a7440722b6fc13a5586da2da758ea0))
46
-
47
- ### Features
48
-
49
- - **BCRI-000000:** adding testids on cells ([1e5f002](https://github.com/Pxs-Corporate/react-native-lavender/commit/1e5f00201a84516c1a6fe3fe5c04032204c32ae8))
50
- - **BCRI-3660857:** cell components ([af9e45c](https://github.com/Pxs-Corporate/react-native-lavender/commit/af9e45cefc20d08d2338380ff4cd8cd6851abe24))
51
- - **BCRI-4002610:** update icon handling and remove deprecated font references ([4399fe4](https://github.com/Pxs-Corporate/react-native-lavender/commit/4399fe4bff06aa70f5c29705fcc89d5243b0e3e7))
52
- - **BCRI-4149480:** cell background color ([acf6722](https://github.com/Pxs-Corporate/react-native-lavender/commit/acf67226cf17589647163886f64f77cd18a87959))
53
- - **BCRI-4210372:** automatic versionning ([9c1f0a0](https://github.com/Pxs-Corporate/react-native-lavender/commit/9c1f0a00e19a9d1a277044ea627632032a674102))
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))
package/dist/PxCell.js ADDED
@@ -0,0 +1,104 @@
1
+ import { StyleSheet, TouchableOpacity, View, } from 'react-native';
2
+ import { a11y, e2eID } from '@proximus/lavender-common-native';
3
+ import { Body, Header } from '@proximus/lavender-texts-native';
4
+ import { PxSeparator } from '@proximus/lavender-separator-native';
5
+ import { useTheme } from '@proximus/lavender-styling-native';
6
+ import React from 'react';
7
+ const BORDER_RADIUS = 8;
8
+ export function PxCell({ label, description, onPress, backgroundColor, containerStyle, prefix, suffix, suffixLabel, suffixDescription, testID, type = 'naked', accessible = true, accessibilityRole, accessibilityLabel, accessibilityHint, disabled, labelsAccessibilityProps, borderRadius = 'none', separator = false, }) {
9
+ const { theme } = useTheme();
10
+ return (React.createElement(TouchableOpacity, { ...a11y({
11
+ accessibilityRole,
12
+ accessible,
13
+ importantForAccessibility: accessible ? 'yes' : 'no',
14
+ accessibilityLabel: accessibilityLabel || label,
15
+ accessibilityHint: accessibilityHint || description,
16
+ }), disabled: disabled || !onPress, onPress: onPress, ...e2eID(testID) },
17
+ React.createElement(View, { style: [
18
+ styles.container,
19
+ containerStyle,
20
+ {
21
+ backgroundColor: type === 'naked'
22
+ ? 'transparent'
23
+ : backgroundColor
24
+ ? theme.t(`ColorBackgroundContainer${backgroundColor}Default`)
25
+ : theme.t('ColorBackgroundContainerDefaultDefault'),
26
+ borderTopLeftRadius: ['top', 'all'].includes(borderRadius)
27
+ ? BORDER_RADIUS
28
+ : 0,
29
+ borderTopEndRadius: ['top', 'all'].includes(borderRadius)
30
+ ? BORDER_RADIUS
31
+ : 0,
32
+ borderBottomLeftRadius: ['bottom', 'all'].includes(borderRadius)
33
+ ? BORDER_RADIUS
34
+ : 0,
35
+ borderBottomRightRadius: ['bottom', 'all'].includes(borderRadius)
36
+ ? BORDER_RADIUS
37
+ : 0,
38
+ borderRadius: 20,
39
+ },
40
+ disabled && {
41
+ backgroundColor: theme.t('ColorBackgroundStateDisabledDefault'),
42
+ },
43
+ ] },
44
+ !!prefix && React.createElement(View, { style: styles.leftComponent }, prefix),
45
+ React.createElement(View, { style: styles.content },
46
+ React.createElement(Header, { ...a11y({
47
+ ...labelsAccessibilityProps,
48
+ accessible,
49
+ importantForAccessibility: accessible ? 'yes' : 'no',
50
+ }), style: [
51
+ {
52
+ fontSize: theme.t('TextSizeLabelLMobile').number,
53
+ color: theme.t('ColorTextNeutralDefault'),
54
+ },
55
+ ], disabled: disabled }, label),
56
+ description && (React.createElement(Body, { ...a11y({
57
+ ...labelsAccessibilityProps,
58
+ accessible,
59
+ importantForAccessibility: accessible ? 'yes' : 'no',
60
+ }), ...e2eID(`${testID}_subTitle`), style: [
61
+ {
62
+ fontSize: theme.t('TextSizeLabelMMobile').number,
63
+ color: theme.t('ColorTextNeutralDefault'),
64
+ },
65
+ ], disabled: disabled }, description))),
66
+ suffixLabel && suffixDescription && (React.createElement(View, { style: styles.suffixLabelDescription },
67
+ React.createElement(Header, { ...a11y({
68
+ ...labelsAccessibilityProps,
69
+ accessible,
70
+ importantForAccessibility: accessible ? 'yes' : 'no',
71
+ }), style: {
72
+ textAlign: 'right',
73
+ fontSize: theme.t('TextSizeLabelLMobile').number,
74
+ color: theme.t('ColorTextNeutralDefault'),
75
+ }, disabled: disabled }, suffixLabel),
76
+ description && (React.createElement(Body, { ...a11y({
77
+ ...labelsAccessibilityProps,
78
+ accessible,
79
+ importantForAccessibility: accessible ? 'yes' : 'no',
80
+ }), style: {
81
+ color: theme.t('ColorTextNeutralDefault'),
82
+ fontSize: theme.t('TextSizeLabelMMobile').number,
83
+ }, ...e2eID(`${testID}_subTitle`), disabled: disabled }, suffixDescription)))),
84
+ suffix),
85
+ separator && React.createElement(PxSeparator, null)));
86
+ }
87
+ const styles = StyleSheet.create({
88
+ container: {
89
+ flexDirection: 'row',
90
+ padding: 16,
91
+ alignItems: 'center',
92
+ gap: 16,
93
+ },
94
+ content: {
95
+ flex: 1,
96
+ },
97
+ leftComponent: {
98
+ justifyContent: 'center',
99
+ alignItems: 'center',
100
+ },
101
+ suffixLabelDescription: {
102
+ alignSelf: 'flex-end',
103
+ },
104
+ });
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import { PxCell } from './PxCell';
3
+ import { PxCheckBox } from '@proximus/lavender-checkbox-native';
4
+ import { StyleSheet, View } from 'react-native';
5
+ export function PxCellCheckbox(props) {
6
+ const { side = 'right' } = props;
7
+ const checkbox = (React.createElement(PxCheckBox, { disabled: props.disabled, accessibilityLabel: props.label, accessibilityHint: props.description, wrapperStyle: {
8
+ height: 32,
9
+ justifyContent: 'center',
10
+ },
11
+ // checkboxStyle={{
12
+ // // Not applied on Android because of a weird visual bug
13
+ // ...(Platform.OS === 'ios' && {
14
+ // width: 16,
15
+ // height: 16,
16
+ // }),
17
+ // backgroundColor: 'transparent',
18
+ // }}
19
+ checked: props.checked, onChange: props.onPress, testID: props.testID }));
20
+ return (React.createElement(PxCell, { ...props, onPress: undefined, accessible: false, prefix: side === 'left' ? (React.createElement(View, { style: styles.prefix },
21
+ checkbox,
22
+ props.prefix)) : (props.prefix), suffix: side === 'right' ? (React.createElement(View, { style: styles.prefix },
23
+ props.suffix,
24
+ checkbox)) : (props.suffix) }));
25
+ }
26
+ const styles = StyleSheet.create({
27
+ prefix: {
28
+ flexDirection: 'row',
29
+ gap: 16,
30
+ alignItems: 'center',
31
+ },
32
+ });
@@ -0,0 +1,22 @@
1
+ import { PxRadioButton } from '@proximus/lavender-radio-native';
2
+ import { PxCell } from './PxCell';
3
+ import React from 'react';
4
+ import { StyleSheet, View } from 'react-native';
5
+ export function PxCellRadio(props) {
6
+ const { side = 'right' } = props;
7
+ const radioButton = (React.createElement(PxRadioButton, { size: 20, accessibilityLabel: props.label, accessibilityHint: props.description, labelA11y: {
8
+ accessible: false,
9
+ }, checked: props.checked, onPress: props.onPress, testID: props.testID }));
10
+ return (React.createElement(PxCell, { ...props, accessible: false, prefix: side === 'left' ? (React.createElement(View, { style: styles.prefix },
11
+ radioButton,
12
+ props.prefix)) : (props.prefix), suffix: side === 'right' ? (React.createElement(View, { style: styles.prefix },
13
+ props.suffix,
14
+ radioButton)) : (props.suffix) }));
15
+ }
16
+ const styles = StyleSheet.create({
17
+ prefix: {
18
+ flexDirection: 'row',
19
+ gap: 16,
20
+ alignItems: 'center',
21
+ },
22
+ });
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { PxCell } from './PxCell';
3
+ import { PxIcon } from '@proximus/lavender-icon-native';
4
+ export function PxEntrypoint(props) {
5
+ return (React.createElement(PxCell, { ...props, accessibilityRole: 'button', suffix: React.createElement(PxIcon, { name: 'chevron_right' }) }));
6
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "@proximus/lavender-cells-native",
3
+ "version": "0.1.0-alpha.6",
4
+ "description": "Lavender cell list component",
5
+ "license": "MIT",
6
+ "main": "dist/index.js",
7
+ "type": "module",
8
+ "peerDependencies": {
9
+ "@proximus/lavender-checkbox-native": "*",
10
+ "@proximus/lavender-common-native": "*",
11
+ "@proximus/lavender-icon-native": "*",
12
+ "@proximus/lavender-radio-native": "*",
13
+ "@proximus/lavender-separator-native": "*",
14
+ "@proximus/lavender-styling-native": "*",
15
+ "@proximus/lavender-texts-native": "*"
16
+ },
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "lerna": {
21
+ "command": {
22
+ "publish": {
23
+ "assets": [
24
+ {
25
+ "from": "dist/far/away/package.json",
26
+ "to": "."
27
+ },
28
+ "dist/*.js",
29
+ "dist/*.d.ts",
30
+ "dist/*.d.ts.map",
31
+ "src",
32
+ "package.json"
33
+ ]
34
+ }
35
+ }
36
+ },
37
+ "gitHead": "e50a17526561b3eafb159e36c737173956093e0d"
38
+ }
package/dist/index.js ADDED
@@ -0,0 +1,4 @@
1
+ export * from './PxCell';
2
+ export * from './PxEntrypoint';
3
+ export * from './PxCellCheckbox';
4
+ export * from './PxCellRadio';
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@proximus/lavender-cells-native",
3
- "version": "0.1.0-alpha.4",
3
+ "version": "0.1.0-alpha.6",
4
4
  "description": "Lavender cell list 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
- "prepublish": "yarn clean && yarn build",
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": {
@@ -20,13 +21,13 @@
20
21
  "@proximus/lavender-texts-native": "workspace:*"
21
22
  },
22
23
  "devDependencies": {
23
- "@proximus/lavender-checkbox-native": "0.1.0-alpha.4",
24
- "@proximus/lavender-common-native": "0.1.0-alpha.4",
25
- "@proximus/lavender-icon-native": "0.1.0-alpha.4",
26
- "@proximus/lavender-radio-native": "0.1.0-alpha.4",
27
- "@proximus/lavender-separator-native": "0.1.0-alpha.3",
28
- "@proximus/lavender-styling-native": "0.1.0-alpha.3",
29
- "@proximus/lavender-texts-native": "0.1.0-alpha.4"
24
+ "@proximus/lavender-checkbox-native": "0.1.0-alpha.6",
25
+ "@proximus/lavender-common-native": "0.1.0-alpha.6",
26
+ "@proximus/lavender-icon-native": "0.1.0-alpha.6",
27
+ "@proximus/lavender-radio-native": "0.1.0-alpha.6",
28
+ "@proximus/lavender-separator-native": "0.1.0-alpha.5",
29
+ "@proximus/lavender-styling-native": "0.1.0-alpha.5",
30
+ "@proximus/lavender-texts-native": "0.1.0-alpha.6"
30
31
  },
31
32
  "publishConfig": {
32
33
  "access": "public"
@@ -35,12 +36,18 @@
35
36
  "command": {
36
37
  "publish": {
37
38
  "assets": [
38
- "dist",
39
+ {
40
+ "from": "dist/far/away/package.json",
41
+ "to": "."
42
+ },
43
+ "dist/*.js",
44
+ "dist/*.d.ts",
45
+ "dist/*.d.ts.map",
39
46
  "src",
40
47
  "package.json"
41
48
  ]
42
49
  }
43
50
  }
44
51
  },
45
- "gitHead": "6e9252a716a08ededdfbfd6f5b1db70ab21e026e"
52
+ "gitHead": "e50a17526561b3eafb159e36c737173956093e0d"
46
53
  }
package/tsconfig.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "outDir": "dist",
5
5
  },
6
6
  "include": ["src","../../../lib.d.ts"],
7
- "exclude": ["dist", "node_modules", "src/**/*.test.ts", "src/**/*.spec.ts"]
7
+ "exclude": ["dist", "node_modules", "src/**/*.spec.tsx", "src/**/*.spec.ts"]
8
8
  }