@tamagui/web 2.7.7 → 3.0.0-beta.1093.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.
- package/dist/cjs/Tamagui.cjs +44 -53
- package/dist/cjs/Tamagui.native.cjs +123 -0
- package/dist/cjs/Tamagui.native.js +93 -96
- package/dist/cjs/Tamagui.native.js.map +1 -1
- package/dist/cjs/_withNativeStyle.cjs +80 -0
- package/dist/cjs/_withNativeStyle.native.cjs +85 -0
- package/dist/cjs/_withNativeStyle.native.js +87 -0
- package/dist/cjs/_withNativeStyle.native.js.map +1 -0
- package/dist/cjs/_withStableStyle.cjs +58 -54
- package/dist/cjs/_withStableStyle.native.cjs +88 -0
- package/dist/cjs/_withStableStyle.native.js +65 -57
- package/dist/cjs/_withStableStyle.native.js.map +1 -1
- package/dist/cjs/config.cjs +126 -133
- package/dist/cjs/config.native.cjs +199 -0
- package/dist/cjs/config.native.js +163 -173
- package/dist/cjs/config.native.js.map +1 -1
- package/dist/cjs/constants/constants.cjs +17 -19
- package/dist/cjs/constants/constants.native.cjs +40 -0
- package/dist/cjs/constants/constants.native.js +17 -18
- package/dist/cjs/constants/constants.native.js.map +1 -1
- package/dist/cjs/constants/isDevTools.cjs +20 -24
- package/dist/cjs/constants/isDevTools.native.cjs +33 -0
- package/dist/cjs/constants/isDevTools.native.js +22 -25
- package/dist/cjs/constants/isDevTools.native.js.map +1 -1
- package/dist/cjs/contexts/ComponentContext.cjs +31 -25
- package/dist/cjs/contexts/ComponentContext.native.cjs +49 -0
- package/dist/cjs/contexts/ComponentContext.native.js +32 -25
- package/dist/cjs/contexts/ComponentContext.native.js.map +1 -1
- package/dist/cjs/contexts/GroupContext.cjs +14 -18
- package/dist/cjs/contexts/GroupContext.native.cjs +27 -0
- package/dist/cjs/contexts/GroupContext.native.js +15 -18
- package/dist/cjs/contexts/GroupContext.native.js.map +1 -1
- package/dist/cjs/createComponent.cjs +1002 -1022
- package/dist/cjs/createComponent.native.cjs +1164 -0
- package/dist/cjs/createComponent.native.js +1099 -1001
- package/dist/cjs/createComponent.native.js.map +1 -1
- package/dist/cjs/createFont.cjs +40 -36
- package/dist/cjs/createFont.native.cjs +56 -0
- package/dist/cjs/createFont.native.js +43 -38
- package/dist/cjs/createFont.native.js.map +1 -1
- package/dist/cjs/createShorthands.cjs +15 -19
- package/dist/cjs/createShorthands.native.cjs +28 -0
- package/dist/cjs/createShorthands.native.js +15 -18
- package/dist/cjs/createShorthands.native.js.map +1 -1
- package/dist/cjs/createStyledHOC.cjs +104 -0
- package/dist/cjs/createStyledHOC.native.cjs +107 -0
- package/dist/cjs/createStyledHOC.native.js +109 -0
- package/dist/cjs/createStyledHOC.native.js.map +1 -0
- package/dist/cjs/createTamagui.cjs +287 -224
- package/dist/cjs/createTamagui.native.cjs +354 -0
- package/dist/cjs/createTamagui.native.js +321 -272
- package/dist/cjs/createTamagui.native.js.map +1 -1
- package/dist/cjs/createTokens.cjs +27 -19
- package/dist/cjs/createTokens.native.cjs +42 -0
- package/dist/cjs/createTokens.native.js +28 -19
- package/dist/cjs/createTokens.native.js.map +1 -1
- package/dist/cjs/createVariable.cjs +85 -90
- package/dist/cjs/createVariable.native.cjs +130 -0
- package/dist/cjs/createVariable.native.js +97 -106
- package/dist/cjs/createVariable.native.js.map +1 -1
- package/dist/cjs/createVariables.cjs +49 -60
- package/dist/cjs/createVariables.native.cjs +66 -0
- package/dist/cjs/createVariables.native.js +51 -66
- package/dist/cjs/createVariables.native.js.map +1 -1
- package/dist/cjs/defaultComponentState.cjs +28 -30
- package/dist/cjs/defaultComponentState.native.cjs +47 -0
- package/dist/cjs/defaultComponentState.native.js +28 -29
- package/dist/cjs/defaultComponentState.native.js.map +1 -1
- package/dist/cjs/dom/adapters.cjs +95 -0
- package/dist/cjs/dom/adapters.native.cjs +116 -0
- package/dist/cjs/dom/adapters.native.js +118 -0
- package/dist/cjs/dom/adapters.native.js.map +1 -0
- package/dist/cjs/dom/contract.cjs +16 -0
- package/dist/cjs/dom/contract.native.cjs +18 -0
- package/dist/cjs/dom/contract.native.js +20 -0
- package/dist/cjs/dom/contract.native.js.map +1 -0
- package/dist/cjs/dom/domEventProps.native.cjs +56 -0
- package/dist/cjs/dom/domEventProps.native.js +58 -0
- package/dist/cjs/dom/domEventProps.native.js.map +1 -0
- package/dist/cjs/dom/html.cjs +630 -0
- package/dist/cjs/dom/html.native.cjs +951 -0
- package/dist/cjs/dom/html.native.js +953 -0
- package/dist/cjs/dom/html.native.js.map +1 -0
- package/dist/cjs/dom/htmlRuntime.native.cjs +176 -0
- package/dist/cjs/dom/htmlRuntime.native.js +178 -0
- package/dist/cjs/dom/htmlRuntime.native.js.map +1 -0
- package/dist/cjs/dom/index.cjs +28 -0
- package/dist/cjs/dom/index.native.cjs +41 -0
- package/dist/cjs/dom/index.native.js +43 -0
- package/dist/cjs/dom/index.native.js.map +1 -0
- package/dist/cjs/dom/primitives.native.cjs +642 -0
- package/dist/cjs/dom/primitives.native.js +644 -0
- package/dist/cjs/dom/primitives.native.js.map +1 -0
- package/dist/cjs/dom/standalone.cjs +33 -0
- package/dist/cjs/dom/standalone.native.cjs +39 -0
- package/dist/cjs/dom/standalone.native.js +41 -0
- package/dist/cjs/dom/standalone.native.js.map +1 -0
- package/dist/cjs/dom/standaloneHtml.cjs +75 -0
- package/dist/cjs/dom/standaloneHtml.native.cjs +77 -0
- package/dist/cjs/dom/standaloneHtml.native.js +79 -0
- package/dist/cjs/dom/standaloneHtml.native.js.map +1 -0
- package/dist/cjs/dom/styleTypes.cjs +16 -0
- package/dist/cjs/dom/styleTypes.native.cjs +18 -0
- package/dist/cjs/dom/styleTypes.native.js +20 -0
- package/dist/cjs/dom/styleTypes.native.js.map +1 -0
- package/dist/cjs/eventDetails.cjs +38 -0
- package/dist/cjs/eventDetails.native.cjs +40 -0
- package/dist/cjs/eventDetails.native.js +42 -0
- package/dist/cjs/eventDetails.native.js.map +1 -0
- package/dist/cjs/eventHandling.cjs +29 -31
- package/dist/cjs/eventHandling.native.cjs +191 -0
- package/dist/cjs/eventHandling.native.js +158 -188
- package/dist/cjs/eventHandling.native.js.map +1 -1
- package/dist/cjs/helpers/borderComponents.cjs +62 -0
- package/dist/cjs/helpers/borderComponents.native.cjs +82 -0
- package/dist/cjs/helpers/borderComponents.native.js +84 -0
- package/dist/cjs/helpers/borderComponents.native.js.map +1 -0
- package/dist/cjs/helpers/componentDisplayName.cjs +24 -0
- package/dist/cjs/helpers/componentDisplayName.native.cjs +26 -0
- package/dist/cjs/helpers/componentDisplayName.native.js +28 -0
- package/dist/cjs/helpers/componentDisplayName.native.js.map +1 -0
- package/dist/cjs/helpers/configVariables.cjs +79 -0
- package/dist/cjs/helpers/configVariables.native.cjs +82 -0
- package/dist/cjs/helpers/configVariables.native.js +84 -0
- package/dist/cjs/helpers/configVariables.native.js.map +1 -0
- package/dist/cjs/helpers/consoleLog.native.cjs +30 -0
- package/dist/cjs/helpers/consoleLog.native.js +16 -17
- package/dist/cjs/helpers/consoleLog.native.js.map +1 -1
- package/dist/cjs/helpers/createDesignSystem.cjs +146 -152
- package/dist/cjs/helpers/createDesignSystem.native.cjs +195 -0
- package/dist/cjs/helpers/createDesignSystem.native.js +167 -205
- package/dist/cjs/helpers/createDesignSystem.native.js.map +1 -1
- package/dist/cjs/helpers/createStyledContext.cjs +64 -84
- package/dist/cjs/helpers/createStyledContext.native.cjs +88 -0
- package/dist/cjs/helpers/createStyledContext.native.js +69 -88
- package/dist/cjs/helpers/createStyledContext.native.js.map +1 -1
- package/dist/cjs/helpers/defaultAnimationDriver.cjs +23 -32
- package/dist/cjs/helpers/defaultAnimationDriver.native.cjs +46 -0
- package/dist/cjs/helpers/defaultAnimationDriver.native.js +32 -48
- package/dist/cjs/helpers/defaultAnimationDriver.native.js.map +1 -1
- package/dist/cjs/helpers/defaultOffset.cjs +16 -20
- package/dist/cjs/helpers/defaultOffset.native.cjs +29 -0
- package/dist/cjs/helpers/defaultOffset.native.js +16 -19
- package/dist/cjs/helpers/defaultOffset.native.js.map +1 -1
- package/dist/cjs/helpers/expandStyle.cjs +150 -84
- package/dist/cjs/helpers/expandStyle.native.cjs +185 -0
- package/dist/cjs/helpers/expandStyle.native.js +153 -124
- package/dist/cjs/helpers/expandStyle.native.js.map +1 -1
- package/dist/cjs/helpers/expandStyles.cjs +21 -25
- package/dist/cjs/helpers/expandStyles.native.cjs +46 -0
- package/dist/cjs/helpers/expandStyles.native.js +28 -31
- package/dist/cjs/helpers/expandStyles.native.js.map +1 -1
- package/dist/cjs/helpers/extractPseudoState.cjs +44 -0
- package/dist/cjs/helpers/extractPseudoState.native.cjs +47 -0
- package/dist/cjs/helpers/extractPseudoState.native.js +49 -0
- package/dist/cjs/helpers/extractPseudoState.native.js.map +1 -0
- package/dist/cjs/helpers/fluid.cjs +56 -0
- package/dist/cjs/helpers/fluid.native.cjs +58 -0
- package/dist/cjs/helpers/fluid.native.js +60 -0
- package/dist/cjs/helpers/fluid.native.js.map +1 -0
- package/dist/cjs/helpers/formatDiagnostic.cjs +69 -0
- package/dist/cjs/helpers/formatDiagnostic.native.cjs +74 -0
- package/dist/cjs/helpers/formatDiagnostic.native.js +76 -0
- package/dist/cjs/helpers/formatDiagnostic.native.js.map +1 -0
- package/dist/cjs/helpers/getCSSStylesAtomic.cjs +242 -193
- package/dist/cjs/helpers/getCSSStylesAtomic.native.cjs +45 -0
- package/dist/cjs/helpers/getCSSStylesAtomic.native.js +29 -20
- package/dist/cjs/helpers/getCSSStylesAtomic.native.js.map +1 -1
- package/dist/cjs/helpers/getCSSStylesAtomicCompiled.cjs +44 -0
- package/dist/cjs/helpers/getCSSStylesAtomicCompiled.native.cjs +48 -0
- package/dist/cjs/helpers/getCSSStylesAtomicCompiled.native.js +50 -0
- package/dist/cjs/helpers/getCSSStylesAtomicCompiled.native.js.map +1 -0
- package/dist/cjs/helpers/getDynamicVal.cjs +48 -52
- package/dist/cjs/helpers/getDynamicVal.native.cjs +71 -0
- package/dist/cjs/helpers/getDynamicVal.native.js +48 -51
- package/dist/cjs/helpers/getDynamicVal.native.js.map +1 -1
- package/dist/cjs/helpers/getExpandedShorthands.cjs +16 -30
- package/dist/cjs/helpers/getExpandedShorthands.native.cjs +31 -0
- package/dist/cjs/helpers/getExpandedShorthands.native.js +17 -30
- package/dist/cjs/helpers/getExpandedShorthands.native.js.map +1 -1
- package/dist/cjs/helpers/getShorthandValue.cjs +16 -20
- package/dist/cjs/helpers/getShorthandValue.native.cjs +32 -0
- package/dist/cjs/helpers/getShorthandValue.native.js +18 -21
- package/dist/cjs/helpers/getShorthandValue.native.js.map +1 -1
- package/dist/cjs/helpers/getSplitStyles.cjs +1623 -919
- package/dist/cjs/helpers/getSplitStyles.native.cjs +1835 -0
- package/dist/cjs/helpers/getSplitStyles.native.js +1800 -948
- package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/cjs/helpers/getThemeCSSRules.cjs +105 -109
- package/dist/cjs/helpers/getThemeCSSRules.native.cjs +28 -0
- package/dist/cjs/helpers/getThemeCSSRules.native.js +15 -18
- package/dist/cjs/helpers/getThemeCSSRules.native.js.map +1 -1
- package/dist/cjs/helpers/grammarConfig.cjs +276 -0
- package/dist/cjs/helpers/grammarConfig.native.cjs +412 -0
- package/dist/cjs/helpers/grammarConfig.native.js +414 -0
- package/dist/cjs/helpers/grammarConfig.native.js.map +1 -0
- package/dist/cjs/helpers/insertStyleRule.cjs +253 -184
- package/dist/cjs/helpers/insertStyleRule.native.cjs +223 -0
- package/dist/cjs/helpers/insertStyleRule.native.js +189 -68
- package/dist/cjs/helpers/insertStyleRule.native.js.map +1 -1
- package/dist/cjs/helpers/isObj.cjs +22 -16
- package/dist/cjs/helpers/isObj.native.cjs +38 -0
- package/dist/cjs/helpers/isObj.native.js +24 -22
- package/dist/cjs/helpers/isObj.native.js.map +1 -1
- package/dist/cjs/helpers/isTamaguiComponent.cjs +17 -21
- package/dist/cjs/helpers/isTamaguiComponent.native.cjs +29 -0
- package/dist/cjs/helpers/isTamaguiComponent.native.js +17 -20
- package/dist/cjs/helpers/isTamaguiComponent.native.js.map +1 -1
- package/dist/cjs/helpers/isTamaguiElement.cjs +19 -28
- package/dist/cjs/helpers/isTamaguiElement.native.cjs +36 -0
- package/dist/cjs/helpers/isTamaguiElement.native.js +19 -27
- package/dist/cjs/helpers/isTamaguiElement.native.js.map +1 -1
- package/dist/cjs/helpers/log.cjs +24 -27
- package/dist/cjs/helpers/log.native.cjs +39 -0
- package/dist/cjs/helpers/log.native.js +25 -27
- package/dist/cjs/helpers/log.native.js.map +1 -1
- package/dist/cjs/helpers/mainThreadPressEvents.cjs +14 -18
- package/dist/cjs/helpers/mainThreadPressEvents.native.cjs +155 -0
- package/dist/cjs/helpers/mainThreadPressEvents.native.js +138 -142
- package/dist/cjs/helpers/mainThreadPressEvents.native.js.map +1 -1
- package/dist/cjs/helpers/matchMedia.cjs +21 -23
- package/dist/cjs/helpers/matchMedia.native.cjs +68 -0
- package/dist/cjs/helpers/matchMedia.native.js +49 -41
- package/dist/cjs/helpers/matchMedia.native.js.map +1 -1
- package/dist/cjs/helpers/mediaObjectToString.cjs +34 -38
- package/dist/cjs/helpers/mediaObjectToString.native.cjs +52 -0
- package/dist/cjs/helpers/mediaObjectToString.native.js +37 -40
- package/dist/cjs/helpers/mediaObjectToString.native.js.map +1 -1
- package/dist/cjs/helpers/mediaState.cjs +34 -43
- package/dist/cjs/helpers/mediaState.native.cjs +52 -0
- package/dist/cjs/helpers/mediaState.native.js +37 -46
- package/dist/cjs/helpers/mediaState.native.js.map +1 -1
- package/dist/cjs/helpers/mergeProps.cjs +50 -63
- package/dist/cjs/helpers/mergeProps.native.cjs +68 -0
- package/dist/cjs/helpers/mergeProps.native.js +53 -70
- package/dist/cjs/helpers/mergeProps.native.js.map +1 -1
- package/dist/cjs/helpers/mergeRenderElementProps.cjs +17 -23
- package/dist/cjs/helpers/mergeRenderElementProps.native.cjs +31 -0
- package/dist/cjs/helpers/mergeRenderElementProps.native.js +17 -22
- package/dist/cjs/helpers/mergeRenderElementProps.native.js.map +1 -1
- package/dist/cjs/helpers/mergeSlotStyleProps.cjs +34 -38
- package/dist/cjs/helpers/mergeSlotStyleProps.native.cjs +50 -0
- package/dist/cjs/helpers/mergeSlotStyleProps.native.js +34 -37
- package/dist/cjs/helpers/mergeSlotStyleProps.native.js.map +1 -1
- package/dist/cjs/helpers/mergeVariants.cjs +82 -41
- package/dist/cjs/helpers/mergeVariants.native.cjs +130 -0
- package/dist/cjs/helpers/mergeVariants.native.js +118 -42
- package/dist/cjs/helpers/mergeVariants.native.js.map +1 -1
- package/dist/cjs/helpers/nativeOnlyProps.cjs +46 -51
- package/dist/cjs/helpers/nativeOnlyProps.native.cjs +59 -0
- package/dist/cjs/helpers/nativeOnlyProps.native.js +46 -50
- package/dist/cjs/helpers/nativeOnlyProps.native.js.map +1 -1
- package/dist/cjs/helpers/nativeStyleEngine.cjs +269 -0
- package/dist/cjs/helpers/nativeStyleEngine.native.cjs +400 -0
- package/dist/cjs/helpers/nativeStyleEngine.native.js +402 -0
- package/dist/cjs/helpers/nativeStyleEngine.native.js.map +1 -0
- package/dist/cjs/helpers/nativeTransitionTarget.cjs +26 -0
- package/dist/cjs/helpers/nativeTransitionTarget.native.cjs +42 -0
- package/dist/cjs/helpers/nativeTransitionTarget.native.js +44 -0
- package/dist/cjs/helpers/nativeTransitionTarget.native.js.map +1 -0
- package/dist/cjs/helpers/normalizeColor.cjs +22 -35
- package/dist/cjs/helpers/normalizeColor.native.cjs +49 -0
- package/dist/cjs/helpers/normalizeColor.native.js +32 -34
- package/dist/cjs/helpers/normalizeColor.native.js.map +1 -1
- package/dist/cjs/helpers/normalizeShadow.cjs +25 -39
- package/dist/cjs/helpers/normalizeShadow.native.cjs +41 -0
- package/dist/cjs/helpers/normalizeShadow.native.js +26 -37
- package/dist/cjs/helpers/normalizeShadow.native.js.map +1 -1
- package/dist/cjs/helpers/normalizeStyle.cjs +59 -61
- package/dist/cjs/helpers/normalizeStyle.native.cjs +93 -0
- package/dist/cjs/helpers/normalizeStyle.native.js +76 -79
- package/dist/cjs/helpers/normalizeStyle.native.js.map +1 -1
- package/dist/cjs/helpers/normalizeValueWithProperty.cjs +42 -41
- package/dist/cjs/helpers/normalizeValueWithProperty.native.cjs +60 -0
- package/dist/cjs/helpers/normalizeValueWithProperty.native.js +45 -46
- package/dist/cjs/helpers/normalizeValueWithProperty.native.js.map +1 -1
- package/dist/cjs/helpers/noteOnce.cjs +31 -0
- package/dist/cjs/helpers/noteOnce.native.cjs +33 -0
- package/dist/cjs/helpers/noteOnce.native.js +35 -0
- package/dist/cjs/helpers/noteOnce.native.js.map +1 -0
- package/dist/cjs/helpers/objectIdentityKey.cjs +30 -34
- package/dist/cjs/helpers/objectIdentityKey.native.cjs +44 -0
- package/dist/cjs/helpers/objectIdentityKey.native.js +31 -39
- package/dist/cjs/helpers/objectIdentityKey.native.js.map +1 -1
- package/dist/cjs/helpers/parseBorderShorthand.cjs +15 -19
- package/dist/cjs/helpers/parseBorderShorthand.native.cjs +65 -0
- package/dist/cjs/helpers/parseBorderShorthand.native.js +50 -69
- package/dist/cjs/helpers/parseBorderShorthand.native.js.map +1 -1
- package/dist/cjs/helpers/parseNativeStyle.native.cjs +205 -0
- package/dist/cjs/helpers/parseNativeStyle.native.js +182 -165
- package/dist/cjs/helpers/parseNativeStyle.native.js.map +1 -1
- package/dist/cjs/helpers/parseNativeTransform.native.cjs +67 -0
- package/dist/cjs/helpers/parseNativeTransform.native.js +69 -0
- package/dist/cjs/helpers/parseNativeTransform.native.js.map +1 -0
- package/dist/cjs/helpers/parseOutlineShorthand.cjs +15 -19
- package/dist/cjs/helpers/parseOutlineShorthand.native.cjs +44 -0
- package/dist/cjs/helpers/parseOutlineShorthand.native.js +31 -65
- package/dist/cjs/helpers/parseOutlineShorthand.native.js.map +1 -1
- package/dist/cjs/helpers/pointerEvents.cjs +14 -18
- package/dist/cjs/helpers/pointerEvents.native.cjs +131 -0
- package/dist/cjs/helpers/pointerEvents.native.js +116 -144
- package/dist/cjs/helpers/pointerEvents.native.js.map +1 -1
- package/dist/cjs/helpers/proxyThemeToParents.cjs +46 -48
- package/dist/cjs/helpers/proxyThemeToParents.native.cjs +167 -0
- package/dist/cjs/helpers/proxyThemeToParents.native.js +150 -142
- package/dist/cjs/helpers/proxyThemeToParents.native.js.map +1 -1
- package/dist/cjs/helpers/registerCSSVariable.cjs +97 -60
- package/dist/cjs/helpers/registerCSSVariable.native.cjs +135 -0
- package/dist/cjs/helpers/registerCSSVariable.native.js +113 -61
- package/dist/cjs/helpers/registerCSSVariable.native.js.map +1 -1
- package/dist/cjs/helpers/resolveAnimationDriver.cjs +27 -26
- package/dist/cjs/helpers/resolveAnimationDriver.native.cjs +40 -0
- package/dist/cjs/helpers/resolveAnimationDriver.native.js +27 -26
- package/dist/cjs/helpers/resolveAnimationDriver.native.js.map +1 -1
- package/dist/cjs/helpers/resolveNativeUnits.cjs +32 -0
- package/dist/cjs/helpers/resolveNativeUnits.native.cjs +168 -0
- package/dist/cjs/helpers/resolveNativeUnits.native.js +170 -0
- package/dist/cjs/helpers/resolveNativeUnits.native.js.map +1 -0
- package/dist/cjs/helpers/resolveRem.cjs +17 -19
- package/dist/cjs/helpers/resolveRem.native.cjs +53 -0
- package/dist/cjs/helpers/resolveRem.native.js +34 -38
- package/dist/cjs/helpers/resolveRem.native.js.map +1 -1
- package/dist/cjs/helpers/resolveSafeArea.cjs +50 -25
- package/dist/cjs/helpers/resolveSafeArea.native.cjs +129 -0
- package/dist/cjs/helpers/resolveSafeArea.native.js +114 -29
- package/dist/cjs/helpers/resolveSafeArea.native.js.map +1 -1
- package/dist/cjs/helpers/resolveSafeAreaVariable.cjs +33 -0
- package/dist/cjs/helpers/resolveSafeAreaVariable.native.cjs +51 -0
- package/dist/cjs/helpers/resolveSafeAreaVariable.native.js +53 -0
- package/dist/cjs/helpers/resolveSafeAreaVariable.native.js.map +1 -0
- package/dist/cjs/helpers/resolveVariableValue.cjs +34 -0
- package/dist/cjs/helpers/resolveVariableValue.native.cjs +38 -0
- package/dist/cjs/helpers/resolveVariableValue.native.js +40 -0
- package/dist/cjs/helpers/resolveVariableValue.native.js.map +1 -0
- package/dist/cjs/helpers/resolveVariantStyle.cjs +57 -0
- package/dist/cjs/helpers/resolveVariantStyle.native.cjs +63 -0
- package/dist/cjs/helpers/resolveVariantStyle.native.js +65 -0
- package/dist/cjs/helpers/resolveVariantStyle.native.js.map +1 -0
- package/dist/cjs/helpers/setElementProps.cjs +16 -20
- package/dist/cjs/helpers/setElementProps.native.cjs +34 -0
- package/dist/cjs/helpers/setElementProps.native.js +21 -24
- package/dist/cjs/helpers/setElementProps.native.js.map +1 -1
- package/dist/cjs/helpers/skipProps.cjs +32 -29
- package/dist/cjs/helpers/skipProps.native.cjs +51 -0
- package/dist/cjs/helpers/skipProps.native.js +32 -28
- package/dist/cjs/helpers/skipProps.native.js.map +1 -1
- package/dist/cjs/helpers/sortString.cjs +14 -18
- package/dist/cjs/helpers/sortString.native.cjs +28 -0
- package/dist/cjs/helpers/sortString.native.js +16 -19
- package/dist/cjs/helpers/sortString.native.js.map +1 -1
- package/dist/cjs/helpers/splitStyleProps.cjs +46 -0
- package/dist/cjs/helpers/splitStyleProps.native.cjs +49 -0
- package/dist/cjs/helpers/splitStyleProps.native.js +51 -0
- package/dist/cjs/helpers/splitStyleProps.native.js.map +1 -0
- package/dist/cjs/helpers/styleFrontend.cjs +46 -0
- package/dist/cjs/helpers/styleFrontend.native.cjs +48 -0
- package/dist/cjs/helpers/styleFrontend.native.js +50 -0
- package/dist/cjs/helpers/styleFrontend.native.js.map +1 -0
- package/dist/cjs/helpers/styleOriginalValues.cjs +14 -18
- package/dist/cjs/helpers/styleOriginalValues.native.cjs +26 -0
- package/dist/cjs/helpers/styleOriginalValues.native.js +15 -18
- package/dist/cjs/helpers/styleOriginalValues.native.js.map +1 -1
- package/dist/cjs/helpers/styleProvenance.cjs +25 -27
- package/dist/cjs/helpers/styleProvenance.native.cjs +43 -0
- package/dist/cjs/helpers/styleProvenance.native.js +25 -26
- package/dist/cjs/helpers/styleProvenance.native.js.map +1 -1
- package/dist/cjs/helpers/styleStaticConfig.cjs +27 -0
- package/dist/cjs/helpers/styleStaticConfig.native.cjs +29 -0
- package/dist/cjs/helpers/styleStaticConfig.native.js +31 -0
- package/dist/cjs/helpers/styleStaticConfig.native.js.map +1 -0
- package/dist/cjs/helpers/styleStaticConfigCore.cjs +107 -0
- package/dist/cjs/helpers/styleStaticConfigCore.native.cjs +127 -0
- package/dist/cjs/helpers/styleStaticConfigCore.native.js +129 -0
- package/dist/cjs/helpers/styleStaticConfigCore.native.js.map +1 -0
- package/dist/cjs/helpers/styleToCSS.cjs +59 -0
- package/dist/cjs/helpers/styleToCSS.native.cjs +26 -0
- package/dist/cjs/helpers/styleToCSS.native.js +28 -0
- package/dist/cjs/helpers/styleToCSS.native.js.map +1 -0
- package/dist/cjs/helpers/styledDynamic.cjs +161 -0
- package/dist/cjs/helpers/styledDynamic.native.cjs +192 -0
- package/dist/cjs/helpers/styledDynamic.native.js +194 -0
- package/dist/cjs/helpers/styledDynamic.native.js.map +1 -0
- package/dist/cjs/helpers/subscribeToContextGroup.cjs +110 -94
- package/dist/cjs/helpers/subscribeToContextGroup.native.cjs +186 -0
- package/dist/cjs/helpers/subscribeToContextGroup.native.js +169 -138
- package/dist/cjs/helpers/subscribeToContextGroup.native.js.map +1 -1
- package/dist/cjs/helpers/themeRef.cjs +41 -0
- package/dist/cjs/helpers/themeRef.native.cjs +43 -0
- package/dist/cjs/helpers/themeRef.native.js +45 -0
- package/dist/cjs/helpers/themeRef.native.js.map +1 -0
- package/dist/cjs/helpers/themeUpdateState.cjs +24 -0
- package/dist/cjs/helpers/themeUpdateState.native.cjs +26 -0
- package/dist/cjs/helpers/themeUpdateState.native.js +28 -0
- package/dist/cjs/helpers/themeUpdateState.native.js.map +1 -0
- package/dist/cjs/helpers/themes.cjs +29 -34
- package/dist/cjs/helpers/themes.native.cjs +43 -0
- package/dist/cjs/helpers/themes.native.js +29 -33
- package/dist/cjs/helpers/themes.native.js.map +1 -1
- package/dist/cjs/helpers/timer.cjs +15 -21
- package/dist/cjs/helpers/timer.native.cjs +30 -0
- package/dist/cjs/helpers/timer.native.js +17 -22
- package/dist/cjs/helpers/timer.native.js.map +1 -1
- package/dist/cjs/helpers/tokenCategories.cjs +40 -0
- package/dist/cjs/helpers/tokenCategories.native.cjs +42 -0
- package/dist/cjs/helpers/tokenCategories.native.js +44 -0
- package/dist/cjs/helpers/tokenCategories.native.js.map +1 -0
- package/dist/cjs/helpers/transformsToString.cjs +24 -31
- package/dist/cjs/helpers/transformsToString.native.cjs +55 -0
- package/dist/cjs/helpers/transformsToString.native.js +41 -30
- package/dist/cjs/helpers/transformsToString.native.js.map +1 -1
- package/dist/cjs/helpers/variableValue.cjs +71 -0
- package/dist/cjs/helpers/variableValue.native.cjs +111 -0
- package/dist/cjs/helpers/variableValue.native.js +113 -0
- package/dist/cjs/helpers/variableValue.native.js.map +1 -0
- package/dist/cjs/helpers/variables.cjs +568 -0
- package/dist/cjs/helpers/variables.native.cjs +806 -0
- package/dist/cjs/helpers/variables.native.js +808 -0
- package/dist/cjs/helpers/variables.native.js.map +1 -0
- package/dist/cjs/helpers/warnOnce.cjs +38 -0
- package/dist/cjs/helpers/warnOnce.native.cjs +42 -0
- package/dist/cjs/helpers/warnOnce.native.js +44 -0
- package/dist/cjs/helpers/warnOnce.native.js.map +1 -0
- package/dist/cjs/helpers/webPropsToSkip.cjs +14 -18
- package/dist/cjs/helpers/webPropsToSkip.native.cjs +67 -0
- package/dist/cjs/helpers/webPropsToSkip.native.js +53 -62
- package/dist/cjs/helpers/webPropsToSkip.native.js.map +1 -1
- package/dist/cjs/helpers/wrapStyleTags.cjs +46 -48
- package/dist/cjs/helpers/wrapStyleTags.native.cjs +31 -0
- package/dist/cjs/helpers/wrapStyleTags.native.js +18 -18
- package/dist/cjs/helpers/wrapStyleTags.native.js.map +1 -1
- package/dist/cjs/hooks/doesRootSchemeMatchSystem.cjs +15 -19
- package/dist/cjs/hooks/doesRootSchemeMatchSystem.native.cjs +31 -0
- package/dist/cjs/hooks/doesRootSchemeMatchSystem.native.js +16 -19
- package/dist/cjs/hooks/doesRootSchemeMatchSystem.native.js.map +1 -1
- package/dist/cjs/hooks/getThemeProxied.cjs +60 -58
- package/dist/cjs/hooks/getThemeProxied.native.cjs +123 -0
- package/dist/cjs/hooks/getThemeProxied.native.js +97 -79
- package/dist/cjs/hooks/getThemeProxied.native.js.map +1 -1
- package/dist/cjs/hooks/isOptimizedForFirstRender.cjs +27 -0
- package/dist/cjs/hooks/isOptimizedForFirstRender.native.cjs +29 -0
- package/dist/cjs/hooks/isOptimizedForFirstRender.native.js +31 -0
- package/dist/cjs/hooks/isOptimizedForFirstRender.native.js.map +1 -0
- package/dist/cjs/hooks/useAnimationDriver.cjs +51 -0
- package/dist/cjs/hooks/useAnimationDriver.native.cjs +59 -0
- package/dist/cjs/hooks/useAnimationDriver.native.js +61 -0
- package/dist/cjs/hooks/useAnimationDriver.native.js.map +1 -0
- package/dist/cjs/hooks/useComponentState.cjs +178 -200
- package/dist/cjs/hooks/useComponentState.native.cjs +212 -0
- package/dist/cjs/hooks/useComponentState.native.js +190 -211
- package/dist/cjs/hooks/useComponentState.native.js.map +1 -1
- package/dist/cjs/hooks/useDisableSSR.cjs +15 -19
- package/dist/cjs/hooks/useDisableSSR.native.cjs +30 -0
- package/dist/cjs/hooks/useDisableSSR.native.js +16 -19
- package/dist/cjs/hooks/useDisableSSR.native.js.map +1 -1
- package/dist/cjs/hooks/useIsTouchDevice.cjs +15 -19
- package/dist/cjs/hooks/useIsTouchDevice.native.cjs +30 -0
- package/dist/cjs/hooks/useIsTouchDevice.native.js +16 -19
- package/dist/cjs/hooks/useIsTouchDevice.native.js.map +1 -1
- package/dist/cjs/hooks/useMedia.cjs +317 -257
- package/dist/cjs/hooks/useMedia.native.cjs +519 -0
- package/dist/cjs/hooks/useMedia.native.js +470 -307
- package/dist/cjs/hooks/useMedia.native.js.map +1 -1
- package/dist/cjs/hooks/usePortalThemeState.cjs +40 -0
- package/dist/cjs/hooks/usePortalThemeState.native.cjs +42 -0
- package/dist/cjs/hooks/usePortalThemeState.native.js +44 -0
- package/dist/cjs/hooks/usePortalThemeState.native.js.map +1 -0
- package/dist/cjs/hooks/useSplitStyles.cjs +42 -0
- package/dist/cjs/hooks/useSplitStyles.native.cjs +42 -0
- package/dist/cjs/hooks/useSplitStyles.native.js +44 -0
- package/dist/cjs/hooks/useSplitStyles.native.js.map +1 -0
- package/dist/cjs/hooks/useStyle.cjs +30 -0
- package/dist/cjs/hooks/useStyle.native.cjs +32 -0
- package/dist/cjs/hooks/useStyle.native.js +34 -0
- package/dist/cjs/hooks/useStyle.native.js.map +1 -0
- package/dist/cjs/hooks/useTheme.cjs +40 -49
- package/dist/cjs/hooks/useTheme.native.cjs +64 -0
- package/dist/cjs/hooks/useTheme.native.js +43 -52
- package/dist/cjs/hooks/useTheme.native.js.map +1 -1
- package/dist/cjs/hooks/useThemeName.cjs +19 -25
- package/dist/cjs/hooks/useThemeName.native.cjs +38 -0
- package/dist/cjs/hooks/useThemeName.native.js +22 -27
- package/dist/cjs/hooks/useThemeName.native.js.map +1 -1
- package/dist/cjs/hooks/useThemeState.cjs +282 -368
- package/dist/cjs/hooks/useThemeState.native.cjs +378 -0
- package/dist/cjs/hooks/useThemeState.native.js +334 -477
- package/dist/cjs/hooks/useThemeState.native.js.map +1 -1
- package/dist/cjs/index.cjs +233 -105
- package/dist/cjs/index.native.cjs +255 -0
- package/dist/cjs/index.native.js +234 -105
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/inject-styles.cjs +24 -31
- package/dist/cjs/inject-styles.native.cjs +38 -0
- package/dist/cjs/inject-styles.native.js +25 -31
- package/dist/cjs/inject-styles.native.js.map +1 -1
- package/dist/cjs/insertFont.cjs +60 -61
- package/dist/cjs/insertFont.native.cjs +79 -0
- package/dist/cjs/insertFont.native.js +54 -54
- package/dist/cjs/insertFont.native.js.map +1 -1
- package/dist/cjs/interfaces/CSSColorNames.cjs +166 -11
- package/dist/cjs/interfaces/CSSColorNames.native.cjs +175 -0
- package/dist/cjs/interfaces/CSSColorNames.native.js +166 -10
- package/dist/cjs/interfaces/CSSColorNames.native.js.map +1 -1
- package/dist/cjs/interfaces/GetRef.cjs +9 -11
- package/dist/cjs/interfaces/GetRef.native.cjs +18 -0
- package/dist/cjs/interfaces/GetRef.native.js +9 -10
- package/dist/cjs/interfaces/GetRef.native.js.map +1 -1
- package/dist/cjs/interfaces/RNExclusiveTypes.cjs +9 -11
- package/dist/cjs/interfaces/RNExclusiveTypes.native.cjs +18 -0
- package/dist/cjs/interfaces/RNExclusiveTypes.native.js +9 -10
- package/dist/cjs/interfaces/RNExclusiveTypes.native.js.map +1 -1
- package/dist/cjs/interfaces/TamaguiComponentEvents.cjs +9 -11
- package/dist/cjs/interfaces/TamaguiComponentEvents.native.cjs +18 -0
- package/dist/cjs/interfaces/TamaguiComponentEvents.native.js +9 -10
- package/dist/cjs/interfaces/TamaguiComponentEvents.native.js.map +1 -1
- package/dist/cjs/interfaces/TamaguiComponentPropsBaseBase.cjs +9 -11
- package/dist/cjs/interfaces/TamaguiComponentPropsBaseBase.native.cjs +18 -0
- package/dist/cjs/interfaces/TamaguiComponentPropsBaseBase.native.js +9 -10
- package/dist/cjs/interfaces/TamaguiComponentPropsBaseBase.native.js.map +1 -1
- package/dist/cjs/internal-runtime.cjs +123 -0
- package/dist/cjs/internal-runtime.native.cjs +125 -0
- package/dist/cjs/internal-runtime.native.js +127 -0
- package/dist/cjs/internal-runtime.native.js.map +1 -0
- package/dist/cjs/internalRuntimeTypes.cjs +16 -0
- package/dist/cjs/internalRuntimeTypes.native.cjs +18 -0
- package/dist/cjs/internalRuntimeTypes.native.js +20 -0
- package/dist/cjs/internalRuntimeTypes.native.js.map +1 -0
- package/dist/cjs/setupHooks.cjs +16 -18
- package/dist/cjs/setupHooks.native.cjs +32 -0
- package/dist/cjs/setupHooks.native.js +16 -17
- package/dist/cjs/setupHooks.native.js.map +1 -1
- package/dist/cjs/setupReactNative.cjs +14 -44
- package/dist/cjs/setupReactNative.native.cjs +53 -0
- package/dist/cjs/setupReactNative.native.js +38 -41
- package/dist/cjs/setupReactNative.native.js.map +1 -1
- package/dist/cjs/static-resolve.cjs +230 -0
- package/dist/cjs/static-resolve.native.cjs +236 -0
- package/dist/cjs/static-resolve.native.js +238 -0
- package/dist/cjs/static-resolve.native.js.map +1 -0
- package/dist/cjs/style.cjs +91 -0
- package/dist/cjs/style.native.cjs +94 -0
- package/dist/cjs/style.native.js +96 -0
- package/dist/cjs/style.native.js.map +1 -0
- package/dist/cjs/styled.cjs +110 -143
- package/dist/cjs/styled.native.cjs +133 -0
- package/dist/cjs/styled.native.js +115 -145
- package/dist/cjs/styled.native.js.map +1 -1
- package/dist/cjs/theme-update.cjs +19 -0
- package/dist/cjs/theme-update.native.cjs +21 -0
- package/dist/cjs/theme-update.native.js +23 -0
- package/dist/cjs/theme-update.native.js.map +1 -0
- package/dist/cjs/type-utils.cjs +9 -11
- package/dist/cjs/type-utils.native.cjs +18 -0
- package/dist/cjs/type-utils.native.js +9 -10
- package/dist/cjs/type-utils.native.js.map +1 -1
- package/dist/cjs/types.cjs +21 -11
- package/dist/cjs/types.native.cjs +30 -0
- package/dist/cjs/types.native.js +21 -10
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/cjs/views/ConfigRevisionCheck.cjs +68 -0
- package/dist/cjs/views/ConfigRevisionCheck.native.cjs +73 -0
- package/dist/cjs/views/ConfigRevisionCheck.native.js +75 -0
- package/dist/cjs/views/ConfigRevisionCheck.native.js.map +1 -0
- package/dist/cjs/views/Configuration.cjs +26 -35
- package/dist/cjs/views/Configuration.native.cjs +46 -0
- package/dist/cjs/views/Configuration.native.js +27 -35
- package/dist/cjs/views/Configuration.native.js.map +1 -1
- package/dist/cjs/views/FontLanguage.cjs +20 -29
- package/dist/cjs/views/FontLanguage.native.cjs +46 -0
- package/dist/cjs/views/FontLanguage.native.js +27 -38
- package/dist/cjs/views/FontLanguage.native.js.map +1 -1
- package/dist/cjs/views/SafeAreaTracker.cjs +32 -0
- package/dist/cjs/views/SafeAreaTracker.native.cjs +36 -0
- package/dist/cjs/views/SafeAreaTracker.native.js +38 -0
- package/dist/cjs/views/SafeAreaTracker.native.js.map +1 -0
- package/dist/cjs/views/Slot.cjs +51 -59
- package/dist/cjs/views/Slot.native.cjs +77 -0
- package/dist/cjs/views/Slot.native.js +52 -59
- package/dist/cjs/views/Slot.native.js.map +1 -1
- package/dist/cjs/views/TamaguiProvider.cjs +69 -76
- package/dist/cjs/views/TamaguiProvider.native.cjs +98 -0
- package/dist/cjs/views/TamaguiProvider.native.js +68 -76
- package/dist/cjs/views/TamaguiProvider.native.js.map +1 -1
- package/dist/cjs/views/TamaguiRoot.cjs +46 -61
- package/dist/cjs/views/TamaguiRoot.native.cjs +28 -0
- package/dist/cjs/views/TamaguiRoot.native.js +15 -18
- package/dist/cjs/views/TamaguiRoot.native.js.map +1 -1
- package/dist/cjs/views/Text.cjs +50 -46
- package/dist/cjs/views/Text.native.cjs +49 -0
- package/dist/cjs/views/Text.native.js +34 -36
- package/dist/cjs/views/Text.native.js.map +1 -1
- package/dist/cjs/views/Theme.cjs +117 -167
- package/dist/cjs/views/Theme.native.cjs +159 -0
- package/dist/cjs/views/Theme.native.js +127 -173
- package/dist/cjs/views/Theme.native.js.map +1 -1
- package/dist/cjs/views/ThemeDebug.cjs +73 -81
- package/dist/cjs/views/ThemeDebug.native.cjs +30 -0
- package/dist/cjs/views/ThemeDebug.native.js +16 -23
- package/dist/cjs/views/ThemeDebug.native.js.map +1 -1
- package/dist/cjs/views/ThemeProvider.cjs +34 -39
- package/dist/cjs/views/ThemeProvider.native.cjs +43 -0
- package/dist/cjs/views/ThemeProvider.native.js +25 -28
- package/dist/cjs/views/ThemeProvider.native.js.map +1 -1
- package/dist/cjs/views/ThemeUpdate.cjs +82 -0
- package/dist/cjs/views/ThemeUpdate.native.cjs +84 -0
- package/dist/cjs/views/ThemeUpdate.native.js +86 -0
- package/dist/cjs/views/ThemeUpdate.native.js.map +1 -0
- package/dist/cjs/views/View.cjs +21 -18
- package/dist/cjs/views/View.native.cjs +38 -0
- package/dist/cjs/views/View.native.js +21 -17
- package/dist/cjs/views/View.native.js.map +1 -1
- package/dist/esm/Tamagui.mjs +27 -27
- package/dist/esm/Tamagui.mjs.map +1 -1
- package/dist/esm/Tamagui.native.js +76 -71
- package/dist/esm/Tamagui.native.js.map +1 -1
- package/dist/esm/_withNativeStyle.mjs +55 -0
- package/dist/esm/_withNativeStyle.mjs.map +1 -0
- package/dist/esm/_withNativeStyle.native.js +58 -0
- package/dist/esm/_withNativeStyle.native.js.map +1 -0
- package/dist/esm/_withStableStyle.mjs +44 -29
- package/dist/esm/_withStableStyle.mjs.map +1 -1
- package/dist/esm/_withStableStyle.native.js +51 -33
- package/dist/esm/_withStableStyle.native.js.map +1 -1
- package/dist/esm/config.mjs +97 -100
- package/dist/esm/config.mjs.map +1 -1
- package/dist/esm/config.native.js +122 -129
- package/dist/esm/config.native.js.map +1 -1
- package/dist/esm/constants/constants.mjs +1 -0
- package/dist/esm/constants/constants.mjs.map +1 -1
- package/dist/esm/constants/constants.native.js +1 -0
- package/dist/esm/constants/constants.native.js.map +1 -1
- package/dist/esm/constants/isDevTools.mjs +7 -6
- package/dist/esm/constants/isDevTools.mjs.map +1 -1
- package/dist/esm/constants/isDevTools.native.js +9 -8
- package/dist/esm/constants/isDevTools.native.js.map +1 -1
- package/dist/esm/contexts/ComponentContext.mjs +18 -8
- package/dist/esm/contexts/ComponentContext.mjs.map +1 -1
- package/dist/esm/contexts/ComponentContext.native.js +19 -9
- package/dist/esm/contexts/ComponentContext.native.js.map +1 -1
- package/dist/esm/contexts/GroupContext.mjs +2 -0
- package/dist/esm/contexts/GroupContext.mjs.map +1 -1
- package/dist/esm/contexts/GroupContext.native.js +3 -1
- package/dist/esm/contexts/GroupContext.native.js.map +1 -1
- package/dist/esm/createComponent.mjs +992 -996
- package/dist/esm/createComponent.mjs.map +1 -1
- package/dist/esm/createComponent.native.js +1091 -979
- package/dist/esm/createComponent.native.js.map +1 -1
- package/dist/esm/createFont.mjs +27 -18
- package/dist/esm/createFont.mjs.map +1 -1
- package/dist/esm/createFont.native.js +30 -21
- package/dist/esm/createFont.native.js.map +1 -1
- package/dist/esm/createShorthands.mjs +2 -1
- package/dist/esm/createShorthands.mjs.map +1 -1
- package/dist/esm/createShorthands.native.js +2 -1
- package/dist/esm/createShorthands.native.js.map +1 -1
- package/dist/esm/createStyledHOC.mjs +79 -0
- package/dist/esm/createStyledHOC.mjs.map +1 -0
- package/dist/esm/createStyledHOC.native.js +80 -0
- package/dist/esm/createStyledHOC.native.js.map +1 -0
- package/dist/esm/createTamagui.mjs +275 -207
- package/dist/esm/createTamagui.mjs.map +1 -1
- package/dist/esm/createTamagui.native.js +309 -255
- package/dist/esm/createTamagui.native.js.map +1 -1
- package/dist/esm/createTokens.mjs +15 -1
- package/dist/esm/createTokens.mjs.map +1 -1
- package/dist/esm/createTokens.native.js +16 -2
- package/dist/esm/createTokens.native.js.map +1 -1
- package/dist/esm/createVariable.mjs +66 -65
- package/dist/esm/createVariable.mjs.map +1 -1
- package/dist/esm/createVariable.native.js +77 -81
- package/dist/esm/createVariable.native.js.map +1 -1
- package/dist/esm/createVariables.mjs +37 -42
- package/dist/esm/createVariables.mjs.map +1 -1
- package/dist/esm/createVariables.native.js +38 -48
- package/dist/esm/createVariables.native.js.map +1 -1
- package/dist/esm/defaultComponentState.mjs +13 -12
- package/dist/esm/defaultComponentState.mjs.map +1 -1
- package/dist/esm/defaultComponentState.native.js +13 -12
- package/dist/esm/defaultComponentState.native.js.map +1 -1
- package/dist/esm/dom/adapters.mjs +67 -0
- package/dist/esm/dom/adapters.mjs.map +1 -0
- package/dist/esm/dom/adapters.native.js +86 -0
- package/dist/esm/dom/adapters.native.js.map +1 -0
- package/dist/esm/dom/contract.mjs +0 -0
- package/dist/esm/dom/contract.native.js +0 -0
- package/dist/esm/dom/domEventProps.native.js +34 -0
- package/dist/esm/dom/domEventProps.native.js.map +1 -0
- package/dist/esm/dom/html.mjs +611 -0
- package/dist/esm/dom/html.mjs.map +1 -0
- package/dist/esm/dom/html.native.js +930 -0
- package/dist/esm/dom/html.native.js.map +1 -0
- package/dist/esm/dom/htmlRuntime.native.js +152 -0
- package/dist/esm/dom/htmlRuntime.native.js.map +1 -0
- package/dist/esm/dom/index.mjs +4 -0
- package/dist/esm/dom/index.native.js +5 -0
- package/dist/esm/dom/primitives.native.js +609 -0
- package/dist/esm/dom/primitives.native.js.map +1 -0
- package/dist/esm/dom/standalone.mjs +10 -0
- package/dist/esm/dom/standalone.mjs.map +1 -0
- package/dist/esm/dom/standalone.native.js +14 -0
- package/dist/esm/dom/standalone.native.js.map +1 -0
- package/dist/esm/dom/standaloneHtml.mjs +56 -0
- package/dist/esm/dom/standaloneHtml.mjs.map +1 -0
- package/dist/esm/dom/standaloneHtml.native.js +56 -0
- package/dist/esm/dom/standaloneHtml.native.js.map +1 -0
- package/dist/esm/dom/styleTypes.mjs +0 -0
- package/dist/esm/dom/styleTypes.native.js +0 -0
- package/dist/esm/eventDetails.mjs +18 -0
- package/dist/esm/eventDetails.mjs.map +1 -0
- package/dist/esm/eventDetails.native.js +18 -0
- package/dist/esm/eventDetails.native.js.map +1 -0
- package/dist/esm/eventHandling.mjs +14 -13
- package/dist/esm/eventHandling.mjs.map +1 -1
- package/dist/esm/eventHandling.native.js +141 -163
- package/dist/esm/eventHandling.native.js.map +1 -1
- package/dist/esm/helpers/borderComponents.mjs +37 -0
- package/dist/esm/helpers/borderComponents.mjs.map +1 -0
- package/dist/esm/helpers/borderComponents.native.js +55 -0
- package/dist/esm/helpers/borderComponents.native.js.map +1 -0
- package/dist/esm/helpers/componentDisplayName.mjs +4 -0
- package/dist/esm/helpers/componentDisplayName.mjs.map +1 -0
- package/dist/esm/helpers/componentDisplayName.native.js +4 -0
- package/dist/esm/helpers/componentDisplayName.native.js.map +1 -0
- package/dist/esm/helpers/configVariables.mjs +60 -0
- package/dist/esm/helpers/configVariables.mjs.map +1 -0
- package/dist/esm/helpers/configVariables.native.js +61 -0
- package/dist/esm/helpers/configVariables.native.js.map +1 -0
- package/dist/esm/helpers/consoleLog.native.js +2 -1
- package/dist/esm/helpers/consoleLog.native.js.map +1 -1
- package/dist/esm/helpers/createDesignSystem.mjs +133 -134
- package/dist/esm/helpers/createDesignSystem.mjs.map +1 -1
- package/dist/esm/helpers/createDesignSystem.native.js +151 -186
- package/dist/esm/helpers/createDesignSystem.native.js.map +1 -1
- package/dist/esm/helpers/createStyledContext.mjs +49 -58
- package/dist/esm/helpers/createStyledContext.mjs.map +1 -1
- package/dist/esm/helpers/createStyledContext.native.js +54 -63
- package/dist/esm/helpers/createStyledContext.native.js.map +1 -1
- package/dist/esm/helpers/defaultAnimationDriver.mjs +10 -14
- package/dist/esm/helpers/defaultAnimationDriver.mjs.map +1 -1
- package/dist/esm/helpers/defaultAnimationDriver.native.js +19 -31
- package/dist/esm/helpers/defaultAnimationDriver.native.js.map +1 -1
- package/dist/esm/helpers/defaultOffset.mjs +3 -2
- package/dist/esm/helpers/defaultOffset.mjs.map +1 -1
- package/dist/esm/helpers/defaultOffset.native.js +3 -2
- package/dist/esm/helpers/defaultOffset.native.js.map +1 -1
- package/dist/esm/helpers/expandStyle.mjs +138 -66
- package/dist/esm/helpers/expandStyle.mjs.map +1 -1
- package/dist/esm/helpers/expandStyle.native.js +141 -107
- package/dist/esm/helpers/expandStyle.native.js.map +1 -1
- package/dist/esm/helpers/expandStyles.mjs +9 -7
- package/dist/esm/helpers/expandStyles.mjs.map +1 -1
- package/dist/esm/helpers/expandStyles.native.js +16 -14
- package/dist/esm/helpers/expandStyles.native.js.map +1 -1
- package/dist/esm/helpers/extractPseudoState.mjs +24 -0
- package/dist/esm/helpers/extractPseudoState.mjs.map +1 -0
- package/dist/esm/helpers/extractPseudoState.native.js +25 -0
- package/dist/esm/helpers/extractPseudoState.native.js.map +1 -0
- package/dist/esm/helpers/fluid.mjs +36 -0
- package/dist/esm/helpers/fluid.mjs.map +1 -0
- package/dist/esm/helpers/fluid.native.js +36 -0
- package/dist/esm/helpers/fluid.native.js.map +1 -0
- package/dist/esm/helpers/formatDiagnostic.mjs +49 -0
- package/dist/esm/helpers/formatDiagnostic.mjs.map +1 -0
- package/dist/esm/helpers/formatDiagnostic.native.js +52 -0
- package/dist/esm/helpers/formatDiagnostic.native.js.map +1 -0
- package/dist/esm/helpers/getCSSStylesAtomic.mjs +224 -177
- package/dist/esm/helpers/getCSSStylesAtomic.mjs.map +1 -1
- package/dist/esm/helpers/getCSSStylesAtomic.native.js +9 -4
- package/dist/esm/helpers/getCSSStylesAtomic.native.js.map +1 -1
- package/dist/esm/helpers/getCSSStylesAtomicCompiled.mjs +16 -0
- package/dist/esm/helpers/getCSSStylesAtomicCompiled.mjs.map +1 -0
- package/dist/esm/helpers/getCSSStylesAtomicCompiled.native.js +18 -0
- package/dist/esm/helpers/getCSSStylesAtomicCompiled.native.js.map +1 -0
- package/dist/esm/helpers/getDynamicVal.mjs +32 -33
- package/dist/esm/helpers/getDynamicVal.mjs.map +1 -1
- package/dist/esm/helpers/getDynamicVal.native.js +32 -33
- package/dist/esm/helpers/getDynamicVal.native.js.map +1 -1
- package/dist/esm/helpers/getExpandedShorthands.mjs +5 -12
- package/dist/esm/helpers/getExpandedShorthands.mjs.map +1 -1
- package/dist/esm/helpers/getExpandedShorthands.native.js +6 -13
- package/dist/esm/helpers/getExpandedShorthands.native.js.map +1 -1
- package/dist/esm/helpers/getShorthandValue.mjs +4 -2
- package/dist/esm/helpers/getShorthandValue.mjs.map +1 -1
- package/dist/esm/helpers/getShorthandValue.native.js +6 -4
- package/dist/esm/helpers/getShorthandValue.native.js.map +1 -1
- package/dist/esm/helpers/getSplitStyles.mjs +1605 -893
- package/dist/esm/helpers/getSplitStyles.mjs.map +1 -1
- package/dist/esm/helpers/getSplitStyles.native.js +1786 -916
- package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/esm/helpers/getThemeCSSRules.mjs +94 -92
- package/dist/esm/helpers/getThemeCSSRules.mjs.map +1 -1
- package/dist/esm/helpers/getThemeCSSRules.native.js +2 -1
- package/dist/esm/helpers/getThemeCSSRules.native.js.map +1 -1
- package/dist/esm/helpers/grammarConfig.mjs +253 -0
- package/dist/esm/helpers/grammarConfig.mjs.map +1 -0
- package/dist/esm/helpers/grammarConfig.native.js +387 -0
- package/dist/esm/helpers/grammarConfig.native.js.map +1 -0
- package/dist/esm/helpers/insertStyleRule.mjs +232 -160
- package/dist/esm/helpers/insertStyleRule.mjs.map +1 -1
- package/dist/esm/helpers/insertStyleRule.native.js +135 -27
- package/dist/esm/helpers/insertStyleRule.native.js.map +1 -1
- package/dist/esm/helpers/isObj.mjs +10 -2
- package/dist/esm/helpers/isObj.mjs.map +1 -1
- package/dist/esm/helpers/isObj.native.js +11 -8
- package/dist/esm/helpers/isObj.native.js.map +1 -1
- package/dist/esm/helpers/isTamaguiComponent.mjs +4 -3
- package/dist/esm/helpers/isTamaguiComponent.mjs.map +1 -1
- package/dist/esm/helpers/isTamaguiComponent.native.js +4 -3
- package/dist/esm/helpers/isTamaguiComponent.native.js.map +1 -1
- package/dist/esm/helpers/isTamaguiElement.mjs +4 -2
- package/dist/esm/helpers/isTamaguiElement.mjs.map +1 -1
- package/dist/esm/helpers/isTamaguiElement.native.js +4 -2
- package/dist/esm/helpers/isTamaguiElement.native.js.map +1 -1
- package/dist/esm/helpers/log.mjs +12 -9
- package/dist/esm/helpers/log.mjs.map +1 -1
- package/dist/esm/helpers/log.native.js +13 -10
- package/dist/esm/helpers/log.native.js.map +1 -1
- package/dist/esm/helpers/mainThreadPressEvents.mjs +1 -0
- package/dist/esm/helpers/mainThreadPressEvents.mjs.map +1 -1
- package/dist/esm/helpers/mainThreadPressEvents.native.js +126 -125
- package/dist/esm/helpers/mainThreadPressEvents.native.js.map +1 -1
- package/dist/esm/helpers/matchMedia.mjs +7 -6
- package/dist/esm/helpers/matchMedia.mjs.map +1 -1
- package/dist/esm/helpers/matchMedia.native.js +36 -25
- package/dist/esm/helpers/matchMedia.native.js.map +1 -1
- package/dist/esm/helpers/mediaObjectToString.mjs +21 -20
- package/dist/esm/helpers/mediaObjectToString.mjs.map +1 -1
- package/dist/esm/helpers/mediaObjectToString.native.js +24 -23
- package/dist/esm/helpers/mediaObjectToString.native.js.map +1 -1
- package/dist/esm/helpers/mediaState.mjs +18 -24
- package/dist/esm/helpers/mediaState.mjs.map +1 -1
- package/dist/esm/helpers/mediaState.native.js +20 -27
- package/dist/esm/helpers/mediaState.native.js.map +1 -1
- package/dist/esm/helpers/mergeProps.mjs +37 -47
- package/dist/esm/helpers/mergeProps.mjs.map +1 -1
- package/dist/esm/helpers/mergeProps.native.js +39 -54
- package/dist/esm/helpers/mergeProps.native.js.map +1 -1
- package/dist/esm/helpers/mergeRenderElementProps.mjs +5 -5
- package/dist/esm/helpers/mergeRenderElementProps.mjs.map +1 -1
- package/dist/esm/helpers/mergeRenderElementProps.native.js +5 -5
- package/dist/esm/helpers/mergeRenderElementProps.native.js.map +1 -1
- package/dist/esm/helpers/mergeSlotStyleProps.mjs +22 -20
- package/dist/esm/helpers/mergeSlotStyleProps.mjs.map +1 -1
- package/dist/esm/helpers/mergeSlotStyleProps.native.js +22 -20
- package/dist/esm/helpers/mergeSlotStyleProps.native.js.map +1 -1
- package/dist/esm/helpers/mergeVariants.mjs +70 -23
- package/dist/esm/helpers/mergeVariants.mjs.map +1 -1
- package/dist/esm/helpers/mergeVariants.native.js +106 -25
- package/dist/esm/helpers/mergeVariants.native.js.map +1 -1
- package/dist/esm/helpers/nativeOnlyProps.mjs +33 -33
- package/dist/esm/helpers/nativeOnlyProps.mjs.map +1 -1
- package/dist/esm/helpers/nativeOnlyProps.native.js +33 -33
- package/dist/esm/helpers/nativeOnlyProps.native.js.map +1 -1
- package/dist/esm/helpers/nativeStyleEngine.mjs +237 -0
- package/dist/esm/helpers/nativeStyleEngine.mjs.map +1 -0
- package/dist/esm/helpers/nativeStyleEngine.native.js +366 -0
- package/dist/esm/helpers/nativeStyleEngine.native.js.map +1 -0
- package/dist/esm/helpers/nativeTransitionTarget.mjs +6 -0
- package/dist/esm/helpers/nativeTransitionTarget.mjs.map +1 -0
- package/dist/esm/helpers/nativeTransitionTarget.native.js +21 -0
- package/dist/esm/helpers/nativeTransitionTarget.native.js.map +1 -0
- package/dist/esm/helpers/normalizeColor.mjs +11 -18
- package/dist/esm/helpers/normalizeColor.mjs.map +1 -1
- package/dist/esm/helpers/normalizeColor.native.js +19 -19
- package/dist/esm/helpers/normalizeColor.native.js.map +1 -1
- package/dist/esm/helpers/normalizeShadow.mjs +13 -21
- package/dist/esm/helpers/normalizeShadow.mjs.map +1 -1
- package/dist/esm/helpers/normalizeShadow.native.js +14 -20
- package/dist/esm/helpers/normalizeShadow.native.js.map +1 -1
- package/dist/esm/helpers/normalizeStyle.mjs +47 -43
- package/dist/esm/helpers/normalizeStyle.mjs.map +1 -1
- package/dist/esm/helpers/normalizeStyle.native.js +64 -62
- package/dist/esm/helpers/normalizeStyle.native.js.map +1 -1
- package/dist/esm/helpers/normalizeValueWithProperty.mjs +30 -23
- package/dist/esm/helpers/normalizeValueWithProperty.mjs.map +1 -1
- package/dist/esm/helpers/normalizeValueWithProperty.native.js +32 -28
- package/dist/esm/helpers/normalizeValueWithProperty.native.js.map +1 -1
- package/dist/esm/helpers/noteOnce.mjs +11 -0
- package/dist/esm/helpers/noteOnce.mjs.map +1 -0
- package/dist/esm/helpers/noteOnce.native.js +11 -0
- package/dist/esm/helpers/noteOnce.native.js.map +1 -0
- package/dist/esm/helpers/objectIdentityKey.mjs +18 -17
- package/dist/esm/helpers/objectIdentityKey.mjs.map +1 -1
- package/dist/esm/helpers/objectIdentityKey.native.js +18 -22
- package/dist/esm/helpers/objectIdentityKey.native.js.map +1 -1
- package/dist/esm/helpers/parseBorderShorthand.mjs +2 -1
- package/dist/esm/helpers/parseBorderShorthand.mjs.map +1 -1
- package/dist/esm/helpers/parseBorderShorthand.native.js +38 -55
- package/dist/esm/helpers/parseBorderShorthand.native.js.map +1 -1
- package/dist/esm/helpers/parseNativeStyle.native.js +167 -146
- package/dist/esm/helpers/parseNativeStyle.native.js.map +1 -1
- package/dist/esm/helpers/parseNativeTransform.native.js +45 -0
- package/dist/esm/helpers/parseNativeTransform.native.js.map +1 -0
- package/dist/esm/helpers/parseOutlineShorthand.mjs +2 -1
- package/dist/esm/helpers/parseOutlineShorthand.mjs.map +1 -1
- package/dist/esm/helpers/parseOutlineShorthand.native.js +19 -48
- package/dist/esm/helpers/parseOutlineShorthand.native.js.map +1 -1
- package/dist/esm/helpers/pointerEvents.mjs +1 -0
- package/dist/esm/helpers/pointerEvents.mjs.map +1 -1
- package/dist/esm/helpers/pointerEvents.native.js +104 -127
- package/dist/esm/helpers/pointerEvents.native.js.map +1 -1
- package/dist/esm/helpers/proxyThemeToParents.mjs +32 -31
- package/dist/esm/helpers/proxyThemeToParents.mjs.map +1 -1
- package/dist/esm/helpers/proxyThemeToParents.native.js +136 -126
- package/dist/esm/helpers/proxyThemeToParents.native.js.map +1 -1
- package/dist/esm/helpers/registerCSSVariable.mjs +76 -39
- package/dist/esm/helpers/registerCSSVariable.mjs.map +1 -1
- package/dist/esm/helpers/registerCSSVariable.native.js +95 -44
- package/dist/esm/helpers/registerCSSVariable.native.js.map +1 -1
- package/dist/esm/helpers/resolveAnimationDriver.mjs +14 -8
- package/dist/esm/helpers/resolveAnimationDriver.mjs.map +1 -1
- package/dist/esm/helpers/resolveAnimationDriver.native.js +14 -9
- package/dist/esm/helpers/resolveAnimationDriver.native.js.map +1 -1
- package/dist/esm/helpers/resolveNativeUnits.mjs +9 -0
- package/dist/esm/helpers/resolveNativeUnits.mjs.map +1 -0
- package/dist/esm/helpers/resolveNativeUnits.native.js +142 -0
- package/dist/esm/helpers/resolveNativeUnits.native.js.map +1 -0
- package/dist/esm/helpers/resolveRem.mjs +3 -2
- package/dist/esm/helpers/resolveRem.mjs.map +1 -1
- package/dist/esm/helpers/resolveRem.native.js +21 -22
- package/dist/esm/helpers/resolveRem.native.js.map +1 -1
- package/dist/esm/helpers/resolveSafeArea.mjs +38 -8
- package/dist/esm/helpers/resolveSafeArea.mjs.map +1 -1
- package/dist/esm/helpers/resolveSafeArea.native.js +101 -15
- package/dist/esm/helpers/resolveSafeArea.native.js.map +1 -1
- package/dist/esm/helpers/resolveSafeAreaVariable.mjs +10 -0
- package/dist/esm/helpers/resolveSafeAreaVariable.mjs.map +1 -0
- package/dist/esm/helpers/resolveSafeAreaVariable.native.js +27 -0
- package/dist/esm/helpers/resolveSafeAreaVariable.native.js.map +1 -0
- package/dist/esm/helpers/resolveVariableValue.mjs +15 -0
- package/dist/esm/helpers/resolveVariableValue.mjs.map +1 -0
- package/dist/esm/helpers/resolveVariableValue.native.js +17 -0
- package/dist/esm/helpers/resolveVariableValue.native.js.map +1 -0
- package/dist/esm/helpers/resolveVariantStyle.mjs +38 -0
- package/dist/esm/helpers/resolveVariantStyle.mjs.map +1 -0
- package/dist/esm/helpers/resolveVariantStyle.native.js +42 -0
- package/dist/esm/helpers/resolveVariantStyle.native.js.map +1 -0
- package/dist/esm/helpers/setElementProps.mjs +4 -2
- package/dist/esm/helpers/setElementProps.mjs.map +1 -1
- package/dist/esm/helpers/setElementProps.native.js +8 -7
- package/dist/esm/helpers/setElementProps.native.js.map +1 -1
- package/dist/esm/helpers/skipProps.mjs +20 -14
- package/dist/esm/helpers/skipProps.mjs.map +1 -1
- package/dist/esm/helpers/skipProps.native.js +20 -14
- package/dist/esm/helpers/skipProps.native.js.map +1 -1
- package/dist/esm/helpers/sortString.mjs +1 -0
- package/dist/esm/helpers/sortString.mjs.map +1 -1
- package/dist/esm/helpers/sortString.native.js +3 -2
- package/dist/esm/helpers/sortString.native.js.map +1 -1
- package/dist/esm/helpers/splitStyleProps.mjs +27 -0
- package/dist/esm/helpers/splitStyleProps.mjs.map +1 -0
- package/dist/esm/helpers/splitStyleProps.native.js +28 -0
- package/dist/esm/helpers/splitStyleProps.native.js.map +1 -0
- package/dist/esm/helpers/styleFrontend.mjs +23 -0
- package/dist/esm/helpers/styleFrontend.mjs.map +1 -0
- package/dist/esm/helpers/styleFrontend.native.js +23 -0
- package/dist/esm/helpers/styleFrontend.native.js.map +1 -0
- package/dist/esm/helpers/styleOriginalValues.mjs +2 -1
- package/dist/esm/helpers/styleOriginalValues.mjs.map +1 -1
- package/dist/esm/helpers/styleOriginalValues.native.js +2 -1
- package/dist/esm/helpers/styleOriginalValues.native.js.map +1 -1
- package/dist/esm/helpers/styleProvenance.mjs +10 -9
- package/dist/esm/helpers/styleProvenance.mjs.map +1 -1
- package/dist/esm/helpers/styleProvenance.native.js +10 -9
- package/dist/esm/helpers/styleProvenance.native.js.map +1 -1
- package/dist/esm/helpers/styleStaticConfig.mjs +8 -0
- package/dist/esm/helpers/styleStaticConfig.mjs.map +1 -0
- package/dist/esm/helpers/styleStaticConfig.native.js +8 -0
- package/dist/esm/helpers/styleStaticConfig.native.js.map +1 -0
- package/dist/esm/helpers/styleStaticConfigCore.mjs +88 -0
- package/dist/esm/helpers/styleStaticConfigCore.mjs.map +1 -0
- package/dist/esm/helpers/styleStaticConfigCore.native.js +106 -0
- package/dist/esm/helpers/styleStaticConfigCore.native.js.map +1 -0
- package/dist/esm/helpers/styleToCSS.mjs +40 -0
- package/dist/esm/helpers/styleToCSS.mjs.map +1 -0
- package/dist/esm/helpers/styleToCSS.native.js +4 -0
- package/dist/esm/helpers/styleToCSS.native.js.map +1 -0
- package/dist/esm/helpers/styledDynamic.mjs +137 -0
- package/dist/esm/helpers/styledDynamic.mjs.map +1 -0
- package/dist/esm/helpers/styledDynamic.native.js +166 -0
- package/dist/esm/helpers/styledDynamic.native.js.map +1 -0
- package/dist/esm/helpers/subscribeToContextGroup.mjs +98 -79
- package/dist/esm/helpers/subscribeToContextGroup.mjs.map +1 -1
- package/dist/esm/helpers/subscribeToContextGroup.native.js +157 -124
- package/dist/esm/helpers/subscribeToContextGroup.native.js.map +1 -1
- package/dist/esm/helpers/themeRef.mjs +17 -0
- package/dist/esm/helpers/themeRef.mjs.map +1 -0
- package/dist/esm/helpers/themeRef.native.js +17 -0
- package/dist/esm/helpers/themeRef.native.js.map +1 -0
- package/dist/esm/helpers/themeUpdateState.mjs +4 -0
- package/dist/esm/helpers/themeUpdateState.mjs.map +1 -0
- package/dist/esm/helpers/themeUpdateState.native.js +4 -0
- package/dist/esm/helpers/themeUpdateState.native.js.map +1 -0
- package/dist/esm/helpers/themes.mjs +17 -16
- package/dist/esm/helpers/themes.mjs.map +1 -1
- package/dist/esm/helpers/themes.native.js +17 -16
- package/dist/esm/helpers/themes.native.js.map +1 -1
- package/dist/esm/helpers/timer.mjs +9 -5
- package/dist/esm/helpers/timer.mjs.map +1 -1
- package/dist/esm/helpers/timer.native.js +9 -5
- package/dist/esm/helpers/timer.native.js.map +1 -1
- package/dist/esm/helpers/tokenCategories.mjs +20 -0
- package/dist/esm/helpers/tokenCategories.mjs.map +1 -0
- package/dist/esm/helpers/tokenCategories.native.js +20 -0
- package/dist/esm/helpers/tokenCategories.native.js.map +1 -0
- package/dist/esm/helpers/transformsToString.mjs +12 -13
- package/dist/esm/helpers/transformsToString.mjs.map +1 -1
- package/dist/esm/helpers/transformsToString.native.js +29 -13
- package/dist/esm/helpers/transformsToString.native.js.map +1 -1
- package/dist/esm/helpers/variableValue.mjs +49 -0
- package/dist/esm/helpers/variableValue.mjs.map +1 -0
- package/dist/esm/helpers/variableValue.native.js +87 -0
- package/dist/esm/helpers/variableValue.native.js.map +1 -0
- package/dist/esm/helpers/variables.mjs +542 -0
- package/dist/esm/helpers/variables.mjs.map +1 -0
- package/dist/esm/helpers/variables.native.js +778 -0
- package/dist/esm/helpers/variables.native.js.map +1 -0
- package/dist/esm/helpers/warnOnce.mjs +15 -0
- package/dist/esm/helpers/warnOnce.mjs.map +1 -0
- package/dist/esm/helpers/warnOnce.native.js +17 -0
- package/dist/esm/helpers/warnOnce.native.js.map +1 -0
- package/dist/esm/helpers/webPropsToSkip.mjs +1 -0
- package/dist/esm/helpers/webPropsToSkip.mjs.map +1 -1
- package/dist/esm/helpers/webPropsToSkip.native.js +41 -45
- package/dist/esm/helpers/webPropsToSkip.native.js.map +1 -1
- package/dist/esm/helpers/wrapStyleTags.mjs +34 -30
- package/dist/esm/helpers/wrapStyleTags.mjs.map +1 -1
- package/dist/esm/helpers/wrapStyleTags.native.js +4 -1
- package/dist/esm/helpers/wrapStyleTags.native.js.map +1 -1
- package/dist/esm/hooks/doesRootSchemeMatchSystem.mjs +2 -1
- package/dist/esm/hooks/doesRootSchemeMatchSystem.mjs.map +1 -1
- package/dist/esm/hooks/doesRootSchemeMatchSystem.native.js +4 -2
- package/dist/esm/hooks/doesRootSchemeMatchSystem.native.js.map +1 -1
- package/dist/esm/hooks/getThemeProxied.mjs +47 -40
- package/dist/esm/hooks/getThemeProxied.mjs.map +1 -1
- package/dist/esm/hooks/getThemeProxied.native.js +85 -62
- package/dist/esm/hooks/getThemeProxied.native.js.map +1 -1
- package/dist/esm/hooks/isOptimizedForFirstRender.mjs +8 -0
- package/dist/esm/hooks/isOptimizedForFirstRender.mjs.map +1 -0
- package/dist/esm/hooks/isOptimizedForFirstRender.native.js +8 -0
- package/dist/esm/hooks/isOptimizedForFirstRender.native.js.map +1 -0
- package/dist/esm/hooks/useAnimationDriver.mjs +26 -0
- package/dist/esm/hooks/useAnimationDriver.mjs.map +1 -0
- package/dist/esm/hooks/useAnimationDriver.native.js +32 -0
- package/dist/esm/hooks/useAnimationDriver.native.js.map +1 -0
- package/dist/esm/hooks/useComponentState.mjs +167 -183
- package/dist/esm/hooks/useComponentState.mjs.map +1 -1
- package/dist/esm/hooks/useComponentState.native.js +178 -194
- package/dist/esm/hooks/useComponentState.native.js.map +1 -1
- package/dist/esm/hooks/useDisableSSR.mjs +3 -1
- package/dist/esm/hooks/useDisableSSR.mjs.map +1 -1
- package/dist/esm/hooks/useDisableSSR.native.js +4 -2
- package/dist/esm/hooks/useDisableSSR.native.js.map +1 -1
- package/dist/esm/hooks/useIsTouchDevice.mjs +3 -1
- package/dist/esm/hooks/useIsTouchDevice.mjs.map +1 -1
- package/dist/esm/hooks/useIsTouchDevice.native.js +4 -2
- package/dist/esm/hooks/useIsTouchDevice.native.js.map +1 -1
- package/dist/esm/hooks/useMedia.mjs +299 -233
- package/dist/esm/hooks/useMedia.mjs.map +1 -1
- package/dist/esm/hooks/useMedia.native.js +451 -283
- package/dist/esm/hooks/useMedia.native.js.map +1 -1
- package/dist/esm/hooks/usePortalThemeState.mjs +21 -0
- package/dist/esm/hooks/usePortalThemeState.mjs.map +1 -0
- package/dist/esm/hooks/usePortalThemeState.native.js +21 -0
- package/dist/esm/hooks/usePortalThemeState.native.js.map +1 -0
- package/dist/esm/hooks/useSplitStyles.mjs +17 -0
- package/dist/esm/hooks/useSplitStyles.mjs.map +1 -0
- package/dist/esm/hooks/useSplitStyles.native.js +14 -0
- package/dist/esm/hooks/useSplitStyles.native.js.map +1 -0
- package/dist/esm/hooks/useStyle.mjs +11 -0
- package/dist/esm/hooks/useStyle.mjs.map +1 -0
- package/dist/esm/hooks/useStyle.native.js +11 -0
- package/dist/esm/hooks/useStyle.native.js.map +1 -0
- package/dist/esm/hooks/useTheme.mjs +27 -32
- package/dist/esm/hooks/useTheme.mjs.map +1 -1
- package/dist/esm/hooks/useTheme.native.js +30 -36
- package/dist/esm/hooks/useTheme.native.js.map +1 -1
- package/dist/esm/hooks/useThemeName.mjs +7 -7
- package/dist/esm/hooks/useThemeName.mjs.map +1 -1
- package/dist/esm/hooks/useThemeName.native.js +10 -10
- package/dist/esm/hooks/useThemeName.native.js.map +1 -1
- package/dist/esm/hooks/useThemeState.mjs +261 -349
- package/dist/esm/hooks/useThemeState.mjs.map +1 -1
- package/dist/esm/hooks/useThemeState.native.js +312 -458
- package/dist/esm/hooks/useThemeState.native.js.map +1 -1
- package/dist/esm/index.js +64 -72
- package/dist/esm/index.mjs +64 -72
- package/dist/esm/index.native.js +64 -72
- package/dist/esm/inject-styles.mjs +11 -13
- package/dist/esm/inject-styles.mjs.map +1 -1
- package/dist/esm/inject-styles.native.js +12 -14
- package/dist/esm/inject-styles.native.js.map +1 -1
- package/dist/esm/insertFont.mjs +44 -41
- package/dist/esm/insertFont.mjs.map +1 -1
- package/dist/esm/insertFont.native.js +38 -35
- package/dist/esm/insertFont.native.js.map +1 -1
- package/dist/esm/interfaces/CSSColorNames.mjs +151 -0
- package/dist/esm/interfaces/CSSColorNames.mjs.map +1 -1
- package/dist/esm/interfaces/CSSColorNames.native.js +151 -0
- package/dist/esm/interfaces/CSSColorNames.native.js.map +1 -1
- package/dist/esm/interfaces/GetRef.mjs +0 -2
- package/dist/esm/interfaces/GetRef.native.js +0 -2
- package/dist/esm/interfaces/RNExclusiveTypes.mjs +0 -2
- package/dist/esm/interfaces/RNExclusiveTypes.native.js +0 -2
- package/dist/esm/interfaces/TamaguiComponentEvents.mjs +0 -2
- package/dist/esm/interfaces/TamaguiComponentEvents.native.js +0 -2
- package/dist/esm/interfaces/TamaguiComponentPropsBaseBase.mjs +0 -2
- package/dist/esm/interfaces/TamaguiComponentPropsBaseBase.native.js +0 -2
- package/dist/esm/internal-runtime.mjs +83 -0
- package/dist/esm/internal-runtime.mjs.map +1 -0
- package/dist/esm/internal-runtime.native.js +83 -0
- package/dist/esm/internal-runtime.native.js.map +1 -0
- package/dist/esm/internalRuntimeTypes.mjs +0 -0
- package/dist/esm/internalRuntimeTypes.native.js +0 -0
- package/dist/esm/setupHooks.mjs +2 -1
- package/dist/esm/setupHooks.mjs.map +1 -1
- package/dist/esm/setupHooks.native.js +2 -1
- package/dist/esm/setupHooks.native.js.map +1 -1
- package/dist/esm/setupReactNative.mjs +2 -27
- package/dist/esm/setupReactNative.mjs.map +1 -1
- package/dist/esm/setupReactNative.native.js +25 -24
- package/dist/esm/setupReactNative.native.js.map +1 -1
- package/dist/esm/static-resolve.mjs +196 -0
- package/dist/esm/static-resolve.mjs.map +1 -0
- package/dist/esm/static-resolve.native.js +200 -0
- package/dist/esm/static-resolve.native.js.map +1 -0
- package/dist/esm/style.mjs +58 -0
- package/dist/esm/style.mjs.map +1 -0
- package/dist/esm/style.native.js +59 -0
- package/dist/esm/style.native.js.map +1 -0
- package/dist/esm/styled.mjs +97 -128
- package/dist/esm/styled.mjs.map +1 -1
- package/dist/esm/styled.native.js +101 -130
- package/dist/esm/styled.native.js.map +1 -1
- package/dist/esm/theme-update.mjs +3 -0
- package/dist/esm/theme-update.native.js +3 -0
- package/dist/esm/type-utils.mjs +0 -2
- package/dist/esm/type-utils.native.js +0 -2
- package/dist/esm/types.mjs +3 -0
- package/dist/esm/types.mjs.map +1 -1
- package/dist/esm/types.native.js +3 -0
- package/dist/esm/types.native.js.map +1 -1
- package/dist/esm/views/ConfigRevisionCheck.mjs +43 -0
- package/dist/esm/views/ConfigRevisionCheck.mjs.map +1 -0
- package/dist/esm/views/ConfigRevisionCheck.native.js +46 -0
- package/dist/esm/views/ConfigRevisionCheck.native.js.map +1 -0
- package/dist/esm/views/Configuration.mjs +11 -9
- package/dist/esm/views/Configuration.mjs.map +1 -1
- package/dist/esm/views/Configuration.native.js +13 -11
- package/dist/esm/views/Configuration.native.js.map +1 -1
- package/dist/esm/views/FontLanguage.mjs +8 -11
- package/dist/esm/views/FontLanguage.mjs.map +1 -1
- package/dist/esm/views/FontLanguage.native.js +13 -14
- package/dist/esm/views/FontLanguage.native.js.map +1 -1
- package/dist/esm/views/SafeAreaTracker.mjs +9 -0
- package/dist/esm/views/SafeAreaTracker.mjs.map +1 -0
- package/dist/esm/views/SafeAreaTracker.native.js +12 -0
- package/dist/esm/views/SafeAreaTracker.native.js.map +1 -0
- package/dist/esm/views/Slot.mjs +39 -44
- package/dist/esm/views/Slot.mjs.map +1 -1
- package/dist/esm/views/Slot.native.js +41 -46
- package/dist/esm/views/Slot.native.js.map +1 -1
- package/dist/esm/views/TamaguiProvider.mjs +54 -50
- package/dist/esm/views/TamaguiProvider.mjs.map +1 -1
- package/dist/esm/views/TamaguiProvider.native.js +52 -51
- package/dist/esm/views/TamaguiProvider.native.js.map +1 -1
- package/dist/esm/views/TamaguiRoot.mjs +31 -35
- package/dist/esm/views/TamaguiRoot.mjs.map +1 -1
- package/dist/esm/views/TamaguiRoot.native.js +2 -1
- package/dist/esm/views/TamaguiRoot.native.js.map +1 -1
- package/dist/esm/views/Text.mjs +38 -31
- package/dist/esm/views/Text.mjs.map +1 -1
- package/dist/esm/views/Text.native.js +19 -21
- package/dist/esm/views/Text.native.js.map +1 -1
- package/dist/esm/views/Theme.mjs +102 -145
- package/dist/esm/views/Theme.mjs.map +1 -1
- package/dist/esm/views/Theme.native.js +113 -152
- package/dist/esm/views/Theme.native.js.map +1 -1
- package/dist/esm/views/ThemeDebug.mjs +61 -63
- package/dist/esm/views/ThemeDebug.mjs.map +1 -1
- package/dist/esm/views/ThemeDebug.native.js +3 -6
- package/dist/esm/views/ThemeDebug.native.js.map +1 -1
- package/dist/esm/views/ThemeProvider.mjs +21 -20
- package/dist/esm/views/ThemeProvider.mjs.map +1 -1
- package/dist/esm/views/ThemeProvider.native.js +12 -10
- package/dist/esm/views/ThemeProvider.native.js.map +1 -1
- package/dist/esm/views/ThemeUpdate.mjs +54 -0
- package/dist/esm/views/ThemeUpdate.mjs.map +1 -0
- package/dist/esm/views/ThemeUpdate.native.js +53 -0
- package/dist/esm/views/ThemeUpdate.native.js.map +1 -0
- package/dist/esm/views/View.mjs +9 -3
- package/dist/esm/views/View.mjs.map +1 -1
- package/dist/esm/views/View.native.js +9 -3
- package/dist/esm/views/View.native.js.map +1 -1
- package/internal-runtime/index.cjs +2 -0
- package/internal-runtime/index.js +4 -0
- package/internal-runtime/index.native.js +2 -0
- package/package.json +71 -18
- package/reset.css +15 -12
- package/src/_withNativeStyle.tsx +84 -0
- package/src/_withStableStyle.tsx +61 -43
- package/src/config.ts +34 -36
- package/src/contexts/ComponentContext.tsx +25 -8
- package/src/createComponent.tsx +628 -265
- package/src/createStyledHOC.tsx +137 -0
- package/src/createTamagui.ts +181 -92
- package/src/createTokens.ts +16 -0
- package/src/createVariable.ts +17 -12
- package/src/createVariables.ts +5 -17
- package/src/dom/adapters.ts +99 -0
- package/src/dom/contract.ts +60 -0
- package/src/dom/domEventProps.native.ts +40 -0
- package/src/dom/html.native.tsx +1412 -0
- package/src/dom/html.tsx +887 -0
- package/src/dom/htmlRuntime.native.tsx +230 -0
- package/src/dom/index.native.ts +28 -0
- package/src/dom/index.ts +16 -0
- package/src/dom/primitives.native.tsx +658 -0
- package/src/dom/standalone.ts +107 -0
- package/src/dom/standaloneHtml.ts +104 -0
- package/src/dom/styleTypes.ts +620 -0
- package/src/eventDetails.ts +85 -0
- package/src/eventHandling.native.ts +16 -16
- package/src/helpers/borderComponents.ts +62 -0
- package/src/helpers/componentDisplayName.ts +3 -0
- package/src/helpers/configVariables.ts +64 -0
- package/src/helpers/createDesignSystem.ts +127 -89
- package/src/helpers/createStyledContext.tsx +85 -43
- package/src/helpers/defaultAnimationDriver.tsx +0 -5
- package/src/helpers/expandStyle.ts +49 -2
- package/src/helpers/extractPseudoState.ts +32 -0
- package/src/helpers/fluid.ts +66 -0
- package/src/helpers/formatDiagnostic.ts +69 -0
- package/src/helpers/getCSSStylesAtomic.native.ts +7 -3
- package/src/helpers/getCSSStylesAtomic.ts +306 -166
- package/src/helpers/getCSSStylesAtomicCompiled.ts +21 -0
- package/src/helpers/getDynamicVal.ts +4 -0
- package/src/helpers/getExpandedShorthands.ts +0 -17
- package/src/helpers/getSplitStyles.tsx +3231 -1599
- package/src/helpers/getThemeCSSRules.ts +16 -1
- package/src/helpers/grammarConfig.ts +369 -0
- package/src/helpers/insertStyleRule.tsx +109 -24
- package/src/helpers/isObj.ts +8 -0
- package/src/helpers/isTamaguiComponent.tsx +2 -5
- package/src/helpers/isTamaguiElement.tsx +2 -3
- package/src/helpers/log.ts +12 -11
- package/src/helpers/matchMedia.native.ts +16 -1
- package/src/helpers/mediaState.ts +18 -32
- package/src/helpers/mergeProps.ts +2 -32
- package/src/helpers/mergeVariants.ts +80 -21
- package/src/helpers/nativeOnlyProps.ts +0 -1
- package/src/helpers/nativeStyleEngine.ts +385 -0
- package/src/helpers/nativeTransitionTarget.native.ts +22 -0
- package/src/helpers/nativeTransitionTarget.ts +6 -0
- package/src/helpers/normalizeColor.native.ts +2 -3
- package/src/helpers/normalizeColor.ts +4 -14
- package/src/helpers/normalizeShadow.native.ts +1 -1
- package/src/helpers/normalizeStyle.ts +26 -15
- package/src/helpers/normalizeValueWithProperty.ts +18 -11
- package/src/helpers/noteOnce.ts +9 -0
- package/src/helpers/parseBorderShorthand.native.ts +23 -45
- package/src/helpers/parseNativeStyle.native.ts +238 -0
- package/src/helpers/parseNativeTransform.native.ts +35 -0
- package/src/helpers/parseOutlineShorthand.native.ts +9 -40
- package/src/helpers/proxyThemeToParents.ts +11 -1
- package/src/helpers/registerCSSVariable.ts +52 -4
- package/src/helpers/resolveAnimationDriver.ts +16 -13
- package/src/helpers/resolveNativeUnits.native.ts +187 -0
- package/src/helpers/resolveNativeUnits.ts +10 -0
- package/src/helpers/resolveRem.native.ts +25 -26
- package/src/helpers/resolveRem.ts +1 -1
- package/src/helpers/resolveSafeArea.native.ts +90 -10
- package/src/helpers/resolveSafeArea.ts +46 -7
- package/src/helpers/resolveSafeAreaVariable.native.ts +28 -0
- package/src/helpers/resolveSafeAreaVariable.ts +10 -0
- package/src/helpers/resolveVariableValue.ts +31 -0
- package/src/helpers/resolveVariantStyle.ts +77 -0
- package/src/helpers/skipProps.ts +11 -3
- package/src/helpers/splitStyleProps.ts +166 -0
- package/src/helpers/styleFrontend.ts +143 -0
- package/src/helpers/styleProvenance.ts +17 -2
- package/src/helpers/styleStaticConfig.ts +21 -0
- package/src/helpers/styleStaticConfigCore.ts +110 -0
- package/src/helpers/styleToCSS.native.ts +1 -0
- package/src/helpers/styleToCSS.ts +43 -0
- package/src/helpers/styledDynamic.ts +192 -0
- package/src/helpers/subscribeToContextGroup.tsx +46 -7
- package/src/helpers/themeRef.ts +34 -0
- package/src/helpers/themeUpdateState.ts +27 -0
- package/src/helpers/themes.ts +9 -10
- package/src/helpers/tokenCategories.ts +54 -0
- package/src/helpers/transformsToString.ts +18 -16
- package/src/helpers/variableValue.ts +50 -0
- package/src/helpers/variables.ts +856 -0
- package/src/helpers/warnOnce.ts +47 -0
- package/src/helpers/webPropsToSkip.native.ts +7 -8
- package/src/helpers/wrapStyleTags.tsx +4 -2
- package/src/hooks/getThemeProxied.ts +139 -101
- package/src/hooks/isOptimizedForFirstRender.native.ts +7 -0
- package/src/hooks/isOptimizedForFirstRender.ts +7 -0
- package/src/hooks/useAnimationDriver.ts +56 -0
- package/src/hooks/useComponentState.ts +128 -174
- package/src/hooks/useMedia.tsx +258 -131
- package/src/hooks/usePortalThemeState.ts +34 -0
- package/src/hooks/useSplitStyles.tsx +41 -0
- package/src/hooks/useStyle.ts +10 -0
- package/src/hooks/useTheme.tsx +20 -7
- package/src/hooks/useThemeState.ts +185 -332
- package/src/index.ts +328 -70
- package/src/insertFont.ts +9 -5
- package/src/interfaces/CSSColorNames.tsx +152 -149
- package/src/interfaces/RNExclusiveTypes.ts +2 -1
- package/src/interfaces/TamaguiComponentEvents.tsx +0 -1
- package/src/interfaces/TamaguiComponentPropsBaseBase.tsx +2 -4
- package/src/internal-runtime.ts +169 -0
- package/src/internalRuntimeTypes.ts +18 -0
- package/src/setupHooks.ts +9 -1
- package/src/setupReactNative.ts +7 -30
- package/src/static-resolve.ts +403 -0
- package/src/style.ts +97 -0
- package/src/styled.tsx +290 -416
- package/src/theme-update.ts +2 -0
- package/src/types.tsx +813 -610
- package/src/views/ConfigRevisionCheck.tsx +55 -0
- package/src/views/SafeAreaTracker.native.tsx +10 -0
- package/src/views/SafeAreaTracker.tsx +7 -0
- package/src/views/Slot.tsx +3 -2
- package/src/views/TamaguiProvider.tsx +36 -24
- package/src/views/Text.tsx +33 -23
- package/src/views/Theme.tsx +62 -46
- package/src/views/ThemeDebug.tsx +0 -2
- package/src/views/ThemeProvider.tsx +6 -5
- package/src/views/ThemeUpdate.tsx +90 -0
- package/src/views/View.tsx +12 -4
- package/types/Tamagui.d.ts.map +1 -1
- package/types/_withNativeStyle.d.ts +5 -0
- package/types/_withNativeStyle.d.ts.map +1 -0
- package/types/_withStableStyle.d.ts +1 -1
- package/types/_withStableStyle.d.ts.map +1 -1
- package/types/config.d.ts +22 -32
- package/types/config.d.ts.map +1 -1
- package/types/contexts/ComponentContext.d.ts +1 -1
- package/types/contexts/ComponentContext.d.ts.map +1 -1
- package/types/createComponent.d.ts.map +1 -1
- package/types/createFont.d.ts.map +1 -1
- package/types/createStyledHOC.d.ts +4 -0
- package/types/createStyledHOC.d.ts.map +1 -0
- package/types/createTamagui.d.ts +2 -1
- package/types/createTamagui.d.ts.map +1 -1
- package/types/createTokens.d.ts.map +1 -1
- package/types/createVariable.d.ts +0 -2
- package/types/createVariable.d.ts.map +1 -1
- package/types/createVariables.d.ts.map +1 -1
- package/types/dom/adapters.d.ts +42 -0
- package/types/dom/adapters.d.ts.map +1 -0
- package/types/dom/contract.d.ts +48 -0
- package/types/dom/contract.d.ts.map +1 -0
- package/types/dom/domEventProps.native.d.ts +7 -0
- package/types/dom/domEventProps.native.d.ts.map +1 -0
- package/types/dom/html.d.ts +58 -0
- package/types/dom/html.d.ts.map +1 -0
- package/types/dom/html.native.d.ts +67 -0
- package/types/dom/html.native.d.ts.map +1 -0
- package/types/dom/htmlRuntime.native.d.ts +63 -0
- package/types/dom/htmlRuntime.native.d.ts.map +1 -0
- package/types/dom/index.d.ts +11 -0
- package/types/dom/index.d.ts.map +1 -0
- package/types/dom/index.native.d.ts +12 -0
- package/types/dom/index.native.d.ts.map +1 -0
- package/types/dom/primitives.native.d.ts +43 -0
- package/types/dom/primitives.native.d.ts.map +1 -0
- package/types/dom/standalone.d.ts +89 -0
- package/types/dom/standalone.d.ts.map +1 -0
- package/types/dom/standaloneHtml.d.ts +67 -0
- package/types/dom/standaloneHtml.d.ts.map +1 -0
- package/types/dom/styleTypes.d.ts +486 -0
- package/types/dom/styleTypes.d.ts.map +1 -0
- package/types/eventDetails.d.ts +12 -0
- package/types/eventDetails.d.ts.map +1 -0
- package/types/helpers/borderComponents.d.ts +10 -0
- package/types/helpers/borderComponents.d.ts.map +1 -0
- package/types/helpers/componentDisplayName.d.ts +2 -0
- package/types/helpers/componentDisplayName.d.ts.map +1 -0
- package/types/helpers/configVariables.d.ts +3 -0
- package/types/helpers/configVariables.d.ts.map +1 -0
- package/types/helpers/createDesignSystem.d.ts +24 -6
- package/types/helpers/createDesignSystem.d.ts.map +1 -1
- package/types/helpers/createStyledContext.d.ts +29 -2
- package/types/helpers/createStyledContext.d.ts.map +1 -1
- package/types/helpers/defaultAnimationDriver.d.ts.map +1 -1
- package/types/helpers/defaultOffset.d.ts.map +1 -1
- package/types/helpers/expandStyle.d.ts.map +1 -1
- package/types/helpers/extractPseudoState.d.ts +14 -0
- package/types/helpers/extractPseudoState.d.ts.map +1 -0
- package/types/helpers/fluid.d.ts +21 -0
- package/types/helpers/fluid.d.ts.map +1 -0
- package/types/helpers/formatDiagnostic.d.ts +2 -0
- package/types/helpers/formatDiagnostic.d.ts.map +1 -0
- package/types/helpers/getCSSStylesAtomic.d.ts +29 -6
- package/types/helpers/getCSSStylesAtomic.d.ts.map +1 -1
- package/types/helpers/getCSSStylesAtomic.native.d.ts +11 -3
- package/types/helpers/getCSSStylesAtomic.native.d.ts.map +1 -1
- package/types/helpers/getCSSStylesAtomicCompiled.d.ts +9 -0
- package/types/helpers/getCSSStylesAtomicCompiled.d.ts.map +1 -0
- package/types/helpers/getDynamicVal.d.ts +1 -1
- package/types/helpers/getDynamicVal.d.ts.map +1 -1
- package/types/helpers/getExpandedShorthands.d.ts +0 -5
- package/types/helpers/getExpandedShorthands.d.ts.map +1 -1
- package/types/helpers/getShorthandValue.d.ts.map +1 -1
- package/types/helpers/getSplitStyles.d.ts +14 -8
- package/types/helpers/getSplitStyles.d.ts.map +1 -1
- package/types/helpers/getThemeCSSRules.d.ts.map +1 -1
- package/types/helpers/grammarConfig.d.ts +41 -0
- package/types/helpers/grammarConfig.d.ts.map +1 -0
- package/types/helpers/insertStyleRule.d.ts +4 -1
- package/types/helpers/insertStyleRule.d.ts.map +1 -1
- package/types/helpers/isObj.d.ts +1 -0
- package/types/helpers/isObj.d.ts.map +1 -1
- package/types/helpers/isTamaguiComponent.d.ts +1 -1
- package/types/helpers/isTamaguiComponent.d.ts.map +1 -1
- package/types/helpers/isTamaguiElement.d.ts +1 -1
- package/types/helpers/isTamaguiElement.d.ts.map +1 -1
- package/types/helpers/log.d.ts.map +1 -1
- package/types/helpers/matchMedia.d.ts +1 -1
- package/types/helpers/matchMedia.native.d.ts.map +1 -1
- package/types/helpers/mediaState.d.ts +5 -2
- package/types/helpers/mediaState.d.ts.map +1 -1
- package/types/helpers/mergeProps.d.ts +0 -2
- package/types/helpers/mergeProps.d.ts.map +1 -1
- package/types/helpers/mergeVariants.d.ts +1 -1
- package/types/helpers/mergeVariants.d.ts.map +1 -1
- package/types/helpers/nativeOnlyProps.d.ts +0 -1
- package/types/helpers/nativeOnlyProps.d.ts.map +1 -1
- package/types/helpers/nativeStyleEngine.d.ts +77 -0
- package/types/helpers/nativeStyleEngine.d.ts.map +1 -0
- package/types/helpers/nativeTransitionTarget.d.ts +3 -0
- package/types/helpers/nativeTransitionTarget.d.ts.map +1 -0
- package/types/helpers/nativeTransitionTarget.native.d.ts +3 -0
- package/types/helpers/nativeTransitionTarget.native.d.ts.map +1 -0
- package/types/helpers/normalizeColor.d.ts +0 -6
- package/types/helpers/normalizeColor.d.ts.map +1 -1
- package/types/helpers/normalizeColor.native.d.ts.map +1 -1
- package/types/helpers/normalizeShadow.d.ts.map +1 -1
- package/types/helpers/normalizeShadow.native.d.ts.map +1 -1
- package/types/helpers/normalizeStyle.d.ts +2 -2
- package/types/helpers/normalizeStyle.d.ts.map +1 -1
- package/types/helpers/normalizeValueWithProperty.d.ts.map +1 -1
- package/types/helpers/noteOnce.d.ts +2 -0
- package/types/helpers/noteOnce.d.ts.map +1 -0
- package/types/helpers/parseBorderShorthand.native.d.ts +1 -0
- package/types/helpers/parseBorderShorthand.native.d.ts.map +1 -1
- package/types/helpers/parseNativeStyle.native.d.ts +14 -0
- package/types/helpers/parseNativeStyle.native.d.ts.map +1 -0
- package/types/helpers/parseNativeTransform.native.d.ts +2 -0
- package/types/helpers/parseNativeTransform.native.d.ts.map +1 -0
- package/types/helpers/parseOutlineShorthand.native.d.ts.map +1 -1
- package/types/helpers/proxyThemeToParents.d.ts +1 -1
- package/types/helpers/proxyThemeToParents.d.ts.map +1 -1
- package/types/helpers/registerCSSVariable.d.ts +12 -0
- package/types/helpers/registerCSSVariable.d.ts.map +1 -1
- package/types/helpers/resolveAnimationDriver.d.ts +4 -4
- package/types/helpers/resolveAnimationDriver.d.ts.map +1 -1
- package/types/helpers/resolveNativeUnits.d.ts +6 -0
- package/types/helpers/resolveNativeUnits.d.ts.map +1 -0
- package/types/helpers/resolveNativeUnits.native.d.ts +15 -0
- package/types/helpers/resolveNativeUnits.native.d.ts.map +1 -0
- package/types/helpers/resolveRem.native.d.ts +6 -4
- package/types/helpers/resolveRem.native.d.ts.map +1 -1
- package/types/helpers/resolveSafeArea.d.ts +1 -1
- package/types/helpers/resolveSafeArea.d.ts.map +1 -1
- package/types/helpers/resolveSafeArea.native.d.ts +2 -1
- package/types/helpers/resolveSafeArea.native.d.ts.map +1 -1
- package/types/helpers/resolveSafeAreaVariable.d.ts +3 -0
- package/types/helpers/resolveSafeAreaVariable.d.ts.map +1 -0
- package/types/helpers/resolveSafeAreaVariable.native.d.ts +3 -0
- package/types/helpers/resolveSafeAreaVariable.native.d.ts.map +1 -0
- package/types/helpers/resolveVariableValue.d.ts +3 -0
- package/types/helpers/resolveVariableValue.d.ts.map +1 -0
- package/types/helpers/resolveVariantStyle.d.ts +3 -0
- package/types/helpers/resolveVariantStyle.d.ts.map +1 -0
- package/types/helpers/setElementProps.d.ts.map +1 -1
- package/types/helpers/skipProps.d.ts +5 -2
- package/types/helpers/skipProps.d.ts.map +1 -1
- package/types/helpers/sortString.d.ts +1 -1
- package/types/helpers/sortString.d.ts.map +1 -1
- package/types/helpers/splitStyleProps.d.ts +44 -0
- package/types/helpers/splitStyleProps.d.ts.map +1 -0
- package/types/helpers/styleFrontend.d.ts +102 -0
- package/types/helpers/styleFrontend.d.ts.map +1 -0
- package/types/helpers/styleProvenance.d.ts +14 -1
- package/types/helpers/styleProvenance.d.ts.map +1 -1
- package/types/helpers/styleStaticConfig.d.ts +14 -0
- package/types/helpers/styleStaticConfig.d.ts.map +1 -0
- package/types/helpers/styleStaticConfigCore.d.ts +4 -0
- package/types/helpers/styleStaticConfigCore.d.ts.map +1 -0
- package/types/helpers/styleToCSS.d.ts +2 -0
- package/types/helpers/styleToCSS.d.ts.map +1 -0
- package/types/helpers/styleToCSS.native.d.ts +2 -0
- package/types/helpers/styleToCSS.native.d.ts.map +1 -0
- package/types/helpers/styledDynamic.d.ts +18 -0
- package/types/helpers/styledDynamic.d.ts.map +1 -0
- package/types/helpers/subscribeToContextGroup.d.ts +1 -0
- package/types/helpers/subscribeToContextGroup.d.ts.map +1 -1
- package/types/helpers/themeRef.d.ts +22 -0
- package/types/helpers/themeRef.d.ts.map +1 -0
- package/types/helpers/themeUpdateState.d.ts +23 -0
- package/types/helpers/themeUpdateState.d.ts.map +1 -0
- package/types/helpers/themes.d.ts.map +1 -1
- package/types/helpers/tokenCategories.d.ts +4 -0
- package/types/helpers/tokenCategories.d.ts.map +1 -0
- package/types/helpers/transformsToString.d.ts.map +1 -1
- package/types/helpers/variableValue.d.ts +4 -0
- package/types/helpers/variableValue.d.ts.map +1 -0
- package/types/helpers/variables.d.ts +73 -0
- package/types/helpers/variables.d.ts.map +1 -0
- package/types/helpers/warnOnce.d.ts +20 -0
- package/types/helpers/warnOnce.d.ts.map +1 -0
- package/types/helpers/webPropsToSkip.native.d.ts +68 -62
- package/types/helpers/webPropsToSkip.native.d.ts.map +1 -1
- package/types/helpers/wrapStyleTags.d.ts +1 -1
- package/types/helpers/wrapStyleTags.d.ts.map +1 -1
- package/types/hooks/getThemeProxied.d.ts +1 -1
- package/types/hooks/getThemeProxied.d.ts.map +1 -1
- package/types/hooks/isOptimizedForFirstRender.d.ts +2 -0
- package/types/hooks/isOptimizedForFirstRender.d.ts.map +1 -0
- package/types/hooks/isOptimizedForFirstRender.native.d.ts +2 -0
- package/types/hooks/isOptimizedForFirstRender.native.d.ts.map +1 -0
- package/types/hooks/useAnimationDriver.d.ts +7 -0
- package/types/hooks/useAnimationDriver.d.ts.map +1 -0
- package/types/hooks/useComponentState.d.ts +6 -4
- package/types/hooks/useComponentState.d.ts.map +1 -1
- package/types/hooks/useMedia.d.ts +14 -12
- package/types/hooks/useMedia.d.ts.map +1 -1
- package/types/hooks/usePortalThemeState.d.ts +15 -0
- package/types/hooks/usePortalThemeState.d.ts.map +1 -0
- package/types/hooks/useSplitStyles.d.ts +3 -0
- package/types/hooks/useSplitStyles.d.ts.map +1 -0
- package/types/hooks/useStyle.d.ts +4 -0
- package/types/hooks/useStyle.d.ts.map +1 -0
- package/types/hooks/useTheme.d.ts +1 -1
- package/types/hooks/useTheme.d.ts.map +1 -1
- package/types/hooks/useThemeState.d.ts +13 -3
- package/types/hooks/useThemeState.d.ts.map +1 -1
- package/types/index.d.ts +63 -70
- package/types/index.d.ts.map +1 -1
- package/types/inject-styles.d.ts.map +1 -1
- package/types/insertFont.d.ts.map +1 -1
- package/types/interfaces/CSSColorNames.d.ts +2 -1
- package/types/interfaces/CSSColorNames.d.ts.map +1 -1
- package/types/interfaces/RNExclusiveTypes.d.ts +2 -2
- package/types/interfaces/RNExclusiveTypes.d.ts.map +1 -1
- package/types/interfaces/TamaguiComponentEvents.d.ts +0 -1
- package/types/interfaces/TamaguiComponentEvents.d.ts.map +1 -1
- package/types/interfaces/TamaguiComponentPropsBaseBase.d.ts +2 -4
- package/types/interfaces/TamaguiComponentPropsBaseBase.d.ts.map +1 -1
- package/types/internal-runtime.d.ts +56 -0
- package/types/internal-runtime.d.ts.map +1 -0
- package/types/internalRuntimeTypes.d.ts +11 -0
- package/types/internalRuntimeTypes.d.ts.map +1 -0
- package/types/setupHooks.d.ts +1 -1
- package/types/setupHooks.d.ts.map +1 -1
- package/types/setupReactNative.d.ts +2 -3
- package/types/setupReactNative.d.ts.map +1 -1
- package/types/static-resolve.d.ts +79 -0
- package/types/static-resolve.d.ts.map +1 -0
- package/types/style.d.ts +18 -0
- package/types/style.d.ts.map +1 -0
- package/types/styled.d.ts +41 -41
- package/types/styled.d.ts.map +1 -1
- package/types/theme-update.d.ts +3 -0
- package/types/theme-update.d.ts.map +1 -0
- package/types/types.d.ts +575 -309
- package/types/types.d.ts.map +1 -1
- package/types/views/ConfigRevisionCheck.d.ts +6 -0
- package/types/views/ConfigRevisionCheck.d.ts.map +1 -0
- package/types/views/Configuration.d.ts +1 -1
- package/types/views/Configuration.d.ts.map +1 -1
- package/types/views/FontLanguage.d.ts +4 -4
- package/types/views/FontLanguage.d.ts.map +1 -1
- package/types/views/FontLanguage.native.d.ts +2 -1
- package/types/views/FontLanguage.native.d.ts.map +1 -1
- package/types/views/SafeAreaTracker.d.ts +3 -0
- package/types/views/SafeAreaTracker.d.ts.map +1 -0
- package/types/views/SafeAreaTracker.native.d.ts +3 -0
- package/types/views/SafeAreaTracker.native.d.ts.map +1 -0
- package/types/views/Slot.d.ts +7 -7
- package/types/views/Slot.d.ts.map +1 -1
- package/types/views/TamaguiProvider.d.ts +2 -1
- package/types/views/TamaguiProvider.d.ts.map +1 -1
- package/types/views/TamaguiRoot.d.ts +1 -1
- package/types/views/TamaguiRoot.d.ts.map +1 -1
- package/types/views/Text.d.ts +6 -2
- package/types/views/Text.d.ts.map +1 -1
- package/types/views/Theme.d.ts +3 -8
- package/types/views/Theme.d.ts.map +1 -1
- package/types/views/ThemeDebug.d.ts.map +1 -1
- package/types/views/ThemeProvider.d.ts +1 -1
- package/types/views/ThemeProvider.d.ts.map +1 -1
- package/types/views/ThemeUpdate.d.ts +15 -0
- package/types/views/ThemeUpdate.d.ts.map +1 -0
- package/types/views/View.d.ts +8 -2
- package/types/views/View.d.ts.map +1 -1
- package/.turbo/turbo-build.log +0 -2
- package/.turbo/turbo-test$colon$web.log +0 -25
- package/dist/cjs/animationDriverTypes.test-d.cjs +0 -77
- package/dist/cjs/animationDriverTypes.test-d.native.js +0 -80
- package/dist/cjs/animationDriverTypes.test-d.native.js.map +0 -1
- package/dist/cjs/constants/accessibilityDirectMap.cjs +0 -36
- package/dist/cjs/constants/accessibilityDirectMap.native.js +0 -39
- package/dist/cjs/constants/accessibilityDirectMap.native.js.map +0 -1
- package/dist/cjs/helpers/createMediaStyle.cjs +0 -127
- package/dist/cjs/helpers/createMediaStyle.native.js +0 -140
- package/dist/cjs/helpers/createMediaStyle.native.js.map +0 -1
- package/dist/cjs/helpers/getDefaultProps.cjs +0 -43
- package/dist/cjs/helpers/getDefaultProps.native.js +0 -47
- package/dist/cjs/helpers/getDefaultProps.native.js.map +0 -1
- package/dist/cjs/helpers/getFontLanguage.cjs +0 -28
- package/dist/cjs/helpers/getFontLanguage.native.js +0 -33
- package/dist/cjs/helpers/getFontLanguage.native.js.map +0 -1
- package/dist/cjs/helpers/getGroupPropParts.cjs +0 -54
- package/dist/cjs/helpers/getGroupPropParts.native.js +0 -59
- package/dist/cjs/helpers/getGroupPropParts.native.js.map +0 -1
- package/dist/cjs/helpers/getTokenForKey.cjs +0 -174
- package/dist/cjs/helpers/getTokenForKey.native.js +0 -186
- package/dist/cjs/helpers/getTokenForKey.native.js.map +0 -1
- package/dist/cjs/helpers/getVariantExtras.cjs +0 -85
- package/dist/cjs/helpers/getVariantExtras.native.js +0 -89
- package/dist/cjs/helpers/getVariantExtras.native.js.map +0 -1
- package/dist/cjs/helpers/isActivePlatform.cjs +0 -40
- package/dist/cjs/helpers/isActivePlatform.native.js +0 -43
- package/dist/cjs/helpers/isActivePlatform.native.js.map +0 -1
- package/dist/cjs/helpers/isActiveTheme.cjs +0 -31
- package/dist/cjs/helpers/isActiveTheme.native.js +0 -34
- package/dist/cjs/helpers/isActiveTheme.native.js.map +0 -1
- package/dist/cjs/helpers/normalizeStylePropKeys.cjs +0 -28
- package/dist/cjs/helpers/normalizeStylePropKeys.native.js +0 -42
- package/dist/cjs/helpers/normalizeStylePropKeys.native.js.map +0 -1
- package/dist/cjs/helpers/parseNativeStyle.cjs +0 -167
- package/dist/cjs/helpers/platformResolveValue.cjs +0 -38
- package/dist/cjs/helpers/platformResolveValue.native.js +0 -74
- package/dist/cjs/helpers/platformResolveValue.native.js.map +0 -1
- package/dist/cjs/helpers/propMapper.cjs +0 -281
- package/dist/cjs/helpers/propMapper.native.js +0 -381
- package/dist/cjs/helpers/propMapper.native.js.map +0 -1
- package/dist/cjs/helpers/proxyThemeVariables.cjs +0 -38
- package/dist/cjs/helpers/proxyThemeVariables.native.js +0 -43
- package/dist/cjs/helpers/proxyThemeVariables.native.js.map +0 -1
- package/dist/cjs/helpers/pseudoDescriptors.cjs +0 -82
- package/dist/cjs/helpers/pseudoDescriptors.native.js +0 -85
- package/dist/cjs/helpers/pseudoDescriptors.native.js.map +0 -1
- package/dist/cjs/helpers/pseudoTransitions.cjs +0 -83
- package/dist/cjs/helpers/pseudoTransitions.native.js +0 -88
- package/dist/cjs/helpers/pseudoTransitions.native.js.map +0 -1
- package/dist/cjs/helpers/resolveCompoundTokens.cjs +0 -41
- package/dist/cjs/helpers/resolveCompoundTokens.native.js +0 -44
- package/dist/cjs/helpers/resolveCompoundTokens.native.js.map +0 -1
- package/dist/cjs/helpers/themeable.cjs +0 -114
- package/dist/cjs/helpers/themeable.native.js +0 -119
- package/dist/cjs/helpers/themeable.native.js.map +0 -1
- package/dist/cjs/helpers/useRenderElement.cjs +0 -53
- package/dist/cjs/helpers/useRenderElement.native.js +0 -60
- package/dist/cjs/helpers/useRenderElement.native.js.map +0 -1
- package/dist/cjs/hooks/useProps.cjs +0 -120
- package/dist/cjs/hooks/useProps.native.js +0 -125
- package/dist/cjs/hooks/useProps.native.js.map +0 -1
- package/dist/cjs/opacityModifier.test-d.cjs +0 -36
- package/dist/cjs/opacityModifier.test-d.native.js +0 -39
- package/dist/cjs/opacityModifier.test-d.native.js.map +0 -1
- package/dist/cjs/styledHtml.test-d.cjs +0 -187
- package/dist/cjs/styledHtml.test-d.native.js +0 -190
- package/dist/cjs/styledHtml.test-d.native.js.map +0 -1
- package/dist/cjs/styledNonStyleProps.test-d.cjs +0 -63
- package/dist/cjs/styledNonStyleProps.test-d.native.js +0 -66
- package/dist/cjs/styledNonStyleProps.test-d.native.js.map +0 -1
- package/dist/esm/animationDriverTypes.test-d.mjs +0 -78
- package/dist/esm/animationDriverTypes.test-d.mjs.map +0 -1
- package/dist/esm/animationDriverTypes.test-d.native.js +0 -78
- package/dist/esm/animationDriverTypes.test-d.native.js.map +0 -1
- package/dist/esm/constants/accessibilityDirectMap.mjs +0 -7
- package/dist/esm/constants/accessibilityDirectMap.mjs.map +0 -1
- package/dist/esm/constants/accessibilityDirectMap.native.js +0 -7
- package/dist/esm/constants/accessibilityDirectMap.native.js.map +0 -1
- package/dist/esm/helpers/createMediaStyle.mjs +0 -100
- package/dist/esm/helpers/createMediaStyle.mjs.map +0 -1
- package/dist/esm/helpers/createMediaStyle.native.js +0 -110
- package/dist/esm/helpers/createMediaStyle.native.js.map +0 -1
- package/dist/esm/helpers/getDefaultProps.mjs +0 -18
- package/dist/esm/helpers/getDefaultProps.mjs.map +0 -1
- package/dist/esm/helpers/getDefaultProps.native.js +0 -19
- package/dist/esm/helpers/getDefaultProps.native.js.map +0 -1
- package/dist/esm/helpers/getFontLanguage.mjs +0 -3
- package/dist/esm/helpers/getFontLanguage.mjs.map +0 -1
- package/dist/esm/helpers/getFontLanguage.native.js +0 -5
- package/dist/esm/helpers/getFontLanguage.native.js.map +0 -1
- package/dist/esm/helpers/getGroupPropParts.mjs +0 -29
- package/dist/esm/helpers/getGroupPropParts.mjs.map +0 -1
- package/dist/esm/helpers/getGroupPropParts.native.js +0 -31
- package/dist/esm/helpers/getGroupPropParts.native.js.map +0 -1
- package/dist/esm/helpers/getTokenForKey.mjs +0 -146
- package/dist/esm/helpers/getTokenForKey.mjs.map +0 -1
- package/dist/esm/helpers/getTokenForKey.native.js +0 -155
- package/dist/esm/helpers/getTokenForKey.native.js.map +0 -1
- package/dist/esm/helpers/getVariantExtras.mjs +0 -59
- package/dist/esm/helpers/getVariantExtras.mjs.map +0 -1
- package/dist/esm/helpers/getVariantExtras.native.js +0 -60
- package/dist/esm/helpers/getVariantExtras.native.js.map +0 -1
- package/dist/esm/helpers/isActivePlatform.mjs +0 -14
- package/dist/esm/helpers/isActivePlatform.mjs.map +0 -1
- package/dist/esm/helpers/isActivePlatform.native.js +0 -14
- package/dist/esm/helpers/isActivePlatform.native.js.map +0 -1
- package/dist/esm/helpers/isActiveTheme.mjs +0 -6
- package/dist/esm/helpers/isActiveTheme.mjs.map +0 -1
- package/dist/esm/helpers/isActiveTheme.native.js +0 -6
- package/dist/esm/helpers/isActiveTheme.native.js.map +0 -1
- package/dist/esm/helpers/normalizeStylePropKeys.mjs +0 -3
- package/dist/esm/helpers/normalizeStylePropKeys.mjs.map +0 -1
- package/dist/esm/helpers/normalizeStylePropKeys.native.js +0 -14
- package/dist/esm/helpers/normalizeStylePropKeys.native.js.map +0 -1
- package/dist/esm/helpers/parseNativeStyle.mjs +0 -142
- package/dist/esm/helpers/parseNativeStyle.mjs.map +0 -1
- package/dist/esm/helpers/platformResolveValue.mjs +0 -13
- package/dist/esm/helpers/platformResolveValue.mjs.map +0 -1
- package/dist/esm/helpers/platformResolveValue.native.js +0 -46
- package/dist/esm/helpers/platformResolveValue.native.js.map +0 -1
- package/dist/esm/helpers/propMapper.mjs +0 -251
- package/dist/esm/helpers/propMapper.mjs.map +0 -1
- package/dist/esm/helpers/propMapper.native.js +0 -350
- package/dist/esm/helpers/propMapper.native.js.map +0 -1
- package/dist/esm/helpers/proxyThemeVariables.mjs +0 -13
- package/dist/esm/helpers/proxyThemeVariables.mjs.map +0 -1
- package/dist/esm/helpers/proxyThemeVariables.native.js +0 -15
- package/dist/esm/helpers/proxyThemeVariables.native.js.map +0 -1
- package/dist/esm/helpers/pseudoDescriptors.mjs +0 -54
- package/dist/esm/helpers/pseudoDescriptors.mjs.map +0 -1
- package/dist/esm/helpers/pseudoDescriptors.native.js +0 -54
- package/dist/esm/helpers/pseudoDescriptors.native.js.map +0 -1
- package/dist/esm/helpers/pseudoTransitions.mjs +0 -57
- package/dist/esm/helpers/pseudoTransitions.mjs.map +0 -1
- package/dist/esm/helpers/pseudoTransitions.native.js +0 -59
- package/dist/esm/helpers/pseudoTransitions.native.js.map +0 -1
- package/dist/esm/helpers/resolveCompoundTokens.mjs +0 -16
- package/dist/esm/helpers/resolveCompoundTokens.mjs.map +0 -1
- package/dist/esm/helpers/resolveCompoundTokens.native.js +0 -16
- package/dist/esm/helpers/resolveCompoundTokens.native.js.map +0 -1
- package/dist/esm/helpers/themeable.mjs +0 -79
- package/dist/esm/helpers/themeable.mjs.map +0 -1
- package/dist/esm/helpers/themeable.native.js +0 -80
- package/dist/esm/helpers/themeable.native.js.map +0 -1
- package/dist/esm/helpers/useRenderElement.mjs +0 -26
- package/dist/esm/helpers/useRenderElement.mjs.map +0 -1
- package/dist/esm/helpers/useRenderElement.native.js +0 -31
- package/dist/esm/helpers/useRenderElement.native.js.map +0 -1
- package/dist/esm/hooks/useProps.mjs +0 -82
- package/dist/esm/hooks/useProps.mjs.map +0 -1
- package/dist/esm/hooks/useProps.native.js +0 -84
- package/dist/esm/hooks/useProps.native.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js.map +0 -1
- package/dist/esm/interfaces/GetRef.mjs.map +0 -1
- package/dist/esm/interfaces/GetRef.native.js.map +0 -1
- package/dist/esm/interfaces/RNExclusiveTypes.mjs.map +0 -1
- package/dist/esm/interfaces/RNExclusiveTypes.native.js.map +0 -1
- package/dist/esm/interfaces/TamaguiComponentEvents.mjs.map +0 -1
- package/dist/esm/interfaces/TamaguiComponentEvents.native.js.map +0 -1
- package/dist/esm/interfaces/TamaguiComponentPropsBaseBase.mjs.map +0 -1
- package/dist/esm/interfaces/TamaguiComponentPropsBaseBase.native.js.map +0 -1
- package/dist/esm/opacityModifier.test-d.mjs +0 -37
- package/dist/esm/opacityModifier.test-d.mjs.map +0 -1
- package/dist/esm/opacityModifier.test-d.native.js +0 -37
- package/dist/esm/opacityModifier.test-d.native.js.map +0 -1
- package/dist/esm/styledHtml.test-d.mjs +0 -188
- package/dist/esm/styledHtml.test-d.mjs.map +0 -1
- package/dist/esm/styledHtml.test-d.native.js +0 -188
- package/dist/esm/styledHtml.test-d.native.js.map +0 -1
- package/dist/esm/styledNonStyleProps.test-d.mjs +0 -64
- package/dist/esm/styledNonStyleProps.test-d.mjs.map +0 -1
- package/dist/esm/styledNonStyleProps.test-d.native.js +0 -64
- package/dist/esm/styledNonStyleProps.test-d.native.js.map +0 -1
- package/dist/esm/type-utils.mjs.map +0 -1
- package/dist/esm/type-utils.native.js.map +0 -1
- package/src/animationDriverTypes.test-d.ts +0 -332
- package/src/constants/accessibilityDirectMap.native.tsx +0 -10
- package/src/constants/accessibilityDirectMap.tsx +0 -11
- package/src/helpers/createMediaStyle.ts +0 -167
- package/src/helpers/getDefaultProps.ts +0 -28
- package/src/helpers/getFontLanguage.ts +0 -2
- package/src/helpers/getGroupPropParts.ts +0 -46
- package/src/helpers/getTokenForKey.ts +0 -236
- package/src/helpers/getVariantExtras.tsx +0 -68
- package/src/helpers/isActivePlatform.ts +0 -43
- package/src/helpers/isActiveTheme.ts +0 -4
- package/src/helpers/normalizeStylePropKeys.native.ts +0 -12
- package/src/helpers/normalizeStylePropKeys.ts +0 -3
- package/src/helpers/parseNativeStyle.ts +0 -193
- package/src/helpers/platformResolveValue.native.ts +0 -75
- package/src/helpers/platformResolveValue.ts +0 -26
- package/src/helpers/propMapper.ts +0 -459
- package/src/helpers/proxyThemeVariables.tsx +0 -13
- package/src/helpers/pseudoDescriptors.ts +0 -74
- package/src/helpers/pseudoTransitions.ts +0 -97
- package/src/helpers/resolveCompoundTokens.ts +0 -28
- package/src/helpers/themeable.tsx +0 -104
- package/src/helpers/useRenderElement.tsx +0 -73
- package/src/hooks/useProps.tsx +0 -158
- package/src/opacityModifier.test-d.ts +0 -65
- package/src/styledHtml.test-d.ts +0 -286
- package/src/styledNonStyleProps.test-d.ts +0 -106
- package/tsconfig.json +0 -44
- package/tsconfig.test.json +0 -9
- package/types/constants/accessibilityDirectMap.d.ts +0 -6
- package/types/constants/accessibilityDirectMap.d.ts.map +0 -1
- package/types/constants/accessibilityDirectMap.native.d.ts +0 -6
- package/types/constants/accessibilityDirectMap.native.d.ts.map +0 -1
- package/types/helpers/createMediaStyle.d.ts +0 -5
- package/types/helpers/createMediaStyle.d.ts.map +0 -1
- package/types/helpers/getDefaultProps.d.ts +0 -3
- package/types/helpers/getDefaultProps.d.ts.map +0 -1
- package/types/helpers/getFontLanguage.d.ts +0 -2
- package/types/helpers/getFontLanguage.d.ts.map +0 -1
- package/types/helpers/getGroupPropParts.d.ts +0 -7
- package/types/helpers/getGroupPropParts.d.ts.map +0 -1
- package/types/helpers/getTokenForKey.d.ts +0 -6
- package/types/helpers/getTokenForKey.d.ts.map +0 -1
- package/types/helpers/getVariantExtras.d.ts +0 -4
- package/types/helpers/getVariantExtras.d.ts.map +0 -1
- package/types/helpers/isActivePlatform.d.ts +0 -16
- package/types/helpers/isActivePlatform.d.ts.map +0 -1
- package/types/helpers/isActiveTheme.d.ts +0 -2
- package/types/helpers/isActiveTheme.d.ts.map +0 -1
- package/types/helpers/normalizeStylePropKeys.d.ts +0 -2
- package/types/helpers/normalizeStylePropKeys.d.ts.map +0 -1
- package/types/helpers/normalizeStylePropKeys.native.d.ts +0 -13
- package/types/helpers/normalizeStylePropKeys.native.d.ts.map +0 -1
- package/types/helpers/parseNativeStyle.d.ts +0 -14
- package/types/helpers/parseNativeStyle.d.ts.map +0 -1
- package/types/helpers/platformResolveValue.d.ts +0 -6
- package/types/helpers/platformResolveValue.d.ts.map +0 -1
- package/types/helpers/platformResolveValue.native.d.ts +0 -7
- package/types/helpers/platformResolveValue.native.d.ts.map +0 -1
- package/types/helpers/propMapper.d.ts +0 -5
- package/types/helpers/propMapper.d.ts.map +0 -1
- package/types/helpers/proxyThemeVariables.d.ts +0 -2
- package/types/helpers/proxyThemeVariables.d.ts.map +0 -1
- package/types/helpers/pseudoDescriptors.d.ts +0 -51
- package/types/helpers/pseudoDescriptors.d.ts.map +0 -1
- package/types/helpers/pseudoTransitions.d.ts +0 -29
- package/types/helpers/pseudoTransitions.d.ts.map +0 -1
- package/types/helpers/resolveCompoundTokens.d.ts +0 -9
- package/types/helpers/resolveCompoundTokens.d.ts.map +0 -1
- package/types/helpers/themeable.d.ts +0 -3
- package/types/helpers/themeable.d.ts.map +0 -1
- package/types/helpers/useRenderElement.d.ts +0 -13
- package/types/helpers/useRenderElement.d.ts.map +0 -1
- package/types/hooks/useProps.d.ts +0 -41
- package/types/hooks/useProps.d.ts.map +0 -1
- package/vitest.config.d.ts +0 -3
- package/vitest.config.d.ts.map +0 -1
- package/vitest.config.ts +0 -14
|
@@ -1,985 +1,1837 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var __create = Object.create;
|
|
4
3
|
var __defProp = Object.defineProperty;
|
|
5
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
7
|
var __export = (target, all) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
14
12
|
};
|
|
15
13
|
var __copyProps = (to, from, except, desc) => {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
23
21
|
};
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
27
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
28
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
29
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
30
|
-
value: mod,
|
|
31
|
-
enumerable: true
|
|
32
|
-
}) : target, mod));
|
|
33
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
34
|
-
value: true
|
|
35
|
-
}), mod);
|
|
22
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
36
24
|
var getSplitStyles_exports = {};
|
|
37
25
|
__export(getSplitStyles_exports, {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
26
|
+
STYLE_TOKEN_PROVENANCE_KEY: () => import_styleProvenance2.STYLE_TOKEN_PROVENANCE_KEY,
|
|
27
|
+
emitVariantStyle: () => emitVariantStyle,
|
|
28
|
+
getFontFamilyFromNameOrVariable: () => getFontFamilyFromNameOrVariable,
|
|
29
|
+
getSplitStyles: () => getSplitStyles,
|
|
30
|
+
getStyleStaticConfig: () => import_styleStaticConfig.getStyleStaticConfig,
|
|
31
|
+
getStyleTokenProvenance: () => import_styleProvenance2.getStyleTokenProvenance,
|
|
32
|
+
isValidStyleKey: () => isValidStyleKey,
|
|
33
|
+
styleOriginalValues: () => import_styleOriginalValues.styleOriginalValues,
|
|
34
|
+
walkConditionalValue: () => walkConditionalValue
|
|
45
35
|
});
|
|
46
36
|
module.exports = __toCommonJS(getSplitStyles_exports);
|
|
37
|
+
var import_transitionResolver = require("@tamagui/animation-helpers/transitionResolver");
|
|
47
38
|
var import_constants = require("@tamagui/constants");
|
|
48
39
|
var import_helpers = require("@tamagui/helpers");
|
|
49
|
-
var
|
|
40
|
+
var import_runtime = require("@tamagui/style-grammar/runtime");
|
|
50
41
|
var import_config = require("../config.native.js");
|
|
51
42
|
var import_isDevTools = require("../constants/isDevTools.native.js");
|
|
52
|
-
var
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var import_expandStyles = require("./expandStyles.native.js");
|
|
43
|
+
var import_defaultComponentState = require("../defaultComponentState.native.js");
|
|
44
|
+
var import_createVariable = require("../createVariable.native.js");
|
|
45
|
+
var import_types = require("../types.native.js");
|
|
56
46
|
var import_getCSSStylesAtomic = require("./getCSSStylesAtomic.native.js");
|
|
57
|
-
var
|
|
47
|
+
var import_expandStyle = require("./expandStyle.native.js");
|
|
48
|
+
var import_borderComponents = require("./borderComponents.native.js");
|
|
49
|
+
var import_expandStyles = require("./expandStyles.native.js");
|
|
50
|
+
var import_grammarConfig = require("./grammarConfig.native.js");
|
|
51
|
+
var import_mediaState = require("./mediaState.native.js");
|
|
52
|
+
var import_styleStaticConfig = require("./styleStaticConfig.native.js");
|
|
53
|
+
var import_styleFrontend = require("./styleFrontend.native.js");
|
|
54
|
+
var import_nativeStyleEngine = require("./nativeStyleEngine.native.js");
|
|
55
|
+
var import_warnOnce = require("./warnOnce.native.js");
|
|
58
56
|
var import_getDynamicVal = require("./getDynamicVal.native.js");
|
|
59
|
-
var
|
|
60
|
-
require("./insertStyleRule.native.js");
|
|
61
|
-
var import_isActivePlatform = require("./isActivePlatform.native.js");
|
|
62
|
-
var import_isActiveTheme = require("./isActiveTheme.native.js");
|
|
57
|
+
var import_styledDynamic = require("./styledDynamic.native.js");
|
|
58
|
+
var import_insertStyleRule = require("./insertStyleRule.native.js");
|
|
63
59
|
var import_log = require("./log.native.js");
|
|
60
|
+
var import_normalizeColor = require("./normalizeColor.native.js");
|
|
64
61
|
var import_normalizeValueWithProperty = require("./normalizeValueWithProperty.native.js");
|
|
65
|
-
var
|
|
66
|
-
var
|
|
62
|
+
var import_parseNativeStyle = require("./parseNativeStyle.native.js");
|
|
63
|
+
var import_parseNativeTransform = require("./parseNativeTransform.native.js");
|
|
64
|
+
var import_resolveNativeUnits = require("./resolveNativeUnits.native.js");
|
|
65
|
+
var import_resolveVariableValue = require("./resolveVariableValue.native.js");
|
|
67
66
|
var import_skipProps = require("./skipProps.native.js");
|
|
68
|
-
var import_sortString = require("./sortString.native.js");
|
|
69
67
|
var import_styleOriginalValues = require("./styleOriginalValues.native.js");
|
|
70
68
|
var import_styleProvenance = require("./styleProvenance.native.js");
|
|
69
|
+
var import_themeRef = require("./themeRef.native.js");
|
|
71
70
|
var import_transformsToString = require("./transformsToString.native.js");
|
|
71
|
+
var import_style = require("../style.native.js");
|
|
72
72
|
var import_styleProvenance2 = require("./styleProvenance.native.js");
|
|
73
|
-
|
|
74
|
-
"@swc/helpers - typeof";
|
|
75
|
-
|
|
76
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
77
|
-
}
|
|
73
|
+
__reExport(getSplitStyles_exports, require("./tokenCategories.native.js"), module.exports);
|
|
78
74
|
var shouldTrackStyleTokenProvenance = process.env.NODE_ENV === "development" && process.env.TAMAGUI_ENABLE_STYLE_TOKEN_PROVENANCE === "1";
|
|
79
|
-
var
|
|
80
|
-
var
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
75
|
+
var conditionValue = 0;
|
|
76
|
+
var conditionPlatform = 1;
|
|
77
|
+
var conditionKey = 2;
|
|
78
|
+
var conditionSelector = 3;
|
|
79
|
+
var conditionTheme = 4;
|
|
80
|
+
var conditionWrappers = 5;
|
|
81
|
+
var conditionAtoms = 6;
|
|
82
|
+
var conditionRanks = 7;
|
|
83
|
+
var conditionResolvedFlag = 16;
|
|
84
|
+
var conditionPlatformPseudoFlag = 32;
|
|
85
|
+
function createCondition(parent) {
|
|
86
|
+
return parent ? [
|
|
87
|
+
parent[conditionValue] & 63,
|
|
88
|
+
parent[conditionPlatform],
|
|
89
|
+
"",
|
|
90
|
+
parent[conditionSelector],
|
|
91
|
+
parent[conditionTheme],
|
|
92
|
+
parent[conditionWrappers].slice(),
|
|
93
|
+
parent[conditionAtoms].slice(),
|
|
94
|
+
parent[conditionRanks].slice()
|
|
95
|
+
] : [
|
|
96
|
+
19,
|
|
97
|
+
0,
|
|
98
|
+
"",
|
|
99
|
+
"",
|
|
100
|
+
"",
|
|
101
|
+
[],
|
|
102
|
+
[],
|
|
103
|
+
[]
|
|
104
|
+
];
|
|
105
|
+
}
|
|
106
|
+
function setConditionUnresolved(condition) {
|
|
107
|
+
var name = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
108
|
+
var _condition;
|
|
109
|
+
condition[conditionValue] &= ~conditionResolvedFlag;
|
|
110
|
+
if (process.env.NODE_ENV !== "production") (_condition = condition).problem || (_condition.problem = name);
|
|
111
|
+
}
|
|
112
|
+
function appendConditionWrapper(condition, wrapper) {
|
|
113
|
+
var wrappers = condition[conditionWrappers];
|
|
114
|
+
if (!wrappers.includes(wrapper)) wrappers.push(wrapper);
|
|
115
|
+
}
|
|
116
|
+
function resolveConditionModifier(state, condition, authored) {
|
|
117
|
+
var modifier = (0, import_grammarConfig.getConfigRevisionState)(state.conf).resolveCondition(authored);
|
|
118
|
+
if (!modifier) {
|
|
119
|
+
setConditionUnresolved(condition, authored);
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
var [name, kind, rank] = modifier;
|
|
123
|
+
var atoms = condition[conditionAtoms];
|
|
124
|
+
var atomIndex = 0;
|
|
125
|
+
while (atomIndex < atoms.length && atoms[atomIndex] < name) atomIndex++;
|
|
126
|
+
if (atoms[atomIndex] === name) return;
|
|
127
|
+
for (var index = atoms.length; index > atomIndex; index--) atoms[index] = atoms[index - 1];
|
|
128
|
+
atoms[atomIndex] = name;
|
|
129
|
+
if (kind === 3) {
|
|
130
|
+
condition[conditionPlatform] = Math.max(condition[conditionPlatform], rank);
|
|
131
|
+
if (!modifier[6]) condition[conditionValue] &= -4;
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
var precedence = kind === 2 ? 1 + Math.min(rank, 63) : kind === 6 ? 65 + Math.min(rank, 63) : kind === 4 ? 129 : kind === 5 ? 161 + rank : 225 + rank;
|
|
135
|
+
var ranks = condition[conditionRanks];
|
|
136
|
+
var rankIndex = 0;
|
|
137
|
+
while (rankIndex < ranks.length && ranks[rankIndex] >= precedence) rankIndex++;
|
|
138
|
+
for (var index1 = ranks.length; index1 > rankIndex; index1--) ranks[index1] = ranks[index1 - 1];
|
|
139
|
+
ranks[rankIndex] = precedence;
|
|
140
|
+
var buildCSS = import_getCSSStylesAtomic.canGenerateCSS && state.flatShouldDoClasses;
|
|
141
|
+
if (kind === 2) {
|
|
142
|
+
var _state_flatMediaState;
|
|
143
|
+
var _state;
|
|
144
|
+
var query = modifier[3];
|
|
145
|
+
if (!query) return setConditionUnresolved(condition, name);
|
|
146
|
+
if (buildCSS) appendConditionWrapper(condition, `@media ${query}`);
|
|
147
|
+
if (!((_state_flatMediaState = state.flatMediaState) === null || _state_flatMediaState === void 0 ? void 0 : _state_flatMediaState[name])) condition[conditionValue] &= -2;
|
|
148
|
+
((_state = state).flatMediaKeys || (_state.flatMediaKeys = /* @__PURE__ */ new Set())).add(name);
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
if (kind === 4) {
|
|
152
|
+
var _state_flatThemeName;
|
|
153
|
+
condition[conditionTheme] = name;
|
|
154
|
+
if (buildCSS) condition[conditionSelector] += `:where(.t_${name}, .t_${name} *)`;
|
|
155
|
+
if (state.flatThemeName !== name && ((_state_flatThemeName = state.flatThemeName) === null || _state_flatThemeName === void 0 ? void 0 : _state_flatThemeName.startsWith(`${name}_`)) !== true) condition[conditionValue] &= -2;
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
if (kind === 6) {
|
|
159
|
+
var _state_componentState_group, _state_flatGroupContext, _state_flatGroupContext1, _component_media;
|
|
160
|
+
var _state1, _state2;
|
|
161
|
+
var size = modifier[4];
|
|
162
|
+
var containerName = modifier[5];
|
|
163
|
+
var groupName = `@${containerName}`;
|
|
164
|
+
if (buildCSS) {
|
|
165
|
+
var query1 = modifier[3];
|
|
166
|
+
appendConditionWrapper(condition, containerName ? `@container ${containerName} ${query1}` : `@container ${query1}`);
|
|
167
|
+
}
|
|
168
|
+
var component = (_state_componentState_group = state.componentState.group) === null || _state_componentState_group === void 0 ? void 0 : _state_componentState_group[groupName];
|
|
169
|
+
var context = (_state_flatGroupContext = state.flatGroupContext) === null || _state_flatGroupContext === void 0 ? void 0 : _state_flatGroupContext[groupName];
|
|
170
|
+
if (process.env.NODE_ENV === "development" && containerName && !component && !context && ((_state_flatGroupContext1 = state.flatGroupContext) === null || _state_flatGroupContext1 === void 0 ? void 0 : _state_flatGroupContext1[containerName])) (0, import_warnOnce.warnOnce)(`group-container:${containerName}`, `@${size}/${containerName}: targets group="${containerName}", but groups no longer establish query containers. Add container="${containerName}" to that group.`);
|
|
171
|
+
var match = component === null || component === void 0 ? void 0 : (_component_media = component.media) === null || _component_media === void 0 ? void 0 : _component_media[size];
|
|
172
|
+
if (!(match !== null && match !== void 0 ? match : (context === null || context === void 0 ? void 0 : context.state.layout) && (0, import_mediaState.mediaKeyMatch)(size, context.state.layout))) condition[conditionValue] &= -2;
|
|
173
|
+
((_state1 = state).flatGroupKeys || (_state1.flatGroupKeys = /* @__PURE__ */ new Set())).add(groupName);
|
|
174
|
+
((_state2 = state).flatGroupMedia || (_state2.flatGroupMedia = /* @__PURE__ */ new Set())).add(size);
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
var selector = modifier[3];
|
|
178
|
+
if (kind === 5) {
|
|
179
|
+
var _state_componentState_group1, _state_flatGroupContext2, _this;
|
|
180
|
+
var _state3;
|
|
181
|
+
var groupName1 = modifier[4];
|
|
182
|
+
if (buildCSS) condition[conditionSelector] += `:where(.t_group_${groupName1}${selector} *)`;
|
|
183
|
+
var component1 = (_state_componentState_group1 = state.componentState.group) === null || _state_componentState_group1 === void 0 ? void 0 : _state_componentState_group1[groupName1];
|
|
184
|
+
var context1 = (_state_flatGroupContext2 = state.flatGroupContext) === null || _state_flatGroupContext2 === void 0 ? void 0 : _state_flatGroupContext2[groupName1];
|
|
185
|
+
var _component_pseudo;
|
|
186
|
+
if (!((_this = (_component_pseudo = component1 === null || component1 === void 0 ? void 0 : component1.pseudo) !== null && _component_pseudo !== void 0 ? _component_pseudo : context1 === null || context1 === void 0 ? void 0 : context1.state.pseudo) === null || _this === void 0 ? void 0 : _this[modifier[5]])) condition[conditionValue] &= -2;
|
|
187
|
+
((_state3 = state).flatGroupKeys || (_state3.flatGroupKeys = /* @__PURE__ */ new Set())).add(groupName1);
|
|
188
|
+
} else {
|
|
189
|
+
var _state4;
|
|
190
|
+
if (rank === 0 || rank === 2 || rank === 4) condition[conditionValue] |= conditionPlatformPseudoFlag;
|
|
191
|
+
else if (rank === 6) condition[conditionValue] |= 4;
|
|
192
|
+
else if (rank === 7) condition[conditionValue] |= 8;
|
|
193
|
+
if (buildCSS) condition[conditionSelector] += `:where(${selector}${selector[0] === "." ? `, ${selector} *` : ""})`;
|
|
194
|
+
var component2 = state.componentState;
|
|
195
|
+
if (!(rank === 1 ? component2.focusWithin : rank === 3 ? component2.focusVisible : rank === 4 ? component2.press || component2.pressIn : rank === 5 ? component2.disabled || state.props.disabled : rank === 6 ? component2.unmounted : rank === 7 ? state.styleProps.isExiting : component2[name])) condition[conditionValue] &= -2;
|
|
196
|
+
if (selector[0] === ":") ((_state4 = state).flatStateKeys || (_state4.flatStateKeys = /* @__PURE__ */ new Set())).add(name);
|
|
197
|
+
}
|
|
198
|
+
if (rank === 0 && buildCSS) appendConditionWrapper(condition, "@media (hover: hover)");
|
|
199
|
+
}
|
|
200
|
+
function resolveConditionText(state, condition, text) {
|
|
201
|
+
var start = 0;
|
|
202
|
+
for (var index = 0; index <= text.length; index++) {
|
|
203
|
+
if (index !== text.length && text.charCodeAt(index) !== 58) continue;
|
|
204
|
+
if (index === start) {
|
|
205
|
+
setConditionUnresolved(condition);
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
208
|
+
if (!(condition[conditionValue] & conditionResolvedFlag)) return;
|
|
209
|
+
resolveConditionModifier(state, condition, text.slice(start, index));
|
|
210
|
+
start = index + 1;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
function commitCondition(condition) {
|
|
214
|
+
if (!(condition[conditionValue] & conditionResolvedFlag)) {
|
|
215
|
+
condition[conditionValue] = 0;
|
|
216
|
+
return 0;
|
|
217
|
+
}
|
|
218
|
+
condition[conditionKey] = condition[conditionAtoms].join(":");
|
|
219
|
+
var ranks = condition[conditionRanks];
|
|
220
|
+
var depth = ranks.length;
|
|
221
|
+
if (depth > 5) {
|
|
222
|
+
if (process.env.NODE_ENV !== "production") throw new Error(`a flat value clause supports at most 5 non-platform conditions; received ${depth} in "${condition[conditionKey]}:"`);
|
|
223
|
+
return 0;
|
|
224
|
+
}
|
|
225
|
+
var precedence = condition[conditionPlatform] * 6 + depth;
|
|
226
|
+
for (var index = 0; index < 5; index++) precedence = precedence * 256 + (ranks[index] || 0);
|
|
227
|
+
var value = precedence * 256 + condition[conditionValue];
|
|
228
|
+
condition[conditionValue] = value;
|
|
229
|
+
return value;
|
|
230
|
+
}
|
|
231
|
+
function conditionFromKey(state, key, parent) {
|
|
232
|
+
if (!key) return createCondition(parent);
|
|
233
|
+
if (!parent) {
|
|
234
|
+
var direct = state;
|
|
235
|
+
var cache = direct.flatConditions;
|
|
236
|
+
if (cache === void 0 || direct.flatConditionsClassed !== state.flatShouldDoClasses) {
|
|
237
|
+
cache = direct.flatConditions = /* @__PURE__ */ new Map();
|
|
238
|
+
direct.flatConditionsClassed = state.flatShouldDoClasses;
|
|
239
|
+
}
|
|
240
|
+
var known = cache.get(key);
|
|
241
|
+
if (known !== void 0) return known;
|
|
242
|
+
var resolved = createCondition(null);
|
|
243
|
+
resolveConditionText(state, resolved, key);
|
|
244
|
+
commitCondition(resolved);
|
|
245
|
+
cache.set(key, resolved);
|
|
246
|
+
return resolved;
|
|
247
|
+
}
|
|
248
|
+
var condition = createCondition(parent);
|
|
249
|
+
resolveConditionText(state, condition, key);
|
|
250
|
+
commitCondition(condition);
|
|
251
|
+
return condition;
|
|
252
|
+
}
|
|
253
|
+
function classifyConditionalObject(value, state, isChain, firstCondition) {
|
|
254
|
+
if ("default" in value) return -1;
|
|
255
|
+
for (var key in value) {
|
|
256
|
+
if (!key.length) return 0;
|
|
257
|
+
if (!state) return (isChain === null || isChain === void 0 ? void 0 : isChain(key)) ? 1 : 0;
|
|
258
|
+
var condition = firstCondition || createCondition();
|
|
259
|
+
resolveConditionText(state, condition, key);
|
|
260
|
+
return commitCondition(condition);
|
|
261
|
+
}
|
|
262
|
+
return 0;
|
|
263
|
+
}
|
|
264
|
+
var passClassName = 20;
|
|
265
|
+
var passShouldDoClasses = 21;
|
|
266
|
+
var passContainerValue = 22;
|
|
267
|
+
var passContainerName = 23;
|
|
268
|
+
var passContainerType = 24;
|
|
269
|
+
var passFrontendGroup = 25;
|
|
270
|
+
var passFrontendContainer = 26;
|
|
271
|
+
var passFrontendContainerType = 27;
|
|
272
|
+
var passSourceLayer = 28;
|
|
273
|
+
var passParentCursor = 29;
|
|
274
|
+
var passMapSourceKey = 30;
|
|
275
|
+
var passFlags = 13;
|
|
276
|
+
var sourceLayerBase = 0;
|
|
277
|
+
var sourceLayerVariant = 1;
|
|
278
|
+
var sourceLayerResolver = 2;
|
|
279
|
+
var sourceLayerProps = 3;
|
|
280
|
+
var sourceLayerStyle = 4;
|
|
281
|
+
var passNoSkipFlag = 1;
|
|
282
|
+
var passDisableShorthandsFlag = 2;
|
|
283
|
+
var passNoExpandFlag = 4;
|
|
284
|
+
var passNoMergeFlag = 8;
|
|
285
|
+
var passHocFlag = 16;
|
|
286
|
+
var passTextFlag = 32;
|
|
287
|
+
var passInputFlag = 64;
|
|
288
|
+
var passAsChildStyleFlag = 128;
|
|
289
|
+
function isValidStyleKey(key, validStyles) {
|
|
290
|
+
return key in validStyles;
|
|
291
|
+
}
|
|
292
|
+
function effectiveLifecycleKeys(keys) {
|
|
293
|
+
if (!keys) return;
|
|
294
|
+
var out = /* @__PURE__ */ new Set();
|
|
295
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
296
|
+
try {
|
|
297
|
+
for (var _iterator = keys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
298
|
+
var key = _step.value;
|
|
299
|
+
out.add(key === "--t-x" || key === "--t-y" ? "translate" : key === "--t-scale-x" || key === "--t-scale-y" ? "scale" : key);
|
|
300
|
+
}
|
|
301
|
+
} catch (err) {
|
|
302
|
+
_didIteratorError = true;
|
|
303
|
+
_iteratorError = err;
|
|
304
|
+
} finally {
|
|
305
|
+
try {
|
|
306
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
|
|
307
|
+
} finally {
|
|
308
|
+
if (_didIteratorError) throw _iteratorError;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
return out;
|
|
312
|
+
}
|
|
313
|
+
function contributeProp(pass, keyOg, valOg) {
|
|
314
|
+
var originalOg = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : valOg, disabled = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;
|
|
315
|
+
var [styleState, conf, props, viewProps, , validStyles, neverSkipProps, variants, inlineProps, parentVariants, styleFrontend, styledContext, styledContextKeys, flags, debug, , defaultProps, driverAnimations, driverOutputStyle, elementType] = pass;
|
|
316
|
+
var noSkip = Boolean(flags & passNoSkipFlag);
|
|
317
|
+
var disableExpandShorthands = Boolean(flags & passDisableShorthandsFlag);
|
|
318
|
+
var noExpand = Boolean(flags & passNoExpandFlag);
|
|
319
|
+
var noMergeStyle = Boolean(flags & passNoMergeFlag);
|
|
320
|
+
var isHOC = Boolean(flags & passHocFlag);
|
|
321
|
+
var isText = Boolean(flags & passTextFlag);
|
|
322
|
+
var isInput = Boolean(flags & passInputFlag);
|
|
323
|
+
var shorthands = conf.shorthands;
|
|
324
|
+
var shouldSkipDirectProps = !noSkip && !isHOC;
|
|
325
|
+
var shouldCheckSkipProps = !noSkip;
|
|
326
|
+
var asChildExceptStyleLike = Boolean(flags & passAsChildStyleFlag);
|
|
327
|
+
var isTextOrInput = isText || isInput;
|
|
328
|
+
var hocParentVariants = isHOC ? parentVariants : void 0;
|
|
329
|
+
var keyInit = keyOg;
|
|
330
|
+
var valInit = valOg;
|
|
331
|
+
if (keyInit === "children") {
|
|
332
|
+
viewProps[keyInit] = valInit;
|
|
333
|
+
return;
|
|
334
|
+
}
|
|
335
|
+
if (keyInit === "ref") return;
|
|
336
|
+
if (keyInit[0] === "d" && keyInit.startsWith("data-")) return;
|
|
337
|
+
if (process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`before-prop-${keyInit}`;
|
|
338
|
+
if (process.env.NODE_ENV === "test" && keyInit === "jestAnimatedStyle") return;
|
|
339
|
+
if (!disableExpandShorthands) {
|
|
340
|
+
if (keyInit in shorthands) keyInit = shorthands[keyInit];
|
|
341
|
+
}
|
|
342
|
+
if (keyInit === "className") {
|
|
343
|
+
if (pass[passParentCursor]) return;
|
|
344
|
+
if (typeof valInit === "string" && valInit && (styleFrontend === null || styleFrontend === void 0 ? void 0 : styleFrontend.resolveClassName)) {
|
|
345
|
+
if (noMergeStyle) {
|
|
346
|
+
viewProps.className = valInit;
|
|
347
|
+
return;
|
|
348
|
+
}
|
|
349
|
+
var resolveClassName = styleFrontend === null || styleFrontend === void 0 ? void 0 : styleFrontend.resolveClassName;
|
|
350
|
+
var composedProps = null;
|
|
351
|
+
var sink = function(entry2) {
|
|
352
|
+
var property2 = entry2[0];
|
|
353
|
+
var condition2 = entry2[2];
|
|
354
|
+
if (property2.charCodeAt(0) === 95 && property2.charCodeAt(1) === 95) {
|
|
355
|
+
composedProps || (composedProps = {});
|
|
356
|
+
composedProps[property2] = (0, import_styleFrontend.mergeFrontendCondition)(composedProps[property2], entry2[1], condition2);
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
if (condition2 !== void 0) {
|
|
360
|
+
if (isValidStyleKey(property2, validStyles)) contributeValue(styleState, property2, entry2[1], void 0, false, condition2);
|
|
361
|
+
else if (process.env.NODE_ENV === "development") console.warn(`[tamagui] "${property2}" is not a valid style on this component; the frontend value is dropped.`);
|
|
362
|
+
return;
|
|
363
|
+
}
|
|
364
|
+
if (property2 === "group") pass[passFrontendGroup] = entry2[1];
|
|
365
|
+
else if (property2 === "container") pass[passFrontendContainer] = entry2[1];
|
|
366
|
+
else if (property2 === "containerType") pass[passFrontendContainerType] = entry2[1];
|
|
367
|
+
contributeProp(pass, property2, entry2[1]);
|
|
368
|
+
};
|
|
369
|
+
var start = 0;
|
|
370
|
+
for (var index = 0; index <= valInit.length; index++) {
|
|
371
|
+
if (index !== valInit.length && valInit.charCodeAt(index) > 32) continue;
|
|
372
|
+
if (index === start) {
|
|
373
|
+
start = index + 1;
|
|
374
|
+
continue;
|
|
375
|
+
}
|
|
376
|
+
var candidate = valInit.slice(start, index);
|
|
377
|
+
var preserveRaw = resolveClassName ? resolveClassName(candidate, conf, sink) : true;
|
|
378
|
+
if (preserveRaw === null) {
|
|
379
|
+
if (process.env.NODE_ENV === "development") (0, import_warnOnce.warnOnce)(`[tamagui] frontend candidate "${candidate}" is unavailable on this platform and was dropped.`);
|
|
380
|
+
} else if (preserveRaw) {
|
|
381
|
+
pass[passClassName] = pass[passClassName] ? `${pass[passClassName]} ${candidate}` : candidate;
|
|
382
|
+
if (resolveClassName) {
|
|
383
|
+
if (pass[passShouldDoClasses]) {
|
|
384
|
+
completeResolvedStyles(styleState);
|
|
385
|
+
(0, import_getCSSStylesAtomic.flushDirectStyles)(styleState, true);
|
|
386
|
+
}
|
|
387
|
+
pass[passShouldDoClasses] = false;
|
|
388
|
+
styleState.flatShouldDoClasses = false;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
start = index + 1;
|
|
392
|
+
}
|
|
393
|
+
if (composedProps) {
|
|
394
|
+
var _styleFrontend_compose;
|
|
395
|
+
var composed = (_styleFrontend_compose = styleFrontend.compose) === null || _styleFrontend_compose === void 0 ? void 0 : _styleFrontend_compose.call(styleFrontend, composedProps);
|
|
396
|
+
for (var property in composed) contributeProp(pass, property, composed[property]);
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
return;
|
|
400
|
+
}
|
|
401
|
+
if (keyInit === import_skipProps.HOC_CLASSNAME_MARKER) {
|
|
402
|
+
if (valInit) {
|
|
403
|
+
var _direct;
|
|
404
|
+
var [hocClassNames, hocSlots] = valInit;
|
|
405
|
+
var direct = styleState;
|
|
406
|
+
var layers = (_direct = direct).flatPropertyLayers || (_direct.flatPropertyLayers = /* @__PURE__ */ new Map());
|
|
407
|
+
for (var property1 in hocClassNames) {
|
|
408
|
+
if (hocSlots === null || hocSlots === void 0 ? void 0 : hocSlots.has(property1)) continue;
|
|
409
|
+
clearDirectStyle(styleState, property1);
|
|
410
|
+
styleState.classNames[property1] = hocClassNames[property1];
|
|
411
|
+
layers.set(property1, pass[passSourceLayer]);
|
|
412
|
+
}
|
|
413
|
+
if (hocSlots) {
|
|
414
|
+
var _direct1;
|
|
415
|
+
var slots = (_direct1 = direct).flatSlots || (_direct1.flatSlots = /* @__PURE__ */ new Map());
|
|
416
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
417
|
+
try {
|
|
418
|
+
for (var _iterator = hocSlots[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
419
|
+
var [slot, entries] = _step.value;
|
|
420
|
+
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
|
|
421
|
+
try {
|
|
422
|
+
for (var _iterator1 = entries[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
|
|
423
|
+
var entry = _step1.value;
|
|
424
|
+
if (!ownsSourceLayer(styleState, entry[0], !!entry[2])) continue;
|
|
425
|
+
writeCapturedStyleRecord(slots, slot, entry, pass[passSourceLayer]);
|
|
426
|
+
}
|
|
427
|
+
} catch (err) {
|
|
428
|
+
_didIteratorError1 = true;
|
|
429
|
+
_iteratorError1 = err;
|
|
430
|
+
} finally {
|
|
431
|
+
try {
|
|
432
|
+
if (!_iteratorNormalCompletion1 && _iterator1.return != null) _iterator1.return();
|
|
433
|
+
} finally {
|
|
434
|
+
if (_didIteratorError1) throw _iteratorError1;
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
} catch (err) {
|
|
439
|
+
_didIteratorError = true;
|
|
440
|
+
_iteratorError = err;
|
|
441
|
+
} finally {
|
|
442
|
+
try {
|
|
443
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
|
|
444
|
+
} finally {
|
|
445
|
+
if (_didIteratorError) throw _iteratorError;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
return;
|
|
451
|
+
}
|
|
452
|
+
if (keyInit === "style") {
|
|
453
|
+
if (!valInit) return;
|
|
454
|
+
if (noMergeStyle) {
|
|
455
|
+
viewProps.style = valInit;
|
|
456
|
+
return;
|
|
457
|
+
}
|
|
458
|
+
var layerBeforeStyle = pass[passSourceLayer];
|
|
459
|
+
pass[passSourceLayer] = sourceLayerStyle;
|
|
460
|
+
var isArray = Array.isArray(valInit);
|
|
461
|
+
var length = isArray ? valInit.length : 1;
|
|
462
|
+
for (var index1 = 0; index1 < length; index1++) {
|
|
463
|
+
var style = isArray ? valInit[index1] : valInit;
|
|
464
|
+
if (!style) continue;
|
|
465
|
+
if ((0, import_style.isStylePiece)(style)) {
|
|
466
|
+
var resolvedPiece = resolveStylePiece(styleState, style);
|
|
467
|
+
var pieceOriginals = shouldTrackStyleTokenProvenance ? import_styleOriginalValues.styleOriginalValues.get(style[import_types.stylePieceSymbol].styleObject) : void 0;
|
|
468
|
+
for (var key in resolvedPiece) {
|
|
469
|
+
if (resolvedPiece[key] == null) continue;
|
|
470
|
+
contributeValue(styleState, key, resolvedPiece[key], pieceOriginals === null || pieceOriginals === void 0 ? void 0 : pieceOriginals[key]);
|
|
471
|
+
}
|
|
472
|
+
continue;
|
|
473
|
+
}
|
|
474
|
+
var styleOriginals = shouldTrackStyleTokenProvenance ? import_styleOriginalValues.styleOriginalValues.get(style) : void 0;
|
|
475
|
+
for (var key1 in style) {
|
|
476
|
+
if (style[key1] == null) continue;
|
|
477
|
+
contributeValue(styleState, key1, style[key1], styleOriginals === null || styleOriginals === void 0 ? void 0 : styleOriginals[key1]);
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
pass[passSourceLayer] = layerBeforeStyle;
|
|
481
|
+
return;
|
|
482
|
+
}
|
|
483
|
+
if (defaultProps) {
|
|
484
|
+
var _defaultProps_keyOg;
|
|
485
|
+
var defaultVal = (_defaultProps_keyOg = defaultProps[keyOg]) !== null && _defaultProps_keyOg !== void 0 ? _defaultProps_keyOg : defaultProps[keyInit];
|
|
486
|
+
if (defaultVal !== void 0 && valInit === defaultVal) return;
|
|
487
|
+
}
|
|
488
|
+
var isNativeInputColor = isInput && keyInit in import_nativeStyleEngine.nativeTextInputColorProps;
|
|
489
|
+
if (!isNativeInputColor && keyInit in import_skipProps.skipProps && shouldSkipDirectProps && !(neverSkipProps === null || neverSkipProps === void 0 ? void 0 : neverSkipProps[keyInit])) if (keyInit === "transition" && typeof valInit === "string") return;
|
|
490
|
+
else return;
|
|
491
|
+
var isValidStyleKeyInit = isValidStyleKey(keyInit, validStyles);
|
|
492
|
+
if (!isValidStyleKeyInit) {
|
|
493
|
+
if (!import_constants.isAndroid) {
|
|
494
|
+
if (keyInit === "elevationAndroid") return;
|
|
495
|
+
}
|
|
496
|
+
if (keyInit === "userSelect") {
|
|
497
|
+
keyInit = "selectable";
|
|
498
|
+
valInit = valInit !== "none";
|
|
499
|
+
} else if (keyInit === "textOverflow") {
|
|
500
|
+
if (isText && valInit === "ellipsis") {
|
|
501
|
+
var _viewProps, _viewProps1;
|
|
502
|
+
var _numberOfLines;
|
|
503
|
+
(_numberOfLines = (_viewProps = viewProps).numberOfLines) !== null && _numberOfLines !== void 0 || (_viewProps.numberOfLines = 1);
|
|
504
|
+
var _ellipsizeMode;
|
|
505
|
+
(_ellipsizeMode = (_viewProps1 = viewProps).ellipsizeMode) !== null && _ellipsizeMode !== void 0 || (_viewProps1.ellipsizeMode = "tail");
|
|
506
|
+
}
|
|
507
|
+
return;
|
|
508
|
+
} else if (keyInit.startsWith("data-")) return;
|
|
509
|
+
}
|
|
510
|
+
var isVariant = !isValidStyleKeyInit && variants && keyInit in variants;
|
|
511
|
+
var isStyleProp = isValidStyleKeyInit || isVariant && !noExpand;
|
|
512
|
+
if (isStyleProp && asChildExceptStyleLike) return;
|
|
513
|
+
var shouldPassProp = !isStyleProp && isHOC || hocParentVariants && keyInit in hocParentVariants || (inlineProps === null || inlineProps === void 0 ? void 0 : inlineProps.has(keyInit));
|
|
514
|
+
var parentVariant = parentVariants === null || parentVariants === void 0 ? void 0 : parentVariants[keyInit];
|
|
515
|
+
var isHOCShouldPassThrough = Boolean(isHOC && (parentVariant || keyInit in import_skipProps.skipProps));
|
|
516
|
+
var shouldPassThrough = shouldPassProp || isHOCShouldPassThrough;
|
|
517
|
+
if (process.env.NODE_ENV === "development" && debug === "verbose") {
|
|
518
|
+
console.groupCollapsed(` \u{1F511} ${keyOg}${keyInit !== keyOg ? ` (shorthand for ${keyInit})` : ""} ${shouldPassThrough ? "(pass)" : ""}`);
|
|
519
|
+
(0, import_log.log)({
|
|
520
|
+
isVariant,
|
|
521
|
+
valInit,
|
|
522
|
+
shouldPassProp
|
|
523
|
+
});
|
|
524
|
+
if (import_constants.isClient) (0, import_log.log)({
|
|
525
|
+
variants,
|
|
526
|
+
variant: variants === null || variants === void 0 ? void 0 : variants[keyInit],
|
|
527
|
+
isVariant,
|
|
528
|
+
isHOCShouldPassThrough,
|
|
529
|
+
parentStaticConfig: pass[15]
|
|
530
|
+
});
|
|
531
|
+
}
|
|
532
|
+
if (shouldPassThrough) {
|
|
533
|
+
if (keyInit in viewProps) delete viewProps[keyInit];
|
|
534
|
+
viewProps[keyInit] = valInit;
|
|
535
|
+
if (process.env.NODE_ENV === "development" && debug === "verbose") console.groupEnd();
|
|
536
|
+
if (!isVariant) return;
|
|
537
|
+
}
|
|
538
|
+
if (!isNativeInputColor && shouldCheckSkipProps && !(neverSkipProps === null || neverSkipProps === void 0 ? void 0 : neverSkipProps[keyInit])) {
|
|
539
|
+
var _getTransitionResolver;
|
|
540
|
+
if (keyInit in import_skipProps.skipProps && !(keyInit === "transition" && typeof valInit === "string" && !((_getTransitionResolver = (0, import_transitionResolver.getTransitionResolver)()) === null || _getTransitionResolver === void 0 ? void 0 : _getTransitionResolver.resolve(valInit, { animations: driverAnimations }).fused))) {
|
|
541
|
+
if (process.env.NODE_ENV === "development" && debug === "verbose") console.groupEnd();
|
|
542
|
+
return;
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
if (isTextOrInput) {
|
|
546
|
+
if (valInit && (keyInit === "fontFamily" || keyInit === shorthands["fontFamily"]) && valInit in conf.fontsParsed) styleState.fontFamily = valInit;
|
|
547
|
+
}
|
|
548
|
+
if (isValidStyleKeyInit && valInit != null && !(valInit === "unset") && !(variants && keyInit in variants) && !((styledContextKeys === null || styledContextKeys === void 0 ? void 0 : styledContextKeys.has(keyInit)) || styledContext && keyInit in styledContext)) {
|
|
549
|
+
contributeValue(styleState, keyInit, valInit, originalOg);
|
|
550
|
+
return;
|
|
551
|
+
}
|
|
552
|
+
if (variants && keyInit in variants && !noExpand && !disabled) {
|
|
553
|
+
var _variantConfig_variantStyleResolver;
|
|
554
|
+
var previousLayer = pass[passSourceLayer];
|
|
555
|
+
pass[passSourceLayer] = previousLayer ? sourceLayerVariant : sourceLayerBase;
|
|
556
|
+
pass[passMapSourceKey] = keyInit;
|
|
557
|
+
var variantConfig = styleState.flatStyleStaticConfig;
|
|
558
|
+
(_variantConfig_variantStyleResolver = variantConfig.variantStyleResolver) === null || _variantConfig_variantStyleResolver === void 0 || _variantConfig_variantStyleResolver.call(variantConfig, styleState, variantConfig.variants, keyInit, valInit, keyInit, pass[passParentCursor]);
|
|
559
|
+
pass[passSourceLayer] = previousLayer;
|
|
560
|
+
return;
|
|
561
|
+
}
|
|
562
|
+
var isStyledContextProp = !isHOC && ((styledContextKeys === null || styledContextKeys === void 0 ? void 0 : styledContextKeys.has(keyInit)) || styledContext && keyInit in styledContext);
|
|
563
|
+
if (isStyledContextProp) {
|
|
564
|
+
var _styleState1, _styleState2;
|
|
565
|
+
((_styleState1 = styleState).overriddenContextProps || (_styleState1.overriddenContextProps = {}))[keyInit] = originalOg;
|
|
566
|
+
((_styleState2 = styleState).originalContextPropValues || (_styleState2.originalContextPropValues = {}))[keyInit] = originalOg;
|
|
567
|
+
}
|
|
568
|
+
var isHostStyleKey = isValidStyleKeyInit || import_constants.isAndroid && keyInit === "elevation";
|
|
569
|
+
if (isHostStyleKey || isStyledContextProp) {
|
|
570
|
+
if (valInit === "unset") {
|
|
571
|
+
var expanded = (0, import_expandStyle.expandStyle)(keyInit, valInit, conf.settings.styleCompat || "web");
|
|
572
|
+
clearDirectStyle(styleState, keyInit);
|
|
573
|
+
if (expanded) for (var index2 = 0; index2 < expanded.length; index2++) clearDirectStyle(styleState, expanded[index2][0]);
|
|
574
|
+
} else contributeValue(styleState, keyInit, valInit, originalOg, !isHostStyleKey);
|
|
575
|
+
return;
|
|
576
|
+
}
|
|
577
|
+
var condition = pass[passParentCursor];
|
|
578
|
+
if (condition) {
|
|
579
|
+
if (isHOC) {
|
|
580
|
+
var previous = viewProps[keyInit];
|
|
581
|
+
var transport = previous && typeof previous === "object" && !Array.isArray(previous) && "default" in previous ? previous : { default: previous };
|
|
582
|
+
transport[condition[conditionKey]] = valInit;
|
|
583
|
+
viewProps[keyInit] = transport;
|
|
584
|
+
} else if (process.env.NODE_ENV === "development") console.warn(`[tamagui] "${keyInit}" is not a valid style on this component; the conditional variant value is dropped.`);
|
|
585
|
+
return;
|
|
586
|
+
}
|
|
587
|
+
if (keyInit in import_helpers.stylePropsAll) {
|
|
588
|
+
if (process.env.NODE_ENV === "development") console.warn(`[tamagui] "${keyInit}" is a text style prop and this component is not text \u2014 it would render on neither platform. Use a Text-based component, or html.* for raw web elements.`);
|
|
589
|
+
return;
|
|
590
|
+
}
|
|
591
|
+
viewProps[keyInit] = valInit;
|
|
592
|
+
if (process.env.NODE_ENV === "development" && debug === "verbose") {
|
|
593
|
+
try {
|
|
594
|
+
(0, import_log.log)(` \u2714\uFE0F expand complete`, keyInit);
|
|
595
|
+
(0, import_log.log)("style", { ...styleState.style });
|
|
596
|
+
(0, import_log.log)("viewProps", { ...viewProps });
|
|
597
|
+
(0, import_log.log)("transforms", styleState.transformAccumulator);
|
|
598
|
+
} catch (e) {}
|
|
599
|
+
console.groupEnd();
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
var getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, componentContext, groupContext, elementType, startedUnhydrated, debug, animationDriver, styleStaticConfig) {
|
|
603
|
+
var _styleState_flatMediaKeys, _styleState_flatGroupKeys, _styleState_flatGroupMedia, _styleState_flatGroupKeys1, _styleState_flatGroupMedia1, _styleState_style;
|
|
604
|
+
var conf = (0, import_config.getConfig)();
|
|
605
|
+
styleStaticConfig || (styleStaticConfig = (0, import_styleStaticConfig.getStyleStaticConfig)(staticConfig, conf));
|
|
606
|
+
var driver = animationDriver || (componentContext === null || componentContext === void 0 ? void 0 : componentContext.animationDriver) || conf.animations;
|
|
607
|
+
var driverAnimations = driver === null || driver === void 0 ? void 0 : driver.animations;
|
|
608
|
+
driver === null || driver === void 0 || driver.inputStyle;
|
|
609
|
+
var driverOutputStyle = driver === null || driver === void 0 ? void 0 : driver.outputStyle;
|
|
610
|
+
var resolvedDriver = (driver === null || driver === void 0 ? void 0 : driver.isStub) ? null : driver;
|
|
611
|
+
if (props.passThrough) return null;
|
|
612
|
+
var { shorthands } = conf;
|
|
613
|
+
var { isHOC, isText, isInput, inlineProps, parentStaticConfig, acceptsClassName } = staticConfig;
|
|
614
|
+
var variants = styleStaticConfig.variants;
|
|
615
|
+
var viewProps = {};
|
|
616
|
+
var mediaState = styleProps.mediaState || import_mediaState.mediaState;
|
|
617
|
+
var shouldDoClasses = !process.env.TAMAGUI_DID_OUTPUT_CSS && acceptsClassName && false;
|
|
618
|
+
var rulesToInsert = void 0;
|
|
619
|
+
var classNames = {};
|
|
620
|
+
var hasMedia = false;
|
|
621
|
+
var pseudoGroups;
|
|
622
|
+
var mediaGroups;
|
|
623
|
+
var staticPassthroughClassName = "";
|
|
624
|
+
var className = staticPassthroughClassName;
|
|
625
|
+
if (staticPassthroughClassName) shouldDoClasses = false;
|
|
626
|
+
var validStyles = staticConfig.validStyles || (staticConfig.isInput ? import_helpers.stylePropsInput : staticConfig.isText ? import_helpers.stylePropsText : import_helpers.validStyles);
|
|
627
|
+
if (process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`split-styles-setup`;
|
|
628
|
+
var styleState = {
|
|
629
|
+
classNames,
|
|
630
|
+
conf,
|
|
631
|
+
props,
|
|
632
|
+
styleProps,
|
|
633
|
+
componentState,
|
|
634
|
+
staticConfig,
|
|
635
|
+
style: null,
|
|
636
|
+
theme,
|
|
637
|
+
viewProps,
|
|
638
|
+
context: componentContext,
|
|
639
|
+
debug,
|
|
640
|
+
flatRulesToInsert: rulesToInsert,
|
|
641
|
+
flatShouldDoClasses: shouldDoClasses,
|
|
642
|
+
flatThemeName: themeName,
|
|
643
|
+
flatMediaState: mediaState,
|
|
644
|
+
flatGroupContext: groupContext,
|
|
645
|
+
animationDriver: resolvedDriver
|
|
646
|
+
};
|
|
647
|
+
styleState.flatStyleStaticConfig = styleStaticConfig;
|
|
648
|
+
if (process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`style-state`;
|
|
649
|
+
if (process.env.NODE_ENV === "development" && debug === "verbose" && import_constants.isClient) {
|
|
650
|
+
if (import_isDevTools.isDevTools) {
|
|
651
|
+
console.groupCollapsed("🔹 getSplitStyles 👇");
|
|
652
|
+
(0, import_log.log)({
|
|
653
|
+
props,
|
|
654
|
+
staticConfig,
|
|
655
|
+
shouldDoClasses,
|
|
656
|
+
styleProps,
|
|
657
|
+
rulesToInsert,
|
|
658
|
+
componentState,
|
|
659
|
+
styleState,
|
|
660
|
+
theme: { ...theme }
|
|
661
|
+
});
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
var { asChild } = props;
|
|
665
|
+
var { neverSkipProps } = staticConfig;
|
|
666
|
+
var { noSkip, disableExpandShorthands, noExpand, noClass, noMergeStyle, noNormalize, isAnimated, styledContext } = styleProps;
|
|
667
|
+
var styledContextKeys = styleStaticConfig.styledContextKeys;
|
|
668
|
+
var styleFrontend = staticConfig.styleFrontend;
|
|
669
|
+
var frontendGroup;
|
|
670
|
+
var frontendContainer;
|
|
671
|
+
var frontendContainerType;
|
|
672
|
+
var processedProps = props;
|
|
673
|
+
var parentVariants = parentStaticConfig ? (0, import_styleStaticConfig.getStyleStaticConfig)(parentStaticConfig, conf).variants : void 0;
|
|
674
|
+
var defaultProps = asChild ? styleStaticConfig.defaultProps : void 0;
|
|
675
|
+
var asChildExceptStyleLike = asChild === "except-style" || asChild === "except-style-web";
|
|
676
|
+
var containerValue;
|
|
677
|
+
var containerName;
|
|
678
|
+
var containerType;
|
|
679
|
+
var pass = [
|
|
680
|
+
styleState,
|
|
681
|
+
conf,
|
|
682
|
+
props,
|
|
683
|
+
viewProps,
|
|
684
|
+
staticConfig,
|
|
685
|
+
validStyles,
|
|
686
|
+
neverSkipProps,
|
|
687
|
+
variants,
|
|
688
|
+
inlineProps,
|
|
689
|
+
parentVariants,
|
|
690
|
+
styleFrontend,
|
|
691
|
+
styledContext,
|
|
692
|
+
styledContextKeys,
|
|
693
|
+
(noSkip ? passNoSkipFlag : 0) | (disableExpandShorthands ? passDisableShorthandsFlag : 0) | (noExpand ? passNoExpandFlag : 0) | (noMergeStyle ? passNoMergeFlag : 0) | (isHOC ? passHocFlag : 0) | (isText ? passTextFlag : 0) | (isInput ? passInputFlag : 0) | (asChildExceptStyleLike ? passAsChildStyleFlag : 0),
|
|
694
|
+
debug,
|
|
695
|
+
parentStaticConfig,
|
|
696
|
+
defaultProps,
|
|
697
|
+
driverAnimations,
|
|
698
|
+
driverOutputStyle,
|
|
699
|
+
elementType,
|
|
700
|
+
className,
|
|
701
|
+
shouldDoClasses,
|
|
702
|
+
containerValue,
|
|
703
|
+
containerName,
|
|
704
|
+
containerType,
|
|
705
|
+
frontendGroup,
|
|
706
|
+
frontendContainer,
|
|
707
|
+
frontendContainerType
|
|
708
|
+
];
|
|
709
|
+
styleState.flatPass = pass;
|
|
710
|
+
var conditionalStates = null;
|
|
711
|
+
var usesSafeArea = false;
|
|
712
|
+
var baseStyle = styleStaticConfig.baseStyle;
|
|
713
|
+
var baseVariantProps = styleStaticConfig.baseVariantProps;
|
|
714
|
+
var appliesBaseStyle = baseStyle && !processedProps.asChild;
|
|
715
|
+
pass[passSourceLayer] = sourceLayerBase;
|
|
716
|
+
if (appliesBaseStyle && baseVariantProps) {
|
|
717
|
+
var callerKeys;
|
|
718
|
+
for (var key in baseVariantProps) if (Object.hasOwn(processedProps, key) && processedProps[key] !== baseVariantProps[key]) (callerKeys || (callerKeys = /* @__PURE__ */ new Set())).add(key);
|
|
719
|
+
styleState.flatCallerVariantKeys = callerKeys;
|
|
720
|
+
}
|
|
721
|
+
if (appliesBaseStyle) for (var key1 in baseStyle) {
|
|
722
|
+
var _styleStaticConfig_baseStylePieces;
|
|
723
|
+
var baseValue = baseVariantProps && Object.hasOwn(baseVariantProps, key1) && Object.hasOwn(processedProps, key1) ? processedProps[key1] : baseStyle[key1];
|
|
724
|
+
var expandedKey = shorthands[key1] || key1;
|
|
725
|
+
if ((isText || isInput) && baseValue && expandedKey === "fontFamily" && baseValue in conf.fontsParsed) styleState.fontFamily = baseValue;
|
|
726
|
+
(_styleStaticConfig_baseStylePieces = styleStaticConfig.baseStylePieces) === null || _styleStaticConfig_baseStylePieces === void 0 || _styleStaticConfig_baseStylePieces[key1];
|
|
727
|
+
contributeProp(pass, key1, baseValue);
|
|
728
|
+
}
|
|
729
|
+
pass[passSourceLayer] = sourceLayerProps;
|
|
730
|
+
for (var key2 in processedProps) {
|
|
731
|
+
if (appliesBaseStyle && baseVariantProps && Object.hasOwn(baseVariantProps, key2)) continue;
|
|
732
|
+
contributeProp(pass, key2, processedProps[key2]);
|
|
733
|
+
}
|
|
734
|
+
var resolvers = staticConfig.resolvers;
|
|
735
|
+
if (resolvers && !noExpand) {
|
|
736
|
+
var prevSourceLayer = pass[passSourceLayer];
|
|
737
|
+
pass[passSourceLayer] = sourceLayerResolver;
|
|
738
|
+
var flagsBefore = pass[passFlags];
|
|
739
|
+
pass[passFlags] = flagsBefore | passNoExpandFlag;
|
|
740
|
+
var env = (0, import_styledDynamic.getDynamicEnv)(styleState);
|
|
741
|
+
for (var index = 0; index < resolvers.length; index++) {
|
|
742
|
+
var resolved = resolvers[index](processedProps, env);
|
|
743
|
+
if (resolved) for (var key3 in resolved) {
|
|
744
|
+
if (resolved[key3] == null) continue;
|
|
745
|
+
contributeProp(pass, key3, resolved[key3]);
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
pass[passFlags] = flagsBefore;
|
|
749
|
+
pass[passSourceLayer] = prevSourceLayer;
|
|
750
|
+
}
|
|
751
|
+
className = pass[passClassName];
|
|
752
|
+
shouldDoClasses = pass[passShouldDoClasses];
|
|
753
|
+
containerValue = pass[passContainerValue];
|
|
754
|
+
containerName = pass[passContainerName];
|
|
755
|
+
containerType = pass[passContainerType];
|
|
756
|
+
frontendGroup = pass[passFrontendGroup];
|
|
757
|
+
frontendContainer = pass[passFrontendContainer];
|
|
758
|
+
frontendContainerType = pass[passFrontendContainerType];
|
|
759
|
+
if (process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`split-styles-propsend`;
|
|
760
|
+
conditionalStates = styleState.flatStateKeys || null;
|
|
761
|
+
usesSafeArea = !!styleState.flatUsesSafeArea;
|
|
762
|
+
hasMedia = ((_styleState_flatMediaKeys = styleState.flatMediaKeys) === null || _styleState_flatMediaKeys === void 0 ? void 0 : _styleState_flatMediaKeys.size) ? styleState.flatMediaKeys : false;
|
|
763
|
+
pseudoGroups = ((_styleState_flatGroupKeys = styleState.flatGroupKeys) === null || _styleState_flatGroupKeys === void 0 ? void 0 : _styleState_flatGroupKeys.size) ? styleState.flatGroupKeys : void 0;
|
|
764
|
+
mediaGroups = ((_styleState_flatGroupMedia = styleState.flatGroupMedia) === null || _styleState_flatGroupMedia === void 0 ? void 0 : _styleState_flatGroupMedia.size) ? styleState.flatGroupMedia : void 0;
|
|
765
|
+
if (styleProps.canPlatformPseudo && styleState.flatHasPlatformPseudo) {
|
|
766
|
+
shouldDoClasses = false;
|
|
767
|
+
styleState.flatShouldDoClasses = false;
|
|
768
|
+
if (styleState.transformAccumulator) {
|
|
769
|
+
mergeStyle(styleState, "transform", (0, import_runtime.finalizeTransformAccumulator)(styleState.transformAccumulator), true);
|
|
770
|
+
styleState.transformAccumulator = void 0;
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
if (styleProps.stylePieceEntries) {
|
|
774
|
+
var slots = styleState.flatSlots;
|
|
775
|
+
if (slots) {
|
|
776
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
777
|
+
try {
|
|
778
|
+
for (var _iterator = slots[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
779
|
+
var [slot, entries] = _step.value;
|
|
780
|
+
styleProps.stylePieceEntries[slot] = entries;
|
|
781
|
+
}
|
|
782
|
+
} catch (err) {
|
|
783
|
+
_didIteratorError = true;
|
|
784
|
+
_iteratorError = err;
|
|
785
|
+
} finally {
|
|
786
|
+
try {
|
|
787
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
|
|
788
|
+
} finally {
|
|
789
|
+
if (_didIteratorError) throw _iteratorError;
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
completeResolvedStyles(styleState);
|
|
795
|
+
if ((_styleState_flatGroupKeys1 = styleState.flatGroupKeys) === null || _styleState_flatGroupKeys1 === void 0 ? void 0 : _styleState_flatGroupKeys1.size) pseudoGroups = styleState.flatGroupKeys;
|
|
796
|
+
if ((_styleState_flatGroupMedia1 = styleState.flatGroupMedia) === null || _styleState_flatGroupMedia1 === void 0 ? void 0 : _styleState_flatGroupMedia1.size) mediaGroups = styleState.flatGroupMedia;
|
|
797
|
+
if (styleProps.isStatic) for (var property in classNames) {
|
|
798
|
+
var identifier = classNames[property];
|
|
799
|
+
if (rulesToInsert[identifier]) continue;
|
|
800
|
+
var rules = (0, import_insertStyleRule.getRulesForIdentifier)(identifier);
|
|
801
|
+
if (rules) rulesToInsert[identifier] = [
|
|
802
|
+
property,
|
|
803
|
+
"",
|
|
804
|
+
identifier,
|
|
805
|
+
void 0,
|
|
806
|
+
rules
|
|
807
|
+
];
|
|
808
|
+
}
|
|
809
|
+
var effectiveTransition = (_styleState_style = styleState.style) === null || _styleState_style === void 0 ? void 0 : _styleState_style.transition;
|
|
810
|
+
if (effectiveTransition != null && styleState.style && true) delete styleState.style.transition;
|
|
811
|
+
if (styleState.style) {
|
|
812
|
+
if ("containerType" in styleState.style) delete styleState.style.containerType;
|
|
813
|
+
if ("containerName" in styleState.style) delete styleState.style.containerName;
|
|
814
|
+
}
|
|
815
|
+
if (!(noNormalize === false)) {
|
|
816
|
+
if (styleState.style) (0, import_expandStyles.fixStyles)(styleState.style);
|
|
817
|
+
if (styleState.transformAccumulator && !styleState.flatShouldDoClasses) {
|
|
818
|
+
var _styleState;
|
|
819
|
+
(_styleState = styleState).style || (_styleState.style = {});
|
|
820
|
+
styleState.style.transform = (0, import_runtime.finalizeTransformAccumulator)(styleState.transformAccumulator);
|
|
821
|
+
}
|
|
822
|
+
if (parentSplitStyles) {
|
|
823
|
+
if (!shouldDoClasses) for (var key5 in parentSplitStyles.style) {
|
|
824
|
+
var _styleState1;
|
|
825
|
+
if (key5 in classNames || styleState.style && key5 in styleState.style) continue;
|
|
826
|
+
(_styleState1 = styleState).style || (_styleState1.style = {});
|
|
827
|
+
styleState.style[key5] = parentSplitStyles.style[key5];
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
if (viewProps.tabIndex === 0) {
|
|
832
|
+
var _viewProps;
|
|
833
|
+
var _accessible;
|
|
834
|
+
(_accessible = (_viewProps = viewProps).accessible) !== null && _accessible !== void 0 || (_viewProps.accessible = true);
|
|
835
|
+
}
|
|
836
|
+
var style = styleState.style;
|
|
837
|
+
if (style === null || style === void 0 ? void 0 : style.fontFamily) {
|
|
838
|
+
var _getFont;
|
|
839
|
+
var faceInfo = (_getFont = (0, import_config.getFont)(style.fontFamily)) === null || _getFont === void 0 ? void 0 : _getFont.face;
|
|
840
|
+
if (faceInfo) {
|
|
841
|
+
var _faceInfo_style_fontWeight_, _faceInfo_style_fontWeight;
|
|
842
|
+
var overrideFace = (_faceInfo_style_fontWeight = faceInfo[style.fontWeight]) === null || _faceInfo_style_fontWeight === void 0 ? void 0 : (_faceInfo_style_fontWeight_ = _faceInfo_style_fontWeight[style.fontStyle || "normal"]) === null || _faceInfo_style_fontWeight_ === void 0 ? void 0 : _faceInfo_style_fontWeight_.val;
|
|
843
|
+
if (overrideFace) {
|
|
844
|
+
style.fontFamily = overrideFace;
|
|
845
|
+
styleState.fontFamily = overrideFace;
|
|
846
|
+
delete style.fontWeight;
|
|
847
|
+
delete style.fontStyle;
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
if (process.env.NODE_ENV === "development" && debug && debug !== "profile") (0, import_log.log)(`Found fontFamily native: ${style.fontFamily}`, faceInfo);
|
|
851
|
+
}
|
|
852
|
+
if (styleState.style) styleState.style = (0, import_nativeStyleEngine.normalizeNativeStyle)(styleState.style);
|
|
853
|
+
if (process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`split-styles-pre-result`;
|
|
854
|
+
if (shouldTrackStyleTokenProvenance && styleState.style && styleState.tokenProvenance) {
|
|
855
|
+
var provenance = {};
|
|
856
|
+
var hasProvenance = false;
|
|
857
|
+
for (var key6 in styleState.tokenProvenance) {
|
|
858
|
+
provenance[key6] = {
|
|
859
|
+
token: styleState.tokenProvenance[key6],
|
|
860
|
+
theme: themeName
|
|
861
|
+
};
|
|
862
|
+
hasProvenance = true;
|
|
863
|
+
}
|
|
864
|
+
if (hasProvenance) (0, import_styleProvenance.setStyleTokenProvenance)(styleState.style, provenance);
|
|
865
|
+
}
|
|
866
|
+
var result = {
|
|
867
|
+
hasMedia,
|
|
868
|
+
fontFamily: styleState.fontFamily,
|
|
869
|
+
viewProps,
|
|
870
|
+
style: styleState.style,
|
|
871
|
+
classNames,
|
|
872
|
+
rulesToInsert,
|
|
873
|
+
pseudoGroups,
|
|
874
|
+
mediaGroups,
|
|
875
|
+
overriddenContextProps: styleState.overriddenContextProps
|
|
876
|
+
};
|
|
877
|
+
if (effectiveTransition != null) result.effectiveTransition = effectiveTransition;
|
|
878
|
+
if (conditionalStates) result.programStates = conditionalStates;
|
|
879
|
+
if (usesSafeArea) result.usesSafeArea = true;
|
|
880
|
+
if (styleState.flatDynamicThemeAccess) result.dynamicThemeAccess = true;
|
|
881
|
+
if (styleState.flatEnterKeys || styleState.flatExitKeys) result.programLifecycleStyleKeys = {
|
|
882
|
+
enter: effectiveLifecycleKeys(styleState.flatEnterKeys),
|
|
883
|
+
exit: effectiveLifecycleKeys(styleState.flatExitKeys)
|
|
884
|
+
};
|
|
885
|
+
if (styleState.flatHasEnterStyle) result.hasEnterStyle = true;
|
|
886
|
+
if (styleState.flatHasPlatformPseudo) result.platformPseudo = true;
|
|
887
|
+
if (frontendGroup !== void 0) result.frontendGroup = frontendGroup;
|
|
888
|
+
if (frontendContainer !== void 0) result.frontendContainer = frontendContainer;
|
|
889
|
+
if (frontendContainerType !== void 0) result.frontendContainerType = frontendContainerType;
|
|
890
|
+
if (!noMergeStyle) {
|
|
891
|
+
if (!asChildExceptStyleLike) {
|
|
892
|
+
var style1 = styleState.style;
|
|
893
|
+
if (style1) viewProps.style = style1;
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
if (process.env.NODE_ENV === "development" && debug === "verbose") {
|
|
897
|
+
if (import_constants.isClient && import_isDevTools.isDevTools) {
|
|
898
|
+
console.groupEnd();
|
|
899
|
+
console.groupCollapsed("🔹 getSplitStyles ===>");
|
|
900
|
+
try {
|
|
901
|
+
var logs = {
|
|
902
|
+
...props.__tamaguiStyleDebugReceipt && { receipt: props.__tamaguiStyleDebugReceipt },
|
|
903
|
+
...result,
|
|
904
|
+
className,
|
|
905
|
+
componentState,
|
|
906
|
+
viewProps,
|
|
907
|
+
rulesToInsert,
|
|
908
|
+
parentSplitStyles
|
|
909
|
+
};
|
|
910
|
+
for (var key8 in logs) (0, import_log.log)(key8, logs[key8]);
|
|
911
|
+
} catch (e) {}
|
|
912
|
+
console.groupEnd();
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
if (process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`split-styles-done`;
|
|
916
|
+
return result;
|
|
917
|
+
};
|
|
918
|
+
var stylePieceStaticConfig = {
|
|
919
|
+
acceptsClassName: true,
|
|
920
|
+
isText: true,
|
|
921
|
+
validStyles: import_helpers.stylePropsAll
|
|
764
922
|
};
|
|
765
|
-
function
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
function
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
923
|
+
var compileStylePieceRuntime = function(piece, layer) {};
|
|
924
|
+
(0, import_style.setStylePieceCompiler)(compileStylePieceRuntime);
|
|
925
|
+
(0, import_style.setStylePieceResolver)(function(piece, theme, themeName) {
|
|
926
|
+
var split = getSplitStyles({ style: piece }, stylePieceStaticConfig, theme, themeName, import_defaultComponentState.defaultComponentStateMounted, {
|
|
927
|
+
isAnimated: false,
|
|
928
|
+
resolveValues: "value"
|
|
929
|
+
});
|
|
930
|
+
return (split === null || split === void 0 ? void 0 : split.style) || {};
|
|
931
|
+
});
|
|
932
|
+
var resolvedStylePieceCache = /* @__PURE__ */ new WeakMap();
|
|
933
|
+
function resolveStylePiece(styleState, piece) {
|
|
934
|
+
var definition = piece[import_types.stylePieceSymbol].styleObject;
|
|
935
|
+
if (!(0, import_style.isStylePieceCacheable)(piece)) return resolveStyleObject(styleState, definition);
|
|
936
|
+
var themeCache = resolvedStylePieceCache.get(piece);
|
|
937
|
+
if (!themeCache) {
|
|
938
|
+
themeCache = /* @__PURE__ */ new WeakMap();
|
|
939
|
+
resolvedStylePieceCache.set(piece, themeCache);
|
|
940
|
+
}
|
|
941
|
+
var theme = styleState.theme;
|
|
942
|
+
var cached = themeCache.get(theme);
|
|
943
|
+
if (cached) return cached;
|
|
944
|
+
var resolved = resolveStyleObject(styleState, definition);
|
|
945
|
+
themeCache.set(theme, resolved);
|
|
946
|
+
return resolved;
|
|
947
|
+
}
|
|
948
|
+
function writeCapturedStyleRecord(slots, slot, source, sourceLayer) {
|
|
949
|
+
var list = slots.get(slot);
|
|
950
|
+
if (!list) slots.set(slot, list = []);
|
|
951
|
+
var flags = source[7] & 31;
|
|
952
|
+
var identity = source[3];
|
|
953
|
+
var condition = source[2];
|
|
954
|
+
for (var index = 0; index < list.length; index++) {
|
|
955
|
+
var entry = list[index];
|
|
956
|
+
var entryFlags = entry[7] & 31;
|
|
957
|
+
if ((entryFlags & (recordInline | recordCSS)) !== (flags & (recordInline | recordCSS))) continue;
|
|
958
|
+
if (entry[0] !== source[0]) continue;
|
|
959
|
+
if (flags & recordDefault) {
|
|
960
|
+
if (!(entryFlags & recordDefault) && (!entry[2] || entry[3] === identity)) return;
|
|
961
|
+
} else if (entryFlags & recordDefault && (!condition || entry[3] === identity)) {
|
|
962
|
+
list.splice(index--, 1);
|
|
963
|
+
continue;
|
|
964
|
+
}
|
|
965
|
+
if (entry[3] === identity) {
|
|
966
|
+
list.splice(index, 1);
|
|
967
|
+
break;
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
var next = [...source];
|
|
971
|
+
next[7] = flags | sourceLayer << 5;
|
|
972
|
+
list.push(next);
|
|
973
|
+
}
|
|
974
|
+
function mergeStyle(styleState, key, val) {
|
|
975
|
+
arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
|
|
976
|
+
var originalVal = arguments.length > 4 ? arguments[4] : void 0;
|
|
977
|
+
var { viewProps, styleProps, staticConfig } = styleState;
|
|
978
|
+
var contextPropSet = styleState.flatStyleStaticConfig.styledContextKeys;
|
|
979
|
+
if (contextPropSet === null || contextPropSet === void 0 ? void 0 : contextPropSet.has(key)) {
|
|
980
|
+
var _styleState_originalContextPropValues;
|
|
981
|
+
var _styleState;
|
|
982
|
+
(_styleState = styleState).overriddenContextProps || (_styleState.overriddenContextProps = {});
|
|
983
|
+
var originalFromState = (_styleState_originalContextPropValues = styleState.originalContextPropValues) === null || _styleState_originalContextPropValues === void 0 ? void 0 : _styleState_originalContextPropValues[key];
|
|
984
|
+
var _ref;
|
|
985
|
+
styleState.overriddenContextProps[key] = (_ref = originalVal !== null && originalVal !== void 0 ? originalVal : originalFromState) !== null && _ref !== void 0 ? _ref : val;
|
|
986
|
+
}
|
|
987
|
+
if (key === "transform" || key in import_helpers.stylePropsTransform) {
|
|
988
|
+
var _styleState1;
|
|
989
|
+
(_styleState1 = styleState).transformAccumulator || (_styleState1.transformAccumulator = (0, import_runtime.createTransformAccumulator)());
|
|
990
|
+
(0, import_runtime.addTransformValue)(styleState.transformAccumulator, key, val);
|
|
991
|
+
} else {
|
|
992
|
+
var out = val;
|
|
993
|
+
if (typeof out === "string") {
|
|
994
|
+
if (out.includes("cqi") || out.includes("cqw")) {
|
|
995
|
+
var _styleState2, _styleState3;
|
|
996
|
+
((_styleState2 = styleState).flatGroupKeys || (_styleState2.flatGroupKeys = /* @__PURE__ */ new Set())).add("@");
|
|
997
|
+
((_styleState3 = styleState).flatGroupMedia || (_styleState3.flatGroupMedia = /* @__PURE__ */ new Set())).add("@");
|
|
998
|
+
}
|
|
999
|
+
out = (0, import_resolveNativeUnits.resolveNativeUnits)(key, out, styleState);
|
|
1000
|
+
}
|
|
1001
|
+
if (staticConfig.isInput && key in import_nativeStyleEngine.nativeTextInputColorProps) viewProps[import_nativeStyleEngine.nativeTextInputColorProps[key]] = out;
|
|
1002
|
+
else {
|
|
1003
|
+
var _styleState4;
|
|
1004
|
+
(_styleState4 = styleState).style || (_styleState4.style = {});
|
|
1005
|
+
styleState.style[key] = out;
|
|
1006
|
+
if (shouldTrackStyleTokenProvenance) recordStyleTokenProvenance(styleState, key, originalVal);
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
810
1009
|
}
|
|
811
1010
|
function recordStyleTokenProvenance(styleState, key, originalVal) {
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
});
|
|
860
|
-
key = key1;
|
|
861
|
-
};
|
|
862
|
-
for (var key in styleIn) _loop(key);
|
|
863
|
-
} finally {
|
|
864
|
-
styleState.props = parentProps;
|
|
865
|
-
}
|
|
866
|
-
if (!avoidMergeTransform) {
|
|
867
|
-
var _styleState_style;
|
|
868
|
-
var parentTransform = (_styleState_style = styleState.style) === null || _styleState_style === void 0 ? void 0 : _styleState_style.transform;
|
|
869
|
-
var flatTransforms = styleState.flatTransforms;
|
|
870
|
-
var styleOutTransform = styleOut.transform;
|
|
871
|
-
if (Array.isArray(styleOutTransform) && styleOutTransform.length) {
|
|
872
|
-
var len = styleOutTransform.length;
|
|
873
|
-
if (Array.isArray(parentTransform)) {
|
|
874
|
-
var merged = [];
|
|
875
|
-
outer: for (var i = 0; i < parentTransform.length; i++) {
|
|
876
|
-
var pt = parentTransform[i];
|
|
877
|
-
for (var pk in pt) {
|
|
878
|
-
for (var j = 0; j < len; j++) for (var sk in styleOutTransform[j]) {
|
|
879
|
-
if (pk === sk) continue outer;
|
|
880
|
-
break;
|
|
881
|
-
}
|
|
882
|
-
merged.push(pt);
|
|
883
|
-
break;
|
|
884
|
-
}
|
|
885
|
-
}
|
|
886
|
-
for (var i1 = 0; i1 < len; i1++) merged.push(styleOutTransform[i1]);
|
|
887
|
-
styleOut.transform = merged;
|
|
888
|
-
}
|
|
889
|
-
if (flatTransforms) outer: for (var fk in flatTransforms) {
|
|
890
|
-
var ck = fk === "x" ? "translateX" : fk === "y" ? "translateY" : fk;
|
|
891
|
-
for (var j1 = 0; j1 < len; j1++) for (var sk1 in styleOutTransform[j1]) {
|
|
892
|
-
if (ck === sk1) continue outer;
|
|
893
|
-
break;
|
|
894
|
-
}
|
|
895
|
-
mergeTransform(styleOut, fk, flatTransforms[fk]);
|
|
896
|
-
}
|
|
897
|
-
} else if (flatTransforms) mergeFlatTransforms(styleOut, flatTransforms);
|
|
898
|
-
}
|
|
899
|
-
if (!styleProps.noNormalize) (0, import_expandStyles.fixStyles)(styleOut);
|
|
900
|
-
if (originalValues && Object.keys(originalValues).length) import_styleOriginalValues.styleOriginalValues.set(styleOut, originalValues);
|
|
901
|
-
return styleOut;
|
|
902
|
-
};
|
|
903
|
-
import_constants.isWeb && (import_react.default.useInsertionEffect || import_constants.useIsomorphicLayoutEffect);
|
|
904
|
-
var useSplitStyles = function (a, b, c, d, e, f, g, h, i, j, k, l, m) {
|
|
905
|
-
"use no memo";
|
|
906
|
-
|
|
907
|
-
return getSplitStyles(a, b, c, d, e, f, g, h, i, j, k, l, m);
|
|
1011
|
+
var _styleState_conf_themes;
|
|
1012
|
+
var tokenName = typeof originalVal === "string" ? originalVal : "";
|
|
1013
|
+
if (tokenName) {
|
|
1014
|
+
var slash = tokenName.lastIndexOf("/");
|
|
1015
|
+
var opacity = slash === -1 ? NaN : Number(tokenName.slice(slash + 1));
|
|
1016
|
+
if (Number.isInteger(opacity) && opacity >= 0 && opacity <= 100) tokenName = tokenName.slice(0, slash);
|
|
1017
|
+
}
|
|
1018
|
+
if (tokenName !== "" && (tokenName in styleState.theme || tokenName in (((_styleState_conf_themes = styleState.conf.themes) === null || _styleState_conf_themes === void 0 ? void 0 : _styleState_conf_themes[styleState.flatThemeName || ""]) || {}) || Object.values(styleState.conf.tokensParsed).some(function(category) {
|
|
1019
|
+
return tokenName in category;
|
|
1020
|
+
}))) {
|
|
1021
|
+
var _styleState;
|
|
1022
|
+
((_styleState = styleState).tokenProvenance || (_styleState.tokenProvenance = {}))[key] = originalVal;
|
|
1023
|
+
} else if (styleState.tokenProvenance && key in styleState.tokenProvenance) delete styleState.tokenProvenance[key];
|
|
1024
|
+
}
|
|
1025
|
+
var resolveStyleObject = function(styleState, styleIn) {
|
|
1026
|
+
var { conf, styleProps } = styleState;
|
|
1027
|
+
var styleOut = {};
|
|
1028
|
+
var originalValues;
|
|
1029
|
+
var styleInOriginalValues = import_styleOriginalValues.styleOriginalValues.get(styleIn);
|
|
1030
|
+
var childState = {
|
|
1031
|
+
...styleState,
|
|
1032
|
+
classNames: {},
|
|
1033
|
+
flatShouldDoClasses: false,
|
|
1034
|
+
props: styleIn,
|
|
1035
|
+
style: styleOut,
|
|
1036
|
+
transformAccumulator: void 0
|
|
1037
|
+
};
|
|
1038
|
+
childState.flatAtomics = void 0;
|
|
1039
|
+
childState.flatSlots = void 0;
|
|
1040
|
+
childState.flatPropertyLayers = void 0;
|
|
1041
|
+
var mergeAccepted = function(_state, key2, value2, disableNormalize, originalValue) {
|
|
1042
|
+
styleOut[key2] = disableNormalize || styleProps.noNormalize ? value2 : (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value2, key2);
|
|
1043
|
+
var _styleInOriginalValues_key;
|
|
1044
|
+
var trackedOriginal = (_styleInOriginalValues_key = styleInOriginalValues === null || styleInOriginalValues === void 0 ? void 0 : styleInOriginalValues[key2]) !== null && _styleInOriginalValues_key !== void 0 ? _styleInOriginalValues_key : originalValue;
|
|
1045
|
+
if (trackedOriginal !== void 0) (originalValues || (originalValues = {}))[key2] = trackedOriginal;
|
|
1046
|
+
};
|
|
1047
|
+
for (var key in styleIn) {
|
|
1048
|
+
var value = styleIn[key];
|
|
1049
|
+
key = conf.shorthands[key] || key;
|
|
1050
|
+
if (key in import_skipProps.skipProps || value == null) continue;
|
|
1051
|
+
contributeValue(childState, key, value);
|
|
1052
|
+
}
|
|
1053
|
+
completeResolvedStyles(childState, mergeAccepted);
|
|
1054
|
+
if (childState.transformAccumulator) styleOut.transform = (0, import_runtime.finalizeTransformAccumulator)(childState.transformAccumulator);
|
|
1055
|
+
if (!styleProps.noNormalize) (0, import_expandStyles.fixStyles)(styleOut);
|
|
1056
|
+
if (originalValues) import_styleOriginalValues.styleOriginalValues.set(styleOut, originalValues);
|
|
1057
|
+
return styleOut;
|
|
908
1058
|
};
|
|
909
|
-
|
|
910
|
-
var
|
|
911
|
-
var
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
1059
|
+
var frameSequence = 0;
|
|
1060
|
+
var recordInline = 1;
|
|
1061
|
+
var recordNormalize = 2;
|
|
1062
|
+
var recordRetract = 4;
|
|
1063
|
+
var recordDefault = 8;
|
|
1064
|
+
var recordCSS = 16;
|
|
1065
|
+
function writeStyleRecord(state, property, value, cursor, original, flags) {
|
|
1066
|
+
var conditionOverride = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : -1;
|
|
1067
|
+
var _state_flatPass;
|
|
1068
|
+
var _direct;
|
|
1069
|
+
var condition = conditionOverride !== -1 ? conditionOverride : cursor ? cursor[conditionValue] : 0;
|
|
1070
|
+
var identity = cursor ? cursor[conditionKey] : "";
|
|
1071
|
+
var slots = (_direct = state).flatSlots || (_direct.flatSlots = /* @__PURE__ */ new Map());
|
|
1072
|
+
var slot = property.startsWith("transition") ? "transition" : property;
|
|
1073
|
+
var list = slots.get(slot);
|
|
1074
|
+
if (!list) slots.set(slot, list = []);
|
|
1075
|
+
for (var index = 0; index < list.length; index++) {
|
|
1076
|
+
var entry = list[index];
|
|
1077
|
+
var entryFlags = entry[7];
|
|
1078
|
+
if ((entryFlags & (recordInline | recordCSS)) !== (flags & (recordInline | recordCSS))) continue;
|
|
1079
|
+
if (entry[0] !== property) continue;
|
|
1080
|
+
if (flags & recordDefault) {
|
|
1081
|
+
if (!(entryFlags & recordDefault) && (!entry[2] || entry[3] === identity)) return;
|
|
1082
|
+
} else if (entryFlags & recordDefault && (!condition || entry[3] === identity)) {
|
|
1083
|
+
list.splice(index--, 1);
|
|
1084
|
+
continue;
|
|
1085
|
+
}
|
|
1086
|
+
if (entry[3] === identity) {
|
|
1087
|
+
list.splice(index, 1);
|
|
1088
|
+
break;
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
list.push([
|
|
1092
|
+
property,
|
|
1093
|
+
value,
|
|
1094
|
+
condition,
|
|
1095
|
+
identity,
|
|
1096
|
+
cursor ? cursor[conditionSelector] : "",
|
|
1097
|
+
cursor ? cursor[conditionWrappers] : void 0,
|
|
1098
|
+
original,
|
|
1099
|
+
flags | (((_state_flatPass = state.flatPass) === null || _state_flatPass === void 0 ? void 0 : _state_flatPass[passSourceLayer]) || 0) << 5
|
|
1100
|
+
]);
|
|
1101
|
+
}
|
|
1102
|
+
function streamWriteInline(state, property, value, cursor, original) {
|
|
1103
|
+
var normalize = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : property === "lineHeight", conditionOverride = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : -1, force = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : false;
|
|
1104
|
+
writeStyleRecord(state, property, value, cursor, original, (normalize ? recordNormalize : 0) | (force ? recordInline : 0), conditionOverride);
|
|
1105
|
+
}
|
|
1106
|
+
function completeResolvedStyles(state) {
|
|
1107
|
+
var merge = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : mergeStyle;
|
|
1108
|
+
var _direct;
|
|
1109
|
+
var direct = state;
|
|
1110
|
+
var shadow = direct.flatWebShadow;
|
|
1111
|
+
if (shadow && (direct.flatBoxShadowSequence || 0) <= shadow[4]) {
|
|
1112
|
+
var offset = shadow[1] || {
|
|
1113
|
+
width: 0,
|
|
1114
|
+
height: 0
|
|
1115
|
+
};
|
|
1116
|
+
var _shadow_;
|
|
1117
|
+
var color = (0, import_normalizeColor.normalizeColor)(shadow[0], (_shadow_ = shadow[2]) !== null && _shadow_ !== void 0 ? _shadow_ : 1);
|
|
1118
|
+
if (color) {
|
|
1119
|
+
var next = `${shadowUnit(offset.width)} ${shadowUnit(offset.height)} ${shadowUnit(shadow[3])} ${color}`;
|
|
1120
|
+
emitProperty(state, "boxShadow", direct.flatBoxShadow ? `${direct.flatBoxShadow}, ${next}` : next, null, shadow[5], shadow[6]);
|
|
1121
|
+
}
|
|
1122
|
+
direct.flatWebShadow = void 0;
|
|
1123
|
+
}
|
|
1124
|
+
if (state.flatShouldDoClasses && state.transformAccumulator) {
|
|
1125
|
+
var transform = (0, import_runtime.finalizeTransformAccumulator)(state.transformAccumulator);
|
|
1126
|
+
state.transformAccumulator = void 0;
|
|
1127
|
+
writeStyleRecord(state, "transform", Array.isArray(transform) ? (0, import_transformsToString.transformsToString)(transform) : transform, null, transform, 0);
|
|
1128
|
+
}
|
|
1129
|
+
var slots = direct.flatSlots;
|
|
1130
|
+
if (!slots) return;
|
|
1131
|
+
var capture = state.staticConfig.isHOC ? (_direct = direct).flatCapturedSlots || (_direct.flatCapturedSlots = /* @__PURE__ */ new Map()) : void 0;
|
|
1132
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
1133
|
+
try {
|
|
1134
|
+
for (var _iterator = slots[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
1135
|
+
var [property, entries] = _step.value;
|
|
1136
|
+
var cssEntries = void 0;
|
|
1137
|
+
var inlineWinner = void 0;
|
|
1138
|
+
var importance = -1;
|
|
1139
|
+
for (var index = 0; index < entries.length; index++) {
|
|
1140
|
+
var entry = entries[index];
|
|
1141
|
+
var flags = entry[7];
|
|
1142
|
+
if (flags & recordCSS || state.flatShouldDoClasses && !(flags & recordInline)) {
|
|
1143
|
+
cssEntries || (cssEntries = []);
|
|
1144
|
+
var precedence = entry[2] ? Math.floor(entry[2] / 256) : -1;
|
|
1145
|
+
var layer = flags >> 5;
|
|
1146
|
+
var index1 = cssEntries.length;
|
|
1147
|
+
while (index1 > 0) {
|
|
1148
|
+
var before = cssEntries[index1 - 1];
|
|
1149
|
+
var beforeLayer = before[7] >> 5;
|
|
1150
|
+
if (beforeLayer < layer || beforeLayer === layer && (before[2] ? Math.floor(before[2] / 256) : -1) <= precedence) break;
|
|
1151
|
+
index1--;
|
|
1152
|
+
}
|
|
1153
|
+
if (index1 === cssEntries.length) cssEntries.push(entry);
|
|
1154
|
+
else cssEntries.splice(index1, 0, entry);
|
|
1155
|
+
} else if (!entry[2] || entry[2] & 1) {
|
|
1156
|
+
var next1 = entry[2] ? Math.floor(entry[2] / 256) : 0;
|
|
1157
|
+
if (next1 >= importance) {
|
|
1158
|
+
importance = next1;
|
|
1159
|
+
inlineWinner = entry;
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
if (cssEntries) {
|
|
1164
|
+
(0, import_getCSSStylesAtomic.registerAtomicSlot)(direct, property, cssEntries);
|
|
1165
|
+
if (capture) {
|
|
1166
|
+
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
|
|
1167
|
+
try {
|
|
1168
|
+
for (var _iterator1 = cssEntries[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
|
|
1169
|
+
var entry1 = _step1.value;
|
|
1170
|
+
entry1[7] = entry1[7] | recordCSS;
|
|
1171
|
+
}
|
|
1172
|
+
} catch (err) {
|
|
1173
|
+
_didIteratorError1 = true;
|
|
1174
|
+
_iteratorError1 = err;
|
|
1175
|
+
} finally {
|
|
1176
|
+
try {
|
|
1177
|
+
if (!_iteratorNormalCompletion1 && _iterator1.return != null) _iterator1.return();
|
|
1178
|
+
} finally {
|
|
1179
|
+
if (_didIteratorError1) throw _iteratorError1;
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
capture.set(property, cssEntries);
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
if (inlineWinner) if (inlineWinner[7] & recordRetract) {
|
|
1186
|
+
if (state.style) delete state.style[inlineWinner[0]];
|
|
1187
|
+
} else merge(state, inlineWinner[0], inlineWinner[1], !(inlineWinner[7] & recordNormalize), inlineWinner[6] !== void 0 ? inlineWinner[6] : inlineWinner[1]);
|
|
1188
|
+
}
|
|
1189
|
+
} catch (err) {
|
|
1190
|
+
_didIteratorError = true;
|
|
1191
|
+
_iteratorError = err;
|
|
1192
|
+
} finally {
|
|
1193
|
+
try {
|
|
1194
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
|
|
1195
|
+
} finally {
|
|
1196
|
+
if (_didIteratorError) throw _iteratorError;
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
direct.flatSlots = void 0;
|
|
1200
|
+
}
|
|
1201
|
+
function emitAtParentCondition(state, property, value, originalValue, contextOnly) {
|
|
1202
|
+
var _state_flatPass;
|
|
1203
|
+
var cursor = (_state_flatPass = state.flatPass) === null || _state_flatPass === void 0 ? void 0 : _state_flatPass[passParentCursor];
|
|
1204
|
+
if (cursor) emitUnderCondition(state, property, value, cursor, originalValue, contextOnly, 0, value);
|
|
1205
|
+
else emitValue(state, property, value, null, originalValue, contextOnly);
|
|
1206
|
+
}
|
|
1207
|
+
function emitUnderCondition(state, property, value, cursor, originalValue, contextOnly, warnMode, warnSource) {
|
|
1208
|
+
var condition = cursor[conditionValue];
|
|
1209
|
+
if (!(condition & conditionResolvedFlag)) {
|
|
1210
|
+
if (warnMode && process.env.NODE_ENV !== "production") (0, import_warnOnce.warnRefusedValue)(property, warnSource, `unknown modifier "${cursor.problem}"`);
|
|
1211
|
+
return 0;
|
|
1212
|
+
}
|
|
1213
|
+
emitValue(state, property, value, cursor, warnMode === 2 ? originalValue : originalValue !== null && originalValue !== void 0 ? originalValue : value, contextOnly);
|
|
1214
|
+
if (condition & 2) {
|
|
1215
|
+
if (condition & 4) state.flatHasEnterStyle = true;
|
|
1216
|
+
if (condition & conditionPlatformPseudoFlag) state.flatHasPlatformPseudo = true;
|
|
1217
|
+
}
|
|
1218
|
+
return condition;
|
|
1219
|
+
}
|
|
1220
|
+
var formatScanFailure = function(failure, source, failureIndex) {
|
|
1221
|
+
return 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 \"(\"";
|
|
929
1222
|
};
|
|
930
|
-
var
|
|
931
|
-
|
|
932
|
-
var _obj;
|
|
933
|
-
if (typeof obj.transform === "string") return;
|
|
934
|
-
(_obj = obj).transform || (_obj.transform = []);
|
|
935
|
-
obj.transform[backwards ? "unshift" : "push"]({
|
|
936
|
-
[mapTransformKeys[key] || key]: val
|
|
937
|
-
});
|
|
1223
|
+
var warnScanFailure = function(property, source, failure, failureIndex) {
|
|
1224
|
+
if (process.env.NODE_ENV === "development") (0, import_warnOnce.warnRefusedValue)(property, source, formatScanFailure(failure, source, failureIndex));
|
|
938
1225
|
};
|
|
939
|
-
var
|
|
940
|
-
|
|
941
|
-
|
|
1226
|
+
var borderTargets = {
|
|
1227
|
+
border: [
|
|
1228
|
+
"Top",
|
|
1229
|
+
"Right",
|
|
1230
|
+
"Bottom",
|
|
1231
|
+
"Left"
|
|
1232
|
+
],
|
|
1233
|
+
borderTop: ["Top"],
|
|
1234
|
+
borderRight: ["Right"],
|
|
1235
|
+
borderBottom: ["Bottom"],
|
|
1236
|
+
borderLeft: ["Left"],
|
|
1237
|
+
outline: [""],
|
|
1238
|
+
borderBlock: ["BlockStart", "BlockEnd"],
|
|
1239
|
+
borderInline: ["InlineStart", "InlineEnd"]
|
|
942
1240
|
};
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
1241
|
+
var valueCacheConf;
|
|
1242
|
+
var valueCacheRevision = -1;
|
|
1243
|
+
var valueCaches = /* @__PURE__ */ new WeakMap();
|
|
1244
|
+
var valueCacheEntries = 0;
|
|
1245
|
+
var valueCacheRoot = {};
|
|
1246
|
+
var parsedSlices = /* @__PURE__ */ new WeakMap();
|
|
1247
|
+
function configuredValue(state, property, raw) {
|
|
1248
|
+
var embedded = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
|
|
1249
|
+
var grammar = (0, import_grammarConfig.getConfigRevisionState)(state.conf);
|
|
1250
|
+
var name = raw;
|
|
1251
|
+
var opacity;
|
|
1252
|
+
var slash = raw.lastIndexOf("/");
|
|
1253
|
+
if (slash > 0) {
|
|
1254
|
+
var amount = Number(raw.slice(slash + 1));
|
|
1255
|
+
if (Number.isInteger(amount) && amount >= 0 && amount <= 100) {
|
|
1256
|
+
name = raw.slice(0, slash);
|
|
1257
|
+
opacity = amount;
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
var safeArea = grammar.safeAreaVariable(name);
|
|
1261
|
+
if (safeArea !== void 0) {
|
|
1262
|
+
state.flatUsesSafeArea = true;
|
|
1263
|
+
return safeArea;
|
|
1264
|
+
}
|
|
1265
|
+
var fontProperty = property.startsWith("font") || property === "lineHeight" || property === "letterSpacing";
|
|
1266
|
+
var resolveValues = state.styleProps.resolveValues;
|
|
1267
|
+
var byRaw;
|
|
1268
|
+
if (!fontProperty) {
|
|
1269
|
+
var _maps;
|
|
1270
|
+
var revision = grammar.revision;
|
|
1271
|
+
if (state.conf !== valueCacheConf || revision !== valueCacheRevision) {
|
|
1272
|
+
valueCacheConf = state.conf;
|
|
1273
|
+
valueCacheRevision = revision;
|
|
1274
|
+
valueCaches = /* @__PURE__ */ new WeakMap();
|
|
1275
|
+
valueCacheEntries = 0;
|
|
1276
|
+
state.flatValueScope = void 0;
|
|
1277
|
+
}
|
|
1278
|
+
var direct = state;
|
|
1279
|
+
var scope = direct.flatValueScope;
|
|
1280
|
+
if (scope === void 0) {
|
|
1281
|
+
var themeObject = state.theme && typeof state.theme === "object" ? state.theme : valueCacheRoot;
|
|
1282
|
+
var byScope = valueCaches.get(themeObject);
|
|
1283
|
+
if (!byScope) valueCaches.set(themeObject, byScope = /* @__PURE__ */ new Map());
|
|
1284
|
+
var scopeKey = `${state.flatThemeName || ""}${resolveValues}`;
|
|
1285
|
+
scope = byScope.get(scopeKey);
|
|
1286
|
+
if (!scope) byScope.set(scopeKey, scope = /* @__PURE__ */ new Map());
|
|
1287
|
+
direct.flatValueScope = scope;
|
|
1288
|
+
}
|
|
1289
|
+
var maps = scope.get(property);
|
|
1290
|
+
if (maps === void 0) scope.set(property, maps = { direct: /* @__PURE__ */ new Map() });
|
|
1291
|
+
byRaw = embedded ? (_maps = maps).embedded || (_maps.embedded = /* @__PURE__ */ new Map()) : maps.direct;
|
|
1292
|
+
var known = byRaw.get(raw);
|
|
1293
|
+
if (known !== void 0 || byRaw.has(raw)) return known;
|
|
1294
|
+
}
|
|
1295
|
+
var lookupName = name.charCodeAt(0) === 36 ? name.slice(1) : name;
|
|
1296
|
+
var value;
|
|
1297
|
+
var fromTheme = false;
|
|
1298
|
+
if (property === "fontFamily") {
|
|
1299
|
+
var _state_conf_fontsParsed_lookupName;
|
|
1300
|
+
value = (_state_conf_fontsParsed_lookupName = state.conf.fontsParsed[lookupName]) === null || _state_conf_fontsParsed_lookupName === void 0 ? void 0 : _state_conf_fontsParsed_lookupName.family;
|
|
1301
|
+
} else {
|
|
1302
|
+
var fontKey = property === "fontSize" ? "size" : property === "fontWeight" ? "weight" : property === "lineHeight" || property === "letterSpacing" ? property : "";
|
|
1303
|
+
if (fontKey) {
|
|
1304
|
+
var _font_fontKey;
|
|
1305
|
+
var font = state.conf.fontsParsed[state.fontFamily || state.conf.defaultFontToken] || state.conf.fontsParsed[state.conf.defaultFontToken];
|
|
1306
|
+
value = font === null || font === void 0 ? void 0 : (_font_fontKey = font[fontKey]) === null || _font_fontKey === void 0 ? void 0 : _font_fontKey[lookupName];
|
|
1307
|
+
} else {
|
|
1308
|
+
var _state_conf_tokensParsed_category;
|
|
1309
|
+
var category = grammar.tokenCategory(property);
|
|
1310
|
+
var dot = lookupName.indexOf(".");
|
|
1311
|
+
if (dot !== -1) {
|
|
1312
|
+
var prefix = lookupName.slice(0, dot);
|
|
1313
|
+
if (!category || prefix === category || prefix === "color") lookupName = lookupName.slice(dot + 1);
|
|
1314
|
+
}
|
|
1315
|
+
value = category ? (_state_conf_tokensParsed_category = state.conf.tokensParsed[category]) === null || _state_conf_tokensParsed_category === void 0 ? void 0 : _state_conf_tokensParsed_category[lookupName] : void 0;
|
|
1316
|
+
if (!value) {
|
|
1317
|
+
var first = lookupName.charCodeAt(0);
|
|
1318
|
+
if (category || !(first >= 48 && first <= 57 || first === 43 || first === 45 || first === 46)) {
|
|
1319
|
+
var _state_theme, _state_conf_themes_, _state_conf_themes;
|
|
1320
|
+
value = ((_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]);
|
|
1321
|
+
fromTheme = !!value;
|
|
1322
|
+
if (!value && !category) {
|
|
1323
|
+
var _state_conf_tokensParsed_space, _state_conf_tokensParsed_color;
|
|
1324
|
+
value = ((_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]);
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
if (process.env.NODE_ENV === "development") {
|
|
1331
|
+
var _state_conf_tokensParsed_color1;
|
|
1332
|
+
var category1 = grammar.tokenCategory(property);
|
|
1333
|
+
if (category1 && category1 !== "color" && ((_state_conf_tokensParsed_color1 = state.conf.tokensParsed.color) === null || _state_conf_tokensParsed_color1 === void 0 ? void 0 : _state_conf_tokensParsed_color1[name])) (0, import_warnOnce.warnOnce)(`"${name}" contributes to "color", not "${property}"`);
|
|
1334
|
+
}
|
|
1335
|
+
var out = raw;
|
|
1336
|
+
if ((0, import_createVariable.isVariable)(value)) {
|
|
1337
|
+
out = resolveValues === "except-theme" && fromTheme ? `${import_themeRef.THEME_REF_PREFIX}${lookupName}${opacity !== void 0 ? `/${opacity}` : ""}` : (0, import_resolveVariableValue.resolveVariableValue)(property, value, resolveValues);
|
|
1338
|
+
if (opacity !== void 0) {
|
|
1339
|
+
var _normalizeColor;
|
|
1340
|
+
out = (_normalizeColor = (0, import_normalizeColor.normalizeColor)(out, opacity / 100)) !== null && _normalizeColor !== void 0 ? _normalizeColor : out;
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
if (embedded && out === raw) {
|
|
1344
|
+
var usedSafeArea = state.flatUsesSafeArea;
|
|
1345
|
+
out = grammar.embeddedTokens(raw, function(word) {
|
|
1346
|
+
return configuredValue(state, property, word);
|
|
1347
|
+
});
|
|
1348
|
+
if (!usedSafeArea && state.flatUsesSafeArea) return out;
|
|
1349
|
+
}
|
|
1350
|
+
if (!fontProperty && !fromTheme) if (valueCacheEntries > 8192) {
|
|
1351
|
+
valueCaches = /* @__PURE__ */ new WeakMap();
|
|
1352
|
+
valueCacheEntries = 0;
|
|
1353
|
+
} else {
|
|
1354
|
+
valueCacheEntries++;
|
|
1355
|
+
byRaw.set(raw, out);
|
|
1356
|
+
}
|
|
1357
|
+
return out;
|
|
1358
|
+
}
|
|
1359
|
+
function ownsSourceLayer(state, property) {
|
|
1360
|
+
var conditional = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
|
|
1361
|
+
var _direct_flatPass;
|
|
1362
|
+
var _direct;
|
|
1363
|
+
var direct = state;
|
|
1364
|
+
var layer = ((_direct_flatPass = direct.flatPass) === null || _direct_flatPass === void 0 ? void 0 : _direct_flatPass[passSourceLayer]) || 0;
|
|
1365
|
+
var layers = (_direct = direct).flatPropertyLayers || (_direct.flatPropertyLayers = /* @__PURE__ */ new Map());
|
|
1366
|
+
var previous = layers.get(property);
|
|
1367
|
+
if (previous !== void 0) {
|
|
1368
|
+
if (previous > layer) return false;
|
|
1369
|
+
if (previous < layer) {
|
|
1370
|
+
if (conditional) return true;
|
|
1371
|
+
clearDirectStyle(state, property);
|
|
1372
|
+
}
|
|
1373
|
+
} else if (conditional) return true;
|
|
1374
|
+
layers.set(property, layer);
|
|
1375
|
+
return true;
|
|
1376
|
+
}
|
|
1377
|
+
function emitProperty(state, property, value, cursor, originalValue, contextOnly) {
|
|
1378
|
+
var _state_animationDriver;
|
|
1379
|
+
var _state, _state1;
|
|
1380
|
+
if (!ownsSourceLayer(state, property, cursor !== null)) return;
|
|
1381
|
+
var direct = state;
|
|
1382
|
+
var condition = cursor ? cursor[conditionValue] : 0;
|
|
1383
|
+
if (condition && (!(condition & 2) || !(condition & 1) && !(import_getCSSStylesAtomic.canGenerateCSS && state.flatShouldDoClasses) && !(cursor[conditionTheme] && import_constants.supportsDynamicColorIOS && (0, import_getDynamicVal.isColorStyleKey)(property)))) return;
|
|
1384
|
+
if (condition & 4) ((_state = state).flatEnterKeys || (_state.flatEnterKeys = /* @__PURE__ */ new Set())).add(property);
|
|
1385
|
+
if (condition & 8) ((_state1 = state).flatExitKeys || (_state1.flatExitKeys = /* @__PURE__ */ new Set())).add(property);
|
|
1386
|
+
var theme = cursor ? cursor[conditionTheme] : "";
|
|
1387
|
+
if (theme) {
|
|
1388
|
+
if (import_constants.supportsDynamicColorIOS && (0, import_getDynamicVal.isColorStyleKey)(property)) {
|
|
1389
|
+
var _direct, _ref, _property;
|
|
1390
|
+
var schemes = (_ref = (_direct = direct).flatDynamicColors || (_direct.flatDynamicColors = {}))[_property = property] || (_ref[_property] = {});
|
|
1391
|
+
schemes[theme] = typeof originalValue === "string" && /^[a-z]+$/i.test(originalValue) ? originalValue : value;
|
|
1392
|
+
streamWriteInline(state, property, { dynamic: { ...schemes } }, cursor, originalValue, true, condition & 1 ? condition : condition + 1);
|
|
1393
|
+
return;
|
|
1394
|
+
}
|
|
1395
|
+
direct.flatDynamicThemeAccess = true;
|
|
1396
|
+
}
|
|
1397
|
+
if (contextOnly) {
|
|
1398
|
+
if (!condition || condition & 1) {
|
|
1399
|
+
var _state3;
|
|
1400
|
+
((_state3 = state).overriddenContextProps || (_state3.overriddenContextProps = {}))[property] = originalValue;
|
|
1401
|
+
}
|
|
1402
|
+
return;
|
|
1403
|
+
}
|
|
1404
|
+
if (import_getCSSStylesAtomic.canGenerateCSS && state.flatShouldDoClasses && !condition && property === "transform") {
|
|
1405
|
+
var _state4;
|
|
1406
|
+
if (process.env.NODE_ENV === "development" && state.transformAccumulator) {
|
|
1407
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
1408
|
+
try {
|
|
1409
|
+
for (var _iterator = (0, import_runtime.getTransformPartKeys)(state.transformAccumulator)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
1410
|
+
var part = _step.value;
|
|
1411
|
+
(0, import_warnOnce.warnOnce)(`legacy transform part "${part}" is dropped because "transform" owns the property`);
|
|
1412
|
+
}
|
|
1413
|
+
} catch (err) {
|
|
1414
|
+
_didIteratorError = true;
|
|
1415
|
+
_iteratorError = err;
|
|
1416
|
+
} finally {
|
|
1417
|
+
try {
|
|
1418
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
|
|
1419
|
+
} finally {
|
|
1420
|
+
if (_didIteratorError) throw _iteratorError;
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1424
|
+
(_state4 = state).transformAccumulator || (_state4.transformAccumulator = (0, import_runtime.createTransformAccumulator)());
|
|
1425
|
+
(0, import_runtime.addTransformValue)(state.transformAccumulator, property, value);
|
|
1426
|
+
return;
|
|
1427
|
+
}
|
|
1428
|
+
var shouldPromoteAnimatedStyle = import_getCSSStylesAtomic.canGenerateCSS && !condition && !state.flatShouldDoClasses && !state.styleProps.noMergeStyle && state.styleProps.isAnimated && ((_state_animationDriver = state.animationDriver) === null || _state_animationDriver === void 0 ? void 0 : _state_animationDriver.inputStyle) === "css" && property in import_helpers.nonAnimatableStyleProps;
|
|
1429
|
+
if (import_getCSSStylesAtomic.canGenerateCSS && (state.flatShouldDoClasses || shouldPromoteAnimatedStyle)) {
|
|
1430
|
+
writeStyleRecord(state, property, value, cursor, originalValue, shouldPromoteAnimatedStyle ? recordCSS : 0);
|
|
1431
|
+
return;
|
|
1432
|
+
}
|
|
1433
|
+
streamWriteInline(state, property, value, cursor, originalValue);
|
|
1434
|
+
}
|
|
1435
|
+
function numericUnitValue(value, first, second) {
|
|
1436
|
+
return value.length > first.length && (value.endsWith(first) || value.endsWith(second)) ? +value.slice(0, -first.length) : NaN;
|
|
1437
|
+
}
|
|
1438
|
+
function resolveNumericValue(value) {
|
|
1439
|
+
var unitValue = numericUnitValue(value, "px", "dp");
|
|
1440
|
+
if (Number.isFinite(unitValue)) return unitValue;
|
|
1441
|
+
var numeric = +value;
|
|
1442
|
+
return Number.isFinite(numeric) ? numeric : value;
|
|
1443
|
+
}
|
|
1444
|
+
function emitBorder(state, property, raw, cursor, originalValue, contextOnly) {
|
|
1445
|
+
if (property === "borderBlock" || property === "borderInline") {
|
|
1446
|
+
if (process.env.NODE_ENV === "development") (0, import_warnOnce.warnOnce)(`RN has no logical border shorthand "${property}"; dropping it`);
|
|
1447
|
+
return;
|
|
1448
|
+
}
|
|
1449
|
+
var { width, style, color } = (0, import_borderComponents.classifyBorderComponents)(raw, property === "outline");
|
|
1450
|
+
if (style === "none" && width === void 0) width = "0";
|
|
1451
|
+
if (width !== void 0) {
|
|
1452
|
+
if (width === "thin") width = "1px";
|
|
1453
|
+
else if (width === "medium") width = "3px";
|
|
1454
|
+
else if (width === "thick") width = "5px";
|
|
1455
|
+
}
|
|
1456
|
+
var targets = borderTargets[property];
|
|
1457
|
+
var prefix = property === "outline" ? "outline" : "border";
|
|
1458
|
+
if (style !== void 0 && property === "border") emitProperty(state, "borderStyle", style, cursor, originalValue, contextOnly);
|
|
1459
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
1460
|
+
try {
|
|
1461
|
+
for (var _iterator = targets[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
1462
|
+
var propBase = `${prefix}${_step.value}`;
|
|
1463
|
+
if (width !== void 0) emitResolved(state, `${propBase}Width`, width, cursor, originalValue, contextOnly);
|
|
1464
|
+
if (style !== void 0 && !(property === "border")) emitProperty(state, `${propBase}Style`, style, cursor, originalValue, contextOnly);
|
|
1465
|
+
if (color !== void 0) emitResolved(state, `${propBase}Color`, color, cursor, originalValue, contextOnly);
|
|
1466
|
+
}
|
|
1467
|
+
} catch (err) {
|
|
1468
|
+
_didIteratorError = true;
|
|
1469
|
+
_iteratorError = err;
|
|
1470
|
+
} finally {
|
|
1471
|
+
try {
|
|
1472
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
|
|
1473
|
+
} finally {
|
|
1474
|
+
if (_didIteratorError) throw _iteratorError;
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
function emitTextDecoration(state, raw, cursor, originalValue, contextOnly) {
|
|
1479
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
1480
|
+
try {
|
|
1481
|
+
for (var _iterator = (0, import_borderComponents.splitComponents)(raw)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
1482
|
+
var part = _step.value;
|
|
1483
|
+
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, cursor, originalValue, contextOnly);
|
|
1484
|
+
}
|
|
1485
|
+
} catch (err) {
|
|
1486
|
+
_didIteratorError = true;
|
|
1487
|
+
_iteratorError = err;
|
|
1488
|
+
} finally {
|
|
1489
|
+
try {
|
|
1490
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
|
|
1491
|
+
} finally {
|
|
1492
|
+
if (_didIteratorError) throw _iteratorError;
|
|
1493
|
+
}
|
|
1494
|
+
}
|
|
984
1495
|
}
|
|
1496
|
+
function emitResolved(state, property, raw, cursor, originalValue, contextOnly) {
|
|
1497
|
+
emitProperty(state, property, resolveValue(state, property, raw), cursor, originalValue, contextOnly);
|
|
1498
|
+
}
|
|
1499
|
+
function resolveValue(state, property, raw) {
|
|
1500
|
+
var value = typeof raw === "string" ? configuredValue(state, property, raw, true) : raw;
|
|
1501
|
+
if (typeof value === "string" && value !== "") value = resolveNumericValue(value);
|
|
1502
|
+
return value;
|
|
1503
|
+
}
|
|
1504
|
+
function shadowUnit(part) {
|
|
1505
|
+
return typeof part === "number" ? `${part}px` : part || "0px";
|
|
1506
|
+
}
|
|
1507
|
+
function emitValue(state, property, raw, cursor, originalValue, contextOnly) {
|
|
1508
|
+
var condition = cursor ? cursor[conditionValue] : 0;
|
|
1509
|
+
var grammar = (0, import_grammarConfig.getConfigRevisionState)(state.conf);
|
|
1510
|
+
if ((0, import_createVariable.isVariable)(raw)) raw = (0, import_resolveVariableValue.resolveVariableValue)(property, raw, state.styleProps.resolveValues);
|
|
1511
|
+
if (typeof raw === "string" && (property === "transition" || property === "transitionProperty")) raw = grammar.normalizeTransition(raw);
|
|
1512
|
+
if ((property === "borderWidth" || property === "borderTopWidth" || property === "borderRightWidth" || property === "borderBottomWidth" || property === "borderLeftWidth") && state.styleProps.noNormalize !== false) writeStyleRecord(state, "borderStyle", "solid", cursor, originalValue, recordDefault);
|
|
1513
|
+
if (grammar.propertyKind(property) === 5) {
|
|
1514
|
+
var value = typeof raw === "string" ? configuredValue(state, property, raw) : raw;
|
|
1515
|
+
if (import_getCSSStylesAtomic.canGenerateCSS && state.flatShouldDoClasses && !condition) {
|
|
1516
|
+
var _state;
|
|
1517
|
+
(_state = state).transformAccumulator || (_state.transformAccumulator = (0, import_runtime.createTransformAccumulator)());
|
|
1518
|
+
(0, import_runtime.addTransformValue)(state.transformAccumulator, property, value);
|
|
1519
|
+
} else if (condition && import_getCSSStylesAtomic.canGenerateCSS && state.flatShouldDoClasses) emitProperty(state, "transform", `${property}(${value})`, cursor, originalValue, contextOnly);
|
|
1520
|
+
else streamWriteInline(state, property, value, cursor, originalValue, true);
|
|
1521
|
+
return;
|
|
1522
|
+
}
|
|
1523
|
+
if (property === "transform") {
|
|
1524
|
+
if (import_getCSSStylesAtomic.canGenerateCSS && state.flatShouldDoClasses && Array.isArray(raw)) raw = (0, import_transformsToString.transformsToString)(raw);
|
|
1525
|
+
if (typeof raw === "string") {
|
|
1526
|
+
var transform = (0, import_parseNativeTransform.parseNativeTransform)(raw);
|
|
1527
|
+
if (transform) {
|
|
1528
|
+
emitProperty(state, property, transform, cursor, originalValue, contextOnly);
|
|
1529
|
+
return;
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
if (typeof raw === "string" && borderTargets[property]) {
|
|
1534
|
+
emitBorder(state, property, raw, cursor, originalValue, contextOnly);
|
|
1535
|
+
return;
|
|
1536
|
+
}
|
|
1537
|
+
if (typeof raw === "string" && property === "textDecoration") {
|
|
1538
|
+
emitTextDecoration(state, raw, cursor, originalValue, contextOnly);
|
|
1539
|
+
return;
|
|
1540
|
+
}
|
|
1541
|
+
if (typeof raw === "string" && property === "background") {
|
|
1542
|
+
var parts = (0, import_borderComponents.splitComponents)(raw);
|
|
1543
|
+
if (parts.length === 1 && !(0, import_borderComponents.startsValueFunction)(parts[0])) {
|
|
1544
|
+
emitResolved(state, "backgroundColor", parts[0], cursor, originalValue, contextOnly);
|
|
1545
|
+
return;
|
|
1546
|
+
}
|
|
1547
|
+
if (process.env.NODE_ENV === "development") (0, import_warnOnce.warnOnce)(`native background cannot represent "${raw}"; dropping it`);
|
|
1548
|
+
return;
|
|
1549
|
+
}
|
|
1550
|
+
if (property === "x" || property === "y" || property === "scale" || property === "scaleX" || property === "scaleY" || property === "rotate") {
|
|
1551
|
+
var value2 = typeof raw === "string" ? configuredValue(state, property, raw) : raw;
|
|
1552
|
+
if (typeof value2 === "string" && !value2.startsWith(import_themeRef.THEME_REF_PREFIX)) {
|
|
1553
|
+
if (property === "rotate" && !Number.isFinite(numericUnitValue(value2, "deg", "rad")) && true) {
|
|
1554
|
+
if (process.env.NODE_ENV === "development") (0, import_warnOnce.warnOnce)(`native transform "${property}" cannot represent "${value2}"; dropping it`);
|
|
1555
|
+
if (condition & 1) {
|
|
1556
|
+
(0, import_runtime.removeTransformValue)(state.transformAccumulator, property);
|
|
1557
|
+
writeStyleRecord(state, property, void 0, cursor, void 0, recordRetract);
|
|
1558
|
+
}
|
|
1559
|
+
return;
|
|
1560
|
+
}
|
|
1561
|
+
value2 = resolveNumericValue(value2);
|
|
1562
|
+
}
|
|
1563
|
+
if (!import_getCSSStylesAtomic.canGenerateCSS || !state.flatShouldDoClasses) {
|
|
1564
|
+
emitProperty(state, property, value2, cursor, originalValue, contextOnly);
|
|
1565
|
+
return;
|
|
1566
|
+
}
|
|
1567
|
+
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"];
|
|
1568
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
1569
|
+
try {
|
|
1570
|
+
for (var _iterator = targets[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
1571
|
+
var target1 = _step.value;
|
|
1572
|
+
var targetValue = value2;
|
|
1573
|
+
if (typeof targetValue === "number") {
|
|
1574
|
+
if (target1 === "--t-x" || target1 === "--t-y") targetValue = `${targetValue}px`;
|
|
1575
|
+
else if (target1 === "rotate") targetValue = `${targetValue}deg`;
|
|
1576
|
+
}
|
|
1577
|
+
emitProperty(state, target1, targetValue, cursor, originalValue, contextOnly);
|
|
1578
|
+
if (target1 === "--t-x" || target1 === "--t-y") (0, import_getCSSStylesAtomic.addComposition)(state, "translate");
|
|
1579
|
+
else if (target1.startsWith("--t-scale")) (0, import_getCSSStylesAtomic.addComposition)(state, "scale");
|
|
1580
|
+
}
|
|
1581
|
+
} catch (err) {
|
|
1582
|
+
_didIteratorError = true;
|
|
1583
|
+
_iteratorError = err;
|
|
1584
|
+
} finally {
|
|
1585
|
+
try {
|
|
1586
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
|
|
1587
|
+
} finally {
|
|
1588
|
+
if (_didIteratorError) throw _iteratorError;
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
return;
|
|
1592
|
+
}
|
|
1593
|
+
var value3 = resolveValue(state, property, raw);
|
|
1594
|
+
if (import_getCSSStylesAtomic.canGenerateCSS && state.flatShouldDoClasses && property === "boxShadow" && !condition) {
|
|
1595
|
+
state.flatBoxShadow = value3;
|
|
1596
|
+
state.flatBoxShadowSequence = frameSequence + 1;
|
|
1597
|
+
}
|
|
1598
|
+
if (typeof value3 === "string" && (property === "backgroundImage" || property === "boxShadow" || property === "textShadow")) {
|
|
1599
|
+
var parsed = (0, import_parseNativeStyle.parseNativeStyle)(property, value3);
|
|
1600
|
+
if (parsed) {
|
|
1601
|
+
if (property === "textShadow") {
|
|
1602
|
+
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = void 0;
|
|
1603
|
+
try {
|
|
1604
|
+
for (var _iterator1 = parsed[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
|
|
1605
|
+
var [key, parsedValue] = _step1.value;
|
|
1606
|
+
emitProperty(state, key, parsedValue, cursor, originalValue, contextOnly);
|
|
1607
|
+
}
|
|
1608
|
+
} catch (err) {
|
|
1609
|
+
_didIteratorError1 = true;
|
|
1610
|
+
_iteratorError1 = err;
|
|
1611
|
+
} finally {
|
|
1612
|
+
try {
|
|
1613
|
+
if (!_iteratorNormalCompletion1 && _iterator1.return != null) _iterator1.return();
|
|
1614
|
+
} finally {
|
|
1615
|
+
if (_didIteratorError1) throw _iteratorError1;
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
} else emitProperty(state, property === "backgroundImage" ? "experimental_backgroundImage" : property, parsed, cursor, originalValue, contextOnly);
|
|
1619
|
+
return;
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1622
|
+
if (property === "fontVariant" && typeof value3 === "string") {
|
|
1623
|
+
var variants = [];
|
|
1624
|
+
var start = 0;
|
|
1625
|
+
for (var index = 0; index <= value3.length; index++) {
|
|
1626
|
+
var code = index === value3.length ? 32 : value3.charCodeAt(index);
|
|
1627
|
+
if (code !== 44 && code > 32) continue;
|
|
1628
|
+
if (start < index) variants.push(value3.slice(start, index));
|
|
1629
|
+
start = index + 1;
|
|
1630
|
+
}
|
|
1631
|
+
value3 = variants;
|
|
1632
|
+
}
|
|
1633
|
+
var expanded = !state.styleProps.noExpand ? (0, import_expandStyle.expandStyle)(property, value3, state.conf.settings.styleCompat || "web") : null;
|
|
1634
|
+
if (!expanded) {
|
|
1635
|
+
emitProperty(state, property, value3, cursor, originalValue, contextOnly);
|
|
1636
|
+
return;
|
|
1637
|
+
}
|
|
1638
|
+
if (typeof raw === "string" && expanded.length > 1) {
|
|
1639
|
+
var parts1 = (0, import_borderComponents.splitComponents)(raw);
|
|
1640
|
+
if (parts1.length > 0 && parts1.length <= (expanded.length === 4 ? 4 : 2)) {
|
|
1641
|
+
for (var index1 = 0; index1 < expanded.length; index1++) {
|
|
1642
|
+
var partIndex = index1 === 0 || parts1.length === 1 ? 0 : index1 === 1 || index1 === 3 && parts1.length < 4 ? 1 : index1 === 2 && parts1.length < 3 ? 0 : index1;
|
|
1643
|
+
emitResolved(state, expanded[index1][0], parts1[partIndex], cursor, originalValue, contextOnly);
|
|
1644
|
+
}
|
|
1645
|
+
return;
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
for (var index2 = 0; index2 < expanded.length; index2++) emitProperty(state, expanded[index2][0], expanded[index2][1], cursor, originalValue, contextOnly);
|
|
1649
|
+
}
|
|
1650
|
+
function emitConditionalValue(state, property, payload, condition, source, sink, mode, contextOnly) {
|
|
1651
|
+
if (sink) sink(payload, condition, source);
|
|
1652
|
+
else if (condition) emitUnderCondition(state, property, payload, condition, mode === 2 ? payload : void 0, contextOnly, mode, source);
|
|
1653
|
+
else emitValue(state, property, payload, null, payload, contextOnly);
|
|
1654
|
+
}
|
|
1655
|
+
function walkConditionalValue(state, property, value, parent, sink) {
|
|
1656
|
+
var warnMode = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 0, contextOnly = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : false;
|
|
1657
|
+
var parentCondition = parent || null;
|
|
1658
|
+
var hasBase = false;
|
|
1659
|
+
var conditions = 0;
|
|
1660
|
+
var lastPayload = "";
|
|
1661
|
+
if (typeof value === "string") {
|
|
1662
|
+
var parsed = (0, import_grammarConfig.getConfigRevisionState)(state.conf).parseFlatValue(value);
|
|
1663
|
+
var [segments, failure, failureIndex] = parsed;
|
|
1664
|
+
var slices = parsedSlices.get(parsed);
|
|
1665
|
+
if (slices === void 0) parsedSlices.set(parsed, slices = []);
|
|
1666
|
+
var chainCount = segments.length / 5 - 1;
|
|
1667
|
+
if (property === "aspectRatio" && chainCount === 1) {
|
|
1668
|
+
var left = Number(value.slice(segments[7], segments[8]));
|
|
1669
|
+
var right = Number(value.slice(segments[5], segments[6]));
|
|
1670
|
+
if (left > 0 && right > 0 && Number.isFinite(left) && Number.isFinite(right)) return false;
|
|
1671
|
+
}
|
|
1672
|
+
for (var index = 0; index < segments.length; index += 5) {
|
|
1673
|
+
var start = segments[index];
|
|
1674
|
+
var end = segments[index + 1];
|
|
1675
|
+
var flags = segments[index + 4];
|
|
1676
|
+
if (!(flags & 1)) continue;
|
|
1677
|
+
if (start === end) continue;
|
|
1678
|
+
if (flags & 2) {
|
|
1679
|
+
var _slices, _index;
|
|
1680
|
+
var _;
|
|
1681
|
+
var payload = (_ = (_slices = slices)[_index = index]) !== null && _ !== void 0 ? _ : _slices[_index] = value.slice(start, end);
|
|
1682
|
+
emitConditionalValue(state, property, payload, parentCondition, payload, sink, warnMode, contextOnly);
|
|
1683
|
+
hasBase = true;
|
|
1684
|
+
} else if (process.env.NODE_ENV !== "production" && warnMode && !chainCount && (failure === "invalid-character" || failure === "stray-comment-close")) {
|
|
1685
|
+
emitConditionalValue(state, property, value, parentCondition, value, sink, warnMode, contextOnly);
|
|
1686
|
+
hasBase = true;
|
|
1687
|
+
} else if (warnMode) warnScanFailure(property, value, failure, failureIndex);
|
|
1688
|
+
}
|
|
1689
|
+
var lastPayloadStart = 0;
|
|
1690
|
+
for (var index1 = 0; index1 < segments.length; index1 += 5) {
|
|
1691
|
+
var _slices1, _ref;
|
|
1692
|
+
var start1 = segments[index1];
|
|
1693
|
+
var end1 = segments[index1 + 1];
|
|
1694
|
+
var flags1 = segments[index1 + 4];
|
|
1695
|
+
if (flags1 & 1) continue;
|
|
1696
|
+
if (!(flags1 & 4) || !(flags1 & 2)) {
|
|
1697
|
+
if (warnMode) warnScanFailure(property, value, failure, failureIndex);
|
|
1698
|
+
continue;
|
|
1699
|
+
}
|
|
1700
|
+
lastPayloadStart = start1;
|
|
1701
|
+
if (start1 === end1) {
|
|
1702
|
+
if (warnMode && process.env.NODE_ENV === "development") (0, import_warnOnce.warnRefusedValue)(property, value, "a conditional clause has no value");
|
|
1703
|
+
continue;
|
|
1704
|
+
}
|
|
1705
|
+
var _1;
|
|
1706
|
+
var cursor = conditionFromKey(state, (_1 = (_slices1 = slices)[_ref = index1 + 2]) !== null && _1 !== void 0 ? _1 : _slices1[_ref] = value.slice(segments[index1 + 2], segments[index1 + 3]), parentCondition);
|
|
1707
|
+
conditions |= cursor[conditionValue];
|
|
1708
|
+
if (cursor[conditionValue] & conditionResolvedFlag || warnMode) {
|
|
1709
|
+
var _slices2, _index1;
|
|
1710
|
+
var _2;
|
|
1711
|
+
emitConditionalValue(state, property, (_2 = (_slices2 = slices)[_index1 = index1]) !== null && _2 !== void 0 ? _2 : _slices2[_index1] = value.slice(start1, end1), cursor, value, sink, warnMode, contextOnly);
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
if (process.env.NODE_ENV !== "production") lastPayload = value.slice(lastPayloadStart);
|
|
1715
|
+
} else {
|
|
1716
|
+
if (!value || typeof value !== "object" || Array.isArray(value) || (0, import_createVariable.isVariable)(value) || !classifyConditionalObject(value, state)) return false;
|
|
1717
|
+
if (value.default != null) {
|
|
1718
|
+
emitConditionalValue(state, property, value.default, parentCondition, value.default, sink, warnMode, contextOnly);
|
|
1719
|
+
hasBase = true;
|
|
1720
|
+
}
|
|
1721
|
+
for (var key in value) {
|
|
1722
|
+
if (key === "default" || value[key] == null) continue;
|
|
1723
|
+
var cursor1 = conditionFromKey(state, key, parentCondition);
|
|
1724
|
+
conditions |= cursor1[conditionValue];
|
|
1725
|
+
if (cursor1[conditionValue] & conditionResolvedFlag || warnMode) emitConditionalValue(state, property, value[key], cursor1, value[key], sink, warnMode, contextOnly);
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
if (warnMode && process.env.NODE_ENV === "development" && typeof value === "string" && !hasBase && conditions && (0, import_grammarConfig.getConfigRevisionState)(state.conf).tokenCategory(property) && (0, import_borderComponents.splitComponents)(lastPayload).length > 1) (0, import_warnOnce.warnOnce)(`${property}="${value}" has multiple values after its first conditional. Write the base value before the first conditional.`);
|
|
1729
|
+
if (warnMode === 1 && (!import_getCSSStylesAtomic.canGenerateCSS || !state.flatShouldDoClasses) && conditions & 12 && !hasBase) {
|
|
1730
|
+
var _state_flatPropertyLayers;
|
|
1731
|
+
var resting = property === "opacity" || property.startsWith("scale") ? 1 : property === "rotate" ? "0deg" : property === "x" || property === "y" ? 0 : null;
|
|
1732
|
+
if (resting !== null && !((_state_flatPropertyLayers = state.flatPropertyLayers) === null || _state_flatPropertyLayers === void 0 ? void 0 : _state_flatPropertyLayers.has(property))) emitConditionalValue(state, property, resting, parentCondition, resting, sink, warnMode, contextOnly);
|
|
1733
|
+
}
|
|
1734
|
+
return true;
|
|
1735
|
+
}
|
|
1736
|
+
function contributeValue(state, property, value, originalValue) {
|
|
1737
|
+
var contextOnly = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false, condition = arguments.length > 5 ? arguments[5] : void 0;
|
|
1738
|
+
var _state_flatPass;
|
|
1739
|
+
if (condition !== void 0) {
|
|
1740
|
+
var _directState_flatPass;
|
|
1741
|
+
var parent = ((_directState_flatPass = state.flatPass) === null || _directState_flatPass === void 0 ? void 0 : _directState_flatPass[passParentCursor]) || null;
|
|
1742
|
+
var effective;
|
|
1743
|
+
if (typeof condition === "string") effective = conditionFromKey(state, condition, parent);
|
|
1744
|
+
else if (parent) {
|
|
1745
|
+
effective = conditionFromKey(state, condition[conditionKey], parent);
|
|
1746
|
+
if (!(condition[conditionValue] & conditionResolvedFlag)) setConditionUnresolved(effective);
|
|
1747
|
+
commitCondition(effective);
|
|
1748
|
+
} else effective = condition;
|
|
1749
|
+
if (typeof value !== "string" && walkConditionalValue(state, property, value, effective, null, 2, contextOnly)) return true;
|
|
1750
|
+
emitUnderCondition(state, property, value, effective, originalValue, contextOnly, 2, value);
|
|
1751
|
+
return true;
|
|
1752
|
+
}
|
|
1753
|
+
var compositeKind = 0;
|
|
1754
|
+
if (compositeKind > 0 && compositeKind < 6 && (typeof value === "string" && value.indexOf(":") !== -1 || value && typeof value === "object" && !Array.isArray(value) && !(0, import_createVariable.isVariable)(value) && classifyConditionalObject(value, state))) {
|
|
1755
|
+
if (process.env.NODE_ENV === "development") (0, import_warnOnce.warnOnce)(`conditional "${property}" needs its composite property; dropping it`);
|
|
1756
|
+
return true;
|
|
1757
|
+
}
|
|
1758
|
+
if (value === "safe") {
|
|
1759
|
+
var expanded = (0, import_grammarConfig.getConfigRevisionState)(state.conf).expandSafeArea(property);
|
|
1760
|
+
if (expanded) {
|
|
1761
|
+
state.flatUsesSafeArea = true;
|
|
1762
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
1763
|
+
try {
|
|
1764
|
+
for (var _iterator = expanded[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
1765
|
+
var [key, resolved] = _step.value;
|
|
1766
|
+
emitAtParentCondition(state, key, resolved, originalValue !== null && originalValue !== void 0 ? originalValue : value, contextOnly);
|
|
1767
|
+
}
|
|
1768
|
+
} catch (err) {
|
|
1769
|
+
_didIteratorError = true;
|
|
1770
|
+
_iteratorError = err;
|
|
1771
|
+
} finally {
|
|
1772
|
+
try {
|
|
1773
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
|
|
1774
|
+
} finally {
|
|
1775
|
+
if (_didIteratorError) throw _iteratorError;
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1778
|
+
return true;
|
|
1779
|
+
}
|
|
1780
|
+
}
|
|
1781
|
+
if (walkConditionalValue(state, property, value, ((_state_flatPass = state.flatPass) === null || _state_flatPass === void 0 ? void 0 : _state_flatPass[passParentCursor]) || null, null, 1, contextOnly)) return true;
|
|
1782
|
+
if (value != null) {
|
|
1783
|
+
emitAtParentCondition(state, property, value, originalValue !== null && originalValue !== void 0 ? originalValue : value, contextOnly);
|
|
1784
|
+
return true;
|
|
1785
|
+
}
|
|
1786
|
+
return false;
|
|
1787
|
+
}
|
|
1788
|
+
function clearDirectStyle(state, property) {
|
|
1789
|
+
var _direct_flatAtomics;
|
|
1790
|
+
var direct = state;
|
|
1791
|
+
var propertyKind = (0, import_grammarConfig.getConfigRevisionState)(state.conf).propertyKind(property);
|
|
1792
|
+
var atomicKey = property.startsWith("transition") ? "transition" : propertyKind > 0 && propertyKind < 5 ? "boxShadow" : propertyKind === 6 ? "textShadow" : propertyKind === 5 ? "transform" : property;
|
|
1793
|
+
var slot = atomicKey;
|
|
1794
|
+
(_direct_flatAtomics = direct.flatAtomics) === null || _direct_flatAtomics === void 0 || _direct_flatAtomics.delete(slot);
|
|
1795
|
+
if (direct.flatSlots) {
|
|
1796
|
+
if (slot !== atomicKey) {
|
|
1797
|
+
var entries = direct.flatSlots.get(slot);
|
|
1798
|
+
if (entries) {
|
|
1799
|
+
for (var index = entries.length; index--;) if (entries[index][0] === atomicKey) entries.splice(index, 1);
|
|
1800
|
+
}
|
|
1801
|
+
}
|
|
1802
|
+
direct.flatSlots.delete(atomicKey);
|
|
1803
|
+
}
|
|
1804
|
+
if (atomicKey === "transform") state.transformAccumulator = void 0;
|
|
1805
|
+
if (state.style) delete state.style[atomicKey];
|
|
1806
|
+
delete state.classNames[atomicKey];
|
|
1807
|
+
delete state.classNames[slot];
|
|
1808
|
+
}
|
|
1809
|
+
function emitVariantStyle(state, key, value, original, condition, disabled) {
|
|
1810
|
+
var _state_flatCallerVariantKeys, _state_flatStyleStaticConfig_styledContextKeys;
|
|
1811
|
+
var pass = state.flatPass;
|
|
1812
|
+
if (key !== pass[passMapSourceKey] && ((_state_flatCallerVariantKeys = state.flatCallerVariantKeys) === null || _state_flatCallerVariantKeys === void 0 ? void 0 : _state_flatCallerVariantKeys.has(key))) return;
|
|
1813
|
+
if ((_state_flatStyleStaticConfig_styledContextKeys = state.flatStyleStaticConfig.styledContextKeys) === null || _state_flatStyleStaticConfig_styledContextKeys === void 0 ? void 0 : _state_flatStyleStaticConfig_styledContextKeys.has(key)) {
|
|
1814
|
+
var _state, _state1;
|
|
1815
|
+
((_state = state).overriddenContextProps || (_state.overriddenContextProps = {}))[key] = ((_state1 = state).originalContextPropValues || (_state1.originalContextPropValues = {}))[key] = original;
|
|
1816
|
+
}
|
|
1817
|
+
var parent = pass[passParentCursor];
|
|
1818
|
+
pass[passParentCursor] = condition;
|
|
1819
|
+
contributeProp(pass, key, value, original, disabled);
|
|
1820
|
+
pass[passParentCursor] = parent;
|
|
1821
|
+
}
|
|
1822
|
+
function getFontFamilyFromNameOrVariable(input, conf) {
|
|
1823
|
+
if ((0, import_createVariable.isVariable)(input)) {
|
|
1824
|
+
var val = variableToFontNameCache.get(input);
|
|
1825
|
+
if (val) return val;
|
|
1826
|
+
for (var key in conf.fontsParsed) {
|
|
1827
|
+
var familyVariable = conf.fontsParsed[key].family;
|
|
1828
|
+
if ((0, import_createVariable.isVariable)(familyVariable)) {
|
|
1829
|
+
variableToFontNameCache.set(familyVariable, key);
|
|
1830
|
+
if (familyVariable === input) return key;
|
|
1831
|
+
}
|
|
1832
|
+
}
|
|
1833
|
+
} else if (typeof input === "string" && input in conf.fontsParsed) return input;
|
|
1834
|
+
}
|
|
1835
|
+
var variableToFontNameCache = /* @__PURE__ */ new WeakMap();
|
|
1836
|
+
|
|
985
1837
|
//# sourceMappingURL=getSplitStyles.native.js.map
|