Skip to content

Commit

Permalink
release/2.1.0 (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
petatemarvin26 authored Nov 21, 2024
1 parent 3feb349 commit 5d832d0
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vin-react",
"version": "2.0.5",
"version": "2.1.0",
"description": "This library is exclusive for react that utilize the flexbox.",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Button/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type Props = {
children?: any;
title?: string;
onClick?: MouseEventHandler<HTMLButtonElement>;
} & React.HTMLAttributes<HTMLButtonElement> &
} & React.ButtonHTMLAttributes<HTMLButtonElement> &
ConnectStyleProps;

type States = {};
Expand Down
3 changes: 2 additions & 1 deletion src/components/Counter/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ type Props = {
max?: number;
value?: number;
onChange?: (next: number) => void;
} & ConnectStyleProps;
} & ConnectStyleProps &
React.HTMLAttributes<HTMLDivElement>;

export type {Props};
4 changes: 3 additions & 1 deletion src/components/HeaderText/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ type Props = {
className?: string;
style?: CSSProperties;
children?: any;
} & ConnectStyleProps;
} & ConnectStyleProps &
React.HTMLAttributes<HTMLHeadingElement> &
ConnectStyleProps;

type States = {};

Expand Down
2 changes: 1 addition & 1 deletion src/components/Image/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type Props = {
onLoadInit?: () => void;
onLoadDone?: () => void;
onLoading?: (percent: number) => void;
} & React.HTMLAttributes<HTMLImageElement>;
} & React.ImgHTMLAttributes<HTMLImageElement>;

type States = {
src: any;
Expand Down
3 changes: 2 additions & 1 deletion src/components/Indicator/Bar/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type Props = {
*/
speed?: number;
color?: string;
} & ConnectStyleProps;
} & ConnectStyleProps &
React.SVGAttributes<HTMLOrSVGElement>;

export type {Props};
3 changes: 2 additions & 1 deletion src/components/Indicator/CircleSnail/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ type Props = {
* @default `1s`
*/
speed?: number;
} & ConnectStyleProps;
} & ConnectStyleProps &
React.SVGAttributes<HTMLOrSVGElement>;

type State = {};

Expand Down
2 changes: 1 addition & 1 deletion src/components/Input/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type Props = {
ref?: React.LegacyRef<HTMLDivElement>;
inputRef?: (ref: HTMLInputElement | null) => any;
onChangeText?: (value: string, event: ChangeEvent<HTMLInputElement>) => void;
} & React.HTMLAttributes<HTMLInputElement>;
} & React.InputHTMLAttributes<HTMLInputElement>;

type States = {};

Expand Down
13 changes: 4 additions & 9 deletions src/components/Pagination/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ import {MouseEvent} from 'react';
import {ConnectStyleProps} from '@/hoc/types';

type HandleClickPage = {
(key: number): (
page: number,
e: MouseEvent<HTMLButtonElement>
) => void;
(key: number): (page: number, e: MouseEvent<HTMLButtonElement>) => void;
};

type State = {
Expand All @@ -31,10 +28,8 @@ type Props = {
* Current page selected
*/
currentPage?: number;
onPageChange?: (
page: number,
event: MouseEvent<HTMLButtonElement>
) => void;
} & ConnectStyleProps;
onPageChange?: (page: number, event: MouseEvent<HTMLButtonElement>) => void;
} & ConnectStyleProps &
React.HTMLAttributes<HTMLDivElement>;

export type {Props, State, HandleClickPage};

0 comments on commit 5d832d0

Please sign in to comment.