@dgui/react-native-shared 0.3.2-beta.1 → 1.0.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.
@@ -31,6 +31,6 @@ const AppBar = () => {
31
31
  handleSelectTab,
32
32
  tabOrder
33
33
  ]);
34
- return ((0, jsx_runtime_1.jsxs)(NativeBaseContainer_1.default, Object.assign({ style: styles.tabBar }, { children: [(0, jsx_runtime_1.jsx)(DrawerToggle_1.default, {}), (0, jsx_runtime_1.jsx)(NativeBaseTabBar_1.NativeBaseTabBar, { children: tabs })] })));
34
+ return ((0, jsx_runtime_1.jsxs)(NativeBaseContainer_1.default, { style: styles.tabBar, children: [(0, jsx_runtime_1.jsx)(DrawerToggle_1.default, {}), (0, jsx_runtime_1.jsx)(NativeBaseTabBar_1.NativeBaseTabBar, { children: tabs })] }));
35
35
  };
36
36
  exports.default = AppBar;
@@ -27,7 +27,7 @@ const DrawerBar = () => {
27
27
  handleSelectDrawer,
28
28
  drawerOrder
29
29
  ]);
30
- return ((0, jsx_runtime_1.jsx)(react_native_1.View, Object.assign({ style: styles.drawerBar }, { children: (0, jsx_runtime_1.jsx)(NativeBaseTabBar_1.NativeBaseTabBar, { children: tabs }) })));
30
+ return ((0, jsx_runtime_1.jsx)(react_native_1.View, { style: styles.drawerBar, children: (0, jsx_runtime_1.jsx)(NativeBaseTabBar_1.NativeBaseTabBar, { children: tabs }) }));
31
31
  };
32
32
  DrawerBar.displayName = 'NativeWebDrawerBar';
33
33
  exports.default = DrawerBar;
@@ -3,5 +3,5 @@ import { type ViewProps, type ViewStyle } from 'react-native';
3
3
  declare const NativeBaseContainer: FunctionComponent<NativeBaseContainerProps>;
4
4
  export default NativeBaseContainer;
5
5
  export type NativeBaseContainerProps = Omit<ViewProps, 'style'> & PropsWithChildren<{
6
- style: ViewStyle;
6
+ readonly style: ViewStyle;
7
7
  }>;
@@ -18,7 +18,7 @@ const NativeBaseContainer = (_a) => {
18
18
  const styles = react_native_1.StyleSheet.create({
19
19
  style
20
20
  });
21
- return ((0, jsx_runtime_1.jsx)(react_native_1.View, Object.assign({}, props, { style: styles.style }, { children: children })));
21
+ return ((0, jsx_runtime_1.jsx)(react_native_1.View, Object.assign({}, props, { style: styles.style, children: children })));
22
22
  };
23
23
  NativeBaseContainer.displayName = 'NativeBaseContainer';
24
24
  exports.default = NativeBaseContainer;
@@ -2,10 +2,10 @@ import { type FunctionComponent, type PropsWithChildren, type ReactNode } from '
2
2
  declare const NativeBaseDrawers: FunctionComponent<NativeBaseDrawersProps>;
3
3
  export default NativeBaseDrawers;
4
4
  export type NativeBaseDrawersProps = PropsWithChildren<{
5
- animationTime?: number;
6
- drawerContent?: ReactNode;
7
- drawerWidth?: number;
8
- opacity?: number;
9
- open?: boolean;
10
- position?: 'left' | 'right';
5
+ readonly animationTime?: number;
6
+ readonly drawerContent?: ReactNode;
7
+ readonly drawerWidth?: number;
8
+ readonly opacity?: number;
9
+ readonly open?: boolean;
10
+ readonly position?: 'left' | 'right';
11
11
  }>;
@@ -138,7 +138,7 @@ const NativeBaseDrawers = ({ animationTime = 150, children, drawerContent, drawe
138
138
  leftOffset,
139
139
  position
140
140
  ]);
141
- return ((0, jsx_runtime_1.jsxs)(react_native_1.View, Object.assign({ style: styles.container }, { children: [(0, jsx_runtime_1.jsx)(react_native_1.Animated.View, Object.assign({ style: styles.content }, { children: children })), (0, jsx_runtime_1.jsx)(react_native_1.Animated.View, Object.assign({ style: drawerStyle }, { children: drawerContent }))] })));
141
+ return ((0, jsx_runtime_1.jsxs)(react_native_1.View, { style: styles.container, children: [(0, jsx_runtime_1.jsx)(react_native_1.Animated.View, { style: styles.content, children: children }), (0, jsx_runtime_1.jsx)(react_native_1.Animated.View, { style: drawerStyle, children: drawerContent })] }));
142
142
  };
