@proximus/lavender-styling-native 0.1.0-alpha.3 → 0.1.0-alpha.5
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 +12 -0
- package/dist/ProximusTheme.js +6 -0
- package/dist/ScarletTheme.js +6 -0
- package/dist/ThemeContext.js +9 -0
- package/dist/ThemeProvider.js +15 -0
- package/dist/far/away/package.json +28 -0
- package/dist/index.js +3 -0
- package/dist/themes.js +5 -0
- package/package.json +11 -4
- package/tsconfig.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.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
|
+
|
|
6
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)
|
|
7
19
|
|
|
8
20
|
### Features
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { useContext } from 'react';
|
|
2
|
+
import { myProximusTheme } from './ProximusTheme';
|
|
3
|
+
export const ThemeContext = React.createContext({
|
|
4
|
+
theme: myProximusTheme,
|
|
5
|
+
});
|
|
6
|
+
export function useTheme() {
|
|
7
|
+
const theme = useContext(ThemeContext);
|
|
8
|
+
return theme || {};
|
|
9
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import { ThemeContext, useTheme } from './ThemeContext';
|
|
3
|
+
export function ThemeProvider({ theme, children, }) {
|
|
4
|
+
const [themeValue, setTheme] = useState(theme);
|
|
5
|
+
return (React.createElement(ThemeContext.Provider, { value: {
|
|
6
|
+
theme: themeValue,
|
|
7
|
+
setTheme,
|
|
8
|
+
} }, children));
|
|
9
|
+
}
|
|
10
|
+
export function withTheme(WrappedComponent) {
|
|
11
|
+
return (props) => {
|
|
12
|
+
const { theme, setTheme } = useTheme();
|
|
13
|
+
return (React.createElement(WrappedComponent, { ...props, theme: theme, onThemeChanged: setTheme }));
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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/dist/index.js
ADDED
package/dist/themes.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proximus/lavender-styling-native",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.5",
|
|
4
4
|
"description": "Commmon styling constants",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -10,18 +10,25 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"clean": "rm -rf dist",
|
|
12
12
|
"build": "npx tsc -p tsconfig.json",
|
|
13
|
-
"
|
|
13
|
+
"transform-package-json": "node ../../../scripts/tranformPackageJson.js package.json dist/far/away",
|
|
14
|
+
"prepublish": "yarn clean && yarn transform-package-json && yarn build"
|
|
14
15
|
},
|
|
15
16
|
"lerna": {
|
|
16
17
|
"command": {
|
|
17
18
|
"publish": {
|
|
18
19
|
"assets": [
|
|
19
|
-
|
|
20
|
+
{
|
|
21
|
+
"from": "dist/far/away/package.json",
|
|
22
|
+
"to": "."
|
|
23
|
+
},
|
|
24
|
+
"dist/*.js",
|
|
25
|
+
"dist/*.d.ts",
|
|
26
|
+
"dist/*.d.ts.map",
|
|
20
27
|
"src",
|
|
21
28
|
"package.json"
|
|
22
29
|
]
|
|
23
30
|
}
|
|
24
31
|
}
|
|
25
32
|
},
|
|
26
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "e50a17526561b3eafb159e36c737173956093e0d"
|
|
27
34
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "
|
|
2
|
+
"extends": "../../../tsconfig.npm.json",
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"outDir": "dist"
|
|
5
5
|
},
|
|
6
6
|
"include": ["src","../../lib.d.ts"],
|
|
7
|
-
"exclude": ["dist", "node_modules", "src/**/*.
|
|
7
|
+
"exclude": ["dist", "node_modules", "src/**/*.spec.tsx", "src/**/*.spec.ts"]
|
|
8
8
|
}
|