/*
* Copyright 2015 Palantir Technologies, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import * as React from "react";
import { IconName } from "@blueprintjs/icons";
import { Intent } from "./intent";
export const DISPLAYNAME_PREFIX = "Blueprint3";
/**
* Alias for all valid HTML props for `
` element.
* Does not include React's `ref` or `key`.
*/
export type HTMLDivProps = React.HTMLAttributes;
/**
* Alias for all valid HTML props for `` element.
* Does not include React's `ref` or `key`.
*/
export type HTMLInputProps = React.InputHTMLAttributes;
/**
* Alias for a `JSX.Element` or a value that renders nothing.
*
* In React, `boolean`, `null`, and `undefined` do not produce any output.
*/
export type MaybeElement = JSX.Element | false | null | undefined;
/**
* A shared base interface for all Blueprint component props.
*/
export interface IProps {
/** A space-delimited list of class names to pass along to a child element. */
className?: string;
}
export interface IIntentProps {
/** Visual intent color to apply to element. */
intent?: Intent;
}
/**
* Interface for a clickable action, such as a button or menu item.
* These props can be spready directly to a `