Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@rmwc/types

Package Overview
Dependencies
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rmwc/types - npm Package Compare versions

Comparing version 5.0.7-alpha.0 to 5.0.8-alpha.0

2

flow-typed/base/component.js

@@ -16,3 +16,3 @@

}
export var componentFactory: <P: {}>(props: ComponentFactoryOpts<P>) => React.ComponentType<P & RMWC.ComponentProps>;
export var componentFactory: <P: {}>(props: ComponentFactoryOpts<P>) => React$ComponentType<P & RMWC.ComponentProps>;
export {};

@@ -14,2 +14,2 @@

*/
export var withTheme: <P: any>(Component: React.ComponentType<any>) => React.ComponentType<any>;
export var withTheme: <P: any>(Component: React$ComponentType<any>) => React$ComponentType<any>;

@@ -32,9 +32,9 @@ // @flow

*/
declare export var Button: React.ComponentType<ButtonProps & RMWC.ComponentProps & RMWC.WithRippleProps>;
declare export var Button: React$ComponentType<ButtonProps & RMWC.ComponentProps & RMWC.WithRippleProps>;
declare export interface ButtonIconProps extends IconProps {
}
/** An icon that goes inside of buttons. This is an instance of the Icon component. */
declare export var ButtonIcon: React.ComponentType<ButtonIconProps & RMWC.ComponentProps>;
declare export var ButtonIcon: React$ComponentType<ButtonIconProps & RMWC.ComponentProps>;
}

@@ -21,3 +21,3 @@ // @flow

/** A Card Component */
declare export var Card: React.ComponentType<CardProps & RMWC.ComponentProps>;
declare export var Card: React$ComponentType<CardProps & RMWC.ComponentProps>;
/****************************************************************

@@ -33,7 +33,7 @@ * Card Media

/** Media area that displays a custom background-image with background-size: cover */
declare export var CardMedia: React.ComponentType<CardMediaProps & RMWC.ComponentProps>;
declare export var CardMedia: React$ComponentType<CardMediaProps & RMWC.ComponentProps>;
/** An absolutely-positioned box the same size as the media area, for displaying a title or icon on top of the background-image */
declare export var CardMediaContent: React.ComponentType<RMWC.ComponentProps>;
declare export var CardMediaContent: React$ComponentType<RMWC.ComponentProps>;
/** The main clickable area for the primary content of the card */
declare export var CardPrimaryAction: React.ComponentType<RMWC.ComponentProps & RMWC.WithRippleProps>;
declare export var CardPrimaryAction: React$ComponentType<RMWC.ComponentProps & RMWC.WithRippleProps>;
/****************************************************************

@@ -47,15 +47,15 @@ * Card Actions

/** Row containing action buttons and/or icons */
declare export var CardActions: React.ComponentType<CardActionsProps & RMWC.ComponentProps>;
declare export var CardActions: React$ComponentType<CardActionsProps & RMWC.ComponentProps>;
/** A group of action buttons, displayed on the left side of the card (in LTR), adjacent to CardActionIcons */
declare export var CardActionButtons: React.ComponentType<RMWC.ComponentProps>;
declare export var CardActionButtons: React$ComponentType<RMWC.ComponentProps>;
/** A group of supplemental action icons, displayed on the right side of the card (in LTR), adjacent to CardActionButtons */
declare export var CardActionIcons: React.ComponentType<RMWC.ComponentProps>;
declare export var CardActionIcons: React$ComponentType<RMWC.ComponentProps>;
declare export interface CardActionIconProps extends IconButtonProps {
}
/** A card action Icon */
declare export var CardActionIcon: React.ComponentType<CardActionIconProps & RMWC.ComponentProps>;
declare export var CardActionIcon: React$ComponentType<CardActionIconProps & RMWC.ComponentProps>;
declare export interface CardActionButtonProps extends ButtonProps {
}
/** A card action Button */
declare export var CardActionButton: React.ComponentType<CardActionButtonProps & RMWC.ComponentProps>;
declare export var CardActionButton: React$ComponentType<CardActionButtonProps & RMWC.ComponentProps>;
declare export type CardActionPropsT = IconButtonProps & ButtonProps;

@@ -62,0 +62,0 @@ /** DEPRECATED: A Card action Button. Depending on the props that are passed, this will either render an instance of the Button component, or the IconButton component. */

