@proximus/lavender-icon-native 0.1.0-alpha.6 → 0.1.0-beta.0
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/dist/PxIcon.d.ts +11 -3
- package/dist/PxIcon.d.ts.map +1 -1
- package/dist/PxIcon.js +10 -4
- package/package.json +9 -35
- package/CHANGELOG.md +0 -52
- package/dist/far/away/package.json +0 -33
- package/src/PxIcon.tsx +0 -138
- package/src/index.ts +0 -1
- package/tsconfig.json +0 -8
package/dist/PxIcon.d.ts
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AccessibilityProps, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
3
|
import type { IconName } from '@proximus/lavender-icon/dist/iconNames.js';
|
|
4
|
+
import { IconColor } from '@proximus/lavender-icon';
|
|
5
|
+
import { IconSize } from '@proximus/lavender-common';
|
|
4
6
|
export declare function convertIconName(oldName: string): string;
|
|
5
7
|
interface PxIconProps extends AccessibilityProps {
|
|
6
8
|
name: IconName;
|
|
7
|
-
size?:
|
|
8
|
-
color?:
|
|
9
|
+
size?: IconSize;
|
|
10
|
+
color?: IconColor;
|
|
11
|
+
/** @deprecated Use 'color' property instead */
|
|
12
|
+
deprecatedColor?: string;
|
|
13
|
+
/** @deprecated Use 'size' property instead */
|
|
14
|
+
deprecatedSize?: number;
|
|
9
15
|
background?: boolean;
|
|
10
16
|
disabled?: boolean;
|
|
17
|
+
inverted?: boolean;
|
|
11
18
|
backgroundSize?: number;
|
|
12
19
|
style?: StyleProp<TextStyle>;
|
|
20
|
+
testID?: string;
|
|
13
21
|
containerStyle?: StyleProp<ViewStyle>;
|
|
14
22
|
}
|
|
15
|
-
export declare function PxIcon({ name, size, color, style, disabled, containerStyle, ...accessibilityProps }: PxIconProps): React.JSX.Element;
|
|
23
|
+
export declare function PxIcon({ name, size, color, style, disabled, containerStyle, inverted, deprecatedColor, deprecatedSize, testID, ...accessibilityProps }: PxIconProps): React.JSX.Element;
|
|
16
24
|
export {};
|
|
17
25
|
//# sourceMappingURL=PxIcon.d.ts.map
|
package/dist/PxIcon.d.ts.map
CHANGED
|
@@ -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;
|
|
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;AAE1E,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAGrD,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAuEvD;AAED,UAAU,WAAY,SAAQ,kBAAkB;IAC9C,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,+CAA+C;IAC/C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,8CAA8C;IAC9C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACvC;AAID,wBAAgB,MAAM,CAAC,EACrB,IAAI,EACJ,IAAU,EACV,KAAe,EACf,KAAK,EACL,QAAQ,EACR,cAAc,EACd,QAAgB,EAChB,eAAe,EACf,cAAc,EACd,MAAM,EACN,GAAG,kBAAkB,EACtB,EAAE,WAAW,qBA2Bb"}
|
package/dist/PxIcon.js
CHANGED
|
@@ -3,6 +3,7 @@ import { StyleSheet, View, } from 'react-native';
|
|
|
3
3
|
import { createIconSet } from 'react-native-vector-icons';
|
|
4
4
|
import LavenderGlyphMap from '@proximus/lavender-icon/dist/glyphmap.json';
|
|
5
5
|
import { useTheme } from '@proximus/lavender-styling-native';
|
|
6
|
+
import { a11y, e2eID } from '@proximus/lavender-common-native';
|
|
6
7
|
export function convertIconName(oldName) {
|
|
7
8
|
const iconMap = {
|
|
8
9
|
chevron_bottom: 'chevron_down',
|
|
@@ -75,14 +76,19 @@ export function convertIconName(oldName) {
|
|
|
75
76
|
return iconMap[oldName] ?? oldName;
|
|
76
77
|
}
|
|
77
78
|
const LavenderIcon = createIconSet(LavenderGlyphMap, 'lavender');
|
|
78
|
-
export function PxIcon({ name, size, color, style, disabled, containerStyle, ...accessibilityProps }) {
|
|
79
|
+
export function PxIcon({ name, size = 'M', color = 'Brand', style, disabled, containerStyle, inverted = false, deprecatedColor, deprecatedSize, testID, ...accessibilityProps }) {
|
|
79
80
|
const { theme } = useTheme();
|
|
81
|
+
const invertedSuffix = inverted ? 'Inverted' : 'Default';
|
|
80
82
|
const iconColor = disabled
|
|
81
83
|
? theme.t('ColorIconStateDisabledDefault')
|
|
82
|
-
: color
|
|
83
|
-
|
|
84
|
+
: color
|
|
85
|
+
? theme.t(`ColorIcon${color}${invertedSuffix}`)
|
|
86
|
+
: theme.t('ColorIconBrandDefault');
|
|
87
|
+
const iconSize = size
|
|
88
|
+
? theme.t(`SizeIcon${size}`).number
|
|
89
|
+
: theme.t('SizeIconS').number;
|
|
84
90
|
return (React.createElement(View, { style: [styles.container, containerStyle] },
|
|
85
|
-
React.createElement(LavenderIcon, { name: name, color: iconColor, size: iconSize, style: style, ...accessibilityProps })));
|
|
91
|
+
React.createElement(LavenderIcon, { name: name, color: deprecatedColor || iconColor, size: deprecatedSize || iconSize, style: style, ...a11y(accessibilityProps), ...(testID && e2eID(`${testID})-icon`)) })));
|
|
86
92
|
}
|
|
87
93
|
const styles = StyleSheet.create({
|
|
88
94
|
container: {
|
package/package.json
CHANGED
|
@@ -1,44 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proximus/lavender-icon-native",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-beta.0",
|
|
4
4
|
"description": "Lavender icon component",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
6
9
|
"type": "module",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"clean": "rm -rf dist",
|
|
9
|
-
"transform-package-json": "node ../../../scripts/tranformPackageJson.js package.json dist/far/away",
|
|
10
|
-
"prepublish": "yarn clean && yarn transform-package-json && yarn build",
|
|
11
|
-
"build": "npx tsc -p tsconfig.json"
|
|
12
|
-
},
|
|
13
10
|
"peerDependencies": {
|
|
14
|
-
"@proximus/lavender-common-native": "
|
|
15
|
-
"@proximus/lavender-styling-native": "
|
|
16
|
-
"@proximus/lavender-texts-native": "
|
|
17
|
-
},
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"@proximus/lavender-common-native": "0.1.0-alpha.6",
|
|
20
|
-
"@proximus/lavender-styling-native": "0.1.0-alpha.5",
|
|
21
|
-
"@proximus/lavender-texts-native": "0.1.0-alpha.6"
|
|
11
|
+
"@proximus/lavender-common-native": "*",
|
|
12
|
+
"@proximus/lavender-styling-native": "*",
|
|
13
|
+
"@proximus/lavender-texts-native": "*"
|
|
22
14
|
},
|
|
23
15
|
"publishConfig": {
|
|
24
16
|
"access": "public"
|
|
25
|
-
}
|
|
26
|
-
"lerna": {
|
|
27
|
-
"command": {
|
|
28
|
-
"publish": {
|
|
29
|
-
"assets": [
|
|
30
|
-
{
|
|
31
|
-
"from": "dist/far/away/package.json",
|
|
32
|
-
"to": "."
|
|
33
|
-
},
|
|
34
|
-
"dist/*.js",
|
|
35
|
-
"dist/*.d.ts",
|
|
36
|
-
"dist/*.d.ts.map",
|
|
37
|
-
"src",
|
|
38
|
-
"package.json"
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"gitHead": "e50a17526561b3eafb159e36c737173956093e0d"
|
|
17
|
+
}
|
|
44
18
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
# [0.1.0-alpha.6](https://github.com/Pxs-Corporate/react-native-lavender/compare/@proximus/lavender-icon-native@0.1.0-alpha.5...@proximus/lavender-icon-native@0.1.0-alpha.6) (2025-09-26)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @proximus/lavender-icon-native
|
|
9
|
-
|
|
10
|
-
# [0.1.0-alpha.5](https://github.com/Pxs-Corporate/react-native-lavender/compare/@proximus/lavender-icon-native@0.1.0-alpha.4...@proximus/lavender-icon-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
|
-
|
|
16
|
-
# [0.1.0-alpha.4](https://github.com/Pxs-Corporate/react-native-lavender/compare/@proximus/lavender-icon-native@0.1.0-alpha.3...@proximus/lavender-icon-native@0.1.0-alpha.4) (2025-09-19)
|
|
17
|
-
|
|
18
|
-
**Note:** Version bump only for package @proximus/lavender-icon-native
|
|
19
|
-
|
|
20
|
-
# [0.1.0-alpha.3](https://github.com/Pxs-Corporate/react-native-lavender/compare/@proximus/lavender-icon-native@0.1.0-alpha.2...@proximus/lavender-icon-native@0.1.0-alpha.3) (2025-09-12)
|
|
21
|
-
|
|
22
|
-
**Note:** Version bump only for package @proximus/lavender-icon-native
|
|
23
|
-
|
|
24
|
-
# [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)
|
|
25
|
-
|
|
26
|
-
### Features
|
|
27
|
-
|
|
28
|
-
- **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))
|
|
29
|
-
|
|
30
|
-
# [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)
|
|
31
|
-
|
|
32
|
-
### Bug Fixes
|
|
33
|
-
|
|
34
|
-
- **BCRI-4210372:** fix types field in modules ([68ac126](https://github.com/Pxs-Corporate/react-native-lavender/commit/68ac12657112473ae9e0e683076b1d9172be9ce6))
|
|
35
|
-
|
|
36
|
-
# 0.1.0-alpha.0 (2025-08-13)
|
|
37
|
-
|
|
38
|
-
### Bug Fixes
|
|
39
|
-
|
|
40
|
-
- **BCRI-4026235:** icon fixes ([b5f0e58](https://github.com/Pxs-Corporate/react-native-lavender/commit/b5f0e58492a6bb654869e73b2f309d13037be76c))
|
|
41
|
-
|
|
42
|
-
### Features
|
|
43
|
-
|
|
44
|
-
- **BCRI-3660857:** cell components ([af9e45c](https://github.com/Pxs-Corporate/react-native-lavender/commit/af9e45cefc20d08d2338380ff4cd8cd6851abe24))
|
|
45
|
-
- **BCRI-3689585:** icon module ([f13230d](https://github.com/Pxs-Corporate/react-native-lavender/commit/f13230d9c7643680089a0db2c69b96cd73ff246e))
|
|
46
|
-
- **BCRI-3702949:** tertiary button ([4999cea](https://github.com/Pxs-Corporate/react-native-lavender/commit/4999cea4d7866084d0f8c1cba37070c6cdaa7601))
|
|
47
|
-
- **BCRI-3702949:** tertiary button ([db24455](https://github.com/Pxs-Corporate/react-native-lavender/commit/db24455bd9687d80920be3e42c9e1fc14703a571))
|
|
48
|
-
- **BCRI-3810979:** tile components ([46fc5c7](https://github.com/Pxs-Corporate/react-native-lavender/commit/46fc5c7a0ddff6c2db43fba0de9929626092f265))
|
|
49
|
-
- **BCRI-4002610:** update icon handling and remove deprecated font references ([4399fe4](https://github.com/Pxs-Corporate/react-native-lavender/commit/4399fe4bff06aa70f5c29705fcc89d5243b0e3e7))
|
|
50
|
-
- **BCRI-4002610:** update package versions and add new dependencies for styling and icon handling ([bd36e12](https://github.com/Pxs-Corporate/react-native-lavender/commit/bd36e120c36fd33602f441ceed5f41f15f81f0ea))
|
|
51
|
-
- **BCRI-4026235:** fix mapping ([8fafee5](https://github.com/Pxs-Corporate/react-native-lavender/commit/8fafee5ab742dfbe8d1aeb139341ceb01371cd52))
|
|
52
|
-
- **BCRI-4210372:** automatic versionning ([9c1f0a0](https://github.com/Pxs-Corporate/react-native-lavender/commit/9c1f0a00e19a9d1a277044ea627632032a674102))
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@proximus/lavender-icon-native",
|
|
3
|
-
"version": "0.1.0-alpha.6",
|
|
4
|
-
"description": "Lavender icon component",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"peerDependencies": {
|
|
8
|
-
"@proximus/lavender-common-native": "*",
|
|
9
|
-
"@proximus/lavender-styling-native": "*",
|
|
10
|
-
"@proximus/lavender-texts-native": "*"
|
|
11
|
-
},
|
|
12
|
-
"publishConfig": {
|
|
13
|
-
"access": "public"
|
|
14
|
-
},
|
|
15
|
-
"lerna": {
|
|
16
|
-
"command": {
|
|
17
|
-
"publish": {
|
|
18
|
-
"assets": [
|
|
19
|
-
{
|
|
20
|
-
"from": "dist/far/away/package.json",
|
|
21
|
-
"to": "."
|
|
22
|
-
},
|
|
23
|
-
"dist/*.js",
|
|
24
|
-
"dist/*.d.ts",
|
|
25
|
-
"dist/*.d.ts.map",
|
|
26
|
-
"src",
|
|
27
|
-
"package.json"
|
|
28
|
-
]
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"gitHead": "e50a17526561b3eafb159e36c737173956093e0d"
|
|
33
|
-
}
|
package/src/PxIcon.tsx
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
AccessibilityProps,
|
|
4
|
-
StyleProp,
|
|
5
|
-
StyleSheet,
|
|
6
|
-
TextStyle,
|
|
7
|
-
View,
|
|
8
|
-
ViewStyle,
|
|
9
|
-
} from 'react-native';
|
|
10
|
-
|
|
11
|
-
import { createIconSet } from 'react-native-vector-icons';
|
|
12
|
-
import LavenderGlyphMap from '@proximus/lavender-icon/dist/glyphmap.json';
|
|
13
|
-
import type { IconName } from '@proximus/lavender-icon/dist/iconNames.js';
|
|
14
|
-
import { useTheme } from '@proximus/lavender-styling-native';
|
|
15
|
-
|
|
16
|
-
export function convertIconName(oldName: string): string {
|
|
17
|
-
const iconMap: Record<string, string> = {
|
|
18
|
-
chevron_bottom: 'chevron_down',
|
|
19
|
-
chevron_top: 'chevron_up',
|
|
20
|
-
arrow_bottom: 'arrow_down',
|
|
21
|
-
arrow_top: 'arrow_up',
|
|
22
|
-
contacts: 'community',
|
|
23
|
-
bills: 'bill',
|
|
24
|
-
bin: 'trash',
|
|
25
|
-
chart: 'markets',
|
|
26
|
-
copy: 'copy_paste',
|
|
27
|
-
dash: 'dashboard',
|
|
28
|
-
dots: '3dots_vertical',
|
|
29
|
-
double_dots: 'handle',
|
|
30
|
-
download_arrow: 'download',
|
|
31
|
-
enjoy: 'gift',
|
|
32
|
-
equalizer: 'filter',
|
|
33
|
-
error: 'cross',
|
|
34
|
-
error_circle: 'cross_circle',
|
|
35
|
-
error_circle_filled: 'cross_fill',
|
|
36
|
-
eye_visible: 'eye',
|
|
37
|
-
eye_not_visible: 'eye_close',
|
|
38
|
-
grid_layout: 'dashboard',
|
|
39
|
-
help: 'question_mark',
|
|
40
|
-
help_circle: 'question_mark_circle',
|
|
41
|
-
history: 'clock_circle',
|
|
42
|
-
housing: 'buildings',
|
|
43
|
-
ia: 'ai',
|
|
44
|
-
info: 'information',
|
|
45
|
-
info_circle: 'information_circle',
|
|
46
|
-
info_circle_filled: 'information_fill',
|
|
47
|
-
link: 'links',
|
|
48
|
-
location_pin: 'location',
|
|
49
|
-
liveloc: 'current_location',
|
|
50
|
-
mail: 'enveloppe',
|
|
51
|
-
menu: 'burger_menu',
|
|
52
|
-
mic: 'microphone',
|
|
53
|
-
no_cellular: 'wifi_off',
|
|
54
|
-
no_router: 'bbox_off',
|
|
55
|
-
orders: 'euro_invoice',
|
|
56
|
-
parcel: 'pack',
|
|
57
|
-
pen: 'edit',
|
|
58
|
-
qrcode: 'qr_code',
|
|
59
|
-
reaload_onlince: 'euro_reload',
|
|
60
|
-
road_accident: 'car_crash',
|
|
61
|
-
router: 'bbox_connection',
|
|
62
|
-
shopping: 'caddy',
|
|
63
|
-
smart_home: 'home_wifi',
|
|
64
|
-
smartphone: 'mobile',
|
|
65
|
-
socket: 'electricity',
|
|
66
|
-
speed_test: 'speed',
|
|
67
|
-
star_filled: 'star_fill',
|
|
68
|
-
success: 'checkmark',
|
|
69
|
-
success_circle: 'checkmark_circle',
|
|
70
|
-
success_circle_filled: 'checkmark_fill',
|
|
71
|
-
support: 'headset',
|
|
72
|
-
switcher: 'switch',
|
|
73
|
-
thunder: 'bolt',
|
|
74
|
-
ticket: 'voucher',
|
|
75
|
-
truck: 'delivery_flexibility',
|
|
76
|
-
upload_arrow: 'upload',
|
|
77
|
-
user_avatar: 'profile_circle',
|
|
78
|
-
warning: 'exclamation_mark',
|
|
79
|
-
warning_circle: 'exclamation_mark_circle',
|
|
80
|
-
warning_circle_filled: 'exclamation_mark_fill',
|
|
81
|
-
wifi_no_signal: 'wifi_off',
|
|
82
|
-
wifi_signal_strong: 'wifi',
|
|
83
|
-
work_cone: 'roadwork',
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
return iconMap[oldName] ?? oldName;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
interface PxIconProps extends AccessibilityProps {
|
|
90
|
-
name: IconName;
|
|
91
|
-
size?: number;
|
|
92
|
-
color?: string;
|
|
93
|
-
background?: boolean;
|
|
94
|
-
disabled?: boolean;
|
|
95
|
-
backgroundSize?: number;
|
|
96
|
-
style?: StyleProp<TextStyle>;
|
|
97
|
-
containerStyle?: StyleProp<ViewStyle>;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
const LavenderIcon = createIconSet(LavenderGlyphMap, 'lavender');
|
|
101
|
-
|
|
102
|
-
export function PxIcon({
|
|
103
|
-
name,
|
|
104
|
-
size,
|
|
105
|
-
color,
|
|
106
|
-
style,
|
|
107
|
-
disabled,
|
|
108
|
-
containerStyle,
|
|
109
|
-
...accessibilityProps
|
|
110
|
-
}: PxIconProps) {
|
|
111
|
-
const { theme } = useTheme();
|
|
112
|
-
|
|
113
|
-
const iconColor = disabled
|
|
114
|
-
? theme.t('ColorIconStateDisabledDefault')
|
|
115
|
-
: color || theme.t('ColorIconBrandDefault');
|
|
116
|
-
const iconSize = size || theme.t('SizeIconS').number;
|
|
117
|
-
|
|
118
|
-
return (
|
|
119
|
-
<View style={[styles.container, containerStyle]}>
|
|
120
|
-
<LavenderIcon
|
|
121
|
-
name={name}
|
|
122
|
-
color={iconColor}
|
|
123
|
-
size={iconSize}
|
|
124
|
-
style={style as any}
|
|
125
|
-
{...accessibilityProps}
|
|
126
|
-
/>
|
|
127
|
-
</View>
|
|
128
|
-
);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
const styles = StyleSheet.create({
|
|
132
|
-
container: {
|
|
133
|
-
alignItems: 'center',
|
|
134
|
-
flexDirection: 'row',
|
|
135
|
-
justifyContent: 'center',
|
|
136
|
-
textAlign: 'center',
|
|
137
|
-
},
|
|
138
|
-
});
|
package/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './PxIcon';
|