From d0573a73c8a2eb7e02aad6b493693f035277e39b Mon Sep 17 00:00:00 2001 From: Matt Shwery Date: Mon, 31 Aug 2020 15:31:42 -0500 Subject: [PATCH] add StackingOrder and Code appearance typedefs (#961) * add StackingOrder and Code appearance typedefs * Update index.d.ts --- index.d.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 41cafadce..0233afe8c 100644 --- a/index.d.ts +++ b/index.d.ts @@ -13,6 +13,7 @@ export type IntentTypes = 'none' | 'success' | 'warning' | 'danger' export type DefaultAppearance = 'default' export type AlertAppearance = DefaultAppearance | 'card' export type ButtonAppearance = DefaultAppearance | 'minimal' | 'primary' +export type CodeAppearance = DefaultAppearance | 'minimal' export type CheckboxAppearance = DefaultAppearance export type IconButtonAppearance = DefaultAppearance | 'minimal' | 'primary' export type TextInputAppearance = DefaultAppearance | 'primary' @@ -618,7 +619,7 @@ export interface CheckboxOwnProps { export type CheckboxProps = PolymorphicBoxProps<'input', CheckboxOwnProps> export declare const Checkbox: BoxComponent -export type CodeOwnProps = TextOwnProps +export type CodeOwnProps = TextOwnProps & { appearance?: CodeAppearance } export type CodeProps = PolymorphicBoxProps<'code', CodeOwnProps> export declare const Code: BoxComponent @@ -1630,6 +1631,14 @@ export declare const Stack: React.FC export declare const StackingContext: React.Context +export const StackingOrder: { + FOCUSED: number + STACKING_CONTEXT: number + POSITIONER: number + OVERLAY: number + TOASTER: number +} + export type StrongOwnProps = TextOwnProps export type StrongProps = PolymorphicBoxProps<'strong', StrongOwnProps> export declare const Strong: BoxComponent