UNPKG

@acrool/react-picker

Version:

This is a react method to quickly combine buttons with Picker

39 lines (38 loc) 1.03 kB
import { default as CSS } from 'csstype'; import { Transition, Variant } from 'framer-motion'; type TVariantKey = 'initial' | 'animate' | 'exit'; export type TAnimationVariants = Record<TVariantKey, Variant>; export declare enum EVertical { bottom = "bottom", top = "top" } export declare enum EHorizontal { left = "left", center = "center", right = "right" } export interface IPosition { vertical: EVertical; horizontal: EHorizontal; } export interface IMotionOptions { variants?: TAnimationVariants; transition?: Transition; className?: string; style?: CSS.Properties; } export interface IValueChange<T = string> { value?: T; onChange?: (value: T) => void; } export interface IPickerOption { isEnableHideSave?: boolean; isEnableClickOutSiteHidden?: boolean; isDisabledAutoPosition?: boolean; isDisabledHideAutoFocus?: boolean; isVisibleMask?: boolean; isDebug?: boolean; importantPosition?: IPosition; motionProps?: IMotionOptions; } export {};