@proximus/lavender-icon-native 0.1.0-alpha.0 → 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 CHANGED
@@ -3,6 +3,18 @@
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-icon-native@0.1.0-alpha.1...@proximus/lavender-icon-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
+
12
+ # [0.1.0-alpha.1](https://github.com/Pxs-Corporate/react-native-lavender/compare/@proximus/lavender-icon-native@0.1.0-alpha.0...@proximus/lavender-icon-native@0.1.0-alpha.1) (2025-08-13)
13
+
14
+ ### Bug Fixes
15
+
16
+ - **BCRI-4210372:** fix types field in modules ([68ac126](https://github.com/Pxs-Corporate/react-native-lavender/commit/68ac12657112473ae9e0e683076b1d9172be9ce6))
17
+
6
18
  # 0.1.0-alpha.0 (2025-08-13)
7
19
 
8
20
  ### Bug Fixes
@@ -1 +1 @@
1
- {"version":3,"file":"PxIcon.d.ts","sourceRoot":"","sources":["../src/PxIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,kBAAkB,EAClB,SAAS,EAET,SAAS,EAET,SAAS,EACV,MAAM,cAAc,CAAC;AAItB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAI1E,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAuEvD;AAED,UAAU,WAAY,SAAQ,kBAAkB;IA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,cAAc,EACd,GAAG,kBAAkB,EACtB,EAAE,WAAW,qBAmBb"}
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "@proximus/lavender-icon-native",
3
- "version": "0.1.0-alpha.0",
3
+ "version": "0.1.0-alpha.2",
4
4
  "description": "Lavender icon component",
5
5
  "main": "src/index.ts",
6
- "types": "dist/index.d.ts",
7
6
  "type": "module",
8
7
  "scripts": {
9
8
  "clean": "rm -rf dist",
@@ -16,9 +15,9 @@
16
15
  "@proximus/lavender-texts-native": "workspace:*"
17
16
  },
18
17
  "devDependencies": {
19
- "@proximus/lavender-common-native": "0.1.0-alpha.0",
20
- "@proximus/lavender-styling-native": "0.1.0-alpha.0",
21
- "@proximus/lavender-texts-native": "0.1.0-alpha.0"
18
+ "@proximus/lavender-common-native": "0.1.0-alpha.2",
19
+ "@proximus/lavender-styling-native": "0.1.0-alpha.2",
20
+ "@proximus/lavender-texts-native": "0.1.0-alpha.2"
22
21
  },
23
22
  "publishConfig": {
24
23
  "access": "public"
@@ -34,5 +33,5 @@
34
33
  }
35
34
  }
36
35
  },
37
- "gitHead": "59b3436b786cc1c73b4a20a98b2a85139e75b72e"
36
+ "gitHead": "38a67765befa2567a3f5f57976b7933cf5b85a24"
38
37
  }
package/src/PxIcon.tsx CHANGED
@@ -11,8 +11,7 @@ import {
11
11
  import { createIconSet } from 'react-native-vector-icons';
12
12
  import LavenderGlyphMap from '@proximus/lavender-icon/dist/glyphmap.json';
13
13
  import type { IconName } from '@proximus/lavender-icon/dist/iconNames.js';
14
-
15
- import { Colors } from '@proximus/lavender-styling-native';
14
+ import { useTheme } from '@proximus/lavender-styling-native';
16
15
 
17
16
  export function convertIconName(oldName: string): string {
18
17
  const iconMap: Record<string, string> = {
@@ -109,10 +108,12 @@ export function PxIcon({
109
108
  containerStyle,
110
109
  ...accessibilityProps
111
110
  }: PxIconProps) {
111
+ const { theme } = useTheme();
112
+
112
113
  const iconColor = disabled
113
- ? Colors.v8_1.shadesOfGrey.dark40
114
- : color || Colors.v8_1.shadesOfPurple.purple;
115
- const iconSize = size || 16;
114
+ ? theme.t('ColorIconStateDisabledDefault')
115
+ : color || theme.t('ColorIconBrandDefault');
116
+ const iconSize = size || theme.t('SizeIconS').number;
116
117
 
117
118
  return (
118
119
  <View style={[styles.container, containerStyle]}>