@@ -64,5 +64,5 @@ // @flow

/** A container for multiple chips. */
declare export var ChipSet: React.ComponentType<ChipSetProps & RMWC.ComponentProps>;
declare export var ChipSet: React$ComponentType<ChipSetProps & RMWC.ComponentProps>;
}

@@ -25,9 +25,9 @@ // @flow

/** The DataTable Component. */
declare export var DataTable: React.ComponentType<DataTableProps & RMWC.ComponentProps>;
declare export var DataTable: React$ComponentType<DataTableProps & RMWC.ComponentProps>;
/** The data table content. */
declare export var DataTableContent: React.ComponentType<RMWC.ComponentProps>;
declare export var DataTableContent: React$ComponentType<RMWC.ComponentProps>;
/** A header for the data table. */
declare export var DataTableHead: React.ComponentType<RMWC.ComponentProps>;
declare export var DataTableHead: React$ComponentType<RMWC.ComponentProps>;
/** A body for the data table. */
declare export var DataTableBody: React.ComponentType<RMWC.ComponentProps>;
declare export var DataTableBody: React$ComponentType<RMWC.ComponentProps>;
declare export interface DataTableRowProps {

@@ -40,3 +40,3 @@ /** Styles the row in a selected state. */

/** A row for the data table. */
declare export var DataTableRow: React.ComponentType<DataTableRowProps & RMWC.ComponentProps>;
declare export var DataTableRow: React$ComponentType<DataTableRowProps & RMWC.ComponentProps>;
declare export interface DataTableHeadCellProps extends SharedDataTableCellProps {

@@ -58,3 +58,3 @@ /** Make the column sortable. Null for not sorted, 1 for ascending, and -1 for descending. */

/** A cell for the DataTable */
declare export var DataTableCell: React.ComponentType<DataTableCellProps & RMWC.ComponentProps>;
declare export var DataTableCell: React$ComponentType<DataTableCellProps & RMWC.ComponentProps>;
declare export interface SimpleDataTableProps extends DataTableProps {

@@ -61,0 +61,0 @@ /** Data to render. */

@@ -14,7 +14,7 @@ // @flow

/** The Dialog title. */
declare export var DialogTitle: React.ComponentType<RMWC.ComponentProps>;
declare export var DialogTitle: React$ComponentType<RMWC.ComponentProps>;
/** The Dialog content. */
declare export var DialogContent: React.ComponentType<RMWC.ComponentProps>;
declare export var DialogContent: React$ComponentType<RMWC.ComponentProps>;
/** Actions container for the Dialog. */
declare export var DialogActions: React.ComponentType<RMWC.ComponentProps>;
declare export var DialogActions: React$ComponentType<RMWC.ComponentProps>;
declare export interface DialogButtonProps extends ButtonProps {

@@ -21,0 +21,0 @@ /** An action returned in evt.detail.action to the onClose handler. */

@@ -14,7 +14,7 @@ // @flow

/** An optional header for the Drawer. */
declare export var DrawerHeader: React.ComponentType<RMWC.ComponentProps>;
declare export var DrawerHeader: React$ComponentType<RMWC.ComponentProps>;
/** An title for the DrawerHeader. */
declare export var DrawerTitle: React.ComponentType<RMWC.ComponentProps>;
declare export var DrawerTitle: React$ComponentType<RMWC.ComponentProps>;
/** A subtitle for the DrawerHeader. */
declare export var DrawerSubtitle: React.ComponentType<RMWC.ComponentProps>;
declare export var DrawerSubtitle: React$ComponentType<RMWC.ComponentProps>;
/***************************************************************************************

@@ -24,3 +24,3 @@ * Drawer Content

/** Content for Drawers. Please note this is an instance of mdc-list by default. You can change this to a a non list container by specifying the tag as 'div' or anything else. */
declare export var DrawerContent: React.ComponentType<RMWC.ComponentProps>;
declare export var DrawerContent: React$ComponentType<RMWC.ComponentProps>;
/***************************************************************************************

@@ -30,3 +30,3 @@ * DrawerAppContent

/** For the Dismissible variant only. Sibling element that is resized when the drawer opens/closes. */
declare export var DrawerAppContent: React.ComponentType<RMWC.ComponentProps>;
declare export var DrawerAppContent: React$ComponentType<RMWC.ComponentProps>;
/***************************************************************************************

@@ -47,6 +47,6 @@ * Drawers

}
declare export var DrawerRoot: React.ComponentType<DrawerProps & RMWC.ComponentProps>;
declare export var Drawer: React.ComponentType<DrawerProps & RMWC.ComponentProps>;
declare export var DrawerRoot: React$ComponentType<DrawerProps & RMWC.ComponentProps>;
declare export var Drawer: React$ComponentType<DrawerProps & RMWC.ComponentProps>;
}

@@ -19,5 +19,5 @@ // @flow

/** The Elevation Component */
declare export var Elevation: React.ComponentType<ElevationProps & RMWC.ComponentProps>;
declare export var Elevation: React$ComponentType<ElevationProps & RMWC.ComponentProps>;
}

@@ -25,5 +25,5 @@ // @flow

}
declare export var FabRoot: React.ComponentType<FabProps & RMWC.ComponentProps & RMWC.WithRippleProps>;
declare export var FabIcon: React.ComponentType<IconProps & RMWC.ComponentProps>;
declare export var FabLabel: React.ComponentType<RMWC.ComponentProps>;
declare export var FabRoot: React$ComponentType<FabProps & RMWC.ComponentProps & RMWC.WithRippleProps>;
declare export var FabIcon: React$ComponentType<IconProps & RMWC.ComponentProps>;
declare export var FabLabel: React$ComponentType<RMWC.ComponentProps>;
/** A floating action button component */

@@ -30,0 +30,0 @@ declare export var Fab: (props: FabProps & RMWC.ComponentProps) => React.Node;

// @flow
import * as React from 'react';
import { FoundationComponent } from '@rmwc/base';

@@ -7,4 +8,4 @@

import * as React from 'react';
declare export interface FloatingLabelProps {

@@ -11,0 +12,0 @@ shake?: boolean;

@@ -16,3 +16,3 @@ // @flow

}
declare export var FormFieldRoot: React.ComponentType<FormFieldProps & RMWC.ComponentProps>;
declare export var FormFieldRoot: React$ComponentType<FormFieldProps & RMWC.ComponentProps>;
declare export class FormField extends FoundationComponent<FormFieldProps> {}

@@ -19,0 +19,0 @@

@@ -24,6 +24,6 @@ // @flow

/** Grid List Component */
declare export var GridList: React.ComponentType<GridListProps & RMWC.ComponentProps>;
declare export var GridList: React$ComponentType<GridListProps & RMWC.ComponentProps>;
/** The primary content for a Grid tile */
declare export var GridTilePrimary: React.ComponentType<RMWC.ComponentProps>;
declare export var GridTilePrimaryContent: React.ComponentType<RMWC.ComponentProps>;
declare export var GridTilePrimary: React$ComponentType<RMWC.ComponentProps>;
declare export var GridTilePrimaryContent: React$ComponentType<RMWC.ComponentProps>;
/****************************************************************

@@ -33,15 +33,15 @@ * Public

/** A grid tile */
declare export var GridTile: React.ComponentType<RMWC.ComponentProps>;
declare export var GridTile: React$ComponentType<RMWC.ComponentProps>;
/** The secondary content for a Grid tile */
declare export var GridTileSecondary: React.ComponentType<RMWC.ComponentProps>;
declare export var GridTileSecondary: React$ComponentType<RMWC.ComponentProps>;
declare export interface GridTileIconProps extends IconProps {
}
/** The icon for a Grid tile. This is an instance of Icon component. */
declare export var GridTileIcon: React.ComponentType<GridTileIconProps & RMWC.ComponentProps>;
declare export var GridTileIcon: React$ComponentType<GridTileIconProps & RMWC.ComponentProps>;
/** The title for a Grid tile */
declare export var GridTileTitle: React.ComponentType<RMWC.ComponentProps>;
declare export var GridTileTitle: React$ComponentType<RMWC.ComponentProps>;
/** Supporting Text for the Grid Tile */
declare export var GridTileTitleSupportText: React.ComponentType<RMWC.ComponentProps>;
declare export var GridTileTitleSupportText: React$ComponentType<RMWC.ComponentProps>;
}

@@ -19,3 +19,3 @@ // @flow

/** A Grid component */
declare export var Grid: React.ComponentType<GridProps & RMWC.ComponentProps>;
declare export var Grid: React$ComponentType<GridProps & RMWC.ComponentProps>;
declare export interface GridCellProps {

@@ -36,7 +36,7 @@ /** Default number of columns to span. */

/** A Grid cell */
declare export var GridCell: React.ComponentType<GridCellProps & RMWC.ComponentProps>;
declare export var GridCell: React$ComponentType<GridCellProps & RMWC.ComponentProps>;
/** By default, an inner grid component is included inside of <Grid>. Use GridInner when doing nested Grids. */
declare export var GridInner: React.ComponentType<RMWC.ComponentProps>;
declare export var GridInner: React$ComponentType<RMWC.ComponentProps>;
}

@@ -31,7 +31,7 @@ // @flow

}
declare export var IconButtonRoot: React.ComponentType<IconButtonProps & RMWC.ComponentProps & RMWC.WithRippleProps>;
declare export var IconButtonRoot: React$ComponentType<IconButtonProps & RMWC.ComponentProps & RMWC.WithRippleProps>;
declare export interface IconButtonIconProps extends IconProps {
on?: boolean;
}
declare export var IconButtonIcon: React.ComponentType<IconButtonIconProps & RMWC.ComponentProps>;
declare export var IconButtonIcon: React$ComponentType<IconButtonIconProps & RMWC.ComponentProps>;
declare export var IconButton: (props: IconButtonProps & RMWC.ComponentProps) => React.Node;

