Comparing version 0.1.12 to 0.1.13
@@ -46,3 +46,3 @@ "use strict"; | ||
var Select = function Select(props) { | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j; | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k; | ||
@@ -61,5 +61,5 @@ var name = props.name, | ||
var _k = (0, _useError["default"])(validators), | ||
error = _k[0], | ||
onValidate = _k[1]; | ||
var _l = (0, _useError["default"])(validators), | ||
error = _l[0], | ||
onValidate = _l[1]; | ||
@@ -95,5 +95,5 @@ var nameRef = React.useRef(0); | ||
var _l = React.useState({}), | ||
extraProps = _l[0], | ||
setExtraProps = _l[1]; | ||
var _m = React.useState({}), | ||
extraProps = _m[0], | ||
setExtraProps = _m[1]; | ||
@@ -119,5 +119,5 @@ var setProps = React.useCallback(function (props) { | ||
var _m = React.useState(), | ||
data = _m[0], | ||
setData = _m[1]; | ||
var _o = React.useState(), | ||
data = _o[0], | ||
setData = _o[1]; | ||
@@ -140,5 +140,5 @@ var selected = ((_a = options) === null || _a === void 0 ? void 0 : _a.find(function (v) { | ||
var _o = React.useState(null), | ||
offsets = _o[0], | ||
setOffsets = _o[1]; | ||
var _p = React.useState(null), | ||
offsets = _p[0], | ||
setOffsets = _p[1]; | ||
@@ -238,9 +238,9 @@ var handlePress = function handlePress() { | ||
position: 'absolute', | ||
top: (((_c = offsets) === null || _c === void 0 ? void 0 : _c.pageY) || 0) + 38 + 5, | ||
left: (_d = offsets) === null || _d === void 0 ? void 0 : _d.pageX | ||
top: (((_c = offsets) === null || _c === void 0 ? void 0 : _c.pageY) || 0) + (((_d = offsets) === null || _d === void 0 ? void 0 : _d.height) || 0) + 5, | ||
left: (_e = offsets) === null || _e === void 0 ? void 0 : _e.pageX | ||
} | ||
}, React.createElement(_reactNative.Animated.ScrollView, { | ||
style: [(0, _pick["default"])(elementStyle, COVER_STYLES), { | ||
width: (_e = offsets) === null || _e === void 0 ? void 0 : _e.width, | ||
minHeight: (_f = offsets) === null || _f === void 0 ? void 0 : _f.height, | ||
width: (_f = offsets) === null || _f === void 0 ? void 0 : _f.width, | ||
minHeight: (_g = offsets) === null || _g === void 0 ? void 0 : _g.height, | ||
transform: [{ | ||
@@ -264,7 +264,7 @@ translateY: translateY | ||
}, typeof option.view === 'string' ? React.createElement(_reactNative.Text, null, option.view) : option.view); | ||
}))))), (!!error || !!((_g = props) === null || _g === void 0 ? void 0 : _g.hint)) && React.createElement(_reactNative.View, { | ||
}))))), (!!error || !!((_h = props) === null || _h === void 0 ? void 0 : _h.hint)) && React.createElement(_reactNative.View, { | ||
style: (0, _omit["default"])(hintElStyle, _utils.TEXT_STYLE_NAMES) | ||
}, React.createElement(_reactNative.Text, { | ||
style: (0, _pick["default"])(hintElStyle, _utils.TEXT_STYLE_NAMES) | ||
}, ((_h = error) === null || _h === void 0 ? void 0 : _h.message) || ((_j = props) === null || _j === void 0 ? void 0 : _j.hint)))); | ||
}, ((_j = error) === null || _j === void 0 ? void 0 : _j.message) || ((_k = props) === null || _k === void 0 ? void 0 : _k.hint)))); | ||
}; | ||
@@ -271,0 +271,0 @@ |
{ | ||
"name": "actbase", | ||
"version": "0.1.12", | ||
"version": "0.1.13", | ||
"description": "React & React-Native Design Components", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
386278