@proximus/lavender-icon-native 2.1.1-alpha.3 → 2.1.1-alpha.33
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 +1 -1
- package/dist/PxIcon.d.ts.map +1 -1
- package/dist/PxIcon.js +7 -2
- package/package.json +1 -1
package/dist/PxIcon.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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
4
|
import { IconSize } from '@proximus/lavender-common';
|
|
5
|
+
import { IconColor } from '@proximus/lavender-icon-common';
|
|
6
6
|
export declare function convertIconName(oldName: string): string;
|
|
7
7
|
interface PxIconProps extends AccessibilityProps {
|
|
8
8
|
name: IconName;
|
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;AAE1E,OAAO,EAAE,
|
|
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,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAErD,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAE3D,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,qBAqCb"}
|
package/dist/PxIcon.js
CHANGED
|
@@ -87,8 +87,13 @@ export function PxIcon({ name, size = 'M', color = 'Brand', style, disabled, con
|
|
|
87
87
|
const iconSize = size
|
|
88
88
|
? theme.t(`SizeIcon${size}`).number
|
|
89
89
|
: theme.t('SizeIconS').number;
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
const accessible = accessibilityProps.accessible ?? !!accessibilityProps.accessibilityLabel;
|
|
91
|
+
return (React.createElement(View, { style: [styles.container, containerStyle], ...a11y({
|
|
92
|
+
...accessibilityProps,
|
|
93
|
+
accessible,
|
|
94
|
+
importantForAccessibility: accessible ? 'yes' : 'no',
|
|
95
|
+
}) },
|
|
96
|
+
React.createElement(LavenderIcon, { name: name, color: deprecatedColor || iconColor, size: deprecatedSize || iconSize, style: style, accessible: false, importantForAccessibility: "no", ...(testID && e2eID(`${testID})-icon`)) })));
|
|
92
97
|
}
|
|
93
98
|
const styles = StyleSheet.create({
|
|
94
99
|
container: {
|