Skip to content
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
3 changes: 1 addition & 2 deletions documentation-site/components/map-marker-sizing-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ LICENSE file in the root directory of this source tree.
// @flow
import * as React from 'react';
import { Table } from 'baseui/table-semantic';
import { PINHEAD_SIZES_SHAPES, FLOATING_MARKER_SIZES } from 'baseui/map-marker';
import { PINHEAD_DIMENSIONS } from '../../src/map-marker/constants';
import { PINHEAD_SIZES_SHAPES, FLOATING_MARKER_SIZES, PINHEAD_DIMENSIONS } from 'baseui/map-marker';
import { InlineCode } from './markdown-elements';

export const FixedMarkerSizingTable = () => {
Expand Down
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,6 @@
"@types/react-dom": "^16.8.4",
"@types/react-virtualized": "^9.21.3",
"@types/react-window": "^1.8.1",
"@types/styletron-engine-atomic": "^1.1.1",
"@types/styletron-react": "^5.0.3",
"@types/styletron-standard": "^2.0.2",
"@types/webpack": "^4.41.32",
"@typescript-eslint/eslint-plugin": "^5.26.0",
"@typescript-eslint/parser": "^5.26.0",
Expand Down Expand Up @@ -193,9 +190,9 @@
"semver": "^6.2.0",
"shx": "^0.3.2",
"static-server": "^2.2.1",
"styletron-engine-atomic": "^1.4.3",
"styletron-react": "^5.2.4",
"styletron-standard": "^3.0.3",
"styletron-engine-atomic": "^1.5.0-beta.1",
"styletron-react": "^6.1.0-beta.1",
"styletron-standard": "^3.1.0-beta.1",
"tar": "^5.0.0",
"tsconfig-paths": "^3.9.0",
"typescript": "^4.7.2",
Expand Down
14 changes: 7 additions & 7 deletions src/accordion/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ export class StatefulPanelContainer extends React.Component<
): void;
}

