@tamagui/web 3.0.0-beta.755.1 → 3.0.0-beta.804.1

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.
Files changed (424) hide show
  1. package/dist/cjs/createComponent.cjs +83 -86
  2. package/dist/cjs/createComponent.native.cjs +96 -103
  3. package/dist/cjs/createComponent.native.js +96 -103
  4. package/dist/cjs/createComponent.native.js.map +1 -1
  5. package/dist/cjs/createTamagui.cjs +10 -8
  6. package/dist/cjs/createTamagui.native.cjs +10 -8
  7. package/dist/cjs/createTamagui.native.js +10 -8
  8. package/dist/cjs/createTamagui.native.js.map +1 -1
  9. package/dist/cjs/dom/htmlRuntime.native.cjs +1 -0
  10. package/dist/cjs/dom/htmlRuntime.native.js +1 -0
  11. package/dist/cjs/dom/htmlRuntime.native.js.map +1 -1
  12. package/dist/cjs/helpers/defaultAnimationDriver.cjs +0 -1
  13. package/dist/cjs/helpers/defaultAnimationDriver.native.cjs +0 -1
  14. package/dist/cjs/helpers/defaultAnimationDriver.native.js +0 -1
  15. package/dist/cjs/helpers/defaultAnimationDriver.native.js.map +1 -1
  16. package/dist/cjs/helpers/directStyleCSS.cjs +348 -0
  17. package/dist/cjs/helpers/directStyleCSS.native.cjs +20 -0
  18. package/dist/cjs/helpers/directStyleCSS.native.js +22 -0
  19. package/dist/cjs/helpers/directStyleCSS.native.js.map +1 -0
  20. package/dist/cjs/helpers/directStyleCSSCompiled.cjs +40 -0
  21. package/dist/cjs/helpers/directStyleCSSCompiled.native.cjs +46 -0
  22. package/dist/cjs/helpers/directStyleCSSCompiled.native.js +48 -0
  23. package/dist/cjs/helpers/directStyleCSSCompiled.native.js.map +1 -0
  24. package/dist/cjs/helpers/getCSSStylesAtomic.cjs +92 -74
  25. package/dist/cjs/helpers/{getFontLanguage.native.cjs → getCSSStylesAtomicCompiled.cjs} +12 -8
  26. package/dist/cjs/helpers/{getFontLanguage.native.js → getCSSStylesAtomicCompiled.native.cjs} +12 -8
  27. package/dist/cjs/helpers/getCSSStylesAtomicCompiled.native.js +36 -0
  28. package/dist/cjs/helpers/getCSSStylesAtomicCompiled.native.js.map +1 -0
  29. package/dist/cjs/helpers/getSplitStyles.cjs +2417 -548
  30. package/dist/cjs/helpers/getSplitStyles.native.cjs +2758 -621
  31. package/dist/cjs/helpers/getSplitStyles.native.js +2758 -621
  32. package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
  33. package/dist/cjs/helpers/getVariantExtras.cjs +8 -3
  34. package/dist/cjs/helpers/getVariantExtras.native.cjs +8 -3
  35. package/dist/cjs/helpers/getVariantExtras.native.js +8 -3
  36. package/dist/cjs/helpers/getVariantExtras.native.js.map +1 -1
  37. package/dist/cjs/helpers/insertStyleRule.cjs +3 -2
  38. package/dist/cjs/helpers/insertStyleRule.native.cjs +70 -7
  39. package/dist/cjs/helpers/insertStyleRule.native.js +70 -7
  40. package/dist/cjs/helpers/insertStyleRule.native.js.map +1 -1
  41. package/dist/cjs/helpers/mediaState.cjs +12 -0
  42. package/dist/cjs/helpers/mediaState.native.cjs +12 -0
  43. package/dist/cjs/helpers/mediaState.native.js +12 -0
  44. package/dist/cjs/helpers/mediaState.native.js.map +1 -1
  45. package/dist/cjs/helpers/normalizeStyle.cjs +16 -2
  46. package/dist/cjs/helpers/normalizeStyle.native.cjs +16 -2
  47. package/dist/cjs/helpers/normalizeStyle.native.js +16 -2
  48. package/dist/cjs/helpers/normalizeStyle.native.js.map +1 -1
  49. package/dist/cjs/helpers/resolveRem.cjs +1 -1
  50. package/dist/cjs/helpers/skipProps.cjs +6 -1
  51. package/dist/cjs/helpers/skipProps.native.cjs +6 -1
  52. package/dist/cjs/helpers/skipProps.native.js +6 -1
  53. package/dist/cjs/helpers/skipProps.native.js.map +1 -1
  54. package/dist/cjs/helpers/styleFrontend.cjs +2 -8
  55. package/dist/cjs/helpers/styleFrontend.native.cjs +2 -10
  56. package/dist/cjs/helpers/styleFrontend.native.js +2 -10
  57. package/dist/cjs/helpers/styleFrontend.native.js.map +1 -1
  58. package/dist/cjs/helpers/styleToCSS.cjs +59 -0
  59. package/dist/cjs/helpers/{normalizeStylePropKeys.cjs → styleToCSS.native.cjs} +6 -4
  60. package/dist/cjs/helpers/{getFontLanguage.cjs → styleToCSS.native.js} +8 -4
  61. package/dist/cjs/helpers/styleToCSS.native.js.map +1 -0
  62. package/dist/cjs/helpers/subscribeToContextGroup.cjs +28 -1
  63. package/dist/cjs/helpers/subscribeToContextGroup.native.cjs +45 -1
  64. package/dist/cjs/helpers/subscribeToContextGroup.native.js +45 -1
  65. package/dist/cjs/helpers/subscribeToContextGroup.native.js.map +1 -1
  66. package/dist/cjs/helpers/variables.cjs +3 -2
  67. package/dist/cjs/helpers/variables.native.cjs +3 -2
  68. package/dist/cjs/helpers/variables.native.js +3 -2
  69. package/dist/cjs/helpers/variables.native.js.map +1 -1
  70. package/dist/cjs/helpers/wrapStyleTags.cjs +5 -3
  71. package/dist/cjs/helpers/wrapStyleTags.native.cjs +3 -1
  72. package/dist/cjs/helpers/wrapStyleTags.native.js +3 -1
  73. package/dist/cjs/helpers/wrapStyleTags.native.js.map +1 -1
  74. package/dist/cjs/hooks/useComponentState.cjs +70 -89
  75. package/dist/cjs/hooks/useComponentState.native.cjs +70 -88
  76. package/dist/cjs/hooks/useComponentState.native.js +70 -88
  77. package/dist/cjs/hooks/useComponentState.native.js.map +1 -1
  78. package/dist/cjs/hooks/useMedia.cjs +3 -15
  79. package/dist/cjs/hooks/useMedia.native.cjs +3 -15
  80. package/dist/cjs/hooks/useMedia.native.js +3 -15
  81. package/dist/cjs/hooks/useMedia.native.js.map +1 -1
  82. package/dist/cjs/hooks/useProps.cjs +7 -5
  83. package/dist/cjs/hooks/useProps.native.cjs +7 -5
  84. package/dist/cjs/hooks/useProps.native.js +7 -5
  85. package/dist/cjs/hooks/useProps.native.js.map +1 -1
  86. package/dist/cjs/hooks/useSplitStyles.cjs +42 -0
  87. package/dist/cjs/hooks/useSplitStyles.native.cjs +42 -0
  88. package/dist/cjs/hooks/useSplitStyles.native.js +44 -0
  89. package/dist/cjs/hooks/useSplitStyles.native.js.map +1 -0
  90. package/dist/cjs/index.cjs +184 -70
  91. package/dist/cjs/index.native.cjs +184 -70
  92. package/dist/cjs/index.native.js +184 -70
  93. package/dist/cjs/index.native.js.map +1 -1
  94. package/dist/cjs/insertFont.cjs +1 -1
  95. package/dist/cjs/insertFont.native.cjs +1 -0
  96. package/dist/cjs/insertFont.native.js +1 -0
  97. package/dist/cjs/insertFont.native.js.map +1 -1
  98. package/dist/cjs/internal-runtime.cjs +33 -6
  99. package/dist/cjs/internal-runtime.native.cjs +33 -6
  100. package/dist/cjs/internal-runtime.native.js +33 -6
  101. package/dist/cjs/internal-runtime.native.js.map +1 -1
  102. package/dist/cjs/setupReactNative.cjs +1 -29
  103. package/dist/cjs/setupReactNative.native.cjs +1 -3
  104. package/dist/cjs/setupReactNative.native.js +1 -3
  105. package/dist/cjs/setupReactNative.native.js.map +1 -1
  106. package/dist/cjs/static-resolve.cjs +229 -0
  107. package/dist/cjs/static-resolve.native.cjs +242 -0
  108. package/dist/cjs/static-resolve.native.js +244 -0
  109. package/dist/cjs/static-resolve.native.js.map +1 -0
  110. package/dist/cjs/styled.cjs +23 -37
  111. package/dist/cjs/styled.native.cjs +22 -37
  112. package/dist/cjs/styled.native.js +22 -37
  113. package/dist/cjs/styled.native.js.map +1 -1
  114. package/dist/cjs/views/TamaguiProvider.cjs +4 -8
  115. package/dist/cjs/views/TamaguiProvider.native.cjs +4 -8
  116. package/dist/cjs/views/TamaguiProvider.native.js +4 -8
  117. package/dist/cjs/views/TamaguiProvider.native.js.map +1 -1
  118. package/dist/cjs/views/ThemeUpdate.cjs +1 -1
  119. package/dist/cjs/views/ThemeUpdate.native.cjs +1 -1
  120. package/dist/cjs/views/ThemeUpdate.native.js +1 -1
  121. package/dist/cjs/views/ThemeUpdate.native.js.map +1 -1
  122. package/dist/esm/createComponent.mjs +85 -88
  123. package/dist/esm/createComponent.mjs.map +1 -1
  124. package/dist/esm/createComponent.native.js +98 -105
  125. package/dist/esm/createComponent.native.js.map +1 -1
  126. package/dist/esm/createTamagui.mjs +10 -8
  127. package/dist/esm/createTamagui.mjs.map +1 -1
  128. package/dist/esm/createTamagui.native.js +10 -8
  129. package/dist/esm/createTamagui.native.js.map +1 -1
  130. package/dist/esm/dom/htmlRuntime.native.js +1 -0
  131. package/dist/esm/dom/htmlRuntime.native.js.map +1 -1
  132. package/dist/esm/helpers/defaultAnimationDriver.mjs +0 -1
  133. package/dist/esm/helpers/defaultAnimationDriver.mjs.map +1 -1
  134. package/dist/esm/helpers/defaultAnimationDriver.native.js +0 -1
  135. package/dist/esm/helpers/defaultAnimationDriver.native.js.map +1 -1
  136. package/dist/esm/helpers/directStyleCSS.mjs +320 -0
  137. package/dist/esm/helpers/directStyleCSS.mjs.map +1 -0
  138. package/dist/esm/helpers/directStyleCSS.native.js +1 -0
  139. package/dist/esm/helpers/directStyleCSSCompiled.mjs +11 -0
  140. package/dist/esm/helpers/directStyleCSSCompiled.mjs.map +1 -0
  141. package/dist/esm/helpers/directStyleCSSCompiled.native.js +15 -0
  142. package/dist/esm/helpers/directStyleCSSCompiled.native.js.map +1 -0
  143. package/dist/esm/helpers/getCSSStylesAtomic.mjs +86 -72
  144. package/dist/esm/helpers/getCSSStylesAtomic.mjs.map +1 -1
  145. package/dist/esm/helpers/getCSSStylesAtomicCompiled.mjs +9 -0
  146. package/dist/esm/helpers/getCSSStylesAtomicCompiled.mjs.map +1 -0
  147. package/dist/esm/helpers/getCSSStylesAtomicCompiled.native.js +9 -0
  148. package/dist/esm/helpers/getCSSStylesAtomicCompiled.native.js.map +1 -0
  149. package/dist/esm/helpers/getSplitStyles.mjs +2406 -545
  150. package/dist/esm/helpers/getSplitStyles.mjs.map +1 -1
  151. package/dist/esm/helpers/getSplitStyles.native.js +2751 -618
  152. package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
  153. package/dist/esm/helpers/getVariantExtras.mjs +8 -3
  154. package/dist/esm/helpers/getVariantExtras.mjs.map +1 -1
  155. package/dist/esm/helpers/getVariantExtras.native.js +8 -3
  156. package/dist/esm/helpers/getVariantExtras.native.js.map +1 -1
  157. package/dist/esm/helpers/insertStyleRule.mjs +3 -2
  158. package/dist/esm/helpers/insertStyleRule.mjs.map +1 -1
  159. package/dist/esm/helpers/insertStyleRule.native.js +71 -5
  160. package/dist/esm/helpers/insertStyleRule.native.js.map +1 -1
  161. package/dist/esm/helpers/mediaState.mjs +12 -1
  162. package/dist/esm/helpers/mediaState.mjs.map +1 -1
  163. package/dist/esm/helpers/mediaState.native.js +12 -1
  164. package/dist/esm/helpers/mediaState.native.js.map +1 -1
  165. package/dist/esm/helpers/normalizeStyle.mjs +16 -2
  166. package/dist/esm/helpers/normalizeStyle.mjs.map +1 -1
  167. package/dist/esm/helpers/normalizeStyle.native.js +16 -2
  168. package/dist/esm/helpers/normalizeStyle.native.js.map +1 -1
  169. package/dist/esm/helpers/resolveRem.mjs +1 -1
  170. package/dist/esm/helpers/resolveRem.mjs.map +1 -1
  171. package/dist/esm/helpers/skipProps.mjs +3 -1
  172. package/dist/esm/helpers/skipProps.mjs.map +1 -1
  173. package/dist/esm/helpers/skipProps.native.js +3 -1
  174. package/dist/esm/helpers/skipProps.native.js.map +1 -1
  175. package/dist/esm/helpers/styleFrontend.mjs +2 -4
  176. package/dist/esm/helpers/styleFrontend.mjs.map +1 -1
  177. package/dist/esm/helpers/styleFrontend.native.js +2 -6
  178. package/dist/esm/helpers/styleFrontend.native.js.map +1 -1
  179. package/dist/esm/helpers/styleToCSS.mjs +40 -0
  180. package/dist/esm/helpers/styleToCSS.mjs.map +1 -0
  181. package/dist/esm/helpers/styleToCSS.native.js +4 -0
  182. package/dist/esm/helpers/styleToCSS.native.js.map +1 -0
  183. package/dist/esm/helpers/subscribeToContextGroup.mjs +25 -1
  184. package/dist/esm/helpers/subscribeToContextGroup.mjs.map +1 -1
  185. package/dist/esm/helpers/subscribeToContextGroup.native.js +42 -1
  186. package/dist/esm/helpers/subscribeToContextGroup.native.js.map +1 -1
  187. package/dist/esm/helpers/variables.mjs +2 -1
  188. package/dist/esm/helpers/variables.mjs.map +1 -1
  189. package/dist/esm/helpers/variables.native.js +2 -1
  190. package/dist/esm/helpers/variables.native.js.map +1 -1
  191. package/dist/esm/helpers/wrapStyleTags.mjs +5 -3
  192. package/dist/esm/helpers/wrapStyleTags.mjs.map +1 -1
  193. package/dist/esm/helpers/wrapStyleTags.native.js +3 -1
  194. package/dist/esm/helpers/wrapStyleTags.native.js.map +1 -1
  195. package/dist/esm/hooks/useComponentState.mjs +71 -90
  196. package/dist/esm/hooks/useComponentState.mjs.map +1 -1
  197. package/dist/esm/hooks/useComponentState.native.js +71 -89
  198. package/dist/esm/hooks/useComponentState.native.js.map +1 -1
  199. package/dist/esm/hooks/useMedia.mjs +2 -15
  200. package/dist/esm/hooks/useMedia.mjs.map +1 -1
  201. package/dist/esm/hooks/useMedia.native.js +2 -15
  202. package/dist/esm/hooks/useMedia.native.js.map +1 -1
  203. package/dist/esm/hooks/useProps.mjs +7 -5
  204. package/dist/esm/hooks/useProps.mjs.map +1 -1
  205. package/dist/esm/hooks/useProps.native.js +7 -5
  206. package/dist/esm/hooks/useProps.native.js.map +1 -1
  207. package/dist/esm/hooks/useSplitStyles.mjs +17 -0
  208. package/dist/esm/hooks/useSplitStyles.mjs.map +1 -0
  209. package/dist/esm/hooks/useSplitStyles.native.js +14 -0
  210. package/dist/esm/hooks/useSplitStyles.native.js.map +1 -0
  211. package/dist/esm/index.js +57 -137
  212. package/dist/esm/index.mjs +57 -137
  213. package/dist/esm/index.native.js +57 -137
  214. package/dist/esm/insertFont.mjs +1 -1
  215. package/dist/esm/insertFont.mjs.map +1 -1
  216. package/dist/esm/insertFont.native.js +1 -0
  217. package/dist/esm/insertFont.native.js.map +1 -1
  218. package/dist/esm/internal-runtime.mjs +23 -4
  219. package/dist/esm/internal-runtime.mjs.map +1 -1
  220. package/dist/esm/internal-runtime.native.js +23 -4
  221. package/dist/esm/internal-runtime.native.js.map +1 -1
  222. package/dist/esm/setupReactNative.mjs +1 -29
  223. package/dist/esm/setupReactNative.mjs.map +1 -1
  224. package/dist/esm/setupReactNative.native.js +1 -3
  225. package/dist/esm/setupReactNative.native.js.map +1 -1
  226. package/dist/esm/static-resolve.mjs +194 -0
  227. package/dist/esm/static-resolve.mjs.map +1 -0
  228. package/dist/esm/static-resolve.native.js +205 -0
  229. package/dist/esm/static-resolve.native.js.map +1 -0
  230. package/dist/esm/styled.mjs +24 -40
  231. package/dist/esm/styled.mjs.map +1 -1
  232. package/dist/esm/styled.native.js +23 -40
  233. package/dist/esm/styled.native.js.map +1 -1
  234. package/dist/esm/views/TamaguiProvider.mjs +4 -8
  235. package/dist/esm/views/TamaguiProvider.mjs.map +1 -1
  236. package/dist/esm/views/TamaguiProvider.native.js +4 -8
  237. package/dist/esm/views/TamaguiProvider.native.js.map +1 -1
  238. package/dist/esm/views/ThemeUpdate.mjs +1 -1
  239. package/dist/esm/views/ThemeUpdate.mjs.map +1 -1
  240. package/dist/esm/views/ThemeUpdate.native.js +1 -1
  241. package/dist/esm/views/ThemeUpdate.native.js.map +1 -1
  242. package/package.json +25 -15
  243. package/reset.css +3 -3
  244. package/src/createComponent.tsx +175 -192
  245. package/src/createTamagui.ts +13 -10
  246. package/src/dom/html.native.tsx +99 -92
  247. package/src/dom/html.tsx +105 -98
  248. package/src/dom/htmlRuntime.native.tsx +1 -0
  249. package/src/helpers/defaultAnimationDriver.tsx +0 -1
  250. package/src/helpers/directStyleCSS.native.ts +1 -0
  251. package/src/helpers/directStyleCSS.ts +534 -0
  252. package/src/helpers/directStyleCSSCompiled.ts +32 -0
  253. package/src/helpers/getCSSStylesAtomic.ts +168 -88
  254. package/src/helpers/getCSSStylesAtomicCompiled.ts +9 -0
  255. package/src/helpers/getSplitStyles.tsx +4653 -1003
  256. package/src/helpers/getVariantExtras.tsx +15 -3
  257. package/src/helpers/insertStyleRule.tsx +8 -3
  258. package/src/helpers/mediaState.ts +15 -0
  259. package/src/helpers/normalizeStyle.ts +27 -2
  260. package/src/helpers/resolveRem.ts +1 -1
  261. package/src/helpers/skipProps.ts +3 -0
  262. package/src/helpers/styleFrontend.ts +20 -27
  263. package/src/helpers/styleToCSS.native.ts +1 -0
  264. package/src/helpers/styleToCSS.ts +43 -0
  265. package/src/helpers/subscribeToContextGroup.tsx +30 -0
  266. package/src/helpers/variables.ts +2 -1
  267. package/src/helpers/warnOnce.ts +3 -4
  268. package/src/helpers/wrapStyleTags.tsx +1 -1
  269. package/src/hooks/useComponentState.ts +118 -158
  270. package/src/hooks/useMedia.tsx +2 -18
  271. package/src/hooks/useProps.tsx +19 -15
  272. package/src/hooks/useSplitStyles.tsx +26 -0
  273. package/src/index.ts +298 -73
  274. package/src/insertFont.ts +5 -1
  275. package/src/internal-runtime.ts +49 -24
  276. package/src/internalRuntimeTypes.ts +2 -7
  277. package/src/setupReactNative.ts +7 -30
  278. package/src/static-resolve.ts +396 -0
  279. package/src/styled.tsx +34 -11
  280. package/src/types.tsx +41 -31
  281. package/src/views/TamaguiProvider.tsx +23 -22
  282. package/src/views/ThemeUpdate.tsx +3 -1
  283. package/types/createComponent.d.ts.map +1 -1
  284. package/types/createTamagui.d.ts.map +1 -1
  285. package/types/dom/html.d.ts +54 -50
  286. package/types/dom/html.d.ts.map +1 -1
  287. package/types/dom/html.native.d.ts +51 -47
  288. package/types/dom/html.native.d.ts.map +1 -1
  289. package/types/dom/htmlRuntime.native.d.ts.map +1 -1
  290. package/types/helpers/defaultAnimationDriver.d.ts.map +1 -1
  291. package/types/helpers/directStyleCSS.d.ts +28 -0
  292. package/types/helpers/directStyleCSS.d.ts.map +1 -0
  293. package/types/helpers/directStyleCSS.native.d.ts +2 -0
  294. package/types/helpers/directStyleCSS.native.d.ts.map +1 -0
  295. package/types/helpers/directStyleCSSCompiled.d.ts +10 -0
  296. package/types/helpers/directStyleCSSCompiled.d.ts.map +1 -0
  297. package/types/helpers/getCSSStylesAtomic.d.ts +22 -1
  298. package/types/helpers/getCSSStylesAtomic.d.ts.map +1 -1
  299. package/types/helpers/getCSSStylesAtomicCompiled.d.ts +4 -0
  300. package/types/helpers/getCSSStylesAtomicCompiled.d.ts.map +1 -0
  301. package/types/helpers/getSplitStyles.d.ts +11 -4
  302. package/types/helpers/getSplitStyles.d.ts.map +1 -1
  303. package/types/helpers/getVariantExtras.d.ts.map +1 -1
  304. package/types/helpers/insertStyleRule.d.ts.map +1 -1
  305. package/types/helpers/mediaState.d.ts +4 -0
  306. package/types/helpers/mediaState.d.ts.map +1 -1
  307. package/types/helpers/normalizeStyle.d.ts +1 -1
  308. package/types/helpers/normalizeStyle.d.ts.map +1 -1
  309. package/types/helpers/skipProps.d.ts +2 -0
  310. package/types/helpers/skipProps.d.ts.map +1 -1
  311. package/types/helpers/styleFrontend.d.ts +13 -17
  312. package/types/helpers/styleFrontend.d.ts.map +1 -1
  313. package/types/helpers/styleToCSS.d.ts +2 -0
  314. package/types/helpers/styleToCSS.d.ts.map +1 -0
  315. package/types/helpers/styleToCSS.native.d.ts +2 -0
  316. package/types/helpers/styleToCSS.native.d.ts.map +1 -0
  317. package/types/helpers/subscribeToContextGroup.d.ts +1 -0
  318. package/types/helpers/subscribeToContextGroup.d.ts.map +1 -1
  319. package/types/helpers/variables.d.ts.map +1 -1
  320. package/types/helpers/warnOnce.d.ts.map +1 -1
  321. package/types/helpers/webPropsToSkip.native.d.ts +5 -0
  322. package/types/helpers/webPropsToSkip.native.d.ts.map +1 -1
  323. package/types/hooks/useComponentState.d.ts +3 -2
  324. package/types/hooks/useComponentState.d.ts.map +1 -1
  325. package/types/hooks/useMedia.d.ts +1 -5
  326. package/types/hooks/useMedia.d.ts.map +1 -1
  327. package/types/hooks/useProps.d.ts.map +1 -1
  328. package/types/hooks/useSplitStyles.d.ts +3 -0
  329. package/types/hooks/useSplitStyles.d.ts.map +1 -0
  330. package/types/index.d.ts +58 -72
  331. package/types/index.d.ts.map +1 -1
  332. package/types/insertFont.d.ts.map +1 -1
  333. package/types/internal-runtime.d.ts +24 -11
  334. package/types/internal-runtime.d.ts.map +1 -1
  335. package/types/internalRuntimeTypes.d.ts +1 -6
  336. package/types/internalRuntimeTypes.d.ts.map +1 -1
  337. package/types/setupReactNative.d.ts +2 -3
  338. package/types/setupReactNative.d.ts.map +1 -1
  339. package/types/static-resolve.d.ts +79 -0
  340. package/types/static-resolve.d.ts.map +1 -0
  341. package/types/styled.d.ts.map +1 -1
  342. package/types/types.d.ts +30 -23
  343. package/types/types.d.ts.map +1 -1
  344. package/types/views/TamaguiProvider.d.ts.map +1 -1
  345. package/types/views/ThemeUpdate.d.ts.map +1 -1
  346. package/dist/cjs/constants/accessibilityDirectMap.cjs +0 -34
  347. package/dist/cjs/constants/accessibilityDirectMap.native.cjs +0 -36
  348. package/dist/cjs/constants/accessibilityDirectMap.native.js +0 -38
  349. package/dist/cjs/constants/accessibilityDirectMap.native.js.map +0 -1
  350. package/dist/cjs/helpers/directStyle.cjs +0 -962
  351. package/dist/cjs/helpers/directStyle.native.cjs +0 -1165
  352. package/dist/cjs/helpers/directStyle.native.js +0 -1167
  353. package/dist/cjs/helpers/directStyle.native.js.map +0 -1
  354. package/dist/cjs/helpers/frontendProgram.cjs +0 -43
  355. package/dist/cjs/helpers/frontendProgram.native.cjs +0 -49
  356. package/dist/cjs/helpers/frontendProgram.native.js +0 -51
  357. package/dist/cjs/helpers/frontendProgram.native.js.map +0 -1
  358. package/dist/cjs/helpers/getFontLanguage.native.js.map +0 -1
  359. package/dist/cjs/helpers/normalizeStylePropKeys.native.cjs +0 -37
  360. package/dist/cjs/helpers/normalizeStylePropKeys.native.js +0 -39
  361. package/dist/cjs/helpers/normalizeStylePropKeys.native.js.map +0 -1
  362. package/dist/cjs/helpers/propMapper.cjs +0 -384
  363. package/dist/cjs/helpers/propMapper.native.cjs +0 -536
  364. package/dist/cjs/helpers/propMapper.native.js +0 -538
  365. package/dist/cjs/helpers/propMapper.native.js.map +0 -1
  366. package/dist/cjs/helpers/useRenderElement.cjs +0 -47
  367. package/dist/cjs/helpers/useRenderElement.native.cjs +0 -53
  368. package/dist/cjs/helpers/useRenderElement.native.js +0 -55
  369. package/dist/cjs/helpers/useRenderElement.native.js.map +0 -1
  370. package/dist/esm/constants/accessibilityDirectMap.mjs +0 -8
  371. package/dist/esm/constants/accessibilityDirectMap.mjs.map +0 -1
  372. package/dist/esm/constants/accessibilityDirectMap.native.js +0 -8
  373. package/dist/esm/constants/accessibilityDirectMap.native.js.map +0 -1
  374. package/dist/esm/helpers/directStyle.mjs +0 -929
  375. package/dist/esm/helpers/directStyle.mjs.map +0 -1
  376. package/dist/esm/helpers/directStyle.native.js +0 -1132
  377. package/dist/esm/helpers/directStyle.native.js.map +0 -1
  378. package/dist/esm/helpers/frontendProgram.mjs +0 -20
  379. package/dist/esm/helpers/frontendProgram.mjs.map +0 -1
  380. package/dist/esm/helpers/frontendProgram.native.js +0 -24
  381. package/dist/esm/helpers/frontendProgram.native.js.map +0 -1
  382. package/dist/esm/helpers/getFontLanguage.mjs +0 -4
  383. package/dist/esm/helpers/getFontLanguage.mjs.map +0 -1
  384. package/dist/esm/helpers/getFontLanguage.native.js +0 -6
  385. package/dist/esm/helpers/getFontLanguage.native.js.map +0 -1
  386. package/dist/esm/helpers/normalizeStylePropKeys.mjs +0 -4
  387. package/dist/esm/helpers/normalizeStylePropKeys.mjs.map +0 -1
  388. package/dist/esm/helpers/normalizeStylePropKeys.native.js +0 -15
  389. package/dist/esm/helpers/normalizeStylePropKeys.native.js.map +0 -1
  390. package/dist/esm/helpers/propMapper.mjs +0 -360
  391. package/dist/esm/helpers/propMapper.mjs.map +0 -1
  392. package/dist/esm/helpers/propMapper.native.js +0 -511
  393. package/dist/esm/helpers/propMapper.native.js.map +0 -1
  394. package/dist/esm/helpers/useRenderElement.mjs +0 -26
  395. package/dist/esm/helpers/useRenderElement.mjs.map +0 -1
  396. package/dist/esm/helpers/useRenderElement.native.js +0 -31
  397. package/dist/esm/helpers/useRenderElement.native.js.map +0 -1
  398. package/src/constants/accessibilityDirectMap.native.tsx +0 -10
  399. package/src/constants/accessibilityDirectMap.tsx +0 -11
  400. package/src/helpers/directStyle.ts +0 -2294
  401. package/src/helpers/frontendProgram.ts +0 -48
  402. package/src/helpers/getFontLanguage.ts +0 -2
  403. package/src/helpers/normalizeStylePropKeys.native.ts +0 -12
  404. package/src/helpers/normalizeStylePropKeys.ts +0 -3
  405. package/src/helpers/propMapper.ts +0 -721
  406. package/src/helpers/useRenderElement.tsx +0 -73
  407. package/types/constants/accessibilityDirectMap.d.ts +0 -6
  408. package/types/constants/accessibilityDirectMap.d.ts.map +0 -1
  409. package/types/constants/accessibilityDirectMap.native.d.ts +0 -6
  410. package/types/constants/accessibilityDirectMap.native.d.ts.map +0 -1
  411. package/types/helpers/directStyle.d.ts +0 -15
  412. package/types/helpers/directStyle.d.ts.map +0 -1
  413. package/types/helpers/frontendProgram.d.ts +0 -10
  414. package/types/helpers/frontendProgram.d.ts.map +0 -1
  415. package/types/helpers/getFontLanguage.d.ts +0 -2
  416. package/types/helpers/getFontLanguage.d.ts.map +0 -1
  417. package/types/helpers/normalizeStylePropKeys.d.ts +0 -2
  418. package/types/helpers/normalizeStylePropKeys.d.ts.map +0 -1
  419. package/types/helpers/normalizeStylePropKeys.native.d.ts +0 -13
  420. package/types/helpers/normalizeStylePropKeys.native.d.ts.map +0 -1
  421. package/types/helpers/propMapper.d.ts +0 -6
  422. package/types/helpers/propMapper.d.ts.map +0 -1
  423. package/types/helpers/useRenderElement.d.ts +0 -13
  424. package/types/helpers/useRenderElement.d.ts.map +0 -1