@@ -38,0 +38,0 @@

@@ -60,3 +60,3 @@ // @flow

*/
declare export var Icon: React.ComponentType<IconProps & DeprecatedIconProps & RMWC.ComponentProps & $Shape<WithProviderContext>>;
declare export var Icon: React$ComponentType<IconProps & DeprecatedIconProps & RMWC.ComponentProps & $Shape<WithProviderContext>>;
declare export {};

@@ -63,0 +63,0 @@

@@ -17,15 +17,15 @@ // @flow

/** Indicates the root Image List element. */
declare export var ImageList: React.ComponentType<ImageListProps & RMWC.ComponentProps>;
declare export var ImageList: React$ComponentType<ImageListProps & RMWC.ComponentProps>;
/** Indicates each item in an Image List. */
declare export var ImageListItem: React.ComponentType<RMWC.ComponentProps>;
declare export var ImageListItem: React$ComponentType<RMWC.ComponentProps>;
/** Optional. Parent of each item’s image element, responsible for constraining aspect ratio. This element may be omitted entirely if images are already sized to the correct aspect ratio. */
declare export var ImageListImageAspectContainer: React.ComponentType<RMWC.ComponentProps>;
declare export var ImageListImageAspectContainer: React$ComponentType<RMWC.ComponentProps>;
/** Indicates the image element in each item. */
declare export var ImageListImage: React.ComponentType<RMWC.ComponentProps>;
declare export var ImageListImage: React$ComponentType<RMWC.ComponentProps>;
/** Optional. Indicates the area within each item containing the supporting text label, if the Image List contains text labels. */
declare export var ImageListSupporting: React.ComponentType<RMWC.ComponentProps>;
declare export var ImageListSupporting: React$ComponentType<RMWC.ComponentProps>;
/** Optional. Indicates the text label in each item, if the Image List contains text labels. */
declare export var ImageListLabel: React.ComponentType<RMWC.ComponentProps>;
declare export var ImageListLabel: React$ComponentType<RMWC.ComponentProps>;
}
// @flow
import * as React from 'react';
import { FoundationComponent } from '@rmwc/base';

