@fruits-chain/react-native-xiaoshu
Version:
🌈 React Native UI library
93 lines (86 loc) • 2.45 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.varCreator = exports.styleCreator = void 0;
var _reactNative = require("react-native");
const varCreator = TOKENS => {
return {
steps_background_color: TOKENS.brand_6,
steps_padding_vertical: TOKENS.space_4,
steps_padding_horizontal: TOKENS.space_6,
steps_icon_dot_size: 10,
steps_icon_dot_active_size: 16,
steps_icon_success_active_size: 16,
steps_title_size: TOKENS.font_size_4,
steps_title_color: TOKENS.white
};
};
exports.varCreator = varCreator;
const styleCreator = (cv, TOKENS) => {
return _reactNative.StyleSheet.create({
scrollViewBox: {
width: '100%'
},
outWrap: {
backgroundColor: cv.steps_background_color,
paddingVertical: cv.steps_padding_vertical,
paddingHorizontal: cv.steps_padding_horizontal
},
stepsBox: {
alignItems: 'flex-start',
flexDirection: 'row',
justifyContent: 'center',
position: 'relative'
},
// step
stepWrap: {
alignItems: 'center',
justifyContent: 'center',
flexShrink: 0
},
stepIconWrap: {
height: cv.steps_icon_dot_active_size,
justifyContent: 'center',
backgroundColor: cv.steps_background_color,
paddingHorizontal: TOKENS.space_1,
position: 'relative',
zIndex: 10,
marginBottom: TOKENS.space_2
},
line: {
position: 'absolute',
top: cv.steps_icon_dot_active_size / 2,
zIndex: 1,
height: 1,
backgroundColor: TOKENS.white
},
dot: {
width: cv.steps_icon_dot_size,
height: cv.steps_icon_dot_size,
backgroundColor: cv.steps_title_color,
borderRadius: cv.steps_icon_dot_size // TODO 新增变量
// opacity: cv.button_active_opacity,
},
dotActive: {
width: cv.steps_icon_dot_active_size,
height: cv.steps_icon_dot_active_size,
backgroundColor: TOKENS.white,
borderRadius: cv.steps_icon_dot_size
},
titleText: {
fontSize: cv.steps_title_size,
color: cv.steps_title_color,
// TODO 新增变量
// opacity: cv.button_active_opacity,
marginHorizontal: TOKENS.space_1
},
activeTitleText: {
fontSize: cv.steps_title_size,
color: cv.steps_title_color,
marginHorizontal: TOKENS.space_1
}
});
};
exports.styleCreator = styleCreator;
//# sourceMappingURL=style.js.map