@draftbit/core 49.6.3-4c8b90.2 → 49.6.3-5f6aeb.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.
- package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -1
- package/lib/commonjs/components/Picker/PickerInputContainer.js +1 -1
- package/lib/commonjs/components/TextField.js +1 -1
- package/lib/typescript/src/components/AccordionGroup.d.ts +1 -1
- package/lib/typescript/src/components/ActivityIndicator.d.ts +1 -1
- package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts +2 -2
- package/lib/typescript/src/components/BottomSheet/BottomSheet.js +1 -2
- package/lib/typescript/src/components/BottomSheet/BottomSheet.js.map +1 -1
- package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts +1 -1
- package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +1 -1
- package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts +2 -2
- package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts +1 -1
- package/lib/typescript/src/components/Divider.d.ts +1 -1
- package/lib/typescript/src/components/Elevation.d.ts +1 -1
- package/lib/typescript/src/components/IconButton.d.ts +1 -1
- package/lib/typescript/src/components/Picker/NativePicker.d.ts +1 -1
- package/lib/typescript/src/components/Picker/PickerInputContainer.js +2 -1
- package/lib/typescript/src/components/Picker/PickerInputContainer.js.map +1 -1
- package/lib/typescript/src/components/Picker/dropdown/DropDownModalPicker.d.ts +1 -1
- package/lib/typescript/src/components/Picker/dropdown/DropDownPicker.d.ts +1 -1
- package/lib/typescript/src/components/Picker/dropdown/MultiSelectPicker.d.ts +1 -1
- package/lib/typescript/src/components/Picker/index.d.ts +1 -1
- package/lib/typescript/src/components/PinInput/PinInput.d.ts +1 -1
- package/lib/typescript/src/components/PinInput/PinInputText.d.ts +1 -1
- package/lib/typescript/src/components/Progress/CircularProgress/index.d.ts +1 -1
- package/lib/typescript/src/components/Progress/LinearProgress/index.d.ts +1 -1
- package/lib/typescript/src/components/ProgressIndicator.d.ts +1 -1
- package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts +1 -1
- package/lib/typescript/src/components/Row.d.ts +1 -1
- package/lib/typescript/src/components/ScreenContainer.d.ts +1 -1
- package/lib/typescript/src/components/SectionList/SectionHeader.d.ts +1 -1
- package/lib/typescript/src/components/Slider.d.ts +1 -1
- package/lib/typescript/src/components/StarRating.d.ts +1 -1
- package/lib/typescript/src/components/Stepper.d.ts +1 -1
- package/lib/typescript/src/components/Surface.d.ts +1 -1
- package/lib/typescript/src/components/SwipeableItem/SwipeableItem.d.ts +1 -1
- package/lib/typescript/src/components/Swiper/Swiper.d.ts +1 -1
- package/lib/typescript/src/components/Switch.d.ts +3 -3
- package/lib/typescript/src/components/TabView/TabView.d.ts +1 -1
- package/lib/typescript/src/components/Table/Table.d.ts +1 -1
- package/lib/typescript/src/components/Table/TableRow.d.ts +1 -1
- package/lib/typescript/src/components/Text.d.ts +1 -1
- package/lib/typescript/src/components/TextField.d.ts +1 -1
- package/lib/typescript/src/components/TextField.js +10 -13
- package/lib/typescript/src/components/TextField.js.map +1 -1
- package/lib/typescript/src/components/Typography.d.ts +3 -3
- package/lib/typescript/src/deprecated-components/AccordionItem.d.ts +1 -1
- package/lib/typescript/src/deprecated-components/AvatarEdit.d.ts +1 -1
- package/lib/typescript/src/deprecated-components/Banner.d.ts +1 -1
- package/lib/typescript/src/deprecated-components/Card.d.ts +3 -3
- package/lib/typescript/src/deprecated-components/Container.d.ts +1 -1
- package/lib/typescript/src/deprecated-components/DeprecatedButton.d.ts +1 -1
- package/lib/typescript/src/deprecated-components/DeprecatedCardWrapper.d.ts +1 -1
- package/lib/typescript/src/deprecated-components/DeprecatedFAB.d.ts +1 -1
- package/lib/typescript/src/deprecated-components/FAB.d.ts +1 -1
- package/lib/typescript/src/deprecated-components/FieldSearchBarFull.d.ts +1 -1
- package/lib/typescript/src/deprecated-components/ProgressCircle.d.ts +1 -1
- package/lib/typescript/src/deprecated-components/RadioButtonFieldGroup.d.ts +1 -1
- package/lib/typescript/src/deprecated-components/RowBodyIcon.d.ts +1 -1
- package/lib/typescript/src/deprecated-components/RowHeadlineImageCaption.d.ts +1 -1
- package/lib/typescript/src/deprecated-components/RowHeadlineImageIcon.d.ts +1 -1
- package/lib/typescript/src/deprecated-components/ToggleButton.d.ts +1 -1
- package/lib/typescript/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/components/BottomSheet/BottomSheet.js +1 -2
- package/src/components/BottomSheet/BottomSheet.js.map +1 -1
- package/src/components/BottomSheet/BottomSheet.tsx +1 -2
- package/src/components/Picker/PickerInputContainer.js +2 -1
- package/src/components/Picker/PickerInputContainer.js.map +1 -1
- package/src/components/Picker/PickerInputContainer.tsx +2 -0
- package/src/components/TextField.js +10 -13
- package/src/components/TextField.js.map +1 -1
- package/src/components/TextField.tsx +20 -25
|
@@ -1 +1 @@
|
|
|
1
|
-
import _toConsumableArray from"@babel/runtime/helpers/toConsumableArray";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["theme","snapPoints","topSnapPosition","middleSnapPosition","bottomSnapPosition","initialSnapIndex","initialSnapPosition","showHandle","handleColor","topBorderRadius","borderWidth","borderColor","onSettle","style","children"];var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/BottomSheet/BottomSheet.tsx";import React from"react";import{StyleSheet,Dimensions}from"react-native";import BottomSheetComponent,{BottomSheetScrollView}from"@gorhom/bottom-sheet";import{
|
|
1
|
+
import _toConsumableArray from"@babel/runtime/helpers/toConsumableArray";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["theme","snapPoints","topSnapPosition","middleSnapPosition","bottomSnapPosition","initialSnapIndex","initialSnapPosition","showHandle","handleColor","topBorderRadius","borderWidth","borderColor","onSettle","style","children"];var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/BottomSheet/BottomSheet.tsx";import React from"react";import{StyleSheet,Dimensions}from"react-native";import BottomSheetComponent,{BottomSheetScrollView}from"@gorhom/bottom-sheet";import{useDeepCompareMemo}from"../../utilities";import{jsx as _jsx}from"react/jsx-runtime";var windowHeight=Dimensions.get("window").height;var BottomSheet=React.forwardRef(function(_ref,ref){var theme=_ref.theme,snapPointsProp=_ref.snapPoints,_ref$topSnapPosition=_ref.topSnapPosition,topSnapPosition=_ref$topSnapPosition===void 0?"10%":_ref$topSnapPosition,_ref$middleSnapPositi=_ref.middleSnapPosition,middleSnapPosition=_ref$middleSnapPositi===void 0?"50%":_ref$middleSnapPositi,_ref$bottomSnapPositi=_ref.bottomSnapPosition,bottomSnapPosition=_ref$bottomSnapPositi===void 0?"80%":_ref$bottomSnapPositi,initialSnapIndex=_ref.initialSnapIndex,_ref$initialSnapPosit=_ref.initialSnapPosition,initialSnapPosition=_ref$initialSnapPosit===void 0?"bottom":_ref$initialSnapPosit,_ref$showHandle=_ref.showHandle,showHandle=_ref$showHandle===void 0?true:_ref$showHandle,_ref$handleColor=_ref.handleColor,handleColor=_ref$handleColor===void 0?theme.colors.border.brand:_ref$handleColor,_ref$topBorderRadius=_ref.topBorderRadius,topBorderRadius=_ref$topBorderRadius===void 0?20:_ref$topBorderRadius,_ref$borderWidth=_ref.borderWidth,borderWidth=_ref$borderWidth===void 0?1:_ref$borderWidth,_ref$borderColor=_ref.borderColor,borderColor=_ref$borderColor===void 0?theme.colors.border.brand:_ref$borderColor,onSettle=_ref.onSettle,style=_ref.style,children=_ref.children,rest=_objectWithoutProperties(_ref,_excluded);var backgroundColor=(style==null?void 0:style.backgroundColor)||theme.colors.background.brand;var snapPoints=snapPointsProp!=null?snapPointsProp:[topSnapPosition,middleSnapPosition,bottomSnapPosition];var mappedSnapPoints=useDeepCompareMemo(function(){return convertSnapPointsForNewImplementation(snapPoints);},snapPoints);var getSnapIndexFromPosition=function getSnapIndexFromPosition(position){switch(position){case"bottom":return 0;case"middle":return 1;case"top":return 2;}};return _jsx(BottomSheetComponent,{ref:ref,snapPoints:mappedSnapPoints,index:initialSnapIndex!==undefined?mappedSnapPoints.length-initialSnapIndex-1:getSnapIndexFromPosition(initialSnapPosition),handleIndicatorStyle:[{backgroundColor:handleColor},!showHandle?{display:"none"}:{}],backgroundStyle:{backgroundColor:backgroundColor,borderTopLeftRadius:topBorderRadius,borderTopRightRadius:topBorderRadius,borderWidth:borderWidth,borderColor:borderColor},onChange:function onChange(index){return onSettle==null?void 0:onSettle(mappedSnapPoints.length-index-1);},children:_jsx(BottomSheetScrollView,Object.assign({contentContainerStyle:[styles.contentContainerStyle,style]},rest,{children:children}))});});function convertSnapPointsForNewImplementation(snapPoints){var reversedSnapPoints=_toConsumableArray(snapPoints).reverse();return reversedSnapPoints.map(function(point){if(typeof point==="string"){var percentNumber=extractPercentNumber(point);if(percentNumber!==undefined){return`${100-percentNumber}%`;}return point;}else if(typeof point==="number"){return windowHeight-point;}else{return point;}});}function extractPercentNumber(percentString){var percentRegex=/(\d+)?%/;var matches=percentString.match(percentRegex);if(matches!=null&&matches.length){var percentNumber=Number(matches[1]);if(!isNaN(percentNumber)){return percentNumber;}}return undefined;}var styles=StyleSheet.create({contentContainerStyle:{paddingHorizontal:16,paddingVertical:10}});export default BottomSheet;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["options","onPress","Icon","style","selectedValue","disabled","zIndex","children","testID"];var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/Picker/PickerInputContainer.tsx";import React from"react";import{View,StyleSheet}from"react-native";import omit from"lodash.omit";import{extractPositionStyles,extractFlexItemStyles,extractBorderAndMarginStyles}from"../../utilities";import TextField from"../TextField";import Touchable from"../Touchable";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var PickerInputContainer=function PickerInputContainer(_ref){var _selectedLabel;var _ref$options=_ref.options,options=_ref$options===void 0?[]:_ref$options,onPress=_ref.onPress,Icon=_ref.Icon,style=_ref.style,selectedValue=_ref.selectedValue,_ref$disabled=_ref.disabled,disabled=_ref$disabled===void 0?false:_ref$disabled,zIndex=_ref.zIndex,children=_ref.children,testID=_ref.testID,rest=_objectWithoutProperties(_ref,_excluded);var containerStyle=StyleSheet.flatten([extractPositionStyles(style),extractFlexItemStyles(style),extractBorderAndMarginStyles(style).marginStyles]);var textFieldStyle=omit(StyleSheet.flatten(style),Object.keys(containerStyle));var selectedLabel="";if(Array.isArray(selectedValue)){selectedLabel=selectedValue.map(function(value){var _options$find;return((_options$find=options.find(function(option){return option.value.toString()===value.toString();}))==null?void 0:_options$find.label.toString())||value;}).join(", ");}else{var _options$find2;selectedLabel=((_options$find2=options.find(function(option){return option.value.toString()===(selectedValue==null?void 0:selectedValue.toString());}))==null?void 0:_options$find2.label.toString())||selectedValue;}return _jsxs(View,{testID:testID,style:[containerStyle,{zIndex:zIndex}],children:[_jsx(TextField,Object.assign({Icon:Icon,numberOfLines:1,onChangeText:function onChangeText(){},value:(_selectedLabel=selectedLabel)==null?void 0:_selectedLabel.toString(),editable:false,disabled:disabled,style:textFieldStyle},rest)),_jsx(Touchable,{style:StyleSheet.absoluteFillObject,disabled:disabled,onPress:onPress,onLongPress:onPress}),children]});};export default PickerInputContainer;
|
|
1
|
+
import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["options","onPress","Icon","style","selectedValue","disabled","zIndex","children","testID"];var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/Picker/PickerInputContainer.tsx";import React from"react";import{View,StyleSheet}from"react-native";import omit from"lodash.omit";import{extractSizeStyles,extractPositionStyles,extractFlexItemStyles,extractBorderAndMarginStyles}from"../../utilities";import TextField from"../TextField";import Touchable from"../Touchable";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var PickerInputContainer=function PickerInputContainer(_ref){var _selectedLabel;var _ref$options=_ref.options,options=_ref$options===void 0?[]:_ref$options,onPress=_ref.onPress,Icon=_ref.Icon,style=_ref.style,selectedValue=_ref.selectedValue,_ref$disabled=_ref.disabled,disabled=_ref$disabled===void 0?false:_ref$disabled,zIndex=_ref.zIndex,children=_ref.children,testID=_ref.testID,rest=_objectWithoutProperties(_ref,_excluded);var containerStyle=StyleSheet.flatten([extractSizeStyles(style),extractPositionStyles(style),extractFlexItemStyles(style),extractBorderAndMarginStyles(style).marginStyles]);var textFieldStyle=omit(StyleSheet.flatten(style),Object.keys(containerStyle));var selectedLabel="";if(Array.isArray(selectedValue)){selectedLabel=selectedValue.map(function(value){var _options$find;return((_options$find=options.find(function(option){return option.value.toString()===value.toString();}))==null?void 0:_options$find.label.toString())||value;}).join(", ");}else{var _options$find2;selectedLabel=((_options$find2=options.find(function(option){return option.value.toString()===(selectedValue==null?void 0:selectedValue.toString());}))==null?void 0:_options$find2.label.toString())||selectedValue;}return _jsxs(View,{testID:testID,style:[containerStyle,{zIndex:zIndex}],children:[_jsx(TextField,Object.assign({Icon:Icon,numberOfLines:1,onChangeText:function onChangeText(){},value:(_selectedLabel=selectedLabel)==null?void 0:_selectedLabel.toString(),editable:false,disabled:disabled,style:textFieldStyle},rest)),_jsx(Touchable,{style:StyleSheet.absoluteFillObject,disabled:disabled,onPress:onPress,onLongPress:onPress}),children]});};export default PickerInputContainer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";import _classCallCheck from"@babel/runtime/helpers/classCallCheck";import _createClass from"@babel/runtime/helpers/createClass";import _inherits from"@babel/runtime/helpers/inherits";import _possibleConstructorReturn from"@babel/runtime/helpers/possibleConstructorReturn";import _getPrototypeOf from"@babel/runtime/helpers/getPrototypeOf";var _jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/TextField.tsx";var _excluded=["theme","Icon","type","disabled","editable","label","error","leftIconName","leftIconMode","rightIconName","iconColor","iconSize","assistiveText","underlineColor","activeBorderColor","multiline","numberOfLines","style","render"],_excluded2=["lineHeight"],_excluded3=["backgroundColor","padding","paddingTop","paddingBottom","paddingLeft","paddingRight","borderRadius","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderColor"];function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}import*as React from"react";import{View,Animated,StyleSheet,Text,I18nManager,Platform}from"react-native";import{withTheme}from"@draftbit/theme";import{applyStyles,extractStyles}from"../utilities";import TextInput from"./TextInput";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var AnimatedText=Animated.createAnimatedComponent(Text);var FOCUS_ANIMATION_DURATION=150;var BLUR_ANIMATION_DURATION=180;var ICON_SIZE=24;var TextField=function(_React$Component){_inherits(TextField,_React$Component);var _super=_createSuper(TextField);function TextField(){var _this;_classCallCheck(this,TextField);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}_this=_super.call.apply(_super,[this].concat(args));_this.state={labeled:new Animated.Value(_this.props.value||_this.props.error?0:1),focused:false,placeholder:_this.props.error?_this.props.placeholder:"",labelLayout:{measured:false,width:0}};_this._timer=setTimeout(function(){},0);_this._showPlaceholder=function(){clearTimeout(_this._timer);_this._timer=setTimeout(function(){return _this.setState({placeholder:_this.props.placeholder});},50);};_this._hidePlaceholder=function(){return _this.setState({placeholder:""});};_this._restoreLabel=function(){return Animated.timing(_this.state.labeled,{toValue:1,duration:FOCUS_ANIMATION_DURATION,useNativeDriver:Platform.OS!=="web"}).start();};_this._minmizeLabel=function(){return Animated.timing(_this.state.labeled,{toValue:0,duration:BLUR_ANIMATION_DURATION,useNativeDriver:Platform.OS!=="web"}).start();};_this._handleFocus=function(){if(_this.props.disabled){return;}_this.setState({focused:true});};_this._handleBlur=function(){if(_this.props.disabled){return;}_this.setState({focused:false});};_this._handleChangeText=function(value){if(_this.props.disabled){return;}if(typeof value==="string"){_this.setState({value:value});_this.props.onChangeText&&_this.props.onChangeText(value);}else{_this.setState({value:value.nativeEvent.text});_this.props.onChangeText&&_this.props.onChangeText(value.nativeEvent.text);}};_this._root=undefined;return _this;}_createClass(TextField,[{key:"componentDidMount",value:function componentDidMount(){if(this.props.defaultValue){this._handleChangeText(this.props.defaultValue);}if(this.props.placeholder){this._minmizeLabel();}}},{key:"componentDidUpdate",value:function componentDidUpdate(prevProps,prevState){if(prevState.focused!==this.state.focused||prevState.value!==this.state.value){if(this.state.value||this.state.focused||this.props.error||this.props.placeholder){this._minmizeLabel();}else{this._restoreLabel();}}if(prevState.focused!==this.state.focused||prevProps.label!==this.props.label){if(this.state.focused||this.props.error||!this.props.label){this._showPlaceholder();}else{this._hidePlaceholder();}}}},{key:"componentWillUnmount",value:function componentWillUnmount(){clearTimeout(this._timer);}},{key:"toggleFocus",value:function toggleFocus(){this.setState(function(prevState){return{focused:!prevState.focused};});}},{key:"isFocused",value:function isFocused(){return this._root&&this._root.isFocused();}},{key:"clear",value:function clear(){return this._root&&this._root.clear();}},{key:"focus",value:function focus(){return this._root&&this._root.focus();}},{key:"blur",value:function blur(){return this._root&&this._root.blur();}},{key:"render",value:function render(){var _this2=this;var _this$props=this.props,theme=_this$props.theme,Icon=_this$props.Icon,_this$props$type=_this$props.type,type=_this$props$type===void 0?"underline":_this$props$type,_this$props$disabled=_this$props.disabled,disabled=_this$props$disabled===void 0?false:_this$props$disabled,_this$props$editable=_this$props.editable,editable=_this$props$editable===void 0?true:_this$props$editable,label=_this$props.label,_this$props$error=_this$props.error,error=_this$props$error===void 0?false:_this$props$error,leftIconName=_this$props.leftIconName,leftIconMode=_this$props.leftIconMode,rightIconName=_this$props.rightIconName,iconColor=_this$props.iconColor,iconSize=_this$props.iconSize,assistiveText=_this$props.assistiveText,underlineColorProp=_this$props.underlineColor,_this$props$activeBor=_this$props.activeBorderColor,activeBorderColorProp=_this$props$activeBor===void 0?theme.colors.branding.primary:_this$props$activeBor,_this$props$multiline=_this$props.multiline,multiline=_this$props$multiline===void 0?false:_this$props$multiline,_this$props$numberOfL=_this$props.numberOfLines,numberOfLines=_this$props$numberOfL===void 0?4:_this$props$numberOfL,style=_this$props.style,_this$props$render=_this$props.render,render=_this$props$render===void 0?function(props){return _jsx(TextInput,Object.assign({},props));}:_this$props$render,rest=_objectWithoutProperties(_this$props,_excluded);var colors=theme.colors,typography=theme.typography;var MINIMIZED_LABEL_Y_OFFSET=-(typography.caption.lineHeight+4);var OUTLINE_MINIMIZED_LABEL_Y_OFFSET=-(16*0.5+4);var MAXIMIZED_LABEL_FONT_SIZE=typography.subtitle1.fontSize;var MINIMIZED_LABEL_FONT_SIZE=typography.caption.fontSize;var hasActiveOutline=this.state.focused||error;var inputTextColor,activeColor,underlineColor,borderColor,placeholderColor,containerStyle,backgroundColor,inputStyle;inputTextColor=colors.text.strong;if(disabled){activeColor=colors.text.light;placeholderColor=colors.text.light;borderColor="transparent";underlineColor="transparent";backgroundColor=colors.border.brand;}else{activeColor=error?colors.text.danger:activeBorderColorProp;placeholderColor=borderColor=colors.text.light;underlineColor=underlineColorProp||colors.text.light;backgroundColor=colors.background;}if(rest.placeholderTextColor){placeholderColor=rest.placeholderTextColor;}var _typography$subtitle=typography.subtitle1,lineHeight=_typography$subtitle.lineHeight,subtitle1=_objectWithoutProperties(_typography$subtitle,_excluded2);inputStyle=Object.assign({paddingVertical:0,color:inputTextColor,paddingLeft:leftIconName&&leftIconMode==="inset"?ICON_SIZE+12:0,paddingRight:rightIconName?ICON_SIZE+16+4:12},subtitle1);if(!multiline){inputStyle.height=lineHeight;}var assistiveTextLeftMargin;if(type==="underline"){containerStyle={borderTopLeftRadius:8,borderTopRightRadius:8,paddingBottom:12,marginTop:16};if(leftIconName&&leftIconMode==="outset"){assistiveTextLeftMargin=ICON_SIZE+8;}else{assistiveTextLeftMargin=0;}}else{containerStyle={borderRadius:8,borderColor:hasActiveOutline?activeColor:borderColor,borderWidth:1,paddingTop:label?16*1.5:16,paddingBottom:label?16*0.5:16,opacity:disabled?0.5:1,backgroundColor:backgroundColor};if(leftIconName&&leftIconMode==="inset"){assistiveTextLeftMargin=16+4;}else if(leftIconName&&leftIconMode==="outset"){assistiveTextLeftMargin=ICON_SIZE+8+12;}else{assistiveTextLeftMargin=12;}}if(leftIconName&&leftIconMode==="outset"){containerStyle.marginLeft=ICON_SIZE+8;}var leftIconColor;if(iconColor){leftIconColor=iconColor;}else if(error){leftIconColor=colors.text.danger;}else if(this.state.focused){leftIconColor=colors.branding.primary;}else{leftIconColor=colors.text.light;}var labelStyle=Object.assign({},typography.subtitle1,type==="solid"?{marginHorizontal:12}:{},{top:type==="solid"?16:0,left:leftIconName&&leftIconMode==="inset"?ICON_SIZE+12:0,transform:[{translateY:this.state.labeled.interpolate({inputRange:[0,1],outputRange:[type==="solid"?OUTLINE_MINIMIZED_LABEL_Y_OFFSET:MINIMIZED_LABEL_Y_OFFSET,0]})},{scale:this.state.labeled.interpolate({inputRange:[0,1],outputRange:[MINIMIZED_LABEL_FONT_SIZE/MAXIMIZED_LABEL_FONT_SIZE,1]})},{translateX:this.state.labeled.interpolate({inputRange:[0,1],outputRange:[-(1-MINIMIZED_LABEL_FONT_SIZE/MAXIMIZED_LABEL_FONT_SIZE)*(this.state.labelLayout.width/2),0]})}]});var _extractStyles=extractStyles(style),textStyles=_extractStyles.textStyles;var inputStyles=applyStyles([styles.input,inputStyle,type==="solid"?{marginHorizontal:16}:{marginHorizontal:6}],textStyles);var _ref=StyleSheet.flatten(style||{}),bgColor=_ref.backgroundColor,padding=_ref.padding,paddingTop=_ref.paddingTop,paddingBottom=_ref.paddingBottom,paddingLeft=_ref.paddingLeft,paddingRight=_ref.paddingRight,borderRadius=_ref.borderRadius,borderWidth=_ref.borderWidth,borderTopWidth=_ref.borderTopWidth,borderRightWidth=_ref.borderRightWidth,borderBottomWidth=_ref.borderBottomWidth,borderLeftWidth=_ref.borderLeftWidth,borderCol=_ref.borderColor,styleProp=_objectWithoutProperties(_ref,_excluded3);return _jsxs(View,{style:[styles.container,styleProp],children:[_jsxs(View,{style:applyStyles([containerStyle],{height:styleProp.height,backgroundColor:bgColor,padding:padding,paddingTop:paddingTop,paddingBottom:paddingBottom,paddingLeft:paddingLeft,paddingRight:paddingRight,borderRadius:borderRadius,borderWidth:borderWidth,borderTopWidth:borderTopWidth,borderRightWidth:borderRightWidth,borderBottomWidth:borderBottomWidth,borderLeftWidth:borderLeftWidth,borderColor:borderCol}),children:[type==="underline"?_jsx(Animated.View,{style:[styles.underline,{backgroundColor:bgColor||(error?colors.background.danger:this.state.focused?activeColor:underlineColor),transform:[{scaleY:this.state.focused?1:0.5}]}]}):null,label?_jsxs(View,{pointerEvents:"none",style:[StyleSheet.absoluteFill,{opacity:this.state.value||this.state.focused?this.state.labelLayout.measured?1:0:1}],children:[_jsx(AnimatedText,{onLayout:function onLayout(e){return _this2.setState({labelLayout:{width:e.nativeEvent.layout.width,measured:true}});},style:[styles.placeholder,labelStyle,{color:placeholderColor,opacity:this.state.labeled.interpolate({inputRange:[0,1],outputRange:[hasActiveOutline?1:0,0]})}],numberOfLines:1,children:label}),_jsx(AnimatedText,{style:[styles.placeholder,labelStyle,{color:placeholderColor,opacity:hasActiveOutline?this.state.labeled:1}],numberOfLines:1,children:label})]}):null,render(Object.assign({ref:function ref(c){_this2._root=c;},onChange:this._handleChangeText,placeholder:label?this.state.placeholder:this.props.placeholder,placeholderTextColor:placeholderColor,editable:!disabled&&editable,selectionColor:activeColor,multiline:multiline,numberOfLines:numberOfLines,onFocus:this._handleFocus,onBlur:this._handleBlur,underlineColorAndroid:"transparent",style:inputStyles},rest,{value:this.state.value}))]}),leftIconName?_jsx(View,{style:[styles.iconWrapper,{left:leftIconMode==="inset"&&type==="solid"?16:0}],children:_jsx(Icon,{size:iconSize||ICON_SIZE,color:leftIconColor||colors.text.light,name:leftIconName})}):null,rightIconName?_jsx(View,{style:[styles.iconWrapper,{right:16}],children:_jsx(Icon,{name:rightIconName,size:iconSize||ICON_SIZE,color:iconColor||colors.text.light})}):null,assistiveText?_jsx(Text,{style:[{color:error?colors.text.danger:colors.text.light,marginTop:8,marginLeft:assistiveTextLeftMargin}],children:assistiveText}):null]});}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(nextProps,prevState){return{value:typeof nextProps.value!=="undefined"?nextProps.value:prevState.value};}}]);return TextField;}(React.Component);export default withTheme(TextField);var styles=StyleSheet.create({container:{alignSelf:"stretch"},placeholder:{position:"absolute",left:0},underline:{position:"absolute",left:0,right:0,bottom:0,height:2},input:{flexGrow:1,justifyContent:"center",textAlignVertical:"center",margin:0,textAlign:I18nManager.isRTL?"right":"left"},iconWrapper:{height:"100%",justifyContent:"center",alignItems:"center",position:"absolute"}});
|
|
1
|
+
import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";import _classCallCheck from"@babel/runtime/helpers/classCallCheck";import _createClass from"@babel/runtime/helpers/createClass";import _inherits from"@babel/runtime/helpers/inherits";import _possibleConstructorReturn from"@babel/runtime/helpers/possibleConstructorReturn";import _getPrototypeOf from"@babel/runtime/helpers/getPrototypeOf";var _jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/TextField.tsx";var _excluded=["theme","Icon","type","disabled","editable","label","error","leftIconName","leftIconMode","rightIconName","iconColor","iconSize","assistiveText","underlineColor","activeBorderColor","multiline","numberOfLines","style","render"],_excluded2=["lineHeight"],_excluded3=["backgroundColor","padding","paddingTop","paddingBottom","paddingLeft","paddingRight","borderRadius","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderColor"];function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}import*as React from"react";import{View,Animated,StyleSheet,Text,I18nManager,Platform}from"react-native";import{withTheme}from"@draftbit/theme";import{applyStyles,extractStyles}from"../utilities";import TextInput from"./TextInput";import{jsx as _jsx}from"react/jsx-runtime";import{jsxs as _jsxs}from"react/jsx-runtime";var AnimatedText=Animated.createAnimatedComponent(Text);var FOCUS_ANIMATION_DURATION=150;var BLUR_ANIMATION_DURATION=180;var ICON_SIZE=24;var TextField=function(_React$Component){_inherits(TextField,_React$Component);var _super=_createSuper(TextField);function TextField(){var _this;_classCallCheck(this,TextField);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}_this=_super.call.apply(_super,[this].concat(args));_this.state={labeled:new Animated.Value(_this.props.value||_this.props.error?0:1),focused:false,placeholder:_this.props.error?_this.props.placeholder:"",labelLayout:{measured:false,width:0}};_this._timer=setTimeout(function(){},0);_this._showPlaceholder=function(){clearTimeout(_this._timer);_this._timer=setTimeout(function(){return _this.setState({placeholder:_this.props.placeholder});},50);};_this._hidePlaceholder=function(){return _this.setState({placeholder:""});};_this._restoreLabel=function(){return Animated.timing(_this.state.labeled,{toValue:1,duration:FOCUS_ANIMATION_DURATION,useNativeDriver:Platform.OS!=="web"}).start();};_this._minmizeLabel=function(){return Animated.timing(_this.state.labeled,{toValue:0,duration:BLUR_ANIMATION_DURATION,useNativeDriver:Platform.OS!=="web"}).start();};_this._handleFocus=function(){if(_this.props.disabled){return;}_this.setState({focused:true});};_this._handleBlur=function(){if(_this.props.disabled){return;}_this.setState({focused:false});};_this._handleChangeText=function(value){if(_this.props.disabled){return;}if(typeof value==="string"){_this.setState({value:value});_this.props.onChangeText&&_this.props.onChangeText(value);}else{_this.setState({value:value.nativeEvent.text});_this.props.onChangeText&&_this.props.onChangeText(value.nativeEvent.text);}};_this._root=undefined;return _this;}_createClass(TextField,[{key:"componentDidMount",value:function componentDidMount(){if(this.props.defaultValue){this._handleChangeText(this.props.defaultValue);}if(this.props.placeholder){this._minmizeLabel();}}},{key:"componentDidUpdate",value:function componentDidUpdate(prevProps,prevState){if(prevState.focused!==this.state.focused||prevState.value!==this.state.value){if(this.state.value||this.state.focused||this.props.error||this.props.placeholder){this._minmizeLabel();}else{this._restoreLabel();}}if(prevState.focused!==this.state.focused||prevProps.label!==this.props.label){if(this.state.focused||this.props.error||!this.props.label){this._showPlaceholder();}else{this._hidePlaceholder();}}}},{key:"componentWillUnmount",value:function componentWillUnmount(){clearTimeout(this._timer);}},{key:"toggleFocus",value:function toggleFocus(){this.setState(function(prevState){return{focused:!prevState.focused};});}},{key:"isFocused",value:function isFocused(){return this._root&&this._root.isFocused();}},{key:"clear",value:function clear(){return this._root&&this._root.clear();}},{key:"focus",value:function focus(){return this._root&&this._root.focus();}},{key:"blur",value:function blur(){return this._root&&this._root.blur();}},{key:"render",value:function render(){var _this2=this;var _this$props=this.props,theme=_this$props.theme,Icon=_this$props.Icon,_this$props$type=_this$props.type,type=_this$props$type===void 0?"underline":_this$props$type,_this$props$disabled=_this$props.disabled,disabled=_this$props$disabled===void 0?false:_this$props$disabled,_this$props$editable=_this$props.editable,editable=_this$props$editable===void 0?true:_this$props$editable,label=_this$props.label,_this$props$error=_this$props.error,error=_this$props$error===void 0?false:_this$props$error,leftIconName=_this$props.leftIconName,leftIconMode=_this$props.leftIconMode,rightIconName=_this$props.rightIconName,iconColor=_this$props.iconColor,iconSize=_this$props.iconSize,assistiveText=_this$props.assistiveText,underlineColorProp=_this$props.underlineColor,_this$props$activeBor=_this$props.activeBorderColor,activeBorderColorProp=_this$props$activeBor===void 0?theme.colors.branding.primary:_this$props$activeBor,_this$props$multiline=_this$props.multiline,multiline=_this$props$multiline===void 0?false:_this$props$multiline,_this$props$numberOfL=_this$props.numberOfLines,numberOfLines=_this$props$numberOfL===void 0?4:_this$props$numberOfL,style=_this$props.style,_this$props$render=_this$props.render,render=_this$props$render===void 0?function(props){return _jsx(TextInput,Object.assign({},props));}:_this$props$render,rest=_objectWithoutProperties(_this$props,_excluded);var colors=theme.colors,typography=theme.typography;var MINIMIZED_LABEL_Y_OFFSET=-(typography.caption.lineHeight+4);var OUTLINE_MINIMIZED_LABEL_Y_OFFSET=-(16*0.5+4);var MAXIMIZED_LABEL_FONT_SIZE=typography.subtitle1.fontSize;var MINIMIZED_LABEL_FONT_SIZE=typography.caption.fontSize;var hasActiveOutline=this.state.focused||error;var inputTextColor,activeColor,underlineColor,borderColor,placeholderColor,containerStyle,backgroundColor,inputStyle;inputTextColor=colors.text.strong;if(disabled){activeColor=colors.text.light;placeholderColor=colors.text.light;borderColor="transparent";underlineColor="transparent";backgroundColor=colors.border.brand;}else{activeColor=error?colors.text.danger:activeBorderColorProp;placeholderColor=borderColor=colors.text.light;underlineColor=underlineColorProp||colors.text.light;backgroundColor=colors.background;}if(rest.placeholderTextColor){placeholderColor=rest.placeholderTextColor;}var _typography$subtitle=typography.subtitle1,lineHeight=_typography$subtitle.lineHeight,subtitle1=_objectWithoutProperties(_typography$subtitle,_excluded2);inputStyle=Object.assign({paddingVertical:0,color:inputTextColor,paddingLeft:leftIconName&&leftIconMode==="inset"?ICON_SIZE+12:0,paddingRight:rightIconName?ICON_SIZE+16+4:12},subtitle1);if(!multiline){inputStyle.height=lineHeight;}var assistiveTextLeftMargin;if(type==="underline"){containerStyle={borderTopLeftRadius:8,borderTopRightRadius:8,paddingBottom:12,marginTop:16};if(leftIconName&&leftIconMode==="outset"){assistiveTextLeftMargin=ICON_SIZE+8;}else{assistiveTextLeftMargin=0;}}else{containerStyle={borderRadius:8,borderColor:hasActiveOutline?activeColor:borderColor,borderWidth:1,paddingTop:label?16*1.5:16,paddingBottom:label?16*0.5:16,opacity:disabled?0.5:1,backgroundColor:backgroundColor};if(leftIconName&&leftIconMode==="inset"){assistiveTextLeftMargin=16+4;}else if(leftIconName&&leftIconMode==="outset"){assistiveTextLeftMargin=ICON_SIZE+8+12;}else{assistiveTextLeftMargin=12;}}if(leftIconName&&leftIconMode==="outset"){containerStyle.marginLeft=ICON_SIZE+8;}var leftIconColor;if(iconColor){leftIconColor=iconColor;}else if(error){leftIconColor=colors.text.danger;}else if(this.state.focused){leftIconColor=colors.branding.primary;}else{leftIconColor=colors.text.light;}var labelStyle=Object.assign({},typography.subtitle1,type==="solid"?{marginHorizontal:12}:{},{top:type==="solid"?16:0,left:leftIconName&&leftIconMode==="inset"?ICON_SIZE+12:0,transform:[{translateY:this.state.labeled.interpolate({inputRange:[0,1],outputRange:[type==="solid"?OUTLINE_MINIMIZED_LABEL_Y_OFFSET:MINIMIZED_LABEL_Y_OFFSET,0]})},{scale:this.state.labeled.interpolate({inputRange:[0,1],outputRange:[MINIMIZED_LABEL_FONT_SIZE/MAXIMIZED_LABEL_FONT_SIZE,1]})},{translateX:this.state.labeled.interpolate({inputRange:[0,1],outputRange:[-(1-MINIMIZED_LABEL_FONT_SIZE/MAXIMIZED_LABEL_FONT_SIZE)*(this.state.labelLayout.width/2),0]})}]});var _extractStyles=extractStyles(style),textStyles=_extractStyles.textStyles;var inputStyles=applyStyles([styles.input,inputStyle,type==="solid"?{marginHorizontal:16}:{marginHorizontal:6}],textStyles);var _ref=StyleSheet.flatten(style||{}),bgColor=_ref.backgroundColor,padding=_ref.padding,paddingTop=_ref.paddingTop,paddingBottom=_ref.paddingBottom,paddingLeft=_ref.paddingLeft,paddingRight=_ref.paddingRight,borderRadius=_ref.borderRadius,borderWidth=_ref.borderWidth,borderTopWidth=_ref.borderTopWidth,borderRightWidth=_ref.borderRightWidth,borderBottomWidth=_ref.borderBottomWidth,borderLeftWidth=_ref.borderLeftWidth,borderCol=_ref.borderColor,styleProp=_objectWithoutProperties(_ref,_excluded3);return _jsxs(View,{style:[styles.container,styleProp],children:[_jsxs(View,{style:applyStyles([containerStyle],{height:styleProp.height,backgroundColor:bgColor,padding:padding,paddingTop:paddingTop,paddingBottom:paddingBottom,paddingLeft:paddingLeft,paddingRight:paddingRight,borderRadius:borderRadius,borderWidth:borderWidth,borderTopWidth:borderTopWidth,borderRightWidth:borderRightWidth,borderBottomWidth:borderBottomWidth,borderLeftWidth:borderLeftWidth,borderColor:borderCol}),children:[type==="underline"?_jsx(Animated.View,{style:[styles.underline,{backgroundColor:bgColor||(error?colors.background.danger:this.state.focused?activeColor:underlineColor),transform:[{scaleY:this.state.focused?1:0.5}]}]}):null,label?_jsxs(View,{pointerEvents:"none",style:[StyleSheet.absoluteFill,{opacity:this.state.value||this.state.focused?this.state.labelLayout.measured?1:0:1}],children:[_jsx(AnimatedText,{onLayout:function onLayout(e){return _this2.setState({labelLayout:{width:e.nativeEvent.layout.width,measured:true}});},style:[styles.placeholder,labelStyle,{color:placeholderColor,opacity:this.state.labeled.interpolate({inputRange:[0,1],outputRange:[hasActiveOutline?1:0,0]})}],numberOfLines:1,children:label}),_jsx(AnimatedText,{style:[styles.placeholder,labelStyle,{color:placeholderColor,opacity:hasActiveOutline?this.state.labeled:1}],numberOfLines:1,children:label})]}):null,render(Object.assign({ref:function ref(c){_this2._root=c;},onChange:this._handleChangeText,placeholder:label?this.state.placeholder:this.props.placeholder,placeholderTextColor:placeholderColor,editable:!disabled&&editable,selectionColor:activeColor,multiline:multiline,numberOfLines:numberOfLines,onFocus:this._handleFocus,onBlur:this._handleBlur,underlineColorAndroid:"transparent",style:inputStyles},rest,{value:this.state.value}))]}),leftIconName?_jsx(Icon,{size:iconSize||ICON_SIZE,color:leftIconColor||colors.text.light,name:leftIconName,style:{position:"absolute",left:leftIconMode==="inset"&&type==="solid"?16:0,marginTop:type==="solid"?MINIMIZED_LABEL_FONT_SIZE+4:16}}):null,rightIconName?_jsx(Icon,{name:rightIconName,size:iconSize||ICON_SIZE,color:iconColor||colors.text.light,style:{position:"absolute",right:16,marginTop:type==="solid"?MINIMIZED_LABEL_FONT_SIZE+4:16}}):null,assistiveText?_jsx(Text,{style:[{color:error?colors.text.danger:colors.text.light,marginTop:8,marginLeft:assistiveTextLeftMargin}],children:assistiveText}):null]});}}],[{key:"getDerivedStateFromProps",value:function getDerivedStateFromProps(nextProps,prevState){return{value:typeof nextProps.value!=="undefined"?nextProps.value:prevState.value};}}]);return TextField;}(React.Component);export default withTheme(TextField);var styles=StyleSheet.create({container:{alignSelf:"stretch"},placeholder:{position:"absolute",left:0},underline:{position:"absolute",left:0,right:0,bottom:0,height:2},input:{flexGrow:1,justifyContent:"center",textAlignVertical:"center",margin:0,textAlign:I18nManager.isRTL?"right":"left"}});
|
|
@@ -15,5 +15,5 @@ declare type AccordionGroupProps = {
|
|
|
15
15
|
children?: React.ReactNode;
|
|
16
16
|
theme: ReadTheme;
|
|
17
17
|
} & IconSlot;
|
|
18
|
-
declare const _default: React.
|
|
18
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<AccordionGroupProps, "theme"> & React.RefAttributes<any>>;
|
|
19
19
|
export default _default;
|
|
@@ -23,5 +23,5 @@ declare type Props = {
|
|
|
23
23
|
type?: ActivityIndicatorType;
|
|
24
24
|
size?: number | "small" | "large";
|
|
25
25
|
};
|
|
26
|
-
declare const _default: React.
|
|
26
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<Props>, "theme"> & React.RefAttributes<any>>;
|
|
27
27
|
export default _default;
|
|
@@ -24,5 +24,5 @@ export interface BottomSheetProps extends ScrollViewProps {
|
|
|
24
24
|
style?: StyleProp<ViewStyle>;
|
|
25
25
|
theme: ReadTheme;
|
|
26
26
|
}
|
|
27
|
-
declare const
|
|
28
|
-
export default
|
|
27
|
+
declare const BottomSheet: React.ForwardRefExoticComponent<BottomSheetProps & React.RefAttributes<import("@gorhom/bottom-sheet/lib/typescript/types").BottomSheetMethods>>;
|
|
28
|
+
export default BottomSheet;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { StyleSheet, Dimensions, } from "react-native";
|
|
3
3
|
import BottomSheetComponent, { BottomSheetScrollView, } from "@gorhom/bottom-sheet";
|
|
4
|
-
import { withTheme } from "@draftbit/theme";
|
|
5
4
|
import { useDeepCompareMemo } from "../../utilities";
|
|
6
5
|
const windowHeight = Dimensions.get("window").height;
|
|
7
6
|
// Clarification:
|
|
@@ -77,5 +76,5 @@ const styles = StyleSheet.create({
|
|
|
77
76
|
paddingVertical: 10,
|
|
78
77
|
},
|
|
79
78
|
});
|
|
80
|
-
export default
|
|
79
|
+
export default BottomSheet;
|
|
81
80
|
//# sourceMappingURL=BottomSheet.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheet.js","sourceRoot":"","sources":["../../../../../src/components/BottomSheet/BottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,UAAU,EAIV,UAAU,GACX,MAAM,cAAc,CAAC;AAEtB,OAAO,oBAAoB,EAAE,EAC3B,qBAAqB,GACtB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"BottomSheet.js","sourceRoot":"","sources":["../../../../../src/components/BottomSheet/BottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,UAAU,EAIV,UAAU,GACX,MAAM,cAAc,CAAC;AAEtB,OAAO,oBAAoB,EAAE,EAC3B,qBAAqB,GACtB,MAAM,sBAAsB,CAAC;AAE9B,OAA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aAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YACpC,OAAO,YAAY,GAAG,KAAK,CAAC;SAC7B;aAAM;YACL,OAAO,KAAK,CAAC;SACd;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,oBAAoB,CAAC,aAAqB;IACjD,MAAM,YAAY,GAAG,SAAS,CAAC;IAC/B,MAAM,OAAO,GAAG,aAAa,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAClD,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,EAAE;QACnB,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;QACzC,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE;YACzB,OAAO,aAAa,CAAC;SACtB;KACF;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,qBAAqB,EAAE;QACrB,iBAAiB,EAAE,EAAE;QACrB,eAAe,EAAE,EAAE;KACpB;CACF,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -15,5 +15,5 @@ export interface CheckboxRowProps extends CheckboxProps {
|
|
|
15
15
|
direction?: Direction;
|
|
16
16
|
theme: ReadTheme;
|
|
17
17
|
}
|
|
18
|
-
declare const _default: React.
|
|
18
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<CheckboxRowProps & IconSlot, "theme"> & React.RefAttributes<any>>;
|
|
19
19
|
export default _default;
|
|
@@ -28,5 +28,5 @@ declare type Props = {
|
|
|
28
28
|
maximumDate?: Date | string;
|
|
29
29
|
hideLabel?: boolean;
|
|
30
30
|
} & IconSlot & TextInputProps;
|
|
31
|
-
declare const _default: React.
|
|
31
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<Props>, "theme"> & React.RefAttributes<any>>;
|
|
32
32
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { DatePickerComponentProps as Props } from "./DatePickerComponentType";
|
|
3
3
|
import type { ReadTheme } from "@draftbit/theme";
|
|
4
|
-
declare const _default: React.
|
|
4
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Props & {
|
|
5
5
|
theme: ReadTheme;
|
|
6
|
-
}, "theme">>;
|
|
6
|
+
}, "theme"> & React.RefAttributes<any>>;
|
|
7
7
|
export default _default;
|
|
@@ -5,5 +5,5 @@ export interface DeckSwiperCardProps {
|
|
|
5
5
|
style?: StyleProp<ViewStyle>;
|
|
6
6
|
theme: ReadTheme;
|
|
7
7
|
}
|
|
8
|
-
declare const _default: React.
|
|
8
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<DeckSwiperCardProps>, "theme"> & React.RefAttributes<any>>;
|
|
9
9
|
export default _default;
|
|
@@ -6,5 +6,5 @@ declare type Props = {
|
|
|
6
6
|
color?: string;
|
|
7
7
|
theme: ReadTheme;
|
|
8
8
|
};
|
|
9
|
-
declare const _default: React.
|
|
9
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<Props>, "theme"> & React.RefAttributes<any>>;
|
|
10
10
|
export default _default;
|
|
@@ -5,5 +5,5 @@ declare type Props = {
|
|
|
5
5
|
style?: StyleProp<ViewStyle>;
|
|
6
6
|
theme: ReadTheme;
|
|
7
7
|
} & ViewProps;
|
|
8
|
-
declare const _default: React.
|
|
8
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<Props>, "theme"> & React.RefAttributes<any>>;
|
|
9
9
|
export default _default;
|
|
@@ -14,5 +14,5 @@ declare type Props = {
|
|
|
14
14
|
activeOpacity?: number;
|
|
15
15
|
disabledOpacity?: number;
|
|
16
16
|
} & PressableProps & IconSlot;
|
|
17
|
-
declare const _default: React.
|
|
17
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<Props>, "theme"> & React.RefAttributes<any>>;
|
|
18
18
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { CommonPickerProps, SinglePickerProps } from "./PickerCommon";
|
|
3
|
-
declare const _default: React.
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<CommonPickerProps & SinglePickerProps, "theme"> & React.RefAttributes<any>>;
|
|
4
4
|
export default _default;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { View, StyleSheet } from "react-native";
|
|
3
3
|
import omit from "lodash.omit";
|
|
4
|
-
import { extractPositionStyles, extractFlexItemStyles, extractBorderAndMarginStyles, } from "../../utilities";
|
|
4
|
+
import { extractSizeStyles, extractPositionStyles, extractFlexItemStyles, extractBorderAndMarginStyles, } from "../../utilities";
|
|
5
5
|
import TextField from "../TextField";
|
|
6
6
|
import Touchable from "../Touchable";
|
|
7
7
|
const PickerInputContainer = ({ options = [], onPress, Icon, style, selectedValue, disabled = false, zIndex, children, testID, ...rest }) => {
|
|
8
8
|
var _a;
|
|
9
9
|
const containerStyle = StyleSheet.flatten([
|
|
10
|
+
extractSizeStyles(style),
|
|
10
11
|
extractPositionStyles(style),
|
|
11
12
|
extractFlexItemStyles(style),
|
|
12
13
|
extractBorderAndMarginStyles(style).marginStyles,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PickerInputContainer.js","sourceRoot":"","sources":["../../../../../src/components/Picker/PickerInputContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,iBAAiB,CAAC;AACzB,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,SAAS,MAAM,cAAc,CAAC;AAcrC,MAAM,o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AAc,EAAE,EAAE,MAAM,EAAE,CAAC;QACvD,oBAAC,SAAS,IACR,IAAI,EAAE,IAAI,EACV,aAAa,EAAE,CAAC,EAChB,YAAY,EAAE,GAAG,EAAE,GAAE,CAAC,EACtB,KAAK,EAAE,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,QAAQ,EAAE,EAChC,QAAQ,EAAE,KAAK,EACf,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,cAAc,KACjB,IAAI,GACR;QACF,oBAAC,SAAS,IACR,KAAK,EAAE,UAAU,CAAC,kBAAkB,EACpC,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,OAAO,GACpB;QACD,QAAQ,CACJ,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"PickerInputContainer.js","sourceRoot":"","sources":["../../../../../src/components/Picker/PickerInputContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,iBAAiB,CAAC;AACzB,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,SAAS,MAAM,cAAc,CAAC;AAcrC,MAAM,oBAAoB,GAEtB,CAAC,EACH,OAAO,GAAG,EAAE,EACZ,OAAO,EACP,IAAI,EACJ,KAAK,EACL,aAAa,EACb,QAAQ,GAAG,KAAK,EAChB,MAAM,EACN,QAAQ,EACR,MAAM,EACN,GAAG,IAAI,EACR,EAAE,EAAE;;IACH,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;QACxC,iBAAiB,CAAC,KAAK,CAAC;QACxB,qBAAqB,CAAC,KAAK,CAAC;QAC5B,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AK,EAAE,cAAc,KACjB,IAAI,GACR;QACF,oBAAC,SAAS,IACR,KAAK,EAAE,UAAU,CAAC,kBAAkB,EACpC,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,OAAO,GACpB;QACD,QAAQ,CACJ,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { CommonDropDownPickerProps, DropDownModalPickerProps, SinglePickerProps } from "../PickerCommon";
|
|
3
|
-
declare const _default: React.
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<CommonDropDownPickerProps & SinglePickerProps & DropDownModalPickerProps>, "theme"> & React.RefAttributes<any>>;
|
|
4
4
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { CommonDropDownPickerProps, MultiSelectPickerProps, SinglePickerProps } from "../PickerCommon";
|
|
3
|
-
declare const _default: React.
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<CommonDropDownPickerProps & (SinglePickerProps | MultiSelectPickerProps)>, "theme"> & React.RefAttributes<any>>;
|
|
4
4
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { CommonDropDownPickerProps, MultiSelectPickerProps } from "../PickerCommon";
|
|
3
|
-
declare const _default: React.
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<CommonDropDownPickerProps & MultiSelectPickerProps>, "theme"> & React.RefAttributes<any>>;
|
|
4
4
|
export default _default;
|
|
@@ -3,6 +3,6 @@ import { CommonDropDownPickerProps, DropDownModalPickerProps, SinglePickerProps
|
|
|
3
3
|
interface PickerProps extends CommonDropDownPickerProps, SinglePickerProps, DropDownModalPickerProps {
|
|
4
4
|
mode?: "native" | "dropdown" | "dropdown-modal";
|
|
5
5
|
}
|
|
6
|
-
export declare const Picker: React.
|
|
6
|
+
export declare const Picker: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<PickerProps>, "theme"> & React.RefAttributes<any>>;
|
|
7
7
|
export { default as MultiSelectPicker } from "./dropdown/MultiSelectPicker";
|
|
8
8
|
export { default as PickerItem } from "./dropdown/PickerItem";
|
|
@@ -20,5 +20,5 @@ interface PinInputProps extends TextInputProps {
|
|
|
20
20
|
style?: StyleProp<ViewStyle | TextStyle>;
|
|
21
21
|
theme: ReadTheme;
|
|
22
22
|
}
|
|
23
|
-
declare const _default: React.
|
|
23
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Omit<PinInputProps & React.RefAttributes<NativeTextInput>, "theme">, "ref"> & React.RefAttributes<any>>;
|
|
24
24
|
export default _default;
|
|
@@ -7,5 +7,5 @@ interface CustomPinInputTextProps extends TextProps {
|
|
|
7
7
|
isFocused?: boolean;
|
|
8
8
|
theme: ReadTheme;
|
|
9
9
|
}
|
|
10
|
-
declare const _default: React.
|
|
10
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<CustomPinInputTextProps, "theme"> & React.RefAttributes<any>>;
|
|
11
11
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { CircularProgressProps, IndeterminateProgressProps, ValueProgressProps } from "../ProgressCommon";
|
|
3
|
-
declare const _default: React.
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<ValueProgressProps & IndeterminateProgressProps & CircularProgressProps, "theme"> & React.RefAttributes<any>>;
|
|
4
4
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IndeterminateProgressProps, ValueProgressProps } from "../ProgressCommon";
|
|
3
|
-
declare const _default: React.
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<ValueProgressProps & IndeterminateProgressProps, "theme"> & React.RefAttributes<any>>;
|
|
4
4
|
export default _default;
|
|
@@ -16,5 +16,5 @@ declare type Props = {
|
|
|
16
16
|
finishedColor?: string;
|
|
17
17
|
theme: ReadTheme;
|
|
18
18
|
};
|
|
19
|
-
declare const _default: React.
|
|
19
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<Props>, "theme"> & React.RefAttributes<any>>;
|
|
20
20
|
export default _default;
|
|
@@ -19,5 +19,5 @@ export interface RadioButtonRowProps extends Omit<RadioButtonProps, "onPress"> {
|
|
|
19
19
|
direction?: Direction;
|
|
20
20
|
theme: ReadTheme;
|
|
21
21
|
}
|
|
22
|
-
declare const _default: React.
|
|
22
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<RadioButtonRowProps & IconSlot, "theme"> & React.RefAttributes<any>>;
|
|
23
23
|
export default _default;
|
|
@@ -14,5 +14,5 @@ declare type Props = {
|
|
|
14
14
|
style?: StyleProp<ViewStyle>;
|
|
15
15
|
theme: ReadTheme;
|
|
16
16
|
};
|
|
17
|
-
declare const _default: React.
|
|
17
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<Props>, "theme"> & React.RefAttributes<any>>;
|
|
18
18
|
export default _default;
|
|
@@ -12,5 +12,5 @@ declare type ScreenContainerProps = {
|
|
|
12
12
|
style?: StyleProp<ViewStyle>;
|
|
13
13
|
children?: React.ReactNode;
|
|
14
14
|
};
|
|
15
|
-
declare const _default: React.
|
|
15
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<ScreenContainerProps, "theme"> & React.RefAttributes<any>>;
|
|
16
16
|
export default _default;
|
|
@@ -9,5 +9,5 @@ interface DefaultSectionHeaderProps {
|
|
|
9
9
|
title: string;
|
|
10
10
|
theme: ReadTheme;
|
|
11
11
|
}
|
|
12
|
-
export declare const DefaultSectionHeader: React.
|
|
12
|
+
export declare const DefaultSectionHeader: React.ForwardRefExoticComponent<Omit<DefaultSectionHeaderProps, "theme"> & React.RefAttributes<any>>;
|
|
13
13
|
export default SectionHeader;
|
|
@@ -20,5 +20,5 @@ export declare type Props = {
|
|
|
20
20
|
onValueChange?: (value: number) => void;
|
|
21
21
|
theme: ReadTheme;
|
|
22
22
|
} & IconSlot;
|
|
23
|
-
declare const _default: React.
|
|
23
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Props, "theme"> & React.RefAttributes<any>>;
|
|
24
24
|
export default _default;
|
|
@@ -14,5 +14,5 @@ declare type Props = {
|
|
|
14
14
|
style?: StyleProp<ViewStyle>;
|
|
15
15
|
onPress?: (newValue: number) => void;
|
|
16
16
|
} & IconSlot;
|
|
17
|
-
declare const _default: React.
|
|
17
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<Props>, "theme"> & React.RefAttributes<any>>;
|
|
18
18
|
export default _default;
|
|
@@ -13,5 +13,5 @@ declare type Props = {
|
|
|
13
13
|
onChange?: (value: number) => void;
|
|
14
14
|
theme: ReadTheme;
|
|
15
15
|
} & IconSlot;
|
|
16
|
-
declare const _default: React.
|
|
16
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Props, "theme"> & React.RefAttributes<any>>;
|
|
17
17
|
export default _default;
|
|
@@ -6,5 +6,5 @@ declare type Props = {
|
|
|
6
6
|
style?: StyleProp<ViewStyle>;
|
|
7
7
|
theme: ReadTheme;
|
|
8
8
|
} & ViewProps;
|
|
9
|
-
declare const _default: React.
|
|
9
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<Props>, "theme"> & React.RefAttributes<any>>;
|
|
10
10
|
export default _default;
|
|
@@ -37,5 +37,5 @@ export interface SwipeableItemProps extends IconSlot {
|
|
|
37
37
|
theme: ReadTheme;
|
|
38
38
|
}
|
|
39
39
|
declare type Props = SwipeableItemProps & RightSwipeProps & LeftSwipeProps;
|
|
40
|
-
declare const _default: React.
|
|
40
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<Props>, "theme"> & React.RefAttributes<any>>;
|
|
41
41
|
export default _default;
|
|
@@ -29,5 +29,5 @@ export interface SwiperProps<T> {
|
|
|
29
29
|
minDistanceToCapture?: number;
|
|
30
30
|
theme: ReadTheme;
|
|
31
31
|
}
|
|
32
|
-
declare const _default: React.
|
|
32
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<SwiperProps<any>, "theme"> & React.RefAttributes<any>>;
|
|
33
33
|
export default _default;
|
|
@@ -17,7 +17,7 @@ declare type RowProps = {
|
|
|
17
17
|
direction: "row" | "column";
|
|
18
18
|
style?: StyleProp<ViewStyle>;
|
|
19
19
|
};
|
|
20
|
-
declare const SwitchRow: React.
|
|
20
|
+
declare const SwitchRow: React.ForwardRefExoticComponent<Omit<{
|
|
21
21
|
value?: boolean | undefined;
|
|
22
22
|
disabled?: boolean | undefined;
|
|
23
23
|
onValueChange?: ((value: boolean) => void) | undefined;
|
|
@@ -27,7 +27,7 @@ declare const SwitchRow: React.ComponentType<Omit<{
|
|
|
27
27
|
inactiveTrackColor: string;
|
|
28
28
|
activeThumbColor: string;
|
|
29
29
|
inactiveThumbColor: string;
|
|
30
|
-
} & SwitchProps & RowProps, "theme">>;
|
|
30
|
+
} & SwitchProps & RowProps, "theme"> & React.RefAttributes<any>>;
|
|
31
31
|
export { SwitchRow };
|
|
32
|
-
declare const _default: React.
|
|
32
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Props, "theme"> & React.RefAttributes<any>>;
|
|
33
33
|
export default _default;
|
|
@@ -23,5 +23,5 @@ declare type TabViewProps = {
|
|
|
23
23
|
style?: StyleProp<ViewStyle | TextStyle>;
|
|
24
24
|
theme: ReadTheme;
|
|
25
25
|
} & IconSlot;
|
|
26
|
-
declare const _default: React.
|
|
26
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<TabViewProps>, "theme"> & React.RefAttributes<any>>;
|
|
27
27
|
export default _default;
|
|
@@ -12,5 +12,5 @@ export interface Props<T> extends TableProps, ScrollViewProps {
|
|
|
12
12
|
style?: StyleProp<ViewStyle>;
|
|
13
13
|
theme: ReadTheme;
|
|
14
14
|
}
|
|
15
|
-
declare const _default: React.
|
|
15
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<Props<object>>, "theme"> & React.RefAttributes<any>>;
|
|
16
16
|
export default _default;
|
|
@@ -8,5 +8,5 @@ export interface Props extends TableProps {
|
|
|
8
8
|
style?: StyleProp<ViewStyle>;
|
|
9
9
|
theme: ReadTheme;
|
|
10
10
|
}
|
|
11
|
-
declare const _default: React.
|
|
11
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<Props>, "theme"> & React.RefAttributes<any>>;
|
|
12
12
|
export default _default;
|
|
@@ -7,5 +7,5 @@ declare type Props = {
|
|
|
7
7
|
export declare const BaseLink: ({ style, theme, title, ...props }: any) => JSX.Element;
|
|
8
8
|
declare const Link: any;
|
|
9
9
|
export { Link };
|
|
10
|
-
declare const _default: React.
|
|
10
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Props, "theme"> & React.RefAttributes<any>>;
|
|
11
11
|
export default _default;
|
|
@@ -26,5 +26,5 @@ export declare type Props = {
|
|
|
26
26
|
ref: (c: NativeTextInput) => void;
|
|
27
27
|
}) => React.ReactNode;
|
|
28
28
|
} & TextInputProps & IconSlot;
|
|
29
|
-
declare const _default: React.
|
|
29
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Props, "theme"> & React.RefAttributes<any>>;
|
|
30
30
|
export default _default;
|
|
@@ -358,13 +358,16 @@ class TextField extends React.Component {
|
|
|
358
358
|
...rest,
|
|
359
359
|
value: this.state.value,
|
|
360
360
|
})),
|
|
361
|
-
leftIconName ? (React.createElement(
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
rightIconName ? (React.createElement(
|
|
367
|
-
|
|
361
|
+
leftIconName ? (React.createElement(Icon, { size: iconSize || ICON_SIZE, color: leftIconColor || colors.text.light, name: leftIconName, style: {
|
|
362
|
+
position: "absolute",
|
|
363
|
+
left: leftIconMode === "inset" && type === "solid" ? 16 : 0,
|
|
364
|
+
marginTop: type === "solid" ? MINIMIZED_LABEL_FONT_SIZE + 4 : 16,
|
|
365
|
+
} })) : null,
|
|
366
|
+
rightIconName ? (React.createElement(Icon, { name: rightIconName, size: iconSize || ICON_SIZE, color: iconColor || colors.text.light, style: {
|
|
367
|
+
position: "absolute",
|
|
368
|
+
right: 16,
|
|
369
|
+
marginTop: type === "solid" ? MINIMIZED_LABEL_FONT_SIZE + 4 : 16,
|
|
370
|
+
} })) : null,
|
|
368
371
|
assistiveText ? (React.createElement(Text, { style: [
|
|
369
372
|
{
|
|
370
373
|
color: error ? colors.text.danger : colors.text.light,
|
|
@@ -397,11 +400,5 @@ const styles = StyleSheet.create({
|
|
|
397
400
|
margin: 0,
|
|
398
401
|
textAlign: I18nManager.isRTL ? "right" : "left",
|
|
399
402
|
},
|
|
400
|
-
iconWrapper: {
|
|
401
|
-
height: "100%",
|
|
402
|
-
justifyContent: "center",
|
|
403
|
-
alignItems: "center",
|
|
404
|
-
position: "absolute",
|
|
405
|
-
},
|
|
406
403
|
});
|
|
407
404
|
//# sourceMappingURL=TextField.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextField.js","sourceRoot":"","sources":["../../../../src/components/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,IAAI,EACJ,QAAQ,EAER,UAAU,EACV,IAAI,EACJ,WAAW,EAOX,QAAQ,GACT,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,SAA6B,MAAM,aAAa,CAAC;AAExD,MAAM,YAAY,GAAG,QAAQ,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;AAE5D,MAAM,wBAAwB,GAAG,GAAG,CAAC;AACrC,MAA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AC,CACf,oBAAC,IAAI,IACH,KAAK,EAAE;oBACL;wBACE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK;wBACrD,SAAS,EAAE,CAAC;wBACZ,UAAU,EAAE,uBAAuB;qBACpC;iBACF,IAEA,aAAa,CACT,CACR,CAAC,CAAC,CAAC,IAAI,CACH,CACR,CAAC;IACJ,CAAC;CACF;AAED,eAAe,SAAS,CAAC,SAAS,CAAC,CAAC;AAEpC,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,SAAS,EAAE,SAAS;KACrB;IACD,WAAW,EAAE;QACX,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,CAAC;KACR;IACD,SAAS,EAAE;QACT,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,CAAC;QACT,MAAM,EAAE,CAAC;KACV;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,CAAC;QACX,cAAc,EAAE,QAAQ;QACxB,iBAAiB,EAAE,QAAQ;QAC3B,MAAM,EAAE,CAAC;QACT,SAAS,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM;KAChD;IACD,WAAW,EAAE;QACX,MAAM,EAAE,MAAM;QACd,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;QACpB,QAAQ,EAAE,UAAU;KACrB;CACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"TextField.js","sourceRoot":"","sources":["../../../../src/components/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,IAAI,EACJ,QAAQ,EAER,UAAU,EACV,IAAI,EACJ,WAAW,EAOX,QAAQ,GACT,MAAM,cAAc,CAAC;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