├── .gitignore ├── README.md ├── haxelib.json └── src └── lib └── react └── addon ├── QRCode.hx ├── ReactCSSTransitionGroup.hx ├── ReactCSSTransitionReplace.hx ├── ReactChartist.hx ├── ReactIntl.hx ├── ReactRedux.hx ├── ReactReduxForm.hx ├── ReactRouter.hx ├── ReactSwiper.hx ├── ReactTapEvent.hx ├── ReduxAuthWrapper.hx ├── intl ├── FormattedDate.hx ├── FormattedHTMLMessage.hx ├── FormattedMessage.hx ├── FormattedNumber.hx ├── FormattedRelative.hx ├── FormattedTime.hx ├── IntlMixin.hx ├── IntlProvider.hx ├── IntlShape.hx └── ReactIntlLocaleData.hx ├── router ├── BrowserRouter.hx ├── HashRouter.hx ├── IndexRedirect.hx ├── IndexRoute.hx ├── Link.hx ├── Redirect.hx ├── Route.hx ├── Router.hx └── Switch.hx └── rrf ├── Control.hx ├── Errors.hx ├── Field.hx ├── Fieldset.hx ├── Form.hx └── LocalForm.hx /.gitignore: -------------------------------------------------------------------------------- 1 | Thumbs.db 2 | *.DS_Store 3 | *.sublime-project 4 | *.sublime-workspace 5 | *.bak 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Haxe externs for third party react js components 2 | 3 | Compatible with Haxe 3.2+ and [Haxe react](https://github.com/massiveinteractive/haxe-react) > 1.0.0. 4 | 5 | This lib provides a set of reusable externs and haxe-react components for React JS. 6 | 7 | If you are looking for react native externs, have a look [there](https://github.com/haxe-react/haxe-react-native). 8 | 9 | ### List of supported externs 10 | 11 | * [React addon CSS transition group](https://facebook.github.io/react/docs/animation.html) 12 | * [CSS transition replace](https://github.com/marnusw/react-css-transition-replace) 13 | * [**React Intl**](https://github.com/yahoo/react-intl) 14 | * [**React Redux**](https://github.com/reactjs/react-redux) 15 | * [**React Redux Form**](https://github.com/davidkpiano/react-redux-form) 16 | * [**React Router**](https://github.com/reactjs/react-router) 17 | * React Swiper, a Haxe React component for [Swiper](https://github.com/nolimits4web/Swiper) 18 | * [React Tap Event](https://github.com/zilverline/react-tap-event-plugin) 19 | * [Redux Auth Wrapper](https://github.com/mjrussell/redux-auth-wrapper) 20 | * [React Chartist](https://github.com/lolJS/react-chartist) 21 | 22 | And more to come... 23 | 24 | ## API 25 | 26 | TODO 27 | 28 | ## Contributions 29 | 30 | Those externs can sometimes partially cover their original lib. Do not hesitate to contribute with new externs, updates to existing externs or even better approaches for those externs. 31 | -------------------------------------------------------------------------------- /haxelib.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-addons", 3 | "license": "MIT", 4 | "tags": ["extern","react","js","javascript"], 5 | "description": "Haxe React Addons is a set of React libs externs to use with Haxe and Haxe React", 6 | "contributors": [ 7 | "tokom","zabojad" 8 | ], 9 | "releasenote": "See https://github.com/tokomlabs/haxe-react-addons/blob/master/README.md", 10 | "version": "0.0.1", 11 | "url": "https://github.com/tokomlabs/haxe-react-addons", 12 | "classPath": "src/lib", 13 | "dependencies": { 14 | "react": "^1.0.0" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/lib/react/addon/QRCode.hx: -------------------------------------------------------------------------------- 1 | package react.addon; 2 | 3 | import react.ReactComponent; 4 | 5 | @:enum 6 | abstract QRCodeLevel(String) from String to String { 7 | var L = 'L'; 8 | var M = 'M'; 9 | var Q = 'Q'; 10 | var H = 'H'; 11 | } 12 | 13 | typedef QRCodeProps = { 14 | value : String, 15 | size : Int, 16 | bgColor : String, 17 | fgColor : String, 18 | level : QRCodeLevel 19 | } 20 | 21 | /** 22 | Extern for [qrcode.react](https://github.com/zpao/qrcode.react). 23 | **/ 24 | @:jsRequire('qrcode.react') 25 | extern class QRCode extends ReactComponentOf { } 26 | -------------------------------------------------------------------------------- /src/lib/react/addon/ReactCSSTransitionGroup.hx: -------------------------------------------------------------------------------- 1 | package react.addon; 2 | 3 | @:jsRequire("react-addons-css-transition-group") 4 | extern class ReactCSSTransitionGroup extends react.ReactComponent 5 | { 6 | public static var transitionName : String; 7 | public static var transitionEnterTimeout : Int; 8 | public static var transitionLeaveTimeout : Int; 9 | } -------------------------------------------------------------------------------- /src/lib/react/addon/ReactCSSTransitionReplace.hx: -------------------------------------------------------------------------------- 1 | package react.addon; 2 | 3 | /** 4 | Extern for [React CSS Transition Replace](https://github.com/marnusw/react-css-transition-replace) 5 | **/ 6 | @:jsRequire("react-css-transition-replace") 7 | extern class ReactCSSTransitionReplace extends react.ReactComponent 8 | { 9 | public static var transitionName : String; 10 | public static var transitionEnterTimeout : Int; 11 | public static var transitionLeaveTimeout : Int; 12 | } -------------------------------------------------------------------------------- /src/lib/react/addon/ReactChartist.hx: -------------------------------------------------------------------------------- 1 | package react.addon; 2 | 3 | /** 4 | Extern for [ReactChartist](https://github.com/lolJS/react-chartist) 5 | **/ 6 | @:jsRequire("rc-chartist") 7 | extern class ReactChartist { 8 | public static var Interpolation : Dynamic; 9 | public static var Graph : Dynamic; 10 | } 11 | -------------------------------------------------------------------------------- /src/lib/react/addon/ReactIntl.hx: -------------------------------------------------------------------------------- 1 | package react.addon; 2 | 3 | /** 4 | Extern for [ReactIntl](https://github.com/yahoo/react-intl) 5 | **/ 6 | @:jsRequire('react-intl') 7 | extern class ReactIntl { 8 | static public function injectIntl(cmp : Dynamic) : Dynamic; 9 | static public function addLocaleData(data : Dynamic) : Void; 10 | } 11 | -------------------------------------------------------------------------------- /src/lib/react/addon/ReactRedux.hx: -------------------------------------------------------------------------------- 1 | package react.addon; 2 | 3 | /** 4 | Extern for [ReactRedux](https://github.com/reactjs/react-redux) 5 | **/ 6 | @:jsRequire('react-redux') 7 | extern class ReactRedux { 8 | static public function connect(? m1 : Dynamic, ? m2 : Dynamic, ? m3 : Dynamic, ? opt : Dynamic) : Dynamic; 9 | } 10 | 11 | @:jsRequire('react-redux', 'Provider') 12 | extern class Provider extends react.ReactComponent { } 13 | -------------------------------------------------------------------------------- /src/lib/react/addon/ReactReduxForm.hx: -------------------------------------------------------------------------------- 1 | package react.addon; 2 | 3 | typedef ReactReduxFormActionTypes = { 4 | 5 | } 6 | 7 | /** 8 | Extern for [ReactReduxForm](https://github.com/davidkpiano/react-redux-form) 9 | **/ 10 | @:jsRequire('react-redux-form') 11 | extern class ReactReduxForm { 12 | static public function combineForms(forms : Dynamic) : Dynamic; 13 | static public function modelReducer(key : Dynamic, ? defaultState : Dynamic) : Dynamic; 14 | static public function modeled(rdr : Dynamic, key : String) : Dynamic; 15 | static public function formReducer(key : Dynamic, ? defaultState : Dynamic) : Dynamic; 16 | static public var actionTypes : ReactReduxFormActionTypes; 17 | static public var actions : ReactReduxFormActions; 18 | } 19 | 20 | extern class ReactReduxFormActions { 21 | public function batch(model : String, actions : Array) : Dynamic; 22 | public function change(model : String, value : Dynamic, ? options : Dynamic) : Dynamic; 23 | public function reset(model : String) : Dynamic; 24 | public function focus(model : String) : Dynamic; 25 | public function blur(model : String) : Dynamic; 26 | public function merge() : Dynamic; 27 | public function xor() : Dynamic; 28 | public function push() : Dynamic; 29 | public function toggle() : Dynamic; 30 | public function filter() : Dynamic; 31 | public function map() : Dynamic; 32 | public function remove() : Dynamic; 33 | public function move() : Dynamic; 34 | public function load() : Dynamic; 35 | public function omit() : Dynamic; 36 | public function validate(model : String, validators : Dynamic) : Dynamic; 37 | public function setValidity(model : String, validity : Dynamic, ? options : Dynamic) : Dynamic; 38 | public function setErrors(model : String, errors : Dynamic) : Dynamic; 39 | public function setFieldsErrors(model : String, errors : Dynamic) : Dynamic; 40 | public function setPending() : Dynamic; 41 | public function setAsyncValidity() : Dynamic; 42 | public function submit(model : String, ? promise : Dynamic) : Dynamic; 43 | public function setTouched(model : String) : Dynamic; 44 | public function setUntouched(model : String) : Dynamic; 45 | } 46 | -------------------------------------------------------------------------------- /src/lib/react/addon/ReactRouter.hx: -------------------------------------------------------------------------------- 1 | package react.addon; 2 | 3 | /** 4 | Extern for [ReactSwipe](https://github.com/reactjs/react-router) 5 | **/ 6 | @:jsRequire('react-router') 7 | extern class ReactRouter { 8 | static public var hashHistory : Dynamic; 9 | static public var browserHistory : Dynamic; 10 | static public var withRouter : Dynamic -> Dynamic; 11 | } 12 | 13 | typedef RouterShape = Dynamic; // TODO 14 | -------------------------------------------------------------------------------- /src/lib/react/addon/ReactSwiper.hx: -------------------------------------------------------------------------------- 1 | package react.addon; 2 | 3 | import react.ReactComponent; 4 | import react.ReactMacro.jsx; 5 | 6 | abstract SwiperHandler(Dynamic) 7 | from Swiper -> Void to Swiper -> Void 8 | from Swiper -> js.html.Event -> Void to Swiper -> js.html.Event -> Void 9 | {} 10 | 11 | /** 12 | Extern for [Swiper](https://github.com/nolimits4web/Swiper) 13 | **/ 14 | 15 | @:native("Swiper") 16 | #if(!swiperGlobal) 17 | @:jsRequire("swiper","default") 18 | #end 19 | extern class Swiper { 20 | public function new(elt : js.html.DOMElement, options : SwiperOptions); 21 | public function updateSlidesSize() : Void; 22 | public function update(? updateTranslate : Bool) : Void; 23 | public function slidePrev(? runCallbacks : Bool, ? speed : Int) : Void; 24 | public function slideNext(? runCallbacks : Bool, ? speed : Int) : Void; 25 | public function slideTo(index : Int, ? speed : Int, ? runCallbacks : Bool) : Void; 26 | public function destroy(deleteInstance : Bool, cleanupStyles : Bool) : Void; 27 | public function on(callback : String, handler : SwiperHandler) : Void; 28 | public function once(callback : String, handler : SwiperHandler) : Void; 29 | public function off(callback : String) : Void; 30 | public var realIndex (default, null) : Int; 31 | public var activeIndex (default, null) : Int; 32 | public var previousIndex (default, null) : Int; 33 | public var slides (default, null) : Array; 34 | public var container (default, null) : Array; 35 | public var wrapper (default, null) : Array; 36 | } 37 | 38 | typedef SwiperOptions = { 39 | ? slideClass : String, 40 | ? wrapperClass : String, 41 | ? prevButton : haxe.extern.EitherType, 42 | ? nextButton : haxe.extern.EitherType, 43 | // 44 | ? initialSlide : Int, 45 | ? direction : String, // 'vertical' or 'horizontal' 46 | ? speed : Int, 47 | ? setWrapperSize : Bool, 48 | ? virtualTranslate : Bool, 49 | ? width : Int, 50 | ? height : Int, 51 | ? autoHeight : Bool, 52 | ? roundLengths : Bool, 53 | ? nested : Bool, 54 | ? centeredSlides: Bool, 55 | // slides grid 56 | ? spaceBetween : Int, 57 | ? slidesPerView : Float, 58 | // pagination 59 | ? pagination : String, 60 | ? paginationType : String, 61 | ? paginationHide : Bool, 62 | ? paginationClickable : Bool, 63 | ? paginationElement : String, 64 | ? paginationBulletRender : Int -> String -> String, 65 | ? paginationFractionRender : Swiper -> String -> String -> String, 66 | ? paginationProgressRender : Swiper -> String -> String, 67 | ? paginationCustomRender : Swiper -> Int -> Int -> String, 68 | // loop 69 | ? loop : Bool, /* FIXME, this causes doubled react ids errors */ 70 | ? loopAdditionalSlides : Int, 71 | ? loopedSlides : Int, 72 | // callbacks 73 | ? runCallbacksOnInit : Bool, 74 | ? onInit : Swiper -> Void, 75 | ? onSlideChangeStart : Swiper -> Void, 76 | ? onSlideChangeEnd : Swiper -> Void, 77 | ? onSlideNextStart : Swiper -> Void, 78 | ? onSlideNextEnd : Swiper -> Void, 79 | ? onSlidePrevStart : Swiper -> Void, 80 | ? onSlidePrevEnd : Swiper -> Void, 81 | ? onTap : Swiper -> Dynamic -> Void, 82 | ? onSetTranslate : Swiper -> Dynamic -> Void, 83 | // Animations 84 | ? watchSlidesProgress : Bool, 85 | ? onTouchEnd : Swiper -> Void, 86 | ? onTouchStart : Swiper -> Void, 87 | ? onProgress : Swiper -> Int -> Void, 88 | // FreeMode 89 | ? freeModeMomentum : Bool, 90 | ? freeMode : Bool, 91 | } 92 | 93 | typedef ReactSwiperProps = { 94 | > ReactComponentProps, 95 | options : SwiperOptions, 96 | swiperIsInitialized : Null Void>, 97 | className : String, 98 | ? style : Dynamic, 99 | ? noWrapper : Bool 100 | } 101 | 102 | /** 103 | Haxe rewrite of [SwiperComponent](https://github.com/poetic/meteor-react-swiper) 104 | **/ 105 | class ReactSwiper extends ReactComponentOf { 106 | 107 | #if(!swiperGlobal) 108 | static var css = js.Lib.require('swiper/dist/css/swiper.css'); 109 | #end 110 | 111 | public function new(p) { super(p); } 112 | 113 | /// 114 | // Public Interface 115 | // 116 | 117 | 118 | /// 119 | // Internals 120 | // 121 | 122 | private var swiper : Swiper; 123 | 124 | override function shouldComponentUpdate(nextProps : ReactSwiperProps, nextState : Dynamic) : Bool { 125 | 126 | /* swiper.update(); */ trace('swiper.update should be called ?'); 127 | 128 | return true; 129 | } 130 | 131 | override function componentWillUnmount() : Void { 132 | 133 | swiper.destroy(true,true); 134 | } 135 | 136 | override function componentDidMount() : Void { js.Browser.console.log(props); 137 | 138 | swiper = new Swiper(refs.node, props.options); 139 | 140 | if (props.swiperIsInitialized != null) props.swiperIsInitialized(this.swiper); 141 | } 142 | 143 | private function renderChildren() { 144 | 145 | return [ for(ci in 0...props.children.length) jsx('
{ props.children[ci] }
') ]; 146 | } 147 | 148 | override function render() { trace('renderSwiper'); 149 | 150 | if (props.noWrapper) { 151 | 152 | return jsx(' 153 |
154 | { props.children } 155 |
156 | '); 157 | } 158 | 159 | return jsx(' 160 |
161 |
162 | { renderChildren() } 163 |
164 |
165 | '); 166 | } 167 | } 168 | 169 | -------------------------------------------------------------------------------- /src/lib/react/addon/ReactTapEvent.hx: -------------------------------------------------------------------------------- 1 | package react.addon; 2 | 3 | @:jsRequire("react-tap-event-plugin") 4 | extern class ReactTapEvent 5 | { 6 | @:selfCall 7 | public static function call() : Void; 8 | } -------------------------------------------------------------------------------- /src/lib/react/addon/ReduxAuthWrapper.hx: -------------------------------------------------------------------------------- 1 | package react.addon; 2 | 3 | typedef ReduxAuthWrapperOptions = { 4 | authSelector : Dynamic -> ? Dynamic -> ? Bool -> Dynamic, 5 | ? redirectAction : Dynamic -> Dynamic, 6 | ? failureRedirectPath : String, 7 | ? wrapperDisplayName : String, 8 | ? predicate : Dynamic -> Bool, 9 | ? allowRedirectBack : Bool 10 | } 11 | 12 | /** 13 | Extern for [ReduxAuthWrapper](https://github.com/mjrussell/redux-auth-wrapper) 14 | **/ 15 | @:jsRequire('redux-auth-wrapper') 16 | extern class ReduxAuthWrapper { 17 | @:native("UserAuthWrapper") 18 | static public function hoc(options : ReduxAuthWrapperOptions) : Dynamic -> Dynamic; 19 | } 20 | -------------------------------------------------------------------------------- /src/lib/react/addon/intl/FormattedDate.hx: -------------------------------------------------------------------------------- 1 | package react.addon.intl; 2 | 3 | @:jsRequire('react-intl', 'FormattedDate') 4 | extern class FormattedDate extends react.ReactComponent { } 5 | -------------------------------------------------------------------------------- /src/lib/react/addon/intl/FormattedHTMLMessage.hx: -------------------------------------------------------------------------------- 1 | package react.addon.intl; 2 | 3 | @:jsRequire('react-intl', 'FormattedHTMLMessage') 4 | extern class FormattedHTMLMessage extends react.ReactComponent { } 5 | -------------------------------------------------------------------------------- /src/lib/react/addon/intl/FormattedMessage.hx: -------------------------------------------------------------------------------- 1 | package react.addon.intl; 2 | 3 | @:jsRequire('react-intl', 'FormattedMessage') 4 | extern class FormattedMessage extends react.ReactComponent { } 5 | -------------------------------------------------------------------------------- /src/lib/react/addon/intl/FormattedNumber.hx: -------------------------------------------------------------------------------- 1 | package react.addon.intl; 2 | 3 | @:jsRequire('react-intl', 'FormattedNumber') 4 | extern class FormattedNumber extends react.ReactComponent { } 5 | -------------------------------------------------------------------------------- /src/lib/react/addon/intl/FormattedRelative.hx: -------------------------------------------------------------------------------- 1 | package react.addon.intl; 2 | 3 | @:jsRequire('react-intl', 'FormattedRelative') 4 | extern class FormattedRelative extends react.ReactComponent { } 5 | -------------------------------------------------------------------------------- /src/lib/react/addon/intl/FormattedTime.hx: -------------------------------------------------------------------------------- 1 | package react.addon.intl; 2 | 3 | @:jsRequire('react-intl', 'FormattedTime') 4 | extern class FormattedTime extends react.ReactComponent { } 5 | -------------------------------------------------------------------------------- /src/lib/react/addon/intl/IntlMixin.hx: -------------------------------------------------------------------------------- 1 | package react.addon.intl; 2 | 3 | @:jsRequire('react-intl', 'IntlMixin') 4 | extern class IntlMixin { } 5 | -------------------------------------------------------------------------------- /src/lib/react/addon/intl/IntlProvider.hx: -------------------------------------------------------------------------------- 1 | package react.addon.intl; 2 | 3 | @:jsRequire('react-intl', 'IntlProvider') 4 | extern class IntlProvider extends react.ReactComponent { } 5 | -------------------------------------------------------------------------------- /src/lib/react/addon/intl/IntlShape.hx: -------------------------------------------------------------------------------- 1 | package react.addon.intl; 2 | 3 | typedef MessageDescriptor = { 4 | id : String, 5 | ? defaultMessage : String 6 | } 7 | 8 | extern class IntlShape { 9 | public var locale : String; 10 | public var formats : Dynamic; 11 | public var messages : haxe.DynamicAccess; 12 | public var defaultLocale : String; 13 | public var defaultFormats : Dynamic; 14 | public function now() : Int; 15 | public function formatDate(value : Dynamic, ? options : Dynamic) : String; 16 | public function formatTime(value : Dynamic, ? options : Dynamic) : String; 17 | public function formatRelative(value : Dynamic, ? options : Dynamic) : String; 18 | public function formatNumber(value : Dynamic, ? options : Dynamic) : String; 19 | public function formatPlural(value : Dynamic, ? options : Dynamic) : String; 20 | public function formatMessage(messageDescriptor : MessageDescriptor, ? values : haxe.DynamicAccess) : String; 21 | public function formatHTMLMessage(messageDescriptor : MessageDescriptor, ? values : haxe.DynamicAccess) : String; 22 | } 23 | -------------------------------------------------------------------------------- /src/lib/react/addon/intl/ReactIntlLocaleData.hx: -------------------------------------------------------------------------------- 1 | package react.addon.intl; 2 | 3 | class ReactIntlLocaleData { 4 | static public var bg : Dynamic = js.Lib.require('react-intl/locale-data/bg'); 5 | static public var de : Dynamic = js.Lib.require('react-intl/locale-data/de'); 6 | static public var el : Dynamic = js.Lib.require('react-intl/locale-data/el'); 7 | static public var en : Dynamic = js.Lib.require('react-intl/locale-data/en'); 8 | static public var es : Dynamic = js.Lib.require('react-intl/locale-data/es'); 9 | static public var fr : Dynamic = js.Lib.require('react-intl/locale-data/fr'); 10 | static public var hu : Dynamic = js.Lib.require('react-intl/locale-data/hu'); 11 | static public var it : Dynamic = js.Lib.require('react-intl/locale-data/it'); 12 | static public var ko : Dynamic = js.Lib.require('react-intl/locale-data/ko'); 13 | static public var nl : Dynamic = js.Lib.require('react-intl/locale-data/nl'); 14 | static public var pl : Dynamic = js.Lib.require('react-intl/locale-data/pl'); 15 | static public var pt : Dynamic = js.Lib.require('react-intl/locale-data/pt'); 16 | static public var ro : Dynamic = js.Lib.require('react-intl/locale-data/ro'); 17 | static public var ru : Dynamic = js.Lib.require('react-intl/locale-data/ru'); 18 | static public var tr : Dynamic = js.Lib.require('react-intl/locale-data/tr'); 19 | static public var zh : Dynamic = js.Lib.require('react-intl/locale-data/zh'); 20 | } 21 | -------------------------------------------------------------------------------- /src/lib/react/addon/router/BrowserRouter.hx: -------------------------------------------------------------------------------- 1 | package react.addon.router; 2 | 3 | @:jsRequire('react-router-dom','BrowserRouter') 4 | extern class BrowserRouter extends react.ReactComponent { } 5 | -------------------------------------------------------------------------------- /src/lib/react/addon/router/HashRouter.hx: -------------------------------------------------------------------------------- 1 | package react.addon.router; 2 | 3 | @:jsRequire('react-router-dom','HashRouter') 4 | extern class HashRouter extends react.ReactComponent { } 5 | -------------------------------------------------------------------------------- /src/lib/react/addon/router/IndexRedirect.hx: -------------------------------------------------------------------------------- 1 | package react.addon.router; 2 | 3 | @:jsRequire('react-router','IndexRedirect') 4 | extern class IndexRedirect extends react.ReactComponent { } 5 | -------------------------------------------------------------------------------- /src/lib/react/addon/router/IndexRoute.hx: -------------------------------------------------------------------------------- 1 | package react.addon.router; 2 | 3 | @:jsRequire('react-router','IndexRoute') 4 | extern class IndexRoute extends react.ReactComponent { } 5 | -------------------------------------------------------------------------------- /src/lib/react/addon/router/Link.hx: -------------------------------------------------------------------------------- 1 | package react.addon.router; 2 | 3 | @:jsRequire('react-router-dom','Link') 4 | extern class Link extends react.ReactComponent { } 5 | -------------------------------------------------------------------------------- /src/lib/react/addon/router/Redirect.hx: -------------------------------------------------------------------------------- 1 | package react.addon.router; 2 | 3 | @:jsRequire('react-router','Redirect') 4 | extern class Redirect extends react.ReactComponent { } 5 | -------------------------------------------------------------------------------- /src/lib/react/addon/router/Route.hx: -------------------------------------------------------------------------------- 1 | package react.addon.router; 2 | 3 | @:jsRequire('react-router','Route') 4 | extern class Route extends react.ReactComponent { } 5 | -------------------------------------------------------------------------------- /src/lib/react/addon/router/Router.hx: -------------------------------------------------------------------------------- 1 | package react.addon.router; 2 | 3 | @:jsRequire('react-router','Router') 4 | extern class Router extends react.ReactComponent { } 5 | -------------------------------------------------------------------------------- /src/lib/react/addon/router/Switch.hx: -------------------------------------------------------------------------------- 1 | package react.addon.router; 2 | 3 | @:jsRequire('react-router-dom','Switch') 4 | extern class Switch extends react.ReactComponent { } 5 | -------------------------------------------------------------------------------- /src/lib/react/addon/rrf/Control.hx: -------------------------------------------------------------------------------- 1 | package react.addon.rrf; 2 | 3 | /** 4 | Extern for [ReactReduxForm](https://github.com/davidkpiano/react-redux-form) 5 | **/ 6 | @:jsRequire('react-redux-form','Control') 7 | extern class Control { 8 | static public var text : Dynamic; 9 | // static public var custom : Control; 10 | // static public var textarea : Control; 11 | // static public var radio : Control; 12 | // static public var checkbox : Control; 13 | // static public var file : Control; 14 | // static public var select : Control; 15 | // static public var button : Control; 16 | // static public var reset : Control; 17 | } 18 | 19 | @:jsRequire('react-redux-form','Control.text') 20 | extern class ControlText extends react.ReactComponent { } 21 | -------------------------------------------------------------------------------- /src/lib/react/addon/rrf/Errors.hx: -------------------------------------------------------------------------------- 1 | package react.addon.rrf; 2 | 3 | /** 4 | Extern for [ReactReduxForm](https://github.com/davidkpiano/react-redux-form) 5 | **/ 6 | @:jsRequire('react-redux-form','Errors') 7 | extern class Errors extends react.ReactComponent { } 8 | -------------------------------------------------------------------------------- /src/lib/react/addon/rrf/Field.hx: -------------------------------------------------------------------------------- 1 | package react.addon.rrf; 2 | 3 | /** 4 | Extern for [ReactReduxForm](https://github.com/davidkpiano/react-redux-form) 5 | **/ 6 | @:jsRequire('react-redux-form','Field') 7 | extern class Field extends react.ReactComponent { } 8 | -------------------------------------------------------------------------------- /src/lib/react/addon/rrf/Fieldset.hx: -------------------------------------------------------------------------------- 1 | package react.addon.rrf; 2 | 3 | /** 4 | Extern for [ReactReduxForm](https://github.com/davidkpiano/react-redux-form) 5 | **/ 6 | @:jsRequire('react-redux-form','Fieldset') 7 | extern class Fieldset extends react.ReactComponent { } 8 | -------------------------------------------------------------------------------- /src/lib/react/addon/rrf/Form.hx: -------------------------------------------------------------------------------- 1 | package react.addon.rrf; 2 | 3 | /** 4 | Extern for [ReactReduxForm](https://github.com/davidkpiano/react-redux-form) 5 | **/ 6 | @:jsRequire('react-redux-form','Form') 7 | extern class Form extends react.ReactComponent { } 8 | -------------------------------------------------------------------------------- /src/lib/react/addon/rrf/LocalForm.hx: -------------------------------------------------------------------------------- 1 | package react.addon.rrf; 2 | 3 | /** 4 | Extern for [ReactReduxForm](https://github.com/davidkpiano/react-redux-form) 5 | **/ 6 | @:jsRequire('react-redux-form','LocalForm') 7 | extern class LocalForm extends react.ReactComponent { } 8 | --------------------------------------------------------------------------------