@@ -7,4 +8,4 @@

import * as React from 'react';
declare export interface LineRippleProps {

@@ -11,0 +12,0 @@ active?: boolean;

@@ -26,8 +26,8 @@ // @flow

}
declare export var LinearProgressRoot: React.ComponentType<LinearProgressProps & RMWC.ComponentProps>;
declare export var LinearProgressBufferingDots: React.ComponentType<RMWC.ComponentProps>;
declare export var LinearProgressBuffer: React.ComponentType<RMWC.ComponentProps>;
declare export var LinearProgressPrimaryBar: React.ComponentType<RMWC.ComponentProps>;
declare export var LinearProgressSecondaryBar: React.ComponentType<RMWC.ComponentProps>;
declare export var LinearProgressBarInner: React.ComponentType<RMWC.ComponentProps>;
declare export var LinearProgressRoot: React$ComponentType<LinearProgressProps & RMWC.ComponentProps>;
declare export var LinearProgressBufferingDots: React$ComponentType<RMWC.ComponentProps>;
declare export var LinearProgressBuffer: React$ComponentType<RMWC.ComponentProps>;
declare export var LinearProgressPrimaryBar: React$ComponentType<RMWC.ComponentProps>;
declare export var LinearProgressSecondaryBar: React$ComponentType<RMWC.ComponentProps>;
declare export var LinearProgressBarInner: React$ComponentType<RMWC.ComponentProps>;
declare export class LinearProgress extends FoundationComponent<LinearProgressProps & DeprecatedLinearProgressProps> {}

