diff --git a/packages/core/src/common/abstractComponent.ts b/packages/core/src/common/abstractComponent.ts index 63fa26b3de..054bcc768b 100644 --- a/packages/core/src/common/abstractComponent.ts +++ b/packages/core/src/common/abstractComponent.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { isNodeEnv } from "./utils"; diff --git a/packages/core/src/common/abstractComponent2.ts b/packages/core/src/common/abstractComponent2.ts index 7b581afdeb..48b6e4b564 100644 --- a/packages/core/src/common/abstractComponent2.ts +++ b/packages/core/src/common/abstractComponent2.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { isNodeEnv } from "./utils"; diff --git a/packages/core/src/common/abstractPureComponent.ts b/packages/core/src/common/abstractPureComponent.ts index 994d93360b..162196bdff 100644 --- a/packages/core/src/common/abstractPureComponent.ts +++ b/packages/core/src/common/abstractPureComponent.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { isNodeEnv } from "./utils"; diff --git a/packages/core/src/common/abstractPureComponent2.ts b/packages/core/src/common/abstractPureComponent2.ts index 33e3b56e21..e6432dc6f4 100644 --- a/packages/core/src/common/abstractPureComponent2.ts +++ b/packages/core/src/common/abstractPureComponent2.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { isNodeEnv } from "./utils"; diff --git a/packages/core/src/common/props.ts b/packages/core/src/common/props.ts index c03924f9eb..71e077fdf1 100644 --- a/packages/core/src/common/props.ts +++ b/packages/core/src/common/props.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { IconName } from "@blueprintjs/icons"; diff --git a/packages/core/src/common/utils/reactUtils.ts b/packages/core/src/common/utils/reactUtils.ts index 946cf8324a..d2221b4d82 100644 --- a/packages/core/src/common/utils/reactUtils.ts +++ b/packages/core/src/common/utils/reactUtils.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; /** * Returns true if `node` is null/undefined, false, empty string, or an array diff --git a/packages/core/src/components/alert/alert.tsx b/packages/core/src/components/alert/alert.tsx index da20ddda76..bd7910f8a7 100644 --- a/packages/core/src/components/alert/alert.tsx +++ b/packages/core/src/components/alert/alert.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes, DISPLAYNAME_PREFIX, Intent, IProps, MaybeElement } from "../../common"; diff --git a/packages/core/src/components/breadcrumbs/breadcrumb.tsx b/packages/core/src/components/breadcrumbs/breadcrumb.tsx index fa84d9705c..6e6a2138d7 100644 --- a/packages/core/src/components/breadcrumbs/breadcrumb.tsx +++ b/packages/core/src/components/breadcrumbs/breadcrumb.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import * as Classes from "../../common/classes"; import { IActionProps, ILinkProps } from "../../common/props"; diff --git a/packages/core/src/components/breadcrumbs/breadcrumbs.tsx b/packages/core/src/components/breadcrumbs/breadcrumbs.tsx index c96efae185..e190ee7cfa 100644 --- a/packages/core/src/components/breadcrumbs/breadcrumbs.tsx +++ b/packages/core/src/components/breadcrumbs/breadcrumbs.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Boundary, Classes, IProps, Position, removeNonHTMLProps } from "../../common"; diff --git a/packages/core/src/components/button/abstractButton.tsx b/packages/core/src/components/button/abstractButton.tsx index fb49543e73..e6f1cbb564 100644 --- a/packages/core/src/components/button/abstractButton.tsx +++ b/packages/core/src/components/button/abstractButton.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { AbstractPureComponent2, diff --git a/packages/core/src/components/button/buttonGroup.tsx b/packages/core/src/components/button/buttonGroup.tsx index 95479b4d70..bfdd05a73d 100644 --- a/packages/core/src/components/button/buttonGroup.tsx +++ b/packages/core/src/components/button/buttonGroup.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Alignment, Classes } from "../../common"; diff --git a/packages/core/src/components/button/buttons.tsx b/packages/core/src/components/button/buttons.tsx index c5f7acc2c9..31c1c3985b 100644 --- a/packages/core/src/components/button/buttons.tsx +++ b/packages/core/src/components/button/buttons.tsx @@ -17,7 +17,7 @@ // HACKHACK: these components should go in separate files /* eslint-disable max-classes-per-file */ -import * as React from "react"; +import React from "react"; import { DISPLAYNAME_PREFIX, removeNonHTMLProps } from "../../common/props"; import { IRef, IRefObject, refHandler } from "../../common/refs"; diff --git a/packages/core/src/components/callout/callout.tsx b/packages/core/src/components/callout/callout.tsx index 495e1065dd..6b1eb5bd0a 100644 --- a/packages/core/src/components/callout/callout.tsx +++ b/packages/core/src/components/callout/callout.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { diff --git a/packages/core/src/components/card/card.tsx b/packages/core/src/components/card/card.tsx index 1337a29c94..eccf9f4439 100644 --- a/packages/core/src/components/card/card.tsx +++ b/packages/core/src/components/card/card.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes, Elevation } from "../../common"; diff --git a/packages/core/src/components/collapse/collapse.tsx b/packages/core/src/components/collapse/collapse.tsx index fcf9b20a9e..3d434246f6 100644 --- a/packages/core/src/components/collapse/collapse.tsx +++ b/packages/core/src/components/collapse/collapse.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes } from "../../common"; diff --git a/packages/core/src/components/collapsible-list/collapsibleList.tsx b/packages/core/src/components/collapsible-list/collapsibleList.tsx index 8c4fd38b9a..27417b85a9 100644 --- a/packages/core/src/components/collapsible-list/collapsibleList.tsx +++ b/packages/core/src/components/collapsible-list/collapsibleList.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Boundary } from "../../common/boundary"; import * as Classes from "../../common/classes"; diff --git a/packages/core/src/components/context-menu/contextMenu.tsx b/packages/core/src/components/context-menu/contextMenu.tsx index 70d8b4af8c..d8df95e6d6 100644 --- a/packages/core/src/components/context-menu/contextMenu.tsx +++ b/packages/core/src/components/context-menu/contextMenu.tsx @@ -15,8 +15,8 @@ */ import classNames from "classnames"; -import * as React from "react"; -import * as ReactDOM from "react-dom"; +import React from "react"; +import ReactDOM from "react-dom"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes, Position } from "../../common"; diff --git a/packages/core/src/components/context-menu/contextMenuTarget.tsx b/packages/core/src/components/context-menu/contextMenuTarget.tsx index 244225b5bf..26461aed93 100644 --- a/packages/core/src/components/context-menu/contextMenuTarget.tsx +++ b/packages/core/src/components/context-menu/contextMenuTarget.tsx @@ -14,8 +14,8 @@ * limitations under the License. */ -import * as React from "react"; -import * as ReactDOM from "react-dom"; +import React from "react"; +import ReactDOM from "react-dom"; import { IConstructor } from "../../common/constructor"; import { diff --git a/packages/core/src/components/dialog/dialog.tsx b/packages/core/src/components/dialog/dialog.tsx index 1990dc0c89..d61f289a6a 100644 --- a/packages/core/src/components/dialog/dialog.tsx +++ b/packages/core/src/components/dialog/dialog.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes } from "../../common"; diff --git a/packages/core/src/components/dialog/dialogStep.tsx b/packages/core/src/components/dialog/dialogStep.tsx index 4ac06c3efb..9bd0f7fa3c 100644 --- a/packages/core/src/components/dialog/dialogStep.tsx +++ b/packages/core/src/components/dialog/dialogStep.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes } from "../../common"; diff --git a/packages/core/src/components/dialog/multistepDialog.tsx b/packages/core/src/components/dialog/multistepDialog.tsx index 3c1434bcd9..6faad42d9d 100644 --- a/packages/core/src/components/dialog/multistepDialog.tsx +++ b/packages/core/src/components/dialog/multistepDialog.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes, Utils } from "../../common"; diff --git a/packages/core/src/components/divider/divider.tsx b/packages/core/src/components/divider/divider.tsx index 32a993c792..a0779a8b64 100644 --- a/packages/core/src/components/divider/divider.tsx +++ b/packages/core/src/components/divider/divider.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2 } from "../../common"; diff --git a/packages/core/src/components/drawer/drawer.tsx b/packages/core/src/components/drawer/drawer.tsx index 44e61b84dc..b638b6a594 100644 --- a/packages/core/src/components/drawer/drawer.tsx +++ b/packages/core/src/components/drawer/drawer.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes } from "../../common"; diff --git a/packages/core/src/components/editable-text/editableText.tsx b/packages/core/src/components/editable-text/editableText.tsx index 5f0c06ca1e..d108630653 100644 --- a/packages/core/src/components/editable-text/editableText.tsx +++ b/packages/core/src/components/editable-text/editableText.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes, Keys } from "../../common"; diff --git a/packages/core/src/components/forms/asyncControllableInput.tsx b/packages/core/src/components/forms/asyncControllableInput.tsx index 1e04f551b8..e15117884d 100644 --- a/packages/core/src/components/forms/asyncControllableInput.tsx +++ b/packages/core/src/components/forms/asyncControllableInput.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { DISPLAYNAME_PREFIX } from "../../common/props"; diff --git a/packages/core/src/components/forms/controlGroup.tsx b/packages/core/src/components/forms/controlGroup.tsx index 40e5bc7614..c63fa0f80b 100644 --- a/packages/core/src/components/forms/controlGroup.tsx +++ b/packages/core/src/components/forms/controlGroup.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes } from "../../common"; diff --git a/packages/core/src/components/forms/controls.tsx b/packages/core/src/components/forms/controls.tsx index 3e644fd125..95e8f4581e 100644 --- a/packages/core/src/components/forms/controls.tsx +++ b/packages/core/src/components/forms/controls.tsx @@ -19,7 +19,7 @@ /* eslint-disable max-classes-per-file, @typescript-eslint/no-empty-interface */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Alignment, Classes, IRef, refHandler } from "../../common"; diff --git a/packages/core/src/components/forms/fileInput.tsx b/packages/core/src/components/forms/fileInput.tsx index 99483ae320..f508623a47 100644 --- a/packages/core/src/components/forms/fileInput.tsx +++ b/packages/core/src/components/forms/fileInput.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes } from "../../common"; diff --git a/packages/core/src/components/forms/formGroup.tsx b/packages/core/src/components/forms/formGroup.tsx index 9d24cb5cd4..4aa6481ed1 100644 --- a/packages/core/src/components/forms/formGroup.tsx +++ b/packages/core/src/components/forms/formGroup.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes } from "../../common"; diff --git a/packages/core/src/components/forms/inputGroup.tsx b/packages/core/src/components/forms/inputGroup.tsx index efa1a80d69..49d60a0068 100644 --- a/packages/core/src/components/forms/inputGroup.tsx +++ b/packages/core/src/components/forms/inputGroup.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes, IRef } from "../../common"; diff --git a/packages/core/src/components/forms/numericInput.tsx b/packages/core/src/components/forms/numericInput.tsx index 3a53cdfaec..4b5706b83f 100644 --- a/packages/core/src/components/forms/numericInput.tsx +++ b/packages/core/src/components/forms/numericInput.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { IconName } from "@blueprintjs/icons"; diff --git a/packages/core/src/components/forms/radioGroup.tsx b/packages/core/src/components/forms/radioGroup.tsx index 8539280c6c..5fe2f88929 100644 --- a/packages/core/src/components/forms/radioGroup.tsx +++ b/packages/core/src/components/forms/radioGroup.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes } from "../../common"; diff --git a/packages/core/src/components/forms/textArea.tsx b/packages/core/src/components/forms/textArea.tsx index 9bb3b1ce96..3ec52953d8 100644 --- a/packages/core/src/components/forms/textArea.tsx +++ b/packages/core/src/components/forms/textArea.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { diff --git a/packages/core/src/components/hotkeys/hotkey.tsx b/packages/core/src/components/hotkeys/hotkey.tsx index d40c0b73fe..d9a36d80ff 100644 --- a/packages/core/src/components/hotkeys/hotkey.tsx +++ b/packages/core/src/components/hotkeys/hotkey.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes, DISPLAYNAME_PREFIX, IProps } from "../../common"; diff --git a/packages/core/src/components/hotkeys/hotkeys.md b/packages/core/src/components/hotkeys/hotkeys.md index ed7da706d4..49cdda0c17 100644 --- a/packages/core/src/components/hotkeys/hotkeys.md +++ b/packages/core/src/components/hotkeys/hotkeys.md @@ -30,7 +30,7 @@ and attach the appropriate key listeners. ```tsx import { Hotkey, Hotkeys, HotkeysTarget } from "@blueprintjs/core"; -import * as React from "react"; +import React from "react"; @HotkeysTarget export class MyComponent extends React.Component { diff --git a/packages/core/src/components/hotkeys/hotkeys.tsx b/packages/core/src/components/hotkeys/hotkeys.tsx index b70084f791..f3de009052 100644 --- a/packages/core/src/components/hotkeys/hotkeys.tsx +++ b/packages/core/src/components/hotkeys/hotkeys.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes, DISPLAYNAME_PREFIX } from "../../common"; diff --git a/packages/core/src/components/hotkeys/hotkeysDialog.tsx b/packages/core/src/components/hotkeys/hotkeysDialog.tsx index f209d8bd18..b9c99625b7 100644 --- a/packages/core/src/components/hotkeys/hotkeysDialog.tsx +++ b/packages/core/src/components/hotkeys/hotkeysDialog.tsx @@ -15,8 +15,8 @@ */ import classNames from "classnames"; -import * as React from "react"; -import * as ReactDOM from "react-dom"; +import React from "react"; +import ReactDOM from "react-dom"; import { Classes } from "../../common"; import { Dialog, IDialogProps } from "../../components"; diff --git a/packages/core/src/components/hotkeys/hotkeysTarget.tsx b/packages/core/src/components/hotkeys/hotkeysTarget.tsx index ce856e870f..cc30925037 100644 --- a/packages/core/src/components/hotkeys/hotkeysTarget.tsx +++ b/packages/core/src/components/hotkeys/hotkeysTarget.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { IConstructor } from "../../common/constructor"; import { HOTKEYS_WARN_DECORATOR_NEEDS_REACT_ELEMENT, HOTKEYS_WARN_DECORATOR_NO_METHOD } from "../../common/errors"; diff --git a/packages/core/src/components/hotkeys/keyCombo.tsx b/packages/core/src/components/hotkeys/keyCombo.tsx index f86b46475c..342c41a307 100644 --- a/packages/core/src/components/hotkeys/keyCombo.tsx +++ b/packages/core/src/components/hotkeys/keyCombo.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes, DISPLAYNAME_PREFIX, IProps } from "../../common"; diff --git a/packages/core/src/components/html-select/htmlSelect.tsx b/packages/core/src/components/html-select/htmlSelect.tsx index 1da38cbe9c..1d612dd346 100644 --- a/packages/core/src/components/html-select/htmlSelect.tsx +++ b/packages/core/src/components/html-select/htmlSelect.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2 } from "../../common"; diff --git a/packages/core/src/components/html-table/htmlTable.tsx b/packages/core/src/components/html-table/htmlTable.tsx index 6450952961..c37a0da672 100644 --- a/packages/core/src/components/html-table/htmlTable.tsx +++ b/packages/core/src/components/html-table/htmlTable.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes, IElementRefProps } from "../../common"; diff --git a/packages/core/src/components/html/html.tsx b/packages/core/src/components/html/html.tsx index 80337b7334..ba10523bf0 100644 --- a/packages/core/src/components/html/html.tsx +++ b/packages/core/src/components/html/html.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { IElementRefProps } from "../../common"; import { BLOCKQUOTE, CODE, CODE_BLOCK, HEADING, LABEL, LIST } from "../../common/classes"; diff --git a/packages/core/src/components/icon/icon.tsx b/packages/core/src/components/icon/icon.tsx index b18c6100d8..7d7776d878 100644 --- a/packages/core/src/components/icon/icon.tsx +++ b/packages/core/src/components/icon/icon.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { IconName, IconSvgPaths16, IconSvgPaths20 } from "@blueprintjs/icons"; diff --git a/packages/core/src/components/menu/menu.tsx b/packages/core/src/components/menu/menu.tsx index 822edad179..cafba9f1fb 100644 --- a/packages/core/src/components/menu/menu.tsx +++ b/packages/core/src/components/menu/menu.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes, IRef } from "../../common"; diff --git a/packages/core/src/components/menu/menuDivider.tsx b/packages/core/src/components/menu/menuDivider.tsx index 4c63da2652..d07beb42d9 100644 --- a/packages/core/src/components/menu/menuDivider.tsx +++ b/packages/core/src/components/menu/menuDivider.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import * as Classes from "../../common/classes"; import { DISPLAYNAME_PREFIX, IProps } from "../../common/props"; diff --git a/packages/core/src/components/menu/menuItem.tsx b/packages/core/src/components/menu/menuItem.tsx index 45bec36c35..8d968fbfb1 100644 --- a/packages/core/src/components/menu/menuItem.tsx +++ b/packages/core/src/components/menu/menuItem.tsx @@ -16,7 +16,7 @@ import classNames from "classnames"; import { Modifiers } from "popper.js"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes, Position } from "../../common"; diff --git a/packages/core/src/components/navbar/navbar.tsx b/packages/core/src/components/navbar/navbar.tsx index a3cb89dfc0..591373d2dc 100644 --- a/packages/core/src/components/navbar/navbar.tsx +++ b/packages/core/src/components/navbar/navbar.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes } from "../../common"; diff --git a/packages/core/src/components/navbar/navbarDivider.tsx b/packages/core/src/components/navbar/navbarDivider.tsx index 3d1764a808..5f015a192c 100644 --- a/packages/core/src/components/navbar/navbarDivider.tsx +++ b/packages/core/src/components/navbar/navbarDivider.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes } from "../../common"; diff --git a/packages/core/src/components/navbar/navbarGroup.tsx b/packages/core/src/components/navbar/navbarGroup.tsx index e16a2def5c..3ab4550545 100644 --- a/packages/core/src/components/navbar/navbarGroup.tsx +++ b/packages/core/src/components/navbar/navbarGroup.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Alignment, Classes } from "../../common"; diff --git a/packages/core/src/components/navbar/navbarHeading.tsx b/packages/core/src/components/navbar/navbarHeading.tsx index 091a3bc07b..f814aa23b5 100644 --- a/packages/core/src/components/navbar/navbarHeading.tsx +++ b/packages/core/src/components/navbar/navbarHeading.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes } from "../../common"; diff --git a/packages/core/src/components/non-ideal-state/nonIdealState.tsx b/packages/core/src/components/non-ideal-state/nonIdealState.tsx index 9be59a6ade..e2ffb0dff8 100644 --- a/packages/core/src/components/non-ideal-state/nonIdealState.tsx +++ b/packages/core/src/components/non-ideal-state/nonIdealState.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2 } from "../../common"; diff --git a/packages/core/src/components/overflow-list/overflowList.tsx b/packages/core/src/components/overflow-list/overflowList.tsx index c1fe9f7d3c..2338d421a2 100644 --- a/packages/core/src/components/overflow-list/overflowList.tsx +++ b/packages/core/src/components/overflow-list/overflowList.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Boundary } from "../../common/boundary"; import * as Classes from "../../common/classes"; diff --git a/packages/core/src/components/overlay/overlay.tsx b/packages/core/src/components/overlay/overlay.tsx index d3bbc9f0f2..48dd1b4185 100644 --- a/packages/core/src/components/overlay/overlay.tsx +++ b/packages/core/src/components/overlay/overlay.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { findDOMNode } from "react-dom"; import { polyfill } from "react-lifecycles-compat"; import { CSSTransition, TransitionGroup } from "react-transition-group"; diff --git a/packages/core/src/components/panel-stack/panelProps.ts b/packages/core/src/components/panel-stack/panelProps.ts index 8da81fe5ad..5cbe21c86b 100644 --- a/packages/core/src/components/panel-stack/panelProps.ts +++ b/packages/core/src/components/panel-stack/panelProps.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; /* eslint-disable deprecation/deprecation */ diff --git a/packages/core/src/components/panel-stack/panelStack.tsx b/packages/core/src/components/panel-stack/panelStack.tsx index 775309ae7e..60d00c1471 100644 --- a/packages/core/src/components/panel-stack/panelStack.tsx +++ b/packages/core/src/components/panel-stack/panelStack.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { CSSTransition, TransitionGroup } from "react-transition-group"; diff --git a/packages/core/src/components/panel-stack/panelView.tsx b/packages/core/src/components/panel-stack/panelView.tsx index 555ba00491..2f305bd7ae 100644 --- a/packages/core/src/components/panel-stack/panelView.tsx +++ b/packages/core/src/components/panel-stack/panelView.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes } from "../../common"; diff --git a/packages/core/src/components/popover/popover.tsx b/packages/core/src/components/popover/popover.tsx index 55c01bdc1a..baebae575d 100644 --- a/packages/core/src/components/popover/popover.tsx +++ b/packages/core/src/components/popover/popover.tsx @@ -16,7 +16,7 @@ import classNames from "classnames"; import { ModifierFn } from "popper.js"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { Manager, Popper, PopperChildrenProps, Reference, ReferenceChildrenProps } from "react-popper"; diff --git a/packages/core/src/components/popover/popoverArrow.tsx b/packages/core/src/components/popover/popoverArrow.tsx index 6d51bbbd02..d428f7ad6c 100644 --- a/packages/core/src/components/popover/popoverArrow.tsx +++ b/packages/core/src/components/popover/popoverArrow.tsx @@ -15,7 +15,7 @@ */ import { Placement } from "popper.js"; -import * as React from "react"; +import React from "react"; import { PopperArrowProps } from "react-popper"; import * as Classes from "../../common/classes"; diff --git a/packages/core/src/components/portal/portal.tsx b/packages/core/src/components/portal/portal.tsx index a6f37a24e2..bd20388ad5 100644 --- a/packages/core/src/components/portal/portal.tsx +++ b/packages/core/src/components/portal/portal.tsx @@ -14,8 +14,8 @@ * limitations under the License. */ -import * as React from "react"; -import * as ReactDOM from "react-dom"; +import React from "react"; +import ReactDOM from "react-dom"; import * as Classes from "../../common/classes"; import { ValidationMap } from "../../common/context"; diff --git a/packages/core/src/components/progress-bar/progressBar.tsx b/packages/core/src/components/progress-bar/progressBar.tsx index 102892fd07..f6200f1cbb 100644 --- a/packages/core/src/components/progress-bar/progressBar.tsx +++ b/packages/core/src/components/progress-bar/progressBar.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes } from "../../common"; diff --git a/packages/core/src/components/resize-sensor/resizeSensor.tsx b/packages/core/src/components/resize-sensor/resizeSensor.tsx index d0a1ace5f2..dba6d2f125 100644 --- a/packages/core/src/components/resize-sensor/resizeSensor.tsx +++ b/packages/core/src/components/resize-sensor/resizeSensor.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { findDOMNode } from "react-dom"; import { polyfill } from "react-lifecycles-compat"; import ResizeObserver from "resize-observer-polyfill"; diff --git a/packages/core/src/components/slider/handle.tsx b/packages/core/src/components/slider/handle.tsx index 72f2741b0e..6e1aab560f 100644 --- a/packages/core/src/components/slider/handle.tsx +++ b/packages/core/src/components/slider/handle.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes, Keys } from "../../common"; diff --git a/packages/core/src/components/slider/handleProps.tsx b/packages/core/src/components/slider/handleProps.tsx index 8c646831ab..115968f36f 100644 --- a/packages/core/src/components/slider/handleProps.tsx +++ b/packages/core/src/components/slider/handleProps.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Intent, IProps } from "../../common"; diff --git a/packages/core/src/components/slider/multiSlider.tsx b/packages/core/src/components/slider/multiSlider.tsx index 891027b2f7..00abac31e9 100644 --- a/packages/core/src/components/slider/multiSlider.tsx +++ b/packages/core/src/components/slider/multiSlider.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes, Intent } from "../../common"; diff --git a/packages/core/src/components/slider/rangeSlider.tsx b/packages/core/src/components/slider/rangeSlider.tsx index 95d4f5b7c6..436f247de4 100644 --- a/packages/core/src/components/slider/rangeSlider.tsx +++ b/packages/core/src/components/slider/rangeSlider.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Intent } from "../../common"; diff --git a/packages/core/src/components/slider/slider.tsx b/packages/core/src/components/slider/slider.tsx index dff061591c..b6af52a348 100644 --- a/packages/core/src/components/slider/slider.tsx +++ b/packages/core/src/components/slider/slider.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Intent } from "../../common"; diff --git a/packages/core/src/components/spinner/spinner.tsx b/packages/core/src/components/spinner/spinner.tsx index 225ae74ffc..b5af4fcbb6 100644 --- a/packages/core/src/components/spinner/spinner.tsx +++ b/packages/core/src/components/spinner/spinner.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes } from "../../common"; diff --git a/packages/core/src/components/tabs/tab.tsx b/packages/core/src/components/tabs/tab.tsx index c21e24a940..34c1104ec1 100644 --- a/packages/core/src/components/tabs/tab.tsx +++ b/packages/core/src/components/tabs/tab.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes } from "../../common"; diff --git a/packages/core/src/components/tabs/tabTitle.tsx b/packages/core/src/components/tabs/tabTitle.tsx index fcbccd0d59..89d3b33553 100644 --- a/packages/core/src/components/tabs/tabTitle.tsx +++ b/packages/core/src/components/tabs/tabTitle.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes } from "../../common"; diff --git a/packages/core/src/components/tabs/tabs.tsx b/packages/core/src/components/tabs/tabs.tsx index c705e9ed1e..b5c0d22510 100644 --- a/packages/core/src/components/tabs/tabs.tsx +++ b/packages/core/src/components/tabs/tabs.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes, Keys } from "../../common"; diff --git a/packages/core/src/components/tag-input/tagInput.tsx b/packages/core/src/components/tag-input/tagInput.tsx index 39a768c6f5..6c0a1940a8 100644 --- a/packages/core/src/components/tag-input/tagInput.tsx +++ b/packages/core/src/components/tag-input/tagInput.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes, getRef, IRef, IRefObject, Keys, refHandler, Utils } from "../../common"; diff --git a/packages/core/src/components/tag/tag.tsx b/packages/core/src/components/tag/tag.tsx index 1d5dddac64..1255dfe926 100644 --- a/packages/core/src/components/tag/tag.tsx +++ b/packages/core/src/components/tag/tag.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { diff --git a/packages/core/src/components/text/text.tsx b/packages/core/src/components/text/text.tsx index ade484dc55..aa27110d4a 100644 --- a/packages/core/src/components/text/text.tsx +++ b/packages/core/src/components/text/text.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes } from "../../common"; diff --git a/packages/core/src/components/toast/toast.md b/packages/core/src/components/toast/toast.md index 5ff883c6ba..3f5aecd3ae 100644 --- a/packages/core/src/components/toast/toast.md +++ b/packages/core/src/components/toast/toast.md @@ -102,7 +102,7 @@ export const AppToaster = Toaster.create({ #### `application.ts` ```tsx import { Button } from "@blueprintjs/core"; -import * as React from "react"; +import React from "react"; import { AppToaster } from "./toaster"; export class App extends React.PureComponent { @@ -128,7 +128,7 @@ optionally attach a `ref` handler to access the instance methods, but we strongl ```tsx import { Button, Position, Toast, Toaster } from "@blueprintjs/core"; -import * as React from "react"; +import React from "react"; class MyComponent extends React.PureComponent { public state = { toasts: [ /* IToastProps[] */ ] } diff --git a/packages/core/src/components/toast/toast.tsx b/packages/core/src/components/toast/toast.tsx index b1f1b16001..aa885d86ab 100644 --- a/packages/core/src/components/toast/toast.tsx +++ b/packages/core/src/components/toast/toast.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes } from "../../common"; diff --git a/packages/core/src/components/toast/toaster.tsx b/packages/core/src/components/toast/toaster.tsx index 5df19990df..e78fdad069 100644 --- a/packages/core/src/components/toast/toaster.tsx +++ b/packages/core/src/components/toast/toaster.tsx @@ -15,8 +15,8 @@ */ import classNames from "classnames"; -import * as React from "react"; -import * as ReactDOM from "react-dom"; +import React from "react"; +import ReactDOM from "react-dom"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes, Position } from "../../common"; diff --git a/packages/core/src/components/tooltip/tooltip.tsx b/packages/core/src/components/tooltip/tooltip.tsx index e0dfeb08ea..86dd3ca0f0 100644 --- a/packages/core/src/components/tooltip/tooltip.tsx +++ b/packages/core/src/components/tooltip/tooltip.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes } from "../../common"; diff --git a/packages/core/src/components/tree/tree.tsx b/packages/core/src/components/tree/tree.tsx index ea849ebfe8..729ed39798 100644 --- a/packages/core/src/components/tree/tree.tsx +++ b/packages/core/src/components/tree/tree.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import * as Classes from "../../common/classes"; import { DISPLAYNAME_PREFIX, IProps } from "../../common/props"; diff --git a/packages/core/src/components/tree/treeNode.tsx b/packages/core/src/components/tree/treeNode.tsx index 9105379721..44ef307b9b 100644 --- a/packages/core/src/components/tree/treeNode.tsx +++ b/packages/core/src/components/tree/treeNode.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import * as Classes from "../../common/classes"; import { DISPLAYNAME_PREFIX, IProps, MaybeElement } from "../../common/props"; diff --git a/packages/core/test/alert/alertTests.tsx b/packages/core/test/alert/alertTests.tsx index 06692036ec..0b5a55492d 100644 --- a/packages/core/test/alert/alertTests.tsx +++ b/packages/core/test/alert/alertTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount, shallow, ShallowWrapper } from "enzyme"; -import * as React from "react"; +import React from "react"; import { SinonStub, spy, stub } from "sinon"; import { Alert, Button, Classes, IAlertProps, IButtonProps, Icon, Intent, Keys } from "../../src"; diff --git a/packages/core/test/breadcrumbs/breadcrumbTests.tsx b/packages/core/test/breadcrumbs/breadcrumbTests.tsx index 1bfb8dd048..6323ca34e8 100644 --- a/packages/core/test/breadcrumbs/breadcrumbTests.tsx +++ b/packages/core/test/breadcrumbs/breadcrumbTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { shallow } from "enzyme"; -import * as React from "react"; +import React from "react"; import { spy } from "sinon"; import { Breadcrumb, Classes, Icon } from "../../src"; diff --git a/packages/core/test/breadcrumbs/breadcrumbsTests.tsx b/packages/core/test/breadcrumbs/breadcrumbsTests.tsx index 4ffddd5ac4..54f07f2c27 100644 --- a/packages/core/test/breadcrumbs/breadcrumbsTests.tsx +++ b/packages/core/test/breadcrumbs/breadcrumbsTests.tsx @@ -16,8 +16,8 @@ import { assert } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import { Classes } from "../../src/common"; import { Boundary } from "../../src/common/boundary"; diff --git a/packages/core/test/buttons/buttonTests.tsx b/packages/core/test/buttons/buttonTests.tsx index 1b99845906..e8cdfdf8ee 100644 --- a/packages/core/test/buttons/buttonTests.tsx +++ b/packages/core/test/buttons/buttonTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount, shallow } from "enzyme"; -import * as React from "react"; +import React from "react"; import { spy } from "sinon"; import { AnchorButton, Button, Classes, IButtonProps, Icon, Spinner } from "../../src"; diff --git a/packages/core/test/callout/calloutTests.tsx b/packages/core/test/callout/calloutTests.tsx index 3466562366..1ec3605ca0 100644 --- a/packages/core/test/callout/calloutTests.tsx +++ b/packages/core/test/callout/calloutTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { shallow } from "enzyme"; -import * as React from "react"; +import React from "react"; import { Callout, Classes, H4, Icon, Intent } from "../../src"; diff --git a/packages/core/test/card/cardTests.tsx b/packages/core/test/card/cardTests.tsx index 101e4d6231..d33fd47ce5 100644 --- a/packages/core/test/card/cardTests.tsx +++ b/packages/core/test/card/cardTests.tsx @@ -16,8 +16,8 @@ import { assert } from "chai"; import { shallow } from "enzyme"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import { Card, Classes, H4 } from "../../src"; diff --git a/packages/core/test/collapse/collapseTests.tsx b/packages/core/test/collapse/collapseTests.tsx index ca1470b9c0..855e17e9d4 100644 --- a/packages/core/test/collapse/collapseTests.tsx +++ b/packages/core/test/collapse/collapseTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount, shallow } from "enzyme"; -import * as React from "react"; +import React from "react"; import { AnimationStates, Classes, Collapse, MenuItem } from "../../src"; diff --git a/packages/core/test/collapsible-list/collapsibleListTests.tsx b/packages/core/test/collapsible-list/collapsibleListTests.tsx index 3c9d696e84..738f96f40e 100644 --- a/packages/core/test/collapsible-list/collapsibleListTests.tsx +++ b/packages/core/test/collapsible-list/collapsibleListTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount, ReactWrapper } from "enzyme"; -import * as React from "react"; +import React from "react"; import { spy } from "sinon"; import { diff --git a/packages/core/test/common/utilsTests.tsx b/packages/core/test/common/utilsTests.tsx index 5ad3742da0..2c8a1b44dc 100644 --- a/packages/core/test/common/utilsTests.tsx +++ b/packages/core/test/common/utilsTests.tsx @@ -15,7 +15,7 @@ */ import { assert } from "chai"; -import * as React from "react"; +import React from "react"; import { SinonSpy, spy } from "sinon"; import * as Utils from "../../src/common/utils"; diff --git a/packages/core/test/context-menu/contextMenuTests.tsx b/packages/core/test/context-menu/contextMenuTests.tsx index b63a7240ad..75792dd2e5 100644 --- a/packages/core/test/context-menu/contextMenuTests.tsx +++ b/packages/core/test/context-menu/contextMenuTests.tsx @@ -18,7 +18,7 @@ import { assert } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; +import React from "react"; import { spy } from "sinon"; import { Classes, ContextMenu, ContextMenuTarget, Menu, MenuItem } from "../../src"; diff --git a/packages/core/test/controls/controlsTests.tsx b/packages/core/test/controls/controlsTests.tsx index 03e2f4497b..a221089f92 100644 --- a/packages/core/test/controls/controlsTests.tsx +++ b/packages/core/test/controls/controlsTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; +import React from "react"; import { Classes } from "../../src"; import { Checkbox, IControlProps, Radio, Switch } from "../../src/components/forms/controls"; diff --git a/packages/core/test/controls/inputGroupTests.tsx b/packages/core/test/controls/inputGroupTests.tsx index 6b43c774d2..1d97757072 100644 --- a/packages/core/test/controls/inputGroupTests.tsx +++ b/packages/core/test/controls/inputGroupTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; +import React from "react"; import { spy } from "sinon"; import { Classes, Icon, InputGroup } from "../../src"; diff --git a/packages/core/test/controls/numericInputTests.tsx b/packages/core/test/controls/numericInputTests.tsx index ea729c1510..50f32968aa 100644 --- a/packages/core/test/controls/numericInputTests.tsx +++ b/packages/core/test/controls/numericInputTests.tsx @@ -21,7 +21,7 @@ import { shallow as untypedShallow, ShallowRendererProps, } from "enzyme"; -import * as React from "react"; +import React from "react"; import { spy } from "sinon"; import { dispatchMouseEvent, expectPropValidationError } from "@blueprintjs/test-commons"; diff --git a/packages/core/test/controls/radioGroupTests.tsx b/packages/core/test/controls/radioGroupTests.tsx index 523ac6b7b1..8282d02c39 100644 --- a/packages/core/test/controls/radioGroupTests.tsx +++ b/packages/core/test/controls/radioGroupTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { EnzymePropSelector, mount, ReactWrapper } from "enzyme"; -import * as React from "react"; +import React from "react"; import { spy, stub } from "sinon"; import { IOptionProps, Radio, RadioGroup } from "../../src"; diff --git a/packages/core/test/dialog/dialogTests.tsx b/packages/core/test/dialog/dialogTests.tsx index 2bfc59b80f..c4f672f946 100644 --- a/packages/core/test/dialog/dialogTests.tsx +++ b/packages/core/test/dialog/dialogTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; +import React from "react"; import { spy } from "sinon"; import { Button, Classes, Dialog, H4, Icon } from "../../src"; diff --git a/packages/core/test/drawer/drawerTests.tsx b/packages/core/test/drawer/drawerTests.tsx index 43e5a96332..57a1432efb 100644 --- a/packages/core/test/drawer/drawerTests.tsx +++ b/packages/core/test/drawer/drawerTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; +import React from "react"; import { spy, stub } from "sinon"; import { Button, Classes, Drawer, Position } from "../../src"; diff --git a/packages/core/test/editable-text/editableTextTests.tsx b/packages/core/test/editable-text/editableTextTests.tsx index ab7a1bd48f..94604ad91c 100644 --- a/packages/core/test/editable-text/editableTextTests.tsx +++ b/packages/core/test/editable-text/editableTextTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount, ReactWrapper, shallow } from "enzyme"; -import * as React from "react"; +import React from "react"; import { spy } from "sinon"; import { EditableText } from "../../src"; diff --git a/packages/core/test/forms/asyncControllableInputTests.tsx b/packages/core/test/forms/asyncControllableInputTests.tsx index 986ff6141d..132b2fb683 100644 --- a/packages/core/test/forms/asyncControllableInputTests.tsx +++ b/packages/core/test/forms/asyncControllableInputTests.tsx @@ -18,7 +18,7 @@ import { assert } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; +import React from "react"; import { spy } from "sinon"; // this component is not part of the public API, but we want to test its implementation in isolation diff --git a/packages/core/test/forms/fileInputTests.tsx b/packages/core/test/forms/fileInputTests.tsx index a2c3794dc7..c029562b4b 100644 --- a/packages/core/test/forms/fileInputTests.tsx +++ b/packages/core/test/forms/fileInputTests.tsx @@ -16,8 +16,8 @@ import { assert } from "chai"; import { mount, ReactWrapper, shallow, ShallowWrapper } from "enzyme"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import { Classes, FileInput } from "../../src"; diff --git a/packages/core/test/forms/formGroupTests.tsx b/packages/core/test/forms/formGroupTests.tsx index 46600e5c8e..5f4d2f384f 100644 --- a/packages/core/test/forms/formGroupTests.tsx +++ b/packages/core/test/forms/formGroupTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { shallow } from "enzyme"; -import * as React from "react"; +import React from "react"; import { Classes, FormGroup, Intent } from "../../src"; diff --git a/packages/core/test/forms/textAreaTests.tsx b/packages/core/test/forms/textAreaTests.tsx index 5a789cfc12..82aea81d19 100644 --- a/packages/core/test/forms/textAreaTests.tsx +++ b/packages/core/test/forms/textAreaTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; +import React from "react"; import { TextArea } from "../../src"; diff --git a/packages/core/test/hotkeys/hotkeysTests.tsx b/packages/core/test/hotkeys/hotkeysTests.tsx index fdc27145d2..4fcab4f49a 100644 --- a/packages/core/test/hotkeys/hotkeysTests.tsx +++ b/packages/core/test/hotkeys/hotkeysTests.tsx @@ -18,7 +18,7 @@ import { assert, expect } from "chai"; import { mount, ReactWrapper } from "enzyme"; -import * as React from "react"; +import React from "react"; import { SinonSpy, spy } from "sinon"; import { dispatchTestKeyboardEvent, expectPropValidationError } from "@blueprintjs/test-commons"; diff --git a/packages/core/test/html-select/htmlSelectTests.tsx b/packages/core/test/html-select/htmlSelectTests.tsx index 8d255adb1b..57313a479b 100644 --- a/packages/core/test/html-select/htmlSelectTests.tsx +++ b/packages/core/test/html-select/htmlSelectTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; +import React from "react"; import { HTMLSelect, IOptionProps } from "../../src"; diff --git a/packages/core/test/icon/iconTests.tsx b/packages/core/test/icon/iconTests.tsx index 8eff4532f8..0f11ce4615 100644 --- a/packages/core/test/icon/iconTests.tsx +++ b/packages/core/test/icon/iconTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { shallow } from "enzyme"; -import * as React from "react"; +import React from "react"; import { IconName } from "@blueprintjs/icons"; diff --git a/packages/core/test/menu/menuItemTests.tsx b/packages/core/test/menu/menuItemTests.tsx index 4daad387b5..5f62f45110 100644 --- a/packages/core/test/menu/menuItemTests.tsx +++ b/packages/core/test/menu/menuItemTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount, ReactWrapper, shallow, ShallowWrapper } from "enzyme"; -import * as React from "react"; +import React from "react"; import { spy } from "sinon"; import { diff --git a/packages/core/test/menu/menuTests.tsx b/packages/core/test/menu/menuTests.tsx index d2142a4c79..8364a32f5e 100644 --- a/packages/core/test/menu/menuTests.tsx +++ b/packages/core/test/menu/menuTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { shallow } from "enzyme"; -import * as React from "react"; +import React from "react"; import { Classes, H6, Menu, MenuDivider, MenuItem } from "../../src"; diff --git a/packages/core/test/multistep-dialog/multistepDialogTests.tsx b/packages/core/test/multistep-dialog/multistepDialogTests.tsx index 50860ad0f7..919c6fa554 100644 --- a/packages/core/test/multistep-dialog/multistepDialogTests.tsx +++ b/packages/core/test/multistep-dialog/multistepDialogTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; +import React from "react"; import { Classes, MultistepDialog, DialogStep } from "../../src"; diff --git a/packages/core/test/non-ideal-state/nonIdealStateTests.tsx b/packages/core/test/non-ideal-state/nonIdealStateTests.tsx index 6f1a088ec2..d2f3f651a6 100644 --- a/packages/core/test/non-ideal-state/nonIdealStateTests.tsx +++ b/packages/core/test/non-ideal-state/nonIdealStateTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { shallow } from "enzyme"; -import * as React from "react"; +import React from "react"; import { Classes, H4, NonIdealState } from "../../src"; diff --git a/packages/core/test/overflow-list/overflowListTests.tsx b/packages/core/test/overflow-list/overflowListTests.tsx index 497fe91544..5f75ac46ed 100644 --- a/packages/core/test/overflow-list/overflowListTests.tsx +++ b/packages/core/test/overflow-list/overflowListTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount, ReactWrapper } from "enzyme"; -import * as React from "react"; +import React from "react"; import { spy } from "sinon"; import { IOverflowListProps, IOverflowListState, OverflowList } from "../../src/components/overflow-list/overflowList"; diff --git a/packages/core/test/overlay/overlayTests.tsx b/packages/core/test/overlay/overlayTests.tsx index bea56bd4f6..dff37ce63a 100644 --- a/packages/core/test/overlay/overlayTests.tsx +++ b/packages/core/test/overlay/overlayTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount, ReactWrapper, shallow } from "enzyme"; -import * as React from "react"; +import React from "react"; import { spy } from "sinon"; import { dispatchMouseEvent } from "@blueprintjs/test-commons"; diff --git a/packages/core/test/panel-stack/panelStackTests.tsx b/packages/core/test/panel-stack/panelStackTests.tsx index 78d0ebd1e8..6c836e2295 100644 --- a/packages/core/test/panel-stack/panelStackTests.tsx +++ b/packages/core/test/panel-stack/panelStackTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount, ReactWrapper } from "enzyme"; -import * as React from "react"; +import React from "react"; import { spy } from "sinon"; import { Classes, IPanel, IPanelProps, IPanelStackProps, PanelStack } from "../../src"; diff --git a/packages/core/test/popover/popoverTests.tsx b/packages/core/test/popover/popoverTests.tsx index 956c54bee5..7fbdc98b16 100644 --- a/packages/core/test/popover/popoverTests.tsx +++ b/packages/core/test/popover/popoverTests.tsx @@ -16,8 +16,8 @@ import { assert } from "chai"; import { mount, ReactWrapper, shallow } from "enzyme"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import { dispatchMouseEvent, expectPropValidationError } from "@blueprintjs/test-commons"; diff --git a/packages/core/test/portal/portalTests.tsx b/packages/core/test/portal/portalTests.tsx index 0cb4c2330e..0838ba298c 100644 --- a/packages/core/test/portal/portalTests.tsx +++ b/packages/core/test/portal/portalTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount, ReactWrapper } from "enzyme"; -import * as React from "react"; +import React from "react"; import { Classes, IPortalProps, Portal } from "../../src"; diff --git a/packages/core/test/progress/progressBarTests.tsx b/packages/core/test/progress/progressBarTests.tsx index 524c172e1a..4ca22644d4 100644 --- a/packages/core/test/progress/progressBarTests.tsx +++ b/packages/core/test/progress/progressBarTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; +import React from "react"; import { Classes, ProgressBar } from "../../src"; diff --git a/packages/core/test/resize-sensor/resizeSensorTests.tsx b/packages/core/test/resize-sensor/resizeSensorTests.tsx index 1634f67a03..e449d8a0f5 100644 --- a/packages/core/test/resize-sensor/resizeSensorTests.tsx +++ b/packages/core/test/resize-sensor/resizeSensorTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount, ReactWrapper } from "enzyme"; -import * as React from "react"; +import React from "react"; import { spy } from "sinon"; import { IResizeSensorProps, ResizeSensor } from "../../src/components/resize-sensor/resizeSensor"; diff --git a/packages/core/test/slider/handleTests.tsx b/packages/core/test/slider/handleTests.tsx index 6b3491a447..2bac6e7602 100644 --- a/packages/core/test/slider/handleTests.tsx +++ b/packages/core/test/slider/handleTests.tsx @@ -16,8 +16,8 @@ import { assert } from "chai"; import { mount, ReactWrapper } from "enzyme"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import { ARROW_DOWN, ARROW_UP } from "../../src/common/keys"; import { Handle, IHandleState, IInternalHandleProps } from "../../src/components/slider/handle"; diff --git a/packages/core/test/slider/multiSliderTests.tsx b/packages/core/test/slider/multiSliderTests.tsx index 7c8549e5bb..7e9c2fe96e 100644 --- a/packages/core/test/slider/multiSliderTests.tsx +++ b/packages/core/test/slider/multiSliderTests.tsx @@ -16,9 +16,9 @@ import { assert } from "chai"; import { mount, ReactWrapper } from "enzyme"; -import * as React from "react"; -import * as ReactDOM from "react-dom"; -import * as sinon from "sinon"; +import React from "react"; +import ReactDOM from "react-dom"; +import sinon from "sinon"; import { expectPropValidationError } from "@blueprintjs/test-commons"; diff --git a/packages/core/test/slider/rangeSliderTests.tsx b/packages/core/test/slider/rangeSliderTests.tsx index 1dfb27b6d7..9f82b747d6 100644 --- a/packages/core/test/slider/rangeSliderTests.tsx +++ b/packages/core/test/slider/rangeSliderTests.tsx @@ -16,8 +16,8 @@ import { assert } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import { expectPropValidationError } from "@blueprintjs/test-commons"; diff --git a/packages/core/test/slider/sliderTests.tsx b/packages/core/test/slider/sliderTests.tsx index c8c7305e68..220bee620a 100644 --- a/packages/core/test/slider/sliderTests.tsx +++ b/packages/core/test/slider/sliderTests.tsx @@ -16,8 +16,8 @@ import { assert } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import { Classes, Slider } from "../../src"; import { ARROW_UP } from "../../src/common/keys"; diff --git a/packages/core/test/spinner/spinnerTests.tsx b/packages/core/test/spinner/spinnerTests.tsx index d2684770cd..5c7b7ebf6f 100644 --- a/packages/core/test/spinner/spinnerTests.tsx +++ b/packages/core/test/spinner/spinnerTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount, ReactWrapper } from "enzyme"; -import * as React from "react"; +import React from "react"; import { stub } from "sinon"; import { Classes, Spinner } from "../../src"; diff --git a/packages/core/test/tabs/tabsTests.tsx b/packages/core/test/tabs/tabsTests.tsx index 269348000a..1f6e005e1c 100644 --- a/packages/core/test/tabs/tabsTests.tsx +++ b/packages/core/test/tabs/tabsTests.tsx @@ -15,7 +15,7 @@ import { assert } from "chai"; import { mount, ReactWrapper } from "enzyme"; -import * as React from "react"; +import React from "react"; import { spy } from "sinon"; import * as Classes from "../../src/common/classes"; diff --git a/packages/core/test/tag-input/tagInputTests.tsx b/packages/core/test/tag-input/tagInputTests.tsx index 40fd715423..34147a4eef 100644 --- a/packages/core/test/tag-input/tagInputTests.tsx +++ b/packages/core/test/tag-input/tagInputTests.tsx @@ -22,8 +22,8 @@ import { ShallowRendererProps, ShallowWrapper, } from "enzyme"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import { Button, Classes, Intent, ITagInputProps, Keys, Tag, TagInput } from "../../src"; diff --git a/packages/core/test/tag/tagTests.tsx b/packages/core/test/tag/tagTests.tsx index c4d963fd26..be147782a3 100644 --- a/packages/core/test/tag/tagTests.tsx +++ b/packages/core/test/tag/tagTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount, shallow } from "enzyme"; -import * as React from "react"; +import React from "react"; import { spy } from "sinon"; import { Classes, Icon, Tag, Text } from "../../src"; diff --git a/packages/core/test/text/textTests.tsx b/packages/core/test/text/textTests.tsx index 611fcc7f6a..82bce8c1ea 100644 --- a/packages/core/test/text/textTests.tsx +++ b/packages/core/test/text/textTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; +import React from "react"; import { Classes, Text } from "../../src"; diff --git a/packages/core/test/toast/toastTests.tsx b/packages/core/test/toast/toastTests.tsx index 708fe56052..68f1bdb393 100644 --- a/packages/core/test/toast/toastTests.tsx +++ b/packages/core/test/toast/toastTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount, shallow } from "enzyme"; -import * as React from "react"; +import React from "react"; import { SinonSpy, spy } from "sinon"; import { AnchorButton, Button, Toast } from "../../src"; diff --git a/packages/core/test/toast/toasterTests.ts b/packages/core/test/toast/toasterTests.ts index 818d5655cc..b8e210a72f 100644 --- a/packages/core/test/toast/toasterTests.ts +++ b/packages/core/test/toast/toasterTests.ts @@ -16,8 +16,8 @@ import { assert } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; -import * as ReactDOM from "react-dom"; +import React from "react"; +import ReactDOM from "react-dom"; import { spy } from "sinon"; import { expectPropValidationError } from "@blueprintjs/test-commons"; diff --git a/packages/core/test/tooltip/tooltipTests.tsx b/packages/core/test/tooltip/tooltipTests.tsx index 9fdd2f539c..c4368fc54b 100644 --- a/packages/core/test/tooltip/tooltipTests.tsx +++ b/packages/core/test/tooltip/tooltipTests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; +import React from "react"; import { spy, stub } from "sinon"; import { Classes, ITooltipProps, Overlay, Popover, Tooltip } from "../../src"; diff --git a/packages/core/test/tree/treeTests.tsx b/packages/core/test/tree/treeTests.tsx index 0b1ba855ff..e74a452026 100644 --- a/packages/core/test/tree/treeTests.tsx +++ b/packages/core/test/tree/treeTests.tsx @@ -16,8 +16,8 @@ import { assert } from "chai"; import { mount, ReactWrapper } from "enzyme"; -import * as React from "react"; -import * as ReactDOM from "react-dom"; +import React from "react"; +import ReactDOM from "react-dom"; import { spy } from "sinon"; import { Classes, ITreeNode, ITreeProps, Tree } from "../../src"; diff --git a/packages/datetime/src/dateInput.tsx b/packages/datetime/src/dateInput.tsx index e6544ec618..eb3ec794db 100644 --- a/packages/datetime/src/dateInput.tsx +++ b/packages/datetime/src/dateInput.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import type { DayPickerProps } from "react-day-picker"; import { polyfill } from "react-lifecycles-compat"; diff --git a/packages/datetime/src/datePicker.tsx b/packages/datetime/src/datePicker.tsx index 9ff31c62c7..733fa93e67 100644 --- a/packages/datetime/src/datePicker.tsx +++ b/packages/datetime/src/datePicker.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import DayPicker, { CaptionElementProps, DayModifiers, NavbarElementProps } from "react-day-picker"; import { polyfill } from "react-lifecycles-compat"; diff --git a/packages/datetime/src/datePickerCaption.tsx b/packages/datetime/src/datePickerCaption.tsx index c4113ce28f..0856ecc23c 100644 --- a/packages/datetime/src/datePickerCaption.tsx +++ b/packages/datetime/src/datePickerCaption.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { CaptionElementProps } from "react-day-picker"; import { polyfill } from "react-lifecycles-compat"; diff --git a/packages/datetime/src/datePickerNavbar.tsx b/packages/datetime/src/datePickerNavbar.tsx index 768e9e7c0c..a358b7aa11 100644 --- a/packages/datetime/src/datePickerNavbar.tsx +++ b/packages/datetime/src/datePickerNavbar.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { NavbarElementProps } from "react-day-picker"; import { Button } from "@blueprintjs/core"; diff --git a/packages/datetime/src/dateRangeInput.tsx b/packages/datetime/src/dateRangeInput.tsx index c73b67a8f3..440a18e72f 100644 --- a/packages/datetime/src/dateRangeInput.tsx +++ b/packages/datetime/src/dateRangeInput.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import DayPicker from "react-day-picker"; import { polyfill } from "react-lifecycles-compat"; diff --git a/packages/datetime/src/dateRangePicker.tsx b/packages/datetime/src/dateRangePicker.tsx index a39018aea6..f4ac3e64f6 100644 --- a/packages/datetime/src/dateRangePicker.tsx +++ b/packages/datetime/src/dateRangePicker.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import DayPicker, { CaptionElementProps, DayModifiers, DayPickerProps, NavbarElementProps } from "react-day-picker"; import { polyfill } from "react-lifecycles-compat"; diff --git a/packages/datetime/src/dateTimePicker.tsx b/packages/datetime/src/dateTimePicker.tsx index c3036c0916..3d76df8d01 100644 --- a/packages/datetime/src/dateTimePicker.tsx +++ b/packages/datetime/src/dateTimePicker.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, DISPLAYNAME_PREFIX, IProps } from "@blueprintjs/core"; diff --git a/packages/datetime/src/shortcuts.tsx b/packages/datetime/src/shortcuts.tsx index b928e40829..f41242c6ff 100644 --- a/packages/datetime/src/shortcuts.tsx +++ b/packages/datetime/src/shortcuts.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Classes, Menu, MenuItem } from "@blueprintjs/core"; diff --git a/packages/datetime/src/timePicker.tsx b/packages/datetime/src/timePicker.tsx index f5549d6fbd..cf69e6a197 100644 --- a/packages/datetime/src/timePicker.tsx +++ b/packages/datetime/src/timePicker.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Classes as CoreClasses, DISPLAYNAME_PREFIX, HTMLSelect, Icon, Intent, IProps, Keys } from "@blueprintjs/core"; diff --git a/packages/datetime/test/dateInputTests.tsx b/packages/datetime/test/dateInputTests.tsx index 68c8494720..211d207393 100644 --- a/packages/datetime/test/dateInputTests.tsx +++ b/packages/datetime/test/dateInputTests.tsx @@ -16,8 +16,8 @@ import { assert } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import { Classes as CoreClasses, InputGroup, Intent, Keys, Popover, Position } from "@blueprintjs/core"; diff --git a/packages/datetime/test/datePickerCaptionTests.tsx b/packages/datetime/test/datePickerCaptionTests.tsx index 89e0c2bb91..a26b3d6a59 100644 --- a/packages/datetime/test/datePickerCaptionTests.tsx +++ b/packages/datetime/test/datePickerCaptionTests.tsx @@ -16,8 +16,8 @@ import { assert } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import { HTMLSelect } from "@blueprintjs/core"; diff --git a/packages/datetime/test/datePickerTests.tsx b/packages/datetime/test/datePickerTests.tsx index 0cb5971c06..14ce70bb65 100644 --- a/packages/datetime/test/datePickerTests.tsx +++ b/packages/datetime/test/datePickerTests.tsx @@ -16,9 +16,9 @@ import { assert } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; +import React from "react"; import ReactDayPicker from "react-day-picker"; -import * as sinon from "sinon"; +import sinon from "sinon"; import { Button, Classes as CoreClasses, HTMLSelect, Menu, MenuItem } from "@blueprintjs/core"; import { expectPropValidationError } from "@blueprintjs/test-commons"; diff --git a/packages/datetime/test/dateRangeInputTests.tsx b/packages/datetime/test/dateRangeInputTests.tsx index 89e87a389c..bebe6aaad9 100644 --- a/packages/datetime/test/dateRangeInputTests.tsx +++ b/packages/datetime/test/dateRangeInputTests.tsx @@ -16,10 +16,10 @@ import { expect } from "chai"; import { mount, ReactWrapper } from "enzyme"; -import * as React from "react"; -import * as ReactDOM from "react-dom"; +import React from "react"; +import ReactDOM from "react-dom"; import * as TestUtils from "react-dom/test-utils"; -import * as sinon from "sinon"; +import sinon from "sinon"; import { Boundary, diff --git a/packages/datetime/test/dateRangePickerTests.tsx b/packages/datetime/test/dateRangePickerTests.tsx index 9041eef68c..e57c92314c 100644 --- a/packages/datetime/test/dateRangePickerTests.tsx +++ b/packages/datetime/test/dateRangePickerTests.tsx @@ -16,9 +16,9 @@ import { assert } from "chai"; import { mount, ReactWrapper } from "enzyme"; -import * as React from "react"; +import React from "react"; import ReactDayPicker from "react-day-picker"; -import * as sinon from "sinon"; +import sinon from "sinon"; import { Button, Classes, Menu, MenuItem } from "@blueprintjs/core"; import { expectPropValidationError } from "@blueprintjs/test-commons"; diff --git a/packages/datetime/test/dateTimePickerTests.tsx b/packages/datetime/test/dateTimePickerTests.tsx index 0bffbe8958..9490157fb2 100644 --- a/packages/datetime/test/dateTimePickerTests.tsx +++ b/packages/datetime/test/dateTimePickerTests.tsx @@ -19,8 +19,8 @@ import { assert } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import { Classes, DatePicker, TimePicker } from "../src"; import { DateTimePicker } from "../src/dateTimePicker"; diff --git a/packages/datetime/test/timePickerTests.tsx b/packages/datetime/test/timePickerTests.tsx index b38eb44a00..be5f04c912 100644 --- a/packages/datetime/test/timePickerTests.tsx +++ b/packages/datetime/test/timePickerTests.tsx @@ -16,10 +16,10 @@ import { assert } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; -import * as ReactDOM from "react-dom"; +import React from "react"; +import ReactDOM from "react-dom"; import * as TestUtils from "react-dom/test-utils"; -import * as sinon from "sinon"; +import sinon from "sinon"; import { Classes as CoreClasses, Intent, Keys } from "@blueprintjs/core"; diff --git a/packages/docs-app/src/components/blueprintDocs.tsx b/packages/docs-app/src/components/blueprintDocs.tsx index 4d09fe7814..e24bc3c807 100644 --- a/packages/docs-app/src/components/blueprintDocs.tsx +++ b/packages/docs-app/src/components/blueprintDocs.tsx @@ -16,7 +16,7 @@ import { IHeadingNode, IPageData, isPageNode, ITsDocBase } from "@documentalist/client"; import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { AnchorButton, Classes, HotkeysProvider, Tag } from "@blueprintjs/core"; import { IDocsCompleteData } from "@blueprintjs/docs-data"; diff --git a/packages/docs-app/src/components/clickToCopy.tsx b/packages/docs-app/src/components/clickToCopy.tsx index 7640868a18..30c45735ff 100644 --- a/packages/docs-app/src/components/clickToCopy.tsx +++ b/packages/docs-app/src/components/clickToCopy.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { HTMLDivProps, IProps, Keys, removeNonHTMLProps } from "@blueprintjs/core"; import { createKeyEventHandler } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/components/colorPalettes.tsx b/packages/docs-app/src/components/colorPalettes.tsx index 2dea8963b0..147adc153e 100644 --- a/packages/docs-app/src/components/colorPalettes.tsx +++ b/packages/docs-app/src/components/colorPalettes.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Classes, Colors, Pre } from "@blueprintjs/core"; diff --git a/packages/docs-app/src/components/colorSchemes.tsx b/packages/docs-app/src/components/colorSchemes.tsx index a8caf0f497..48490c1ed9 100644 --- a/packages/docs-app/src/components/colorSchemes.tsx +++ b/packages/docs-app/src/components/colorSchemes.tsx @@ -16,7 +16,7 @@ import * as chroma from "chroma-js"; import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Classes, Keys, RadioGroup } from "@blueprintjs/core"; import { createKeyEventHandler, handleNumberChange } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/components/docsIcon.tsx b/packages/docs-app/src/components/docsIcon.tsx index 9f9d9a3597..580cfa49fe 100644 --- a/packages/docs-app/src/components/docsIcon.tsx +++ b/packages/docs-app/src/components/docsIcon.tsx @@ -16,7 +16,7 @@ import classNames from "classnames"; import download from "downloadjs"; -import * as React from "react"; +import React from "react"; import { Classes, ContextMenuTarget, Icon, IconName, Menu, MenuItem } from "@blueprintjs/core"; diff --git a/packages/docs-app/src/components/icons.tsx b/packages/docs-app/src/components/icons.tsx index aa7f2356ef..2df9ee4922 100644 --- a/packages/docs-app/src/components/icons.tsx +++ b/packages/docs-app/src/components/icons.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Classes, H3, InputGroup, NonIdealState } from "@blueprintjs/core"; import { smartSearch } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/components/logo.tsx b/packages/docs-app/src/components/logo.tsx index da61447564..ce22213934 100644 --- a/packages/docs-app/src/components/logo.tsx +++ b/packages/docs-app/src/components/logo.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; export const Logo: React.FunctionComponent = () => ( diff --git a/packages/docs-app/src/components/navHeader.tsx b/packages/docs-app/src/components/navHeader.tsx index ebccca795e..5f01cdf740 100644 --- a/packages/docs-app/src/components/navHeader.tsx +++ b/packages/docs-app/src/components/navHeader.tsx @@ -15,7 +15,7 @@ */ import { INpmPackage } from "@documentalist/client"; -import * as React from "react"; +import React from "react"; import { Classes, HotkeysTarget2, Menu, MenuItem, NavbarHeading, Tag } from "@blueprintjs/core"; import { NavButton } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/components/resources.tsx b/packages/docs-app/src/components/resources.tsx index 60c991627f..f9911180a5 100644 --- a/packages/docs-app/src/components/resources.tsx +++ b/packages/docs-app/src/components/resources.tsx @@ -15,7 +15,7 @@ */ import download from "downloadjs"; -import * as React from "react"; +import React from "react"; import { Callout, Card } from "@blueprintjs/core"; diff --git a/packages/docs-app/src/components/welcome.tsx b/packages/docs-app/src/components/welcome.tsx index edee07a155..1e1a4d6e24 100644 --- a/packages/docs-app/src/components/welcome.tsx +++ b/packages/docs-app/src/components/welcome.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Card, H4, Icon, IconName } from "@blueprintjs/core"; diff --git a/packages/docs-app/src/examples/core-examples/alertExample.tsx b/packages/docs-app/src/examples/core-examples/alertExample.tsx index 3924414a32..c1b485a329 100644 --- a/packages/docs-app/src/examples/core-examples/alertExample.tsx +++ b/packages/docs-app/src/examples/core-examples/alertExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Alert, Button, H5, Intent, IToaster, Switch, Toaster } from "@blueprintjs/core"; import { Example, handleBooleanChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/breadcrumbsExample.tsx b/packages/docs-app/src/examples/core-examples/breadcrumbsExample.tsx index f8e2007de0..95b1c3c0ce 100644 --- a/packages/docs-app/src/examples/core-examples/breadcrumbsExample.tsx +++ b/packages/docs-app/src/examples/core-examples/breadcrumbsExample.tsx @@ -16,7 +16,7 @@ /* eslint-disable max-classes-per-file */ -import * as React from "react"; +import React from "react"; import { Boundary, diff --git a/packages/docs-app/src/examples/core-examples/buttonGroupExample.tsx b/packages/docs-app/src/examples/core-examples/buttonGroupExample.tsx index 6f4bb7331b..dcb80a6892 100644 --- a/packages/docs-app/src/examples/core-examples/buttonGroupExample.tsx +++ b/packages/docs-app/src/examples/core-examples/buttonGroupExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Alignment, AnchorButton, Button, ButtonGroup, H5, Switch } from "@blueprintjs/core"; import { Example, handleBooleanChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/buttonGroupPopoverExample.tsx b/packages/docs-app/src/examples/core-examples/buttonGroupPopoverExample.tsx index 7fa085dcbf..03ba674d68 100644 --- a/packages/docs-app/src/examples/core-examples/buttonGroupPopoverExample.tsx +++ b/packages/docs-app/src/examples/core-examples/buttonGroupPopoverExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Alignment, Button, ButtonGroup, H5, IconName, Switch } from "@blueprintjs/core"; import { Example, handleBooleanChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/buttonsExample.tsx b/packages/docs-app/src/examples/core-examples/buttonsExample.tsx index 95d5b25278..0309d2a486 100644 --- a/packages/docs-app/src/examples/core-examples/buttonsExample.tsx +++ b/packages/docs-app/src/examples/core-examples/buttonsExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { AnchorButton, Button, Code, H5, Intent, Switch } from "@blueprintjs/core"; import { Example, handleBooleanChange, handleStringChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/buttonsIconsExample.tsx b/packages/docs-app/src/examples/core-examples/buttonsIconsExample.tsx index 1c84d6fa9d..a7ba74396e 100644 --- a/packages/docs-app/src/examples/core-examples/buttonsIconsExample.tsx +++ b/packages/docs-app/src/examples/core-examples/buttonsIconsExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, Icon } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/calloutExample.tsx b/packages/docs-app/src/examples/core-examples/calloutExample.tsx index 98e5619eca..d0dc84029e 100644 --- a/packages/docs-app/src/examples/core-examples/calloutExample.tsx +++ b/packages/docs-app/src/examples/core-examples/calloutExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Callout, Code, H5, Intent, Switch } from "@blueprintjs/core"; import { Example, handleBooleanChange, handleValueChange, IDocsExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/cardExample.tsx b/packages/docs-app/src/examples/core-examples/cardExample.tsx index a3edd1482e..841ce0266f 100644 --- a/packages/docs-app/src/examples/core-examples/cardExample.tsx +++ b/packages/docs-app/src/examples/core-examples/cardExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, Card, Classes, Elevation, H5, Label, Slider, Switch } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/checkboxExample.tsx b/packages/docs-app/src/examples/core-examples/checkboxExample.tsx index a085da87ce..7a4e78183f 100644 --- a/packages/docs-app/src/examples/core-examples/checkboxExample.tsx +++ b/packages/docs-app/src/examples/core-examples/checkboxExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Alignment, Checkbox, H5, Label, Switch } from "@blueprintjs/core"; import { Example, handleBooleanChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/collapseExample.tsx b/packages/docs-app/src/examples/core-examples/collapseExample.tsx index 320649e09b..45414ccba7 100644 --- a/packages/docs-app/src/examples/core-examples/collapseExample.tsx +++ b/packages/docs-app/src/examples/core-examples/collapseExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, Collapse, H5, Pre, Switch } from "@blueprintjs/core"; import { Example, handleBooleanChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/collapsibleListExample.tsx b/packages/docs-app/src/examples/core-examples/collapsibleListExample.tsx index 5dafa0d53e..3f63dea9c7 100644 --- a/packages/docs-app/src/examples/core-examples/collapsibleListExample.tsx +++ b/packages/docs-app/src/examples/core-examples/collapsibleListExample.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Boundary, diff --git a/packages/docs-app/src/examples/core-examples/common/alignmentSelect.tsx b/packages/docs-app/src/examples/core-examples/common/alignmentSelect.tsx index abe4896c0a..a0d900238d 100644 --- a/packages/docs-app/src/examples/core-examples/common/alignmentSelect.tsx +++ b/packages/docs-app/src/examples/core-examples/common/alignmentSelect.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Alignment, Button, ButtonGroup } from "@blueprintjs/core"; diff --git a/packages/docs-app/src/examples/core-examples/common/fileMenu.tsx b/packages/docs-app/src/examples/core-examples/common/fileMenu.tsx index 085941712c..3106fb4ff7 100644 --- a/packages/docs-app/src/examples/core-examples/common/fileMenu.tsx +++ b/packages/docs-app/src/examples/core-examples/common/fileMenu.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { IProps, Menu, MenuDivider, MenuItem } from "@blueprintjs/core"; diff --git a/packages/docs-app/src/examples/core-examples/common/iconSelect.tsx b/packages/docs-app/src/examples/core-examples/common/iconSelect.tsx index 8da17e1e4c..1c8fad7e66 100644 --- a/packages/docs-app/src/examples/core-examples/common/iconSelect.tsx +++ b/packages/docs-app/src/examples/core-examples/common/iconSelect.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Alignment, Button, Classes, MenuItem } from "@blueprintjs/core"; import { IconName, IconNames } from "@blueprintjs/icons"; diff --git a/packages/docs-app/src/examples/core-examples/common/intentSelect.tsx b/packages/docs-app/src/examples/core-examples/common/intentSelect.tsx index 8e432424e7..c0e7b99ef8 100644 --- a/packages/docs-app/src/examples/core-examples/common/intentSelect.tsx +++ b/packages/docs-app/src/examples/core-examples/common/intentSelect.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { HTMLSelect, Intent, Label } from "@blueprintjs/core"; diff --git a/packages/docs-app/src/examples/core-examples/contextMenuExample.tsx b/packages/docs-app/src/examples/core-examples/contextMenuExample.tsx index dcf9a139b0..d5d89536bd 100644 --- a/packages/docs-app/src/examples/core-examples/contextMenuExample.tsx +++ b/packages/docs-app/src/examples/core-examples/contextMenuExample.tsx @@ -17,7 +17,7 @@ /* eslint-disable max-classes-per-file */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Classes, ContextMenu, ContextMenuTarget, Menu, MenuDivider, MenuItem } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/controlGroupExample.tsx b/packages/docs-app/src/examples/core-examples/controlGroupExample.tsx index b8e9ec745d..5d23ecc5bf 100644 --- a/packages/docs-app/src/examples/core-examples/controlGroupExample.tsx +++ b/packages/docs-app/src/examples/core-examples/controlGroupExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, ControlGroup, HTMLSelect, InputGroup, Switch } from "@blueprintjs/core"; import { Example, handleBooleanChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/dialogExample.tsx b/packages/docs-app/src/examples/core-examples/dialogExample.tsx index 3ac0ea6a03..53ea0433c4 100644 --- a/packages/docs-app/src/examples/core-examples/dialogExample.tsx +++ b/packages/docs-app/src/examples/core-examples/dialogExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { AnchorButton, Button, Classes, Code, Dialog, H5, Intent, Switch } from "@blueprintjs/core"; import { Example, handleBooleanChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/dividerExample.tsx b/packages/docs-app/src/examples/core-examples/dividerExample.tsx index ea6b945df3..1514855b46 100644 --- a/packages/docs-app/src/examples/core-examples/dividerExample.tsx +++ b/packages/docs-app/src/examples/core-examples/dividerExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, ButtonGroup, Divider, H5, Switch } from "@blueprintjs/core"; import { Example, handleBooleanChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/drawerExample.tsx b/packages/docs-app/src/examples/core-examples/drawerExample.tsx index c5d5ad3a08..8d80de1861 100644 --- a/packages/docs-app/src/examples/core-examples/drawerExample.tsx +++ b/packages/docs-app/src/examples/core-examples/drawerExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, diff --git a/packages/docs-app/src/examples/core-examples/dropdownMenuExample.tsx b/packages/docs-app/src/examples/core-examples/dropdownMenuExample.tsx index c671f260b5..70d028f1a7 100644 --- a/packages/docs-app/src/examples/core-examples/dropdownMenuExample.tsx +++ b/packages/docs-app/src/examples/core-examples/dropdownMenuExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, Menu, MenuDivider, MenuItem } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/editableTextExample.tsx b/packages/docs-app/src/examples/core-examples/editableTextExample.tsx index 67cccf0a9f..08ea1ee5ba 100644 --- a/packages/docs-app/src/examples/core-examples/editableTextExample.tsx +++ b/packages/docs-app/src/examples/core-examples/editableTextExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Classes, EditableText, FormGroup, H1, H5, Intent, NumericInput, Switch } from "@blueprintjs/core"; import { Example, handleBooleanChange, handleValueChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/fileInputExample.tsx b/packages/docs-app/src/examples/core-examples/fileInputExample.tsx index 7c6bbb5d39..4dc5e6c846 100644 --- a/packages/docs-app/src/examples/core-examples/fileInputExample.tsx +++ b/packages/docs-app/src/examples/core-examples/fileInputExample.tsx @@ -13,7 +13,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { FileInput, FormGroup, H5, InputGroup } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/focusExample.tsx b/packages/docs-app/src/examples/core-examples/focusExample.tsx index bdd80c3850..d69087f769 100644 --- a/packages/docs-app/src/examples/core-examples/focusExample.tsx +++ b/packages/docs-app/src/examples/core-examples/focusExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, Classes, FocusStyleManager, InputGroup, Switch } from "@blueprintjs/core"; import { Example, handleBooleanChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/formGroupExample.tsx b/packages/docs-app/src/examples/core-examples/formGroupExample.tsx index ea5e9783e2..6aaee0f76c 100644 --- a/packages/docs-app/src/examples/core-examples/formGroupExample.tsx +++ b/packages/docs-app/src/examples/core-examples/formGroupExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { FormGroup, H5, InputGroup, Intent, Switch } from "@blueprintjs/core"; import { Example, handleBooleanChange, handleValueChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/hotkeyTester.tsx b/packages/docs-app/src/examples/core-examples/hotkeyTester.tsx index 6ffbf22a42..c8ee5da441 100644 --- a/packages/docs-app/src/examples/core-examples/hotkeyTester.tsx +++ b/packages/docs-app/src/examples/core-examples/hotkeyTester.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Code, getKeyComboString, KeyCombo } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/iconExample.tsx b/packages/docs-app/src/examples/core-examples/iconExample.tsx index d5b3e6c925..1ffde64f3a 100644 --- a/packages/docs-app/src/examples/core-examples/iconExample.tsx +++ b/packages/docs-app/src/examples/core-examples/iconExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { H5, Icon, Intent, Label, Slider } from "@blueprintjs/core"; import { Example, handleValueChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/inputGroupExample.tsx b/packages/docs-app/src/examples/core-examples/inputGroupExample.tsx index a0688fd067..96ec5392cb 100644 --- a/packages/docs-app/src/examples/core-examples/inputGroupExample.tsx +++ b/packages/docs-app/src/examples/core-examples/inputGroupExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, H5, Icon, InputGroup, Intent, Menu, MenuItem, Spinner, Switch, Tag } from "@blueprintjs/core"; import { Example, handleBooleanChange, handleStringChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/menuExample.tsx b/packages/docs-app/src/examples/core-examples/menuExample.tsx index 1bbfd6e5ec..c93d71ac55 100644 --- a/packages/docs-app/src/examples/core-examples/menuExample.tsx +++ b/packages/docs-app/src/examples/core-examples/menuExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Classes, Icon, Menu, MenuDivider, MenuItem } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/multiSliderExample.tsx b/packages/docs-app/src/examples/core-examples/multiSliderExample.tsx index ee1d8d9a88..77e3bd8484 100644 --- a/packages/docs-app/src/examples/core-examples/multiSliderExample.tsx +++ b/packages/docs-app/src/examples/core-examples/multiSliderExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { H5, HandleInteractionKind, Intent, MultiSlider, Radio, RadioGroup, Switch } from "@blueprintjs/core"; import { Example, handleBooleanChange, handleValueChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/multistepDialogExample.tsx b/packages/docs-app/src/examples/core-examples/multistepDialogExample.tsx index 44ebc43f80..171dcd5551 100644 --- a/packages/docs-app/src/examples/core-examples/multistepDialogExample.tsx +++ b/packages/docs-app/src/examples/core-examples/multistepDialogExample.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Button, diff --git a/packages/docs-app/src/examples/core-examples/navbarExample.tsx b/packages/docs-app/src/examples/core-examples/navbarExample.tsx index 7db8373150..81932cf40b 100644 --- a/packages/docs-app/src/examples/core-examples/navbarExample.tsx +++ b/packages/docs-app/src/examples/core-examples/navbarExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Alignment, diff --git a/packages/docs-app/src/examples/core-examples/nonIdealStateExample.tsx b/packages/docs-app/src/examples/core-examples/nonIdealStateExample.tsx index f49444999c..38de403ea4 100644 --- a/packages/docs-app/src/examples/core-examples/nonIdealStateExample.tsx +++ b/packages/docs-app/src/examples/core-examples/nonIdealStateExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Classes, H5, InputGroup, NonIdealState, Switch } from "@blueprintjs/core"; import { Example, handleBooleanChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/numericInputBasicExample.tsx b/packages/docs-app/src/examples/core-examples/numericInputBasicExample.tsx index f4e0587d66..876bae94fc 100644 --- a/packages/docs-app/src/examples/core-examples/numericInputBasicExample.tsx +++ b/packages/docs-app/src/examples/core-examples/numericInputBasicExample.tsx @@ -13,7 +13,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { H5, diff --git a/packages/docs-app/src/examples/core-examples/numericInputExtendedExample.tsx b/packages/docs-app/src/examples/core-examples/numericInputExtendedExample.tsx index 89ca322e25..72cb58f8c2 100644 --- a/packages/docs-app/src/examples/core-examples/numericInputExtendedExample.tsx +++ b/packages/docs-app/src/examples/core-examples/numericInputExtendedExample.tsx @@ -13,7 +13,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Keys, NumericInput } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/overlayExample.tsx b/packages/docs-app/src/examples/core-examples/overlayExample.tsx index 88fd470b78..953cef9bce 100644 --- a/packages/docs-app/src/examples/core-examples/overlayExample.tsx +++ b/packages/docs-app/src/examples/core-examples/overlayExample.tsx @@ -14,7 +14,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Button, Classes, Code, H3, H5, Intent, Overlay, Switch } from "@blueprintjs/core"; import { Example, handleBooleanChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/panelStackExample.tsx b/packages/docs-app/src/examples/core-examples/panelStackExample.tsx index 6c30e80197..2482c52ec9 100644 --- a/packages/docs-app/src/examples/core-examples/panelStackExample.tsx +++ b/packages/docs-app/src/examples/core-examples/panelStackExample.tsx @@ -16,7 +16,7 @@ /* eslint-disable deprecation/deprecation, max-classes-per-file */ -import * as React from "react"; +import React from "react"; import { Button, H5, Intent, IPanel, IPanelProps, NumericInput, PanelStack, Switch, UL } from "@blueprintjs/core"; import { Example, handleBooleanChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/popoverDismissExample.tsx b/packages/docs-app/src/examples/core-examples/popoverDismissExample.tsx index 7fceee9099..51d7c49bcc 100644 --- a/packages/docs-app/src/examples/core-examples/popoverDismissExample.tsx +++ b/packages/docs-app/src/examples/core-examples/popoverDismissExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, Callout, Classes, Popover, Switch } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/popoverExample.tsx b/packages/docs-app/src/examples/core-examples/popoverExample.tsx index 3882274cdd..e6cfd773ad 100644 --- a/packages/docs-app/src/examples/core-examples/popoverExample.tsx +++ b/packages/docs-app/src/examples/core-examples/popoverExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { AnchorButton, diff --git a/packages/docs-app/src/examples/core-examples/popoverInteractionKindExample.tsx b/packages/docs-app/src/examples/core-examples/popoverInteractionKindExample.tsx index 9f5cb4322a..134c95381e 100644 --- a/packages/docs-app/src/examples/core-examples/popoverInteractionKindExample.tsx +++ b/packages/docs-app/src/examples/core-examples/popoverInteractionKindExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, Intent, Popover, PopoverInteractionKind, Position } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/popoverMinimalExample.tsx b/packages/docs-app/src/examples/core-examples/popoverMinimalExample.tsx index 87c8291a8a..525a2d5a34 100644 --- a/packages/docs-app/src/examples/core-examples/popoverMinimalExample.tsx +++ b/packages/docs-app/src/examples/core-examples/popoverMinimalExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, Intent, IPopoverProps, Popover, Position } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/popoverPortalExample.tsx b/packages/docs-app/src/examples/core-examples/popoverPortalExample.tsx index 0d74750a72..6add4ffb76 100644 --- a/packages/docs-app/src/examples/core-examples/popoverPortalExample.tsx +++ b/packages/docs-app/src/examples/core-examples/popoverPortalExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, Code, H5, IPopoverProps, Popover, Position, Switch } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/popoverPositionExample.tsx b/packages/docs-app/src/examples/core-examples/popoverPositionExample.tsx index e7850c8c13..6681deb953 100644 --- a/packages/docs-app/src/examples/core-examples/popoverPositionExample.tsx +++ b/packages/docs-app/src/examples/core-examples/popoverPositionExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, Classes, Code, Popover, Position } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/popoverSizingExample.tsx b/packages/docs-app/src/examples/core-examples/popoverSizingExample.tsx index 1d4c424ac0..cf0aea1f06 100644 --- a/packages/docs-app/src/examples/core-examples/popoverSizingExample.tsx +++ b/packages/docs-app/src/examples/core-examples/popoverSizingExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, Popover, Position } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/progressExample.tsx b/packages/docs-app/src/examples/core-examples/progressExample.tsx index 5e46aa07f9..dcaab1632c 100644 --- a/packages/docs-app/src/examples/core-examples/progressExample.tsx +++ b/packages/docs-app/src/examples/core-examples/progressExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { H5, Intent, ProgressBar, Slider, Switch } from "@blueprintjs/core"; import { Example, handleBooleanChange, handleValueChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/radioExample.tsx b/packages/docs-app/src/examples/core-examples/radioExample.tsx index 787fe5948f..c9f05bbf39 100644 --- a/packages/docs-app/src/examples/core-examples/radioExample.tsx +++ b/packages/docs-app/src/examples/core-examples/radioExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Radio, RadioGroup } from "@blueprintjs/core"; import { Example, handleStringChange } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/rangeSliderExample.tsx b/packages/docs-app/src/examples/core-examples/rangeSliderExample.tsx index 08e0e7d1cb..2f52721355 100644 --- a/packages/docs-app/src/examples/core-examples/rangeSliderExample.tsx +++ b/packages/docs-app/src/examples/core-examples/rangeSliderExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { H5, NumberRange, RangeSlider, Switch } from "@blueprintjs/core"; import { Example, handleBooleanChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/sliderExample.tsx b/packages/docs-app/src/examples/core-examples/sliderExample.tsx index ab129bbc3e..e4061583c7 100644 --- a/packages/docs-app/src/examples/core-examples/sliderExample.tsx +++ b/packages/docs-app/src/examples/core-examples/sliderExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { H5, Slider, Switch } from "@blueprintjs/core"; import { Example, handleBooleanChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/spinnerExample.tsx b/packages/docs-app/src/examples/core-examples/spinnerExample.tsx index 4bf9e26346..397a3e15d2 100644 --- a/packages/docs-app/src/examples/core-examples/spinnerExample.tsx +++ b/packages/docs-app/src/examples/core-examples/spinnerExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { H5, Intent, Label, Slider, Spinner, Switch } from "@blueprintjs/core"; import { Example, handleBooleanChange, handleValueChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/switchExample.tsx b/packages/docs-app/src/examples/core-examples/switchExample.tsx index ff02db5f88..c24a5b6d89 100644 --- a/packages/docs-app/src/examples/core-examples/switchExample.tsx +++ b/packages/docs-app/src/examples/core-examples/switchExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Code, Label, Switch } from "@blueprintjs/core"; diff --git a/packages/docs-app/src/examples/core-examples/tabsExample.tsx b/packages/docs-app/src/examples/core-examples/tabsExample.tsx index 225e320be4..f78d6cdbdc 100644 --- a/packages/docs-app/src/examples/core-examples/tabsExample.tsx +++ b/packages/docs-app/src/examples/core-examples/tabsExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Alignment, Classes, H3, H5, InputGroup, Navbar, Switch, Tab, TabId, Tabs } from "@blueprintjs/core"; import { Example, handleBooleanChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/tagExample.tsx b/packages/docs-app/src/examples/core-examples/tagExample.tsx index 6a2ca1e40d..d33f46a7da 100644 --- a/packages/docs-app/src/examples/core-examples/tagExample.tsx +++ b/packages/docs-app/src/examples/core-examples/tagExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, H5, Intent, Switch, Tag } from "@blueprintjs/core"; import { Example, handleBooleanChange, handleValueChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/tagInputExample.tsx b/packages/docs-app/src/examples/core-examples/tagInputExample.tsx index a4cb57416b..25a583f77a 100644 --- a/packages/docs-app/src/examples/core-examples/tagInputExample.tsx +++ b/packages/docs-app/src/examples/core-examples/tagInputExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, H5, Intent, ITagProps, Switch, TagInput } from "@blueprintjs/core"; import { Example, handleBooleanChange, handleValueChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/textExample.tsx b/packages/docs-app/src/examples/core-examples/textExample.tsx index 2b9cb1b0e2..2861163e26 100644 --- a/packages/docs-app/src/examples/core-examples/textExample.tsx +++ b/packages/docs-app/src/examples/core-examples/textExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Text, TextArea } from "@blueprintjs/core"; import { Example, handleStringChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/toastExample.tsx b/packages/docs-app/src/examples/core-examples/toastExample.tsx index 05b20589a1..63a1581a07 100644 --- a/packages/docs-app/src/examples/core-examples/toastExample.tsx +++ b/packages/docs-app/src/examples/core-examples/toastExample.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Button, diff --git a/packages/docs-app/src/examples/core-examples/tooltipExample.tsx b/packages/docs-app/src/examples/core-examples/tooltipExample.tsx index e0ef86e74d..ec317d725e 100644 --- a/packages/docs-app/src/examples/core-examples/tooltipExample.tsx +++ b/packages/docs-app/src/examples/core-examples/tooltipExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, Classes, H1, Intent, Popover, Position, Switch, Tooltip } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/core-examples/treeExample.tsx b/packages/docs-app/src/examples/core-examples/treeExample.tsx index cab9f5729f..f8403c9084 100644 --- a/packages/docs-app/src/examples/core-examples/treeExample.tsx +++ b/packages/docs-app/src/examples/core-examples/treeExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Classes, Icon, Intent, ITreeNode, Tree } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/datetime-examples/common/formatSelect.tsx b/packages/docs-app/src/examples/datetime-examples/common/formatSelect.tsx index 30e3bb6736..d99586e068 100644 --- a/packages/docs-app/src/examples/datetime-examples/common/formatSelect.tsx +++ b/packages/docs-app/src/examples/datetime-examples/common/formatSelect.tsx @@ -15,7 +15,7 @@ */ import moment from "moment"; -import * as React from "react"; +import React from "react"; import { Radio, RadioGroup } from "@blueprintjs/core"; import { IDateFormatProps } from "@blueprintjs/datetime"; diff --git a/packages/docs-app/src/examples/datetime-examples/common/momentDate.tsx b/packages/docs-app/src/examples/datetime-examples/common/momentDate.tsx index b1b73334f1..fd769f1a2a 100644 --- a/packages/docs-app/src/examples/datetime-examples/common/momentDate.tsx +++ b/packages/docs-app/src/examples/datetime-examples/common/momentDate.tsx @@ -16,7 +16,7 @@ import classNames from "classnames"; import moment from "moment"; -import * as React from "react"; +import React from "react"; import { Icon, Intent, IProps, Tag } from "@blueprintjs/core"; import { DateRange } from "@blueprintjs/datetime"; diff --git a/packages/docs-app/src/examples/datetime-examples/common/precisionSelect.tsx b/packages/docs-app/src/examples/datetime-examples/common/precisionSelect.tsx index d79b83503c..761689fe57 100644 --- a/packages/docs-app/src/examples/datetime-examples/common/precisionSelect.tsx +++ b/packages/docs-app/src/examples/datetime-examples/common/precisionSelect.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Classes, HTMLSelect } from "@blueprintjs/core"; import { TimePrecision } from "@blueprintjs/datetime"; diff --git a/packages/docs-app/src/examples/datetime-examples/dateInputExample.tsx b/packages/docs-app/src/examples/datetime-examples/dateInputExample.tsx index c10af1d491..7fc3cf546a 100644 --- a/packages/docs-app/src/examples/datetime-examples/dateInputExample.tsx +++ b/packages/docs-app/src/examples/datetime-examples/dateInputExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { H5, Position, Switch } from "@blueprintjs/core"; import { DateInput, IDateFormatProps, TimePrecision } from "@blueprintjs/datetime"; diff --git a/packages/docs-app/src/examples/datetime-examples/datePickerExample.tsx b/packages/docs-app/src/examples/datetime-examples/datePickerExample.tsx index 085ae71f46..66837fc557 100644 --- a/packages/docs-app/src/examples/datetime-examples/datePickerExample.tsx +++ b/packages/docs-app/src/examples/datetime-examples/datePickerExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Classes, H5, Switch } from "@blueprintjs/core"; import { DatePicker, TimePrecision } from "@blueprintjs/datetime"; diff --git a/packages/docs-app/src/examples/datetime-examples/dateRangeInputExample.tsx b/packages/docs-app/src/examples/datetime-examples/dateRangeInputExample.tsx index 88be7c8d0e..8569e0d7e5 100644 --- a/packages/docs-app/src/examples/datetime-examples/dateRangeInputExample.tsx +++ b/packages/docs-app/src/examples/datetime-examples/dateRangeInputExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { H5, Switch } from "@blueprintjs/core"; import { DateRange, DateRangeInput, IDateFormatProps, TimePrecision } from "@blueprintjs/datetime"; diff --git a/packages/docs-app/src/examples/datetime-examples/dateRangePickerExample.tsx b/packages/docs-app/src/examples/datetime-examples/dateRangePickerExample.tsx index fb866583cd..db0007528a 100644 --- a/packages/docs-app/src/examples/datetime-examples/dateRangePickerExample.tsx +++ b/packages/docs-app/src/examples/datetime-examples/dateRangePickerExample.tsx @@ -15,7 +15,7 @@ */ import moment from "moment"; -import * as React from "react"; +import React from "react"; import { Classes, H5, HTMLSelect, Label, Switch } from "@blueprintjs/core"; import { DateRange, DateRangePicker, TimePrecision } from "@blueprintjs/datetime"; diff --git a/packages/docs-app/src/examples/datetime-examples/dateTimePickerExample.tsx b/packages/docs-app/src/examples/datetime-examples/dateTimePickerExample.tsx index c2015f1cbd..22459e624d 100644 --- a/packages/docs-app/src/examples/datetime-examples/dateTimePickerExample.tsx +++ b/packages/docs-app/src/examples/datetime-examples/dateTimePickerExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Classes } from "@blueprintjs/core"; import { DateTimePicker } from "@blueprintjs/datetime"; diff --git a/packages/docs-app/src/examples/datetime-examples/timePickerExample.tsx b/packages/docs-app/src/examples/datetime-examples/timePickerExample.tsx index 10b2f517e1..19c812471f 100644 --- a/packages/docs-app/src/examples/datetime-examples/timePickerExample.tsx +++ b/packages/docs-app/src/examples/datetime-examples/timePickerExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Classes, H5, HTMLSelect, Switch } from "@blueprintjs/core"; import { TimePicker, TimePrecision } from "@blueprintjs/datetime"; diff --git a/packages/docs-app/src/examples/popover2-examples/popover2DismissExample.tsx b/packages/docs-app/src/examples/popover2-examples/popover2DismissExample.tsx index 4b89298e71..a3d755557d 100644 --- a/packages/docs-app/src/examples/popover2-examples/popover2DismissExample.tsx +++ b/packages/docs-app/src/examples/popover2-examples/popover2DismissExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, Callout, Classes as CoreClasses, Switch } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/popover2-examples/popover2Example.tsx b/packages/docs-app/src/examples/popover2-examples/popover2Example.tsx index ba4138f097..8a40c2b549 100644 --- a/packages/docs-app/src/examples/popover2-examples/popover2Example.tsx +++ b/packages/docs-app/src/examples/popover2-examples/popover2Example.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { AnchorButton, diff --git a/packages/docs-app/src/examples/popover2-examples/popover2InteractionKindExample.tsx b/packages/docs-app/src/examples/popover2-examples/popover2InteractionKindExample.tsx index 40cce0d4a6..20f4a04c09 100644 --- a/packages/docs-app/src/examples/popover2-examples/popover2InteractionKindExample.tsx +++ b/packages/docs-app/src/examples/popover2-examples/popover2InteractionKindExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, Intent } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/popover2-examples/popover2MinimalExample.tsx b/packages/docs-app/src/examples/popover2-examples/popover2MinimalExample.tsx index 30140c290a..105a8f18b7 100644 --- a/packages/docs-app/src/examples/popover2-examples/popover2MinimalExample.tsx +++ b/packages/docs-app/src/examples/popover2-examples/popover2MinimalExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, Intent } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/popover2-examples/popover2PlacementExample.tsx b/packages/docs-app/src/examples/popover2-examples/popover2PlacementExample.tsx index 2186ab2ea8..09d18467bb 100644 --- a/packages/docs-app/src/examples/popover2-examples/popover2PlacementExample.tsx +++ b/packages/docs-app/src/examples/popover2-examples/popover2PlacementExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, Classes, Code } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/popover2-examples/popover2PortalExample.tsx b/packages/docs-app/src/examples/popover2-examples/popover2PortalExample.tsx index fea86b95fa..964fad5c30 100644 --- a/packages/docs-app/src/examples/popover2-examples/popover2PortalExample.tsx +++ b/packages/docs-app/src/examples/popover2-examples/popover2PortalExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, Code, H5, Switch } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/popover2-examples/popover2SizingExample.tsx b/packages/docs-app/src/examples/popover2-examples/popover2SizingExample.tsx index d9a782b835..28a1e24f3f 100644 --- a/packages/docs-app/src/examples/popover2-examples/popover2SizingExample.tsx +++ b/packages/docs-app/src/examples/popover2-examples/popover2SizingExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/popover2-examples/tooltip2Example.tsx b/packages/docs-app/src/examples/popover2-examples/tooltip2Example.tsx index 55350f6b44..c78b8e9d56 100644 --- a/packages/docs-app/src/examples/popover2-examples/tooltip2Example.tsx +++ b/packages/docs-app/src/examples/popover2-examples/tooltip2Example.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, ButtonGroup, H1, Switch } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/select-examples/films.tsx b/packages/docs-app/src/examples/select-examples/films.tsx index 8f713e21e1..776a09e2a0 100644 --- a/packages/docs-app/src/examples/select-examples/films.tsx +++ b/packages/docs-app/src/examples/select-examples/films.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { MenuItem } from "@blueprintjs/core"; import { ItemPredicate, ItemRenderer } from "@blueprintjs/select"; diff --git a/packages/docs-app/src/examples/select-examples/multiSelectExample.tsx b/packages/docs-app/src/examples/select-examples/multiSelectExample.tsx index 3f9e12f5a9..c667742dfb 100644 --- a/packages/docs-app/src/examples/select-examples/multiSelectExample.tsx +++ b/packages/docs-app/src/examples/select-examples/multiSelectExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, H5, Intent, ITagProps, MenuItem, Switch } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/select-examples/omnibarExample.tsx b/packages/docs-app/src/examples/select-examples/omnibarExample.tsx index 4749d86a22..a8a7079ecf 100644 --- a/packages/docs-app/src/examples/select-examples/omnibarExample.tsx +++ b/packages/docs-app/src/examples/select-examples/omnibarExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, H5, HotkeysTarget2, KeyCombo, MenuItem, Position, Switch, Toaster } from "@blueprintjs/core"; import { Example, handleBooleanChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/select-examples/selectExample.tsx b/packages/docs-app/src/examples/select-examples/selectExample.tsx index 9efb943bb5..8f0ead1eb8 100644 --- a/packages/docs-app/src/examples/select-examples/selectExample.tsx +++ b/packages/docs-app/src/examples/select-examples/selectExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Button, H5, MenuItem, Switch } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/select-examples/suggestExample.tsx b/packages/docs-app/src/examples/select-examples/suggestExample.tsx index d6f05f48d2..79b442a227 100644 --- a/packages/docs-app/src/examples/select-examples/suggestExample.tsx +++ b/packages/docs-app/src/examples/select-examples/suggestExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { H5, MenuItem, Switch } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/table-examples/cellLoadingExample.tsx b/packages/docs-app/src/examples/table-examples/cellLoadingExample.tsx index 4db4849b55..32a18abaa1 100644 --- a/packages/docs-app/src/examples/table-examples/cellLoadingExample.tsx +++ b/packages/docs-app/src/examples/table-examples/cellLoadingExample.tsx @@ -13,7 +13,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { RadioGroup } from "@blueprintjs/core"; import { Example, handleStringChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/table-examples/columnLoadingExample.tsx b/packages/docs-app/src/examples/table-examples/columnLoadingExample.tsx index 921e7f0a4f..4377bcaea2 100644 --- a/packages/docs-app/src/examples/table-examples/columnLoadingExample.tsx +++ b/packages/docs-app/src/examples/table-examples/columnLoadingExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { HTMLSelect, Label } from "@blueprintjs/core"; import { Example, handleNumberChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/table-examples/tableDollarExample.tsx b/packages/docs-app/src/examples/table-examples/tableDollarExample.tsx index 6daf429028..24342646aa 100644 --- a/packages/docs-app/src/examples/table-examples/tableDollarExample.tsx +++ b/packages/docs-app/src/examples/table-examples/tableDollarExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; import { Cell, Column, Table } from "@blueprintjs/table"; diff --git a/packages/docs-app/src/examples/table-examples/tableEditableExample.tsx b/packages/docs-app/src/examples/table-examples/tableEditableExample.tsx index 084c41f206..26fc02b87e 100644 --- a/packages/docs-app/src/examples/table-examples/tableEditableExample.tsx +++ b/packages/docs-app/src/examples/table-examples/tableEditableExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Intent } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/table-examples/tableFormatsExample.tsx b/packages/docs-app/src/examples/table-examples/tableFormatsExample.tsx index 97f3e6daa1..02e90023a4 100644 --- a/packages/docs-app/src/examples/table-examples/tableFormatsExample.tsx +++ b/packages/docs-app/src/examples/table-examples/tableFormatsExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; import { Cell, Column, JSONFormat, Table, TruncatedFormat } from "@blueprintjs/table"; diff --git a/packages/docs-app/src/examples/table-examples/tableFreezingExample.tsx b/packages/docs-app/src/examples/table-examples/tableFreezingExample.tsx index 5256132943..86a90f0930 100644 --- a/packages/docs-app/src/examples/table-examples/tableFreezingExample.tsx +++ b/packages/docs-app/src/examples/table-examples/tableFreezingExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; import { Cell, Column, Table, Utils } from "@blueprintjs/table"; diff --git a/packages/docs-app/src/examples/table-examples/tableLoadingExample.tsx b/packages/docs-app/src/examples/table-examples/tableLoadingExample.tsx index 3016c6af61..7029ce7cf6 100644 --- a/packages/docs-app/src/examples/table-examples/tableLoadingExample.tsx +++ b/packages/docs-app/src/examples/table-examples/tableLoadingExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Switch } from "@blueprintjs/core"; import { Example, handleBooleanChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/table-examples/tableReorderableExample.tsx b/packages/docs-app/src/examples/table-examples/tableReorderableExample.tsx index 8dd6d1cf07..aa30f6be66 100644 --- a/packages/docs-app/src/examples/table-examples/tableReorderableExample.tsx +++ b/packages/docs-app/src/examples/table-examples/tableReorderableExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Switch } from "@blueprintjs/core"; import { Example, handleBooleanChange, IBaseExampleProps, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/table-examples/tableSortableExample.tsx b/packages/docs-app/src/examples/table-examples/tableSortableExample.tsx index 657d21b9dc..1e55b59afd 100644 --- a/packages/docs-app/src/examples/table-examples/tableSortableExample.tsx +++ b/packages/docs-app/src/examples/table-examples/tableSortableExample.tsx @@ -16,7 +16,7 @@ /* eslint-disable max-classes-per-file */ -import * as React from "react"; +import React from "react"; import { Menu, MenuItem } from "@blueprintjs/core"; import { Example, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/examples/timezone-examples/timezonePickerExample.tsx b/packages/docs-app/src/examples/timezone-examples/timezonePickerExample.tsx index 067bba0f20..fe8b181182 100644 --- a/packages/docs-app/src/examples/timezone-examples/timezonePickerExample.tsx +++ b/packages/docs-app/src/examples/timezone-examples/timezonePickerExample.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { H5, Position, Radio, RadioGroup, Switch } from "@blueprintjs/core"; import { Example, handleBooleanChange, handleValueChange, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/index.tsx b/packages/docs-app/src/index.tsx index 1d0df04580..0382bccdfe 100644 --- a/packages/docs-app/src/index.tsx +++ b/packages/docs-app/src/index.tsx @@ -17,8 +17,8 @@ import "@blueprintjs/test-commons/polyfill"; import "dom4"; -import * as React from "react"; -import * as ReactDOM from "react-dom"; +import React from "react"; +import ReactDOM from "react-dom"; import { docsData } from "@blueprintjs/docs-data"; import { createDefaultRenderers, ReactDocsTagRenderer, ReactExampleTagRenderer } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-app/src/tags/reactExamples.ts b/packages/docs-app/src/tags/reactExamples.ts index caa68638e7..c54a48b9a9 100644 --- a/packages/docs-app/src/tags/reactExamples.ts +++ b/packages/docs-app/src/tags/reactExamples.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { IExampleMap, IExampleProps } from "@blueprintjs/docs-theme"; diff --git a/packages/docs-theme/src/common/utils.ts b/packages/docs-theme/src/common/utils.ts index 808202bb2b..27508fb677 100644 --- a/packages/docs-theme/src/common/utils.ts +++ b/packages/docs-theme/src/common/utils.ts @@ -15,7 +15,7 @@ */ import { IHeadingNode, IPageNode, isPageNode } from "@documentalist/client"; -import * as React from "react"; +import React from "react"; /** * Removes leading indents from a template string without removing all leading whitespace. diff --git a/packages/docs-theme/src/components/banner.tsx b/packages/docs-theme/src/components/banner.tsx index f6f853362a..21e698a420 100644 --- a/packages/docs-theme/src/components/banner.tsx +++ b/packages/docs-theme/src/components/banner.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Classes, Intent, IProps } from "@blueprintjs/core"; diff --git a/packages/docs-theme/src/components/baseExample.tsx b/packages/docs-theme/src/components/baseExample.tsx index fe3c3360e1..3faa9d5ed4 100644 --- a/packages/docs-theme/src/components/baseExample.tsx +++ b/packages/docs-theme/src/components/baseExample.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Utils } from "@blueprintjs/core"; diff --git a/packages/docs-theme/src/components/block.tsx b/packages/docs-theme/src/components/block.tsx index 9e1b7cc45b..a182303658 100644 --- a/packages/docs-theme/src/components/block.tsx +++ b/packages/docs-theme/src/components/block.tsx @@ -16,7 +16,7 @@ import { IBlock } from "@documentalist/client"; import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Classes, Code, H3 } from "@blueprintjs/core"; diff --git a/packages/docs-theme/src/components/documentation.tsx b/packages/docs-theme/src/components/documentation.tsx index 44d420b8db..e6fa821c94 100644 --- a/packages/docs-theme/src/components/documentation.tsx +++ b/packages/docs-theme/src/components/documentation.tsx @@ -16,7 +16,7 @@ import { IHeadingNode, IPageData, IPageNode, isPageNode, ITsDocBase, linkify } from "@documentalist/client"; import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Classes, Drawer, FocusStyleManager, HotkeysTarget2, IProps, Utils } from "@blueprintjs/core"; diff --git a/packages/docs-theme/src/components/example.tsx b/packages/docs-theme/src/components/example.tsx index 97a2ca157c..fcf3736ddd 100644 --- a/packages/docs-theme/src/components/example.tsx +++ b/packages/docs-theme/src/components/example.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { IProps } from "@blueprintjs/core"; diff --git a/packages/docs-theme/src/components/modifierTable.tsx b/packages/docs-theme/src/components/modifierTable.tsx index 3b173c0b09..66ad151b9f 100644 --- a/packages/docs-theme/src/components/modifierTable.tsx +++ b/packages/docs-theme/src/components/modifierTable.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Classes, HTMLTable } from "@blueprintjs/core"; diff --git a/packages/docs-theme/src/components/navButton.tsx b/packages/docs-theme/src/components/navButton.tsx index bde750abe4..c45c6f5cf1 100644 --- a/packages/docs-theme/src/components/navButton.tsx +++ b/packages/docs-theme/src/components/navButton.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Classes, Icon, IconName, KeyCombo } from "@blueprintjs/core"; diff --git a/packages/docs-theme/src/components/navMenu.tsx b/packages/docs-theme/src/components/navMenu.tsx index 50ce2cbbc5..4f115224da 100644 --- a/packages/docs-theme/src/components/navMenu.tsx +++ b/packages/docs-theme/src/components/navMenu.tsx @@ -16,7 +16,7 @@ import { IHeadingNode, IPageNode, isPageNode } from "@documentalist/client"; import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Classes, IProps } from "@blueprintjs/core"; diff --git a/packages/docs-theme/src/components/navMenuItem.tsx b/packages/docs-theme/src/components/navMenuItem.tsx index 09eddc4fb5..e8be3a08a0 100644 --- a/packages/docs-theme/src/components/navMenuItem.tsx +++ b/packages/docs-theme/src/components/navMenuItem.tsx @@ -16,7 +16,7 @@ import { IHeadingNode, IPageNode } from "@documentalist/client"; import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Classes } from "@blueprintjs/core"; diff --git a/packages/docs-theme/src/components/navigator.tsx b/packages/docs-theme/src/components/navigator.tsx index 18d9295908..257052eaa1 100644 --- a/packages/docs-theme/src/components/navigator.tsx +++ b/packages/docs-theme/src/components/navigator.tsx @@ -16,7 +16,7 @@ import { IHeadingNode, IPageNode } from "@documentalist/client"; import { filter } from "fuzzaldrin-plus"; -import * as React from "react"; +import React from "react"; import { Classes, Icon, IInputGroupProps2, MenuItem } from "@blueprintjs/core"; import { ItemListPredicate, ItemRenderer, Omnibar } from "@blueprintjs/select"; diff --git a/packages/docs-theme/src/components/page.tsx b/packages/docs-theme/src/components/page.tsx index b109e3f838..e408efbfc5 100644 --- a/packages/docs-theme/src/components/page.tsx +++ b/packages/docs-theme/src/components/page.tsx @@ -15,7 +15,7 @@ */ import { IPageData } from "@documentalist/client"; -import * as React from "react"; +import React from "react"; import { Classes } from "@blueprintjs/core"; diff --git a/packages/docs-theme/src/components/typescript/apiHeader.tsx b/packages/docs-theme/src/components/typescript/apiHeader.tsx index 8d4147ad1a..d4531ffffb 100644 --- a/packages/docs-theme/src/components/typescript/apiHeader.tsx +++ b/packages/docs-theme/src/components/typescript/apiHeader.tsx @@ -15,7 +15,7 @@ */ import { isTsClass, isTsInterface, ITsDocBase } from "@documentalist/client"; -import * as React from "react"; +import React from "react"; import { DocumentationContextTypes, IDocumentationContext } from "../../common/context"; diff --git a/packages/docs-theme/src/components/typescript/apiLink.tsx b/packages/docs-theme/src/components/typescript/apiLink.tsx index 62b4cf5a0f..4ce6e76780 100644 --- a/packages/docs-theme/src/components/typescript/apiLink.tsx +++ b/packages/docs-theme/src/components/typescript/apiLink.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { IProps } from "@blueprintjs/core"; diff --git a/packages/docs-theme/src/components/typescript/deprecatedTag.tsx b/packages/docs-theme/src/components/typescript/deprecatedTag.tsx index f09054525a..73a38349b9 100644 --- a/packages/docs-theme/src/components/typescript/deprecatedTag.tsx +++ b/packages/docs-theme/src/components/typescript/deprecatedTag.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Intent, Tag } from "@blueprintjs/core"; diff --git a/packages/docs-theme/src/components/typescript/enumTable.tsx b/packages/docs-theme/src/components/typescript/enumTable.tsx index ae1b4fa566..7d9e3dc677 100644 --- a/packages/docs-theme/src/components/typescript/enumTable.tsx +++ b/packages/docs-theme/src/components/typescript/enumTable.tsx @@ -16,7 +16,7 @@ import { ITsEnum, ITsEnumMember } from "@documentalist/client"; import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { IProps } from "@blueprintjs/core"; diff --git a/packages/docs-theme/src/components/typescript/interfaceTable.tsx b/packages/docs-theme/src/components/typescript/interfaceTable.tsx index c59c49cef9..ed9f00c0ec 100644 --- a/packages/docs-theme/src/components/typescript/interfaceTable.tsx +++ b/packages/docs-theme/src/components/typescript/interfaceTable.tsx @@ -24,7 +24,7 @@ import { ITsSignature, } from "@documentalist/client"; import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Classes, Intent, IProps, Tag } from "@blueprintjs/core"; diff --git a/packages/docs-theme/src/components/typescript/methodTable.tsx b/packages/docs-theme/src/components/typescript/methodTable.tsx index 5da8f49842..179457b85e 100644 --- a/packages/docs-theme/src/components/typescript/methodTable.tsx +++ b/packages/docs-theme/src/components/typescript/methodTable.tsx @@ -16,7 +16,7 @@ import { isTag, ITsMethod, ITsParameter, ITsSignature } from "@documentalist/client"; import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Code, Intent, IProps, Tag } from "@blueprintjs/core"; diff --git a/packages/docs-theme/src/components/typescript/typeAliasTable.tsx b/packages/docs-theme/src/components/typescript/typeAliasTable.tsx index 7910318fd0..b2c1b0219a 100644 --- a/packages/docs-theme/src/components/typescript/typeAliasTable.tsx +++ b/packages/docs-theme/src/components/typescript/typeAliasTable.tsx @@ -16,7 +16,7 @@ import { ITsTypeAlias } from "@documentalist/client"; import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { IProps } from "@blueprintjs/core"; diff --git a/packages/docs-theme/src/tags/css.tsx b/packages/docs-theme/src/tags/css.tsx index 156d8df395..62e6b88d7d 100644 --- a/packages/docs-theme/src/tags/css.tsx +++ b/packages/docs-theme/src/tags/css.tsx @@ -16,7 +16,7 @@ import { IKssPluginData, ITag } from "@documentalist/client"; import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Checkbox, Classes, Code } from "@blueprintjs/core"; diff --git a/packages/docs-theme/src/tags/defaults.ts b/packages/docs-theme/src/tags/defaults.ts index 5be8b990c1..19316a8b20 100644 --- a/packages/docs-theme/src/tags/defaults.ts +++ b/packages/docs-theme/src/tags/defaults.ts @@ -15,7 +15,7 @@ */ import { ITag } from "@documentalist/client"; -import * as React from "react"; +import React from "react"; import { CssExample } from "./css"; import { Heading } from "./heading"; diff --git a/packages/docs-theme/src/tags/heading.tsx b/packages/docs-theme/src/tags/heading.tsx index af9ec8da9b..0822296b03 100644 --- a/packages/docs-theme/src/tags/heading.tsx +++ b/packages/docs-theme/src/tags/heading.tsx @@ -16,7 +16,7 @@ import { IHeadingTag } from "@documentalist/client"; import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Classes, Icon } from "@blueprintjs/core"; diff --git a/packages/docs-theme/src/tags/method.tsx b/packages/docs-theme/src/tags/method.tsx index 432d982ba0..9594c0d287 100644 --- a/packages/docs-theme/src/tags/method.tsx +++ b/packages/docs-theme/src/tags/method.tsx @@ -15,7 +15,7 @@ */ import { isTsClass, isTsMethod, ITag, ITsClass, ITypescriptPluginData } from "@documentalist/client"; -import * as React from "react"; +import React from "react"; import { IProps } from "@blueprintjs/core"; diff --git a/packages/docs-theme/src/tags/reactDocs.tsx b/packages/docs-theme/src/tags/reactDocs.tsx index 0752f21471..96494cd78f 100644 --- a/packages/docs-theme/src/tags/reactDocs.tsx +++ b/packages/docs-theme/src/tags/reactDocs.tsx @@ -15,7 +15,7 @@ */ import { ITag } from "@documentalist/client"; -import * as React from "react"; +import React from "react"; export interface IDocsMap { [name: string]: React.ComponentClass; diff --git a/packages/docs-theme/src/tags/reactExample.tsx b/packages/docs-theme/src/tags/reactExample.tsx index d0878ef385..c1e774d6fd 100644 --- a/packages/docs-theme/src/tags/reactExample.tsx +++ b/packages/docs-theme/src/tags/reactExample.tsx @@ -15,7 +15,7 @@ */ import { ITag } from "@documentalist/client"; -import * as React from "react"; +import React from "react"; import { AnchorButton, Intent } from "@blueprintjs/core"; diff --git a/packages/docs-theme/src/tags/see.tsx b/packages/docs-theme/src/tags/see.tsx index acbe1c6ebf..17711822a0 100644 --- a/packages/docs-theme/src/tags/see.tsx +++ b/packages/docs-theme/src/tags/see.tsx @@ -15,7 +15,7 @@ */ import { ITag } from "@documentalist/client"; -import * as React from "react"; +import React from "react"; import { DocumentationContextTypes, IDocumentationContext } from "../common/context"; diff --git a/packages/docs-theme/src/tags/typescript.tsx b/packages/docs-theme/src/tags/typescript.tsx index 3a91d8bde9..40c7d21f76 100644 --- a/packages/docs-theme/src/tags/typescript.tsx +++ b/packages/docs-theme/src/tags/typescript.tsx @@ -15,7 +15,7 @@ */ import { isTsClass, isTsEnum, isTsInterface, isTsTypeAlias, ITag, ITypescriptPluginData } from "@documentalist/client"; -import * as React from "react"; +import React from "react"; import { IProps } from "@blueprintjs/core"; diff --git a/packages/popover2/src/popover2.tsx b/packages/popover2/src/popover2.tsx index f6769753b1..775e84de7c 100644 --- a/packages/popover2/src/popover2.tsx +++ b/packages/popover2/src/popover2.tsx @@ -16,7 +16,7 @@ import { State as PopperState } from "@popperjs/core"; import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Manager, Popper, PopperChildrenProps, Reference, ReferenceChildrenProps, StrictModifier } from "react-popper"; import { diff --git a/packages/popover2/src/popover2Arrow.tsx b/packages/popover2/src/popover2Arrow.tsx index d10008fcec..a7b21983ff 100644 --- a/packages/popover2/src/popover2Arrow.tsx +++ b/packages/popover2/src/popover2Arrow.tsx @@ -15,7 +15,7 @@ */ import { Placement } from "@popperjs/core"; -import * as React from "react"; +import React from "react"; import { PopperArrowProps } from "react-popper"; import { DISPLAYNAME_PREFIX } from "@blueprintjs/core"; diff --git a/packages/popover2/src/tooltip2.tsx b/packages/popover2/src/tooltip2.tsx index b6fa4f37b7..5fb3ec0de4 100644 --- a/packages/popover2/src/tooltip2.tsx +++ b/packages/popover2/src/tooltip2.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Classes as CoreClasses, DISPLAYNAME_PREFIX, IIntentProps } from "@blueprintjs/core"; diff --git a/packages/popover2/test/contextMenu2Tests.tsx b/packages/popover2/test/contextMenu2Tests.tsx index 8a60885bf1..12cd8a4432 100644 --- a/packages/popover2/test/contextMenu2Tests.tsx +++ b/packages/popover2/test/contextMenu2Tests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount, ReactWrapper } from "enzyme"; -import * as React from "react"; +import React from "react"; import { Menu, MenuItem } from "@blueprintjs/core"; diff --git a/packages/popover2/test/popover2Tests.tsx b/packages/popover2/test/popover2Tests.tsx index b999044b62..f6f14d92af 100644 --- a/packages/popover2/test/popover2Tests.tsx +++ b/packages/popover2/test/popover2Tests.tsx @@ -16,8 +16,8 @@ import { assert } from "chai"; import { mount, ReactWrapper, shallow } from "enzyme"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import { Classes as CoreClasses, Keys, Menu, MenuItem, Overlay, Portal } from "@blueprintjs/core"; import { dispatchMouseEvent } from "@blueprintjs/test-commons"; diff --git a/packages/popover2/test/tooltip2Tests.tsx b/packages/popover2/test/tooltip2Tests.tsx index 10c0ac7005..a887e3f482 100644 --- a/packages/popover2/test/tooltip2Tests.tsx +++ b/packages/popover2/test/tooltip2Tests.tsx @@ -16,7 +16,7 @@ import { assert } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; +import React from "react"; import { spy, stub } from "sinon"; import { Button, Classes as CoreClasses, Overlay } from "@blueprintjs/core"; diff --git a/packages/select/src/components/omnibar/omnibar.tsx b/packages/select/src/components/omnibar/omnibar.tsx index fdfe0c7d97..7c008b53a5 100644 --- a/packages/select/src/components/omnibar/omnibar.tsx +++ b/packages/select/src/components/omnibar/omnibar.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { DISPLAYNAME_PREFIX, IInputGroupProps2, InputGroup, IOverlayProps, Overlay } from "@blueprintjs/core"; diff --git a/packages/select/src/components/query-list/queryList.tsx b/packages/select/src/components/query-list/queryList.tsx index 652e345789..7c6bcd4e7a 100644 --- a/packages/select/src/components/query-list/queryList.tsx +++ b/packages/select/src/components/query-list/queryList.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { AbstractComponent2, DISPLAYNAME_PREFIX, IProps, Keys, Menu, Utils } from "@blueprintjs/core"; diff --git a/packages/select/src/components/select/multiSelect.tsx b/packages/select/src/components/select/multiSelect.tsx index c138bc1367..c11b061509 100644 --- a/packages/select/src/components/select/multiSelect.tsx +++ b/packages/select/src/components/select/multiSelect.tsx @@ -14,7 +14,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { AbstractPureComponent2, diff --git a/packages/select/src/components/select/select.tsx b/packages/select/src/components/select/select.tsx index b3e9f657e2..8eeb2a1def 100644 --- a/packages/select/src/components/select/select.tsx +++ b/packages/select/src/components/select/select.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { AbstractPureComponent2, diff --git a/packages/select/src/components/select/suggest.tsx b/packages/select/src/components/select/suggest.tsx index 011679fd59..c479d8e5fe 100644 --- a/packages/select/src/components/select/suggest.tsx +++ b/packages/select/src/components/select/suggest.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { AbstractPureComponent2, diff --git a/packages/select/test/listItemsPropsTests.ts b/packages/select/test/listItemsPropsTests.ts index 7a28e79bd7..ff7345b9c2 100644 --- a/packages/select/test/listItemsPropsTests.ts +++ b/packages/select/test/listItemsPropsTests.ts @@ -15,7 +15,7 @@ */ import { assert } from "chai"; -import * as sinon from "sinon"; +import sinon from "sinon"; import { executeItemsEqual } from "../src/common/listItemsProps"; diff --git a/packages/select/test/multiSelectTests.tsx b/packages/select/test/multiSelectTests.tsx index 15a3d3e009..e9bc93a2cc 100644 --- a/packages/select/test/multiSelectTests.tsx +++ b/packages/select/test/multiSelectTests.tsx @@ -16,8 +16,8 @@ import { assert } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import { Classes as CoreClasses, Keys, Tag } from "@blueprintjs/core"; import { dispatchTestKeyboardEventWithCode } from "@blueprintjs/test-commons"; diff --git a/packages/select/test/omnibarTests.tsx b/packages/select/test/omnibarTests.tsx index 8e6e99cfc9..646d3b6c5b 100644 --- a/packages/select/test/omnibarTests.tsx +++ b/packages/select/test/omnibarTests.tsx @@ -15,7 +15,7 @@ */ import { mount } from "enzyme"; -import * as React from "react"; +import React from "react"; import { Omnibar } from "../src"; import { selectComponentSuite } from "./selectComponentSuite"; diff --git a/packages/select/test/queryListTests.tsx b/packages/select/test/queryListTests.tsx index 555a466063..46d07afa4d 100644 --- a/packages/select/test/queryListTests.tsx +++ b/packages/select/test/queryListTests.tsx @@ -16,8 +16,8 @@ import { assert } from "chai"; import { mount, ReactWrapper, shallow } from "enzyme"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import { Menu } from "@blueprintjs/core"; import { IQueryListProps } from "@blueprintjs/select"; diff --git a/packages/select/test/selectComponentSuite.tsx b/packages/select/test/selectComponentSuite.tsx index aadd5e36fe..d33aa04f35 100644 --- a/packages/select/test/selectComponentSuite.tsx +++ b/packages/select/test/selectComponentSuite.tsx @@ -16,8 +16,8 @@ import { assert } from "chai"; import { ReactWrapper } from "enzyme"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import { HTMLInputProps, Keys, MenuItem } from "@blueprintjs/core"; diff --git a/packages/select/test/selectTests.tsx b/packages/select/test/selectTests.tsx index 1f7b63700a..40e2b3d07e 100644 --- a/packages/select/test/selectTests.tsx +++ b/packages/select/test/selectTests.tsx @@ -16,8 +16,8 @@ import { assert } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import { InputGroup, Popover } from "@blueprintjs/core"; diff --git a/packages/select/test/suggestTests.tsx b/packages/select/test/suggestTests.tsx index 9875235f75..177a58edf5 100644 --- a/packages/select/test/suggestTests.tsx +++ b/packages/select/test/suggestTests.tsx @@ -16,8 +16,8 @@ import { assert } from "chai"; import { mount, ReactWrapper } from "enzyme"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import { InputGroup, IPopoverProps, Keys, MenuItem, Popover } from "@blueprintjs/core"; diff --git a/packages/table-dev-app/src/features.tsx b/packages/table-dev-app/src/features.tsx index 1a2e072e0f..3f74744f74 100644 --- a/packages/table-dev-app/src/features.tsx +++ b/packages/table-dev-app/src/features.tsx @@ -17,8 +17,8 @@ // tslint:disable object-literal-sort-keys /* eslint-disable max-classes-per-file, react/display-name, react/jsx-no-bind, react/no-did-mount-set-state */ -import * as React from "react"; -import * as ReactDOM from "react-dom"; +import React from "react"; +import ReactDOM from "react-dom"; import { Button, Classes, H4, Intent, Menu, MenuDivider, MenuItem } from "@blueprintjs/core"; import { diff --git a/packages/table-dev-app/src/index.tsx b/packages/table-dev-app/src/index.tsx index f8d728c9c3..11dbb06463 100644 --- a/packages/table-dev-app/src/index.tsx +++ b/packages/table-dev-app/src/index.tsx @@ -14,8 +14,8 @@ * limitations under the License. */ -import * as React from "react"; -import * as ReactDOM from "react-dom"; +import React from "react"; +import ReactDOM from "react-dom"; import { MutableTable } from "./mutableTable"; import { Nav } from "./nav"; diff --git a/packages/table-dev-app/src/mutableTable.tsx b/packages/table-dev-app/src/mutableTable.tsx index 0dfcd90030..82b3f6514e 100644 --- a/packages/table-dev-app/src/mutableTable.tsx +++ b/packages/table-dev-app/src/mutableTable.tsx @@ -17,7 +17,7 @@ /* eslint-disable react/jsx-no-bind */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Button, diff --git a/packages/table-dev-app/src/nav.tsx b/packages/table-dev-app/src/nav.tsx index c4171f7c45..a544479614 100644 --- a/packages/table-dev-app/src/nav.tsx +++ b/packages/table-dev-app/src/nav.tsx @@ -13,7 +13,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Alignment, AnchorButton, Classes, Navbar, Switch } from "@blueprintjs/core"; diff --git a/packages/table-dev-app/src/slowLayoutStack.tsx b/packages/table-dev-app/src/slowLayoutStack.tsx index 897cc7ad73..d2ec09e692 100644 --- a/packages/table-dev-app/src/slowLayoutStack.tsx +++ b/packages/table-dev-app/src/slowLayoutStack.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Utils } from "@blueprintjs/table/src"; diff --git a/packages/table/src/cell/cell.tsx b/packages/table/src/cell/cell.tsx index 1e9600f0fd..659c7d1eae 100644 --- a/packages/table/src/cell/cell.tsx +++ b/packages/table/src/cell/cell.tsx @@ -14,7 +14,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Classes as CoreClasses, diff --git a/packages/table/src/cell/editableCell.tsx b/packages/table/src/cell/editableCell.tsx index 9f90a5d4da..cf779673b1 100644 --- a/packages/table/src/cell/editableCell.tsx +++ b/packages/table/src/cell/editableCell.tsx @@ -14,7 +14,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { DISPLAYNAME_PREFIX, diff --git a/packages/table/src/cell/formats/jsonFormat.tsx b/packages/table/src/cell/formats/jsonFormat.tsx index 7e6a755834..096247ba65 100644 --- a/packages/table/src/cell/formats/jsonFormat.tsx +++ b/packages/table/src/cell/formats/jsonFormat.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { DISPLAYNAME_PREFIX } from "@blueprintjs/core"; diff --git a/packages/table/src/cell/formats/truncatedFormat.tsx b/packages/table/src/cell/formats/truncatedFormat.tsx index 387e00809f..b9557575f7 100644 --- a/packages/table/src/cell/formats/truncatedFormat.tsx +++ b/packages/table/src/cell/formats/truncatedFormat.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { DISPLAYNAME_PREFIX, Icon, IProps, Popover, Position } from "@blueprintjs/core"; diff --git a/packages/table/src/column.tsx b/packages/table/src/column.tsx index b1be5af713..262d82fa2b 100644 --- a/packages/table/src/column.tsx +++ b/packages/table/src/column.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { DISPLAYNAME_PREFIX, IProps } from "@blueprintjs/core"; diff --git a/packages/table/src/common/context.ts b/packages/table/src/common/context.ts index 1474545a11..44d23916f4 100644 --- a/packages/table/src/common/context.ts +++ b/packages/table/src/common/context.ts @@ -14,7 +14,7 @@ */ import * as PropTypes from "prop-types"; -import * as React from "react"; +import React from "react"; export interface IColumnInteractionBarContextTypes { enableColumnInteractionBar: boolean; diff --git a/packages/table/src/common/contextMenuTargetWrapper.tsx b/packages/table/src/common/contextMenuTargetWrapper.tsx index ce9b23b171..43282746b6 100644 --- a/packages/table/src/common/contextMenuTargetWrapper.tsx +++ b/packages/table/src/common/contextMenuTargetWrapper.tsx @@ -16,7 +16,7 @@ /* eslint-disable deprecation/deprecation */ -import * as React from "react"; +import React from "react"; import { ContextMenuTarget, IProps } from "@blueprintjs/core"; diff --git a/packages/table/src/common/loadableContent.tsx b/packages/table/src/common/loadableContent.tsx index a7479838c4..feac29c65f 100644 --- a/packages/table/src/common/loadableContent.tsx +++ b/packages/table/src/common/loadableContent.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Classes } from "@blueprintjs/core"; diff --git a/packages/table/src/common/rect.ts b/packages/table/src/common/rect.ts index 77c7bbb95b..28efcbff3a 100644 --- a/packages/table/src/common/rect.ts +++ b/packages/table/src/common/rect.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; export type AnyRect = Rect | ClientRect; diff --git a/packages/table/src/headers/columnHeader.tsx b/packages/table/src/headers/columnHeader.tsx index 82d13da1b8..0d40543b5c 100644 --- a/packages/table/src/headers/columnHeader.tsx +++ b/packages/table/src/headers/columnHeader.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { IRef } from "@blueprintjs/core"; diff --git a/packages/table/src/headers/columnHeaderCell.tsx b/packages/table/src/headers/columnHeaderCell.tsx index d166c0a0ed..6228492a28 100644 --- a/packages/table/src/headers/columnHeaderCell.tsx +++ b/packages/table/src/headers/columnHeaderCell.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { diff --git a/packages/table/src/headers/editableName.tsx b/packages/table/src/headers/editableName.tsx index 4484fc4408..d73cff41d4 100644 --- a/packages/table/src/headers/editableName.tsx +++ b/packages/table/src/headers/editableName.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { EditableText, IIntentProps, IProps } from "@blueprintjs/core"; diff --git a/packages/table/src/headers/header.tsx b/packages/table/src/headers/header.tsx index 3d15d4f676..a2326926f0 100644 --- a/packages/table/src/headers/header.tsx +++ b/packages/table/src/headers/header.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Icon, Utils as CoreUtils } from "@blueprintjs/core"; diff --git a/packages/table/src/headers/headerCell.tsx b/packages/table/src/headers/headerCell.tsx index 69a1d6f8d3..c02e315f98 100644 --- a/packages/table/src/headers/headerCell.tsx +++ b/packages/table/src/headers/headerCell.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { Classes as CoreClasses, ContextMenuTarget, IProps, Utils as CoreUtils } from "@blueprintjs/core"; diff --git a/packages/table/src/headers/rowHeader.tsx b/packages/table/src/headers/rowHeader.tsx index 057845f8c0..467ecde754 100644 --- a/packages/table/src/headers/rowHeader.tsx +++ b/packages/table/src/headers/rowHeader.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import * as Classes from "../common/classes"; import { IRowIndices } from "../common/grid"; diff --git a/packages/table/src/headers/rowHeaderCell.tsx b/packages/table/src/headers/rowHeaderCell.tsx index 93827a37aa..7359a4a3d3 100644 --- a/packages/table/src/headers/rowHeaderCell.tsx +++ b/packages/table/src/headers/rowHeaderCell.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, IProps } from "@blueprintjs/core"; diff --git a/packages/table/src/interactions/draggable.tsx b/packages/table/src/interactions/draggable.tsx index 4a3ae15277..ac3bbf4ed1 100644 --- a/packages/table/src/interactions/draggable.tsx +++ b/packages/table/src/interactions/draggable.tsx @@ -14,8 +14,8 @@ * limitations under the License. */ -import * as React from "react"; -import * as ReactDOM from "react-dom"; +import React from "react"; +import ReactDOM from "react-dom"; import { IProps, Utils as CoreUtils } from "@blueprintjs/core"; diff --git a/packages/table/src/interactions/menus/copyCellsMenuItem.tsx b/packages/table/src/interactions/menus/copyCellsMenuItem.tsx index 2ef50de9a8..2e08c1e79f 100644 --- a/packages/table/src/interactions/menus/copyCellsMenuItem.tsx +++ b/packages/table/src/interactions/menus/copyCellsMenuItem.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { IMenuItemProps, MenuItem } from "@blueprintjs/core"; diff --git a/packages/table/src/interactions/reorderable.tsx b/packages/table/src/interactions/reorderable.tsx index 84af4917e6..fd7d705444 100644 --- a/packages/table/src/interactions/reorderable.tsx +++ b/packages/table/src/interactions/reorderable.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Utils as CoreUtils } from "@blueprintjs/core"; diff --git a/packages/table/src/interactions/resizable.tsx b/packages/table/src/interactions/resizable.tsx index 62e8045640..7273ab40e8 100644 --- a/packages/table/src/interactions/resizable.tsx +++ b/packages/table/src/interactions/resizable.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, IProps, Utils as CoreUtils } from "@blueprintjs/core"; diff --git a/packages/table/src/interactions/resizeHandle.tsx b/packages/table/src/interactions/resizeHandle.tsx index a1e5c415a0..46ec0c3627 100644 --- a/packages/table/src/interactions/resizeHandle.tsx +++ b/packages/table/src/interactions/resizeHandle.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { IProps } from "@blueprintjs/core"; diff --git a/packages/table/src/interactions/selectable.tsx b/packages/table/src/interactions/selectable.tsx index 2c53397da7..ab84604ac7 100644 --- a/packages/table/src/interactions/selectable.tsx +++ b/packages/table/src/interactions/selectable.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Utils as CoreUtils } from "@blueprintjs/core"; diff --git a/packages/table/src/layers/guides.tsx b/packages/table/src/layers/guides.tsx index cefc159cef..bd77bf7f9f 100644 --- a/packages/table/src/layers/guides.tsx +++ b/packages/table/src/layers/guides.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { IProps, Utils as CoreUtils } from "@blueprintjs/core"; diff --git a/packages/table/src/layers/regions.tsx b/packages/table/src/layers/regions.tsx index 56d8b9af60..65e6217b2d 100644 --- a/packages/table/src/layers/regions.tsx +++ b/packages/table/src/layers/regions.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { IProps, Utils as CoreUtils } from "@blueprintjs/core"; diff --git a/packages/table/src/quadrants/tableQuadrant.tsx b/packages/table/src/quadrants/tableQuadrant.tsx index 74c288ff6b..c757085a62 100644 --- a/packages/table/src/quadrants/tableQuadrant.tsx +++ b/packages/table/src/quadrants/tableQuadrant.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractComponent2, IProps, IRef } from "@blueprintjs/core"; diff --git a/packages/table/src/quadrants/tableQuadrantStack.tsx b/packages/table/src/quadrants/tableQuadrantStack.tsx index d961e1cf59..40a12c3397 100644 --- a/packages/table/src/quadrants/tableQuadrantStack.tsx +++ b/packages/table/src/quadrants/tableQuadrantStack.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractComponent2, IProps, IRef, setRef, Utils as CoreUtils } from "@blueprintjs/core"; diff --git a/packages/table/src/table.tsx b/packages/table/src/table.tsx index 8b8d6ac791..a8cc2c44a0 100644 --- a/packages/table/src/table.tsx +++ b/packages/table/src/table.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { diff --git a/packages/table/src/tableBody.tsx b/packages/table/src/tableBody.tsx index 4d5c535730..bfb6683c06 100644 --- a/packages/table/src/tableBody.tsx +++ b/packages/table/src/tableBody.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { AbstractComponent2, Utils as CoreUtils } from "@blueprintjs/core"; diff --git a/packages/table/src/tableBodyCells.tsx b/packages/table/src/tableBodyCells.tsx index 88bb4d8d7f..d5bbbccca0 100644 --- a/packages/table/src/tableBodyCells.tsx +++ b/packages/table/src/tableBodyCells.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { AbstractComponent2, IProps, Utils as CoreUtils } from "@blueprintjs/core"; diff --git a/packages/table/test/cellTests.tsx b/packages/table/test/cellTests.tsx index 0d9e05eae5..606d6ca8f2 100644 --- a/packages/table/test/cellTests.tsx +++ b/packages/table/test/cellTests.tsx @@ -15,7 +15,7 @@ */ import { expect } from "chai"; -import * as React from "react"; +import React from "react"; import { Classes as CoreClasses, Intent } from "@blueprintjs/core"; diff --git a/packages/table/test/columnHeaderCellTests.tsx b/packages/table/test/columnHeaderCellTests.tsx index 79a1d8eecb..55a8e4fc01 100644 --- a/packages/table/test/columnHeaderCellTests.tsx +++ b/packages/table/test/columnHeaderCellTests.tsx @@ -16,8 +16,8 @@ import { expect } from "chai"; import { shallow } from "enzyme"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import { Classes as CoreClasses, H4, Menu, MenuItem } from "@blueprintjs/core"; diff --git a/packages/table/test/columnTests.tsx b/packages/table/test/columnTests.tsx index 322abd841b..c758fd3183 100644 --- a/packages/table/test/columnTests.tsx +++ b/packages/table/test/columnTests.tsx @@ -15,7 +15,7 @@ */ import { expect } from "chai"; -import * as React from "react"; +import React from "react"; import { Cell, Column, ColumnLoadingOption, Table } from "../src"; import * as Classes from "../src/common/classes"; diff --git a/packages/table/test/common/internal/scrollUtilsTests.tsx b/packages/table/test/common/internal/scrollUtilsTests.tsx index 42d9ac7992..c724b03518 100644 --- a/packages/table/test/common/internal/scrollUtilsTests.tsx +++ b/packages/table/test/common/internal/scrollUtilsTests.tsx @@ -15,8 +15,8 @@ */ import { expect } from "chai"; -import * as React from "react"; -import * as ReactDOM from "react-dom"; +import React from "react"; +import ReactDOM from "react-dom"; import * as ScrollUtils from "../../../src/common/internal/scrollUtils"; import { IRegion, Regions } from "../../../src/regions"; diff --git a/packages/table/test/editableCellTests.tsx b/packages/table/test/editableCellTests.tsx index 39ceea57af..9c695e6404 100644 --- a/packages/table/test/editableCellTests.tsx +++ b/packages/table/test/editableCellTests.tsx @@ -16,8 +16,8 @@ import { expect } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import { Classes } from "@blueprintjs/core"; diff --git a/packages/table/test/editableNameTests.tsx b/packages/table/test/editableNameTests.tsx index 85873657c6..3ef63d4733 100644 --- a/packages/table/test/editableNameTests.tsx +++ b/packages/table/test/editableNameTests.tsx @@ -16,8 +16,8 @@ import { expect } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import { EditableText } from "@blueprintjs/core"; diff --git a/packages/table/test/formatsTests.tsx b/packages/table/test/formatsTests.tsx index e093585bbe..2a1eaa0f13 100644 --- a/packages/table/test/formatsTests.tsx +++ b/packages/table/test/formatsTests.tsx @@ -15,7 +15,7 @@ */ import { expect } from "chai"; -import * as React from "react"; +import React from "react"; import { JSONFormat } from "../src/cell/formats/jsonFormat"; import { TruncatedFormat, TruncatedPopoverMode } from "../src/cell/formats/truncatedFormat"; diff --git a/packages/table/test/guidesTests.tsx b/packages/table/test/guidesTests.tsx index 6f66cc4863..8e672b9b13 100644 --- a/packages/table/test/guidesTests.tsx +++ b/packages/table/test/guidesTests.tsx @@ -15,7 +15,7 @@ */ import { expect } from "chai"; -import * as React from "react"; +import React from "react"; import * as Classes from "../src/common/classes"; import { GuideLayer } from "../src/layers/guides"; diff --git a/packages/table/test/harness.ts b/packages/table/test/harness.ts index 7861f973cc..54024a7167 100644 --- a/packages/table/test/harness.ts +++ b/packages/table/test/harness.ts @@ -16,8 +16,8 @@ /* eslint-disable max-classes-per-file */ -import * as React from "react"; -import * as ReactDOM from "react-dom"; +import React from "react"; +import ReactDOM from "react-dom"; // tslint:disable-next-line:no-submodule-imports import { Browser } from "@blueprintjs/core/lib/esm/compatibility"; diff --git a/packages/table/test/loadableContentTests.tsx b/packages/table/test/loadableContentTests.tsx index 59ffb28a39..863c2fc95e 100644 --- a/packages/table/test/loadableContentTests.tsx +++ b/packages/table/test/loadableContentTests.tsx @@ -15,7 +15,7 @@ */ import { expect } from "chai"; -import * as React from "react"; +import React from "react"; import { Classes } from "@blueprintjs/core"; diff --git a/packages/table/test/loadingOptionsTests.tsx b/packages/table/test/loadingOptionsTests.tsx index 1ce4422075..82f62ed419 100644 --- a/packages/table/test/loadingOptionsTests.tsx +++ b/packages/table/test/loadingOptionsTests.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Cell, Column, ColumnHeaderCell, ColumnLoadingOption, RowHeaderCell, Table, TableLoadingOption } from "../src"; import * as Classes from "../src/common/classes"; diff --git a/packages/table/test/locatorTests.tsx b/packages/table/test/locatorTests.tsx index 695a7b8609..fa79ceec00 100644 --- a/packages/table/test/locatorTests.tsx +++ b/packages/table/test/locatorTests.tsx @@ -15,8 +15,8 @@ */ import { expect } from "chai"; -import * as React from "react"; -import * as ReactDOM from "react-dom"; +import React from "react"; +import ReactDOM from "react-dom"; import { Utils } from "../src"; import { Grid } from "../src/common/grid"; diff --git a/packages/table/test/menusTests.tsx b/packages/table/test/menusTests.tsx index 85a0da0326..f894fb7258 100644 --- a/packages/table/test/menusTests.tsx +++ b/packages/table/test/menusTests.tsx @@ -15,8 +15,8 @@ */ import { expect } from "chai"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import { Classes, Menu } from "@blueprintjs/core"; diff --git a/packages/table/test/mocks/table.tsx b/packages/table/test/mocks/table.tsx index da91e44ecd..935891d989 100644 --- a/packages/table/test/mocks/table.tsx +++ b/packages/table/test/mocks/table.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as React from "react"; +import React from "react"; import { Cell, Column, IColumnProps, ITableProps, RenderMode, Table, Utils } from "../../src"; diff --git a/packages/table/test/quadrants/tableQuadrantStackTests.tsx b/packages/table/test/quadrants/tableQuadrantStackTests.tsx index 23ae7add71..0dcb5165be 100644 --- a/packages/table/test/quadrants/tableQuadrantStackTests.tsx +++ b/packages/table/test/quadrants/tableQuadrantStackTests.tsx @@ -16,10 +16,10 @@ import { expect } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; -import * as ReactDOM from "react-dom"; +import React from "react"; +import ReactDOM from "react-dom"; import * as TestUtils from "react-dom/test-utils"; -import * as sinon from "sinon"; +import sinon from "sinon"; import { IRef } from "@blueprintjs/core"; diff --git a/packages/table/test/quadrants/tableQuadrantTests.tsx b/packages/table/test/quadrants/tableQuadrantTests.tsx index 4cc1f51cf2..cfc810274b 100644 --- a/packages/table/test/quadrants/tableQuadrantTests.tsx +++ b/packages/table/test/quadrants/tableQuadrantTests.tsx @@ -16,8 +16,8 @@ import { expect } from "chai"; import { mount, ReactWrapper } from "enzyme"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import * as Classes from "../../src/common/classes"; import * as Errors from "../../src/common/errors"; diff --git a/packages/table/test/reorderableTests.tsx b/packages/table/test/reorderableTests.tsx index 88962334da..6e191466d4 100644 --- a/packages/table/test/reorderableTests.tsx +++ b/packages/table/test/reorderableTests.tsx @@ -15,8 +15,8 @@ */ import { expect } from "chai"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import { Regions } from "../src/"; import { DragReorderable } from "../src/interactions/reorderable"; diff --git a/packages/table/test/resizableTests.tsx b/packages/table/test/resizableTests.tsx index bfb28f8bcf..21adb6795a 100644 --- a/packages/table/test/resizableTests.tsx +++ b/packages/table/test/resizableTests.tsx @@ -16,8 +16,8 @@ import { expect } from "chai"; import { mount } from "enzyme"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import * as Classes from "../src/common/classes"; import { IResizableProps, IResizeableState, Resizable } from "../src/interactions/resizable"; diff --git a/packages/table/test/rowHeaderTests.tsx b/packages/table/test/rowHeaderTests.tsx index 3fdf9c2e5d..23e7af8735 100644 --- a/packages/table/test/rowHeaderTests.tsx +++ b/packages/table/test/rowHeaderTests.tsx @@ -16,8 +16,8 @@ import { expect } from "chai"; import { shallow } from "enzyme"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import { H4 } from "@blueprintjs/core"; diff --git a/packages/table/test/selectionTests.tsx b/packages/table/test/selectionTests.tsx index c3ea898292..0bc9064c64 100644 --- a/packages/table/test/selectionTests.tsx +++ b/packages/table/test/selectionTests.tsx @@ -15,7 +15,7 @@ */ import { expect } from "chai"; -import * as sinon from "sinon"; +import sinon from "sinon"; import { RegionCardinality, Regions, SelectionModes } from "../src"; import * as Classes from "../src/common/classes"; diff --git a/packages/table/test/tableBodyTests.tsx b/packages/table/test/tableBodyTests.tsx index a726e652b0..b3174d4fe8 100644 --- a/packages/table/test/tableBodyTests.tsx +++ b/packages/table/test/tableBodyTests.tsx @@ -16,8 +16,8 @@ import { expect } from "chai"; import { mount, ReactWrapper } from "enzyme"; -import * as React from "react"; -import * as sinon from "sinon"; +import React from "react"; +import sinon from "sinon"; import { Cell } from "../src/cell/cell"; import { Batcher } from "../src/common/batcher"; diff --git a/packages/table/test/tableTests.tsx b/packages/table/test/tableTests.tsx index 70005e00fb..7381d3b698 100644 --- a/packages/table/test/tableTests.tsx +++ b/packages/table/test/tableTests.tsx @@ -16,9 +16,9 @@ import { expect } from "chai"; import { mount as untypedMount, MountRendererProps, ReactWrapper } from "enzyme"; -import * as React from "react"; -import * as ReactDOM from "react-dom"; -import * as sinon from "sinon"; +import React from "react"; +import ReactDOM from "react-dom"; +import sinon from "sinon"; import { Keys, Utils as CoreUtils } from "@blueprintjs/core"; import { dispatchMouseEvent, expectPropValidationError } from "@blueprintjs/test-commons"; diff --git a/packages/test-commons/src/generateIsomorphicTests.ts b/packages/test-commons/src/generateIsomorphicTests.ts index b54ce6abca..46122906a2 100755 --- a/packages/test-commons/src/generateIsomorphicTests.ts +++ b/packages/test-commons/src/generateIsomorphicTests.ts @@ -6,7 +6,7 @@ import { strictEqual } from "assert"; import * as Enzyme from "enzyme"; -import * as React from "react"; +import React from "react"; function isReactClass(Component: any): Component is React.ComponentClass { return ( diff --git a/packages/test-commons/src/testErrorBoundary.tsx b/packages/test-commons/src/testErrorBoundary.tsx index f286ac265f..8266ac7dea 100644 --- a/packages/test-commons/src/testErrorBoundary.tsx +++ b/packages/test-commons/src/testErrorBoundary.tsx @@ -14,7 +14,7 @@ */ import { expect } from "chai"; -import * as React from "react"; +import React from "react"; export interface ITestErrorBoundaryProps { expectedErrorString: string; diff --git a/packages/test-commons/src/utils.ts b/packages/test-commons/src/utils.ts index a3cc8a78c5..d68f35ac0a 100644 --- a/packages/test-commons/src/utils.ts +++ b/packages/test-commons/src/utils.ts @@ -15,7 +15,7 @@ */ import { expect } from "chai"; -import * as React from "react"; +import React from "react"; /** * Dispatch a native KeyBoardEvent on the target element with the given type diff --git a/packages/timezone/src/components/timezone-picker/timezoneDisplayFormat.ts b/packages/timezone/src/components/timezone-picker/timezoneDisplayFormat.ts index eac3e32e5f..ac4b49a50e 100644 --- a/packages/timezone/src/components/timezone-picker/timezoneDisplayFormat.ts +++ b/packages/timezone/src/components/timezone-picker/timezoneDisplayFormat.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as moment from "moment-timezone"; +import moment from "moment-timezone"; import { getTimezoneMetadata } from "./timezoneMetadata"; diff --git a/packages/timezone/src/components/timezone-picker/timezoneItems.ts b/packages/timezone/src/components/timezone-picker/timezoneItems.ts index cb328ac2be..bf10217d98 100644 --- a/packages/timezone/src/components/timezone-picker/timezoneItems.ts +++ b/packages/timezone/src/components/timezone-picker/timezoneItems.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as moment from "moment-timezone"; +import moment from "moment-timezone"; import { IconName } from "@blueprintjs/core"; diff --git a/packages/timezone/src/components/timezone-picker/timezoneMetadata.ts b/packages/timezone/src/components/timezone-picker/timezoneMetadata.ts index 1d0c014123..6fa4cef0d0 100644 --- a/packages/timezone/src/components/timezone-picker/timezoneMetadata.ts +++ b/packages/timezone/src/components/timezone-picker/timezoneMetadata.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import * as moment from "moment-timezone"; +import moment from "moment-timezone"; // non-empty abbreviations that do not begin with -/+ const ABBR_REGEX = /^[^-+]/; diff --git a/packages/timezone/src/components/timezone-picker/timezonePicker.tsx b/packages/timezone/src/components/timezone-picker/timezonePicker.tsx index 5e323f2783..1ffe296ea6 100644 --- a/packages/timezone/src/components/timezone-picker/timezonePicker.tsx +++ b/packages/timezone/src/components/timezone-picker/timezonePicker.tsx @@ -15,7 +15,7 @@ */ import classNames from "classnames"; -import * as React from "react"; +import React from "react"; import { polyfill } from "react-lifecycles-compat"; import { diff --git a/packages/timezone/test/timezonePickerTests.tsx b/packages/timezone/test/timezonePickerTests.tsx index 52e3c96a92..4042b4c41c 100644 --- a/packages/timezone/test/timezonePickerTests.tsx +++ b/packages/timezone/test/timezonePickerTests.tsx @@ -16,9 +16,9 @@ import { assert } from "chai"; import { mount, shallow as untypedShallow, ShallowRendererProps, ShallowWrapper } from "enzyme"; -import * as moment from "moment-timezone"; -import * as React from "react"; -import * as sinon from "sinon"; +import moment from "moment-timezone"; +import React from "react"; +import sinon from "sinon"; import { Button,