@proximus/lavender-texts-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/package.json CHANGED
@@ -1,42 +1,17 @@
1
1
  {
2
2
  "name": "@proximus/lavender-texts-native",
3
- "version": "0.1.0-alpha.6",
3
+ "version": "0.1.0-beta.0",
4
4
  "description": "Lavender Text component",
5
- "main": "src/index.ts",
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": "workspace:*",
15
- "@proximus/lavender-styling-native": "workspace:*"
16
- },
17
- "devDependencies": {
18
- "@proximus/lavender-common-native": "0.1.0-alpha.6",
19
- "@proximus/lavender-styling-native": "0.1.0-alpha.5"
11
+ "@proximus/lavender-common-native": "*",
12
+ "@proximus/lavender-styling-native": "*"
20
13
  },
21
14
  "publishConfig": {
22
15
  "access": "public"
23
- },
24
- "lerna": {
25
- "command": {
26
- "publish": {
27
- "assets": [
28
- {
29
- "from": "dist/far/away/package.json",
30
- "to": "."
31
- },
32
- "dist/*.js",
33
- "dist/*.d.ts",
34
- "dist/*.d.ts.map",
35
- "src",
36
- "package.json"
37
- ]
38
- }
39
- }
40
- },
41
- "gitHead": "e50a17526561b3eafb159e36c737173956093e0d"
16
+ }
42
17
  }
