tuya-panel-kit
Version:
a functional component library for developing tuya device panels!
42 lines (27 loc) • 2.68 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.StyledButton = exports.StyledTitle = exports.StyledNotificationContent = exports.StyledNotification = undefined;
var _templateObject = _taggedTemplateLiteral(['\n align-self: stretch;\n align-items: center;\n justify-content: space-between;\n'], ['\n align-self: stretch;\n align-items: center;\n justify-content: space-between;\n']),
_templateObject2 = _taggedTemplateLiteral(['\n width: ', 'px;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n margin: ', ';\n padding: ', ';\n min-height: 56px;\n border-radius: 28;\n background-color: ', ';\n'], ['\n width: ', 'px;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n margin: ', ';\n padding: ', ';\n min-height: 56px;\n border-radius: 28;\n background-color: ', ';\n']),
_templateObject3 = _taggedTemplateLiteral(['\n flex: 1;\n font-size: 14;\n line-height: 20;\n color: ', ';\n margin: ', ';\n'], ['\n flex: 1;\n font-size: 14;\n line-height: 20;\n color: ', ';\n margin: ', ';\n']),
_templateObject4 = _taggedTemplateLiteral(['\n width: ', 'px;\n height: ', 'px;\n align-items: center;\n justify-content: center;\n'], ['\n width: ', 'px;\n height: ', 'px;\n align-items: center;\n justify-content: center;\n']);
var _reactNative = require('react-native');
var _native = require('styled-components/native');
var _native2 = _interopRequireDefault(_native);
var _utils = require('../../utils');
var _topbar = require('../layout/topbar');
var _topbar2 = _interopRequireDefault(_topbar);
var _TYText = require('../TYText');
var _TYText2 = _interopRequireDefault(_TYText);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
var cx = _utils.RatioUtils.convertX;
var StyledNotification = exports.StyledNotification = (0, _native2.default)(_reactNative.TouchableOpacity)(_templateObject);
var StyledNotificationContent = exports.StyledNotificationContent = (0, _native2.default)(_reactNative.View)(_templateObject2, cx(351), _topbar2.default.height + 12 + 'px 0px 0px', '6px ' + cx(16) + 'px', function (props) {
return props.background;
});
var StyledTitle = exports.StyledTitle = (0, _native2.default)(_TYText2.default)(_templateObject3, function (props) {
return props.color;
}, '2px ' + cx(8) + 'px');
var StyledButton = exports.StyledButton = (0, _native2.default)(_reactNative.TouchableOpacity)(_templateObject4, cx(24), cx(24));