@hanzogui/web

v8.3.5 · types/index.d.ts · 188 values · 298 types

Exports

_disableMediaTouch

value

export declare function _disableMediaTouch(val: boolean): void;

@hanzogui/web/types/hooks/useMedia.d.ts

_withStableStyle

value

export declare const _withStableStyle: (Component: any, createStyle: (theme: any, expressions: any[]) => object, hasThemeKeys?: boolean, hasMediaKeys?: boolean) => React.NamedExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;

@hanzogui/web/types/_withStableStyle.d.ts

AddWebOnlyStyleProps

type

export type AddWebOnlyStyleProps<A> = Partial<CSSProperties> & Partial<WebOnlyValidStyleValues> & { [K in Exclude<keyof A, keyof CSSProperties>]?: A[K]; };

@hanzogui/web/types/types.d.ts

AllGroupContexts

type

export type AllGroupContexts = { [GroupName: string]: SingleGroupContext; };

@hanzogui/web/types/types.d.ts

AllowedValueSettingColor

type

export type AllowedValueSettingColor = GetThemeValueSettingForCategory<'color'>;

@hanzogui/web/types/types.d.ts

AllowedValueSettingRadius

type

export type AllowedValueSettingRadius = GetThemeValueSettingForCategory<'radius'>;

@hanzogui/web/types/types.d.ts

AllowedValueSettingSize

type

export type AllowedValueSettingSize = GetThemeValueSettingForCategory<'size'>;

@hanzogui/web/types/types.d.ts

AllowedValueSettingSpace

type

export type AllowedValueSettingSpace = GetThemeValueSettingForCategory<'space'>;

@hanzogui/web/types/types.d.ts

AllowedValueSettingZIndex

type

export type AllowedValueSettingZIndex = GetThemeValueSettingForCategory<'zIndex'>;

@hanzogui/web/types/types.d.ts

AllPlatforms

type

export type AllPlatforms = 'web' | 'native' | 'android' | 'ios' | 'tv' | 'androidtv' | 'tvos';

@hanzogui/web/types/types.d.ts

AnimatedNumberStrategy

type

export type AnimatedNumberStrategy = { type: 'spring'; stiffness?: number; damping?: number; mass?: number; overshootClamping?: boolean; restSpeedThreshold?: number; restDisplacementThreshold?: number; } | { type: 'timing'; duration: number; } | { type: 'direct'; };

@hanzogui/web/types/types.d.ts

AnimationConfigType

type

export type AnimationConfigType = any;

@hanzogui/web/types/types.d.ts

AnimationDriver

type

export type AnimationDriver<A extends AnimationConfig = AnimationConfig> = { isReactNative?: boolean; /** What style format the driver expects as input: 'css' (CSS variables) or 'value' (resolved values) */ inputStyle?: 'css' | 'value'; /** How the driver outputs styles: 'css' (className-based) or 'inline' (style object) */ outputStyle?: 'css' | 'inline'; needsCustomComponent?: boolean; avoidReRenders?: boolean; onMount?: () => void; /** When true, this is a stub driver with no real animation support */ isStub?: boolean; useAnimations: UseAnimationHook; usePresence: () => UsePresenceResult; ResetPresence: (props: { children?: React.ReactNode; disabled?: boolean; }) => React.ReactNode; useAnimatedNumber: UseAnimatedNumber; useAnimatedNumberStyle: UseAnimatedNumberStyle; useAnimatedNumbersStyle?: UseAnimatedNumbersStyle; useAnimatedNumberReaction: UseAnimatedNumberReaction; animations: A; View?: any; Text?: any; };

@hanzogui/web/types/types.d.ts

AnimationDriverKeys

type

export type AnimationDriverKeys = 'default' | Extract<Exclude<GuiConfig['animationDriverKeys'], undefined>, string> | (ReturnType<TypeOverride['animationDrivers']> extends 1 ? never : ReturnType<TypeOverride['animationDrivers']>);

@hanzogui/web/types/types.d.ts

AnimationsConfig

type

Animation drivers config - can be a single driver or named drivers object. If object, must include a 'default' key.

export type AnimationsConfig = AnimationDriver<any> | AnimationsConfigObject;

@hanzogui/web/types/types.d.ts

AnimationsConfigObject

type

export type AnimationsConfigObject = { default: AnimationDriver<any>; [key: string]: AnimationDriver<any>; };

@hanzogui/web/types/types.d.ts

autoVariables

value

export declare const autoVariables: Variable[];

@hanzogui/web/types/helpers/registerCSSVariable.d.ts

BaseStyleProps

type

export type BaseStyleProps = { [Key in keyof TextStylePropsBase]?: TextStyle[Key] | GetThemeValueForKey<Key>; } & { [Key in keyof StackStyleBase]?: StackStyle[Key] | GetThemeValueForKey<Key>; };

@hanzogui/web/types/types.d.ts

BorderValue

type

export type BorderValue = BorderPreset | (string & {});

@hanzogui/web/types/types.d.ts

BoxShadowValue

type

export type BoxShadowValue = BoxShadowPreset | (string & {});

@hanzogui/web/types/types.d.ts

CallbackSetState

type

export type CallbackSetState<State> = (next: (cb: State) => State) => void;

@hanzogui/is-equal-shallow/types/index.d.ts

ChildGroupState

type

export type ChildGroupState = { pseudo?: PseudoGroupState; media?: Record<MediaQueryKey extends number ? never : MediaQueryKey, boolean>; };

@hanzogui/web/types/types.d.ts

clamp

value

export declare function clamp(value: number, [min, max]: [number, number]): number;

@hanzogui/helpers/types/clamp.d.ts

ClassNamesObject

type

export type ClassNamesObject = Record<string, string>;

@hanzogui/web/types/types.d.ts

ClientOnly

value

export declare const ClientOnly: ({ children, enabled, }: { children: any; enabled?: boolean; }) => React.ReactNode;

@hanzogui/use-did-finish-ssr/types/ClientOnly.d.ts

ClientOnlyContext

value

export declare const ClientOnlyContext: React.Context<boolean>;

@hanzogui/use-did-finish-ssr/types/ClientOnly.d.ts

ColorKeys

type

export type ColorKeys = 'color' | 'backgroundColor' | 'borderColor' | 'borderBottomColor' | 'borderTopColor' | 'borderLeftColor' | 'borderRightColor' | 'shadowColor' | 'outlineColor' | 'textShadowColor' | 'borderBlockColor' | 'borderBlockEndColor' | 'borderBlockStartColor' | 'borderInlineColor' | 'borderInlineStartColor' | 'borderInlineEndColor';

@hanzogui/web/types/types.d.ts

ColorScheme

type

export type ColorScheme = 'light' | 'dark';

@hanzogui/web/types/types.d.ts

ColorStyleProp

type

export type ColorStyleProp = ThemeValueFallbackColor | ColorTokens;

@hanzogui/web/types/types.d.ts

ColorTokens

type

export type ColorTokens = ColorTokenBase | CSSColorNames | TokenWithOpacity;

@hanzogui/web/types/types.d.ts

ColorVariantSpreadFunction

type

export type ColorVariantSpreadFunction<A extends PropLike> = VariantSpreadFunction<A, ColorTokens>;

@hanzogui/web/types/types.d.ts

ComponentContext

value

export declare const ComponentContext: import("../types.tsx").StyledContext<ComponentContextI>;

@hanzogui/web/types/contexts/ComponentContext.d.ts

ComponentContextI

type

export type ComponentContextI = { disableSSR?: boolean; inText: boolean; language: LanguageContextType | null; animationDriver: AnimationDriver | null; setParentFocusState: ComponentSetStateShallow | null; mediaEmit?: (state: UseMediaState) => void; mediaEmitListeners?: Set<(state: UseMediaState) => void>; insets?: { top: number; right: number; bottom: number; left: number; } | null; };

@hanzogui/web/types/types.d.ts

ComponentGroupEmitter

type

export type ComponentGroupEmitter = { listeners: Set<GroupStateListener>; emit: GroupStateListener; subscribe: (cb: GroupStateListener) => () => void; };

@hanzogui/web/types/types.d.ts

ComponentGroupState

type

export type ComponentGroupState = { pseudo?: PseudoGroupState; layout?: WidthHeight; };

@hanzogui/web/types/types.d.ts

componentSetStates

value

export declare const componentSetStates: Set<ComponentSetState>;

@hanzogui/web/types/createComponent.d.ts

ComponentSetStateShallow

type

export type ComponentSetStateShallow = React.Dispatch<React.SetStateAction<Partial<GuiComponentState>>>;

@hanzogui/web/types/types.d.ts

composeEventHandlers

value

export declare function composeEventHandlers<E extends Events>(og?: EventHandler<E> | null, next?: EventHandler<E> | null, { checkDefaultPrevented }?: { checkDefaultPrevented?: boolean | undefined; }): EventHandler<E> | undefined;

@hanzogui/helpers/types/composeEventHandlers.d.ts

composeRefs

value

A utility to compose multiple refs together Accepts callback refs and RefObject(s)

export declare function composeRefs<T>(...refs: PossibleRef<T>[]): (node: T) => void;

@hanzogui/compose-refs/types/compose-refs.d.ts

ConfigListener

type

export type ConfigListener = (conf: GuiInternalConfig) => void;

@hanzogui/web/types/types.d.ts

Configuration

value

export declare const Configuration: (props: ConfigurationProps) => React.JSX.Element;

@hanzogui/web/types/views/Configuration.d.ts

configureMedia

value

export declare const configureMedia: (config: GuiInternalConfig) => void;

@hanzogui/web/types/hooks/useMedia.d.ts

createComponent

value

export declare function createComponent<ComponentPropTypes extends Record<string, any> = {}, Ref extends GuiElement = GuiElement, BaseProps = never, BaseStyles extends object = never>(staticConfig: StaticConfig): GuiComponent<ComponentPropTypes, Ref, BaseProps, BaseStyles, {}>;

@hanzogui/web/types/createComponent.d.ts

createCSSVariable

value

export declare const createCSSVariable: (nameProp: string, includeVar?: boolean) => string;

@hanzogui/web/types/createVariable.d.ts

createFont

value

export declare const createFont: <A extends GenericFont>(font: A) => A;

@hanzogui/web/types/createFont.d.ts

createGui

value

export declare function createGui<Conf extends CreateGuiProps>(configIn: Conf): InferGuiConfig<Conf>;

@hanzogui/web/types/createGui.d.ts

CreateGuiConfig

type

export type CreateGuiConfig<A extends GenericTokens, B extends GenericThemes, C extends GenericShorthands = GenericShorthands, D extends GenericMedia = GenericMedia, E extends GenericAnimations = GenericAnimations, F extends GenericFonts = GenericFonts, H extends GenericGuiSettings = GenericGuiSettings, AnimDriverKeys extends string = string> = { fonts: RemoveLanguagePostfixes<F>; fontLanguages: GetLanguagePostfixes<F> extends never ? string[] : GetLanguagePostfixes<F>[]; tokens: A; themes: { [Name in keyof B]: { [Key in keyof B[Name]]: CoerceToVariable<B[Name][Key]>; }; }; shorthands: C; media: D; animations: AnimationDriver<E> | AnimationsConfigObject; animationDriverKeys?: AnimDriverKeys; settings: H; };

@hanzogui/web/types/types.d.ts

CreateGuiProps

type

export type CreateGuiProps = { reactNative?: any; shorthands?: CreateShorthands; media?: GenericGuiConfig['media']; /** * Animation driver(s) configuration. * Can be a single driver or an object of named drivers (must include 'default'). * @example * // Single driver * animations: createAnimations({ slow: '...', fast: '...' }) * // Multiple named drivers * animations: { default: cssDriver, spring: motiDriver } */ animations?: AnimationsConfig; fonts?: GenericGuiConfig['fonts']; tokens?: GenericGuiConfig['tokens']; themes?: { [key: string]: { [key: string]: string | number | Variable; }; }; settings?: Partial<GenericGuiSettings>; /** * Web-only: define text-selection CSS */ selectionStyles?: (theme: Record<string, string>) => null | { backgroundColor?: any; color?: any; }; defaultProps?: Record<string, any> & { Text?: TextProps; View?: StackNonStyleProps & StackStyle; }; };

@hanzogui/web/types/types.d.ts

createMediaStyle

value

export declare const createMediaStyle: (styleObject: StyleObject, mediaKeyIn: string, mediaQueries: MediaQueries, type: IsMediaType, negate?: boolean, priority?: number) => MediaStyleObject;

@hanzogui/web/types/helpers/createMediaStyle.d.ts

createShorthands

value

export declare function createShorthands<A extends CreateShorthands>(shorthands: A): A;

@hanzogui/web/types/createShorthands.d.ts

CreateShorthands

type

export type CreateShorthands = { [key: string]: string; };

@hanzogui/web/types/types.d.ts

createStyledContext

value

export declare const createStyledContext: <VariantProps extends Record<string, any>>(defaultValues?: VariantProps, namespace?: string) => StyledContext<VariantProps>;

@hanzogui/web/types/helpers/createStyledContext.d.ts

createTokens

value

export declare function createTokens<T extends CreateTokens>(tokens: T): MakeTokens<T>;

@hanzogui/web/types/createTokens.d.ts

CreateTokens

type

export type CreateTokens<Val extends VariableVal = VariableVal> = Record<string, { [key: GenericKey]: Val; }> & { color?: { [key: GenericKey]: Val; }; space?: { [key: GenericKey]: Val; }; size?: { [key: GenericKey]: Val; }; radius?: { [key: GenericKey]: Val; }; zIndex?: { [key: GenericKey]: Val; }; };

@hanzogui/web/types/types.d.ts

createVariable

value

export declare const createVariable: <A extends string | number | Variable = any>(props: VariableIn<A>, skipHash?: boolean) => Variable<A>;

@hanzogui/web/types/createVariable.d.ts

createVariables

value

export declare const createVariables: <A extends DeepTokenObject>(tokens: A, parentPath?: string, isFont?: boolean) => DeepVariableObject<A>;

@hanzogui/web/types/createVariables.d.ts

cssShorthandLonghands

value

export declare const cssShorthandLonghands: { borderWidth: boolean; borderStyle: boolean; borderColor: boolean; borderTopWidth: boolean; borderTopStyle: boolean; borderTopColor: boolean; borderRightWidth: boolean; borderRightStyle: boolean; borderRightColor: boolean; borderBottomWidth: boolean; borderBottomStyle: boolean; borderBottomColor: boolean; borderLeftWidth: boolean; borderLeftStyle: boolean; borderLeftColor: boolean; outlineWidth: boolean; outlineStyle: boolean; outlineColor: boolean; outlineOffset: boolean; };

@hanzogui/helpers/types/validStyleProps.d.ts

currentPlatform

value

Reflects Platform.OS. TV platforms are intentionally NOT separate values: - Android TV has Platform.OS === 'android' (react-native-tvos behavior) - tvOS has Platform.OS === 'ios' (react-native-tvos behavior) Use `isTV` combined with `isAndroid`/`isIos` to detect specific TV platforms.

export declare const currentPlatform: 'web' | 'ios' | 'native' | 'android';

@hanzogui/constants/types/constants.d.ts

DebugProp

type

export type DebugProp = boolean | 'break' | 'verbose' | 'visualize' | 'profile';

@hanzogui/web/types/types.d.ts

DedupedTheme

type

export type DedupedTheme = { names: string[]; theme: ThemeParsed; };

@hanzogui/web/types/types.d.ts

DedupedThemes

type

export type DedupedThemes = DedupedTheme[];

@hanzogui/web/types/types.d.ts

DeepVariableObject

type

export type DeepVariableObject<A extends DeepTokenObject> = { [Key in keyof A]: A[Key] extends string | number ? Variable<A[Key]> : A[Key] extends DeepTokenObject ? DeepVariableObject<A[Key]> : never; };

@hanzogui/web/types/createVariables.d.ts

defaultMediaImportance

value

export declare const defaultMediaImportance: number;

@hanzogui/web/types/helpers/pseudoDescriptors.d.ts

didGetVariableValue

value

export declare const didGetVariableValue: () => boolean;

@hanzogui/web/types/createVariable.d.ts

Display

type

Which layout algorithm runs. CSS's own selector, and the one place a layout mode is named — there is no second prop and no component that means `grid` by existing. On web every value is the browser's. On native, Yoga has Flex, None and Contents and nothing else, so `grid` and `inline-grid` cross as `flex` (expandStyle.ts): a grid with no template fills one implicit column top to bottom, which is what a flex column does, so a one-dimensional grid arrives intact. Two-dimensional placement has no flex equivalent and does not cross — the properties that express it are web-only and are stripped there. The mode does NOT narrow which properties are accepted, and that was tried rather than assumed. A discriminated union on `display` — grid properties `never` unless display is grid, flexDirection `never` when it is — narrows exactly right and rejects exactly the six cases it should. It is not affordable here. These props are ~380 wide and already near TypeScript's ceiling, and any union intersected into them distributes across all of it: placed in GetFinalProps it took @hanzogui/form to TS2590 "union type too complex to represent", and placed on View alone it took @hanzogui/collapsible to the same error. `interface X extends ViewProps` also stops compiling (TS2312), and that is a published idiom. What it would have bought is small: naming a track list without `display: grid` renders a flex column instead of a grid, which you see immediately. The failures worth catching here were the ones you cannot see, and those are closed at runtime instead — grid properties are stripped on native rather than handed to an engine with no grid, and XStack resolves its axis against the mode instead of laying out backwards.

