tailwind-merge-rtl-plugin
Version:
RTL Plugin for tailwind-merge
3 lines (2 loc) • 1.69 kB
JavaScript
import{mergeConfigs as r,validators as e}from"tailwind-merge";var t=function(t){var d=function(){return[e.isLength]},l=function(){return["auto",e.isLength]},o=function(){return["",e.isLength]},n=function(){return[e.isAny]},s=function(){return["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":s()}],"rtl.rounded-e":[{"rounded-e":s()}],"rtl.rounded-ts":[{"rounded-ts":s()}],"rtl.rounded-te":[{"rounded-te":s()}],"rtl.rounded-bs":[{"rounded-bs":s()}],"rtl.rounded-be":[{"rounded-be":s()}],"rtl.border-w-s":[{"border-s":o()}],"rtl.border-w-e":[{"border-e":o()}],"rtl.divide-s":[{"divide-s":o()}],"rtl.border-color-s":[{"border-s":n()}],"rtl.border-color-e":[{"border-e":n()}]},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.module.js.map