UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

35 lines (34 loc) 1.67 kB
/// <reference types="react" /> import type { ValueProps } from '../../types'; import { ValueProviderProps } from './ValueProvider'; declare function useValueProvider(props?: Omit<ValueProviderProps, 'children'>): { extend: <T extends ValueProps<unknown>>(valueProps: T) => T; inheritedProps: { space?: import("../../../../shared/types").SpaceTypeAll; left?: import("../../../../shared/types").SpaceType; right?: import("../../../../shared/types").SpaceType; label?: import("react").ReactNode; path?: string; value?: unknown; innerSpace?: import("../../../../shared/types").SpaceTypeAll | import("../../../../shared/types").SpaceTypeMedia; top?: import("../../../../shared/types").SpaceType; bottom?: import("../../../../shared/types").SpaceType; defaultValue?: unknown; className?: string; placeholder?: import("react").ReactNode; help?: import("../../../../components/help-button/HelpButtonInline").HelpProps; inline?: boolean; maxWidth?: "small" | "auto" | "medium" | "large"; labelSrOnly?: boolean; transformIn?: (external: unknown) => unknown; toInput?: (external: unknown) => unknown; fromExternal?: (external: unknown) => unknown; itemPath?: string; inheritVisibility?: boolean; inheritLabel?: boolean; showEmpty?: boolean; transformLabel?: (label: import("react").ReactNode, convertJsxToString: (label: import("react").ReactNode) => string) => import("react").ReactNode; }; inheritedContext: ValueProps<unknown>; }; export default useValueProvider;