export type Display = 'inherit' | 'none' | 'inline' | 'block' | 'contents' | 'flex' | 'inline-flex' | 'grid' | 'inline-grid' | 'list-item';

@hanzogui/web/types/types.d.ts

DisposeFn

type

export type DisposeFn = () => void;

@hanzogui/web/types/types.d.ts

DivAttributes

type

export type DivAttributes = HTMLAttributes<HTMLDivElement>;

@hanzogui/web/types/types.d.ts

ensureThemeVariable

value

export declare function ensureThemeVariable(theme: any, key: string): void;

@hanzogui/web/types/helpers/themes.d.ts

EventHandler

type

export type EventHandler<E extends Events> = (event: E) => void;

@hanzogui/helpers/types/composeEventHandlers.d.ts

ExplicitNativePlatform

type

export type ExplicitNativePlatform = Exclude<NativePlatform, 'mobile'>;

@hanzogui/helpers/types/shouldRenderNativePlatform.d.ts

ExtendBaseStackProps

type

export interface ExtendBaseStackProps { }

@hanzogui/web/types/types.d.ts

ExtendBaseTextProps

type

export interface ExtendBaseTextProps { }

@hanzogui/web/types/types.d.ts

extractPseudoState

value

Extracts pseudo state from GuiComponentState for storage in prevPseudoState

export declare function extractPseudoState(state: GuiComponentState): PseudoState;

@hanzogui/web/types/helpers/pseudoTransitions.d.ts

Falsy

type

`StyleProp` copied from React Native: Exported to fix https://github.com/hanzoai/gui/issues/1258

export type Falsy = undefined | null | false | '';

@hanzogui/web/types/types.d.ts

FillInFont

type

export type FillInFont<A extends GenericFont, DefaultKeys extends string | number> = { family: string; lineHeight: FillInFontValues<A, 'lineHeight', DefaultKeys>; weight: FillInFontValues<A, 'weight', DefaultKeys>; letterSpacing: FillInFontValues<A, 'letterSpacing', DefaultKeys>; size: FillInFontValues<A, 'size', DefaultKeys>; style: FillInFontValues<A, 'style', DefaultKeys>; transform: FillInFontValues<A, 'transform', DefaultKeys>; color: FillInFontValues<A, 'color', DefaultKeys>; face: Partial<A['face']>; };

@hanzogui/web/types/types.d.ts

FilterValue

type

export type FilterValue = FilterPreset | (string & {});

@hanzogui/web/types/types.d.ts

fixStyles

value

export declare function fixStyles(style: Record<string, any>): void;

@hanzogui/web/types/helpers/expandStyles.d.ts

Font

type

export type Font = ParseFont<Fonts>;

@hanzogui/web/types/types.d.ts

FONT_DATA_ATTRIBUTE_NAME

value

export declare const FONT_DATA_ATTRIBUTE_NAME = "data-hanzogui-font";

@hanzogui/web/types/constants/constants.d.ts

FontColorTokens

type

export type FontColorTokens = FontColorTokenBase | number | TokenWithOpacity;

@hanzogui/web/types/types.d.ts

FontFamilyTokens

type

export type FontFamilyTokens = GetTokenString<GetTokenFontKeysFor<'family'>>;

@hanzogui/web/types/types.d.ts

FontKeys

type

export type FontKeys = 'fontFamily';

@hanzogui/web/types/types.d.ts

FontLanguage

value

export declare function FontLanguage({ children, ...props }: FontLanguageProps): import("react").JSX.Element; export declare namespace FontLanguage { var displayName: string; }

@hanzogui/web/types/views/FontLanguage.d.ts

FontLanguageProps

type

export type FontLanguageProps = LanguageContextType & { children?: React.ReactNode; };

@hanzogui/web/types/types.d.ts

FontLanguages

type

export type FontLanguages = ArrayIntersection<GuiConfig['fontLanguages']>;

@hanzogui/web/types/types.d.ts

FontLetterSpacingKeys

type

export type FontLetterSpacingKeys = 'letterSpacing';

@hanzogui/web/types/types.d.ts

FontLetterSpacingTokens

type

export type FontLetterSpacingTokens = `$${GetTokenFontKeysFor<'letterSpacing'>}` | number | RemString;

@hanzogui/web/types/types.d.ts

FontLetterSpacingVariantSpreadFunction

type

export type FontLetterSpacingVariantSpreadFunction<A extends PropLike> = VariantSpreadFunction<A, FontLetterSpacingTokens>;

@hanzogui/web/types/types.d.ts

FontLineHeightTokens

type

export type FontLineHeightTokens = `$${GetTokenFontKeysFor<'lineHeight'>}` | number | RemString;

@hanzogui/web/types/types.d.ts

FontLineHeightVariantSpreadFunction

type

export type FontLineHeightVariantSpreadFunction<A extends PropLike> = VariantSpreadFunction<A, FontLineHeightTokens>;

@hanzogui/web/types/types.d.ts

Fonts

type

export type Fonts = DefaultFont extends string ? GuiConfig['fonts'][DefaultFont] : never;

@hanzogui/web/types/types.d.ts

FontSizeKeys

type

export type FontSizeKeys = 'fontSize';

@hanzogui/web/types/types.d.ts

FontSizeTokens

type

export type FontSizeTokens = GetTokenString<GetTokenFontKeysFor<'size'>> | number | RemString;

@hanzogui/web/types/types.d.ts

FontSizeVariantSpreadFunction

type

export type FontSizeVariantSpreadFunction<A extends PropLike> = VariantSpreadFunction<A, FontSizeTokens>;

@hanzogui/web/types/types.d.ts

FontStyleTokens

type

export type FontStyleTokens = `$${GetTokenFontKeysFor<'style'>}` | RNTextStyle['fontStyle'];

@hanzogui/web/types/types.d.ts

FontStyleVariantSpreadFunction

type

export type FontStyleVariantSpreadFunction<A extends PropLike> = VariantSpreadFunction<A, FontStyleTokens>;

@hanzogui/web/types/types.d.ts

FontTokens

type

export type FontTokens = GetTokenString<keyof GuiConfig['fonts']>;

@hanzogui/web/types/types.d.ts

FontTransformTokens

type

export type FontTransformTokens = `$${GetTokenFontKeysFor<'transform'>}` | RNTextStyle['textTransform'];

@hanzogui/web/types/types.d.ts

FontTransformVariantSpreadFunction

type

export type FontTransformVariantSpreadFunction<A extends PropLike> = VariantSpreadFunction<A, FontTransformTokens>;

@hanzogui/web/types/types.d.ts

FontWeightKeys

type

export type FontWeightKeys = 'fontWeight';

@hanzogui/web/types/types.d.ts

FontWeightTokens

type

export type FontWeightTokens = `$${GetTokenFontKeysFor<'weight'>}` | FontWeightValues;

@hanzogui/web/types/types.d.ts

FontWeightValues

type

export type FontWeightValues = `${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}00` | 'bold' | 'normal';

@hanzogui/web/types/types.d.ts

forceUpdateThemes

value

export declare const forceUpdateThemes: () => void;

@hanzogui/web/types/hooks/useThemeState.d.ts

GenericFont

type

export type GenericFont<Key extends GenericFontKey = GenericFontKey> = { size: { [key in Key]: number | Variable; }; family?: string | Variable; lineHeight?: Partial<{ [key in Key]: number | Variable; }> | undefined; letterSpacing?: Partial<{ [key in Key]: number | Variable; }> | undefined; weight?: Partial<{ [key in Key]: number | string | Variable; }> | undefined; style?: Partial<{ [key in Key]: RNTextStyle['fontStyle'] | Variable; }> | undefined; transform?: Partial<{ [key in Key]: RNTextStyle['textTransform'] | Variable; }> | undefined; color?: Partial<{ [key in Key]: string | Variable; }> | undefined; face?: Partial<{ [key in FontWeightValues]: { normal?: string; italic?: string; }; }> | undefined; };

@hanzogui/web/types/types.d.ts

GenericFonts

type

export type GenericFonts = Record<string, GenericFont>;

@hanzogui/web/types/types.d.ts

GenericGuiConfig

type

export type GenericGuiConfig = CreateGuiConfig<GenericTokens, GenericThemes, GenericShorthands, GenericMedia, GenericAnimations, GenericFonts>;

@hanzogui/web/types/types.d.ts

GenericGuiSettings

type

export interface GenericGuiSettings { /** * controls style semantics where React Native/Yoga and CSS differ. * * - "legacy": preserves Gui v1 flex expansion. * - "react-native": follows React Native/Yoga flex and raw numeric lineHeight semantics. * - "web": follows CSS flex and unitless numeric lineHeight semantics. * * @default "web" */ styleCompat?: 'legacy' | 'react-native' | 'web'; /** * When true, Gui will always prefer a more specific style prop over a * less specific one. * * By default, Gui processes all style props in order of definition on the * object. This is a bit strange to most people, but it gets around many * annoying issues with specificity. You can see our docs on this here: * https://hanzogui.dev/docs/intro/styles#style-order-is-important * * But this can be confusing in simple cases, like when you do: * * <View paddingTop={0} padding={10} /> * * This would set paddingTop ultimately to be 10, because padding comes after * paddingTop. When this setting is set to true, paddingTop will always beat * padding, because it is more specific. …

@hanzogui/web/types/types.d.ts

GenericProps

type

Preserves prop ordering, so that the order most closely matches the last spread objects Useful for having { ...defaultProps, ...props } that ensure props ordering is always kept Honestly this is somehwat backwards logically from Object.assign, reason was that we typically are merging defaultProps, givenProps, but we started using it elsewhere and now its a bit confusing Should look into refactoring this to match common usage Merges sub-objects if they start are pseudo-keys or media-key-like (start with "$") Given: mergeProps({ a: 1, b: 2 }, { b: 1, a: 2 }) The final key order will be: b, a

export type GenericProps = Record<string, any>;

@hanzogui/web/types/helpers/mergeProps.d.ts

GenericShorthands

type

export type GenericShorthands = {};

@hanzogui/web/types/types.d.ts

GenericStackVariants

type

export type GenericStackVariants = VariantDefinitionFromProps<StackNonStyleProps & StackStyle, any>;

@hanzogui/web/types/types.d.ts

GenericTextVariants

type

export type GenericTextVariants = VariantDefinitionFromProps<TextProps, any>;

@hanzogui/web/types/types.d.ts

GenericVariantDefinitions

type

export type GenericVariantDefinitions = { [key: string]: { [key: string]: ((a: any, b: any) => any) | { [key: string]: any; }; }; };

@hanzogui/web/types/types.d.ts

GestureReponderEvent

type

export type GestureReponderEvent = Exclude<View['props']['onResponderMove'], void> extends (event: infer Event) => void ? Event : never;

@hanzogui/web/types/types.d.ts

GetAnimationKeys

type

export type GetAnimationKeys<A extends GenericGuiConfig> = keyof A['animations'];

@hanzogui/web/types/types.d.ts

GetBaseStyles

type

export type GetBaseStyles<A, B> = A extends { __tama: [any, any, any, infer C, any, any]; } ? B extends { isText: true; } | { isInput: true; } ? C & TextStylePropsBase : C : B extends { isText: true; } ? TextStylePropsBase : B extends { isInput: true; } ? TextStylePropsBase : StackStyleBase;

@hanzogui/web/types/types.d.ts

getConfig

value

export declare const getConfig: () => GuiInternalConfig;

@hanzogui/web/types/config.d.ts

GetCSS

type

export type GetCSS = (opts?: { separator?: string; exclude?: 'themes' | 'design-system' | null; sinceLastCall?: boolean; }) => string;

@hanzogui/web/types/types.d.ts

getCSSStylesAtomic

value

export declare function getCSSStylesAtomic(style: ViewStyleWithPseudos): StyleObject[];

@hanzogui/web/types/helpers/getCSSStylesAtomic.d.ts

getDefaultProps

value

export declare const getDefaultProps: (staticConfig: StaticConfig, propsComponentName?: string) => Record<string, any> | undefined;

@hanzogui/web/types/helpers/getDefaultProps.d.ts

getExpandedShorthand

value

export declare function getExpandedShorthand(propKey: string, props: object): any;

@hanzogui/web/types/helpers/getExpandedShorthands.d.ts

getExpandedShorthands

value

@deprecated use useProps instead

export declare function getExpandedShorthands<A extends object>(props: A): Omit<A, keyof Shorthands>;

@hanzogui/web/types/helpers/getExpandedShorthands.d.ts

GetFinalProps

type

export type GetFinalProps<NonStyleProps, StylePropsBase, Variants> = Omit<NonStyleProps, keyof StylePropsBase | keyof Variants> & (StylePropsBase extends object ? WithThemeShorthandsPseudosMedia<StylePropsBase, Variants> : {});

@hanzogui/web/types/types.d.ts

getFontFamilyFromNameOrVariable

value

export declare function getFontFamilyFromNameOrVariable(input: any, conf: GuiInternalConfig): string | undefined;

@hanzogui/web/types/helpers/propMapper.d.ts

getFontsForLanguage

value

export declare function getFontsForLanguage(fonts: GenericFonts, language: LanguageContextType): any;

@hanzogui/web/types/helpers/getVariantExtras.d.ts

getMedia

value

export declare const getMedia: () => MediaQueryState;

@hanzogui/web/types/helpers/mediaState.d.ts

GetNonStyledProps

type

export type GetNonStyledProps<A extends StylableComponent> = A extends { __tama: [any, any, infer B, any, any, any]; } ? B : GuiComponentPropsBaseBase & GetProps<A>;

@hanzogui/web/types/types.d.ts

getPlatformDriver

value

export declare function getPlatformDriver(): PlatformDriver | null;

@hanzogui/constants/types/platformDriver.d.ts

GetProps

type

export type GetProps<A extends StylableComponent> = A extends { __tama: [ infer Props, any, infer NonStyledProps, infer BaseStyles, infer VariantProps, any ]; } ? Props extends TamaDefer ? GetFinalProps<NonStyledProps, BaseStyles, VariantProps> : Props : InferGenericComponentProps<A>;

@hanzogui/web/types/types.d.ts

getReactNativeConfig

value

export declare function getReactNativeConfig(Component: any): Partial<StaticConfig> | { isReactNative: true; } | null | undefined;

@hanzogui/web/types/setupReactNative.d.ts

GetRef

type

export type GetRef<C> = C extends GuiComponent<any, infer Ref> ? Ref : C extends new (props: any) => Component ? InstanceType<C> : C extends abstract new (...args: any) => any ? InstanceType<C> : C extends Component ? C : (C extends JSXElementConstructor<{ ref?: infer R; }> ? R : C extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElements[C]['ref'] : unknown) extends Ref<infer T> | string | undefined ? T : unknown;

@hanzogui/web/types/interfaces/GetRef.d.ts

getRgba

value

export declare const getRgba: (color: string) => { r: number; g: number; b: number; a: number; } | undefined;

@hanzogui/web/types/helpers/normalizeColor.d.ts

getSetting

value

export declare const getSetting: <Key extends keyof GenericGuiSettings>(key: Key) => GenericGuiSettings[Key];

@hanzogui/web/types/config.d.ts

getShorthandValue

value

export declare const getShorthandValue: (props: Record<string, any>, key: string) => any;

@hanzogui/web/types/helpers/getShorthandValue.d.ts

getSplitStyles

value

export declare const getSplitStyles: StyleSplitter;

@hanzogui/web/types/helpers/getSplitStyles.d.ts

GetStaticConfig

type

export type GetStaticConfig<A, Extra = {}> = A extends { __tama: [any, any, any, any, any, infer B]; } ? B & Extra : Extra;

@hanzogui/web/types/types.d.ts

getStyleAtomic

value

export declare const getStyleAtomic: (style: ViewStyleWithPseudos, pseudo?: PseudoDescriptor) => StyleObject[];

@hanzogui/web/types/helpers/getCSSStylesAtomic.d.ts

getStyleCompat

value

export declare function getStyleCompat(): StyleCompat;

@hanzogui/web/types/config.d.ts

GetStyledVariants

type

export type GetStyledVariants<A> = A extends { __tama: [any, any, any, any, infer B, any]; } ? B : {};

@hanzogui/web/types/types.d.ts

GetStyleResult

type

export type GetStyleResult = { pseudos?: PseudoStyles | null; style: ViewStyle | null; classNames: ClassNamesObject; rulesToInsert: RulesToInsert; viewProps: (StackNonStyleProps & StackStyle) & Record<string, any>; fontFamily: string | undefined; space?: any; hasMedia: boolean | Set<string>; dynamicThemeAccess?: boolean; pseudoGroups?: Set<string>; mediaGroups?: Set<string>; overriddenContextProps?: Record<string, any>; pseudoTransitions?: PseudoTransitions | null; effectiveTransition?: TransitionProp | null; };

@hanzogui/web/types/types.d.ts

GetStyleState

type

export type GetStyleState = { style: TextStyle | null; usedKeys: Record<string, number>; classNames: ClassNamesObject; staticConfig: StaticConfig; theme: ThemeParsed; props: Record<string, any>; context?: ComponentContextI; viewProps: Record<string, any>; styleProps: SplitStyleProps; componentState: GuiComponentState; conf: GuiInternalConfig; avoidMergeTransform?: boolean; fontFamily?: string; debug?: DebugProp; flatTransforms?: Record<string, any>; overriddenContextProps?: Record<string, any>; originalContextPropValues?: Record<string, any>; tokenProvenance?: Record<string, string>; pseudoTransitions?: PseudoTransitions | null; animationDriver?: AnimationDriver | null; };

@hanzogui/web/types/types.d.ts

getStyleTags

value

export declare function getStyleTags(styles: StyleObject[]): import("react").JSX.Element | undefined;

@hanzogui/web/types/helpers/wrapStyleTags.d.ts

getStyleTokenProvenance

value

export declare function getStyleTokenProvenance(style: object | null | undefined): StyleTokenProvenance | undefined;

@hanzogui/web/types/helpers/styleProvenance.d.ts

getSubStyle

value

export declare const getSubStyle: (styleState: GetStyleState, subKey: string, styleIn: object, avoidMergeTransform?: boolean) => TextStyle;

@hanzogui/web/types/helpers/getSplitStyles.d.ts

getThemeCSSRules

value

export declare function getThemeCSSRules(props: { config: CreateGuiProps; themeName: string; theme: ThemeParsed; names: string[]; hasDarkLight?: boolean; useMutatedVariables?: boolean; }): string[];

@hanzogui/web/types/helpers/getThemeCSSRules.d.ts

getThemedChildren

value

export declare function getThemedChildren(themeState: ThemeState, children: any, props: ThemeComponentPropsOnly, isRoot: boolean | undefined, stateRef: MutableRefObject<{ hasEverThemed?: boolean | 'wrapped'; }>, passThrough?: boolean): any;

@hanzogui/web/types/views/Theme.d.ts

getThemes

value

export declare const getThemes: () => { [x: string]: { [x: string]: import("./types.tsx").Variable<any> | import("./types.tsx").Variable<string> | import("./types.tsx").Variable<number> | import("./types.tsx").Variable<import("./types.tsx").PxValue> | import("./types.tsx").Variable<import("./types.tsx").VariableValGeneric>; background?: import("./types.tsx").Variable<any> | import("./types.tsx").Variable<undefined> | import("./types.tsx").Variable<string> | undefined; backgroundHover?: import("./types.tsx").Variable<any> | import("./types.tsx").Variable<undefined> | import("./types.tsx").Variable<string> | undefined; backgroundPress?: import("./types.tsx").Variable<any> | import("./types.tsx").Variable<undefined> | import("./types.tsx").Variable<string> | undefined; backgroundFocus?: import("./types.tsx").Variable<any> | import("./types.tsx").Variable<undefined> | import("./types.tsx").Variable<string> | undefined; color?: import("./types.tsx").Variable<any> | import("./types.tsx").Variable<undefined> | import("./types.tsx").Variable<string> | undefined; colorHover?: import("./types.tsx").Variable<any> | …

@hanzogui/web/types/config.d.ts

GetThemeValueFallbackFor

type

export type GetThemeValueFallbackFor<Setting, StrictValue, SomewhatStrictValue, LooseValue, WebOnlyValue> = Setting extends 'strict' ? StrictValue : Setting extends 'strict-web' ? StrictValue | WebOnlyValue : Setting extends 'somewhat-strict' ? SomewhatStrictValue : Setting extends 'somewhat-strict-web' ? SomewhatStrictValue | WebOnlyValue : LooseValue;

@hanzogui/web/types/types.d.ts

GetThemeValueForKey

type

export type GetThemeValueForKey<K extends string | symbol | number> = ThemeValueGet<K> | ThemeValueFallback | (GuiSettings extends { autocompleteSpecificTokens: infer Val; } ? Val extends true | undefined ? SpecificTokens : never : never);

@hanzogui/web/types/types.d.ts

GetThemeValueSettingForCategory

type

export type GetThemeValueSettingForCategory<Cat extends keyof AllowedStyleValuesSettingPerCategory> = UserAllowedStyleValuesSetting extends AllowedValueSettingBase | undefined ? UserAllowedStyleValuesSetting : UserAllowedStyleValuesSetting extends AllowedStyleValuesSettingPerCategory ? UserAllowedStyleValuesSetting[Cat] : true;

@hanzogui/web/types/types.d.ts

getToken

value

export declare const getToken: (value: Token, group?: keyof Tokens, useVariable?: boolean) => any;

@hanzogui/web/types/config.d.ts

GetTokenFontKeysFor

type

export type GetTokenFontKeysFor<A extends 'size' | 'weight' | 'letterSpacing' | 'family' | 'lineHeight' | 'transform' | 'style' | 'color'> = keyof GuiConfig['fonts']['body'][A];

@hanzogui/web/types/types.d.ts

getTokenForKey

value

export declare const getTokenForKey: (key: string, value: string, styleProps: SplitStyleProps, styleState: Partial<GetStyleState>) => any;

@hanzogui/web/types/helpers/getTokenForKey.d.ts

getTokens

value

export declare const getTokens: ({ prefixed, }?: { /** * Force either with $ or without $ prefix */ prefixed?: boolean; }) => TokensMerged;

