Socket
Socket
Sign inDemoInstall

@rmwc/types

Package Overview
Dependencies
Maintainers
1
Versions
113
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 14.0.2-alpha.7 to 14.0.2

24

index.d.ts
/**
* Theming
*/
export type ThemeOptionT = 'primary' | 'secondary' | 'background' | 'surface' | 'error' | 'primaryBg' | 'secondaryBg' | 'onPrimary' | 'onSecondary' | 'onSurface' | 'onError' | 'textPrimaryOnBackground' | 'textSecondaryOnBackground' | 'textHintOnBackground' | 'textDisabledOnBackground' | 'textIconOnBackground' | 'textPrimaryOnLight' | 'textSecondaryOnLight' | 'textHintOnLight' | 'textDisabledOnLight' | 'textIconOnLight' | 'textPrimaryOnDark' | 'textSecondaryOnDark' | 'textHintOnDark' | 'textDisabledOnDark' | 'textIconOnDark' | undefined;
export type ThemePropT = ThemeOptionT | ThemeOptionT[];
export declare type ThemeOptionT = 'primary' | 'secondary' | 'background' | 'surface' | 'error' | 'primaryBg' | 'secondaryBg' | 'onPrimary' | 'onSecondary' | 'onSurface' | 'onError' | 'textPrimaryOnBackground' | 'textSecondaryOnBackground' | 'textHintOnBackground' | 'textDisabledOnBackground' | 'textIconOnBackground' | 'textPrimaryOnLight' | 'textSecondaryOnLight' | 'textHintOnLight' | 'textDisabledOnLight' | 'textIconOnLight' | 'textPrimaryOnDark' | 'textSecondaryOnDark' | 'textHintOnDark' | 'textDisabledOnDark' | 'textIconOnDark' | undefined;
export declare type ThemePropT = ThemeOptionT | ThemeOptionT[];
/**
* Ripples
*/
export type RipplePropT = boolean | {
export declare type RipplePropT = boolean | {
accent?: boolean;

@@ -21,7 +21,7 @@ surface?: boolean;

*/
export type TagT = string | React.ComponentType<any>;
export type CustomEventT<T> = CustomEvent<T> & React.SyntheticEvent<EventTarget>;
type IconElementT = React.ReactNode;
export type IconSizeT = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
export type IconStrategyT = 'auto' | 'ligature' | 'className' | 'url' | 'component' | 'custom';
export declare type TagT = string | React.ComponentType<any>;
export declare type CustomEventT<T> = CustomEvent<T> & React.SyntheticEvent<EventTarget>;
declare type IconElementT = React.ReactNode;
export declare type IconSizeT = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
export declare type IconStrategyT = 'auto' | 'ligature' | 'className' | 'url' | 'component' | 'custom';
export interface IconOptions {

@@ -58,4 +58,4 @@ icon: IconElementT;

}
export type IconPropT = IconElementT | IconOptions;
export type HTMLProps<T = HTMLElement, A = React.AllHTMLAttributes<T>> = A & React.ClassAttributes<T> & {
export declare type IconPropT = IconElementT | IconOptions;
export declare type HTMLProps<T = HTMLElement, A = React.AllHTMLAttributes<T>> = A & React.ClassAttributes<T> & {
tag?: TagT;

@@ -65,7 +65,7 @@ theme?: ThemePropT;

};
export type ComponentProps<Props extends {}, ElementProps extends {}, Tag extends React.ElementType> = Props & (ElementProps | (React.ComponentPropsWithRef<Tag> & {
export declare type ComponentProps<Props extends {}, ElementProps extends {}, Tag extends React.ElementType> = Props & (ElementProps | (React.ComponentPropsWithRef<Tag> & {
tag?: Tag;
theme?: ThemePropT;
}));
export type ComponentType<Props extends {}, ElementProps extends {}, Element extends React.ElementType<any>> = {
export declare type ComponentType<Props extends {}, ElementProps extends {}, Element extends React.ElementType<any>> = {
<Tag extends React.ElementType<any> = Element>(props: ComponentProps<Props, ElementProps, Tag>, ref: any): JSX.Element;

@@ -72,0 +72,0 @@ displayName?: string;

{
"name": "@rmwc/types",
"version": "14.0.2-alpha.7",
"version": "14.0.2",
"description": "RMWC Shared Typescript Types",

@@ -10,2 +10,3 @@ "main": "./index.js",

"import": "./index.mjs",
"types": "./index.d.ts",
"require": "./index.js"

@@ -30,3 +31,3 @@ }

},
"homepage": "https://github.com/rmwc/rmwc/tree/master/packages/readme/types"
"homepage": "https://github.com/rmwc/rmwc/tree/master/packages/types"
}
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