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