@hanzogui/web/types/config.d.ts

GetTokenString

type

export type GetTokenString<A> = A extends `$${string}` ? A : A extends string | number ? `$${A}` : `$${string}`;

@hanzogui/web/types/types.d.ts

getTokenValue

value

export declare const getTokenValue: (value: Token | 'unset' | 'auto', group?: keyof Tokens) => any;

@hanzogui/web/types/config.d.ts

getValueFromIdentifier

value

export declare const getValueFromIdentifier: (identifier: string) => any;

@hanzogui/web/types/Gui.d.ts

getVariable

value

export declare function getVariable(nameOrVariable: Variable | string | any, group?: TokenCategories): any;

@hanzogui/web/types/createVariable.d.ts

getVariableName

value

export declare function getVariableName(v: Variable | any): any;

@hanzogui/web/types/createVariable.d.ts

getVariableValue

value

export declare function getVariableValue(v: Variable | any, group?: TokenCategories): any;

@hanzogui/web/types/createVariable.d.ts

getVariableVariable

value

export declare function getVariableVariable(v: Variable | string | undefined): string | undefined;

@hanzogui/web/types/createVariable.d.ts

getVariantExtras

value

export declare const getVariantExtras: (styleState: GetStyleState) => any;

@hanzogui/web/types/helpers/getVariantExtras.d.ts

GetVariantProps

type

export type GetVariantProps<A extends StylableComponent, IsText extends boolean | undefined> = A extends { __tama: [ infer Props, any, infer NonStyledProps, infer BaseStyles, infer VariantProps, any ]; } ? Props extends TamaDefer ? GetFinalProps<NonStyledProps, BaseStyles, VariantProps> : Props : WithThemeShorthandsPseudosMedia<IsText extends true ? TextStylePropsBase : StackStyleBase>;

@hanzogui/web/types/types.d.ts

GetVariantValues

type

export type GetVariantValues<Key> = Key extends `...${infer VariantSpread}` ? ThemeValueByCategory<VariantSpread> : Key extends 'true' | 'false' ? boolean : Key extends ':string' ? string : Key extends ':boolean' ? boolean : Key extends ':number' ? number : Key;

@hanzogui/web/types/types.d.ts

gridProps

value

export declare const gridProps: { gridAutoColumns: boolean; gridAutoRows: boolean; gridTemplateColumns: boolean; gridTemplateRows: boolean; grid: boolean; gridArea: boolean; gridAutoFlow: boolean; gridColumn: boolean; gridColumnEnd: boolean; gridColumnStart: boolean; gridRow: boolean; gridRowEnd: boolean; gridRowStart: boolean; gridTemplate: boolean; gridTemplateAreas: boolean; justifyItems: boolean; justifySelf: boolean; placeContent: boolean; placeItems: boolean; placeSelf: boolean; };

@hanzogui/helpers/types/webOnlyStyleProps.d.ts

gridUnitless

value

export declare const gridUnitless: { grid: boolean; gridArea: boolean; gridAutoFlow: boolean; gridColumn: boolean; gridColumnEnd: boolean; gridColumnStart: boolean; gridRow: boolean; gridRowEnd: boolean; gridRowStart: boolean; gridTemplate: boolean; gridTemplateAreas: boolean; justifyItems: boolean; justifySelf: boolean; placeContent: boolean; placeItems: boolean; placeSelf: boolean; };

@hanzogui/helpers/types/webOnlyStyleProps.d.ts

GroupContext

value

export declare const GroupContext: import("react").Context<AllGroupContexts | null>;

@hanzogui/web/types/contexts/GroupContext.d.ts

GroupMediaKeys

type

export type GroupMediaKeys = `$group-${GroupNames}` | `$group-${GroupNames}-${ParentMediaStates}` | `$group-${GroupNames}-${MediaQueryKey}` | `$group-${GroupNames}-${MediaQueryKey}-${ParentMediaStates}` | `$group-${ParentMediaStates}` | `$group-${MediaQueryKey}` | `$group-${MediaQueryKey}-${ParentMediaStates}`;

@hanzogui/web/types/types.d.ts

GroupNames

type

export type GroupNames = ReturnType<TypeOverride['groupNames']> extends 1 ? never : ReturnType<TypeOverride['groupNames']>;

@hanzogui/web/types/types.d.ts

GroupStateListener

type

export type GroupStateListener = (state: ComponentGroupState) => void;

@hanzogui/web/types/types.d.ts

Gui

value

export declare const Gui: { Helpers: typeof Helpers; get mediaState(): { [x: string]: boolean; [x: number]: boolean; }; get config(): import("./types.tsx").GuiInternalConfig; get insertedRules(): string[]; get allSelectors(): Record<string, string>; get identifierToValue(): Map<string, any>; } | undefined;

@hanzogui/web/types/Gui.d.ts

GuiBaseTheme

type

export type GuiBaseTheme = { background: VariableColorVal; backgroundHover: VariableColorVal; backgroundPress: VariableColorVal; backgroundFocus: VariableColorVal; color: VariableColorVal; colorHover: VariableColorVal; colorPress: VariableColorVal; colorFocus: VariableColorVal; borderColor: VariableColorVal; borderColorHover: VariableColorVal; borderColorPress: VariableColorVal; borderColorFocus: VariableColorVal; shadowColor: VariableColorVal; shadowColorHover: VariableColorVal; shadowColorPress: VariableColorVal; shadowColorFocus: VariableColorVal; };

@hanzogui/web/types/types.d.ts

GuiBuildOptions

type

