@hanzogui/web 4.4.0 → 7.3.0

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 (370) hide show
  1. package/LICENSE +40 -19
  2. package/dist/cjs/_withStableStyle.cjs +1 -1
  3. package/dist/cjs/_withStableStyle.native.js +1 -1
  4. package/dist/cjs/config.cjs +2 -2
  5. package/dist/cjs/config.native.js +2 -2
  6. package/dist/cjs/config.native.js.map +1 -1
  7. package/dist/cjs/constants/constants.cjs +3 -3
  8. package/dist/cjs/constants/constants.native.js +3 -3
  9. package/dist/cjs/createComponent.cjs +307 -530
  10. package/dist/cjs/createComponent.native.js +265 -588
  11. package/dist/cjs/createComponent.native.js.map +1 -1
  12. package/dist/cjs/createGui.cjs +19 -48
  13. package/dist/cjs/createGui.native.js +22 -65
  14. package/dist/cjs/createGui.native.js.map +1 -1
  15. package/dist/cjs/eventHandling.native.js +19 -9
  16. package/dist/cjs/eventHandling.native.js.map +1 -1
  17. package/dist/cjs/helpers/createDesignSystem.cjs +22 -36
  18. package/dist/cjs/helpers/createDesignSystem.native.js +19 -91
  19. package/dist/cjs/helpers/createDesignSystem.native.js.map +1 -1
  20. package/dist/cjs/helpers/defaultAnimationDriver.cjs +1 -1
  21. package/dist/cjs/helpers/defaultAnimationDriver.native.js +1 -1
  22. package/dist/cjs/helpers/expandStyle.cjs +11 -74
  23. package/dist/cjs/helpers/expandStyle.native.js +29 -81
  24. package/dist/cjs/helpers/expandStyle.native.js.map +1 -1
  25. package/dist/cjs/helpers/expandStyles.cjs +2 -15
  26. package/dist/cjs/helpers/expandStyles.native.js +7 -13
  27. package/dist/cjs/helpers/expandStyles.native.js.map +1 -1
  28. package/dist/cjs/helpers/getSplitStyles.cjs +233 -557
  29. package/dist/cjs/helpers/getSplitStyles.native.js +204 -659
  30. package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
  31. package/dist/cjs/helpers/getThemeCSSRules.cjs +8 -16
  32. package/dist/cjs/helpers/getTokenForKey.cjs +32 -54
  33. package/dist/cjs/helpers/getTokenForKey.native.js +40 -59
  34. package/dist/cjs/helpers/getTokenForKey.native.js.map +1 -1
  35. package/dist/cjs/helpers/insertStyleRule.cjs +27 -79
  36. package/dist/cjs/helpers/insertStyleRule.native.js +16 -335
  37. package/dist/cjs/helpers/insertStyleRule.native.js.map +1 -1
  38. package/dist/cjs/helpers/isActivePlatform.cjs +2 -17
  39. package/dist/cjs/helpers/isActivePlatform.native.js +2 -17
  40. package/dist/cjs/helpers/isActivePlatform.native.js.map +1 -1
  41. package/dist/cjs/helpers/log.cjs +1 -4
  42. package/dist/cjs/helpers/log.native.js +1 -6
  43. package/dist/cjs/helpers/log.native.js.map +1 -1
  44. package/dist/cjs/helpers/propMapper.cjs +37 -110
  45. package/dist/cjs/helpers/propMapper.native.js +54 -131
  46. package/dist/cjs/helpers/propMapper.native.js.map +1 -1
  47. package/dist/cjs/helpers/skipProps.cjs +3 -11
  48. package/dist/cjs/helpers/skipProps.native.js +3 -11
  49. package/dist/cjs/helpers/skipProps.native.js.map +1 -1
  50. package/dist/cjs/helpers/useRenderElement.cjs +7 -18
  51. package/dist/cjs/helpers/useRenderElement.native.js +7 -15
  52. package/dist/cjs/helpers/useRenderElement.native.js.map +1 -1
  53. package/dist/cjs/helpers/wrapStyleTags.cjs +11 -15
  54. package/dist/cjs/helpers/wrapStyleTags.native.js +3 -22
  55. package/dist/cjs/helpers/wrapStyleTags.native.js.map +1 -1
  56. package/dist/cjs/hooks/getThemeProxied.cjs +10 -54
  57. package/dist/cjs/hooks/getThemeProxied.native.js +27 -48
  58. package/dist/cjs/hooks/getThemeProxied.native.js.map +1 -1
  59. package/dist/cjs/hooks/useTheme.cjs +2 -2
  60. package/dist/cjs/hooks/useTheme.native.js +2 -2
  61. package/dist/cjs/hooks/useTheme.native.js.map +1 -1
  62. package/dist/cjs/hooks/useThemeState.cjs +66 -124
  63. package/dist/cjs/hooks/useThemeState.native.js +64 -142
  64. package/dist/cjs/hooks/useThemeState.native.js.map +1 -1
  65. package/dist/cjs/insertFont.cjs +6 -15
  66. package/dist/cjs/insertFont.native.js +7 -23
  67. package/dist/cjs/insertFont.native.js.map +1 -1
  68. package/dist/cjs/setupReactNative.cjs +4 -24
  69. package/dist/cjs/setupReactNative.native.js +5 -26
  70. package/dist/cjs/setupReactNative.native.js.map +1 -1
  71. package/dist/cjs/views/GuiProvider.cjs +4 -6
  72. package/dist/cjs/views/GuiProvider.native.js +5 -7
  73. package/dist/cjs/views/GuiProvider.native.js.map +1 -1
  74. package/dist/cjs/views/Text.cjs +11 -18
  75. package/dist/cjs/views/Text.native.js +6 -14
  76. package/dist/cjs/views/Text.native.js.map +1 -1
  77. package/dist/cjs/views/ThemeProvider.cjs +9 -11
  78. package/dist/cjs/views/ThemeProvider.native.js +3 -16
  79. package/dist/cjs/views/ThemeProvider.native.js.map +1 -1
  80. package/dist/cjs/views/View.native.js.map +1 -1
  81. package/dist/esm/_withStableStyle.mjs +1 -1
  82. package/dist/esm/_withStableStyle.mjs.map +1 -1
  83. package/dist/esm/_withStableStyle.native.js +1 -1
  84. package/dist/esm/config.mjs +2 -2
  85. package/dist/esm/config.mjs.map +1 -1
  86. package/dist/esm/config.native.js +2 -2
  87. package/dist/esm/config.native.js.map +1 -1
  88. package/dist/esm/constants/constants.mjs +3 -3
  89. package/dist/esm/constants/constants.native.js +3 -3
  90. package/dist/esm/createComponent.mjs +311 -536
  91. package/dist/esm/createComponent.mjs.map +1 -1
  92. package/dist/esm/createComponent.native.js +265 -591
  93. package/dist/esm/createComponent.native.js.map +1 -1
  94. package/dist/esm/createGui.mjs +20 -51
  95. package/dist/esm/createGui.mjs.map +1 -1
  96. package/dist/esm/createGui.native.js +24 -70
  97. package/dist/esm/createGui.native.js.map +1 -1
  98. package/dist/esm/createVariables.mjs.map +1 -1
  99. package/dist/esm/createVariables.native.js.map +1 -1
  100. package/dist/esm/eventHandling.native.js +19 -9
  101. package/dist/esm/eventHandling.native.js.map +1 -1
  102. package/dist/esm/helpers/createDesignSystem.mjs +22 -36
  103. package/dist/esm/helpers/createDesignSystem.mjs.map +1 -1
  104. package/dist/esm/helpers/createDesignSystem.native.js +18 -90
  105. package/dist/esm/helpers/createDesignSystem.native.js.map +1 -1
  106. package/dist/esm/helpers/defaultAnimationDriver.mjs +1 -1
  107. package/dist/esm/helpers/defaultAnimationDriver.mjs.map +1 -1
  108. package/dist/esm/helpers/defaultAnimationDriver.native.js +1 -1
  109. package/dist/esm/helpers/expandStyle.mjs +12 -73
  110. package/dist/esm/helpers/expandStyle.mjs.map +1 -1
  111. package/dist/esm/helpers/expandStyle.native.js +28 -80
  112. package/dist/esm/helpers/expandStyle.native.js.map +1 -1
  113. package/dist/esm/helpers/expandStyles.mjs +2 -15
  114. package/dist/esm/helpers/expandStyles.mjs.map +1 -1
  115. package/dist/esm/helpers/expandStyles.native.js +7 -13
  116. package/dist/esm/helpers/expandStyles.native.js.map +1 -1
  117. package/dist/esm/helpers/getSplitStyles.mjs +236 -560
  118. package/dist/esm/helpers/getSplitStyles.mjs.map +1 -1
  119. package/dist/esm/helpers/getSplitStyles.native.js +205 -662
  120. package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
  121. package/dist/esm/helpers/getThemeCSSRules.mjs +8 -16
  122. package/dist/esm/helpers/getThemeCSSRules.mjs.map +1 -1
  123. package/dist/esm/helpers/getTokenForKey.mjs +32 -54
  124. package/dist/esm/helpers/getTokenForKey.mjs.map +1 -1
  125. package/dist/esm/helpers/getTokenForKey.native.js +40 -59
  126. package/dist/esm/helpers/getTokenForKey.native.js.map +1 -1
  127. package/dist/esm/helpers/insertStyleRule.mjs +27 -79
  128. package/dist/esm/helpers/insertStyleRule.mjs.map +1 -1
  129. package/dist/esm/helpers/insertStyleRule.native.js +14 -333
  130. package/dist/esm/helpers/insertStyleRule.native.js.map +1 -1
  131. package/dist/esm/helpers/isActivePlatform.mjs +2 -17
  132. package/dist/esm/helpers/isActivePlatform.mjs.map +1 -1
  133. package/dist/esm/helpers/isActivePlatform.native.js +2 -17
  134. package/dist/esm/helpers/isActivePlatform.native.js.map +1 -1
  135. package/dist/esm/helpers/log.mjs +1 -4
  136. package/dist/esm/helpers/log.mjs.map +1 -1
  137. package/dist/esm/helpers/log.native.js +1 -6
  138. package/dist/esm/helpers/log.native.js.map +1 -1
  139. package/dist/esm/helpers/propMapper.mjs +37 -108
  140. package/dist/esm/helpers/propMapper.mjs.map +1 -1
  141. package/dist/esm/helpers/propMapper.native.js +54 -131
  142. package/dist/esm/helpers/propMapper.native.js.map +1 -1
  143. package/dist/esm/helpers/skipProps.mjs +3 -10
  144. package/dist/esm/helpers/skipProps.mjs.map +1 -1
  145. package/dist/esm/helpers/skipProps.native.js +2 -10
  146. package/dist/esm/helpers/skipProps.native.js.map +1 -1
  147. package/dist/esm/helpers/useRenderElement.mjs +9 -22
  148. package/dist/esm/helpers/useRenderElement.mjs.map +1 -1
  149. package/dist/esm/helpers/useRenderElement.native.js +8 -17
  150. package/dist/esm/helpers/useRenderElement.native.js.map +1 -1
  151. package/dist/esm/helpers/wrapStyleTags.mjs +11 -15
  152. package/dist/esm/helpers/wrapStyleTags.mjs.map +1 -1
  153. package/dist/esm/helpers/wrapStyleTags.native.js +1 -20
  154. package/dist/esm/helpers/wrapStyleTags.native.js.map +1 -1
  155. package/dist/esm/hooks/getThemeProxied.mjs +11 -52
  156. package/dist/esm/hooks/getThemeProxied.mjs.map +1 -1
  157. package/dist/esm/hooks/getThemeProxied.native.js +27 -48
  158. package/dist/esm/hooks/getThemeProxied.native.js.map +1 -1
  159. package/dist/esm/hooks/useTheme.mjs +2 -2
  160. package/dist/esm/hooks/useTheme.mjs.map +1 -1
  161. package/dist/esm/hooks/useTheme.native.js +2 -2
  162. package/dist/esm/hooks/useTheme.native.js.map +1 -1
  163. package/dist/esm/hooks/useThemeState.mjs +67 -124
  164. package/dist/esm/hooks/useThemeState.mjs.map +1 -1
  165. package/dist/esm/hooks/useThemeState.native.js +64 -142
  166. package/dist/esm/hooks/useThemeState.native.js.map +1 -1
  167. package/dist/esm/insertFont.mjs +7 -17
  168. package/dist/esm/insertFont.mjs.map +1 -1
  169. package/dist/esm/insertFont.native.js +7 -24
  170. package/dist/esm/insertFont.native.js.map +1 -1
  171. package/dist/esm/setupReactNative.mjs +4 -24
  172. package/dist/esm/setupReactNative.mjs.map +1 -1
  173. package/dist/esm/setupReactNative.native.js +5 -26
  174. package/dist/esm/setupReactNative.native.js.map +1 -1
  175. package/dist/esm/views/GuiProvider.mjs +4 -6
  176. package/dist/esm/views/GuiProvider.mjs.map +1 -1
  177. package/dist/esm/views/GuiProvider.native.js +5 -7
  178. package/dist/esm/views/GuiProvider.native.js.map +1 -1
  179. package/dist/esm/views/Slot.mjs.map +1 -1
  180. package/dist/esm/views/Text.mjs +11 -18
  181. package/dist/esm/views/Text.mjs.map +1 -1
  182. package/dist/esm/views/Text.native.js +5 -12
  183. package/dist/esm/views/Text.native.js.map +1 -1
  184. package/dist/esm/views/Theme.mjs.map +1 -1
  185. package/dist/esm/views/ThemeProvider.mjs +9 -11
  186. package/dist/esm/views/ThemeProvider.mjs.map +1 -1
  187. package/dist/esm/views/ThemeProvider.native.js +1 -14
  188. package/dist/esm/views/ThemeProvider.native.js.map +1 -1
  189. package/dist/esm/views/View.mjs.map +1 -1
  190. package/dist/esm/views/View.native.js.map +1 -1
  191. package/package.json +29 -22
  192. package/src/_withStableStyle.tsx +2 -2
  193. package/src/config.ts +7 -4
  194. package/src/constants/accessibilityDirectMap.tsx +1 -1
  195. package/src/constants/constants.ts +3 -3
  196. package/src/createComponent.tsx +2 -2
  197. package/src/createGui.ts +2 -2
  198. package/src/eventHandling.native.ts +31 -10
  199. package/src/helpers/createMediaStyle.ts +1 -1
  200. package/src/helpers/defaultAnimationDriver.tsx +1 -1
  201. package/src/helpers/getSplitStyles.tsx +1 -1
  202. package/src/helpers/getTokenForKey.ts +42 -29
  203. package/src/helpers/insertStyleRule.tsx +2 -2
  204. package/src/helpers/isActivePlatform.ts +5 -5
  205. package/src/helpers/mergeProps.ts +1 -1
  206. package/src/helpers/skipProps.ts +1 -1
  207. package/src/helpers/useRenderElement.tsx +4 -1
  208. package/src/hooks/useTheme.tsx +2 -2
  209. package/src/interfaces/GuiComponentPropsBaseBase.tsx +10 -4
  210. package/src/styled.tsx +2 -2
  211. package/src/types.tsx +33 -24
  212. package/src/views/View.tsx +6 -1
  213. package/types/Gui.d.ts.map +1 -0
  214. package/types/_withStableStyle.d.ts.map +1 -0
  215. package/types/config.d.ts.map +1 -0
  216. package/types/constants/accessibilityDirectMap.d.ts.map +1 -0
  217. package/types/constants/accessibilityDirectMap.native.d.ts.map +1 -0
  218. package/types/constants/constants.d.ts.map +1 -0
  219. package/types/constants/isDevTools.d.ts.map +1 -0
  220. package/types/contexts/ComponentContext.d.ts.map +1 -0
  221. package/types/contexts/GroupContext.d.ts.map +1 -0
  222. package/types/createComponent.d.ts.map +1 -0
  223. package/types/createFont.d.ts.map +1 -0
  224. package/types/createGui.d.ts.map +1 -0
  225. package/types/createShorthands.d.ts.map +1 -0
  226. package/types/createTokens.d.ts.map +1 -0
  227. package/types/createVariable.d.ts.map +1 -0
  228. package/types/createVariables.d.ts.map +1 -0
  229. package/types/defaultComponentState.d.ts.map +1 -0
  230. package/types/eventHandling.d.ts.map +1 -0
  231. package/types/eventHandling.native.d.ts.map +1 -0
  232. package/types/helpers/consoleLog.native.d.ts.map +1 -0
  233. package/types/helpers/createDesignSystem.d.ts.map +1 -0
  234. package/types/helpers/createMediaStyle.d.ts.map +1 -0
  235. package/types/helpers/createStyledContext.d.ts.map +1 -0
  236. package/types/helpers/defaultAnimationDriver.d.ts.map +1 -0
  237. package/types/helpers/defaultOffset.d.ts.map +1 -0
  238. package/types/helpers/expandStyle.d.ts.map +1 -0
  239. package/types/helpers/expandStyles.d.ts.map +1 -0
  240. package/types/helpers/getCSSStylesAtomic.d.ts.map +1 -0
  241. package/types/helpers/getCSSStylesAtomic.native.d.ts.map +1 -0
  242. package/types/helpers/getDefaultProps.d.ts.map +1 -0
  243. package/types/helpers/getDynamicVal.d.ts.map +1 -0
  244. package/types/helpers/getExpandedShorthands.d.ts.map +1 -0
  245. package/types/helpers/getFontLanguage.d.ts.map +1 -0
  246. package/types/helpers/getGroupPropParts.d.ts.map +1 -0
  247. package/types/helpers/getShorthandValue.d.ts.map +1 -0
  248. package/types/helpers/getSplitStyles.d.ts.map +1 -0
  249. package/types/helpers/getThemeCSSRules.d.ts.map +1 -0
  250. package/types/helpers/getThemeCSSRules.native.d.ts.map +1 -0
  251. package/types/helpers/getTokenForKey.d.ts.map +1 -0
  252. package/types/helpers/getVariantExtras.d.ts.map +1 -0
  253. package/types/helpers/insertStyleRule.d.ts.map +1 -0
  254. package/types/helpers/isActivePlatform.d.ts +5 -5
  255. package/types/helpers/isActivePlatform.d.ts.map +1 -0
  256. package/types/helpers/isActiveTheme.d.ts.map +1 -0
  257. package/types/helpers/isGuiComponent.d.ts.map +1 -0
  258. package/types/helpers/isGuiElement.d.ts.map +1 -0
  259. package/types/helpers/isObj.d.ts.map +1 -0
  260. package/types/helpers/log.d.ts.map +1 -0
  261. package/types/helpers/mainThreadPressEvents.d.ts.map +1 -0
  262. package/types/helpers/mainThreadPressEvents.native.d.ts.map +1 -0
  263. package/types/helpers/matchMedia.d.ts.map +1 -0
  264. package/types/helpers/matchMedia.native.d.ts.map +1 -0
  265. package/types/helpers/mediaObjectToString.d.ts.map +1 -0
  266. package/types/helpers/mediaState.d.ts.map +1 -0
  267. package/types/helpers/mergeProps.d.ts.map +1 -0
  268. package/types/helpers/mergeRenderElementProps.d.ts.map +1 -0
  269. package/types/helpers/mergeSlotStyleProps.d.ts.map +1 -0
  270. package/types/helpers/mergeVariants.d.ts.map +1 -0
  271. package/types/helpers/nativeOnlyProps.d.ts.map +1 -0
  272. package/types/helpers/normalizeColor.d.ts.map +1 -0
  273. package/types/helpers/normalizeColor.native.d.ts.map +1 -0
  274. package/types/helpers/normalizeShadow.d.ts.map +1 -0
  275. package/types/helpers/normalizeShadow.native.d.ts.map +1 -0
  276. package/types/helpers/normalizeStyle.d.ts.map +1 -0
  277. package/types/helpers/normalizeStylePropKeys.d.ts.map +1 -0
  278. package/types/helpers/normalizeStylePropKeys.native.d.ts.map +1 -0
  279. package/types/helpers/normalizeValueWithProperty.d.ts.map +1 -0
  280. package/types/helpers/objectIdentityKey.d.ts.map +1 -0
  281. package/types/helpers/parseBorderShorthand.d.ts.map +1 -0
  282. package/types/helpers/parseBorderShorthand.native.d.ts.map +1 -0
  283. package/types/helpers/parseNativeStyle.d.ts.map +1 -0
  284. package/types/helpers/parseOutlineShorthand.d.ts.map +1 -0
  285. package/types/helpers/parseOutlineShorthand.native.d.ts.map +1 -0
  286. package/types/helpers/platformResolveValue.d.ts.map +1 -0
  287. package/types/helpers/platformResolveValue.native.d.ts.map +1 -0
  288. package/types/helpers/pointerEvents.d.ts.map +1 -0
  289. package/types/helpers/pointerEvents.native.d.ts.map +1 -0
  290. package/types/helpers/propMapper.d.ts.map +1 -0
  291. package/types/helpers/proxyThemeToParents.d.ts.map +1 -0
  292. package/types/helpers/proxyThemeVariables.d.ts.map +1 -0
  293. package/types/helpers/pseudoDescriptors.d.ts.map +1 -0
  294. package/types/helpers/pseudoTransitions.d.ts.map +1 -0
  295. package/types/helpers/registerCSSVariable.d.ts.map +1 -0
  296. package/types/helpers/resolveAnimationDriver.d.ts.map +1 -0
  297. package/types/helpers/resolveCompoundTokens.d.ts.map +1 -0
  298. package/types/helpers/resolveRem.d.ts.map +1 -0
  299. package/types/helpers/resolveRem.native.d.ts.map +1 -0
  300. package/types/helpers/resolveSafeArea.d.ts.map +1 -0
  301. package/types/helpers/resolveSafeArea.native.d.ts.map +1 -0
  302. package/types/helpers/setElementProps.d.ts.map +1 -0
  303. package/types/helpers/setElementProps.native.d.ts.map +1 -0
  304. package/types/helpers/skipProps.d.ts +1 -1
  305. package/types/helpers/skipProps.d.ts.map +1 -0
  306. package/types/helpers/sortString.d.ts.map +1 -0
  307. package/types/helpers/subscribeToContextGroup.d.ts.map +1 -0
  308. package/types/helpers/themeable.d.ts.map +1 -0
  309. package/types/helpers/themes.d.ts.map +1 -0
  310. package/types/helpers/timer.d.ts.map +1 -0
  311. package/types/helpers/transformsToString.d.ts.map +1 -0
  312. package/types/helpers/useRenderElement.d.ts.map +1 -0
  313. package/types/helpers/webPropsToSkip.d.ts.map +1 -0
  314. package/types/helpers/webPropsToSkip.native.d.ts.map +1 -0
  315. package/types/helpers/wrapStyleTags.d.ts +1 -1
  316. package/types/helpers/wrapStyleTags.d.ts.map +1 -0
  317. package/types/hooks/doesRootSchemeMatchSystem.d.ts.map +1 -0
  318. package/types/hooks/doesRootSchemeMatchSystem.native.d.ts.map +1 -0
  319. package/types/hooks/getThemeProxied.d.ts.map +1 -0
  320. package/types/hooks/useComponentState.d.ts.map +1 -0
  321. package/types/hooks/useDisableSSR.d.ts.map +1 -0
  322. package/types/hooks/useIsTouchDevice.d.ts.map +1 -0
  323. package/types/hooks/useMedia.d.ts.map +1 -0
  324. package/types/hooks/useProps.d.ts.map +1 -0
  325. package/types/hooks/useTheme.d.ts.map +1 -0
  326. package/types/hooks/useThemeName.d.ts.map +1 -0
  327. package/types/hooks/useThemeState.d.ts.map +1 -0
  328. package/types/index.d.ts.map +1 -0
  329. package/types/inject-styles.d.ts.map +1 -0
  330. package/types/insertFont.d.ts.map +1 -0
  331. package/types/interfaces/CSSColorNames.d.ts.map +1 -0
  332. package/types/interfaces/GetRef.d.ts.map +1 -0
  333. package/types/interfaces/GuiComponentEvents.d.ts.map +1 -0
  334. package/types/interfaces/GuiComponentPropsBaseBase.d.ts +3 -3
  335. package/types/interfaces/GuiComponentPropsBaseBase.d.ts.map +1 -0
  336. package/types/interfaces/RNExclusiveTypes.d.ts.map +1 -0
  337. package/types/setupHooks.d.ts.map +1 -0
  338. package/types/setupReactNative.d.ts.map +1 -0
  339. package/types/styled.d.ts +1 -1
  340. package/types/styled.d.ts.map +1 -0
  341. package/types/type-utils.d.ts.map +1 -0
  342. package/types/types.d.ts +17 -17
  343. package/types/types.d.ts.map +1 -0
  344. package/types/views/Configuration.d.ts +1 -1
  345. package/types/views/Configuration.d.ts.map +1 -0
  346. package/types/views/FontLanguage.d.ts +1 -1
  347. package/types/views/FontLanguage.d.ts.map +1 -0
  348. package/types/views/FontLanguage.native.d.ts +2 -1
  349. package/types/views/FontLanguage.native.d.ts.map +1 -0
  350. package/types/views/GuiProvider.d.ts +2 -1
  351. package/types/views/GuiProvider.d.ts.map +1 -0
  352. package/types/views/GuiRoot.d.ts +1 -1
  353. package/types/views/GuiRoot.d.ts.map +1 -0
  354. package/types/views/GuiRoot.native.d.ts.map +1 -0
  355. package/types/views/Slot.d.ts +1 -1
  356. package/types/views/Slot.d.ts.map +1 -0
  357. package/types/views/Text.d.ts.map +1 -0
  358. package/types/views/Theme.d.ts.map +1 -0
  359. package/types/views/ThemeDebug.d.ts.map +1 -0
  360. package/types/views/ThemeDebug.native.d.ts.map +1 -0
  361. package/types/views/ThemeProvider.d.ts +1 -1
  362. package/types/views/ThemeProvider.d.ts.map +1 -0
  363. package/types/views/View.d.ts.map +1 -0
  364. package/inject-styles/index.cjs +0 -2
  365. package/inject-styles/index.js +0 -2
  366. package/tsconfig.json +0 -44
  367. package/tsconfig.test.json +0 -9
  368. package/vitest.config.d.ts +0 -3
  369. package/vitest.config.d.ts.map +0 -1
  370. package/vitest.config.ts +0 -14
