Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
adidahiya committed Oct 19, 2023
1 parent 3f9defe commit 26cbb09
Show file tree
Hide file tree
Showing 17 changed files with 151 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ import {
Utils,
} from "@blueprintjs/core";

import { Classes, type DateFormatProps, type DatePickerBaseProps, type DateRange, type NonNullDateRange } from "../../common";
import {
Classes,
type DateFormatProps,
type DatePickerBaseProps,
type DateRange,
type NonNullDateRange,
} from "../../common";
import { getFormattedDateString } from "../../common/dateFormatProps";
import type { DatetimePopoverProps } from "../../common/datetimePopoverProps";
import { isDayInRange, isSameTime } from "../../common/dateUtils";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@

import classNames from "classnames";
import * as React from "react";
import DayPicker, { type CaptionElementProps, type DayModifiers, type DayPickerProps, type NavbarElementProps } from "react-day-picker";
import DayPicker, {
type CaptionElementProps,
type DayModifiers,
type DayPickerProps,
type NavbarElementProps,
} from "react-day-picker";

import { AbstractPureComponent, Boundary, DISPLAYNAME_PREFIX, Divider, type Props } from "@blueprintjs/core";

Expand Down
9 changes: 8 additions & 1 deletion packages/datetime/test/components/datePickerTests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@ import sinon from "sinon";
import { Button, Classes as CoreClasses, HTMLSelect, Menu, MenuItem } from "@blueprintjs/core";
import { assertDatesEqual } from "@blueprintjs/test-commons";

import { Classes, DatePicker, type DatePickerModifiers, type DatePickerProps, TimePicker, TimePrecision } from "../../src";
import {
Classes,
DatePicker,
type DatePickerModifiers,
type DatePickerProps,
TimePicker,
TimePrecision,
} from "../../src";
import { DateUtils, Months } from "../../src/common";
import * as Errors from "../../src/common/errors";
import type { DatePickerState } from "../../src/components/date-picker/datePicker";
Expand Down
10 changes: 9 additions & 1 deletion packages/datetime/test/components/timezoneSelectTests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@ import { mount, type ReactWrapper } from "enzyme";
import * as React from "react";
import * as sinon from "sinon";

import { Button, type ButtonProps, InputGroup, type InputGroupProps, MenuItem, Popover, type PopoverProps } from "@blueprintjs/core";
import {
Button,
type ButtonProps,
InputGroup,
type InputGroupProps,
MenuItem,
Popover,
type PopoverProps,
} from "@blueprintjs/core";
import { QueryList, Select } from "@blueprintjs/select";

import { TimezoneSelect, type TimezoneSelectProps } from "../../src";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@
*/

import * as React from "react";
import { DayPicker, type DayPickerRangeProps, type MonthChangeEventHandler, type SelectRangeEventHandler } from "react-day-picker";
import {
DayPicker,
type DayPickerRangeProps,
type MonthChangeEventHandler,
type SelectRangeEventHandler,
} from "react-day-picker";

import { DISPLAYNAME_PREFIX } from "@blueprintjs/core";
import { type DateRange, DateRangeSelectionStrategy, DateUtils, MonthAndYear } from "@blueprintjs/datetime";
Expand Down
8 changes: 7 additions & 1 deletion packages/datetime2/test/components/dateRangeInput3Tests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ import {
Popover,
type PopoverProps,
} from "@blueprintjs/core";
import { type DateFormatProps, type DateRange, Classes as DatetimeClasses, Months, TimePrecision } from "@blueprintjs/datetime";
import {
type DateFormatProps,
type DateRange,
Classes as DatetimeClasses,
Months,
TimePrecision,
} from "@blueprintjs/datetime";
import { expectPropValidationError } from "@blueprintjs/test-commons";

