Skip to content

Commit

Permalink
add StackingOrder and Code appearance typedefs (#961)
Browse files Browse the repository at this point in the history
* add StackingOrder and Code appearance typedefs

* Update index.d.ts
  • Loading branch information
Matt Shwery committed Aug 31, 2020
1 parent fa88c5a commit d0573a7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -618,7 +619,7 @@ export interface CheckboxOwnProps {
export type CheckboxProps = PolymorphicBoxProps<'input', CheckboxOwnProps>
export declare const Checkbox: BoxComponent<CheckboxOwnProps, 'input'>

export type CodeOwnProps = TextOwnProps
export type CodeOwnProps = TextOwnProps & { appearance?: CodeAppearance }
export type CodeProps = PolymorphicBoxProps<'code', CodeOwnProps>
export declare const Code: BoxComponent<CodeOwnProps, 'code'>

Expand Down Expand Up @@ -1630,6 +1631,14 @@ export declare const Stack: React.FC<StackProps>

export declare const StackingContext: React.Context<number>

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<StrongOwnProps, 'strong'>
Expand Down

0 comments on commit d0573a7

Please sign in to comment.