@draftbit/core 50.5.1 → 50.5.2-f391f6.2

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.
@@ -1 +1 @@
1
- var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/ActionSheet/ActionSheetItem.tsx";import React from"react";import{Text,StyleSheet,TouchableOpacity}from"react-native";import{extractStyles}from"../../utilities";import{jsx as _jsx}from"react/jsx-runtime";var ActionSheetItem=function ActionSheetItem(_ref){var label=_ref.label,style=_ref.style,color=_ref.color,onPress=_ref.onPress;var _extractStyles=extractStyles(style),textStyles=_extractStyles.textStyles,viewStyles=_extractStyles.viewStyles;return _jsx(TouchableOpacity,{activeOpacity:0.7,style:[styles.wrapper,viewStyles],onPress:onPress,children:_jsx(Text,{style:[styles.label,textStyles,{color:color}],children:label})});};var styles=StyleSheet.create({wrapper:{borderBottomWidth:StyleSheet.hairlineWidth,borderBottomColor:"#CCCCCC",backgroundColor:"#F1F1F1",minHeight:50,overflow:"hidden",display:"flex",justifyContent:"center"},label:{fontSize:16,textAlign:"center",color:"#0A84FF",fontWeight:"500",overflow:"hidden",paddingHorizontal:20,paddingVertical:10,alignSelf:"center"}});export default ActionSheetItem;
1
+ var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/ActionSheet/ActionSheetItem.tsx";import React from"react";import{Text,StyleSheet,TouchableOpacity}from"react-native";import{extractStyles}from"../../utilities";import{jsx as _jsx}from"react/jsx-runtime";var ActionSheetItem=function ActionSheetItem(_ref){var label=_ref.label,style=_ref.style,color=_ref.color,onPress=_ref.onPress,_ref$activeOpacity=_ref.activeOpacity,activeOpacity=_ref$activeOpacity===void 0?0.7:_ref$activeOpacity;var _extractStyles=extractStyles(style),textStyles=_extractStyles.textStyles,viewStyles=_extractStyles.viewStyles;return _jsx(TouchableOpacity,{activeOpacity:activeOpacity,style:[styles.wrapper,viewStyles],onPress:onPress,children:_jsx(Text,{style:[styles.label,textStyles,{color:color}],children:label})});};var styles=StyleSheet.create({wrapper:{borderBottomWidth:StyleSheet.hairlineWidth,borderBottomColor:"#CCCCCC",backgroundColor:"#F1F1F1",minHeight:50,overflow:"hidden",display:"flex",justifyContent:"center"},label:{fontSize:16,textAlign:"center",color:"#0A84FF",fontWeight:"500",overflow:"hidden",paddingHorizontal:20,paddingVertical:10,alignSelf:"center"}});export default ActionSheetItem;
@@ -5,6 +5,7 @@ declare type Props = {
5
5
  color: string;
6
6
  style?: StyleProp<ViewStyle | TextStyle>;
7
7
  onPress?: () => void;
8
+ activeOpacity?: number;
8
9
  };
9
10
  declare const ActionSheetItem: React.FC<React.PropsWithChildren<Props>>;
10
11
  export default ActionSheetItem;
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  import { Text, StyleSheet, TouchableOpacity, } from "react-native";
3
3
  import { extractStyles } from "../../utilities";
4
- const ActionSheetItem = ({ label, style, color, onPress, }) => {
4
+ const ActionSheetItem = ({ label, style, color, onPress, activeOpacity = 0.7, }) => {
5
5
  const { textStyles, viewStyles } = extractStyles(style);
6
- return (React.createElement(TouchableOpacity, { activeOpacity: 0.7, style: [styles.wrapper, viewStyles], onPress: onPress },
6
+ return (React.createElement(TouchableOpacity, { activeOpacity: activeOpacity, style: [styles.wrapper, viewStyles], onPress: onPress },
7
7
  React.createElement(Text, { style: [styles.label, textStyles, { color }] }, label)));
8
8
  };
9
9
  const styles = StyleSheet.create({
@@ -1 +1 @@
1
- {"version":3,"file":"ActionSheetItem.js","sourceRoot":"","sources":["../../../../../src/components/ActionSheet/ActionSheetItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,IAAI,EACJ,UAAU,EAEV,gBAAgB,GAGjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAShD,MAAM,eAAe,GAA6C,CAAC,EACjE,KAA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