@@ -55,7 +55,7 @@ var import_getCSSStylesAtomic = require("./getCSSStylesAtomic.native.js");
55
55
  var import_getDefaultProps = require("./getDefaultProps.native.js");
56
56
  var import_getDynamicVal = require("./getDynamicVal.native.js");
57
57
  var import_getGroupPropParts = require("./getGroupPropParts.native.js");
58
- var import_insertStyleRule = require("./insertStyleRule.native.js");
58
+ require("./insertStyleRule.native.js");
59
59
  var import_isActivePlatform = require("./isActivePlatform.native.js");
60
60
  var import_isActiveTheme = require("./isActiveTheme.native.js");
61
61
  var import_log = require("./log.native.js");
@@ -76,13 +76,9 @@ var PROP_SPLIT = "-";
76
76
  function normalizeGroupKey(key, groupContext) {
77
77
  var parts = key.split("-");
78
78
  var plen = parts.length;
79
- if (
80
- // check if its actually a simple group selector to avoid breaking selectors
81
- plen === 2 || plen === 3 && import_pseudoDescriptors.pseudoPriorities[parts[parts.length - 1]]) {
79
+ if (plen === 2 || plen === 3 && import_pseudoDescriptors.pseudoPriorities[parts[parts.length - 1]]) {
82
80
  var name = parts[1];
83
- if (name !== "true" && groupContext && !groupContext[name]) {
84
- return key.replace("$group-", "$group-true-");
85
- }
81
+ if (name !== "true" && groupContext && !groupContext[name]) return key.replace("$group-", "$group-true-");
86
82
  }
87
83
  return key;
88
84
  }
@@ -97,12 +93,8 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
97
93
  viewProps[keyInit] = valInit;
98
94
  return "continue";
99
95
  }
