@proximus/lavender-buttonicon-native 0.1.0-alpha.3 → 0.1.0-alpha.4

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,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.4](https://github.com/Pxs-Corporate/react-native-lavender/compare/@proximus/lavender-buttonicon-native@0.1.0-alpha.3...@proximus/lavender-buttonicon-native@0.1.0-alpha.4) (2025-09-19)
7
+
8
+ ### Features
9
+
10
+ - **BCRI-4249550:** message card + tag components ([#22](https://github.com/Pxs-Corporate/react-native-lavender/issues/22)) ([39fb91c](https://github.com/Pxs-Corporate/react-native-lavender/commit/39fb91cc294a37d07e63fca2b4e993d90b867082))
11
+
6
12
  # [0.1.0-alpha.3](https://github.com/Pxs-Corporate/react-native-lavender/compare/@proximus/lavender-buttonicon-native@0.1.0-alpha.2...@proximus/lavender-buttonicon-native@0.1.0-alpha.3) (2025-09-12)
7
13
 
8
14
  **Note:** Version bump only for package @proximus/lavender-buttonicon-native
@@ -8,7 +8,8 @@ export interface IButtonIconProps extends AccessibilityProps {
8
8
  onPress?: () => void;
9
9
  disabled?: boolean;
10
10
  inverted?: boolean;
11
+ size?: 'small' | 'default';
11
12
  testID?: string;
12
13
  }
13
- export declare function PxButtonIcon({ variant, iconName, wrapperStyle, onPress, disabled, testID, accessibilityLabel, accessibilityHint, inverted, }: IButtonIconProps): React.JSX.Element;
14
+ export declare function PxButtonIcon({ variant, iconName, wrapperStyle, onPress, disabled, testID, accessibilityLabel, accessibilityHint, inverted, size, }: IButtonIconProps): React.JSX.Element;
14
15
  //# sourceMappingURL=PxButtonIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PxButtonIcon.d.ts","sourceRoot":"","sources":["../src/PxButtonIcon.tsx"],"names":[],"mappings":"AAAA,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C;IACnB,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA0CD,wBAAgB,YAAY,CAAC,EAC3B,OAAmB,EACnB,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,MAAM,EACN,kBAAkB,EAClB,iBAAiB,EACjB,QAAQ,EACR,IAAgB,GACjB,EAAE,gBAAgB,qBAmDlB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-buttonicon-native",
3
- "version": "0.1.0-alpha.3",
3
+ "version": "0.1.0-alpha.4",
4
4
  "description": "Button icon component",
5
5
  "license": "MIT",
6
6
  "main": "src/index.ts",
@@ -16,10 +16,10 @@
16
16
  "@proximus/lavender-texts-native": "workspace:*"
17
17
  },
18
18
  "devDependencies": {
19
- "@proximus/lavender-common-native": "0.1.0-alpha.3",
20
- "@proximus/lavender-icon-native": "0.1.0-alpha.3",
21
- "@proximus/lavender-styling-native": "0.1.0-alpha.2",
22
- "@proximus/lavender-texts-native": "0.1.0-alpha.3"
19
+ "@proximus/lavender-common-native": "0.1.0-alpha.4",
20
+ "@proximus/lavender-icon-native": "0.1.0-alpha.4",
21
+ "@proximus/lavender-styling-native": "0.1.0-alpha.3",
22
+ "@proximus/lavender-texts-native": "0.1.0-alpha.4"
23
23
  },
24
24
  "publishConfig": {
25
25
  "access": "public"
@@ -35,5 +35,5 @@
35
35
  }
36
36
  }
37
37
  },
38
- "gitHead": "6328f584529cb675f4a2ede8ad89f31e2b3c9ffb"
38
+ "gitHead": "6e9252a716a08ededdfbfd6f5b1db70ab21e026e"
39
39
  }
@@ -19,6 +19,7 @@ export interface IButtonIconProps extends AccessibilityProps {
19
19
  onPress?: () => void;
20
20
  disabled?: boolean;
21
21
  inverted?: boolean;
22
+ size?: 'small' | 'default';
22
23
  testID?: string;
23
24
  }
24
25
 
@@ -72,6 +73,7 @@ export function PxButtonIcon({
72
73
  accessibilityLabel,
73
74
  accessibilityHint,
74
75
  inverted,
76
+ size = 'default',
75
77
  }: IButtonIconProps) {
76
78
  const { theme } = useTheme();
77
79
  const backgroundColor = getBackgroundColor({ variant, inverted }, theme);
@@ -92,17 +94,34 @@ export function PxButtonIcon({
92
94
  accessibilityLabel,
93
95
  accessibilityHint,
94
96
  })}
95
- style={[styles.container, { backgroundColor }, wrapperStyle]}
97
+ style={[
98
+ styles.container,
99
+ { backgroundColor, borderRadius: theme?.t('RadiusPill')?.number },
100
+ wrapperStyle,
101
+ ]}
96
102
  >
97
103
  <View
98
104
  style={{
99
- height: 24,
100
- width: 24,
105
+ height:
106
+ size === 'small'
107
+ ? // @ts-ignore
108
+ theme?.t(`SizeM`)?.number
109
+ : // @ts-ignore
110
+ theme?.t(`SizeL`)?.number,
111
+ aspectRatio: 1,
101
112
  alignItems: 'center',
102
113
  justifyContent: 'center',
103
114
  }}
104
115
  >
105
- <PxIcon name={iconName} size={22} color={color} />
116
+ <PxIcon
117
+ name={iconName}
118
+ size={
119
+ size === 'small'
120
+ ? theme?.t('SizeIconXs')?.number
121
+ : theme?.t('SizeIconS')?.number
122
+ }
123
+ color={color}
124
+ />
106
125
  </View>
107
126
  </TouchableOpacity>
108
127
  );
@@ -111,9 +130,7 @@ export function PxButtonIcon({
111
130
  const styles = StyleSheet.create({
112
131
  container: {
113
132
  flexDirection: 'column',
114
- padding: 8,
115
133
  flex: 0,
116
- borderRadius: 20,
117
134
  alignItems: 'center',
118
135
  justifyContent: 'center',
119
136
  },