@rmwc/types
Advanced tools
Comparing version 14.0.2-alpha.7 to 14.0.2
/** | ||
* 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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
3972
0