100
- if (process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) {
101
- time`before-prop-${keyInit}`;
102
- }
103
- if (process.env.NODE_ENV === "test" && keyInit === "jestAnimatedStyle") {
104
- return "continue";
105
- }
96
+ if (process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`before-prop-${keyInit}`;
97
+ if (process.env.NODE_ENV === "test" && keyInit === "jestAnimatedStyle") return "continue";
106
98
  if (accept) {
107
99
  var accepted = accept[keyInit];
108
100
  if ((accepted === "style" || accepted === "textStyle") && valInit && (typeof valInit === "undefined" ? "undefined" : _type_of(valInit)) === "object") {
@@ -111,9 +103,7 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
111
103
  }
112
104
  }
113
105
  if (!disableExpandShorthands) {
114
- if (keyInit in shorthands) {
115
- keyInit = shorthands[keyInit];
116
- }
106
+ if (keyInit in shorthands) keyInit = shorthands[keyInit];
117
107
  }
118
108
  if (keyInit === "className") return "continue";
119
109
  if (asChild) {
@@ -121,91 +111,33 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
121
111
  if (defaults) {
122
112
  var _defaults_keyOg;
123
113
  var defaultVal = (_defaults_keyOg = defaults[keyOg2]) !== null && _defaults_keyOg !== void 0 ? _defaults_keyOg : defaults[keyInit];
124
- if (defaultVal !== void 0 && valInit === defaultVal) {
125
- return "continue";
126
- }
114
+ if (defaultVal !== void 0 && valInit === defaultVal) return "continue";
127
115
  }
128
116
  }
129
117
  if (keyInit in import_skipProps.skipProps && !noSkip && !isHOC) {
130
118
  var _driver_animations;
131
- if (keyInit === "group") {
132
- if (false) {
133
- var identifier2 = `t_group_${valInit}`;
134
- var containerType = webContainerType || "inline-size";
135
- var containerCSS = ["container", void 0, identifier2, void 0, [`.${identifier2} { container-name: ${valInit}; container-type: ${containerType}; }`]];
136
- addStyleToInsertRules(rulesToInsert, containerCSS);
137
- }
138
- }
139
- if (keyInit === "transition" && typeof valInit === "string" && !(driver === null || driver === void 0 ? void 0 : (_driver_animations = driver.animations) === null || _driver_animations === void 0 ? void 0 : _driver_animations[valInit])) {} else {
140
- return "continue";
141
- }
119
+ if (keyInit === "group") ;
120
+ if (keyInit === "transition" && typeof valInit === "string" && !(driver === null || driver === void 0 ? void 0 : (_driver_animations = driver.animations) === null || _driver_animations === void 0 ? void 0 : _driver_animations[valInit])) {} else return "continue";
142
121
  }
143
122
  var isValidStyleKeyInit = isValidStyleKey(keyInit, validStyles, accept);
144
- if (false) {
145
- if (staticConfig.isReactNative && keyInit.startsWith("data-")) {
146
- var _viewProps2, _dataSet;
147
- keyInit = keyInit.replace("data-", "");
148
- (_viewProps2 = viewProps)[_dataSet = "dataSet"] || (_viewProps2[_dataSet] = {});
149
- viewProps["dataSet"][keyInit] = valInit;
150
- return "continue";
151
- }
152
- }
153
- if (true) {
154
- if (!isValidStyleKeyInit) {
155
- if (!import_constants.isAndroid) {
156
- if (keyInit === "elevationAndroid") return "continue";
157
- }
158
- if (keyInit === "userSelect") {
159
- keyInit = "selectable";
160
- valInit = valInit !== "none";
161
- } else if (keyInit.startsWith("data-")) {
162
- return "continue";
163
- }
164
- }
165
- }
166
- if (false) {
167
- if (!noExpand) {
168
- if (keyInit === "disabled" && valInit === true) {
169
- viewProps["aria-disabled"] = true;
170
- if (elementType === "button" || elementType === "form" || elementType === "input" || elementType === "select" || elementType === "textarea") {
171
- viewProps.disabled = true;
172
- }
173
- if (!(variants === null || variants === void 0 ? void 0 : variants.disabled)) {
174
- return "continue";
175
- }
176
- }
177
- if (keyInit === "testID") {
178
- if (isReactNative) {
179
- viewProps.testID = valInit;
180
- } else {
181
- viewProps["data-testid"] = valInit;
182
- if (styleProps.isAnimated && (driver === null || driver === void 0 ? void 0 : driver.isReactNative)) {
183
- viewProps.testID = valInit;
184
- }
185
- }
186
- return "continue";
187
- }
188
- if (keyInit === "id") {
189
- viewProps.id = valInit;
190
- return "continue";
191
- }
123
+ if (!isValidStyleKeyInit) {
124
+ if (!import_constants.isAndroid) {
125
+ if (keyInit === "elevationAndroid") return "continue";
192
126
  }
127
+ if (keyInit === "userSelect") {
128
+ keyInit = "selectable";
129
+ valInit = valInit !== "none";
130
+ } else if (keyInit.startsWith("data-")) return "continue";
193
131
  }
194
132
  var isVariant = !isValidStyleKeyInit && variants && keyInit in variants;
195
133
  var isStyleLikeKey = isValidStyleKeyInit || isVariant;
196
134
  var isPseudo = keyInit in import_helpers.validPseudoKeys;
197
135
  var isMedia = !isStyleLikeKey && !isPseudo ? (0, import_useMedia.getMediaKey)(keyInit) : false;
198
136
  var isMediaOrPseudo = Boolean(isMedia || isPseudo);
199
- if (isMediaOrPseudo && isMedia === "group") {
200
- keyInit = normalizeGroupKey(keyInit, groupContext);
201
- }
137
+ if (isMediaOrPseudo && isMedia === "group") keyInit = normalizeGroupKey(keyInit, groupContext);
202
138
  var isStyleProp = isValidStyleKeyInit || isMediaOrPseudo || isVariant && !noExpand;
203
- if (isStyleProp && (asChild === "except-style" || asChild === "except-style-web")) {
204
- return "continue";
205
- }
206
- var shouldPassProp = !isStyleProp && isHOC ||
207
- // is in parent variants
208
- isHOC && parentVariants && keyInit in parentVariants || (inlineProps === null || inlineProps === void 0 ? void 0 : inlineProps.has(keyInit));
139
+ if (isStyleProp && (asChild === "except-style" || asChild === "except-style-web")) return "continue";
140
+ var shouldPassProp = !isStyleProp && isHOC || isHOC && parentVariants && keyInit in parentVariants || (inlineProps === null || inlineProps === void 0 ? void 0 : inlineProps.has(keyInit));
209
141
  var parentVariant = parentVariants === null || parentVariants === void 0 ? void 0 : parentVariants[keyInit];
210
142
  var isHOCShouldPassThrough = Boolean(isHOC && (isValidStyleKeyInit || isMediaOrPseudo || parentVariant || keyInit in import_skipProps.skipProps));
211
143
  var shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
@@ -216,41 +148,31 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
216
148
  valInit,
217
149
  shouldPassProp
218
150
  });
219
- if (import_constants.isClient) {
220
- (0, import_log.log)({
221
- variants,
222
- variant: variants === null || variants === void 0 ? void 0 : variants[keyInit],
223
- isVariant,
224
- isHOCShouldPassThrough,
225
- usedKeys: {
226
- ...styleState.usedKeys
227
- },
228
- parentStaticConfig
229
- });
230
- }
151
+ if (import_constants.isClient) (0, import_log.log)({
152
+ variants,
153
+ variant: variants === null || variants === void 0 ? void 0 : variants[keyInit],
154
+ isVariant,
155
+ isHOCShouldPassThrough,
156
+ usedKeys: {
157
+ ...styleState.usedKeys
158
+ },
159
+ parentStaticConfig
160
+ });
231
161
  }
