From 2021c5dee03bc9dd0489251f5c327ff9c3eb2c99 Mon Sep 17 00:00:00 2001 From: Elliot S Chi Date: Tue, 9 Aug 2016 13:37:49 -0700 Subject: [PATCH 1/3] feat: add optional string prop nodeName --- react-swipeable/react-swipeable-tests.tsx | 5 +++-- react-swipeable/react-swipeable.d.ts | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/react-swipeable/react-swipeable-tests.tsx b/react-swipeable/react-swipeable-tests.tsx index dec0414759..d28d6d348b 100644 --- a/react-swipeable/react-swipeable-tests.tsx +++ b/react-swipeable/react-swipeable-tests.tsx @@ -3,7 +3,7 @@ import Swipeable = require('react-swipeable'); import React = require('react'); - + var SampleComponent = React.createClass({ render: function () { return ( @@ -18,7 +18,8 @@ var SampleComponent = React.createClass({ onSwipedDown={this.swipedDown} onSwipedLeft={this.swipedLeft} onSwiped={this.handleSwipeAction} - preventDefaultTouchmoveEvent={false}> + preventDefaultTouchmoveEvent={false} + nodeName={"swipe"}>
This element can be swiped
diff --git a/react-swipeable/react-swipeable.d.ts b/react-swipeable/react-swipeable.d.ts index 1e147a222f..db0d7b5e4f 100644 --- a/react-swipeable/react-swipeable.d.ts +++ b/react-swipeable/react-swipeable.d.ts @@ -39,6 +39,7 @@ declare namespace ReactSwipeableModule { flickThreshold?: number; delta?: number; preventDefaultTouchmoveEvent?: boolean; + nodeName?: string; } interface ReactSwipeable extends React.ComponentClass { } From 1766d1adfe2cc2f4716d6f6e962c28cf90e0b8a7 Mon Sep 17 00:00:00 2001 From: Elliot S Chi Date: Tue, 9 Aug 2016 15:43:55 -0700 Subject: [PATCH 2/3] [react-autosuggest]: change theme properties to optionals --- react-autosuggest/react-autosuggest.d.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/react-autosuggest/react-autosuggest.d.ts b/react-autosuggest/react-autosuggest.d.ts index f53238b882..9436e961ea 100644 --- a/react-autosuggest/react-autosuggest.d.ts +++ b/react-autosuggest/react-autosuggest.d.ts @@ -31,15 +31,15 @@ declare namespace ReactAutosuggest { } interface Theme { - container: string; - containerOpen: string; - input: string; - sectionContainer: string; - sectionSuggestionsContainer: string; - sectionTitle: string; - suggestion: string; - suggestionFocused: string; - suggestionsContainer: string; + container?: string; + containerOpen?: string; + input?: string; + sectionContainer?: string; + sectionSuggestionsContainer?: string; + sectionTitle?: string; + suggestion?: string; + suggestionFocused?: string; + suggestionsContainer?: string; } interface AutosuggestProps extends React.Props { From 0592c4c74f3886ab7be9ac555bd4945cd4a66e59 Mon Sep 17 00:00:00 2001 From: Elliot S Chi Date: Tue, 9 Aug 2016 15:45:25 -0700 Subject: [PATCH 3/3] undo --- react-autosuggest/react-autosuggest.d.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/react-autosuggest/react-autosuggest.d.ts b/react-autosuggest/react-autosuggest.d.ts index 9436e961ea..f53238b882 100644 --- a/react-autosuggest/react-autosuggest.d.ts +++ b/react-autosuggest/react-autosuggest.d.ts @@ -31,15 +31,15 @@ declare namespace ReactAutosuggest { } interface Theme { - container?: string; - containerOpen?: string; - input?: string; - sectionContainer?: string; - sectionSuggestionsContainer?: string; - sectionTitle?: string; - suggestion?: string; - suggestionFocused?: string; - suggestionsContainer?: string; + container: string; + containerOpen: string; + input: string; + sectionContainer: string; + sectionSuggestionsContainer: string; + sectionTitle: string; + suggestion: string; + suggestionFocused: string; + suggestionsContainer: string; } interface AutosuggestProps extends React.Props {