UNPKG

@stihl-design-system/components

Version:

Welcome to the STIHL Design System react component library.

23 lines (22 loc) 1.49 kB
import { ActionButtonProps } from './ActionButton'; export declare const ACTION_BUTTON_ICON_POSITION: readonly ["left", "top"]; export type ActionButtonIconPosition = (typeof ACTION_BUTTON_ICON_POSITION)[number]; export declare const ACTION_BUTTON_ICON_SIZE: readonly ["large", "x-large"]; export type ActionButtonIconSize = (typeof ACTION_BUTTON_ICON_SIZE)[number]; export declare const ACTION_BUTTON_INDENT_LEVEL: readonly [0, 1]; export type ActionButtonIndentLevel = (typeof ACTION_BUTTON_INDENT_LEVEL)[number]; export declare const ACTION_BUTTON_WEIGHT: readonly ["normal", "bold"]; export type ActionButtonWeight = (typeof ACTION_BUTTON_WEIGHT)[number]; export declare const ACTION_BUTTON_CHEVRON_DIRECTION: readonly ["up", "down", "right", "left"]; export type ActionButtonChevronDirection = (typeof ACTION_BUTTON_CHEVRON_DIRECTION)[number]; export type ActionButtonAriaAttribute = 'aria-label' | 'aria-expanded' | 'aria-pressed' | 'aria-haspopup'; type ValidationProps = Pick<ActionButtonProps, 'iconName' | 'iconSize' | 'iconSource' | 'iconPosition' | 'indentLevel' | 'stretched' | 'weight'>; /** * Performs runtime validation on a subset of `DSActionButton` props to detect * misconfigurations during development. * * Intended for development use only; should not be used in production environments. * */ export declare const validateActionButtonProps: ({ iconName, iconSize, iconSource, iconPosition, indentLevel, stretched, weight, }: ValidationProps) => void; export {};