232
162
  if (shouldPassThrough) {
233
163
  passDownProp(viewProps, keyInit, valInit, isMediaOrPseudo);
234
- if (process.env.NODE_ENV === "development" && debug === "verbose") {
235
- console.groupEnd();
236
- }
237
- if (!isVariant) {
238
- return "continue";
239
- }
164
+ if (process.env.NODE_ENV === "development" && debug === "verbose") console.groupEnd();
165
+ if (!isVariant) return "continue";
240
166
  }
241
167
  if (!noSkip) {
242
168
  var _driver_animations1;
243
169
  if (keyInit in import_skipProps.skipProps && !(keyInit === "transition" && typeof valInit === "string" && !(driver === null || driver === void 0 ? void 0 : (_driver_animations1 = driver.animations) === null || _driver_animations1 === void 0 ? void 0 : _driver_animations1[valInit]))) {
244
- if (process.env.NODE_ENV === "development" && debug === "verbose") {
245
- console.groupEnd();
246
- }
170
+ if (process.env.NODE_ENV === "development" && debug === "verbose") console.groupEnd();
247
171
  return "continue";
248
172
  }
249
173
  }
250
174
  if (isText || isInput) {
251
- if (valInit && (keyInit === "fontFamily" || keyInit === shorthands["fontFamily"]) && valInit in conf.fontsParsed) {
252
- styleState.fontFamily = valInit;
253
- }
175
+ if (valInit && (keyInit === "fontFamily" || keyInit === shorthands["fontFamily"]) && valInit in conf.fontsParsed) styleState.fontFamily = valInit;
254
176
  }
255
177
  var disablePropMap = isMediaOrPseudo || !isStyleLikeKey;
256
178
  (0, import_propMapper.propMapper)(keyInit, valInit, styleState, disablePropMap, function (key5, val2, originalVal) {
@@ -261,16 +183,14 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
261
183
  return;
262
184
  }
263
185
  if (process.env.NODE_ENV === "development" && debug === "verbose") {
264
- console.groupCollapsed(" \u{1F4A0} expanded", keyInit, "=>", key5);
186
+ console.groupCollapsed(" 💠 expanded", keyInit, "=>", key5);
265
187
  (0, import_log.log)(val2);
266
188
  console.groupEnd();
267
189
  }
268
190
  if (val2 == null) return;
269
- if (true) {
270
- if (key5 === "pointerEvents") {
271
- viewProps[key5] = val2;
272
- return;
273
- }
191
+ if (key5 === "pointerEvents") {
192
+ viewProps[key5] = val2;
193
+ return;
274
194
  }
275
195
  if (!isHOC && isValidStyleKey(key5, validStyles, accept) || import_constants.isAndroid && key5 === "elevation") {
276
196
  mergeStyle(styleState, key5, val2, 1, false, originalVal);
@@ -280,15 +200,12 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
280
200
  isMedia = isPseudo ? false : (0, import_useMedia.getMediaKey)(key5);
281
201
  isMediaOrPseudo = Boolean(isMedia || isPseudo);
282
202
  isVariant = variants && key5 in variants;
283
- if (isMedia === "group") {
284
- key5 = normalizeGroupKey(key5, groupContext);
285
- }
203
+ if (isMedia === "group") key5 = normalizeGroupKey(key5, groupContext);
286
204
  if ((inlineProps === null || inlineProps === void 0 ? void 0 : inlineProps.has(key5)) || process.env.IS_STATIC === "is_static" && (inlineWhenUnflattened === null || inlineWhenUnflattened === void 0 ? void 0 : inlineWhenUnflattened.has(key5))) {
287
205
  var _props_key;
288
206
  viewProps[key5] = (_props_key = props[key5]) !== null && _props_key !== void 0 ? _props_key : val2;
289
207
  }
290
- var shouldPassThrough2 = styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit]));
291
- if (shouldPassThrough2) {
208
+ if (styleProps.noExpand && isPseudo || isHOC && (isMediaOrPseudo || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : (_parentStaticConfig_variants = parentStaticConfig.variants) === null || _parentStaticConfig_variants === void 0 ? void 0 : _parentStaticConfig_variants[keyInit]))) {
292
209
  passDownProp(viewProps, key5, val2, isMediaOrPseudo);
293
210
  if (process.env.NODE_ENV === "development" && debug === "verbose") {
294
211
  console.groupCollapsed(` - passing down prop ${key5}`);
@@ -317,14 +234,10 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
317
234
  var descriptor = import_pseudoDescriptors.pseudoDescriptors[key5];
318
235
  var isEnter = key5 === "enterStyle";
319
236
  var isExit = key5 === "exitStyle";
320
- if (!descriptor) {
321
- return;
322
- }
237
+ if (!descriptor) return;
323
238
  if (shouldDoClasses && !isExit) {
324
239
  var pseudoStyles = (0, import_getCSSStylesAtomic.getStyleAtomic)(pseudoStyleObject, descriptor);
325
- if (process.env.NODE_ENV === "development" && debug === "verbose") {
326
- console.info("pseudo:", key5, pseudoStyleObject, pseudoStyles);
327
- }
240
+ if (process.env.NODE_ENV === "development" && debug === "verbose") console.info("pseudo:", key5, pseudoStyleObject, pseudoStyles);
328
241
  var _iteratorNormalCompletion3 = true,
329
242
  _didIteratorError3 = false,
330
243
  _iteratorError3 = void 0;
@@ -340,25 +253,16 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
340
253
  _iteratorError3 = err;
341
254
  } finally {
342
255
  try {
343
- if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
344
- _iterator3.return();
345
- }
256
+ if (!_iteratorNormalCompletion3 && _iterator3.return != null) _iterator3.return();
346
257
  } finally {
347
- if (_didIteratorError3) {
348
- throw _iteratorError3;
349
- }
258
+ if (_didIteratorError3) throw _iteratorError3;
350
259
  }
351
260
  }
352
261
  }
