UNPKG

@yeonpm/react

Version:

A library that collects frequently used components and custom hooks in react projects

54 lines (41 loc) 1.82 kB
import * as react from 'react'; import react__default, { HtmlHTMLAttributes, HTMLDivElement as HTMLDivElement$1, ReactElement } from 'react'; import { DefaultConfigType } from 'react-style-props'; import * as react_jsx_runtime from 'react/jsx-runtime'; interface WrapperProps extends HtmlHTMLAttributes<HTMLDivElement$1>, DefaultConfigType {} declare const _default$1: react.NamedExoticComponent<WrapperProps & react.RefAttributes<HTMLDivElement>>; interface TxtProps extends DefaultConfigType, HtmlHTMLAttributes<HTMLParagraphElement | HTMLSpanElement> { span?: boolean; } declare const _default: react.NamedExoticComponent<TxtProps & react.RefAttributes<HTMLDivElement>>; declare function txtCssConfig(css?: string): string; interface NavigationBarProps { navigationConfigs: NavigationConfigs; logo?: react__default.ReactNode; onClickSignOut?: () => void; signOutLabel?: string; /** * @description nextjs navigation: router */ router: any; pathname: string; disableSignOutButton?: boolean; width?: string; } interface NavigationConfigs { routePrefix?: string; configs: NavigationConfig[]; } interface NavigationConfig { label?: string; value: string; children?: NavigationConfig[]; } declare const NavigationBar: ({ navigationConfigs, logo, onClickSignOut, signOutLabel, router, pathname, disableSignOutButton, width, }: NavigationBarProps) => react_jsx_runtime.JSX.Element; interface LoadingIndicatorProps extends DefaultConfigType {} declare const LoadingIndicator: ({ ...props }: LoadingIndicatorProps) => ReactElement; export { LoadingIndicator, type LoadingIndicatorProps, NavigationBar, type NavigationBarProps, type NavigationConfig, type NavigationConfigs, _default as Txt, type TxtProps, _default$1 as Wrapper, type WrapperProps, txtCssConfig };