@tamagui/web 3.0.0-beta.669.1 → 3.0.0-beta.728.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 +0 -1
- package/dist/cjs/Tamagui.native.cjs +0 -1
- package/dist/cjs/Tamagui.native.js +0 -1
- package/dist/cjs/Tamagui.native.js.map +1 -1
- package/dist/cjs/_withNativeStyle.cjs +0 -1
- package/dist/cjs/_withNativeStyle.native.cjs +0 -1
- package/dist/cjs/_withNativeStyle.native.js +0 -1
- package/dist/cjs/_withNativeStyle.native.js.map +1 -1
- package/dist/cjs/_withStableStyle.cjs +0 -1
- package/dist/cjs/_withStableStyle.native.cjs +0 -1
- package/dist/cjs/_withStableStyle.native.js +0 -1
- package/dist/cjs/_withStableStyle.native.js.map +1 -1
- package/dist/cjs/config.cjs +7 -1
- package/dist/cjs/config.native.cjs +7 -1
- package/dist/cjs/config.native.js +7 -1
- package/dist/cjs/config.native.js.map +1 -1
- package/dist/cjs/constants/accessibilityDirectMap.cjs +0 -1
- package/dist/cjs/constants/accessibilityDirectMap.native.cjs +0 -1
- package/dist/cjs/constants/accessibilityDirectMap.native.js +0 -1
- package/dist/cjs/constants/accessibilityDirectMap.native.js.map +1 -1
- package/dist/cjs/constants/constants.cjs +0 -1
- package/dist/cjs/constants/constants.native.cjs +0 -1
- package/dist/cjs/constants/constants.native.js +0 -1
- package/dist/cjs/constants/constants.native.js.map +1 -1
- package/dist/cjs/constants/isDevTools.cjs +0 -1
- package/dist/cjs/constants/isDevTools.native.cjs +0 -1
- package/dist/cjs/constants/isDevTools.native.js +0 -1
- package/dist/cjs/constants/isDevTools.native.js.map +1 -1
- package/dist/cjs/contexts/ComponentContext.cjs +0 -1
- package/dist/cjs/contexts/ComponentContext.native.cjs +0 -1
- package/dist/cjs/contexts/ComponentContext.native.js +0 -1
- package/dist/cjs/contexts/ComponentContext.native.js.map +1 -1
- package/dist/cjs/contexts/GroupContext.cjs +0 -1
- package/dist/cjs/contexts/GroupContext.native.cjs +0 -1
- package/dist/cjs/contexts/GroupContext.native.js +0 -1
- package/dist/cjs/contexts/GroupContext.native.js.map +1 -1
- package/dist/cjs/createComponent.cjs +1 -2
- package/dist/cjs/createComponent.native.cjs +1 -2
- package/dist/cjs/createComponent.native.js +1 -2
- package/dist/cjs/createComponent.native.js.map +1 -1
- package/dist/cjs/createFont.cjs +0 -1
- package/dist/cjs/createFont.native.cjs +0 -1
- package/dist/cjs/createFont.native.js +0 -1
- package/dist/cjs/createFont.native.js.map +1 -1
- package/dist/cjs/createShorthands.cjs +0 -1
- package/dist/cjs/createShorthands.native.cjs +0 -1
- package/dist/cjs/createShorthands.native.js +0 -1
- package/dist/cjs/createShorthands.native.js.map +1 -1
- package/dist/cjs/createStyledHOC.cjs +0 -1
- package/dist/cjs/createStyledHOC.native.cjs +0 -1
- package/dist/cjs/createStyledHOC.native.js +0 -1
- package/dist/cjs/createStyledHOC.native.js.map +1 -1
- package/dist/cjs/createTamagui.cjs +3 -4
- package/dist/cjs/createTamagui.native.cjs +3 -4
- package/dist/cjs/createTamagui.native.js +3 -4
- package/dist/cjs/createTamagui.native.js.map +1 -1
- package/dist/cjs/createTokens.cjs +0 -1
- package/dist/cjs/createTokens.native.cjs +0 -1
- package/dist/cjs/createTokens.native.js +0 -1
- package/dist/cjs/createTokens.native.js.map +1 -1
- package/dist/cjs/createVariable.cjs +0 -1
- package/dist/cjs/createVariable.native.cjs +0 -1
- package/dist/cjs/createVariable.native.js +0 -1
- package/dist/cjs/createVariable.native.js.map +1 -1
- package/dist/cjs/createVariables.cjs +0 -1
- package/dist/cjs/createVariables.native.cjs +0 -1
- package/dist/cjs/createVariables.native.js +0 -1
- package/dist/cjs/createVariables.native.js.map +1 -1
- package/dist/cjs/defaultComponentState.cjs +0 -1
- package/dist/cjs/defaultComponentState.native.cjs +0 -1
- package/dist/cjs/defaultComponentState.native.js +0 -1
- package/dist/cjs/defaultComponentState.native.js.map +1 -1
- package/dist/cjs/dom/adapters.cjs +0 -1
- package/dist/cjs/dom/adapters.native.cjs +0 -1
- package/dist/cjs/dom/adapters.native.js +0 -1
- package/dist/cjs/dom/adapters.native.js.map +1 -1
- package/dist/cjs/dom/contract.cjs +0 -1
- package/dist/cjs/dom/contract.native.cjs +0 -1
- package/dist/cjs/dom/contract.native.js +0 -1
- package/dist/cjs/dom/contract.native.js.map +1 -1
- package/dist/cjs/dom/domEventProps.native.cjs +0 -1
- package/dist/cjs/dom/domEventProps.native.js +0 -1
- package/dist/cjs/dom/domEventProps.native.js.map +1 -1
- package/dist/cjs/dom/html.cjs +0 -1
- package/dist/cjs/dom/html.native.cjs +0 -1
- package/dist/cjs/dom/html.native.js +0 -1
- package/dist/cjs/dom/html.native.js.map +1 -1
- package/dist/cjs/dom/htmlRuntime.native.cjs +0 -1
- package/dist/cjs/dom/htmlRuntime.native.js +0 -1
- package/dist/cjs/dom/htmlRuntime.native.js.map +1 -1
- package/dist/cjs/dom/index.cjs +0 -1
- package/dist/cjs/dom/index.native.cjs +0 -1
- package/dist/cjs/dom/index.native.js +0 -1
- package/dist/cjs/dom/index.native.js.map +1 -1
- package/dist/cjs/dom/primitives.native.cjs +2 -3
- package/dist/cjs/dom/primitives.native.js +2 -3
- package/dist/cjs/dom/primitives.native.js.map +1 -1
- package/dist/cjs/dom/standalone.cjs +0 -1
- package/dist/cjs/dom/standalone.native.cjs +0 -1
- package/dist/cjs/dom/standalone.native.js +0 -1
- package/dist/cjs/dom/standalone.native.js.map +1 -1
- package/dist/cjs/dom/standaloneHtml.cjs +0 -1
- package/dist/cjs/dom/standaloneHtml.native.cjs +0 -1
- package/dist/cjs/dom/standaloneHtml.native.js +0 -1
- package/dist/cjs/dom/standaloneHtml.native.js.map +1 -1
- package/dist/cjs/dom/styleTypes.cjs +0 -1
- package/dist/cjs/dom/styleTypes.native.cjs +0 -1
- package/dist/cjs/dom/styleTypes.native.js +0 -1
- package/dist/cjs/dom/styleTypes.native.js.map +1 -1
- package/dist/cjs/eventDetails.cjs +0 -1
- package/dist/cjs/eventDetails.native.cjs +0 -1
- package/dist/cjs/eventDetails.native.js +0 -1
- package/dist/cjs/eventDetails.native.js.map +1 -1
- package/dist/cjs/eventHandling.cjs +0 -1
- package/dist/cjs/eventHandling.native.cjs +0 -1
- package/dist/cjs/eventHandling.native.js +0 -1
- package/dist/cjs/eventHandling.native.js.map +1 -1
- package/dist/cjs/helpers/componentDisplayName.cjs +0 -1
- package/dist/cjs/helpers/componentDisplayName.native.cjs +0 -1
- package/dist/cjs/helpers/componentDisplayName.native.js +0 -1
- package/dist/cjs/helpers/componentDisplayName.native.js.map +1 -1
- package/dist/cjs/helpers/configVariables.cjs +79 -0
- package/dist/cjs/helpers/configVariables.native.cjs +86 -0
- package/dist/cjs/helpers/configVariables.native.js +88 -0
- package/dist/cjs/helpers/configVariables.native.js.map +1 -0
- package/dist/cjs/helpers/consoleLog.native.cjs +0 -1
- package/dist/cjs/helpers/consoleLog.native.js +0 -1
- package/dist/cjs/helpers/consoleLog.native.js.map +1 -1
- package/dist/cjs/helpers/createDesignSystem.cjs +0 -1
- package/dist/cjs/helpers/createDesignSystem.native.cjs +0 -1
- package/dist/cjs/helpers/createDesignSystem.native.js +0 -1
- package/dist/cjs/helpers/createDesignSystem.native.js.map +1 -1
- package/dist/cjs/helpers/createStyledContext.cjs +0 -1
- package/dist/cjs/helpers/createStyledContext.native.cjs +0 -1
- package/dist/cjs/helpers/createStyledContext.native.js +0 -1
- package/dist/cjs/helpers/createStyledContext.native.js.map +1 -1
- package/dist/cjs/helpers/defaultAnimationDriver.cjs +1 -6
- package/dist/cjs/helpers/defaultAnimationDriver.native.cjs +0 -13
- package/dist/cjs/helpers/defaultAnimationDriver.native.js +0 -13
- package/dist/cjs/helpers/defaultAnimationDriver.native.js.map +1 -1
- package/dist/cjs/helpers/defaultOffset.cjs +0 -1
- package/dist/cjs/helpers/defaultOffset.native.cjs +0 -1
- package/dist/cjs/helpers/defaultOffset.native.js +0 -1
- package/dist/cjs/helpers/defaultOffset.native.js.map +1 -1
- package/dist/cjs/helpers/directStyle.cjs +258 -284
- package/dist/cjs/helpers/directStyle.native.cjs +274 -306
- package/dist/cjs/helpers/directStyle.native.js +274 -306
- package/dist/cjs/helpers/directStyle.native.js.map +1 -1
- package/dist/cjs/helpers/expandStyle.cjs +0 -1
- package/dist/cjs/helpers/expandStyle.native.cjs +0 -1
- package/dist/cjs/helpers/expandStyle.native.js +0 -1
- package/dist/cjs/helpers/expandStyle.native.js.map +1 -1
- package/dist/cjs/helpers/expandStyles.cjs +0 -1
- package/dist/cjs/helpers/expandStyles.native.cjs +0 -1
- package/dist/cjs/helpers/expandStyles.native.js +0 -1
- package/dist/cjs/helpers/expandStyles.native.js.map +1 -1
- package/dist/cjs/helpers/extractPseudoState.cjs +0 -1
- package/dist/cjs/helpers/extractPseudoState.native.cjs +0 -1
- package/dist/cjs/helpers/extractPseudoState.native.js +0 -1
- package/dist/cjs/helpers/extractPseudoState.native.js.map +1 -1
- package/dist/cjs/helpers/formatDiagnostic.cjs +0 -1
- package/dist/cjs/helpers/formatDiagnostic.native.cjs +0 -1
- package/dist/cjs/helpers/formatDiagnostic.native.js +0 -1
- package/dist/cjs/helpers/formatDiagnostic.native.js.map +1 -1
- package/dist/cjs/helpers/frontendProgram.cjs +0 -1
- package/dist/cjs/helpers/frontendProgram.native.cjs +0 -1
- package/dist/cjs/helpers/frontendProgram.native.js +0 -1
- package/dist/cjs/helpers/frontendProgram.native.js.map +1 -1
- package/dist/cjs/helpers/getCSSStylesAtomic.cjs +5 -2
- package/dist/cjs/helpers/getCSSStylesAtomic.native.cjs +0 -1
- package/dist/cjs/helpers/getCSSStylesAtomic.native.js +0 -1
- package/dist/cjs/helpers/getCSSStylesAtomic.native.js.map +1 -1
- package/dist/cjs/helpers/getDefaultProps.cjs +0 -1
- package/dist/cjs/helpers/getDefaultProps.native.cjs +0 -1
- package/dist/cjs/helpers/getDefaultProps.native.js +0 -1
- package/dist/cjs/helpers/getDefaultProps.native.js.map +1 -1
- package/dist/cjs/helpers/getDynamicVal.cjs +0 -1
- package/dist/cjs/helpers/getDynamicVal.native.cjs +0 -1
- package/dist/cjs/helpers/getDynamicVal.native.js +0 -1
- package/dist/cjs/helpers/getDynamicVal.native.js.map +1 -1
- package/dist/cjs/helpers/getExpandedShorthands.cjs +0 -1
- package/dist/cjs/helpers/getExpandedShorthands.native.cjs +0 -1
- package/dist/cjs/helpers/getExpandedShorthands.native.js +0 -1
- package/dist/cjs/helpers/getExpandedShorthands.native.js.map +1 -1
- package/dist/cjs/helpers/getFontLanguage.cjs +0 -1
- package/dist/cjs/helpers/getFontLanguage.native.cjs +0 -1
- package/dist/cjs/helpers/getFontLanguage.native.js +0 -1
- package/dist/cjs/helpers/getFontLanguage.native.js.map +1 -1
- package/dist/cjs/helpers/getShorthandValue.cjs +0 -1
- package/dist/cjs/helpers/getShorthandValue.native.cjs +0 -1
- package/dist/cjs/helpers/getShorthandValue.native.js +0 -1
- package/dist/cjs/helpers/getShorthandValue.native.js.map +1 -1
- package/dist/cjs/helpers/getSplitStyles.cjs +2 -10
- package/dist/cjs/helpers/getSplitStyles.native.cjs +2 -10
- package/dist/cjs/helpers/getSplitStyles.native.js +2 -10
- package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/cjs/helpers/getThemeCSSRules.cjs +0 -1
- package/dist/cjs/helpers/getThemeCSSRules.native.cjs +0 -1
- package/dist/cjs/helpers/getThemeCSSRules.native.js +0 -1
- package/dist/cjs/helpers/getThemeCSSRules.native.js.map +1 -1
- package/dist/cjs/helpers/getVariantExtras.cjs +0 -1
- package/dist/cjs/helpers/getVariantExtras.native.cjs +0 -1
- package/dist/cjs/helpers/getVariantExtras.native.js +0 -1
- package/dist/cjs/helpers/getVariantExtras.native.js.map +1 -1
- package/dist/cjs/helpers/grammarConfig.cjs +63 -14
- package/dist/cjs/helpers/grammarConfig.native.cjs +84 -18
- package/dist/cjs/helpers/grammarConfig.native.js +84 -18
- package/dist/cjs/helpers/grammarConfig.native.js.map +1 -1
- package/dist/cjs/helpers/insertStyleRule.cjs +0 -1
- package/dist/cjs/helpers/insertStyleRule.native.cjs +0 -1
- package/dist/cjs/helpers/insertStyleRule.native.js +0 -1
- package/dist/cjs/helpers/insertStyleRule.native.js.map +1 -1
- package/dist/cjs/helpers/isObj.cjs +0 -1
- package/dist/cjs/helpers/isObj.native.cjs +0 -1
- package/dist/cjs/helpers/isObj.native.js +0 -1
- package/dist/cjs/helpers/isObj.native.js.map +1 -1
- package/dist/cjs/helpers/isTamaguiComponent.cjs +0 -1
- package/dist/cjs/helpers/isTamaguiComponent.native.cjs +0 -1
- package/dist/cjs/helpers/isTamaguiComponent.native.js +0 -1
- package/dist/cjs/helpers/isTamaguiComponent.native.js.map +1 -1
- package/dist/cjs/helpers/isTamaguiElement.cjs +0 -1
- package/dist/cjs/helpers/isTamaguiElement.native.cjs +0 -1
- package/dist/cjs/helpers/isTamaguiElement.native.js +0 -1
- package/dist/cjs/helpers/isTamaguiElement.native.js.map +1 -1
- package/dist/cjs/helpers/log.cjs +0 -1
- package/dist/cjs/helpers/log.native.cjs +0 -1
- package/dist/cjs/helpers/log.native.js +0 -1
- package/dist/cjs/helpers/log.native.js.map +1 -1
- package/dist/cjs/helpers/mainThreadPressEvents.cjs +0 -1
- package/dist/cjs/helpers/mainThreadPressEvents.native.cjs +0 -1
- package/dist/cjs/helpers/mainThreadPressEvents.native.js +0 -1
- package/dist/cjs/helpers/mainThreadPressEvents.native.js.map +1 -1
- package/dist/cjs/helpers/matchMedia.cjs +0 -1
- package/dist/cjs/helpers/matchMedia.native.cjs +0 -1
- package/dist/cjs/helpers/matchMedia.native.js +0 -1
- package/dist/cjs/helpers/matchMedia.native.js.map +1 -1
- package/dist/cjs/helpers/mediaObjectToString.cjs +0 -1
- package/dist/cjs/helpers/mediaObjectToString.native.cjs +0 -1
- package/dist/cjs/helpers/mediaObjectToString.native.js +0 -1
- package/dist/cjs/helpers/mediaObjectToString.native.js.map +1 -1
- package/dist/cjs/helpers/mediaState.cjs +0 -1
- package/dist/cjs/helpers/mediaState.native.cjs +0 -1
- package/dist/cjs/helpers/mediaState.native.js +0 -1
- package/dist/cjs/helpers/mediaState.native.js.map +1 -1
- package/dist/cjs/helpers/mergeProps.cjs +0 -1
- package/dist/cjs/helpers/mergeProps.native.cjs +0 -1
- package/dist/cjs/helpers/mergeProps.native.js +0 -1
- package/dist/cjs/helpers/mergeProps.native.js.map +1 -1
- package/dist/cjs/helpers/mergeRenderElementProps.cjs +0 -1
- package/dist/cjs/helpers/mergeRenderElementProps.native.cjs +0 -1
- package/dist/cjs/helpers/mergeRenderElementProps.native.js +0 -1
- package/dist/cjs/helpers/mergeRenderElementProps.native.js.map +1 -1
- package/dist/cjs/helpers/mergeSlotStyleProps.cjs +0 -1
- package/dist/cjs/helpers/mergeSlotStyleProps.native.cjs +0 -1
- package/dist/cjs/helpers/mergeSlotStyleProps.native.js +0 -1
- package/dist/cjs/helpers/mergeSlotStyleProps.native.js.map +1 -1
- package/dist/cjs/helpers/mergeVariants.cjs +1 -2
- package/dist/cjs/helpers/mergeVariants.native.cjs +1 -2
- package/dist/cjs/helpers/mergeVariants.native.js +1 -2
- package/dist/cjs/helpers/mergeVariants.native.js.map +1 -1
- package/dist/cjs/helpers/nativeOnlyProps.cjs +0 -1
- package/dist/cjs/helpers/nativeOnlyProps.native.cjs +0 -1
- package/dist/cjs/helpers/nativeOnlyProps.native.js +0 -1
- package/dist/cjs/helpers/nativeOnlyProps.native.js.map +1 -1
- package/dist/cjs/helpers/nativeStyleEngine.cjs +0 -1
- package/dist/cjs/helpers/nativeStyleEngine.native.cjs +0 -1
- package/dist/cjs/helpers/nativeStyleEngine.native.js +0 -1
- package/dist/cjs/helpers/nativeStyleEngine.native.js.map +1 -1
- package/dist/cjs/helpers/nativeTransitionTarget.cjs +0 -1
- package/dist/cjs/helpers/nativeTransitionTarget.native.cjs +0 -1
- package/dist/cjs/helpers/nativeTransitionTarget.native.js +0 -1
- package/dist/cjs/helpers/nativeTransitionTarget.native.js.map +1 -1
- package/dist/cjs/helpers/normalizeColor.cjs +0 -1
- package/dist/cjs/helpers/normalizeColor.native.cjs +0 -1
- package/dist/cjs/helpers/normalizeColor.native.js +0 -1
- package/dist/cjs/helpers/normalizeColor.native.js.map +1 -1
- package/dist/cjs/helpers/normalizeShadow.cjs +0 -1
- package/dist/cjs/helpers/normalizeShadow.native.cjs +0 -1
- package/dist/cjs/helpers/normalizeShadow.native.js +0 -1
- package/dist/cjs/helpers/normalizeShadow.native.js.map +1 -1
- package/dist/cjs/helpers/normalizeStyle.cjs +0 -1
- package/dist/cjs/helpers/normalizeStyle.native.cjs +0 -1
- package/dist/cjs/helpers/normalizeStyle.native.js +0 -1
- package/dist/cjs/helpers/normalizeStyle.native.js.map +1 -1
- package/dist/cjs/helpers/normalizeStylePropKeys.cjs +0 -1
- package/dist/cjs/helpers/normalizeStylePropKeys.native.cjs +0 -1
- package/dist/cjs/helpers/normalizeStylePropKeys.native.js +0 -1
- package/dist/cjs/helpers/normalizeStylePropKeys.native.js.map +1 -1
- package/dist/cjs/helpers/normalizeValueWithProperty.cjs +0 -1
- package/dist/cjs/helpers/normalizeValueWithProperty.native.cjs +0 -1
- package/dist/cjs/helpers/normalizeValueWithProperty.native.js +0 -1
- package/dist/cjs/helpers/normalizeValueWithProperty.native.js.map +1 -1
- package/dist/cjs/helpers/noteOnce.cjs +0 -1
- package/dist/cjs/helpers/noteOnce.native.cjs +0 -1
- package/dist/cjs/helpers/noteOnce.native.js +0 -1
- package/dist/cjs/helpers/noteOnce.native.js.map +1 -1
- package/dist/cjs/helpers/objectIdentityKey.cjs +0 -1
- package/dist/cjs/helpers/objectIdentityKey.native.cjs +0 -1
- package/dist/cjs/helpers/objectIdentityKey.native.js +0 -1
- package/dist/cjs/helpers/objectIdentityKey.native.js.map +1 -1
- package/dist/cjs/helpers/parseBorderShorthand.cjs +0 -1
- package/dist/cjs/helpers/parseBorderShorthand.native.cjs +0 -1
- package/dist/cjs/helpers/parseBorderShorthand.native.js +0 -1
- package/dist/cjs/helpers/parseBorderShorthand.native.js.map +1 -1
- package/dist/cjs/helpers/parseNativeStyle.native.cjs +0 -1
- package/dist/cjs/helpers/parseNativeStyle.native.js +0 -1
- package/dist/cjs/helpers/parseNativeStyle.native.js.map +1 -1
- package/dist/cjs/helpers/parseNativeTransform.native.cjs +0 -1
- package/dist/cjs/helpers/parseNativeTransform.native.js +0 -1
- package/dist/cjs/helpers/parseNativeTransform.native.js.map +1 -1
- package/dist/cjs/helpers/parseOutlineShorthand.cjs +0 -1
- package/dist/cjs/helpers/parseOutlineShorthand.native.cjs +0 -1
- package/dist/cjs/helpers/parseOutlineShorthand.native.js +0 -1
- package/dist/cjs/helpers/parseOutlineShorthand.native.js.map +1 -1
- package/dist/cjs/helpers/pointerEvents.cjs +0 -1
- package/dist/cjs/helpers/pointerEvents.native.cjs +0 -1
- package/dist/cjs/helpers/pointerEvents.native.js +0 -1
- package/dist/cjs/helpers/pointerEvents.native.js.map +1 -1
- package/dist/cjs/helpers/propMapper.cjs +30 -39
- package/dist/cjs/helpers/propMapper.native.cjs +30 -39
- package/dist/cjs/helpers/propMapper.native.js +30 -39
- package/dist/cjs/helpers/propMapper.native.js.map +1 -1
- package/dist/cjs/helpers/proxyThemeToParents.cjs +0 -1
- package/dist/cjs/helpers/proxyThemeToParents.native.cjs +0 -1
- package/dist/cjs/helpers/proxyThemeToParents.native.js +0 -1
- package/dist/cjs/helpers/proxyThemeToParents.native.js.map +1 -1
- package/dist/cjs/helpers/registerCSSVariable.cjs +0 -1
- package/dist/cjs/helpers/registerCSSVariable.native.cjs +0 -1
- package/dist/cjs/helpers/registerCSSVariable.native.js +0 -1
- package/dist/cjs/helpers/registerCSSVariable.native.js.map +1 -1
- package/dist/cjs/helpers/resolveAnimationDriver.cjs +0 -1
- package/dist/cjs/helpers/resolveAnimationDriver.native.cjs +0 -1
- package/dist/cjs/helpers/resolveAnimationDriver.native.js +0 -1
- package/dist/cjs/helpers/resolveAnimationDriver.native.js.map +1 -1
- package/dist/cjs/helpers/resolveRem.cjs +0 -1
- package/dist/cjs/helpers/resolveRem.native.cjs +0 -1
- package/dist/cjs/helpers/resolveRem.native.js +0 -1
- package/dist/cjs/helpers/resolveRem.native.js.map +1 -1
- package/dist/cjs/helpers/resolveSafeArea.cjs +0 -1
- package/dist/cjs/helpers/resolveSafeArea.native.cjs +0 -1
- package/dist/cjs/helpers/resolveSafeArea.native.js +0 -1
- package/dist/cjs/helpers/resolveSafeArea.native.js.map +1 -1
- package/dist/cjs/helpers/resolveSafeAreaVariable.cjs +0 -1
- package/dist/cjs/helpers/resolveSafeAreaVariable.native.cjs +0 -1
- package/dist/cjs/helpers/resolveSafeAreaVariable.native.js +0 -1
- package/dist/cjs/helpers/resolveSafeAreaVariable.native.js.map +1 -1
- package/dist/cjs/helpers/resolveVariableValue.cjs +0 -1
- package/dist/cjs/helpers/resolveVariableValue.native.cjs +0 -1
- package/dist/cjs/helpers/resolveVariableValue.native.js +0 -1
- package/dist/cjs/helpers/resolveVariableValue.native.js.map +1 -1
- package/dist/cjs/helpers/setElementProps.cjs +0 -1
- package/dist/cjs/helpers/setElementProps.native.cjs +0 -1
- package/dist/cjs/helpers/setElementProps.native.js +0 -1
- package/dist/cjs/helpers/setElementProps.native.js.map +1 -1
- package/dist/cjs/helpers/skipProps.cjs +0 -1
- package/dist/cjs/helpers/skipProps.native.cjs +0 -1
- package/dist/cjs/helpers/skipProps.native.js +0 -1
- package/dist/cjs/helpers/skipProps.native.js.map +1 -1
- package/dist/cjs/helpers/sortString.cjs +0 -1
- package/dist/cjs/helpers/sortString.native.cjs +0 -1
- package/dist/cjs/helpers/sortString.native.js +0 -1
- package/dist/cjs/helpers/sortString.native.js.map +1 -1
- package/dist/cjs/helpers/styleFrontend.cjs +0 -1
- package/dist/cjs/helpers/styleFrontend.native.cjs +0 -1
- package/dist/cjs/helpers/styleFrontend.native.js +0 -1
- package/dist/cjs/helpers/styleFrontend.native.js.map +1 -1
- package/dist/cjs/helpers/styleOriginalValues.cjs +0 -1
- package/dist/cjs/helpers/styleOriginalValues.native.cjs +0 -1
- package/dist/cjs/helpers/styleOriginalValues.native.js +0 -1
- package/dist/cjs/helpers/styleOriginalValues.native.js.map +1 -1
- package/dist/cjs/helpers/styleProvenance.cjs +0 -1
- package/dist/cjs/helpers/styleProvenance.native.cjs +0 -1
- package/dist/cjs/helpers/styleProvenance.native.js +0 -1
- package/dist/cjs/helpers/styleProvenance.native.js.map +1 -1
- package/dist/cjs/helpers/subscribeToContextGroup.cjs +0 -1
- package/dist/cjs/helpers/subscribeToContextGroup.native.cjs +0 -1
- package/dist/cjs/helpers/subscribeToContextGroup.native.js +0 -1
- package/dist/cjs/helpers/subscribeToContextGroup.native.js.map +1 -1
- package/dist/cjs/helpers/themeRef.cjs +0 -1
- package/dist/cjs/helpers/themeRef.native.cjs +0 -1
- package/dist/cjs/helpers/themeRef.native.js +0 -1
- package/dist/cjs/helpers/themeRef.native.js.map +1 -1
- 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/themeable.cjs +0 -1
- package/dist/cjs/helpers/themeable.native.cjs +0 -1
- package/dist/cjs/helpers/themeable.native.js +0 -1
- package/dist/cjs/helpers/themeable.native.js.map +1 -1
- package/dist/cjs/helpers/themes.cjs +0 -1
- package/dist/cjs/helpers/themes.native.cjs +0 -1
- package/dist/cjs/helpers/themes.native.js +0 -1
- package/dist/cjs/helpers/themes.native.js.map +1 -1
- package/dist/cjs/helpers/timer.cjs +0 -1
- package/dist/cjs/helpers/timer.native.cjs +0 -1
- package/dist/cjs/helpers/timer.native.js +0 -1
- package/dist/cjs/helpers/timer.native.js.map +1 -1
- package/dist/cjs/helpers/tokenCategories.cjs +0 -1
- package/dist/cjs/helpers/tokenCategories.native.cjs +0 -1
- package/dist/cjs/helpers/tokenCategories.native.js +0 -1
- package/dist/cjs/helpers/tokenCategories.native.js.map +1 -1
- package/dist/cjs/helpers/transformsToString.cjs +0 -1
- package/dist/cjs/helpers/transformsToString.native.cjs +0 -1
- package/dist/cjs/helpers/transformsToString.native.js +0 -1
- package/dist/cjs/helpers/transformsToString.native.js.map +1 -1
- package/dist/cjs/helpers/useRenderElement.cjs +0 -1
- package/dist/cjs/helpers/useRenderElement.native.cjs +0 -1
- package/dist/cjs/helpers/useRenderElement.native.js +0 -1
- package/dist/cjs/helpers/useRenderElement.native.js.map +1 -1
- package/dist/cjs/helpers/variableValue.cjs +66 -0
- package/dist/cjs/helpers/variableValue.native.cjs +88 -0
- package/dist/cjs/helpers/variableValue.native.js +90 -0
- package/dist/cjs/helpers/variableValue.native.js.map +1 -0
- package/dist/cjs/helpers/variables.cjs +95 -139
- package/dist/cjs/helpers/variables.native.cjs +97 -161
- package/dist/cjs/helpers/variables.native.js +97 -161
- package/dist/cjs/helpers/variables.native.js.map +1 -1
- package/dist/cjs/helpers/warnOnce.cjs +1 -2
- package/dist/cjs/helpers/warnOnce.native.cjs +1 -2
- package/dist/cjs/helpers/warnOnce.native.js +1 -2
- package/dist/cjs/helpers/warnOnce.native.js.map +1 -1
- package/dist/cjs/helpers/webPropsToSkip.cjs +0 -1
- package/dist/cjs/helpers/webPropsToSkip.native.cjs +0 -1
- package/dist/cjs/helpers/webPropsToSkip.native.js +0 -1
- package/dist/cjs/helpers/webPropsToSkip.native.js.map +1 -1
- package/dist/cjs/helpers/wrapStyleTags.cjs +0 -1
- package/dist/cjs/helpers/wrapStyleTags.native.cjs +0 -1
- package/dist/cjs/helpers/wrapStyleTags.native.js +0 -1
- package/dist/cjs/helpers/wrapStyleTags.native.js.map +1 -1
- package/dist/cjs/hooks/doesRootSchemeMatchSystem.cjs +0 -1
- package/dist/cjs/hooks/doesRootSchemeMatchSystem.native.cjs +0 -1
- package/dist/cjs/hooks/doesRootSchemeMatchSystem.native.js +0 -1
- package/dist/cjs/hooks/doesRootSchemeMatchSystem.native.js.map +1 -1
- package/dist/cjs/hooks/getThemeProxied.cjs +1 -2
- package/dist/cjs/hooks/getThemeProxied.native.cjs +2 -3
- package/dist/cjs/hooks/getThemeProxied.native.js +2 -3
- package/dist/cjs/hooks/getThemeProxied.native.js.map +1 -1
- package/dist/cjs/hooks/isOptimizedForFirstRender.cjs +0 -1
- package/dist/cjs/hooks/isOptimizedForFirstRender.native.cjs +0 -1
- package/dist/cjs/hooks/isOptimizedForFirstRender.native.js +0 -1
- package/dist/cjs/hooks/isOptimizedForFirstRender.native.js.map +1 -1
- package/dist/cjs/hooks/useAnimationDriver.cjs +14 -9
- package/dist/cjs/hooks/useAnimationDriver.native.cjs +14 -9
- package/dist/cjs/hooks/useAnimationDriver.native.js +14 -9
- package/dist/cjs/hooks/useAnimationDriver.native.js.map +1 -1
- package/dist/cjs/hooks/useComponentState.cjs +27 -25
- package/dist/cjs/hooks/useComponentState.native.cjs +28 -25
- package/dist/cjs/hooks/useComponentState.native.js +28 -25
- package/dist/cjs/hooks/useComponentState.native.js.map +1 -1
- package/dist/cjs/hooks/useDisableSSR.cjs +0 -1
- package/dist/cjs/hooks/useDisableSSR.native.cjs +0 -1
- package/dist/cjs/hooks/useDisableSSR.native.js +0 -1
- package/dist/cjs/hooks/useDisableSSR.native.js.map +1 -1
- package/dist/cjs/hooks/useIsTouchDevice.cjs +0 -1
- package/dist/cjs/hooks/useIsTouchDevice.native.cjs +0 -1
- package/dist/cjs/hooks/useIsTouchDevice.native.js +0 -1
- package/dist/cjs/hooks/useIsTouchDevice.native.js.map +1 -1
- package/dist/cjs/hooks/useMedia.cjs +0 -1
- package/dist/cjs/hooks/useMedia.native.cjs +0 -1
- package/dist/cjs/hooks/useMedia.native.js +0 -1
- package/dist/cjs/hooks/useMedia.native.js.map +1 -1
- package/dist/cjs/hooks/usePortalThemeState.cjs +1 -2
- package/dist/cjs/hooks/usePortalThemeState.native.cjs +1 -2
- package/dist/cjs/hooks/usePortalThemeState.native.js +1 -2
- package/dist/cjs/hooks/usePortalThemeState.native.js.map +1 -1
- package/dist/cjs/hooks/useProps.cjs +1 -2
- package/dist/cjs/hooks/useProps.native.cjs +1 -2
- package/dist/cjs/hooks/useProps.native.js +1 -2
- package/dist/cjs/hooks/useProps.native.js.map +1 -1
- package/dist/cjs/hooks/useTheme.cjs +0 -1
- package/dist/cjs/hooks/useTheme.native.cjs +0 -1
- package/dist/cjs/hooks/useTheme.native.js +0 -1
- package/dist/cjs/hooks/useTheme.native.js.map +1 -1
- package/dist/cjs/hooks/useThemeName.cjs +0 -1
- package/dist/cjs/hooks/useThemeName.native.cjs +0 -1
- package/dist/cjs/hooks/useThemeName.native.js +0 -1
- package/dist/cjs/hooks/useThemeName.native.js.map +1 -1
- package/dist/cjs/hooks/useThemeState.cjs +11 -16
- package/dist/cjs/hooks/useThemeState.native.cjs +13 -18
- package/dist/cjs/hooks/useThemeState.native.js +13 -18
- package/dist/cjs/hooks/useThemeState.native.js.map +1 -1
- package/dist/cjs/index.cjs +0 -2
- package/dist/cjs/index.native.cjs +0 -2
- package/dist/cjs/index.native.js +0 -2
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/inject-styles.cjs +0 -1
- package/dist/cjs/inject-styles.native.cjs +0 -1
- package/dist/cjs/inject-styles.native.js +0 -1
- package/dist/cjs/inject-styles.native.js.map +1 -1
- package/dist/cjs/insertFont.cjs +0 -1
- package/dist/cjs/insertFont.native.cjs +0 -1
- package/dist/cjs/insertFont.native.js +0 -1
- package/dist/cjs/insertFont.native.js.map +1 -1
- package/dist/cjs/interfaces/CSSColorNames.cjs +0 -1
- package/dist/cjs/interfaces/CSSColorNames.native.cjs +0 -1
- package/dist/cjs/interfaces/CSSColorNames.native.js +0 -1
- package/dist/cjs/interfaces/CSSColorNames.native.js.map +1 -1
- package/dist/cjs/interfaces/GetRef.cjs +0 -1
- package/dist/cjs/interfaces/GetRef.native.cjs +0 -1
- package/dist/cjs/interfaces/GetRef.native.js +0 -1
- package/dist/cjs/interfaces/GetRef.native.js.map +1 -1
- package/dist/cjs/interfaces/RNExclusiveTypes.cjs +0 -1
- package/dist/cjs/interfaces/RNExclusiveTypes.native.cjs +0 -1
- package/dist/cjs/interfaces/RNExclusiveTypes.native.js +0 -1
- package/dist/cjs/interfaces/RNExclusiveTypes.native.js.map +1 -1
- package/dist/cjs/interfaces/TamaguiComponentEvents.cjs +0 -1
- package/dist/cjs/interfaces/TamaguiComponentEvents.native.cjs +0 -1
- package/dist/cjs/interfaces/TamaguiComponentEvents.native.js +0 -1
- package/dist/cjs/interfaces/TamaguiComponentEvents.native.js.map +1 -1
- package/dist/cjs/interfaces/TamaguiComponentPropsBaseBase.cjs +0 -1
- package/dist/cjs/interfaces/TamaguiComponentPropsBaseBase.native.cjs +0 -1
- package/dist/cjs/interfaces/TamaguiComponentPropsBaseBase.native.js +0 -1
- package/dist/cjs/interfaces/TamaguiComponentPropsBaseBase.native.js.map +1 -1
- package/dist/cjs/internal-runtime.cjs +1 -4
- package/dist/cjs/internal-runtime.native.cjs +1 -4
- package/dist/cjs/internal-runtime.native.js +1 -4
- package/dist/cjs/internal-runtime.native.js.map +1 -1
- package/dist/cjs/internalRuntimeTypes.cjs +0 -1
- package/dist/cjs/internalRuntimeTypes.native.cjs +0 -1
- package/dist/cjs/internalRuntimeTypes.native.js +0 -1
- package/dist/cjs/internalRuntimeTypes.native.js.map +1 -1
- package/dist/cjs/setupHooks.cjs +0 -1
- package/dist/cjs/setupHooks.native.cjs +0 -1
- package/dist/cjs/setupHooks.native.js +0 -1
- package/dist/cjs/setupHooks.native.js.map +1 -1
- package/dist/cjs/setupReactNative.cjs +0 -1
- package/dist/cjs/setupReactNative.native.cjs +0 -1
- package/dist/cjs/setupReactNative.native.js +0 -1
- package/dist/cjs/setupReactNative.native.js.map +1 -1
- package/dist/cjs/styled.cjs +0 -1
- package/dist/cjs/styled.native.cjs +0 -1
- package/dist/cjs/styled.native.js +0 -1
- 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 +0 -1
- package/dist/cjs/type-utils.native.cjs +0 -1
- package/dist/cjs/type-utils.native.js +0 -1
- package/dist/cjs/type-utils.native.js.map +1 -1
- package/dist/cjs/types.cjs +0 -1
- package/dist/cjs/types.native.cjs +0 -1
- package/dist/cjs/types.native.js +0 -1
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/cjs/views/ConfigRevisionCheck.cjs +0 -1
- package/dist/cjs/views/ConfigRevisionCheck.native.cjs +0 -1
- package/dist/cjs/views/ConfigRevisionCheck.native.js +0 -1
- package/dist/cjs/views/ConfigRevisionCheck.native.js.map +1 -1
- package/dist/cjs/views/Configuration.cjs +0 -1
- package/dist/cjs/views/Configuration.native.cjs +0 -1
- package/dist/cjs/views/Configuration.native.js +0 -1
- package/dist/cjs/views/Configuration.native.js.map +1 -1
- package/dist/cjs/views/FontLanguage.cjs +0 -1
- package/dist/cjs/views/FontLanguage.native.cjs +0 -1
- package/dist/cjs/views/FontLanguage.native.js +0 -1
- package/dist/cjs/views/FontLanguage.native.js.map +1 -1
- package/dist/cjs/views/SafeAreaTracker.cjs +0 -1
- package/dist/cjs/views/SafeAreaTracker.native.cjs +0 -1
- package/dist/cjs/views/SafeAreaTracker.native.js +0 -1
- package/dist/cjs/views/SafeAreaTracker.native.js.map +1 -1
- package/dist/cjs/views/Slot.cjs +0 -1
- package/dist/cjs/views/Slot.native.cjs +0 -1
- package/dist/cjs/views/Slot.native.js +0 -1
- package/dist/cjs/views/Slot.native.js.map +1 -1
- package/dist/cjs/views/TamaguiProvider.cjs +0 -1
- package/dist/cjs/views/TamaguiProvider.native.cjs +0 -1
- package/dist/cjs/views/TamaguiProvider.native.js +0 -1
- package/dist/cjs/views/TamaguiProvider.native.js.map +1 -1
- package/dist/cjs/views/TamaguiRoot.cjs +0 -1
- package/dist/cjs/views/TamaguiRoot.native.cjs +0 -1
- package/dist/cjs/views/TamaguiRoot.native.js +0 -1
- package/dist/cjs/views/TamaguiRoot.native.js.map +1 -1
- package/dist/cjs/views/Text.cjs +0 -1
- package/dist/cjs/views/Text.native.cjs +0 -1
- package/dist/cjs/views/Text.native.js +0 -1
- package/dist/cjs/views/Text.native.js.map +1 -1
- package/dist/cjs/views/Theme.cjs +7 -33
- package/dist/cjs/views/Theme.native.cjs +8 -20
- package/dist/cjs/views/Theme.native.js +8 -20
- package/dist/cjs/views/Theme.native.js.map +1 -1
- package/dist/cjs/views/ThemeDebug.cjs +0 -1
- package/dist/cjs/views/ThemeDebug.native.cjs +0 -1
- package/dist/cjs/views/ThemeDebug.native.js +0 -1
- package/dist/cjs/views/ThemeDebug.native.js.map +1 -1
- package/dist/cjs/views/ThemeProvider.cjs +0 -1
- package/dist/cjs/views/ThemeProvider.native.cjs +0 -1
- package/dist/cjs/views/ThemeProvider.native.js +0 -1
- 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 +0 -1
- package/dist/cjs/views/View.native.cjs +0 -1
- package/dist/cjs/views/View.native.js +0 -1
- package/dist/cjs/views/View.native.js.map +1 -1
- package/dist/esm/Tamagui.mjs.map +1 -1
- package/dist/esm/Tamagui.native.js.map +1 -1
- package/dist/esm/_withNativeStyle.mjs.map +1 -1
- package/dist/esm/config.mjs +7 -0
- package/dist/esm/config.mjs.map +1 -1
- package/dist/esm/config.native.js +7 -0
- package/dist/esm/config.native.js.map +1 -1
- package/dist/esm/constants/isDevTools.mjs.map +1 -1
- package/dist/esm/constants/isDevTools.native.js.map +1 -1
- package/dist/esm/createComponent.mjs +1 -1
- package/dist/esm/createComponent.mjs.map +1 -1
- package/dist/esm/createComponent.native.js +1 -1
- package/dist/esm/createComponent.native.js.map +1 -1
- package/dist/esm/createFont.mjs.map +1 -1
- package/dist/esm/createFont.native.js.map +1 -1
- package/dist/esm/createTamagui.mjs +2 -2
- package/dist/esm/createTamagui.mjs.map +1 -1
- package/dist/esm/createTamagui.native.js +2 -2
- package/dist/esm/createTamagui.native.js.map +1 -1
- package/dist/esm/createVariable.mjs.map +1 -1
- package/dist/esm/createVariable.native.js.map +1 -1
- package/dist/esm/dom/primitives.native.js +1 -1
- package/dist/esm/dom/primitives.native.js.map +1 -1
- package/dist/esm/eventHandling.native.js.map +1 -1
- package/dist/esm/helpers/configVariables.mjs +60 -0
- package/dist/esm/helpers/configVariables.mjs.map +1 -0
- package/dist/esm/helpers/configVariables.native.js +65 -0
- package/dist/esm/helpers/configVariables.native.js.map +1 -0
- package/dist/esm/helpers/createDesignSystem.mjs.map +1 -1
- package/dist/esm/helpers/createDesignSystem.native.js.map +1 -1
- package/dist/esm/helpers/createStyledContext.mjs.map +1 -1
- package/dist/esm/helpers/createStyledContext.native.js.map +1 -1
- package/dist/esm/helpers/defaultAnimationDriver.mjs +1 -5
- package/dist/esm/helpers/defaultAnimationDriver.mjs.map +1 -1
- package/dist/esm/helpers/defaultAnimationDriver.native.js +0 -12
- package/dist/esm/helpers/defaultAnimationDriver.native.js.map +1 -1
- package/dist/esm/helpers/directStyle.mjs +258 -283
- package/dist/esm/helpers/directStyle.mjs.map +1 -1
- package/dist/esm/helpers/directStyle.native.js +274 -305
- package/dist/esm/helpers/directStyle.native.js.map +1 -1
- package/dist/esm/helpers/expandStyle.mjs.map +1 -1
- package/dist/esm/helpers/expandStyle.native.js.map +1 -1
- package/dist/esm/helpers/expandStyles.native.js.map +1 -1
- package/dist/esm/helpers/extractPseudoState.mjs.map +1 -1
- package/dist/esm/helpers/formatDiagnostic.mjs.map +1 -1
- package/dist/esm/helpers/formatDiagnostic.native.js.map +1 -1
- package/dist/esm/helpers/getCSSStylesAtomic.mjs +5 -1
- package/dist/esm/helpers/getCSSStylesAtomic.mjs.map +1 -1
- package/dist/esm/helpers/getDynamicVal.mjs.map +1 -1
- package/dist/esm/helpers/getDynamicVal.native.js.map +1 -1
- package/dist/esm/helpers/getExpandedShorthands.mjs.map +1 -1
- package/dist/esm/helpers/getExpandedShorthands.native.js.map +1 -1
- package/dist/esm/helpers/getFontLanguage.mjs.map +1 -1
- package/dist/esm/helpers/getFontLanguage.native.js.map +1 -1
- package/dist/esm/helpers/getShorthandValue.mjs.map +1 -1
- package/dist/esm/helpers/getShorthandValue.native.js.map +1 -1
- package/dist/esm/helpers/getSplitStyles.mjs +2 -9
- package/dist/esm/helpers/getSplitStyles.mjs.map +1 -1
- package/dist/esm/helpers/getSplitStyles.native.js +2 -9
- package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/esm/helpers/getThemeCSSRules.mjs.map +1 -1
- package/dist/esm/helpers/getVariantExtras.mjs.map +1 -1
- package/dist/esm/helpers/getVariantExtras.native.js.map +1 -1
- package/dist/esm/helpers/grammarConfig.mjs +59 -13
- package/dist/esm/helpers/grammarConfig.mjs.map +1 -1
- package/dist/esm/helpers/grammarConfig.native.js +80 -17
- package/dist/esm/helpers/grammarConfig.native.js.map +1 -1
- package/dist/esm/helpers/insertStyleRule.mjs.map +1 -1
- package/dist/esm/helpers/insertStyleRule.native.js.map +1 -1
- package/dist/esm/helpers/matchMedia.native.js.map +1 -1
- package/dist/esm/helpers/mediaObjectToString.mjs.map +1 -1
- package/dist/esm/helpers/mediaObjectToString.native.js.map +1 -1
- package/dist/esm/helpers/mergeVariants.mjs +1 -1
- package/dist/esm/helpers/mergeVariants.mjs.map +1 -1
- package/dist/esm/helpers/mergeVariants.native.js +1 -1
- package/dist/esm/helpers/mergeVariants.native.js.map +1 -1
- package/dist/esm/helpers/nativeStyleEngine.mjs.map +1 -1
- package/dist/esm/helpers/nativeStyleEngine.native.js.map +1 -1
- package/dist/esm/helpers/normalizeStyle.native.js.map +1 -1
- package/dist/esm/helpers/parseBorderShorthand.native.js.map +1 -1
- package/dist/esm/helpers/parseNativeStyle.native.js.map +1 -1
- package/dist/esm/helpers/parseNativeTransform.native.js.map +1 -1
- package/dist/esm/helpers/parseOutlineShorthand.native.js.map +1 -1
- package/dist/esm/helpers/propMapper.mjs +31 -39
- package/dist/esm/helpers/propMapper.mjs.map +1 -1
- package/dist/esm/helpers/propMapper.native.js +31 -39
- package/dist/esm/helpers/propMapper.native.js.map +1 -1
- package/dist/esm/helpers/proxyThemeToParents.mjs.map +1 -1
- package/dist/esm/helpers/proxyThemeToParents.native.js.map +1 -1
- package/dist/esm/helpers/registerCSSVariable.mjs.map +1 -1
- package/dist/esm/helpers/registerCSSVariable.native.js.map +1 -1
- package/dist/esm/helpers/resolveSafeAreaVariable.native.js.map +1 -1
- package/dist/esm/helpers/subscribeToContextGroup.native.js.map +1 -1
- package/dist/esm/helpers/themeRef.mjs.map +1 -1
- package/dist/esm/helpers/themeRef.native.js.map +1 -1
- 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/timer.mjs.map +1 -1
- package/dist/esm/helpers/timer.native.js.map +1 -1
- package/dist/esm/helpers/tokenCategories.mjs.map +1 -1
- package/dist/esm/helpers/tokenCategories.native.js.map +1 -1
- package/dist/esm/helpers/transformsToString.native.js.map +1 -1
- package/dist/esm/helpers/useRenderElement.mjs.map +1 -1
- package/dist/esm/helpers/useRenderElement.native.js.map +1 -1
- package/dist/esm/helpers/variableValue.mjs +44 -0
- package/dist/esm/helpers/variableValue.mjs.map +1 -0
- package/dist/esm/helpers/variableValue.native.js +64 -0
- package/dist/esm/helpers/variableValue.native.js.map +1 -0
- package/dist/esm/helpers/variables.mjs +96 -136
- package/dist/esm/helpers/variables.mjs.map +1 -1
- package/dist/esm/helpers/variables.native.js +98 -158
- package/dist/esm/helpers/variables.native.js.map +1 -1
- package/dist/esm/helpers/warnOnce.mjs +1 -1
- package/dist/esm/helpers/warnOnce.mjs.map +1 -1
- package/dist/esm/helpers/warnOnce.native.js +1 -1
- package/dist/esm/helpers/warnOnce.native.js.map +1 -1
- package/dist/esm/hooks/getThemeProxied.mjs.map +1 -1
- package/dist/esm/hooks/getThemeProxied.native.js +2 -2
- package/dist/esm/hooks/getThemeProxied.native.js.map +1 -1
- package/dist/esm/hooks/useAnimationDriver.mjs +14 -8
- package/dist/esm/hooks/useAnimationDriver.mjs.map +1 -1
- package/dist/esm/hooks/useAnimationDriver.native.js +14 -8
- package/dist/esm/hooks/useAnimationDriver.native.js.map +1 -1
- package/dist/esm/hooks/useComponentState.mjs +27 -24
- package/dist/esm/hooks/useComponentState.mjs.map +1 -1
- package/dist/esm/hooks/useComponentState.native.js +28 -24
- package/dist/esm/hooks/useComponentState.native.js.map +1 -1
- package/dist/esm/hooks/useMedia.mjs.map +1 -1
- package/dist/esm/hooks/useMedia.native.js.map +1 -1
- package/dist/esm/hooks/usePortalThemeState.mjs +2 -2
- package/dist/esm/hooks/usePortalThemeState.mjs.map +1 -1
- package/dist/esm/hooks/usePortalThemeState.native.js +2 -2
- package/dist/esm/hooks/usePortalThemeState.native.js.map +1 -1
- package/dist/esm/hooks/useProps.mjs +1 -1
- package/dist/esm/hooks/useProps.mjs.map +1 -1
- package/dist/esm/hooks/useProps.native.js +1 -1
- package/dist/esm/hooks/useProps.native.js.map +1 -1
- package/dist/esm/hooks/useThemeName.mjs.map +1 -1
- package/dist/esm/hooks/useThemeState.mjs +12 -15
- package/dist/esm/hooks/useThemeState.mjs.map +1 -1
- package/dist/esm/hooks/useThemeState.native.js +14 -17
- package/dist/esm/hooks/useThemeState.native.js.map +1 -1
- package/dist/esm/index.js +0 -2
- package/dist/esm/index.mjs +0 -2
- package/dist/esm/index.native.js +0 -2
- package/dist/esm/insertFont.mjs.map +1 -1
- package/dist/esm/insertFont.native.js.map +1 -1
- package/dist/esm/internal-runtime.mjs +1 -3
- package/dist/esm/internal-runtime.mjs.map +1 -1
- package/dist/esm/internal-runtime.native.js +1 -3
- package/dist/esm/internal-runtime.native.js.map +1 -1
- package/dist/esm/styled.mjs.map +1 -1
- 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/views/FontLanguage.mjs.map +1 -1
- package/dist/esm/views/SafeAreaTracker.native.js.map +1 -1
- package/dist/esm/views/TamaguiProvider.mjs.map +1 -1
- package/dist/esm/views/TamaguiProvider.native.js.map +1 -1
- package/dist/esm/views/Theme.mjs +8 -33
- package/dist/esm/views/Theme.mjs.map +1 -1
- package/dist/esm/views/Theme.native.js +9 -20
- package/dist/esm/views/Theme.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/package.json +26 -17
- package/src/config.ts +7 -0
- package/src/createComponent.tsx +1 -4
- package/src/createTamagui.ts +3 -8
- package/src/dom/primitives.native.tsx +1 -1
- package/src/helpers/configVariables.ts +64 -0
- package/src/helpers/defaultAnimationDriver.tsx +0 -4
- package/src/helpers/directStyle.ts +876 -477
- package/src/helpers/getCSSStylesAtomic.ts +5 -1
- package/src/helpers/getSplitStyles.tsx +2 -23
- package/src/helpers/grammarConfig.ts +82 -12
- package/src/helpers/mergeVariants.ts +1 -3
- package/src/helpers/nativeTransitionTarget.native.ts +1 -1
- package/src/helpers/nativeTransitionTarget.ts +1 -1
- package/src/helpers/propMapper.ts +42 -49
- package/src/helpers/themeUpdateState.ts +27 -0
- package/src/helpers/variableValue.ts +45 -0
- package/src/helpers/variables.ts +149 -195
- package/src/helpers/warnOnce.ts +2 -2
- package/src/hooks/getThemeProxied.ts +9 -7
- package/src/hooks/useAnimationDriver.ts +26 -11
- package/src/hooks/useComponentState.ts +44 -34
- package/src/hooks/usePortalThemeState.ts +8 -8
- package/src/hooks/useProps.tsx +1 -4
- package/src/hooks/useThemeState.ts +16 -37
- package/src/index.ts +0 -1
- package/src/internal-runtime.ts +1 -8
- package/src/theme-update.ts +2 -0
- package/src/types.tsx +13 -21
- package/src/views/Theme.tsx +18 -80
- package/src/views/ThemeUpdate.tsx +88 -0
- package/types/config.d.ts.map +1 -1
- package/types/createComponent.d.ts.map +1 -1
- package/types/helpers/configVariables.d.ts +3 -0
- package/types/helpers/configVariables.d.ts.map +1 -0
- package/types/helpers/defaultAnimationDriver.d.ts.map +1 -1
- package/types/helpers/directStyle.d.ts +2 -23
- package/types/helpers/directStyle.d.ts.map +1 -1
- package/types/helpers/getCSSStylesAtomic.d.ts.map +1 -1
- package/types/helpers/getSplitStyles.d.ts.map +1 -1
- package/types/helpers/grammarConfig.d.ts +9 -0
- package/types/helpers/grammarConfig.d.ts.map +1 -1
- package/types/helpers/mergeVariants.d.ts.map +1 -1
- package/types/helpers/nativeTransitionTarget.d.ts +1 -1
- package/types/helpers/nativeTransitionTarget.d.ts.map +1 -1
- package/types/helpers/nativeTransitionTarget.native.d.ts +1 -1
- package/types/helpers/nativeTransitionTarget.native.d.ts.map +1 -1
- package/types/helpers/propMapper.d.ts.map +1 -1
- package/types/helpers/themeUpdateState.d.ts +23 -0
- package/types/helpers/themeUpdateState.d.ts.map +1 -0
- package/types/helpers/variableValue.d.ts +4 -0
- package/types/helpers/variableValue.d.ts.map +1 -0
- package/types/helpers/variables.d.ts +7 -24
- package/types/helpers/variables.d.ts.map +1 -1
- package/types/helpers/warnOnce.d.ts +1 -1
- package/types/hooks/getThemeProxied.d.ts.map +1 -1
- package/types/hooks/useAnimationDriver.d.ts.map +1 -1
- package/types/hooks/useComponentState.d.ts.map +1 -1
- package/types/hooks/usePortalThemeState.d.ts +5 -5
- package/types/hooks/usePortalThemeState.d.ts.map +1 -1
- package/types/hooks/useProps.d.ts.map +1 -1
- package/types/hooks/useThemeState.d.ts +2 -5
- package/types/hooks/useThemeState.d.ts.map +1 -1
- package/types/index.d.ts +0 -1
- package/types/index.d.ts.map +1 -1
- package/types/internal-runtime.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 +6 -17
- package/types/types.d.ts.map +1 -1
- package/types/views/Theme.d.ts +2 -15
- package/types/views/Theme.d.ts.map +1 -1
- package/types/views/ThemeUpdate.d.ts +15 -0
- package/types/views/ThemeUpdate.d.ts.map +1 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
var __defProp = Object.defineProperty;
|
|
5
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -30,9 +29,9 @@ __export(directStyle_exports, {
|
|
|
30
29
|
contributeVariantClauseValue: () => contributeVariantClauseValue,
|
|
31
30
|
directStyleSignature: () => directStyleSignature,
|
|
32
31
|
flushDirectStyles: () => flushDirectStyles,
|
|
33
|
-
getCondition: () => getCondition,
|
|
34
32
|
getDirectDynamicThemeAccess: () => getDirectDynamicThemeAccess,
|
|
35
|
-
platformMatches: () => platformMatches
|
|
33
|
+
platformMatches: () => platformMatches,
|
|
34
|
+
resolveClauseChain: () => resolveClauseChain
|
|
36
35
|
});
|
|
37
36
|
module.exports = __toCommonJS(directStyle_exports);
|
|
38
37
|
var import_constants = require("@tamagui/constants");
|
|
@@ -43,9 +42,9 @@ var import_useMedia = require("../hooks/useMedia.native.js");
|
|
|
43
42
|
var import_warnOnce = require("./warnOnce.native.js");
|
|
44
43
|
var import_expandStyle = require("./expandStyle.native.js");
|
|
45
44
|
var import_getCSSStylesAtomic = require("./getCSSStylesAtomic.native.js");
|
|
45
|
+
var import_grammarConfig = require("./grammarConfig.native.js");
|
|
46
46
|
var import_getDynamicVal = require("./getDynamicVal.native.js");
|
|
47
47
|
var import_insertStyleRule = require("./insertStyleRule.native.js");
|
|
48
|
-
var import_mediaObjectToString = require("./mediaObjectToString.native.js");
|
|
49
48
|
var import_normalizeColor = require("./normalizeColor.native.js");
|
|
50
49
|
var import_parseNativeStyle = require("./parseNativeStyle.native.js");
|
|
51
50
|
var import_parseNativeTransform = require("./parseNativeTransform.native.js");
|
|
@@ -55,18 +54,54 @@ var import_resolveSafeArea = require("./resolveSafeArea.native.js");
|
|
|
55
54
|
var import_resolveVariableValue = require("./resolveVariableValue.native.js");
|
|
56
55
|
var import_themeRef = require("./themeRef.native.js");
|
|
57
56
|
var import_transformsToString = require("./transformsToString.native.js");
|
|
58
|
-
var
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
57
|
+
var directStyleHandler = {
|
|
58
|
+
segment(state, start, end, isBase, valid, source, chainStart, chainEnd, chainValid, chainCount, _result, failure, failureIndex, property, merge, originalValue, contextOnly) {
|
|
59
|
+
if (isBase) {
|
|
60
|
+
if (start === end) return;
|
|
61
|
+
if (!valid) {
|
|
62
|
+
if (process.env.NODE_ENV === "development") (0, import_warnOnce.warnRefusedValue)(property, source, failure === "invalid-character" ? `"${source[failureIndex]}" would end the declaration or rule` : failure === "unterminated-string" ? "an unterminated string" : failure === "unterminated-comment" ? "an unterminated \"/*\" comment" : failure === "stray-comment-close" ? "a stray \"*/\"" : "an unterminated \"(\"");
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
var value = source.slice(start, end);
|
|
66
|
+
emitValue(state, property, value, 0, "", void 0, "", "", merge, value, contextOnly);
|
|
67
|
+
return 5;
|
|
68
|
+
}
|
|
69
|
+
if (!chainValid) {
|
|
70
|
+
if (process.env.NODE_ENV === "development") (0, import_warnOnce.warnRefusedValue)(property, source, failure === "invalid-character" ? `"${source[failureIndex]}" would end the declaration or rule` : failure === "unterminated-string" ? "an unterminated string" : failure === "unterminated-comment" ? "an unterminated \"/*\" comment" : failure === "stray-comment-close" ? "a stray \"*/\"" : "an unterminated \"(\"");
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
if (start === end) {
|
|
74
|
+
if (process.env.NODE_ENV === "development") (0, import_warnOnce.warnRefusedValue)(property, source, "a conditional clause has no value");
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
if (property === "aspectRatio" && chainCount === 1) {
|
|
78
|
+
var left = Number(source.slice(chainStart, chainEnd));
|
|
79
|
+
var right = Number(source.slice(start, end));
|
|
80
|
+
if (chainStart < chainEnd && Number.isFinite(left) && left > 0 && Number.isFinite(right) && right > 0) return 12;
|
|
81
|
+
}
|
|
82
|
+
var condition = resolveClauseChain(state, source, chainStart, chainEnd, property, void 0, valid ? merge : void 0, void 0, contextOnly, start, end, 1);
|
|
83
|
+
if (!condition) return;
|
|
84
|
+
if (!valid) {
|
|
85
|
+
if (process.env.NODE_ENV === "development") (0, import_warnOnce.warnRefusedValue)(property, source, failure === "invalid-character" ? `"${source[failureIndex]}" would end the declaration or rule` : failure === "unterminated-string" ? "an unterminated string" : failure === "unterminated-comment" ? "an unterminated \"/*\" comment" : failure === "stray-comment-close" ? "a stray \"*/\"" : "an unterminated \"(\"");
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
return 4 | (condition & 12 ? 2 : 0);
|
|
89
|
+
},
|
|
90
|
+
chain() {
|
|
91
|
+
return true;
|
|
92
|
+
},
|
|
93
|
+
end(state, source, result, lastPayloadStart, chainCount, property, merge, originalValue, contextOnly) {
|
|
94
|
+
var hasBase = !!(result & 1);
|
|
95
|
+
if (result & 8 && chainCount === 1) {
|
|
96
|
+
emitValue(state, property, source, 0, "", void 0, "", "", merge, originalValue !== null && originalValue !== void 0 ? originalValue : source, contextOnly);
|
|
97
|
+
hasBase = true;
|
|
98
|
+
}
|
|
99
|
+
if (process.env.NODE_ENV === "development" && !hasBase && result & 4 && (property in import_helpers.tokenCategories.color || property in import_tokenCategories.tokenCategoryByProperty) && splitComponents(source.slice(lastPayloadStart)).length > 1) (0, import_warnOnce.warnOnce)(`${property}="${source}" has multiple values after its first conditional. Write the base value before the first conditional.`);
|
|
100
|
+
if ((!import_constants.isWeb || !state.flatShouldDoClasses) && result & 2 && !hasBase) {
|
|
101
|
+
var value = property === "opacity" ? 1 : property === "scale" || property === "scaleX" || property === "scaleY" ? 1 : property === "rotate" ? "0deg" : property === "x" || property === "y" ? 0 : null;
|
|
102
|
+
if (value !== null) emitValue(state, property, value, 0, "", void 0, "", "", merge, value, contextOnly);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
70
105
|
};
|
|
71
106
|
var legacyTransformParts = /* @__PURE__ */ new Set([
|
|
72
107
|
"matrix",
|
|
@@ -165,38 +200,6 @@ var borderStyleDefaults = {
|
|
|
165
200
|
borderBottomWidth: "borderBottomStyle",
|
|
166
201
|
borderLeftWidth: "borderLeftStyle"
|
|
167
202
|
};
|
|
168
|
-
var mediaQueries = /* @__PURE__ */ new WeakMap();
|
|
169
|
-
var clausePrecedenceOrders = /* @__PURE__ */ new WeakMap();
|
|
170
|
-
function queryFor(state, name) {
|
|
171
|
-
var queries = mediaQueries.get(state.conf);
|
|
172
|
-
if (!queries) {
|
|
173
|
-
queries = {};
|
|
174
|
-
var media = state.conf.media || {};
|
|
175
|
-
for (var key in media) queries[key] = (0, import_mediaObjectToString.mediaObjectToString)(media[key]);
|
|
176
|
-
mediaQueries.set(state.conf, queries);
|
|
177
|
-
}
|
|
178
|
-
return queries[name];
|
|
179
|
-
}
|
|
180
|
-
function precedenceOrderFor(state) {
|
|
181
|
-
var order = clausePrecedenceOrders.get(state.conf);
|
|
182
|
-
if (!order) {
|
|
183
|
-
order = (0, import_runtime.createClausePrecedenceOrder)(state.conf.media);
|
|
184
|
-
clausePrecedenceOrders.set(state.conf, order);
|
|
185
|
-
}
|
|
186
|
-
return order;
|
|
187
|
-
}
|
|
188
|
-
function stateIsActive(state, name) {
|
|
189
|
-
var component = state.componentState;
|
|
190
|
-
if (name === "hover") return !!component.hover;
|
|
191
|
-
if (name === "press") return !!(component.press || component.pressIn);
|
|
192
|
-
if (name === "focus") return !!component.focus;
|
|
193
|
-
if (name === "focus-visible") return !!component.focusVisible;
|
|
194
|
-
if (name === "focus-within") return !!component.focusWithin;
|
|
195
|
-
if (name === "disabled") return !!(component.disabled || state.props.disabled);
|
|
196
|
-
if (name === "enter") return !!component.unmounted;
|
|
197
|
-
if (name === "exit") return !!state.styleProps.isExiting;
|
|
198
|
-
return false;
|
|
199
|
-
}
|
|
200
203
|
function platformMatches(name) {
|
|
201
204
|
if (name === "web") return import_constants.isWeb;
|
|
202
205
|
if (name === "native") return !import_constants.isWeb;
|
|
@@ -206,129 +209,172 @@ function platformMatches(name) {
|
|
|
206
209
|
if (name === "androidtv") return import_constants.isAndroid && import_constants.isTV;
|
|
207
210
|
return name === "tv" && import_constants.isTV;
|
|
208
211
|
}
|
|
209
|
-
function
|
|
210
|
-
var
|
|
211
|
-
var
|
|
212
|
-
var
|
|
213
|
-
var
|
|
214
|
-
var
|
|
215
|
-
var
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
var
|
|
220
|
-
var
|
|
221
|
-
var
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
function containerCondition(state, modifier, out) {
|
|
227
|
-
var _state_componentState_group, _state_flatGroupContext, _component_media;
|
|
228
|
-
var _out, _out1, _state, _state1;
|
|
229
|
-
var slash = modifier.indexOf("/");
|
|
230
|
-
var size = modifier.slice(1, slash === -1 ? void 0 : slash);
|
|
231
|
-
var name = slash === -1 ? null : modifier.slice(slash + 1);
|
|
232
|
-
var query = queryFor(state, size);
|
|
233
|
-
if (!query || name !== null && !name) return false;
|
|
234
|
-
var key = name === null ? "@" : `@${name}`;
|
|
235
|
-
((_out = out).wrappers || (_out.wrappers = [])).push(name === null ? `@container ${query}` : `@container ${name} ${query}`);
|
|
236
|
-
var component = (_state_componentState_group = state.componentState.group) === null || _state_componentState_group === void 0 ? void 0 : _state_componentState_group[key];
|
|
237
|
-
var context = (_state_flatGroupContext = state.flatGroupContext) === null || _state_flatGroupContext === void 0 ? void 0 : _state_flatGroupContext[key];
|
|
238
|
-
var active = component === null || component === void 0 ? void 0 : (_component_media = component.media) === null || _component_media === void 0 ? void 0 : _component_media[size];
|
|
239
|
-
(_out1 = out).active && (_out1.active = active === void 0 ? !!((context === null || context === void 0 ? void 0 : context.state.layout) && (0, import_useMedia.mediaKeyMatch)(size, context.state.layout)) : !!active);
|
|
240
|
-
((_state = state).flatGroupKeys || (_state.flatGroupKeys = /* @__PURE__ */ new Set())).add(key);
|
|
241
|
-
((_state1 = state).flatGroupMedia || (_state1.flatGroupMedia = /* @__PURE__ */ new Set())).add(size);
|
|
242
|
-
return true;
|
|
243
|
-
}
|
|
244
|
-
function getCondition(state, source) {
|
|
245
|
-
var out = {
|
|
246
|
-
key: "",
|
|
247
|
-
active: true,
|
|
248
|
-
emit: true,
|
|
249
|
-
selector: ""
|
|
250
|
-
};
|
|
251
|
-
var canonical = [];
|
|
252
|
-
var kinds = [];
|
|
253
|
-
var seenModifiers = /* @__PURE__ */ new Set();
|
|
212
|
+
function resolveClauseChain(state, source, start, end, property, raw, merge, originalValue) {
|
|
213
|
+
var contextOnly = arguments.length > 8 && arguments[8] !== void 0 ? arguments[8] : false, payloadStart = arguments.length > 9 && arguments[9] !== void 0 ? arguments[9] : -1, payloadEnd = arguments.length > 10 && arguments[10] !== void 0 ? arguments[10] : -1, warning = arguments.length > 11 && arguments[11] !== void 0 ? arguments[11] : 0;
|
|
214
|
+
var compiled = (0, import_grammarConfig.getConfigRevisionState)(state.conf);
|
|
215
|
+
var sourceStart = start;
|
|
216
|
+
var key = "";
|
|
217
|
+
var active = true;
|
|
218
|
+
var emit = true;
|
|
219
|
+
var selector = "";
|
|
220
|
+
var wrappers;
|
|
221
|
+
var theme = "";
|
|
222
|
+
var enter = false;
|
|
223
|
+
var exit = false;
|
|
224
|
+
var unsupportedState = "";
|
|
225
|
+
var platformRank = 0;
|
|
226
|
+
var depth = 0;
|
|
227
|
+
var categoryRank = 0;
|
|
228
|
+
var withinRank = 0;
|
|
254
229
|
var selfStateSpecificity = 0;
|
|
255
|
-
var
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
var modifier = (0, import_runtime.canonicalClauseModifier)(source.slice(start, index));
|
|
230
|
+
for (var index = start; index <= end; index++) {
|
|
231
|
+
if (index !== end && source.charCodeAt(index) !== 58) continue;
|
|
232
|
+
var modifier = source.slice(start, index);
|
|
259
233
|
start = index + 1;
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
234
|
+
var code = compiled.modifiers[modifier];
|
|
235
|
+
var kind = code & 7;
|
|
236
|
+
var rank = code >> 3;
|
|
237
|
+
var stateSelector = "";
|
|
238
|
+
var conditionStateName = "";
|
|
239
|
+
var groupName = "";
|
|
240
|
+
var containerSize = "";
|
|
241
|
+
var containerName = "";
|
|
242
|
+
var containerQuery = "";
|
|
243
|
+
if (kind === import_runtime.modifierKindState) {
|
|
244
|
+
modifier = import_runtime.canonicalStateModifierNames[rank];
|
|
245
|
+
stateSelector = import_runtime.stateModifierSelectors[rank];
|
|
246
|
+
} else if (!kind && modifier.startsWith("group-")) {
|
|
247
|
+
var slash = modifier.indexOf("/");
|
|
248
|
+
var authoredState = modifier.slice(6, slash === -1 ? void 0 : slash);
|
|
249
|
+
code = compiled.modifiers[authoredState];
|
|
250
|
+
if ((code & 7) !== import_runtime.modifierKindState) kind = 0;
|
|
251
|
+
else {
|
|
252
|
+
rank = code >> 3;
|
|
253
|
+
groupName = slash === -1 ? "true" : modifier.slice(slash + 1);
|
|
254
|
+
if (rank === 6 || rank === 7 || slash !== -1 && !(0, import_runtime.isModifierName)(groupName, 0, groupName.length)) kind = 0;
|
|
255
|
+
else {
|
|
256
|
+
kind = 5;
|
|
257
|
+
var stateName = import_runtime.canonicalStateModifierNames[rank];
|
|
258
|
+
conditionStateName = stateName;
|
|
259
|
+
stateSelector = import_runtime.stateModifierSelectors[rank];
|
|
260
|
+
modifier = `group-${stateName}${slash === -1 ? "" : modifier.slice(slash)}`;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
} else if (!kind && modifier.charCodeAt(0) === 64) {
|
|
264
|
+
var slash1 = modifier.indexOf("/");
|
|
265
|
+
containerSize = modifier.slice(1, slash1 === -1 ? void 0 : slash1);
|
|
266
|
+
containerName = slash1 === -1 ? "" : modifier.slice(slash1 + 1);
|
|
267
|
+
if ((0, import_runtime.isModifierName)(containerSize, 0, containerSize.length) && (slash1 === -1 || (0, import_runtime.isModifierName)(containerName, 0, containerName.length)) && ((code = compiled.modifiers[containerSize]) & 7) === import_runtime.modifierKindMedia && (containerQuery = compiled.mediaQueries[containerSize]) && (0, import_runtime.isContainerSizeQueryText)(containerQuery)) {
|
|
268
|
+
kind = 6;
|
|
269
|
+
rank = code >> 3;
|
|
270
|
+
}
|
|
268
271
|
}
|
|
269
|
-
if (
|
|
270
|
-
if (
|
|
271
|
-
|
|
272
|
-
kinds.push("container");
|
|
273
|
-
continue;
|
|
272
|
+
if (!kind) {
|
|
273
|
+
if (warning && process.env.NODE_ENV === "development") (0, import_warnOnce.warnRefusedValue)(property, warning === 1 ? source : raw, `unknown modifier "${source.slice(sourceStart, end)}"`);
|
|
274
|
+
return 0;
|
|
274
275
|
}
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
var
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
276
|
+
var slotStart = 0;
|
|
277
|
+
var duplicate = false;
|
|
278
|
+
var inserted = !key;
|
|
279
|
+
if (!key) key = modifier;
|
|
280
|
+
else {
|
|
281
|
+
while (slotStart <= key.length) {
|
|
282
|
+
var slotEnd = key.indexOf(":", slotStart);
|
|
283
|
+
if (slotEnd === -1) slotEnd = key.length;
|
|
284
|
+
var order = 0;
|
|
285
|
+
var compareLength = Math.min(modifier.length, slotEnd - slotStart);
|
|
286
|
+
for (var offset = 0; offset < compareLength; offset++) {
|
|
287
|
+
order = modifier.charCodeAt(offset) - key.charCodeAt(slotStart + offset);
|
|
288
|
+
if (order) break;
|
|
289
|
+
}
|
|
290
|
+
order || (order = modifier.length - (slotEnd - slotStart));
|
|
291
|
+
if (!order) {
|
|
292
|
+
duplicate = true;
|
|
293
|
+
break;
|
|
294
|
+
}
|
|
295
|
+
if (order < 0) {
|
|
296
|
+
key = `${key.slice(0, slotStart)}${modifier}:${key.slice(slotStart)}`;
|
|
297
|
+
inserted = true;
|
|
298
|
+
break;
|
|
299
|
+
}
|
|
300
|
+
if (slotEnd === key.length) break;
|
|
301
|
+
slotStart = slotEnd + 1;
|
|
292
302
|
}
|
|
293
|
-
|
|
303
|
+
if (!duplicate && !inserted) key += `:${modifier}`;
|
|
294
304
|
}
|
|
295
|
-
if (
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
var
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
kinds.push("media");
|
|
302
|
-
((_out2 = out).wrappers || (_out2.wrappers = [])).push(`@media ${query}`);
|
|
303
|
-
(_out3 = out).active && (_out3.active = !!((_state_flatMediaState = state.flatMediaState) === null || _state_flatMediaState === void 0 ? void 0 : _state_flatMediaState[modifier]));
|
|
304
|
-
((_state1 = state).flatMediaKeys || (_state1.flatMediaKeys = /* @__PURE__ */ new Set())).add(modifier);
|
|
305
|
+
if (duplicate) continue;
|
|
306
|
+
if (kind === import_runtime.modifierKindPlatform) {
|
|
307
|
+
if (rank > platformRank) platformRank = rank;
|
|
308
|
+
var matches = platformMatches(modifier);
|
|
309
|
+
active && (active = matches);
|
|
310
|
+
emit && (emit = matches);
|
|
305
311
|
continue;
|
|
306
312
|
}
|
|
307
|
-
|
|
313
|
+
depth++;
|
|
314
|
+
var nextCategory = kind === import_runtime.modifierKindMedia ? 0 : kind === 6 ? 1 : kind === import_runtime.modifierKindTheme ? 2 : kind === 5 ? 3 : 4;
|
|
315
|
+
if (nextCategory > categoryRank) {
|
|
316
|
+
categoryRank = nextCategory;
|
|
317
|
+
withinRank = rank;
|
|
318
|
+
} else if (nextCategory === categoryRank && rank > withinRank) withinRank = rank;
|
|
319
|
+
if (kind === import_runtime.modifierKindMedia) {
|
|
320
|
+
var _state_flatMediaState;
|
|
321
|
+
var _state;
|
|
322
|
+
var query = compiled.mediaQueries[modifier];
|
|
323
|
+
if (!query) return 0;
|
|
324
|
+
(wrappers || (wrappers = [])).push(`@media ${query}`);
|
|
325
|
+
active && (active = !!((_state_flatMediaState = state.flatMediaState) === null || _state_flatMediaState === void 0 ? void 0 : _state_flatMediaState[modifier]));
|
|
326
|
+
((_state = state).flatMediaKeys || (_state.flatMediaKeys = /* @__PURE__ */ new Set())).add(modifier);
|
|
327
|
+
} else if (kind === import_runtime.modifierKindTheme) {
|
|
308
328
|
var _state_flatThemeName;
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
var
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
329
|
+
theme = modifier;
|
|
330
|
+
selector += `:where(.t_${modifier}, .t_${modifier} *)`;
|
|
331
|
+
active && (active = state.flatThemeName === modifier || ((_state_flatThemeName = state.flatThemeName) === null || _state_flatThemeName === void 0 ? void 0 : _state_flatThemeName.startsWith(`${modifier}_`)) === true);
|
|
332
|
+
} else if (kind === 5) {
|
|
333
|
+
var _state_componentState_group, _state_flatGroupContext, _this;
|
|
334
|
+
var _state1;
|
|
335
|
+
selector += `:where(.t_group_${groupName}${stateSelector} *)`;
|
|
336
|
+
if (rank === 0) (wrappers || (wrappers = [])).push("@media (hover: hover)");
|
|
337
|
+
var component = (_state_componentState_group = state.componentState.group) === null || _state_componentState_group === void 0 ? void 0 : _state_componentState_group[groupName];
|
|
338
|
+
var context = (_state_flatGroupContext = state.flatGroupContext) === null || _state_flatGroupContext === void 0 ? void 0 : _state_flatGroupContext[groupName];
|
|
339
|
+
var _component_pseudo;
|
|
340
|
+
active && (active = !!((_this = (_component_pseudo = component === null || component === void 0 ? void 0 : component.pseudo) !== null && _component_pseudo !== void 0 ? _component_pseudo : context === null || context === void 0 ? void 0 : context.state.pseudo) === null || _this === void 0 ? void 0 : _this[conditionStateName]));
|
|
341
|
+
((_state1 = state).flatGroupKeys || (_state1.flatGroupKeys = /* @__PURE__ */ new Set())).add(groupName);
|
|
342
|
+
} else if (kind === 6) {
|
|
343
|
+
var _state_componentState_group1, _state_flatGroupContext1, _component_media;
|
|
344
|
+
var _state2, _state3;
|
|
345
|
+
var groupKey = `@${containerName}`;
|
|
346
|
+
(wrappers || (wrappers = [])).push(containerName ? `@container ${containerName} ${containerQuery}` : `@container ${containerQuery}`);
|
|
347
|
+
var component1 = (_state_componentState_group1 = state.componentState.group) === null || _state_componentState_group1 === void 0 ? void 0 : _state_componentState_group1[groupKey];
|
|
348
|
+
var context1 = (_state_flatGroupContext1 = state.flatGroupContext) === null || _state_flatGroupContext1 === void 0 ? void 0 : _state_flatGroupContext1[groupKey];
|
|
349
|
+
var match = component1 === null || component1 === void 0 ? void 0 : (_component_media = component1.media) === null || _component_media === void 0 ? void 0 : _component_media[containerSize];
|
|
350
|
+
active && (active = match === void 0 ? !!((context1 === null || context1 === void 0 ? void 0 : context1.state.layout) && (0, import_useMedia.mediaKeyMatch)(containerSize, context1.state.layout)) : !!match);
|
|
351
|
+
((_state2 = state).flatGroupKeys || (_state2.flatGroupKeys = /* @__PURE__ */ new Set())).add(groupKey);
|
|
352
|
+
((_state3 = state).flatGroupMedia || (_state3.flatGroupMedia = /* @__PURE__ */ new Set())).add(containerSize);
|
|
353
|
+
} else {
|
|
354
|
+
selfStateSpecificity++;
|
|
355
|
+
if (!import_constants.isWeb && stateSelector[0] === "[" && modifier !== "disabled") unsupportedState = modifier;
|
|
356
|
+
if (stateSelector[0] === ".") {
|
|
357
|
+
selector += `:is(${stateSelector}, ${stateSelector} *)`;
|
|
358
|
+
if (rank === 6) enter = true;
|
|
359
|
+
else exit = true;
|
|
360
|
+
} else selector += stateSelector;
|
|
361
|
+
if (rank === 0) (wrappers || (wrappers = [])).push("@media (hover: hover)");
|
|
362
|
+
var component2 = state.componentState;
|
|
363
|
+
active && (active = rank === 0 ? !!component2.hover : rank === 4 ? !!(component2.press || component2.pressIn) : rank === 2 ? !!component2.focus : rank === 3 ? !!component2.focusVisible : rank === 1 ? !!component2.focusWithin : rank === 5 ? !!(component2.disabled || state.props.disabled) : rank === 6 ? !!component2.unmounted : rank === 7 ? !!state.styleProps.isExiting : false);
|
|
364
|
+
if (stateSelector[0] === ":") {
|
|
365
|
+
var _state4;
|
|
366
|
+
((_state4 = state).flatStateKeys || (_state4.flatStateKeys = /* @__PURE__ */ new Set())).add(modifier);
|
|
367
|
+
}
|
|
325
368
|
}
|
|
326
|
-
return null;
|
|
327
369
|
}
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
370
|
+
if (depth > 5) throw new Error(`a flat value clause supports at most 5 non-platform conditions; received ${depth} in "${source.slice(sourceStart, end)}:"`);
|
|
371
|
+
var condition = (platformRank << 26 | depth << 23 | categoryRank << 20 | withinRank) * 256 + selfStateSpecificity * 32 + 16 + (active ? 1 : 0) + (emit ? 2 : 0) + (enter ? 4 : 0) + (exit ? 8 : 0);
|
|
372
|
+
if (warning && unsupportedState && process.env.NODE_ENV === "development") (0, import_warnOnce.warnOnce)(`${property}: "${unsupportedState}:" has no native component-state source; dropping the clause`);
|
|
373
|
+
if (merge && property && condition & 2 && (condition & 1 || import_constants.isWeb && state.flatShouldDoClasses || warning === 1 && !import_constants.isWeb && theme && import_constants.supportsDynamicColorIOS && (0, import_getDynamicVal.isColorStyleKey)(property))) {
|
|
374
|
+
var value = payloadStart === -1 ? raw : source.slice(payloadStart, payloadEnd);
|
|
375
|
+
emitValue(state, property, value, condition, key, wrappers, selector, theme, merge, warning === 2 ? originalValue : originalValue !== null && originalValue !== void 0 ? originalValue : value, contextOnly);
|
|
376
|
+
}
|
|
377
|
+
return condition;
|
|
332
378
|
}
|
|
333
379
|
var tokenLookup = {
|
|
334
380
|
value: void 0,
|
|
@@ -398,7 +444,7 @@ function configuredValue(state, property, raw) {
|
|
|
398
444
|
opacity = amount;
|
|
399
445
|
}
|
|
400
446
|
}
|
|
401
|
-
var safeArea =
|
|
447
|
+
var safeArea = (0, import_resolveSafeAreaVariable.resolveSafeAreaVariable)(name);
|
|
402
448
|
if (safeArea !== void 0) {
|
|
403
449
|
state.flatUsesSafeArea = true;
|
|
404
450
|
return safeArea;
|
|
@@ -479,15 +525,15 @@ function normalizeTransitionNames(state, raw) {
|
|
|
479
525
|
function directStyleSignature(property, value) {
|
|
480
526
|
return `${property}${arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ""}${String(value)}`;
|
|
481
527
|
}
|
|
482
|
-
function directAtomic(state, property, value, condition) {
|
|
483
|
-
var isDefault = arguments.length >
|
|
528
|
+
function directAtomic(state, property, value, condition, conditionKey, conditionWrappers, conditionSelector) {
|
|
529
|
+
var isDefault = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : false;
|
|
484
530
|
var _state;
|
|
485
531
|
var atomics = (_state = state).flatAtomics || (_state.flatAtomics = {});
|
|
486
532
|
var atomicKey = property.startsWith("transition") ? "transition" : property;
|
|
487
533
|
var existing = atomics[atomicKey];
|
|
488
|
-
var contribution = directStyleSignature(property, value,
|
|
534
|
+
var contribution = directStyleSignature(property, value, conditionKey);
|
|
489
535
|
var signature = existing ? existing.signature + contribution : contribution;
|
|
490
|
-
var next = (0, import_getCSSStylesAtomic.getCSSStyleAtomic)(property, value,
|
|
536
|
+
var next = (0, import_getCSSStylesAtomic.getCSSStyleAtomic)(property, value, conditionSelector, conditionWrappers, signature, true, atomicKey, condition ? 1 + (Math.floor(condition / 256) >>> 23 & 7) + (Math.floor(condition / 256) >>> 26) * 6 - (condition >>> 5 & 7) : void 0);
|
|
491
537
|
if (!next) return;
|
|
492
538
|
var identifier = next[import_helpers.StyleObjectIdentifier];
|
|
493
539
|
var nextRules = next[import_helpers.StyleObjectRules];
|
|
@@ -499,15 +545,12 @@ function directAtomic(state, property, value, condition) {
|
|
|
499
545
|
signature,
|
|
500
546
|
styleObject: next
|
|
501
547
|
};
|
|
502
|
-
if (slotted) {
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
default: isDefault
|
|
509
|
-
} };
|
|
510
|
-
}
|
|
548
|
+
if (slotted) atomic.conditions = { [atomicKey === "transition" ? `${conditionKey}\0${property}` : conditionKey]: {
|
|
549
|
+
count: nextRules.length,
|
|
550
|
+
index: 0,
|
|
551
|
+
precedence: condition ? Math.floor(condition / 256) : 0,
|
|
552
|
+
default: isDefault
|
|
553
|
+
} };
|
|
511
554
|
atomics[atomicKey] = atomic;
|
|
512
555
|
} else {
|
|
513
556
|
var previousIdentifier = existing.styleObject[import_helpers.StyleObjectIdentifier];
|
|
@@ -530,7 +573,7 @@ function directAtomic(state, property, value, condition) {
|
|
|
530
573
|
if (slotted) {
|
|
531
574
|
var _existing_conditions;
|
|
532
575
|
var _existing;
|
|
533
|
-
var slot = atomicKey === "transition" ? `${
|
|
576
|
+
var slot = atomicKey === "transition" ? `${conditionKey}\0${property}` : conditionKey;
|
|
534
577
|
var previous = (_existing_conditions = existing.conditions) === null || _existing_conditions === void 0 ? void 0 : _existing_conditions[slot];
|
|
535
578
|
if (previous) {
|
|
536
579
|
rules.splice(previous.index, previous.count);
|
|
@@ -540,8 +583,7 @@ function directAtomic(state, property, value, condition) {
|
|
|
540
583
|
}
|
|
541
584
|
delete existing.conditions[slot];
|
|
542
585
|
}
|
|
543
|
-
var
|
|
544
|
-
var precedence = (_condition_precedence1 = condition === null || condition === void 0 ? void 0 : condition.precedence) !== null && _condition_precedence1 !== void 0 ? _condition_precedence1 : 0;
|
|
586
|
+
var precedence = condition ? Math.floor(condition / 256) : 0;
|
|
545
587
|
var insertionIndex = rules.length;
|
|
546
588
|
if (existing.conditions) {
|
|
547
589
|
for (var key2 in existing.conditions) {
|
|
@@ -572,14 +614,14 @@ function directAtomic(state, property, value, condition) {
|
|
|
572
614
|
}
|
|
573
615
|
state.classNames[atomicKey] = identifier;
|
|
574
616
|
}
|
|
575
|
-
function emitBorderStyleDefault(state, property, condition) {
|
|
617
|
+
function emitBorderStyleDefault(state, property, condition, conditionKey, conditionWrappers, conditionSelector) {
|
|
576
618
|
var _state_flatAtomics, _atomic_conditions;
|
|
577
619
|
if (!import_constants.isWeb || !state.flatShouldDoClasses || state.styleProps.noNormalize === false) return;
|
|
578
620
|
var target = borderStyleDefaults[property];
|
|
579
621
|
if (!target) return;
|
|
580
622
|
var atomic = (_state_flatAtomics = state.flatAtomics) === null || _state_flatAtomics === void 0 ? void 0 : _state_flatAtomics[target];
|
|
581
|
-
if ((atomic === null || atomic === void 0 ? void 0 : atomic.baseRules) || state.classNames[target] && !atomic || condition && (atomic === null || atomic === void 0 ? void 0 : (_atomic_conditions = atomic.conditions) === null || _atomic_conditions === void 0 ? void 0 : _atomic_conditions[
|
|
582
|
-
directAtomic(state, target, "solid", condition, true);
|
|
623
|
+
if ((atomic === null || atomic === void 0 ? void 0 : atomic.baseRules) || state.classNames[target] && !atomic || condition && (atomic === null || atomic === void 0 ? void 0 : (_atomic_conditions = atomic.conditions) === null || _atomic_conditions === void 0 ? void 0 : _atomic_conditions[conditionKey])) return;
|
|
624
|
+
directAtomic(state, target, "solid", condition, conditionKey, conditionWrappers, conditionSelector, true);
|
|
583
625
|
}
|
|
584
626
|
function flushDirectStyles(state) {
|
|
585
627
|
var clear = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
@@ -599,24 +641,24 @@ function flushDirectStyles(state) {
|
|
|
599
641
|
function getDirectDynamicThemeAccess(state) {
|
|
600
642
|
return state.flatDynamicThemeAccess;
|
|
601
643
|
}
|
|
602
|
-
function emitProperty(state, property, value, condition, merge, originalValue, contextOnly) {
|
|
644
|
+
function emitProperty(state, property, value, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly) {
|
|
603
645
|
var _state_animationDriver, _state_flatActiveConditions;
|
|
604
646
|
var _state, _state1;
|
|
605
647
|
var direct = state;
|
|
606
|
-
if (condition
|
|
607
|
-
if (condition
|
|
608
|
-
if (!import_constants.isWeb &&
|
|
648
|
+
if (condition & 4) ((_state = state).flatEnterKeys || (_state.flatEnterKeys = /* @__PURE__ */ new Set())).add(property);
|
|
649
|
+
if (condition & 8) ((_state1 = state).flatExitKeys || (_state1.flatExitKeys = /* @__PURE__ */ new Set())).add(property);
|
|
650
|
+
if (!import_constants.isWeb && conditionTheme) {
|
|
609
651
|
if (import_constants.supportsDynamicColorIOS && (0, import_getDynamicVal.isColorStyleKey)(property)) {
|
|
610
652
|
var _direct, _ref, _property;
|
|
611
653
|
var schemes = (_ref = (_direct = direct).flatDynamicColors || (_direct.flatDynamicColors = {}))[_property = property] || (_ref[_property] = {});
|
|
612
|
-
schemes[
|
|
654
|
+
schemes[conditionTheme] = typeof originalValue === "string" && /^[a-z]+$/i.test(originalValue) ? originalValue : value;
|
|
613
655
|
merge(state, property, { dynamic: { ...schemes } }, 1, false, originalValue);
|
|
614
656
|
return;
|
|
615
657
|
}
|
|
616
658
|
direct.flatDynamicThemeAccess = true;
|
|
617
659
|
}
|
|
618
660
|
if (contextOnly) {
|
|
619
|
-
if (!condition || condition
|
|
661
|
+
if (!condition || condition & 1) {
|
|
620
662
|
var _state2;
|
|
621
663
|
((_state2 = state).overriddenContextProps || (_state2.overriddenContextProps = {}))[property] = originalValue;
|
|
622
664
|
}
|
|
@@ -627,16 +669,17 @@ function emitProperty(state, property, value, condition, merge, originalValue, c
|
|
|
627
669
|
if (!condition) {
|
|
628
670
|
if (state.style) delete state.style[property];
|
|
629
671
|
}
|
|
630
|
-
directAtomic(state, property, value, condition);
|
|
672
|
+
directAtomic(state, property, value, condition, conditionKey, conditionWrappers, conditionSelector);
|
|
631
673
|
return;
|
|
632
674
|
}
|
|
633
675
|
if (condition) {
|
|
634
676
|
var _direct_flatPrecedence;
|
|
635
677
|
var _direct1, _state3;
|
|
636
|
-
if (!condition
|
|
678
|
+
if (!(condition & 1)) return;
|
|
679
|
+
var precedence = Math.floor(condition / 256);
|
|
637
680
|
var previous = (_direct_flatPrecedence = direct.flatPrecedence) === null || _direct_flatPrecedence === void 0 ? void 0 : _direct_flatPrecedence[property];
|
|
638
|
-
if (previous !== void 0 &&
|
|
639
|
-
((_direct1 = direct).flatPrecedence || (_direct1.flatPrecedence = {}))[property] =
|
|
681
|
+
if (previous !== void 0 && precedence < previous) return;
|
|
682
|
+
((_direct1 = direct).flatPrecedence || (_direct1.flatPrecedence = {}))[property] = precedence;
|
|
640
683
|
((_state3 = state).flatActiveConditions || (_state3.flatActiveConditions = {}))[property] = true;
|
|
641
684
|
} else if ((_state_flatActiveConditions = state.flatActiveConditions) === null || _state_flatActiveConditions === void 0 ? void 0 : _state_flatActiveConditions[property]) return;
|
|
642
685
|
merge(state, property, value, 1, true, originalValue);
|
|
@@ -663,7 +706,7 @@ function splitComponents(value) {
|
|
|
663
706
|
}
|
|
664
707
|
return parts;
|
|
665
708
|
}
|
|
666
|
-
function emitBorder(state, property, raw, condition, merge, originalValue, contextOnly) {
|
|
709
|
+
function emitBorder(state, property, raw, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly) {
|
|
667
710
|
if (!import_constants.isWeb && (property === "borderBlock" || property === "borderInline")) {
|
|
668
711
|
if (process.env.NODE_ENV === "development") (0, import_warnOnce.warnOnce)(`RN has no logical border shorthand "${property}"; dropping it`);
|
|
669
712
|
return;
|
|
@@ -697,7 +740,7 @@ function emitBorder(state, property, raw, condition, merge, originalValue, conte
|
|
|
697
740
|
try {
|
|
698
741
|
for (var _iterator1 = targets.width[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
|
|
699
742
|
var target = _step1.value;
|
|
700
|
-
emitResolved(state, target, width, condition, merge, originalValue, contextOnly);
|
|
743
|
+
emitResolved(state, target, width, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
|
|
701
744
|
}
|
|
702
745
|
} catch (err) {
|
|
703
746
|
_didIteratorError1 = true;
|
|
@@ -716,7 +759,7 @@ function emitBorder(state, property, raw, condition, merge, originalValue, conte
|
|
|
716
759
|
try {
|
|
717
760
|
for (var _iterator2 = styleTargets[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
|
|
718
761
|
var target1 = _step2.value;
|
|
719
|
-
emitProperty(state, target1, style, condition, merge, originalValue, contextOnly);
|
|
762
|
+
emitProperty(state, target1, style, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
|
|
720
763
|
}
|
|
721
764
|
} catch (err) {
|
|
722
765
|
_didIteratorError2 = true;
|
|
@@ -734,7 +777,7 @@ function emitBorder(state, property, raw, condition, merge, originalValue, conte
|
|
|
734
777
|
try {
|
|
735
778
|
for (var _iterator3 = targets.color[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
|
|
736
779
|
var target2 = _step3.value;
|
|
737
|
-
emitResolved(state, target2, color, condition, merge, originalValue, contextOnly);
|
|
780
|
+
emitResolved(state, target2, color, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
|
|
738
781
|
}
|
|
739
782
|
} catch (err) {
|
|
740
783
|
_didIteratorError3 = true;
|
|
@@ -748,12 +791,12 @@ function emitBorder(state, property, raw, condition, merge, originalValue, conte
|
|
|
748
791
|
}
|
|
749
792
|
}
|
|
750
793
|
}
|
|
751
|
-
function emitTextDecoration(state, raw, condition, merge, originalValue, contextOnly) {
|
|
794
|
+
function emitTextDecoration(state, raw, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly) {
|
|
752
795
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
753
796
|
try {
|
|
754
797
|
for (var _iterator = splitComponents(raw)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
755
798
|
var part = _step.value;
|
|
756
|
-
emitResolved(state, part === "solid" || part === "double" || part === "dotted" || part === "dashed" || part === "wavy" ? "textDecorationStyle" : part === "underline" || part === "overline" || part === "line-through" || part === "none" ? "textDecorationLine" : "textDecorationColor", part, condition, merge, originalValue, contextOnly);
|
|
799
|
+
emitResolved(state, part === "solid" || part === "double" || part === "dotted" || part === "dashed" || part === "wavy" ? "textDecorationStyle" : part === "underline" || part === "overline" || part === "line-through" || part === "none" ? "textDecorationLine" : "textDecorationColor", part, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
|
|
757
800
|
}
|
|
758
801
|
} catch (err) {
|
|
759
802
|
_didIteratorError = true;
|
|
@@ -779,12 +822,12 @@ function addComposition(state, property) {
|
|
|
779
822
|
}
|
|
780
823
|
state.classNames[property] = identifier;
|
|
781
824
|
}
|
|
782
|
-
function emitTransform(state, property, value, condition, merge, originalValue, contextOnly) {
|
|
825
|
+
function emitTransform(state, property, value, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly) {
|
|
783
826
|
if (!import_constants.isWeb || !state.flatShouldDoClasses) {
|
|
784
827
|
if (!import_constants.isWeb && property === "scale") {
|
|
785
|
-
emitProperty(state, "scaleX", value, condition, merge, originalValue, contextOnly);
|
|
786
|
-
emitProperty(state, "scaleY", value, condition, merge, originalValue, contextOnly);
|
|
787
|
-
} else emitProperty(state, property, value, condition, merge, originalValue, contextOnly);
|
|
828
|
+
emitProperty(state, "scaleX", value, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
|
|
829
|
+
emitProperty(state, "scaleY", value, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
|
|
830
|
+
} else emitProperty(state, property, value, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
|
|
788
831
|
return;
|
|
789
832
|
}
|
|
790
833
|
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"];
|
|
@@ -797,7 +840,7 @@ function emitTransform(state, property, value, condition, merge, originalValue,
|
|
|
797
840
|
if (target === "--t-x" || target === "--t-y") targetValue = `${targetValue}px`;
|
|
798
841
|
else if (target === "rotate") targetValue = `${targetValue}deg`;
|
|
799
842
|
}
|
|
800
|
-
emitProperty(state, target, targetValue, condition, merge, originalValue, contextOnly);
|
|
843
|
+
emitProperty(state, target, targetValue, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
|
|
801
844
|
if (target === "--t-x" || target === "--t-y") addComposition(state, "translate");
|
|
802
845
|
else if (target.startsWith("--t-scale")) addComposition(state, "scale");
|
|
803
846
|
}
|
|
@@ -812,14 +855,14 @@ function emitTransform(state, property, value, condition, merge, originalValue,
|
|
|
812
855
|
}
|
|
813
856
|
}
|
|
814
857
|
}
|
|
815
|
-
function emitResolved(state, property, raw, condition, merge, originalValue, contextOnly) {
|
|
858
|
+
function emitResolved(state, property, raw, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly) {
|
|
816
859
|
var value = configuredValue(state, property, raw);
|
|
817
860
|
if (value === raw && /[\s,(]/.test(raw)) value = resolveEmbeddedTokens(state, property, raw);
|
|
818
861
|
if ((!import_constants.isWeb || !state.flatShouldDoClasses) && typeof value === "string") {
|
|
819
862
|
if (/^-?(?:\d+\.?\d*|\.\d+)(?:px|dp)$/i.test(value)) value = Number.parseFloat(value);
|
|
820
863
|
else if (value !== "" && Number.isFinite(Number(value))) value = Number(value);
|
|
821
864
|
}
|
|
822
|
-
emitProperty(state, property, value, condition, merge, originalValue, contextOnly);
|
|
865
|
+
emitProperty(state, property, value, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
|
|
823
866
|
}
|
|
824
867
|
function shadowUnit(part) {
|
|
825
868
|
return typeof part === "number" ? `${part}px` : part || "0px";
|
|
@@ -836,7 +879,7 @@ function emitWebShadow(state, property, value, merge, originalValue, contextOnly
|
|
|
836
879
|
var color = (0, import_normalizeColor.normalizeColor)(shadow.shadowColor, (_shadow_shadowOpacity = shadow.shadowOpacity) !== null && _shadow_shadowOpacity !== void 0 ? _shadow_shadowOpacity : 1);
|
|
837
880
|
if (!color) return;
|
|
838
881
|
var next = `${shadowUnit(offset.width)} ${shadowUnit(offset.height)} ${shadowUnit(shadow.shadowRadius)} ${color}`;
|
|
839
|
-
emitProperty(state, "boxShadow", state.flatBoxShadow ? `${state.flatBoxShadow}, ${next}` : next,
|
|
882
|
+
emitProperty(state, "boxShadow", state.flatBoxShadow ? `${state.flatBoxShadow}, ${next}` : next, 0, "", void 0, "", "", merge, originalValue, contextOnly);
|
|
840
883
|
}
|
|
841
884
|
function emitWebTextShadow(state, property, value, merge, originalValue, contextOnly) {
|
|
842
885
|
var _state;
|
|
@@ -847,12 +890,12 @@ function emitWebTextShadow(state, property, value, merge, originalValue, context
|
|
|
847
890
|
height: 0
|
|
848
891
|
};
|
|
849
892
|
if (!shadow.textShadowColor) return;
|
|
850
|
-
emitProperty(state, "textShadow", `${shadowUnit(offset.width)} ${shadowUnit(offset.height)} ${shadowUnit(shadow.textShadowRadius)} ${shadow.textShadowColor}`,
|
|
893
|
+
emitProperty(state, "textShadow", `${shadowUnit(offset.width)} ${shadowUnit(offset.height)} ${shadowUnit(shadow.textShadowRadius)} ${shadow.textShadowColor}`, 0, "", void 0, "", "", merge, originalValue, contextOnly);
|
|
851
894
|
}
|
|
852
|
-
function emitValue(state, property, raw, condition, merge, originalValue, contextOnly) {
|
|
895
|
+
function emitValue(state, property, raw, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly) {
|
|
853
896
|
if (typeof raw === "string") raw = raw.trim();
|
|
854
897
|
if ((0, import_createVariable.isVariable)(raw)) raw = (0, import_resolveVariableValue.resolveVariableValue)(property, raw, import_constants.isWeb && !state.flatShouldDoClasses && state.styleProps.resolveValues === "auto" ? "value" : state.styleProps.resolveValues);
|
|
855
|
-
emitBorderStyleDefault(state, property, condition);
|
|
898
|
+
emitBorderStyleDefault(state, property, condition, conditionKey, conditionWrappers, conditionSelector);
|
|
856
899
|
if (typeof raw === "string" && (property === "transition" || property === "transitionProperty")) raw = normalizeTransitionNames(state, raw);
|
|
857
900
|
if (legacyTransformParts.has(property)) {
|
|
858
901
|
if (import_constants.isWeb && state.flatShouldDoClasses && state.classNames.transform) {
|
|
@@ -866,8 +909,8 @@ function emitValue(state, property, raw, condition, merge, originalValue, contex
|
|
|
866
909
|
((_direct = direct).flatLegacyTransforms || (_direct.flatLegacyTransforms = {}))[property] = value;
|
|
867
910
|
emitProperty(state, "transform", (0, import_transformsToString.transformsToString)(Object.keys(direct.flatLegacyTransforms).sort().map(function(key2) {
|
|
868
911
|
return { [key2]: direct.flatLegacyTransforms[key2] };
|
|
869
|
-
})),
|
|
870
|
-
} else if (condition && import_constants.isWeb && state.flatShouldDoClasses) emitProperty(state, "transform", `${property}(${value})`, condition, merge, originalValue, contextOnly);
|
|
912
|
+
})), 0, "", void 0, "", "", merge, originalValue, contextOnly);
|
|
913
|
+
} else if (condition && import_constants.isWeb && state.flatShouldDoClasses) emitProperty(state, "transform", `${property}(${value})`, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
|
|
871
914
|
else merge(state, property, value, 1, false, originalValue);
|
|
872
915
|
return;
|
|
873
916
|
}
|
|
@@ -896,17 +939,17 @@ function emitValue(state, property, raw, condition, merge, originalValue, contex
|
|
|
896
939
|
}
|
|
897
940
|
if (import_constants.isWeb && state.flatShouldDoClasses && property === "transform" && Array.isArray(raw)) raw = (0, import_transformsToString.transformsToString)(raw);
|
|
898
941
|
if (typeof raw === "string" && property in borderTargets) {
|
|
899
|
-
emitBorder(state, property, raw, condition, merge, originalValue, contextOnly);
|
|
942
|
+
emitBorder(state, property, raw, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
|
|
900
943
|
return;
|
|
901
944
|
}
|
|
902
945
|
if (typeof raw === "string" && property === "textDecoration") {
|
|
903
|
-
emitTextDecoration(state, raw, condition, merge, originalValue, contextOnly);
|
|
946
|
+
emitTextDecoration(state, raw, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
|
|
904
947
|
return;
|
|
905
948
|
}
|
|
906
949
|
if (typeof raw === "string" && property === "background") {
|
|
907
950
|
var parts = splitComponents(raw);
|
|
908
951
|
if (parts.length === 1 && !/^(?:url|image-set|.*gradient)\(/i.test(parts[0])) {
|
|
909
|
-
emitResolved(state, "backgroundColor", parts[0], condition, merge, originalValue, contextOnly);
|
|
952
|
+
emitResolved(state, "backgroundColor", parts[0], condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
|
|
910
953
|
return;
|
|
911
954
|
}
|
|
912
955
|
if (!import_constants.isWeb) {
|
|
@@ -919,24 +962,24 @@ function emitValue(state, property, raw, condition, merge, originalValue, contex
|
|
|
919
962
|
if ((!import_constants.isWeb || !state.flatShouldDoClasses) && typeof value3 === "string" && !value3.startsWith(import_themeRef.THEME_REF_PREFIX)) {
|
|
920
963
|
if (property === "rotate" && !/^-?(?:\d+\.?\d*|\.\d+)(?:deg|rad)$/i.test(value3)) {
|
|
921
964
|
if (process.env.NODE_ENV === "development") (0, import_warnOnce.warnOnce)(`native transform "${property}" cannot represent "${value3}"; dropping it`);
|
|
922
|
-
if (
|
|
965
|
+
if (condition & 1 && state.flatTransforms) delete state.flatTransforms[property];
|
|
923
966
|
return;
|
|
924
967
|
}
|
|
925
968
|
if (/^-?(?:\d+\.?\d*|\.\d+)(?:px|dp)$/i.test(value3)) value3 = Number.parseFloat(value3);
|
|
926
969
|
else if (Number.isFinite(Number(value3))) value3 = Number(value3);
|
|
927
970
|
}
|
|
928
|
-
emitTransform(state, property, value3, condition, merge, originalValue, contextOnly);
|
|
971
|
+
emitTransform(state, property, value3, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
|
|
929
972
|
return;
|
|
930
973
|
}
|
|
931
974
|
if (import_constants.isWeb && !state.flatShouldDoClasses && !condition && property === "borderRadius") {
|
|
932
|
-
if (typeof raw === "string") emitResolved(state, property, raw, condition, merge, originalValue, contextOnly);
|
|
933
|
-
else emitProperty(state, property, raw, condition, merge, originalValue, contextOnly);
|
|
975
|
+
if (typeof raw === "string") emitResolved(state, property, raw, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
|
|
976
|
+
else emitProperty(state, property, raw, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
|
|
934
977
|
return;
|
|
935
978
|
}
|
|
936
979
|
if (property === "transform" && typeof raw === "string") {
|
|
937
980
|
var transform = (0, import_parseNativeTransform.parseNativeTransform)(raw);
|
|
938
981
|
if (transform) {
|
|
939
|
-
emitProperty(state, property, transform, condition, merge, originalValue, contextOnly);
|
|
982
|
+
emitProperty(state, property, transform, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
|
|
940
983
|
return;
|
|
941
984
|
}
|
|
942
985
|
}
|
|
@@ -958,7 +1001,7 @@ function emitValue(state, property, raw, condition, merge, originalValue, contex
|
|
|
958
1001
|
try {
|
|
959
1002
|
for (var _iterator = parsed[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
960
1003
|
var [key, parsedValue] = _step.value;
|
|
961
|
-
emitProperty(state, key, parsedValue, condition, merge, originalValue, contextOnly);
|
|
1004
|
+
emitProperty(state, key, parsedValue, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
|
|
962
1005
|
}
|
|
963
1006
|
} catch (err) {
|
|
964
1007
|
_didIteratorError = true;
|
|
@@ -970,14 +1013,14 @@ function emitValue(state, property, raw, condition, merge, originalValue, contex
|
|
|
970
1013
|
if (_didIteratorError) throw _iteratorError;
|
|
971
1014
|
}
|
|
972
1015
|
}
|
|
973
|
-
} else emitProperty(state, property === "backgroundImage" ? "experimental_backgroundImage" : property, parsed, condition, merge, originalValue, contextOnly);
|
|
1016
|
+
} else emitProperty(state, property === "backgroundImage" ? "experimental_backgroundImage" : property, parsed, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
|
|
974
1017
|
return;
|
|
975
1018
|
}
|
|
976
1019
|
}
|
|
977
1020
|
if (!import_constants.isWeb && property === "fontVariant" && typeof value4 === "string") value4 = value4.split(/[,\s]+/).filter(Boolean);
|
|
978
1021
|
var expanded = state.styleProps.noExpand ? null : (0, import_expandStyle.expandStyle)(property, value4, state.conf.settings.styleCompat || "web");
|
|
979
1022
|
if (!expanded) {
|
|
980
|
-
emitProperty(state, property, value4, condition, merge, originalValue, contextOnly);
|
|
1023
|
+
emitProperty(state, property, value4, condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
|
|
981
1024
|
return;
|
|
982
1025
|
}
|
|
983
1026
|
if (typeof raw === "string" && expanded.length > 1) {
|
|
@@ -985,103 +1028,35 @@ function emitValue(state, property, raw, condition, merge, originalValue, contex
|
|
|
985
1028
|
if (parts1.length > 0 && parts1.length <= (expanded.length === 4 ? 4 : 2)) {
|
|
986
1029
|
for (var index = 0; index < expanded.length; index++) {
|
|
987
1030
|
var partIndex = index === 0 || parts1.length === 1 ? 0 : index === 1 || index === 3 && parts1.length < 4 ? 1 : index === 2 && parts1.length < 3 ? 0 : index;
|
|
988
|
-
emitResolved(state, expanded[index][0], parts1[partIndex], condition, merge, originalValue, contextOnly);
|
|
1031
|
+
emitResolved(state, expanded[index][0], parts1[partIndex], condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
|
|
989
1032
|
}
|
|
990
1033
|
return;
|
|
991
1034
|
}
|
|
992
1035
|
}
|
|
993
|
-
for (var index1 = 0; index1 < expanded.length; index1++) emitProperty(state, expanded[index1][0], expanded[index1][1], condition, merge, originalValue, contextOnly);
|
|
994
|
-
}
|
|
995
|
-
function emitSegment(state, property, source, start, end, condition, merge, originalValue, contextOnly) {
|
|
996
|
-
while (start < end && source.charCodeAt(start) <= 32) start++;
|
|
997
|
-
while (end > start && source.charCodeAt(end - 1) <= 32) end--;
|
|
998
|
-
if (start === end) return false;
|
|
999
|
-
if (!condition || condition.emit && (condition.active || import_constants.isWeb && state.flatShouldDoClasses || !import_constants.isWeb && condition.theme && import_constants.supportsDynamicColorIOS && (0, import_getDynamicVal.isColorStyleKey)(property))) {
|
|
1000
|
-
var value = source.slice(start, end);
|
|
1001
|
-
emitValue(state, property, value, condition, merge, value, contextOnly);
|
|
1002
|
-
}
|
|
1003
|
-
return true;
|
|
1036
|
+
for (var index1 = 0; index1 < expanded.length; index1++) emitProperty(state, expanded[index1][0], expanded[index1][1], condition, conditionKey, conditionWrappers, conditionSelector, conditionTheme, merge, originalValue, contextOnly);
|
|
1004
1037
|
}
|
|
1005
1038
|
function contributeStyleString(state, property, source, merge, originalValue) {
|
|
1006
1039
|
var contextOnly = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : false;
|
|
1007
|
-
if (process.env.TAMAGUI_RUNTIME_STYLE_VALUE_GRAMMAR === "disabled") {
|
|
1008
|
-
emitValue(state, property, source, null, merge, originalValue !== null && originalValue !== void 0 ? originalValue : source, contextOnly);
|
|
1009
|
-
return true;
|
|
1010
|
-
}
|
|
1011
1040
|
if (import_constants.isWeb && source.indexOf(":") !== -1 && (webShadowParts.has(property) || legacyTransformParts.has(property))) {
|
|
1012
1041
|
if (process.env.NODE_ENV === "development") (0, import_warnOnce.warnOnce)(`conditional "${property}" needs its composite property; dropping it`);
|
|
1013
1042
|
return true;
|
|
1014
1043
|
}
|
|
1015
1044
|
if (source.indexOf(":") === -1) {
|
|
1016
|
-
emitValue(state, property, source,
|
|
1017
|
-
return true;
|
|
1018
|
-
}
|
|
1019
|
-
var conditions = [];
|
|
1020
|
-
var starts = [];
|
|
1021
|
-
var ends = [];
|
|
1022
|
-
var pending = null;
|
|
1023
|
-
var refused = "";
|
|
1024
|
-
var lifecycle = false;
|
|
1025
|
-
(0, import_runtime.scanFlatValue)(source, {
|
|
1026
|
-
segment(start, end, isBase) {
|
|
1027
|
-
if (start === end) {
|
|
1028
|
-
if (!isBase && !refused) refused = "a conditional clause has no value";
|
|
1029
|
-
return;
|
|
1030
|
-
}
|
|
1031
|
-
conditions.push(pending);
|
|
1032
|
-
starts.push(start);
|
|
1033
|
-
ends.push(end);
|
|
1034
|
-
},
|
|
1035
|
-
chain(start, end) {
|
|
1036
|
-
if (refused) return false;
|
|
1037
|
-
var next = getCondition(state, source.slice(start, end));
|
|
1038
|
-
if (!next) {
|
|
1039
|
-
refused = `unknown modifier "${source.slice(start, end)}"`;
|
|
1040
|
-
return false;
|
|
1041
|
-
}
|
|
1042
|
-
if (process.env.NODE_ENV === "development" && next.unsupportedState) (0, import_warnOnce.warnOnce)(`${property}: "${next.unsupportedState}:" has no native component-state source; dropping the clause`);
|
|
1043
|
-
pending = next;
|
|
1044
|
-
lifecycle || (lifecycle = !!(next.enter || next.exit));
|
|
1045
|
-
return true;
|
|
1046
|
-
},
|
|
1047
|
-
error(code, index2) {
|
|
1048
|
-
if (refused) return;
|
|
1049
|
-
refused = code === "invalid-character" ? `"${source[index2]}" would end the declaration or rule` : code === "unterminated-string" ? "an unterminated string" : code === "unterminated-comment" ? "an unterminated \"/*\" comment" : code === "stray-comment-close" ? "a stray \"*/\"" : "an unterminated \"(\"";
|
|
1050
|
-
}
|
|
1051
|
-
});
|
|
1052
|
-
if (refused) {
|
|
1053
|
-
if (property === "aspectRatio") {
|
|
1054
|
-
emitValue(state, property, source, null, merge, originalValue !== null && originalValue !== void 0 ? originalValue : source, contextOnly);
|
|
1055
|
-
return true;
|
|
1056
|
-
}
|
|
1057
|
-
if (process.env.NODE_ENV === "development") (0, import_warnOnce.warnRefusedValue)(property, source, refused);
|
|
1045
|
+
emitValue(state, property, source, 0, "", void 0, "", "", merge, originalValue !== null && originalValue !== void 0 ? originalValue : source, contextOnly);
|
|
1058
1046
|
return true;
|
|
1059
1047
|
}
|
|
1060
|
-
|
|
1061
|
-
var lastPayloadStart = 0;
|
|
1062
|
-
for (var index = 0; index < conditions.length; index++) {
|
|
1063
|
-
var condition = conditions[index];
|
|
1064
|
-
lastPayloadStart = starts[index];
|
|
1065
|
-
var emitted = emitSegment(state, property, source, starts[index], ends[index], condition, merge, originalValue, contextOnly);
|
|
1066
|
-
if (!condition && emitted) hasBase = true;
|
|
1067
|
-
}
|
|
1068
|
-
if (process.env.NODE_ENV === "development" && !hasBase && conditions.length > 0 && (property in import_helpers.tokenCategories.color || property in import_tokenCategories.tokenCategoryByProperty) && splitComponents(source.slice(lastPayloadStart)).length > 1) (0, import_warnOnce.warnOnce)(`${property}="${source}" has multiple values after its first conditional. Write the base value before the first conditional.`);
|
|
1069
|
-
if ((!import_constants.isWeb || !state.flatShouldDoClasses) && lifecycle && !hasBase) {
|
|
1070
|
-
var value = property === "opacity" ? 1 : property === "scale" || property === "scaleX" || property === "scaleY" ? 1 : property === "rotate" ? "0deg" : property === "x" || property === "y" ? 0 : null;
|
|
1071
|
-
if (value !== null) emitValue(state, property, value, null, merge, value, contextOnly);
|
|
1072
|
-
}
|
|
1048
|
+
(0, import_runtime.scanFlatValue)(source, directStyleHandler, state, property, merge, originalValue, contextOnly);
|
|
1073
1049
|
return true;
|
|
1074
1050
|
}
|
|
1075
1051
|
function contributeFrontendValue(state, property, value, merge) {
|
|
1076
1052
|
var contextOnly = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;
|
|
1077
|
-
if (
|
|
1078
|
-
if (value.base !== null) emitValue(state, property, value.base, null, merge, value.base, contextOnly);
|
|
1053
|
+
if (value.base !== null) emitValue(state, property, value.base, 0, "", void 0, "", "", merge, value.base, contextOnly);
|
|
1079
1054
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
|
|
1080
1055
|
try {
|
|
1081
1056
|
for (var _iterator = value.clauses[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
1082
1057
|
var clause = _step.value;
|
|
1083
|
-
var
|
|
1084
|
-
|
|
1058
|
+
var source = clause.modifiers.join(":");
|
|
1059
|
+
resolveClauseChain(state, source, 0, source.length, property, clause.payload, merge, clause.payload, contextOnly);
|
|
1085
1060
|
}
|
|
1086
1061
|
} catch (err) {
|
|
1087
1062
|
_didIteratorError = true;
|
|
@@ -1097,18 +1072,11 @@ function contributeFrontendValue(state, property, value, merge) {
|
|
|
1097
1072
|
}
|
|
1098
1073
|
function contributeVariantClauseValue(state, property, value, conditionSource, merge, originalValue) {
|
|
1099
1074
|
var contextOnly = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : false;
|
|
1100
|
-
|
|
1101
|
-
var condition = getCondition(state, conditionSource);
|
|
1102
|
-
if (!condition) {
|
|
1103
|
-
if (process.env.NODE_ENV === "development") (0, import_warnOnce.warnRefusedValue)(property, value, `unknown modifier "${conditionSource}"`);
|
|
1104
|
-
return;
|
|
1105
|
-
}
|
|
1106
|
-
if (process.env.NODE_ENV === "development" && condition.unsupportedState) (0, import_warnOnce.warnOnce)(`${property}: "${condition.unsupportedState}:" has no native component-state source; dropping the clause`);
|
|
1107
|
-
if (condition.emit && (condition.active || import_constants.isWeb && state.flatShouldDoClasses)) emitValue(state, property, value, condition, merge, originalValue, contextOnly);
|
|
1075
|
+
resolveClauseChain(state, conditionSource, 0, conditionSource.length, property, value, merge, originalValue, contextOnly, -1, -1, 2);
|
|
1108
1076
|
}
|
|
1109
1077
|
function contributeStyleValue(state, property, value, merge, originalValue) {
|
|
1110
1078
|
var contextOnly = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : false;
|
|
1111
|
-
if (
|
|
1079
|
+
if (value === "safe" && (0, import_resolveSafeArea.isSafeAreaKey)(property)) {
|
|
1112
1080
|
var expanded = (0, import_resolveSafeArea.expandSafeAreaValue)(property);
|
|
1113
1081
|
if (expanded) {
|
|
1114
1082
|
state.flatUsesSafeArea = true;
|
|
@@ -1116,7 +1084,7 @@ function contributeStyleValue(state, property, value, merge, originalValue) {
|
|
|
1116
1084
|
try {
|
|
1117
1085
|
for (var _iterator = expanded[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
1118
1086
|
var [key, resolved] = _step.value;
|
|
1119
|
-
emitValue(state, key, resolved,
|
|
1087
|
+
emitValue(state, key, resolved, 0, "", void 0, "", "", merge, originalValue !== null && originalValue !== void 0 ? originalValue : value, contextOnly);
|
|
1120
1088
|
}
|
|
1121
1089
|
} catch (err) {
|
|
1122
1090
|
_didIteratorError = true;
|
|
@@ -1133,7 +1101,7 @@ function contributeStyleValue(state, property, value, merge, originalValue) {
|
|
|
1133
1101
|
}
|
|
1134
1102
|
if (typeof value === "string") return contributeStyleString(state, property, value, merge, originalValue, contextOnly);
|
|
1135
1103
|
if (value != null) {
|
|
1136
|
-
emitValue(state, property, value,
|
|
1104
|
+
emitValue(state, property, value, 0, "", void 0, "", "", merge, originalValue !== null && originalValue !== void 0 ? originalValue : value, contextOnly);
|
|
1137
1105
|
return true;
|
|
1138
1106
|
}
|
|
1139
1107
|
return false;
|