package.dist.index.d.mts Maven / Gradle / Ivy
import * as _zag_js_core from '@zag-js/core';
import { StateMachine, Machine, MachineSrc } from '@zag-js/core';
export { ContextFrom, EventFrom, StateFrom, mergeProps } from '@zag-js/core';
import * as _zag_js_types from '@zag-js/types';
import { HTMLAttributes, CSSProperties, JSX, RefObject, PropsWithChildren } from 'react';
type WithoutRef = Omit;
type ElementsWithoutRef = {
[K in keyof JSX.IntrinsicElements]: WithoutRef;
};
type PropTypes = ElementsWithoutRef & {
element: WithoutRef>;
style: CSSProperties;
};
declare const normalizeProps: _zag_js_types.NormalizeProps;
interface PortalProps {
disabled?: boolean;
container?: RefObject;
getRootNode?: () => ShadowRoot | Document | Node;
}
declare const Portal: (props: PropsWithChildren) => JSX.Element;
declare function useActor, TState extends StateMachine.StateSchema, TEvent extends StateMachine.EventObject = StateMachine.AnyEventObject>(service: Machine): readonly [StateMachine.State, (evt: StateMachine.Event) => void];
declare function useMachine, TState extends StateMachine.StateSchema, TEvent extends StateMachine.EventObject = StateMachine.AnyEventObject>(machine: MachineSrc, options?: StateMachine.HookOptions): readonly [StateMachine.State, (evt: StateMachine.Event) => void, _zag_js_core.Machine];
export { Portal, type PortalProps, type PropTypes, normalizeProps, useActor, useMachine };
© 2015 - 2025 Weber Informatics LLC | Privacy Policy