@tamagui/web 3.0.0-beta.765.1 → 3.0.0-beta.804.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/createComponent.cjs +83 -86
- package/dist/cjs/createComponent.native.cjs +96 -103
- package/dist/cjs/createComponent.native.js +96 -103
- package/dist/cjs/createComponent.native.js.map +1 -1
- package/dist/cjs/createTamagui.cjs +9 -7
- package/dist/cjs/createTamagui.native.cjs +9 -7
- package/dist/cjs/createTamagui.native.js +9 -7
- package/dist/cjs/createTamagui.native.js.map +1 -1
- package/dist/cjs/helpers/defaultAnimationDriver.cjs +0 -1
- package/dist/cjs/helpers/defaultAnimationDriver.native.cjs +0 -1
- package/dist/cjs/helpers/defaultAnimationDriver.native.js +0 -1
- package/dist/cjs/helpers/defaultAnimationDriver.native.js.map +1 -1
- package/dist/cjs/helpers/directStyleCSS.cjs +348 -0
- package/dist/cjs/helpers/directStyleCSS.native.cjs +20 -0
- package/dist/cjs/helpers/directStyleCSS.native.js +22 -0
- package/dist/cjs/helpers/directStyleCSS.native.js.map +1 -0
- package/dist/cjs/helpers/directStyleCSSCompiled.cjs +40 -0
- package/dist/cjs/helpers/directStyleCSSCompiled.native.cjs +46 -0
- package/dist/cjs/helpers/directStyleCSSCompiled.native.js +48 -0
- package/dist/cjs/helpers/directStyleCSSCompiled.native.js.map +1 -0
- package/dist/cjs/helpers/getCSSStylesAtomic.cjs +92 -74
- package/dist/cjs/helpers/{getFontLanguage.native.cjs → getCSSStylesAtomicCompiled.cjs} +12 -8
- package/dist/cjs/helpers/{getFontLanguage.native.js → getCSSStylesAtomicCompiled.native.cjs} +12 -8
- package/dist/cjs/helpers/getCSSStylesAtomicCompiled.native.js +36 -0
- package/dist/cjs/helpers/getCSSStylesAtomicCompiled.native.js.map +1 -0
- package/dist/cjs/helpers/getSplitStyles.cjs +2417 -548
- package/dist/cjs/helpers/getSplitStyles.native.cjs +2758 -621
- package/dist/cjs/helpers/getSplitStyles.native.js +2758 -621
- package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/cjs/helpers/getVariantExtras.cjs +8 -3
- package/dist/cjs/helpers/getVariantExtras.native.cjs +8 -3
- package/dist/cjs/helpers/getVariantExtras.native.js +8 -3
- package/dist/cjs/helpers/getVariantExtras.native.js.map +1 -1
- package/dist/cjs/helpers/insertStyleRule.cjs +2 -1
- package/dist/cjs/helpers/insertStyleRule.native.cjs +68 -5
- package/dist/cjs/helpers/insertStyleRule.native.js +68 -5
- package/dist/cjs/helpers/insertStyleRule.native.js.map +1 -1
- package/dist/cjs/helpers/mediaState.cjs +12 -0
- package/dist/cjs/helpers/mediaState.native.cjs +12 -0
- package/dist/cjs/helpers/mediaState.native.js +12 -0
- package/dist/cjs/helpers/mediaState.native.js.map +1 -1
- package/dist/cjs/helpers/normalizeStyle.cjs +16 -2
- package/dist/cjs/helpers/normalizeStyle.native.cjs +16 -2
- package/dist/cjs/helpers/normalizeStyle.native.js +16 -2
- package/dist/cjs/helpers/normalizeStyle.native.js.map +1 -1
- package/dist/cjs/helpers/resolveRem.cjs +1 -1
- package/dist/cjs/helpers/skipProps.cjs +6 -1
- package/dist/cjs/helpers/skipProps.native.cjs +6 -1
- package/dist/cjs/helpers/skipProps.native.js +6 -1
- package/dist/cjs/helpers/skipProps.native.js.map +1 -1
- package/dist/cjs/helpers/styleFrontend.cjs +2 -8
- package/dist/cjs/helpers/styleFrontend.native.cjs +2 -10
- package/dist/cjs/helpers/styleFrontend.native.js +2 -10
- package/dist/cjs/helpers/styleFrontend.native.js.map +1 -1
- package/dist/cjs/helpers/styleToCSS.cjs +59 -0
- package/dist/cjs/helpers/{normalizeStylePropKeys.cjs → styleToCSS.native.cjs} +6 -4
- package/dist/cjs/helpers/{getFontLanguage.cjs → styleToCSS.native.js} +8 -4
- package/dist/cjs/helpers/styleToCSS.native.js.map +1 -0
- package/dist/cjs/helpers/subscribeToContextGroup.cjs +28 -1
- package/dist/cjs/helpers/subscribeToContextGroup.native.cjs +45 -1
- package/dist/cjs/helpers/subscribeToContextGroup.native.js +45 -1
- package/dist/cjs/helpers/subscribeToContextGroup.native.js.map +1 -1
- package/dist/cjs/helpers/variables.cjs +3 -2
- package/dist/cjs/helpers/variables.native.cjs +3 -2
- package/dist/cjs/helpers/variables.native.js +3 -2
- package/dist/cjs/helpers/variables.native.js.map +1 -1
- package/dist/cjs/helpers/wrapStyleTags.cjs +5 -3
- package/dist/cjs/helpers/wrapStyleTags.native.cjs +3 -1
- package/dist/cjs/helpers/wrapStyleTags.native.js +3 -1
- package/dist/cjs/helpers/wrapStyleTags.native.js.map +1 -1
- package/dist/cjs/hooks/useComponentState.cjs +70 -89
- package/dist/cjs/hooks/useComponentState.native.cjs +70 -88
- package/dist/cjs/hooks/useComponentState.native.js +70 -88
- package/dist/cjs/hooks/useComponentState.native.js.map +1 -1
- package/dist/cjs/hooks/useMedia.cjs +3 -15
- package/dist/cjs/hooks/useMedia.native.cjs +3 -15
- package/dist/cjs/hooks/useMedia.native.js +3 -15
- package/dist/cjs/hooks/useMedia.native.js.map +1 -1
- package/dist/cjs/hooks/useProps.cjs +7 -5
- package/dist/cjs/hooks/useProps.native.cjs +7 -5
- package/dist/cjs/hooks/useProps.native.js +7 -5
- package/dist/cjs/hooks/useProps.native.js.map +1 -1
- package/dist/cjs/hooks/useSplitStyles.cjs +42 -0
- package/dist/cjs/hooks/useSplitStyles.native.cjs +42 -0
- package/dist/cjs/hooks/useSplitStyles.native.js +44 -0
- package/dist/cjs/hooks/useSplitStyles.native.js.map +1 -0
- package/dist/cjs/index.cjs +184 -70
- package/dist/cjs/index.native.cjs +184 -70
- package/dist/cjs/index.native.js +184 -70
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/insertFont.cjs +1 -1
- package/dist/cjs/insertFont.native.cjs +1 -0
- package/dist/cjs/insertFont.native.js +1 -0
- package/dist/cjs/insertFont.native.js.map +1 -1
- package/dist/cjs/internal-runtime.cjs +33 -6
- package/dist/cjs/internal-runtime.native.cjs +33 -6
- package/dist/cjs/internal-runtime.native.js +33 -6
- package/dist/cjs/internal-runtime.native.js.map +1 -1
- package/dist/cjs/setupReactNative.cjs +1 -29
- package/dist/cjs/setupReactNative.native.cjs +1 -3
- package/dist/cjs/setupReactNative.native.js +1 -3
- package/dist/cjs/setupReactNative.native.js.map +1 -1
- package/dist/cjs/static-resolve.cjs +229 -0
- package/dist/cjs/static-resolve.native.cjs +242 -0
- package/dist/cjs/static-resolve.native.js +244 -0
- package/dist/cjs/static-resolve.native.js.map +1 -0
- package/dist/cjs/styled.cjs +23 -37
- package/dist/cjs/styled.native.cjs +22 -37
- package/dist/cjs/styled.native.js +22 -37
- package/dist/cjs/styled.native.js.map +1 -1
- package/dist/cjs/views/TamaguiProvider.cjs +4 -8
- package/dist/cjs/views/TamaguiProvider.native.cjs +4 -8
- package/dist/cjs/views/TamaguiProvider.native.js +4 -8
- package/dist/cjs/views/TamaguiProvider.native.js.map +1 -1
- package/dist/cjs/views/ThemeUpdate.cjs +1 -1
- package/dist/cjs/views/ThemeUpdate.native.cjs +1 -1
- package/dist/cjs/views/ThemeUpdate.native.js +1 -1
- package/dist/cjs/views/ThemeUpdate.native.js.map +1 -1
- package/dist/esm/createComponent.mjs +85 -88
- package/dist/esm/createComponent.mjs.map +1 -1
- package/dist/esm/createComponent.native.js +98 -105
- package/dist/esm/createComponent.native.js.map +1 -1
- package/dist/esm/createTamagui.mjs +9 -7
- package/dist/esm/createTamagui.mjs.map +1 -1
- package/dist/esm/createTamagui.native.js +9 -7
- package/dist/esm/createTamagui.native.js.map +1 -1
- package/dist/esm/helpers/defaultAnimationDriver.mjs +0 -1
- package/dist/esm/helpers/defaultAnimationDriver.mjs.map +1 -1
- package/dist/esm/helpers/defaultAnimationDriver.native.js +0 -1
- package/dist/esm/helpers/defaultAnimationDriver.native.js.map +1 -1
- package/dist/esm/helpers/directStyleCSS.mjs +320 -0
- package/dist/esm/helpers/directStyleCSS.mjs.map +1 -0
- package/dist/esm/helpers/directStyleCSS.native.js +1 -0
- package/dist/esm/helpers/directStyleCSSCompiled.mjs +11 -0
- package/dist/esm/helpers/directStyleCSSCompiled.mjs.map +1 -0
- package/dist/esm/helpers/directStyleCSSCompiled.native.js +15 -0
- package/dist/esm/helpers/directStyleCSSCompiled.native.js.map +1 -0
- package/dist/esm/helpers/getCSSStylesAtomic.mjs +86 -72
- package/dist/esm/helpers/getCSSStylesAtomic.mjs.map +1 -1
- package/dist/esm/helpers/getCSSStylesAtomicCompiled.mjs +9 -0
- package/dist/esm/helpers/getCSSStylesAtomicCompiled.mjs.map +1 -0
- package/dist/esm/helpers/getCSSStylesAtomicCompiled.native.js +9 -0
- package/dist/esm/helpers/getCSSStylesAtomicCompiled.native.js.map +1 -0
- package/dist/esm/helpers/getSplitStyles.mjs +2406 -545
- package/dist/esm/helpers/getSplitStyles.mjs.map +1 -1
- package/dist/esm/helpers/getSplitStyles.native.js +2751 -618
- package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/esm/helpers/getVariantExtras.mjs +8 -3
- package/dist/esm/helpers/getVariantExtras.mjs.map +1 -1
- package/dist/esm/helpers/getVariantExtras.native.js +8 -3
- package/dist/esm/helpers/getVariantExtras.native.js.map +1 -1
- package/dist/esm/helpers/insertStyleRule.mjs +2 -1
- package/dist/esm/helpers/insertStyleRule.mjs.map +1 -1
- package/dist/esm/helpers/insertStyleRule.native.js +69 -3
- package/dist/esm/helpers/insertStyleRule.native.js.map +1 -1
- package/dist/esm/helpers/mediaState.mjs +12 -1
- package/dist/esm/helpers/mediaState.mjs.map +1 -1
- package/dist/esm/helpers/mediaState.native.js +12 -1
- package/dist/esm/helpers/mediaState.native.js.map +1 -1
- package/dist/esm/helpers/normalizeStyle.mjs +16 -2
- package/dist/esm/helpers/normalizeStyle.mjs.map +1 -1
- package/dist/esm/helpers/normalizeStyle.native.js +16 -2
- package/dist/esm/helpers/normalizeStyle.native.js.map +1 -1
- package/dist/esm/helpers/resolveRem.mjs +1 -1
- package/dist/esm/helpers/resolveRem.mjs.map +1 -1
- package/dist/esm/helpers/skipProps.mjs +3 -1
- package/dist/esm/helpers/skipProps.mjs.map +1 -1
- package/dist/esm/helpers/skipProps.native.js +3 -1
- package/dist/esm/helpers/skipProps.native.js.map +1 -1
- package/dist/esm/helpers/styleFrontend.mjs +2 -4
- package/dist/esm/helpers/styleFrontend.mjs.map +1 -1
- package/dist/esm/helpers/styleFrontend.native.js +2 -6
- package/dist/esm/helpers/styleFrontend.native.js.map +1 -1
- package/dist/esm/helpers/styleToCSS.mjs +40 -0
- package/dist/esm/helpers/styleToCSS.mjs.map +1 -0
- package/dist/esm/helpers/styleToCSS.native.js +4 -0
- package/dist/esm/helpers/styleToCSS.native.js.map +1 -0
- package/dist/esm/helpers/subscribeToContextGroup.mjs +25 -1
- package/dist/esm/helpers/subscribeToContextGroup.mjs.map +1 -1
- package/dist/esm/helpers/subscribeToContextGroup.native.js +42 -1
- package/dist/esm/helpers/subscribeToContextGroup.native.js.map +1 -1
- package/dist/esm/helpers/variables.mjs +2 -1
- package/dist/esm/helpers/variables.mjs.map +1 -1
- package/dist/esm/helpers/variables.native.js +2 -1
- package/dist/esm/helpers/variables.native.js.map +1 -1
- package/dist/esm/helpers/wrapStyleTags.mjs +5 -3
- package/dist/esm/helpers/wrapStyleTags.mjs.map +1 -1
- package/dist/esm/helpers/wrapStyleTags.native.js +3 -1
- package/dist/esm/helpers/wrapStyleTags.native.js.map +1 -1
- package/dist/esm/hooks/useComponentState.mjs +71 -90
- package/dist/esm/hooks/useComponentState.mjs.map +1 -1
- package/dist/esm/hooks/useComponentState.native.js +71 -89
- package/dist/esm/hooks/useComponentState.native.js.map +1 -1
- package/dist/esm/hooks/useMedia.mjs +2 -15
- package/dist/esm/hooks/useMedia.mjs.map +1 -1
- package/dist/esm/hooks/useMedia.native.js +2 -15
- package/dist/esm/hooks/useMedia.native.js.map +1 -1
- package/dist/esm/hooks/useProps.mjs +7 -5
- package/dist/esm/hooks/useProps.mjs.map +1 -1
- package/dist/esm/hooks/useProps.native.js +7 -5
- package/dist/esm/hooks/useProps.native.js.map +1 -1
- package/dist/esm/hooks/useSplitStyles.mjs +17 -0
- package/dist/esm/hooks/useSplitStyles.mjs.map +1 -0
- package/dist/esm/hooks/useSplitStyles.native.js +14 -0
- package/dist/esm/hooks/useSplitStyles.native.js.map +1 -0
- package/dist/esm/index.js +57 -137
- package/dist/esm/index.mjs +57 -137
- package/dist/esm/index.native.js +57 -137
- package/dist/esm/insertFont.mjs +1 -1
- package/dist/esm/insertFont.mjs.map +1 -1
- package/dist/esm/insertFont.native.js +1 -0
- package/dist/esm/insertFont.native.js.map +1 -1
- package/dist/esm/internal-runtime.mjs +23 -4
- package/dist/esm/internal-runtime.mjs.map +1 -1
- package/dist/esm/internal-runtime.native.js +23 -4
- package/dist/esm/internal-runtime.native.js.map +1 -1
- package/dist/esm/setupReactNative.mjs +1 -29
- package/dist/esm/setupReactNative.mjs.map +1 -1
- package/dist/esm/setupReactNative.native.js +1 -3
- package/dist/esm/setupReactNative.native.js.map +1 -1
- package/dist/esm/static-resolve.mjs +194 -0
- package/dist/esm/static-resolve.mjs.map +1 -0
- package/dist/esm/static-resolve.native.js +205 -0
- package/dist/esm/static-resolve.native.js.map +1 -0
- package/dist/esm/styled.mjs +24 -40
- package/dist/esm/styled.mjs.map +1 -1
- package/dist/esm/styled.native.js +23 -40
- package/dist/esm/styled.native.js.map +1 -1
- package/dist/esm/views/TamaguiProvider.mjs +4 -8
- package/dist/esm/views/TamaguiProvider.mjs.map +1 -1
- package/dist/esm/views/TamaguiProvider.native.js +4 -8
- package/dist/esm/views/TamaguiProvider.native.js.map +1 -1
- package/dist/esm/views/ThemeUpdate.mjs +1 -1
- package/dist/esm/views/ThemeUpdate.mjs.map +1 -1
- package/dist/esm/views/ThemeUpdate.native.js +1 -1
- package/dist/esm/views/ThemeUpdate.native.js.map +1 -1
- package/package.json +25 -15
- package/reset.css +3 -3
- package/src/createComponent.tsx +175 -192
- package/src/createTamagui.ts +10 -9
- package/src/helpers/defaultAnimationDriver.tsx +0 -1
- package/src/helpers/directStyleCSS.native.ts +1 -0
- package/src/helpers/directStyleCSS.ts +534 -0
- package/src/helpers/directStyleCSSCompiled.ts +32 -0
- package/src/helpers/getCSSStylesAtomic.ts +168 -88
- package/src/helpers/getCSSStylesAtomicCompiled.ts +9 -0
- package/src/helpers/getSplitStyles.tsx +4653 -1003
- package/src/helpers/getVariantExtras.tsx +15 -3
- package/src/helpers/insertStyleRule.tsx +4 -2
- package/src/helpers/mediaState.ts +15 -0
- package/src/helpers/normalizeStyle.ts +27 -2
- package/src/helpers/resolveRem.ts +1 -1
- package/src/helpers/skipProps.ts +3 -0
- package/src/helpers/styleFrontend.ts +20 -27
- package/src/helpers/styleToCSS.native.ts +1 -0
- package/src/helpers/styleToCSS.ts +43 -0
- package/src/helpers/subscribeToContextGroup.tsx +30 -0
- package/src/helpers/variables.ts +2 -1
- package/src/helpers/warnOnce.ts +3 -4
- package/src/helpers/wrapStyleTags.tsx +1 -1
- package/src/hooks/useComponentState.ts +118 -158
- package/src/hooks/useMedia.tsx +2 -18
- package/src/hooks/useProps.tsx +19 -15
- package/src/hooks/useSplitStyles.tsx +26 -0
- package/src/index.ts +298 -73
- package/src/insertFont.ts +5 -1
- package/src/internal-runtime.ts +49 -24
- package/src/internalRuntimeTypes.ts +2 -7
- package/src/setupReactNative.ts +7 -30
- package/src/static-resolve.ts +396 -0
- package/src/styled.tsx +34 -11
- package/src/types.tsx +40 -30
- package/src/views/TamaguiProvider.tsx +23 -22
- package/src/views/ThemeUpdate.tsx +3 -1
- package/types/createComponent.d.ts.map +1 -1
- package/types/createTamagui.d.ts.map +1 -1
- package/types/helpers/defaultAnimationDriver.d.ts.map +1 -1
- package/types/helpers/directStyleCSS.d.ts +28 -0
- package/types/helpers/directStyleCSS.d.ts.map +1 -0
- package/types/helpers/directStyleCSS.native.d.ts +2 -0
- package/types/helpers/directStyleCSS.native.d.ts.map +1 -0
- package/types/helpers/directStyleCSSCompiled.d.ts +10 -0
- package/types/helpers/directStyleCSSCompiled.d.ts.map +1 -0
- package/types/helpers/getCSSStylesAtomic.d.ts +22 -1
- package/types/helpers/getCSSStylesAtomic.d.ts.map +1 -1
- package/types/helpers/getCSSStylesAtomicCompiled.d.ts +4 -0
- package/types/helpers/getCSSStylesAtomicCompiled.d.ts.map +1 -0
- package/types/helpers/getSplitStyles.d.ts +11 -4
- package/types/helpers/getSplitStyles.d.ts.map +1 -1
- package/types/helpers/getVariantExtras.d.ts.map +1 -1
- package/types/helpers/insertStyleRule.d.ts.map +1 -1
- package/types/helpers/mediaState.d.ts +4 -0
- package/types/helpers/mediaState.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/skipProps.d.ts +2 -0
- package/types/helpers/skipProps.d.ts.map +1 -1
- package/types/helpers/styleFrontend.d.ts +13 -17
- package/types/helpers/styleFrontend.d.ts.map +1 -1
- package/types/helpers/styleToCSS.d.ts +2 -0
- package/types/helpers/styleToCSS.d.ts.map +1 -0
- package/types/helpers/styleToCSS.native.d.ts +2 -0
- package/types/helpers/styleToCSS.native.d.ts.map +1 -0
- package/types/helpers/subscribeToContextGroup.d.ts +1 -0
- package/types/helpers/subscribeToContextGroup.d.ts.map +1 -1
- package/types/helpers/variables.d.ts.map +1 -1
- package/types/helpers/warnOnce.d.ts.map +1 -1
- package/types/helpers/webPropsToSkip.native.d.ts +5 -0
- package/types/helpers/webPropsToSkip.native.d.ts.map +1 -1
- package/types/hooks/useComponentState.d.ts +3 -2
- package/types/hooks/useComponentState.d.ts.map +1 -1
- package/types/hooks/useMedia.d.ts +1 -5
- package/types/hooks/useMedia.d.ts.map +1 -1
- package/types/hooks/useProps.d.ts.map +1 -1
- package/types/hooks/useSplitStyles.d.ts +3 -0
- package/types/hooks/useSplitStyles.d.ts.map +1 -0
- package/types/index.d.ts +58 -72
- package/types/index.d.ts.map +1 -1
- package/types/insertFont.d.ts.map +1 -1
- package/types/internal-runtime.d.ts +24 -11
- package/types/internal-runtime.d.ts.map +1 -1
- package/types/internalRuntimeTypes.d.ts +1 -6
- package/types/internalRuntimeTypes.d.ts.map +1 -1
- package/types/setupReactNative.d.ts +2 -3
- package/types/setupReactNative.d.ts.map +1 -1
- package/types/static-resolve.d.ts +79 -0
- package/types/static-resolve.d.ts.map +1 -0
- package/types/styled.d.ts.map +1 -1
- package/types/types.d.ts +29 -22
- package/types/types.d.ts.map +1 -1
- package/types/views/TamaguiProvider.d.ts.map +1 -1
- package/types/views/ThemeUpdate.d.ts.map +1 -1
- package/dist/cjs/constants/accessibilityDirectMap.cjs +0 -34
- package/dist/cjs/constants/accessibilityDirectMap.native.cjs +0 -36
- package/dist/cjs/constants/accessibilityDirectMap.native.js +0 -38
- package/dist/cjs/constants/accessibilityDirectMap.native.js.map +0 -1
- package/dist/cjs/helpers/directStyle.cjs +0 -962
- package/dist/cjs/helpers/directStyle.native.cjs +0 -1165
- package/dist/cjs/helpers/directStyle.native.js +0 -1167
- package/dist/cjs/helpers/directStyle.native.js.map +0 -1
- package/dist/cjs/helpers/frontendProgram.cjs +0 -43
- package/dist/cjs/helpers/frontendProgram.native.cjs +0 -49
- package/dist/cjs/helpers/frontendProgram.native.js +0 -51
- package/dist/cjs/helpers/frontendProgram.native.js.map +0 -1
- package/dist/cjs/helpers/getFontLanguage.native.js.map +0 -1
- package/dist/cjs/helpers/normalizeStylePropKeys.native.cjs +0 -37
- package/dist/cjs/helpers/normalizeStylePropKeys.native.js +0 -39
- package/dist/cjs/helpers/normalizeStylePropKeys.native.js.map +0 -1
- package/dist/cjs/helpers/propMapper.cjs +0 -384
- package/dist/cjs/helpers/propMapper.native.cjs +0 -536
- package/dist/cjs/helpers/propMapper.native.js +0 -538
- package/dist/cjs/helpers/propMapper.native.js.map +0 -1
- package/dist/cjs/helpers/useRenderElement.cjs +0 -47
- package/dist/cjs/helpers/useRenderElement.native.cjs +0 -53
- package/dist/cjs/helpers/useRenderElement.native.js +0 -55
- package/dist/cjs/helpers/useRenderElement.native.js.map +0 -1
- package/dist/esm/constants/accessibilityDirectMap.mjs +0 -8
- package/dist/esm/constants/accessibilityDirectMap.mjs.map +0 -1
- package/dist/esm/constants/accessibilityDirectMap.native.js +0 -8
- package/dist/esm/constants/accessibilityDirectMap.native.js.map +0 -1
- package/dist/esm/helpers/directStyle.mjs +0 -929
- package/dist/esm/helpers/directStyle.mjs.map +0 -1
- package/dist/esm/helpers/directStyle.native.js +0 -1132
- package/dist/esm/helpers/directStyle.native.js.map +0 -1
- package/dist/esm/helpers/frontendProgram.mjs +0 -20
- package/dist/esm/helpers/frontendProgram.mjs.map +0 -1
- package/dist/esm/helpers/frontendProgram.native.js +0 -24
- package/dist/esm/helpers/frontendProgram.native.js.map +0 -1
- package/dist/esm/helpers/getFontLanguage.mjs +0 -4
- package/dist/esm/helpers/getFontLanguage.mjs.map +0 -1
- package/dist/esm/helpers/getFontLanguage.native.js +0 -6
- package/dist/esm/helpers/getFontLanguage.native.js.map +0 -1
- package/dist/esm/helpers/normalizeStylePropKeys.mjs +0 -4
- package/dist/esm/helpers/normalizeStylePropKeys.mjs.map +0 -1
- package/dist/esm/helpers/normalizeStylePropKeys.native.js +0 -15
- package/dist/esm/helpers/normalizeStylePropKeys.native.js.map +0 -1
- package/dist/esm/helpers/propMapper.mjs +0 -360
- package/dist/esm/helpers/propMapper.mjs.map +0 -1
- package/dist/esm/helpers/propMapper.native.js +0 -511
- package/dist/esm/helpers/propMapper.native.js.map +0 -1
- package/dist/esm/helpers/useRenderElement.mjs +0 -26
- package/dist/esm/helpers/useRenderElement.mjs.map +0 -1
- package/dist/esm/helpers/useRenderElement.native.js +0 -31
- package/dist/esm/helpers/useRenderElement.native.js.map +0 -1
- package/src/constants/accessibilityDirectMap.native.tsx +0 -10
- package/src/constants/accessibilityDirectMap.tsx +0 -11
- package/src/helpers/directStyle.ts +0 -2294
- package/src/helpers/frontendProgram.ts +0 -48
- package/src/helpers/getFontLanguage.ts +0 -2
- package/src/helpers/normalizeStylePropKeys.native.ts +0 -12
- package/src/helpers/normalizeStylePropKeys.ts +0 -3
- package/src/helpers/propMapper.ts +0 -721
- package/src/helpers/useRenderElement.tsx +0 -73
- package/types/constants/accessibilityDirectMap.d.ts +0 -6
- package/types/constants/accessibilityDirectMap.d.ts.map +0 -1
- package/types/constants/accessibilityDirectMap.native.d.ts +0 -6
- package/types/constants/accessibilityDirectMap.native.d.ts.map +0 -1
- package/types/helpers/directStyle.d.ts +0 -15
- package/types/helpers/directStyle.d.ts.map +0 -1
- package/types/helpers/frontendProgram.d.ts +0 -10
- package/types/helpers/frontendProgram.d.ts.map +0 -1
- package/types/helpers/getFontLanguage.d.ts +0 -2
- package/types/helpers/getFontLanguage.d.ts.map +0 -1
- package/types/helpers/normalizeStylePropKeys.d.ts +0 -2
- package/types/helpers/normalizeStylePropKeys.d.ts.map +0 -1
- package/types/helpers/normalizeStylePropKeys.native.d.ts +0 -13
- package/types/helpers/normalizeStylePropKeys.native.d.ts.map +0 -1
- package/types/helpers/propMapper.d.ts +0 -6
- package/types/helpers/propMapper.d.ts.map +0 -1
- package/types/helpers/useRenderElement.d.ts +0 -13
- package/types/helpers/useRenderElement.d.ts.map +0 -1
|
@@ -31,6 +31,7 @@ module.exports = __toCommonJS(styled_exports);
|
|
|
31
31
|
var import_createComponent = require("./createComponent.native.js");
|
|
32
32
|
var import_componentDisplayName = require("./helpers/componentDisplayName.native.js");
|
|
33
33
|
var import_mergeVariants = require("./helpers/mergeVariants.native.js");
|
|
34
|
+
require("./helpers/warnOnce.native.js");
|
|
34
35
|
var import_setupReactNative = require("./setupReactNative.native.js");
|
|
35
36
|
var import_types = require("./types.native.js");
|
|
36
37
|
var textLikeElements = /* @__PURE__ */ new Set([
|
|
@@ -70,21 +71,15 @@ function styledHtml(tag, options) {
|
|
|
70
71
|
variants,
|
|
71
72
|
defaultProps,
|
|
72
73
|
defaultVariants,
|
|
73
|
-
isReactNative: false,
|
|
74
74
|
isText,
|
|
75
75
|
acceptsClassName: true,
|
|
76
76
|
context
|
|
77
77
|
};
|
|
78
|
-
if (defaultProps["children"] || context)
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
var component = (0, import_componentDisplayName.setComponentDisplayName)((0, import_createComponent.createComponent)(conf), displayName);
|
|
82
|
-
return component;
|
|
78
|
+
if (defaultProps["children"] || context) conf.neverFlatten = true;
|
|
79
|
+
return (0, import_componentDisplayName.setComponentDisplayName)((0, import_createComponent.createComponent)(conf), displayName);
|
|
83
80
|
}
|
|
84
81
|
function styled() {
|
|
85
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
|
|
86
|
-
args[_key] = arguments[_key];
|
|
87
|
-
}
|
|
82
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
|
|
88
83
|
return styledImpl(void 0, ...args);
|
|
89
84
|
}
|
|
90
85
|
function createFrontendStyled(frontend) {
|
|
@@ -100,16 +95,15 @@ function styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptio
|
|
|
100
95
|
var options = optionsIn;
|
|
101
96
|
var displayName = options === null || options === void 0 ? void 0 : options.displayName;
|
|
102
97
|
if (process.env.NODE_ENV !== "production") {
|
|
103
|
-
if (!ComponentIn)
|
|
104
|
-
throw new Error(`No component given to styled()`);
|
|
105
|
-
}
|
|
98
|
+
if (!ComponentIn) throw new Error(`No component given to styled()`);
|
|
106
99
|
}
|
|
107
100
|
var parentStaticConfig = ComponentIn["staticConfig"];
|
|
108
|
-
|
|
109
|
-
var
|
|
110
|
-
var
|
|
101
|
+
Boolean((config === null || config === void 0 ? void 0 : config.isReactNative) || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isReactNative));
|
|
102
|
+
var isReactNative = Boolean((config === null || config === void 0 ? void 0 : config.isReactNative) || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isReactNative));
|
|
103
|
+
var isPlainStyledComponent = !!parentStaticConfig && !(isReactNative || parentStaticConfig.isHOC);
|
|
104
|
+
var Component = (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isHOC) && !(parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isStyledHOC) || isPlainStyledComponent ? ComponentIn : (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.Component) || ComponentIn;
|
|
111
105
|
var reactNativeConfig = !parentStaticConfig ? (0, import_setupReactNative.getReactNativeConfig)(Component) : void 0;
|
|
112
|
-
var
|
|
106
|
+
var resolvedIsReactNative = Boolean(reactNativeConfig || isReactNative);
|
|
113
107
|
var staticConfigProps = (function() {
|
|
114
108
|
var { variants, displayName: _displayName, defaultVariants, context, contextProps, compoundVariants, ...defaultProps } = options || {};
|
|
115
109
|
var parentDefaultVariants;
|
|
@@ -117,8 +111,7 @@ function styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptio
|
|
|
117
111
|
var parentCompoundVariants;
|
|
118
112
|
var mergedBaseClassName = (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.baseClassName) && baseClassName ? `${parentStaticConfig.baseClassName} ${baseClassName}` : baseClassName || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.baseClassName);
|
|
119
113
|
if (parentStaticConfig) {
|
|
120
|
-
|
|
121
|
-
if (!avoid) {
|
|
114
|
+
if (!(parentStaticConfig.isHOC && !parentStaticConfig.isStyledHOC)) {
|
|
122
115
|
var pdp = parentStaticConfig.defaultProps;
|
|
123
116
|
for (var key2 in pdp) {
|
|
124
117
|
var val = pdp[key2];
|
|
@@ -135,26 +128,22 @@ function styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptio
|
|
|
135
128
|
parentDefaultProps[key2] = pdp[key2];
|
|
136
129
|
}
|
|
137
130
|
}
|
|
138
|
-
if (parentStaticConfig.variants)
|
|
139
|
-
variants = (0, import_mergeVariants.mergeVariants)(parentStaticConfig.variants, variants);
|
|
140
|
-
}
|
|
131
|
+
if (parentStaticConfig.variants) variants = (0, import_mergeVariants.mergeVariants)(parentStaticConfig.variants, variants);
|
|
141
132
|
parentCompoundVariants = parentStaticConfig.compoundVariants;
|
|
142
133
|
}
|
|
143
134
|
}
|
|
144
135
|
var mergedCompoundVariants = parentCompoundVariants || compoundVariants ? [...parentCompoundVariants || [], ...compoundVariants || []] : void 0;
|
|
145
136
|
var mergedContext = context || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.context);
|
|
146
137
|
var mergedContextProps = context ? contextProps : contextProps || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.contextProps);
|
|
147
|
-
if (parentDefaultProps || defaultVariants || parentDefaultVariants) {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
};
|
|
154
|
-
}
|
|
138
|
+
if (parentDefaultProps || defaultVariants || parentDefaultVariants) defaultProps = {
|
|
139
|
+
...parentDefaultProps,
|
|
140
|
+
...parentDefaultVariants,
|
|
141
|
+
...defaultProps,
|
|
142
|
+
...defaultVariants
|
|
143
|
+
};
|
|
155
144
|
var isText = Boolean((config === null || config === void 0 ? void 0 : config.isText) || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isText));
|
|
156
145
|
var _config_acceptsClassName;
|
|
157
|
-
var acceptsClassName = (_config_acceptsClassName = config === null || config === void 0 ? void 0 : config.acceptsClassName) !== null && _config_acceptsClassName !== void 0 ? _config_acceptsClassName : isPlainStyledComponent ||
|
|
146
|
+
var acceptsClassName = (_config_acceptsClassName = config === null || config === void 0 ? void 0 : config.acceptsClassName) !== null && _config_acceptsClassName !== void 0 ? _config_acceptsClassName : isPlainStyledComponent || resolvedIsReactNative || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isHOC) && (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.acceptsClassName);
|
|
158
147
|
var conf = {
|
|
159
148
|
...parentStaticConfig,
|
|
160
149
|
...config,
|
|
@@ -164,7 +153,7 @@ function styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptio
|
|
|
164
153
|
baseClassName: mergedBaseClassName,
|
|
165
154
|
defaultProps,
|
|
166
155
|
defaultVariants,
|
|
167
|
-
isReactNative,
|
|
156
|
+
isReactNative: resolvedIsReactNative,
|
|
168
157
|
isText,
|
|
169
158
|
acceptsClassName,
|
|
170
159
|
context: mergedContext,
|
|
@@ -174,9 +163,7 @@ function styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptio
|
|
|
174
163
|
parentStaticConfig,
|
|
175
164
|
...frontend && { styleFrontend: frontend }
|
|
176
165
|
};
|
|
177
|
-
if (defaultProps["children"] || !acceptsClassName || mergedContext)
|
|
178
|
-
conf.neverFlatten = true;
|
|
179
|
-
}
|
|
166
|
+
if (defaultProps["children"] || !acceptsClassName || mergedContext) conf.neverFlatten = true;
|
|
180
167
|
return conf;
|
|
181
168
|
})();
|
|
182
169
|
var component = (0, import_componentDisplayName.setComponentDisplayName)((0, import_createComponent.createComponent)(staticConfigProps || {}), displayName || ComponentIn[import_componentDisplayName.componentDisplayName]);
|
|
@@ -188,9 +175,7 @@ function styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptio
|
|
|
188
175
|
return component;
|
|
189
176
|
}
|
|
190
177
|
var styledExport = new Proxy(styled, { get(target, prop) {
|
|
191
|
-
if (prop in target)
|
|
192
|
-
return target[prop];
|
|
193
|
-
}
|
|
178
|
+
if (prop in target) return target[prop];
|
|
194
179
|
return function(options) {
|
|
195
180
|
return styledHtml(prop, options);
|
|
196
181
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styled.native.js","names":[],"sources":["cjs/styled.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar styled_exports = {};\n__export(styled_exports, {\n createFrontendStyled: () => createFrontendStyled,\n createVariantResolver: () => import_types.createVariantResolver,\n styled: () => styledExport,\n styledHtml: () => styledHtml\n});\nmodule.exports = __toCommonJS(styled_exports);\nvar import_createComponent = require(\"./createComponent\");\nvar import_componentDisplayName = require(\"./helpers/componentDisplayName\");\nvar import_mergeVariants = require(\"./helpers/mergeVariants\");\nvar import_setupReactNative = require(\"./setupReactNative\");\nvar import_types = require(\"./types\");\nvar textLikeElements = /* @__PURE__ */ new Set([\n \"a\",\n \"abbr\",\n \"b\",\n \"bdi\",\n \"bdo\",\n \"cite\",\n \"code\",\n \"data\",\n \"del\",\n \"dfn\",\n \"em\",\n \"i\",\n \"ins\",\n \"kbd\",\n \"label\",\n \"mark\",\n \"q\",\n \"s\",\n \"samp\",\n \"small\",\n \"span\",\n \"strong\",\n \"sub\",\n \"sup\",\n \"time\",\n \"u\",\n \"var\"\n]);\nfunction styledHtml(tag, options) {\n var isText = textLikeElements.has(tag);\n var { variants, displayName, defaultVariants, context, ...defaultProps } = options || {};\n var conf = {\n Component: tag,\n variants,\n defaultProps,\n defaultVariants,\n isReactNative: false,\n isText,\n acceptsClassName: true,\n context\n };\n if (defaultProps[\"children\"] || context) {\n conf.neverFlatten = true;\n }\n var component = (0, import_componentDisplayName.setComponentDisplayName)((0, import_createComponent.createComponent)(conf), displayName);\n return component;\n}\nfunction styled() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n return styledImpl(void 0, ...args);\n}\nfunction createFrontendStyled(frontend) {\n return function(ComponentIn, optionsOrBaseClassName, configOrOptions, maybeConfig) {\n return styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptions, maybeConfig);\n };\n}\nfunction styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptions, maybeConfig) {\n var hasBaseClassName = typeof optionsOrBaseClassName === \"string\";\n var baseClassName = hasBaseClassName ? optionsOrBaseClassName : void 0;\n var optionsIn = hasBaseClassName ? configOrOptions : optionsOrBaseClassName;\n var config = hasBaseClassName ? maybeConfig : configOrOptions;\n var options = optionsIn;\n var displayName = options === null || options === void 0 ? void 0 : options.displayName;\n if (process.env.NODE_ENV !== \"production\") {\n if (!ComponentIn) {\n throw new Error(`No component given to styled()`);\n }\n }\n var parentStaticConfig = ComponentIn[\"staticConfig\"];\n var isPlainStyledComponent = !!parentStaticConfig && !(parentStaticConfig.isReactNative || parentStaticConfig.isHOC);\n var isNonStyledHOC = (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isHOC) && !(parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isStyledHOC);\n var Component = isNonStyledHOC || isPlainStyledComponent ? ComponentIn : (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.Component) || ComponentIn;\n var reactNativeConfig = !parentStaticConfig ? (0, import_setupReactNative.getReactNativeConfig)(Component) : void 0;\n var isReactNative = Boolean(reactNativeConfig || (config === null || config === void 0 ? void 0 : config.isReactNative) || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isReactNative));\n var staticConfigProps = (function() {\n var { variants, displayName: _displayName, defaultVariants, context, contextProps, compoundVariants, ...defaultProps } = options || {};\n var parentDefaultVariants;\n var parentDefaultProps;\n var parentCompoundVariants;\n var mergedBaseClassName = (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.baseClassName) && baseClassName ? `${parentStaticConfig.baseClassName} ${baseClassName}` : baseClassName || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.baseClassName);\n if (parentStaticConfig) {\n var avoid = parentStaticConfig.isHOC && !parentStaticConfig.isStyledHOC;\n if (!avoid) {\n var pdp = parentStaticConfig.defaultProps;\n for (var key2 in pdp) {\n var val = pdp[key2];\n if (parentStaticConfig.defaultVariants) {\n if (key2 in parentStaticConfig.defaultVariants) {\n if (!defaultVariants || !(key2 in defaultVariants)) {\n parentDefaultVariants || (parentDefaultVariants = {});\n parentDefaultVariants[key2] = val;\n }\n }\n }\n if (!(key2 in defaultProps) && (!defaultVariants || !(key2 in defaultVariants))) {\n parentDefaultProps || (parentDefaultProps = {});\n parentDefaultProps[key2] = pdp[key2];\n }\n }\n if (parentStaticConfig.variants) {\n variants = (0, import_mergeVariants.mergeVariants)(parentStaticConfig.variants, variants);\n }\n parentCompoundVariants = parentStaticConfig.compoundVariants;\n }\n }\n var mergedCompoundVariants = parentCompoundVariants || compoundVariants ? [\n ...parentCompoundVariants || [],\n ...compoundVariants || []\n ] : void 0;\n var mergedContext = context || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.context);\n var mergedContextProps = context ? contextProps : contextProps || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.contextProps);\n if (parentDefaultProps || defaultVariants || parentDefaultVariants) {\n defaultProps = {\n ...parentDefaultProps,\n ...parentDefaultVariants,\n ...defaultProps,\n ...defaultVariants\n };\n }\n var isText = Boolean((config === null || config === void 0 ? void 0 : config.isText) || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isText));\n var _config_acceptsClassName;\n var acceptsClassName = (_config_acceptsClassName = config === null || config === void 0 ? void 0 : config.acceptsClassName) !== null && _config_acceptsClassName !== void 0 ? _config_acceptsClassName : isPlainStyledComponent || isReactNative || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isHOC) && (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.acceptsClassName);\n var conf = {\n ...parentStaticConfig,\n ...config,\n ...!isPlainStyledComponent && {\n Component\n },\n variants,\n compoundVariants: mergedCompoundVariants,\n baseClassName: mergedBaseClassName,\n defaultProps,\n defaultVariants,\n isReactNative,\n isText,\n acceptsClassName,\n context: mergedContext,\n contextProps: mergedContextProps,\n ...reactNativeConfig,\n isStyledHOC: Boolean(parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isHOC),\n parentStaticConfig,\n // only an explicitly bound frontend overrides the one inherited from the parent\n ...frontend && {\n styleFrontend: frontend\n }\n };\n if (defaultProps[\"children\"] || !acceptsClassName || mergedContext) {\n conf.neverFlatten = true;\n }\n return conf;\n })();\n var component = (0, import_componentDisplayName.setComponentDisplayName)((0, import_createComponent.createComponent)(staticConfigProps || {}), displayName || ComponentIn[import_componentDisplayName.componentDisplayName]);\n for (var key in ComponentIn) {\n if (key === \"propTypes\") continue;\n if (key in component) continue;\n component[key] = ComponentIn[key];\n }\n return component;\n}\nvar styledExport = new Proxy(styled, {\n get(target, prop) {\n if (prop in target) {\n return target[prop];\n }\n return function(options) {\n return styledHtml(prop, options);\n };\n }\n});\n//# sourceMappingURL=styled.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAA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,IAAI,OAAO,WAAW;EACtB,UAAU,OAAO,YAAY;CAC/B;CACA,OAAO;AACT;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,EACnC,IAAI,QAAQ,MAAM;CAChB,IAAI,QAAQ,QAAQ;EAClB,OAAO,OAAO;CAChB;CACA,OAAO,SAAS,SAAS;EACvB,OAAO,WAAW,MAAM,OAAO;CACjC;AACF,EACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"styled.native.js","names":[],"sources":["cjs/styled.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar styled_exports = {};\n__export(styled_exports, {\n\tcreateFrontendStyled: () => createFrontendStyled,\n\tcreateVariantResolver: () => import_types.createVariantResolver,\n\tstyled: () => styledExport,\n\tstyledHtml: () => styledHtml\n});\nmodule.exports = __toCommonJS(styled_exports);\nvar import_createComponent = require(\"./createComponent\");\nvar import_componentDisplayName = require(\"./helpers/componentDisplayName\");\nvar import_mergeVariants = require(\"./helpers/mergeVariants\");\nrequire(\"./helpers/warnOnce\");\nvar import_setupReactNative = require(\"./setupReactNative\");\nvar import_types = require(\"./types\");\nvar textLikeElements = /* @__PURE__ */ new Set([\n\t\"a\",\n\t\"abbr\",\n\t\"b\",\n\t\"bdi\",\n\t\"bdo\",\n\t\"cite\",\n\t\"code\",\n\t\"data\",\n\t\"del\",\n\t\"dfn\",\n\t\"em\",\n\t\"i\",\n\t\"ins\",\n\t\"kbd\",\n\t\"label\",\n\t\"mark\",\n\t\"q\",\n\t\"s\",\n\t\"samp\",\n\t\"small\",\n\t\"span\",\n\t\"strong\",\n\t\"sub\",\n\t\"sup\",\n\t\"time\",\n\t\"u\",\n\t\"var\"\n]);\nfunction styledHtml(tag, options) {\n\tvar isText = textLikeElements.has(tag);\n\tvar { variants, displayName, defaultVariants, context, ...defaultProps } = options || {};\n\tvar conf = {\n\t\tComponent: tag,\n\t\tvariants,\n\t\tdefaultProps,\n\t\tdefaultVariants,\n\t\tisText,\n\t\tacceptsClassName: true,\n\t\tcontext\n\t};\n\tif (defaultProps[\"children\"] || context) conf.neverFlatten = true;\n\treturn (0, import_componentDisplayName.setComponentDisplayName)((0, import_createComponent.createComponent)(conf), displayName);\n}\nfunction styled() {\n\tfor (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];\n\treturn styledImpl(void 0, ...args);\n}\nfunction createFrontendStyled(frontend) {\n\treturn function(ComponentIn, optionsOrBaseClassName, configOrOptions, maybeConfig) {\n\t\treturn styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptions, maybeConfig);\n\t};\n}\nfunction styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptions, maybeConfig) {\n\tvar hasBaseClassName = typeof optionsOrBaseClassName === \"string\";\n\tvar baseClassName = hasBaseClassName ? optionsOrBaseClassName : void 0;\n\tvar optionsIn = hasBaseClassName ? configOrOptions : optionsOrBaseClassName;\n\tvar config = hasBaseClassName ? maybeConfig : configOrOptions;\n\tvar options = optionsIn;\n\tvar displayName = options === null || options === void 0 ? void 0 : options.displayName;\n\tif (process.env.NODE_ENV !== \"production\") {\n\t\tif (!ComponentIn) throw new Error(`No component given to styled()`);\n\t}\n\tvar parentStaticConfig = ComponentIn[\"staticConfig\"];\n\tBoolean((config === null || config === void 0 ? void 0 : config.isReactNative) || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isReactNative));\n\tvar isReactNative = Boolean((config === null || config === void 0 ? void 0 : config.isReactNative) || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isReactNative));\n\tvar isPlainStyledComponent = !!parentStaticConfig && !(isReactNative || parentStaticConfig.isHOC);\n\tvar Component = (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isHOC) && !(parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isStyledHOC) || isPlainStyledComponent ? ComponentIn : (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.Component) || ComponentIn;\n\tvar reactNativeConfig = !parentStaticConfig ? (0, import_setupReactNative.getReactNativeConfig)(Component) : void 0;\n\tvar resolvedIsReactNative = Boolean(reactNativeConfig || isReactNative);\n\tvar staticConfigProps = (function() {\n\t\tvar { variants, displayName: _displayName, defaultVariants, context, contextProps, compoundVariants, ...defaultProps } = options || {};\n\t\tvar parentDefaultVariants;\n\t\tvar parentDefaultProps;\n\t\tvar parentCompoundVariants;\n\t\tvar mergedBaseClassName = (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.baseClassName) && baseClassName ? `${parentStaticConfig.baseClassName} ${baseClassName}` : baseClassName || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.baseClassName);\n\t\tif (parentStaticConfig) {\n\t\t\tif (!(parentStaticConfig.isHOC && !parentStaticConfig.isStyledHOC)) {\n\t\t\t\tvar pdp = parentStaticConfig.defaultProps;\n\t\t\t\tfor (var key2 in pdp) {\n\t\t\t\t\tvar val = pdp[key2];\n\t\t\t\t\tif (parentStaticConfig.defaultVariants) {\n\t\t\t\t\t\tif (key2 in parentStaticConfig.defaultVariants) {\n\t\t\t\t\t\t\tif (!defaultVariants || !(key2 in defaultVariants)) {\n\t\t\t\t\t\t\t\tparentDefaultVariants || (parentDefaultVariants = {});\n\t\t\t\t\t\t\t\tparentDefaultVariants[key2] = val;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!(key2 in defaultProps) && (!defaultVariants || !(key2 in defaultVariants))) {\n\t\t\t\t\t\tparentDefaultProps || (parentDefaultProps = {});\n\t\t\t\t\t\tparentDefaultProps[key2] = pdp[key2];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (parentStaticConfig.variants) variants = (0, import_mergeVariants.mergeVariants)(parentStaticConfig.variants, variants);\n\t\t\t\tparentCompoundVariants = parentStaticConfig.compoundVariants;\n\t\t\t}\n\t\t}\n\t\tvar mergedCompoundVariants = parentCompoundVariants || compoundVariants ? [...parentCompoundVariants || [], ...compoundVariants || []] : void 0;\n\t\tvar mergedContext = context || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.context);\n\t\tvar mergedContextProps = context ? contextProps : contextProps || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.contextProps);\n\t\tif (parentDefaultProps || defaultVariants || parentDefaultVariants) defaultProps = {\n\t\t\t...parentDefaultProps,\n\t\t\t...parentDefaultVariants,\n\t\t\t...defaultProps,\n\t\t\t...defaultVariants\n\t\t};\n\t\tvar isText = Boolean((config === null || config === void 0 ? void 0 : config.isText) || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isText));\n\t\tvar _config_acceptsClassName;\n\t\tvar acceptsClassName = (_config_acceptsClassName = config === null || config === void 0 ? void 0 : config.acceptsClassName) !== null && _config_acceptsClassName !== void 0 ? _config_acceptsClassName : isPlainStyledComponent || resolvedIsReactNative || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isHOC) && (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.acceptsClassName);\n\t\tvar conf = {\n\t\t\t...parentStaticConfig,\n\t\t\t...config,\n\t\t\t...!isPlainStyledComponent && { Component },\n\t\t\tvariants,\n\t\t\tcompoundVariants: mergedCompoundVariants,\n\t\t\tbaseClassName: mergedBaseClassName,\n\t\t\tdefaultProps,\n\t\t\tdefaultVariants,\n\t\t\tisReactNative: resolvedIsReactNative,\n\t\t\tisText,\n\t\t\tacceptsClassName,\n\t\t\tcontext: mergedContext,\n\t\t\tcontextProps: mergedContextProps,\n\t\t\t...reactNativeConfig,\n\t\t\tisStyledHOC: Boolean(parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isHOC),\n\t\t\tparentStaticConfig,\n\t\t\t...frontend && { styleFrontend: frontend }\n\t\t};\n\t\tif (defaultProps[\"children\"] || !acceptsClassName || mergedContext) conf.neverFlatten = true;\n\t\treturn conf;\n\t})();\n\tvar component = (0, import_componentDisplayName.setComponentDisplayName)((0, import_createComponent.createComponent)(staticConfigProps || {}), displayName || ComponentIn[import_componentDisplayName.componentDisplayName]);\n\tfor (var key in ComponentIn) {\n\t\tif (key === \"propTypes\") continue;\n\t\tif (key in component) continue;\n\t\tcomponent[key] = ComponentIn[key];\n\t}\n\treturn component;\n}\nvar styledExport = new Proxy(styled, { get(target, prop) {\n\tif (prop in target) return target[prop];\n\treturn function(options) {\n\t\treturn styledHtml(prop, options);\n\t};\n} });\n//# sourceMappingURL=styled.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC/B,KAAK,IAAI,QAAQ,KAAK,UAAU,QAAQ,MAAM;EAC7C,KAAK,IAAI;EACT,YAAY;CACb,CAAC;AACF;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC7C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAC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EACzB,IAAI,OAAO,WAAW;EACtB,UAAU,OAAO,YAAY;CAC9B;CACA,OAAO;AACR;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,EAAE,IAAI,QAAQ,MAAM;CACxD,IAAI,QAAQ,QAAQ,OAAO,OAAO;CAClC,OAAO,SAAS,SAAS;EACxB,OAAO,WAAW,MAAM,OAAO;CAChC;AACD,EAAE,CAAC"}
|
|
@@ -34,7 +34,6 @@ var import_config = require("../config.cjs");
|
|
|
34
34
|
var import_ComponentContext = require("../contexts/ComponentContext.cjs");
|
|
35
35
|
var import_insertStyleRule = require("../helpers/insertStyleRule.cjs");
|
|
36
36
|
var import_useMedia = require("../hooks/useMedia.cjs");
|
|
37
|
-
var import_resolveAnimationDriver = require("../helpers/resolveAnimationDriver.cjs");
|
|
38
37
|
var import_ConfigRevisionCheck = require("./ConfigRevisionCheck.cjs");
|
|
39
38
|
var import_SafeAreaTracker = require("./SafeAreaTracker.cjs");
|
|
40
39
|
var import_TamaguiRoot = require("./TamaguiRoot.cjs");
|
|
@@ -52,9 +51,8 @@ function firstThemeKey(config) {
|
|
|
52
51
|
function TamaguiProvider({ children, disableInjectCSS, config, className, defaultTheme: defaultThemeProp, reset, insets, isSubtreeRoot }) {
|
|
53
52
|
const defaultTheme = defaultThemeProp || firstThemeKey(config) || "light";
|
|
54
53
|
(0, import_constants.useIsomorphicLayoutEffect)(() => {
|
|
55
|
-
const resumeAccumulatingRules = (0, import_insertStyleRule.stopAccumulatingRules)();
|
|
56
54
|
(0, import_useMedia.updateMediaListeners)();
|
|
57
|
-
return
|
|
55
|
+
if (!process.env.TAMAGUI_DID_OUTPUT_CSS) return (0, import_insertStyleRule.stopAccumulatingRules)();
|
|
58
56
|
}, []);
|
|
59
57
|
const memoizedInsets = import_react.default.useMemo(() => insets, [
|
|
60
58
|
insets?.top,
|
|
@@ -62,10 +60,8 @@ function TamaguiProvider({ children, disableInjectCSS, config, className, defaul
|
|
|
62
60
|
insets?.bottom,
|
|
63
61
|
insets?.left
|
|
64
62
|
]);
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
return driver?.isStub ? null : driver;
|
|
68
|
-
}, [config?.animations]);
|
|
63
|
+
const configuredAnimationDriver = config?.animations;
|
|
64
|
+
const defaultAnimationDriver = !configuredAnimationDriver || configuredAnimationDriver.isStub ? null : configuredAnimationDriver;
|
|
69
65
|
(0, import_react.useEffect)(() => {
|
|
70
66
|
defaultAnimationDriver?.onMount?.();
|
|
71
67
|
}, []);
|
|
@@ -89,7 +85,7 @@ function TamaguiProvider({ children, disableInjectCSS, config, className, defaul
|
|
|
89
85
|
children: contents
|
|
90
86
|
});
|
|
91
87
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
92
|
-
config && !disableInjectCSS && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("style", {
|
|
88
|
+
!process.env.TAMAGUI_DID_OUTPUT_CSS && config && !disableInjectCSS && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("style", {
|
|
93
89
|
precedence: "default",
|
|
94
90
|
href: "tamagui-css",
|
|
95
91
|
children: config.getCSS()
|
|
@@ -37,7 +37,6 @@ var import_config = require("../config.native.js");
|
|
|
37
37
|
var import_ComponentContext = require("../contexts/ComponentContext.native.js");
|
|
38
38
|
var import_insertStyleRule = require("../helpers/insertStyleRule.native.js");
|
|
39
39
|
var import_useMedia = require("../hooks/useMedia.native.js");
|
|
40
|
-
var import_resolveAnimationDriver = require("../helpers/resolveAnimationDriver.native.js");
|
|
41
40
|
require("./ConfigRevisionCheck.native.js");
|
|
42
41
|
var import_SafeAreaTracker = require("./SafeAreaTracker.native.js");
|
|
43
42
|
var import_TamaguiRoot = require("./TamaguiRoot.native.js");
|
|
@@ -55,9 +54,8 @@ function TamaguiProvider(param) {
|
|
|
55
54
|
var { children, disableInjectCSS, config, className, defaultTheme: defaultThemeProp, reset, insets, isSubtreeRoot } = param;
|
|
56
55
|
var defaultTheme = defaultThemeProp || firstThemeKey(config) || "light";
|
|
57
56
|
(0, import_constants.useIsomorphicLayoutEffect)(function() {
|
|
58
|
-
var resumeAccumulatingRules = (0, import_insertStyleRule.stopAccumulatingRules)();
|
|
59
57
|
(0, import_useMedia.updateMediaListeners)();
|
|
60
|
-
return
|
|
58
|
+
if (!process.env.TAMAGUI_DID_OUTPUT_CSS) return (0, import_insertStyleRule.stopAccumulatingRules)();
|
|
61
59
|
}, []);
|
|
62
60
|
var memoizedInsets = import_react.default.useMemo(function() {
|
|
63
61
|
return insets;
|
|
@@ -67,10 +65,8 @@ function TamaguiProvider(param) {
|
|
|
67
65
|
insets === null || insets === void 0 ? void 0 : insets.bottom,
|
|
68
66
|
insets === null || insets === void 0 ? void 0 : insets.left
|
|
69
67
|
]);
|
|
70
|
-
var
|
|
71
|
-
|
|
72
|
-
return (driver === null || driver === void 0 ? void 0 : driver.isStub) ? null : driver;
|
|
73
|
-
}, [config === null || config === void 0 ? void 0 : config.animations]);
|
|
68
|
+
var configuredAnimationDriver = config === null || config === void 0 ? void 0 : config.animations;
|
|
69
|
+
var defaultAnimationDriver = !configuredAnimationDriver || configuredAnimationDriver.isStub ? null : configuredAnimationDriver;
|
|
74
70
|
(0, import_react.useEffect)(function() {
|
|
75
71
|
var _defaultAnimationDriver_onMount;
|
|
76
72
|
defaultAnimationDriver === null || defaultAnimationDriver === void 0 || (_defaultAnimationDriver_onMount = defaultAnimationDriver.onMount) == null || _defaultAnimationDriver_onMount.call(defaultAnimationDriver);
|
|
@@ -95,7 +91,7 @@ function TamaguiProvider(param) {
|
|
|
95
91
|
children: contents
|
|
96
92
|
});
|
|
97
93
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
98
|
-
false,
|
|
94
|
+
!process.env.TAMAGUI_DID_OUTPUT_CSS && false,
|
|
99
95
|
process.env.NODE_ENV !== "production" && false,
|
|
100
96
|
(0, import_SafeAreaTracker.hasSafeAreaTracker)() && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SafeAreaTracker.SafeAreaTracker, {}),
|
|
101
97
|
contents
|
|
@@ -37,7 +37,6 @@ var import_config = require("../config.native.js");
|
|
|
37
37
|
var import_ComponentContext = require("../contexts/ComponentContext.native.js");
|
|
38
38
|
var import_insertStyleRule = require("../helpers/insertStyleRule.native.js");
|
|
39
39
|
var import_useMedia = require("../hooks/useMedia.native.js");
|
|
40
|
-
var import_resolveAnimationDriver = require("../helpers/resolveAnimationDriver.native.js");
|
|
41
40
|
require("./ConfigRevisionCheck.native.js");
|
|
42
41
|
var import_SafeAreaTracker = require("./SafeAreaTracker.native.js");
|
|
43
42
|
var import_TamaguiRoot = require("./TamaguiRoot.native.js");
|
|
@@ -55,9 +54,8 @@ function TamaguiProvider(param) {
|
|
|
55
54
|
var { children, disableInjectCSS, config, className, defaultTheme: defaultThemeProp, reset, insets, isSubtreeRoot } = param;
|
|
56
55
|
var defaultTheme = defaultThemeProp || firstThemeKey(config) || "light";
|
|
57
56
|
(0, import_constants.useIsomorphicLayoutEffect)(function() {
|
|
58
|
-
var resumeAccumulatingRules = (0, import_insertStyleRule.stopAccumulatingRules)();
|
|
59
57
|
(0, import_useMedia.updateMediaListeners)();
|
|
60
|
-
return
|
|
58
|
+
if (!process.env.TAMAGUI_DID_OUTPUT_CSS) return (0, import_insertStyleRule.stopAccumulatingRules)();
|
|
61
59
|
}, []);
|
|
62
60
|
var memoizedInsets = import_react.default.useMemo(function() {
|
|
63
61
|
return insets;
|
|
@@ -67,10 +65,8 @@ function TamaguiProvider(param) {
|
|
|
67
65
|
insets === null || insets === void 0 ? void 0 : insets.bottom,
|
|
68
66
|
insets === null || insets === void 0 ? void 0 : insets.left
|
|
69
67
|
]);
|
|
70
|
-
var
|
|
71
|
-
|
|
72
|
-
return (driver === null || driver === void 0 ? void 0 : driver.isStub) ? null : driver;
|
|
73
|
-
}, [config === null || config === void 0 ? void 0 : config.animations]);
|
|
68
|
+
var configuredAnimationDriver = config === null || config === void 0 ? void 0 : config.animations;
|
|
69
|
+
var defaultAnimationDriver = !configuredAnimationDriver || configuredAnimationDriver.isStub ? null : configuredAnimationDriver;
|
|
74
70
|
(0, import_react.useEffect)(function() {
|
|
75
71
|
var _defaultAnimationDriver_onMount;
|
|
76
72
|
defaultAnimationDriver === null || defaultAnimationDriver === void 0 || (_defaultAnimationDriver_onMount = defaultAnimationDriver.onMount) == null || _defaultAnimationDriver_onMount.call(defaultAnimationDriver);
|
|
@@ -95,7 +91,7 @@ function TamaguiProvider(param) {
|
|
|
95
91
|
children: contents
|
|
96
92
|
});
|
|
97
93
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
98
|
-
false,
|
|
94
|
+
!process.env.TAMAGUI_DID_OUTPUT_CSS && false,
|
|
99
95
|
process.env.NODE_ENV !== "production" && false,
|
|
100
96
|
(0, import_SafeAreaTracker.hasSafeAreaTracker)() && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SafeAreaTracker.SafeAreaTracker, {}),
|
|
101
97
|
contents
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TamaguiProvider.native.js","names":[],"sources":["cjs/views/TamaguiProvider.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n\t// If the importer is in node compatibility mode or this is not an ESM\n\t// file that has been converted to a CommonJS file using a Babel-\n\t// compatible transform (i.e. \"__esModule\" has not been set), then set\n\t// \"default\" to the CommonJS \"module.exports\" for node compatibility.\n\tisNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", {\n\t\tvalue: mod,\n\t\tenumerable: true\n\t}) : target,\n\tmod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar TamaguiProvider_exports = {};\n__export(TamaguiProvider_exports, { TamaguiProvider: () => TamaguiProvider });\nmodule.exports = __toCommonJS(TamaguiProvider_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_use_did_finish_ssr = require(\"@tamagui/use-did-finish-ssr\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_config = require(\"../config\");\nvar import_ComponentContext = require(\"../contexts/ComponentContext\");\nvar import_insertStyleRule = require(\"../helpers/insertStyleRule\");\nvar import_useMedia = require(\"../hooks/useMedia\");\
|
|
1
|
+
{"version":3,"file":"TamaguiProvider.native.js","names":[],"sources":["cjs/views/TamaguiProvider.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n\t// If the importer is in node compatibility mode or this is not an ESM\n\t// file that has been converted to a CommonJS file using a Babel-\n\t// compatible transform (i.e. \"__esModule\" has not been set), then set\n\t// \"default\" to the CommonJS \"module.exports\" for node compatibility.\n\tisNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", {\n\t\tvalue: mod,\n\t\tenumerable: true\n\t}) : target,\n\tmod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar TamaguiProvider_exports = {};\n__export(TamaguiProvider_exports, { TamaguiProvider: () => TamaguiProvider });\nmodule.exports = __toCommonJS(TamaguiProvider_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_use_did_finish_ssr = require(\"@tamagui/use-did-finish-ssr\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_config = require(\"../config\");\nvar import_ComponentContext = require(\"../contexts/ComponentContext\");\nvar import_insertStyleRule = require(\"../helpers/insertStyleRule\");\nvar import_useMedia = require(\"../hooks/useMedia\");\nrequire(\"./ConfigRevisionCheck\");\nvar import_SafeAreaTracker = require(\"./SafeAreaTracker\");\nvar import_TamaguiRoot = require(\"./TamaguiRoot\");\nvar import_ThemeProvider = require(\"./ThemeProvider\");\nvar _cachedFirstKey;\nvar _cachedConfig;\nfunction firstThemeKey(config) {\n\tif (config !== _cachedConfig) {\n\t\t_cachedConfig = config;\n\t\t_cachedFirstKey = (config === null || config === void 0 ? void 0 : config.themes) ? Object.keys(config.themes)[0] : void 0;\n\t}\n\treturn _cachedFirstKey;\n}\nfunction TamaguiProvider(param) {\n\tvar { children, disableInjectCSS, config, className, defaultTheme: defaultThemeProp, reset, insets, isSubtreeRoot } = param;\n\tvar defaultTheme = defaultThemeProp || firstThemeKey(config) || \"light\";\n\t(0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\t(0, import_useMedia.updateMediaListeners)();\n\t\tif (!process.env.TAMAGUI_DID_OUTPUT_CSS) return (0, import_insertStyleRule.stopAccumulatingRules)();\n\t}, []);\n\tvar memoizedInsets = import_react.default.useMemo(function() {\n\t\treturn insets;\n\t}, [\n\t\tinsets === null || insets === void 0 ? void 0 : insets.top,\n\t\tinsets === null || insets === void 0 ? void 0 : insets.right,\n\t\tinsets === null || insets === void 0 ? void 0 : insets.bottom,\n\t\tinsets === null || insets === void 0 ? void 0 : insets.left\n\t]);\n\tvar configuredAnimationDriver = config === null || config === void 0 ? void 0 : config.animations;\n\tvar defaultAnimationDriver = !configuredAnimationDriver || configuredAnimationDriver.isStub ? null : configuredAnimationDriver;\n\t(0, import_react.useEffect)(function() {\n\t\tvar _defaultAnimationDriver_onMount;\n\t\tdefaultAnimationDriver === null || defaultAnimationDriver === void 0 || (_defaultAnimationDriver_onMount = defaultAnimationDriver.onMount) == null || _defaultAnimationDriver_onMount.call(defaultAnimationDriver);\n\t}, []);\n\tvar contents = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ComponentContext.ComponentContext.Provider, {\n\t\tanimationDriver: defaultAnimationDriver,\n\t\tinsets: memoizedInsets,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ThemeProvider.ThemeProvider, {\n\t\t\tdefaultTheme,\n\t\t\treset,\n\t\t\tclassName,\n\t\t\tisSubtreeRoot,\n\t\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_TamaguiRoot.TamaguiRoot, {\n\t\t\t\ttheme: defaultTheme,\n\t\t\t\tisRootRoot: true,\n\t\t\t\tchildren\n\t\t\t})\n\t\t})\n\t});\n\tif ((0, import_config.getSetting)(\"disableSSR\")) contents = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_use_did_finish_ssr.ClientOnly, {\n\t\tenabled: true,\n\t\tchildren: contents\n\t});\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [\n\t\t!process.env.TAMAGUI_DID_OUTPUT_CSS && false,\n\t\tprocess.env.NODE_ENV !== \"production\" && false,\n\t\t(0, import_SafeAreaTracker.hasSafeAreaTracker)() && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SafeAreaTracker.SafeAreaTracker, {}),\n\t\tcontents\n\t] });\n}\n//# sourceMappingURL=TamaguiProvider.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC/B,KAAK,IAAI,QAAQ,KAAK,UAAU,QAAQ,MAAM;EAC7C,KAAK,IAAI;EACT,YAAY;CACb,CAAC;AACF;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC7C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EACnE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GAAG,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QAAQ,UAAU,IAAI,KAAK;GAC9G,WAAW,KAAK;GAChB,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAC3D,CAAC;CACF;CACA,OAAO;AACR;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKpG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CACpE,OAAO;CACP,YAAY;AACb,CAAC,IAAI,QACL,GACD;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,G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EAAE,CAAC;AACJ"}
|
|
@@ -58,7 +58,7 @@ const ThemeUpdate = (0, import_compose_refs.createRefComponent)(function ThemeUp
|
|
|
58
58
|
"use no memo";
|
|
59
59
|
const config = (0, import_config.getConfig)();
|
|
60
60
|
const values = (0, import_variables.getInlineValuesFromProps)(props, config);
|
|
61
|
-
const css = !values ? null : (0, import_variables.getVariablesCSSRules)(values, config);
|
|
61
|
+
const css = process.env.TAMAGUI_DID_OUTPUT_CSS || !values ? null : (0, import_variables.getVariablesCSSRules)(values, config);
|
|
62
62
|
let rulesToInsert = null;
|
|
63
63
|
if (css && (0, import_insertStyleRule.shouldInsertStyleRules)(css.identifier)) {
|
|
64
64
|
(0, import_insertStyleRule.updateRules)(css.identifier, css.rules);
|
|
@@ -60,7 +60,7 @@ var ThemeUpdate = (0, import_compose_refs.createRefComponent)(function ThemeUpda
|
|
|
60
60
|
"use no memo";
|
|
61
61
|
var config = (0, import_config.getConfig)();
|
|
62
62
|
var values = (0, import_variables.getInlineValuesFromProps)(props, config);
|
|
63
|
-
var css = null;
|
|
63
|
+
var css = (process.env.TAMAGUI_DID_OUTPUT_CSS, null);
|
|
64
64
|
var rulesToInsert = null;
|
|
65
65
|
if (css && (0, import_insertStyleRule.shouldInsertStyleRules)(css.identifier)) {
|
|
66
66
|
(0, import_insertStyleRule.updateRules)(css.identifier, css.rules);
|
|
@@ -60,7 +60,7 @@ var ThemeUpdate = (0, import_compose_refs.createRefComponent)(function ThemeUpda
|
|
|
60
60
|
"use no memo";
|
|
61
61
|
var config = (0, import_config.getConfig)();
|
|
62
62
|
var values = (0, import_variables.getInlineValuesFromProps)(props, config);
|
|
63
|
-
var css = null;
|
|
63
|
+
var css = (process.env.TAMAGUI_DID_OUTPUT_CSS, null);
|
|
64
64
|
var rulesToInsert = null;
|
|
65
65
|
if (css && (0, import_insertStyleRule.shouldInsertStyleRules)(css.identifier)) {
|
|
66
66
|
(0, import_insertStyleRule.updateRules)(css.identifier, css.rules);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeUpdate.native.js","names":[],"sources":["cjs/views/ThemeUpdate.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n\t// If the importer is in node compatibility mode or this is not an ESM\n\t// file that has been converted to a CommonJS file using a Babel-\n\t// compatible transform (i.e. \"__esModule\" has not been set), then set\n\t// \"default\" to the CommonJS \"module.exports\" for node compatibility.\n\tisNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", {\n\t\tvalue: mod,\n\t\tenumerable: true\n\t}) : target,\n\tmod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar ThemeUpdate_exports = {};\n__export(ThemeUpdate_exports, {\n\tThemeUpdate: () => ThemeUpdate,\n\tcreateThemeUpdateState: () => createThemeUpdateState\n});\nmodule.exports = __toCommonJS(ThemeUpdate_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_config = require(\"../config\");\nvar import_insertStyleRule = require(\"../helpers/insertStyleRule\");\nvar import_variables = require(\"../helpers/variables\");\nvar import_Theme = require(\"./Theme\");\nvar useInsertEffectCompat = import_constants.isWeb ? import_react.default.useInsertionEffect || import_constants.useIsomorphicLayoutEffect : function() {};\nvar updateStates = /* @__PURE__ */ new WeakMap();\nfunction createThemeUpdateState(values, className) {\n\tvar cached = updateStates.get(values);\n\tif (cached) return cached;\n\tvar state = {\n\t\tkey: (0, import_variables.getInlineValuesKey)(values),\n\t\tclassName,\n\t\tvalues,\n\t\tgetTheme(parentTheme, themeName, config) {\n\t\t\treturn (0, import_variables.getMergedInlineTheme)(parentTheme, values, themeName, config);\n\t\t}\n\t};\n\tupdateStates.set(values, state);\n\treturn state;\n}\nvar ThemeUpdate = (0, import_compose_refs.createRefComponent)(function ThemeUpdate2(props, ref) {\n\t\"use no memo\";\n\tvar config = (0, import_config.getConfig)();\n\tvar values = (0, import_variables.getInlineValuesFromProps)(props, config);\n\tvar css = null;\n\tvar rulesToInsert = null;\n\tif (css && (0, import_insertStyleRule.shouldInsertStyleRules)(css.identifier)) {\n\t\t(0, import_insertStyleRule.updateRules)(css.identifier, css.rules);\n\t\trulesToInsert = { [css.identifier]: [\n\t\t\t\"variables\",\n\t\t\t\"\",\n\t\t\tcss.identifier,\n\t\t\tvoid 0,\n\t\t\tcss.rules\n\t\t] };\n\t}\n\tuseInsertEffectCompat(function() {\n\t\tif (rulesToInsert) (0, import_insertStyleRule.insertStyleRules)(rulesToInsert);\n\t}, [css === null || css === void 0 ? void 0 : css.identifier]);\n\tif (!values) return props.children;\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.Theme, {\n\t\tref,\n\t\t_themeUpdate: createThemeUpdateState(values, css === null || css === void 0 ? void 0 : css.identifier),\n\t\tchildren: props.children\n\t});\n});\n//# sourceMappingURL=ThemeUpdate.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,I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B,QAAQ,gCAAsB;AACrD,IAAI,eAAe,QAAQ,mBAAS;AACpC,IAAI,wBAAwB,iBAAiB,QAAQ,aAAa,QAAQ,sBAAsB,iBAAiB,4BAA4B,WAAW,CAAC;AACzJ,IAAI,+BAA+B,IAAI,QAAQ;AAC/C,SAAS,uBAAuB,QAAQ,WAAW;CAClD,IAAI,SAAS,aAAa,IAAI,MAAM;CACpC,IAAI,QAAQ,OAAO;CACnB,IAAI,QAAQ;EACX,MAAM,GAAG,iBAAiB,mBAAkB,CAAE,MAAM;EACpD;EACA;EACA,SAAS,aAAa,WAAW,QAAQ;GACxC,QAAQ,GAAG,iBAAiB,qBAAoB,CAAE,aAAa,QAAQ,WAAW,MAAM;EACzF;CACD;CACA,aAAa,IAAI,QAAQ,KAAK;CAC9B,OAAO;AACR;AACA,IAAI,eAAe,GAAG,oBAAoB,mBAAkB,CAAE,SAAS,aAAa,OAAO,KAAK;CAC/F;CACA,IAAI,UAAU,GAAG,cAAc,UAAS,CAAE;CAC1C,IAAI,UAAU,GAAG,iBAAiB,yBAAwB,CAAE,OAAO,MAAM;CACzE,IAAI,
|
|
1
|
+
{"version":3,"file":"ThemeUpdate.native.js","names":[],"sources":["cjs/views/ThemeUpdate.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n\t// If the importer is in node compatibility mode or this is not an ESM\n\t// file that has been converted to a CommonJS file using a Babel-\n\t// compatible transform (i.e. \"__esModule\" has not been set), then set\n\t// \"default\" to the CommonJS \"module.exports\" for node compatibility.\n\tisNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", {\n\t\tvalue: mod,\n\t\tenumerable: true\n\t}) : target,\n\tmod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar ThemeUpdate_exports = {};\n__export(ThemeUpdate_exports, {\n\tThemeUpdate: () => ThemeUpdate,\n\tcreateThemeUpdateState: () => createThemeUpdateState\n});\nmodule.exports = __toCommonJS(ThemeUpdate_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_config = require(\"../config\");\nvar import_insertStyleRule = require(\"../helpers/insertStyleRule\");\nvar import_variables = require(\"../helpers/variables\");\nvar import_Theme = require(\"./Theme\");\nvar useInsertEffectCompat = import_constants.isWeb ? import_react.default.useInsertionEffect || import_constants.useIsomorphicLayoutEffect : function() {};\nvar updateStates = /* @__PURE__ */ new WeakMap();\nfunction createThemeUpdateState(values, className) {\n\tvar cached = updateStates.get(values);\n\tif (cached) return cached;\n\tvar state = {\n\t\tkey: (0, import_variables.getInlineValuesKey)(values),\n\t\tclassName,\n\t\tvalues,\n\t\tgetTheme(parentTheme, themeName, config) {\n\t\t\treturn (0, import_variables.getMergedInlineTheme)(parentTheme, values, themeName, config);\n\t\t}\n\t};\n\tupdateStates.set(values, state);\n\treturn state;\n}\nvar ThemeUpdate = (0, import_compose_refs.createRefComponent)(function ThemeUpdate2(props, ref) {\n\t\"use no memo\";\n\tvar config = (0, import_config.getConfig)();\n\tvar values = (0, import_variables.getInlineValuesFromProps)(props, config);\n\tvar css = (process.env.TAMAGUI_DID_OUTPUT_CSS, null);\n\tvar rulesToInsert = null;\n\tif (css && (0, import_insertStyleRule.shouldInsertStyleRules)(css.identifier)) {\n\t\t(0, import_insertStyleRule.updateRules)(css.identifier, css.rules);\n\t\trulesToInsert = { [css.identifier]: [\n\t\t\t\"variables\",\n\t\t\t\"\",\n\t\t\tcss.identifier,\n\t\t\tvoid 0,\n\t\t\tcss.rules\n\t\t] };\n\t}\n\tuseInsertEffectCompat(function() {\n\t\tif (rulesToInsert) (0, import_insertStyleRule.insertStyleRules)(rulesToInsert);\n\t}, [css === null || css === void 0 ? void 0 : css.identifier]);\n\tif (!values) return props.children;\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Theme.Theme, {\n\t\tref,\n\t\t_themeUpdate: createThemeUpdateState(values, css === null || css === void 0 ? void 0 : css.identifier),\n\t\tchildren: props.children\n\t});\n});\n//# sourceMappingURL=ThemeUpdate.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC/B,KAAK,IAAI,QAAQ,KAAK,UAAU,QAAQ,MAAM;EAC7C,KAAK,IAAI;EACT,YAAY;CACb,CAAC;AACF;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC7C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EACnE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GAAG,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QAAQ,UAAU,IAAI,KAAK;GAC9G,WAAW,KAAK;GAChB,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,M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