File tree Expand file tree Collapse file tree 4 files changed +40
-1
lines changed Expand file tree Collapse file tree 4 files changed +40
-1
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ node_modules/
42
42
jspm_packages /
43
43
44
44
# Typescript v1 declaration files
45
- typings /
45
+ ! src / typings /
46
46
47
47
# Optional npm cache directory
48
48
.npm
Original file line number Diff line number Diff line change
1
+ import { CommonProps } from './PCRCommonProps' ;
2
+
3
+ type Shape = 'curve' | 'round' ;
4
+ type Fill = 'thick' | 'fill' ;
5
+ type Animation = 'smooth' | 'jelly' | 'tada' | 'rotate' | 'pulse' ;
6
+
7
+ export type PCRCheckboxRadioProps < S = any > = Omit < CommonProps < S > , 'type' > & {
8
+ shape ?: Shape ;
9
+ variant ?: Fill ;
10
+ animation ?: Animation ;
11
+ plain ?: boolean ;
12
+ icon ?: React . ReactElement < any , 'svg' | 'i' | 'em' | 'img' > ;
13
+ iconType ?: 'svg' | 'icon' | 'image' ;
14
+ } ;
Original file line number Diff line number Diff line change
1
+ import * as React from 'react' ;
2
+
3
+ type Colors = 'primary' | 'success' | 'info' | 'warning' | 'danger' ;
4
+ type ColorsOutline = 'primary-o' | 'success-o' | 'info-o' | 'warning-o' | 'danger-o' ;
5
+
6
+ export type CommonProps < S > = React . InputHTMLAttributes < HTMLInputElement > & {
7
+ locked ?: boolean ;
8
+ color ?: Colors | ColorsOutline ;
9
+ shape ?: string ;
10
+ animation ?: string ;
11
+ variant ?: string ;
12
+ state ?: S ;
13
+ bigger ?: boolean ;
14
+ plain ?: boolean ;
15
+ setState ?: React . Dispatch < React . SetStateAction < S > > ;
16
+ } ;
Original file line number Diff line number Diff line change
1
+ import { CommonProps } from './PCRCommonProps' ;
2
+
3
+ type Shape = 'fill' | 'slim' ;
4
+
5
+ export type PCRSwitchProps < S = any > = Omit < CommonProps < S > , 'variation' | 'animation' > & {
6
+ shape ?: Shape ;
7
+ animation ?: undefined ;
8
+ iconType ?: undefined ;
9
+ } ;
You can’t perform that action at this time.
0 commit comments