import t from"./input.js";import r from"../foundations/typography.js";import{mode as e}from"../../../../theme-tools/dist/esm/component.js";var i;function o(){return(o=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t}).apply(this,arguments)}var{variants:p,defaultProps:n}=t,s={"--number-input-stepper-width":"24px","--number-input-field-padding":"calc(var(--number-input-stepper-width) + 0.5rem)"},a=null==(i=t.baseStyle)?void 0:i.field,d={width:"var(--number-input-stepper-width)"};function l(t){return{borderStart:"1px solid",borderStartColor:e("inherit","whiteAlpha.300")(t),color:e("inherit","whiteAlpha.800")(t),_active:{bg:e("gray.200","whiteAlpha.300")(t)},_disabled:{opacity:.4,cursor:"not-allowed"}}}function u(e){var i=t.sizes[e],p={lg:"md",md:"md",sm:"sm",xs:"sm"},n=r.fontSizes[i.field.fontSize];return{field:o({},i.field,{paddingInlineEnd:"var(--number-input-field-padding)",verticalAlign:"top"}),stepper:{fontSize:"calc("+n+" * 0.75)",_first:{borderTopEndRadius:p[e]},_last:{borderBottomEndRadius:p[e],mt:"-1px",borderTopWidth:1}}}}var m={parts:["root","field","stepper","stepperGroup"],baseStyle:t=>({root:s,field:a,stepperGroup:d,stepper:l(t)}),sizes:{xs:u("xs"),sm:u("sm"),md:u("md"),lg:u("lg")},variants:p,defaultProps:n};export default m;
//# sourceMappingURL=number-input.js.map