export interface GuiBuildOptions { /** * module paths you want to compile with hanzogui (for example ['hanzogui']) * */ components?: string[]; /** * relative path to your hanzogui.config.ts */ config?: string; /** * Use the new ThemeBuilder in `@hanzogui/create-theme` to create beautiful theme sets, * see docs at https://hanzogui.dev/docs/guides/theme-builder * This helps you automate generating the build themes typescript file which loads fastere * and has smaller bundle size. */ themeBuilder?: { input: string; output: string; }; /** * Emit design system related CSS during build step for usage with frameworks */ outputCSS?: string | null | false; /** * (Experimental) outputs themes using CSS Nesting https://caniuse.com/css-nesting * Which can cut them in half due to no media query duplication. */ useCSSNesting?: boolean; /** * Gui can follow imports and evaluate them when parsing styles, leading to * higher percent of flattened / optimized views. We normalize this to be the * full path of the file, always ending in ".js". * …

@hanzogui/types/types/index.d.ts

GuiComponent

type

export type GuiComponent<Props = any, Ref = any, NonStyledProps = {}, BaseStyles extends object = {}, Variants = {}, ParentStaticProperties = {}> = ForwardRefExoticComponent<(Props extends TamaDefer ? GetFinalProps<NonStyledProps, BaseStyles, Variants> : Props) & RefAttributes<Ref>> & StaticComponentObject<Props, Ref, NonStyledProps, BaseStyles, Variants, ParentStaticProperties> & Omit<ParentStaticProperties, 'staticConfig' | 'styleable'> & { __tama: [Props, Ref, NonStyledProps, BaseStyles, Variants, ParentStaticProperties]; };

@hanzogui/web/types/types.d.ts

GuiComponentEvents

type

export type GuiComponentEvents = { cancelable?: boolean | undefined; disabled?: any; hitSlop?: any; delayLongPress?: any; delayPressIn?: any; delayPressOut?: any; focusable?: any; minPressDuration?: number | undefined; onPressIn: ((e: any) => void) | undefined; onPress: ((e: any) => void) | undefined; onLongPress?: ((e: any) => void) | undefined; onMouseEnter?: ((e: any) => void) | undefined; onMouseLeave?: ((e: any) => void) | undefined; onPressOut: ((e: any) => void) | undefined; onFocus?: ((e: any) => void) | undefined; onBlur?: ((e: any) => void) | undefined; };

@hanzogui/web/types/interfaces/GuiComponentEvents.d.ts

GuiComponentExpectingVariants

type

export type GuiComponentExpectingVariants<Props = {}, Variants extends object = {}> = GuiComponent<Props, any, any, any, Variants>;

@hanzogui/web/types/types.d.ts

GuiComponentPropsBase

type

export interface GuiComponentPropsBase extends GuiComponentPropsBaseBase, WebOnlyPressEvents { }

@hanzogui/web/types/types.d.ts

GuiComponentPropsBaseBase

type

export type GuiComponentPropsBaseBase = { target?: string; htmlFor?: string; /** * When truthy passes through all props to a single child element, and avoids rendering its own element. * Must pass just one child React element that will receive all the props. * * The option "except-style" will avoid passing any style related props. * * The option "web" will map all React Native style props to web props (onPress becomes onClick). * * The option "except-style-web" combines the except-style and web options. * */ asChild?: boolean | 'except-style' | 'except-style-web' | 'web'; dangerouslySetInnerHTML?: { __html: string; }; children?: any | any[]; debug?: DebugProp; disabled?: boolean; /** * Same as the web className property, useful for applying styles from CSS on web only */ className?: string; /** * If given a theme it will only apply to this element, instead of passing down to children */ themeShallow?: boolean; /** * If true, component themes will not be applied */ unstyled?: boolean; /** * Same as the web id property for …

@hanzogui/web/types/types.d.ts

GuiComponentState

type

export type GuiComponentState = { unmounted: boolean | 'should-enter'; disabled?: boolean; hover?: boolean; press?: boolean; pressIn?: boolean; focus?: boolean; focusVisible?: boolean; focusWithin?: boolean; transition?: null | { style?: any; avoidClasses?: boolean; }; group?: Record<string, ChildGroupState>; hasDynGroupChildren?: boolean; };

@hanzogui/web/types/types.d.ts

GuiComponentStateRef

type

export type GuiComponentStateRef = { startedUnhydrated: boolean; host?: GuiElement; composedRef?: (x: GuiElement) => void; willHydrate?: boolean; hasMeasured?: boolean; hasAnimated?: boolean; themeShallow?: boolean; hasEverThemed?: boolean | 'wrapped'; hasEverResetPresence?: boolean; hasHadEvents?: boolean; hasRealPressEvents?: boolean; isListeningToTheme?: boolean; unPress?: Function; setStateShallow?: ComponentSetStateShallow; baseSetStateShallow?: ComponentSetStateShallow; useStyleListener?: UseStyleListener; updateStyleListener?: () => void; group?: ComponentGroupEmitter; nextState?: GuiComponentState; nextMedia?: UseMediaState; mediaEmitCleanup?: () => void; prevPseudoState?: { hover?: boolean; press?: boolean; focus?: boolean; groups?: Record<string, { hover?: boolean; press?: boolean; focus?: boolean; }>; }; };

@hanzogui/web/types/types.d.ts

GuiConfig

type

export interface GuiConfig extends Omit<GenericGuiConfig, keyof GuiCustomConfig>, GuiCustomConfig { }

@hanzogui/web/types/types.d.ts

GuiCustomConfig

type

export interface GuiCustomConfig { }

@hanzogui/web/types/types.d.ts

GuiElement

type

Cross-platform element ref type. On web, includes GuiElementMethods (measure, focus, blur) which Gui adds at runtime. On native, View already has these via NativeMethods.

export type GuiElement = (HTMLElement & GuiElementMethods) | View;

@hanzogui/web/types/types.d.ts

GuiElementMethods

type

Methods added to element refs that work across web and native. On web these are added at runtime to HTMLElements. On native these exist on View already.

export interface GuiElementMethods { measure(callback: MeasureOnSuccessCallback): void; measureInWindow(callback: MeasureInWindowOnSuccessCallback): void; measureLayout(relativeToNativeNode: View | HTMLElement, onSuccess: MeasureLayoutOnSuccessCallback, onFail?: () => void): void; focus(): void; blur(): void; }

@hanzogui/web/types/types.d.ts

GuiInternalConfig

type

export type GuiInternalConfig<A extends GenericTokens = GenericTokens, B extends GenericThemes = GenericThemes, C extends GenericShorthands = GenericShorthands, D extends GenericMedia = GenericMedia, E extends GenericAnimations = GenericAnimations, F extends GenericFonts = GenericFonts, G extends GenericGuiSettings = GenericGuiSettings, AnimDriverKeys extends string = string> = Omit<CreateGuiProps, keyof GenericGuiConfig> & Omit<CreateGuiConfig<A, B, C, D, E, F, G, AnimDriverKeys>, 'tokens'> & { tokens: Tokenify<A>; tokensParsed: Tokenify<A>; themeConfig: any; fontsParsed: GenericFonts; getCSS: GetCSS; getNewCSS: GetCSS; parsed: boolean; inverseShorthands: Record<string, string>; userShorthands: C; reactNative?: any; fontSizeTokens: Set<string>; specificTokens: Record<string, Variable>; settings: Omit<GenericGuiSettings, keyof G> & G; defaultFont?: string; defaultFontToken: `${string}`; animationDrivers?: Record<string, AnimationDriver>; };

@hanzogui/web/types/types.d.ts

GuiProjectInfo

type

export type GuiProjectInfo = { components: LoadedComponents[]; hanzoguiConfig: GuiInternalConfig; nameToPaths: NameToPaths; };

@hanzogui/web/types/types.d.ts

GuiProvider

value

export declare function GuiProvider({ children, disableInjectCSS, config, className, defaultTheme: defaultThemeProp, reset, insets, }: GuiProviderProps): React.JSX.Element;

@hanzogui/web/types/views/GuiProvider.d.ts

GuiProviderProps

type

export type GuiProviderProps = Omit<ThemeProviderProps, 'children'> & { config?: GuiInternalConfig; disableInjectCSS?: boolean; children?: ReactNode; insets?: { top: number; right: number; bottom: number; left: number; }; };

@hanzogui/web/types/types.d.ts

GuiRoot

value

Applies default font class and CSS variable inheritance via display:contents. Used by GuiProvider at the root and by portals to re-establish font scope. Pass trackMount to also handle the t_unmounted class for CSS animation gating.

export declare function GuiRoot({ children, theme, isRootRoot, passThrough, style, }: { children: React.ReactNode; theme: ThemeName; isRootRoot?: boolean; passThrough?: boolean; style?: React.CSSProperties; }): React.JSX.Element;

@hanzogui/web/types/views/GuiRoot.d.ts

GuiSettings

type

export type GuiSettings = GuiConfig['settings'];

@hanzogui/web/types/types.d.ts

GuiTextElement

type

export type GuiTextElement = (HTMLElement & GuiElementMethods) | RNText;

@hanzogui/web/types/types.d.ts

GuiWebElement

type

Web-specific element type for platform-specific .tsx files. Use when you need HTMLElement subtype properties (e.g., selectionStart on HTMLInputElement) that aren't on the cross-platform GuiElement type. @example const ref = useRef<GuiWebElement<HTMLInputElement>>(null) // ref.current has both HTMLInputElement props and GuiElementMethods

export type GuiWebElement<T extends HTMLElement = HTMLElement> = T & GuiElementMethods;

@hanzogui/web/types/types.d.ts

hooks

value

export declare const hooks: InternalHooks;

@hanzogui/web/types/setupHooks.d.ts

InferGenericComponentProps

type

export type InferGenericComponentProps<A> = A extends ComponentType<infer Props> ? Props : A extends ForwardRefExoticComponent<infer P> ? P : A extends ReactComponentWithRef<infer P, any> ? P : A extends new (props: infer Props) => any ? Props : {};

@hanzogui/web/types/types.d.ts

InferGuiConfig

type

export type InferGuiConfig<Conf> = Conf extends ConfProps<infer A, infer B, infer C, infer D, infer E, infer F, infer H> ? GuiInternalConfig<A extends GenericTokens ? A : EmptyTokens, B extends GenericThemes ? B : EmptyThemes, C extends GenericShorthands ? C : EmptyShorthands, D extends GenericMedia ? D : EmptyMedia, ExtractAnimationConfig<E>, F extends GenericFonts ? F : EmptyFonts, H extends GenericGuiSettings ? H : EmptyGuiSettings, ExtractAnimationDriverKeys<E>> : unknown;

@hanzogui/web/types/types.d.ts

InferStyledProps

type

export type InferStyledProps<A extends StylableComponent, B extends StaticConfigPublic> = A extends { __tama: any; } ? GetProps<A> : GetFinalProps<InferGenericComponentProps<A>, GetBaseStyles<{}, B>, {}>;

@hanzogui/web/types/types.d.ts

InferStyleProps

type

Like InferStyledProps but returns only style props (no non-styled props or variants).

export type InferStyleProps<A extends StylableComponent, B extends StaticConfigPublic> = WithThemeShorthandsPseudosMedia<GetBaseStyles<A, B>, {}>;

@hanzogui/web/types/types.d.ts

insertFont

value

Runtime dynamic insert font

export declare function insertFont<A extends GenericFont>(name: string, fontIn: A): DeepVariableObject<A>;

@hanzogui/web/types/insertFont.d.ts

insertStyleRules

value

export declare function insertStyleRules(rulesToInsert: RulesToInsert): void;

@hanzogui/web/types/helpers/insertStyleRule.d.ts

Insets

type

export interface Insets { top?: number; left?: number; bottom?: number; right?: number; }

@hanzogui/web/types/types.d.ts

isAndroid

value

export declare const isAndroid: boolean;

@hanzogui/constants/types/constants.d.ts

isBrowser

value

export declare const isBrowser: boolean;

@hanzogui/constants/types/constants.d.ts

isChrome

value

export declare const isChrome: boolean;

@hanzogui/constants/types/constants.d.ts

isClient

value

export declare const isClient: boolean;

@hanzogui/constants/types/constants.d.ts

isEqualShallow

value

export declare function isEqualShallow(prev: Record<string, unknown>, next: Record<string, unknown>): boolean;

@hanzogui/is-equal-shallow/types/index.d.ts

isGuiComponent

value

export declare function isGuiComponent<A>(comp: A, name?: string): comp is A & { staticConfig: StaticConfig; };

@hanzogui/web/types/helpers/isGuiComponent.d.ts

isGuiElement

value

export declare const isGuiElement: (child: any, name?: string) => child is React.ReactElement<any> & { type: { staticConfig: StaticConfig; }; };

@hanzogui/web/types/helpers/isGuiElement.d.ts

isIos

value

export declare const isIos: boolean;

@hanzogui/constants/types/constants.d.ts

IsMediaType

type

export type IsMediaType = boolean | 'platform' | 'theme' | 'group';

@hanzogui/web/types/types.d.ts

isNativeDesktop

value

export declare const isNativeDesktop: boolean;

@hanzogui/constants/types/constants.d.ts

isServer

value

export declare const isServer: boolean;

@hanzogui/constants/types/constants.d.ts

isTouchable

value

export declare const isTouchable: boolean;

@hanzogui/constants/types/constants.d.ts

isTV

value

export declare const isTV: boolean;

@hanzogui/constants/types/constants.d.ts

isVariable

value

export declare function isVariable(v: Variable | any): v is Variable;

@hanzogui/web/types/createVariable.d.ts

isWeb

value

export declare const isWeb: boolean;

@hanzogui/constants/types/constants.d.ts

isWebTouchable

value

export declare const isWebTouchable: boolean;

@hanzogui/constants/types/constants.d.ts

isWindowDefined

value

@deprecated use isBrowser instead

export declare const isWindowDefined: boolean;

@hanzogui/constants/types/constants.d.ts

LanguageContextType

type

export type LanguageContextType = Partial<{ [key in FontFamilies]: FontLanguages | 'default'; }>;

@hanzogui/web/types/types.d.ts

LayoutEvent

type

export type LayoutEvent = { nativeEvent: { layout: LayoutValue; target: any; }; timeStamp: number; };

@hanzogui/web/types/types.d.ts

LineHeightKeys

type

export type LineHeightKeys = 'lineHeight';

@hanzogui/web/types/types.d.ts

loadAnimationDriver

value

Dynamically load an animation driver at runtime. Useful for lazy loading heavier animation drivers after initial page load. @example ```tsx // import loadAnimationDriver from hanzogui // import createAnimations from your preferred driver (e.g. animations-reanimated) const driver = createAnimations({ bouncy: { type: 'spring', damping: 10 } }) loadAnimationDriver('spring', driver) ```

export declare function loadAnimationDriver(name: string, driver: AnimationDriver): void;

@hanzogui/web/types/config.d.ts

LoadedComponents

type

export type LoadedComponents = { moduleName: string; nameToInfo: Record<string, { staticConfig: StaticConfig; }>; };

@hanzogui/web/types/types.d.ts

Longhands

type

export type Longhands = NarrowShorthands[keyof NarrowShorthands];

@hanzogui/web/types/types.d.ts

MakeVariable

type

export type MakeVariable<A = any> = A extends string | number ? Variable<A> : A;

@hanzogui/web/types/types.d.ts

matchMedia

value

export declare const matchMedia: typeof matchMediaFallback | (((query: string) => globalThis.MediaQueryList) & typeof globalThis.matchMedia);

@hanzogui/web/types/helpers/matchMedia.d.ts

MatchMedia

type

export type MatchMedia = (query: string) => MediaQueryList;

@hanzogui/web/types/types.d.ts

MaybeGuiComponent

type

export type MaybeGuiComponent<A = any> = GuiComponent<A> | React.FC<A>;

@hanzogui/web/types/types.d.ts

Media

type

export type Media = GuiConfig['media'];

@hanzogui/web/types/types.d.ts

MEDIA_SEP

value

export declare const MEDIA_SEP = "_";

@hanzogui/web/types/helpers/createMediaStyle.d.ts

mediaKeyMatch

value

export declare function mediaKeyMatch(key: string, dimensions: { width: number; height: number; }): boolean;

@hanzogui/web/types/hooks/useMedia.d.ts

mediaObjectToString

value

export declare function mediaObjectToString(query: string | MediaQueryObject): string;

@hanzogui/web/types/helpers/mediaObjectToString.d.ts

MediaPropKeys

type

export type MediaPropKeys = `$${MediaQueryKey}`;

@hanzogui/web/types/types.d.ts

MediaQueries

type

export type MediaQueries = { [key in MediaQueryKey]: MediaQueryObject; };

@hanzogui/web/types/types.d.ts

mediaQueryConfig

value

export declare const mediaQueryConfig: MediaQueries;

@hanzogui/web/types/helpers/mediaState.d.ts

MediaQueryKey

type

export type MediaQueryKey = keyof Media;

@hanzogui/web/types/types.d.ts

MediaQueryList

type

export interface MediaQueryList { addListener(listener?: any): void; removeListener(listener?: any): void; match?: (query: string, dimensions: { width: number; height: number; }) => boolean; matches: boolean; }

@hanzogui/web/types/types.d.ts

MediaQueryObject

type

export type MediaQueryObject = { [key: string]: string | number | string; };

@hanzogui/web/types/types.d.ts

MediaQueryState

type

export type MediaQueryState = { [key in MediaQueryKey]: boolean; };

@hanzogui/web/types/types.d.ts

mediaState

value

export declare let mediaState: MediaQueryState;

@hanzogui/web/types/helpers/mediaState.d.ts

MediaStyleObject

type

export type MediaStyleObject = Omit<StyleObject, 'value'>;

@hanzogui/helpers/types/types.d.ts

mergeComponentProps

value

export declare const mergeComponentProps: (defaultProps: object | null | undefined, contextProps: object | undefined, props: object) => readonly [object, null] | readonly [GenericProps, GenericProps | null];

@hanzogui/web/types/helpers/mergeProps.d.ts

mergeIfNotShallowEqual

value

export declare function mergeIfNotShallowEqual<State extends Record<string, unknown>>(prev: State, next: Partial<State>): State;

@hanzogui/is-equal-shallow/types/index.d.ts

mergeProps

value

export declare const mergeProps: (defaultProps: object, props: object) => GenericProps;

@hanzogui/web/types/helpers/mergeProps.d.ts

mergeSlotStyleProps

value

Merges props with special handling for style, className, ref, and event handlers. Used by Slot and render prop implementations. @param base - Base props (typically from parent/slot) @param overlay - Props to merge on top (typically from child/element) @returns Merged props object (mutates and returns base for perf)

export declare function mergeSlotStyleProps(base: Record<string, any>, overlay: Record<string, any>): Record<string, any>;

@hanzogui/web/types/helpers/mergeSlotStyleProps.d.ts

MISSING_THEME_MESSAGE

value

export declare const MISSING_THEME_MESSAGE: string;

@hanzogui/web/types/constants/constants.d.ts

ModifyGuiComponentStyleProps

type

export type ModifyGuiComponentStyleProps<Comp extends GuiComponent, ChangedProps extends object> = Comp extends GuiComponent<infer A, infer B, infer C, infer D, infer E> ? A extends object ? GuiComponent<Omit<A, keyof ChangedProps> & ChangedProps, B, C, D, E> : never : never;

@hanzogui/web/types/types.d.ts

mutatedAutoVariables

value

export declare const mutatedAutoVariables: Variable[];

@hanzogui/web/types/helpers/registerCSSVariable.d.ts

Narrow

type

export type Narrow<A> = Try<A, [], NarrowRaw<A>>;

@hanzogui/web/types/types.d.ts

NarrowShorthands

type

export type NarrowShorthands = Narrow<Shorthands>;

@hanzogui/web/types/types.d.ts

NativePlatform

type

export type NativePlatform = 'web' | 'mobile' | 'android' | 'ios';

@hanzogui/helpers/types/shouldRenderNativePlatform.d.ts

NativeValue

type

export type NativeValue<Platform extends NativePlatform = NativePlatform> = boolean | Platform | Platform[];

@hanzogui/helpers/types/shouldRenderNativePlatform.d.ts

nonAnimatableStyleProps

value

export declare const nonAnimatableStyleProps: { gridAutoColumns: boolean; gridAutoRows: boolean; gridTemplateColumns: boolean; gridTemplateRows: boolean; grid: boolean; gridArea: boolean; gridAutoFlow: boolean; gridColumn: boolean; gridColumnEnd: boolean; gridColumnStart: boolean; gridRow: boolean; gridRowEnd: boolean; gridRowStart: boolean; gridTemplate: boolean; gridTemplateAreas: boolean; justifyItems: boolean; justifySelf: boolean; placeContent: boolean; placeItems: boolean; placeSelf: boolean; backgroundAttachment?: boolean | undefined; backgroundBlendMode?: boolean | undefined; backgroundClip?: boolean | undefined; backgroundOrigin?: boolean | undefined; backgroundRepeat?: boolean | undefined; borderBottomStyle?: boolean | undefined; borderLeftStyle?: boolean | undefined; borderRightStyle?: boolean | undefined; borderTopStyle?: boolean | undefined; contain?: boolean | undefined; containerType?: boolean | undefined; content?: boolean | undefined; float?: boolean | undefined; maskBorderMode?: boolean | undefined; maskBorderRepeat?: boolean …

@hanzogui/helpers/types/validStyleProps.d.ts

nonAnimatableWebTextProps

value

export declare const nonAnimatableWebTextProps: { whiteSpace: boolean; wordWrap: boolean; textOverflow: boolean; WebkitBoxOrient: boolean; };

@hanzogui/helpers/types/webOnlyStyleProps.d.ts

nonAnimatableWebViewProps

value

export declare const nonAnimatableWebViewProps: { backgroundAttachment: boolean; backgroundBlendMode: boolean; backgroundClip: boolean; backgroundOrigin: boolean; backgroundRepeat: boolean; borderBottomStyle: boolean; borderLeftStyle: boolean; borderRightStyle: boolean; borderTopStyle: boolean; contain: boolean; containerType: boolean; content: boolean; float: boolean; maskBorderMode: boolean; maskBorderRepeat: boolean; maskClip: boolean; maskComposite: boolean; maskMode: boolean; maskOrigin: boolean; maskRepeat: boolean; maskType: boolean; objectFit: boolean; overflowBlock: boolean; overflowInline: boolean; overflowX: boolean; overflowY: boolean; pointerEvents: boolean; scrollbarWidth: boolean; textWrap: boolean; touchAction: boolean; transformStyle: boolean; willChange: boolean; };

@hanzogui/helpers/types/webOnlyStyleProps.d.ts

NonSpecificTokens

type

export type NonSpecificTokens = GetTokenString<keyof Tokens['radius']> | GetTokenString<keyof Tokens['zIndex']> | GetTokenString<keyof Tokens['color']> | GetTokenString<keyof Tokens['space']> | GetTokenString<keyof Tokens['size']>;

@hanzogui/web/types/types.d.ts

normalizeColor

value

export declare const normalizeColor: (color?: string | null, opacity?: number) => string | undefined;

@hanzogui/web/types/helpers/normalizeColor.d.ts

normalizeStyle

value

This is what you want to run before Object.assign() a style onto another. It does the following: 1. Shorthands into longhands, px = paddingHorizontal 2. Expands flex, borderColor and other properties that can expand into sub-parts 3. Normalizes all sub pseudo-media-etc styles

export declare function normalizeStyle(style: Record<string, any>, disableNormalize?: boolean): Record<string, any>;

@hanzogui/web/types/helpers/normalizeStyle.d.ts

normalizeValueWithProperty

value

Some parts adapted from react-native-web Copyright (c) Nicolas Gallagher licensed under the MIT license.

export declare function normalizeValueWithProperty(value: any, property?: string): any;

@hanzogui/web/types/helpers/normalizeValueWithProperty.d.ts

OnlyAllowShorthandsSetting

type

export type OnlyAllowShorthandsSetting = GuiConfig['settings'] extends { onlyAllowShorthands: infer X; } ? X : false;

@hanzogui/web/types/types.d.ts

OnlyShorthandStylePropsSetting

type

export type OnlyShorthandStylePropsSetting = GuiConfig['settings'] extends { onlyShorthandStyleProps: infer X; } ? X : false;

@hanzogui/web/types/types.d.ts

OpacityKeys

type

export type OpacityKeys = 'opacity';

@hanzogui/web/types/types.d.ts

OutlineValue

type

export type OutlineValue = OutlinePreset | (string & {});

@hanzogui/web/types/types.d.ts

parseFont

value

export declare function parseFont<A extends GenericFont>(definition: A): DeepVariableObject<A>;

@hanzogui/web/types/insertFont.d.ts

ParseFont

type

export type ParseFont<A extends GenericFont> = { size: TokenPrefixed<A['size']>; lineHeight: TokenPrefixedIfExists<A['lineHeight']>; letterSpacing: TokenPrefixedIfExists<A['letterSpacing']>; weight: TokenPrefixedIfExists<A['weight']>; family: TokenPrefixedIfExists<A['family']>; style: TokenPrefixedIfExists<A['style']>; transform: TokenPrefixedIfExists<A['transform']>; color: TokenPrefixedIfExists<A['color']>; face: TokenPrefixedIfExists<A['face']>; };

@hanzogui/web/types/types.d.ts

PlatformDriver

type

export interface PlatformDriver { pseudo?: { /** * subscribe a mounted component's host instance to native pseudo-state flips. * the host instance is whatever the renderer's ref resolves to (on * react-native-gpui, the reconciler Instance whose `.id` is the host node id). * returns an unsubscribe. */ subscribe(hostInstance: unknown, listener: (state: PlatformDriverPseudoState) => void): () => void; }; }

