import{z as c,D as d,Z as p}from"./CfjfYOu4.js";import{f as x,g as f,c as o,o as a,d as m,j as u,a as h,n as i,t as b,u as w}from"./BVo-4L0X.js";const g=["disabled","aria-label"],y={key:0,class:"s-text-regular-bold","data-test-id":"s-rotator-arrow__text"},v="s-rotator-btn",k=x({__name:"SRotatorArrow",props:{...c(),showHelperText:{type:Boolean,default:!1},customHelperText:{type:String},direction:{type:String,default:"first"},disabled:Boolean},setup(e){const s=f(()=>t.direction==="prev"?"Previous page":t.direction==="next"?"Next page":t.direction==="first"?"First page":t.direction==="last"?"Last page":""),t=e,r={first:{direction:"left",name:"icon-chevron-left-skip"},prev:{direction:"left",name:"icon-chevron-left"},next:{direction:"right",name:"icon-chevron-right"},last:{direction:"right",name:"icon-chevron-right-skip"}},n={first:"First",prev:"Prev",next:"Next",last:"Last"},{themeClasses:l}=d(t,v);return(H,T)=>(a(),o("button",{"data-test-id":"s-rotator-arrow__root",class:i(["s-rotator-btn s-rotator-btn--arrow s-rotator-btn--rotators inline-flex h-[53px] items-center justify-start rounded-[10px] border bg-none py-[16px] px-[24px] text-left",[w(l),{"s-rotator-btn--arrow-prev":e.direction==="prev","s-rotator-btn--arrow-next":e.direction==="next","s-rotator-btn--arrow-first":e.direction==="first","s-rotator-btn--arrow-last":e.direction==="last","s-rotator-btn--rotators--icon-text min-w-[109px]":e.showHelperText,"justify-end":r[e.direction].direction==="left"&&e.showHelperText,"justify-start":r[e.direction].direction==="right"&&e.showHelperText,"s-rotator-btn--rotators--icon-only min-w-auto w-[53px] !justify-center":!e.showHelperText}]]),disabled:e.disabled,"aria-label":s.value,type:"button"},[m("span",{class:i(["flex h-[18px] w-[18px] items-center justify-center",[{"mr-[13px]":r[e.direction].direction==="left"&&e.showHelperText,"order-2 ml-[13px]":r[e.direction].direction==="right"&&e.showHelperText}]])},[h(p,{name:r[e.direction].name,size:"small","aria-hidden":"true"},null,8,["name"])],2),e.showHelperText?(a(),o("span",y,b(e.customHelperText||n[e.direction]),1)):u("",!0)],10,g))}});export{k as default};

AltStyle によって変換されたページ (->オリジナル) /