@proximus/lavender-styling-native 0.1.0-alpha.5 → 1.1.0-alpha.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 +8 -26
- package/CHANGELOG.md +0 -43
- package/dist/far/away/package.json +0 -28
- package/src/ProximusTheme.ts +0 -7
- package/src/ScarletTheme.ts +0 -7
- package/src/ThemeContext.ts +0 -13
- package/src/ThemeProvider.tsx +0 -34
- package/src/index.ts +0 -3
- package/src/themes.ts +0 -37
- package/tsconfig.json +0 -8
package/package.json
CHANGED
|
@@ -1,34 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proximus/lavender-styling-native",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.0-alpha.0",
|
|
4
4
|
"description": "Commmon styling constants",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
6
9
|
"type": "module",
|
|
7
10
|
"publishConfig": {
|
|
8
11
|
"access": "public"
|
|
9
12
|
},
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
"transform-package-json": "node ../../../scripts/tranformPackageJson.js package.json dist/far/away",
|
|
14
|
-
"prepublish": "yarn clean && yarn transform-package-json && yarn build"
|
|
15
|
-
},
|
|
16
|
-
"lerna": {
|
|
17
|
-
"command": {
|
|
18
|
-
"publish": {
|
|
19
|
-
"assets": [
|
|
20
|
-
{
|
|
21
|
-
"from": "dist/far/away/package.json",
|
|
22
|
-
"to": "."
|
|
23
|
-
},
|
|
24
|
-
"dist/*.js",
|
|
25
|
-
"dist/*.d.ts",
|
|
26
|
-
"dist/*.d.ts.map",
|
|
27
|
-
"src",
|
|
28
|
-
"package.json"
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"gitHead": "e50a17526561b3eafb159e36c737173956093e0d"
|
|
13
|
+
"peerDependencies": {
|
|
14
|
+
"@proximus/lavender-styling": "*"
|
|
15
|
+
}
|
|
34
16
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,43 +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.5](https://github.com/Pxs-Corporate/react-native-lavender/compare/@proximus/lavender-styling-native@0.1.0-alpha.4...@proximus/lavender-styling-native@0.1.0-alpha.5) (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.4](https://github.com/Pxs-Corporate/react-native-lavender/compare/@proximus/lavender-styling-native@0.1.0-alpha.3...@proximus/lavender-styling-native@0.1.0-alpha.4) (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.3](https://github.com/Pxs-Corporate/react-native-lavender/compare/@proximus/lavender-styling-native@0.1.0-alpha.2...@proximus/lavender-styling-native@0.1.0-alpha.3) (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.2](https://github.com/Pxs-Corporate/react-native-lavender/compare/@proximus/lavender-styling-native@0.1.0-alpha.1...@proximus/lavender-styling-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-styling-native@0.1.0-alpha.0...@proximus/lavender-styling-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
|
-
### Features
|
|
39
|
-
|
|
40
|
-
- **BCRI-3651606:** mono repo creation ([d19f852](https://github.com/Pxs-Corporate/react-native-lavender/commit/d19f852a710963ff85b1a9d31d18188217aa23ab))
|
|
41
|
-
- **BCRI-3702949:** tertiary button ([db24455](https://github.com/Pxs-Corporate/react-native-lavender/commit/db24455bd9687d80920be3e42c9e1fc14703a571))
|
|
42
|
-
- **BCRI-3810979:** tile components ([46fc5c7](https://github.com/Pxs-Corporate/react-native-lavender/commit/46fc5c7a0ddff6c2db43fba0de9929626092f265))
|
|
43
|
-
- **BCRI-4210372:** automatic versionning ([9c1f0a0](https://github.com/Pxs-Corporate/react-native-lavender/commit/9c1f0a00e19a9d1a277044ea627632032a674102))
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@proximus/lavender-styling-native",
|
|
3
|
-
"version": "0.1.0-alpha.5",
|
|
4
|
-
"description": "Commmon styling constants",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"publishConfig": {
|
|
8
|
-
"access": "public"
|
|
9
|
-
},
|
|
10
|
-
"lerna": {
|
|
11
|
-
"command": {
|
|
12
|
-
"publish": {
|
|
13
|
-
"assets": [
|
|
14
|
-
{
|
|
15
|
-
"from": "dist/far/away/package.json",
|
|
16
|
-
"to": "."
|
|
17
|
-
},
|
|
18
|
-
"dist/*.js",
|
|
19
|
-
"dist/*.d.ts",
|
|
20
|
-
"dist/*.d.ts.map",
|
|
21
|
-
"src",
|
|
22
|
-
"package.json"
|
|
23
|
-
]
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"gitHead": "e50a17526561b3eafb159e36c737173956093e0d"
|
|
28
|
-
}
|
package/src/ProximusTheme.ts
DELETED
package/src/ScarletTheme.ts
DELETED
package/src/ThemeContext.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React, { useContext } from 'react';
|
|
2
|
-
|
|
3
|
-
import { type IThemeContext } from './themes';
|
|
4
|
-
import { myProximusTheme } from './ProximusTheme';
|
|
5
|
-
|
|
6
|
-
export const ThemeContext = React.createContext<IThemeContext>({
|
|
7
|
-
theme: myProximusTheme,
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
export function useTheme() {
|
|
11
|
-
const theme = useContext(ThemeContext);
|
|
12
|
-
return theme || {};
|
|
13
|
-
}
|
package/src/ThemeProvider.tsx
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React, { ComponentType, ReactNode, useState } from 'react';
|
|
2
|
-
|
|
3
|
-
import { ThemeContext, useTheme } from './ThemeContext';
|
|
4
|
-
import { ITheme } from './themes';
|
|
5
|
-
|
|
6
|
-
export function ThemeProvider({
|
|
7
|
-
theme,
|
|
8
|
-
children,
|
|
9
|
-
}: {
|
|
10
|
-
theme: ITheme;
|
|
11
|
-
children: ReactNode;
|
|
12
|
-
}) {
|
|
13
|
-
const [themeValue, setTheme] = useState<ITheme>(theme);
|
|
14
|
-
|
|
15
|
-
return (
|
|
16
|
-
<ThemeContext.Provider
|
|
17
|
-
value={{
|
|
18
|
-
theme: themeValue,
|
|
19
|
-
setTheme,
|
|
20
|
-
}}
|
|
21
|
-
>
|
|
22
|
-
{children}
|
|
23
|
-
</ThemeContext.Provider>
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export function withTheme<T>(WrappedComponent: ComponentType<T>) {
|
|
28
|
-
return (props: T) => {
|
|
29
|
-
const { theme, setTheme } = useTheme();
|
|
30
|
-
return (
|
|
31
|
-
<WrappedComponent {...props} theme={theme} onThemeChanged={setTheme} />
|
|
32
|
-
);
|
|
33
|
-
};
|
|
34
|
-
}
|
package/src/index.ts
DELETED
package/src/themes.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import * as proximusTokens from '@proximus/lavender-styling/dist/js/proximus/themesTokens.js';
|
|
2
|
-
import * as scarletTokens from '@proximus/lavender-styling/dist/js/scarlet/themesTokens.js';
|
|
3
|
-
|
|
4
|
-
export enum ThemeName {
|
|
5
|
-
MYPROXIMUS = 'myproximus',
|
|
6
|
-
SCARLET = 'scarlet',
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type TokenValuesTypes =
|
|
10
|
-
| string
|
|
11
|
-
| { color: string; position: number }[]
|
|
12
|
-
| number
|
|
13
|
-
| {
|
|
14
|
-
original: string | number;
|
|
15
|
-
number: number;
|
|
16
|
-
decimal: number;
|
|
17
|
-
scale: number;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export interface IAbstractTheme<
|
|
21
|
-
TOKENS extends Record<string, TokenValuesTypes> = Record<
|
|
22
|
-
string,
|
|
23
|
-
TokenValuesTypes
|
|
24
|
-
>,
|
|
25
|
-
> {
|
|
26
|
-
name: ThemeName;
|
|
27
|
-
|
|
28
|
-
t<K extends keyof TOKENS>(key: K): TOKENS[K];
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface ITheme
|
|
32
|
-
extends IAbstractTheme<typeof proximusTokens | typeof scarletTokens> {}
|
|
33
|
-
|
|
34
|
-
export interface IThemeContext {
|
|
35
|
-
theme: ITheme;
|
|
36
|
-
setTheme?: (theme: ITheme) => void;
|
|
37
|
-
}
|