@@ -1,1132 +0,0 @@
1
- import { isAndroid, isIos, isTV, isWeb, supportsDynamicColorIOS } from "@tamagui/constants";
2
- import { StyleObjectIdentifier, StyleObjectRules, nonAnimatableStyleProps, tokenCategories } from "@tamagui/helpers";
3
- import { canonicalStateModifierNames, isContainerSizeQueryText, isModifierName, modifierKindMedia, modifierKindPlatform, modifierKindState, modifierKindTheme, scanFlatValue, stateModifierSelectors } from "@tamagui/style-grammar/runtime";
4
- import { isVariable } from "../createVariable.native.js";
5
- import { mediaKeyMatch } from "../hooks/useMedia.native.js";
6
- import { warnOnce, warnRefusedValue } from "./warnOnce.native.js";
7
- import { expandStyle } from "./expandStyle.native.js";
8
- import { getCSSStyleAtomic } from "./getCSSStylesAtomic.native.js";
9
- import { getConfigRevisionState } from "./grammarConfig.native.js";
10
- import { isColorStyleKey } from "./getDynamicVal.native.js";
11
- import { shouldInsertStyleRules, updateRules } from "./insertStyleRule.native.js";
12
- import { normalizeColor } from "./normalizeColor.native.js";
13
- import { parseNativeStyle } from "./parseNativeStyle.native.js";
14
- import { parseNativeTransform } from "./parseNativeTransform.native.js";
15
- import { getTokenCategoryForProperty, tokenCategoryByProperty } from "./tokenCategories.native.js";
16
- import { resolveSafeAreaVariable } from "./resolveSafeAreaVariable.native.js";
17
- import { expandSafeAreaValue, isSafeAreaKey } from "./resolveSafeArea.native.js";
18
- import { resolveVariableValue } from "./resolveVariableValue.native.js";
19
- import { THEME_REF_PREFIX } from "./themeRef.native.js";
20
- import { transformsToString } from "./transformsToString.native.js";
21
-
22
- function _type_of(obj) {
23
- "@swc/helpers - typeof";
24
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
25
- }
26
- var directStyleHandler = {
27
- segment(state, start, end, isBase, valid, source, chainStart, chainEnd, chainValid, chainCount, _result, failure, failureIndex, property, merge, originalValue, contextOnly) {
28
- if (isBase) {
29
- if (start === end) return;
30
- if (!valid) {
31
- if (process.env.NODE_ENV === "development") warnRefusedValue(property, source, failure === "invalid-character" ? `"${source[failureIndex]}" would end the declaration or rule` : failure === "unterminated-string" ? "an unterminated string" : failure === "unterminated-comment" ? "an unterminated \"/*\" comment" : failure === "stray-comment-close" ? "a stray \"*/\"" : "an unterminated \"(\"");
32
- return;
33
- }
34
- var value = source.slice(start, end);
35
- emitValue(state, property, value, 0, "", void 0, "", "", merge, value, contextOnly);
36
- return 5;
37
- }
38
- if (!chainValid) {
39
- if (process.env.NODE_ENV === "development") warnRefusedValue(property, source, failure === "invalid-character" ? `"${source[failureIndex]}" would end the declaration or rule` : failure === "unterminated-string" ? "an unterminated string" : failure === "unterminated-comment" ? "an unterminated \"/*\" comment" : failure === "stray-comment-close" ? "a stray \"*/\"" : "an unterminated \"(\"");
40
- return;
41
- }
42
- if (start === end) {
43
- if (process.env.NODE_ENV === "development") warnRefusedValue(property, source, "a conditional clause has no value");
44
- return;
45
- }
46
- if (property === "aspectRatio" && chainCount === 1) {
47
- var left = Number(source.slice(chainStart, chainEnd));
48
- var right = Number(source.slice(start, end));
49
- if (chainStart < chainEnd && Number.isFinite(left) && left > 0 && Number.isFinite(right) && right > 0) return 12;
50
- }
51
- var condition = resolveClauseChain(state, source, chainStart, chainEnd, property, void 0, valid ? merge : void 0, void 0, contextOnly, start, end, 1);
52
- if (!condition) return;
53
- if (!valid) {
54
- if (process.env.NODE_ENV === "development") warnRefusedValue(property, source, failure === "invalid-character" ? `"${source[failureIndex]}" would end the declaration or rule` : failure === "unterminated-string" ? "an unterminated string" : failure === "unterminated-comment" ? "an unterminated \"/*\" comment" : failure === "stray-comment-close" ? "a stray \"*/\"" : "an unterminated \"(\"");
55
- return;
56
- }
57
- return 4 | (condition & 12 ? 2 : 0);
58
- },
59
- chain() {
60
- return true;
61
- },
62
- end(state, source, result, lastPayloadStart, chainCount, property, merge, originalValue, contextOnly) {
63
- var hasBase = !!(result & 1);
64
- if (result & 8 && chainCount === 1) {
65
- emitValue(state, property, source, 0, "", void 0, "", "", merge, originalValue !== null && originalValue !== void 0 ? originalValue : source, contextOnly);
66
- hasBase = true;
67
- }
68
- if (process.env.NODE_ENV === "development" && !hasBase && result & 4 && (property in tokenCategories.color || property in tokenCategoryByProperty) && splitComponents(source.slice(lastPayloadStart)).length > 1) warnOnce(`${property}="${source}" has multiple values after its first conditional. Write the base value before the first conditional.`);
69
- if ((!isWeb || !state.flatShouldDoClasses) && result & 2 && !hasBase) {
70
- var value = implicitLifecycleBase(property);
71
- if (value !== null) emitValue(state, property, value, 0, "", void 0, "", "", merge, value, contextOnly);
72
- }
73
- }
74
- };
75
- function implicitLifecycleBase(property) {
76
- return property === "opacity" || property === "scale" || property === "scaleX" || property === "scaleY" ? 1 : property === "rotate" ? "0deg" : property === "x" || property === "y" ? 0 : null;
77
- }
78
- var legacyTransformParts = /* @__PURE__ */ new Set([
79
- "matrix",
80
- "perspective",
81
- "rotateX",
82
- "rotateY",
83
- "rotateZ",
84
- "scaleZ",
85
- "skewX",
86
- "skewY"
87
- ]);
88
- var webShadowParts = /* @__PURE__ */ new Set([
89
- "shadowColor",
90
- "shadowOffset",
91
- "shadowOpacity",
92
- "shadowRadius"
93
- ]);
94
- var webTextShadowParts = /* @__PURE__ */ new Set([
95
- "textShadowColor",
96
- "textShadowOffset",
97
- "textShadowRadius"
98
- ]);
99
- var lineStyles = /* @__PURE__ */ new Set([
100
- "none",
101
- "hidden",
102
- "dotted",
103
- "dashed",
104
- "solid",
105
- "double",
106
- "groove",
107
- "ridge",
108
- "inset",
109
- "outset"
110
- ]);
111
- var borderTargets = {
112
- border: {
113
- width: [
114
- "borderTopWidth",
115
- "borderRightWidth",
116
- "borderBottomWidth",
117
- "borderLeftWidth"
118
- ],
119
- style: [
120
- "borderTopStyle",
121
- "borderRightStyle",
122
- "borderBottomStyle",
123
- "borderLeftStyle"
124
- ],
125
- color: [
126
- "borderTopColor",
127
- "borderRightColor",
128
- "borderBottomColor",
129
- "borderLeftColor"
130
- ]
131
- },
132
- borderTop: {
133
- width: ["borderTopWidth"],
134
- style: ["borderTopStyle"],
135
- color: ["borderTopColor"]
136
- },
137
- borderRight: {
138
- width: ["borderRightWidth"],
139
- style: ["borderRightStyle"],
140
- color: ["borderRightColor"]
141
- },
142
- borderBottom: {
143
- width: ["borderBottomWidth"],
144
- style: ["borderBottomStyle"],
145
- color: ["borderBottomColor"]
146
- },
147
- borderLeft: {
148
- width: ["borderLeftWidth"],
149
- style: ["borderLeftStyle"],
150
- color: ["borderLeftColor"]
151
- },
152
- outline: {
153
- width: ["outlineWidth"],
154
- style: ["outlineStyle"],
155
- color: ["outlineColor"]
156
- },
157
- borderBlock: {
158
- width: ["borderBlockStartWidth", "borderBlockEndWidth"],
159
- style: ["borderBlockStartStyle", "borderBlockEndStyle"],
160
- color: ["borderBlockStartColor", "borderBlockEndColor"]
161
- },
162
- borderInline: {
163
- width: ["borderInlineStartWidth", "borderInlineEndWidth"],
164
- style: ["borderInlineStartStyle", "borderInlineEndStyle"],
165
- color: ["borderInlineStartColor", "borderInlineEndColor"]
166
- }
167
- };
168
- var borderStyleDefaults = {
169
- borderWidth: "borderStyle",
170
- borderTopWidth: "borderTopStyle",
171
- borderRightWidth: "borderRightStyle",
172
- borderBottomWidth: "borderBottomStyle",
173
- borderLeftWidth: "borderLeftStyle"
174
- };
175
- function platformMatches(name) {
176
- if (name === "web") return isWeb;
177
- if (name === "native") return !isWeb;
178
- if (name === "ios") return isIos;
179
- if (name === "android") return isAndroid;
180
- if (name === "tvos") return isIos && isTV;
181
- if (name === "androidtv") return isAndroid && isTV;
182
- return name === "tv" && isTV;
183
- }
184
- function resolveClauseChain(state, source, start, end, property, raw, merge, originalValue) {
185
- var contextOnly = arguments.length > 8 && arguments[8] !== void 0 ? arguments[8] : false, payloadStart = arguments.length > 9 && arguments[9] !== void 0 ? arguments[9] : -1, payloadEnd = arguments.length > 10 && arguments[10] !== void 0 ? arguments[10] : -1, warning = arguments.length > 11 && arguments[11] !== void 0 ? arguments[11] : 0;
186
- var compiled = getConfigRevisionState(state.conf);
187
- var sourceStart = start;
188
- var key = "";
189
- var active = true;
190
- var emit = true;
191
- var selector = "";
192
- var wrappers;
193
- var theme = "";
194
- var enter = false;
195
- var exit = false;
196
- var unsupportedState = "";
197
- var platformRank = 0;
198
- var depth = 0;
199
- var categoryRank = 0;
200
- var withinRank = 0;
201
- var selfStateSpecificity = 0;
202
- for (var index = start; index <= end; index++) {
203
- if (index !== end && source.charCodeAt(index) !== 58) continue;
204
- var modifier = source.slice(start, index);
205
- start = index + 1;
206
- var code = compiled.modifiers[modifier];
207
- var kind = code & 7;
208
- var rank = code >> 3;
209
- var stateSelector = "";
210
- var conditionStateName = "";
211
- var groupName = "";
212
- var containerSize = "";
213
- var containerName = "";
214
- var containerQuery = "";
215
- if (kind === modifierKindState) {
216
- modifier = canonicalStateModifierNames[rank];
217
- stateSelector = stateModifierSelectors[rank];
218
- } else if (!kind && modifier.startsWith("group-")) {
219
- var slash = modifier.indexOf("/");
220
- var authoredState = modifier.slice(6, slash === -1 ? void 0 : slash);
221
- code = compiled.modifiers[authoredState];
222
- if ((code & 7) !== modifierKindState) kind = 0;
223
- else {
224
- rank = code >> 3;
225
- groupName = slash === -1 ? "true" : modifier.slice(slash + 1);
226
- if (rank === 6 || rank === 7 || slash !== -1 && !isModifierName(groupName, 0, groupName.length)) kind = 0;
227
- else {
228
- kind = 5;
229
- var stateName = canonicalStateModifierNames[rank];
230
- conditionStateName = stateName;
231
- stateSelector = stateModifierSelectors[rank];
232
- modifier = `group-${stateName}${slash === -1 ? "" : modifier.slice(slash)}`;
233
- }
234
- }
235
- } else if (!kind && modifier.charCodeAt(0) === 64) {
236
- var slash1 = modifier.indexOf("/");
237
- containerSize = modifier.slice(1, slash1 === -1 ? void 0 : slash1);
238
- containerName = slash1 === -1 ? "" : modifier.slice(slash1 + 1);
239
- if (isModifierName(containerSize, 0, containerSize.length) && (slash1 === -1 || isModifierName(containerName, 0, containerName.length)) && ((code = compiled.modifiers[containerSize]) & 7) === modifierKindMedia && (containerQuery = compiled.mediaQueries[containerSize]) && isContainerSizeQueryText(containerQuery)) {
240
- kind = 6;
241
- rank = code >> 3;
242
- }
243
- }
244
- if (!kind) {
245
- if (warning && process.env.NODE_ENV === "development") warnRefusedValue(property, warning === 1 ? source : raw, `unknown modifier "${source.slice(sourceStart, end)}"`);
246
- return 0;
247
- }
248
- var slotStart = 0;
249
- var duplicate = false;
250
- var inserted = !key;
251
- if (!key) key = modifier;
252
- else {
253
- while (slotStart <= key.length) {
254
- var slotEnd = key.indexOf(":", slotStart);
255
- if (slotEnd === -1) slotEnd = key.length;
256
- var order = 0;
257
- var compareLength = Math.min(modifier.length, slotEnd - slotStart);
258
- for (var offset = 0; offset < compareLength; offset++) {
259
- order = modifier.charCodeAt(offset) - key.charCodeAt(slotStart + offset);
260
- if (order) break;
261
- }
262
- order || (order = modifier.length - (slotEnd - slotStart));
263
- if (!order) {
264
- duplicate = true;
265
- break;
266
- }
267
- if (order < 0) {
268
- key = `${key.slice(0, slotStart)}${modifier}:${key.slice(slotStart)}`;
269
- inserted = true;
270
- break;
271
- }
272
- if (slotEnd === key.length) break;
273
- slotStart = slotEnd + 1;
274
- }
275
- if (!duplicate && !inserted) key += `:${modifier}`;
276
- }
277
- if (duplicate) continue;
278
- if (kind === modifierKindPlatform) {
279
- if (rank > platformRank) platformRank = rank;
280
- var matches = platformMatches(modifier);
281
- active && (active = matches);
282
- emit && (emit = matches);
283
- continue;
284
- }
285
- depth++;
286
- var nextCategory = kind === modifierKindMedia ? 0 : kind === 6 ? 1 : kind === modifierKindTheme ? 2 : kind === 5 ? 3 : 4;
287
- if (nextCategory > categoryRank) {
288
- categoryRank = nextCategory;
289
- withinRank = rank;
290
- } else if (nextCategory === categoryRank && rank > withinRank) withinRank = rank;
291
- if (kind === modifierKindMedia) {
292
- var _state_flatMediaState;
293
- var _state;
294
- var query = compiled.mediaQueries[modifier];
295
- if (!query) return 0;
296
- (wrappers || (wrappers = [])).push(`@media ${query}`);
297
- active && (active = !!((_state_flatMediaState = state.flatMediaState) === null || _state_flatMediaState === void 0 ? void 0 : _state_flatMediaState[modifier]));
298
- ((_state = state).flatMediaKeys || (_state.flatMediaKeys = /* @__PURE__ */ new Set())).add(modifier);
299
- } else if (kind === modifierKindTheme) {
300
- var _state_flatThemeName;
301
- theme = modifier;
302
- selector += `:where(.t_${modifier}, .t_${modifier} *)`;
303
- active && (active = state.flatThemeName === modifier || ((_state_flatThemeName = state.flatThemeName) === null || _state_flatThemeName === void 0 ? void 0 : _state_flatThemeName.startsWith(`${modifier}_`)) === true);
304
- } else if (kind === 5) {
305
- var _state_componentState_group, _state_flatGroupContext, _this;
306
- var _state1;
307
- selector += `:where(.t_group_${groupName}${stateSelector} *)`;
308
- if (rank === 0) (wrappers || (wrappers = [])).push("@media (hover: hover)");
309
- var component = (_state_componentState_group = state.componentState.group) === null || _state_componentState_group === void 0 ? void 0 : _state_componentState_group[groupName];
310
- var context = (_state_flatGroupContext = state.flatGroupContext) === null || _state_flatGroupContext === void 0 ? void 0 : _state_flatGroupContext[groupName];
311
- var _component_pseudo;
312
- active && (active = !!((_this = (_component_pseudo = component === null || component === void 0 ? void 0 : component.pseudo) !== null && _component_pseudo !== void 0 ? _component_pseudo : context === null || context === void 0 ? void 0 : context.state.pseudo) === null || _this === void 0 ? void 0 : _this[conditionStateName]));
313
- ((_state1 = state).flatGroupKeys || (_state1.flatGroupKeys = /* @__PURE__ */ new Set())).add(groupName);
314
- } else if (kind === 6) {
315
- var _state_componentState_group1, _state_flatGroupContext1, _component_media;
316
- var _state2, _state3;
317
- var groupKey = `@${containerName}`;
318
- (wrappers || (wrappers = [])).push(containerName ? `@container ${containerName} ${containerQuery}` : `@container ${containerQuery}`);
319
- var component1 = (_state_componentState_group1 = state.componentState.group) === null || _state_componentState_group1 === void 0 ? void 0 : _state_componentState_group1[groupKey];
320
- var context1 = (_state_flatGroupContext1 = state.flatGroupContext) === null || _state_flatGroupContext1 === void 0 ? void 0 : _state_flatGroupContext1[groupKey];
321
- var match = component1 === null || component1 === void 0 ? void 0 : (_component_media = component1.media) === null || _component_media === void 0 ? void 0 : _component_media[containerSize];
322
- active && (active = match === void 0 ? !!((context1 === null || context1 === void 0 ? void 0 : context1.state.layout) && mediaKeyMatch(containerSize, context1.state.layout)) : !!match);
323
- ((_state2 = state).flatGroupKeys || (_state2.flatGroupKeys = /* @__PURE__ */ new Set())).add(groupKey);
324
- ((_state3 = state).flatGroupMedia || (_state3.flatGroupMedia = /* @__PURE__ */ new Set())).add(containerSize);
325
- } else {
326
- selfStateSpecificity++;
327
- if (!isWeb && stateSelector[0] === "[" && modifier !== "disabled") unsupportedState = modifier;
328
- if (stateSelector[0] === ".") {
329
- selector += `:is(${stateSelector}, ${stateSelector} *)`;
330
- if (rank === 6) enter = true;
331
- else exit = true;
332
- } else selector += stateSelector;
333
- if (rank === 0) (wrappers || (wrappers = [])).push("@media (hover: hover)");
334
- var component2 = state.componentState;
335
- active && (active = rank === 0 ? !!component2.hover : rank === 4 ? !!(component2.press || component2.pressIn) : rank === 2 ? !!component2.focus : rank === 3 ? !!component2.focusVisible : rank === 1 ? !!component2.focusWithin : rank === 5 ? !!(component2.disabled || state.props.disabled) : rank === 6 ? !!component2.unmounted : rank === 7 ? !!state.styleProps.isExiting : false);
336
- if (stateSelector[0] === ":") {
337
- var _state4;
338
- ((_state4 = state).flatStateKeys || (_state4.flatStateKeys = /* @__PURE__ */ new Set())).add(modifier);
339
- }
340
- }
341
- }
342
- if (depth > 5) throw new Error(`a flat value clause supports at most 5 non-platform conditions; received ${depth} in "${source.slice(sourceStart, end)}:"`);
343
- var condition = (platformRank << 26 | depth << 23 | categoryRank << 20 | withinRank) * 256 + selfStateSpecificity * 32 + 16 + (active ? 1 : 0) + (emit ? 2 : 0) + (enter ? 4 : 0) + (exit ? 8 : 0);
344
- if (warning && unsupportedState && process.env.NODE_ENV === "development") warnOnce(`${property}: "${unsupportedState}:" has no native component-state source; dropping the clause`);
345
- if (merge && property && condition & 2 && (condition & 1 || isWeb && state.flatShouldDoClasses || warning === 1 && !isWeb && theme && supportsDynamicColorIOS && isColorStyleKey(property))) {
346
- var value = payloadStart === -1 ? raw : source.slice(payloadStart, payloadEnd);
347
- emitValue(state, property, value, condition, key, wrappers, selector, theme, merge, warning === 2 ? originalValue : originalValue !== null && originalValue !== void 0 ? originalValue : value, contextOnly);
348
- }
349
- return condition;
350
- }
351
- var tokenLookup = {
352
- value: void 0,
353
- fromTheme: false,
354
- themeKey: ""
355
- };
356
- function fillTokenLookup(value, fromTheme, themeKey) {
357
- tokenLookup.value = value;
358
- tokenLookup.fromTheme = fromTheme;
359
- tokenLookup.themeKey = themeKey;
360
- return tokenLookup;
361
- }
362
- function tokenVariable(state, property, name) {
363
- var _state_theme, _state_conf_themes_, _state_conf_themes, _state_conf_tokensParsed_space, _state_conf_tokensParsed_color;
364
- var lookupName = name.charCodeAt(0) === 36 ? name.slice(1) : name;
365
- if (property === "fontFamily") {
366
- var _state_conf_fontsParsed_lookupName;
367
- var family = (_state_conf_fontsParsed_lookupName = state.conf.fontsParsed[lookupName]) === null || _state_conf_fontsParsed_lookupName === void 0 ? void 0 : _state_conf_fontsParsed_lookupName.family;
368
- return family ? fillTokenLookup(family, false, lookupName) : void 0;
369
- }
370
- var fontKey = property === "fontSize" ? "size" : property === "fontWeight" ? "weight" : property === "lineHeight" || property === "letterSpacing" ? property : void 0;
371
- if (fontKey) {
372
- var _font_fontKey;
373
- var font = state.conf.fontsParsed[state.fontFamily || state.conf.defaultFontToken] || state.conf.fontsParsed[state.conf.defaultFontToken];
374
- var value = font === null || font === void 0 ? void 0 : (_font_fontKey = font[fontKey]) === null || _font_fontKey === void 0 ? void 0 : _font_fontKey[lookupName];
375
- return value ? fillTokenLookup(value, false, lookupName) : void 0;
376
- }
377
- var category = getTokenCategoryForProperty(property);
378
- var dot = lookupName.indexOf(".");
379
- if (dot !== -1) {
380
- var prefix = lookupName.slice(0, dot);
381
- if (!category || prefix === category || prefix === "color") lookupName = lookupName.slice(dot + 1);
382
- }
383
- if (category) {
384
- var _state_conf_tokensParsed_category;
385
- var own = (_state_conf_tokensParsed_category = state.conf.tokensParsed[category]) === null || _state_conf_tokensParsed_category === void 0 ? void 0 : _state_conf_tokensParsed_category[lookupName];
386
- if (own) return fillTokenLookup(own, false, lookupName);
387
- for (var _i = 0, _iter = [
388
- "color",
389
- "space",
390
- "size",
391
- "radius",
392
- "zIndex"
393
- ]; _i < _iter.length; _i++) {
394
- var sibling = _iter[_i];
395
- var _state_conf_tokensParsed_sibling;
396
- if (sibling !== category && ((_state_conf_tokensParsed_sibling = state.conf.tokensParsed[sibling]) === null || _state_conf_tokensParsed_sibling === void 0 ? void 0 : _state_conf_tokensParsed_sibling[lookupName])) return;
397
- }
398
- } else {
399
- var first = lookupName.charCodeAt(0);
400
- if (first >= 48 && first <= 57 || first === 43 || first === 45 || first === 46) return;
401
- }
402
- var theme = ((_state_theme = state.theme) === null || _state_theme === void 0 ? void 0 : _state_theme[lookupName]) || ((_state_conf_themes = state.conf.themes) === null || _state_conf_themes === void 0 ? void 0 : (_state_conf_themes_ = _state_conf_themes[state.flatThemeName || ""]) === null || _state_conf_themes_ === void 0 ? void 0 : _state_conf_themes_[lookupName]);
403
- if (theme) return fillTokenLookup(theme, true, lookupName);
404
- if (category) return;
405
- var token = ((_state_conf_tokensParsed_space = state.conf.tokensParsed.space) === null || _state_conf_tokensParsed_space === void 0 ? void 0 : _state_conf_tokensParsed_space[lookupName]) || ((_state_conf_tokensParsed_color = state.conf.tokensParsed.color) === null || _state_conf_tokensParsed_color === void 0 ? void 0 : _state_conf_tokensParsed_color[lookupName]);
406
- return token ? fillTokenLookup(token, false, lookupName) : void 0;
407
- }
408
- function configuredValue(state, property, raw) {
409
- var name = raw;
410
- var opacity;
411
- var slash = raw.lastIndexOf("/");
412
- if (slash > 0) {
413
- var amount = Number(raw.slice(slash + 1));
414
- if (Number.isInteger(amount) && amount >= 0 && amount <= 100) {
415
- name = raw.slice(0, slash);
416
- opacity = amount;
417
- }
418
- }
419
- var safeArea = resolveSafeAreaVariable(name);
420
- if (safeArea !== void 0) {
421
- state.flatUsesSafeArea = true;
422
- return safeArea;
423
- }
424
- var lookup = tokenVariable(state, property, name);
425
- if (!lookup || !isVariable(lookup.value)) {
426
- var _state_conf_tokensParsed_color;
427
- if (process.env.NODE_ENV === "development" && tokenCategoryByProperty[property] && ((_state_conf_tokensParsed_color = state.conf.tokensParsed.color) === null || _state_conf_tokensParsed_color === void 0 ? void 0 : _state_conf_tokensParsed_color[name])) warnOnce(`"${name}" contributes to "color", not "${property}"; keeping it literal`);
428
- return raw;
429
- }
430
- var resolveValues = isWeb && !state.flatShouldDoClasses && state.styleProps.resolveValues === "auto" ? "value" : state.styleProps.resolveValues;
431
- if (resolveValues === "except-theme" && lookup.fromTheme) return `${THEME_REF_PREFIX}${lookup.themeKey}${opacity !== void 0 ? `/${opacity}` : ""}`;
432
- var value = resolveVariableValue(property, lookup.value, resolveValues);
433
- if (opacity !== void 0) value = isWeb ? `color-mix(in srgb, ${value} ${opacity}%, transparent)` : normalizeColor(value, opacity / 100);
434
- return value;
435
- }
436
- var letterFreeCallPattern = /^[A-Za-z-]+\([^A-Za-z]*\)$/;
437
- function resolveEmbeddedTokens(state, property, raw) {
438
- if (letterFreeCallPattern.test(raw)) return raw;
439
- return raw.replace(/[$A-Za-z_][\w.$-]*(?:\/\d+)?/g, function(word, index) {
440
- if (word.charCodeAt(0) !== 36) {
441
- var before = raw.charCodeAt(index - 1);
442
- if (before >= 48 && before <= 57 || before === 35 || before === 45 && raw.charCodeAt(index - 2) === 45 || raw.charCodeAt(index + word.length) === 40) return word;
443
- }
444
- var value = configuredValue(state, property, word);
445
- return value === word ? word : String(value);
446
- });
447
- }
448
- function normalizeTransitionNames(state, raw) {
449
- var quote = 0;
450
- var depth = 0;
451
- var copyFrom = 0;
452
- var out = "";
453
- for (var index = 0; index < raw.length; index++) {
454
- var code = raw.charCodeAt(index);
455
- if (quote) {
456
- if (code === 92) index++;
457
- else if (code === quote) quote = 0;
458
- continue;
459
- }
460
- if (code === 34 || code === 39) {
461
- quote = code;
462
- continue;
463
- }
464
- if (code === 40) {
465
- depth++;
466
- continue;
467
- }
468
- if (code === 41) {
469
- depth--;
470
- continue;
471
- }
472
- if (depth || !(code >= 65 && code <= 90 || code >= 97 && code <= 122 || code === 95) || index > 1 && raw.charCodeAt(index - 1) === 45 && raw.charCodeAt(index - 2) === 45) continue;
473
- var end = index + 1;
474
- while (end < raw.length) {
475
- var next = raw.charCodeAt(end);
476
- if (next >= 48 && next <= 57 || next >= 65 && next <= 90 || next >= 97 && next <= 122 || next === 45 || next === 95) end++;
477
- else break;
478
- }
479
- if (raw.charCodeAt(end) !== 40) {
480
- var authored = raw.slice(index, end);
481
- var property = state.conf.shorthands[authored] || authored;
482
- if (property === "x" || property === "y") property = "translate";
483
- else if (property === "scaleX" || property === "scaleY") property = "scale";
484
- else if (legacyTransformParts.has(property)) property = "transform";
485
- if (property !== authored || /[A-Z]/.test(property)) {
486
- out += raw.slice(copyFrom, index);
487
- out += property.replace(/[A-Z]/g, function(letter) {
488
- return `-${letter.toLowerCase()}`;
489
- });
490
- copyFrom = end;
491
- }
492
- }
493
- index = end - 1;
494
- }
495
- return copyFrom ? out + raw.slice(copyFrom) : raw;
496
- }
497
- function directStyleSignature(property, value) {
498
- return `${property}${arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ""}${String(value)}`;
499
- }
500
- function directAtomic(state, property, value, condition, conditionKey, conditionWrappers, conditionSelector) {
501
- var isDefault = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : false;
502
- var _state;
503
- var atomics = (_state = state).flatAtomics || (_state.flatAtomics = {});
504
- var atomicKey = property.startsWith("transition") ? "transition" : property;
505
- var existing = atomics[atomicKey];
506
- var contribution = directStyleSignature(property, value, conditionKey);
507
- var signature = existing ? existing.signature + contribution : contribution;
508
- var next = getCSSStyleAtomic(property, value, conditionSelector, conditionWrappers, signature, 2, atomicKey, condition ? 1 + (Math.floor(condition / 256) >>> 23 & 7) + (Math.floor(condition / 256) >>> 26) * 6 - (condition >>> 5 & 7) : void 0);
509
- if (!next) return;
510
- var identifier = next[StyleObjectIdentifier];
511
- var nextRules = next[StyleObjectRules];
512
- var slotted = condition || atomicKey === "transition";
513
- if (!existing) {
514
- var atomic = {
515
- baseRules: slotted ? 0 : nextRules.length,
516
- conditions: void 0,
517
- signature,
518
- styleObject: next
519
- };
520
- if (slotted) atomic.conditions = { [atomicKey === "transition" ? `${conditionKey}\0${property}` : conditionKey]: {
521
- count: nextRules.length,
522
- index: 0,
523
- precedence: condition ? Math.floor(condition / 256) : 0,
524
- default: isDefault
525
- } };
526
- atomics[atomicKey] = atomic;
527
- } else {
528
- var previousIdentifier = existing.styleObject[StyleObjectIdentifier];
529
- var rules = existing.styleObject[StyleObjectRules].slice();
530
- existing.styleObject[StyleObjectRules] = rules;
531
- if (!condition && !isDefault && existing.conditions) for (var key in existing.conditions) {
532
- var entry = existing.conditions[key];
533
- if (!entry.default) continue;
534
- rules.splice(entry.index, entry.count);
535
- delete existing.conditions[key];
536
- for (var otherKey in existing.conditions) {
537
- var other = existing.conditions[otherKey];
538
- if (other.index > entry.index) other.index -= entry.count;
539
- }
540
- }
541
- if (previousIdentifier !== identifier) {
542
- var oldSelector = `.${previousIdentifier}`;
543
- var newSelector = `.${identifier}`;
544
- for (var index = 0; index < rules.length; index++) rules[index] = rules[index].replaceAll(oldSelector, newSelector);
545
- }
546
- if (slotted) {
547
- var _existing_conditions;
548
- var _existing;
549
- var slot = atomicKey === "transition" ? `${conditionKey}\0${property}` : conditionKey;
550
- var previous = (_existing_conditions = existing.conditions) === null || _existing_conditions === void 0 ? void 0 : _existing_conditions[slot];
551
- if (previous) {
552
- rules.splice(previous.index, previous.count);
553
- if (existing.conditions) for (var key1 in existing.conditions) {
554
- var entry1 = existing.conditions[key1];
555
- if (entry1 !== previous && entry1.index > previous.index) entry1.index -= previous.count;
556
- }
557
- delete existing.conditions[slot];
558
- }
559
- var precedence = condition ? Math.floor(condition / 256) : 0;
560
- var insertionIndex = rules.length;
561
- if (existing.conditions) {
562
- for (var key2 in existing.conditions) {
563
- var entry2 = existing.conditions[key2];
564
- if (entry2.precedence > precedence && entry2.index < insertionIndex) insertionIndex = entry2.index;
565
- }
566
- for (var key3 in existing.conditions) {
567
- var entry3 = existing.conditions[key3];
568
- if (entry3.index >= insertionIndex) entry3.index += nextRules.length;
569
- }
570
- }
571
- ((_existing = existing).conditions || (_existing.conditions = {}))[slot] = {
572
- count: nextRules.length,
573
- index: insertionIndex,
574
- precedence,
575
- default: isDefault
576
- };
577
- rules.splice(insertionIndex, 0, ...nextRules);
578
- } else {
579
- var difference = nextRules.length - existing.baseRules;
580
- rules.splice(0, existing.baseRules, ...nextRules);
581
- if (difference && existing.conditions) for (var key4 in existing.conditions) existing.conditions[key4].index += difference;
582
- existing.baseRules = nextRules.length;
583
- }
584
- existing.signature = signature;
585
- existing.styleObject[StyleObjectIdentifier] = identifier;
586
- existing.styleObject[1] = next[1];
587
- }
588
- state.classNames[atomicKey] = identifier;
589
- }
590
- function emitBorderStyleDefault(state, property, condition, conditionKey, conditionWrappers, conditionSelector) {
591
- var _state_flatAtomics, _atomic_conditions;
592
- if (!isWeb || !state.flatShouldDoClasses || state.styleProps.noNormalize === false) return;
593
- var target = borderStyleDefaults[property];
594
- if (!target) return;
595
- var atomic = (_state_flatAtomics = state.flatAtomics) === null || _state_flatAtomics === void 0 ? void 0 : _state_flatAtomics[target];
596
- if ((atomic === null || atomic === void 0 ? void 0 : atomic.baseRules) || state.classNames[target] && !atomic || condition && (atomic === null || atomic === void 0 ? void 0 : (_atomic_conditions = atomic.conditions) === null || _atomic_conditions === void 0 ? void 0 : _atomic_conditions[conditionKey])) return;
597
- directAtomic(state, target, "solid", condition, conditionKey, conditionWrappers, conditionSelector, true);
598
- }
599
- function flushDirectStyles(state) {
600
- var clear = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
601
- var direct = state;
602
- var atomics = direct.flatAtomics;
603
- if (!atomics) return;
604
- for (var property in atomics) {
605
- var styleObject = atomics[property].styleObject;
606
- var identifier = styleObject[StyleObjectIdentifier];
607
- if (shouldInsertStyleRules(identifier)) {
608
- var rules = styleObject[StyleObjectRules].slice();
609
- styleObject[StyleObjectRules] = rules;
610
- updateRules(identifier, rules);
611
- state.flatRulesToInsert[identifier] = styleObject;
612
- }
613
- }
614
- if (clear) direct.flatAtomics = void 0;
615
- }
616
- function getDirectDynamicThemeAccess(state) {
617
- return state.flatDynamicThemeAccess;
618
- }
619
- function emitProperty(state, property, value, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly) {
620
- var _state_animationDriver, _state_flatActiveConditions;
621
- var _state, _state1;
622
- var direct = state;
623
- if (condition & 4) ((_state = state).flatEnterKeys || (_state.flatEnterKeys = /* @__PURE__ */ new Set())).add(property);
624
- if (condition & 8) ((_state1 = state).flatExitKeys || (_state1.flatExitKeys = /* @__PURE__ */ new Set())).add(property);
625
- if (!isWeb && conditionTheme) {
626
- if (supportsDynamicColorIOS && isColorStyleKey(property)) {
627
- var _direct, _ref, _property;
628
- var schemes = (_ref = (_direct = direct).flatDynamicColors || (_direct.flatDynamicColors = {}))[_property = property] || (_ref[_property] = {});
629
- schemes[conditionTheme] = typeof originalValue === "string" && /^[a-z]+$/i.test(originalValue) ? originalValue : value;
630
- merge(state, property, { dynamic: { ...schemes } }, 1, false, originalValue);
631
- return;
632
- }
633
- direct.flatDynamicThemeAccess = true;
634
- }
635
- if (contextOnly) {
636
- if (!condition || condition & 1) {
637
- var _state2;
638
- ((_state2 = state).overriddenContextProps || (_state2.overriddenContextProps = {}))[property] = originalValue;
639
- }
640
- return;
641
- }
642
- var shouldPromoteAnimatedStyle = isWeb && !condition && !state.flatShouldDoClasses && !state.styleProps.noMergeStyle && state.styleProps.isAnimated && !((_state_animationDriver = state.animationDriver) === null || _state_animationDriver === void 0 ? void 0 : _state_animationDriver.isReactNative) && property in nonAnimatableStyleProps;
643
- if (isWeb && (state.flatShouldDoClasses || shouldPromoteAnimatedStyle)) {
644
- if (!condition) {
645
- if (state.style) delete state.style[property];
646
- }
647
- directAtomic(state, property, value, condition, conditionKey, conditionWrappers, conditionSelector);
648
- return;
649
- }
650
- if (condition) {
651
- var _direct_flatPrecedence;
652
- var _direct1, _state3;
653
- if (!(condition & 1)) return;
654
- var precedence = Math.floor(condition / 256);
655
- var previous = (_direct_flatPrecedence = direct.flatPrecedence) === null || _direct_flatPrecedence === void 0 ? void 0 : _direct_flatPrecedence[property];
656
- if (previous !== void 0 && precedence < previous) return;
657
- ((_direct1 = direct).flatPrecedence || (_direct1.flatPrecedence = {}))[property] = precedence;
658
- ((_state3 = state).flatActiveConditions || (_state3.flatActiveConditions = {}))[property] = true;
659
- } else if ((_state_flatActiveConditions = state.flatActiveConditions) === null || _state_flatActiveConditions === void 0 ? void 0 : _state_flatActiveConditions[property]) return;
660
- merge(state, property, value, 1, true, originalValue);
661
- }
662
- function splitComponents(value) {
663
- var parts = [];
664
- var start = 0;
665
- var quote = 0;
666
- var depth = 0;
667
- for (var index = 0; index <= value.length; index++) {
668
- var code = index === value.length ? 32 : value.charCodeAt(index);
669
- if (quote) {
670
- if (code === 92) index++;
671
- else if (code === quote) quote = 0;
672
- continue;
673
- }
674
- if (code === 34 || code === 39) quote = code;
675
- else if (code === 40) depth++;
676
- else if (code === 41) depth--;
677
- else if (!depth && code <= 32) {
678
- if (index > start) parts.push(value.slice(start, index));
679
- start = index + 1;
680
- }
681
- }
682
- return parts;
683
- }
684
- function emitBorder(state, property, raw, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly) {
685
- if (!isWeb && (property === "borderBlock" || property === "borderInline")) {
686
- if (process.env.NODE_ENV === "development") warnOnce(`RN has no logical border shorthand "${property}"; dropping it`);
687
- return;
688
- }
689
- var targets = borderTargets[property];
690
- var width;
691
- var style;
692
- var color;
693
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
694
- try {
695
- for (var _iterator = splitComponents(raw)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
696
- var part = _step.value;
697
- var lower = part.toLowerCase();
698
- if (lineStyles.has(lower) || property === "outline" && lower === "auto") style = part;
699
- else if (lower === "thin" || lower === "medium" || lower === "thick" || /^-?(?:\d+\.?\d*|\.\d+)(?:[a-z%]+)?$/i.test(part) || /^(?:calc|var|min|max|clamp)\(/i.test(part)) width = part;
700
- else color = part;
701
- }
702
- } catch (err) {
703
- _didIteratorError = true;
704
- _iteratorError = err;
705
- } finally {
706
- try {
707
- if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
708
- } finally {
709
- if (_didIteratorError) throw _iteratorError;
710
- }
711
- }
712
- if (style === "none" && width === void 0) width = "0";
713
- if (width !== void 0) {
714
- var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
715
- try {
716
- for (var _iterator1 = targets.width[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
717
- var target = _step1.value;
718
- emitResolved(state, target, width, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
719
- }
720
- } catch (err) {
721
- _didIteratorError1 = true;
722
- _iteratorError1 = err;
723
- } finally {
724
- try {
725
- if (!_iteratorNormalCompletion1 && _iterator1.return != null) _iterator1.return();
726
- } finally {
727
- if (_didIteratorError1) throw _iteratorError1;
728
- }
729
- }
730
- }
731
- if (style !== void 0) {
732
- var styleTargets = !isWeb && property === "border" ? ["borderStyle"] : targets.style;
733
- var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;
734
- try {
735
- for (var _iterator2 = styleTargets[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
736
- var target1 = _step2.value;
737
- emitProperty(state, target1, style, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
738
- }
739
- } catch (err) {
740
- _didIteratorError2 = true;
741
- _iteratorError2 = err;
742
- } finally {
743
- try {
744
- if (!_iteratorNormalCompletion2 && _iterator2.return != null) _iterator2.return();
745
- } finally {
746
- if (_didIteratorError2) throw _iteratorError2;
747
- }
748
- }
749
- }
750
- if (color !== void 0) {
751
- var _iteratorNormalCompletion3 = true, _didIteratorError3 = false, _iteratorError3 = void 0;
752
- try {
753
- for (var _iterator3 = targets.color[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
754
- var target2 = _step3.value;
755
- emitResolved(state, target2, color, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
756
- }
757
- } catch (err) {
758
- _didIteratorError3 = true;
759
- _iteratorError3 = err;
760
- } finally {
761
- try {
762
- if (!_iteratorNormalCompletion3 && _iterator3.return != null) _iterator3.return();
763
- } finally {
764
- if (_didIteratorError3) throw _iteratorError3;
765
- }
766
- }
767
- }
768
- }
769
- function emitTextDecoration(state, raw, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly) {
770
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
771
- try {
772
- for (var _iterator = splitComponents(raw)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
773
- var part = _step.value;
774
- emitResolved(state, part === "solid" || part === "double" || part === "dotted" || part === "dashed" || part === "wavy" ? "textDecorationStyle" : part === "underline" || part === "overline" || part === "line-through" || part === "none" ? "textDecorationLine" : "textDecorationColor", part, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
775
- }
776
- } catch (err) {
777
- _didIteratorError = true;
778
- _iteratorError = err;
779
- } finally {
780
- try {
781
- if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
782
- } finally {
783
- if (_didIteratorError) throw _iteratorError;
784
- }
785
- }
786
- }
787
- function addComposition(state, property) {
788
- if (state.classNames[property]) return;
789
- var value = property === "translate" ? "var(--t-x, 0px) var(--t-y, 0px)" : "var(--t-scale-x, 1) var(--t-scale-y, 1)";
790
- var defaults = property === "translate" ? "--t-x:0px;--t-y:0px" : "--t-scale-x:1;--t-scale-y:1";
791
- var styleObject = getCSSStyleAtomic(property, value, "", void 0, void 0, true);
792
- var identifier = styleObject[StyleObjectIdentifier];
793
- styleObject[StyleObjectRules].unshift(`:where(.${identifier}){${defaults}}`);
794
- if (shouldInsertStyleRules(identifier)) {
795
- updateRules(identifier, styleObject[StyleObjectRules]);
796
- state.flatRulesToInsert[identifier] = styleObject;
797
- }
798
- state.classNames[property] = identifier;
799
- }
800
- function emitTransform(state, property, value, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly) {
801
- if (!isWeb || !state.flatShouldDoClasses) {
802
- if (!isWeb && property === "scale") {
803
- emitProperty(state, "scaleX", value, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
804
- emitProperty(state, "scaleY", value, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
805
- } else emitProperty(state, property, value, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
806
- return;
807
- }
808
- var targets = property === "scale" ? ["--t-scale-x", "--t-scale-y"] : [property === "x" ? "--t-x" : property === "y" ? "--t-y" : property === "scaleX" ? "--t-scale-x" : property === "scaleY" ? "--t-scale-y" : "rotate"];
809
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
810
- try {
811
- for (var _iterator = targets[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
812
- var target = _step.value;
813
- var targetValue = value;
814
- if (typeof targetValue === "number") {
815
- if (target === "--t-x" || target === "--t-y") targetValue = `${targetValue}px`;
816
- else if (target === "rotate") targetValue = `${targetValue}deg`;
817
- }
818
- emitProperty(state, target, targetValue, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
819
- if (target === "--t-x" || target === "--t-y") addComposition(state, "translate");
820
- else if (target.startsWith("--t-scale")) addComposition(state, "scale");
821
- }
822
- } catch (err) {
823
- _didIteratorError = true;
824
- _iteratorError = err;
825
- } finally {
826
- try {
827
- if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
828
- } finally {
829
- if (_didIteratorError) throw _iteratorError;
830
- }
831
- }
832
- }
833
- function emitResolved(state, property, raw, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly) {
834
- var value = configuredValue(state, property, raw);
835
- if (value === raw && /[\s,(]/.test(raw)) value = resolveEmbeddedTokens(state, property, raw);
836
- if ((!isWeb || !state.flatShouldDoClasses) && typeof value === "string") {
837
- if (/^-?(?:\d+\.?\d*|\.\d+)(?:px|dp)$/i.test(value)) value = Number.parseFloat(value);
838
- else if (value !== "" && Number.isFinite(Number(value))) value = Number(value);
839
- }
840
- emitProperty(state, property, value, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
841
- }
842
- function shadowUnit(part) {
843
- return typeof part === "number" ? `${part}px` : part || "0px";
844
- }
845
- function emitWebShadow(state, property, value, merge, originalValue, contextOnly) {
846
- var _state;
847
- var shadow = (_state = state).flatWebShadow || (_state.flatWebShadow = {});
848
- shadow[property] = value;
849
- var offset = shadow.shadowOffset || {
850
- width: 0,
851
- height: 0
852
- };
853
- var _shadow_shadowOpacity;
854
- var color = normalizeColor(shadow.shadowColor, (_shadow_shadowOpacity = shadow.shadowOpacity) !== null && _shadow_shadowOpacity !== void 0 ? _shadow_shadowOpacity : 1);
855
- if (!color) return;
856
- var next = `${shadowUnit(offset.width)} ${shadowUnit(offset.height)} ${shadowUnit(shadow.shadowRadius)} ${color}`;
857
- emitProperty(state, "boxShadow", state.flatBoxShadow ? `${state.flatBoxShadow}, ${next}` : next, 0, "", void 0, "", "", merge, originalValue, contextOnly);
858
- }
859
- function emitWebTextShadow(state, property, value, merge, originalValue, contextOnly) {
860
- var _state;
861
- var shadow = (_state = state).flatTextShadow || (_state.flatTextShadow = {});
862
- shadow[property] = value;
863
- var offset = shadow.textShadowOffset || {
864
- width: 0,
865
- height: 0
866
- };
867
- if (!shadow.textShadowColor) return;
868
- emitProperty(state, "textShadow", `${shadowUnit(offset.width)} ${shadowUnit(offset.height)} ${shadowUnit(shadow.textShadowRadius)} ${shadow.textShadowColor}`, 0, "", void 0, "", "", merge, originalValue, contextOnly);
869
- }
870
- function emitValue(state, property, raw, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly) {
871
- if (typeof raw === "string") raw = raw.trim();
872
- if (isVariable(raw)) raw = resolveVariableValue(property, raw, isWeb && !state.flatShouldDoClasses && state.styleProps.resolveValues === "auto" ? "value" : state.styleProps.resolveValues);
873
- emitBorderStyleDefault(state, property, condition, conditionKey, conditionWrappers, conditionSelector);
874
- if (typeof raw === "string" && (property === "transition" || property === "transitionProperty")) raw = normalizeTransitionNames(state, raw);
875
- if (legacyTransformParts.has(property)) {
876
- if (isWeb && state.flatShouldDoClasses && state.classNames.transform) {
877
- if (process.env.NODE_ENV === "development") warnOnce(`legacy transform part "${property}" is dropped because "transform" owns the property`);
878
- return;
879
- }
880
- var value = typeof raw === "string" ? configuredValue(state, property, raw) : raw;
881
- if (isWeb && state.flatShouldDoClasses && !condition) {
882
- var _direct;
883
- var direct = state;
884
- ((_direct = direct).flatLegacyTransforms || (_direct.flatLegacyTransforms = {}))[property] = value;
885
- emitProperty(state, "transform", transformsToString(Object.keys(direct.flatLegacyTransforms).sort().map(function(key2) {
886
- return { [key2]: direct.flatLegacyTransforms[key2] };
887
- })), 0, "", void 0, "", "", merge, originalValue, contextOnly);
888
- } else if (condition && isWeb && state.flatShouldDoClasses) emitProperty(state, "transform", `${property}(${value})`, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
889
- else merge(state, property, value, 1, false, originalValue);
890
- return;
891
- }
892
- if (isWeb && webShadowParts.has(property)) {
893
- var value1 = typeof raw === "string" ? configuredValue(state, property, raw) : raw;
894
- if (state.flatShouldDoClasses) emitWebShadow(state, property, value1, merge, originalValue, contextOnly);
895
- else merge(state, property, value1, 1, false, originalValue);
896
- return;
897
- }
898
- if (isWeb && webTextShadowParts.has(property)) {
899
- var value2 = typeof raw === "string" ? configuredValue(state, property, raw) : raw;
900
- if (state.flatShouldDoClasses) emitWebTextShadow(state, property, value2, merge, originalValue, contextOnly);
901
- else merge(state, property, value2, 1, false, originalValue);
902
- return;
903
- }
904
- if (isWeb && state.flatShouldDoClasses) {
905
- if (property === "transform") {
906
- var direct1 = state;
907
- if (process.env.NODE_ENV === "development" && direct1.flatLegacyTransforms) for (var part in direct1.flatLegacyTransforms) warnOnce(`legacy transform part "${part}" is dropped because "transform" owns the property`);
908
- direct1.flatLegacyTransforms = void 0;
909
- if (state.flatTransforms) {
910
- if (process.env.NODE_ENV === "development") for (var part1 in state.flatTransforms) warnOnce(`legacy transform part "${part1}" is dropped because "transform" owns the property`);
911
- state.flatTransforms = void 0;
912
- }
913
- }
914
- }
915
- if (isWeb && state.flatShouldDoClasses && property === "transform" && Array.isArray(raw)) raw = transformsToString(raw);
916
- if (typeof raw === "string" && property in borderTargets) {
917
- emitBorder(state, property, raw, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
918
- return;
919
- }
920
- if (typeof raw === "string" && property === "textDecoration") {
921
- emitTextDecoration(state, raw, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
922
- return;
923
- }
924
- if (typeof raw === "string" && property === "background") {
925
- var parts = splitComponents(raw);
926
- if (parts.length === 1 && !/^(?:url|image-set|.*gradient)\(/i.test(parts[0])) {
927
- emitResolved(state, "backgroundColor", parts[0], condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
928
- return;
929
- }
930
- if (!isWeb) {
931
- if (process.env.NODE_ENV === "development") warnOnce(`native background cannot represent "${raw}"; dropping it`);
932
- return;
933
- }
934
- }
935
- if (property === "x" || property === "y" || property === "scale" || property === "scaleX" || property === "scaleY" || property === "rotate") {
936
- var value3 = typeof raw === "string" ? configuredValue(state, property, raw) : raw;
937
- if ((!isWeb || !state.flatShouldDoClasses) && typeof value3 === "string" && !value3.startsWith(THEME_REF_PREFIX)) {
938
- if (property === "rotate" && !/^-?(?:\d+\.?\d*|\.\d+)(?:deg|rad)$/i.test(value3)) {
939
- if (process.env.NODE_ENV === "development") warnOnce(`native transform "${property}" cannot represent "${value3}"; dropping it`);
940
- if (condition & 1 && state.flatTransforms) delete state.flatTransforms[property];
941
- return;
942
- }
943
- if (/^-?(?:\d+\.?\d*|\.\d+)(?:px|dp)$/i.test(value3)) value3 = Number.parseFloat(value3);
944
- else if (Number.isFinite(Number(value3))) value3 = Number(value3);
945
- }
946
- emitTransform(state, property, value3, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
947
- return;
948
- }
949
- if (isWeb && !state.flatShouldDoClasses && !condition && property === "borderRadius") {
950
- if (typeof raw === "string") emitResolved(state, property, raw, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
951
- else emitProperty(state, property, raw, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
952
- return;
953
- }
954
- if (property === "transform" && typeof raw === "string") {
955
- var transform = parseNativeTransform(raw);
956
- if (transform) {
957
- emitProperty(state, property, transform, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
958
- return;
959
- }
960
- }
961
- var value4 = raw;
962
- if (typeof raw === "string") {
963
- value4 = configuredValue(state, property, raw);
964
- if (value4 === raw && /[\s,(]/.test(raw)) value4 = resolveEmbeddedTokens(state, property, raw);
965
- }
966
- if ((!isWeb || !state.flatShouldDoClasses) && typeof value4 === "string") {
967
- if (/^-?(?:\d+\.?\d*|\.\d+)(?:px|dp)$/i.test(value4)) value4 = Number.parseFloat(value4);
968
- else if (value4 !== "" && Number.isFinite(Number(value4))) value4 = Number(value4);
969
- }
970
- if (isWeb && state.flatShouldDoClasses && property === "boxShadow" && !condition) state.flatBoxShadow = value4;
971
- if (typeof value4 === "string" && (property === "backgroundImage" || property === "boxShadow" || property === "textShadow")) {
972
- var parsed = parseNativeStyle(property, value4);
973
- if (parsed) {
974
- if (property === "textShadow") {
975
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
976
- try {
977
- for (var _iterator = parsed[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
978
- var [key, parsedValue] = _step.value;
979
- emitProperty(state, key, parsedValue, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
980
- }
981
- } catch (err) {
982
- _didIteratorError = true;
983
- _iteratorError = err;
984
- } finally {
985
- try {
986
- if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
987
- } finally {
988
- if (_didIteratorError) throw _iteratorError;
989
- }
990
- }
991
- } else emitProperty(state, property === "backgroundImage" ? "experimental_backgroundImage" : property, parsed, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
992
- return;
993
- }
994
- }
995
- if (!isWeb && property === "fontVariant" && typeof value4 === "string") value4 = value4.split(/[,\s]+/).filter(Boolean);
996
- var expanded = state.styleProps.noExpand ? null : expandStyle(property, value4, state.conf.settings.styleCompat || "web");
997
- if (!expanded) {
998
- emitProperty(state, property, value4, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
999
- return;
1000
- }
1001
- if (typeof raw === "string" && expanded.length > 1) {
1002
- var parts1 = splitComponents(raw);
1003
- if (parts1.length > 0 && parts1.length <= (expanded.length === 4 ? 4 : 2)) {
1004
- for (var index = 0; index < expanded.length; index++) {
1005
- var partIndex = index === 0 || parts1.length === 1 ? 0 : index === 1 || index === 3 && parts1.length < 4 ? 1 : index === 2 && parts1.length < 3 ? 0 : index;
1006
- emitResolved(state, expanded[index][0], parts1[partIndex], condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
1007
- }
1008
- return;
1009
- }
1010
- }
1011
- for (var index1 = 0; index1 < expanded.length; index1++) emitProperty(state, expanded[index1][0], expanded[index1][1], condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
1012
- }
1013
- function contributeStyleString(state, property, source, merge, originalValue) {
1014
- var contextOnly = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : false;
1015
- if (isWeb && source.indexOf(":") !== -1 && (webShadowParts.has(property) || legacyTransformParts.has(property))) {
1016
- if (process.env.NODE_ENV === "development") warnOnce(`conditional "${property}" needs its composite property; dropping it`);
1017
- return true;
1018
- }
1019
- if (source.indexOf(":") === -1) {
1020
- emitValue(state, property, source, 0, "", void 0, "", "", merge, originalValue !== null && originalValue !== void 0 ? originalValue : source, contextOnly);
1021
- return true;
1022
- }
1023
- scanFlatValue(source, directStyleHandler, state, property, merge, originalValue, contextOnly);
1024
- return true;
1025
- }
1026
- function contributeFrontendValue(state, property, value, merge) {
1027
- var contextOnly = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;
1028
- if (value.base !== null) emitValue(state, property, value.base, 0, "", void 0, "", "", merge, value.base, contextOnly);
1029
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
1030
- try {
1031
- for (var _iterator = value.clauses[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
1032
- var clause = _step.value;
1033
- var source = clause.modifiers.join(":");
1034
- resolveClauseChain(state, source, 0, source.length, property, clause.payload, merge, clause.payload, contextOnly);
1035
- }
1036
- } catch (err) {
1037
- _didIteratorError = true;
1038
- _iteratorError = err;
1039
- } finally {
1040
- try {
1041
- if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
1042
- } finally {
1043
- if (_didIteratorError) throw _iteratorError;
1044
- }
1045
- }
1046
- return true;
1047
- }
1048
- function isConditionalStyleObject(state, value) {
1049
- if (Object.prototype.hasOwnProperty.call(value, "default")) return true;
1050
- for (var key in value) return key.length > 0 && !!resolveClauseChain(state, key, 0, key.length);
1051
- return false;
1052
- }
1053
- function contributeVariantClauseValue(state, property, value, conditionSource, merge, originalValue) {
1054
- var contextOnly = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : false;
1055
- if (value && (typeof value === "undefined" ? "undefined" : _type_of(value)) === "object" && !Array.isArray(value) && !isVariable(value) && isConditionalStyleObject(state, value)) {
1056
- for (var key in value) {
1057
- var payload = value[key];
1058
- if (payload == null) continue;
1059
- var source = key === "default" ? conditionSource : `${conditionSource}:${key}`;
1060
- resolveClauseChain(state, source, 0, source.length, property, payload, merge, payload, contextOnly, -1, -1, 2);
1061
- }
1062
- return;
1063
- }
1064
- resolveClauseChain(state, conditionSource, 0, conditionSource.length, property, value, merge, originalValue, contextOnly, -1, -1, 2);
1065
- }
1066
- function contributeStyleObject(state, property, value, merge, contextOnly) {
1067
- if (!isConditionalStyleObject(state, value)) return false;
1068
- if (isWeb && (webShadowParts.has(property) || legacyTransformParts.has(property))) {
1069
- if (process.env.NODE_ENV === "development") warnOnce(`conditional "${property}" needs its composite property; dropping it`);
1070
- return true;
1071
- }
1072
- var hasBase = false;
1073
- var base = value.default;
1074
- if (base != null) {
1075
- emitValue(state, property, base, 0, "", void 0, "", "", merge, base, contextOnly);
1076
- hasBase = true;
1077
- }
1078
- var conditions = 0;
1079
- for (var key in value) {
1080
- if (key === "default") continue;
1081
- var payload = value[key];
1082
- if (payload == null) continue;
1083
- conditions |= resolveClauseChain(state, key, 0, key.length, property, payload, merge, payload, contextOnly, -1, -1, 1);
1084
- }
1085
- if ((!isWeb || !state.flatShouldDoClasses) && conditions & 12 && !hasBase) {
1086
- var resting = implicitLifecycleBase(property);
1087
- if (resting !== null) emitValue(state, property, resting, 0, "", void 0, "", "", merge, resting, contextOnly);
1088
- }
1089
- return true;
1090
- }
1091
- function contributeStyleValue(state, property, value, merge, originalValue) {
1092
- var contextOnly = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : false;
1093
- if (value === "safe" && isSafeAreaKey(property)) {
1094
- var expanded = expandSafeAreaValue(property);
1095
- if (expanded) {
1096
- state.flatUsesSafeArea = true;
1097
- var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
1098
- try {
1099
- for (var _iterator = expanded[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
1100
- var [key, resolved] = _step.value;
1101
- emitValue(state, key, resolved, 0, "", void 0, "", "", merge, originalValue !== null && originalValue !== void 0 ? originalValue : value, contextOnly);
1102
- }
1103
- } catch (err) {
1104
- _didIteratorError = true;
1105
- _iteratorError = err;
1106
- } finally {
1107
- try {
1108
- if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
1109
- } finally {
1110
- if (_didIteratorError) throw _iteratorError;
1111
- }
1112
- }
1113
- return true;
1114
- }
1115
- }
1116
- if (typeof value === "string") return contributeStyleString(state, property, value, merge, originalValue, contextOnly);
1117
- if (value && (typeof value === "undefined" ? "undefined" : _type_of(value)) === "object" && !Array.isArray(value) && !isVariable(value) && contributeStyleObject(state, property, value, merge, contextOnly)) return true;
1118
- if (value != null) {
1119
- emitValue(state, property, value, 0, "", void 0, "", "", merge, originalValue !== null && originalValue !== void 0 ? originalValue : value, contextOnly);
1120
- return true;
1121
- }
1122
- return false;
1123
- }
1124
- function clearDirectStyle(state, property) {
1125
- var direct = state;
1126
- var atomicKey = property.startsWith("transition") ? "transition" : webShadowParts.has(property) ? "boxShadow" : webTextShadowParts.has(property) ? "textShadow" : legacyTransformParts.has(property) ? "transform" : property;
1127
- if (direct.flatAtomics) delete direct.flatAtomics[atomicKey];
1128
- delete state.classNames[atomicKey];
1129
- }
1130
-
1131
- export { clearDirectStyle, contributeFrontendValue, contributeStyleString, contributeStyleValue, contributeVariantClauseValue, directStyleSignature, flushDirectStyles, getDirectDynamicThemeAccess, isConditionalStyleObject, platformMatches, resolveClauseChain };
1132
- //# sourceMappingURL=directStyle.native.js.map