UNPKG

@ant-design/react-native

Version:

基于蚂蚁金服移动设计规范的 React Native 组件库

1 lines 2.84 kB
"use strict";"use client";Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _reactNative=require("react-native");var _default=function _default(theme){return _reactNative.StyleSheet.create({container:{flexDirection:'row',height:'100%',alignItems:'center',justifyContent:'center',overflow:'hidden'},defaultHighlight:{backgroundColor:"".concat(theme.fill_tap,"4D"),borderColor:theme.border_color_base},primaryHighlight:{backgroundColor:"".concat(theme.primary_button_fill_tap,"4D"),borderColor:theme.primary_button_fill},ghostHighlight:{backgroundColor:'transparent',borderColor:theme.ghost_button_fill_tap},warningHighlight:{backgroundColor:"".concat(theme.warning_button_fill_tap,"4D"),borderColor:theme.warning_button_fill},wrapperStyle:{alignItems:'center',justifyContent:'center',borderRadius:theme.radius_md,borderWidth:1},underlayStyle:{width:'100%',height:'100%',alignItems:'center',justifyContent:'center'},largeRaw:{height:theme.button_height},largeUnderlayContainerRaw:{paddingLeft:theme.h_spacing_lg,paddingRight:theme.h_spacing_lg},smallRaw:{height:theme.button_height_sm},smallUnderlayContainerRaw:{paddingLeft:theme.h_spacing_sm,paddingRight:theme.h_spacing_sm},defaultRaw:{backgroundColor:theme.fill_base,borderColor:theme.border_color_base},defaultUnderlayContainerRaw:{},primaryRaw:{backgroundColor:theme.primary_button_fill,borderColor:theme.primary_button_fill},primaryUnderlayContainerRaw:{},ghostRaw:{backgroundColor:'transparent',borderColor:theme.ghost_button_color},ghostUnderlayContainerRaw:{},warningRaw:{backgroundColor:theme.warning_button_fill,borderColor:theme.warning_button_fill},warningUnderlayContainerRaw:{},defaultDisabledRaw:{backgroundColor:theme.fill_disabled,borderColor:theme.fill_disabled},primaryDisabledRaw:{opacity:0.4},ghostDisabledRaw:{borderColor:"".concat(theme.color_text_base,"1A")},warningDisabledRaw:{opacity:0.4},defaultHighlightText:{color:"".concat(theme.color_text_base,"4D")},primaryHighlightText:{color:"".concat(theme.color_text_base_inverse,"4D")},ghostHighlightText:{color:theme.ghost_button_fill_tap},warningHighlightText:{color:"".concat(theme.color_text_base_inverse,"4D")},rawText:{},largeRawText:{fontSize:theme.button_font_size},smallRawText:{fontSize:theme.button_font_size_sm},defaultRawText:{color:theme.color_text_base},primaryRawText:{color:theme.color_text_base_inverse},ghostRawText:{color:theme.ghost_button_color},warningRawText:{color:theme.color_text_base_inverse},defaultDisabledRawText:{color:"".concat(theme.color_text_base,"4D")},primaryDisabledRawText:{color:"".concat(theme.color_text_base_inverse,"99")},ghostDisabledRawText:{color:"".concat(theme.color_text_base,"1A")},warningDisabledRawText:{color:"".concat(theme.color_text_base_inverse,"99")},indicator:{marginRight:theme.h_spacing_md}});};exports.default=_default;