@hanzogui/constants/types/platformDriver.d.ts

PlatformDriverPseudoState

type

export interface PlatformDriverPseudoState { hovered: boolean; pressed: boolean; }

@hanzogui/constants/types/platformDriver.d.ts

PlatformMediaKeys

type

export type PlatformMediaKeys = `$platform-${AllPlatforms}`;

@hanzogui/web/types/types.d.ts

PresenceContextProps

type

export interface PresenceContextProps { id: string; isPresent: boolean; register: (id: string) => () => void; onExitComplete?: (id: string) => void; initial?: false | string | string[]; custom?: any; exitVariant?: string | null; enterVariant?: string | null; enterExitVariant?: string | null; }

@hanzogui/web/types/types.d.ts

PROP_SPLIT

value

export declare const PROP_SPLIT = "-";

@hanzogui/web/types/helpers/getSplitStyles.d.ts

PropMappedValue

type

export type PropMappedValue = [string, any, any?][] | undefined;

@hanzogui/web/types/types.d.ts

propMapper

value

export declare const propMapper: PropMapper;

@hanzogui/web/types/helpers/propMapper.d.ts

PropMapper

type

export type PropMapper = (key: string, value: any, state: GetStyleState, disabled: boolean, map: (key: string, val: any, originalVal?: any) => void) => void;

@hanzogui/web/types/types.d.ts

PropsWithoutMediaStyles

type

export type PropsWithoutMediaStyles<A> = { [Key in keyof A as Key extends `$${string}` ? never : Key]?: A[Key]; };

@hanzogui/web/types/hooks/useProps.d.ts

proxyThemesToParents

value

export declare function proxyThemesToParents(dedupedThemes: DedupedThemes): Record<string, ThemeParsed>;

@hanzogui/web/types/helpers/proxyThemeToParents.d.ts

proxyThemeToParents

value

export declare function proxyThemeToParents(themeName: string, theme: ThemeParsed): {};

@hanzogui/web/types/helpers/proxyThemeToParents.d.ts

proxyThemeVariables

value

export declare function proxyThemeVariables<A extends object>(obj: A): A;

@hanzogui/web/types/helpers/proxyThemeVariables.d.ts

PseudoDescriptor

type

export type PseudoDescriptor = { name: string; priority: number; stateKey?: string; selector?: string; };

@hanzogui/web/types/helpers/pseudoDescriptors.d.ts

PseudoDescriptorKey

type

export type PseudoDescriptorKey = keyof typeof pseudoDescriptorsBase;

@hanzogui/web/types/helpers/pseudoDescriptors.d.ts

pseudoDescriptors

value

export declare const pseudoDescriptors: Record<PseudoDescriptorKey | 'enterStyle' | 'exitStyle', PseudoDescriptor>;

@hanzogui/web/types/helpers/pseudoDescriptors.d.ts

PseudoDescriptors

type

export type PseudoDescriptors = { [Key in keyof typeof pseudoDescriptors]: PseudoDescriptor; };

@hanzogui/web/types/helpers/pseudoDescriptors.d.ts

pseudoDescriptorsBase

value

export declare const pseudoDescriptorsBase: { readonly hoverStyle: { readonly name: 'hover'; readonly priority: 2; }; readonly pressStyle: { readonly name: 'active'; readonly stateKey: 'press'; readonly priority: 3; }; readonly focusVisibleStyle: { readonly name: 'focus-visible'; readonly priority: 4; readonly stateKey: 'focusVisible'; }; readonly focusStyle: { readonly name: 'focus'; readonly priority: 4; }; readonly focusWithinStyle: { readonly name: 'focus-within'; readonly priority: 4; readonly stateKey: 'focusWithin'; }; readonly disabledStyle: { readonly name: 'disabled'; readonly priority: 5; readonly stateKey: 'disabled'; }; };

@hanzogui/web/types/helpers/pseudoDescriptors.d.ts

PseudoGroupState

type

export type PseudoGroupState = Pick<GuiComponentState, 'disabled' | 'hover' | 'press' | 'pressIn' | 'focus' | 'focusVisible' | 'focusWithin'>;

@hanzogui/web/types/types.d.ts

pseudoPriorities

value

export declare const pseudoPriorities: { hover: 2; press: 3; focus: 4; focusVisible: 4; focusWithin: 4; disabled: 5; };

@hanzogui/web/types/helpers/pseudoDescriptors.d.ts

PseudoPropKeys

type

export type PseudoPropKeys = keyof WithPseudoProps<any>;

@hanzogui/web/types/types.d.ts

PseudoState

type

Pseudo state for tracking enter/exit transitions

export type PseudoState = { hover?: boolean; press?: boolean; focus?: boolean; groups?: Record<string, { hover?: boolean; press?: boolean; focus?: boolean; }>; };

@hanzogui/web/types/helpers/pseudoTransitions.d.ts

PseudoStyles

type

export type PseudoStyles = { hoverStyle?: ViewStyle; pressStyle?: ViewStyle; focusStyle?: ViewStyle; focusWithinStyle?: ViewStyle; focusVisibleStyle?: ViewStyle; disabledStyle?: ViewStyle; enterStyle?: ViewStyle; exitStyle?: ViewStyle; };

@hanzogui/web/types/types.d.ts

PseudoStyleWithTransition

type

export type PseudoStyleWithTransition<A> = A & { transition?: TransitionProp | null; };

@hanzogui/web/types/types.d.ts

PseudoTransitions

type

export type PseudoTransitions = Partial<Record<keyof WithPseudoProps<any>, TransitionProp | null>> & { [key: `$group-${string}-${'hover' | 'press' | 'focus'}`]: TransitionProp | null | undefined; };

@hanzogui/web/types/types.d.ts

px

value

Helper function to mark a token value as needing px units. Usage: px(100) creates a token that will become "100px" on web, 100 on native. @param value - The numeric value @returns A special object that indicates this value needs px units

export declare function px(value: number): PxValue;

@hanzogui/web/types/createVariable.d.ts

PxValue

type

Type for the px helper object that indicates a token value needs px units

export interface PxValue { val: number; needsPx: true; }

@hanzogui/web/types/types.d.ts

RadiusTokens

type

export type RadiusTokens = SpecificTokensSpecial | GetTokenString<keyof Tokens['radius']> | ThemeValueFallbackRadius | number | RemString;

@hanzogui/web/types/types.d.ts

RadiusVariantSpreadFunction

type

export type RadiusVariantSpreadFunction<A extends PropLike> = VariantSpreadFunction<A, RadiusTokens>;

@hanzogui/web/types/types.d.ts

ReactComponentWithRef

type

export type ReactComponentWithRef<Props, Ref> = ForwardRefExoticComponent<Props & RefAttributes<Ref>>;

@hanzogui/web/types/types.d.ts

RecursiveArray

type

export interface RecursiveArray<T> extends Array<T | ReadonlyArray<T> | RecursiveArray<T>> { }

@hanzogui/web/types/types.d.ts

RegisteredStyle

type

Keep a brand of 'T' so that calls to `StyleSheet.flatten` can take `RegisteredStyle<T>` and return `T`.

export type RegisteredStyle<T> = number & { __registeredStyleBrand: T; };

@hanzogui/web/types/types.d.ts

registerFontVariables

value

export declare function registerFontVariables(parsedFont: any): string[];

@hanzogui/web/types/insertFont.d.ts

resetMediaStyleCache

value

export declare function resetMediaStyleCache(): void;

@hanzogui/web/types/helpers/createMediaStyle.d.ts

resolveEffectivePseudoTransition

value

Resolves the effective transition based on pseudo state changes. When entering a pseudo state (e.g., hover), use that pseudo's transition. When exiting (returning to base), use the base transition. CSS-like semantics: - Enter hover: Uses hover's transition (fast snap) - Exit hover: Uses base transition (slow fade)

export declare function resolveEffectivePseudoTransition(prev: PseudoState | undefined, next: GuiComponentState, pseudoTransitions: PseudoTransitions | undefined | null, baseTransition: TransitionProp | undefined | null): TransitionProp | undefined | null;

@hanzogui/web/types/helpers/pseudoTransitions.d.ts

ResolveVariableAs

type

-------------------------------------------- end variants --------------------------------------------

export type ResolveVariableAs = 'auto' | 'value' | 'variable' | 'none' | 'web' | 'except-theme';

@hanzogui/web/types/types.d.ts

RNExtraProps

type

export interface RNExtraProps { onScrollShouldSetResponder?: unknown; onScrollShouldSetResponderCapture?: unknown; onSelectionChangeShouldSetResponder?: unknown; onSelectionChangeShouldSetResponderCapture?: unknown; onLayout?: OnLayout; elevationAndroid?: number | string; }

@hanzogui/web/types/interfaces/RNExclusiveTypes.d.ts

RNOnlyProps

type

export type RNOnlyProps = 'onStartShouldSetResponder' | 'onScrollShouldSetResponder' | 'onScrollShouldSetResponderCapture' | 'onSelectionChangeShouldSetResponder' | 'onSelectionChangeShouldSetResponderCapture' | 'onLayout' | 'onTextLayout' | 'href' | 'hrefAttrs' | 'elevationAndroid' | 'rel' | 'download' | 'dir' | 'onStartShouldSetResponder' | 'onMoveShouldSetResponder' | 'onResponderEnd' | 'onResponderGrant' | 'onResponderReject' | 'onResponderMove' | 'onResponderRelease' | 'onResponderStart' | 'onResponderTerminationRequest' | 'onResponderTerminate' | 'onStartShouldSetResponderCapture' | 'onMoveShouldSetResponderCapture';

@hanzogui/web/types/interfaces/RNExclusiveTypes.d.ts

RNTextProps

type

export interface RNTextProps extends RNExtraProps { dir?: 'ltr' | 'rtl' | 'auto'; onTextLayout?: OnTextLayout; }

@hanzogui/web/types/interfaces/RNExclusiveTypes.d.ts

RNViewProps

type

export interface RNViewProps extends GestureResponderHandlers, RNExtraProps { rel?: any; download?: any; }

@hanzogui/web/types/interfaces/RNExclusiveTypes.d.ts

Role

type

export type Role = 'alert' | 'alertdialog' | 'application' | 'article' | 'banner' | 'button' | 'cell' | 'checkbox' | 'columnheader' | 'combobox' | 'complementary' | 'contentinfo' | 'definition' | 'dialog' | 'directory' | 'document' | 'feed' | 'figure' | 'form' | 'grid' | 'group' | 'heading' | 'img' | 'link' | 'list' | 'listitem' | 'log' | 'main' | 'marquee' | 'math' | 'menu' | 'menubar' | 'menuitem' | 'meter' | 'navigation' | 'none' | 'note' | 'option' | 'presentation' | 'progressbar' | 'radio' | 'radiogroup' | 'region' | 'row' | 'rowgroup' | 'rowheader' | 'scrollbar' | 'searchbox' | 'separator' | 'slider' | 'spinbutton' | 'status' | 'summary' | 'switch' | 'tab' | 'table' | 'tablist' | 'tabpanel' | 'term' | 'timer' | 'toolbar' | 'tooltip' | 'tree' | 'treegrid' | 'treeitem';

@hanzogui/web/types/types.d.ts

RulesToInsert

type

export type RulesToInsert = Record<string, StyleObject>;

@hanzogui/web/types/types.d.ts

SafeAreaValueKeys

type

export type SafeAreaValueKeys = 'padding' | 'paddingTop' | 'paddingBottom' | 'paddingLeft' | 'paddingRight' | 'paddingHorizontal' | 'paddingVertical' | 'paddingStart' | 'paddingEnd' | 'paddingBlock' | 'paddingInline' | 'paddingBlockStart' | 'paddingBlockEnd' | 'paddingInlineStart' | 'paddingInlineEnd' | 'margin' | 'marginTop' | 'marginBottom' | 'marginLeft' | 'marginRight' | 'marginHorizontal' | 'marginVertical' | 'marginStart' | 'marginEnd' | 'marginBlock' | 'marginInline' | 'marginBlockStart' | 'marginBlockEnd' | 'marginInlineStart' | 'marginInlineEnd' | 'inset' | 'top' | 'bottom' | 'left' | 'right' | 'start' | 'end';

@hanzogui/web/types/types.d.ts

setConfig

value

export declare const setConfig: (next: GuiInternalConfig) => void;

@hanzogui/web/types/config.d.ts

setDidGetVariableValue

value

export declare const setDidGetVariableValue: (val: boolean) => boolean;

@hanzogui/web/types/createVariable.d.ts

setIdentifierValue

value

export declare const setIdentifierValue: (identifier: string, value: any) => void;

@hanzogui/web/types/Gui.d.ts

setMediaState

value

export declare const setMediaState: (next: MediaQueryState) => void;

@hanzogui/web/types/helpers/mediaState.d.ts

setNonce

value

export declare function setNonce(_: string): void;

@hanzogui/web/types/helpers/insertStyleRule.d.ts

setRef

value

Set a given ref to a given value This utility takes care of different types of refs: callback refs and RefObject(s)

export declare function setRef<T>(ref: PossibleRef<T>, value: T): void;

@hanzogui/compose-refs/types/compose-refs.d.ts

setupDev

value

export declare function setupDev(conf: DevConfig): void;

@hanzogui/web/types/config.d.ts

setupHooks

value

export declare function setupHooks(next: InternalHooks): void;

@hanzogui/web/types/setupHooks.d.ts

setupMatchMedia

value

export declare function setupMatchMedia(_: MatchMedia): void;

@hanzogui/web/types/helpers/matchMedia.d.ts

setupPlatformDriver

value

register the renderer platform driver — call once at app setup, before render.

export declare function setupPlatformDriver(driver: PlatformDriver): void;

@hanzogui/constants/types/platformDriver.d.ts

Shorthands

type

export type Shorthands = GuiConfig['shorthands'];

@hanzogui/web/types/types.d.ts

shouldRenderNativePlatform

value

takes in what user has inputted the native-supporting component and returns the name of the native platform we should render @example ['android'] => 'android' (when current platform is android) @example ['android'] => null (when current platform is not android) @example ['mobile'] => 'ios' (when current platform is ios) @param supportedSpecificNativeValues the platforms your component/system supports @param nativeProp the platforms your user is requesting you to use @returns

export declare function shouldRenderNativePlatform(nativeProp?: NativeValue): ExplicitNativePlatform | null;

@hanzogui/helpers/types/shouldRenderNativePlatform.d.ts

simpleHash

value

export declare const simpleHash: (strIn: string, hashMin?: number | 'strict') => string;

@hanzogui/simple-hash/types/index.d.ts

SingleGroupContext

type

export type SingleGroupContext = { subscribe: (cb: GroupStateListener) => DisposeFn; state: ComponentGroupState; };

@hanzogui/web/types/types.d.ts

SizeKeys

type

export type SizeKeys = 'width' | 'height' | 'minWidth' | 'minHeight' | 'maxWidth' | 'maxHeight' | 'shadowRadius';

@hanzogui/web/types/types.d.ts

SizeTokens

type

export type SizeTokens = SpecificTokensSpecial | ThemeValueFallbackSize | GetTokenString<keyof Tokens['size']>;

@hanzogui/web/types/types.d.ts

SizeVariantSpreadFunction

type

export type SizeVariantSpreadFunction<A extends PropLike> = VariantSpreadFunction<A, SizeTokens>;

@hanzogui/web/types/types.d.ts

Slot

value

export declare const Slot: import("react").NamedExoticComponent<SlotProps & import("react").RefAttributes<any>>;

@hanzogui/web/types/views/Slot.d.ts

Slottable

value

export declare function Slottable({ children }: { children: ReactNode; }): import("react").JSX.Element; export declare namespace Slottable { var displayName: string; }

@hanzogui/web/types/views/Slot.d.ts

SomewhatSpecificColorValue

type

export type SomewhatSpecificColorValue = CSSColorNames | 'transparent' | (`rgba(${string})` & {}) | (`rgb(${string})` & {}) | (`hsl(${string})` & {}) | (`hsla(${string})` & {}) | (`#${string}` & {});

