@proximus/lavender-topnavigation-native 0.1.0-alpha.11 → 0.1.0-alpha.13

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.
@@ -1 +1 @@
1
- {"version":3,"file":"PxTopNavigation.d.ts","sourceRoot":"","sources":["../src/PxTopNavigation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EAGT,SAAS,EACV,MAAM,cAAc,CAAC;AACtB,OAAO,KAA8B,MAAM,OAAO,CAAC;AAyBnD,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACpC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACtC;AA8HD,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,qBAqB1D"}
1
+ {"version":3,"file":"PxTopNavigation.d.ts","sourceRoot":"","sources":["../src/PxTopNavigation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EAGT,SAAS,EACV,MAAM,cAAc,CAAC;AACtB,OAAO,KAA8B,MAAM,OAAO,CAAC;AAyBnD,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACpC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACtC;AAiID,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,qBAqB1D"}
@@ -1,7 +1,7 @@
1
1
  import { ScrollView, StyleSheet, View, } from 'react-native';
2
2
  import React, { useEffect, useState } from 'react';
3
3
  import LinearGradient from 'react-native-linear-gradient';
4
- import { a11y } from '@proximus/lavender-common-native';
4
+ import { a11y, e2eID } from '@proximus/lavender-common-native';
5
5
  import { Body, Header as TextHeader } from '@proximus/lavender-texts-native';
6
6
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
7
7
  import { PxIcon } from '@proximus/lavender-icon-native';
@@ -21,7 +21,7 @@ function isWhiteColor(color) {
21
21
  return true;
22
22
  return false;
23
23
  }
24
- function LeftComponent({ title, titleColor, description, prefix, descriptionContent, centerTitle = false, }) {
24
+ function LeftComponent({ title, titleColor, description, prefix, descriptionContent, centerTitle = false, testId, }) {
25
25
  const { theme } = useTheme();
26
26
  return (React.createElement(View, { style: styles.leftComponent },
27
27
  prefix,
@@ -34,7 +34,7 @@ function LeftComponent({ title, titleColor, description, prefix, descriptionCont
34
34
  },
35
35
  ], ...a11y({
36
36
  accessibilityRole: 'header',
37
- }) }, [title]),
37
+ }), ...(testId && e2eID(`${testId}-topnav-title`)) }, [title]),
38
38
  (descriptionContent && (React.createElement(View, { style: {
39
39
  alignItems: 'flex-start',
40
40
  } }, descriptionContent))) ||
@@ -44,7 +44,7 @@ function LeftComponent({ title, titleColor, description, prefix, descriptionCont
44
44
  color: titleColor || theme.t('ColorTextBrandInverted'),
45
45
  textAlign: centerTitle ? 'center' : 'left',
46
46
  },
47
- ] }, description))))));
47
+ ], ...(testId && e2eID(`${testId}-topnav-description`)) }, description))))));
48
48
  }
49
49
  function RightComponent({ suffix }) {
50
50
  return React.createElement(View, { style: styles.rightComponent }, suffix);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-topnavigation-native",
3
- "version": "0.1.0-alpha.11",
3
+ "version": "0.1.0-alpha.13",
4
4
  "description": "Lavender react native top navigation component",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",