@@ -34,0 +34,0 @@

@@ -15,23 +15,23 @@

*/
export var ListItem: React.ComponentType<ListItemProps & RMWC.ComponentProps & RMWC.WithRippleProps>;
export var ListItem: React$ComponentType<ListItemProps & RMWC.ComponentProps & RMWC.WithRippleProps>;
/** Text Wrapper for the ListItem */
export var ListItemText: React.ComponentType<RMWC.ComponentProps>;
export var ListItemText: React$ComponentType<RMWC.ComponentProps>;
/** Primary Text for the ListItem */
export var ListItemPrimaryText: React.ComponentType<RMWC.ComponentProps>;
export var ListItemPrimaryText: React$ComponentType<RMWC.ComponentProps>;
/** Secondary text for the ListItem */
export var ListItemSecondaryText: React.ComponentType<RMWC.ComponentProps>;
export var ListItemSecondaryText: React$ComponentType<RMWC.ComponentProps>;
export interface ListItemGraphicProps extends IconProps {
}
/** A graphic / icon for the ListItem */
export var ListItemGraphic: React.ComponentType<ListItemGraphicProps & RMWC.ComponentProps>;
export var ListItemGraphic: React$ComponentType<ListItemGraphicProps & RMWC.ComponentProps>;
export interface ListItemMetaProps extends IconProps {
}
/** Meta content for the ListItem. This can either by an icon by setting the `icon` prop, or any other kind of content. */
export var ListItemMeta: React.ComponentType<ListItemMetaProps & RMWC.ComponentProps>;
export var ListItemMeta: React$ComponentType<ListItemMetaProps & RMWC.ComponentProps>;
/** A container to group ListItems */
export var ListGroup: React.ComponentType<RMWC.ComponentProps>;
export var ListGroup: React$ComponentType<RMWC.ComponentProps>;
/** A subheader for the ListGroup */
export var ListGroupSubheader: React.ComponentType<RMWC.ComponentProps>;
export var ListGroupSubheader: React$ComponentType<RMWC.ComponentProps>;
/** A divider for the List */
export var ListDivider: React.ComponentType<RMWC.ComponentProps>;
export var ListDivider: React$ComponentType<RMWC.ComponentProps>;
export interface SimpleListItemProps extends ListItemProps {

@@ -38,0 +38,0 @@ /** Text for the ListItem. */

@@ -15,3 +15,3 @@

/** A List Component */
export var ListRoot: React.ComponentType<ListProps & RMWC.ComponentProps>;
export var ListRoot: React$ComponentType<ListProps & RMWC.ComponentProps>;
export class List extends FoundationComponent<ListProps> {}

@@ -22,3 +22,3 @@

****************************************************************/
export var MenuSurfaceRoot: React.ComponentType<RMWC.ComponentProps>;
export var MenuSurfaceRoot: React$ComponentType<RMWC.ComponentProps>;
/** A generic menu component for displaying any type of content. */

@@ -30,2 +30,2 @@ export class MenuSurface extends FoundationComponent<MenuSurfaceProps> {}

/** A Menu Anchor. When using the anchorCorner prop of Menu, you must set MenuSurfaceAnchors css style position to absolute. */
export var MenuSurfaceAnchor: React.ComponentType<RMWC.ComponentProps>;
export var MenuSurfaceAnchor: React$ComponentType<RMWC.ComponentProps>;

@@ -16,8 +16,8 @@

}
export var MenuRoot: React.ComponentType<MenuProps & RMWC.ComponentProps>;
export var MenuItems: React.ComponentType<RMWC.ComponentProps>;
export var MenuRoot: React$ComponentType<MenuProps & RMWC.ComponentProps>;
export var MenuItems: React$ComponentType<RMWC.ComponentProps>;
interface MenuItemProps extends ListItemProps {
}
/** This is just the ListItem component exported from the Menu module for convenience. You can use `ListItem` or `SimpleListItem` components from the List section as long as you add `role="menuitem"` and `tabIndex="0"` to the components for accessibility. */
export var MenuItem: React.ComponentType<MenuItemProps & RMWC.ComponentProps>;
export var MenuItem: React$ComponentType<MenuItemProps & RMWC.ComponentProps>;
/** A menu component for displaying lists items. */