353
262
  if (!shouldDoClasses || isExit || isEnter) {
354
- var descriptorKey = descriptor.stateKey || descriptor.name;
355
- var isDisabled = componentState[descriptorKey] === false;
356
- if (isExit) {
357
- isDisabled = !styleProps.isExiting;
358
- }
359
- if (isEnter && componentState.unmounted === false) {
360
- isDisabled = true;
361
- }
263
+ var isDisabled = componentState[descriptor.stateKey || descriptor.name] === false;
264
+ if (isExit) isDisabled = !styleProps.isExiting;
265
+ if (isEnter && componentState.unmounted === false) isDisabled = true;
362
266
  if (process.env.NODE_ENV === "development" && debug === "verbose") {
363
267
  console.groupCollapsed("pseudo", key5, {
364
268
  isDisabled
@@ -375,9 +279,7 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
375
279
  var pseudoOriginalValues = styleOriginalValues.get(pseudoStyleObject);
376
280
  for (var pkey in pseudoStyleObject) {
377
281
  var _$val = pseudoStyleObject[pkey];
378
- if (isDisabled) {
379
- applyDefaultStyle(pkey, styleState);
380
- } else {
282
+ if (isDisabled) applyDefaultStyle(pkey, styleState);else {
381
283
  var curImportance = styleState.usedKeys[pkey] || 0;
382
284
  var shouldMerge = importance >= curImportance;
383
285
  if (shouldMerge) {
@@ -389,21 +291,17 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
389
291
  }
390
292
  mergeStyle(styleState, pkey, _$val, importance, false, pseudoOriginalValues === null || pseudoOriginalValues === void 0 ? void 0 : pseudoOriginalValues[pkey]);
391
293
  }
392
- if (process.env.NODE_ENV === "development" && debug === "verbose") {
393
- (0, import_log.log)(" subKey", pkey, shouldMerge, {
394
- importance,
395
- curImportance,
396
- pkey,
397
- val: _$val
398
- });
399
- }
294
+ if (process.env.NODE_ENV === "development" && debug === "verbose") (0, import_log.log)(" subKey", pkey, shouldMerge, {
295
+ importance,
296
+ curImportance,
297
+ pkey,
298
+ val: _$val
299
+ });
400
300
  }
401
301
  }
402
- if (!isDisabled) {
403
- for (var _$key in val2) {
404
- var k = shorthands[_$key] || _$key;
405
- styleState.usedKeys[k] = Math.max(importance, styleState.usedKeys[k] || 0);
406
- }
302
+ if (!isDisabled) for (var _$key in val2) {
303
+ var k = shorthands[_$key] || _$key;
304
+ styleState.usedKeys[k] = Math.max(importance, styleState.usedKeys[k] || 0);
407
305
  }
408
306
  }
409
307
  return;
@@ -412,29 +310,22 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
412
310
  if (!val2) return;
413
311
  var mediaKeyShort = key5.slice(isMedia == "theme" ? 7 : 1);
414
312
  hasMedia || (hasMedia = true);
415
- var hasSpace = val2["space"];
416
- if (hasSpace || !shouldDoClasses || styleProps.willBeAnimated) {
417
- if (!hasMedia || typeof hasMedia === "boolean") {
418
- hasMedia = /* @__PURE__ */new Set();
419
- }
313
+ if (val2["space"] || !shouldDoClasses || styleProps.willBeAnimated) {
314
+ if (!hasMedia || typeof hasMedia === "boolean") hasMedia = /* @__PURE__ */new Set();
420
315
  hasMedia.add(mediaKeyShort);
421
316
  }
422
317
  if (isMedia === "platform") {
423
- if (!(0, import_isActivePlatform.isActivePlatform)(key5)) {
424
- return;
425
- }
426
- }
427
- if (process.env.NODE_ENV === "development" && debug === "verbose") {
428
- (0, import_log.log)(` \u{1F4FA} ${key5}`, {
429
- key: key5,
430
- val: val2,
431
- props,
432
- shouldDoClasses,
433
- acceptsClassName,
434
- componentState,
435
- mediaState
436
- });
437
- }
318
+ if (!(0, import_isActivePlatform.isActivePlatform)(key5)) return;
319
+ }
320
+ if (process.env.NODE_ENV === "development" && debug === "verbose") (0, import_log.log)(` \u{1F4FA} ${key5}`, {
321
+ key: key5,
322
+ val: val2,
323
+ props,
324
+ shouldDoClasses,
325
+ acceptsClassName,
326
+ componentState,
327
+ mediaState
328
+ });
438
329
  var priority = mediaStylesSeen;
439
330
  mediaStylesSeen += 1;
440
331
  if (shouldDoClasses) {
@@ -448,13 +339,9 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
448
339
  var style3 = _step12.value;
449
340
  var property = style3[import_helpers.StyleObjectProperty];
450
341
  var isSubStyle = property[0] === "$";
451
- if (isSubStyle && !(0, import_isActivePlatform.isActivePlatform)(property)) {
452
- continue;
453
- }
342
+ if (isSubStyle && !(0, import_isActivePlatform.isActivePlatform)(property)) continue;
454
343
  var out = (0, import_createMediaStyle.createMediaStyle)(style3, mediaKeyShort, import_mediaState.mediaQueryConfig, isMedia, false, priority);
455
- if (process.env.NODE_ENV === "development" && debug === "verbose") {
456
- (0, import_log.log)(`\u{1F4FA} media style:`, out);
457
- }
344
+ if (process.env.NODE_ENV === "development" && debug === "verbose") (0, import_log.log)(`\u{1F4FA} media style:`, out);
458
345
  var subKey = isSubStyle ? style3[2] : "";
459
346
  var fullKey1 = `${style3[import_helpers.StyleObjectProperty]}${subKey}${PROP_SPLIT}${mediaKeyShort}${style3[import_helpers.StyleObjectPseudo] || ""}`;
460
347
  addStyleToInsertRules(rulesToInsert, out);
@@ -465,44 +352,30 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
465
352
  _iteratorError12 = err;
466
353
  } finally {
467
354
  try {
468
- if (!_iteratorNormalCompletion12 && _iterator12.return != null) {
469
- _iterator12.return();
470
- }
355
+ if (!_iteratorNormalCompletion12 && _iterator12.return != null) _iterator12.return();
471
356
  } finally {
472
- if (_didIteratorError12) {
473
- throw _iteratorError12;
474
- }
357
+ if (_didIteratorError12) throw _iteratorError12;
475
358
  }
476
359
  }
477
360
  } else {
478
361
  let mergeMediaStyle2 = function (key6, val3, originalVal2) {
479
362
  var _styleState4;
480
- if (process.env.TAMAGUI_TARGET === "native") {
481
- if (!isValidStyleKey(key6, validStyles, accept)) {
482
- viewProps[key6] = val3;
483
- return;
484
- }
363
+ if (!isValidStyleKey(key6, validStyles, accept)) {
364
+ viewProps[key6] = val3;
365
+ return;
485
366
  }
486
367
  (_styleState4 = styleState).style || (_styleState4.style = {});
487
- var didMerge = mergeMediaByImportance(styleState, mediaKeyShort, key6, val3, mediaState[mediaKeyShort], importanceBump, debug, originalVal2);
488
- if (didMerge && key6 === "fontFamily") {
489
- styleState.fontFamily = mediaStyle1.fontFamily;
490
- }
368
+ if (mergeMediaByImportance(styleState, mediaKeyShort, key6, val3, mediaState[mediaKeyShort], importanceBump, debug, originalVal2) && key6 === "fontFamily") styleState.fontFamily = mediaStyle1.fontFamily;
491
369
  };
492
- var mergeMediaStyle = mergeMediaStyle2;
493
370
  var isThemeMedia = isMedia === "theme";
494
371
  var isGroupMedia = isMedia === "group";
495
372
  var isPlatformMedia = isMedia === "platform";
496
373
  if (!isThemeMedia && !isPlatformMedia && !isGroupMedia) {
497
374
  if (!mediaState[mediaKeyShort]) {
498
- if (process.env.NODE_ENV === "development" && debug === "verbose") {
499
- (0, import_log.log)(` \u{1F4FA} \u274C DISABLED ${mediaKeyShort}`);
500
- }
375
+ if (process.env.NODE_ENV === "development" && debug === "verbose") (0, import_log.log)(` \u{1F4FA} \u274C DISABLED ${mediaKeyShort}`);
501
376
  return;
502
377
  }
503
- if (process.env.NODE_ENV === "development" && debug === "verbose") {
504
- (0, import_log.log)(` \u{1F4FA} \u2705 ENABLED ${mediaKeyShort}`);
505
- }
378
+ if (process.env.NODE_ENV === "development" && debug === "verbose") (0, import_log.log)(` \u{1F4FA} \u2705 ENABLED ${mediaKeyShort}`);
506
379
  }
507
380
  var mediaStyle1 = getSubStyle(styleState, key5, val2, true);
508
381
  var importanceBump = 0;
@@ -519,11 +392,7 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
519
392
  var existing = styleState.style[subKey1];
520
393
  if (!(0, import_getDynamicVal.isColorStyleKey)(subKey1)) {
521
394
  dynamicThemeAccess = true;
522
- if (isCurrentScheme) {
523
- mediaStyle1[subKey1] = _$val1;
524
- } else {
525
- delete mediaStyle1[subKey1];
526
- }
395
+ if (isCurrentScheme) mediaStyle1[subKey1] = _$val1;else delete mediaStyle1[subKey1];
527
396
  continue;
528
397
  }
529
398
  if (existing === null || existing === void 0 ? void 0 : existing.dynamic) {
@@ -541,9 +410,7 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
541
410
  }
542
411
  } else {
543
412
  dynamicThemeAccess = true;
544
- if (!(themeName === mediaKeyShort || themeName.startsWith(mediaKeyShort))) {
545
- return;
546
- }
413
+ if (!(themeName === mediaKeyShort || themeName.startsWith(mediaKeyShort))) return;
547
414
  }
548
415
  } else if (isGroupMedia) {
549
416
  var _groupContext_groupName, _componentState_group;
@@ -553,9 +420,7 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
553
420
  var groupPseudoKey = groupInfo.pseudo;
554
421
  var groupMediaKey = groupInfo.media;
555
422
  if (!groupState) {
556
- if (process.env.NODE_ENV === "development" && debug) {
557
- (0, import_log.log)(`No parent with group prop, skipping styles: ${groupName}`);
558
- }
423
+ if (process.env.NODE_ENV === "development" && debug) (0, import_log.log)(`No parent with group prop, skipping styles: ${groupName}`);
559
424
  pseudoGroups || (pseudoGroups = /* @__PURE__ */new Set());
560
425
  return;
561
426
  }
@@ -565,21 +430,15 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
565
430
  mediaGroups.add(groupMediaKey);
566
431
  var mediaState1 = componentGroupState === null || componentGroupState === void 0 ? void 0 : componentGroupState.media;
567
432
  var isActive = mediaState1 === null || mediaState1 === void 0 ? void 0 : mediaState1[groupMediaKey];
568
- if (!mediaState1 && groupState.layout) {
569
- isActive = (0, import_useMedia.mediaKeyMatch)(groupMediaKey, groupState.layout);
570
- }
571
- if (process.env.NODE_ENV === "development" && debug === "verbose") {
572
- (0, import_log.log)(` \u{1F3D8}\uFE0F GROUP media ${groupMediaKey} active? ${isActive}`, {
573
- ...mediaState1,
574
- usedKeys: {
575
- ...styleState.usedKeys
576
- }
577
- });
578
- }
579
- if (!isActive) {
580
- for (var pkey1 in mediaStyle1) {
581
- applyDefaultStyle(pkey1, styleState);
433
+ if (!mediaState1 && groupState.layout) isActive = (0, import_useMedia.mediaKeyMatch)(groupMediaKey, groupState.layout);
434
+ if (process.env.NODE_ENV === "development" && debug === "verbose") (0, import_log.log)(` \u{1F3D8}\uFE0F GROUP media ${groupMediaKey} active? ${isActive}`, {
435
+ ...mediaState1,
436
+ usedKeys: {
437
+ ...styleState.usedKeys
582
438
  }
439
+ });
440
+ if (!isActive) {
441
+ for (var pkey1 in mediaStyle1) applyDefaultStyle(pkey1, styleState);
583
442
  return;
584
443
  }
585
444
  importanceBump = 2;
@@ -588,32 +447,24 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
588
447
  var _this;
589
448
  pseudoGroups || (pseudoGroups = /* @__PURE__ */new Set());
590
449
  pseudoGroups.add(groupName);
591
- var componentGroupPseudoState = (_this = componentGroupState || (
592
- // fallback to context initially
593
- groupContext === null || groupContext === void 0 ? void 0 : groupContext[groupName].state)) === null || _this === void 0 ? void 0 : _this.pseudo;
450
+ var componentGroupPseudoState = (_this = componentGroupState || (groupContext === null || groupContext === void 0 ? void 0 : groupContext[groupName].state)) === null || _this === void 0 ? void 0 : _this.pseudo;
594
451
  var isActive1 = componentGroupPseudoState === null || componentGroupPseudoState === void 0 ? void 0 : componentGroupPseudoState[groupPseudoKey];
595
452
  var priority1 = import_pseudoDescriptors.pseudoPriorities[groupPseudoKey];
596
- if (process.env.NODE_ENV === "development" && debug === "verbose") {
597
- (0, import_log.log)(` \u{1F3D8}\uFE0F GROUP pseudo ${groupMediaKey} active? ${isActive1}, priority ${priority1}`, {
598
- componentGroupPseudoState: {
599
- ...componentGroupPseudoState
600
- },
601
- usedKeys: {
602
- ...styleState.usedKeys
603
- }
604
- });
605
- }
606
- if (!isActive1) {
607
- for (var pkey2 in mediaStyle1) {
608
- applyDefaultStyle(pkey2, styleState);
453
+ if (process.env.NODE_ENV === "development" && debug === "verbose") (0, import_log.log)(` \u{1F3D8}\uFE0F GROUP pseudo ${groupMediaKey} active? ${isActive1}, priority ${priority1}`, {
454
+ componentGroupPseudoState: {
455
+ ...componentGroupPseudoState
456
+ },
457
+ usedKeys: {
458
+ ...styleState.usedKeys
609
459
  }
460
+ });
461
+ if (!isActive1) {
462
+ for (var pkey2 in mediaStyle1) applyDefaultStyle(pkey2, styleState);
610
463
  return;
611
464
  }
612
465
  importanceBump = priority1;
613
466
  }
614
- } else if (isPlatformMedia) {
615
- importanceBump = (0, import_isActivePlatform.getPlatformSpecificityBump)(mediaKeyShort);
616
- }
467
+ } else if (isPlatformMedia) importanceBump = (0, import_isActivePlatform.getPlatformSpecificityBump)(mediaKeyShort);
617
468
  var mediaOriginalValues = styleOriginalValues.get(mediaStyle1);
618
469
  if (isGroupMedia && mediaStyle1.transition) {
619
470
  var _styleState12;
@@ -621,9 +472,7 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
621
472
  styleState.pseudoTransitions[`$${mediaKeyShort}`] = mediaStyle1.transition;
622
473
  }
623
474
  for (var subKey2 in mediaStyle1) {
624
- if (subKey2 === "space") {
625
- continue;
626
- }
475
+ if (subKey2 === "space") continue;
627
476
  if (subKey2[0] === "$") {
628
477
  var subMediaType = (0, import_useMedia.getMediaKey)(subKey2);
629
478
  if (subMediaType === "platform") {
@@ -631,21 +480,13 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
631
480
  } else if (subMediaType === "theme") {
632
481
  if (!(0, import_isActiveTheme.isActiveTheme)(subKey2, themeName)) continue;
633
482
  } else if (subMediaType === true) {
634
- var subKeyShort = subKey2.slice(1);
635
- if (!mediaState[subKeyShort]) continue;
483
+ if (!mediaState[subKey2.slice(1)]) continue;
636
484
  }
637
485
  var nestedVal = mediaStyle1[subKey2];
638
486
  var subOriginalValues = styleOriginalValues.get(nestedVal);
639
- var isSizeMediaKey = !!mediaState[mediaKeyShort];
640
- var outerBase = isSizeMediaKey ? (0, import_useMedia.getMediaKeyImportance)(mediaKeyShort) : import_pseudoDescriptors.defaultMediaImportance;
487
+ var outerBase = !!mediaState[mediaKeyShort] ? (0, import_useMedia.getMediaKeyImportance)(mediaKeyShort) : import_pseudoDescriptors.defaultMediaImportance;
641
488
  var innerBase = void 0;
642
- if (subMediaType === "platform") {
643
- innerBase = import_pseudoDescriptors.defaultMediaImportance + (0, import_isActivePlatform.getPlatformSpecificityBump)(subKey2.slice(1));
644
- } else if (subMediaType === true) {
645
- innerBase = (0, import_useMedia.getMediaKeyImportance)(subKey2.slice(1));
646
- } else {
647
- innerBase = import_pseudoDescriptors.defaultMediaImportance;
648
- }
489
+ if (subMediaType === "platform") innerBase = import_pseudoDescriptors.defaultMediaImportance + (0, import_isActivePlatform.getPlatformSpecificityBump)(subKey2.slice(1));else if (subMediaType === true) innerBase = (0, import_useMedia.getMediaKeyImportance)(subKey2.slice(1));else innerBase = import_pseudoDescriptors.defaultMediaImportance;
649
490
  var nestedImportance = outerBase + importanceBump + innerBase + 1;
650
491
  for (var subSubKey in nestedVal) {
651
492
  var _styleState22;
@@ -653,26 +494,18 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
653
494
  var {
654
495
  usedKeys
655
496
  } = styleState;
656
- if (usedKeys[expandedKey] && usedKeys[expandedKey] > nestedImportance) {
657
- continue;
658
- }
497
+ if (usedKeys[expandedKey] && usedKeys[expandedKey] > nestedImportance) continue;
659
498
  (_styleState22 = styleState).style || (_styleState22.style = {});
660
499
  mergeStyle(styleState, expandedKey, nestedVal[subSubKey], nestedImportance, false, subOriginalValues === null || subOriginalValues === void 0 ? void 0 : subOriginalValues[subSubKey]);
661
- if (expandedKey === "fontFamily") {
662
- styleState.fontFamily = nestedVal[subSubKey];
663
- }
500
+ if (expandedKey === "fontFamily") styleState.fontFamily = nestedVal[subSubKey];
664
501
  }
665
- } else {
666
- mergeMediaStyle2(subKey2, mediaStyle1[subKey2], mediaOriginalValues === null || mediaOriginalValues === void 0 ? void 0 : mediaOriginalValues[subKey2]);
667
- }
502
+ } else mergeMediaStyle2(subKey2, mediaStyle1[subKey2], mediaOriginalValues === null || mediaOriginalValues === void 0 ? void 0 : mediaOriginalValues[subKey2]);
668
503
  }
669
504
  }
670
505
  return;
671
506
  }
672
507
  if (!isVariant) {
673
- if (isStyledContextProp) {
674
- return;
675
- }
508
+ if (isStyledContextProp) return;
676
509
  viewProps[key5] = val2;
677
510
  }
678
511
  });