export declare const StyledRoot: StyletronComponent<any>;
export declare const StyledPanelContainer: StyletronComponent<any>;
export declare const StyledHeader: StyletronComponent<any>;
export declare const StyledContent: StyletronComponent<any>;
export declare const StyledContentAnimationContainer: StyletronComponent<any>;
export declare const StyledToggleIcon: StyletronComponent<any>;
export declare const StyledToggleIconGroup: StyletronComponent<any>;
export declare const StyledRoot: StyletronComponent<any, any>;
export declare const StyledPanelContainer: StyletronComponent<any, any>;
export declare const StyledHeader: StyletronComponent<any, any>;
export declare const StyledContent: StyletronComponent<any, any>;
export declare const StyledContentAnimationContainer: StyletronComponent<any, any>;
export declare const StyledToggleIcon: StyletronComponent<any, any>;
export declare const StyledToggleIconGroup: StyletronComponent<any, any>;
6 changes: 3 additions & 3 deletions src/avatar/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ export interface AvatarProps {

export declare const Avatar: React.FC<AvatarProps>;

export declare const StyledAvatar: StyletronComponent<any>;
export declare const StyledInitials: StyletronComponent<any>;
export declare const StyledRoot: StyletronComponent<any>;
export declare const StyledAvatar: StyletronComponent<any, any>;
export declare const StyledInitials: StyletronComponent<any, any>;
export declare const StyledRoot: StyletronComponent<any, any>;
45 changes: 20 additions & 25 deletions src/badge/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@ import * as React from 'react';
import { StyletronComponent } from 'styletron-react';
import { Override } from '../overrides';

export interface HIERARCHY {
export declare const HIERARCHY: {
primary: 'primary';
secondary: 'secondary';
}
};

export interface SHAPE {
export declare const SHAPE: {
pill: 'pill';
rectangle: 'rectangle';
}
};

export interface COLOR {
export declare const COLOR: {
accent: 'accent';
primary: 'primary';
positive: 'positive';
negative: 'negative';
warning: 'warning';
}
};

export interface PLACEMENT {
export declare const PLACEMENT: {
topLeft: 'topLeft';
topRight: 'topRight';
bottomRight: 'bottomRight';
Expand All @@ -35,12 +35,12 @@ export interface PLACEMENT {
rightTopEdge: 'rightTopEdge';
rightBottomEdge: 'rightBottomEdge';
leftBottomEdge: 'leftBottomEdge';
}
};

export type HierarchyT = HIERARCHY[keyof HIERARCHY];
export type ShapeT = SHAPE[keyof SHAPE];
export type ColorT = COLOR[keyof COLOR];
export type PlacementT = PLACEMENT[keyof PLACEMENT];
export type HierarchyT = typeof HIERARCHY[keyof typeof HIERARCHY];
export type ShapeT = typeof SHAPE[keyof typeof SHAPE];
export type ColorT = typeof COLOR[keyof typeof COLOR];
export type PlacementT = typeof PLACEMENT[keyof typeof PLACEMENT];

export type BadgeOverridesT = {
Root?: Override<any>;
Expand Down Expand Up @@ -81,17 +81,12 @@ export type HintDotPropsT = {
children?: React.ReactNode;
};

export const StyledRoot: StyletronComponent<any>;
export const StyledPositioner: StyletronComponent<any>;
export const StyledBadge: StyletronComponent<any>;
export const StyledNotificationCircle: StyletronComponent<any>;
export const StyledHintDot: StyletronComponent<any>;

export const Badge: React.FC<BadgePropsT>;
export const NotificationCircle: React.FC<NotificationCirclePropsT>;
export const HintDot: React.FC<HintDotPropsT>;
export declare const StyledRoot: StyletronComponent<any, any>;
export declare const StyledPositioner: StyletronComponent<any, any>;
export declare const StyledBadge: StyletronComponent<any, any>;
export declare const StyledNotificationCircle: StyletronComponent<any, any>;
export declare const StyledHintDot: StyletronComponent<any, any>;

export const HIERARCHY: HIERARCHY;
export const SHAPE: SHAPE;
export const COLOR: COLOR;
export const PLACEMENT: PLACEMENT;
export declare const Badge: React.FC<BadgePropsT>;
export declare const NotificationCircle: React.FC<NotificationCirclePropsT>;
export declare const HintDot: React.FC<HintDotPropsT>;
49 changes: 22 additions & 27 deletions src/banner/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,46 @@ import * as React from 'react';
import { StyletronComponent } from 'styletron-react';
import { Override } from '../overrides';

export interface ACTION_POSITION {
export declare const ACTION_POSITION: {
below: 'below';
trailing: 'trailing';
}
};

export interface ARTWORK_TYPE {
export declare const ARTWORK_TYPE: {
badge: 'badge';
icon: 'icon';
}
};

export interface HIERARCHY {
export declare const HIERARCHY: {
high: 'high';
low: 'low';
}
};

export interface KIND {
export declare const KIND: {
info: 'info';
negative: 'negative';
positive: 'positive';
warning: 'warning';
}
};

export interface ActionContentT {
label: string;
icon?: (iconProps: { size: string }) => React.ReactNode;
onClick: (event: React.MouseEvent<HTMLButtonElement>) => any;
position?: ACTION_POSITION[keyof ACTION_POSITION];
position?: typeof ACTION_POSITION[keyof typeof ACTION_POSITION];
}

export interface ArtworkContentT {
icon: (iconProps: { size: string }) => React.ReactNode;
type?: ARTWORK_TYPE[keyof ARTWORK_TYPE];
type?: typeof ARTWORK_TYPE[keyof typeof ARTWORK_TYPE];
}

export interface PropsT {
action?: ActionContentT;
artwork?: ArtworkContentT;
children: React.ReactNode;
hierarchy?: HIERARCHY[keyof HIERARCHY];
kind?: KIND[keyof KIND];
hierarchy?: typeof HIERARCHY[keyof typeof HIERARCHY];
kind?: typeof KIND[keyof typeof KIND];
overrides?: {
BelowContent?: Override<any>;
LeadingContent?: Override<any>;
Expand All @@ -57,19 +57,14 @@ export interface PropsT {
title?: React.ReactNode;
}

export const StyledBelowContent: StyletronComponent<any>;
export const StyledLeadingContent: StyletronComponent<any>;
export const StyledMessage: StyletronComponent<any>;
export const StyledMessageContent: StyletronComponent<any>;
export const StyledRoot: StyletronComponent<any>;
export const StyledTitle: StyletronComponent<any>;
export const StyledTrailingContent: StyletronComponent<any>;
export const StyledTrailingButtonContainer: StyletronComponent<any>;
export const StyledTrailingIconButton: StyletronComponent<any>;

export const ACTION_POSITION: ACTION_POSITION;
export const ARTWORK_TYPE: ARTWORK_TYPE;
export const HIERARCHY: HIERARCHY;
export const KIND: KIND;
export declare const StyledBelowContent: StyletronComponent<any, any>;
export declare const StyledLeadingContent: StyletronComponent<any, any>;
export declare const StyledMessage: StyletronComponent<any, any>;
export declare const StyledMessageContent: StyletronComponent<any, any>;
export declare const StyledRoot: StyletronComponent<any, any>;
export declare const StyledTitle: StyletronComponent<any, any>;
export declare const StyledTrailingContent: StyletronComponent<any, any>;
export declare const StyledTrailingButtonContainer: StyletronComponent<any, any>;
export declare const StyledTrailingIconButton: StyletronComponent<any, any>;

export const Banner: React.FC<PropsT>;
export declare const Banner: React.FC<PropsT>;
4 changes: 2 additions & 2 deletions src/breadcrumbs/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ export interface BreadcrumbsProps {

export declare const Breadcrumbs: React.FC<BreadcrumbsProps>;

export declare const StyledRoot: StyletronComponent<any>;
export declare const StyledSeparator: StyletronComponent<any>;
export declare const StyledRoot: StyletronComponent<any, any>;
export declare const StyledSeparator: StyletronComponent<any, any>;
2 changes: 1 addition & 1 deletion src/button-group/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export declare const STATE_CHANGE_TYPE: {
change: 'change';
};

export declare const StyledRoot: StyletronComponent<any>;
export declare const StyledRoot: StyletronComponent<any, any>;

export interface ButtonGroupOverrides {
Root?: Override<any>;
Expand Down
12 changes: 6 additions & 6 deletions src/button/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ export interface ButtonProps {
type?: 'submit' | 'reset' | 'button';
}

export declare const StyledBaseButton: StyletronComponent<any>;
export declare const StyledStartEnhancer: StyletronComponent<any>;
export declare const StyledEndEnhancer: StyletronComponent<any>;
export declare const StyledLoadingSpinner: StyletronComponent<any>;
export declare const StyledLoadingSpinnerContainer: StyletronComponent<any>;
export declare const StyledBaseButton: StyletronComponent<any, any>;
export declare const StyledStartEnhancer: StyletronComponent<any, any>;
export declare const StyledEndEnhancer: StyletronComponent<any, any>;
export declare const StyledLoadingSpinner: StyletronComponent<any, any>;
export declare const StyledLoadingSpinnerContainer: StyletronComponent<any, any>;

export declare const Button: StyletronComponent<ButtonProps>;
export declare const Button: StyletronComponent<any, ButtonProps>;
16 changes: 8 additions & 8 deletions src/card/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ export interface CardProps {
export declare const Card: React.FC<CardProps>;
export type hasThumbnail = (props: { readonly thumbnail?: string }) => boolean;

export declare const StyledAction: StyletronComponent<any>;
export declare const StyledBody: StyletronComponent<any>;
export declare const StyledContents: StyletronComponent<any>;
export declare const StyledHeaderImage: StyletronComponent<any>;
export declare const StyledThumbnail: StyletronComponent<any>;
export declare const StyledTitle: StyletronComponent<any>;
export declare const StyledRoot: StyletronComponent<any>;
export declare const StyledWrapper: StyletronComponent<any>;
export declare const StyledAction: StyletronComponent<any, any>;
export declare const StyledBody: StyletronComponent<any, any>;
export declare const StyledContents: StyletronComponent<any, any>;
export declare const StyledHeaderImage: StyletronComponent<any, any>;
export declare const StyledThumbnail: StyletronComponent<any, any>;
export declare const StyledTitle: StyletronComponent<any, any>;
export declare const StyledRoot: StyletronComponent<any, any>;
export declare const StyledWrapper: StyletronComponent<any, any>;
14 changes: 7 additions & 7 deletions src/checkbox/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ type initialState = {
isIndeterminate?: boolean;
};

export declare const StyledRoot: StyletronComponent<any>;
export declare const StyledCheckmark: StyletronComponent<any>;
export declare const StyledLabel: StyletronComponent<any>;
export declare const StyledInput: StyletronComponent<any>;
export declare const StyledToggle: StyletronComponent<any>;
export declare const StyledToggleInner: StyletronComponent<any>;
export declare const StyledToggleTrack: StyletronComponent<any>;
export declare const StyledRoot: StyletronComponent<any, any>;
export declare const StyledCheckmark: StyletronComponent<any, any>;
export declare const StyledLabel: StyletronComponent<any, any>;
export declare const StyledInput: StyletronComponent<any, any>;
export declare const StyledToggle: StyletronComponent<any, any>;
export declare const StyledToggleInner: StyletronComponent<any, any>;
export declare const StyledToggleTrack: StyletronComponent<any, any>;

export type StateReducer = (
stateType: string,
Expand Down
12 changes: 6 additions & 6 deletions src/dnd-list/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ export interface ListProps {

export class List extends React.Component<ListProps> {}

export declare const StyledRoot: StyletronComponent<any>;
export declare const StyledList: StyletronComponent<any>;
export declare const StyledItem: StyletronComponent<any>;
export declare const StyledDragHandle: StyletronComponent<any>;
export declare const StyledCloseHandle: StyletronComponent<any>;
export declare const StyledLabel: StyletronComponent<any>;
export declare const StyledRoot: StyletronComponent<any, any>;
export declare const StyledList: StyletronComponent<any, any>;
export declare const StyledItem: StyletronComponent<any, any>;
export declare const StyledDragHandle: StyletronComponent<any, any>;
export declare const StyledCloseHandle: StyletronComponent<any, any>;
export declare const StyledLabel: StyletronComponent<any, any>;

export declare const arrayMove: typeof arrayMoveT;
export declare const arrayRemove: typeof arrayRemoveT;
10 changes: 5 additions & 5 deletions src/drawer/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ export class Drawer extends React.Component<DrawerProps, DrawerState> {
renderDrawer(): React.ReactNode;
}

export declare const StyledRoot: StyletronComponent<any>;
export declare const StyledBackdrop: StyletronComponent<any>;
export declare const StyledDrawerContainer: StyletronComponent<any>;
export declare const StyledDrawerBody: StyletronComponent<any>;
export declare const StyledClose: StyletronComponent<any>;
export declare const StyledRoot: StyletronComponent<any, any>;
export declare const StyledBackdrop: StyletronComponent<any, any>;
export declare const StyledDrawerContainer: StyletronComponent<any, any>;
export declare const StyledDrawerBody: StyletronComponent<any, any>;
export declare const StyledClose: StyletronComponent<any, any>;
10 changes: 5 additions & 5 deletions src/file-uploader/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ export interface FileUploaderProps {
}
export declare const FileUploader: React.FC<FileUploaderProps>;

export declare const StyledRoot: StyletronComponent<any>;
export declare const StyledFileDragAndDrop: StyletronComponent<any>;
export declare const StyledContentMessage: StyletronComponent<any>;
export declare const StyledErrorMessage: StyletronComponent<any>;
export declare const StyledHiddenInput: StyletronComponent<any>;
export declare const StyledRoot: StyletronComponent<any, any>;
export declare const StyledFileDragAndDrop: StyletronComponent<any, any>;
export declare const StyledContentMessage: StyletronComponent<any, any>;
export declare const StyledErrorMessage: StyletronComponent<any, any>;
export declare const StyledHiddenInput: StyletronComponent<any, any>;
6 changes: 3 additions & 3 deletions src/form-control/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import * as React from 'react';
import { StyletronComponent } from 'styletron-react';
import { Override } from '../overrides';

export declare const StyledLabel: StyletronComponent<any>;
export declare const StyledCaption: StyletronComponent<any>;
export declare const StyledControlContainer: StyletronComponent<any>;
export declare const StyledLabel: StyletronComponent<any, any>;
export declare const StyledCaption: StyletronComponent<any, any>;
export declare const StyledControlContainer: StyletronComponent<any, any>;

export interface FormControlOverrides {
Label?: Override<any>;
Expand Down
6 changes: 3 additions & 3 deletions src/header-navigation/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ export interface HeaderNavigationProps {

export class HeaderNavigation extends React.Component<HeaderNavigationProps> {}

export declare const StyledRoot: StyletronComponent<any>;
export declare const StyledNavigationItem: StyletronComponent<any>;
export declare const StyledNavigationList: StyletronComponent<any>;
export declare const StyledRoot: StyletronComponent<any, any>;
export declare const StyledNavigationItem: StyletronComponent<any, any>;
export declare const StyledNavigationList: StyletronComponent<any, any>;
4 changes: 2 additions & 2 deletions src/helper/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export type HelperStepsPropsT = {

export { ACCESSIBILITY_TYPE, PLACEMENT, TRIGGER_TYPE };

export declare const StyledArrow: StyletronComponent<any>;
export declare const StyledBody: StyletronComponent<any>;
export declare const StyledArrow: StyletronComponent<any, any>;
export declare const StyledBody: StyletronComponent<any, any>;

export declare const Unstable_Helper: React.FC<PropsT>;
export declare const Unstable_StatefulHelper: React.FC<StatefulPropsT>;
Expand Down
2 changes: 1 addition & 1 deletion src/icon/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface IconProps {

export declare const Icon: React.FC<IconProps>;

export declare const StyledSvg: StyletronComponent<any>;
export declare const StyledSvg: StyletronComponent<any, any>;

export declare const Alert: React.FC<IconProps>;
export declare const ArrowDown: React.FC<IconProps>;
Expand Down
Loading