@@ -50,7 +50,7 @@ export class Menu extends FoundationComponent<MenuProps> {}

*/
export var SimpleMenu: React.ComponentType<SimpleMenuProps>;
export var SimpleMenu: React$ComponentType<SimpleMenuProps>;
/**
* The same as SimpleMenu, but a generic surface.
*/
export var SimpleMenuSurface: React.ComponentType<SimpleMenuSurfaceProps>;
export var SimpleMenuSurface: React$ComponentType<SimpleMenuSurfaceProps>;
export {};
// @flow
import * as React from 'react';
import { FoundationComponent } from '@rmwc/base';

@@ -7,4 +8,4 @@

import * as React from 'react';
declare export interface NotchedOutlineProps {

@@ -11,0 +12,0 @@ notch?: number;

@@ -40,3 +40,3 @@ // @flow

declare export var ProviderContext: React.Context<RMWCProviderProps>;
declare export var withProviderContext: () => <P: {}>(Component: React.ComponentType<P & WithProviderContext>) => React.ComponentType<P & $Shape<WithProviderContext>>;
declare export var withProviderContext: () => <P: {}>(Component: React$ComponentType<P & WithProviderContext>) => React$ComponentType<P & $Shape<WithProviderContext>>;
/**

@@ -43,0 +43,0 @@ * Provides default options for children

@@ -40,3 +40,3 @@ // @flow

*/
declare export var withRipple: (props?: WithRippleOpts) => <P: {}>(Component: React.ComponentType<P & RMWC.WithRippleProps>) => React.ComponentType<P & RMWC.WithRippleProps>;
declare export var withRipple: (props?: WithRippleOpts) => <P: {}>(Component: React$ComponentType<P & RMWC.WithRippleProps>) => React$ComponentType<P & RMWC.WithRippleProps>;
declare export {};

@@ -43,0 +43,0 @@

@@ -59,3 +59,3 @@ // @flow

}
declare export var SelectHelperText: React.ComponentType<SelectHelperTextProps & RMWC.ComponentProps>;
declare export var SelectHelperText: React$ComponentType<SelectHelperTextProps & RMWC.ComponentProps>;
/**

@@ -62,0 +62,0 @@ * A Select Component

// @flow
import * as React from 'react';
import * as RMWC from '@rmwc/types';

@@ -8,5 +9,5 @@ import { FoundationComponent } from '@rmwc/base';

import * as React from 'react';
declare export interface SliderProps {

@@ -13,0 +14,0 @@ /** A callback that fires when the Slider stops sliding which takes an event with event.detail.value set to the Slider's value. */

@@ -51,4 +51,4 @@ // @flow

}
declare export var SnackbarAction: React.ComponentType<RMWC.ComponentProps>;
declare export var SnackbarDismiss: React.ComponentType<IconButtonProps & RMWC.ComponentProps>;
declare export var SnackbarAction: React$ComponentType<RMWC.ComponentProps>;
declare export var SnackbarDismiss: React$ComponentType<IconButtonProps & RMWC.ComponentProps>;
/**

@@ -55,0 +55,0 @@ * A Snackbar component for notifications.

@@ -14,3 +14,3 @@ // @flow

}
declare export var SwitchRoot: React.ComponentType<SwitchProps & RMWC.ComponentProps>;
declare export var SwitchRoot: React$ComponentType<SwitchProps & RMWC.ComponentProps>;
declare export class Switch extends ToggleableFoundationComponent<SwitchProps> {}

@@ -17,0 +17,0 @@

@@ -12,6 +12,6 @@

}>;
export var withTabBarContext: () => <P: {}>(Component: React.ComponentType<P & {
export var withTabBarContext: () => <P: {}>(Component: React$ComponentType<P & {
contextApi?: TabBarContextT | typeof undefined;
}>) => React.ComponentType<P & {
}>) => React$ComponentType<P & {
contextApi?: TabBarContextT | typeof undefined;
}>;

@@ -16,4 +16,4 @@

}
export var TabBarRoot: React.ComponentType<TabBarProps & RMWC.ComponentProps>;
export var TabBarRoot: React$ComponentType<TabBarProps & RMWC.ComponentProps>;
/** The TabBar component */
export class TabBar extends FoundationComponent<TabBarProps> {}