@@ -694,12 +527,8 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
694
527
  };
695
528
  conf = conf || (0, import_config.getConfig)();
696
529
  var driver = animationDriver || (componentContext === null || componentContext === void 0 ? void 0 : componentContext.animationDriver) || conf.animations;
697
- if (props.passThrough) {
698
- return null;
699
- }
700
- if (import_constants.isWeb && styleProps.isAnimated && (driver === null || driver === void 0 ? void 0 : driver.isReactNative) && !styleProps.noNormalize) {
701
- styleProps.noNormalize = "values";
702
- }
530
+ if (props.passThrough) return null;
531
+ if (import_constants.isWeb && styleProps.isAnimated && (driver === null || driver === void 0 ? void 0 : driver.isReactNative) && !styleProps.noNormalize) styleProps.noNormalize = "values";
703
532
  var {
704
533
  shorthands
705
534
  } = conf;
@@ -717,9 +546,9 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
717
546
  var viewProps = {};
718
547
  var mediaState = styleProps.mediaState || import_mediaState.mediaState;
719
548
  var shouldDoClasses = acceptsClassName && import_constants.isWeb && !styleProps.noClass;
720
- var rulesToInsert = true ? void 0 : {};
549
+ var rulesToInsert = void 0;
721
550
  var classNames = {};
722
- var space = props.space;
551
+ props.space;
723
552
  var pseudos = null;
724
553
  var hasMedia = false;
725
554
  var dynamicThemeAccess;
@@ -728,9 +557,7 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
728
557
  var className = props.className || "";
729
558
  var mediaStylesSeen = 0;
730
559
  var validStyles = staticConfig.validStyles || (staticConfig.isText || staticConfig.isInput ? import_helpers.stylePropsText : import_helpers.validStyles);
