@chainplatform/sdk 0.1.4 → 0.1.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/LayoutAdmin.js ADDED
@@ -0,0 +1,31 @@
1
+ export function getLayoutAdmin(layoutWidth, isDesktop, side_bar_width, styles) {
2
+ let numberChart = 1;
3
+ let padding = styles.s30;
4
+ let sideBarWidth = side_bar_width;
5
+ let sideBarOpen = false;
6
+ let sideBarMiniWidth = styles.s70;
7
+ let sideBarSecondWidth = side_bar_width - styles.s70;
8
+ if (isDesktop && layoutWidth > styles.base_desktop) {
9
+ sideBarWidth = side_bar_width;
10
+ }
11
+ if (layoutWidth > 600 && layoutWidth < styles.base_desktop) {
12
+ numberChart = 2;
13
+ padding = styles.s45;
14
+ }
15
+ if (layoutWidth >= styles.base_desktop && layoutWidth < styles.split_desktop) {
16
+ numberChart = 3;
17
+ padding = styles.s60;
18
+ }
19
+ if (layoutWidth >= styles.split_desktop) {
20
+ numberChart = 4;
21
+ padding = styles.s75;
22
+ }
23
+ const chartWidth = (layoutWidth - sideBarMiniWidth - padding) / numberChart;
24
+ let view = {};
25
+ view.sideBarWidth = sideBarWidth;
26
+ view.sideBarMiniWidth = sideBarMiniWidth;
27
+ view.sideBarSecondWidth = sideBarSecondWidth;
28
+ view.sideBarOpen = sideBarOpen;
29
+ view.chartWidth = chartWidth;
30
+ return view;
31
+ }
package/logs.json CHANGED
@@ -1,4 +1,8 @@
1
1
  [
2
+ {
3
+ "label": "Aug 19, 2024",
4
+ "content": "Upgrade core platform to React Native 0.75.1. Add Admin Layout setting."
5
+ },
2
6
  {
3
7
  "label": "Aug 10, 2024",
4
8
  "content": "Upgrade core platform to React Native 0.74.5, create @chainplatform/sdk package for platform."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainplatform/sdk",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "@chainplatform/sdk is a React Native library implement for react-native and react-native-web. Require crypto-js and react-native-mmkv packages.",
5
5
  "main": "index.js",
6
6
  "devDependencies": {