@ef2/react
Advanced tools
Comparing version 1.0.27 to 1.0.28
@@ -1,5 +0,5 @@ | ||
/// <reference types="react" /> | ||
export interface RatingProps { | ||
import { ChangeEvent, InputHTMLAttributes } from 'react'; | ||
export interface RatingProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> { | ||
value: number; | ||
onChange?: (value: number) => void; | ||
onChange?: (event: ChangeEvent<HTMLInputElement>, value: number) => void; | ||
readOnly?: boolean; | ||
@@ -13,3 +13,3 @@ classNameActive?: string; | ||
} | ||
declare const Rating: ({ value, onChange, readOnly, classNameActive, classNameEmpty, variant, color, activeIcon, emptyIcon }: RatingProps) => JSX.Element; | ||
declare const Rating: import("react").ForwardRefExoticComponent<RatingProps & import("react").RefAttributes<HTMLInputElement>>; | ||
export default Rating; |
/// <reference types="react" /> | ||
import { ComponentStory, ComponentMeta } from '@storybook/react'; | ||
declare const _default: ComponentMeta<({ value, onChange, readOnly, classNameActive, classNameEmpty, variant, color, activeIcon, emptyIcon }: import(".").RatingProps) => JSX.Element>; | ||
declare const _default: ComponentMeta<import("react").ForwardRefExoticComponent<import(".").RatingProps & import("react").RefAttributes<HTMLInputElement>>>; | ||
export default _default; | ||
export declare const Default: ComponentStory<({ value, onChange, readOnly, classNameActive, classNameEmpty, variant, color, activeIcon, emptyIcon }: import(".").RatingProps) => JSX.Element>; | ||
export declare const Theme: ComponentStory<({ value, onChange, readOnly, classNameActive, classNameEmpty, variant, color, activeIcon, emptyIcon }: import(".").RatingProps) => JSX.Element>; | ||
export declare const Icon: ComponentStory<({ value, onChange, readOnly, classNameActive, classNameEmpty, variant, color, activeIcon, emptyIcon }: import(".").RatingProps) => JSX.Element>; | ||
export declare const Color: ComponentStory<({ value, onChange, readOnly, classNameActive, classNameEmpty, variant, color, activeIcon, emptyIcon }: import(".").RatingProps) => JSX.Element>; | ||
export declare const ReadOnly: ComponentStory<({ value, onChange, readOnly, classNameActive, classNameEmpty, variant, color, activeIcon, emptyIcon }: import(".").RatingProps) => JSX.Element>; | ||
export declare const Default: ComponentStory<import("react").ForwardRefExoticComponent<import(".").RatingProps & import("react").RefAttributes<HTMLInputElement>>>; | ||
export declare const Theme: ComponentStory<import("react").ForwardRefExoticComponent<import(".").RatingProps & import("react").RefAttributes<HTMLInputElement>>>; | ||
export declare const Icon: ComponentStory<import("react").ForwardRefExoticComponent<import(".").RatingProps & import("react").RefAttributes<HTMLInputElement>>>; | ||
export declare const Color: ComponentStory<import("react").ForwardRefExoticComponent<import(".").RatingProps & import("react").RefAttributes<HTMLInputElement>>>; | ||
export declare const ReadOnly: ComponentStory<import("react").ForwardRefExoticComponent<import(".").RatingProps & import("react").RefAttributes<HTMLInputElement>>>; |
@@ -0,1 +1,2 @@ | ||
/// <reference types="react" /> | ||
import { ComponentStory, ComponentMeta } from '@storybook/react'; | ||
@@ -2,0 +3,0 @@ declare const _default: ComponentMeta<({ children }: import(".").ScrollHeaderProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>>; |
{ | ||
"name": "@ef2/react", | ||
"version": "1.0.27", | ||
"version": "1.0.28", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "module": "lib/index.esm.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
4711459
47709