import {
Expand Down
8 changes: 7 additions & 1 deletion packages/docs-app/src/components/blueprintDocs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ import * as React from "react";

import { AnchorButton, Classes, HotkeysProvider, type Intent, Tag } from "@blueprintjs/core";
import type { DocsCompleteData } from "@blueprintjs/docs-data";
import { Banner, Documentation, type DocumentationProps, NavMenuItem, type NavMenuItemProps } from "@blueprintjs/docs-theme";
import {
Banner,
Documentation,
type DocumentationProps,
NavMenuItem,
type NavMenuItemProps,
} from "@blueprintjs/docs-theme";

import { highlightCodeBlocks } from "../styles/syntaxHighlighting";
import { NavHeader } from "./navHeader";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,15 @@
import classNames from "classnames";
import * as React from "react";

import { type Alignment, CheckboxCard, type CheckboxCardProps, Classes, FormGroup, H5, Switch } from "@blueprintjs/core";
import {
type Alignment,
CheckboxCard,
type CheckboxCardProps,
Classes,
FormGroup,
H5,
Switch,
} from "@blueprintjs/core";
import { Example, type ExampleProps, handleBooleanChange } from "@blueprintjs/docs-theme";

import { PropCodeTooltip } from "../../common/propCodeTooltip";
Expand Down
13 changes: 12 additions & 1 deletion packages/docs-app/src/examples/core-examples/menuItemExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,18 @@

import * as React from "react";

import { Classes, Code, H5, HTMLSelect, type Intent, Label, Menu, MenuItem, type MenuItemProps, Switch } from "@blueprintjs/core";
import {
Classes,
Code,
H5,
HTMLSelect,
type Intent,
Label,
Menu,
MenuItem,
type MenuItemProps,
Switch,
} from "@blueprintjs/core";
import { Example, type ExampleProps, handleBooleanChange, handleValueChange } from "@blueprintjs/docs-theme";

import { PropCodeTooltip } from "../../common/propCodeTooltip";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,17 @@

import * as React from "react";

import { Button, H5, Intent, NumericInput, type Panel, type PanelProps, PanelStack2, Switch, UL } from "@blueprintjs/core";
import {
Button,
H5,
Intent,
NumericInput,
type Panel,
type PanelProps,
PanelStack2,
Switch,
UL,
} from "@blueprintjs/core";
import { Example, type ExampleProps, handleBooleanChange } from "@blueprintjs/docs-theme";

// eslint-disable-next-line @typescript-eslint/no-empty-interface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,17 @@

import * as React from "react";

import { Button, H5, Intent, type IPanel, type IPanelProps, NumericInput, PanelStack, Switch, UL } from "@blueprintjs/core";
import {
Button,
H5,
Intent,
type IPanel,
type IPanelProps,
NumericInput,
PanelStack,
Switch,
UL,
} from "@blueprintjs/core";
import { Example, type ExampleProps, handleBooleanChange } from "@blueprintjs/docs-theme";

export interface IPanelStackExampleState {
Expand Down
14 changes: 13 additions & 1 deletion packages/docs-app/src/examples/core-examples/tabsExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,19 @@

import * as React from "react";

import { Alignment, Classes, Divider, H4, H5, InputGroup, Navbar, Switch, Tab, type TabId, Tabs } from "@blueprintjs/core";
import {
Alignment,
Classes,
Divider,
H4,
H5,
InputGroup,
Navbar,
Switch,
Tab,
type TabId,
Tabs,
} from "@blueprintjs/core";
import { Example, type ExampleProps, handleBooleanChange } from "@blueprintjs/docs-theme";

import { PropCodeTooltip } from "../../common/propCodeTooltip";
Expand Down
16 changes: 14 additions & 2 deletions packages/docs-theme/src/components/documentation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,26 @@
* limitations under the License.
*/

import { type IHeadingNode, type IPageData, type IPageNode, isPageNode, type ITsDocBase, linkify } from "@documentalist/client";
import {
type IHeadingNode,
type IPageData,
type IPageNode,
isPageNode,
type ITsDocBase,
linkify,
} from "@documentalist/client";
import classNames from "classnames";
import * as React from "react";

import { Classes, Drawer, FocusStyleManager, HotkeysTarget2, type Props } from "@blueprintjs/core";
import { Search } from "@blueprintjs/icons";

import { type DocsData, DocumentationContext, type DocumentationContextApi, hasTypescriptData } from "../common/context";
import {
type DocsData,
DocumentationContext,
type DocumentationContextApi,
hasTypescriptData,
} from "../common/context";
import { eachLayoutNode } from "../common/documentalistUtils";
import { type TagRendererMap, TypescriptExample } from "../tags";
import { renderBlock } from "./block";
Expand Down
9 changes: 8 additions & 1 deletion packages/docs-theme/src/tags/typescript.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@
* limitations under the License.
*/

import { isTsClass, isTsEnum, isTsInterface, isTsTypeAlias, type ITag, type ITypescriptPluginData } from "@documentalist/client";
import {
isTsClass,
isTsEnum,
isTsInterface,
isTsTypeAlias,
type ITag,
type ITypescriptPluginData,
} from "@documentalist/client";
import * as React from "react";

import type { Props } from "@blueprintjs/core";
Expand Down
8 changes: 7 additions & 1 deletion packages/table/src/cell/cell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@
import classNames from "classnames";
import * as React from "react";

import { Classes as CoreClasses, Utils as CoreUtils, DISPLAYNAME_PREFIX, type IntentProps, type Props } from "@blueprintjs/core";
import {
Classes as CoreClasses,
Utils as CoreUtils,
DISPLAYNAME_PREFIX,
type IntentProps,
type Props,
} from "@blueprintjs/core";

import * as Classes from "../common/classes";
import { LoadableContent } from "../common/loadableContent";
Expand Down
9 changes: 8 additions & 1 deletion packages/table/src/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,14 @@ import { RegionLayer, type RegionStyler } from "./layers/regions";
import { type Locator, LocatorImpl } from "./locator";
import { QuadrantType } from "./quadrants/tableQuadrant";
import { TableQuadrantStack } from "./quadrants/tableQuadrantStack";
import { ColumnLoadingOption, type Region, RegionCardinality, Regions, SelectionModes, TableLoadingOption } from "./regions";
import {
ColumnLoadingOption,
type Region,
RegionCardinality,
Regions,
SelectionModes,
TableLoadingOption,
} from "./regions";
import {
resizeRowsByApproximateHeight,
type ResizeRowsByApproximateHeightOptions,
Expand Down
9 changes: 8 additions & 1 deletion packages/table/src/table2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@ import { RegionLayer, type RegionStyler } from "./layers/regions";
import { type Locator, LocatorImpl } from "./locator";
import { QuadrantType } from "./quadrants/tableQuadrant";
import { TableQuadrantStack } from "./quadrants/tableQuadrantStack";
import { ColumnLoadingOption, type Region, RegionCardinality, Regions, SelectionModes, TableLoadingOption } from "./regions";
import {
ColumnLoadingOption,
type Region,
RegionCardinality,
Regions,
SelectionModes,
TableLoadingOption,
} from "./regions";
import {
resizeRowsByApproximateHeight,
type ResizeRowsByApproximateHeightOptions,
Expand Down

0 comments on commit 26cbb09

Please sign in to comment.