Skip to content

Commit 01cf102

Browse files
committed
Update generated types
1 parent 25ce430 commit 01cf102

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

generatedTypes/src/commons/modifiers.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ export declare function extractModifierProps(props: Dictionary<any>): _.Dictiona
9090
* TODO:
9191
* @deprecated switch to Modifiers#extractComponentProps
9292
*/
93-
export declare function extractOwnProps(props: Dictionary<any>, ignoreProps: string[]): _.Omit<Partial<Dictionary<any>>, string>;
94-
export declare function extractComponentProps(component: any, props: Dictionary<any>, ignoreProps?: string[]): _.Omit<Partial<Dictionary<any>>, string>;
93+
export declare function extractOwnProps(props: Dictionary<any>, ignoreProps: string[]): _.Omit<_.Dictionary<any>, string>;
94+
export declare function extractComponentProps(component: any, props: Dictionary<any>, ignoreProps?: string[]): _.Omit<_.Dictionary<any>, string>;
9595
export declare function getThemeProps(props?: any, context?: any): any;
9696
export declare function generateModifiersStyle(options: {
9797
color: boolean;

generatedTypes/src/components/chipsInput/Presenter.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ChipsInputChipProps, ChipsInputProps } from './index';
2-
export declare const isContainsInvalid: (chips: Array<ChipsInputChipProps>) => boolean;
2+
export declare const hasInvalidChip: (chips: Array<ChipsInputChipProps>) => boolean;
33
export declare const getValidationBasedColor: (chips: Array<ChipsInputChipProps>, defaultChip?: ChipsInputChipProps | undefined) => string;
44
export declare const getCounterTextColor: (stateChips: Array<ChipsInputChipProps>, props: ChipsInputProps) => string;
55
export declare const getCounterText: (count: number, maxLength: number) => string;

generatedTypes/src/components/chipsInput/index.d.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ export declare type ChipsInputProps = TypographyModifiers & TextFieldProps & {
1212
/**
1313
* DEPRECATED: use chips instead. list of tags. can be string boolean or custom object when implementing getLabel
1414
*/
15-
tags?: Array<ChipType>;
15+
tags?: ChipType[];
1616
/**
1717
* list of tags. can be string boolean or custom object when implementing getLabel
1818
*/
19-
chips?: Array<ChipsInputChipProps>;
19+
chips?: ChipsInputChipProps[];
2020
/**
2121
* Style your chips
2222
*/
@@ -26,19 +26,19 @@ export declare type ChipsInputProps = TypographyModifiers & TextFieldProps & {
2626
*/
2727
getLabel?: (tag: ChipType) => any;
2828
/**
29-
* callback for custom rendering tag item
29+
* DEPRECATED: use chips instead. callback for custom rendering tag item
3030
*/
3131
renderTag?: (tag: ChipType, index: number, shouldMarkTag: boolean, label: string) => React.ReactElement;
3232
/**
3333
* callback for onChangeTags event
3434
*/
3535
onChangeTags?: () => void;
3636
/**
37-
* callback for creating new tag out of input value (good for composing tag object)
37+
* DEPRECATED: use chips instead. callback for creating new tag out of input value (good for composing tag object)
3838
*/
3939
onCreateTag?: (value: any) => void;
4040
/**
41-
* callback for when pressing a tag in the following format (tagIndex, markedTagIndex) => {...}
41+
* DEPRECATED: use chips instead. callback for when pressing a tag in the following format (tagIndex, markedTagIndex) => {...}
4242
*/
4343
onTagPress?: (index: number, toRemove?: number) => void;
4444
/**
@@ -97,7 +97,7 @@ declare type State = {
9797
};
9898
declare type OwnProps = ChipsInputProps & BaseComponentInjectedProps;
9999
/**
100-
* @description: Tags input component (chips)
100+
* @description: Chips input component
101101
* @modifiers: Typography
102102
* @gif: https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/ChipsInput/ChipsInput.gif?raw=true
103103
* @example: https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/ChipsInputScreen.js
@@ -123,6 +123,7 @@ declare class ChipsInput extends Component<OwnProps, State> {
123123
onChangeText: _.DebouncedFunc<(value: any) => void>;
124124
onTagPress(index: number): void;
125125
isLastTagMarked(): boolean;
126+
removeTag: () => void;
126127
onKeyPress: (event: NativeSyntheticEvent<TextInputKeyPressEventData>) => void;
127128
getLabel: (item: ChipType) => any;
128129
onFocus: () => void;

generatedTypes/src/components/drawer/Swipeable.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ export default class Swipeable extends Component<Props, StateType> {
6767
_onHandlerStateChange: ({ nativeEvent }: {
6868
nativeEvent: any;
6969
}) => void;
70+
_hasLeftActions: boolean;
71+
_hasRightActions: boolean;
7072
_handleRelease: (nativeEvent: any) => void;
7173
_animateRow: (fromValue: any, toValue: any, velocityX: any) => void;
7274
_currentOffset: () => number;

0 commit comments

Comments
 (0)