diff --git a/example/package.json b/example/package.json index 685d7c3af..ffe649ffc 100644 --- a/example/package.json +++ b/example/package.json @@ -1,7 +1,7 @@ { "name": "@draftbit/example", "description": "Example app for @draftbit/ui", - "version": "47.7.6", + "version": "47.7.7", "private": true, "main": "__generated__/AppEntry.js", "scripts": { @@ -16,8 +16,8 @@ "clean:modules": "rimraf node_modules" }, "dependencies": { - "@draftbit/maps": "47.7.6", - "@draftbit/ui": "47.7.6", + "@draftbit/maps": "47.7.7", + "@draftbit/ui": "47.7.7", "@expo/dev-server": "0.1.123", "@expo/webpack-config": "^0.17.2", "@react-navigation/drawer": "^5.12.9", diff --git a/lerna.json b/lerna.json index c81352298..1eb418c23 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "47.7.6", + "version": "47.7.7", "npmClient": "yarn", "useWorkspaces": true, "packages": ["packages/*", "example"], diff --git a/packages/core/package.json b/packages/core/package.json index 4cb7853b5..1d4000802 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@draftbit/core", - "version": "47.7.6", + "version": "47.7.7", "description": "Core (non-native) Components", "main": "lib/commonjs/index.js", "types": "lib/typescript/src/index.d.ts", diff --git a/packages/core/src/components/Checkbox/Checkbox.tsx b/packages/core/src/components/Checkbox/Checkbox.tsx index e66183fb9..cecdb9588 100644 --- a/packages/core/src/components/Checkbox/Checkbox.tsx +++ b/packages/core/src/components/Checkbox/Checkbox.tsx @@ -92,7 +92,7 @@ const Checkbox: React.FC = ({ accessibilityState={{ disabled }} accessibilityRole="button" accessibilityLiveRegion="polite" - style={[styles.container, style]} + style={[styles.container, style, { width: size, height: size }]} > > = ({ styles.container, { opacity: pressed ? activeOpacity : disabled ? disabledOpacity : 1, + width: size, + height: size, alignItems: "center", justifyContent: "center", }, diff --git a/packages/maps/package.json b/packages/maps/package.json index 953ba9771..6cae088d2 100644 --- a/packages/maps/package.json +++ b/packages/maps/package.json @@ -1,6 +1,6 @@ { "name": "@draftbit/maps", - "version": "47.7.6", + "version": "47.7.7", "description": "Map Components", "main": "lib/commonjs/index.js", "types": "lib/typescript/src/index.d.ts", @@ -39,7 +39,7 @@ }, "homepage": "https://github.com/draftbit/react-native-jigsaw#readme", "dependencies": { - "@draftbit/ui": "47.7.6", + "@draftbit/ui": "47.7.7", "@teovilla/react-native-web-maps": "^0.9.1", "lodash.isequal": "^4.5.0", "react-native-maps": "1.3.2" diff --git a/packages/native/package.json b/packages/native/package.json index e99a238dd..b0c23047e 100644 --- a/packages/native/package.json +++ b/packages/native/package.json @@ -1,6 +1,6 @@ { "name": "@draftbit/native", - "version": "47.7.5", + "version": "47.7.7", "description": "Draftbit UI Components that Depend on Native Components", "main": "lib/commonjs/index.js", "types": "lib/typescript/src/index.d.ts", diff --git a/packages/native/src/components/Icon.tsx b/packages/native/src/components/Icon.tsx index 67eae7a59..cade230d2 100644 --- a/packages/native/src/components/Icon.tsx +++ b/packages/native/src/components/Icon.tsx @@ -1,5 +1,12 @@ import * as React from "react"; -import { ViewProps, StyleProp, ImageStyle, Platform } from "react-native"; +import { + View, + StyleSheet, + ViewProps, + StyleProp, + ImageStyle, + Platform, +} from "react-native"; // This must use require to work in both web as a published project and in Snack const VectorIcons = require("@expo/vector-icons"); @@ -28,25 +35,24 @@ const Icon: React.FC> = ({ const IconSet = VectorIcons[iconSet]; return ( - + + + ); }; +const styles = StyleSheet.create({ + container: { + alignItems: "center", + justifyContent: "center", + overflow: "hidden", + ...Platform.select({ + web: { + cursor: "pointer", + userSelect: "none", + }, + }), + }, +}); + export default Icon; diff --git a/packages/ui/package.json b/packages/ui/package.json index f78ba7ec4..91e6a7f10 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@draftbit/ui", - "version": "47.7.6", + "version": "47.7.7", "description": "Draftbit UI Library", "main": "lib/commonjs/index.js", "types": "lib/typescript/src/index.d.ts", @@ -43,8 +43,8 @@ }, "homepage": "https://github.com/draftbit/react-native-jigsaw#readme", "dependencies": { - "@draftbit/core": "47.7.6", - "@draftbit/native": "47.7.5", + "@draftbit/core": "47.7.7", + "@draftbit/native": "47.7.7", "react-native-reanimated": "~2.12.0" }, "eslintIgnore": [