Comparing version 2.1.5 to 2.1.6
{ | ||
"name": "njsx", | ||
"version": "2.1.5", | ||
"version": "2.1.6", | ||
"description": "No-JSX: A customizable interface for creating React and React-Native components without JSX syntax.", | ||
@@ -19,3 +19,4 @@ "repository": "uqbar-project/njsx", | ||
"chai": "^3.5.0", | ||
"mocha": "^3.2.0" | ||
"mocha": "^3.2.0", | ||
"mock-require": "^2.0.1" | ||
}, | ||
@@ -22,0 +23,0 @@ "babel": { |
Object.defineProperty(exports,"__esModule",{value:true});exports.ViewPagerAndroid=exports.View=exports.TouchableWithoutFeedback=exports.TouchableOpacity=exports.TouchableNativeFeedback=exports.TouchableHighlight=exports.ToolbarAndroid=exports.TextInput=exports.Text=exports.TabBarIOSItem=exports.TabBarIOS=exports.Switch=exports.StatusBar=exports.SnapshotViewIOS=exports.Slider=exports.SegmentedControlIOS=exports.ScrollView=exports.RefreshControl=exports.ProgressViewIOS=exports.ProgressBarAndroid=exports.PickerIOS=exports.Picker=exports.NavigatorIOS=exports.Navigator=exports.Modal=exports.MapView=exports.ListView=exports.KeyboardAvoidingView=exports.Image=exports.DrawerLayoutAndroid=exports.DatePickerIOS=exports.Button=exports.ActivityIndicator=exports.StyleSheet=exports.DEFAULT_REACT_NATIVE_RULES=undefined;var _slicedToArray=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[typeof Symbol==='function'?Symbol.iterator:'@@iterator'](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"])_i["return"]();}finally{if(_d)throw _e;}}return _arr;}return function(arr,i){if(Array.isArray(arr)){return arr;}else if((typeof Symbol==='function'?Symbol.iterator:'@@iterator')in Object(arr)){return sliceIterator(arr,i);}else{throw new TypeError("Invalid attempt to destructure non-iterable instance");}};}();var _reactNative=require('react-native');var _reactNative2=_interopRequireDefault(_reactNative); | ||
var _njsx=require('./njsx');var _njsx2=_interopRequireDefault(_njsx); | ||
var _index=require('./index');var _index2=_interopRequireDefault(_index); | ||
var _rules=require('./rules');var _rules2=_interopRequireDefault(_rules);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}var | ||
@@ -18,3 +18,3 @@ entries=Object.entries,assign=Object.assign; | ||
_njsx2.default.rules=_njsx2.default.rules||DEFAULT_REACT_NATIVE_RULES; | ||
_index2.default.rules=_index2.default.rules||DEFAULT_REACT_NATIVE_RULES; | ||
@@ -29,34 +29,34 @@ var StyleSheet=exports.StyleSheet={ | ||
var ActivityIndicator=exports.ActivityIndicator=function ActivityIndicator(){return(0,_njsx2.default)(_reactNative2.default.ActivityIndicator).apply(undefined,arguments);}; | ||
var Button=exports.Button=function Button(){return(0,_njsx2.default)(_reactNative2.default.Button).apply(undefined,arguments);}; | ||
var DatePickerIOS=exports.DatePickerIOS=function DatePickerIOS(){return(0,_njsx2.default)(_reactNative2.default.DatePickerIOS).apply(undefined,arguments);}; | ||
var DrawerLayoutAndroid=exports.DrawerLayoutAndroid=function DrawerLayoutAndroid(){return(0,_njsx2.default)(_reactNative2.default.DrawerLayoutAndroid).apply(undefined,arguments);}; | ||
var Image=exports.Image=function Image(){return(0,_njsx2.default)(_reactNative2.default.Image).apply(undefined,arguments);}; | ||
var KeyboardAvoidingView=exports.KeyboardAvoidingView=function KeyboardAvoidingView(){return(0,_njsx2.default)(_reactNative2.default.KeyboardAvoidingView).apply(undefined,arguments);}; | ||
var ListView=exports.ListView=function ListView(){return(0,_njsx2.default)(_reactNative2.default.ListView).apply(undefined,arguments);}; | ||
var MapView=exports.MapView=function MapView(){return(0,_njsx2.default)(_reactNative2.default.MapView).apply(undefined,arguments);}; | ||
var Modal=exports.Modal=function Modal(){return(0,_njsx2.default)(_reactNative2.default.Modal).apply(undefined,arguments);}; | ||
var Navigator=exports.Navigator=function Navigator(){return(0,_njsx2.default)(_reactNative2.default.Navigator).apply(undefined,arguments);}; | ||
var NavigatorIOS=exports.NavigatorIOS=function NavigatorIOS(){return(0,_njsx2.default)(_reactNative2.default.NavigatorIOS).apply(undefined,arguments);}; | ||
var Picker=exports.Picker=function Picker(){return(0,_njsx2.default)(_reactNative2.default.Picker).apply(undefined,arguments);}; | ||
var PickerIOS=exports.PickerIOS=function PickerIOS(){return(0,_njsx2.default)(_reactNative2.default.PickerIOS).apply(undefined,arguments);}; | ||
var ProgressBarAndroid=exports.ProgressBarAndroid=function ProgressBarAndroid(){return(0,_njsx2.default)(_reactNative2.default.ProgressBarAndroid).apply(undefined,arguments);}; | ||
var ProgressViewIOS=exports.ProgressViewIOS=function ProgressViewIOS(){return(0,_njsx2.default)(_reactNative2.default.ProgressViewIOS).apply(undefined,arguments);}; | ||
var RefreshControl=exports.RefreshControl=function RefreshControl(){return(0,_njsx2.default)(_reactNative2.default.RefreshControl).apply(undefined,arguments);}; | ||
var ScrollView=exports.ScrollView=function ScrollView(){return(0,_njsx2.default)(_reactNative2.default.ScrollView).apply(undefined,arguments);}; | ||
var SegmentedControlIOS=exports.SegmentedControlIOS=function SegmentedControlIOS(){return(0,_njsx2.default)(_reactNative2.default.SegmentedControlIOS).apply(undefined,arguments);}; | ||
var Slider=exports.Slider=function Slider(){return(0,_njsx2.default)(_reactNative2.default.Slider).apply(undefined,arguments);}; | ||
var SnapshotViewIOS=exports.SnapshotViewIOS=function SnapshotViewIOS(){return(0,_njsx2.default)(_reactNative2.default.SnapshotViewIOS).apply(undefined,arguments);}; | ||
var StatusBar=exports.StatusBar=function StatusBar(){return(0,_njsx2.default)(_reactNative2.default.StatusBar).apply(undefined,arguments);}; | ||
var Switch=exports.Switch=function Switch(){return(0,_njsx2.default)(_reactNative2.default.Switch).apply(undefined,arguments);}; | ||
var TabBarIOS=exports.TabBarIOS=function TabBarIOS(){return(0,_njsx2.default)(_reactNative2.default.TabBarIOS).apply(undefined,arguments);}; | ||
var TabBarIOSItem=exports.TabBarIOSItem=function TabBarIOSItem(){return(0,_njsx2.default)(_reactNative2.default.TabBarIOS.Item).apply(undefined,arguments);}; | ||
var Text=exports.Text=function Text(){return(0,_njsx2.default)(_reactNative2.default.Text).apply(undefined,arguments);}; | ||
var TextInput=exports.TextInput=function TextInput(){return(0,_njsx2.default)(_reactNative2.default.TextInput).apply(undefined,arguments);}; | ||
var ToolbarAndroid=exports.ToolbarAndroid=function ToolbarAndroid(){return(0,_njsx2.default)(_reactNative2.default.ToolbarAndroid).apply(undefined,arguments);}; | ||
var TouchableHighlight=exports.TouchableHighlight=function TouchableHighlight(){return(0,_njsx2.default)(_reactNative2.default.TouchableHighlight).apply(undefined,arguments);}; | ||
var TouchableNativeFeedback=exports.TouchableNativeFeedback=function TouchableNativeFeedback(){return(0,_njsx2.default)(_reactNative2.default.TouchableNativeFeedback).apply(undefined,arguments);}; | ||
var TouchableOpacity=exports.TouchableOpacity=function TouchableOpacity(){return(0,_njsx2.default)(_reactNative2.default.TouchableOpacity).apply(undefined,arguments);}; | ||
var TouchableWithoutFeedback=exports.TouchableWithoutFeedback=function TouchableWithoutFeedback(){return(0,_njsx2.default)(_reactNative2.default.TouchableWithoutFeedback).apply(undefined,arguments);}; | ||
var View=exports.View=function View(){return(0,_njsx2.default)(_reactNative2.default.View).apply(undefined,arguments);}; | ||
var ViewPagerAndroid=exports.ViewPagerAndroid=function ViewPagerAndroid(){return(0,_njsx2.default)(_reactNative2.default.ViewPagerAndroid).apply(undefined,arguments);}; | ||
var ActivityIndicator=exports.ActivityIndicator=function ActivityIndicator(){return(0,_index2.default)(_reactNative2.default.ActivityIndicator).apply(undefined,arguments);}; | ||
var Button=exports.Button=function Button(){return(0,_index2.default)(_reactNative2.default.Button).apply(undefined,arguments);}; | ||
var DatePickerIOS=exports.DatePickerIOS=function DatePickerIOS(){return(0,_index2.default)(_reactNative2.default.DatePickerIOS).apply(undefined,arguments);}; | ||
var DrawerLayoutAndroid=exports.DrawerLayoutAndroid=function DrawerLayoutAndroid(){return(0,_index2.default)(_reactNative2.default.DrawerLayoutAndroid).apply(undefined,arguments);}; | ||
var Image=exports.Image=function Image(){return(0,_index2.default)(_reactNative2.default.Image).apply(undefined,arguments);}; | ||
var KeyboardAvoidingView=exports.KeyboardAvoidingView=function KeyboardAvoidingView(){return(0,_index2.default)(_reactNative2.default.KeyboardAvoidingView).apply(undefined,arguments);}; | ||
var ListView=exports.ListView=function ListView(){return(0,_index2.default)(_reactNative2.default.ListView).apply(undefined,arguments);}; | ||
var MapView=exports.MapView=function MapView(){return(0,_index2.default)(_reactNative2.default.MapView).apply(undefined,arguments);}; | ||
var Modal=exports.Modal=function Modal(){return(0,_index2.default)(_reactNative2.default.Modal).apply(undefined,arguments);}; | ||
var Navigator=exports.Navigator=function Navigator(){return(0,_index2.default)(_reactNative2.default.Navigator).apply(undefined,arguments);}; | ||
var NavigatorIOS=exports.NavigatorIOS=function NavigatorIOS(){return(0,_index2.default)(_reactNative2.default.NavigatorIOS).apply(undefined,arguments);}; | ||
var Picker=exports.Picker=function Picker(){return(0,_index2.default)(_reactNative2.default.Picker).apply(undefined,arguments);}; | ||
var PickerIOS=exports.PickerIOS=function PickerIOS(){return(0,_index2.default)(_reactNative2.default.PickerIOS).apply(undefined,arguments);}; | ||
var ProgressBarAndroid=exports.ProgressBarAndroid=function ProgressBarAndroid(){return(0,_index2.default)(_reactNative2.default.ProgressBarAndroid).apply(undefined,arguments);}; | ||
var ProgressViewIOS=exports.ProgressViewIOS=function ProgressViewIOS(){return(0,_index2.default)(_reactNative2.default.ProgressViewIOS).apply(undefined,arguments);}; | ||
var RefreshControl=exports.RefreshControl=function RefreshControl(){return(0,_index2.default)(_reactNative2.default.RefreshControl).apply(undefined,arguments);}; | ||
var ScrollView=exports.ScrollView=function ScrollView(){return(0,_index2.default)(_reactNative2.default.ScrollView).apply(undefined,arguments);}; | ||
var SegmentedControlIOS=exports.SegmentedControlIOS=function SegmentedControlIOS(){return(0,_index2.default)(_reactNative2.default.SegmentedControlIOS).apply(undefined,arguments);}; | ||
var Slider=exports.Slider=function Slider(){return(0,_index2.default)(_reactNative2.default.Slider).apply(undefined,arguments);}; | ||
var SnapshotViewIOS=exports.SnapshotViewIOS=function SnapshotViewIOS(){return(0,_index2.default)(_reactNative2.default.SnapshotViewIOS).apply(undefined,arguments);}; | ||
var StatusBar=exports.StatusBar=function StatusBar(){return(0,_index2.default)(_reactNative2.default.StatusBar).apply(undefined,arguments);}; | ||
var Switch=exports.Switch=function Switch(){return(0,_index2.default)(_reactNative2.default.Switch).apply(undefined,arguments);}; | ||
var TabBarIOS=exports.TabBarIOS=function TabBarIOS(){return(0,_index2.default)(_reactNative2.default.TabBarIOS).apply(undefined,arguments);}; | ||
var TabBarIOSItem=exports.TabBarIOSItem=function TabBarIOSItem(){return(0,_index2.default)(_reactNative2.default.TabBarIOS.Item).apply(undefined,arguments);}; | ||
var Text=exports.Text=function Text(){return(0,_index2.default)(_reactNative2.default.Text).apply(undefined,arguments);}; | ||
var TextInput=exports.TextInput=function TextInput(){return(0,_index2.default)(_reactNative2.default.TextInput).apply(undefined,arguments);}; | ||
var ToolbarAndroid=exports.ToolbarAndroid=function ToolbarAndroid(){return(0,_index2.default)(_reactNative2.default.ToolbarAndroid).apply(undefined,arguments);}; | ||
var TouchableHighlight=exports.TouchableHighlight=function TouchableHighlight(){return(0,_index2.default)(_reactNative2.default.TouchableHighlight).apply(undefined,arguments);}; | ||
var TouchableNativeFeedback=exports.TouchableNativeFeedback=function TouchableNativeFeedback(){return(0,_index2.default)(_reactNative2.default.TouchableNativeFeedback).apply(undefined,arguments);}; | ||
var TouchableOpacity=exports.TouchableOpacity=function TouchableOpacity(){return(0,_index2.default)(_reactNative2.default.TouchableOpacity).apply(undefined,arguments);}; | ||
var TouchableWithoutFeedback=exports.TouchableWithoutFeedback=function TouchableWithoutFeedback(){return(0,_index2.default)(_reactNative2.default.TouchableWithoutFeedback).apply(undefined,arguments);}; | ||
var View=exports.View=function View(){return(0,_index2.default)(_reactNative2.default.View).apply(undefined,arguments);}; | ||
var ViewPagerAndroid=exports.ViewPagerAndroid=function ViewPagerAndroid(){return(0,_index2.default)(_reactNative2.default.ViewPagerAndroid).apply(undefined,arguments);}; |
270
react.js
@@ -1,2 +0,2 @@ | ||
Object.defineProperty(exports,"__esModule",{value:true});exports.tspan=exports.text=exports.svg=exports.stop=exports.rect=exports.radialGradient=exports.polyline=exports.polygon=exports.pattern=exports.path=exports.mask=exports.linearGradient=exports.line=exports.image=exports.g=exports.ellipse=exports.defs=exports.clipPath=exports.circle=exports.wbr=exports.video=exports.variable=exports.ul=exports.u=exports.track=exports.tr=exports.title=exports.time=exports.thead=exports.th=exports.tfoot=exports.textarea=exports.td=undefined;exports.tbody=exports.table=exports.sup=exports.summary=exports.sub=exports.style=exports.strong=exports.span=exports.source=exports.small=exports.select=exports.section=exports.script=exports.samp=exports.s=exports.ruby=exports.rt=exports.rp=exports.q=exports.progress=exports.pre=exports.picture=exports.param=exports.p=exports.output=exports.option=exports.optgroup=exports.ol=exports.object=exports.noscript=exports.nav=exports.meter=exports.meta=exports.menuitem=exports.menu=exports.mark=exports.map=exports.main=exports.link=exports.li=exports.legend=exports.label=exports.keygen=exports.kbd=exports.ins=exports.input=exports.img=exports.iframe=exports.i=exports.html=exports.hr=exports.hgroup=exports.header=exports.head=exports.h6=exports.h5=exports.h4=exports.h3=exports.h2=exports.h1=exports.form=exports.footer=exports.figure=exports.figcaption=exports.fieldset=exports.embed=exports.em=exports.dt=exports.dl=exports.div=exports.dialog=exports.dfn=exports.details=exports.del=exports.dd=exports.datalist=exports.data=exports.colgroup=exports.col=exports.code=exports.cite=exports.caption=exports.canvas=exports.button=exports.br=exports.body=exports.blockquote=exports.big=exports.bdo=exports.bdi=exports.base=exports.b=exports.audio=exports.aside=exports.article=exports.area=exports.address=exports.abbr=exports.a=exports.DEFAULT_REACT_RULES=undefined;var _njsx=require('./njsx');var _njsx2=_interopRequireDefault(_njsx); | ||
Object.defineProperty(exports,"__esModule",{value:true});exports.tspan=exports.text=exports.svg=exports.stop=exports.rect=exports.radialGradient=exports.polyline=exports.polygon=exports.pattern=exports.path=exports.mask=exports.linearGradient=exports.line=exports.image=exports.g=exports.ellipse=exports.defs=exports.clipPath=exports.circle=exports.wbr=exports.video=exports.variable=exports.ul=exports.u=exports.track=exports.tr=exports.title=exports.time=exports.thead=exports.th=exports.tfoot=exports.textarea=exports.td=undefined;exports.tbody=exports.table=exports.sup=exports.summary=exports.sub=exports.style=exports.strong=exports.span=exports.source=exports.small=exports.select=exports.section=exports.script=exports.samp=exports.s=exports.ruby=exports.rt=exports.rp=exports.q=exports.progress=exports.pre=exports.picture=exports.param=exports.p=exports.output=exports.option=exports.optgroup=exports.ol=exports.object=exports.noscript=exports.nav=exports.meter=exports.meta=exports.menuitem=exports.menu=exports.mark=exports.map=exports.main=exports.link=exports.li=exports.legend=exports.label=exports.keygen=exports.kbd=exports.ins=exports.input=exports.img=exports.iframe=exports.i=exports.html=exports.hr=exports.hgroup=exports.header=exports.head=exports.h6=exports.h5=exports.h4=exports.h3=exports.h2=exports.h1=exports.form=exports.footer=exports.figure=exports.figcaption=exports.fieldset=exports.embed=exports.em=exports.dt=exports.dl=exports.div=exports.dialog=exports.dfn=exports.details=exports.del=exports.dd=exports.datalist=exports.data=exports.colgroup=exports.col=exports.code=exports.cite=exports.caption=exports.canvas=exports.button=exports.br=exports.body=exports.blockquote=exports.big=exports.bdo=exports.bdi=exports.base=exports.b=exports.audio=exports.aside=exports.article=exports.area=exports.address=exports.abbr=exports.a=exports.DEFAULT_REACT_RULES=undefined;var _index=require('./index');var _index2=_interopRequireDefault(_index); | ||
var _rules=require('./rules');var _rules2=_interopRequireDefault(_rules);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};} | ||
@@ -16,137 +16,137 @@ | ||
_njsx2.default.rules=_njsx2.default.rules||DEFAULT_REACT_RULES; | ||
_njsx2.default.dynamicSelectorHandler=_njsx2.default.dynamicSelectorHandler||_rules2.default.STRING_AS_CLASS.apply; | ||
_index2.default.rules=_index2.default.rules||DEFAULT_REACT_RULES; | ||
_index2.default.dynamicSelectorHandler=_index2.default.dynamicSelectorHandler||_rules2.default.STRING_AS_CLASS.apply; | ||
var a=exports.a=(0,_njsx2.default)('a'); | ||
var abbr=exports.abbr=(0,_njsx2.default)('abbr'); | ||
var address=exports.address=(0,_njsx2.default)('address'); | ||
var area=exports.area=(0,_njsx2.default)('area'); | ||
var article=exports.article=(0,_njsx2.default)('article'); | ||
var aside=exports.aside=(0,_njsx2.default)('aside'); | ||
var audio=exports.audio=(0,_njsx2.default)('audio'); | ||
var b=exports.b=(0,_njsx2.default)('b'); | ||
var base=exports.base=(0,_njsx2.default)('base'); | ||
var bdi=exports.bdi=(0,_njsx2.default)('bdi'); | ||
var bdo=exports.bdo=(0,_njsx2.default)('bdo'); | ||
var big=exports.big=(0,_njsx2.default)('big'); | ||
var blockquote=exports.blockquote=(0,_njsx2.default)('blockquote'); | ||
var body=exports.body=(0,_njsx2.default)('body'); | ||
var br=exports.br=(0,_njsx2.default)('br'); | ||
var button=exports.button=(0,_njsx2.default)('button'); | ||
var canvas=exports.canvas=(0,_njsx2.default)('canvas'); | ||
var caption=exports.caption=(0,_njsx2.default)('caption'); | ||
var cite=exports.cite=(0,_njsx2.default)('cite'); | ||
var code=exports.code=(0,_njsx2.default)('code'); | ||
var col=exports.col=(0,_njsx2.default)('col'); | ||
var colgroup=exports.colgroup=(0,_njsx2.default)('colgroup'); | ||
var data=exports.data=(0,_njsx2.default)('data'); | ||
var datalist=exports.datalist=(0,_njsx2.default)('datalist'); | ||
var dd=exports.dd=(0,_njsx2.default)('dd'); | ||
var del=exports.del=(0,_njsx2.default)('del'); | ||
var details=exports.details=(0,_njsx2.default)('details'); | ||
var dfn=exports.dfn=(0,_njsx2.default)('dfn'); | ||
var dialog=exports.dialog=(0,_njsx2.default)('dialog'); | ||
var div=exports.div=(0,_njsx2.default)('div'); | ||
var dl=exports.dl=(0,_njsx2.default)('dl'); | ||
var dt=exports.dt=(0,_njsx2.default)('dt'); | ||
var em=exports.em=(0,_njsx2.default)('em'); | ||
var embed=exports.embed=(0,_njsx2.default)('embed'); | ||
var fieldset=exports.fieldset=(0,_njsx2.default)('fieldset'); | ||
var figcaption=exports.figcaption=(0,_njsx2.default)('figcaption'); | ||
var figure=exports.figure=(0,_njsx2.default)('figure'); | ||
var footer=exports.footer=(0,_njsx2.default)('footer'); | ||
var form=exports.form=(0,_njsx2.default)('form'); | ||
var h1=exports.h1=(0,_njsx2.default)('h1'); | ||
var h2=exports.h2=(0,_njsx2.default)('h2'); | ||
var h3=exports.h3=(0,_njsx2.default)('h3'); | ||
var h4=exports.h4=(0,_njsx2.default)('h4'); | ||
var h5=exports.h5=(0,_njsx2.default)('h5'); | ||
var h6=exports.h6=(0,_njsx2.default)('h6'); | ||
var head=exports.head=(0,_njsx2.default)('head'); | ||
var header=exports.header=(0,_njsx2.default)('header'); | ||
var hgroup=exports.hgroup=(0,_njsx2.default)('hgroup'); | ||
var hr=exports.hr=(0,_njsx2.default)('hr'); | ||
var html=exports.html=(0,_njsx2.default)('html'); | ||
var i=exports.i=(0,_njsx2.default)('i'); | ||
var iframe=exports.iframe=(0,_njsx2.default)('iframe'); | ||
var img=exports.img=(0,_njsx2.default)('img'); | ||
var input=exports.input=(0,_njsx2.default)('input'); | ||
var ins=exports.ins=(0,_njsx2.default)('ins'); | ||
var kbd=exports.kbd=(0,_njsx2.default)('kbd'); | ||
var keygen=exports.keygen=(0,_njsx2.default)('keygen'); | ||
var label=exports.label=(0,_njsx2.default)('label'); | ||
var legend=exports.legend=(0,_njsx2.default)('legend'); | ||
var li=exports.li=(0,_njsx2.default)('li'); | ||
var link=exports.link=(0,_njsx2.default)('link'); | ||
var main=exports.main=(0,_njsx2.default)('main'); | ||
var map=exports.map=(0,_njsx2.default)('map'); | ||
var mark=exports.mark=(0,_njsx2.default)('mark'); | ||
var menu=exports.menu=(0,_njsx2.default)('menu'); | ||
var menuitem=exports.menuitem=(0,_njsx2.default)('menuitem'); | ||
var meta=exports.meta=(0,_njsx2.default)('meta'); | ||
var meter=exports.meter=(0,_njsx2.default)('meter'); | ||
var nav=exports.nav=(0,_njsx2.default)('nav'); | ||
var noscript=exports.noscript=(0,_njsx2.default)('noscript'); | ||
var object=exports.object=(0,_njsx2.default)('object'); | ||
var ol=exports.ol=(0,_njsx2.default)('ol'); | ||
var optgroup=exports.optgroup=(0,_njsx2.default)('optgroup'); | ||
var option=exports.option=(0,_njsx2.default)('option'); | ||
var output=exports.output=(0,_njsx2.default)('output'); | ||
var p=exports.p=(0,_njsx2.default)('p'); | ||
var param=exports.param=(0,_njsx2.default)('param'); | ||
var picture=exports.picture=(0,_njsx2.default)('picture'); | ||
var pre=exports.pre=(0,_njsx2.default)('pre'); | ||
var progress=exports.progress=(0,_njsx2.default)('progress'); | ||
var q=exports.q=(0,_njsx2.default)('q'); | ||
var rp=exports.rp=(0,_njsx2.default)('rp'); | ||
var rt=exports.rt=(0,_njsx2.default)('rt'); | ||
var ruby=exports.ruby=(0,_njsx2.default)('ruby'); | ||
var s=exports.s=(0,_njsx2.default)('s'); | ||
var samp=exports.samp=(0,_njsx2.default)('samp'); | ||
var script=exports.script=(0,_njsx2.default)('script'); | ||
var section=exports.section=(0,_njsx2.default)('section'); | ||
var select=exports.select=(0,_njsx2.default)('select'); | ||
var small=exports.small=(0,_njsx2.default)('small'); | ||
var source=exports.source=(0,_njsx2.default)('source'); | ||
var span=exports.span=(0,_njsx2.default)('span'); | ||
var strong=exports.strong=(0,_njsx2.default)('strong'); | ||
var style=exports.style=(0,_njsx2.default)('style'); | ||
var sub=exports.sub=(0,_njsx2.default)('sub'); | ||
var summary=exports.summary=(0,_njsx2.default)('summary'); | ||
var sup=exports.sup=(0,_njsx2.default)('sup'); | ||
var table=exports.table=(0,_njsx2.default)('table'); | ||
var tbody=exports.tbody=(0,_njsx2.default)('tbody'); | ||
var td=exports.td=(0,_njsx2.default)('td'); | ||
var textarea=exports.textarea=(0,_njsx2.default)('textarea'); | ||
var tfoot=exports.tfoot=(0,_njsx2.default)('tfoot'); | ||
var th=exports.th=(0,_njsx2.default)('th'); | ||
var thead=exports.thead=(0,_njsx2.default)('thead'); | ||
var time=exports.time=(0,_njsx2.default)('time'); | ||
var title=exports.title=(0,_njsx2.default)('title'); | ||
var tr=exports.tr=(0,_njsx2.default)('tr'); | ||
var track=exports.track=(0,_njsx2.default)('track'); | ||
var u=exports.u=(0,_njsx2.default)('u'); | ||
var ul=exports.ul=(0,_njsx2.default)('ul'); | ||
var variable=exports.variable=(0,_njsx2.default)('var'); | ||
var video=exports.video=(0,_njsx2.default)('video'); | ||
var wbr=exports.wbr=(0,_njsx2.default)('wbr'); | ||
var circle=exports.circle=(0,_njsx2.default)('circle'); | ||
var clipPath=exports.clipPath=(0,_njsx2.default)('clipPath'); | ||
var defs=exports.defs=(0,_njsx2.default)('defs'); | ||
var ellipse=exports.ellipse=(0,_njsx2.default)('ellipse'); | ||
var g=exports.g=(0,_njsx2.default)('g'); | ||
var image=exports.image=(0,_njsx2.default)('image'); | ||
var line=exports.line=(0,_njsx2.default)('line'); | ||
var linearGradient=exports.linearGradient=(0,_njsx2.default)('linearGradient'); | ||
var mask=exports.mask=(0,_njsx2.default)('mask'); | ||
var path=exports.path=(0,_njsx2.default)('path'); | ||
var pattern=exports.pattern=(0,_njsx2.default)('pattern'); | ||
var polygon=exports.polygon=(0,_njsx2.default)('polygon'); | ||
var polyline=exports.polyline=(0,_njsx2.default)('polyline'); | ||
var radialGradient=exports.radialGradient=(0,_njsx2.default)('radialGradient'); | ||
var rect=exports.rect=(0,_njsx2.default)('rect'); | ||
var stop=exports.stop=(0,_njsx2.default)('stop'); | ||
var svg=exports.svg=(0,_njsx2.default)('svg'); | ||
var text=exports.text=(0,_njsx2.default)('text'); | ||
var tspan=exports.tspan=(0,_njsx2.default)('tspan'); | ||
var a=exports.a=(0,_index2.default)('a'); | ||
var abbr=exports.abbr=(0,_index2.default)('abbr'); | ||
var address=exports.address=(0,_index2.default)('address'); | ||
var area=exports.area=(0,_index2.default)('area'); | ||
var article=exports.article=(0,_index2.default)('article'); | ||
var aside=exports.aside=(0,_index2.default)('aside'); | ||
var audio=exports.audio=(0,_index2.default)('audio'); | ||
var b=exports.b=(0,_index2.default)('b'); | ||
var base=exports.base=(0,_index2.default)('base'); | ||
var bdi=exports.bdi=(0,_index2.default)('bdi'); | ||
var bdo=exports.bdo=(0,_index2.default)('bdo'); | ||
var big=exports.big=(0,_index2.default)('big'); | ||
var blockquote=exports.blockquote=(0,_index2.default)('blockquote'); | ||
var body=exports.body=(0,_index2.default)('body'); | ||
var br=exports.br=(0,_index2.default)('br'); | ||
var button=exports.button=(0,_index2.default)('button'); | ||
var canvas=exports.canvas=(0,_index2.default)('canvas'); | ||
var caption=exports.caption=(0,_index2.default)('caption'); | ||
var cite=exports.cite=(0,_index2.default)('cite'); | ||
var code=exports.code=(0,_index2.default)('code'); | ||
var col=exports.col=(0,_index2.default)('col'); | ||
var colgroup=exports.colgroup=(0,_index2.default)('colgroup'); | ||
var data=exports.data=(0,_index2.default)('data'); | ||
var datalist=exports.datalist=(0,_index2.default)('datalist'); | ||
var dd=exports.dd=(0,_index2.default)('dd'); | ||
var del=exports.del=(0,_index2.default)('del'); | ||
var details=exports.details=(0,_index2.default)('details'); | ||
var dfn=exports.dfn=(0,_index2.default)('dfn'); | ||
var dialog=exports.dialog=(0,_index2.default)('dialog'); | ||
var div=exports.div=(0,_index2.default)('div'); | ||
var dl=exports.dl=(0,_index2.default)('dl'); | ||
var dt=exports.dt=(0,_index2.default)('dt'); | ||
var em=exports.em=(0,_index2.default)('em'); | ||
var embed=exports.embed=(0,_index2.default)('embed'); | ||
var fieldset=exports.fieldset=(0,_index2.default)('fieldset'); | ||
var figcaption=exports.figcaption=(0,_index2.default)('figcaption'); | ||
var figure=exports.figure=(0,_index2.default)('figure'); | ||
var footer=exports.footer=(0,_index2.default)('footer'); | ||
var form=exports.form=(0,_index2.default)('form'); | ||
var h1=exports.h1=(0,_index2.default)('h1'); | ||
var h2=exports.h2=(0,_index2.default)('h2'); | ||
var h3=exports.h3=(0,_index2.default)('h3'); | ||
var h4=exports.h4=(0,_index2.default)('h4'); | ||
var h5=exports.h5=(0,_index2.default)('h5'); | ||
var h6=exports.h6=(0,_index2.default)('h6'); | ||
var head=exports.head=(0,_index2.default)('head'); | ||
var header=exports.header=(0,_index2.default)('header'); | ||
var hgroup=exports.hgroup=(0,_index2.default)('hgroup'); | ||
var hr=exports.hr=(0,_index2.default)('hr'); | ||
var html=exports.html=(0,_index2.default)('html'); | ||
var i=exports.i=(0,_index2.default)('i'); | ||
var iframe=exports.iframe=(0,_index2.default)('iframe'); | ||
var img=exports.img=(0,_index2.default)('img'); | ||
var input=exports.input=(0,_index2.default)('input'); | ||
var ins=exports.ins=(0,_index2.default)('ins'); | ||
var kbd=exports.kbd=(0,_index2.default)('kbd'); | ||
var keygen=exports.keygen=(0,_index2.default)('keygen'); | ||
var label=exports.label=(0,_index2.default)('label'); | ||
var legend=exports.legend=(0,_index2.default)('legend'); | ||
var li=exports.li=(0,_index2.default)('li'); | ||
var link=exports.link=(0,_index2.default)('link'); | ||
var main=exports.main=(0,_index2.default)('main'); | ||
var map=exports.map=(0,_index2.default)('map'); | ||
var mark=exports.mark=(0,_index2.default)('mark'); | ||
var menu=exports.menu=(0,_index2.default)('menu'); | ||
var menuitem=exports.menuitem=(0,_index2.default)('menuitem'); | ||
var meta=exports.meta=(0,_index2.default)('meta'); | ||
var meter=exports.meter=(0,_index2.default)('meter'); | ||
var nav=exports.nav=(0,_index2.default)('nav'); | ||
var noscript=exports.noscript=(0,_index2.default)('noscript'); | ||
var object=exports.object=(0,_index2.default)('object'); | ||
var ol=exports.ol=(0,_index2.default)('ol'); | ||
var optgroup=exports.optgroup=(0,_index2.default)('optgroup'); | ||
var option=exports.option=(0,_index2.default)('option'); | ||
var output=exports.output=(0,_index2.default)('output'); | ||
var p=exports.p=(0,_index2.default)('p'); | ||
var param=exports.param=(0,_index2.default)('param'); | ||
var picture=exports.picture=(0,_index2.default)('picture'); | ||
var pre=exports.pre=(0,_index2.default)('pre'); | ||
var progress=exports.progress=(0,_index2.default)('progress'); | ||
var q=exports.q=(0,_index2.default)('q'); | ||
var rp=exports.rp=(0,_index2.default)('rp'); | ||
var rt=exports.rt=(0,_index2.default)('rt'); | ||
var ruby=exports.ruby=(0,_index2.default)('ruby'); | ||
var s=exports.s=(0,_index2.default)('s'); | ||
var samp=exports.samp=(0,_index2.default)('samp'); | ||
var script=exports.script=(0,_index2.default)('script'); | ||
var section=exports.section=(0,_index2.default)('section'); | ||
var select=exports.select=(0,_index2.default)('select'); | ||
var small=exports.small=(0,_index2.default)('small'); | ||
var source=exports.source=(0,_index2.default)('source'); | ||
var span=exports.span=(0,_index2.default)('span'); | ||
var strong=exports.strong=(0,_index2.default)('strong'); | ||
var style=exports.style=(0,_index2.default)('style'); | ||
var sub=exports.sub=(0,_index2.default)('sub'); | ||
var summary=exports.summary=(0,_index2.default)('summary'); | ||
var sup=exports.sup=(0,_index2.default)('sup'); | ||
var table=exports.table=(0,_index2.default)('table'); | ||
var tbody=exports.tbody=(0,_index2.default)('tbody'); | ||
var td=exports.td=(0,_index2.default)('td'); | ||
var textarea=exports.textarea=(0,_index2.default)('textarea'); | ||
var tfoot=exports.tfoot=(0,_index2.default)('tfoot'); | ||
var th=exports.th=(0,_index2.default)('th'); | ||
var thead=exports.thead=(0,_index2.default)('thead'); | ||
var time=exports.time=(0,_index2.default)('time'); | ||
var title=exports.title=(0,_index2.default)('title'); | ||
var tr=exports.tr=(0,_index2.default)('tr'); | ||
var track=exports.track=(0,_index2.default)('track'); | ||
var u=exports.u=(0,_index2.default)('u'); | ||
var ul=exports.ul=(0,_index2.default)('ul'); | ||
var variable=exports.variable=(0,_index2.default)('var'); | ||
var video=exports.video=(0,_index2.default)('video'); | ||
var wbr=exports.wbr=(0,_index2.default)('wbr'); | ||
var circle=exports.circle=(0,_index2.default)('circle'); | ||
var clipPath=exports.clipPath=(0,_index2.default)('clipPath'); | ||
var defs=exports.defs=(0,_index2.default)('defs'); | ||
var ellipse=exports.ellipse=(0,_index2.default)('ellipse'); | ||
var g=exports.g=(0,_index2.default)('g'); | ||
var image=exports.image=(0,_index2.default)('image'); | ||
var line=exports.line=(0,_index2.default)('line'); | ||
var linearGradient=exports.linearGradient=(0,_index2.default)('linearGradient'); | ||
var mask=exports.mask=(0,_index2.default)('mask'); | ||
var path=exports.path=(0,_index2.default)('path'); | ||
var pattern=exports.pattern=(0,_index2.default)('pattern'); | ||
var polygon=exports.polygon=(0,_index2.default)('polygon'); | ||
var polyline=exports.polyline=(0,_index2.default)('polyline'); | ||
var radialGradient=exports.radialGradient=(0,_index2.default)('radialGradient'); | ||
var rect=exports.rect=(0,_index2.default)('rect'); | ||
var stop=exports.stop=(0,_index2.default)('stop'); | ||
var svg=exports.svg=(0,_index2.default)('svg'); | ||
var text=exports.text=(0,_index2.default)('text'); | ||
var tspan=exports.tspan=(0,_index2.default)('tspan'); |
No-JSX | ||
------ | ||
[![Build Status](https://travis-ci.org/uqbar-project/njsx.svg?branch=master)](https://travis-ci.org/uqbar-project/njsx) | ||
A customizable and declarative interface for creating [React](https://facebook.github.io/react/) and [React Native](https://facebook.github.io/react-native/) components without *JSX* syntax. | ||
@@ -130,2 +132,23 @@ | ||
### Building Third-Party Components | ||
NJSX is not just for default components! You can get a builder for **any** *React* or *React-Native* component by applying it to the `njsx` function. | ||
```js | ||
import njsx from 'njsx' // This is NJSX core. Booth React and ReactNative use it to define their builders. | ||
import {SomeComponent} from 'someOtherModule' | ||
const SomeFunctionalComponent = (props) => //...whatever you want to render | ||
class SomeStatefulComponent extends React.Component { | ||
render() { | ||
return //...whatever you want to render | ||
} | ||
} | ||
const someComponent = njsx(SomeComponent) // This is a NJSX builder for SomeComponent | ||
const someFunctionalComponent = njsx(SomeFunctionalComponent) // This is a NJSX builder for SomeFunctionalComponent | ||
const someStatefulComponent = njsx(SomeFunctionalComponent) // This is a NJSX builder for SomeStatefulComponent | ||
``` | ||
### Advanced Customization | ||
@@ -136,3 +159,3 @@ | ||
```js | ||
import njsx from 'njsx/njsx' // This is NJSX core. Booth React and ReactNative use it to define their builders. | ||
import njsx from 'njsx' | ||
import Rules from 'njsx/rules' // This module exports some common rule examples. | ||
@@ -139,0 +162,0 @@ ``` |
24
rules.js
@@ -1,3 +0,13 @@ | ||
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++){arr2[i]=arr[i];}return arr2;}else{return Array.from(arr);}}var isArray=Array.isArray;exports.default= | ||
Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};function _toConsumableArray(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++){arr2[i]=arr[i];}return arr2;}else{return Array.from(arr);}}var isArray=Array.isArray; | ||
function mergedStyle(props,style){ | ||
if(!props.style&&!style)return{}; | ||
if(!style)return{style:props.style}; | ||
var newStyle=style.styleId?style.styleId:style; | ||
if(!props.style)return{style:newStyle}; | ||
if(isArray(props.style))return{style:[].concat(_toConsumableArray(props.style),[newStyle])}; | ||
return{style:[props.style,newStyle]}; | ||
}exports.default= | ||
{ | ||
@@ -7,3 +17,5 @@ | ||
appliesTo:function appliesTo(arg){return typeof arg==='object';}, | ||
apply:function apply(arg,_ref){var props=_ref.props,children=_ref.children;return{props:_extends({},props,arg),children:children};}}, | ||
apply:function apply(arg,_ref){var props=_ref.props,children=_ref.children; | ||
return{props:_extends({},props,arg,mergedStyle(props,arg.style)),children:children}; | ||
}}, | ||
@@ -18,9 +30,3 @@ | ||
appliesTo:function appliesTo(arg){return typeof arg==='object'&&arg.styleId;}, | ||
apply:function apply(arg,_ref3){var props=_ref3.props,children=_ref3.children; | ||
var style=null; | ||
if(!props.style)style=arg.styleId;else | ||
if(isArray(props.style))style=[].concat(_toConsumableArray(props.style),[arg.styleId]);else | ||
style=[props.style,arg.styleId]; | ||
return{props:_extends({},props,{style:style}),children:children}; | ||
}}, | ||
apply:function apply(arg,_ref3){var props=_ref3.props,children=_ref3.children;return{props:_extends({},props,mergedStyle(props,arg)),children:children};}}, | ||
@@ -27,0 +33,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
40421
273
206
6
2