@mgcrea/react-native-tailwind 0.15.2 → 0.15.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/runtime.js CHANGED
@@ -1,2 +1,2 @@
1
- var Rt=Object.defineProperty,wt=Object.defineProperties;var Ot=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var Mt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable;var Z=(t,e,o)=>e in t?Rt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,h=(t,e)=>{for(var o in e||(e={}))Mt.call(e,o)&&Z(t,o,e[o]);if(Y)for(var o of Y(e))Ct.call(e,o)&&Z(t,o,e[o]);return t},q=(t,e)=>wt(t,Ot(e));var Wt=new Set(["transform"]);function J(t,e){for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){let r=e[o];if(Wt.has(o)&&Array.isArray(r)){let s=t[o];Array.isArray(s)?t[o]=[...s,...r]:t[o]=r}else t[o]=r}return t}var Q={"aspect-auto":void 0,"aspect-square":1,"aspect-video":1.7777777777777777};function Et(t){let e=t.match(/^\[(\d+)\/(\d+)\]$/);if(e){let o=Number.parseInt(e[1],10),r=Number.parseInt(e[2],10);return r===0?(process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Invalid aspect ratio: ${t}. Denominator cannot be zero.`),null):o/r}return null}function v(t){if(!t.startsWith("aspect-"))return null;if(t in Q){let r=Q[t];return r===void 0?{aspectRatio:void 0}:{aspectRatio:r}}let e=t.substring(7),o=Et(e);return o!==null?{aspectRatio:o}:null}var tt={red:{50:"#fef2f2",100:"#ffe2e2",200:"#ffc9c9",300:"#ffa2a2",400:"#ff6467",500:"#fb2c36",600:"#e7000b",700:"#c10007",800:"#9f0712",900:"#82181a",950:"#460809"},orange:{50:"#fff7ed",100:"#ffedd4",200:"#ffd6a7",300:"#ffb86a",400:"#ff8904",500:"#ff6900",600:"#f54900",700:"#ca3500",800:"#9f2d00",900:"#7e2a0c",950:"#441306"},amber:{50:"#fffbeb",100:"#fef3c6",200:"#fee685",300:"#ffd230",400:"#ffb900",500:"#fe9a00",600:"#e17100",700:"#bb4d00",800:"#973c00",900:"#7b3306",950:"#461901"},yellow:{50:"#fefce8",100:"#fef9c2",200:"#fff085",300:"#ffdf20",400:"#fdc700",500:"#f0b100",600:"#d08700",700:"#a65f00",800:"#894b00",900:"#733e0a",950:"#432004"},lime:{50:"#f7fee7",100:"#ecfcca",200:"#d8f999",300:"#bbf451",400:"#9ae600",500:"#7ccf00",600:"#5ea500",700:"#497d00",800:"#3c6300",900:"#35530e",950:"#192e03"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#b9f8cf",300:"#7bf1a8",400:"#05df72",500:"#00c950",600:"#00a63e",700:"#008236",800:"#016630",900:"#0d542b",950:"#032e15"},emerald:{50:"#ecfdf5",100:"#d0fae5",200:"#a4f4cf",300:"#5ee9b5",400:"#00d492",500:"#00bc7d",600:"#009966",700:"#007a55",800:"#006045",900:"#004f3b",950:"#002c22"},teal:{50:"#f0fdfa",100:"#cbfbf1",200:"#96f7e4",300:"#46ecd5",400:"#00d5be",500:"#00bba7",600:"#009689",700:"#00786f",800:"#005f5a",900:"#0b4f4a",950:"#022f2e"},cyan:{50:"#ecfeff",100:"#cefafe",200:"#a2f4fd",300:"#53eafd",400:"#00d3f2",500:"#00b8db",600:"#0092b8",700:"#007595",800:"#005f78",900:"#104e64",950:"#053345"},sky:{50:"#f0f9ff",100:"#dff2fe",200:"#b8e6fe",300:"#74d4ff",400:"#00bcff",500:"#00a6f4",600:"#0084d1",700:"#0069a8",800:"#00598a",900:"#024a70",950:"#052f4a"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bedbff",300:"#8ec5ff",400:"#51a2ff",500:"#2b7fff",600:"#155dfc",700:"#1447e6",800:"#193cb8",900:"#1c398e",950:"#162456"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c6d2ff",300:"#a3b3ff",400:"#7c86ff",500:"#615fff",600:"#4f39f6",700:"#432dd7",800:"#372aac",900:"#312c85",950:"#1e1a4d"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6ff",300:"#c4b4ff",400:"#a684ff",500:"#8e51ff",600:"#7f22fe",700:"#7008e7",800:"#5d0ec0",900:"#4d179a",950:"#2f0d68"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d4ff",300:"#dab2ff",400:"#c27aff",500:"#ad46ff",600:"#9810fa",700:"#8200db",800:"#6e11b0",900:"#59168b",950:"#3c0366"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f6cfff",300:"#f4a8ff",400:"#ed6aff",500:"#e12afb",600:"#c800de",700:"#a800b7",800:"#8a0194",900:"#721378",950:"#4b004f"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fccee8",300:"#fda5d5",400:"#fb64b6",500:"#f6339a",600:"#e60076",700:"#c6005c",800:"#a3004c",900:"#861043",950:"#510424"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#ffccd3",300:"#ffa1ad",400:"#ff637e",500:"#ff2056",600:"#ec003f",700:"#c70036",800:"#a50036",900:"#8b0836",950:"#4d0218"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cad5e2",400:"#90a1b9",500:"#62748e",600:"#45556c",700:"#314158",800:"#1d293d",900:"#0f172b",950:"#020618"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5dc",400:"#99a1af",500:"#6a7282",600:"#4a5565",700:"#364153",800:"#1e2939",900:"#101828",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#9f9fa9",500:"#71717b",600:"#52525c",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a1a1a1",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a6a09b",500:"#79716b",600:"#57534d",700:"#44403b",800:"#292524",900:"#1c1917",950:"#0c0a09"}};function T(t,e=""){let o={};for(let[r,s]of Object.entries(t)){let n=r==="DEFAULT"&&e?e:e?`${e}-${r}`:r;typeof s=="string"?o[n]=s:typeof s=="object"&&s!==null&&Object.assign(o,T(s,n))}return o}var Nt=q(h({},T(tt)),{white:"#FFFFFF",black:"#000000",transparent:"transparent"});function et(t,e){if(t==="transparent")return"transparent";let o=t.replace(/^#/,""),r=o.length===3?o.split("").map(i=>i+i).join(""):o,n=Math.round(e/100*255).toString(16).padStart(2,"0").toUpperCase();return`#${r.toUpperCase()}${n}`}function rt(t){let e=t.match(/^\[#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})\]$/);if(e){let o=e[1];return o.length===3?`#${o.split("").map(s=>s+s).join("")}`:`#${o}`}return t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary color value: ${t}. Only hex colors are supported (e.g., [#ff0000], [#f00], or [#ff0000aa]).`),null}function M(t,e){let o=n=>{var i;return(i=e==null?void 0:e[n])!=null?i:Nt[n]},r=n=>{var f;let i=n.match(/^(.+)\/(\d+)$/);if(i){let g=i[1],d=Number.parseInt(i[2],10);if(d<0||d>100)return process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Invalid opacity value: ${d}. Opacity must be between 0 and 100.`),null;let b=rt(g);if(b!==null)return et(b,d);let p=o(g);return p?et(p,d):null}let a=rt(n);return a!==null?a:(f=o(n))!=null?f:null};if(t.startsWith("bg-")){let n=t.substring(3);if(n.startsWith("[")&&!n.startsWith("[#"))return null;let i=r(n);if(i)return{backgroundColor:i}}if(t.startsWith("text-")){let n=t.substring(5);if(n.startsWith("[")&&!n.startsWith("[#"))return null;let i=r(n);if(i)return{color:i}}if(t.startsWith("border-")&&!t.match(/^border-[0-9]/)){let n=t.substring(7);if(n.startsWith("[")&&!n.startsWith("[#"))return null;let i=r(n);if(i)return{borderColor:i}}let s=t.match(/^border-([trblxy])-(.+)$/);if(s){let n=s[1],i=s[2];if(i.startsWith("[")&&!i.startsWith("[#"))return null;let a=r(i);if(a)return n==="x"?{borderLeftColor:a,borderRightColor:a}:n==="y"?{borderTopColor:a,borderBottomColor:a}:{[{t:"borderTopColor",r:"borderRightColor",b:"borderBottomColor",l:"borderLeftColor"}[n]]:a}}return null}var nt={"":1,0:0,2:2,4:4,8:8},A={none:0,sm:2,"":4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,full:9999},it={t:"borderTopWidth",r:"borderRightWidth",b:"borderBottomWidth",l:"borderLeftWidth",s:"borderStartWidth",e:"borderEndWidth"},ot={tl:"borderTopLeftRadius",tr:"borderTopRightRadius",bl:"borderBottomLeftRadius",br:"borderBottomRightRadius"},st={ss:"borderTopStartRadius",se:"borderTopEndRadius",es:"borderBottomStartRadius",ee:"borderBottomEndRadius"},Tt={t:["borderTopLeftRadius","borderTopRightRadius"],r:["borderTopRightRadius","borderBottomRightRadius"],b:["borderBottomLeftRadius","borderBottomRightRadius"],l:["borderTopLeftRadius","borderBottomLeftRadius"],s:["borderTopStartRadius","borderBottomStartRadius"],e:["borderTopEndRadius","borderBottomEndRadius"]};function at(t){let e=t.match(/^\[(\d+)(?:px)?\]$/);return e?parseInt(e[1],10):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary border width value: ${t}. Only px values are supported (e.g., [8px] or [8]).`),null)}function I(t){let e=t.match(/^\[(\d+)(?:px)?\]$/);return e?parseInt(e[1],10):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary border radius value: ${t}. Only px values are supported (e.g., [12px] or [12]).`),null)}function j(t,e){return t==="border-solid"?{borderStyle:"solid"}:t==="border-dotted"?{borderStyle:"dotted"}:t==="border-dashed"?{borderStyle:"dashed"}:t.startsWith("border-")?At(t,e):t==="border"?{borderWidth:1}:t.startsWith("rounded")?_t(t):null}function At(t,e){let o=t.match(/^border-([trblse])(?:-(.+))?$/);if(o){let n=o[1],i=o[2]||"";if(i&&n!=="s"&&n!=="e"&&M(t,e)!==null)return null;if(i.startsWith("[")){let f=at(i);return f!==null?{[it[n]]:f}:null}let a=nt[i];return a!==void 0?{[it[n]]:a}:null}let r=t.match(/^border-(\d+)$/);if(r){let n=nt[r[1]];if(n!==void 0)return{borderWidth:n}}let s=t.match(/^border-(\[.+\])$/);if(s){let n=at(s[1]);if(n!==null)return{borderWidth:n}}return null}function _t(t){let e=t.substring(7);if(e==="")return{borderRadius:A[""]};if(!e.startsWith("-"))return null;let o=e.substring(1);if(o==="")return null;let r=o.match(/^(tl|tr|bl|br)(?:-(.+))?$/);if(r){let a=r[1],f=r[2]||"";if(f.startsWith("[")){let d=I(f);return d!==null?{[ot[a]]:d}:null}let g=A[f];return g!==void 0?{[ot[a]]:g}:null}let s=o.match(/^(ss|se|es|ee)(?:-(.+))?$/);if(s){let a=s[1],f=s[2]||"";if(f.startsWith("[")){let d=I(f);return d!==null?{[st[a]]:d}:null}let g=A[f];return g!==void 0?{[st[a]]:g}:null}let n=o.match(/^([trblse])(?:-(.+))?$/);if(n){let a=n[1],f=n[2]||"",g;if(f.startsWith("[")){let d=I(f);if(d!==null)g=d;else return null}else g=A[f];if(g!==void 0){let d={};return Tt[a].forEach(b=>d[b]=g),d}return null}if(o.startsWith("[")){let a=I(o);return a!==null?{borderRadius:a}:null}let i=A[o];return i!==void 0?{borderRadius:i}:null}function S(t){let e=t.match(/^\[(-?\d+)(?:px)?\]$/);if(e)return parseInt(e[1],10);let o=t.match(/^\[(-?\d+(?:\.\d+)?)%\]$/);return o?`${o[1]}%`:(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary inset unit: ${t}. Only px and % are supported.`),null)}function It(t){let e=t.match(/^\[(-?\d+)\]$/);return e?parseInt(e[1],10):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Invalid arbitrary z-index: ${t}. Only integers are supported.`),null)}function ft(t){let e=t.match(/^\[(\d+(?:\.\d+)?|\.\d+)\]$/);return e?parseFloat(e[1]):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Invalid arbitrary grow/shrink value: ${t}. Only non-negative numbers are supported (e.g., [1.5], [2], [0.5], [.5]).`),null)}var $t={flex:{display:"flex"},hidden:{display:"none"}},vt={"flex-row":{flexDirection:"row"},"flex-row-reverse":{flexDirection:"row-reverse"},"flex-col":{flexDirection:"column"},"flex-col-reverse":{flexDirection:"column-reverse"}},jt={"flex-wrap":{flexWrap:"wrap"},"flex-wrap-reverse":{flexWrap:"wrap-reverse"},"flex-nowrap":{flexWrap:"nowrap"}},Pt={"flex-1":{flex:1},"flex-auto":{flex:1},"flex-none":{flex:0}},Vt={grow:{flexGrow:1},"grow-0":{flexGrow:0},shrink:{flexShrink:1},"shrink-0":{flexShrink:0},"flex-grow":{flexGrow:1},"flex-grow-0":{flexGrow:0},"flex-shrink":{flexShrink:1},"flex-shrink-0":{flexShrink:0}},Dt={"justify-start":{justifyContent:"flex-start"},"justify-end":{justifyContent:"flex-end"},"justify-center":{justifyContent:"center"},"justify-between":{justifyContent:"space-between"},"justify-around":{justifyContent:"space-around"},"justify-evenly":{justifyContent:"space-evenly"}},kt={"items-start":{alignItems:"flex-start"},"items-end":{alignItems:"flex-end"},"items-center":{alignItems:"center"},"items-baseline":{alignItems:"baseline"},"items-stretch":{alignItems:"stretch"}},Lt={"self-auto":{alignSelf:"auto"},"self-start":{alignSelf:"flex-start"},"self-end":{alignSelf:"flex-end"},"self-center":{alignSelf:"center"},"self-stretch":{alignSelf:"stretch"},"self-baseline":{alignSelf:"baseline"}},zt={"content-start":{alignContent:"flex-start"},"content-end":{alignContent:"flex-end"},"content-center":{alignContent:"center"},"content-between":{alignContent:"space-between"},"content-around":{alignContent:"space-around"},"content-stretch":{alignContent:"stretch"}},Ft={absolute:{position:"absolute"},relative:{position:"relative"}},Kt={"overflow-hidden":{overflow:"hidden"},"overflow-visible":{overflow:"visible"},"overflow-scroll":{overflow:"scroll"}},Bt={"opacity-0":{opacity:0},"opacity-5":{opacity:.05},"opacity-10":{opacity:.1},"opacity-15":{opacity:.15},"opacity-20":{opacity:.2},"opacity-25":{opacity:.25},"opacity-30":{opacity:.3},"opacity-35":{opacity:.35},"opacity-40":{opacity:.4},"opacity-45":{opacity:.45},"opacity-50":{opacity:.5},"opacity-55":{opacity:.55},"opacity-60":{opacity:.6},"opacity-65":{opacity:.65},"opacity-70":{opacity:.7},"opacity-75":{opacity:.75},"opacity-80":{opacity:.8},"opacity-85":{opacity:.85},"opacity-90":{opacity:.9},"opacity-95":{opacity:.95},"opacity-100":{opacity:1}},Ht={0:0,10:10,20:20,30:30,40:40,50:50,auto:0},lt={0:0,.5:2,1:4,1.5:6,2:8,2.5:10,3:12,3.5:14,4:16,5:20,6:24,8:32,10:40,12:48,16:64,20:80,24:96};function P(t,e){var n,i,a,f,g,d,b,p,y,R,G,X;let o=e?h(h({},lt),e):lt;if(t.startsWith("z-")){let u=t.substring(2),c=It(u);if(c!==null)return{zIndex:c};let l=Ht[u];if(l!==void 0)return{zIndex:l}}if(t.startsWith("top-")){let u=t.substring(4);if(u==="auto")return{};let c=S(u);if(c!==null)return{top:c};let l=o[u];if(l!==void 0)return{top:l}}if(t.startsWith("right-")){let u=t.substring(6);if(u==="auto")return{};let c=S(u);if(c!==null)return{right:c};let l=o[u];if(l!==void 0)return{right:l}}if(t.startsWith("bottom-")){let u=t.substring(7);if(u==="auto")return{};let c=S(u);if(c!==null)return{bottom:c};let l=o[u];if(l!==void 0)return{bottom:l}}if(t.startsWith("left-")){let u=t.substring(5);if(u==="auto")return{};let c=S(u);if(c!==null)return{left:c};let l=o[u];if(l!==void 0)return{left:l}}let r=t.match(/^(-?)start-(.+)$/);if(r){let[,u,c]=r,l=u==="-";if(c==="auto")return{};let x=S(c);if(x!==null)return typeof x=="number"?{start:l?-x:x}:l&&x.endsWith("%")?{start:`${-parseFloat(x)}%`}:{start:x};let w=o[c];if(w!==void 0)return{start:l?-w:w}}let s=t.match(/^(-?)end-(.+)$/);if(s){let[,u,c]=s,l=u==="-";if(c==="auto")return{};let x=S(c);if(x!==null)return typeof x=="number"?{end:l?-x:x}:l&&x.endsWith("%")?{end:`${-parseFloat(x)}%`}:{end:x};let w=o[c];if(w!==void 0)return{end:l?-w:w}}if(t.startsWith("inset-x-")){let u=t.substring(8),c=S(u);if(c!==null)return{left:c,right:c};let l=o[u];if(l!==void 0)return{left:l,right:l}}if(t.startsWith("inset-y-")){let u=t.substring(8),c=S(u);if(c!==null)return{top:c,bottom:c};let l=o[u];if(l!==void 0)return{top:l,bottom:l}}if(t.startsWith("inset-s-")){let u=t.substring(8),c=S(u);if(c!==null)return{start:c};let l=o[u];if(l!==void 0)return{start:l}}if(t.startsWith("inset-e-")){let u=t.substring(8),c=S(u);if(c!==null)return{end:c};let l=o[u];if(l!==void 0)return{end:l}}if(t.startsWith("inset-")){let u=t.substring(6),c=S(u);if(c!==null)return{top:c,right:c,bottom:c,left:c};let l=o[u];if(l!==void 0)return{top:l,right:l,bottom:l,left:l}}if(t.startsWith("grow-")||t.startsWith("flex-grow-")){let u=t.startsWith("flex-grow-")?"flex-grow-":"grow-",c=t.substring(u.length),l=ft(c);if(l!==null)return{flexGrow:l}}if(t.startsWith("shrink-")||t.startsWith("flex-shrink-")){let u=t.startsWith("flex-shrink-")?"flex-shrink-":"shrink-",c=t.substring(u.length),l=ft(c);if(l!==null)return{flexShrink:l}}return(X=(G=(R=(y=(p=(b=(d=(g=(f=(a=(i=(n=$t[t])!=null?n:vt[t])!=null?i:jt[t])!=null?a:Pt[t])!=null?f:Vt[t])!=null?g:Dt[t])!=null?d:kt[t])!=null?b:Lt[t])!=null?p:zt[t])!=null?y:Ft[t])!=null?R:Kt[t])!=null?G:Bt[t])!=null?X:null}var ct={"shadow-sm":{shadowColor:"#000000",shadowOffset:{width:0,height:1},shadowOpacity:.05,shadowRadius:1,elevation:1},shadow:{shadowColor:"#000000",shadowOffset:{width:0,height:1},shadowOpacity:.1,shadowRadius:2,elevation:2},"shadow-md":{shadowColor:"#000000",shadowOffset:{width:0,height:3},shadowOpacity:.15,shadowRadius:4,elevation:4},"shadow-lg":{shadowColor:"#000000",shadowOffset:{width:0,height:6},shadowOpacity:.2,shadowRadius:8,elevation:8},"shadow-xl":{shadowColor:"#000000",shadowOffset:{width:0,height:10},shadowOpacity:.25,shadowRadius:12,elevation:12},"shadow-2xl":{shadowColor:"#000000",shadowOffset:{width:0,height:20},shadowOpacity:.3,shadowRadius:24,elevation:16},"shadow-none":{shadowColor:"transparent",shadowOffset:{width:0,height:0},shadowOpacity:0,shadowRadius:0,elevation:0}};function V(t){return t in ct?ct[t]:null}var D="{{RUNTIME:dimensions.";var dt={0:0,.5:2,1:4,1.5:6,2:8,2.5:10,3:12,3.5:14,4:16,5:20,6:24,7:28,8:32,9:36,10:40,11:44,12:48,14:56,16:64,20:80,24:96,28:112,32:128,36:144,40:160,44:176,48:192,52:208,56:224,60:240,64:256,72:288,80:320,96:384},C={full:"100%","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%"};function W(t){let e=t.match(/^\[(\d+)(?:px)?\]$/);if(e)return parseInt(e[1],10);let o=t.match(/^\[(\d+(?:\.\d+)?)%\]$/);return o?`${o[1]}%`:(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary size unit: ${t}. Only px and % are supported.`),null)}function k(t,e){let o=e?h(h({},dt),e):dt;if(t.startsWith("w-")){let r=t.substring(2);if(r==="screen")return{width:`${D}width}}`};let s=W(r);if(s!==null)return{width:s};let n=C[r];if(n)return{width:n};let i=o[r];if(i!==void 0)return{width:i};if(r==="auto")return{width:"auto"}}if(t.startsWith("h-")){let r=t.substring(2);if(r==="screen")return{height:`${D}height}}`};let s=W(r);if(s!==null)return{height:s};let n=C[r];if(n)return{height:n};let i=o[r];if(i!==void 0)return{height:i};if(r==="auto")return{height:"auto"}}if(t.startsWith("min-w-")){let r=t.substring(6),s=W(r);if(s!==null)return{minWidth:s};let n=C[r];if(n)return{minWidth:n};let i=o[r];if(i!==void 0)return{minWidth:i}}if(t.startsWith("min-h-")){let r=t.substring(6),s=W(r);if(s!==null)return{minHeight:s};let n=C[r];if(n)return{minHeight:n};let i=o[r];if(i!==void 0)return{minHeight:i}}if(t.startsWith("max-w-")){let r=t.substring(6),s=W(r);if(s!==null)return{maxWidth:s};let n=C[r];if(n)return{maxWidth:n};let i=o[r];if(i!==void 0)return{maxWidth:i}}if(t.startsWith("max-h-")){let r=t.substring(6),s=W(r);if(s!==null)return{maxHeight:s};let n=C[r];if(n)return{maxHeight:n};let i=o[r];if(i!==void 0)return{maxHeight:i}}return null}var _={0:0,.5:2,1:4,1.5:6,2:8,2.5:10,3:12,3.5:14,4:16,5:20,6:24,7:28,8:32,9:36,10:40,11:44,12:48,14:56,16:64,20:80,24:96,28:112,32:128,36:144,40:160,44:176,48:192,52:208,56:224,60:240,64:256,72:288,80:320,96:384};function L(t){let e=t.match(/^\[(-?\d+(?:\.\d+)?)(?:px)?\]$/);return e?parseFloat(e[1]):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary spacing value: ${t}. Only px values are supported (e.g., [16px], [16], [4.5px], [4.5]).`),null)}function F(t,e){let o=e?h(h({},_),e):_,r=t.match(/^m([xytrblse]?)-auto$/);if(r){let a=r[1];return z(a,"auto")}let s=t.match(/^(-?)m([xytrblse]?)-(.+)$/);if(s){let[,a,f,g]=s,d=a==="-",b=L(g);if(b!==null){let y=d?-b:b;return z(f,y)}let p=o[g];if(p!==void 0){let y=d?-p:p;return z(f,y)}}let n=t.match(/^p([xytrblse]?)-(.+)$/);if(n){let[,a,f]=n,g=L(f);if(g!==null)return ut(a,g);let d=o[f];if(d!==void 0)return ut(a,d)}let i=t.match(/^gap-(.+)$/);if(i){let a=i[1],f=L(a);if(f!==null)return{gap:f};let g=o[a];if(g!==void 0)return{gap:g}}return null}function z(t,e){switch(t){case"":return{margin:e};case"x":return{marginHorizontal:e};case"y":return{marginVertical:e};case"t":return{marginTop:e};case"r":return{marginRight:e};case"b":return{marginBottom:e};case"l":return{marginLeft:e};case"s":return{marginStart:e};case"e":return{marginEnd:e};default:return{}}}function ut(t,e){switch(t){case"":return{padding:e};case"x":return{paddingHorizontal:e};case"y":return{paddingVertical:e};case"t":return{paddingTop:e};case"r":return{paddingRight:e};case"b":return{paddingBottom:e};case"l":return{paddingLeft:e};case"s":return{paddingStart:e};case"e":return{paddingEnd:e};default:return{}}}var K={0:0,50:.5,75:.75,90:.9,95:.95,100:1,105:1.05,110:1.1,125:1.25,150:1.5,200:2},$={0:0,1:1,2:2,3:3,6:6,12:12,45:45,90:90,180:180},pt={0:0,1:1,2:2,3:3,6:6,12:12},Ut={0:0,100:100,200:200,300:300,400:400,500:500,600:600,700:700,800:800,900:900,1e3:1e3};function B(t){let e=t.match(/^\[(-?\d+(?:\.\d+)?)\]$/);return e?parseFloat(e[1]):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Invalid arbitrary scale value: ${t}. Only numbers are supported (e.g., [1.5], [0.75]).`),null)}function E(t){let e=t.match(/^\[(-?\d+(?:\.\d+)?)deg\]$/);return e?`${e[1]}deg`:(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Invalid arbitrary rotation value: ${t}. Only deg unit is supported (e.g., [45deg], [-15deg]).`),null)}function gt(t){let e=t.match(/^\[(-?\d+)(?:px)?\]$/);if(e)return parseInt(e[1],10);let o=t.match(/^\[(-?\d+(?:\.\d+)?)%\]$/);return o?`${o[1]}%`:(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary translation unit: ${t}. Only px and % are supported.`),null)}function Gt(t){let e=t.match(/^\[(-?\d+)\]$/);return e?parseInt(e[1],10):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Invalid arbitrary perspective value: ${t}. Only integers are supported (e.g., [1500]).`),null)}function H(t,e){let o=e?h(h({},_),e):_;if(t.startsWith("origin-"))return process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] transform-origin is not supported in React Native. Class "${t}" will be ignored.`),null;if(t.startsWith("scale-")){let r=t.substring(6),s=B(r);if(s!==null)return{transform:[{scale:s}]};let n=K[r];if(n!==void 0)return{transform:[{scale:n}]}}if(t.startsWith("scale-x-")){let r=t.substring(8),s=B(r);if(s!==null)return{transform:[{scaleX:s}]};let n=K[r];if(n!==void 0)return{transform:[{scaleX:n}]}}if(t.startsWith("scale-y-")){let r=t.substring(8),s=B(r);if(s!==null)return{transform:[{scaleY:s}]};let n=K[r];if(n!==void 0)return{transform:[{scaleY:n}]}}if(t.startsWith("rotate-")||t.startsWith("-rotate-")){let r=t.startsWith("-"),s=r?t.substring(8):t.substring(7),n=E(s);if(n!==null)return{transform:[{rotate:r?`-${n}`:n}]};let i=$[s];if(i!==void 0)return{transform:[{rotate:`${r?-i:i}deg`}]}}if(t.startsWith("rotate-x-")||t.startsWith("-rotate-x-")){let r=t.startsWith("-"),s=r?t.substring(10):t.substring(9),n=E(s);if(n!==null)return{transform:[{rotateX:r?`-${n}`:n}]};let i=$[s];if(i!==void 0)return{transform:[{rotateX:`${r?-i:i}deg`}]}}if(t.startsWith("rotate-y-")||t.startsWith("-rotate-y-")){let r=t.startsWith("-"),s=r?t.substring(10):t.substring(9),n=E(s);if(n!==null)return{transform:[{rotateY:r?`-${n}`:n}]};let i=$[s];if(i!==void 0)return{transform:[{rotateY:`${r?-i:i}deg`}]}}if(t.startsWith("rotate-z-")||t.startsWith("-rotate-z-")){let r=t.startsWith("-"),s=r?t.substring(10):t.substring(9),n=E(s);if(n!==null)return{transform:[{rotateZ:r?`-${n}`:n}]};let i=$[s];if(i!==void 0)return{transform:[{rotateZ:`${r?-i:i}deg`}]}}if(t.startsWith("translate-x-")||t.startsWith("-translate-x-")){let r=t.startsWith("-"),s=r?t.substring(13):t.substring(12),n=gt(s);if(n!==null)return{transform:[{translateX:typeof n=="number"?r?-n:n:r?`-${n}`:n}]};let i=o[s];if(i!==void 0)return{transform:[{translateX:r?-i:i}]}}if(t.startsWith("translate-y-")||t.startsWith("-translate-y-")){let r=t.startsWith("-"),s=r?t.substring(13):t.substring(12),n=gt(s);if(n!==null)return{transform:[{translateY:typeof n=="number"?r?-n:n:r?`-${n}`:n}]};let i=o[s];if(i!==void 0)return{transform:[{translateY:r?-i:i}]}}if(t.startsWith("skew-x-")||t.startsWith("-skew-x-")){let r=t.startsWith("-"),s=r?t.substring(8):t.substring(7),n=E(s);if(n!==null)return{transform:[{skewX:r?`-${n}`:n}]};let i=pt[s];if(i!==void 0)return{transform:[{skewX:`${r?-i:i}deg`}]}}if(t.startsWith("skew-y-")||t.startsWith("-skew-y-")){let r=t.startsWith("-"),s=r?t.substring(8):t.substring(7),n=E(s);if(n!==null)return{transform:[{skewY:r?`-${n}`:n}]};let i=pt[s];if(i!==void 0)return{transform:[{skewY:`${r?-i:i}deg`}]}}if(t.startsWith("perspective-")){let r=t.substring(12),s=Gt(r);if(s!==null)return{transform:[{perspective:s}]};let n=Ut[r];if(n!==void 0)return{transform:[{perspective:n}]}}return null}var Xt={xs:12,sm:14,base:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":60,"7xl":72,"8xl":96,"9xl":128};var yt={"font-sans":{fontFamily:"System"},"font-serif":{fontFamily:"serif"},"font-mono":{fontFamily:"Courier"}},Yt={"font-thin":{fontWeight:"100"},"font-extralight":{fontWeight:"200"},"font-light":{fontWeight:"300"},"font-normal":{fontWeight:"400"},"font-medium":{fontWeight:"500"},"font-semibold":{fontWeight:"600"},"font-bold":{fontWeight:"700"},"font-extrabold":{fontWeight:"800"},"font-black":{fontWeight:"900"}},Zt={italic:{fontStyle:"italic"},"not-italic":{fontStyle:"normal"}},qt={"text-left":{textAlign:"left"},"text-center":{textAlign:"center"},"text-right":{textAlign:"right"},"text-justify":{textAlign:"justify"}},Jt={underline:{textDecorationLine:"underline"},"line-through":{textDecorationLine:"line-through"},"no-underline":{textDecorationLine:"none"}},Qt={uppercase:{textTransform:"uppercase"},lowercase:{textTransform:"lowercase"},capitalize:{textTransform:"capitalize"},"normal-case":{textTransform:"none"}},te={3:12,4:16,5:20,6:24,7:28,8:32,9:36,10:40},ee={"leading-none":{lineHeight:16},"leading-tight":{lineHeight:20},"leading-snug":{lineHeight:22},"leading-normal":{lineHeight:24},"leading-relaxed":{lineHeight:28},"leading-loose":{lineHeight:32}},re={"tracking-tighter":{letterSpacing:-.8},"tracking-tight":{letterSpacing:-.4},"tracking-normal":{letterSpacing:0},"tracking-wide":{letterSpacing:.4},"tracking-wider":{letterSpacing:.8},"tracking-widest":{letterSpacing:1.6}};function ne(t){let e=t.match(/^\[(-?\d+(?:\.\d+)?|-?\.\d+)(?:px)?\]$/);return e?parseFloat(e[1]):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary font size value: ${t}. Only px values are supported (e.g., [18px], [13.5px], [.5]).`),null)}function ie(t){let e=t.match(/^\[(-?\d+(?:\.\d+)?|-?\.\d+)(?:px)?\]$/);return e?parseFloat(e[1]):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary line height value: ${t}. Only px values are supported (e.g., [24px], [21.5px], [.5]).`),null)}function oe(t){let e=t.match(/^\[(-?\d+(?:\.\d+)?|-?\.\d+)(?:px)?\]$/);return e?parseFloat(e[1]):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary letter spacing value: ${t}. Only px values are supported (e.g., [0.5px], [0.3], [.5], [-0.4]).`),null)}function U(t,e,o){var s,n,i,a,f,g,d,b;let r=e?h(h({},yt),Object.fromEntries(Object.entries(e).map(([p,y])=>[`font-${p}`,{fontFamily:y}]))):yt;if(t.startsWith("text-")){let p=t.substring(5),y=ne(p);if(y!==null)return{fontSize:y};if((o==null?void 0:o[p])!==void 0)return{fontSize:o[p]};let R=Xt[p];if(R!==void 0)return{fontSize:R}}if(t.startsWith("leading-")){let p=t.substring(8),y=ie(p);if(y!==null)return{lineHeight:y};let R=te[p];if(R!==void 0)return{lineHeight:R}}if(t.startsWith("tracking-")){let p=t.substring(9),y=oe(p);if(y!==null)return{letterSpacing:y}}return(b=(d=(g=(f=(a=(i=(n=(s=r[t])!=null?s:Yt[t])!=null?n:Zt[t])!=null?i:qt[t])!=null?a:Jt[t])!=null?f:Qt[t])!=null?g:ee[t])!=null?d:re[t])!=null?b:null}var se=["active","hover","focus","disabled","placeholder"],ae=["ios","android","web"],fe=["dark","light"],le=["scheme"],ce=["rtl","ltr"],ke=[...se,...ae,...fe,...le,...ce];function N(t,e){let o=t.split(/\s+/).filter(Boolean),r={};for(let s of o){let n=de(s,e);J(r,n)}return r}function de(t,e){let o=[r=>F(r,e==null?void 0:e.spacing),r=>j(r,e==null?void 0:e.colors),r=>M(r,e==null?void 0:e.colors),r=>P(r,e==null?void 0:e.spacing),r=>U(r,e==null?void 0:e.fontFamily,e==null?void 0:e.fontSize),r=>k(r,e==null?void 0:e.spacing),V,v,r=>H(r,e==null?void 0:e.spacing)];for(let r of o){let s=r(t);if(s!==null)return s}return process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unknown class: "${t}"`),{}}var bt=["active","focus","disabled"];function ht(t){return bt.some(e=>t.includes(`${e}:`))}function mt(t){let e=t.split(/\s+/).filter(Boolean),o=[],r=new Map;for(let s of e){let n=!1;for(let i of bt){let a=`${i}:`;if(s.startsWith(a)){let f=s.slice(a.length);r.has(i)||r.set(i,[]);let g=r.get(i);g&&g.push(f),n=!0;break}}n||o.push(s)}return{base:o,modifiers:r}}var m={colors:{},fontFamily:{},fontSize:{},spacing:{}},O=new Map;function Cr(t){var e,o,r,s,n,i,a,f,g;if((o=(e=t.theme)==null?void 0:e.extend)!=null&&o.colors?m.colors=T((r=t.theme)==null?void 0:r.extend.colors):m.colors={},(n=(s=t.theme)==null?void 0:s.extend)!=null&&n.fontFamily){let d={};for(let[b,p]of Object.entries(t.theme.extend.fontFamily))Array.isArray(p)?d[b]=p[0]:d[b]=p;m.fontFamily=d}else m.fontFamily={};if((a=(i=t.theme)==null?void 0:i.extend)!=null&&a.fontSize){let d={};for(let[b,p]of Object.entries(t.theme.extend.fontSize))if(typeof p=="number")d[b]=p;else if(typeof p=="string"){let y=parseFloat(p.replace(/px$/,""));isNaN(y)||(d[b]=y)}m.fontSize=d}else m.fontSize={};if((g=(f=t.theme)==null?void 0:f.extend)!=null&&g.spacing){let d={};for(let[b,p]of Object.entries(t.theme.extend.spacing))if(typeof p=="number")d[b]=p;else if(typeof p=="string"){let y;p.endsWith("rem")?y=parseFloat(p.replace(/rem$/,""))*16:y=parseFloat(p.replace(/px$/,"")),isNaN(y)||(d[b]=y)}m.spacing=d}else m.spacing={};O.clear()}function Wr(){return m}function Er(){var t;return Object.keys((t=m.colors)!=null?t:{}).length>0?m.colors:void 0}function Nr(){O.clear()}function Tr(){return{size:O.size,keys:Array.from(O.keys())}}function xt(t){let e=O.get(t);if(e)return e;if(!ht(t)){let f={style:N(t,m)};return O.set(t,f),f}let{base:o,modifiers:r}=mt(t),s=o.join(" "),i={style:s?N(s,m):{}};if(r.has("active")){let a=r.get("active");if(a&&a.length>0){let f=a.join(" ");i.activeStyle=N(f,m)}}if(r.has("focus")){let a=r.get("focus");if(a&&a.length>0){let f=a.join(" ");i.focusStyle=N(f,m)}}if(r.has("disabled")){let a=r.get("disabled");if(a&&a.length>0){let f=a.join(" ");i.disabledStyle=N(f,m)}}return O.set(t,i),i}function Ar(t,...e){let r=t.reduce((s,n,i)=>{let a=e[i],f=a!=null&&a!==!1?String(a):"";return s+n+f},"").trim().replace(/\s+/g," ");return r?xt(r):{style:{}}}function _r(t){let e=t.trim().replace(/\s+/g," ");if(e)return xt(e)}export{Nr as clearCache,Tr as getCacheStats,Er as getCustomColors,Wr as getCustomTheme,Cr as setConfig,Ar as tw,_r as twStyle};
1
+ var Wt=Object.defineProperty,Et=Object.defineProperties;var Tt=Object.getOwnPropertyDescriptors;var tt=Object.getOwnPropertySymbols;var Nt=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable;var et=(t,e,i)=>e in t?Wt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,x=(t,e)=>{for(var i in e||(e={}))Nt.call(e,i)&&et(t,i,e[i]);if(tt)for(var i of tt(e))At.call(e,i)&&et(t,i,e[i]);return t},rt=(t,e)=>Et(t,Tt(e));function nt(t){return Object.keys(t)[0]}function _t(t,e){let i=[...t];for(let r of e){let s=nt(r),n=i.findIndex(o=>nt(o)===s);n!==-1?i[n]=r:i.push(r)}return i}function it(t,e){for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let r=e[i];if(i==="transform"&&Array.isArray(r)){let s=t[i];Array.isArray(s)?t.transform=_t(s,r):t[i]=r}else t[i]=r}return t}var ot={"aspect-auto":void 0,"aspect-square":1,"aspect-video":1.7777777777777777};function $t(t){let e=t.match(/^\[(\d+)\/(\d+)\]$/);if(e){let i=Number.parseInt(e[1],10),r=Number.parseInt(e[2],10);return r===0?(process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Invalid aspect ratio: ${t}. Denominator cannot be zero.`),null):i/r}return null}function j(t){if(!t.startsWith("aspect-"))return null;if(t in ot){let r=ot[t];return r===void 0?{aspectRatio:void 0}:{aspectRatio:r}}let e=t.substring(7),i=$t(e);return i!==null?{aspectRatio:i}:null}var st={red:{50:"#fef2f2",100:"#ffe2e2",200:"#ffc9c9",300:"#ffa2a2",400:"#ff6467",500:"#fb2c36",600:"#e7000b",700:"#c10007",800:"#9f0712",900:"#82181a",950:"#460809"},orange:{50:"#fff7ed",100:"#ffedd4",200:"#ffd6a7",300:"#ffb86a",400:"#ff8904",500:"#ff6900",600:"#f54900",700:"#ca3500",800:"#9f2d00",900:"#7e2a0c",950:"#441306"},amber:{50:"#fffbeb",100:"#fef3c6",200:"#fee685",300:"#ffd230",400:"#ffb900",500:"#fe9a00",600:"#e17100",700:"#bb4d00",800:"#973c00",900:"#7b3306",950:"#461901"},yellow:{50:"#fefce8",100:"#fef9c2",200:"#fff085",300:"#ffdf20",400:"#fdc700",500:"#f0b100",600:"#d08700",700:"#a65f00",800:"#894b00",900:"#733e0a",950:"#432004"},lime:{50:"#f7fee7",100:"#ecfcca",200:"#d8f999",300:"#bbf451",400:"#9ae600",500:"#7ccf00",600:"#5ea500",700:"#497d00",800:"#3c6300",900:"#35530e",950:"#192e03"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#b9f8cf",300:"#7bf1a8",400:"#05df72",500:"#00c950",600:"#00a63e",700:"#008236",800:"#016630",900:"#0d542b",950:"#032e15"},emerald:{50:"#ecfdf5",100:"#d0fae5",200:"#a4f4cf",300:"#5ee9b5",400:"#00d492",500:"#00bc7d",600:"#009966",700:"#007a55",800:"#006045",900:"#004f3b",950:"#002c22"},teal:{50:"#f0fdfa",100:"#cbfbf1",200:"#96f7e4",300:"#46ecd5",400:"#00d5be",500:"#00bba7",600:"#009689",700:"#00786f",800:"#005f5a",900:"#0b4f4a",950:"#022f2e"},cyan:{50:"#ecfeff",100:"#cefafe",200:"#a2f4fd",300:"#53eafd",400:"#00d3f2",500:"#00b8db",600:"#0092b8",700:"#007595",800:"#005f78",900:"#104e64",950:"#053345"},sky:{50:"#f0f9ff",100:"#dff2fe",200:"#b8e6fe",300:"#74d4ff",400:"#00bcff",500:"#00a6f4",600:"#0084d1",700:"#0069a8",800:"#00598a",900:"#024a70",950:"#052f4a"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bedbff",300:"#8ec5ff",400:"#51a2ff",500:"#2b7fff",600:"#155dfc",700:"#1447e6",800:"#193cb8",900:"#1c398e",950:"#162456"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c6d2ff",300:"#a3b3ff",400:"#7c86ff",500:"#615fff",600:"#4f39f6",700:"#432dd7",800:"#372aac",900:"#312c85",950:"#1e1a4d"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6ff",300:"#c4b4ff",400:"#a684ff",500:"#8e51ff",600:"#7f22fe",700:"#7008e7",800:"#5d0ec0",900:"#4d179a",950:"#2f0d68"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d4ff",300:"#dab2ff",400:"#c27aff",500:"#ad46ff",600:"#9810fa",700:"#8200db",800:"#6e11b0",900:"#59168b",950:"#3c0366"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f6cfff",300:"#f4a8ff",400:"#ed6aff",500:"#e12afb",600:"#c800de",700:"#a800b7",800:"#8a0194",900:"#721378",950:"#4b004f"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fccee8",300:"#fda5d5",400:"#fb64b6",500:"#f6339a",600:"#e60076",700:"#c6005c",800:"#a3004c",900:"#861043",950:"#510424"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#ffccd3",300:"#ffa1ad",400:"#ff637e",500:"#ff2056",600:"#ec003f",700:"#c70036",800:"#a50036",900:"#8b0836",950:"#4d0218"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cad5e2",400:"#90a1b9",500:"#62748e",600:"#45556c",700:"#314158",800:"#1d293d",900:"#0f172b",950:"#020618"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5dc",400:"#99a1af",500:"#6a7282",600:"#4a5565",700:"#364153",800:"#1e2939",900:"#101828",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#9f9fa9",500:"#71717b",600:"#52525c",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a1a1a1",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a6a09b",500:"#79716b",600:"#57534d",700:"#44403b",800:"#292524",900:"#1c1917",950:"#0c0a09"}};function A(t,e=""){let i={};for(let[r,s]of Object.entries(t)){let n=r==="DEFAULT"&&e?e:e?`${e}-${r}`:r;typeof s=="string"?i[n]=s:typeof s=="object"&&s!==null&&Object.assign(i,A(s,n))}return i}var It=rt(x({},A(st)),{white:"#FFFFFF",black:"#000000",transparent:"transparent"});function at(t,e){if(t==="transparent")return"transparent";let i=t.replace(/^#/,""),r=i.length===3?i.split("").map(o=>o+o).join(""):i,n=Math.round(e/100*255).toString(16).padStart(2,"0").toUpperCase();return`#${r.toUpperCase()}${n}`}function ft(t){let e=t.match(/^\[#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})\]$/);if(e){let i=e[1];return i.length===3?`#${i.split("").map(s=>s+s).join("")}`:`#${i}`}return t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary color value: ${t}. Only hex colors are supported (e.g., [#ff0000], [#f00], or [#ff0000aa]).`),null}function M(t,e){let i=n=>{var o;return(o=e==null?void 0:e[n])!=null?o:It[n]},r=n=>{var l;let o=n.match(/^(.+)\/(\d+)$/);if(o){let g=o[1],u=Number.parseInt(o[2],10);if(u<0||u>100)return process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Invalid opacity value: ${u}. Opacity must be between 0 and 100.`),null;let h=ft(g);if(h!==null)return at(h,u);let p=i(g);return p?at(p,u):null}let a=ft(n);return a!==null?a:(l=i(n))!=null?l:null};if(t.startsWith("bg-")){let n=t.substring(3);if(n.startsWith("[")&&!n.startsWith("[#"))return null;let o=r(n);if(o)return{backgroundColor:o}}if(t.startsWith("text-")){let n=t.substring(5);if(n.startsWith("[")&&!n.startsWith("[#"))return null;let o=r(n);if(o)return{color:o}}if(t.startsWith("border-")&&!t.match(/^border-[0-9]/)){let n=t.substring(7);if(n.startsWith("[")&&!n.startsWith("[#"))return null;let o=r(n);if(o)return{borderColor:o}}let s=t.match(/^border-([trblxy])-(.+)$/);if(s){let n=s[1],o=s[2];if(o.startsWith("[")&&!o.startsWith("[#"))return null;let a=r(o);if(a)return n==="x"?{borderLeftColor:a,borderRightColor:a}:n==="y"?{borderTopColor:a,borderBottomColor:a}:{[{t:"borderTopColor",r:"borderRightColor",b:"borderBottomColor",l:"borderLeftColor"}[n]]:a}}return null}var lt={"":1,0:0,2:2,4:4,8:8},_={none:0,sm:2,"":4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,full:9999},ct={t:"borderTopWidth",r:"borderRightWidth",b:"borderBottomWidth",l:"borderLeftWidth",s:"borderStartWidth",e:"borderEndWidth"},dt={tl:"borderTopLeftRadius",tr:"borderTopRightRadius",bl:"borderBottomLeftRadius",br:"borderBottomRightRadius"},ut={ss:"borderTopStartRadius",se:"borderTopEndRadius",es:"borderBottomStartRadius",ee:"borderBottomEndRadius"},vt={t:["borderTopLeftRadius","borderTopRightRadius"],r:["borderTopRightRadius","borderBottomRightRadius"],b:["borderBottomLeftRadius","borderBottomRightRadius"],l:["borderTopLeftRadius","borderBottomLeftRadius"],s:["borderTopStartRadius","borderBottomStartRadius"],e:["borderTopEndRadius","borderBottomEndRadius"]};function pt(t){let e=t.match(/^\[(\d+)(?:px)?\]$/);return e?parseInt(e[1],10):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary border width value: ${t}. Only px values are supported (e.g., [8px] or [8]).`),null)}function I(t){let e=t.match(/^\[(\d+)(?:px)?\]$/);return e?parseInt(e[1],10):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary border radius value: ${t}. Only px values are supported (e.g., [12px] or [12]).`),null)}function V(t,e){return t==="border-solid"?{borderStyle:"solid"}:t==="border-dotted"?{borderStyle:"dotted"}:t==="border-dashed"?{borderStyle:"dashed"}:t.startsWith("border-")?jt(t,e):t==="border"?{borderWidth:1}:t.startsWith("rounded")?Vt(t):null}function jt(t,e){let i=t.match(/^border-([trblse])(?:-(.+))?$/);if(i){let n=i[1],o=i[2]||"";if(o&&n!=="s"&&n!=="e"&&M(t,e)!==null)return null;if(o.startsWith("[")){let l=pt(o);return l!==null?{[ct[n]]:l}:null}let a=lt[o];return a!==void 0?{[ct[n]]:a}:null}let r=t.match(/^border-(\d+)$/);if(r){let n=lt[r[1]];if(n!==void 0)return{borderWidth:n}}let s=t.match(/^border-(\[.+\])$/);if(s){let n=pt(s[1]);if(n!==null)return{borderWidth:n}}return null}function Vt(t){let e=t.substring(7);if(e==="")return{borderRadius:_[""]};if(!e.startsWith("-"))return null;let i=e.substring(1);if(i==="")return null;let r=i.match(/^(tl|tr|bl|br)(?:-(.+))?$/);if(r){let a=r[1],l=r[2]||"";if(l.startsWith("[")){let u=I(l);return u!==null?{[dt[a]]:u}:null}let g=_[l];return g!==void 0?{[dt[a]]:g}:null}let s=i.match(/^(ss|se|es|ee)(?:-(.+))?$/);if(s){let a=s[1],l=s[2]||"";if(l.startsWith("[")){let u=I(l);return u!==null?{[ut[a]]:u}:null}let g=_[l];return g!==void 0?{[ut[a]]:g}:null}let n=i.match(/^([trblse])(?:-(.+))?$/);if(n){let a=n[1],l=n[2]||"",g;if(l.startsWith("[")){let u=I(l);if(u!==null)g=u;else return null}else g=_[l];if(g!==void 0){let u={};return vt[a].forEach(h=>u[h]=g),u}return null}if(i.startsWith("[")){let a=I(i);return a!==null?{borderRadius:a}:null}let o=_[i];return o!==void 0?{borderRadius:o}:null}function R(t){let e=t.match(/^\[(-?\d+)(?:px)?\]$/);if(e)return parseInt(e[1],10);let i=t.match(/^\[(-?\d+(?:\.\d+)?)%\]$/);return i?`${i[1]}%`:(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary inset unit: ${t}. Only px and % are supported.`),null)}function Pt(t){let e=t.match(/^\[(-?\d+)\]$/);return e?parseInt(e[1],10):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Invalid arbitrary z-index: ${t}. Only integers are supported.`),null)}function gt(t){let e=t.match(/^\[(\d+(?:\.\d+)?|\.\d+)\]$/);return e?parseFloat(e[1]):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Invalid arbitrary grow/shrink value: ${t}. Only non-negative numbers are supported (e.g., [1.5], [2], [0.5], [.5]).`),null)}var Dt={flex:{display:"flex"},hidden:{display:"none"}},kt={"flex-row":{flexDirection:"row"},"flex-row-reverse":{flexDirection:"row-reverse"},"flex-col":{flexDirection:"column"},"flex-col-reverse":{flexDirection:"column-reverse"}},Lt={"flex-wrap":{flexWrap:"wrap"},"flex-wrap-reverse":{flexWrap:"wrap-reverse"},"flex-nowrap":{flexWrap:"nowrap"}},Ft={"flex-1":{flex:1},"flex-auto":{flex:1},"flex-none":{flex:0}},zt={grow:{flexGrow:1},"grow-0":{flexGrow:0},shrink:{flexShrink:1},"shrink-0":{flexShrink:0},"flex-grow":{flexGrow:1},"flex-grow-0":{flexGrow:0},"flex-shrink":{flexShrink:1},"flex-shrink-0":{flexShrink:0}},Kt={"justify-start":{justifyContent:"flex-start"},"justify-end":{justifyContent:"flex-end"},"justify-center":{justifyContent:"center"},"justify-between":{justifyContent:"space-between"},"justify-around":{justifyContent:"space-around"},"justify-evenly":{justifyContent:"space-evenly"}},Bt={"items-start":{alignItems:"flex-start"},"items-end":{alignItems:"flex-end"},"items-center":{alignItems:"center"},"items-baseline":{alignItems:"baseline"},"items-stretch":{alignItems:"stretch"}},Ht={"self-auto":{alignSelf:"auto"},"self-start":{alignSelf:"flex-start"},"self-end":{alignSelf:"flex-end"},"self-center":{alignSelf:"center"},"self-stretch":{alignSelf:"stretch"},"self-baseline":{alignSelf:"baseline"}},Ut={"content-start":{alignContent:"flex-start"},"content-end":{alignContent:"flex-end"},"content-center":{alignContent:"center"},"content-between":{alignContent:"space-between"},"content-around":{alignContent:"space-around"},"content-stretch":{alignContent:"stretch"}},Gt={absolute:{position:"absolute"},relative:{position:"relative"}},Xt={"overflow-hidden":{overflow:"hidden"},"overflow-visible":{overflow:"visible"},"overflow-scroll":{overflow:"scroll"}},Yt={"opacity-0":{opacity:0},"opacity-5":{opacity:.05},"opacity-10":{opacity:.1},"opacity-15":{opacity:.15},"opacity-20":{opacity:.2},"opacity-25":{opacity:.25},"opacity-30":{opacity:.3},"opacity-35":{opacity:.35},"opacity-40":{opacity:.4},"opacity-45":{opacity:.45},"opacity-50":{opacity:.5},"opacity-55":{opacity:.55},"opacity-60":{opacity:.6},"opacity-65":{opacity:.65},"opacity-70":{opacity:.7},"opacity-75":{opacity:.75},"opacity-80":{opacity:.8},"opacity-85":{opacity:.85},"opacity-90":{opacity:.9},"opacity-95":{opacity:.95},"opacity-100":{opacity:1}},Zt={0:0,10:10,20:20,30:30,40:40,50:50,auto:0},yt={0:0,.5:2,1:4,1.5:6,2:8,2.5:10,3:12,3.5:14,4:16,5:20,6:24,8:32,10:40,12:48,16:64,20:80,24:96};function P(t,e){var g,u,h,p,b,w,X,Y,Z,q,J,Q;let i=e?x(x({},yt),e):yt;if(t.startsWith("z-")){let y=t.substring(2),c=Pt(y);if(c!==null)return{zIndex:c};let f=Zt[y];if(f!==void 0)return{zIndex:f}}let r=t.match(/^(-?)top-(.+)$/);if(r){let[,y,c]=r,f=y==="-";if(c==="auto")return{};let d=R(c);if(d!==null)return typeof d=="number"?{top:f?-d:d}:f&&d.endsWith("%")?{top:`${-parseFloat(d)}%`}:{top:d};let m=i[c];if(m!==void 0)return{top:f?-m:m}}let s=t.match(/^(-?)right-(.+)$/);if(s){let[,y,c]=s,f=y==="-";if(c==="auto")return{};let d=R(c);if(d!==null)return typeof d=="number"?{right:f?-d:d}:f&&d.endsWith("%")?{right:`${-parseFloat(d)}%`}:{right:d};let m=i[c];if(m!==void 0)return{right:f?-m:m}}let n=t.match(/^(-?)bottom-(.+)$/);if(n){let[,y,c]=n,f=y==="-";if(c==="auto")return{};let d=R(c);if(d!==null)return typeof d=="number"?{bottom:f?-d:d}:f&&d.endsWith("%")?{bottom:`${-parseFloat(d)}%`}:{bottom:d};let m=i[c];if(m!==void 0)return{bottom:f?-m:m}}let o=t.match(/^(-?)left-(.+)$/);if(o){let[,y,c]=o,f=y==="-";if(c==="auto")return{};let d=R(c);if(d!==null)return typeof d=="number"?{left:f?-d:d}:f&&d.endsWith("%")?{left:`${-parseFloat(d)}%`}:{left:d};let m=i[c];if(m!==void 0)return{left:f?-m:m}}let a=t.match(/^(-?)start-(.+)$/);if(a){let[,y,c]=a,f=y==="-";if(c==="auto")return{};let d=R(c);if(d!==null)return typeof d=="number"?{start:f?-d:d}:f&&d.endsWith("%")?{start:`${-parseFloat(d)}%`}:{start:d};let m=i[c];if(m!==void 0)return{start:f?-m:m}}let l=t.match(/^(-?)end-(.+)$/);if(l){let[,y,c]=l,f=y==="-";if(c==="auto")return{};let d=R(c);if(d!==null)return typeof d=="number"?{end:f?-d:d}:f&&d.endsWith("%")?{end:`${-parseFloat(d)}%`}:{end:d};let m=i[c];if(m!==void 0)return{end:f?-m:m}}if(t.startsWith("inset-x-")){let y=t.substring(8),c=R(y);if(c!==null)return{left:c,right:c};let f=i[y];if(f!==void 0)return{left:f,right:f}}if(t.startsWith("inset-y-")){let y=t.substring(8),c=R(y);if(c!==null)return{top:c,bottom:c};let f=i[y];if(f!==void 0)return{top:f,bottom:f}}if(t.startsWith("inset-s-")){let y=t.substring(8),c=R(y);if(c!==null)return{start:c};let f=i[y];if(f!==void 0)return{start:f}}if(t.startsWith("inset-e-")){let y=t.substring(8),c=R(y);if(c!==null)return{end:c};let f=i[y];if(f!==void 0)return{end:f}}if(t.startsWith("inset-")){let y=t.substring(6),c=R(y);if(c!==null)return{top:c,right:c,bottom:c,left:c};let f=i[y];if(f!==void 0)return{top:f,right:f,bottom:f,left:f}}if(t.startsWith("grow-")||t.startsWith("flex-grow-")){let y=t.startsWith("flex-grow-")?"flex-grow-":"grow-",c=t.substring(y.length),f=gt(c);if(f!==null)return{flexGrow:f}}if(t.startsWith("shrink-")||t.startsWith("flex-shrink-")){let y=t.startsWith("flex-shrink-")?"flex-shrink-":"shrink-",c=t.substring(y.length),f=gt(c);if(f!==null)return{flexShrink:f}}return(Q=(J=(q=(Z=(Y=(X=(w=(b=(p=(h=(u=(g=Dt[t])!=null?g:kt[t])!=null?u:Lt[t])!=null?h:Ft[t])!=null?p:zt[t])!=null?b:Kt[t])!=null?w:Bt[t])!=null?X:Ht[t])!=null?Y:Ut[t])!=null?Z:Gt[t])!=null?q:Xt[t])!=null?J:Yt[t])!=null?Q:null}var bt={"shadow-sm":{shadowColor:"#000000",shadowOffset:{width:0,height:1},shadowOpacity:.05,shadowRadius:1,elevation:1},shadow:{shadowColor:"#000000",shadowOffset:{width:0,height:1},shadowOpacity:.1,shadowRadius:2,elevation:2},"shadow-md":{shadowColor:"#000000",shadowOffset:{width:0,height:3},shadowOpacity:.15,shadowRadius:4,elevation:4},"shadow-lg":{shadowColor:"#000000",shadowOffset:{width:0,height:6},shadowOpacity:.2,shadowRadius:8,elevation:8},"shadow-xl":{shadowColor:"#000000",shadowOffset:{width:0,height:10},shadowOpacity:.25,shadowRadius:12,elevation:12},"shadow-2xl":{shadowColor:"#000000",shadowOffset:{width:0,height:20},shadowOpacity:.3,shadowRadius:24,elevation:16},"shadow-none":{shadowColor:"transparent",shadowOffset:{width:0,height:0},shadowOpacity:0,shadowRadius:0,elevation:0}};function D(t){return t in bt?bt[t]:null}var k="{{RUNTIME:dimensions.";var ht={0:0,.5:2,1:4,1.5:6,2:8,2.5:10,3:12,3.5:14,4:16,5:20,6:24,7:28,8:32,9:36,10:40,11:44,12:48,14:56,16:64,20:80,24:96,28:112,32:128,36:144,40:160,44:176,48:192,52:208,56:224,60:240,64:256,72:288,80:320,96:384},C={full:"100%","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%"};function W(t){let e=t.match(/^\[(\d+)(?:px)?\]$/);if(e)return parseInt(e[1],10);let i=t.match(/^\[(\d+(?:\.\d+)?)%\]$/);return i?`${i[1]}%`:(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary size unit: ${t}. Only px and % are supported.`),null)}function L(t,e){let i=e?x(x({},ht),e):ht;if(t.startsWith("w-")){let r=t.substring(2);if(r==="screen")return{width:`${k}width}}`};let s=W(r);if(s!==null)return{width:s};let n=C[r];if(n)return{width:n};let o=i[r];if(o!==void 0)return{width:o};if(r==="auto")return{width:"auto"}}if(t.startsWith("h-")){let r=t.substring(2);if(r==="screen")return{height:`${k}height}}`};let s=W(r);if(s!==null)return{height:s};let n=C[r];if(n)return{height:n};let o=i[r];if(o!==void 0)return{height:o};if(r==="auto")return{height:"auto"}}if(t.startsWith("min-w-")){let r=t.substring(6),s=W(r);if(s!==null)return{minWidth:s};let n=C[r];if(n)return{minWidth:n};let o=i[r];if(o!==void 0)return{minWidth:o}}if(t.startsWith("min-h-")){let r=t.substring(6),s=W(r);if(s!==null)return{minHeight:s};let n=C[r];if(n)return{minHeight:n};let o=i[r];if(o!==void 0)return{minHeight:o}}if(t.startsWith("max-w-")){let r=t.substring(6),s=W(r);if(s!==null)return{maxWidth:s};let n=C[r];if(n)return{maxWidth:n};let o=i[r];if(o!==void 0)return{maxWidth:o}}if(t.startsWith("max-h-")){let r=t.substring(6),s=W(r);if(s!==null)return{maxHeight:s};let n=C[r];if(n)return{maxHeight:n};let o=i[r];if(o!==void 0)return{maxHeight:o}}return null}var $={0:0,.5:2,1:4,1.5:6,2:8,2.5:10,3:12,3.5:14,4:16,5:20,6:24,7:28,8:32,9:36,10:40,11:44,12:48,14:56,16:64,20:80,24:96,28:112,32:128,36:144,40:160,44:176,48:192,52:208,56:224,60:240,64:256,72:288,80:320,96:384};function F(t){let e=t.match(/^\[(-?\d+(?:\.\d+)?)(?:px)?\]$/);return e?parseFloat(e[1]):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary spacing value: ${t}. Only px values are supported (e.g., [16px], [16], [4.5px], [4.5]).`),null)}function K(t,e){let i=e?x(x({},$),e):$,r=t.match(/^m([xytrblse]?)-auto$/);if(r){let a=r[1];return z(a,"auto")}let s=t.match(/^(-?)m([xytrblse]?)-(.+)$/);if(s){let[,a,l,g]=s,u=a==="-",h=F(g);if(h!==null){let b=u?-h:h;return z(l,b)}let p=i[g];if(p!==void 0){let b=u?-p:p;return z(l,b)}}let n=t.match(/^p([xytrblse]?)-(.+)$/);if(n){let[,a,l]=n,g=F(l);if(g!==null)return mt(a,g);let u=i[l];if(u!==void 0)return mt(a,u)}let o=t.match(/^gap-(.+)$/);if(o){let a=o[1],l=F(a);if(l!==null)return{gap:l};let g=i[a];if(g!==void 0)return{gap:g}}return null}function z(t,e){switch(t){case"":return{margin:e};case"x":return{marginHorizontal:e};case"y":return{marginVertical:e};case"t":return{marginTop:e};case"r":return{marginRight:e};case"b":return{marginBottom:e};case"l":return{marginLeft:e};case"s":return{marginStart:e};case"e":return{marginEnd:e};default:return{}}}function mt(t,e){switch(t){case"":return{padding:e};case"x":return{paddingHorizontal:e};case"y":return{paddingVertical:e};case"t":return{paddingTop:e};case"r":return{paddingRight:e};case"b":return{paddingBottom:e};case"l":return{paddingLeft:e};case"s":return{paddingStart:e};case"e":return{paddingEnd:e};default:return{}}}var B={0:0,50:.5,75:.75,90:.9,95:.95,100:1,105:1.05,110:1.1,125:1.25,150:1.5,200:2},v={0:0,1:1,2:2,3:3,6:6,12:12,45:45,90:90,180:180},xt={0:0,1:1,2:2,3:3,6:6,12:12},qt={0:0,100:100,200:200,300:300,400:400,500:500,600:600,700:700,800:800,900:900,1e3:1e3};function H(t){let e=t.match(/^\[(-?\d+(?:\.\d+)?)\]$/);return e?parseFloat(e[1]):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Invalid arbitrary scale value: ${t}. Only numbers are supported (e.g., [1.5], [0.75]).`),null)}function E(t){let e=t.match(/^\[(-?\d+(?:\.\d+)?)deg\]$/);return e?`${e[1]}deg`:(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Invalid arbitrary rotation value: ${t}. Only deg unit is supported (e.g., [45deg], [-15deg]).`),null)}function St(t){let e=t.match(/^\[(-?\d+)(?:px)?\]$/);if(e)return parseInt(e[1],10);let i=t.match(/^\[(-?\d+(?:\.\d+)?)%\]$/);return i?`${i[1]}%`:(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary translation unit: ${t}. Only px and % are supported.`),null)}function Jt(t){let e=t.match(/^\[(-?\d+)\]$/);return e?parseInt(e[1],10):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Invalid arbitrary perspective value: ${t}. Only integers are supported (e.g., [1500]).`),null)}function U(t,e){let i=e?x(x({},$),e):$;if(t.startsWith("origin-"))return process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] transform-origin is not supported in React Native. Class "${t}" will be ignored.`),null;if(t.startsWith("scale-")){let r=t.substring(6),s=H(r);if(s!==null)return{transform:[{scale:s}]};let n=B[r];if(n!==void 0)return{transform:[{scale:n}]}}if(t.startsWith("scale-x-")){let r=t.substring(8),s=H(r);if(s!==null)return{transform:[{scaleX:s}]};let n=B[r];if(n!==void 0)return{transform:[{scaleX:n}]}}if(t.startsWith("scale-y-")){let r=t.substring(8),s=H(r);if(s!==null)return{transform:[{scaleY:s}]};let n=B[r];if(n!==void 0)return{transform:[{scaleY:n}]}}if(t.startsWith("rotate-")||t.startsWith("-rotate-")){let r=t.startsWith("-"),s=r?t.substring(8):t.substring(7),n=E(s);if(n!==null)return{transform:[{rotate:r?`-${n}`:n}]};let o=v[s];if(o!==void 0)return{transform:[{rotate:`${r?-o:o}deg`}]}}if(t.startsWith("rotate-x-")||t.startsWith("-rotate-x-")){let r=t.startsWith("-"),s=r?t.substring(10):t.substring(9),n=E(s);if(n!==null)return{transform:[{rotateX:r?`-${n}`:n}]};let o=v[s];if(o!==void 0)return{transform:[{rotateX:`${r?-o:o}deg`}]}}if(t.startsWith("rotate-y-")||t.startsWith("-rotate-y-")){let r=t.startsWith("-"),s=r?t.substring(10):t.substring(9),n=E(s);if(n!==null)return{transform:[{rotateY:r?`-${n}`:n}]};let o=v[s];if(o!==void 0)return{transform:[{rotateY:`${r?-o:o}deg`}]}}if(t.startsWith("rotate-z-")||t.startsWith("-rotate-z-")){let r=t.startsWith("-"),s=r?t.substring(10):t.substring(9),n=E(s);if(n!==null)return{transform:[{rotateZ:r?`-${n}`:n}]};let o=v[s];if(o!==void 0)return{transform:[{rotateZ:`${r?-o:o}deg`}]}}if(t.startsWith("translate-x-")||t.startsWith("-translate-x-")){let r=t.startsWith("-"),s=r?t.substring(13):t.substring(12),n=St(s);if(n!==null)return{transform:[{translateX:typeof n=="number"?r?-n:n:r?`-${n}`:n}]};let o=i[s];if(o!==void 0)return{transform:[{translateX:r?-o:o}]}}if(t.startsWith("translate-y-")||t.startsWith("-translate-y-")){let r=t.startsWith("-"),s=r?t.substring(13):t.substring(12),n=St(s);if(n!==null)return{transform:[{translateY:typeof n=="number"?r?-n:n:r?`-${n}`:n}]};let o=i[s];if(o!==void 0)return{transform:[{translateY:r?-o:o}]}}if(t.startsWith("skew-x-")||t.startsWith("-skew-x-")){let r=t.startsWith("-"),s=r?t.substring(8):t.substring(7),n=E(s);if(n!==null)return{transform:[{skewX:r?`-${n}`:n}]};let o=xt[s];if(o!==void 0)return{transform:[{skewX:`${r?-o:o}deg`}]}}if(t.startsWith("skew-y-")||t.startsWith("-skew-y-")){let r=t.startsWith("-"),s=r?t.substring(8):t.substring(7),n=E(s);if(n!==null)return{transform:[{skewY:r?`-${n}`:n}]};let o=xt[s];if(o!==void 0)return{transform:[{skewY:`${r?-o:o}deg`}]}}if(t.startsWith("perspective-")){let r=t.substring(12),s=Jt(r);if(s!==null)return{transform:[{perspective:s}]};let n=qt[r];if(n!==void 0)return{transform:[{perspective:n}]}}return null}var Qt={xs:12,sm:14,base:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":60,"7xl":72,"8xl":96,"9xl":128};var Rt={"font-sans":{fontFamily:"System"},"font-serif":{fontFamily:"serif"},"font-mono":{fontFamily:"Courier"}},te={"font-thin":{fontWeight:"100"},"font-extralight":{fontWeight:"200"},"font-light":{fontWeight:"300"},"font-normal":{fontWeight:"400"},"font-medium":{fontWeight:"500"},"font-semibold":{fontWeight:"600"},"font-bold":{fontWeight:"700"},"font-extrabold":{fontWeight:"800"},"font-black":{fontWeight:"900"}},ee={italic:{fontStyle:"italic"},"not-italic":{fontStyle:"normal"}},re={"text-left":{textAlign:"left"},"text-center":{textAlign:"center"},"text-right":{textAlign:"right"},"text-justify":{textAlign:"justify"}},ne={underline:{textDecorationLine:"underline"},"line-through":{textDecorationLine:"line-through"},"no-underline":{textDecorationLine:"none"}},ie={uppercase:{textTransform:"uppercase"},lowercase:{textTransform:"lowercase"},capitalize:{textTransform:"capitalize"},"normal-case":{textTransform:"none"}},oe={3:12,4:16,5:20,6:24,7:28,8:32,9:36,10:40},se={"leading-none":{lineHeight:16},"leading-tight":{lineHeight:20},"leading-snug":{lineHeight:22},"leading-normal":{lineHeight:24},"leading-relaxed":{lineHeight:28},"leading-loose":{lineHeight:32}},ae={"tracking-tighter":{letterSpacing:-.8},"tracking-tight":{letterSpacing:-.4},"tracking-normal":{letterSpacing:0},"tracking-wide":{letterSpacing:.4},"tracking-wider":{letterSpacing:.8},"tracking-widest":{letterSpacing:1.6}};function fe(t){let e=t.match(/^\[(-?\d+(?:\.\d+)?|-?\.\d+)(?:px)?\]$/);return e?parseFloat(e[1]):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary font size value: ${t}. Only px values are supported (e.g., [18px], [13.5px], [.5]).`),null)}function le(t){let e=t.match(/^\[(-?\d+(?:\.\d+)?|-?\.\d+)(?:px)?\]$/);return e?parseFloat(e[1]):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary line height value: ${t}. Only px values are supported (e.g., [24px], [21.5px], [.5]).`),null)}function ce(t){let e=t.match(/^\[(-?\d+(?:\.\d+)?|-?\.\d+)(?:px)?\]$/);return e?parseFloat(e[1]):(t.startsWith("[")&&t.endsWith("]")&&process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unsupported arbitrary letter spacing value: ${t}. Only px values are supported (e.g., [0.5px], [0.3], [.5], [-0.4]).`),null)}function G(t,e,i){var s,n,o,a,l,g,u,h;let r=e?x(x({},Rt),Object.fromEntries(Object.entries(e).map(([p,b])=>[`font-${p}`,{fontFamily:b}]))):Rt;if(t.startsWith("text-")){let p=t.substring(5),b=fe(p);if(b!==null)return{fontSize:b};if((i==null?void 0:i[p])!==void 0)return{fontSize:i[p]};let w=Qt[p];if(w!==void 0)return{fontSize:w}}if(t.startsWith("leading-")){let p=t.substring(8),b=le(p);if(b!==null)return{lineHeight:b};let w=oe[p];if(w!==void 0)return{lineHeight:w}}if(t.startsWith("tracking-")){let p=t.substring(9),b=ce(p);if(b!==null)return{letterSpacing:b}}return(h=(u=(g=(l=(a=(o=(n=(s=r[t])!=null?s:te[t])!=null?n:ee[t])!=null?o:re[t])!=null?a:ne[t])!=null?l:ie[t])!=null?g:se[t])!=null?u:ae[t])!=null?h:null}var de=["active","hover","focus","disabled","placeholder"],ue=["ios","android","web"],pe=["dark","light"],ge=["scheme"],ye=["rtl","ltr"],Be=[...de,...ue,...pe,...ge,...ye];function T(t,e){let i=t.split(/\s+/).filter(Boolean),r={};for(let s of i){let n=be(s,e);it(r,n)}return r}function be(t,e){let i=[r=>K(r,e==null?void 0:e.spacing),r=>V(r,e==null?void 0:e.colors),r=>M(r,e==null?void 0:e.colors),r=>P(r,e==null?void 0:e.spacing),r=>G(r,e==null?void 0:e.fontFamily,e==null?void 0:e.fontSize),r=>L(r,e==null?void 0:e.spacing),D,j,r=>U(r,e==null?void 0:e.spacing)];for(let r of i){let s=r(t);if(s!==null)return s}return process.env.NODE_ENV!=="production"&&console.warn(`[react-native-tailwind] Unknown class: "${t}"`),{}}var wt=["active","focus","disabled"];function Ot(t){return wt.some(e=>t.includes(`${e}:`))}function Mt(t){let e=t.split(/\s+/).filter(Boolean),i=[],r=new Map;for(let s of e){let n=!1;for(let o of wt){let a=`${o}:`;if(s.startsWith(a)){let l=s.slice(a.length);r.has(o)||r.set(o,[]);let g=r.get(o);g&&g.push(l),n=!0;break}}n||i.push(s)}return{base:i,modifiers:r}}var S={colors:{},fontFamily:{},fontSize:{},spacing:{}},O=new Map;function Ar(t){var e,i,r,s,n,o,a,l,g;if((i=(e=t.theme)==null?void 0:e.extend)!=null&&i.colors?S.colors=A((r=t.theme)==null?void 0:r.extend.colors):S.colors={},(n=(s=t.theme)==null?void 0:s.extend)!=null&&n.fontFamily){let u={};for(let[h,p]of Object.entries(t.theme.extend.fontFamily))Array.isArray(p)?u[h]=p[0]:u[h]=p;S.fontFamily=u}else S.fontFamily={};if((a=(o=t.theme)==null?void 0:o.extend)!=null&&a.fontSize){let u={};for(let[h,p]of Object.entries(t.theme.extend.fontSize))if(typeof p=="number")u[h]=p;else if(typeof p=="string"){let b=parseFloat(p.replace(/px$/,""));isNaN(b)||(u[h]=b)}S.fontSize=u}else S.fontSize={};if((g=(l=t.theme)==null?void 0:l.extend)!=null&&g.spacing){let u={};for(let[h,p]of Object.entries(t.theme.extend.spacing))if(typeof p=="number")u[h]=p;else if(typeof p=="string"){let b;p.endsWith("rem")?b=parseFloat(p.replace(/rem$/,""))*16:b=parseFloat(p.replace(/px$/,"")),isNaN(b)||(u[h]=b)}S.spacing=u}else S.spacing={};O.clear()}function _r(){return S}function $r(){var t;return Object.keys((t=S.colors)!=null?t:{}).length>0?S.colors:void 0}function Ir(){O.clear()}function vr(){return{size:O.size,keys:Array.from(O.keys())}}function Ct(t){let e=O.get(t);if(e)return e;if(!Ot(t)){let l={style:T(t,S)};return O.set(t,l),l}let{base:i,modifiers:r}=Mt(t),s=i.join(" "),o={style:s?T(s,S):{}};if(r.has("active")){let a=r.get("active");if(a&&a.length>0){let l=a.join(" ");o.activeStyle=T(l,S)}}if(r.has("focus")){let a=r.get("focus");if(a&&a.length>0){let l=a.join(" ");o.focusStyle=T(l,S)}}if(r.has("disabled")){let a=r.get("disabled");if(a&&a.length>0){let l=a.join(" ");o.disabledStyle=T(l,S)}}return O.set(t,o),o}function jr(t,...e){let r=t.reduce((s,n,o)=>{let a=e[o],l=a!=null&&a!==!1?String(a):"";return s+n+l},"").trim().replace(/\s+/g," ");return r?Ct(r):{style:{}}}function Vr(t){let e=t.trim().replace(/\s+/g," ");if(e)return Ct(e)}export{Ir as clearCache,vr as getCacheStats,$r as getCustomColors,_r as getCustomTheme,Ar as setConfig,jr as tw,Vr as twStyle};
2
2
  //# sourceMappingURL=runtime.js.map