@proximus/lavender-texts-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-texts-native@0.1.0-alpha.3...@proximus/lavender-texts-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-texts-native@0.1.0-alpha.2...@proximus/lavender-texts-native@0.1.0-alpha.3) (2025-09-12)
7
13
 
8
14
  ### Features
package/dist/v8.d.ts CHANGED
@@ -15,8 +15,10 @@ export declare const Fonts: {
15
15
  };
16
16
  export declare function Header(props: TextProps & {
17
17
  disabled?: boolean;
18
+ inverted?: boolean;
18
19
  }): React.JSX.Element;
19
20
  export declare function Body(props: TextProps & {
20
21
  disabled?: boolean;
22
+ inverted?: boolean;
21
23
  }): React.JSX.Element;
22
24
  //# sourceMappingURL=v8.d.ts.map
package/dist/v8.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"v8.d.ts","sourceRoot":"","sources":["../src/v8.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAA6B,SAAS,EAAa,MAAM,cAAc,CAAC;AAQ/E,eAAO,MAAM,KAAK;;;;;;;;;;;;CAYjB,CAAC;AAiBF,wBAAgB,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,qBAqB/D;AAED,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,qBAqB7D"}
1
+ {"version":3,"file":"v8.d.ts","sourceRoot":"","sources":["../src/v8.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAA6B,SAAS,EAAa,MAAM,cAAc,CAAC;AAQ/E,eAAO,MAAM,KAAK;;;;;;;;;;;;CAYjB,CAAC;AAiBF,wBAAgB,MAAM,CACpB,KAAK,EAAE,SAAS,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,qBAyB9D;AAED,wBAAgB,IAAI,CAClB,KAAK,EAAE,SAAS,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,qBAyB9D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-texts-native",
3
- "version": "0.1.0-alpha.3",
3
+ "version": "0.1.0-alpha.4",
4
4
  "description": "Lavender Text component",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",
@@ -14,8 +14,8 @@
14
14
  "@proximus/lavender-styling-native": "workspace:*"
15
15
  },
16
16
  "devDependencies": {
17
- "@proximus/lavender-common-native": "0.1.0-alpha.3",
18
- "@proximus/lavender-styling-native": "0.1.0-alpha.2"
17
+ "@proximus/lavender-common-native": "0.1.0-alpha.4",
18
+ "@proximus/lavender-styling-native": "0.1.0-alpha.3"
19
19
  },
20
20
  "publishConfig": {
21
21
  "access": "public"
@@ -31,5 +31,5 @@
31
31
  }
32
32
  }
33
33
  },
34
- "gitHead": "6328f584529cb675f4a2ede8ad89f31e2b3c9ffb"
34
+ "gitHead": "6e9252a716a08ededdfbfd6f5b1db70ab21e026e"
35
35
  }
package/src/v8.tsx CHANGED
@@ -36,21 +36,26 @@ function extractFontSize(style: StyleProp<TextStyle>) {
36
36
  return undefined;
37
37
  }
38
38
 
39
- export function Header(props: TextProps & { disabled?: boolean }) {
39
+ export function Header(
40
+ props: TextProps & { disabled?: boolean; inverted?: boolean }
41
+ ) {
40
42
  const fontSize = extractFontSize(props.style) || DEFAULT_HEADER_FONT_SIZE;
41
43
  const { theme } = useTheme();
44
+
45
+ const invertedSuffix = props.inverted ? 'Inverted' : 'Default';
46
+
42
47
  return (
43
48
  <Txt
44
49
  {...props}
45
50
  style={[
46
51
  {
47
52
  fontFamily: Fonts.ProximusBold,
48
- color: theme.t('ColorTextNeutralDefault'),
53
+ color: theme.t(`ColorTextNeutral${invertedSuffix}`),
49
54
  lineHeight: fontSize * LINE_HEIGHT_HEADER_RATIO,
50
55
  },
51
56
  ...(Array.isArray(props.style) ? props.style : [props.style]),
52
57
  props.disabled && {
53
- color: theme.t('ColorTextStateDisabledDefault'),
58
+ color: theme.t(`ColorTextStateDisabled${invertedSuffix}`),
54
59
  },
55
60
  ]}
56
61
  >
@@ -59,21 +64,26 @@ export function Header(props: TextProps & { disabled?: boolean }) {
59
64
  );
60
65
  }
61
66
 
62
- export function Body(props: TextProps & { disabled?: boolean }) {
67
+ export function Body(
68
+ props: TextProps & { disabled?: boolean; inverted?: boolean }
69
+ ) {
63
70
  const fontSize = extractFontSize(props.style) || DEFAULT_BODY_FONT_SIZE;
64
71
  const { theme } = useTheme();
72
+
73
+ const invertedSuffix = props.inverted ? 'Inverted' : 'Default';
74
+
65
75
  return (
66
76
  <Txt
67
77
  {...props}
68
78
  style={[
69
79
  {
70
80
  fontFamily: Fonts.ProximusRegular,
71
- color: theme.t('ColorTextNeutralDefault'),
81
+ color: theme.t(`ColorTextNeutral${invertedSuffix}`),
72
82
  lineHeight: fontSize * LINE_HEIGHT_BODY_RATIO,
73
83
  },
74
84
  ...(Array.isArray(props.style) ? props.style : [props.style]),
75
85
  props.disabled && {
76
- color: theme.t('ColorTextStateDisabledDefault'),
86
+ color: theme.t(`ColorTextStateDisabled${invertedSuffix}`),
77
87
  },
78
88
  ]}
79
89
  >