@hanzogui/web/types/types.d.ts

SpaceKeys

type

export type SpaceKeys = 'space' | 'padding' | 'paddingHorizontal' | 'paddingVertical' | 'paddingLeft' | 'paddingTop' | 'paddingBottom' | 'paddingLeft' | 'paddingRight' | 'paddingEnd' | 'paddingStart' | 'margin' | 'marginHorizontal' | 'marginVertical' | 'marginLeft' | 'marginTop' | 'marginBottom' | 'marginLeft' | 'marginRight' | 'marginEnd' | 'marginStart' | 'marginBlock' | 'marginBlockStart' | 'marginBlockEnd' | 'marginInline' | 'marginInlineStart' | 'marginInlineEnd' | 'paddingBlock' | 'paddingBlockStart' | 'paddingBlockEnd' | 'paddingInline' | 'paddingInlineStart' | 'paddingInlineEnd' | 'x' | 'y' | 'gap' | 'rowGap' | 'columnGap' | 'scale' | 'scaleX' | 'scaleY' | 'borderTopEndRadius' | 'borderTopLeftRadius' | 'borderTopRightRadius' | 'borderTopStartRadius' | 'borderBottomEndRadius' | 'borderBottomLeftRadius' | 'borderBottomRightRadius' | 'borderBottomStartRadius' | 'borderBottomWidth' | 'borderLeftWidth' | 'borderRadius' | 'borderRightWidth' | 'borderTopEndRadius' | 'borderTopLeftRadius' | 'borderTopRightRadius' | 'borderEndWidth' | 'borderStartWidth' | 'borderTopStartRadius' | 'borderTopWidth' | 'borderWidth' | 'left' | 'top' | 'right' | 'bottom' | 'shadowOffset' | …

@hanzogui/web/types/types.d.ts

SpaceTokens

type

export type SpaceTokens = SpecificTokensSpecial | GetTokenString<keyof Tokens['space']> | ThemeValueFallbackSpace;

@hanzogui/web/types/types.d.ts

SpaceValue

type

export type SpaceValue = number | SpaceTokens | ThemeValueFallback;

@hanzogui/web/types/types.d.ts

SpaceVariantSpreadFunction

type

export type SpaceVariantSpreadFunction<A extends PropLike> = VariantSpreadFunction<A, SpaceTokens>;

@hanzogui/web/types/types.d.ts

SpecificTokens

type

export type SpecificTokens<Record = Tokens, RK extends keyof Record = keyof Record> = RK extends string ? `$${RK}.${keyof Record[RK] extends string | number ? keyof Record[RK] extends `$${infer X}` ? X : keyof Record[RK] : never}` : never;

@hanzogui/web/types/types.d.ts

SpecificTokensSpecial

type

export type SpecificTokensSpecial = GuiSettings extends { autocompleteSpecificTokens: infer Val; } ? Val extends 'except-special' | undefined ? never : SpecificTokens : SpecificTokens;

@hanzogui/web/types/types.d.ts

SplitStyleProps

type

export type SplitStyleProps = { styledContext?: Record<string, any>; mediaState?: Record<string, boolean>; noClass?: boolean; noExpand?: boolean; noNormalize?: boolean | 'values'; noSkip?: boolean; noMergeStyle?: boolean; resolveValues?: ResolveVariableAs; disableExpandShorthands?: boolean; fallbackProps?: Record<string, any>; hasTextAncestor?: boolean; willBeAnimated?: boolean; isAnimated: boolean; isExiting?: boolean; exitVariant?: string; enterVariant?: string; };

@hanzogui/web/types/types.d.ts

SplitStyleResult

type

export type SplitStyleResult = ReturnType<typeof getSplitStyles>;

@hanzogui/web/types/helpers/getSplitStyles.d.ts

SplitStyles

type

export type SplitStyles = ReturnType<typeof getSplitStyles>;

@hanzogui/web/types/helpers/getSplitStyles.d.ts

SpreadKeys

type

export type SpreadKeys = '...fontSize' | '...fontStyle' | '...fontTransform' | '...lineHeight' | '...letterSpacing' | '...size' | '...space' | '...color' | '...zIndex' | '...theme' | '...radius';

@hanzogui/web/types/types.d.ts

StackNonStyleProps

type

export interface StackNonStyleProps extends Omit<ViewProps, 'hitSlop' | 'pointerEvents' | 'display' | 'children' | keyof GuiComponentPropsBaseBase | RNOnlyProps | keyof ExtendBaseStackProps | 'style' | 'onFocus' | 'onBlur' | 'onPointerCancel' | 'onPointerDown' | 'onPointerMove' | 'onPointerUp'>, ExtendBaseStackProps, GuiComponentPropsBase { style?: StyleProp<LooseCombinedObjects<React.CSSProperties, ViewStyle>>; }

@hanzogui/web/types/types.d.ts

StackStyle

type

export type StackStyle = WithThemeShorthandsPseudosMedia<StackStyleBase>;

@hanzogui/web/types/types.d.ts

StackStyleBase

type

export interface StackStyleBase extends Omit<ViewStyle, keyof ExtendedBaseProps | 'elevation'>, ExtendedBaseProps { }

@hanzogui/web/types/types.d.ts

StaticComponentObject

type

export type StaticComponentObject<Props, Ref, NonStyledProps, BaseStyles extends object, VariantProps, ParentStaticProperties> = { staticConfig: StaticConfig; styleable: Styleable<Props extends TamaDefer ? GetFinalProps<NonStyledProps, BaseStyles, VariantProps> : Props, Ref, NonStyledProps, BaseStyles, VariantProps, ParentStaticProperties>; };

@hanzogui/web/types/types.d.ts

StaticConfig

type

export type StaticConfig = StaticConfigBase & { parentStaticConfig?: StaticConfigBase; };

@hanzogui/web/types/types.d.ts

StaticConfigPublic

type

export type StaticConfigPublic = { defaultProps?: Record<string, any>; /** * (compiler) If you need to pass context or something, prevents from ever * flattening. The 'jsx' option means it will never flatten. if you * pass JSX as a children (if its purely string, it will still flatten). */ neverFlatten?: boolean | 'jsx'; /** * Adds support for text props and handles focus properly */ isInput?: boolean; /** * Determines ultimate output tag (Text vs View) */ isText?: boolean; /** * Which style keys are allowed to be extracted. */ validStyles?: { [key: string]: boolean; }; /** * Accept Gui tokens for these props (key for the prop key, val for the token category) */ accept?: { [key: string]: keyof Tokens | 'style' | 'textStyle'; }; /** * (compiler) If these props are encountered, leave them un-extracted. */ inlineProps?: Set<string>; /** * (compiler) If not flattening, leave this prop as original value. * Only applies to style attributes */ inlineWhenUnflattened?: Set<string>; /** * Auto-detected, but can …

@hanzogui/web/types/types.d.ts

StylableComponent

type

-------------------------------------------- variants --------------------------------------------

export type StylableComponent = GuiComponent | ComponentType<any> | ForwardRefExoticComponent<any> | ReactComponentWithRef<any, any> | (new (props: any) => any);

@hanzogui/web/types/types.d.ts

STYLE_TOKEN_PROVENANCE_KEY

value

export declare const STYLE_TOKEN_PROVENANCE_KEY = "hanzogui.styleTokenProvenance";

@hanzogui/web/types/helpers/styleProvenance.d.ts

Styleable

type

export type Styleable<Props, Ref, NonStyledProps, BaseStyles extends object, VariantProps, ParentStaticProperties> = <CustomProps extends object | void = void, MergedProps = CustomProps extends void ? Props : Omit<Props, keyof CustomProps> & CustomProps, FunctionDef extends ForwardRefRenderFunction<Ref, MergedProps> = ForwardRefRenderFunction<Ref, MergedProps>>(a: FunctionDef, options?: StyleableOptions) => GuiComponent<MergedProps, Ref, NonStyledProps & CustomProps, BaseStyles, VariantProps, ParentStaticProperties>;

@hanzogui/web/types/types.d.ts

StyleableOptions

type

export type StyleableOptions = { disableTheme?: boolean; staticConfig?: Partial<StaticConfig>; };

@hanzogui/web/types/types.d.ts

StyleCompat

type

export type StyleCompat = 'legacy' | 'react-native' | 'web';

@hanzogui/web/types/config.d.ts

styled

value

declare const styledExport: typeof styled & StyledHtmlFactories;

@hanzogui/web/types/styled.d.ts

StyledContext

type

export type StyledContext<Props extends Record<string, any> = any> = Context<Props> & { context: Context<Props>; props: Record<string, any> | undefined; Provider: ProviderExoticComponent<Partial<Props | undefined> & { children?: ReactNode; scope?: string; }>; useStyledContext: (scope?: string) => Props; };

@hanzogui/web/types/types.d.ts

styledHtml

value

styledHtml() for HTML element tags like 'a', 'button', 'div', etc. Automatically provides element-specific props (href for anchors, type for buttons, etc.) @example const StyledAnchor = styledHtml('a', { color: '$blue10', textDecorationLine: 'underline', }) // StyledAnchor now accepts `href` prop with proper typing <StyledAnchor href="/path">Link</StyledAnchor>

export declare function styledHtml<Tag extends keyof HTMLElementTagNameMap, Variants extends VariantDefinitions<any, any> | undefined = undefined>(tag: Tag, options?: Partial<HTMLElementStyleBase<Tag>> & { name?: string; variants?: Variants; defaultVariants?: GetVariantAcceptedValues<NonNullable<Variants>>; context?: StyledContext; }): GuiComponent<TamaDefer, HTMLElementTagNameMap[Tag], GuiComponentPropsBase & HTMLElementSpecificProps<Tag>, HTMLElementStyleBase<Tag>, Variants extends undefined ? {} : AreVariantsUndefined<NonNullable<Variants>> extends true ? {} : GetVariantAcceptedValues<NonNullable<Variants>>, {}>;

@hanzogui/web/types/styled.d.ts

StyleObject

type

export type StyleObject = [ property: string, value: any, identifier: string, pseudo: 'hover' | 'focus' | 'focus-visible' | 'focus-within' | 'active' | undefined, rules: string[] ];

@hanzogui/helpers/types/types.d.ts

StyleObjectIdentifier

value

export declare const StyleObjectIdentifier = 2;

@hanzogui/helpers/types/types.d.ts

StyleObjectProperty

value

export declare const StyleObjectProperty = 0;

@hanzogui/helpers/types/types.d.ts

StyleObjectPseudo

value

export declare const StyleObjectPseudo = 3;

@hanzogui/helpers/types/types.d.ts

StyleObjectRules

value

export declare const StyleObjectRules = 4;

@hanzogui/helpers/types/types.d.ts

StyleObjectValue

value

export declare const StyleObjectValue = 1;

@hanzogui/helpers/types/types.d.ts

styleOriginalValues

value

export { styleOriginalValues };

@hanzogui/web/types/helpers/getSplitStyles.d.ts

StyleProp

type

export type StyleProp<T> = T | RegisteredStyle<T> | RecursiveArray<T | RegisteredStyle<T> | Falsy> | Falsy;

@hanzogui/web/types/types.d.ts

stylePropsAll

value

export declare const stylePropsAll: { gridAutoColumns: boolean; gridAutoRows: boolean; gridTemplateColumns: boolean; gridTemplateRows: boolean; grid: boolean; gridArea: boolean; gridAutoFlow: boolean; gridColumn: boolean; gridColumnEnd: boolean; gridColumnStart: boolean; gridRow: boolean; gridRowEnd: boolean; gridRowStart: boolean; gridTemplate: boolean; gridTemplateAreas: boolean; justifyItems: boolean; justifySelf: boolean; placeContent: boolean; placeItems: boolean; placeSelf: boolean; backgroundAttachment?: boolean | undefined; backgroundBlendMode?: boolean | undefined; backgroundClip?: boolean | undefined; backgroundOrigin?: boolean | undefined; backgroundRepeat?: boolean | undefined; borderBottomStyle?: boolean | undefined; borderLeftStyle?: boolean | undefined; borderRightStyle?: boolean | undefined; borderTopStyle?: boolean | undefined; contain?: boolean | undefined; containerType?: boolean | undefined; content?: boolean | undefined; float?: boolean | undefined; maskBorderMode?: boolean | undefined; maskBorderRepeat?: boolean | …

@hanzogui/helpers/types/validStyleProps.d.ts

stylePropsText

value

export declare const stylePropsText: { gridAutoColumns: boolean; gridAutoRows: boolean; gridTemplateColumns: boolean; gridTemplateRows: boolean; grid: boolean; gridArea: boolean; gridAutoFlow: boolean; gridColumn: boolean; gridColumnEnd: boolean; gridColumnStart: boolean; gridRow: boolean; gridRowEnd: boolean; gridRowStart: boolean; gridTemplate: boolean; gridTemplateAreas: boolean; justifyItems: boolean; justifySelf: boolean; placeContent: boolean; placeItems: boolean; placeSelf: boolean; backgroundAttachment?: boolean | undefined; backgroundBlendMode?: boolean | undefined; backgroundClip?: boolean | undefined; backgroundOrigin?: boolean | undefined; backgroundRepeat?: boolean | undefined; borderBottomStyle?: boolean | undefined; borderLeftStyle?: boolean | undefined; borderRightStyle?: boolean | undefined; borderTopStyle?: boolean | undefined; contain?: boolean | undefined; containerType?: boolean | undefined; content?: boolean | undefined; float?: boolean | undefined; maskBorderMode?: boolean | undefined; maskBorderRepeat?: boolean | …

@hanzogui/helpers/types/validStyleProps.d.ts

stylePropsTextOnly

value

export declare const stylePropsTextOnly: { whiteSpace?: boolean | undefined; wordWrap?: boolean | undefined; textOverflow?: boolean | undefined; WebkitBoxOrient?: boolean | undefined; textDecorationDistance?: boolean | undefined; WebkitLineClamp?: boolean | undefined; color: boolean; textDecorationColor: boolean; textShadowColor: boolean; fontFamily: boolean; fontStyle: boolean; fontVariant: boolean; textTransform: boolean; textAlign: boolean; textDecorationLine: boolean; textDecorationStyle: boolean; userSelect: boolean; fontSize: boolean; fontWeight: boolean; letterSpacing: boolean; lineHeight: boolean; textShadow: boolean; textShadowOffset: boolean; textShadowRadius: boolean; verticalAlign: boolean; };

@hanzogui/helpers/types/validStyleProps.d.ts

stylePropsTransform

value

export declare const stylePropsTransform: { x: boolean; y: boolean; scale: boolean; perspective: boolean; scaleX: boolean; scaleY: boolean; skewX: boolean; skewY: boolean; matrix: boolean; rotate: boolean; rotateY: boolean; rotateX: boolean; rotateZ: boolean; };

@hanzogui/helpers/types/validStyleProps.d.ts

stylePropsUnitless

value

export declare const stylePropsUnitless: { grid: boolean; gridArea: boolean; gridAutoFlow: boolean; gridColumn: boolean; gridColumnEnd: boolean; gridColumnStart: boolean; gridRow: boolean; gridRowEnd: boolean; gridRowStart: boolean; gridTemplate: boolean; gridTemplateAreas: boolean; justifyItems: boolean; justifySelf: boolean; placeContent: boolean; placeItems: boolean; placeSelf: boolean; WebkitLineClamp: boolean; lineClamp: boolean; animationIterationCount: boolean; aspectRatio: boolean; borderImageOutset: boolean; borderImageSlice: boolean; borderImageWidth: boolean; columnCount: boolean; flex: boolean; flexGrow: boolean; flexOrder: boolean; flexPositive: boolean; flexShrink: boolean; flexNegative: boolean; fontWeight: boolean; opacity: boolean; order: boolean; orphans: boolean; tabSize: boolean; widows: boolean; zIndex: boolean; zoom: boolean; scale: boolean; scaleX: boolean; scaleY: boolean; scaleZ: boolean; shadowOpacity: boolean; };

@hanzogui/helpers/types/validStyleProps.d.ts

stylePropsView

value

export declare const stylePropsView: { gridAutoColumns: boolean; gridAutoRows: boolean; gridTemplateColumns: boolean; gridTemplateRows: boolean; grid: boolean; gridArea: boolean; gridAutoFlow: boolean; gridColumn: boolean; gridColumnEnd: boolean; gridColumnStart: boolean; gridRow: boolean; gridRowEnd: boolean; gridRowStart: boolean; gridTemplate: boolean; gridTemplateAreas: boolean; justifyItems: boolean; justifySelf: boolean; placeContent: boolean; placeItems: boolean; placeSelf: boolean; backgroundAttachment?: boolean | undefined; backgroundBlendMode?: boolean | undefined; backgroundClip?: boolean | undefined; backgroundOrigin?: boolean | undefined; backgroundRepeat?: boolean | undefined; borderBottomStyle?: boolean | undefined; borderLeftStyle?: boolean | undefined; borderRightStyle?: boolean | undefined; borderTopStyle?: boolean | undefined; contain?: boolean | undefined; containerType?: boolean | undefined; content?: boolean | undefined; float?: boolean | undefined; maskBorderMode?: boolean | undefined; maskBorderRepeat?: boolean | …

@hanzogui/helpers/types/validStyleProps.d.ts

StyleResolver

type

export type StyleResolver<Response = PropMappedValue> = (key: string, value: any, props: SplitStyleProps, state: GetStyleState, parentVariantKey: string) => Response;

@hanzogui/web/types/types.d.ts

styleToCSS

value

export declare function styleToCSS(style: Record<string, any>): void;

@hanzogui/web/types/helpers/getCSSStylesAtomic.d.ts

StyleTokenBinding

type

export type StyleTokenBinding = { /** original token string before resolution, e.g. '$background' or '$color9' */ token: string; /** full resolved theme name that produced the value, e.g. 'light_accent' */ theme: string; };

