!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],t):"object"==typeof exports?exports["openstack-uicore-foundation"]=t():e["openstack-uicore-foundation"]=t()}(this,(()=>(()=>{"use strict";var e={8213:e=>{e.exports=require("@babel/runtime/helpers/extends")},3838:e=>{e.exports=require("@babel/runtime/helpers/objectWithoutProperties")},6689:e=>{e.exports=require("react")}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,n),a.exports}(()=>{n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t}})(),(()=>{n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}})(),(()=>{n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var o={};return(()=>{n.r(o),n.d(o,{default:()=>d});var e=n(8213),t=n.n(e),r=n(3838),a=n.n(r),l=n(6689),s=n.n(l);const i="tDZTa8dy9OMVyGAtxNOS",u="VoBl8JcsRZelj8EKGKtC",c=["value","options","onChange"],d=e=>{let{value:n,options:o,onChange:r}=e,l=a()(e,c);const d=o.findIndex((e=>e.value===n)),p=o.find((e=>e.value===n)).label;return s().createElement("div",t()({className:i},l),s().createElement("button",{className:"btn btn-default",onClick:()=>(()=>{d>0&&r(o[d-1].value)})(),disabled:0===d,title:"Decrement"},s().createElement("i",{className:"fa fa-minus"})),s().createElement("span",{className:u},p),s().createElement("button",{className:"btn btn-default",onClick:()=>(()=>{d<o.length-1&&r(o[d+1].value)})(),disabled:d+1===o.length,title:"Increment"},s().createElement("i",{className:"fa fa-plus"})))}})(),o})()));
//# sourceMappingURL=stepped-select.js.map