@hanzogui/web 2.0.0-rc.41-hanzoai.5
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/.turbo/turbo-build.log +2 -0
- package/LICENSE +21 -0
- package/README.md +1 -0
- package/dist/cjs/Hanzogui.cjs +76 -0
- package/dist/cjs/Hanzogui.native.js +128 -0
- package/dist/cjs/Hanzogui.native.js.map +1 -0
- package/dist/cjs/_withStableStyle.cjs +75 -0
- package/dist/cjs/_withStableStyle.native.js +82 -0
- package/dist/cjs/_withStableStyle.native.js.map +1 -0
- package/dist/cjs/animationDriverTypes.test-d.cjs +77 -0
- package/dist/cjs/animationDriverTypes.test-d.native.js +80 -0
- package/dist/cjs/animationDriverTypes.test-d.native.js.map +1 -0
- package/dist/cjs/config.cjs +177 -0
- package/dist/cjs/config.native.js +199 -0
- package/dist/cjs/config.native.js.map +1 -0
- package/dist/cjs/constants/accessibilityDirectMap.cjs +36 -0
- package/dist/cjs/constants/accessibilityDirectMap.native.js +39 -0
- package/dist/cjs/constants/accessibilityDirectMap.native.js.map +1 -0
- package/dist/cjs/constants/constants.cjs +40 -0
- package/dist/cjs/constants/constants.native.js +43 -0
- package/dist/cjs/constants/constants.native.js.map +1 -0
- package/dist/cjs/constants/isDevTools.cjs +35 -0
- package/dist/cjs/constants/isDevTools.native.js +38 -0
- package/dist/cjs/constants/isDevTools.native.js.map +1 -0
- package/dist/cjs/contexts/ComponentContext.cjs +41 -0
- package/dist/cjs/contexts/ComponentContext.native.js +44 -0
- package/dist/cjs/contexts/ComponentContext.native.js.map +1 -0
- package/dist/cjs/contexts/GroupContext.cjs +29 -0
- package/dist/cjs/contexts/GroupContext.native.js +32 -0
- package/dist/cjs/contexts/GroupContext.native.js.map +1 -0
- package/dist/cjs/createComponent.cjs +1053 -0
- package/dist/cjs/createComponent.native.js +1033 -0
- package/dist/cjs/createComponent.native.js.map +1 -0
- package/dist/cjs/createFont.cjs +48 -0
- package/dist/cjs/createFont.native.js +53 -0
- package/dist/cjs/createFont.native.js.map +1 -0
- package/dist/cjs/createHanzogui.cjs +255 -0
- package/dist/cjs/createHanzogui.native.js +307 -0
- package/dist/cjs/createHanzogui.native.js.map +1 -0
- package/dist/cjs/createShorthands.cjs +30 -0
- package/dist/cjs/createShorthands.native.js +33 -0
- package/dist/cjs/createShorthands.native.js.map +1 -0
- package/dist/cjs/createTokens.cjs +31 -0
- package/dist/cjs/createTokens.native.js +35 -0
- package/dist/cjs/createTokens.native.js.map +1 -0
- package/dist/cjs/createVariable.cjs +122 -0
- package/dist/cjs/createVariable.native.js +141 -0
- package/dist/cjs/createVariable.native.js.map +1 -0
- package/dist/cjs/createVariables.cjs +74 -0
- package/dist/cjs/createVariables.native.js +83 -0
- package/dist/cjs/createVariables.native.js.map +1 -0
- package/dist/cjs/defaultComponentState.cjs +47 -0
- package/dist/cjs/defaultComponentState.native.js +50 -0
- package/dist/cjs/defaultComponentState.native.js.map +1 -0
- package/dist/cjs/eventHandling.cjs +48 -0
- package/dist/cjs/eventHandling.native.js +204 -0
- package/dist/cjs/eventHandling.native.js.map +1 -0
- package/dist/cjs/helpers/consoleLog.native.js +33 -0
- package/dist/cjs/helpers/consoleLog.native.js.map +1 -0
- package/dist/cjs/helpers/createDesignSystem.cjs +187 -0
- package/dist/cjs/helpers/createDesignSystem.native.js +235 -0
- package/dist/cjs/helpers/createDesignSystem.native.js.map +1 -0
- package/dist/cjs/helpers/createMediaStyle.cjs +127 -0
- package/dist/cjs/helpers/createMediaStyle.native.js +140 -0
- package/dist/cjs/helpers/createMediaStyle.native.js.map +1 -0
- package/dist/cjs/helpers/createStyledContext.cjs +101 -0
- package/dist/cjs/helpers/createStyledContext.native.js +109 -0
- package/dist/cjs/helpers/createStyledContext.native.js.map +1 -0
- package/dist/cjs/helpers/defaultAnimationDriver.cjs +45 -0
- package/dist/cjs/helpers/defaultAnimationDriver.native.js +64 -0
- package/dist/cjs/helpers/defaultAnimationDriver.native.js.map +1 -0
- package/dist/cjs/helpers/defaultOffset.cjs +31 -0
- package/dist/cjs/helpers/defaultOffset.native.js +34 -0
- package/dist/cjs/helpers/defaultOffset.native.js.map +1 -0
- package/dist/cjs/helpers/expandStyle.cjs +69 -0
- package/dist/cjs/helpers/expandStyle.native.js +152 -0
- package/dist/cjs/helpers/expandStyle.native.js.map +1 -0
- package/dist/cjs/helpers/expandStyles.cjs +41 -0
- package/dist/cjs/helpers/expandStyles.native.js +51 -0
- package/dist/cjs/helpers/expandStyles.native.js.map +1 -0
- package/dist/cjs/helpers/getCSSStylesAtomic.cjs +217 -0
- package/dist/cjs/helpers/getCSSStylesAtomic.native.js +38 -0
- package/dist/cjs/helpers/getCSSStylesAtomic.native.js.map +1 -0
- package/dist/cjs/helpers/getDefaultProps.cjs +43 -0
- package/dist/cjs/helpers/getDefaultProps.native.js +47 -0
- package/dist/cjs/helpers/getDefaultProps.native.js.map +1 -0
- package/dist/cjs/helpers/getDynamicVal.cjs +72 -0
- package/dist/cjs/helpers/getDynamicVal.native.js +76 -0
- package/dist/cjs/helpers/getDynamicVal.native.js.map +1 -0
- package/dist/cjs/helpers/getExpandedShorthands.cjs +42 -0
- package/dist/cjs/helpers/getExpandedShorthands.native.js +46 -0
- package/dist/cjs/helpers/getExpandedShorthands.native.js.map +1 -0
- package/dist/cjs/helpers/getFontLanguage.cjs +28 -0
- package/dist/cjs/helpers/getFontLanguage.native.js +33 -0
- package/dist/cjs/helpers/getFontLanguage.native.js.map +1 -0
- package/dist/cjs/helpers/getGroupPropParts.cjs +54 -0
- package/dist/cjs/helpers/getGroupPropParts.native.js +59 -0
- package/dist/cjs/helpers/getGroupPropParts.native.js.map +1 -0
- package/dist/cjs/helpers/getShorthandValue.cjs +33 -0
- package/dist/cjs/helpers/getShorthandValue.native.js +37 -0
- package/dist/cjs/helpers/getShorthandValue.native.js.map +1 -0
- package/dist/cjs/helpers/getSplitStyles.cjs +900 -0
- package/dist/cjs/helpers/getSplitStyles.native.js +922 -0
- package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -0
- package/dist/cjs/helpers/getThemeCSSRules.cjs +134 -0
- package/dist/cjs/helpers/getThemeCSSRules.native.js +33 -0
- package/dist/cjs/helpers/getThemeCSSRules.native.js.map +1 -0
- package/dist/cjs/helpers/getTokenForKey.cjs +174 -0
- package/dist/cjs/helpers/getTokenForKey.native.js +186 -0
- package/dist/cjs/helpers/getTokenForKey.native.js.map +1 -0
- package/dist/cjs/helpers/getVariantExtras.cjs +81 -0
- package/dist/cjs/helpers/getVariantExtras.native.js +85 -0
- package/dist/cjs/helpers/getVariantExtras.native.js.map +1 -0
- package/dist/cjs/helpers/insertStyleRule.cjs +233 -0
- package/dist/cjs/helpers/insertStyleRule.native.js +104 -0
- package/dist/cjs/helpers/insertStyleRule.native.js.map +1 -0
- package/dist/cjs/helpers/isActivePlatform.cjs +40 -0
- package/dist/cjs/helpers/isActivePlatform.native.js +43 -0
- package/dist/cjs/helpers/isActivePlatform.native.js.map +1 -0
- package/dist/cjs/helpers/isActiveTheme.cjs +31 -0
- package/dist/cjs/helpers/isActiveTheme.native.js +34 -0
- package/dist/cjs/helpers/isActiveTheme.native.js.map +1 -0
- package/dist/cjs/helpers/isHanzoguiComponent.cjs +31 -0
- package/dist/cjs/helpers/isHanzoguiComponent.native.js +34 -0
- package/dist/cjs/helpers/isHanzoguiComponent.native.js.map +1 -0
- package/dist/cjs/helpers/isHanzoguiElement.cjs +43 -0
- package/dist/cjs/helpers/isHanzoguiElement.native.js +46 -0
- package/dist/cjs/helpers/isHanzoguiElement.native.js.map +1 -0
- package/dist/cjs/helpers/isObj.cjs +28 -0
- package/dist/cjs/helpers/isObj.native.js +38 -0
- package/dist/cjs/helpers/isObj.native.js.map +1 -0
- package/dist/cjs/helpers/log.cjs +39 -0
- package/dist/cjs/helpers/log.native.js +43 -0
- package/dist/cjs/helpers/log.native.js.map +1 -0
- package/dist/cjs/helpers/mainThreadPressEvents.cjs +28 -0
- package/dist/cjs/helpers/mainThreadPressEvents.native.js +133 -0
- package/dist/cjs/helpers/mainThreadPressEvents.native.js.map +1 -0
- package/dist/cjs/helpers/matchMedia.cjs +38 -0
- package/dist/cjs/helpers/matchMedia.native.js +62 -0
- package/dist/cjs/helpers/matchMedia.native.js.map +1 -0
- package/dist/cjs/helpers/mediaObjectToString.cjs +51 -0
- package/dist/cjs/helpers/mediaObjectToString.native.js +57 -0
- package/dist/cjs/helpers/mediaObjectToString.native.js.map +1 -0
- package/dist/cjs/helpers/mediaState.cjs +49 -0
- package/dist/cjs/helpers/mediaState.native.js +54 -0
- package/dist/cjs/helpers/mediaState.native.js.map +1 -0
- package/dist/cjs/helpers/mergeProps.cjs +79 -0
- package/dist/cjs/helpers/mergeProps.native.js +87 -0
- package/dist/cjs/helpers/mergeProps.native.js.map +1 -0
- package/dist/cjs/helpers/mergeRenderElementProps.cjs +35 -0
- package/dist/cjs/helpers/mergeRenderElementProps.native.js +38 -0
- package/dist/cjs/helpers/mergeRenderElementProps.native.js.map +1 -0
- package/dist/cjs/helpers/mergeSlotStyleProps.cjs +52 -0
- package/dist/cjs/helpers/mergeSlotStyleProps.native.js +55 -0
- package/dist/cjs/helpers/mergeSlotStyleProps.native.js.map +1 -0
- package/dist/cjs/helpers/mergeVariants.cjs +52 -0
- package/dist/cjs/helpers/mergeVariants.native.js +56 -0
- package/dist/cjs/helpers/mergeVariants.native.js.map +1 -0
- package/dist/cjs/helpers/nativeOnlyProps.cjs +62 -0
- package/dist/cjs/helpers/nativeOnlyProps.native.js +65 -0
- package/dist/cjs/helpers/nativeOnlyProps.native.js.map +1 -0
- package/dist/cjs/helpers/normalizeColor.cjs +47 -0
- package/dist/cjs/helpers/normalizeColor.native.js +53 -0
- package/dist/cjs/helpers/normalizeColor.native.js.map +1 -0
- package/dist/cjs/helpers/normalizeShadow.cjs +50 -0
- package/dist/cjs/helpers/normalizeShadow.native.js +54 -0
- package/dist/cjs/helpers/normalizeShadow.native.js.map +1 -0
- package/dist/cjs/helpers/normalizeStyle.cjs +54 -0
- package/dist/cjs/helpers/normalizeStyle.native.js +58 -0
- package/dist/cjs/helpers/normalizeStyle.native.js.map +1 -0
- package/dist/cjs/helpers/normalizeStylePropKeys.cjs +28 -0
- package/dist/cjs/helpers/normalizeStylePropKeys.native.js +42 -0
- package/dist/cjs/helpers/normalizeStylePropKeys.native.js.map +1 -0
- package/dist/cjs/helpers/normalizeValueWithProperty.cjs +54 -0
- package/dist/cjs/helpers/normalizeValueWithProperty.native.js +63 -0
- package/dist/cjs/helpers/normalizeValueWithProperty.native.js.map +1 -0
- package/dist/cjs/helpers/objectIdentityKey.cjs +46 -0
- package/dist/cjs/helpers/objectIdentityKey.native.js +54 -0
- package/dist/cjs/helpers/objectIdentityKey.native.js.map +1 -0
- package/dist/cjs/helpers/parseBorderShorthand.cjs +30 -0
- package/dist/cjs/helpers/parseBorderShorthand.native.js +86 -0
- package/dist/cjs/helpers/parseBorderShorthand.native.js.map +1 -0
- package/dist/cjs/helpers/parseNativeStyle.cjs +167 -0
- package/dist/cjs/helpers/parseNativeStyle.native.js +190 -0
- package/dist/cjs/helpers/parseNativeStyle.native.js.map +1 -0
- package/dist/cjs/helpers/parseOutlineShorthand.cjs +30 -0
- package/dist/cjs/helpers/parseOutlineShorthand.native.js +80 -0
- package/dist/cjs/helpers/parseOutlineShorthand.native.js.map +1 -0
- package/dist/cjs/helpers/platformResolveValue.cjs +38 -0
- package/dist/cjs/helpers/platformResolveValue.native.js +74 -0
- package/dist/cjs/helpers/platformResolveValue.native.js.map +1 -0
- package/dist/cjs/helpers/pointerEvents.cjs +28 -0
- package/dist/cjs/helpers/pointerEvents.native.js +155 -0
- package/dist/cjs/helpers/pointerEvents.native.js.map +1 -0
- package/dist/cjs/helpers/propMapper.cjs +257 -0
- package/dist/cjs/helpers/propMapper.native.js +331 -0
- package/dist/cjs/helpers/propMapper.native.js.map +1 -0
- package/dist/cjs/helpers/proxyThemeToParents.cjs +63 -0
- package/dist/cjs/helpers/proxyThemeToParents.native.js +161 -0
- package/dist/cjs/helpers/proxyThemeToParents.native.js.map +1 -0
- package/dist/cjs/helpers/proxyThemeVariables.cjs +38 -0
- package/dist/cjs/helpers/proxyThemeVariables.native.js +43 -0
- package/dist/cjs/helpers/proxyThemeVariables.native.js.map +1 -0
- package/dist/cjs/helpers/pseudoDescriptors.cjs +82 -0
- package/dist/cjs/helpers/pseudoDescriptors.native.js +85 -0
- package/dist/cjs/helpers/pseudoDescriptors.native.js.map +1 -0
- package/dist/cjs/helpers/pseudoTransitions.cjs +83 -0
- package/dist/cjs/helpers/pseudoTransitions.native.js +88 -0
- package/dist/cjs/helpers/pseudoTransitions.native.js.map +1 -0
- package/dist/cjs/helpers/registerCSSVariable.cjs +81 -0
- package/dist/cjs/helpers/registerCSSVariable.native.js +85 -0
- package/dist/cjs/helpers/registerCSSVariable.native.js.map +1 -0
- package/dist/cjs/helpers/resolveAnimationDriver.cjs +37 -0
- package/dist/cjs/helpers/resolveAnimationDriver.native.js +41 -0
- package/dist/cjs/helpers/resolveAnimationDriver.native.js.map +1 -0
- package/dist/cjs/helpers/resolveCompoundTokens.cjs +41 -0
- package/dist/cjs/helpers/resolveCompoundTokens.native.js +44 -0
- package/dist/cjs/helpers/resolveCompoundTokens.native.js.map +1 -0
- package/dist/cjs/helpers/resolveRem.cjs +34 -0
- package/dist/cjs/helpers/resolveRem.native.js +59 -0
- package/dist/cjs/helpers/resolveRem.native.js.map +1 -0
- package/dist/cjs/helpers/resolveSafeArea.cjs +36 -0
- package/dist/cjs/helpers/resolveSafeArea.native.js +46 -0
- package/dist/cjs/helpers/resolveSafeArea.native.js.map +1 -0
- package/dist/cjs/helpers/setElementProps.cjs +31 -0
- package/dist/cjs/helpers/setElementProps.native.js +39 -0
- package/dist/cjs/helpers/setElementProps.native.js.map +1 -0
- package/dist/cjs/helpers/skipProps.cjs +46 -0
- package/dist/cjs/helpers/skipProps.native.js +49 -0
- package/dist/cjs/helpers/skipProps.native.js.map +1 -0
- package/dist/cjs/helpers/sortString.cjs +28 -0
- package/dist/cjs/helpers/sortString.native.js +33 -0
- package/dist/cjs/helpers/sortString.native.js.map +1 -0
- package/dist/cjs/helpers/subscribeToContextGroup.cjs +109 -0
- package/dist/cjs/helpers/subscribeToContextGroup.native.js +157 -0
- package/dist/cjs/helpers/subscribeToContextGroup.native.js.map +1 -0
- package/dist/cjs/helpers/themeable.cjs +114 -0
- package/dist/cjs/helpers/themeable.native.js +119 -0
- package/dist/cjs/helpers/themeable.native.js.map +1 -0
- package/dist/cjs/helpers/themes.cjs +46 -0
- package/dist/cjs/helpers/themes.native.js +49 -0
- package/dist/cjs/helpers/themes.native.js.map +1 -0
- package/dist/cjs/helpers/timer.cjs +34 -0
- package/dist/cjs/helpers/timer.native.js +37 -0
- package/dist/cjs/helpers/timer.native.js.map +1 -0
- package/dist/cjs/helpers/transformsToString.cjs +43 -0
- package/dist/cjs/helpers/transformsToString.native.js +46 -0
- package/dist/cjs/helpers/transformsToString.native.js.map +1 -0
- package/dist/cjs/helpers/useRenderElement.cjs +53 -0
- package/dist/cjs/helpers/useRenderElement.native.js +60 -0
- package/dist/cjs/helpers/useRenderElement.native.js.map +1 -0
- package/dist/cjs/helpers/webPropsToSkip.cjs +28 -0
- package/dist/cjs/helpers/webPropsToSkip.native.js +78 -0
- package/dist/cjs/helpers/webPropsToSkip.native.js.map +1 -0
- package/dist/cjs/helpers/wrapStyleTags.cjs +42 -0
- package/dist/cjs/helpers/wrapStyleTags.native.js +33 -0
- package/dist/cjs/helpers/wrapStyleTags.native.js.map +1 -0
- package/dist/cjs/hooks/doesRootSchemeMatchSystem.cjs +30 -0
- package/dist/cjs/hooks/doesRootSchemeMatchSystem.native.js +36 -0
- package/dist/cjs/hooks/doesRootSchemeMatchSystem.native.js.map +1 -0
- package/dist/cjs/hooks/getThemeProxied.cjs +78 -0
- package/dist/cjs/hooks/getThemeProxied.native.js +107 -0
- package/dist/cjs/hooks/getThemeProxied.native.js.map +1 -0
- package/dist/cjs/hooks/useComponentState.cjs +195 -0
- package/dist/cjs/hooks/useComponentState.native.js +209 -0
- package/dist/cjs/hooks/useComponentState.native.js.map +1 -0
- package/dist/cjs/hooks/useDisableSSR.cjs +31 -0
- package/dist/cjs/hooks/useDisableSSR.native.js +35 -0
- package/dist/cjs/hooks/useDisableSSR.native.js.map +1 -0
- package/dist/cjs/hooks/useIsTouchDevice.cjs +32 -0
- package/dist/cjs/hooks/useIsTouchDevice.native.js +35 -0
- package/dist/cjs/hooks/useIsTouchDevice.native.js.map +1 -0
- package/dist/cjs/hooks/useMedia.cjs +238 -0
- package/dist/cjs/hooks/useMedia.native.js +269 -0
- package/dist/cjs/hooks/useMedia.native.js.map +1 -0
- package/dist/cjs/hooks/useProps.cjs +120 -0
- package/dist/cjs/hooks/useProps.native.js +125 -0
- package/dist/cjs/hooks/useProps.native.js.map +1 -0
- package/dist/cjs/hooks/useTheme.cjs +57 -0
- package/dist/cjs/hooks/useTheme.native.js +61 -0
- package/dist/cjs/hooks/useTheme.native.js.map +1 -0
- package/dist/cjs/hooks/useThemeName.cjs +39 -0
- package/dist/cjs/hooks/useThemeName.native.js +45 -0
- package/dist/cjs/hooks/useThemeName.native.js.map +1 -0
- package/dist/cjs/hooks/useThemeState.cjs +336 -0
- package/dist/cjs/hooks/useThemeState.native.js +442 -0
- package/dist/cjs/hooks/useThemeState.native.js.map +1 -0
- package/dist/cjs/index.cjs +122 -0
- package/dist/cjs/index.native.js +125 -0
- package/dist/cjs/index.native.js.map +1 -0
- package/dist/cjs/inject-styles.cjs +42 -0
- package/dist/cjs/inject-styles.native.js +46 -0
- package/dist/cjs/inject-styles.native.js.map +1 -0
- package/dist/cjs/insertFont.cjs +84 -0
- package/dist/cjs/insertFont.native.js +81 -0
- package/dist/cjs/insertFont.native.js.map +1 -0
- package/dist/cjs/interfaces/CSSColorNames.cjs +18 -0
- package/dist/cjs/interfaces/CSSColorNames.native.js +21 -0
- package/dist/cjs/interfaces/CSSColorNames.native.js.map +1 -0
- package/dist/cjs/interfaces/GetRef.cjs +18 -0
- package/dist/cjs/interfaces/GetRef.native.js +21 -0
- package/dist/cjs/interfaces/GetRef.native.js.map +1 -0
- package/dist/cjs/interfaces/HanzoguiComponentEvents.cjs +18 -0
- package/dist/cjs/interfaces/HanzoguiComponentEvents.native.js +21 -0
- package/dist/cjs/interfaces/HanzoguiComponentEvents.native.js.map +1 -0
- package/dist/cjs/interfaces/HanzoguiComponentPropsBaseBase.cjs +18 -0
- package/dist/cjs/interfaces/HanzoguiComponentPropsBaseBase.native.js +21 -0
- package/dist/cjs/interfaces/HanzoguiComponentPropsBaseBase.native.js.map +1 -0
- package/dist/cjs/interfaces/RNExclusiveTypes.cjs +18 -0
- package/dist/cjs/interfaces/RNExclusiveTypes.native.js +21 -0
- package/dist/cjs/interfaces/RNExclusiveTypes.native.js.map +1 -0
- package/dist/cjs/setupHooks.cjs +32 -0
- package/dist/cjs/setupHooks.native.js +35 -0
- package/dist/cjs/setupHooks.native.js.map +1 -0
- package/dist/cjs/setupReactNative.cjs +54 -0
- package/dist/cjs/setupReactNative.native.js +58 -0
- package/dist/cjs/setupReactNative.native.js.map +1 -0
- package/dist/cjs/styled.cjs +159 -0
- package/dist/cjs/styled.native.js +165 -0
- package/dist/cjs/styled.native.js.map +1 -0
- package/dist/cjs/styledHtml.test-d.cjs +187 -0
- package/dist/cjs/styledHtml.test-d.native.js +190 -0
- package/dist/cjs/styledHtml.test-d.native.js.map +1 -0
- package/dist/cjs/type-utils.cjs +18 -0
- package/dist/cjs/type-utils.native.js +21 -0
- package/dist/cjs/type-utils.native.js.map +1 -0
- package/dist/cjs/types.cjs +18 -0
- package/dist/cjs/types.native.js +21 -0
- package/dist/cjs/types.native.js.map +1 -0
- package/dist/cjs/views/Configuration.cjs +52 -0
- package/dist/cjs/views/Configuration.native.js +56 -0
- package/dist/cjs/views/Configuration.native.js.map +1 -0
- package/dist/cjs/views/FontLanguage.cjs +41 -0
- package/dist/cjs/views/FontLanguage.native.js +59 -0
- package/dist/cjs/views/FontLanguage.native.js.map +1 -0
- package/dist/cjs/views/HanzoguiProvider.cjs +103 -0
- package/dist/cjs/views/HanzoguiProvider.native.js +108 -0
- package/dist/cjs/views/HanzoguiProvider.native.js.map +1 -0
- package/dist/cjs/views/HanzoguiRoot.cjs +79 -0
- package/dist/cjs/views/HanzoguiRoot.native.js +33 -0
- package/dist/cjs/views/HanzoguiRoot.native.js.map +1 -0
- package/dist/cjs/views/Slot.cjs +82 -0
- package/dist/cjs/views/Slot.native.js +86 -0
- package/dist/cjs/views/Slot.native.js.map +1 -0
- package/dist/cjs/views/Text.cjs +61 -0
- package/dist/cjs/views/Text.native.js +52 -0
- package/dist/cjs/views/Text.native.js.map +1 -0
- package/dist/cjs/views/Theme.cjs +198 -0
- package/dist/cjs/views/Theme.native.js +207 -0
- package/dist/cjs/views/Theme.native.js.map +1 -0
- package/dist/cjs/views/ThemeDebug.cjs +98 -0
- package/dist/cjs/views/ThemeDebug.native.js +39 -0
- package/dist/cjs/views/ThemeDebug.native.js.map +1 -0
- package/dist/cjs/views/ThemeProvider.cjs +55 -0
- package/dist/cjs/views/ThemeProvider.native.js +48 -0
- package/dist/cjs/views/ThemeProvider.native.js.map +1 -0
- package/dist/cjs/views/View.cjs +33 -0
- package/dist/cjs/views/View.native.js +36 -0
- package/dist/cjs/views/View.native.js.map +1 -0
- package/dist/esm/Hanzogui.mjs +38 -0
- package/dist/esm/Hanzogui.mjs.map +1 -0
- package/dist/esm/Hanzogui.native.js +87 -0
- package/dist/esm/Hanzogui.native.js.map +1 -0
- package/dist/esm/_withStableStyle.mjs +39 -0
- package/dist/esm/_withStableStyle.mjs.map +1 -0
- package/dist/esm/_withStableStyle.native.js +43 -0
- package/dist/esm/_withStableStyle.native.js.map +1 -0
- package/dist/esm/animationDriverTypes.test-d.mjs +78 -0
- package/dist/esm/animationDriverTypes.test-d.mjs.map +1 -0
- package/dist/esm/animationDriverTypes.test-d.native.js +78 -0
- package/dist/esm/animationDriverTypes.test-d.native.js.map +1 -0
- package/dist/esm/config.mjs +136 -0
- package/dist/esm/config.mjs.map +1 -0
- package/dist/esm/config.native.js +155 -0
- package/dist/esm/config.native.js.map +1 -0
- package/dist/esm/constants/accessibilityDirectMap.mjs +7 -0
- package/dist/esm/constants/accessibilityDirectMap.mjs.map +1 -0
- package/dist/esm/constants/accessibilityDirectMap.native.js +7 -0
- package/dist/esm/constants/accessibilityDirectMap.native.js.map +1 -0
- package/dist/esm/constants/constants.mjs +12 -0
- package/dist/esm/constants/constants.mjs.map +1 -0
- package/dist/esm/constants/constants.native.js +12 -0
- package/dist/esm/constants/constants.native.js.map +1 -0
- package/dist/esm/constants/isDevTools.mjs +10 -0
- package/dist/esm/constants/isDevTools.mjs.map +1 -0
- package/dist/esm/constants/isDevTools.native.js +10 -0
- package/dist/esm/constants/isDevTools.native.js.map +1 -0
- package/dist/esm/contexts/ComponentContext.mjs +15 -0
- package/dist/esm/contexts/ComponentContext.mjs.map +1 -0
- package/dist/esm/contexts/ComponentContext.native.js +15 -0
- package/dist/esm/contexts/ComponentContext.native.js.map +1 -0
- package/dist/esm/contexts/GroupContext.mjs +4 -0
- package/dist/esm/contexts/GroupContext.mjs.map +1 -0
- package/dist/esm/contexts/GroupContext.native.js +4 -0
- package/dist/esm/contexts/GroupContext.native.js.map +1 -0
- package/dist/esm/createComponent.mjs +1013 -0
- package/dist/esm/createComponent.mjs.map +1 -0
- package/dist/esm/createComponent.native.js +990 -0
- package/dist/esm/createComponent.native.js.map +1 -0
- package/dist/esm/createFont.mjs +23 -0
- package/dist/esm/createFont.mjs.map +1 -0
- package/dist/esm/createFont.native.js +25 -0
- package/dist/esm/createFont.native.js.map +1 -0
- package/dist/esm/createHanzogui.mjs +228 -0
- package/dist/esm/createHanzogui.mjs.map +1 -0
- package/dist/esm/createHanzogui.native.js +276 -0
- package/dist/esm/createHanzogui.native.js.map +1 -0
- package/dist/esm/createShorthands.mjs +5 -0
- package/dist/esm/createShorthands.mjs.map +1 -0
- package/dist/esm/createShorthands.native.js +5 -0
- package/dist/esm/createShorthands.native.js.map +1 -0
- package/dist/esm/createTokens.mjs +6 -0
- package/dist/esm/createTokens.mjs.map +1 -0
- package/dist/esm/createTokens.native.js +7 -0
- package/dist/esm/createTokens.native.js.map +1 -0
- package/dist/esm/createVariable.mjs +87 -0
- package/dist/esm/createVariable.mjs.map +1 -0
- package/dist/esm/createVariable.native.js +103 -0
- package/dist/esm/createVariable.native.js.map +1 -0
- package/dist/esm/createVariables.mjs +49 -0
- package/dist/esm/createVariables.mjs.map +1 -0
- package/dist/esm/createVariables.native.js +55 -0
- package/dist/esm/createVariables.native.js.map +1 -0
- package/dist/esm/defaultComponentState.mjs +20 -0
- package/dist/esm/defaultComponentState.mjs.map +1 -0
- package/dist/esm/defaultComponentState.native.js +20 -0
- package/dist/esm/defaultComponentState.native.js.map +1 -0
- package/dist/esm/eventHandling.mjs +21 -0
- package/dist/esm/eventHandling.mjs.map +1 -0
- package/dist/esm/eventHandling.native.js +163 -0
- package/dist/esm/eventHandling.native.js.map +1 -0
- package/dist/esm/helpers/consoleLog.native.js +4 -0
- package/dist/esm/helpers/consoleLog.native.js.map +1 -0
- package/dist/esm/helpers/createDesignSystem.mjs +157 -0
- package/dist/esm/helpers/createDesignSystem.mjs.map +1 -0
- package/dist/esm/helpers/createDesignSystem.native.js +202 -0
- package/dist/esm/helpers/createDesignSystem.native.js.map +1 -0
- package/dist/esm/helpers/createMediaStyle.mjs +100 -0
- package/dist/esm/helpers/createMediaStyle.mjs.map +1 -0
- package/dist/esm/helpers/createMediaStyle.native.js +110 -0
- package/dist/esm/helpers/createMediaStyle.native.js.map +1 -0
- package/dist/esm/helpers/createStyledContext.mjs +65 -0
- package/dist/esm/helpers/createStyledContext.mjs.map +1 -0
- package/dist/esm/helpers/createStyledContext.native.js +70 -0
- package/dist/esm/helpers/createStyledContext.native.js.map +1 -0
- package/dist/esm/helpers/defaultAnimationDriver.mjs +20 -0
- package/dist/esm/helpers/defaultAnimationDriver.mjs.map +1 -0
- package/dist/esm/helpers/defaultAnimationDriver.native.js +36 -0
- package/dist/esm/helpers/defaultAnimationDriver.native.js.map +1 -0
- package/dist/esm/helpers/defaultOffset.mjs +6 -0
- package/dist/esm/helpers/defaultOffset.mjs.map +1 -0
- package/dist/esm/helpers/defaultOffset.native.js +6 -0
- package/dist/esm/helpers/defaultOffset.native.js.map +1 -0
- package/dist/esm/helpers/expandStyle.mjs +44 -0
- package/dist/esm/helpers/expandStyle.mjs.map +1 -0
- package/dist/esm/helpers/expandStyle.native.js +124 -0
- package/dist/esm/helpers/expandStyle.native.js.map +1 -0
- package/dist/esm/helpers/expandStyles.mjs +16 -0
- package/dist/esm/helpers/expandStyles.mjs.map +1 -0
- package/dist/esm/helpers/expandStyles.native.js +23 -0
- package/dist/esm/helpers/expandStyles.native.js.map +1 -0
- package/dist/esm/helpers/getCSSStylesAtomic.mjs +190 -0
- package/dist/esm/helpers/getCSSStylesAtomic.mjs.map +1 -0
- package/dist/esm/helpers/getCSSStylesAtomic.native.js +8 -0
- package/dist/esm/helpers/getCSSStylesAtomic.native.js.map +1 -0
- package/dist/esm/helpers/getDefaultProps.mjs +18 -0
- package/dist/esm/helpers/getDefaultProps.mjs.map +1 -0
- package/dist/esm/helpers/getDefaultProps.native.js +19 -0
- package/dist/esm/helpers/getDefaultProps.native.js.map +1 -0
- package/dist/esm/helpers/getDynamicVal.mjs +44 -0
- package/dist/esm/helpers/getDynamicVal.mjs.map +1 -0
- package/dist/esm/helpers/getDynamicVal.native.js +45 -0
- package/dist/esm/helpers/getDynamicVal.native.js.map +1 -0
- package/dist/esm/helpers/getExpandedShorthands.mjs +16 -0
- package/dist/esm/helpers/getExpandedShorthands.mjs.map +1 -0
- package/dist/esm/helpers/getExpandedShorthands.native.js +17 -0
- package/dist/esm/helpers/getExpandedShorthands.native.js.map +1 -0
- package/dist/esm/helpers/getFontLanguage.mjs +3 -0
- package/dist/esm/helpers/getFontLanguage.mjs.map +1 -0
- package/dist/esm/helpers/getFontLanguage.native.js +5 -0
- package/dist/esm/helpers/getFontLanguage.native.js.map +1 -0
- package/dist/esm/helpers/getGroupPropParts.mjs +29 -0
- package/dist/esm/helpers/getGroupPropParts.mjs.map +1 -0
- package/dist/esm/helpers/getGroupPropParts.native.js +31 -0
- package/dist/esm/helpers/getGroupPropParts.native.js.map +1 -0
- package/dist/esm/helpers/getShorthandValue.mjs +8 -0
- package/dist/esm/helpers/getShorthandValue.mjs.map +1 -0
- package/dist/esm/helpers/getShorthandValue.native.js +9 -0
- package/dist/esm/helpers/getShorthandValue.native.js.map +1 -0
- package/dist/esm/helpers/getSplitStyles.mjs +859 -0
- package/dist/esm/helpers/getSplitStyles.mjs.map +1 -0
- package/dist/esm/helpers/getSplitStyles.native.js +877 -0
- package/dist/esm/helpers/getSplitStyles.native.js.map +1 -0
- package/dist/esm/helpers/getThemeCSSRules.mjs +109 -0
- package/dist/esm/helpers/getThemeCSSRules.mjs.map +1 -0
- package/dist/esm/helpers/getThemeCSSRules.native.js +5 -0
- package/dist/esm/helpers/getThemeCSSRules.native.js.map +1 -0
- package/dist/esm/helpers/getTokenForKey.mjs +146 -0
- package/dist/esm/helpers/getTokenForKey.mjs.map +1 -0
- package/dist/esm/helpers/getTokenForKey.native.js +155 -0
- package/dist/esm/helpers/getTokenForKey.native.js.map +1 -0
- package/dist/esm/helpers/getVariantExtras.mjs +55 -0
- package/dist/esm/helpers/getVariantExtras.mjs.map +1 -0
- package/dist/esm/helpers/getVariantExtras.native.js +56 -0
- package/dist/esm/helpers/getVariantExtras.native.js.map +1 -0
- package/dist/esm/helpers/insertStyleRule.mjs +201 -0
- package/dist/esm/helpers/insertStyleRule.mjs.map +1 -0
- package/dist/esm/helpers/insertStyleRule.native.js +69 -0
- package/dist/esm/helpers/insertStyleRule.native.js.map +1 -0
- package/dist/esm/helpers/isActivePlatform.mjs +14 -0
- package/dist/esm/helpers/isActivePlatform.mjs.map +1 -0
- package/dist/esm/helpers/isActivePlatform.native.js +14 -0
- package/dist/esm/helpers/isActivePlatform.native.js.map +1 -0
- package/dist/esm/helpers/isActiveTheme.mjs +6 -0
- package/dist/esm/helpers/isActiveTheme.mjs.map +1 -0
- package/dist/esm/helpers/isActiveTheme.native.js +6 -0
- package/dist/esm/helpers/isActiveTheme.native.js.map +1 -0
- package/dist/esm/helpers/isHanzoguiComponent.mjs +6 -0
- package/dist/esm/helpers/isHanzoguiComponent.mjs.map +1 -0
- package/dist/esm/helpers/isHanzoguiComponent.native.js +6 -0
- package/dist/esm/helpers/isHanzoguiComponent.native.js.map +1 -0
- package/dist/esm/helpers/isHanzoguiElement.mjs +7 -0
- package/dist/esm/helpers/isHanzoguiElement.mjs.map +1 -0
- package/dist/esm/helpers/isHanzoguiElement.native.js +7 -0
- package/dist/esm/helpers/isHanzoguiElement.native.js.map +1 -0
- package/dist/esm/helpers/isObj.mjs +3 -0
- package/dist/esm/helpers/isObj.mjs.map +1 -0
- package/dist/esm/helpers/isObj.native.js +10 -0
- package/dist/esm/helpers/isObj.native.js.map +1 -0
- package/dist/esm/helpers/log.mjs +14 -0
- package/dist/esm/helpers/log.mjs.map +1 -0
- package/dist/esm/helpers/log.native.js +15 -0
- package/dist/esm/helpers/log.native.js.map +1 -0
- package/dist/esm/helpers/mainThreadPressEvents.mjs +3 -0
- package/dist/esm/helpers/mainThreadPressEvents.mjs.map +1 -0
- package/dist/esm/helpers/mainThreadPressEvents.native.js +105 -0
- package/dist/esm/helpers/mainThreadPressEvents.native.js.map +1 -0
- package/dist/esm/helpers/matchMedia.mjs +12 -0
- package/dist/esm/helpers/matchMedia.mjs.map +1 -0
- package/dist/esm/helpers/matchMedia.native.js +33 -0
- package/dist/esm/helpers/matchMedia.native.js.map +1 -0
- package/dist/esm/helpers/mediaObjectToString.mjs +26 -0
- package/dist/esm/helpers/mediaObjectToString.mjs.map +1 -0
- package/dist/esm/helpers/mediaObjectToString.native.js +29 -0
- package/dist/esm/helpers/mediaObjectToString.native.js.map +1 -0
- package/dist/esm/helpers/mediaState.mjs +20 -0
- package/dist/esm/helpers/mediaState.mjs.map +1 -0
- package/dist/esm/helpers/mediaState.native.js +22 -0
- package/dist/esm/helpers/mediaState.native.js.map +1 -0
- package/dist/esm/helpers/mergeProps.mjs +53 -0
- package/dist/esm/helpers/mergeProps.mjs.map +1 -0
- package/dist/esm/helpers/mergeProps.native.js +58 -0
- package/dist/esm/helpers/mergeProps.native.js.map +1 -0
- package/dist/esm/helpers/mergeRenderElementProps.mjs +10 -0
- package/dist/esm/helpers/mergeRenderElementProps.mjs.map +1 -0
- package/dist/esm/helpers/mergeRenderElementProps.native.js +10 -0
- package/dist/esm/helpers/mergeRenderElementProps.native.js.map +1 -0
- package/dist/esm/helpers/mergeSlotStyleProps.mjs +27 -0
- package/dist/esm/helpers/mergeSlotStyleProps.mjs.map +1 -0
- package/dist/esm/helpers/mergeSlotStyleProps.native.js +27 -0
- package/dist/esm/helpers/mergeSlotStyleProps.native.js.map +1 -0
- package/dist/esm/helpers/mergeVariants.mjs +27 -0
- package/dist/esm/helpers/mergeVariants.mjs.map +1 -0
- package/dist/esm/helpers/mergeVariants.native.js +28 -0
- package/dist/esm/helpers/mergeVariants.native.js.map +1 -0
- package/dist/esm/helpers/nativeOnlyProps.mjs +37 -0
- package/dist/esm/helpers/nativeOnlyProps.mjs.map +1 -0
- package/dist/esm/helpers/nativeOnlyProps.native.js +37 -0
- package/dist/esm/helpers/nativeOnlyProps.native.js.map +1 -0
- package/dist/esm/helpers/normalizeColor.mjs +21 -0
- package/dist/esm/helpers/normalizeColor.mjs.map +1 -0
- package/dist/esm/helpers/normalizeColor.native.js +23 -0
- package/dist/esm/helpers/normalizeColor.native.js.map +1 -0
- package/dist/esm/helpers/normalizeShadow.mjs +25 -0
- package/dist/esm/helpers/normalizeShadow.mjs.map +1 -0
- package/dist/esm/helpers/normalizeShadow.native.js +26 -0
- package/dist/esm/helpers/normalizeShadow.native.js.map +1 -0
- package/dist/esm/helpers/normalizeStyle.mjs +29 -0
- package/dist/esm/helpers/normalizeStyle.mjs.map +1 -0
- package/dist/esm/helpers/normalizeStyle.native.js +30 -0
- package/dist/esm/helpers/normalizeStyle.native.js.map +1 -0
- package/dist/esm/helpers/normalizeStylePropKeys.mjs +3 -0
- package/dist/esm/helpers/normalizeStylePropKeys.mjs.map +1 -0
- package/dist/esm/helpers/normalizeStylePropKeys.native.js +14 -0
- package/dist/esm/helpers/normalizeStylePropKeys.native.js.map +1 -0
- package/dist/esm/helpers/normalizeValueWithProperty.mjs +29 -0
- package/dist/esm/helpers/normalizeValueWithProperty.mjs.map +1 -0
- package/dist/esm/helpers/normalizeValueWithProperty.native.js +35 -0
- package/dist/esm/helpers/normalizeValueWithProperty.native.js.map +1 -0
- package/dist/esm/helpers/objectIdentityKey.mjs +21 -0
- package/dist/esm/helpers/objectIdentityKey.mjs.map +1 -0
- package/dist/esm/helpers/objectIdentityKey.native.js +26 -0
- package/dist/esm/helpers/objectIdentityKey.native.js.map +1 -0
- package/dist/esm/helpers/parseBorderShorthand.mjs +5 -0
- package/dist/esm/helpers/parseBorderShorthand.mjs.map +1 -0
- package/dist/esm/helpers/parseBorderShorthand.native.js +58 -0
- package/dist/esm/helpers/parseBorderShorthand.native.js.map +1 -0
- package/dist/esm/helpers/parseNativeStyle.mjs +142 -0
- package/dist/esm/helpers/parseNativeStyle.mjs.map +1 -0
- package/dist/esm/helpers/parseNativeStyle.native.js +162 -0
- package/dist/esm/helpers/parseNativeStyle.native.js.map +1 -0
- package/dist/esm/helpers/parseOutlineShorthand.mjs +5 -0
- package/dist/esm/helpers/parseOutlineShorthand.mjs.map +1 -0
- package/dist/esm/helpers/parseOutlineShorthand.native.js +52 -0
- package/dist/esm/helpers/parseOutlineShorthand.native.js.map +1 -0
- package/dist/esm/helpers/platformResolveValue.mjs +13 -0
- package/dist/esm/helpers/platformResolveValue.mjs.map +1 -0
- package/dist/esm/helpers/platformResolveValue.native.js +46 -0
- package/dist/esm/helpers/platformResolveValue.native.js.map +1 -0
- package/dist/esm/helpers/pointerEvents.mjs +3 -0
- package/dist/esm/helpers/pointerEvents.mjs.map +1 -0
- package/dist/esm/helpers/pointerEvents.native.js +127 -0
- package/dist/esm/helpers/pointerEvents.native.js.map +1 -0
- package/dist/esm/helpers/propMapper.mjs +230 -0
- package/dist/esm/helpers/propMapper.mjs.map +1 -0
- package/dist/esm/helpers/propMapper.native.js +301 -0
- package/dist/esm/helpers/propMapper.native.js.map +1 -0
- package/dist/esm/helpers/proxyThemeToParents.mjs +37 -0
- package/dist/esm/helpers/proxyThemeToParents.mjs.map +1 -0
- package/dist/esm/helpers/proxyThemeToParents.native.js +132 -0
- package/dist/esm/helpers/proxyThemeToParents.native.js.map +1 -0
- package/dist/esm/helpers/proxyThemeVariables.mjs +13 -0
- package/dist/esm/helpers/proxyThemeVariables.mjs.map +1 -0
- package/dist/esm/helpers/proxyThemeVariables.native.js +15 -0
- package/dist/esm/helpers/proxyThemeVariables.native.js.map +1 -0
- package/dist/esm/helpers/pseudoDescriptors.mjs +54 -0
- package/dist/esm/helpers/pseudoDescriptors.mjs.map +1 -0
- package/dist/esm/helpers/pseudoDescriptors.native.js +54 -0
- package/dist/esm/helpers/pseudoDescriptors.native.js.map +1 -0
- package/dist/esm/helpers/pseudoTransitions.mjs +57 -0
- package/dist/esm/helpers/pseudoTransitions.mjs.map +1 -0
- package/dist/esm/helpers/pseudoTransitions.native.js +59 -0
- package/dist/esm/helpers/pseudoTransitions.native.js.map +1 -0
- package/dist/esm/helpers/registerCSSVariable.mjs +50 -0
- package/dist/esm/helpers/registerCSSVariable.mjs.map +1 -0
- package/dist/esm/helpers/registerCSSVariable.native.js +51 -0
- package/dist/esm/helpers/registerCSSVariable.native.js.map +1 -0
- package/dist/esm/helpers/resolveAnimationDriver.mjs +12 -0
- package/dist/esm/helpers/resolveAnimationDriver.mjs.map +1 -0
- package/dist/esm/helpers/resolveAnimationDriver.native.js +13 -0
- package/dist/esm/helpers/resolveAnimationDriver.native.js.map +1 -0
- package/dist/esm/helpers/resolveCompoundTokens.mjs +16 -0
- package/dist/esm/helpers/resolveCompoundTokens.mjs.map +1 -0
- package/dist/esm/helpers/resolveCompoundTokens.native.js +16 -0
- package/dist/esm/helpers/resolveCompoundTokens.native.js.map +1 -0
- package/dist/esm/helpers/resolveRem.mjs +8 -0
- package/dist/esm/helpers/resolveRem.mjs.map +1 -0
- package/dist/esm/helpers/resolveRem.native.js +30 -0
- package/dist/esm/helpers/resolveRem.native.js.map +1 -0
- package/dist/esm/helpers/resolveSafeArea.mjs +11 -0
- package/dist/esm/helpers/resolveSafeArea.mjs.map +1 -0
- package/dist/esm/helpers/resolveSafeArea.native.js +18 -0
- package/dist/esm/helpers/resolveSafeArea.native.js.map +1 -0
- package/dist/esm/helpers/setElementProps.mjs +6 -0
- package/dist/esm/helpers/setElementProps.mjs.map +1 -0
- package/dist/esm/helpers/setElementProps.native.js +11 -0
- package/dist/esm/helpers/setElementProps.native.js.map +1 -0
- package/dist/esm/helpers/skipProps.mjs +21 -0
- package/dist/esm/helpers/skipProps.mjs.map +1 -0
- package/dist/esm/helpers/skipProps.native.js +21 -0
- package/dist/esm/helpers/skipProps.native.js.map +1 -0
- package/dist/esm/helpers/sortString.mjs +3 -0
- package/dist/esm/helpers/sortString.mjs.map +1 -0
- package/dist/esm/helpers/sortString.native.js +5 -0
- package/dist/esm/helpers/sortString.native.js.map +1 -0
- package/dist/esm/helpers/subscribeToContextGroup.mjs +84 -0
- package/dist/esm/helpers/subscribeToContextGroup.mjs.map +1 -0
- package/dist/esm/helpers/subscribeToContextGroup.native.js +129 -0
- package/dist/esm/helpers/subscribeToContextGroup.native.js.map +1 -0
- package/dist/esm/helpers/themeable.mjs +79 -0
- package/dist/esm/helpers/themeable.mjs.map +1 -0
- package/dist/esm/helpers/themeable.native.js +80 -0
- package/dist/esm/helpers/themeable.native.js.map +1 -0
- package/dist/esm/helpers/themes.mjs +21 -0
- package/dist/esm/helpers/themes.mjs.map +1 -0
- package/dist/esm/helpers/themes.native.js +21 -0
- package/dist/esm/helpers/themes.native.js.map +1 -0
- package/dist/esm/helpers/timer.mjs +9 -0
- package/dist/esm/helpers/timer.mjs.map +1 -0
- package/dist/esm/helpers/timer.native.js +9 -0
- package/dist/esm/helpers/timer.native.js.map +1 -0
- package/dist/esm/helpers/transformsToString.mjs +18 -0
- package/dist/esm/helpers/transformsToString.mjs.map +1 -0
- package/dist/esm/helpers/transformsToString.native.js +18 -0
- package/dist/esm/helpers/transformsToString.native.js.map +1 -0
- package/dist/esm/helpers/useRenderElement.mjs +26 -0
- package/dist/esm/helpers/useRenderElement.mjs.map +1 -0
- package/dist/esm/helpers/useRenderElement.native.js +31 -0
- package/dist/esm/helpers/useRenderElement.native.js.map +1 -0
- package/dist/esm/helpers/webPropsToSkip.mjs +3 -0
- package/dist/esm/helpers/webPropsToSkip.mjs.map +1 -0
- package/dist/esm/helpers/webPropsToSkip.native.js +50 -0
- package/dist/esm/helpers/webPropsToSkip.native.js.map +1 -0
- package/dist/esm/helpers/wrapStyleTags.mjs +17 -0
- package/dist/esm/helpers/wrapStyleTags.mjs.map +1 -0
- package/dist/esm/helpers/wrapStyleTags.native.js +5 -0
- package/dist/esm/helpers/wrapStyleTags.native.js.map +1 -0
- package/dist/esm/hooks/doesRootSchemeMatchSystem.mjs +5 -0
- package/dist/esm/hooks/doesRootSchemeMatchSystem.mjs.map +1 -0
- package/dist/esm/hooks/doesRootSchemeMatchSystem.native.js +8 -0
- package/dist/esm/hooks/doesRootSchemeMatchSystem.native.js.map +1 -0
- package/dist/esm/hooks/getThemeProxied.mjs +53 -0
- package/dist/esm/hooks/getThemeProxied.mjs.map +1 -0
- package/dist/esm/hooks/getThemeProxied.native.js +79 -0
- package/dist/esm/hooks/getThemeProxied.native.js.map +1 -0
- package/dist/esm/hooks/useComponentState.mjs +170 -0
- package/dist/esm/hooks/useComponentState.mjs.map +1 -0
- package/dist/esm/hooks/useComponentState.native.js +181 -0
- package/dist/esm/hooks/useComponentState.native.js.map +1 -0
- package/dist/esm/hooks/useDisableSSR.mjs +6 -0
- package/dist/esm/hooks/useDisableSSR.mjs.map +1 -0
- package/dist/esm/hooks/useDisableSSR.native.js +7 -0
- package/dist/esm/hooks/useDisableSSR.native.js.map +1 -0
- package/dist/esm/hooks/useIsTouchDevice.mjs +7 -0
- package/dist/esm/hooks/useIsTouchDevice.mjs.map +1 -0
- package/dist/esm/hooks/useIsTouchDevice.native.js +7 -0
- package/dist/esm/hooks/useIsTouchDevice.native.js.map +1 -0
- package/dist/esm/hooks/useMedia.mjs +201 -0
- package/dist/esm/hooks/useMedia.mjs.map +1 -0
- package/dist/esm/hooks/useMedia.native.js +229 -0
- package/dist/esm/hooks/useMedia.native.js.map +1 -0
- package/dist/esm/hooks/useProps.mjs +82 -0
- package/dist/esm/hooks/useProps.mjs.map +1 -0
- package/dist/esm/hooks/useProps.native.js +84 -0
- package/dist/esm/hooks/useProps.native.js.map +1 -0
- package/dist/esm/hooks/useTheme.mjs +31 -0
- package/dist/esm/hooks/useTheme.mjs.map +1 -0
- package/dist/esm/hooks/useTheme.native.js +32 -0
- package/dist/esm/hooks/useTheme.native.js.map +1 -0
- package/dist/esm/hooks/useThemeName.mjs +14 -0
- package/dist/esm/hooks/useThemeName.mjs.map +1 -0
- package/dist/esm/hooks/useThemeName.native.js +17 -0
- package/dist/esm/hooks/useThemeName.native.js.map +1 -0
- package/dist/esm/hooks/useThemeState.mjs +306 -0
- package/dist/esm/hooks/useThemeState.mjs.map +1 -0
- package/dist/esm/hooks/useThemeState.native.js +409 -0
- package/dist/esm/hooks/useThemeState.native.js.map +1 -0
- package/dist/esm/index.js +74 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/index.mjs +74 -0
- package/dist/esm/index.mjs.map +1 -0
- package/dist/esm/index.native.js +74 -0
- package/dist/esm/index.native.js.map +1 -0
- package/dist/esm/inject-styles.mjs +17 -0
- package/dist/esm/inject-styles.mjs.map +1 -0
- package/dist/esm/inject-styles.native.js +18 -0
- package/dist/esm/inject-styles.native.js.map +1 -0
- package/dist/esm/insertFont.mjs +55 -0
- package/dist/esm/insertFont.mjs.map +1 -0
- package/dist/esm/insertFont.native.js +49 -0
- package/dist/esm/insertFont.native.js.map +1 -0
- package/dist/esm/interfaces/CSSColorNames.mjs +2 -0
- package/dist/esm/interfaces/CSSColorNames.mjs.map +1 -0
- package/dist/esm/interfaces/CSSColorNames.native.js +2 -0
- package/dist/esm/interfaces/CSSColorNames.native.js.map +1 -0
- package/dist/esm/interfaces/GetRef.mjs +2 -0
- package/dist/esm/interfaces/GetRef.mjs.map +1 -0
- package/dist/esm/interfaces/GetRef.native.js +2 -0
- package/dist/esm/interfaces/GetRef.native.js.map +1 -0
- package/dist/esm/interfaces/HanzoguiComponentEvents.mjs +2 -0
- package/dist/esm/interfaces/HanzoguiComponentEvents.mjs.map +1 -0
- package/dist/esm/interfaces/HanzoguiComponentEvents.native.js +2 -0
- package/dist/esm/interfaces/HanzoguiComponentEvents.native.js.map +1 -0
- package/dist/esm/interfaces/HanzoguiComponentPropsBaseBase.mjs +2 -0
- package/dist/esm/interfaces/HanzoguiComponentPropsBaseBase.mjs.map +1 -0
- package/dist/esm/interfaces/HanzoguiComponentPropsBaseBase.native.js +2 -0
- package/dist/esm/interfaces/HanzoguiComponentPropsBaseBase.native.js.map +1 -0
- package/dist/esm/interfaces/RNExclusiveTypes.mjs +2 -0
- package/dist/esm/interfaces/RNExclusiveTypes.mjs.map +1 -0
- package/dist/esm/interfaces/RNExclusiveTypes.native.js +2 -0
- package/dist/esm/interfaces/RNExclusiveTypes.native.js.map +1 -0
- package/dist/esm/setupHooks.mjs +6 -0
- package/dist/esm/setupHooks.mjs.map +1 -0
- package/dist/esm/setupHooks.native.js +6 -0
- package/dist/esm/setupHooks.native.js.map +1 -0
- package/dist/esm/setupReactNative.mjs +29 -0
- package/dist/esm/setupReactNative.mjs.map +1 -0
- package/dist/esm/setupReactNative.native.js +30 -0
- package/dist/esm/setupReactNative.native.js.map +1 -0
- package/dist/esm/styled.mjs +133 -0
- package/dist/esm/styled.mjs.map +1 -0
- package/dist/esm/styled.native.js +136 -0
- package/dist/esm/styled.native.js.map +1 -0
- package/dist/esm/styledHtml.test-d.mjs +188 -0
- package/dist/esm/styledHtml.test-d.mjs.map +1 -0
- package/dist/esm/styledHtml.test-d.native.js +188 -0
- package/dist/esm/styledHtml.test-d.native.js.map +1 -0
- package/dist/esm/type-utils.mjs +2 -0
- package/dist/esm/type-utils.mjs.map +1 -0
- package/dist/esm/type-utils.native.js +2 -0
- package/dist/esm/type-utils.native.js.map +1 -0
- package/dist/esm/types.mjs +2 -0
- package/dist/esm/types.mjs.map +1 -0
- package/dist/esm/types.native.js +2 -0
- package/dist/esm/types.native.js.map +1 -0
- package/dist/esm/views/Configuration.mjs +16 -0
- package/dist/esm/views/Configuration.mjs.map +1 -0
- package/dist/esm/views/Configuration.native.js +17 -0
- package/dist/esm/views/Configuration.native.js.map +1 -0
- package/dist/esm/views/FontLanguage.mjs +16 -0
- package/dist/esm/views/FontLanguage.mjs.map +1 -0
- package/dist/esm/views/FontLanguage.native.js +20 -0
- package/dist/esm/views/FontLanguage.native.js.map +1 -0
- package/dist/esm/views/HanzoguiProvider.mjs +67 -0
- package/dist/esm/views/HanzoguiProvider.mjs.map +1 -0
- package/dist/esm/views/HanzoguiProvider.native.js +69 -0
- package/dist/esm/views/HanzoguiProvider.native.js.map +1 -0
- package/dist/esm/views/HanzoguiRoot.mjs +43 -0
- package/dist/esm/views/HanzoguiRoot.mjs.map +1 -0
- package/dist/esm/views/HanzoguiRoot.native.js +5 -0
- package/dist/esm/views/HanzoguiRoot.native.js.map +1 -0
- package/dist/esm/views/Slot.mjs +56 -0
- package/dist/esm/views/Slot.mjs.map +1 -0
- package/dist/esm/views/Slot.native.js +57 -0
- package/dist/esm/views/Slot.native.js.map +1 -0
- package/dist/esm/views/Text.mjs +36 -0
- package/dist/esm/views/Text.mjs.map +1 -0
- package/dist/esm/views/Text.native.js +25 -0
- package/dist/esm/views/Text.native.js.map +1 -0
- package/dist/esm/views/Theme.mjs +161 -0
- package/dist/esm/views/Theme.mjs.map +1 -0
- package/dist/esm/views/Theme.native.js +167 -0
- package/dist/esm/views/Theme.native.js.map +1 -0
- package/dist/esm/views/ThemeDebug.mjs +73 -0
- package/dist/esm/views/ThemeDebug.mjs.map +1 -0
- package/dist/esm/views/ThemeDebug.native.js +11 -0
- package/dist/esm/views/ThemeDebug.native.js.map +1 -0
- package/dist/esm/views/ThemeProvider.mjs +30 -0
- package/dist/esm/views/ThemeProvider.mjs.map +1 -0
- package/dist/esm/views/ThemeProvider.native.js +20 -0
- package/dist/esm/views/ThemeProvider.native.js.map +1 -0
- package/dist/esm/views/View.mjs +8 -0
- package/dist/esm/views/View.mjs.map +1 -0
- package/dist/esm/views/View.native.js +8 -0
- package/dist/esm/views/View.native.js.map +1 -0
- package/inject-styles/index.cjs +2 -0
- package/inject-styles/index.js +2 -0
- package/inject-styles.cjs +1 -0
- package/package.json +81 -0
- package/reset.css +59 -0
- package/src/Hanzogui.ts +47 -0
- package/src/_withStableStyle.tsx +62 -0
- package/src/animationDriverTypes.test-d.ts +332 -0
- package/src/config.ts +232 -0
- package/src/constants/accessibilityDirectMap.native.tsx +10 -0
- package/src/constants/accessibilityDirectMap.tsx +11 -0
- package/src/constants/constants.ts +16 -0
- package/src/constants/isDevTools.ts +12 -0
- package/src/contexts/ComponentContext.tsx +16 -0
- package/src/contexts/GroupContext.tsx +4 -0
- package/src/createComponent.tsx +1844 -0
- package/src/createFont.ts +50 -0
- package/src/createHanzogui.ts +371 -0
- package/src/createShorthands.ts +7 -0
- package/src/createTokens.ts +31 -0
- package/src/createVariable.ts +121 -0
- package/src/createVariables.ts +78 -0
- package/src/defaultComponentState.tsx +22 -0
- package/src/eventHandling.native.ts +227 -0
- package/src/eventHandling.ts +46 -0
- package/src/helpers/consoleLog.native.ts +2 -0
- package/src/helpers/createDesignSystem.ts +264 -0
- package/src/helpers/createMediaStyle.ts +167 -0
- package/src/helpers/createStyledContext.tsx +98 -0
- package/src/helpers/defaultAnimationDriver.tsx +24 -0
- package/src/helpers/defaultOffset.ts +1 -0
- package/src/helpers/expandStyle.ts +204 -0
- package/src/helpers/expandStyles.ts +42 -0
- package/src/helpers/getCSSStylesAtomic.native.ts +7 -0
- package/src/helpers/getCSSStylesAtomic.ts +263 -0
- package/src/helpers/getDefaultProps.ts +28 -0
- package/src/helpers/getDynamicVal.ts +63 -0
- package/src/helpers/getExpandedShorthands.ts +23 -0
- package/src/helpers/getFontLanguage.ts +2 -0
- package/src/helpers/getGroupPropParts.ts +46 -0
- package/src/helpers/getShorthandValue.ts +9 -0
- package/src/helpers/getSplitStyles.tsx +1869 -0
- package/src/helpers/getThemeCSSRules.native.ts +3 -0
- package/src/helpers/getThemeCSSRules.ts +192 -0
- package/src/helpers/getTokenForKey.ts +236 -0
- package/src/helpers/getVariantExtras.tsx +67 -0
- package/src/helpers/insertStyleRule.tsx +365 -0
- package/src/helpers/isActivePlatform.ts +43 -0
- package/src/helpers/isActiveTheme.ts +4 -0
- package/src/helpers/isHanzoguiComponent.tsx +11 -0
- package/src/helpers/isHanzoguiElement.tsx +11 -0
- package/src/helpers/isObj.ts +1 -0
- package/src/helpers/log.ts +17 -0
- package/src/helpers/mainThreadPressEvents.native.ts +137 -0
- package/src/helpers/mainThreadPressEvents.ts +7 -0
- package/src/helpers/matchMedia.native.ts +34 -0
- package/src/helpers/matchMedia.ts +17 -0
- package/src/helpers/mediaObjectToString.ts +30 -0
- package/src/helpers/mediaState.ts +32 -0
- package/src/helpers/mergeProps.ts +121 -0
- package/src/helpers/mergeRenderElementProps.ts +17 -0
- package/src/helpers/mergeSlotStyleProps.ts +46 -0
- package/src/helpers/mergeVariants.ts +40 -0
- package/src/helpers/nativeOnlyProps.ts +38 -0
- package/src/helpers/normalizeColor.native.ts +29 -0
- package/src/helpers/normalizeColor.ts +29 -0
- package/src/helpers/normalizeShadow.native.ts +20 -0
- package/src/helpers/normalizeShadow.ts +21 -0
- package/src/helpers/normalizeStyle.ts +42 -0
- package/src/helpers/normalizeStylePropKeys.native.ts +12 -0
- package/src/helpers/normalizeStylePropKeys.ts +3 -0
- package/src/helpers/normalizeValueWithProperty.ts +41 -0
- package/src/helpers/objectIdentityKey.tsx +20 -0
- package/src/helpers/parseBorderShorthand.native.ts +74 -0
- package/src/helpers/parseBorderShorthand.ts +6 -0
- package/src/helpers/parseNativeStyle.ts +193 -0
- package/src/helpers/parseOutlineShorthand.native.ts +62 -0
- package/src/helpers/parseOutlineShorthand.ts +6 -0
- package/src/helpers/platformResolveValue.native.ts +72 -0
- package/src/helpers/platformResolveValue.ts +22 -0
- package/src/helpers/pointerEvents.native.ts +143 -0
- package/src/helpers/pointerEvents.ts +9 -0
- package/src/helpers/propMapper.ts +404 -0
- package/src/helpers/proxyThemeToParents.ts +52 -0
- package/src/helpers/proxyThemeVariables.tsx +13 -0
- package/src/helpers/pseudoDescriptors.ts +74 -0
- package/src/helpers/pseudoTransitions.ts +97 -0
- package/src/helpers/registerCSSVariable.ts +54 -0
- package/src/helpers/resolveAnimationDriver.ts +23 -0
- package/src/helpers/resolveCompoundTokens.ts +28 -0
- package/src/helpers/resolveRem.native.ts +44 -0
- package/src/helpers/resolveRem.ts +17 -0
- package/src/helpers/resolveSafeArea.native.ts +18 -0
- package/src/helpers/resolveSafeArea.ts +10 -0
- package/src/helpers/setElementProps.native.tsx +9 -0
- package/src/helpers/setElementProps.tsx +5 -0
- package/src/helpers/skipProps.ts +35 -0
- package/src/helpers/sortString.ts +1 -0
- package/src/helpers/subscribeToContextGroup.tsx +99 -0
- package/src/helpers/themeable.tsx +104 -0
- package/src/helpers/themes.ts +23 -0
- package/src/helpers/timer.ts +9 -0
- package/src/helpers/transformsToString.ts +20 -0
- package/src/helpers/useRenderElement.tsx +73 -0
- package/src/helpers/webPropsToSkip.native.ts +56 -0
- package/src/helpers/webPropsToSkip.ts +1 -0
- package/src/helpers/wrapStyleTags.tsx +31 -0
- package/src/hooks/doesRootSchemeMatchSystem.native.ts +7 -0
- package/src/hooks/doesRootSchemeMatchSystem.ts +4 -0
- package/src/hooks/getThemeProxied.ts +202 -0
- package/src/hooks/useComponentState.ts +269 -0
- package/src/hooks/useDisableSSR.tsx +6 -0
- package/src/hooks/useIsTouchDevice.tsx +6 -0
- package/src/hooks/useMedia.tsx +298 -0
- package/src/hooks/useProps.tsx +158 -0
- package/src/hooks/useTheme.tsx +48 -0
- package/src/hooks/useThemeName.tsx +10 -0
- package/src/hooks/useThemeState.ts +559 -0
- package/src/index.ts +103 -0
- package/src/inject-styles.ts +20 -0
- package/src/insertFont.ts +81 -0
- package/src/interfaces/CSSColorNames.tsx +149 -0
- package/src/interfaces/GetRef.tsx +24 -0
- package/src/interfaces/HanzoguiComponentEvents.tsx +18 -0
- package/src/interfaces/HanzoguiComponentPropsBaseBase.tsx +124 -0
- package/src/interfaces/RNExclusiveTypes.ts +59 -0
- package/src/setupHooks.ts +27 -0
- package/src/setupReactNative.ts +60 -0
- package/src/styled.tsx +602 -0
- package/src/styledHtml.test-d.ts +286 -0
- package/src/type-utils.ts +30 -0
- package/src/types.tsx +3372 -0
- package/src/views/Configuration.tsx +20 -0
- package/src/views/FontLanguage.native.tsx +13 -0
- package/src/views/FontLanguage.tsx +18 -0
- package/src/views/HanzoguiProvider.tsx +95 -0
- package/src/views/HanzoguiRoot.native.tsx +9 -0
- package/src/views/HanzoguiRoot.tsx +64 -0
- package/src/views/Slot.tsx +86 -0
- package/src/views/Text.tsx +72 -0
- package/src/views/Theme.tsx +246 -0
- package/src/views/ThemeDebug.native.tsx +17 -0
- package/src/views/ThemeDebug.tsx +95 -0
- package/src/views/ThemeProvider.tsx +45 -0
- package/src/views/View.tsx +25 -0
- package/tsconfig.json +44 -0
- package/tsconfig.test.json +9 -0
- package/types/Hanzogui.d.ts +15 -0
- package/types/Hanzogui.d.ts.map +1 -0
- package/types/_withStableStyle.d.ts +3 -0
- package/types/_withStableStyle.d.ts.map +1 -0
- package/types/config.d.ts +72 -0
- package/types/config.d.ts.map +1 -0
- package/types/constants/accessibilityDirectMap.d.ts +6 -0
- package/types/constants/accessibilityDirectMap.d.ts.map +1 -0
- package/types/constants/accessibilityDirectMap.native.d.ts +6 -0
- package/types/constants/accessibilityDirectMap.native.d.ts.map +1 -0
- package/types/constants/constants.d.ts +5 -0
- package/types/constants/constants.d.ts.map +1 -0
- package/types/constants/isDevTools.d.ts +2 -0
- package/types/constants/isDevTools.d.ts.map +1 -0
- package/types/contexts/ComponentContext.d.ts +4 -0
- package/types/contexts/ComponentContext.d.ts.map +1 -0
- package/types/contexts/GroupContext.d.ts +3 -0
- package/types/contexts/GroupContext.d.ts.map +1 -0
- package/types/createComponent.d.ts +7 -0
- package/types/createComponent.d.ts.map +1 -0
- package/types/createFont.d.ts +3 -0
- package/types/createFont.d.ts.map +1 -0
- package/types/createHanzogui.d.ts +3 -0
- package/types/createHanzogui.d.ts.map +1 -0
- package/types/createShorthands.d.ts +3 -0
- package/types/createShorthands.d.ts.map +1 -0
- package/types/createTokens.d.ts +22 -0
- package/types/createTokens.d.ts.map +1 -0
- package/types/createVariable.d.ts +22 -0
- package/types/createVariable.d.ts.map +1 -0
- package/types/createVariables.d.ts +10 -0
- package/types/createVariables.d.ts.map +1 -0
- package/types/defaultComponentState.d.ts +5 -0
- package/types/defaultComponentState.d.ts.map +1 -0
- package/types/eventHandling.d.ts +27 -0
- package/types/eventHandling.d.ts.map +1 -0
- package/types/eventHandling.native.d.ts +12 -0
- package/types/eventHandling.native.d.ts.map +1 -0
- package/types/helpers/consoleLog.native.d.ts +7 -0
- package/types/helpers/consoleLog.native.d.ts.map +1 -0
- package/types/helpers/createDesignSystem.d.ts +47 -0
- package/types/helpers/createDesignSystem.d.ts.map +1 -0
- package/types/helpers/createMediaStyle.d.ts +5 -0
- package/types/helpers/createMediaStyle.d.ts.map +1 -0
- package/types/helpers/createStyledContext.d.ts +3 -0
- package/types/helpers/createStyledContext.d.ts.map +1 -0
- package/types/helpers/defaultAnimationDriver.d.ts +3 -0
- package/types/helpers/defaultAnimationDriver.d.ts.map +1 -0
- package/types/helpers/defaultOffset.d.ts +5 -0
- package/types/helpers/defaultOffset.d.ts.map +1 -0
- package/types/helpers/expandStyle.d.ts +7 -0
- package/types/helpers/expandStyle.d.ts.map +1 -0
- package/types/helpers/expandStyles.d.ts +2 -0
- package/types/helpers/expandStyles.d.ts.map +1 -0
- package/types/helpers/getCSSStylesAtomic.d.ts +11 -0
- package/types/helpers/getCSSStylesAtomic.d.ts.map +1 -0
- package/types/helpers/getCSSStylesAtomic.native.d.ts +4 -0
- package/types/helpers/getCSSStylesAtomic.native.d.ts.map +1 -0
- package/types/helpers/getDefaultProps.d.ts +3 -0
- package/types/helpers/getDefaultProps.d.ts.map +1 -0
- package/types/helpers/getDynamicVal.d.ts +16 -0
- package/types/helpers/getDynamicVal.d.ts.map +1 -0
- package/types/helpers/getExpandedShorthands.d.ts +7 -0
- package/types/helpers/getExpandedShorthands.d.ts.map +1 -0
- package/types/helpers/getFontLanguage.d.ts +2 -0
- package/types/helpers/getFontLanguage.d.ts.map +1 -0
- package/types/helpers/getGroupPropParts.d.ts +7 -0
- package/types/helpers/getGroupPropParts.d.ts.map +1 -0
- package/types/helpers/getShorthandValue.d.ts +2 -0
- package/types/helpers/getShorthandValue.d.ts.map +1 -0
- package/types/helpers/getSplitStyles.d.ts +13 -0
- package/types/helpers/getSplitStyles.d.ts.map +1 -0
- package/types/helpers/getThemeCSSRules.d.ts +10 -0
- package/types/helpers/getThemeCSSRules.d.ts.map +1 -0
- package/types/helpers/getThemeCSSRules.native.d.ts +2 -0
- package/types/helpers/getThemeCSSRules.native.d.ts.map +1 -0
- package/types/helpers/getTokenForKey.d.ts +6 -0
- package/types/helpers/getTokenForKey.d.ts.map +1 -0
- package/types/helpers/getVariantExtras.d.ts +4 -0
- package/types/helpers/getVariantExtras.d.ts.map +1 -0
- package/types/helpers/insertStyleRule.d.ts +10 -0
- package/types/helpers/insertStyleRule.d.ts.map +1 -0
- package/types/helpers/isActivePlatform.d.ts +16 -0
- package/types/helpers/isActivePlatform.d.ts.map +1 -0
- package/types/helpers/isActiveTheme.d.ts +2 -0
- package/types/helpers/isActiveTheme.d.ts.map +1 -0
- package/types/helpers/isHanzoguiComponent.d.ts +5 -0
- package/types/helpers/isHanzoguiComponent.d.ts.map +1 -0
- package/types/helpers/isHanzoguiElement.d.ts +8 -0
- package/types/helpers/isHanzoguiElement.d.ts.map +1 -0
- package/types/helpers/isObj.d.ts +2 -0
- package/types/helpers/isObj.d.ts.map +1 -0
- package/types/helpers/log.d.ts +2 -0
- package/types/helpers/log.d.ts.map +1 -0
- package/types/helpers/mainThreadPressEvents.d.ts +2 -0
- package/types/helpers/mainThreadPressEvents.d.ts.map +1 -0
- package/types/helpers/mainThreadPressEvents.native.d.ts +9 -0
- package/types/helpers/mainThreadPressEvents.native.d.ts.map +1 -0
- package/types/helpers/matchMedia.d.ts +6 -0
- package/types/helpers/matchMedia.d.ts.map +1 -0
- package/types/helpers/matchMedia.native.d.ts +4 -0
- package/types/helpers/matchMedia.native.d.ts.map +1 -0
- package/types/helpers/mediaObjectToString.d.ts +3 -0
- package/types/helpers/mediaObjectToString.d.ts.map +1 -0
- package/types/helpers/mediaState.d.ts +7 -0
- package/types/helpers/mediaState.d.ts.map +1 -0
- package/types/helpers/mergeProps.d.ts +20 -0
- package/types/helpers/mergeProps.d.ts.map +1 -0
- package/types/helpers/mergeRenderElementProps.d.ts +7 -0
- package/types/helpers/mergeRenderElementProps.d.ts.map +1 -0
- package/types/helpers/mergeSlotStyleProps.d.ts +10 -0
- package/types/helpers/mergeSlotStyleProps.d.ts.map +1 -0
- package/types/helpers/mergeVariants.d.ts +3 -0
- package/types/helpers/mergeVariants.d.ts.map +1 -0
- package/types/helpers/nativeOnlyProps.d.ts +39 -0
- package/types/helpers/nativeOnlyProps.d.ts.map +1 -0
- package/types/helpers/normalizeColor.d.ts +8 -0
- package/types/helpers/normalizeColor.d.ts.map +1 -0
- package/types/helpers/normalizeColor.native.d.ts +9 -0
- package/types/helpers/normalizeColor.native.d.ts.map +1 -0
- package/types/helpers/normalizeShadow.d.ts +10 -0
- package/types/helpers/normalizeShadow.d.ts.map +1 -0
- package/types/helpers/normalizeShadow.native.d.ts +10 -0
- package/types/helpers/normalizeShadow.native.d.ts.map +1 -0
- package/types/helpers/normalizeStyle.d.ts +9 -0
- package/types/helpers/normalizeStyle.d.ts.map +1 -0
- package/types/helpers/normalizeStylePropKeys.d.ts +2 -0
- package/types/helpers/normalizeStylePropKeys.d.ts.map +1 -0
- package/types/helpers/normalizeStylePropKeys.native.d.ts +13 -0
- package/types/helpers/normalizeStylePropKeys.native.d.ts.map +1 -0
- package/types/helpers/normalizeValueWithProperty.d.ts +6 -0
- package/types/helpers/normalizeValueWithProperty.d.ts.map +1 -0
- package/types/helpers/objectIdentityKey.d.ts +2 -0
- package/types/helpers/objectIdentityKey.d.ts.map +1 -0
- package/types/helpers/parseBorderShorthand.d.ts +3 -0
- package/types/helpers/parseBorderShorthand.d.ts.map +1 -0
- package/types/helpers/parseBorderShorthand.native.d.ts +3 -0
- package/types/helpers/parseBorderShorthand.native.d.ts.map +1 -0
- package/types/helpers/parseNativeStyle.d.ts +14 -0
- package/types/helpers/parseNativeStyle.d.ts.map +1 -0
- package/types/helpers/parseOutlineShorthand.d.ts +3 -0
- package/types/helpers/parseOutlineShorthand.d.ts.map +1 -0
- package/types/helpers/parseOutlineShorthand.native.d.ts +3 -0
- package/types/helpers/parseOutlineShorthand.native.d.ts.map +1 -0
- package/types/helpers/platformResolveValue.d.ts +6 -0
- package/types/helpers/platformResolveValue.d.ts.map +1 -0
- package/types/helpers/platformResolveValue.native.d.ts +7 -0
- package/types/helpers/platformResolveValue.native.d.ts.map +1 -0
- package/types/helpers/pointerEvents.d.ts +8 -0
- package/types/helpers/pointerEvents.d.ts.map +1 -0
- package/types/helpers/pointerEvents.native.d.ts +2 -0
- package/types/helpers/pointerEvents.native.d.ts.map +1 -0
- package/types/helpers/propMapper.d.ts +5 -0
- package/types/helpers/propMapper.d.ts.map +1 -0
- package/types/helpers/proxyThemeToParents.d.ts +4 -0
- package/types/helpers/proxyThemeToParents.d.ts.map +1 -0
- package/types/helpers/proxyThemeVariables.d.ts +2 -0
- package/types/helpers/proxyThemeVariables.d.ts.map +1 -0
- package/types/helpers/pseudoDescriptors.d.ts +51 -0
- package/types/helpers/pseudoDescriptors.d.ts.map +1 -0
- package/types/helpers/pseudoTransitions.d.ts +29 -0
- package/types/helpers/pseudoTransitions.d.ts.map +1 -0
- package/types/helpers/registerCSSVariable.d.ts +9 -0
- package/types/helpers/registerCSSVariable.d.ts.map +1 -0
- package/types/helpers/resolveAnimationDriver.d.ts +7 -0
- package/types/helpers/resolveAnimationDriver.d.ts.map +1 -0
- package/types/helpers/resolveCompoundTokens.d.ts +9 -0
- package/types/helpers/resolveCompoundTokens.d.ts.map +1 -0
- package/types/helpers/resolveRem.d.ts +13 -0
- package/types/helpers/resolveRem.d.ts.map +1 -0
- package/types/helpers/resolveRem.native.d.ts +13 -0
- package/types/helpers/resolveRem.native.d.ts.map +1 -0
- package/types/helpers/resolveSafeArea.d.ts +2 -0
- package/types/helpers/resolveSafeArea.d.ts.map +1 -0
- package/types/helpers/resolveSafeArea.native.d.ts +2 -0
- package/types/helpers/resolveSafeArea.native.d.ts.map +1 -0
- package/types/helpers/setElementProps.d.ts +2 -0
- package/types/helpers/setElementProps.d.ts.map +1 -0
- package/types/helpers/setElementProps.native.d.ts +2 -0
- package/types/helpers/setElementProps.native.d.ts.map +1 -0
- package/types/helpers/skipProps.d.ts +19 -0
- package/types/helpers/skipProps.d.ts.map +1 -0
- package/types/helpers/sortString.d.ts +2 -0
- package/types/helpers/sortString.d.ts.map +1 -0
- package/types/helpers/subscribeToContextGroup.d.ts +10 -0
- package/types/helpers/subscribeToContextGroup.d.ts.map +1 -0
- package/types/helpers/themeable.d.ts +3 -0
- package/types/helpers/themeable.d.ts.map +1 -0
- package/types/helpers/themes.d.ts +2 -0
- package/types/helpers/themes.d.ts.map +1 -0
- package/types/helpers/timer.d.ts +2 -0
- package/types/helpers/timer.d.ts.map +1 -0
- package/types/helpers/transformsToString.d.ts +2 -0
- package/types/helpers/transformsToString.d.ts.map +1 -0
- package/types/helpers/useRenderElement.d.ts +13 -0
- package/types/helpers/useRenderElement.d.ts.map +1 -0
- package/types/helpers/webPropsToSkip.d.ts +2 -0
- package/types/helpers/webPropsToSkip.d.ts.map +1 -0
- package/types/helpers/webPropsToSkip.native.d.ts +104 -0
- package/types/helpers/webPropsToSkip.native.d.ts.map +1 -0
- package/types/helpers/wrapStyleTags.d.ts +3 -0
- package/types/helpers/wrapStyleTags.d.ts.map +1 -0
- package/types/hooks/doesRootSchemeMatchSystem.d.ts +2 -0
- package/types/hooks/doesRootSchemeMatchSystem.d.ts.map +1 -0
- package/types/hooks/doesRootSchemeMatchSystem.native.d.ts +2 -0
- package/types/hooks/doesRootSchemeMatchSystem.native.d.ts.map +1 -0
- package/types/hooks/getThemeProxied.d.ts +23 -0
- package/types/hooks/getThemeProxied.d.ts.map +1 -0
- package/types/hooks/useComponentState.d.ts +25 -0
- package/types/hooks/useComponentState.d.ts.map +1 -0
- package/types/hooks/useDisableSSR.d.ts +3 -0
- package/types/hooks/useDisableSSR.d.ts.map +1 -0
- package/types/hooks/useIsTouchDevice.d.ts +2 -0
- package/types/hooks/useIsTouchDevice.d.ts.map +1 -0
- package/types/hooks/useMedia.d.ts +23 -0
- package/types/hooks/useMedia.d.ts.map +1 -0
- package/types/hooks/useProps.d.ts +41 -0
- package/types/hooks/useProps.d.ts.map +1 -0
- package/types/hooks/useTheme.d.ts +9 -0
- package/types/hooks/useTheme.d.ts.map +1 -0
- package/types/hooks/useThemeName.d.ts +3 -0
- package/types/hooks/useThemeName.d.ts.map +1 -0
- package/types/hooks/useThemeState.d.ts +11 -0
- package/types/hooks/useThemeState.d.ts.map +1 -0
- package/types/index.d.ts +77 -0
- package/types/index.d.ts.map +1 -0
- package/types/inject-styles.d.ts +7 -0
- package/types/inject-styles.d.ts.map +1 -0
- package/types/insertFont.d.ts +10 -0
- package/types/insertFont.d.ts.map +1 -0
- package/types/interfaces/CSSColorNames.d.ts +2 -0
- package/types/interfaces/CSSColorNames.d.ts.map +1 -0
- package/types/interfaces/GetRef.d.ts +6 -0
- package/types/interfaces/GetRef.d.ts.map +1 -0
- package/types/interfaces/HanzoguiComponentEvents.d.ts +19 -0
- package/types/interfaces/HanzoguiComponentEvents.d.ts.map +1 -0
- package/types/interfaces/HanzoguiComponentPropsBaseBase.d.ts +95 -0
- package/types/interfaces/HanzoguiComponentPropsBaseBase.d.ts.map +1 -0
- package/types/interfaces/RNExclusiveTypes.d.ts +22 -0
- package/types/interfaces/RNExclusiveTypes.d.ts.map +1 -0
- package/types/setupHooks.d.ts +17 -0
- package/types/setupHooks.d.ts.map +1 -0
- package/types/setupReactNative.d.ts +5 -0
- package/types/setupReactNative.d.ts.map +1 -0
- package/types/styled.d.ts +53 -0
- package/types/styled.d.ts.map +1 -0
- package/types/type-utils.d.ts +13 -0
- package/types/type-utils.d.ts.map +1 -0
- package/types/types.d.ts +1936 -0
- package/types/types.d.ts.map +1 -0
- package/types/views/Configuration.d.ts +10 -0
- package/types/views/Configuration.d.ts.map +1 -0
- package/types/views/FontLanguage.d.ts +6 -0
- package/types/views/FontLanguage.d.ts.map +1 -0
- package/types/views/FontLanguage.native.d.ts +3 -0
- package/types/views/FontLanguage.native.d.ts.map +1 -0
- package/types/views/HanzoguiProvider.d.ts +3 -0
- package/types/views/HanzoguiProvider.d.ts.map +1 -0
- package/types/views/HanzoguiRoot.d.ts +15 -0
- package/types/views/HanzoguiRoot.d.ts.map +1 -0
- package/types/views/HanzoguiRoot.native.d.ts +7 -0
- package/types/views/HanzoguiRoot.native.d.ts.map +1 -0
- package/types/views/Slot.d.ts +13 -0
- package/types/views/Slot.d.ts.map +1 -0
- package/types/views/Text.d.ts +4 -0
- package/types/views/Text.d.ts.map +1 -0
- package/types/views/Theme.d.ts +16 -0
- package/types/views/Theme.d.ts.map +1 -0
- package/types/views/ThemeDebug.d.ts +10 -0
- package/types/views/ThemeDebug.d.ts.map +1 -0
- package/types/views/ThemeDebug.native.d.ts +10 -0
- package/types/views/ThemeDebug.native.d.ts.map +1 -0
- package/types/views/ThemeProvider.d.ts +3 -0
- package/types/views/ThemeProvider.d.ts.map +1 -0
- package/types/views/View.d.ts +8 -0
- package/types/views/View.d.ts.map +1 -0
- package/vitest.config.d.ts +3 -0
- package/vitest.config.d.ts.map +1 -0
- package/vitest.config.ts +14 -0
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
}), mod);
|
|
25
|
+
var createHanzogui_exports = {};
|
|
26
|
+
__export(createHanzogui_exports, {
|
|
27
|
+
createHanzogui: () => createHanzogui
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(createHanzogui_exports);
|
|
30
|
+
var import_config = require("./config.native.js");
|
|
31
|
+
var import_createVariables = require("./createVariables.native.js");
|
|
32
|
+
var import_defaultAnimationDriver = require("./helpers/defaultAnimationDriver.native.js");
|
|
33
|
+
var import_resolveAnimationDriver = require("./helpers/resolveAnimationDriver.native.js");
|
|
34
|
+
var import_createDesignSystem = require("./helpers/createDesignSystem.native.js");
|
|
35
|
+
var import_insertStyleRule = require("./helpers/insertStyleRule.native.js");
|
|
36
|
+
var import_proxyThemeToParents = require("./helpers/proxyThemeToParents.native.js");
|
|
37
|
+
var import_themes = require("./helpers/themes.native.js");
|
|
38
|
+
var import_useMedia = require("./hooks/useMedia.native.js");
|
|
39
|
+
var import_insertFont = require("./insertFont.native.js");
|
|
40
|
+
var import_Hanzogui = require("./Hanzogui.native.js");
|
|
41
|
+
function shouldTokenCategoryHaveUnits(category) {
|
|
42
|
+
return (/* @__PURE__ */new Set(["size", "space", "radius"])).has(category);
|
|
43
|
+
}
|
|
44
|
+
function initializeHanzoguiConfig(config) {
|
|
45
|
+
(0, import_config.setConfig)(config);
|
|
46
|
+
(0, import_useMedia.configureMedia)(config);
|
|
47
|
+
}
|
|
48
|
+
function createHanzogui(configIn) {
|
|
49
|
+
var _configIn_settings, _configIn_settings1, _process_env_DEBUG;
|
|
50
|
+
var existingConfig = (0, import_config.getConfigMaybe)();
|
|
51
|
+
if (existingConfig) configIn = {
|
|
52
|
+
...existingConfig,
|
|
53
|
+
...configIn
|
|
54
|
+
};
|
|
55
|
+
var tokensParsed = {};
|
|
56
|
+
var tokens = (0, import_createVariables.createVariables)(configIn.tokens || {});
|
|
57
|
+
if (configIn.tokens) {
|
|
58
|
+
var tokensMerged = {};
|
|
59
|
+
for (var cat in tokens) {
|
|
60
|
+
tokensParsed[cat] = {};
|
|
61
|
+
tokensMerged[cat] = {};
|
|
62
|
+
var tokenCat = tokens[cat];
|
|
63
|
+
for (var key in tokenCat) {
|
|
64
|
+
var val = tokenCat[key];
|
|
65
|
+
var prefixedKey = `$${key}`;
|
|
66
|
+
tokensParsed[cat][prefixedKey] = val;
|
|
67
|
+
tokensMerged[cat][prefixedKey] = val;
|
|
68
|
+
tokensMerged[cat][key] = val;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
(0, import_config.setTokens)(tokensMerged);
|
|
72
|
+
}
|
|
73
|
+
var foundThemes;
|
|
74
|
+
if (configIn.themes) {
|
|
75
|
+
var noThemes = Object.keys(configIn.themes).length === 0;
|
|
76
|
+
if (noThemes && !process.env.TAMAGUI_DID_OUTPUT_CSS) foundThemes = (0, import_insertStyleRule.scanAllSheets)(noThemes, tokensParsed);
|
|
77
|
+
}
|
|
78
|
+
var fontSizeTokens = null;
|
|
79
|
+
var fontsParsed;
|
|
80
|
+
if (configIn.fonts) {
|
|
81
|
+
var fontTokens = Object.fromEntries(Object.entries(configIn.fonts).map(function (param) {
|
|
82
|
+
var [k, v] = param;
|
|
83
|
+
return [k, (0, import_createVariables.createVariables)(v, "f", true)];
|
|
84
|
+
}));
|
|
85
|
+
fontsParsed = function () {
|
|
86
|
+
var res = {};
|
|
87
|
+
for (var familyName in fontTokens) {
|
|
88
|
+
var font = fontTokens[familyName];
|
|
89
|
+
var fontParsed = (0, import_insertFont.parseFont)(font);
|
|
90
|
+
res[`$${familyName}`] = fontParsed;
|
|
91
|
+
if (!fontSizeTokens && fontParsed.size) fontSizeTokens = new Set(Object.keys(fontParsed.size));
|
|
92
|
+
}
|
|
93
|
+
return res;
|
|
94
|
+
}();
|
|
95
|
+
}
|
|
96
|
+
var specificTokens = {};
|
|
97
|
+
var themeConfig = function () {
|
|
98
|
+
var sortedTokenKeys = Object.keys(tokens).sort();
|
|
99
|
+
var _iteratorNormalCompletion = true,
|
|
100
|
+
_didIteratorError = false,
|
|
101
|
+
_iteratorError = void 0;
|
|
102
|
+
try {
|
|
103
|
+
for (var _iterator = sortedTokenKeys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
104
|
+
var key2 = _step.value;
|
|
105
|
+
var sortedSubKeys = Object.keys(tokens[key2]).sort();
|
|
106
|
+
var _iteratorNormalCompletion1 = true,
|
|
107
|
+
_didIteratorError1 = false,
|
|
108
|
+
_iteratorError1 = void 0;
|
|
109
|
+
try {
|
|
110
|
+
for (var _iterator1 = sortedSubKeys[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
|
|
111
|
+
var skey = _step1.value;
|
|
112
|
+
var variable = tokens[key2][skey];
|
|
113
|
+
specificTokens[`$${key2}.${skey}`] = variable;
|
|
114
|
+
if (process.env.NODE_ENV === "development") {
|
|
115
|
+
if (typeof variable === "undefined") throw new Error(`No value for tokens.${key2}.${skey}:
|
|
116
|
+
${JSON.stringify(variable, null, 2)}`);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
} catch (err) {
|
|
120
|
+
_didIteratorError1 = true;
|
|
121
|
+
_iteratorError1 = err;
|
|
122
|
+
} finally {
|
|
123
|
+
try {
|
|
124
|
+
if (!_iteratorNormalCompletion1 && _iterator1.return != null) _iterator1.return();
|
|
125
|
+
} finally {
|
|
126
|
+
if (_didIteratorError1) throw _iteratorError1;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
} catch (err) {
|
|
131
|
+
_didIteratorError = true;
|
|
132
|
+
_iteratorError = err;
|
|
133
|
+
} finally {
|
|
134
|
+
try {
|
|
135
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
|
|
136
|
+
} finally {
|
|
137
|
+
if (_didIteratorError) throw _iteratorError;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
var declarations = (0, import_createDesignSystem.createTokenCSS)(tokens, shouldTokenCategoryHaveUnits);
|
|
141
|
+
var fontDeclarations = (0, import_createDesignSystem.createFontCSS)(fontsParsed, import_insertFont.registerFontVariables);
|
|
142
|
+
var cssRuleSets = (0, import_createDesignSystem.buildCSSRuleSets)(declarations, fontDeclarations);
|
|
143
|
+
var themesIn = configIn.themes;
|
|
144
|
+
var dedupedThemes = foundThemes !== null && foundThemes !== void 0 ? foundThemes : getThemesDeduped(themesIn, tokens.color);
|
|
145
|
+
return {
|
|
146
|
+
themes: (0, import_proxyThemeToParents.proxyThemesToParents)(dedupedThemes),
|
|
147
|
+
cssRuleSets,
|
|
148
|
+
getThemeRulesSets() {
|
|
149
|
+
return (0, import_createDesignSystem.createThemeCSS)(dedupedThemes, configIn);
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
}();
|
|
153
|
+
var userShorthands = configIn.shorthands || {};
|
|
154
|
+
var shorthands = {
|
|
155
|
+
...builtinShorthands,
|
|
156
|
+
...userShorthands
|
|
157
|
+
};
|
|
158
|
+
var lastCSSIndex = {
|
|
159
|
+
value: -1
|
|
160
|
+
};
|
|
161
|
+
var getCSS = function () {
|
|
162
|
+
var opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
163
|
+
return (0, import_createDesignSystem.getCSS)(themeConfig, opts, lastCSSIndex);
|
|
164
|
+
};
|
|
165
|
+
var getNewCSS = function (opts) {
|
|
166
|
+
return getCSS({
|
|
167
|
+
...opts,
|
|
168
|
+
sinceLastCall: true
|
|
169
|
+
});
|
|
170
|
+
};
|
|
171
|
+
var defaultFontSetting = (_configIn_settings = configIn.settings) === null || _configIn_settings === void 0 ? void 0 : _configIn_settings.defaultFont;
|
|
172
|
+
var defaultFont = function () {
|
|
173
|
+
var val2 = defaultFontSetting;
|
|
174
|
+
if ((val2 === null || val2 === void 0 ? void 0 : val2[0]) === "$") val2 = val2.slice(1);
|
|
175
|
+
return val2;
|
|
176
|
+
}();
|
|
177
|
+
!((_configIn_settings1 = configIn.settings) === null || _configIn_settings1 === void 0) && _configIn_settings1.defaultPosition;
|
|
178
|
+
var defaultProps = configIn.defaultProps || {};
|
|
179
|
+
var defaultFontToken = defaultFont ? `$${defaultFont}` : "";
|
|
180
|
+
var inputAnimations = configIn.animations;
|
|
181
|
+
var resolvedDriver = (0, import_resolveAnimationDriver.resolveAnimationDriver)(inputAnimations);
|
|
182
|
+
var isMultiDriver = resolvedDriver !== null && resolvedDriver !== inputAnimations;
|
|
183
|
+
var resolvedAnimations = resolvedDriver !== null && resolvedDriver !== void 0 ? resolvedDriver : inputAnimations;
|
|
184
|
+
var animationDrivers = isMultiDriver ? inputAnimations : void 0;
|
|
185
|
+
var config = {
|
|
186
|
+
fonts: {},
|
|
187
|
+
onlyAllowShorthands: false,
|
|
188
|
+
fontLanguages: [],
|
|
189
|
+
media: {},
|
|
190
|
+
...configIn,
|
|
191
|
+
animations: resolvedAnimations !== null && resolvedAnimations !== void 0 ? resolvedAnimations : import_defaultAnimationDriver.defaultAnimationDriver,
|
|
192
|
+
animationDrivers,
|
|
193
|
+
defaultProps,
|
|
194
|
+
settings: {
|
|
195
|
+
webContainerType: "inline-size",
|
|
196
|
+
...configIn.settings
|
|
197
|
+
},
|
|
198
|
+
tokens,
|
|
199
|
+
shorthands,
|
|
200
|
+
userShorthands,
|
|
201
|
+
inverseShorthands: shorthands ? Object.fromEntries(Object.entries(shorthands).map(function (param) {
|
|
202
|
+
var [k, v] = param;
|
|
203
|
+
return [v, k];
|
|
204
|
+
})) : {},
|
|
205
|
+
themes: themeConfig.themes,
|
|
206
|
+
fontsParsed: fontsParsed || {},
|
|
207
|
+
themeConfig,
|
|
208
|
+
tokensParsed,
|
|
209
|
+
parsed: true,
|
|
210
|
+
getNewCSS,
|
|
211
|
+
getCSS,
|
|
212
|
+
defaultFont,
|
|
213
|
+
fontSizeTokens: fontSizeTokens || /* @__PURE__ */new Set(),
|
|
214
|
+
specificTokens,
|
|
215
|
+
defaultFontToken
|
|
216
|
+
};
|
|
217
|
+
initializeHanzoguiConfig(config);
|
|
218
|
+
if (process.env.NODE_ENV !== "development") return config;
|
|
219
|
+
if ((_process_env_DEBUG = process.env.DEBUG) === null || _process_env_DEBUG === void 0 ? void 0 : _process_env_DEBUG.startsWith("hanzogui")) console.info("Hanzogui config:", config);
|
|
220
|
+
if (!globalThis["Hanzogui"]) globalThis["Hanzogui"] = import_Hanzogui.Hanzogui;
|
|
221
|
+
return config;
|
|
222
|
+
}
|
|
223
|
+
function getThemesDeduped(themes, colorTokens) {
|
|
224
|
+
var dedupedThemes = [];
|
|
225
|
+
var existing = /* @__PURE__ */new Map();
|
|
226
|
+
var sortedThemeNames = Object.keys(themes).sort();
|
|
227
|
+
var _iteratorNormalCompletion = true,
|
|
228
|
+
_didIteratorError = false,
|
|
229
|
+
_iteratorError = void 0;
|
|
230
|
+
try {
|
|
231
|
+
for (var _iterator = sortedThemeNames[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
232
|
+
var themeName = _step.value;
|
|
233
|
+
var darkOrLightSpecificPrefix = themeName.startsWith("dark") ? "dark" : themeName.startsWith("light") ? "light" : "";
|
|
234
|
+
var rawTheme = themes[themeName];
|
|
235
|
+
var key = darkOrLightSpecificPrefix + JSON.stringify(rawTheme);
|
|
236
|
+
if (existing.has(key)) {
|
|
237
|
+
existing.get(key).names.push(themeName);
|
|
238
|
+
continue;
|
|
239
|
+
}
|
|
240
|
+
var theme = {
|
|
241
|
+
...colorTokens,
|
|
242
|
+
...rawTheme
|
|
243
|
+
};
|
|
244
|
+
for (var key1 in theme) (0, import_themes.ensureThemeVariable)(theme, key1);
|
|
245
|
+
var deduped = {
|
|
246
|
+
names: [themeName],
|
|
247
|
+
theme
|
|
248
|
+
};
|
|
249
|
+
dedupedThemes.push(deduped);
|
|
250
|
+
existing.set(key, deduped);
|
|
251
|
+
}
|
|
252
|
+
} catch (err) {
|
|
253
|
+
_didIteratorError = true;
|
|
254
|
+
_iteratorError = err;
|
|
255
|
+
} finally {
|
|
256
|
+
try {
|
|
257
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();
|
|
258
|
+
} finally {
|
|
259
|
+
if (_didIteratorError) throw _iteratorError;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
return dedupedThemes;
|
|
263
|
+
}
|
|
264
|
+
var builtinShorthands = {
|
|
265
|
+
bblr: "borderBottomLeftRadius",
|
|
266
|
+
bbrr: "borderBottomRightRadius",
|
|
267
|
+
bbs: "borderBottomStyle",
|
|
268
|
+
bls: "borderLeftStyle",
|
|
269
|
+
brc: "borderRightColor",
|
|
270
|
+
brs: "borderRightStyle",
|
|
271
|
+
brw: "borderRightWidth",
|
|
272
|
+
bs: "borderStyle",
|
|
273
|
+
btc: "borderTopColor",
|
|
274
|
+
btlr: "borderTopLeftRadius",
|
|
275
|
+
btrr: "borderTopRightRadius",
|
|
276
|
+
bts: "borderTopStyle",
|
|
277
|
+
btw: "borderTopWidth",
|
|
278
|
+
bw: "borderWidth",
|
|
279
|
+
bxs: "boxSizing",
|
|
280
|
+
bxsh: "boxShadow",
|
|
281
|
+
col: "color",
|
|
282
|
+
cur: "cursor",
|
|
283
|
+
dsp: "display",
|
|
284
|
+
fb: "flexBasis",
|
|
285
|
+
fd: "flexDirection",
|
|
286
|
+
ff: "fontFamily",
|
|
287
|
+
fs: "fontSize",
|
|
288
|
+
fst: "fontStyle",
|
|
289
|
+
fw: "fontWeight",
|
|
290
|
+
fwr: "flexWrap",
|
|
291
|
+
lh: "lineHeight",
|
|
292
|
+
ls: "letterSpacing",
|
|
293
|
+
o: "opacity",
|
|
294
|
+
ov: "overflow",
|
|
295
|
+
ox: "overflowX",
|
|
296
|
+
oy: "overflowY",
|
|
297
|
+
pe: "pointerEvents",
|
|
298
|
+
pos: "position",
|
|
299
|
+
td: "textDecorationLine",
|
|
300
|
+
tr: "transform",
|
|
301
|
+
tt: "textTransform",
|
|
302
|
+
va: "verticalAlign",
|
|
303
|
+
wb: "wordBreak",
|
|
304
|
+
ws: "whiteSpace",
|
|
305
|
+
ww: "wordWrap"
|
|
306
|
+
};
|
|
307
|
+
//# sourceMappingURL=createHanzogui.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["to","__toCommonJS","mod","__copyProps","__defProp","value","createHanzogui_exports","__export","createHanzogui","module","exports","import_config","require","import_createVariables","import_defaultAnimationDriver","import_resolveAnimationDriver","import_createDesignSystem","import_insertStyleRule","import_proxyThemeToParents","import_themes","import_useMedia","import_insertFont","import_Hanzogui","shouldTokenCategoryHaveUnits","category","Set","has","initializeHanzoguiConfig","config","setConfig","configureMedia","configIn","_configIn_settings","_configIn_settings1","_process_env_DEBUG","existingConfig","getConfigMaybe","tokensParsed","tokens","createVariables","tokensMerged","cat","tokenCat","key","val","prefixedKey","setTokens","foundThemes","themes","noThemes","Object","keys","length","process","env","TAMAGUI_DID_OUTPUT_CSS","scanAllSheets","fontSizeTokens","fontsParsed","fonts","fontTokens","fromEntries","entries","map","param","k","v","res","familyName","font","fontParsed","parseFont","size","specificTokens","themeConfig","sortedTokenKeys","sort","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","Symbol","iterator","_step","next","done","key2","sortedSubKeys","_iteratorNormalCompletion1","_didIteratorError1","_iteratorError1","_iterator1","_step1","skey","variable","NODE_ENV","Error","JSON","stringify","err","return","declarations","createTokenCSS","fontDeclarations","createFontCSS","registerFontVariables","cssRuleSets","buildCSSRuleSets","themesIn","dedupedThemes","getThemesDeduped","color","proxyThemesToParents","getThemeRulesSets","createThemeCSS","userShorthands","shorthands","builtinShorthands","lastCSSIndex","getCSS","opts","arguments","getNewCSS","sinceLastCall","defaultFontSetting","settings","defaultFont","val2","slice","defaultPosition","defaultProps","defaultFontToken","inputAnimations","animations","resolvedDriver","resolveAnimationDriver","isMultiDriver","resolvedAnimations","animationDrivers","onlyAllowShorthands","fontLanguages","media","defaultAnimationDriver","webContainerType","inverseShorthands","parsed","DEBUG","startsWith","console","info","globalThis","Hanzogui","colorTokens","existing","Map","sortedThemeNames","themeName","darkOrLightSpecificPrefix","rawTheme","get","names","push","theme","key1","ensureThemeVariable","deduped","set","bblr","bbrr","bbs","bls","brc","brs","brw","bs","btc","btlr","btrr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B,iBAAA,QAAAC,cAAA;IACJ;EAAK;EAAA,OAED8B,aAAA;AAAA;AACA,IACJQ,iBAAG;EAAAkD,IACH,EAAI;EAAAC,IACJ,EAAI;EAAAC,GACJ,EAAI;EAAAC,GACJ,EAAI;EAAAC,GACJ,oBAAK;EAAAC,GACL,EAAI;EAAAC,GACJ,EAAI;EAAAC,EACJ,eAAI;EAAAC,GACJ,EAAI;EAAAC,IACJ,EAAI;EAAAC,IAAA;EAAAC,GAEJ,EAAI;EAAAC,GACJ,EAAI;EACNC,EAAA","ignoreList":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
}), mod);
|
|
23
|
+
var createShorthands_exports = {};
|
|
24
|
+
__export(createShorthands_exports, {
|
|
25
|
+
createShorthands: () => createShorthands
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(createShorthands_exports);
|
|
28
|
+
function createShorthands(shorthands) {
|
|
29
|
+
return Object.freeze(shorthands);
|
|
30
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
}), mod);
|
|
25
|
+
var createShorthands_exports = {};
|
|
26
|
+
__export(createShorthands_exports, {
|
|
27
|
+
createShorthands: () => createShorthands
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(createShorthands_exports);
|
|
30
|
+
function createShorthands(shorthands) {
|
|
31
|
+
return Object.freeze(shorthands);
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=createShorthands.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","createShorthands_exports","__export","createShorthands","module","exports","shorthands","Object","freeze"],"sources":["../../src/createShorthands.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,wBAAA;AAAAC,QAAA,CAAAD,wBAAA;EAAAE,gBAAA,EAAAA,CAAA,KAAAA;AAAA;AAIOC,MAAA,CAAAC,OAAS,GAAAT,YAA6C,CAAAK,wBAAkB;AAC7E,SAAOE,gBAAcA,CAAAG,UAAU;EACjC,OAAAC,MAAA,CAAAC,MAAA,CAAAF,UAAA","ignoreList":[]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
}), mod);
|
|
23
|
+
var createTokens_exports = {};
|
|
24
|
+
__export(createTokens_exports, {
|
|
25
|
+
createTokens: () => createTokens
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(createTokens_exports);
|
|
28
|
+
var import_createVariables = require("./createVariables.cjs");
|
|
29
|
+
function createTokens(tokens) {
|
|
30
|
+
return (0, import_createVariables.createVariables)(tokens, process.env.TAMAGUI_TOKEN_PREFIX ?? "t");
|
|
31
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
+
value: true
|
|
24
|
+
}), mod);
|
|
25
|
+
var createTokens_exports = {};
|
|
26
|
+
__export(createTokens_exports, {
|
|
27
|
+
createTokens: () => createTokens
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(createTokens_exports);
|
|
30
|
+
var import_createVariables = require("./createVariables.native.js");
|
|
31
|
+
function createTokens(tokens) {
|
|
32
|
+
var _process_env_TAMAGUI_TOKEN_PREFIX;
|
|
33
|
+
return (0, import_createVariables.createVariables)(tokens, (_process_env_TAMAGUI_TOKEN_PREFIX = process.env.TAMAGUI_TOKEN_PREFIX) !== null && _process_env_TAMAGUI_TOKEN_PREFIX !== void 0 ? _process_env_TAMAGUI_TOKEN_PREFIX : "t");
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=createTokens.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","createTokens_exports","__export","createTokens","module","exports","import_createVariables","require","tokens","_process_env_TAMAGUI_TOKEN_PREFIX"],"sources":["../../src/createTokens.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,oBAAA;AAAAC,QAAA,CAAAD,oBAAA;EAAAE,YAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAgC,CAAAK,oBAAA;AAGzB,IAAAK,sBAA8C,GAAAC,OAA0B;AAC7E,SAAAJ,YAAOA,CAAAK,MAAA;EACT,IAAAC,iCAAA","ignoreList":[]}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: true
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
+
get: () => from[key],
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: true
|
|
22
|
+
}), mod);
|
|
23
|
+
var createVariable_exports = {};
|
|
24
|
+
__export(createVariable_exports, {
|
|
25
|
+
createCSSVariable: () => createCSSVariable,
|
|
26
|
+
createVariable: () => createVariable,
|
|
27
|
+
didGetVariableValue: () => didGetVariableValue,
|
|
28
|
+
getVariable: () => getVariable,
|
|
29
|
+
getVariableName: () => getVariableName,
|
|
30
|
+
getVariableValue: () => getVariableValue,
|
|
31
|
+
getVariableVariable: () => getVariableVariable,
|
|
32
|
+
isVariable: () => isVariable,
|
|
33
|
+
px: () => px,
|
|
34
|
+
setDidGetVariableValue: () => setDidGetVariableValue,
|
|
35
|
+
variableToString: () => variableToString
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(createVariable_exports);
|
|
38
|
+
var import_constants = require("@hanzogui/constants");
|
|
39
|
+
var import_helpers = require("@hanzogui/helpers");
|
|
40
|
+
var import_config = require("./config.cjs");
|
|
41
|
+
function constructCSSVariableName(name) {
|
|
42
|
+
return `var(--${process.env.TAMAGUI_CSS_VARIABLE_PREFIX || ""}${name})`;
|
|
43
|
+
}
|
|
44
|
+
const createVariable = (props, skipHash = false) => {
|
|
45
|
+
if (!skipHash && isVariable(props)) return props;
|
|
46
|
+
const {
|
|
47
|
+
key,
|
|
48
|
+
name,
|
|
49
|
+
val
|
|
50
|
+
} = props;
|
|
51
|
+
return {
|
|
52
|
+
isVar: true,
|
|
53
|
+
key,
|
|
54
|
+
name: skipHash ? name : (0, import_helpers.simpleHash)(name, 40),
|
|
55
|
+
val,
|
|
56
|
+
variable: import_constants.isWeb ? skipHash ? constructCSSVariableName(name) : createCSSVariable(name) : ""
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
function variableToString(vrble, getValue = false) {
|
|
60
|
+
if (isVariable(vrble)) {
|
|
61
|
+
if (!getValue && import_constants.isWeb && vrble.variable) {
|
|
62
|
+
return vrble.variable;
|
|
63
|
+
}
|
|
64
|
+
return `${vrble.val}`;
|
|
65
|
+
}
|
|
66
|
+
return `${vrble || ""}`;
|
|
67
|
+
}
|
|
68
|
+
function isVariable(v) {
|
|
69
|
+
return v && typeof v === "object" && "isVar" in v;
|
|
70
|
+
}
|
|
71
|
+
function getVariable(nameOrVariable, group = "size") {
|
|
72
|
+
if (nameOrVariable?.dynamic) {
|
|
73
|
+
return nameOrVariable;
|
|
74
|
+
}
|
|
75
|
+
setDidGetVariableValue(true);
|
|
76
|
+
if (isVariable(nameOrVariable)) {
|
|
77
|
+
return variableToString(nameOrVariable);
|
|
78
|
+
}
|
|
79
|
+
const tokens = (0, import_config.getConfig)().tokensParsed;
|
|
80
|
+
return variableToString(tokens[group]?.[nameOrVariable] ?? nameOrVariable);
|
|
81
|
+
}
|
|
82
|
+
let accessed = false;
|
|
83
|
+
const setDidGetVariableValue = val => accessed = val;
|
|
84
|
+
const didGetVariableValue = () => accessed;
|
|
85
|
+
function getVariableValue(v, group) {
|
|
86
|
+
if (isVariable(v)) {
|
|
87
|
+
setDidGetVariableValue(true);
|
|
88
|
+
return v.val;
|
|
89
|
+
}
|
|
90
|
+
if (group) {
|
|
91
|
+
const tokens = (0, import_config.getConfig)().tokensParsed;
|
|
92
|
+
const token = tokens[group]?.[v];
|
|
93
|
+
if (token) {
|
|
94
|
+
setDidGetVariableValue(true);
|
|
95
|
+
return token.val;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return v;
|
|
99
|
+
}
|
|
100
|
+
function getVariableName(v) {
|
|
101
|
+
if (isVariable(v)) return v.name;
|
|
102
|
+
return v;
|
|
103
|
+
}
|
|
104
|
+
function getVariableVariable(v) {
|
|
105
|
+
if (isVariable(v)) return v.variable;
|
|
106
|
+
return v;
|
|
107
|
+
}
|
|
108
|
+
const createCSSVariable = (nameProp, includeVar = true) => {
|
|
109
|
+
if (process.env.NODE_ENV === "development") {
|
|
110
|
+
if (!nameProp || typeof nameProp !== "string") {
|
|
111
|
+
throw new Error(`createCSSVariable expected string, got: ${nameProp}`);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
const name = (0, import_helpers.simpleHash)(nameProp, 60);
|
|
115
|
+
return includeVar ? constructCSSVariableName(name) : name;
|
|
116
|
+
};
|
|
117
|
+
function px(value) {
|
|
118
|
+
return {
|
|
119
|
+
val: value,
|
|
120
|
+
needsPx: true
|
|
121
|
+
};
|
|
122
|
+
}
|