731
- if (process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) {
732
- time`split-styles-setup`;
733
- }
560
+ if (process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`split-styles-setup`;
734
561
  var styleState = {
735
562
  classNames,
736
563
  conf,
@@ -744,30 +571,23 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
744
571
  viewProps,
745
572
  context: componentContext,
746
573
  debug,
747
- // resolved animation driver (respects animatedBy prop)
748
574
  animationDriver: driver
749
575
  };
750
576
  if (process.env.IS_STATIC === "is_static") {
751
577
  var {
752
578
  fallbackProps
753
579
  } = styleProps;
754
- if (fallbackProps) {
755
- styleState.props = new Proxy(props, {
756
- get(_, key5, val2) {
757
- if (!Reflect.has(props, key5)) {
758
- return Reflect.get(fallbackProps, key5);
759
- }
760
- return Reflect.get(props, key5);
761
- }
762
- });
763
- }
764
- }
765
- if (process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) {
766
- time`style-state`;
580
+ if (fallbackProps) styleState.props = new Proxy(props, {
581
+ get(_, key5, val2) {
582
+ if (!Reflect.has(props, key5)) return Reflect.get(fallbackProps, key5);
583
+ return Reflect.get(props, key5);
584
+ }
585
+ });
767
586
  }
587
+ if (process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`style-state`;
768
588
  if (process.env.NODE_ENV === "development" && debug === "verbose" && import_constants.isClient) {
769
589
  if (import_isDevTools.isDevTools) {
770
- console.groupCollapsed("\u{1F539} getSplitStyles \u{1F447}");
590
+ console.groupCollapsed("🔹 getSplitStyles 👇");
771
591
  (0, import_log.log)({
772
592
  props,
773
593
  staticConfig,
@@ -799,17 +619,12 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
799
619
  } = conf.settings;
800
620
  var parentVariants = parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.variants;
801
621
  for (var keyOg in props) _loop(keyOg);
802
- if (process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) {
803
- time`split-styles-propsend`;
804
- }
805
- var avoidNormalize = styleProps.noNormalize === false;
806
- if (!avoidNormalize) {
622
+ if (process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`split-styles-propsend`;
623
+ if (!(styleProps.noNormalize === false)) {
807
624
  if (styleState.style) {
808
625
  (0, import_expandStyles.fixStyles)(styleState.style);
809
626
  if (!styleProps.noExpand && !styleProps.noMergeStyle) {
810
- if (import_constants.isWeb && (isReactNative ? (driver === null || driver === void 0 ? void 0 : driver.inputStyle) !== "css" : true)) {
811
- (0, import_getCSSStylesAtomic.styleToCSS)(styleState.style);
812
- }
627
+ if (import_constants.isWeb && (isReactNative ? (driver === null || driver === void 0 ? void 0 : driver.inputStyle) !== "css" : true)) (0, import_getCSSStylesAtomic.styleToCSS)(styleState.style);
813
628
  }
814
629
  }
815
630
  if (styleState.flatTransforms) {
@@ -818,175 +633,49 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
818
633
  mergeFlatTransforms(styleState.style, styleState.flatTransforms);
819
634
  }
820
635
  if (parentSplitStyles) {
821
- if (false) {
822
- if (shouldDoClasses) {
823
- for (var key in parentSplitStyles.classNames) {
824
- var val = parentSplitStyles.classNames[key];
825
- if (styleState.style && key in styleState.style || key in classNames) continue;
826
- classNames[key] = val;
827
- }
828
- }
829
- }
830
- if (!shouldDoClasses) {
831
- for (var key1 in parentSplitStyles.style) {
832
- var _styleState1;
833
- if (key1 in classNames || styleState.style && key1 in styleState.style) continue;
834
- (_styleState1 = styleState).style || (_styleState1.style = {});
835
- styleState.style[key1] = parentSplitStyles.style[key1];
836
- }
837
- }
838
- }
839
- }
840
- if (false) {
841
- var _styleState_style;
842
- var shouldStringifyTransforms = !styleProps.noNormalize && !staticConfig.isReactNative && !staticConfig.isHOC && (!styleProps.isAnimated || (driver === null || driver === void 0 ? void 0 : driver.inputStyle) === "css");
843
- if (shouldStringifyTransforms && Array.isArray((_styleState_style = styleState.style) === null || _styleState_style === void 0 ? void 0 : _styleState_style.transform)) {
844
- styleState.style.transform = (0, import_transformsToString.transformsToString)(styleState.style.transform);
845
- }
846
- }
847
- if (false) {
848
- if (!styleProps.noMergeStyle && styleState.style && shouldDoClasses) {
849
- var retainedStyles;
850
- var shouldRetain = false;
851
- if (styleState.style["$$css"]) {} else {
852
- var atomic = (0, import_getCSSStylesAtomic.getCSSStylesAtomic)(styleState.style);
853
- var _iteratorNormalCompletion = true,
854
- _didIteratorError = false,
855
- _iteratorError = void 0;
856
- try {
857
- for (var _iterator = atomic[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
858
- var atomicStyle = _step.value;
859
- var _props_animateOnly, _props_animateOnly1;
860
- var [key2, value, identifier] = atomicStyle;
861
- var isAnimatedAndTransitionOnly = styleProps.isAnimated && styleProps.noClass && ((_props_animateOnly = props.animateOnly) === null || _props_animateOnly === void 0 ? void 0 : _props_animateOnly.includes(key2));
862
- var nonAnimatedTransitionOnly = !isAnimatedAndTransitionOnly && !styleProps.isAnimated && import_constants.isClient && (driver === null || driver === void 0 ? void 0 : driver.outputStyle) === "css" && ((_props_animateOnly1 = props.animateOnly) === null || _props_animateOnly1 === void 0 ? void 0 : _props_animateOnly1.includes(key2));
863
- if (isAnimatedAndTransitionOnly) {
864
- retainedStyles || (retainedStyles = {});
865
- retainedStyles[key2] = styleState.style[key2];
866
- } else if (nonAnimatedTransitionOnly) {
867
- retainedStyles || (retainedStyles = {});
868
- retainedStyles[key2] = value;
869
- shouldRetain = true;
870
- } else {
871
- addStyleToInsertRules(rulesToInsert, atomicStyle);
872
- classNames[key2] = identifier;
873
- }
874
- }
875
- } catch (err) {
876
- _didIteratorError = true;
877
- _iteratorError = err;
878
- } finally {
879
- try {
880
- if (!_iteratorNormalCompletion && _iterator.return != null) {
881
- _iterator.return();
882
- }
883
- } finally {
884
- if (_didIteratorError) {
885
- throw _iteratorError;
886
- }
887
- }
888
- }
889
- if (process.env.NODE_ENV === "development" && props.debug === "verbose") {
890
- console.groupCollapsed(`\u{1F539} getSplitStyles final style object`);
891
- console.info(styleState.style);
892
- console.info(`retainedStyles`, retainedStyles);
893
- console.groupEnd();
894
- }
895
- if (shouldRetain || !(process.env.IS_STATIC === "is_static")) {
896
- styleState.style = retainedStyles || {};
897
- }
898
- }
899
- }
900
- if (!styleProps.noMergeStyle && styleState.style && !shouldDoClasses && styleProps.isAnimated && !(driver === null || driver === void 0 ? void 0 : driver.isReactNative)) {
901
- if (!styleState.style["$$css"]) {
902
- var toConvert = {};
903
- var hasProps = false;
904
- var animateOnly = props.animateOnly;
905
- for (var key3 in styleState.style) {
906
- if (key3 in import_helpers.nonAnimatableStyleProps) {
907
- toConvert[key3] = styleState.style[key3];
908
- delete styleState.style[key3];
909
- hasProps = true;
910
- }
911
- }
912
- if (hasProps) {
913
- var atomic1 = (0, import_getCSSStylesAtomic.getCSSStylesAtomic)(toConvert);
914
- var _iteratorNormalCompletion1 = true,
915
- _didIteratorError1 = false,
916
- _iteratorError1 = void 0;
917
- try {
918
- for (var _iterator1 = atomic1[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
919
- var atomicStyle1 = _step1.value;
920
- addStyleToInsertRules(rulesToInsert, atomicStyle1);
921
- classNames[atomicStyle1[import_helpers.StyleObjectProperty]] = atomicStyle1[import_helpers.StyleObjectIdentifier];
922
- }
923
- } catch (err) {
924
- _didIteratorError1 = true;
925
- _iteratorError1 = err;
926
- } finally {
927
- try {
928
- if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
929
- _iterator1.return();
930
- }
931
- } finally {
932
- if (_didIteratorError1) {
933
- throw _iteratorError1;
934
- }
935
- }
936
- }
937
- }
636
+ if (!shouldDoClasses) for (var key1 in parentSplitStyles.style) {
637
+ var _styleState1;
638
+ if (key1 in classNames || styleState.style && key1 in styleState.style) continue;
639
+ (_styleState1 = styleState).style || (_styleState1.style = {});
640
+ styleState.style[key1] = parentSplitStyles.style[key1];
938
641
  }
939
642
  }
940
643
  }
941
644
  var styleProp = props.style;
942
- if (!styleProps.noMergeStyle && styleProp) {
943
- if (isHOC) {
944
- viewProps.style = normalizeStyle(styleProp);
945
- } else {
946
- var isArray = Array.isArray(styleProp);
947
- var len = isArray ? styleProp.length : 1;
948
- for (var i = 0; i < len; i++) {
949
- var style = isArray ? styleProp[i] : styleProp;
950
- if (style) {
951
- if (style["$$css"]) {
952
- Object.assign(styleState.classNames, style);
953
- } else {
954
- var _styleState2;
955
- (_styleState2 = styleState).style || (_styleState2.style = {});
956
- Object.assign(styleState.style, normalizeStyle(style));
957
- }
958
- }
959
- }
960
- }
961
- }
962
- if (true) {
963
- if (viewProps.tabIndex === 0) {
964
- var _viewProps;
965
- var _accessible;
966
- (_accessible = (_viewProps = viewProps).accessible) !== null && _accessible !== void 0 ? _accessible : _viewProps.accessible = true;
967
- }
968
- var style1 = styleState.style;
969
- if (style1 === null || style1 === void 0 ? void 0 : style1.fontFamily) {
970
- var _getFont;
971
- var faceInfo = (_getFont = (0, import_config.getFont)(style1.fontFamily)) === null || _getFont === void 0 ? void 0 : _getFont.face;
972
- if (faceInfo) {
973
- var _faceInfo_style_fontWeight_, _faceInfo_style_fontWeight;
974
- var overrideFace = (_faceInfo_style_fontWeight = faceInfo[style1.fontWeight]) === null || _faceInfo_style_fontWeight === void 0 ? void 0 : (_faceInfo_style_fontWeight_ = _faceInfo_style_fontWeight[style1.fontStyle || "normal"]) === null || _faceInfo_style_fontWeight_ === void 0 ? void 0 : _faceInfo_style_fontWeight_.val;
975
- if (overrideFace) {
976
- style1.fontFamily = overrideFace;
977
- styleState.fontFamily = overrideFace;
978
- delete style1.fontWeight;
979
- delete style1.fontStyle;
980
- }
981
- }
982
- if (process.env.NODE_ENV === "development" && debug && debug !== "profile") {
983
- (0, import_log.log)(`Found fontFamily native: ${style1.fontFamily}`, faceInfo);
984
- }
985
- }
986
- }
987
- if (process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) {
988
- time`split-styles-pre-result`;
989
- }
645
+ if (!styleProps.noMergeStyle && styleProp) if (isHOC) viewProps.style = normalizeStyle(styleProp);else {
646
+ var isArray = Array.isArray(styleProp);
647
+ var len = isArray ? styleProp.length : 1;
648
+ for (var i = 0; i < len; i++) {
649
+ var style = isArray ? styleProp[i] : styleProp;
650
+ if (style) if (style["$$css"]) Object.assign(styleState.classNames, style);else {
651
+ var _styleState2;
652
+ (_styleState2 = styleState).style || (_styleState2.style = {});
653
+ Object.assign(styleState.style, normalizeStyle(style));
654
+ }
655
+ }
656
+ }
657
+ if (viewProps.tabIndex === 0) {
658
+ var _viewProps;
659
+ var _accessible;
660
+ (_accessible = (_viewProps = viewProps).accessible) !== null && _accessible !== void 0 || (_viewProps.accessible = true);
661
+ }
662
+ var style1 = styleState.style;
663
+ if (style1 === null || style1 === void 0 ? void 0 : style1.fontFamily) {
664
+ var _getFont;
665
+ var faceInfo = (_getFont = (0, import_config.getFont)(style1.fontFamily)) === null || _getFont === void 0 ? void 0 : _getFont.face;
666
+ if (faceInfo) {
667
+ var _faceInfo_style_fontWeight_, _faceInfo_style_fontWeight;
668
+ var overrideFace = (_faceInfo_style_fontWeight = faceInfo[style1.fontWeight]) === null || _faceInfo_style_fontWeight === void 0 ? void 0 : (_faceInfo_style_fontWeight_ = _faceInfo_style_fontWeight[style1.fontStyle || "normal"]) === null || _faceInfo_style_fontWeight_ === void 0 ? void 0 : _faceInfo_style_fontWeight_.val;
669
+ if (overrideFace) {
670
+ style1.fontFamily = overrideFace;
671
+ styleState.fontFamily = overrideFace;
672
+ delete style1.fontWeight;
673
+ delete style1.fontStyle;
674
+ }
675
+ }
676
+ if (process.env.NODE_ENV === "development" && debug && debug !== "profile") (0, import_log.log)(`Found fontFamily native: ${style1.fontFamily}`, faceInfo);
677
+ }
678
+ if (process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`split-styles-pre-result`;
990
679
  var result = {
991
680
  hasMedia,
992
681
  fontFamily: styleState.fontFamily,
@@ -1005,76 +694,13 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
1005
694
  if (!styleProps.noMergeStyle) {
1006
695
  if (!asChildExceptStyleLike) {
1007
696
  var style2 = styleState.style;
1008
- if (false) {
1009
- var fontFamily = isText || isInput ? styleState.fontFamily : null;
1010
- if (fontFamily && fontFamily[0] === "$") {
1011
- fontFamily = fontFamily.slice(1);
1012
- }
1013
- var fontFamilyClassName = fontFamily ? `font_${fontFamily}` : "";
1014
- var groupClassName = props.group ? `t_group_${props.group}` : "";
1015
- var componentNameFinal = props.componentName || staticConfig.componentName;
1016
- var componentNameClassName = props.asChild || !componentNameFinal || componentNameFinal === "Text" ? "" : `is_${componentNameFinal}`;
1017
- var classList = [];
1018
- if (componentNameClassName) classList.push(componentNameClassName);
1019
- if (!isText) classList.push("is_View");else classList.push("is_Text");
1020
- if (fontFamilyClassName) classList.push(fontFamilyClassName);
1021
- if (classNames) classList.push(Object.values(classNames).join(" "));
1022
- if (groupClassName) classList.push(groupClassName);
1023
- if (props.className) classList.push(props.className);
1024
- var finalClassName = classList.join(" ");
1025
- var needsCssStyles = isReactNative || styleProps.isAnimated && (driver === null || driver === void 0 ? void 0 : driver.isReactNative);
1026
- if (styleProps.isAnimated && (driver === null || driver === void 0 ? void 0 : driver.inputStyle) === "css") {
1027
- viewProps.className = finalClassName;
1028
- if (style2) {
1029
- viewProps.style = style2;
1030
- }
1031
- } else if (needsCssStyles) {
1032
- var cnStyles;
1033
- var _iteratorNormalCompletion2 = true,
1034
- _didIteratorError2 = false,
1035
- _iteratorError2 = void 0;
1036
- try {
1037
- for (var _iterator2 = finalClassName.split(" ")[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
1038
- var name = _step2.value;
1039
- cnStyles || (cnStyles = {
1040
- $$css: true
1041
- });
1042
- cnStyles[name] = name;
1043
- }
1044
- } catch (err) {
1045
- _didIteratorError2 = true;
1046
- _iteratorError2 = err;
1047
- } finally {
1048
- try {
1049
- if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
1050
- _iterator2.return();
1051
- }
1052
- } finally {
1053
- if (_didIteratorError2) {
1054
- throw _iteratorError2;
1055
- }
1056
- }
1057
- }
1058
- viewProps.style = cnStyles ? [...(Array.isArray(style2) ? style2 : [style2]), cnStyles] : [style2];
1059
- } else {
1060
- if (finalClassName) {
1061
- viewProps.className = finalClassName;
1062
- }
1063
- if (style2) {
1064
- viewProps.style = style2;
1065
- }
1066
- }
1067
- } else {
1068
- if (style2) {
1069
- viewProps.style = style2;
1070
- }
1071
- }
697
+ if (style2) viewProps.style = style2;
1072
698
  }
1073
699
  }
1074
700
  if (process.env.NODE_ENV === "development" && debug === "verbose") {
1075
701
  if (import_constants.isClient && import_isDevTools.isDevTools) {
1076
702
  console.groupEnd();
1077
- console.groupCollapsed("\u{1F539} getSplitStyles ===>");
703
+ console.groupCollapsed("🔹 getSplitStyles ===>");
1078
704
  try {
1079
705
  var logs = {
1080
706
  ...result,
@@ -1084,16 +710,12 @@ var getSplitStyles = function (props, staticConfig, theme, themeName, componentS
1084
710
  rulesToInsert,
1085
711
  parentSplitStyles
1086
712
  };
1087
- for (var key4 in logs) {
1088
- (0, import_log.log)(key4, logs[key4]);
1089
- }
713
+ for (var key4 in logs) (0, import_log.log)(key4, logs[key4]);
1090
714
  } catch (e) {}
1091
715
  console.groupEnd();
1092
716
  }
1093
717
  }
1094
- if (process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) {
1095
- time`split-styles-done`;
1096
- }
718
+ if (process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`split-styles-done`;
1097
719
  return result;
1098
720
  };
1099
721
  function mergeFlatTransforms(target, flatTransforms) {
@@ -1116,10 +738,7 @@ function mergeStyle(styleState, key, val, importance) {
1116
738
  staticConfig,
1117
739
  usedKeys
1118
740
  } = styleState;
1119
- var existingImportance = usedKeys[key] || 0;
1120
- if (existingImportance > importance) {
1121
- return;
1122
- }
741
+ if ((usedKeys[key] || 0) > importance) return;
1123
742
  var contextProps = ((_staticConfig_context = staticConfig.context) === null || _staticConfig_context === void 0 ? void 0 : _staticConfig_context.props) || ((_staticConfig_parentStaticConfig = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig === void 0 ? void 0 : (_staticConfig_parentStaticConfig_context = _staticConfig_parentStaticConfig.context) === null || _staticConfig_parentStaticConfig_context === void 0 ? void 0 : _staticConfig_parentStaticConfig_context.props);
1124
743
  if (contextProps && key in contextProps) {
1125
744
  var _styleState_originalContextPropValues;
@@ -1135,20 +754,12 @@ function mergeStyle(styleState, key, val, importance) {
1135
754
  usedKeys[key] = importance;
1136
755
  styleState.flatTransforms[key] = val;
1137
756
  } else {
1138
- var shouldNormalize = import_constants.isWeb && !disableNormalize && !styleProps.noNormalize;
1139
- var out = shouldNormalize ? (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(val, key) : val;
1140
- if (
1141
- // accept is for props not styles
1142
- staticConfig.accept && key in staticConfig.accept) {
1143
- viewProps[key] = out;
1144
- } else {
757
+ var out = import_constants.isWeb && !disableNormalize && !styleProps.noNormalize ? (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(val, key) : val;
758
+ if (staticConfig.accept && key in staticConfig.accept) viewProps[key] = out;else {
1145
759
  var _styleState2;
1146
760
  (_styleState2 = styleState).style || (_styleState2.style = {});
1147
761
  usedKeys[key] = importance;
1148
- styleState.style[key] =
1149
- // if you dont do this you'll be passing props.transform arrays directly here and then mutating them
1150
- // if theres any flatTransforms later, causing issues (mutating props is bad, in strict mode styles get borked)
1151
- key === "transform" && Array.isArray(out) ? [...out] : out;
762
+ styleState.style[key] = key === "transform" && Array.isArray(out) ? [...out] : out;
1152
763
  }
1153
764
  }
1154
765
  }
@@ -1165,35 +776,21 @@ var getSubStyle = function (styleState, subKey, styleIn, avoidMergeTransform) {
1165
776
  if ((driver === null || driver === void 0 ? void 0 : driver.outputStyle) === "css") {
1166
777
  var _driver_animations1;
1167
778
  var animationConfig = (_driver_animations1 = driver.animations) === null || _driver_animations1 === void 0 ? void 0 : _driver_animations1[val];
1168
- if (animationConfig) {
1169
- var important = subKey[0] === "$" ? " !important" : "";
1170
- styleOut["transition"] = `all ${animationConfig}${important}`;
1171
- }
1172
- }
1173
- if (!styleOut["transition"] && typeof val === "string" && !(driver === null || driver === void 0 ? void 0 : (_driver_animations = driver.animations) === null || _driver_animations === void 0 ? void 0 : _driver_animations[val])) {
1174
- styleOut["transition"] = val;
779
+ if (animationConfig) styleOut["transition"] = `all ${animationConfig}${subKey[0] === "$" ? " !important" : ""}`;
1175
780
  }
781
+ if (!styleOut["transition"] && typeof val === "string" && !(driver === null || driver === void 0 ? void 0 : (_driver_animations = driver.animations) === null || _driver_animations === void 0 ? void 0 : _driver_animations[val])) styleOut["transition"] = val;
1176
782
  return key = key1, "continue";
1177
783
  }
1178
- var shouldSkip = !staticConfig.isHOC && key1 in import_skipProps.skipProps && !styleProps.noSkip;
1179
- if (shouldSkip) {
1180
- return key = key1, "continue";
1181
- }
784
+ if (!staticConfig.isHOC && key1 in import_skipProps.skipProps && !styleProps.noSkip) return key = key1, "continue";
1182
785
  (0, import_propMapper.propMapper)(key1, val, styleState, false, function (skey, sval, originalVal) {
1183
786
  if (originalVal !== void 0) {
1184
787
  originalValues || (originalValues = {});
1185
788
  originalValues[skey] = originalVal;
1186
789
  }
1187
- if (skey in import_helpers.validPseudoKeys) {
1188
- sval = getSubStyle(styleState, skey, sval, avoidMergeTransform);
1189
- }
1190
- if (!avoidMergeTransform && skey in import_helpers.stylePropsTransform) {
1191
- mergeTransform(styleOut, skey, sval);
1192
- } else {
1193
- styleOut[skey] = styleProps.noNormalize ? sval : (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(sval, key1);
1194
- }
790
+ if (skey in import_helpers.validPseudoKeys) sval = getSubStyle(styleState, skey, sval, avoidMergeTransform);
791
+ if (!avoidMergeTransform && skey in import_helpers.stylePropsTransform) mergeTransform(styleOut, skey, sval);else styleOut[skey] = styleProps.noNormalize ? sval : (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(sval, key1);
1195
792
  });
1196
- key = key1, void 0;
793
+ key = key1;
1197
794
  };
1198
795
  var {
1199
796
  staticConfig,
@@ -1215,11 +812,9 @@ var getSubStyle = function (styleState, subKey, styleIn, avoidMergeTransform) {
1215
812
  outer: for (var i = 0; i < parentTransform.length; i++) {
1216
813
  var pt = parentTransform[i];
1217
814
  for (var pk in pt) {
1218
- for (var j = 0; j < len; j++) {
1219
- for (var sk in styleOutTransform[j]) {
1220
- if (pk === sk) continue outer;
1221
- break;
1222
- }
815
+ for (var j = 0; j < len; j++) for (var sk in styleOutTransform[j]) {
816
+ if (pk === sk) continue outer;
817
+ break;
1223
818
  }
1224
819
  merged.push(pt);
1225
820
  break;
@@ -1228,53 +823,27 @@ var getSubStyle = function (styleState, subKey, styleIn, avoidMergeTransform) {
1228
823
  for (var i1 = 0; i1 < len; i1++) merged.push(styleOutTransform[i1]);
1229
824
  styleOut.transform = merged;
1230
825
  }
1231
- if (flatTransforms) {
1232
- outer: for (var fk in flatTransforms) {
1233
- var ck = fk === "x" ? "translateX" : fk === "y" ? "translateY" : fk;
1234
- for (var j1 = 0; j1 < len; j1++) {
1235
- for (var sk1 in styleOutTransform[j1]) {
1236
- if (ck === sk1) continue outer;
1237
- break;
1238
- }
1239
- }
1240
- mergeTransform(styleOut, fk, flatTransforms[fk]);
826
+ if (flatTransforms) outer: for (var fk in flatTransforms) {
827
+ var ck = fk === "x" ? "translateX" : fk === "y" ? "translateY" : fk;
828
+ for (var j1 = 0; j1 < len; j1++) for (var sk1 in styleOutTransform[j1]) {
829
+ if (ck === sk1) continue outer;
830
+ break;
1241
831
  }
832
+ mergeTransform(styleOut, fk, flatTransforms[fk]);
1242
833
  }
1243
- } else if (flatTransforms) {
1244
- mergeFlatTransforms(styleOut, flatTransforms);
1245
- }
1246
- }
1247
- if (!styleProps.noNormalize) {
1248
- (0, import_expandStyles.fixStyles)(styleOut);
1249
- }
1250
- if (originalValues) {
1251
- styleOriginalValues.set(styleOut, originalValues);
834
+ } else if (flatTransforms) mergeFlatTransforms(styleOut, flatTransforms);
1252
835
  }
836
+ if (!styleProps.noNormalize) (0, import_expandStyles.fixStyles)(styleOut);
837
+ if (originalValues) styleOriginalValues.set(styleOut, originalValues);
1253
838
  return styleOut;
1254
839
  };
1255
- var useInsertEffectCompat = import_constants.isWeb ? import_react.default.useInsertionEffect || import_constants.useIsomorphicLayoutEffect : function () {};
840
+ import_constants.isWeb && (import_react.default.useInsertionEffect || import_constants.useIsomorphicLayoutEffect);
1256
841
  var useSplitStyles = function (a, b, c, d, e, f, g, h, i, j, k, l, m) {
1257
842
  "use no memo";
1258
843
 
1259
- var res = getSplitStyles(a, b, c, d, e, f, g, h, i, j, k, l, m);
1260
- if (false) {
1261
- useInsertEffectCompat(function () {
1262
- if (res) {
1263
- (0, import_insertStyleRule.insertStyleRules)(res.rulesToInsert);
1264
- }
1265
- }, [res === null || res === void 0 ? void 0 : res.rulesToInsert]);
1266
- }
1267
- return res;
844
+ return getSplitStyles(a, b, c, d, e, f, g, h, i, j, k, l, m);
1268
845
  };
1269
- function addStyleToInsertRules(rulesToInsert, styleObject) {
1270
- if (false) {
1271
- var identifier = styleObject[import_helpers.StyleObjectIdentifier];
1272
- if ((0, import_insertStyleRule.shouldInsertStyleRules)(identifier)) {
1273
- (0, import_insertStyleRule.updateRules)(identifier, styleObject[import_helpers.StyleObjectRules]);
1274
- rulesToInsert[identifier] = styleObject;
1275
- }
1276
- }
1277
- }
846
+ function addStyleToInsertRules(rulesToInsert, styleObject) {}
1278
847
  var defaultColor = process.env.GUI_DEFAULT_COLOR || "rgba(0,0,0,0)";
1279
848
  var animatableDefaults = {
1280
849
  ...Object.fromEntries(Object.entries(import_helpers.tokenCategories.color).map(function (param) {
@@ -1298,9 +867,7 @@ var animatableDefaults = {
1298
867
  var mergeTransform = function (obj, key, val) {
1299
868
  var backwards = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
1300
869
  var _obj;
1301
- if (typeof obj.transform === "string") {
1302
- return;
1303
- }
870
+ if (typeof obj.transform === "string") return;
1304
871
  (_obj = obj).transform || (_obj.transform = []);
1305
872
  obj.transform[backwards ? "unshift" : "push"]({
1306
873
  [mapTransformKeys[key] || key]: val
@@ -1311,17 +878,14 @@ var mapTransformKeys = {
1311
878
  y: "translateY"
1312
879
  };
1313
880
  function passDownProp(viewProps, key, val) {
1314
- var shouldMergeObject = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
1315
- if (shouldMergeObject) {
881
+ if (arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false) {
1316
882
  var next = {
1317
883
  ...viewProps[key],
1318
884
  ...val
1319
885
  };
1320
886
  delete viewProps[key];
1321
887
  viewProps[key] = next;
1322
- } else {
1323
- viewProps[key] = val;
1324
- }
888
+ } else viewProps[key] = val;
1325
889
  }
1326
890
  function mergeMediaByImportance(styleState, mediaKey, key, value, isSizeMedia, importanceBump, debugProp, originalVal) {
1327
891
  var usedKeys = styleState.usedKeys;
@@ -1330,48 +894,29 @@ function mergeMediaByImportance(styleState, mediaKey, key, value, isSizeMedia, i
1330
894
  var bumpedImportance = import_pseudoDescriptors.defaultMediaImportance + importanceBump;
1331
895
  importance = !usedKeys[key] || bumpedImportance > usedKeys[key] ? bumpedImportance : null;
1332
896
  }
1333
- if (process.env.NODE_ENV === "development" && debugProp === "verbose") {
1334
- (0, import_log.log)(`mergeMediaByImportance ${key} importance usedKey ${usedKeys[key]} next ${importance}`);
1335
- }
1336
- if (importance === null) {
1337
- return false;
1338
- }
897
+ if (process.env.NODE_ENV === "development" && debugProp === "verbose") (0, import_log.log)(`mergeMediaByImportance ${key} importance usedKey ${usedKeys[key]} next ${importance}`);
898
+ if (importance === null) return false;
1339
899
  if (key in import_pseudoDescriptors.pseudoDescriptors) {
1340
900
  var descriptor = import_pseudoDescriptors.pseudoDescriptors[key];
1341
901
  var descriptorKey = descriptor.stateKey || descriptor.name;
1342
- var isDisabled = styleState.componentState[descriptorKey] === false;
1343
- if (isDisabled) {
1344
- return false;
1345
- }
902
+ if (styleState.componentState[descriptorKey] === false) return false;
1346
903
  var pseudoOriginalValues = styleOriginalValues.get(value);
1347
- for (var subKey in value) {
1348
- mergeStyle(styleState, subKey, value[subKey], importance, false, pseudoOriginalValues === null || pseudoOriginalValues === void 0 ? void 0 : pseudoOriginalValues[subKey]);
1349
- }
1350
- } else {
1351
- mergeStyle(styleState, key, value, importance, false, originalVal);
1352
- }
904
+ for (var subKey in value) mergeStyle(styleState, subKey, value[subKey], importance, false, pseudoOriginalValues === null || pseudoOriginalValues === void 0 ? void 0 : pseudoOriginalValues[subKey]);
905
+ } else mergeStyle(styleState, key, value, importance, false, originalVal);
1353
906
  return true;
1354
907
  }
1355
908
  function normalizeStyle(style) {
1356
909
  var out = {};
1357
910
  for (var key in style) {
1358
911
  var val = style[key];
1359
- if (key in import_helpers.stylePropsTransform) {
1360
- mergeTransform(out, key, val);
1361
- } else {
1362
- out[key] = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(val, key);
1363
- }
1364
- }
1365
- if (import_constants.isWeb && Array.isArray(out.transform)) {
1366
- out.transform = (0, import_transformsToString.transformsToString)(out.transform);
912
+ if (key in import_helpers.stylePropsTransform) mergeTransform(out, key, val);else out[key] = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(val, key);
1367
913
  }
914
+ if (import_constants.isWeb && Array.isArray(out.transform)) out.transform = (0, import_transformsToString.transformsToString)(out.transform);
1368
915
  (0, import_expandStyles.fixStyles)(out);
1369
916
  return out;
1370
917
  }
1371
918
  function applyDefaultStyle(pkey, styleState) {
1372
919
  var defaultValues = animatableDefaults[pkey];
1373
- if (defaultValues != null && !(pkey in styleState.usedKeys) && (!styleState.style || !(pkey in styleState.style))) {
1374
- mergeStyle(styleState, pkey, defaultValues, 1);
1375
- }
920
+ if (defaultValues != null && !(pkey in styleState.usedKeys) && (!styleState.style || !(pkey in styleState.style))) mergeStyle(styleState, pkey, defaultValues, 1);
1376
921
  }
1377
922
  //# sourceMappingURL=getSplitStyles.native.js.map