@proximus/lavender-cells-native 0.1.0-alpha.1 → 0.1.0-alpha.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/dist/PxCell.d.ts +1 -1
- package/dist/PxCell.d.ts.map +1 -1
- package/dist/PxCellCheckbox.d.ts.map +1 -1
- package/package.json +9 -9
- package/src/PxCell.tsx +8 -8
- package/src/PxCellCheckbox.tsx +9 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +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.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)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **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))
|
|
11
|
+
|
|
6
12
|
# [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)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
package/dist/PxCell.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export interface IPxCell extends AccessibilityProps {
|
|
|
4
4
|
label: string;
|
|
5
5
|
description?: string;
|
|
6
6
|
containerStyle?: StyleProp<ViewStyle>;
|
|
7
|
-
backgroundColor?: '
|
|
7
|
+
backgroundColor?: 'Default' | 'Light';
|
|
8
8
|
onPress?: () => void;
|
|
9
9
|
prefix?: ReactNode;
|
|
10
10
|
suffix?: ReactElement;
|
package/dist/PxCell.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PxCell.d.ts","sourceRoot":"","sources":["../src/PxCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,SAAS,EAIT,SAAS,EACV,MAAM,cAAc,CAAC;AAKtB,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,OAAQ,SAAQ,kBAAkB;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,eAAe,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"PxCell.d.ts","sourceRoot":"","sources":["../src/PxCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,SAAS,EAIT,SAAS,EACV,MAAM,cAAc,CAAC;AAKtB,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,WAAW,OAAQ,SAAQ,kBAAkB;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,eAAe,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,IAAI,CAAC,EAAE,OAAO,GAAG,WAAW,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wBAAwB,CAAC,EAAE,kBAAkB,CAAC;IAC9C,YAAY,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAC;CAClD;AAID,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,WAAW,EACX,OAAO,EACP,eAAe,EACf,cAAc,EACd,MAAM,EACN,MAAM,EACN,WAAW,EACX,iBAAiB,EACjB,MAAM,EACN,IAAc,EACd,UAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,QAAQ,EACR,wBAAwB,EACxB,YAAqB,EACrB,SAAiB,GAClB,EAAE,OAAO,qBA6HT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PxCellCheckbox.d.ts","sourceRoot":"","sources":["../src/PxCellCheckbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAU,MAAM,UAAU,CAAC;AAI3C,wBAAgB,cAAc,CAC5B,KAAK,EAAE,OAAO,GAAG;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"PxCellCheckbox.d.ts","sourceRoot":"","sources":["../src/PxCellCheckbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAU,MAAM,UAAU,CAAC;AAI3C,wBAAgB,cAAc,CAC5B,KAAK,EAAE,OAAO,GAAG;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,qBAqD/D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proximus/lavender-cells-native",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.2",
|
|
4
4
|
"description": "Lavender cell list component",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"@proximus/lavender-texts-native": "workspace:*"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@proximus/lavender-checkbox-native": "0.1.0-alpha.
|
|
24
|
-
"@proximus/lavender-common-native": "0.1.0-alpha.
|
|
25
|
-
"@proximus/lavender-icon-native": "0.1.0-alpha.
|
|
26
|
-
"@proximus/lavender-radio-native": "0.1.0-alpha.
|
|
27
|
-
"@proximus/lavender-separator-native": "0.1.0-alpha.
|
|
28
|
-
"@proximus/lavender-styling-native": "0.1.0-alpha.
|
|
29
|
-
"@proximus/lavender-texts-native": "0.1.0-alpha.
|
|
23
|
+
"@proximus/lavender-checkbox-native": "0.1.0-alpha.2",
|
|
24
|
+
"@proximus/lavender-common-native": "0.1.0-alpha.2",
|
|
25
|
+
"@proximus/lavender-icon-native": "0.1.0-alpha.2",
|
|
26
|
+
"@proximus/lavender-radio-native": "0.1.0-alpha.2",
|
|
27
|
+
"@proximus/lavender-separator-native": "0.1.0-alpha.2",
|
|
28
|
+
"@proximus/lavender-styling-native": "0.1.0-alpha.2",
|
|
29
|
+
"@proximus/lavender-texts-native": "0.1.0-alpha.2"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "38a67765befa2567a3f5f57976b7933cf5b85a24"
|
|
46
46
|
}
|
package/src/PxCell.tsx
CHANGED
|
@@ -16,7 +16,7 @@ export interface IPxCell extends AccessibilityProps {
|
|
|
16
16
|
label: string;
|
|
17
17
|
description?: string;
|
|
18
18
|
containerStyle?: StyleProp<ViewStyle>;
|
|
19
|
-
backgroundColor?: '
|
|
19
|
+
backgroundColor?: 'Default' | 'Light';
|
|
20
20
|
onPress?: () => void;
|
|
21
21
|
prefix?: ReactNode;
|
|
22
22
|
suffix?: ReactElement;
|
|
@@ -77,8 +77,8 @@ export function PxCell({
|
|
|
77
77
|
type === 'naked'
|
|
78
78
|
? 'transparent'
|
|
79
79
|
: backgroundColor
|
|
80
|
-
? theme.t(`
|
|
81
|
-
: theme.t('
|
|
80
|
+
? theme.t(`ColorBackgroundContainer${backgroundColor}Default`)
|
|
81
|
+
: theme.t('ColorBackgroundContainerDefaultDefault'),
|
|
82
82
|
borderTopLeftRadius: ['top', 'all'].includes(borderRadius)
|
|
83
83
|
? BORDER_RADIUS
|
|
84
84
|
: 0,
|
|
@@ -94,7 +94,7 @@ export function PxCell({
|
|
|
94
94
|
borderRadius: 20,
|
|
95
95
|
},
|
|
96
96
|
disabled && {
|
|
97
|
-
backgroundColor: theme.t('
|
|
97
|
+
backgroundColor: theme.t('ColorBackgroundStateDisabledDefault'),
|
|
98
98
|
},
|
|
99
99
|
]}
|
|
100
100
|
>
|
|
@@ -109,7 +109,7 @@ export function PxCell({
|
|
|
109
109
|
style={[
|
|
110
110
|
{
|
|
111
111
|
fontSize: theme.t('TextSizeLabelLMobile').number,
|
|
112
|
-
color: theme.t('
|
|
112
|
+
color: theme.t('ColorTextNeutralDefault'),
|
|
113
113
|
},
|
|
114
114
|
]}
|
|
115
115
|
disabled={disabled}
|
|
@@ -127,7 +127,7 @@ export function PxCell({
|
|
|
127
127
|
style={[
|
|
128
128
|
{
|
|
129
129
|
fontSize: theme.t('TextSizeLabelMMobile').number,
|
|
130
|
-
color: theme.t('
|
|
130
|
+
color: theme.t('ColorTextNeutralDefault'),
|
|
131
131
|
},
|
|
132
132
|
]}
|
|
133
133
|
disabled={disabled}
|
|
@@ -147,7 +147,7 @@ export function PxCell({
|
|
|
147
147
|
style={{
|
|
148
148
|
textAlign: 'right',
|
|
149
149
|
fontSize: theme.t('TextSizeLabelLMobile').number,
|
|
150
|
-
color: theme.t('
|
|
150
|
+
color: theme.t('ColorTextNeutralDefault'),
|
|
151
151
|
}}
|
|
152
152
|
disabled={disabled}
|
|
153
153
|
>
|
|
@@ -161,7 +161,7 @@ export function PxCell({
|
|
|
161
161
|
importantForAccessibility: accessible ? 'yes' : 'no',
|
|
162
162
|
})}
|
|
163
163
|
style={{
|
|
164
|
-
color: theme.t('
|
|
164
|
+
color: theme.t('ColorTextNeutralDefault'),
|
|
165
165
|
fontSize: theme.t('TextSizeLabelMMobile').number,
|
|
166
166
|
}}
|
|
167
167
|
{...e2eID(`${testID}_subTitle`)}
|
package/src/PxCellCheckbox.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IPxCell, PxCell } from './PxCell';
|
|
3
3
|
import { PxCheckBox } from '@proximus/lavender-checkbox-native';
|
|
4
|
-
import {
|
|
4
|
+
import { StyleSheet, View } from 'react-native';
|
|
5
5
|
|
|
6
6
|
export function PxCellCheckbox(
|
|
7
7
|
props: IPxCell & { checked: boolean; side?: 'left' | 'right' }
|
|
@@ -12,19 +12,18 @@ export function PxCellCheckbox(
|
|
|
12
12
|
disabled={props.disabled}
|
|
13
13
|
accessibilityLabel={props.label}
|
|
14
14
|
accessibilityHint={props.description}
|
|
15
|
-
boxType={'square'}
|
|
16
15
|
wrapperStyle={{
|
|
17
16
|
height: 32,
|
|
18
17
|
justifyContent: 'center',
|
|
19
18
|
}}
|
|
20
|
-
checkboxStyle={{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}}
|
|
19
|
+
// checkboxStyle={{
|
|
20
|
+
// // Not applied on Android because of a weird visual bug
|
|
21
|
+
// ...(Platform.OS === 'ios' && {
|
|
22
|
+
// width: 16,
|
|
23
|
+
// height: 16,
|
|
24
|
+
// }),
|
|
25
|
+
// backgroundColor: 'transparent',
|
|
26
|
+
// }}
|
|
28
27
|
checked={props.checked}
|
|
29
28
|
onChange={props.onPress}
|
|
30
29
|
testID={props.testID}
|