package/CHANGELOG.md DELETED
@@ -1,50 +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-texts-native@0.1.0-alpha.5...@proximus/lavender-texts-native@0.1.0-alpha.6) (2025-09-26)
7
-
8
- ### Features
9
-
10
- - **BCRI-42375821:** publisg js bundle output on npm ([#28](https://github.com/Pxs-Corporate/react-native-lavender/issues/28)) ([892ae60](https://github.com/Pxs-Corporate/react-native-lavender/commit/892ae600d6c00996c70028236f25afd0367402aa))
11
-
12
- # [0.1.0-alpha.5](https://github.com/Pxs-Corporate/react-native-lavender/compare/@proximus/lavender-texts-native@0.1.0-alpha.4...@proximus/lavender-texts-native@0.1.0-alpha.5) (2025-09-25)
13
-
14
- ### Bug Fixes
15
-
16
- - **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))
17
-
18
- # [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)
19
-
20
- ### Features
21
-
22
- - **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))
23
-
24
- # [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)
25
-
26
- ### Features
27
-
28
- - **BCRI-4217211:** card component ([#20](https://github.com/Pxs-Corporate/react-native-lavender/issues/20)) ([0287bee](https://github.com/Pxs-Corporate/react-native-lavender/commit/0287bee00a5b532403026b5a2ca0e702b70c822f))
29
-
30
- # [0.1.0-alpha.2](https://github.com/Pxs-Corporate/react-native-lavender/compare/@proximus/lavender-texts-native@0.1.0-alpha.1...@proximus/lavender-texts-native@0.1.0-alpha.2) (2025-09-05)
31
-
32
- ### Features
33
-
34
- - **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))
35
-
36
- # [0.1.0-alpha.1](https://github.com/Pxs-Corporate/react-native-lavender/compare/@proximus/lavender-texts-native@0.1.0-alpha.0...@proximus/lavender-texts-native@0.1.0-alpha.1) (2025-08-13)
37
-
38
- ### Bug Fixes
39
-
40
- - **BCRI-4210372:** fix types field in modules ([68ac126](https://github.com/Pxs-Corporate/react-native-lavender/commit/68ac12657112473ae9e0e683076b1d9172be9ce6))
41
-
42
- # 0.1.0-alpha.0 (2025-08-13)
43
-
44
- ### Features
45
-
46
- - **BCRI-3651606:** mono repo creation ([d19f852](https://github.com/Pxs-Corporate/react-native-lavender/commit/d19f852a710963ff85b1a9d31d18188217aa23ab))
47
- - **BCRI-3660857:** cell components ([af9e45c](https://github.com/Pxs-Corporate/react-native-lavender/commit/af9e45cefc20d08d2338380ff4cd8cd6851abe24))
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-4210372:** automatic versionning ([9c1f0a0](https://github.com/Pxs-Corporate/react-native-lavender/commit/9c1f0a00e19a9d1a277044ea627632032a674102))
@@ -1,32 +0,0 @@
1
- {
2
- "name": "@proximus/lavender-texts-native",
3
- "version": "0.1.0-alpha.6",
4
- "description": "Lavender Text component",
5
- "main": "dist/index.js",
6
- "type": "module",
7
- "peerDependencies": {
8
- "@proximus/lavender-common-native": "*",
9
- "@proximus/lavender-styling-native": "*"
10
- },
11
- "publishConfig": {
12
- "access": "public"
13
- },
14
- "lerna": {
15
- "command": {
16
- "publish": {
17
- "assets": [
18
- {
19
- "from": "dist/far/away/package.json",
20
- "to": "."
21
- },
22
- "dist/*.js",
23
- "dist/*.d.ts",
24
- "dist/*.d.ts.map",
25
- "src",
26
- "package.json"
27
- ]
28
- }
29
- }
30
- },
31
- "gitHead": "e50a17526561b3eafb159e36c737173956093e0d"
32
- }
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './v8';
package/src/v8.tsx DELETED
@@ -1,97 +0,0 @@
1
- import React from 'react';
2
- import { Platform, StyleProp, Text, TextProps, TextStyle } from 'react-native';
3
- import { useTheme } from '@proximus/lavender-styling-native';
4
-
5
- const DEFAULT_HEADER_FONT_SIZE = 27;
6
- const DEFAULT_BODY_FONT_SIZE = 16;
7
- const LINE_HEIGHT_HEADER_RATIO = 1.3;
8
- const LINE_HEIGHT_BODY_RATIO = 1.5;
9
-
10
- export const Fonts = {
11
- ProximusRegular: Platform.OS === 'android' ? 'Proximus-Regular' : 'Proximus',
12
- ProximusRegularItalic: 'Proximus-RegularItalic',
13
- ProximusBold: 'Proximus-Bold',
14
- ProximusBoldItalic: 'Proximus-BoldItalic',
15
- ProximusExtraBold: 'Proximus-ExtraBold',
16
- ProximusLight: 'Proximus-Light',
17
- ProximusLightItalic: 'Proximus-LightItalic',
18
- ProximusIcons: 'PxIcon',
19
- primary: 'Proximus-Regular',
20
- primaryBold: 'Proximus-ExtraBold',
21
- primaryLight: 'Proximus-Light',
22
- };
23
-
24
- function extractFontSize(style: StyleProp<TextStyle>) {
25
- if (Array.isArray(style)) {
26
- for (const item of style) {
27
- if ((item as TextStyle)?.fontSize) {
28
- return (item as TextStyle)?.fontSize;
29
- }
30
- }
31
- return DEFAULT_HEADER_FONT_SIZE;
32
- }
33
- if (typeof style === 'object') {
34
- return style?.fontSize;
35
- }
36
- return undefined;
37
- }
38
-
39
- export function Header(
40
- props: TextProps & { disabled?: boolean; inverted?: boolean }
41
- ) {
42
- const fontSize = extractFontSize(props.style) || DEFAULT_HEADER_FONT_SIZE;
43
- const { theme } = useTheme();
44
-
45
- const invertedSuffix = props.inverted ? 'Inverted' : 'Default';
46
-
47
- return (
48
- <Txt
49
- {...props}
50
- style={[
51
- {
52
- fontFamily: Fonts.ProximusBold,
53
- color: theme.t(`ColorTextNeutral${invertedSuffix}`),
54
- lineHeight: fontSize * LINE_HEIGHT_HEADER_RATIO,
55
- },
56
- ...(Array.isArray(props.style) ? props.style : [props.style]),
57
- props.disabled && {
58
- color: theme.t(`ColorTextStateDisabled${invertedSuffix}`),
59
- },
60
- ]}
61
- >
62
- {props.children}
63
- </Txt>
64
- );
65
- }
66
-
67
- export function Body(
68
- props: TextProps & { disabled?: boolean; inverted?: boolean }
69
- ) {
70
- const fontSize = extractFontSize(props.style) || DEFAULT_BODY_FONT_SIZE;
71
- const { theme } = useTheme();
72
-
73
- const invertedSuffix = props.inverted ? 'Inverted' : 'Default';
74
-
75
- return (
76
- <Txt
77
- {...props}
78
- style={[
79
- {
80
- fontFamily: Fonts.ProximusRegular,
81
- color: theme.t(`ColorTextNeutral${invertedSuffix}`),
82
- lineHeight: fontSize * LINE_HEIGHT_BODY_RATIO,
83
- },
84
- ...(Array.isArray(props.style) ? props.style : [props.style]),
85
- props.disabled && {
86
- color: theme.t(`ColorTextStateDisabled${invertedSuffix}`),
87
- },
88
- ]}
89
- >
90
- {props.children}
91
- </Txt>
92
- );
93
- }
94
-
95
- function Txt(props: TextProps) {
96
- return <Text {...props}>{props.children}</Text>;
97
- }
package/tsconfig.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "extends": "../../../tsconfig.npm.json",
3
- "compilerOptions": {
4
- "outDir": "dist",
5
- },
6
- "include": ["src","../../lib.d.ts"],
7
- "exclude": ["dist", "node_modules", "src/**/*.spec.tsx", "src/**/*.spec.ts"]
8
- }