Skip to content

Commit

Permalink
displayName Blueprint3
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilad Gray committed Jul 30, 2018
1 parent 5922413 commit 96906b8
Show file tree
Hide file tree
Showing 52 changed files with 55 additions and 55 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/components/alert/alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class Alert extends AbstractPureComponent<IAlertProps, {}> {
isOpen: false,
};

public static displayName = "Blueprint2.Alert";
public static displayName = "Blueprint3.Alert";

public render() {
const {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/button/buttonGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export interface IButtonGroupProps extends IProps, HTMLDivProps {
// this component is simple enough that tests would be purely tautological.
/* istanbul ignore next */
export class ButtonGroup extends React.PureComponent<IButtonGroupProps, {}> {
public static displayName = "Blueprint2.ButtonGroup";
public static displayName = "Blueprint3.ButtonGroup";

public render() {
const { alignText, className, fill, minimal, large, vertical, ...htmlProps } = this.props;
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/components/button/buttons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { AbstractButton, IButtonProps } from "./abstractButton";
export { IButtonProps };

export class Button extends AbstractButton<React.ButtonHTMLAttributes<HTMLButtonElement>> {
public static displayName = "Blueprint2.Button";
public static displayName = "Blueprint3.Button";

public render() {
return (
Expand All @@ -27,7 +27,7 @@ export class Button extends AbstractButton<React.ButtonHTMLAttributes<HTMLButton
}

export class AnchorButton extends AbstractButton<React.AnchorHTMLAttributes<HTMLAnchorElement>> {
public static displayName = "Blueprint2.AnchorButton";
public static displayName = "Blueprint3.AnchorButton";

public render() {
const { href, tabIndex = 0 } = this.props;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/card/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface ICardProps extends IProps, HTMLDivProps {
}

export class Card extends React.PureComponent<ICardProps, {}> {
public static displayName = "Blueprint2.Card";
public static displayName = "Blueprint3.Card";
public static defaultProps: ICardProps = {
elevation: Elevation.ZERO,
interactive: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/collapse/collapse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export enum AnimationStates {
* These are all animated.
*/
export class Collapse extends AbstractPureComponent<ICollapseProps, ICollapseState> {
public static displayName = "Blueprint2.Collapse";
public static displayName = "Blueprint3.Collapse";

public static defaultProps: ICollapseProps = {
component: "div",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export interface ICollapsibleListProps extends IProps {

/** @deprecated use `<OverflowList>` for automatic overflow based on available space. */
export class CollapsibleList extends React.Component<ICollapsibleListProps, {}> {
public static displayName = "Blueprint2.CollapsibleList";
public static displayName = "Blueprint3.CollapsibleList";

public static defaultProps: ICollapsibleListProps = {
collapseFrom: Boundary.START,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/dialog/dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class Dialog extends AbstractPureComponent<IDialogProps, {}> {
isOpen: false,
};

public static displayName = "Blueprint2.Dialog";
public static displayName = "Blueprint3.Dialog";

public render() {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/forms/controlGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export interface IControlGroupProps extends IProps, HTMLDivProps {
// this component is simple enough that tests would be purely tautological.
/* istanbul ignore next */
export class ControlGroup extends React.PureComponent<IControlGroupProps, {}> {
public static displayName = "Blueprint2.ControlGroup";
public static displayName = "Blueprint3.ControlGroup";

public render() {
const { children, className, fill, vertical, ...htmlProps } = this.props;
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/components/forms/controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const Control: React.SFC<IControlInternalProps> = ({
export interface ISwitchProps extends IControlProps {}

export class Switch extends React.PureComponent<ISwitchProps> {
public static displayName = "Blueprint2.Switch";
public static displayName = "Blueprint3.Switch";

public render() {
return <Control {...this.props} type="checkbox" typeClassName={Classes.SWITCH} />;
Expand All @@ -146,7 +146,7 @@ export class Switch extends React.PureComponent<ISwitchProps> {
export interface IRadioProps extends IControlProps {}

export class Radio extends React.PureComponent<IRadioProps> {
public static displayName = "Blueprint2.Radio";
public static displayName = "Blueprint3.Radio";

public render() {
return <Control {...this.props} type="radio" typeClassName={Classes.RADIO} />;
Expand Down Expand Up @@ -178,7 +178,7 @@ export interface ICheckboxState {
}

export class Checkbox extends React.PureComponent<ICheckboxProps, ICheckboxState> {
public static displayName = "Blueprint2.Checkbox";
public static displayName = "Blueprint3.Checkbox";

public state: ICheckboxState = {
indeterminate: this.props.indeterminate || this.props.defaultIndeterminate || false,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/forms/fileInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export interface IFileInputProps extends React.LabelHTMLAttributes<HTMLLabelElem
// TODO: write tests (ignoring for now to get a build passing quickly)
/* istanbul ignore next */
export class FileInput extends React.PureComponent<IFileInputProps, {}> {
public static displayName = "Blueprint2.FileInput";
public static displayName = "Blueprint3.FileInput";

public static defaultProps: IFileInputProps = {
inputProps: {},
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/forms/inputGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export interface IInputGroupState {
}

export class InputGroup extends React.PureComponent<IInputGroupProps & HTMLInputProps, IInputGroupState> {
public static displayName = "Blueprint2.InputGroup";
public static displayName = "Blueprint3.InputGroup";

public state: IInputGroupState = {
rightElementWidth: DEFAULT_RIGHT_ELEMENT_WIDTH,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/forms/numericInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ enum IncrementDirection {
}

export class NumericInput extends AbstractPureComponent<HTMLInputProps & INumericInputProps, INumericInputState> {
public static displayName = "Blueprint2.NumericInput";
public static displayName = "Blueprint3.NumericInput";

public static VALUE_EMPTY = "";
public static VALUE_ZERO = "0";
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/forms/radioGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function nextName() {
}

export class RadioGroup extends AbstractPureComponent<IRadioGroupProps, {}> {
public static displayName = "Blueprint2.RadioGroup";
public static displayName = "Blueprint3.RadioGroup";

// a unique name for this group, which can be overridden by `name` prop.
private autoGroupName = nextName();
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/forms/textArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface ITextAreaProps extends IIntentProps, IProps, React.TextareaHTML
// this component is simple enough that tests would be purely tautological.
/* istanbul ignore next */
export class TextArea extends React.PureComponent<ITextAreaProps, {}> {
public static displayName = "Blueprint2.TextArea";
public static displayName = "Blueprint3.TextArea";

public render() {
const { className, fill, intent, large, inputRef, ...htmlProps } = this.props;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/icon/icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export interface IIconProps extends IIntentProps, IProps {
}

export class Icon extends React.PureComponent<IIconProps & React.SVGAttributes<SVGElement>> {
public static displayName = "Blueprint2.Icon";
public static displayName = "Blueprint3.Icon";

public static readonly SIZE_STANDARD = 16;
public static readonly SIZE_LARGE = 20;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/menu/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface IMenuProps extends IProps {
}

export class Menu extends React.Component<IMenuProps, {}> {
public static displayName = "Blueprint2.Menu";
public static displayName = "Blueprint3.Menu";

public static Divider = MenuDivider;
public static Item = MenuItem;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/menu/menuDivider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface IMenuDividerProps extends IProps {
}

export class MenuDivider extends React.Component<IMenuDividerProps, {}> {
public static displayName = "Blueprint2.MenuDivider";
public static displayName = "Blueprint3.MenuDivider";

public render() {
const { className, title } = this.props;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/menu/menuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class MenuItem extends React.PureComponent<IMenuItemProps & React.AnchorH
shouldDismissPopover: true,
text: "",
};
public static displayName = "Blueprint2.MenuItem";
public static displayName = "Blueprint3.MenuItem";

public render() {
const {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/navbar/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface INavbarProps extends IProps, HTMLDivProps {
// this component is simple enough that tests would be purely tautological.
/* istanbul ignore next */
export class Navbar extends React.PureComponent<INavbarProps, {}> {
public static displayName = "Blueprint2.Navbar";
public static displayName = "Blueprint3.Navbar";

public static Divider = NavbarDivider;
public static Group = NavbarGroup;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/navbar/navbarDivider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface INavbarDividerProps extends IProps, HTMLDivProps {
// this component is simple enough that tests would be purely tautological.
/* istanbul ignore next */
export class NavbarDivider extends React.PureComponent<INavbarDividerProps, {}> {
public static displayName = "Blueprint2.NavbarDivider";
public static displayName = "Blueprint3.NavbarDivider";

public render() {
const { className, ...htmlProps } = this.props;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/navbar/navbarGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface INavbarGroupProps extends IProps, HTMLDivProps {
// this component is simple enough that tests would be purely tautological.
/* istanbul ignore next */
export class NavbarGroup extends React.PureComponent<INavbarGroupProps, {}> {
public static displayName = "Blueprint2.NavbarGroup";
public static displayName = "Blueprint3.NavbarGroup";

public static defaultProps: INavbarGroupProps = {
align: Alignment.LEFT,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/navbar/navbarHeading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface INavbarHeadingProps extends IProps, HTMLDivProps {
// this component is simple enough that tests would be purely tautological.
/* istanbul ignore next */
export class NavbarHeading extends React.PureComponent<INavbarHeadingProps, {}> {
public static displayName = "Blueprint2.NavbarHeading";
public static displayName = "Blueprint3.NavbarHeading";

public render() {
const { children, className, ...htmlProps } = this.props;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export interface IOverflowListState<T> {
}

export class OverflowList<T> extends React.PureComponent<IOverflowListProps<T>, IOverflowListState<T>> {
public static displayName = "Blueprint2.OverflowList";
public static displayName = "Blueprint3.OverflowList";

public static defaultProps: Partial<IOverflowListProps<any>> = {
collapseFrom: Boundary.START,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/overlay/overlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export interface IOverlayState {
}

export class Overlay extends React.PureComponent<IOverlayProps, IOverlayState> {
public static displayName = "Blueprint2.Overlay";
public static displayName = "Blueprint3.Overlay";

public static defaultProps: IOverlayProps = {
autoFocus: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/popover/popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export interface IPopoverState {
}

export class Popover extends AbstractPureComponent<IPopoverProps, IPopoverState> {
public static displayName = "Blueprint2.Popover";
public static displayName = "Blueprint3.Popover";

public static defaultProps: IPopoverProps = {
defaultIsOpen: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/popover/popoverArrow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ export const PopoverArrow: React.SFC<IPopoverArrowProps> = ({ arrowProps: { ref,
</svg>
</div>
);
PopoverArrow.displayName = "Blueprint2.PopoverArrow";
PopoverArrow.displayName = "Blueprint3.PopoverArrow";
2 changes: 1 addition & 1 deletion packages/core/src/components/portal/portal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const REACT_CONTEXT_TYPES: React.ValidationMap<IPortalContext> = {
* Any class names passed to this element will be propagated to the new container element on document.body.
*/
export class Portal extends React.Component<IPortalProps, IPortalState> {
public static displayName = "Blueprint2.Portal";
public static displayName = "Blueprint3.Portal";
public static contextTypes = REACT_CONTEXT_TYPES;

public context: IPortalContext;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/progress-bar/progressBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export interface IProgressBarProps extends IProps, IIntentProps {
}

export class ProgressBar extends React.PureComponent<IProgressBarProps, {}> {
public static displayName = "Blueprint2.ProgressBar";
public static displayName = "Blueprint3.ProgressBar";

public render() {
const { animate = true, className, intent, stripes = true, value } = this.props;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/slider/handle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const NUMBER_PROPS = ["max", "min", "stepSize", "tickSize", "value"];

/** Internal component for a Handle with click/drag/keyboard logic to determine a new value. */
export class Handle extends AbstractPureComponent<IInternalHandleProps, IHandleState> {
public static displayName = "Blueprint2.SliderHandle";
public static displayName = "Blueprint3.SliderHandle";

public state = {
isMoving: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/slider/multiSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class MultiSlider extends AbstractPureComponent<IMultiSliderProps, ISlide
defaultTrackIntent: Intent.NONE,
};

public static displayName = "Blueprint2.MultiSlider";
public static displayName = "Blueprint3.MultiSlider";

public static Handle: React.SFC<IHandleProps> = () => null;

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/slider/rangeSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class RangeSlider extends AbstractPureComponent<IRangeSliderProps> {
value: [0, 10],
};

public static displayName = "Blueprint2.RangeSlider";
public static displayName = "Blueprint3.RangeSlider";

public render() {
const { value, ...props } = this.props;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/slider/slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class Slider extends AbstractPureComponent<ISliderProps> {
value: 0,
};

public static displayName = "Blueprint2.Slider";
public static displayName = "Blueprint3.Slider";

public render() {
const { initialValue, value, onChange, onRelease, ...props } = this.props;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/spinner/spinner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export interface ISpinnerProps extends IProps, IIntentProps {
}

export class Spinner extends AbstractPureComponent<ISpinnerProps, {}> {
public static displayName = "Blueprint2.Spinner";
public static displayName = "Blueprint3.Spinner";

public static readonly SIZE_SMALL = 24;
public static readonly SIZE_STANDARD = 50;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/tabs/tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class Tab extends React.PureComponent<ITabProps, {}> {
id: undefined,
};

public static displayName = "Blueprint2.Tab";
public static displayName = "Blueprint3.Tab";

// this component is never rendered directly; see Tabs#renderTabPanel()
/* istanbul ignore next */
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/tabs/tabTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface ITabTitleProps extends ITabProps {
}

export class TabTitle extends React.PureComponent<ITabTitleProps, {}> {
public static displayName = "Blueprint2.TabTitle";
public static displayName = "Blueprint3.TabTitle";

public render() {
const { disabled, id, parentId, selected } = this.props;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/tabs/tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class Tabs extends AbstractPureComponent<ITabsProps, ITabsState> {
vertical: false,
};

public static displayName = "Blueprint2.Tabs";
public static displayName = "Blueprint3.Tabs";

private tablistElement: HTMLDivElement;
private refHandlers = {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/tag-input/tagInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export interface ITagInputState {
const NONE = -1;

export class TagInput extends AbstractPureComponent<ITagInputProps, ITagInputState> {
public static displayName = "Blueprint2.TagInput";
public static displayName = "Blueprint3.TagInput";

public static defaultProps: Partial<ITagInputProps> & object = {
addOnBlur: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/tag/tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export interface ITagProps extends IProps, IIntentProps, React.HTMLAttributes<HT
}

export class Tag extends React.PureComponent<ITagProps, {}> {
public static displayName = "Blueprint2.Tag";
public static displayName = "Blueprint3.Tag";

public render() {
const {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/toast/toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class Toast extends AbstractPureComponent<IToastProps, {}> {
timeout: 5000,
};

public static displayName = "Blueprint2.Toast";
public static displayName = "Blueprint3.Toast";

public render(): JSX.Element {
const { className, icon, intent, message } = this.props;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/tooltip/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface ITooltipProps extends IPopoverSharedProps, IIntentProps {
}

export class Tooltip extends React.PureComponent<ITooltipProps, {}> {
public static displayName = "Blueprint2.Tooltip";
public static displayName = "Blueprint3.Tooltip";

public static defaultProps: Partial<ITooltipProps> = {
hoverCloseDelay: 0,
Expand Down
2 changes: 1 addition & 1 deletion packages/datetime/src/dateInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export interface IDateInputState {
}

export class DateInput extends AbstractPureComponent<IDateInputProps, IDateInputState> {
public static displayName = "Blueprint2.DateInput";
public static displayName = "Blueprint3.DateInput";

public static defaultProps: Partial<IDateInputProps> = {
closeOnSelection: true,
Expand Down
Loading

1 comment on commit 96906b8

@blueprint-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

displayName Blueprint3

Preview: documentation | landing | table

Please sign in to comment.