import{mode as r}from"../../../../theme-tools/dist/esm/component.js";import{getColor as o}from"../../../../theme-tools/dist/esm/color.js";var e={lg:{fontSize:"lg",px:4,h:12,borderRadius:"md"},md:{fontSize:"md",px:4,h:10,borderRadius:"md"},sm:{fontSize:"sm",px:3,h:8,borderRadius:"sm"},xs:{fontSize:"xs",px:2,h:6,borderRadius:"sm"}};function d(o){var{focusBorderColor:e,errorBorderColor:d}=o;return{focusBorderColor:e||r("blue.500","blue.300")(o),errorBorderColor:d||r("red.500","red.300")(o)}}var t={parts:["field","addon"],baseStyle:{field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal"}},sizes:{lg:{field:e.lg,addon:e.lg},md:{field:e.md,addon:e.md},sm:{field:e.sm,addon:e.sm},xs:{field:e.xs,addon:e.xs}},variants:{outline:function(e){var{theme:t}=e,{focusBorderColor:a,errorBorderColor:l}=d(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:r("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:o(t,l),boxShadow:"0 0 0 1px "+o(t,l)},_focus:{zIndex:1,borderColor:o(t,a),boxShadow:"0 0 0 1px "+o(t,a)}},addon:{border:"1px solid",borderColor:r("inherit","whiteAlpha.50")(e),bg:r("gray.100","whiteAlpha.300")(e)}}},filled:function(e){var{theme:t}=e,{focusBorderColor:a,errorBorderColor:l}=d(e);return{field:{border:"2px solid",borderColor:"transparent",bg:r("gray.100","whiteAlpha.50")(e),_hover:{bg:r("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_disabled:{opacity:.4,cursor:"not-allowed"},_invalid:{borderColor:o(t,l)},_focus:{bg:"transparent",borderColor:o(t,a)}},addon:{border:"2px solid",borderColor:"transparent",bg:r("gray.100","whiteAlpha.50")(e)}}},flushed:function(r){var{theme:e}=r,{focusBorderColor:t,errorBorderColor:a}=d(r);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:0,px:0,bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:o(e,a),boxShadow:"0px 1px 0px 0px "+o(e,a)},_focus:{borderColor:o(e,t),boxShadow:"0px 1px 0px 0px "+o(e,t)}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:0,px:0,bg:"transparent"}}},unstyled:{field:{bg:"transparent",px:0,height:"auto"},addon:{bg:"transparent",px:0,height:"auto"}}},defaultProps:{size:"md",variant:"outline"}};export default t;
//# sourceMappingURL=input.js.map