143
143
  NativeBaseDrawers.displayName = 'NativeBaseDrawers';
144
144
  exports.default = NativeBaseDrawers;
@@ -12,6 +12,6 @@ const styles = {
12
12
  }
13
13
  };
14
14
  const NativeBaseTabBar = ({ children }) => {
15
- return ((0, jsx_runtime_1.jsx)(NativeBaseContainer_1.default, Object.assign({ style: styles.tabBar }, { children: children })));
15
+ return ((0, jsx_runtime_1.jsx)(NativeBaseContainer_1.default, { style: styles.tabBar, children: children }));
16
16
  };
17
17
  exports.default = NativeBaseTabBar;
@@ -2,8 +2,8 @@ import { type FunctionComponent } from 'react';
2
2
  declare const NativeBaseTabBarTab: FunctionComponent<NativeBaseTabBarTabProps>;
3
3
  export default NativeBaseTabBarTab;
4
4
  export type NativeBaseTabBarTabProps = {
5
- onSelectTab: (tabIndex: number, tabId: string) => void;
6
- tabId: string;
7
- tabIndex: number;
8
- tabTitle?: string;
5
+ readonly onSelectTab: (tabIndex: number, tabId: string) => void;
6
+ readonly tabId: string;
7
+ readonly tabIndex: number;
8
+ readonly tabTitle?: string;
9
9
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@dgui/react-native-shared",
3
3
  "title": "Digested React GUI Native Shared Components",
4
4
  "license": "LGPL-3.0-or-later",
5
- "version": "0.3.2-beta.1",
5
+ "version": "1.0.0",
6
6
  "private": false,
7
7
  "description": "Native Shared Components for a boilerplate React GUI",
8
8
  "author": "wallzero @wallzeroblog (http://wallzero.com)",
@@ -43,34 +43,34 @@
43
43
  "set:version": "npm version --allow-same-version --no-commit-hooks --no-git-tag-version --no-workspaces-update $(npm --silent view $(node -p \"require('./package.json').name\") version)"
44
44
  },
45
45
  "devDependencies": {
46
- "@digest/eslint-config-jest": "^4.2.2",
47
- "@digest/eslint-config-react": "^4.2.2",
48
- "@digest/eslint-config-typescript": "^4.2.2",
49
- "@digest/jest-junit": "^4.2.2",
50
- "@digest/jest-react": "^4.2.2",
51
- "@digest/jest-typescript": "^4.2.2",
52
- "@digest/typescript": "^4.2.2",
53
- "@types/jest": "^29.5.1",
46
+ "@digest/eslint-config-jest": "^4.2.5",
47
+ "@digest/eslint-config-react": "^4.2.5",
48
+ "@digest/eslint-config-typescript": "^4.2.5",
49
+ "@digest/jest-junit": "^4.2.5",
50
+ "@digest/jest-react": "^4.2.5",
51
+ "@digest/jest-typescript": "^4.2.5",
52
+ "@digest/typescript": "^4.2.5",
53
+ "@types/jest": "^29.5.3",
54
54
  "@types/lodash.debounce": "^4.0.7",
55
- "@types/react": "^18.0.38",
56
- "@types/react-native": "^0.71.6",
55
+ "@types/react": "^18.2.17",
56
+ "@types/react-native": "^0.72.2",
57
57
  "@types/react-test-renderer": "^18.0.0",
58
58
  "cross-env": "^7.0.3",
59
- "jest-environment-jsdom": "^29.5.0",
59
+ "jest-environment-jsdom": "^29.6.2",
60
60
  "jest-environment-jsdom-global": "^4.0.0",
61
61
  "npm-run-all": "^4.1.5",
62
62
  "react": "^18.2.0",
63
- "react-native": "^0.71.7",
63
+ "react-native": "^0.72.3",
64
64
  "react-test-renderer": "^18.2.0",
65
- "rimraf": "^5.0.0"
65
+ "rimraf": "^5.0.1"
66
66
  },
67
67
  "dependencies": {
68
- "@dgui/react-shared": "^0.3.2-beta.1",
68
+ "@dgui/react-shared": "^1.0.0",
69
69
  "lodash.debounce": "^4.0.8"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "react": "^16.0.0 || ^17.0.0 || ^18.0.0",
73
- "react-native": "^0.71.0"
73
+ "react-native": "^0.72.0"
74
74
  },
75
75
  "keywords": [
76
76
  "digest",
@@ -80,5 +80,5 @@
80
80
  "react-native",
81
81
  "typescript"
82
82
  ],
83
- "gitHead": "d7041d722670220288a98743c02810b000cf8020"
83
+ "gitHead": "ac0d0964d66c9c11f50b625d5ca5aec4e20bb72a"
84
84
  }