@hanzogui/web/types/helpers/styleProvenance.d.ts

StyleTokenProvenance

type

export type StyleTokenProvenance = Record<string, StyleTokenBinding>;

@hanzogui/web/types/helpers/styleProvenance.d.ts

supportsDynamicColorIOS

value

export declare const supportsDynamicColorIOS: boolean;

@hanzogui/constants/types/constants.d.ts

TamaDefer

type

export type TamaDefer = { __tamaDefer: true; };

@hanzogui/web/types/types.d.ts

Text

type

export type Text = GuiTextElement;

@hanzogui/web/types/views/Text.d.ts

Text

value

export declare const Text: import("../types.tsx").GuiComponent<TextProps, GuiTextElement, TextNonStyleProps, TextStylePropsBase, {}>;

@hanzogui/web/types/views/Text.d.ts

TextNonStyleProps

type

export interface TextNonStyleProps extends Omit<ReactTextProps, 'children' | keyof WebOnlyPressEvents | RNOnlyProps | keyof ExtendBaseTextProps | 'style'>, ExtendBaseTextProps, GuiComponentPropsBase { style?: StyleProp<LooseCombinedObjects<React.CSSProperties, RNTextStyle>>; }

@hanzogui/web/types/types.d.ts

TextProps

type

export type TextProps = TextNonStyleProps & TextStyle;

@hanzogui/web/types/types.d.ts

TextStyle

type

export type TextStyle = WithThemeShorthandsPseudosMedia<TextStylePropsBase>;

@hanzogui/web/types/types.d.ts

TextStylePropsBase

type

export interface TextStylePropsBase extends Omit<RNTextStyle, keyof ExtendedBaseProps>, ExtendedBaseProps { ellipsis?: boolean; numberOfLines?: number; textDecorationDistance?: number; textOverflow?: Properties['textOverflow']; whiteSpace?: Properties['whiteSpace']; wordWrap?: Properties['wordWrap']; /** * CSS text-shadow string. Supports tokens: "2px 2px 4px $shadowColor" * On native, only a single shadow is supported. */ textShadow?: string; }

@hanzogui/web/types/types.d.ts

Theme

value

export declare const Theme: React.ForwardRefExoticComponent<ThemeProps & { passThrough?: boolean; contain?: boolean; } & React.RefAttributes<unknown>>;

@hanzogui/web/types/views/Theme.d.ts

THEME_CLASSNAME_PREFIX

value

export declare const THEME_CLASSNAME_PREFIX = "t_";

@hanzogui/web/types/constants/constants.d.ts

THEME_NAME_SEPARATOR

value

export declare const THEME_NAME_SEPARATOR = "_";

@hanzogui/web/types/constants/constants.d.ts

themeable

value

export declare function themeable<ComponentType extends (props: any) => any>(Component: ComponentType, staticConfig: Partial<StaticConfig>, optimize?: boolean): ComponentType extends (props: infer P) => infer R ? (props: Omit<P, 'theme'> & ThemeableProps) => R : unknown;

@hanzogui/web/types/helpers/themeable.d.ts

ThemeableProps

type

export interface ThemeableProps { theme?: ThemeName | null; themeReset?: boolean; componentName?: string; debug?: DebugProp; }

@hanzogui/web/types/types.d.ts

ThemeDefinition

type

export type ThemeDefinition = BaseThemeDefinitions extends never ? GenericThemeDefinition : BaseThemeDefinitions;

@hanzogui/web/types/types.d.ts

ThemeKeys

type

export type ThemeKeys = keyof ThemeDefinition;

@hanzogui/web/types/types.d.ts

ThemeMediaKeys

type

export type ThemeMediaKeys<TK extends keyof Themes = keyof Themes> = TK extends string ? string extends TK ? never : TK extends `${string}_${string}` ? never : `$theme-${TK}` : never;

@hanzogui/web/types/types.d.ts

ThemeName

type

export type ThemeName = Exclude<GetAltThemeNames<keyof Themes>, number>;

@hanzogui/web/types/types.d.ts

ThemeParsed

type

export type ThemeParsed = { [key in ThemeKeys]: CoerceToVariable<ThemeDefinition[key]>; };

@hanzogui/web/types/types.d.ts

ThemeProps

type

export interface ThemeProps { className?: string; name?: Exclude<ThemeName, number> | null; componentName?: string; children?: any; reset?: boolean; debug?: DebugProp; forceClassName?: boolean; shallow?: boolean; }

@hanzogui/web/types/types.d.ts

ThemeProvider

value

export declare const ThemeProvider: (props: ThemeProviderProps) => import("react").JSX.Element;

@hanzogui/web/types/views/ThemeProvider.d.ts

ThemeProviderProps

type

export type ThemeProviderProps = { className?: string; defaultTheme: string | null | undefined; /** @deprecated moved to createGui({ settings: { disableRootThemeClass } }) */ disableRootThemeClass?: boolean; /** @deprecated moved to createGui({ settings: { themeClassNameOnRoot } }) */ themeClassNameOnRoot?: boolean; children?: any; reset?: boolean; };

@hanzogui/web/types/types.d.ts

Themes

type

export type Themes = GuiConfig['themes'];

@hanzogui/web/types/types.d.ts

ThemesLikeObject

type

export type ThemesLikeObject = Record<string, Record<string, string>>;

@hanzogui/web/types/types.d.ts

ThemeState

type

export type ThemeState = { id: string; name: string; theme: ThemeParsed; parentName?: string; isInverse?: boolean; inverses?: number; isNew?: boolean; parentId?: string; scheme?: 'light' | 'dark'; };

@hanzogui/web/types/types.d.ts

ThemeTokens

type

export type ThemeTokens = `$${ThemeKeys}`;

@hanzogui/web/types/types.d.ts

ThemeValueByCategory

type

export type ThemeValueByCategory<K extends string | number | symbol> = K extends 'theme' ? ThemeTokens : K extends 'size' ? SizeTokens : K extends 'font' ? FontTokens : K extends 'fontSize' ? FontSizeTokens : K extends 'space' ? SpaceTokens : K extends 'color' ? ColorTokens : K extends 'zIndex' ? ZIndexTokens : K extends 'radius' ? RadiusTokens : K extends 'lineHeight' ? FontLineHeightTokens : K extends 'fontWeight' ? FontWeightTokens : K extends 'letterSpacing' ? FontLetterSpacingTokens : K extends keyof Tokens ? GetTokenString<keyof Tokens[K]> : never;

@hanzogui/web/types/types.d.ts

ThemeValueFallback

type

export type ThemeValueFallback = (GuiSettings extends { allowedStyleValues: any; } ? never : UnionableString) | Variable;

@hanzogui/web/types/types.d.ts

ThemeValueFallbackColor

type

export type ThemeValueFallbackColor = ThemeValueFallback | GetThemeValueFallbackFor<AllowedValueSettingColor, never, SomewhatSpecificColorValue, UnionableString | UnionableNumber, WebStyleValueUniversal>;

@hanzogui/web/types/types.d.ts

ThemeValueFallbackRadius

type

export type ThemeValueFallbackRadius = ThemeValueFallback | GetThemeValueFallbackFor<AllowedValueSettingRadius, never, UnionableNumber, UnionableNumber, WebStyleValueUniversal>;

@hanzogui/web/types/types.d.ts

ThemeValueFallbackSize

type

export type ThemeValueFallbackSize = GetThemeValueFallbackFor<AllowedValueSettingSize, never, SomewhatSpecificSizeValue, UnionableString | UnionableNumber, WebStyleValueUniversal | WebOnlySizeValue>;

@hanzogui/web/types/types.d.ts

ThemeValueFallbackSpace

type

export type ThemeValueFallbackSpace = ThemeValueFallback | GetThemeValueFallbackFor<AllowedValueSettingSpace, never, SomewhatSpecificSpaceValue, UnionableString | UnionableNumber, WebStyleValueUniversal | WebOnlySizeValue>;

@hanzogui/web/types/types.d.ts

ThemeValueFallbackZIndex

type

export type ThemeValueFallbackZIndex = ThemeValueFallback | GetThemeValueFallbackFor<AllowedValueSettingZIndex, never, UnionableNumber, UnionableNumber, WebStyleValueUniversal>;

@hanzogui/web/types/types.d.ts

ThemeValueGet

type

export type ThemeValueGet<K extends string | number | symbol> = K extends 'theme' ? ThemeTokens : K extends SizeKeys ? SizeTokens : K extends FontKeys ? FontTokens : K extends FontSizeKeys ? FontSizeTokens : K extends `${`border${string | ''}Radius`}` ? RadiusTokens : K extends SpaceKeys ? K extends 'shadowOffset' ? { width: SpaceTokens; height: SpaceTokens; } : SpaceTokens : K extends ColorKeys ? ColorTokens | ThemeValueFallbackColor : K extends ZIndexKeys ? ZIndexTokens : K extends LineHeightKeys ? FontLineHeightTokens : K extends FontWeightKeys ? FontWeightTokens : K extends FontLetterSpacingKeys ? FontLetterSpacingTokens : K extends OpacityKeys ? SpecificTokens | ThemeValueFallback : never;

@hanzogui/web/types/types.d.ts

ThemeVariantSpreadFunction

type

export type ThemeVariantSpreadFunction<A extends PropLike> = VariantSpreadFunction<A, ThemeTokens>;

@hanzogui/web/types/types.d.ts

ThemeWithState

type

export type ThemeWithState = [ThemeParsed, ThemeState];

@hanzogui/web/types/hooks/useTheme.d.ts

Token

type

export type Token = NonSpecificTokens | (GuiSettings extends { autocompleteSpecificTokens: false; } ? never : SpecificTokens);

@hanzogui/web/types/types.d.ts

tokenCategories

value

