UNPKG

@ntragas/pouncejstest

Version:

A collection of UI components from Panther labs

29 lines (28 loc) 1.05 kB
import { AbstractButtonProps } from '../AbstractButton'; import { ButtonProps } from './Button'; import { Theme } from '../../theme'; declare type ThemeColor = keyof Theme['colors']; declare type ButtonColorVariant = ButtonProps['variantColor']; export declare const getThemeColor: (color: ButtonColorVariant) => ThemeColor; declare type UseButtonStylesProps = Required<Pick<ButtonProps, 'variantColor' | 'variant' | 'size'>>; export declare const getSolidButtonStyles: (theme: Theme, variantColor: ButtonColorVariant) => { transition: string; borderRadius: "medium"; border: string; borderColor: string; backgroundColor: string; _hover: { backgroundColor: string; borderColor: string; }; _focus: { backgroundColor: string; borderColor: string; }; _active: { backgroundColor: string; borderColor: string; }; }; declare const useButtonStyles: ({ variantColor, variant, size, }: UseButtonStylesProps) => AbstractButtonProps; export default useButtonStyles;