UNPKG

@ark-ui/solid

Version:

A collection of unstyled, accessible UI components for Solid, utilizing state machines for seamless interaction.

122 lines (102 loc) 7.78 kB
import * as drawer$1 from '@zag-js/drawer'; import { ContentProps, DrawerStackApi, OpenChangeDetails, SnapPointChangeDetails } from '@zag-js/drawer'; export { OpenChangeDetails as DrawerOpenChangeDetails, SnapPointChangeDetails as DrawerSnapPointChangeDetails, anatomy as drawerAnatomy } from '@zag-js/drawer'; import * as solid_js from 'solid-js'; import { Accessor, JSX } from 'solid-js'; import { HTMLProps, PolymorphicProps } from '../factory.js'; import { PropTypes } from '@zag-js/solid'; import { O as Optional, M as MaybeAccessor } from '../../types-Sr_80hg9.js'; import { U as UsePresenceProps } from '../../use-presence-DsfHkUSW.js'; import '@zag-js/presence'; import '../../render-strategy-B5MqQP3X.js'; interface DrawerBackdropBaseProps extends PolymorphicProps<'div'> { } interface DrawerBackdropProps extends HTMLProps<'div'>, DrawerBackdropBaseProps { } declare const DrawerBackdrop: (props: DrawerBackdropProps) => solid_js.JSX.Element; interface DrawerCloseTriggerBaseProps extends PolymorphicProps<'button'> { } interface DrawerCloseTriggerProps extends HTMLProps<'button'>, DrawerCloseTriggerBaseProps { } declare const DrawerCloseTrigger: (props: DrawerCloseTriggerProps) => solid_js.JSX.Element; interface DrawerContentBaseProps extends PolymorphicProps<'div'>, ContentProps { } interface DrawerContentProps extends Omit<HTMLProps<'div'>, 'draggable'>, DrawerContentBaseProps { } declare const DrawerContent: (props: DrawerContentProps) => solid_js.JSX.Element; interface UseDrawerProps extends Optional<Omit<drawer$1.Props, 'dir' | 'getRootNode' | 'defaultSnapPoint'>, 'id'> { defaultSnapPoint?: drawer$1.SnapPoint | undefined; } interface UseDrawerReturn extends Accessor<drawer$1.Api<PropTypes>> { } declare const useDrawer: (props?: MaybeAccessor<UseDrawerProps>) => UseDrawerReturn; interface UseDrawerContext extends UseDrawerReturn { } declare const useDrawerContext: () => UseDrawerContext; interface DrawerContextProps { children: (context: UseDrawerContext) => JSX.Element; } declare const DrawerContext: (props: DrawerContextProps) => JSX.Element; interface DrawerPositionerBaseProps extends PolymorphicProps<'div'> { } interface DrawerPositionerProps extends HTMLProps<'div'>, DrawerPositionerBaseProps { } declare const DrawerPositioner: (props: DrawerPositionerProps) => solid_js.JSX.Element; interface DrawerGrabberBaseProps extends PolymorphicProps<'div'> { } interface DrawerGrabberProps extends HTMLProps<'div'>, DrawerGrabberBaseProps { } declare const DrawerGrabber: (props: DrawerGrabberProps) => solid_js.JSX.Element; interface DrawerGrabberIndicatorBaseProps extends PolymorphicProps<'div'> { } interface DrawerGrabberIndicatorProps extends HTMLProps<'div'>, DrawerGrabberIndicatorBaseProps { } declare const DrawerGrabberIndicator: (props: DrawerGrabberIndicatorProps) => solid_js.JSX.Element; interface DrawerRootBaseProps extends UseDrawerProps, UsePresenceProps { } interface DrawerRootProps extends DrawerRootBaseProps { children?: JSX.Element; } declare const DrawerRoot: (props: DrawerRootProps) => JSX.Element; interface RootProviderProps { value: UseDrawerReturn; } interface DrawerRootProviderBaseProps extends RootProviderProps, UsePresenceProps { } interface DrawerRootProviderProps extends DrawerRootProviderBaseProps { children?: JSX.Element; } declare const DrawerRootProvider: (props: DrawerRootProviderProps) => JSX.Element; interface DrawerTitleBaseProps extends PolymorphicProps<'h2'> { } interface DrawerTitleProps extends HTMLProps<'h2'>, DrawerTitleBaseProps { } declare const DrawerTitle: (props: DrawerTitleProps) => solid_js.JSX.Element; interface DrawerTriggerBaseProps extends PolymorphicProps<'button'> { } interface DrawerTriggerProps extends HTMLProps<'button'>, DrawerTriggerBaseProps { } declare const DrawerTrigger: (props: DrawerTriggerProps) => solid_js.JSX.Element; interface DrawerIndentBaseProps extends PolymorphicProps<'div'> { } interface DrawerIndentProps extends HTMLProps<'div'>, DrawerIndentBaseProps { } declare const DrawerIndent: (props: DrawerIndentProps) => solid_js.JSX.Element; interface DrawerIndentBackgroundBaseProps extends PolymorphicProps<'div'> { } interface DrawerIndentBackgroundProps extends HTMLProps<'div'>, DrawerIndentBackgroundBaseProps { } declare const DrawerIndentBackground: (props: DrawerIndentBackgroundProps) => solid_js.JSX.Element; interface DrawerStackProps { children?: JSX.Element; } declare const DrawerStack: (props: DrawerStackProps) => JSX.Element; interface UseDrawerStackContext extends Accessor<DrawerStackApi<PropTypes>> { } declare const useDrawerStackContext: () => UseDrawerStackContext; declare const drawer_OpenChangeDetails: typeof OpenChangeDetails; declare const drawer_SnapPointChangeDetails: typeof SnapPointChangeDetails; declare namespace drawer { export { DrawerBackdrop as Backdrop, type DrawerBackdropBaseProps as BackdropBaseProps, type DrawerBackdropProps as BackdropProps, DrawerCloseTrigger as CloseTrigger, type DrawerCloseTriggerBaseProps as CloseTriggerBaseProps, type DrawerCloseTriggerProps as CloseTriggerProps, DrawerContent as Content, type DrawerContentBaseProps as ContentBaseProps, type DrawerContentProps as ContentProps, DrawerContext as Context, type DrawerContextProps as ContextProps, DrawerGrabber as Grabber, type DrawerGrabberBaseProps as GrabberBaseProps, DrawerGrabberIndicator as GrabberIndicator, type DrawerGrabberIndicatorBaseProps as GrabberIndicatorBaseProps, type DrawerGrabberIndicatorProps as GrabberIndicatorProps, type DrawerGrabberProps as GrabberProps, DrawerIndent as Indent, DrawerIndentBackground as IndentBackground, type DrawerIndentBackgroundBaseProps as IndentBackgroundBaseProps, type DrawerIndentBackgroundProps as IndentBackgroundProps, type DrawerIndentBaseProps as IndentBaseProps, type DrawerIndentProps as IndentProps, drawer_OpenChangeDetails as OpenChangeDetails, DrawerPositioner as Positioner, type DrawerPositionerBaseProps as PositionerBaseProps, type DrawerPositionerProps as PositionerProps, DrawerRoot as Root, type DrawerRootBaseProps as RootBaseProps, type DrawerRootProps as RootProps, DrawerRootProvider as RootProvider, type DrawerRootProviderBaseProps as RootProviderBaseProps, type DrawerRootProviderProps as RootProviderProps, drawer_SnapPointChangeDetails as SnapPointChangeDetails, DrawerStack as Stack, type DrawerStackProps as StackProps, DrawerTitle as Title, type DrawerTitleBaseProps as TitleBaseProps, type DrawerTitleProps as TitleProps, DrawerTrigger as Trigger, type DrawerTriggerBaseProps as TriggerBaseProps, type DrawerTriggerProps as TriggerProps }; } export { drawer as Drawer, DrawerBackdrop, type DrawerBackdropBaseProps, type DrawerBackdropProps, DrawerCloseTrigger, type DrawerCloseTriggerBaseProps, type DrawerCloseTriggerProps, DrawerContent, type DrawerContentBaseProps, type DrawerContentProps, DrawerContext, type DrawerContextProps, DrawerGrabber, type DrawerGrabberBaseProps, DrawerGrabberIndicator, type DrawerGrabberIndicatorBaseProps, type DrawerGrabberIndicatorProps, type DrawerGrabberProps, DrawerIndent, DrawerIndentBackground, type DrawerIndentBackgroundBaseProps, type DrawerIndentBackgroundProps, type DrawerIndentBaseProps, type DrawerIndentProps, DrawerPositioner, type DrawerPositionerBaseProps, type DrawerPositionerProps, DrawerRoot, type DrawerRootBaseProps, type DrawerRootProps, DrawerRootProvider, type DrawerRootProviderBaseProps, type DrawerRootProviderProps, DrawerStack, type DrawerStackProps, DrawerTitle, type DrawerTitleBaseProps, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerBaseProps, type DrawerTriggerProps, type UseDrawerContext, type UseDrawerProps, type UseDrawerReturn, type UseDrawerStackContext, useDrawer, useDrawerContext, useDrawerStackContext };