UNPKG

tailwind-merge-rtl-plugin

Version:
3 lines (2 loc) 1.61 kB
import{mergeConfigs as r,validators as e}from"tailwind-merge";const t=t=>{const d=()=>[e.isLength],l=()=>["auto",e.isLength],s=()=>["",e.isLength],o=()=>[e.isAny],n=()=>["none","","sm","md","lg","xl","2xl","3xl","full",e.isArbitraryLength];return r(t,{classGroups:{float:[{float:["start","end"]}],clear:[{clear:["start","end"]}],"text-alignment":[{text:["start","end"]}],"rtl.start":[{start:l()}],"rtl.end":[{end:l()}],"rtl.ps":[{ps:d()}],"rtl.pe":[{pe:d()}],"rtl.ms":[{ms:d()}],"rtl.me":[{me:d()}],"rtl.space-s":[{"space-s":d()}],"rtl.rounded-s":[{"rounded-s":n()}],"rtl.rounded-e":[{"rounded-e":n()}],"rtl.rounded-ts":[{"rounded-ts":n()}],"rtl.rounded-te":[{"rounded-te":n()}],"rtl.rounded-bs":[{"rounded-bs":n()}],"rtl.rounded-be":[{"rounded-be":n()}],"rtl.border-w-s":[{"border-s":s()}],"rtl.border-w-e":[{"border-e":s()}],"rtl.divide-s":[{"divide-s":s()}],"rtl.border-color-s":[{"border-s":o()}],"rtl.border-color-e":[{"border-e":o()}]},conflictingClassGroups:{inset:["rtl.start","rtl.end"],"inset-x":["rtl.start","rtl.end"],p:["rtl.ps","rtl.pe"],px:["rtl.ps","rtl.pe"],m:["rtl.ms","rtl.me"],mx:["rtl.ms","rtl.me"],"space-x":["rtl.space-s"],"rtl.space-s":["space-x"],rounded:["rtl.rounded-s","rtl.rounded-e","rtl.rounded-ts","rtl.rounded-te","rtl.rounded-bs","rtl.rounded-be"],"rtl.rounded-s":["rtl.rounded-ts","rtl.rounded-bs"],"rtl.rounded-e":["rtl.rounded-te","rtl.rounded-be"],"border-w":["rtl.border-w-s","rtl.border-w-e"],"divide-x":["rtl.divide-s"],"rtl.divide-s":["divide-x"],"border-color":["rtl.border-color-s","rtl.border-color-e"]}})};export{t as withRtl}; //# sourceMappingURL=index.js.map