UNPKG

@aplus-frontend/ui

Version:

2 lines (1 loc) 1.76 kB
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("../../utils/cssinjs/index.js"),a=e=>{const{namespace:r}=e,o=`.${r}-ap-form-search-form__popover`;return{[o]:{".ant-form-item":{marginBlockEnd:e.space},".ant-popover-arrow":{display:"none"},".ant-popover-inner":{padding:0},[`${o}-content`]:{padding:`${e.spaceLG} ${e.spaceXL} ${e.spaceXL}`,textarea:{padding:0}},[`${o}-footer`]:{padding:`${e.spaceLG} ${e.spaceXL}`,"& button.ant-btn":{paddingInline:e.spaceXL}}}}},t=e=>{const{componentCls:r}=e;return{[r]:{".ant-form-item":{marginBlockEnd:e.space},".ant-form-item-control":{".ant-picker":{display:"flex"},".ant-input-number":{width:"100%"}},[`${r}-trigger-btn`]:{fontSize:0,"&-active":{color:e.hoverColorBase,borderColor:e.hoverColorBase,zIndex:1},"&-badge":{display:"inline-block",padding:e.spaceXXS,minWidth:e.searchFormPopoverFilterBadgeSize,height:e.searchFormPopoverFilterBadgeSize,backgroundColor:e.colorPrimary,fontSize:e.fontSizeSM,lineHeight:1,borderRadius:e.calc(e.searchFormPopoverFilterBadgeSize).div(2).equal(),color:"#fff",position:"absolute",top:0,left:0,transform:"translate(-50%, -50%)",boxShadow:"0 0 0 1px #fff"}},[`${r}-column-setting-trigger-wrapper`]:{flexShrink:0,".ant-btn:not(:only-child)":{"&:first-child":{borderTopRightRadius:0,borderBottomRightRadius:0,"&:hover":{zIndex:1}},"&:last-child":{borderTopLeftRadius:0,borderBottomLeftRadius:0,marginLeft:"-1px","&:hover":{zIndex:1}}}},[`${r}-action-btn`]:{paddingInline:e.spaceLG},[`${r}-action-btn-reset`]:{backgroundColor:e.colorBg1}},...a(e)}},n=i.genComponentStyleHook("ApForm.SearchForm",e=>[t(e)],{searchFormPopoverFilterBadgeSize:14});exports.default=n;exports.genPopoverStyle=a;exports.genSearchFormStyle=t;