import e from"react";import o from"classnames";import t from"../../../IconButton/IconButton.js";import{DropdownChevronUp as n,DropdownChevronDown as i}from"@vibe/icons";import{Flex as s}from"@vibe/layout/mockedClassNames";import{getStyle as a}from"../../../../helpers/typesciptCssModulesHelper.js";import r from"./NumberFieldSpinButton.module.scss.js";var l=function(l){var c=l.inputId,m=l.onIncrement,u=l.onDecrement,p=l.disabled,d=l.isAtMin,f=l.isAtMax,b=o(r.spinButton,a(r,l.size)),C=r.icon;return e.createElement(s,{direction:"column",align:"stretch",justify:"center",onMouseDown:function(e){e.preventDefault()}},e.createElement(t,{ariaLabel:"Increase",hideTooltip:!0,ariaControls:c,tabIndex:-1,onClick:m,disabled:p||f,size:null,className:b,iconClassName:C,icon:n}),e.createElement(t,{ariaLabel:"Decrease",hideTooltip:!0,ariaControls:c,tabIndex:-1,onClick:u,disabled:p||d,size:null,className:b,iconClassName:C,icon:i}))};export{l as default};
//# sourceMappingURL=NumberFieldSpinButton.js.map