export declare const tokenCategories: { radius: { borderRadius: boolean; borderTopLeftRadius: boolean; borderTopRightRadius: boolean; borderBottomLeftRadius: boolean; borderBottomRightRadius: boolean; borderStartStartRadius: boolean; borderStartEndRadius: boolean; borderEndStartRadius: boolean; borderEndEndRadius: boolean; }; size: { width: boolean; height: boolean; minWidth: boolean; minHeight: boolean; maxWidth: boolean; maxHeight: boolean; blockSize: boolean; minBlockSize: boolean; maxBlockSize: boolean; inlineSize: boolean; minInlineSize: boolean; maxInlineSize: boolean; }; zIndex: { zIndex: boolean; }; color: { color: boolean; textDecorationColor: boolean; textShadowColor: boolean; backgroundColor: boolean; borderColor: boolean; borderBlockStartColor: boolean; borderBlockEndColor: boolean; borderBlockColor: boolean; borderBottomColor: boolean; borderInlineColor: boolean; …

@hanzogui/helpers/types/validStyleProps.d.ts

TokenCategories

type

export type TokenCategories = 'color' | 'space' | 'size' | 'radius' | 'zIndex';

@hanzogui/web/types/types.d.ts

TokenPrefixedIfExists

type

export type TokenPrefixedIfExists<A> = A extends Record<string, any> ? TokenPrefixed<A> : {};

@hanzogui/web/types/types.d.ts

Tokens

type

export type Tokens = GuiConfig['tokens'];

@hanzogui/web/types/types.d.ts

TokensMerged

type

export type TokensMerged = TokensParsed & Tokens;

@hanzogui/web/types/types.d.ts

TokensParsed

type

export type TokensParsed = { [Key in keyof Required<Tokens>]: TokenPrefixed<Tokens[Key]>; };

@hanzogui/web/types/types.d.ts

transformsToString

value

export declare function transformsToString(transforms: object[]): string;

@hanzogui/web/types/helpers/transformsToString.d.ts

TransformStyleProps

type

export interface TransformStyleProps { /** * Maps to translateX */ x?: number; /** * Maps to translateY */ y?: number; perspective?: number; scale?: number; scaleX?: number; scaleY?: number; skewX?: string; skewY?: string; matrix?: number[]; rotate?: `${number}deg` | UnionableString; rotateY?: `${number}deg` | UnionableString; rotateX?: `${number}deg` | UnionableString; rotateZ?: `${number}deg` | UnionableString; }

@hanzogui/web/types/types.d.ts

TransitionKeys

type

export type TransitionKeys = InferredTransitionKeys;

@hanzogui/web/types/types.d.ts

TransitionProp

type

export type TransitionProp = TransitionKeys | ({ default?: TransitionKeys; enter?: TransitionKeys; exit?: TransitionKeys; delay?: number; } & TransitionSpringConfig & { [key: string]: TransitionKeys | { type: TransitionKeys; [key: string]: any; } | number | boolean | undefined; }) | [ TransitionKeys, { delay?: number; enter?: TransitionKeys; exit?: TransitionKeys; } & TransitionSpringConfig & { [key: string]: TransitionKeys | { type?: TransitionKeys; [key: string]: any; } | number | boolean | undefined; } ];

@hanzogui/web/types/types.d.ts

TransitionSpringConfig

type

Spring configuration parameters that can override preset defaults. Use with array syntax: transition={['bouncy', { stiffness: 1000, damping: 70 }]}

export type TransitionSpringConfig = { stiffness?: number; damping?: number; mass?: number; tension?: number; friction?: number; velocity?: number; overshootClamping?: boolean; duration?: number; bounciness?: number; speed?: number; };

@hanzogui/web/types/types.d.ts

Try

type

Narrow copied from ts-toolbelt https://github.com/millsp/ts-toolbelt/blob/master/sources/Function/Narrow.ts

export type Try<A1, A2, Catch = never> = A1 extends A2 ? A1 : Catch;

@hanzogui/web/types/types.d.ts

TypeOverride

type

export interface TypeOverride { groupNames(): 1; animationDrivers(): 1; }

@hanzogui/web/types/types.d.ts

UnionableNumber

type

export type UnionableNumber = number & {};

@hanzogui/web/types/types.d.ts

UnionableString

type

export type UnionableString = string & {};

@hanzogui/web/types/types.d.ts

UniversalAnimatedNumber

type

export type UniversalAnimatedNumber<A> = { getInstance(): A; getValue(): number; setValue(next: number, config?: AnimatedNumberStrategy, onFinished?: () => void): void; stop(): void; };

@hanzogui/web/types/types.d.ts

updateConfig

value

export declare const updateConfig: (key: string, value: any) => void;

@hanzogui/web/types/config.d.ts

updateFont

value

export declare const updateFont: typeof insertFont;

@hanzogui/web/types/insertFont.d.ts

updateMediaListeners

value

export declare function updateMediaListeners(): void;

@hanzogui/web/types/hooks/useMedia.d.ts

UseAnimatedNumber

type

export type UseAnimatedNumber<N extends UniversalAnimatedNumber<any> = UniversalAnimatedNumber<any>> = (initial: number) => N;

@hanzogui/web/types/types.d.ts

UseAnimatedNumberReaction

type

export type UseAnimatedNumberReaction<V extends UniversalAnimatedNumber<any> = UniversalAnimatedNumber<any>> = (opts: { value: V; hostRef: RefObject<GuiElement>; }, onValue: (current: number) => void) => void;

@hanzogui/web/types/types.d.ts

UseAnimatedNumbersStyle

type

export type UseAnimatedNumbersStyle<V extends UniversalAnimatedNumber<any> = UniversalAnimatedNumber<any>> = (vals: V[], getStyle: (...currentValues: any[]) => any) => any;

@hanzogui/web/types/types.d.ts

UseAnimatedNumberStyle

type

export type UseAnimatedNumberStyle<V extends UniversalAnimatedNumber<any> = UniversalAnimatedNumber<any>> = (val: V, getStyle: (current: any) => any) => any;

@hanzogui/web/types/types.d.ts

UseAnimationHook

type

export type UseAnimationHook = (props: { style: Record<string, any>; props: Record<string, any>; presence?: UsePresenceResult | null; staticConfig: StaticConfig; styleProps: SplitStyleProps; componentState: GuiComponentState; useStyleEmitter?: UseStyleEmitter; theme: ThemeParsed; themeName: string; pseudos: WithPseudoProps<ViewStyle> | null; stateRef: { current: GuiComponentStateRef; }; styleState?: GetStyleResult; onDidAnimate?: any; delay?: number; }) => null | { style?: object | object[]; className?: string; ref?: any; };

@hanzogui/web/types/types.d.ts

UseAnimationProps

type

export type UseAnimationProps = GuiComponentPropsBase & Record<string, any>;

@hanzogui/web/types/types.d.ts

useClientValue

value

export declare function useClientValue<Value>(value?: Value): FunctionOrValue<Value> | undefined;

@hanzogui/use-did-finish-ssr/types/index.d.ts

useComposedRefs

value

A custom hook that composes multiple refs Accepts callback refs and RefObject(s)

export declare function useComposedRefs<T>(...refs: PossibleRef<T>[]): (node: T) => void;

@hanzogui/compose-refs/types/compose-refs.d.ts

useConfiguration

value

export declare const useConfiguration: () => ComponentContextI;

@hanzogui/web/types/contexts/ComponentContext.d.ts

useCreateShallowSetState

value

export declare function useCreateShallowSetState<State extends Record<string, unknown>>(setter: CallbackSetState<State>, debug?: DebugProp): React.Dispatch<React.SetStateAction<Partial<State>>>;

@hanzogui/is-equal-shallow/types/index.d.ts

useDidFinishSSR

value

export declare function useDidFinishSSR(): boolean;

@hanzogui/use-did-finish-ssr/types/index.d.ts

useEvent

value

export declare function useEvent<T extends AnyFunction>(callback?: T): T;

@hanzogui/use-event/types/useEvent.d.ts

useGet

value

export declare function useGet<A>(currentValue: A, initialValue?: any, forwardToFunction?: boolean): () => A;

@hanzogui/use-event/types/useGet.d.ts

useIsClientOnly

value

export declare const useIsClientOnly: () => boolean;

@hanzogui/use-did-finish-ssr/types/index.d.ts

useIsomorphicLayoutEffect

value

export declare const useIsomorphicLayoutEffect: typeof useEffect;

@hanzogui/constants/types/constants.d.ts

useIsTouchDevice

value

export declare const useIsTouchDevice: () => boolean;

@hanzogui/web/types/hooks/useIsTouchDevice.d.ts

useMedia

value

export declare function useMedia(componentContext?: ComponentContextI, debug?: DebugProp): UseMediaState;

@hanzogui/web/types/hooks/useMedia.d.ts

UseMediaState

type

export type UseMediaState = { [key in MediaQueryKey]: boolean; };

@hanzogui/web/types/types.d.ts

UsePresenceResult

type

export type UsePresenceResult = AlwaysPresent | Present | NotPresent;

@hanzogui/web/types/types.d.ts

useProps

value

Returns props and style as a single object, expanding and merging shorthands and media queries. Use sparingly, it will loop props and trigger re-render on all media queries you access.

export declare function useProps<A extends PropsLikeObject>(props: A, opts?: UsePropsOptions): PropsWithoutMediaStyles<A>;

@hanzogui/web/types/hooks/useProps.d.ts

usePropsAndStyle

value

Returns [props, styles, theme, media] fully resolved and flattened with merged media queries and shorthands with all theme and token values resolved. Use sparingly, it will loop props and trigger re-render on all media queries you access.

export declare function usePropsAndStyle<A extends PropsLikeObject>(props: A, opts?: UsePropsOptions): [PropsWithoutMediaStyles<A>, PropsWithoutMediaStyles<A>, ThemeParsed, UseMediaState];

@hanzogui/web/types/hooks/useProps.d.ts

useSplitStyles

value

export declare const useSplitStyles: StyleSplitter;

@hanzogui/web/types/helpers/getSplitStyles.d.ts

useStyle

value

Returns only style values fully resolved and flattened with merged media queries and shorthands with all theme and token values resolved. Use sparingly, it will loop props and trigger re-render on all media queries you access.

export declare function useStyle<A extends StyleLikeObject>(props: A, opts?: UsePropsOptions): PropsWithoutMediaStyles<A>;

@hanzogui/web/types/hooks/useProps.d.ts

UseStyleEmitter

type

export type UseStyleEmitter = (cb: UseStyleListener) => void;

@hanzogui/web/types/types.d.ts

useTheme

value

export declare const useTheme: () => ThemeProxied;

@hanzogui/web/types/hooks/useTheme.d.ts

useThemeName

value

export declare function useThemeName(): ThemeName;

@hanzogui/web/types/hooks/useThemeName.d.ts

useThemeWithState

value

Adds a proxy around themeState that tracks update keys

export declare const useThemeWithState: (props: UseThemeWithStateProps, isRoot?: boolean, forThemeView?: boolean) => ThemeWithState;

@hanzogui/web/types/hooks/useTheme.d.ts

UseThemeWithStateProps

type

export type UseThemeWithStateProps = ThemeProps & { deopt?: boolean; passThrough?: boolean; disable?: boolean; needsUpdate?: () => boolean; unstyled?: boolean; };

@hanzogui/web/types/types.d.ts

validPseudoKeys

value

export declare const validPseudoKeys: { enterStyle: boolean; exitStyle: boolean; hoverStyle: boolean; pressStyle: boolean; focusStyle: boolean; disabledStyle: boolean; focusWithinStyle: boolean; focusVisibleStyle?: boolean | undefined; };

@hanzogui/helpers/types/validStyleProps.d.ts

validStyles

value

export declare const validStyles: { gridAutoColumns: boolean; gridAutoRows: boolean; gridTemplateColumns: boolean; gridTemplateRows: boolean; grid: boolean; gridArea: boolean; gridAutoFlow: boolean; gridColumn: boolean; gridColumnEnd: boolean; gridColumnStart: boolean; gridRow: boolean; gridRowEnd: boolean; gridRowStart: boolean; gridTemplate: boolean; gridTemplateAreas: boolean; justifyItems: boolean; justifySelf: boolean; placeContent: boolean; placeItems: boolean; placeSelf: boolean; backgroundAttachment?: boolean | undefined; backgroundBlendMode?: boolean | undefined; backgroundClip?: boolean | undefined; backgroundOrigin?: boolean | undefined; backgroundRepeat?: boolean | undefined; borderBottomStyle?: boolean | undefined; borderLeftStyle?: boolean | undefined; borderRightStyle?: boolean | undefined; borderTopStyle?: boolean | undefined; contain?: boolean | undefined; containerType?: boolean | undefined; content?: boolean | undefined; float?: boolean | undefined; maskBorderMode?: boolean | undefined; maskBorderRepeat?: boolean | …

@hanzogui/helpers/types/validStyleProps.d.ts

Variable

type

export interface Variable<A = any> { isVar: true; variable?: string; val: A; name: string; key: string; needsPx?: boolean; }

@hanzogui/web/types/types.d.ts

VariableColorVal

type

export type VariableColorVal = string | Variable;

@hanzogui/web/types/types.d.ts

variableToString

value

export declare function variableToString(vrble?: any, getValue?: boolean): string;

@hanzogui/web/types/createVariable.d.ts

VariableVal

type

export type VariableVal = number | string | Variable | VariableValGeneric | PxValue;

@hanzogui/web/types/types.d.ts

VariableValGeneric

type

export type VariableValGeneric = { __generic: 1; };

@hanzogui/web/types/types.d.ts

VariantDefinitionFromProps

type

export type VariantDefinitionFromProps<MyProps, Val> = MyProps extends object ? { [propName: string]: VariantSpreadFunction<MyProps, Val> | ({ [Key in SpreadKeys]?: Key extends '...fontSize' ? FontSizeVariantSpreadFunction<MyProps> : Key extends '...size' ? SizeVariantSpreadFunction<MyProps> : Key extends '...space' ? SpaceVariantSpreadFunction<MyProps> : Key extends '...color' ? ColorVariantSpreadFunction<MyProps> : Key extends '...lineHeight' ? FontLineHeightVariantSpreadFunction<MyProps> : Key extends '...fontTransform' ? FontTransformVariantSpreadFunction<MyProps> : Key extends '...fontStyle' ? FontStyleVariantSpreadFunction<MyProps> : Key extends '...letterSpacing' ? FontLetterSpacingVariantSpreadFunction<MyProps> : Key extends '...zIndex' ? ZIndexVariantSpreadFunction<MyProps> : Key extends '...radius' ? RadiusVariantSpreadFunction<MyProps> : Key extends '...theme' ? ThemeVariantSpreadFunction<MyProps> : never; } & { [Key in string | number | 'true' | 'false']?: MyProps | VariantSpreadFunction<MyProps, Val>; } & { [Key in VariantTypeKeys]?: Key extends ':number' ? VariantSpreadFunction<MyProps, number> : Key extends ':boolean' ? …

@hanzogui/web/types/types.d.ts

VariantDefinitions

type

export type VariantDefinitions<Parent extends StylableComponent = GuiComponent, StaticConfig extends StaticConfigPublic = Parent extends { __tama: [any, any, any, any, any, infer S]; } ? S : {}, MyProps extends object = Partial<GetVariantProps<Parent, StaticConfig['isText'] extends true ? true : StaticConfig['isInput'] extends true ? true : false>>, Val = any> = VariantDefinitionFromProps<MyProps, Val> & { _isEmpty?: 1; };

@hanzogui/web/types/types.d.ts

VariantSpreadExtras

type

export type VariantSpreadExtras<Props> = { fonts: GuiConfig['fonts']; tokens: TokensParsed; theme: Themes extends { [key: string]: infer B; } ? B : unknown; props: Props; fontFamily?: FontFamilyTokens; font?: Font; };

@hanzogui/web/types/types.d.ts

VariantSpreadFunction

type

export type VariantSpreadFunction<Props extends PropLike, Val = any> = (val: Val, config: VariantSpreadExtras<Props>) => { [Key in keyof Props]: Props[Key] | Variable | VariableVal; } | null | undefined;

@hanzogui/web/types/types.d.ts

VariantTypeKeys

type

export type VariantTypeKeys = ':string' | ':boolean' | ':number';

@hanzogui/web/types/types.d.ts

View

type

export type View = GuiElement;

@hanzogui/web/types/views/View.d.ts

View

value

export declare const View: import("../types.tsx").GuiComponent<ViewProps, GuiElement, StackNonStyleProps, StackStyleBase, {}>;

@hanzogui/web/types/views/View.d.ts

ViewNonStyleProps

type

export type ViewNonStyleProps = StackNonStyleProps;

@hanzogui/web/types/views/View.d.ts

ViewProps

type

export type ViewProps = ViewNonStyleProps & ViewStyle;

@hanzogui/web/types/views/View.d.ts

ViewStyle

type

export type ViewStyle = StackStyle;

@hanzogui/web/types/views/View.d.ts

ViewStylePropsBase

type

export type ViewStylePropsBase = StackStyleBase;

@hanzogui/web/types/views/View.d.ts

ViewStyleWithPseudos

type

export type ViewStyleWithPseudos = TextStyle | (TextStyle & { hoverStyle?: TextStyle; pressStyle?: TextStyle; focusStyle?: TextStyle; focusWithinStyle?: TextStyle; focusVisibleStyle?: TextStyle; disabledStyle?: TextStyle; });

@hanzogui/web/types/types.d.ts

WebOnlyPressEvents

type

export interface WebOnlyPressEvents { onPress?: PressableProps['onPress']; onLongPress?: PressableProps['onLongPress']; onPressIn?: PressableProps['onPress']; onPressOut?: PressableProps['onPress']; onMouseEnter?: DivAttributes['onMouseEnter']; onMouseLeave?: DivAttributes['onMouseLeave']; onMouseDown?: DivAttributes['onMouseDown']; onMouseUp?: DivAttributes['onMouseUp']; onMouseMove?: DivAttributes['onMouseMove']; onMouseOver?: DivAttributes['onMouseOver']; onMouseOut?: DivAttributes['onMouseOut']; onFocus?: DivAttributes['onFocus']; onBlur?: DivAttributes['onBlur']; onClick?: DivAttributes['onClick']; onDoubleClick?: DivAttributes['onDoubleClick']; onContextMenu?: DivAttributes['onContextMenu']; onWheel?: DivAttributes['onWheel']; onKeyDown?: DivAttributes['onKeyDown']; onKeyUp?: DivAttributes['onKeyUp']; onChange?: DivAttributes['onChange']; onInput?: DivAttributes['onInput']; onBeforeInput?: DivAttributes['onBeforeInput']; onScroll?: DivAttributes['onScroll']; onCopy?: DivAttributes['onCopy']; onCut?: DivAttributes['onCut']; onPaste?: DivAttributes['onPaste']; onDrag?: …

@hanzogui/web/types/types.d.ts

webOnlyStylePropsText

value

export declare const webOnlyStylePropsText: { whiteSpace: boolean; wordWrap: boolean; textOverflow: boolean; WebkitBoxOrient: boolean; textDecorationDistance: boolean; WebkitLineClamp: boolean; };

@hanzogui/helpers/types/webOnlyStyleProps.d.ts

webOnlyStylePropsView

value

export declare const webOnlyStylePropsView: { backgroundAttachment: boolean; backgroundBlendMode: boolean; backgroundClip: boolean; backgroundOrigin: boolean; backgroundRepeat: boolean; borderBottomStyle: boolean; borderLeftStyle: boolean; borderRightStyle: boolean; borderTopStyle: boolean; contain: boolean; containerType: boolean; content: boolean; float: boolean; maskBorderMode: boolean; maskBorderRepeat: boolean; maskClip: boolean; maskComposite: boolean; maskMode: boolean; maskOrigin: boolean; maskRepeat: boolean; maskType: boolean; objectFit: boolean; overflowBlock: boolean; overflowInline: boolean; overflowX: boolean; overflowY: boolean; pointerEvents: boolean; scrollbarWidth: boolean; textWrap: boolean; touchAction: boolean; transformStyle: boolean; willChange: boolean; transition: boolean; backdropFilter: boolean; WebkitBackdropFilter: boolean; background: boolean; borderTop: boolean; borderRight: boolean; borderBottom: boolean; borderLeft: boolean; backgroundPosition: boolean; backgroundSize: boolean; …

@hanzogui/helpers/types/webOnlyStyleProps.d.ts

WebOnlyValidStyleValues

type

export type WebOnlyValidStyleValues = { position: '-webkit-sticky'; };

@hanzogui/web/types/types.d.ts

WebStyleValueUniversal

type

export type WebStyleValueUniversal = 'unset' | 'inherit' | VariableString;

@hanzogui/web/types/types.d.ts

WidthHeight

type

export type WidthHeight = { width: number; height: number; };

@hanzogui/web/types/types.d.ts

WithMediaProps

type

export type WithMediaProps<A> = { [Key in MediaPropKeys | GroupMediaKeys | ThemeMediaKeys | PlatformMediaKeys]?: Key extends MediaPropKeys ? A & { [Key in PlatformMediaKeys]?: AddWebOnlyStyleProps<A>; } : Key extends `$platform-web` ? AddWebOnlyStyleProps<A> & { [Key in MediaPropKeys]?: AddWebOnlyStyleProps<A>; } : A & { [Key in MediaPropKeys]?: A; }; };

@hanzogui/web/types/types.d.ts

WithPseudoProps

type

export type WithPseudoProps<A> = { hoverStyle?: PseudoStyleWithTransition<A> | null; pressStyle?: PseudoStyleWithTransition<A> | null; focusStyle?: PseudoStyleWithTransition<A> | null; focusWithinStyle?: PseudoStyleWithTransition<A> | null; focusVisibleStyle?: PseudoStyleWithTransition<A> | null; disabledStyle?: PseudoStyleWithTransition<A> | null; exitStyle?: PseudoStyleWithTransition<A> | null; enterStyle?: PseudoStyleWithTransition<A> | null; };

@hanzogui/web/types/types.d.ts

WithShorthands

type

export type WithShorthands<StyleProps> = { [Key in keyof Shorthands]?: Shorthands[Key] extends keyof StyleProps ? StyleProps[Shorthands[Key]] | null : undefined; };

@hanzogui/web/types/types.d.ts

withStaticProperties

value

export declare const withStaticProperties: <A extends Function, B extends Record<string, any>>(component: A, staticProps: B) => Combined<A, B>;

@hanzogui/helpers/types/withStaticProperties.d.ts

WithThemeAndShorthands

type

export type WithThemeAndShorthands<A extends object, Variants = {}> = OnlyAllowShorthands extends true ? WithThemeValues<MaybeOmitLonghands<Omit<A, Longhands>>> & Variants & WithShorthands<WithThemeValues<A>> : WithThemeValues<MaybeOmitLonghands<A>> & Variants & WithShorthands<WithThemeValues<A>>;

@hanzogui/web/types/types.d.ts

WithThemeShorthandsAndPseudos

type

export type WithThemeShorthandsAndPseudos<A extends object, Variants = {}> = WithThemeAndShorthands<A, Variants> & WithPseudoProps<WithThemeAndShorthands<A, Variants>>;

@hanzogui/web/types/types.d.ts

WithThemeShorthandsPseudosMedia

type

export type WithThemeShorthandsPseudosMedia<A extends object, Variants = {}> = WithThemeShorthandsAndPseudos<A, Variants> & WithMediaProps<WithThemeShorthandsAndPseudos<A, Variants>>;

@hanzogui/web/types/types.d.ts

WithThemeValues

type

export type WithThemeValues<T extends object> = { [K in keyof T]: (ThemeValueGet<K> extends never ? K extends keyof ExtraBaseProps ? T[K] : T[K] | 'unset' : GetThemeValueForKey<K> | Exclude<T[K], string> | 'unset') | (K extends SafeAreaValueKeys ? 'safe' : never); };

@hanzogui/web/types/types.d.ts

ZIndexKeys

type

export type ZIndexKeys = 'zIndex';

@hanzogui/web/types/types.d.ts

ZIndexTokens

type

export type ZIndexTokens = SpecificTokensSpecial | GetTokenString<keyof Tokens['zIndex']> | ThemeValueFallbackZIndex | number;

@hanzogui/web/types/types.d.ts

ZIndexVariantSpreadFunction

type

export type ZIndexVariantSpreadFunction<A extends PropLike> = VariantSpreadFunction<A, ZIndexTokens>;

@hanzogui/web/types/types.d.ts