Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v5] fix: restore various public API exports #6188

Merged
merged 1 commit into from
May 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions packages/core/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,17 @@ export {
StrictModifierNames,
} from "./popover/popoverSharedProps";
export { PopupKind } from "./popover/popupKind";
export { Portal, PortalProps } from "./portal/portal";
export { Portal, PortalProps, PortalLegacyContext } from "./portal/portal";
export { ProgressBar, ProgressBarProps } from "./progress-bar/progressBar";
export { ResizeEntry, ResizeSensor, ResizeSensorProps } from "./resize-sensor/resizeSensor";
export { HandleHtmlProps, HandleInteractionKind, HandleProps, HandleType } from "./slider/handleProps";
export { MultiSlider, MultiSliderProps } from "./slider/multiSlider";
export { MultiSlider, MultiSliderProps, SliderBaseProps } from "./slider/multiSlider";
export { NumberRange, RangeSlider, RangeSliderProps } from "./slider/rangeSlider";
export { Slider, SliderProps } from "./slider/slider";
export { Spinner, SpinnerProps, SpinnerSize } from "./spinner/spinner";
export { Tab, TabId, TabProps } from "./tabs/tab";
export { Tabs, TabsProps } from "./tabs/tabs";
// eslint-disable-next-line deprecation/deprecation
export { Tabs, TabsProps, TabsExpander, Expander } from "./tabs/tabs";
export { Tag, TagProps } from "./tag/tag";
export { TagInput, TagInputProps, TagInputAddMethod } from "./tag-input/tagInput";
export { OverlayToaster } from "./toast/overlayToaster";
Expand Down
10 changes: 8 additions & 2 deletions packages/core/src/components/tabs/tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ import { AbstractPureComponent, Classes, DISPLAYNAME_PREFIX, Props, Utils } from
import { Tab, TabId, TabProps } from "./tab";
import { generateTabPanelId, generateTabTitleId, TabTitle } from "./tabTitle";

export const Expander: React.FC = () => <div className={Classes.FLEX_EXPANDER} />;
/**
* Component that may be inserted between any two children of `<Tabs>` to right-align all subsequent children.
*/
export const TabsExpander: React.FC = () => <div className={Classes.FLEX_EXPANDER} />;

/** @deprecated use `TabsExpander` instead */
export const Expander = TabsExpander;

type TabElement = React.ReactElement<TabProps & { children: React.ReactNode }>;

Expand Down Expand Up @@ -114,7 +120,7 @@ export interface TabsState {
*/
export class Tabs extends AbstractPureComponent<TabsProps, TabsState> {
/** Insert a `Tabs.Expander` between any two children to right-align all subsequent children. */
public static Expander = Expander;
public static Expander = TabsExpander;

public static Tab = Tab;

Expand Down
2 changes: 2 additions & 0 deletions packages/datetime2/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export {
/** @deprecated import from @blueprintjs/datetime instead */
DateInputProps as DateInput2Props,
/** @deprecated import from @blueprintjs/datetime instead */
DateRange,
/** @deprecated import from @blueprintjs/datetime instead */
DateRangeInput as DateRangeInput2,
/** @deprecated import from @blueprintjs/datetime instead */
DateRangeInputProps as DateRangeInput2Props,
Expand Down
4 changes: 2 additions & 2 deletions packages/table/src/deprecatedAliases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ export {
/** @deprecated import ColumnHeaderCell instead */
ColumnHeaderCell as ColumnHeaderCell2,
/** @deprecated import ColumnHeaderCellProps instead */
type ColumnHeaderCellProps as ColumnHeaderCellProps2,
type ColumnHeaderCellProps as ColumnHeaderCell2Props,
} from "./headers/columnHeaderCell";

export {
/** @deprecated import RowHeaderCell instead */
RowHeaderCell as RowHeaderCell2,
/** @deprecated import RowHeaderCellProps instead */
type RowHeaderCellProps as RowHeaderCellProps2,
type RowHeaderCellProps as RowHeaderCell2Props,
} from "./headers/rowHeaderCell";

export {
Expand Down