@@ -1,3 +0,3 @@

import * as React from 'react';
export class TabIndicator extends FoundationComponent<{}> {}
export var TabScrollerRoot: React.ComponentType<RMWC.ComponentProps>;
export var TabScrollerScrollArea: React.ComponentType<RMWC.ComponentProps>;
export var TabScrollerScrollContent: React.ComponentType<RMWC.ComponentProps>;
export var TabScrollerRoot: React$ComponentType<RMWC.ComponentProps>;
export var TabScrollerScrollArea: React$ComponentType<RMWC.ComponentProps>;
export var TabScrollerScrollContent: React$ComponentType<RMWC.ComponentProps>;
export class TabScroller extends FoundationComponent<{}> {}

@@ -19,8 +19,8 @@

}
export var TabRoot: React.ComponentType<TabProps & RMWC.ComponentProps & RMWC.WithRippleProps>;
export var TabRoot: React$ComponentType<TabProps & RMWC.ComponentProps & RMWC.WithRippleProps>;
/** A Tab icon. This is an instance of the Icon component. */
export var TabIcon: React.ComponentType<IconProps & RMWC.ComponentProps>;
export var TabIcon: React$ComponentType<IconProps & RMWC.ComponentProps>;
/** A Tab component */
export var Tab: React.ComponentType<TabProps & {
export var Tab: React$ComponentType<TabProps & {
contextApi?: TabBarContextT | typeof undefined;
}>;

@@ -60,3 +60,3 @@ // @flow

/** A help text component */
declare export var TextFieldHelperText: React.ComponentType<TextFieldHelperTextProps & RMWC.ComponentProps>;
declare export var TextFieldHelperText: React$ComponentType<TextFieldHelperTextProps & RMWC.ComponentProps>;
/*********************************************************************

@@ -63,0 +63,0 @@ * Icon

@@ -25,5 +25,5 @@ // @flow

}
declare export var ToolbarRoot: React.ComponentType<ToolbarProps & RMWC.ComponentProps>;
declare export var ToolbarRoot: React$ComponentType<ToolbarProps & RMWC.ComponentProps>;
/** A Toolbar title */
declare export var ToolbarTitle: React.ComponentType<RMWC.ComponentProps>;
declare export var ToolbarTitle: React$ComponentType<RMWC.ComponentProps>;
declare export interface ToolbarSectionProps {

@@ -38,9 +38,9 @@ /** Aligns the ToolbarSection at the start. */

/** A section of the Toolbar */
declare export var ToolbarSection: React.ComponentType<ToolbarSectionProps & RMWC.ComponentProps>;
declare export var ToolbarSection: React$ComponentType<ToolbarSectionProps & RMWC.ComponentProps>;
/** A Toolbar row */
declare export var ToolbarRow: React.ComponentType<RMWC.ComponentProps>;
declare export var ToolbarRow: React$ComponentType<RMWC.ComponentProps>;
/**
* This component can be placed after a fixed Toolbar component to fill in the space.
*/
declare export var ToolbarFixedAdjust: React.ComponentType<RMWC.ComponentProps>;
declare export var ToolbarFixedAdjust: React$ComponentType<RMWC.ComponentProps>;
declare export interface ToolbarMenuIconProps extends IconProps {

@@ -51,3 +51,3 @@ }

*/
declare export var ToolbarMenuIcon: React.ComponentType<ToolbarMenuIconProps & RMWC.ComponentProps & RMWC.WithRippleProps>;
declare export var ToolbarMenuIcon: React$ComponentType<ToolbarMenuIconProps & RMWC.ComponentProps & RMWC.WithRippleProps>;
declare export interface ToolbarIconProps extends IconProps {

@@ -58,3 +58,3 @@ }

*/
declare export var ToolbarIcon: React.ComponentType<ToolbarIconProps & RMWC.ComponentProps & RMWC.WithRippleProps>;
declare export var ToolbarIcon: React$ComponentType<ToolbarIconProps & RMWC.ComponentProps & RMWC.WithRippleProps>;
declare export class Toolbar extends FoundationComponent<ToolbarProps> {}

@@ -61,0 +61,0 @@

@@ -25,5 +25,5 @@ // @flow

}
declare export var TopAppBarRoot: React.ComponentType<TopAppBarProps & RMWC.ComponentProps>;
declare export var TopAppBarRoot: React$ComponentType<TopAppBarProps & RMWC.ComponentProps>;
/** A row for the app bar. */
declare export var TopAppBarRow: React.ComponentType<RMWC.ComponentProps>;
declare export var TopAppBarRow: React$ComponentType<RMWC.ComponentProps>;
declare export interface TopAppBarSectionProps {

@@ -36,9 +36,9 @@ /** Aligns the section to the start. */

/** A section for the app bar. */
declare export var TopAppBarSection: React.ComponentType<TopAppBarSectionProps & RMWC.ComponentProps>;
declare export var TopAppBarSection: React$ComponentType<TopAppBarSectionProps & RMWC.ComponentProps>;
/** A navigation icon for the top app bar. This is an instance of the Icon component. */
declare export var TopAppBarNavigationIcon: React.ComponentType<IconProps & RMWC.ComponentProps & RMWC.WithRippleProps>;
declare export var TopAppBarNavigationIcon: React$ComponentType<IconProps & RMWC.ComponentProps & RMWC.WithRippleProps>;
/** Action items for the top app bar. This is an instance of the Icon component.*/
declare export var TopAppBarActionItem: React.ComponentType<IconProps & RMWC.ComponentProps & RMWC.WithRippleProps>;
declare export var TopAppBarActionItem: React$ComponentType<IconProps & RMWC.ComponentProps & RMWC.WithRippleProps>;
/** A title for the top app bar. */
declare export var TopAppBarTitle: React.ComponentType<RMWC.ComponentProps>;
declare export var TopAppBarTitle: React$ComponentType<RMWC.ComponentProps>;
declare export interface TopAppBarFixedAdjustProps {

@@ -55,3 +55,3 @@ /** Class used to style the content below the dense top app bar to prevent the top app bar from covering it. */

/** An optional component to fill the space when the TopAppBar is fixed. Place it directly after the TopAppBar. */
declare export var TopAppBarFixedAdjust: React.ComponentType<TopAppBarFixedAdjustProps & RMWC.ComponentProps>;
declare export var TopAppBarFixedAdjust: React$ComponentType<TopAppBarFixedAdjustProps & RMWC.ComponentProps>;
declare export var TopAppBar: (props: TopAppBarProps & RMWC.ComponentProps) => React.Node;

@@ -58,0 +58,0 @@ declare export interface SimpleTopAppBarProps extends TopAppBarProps {

// @flow
import * as React from 'react';
declare module '@rmwc/types' {
import * as React from 'react';
/**

@@ -40,3 +40,3 @@ * Utils

*/
declare export type TagT = string | React.ComponentType<any>;
declare export type TagT = string | React$ComponentType<any>;
declare export interface ComponentProps extends Object {

@@ -43,0 +43,0 @@ tag?: TagT;

@@ -16,5 +16,5 @@ // @flow

/** The Typography Component */
declare export var Typography: React.ComponentType<TypographyProps & RMWC.ComponentProps>;
declare export var Typography: React$ComponentType<TypographyProps & RMWC.ComponentProps>;
}
{
"name": "@rmwc/types",
"version": "5.0.7-alpha.0",
"version": "5.0.8-alpha.0",
"description": "RMWC Shared Typescript Types",

@@ -29,3 +29,3 @@ "main": "dist/index.js",

"homepage": "https://github.com/jamesmfriedman/rmwc/tree/master/src/types#readme",
"gitHead": "53a80a176f78081256894f691cb65c42897cf598"
"gitHead": "372100cfa817fbd673e29fded29dd1820c111e81"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc