diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c7d3a384..cf27e7019 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,22 +1,18 @@ -# Version [2.6.1](https://github.com/GeekyAnts/NativeBase/releases/tag/v2.6.1) +# Version [2.7.0](https://github.com/GeekyAnts/NativeBase/releases/tag/v2.7.0) ### Upgraded Features -* **Accordion:** Added `expanded` props to accordion. PR [#1970](https://github.com/GeekyAnts/NativeBase/pull/1970) -* **ActionSheet:** Fixed as per design guidelines. Commit [1a22d69](https://github.com/GeekyAnts/NativeBase/commit/1a22d69ddc87799a2e7f82741d5ce865e6a899ca) -* **Date Picker:** Added `onDateChange` callback support for Android. PR [#2027](https://github.com/GeekyAnts/NativeBase/pull/2027), closes [#2016](https://github.com/GeekyAnts/NativeBase/issues/2016) -* **Picker:** Fixed Header Left Button alignment as per design guidelines. Commit [0b4e5af](https://github.com/GeekyAnts/NativeBase/commit/0b4e5af82d5afc17bafb4b143d3694b5ebc3588c) -* **Theme:** - - **Card:** - - Replaced `listItemPadding` for cards with new variable `cardItemPadding`. This lets to customize space between Card and CardItem. Commit [470494c](https://github.com/GeekyAnts/NativeBase/commit/470494ca720e553095022b149e49f245cd323654), closes [#2020](https://github.com/GeekyAnts/NativeBase/issues/2020) - - Updated `transparent` prop to render without elevation and border. PR [#2031](https://github.com/GeekyAnts/NativeBase/pull/2031) - - **Input:** Added Picker support with Input. Introduced `picker` prop with ``. Commit [2138e2b](https://github.com/GeekyAnts/NativeBase/commit/2138e2b51902d1e924c476090d1c96353e9c1be8) +* Upgraded react-native-easy-grid to 0.2.0 +* Upgraded babel-jest to 23.2.0 +* Upgraded babel-preset-react-native to 4.0.0 +* Upgraded jest to 23.3.0 +* Upgraded react to 16.4.1 +* Upgraded react-native to 0.56.0 +* Upgraded react-native-vector-icons to 4.6.0 +* Upgraded react-test-renderer to 16.4.1 ### Bug Fixes -* **Accordion:** Added expanded parameter to renderHeader callback method. PR [#2039](https://github.com/GeekyAnts/NativeBase/pull/2039), closes [#2023](https://github.com/GeekyAnts/NativeBase/issues/2023) -* **Font:** Added `Fonts/MaterialCommunityIcons.ttf`. Commit [a8235c5](https://github.com/GeekyAnts/NativeBase/commit/a8235c50bdb79b955b436932d4470e263064c849) -* **Header:** Added Statusbar color support for `transparent` Header on Android. PR [#2032](https://github.com/GeekyAnts/NativeBase/pull/2032), closes [#1981](https://github.com/GeekyAnts/NativeBase/issues/1981) -* **Input:** Fixed FloatingLabel's float issue onFocus of Input. (everted [#1606](https://github.com/GeekyAnts/NativeBase/pull/1606)) PR [#2030](https://github.com/GeekyAnts/NativeBase/pull/2030), closes [#2000](https://github.com/GeekyAnts/NativeBase/issues/2000) \ No newline at end of file +* Compatible with React Native 0.56.0, fixed `ReactNativePropRegistry` issue. \ No newline at end of file diff --git a/dist/addEjectScript.js b/dist/addEjectScript.js index 22afca901..fdacc0009 100644 --- a/dist/addEjectScript.js +++ b/dist/addEjectScript.js @@ -1,12 +1,2 @@ -var printMessage=require("print-message"); - -printMessage( -[ -"NativeBase 2.0 has been succesfully installed!", -"Run `node node_modules/native-base/ejectTheme.js` to copy over theme config and variables.", -"Head over to the docs for detailed information on how to make changes to the theme."], - -{ -color:"yellow", -borderColor:"green"}); +var printMessage=require("print-message");printMessage(["NativeBase 2.0 has been succesfully installed!","Run `node node_modules/native-base/ejectTheme.js` to copy over theme config and variables.","Head over to the docs for detailed information on how to make changes to the theme."],{color:"yellow",borderColor:"green"}); //# sourceMappingURL=addEjectScript.js.map \ No newline at end of file diff --git a/dist/addEjectScript.js.map b/dist/addEjectScript.js.map index 8195da134..1b5f47150 100644 --- a/dist/addEjectScript.js.map +++ b/dist/addEjectScript.js.map @@ -1 +1 @@ -{"version":3,"sources":["../addEjectScript.js"],"names":["printMessage","require","color","borderColor"],"mappings":"AAAA,GAAMA,cAAeC,QAAQ,eAAR,CAArB;;AAEAD;AACE;AACE,gDADF;AAEE,4FAFF;AAGE,qFAHF,CADF;;AAME;AACEE,MAAO,QADT;AAEEC,YAAa,OAFf,CANF","file":"addEjectScript.js","sourcesContent":["const printMessage = require(\"print-message\");\n\nprintMessage(\n [\n \"NativeBase 2.0 has been succesfully installed!\",\n \"Run `node node_modules/native-base/ejectTheme.js` to copy over theme config and variables.\",\n \"Head over to the docs for detailed information on how to make changes to the theme.\"\n ],\n {\n color: \"yellow\",\n borderColor: \"green\"\n }\n);\n"]} \ No newline at end of file +{"version":3,"sources":["../addEjectScript.js"],"names":["printMessage","require","color","borderColor"],"mappings":"AAAA,GAAMA,cAAeC,QAAQ,eAAR,CAArB,CAEAD,aACE,CACE,gDADF,CAEE,4FAFF,CAGE,qFAHF,CADF,CAME,CACEE,MAAO,QADT,CAEEC,YAAa,OAFf,CANF","file":"addEjectScript.js","sourcesContent":["const printMessage = require(\"print-message\");\n\nprintMessage(\n [\n \"NativeBase 2.0 has been succesfully installed!\",\n \"Run `node node_modules/native-base/ejectTheme.js` to copy over theme config and variables.\",\n \"Head over to the docs for detailed information on how to make changes to the theme.\"\n ],\n {\n color: \"yellow\",\n borderColor: \"green\"\n }\n);\n"]} \ No newline at end of file diff --git a/dist/ejectTheme.js b/dist/ejectTheme.js index 64c457fbf..db93c8d88 100644 --- a/dist/ejectTheme.js +++ b/dist/ejectTheme.js @@ -1,41 +1,2 @@ -var fs=require("fs-extra"); -var path=require("path"); - -var printMessage=require("print-message"); - -try{ -fs.copySync( -path.join(__dirname,"src","theme"), -path.join(process.cwd(),"native-base-theme")); - -printMessage( -[ -"NativeBase theme has been copied at "+ -path.join(process.cwd(),"native-base-theme"), -"Here's how to theme your app", -"", -"import getTheme from './native-base-theme/components';", -"export default class ThemeExample extends Component {", -"render() {", -" return (", -" ", -" ", -" ", -" ...", -" ", -" ", -" ", -" );", -"}", -"", -"Head over to the docs (http://docs.nativebase.io/Customize.html#Customize) for detailed information on customization"], - -{ -color:"yellow", -borderColor:"green"}); - - -}catch(err){ -console.log("Error: "+err); -} +var fs=require("fs-extra");var path=require("path");var printMessage=require("print-message");try{fs.copySync(path.join(__dirname,"src","theme"),path.join(process.cwd(),"native-base-theme"));printMessage(["NativeBase theme has been copied at "+path.join(process.cwd(),"native-base-theme"),"Here's how to theme your app","","import getTheme from './native-base-theme/components';","export default class ThemeExample extends Component {","render() {"," return ("," "," "," "," ..."," "," "," "," );","}","","Head over to the docs (http://docs.nativebase.io/Customize.html#Customize) for detailed information on customization"],{color:"yellow",borderColor:"green"});}catch(err){console.log("Error: "+err);} //# sourceMappingURL=ejectTheme.js.map \ No newline at end of file diff --git a/dist/ejectTheme.js.map b/dist/ejectTheme.js.map index 13f126ee4..7df4dea0b 100644 --- a/dist/ejectTheme.js.map +++ b/dist/ejectTheme.js.map @@ -1 +1 @@ -{"version":3,"sources":["../ejectTheme.js"],"names":["fs","require","path","printMessage","copySync","join","__dirname","process","cwd","color","borderColor","err","console","log"],"mappings":"AAAA,GAAIA,IAAKC,QAAQ,UAAR,CAAT;AACA,GAAIC,MAAOD,QAAQ,MAAR,CAAX;;AAEA,GAAIE,cAAeF,QAAQ,eAAR,CAAnB;;AAEA,GAAI;AACFD,GAAGI,QAAH;AACEF,KAAKG,IAAL,CAAUC,SAAV,CAAqB,KAArB,CAA4B,OAA5B,CADF;AAEEJ,KAAKG,IAAL,CAAUE,QAAQC,GAAR,EAAV,CAAyB,mBAAzB,CAFF;;AAIAL;AACE;AACE;AACED,KAAKG,IAAL,CAAUE,QAAQC,GAAR,EAAV,CAAyB,mBAAzB,CAFJ;AAGE,8BAHF;AAIE,EAJF;AAKE,wDALF;AAME,uDANF;AAOE,YAPF;AAQE,YARF;AASE,yCATF;AAUE,mBAVF;AAWE,mBAXF;AAYE,eAZF;AAaE,oBAbF;AAcE,oBAdF;AAeE,sBAfF;AAgBE,MAhBF;AAiBE,GAjBF;AAkBE,EAlBF;AAmBE,sHAnBF,CADF;;AAsBE;AACEC,MAAO,QADT;AAEEC,YAAa,OAFf,CAtBF;;;AA2BD,CAAC,MAAOC,GAAP,CAAY;AACZC,QAAQC,GAAR,CAAY,UAAYF,GAAxB;AACD","file":"ejectTheme.js","sourcesContent":["var fs = require(\"fs-extra\");\nvar path = require(\"path\");\n\nvar printMessage = require(\"print-message\");\n\ntry {\n fs.copySync(\n path.join(__dirname, \"src\", \"theme\"),\n path.join(process.cwd(), \"native-base-theme\")\n );\n printMessage(\n [\n \"NativeBase theme has been copied at \" +\n path.join(process.cwd(), \"native-base-theme\"),\n \"Here's how to theme your app\",\n \"\",\n \"import getTheme from './native-base-theme/components';\",\n \"export default class ThemeExample extends Component {\",\n \"render() {\",\n \" return (\",\n \" \",\n \" \",\n \" \",\n \" ...\",\n \" \",\n \" \",\n \" \",\n \" );\",\n \"}\",\n \"\",\n \"Head over to the docs (http://docs.nativebase.io/Customize.html#Customize) for detailed information on customization\"\n ],\n {\n color: \"yellow\",\n borderColor: \"green\"\n }\n );\n} catch (err) {\n console.log(\"Error: \" + err);\n}\n"]} \ No newline at end of file +{"version":3,"sources":["../ejectTheme.js"],"names":["fs","require","path","printMessage","copySync","join","__dirname","process","cwd","color","borderColor","err","console","log"],"mappings":"AAAA,GAAIA,IAAKC,QAAQ,UAAR,CAAT,CACA,GAAIC,MAAOD,QAAQ,MAAR,CAAX,CAEA,GAAIE,cAAeF,QAAQ,eAAR,CAAnB,CAEA,GAAI,CACFD,GAAGI,QAAH,CACEF,KAAKG,IAAL,CAAUC,SAAV,CAAqB,KAArB,CAA4B,OAA5B,CADF,CAEEJ,KAAKG,IAAL,CAAUE,QAAQC,GAAR,EAAV,CAAyB,mBAAzB,CAFF,EAIAL,aACE,CACE,uCACED,KAAKG,IAAL,CAAUE,QAAQC,GAAR,EAAV,CAAyB,mBAAzB,CAFJ,CAGE,8BAHF,CAIE,EAJF,CAKE,wDALF,CAME,uDANF,CAOE,YAPF,CAQE,YARF,CASE,yCATF,CAUE,mBAVF,CAWE,mBAXF,CAYE,eAZF,CAaE,oBAbF,CAcE,oBAdF,CAeE,sBAfF,CAgBE,MAhBF,CAiBE,GAjBF,CAkBE,EAlBF,CAmBE,sHAnBF,CADF,CAsBE,CACEC,MAAO,QADT,CAEEC,YAAa,OAFf,CAtBF,EA2BD,CAAC,MAAOC,GAAP,CAAY,CACZC,QAAQC,GAAR,CAAY,UAAYF,GAAxB,EACD","file":"ejectTheme.js","sourcesContent":["var fs = require(\"fs-extra\");\nvar path = require(\"path\");\n\nvar printMessage = require(\"print-message\");\n\ntry {\n fs.copySync(\n path.join(__dirname, \"src\", \"theme\"),\n path.join(process.cwd(), \"native-base-theme\")\n );\n printMessage(\n [\n \"NativeBase theme has been copied at \" +\n path.join(process.cwd(), \"native-base-theme\"),\n \"Here's how to theme your app\",\n \"\",\n \"import getTheme from './native-base-theme/components';\",\n \"export default class ThemeExample extends Component {\",\n \"render() {\",\n \" return (\",\n \" \",\n \" \",\n \" \",\n \" ...\",\n \" \",\n \" \",\n \" \",\n \" );\",\n \"}\",\n \"\",\n \"Head over to the docs (http://docs.nativebase.io/Customize.html#Customize) for detailed information on customization\"\n ],\n {\n color: \"yellow\",\n borderColor: \"green\"\n }\n );\n} catch (err) {\n console.log(\"Error: \" + err);\n}\n"]} \ No newline at end of file diff --git a/dist/src/basic/Accordion.js b/dist/src/basic/Accordion.js index c42cb0179..3db23d93a 100644 --- a/dist/src/basic/Accordion.js +++ b/dist/src/basic/Accordion.js @@ -1,193 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.Accordion=undefined;var _extends=Object.assign||function(target){for(var i=1;i\n {this.props.title}\n \n \n );\n }\n}\n\nclass DefaultContent extends React.Component {\n render() {\n const variables = this.context.theme\n ? this.context.theme[\"@@shoutem.theme/themeStyle\"].variables\n : variable;\n return (\n \n {this.props.content}\n \n );\n }\n}\n\nclass AccordionSubItem extends React.Component {\n state = {\n fadeAnim: new Animated.Value(0.3)\n };\n componentDidMount() {\n Animated.timing(this.state.fadeAnim, {\n toValue: 1,\n duration: 500\n }).start();\n }\n render() {\n let { fadeAnim } = this.state;\n return (\n \n {this.props.children}\n \n );\n }\n}\n\nclass AccordionItem extends React.Component {\n render() {\n return (\n \n this.props.setSelected(this.props.index)}\n >\n \n {this.props.renderHeader ? (\n this.props.renderHeader(this.props.item.title, this.props.expanded)\n ) : (\n \n )}\n \n \n {this.props.expanded ? (\n \n {this.props.renderContent ? (\n this.props.renderContent(this.props.item.content)\n ) : (\n \n )}\n \n ) : null}\n \n );\n }\n}\n\nexport class Accordion extends React.Component {\n state = { selected: undefined };\n setSelected(index) {\n if (this.state.selected === index) {\n this.setState({ selected: undefined });\n } else {\n this.setState({ selected: index });\n }\n }\n\n componentDidMount() {\n this.setState({ selected: this.props.expanded });\n }\n\n render() {\n const variables = this.context.theme\n ? this.context.theme[\"@@shoutem.theme/themeStyle\"].variables\n : variable;\n return (\n String(index)}\n renderItem={({ item, index }) => (\n \n )}\n {...this.props}\n />\n );\n }\n}\n\nconst styles = StyleSheet.create({\n defaultHeader: {\n flexDirection: \"row\",\n padding: 10,\n justifyContent: \"space-between\",\n alignItems: \"center\"\n }\n});\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Accordion.js"],"names":["DefaultHeader","variables","context","theme","variable","styles","defaultHeader","props","headerStyle","backgroundColor","title","fontSize","expanded","expandedIcon","expandedIconStyle","color","icon","iconStyle","React","Component","DefaultContent","padding","contentStyle","content","AccordionSubItem","state","fadeAnim","Animated","Value","timing","toValue","duration","start","style","opacity","children","AccordionItem","setSelected","index","renderHeader","item","renderContent","Accordion","selected","undefined","setState","dataArray","borderColor","accordionBorderColor","borderWidth","String","bind","StyleSheet","create","flexDirection","justifyContent","alignItems"],"mappings":"61BAAA,4B,2CACA,yCAOA,4BACA,4BACA,qD,q7BAEMA,c,mUACK,CACP,GAAMC,WAAY,K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ADP,CAEE,KAAME,IAFR,CAGE,SAAU,OAAKf,KAAL,CAAWkB,QAAX,GAAwBL,KAHpC,CAIE,MAAOA,KAJT,CAKE,YAAa,OAAKD,WAAL,CAAiBc,IAAjB,CAAsB,MAAtB,CALf,CAME,YAAa,OAAK5C,KAAL,CAAWC,WAN1B,CAOE,aAAc,OAAKD,KAAL,CAAWe,YAP3B,CAQE,aAAc,OAAKf,KAAL,CAAWgC,YAR3B,CASE,cAAe,OAAKhC,KAAL,CAAWkC,aAT5B,CAUE,KAAM,OAAKlC,KAAL,CAAWS,IAVnB,CAWE,UAAW,OAAKT,KAAL,CAAWU,SAXxB,CAYE,aAAc,OAAKV,KAAL,CAAWM,YAZ3B,CAaE,kBAAmB,OAAKN,KAAL,CAAWO,iBAbhC,kDADU,EAXd,EA4BM,KAAKP,KA5BX,oDADF,CAgCD,C,uBAlD4BW,gBAAMC,S,EAqDrC,GAAMd,QAAS+C,wBAAWC,MAAX,CAAkB,CAC/B/C,cAAe,CACbgD,cAAe,KADF,CAEbjC,QAAS,EAFI,CAGbkC,eAAgB,eAHH,CAIbC,WAAY,QAJC,CADgB,CAAlB,CAAf","file":"Accordion.js","sourcesContent":["import React, { Component } from \"react\";\nimport {\n Animated,\n TouchableWithoutFeedback,\n FlatList,\n StyleSheet,\n View\n} from \"react-native\";\nimport { Text } from \"./Text\";\nimport { Icon } from \"./Icon\";\nimport variable from \"../theme/variables/platform\";\n\nclass DefaultHeader extends React.Component {\n render() {\n const variables = this.context.theme\n ? this.context.theme[\"@@shoutem.theme/themeStyle\"].variables\n : variable;\n return (\n \n {this.props.title}\n \n \n );\n }\n}\n\nclass DefaultContent extends React.Component {\n render() {\n const variables = this.context.theme\n ? this.context.theme[\"@@shoutem.theme/themeStyle\"].variables\n : variable;\n return (\n \n {this.props.content}\n \n );\n }\n}\n\nclass AccordionSubItem extends React.Component {\n state = {\n fadeAnim: new Animated.Value(0.3)\n };\n componentDidMount() {\n Animated.timing(this.state.fadeAnim, {\n toValue: 1,\n duration: 500\n }).start();\n }\n render() {\n let { fadeAnim } = this.state;\n return (\n \n {this.props.children}\n \n );\n }\n}\n\nclass AccordionItem extends React.Component {\n render() {\n return (\n \n this.props.setSelected(this.props.index)}\n >\n \n {this.props.renderHeader ? (\n this.props.renderHeader(this.props.item.title, this.props.expanded)\n ) : (\n \n )}\n \n \n {this.props.expanded ? (\n \n {this.props.renderContent ? (\n this.props.renderContent(this.props.item.content)\n ) : (\n \n )}\n \n ) : null}\n \n );\n }\n}\n\nexport class Accordion extends React.Component {\n state = { selected: undefined };\n setSelected(index) {\n if (this.state.selected === index) {\n this.setState({ selected: undefined });\n } else {\n this.setState({ selected: index });\n }\n }\n\n componentDidMount() {\n this.setState({ selected: this.props.expanded });\n }\n\n render() {\n const variables = this.context.theme\n ? this.context.theme[\"@@shoutem.theme/themeStyle\"].variables\n : variable;\n return (\n String(index)}\n renderItem={({ item, index }) => (\n \n )}\n {...this.props}\n />\n );\n }\n}\n\nconst styles = StyleSheet.create({\n defaultHeader: {\n flexDirection: \"row\",\n padding: 10,\n justifyContent: \"space-between\",\n alignItems: \"center\"\n }\n});\n"]} \ No newline at end of file diff --git a/dist/src/basic/Actionsheet.js b/dist/src/basic/Actionsheet.js index 062ed07ac..265b17308 100644 --- a/dist/src/basic/Actionsheet.js +++ b/dist/src/basic/Actionsheet.js @@ -1,174 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.ActionSheetContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i {\n return item.text;\n });\n config.options = filtered;\n ActionSheetIOS.showActionSheetWithOptions(config, callback);\n } else {\n ActionSheetIOS.showActionSheetWithOptions(config, callback);\n }\n } else {\n this.setState({\n items: config.options,\n title: config.title,\n message: config.message,\n destructiveButtonIndex: config.destructiveButtonIndex,\n cancelButtonIndex: config.cancelButtonIndex,\n modalVisible: true,\n callback: callback\n });\n }\n }\n componentDidMount() {\n if (!this.props.autoHide && this.props.duration) {\n console.warn(`It's not recommended to set autoHide false with duration`);\n }\n }\n render() {\n return (\n {\n this.state.callback(this.state.cancelButtonIndex);\n this.setState({ modalVisible: false });\n }}\n >\n {\n this.state.callback(this.state.cancelButtonIndex);\n this.setState({ modalVisible: false });\n }}\n style={{\n backgroundColor: \"rgba(0,0,0,0.4)\",\n flex: 1,\n justifyContent: \"flex-end\"\n }}\n >\n \n {this.state.title ? (\n {this.state.title}\n ) : null}\n String(index)}\n renderItem={({ index, item }) => {\n return typeof this.state.items[0] === \"string\" ? (\n {\n this.state.callback(parseInt(index));\n this.setState({ modalVisible: false });\n }}\n style={{ borderColor: \"transparent\", marginLeft: 14 }}\n >\n {item}\n \n ) : (\n {\n this.state.callback(parseInt(index));\n this.setState({ modalVisible: false });\n }}\n style={{\n borderColor: \"transparent\",\n marginLeft: 14,\n height: 50\n }}\n icon\n >\n \n \n \n \n {item.text}\n \n \n \n );\n }}\n />\n \n \n \n );\n }\n}\n\nActionSheetContainer.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledActionSheetContainer = connectStyle(\n \"NativeBase.ActionSheetContainer\",\n {},\n mapPropsToStyleNames\n)(ActionSheetContainer);\n\nexport { StyledActionSheetContainer as ActionSheetContainer };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Actionsheet.js"],"names":["ActionSheetContainer","props","state","modalVisible","items","config","callback","Platform","OS","options","filtered","map","item","text","ActionSheetIOS","showActionSheetWithOptions","setState","title","message","destructiveButtonIndex","cancelButtonIndex","autoHide","duration","console","warn","backgroundColor","flex","justifyContent","minHeight","height","length","maxHeight","Dimensions","get","padding","elevation","color","marginHorizontal","marginTop","index","String","parseInt","borderColor","marginLeft","icon","iconColor","undefined","paddingLeft","actionsheetInstance","_root","showActionSheet","Component","propTypes","ViewPropTypes","style","PropTypes","oneOfType","object","number","array","StyledActionSheetContainer","mapPropsToStyleNames"],"mappings":"02BAAA,4B,2CACA,qC,mDACA,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\";\nimport PropTypes from \"prop-types\";\nimport {\n View,\n Modal,\n Platform,\n ActionSheetIOS,\n TouchableOpacity,\n ViewPropTypes,\n FlatList,\n Dimensions\n} from \"react-native\";\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport { Text } from \"./Text\";\nimport { Button } from \"./Button\";\nimport { ViewNB } from \"./View\";\nimport { Icon } from \"./Icon\";\nimport { Left } from \"./Left\";\nimport { Right } from \"./Right\";\nimport { Body } from \"./Body\";\nimport { ListItem } from \"./ListItem\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass ActionSheetContainer extends Component {\n constructor(props) {\n super(props);\n this.state = {\n modalVisible: false,\n items: []\n };\n }\n static actionsheetInstance;\n static show(config, callback) {\n this.actionsheetInstance._root.showActionSheet(config, callback);\n }\n showActionSheet(config, callback) {\n if (Platform.OS === \"ios\") {\n if (typeof config.options[0] == \"object\") {\n let options = config.options;\n let filtered = options.map(item => {\n return item.text;\n });\n config.options = filtered;\n ActionSheetIOS.showActionSheetWithOptions(config, callback);\n } else {\n ActionSheetIOS.showActionSheetWithOptions(config, callback);\n }\n } else {\n this.setState({\n items: config.options,\n title: config.title,\n message: config.message,\n destructiveButtonIndex: config.destructiveButtonIndex,\n cancelButtonIndex: config.cancelButtonIndex,\n modalVisible: true,\n callback: callback\n });\n }\n }\n componentDidMount() {\n if (!this.props.autoHide && this.props.duration) {\n console.warn(`It's not recommended to set autoHide false with duration`);\n }\n }\n render() {\n return (\n {\n this.state.callback(this.state.cancelButtonIndex);\n this.setState({ modalVisible: false });\n }}\n >\n {\n this.state.callback(this.state.cancelButtonIndex);\n this.setState({ modalVisible: false });\n }}\n style={{\n backgroundColor: \"rgba(0,0,0,0.4)\",\n flex: 1,\n justifyContent: \"flex-end\"\n }}\n >\n \n {this.state.title ? (\n {this.state.title}\n ) : null}\n String(index)}\n renderItem={({ index, item }) => {\n return typeof this.state.items[0] === \"string\" ? (\n {\n this.state.callback(parseInt(index));\n this.setState({ modalVisible: false });\n }}\n style={{ borderColor: \"transparent\", marginLeft: 14 }}\n >\n {item}\n \n ) : (\n {\n this.state.callback(parseInt(index));\n this.setState({ modalVisible: false });\n }}\n style={{\n borderColor: \"transparent\",\n marginLeft: 14,\n height: 50\n }}\n icon\n >\n \n \n \n \n {item.text}\n \n \n \n );\n }}\n />\n \n \n \n );\n }\n}\n\nActionSheetContainer.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledActionSheetContainer = connectStyle(\n \"NativeBase.ActionSheetContainer\",\n {},\n mapPropsToStyleNames\n)(ActionSheetContainer);\n\nexport { StyledActionSheetContainer as ActionSheetContainer };\n"]} \ No newline at end of file diff --git a/dist/src/basic/Badge.js b/dist/src/basic/Badge.js index 81d6343b8..80fe849c4 100644 --- a/dist/src/basic/Badge.js +++ b/dist/src/basic/Badge.js @@ -1,33 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.Badge=undefined;var _extends=Object.assign||function(target){for(var i=1;i (this._root = c)} {...this.props}>\n {this.props.children}\n \n );\n }\n}\n\nBadge.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledBadge = connectStyle(\"NativeBase.Badge\", {}, mapPropsToStyleNames)(\n Badge\n);\n\nexport { StyledBadge as Badge };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Badge.js"],"names":["Badge","_root","c","props","children","Component","propTypes","ViewPropTypes","style","PropTypes","oneOfType","object","number","array","StyledBadge","mapPropsToStyleNames"],"mappings":"q1BAAA,4B,2CACA,qC,mDACA,yCAEA,iEACA,qD,iDACA,mE,68BAEMA,M,uQACK,iBACP,MACE,+BAAC,iBAAD,WAAM,IAAK,sBAAM,QAAKC,KAAL,CAAaC,CAAnB,EAAX,EAAsC,KAAKC,KAA3C,mDACG,KAAKA,KAAL,CAAWC,QADd,CADF,CAKD,C,mBAPiBC,gB,EAUpBL,MAAMM,SAAN,aACKC,0BADL,EAEEC,MAAOC,oBAAUC,SAAV,CAAoB,CACzBD,oBAAUE,MADe,CAEzBF,oBAAUG,MAFe,CAGzBH,oBAAUI,KAHe,CAApB,CAFT,GASA,GAAMC,aAAc,yCAAa,kBAAb,CAAiC,EAAjC,CAAqCC,8BAArC,EAClBf,KADkB,CAApB,C,QAIwBA,K,CAAfc,W","file":"Badge.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { View, ViewPropTypes } from \"react-native\";\n\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport variables from \"../theme/variables/platform\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass Badge extends Component {\n render() {\n return (\n (this._root = c)} {...this.props}>\n {this.props.children}\n \n );\n }\n}\n\nBadge.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledBadge = connectStyle(\"NativeBase.Badge\", {}, mapPropsToStyleNames)(\n Badge\n);\n\nexport { StyledBadge as Badge };\n"]} \ No newline at end of file diff --git a/dist/src/basic/Base/NativeBaseComponent.js b/dist/src/basic/Base/NativeBaseComponent.js index 033254449..a2f5b3479 100644 --- a/dist/src/basic/Base/NativeBaseComponent.js +++ b/dist/src/basic/Base/NativeBaseComponent.js @@ -1,29 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _createClass=function(){function defineProperties(target,props){for(var i=0;i (this._root = c)} {...this.props} />;\n }\n}\n\nBody.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledBody = connectStyle(\"NativeBase.Body\", {}, mapPropsToStyleNames)(\n Body\n);\n\nexport { StyledBody as Body };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Body.js"],"names":["Body","_root","c","props","Component","propTypes","ViewPropTypes","style","PropTypes","oneOfType","object","number","array","StyledBody","mapPropsToStyleNames"],"mappings":"m1BAAA,4B,2CACA,qC,mDACA,yCAEA,iEACA,mE,68BAEMA,K,iQACK,iBACP,MAAO,+BAAC,iBAAD,WAAM,IAAK,sBAAM,QAAKC,KAAL,CAAaC,CAAnB,EAAX,EAAsC,KAAKC,KAA3C,mDAAP,CACD,C,kBAHgBC,gB,EAMnBJ,KAAKK,SAAL,aACKC,0BADL,EAEEC,MAAOC,oBAAUC,SAAV,CAAoB,CACzBD,oBAAUE,MADe,CAEzBF,oBAAUG,MAFe,CAGzBH,oBAAUI,KAHe,CAApB,CAFT,GASA,GAAMC,YAAa,yCAAa,iBAAb,CAAgC,EAAhC,CAAoCC,8BAApC,EACjBd,IADiB,CAAnB,C,QAIuBA,I,CAAda,U","file":"Body.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { View, ViewPropTypes } from \"react-native\";\n\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass Body extends Component {\n render() {\n return (this._root = c)} {...this.props} />;\n }\n}\n\nBody.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledBody = connectStyle(\"NativeBase.Body\", {}, mapPropsToStyleNames)(\n Body\n);\n\nexport { StyledBody as Body };\n"]} \ No newline at end of file diff --git a/dist/src/basic/Button.js b/dist/src/basic/Button.js index 9c3228514..c4f1be9ea 100644 --- a/dist/src/basic/Button.js +++ b/dist/src/basic/Button.js @@ -1,150 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.Button=undefined;var _jsxFileName="src/basic/Button.js";var _extends=Object.assign||function(target){for(var i=1;i0?this.props.activeOpacity:0.5,__source:{fileName:_jsxFileName,lineNumber:67}}), - - -children)); - - -}else{ -if(this.props.rounded){ -var buttonStyle=_extends({},this.prepareRootProps().style); -var buttonFlex=this.props.full||this.props.block?1:buttonStyle.flex; -return( -_react2.default.createElement(_reactNative.View,{style:[{maxHeight:buttonStyle.height},buttonStyle,{paddingTop:undefined,paddingBottom:undefined}],__source:{fileName:_jsxFileName,lineNumber:82}}, -_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({ -ref:function ref(c){return _this2._root=c;}, -background: -this.props.androidRippleColor? -_reactNative.TouchableNativeFeedback.Ripple(this.props.androidRippleColor,true): -_reactNative.TouchableNativeFeedback.Ripple(variables.androidRippleColor,true)}, - -this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:83}}), - -_react2.default.createElement(_reactNative.View,{style:[styles.childContainer,{paddingTop:buttonStyle.paddingTop,paddingBottom:buttonStyle.paddingBottom,height:buttonStyle.height,flexGrow:buttonFlex}],__source:{fileName:_jsxFileName,lineNumber:92}}, -children)))); - - - - -}else{ -return( -_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({ -ref:function ref(c){return _this2._root=c;}, -onPress:this.props.onPress}, -this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:100}}), - -_react2.default.createElement(_reactNative.View,_extends({},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:105}}),children))); - - -} -} -}}]);return Button;}(_react.Component);Button.contextTypes={theme:_propTypes2.default.object}; - - -Button.propTypes=_extends({}, -_reactNative.TouchableOpacity.propTypes,{ -style:_propTypes2.default.oneOfType([ -_propTypes2.default.object, -_propTypes2.default.number, -_propTypes2.default.array]), - -block:_propTypes2.default.bool, -primary:_propTypes2.default.bool, -transparent:_propTypes2.default.bool, -success:_propTypes2.default.bool, -danger:_propTypes2.default.bool, -warning:_propTypes2.default.bool, -info:_propTypes2.default.bool, -bordered:_propTypes2.default.bool, -disabled:_propTypes2.default.bool, -rounded:_propTypes2.default.bool, -large:_propTypes2.default.bool, -small:_propTypes2.default.bool, -active:_propTypes2.default.bool}); - - -var styles=_reactNative.StyleSheet.create({ -childContainer:{ -flexShrink:1, -flexDirection:'row', -justifyContent:'center', -alignItems:'center'}}); - - - -var StyledButton=(0,_nativeBaseShoutemTheme.connectStyle)( -"NativeBase.Button", -{}, -_mapPropsToStyleNames2.default)( -Button);exports. -Button=StyledButton; +Object.defineProperty(exports,"__esModule",{value:true});exports.Button=undefined;var _jsxFileName="src/basic/Button.js";var _extends=Object.assign||function(target){for(var i=1;i0?this.props.activeOpacity:0.5,__source:{fileName:_jsxFileName,lineNumber:67}}),children);}else{if(this.props.rounded){var buttonStyle=_extends({},this.prepareRootProps().style);var buttonFlex=this.props.full||this.props.block?1:buttonStyle.flex;return _react2.default.createElement(_reactNative.View,{style:[{maxHeight:buttonStyle.height},buttonStyle,{paddingTop:undefined,paddingBottom:undefined}],__source:{fileName:_jsxFileName,lineNumber:82}},_react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({ref:function ref(c){return _this2._root=c;},background:this.props.androidRippleColor?_reactNative.TouchableNativeFeedback.Ripple(this.props.androidRippleColor,true):_reactNative.TouchableNativeFeedback.Ripple(variables.androidRippleColor,true)},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:83}}),_react2.default.createElement(_reactNative.View,{style:[styles.childContainer,{paddingTop:buttonStyle.paddingTop,paddingBottom:buttonStyle.paddingBottom,height:buttonStyle.height,flexGrow:buttonFlex}],__source:{fileName:_jsxFileName,lineNumber:92}},children)));}else{return _react2.default.createElement(_reactNative.TouchableNativeFeedback,_extends({ref:function ref(c){return _this2._root=c;},onPress:this.props.onPress},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:100}}),_react2.default.createElement(_reactNative.View,_extends({},this.prepareRootProps(),{__source:{fileName:_jsxFileName,lineNumber:105}}),children));}}}}]);return Button;}(_react.Component);Button.contextTypes={theme:_propTypes2.default.object};Button.propTypes=_extends({},_reactNative.TouchableOpacity.propTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),block:_propTypes2.default.bool,primary:_propTypes2.default.bool,transparent:_propTypes2.default.bool,success:_propTypes2.default.bool,danger:_propTypes2.default.bool,warning:_propTypes2.default.bool,info:_propTypes2.default.bool,bordered:_propTypes2.default.bool,disabled:_propTypes2.default.bool,rounded:_propTypes2.default.bool,large:_propTypes2.default.bool,small:_propTypes2.default.bool,active:_propTypes2.default.bool});var styles=_reactNative.StyleSheet.create({childContainer:{flexShrink:1,flexDirection:'row',justifyContent:'center',alignItems:'center'}});var StyledButton=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Button",{},_mapPropsToStyleNames2.default)(Button);exports.Button=StyledButton; //# sourceMappingURL=Button.js.map \ No newline at end of file diff --git a/dist/src/basic/Button.js.map b/dist/src/basic/Button.js.map index dff74accc..7ff55c8c2 100644 --- a/dist/src/basic/Button.js.map +++ b/dist/src/basic/Button.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../src/basic/Button.js"],"names":["Button","borderedBtn","borderWidth","props","bordered","undefined","borderRadius","rounded","variable","borderRadiusLarge","defaultProps","style","getInitialStyle","variables","context","theme","children","Platform","OS","React","Children","map","child","type","Text","cloneElement","uppercase","btnUppercaseAndroidText","androidRipple","prepareRootProps","_root","c","activeOpacity","buttonStyle","buttonFlex","full","block","flex","maxHeight","height","paddingTop","paddingBottom","androidRippleColor","TouchableNativeFeedback","Ripple","styles","childContainer","flexGrow","onPress","Component","contextTypes","PropTypes","object","propTypes","TouchableOpacity","oneOfType","number","array","bool","primary","transparent","success","danger","warning","info","disabled","large","small","active","StyleSheet","create","flexShrink","flexDirection","justifyContent","alignItems","StyledButton","mapPropsToStyleNames"],"mappings":"u1BAAA,4B;AACA,qC;AACA;;;;;;;AAOA;AACA,uD;AACA;AACA,mD;;AAEA,mE;;AAEMA,M;;;;;AAKc;AAChB,MAAO;AACLC,YAAa;AACXC,YAAa,KAAKC,KAAL,CAAWC,QAAX,CAAsB,CAAtB,CAA0BC,SAD5B;AAEXC;AACE,KAAKH,KAAL,C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,CAFT;;AAOErB,MAAOe,oBAAUO,IAPnB;AAQEC,QAASR,oBAAUO,IARrB;AASEE,YAAaT,oBAAUO,IATzB;AAUEG,QAASV,oBAAUO,IAVrB;AAWEI,OAAQX,oBAAUO,IAXpB;AAYEK,QAASZ,oBAAUO,IAZrB;AAaEM,KAAMb,oBAAUO,IAblB;AAcEtD,SAAU+C,oBAAUO,IAdtB;AAeEO,SAAUd,oBAAUO,IAftB;AAgBEnD,QAAS4C,oBAAUO,IAhBrB;AAiBEQ,MAAOf,oBAAUO,IAjBnB;AAkBES,MAAOhB,oBAAUO,IAlBnB;AAmBEU,OAAQjB,oBAAUO,IAnBpB;;;AAsBA,GAAMb,QAASwB,wBAAWC,MAAX,CAAkB;AAChCxB,eAAgB;AACfyB,WAAY,CADG;AAEfC,cAAe,KAFA;AAGfC,eAAgB,QAHD;AAIfC,WAAY,QAJG,CADgB,CAAlB,CAAf;;;;AASA,GAAMC,cAAe;AACnB,mBADmB;AAEnB,EAFmB;AAGnBC,8BAHmB;AAInB5E,MAJmB,CAArB,C;AAKyBA,M,CAAhB2E,Y","file":"Button.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport {\n TouchableOpacity,\n Platform,\n View,\n TouchableNativeFeedback,\n StyleSheet\n} from \"react-native\";\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport variable from \"./../theme/variables/platform\";\nimport { Text } from \"./Text\";\nimport computeProps from \"../utils/computeProps\";\n\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass Button extends Component {\n static contextTypes = {\n theme: PropTypes.object\n };\n\n getInitialStyle() {\n return {\n borderedBtn: {\n borderWidth: this.props.bordered ? 1 : undefined,\n borderRadius:\n this.props.rounded && this.props.bordered\n ? variable.borderRadiusLarge\n : 2\n }\n };\n }\n\n _root: React$Element;\n\n prepareRootProps() {\n const defaultProps = {\n style: this.getInitialStyle().borderedBtn\n };\n\n return computeProps(this.props, defaultProps);\n }\n render() {\n const variables = this.context.theme\n ? this.context.theme[\"@@shoutem.theme/themeStyle\"].variables\n : variable;\n const children =\n Platform.OS === \"ios\"\n ? this.props.children\n : React.Children.map(\n this.props.children,\n child =>\n child && child.type === Text\n ? React.cloneElement(child, {\n uppercase: variables.btnUppercaseAndroidText,\n ...child.props\n })\n : child\n );\n if (\n Platform.OS === \"ios\" ||\n Platform.OS === \"web\" ||\n variables.androidRipple === false ||\n Platform[\"Version\"] < 21\n ) {\n return (\n (this._root = c)}\n activeOpacity={\n this.props.activeOpacity > 0 ? this.props.activeOpacity : 0.5\n }\n >\n {children}\n \n );\n } else {\n if(this.props.rounded){\n let buttonStyle = { ...this.prepareRootProps().style };\n let buttonFlex = (this.props.full || this.props.block) ? 1 : buttonStyle.flex;\n return (\n \n (this._root = c)}\n background={\n this.props.androidRippleColor\n ? TouchableNativeFeedback.Ripple(this.props.androidRippleColor, true)\n : TouchableNativeFeedback.Ripple(variables.androidRippleColor, true)\n }\n { ...this.prepareRootProps() }\n >\n \n {children}\n \n \n \n ); \n } else {\n return (\n (this._root = c)}\n onPress={this.props.onPress}\n {...this.prepareRootProps()}\n >\n {children}\n \n );\n }\n }\n }\n}\n\nButton.propTypes = {\n ...TouchableOpacity.propTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ]),\n block: PropTypes.bool,\n primary: PropTypes.bool,\n transparent: PropTypes.bool,\n success: PropTypes.bool,\n danger: PropTypes.bool,\n warning: PropTypes.bool,\n info: PropTypes.bool,\n bordered: PropTypes.bool,\n disabled: PropTypes.bool,\n rounded: PropTypes.bool,\n large: PropTypes.bool,\n small: PropTypes.bool,\n active: PropTypes.bool\n};\n\nconst styles = StyleSheet.create({\n\tchildContainer: {\n\t\tflexShrink: 1,\n\t\tflexDirection: 'row',\n\t\tjustifyContent: 'center',\n\t\talignItems: 'center'\n\t},\n});\n\nconst StyledButton = connectStyle(\n \"NativeBase.Button\",\n {},\n mapPropsToStyleNames\n)(Button);\nexport { StyledButton as Button };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Button.js"],"names":["Button","borderedBtn","borderWidth","props","bordered","undefined","borderRadius","rounded","variable","borderRadiusLarge","defaultProps","style","getInitialStyle","variables","context","theme","children","Platform","OS","React","Children","map","child","type","Text","cloneElement","uppercase","btnUppercaseAndroidText","androidRipple","prepareRootProps","_root","c","activeOpacity","buttonStyle","buttonFlex","full","block","flex","maxHeight","height","paddingTop","paddingBottom","androidRippleColor","TouchableNativeFeedback","Ripple","styles","childContainer","flexGrow","onPress","Component","contextTypes","PropTypes","object","propTypes","TouchableOpacity","oneOfType","number","array","bool","primary","transparent","success","danger","warning","info","disabled","large","small","active","StyleSheet","create","flexShrink","flexDirection","justifyContent","alignItems","StyledButton","mapPropsToStyleNames"],"mappings":"u1BAAA,4B,2CACA,qC,mDACA,yCAOA,iEACA,uD,iDACA,4BACA,mD,yDAEA,mE,68BAEMA,O,+RAKc,CAChB,MAAO,CACLC,YAAa,CACXC,YAAa,KAAKC,KAAL,CAAWC,QAAX,CAAsB,CAAtB,CAA0BC,SAD5B,CAEXC,aACE,KAAKH,KAAL,CAAWI,OAAX,EAAsB,KAAKJ,KAAL,CAAWC,QAAjC,CACII,mBAASC,iBADb,CAEI,CALK,CADR,CAAP,CASD,C,2DAIkB,CACjB,GAAMC,cAAe,CACnBC,MAAO,KAAKC,eAAL,GAAuBX,WADX,CAArB,CAIA,MAAO,2BAAa,KAAKE,KAAlB,CAAyBO,YAAzB,CAAP,CACD,C,uCACQ,iBACP,GAAMG,WAAY,KAAKC,OAAL,CAAaC,KAAb,CACd,KAAKD,OAAL,CAAaC,KAAb,CAAmB,4BAAnB,EAAiDF,SADnC,CAEdL,kBAFJ,CAGA,GAAMQ,UACJC,sBAASC,EAAT,GAAgB,KAAhB,CACI,KAAKf,KAAL,CAAWa,QADf,CAEIG,gBAAMC,QAAN,CAAeC,GAAf,CACE,KAAKlB,KAAL,CAAWa,QADb,CAEE,sBACEM,QAAS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G,CADgB,CAAlB,CAAf,CASA,GAAMC,cAAe,yCACnB,mBADmB,CAEnB,EAFmB,CAGnBC,8BAHmB,EAInB5E,MAJmB,CAArB,C,QAKyBA,M,CAAhB2E,Y","file":"Button.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport {\n TouchableOpacity,\n Platform,\n View,\n TouchableNativeFeedback,\n StyleSheet\n} from \"react-native\";\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport variable from \"./../theme/variables/platform\";\nimport { Text } from \"./Text\";\nimport computeProps from \"../utils/computeProps\";\n\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass Button extends Component {\n static contextTypes = {\n theme: PropTypes.object\n };\n\n getInitialStyle() {\n return {\n borderedBtn: {\n borderWidth: this.props.bordered ? 1 : undefined,\n borderRadius:\n this.props.rounded && this.props.bordered\n ? variable.borderRadiusLarge\n : 2\n }\n };\n }\n\n _root: React$Element;\n\n prepareRootProps() {\n const defaultProps = {\n style: this.getInitialStyle().borderedBtn\n };\n\n return computeProps(this.props, defaultProps);\n }\n render() {\n const variables = this.context.theme\n ? this.context.theme[\"@@shoutem.theme/themeStyle\"].variables\n : variable;\n const children =\n Platform.OS === \"ios\"\n ? this.props.children\n : React.Children.map(\n this.props.children,\n child =>\n child && child.type === Text\n ? React.cloneElement(child, {\n uppercase: variables.btnUppercaseAndroidText,\n ...child.props\n })\n : child\n );\n if (\n Platform.OS === \"ios\" ||\n Platform.OS === \"web\" ||\n variables.androidRipple === false ||\n Platform[\"Version\"] < 21\n ) {\n return (\n (this._root = c)}\n activeOpacity={\n this.props.activeOpacity > 0 ? this.props.activeOpacity : 0.5\n }\n >\n {children}\n \n );\n } else {\n if(this.props.rounded){\n let buttonStyle = { ...this.prepareRootProps().style };\n let buttonFlex = (this.props.full || this.props.block) ? 1 : buttonStyle.flex;\n return (\n \n (this._root = c)}\n background={\n this.props.androidRippleColor\n ? TouchableNativeFeedback.Ripple(this.props.androidRippleColor, true)\n : TouchableNativeFeedback.Ripple(variables.androidRippleColor, true)\n }\n { ...this.prepareRootProps() }\n >\n \n {children}\n \n \n \n ); \n } else {\n return (\n (this._root = c)}\n onPress={this.props.onPress}\n {...this.prepareRootProps()}\n >\n {children}\n \n );\n }\n }\n }\n}\n\nButton.propTypes = {\n ...TouchableOpacity.propTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ]),\n block: PropTypes.bool,\n primary: PropTypes.bool,\n transparent: PropTypes.bool,\n success: PropTypes.bool,\n danger: PropTypes.bool,\n warning: PropTypes.bool,\n info: PropTypes.bool,\n bordered: PropTypes.bool,\n disabled: PropTypes.bool,\n rounded: PropTypes.bool,\n large: PropTypes.bool,\n small: PropTypes.bool,\n active: PropTypes.bool\n};\n\nconst styles = StyleSheet.create({\n\tchildContainer: {\n\t\tflexShrink: 1,\n\t\tflexDirection: 'row',\n\t\tjustifyContent: 'center',\n\t\talignItems: 'center'\n\t},\n});\n\nconst StyledButton = connectStyle(\n \"NativeBase.Button\",\n {},\n mapPropsToStyleNames\n)(Button);\nexport { StyledButton as Button };\n"]} \ No newline at end of file diff --git a/dist/src/basic/Card.js b/dist/src/basic/Card.js index 7f0640f1b..8a0cf5048 100644 --- a/dist/src/basic/Card.js +++ b/dist/src/basic/Card.js @@ -1,48 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.Card=undefined;var _extends=Object.assign||function(target){for(var i=1;i r1 !== r2\n });\n const dataSource = ds.cloneWithRows(this.props.dataArray);\n return (\n \n );\n }\n return (\n (this._root = c)} {...this.props}>\n {this.props.children}\n \n );\n }\n}\n\nCard.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ]),\n dataArray: PropTypes.array,\n renderRow: PropTypes.func\n};\n\nconst StyledCard = connectStyle(\"NativeBase.Card\", {}, mapPropsToStyleNames)(\n Card\n);\n\nexport { StyledCard as Card };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Card.js"],"names":["Card","props","dataArray","renderRow","ds","ListView","DataSource","rowHasChanged","r1","r2","dataSource","cloneWithRows","_root","c","children","Component","propTypes","ViewPropTypes","style","PropTypes","oneOfType","object","number","array","func","StyledCard","mapPropsToStyleNames"],"mappings":"m1BAAA,4B,2CACA,qC,mDACA,yCAEA,iEACA,mE,68BAEMA,K,iQACK,iBACP,GAAI,KAAKC,KAAL,CAAWC,SAAX,EAAwB,KAAKD,KAAL,CAAWE,SAAvC,CAAkD,CAChD,GAAMC,IAAK,GAAIC,uBAASC,UAAb,CAAwB,CACjCC,cAAe,uBAACC,EAAD,CAAKC,EAAL,QAAYD,MAAOC,EAAnB,EADkB,CAAxB,CAAX,CAGA,GAAMC,YAAaN,GAAGO,aAAH,CAAiB,KAAKV,KAAL,CAAWC,SAA5B,CAAnB,CACA,MACE,+BAAC,qBAAD,aACM,KAAKD,KADX,EAEE,wBAFF,CAGE,WAAYS,UAHd,CAIE,UAAW,KAAKT,KAAL,CAAWE,SAJxB,kDADF,CAQD,CACD,MACE,+BAAC,iBAAD,WAAM,IAAK,sBAAM,QAAKS,KAAL,CAAaC,CAAnB,EAAX,EAAsC,KAAKZ,KAA3C,mDACG,KAAKA,KAAL,CAAWa,QADd,CADF,CAKD,C,kBArBgBC,gB,EAwBnBf,KAAKgB,SAAL,aACKC,0BADL,EAEEC,MAAOC,oBAAUC,SAAV,CAAoB,CACzBD,oBAAUE,MADe,CAEzBF,oBAAUG,MAFe,CAGzBH,oBAAUI,KAHe,CAApB,CAFT,CAOErB,UAAWiB,oBAAUI,KAPvB,CAQEpB,UAAWgB,oBAAUK,IARvB,GAWA,GAAMC,YAAa,yCAAa,iBAAb,CAAgC,EAAhC,CAAoCC,8BAApC,EACjB1B,IADiB,CAAnB,C,QAIuBA,I,CAAdyB,U","file":"Card.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { View, ListView, ViewPropTypes } from \"react-native\";\n\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass Card extends Component {\n render() {\n if (this.props.dataArray && this.props.renderRow) {\n const ds = new ListView.DataSource({\n rowHasChanged: (r1, r2) => r1 !== r2\n });\n const dataSource = ds.cloneWithRows(this.props.dataArray);\n return (\n \n );\n }\n return (\n (this._root = c)} {...this.props}>\n {this.props.children}\n \n );\n }\n}\n\nCard.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ]),\n dataArray: PropTypes.array,\n renderRow: PropTypes.func\n};\n\nconst StyledCard = connectStyle(\"NativeBase.Card\", {}, mapPropsToStyleNames)(\n Card\n);\n\nexport { StyledCard as Card };\n"]} \ No newline at end of file diff --git a/dist/src/basic/CardItem.js b/dist/src/basic/CardItem.js index 3c6b8a446..921f67815 100644 --- a/dist/src/basic/CardItem.js +++ b/dist/src/basic/CardItem.js @@ -1,42 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.CardItem=undefined;var _extends=Object.assign||function(target){for(var i=1;i (this._root = c)}\n\t\t\t\t\tactiveOpacity={0.2}\n\t\t\t\t\t{...this.props}\n\t\t\t\t>\n\t\t\t\t\t{this.props.children}\n\t\t\t\t\n\t\t\t);\n\t\t} else {\n\t\t\treturn (\n\t\t\t\t (this._root = c)} {...this.props}>\n\t\t\t\t\t{this.props.children}\n\t\t\t\t\n\t\t\t);\n\t\t}\n\t}\n}\n\nCardItem.propTypes = {\n\t...TouchableOpacity.propTypes,\n\tstyle: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),\n\theader: PropTypes.bool,\n\tcardBody: PropTypes.bool,\n\tfooter: PropTypes.bool,\n\tbutton: PropTypes.bool,\n};\n\nconst StyledCardItem = connectStyle(\"NativeBase.CardItem\", {}, mapPropsToStyleNames)(CardItem);\n\nexport { StyledCardItem as CardItem };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/CardItem.js"],"names":["CardItem","props","button","_root","c","children","Component","propTypes","TouchableOpacity","style","PropTypes","oneOfType","object","number","array","header","bool","cardBody","footer","StyledCardItem","mapPropsToStyleNames"],"mappings":"21BAAA,4B,2CACA,qC,mDACA,yCAEA,iEACA,mE,68BAEMA,S,yRACI,iBACR,GAAI,KAAKC,KAAL,CAAWC,MAAf,CAAuB,CACtB,MACC,+BAAC,6BAAD,WACC,IAAK,sBAAM,QAAKC,KAAL,CAAaC,CAAnB,EADN,CAEC,cAAe,GAFhB,EAGK,KAAKH,KAHV,mDAKE,KAAKA,KAAL,CAAWI,QALb,CADD,CASA,CAVD,IAUO,CACN,MACC,+BAAC,iBAAD,WAAM,IAAK,sBAAM,QAAKF,KAAL,CAAaC,CAAnB,EAAX,EAAsC,KAAKH,KAA3C,mDACE,KAAKA,KAAL,CAAWI,QADb,CADD,CAKA,CACD,C,sBAnBqBC,gB,EAsBvBN,SAASO,SAAT,aACIC,8BAAiBD,SADrB,EAECE,MAAOC,oBAAUC,SAAV,CAAoB,CAACD,oBAAUE,MAAX,CAAmBF,oBAAUG,MAA7B,CAAqCH,oBAAUI,KAA/C,CAApB,CAFR,CAGCC,OAAQL,oBAAUM,IAHnB,CAICC,SAAUP,oBAAUM,IAJrB,CAKCE,OAAQR,oBAAUM,IALnB,CAMCd,OAAQQ,oBAAUM,IANnB,GASA,GAAMG,gBAAiB,yCAAa,qBAAb,CAAoC,EAApC,CAAwCC,8BAAxC,EAA8DpB,QAA9D,CAAvB,C,QAE2BA,Q,CAAlBmB,c","file":"CardItem.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { TouchableOpacity, View } from \"react-native\";\n\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass CardItem extends Component {\n\trender() {\n\t\tif (this.props.button) {\n\t\t\treturn (\n\t\t\t\t (this._root = c)}\n\t\t\t\t\tactiveOpacity={0.2}\n\t\t\t\t\t{...this.props}\n\t\t\t\t>\n\t\t\t\t\t{this.props.children}\n\t\t\t\t\n\t\t\t);\n\t\t} else {\n\t\t\treturn (\n\t\t\t\t (this._root = c)} {...this.props}>\n\t\t\t\t\t{this.props.children}\n\t\t\t\t\n\t\t\t);\n\t\t}\n\t}\n}\n\nCardItem.propTypes = {\n\t...TouchableOpacity.propTypes,\n\tstyle: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),\n\theader: PropTypes.bool,\n\tcardBody: PropTypes.bool,\n\tfooter: PropTypes.bool,\n\tbutton: PropTypes.bool,\n};\n\nconst StyledCardItem = connectStyle(\"NativeBase.CardItem\", {}, mapPropsToStyleNames)(CardItem);\n\nexport { StyledCardItem as CardItem };\n"]} \ No newline at end of file diff --git a/dist/src/basic/Checkbox.js b/dist/src/basic/Checkbox.js index 5ccd71c34..6f7d12da0 100644 --- a/dist/src/basic/Checkbox.js +++ b/dist/src/basic/Checkbox.js @@ -1,64 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.CheckBox=undefined;var _extends=Object.assign||function(target){for(var i=1;i (this._root = c)} {...this.prepareRootProps(variables)}>\n\t\t\t\t\n\t\t\t\n\t\t);\n\t}\n}\n\nCheckBox.propTypes = {\n\t...TouchableOpacity.propTypes,\n\tstyle: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),\n\tchecked: PropTypes.bool,\n\tonPress: PropTypes.func,\n};\n\nconst StyledCheckBox = connectStyle(\"NativeBase.CheckBox\", {}, mapPropsToStyleNames)(CheckBox);\n\nexport { StyledCheckBox as CheckBox };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Checkbox.js"],"names":["CheckBox","variables","checkStyle","borderColor","props","color","checkboxBgColor","backgroundColor","checked","defaultProps","style","getInitialStyle","context","theme","variable","platformStyle","platform","_root","c","prepareRootProps","checkboxTickColor","fontSize","CheckboxFontSize","lineHeight","CheckboxIconSize","Component","contextTypes","PropTypes","object","propTypes","TouchableOpacity","oneOfType","number","array","bool","onPress","func","StyledCheckBox","mapPropsToStyleNames"],"mappings":"21BAAA,4B,2CACA,qC,mDACA,yCACA,4D,iDACA,iEACA,mE,yEACA,qD,iDACA,8B,6CACA,mD,67BAEMA,S,0SAKWC,S,CAAW,CAC1B,MAAO,CACNC,WAAY,CACXC,YAAa,KAAKC,KAAL,CAAWC,KAAX,CAAmB,KAAKD,KAAL,CAAWC,KAA9B,CAAsCJ,UAAUK,eADlD,CAEXC,gBACC,KAAKH,KAAL,CAAWI,OAAX,GAAuB,IAAvB,CACG,KAAKJ,KAAL,CAAWC,KAAX,CAAmB,KAAKD,KAAL,CAAWC,KAA9B,CAAsCJ,UAAUK,eADnD,CAEG,aALO,CADN,CAAP,CASA,C,0DAEgBL,S,CAAW,CAC3B,GAAMQ,cAAe,CACpBC,MAAO,KAAKC,eAAL,CAAqBV,SAArB,EAAgCC,UADnB,CAArB,CAIA,MAAO,2BAAa,KAAKE,KAAlB,CAAyBK,YAAzB,CAAP,CACA,C,uCACQ,iBACR,GAAMR,WAAY,KAAKW,OAAL,CAAaC,KAAb,CAAqB,KAAKD,OAAL,CAAaC,KAAb,CAAmB,4BAAnB,EAAiDZ,SAAtE,CAAkFa,kBAApG,CACA,GAAMC,eAAgBd,UAAUc,aAAhC,CACA,GAAMC,UAAWf,UAAUe,QAA3B,CACA,MACC,+BAAC,6BAAD,WAAkB,IAAK,sBAAM,QAAKC,KAAL,CAAaC,CAAnB,EAAvB,EAAkD,KAAKC,gBAAL,CAAsBlB,SAAtB,CAAlD,mDACC,8BAAC,kBAAD,EACC,MAAO,CACNI,MAAO,KAAKD,KAAL,CAAWI,OAAX,GAAuB,IAAvB,CAA8BP,UAAUmB,iBAAxC,CAA4D,aAD7D,CAENC,SAAUpB,UAAUqB,gBAFd,CAGNC,WAAYtB,UAAUuB,gBAHhB,CADR,CAMC,KAAMR,WAAa,KAAb,EAAsBD,gBAAkB,UAAxC,CAAqD,uBAArD,CAA+E,cANtF,iDADD,CADD,CAYA,C,sBAxCqBU,gB,EAAjBzB,Q,CACE0B,Y,CAAe,CACrBb,MAAOc,oBAAUC,MADI,C,CA0CvB5B,SAAS6B,SAAT,aACIC,8BAAiBD,SADrB,EAECnB,MAAOiB,oBAAUI,SAAV,CAAoB,CAACJ,oBAAUC,MAAX,CAAmBD,oBAAUK,MAA7B,CAAqCL,oBAAUM,KAA/C,CAApB,CAFR,CAGCzB,QAASmB,oBAAUO,IAHpB,CAICC,QAASR,oBAAUS,IAJpB,GAOA,GAAMC,gBAAiB,yCAAa,qBAAb,CAAoC,EAApC,CAAwCC,8BAAxC,EAA8DtC,QAA9D,CAAvB,C,QAE2BA,Q,CAAlBqC,c","file":"Checkbox.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { TouchableOpacity, Platform } from \"react-native\";\nimport IconNB from \"react-native-vector-icons/Ionicons\";\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\nimport variable from \"../theme/variables/platform\";\nimport _ from \"lodash\";\nimport computeProps from \"../utils/computeProps\";\n\nclass CheckBox extends Component {\n\tstatic contextTypes = {\n\t\ttheme: PropTypes.object,\n\t};\n\n\tgetInitialStyle(variables) {\n\t\treturn {\n\t\t\tcheckStyle: {\n\t\t\t\tborderColor: this.props.color ? this.props.color : variables.checkboxBgColor,\n\t\t\t\tbackgroundColor:\n\t\t\t\t\tthis.props.checked === true\n\t\t\t\t\t\t? this.props.color ? this.props.color : variables.checkboxBgColor\n\t\t\t\t\t\t: \"transparent\",\n\t\t\t},\n\t\t};\n\t}\n\n\tprepareRootProps(variables) {\n\t\tconst defaultProps = {\n\t\t\tstyle: this.getInitialStyle(variables).checkStyle,\n\t\t};\n\n\t\treturn computeProps(this.props, defaultProps);\n\t}\n\trender() {\n\t\tconst variables = this.context.theme ? this.context.theme[\"@@shoutem.theme/themeStyle\"].variables : variable;\n\t\tconst platformStyle = variables.platformStyle;\n\t\tconst platform = variables.platform;\n\t\treturn (\n\t\t\t (this._root = c)} {...this.prepareRootProps(variables)}>\n\t\t\t\t\n\t\t\t\n\t\t);\n\t}\n}\n\nCheckBox.propTypes = {\n\t...TouchableOpacity.propTypes,\n\tstyle: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),\n\tchecked: PropTypes.bool,\n\tonPress: PropTypes.func,\n};\n\nconst StyledCheckBox = connectStyle(\"NativeBase.CheckBox\", {}, mapPropsToStyleNames)(CheckBox);\n\nexport { StyledCheckBox as CheckBox };\n"]} \ No newline at end of file diff --git a/dist/src/basic/Container.js b/dist/src/basic/Container.js index 265cb135b..f4a3f8391 100644 --- a/dist/src/basic/Container.js +++ b/dist/src/basic/Container.js @@ -1,30 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.Container=undefined;var _extends=Object.assign||function(target){for(var i=1;i (this._root = c)} {...this.props}>\n\t\t\t\t{this.props.children}\n\t\t\t\n\t\t);\n\t}\n}\n\nContainer.propTypes = {\n\t...ViewPropTypes,\n\tstyle: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),\n};\n\nconst StyledContainer = connectStyle(\"NativeBase.Container\", {}, mapPropsToStyleNames)(Container);\n\nexport { StyledContainer as Container };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Container.js"],"names":["Container","_root","c","props","children","Component","propTypes","ViewPropTypes","style","PropTypes","oneOfType","object","number","array","StyledContainer","mapPropsToStyleNames"],"mappings":"61BAAA,4B,2CACA,qC,mDACA,yCACA,+BAEA,iEACA,mE,yEACA,gDACA,0CACA,4B,o4BAEMA,U,+RACI,iBACR,MACC,+BAAC,iBAAD,WAAM,IAAK,sBAAM,QAAKC,KAAL,CAAaC,CAAnB,EAAX,EAAsC,KAAKC,KAA3C,mDACE,KAAKA,KAAL,CAAWC,QADb,CADD,CAKA,C,uBAPsBC,gB,EAUxBL,UAAUM,SAAV,aACIC,oBADJ,EAECC,MAAOC,oBAAUC,SAAV,CAAoB,CAACD,oBAAUE,MAAX,CAAmBF,oBAAUG,MAA7B,CAAqCH,oBAAUI,KAA/C,CAApB,CAFR,GAKA,GAAMC,iBAAkB,yCAAa,sBAAb,CAAqC,EAArC,CAAyCC,8BAAzC,EAA+Df,SAA/D,CAAxB,C,QAE4BA,S,CAAnBc,e","file":"Container.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { View } from \"react-native\";\nimport { ViewPropTypes } from \"../utils\";\n\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\nimport { ToastContainer as Toast } from \"./ToastContainer\";\nimport { ActionSheetContainer as ActionSheet } from \"./Actionsheet\";\nimport { Text } from \"./Text\";\n\nclass Container extends Component {\n\trender() {\n\t\treturn (\n\t\t\t (this._root = c)} {...this.props}>\n\t\t\t\t{this.props.children}\n\t\t\t\n\t\t);\n\t}\n}\n\nContainer.propTypes = {\n\t...ViewPropTypes,\n\tstyle: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),\n};\n\nconst StyledContainer = connectStyle(\"NativeBase.Container\", {}, mapPropsToStyleNames)(Container);\n\nexport { StyledContainer as Container };\n"]} \ No newline at end of file diff --git a/dist/src/basic/Content.js b/dist/src/basic/Content.js index c06fa8454..2e9b5ac20 100644 --- a/dist/src/basic/Content.js +++ b/dist/src/basic/Content.js @@ -1,167 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.Content=undefined;var _extends=Object.assign||function(target){for(var i=1;i=maxComp)this.setState({orientation:"landscape"});else -{ -this.setState({orientation:"portrait"}); -} -}},{key:"calculateLeft",value:function calculateLeft( - -mode,inSet){ -var inset=null; -if(inSet!==undefined){ -inset=inSet; -}else{ -inset=_platform2.default.Inset; -} -var InsetValues=mode==="portrait"?inset.portrait:inset.landscape; -var leftPadder=null; -if(this.props.style[1]!==undefined){ -if( -this.props.style[1].padding!==undefined|| -this.props.style[1].paddingLeft!==undefined) -{ -leftPadder= -(this.props.style[1].paddingLeft? -this.props.style[1].paddingLeft: -this.props.style[1].padding)+InsetValues.leftInset; -} -}else if( -this.props.style.padding!==undefined|| -this.props.style.paddingLeft!==undefined) -{ -leftPadder= -(this.props.style.paddingLeft? -this.props.style.paddingLeft: -this.props.style.padding)+InsetValues.leftInset; -}else{ -leftPadder=InsetValues.leftInset; -} -return leftPadder; -}},{key:"calculateRight",value:function calculateRight( -mode,inSet){ -var inset=null; -if(inSet!==undefined){ -inset=inSet; -}else{ -inset=_platform2.default.Inset; -} -var InsetValues=mode==="portrait"?inset.portrait:inset.landscape; -var rightPadder=null; -if(this.props.style[1]!==undefined){ -if( -this.props.style[1].padding!==undefined|| -this.props.style[1].paddingRight!==undefined) -{ -rightPadder= -(this.props.style[1].paddingRight? -this.props.style[1].paddingRight: -this.props.style[1].padding)+InsetValues.rightInset; -} -}else if( -this.props.style.padding!==undefined|| -this.props.style.paddingRight!==undefined) -{ -rightPadder= -(this.props.style.paddingRight? -this.props.style.paddingRight: -this.props.style.padding)+InsetValues.rightInset; -}else{ -rightPadder=InsetValues.rightInset; -} -return rightPadder; -}},{key:"render",value:function render() -{var _this2=this; -var variables=this.context.theme? -this.context.theme["@@shoutem.theme/themeStyle"].variables: -_platform2.default; -return _platform2.default.isIphoneX? -_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({ -automaticallyAdjustContentInsets:false, -resetScrollToCoords: -this.props.disableKBDismissScroll?null:{x:0,y:0}, - -keyboardShouldPersistTaps: -this.props.keyboardShouldPersistTaps? -this.props.keyboardShouldPersistTaps: -"handled", - -ref:function ref(c){ -_this2._scrollview=c; -_this2._root=c; -}}, -this.props,{ -onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);}, -style:[ -this.props.style, -{ -paddingLeft:this.calculateLeft( -this.state.orientation, -variables.Inset)}], - - - -contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:95}}), - -this.props.children): - - -_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({ -automaticallyAdjustContentInsets:false, -resetScrollToCoords: -this.props.disableKBDismissScroll?null:{x:0,y:0}, - -keyboardShouldPersistTaps: -this.props.keyboardShouldPersistTaps? -this.props.keyboardShouldPersistTaps: -"handled", - -ref:function ref(c){ -_this2._scrollview=c; -_this2._root=c; -}}, -this.props,{ -contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:125}}), - -this.props.children); - - -}}]);return Content;}(_react.Component);Content.contextTypes={theme:_propTypes2.default.object}; - - -Content.propTypes={ -style:_propTypes2.default.oneOfType([ -_propTypes2.default.object, -_propTypes2.default.number, -_propTypes2.default.array]), - -padder:_propTypes2.default.bool, -disableKBDismissScroll:_propTypes2.default.bool, -enableResetScrollToCoords:_propTypes2.default.bool, -keyboardShouldPersistTaps:_propTypes2.default.string}; - - -var StyledContent=(0,_nativeBaseShoutemTheme.connectStyle)( -"NativeBase.Content", -{}, -_mapPropsToStyleNames2.default)( -Content);exports. - -Content=StyledContent; +Object.defineProperty(exports,"__esModule",{value:true});exports.Content=undefined;var _extends=Object.assign||function(target){for(var i=1;i=maxComp)this.setState({orientation:"landscape"});else{this.setState({orientation:"portrait"});}}},{key:"calculateLeft",value:function calculateLeft(mode,inSet){var inset=null;if(inSet!==undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var leftPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingLeft!==undefined){leftPadder=(this.props.style[1].paddingLeft?this.props.style[1].paddingLeft:this.props.style[1].padding)+InsetValues.leftInset;}}else if(this.props.style.padding!==undefined||this.props.style.paddingLeft!==undefined){leftPadder=(this.props.style.paddingLeft?this.props.style.paddingLeft:this.props.style.padding)+InsetValues.leftInset;}else{leftPadder=InsetValues.leftInset;}return leftPadder;}},{key:"calculateRight",value:function calculateRight(mode,inSet){var inset=null;if(inSet!==undefined){inset=inSet;}else{inset=_platform2.default.Inset;}var InsetValues=mode==="portrait"?inset.portrait:inset.landscape;var rightPadder=null;if(this.props.style[1]!==undefined){if(this.props.style[1].padding!==undefined||this.props.style[1].paddingRight!==undefined){rightPadder=(this.props.style[1].paddingRight?this.props.style[1].paddingRight:this.props.style[1].padding)+InsetValues.rightInset;}}else if(this.props.style.padding!==undefined||this.props.style.paddingRight!==undefined){rightPadder=(this.props.style.paddingRight?this.props.style.paddingRight:this.props.style.padding)+InsetValues.rightInset;}else{rightPadder=InsetValues.rightInset;}return rightPadder;}},{key:"render",value:function render(){var _this2=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;return _platform2.default.isIphoneX?_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({automaticallyAdjustContentInsets:false,resetScrollToCoords:this.props.disableKBDismissScroll?null:{x:0,y:0},keyboardShouldPersistTaps:this.props.keyboardShouldPersistTaps?this.props.keyboardShouldPersistTaps:"handled",ref:function ref(c){_this2._scrollview=c;_this2._root=c;}},this.props,{onLayout:function onLayout(e){return _this2.layoutChange(e.nativeEvent.layout);},style:[this.props.style,{paddingLeft:this.calculateLeft(this.state.orientation,variables.Inset)}],contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:95}}),this.props.children):_react2.default.createElement(_reactNativeKeyboardAwareScrollView.KeyboardAwareScrollView,_extends({automaticallyAdjustContentInsets:false,resetScrollToCoords:this.props.disableKBDismissScroll?null:{x:0,y:0},keyboardShouldPersistTaps:this.props.keyboardShouldPersistTaps?this.props.keyboardShouldPersistTaps:"handled",ref:function ref(c){_this2._scrollview=c;_this2._root=c;}},this.props,{contentContainerStyle:[{padding:this.props.padder?variables.contentPadding:undefined},this.props.contentContainerStyle],__source:{fileName:_jsxFileName,lineNumber:125}}),this.props.children);}}]);return Content;}(_react.Component);Content.contextTypes={theme:_propTypes2.default.object};Content.propTypes={style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),padder:_propTypes2.default.bool,disableKBDismissScroll:_propTypes2.default.bool,enableResetScrollToCoords:_propTypes2.default.bool,keyboardShouldPersistTaps:_propTypes2.default.string};var StyledContent=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.Content",{},_mapPropsToStyleNames2.default)(Content);exports.Content=StyledContent; //# sourceMappingURL=Content.js.map \ No newline at end of file diff --git a/dist/src/basic/Content.js.map b/dist/src/basic/Content.js.map index c5d2b68fa..bdb08a349 100644 --- a/dist/src/basic/Content.js.map +++ b/dist/src/basic/Content.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../src/basic/Content.js"],"names":["Content","props","state","orientation","val","maxComp","Math","max","variable","deviceWidth","deviceHeight","width","setState","mode","inSet","inset","undefined","Inset","InsetValues","portrait","landscape","leftPadder","style","padding","paddingLeft","leftInset","rightPadder","paddingRight","rightInset","variables","context","theme","isIphoneX","disableKBDismissScroll","x","y","keyboardShouldPersistTaps","_scrollview","c","_root","layoutChange","e","nativeEvent","layout","calculateLeft","padder","contentPadding","contentContainerStyle","children","Component","contextTypes","PropTypes","object","propTypes","oneOfType","number","array","bool","enableResetScrollToCoords","string","StyledContent","mapPropsToStyleNames"],"mappings":"y1BAAA,4B;AACA,qC;AACA;AACA;AACA,qD;AACA,mE;;AAEMA,O;;;;AAIJ,iBAAYC,KAAZ,CAAmB;AACXA,KADW;AAEjB,MAAKC,KAAL,CAAa;AACXC,YAAa,UADF,CAAb,CAFiB;;AAKlB,C;AACYC,G,CAAK;AAChB,GAAIC,SAAUC,KAAKC,GAAL,CAASC,mBAASC,WAAlB,CAA+BD,mBAASE,YAAxC,CAAd;AACA,GAAIN,IAA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D,CAbH;AAcA,KAAKrC,KAdL;AAeJ,sBAAuB,CAAC,CAAEsB,QAAS,KAAKtB,KAAL,CAAW4C,MAAX,CAAoBhB,UAAUiB,cAA9B,CAA+C9B,SAA1D,CAAD,CAAwE,KAAKf,KAAL,CAAW8C,qBAAnF,CAfnB;;AAiBG,KAAK9C,KAAL,CAAW+C,QAjBd,CA/BF;;;AAmDD,C,qBAzImBC,gB,EAAhBjD,O,CACGkD,Y,CAAe,CACpBnB,MAAOoB,oBAAUC,MADG,C;;;AA2IxBpD,QAAQqD,SAAR,CAAoB;AAClB/B,MAAO6B,oBAAUG,SAAV,CAAoB;AACzBH,oBAAUC,MADe;AAEzBD,oBAAUI,MAFe;AAGzBJ,oBAAUK,KAHe,CAApB,CADW;;AAMlBX,OAAQM,oBAAUM,IANA;AAOlBxB,uBAAwBkB,oBAAUM,IAPhB;AAQlBC,0BAA2BP,oBAAUM,IARnB;AASlBrB,0BAA2Be,oBAAUQ,MATnB,CAApB;;;AAYA,GAAMC,eAAgB;AACpB,oBADoB;AAEpB,EAFoB;AAGpBC,8BAHoB;AAIpB7D,OAJoB,CAAtB,C;;AAM0BA,O,CAAjB4D,a","file":"Content.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { KeyboardAwareScrollView } from \"react-native-keyboard-aware-scroll-view\";\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport variable from \"../theme/variables/platform\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass Content extends Component {\n static contextTypes = {\n theme: PropTypes.object\n };\n constructor(props) {\n super(props);\n this.state = {\n orientation: \"portrait\"\n };\n }\n layoutChange(val) {\n let maxComp = Math.max(variable.deviceWidth, variable.deviceHeight);\n if (val.width >= maxComp) this.setState({ orientation: \"landscape\" });\n else {\n this.setState({ orientation: \"portrait\" });\n }\n }\n\n calculateLeft(mode, inSet) {\n let inset = null;\n if (inSet !== undefined) {\n inset = inSet;\n } else {\n inset = variable.Inset;\n }\n const InsetValues = mode === \"portrait\" ? inset.portrait : inset.landscape;\n let leftPadder = null;\n if (this.props.style[1] !== undefined) {\n if (\n this.props.style[1].padding !== undefined ||\n this.props.style[1].paddingLeft !== undefined\n ) {\n leftPadder =\n (this.props.style[1].paddingLeft\n ? this.props.style[1].paddingLeft\n : this.props.style[1].padding) + InsetValues.leftInset;\n }\n } else if (\n this.props.style.padding !== undefined ||\n this.props.style.paddingLeft !== undefined\n ) {\n leftPadder =\n (this.props.style.paddingLeft\n ? this.props.style.paddingLeft\n : this.props.style.padding) + InsetValues.leftInset;\n } else {\n leftPadder = InsetValues.leftInset;\n }\n return leftPadder;\n }\n calculateRight(mode, inSet) {\n let inset = null;\n if (inSet !== undefined) {\n inset = inSet;\n } else {\n inset = variable.Inset;\n }\n const InsetValues = mode === \"portrait\" ? inset.portrait : inset.landscape;\n let rightPadder = null;\n if (this.props.style[1] !== undefined) {\n if (\n this.props.style[1].padding !== undefined ||\n this.props.style[1].paddingRight !== undefined\n ) {\n rightPadder =\n (this.props.style[1].paddingRight\n ? this.props.style[1].paddingRight\n : this.props.style[1].padding) + InsetValues.rightInset;\n }\n } else if (\n this.props.style.padding !== undefined ||\n this.props.style.paddingRight !== undefined\n ) {\n rightPadder =\n (this.props.style.paddingRight\n ? this.props.style.paddingRight\n : this.props.style.padding) + InsetValues.rightInset;\n } else {\n rightPadder = InsetValues.rightInset;\n }\n return rightPadder;\n }\n render() {\n const variables = this.context.theme\n ? this.context.theme[\"@@shoutem.theme/themeStyle\"].variables\n : variable;\n return variable.isIphoneX ? (\n {\n this._scrollview = c;\n this._root = c;\n\t\t}}\n {...this.props}\n onLayout={e => this.layoutChange(e.nativeEvent.layout)}\n style={[\n this.props.style,\n {\n paddingLeft: this.calculateLeft(\n this.state.orientation,\n variables.Inset\n )\n }\n\t\t]}\n\t\tcontentContainerStyle={[{ padding: this.props.padder ? variables.contentPadding : undefined }, this.props.contentContainerStyle]}\n >\n {this.props.children}\n \n ) : (\n {\n this._scrollview = c;\n this._root = c;\n }}\n\t\t{...this.props}\n\t\tcontentContainerStyle={[{ padding: this.props.padder ? variables.contentPadding : undefined }, this.props.contentContainerStyle]}\n >\n {this.props.children}\n \n );\n }\n}\n\nContent.propTypes = {\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ]),\n padder: PropTypes.bool,\n disableKBDismissScroll: PropTypes.bool,\n enableResetScrollToCoords: PropTypes.bool,\n keyboardShouldPersistTaps: PropTypes.string\n};\n\nconst StyledContent = connectStyle(\n \"NativeBase.Content\",\n {},\n mapPropsToStyleNames\n)(Content);\n\nexport { StyledContent as Content };"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Content.js"],"names":["Content","props","state","orientation","val","maxComp","Math","max","variable","deviceWidth","deviceHeight","width","setState","mode","inSet","inset","undefined","Inset","InsetValues","portrait","landscape","leftPadder","style","padding","paddingLeft","leftInset","rightPadder","paddingRight","rightInset","variables","context","theme","isIphoneX","disableKBDismissScroll","x","y","keyboardShouldPersistTaps","_scrollview","c","_root","layoutChange","e","nativeEvent","layout","calculateLeft","padder","contentPadding","contentContainerStyle","children","Component","contextTypes","PropTypes","object","propTypes","oneOfType","number","array","bool","enableResetScrollToCoords","string","StyledContent","mapPropsToStyleNames"],"mappings":"y1BAAA,4B,2CACA,qC,mDACA,2FACA,iEACA,qD,iDACA,mE,68BAEMA,Q,oDAIJ,iBAAYC,KAAZ,CAAmB,uIACXA,KADW,GAEjB,MAAKC,KAAL,CAAa,CACXC,YAAa,UADF,CAAb,CAFiB,aAKlB,C,sEACYC,G,CAAK,CAChB,GAAIC,SAAUC,KAAKC,GAAL,CAASC,mBAASC,WAAlB,CAA+BD,mBAASE,YAAxC,CAAd,CACA,GAAIN,IAAIO,KAAJ,EAAaN,OAAjB,CAA0B,KAAKO,QAAL,CAAc,CAAET,YAAa,WAAf,CAAd,EAA1B,IACK,CACH,KAAKS,QAAL,CAAc,CAAET,YAAa,UAAf,CAAd,EACD,C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AwE,KAAKf,KAAL,CAAW8C,qBAAnF,CAfnB,mDAiBG,KAAK9C,KAAL,CAAW+C,QAjBd,CA/BF,CAmDD,C,qBAzImBC,gB,EAAhBjD,O,CACGkD,Y,CAAe,CACpBnB,MAAOoB,oBAAUC,MADG,C,CA2IxBpD,QAAQqD,SAAR,CAAoB,CAClB/B,MAAO6B,oBAAUG,SAAV,CAAoB,CACzBH,oBAAUC,MADe,CAEzBD,oBAAUI,MAFe,CAGzBJ,oBAAUK,KAHe,CAApB,CADW,CAMlBX,OAAQM,oBAAUM,IANA,CAOlBxB,uBAAwBkB,oBAAUM,IAPhB,CAQlBC,0BAA2BP,oBAAUM,IARnB,CASlBrB,0BAA2Be,oBAAUQ,MATnB,CAApB,CAYA,GAAMC,eAAgB,yCACpB,oBADoB,CAEpB,EAFoB,CAGpBC,8BAHoB,EAIpB7D,OAJoB,CAAtB,C,QAM0BA,O,CAAjB4D,a","file":"Content.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { KeyboardAwareScrollView } from \"react-native-keyboard-aware-scroll-view\";\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport variable from \"../theme/variables/platform\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass Content extends Component {\n static contextTypes = {\n theme: PropTypes.object\n };\n constructor(props) {\n super(props);\n this.state = {\n orientation: \"portrait\"\n };\n }\n layoutChange(val) {\n let maxComp = Math.max(variable.deviceWidth, variable.deviceHeight);\n if (val.width >= maxComp) this.setState({ orientation: \"landscape\" });\n else {\n this.setState({ orientation: \"portrait\" });\n }\n }\n\n calculateLeft(mode, inSet) {\n let inset = null;\n if (inSet !== undefined) {\n inset = inSet;\n } else {\n inset = variable.Inset;\n }\n const InsetValues = mode === \"portrait\" ? inset.portrait : inset.landscape;\n let leftPadder = null;\n if (this.props.style[1] !== undefined) {\n if (\n this.props.style[1].padding !== undefined ||\n this.props.style[1].paddingLeft !== undefined\n ) {\n leftPadder =\n (this.props.style[1].paddingLeft\n ? this.props.style[1].paddingLeft\n : this.props.style[1].padding) + InsetValues.leftInset;\n }\n } else if (\n this.props.style.padding !== undefined ||\n this.props.style.paddingLeft !== undefined\n ) {\n leftPadder =\n (this.props.style.paddingLeft\n ? this.props.style.paddingLeft\n : this.props.style.padding) + InsetValues.leftInset;\n } else {\n leftPadder = InsetValues.leftInset;\n }\n return leftPadder;\n }\n calculateRight(mode, inSet) {\n let inset = null;\n if (inSet !== undefined) {\n inset = inSet;\n } else {\n inset = variable.Inset;\n }\n const InsetValues = mode === \"portrait\" ? inset.portrait : inset.landscape;\n let rightPadder = null;\n if (this.props.style[1] !== undefined) {\n if (\n this.props.style[1].padding !== undefined ||\n this.props.style[1].paddingRight !== undefined\n ) {\n rightPadder =\n (this.props.style[1].paddingRight\n ? this.props.style[1].paddingRight\n : this.props.style[1].padding) + InsetValues.rightInset;\n }\n } else if (\n this.props.style.padding !== undefined ||\n this.props.style.paddingRight !== undefined\n ) {\n rightPadder =\n (this.props.style.paddingRight\n ? this.props.style.paddingRight\n : this.props.style.padding) + InsetValues.rightInset;\n } else {\n rightPadder = InsetValues.rightInset;\n }\n return rightPadder;\n }\n render() {\n const variables = this.context.theme\n ? this.context.theme[\"@@shoutem.theme/themeStyle\"].variables\n : variable;\n return variable.isIphoneX ? (\n {\n this._scrollview = c;\n this._root = c;\n\t\t}}\n {...this.props}\n onLayout={e => this.layoutChange(e.nativeEvent.layout)}\n style={[\n this.props.style,\n {\n paddingLeft: this.calculateLeft(\n this.state.orientation,\n variables.Inset\n )\n }\n\t\t]}\n\t\tcontentContainerStyle={[{ padding: this.props.padder ? variables.contentPadding : undefined }, this.props.contentContainerStyle]}\n >\n {this.props.children}\n \n ) : (\n {\n this._scrollview = c;\n this._root = c;\n }}\n\t\t{...this.props}\n\t\tcontentContainerStyle={[{ padding: this.props.padder ? variables.contentPadding : undefined }, this.props.contentContainerStyle]}\n >\n {this.props.children}\n \n );\n }\n}\n\nContent.propTypes = {\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ]),\n padder: PropTypes.bool,\n disableKBDismissScroll: PropTypes.bool,\n enableResetScrollToCoords: PropTypes.bool,\n keyboardShouldPersistTaps: PropTypes.string\n};\n\nconst StyledContent = connectStyle(\n \"NativeBase.Content\",\n {},\n mapPropsToStyleNames\n)(Content);\n\nexport { StyledContent as Content };"]} \ No newline at end of file diff --git a/dist/src/basic/DatePicker.js b/dist/src/basic/DatePicker.js index fc7421700..0ddc248c8 100644 --- a/dist/src/basic/DatePicker.js +++ b/dist/src/basic/DatePicker.js @@ -1,118 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.DatePicker=undefined;var _jsxFileName="src/basic/DatePicker.js";var _createClass=function(){function defineProperties(target,props){for(var i=0;i {\n this.setState({\n defaultDate: this.props.defaultDate ? this.props.defaultDate : new Date()\n });\n };\n\n setDate(date) {\n this.setState({ chosenDate: new Date(date) });\n if (this.props.onDateChange) {\n this.props.onDateChange(date);\n }\n }\n\n showDatePicker() {\n if (Platform.OS === \"android\") {\n this.openAndroidDatePicker();\n } else {\n this.setState({ modalVisible: true });\n }\n }\n\n async openAndroidDatePicker() {\n try {\n const newDate = await DatePickerAndroid.open({\n date: this.state.chosenDate\n ? this.state.chosenDate\n : this.state.defaultDate,\n minDate: this.props.minimumDate,\n maxDate: this.props.maximumDate,\n mode: this.props.androidMode\n });\n const { action, year, month, day } = newDate;\n if (action === \"dateSetAction\") {\n let selectedDate = new Date(year, month, day);\n this.setState({ chosenDate: selectedDate });\n this.props.onDateChange(selectedDate);\n }\n } catch ({ code, message }) {\n console.warn(\"Cannot open date picker\", message);\n }\n }\n\n render() {\n const variables = this.context.theme\n ? this.context.theme[\"@@shoutem.theme/themeStyle\"].variables\n : variable;\n return (\n \n \n \n {this.state.chosenDate\n ? this.state.chosenDate.getDate() +\n \"/\" +\n (this.state.chosenDate.getMonth() + 1) +\n \"/\" +\n +this.state.chosenDate.getFullYear()\n : this.props.placeHolderText\n ? this.props.placeHolderText\n : \"Select Date\"}\n \n \n {}}\n >\n this.setState({ modalVisible: false })}\n style={{ backgroundColor: variables.datePickerBg, flex: 1 }}\n />\n \n \n \n \n \n );\n }\n}\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/DatePicker.js"],"names":["DatePicker","props","componentDidMount","setState","defaultDate","Date","state","modalVisible","chosenDate","undefined","date","onDateChange","Platform","OS","openAndroidDatePicker","DatePickerAndroid","open","minDate","minimumDate","maxDate","maximumDate","mode","androidMode","newDate","action","year","month","day","selectedDate","code","message","console","warn","variables","context","theme","variable","showDatePicker","bind","padding","color","datePickerTextColor","textStyle","placeHolderTextStyle","getDate","getMonth","getFullYear","placeHolderText","animationType","modalTransparent","backgroundColor","datePickerBg","flex","setDate","locale","timeZoneOffsetInMinutes","React","Component"],"mappings":"+nBAAA,4B,2CACA,yCAOA,uCACA,qD,q7BAEaA,W,SAAAA,U,mEACX,oBAAYC,KAAZ,CAAmB,gJACXA,KADW,SASnBC,iBATmB,CASC,UAAM,CACxB,MAAKC,QAAL,CAAc,CACZC,YAAa,MAAKH,KAAL,CAAWG,WAAX,CAAyB,MAAKH,KAAL,CAAWG,WAApC,CAAkD,GAAIC,KAAJ,EADnD,CAAd,EAGD,CAbkB,CAEjB,MAAKC,KAAL,CAAa,CACXC,aAAc,KADH,CAEXH,YAAa,GAAIC,KAAJ,EAFF,CAGXG,WAAYC,SAHD,CAAb,CAFiB,aAOlB,C,+DAQOC,I,CAAM,CACZ,KAAKP,QAAL,CAAc,CAAEK,WAAY,GAAIH,KAAJ,CAASK,IAAT,CAAd,CAAd,EACA,GAAI,KAAKT,KAAL,CAAWU,YAAf,CAA6B,CAC3B,KAAKV,KAAL,CAAWU,YAAX,CAAwBD,IAAxB,EACD,CACF,C,uDAEgB,CACf,GAAIE,sBAASC,EAAT,GAAgB,SAApB,CAA+B,CAC7B,KAAKC,qBAAL,GACD,CAFD,IAEO,CACL,KAAKX,QAAL,CAAc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,CAAWE,UAAX,CACG,KAAKF,KAAL,CAAWE,UAAX,CAAsBoC,OAAtB,GACA,GADA,EAEC,KAAKtC,KAAL,CAAWE,UAAX,CAAsBqC,QAAtB,GAAmC,CAFpC,EAGA,GAHA,CAIA,EAAC,KAAKvC,KAAL,CAAWE,UAAX,CAAsBsC,WAAtB,EALJ,CAMK,KAAK7C,KAAL,CAAW8C,eAAX,CACE,KAAK9C,KAAL,CAAW8C,eADb,CAEE,aAfV,CADF,CAkBE,8BAAC,iBAAD,kDACE,8BAAC,kBAAD,EACE,cAAe,KAAK9C,KAAL,CAAW+C,aAD5B,CAEE,YAAa,KAAK/C,KAAL,CAAWgD,gBAF1B,CAGE,QAAS,KAAK3C,KAAL,CAAWC,YAHtB,CAIE,eAAgB,yBAAM,CAAE,CAJ1B,iDAME,8BAAC,gBAAD,EACE,QAAS,yBAAM,QAAKJ,QAAL,CAAc,CAAEI,aAAc,KAAhB,CAAd,CAAN,EADX,CAEE,MAAO,CAAE2C,gBAAiBjB,UAAUkB,YAA7B,CAA2CC,KAAM,CAAjD,CAFT,iDANF,CAUE,8BAAC,0BAAD,EACE,KACE,KAAK9C,KAAL,CAAWE,UAAX,CACI,KAAKF,KAAL,CAAWE,UADf,CAEI,KAAKF,KAAL,CAAWF,WAJnB,CAME,aAAc,KAAKiD,OAAL,CAAaf,IAAb,CAAkB,IAAlB,CANhB,CAOE,YAAa,KAAKrC,KAAL,CAAWiB,WAP1B,CAQE,YAAa,KAAKjB,KAAL,CAAWmB,WAR1B,CASE,KAAK,MATP,CAUE,OAAQ,KAAKnB,KAAL,CAAWqD,MAVrB,CAWE,wBAAyB,KAAKrD,KAAL,CAAWsD,uBAXtC,iDAVF,CADF,CAlBF,CADF,CADF,CAiDD,C,wBAzG6BC,gBAAMC,S","file":"DatePicker.js","sourcesContent":["import React from \"react\";\nimport {\n Modal,\n View,\n Platform,\n DatePickerIOS,\n DatePickerAndroid\n} from \"react-native\";\nimport { Text } from \"native-base\";\nimport variable from \"../theme/variables/platform\";\n\nexport class DatePicker extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n modalVisible: false,\n defaultDate: new Date(),\n chosenDate: undefined\n };\n }\n\n componentDidMount = () => {\n this.setState({\n defaultDate: this.props.defaultDate ? this.props.defaultDate : new Date()\n });\n };\n\n setDate(date) {\n this.setState({ chosenDate: new Date(date) });\n if (this.props.onDateChange) {\n this.props.onDateChange(date);\n }\n }\n\n showDatePicker() {\n if (Platform.OS === \"android\") {\n this.openAndroidDatePicker();\n } else {\n this.setState({ modalVisible: true });\n }\n }\n\n async openAndroidDatePicker() {\n try {\n const newDate = await DatePickerAndroid.open({\n date: this.state.chosenDate\n ? this.state.chosenDate\n : this.state.defaultDate,\n minDate: this.props.minimumDate,\n maxDate: this.props.maximumDate,\n mode: this.props.androidMode\n });\n const { action, year, month, day } = newDate;\n if (action === \"dateSetAction\") {\n let selectedDate = new Date(year, month, day);\n this.setState({ chosenDate: selectedDate });\n this.props.onDateChange(selectedDate);\n }\n } catch ({ code, message }) {\n console.warn(\"Cannot open date picker\", message);\n }\n }\n\n render() {\n const variables = this.context.theme\n ? this.context.theme[\"@@shoutem.theme/themeStyle\"].variables\n : variable;\n return (\n \n \n \n {this.state.chosenDate\n ? this.state.chosenDate.getDate() +\n \"/\" +\n (this.state.chosenDate.getMonth() + 1) +\n \"/\" +\n +this.state.chosenDate.getFullYear()\n : this.props.placeHolderText\n ? this.props.placeHolderText\n : \"Select Date\"}\n \n \n {}}\n >\n this.setState({ modalVisible: false })}\n style={{ backgroundColor: variables.datePickerBg, flex: 1 }}\n />\n \n \n \n \n \n );\n }\n}\n"]} \ No newline at end of file diff --git a/dist/src/basic/DeckSwiper.js b/dist/src/basic/DeckSwiper.js index bad5e304f..1a03fb515 100644 --- a/dist/src/basic/DeckSwiper.js +++ b/dist/src/basic/DeckSwiper.js @@ -1,344 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.DeckSwiper=undefined;var _jsxFileName="src/basic/DeckSwiper.js";var _extends=Object.assign||function(target){for(var i=1;ithis.props.dataSource.length-1&& -newIdx===this.props.dataSource.length-1) -{ -return[newIdx,0]; -}else if(newIdx>this.props.dataSource.length-1){ -return[0,1]; -} -return[newIdx,newIdx2]; -}},{key:"selectNext",value:function selectNext() - -{var _this2=this; -var dataSource=this.props.dataSource; -var currentIndex=dataSource.indexOf(this.state.selectedItem); - - -if(!this.state.looping){ - -if(currentIndex===dataSource.length-1){ -return this.setState({ -disabled:true}); - -}else if(currentIndex===dataSource.length-2){ - -return setTimeout(function(){ -_this2.setState({ -selectedItem:dataSource[currentIndex+1]}); - -setTimeout(function(){ -_this2.setState({ -lastCard:true}); - -},350); -},50); -} -} - -var nextIndexes=this.findNextIndexes(currentIndex); -setTimeout(function(){ -_this2.setState({ -selectedItem:_this2.props.dataSource[nextIndexes[0]]}); - -setTimeout(function(){ -_this2.setState({ -selectedItem2:_this2.props.dataSource[nextIndexes[1]]}); - -},350); -},50); -}},{key:"swipeRight",value:function swipeRight() - -{var _this3=this; -if(this.props.onSwiping)this.props.onSwiping("right"); -setTimeout(function(){ -_reactNative.Animated.timing(_this3.state.fadeAnim,{toValue:1}).start(); -_reactNative.Animated.spring(_this3.state.enter,{toValue:1,friction:7}).start(); -_this3.selectNext(); -_reactNative.Animated.decay(_this3.state.pan,{ -velocity:{x:8,y:1}, -deceleration:0.98}). -start(_this3._resetState.bind(_this3)); -},300); -}},{key:"swipeLeft",value:function swipeLeft() - -{var _this4=this; -if(this.props.onSwiping)this.props.onSwiping("left"); -setTimeout(function(){ -_reactNative.Animated.timing(_this4.state.fadeAnim,{toValue:1}).start(); -_reactNative.Animated.spring(_this4.state.enter,{toValue:1,friction:7}).start(); -_this4.selectNext(); -_reactNative.Animated.decay(_this4.state.pan,{ -velocity:{x:-8,y:1}, -deceleration:0.98}). -start(_this4._resetState.bind(_this4)); -},300); -}},{key:"componentWillMount",value:function componentWillMount() - -{var _this5=this; -this._panResponder=_reactNative.PanResponder.create({ -onMoveShouldSetResponderCapture:function onMoveShouldSetResponderCapture(){return true;}, -onMoveShouldSetPanResponderCapture:function onMoveShouldSetPanResponderCapture(evt,gestureState){return( -Math.abs(gestureState.dx)>5);}, - -onPanResponderGrant:function onPanResponderGrant(e,gestureState){ -_this5.state.pan.setOffset({ -x:_this5.state.pan.x._value, -y:_this5.state.pan.y._value}); - -_this5.state.pan.setValue({x:0,y:0}); -}, - -onPanResponderMove:function onPanResponderMove(e,gestureState){ -if(gestureState.dx>20){ -if(_this5.props.onSwiping) -_this5.props.onSwiping("right",gestureState.dx); -}else if(gestureState.dx<-20){ -if(_this5.props.onSwiping) -_this5.props.onSwiping("left",gestureState.dx); -} -var val=Math.abs(gestureState.dx*0.0013); -var opa=Math.abs(gestureState.dx*0.0022); -if(val>0.2){ -val=0.2; -} -_reactNative.Animated.timing(_this5.state.fadeAnim,{toValue:0.8+val}).start(); -_reactNative.Animated.spring(_this5.state.enter,{ -toValue:0.8+val, -friction:7}). -start(); -_reactNative.Animated.event([null,{dx:_this5.state.pan.x}])(e,gestureState); -}, - -onPanResponderRelease:function onPanResponderRelease(e,_ref2){var vx=_ref2.vx,vy=_ref2.vy; -if(_this5.props.onSwiping)_this5.props.onSwiping(null); -var velocity=void 0; - -if(vx>=0){ -velocity=(0,_clamp2.default)(vx,4.5,10); -}else if(vx<0){ -velocity=(0,_clamp2.default)(vx*-1,4.5,10)*-1; -} - -if(Math.abs(_this5.state.pan.x._value)>SWIPE_THRESHOLD){ -if(velocity>0){ -_this5.props.onSwipeRight? -_this5.props.onSwipeRight(_this5.state.selectedItem): -undefined; -_this5.selectNext(); -}else{ -_this5.props.onSwipeLeft? -_this5.props.onSwipeLeft(_this5.state.selectedItem): -undefined; -_this5.selectNext(); -} - -_reactNative.Animated.decay(_this5.state.pan,{ -velocity:{x:velocity,y:vy}, -deceleration:0.98}). -start(_this5._resetState.bind(_this5)); -}else{ -_reactNative.Animated.spring(_this5.state.pan,{ -toValue:{x:0,y:0}, -friction:4}). -start(); -} -}}); - -}},{key:"_resetState",value:function _resetState() - -{ -this.state.pan.setValue({x:0,y:0}); -this.state.enter.setValue(0.8); -this.state.fadeAnim.setValue(0.8); -this.setState({ -card1Top:!this.state.card1Top, -card2Top:!this.state.card2Top}); - -if(this.props.onSwiping)this.props.onSwiping(null); -}},{key:"getCardStyles",value:function getCardStyles() - -{var _state= -this.state,pan=_state.pan,pan2=_state.pan2,enter=_state.enter;var _ref3= - -[pan.x,pan.y],translateX=_ref3[0],translateY=_ref3[1]; - - -var rotate=pan.x.interpolate({ -inputRange:[-700,0,700], -outputRange:["-10deg","0deg","10deg"]}); - - -var opacity=pan.x.interpolate({ -inputRange:[-320,0,320], -outputRange:[0.9,1,0.9]}); - -var scale=enter; - -var animatedCardStyles={ -transform:[{translateX:translateX},{translateY:translateY},{rotate:rotate}], -opacity:opacity}; - -var animatedCardStyles2={transform:[{scale:scale}]}; - -return[animatedCardStyles,animatedCardStyles2]; -}},{key:"render",value:function render() - -{ -if(this.state.disabled){ - -return( -_react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:258}}, -_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:259}},this.props.renderEmpty&&this.props.renderEmpty()))); - - -}else if(this.state.lastCard){ - -return( -_react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:265}}, -this.state.selectedItem===undefined? -_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:267}}): - -_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:269}}, -_react2.default.createElement(_reactNative.Animated.View,_extends({ -style:[ -this.getCardStyles()[1], -this.getInitialStyle().topCard, -{opacity:this.state.fadeAnim}]}, - -this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:270}}), - -this.props.renderEmpty&&this.props.renderEmpty()), - -_react2.default.createElement(_reactNative.Animated.View,_extends({ -style:[ -this.getCardStyles()[0], -this.getInitialStyle().topCard]}, - -this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:280}}), - -this.props.renderItem(this.state.selectedItem))))); - - - - - -} -return( -_react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:295}}, -this.state.selectedItem===undefined? -_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:297}}): - -_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:299}}, -_react2.default.createElement(_reactNative.Animated.View,_extends({ -style:[ -this.getCardStyles()[1], -this.getInitialStyle().topCard, -{opacity:this.state.fadeAnim}]}, - -this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:300}}), - -this.props.renderBottom? -this.props.renderBottom(this.state.selectedItem2): -this.props.renderItem(this.state.selectedItem2)), - -_react2.default.createElement(_reactNative.Animated.View,_extends({ -style:[this.getCardStyles()[0],this.getInitialStyle().topCard]}, -this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:312}}), - -this.props.renderTop? -this.props.renderTop(this.state.selectedItem): -this.props.renderItem(this.state.selectedItem))))); - - - - - -}}]);return DeckSwiper;}(_react.Component); - - -DeckSwiper.propTypes=_extends({}, -_reactNative.ViewPropTypes,{ -style:_propTypes2.default.oneOfType([ -_propTypes2.default.object, -_propTypes2.default.number, -_propTypes2.default.array]), - -dataSource:_propTypes2.default.array}); - - -var StyledDeckSwiper=(0,_nativeBaseShoutemTheme.connectStyle)( -"NativeBase.DeckSwiper", -{}, -_mapPropsToStyleNames2.default)( -DeckSwiper);exports. - -DeckSwiper=StyledDeckSwiper; +Object.defineProperty(exports,"__esModule",{value:true});exports.DeckSwiper=undefined;var _jsxFileName="src/basic/DeckSwiper.js";var _extends=Object.assign||function(target){for(var i=1;ithis.props.dataSource.length-1&&newIdx===this.props.dataSource.length-1){return[newIdx,0];}else if(newIdx>this.props.dataSource.length-1){return[0,1];}return[newIdx,newIdx2];}},{key:"selectNext",value:function selectNext(){var _this2=this;var dataSource=this.props.dataSource;var currentIndex=dataSource.indexOf(this.state.selectedItem);if(!this.state.looping){if(currentIndex===dataSource.length-1){return this.setState({disabled:true});}else if(currentIndex===dataSource.length-2){return setTimeout(function(){_this2.setState({selectedItem:dataSource[currentIndex+1]});setTimeout(function(){_this2.setState({lastCard:true});},350);},50);}}var nextIndexes=this.findNextIndexes(currentIndex);setTimeout(function(){_this2.setState({selectedItem:_this2.props.dataSource[nextIndexes[0]]});setTimeout(function(){_this2.setState({selectedItem2:_this2.props.dataSource[nextIndexes[1]]});},350);},50);}},{key:"swipeRight",value:function swipeRight(){var _this3=this;if(this.props.onSwiping)this.props.onSwiping("right");setTimeout(function(){_reactNative.Animated.timing(_this3.state.fadeAnim,{toValue:1}).start();_reactNative.Animated.spring(_this3.state.enter,{toValue:1,friction:7}).start();_this3.selectNext();_reactNative.Animated.decay(_this3.state.pan,{velocity:{x:8,y:1},deceleration:0.98}).start(_this3._resetState.bind(_this3));},300);}},{key:"swipeLeft",value:function swipeLeft(){var _this4=this;if(this.props.onSwiping)this.props.onSwiping("left");setTimeout(function(){_reactNative.Animated.timing(_this4.state.fadeAnim,{toValue:1}).start();_reactNative.Animated.spring(_this4.state.enter,{toValue:1,friction:7}).start();_this4.selectNext();_reactNative.Animated.decay(_this4.state.pan,{velocity:{x:-8,y:1},deceleration:0.98}).start(_this4._resetState.bind(_this4));},300);}},{key:"componentWillMount",value:function componentWillMount(){var _this5=this;this._panResponder=_reactNative.PanResponder.create({onMoveShouldSetResponderCapture:function onMoveShouldSetResponderCapture(){return true;},onMoveShouldSetPanResponderCapture:function onMoveShouldSetPanResponderCapture(evt,gestureState){return Math.abs(gestureState.dx)>5;},onPanResponderGrant:function onPanResponderGrant(e,gestureState){_this5.state.pan.setOffset({x:_this5.state.pan.x._value,y:_this5.state.pan.y._value});_this5.state.pan.setValue({x:0,y:0});},onPanResponderMove:function onPanResponderMove(e,gestureState){if(gestureState.dx>20){if(_this5.props.onSwiping)_this5.props.onSwiping("right",gestureState.dx);}else if(gestureState.dx<-20){if(_this5.props.onSwiping)_this5.props.onSwiping("left",gestureState.dx);}var val=Math.abs(gestureState.dx*0.0013);var opa=Math.abs(gestureState.dx*0.0022);if(val>0.2){val=0.2;}_reactNative.Animated.timing(_this5.state.fadeAnim,{toValue:0.8+val}).start();_reactNative.Animated.spring(_this5.state.enter,{toValue:0.8+val,friction:7}).start();_reactNative.Animated.event([null,{dx:_this5.state.pan.x}])(e,gestureState);},onPanResponderRelease:function onPanResponderRelease(e,_ref2){var vx=_ref2.vx,vy=_ref2.vy;if(_this5.props.onSwiping)_this5.props.onSwiping(null);var velocity=void 0;if(vx>=0){velocity=(0,_clamp2.default)(vx,4.5,10);}else if(vx<0){velocity=(0,_clamp2.default)(vx*-1,4.5,10)*-1;}if(Math.abs(_this5.state.pan.x._value)>SWIPE_THRESHOLD){if(velocity>0){_this5.props.onSwipeRight?_this5.props.onSwipeRight(_this5.state.selectedItem):undefined;_this5.selectNext();}else{_this5.props.onSwipeLeft?_this5.props.onSwipeLeft(_this5.state.selectedItem):undefined;_this5.selectNext();}_reactNative.Animated.decay(_this5.state.pan,{velocity:{x:velocity,y:vy},deceleration:0.98}).start(_this5._resetState.bind(_this5));}else{_reactNative.Animated.spring(_this5.state.pan,{toValue:{x:0,y:0},friction:4}).start();}}});}},{key:"_resetState",value:function _resetState(){this.state.pan.setValue({x:0,y:0});this.state.enter.setValue(0.8);this.state.fadeAnim.setValue(0.8);this.setState({card1Top:!this.state.card1Top,card2Top:!this.state.card2Top});if(this.props.onSwiping)this.props.onSwiping(null);}},{key:"getCardStyles",value:function getCardStyles(){var _state=this.state,pan=_state.pan,pan2=_state.pan2,enter=_state.enter;var _ref3=[pan.x,pan.y],translateX=_ref3[0],translateY=_ref3[1];var rotate=pan.x.interpolate({inputRange:[-700,0,700],outputRange:["-10deg","0deg","10deg"]});var opacity=pan.x.interpolate({inputRange:[-320,0,320],outputRange:[0.9,1,0.9]});var scale=enter;var animatedCardStyles={transform:[{translateX:translateX},{translateY:translateY},{rotate:rotate}],opacity:opacity};var animatedCardStyles2={transform:[{scale:scale}]};return[animatedCardStyles,animatedCardStyles2];}},{key:"render",value:function render(){if(this.state.disabled){return _react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:258}},_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:259}},this.props.renderEmpty&&this.props.renderEmpty()));}else if(this.state.lastCard){return _react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:265}},this.state.selectedItem===undefined?_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:267}}):_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:269}},_react2.default.createElement(_reactNative.Animated.View,_extends({style:[this.getCardStyles()[1],this.getInitialStyle().topCard,{opacity:this.state.fadeAnim}]},this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:270}}),this.props.renderEmpty&&this.props.renderEmpty()),_react2.default.createElement(_reactNative.Animated.View,_extends({style:[this.getCardStyles()[0],this.getInitialStyle().topCard]},this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:280}}),this.props.renderItem(this.state.selectedItem))));}return _react2.default.createElement(_reactNative.View,{style:{position:"relative",flexDirection:"column"},__source:{fileName:_jsxFileName,lineNumber:295}},this.state.selectedItem===undefined?_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:297}}):_react2.default.createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:299}},_react2.default.createElement(_reactNative.Animated.View,_extends({style:[this.getCardStyles()[1],this.getInitialStyle().topCard,{opacity:this.state.fadeAnim}]},this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:300}}),this.props.renderBottom?this.props.renderBottom(this.state.selectedItem2):this.props.renderItem(this.state.selectedItem2)),_react2.default.createElement(_reactNative.Animated.View,_extends({style:[this.getCardStyles()[0],this.getInitialStyle().topCard]},this._panResponder.panHandlers,{__source:{fileName:_jsxFileName,lineNumber:312}}),this.props.renderTop?this.props.renderTop(this.state.selectedItem):this.props.renderItem(this.state.selectedItem))));}}]);return DeckSwiper;}(_react.Component);DeckSwiper.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array]),dataSource:_propTypes2.default.array});var StyledDeckSwiper=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.DeckSwiper",{},_mapPropsToStyleNames2.default)(DeckSwiper);exports.DeckSwiper=StyledDeckSwiper; //# sourceMappingURL=DeckSwiper.js.map \ No newline at end of file diff --git a/dist/src/basic/DeckSwiper.js.map b/dist/src/basic/DeckSwiper.js.map index ebd5ce797..0686a0b95 100644 --- a/dist/src/basic/DeckSwiper.js.map +++ b/dist/src/basic/DeckSwiper.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../src/basic/DeckSwiper.js"],"names":["SWIPE_THRESHOLD","DeckSwiper","props","state","pan","Animated","ValueXY","pan2","enter","Value","selectedItem","dataSource","selectedItem2","card1Top","card2Top","fadeAnim","looping","disabled","length","lastCard","setState","undefined","visibleIndex","indexOf","currentIndex","nextIndex","topCard","position","top","right","left","newIdx","newIdx2","setTimeout","nextIndexes","findNextIndexes","onSwiping","timing","toValue","start","spring","friction","selectNext","decay","velocity","x","y","deceleration","_resetState","bind","_panResponder","PanResponder","create","onMoveShouldSetResponderCapture","onMoveShouldSetPanResponderCapture","evt","gestureState","Math","abs","dx","onPanResponderGrant","e","setOffset","_value","setValue","onPanResponderMove","val","opa","event","onPanResponderRelease","vx","vy","onSwipeRight","onSwipeLeft","translateX","translateY","rotate","interpolate","inputRange","outputRange","opacity","scale","animatedCardStyles","transform","animatedCardStyles2","flexDirection","renderEmpty","getCardStyles","getInitialStyle","panHandlers","renderItem","renderBottom","renderTop","Component","propTypes","ViewPropTypes","style","PropTypes","oneOfType","object","number","array","StyledDeckSwiper","mapPropsToStyleNames"],"mappings":"+1BAAA,4B;AACA,qC;AACA;AACA,4B;AACA;AACA,mE;;AAEA,GAAMA,iBAAkB,GAAxB,C;;AAEMC,U;AACJ,oBAAYC,KAAZ,CAAmB;AACXA,KADW;AAEjB,MAAKC,KAAL,CAAa;AACXC,IAAK,GAAIC,uBAASC,OAAb,EADM;AAEXC,KAAM,GAAIF,uBAASC,OAAb,EAFK;AAGXE,MAAO,GAAIH,uBAASI,KAAb,CAAmB,GAAnB,CAHI;AAIXC,aAAc,MAAKR,KAAL,CAAWS,UAAX,CAAsB,CAAtB,CAJH;AAKXC,cAAe,MAAKV,KAAL,CAAWS,UAAX,CAAsB,CAAtB,CALJ;AAMXE,SAAU,IANC;AAOXC,SAAU,KAPC;AAQXC,SAAU,GAAIV,uBAASI,KAAb,CAAmB,GAAnB,CARC;AASXO;AACE,MAAO,OAAKd,KAAL,CAAWc,OAAlB,GAA8B,WAA9B,CAA4C,IAA5C,CAAmD,MAAKd,KAAL,CAAWc,OAVrD;AAWXC,SAAU,MAAKf,KAAL,CAAWS,UAAX,CAAsBO,MAAtB,GAAiC,CAXhC;AAYXC,SAAU,MAAKjB,KAAL,CAAWS,UAAX,CAAsBO,MAAtB,GAAiC,CAZhC,CAAb,CAFiB;;AAgBlB,C;;AAEyC,IAAdP,WAAc,MAAdA,UAAc;AACxC,GAAIA,WAAWO,MAAX,GAAsB,KAAKhB,KAAL,CAAWS,UAAX,CAAsBO,MAAhD,CAAwD;AACtD,GAAIP,WAAWO,MAAX,EAAqB,CAAzB,CAA4B;AAC1B,KAAKE,QAAL;AACK,KAAKjB,KADV;AAEEO,aAAcC,WAAW,CAAX,CAFhB;AAGEC,cAAeS,SAHjB;AAIEJ,SAAUN,WAAWO,MAAX,GAAsB,CAJlC;AAKEC,SAAUR,WAAWO,MAAX,GAAsB,CALlC;;AAOA;AACD;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;;AAGC,8BAAC,iBAAD;AACE,8BAAC,qBAAD,CAAU,IAAV;AACE,MAAO;AACL,KAAKkE,aAAL,GAAqB,CAArB,CADK;AAEL,KAAKC,eAAL,GAAuB9D,OAFlB;AAGL,CAAEsD,QAAS,KAAK7E,KAAL,CAAWY,QAAtB,CAHK,CADT;;AAMM,KAAKmC,aAAL,CAAmBuC,WANzB;;AAQG,KAAKvF,KAAL,CAAWyF,YAAX;AACG,KAAKzF,KAAL,CAAWyF,YAAX,CAAwB,KAAKxF,KAAL,CAAWS,aAAnC,CADH;AAEG,KAAKV,KAAL,CAAWwF,UAAX,CAAsB,KAAKvF,KAAL,CAAWS,aAAjC,CAVN,CADF;;AAaE,8BAAC,qBAAD,CAAU,IAAV;AACE,MAAO,CAAC,KAAK2E,aAAL,GAAqB,CAArB,CAAD,CAA0B,KAAKC,eAAL,GAAuB9D,OAAjD,CADT;AAEM,KAAKwB,aAAL,CAAmBuC,WAFzB;;AAIG,KAAKvF,KAAL,CAAW0F,SAAX;AACG,KAAK1F,KAAL,CAAW0F,SAAX,CAAqB,KAAKzF,KAAL,CAAWO,YAAhC,CADH;AAEG,KAAKR,KAAL,CAAWwF,UAAX,CAAsB,KAAKvF,KAAL,CAAWO,YAAjC,CANN,CAbF,CAJJ,CADF;;;;;;AA8BD,C,wBA1TsBmF,gB;;;AA6TzB5F,WAAW6F,SAAX;AACKC,0BADL;AAEEC,MAAOC,oBAAUC,SAAV,CAAoB;AACzBD,oBAAUE,MADe;AAEzBF,oBAAUG,MAFe;AAGzBH,oBAAUI,KAHe,CAApB,CAFT;;AAOE1F,WAAYsF,oBAAUI,KAPxB;;;AAUA,GAAMC,kBAAmB;AACvB,uBADuB;AAEvB,EAFuB;AAGvBC,8BAHuB;AAIvBtG,UAJuB,CAAzB,C;;AAM6BA,U,CAApBqG,gB","file":"DeckSwiper.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { View, Animated, PanResponder, ViewPropTypes } from \"react-native\";\nimport clamp from \"clamp\";\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nconst SWIPE_THRESHOLD = 120;\n\nclass DeckSwiper extends Component {\n constructor(props) {\n super(props);\n this.state = {\n pan: new Animated.ValueXY(),\n pan2: new Animated.ValueXY(),\n enter: new Animated.Value(0.8),\n selectedItem: this.props.dataSource[0],\n selectedItem2: this.props.dataSource[1],\n card1Top: true,\n card2Top: false,\n fadeAnim: new Animated.Value(0.8),\n looping:\n typeof this.props.looping === \"undefined\" ? true : this.props.looping,\n disabled: this.props.dataSource.length === 0,\n lastCard: this.props.dataSource.length === 1\n };\n }\n\n componentWillReceiveProps({ dataSource }) {\n if (dataSource.length !== this.props.dataSource.length) {\n if (dataSource.length <= 1) {\n this.setState({\n ...this.state,\n selectedItem: dataSource[0],\n selectedItem2: undefined,\n disabled: dataSource.length === 0,\n lastCard: dataSource.length === 1\n });\n return;\n }\n\n const visibleIndex = dataSource.indexOf(this.state.selectedItem);\n const currentIndex = visibleIndex < 0 ? visibleIndex + 1 : visibleIndex;\n const nextIndex =\n currentIndex + 1 === dataSource.length ? 0 : currentIndex + 1;\n\n this.setState({\n selectedItem: dataSource[currentIndex],\n selectedItem2: dataSource[nextIndex]\n });\n }\n }\n\n getInitialStyle() {\n return {\n topCard: {\n position: \"absolute\",\n top: 0,\n right: 0,\n left: 0\n }\n };\n }\n\n findNextIndexes(currentIndex) {\n const newIdx = currentIndex + 1;\n const newIdx2 = currentIndex + 2;\n\n if (\n newIdx2 > this.props.dataSource.length - 1 &&\n newIdx === this.props.dataSource.length - 1\n ) {\n return [newIdx, 0];\n } else if (newIdx > this.props.dataSource.length - 1) {\n return [0, 1];\n }\n return [newIdx, newIdx2];\n }\n\n selectNext() {\n const dataSource = this.props.dataSource;\n const currentIndex = dataSource.indexOf(this.state.selectedItem);\n\n // if not looping, check for these conditionals and if true return from selectNext()\n if (!this.state.looping) {\n // reached end -> only display static renderEmpty() -> no swiping\n if (currentIndex === dataSource.length - 1) {\n return this.setState({\n disabled: true\n });\n } else if (currentIndex === dataSource.length - 2) {\n // show last card with renderEmpty() component behind it\n return setTimeout(() => {\n this.setState({\n selectedItem: dataSource[currentIndex + 1]\n });\n setTimeout(() => {\n this.setState({\n lastCard: true\n });\n }, 350);\n }, 50);\n }\n }\n\n const nextIndexes = this.findNextIndexes(currentIndex);\n setTimeout(() => {\n this.setState({\n selectedItem: this.props.dataSource[nextIndexes[0]]\n });\n setTimeout(() => {\n this.setState({\n selectedItem2: this.props.dataSource[nextIndexes[1]]\n });\n }, 350);\n }, 50);\n }\n\n swipeRight() {\n if (this.props.onSwiping) this.props.onSwiping(\"right\");\n setTimeout(() => {\n Animated.timing(this.state.fadeAnim, { toValue: 1 }).start();\n Animated.spring(this.state.enter, { toValue: 1, friction: 7 }).start();\n this.selectNext();\n Animated.decay(this.state.pan, {\n velocity: { x: 8, y: 1 },\n deceleration: 0.98\n }).start(this._resetState.bind(this));\n }, 300);\n }\n\n swipeLeft() {\n if (this.props.onSwiping) this.props.onSwiping(\"left\");\n setTimeout(() => {\n Animated.timing(this.state.fadeAnim, { toValue: 1 }).start();\n Animated.spring(this.state.enter, { toValue: 1, friction: 7 }).start();\n this.selectNext();\n Animated.decay(this.state.pan, {\n velocity: { x: -8, y: 1 },\n deceleration: 0.98\n }).start(this._resetState.bind(this));\n }, 300);\n }\n\n componentWillMount() {\n this._panResponder = PanResponder.create({\n onMoveShouldSetResponderCapture: () => true,\n onMoveShouldSetPanResponderCapture: (evt, gestureState) =>\n Math.abs(gestureState.dx) > 5,\n\n onPanResponderGrant: (e, gestureState) => {\n this.state.pan.setOffset({\n x: this.state.pan.x._value,\n y: this.state.pan.y._value\n });\n this.state.pan.setValue({ x: 0, y: 0 });\n },\n\n onPanResponderMove: (e, gestureState) => {\n if (gestureState.dx > 20) {\n if (this.props.onSwiping)\n this.props.onSwiping(\"right\", gestureState.dx);\n } else if (gestureState.dx < -20) {\n if (this.props.onSwiping)\n this.props.onSwiping(\"left\", gestureState.dx);\n }\n let val = Math.abs(gestureState.dx * 0.0013);\n const opa = Math.abs(gestureState.dx * 0.0022);\n if (val > 0.2) {\n val = 0.2;\n }\n Animated.timing(this.state.fadeAnim, { toValue: 0.8 + val }).start();\n Animated.spring(this.state.enter, {\n toValue: 0.8 + val,\n friction: 7\n }).start();\n Animated.event([null, { dx: this.state.pan.x }])(e, gestureState);\n },\n\n onPanResponderRelease: (e, { vx, vy }) => {\n if (this.props.onSwiping) this.props.onSwiping(null);\n let velocity;\n\n if (vx >= 0) {\n velocity = clamp(vx, 4.5, 10);\n } else if (vx < 0) {\n velocity = clamp(vx * -1, 4.5, 10) * -1;\n }\n\n if (Math.abs(this.state.pan.x._value) > SWIPE_THRESHOLD) {\n if (velocity > 0) {\n this.props.onSwipeRight\n ? this.props.onSwipeRight(this.state.selectedItem)\n : undefined;\n this.selectNext();\n } else {\n this.props.onSwipeLeft\n ? this.props.onSwipeLeft(this.state.selectedItem)\n : undefined;\n this.selectNext();\n }\n\n Animated.decay(this.state.pan, {\n velocity: { x: velocity, y: vy },\n deceleration: 0.98\n }).start(this._resetState.bind(this));\n } else {\n Animated.spring(this.state.pan, {\n toValue: { x: 0, y: 0 },\n friction: 4\n }).start();\n }\n }\n });\n }\n\n _resetState() {\n this.state.pan.setValue({ x: 0, y: 0 });\n this.state.enter.setValue(0.8);\n this.state.fadeAnim.setValue(0.8);\n this.setState({\n card1Top: !this.state.card1Top,\n card2Top: !this.state.card2Top\n });\n if (this.props.onSwiping) this.props.onSwiping(null);\n }\n\n getCardStyles() {\n const { pan, pan2, enter } = this.state;\n\n const [translateX, translateY] = [pan.x, pan.y];\n // let [translateX, translateY] = [pan2.x, pan2.y];\n\n const rotate = pan.x.interpolate({\n inputRange: [-700, 0, 700],\n outputRange: [\"-10deg\", \"0deg\", \"10deg\"]\n });\n\n const opacity = pan.x.interpolate({\n inputRange: [-320, 0, 320],\n outputRange: [0.9, 1, 0.9]\n });\n const scale = enter;\n\n const animatedCardStyles = {\n transform: [{ translateX }, { translateY }, { rotate }],\n opacity\n };\n const animatedCardStyles2 = { transform: [{ scale }] };\n\n return [animatedCardStyles, animatedCardStyles2];\n }\n\n render() {\n if (this.state.disabled) {\n // disable swiping and renderEmpty\n return (\n \n {{this.props.renderEmpty && this.props.renderEmpty()}}\n \n );\n } else if (this.state.lastCard) {\n // display renderEmpty underneath last viable card\n return (\n \n {this.state.selectedItem === undefined ? (\n \n ) : (\n \n \n {this.props.renderEmpty && this.props.renderEmpty()}\n \n \n {this.props.renderItem(this.state.selectedItem)}\n \n \n )}\n \n );\n }\n return (\n \n {this.state.selectedItem === undefined ? (\n \n ) : (\n \n \n {this.props.renderBottom\n ? this.props.renderBottom(this.state.selectedItem2)\n : this.props.renderItem(this.state.selectedItem2)}\n \n \n {this.props.renderTop\n ? this.props.renderTop(this.state.selectedItem)\n : this.props.renderItem(this.state.selectedItem)}\n \n \n )}\n \n );\n }\n}\n\nDeckSwiper.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ]),\n dataSource: PropTypes.array\n};\n\nconst StyledDeckSwiper = connectStyle(\n \"NativeBase.DeckSwiper\",\n {},\n mapPropsToStyleNames\n)(DeckSwiper);\n\nexport { StyledDeckSwiper as DeckSwiper };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/DeckSwiper.js"],"names":["SWIPE_THRESHOLD","DeckSwiper","props","state","pan","Animated","ValueXY","pan2","enter","Value","selectedItem","dataSource","selectedItem2","card1Top","card2Top","fadeAnim","looping","disabled","length","lastCard","setState","undefined","visibleIndex","indexOf","currentIndex","nextIndex","topCard","position","top","right","left","newIdx","newIdx2","setTimeout","nextIndexes","findNextIndexes","onSwiping","timing","toValue","start","spring","friction","selectNext","decay","velocity","x","y","deceleration","_resetState","bind","_panResponder","PanResponder","create","onMoveShouldSetResponderCapture","onMoveShouldSetPanResponderCapture","evt","gestureState","Math","abs","dx","onPanResponderGrant","e","setOffset","_value","setValue","onPanResponderMove","val","opa","event","onPanResponderRelease","vx","vy","onSwipeRight","onSwipeLeft","translateX","translateY","rotate","interpolate","inputRange","outputRange","opacity","scale","animatedCardStyles","transform","animatedCardStyles2","flexDirection","renderEmpty","getCardStyles","getInitialStyle","panHandlers","renderItem","renderBottom","renderTop","Component","propTypes","ViewPropTypes","style","PropTypes","oneOfType","object","number","array","StyledDeckSwiper","mapPropsToStyleNames"],"mappings":"+1BAAA,4B,2CACA,qC,mDACA,yCACA,4B,2CACA,iEACA,mE,08BAEA,GAAMA,iBAAkB,GAAxB,C,GAEMC,W,uDACJ,oBAAYC,KAAZ,CAAmB,gJACXA,KADW,GAEjB,MAAKC,KAAL,CAAa,CACXC,IAAK,GAAIC,uBAASC,OAAb,EADM,CAEXC,KAAM,GAAIF,uBAASC,OAAb,EAFK,CAGXE,MAAO,GAAIH,uBAASI,KAAb,CAAmB,GAAnB,CAHI,CAIXC,aAAc,MAAKR,KAAL,CAAWS,UAAX,CAAsB,CAAtB,CAJH,CAKXC,cAAe,MAAKV,KAAL,CAAWS,UAAX,CAAsB,CAAtB,CALJ,CAMXE,SAAU,IANC,CAOXC,SAAU,KAPC,CAQXC,SAAU,GAAIV,uBAASI,KAAb,CAAmB,GAAnB,CARC,CASXO,QACE,MAAO,OAAKd,KAAL,CAAWc,OAAlB,GAA8B,WAA9B,CAA4C,IAA5C,CAAmD,MAAKd,KAAL,CAAWc,OAVrD,CAWXC,SAAU,MAAKf,KAAL,CAAWS,UAAX,CAAsBO,MAAtB,GAAiC,CAXhC,CAYXC,SAAU,MAAKjB,KAAL,CAAWS,UAAX,CAAsBO,MAAtB,GAAiC,CAZhC,CAAb,CAFiB,aAgBlB,C,wGAEyC,IAAdP,WAAc,MAAdA,UAAc,CACxC,GAAIA,WAAWO,MAAX,GAAsB,KAAKhB,KAAL,CAAWS,UAAX,CAAsBO,MAAhD,CAAwD,CACtD,GAAIP,WAAWO,MA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uB,EAIvBtG,UAJuB,CAAzB,C,QAM6BA,U,CAApBqG,gB","file":"DeckSwiper.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { View, Animated, PanResponder, ViewPropTypes } from \"react-native\";\nimport clamp from \"clamp\";\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nconst SWIPE_THRESHOLD = 120;\n\nclass DeckSwiper extends Component {\n constructor(props) {\n super(props);\n this.state = {\n pan: new Animated.ValueXY(),\n pan2: new Animated.ValueXY(),\n enter: new Animated.Value(0.8),\n selectedItem: this.props.dataSource[0],\n selectedItem2: this.props.dataSource[1],\n card1Top: true,\n card2Top: false,\n fadeAnim: new Animated.Value(0.8),\n looping:\n typeof this.props.looping === \"undefined\" ? true : this.props.looping,\n disabled: this.props.dataSource.length === 0,\n lastCard: this.props.dataSource.length === 1\n };\n }\n\n componentWillReceiveProps({ dataSource }) {\n if (dataSource.length !== this.props.dataSource.length) {\n if (dataSource.length <= 1) {\n this.setState({\n ...this.state,\n selectedItem: dataSource[0],\n selectedItem2: undefined,\n disabled: dataSource.length === 0,\n lastCard: dataSource.length === 1\n });\n return;\n }\n\n const visibleIndex = dataSource.indexOf(this.state.selectedItem);\n const currentIndex = visibleIndex < 0 ? visibleIndex + 1 : visibleIndex;\n const nextIndex =\n currentIndex + 1 === dataSource.length ? 0 : currentIndex + 1;\n\n this.setState({\n selectedItem: dataSource[currentIndex],\n selectedItem2: dataSource[nextIndex]\n });\n }\n }\n\n getInitialStyle() {\n return {\n topCard: {\n position: \"absolute\",\n top: 0,\n right: 0,\n left: 0\n }\n };\n }\n\n findNextIndexes(currentIndex) {\n const newIdx = currentIndex + 1;\n const newIdx2 = currentIndex + 2;\n\n if (\n newIdx2 > this.props.dataSource.length - 1 &&\n newIdx === this.props.dataSource.length - 1\n ) {\n return [newIdx, 0];\n } else if (newIdx > this.props.dataSource.length - 1) {\n return [0, 1];\n }\n return [newIdx, newIdx2];\n }\n\n selectNext() {\n const dataSource = this.props.dataSource;\n const currentIndex = dataSource.indexOf(this.state.selectedItem);\n\n // if not looping, check for these conditionals and if true return from selectNext()\n if (!this.state.looping) {\n // reached end -> only display static renderEmpty() -> no swiping\n if (currentIndex === dataSource.length - 1) {\n return this.setState({\n disabled: true\n });\n } else if (currentIndex === dataSource.length - 2) {\n // show last card with renderEmpty() component behind it\n return setTimeout(() => {\n this.setState({\n selectedItem: dataSource[currentIndex + 1]\n });\n setTimeout(() => {\n this.setState({\n lastCard: true\n });\n }, 350);\n }, 50);\n }\n }\n\n const nextIndexes = this.findNextIndexes(currentIndex);\n setTimeout(() => {\n this.setState({\n selectedItem: this.props.dataSource[nextIndexes[0]]\n });\n setTimeout(() => {\n this.setState({\n selectedItem2: this.props.dataSource[nextIndexes[1]]\n });\n }, 350);\n }, 50);\n }\n\n swipeRight() {\n if (this.props.onSwiping) this.props.onSwiping(\"right\");\n setTimeout(() => {\n Animated.timing(this.state.fadeAnim, { toValue: 1 }).start();\n Animated.spring(this.state.enter, { toValue: 1, friction: 7 }).start();\n this.selectNext();\n Animated.decay(this.state.pan, {\n velocity: { x: 8, y: 1 },\n deceleration: 0.98\n }).start(this._resetState.bind(this));\n }, 300);\n }\n\n swipeLeft() {\n if (this.props.onSwiping) this.props.onSwiping(\"left\");\n setTimeout(() => {\n Animated.timing(this.state.fadeAnim, { toValue: 1 }).start();\n Animated.spring(this.state.enter, { toValue: 1, friction: 7 }).start();\n this.selectNext();\n Animated.decay(this.state.pan, {\n velocity: { x: -8, y: 1 },\n deceleration: 0.98\n }).start(this._resetState.bind(this));\n }, 300);\n }\n\n componentWillMount() {\n this._panResponder = PanResponder.create({\n onMoveShouldSetResponderCapture: () => true,\n onMoveShouldSetPanResponderCapture: (evt, gestureState) =>\n Math.abs(gestureState.dx) > 5,\n\n onPanResponderGrant: (e, gestureState) => {\n this.state.pan.setOffset({\n x: this.state.pan.x._value,\n y: this.state.pan.y._value\n });\n this.state.pan.setValue({ x: 0, y: 0 });\n },\n\n onPanResponderMove: (e, gestureState) => {\n if (gestureState.dx > 20) {\n if (this.props.onSwiping)\n this.props.onSwiping(\"right\", gestureState.dx);\n } else if (gestureState.dx < -20) {\n if (this.props.onSwiping)\n this.props.onSwiping(\"left\", gestureState.dx);\n }\n let val = Math.abs(gestureState.dx * 0.0013);\n const opa = Math.abs(gestureState.dx * 0.0022);\n if (val > 0.2) {\n val = 0.2;\n }\n Animated.timing(this.state.fadeAnim, { toValue: 0.8 + val }).start();\n Animated.spring(this.state.enter, {\n toValue: 0.8 + val,\n friction: 7\n }).start();\n Animated.event([null, { dx: this.state.pan.x }])(e, gestureState);\n },\n\n onPanResponderRelease: (e, { vx, vy }) => {\n if (this.props.onSwiping) this.props.onSwiping(null);\n let velocity;\n\n if (vx >= 0) {\n velocity = clamp(vx, 4.5, 10);\n } else if (vx < 0) {\n velocity = clamp(vx * -1, 4.5, 10) * -1;\n }\n\n if (Math.abs(this.state.pan.x._value) > SWIPE_THRESHOLD) {\n if (velocity > 0) {\n this.props.onSwipeRight\n ? this.props.onSwipeRight(this.state.selectedItem)\n : undefined;\n this.selectNext();\n } else {\n this.props.onSwipeLeft\n ? this.props.onSwipeLeft(this.state.selectedItem)\n : undefined;\n this.selectNext();\n }\n\n Animated.decay(this.state.pan, {\n velocity: { x: velocity, y: vy },\n deceleration: 0.98\n }).start(this._resetState.bind(this));\n } else {\n Animated.spring(this.state.pan, {\n toValue: { x: 0, y: 0 },\n friction: 4\n }).start();\n }\n }\n });\n }\n\n _resetState() {\n this.state.pan.setValue({ x: 0, y: 0 });\n this.state.enter.setValue(0.8);\n this.state.fadeAnim.setValue(0.8);\n this.setState({\n card1Top: !this.state.card1Top,\n card2Top: !this.state.card2Top\n });\n if (this.props.onSwiping) this.props.onSwiping(null);\n }\n\n getCardStyles() {\n const { pan, pan2, enter } = this.state;\n\n const [translateX, translateY] = [pan.x, pan.y];\n // let [translateX, translateY] = [pan2.x, pan2.y];\n\n const rotate = pan.x.interpolate({\n inputRange: [-700, 0, 700],\n outputRange: [\"-10deg\", \"0deg\", \"10deg\"]\n });\n\n const opacity = pan.x.interpolate({\n inputRange: [-320, 0, 320],\n outputRange: [0.9, 1, 0.9]\n });\n const scale = enter;\n\n const animatedCardStyles = {\n transform: [{ translateX }, { translateY }, { rotate }],\n opacity\n };\n const animatedCardStyles2 = { transform: [{ scale }] };\n\n return [animatedCardStyles, animatedCardStyles2];\n }\n\n render() {\n if (this.state.disabled) {\n // disable swiping and renderEmpty\n return (\n \n {{this.props.renderEmpty && this.props.renderEmpty()}}\n \n );\n } else if (this.state.lastCard) {\n // display renderEmpty underneath last viable card\n return (\n \n {this.state.selectedItem === undefined ? (\n \n ) : (\n \n \n {this.props.renderEmpty && this.props.renderEmpty()}\n \n \n {this.props.renderItem(this.state.selectedItem)}\n \n \n )}\n \n );\n }\n return (\n \n {this.state.selectedItem === undefined ? (\n \n ) : (\n \n \n {this.props.renderBottom\n ? this.props.renderBottom(this.state.selectedItem2)\n : this.props.renderItem(this.state.selectedItem2)}\n \n \n {this.props.renderTop\n ? this.props.renderTop(this.state.selectedItem)\n : this.props.renderItem(this.state.selectedItem)}\n \n \n )}\n \n );\n }\n}\n\nDeckSwiper.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ]),\n dataSource: PropTypes.array\n};\n\nconst StyledDeckSwiper = connectStyle(\n \"NativeBase.DeckSwiper\",\n {},\n mapPropsToStyleNames\n)(DeckSwiper);\n\nexport { StyledDeckSwiper as DeckSwiper };\n"]} \ No newline at end of file diff --git a/dist/src/basic/Drawer/index.js b/dist/src/basic/Drawer/index.js index 58d52702a..947edb470 100644 --- a/dist/src/basic/Drawer/index.js +++ b/dist/src/basic/Drawer/index.js @@ -1,35 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i (this._root = c)} {...this.props} />;\n\t}\n}\n\nDrawer.defaultProps = {\n\ttype: \"overlay\",\n\ttapToClose: true,\n\topenDrawerOffset: 0.2,\n\tpanCloseMask: 0.2,\n\tclosedDrawerOffset: 0,\n\tstyles: {\n\t\tdrawer: {\n\t\t\tshadowColor: \"#000000\",\n\t\t\tshadowOpacity: 0,\n\t\t\tshadowRadius: 0,\n\t\t\televation: 5,\n\t\t},\n\t\tmainOverlay: {\n\t\t\topacity: 0,\n\t\t\tbackgroundColor: \"rgba(0, 0, 0, 0.8)\",\n\t\t\televation: 8,\n\t\t},\n\t},\n\ttweenHandler: ratio => ({\n\t\tmainOverlay: { opacity: ratio / 2 },\n\t}),\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/basic/Drawer/index.js"],"names":["Drawer","props","_root","c","Component","defaultProps","type","tapToClose","openDrawerOffset","panCloseMask","closedDrawerOffset","styles","drawer","shadowColor","shadowOpacity","shadowRadius","elevation","mainOverlay","opacity","backgroundColor","tweenHandler","ratio"],"mappings":"o0BAAA,4B,2CACA,sD,mEACA,qC,u7BAEqBA,O,mDACpB,gBAAYC,KAAZ,CAAmB,iIACZA,KADY,GAElB,C,0DACQ,iBACR,MAAO,+BAAC,2BAAD,WAAU,IAAK,sBAAM,QAAKC,KAAL,CAAaC,CAAnB,EAAf,EAA0C,KAAKF,KAA/C,mDAAP,CACA,C,oBANkCG,gB,kBAAfJ,M,CASrBA,OAAOK,YAAP,CAAsB,CACrBC,KAAM,SADe,CAErBC,WAAY,IAFS,CAGrBC,iBAAkB,GAHG,CAIrBC,aAAc,GAJO,CAKrBC,mBAAoB,CALC,CAMrBC,OAAQ,CACPC,OAAQ,CACPC,YAAa,SADN,CAEPC,cAAe,CAFR,CAGPC,aAAc,CAHP,CAIPC,UAAW,CAJJ,CADD,CAOPC,YAAa,CACZC,QAAS,CADG,CAEZC,gBAAiB,oBAFL,CAGZH,UAAW,CAHC,CAPN,CANa,CAmBrBI,aAAc,mCAAU,CACvBH,YAAa,CAAEC,QAASG,MAAQ,CAAnB,CADU,CAAV,EAnBO,CAAtB","file":"index.js","sourcesContent":["import React, { Component } from \"react\";\nimport RNDrawer from \"react-native-drawer\";\nimport PropTypes from \"prop-types\";\n\nexport default class Drawer extends Component {\n\tconstructor(props) {\n\t\tsuper(props);\n\t}\n\trender() {\n\t\treturn (this._root = c)} {...this.props} />;\n\t}\n}\n\nDrawer.defaultProps = {\n\ttype: \"overlay\",\n\ttapToClose: true,\n\topenDrawerOffset: 0.2,\n\tpanCloseMask: 0.2,\n\tclosedDrawerOffset: 0,\n\tstyles: {\n\t\tdrawer: {\n\t\t\tshadowColor: \"#000000\",\n\t\t\tshadowOpacity: 0,\n\t\t\tshadowRadius: 0,\n\t\t\televation: 5,\n\t\t},\n\t\tmainOverlay: {\n\t\t\topacity: 0,\n\t\t\tbackgroundColor: \"rgba(0, 0, 0, 0.8)\",\n\t\t\televation: 8,\n\t\t},\n\t},\n\ttweenHandler: ratio => ({\n\t\tmainOverlay: { opacity: ratio / 2 },\n\t}),\n};\n"]} \ No newline at end of file diff --git a/dist/src/basic/Fab.js b/dist/src/basic/Fab.js index 22eb41e90..743967861 100644 --- a/dist/src/basic/Fab.js +++ b/dist/src/basic/Fab.js @@ -1,452 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.Fab=undefined;var _jsxFileName="src/basic/Fab.js";var _extends=Object.assign||function(target){for(var i=1;i,\n active: boolean\n };\n constructor(props) {\n super(props);\n this.containerHeight = new Animated.Value(56);\n this.containerWidth = new Animated.Value(0);\n this.buttonScale = new Animated.Value(0);\n this.state = {\n buttons: undefined,\n active: false\n };\n }\n\n fabTopValue(\n pos\n ): ?{ top: ?number, bottom: ?number, left: ?number, right: ?number } {\n if (pos === \"topLeft\") {\n return {\n top: 20,\n bottom: undefined,\n left: 20,\n right: undefined\n };\n } else if (pos === \"bottomRight\") {\n return {\n top: undefined,\n bottom: 20,\n left: undefined,\n right: 20\n };\n } else if (pos === \"bottomLeft\") {\n return {\n top: undefined,\n bottom: 20,\n left: 20,\n right: undefined\n };\n } else if (pos === \"topRight\") {\n return {\n top: 20,\n bottom: undefined,\n left: undefined,\n right: 20\n };\n }\n }\n\n fabOtherBtns(direction, i) {\n if (direction === \"up\") {\n return {\n top: undefined,\n bottom:\n this.props.active === false\n ? Platform.OS === \"ios\" ? 50 : 5\n : i * 50 + 65,\n left: 8,\n right: 0\n };\n } else if (direction === \"left\") {\n return {\n top: 8,\n bottom: 0,\n left:\n this.props.active === false\n ? Platform.OS === \"ios\" ? 8 : 8\n : -(i * 50 + 58),\n right: 0\n };\n } else if (direction === \"down\") {\n return {\n top:\n this.props.active === false\n ? Platform.OS === \"ios\" ? 50 : 8\n : i * 50 + 73,\n bottom: 0,\n left: 8,\n right: 0\n };\n } else if (direction === \"right\") {\n return {\n top: 8,\n bottom: 0,\n left:\n this.props.active === false\n ? Platform.OS === \"ios\" ? 50 : 8\n : i * 50 + 73,\n right: 0\n };\n }\n }\n\n getInitialStyle(iconStyle) {\n return {\n fab: {\n height: 56,\n width: 56,\n borderRadius: 28,\n elevation: 4,\n shadowColor: \"#000\",\n shadowOffset: { width: 0, height: 2 },\n shadowOpacity: 0.4,\n justifyContent: \"center\",\n alignItems: \"center\",\n shadowRadius: 2,\n position: \"absolute\",\n bottom: 0,\n backgroundColor: \"blue\"\n },\n container: {\n position: \"absolute\",\n top: this.props.position\n ? this.fabTopValue(this.props.position).top\n : undefined,\n bottom: this.props.position\n ? this.fabTopValue(this.props.position).bottom\n : 20,\n right: this.props.position\n ? this.fabTopValue(this.props.position).right\n : 20,\n left: this.props.position\n ? this.fabTopValue(this.props.position).left\n : undefined,\n width: 56,\n height: this.containerHeight,\n flexDirection: this.props.direction\n ? this.props.direction === \"left\" || this.props.direction === \"right\"\n ? \"row\"\n : \"column\"\n : \"column\",\n alignItems: \"center\"\n },\n iconStyle: {\n color: \"#fff\",\n fontSize: 24,\n lineHeight: Platform.OS == \"ios\" ? 27 : undefined,\n ...iconStyle\n },\n buttonStyle: {\n position: \"absolute\",\n height: 40,\n width: 40,\n left: 7,\n borderRadius: 20,\n transform: this.state.active\n ? [{ scale: new Animated.Value(1) }]\n : [{ scale: this.buttonScale }],\n marginBottom: 10,\n backgroundColor: \"blue\"\n }\n };\n }\n\n getContainerStyle() {\n return _.merge(this.getInitialStyle().container, this.props.containerStyle);\n }\n\n prepareFabProps() {\n var defaultProps = {\n style: this.getInitialStyle().fab\n };\n var incomingProps = _.clone(this.props);\n delete incomingProps.onPress;\n\n return computeProps(incomingProps, defaultProps);\n }\n\n getOtherButtonStyle(child, i) {\n const type = {\n top: this.props.direction\n ? this.fabOtherBtns(this.props.direction, i).top\n : undefined,\n left: this.props.direction\n ? this.fabOtherBtns(this.props.direction, i).left\n : 8,\n right: this.props.direction\n ? this.fabOtherBtns(this.props.direction, i).right\n : 0,\n bottom: this.props.direction\n ? this.fabOtherBtns(this.props.direction, i).bottom\n : this.props.active === false\n ? Platform.OS === \"ios\" ? 8 : 8\n : i * 50 + 50\n };\n\n return _.merge(this.getInitialStyle().buttonStyle, StyleSheet.flatten(child.props.style), type);\n }\n prepareButtonProps(child) {\n var inp = _.clone(child.props);\n delete inp.style;\n\n var defaultProps = {};\n\n return computeProps(inp, defaultProps);\n }\n\n componentDidMount() {\n let childrenArray = React.Children.toArray(this.props.children);\n let icon = _.remove(childrenArray, item => {\n if (item.type.displayName === \"Styled(Button)\") {\n return true;\n }\n });\n this.setState({\n buttons: icon.length\n });\n this.activeTimer = setTimeout(() => {\n this.setState({\n active: this.props.active\n });\n }, 0);\n }\n\n componentWillUnmount() {\n if (this.activeTimer) {\n clearTimeout(this.activeTimer);\n }\n }\n\n renderFab() {\n let childrenArray = React.Children.toArray(this.props.children);\n let icon = _.remove(childrenArray, item => {\n if (item.type.displayName === \"Styled(Button)\") {\n return true;\n }\n });\n // this.setState({\n // buttons: icon.length\n // });\n return React.cloneElement(childrenArray[0], {\n style: this.getInitialStyle(childrenArray[0].props.style).iconStyle\n });\n }\n\n renderButtons() {\n let childrenArray = React.Children.toArray(this.props.children);\n // let icon = _.remove(childrenArray, item => {\n // \tif (item.type == Icon) {\n // \t\treturn true;\n // \t}\n // });\n\n let newChildren = [];\n\n {\n childrenArray.slice(1).map((child, i) => {\n newChildren.push(\n \n {child.props.children}\n \n );\n });\n }\n return newChildren;\n }\n upAnimate() {\n if (!this.props.active) {\n Animated.spring(this.containerHeight, {\n toValue: this.state.buttons * 51.3 + 56\n }).start();\n Animated.spring(this.buttonScale, {\n toValue: 1\n }).start();\n } else {\n this.setState({\n active: false\n });\n Animated.spring(this.containerHeight, {\n toValue: 56\n }).start();\n Animated.spring(this.buttonScale, {\n toValue: 0\n }).start();\n }\n }\n // componentWillReceiveProps(nextProps) {\n // \tconst { props: { direction, position } } = this;\n // \tif (this.props.direction) {\n // \t\tif (this.props.direction === 'up') {\n // \t\t\tthis.upAnimate(nextProps.active);\n // \t\t} else if (this.props.direction === 'left') {\n // \t\t\tthis.leftAnimate(nextProps.active);\n // \t\t} else if (this.props.direction === 'right') {\n // \t\t\tthis.rightAnimate(nextProps.active);\n // \t\t} else if (this.props.direction === 'down') {\n // \t\t\tthis.downAnimate(nextProps.active);\n // \t\t}\n // \t} else {\n // \t\tthis.upAnimate(nextProps.active);\n // \t}\n // }\n\n leftAnimate() {\n if (!this.props.active) {\n Animated.spring(this.containerWidth, {\n toValue: this.state.buttons * 51.3 + 56\n }).start();\n Animated.spring(this.buttonScale, {\n toValue: 1\n }).start();\n } else {\n this.setState({\n active: false\n });\n Animated.spring(this.containerHeight, {\n toValue: 56\n }).start();\n Animated.spring(this.buttonScale, {\n toValue: 0\n }).start();\n }\n }\n\n rightAnimate() {\n if (!this.props.active) {\n Animated.spring(this.containerWidth, {\n toValue: this.state.buttons * 51.3 + 56\n }).start();\n Animated.spring(this.buttonScale, {\n toValue: 1\n }).start();\n } else {\n this.setState({\n active: false\n });\n Animated.spring(this.containerHeight, {\n toValue: 56\n }).start();\n Animated.spring(this.buttonScale, {\n toValue: 0\n }).start();\n }\n }\n\n downAnimate() {\n if (!this.props.active) {\n Animated.spring(this.containerHeight, {\n toValue: 56\n }).start();\n Animated.spring(this.buttonScale, {\n toValue: 1\n }).start();\n } else {\n this.setState({\n active: false\n });\n Animated.spring(this.containerHeight, {\n toValue: 56\n }).start();\n Animated.spring(this.buttonScale, {\n toValue: 0\n }).start();\n }\n }\n _animate() {\n const { props: { direction, position } } = this;\n if (this.props.direction) {\n if (this.props.direction === \"up\") {\n this.upAnimate();\n } else if (this.props.direction === \"left\") {\n this.leftAnimate();\n } else if (this.props.direction === \"right\") {\n this.rightAnimate();\n } else if (this.props.direction === \"down\") {\n this.downAnimate();\n }\n } else {\n this.upAnimate();\n }\n }\n\n fabOnPress() {\n if (this.props.onPress) {\n this.props.onPress();\n this._animate();\n this.activeTimer = setTimeout(() => {\n this.setState({\n active: this.props.active\n });\n }, 100);\n }\n }\n\n render() {\n const { props: { active } } = this;\n\n return (\n \n {this.renderButtons()}\n {Platform.OS === \"ios\" ||\n variables.androidRipple === false ||\n Platform[\"Version\"] <= 21 ? (\n this.fabOnPress()}\n {...this.prepareFabProps()}\n activeOpacity={1}\n >\n {this.renderFab()}\n \n ) : (\n this.fabOnPress()}\n {...this.prepareFabProps()}\n >\n \n {this.renderFab()}\n \n \n )}\n \n );\n }\n}\nconst StyledFab = connectStyle(\"NativeBase.Fab\", {}, mapPropsToStyleNames)(Fab);\nexport { StyledFab as Fab };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Fab.js"],"names":["Dimensions","get","height","width","AnimatedFab","Animated","createAnimatedComponent","Button","Fab","props","containerHeight","Value","containerWidth","buttonScale","state","buttons","undefined","active","pos","top","bottom","left","right","direction","i","Platform","OS","iconStyle","fab","borderRadius","elevation","shadowColor","shadowOffset","shadowOpacity","justifyContent","alignItems","shadowRadius","position","backgroundColor","container","fabTopValue","flexDirection","color","fontSize","lineHeight","buttonStyle","transform","scale","marginBottom","_","merge","getInitialStyle","containerStyle","defaultProps","style","incomingProps","clone","onPress","child","type","fabOtherBtns","StyleSheet","flatten","inp","childrenArray","React","Children","toArray","children","icon","remove","item","displayName","setState","length","activeTimer","setTimeout","clearTimeout","cloneElement","newChildren","slice","map","push","getOtherButtonStyle","prepareButtonProps","spring","toValue","start","upAnimate","leftAnimate","rightAnimate","downAnimate","_animate","getContainerStyle","renderButtons","variables","androidRipple","fabOnPress","prepareFabProps","renderFab","Component","StyledFab","mapPropsToStyleNames"],"mappings":"i1BAAA,4B,2CACA,qC,mDACA,mD,yDAEA,yCASA,4BACA,gCACA,gCACA,uD,iDACA,8B,6CACA,mE,yEACA,iE,q5BAE0BA,wBAAWC,GAAX,CAAe,QAAf,C,CAAlBC,M,iBAAAA,M,CAAQC,K,iBAAAA,K,CAEhB,GAAMC,aAAcC,sBAASC,uBAAT,CAAiCC,cAAjC,CAApB,C,GAEMC,I,gDASJ,aAAYC,KAAZ,CAAmB,2HACXA,KADW,GAEjB,MAAKC,eAAL,CAAuB,GAAIL,uBAASM,KAAb,CAAmB,EAAnB,CAAvB,CACA,MAAKC,cAAL,CAAsB,GAAIP,uBAASM,KAAb,CAAmB,CAAnB,CAAtB,CACA,MAAKE,WAAL,CAAmB,GAAIR,uBAASM,KAAb,CAAmB,CAAnB,CAAnB,CACA,MAAKG,KAAL,CAAa,CACXC,QAASC,SADE,CAEXC,OAAQ,KAFG,CAAb,CALiB,aASlB,C,gEAGCC,G,CACmE,CACnE,GAAIA,MAAQ,SAAZ,CAAuB,CACrB,MAAO,CACLC,IAAK,EADA,CAELC,OAAQJ,SAFH,CAGLK,KAAM,EAHD,CAILC,MAAON,SAJF,CAAP,CAMD,CAPD,IAOO,IAAIE,MAAQ,aAAZ,CAA2B,CAChC,MAAO,CACLC,IAAKH,SADA,CAELI,OAAQ,EAFH,CAGLC,KAAML,SAHD,CAILM,MAAO,EAJF,CAAP,CAMD,CAPM,IAOA,IAAIJ,MAAQ,YAAZ,CAA0B,CAC/B,MAAO,CACLC,IAAKH,SADA,CAELI,OAAQ,EAFH,CAG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,iBACX,GAAI,KAAK/E,KAAL,CAAWgD,OAAf,CAAwB,CACtB,KAAKhD,KAAL,CAAWgD,OAAX,GACA,KAAKmC,QAAL,GACA,KAAKjB,WAAL,CAAmBC,WAAW,UAAM,CAClC,OAAKH,QAAL,CAAc,CACZxD,OAAQ,OAAKR,KAAL,CAAWQ,MADP,CAAd,EAGD,CAJkB,CAIhB,GAJgB,CAAnB,CAKD,CACF,C,uCAEQ,oBACUA,OADV,CACuB,IADvB,CACCR,KADD,CACUQ,MADV,CAGP,MACE,+BAAC,qBAAD,CAAU,IAAV,EAAe,MAAO,KAAK4E,iBAAL,EAAtB,kDACG,KAAKC,aAAL,EADH,CAEGrE,sBAASC,EAAT,GAAgB,KAAhB,EACDqE,mBAAUC,aAAV,GAA4B,KAD3B,EAEDvE,sBAAS,SAAT,GAAuB,EAFtB,CAGC,8BAAC,6BAAD,WACE,QAAS,yBAAM,QAAKwE,UAAL,EAAN,EADX,EAEM,KAAKC,eAAL,EAFN,EAGE,cAAe,CAHjB,mDAKG,KAAKC,SAAL,EALH,CAHD,CAWC,8BAAC,oCAAD,WACE,QAAS,yBAAM,QAAKF,UAAL,EAAN,EADX,EAEM,KAAKC,eAAL,EAFN,oDAIE,8BAAC,iBAAD,EAAM,MAAO,CAAC,KAAK/C,eAAL,GAAuBvB,GAAxB,CAA6B,KAAKnB,KAAL,CAAW6C,KAAxC,CAAb,kDACG,KAAK6C,SAAL,EADH,CAJF,CAbJ,CADF,CAyBD,C,iBAtaeC,gB,EAwalB,GAAMC,WAAY,yCAAa,gBAAb,CAA+B,EAA/B,CAAmCC,8BAAnC,EAAyD9F,GAAzD,CAAlB,C,QACsBA,G,CAAb6F,S","file":"Fab.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport computeProps from \"../utils/computeProps\";\n// import Button from './../Button';\nimport {\n Platform,\n Animated,\n Dimensions,\n TouchableOpacity,\n TouchableNativeFeedback,\n View,\n StyleSheet\n} from \"react-native\";\nimport { Icon } from \"./Icon\";\nimport { IconNB } from \"./IconNB\";\nimport { Button } from \"./Button\";\nimport variables from \"./../theme/variables/platform\";\nimport _ from \"lodash\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\nimport { connectStyle } from \"native-base-shoutem-theme\";\n\nconst { height, width } = Dimensions.get(\"window\");\n\nconst AnimatedFab = Animated.createAnimatedComponent(Button);\n\nclass Fab extends Component {\n props: Animated.props & {\n position: ?string\n };\n\n state: {\n buttons: void | React$Element\n );\n }\n\n renderHeader() {\n return this.props.renderHeader ? (\n this.props.renderHeader(() => this._setModalVisible(false))\n ) : (\n
\n \n {\n this._setModalVisible(false);\n }}\n >\n \n {this.props.headerBackButtonText || \"Back\"}\n \n \n \n \n \n {this.props.iosHeader || \"Select One\"}\n \n \n \n
\n );\n }\n\n render() {\n return (\n (this._root = c)}>\n {this.renderButton()}\n {\n this._setModalVisible(false);\n }}\n >\n \n {this.renderHeader()}\n String(index)}\n renderItem={({ item }) => (\n {\n this._setModalVisible(false);\n this.props.onValueChange(item.props.value);\n this.setState({ current: item.props.label });\n }}\n >\n \n \n {item.props.label}\n \n \n \n {item.props.value === this.props.selectedValue ? (\n \n ) : (\n \n )}\n \n \n )}\n />\n \n \n \n );\n }\n}\n\nPickerNB.Item = createReactClass({\n render() {\n return ;\n }\n});\n\nPickerNB.propTypes = {\n ...ViewPropTypes,\n renderButton: PropTypes.func\n};\n\nconst StyledPickerNB = connectStyle(\n \"NativeBase.PickerNB\",\n {},\n mapPropsToStyleNames\n)(PickerNB);\n\nexport { StyledPickerNB as PickerNB };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Picker.ios.js"],"names":["PickerNB","props","state","modalVisible","currentLabel","getLabel","dataSource","getChildren","children","nextProps","nextLabel","currentDS","nextDS","setState","picker","pickerItem","visible","defaultProps","style","getInitialStyle","itemStyle","item","_","find","child","value","selectedValue","get","Array","isArray","concat","React","cloneElement","iosIcon","fontSize","lineHeight","onPress","enabled","undefined","_setModalVisible","text","placeholder","renderButton","selectedItem","getSelectedItem","textStyle","note","placeholderStyle","renderIcon","renderHeader","headerStyle","shadowOffset","shadowColor","shadowRadius","shadowOpacity","marginLeft","headerBackButtonStyle","headerBackButtonTextStyle","headerBackButtonText","headerTitleStyle","iosHeader","_root","c","supportedOrientations","modalStyle","index","String","onValueChange","current","label","itemTextStyle","Component","Item","render","propTypes","ViewPropTypes","PropTypes","func","StyledPickerNB","mapPropsToStyleNames"],"mappings":"61BAAA,4B,2CACA,qC,mDACA,oD,iEACA,yCACA,8B,6CACA,4BACA,4BACA,gCACA,8BACA,sCACA,oCACA,gCACA,gCACA,8BACA,4BACA,8BACA,4BACA,iEACA,mD,yDAEA,mE,68BAEMA,S,qDACJ,kBAAYC,KAAZ,CAAmB,0IACXA,KADW,GAEjB,MAAKC,KAAL,CAAa,CACXC,aAAc,KADH,CAEXC,aAAc,MAAKC,QAAL,CAAcJ,KAAd,CAFH,CAGXK,WAAY,MAAKC,WAAL,CAAiBN,MAAMO,QAAvB,CAHD,CAAb,CAFiB,aAOlB,C,iGAEyBC,S,CAAW,CACnC,GAAML,cAAe,KAAKF,KAAL,CAAWE,YAAhC,CACA,GAAMM,WAAY,KAAKL,QAAL,CAAcI,SAAd,CAAlB,CACA,GAAME,WAAY,KAAKT,KAAL,CAAWI,UAA7B,CACA,GAAMM,QAAS,KAAKL,WAAL,CAAiBE,UAAUD,QAA3B,CAAf,CAEA,GAAIJ,eAAiBM,SAArB,CAAgC,CAC9B,KAAKG,QAAL,CAAc,CACZT,aAAcM,SADF,CAAd,EAGD,CACD,GAAIC,YAAcC,MAAlB,CAA0B,CACxB,KAAKC,QAAL,CAAc,CACZP,WAAYM,MADA,CAAd,EAGD,CACF,C,yDAEiB,CAChB,MAAO,CACLE,OAAQ,EADH,CAILC,WAAY,EAJP,CAAP,CAMD,C,0DACgBC,O,CAAS,CACxB,KAAKH,QAAL,CAAc,CAAEV,aAAca,OAAhB,CAAd,EACD,C,2DAEkB,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CAIE,QAAS,kBAAM,CACb,OAAKmB,gBAAL,CAAsB,KAAtB,EACA,OAAKtC,KAAL,CAAWkE,aAAX,CAAyB9C,KAAKpB,KAAL,CAAWwB,KAApC,EACA,OAAKZ,QAAL,CAAc,CAAEuD,QAAS/C,KAAKpB,KAAL,CAAWoE,KAAtB,CAAd,EACD,CARH,kDAUE,8BAAC,UAAD,mDACE,8BAAC,UAAD,EAAM,MAAO,OAAKpE,KAAL,CAAWqE,aAAxB,kDACGjD,KAAKpB,KAAL,CAAWoE,KADd,CADF,CAVF,CAeE,8BAAC,YAAD,mDACGhD,KAAKpB,KAAL,CAAWwB,KAAX,GAAqB,OAAKxB,KAAL,CAAWyB,aAAhC,CACC,8BAAC,YAAD,EAAO,aAAP,kDADD,CAGC,8BAAC,YAAD,EAAO,SAAU,KAAjB,kDAJJ,CAfF,CADU,EAHd,kDAFF,CATF,CAFF,CADF,CA+CD,C,sBAhNoB6C,gB,EAmNvBvE,SAASwE,IAAT,CAAgB,+BAAiB,oBAC/BC,MAD+B,kBACtB,CACP,MAAO,+BAAC,mBAAD,CAAQ,IAAR,aAAiB,KAAKxE,KAAL,EAAjB,oDAAP,CACD,CAH8B,CAAjB,CAAhB,CAMAD,SAAS0E,SAAT,aACKC,0BADL,EAEEjC,aAAckC,oBAAUC,IAF1B,GAKA,GAAMC,gBAAiB,yCACrB,qBADqB,CAErB,EAFqB,CAGrBC,8BAHqB,EAIrB/E,QAJqB,CAAvB,C,QAM2BA,Q,CAAlB8E,c","file":"Picker.ios.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport createReactClass from \"create-react-class\";\nimport { Picker, Modal, View, ViewPropTypes, FlatList } from \"react-native\";\nimport _ from \"lodash\";\nimport { Text } from \"./Text\";\nimport { List } from \"./List\";\nimport { IconNB as Icon } from \"./IconNB\";\nimport { Radio } from \"./Radio\";\nimport { Container } from \"./Container\";\nimport { ListItem } from \"./ListItem\";\nimport { Button } from \"./Button\";\nimport { Header } from \"./Header\";\nimport { Title } from \"./Title\";\nimport { Left } from \"./Left\";\nimport { Right } from \"./Right\";\nimport { Body } from \"./Body\";\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport computeProps from \"../utils/computeProps\";\n\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass PickerNB extends Component {\n constructor(props) {\n super(props);\n this.state = {\n modalVisible: false,\n currentLabel: this.getLabel(props),\n dataSource: this.getChildren(props.children)\n };\n }\n\n componentWillReceiveProps(nextProps) {\n const currentLabel = this.state.currentLabel;\n const nextLabel = this.getLabel(nextProps);\n const currentDS = this.state.dataSource;\n const nextDS = this.getChildren(nextProps.children);\n\n if (currentLabel !== nextLabel) {\n this.setState({\n currentLabel: nextLabel\n });\n }\n if (currentDS !== nextDS) {\n this.setState({\n dataSource: nextDS\n });\n }\n }\n\n getInitialStyle() {\n return {\n picker: {\n // alignItems: 'flex-end'\n },\n pickerItem: {}\n };\n }\n _setModalVisible(visible) {\n this.setState({ modalVisible: visible });\n }\n\n prepareRootProps() {\n const defaultProps = {\n style: this.getInitialStyle().picker,\n itemStyle: this.getInitialStyle().pickerItem\n };\n\n return computeProps(this.props, defaultProps);\n }\n\n getLabel(props) {\n let children = this.getChildren(props.children);\n const item = _.find(\n children,\n child => child.props.value === props.selectedValue\n );\n return _.get(item, \"props.label\");\n }\n\n getSelectedItem() {\n return _.find(\n this.props.children,\n child => child.props.value === this.props.selectedValue\n );\n }\n\n getChildren(children) {\n if (children && !Array.isArray(children)) {\n return [].concat(children);\n }\n return children;\n }\n\n renderIcon() {\n return React.cloneElement(this.props.iosIcon, {\n style: [\n {\n fontSize: 22,\n lineHeight: 26\n },\n { ...this.props.iosIcon.props.style }\n ]\n });\n }\n\n renderButton() {\n const onPress = () => {\n if (this.props.enabled !== undefined && !this.props.enabled) return;\n this._setModalVisible(true);\n };\n const text = this.state.currentLabel\n ? this.state.currentLabel\n : this.props.placeholder;\n if (this.props.renderButton) {\n return this.props.renderButton({\n onPress,\n text,\n picker: this,\n selectedItem: this.getSelectedItem()\n });\n }\n return (\n \n {this.state.currentLabel ? (\n \n {this.state.currentLabel}\n \n ) : (\n \n {this.props.placeholder}\n \n )}\n {this.props.iosIcon === undefined ? null : this.renderIcon()}\n \n );\n }\n\n renderHeader() {\n return this.props.renderHeader ? (\n this.props.renderHeader(() => this._setModalVisible(false))\n ) : (\n
\n \n {\n this._setModalVisible(false);\n }}\n >\n \n {this.props.headerBackButtonText || \"Back\"}\n \n \n \n \n \n {this.props.iosHeader || \"Select One\"}\n \n \n \n
\n );\n }\n\n render() {\n return (\n (this._root = c)}>\n {this.renderButton()}\n {\n this._setModalVisible(false);\n }}\n >\n \n {this.renderHeader()}\n String(index)}\n renderItem={({ item }) => (\n {\n this._setModalVisible(false);\n this.props.onValueChange(item.props.value);\n this.setState({ current: item.props.label });\n }}\n >\n \n \n {item.props.label}\n \n \n \n {item.props.value === this.props.selectedValue ? (\n \n ) : (\n \n )}\n \n \n )}\n />\n \n \n \n );\n }\n}\n\nPickerNB.Item = createReactClass({\n render() {\n return ;\n }\n});\n\nPickerNB.propTypes = {\n ...ViewPropTypes,\n renderButton: PropTypes.func\n};\n\nconst StyledPickerNB = connectStyle(\n \"NativeBase.PickerNB\",\n {},\n mapPropsToStyleNames\n)(PickerNB);\n\nexport { StyledPickerNB as PickerNB };\n"]} \ No newline at end of file diff --git a/dist/src/basic/Picker.js b/dist/src/basic/Picker.js index d887d2355..c54a65a5a 100644 --- a/dist/src/basic/Picker.js +++ b/dist/src/basic/Picker.js @@ -1,35 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.PickerNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i (this._root = c)} {...this.props}>\n {this.props.children}\n \n );\n }\n}\n\nPickerNB.Item = createReactClass({\n render() {\n return ;\n }\n});\n\nPickerNB.propTypes = {\n ...Picker.propTypes\n};\n\nconst StyledPickerNB = connectStyle(\n \"NativeBase.PickerNB\",\n {},\n mapPropsToStyleNames\n)(PickerNB);\n\nexport { StyledPickerNB as PickerNB };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Picker.js"],"names":["PickerNB","_root","c","props","children","Component","Item","render","propTypes","Picker","StyledPickerNB","mapPropsToStyleNames"],"mappings":"y1BAAA,4B,2CACA,qC,mDACA,oD,iEACA,yCACA,iEACA,mE,68BAEqBA,S,yRACV,iBACP,MACE,+BAAC,mBAAD,WAAQ,IAAK,sBAAM,QAAKC,KAAL,CAAaC,CAAnB,EAAb,EAAwC,KAAKC,KAA7C,mDACG,KAAKA,KAAL,CAAWC,QADd,CADF,CAKD,C,sBAPmCC,gB,kBAAjBL,Q,CAUrBA,SAASM,IAAT,CAAgB,+BAAiB,oBAC/BC,MAD+B,kBACtB,CACP,MAAO,+BAAC,mBAAD,CAAQ,IAAR,aAAiB,KAAKJ,KAAtB,mDAAP,CACD,CAH8B,CAAjB,CAAhB,CAMAH,SAASQ,SAAT,aACKC,oBAAOD,SADZ,EAIA,GAAME,gBAAiB,yCACrB,qBADqB,CAErB,EAFqB,CAGrBC,8BAHqB,EAIrBX,QAJqB,CAAvB,C,QAM2BA,Q,CAAlBU,c","file":"Picker.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport createReactClass from \"create-react-class\";\nimport { Picker } from \"react-native\";\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nexport default class PickerNB extends Component {\n render() {\n return (\n (this._root = c)} {...this.props}>\n {this.props.children}\n \n );\n }\n}\n\nPickerNB.Item = createReactClass({\n render() {\n return ;\n }\n});\n\nPickerNB.propTypes = {\n ...Picker.propTypes\n};\n\nconst StyledPickerNB = connectStyle(\n \"NativeBase.PickerNB\",\n {},\n mapPropsToStyleNames\n)(PickerNB);\n\nexport { StyledPickerNB as PickerNB };\n"]} \ No newline at end of file diff --git a/dist/src/basic/PickerItem.js b/dist/src/basic/PickerItem.js index d61533f6d..69235f069 100644 --- a/dist/src/basic/PickerItem.js +++ b/dist/src/basic/PickerItem.js @@ -1,21 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.Item=undefined;var _extends=Object.assign||function(target){for(var i=1;i (this._root = c)} {...this.props} />;\n\t}\n}\n\nItem.propTypes = {\n\t...Picker.Item.propTypes,\n};\n\nconst StyledItem = connectStyle(\"NativeBase.Item\", {}, mapPropsToStyleNames)(Item);\n\nexport { StyledItem as Item };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/PickerItem.js"],"names":["Item","_root","c","props","Component","propTypes","Picker","StyledItem","mapPropsToStyleNames"],"mappings":"y1BAAA,4B,2CACA,qC,mDACA,yCAEA,iEACA,mE,68BAEMA,K,iQACI,iBACR,MAAO,+BAAC,mBAAD,CAAQ,IAAR,WAAa,IAAK,sBAAM,QAAKC,KAAL,CAAaC,CAAnB,EAAlB,EAA6C,KAAKC,KAAlD,mDAAP,CACA,C,kBAHiBC,gB,EAMnBJ,KAAKK,SAAL,aACIC,oBAAON,IAAP,CAAYK,SADhB,EAIA,GAAME,YAAa,yCAAa,iBAAb,CAAgC,EAAhC,CAAoCC,8BAApC,EAA0DR,IAA1D,CAAnB,C,QAEuBA,I,CAAdO,U","file":"PickerItem.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Picker } from \"react-native\";\n\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass Item extends Component {\n\trender() {\n\t\treturn (this._root = c)} {...this.props} />;\n\t}\n}\n\nItem.propTypes = {\n\t...Picker.Item.propTypes,\n};\n\nconst StyledItem = connectStyle(\"NativeBase.Item\", {}, mapPropsToStyleNames)(Item);\n\nexport { StyledItem as Item };\n"]} \ No newline at end of file diff --git a/dist/src/basic/Radio.js b/dist/src/basic/Radio.js index 56e552c23..3670c74e5 100644 --- a/dist/src/basic/Radio.js +++ b/dist/src/basic/Radio.js @@ -1,97 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.Radio=undefined;var _extends=Object.assign||function(target){for(var i=1;i (this._root = c)}\n {...this.prepareRootProps()}\n >\n {Platform.OS === \"ios\" && !this.props.standardStyle ? (\n this.props.selected && (\n \n )\n ) : (\n \n )}\n \n );\n }\n}\n\nRadio.propTypes = {\n ...TouchableOpacity.propTypes,\n selected: PropTypes.bool,\n standardStyle: PropTypes.bool\n};\n\nconst StyledRadio = connectStyle(\"NativeBase.Radio\", {}, mapPropsToStyleNames)(\n Radio\n);\n\nexport { StyledRadio as Radio };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Radio.js"],"names":["Radio","defaultProps","standardStyle","props","variables","context","theme","variable","platformStyle","platform","_root","c","prepareRootProps","Platform","OS","selected","color","selectedColor","radioColor","lineHeight","height","fontSize","radioBtnSize","undefined","radioSelectedColorAndroid","radioBtnLineHeight","Component","contextTypes","PropTypes","object","propTypes","TouchableOpacity","bool","StyledRadio","mapPropsToStyleNames"],"mappings":"q1BAAA,4B,2CACA,qC,mDACA,yCACA,iEACA,4D,iDACA,mE,yEACA,qD,iDACA,mD,67BAEMA,M,2RAIe,CACjB,GAAMC,cAAe,CACnBC,cAAe,KADI,CAArB,CAIA,MAAO,2BAAa,KAAKC,KAAlB,CAAyBF,YAAzB,CAAP,CACD,C,uCAEQ,iBACP,GAAMG,WAAY,KAAKC,OAAL,CAAaC,KAAb,CACd,KAAKD,OAAL,CAAaC,KAAb,CAAmB,4BAAnB,EAAiDF,SADnC,CAEdG,kBAFJ,CAGA,GAAMC,eAAgBJ,UAAUI,aAAhC,CACA,GAAMC,UAAWL,UAAUK,QAA3B,CAEA,MACE,+BAAC,6BAAD,WACE,IAAK,sBAAM,QAAKC,KAAL,CAAaC,CAAnB,EADP,EAEM,KAAKC,gBAAL,EAFN,mDAIGC,sBAASC,EAAT,GAAgB,KAAhB,EAAyB,CAAC,KAAKX,KAAL,CAAWD,aAArC,CACC,KAAKC,KA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":"Radio.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { TouchableOpacity, Platform } from \"react-native\";\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport Icon from \"react-native-vector-icons/Ionicons\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\nimport variable from \"../theme/variables/platform\";\nimport computeProps from \"../utils/computeProps\";\n\nclass Radio extends Component {\n static contextTypes = {\n theme: PropTypes.object\n };\n prepareRootProps() {\n const defaultProps = {\n standardStyle: false\n };\n\n return computeProps(this.props, defaultProps);\n }\n\n render() {\n const variables = this.context.theme\n ? this.context.theme[\"@@shoutem.theme/themeStyle\"].variables\n : variable;\n const platformStyle = variables.platformStyle;\n const platform = variables.platform;\n\n return (\n (this._root = c)}\n {...this.prepareRootProps()}\n >\n {Platform.OS === \"ios\" && !this.props.standardStyle ? (\n this.props.selected && (\n \n )\n ) : (\n \n )}\n \n );\n }\n}\n\nRadio.propTypes = {\n ...TouchableOpacity.propTypes,\n selected: PropTypes.bool,\n standardStyle: PropTypes.bool\n};\n\nconst StyledRadio = connectStyle(\"NativeBase.Radio\", {}, mapPropsToStyleNames)(\n Radio\n);\n\nexport { StyledRadio as Radio };\n"]} \ No newline at end of file diff --git a/dist/src/basic/Right.js b/dist/src/basic/Right.js index d3ac6b25a..de2905480 100644 --- a/dist/src/basic/Right.js +++ b/dist/src/basic/Right.js @@ -1,28 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.Right=undefined;var _extends=Object.assign||function(target){for(var i=1;i (this._root = c)} {...this.props} />;\n }\n}\n\nRight.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledRight = connectStyle(\"NativeBase.Right\", {}, mapPropsToStyleNames)(\n Right\n);\n\nexport { StyledRight as Right };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Right.js"],"names":["Right","_root","c","props","Component","propTypes","ViewPropTypes","style","PropTypes","oneOfType","object","number","array","StyledRight","mapPropsToStyleNames"],"mappings":"q1BAAA,4B,2CACA,qC,mDACA,yCAEA,iEACA,mE,68BAEMA,M,uQACK,iBACP,MAAO,+BAAC,iBAAD,WAAM,IAAK,sBAAM,QAAKC,KAAL,CAAaC,CAAnB,EAAX,EAAsC,KAAKC,KAA3C,mDAAP,CACD,C,mBAHiBC,gB,EAMpBJ,MAAMK,SAAN,aACKC,0BADL,EAEEC,MAAOC,oBAAUC,SAAV,CAAoB,CACzBD,oBAAUE,MADe,CAEzBF,oBAAUG,MAFe,CAGzBH,oBAAUI,KAHe,CAApB,CAFT,GASA,GAAMC,aAAc,yCAAa,kBAAb,CAAiC,EAAjC,CAAqCC,8BAArC,EAClBd,KADkB,CAApB,C,QAIwBA,K,CAAfa,W","file":"Right.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { View, ViewPropTypes } from \"react-native\";\n\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass Right extends Component {\n render() {\n return (this._root = c)} {...this.props} />;\n }\n}\n\nRight.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledRight = connectStyle(\"NativeBase.Right\", {}, mapPropsToStyleNames)(\n Right\n);\n\nexport { StyledRight as Right };\n"]} \ No newline at end of file diff --git a/dist/src/basic/Root.js b/dist/src/basic/Root.js index 60a534f44..d879eabbe 100644 --- a/dist/src/basic/Root.js +++ b/dist/src/basic/Root.js @@ -1,45 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.Root=undefined;var _extends=Object.assign||function(target){for(var i=1;i (this._root = c)} {...this.props} style={{ flex: 1 }}>\n {this.props.children}\n {\n if (c) Toast.toastInstance = c;\n }}\n />\n {\n if (c)\n ActionSheet.actionsheetInstance = c;\n }}\n />\n \n );\n }\n}\n\nRoot.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledRoot = connectStyle(\"NativeBase.Root\", {}, mapPropsToStyleNames)(\n Root\n);\n\nexport { StyledRoot as Root };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Root.js"],"names":["Root","_root","c","props","flex","children","Toast","toastInstance","ActionSheet","actionsheetInstance","Component","propTypes","ViewPropTypes","style","PropTypes","oneOfType","object","number","array","StyledRoot","mapPropsToStyleNames"],"mappings":"m1BAAA,4B,2CACA,yCACA,qC,mDACA,iEACA,mE,yEACA,gDACA,0CACA,4B,o4BAEMA,K,iQACK,iBACP,MACE,+BAAC,iBAAD,WAAM,IAAK,sBAAM,QAAKC,KAAL,CAAaC,CAAnB,EAAX,EAAsC,KAAKC,KAA3C,EAAkD,MAAO,CAAEC,KAAM,CAAR,CAAzD,kDACG,KAAKD,KAAL,CAAWE,QADd,CAEE,8BAAC,8BAAD,EACE,IAAK,eAAK,CACR,GAAIH,CAAJ,CAAOI,+BAAMC,aAAN,CAAsBL,CAAtB,CACR,CAHH,iDAFF,CAOE,8BAAC,iCAAD,EACE,IAAK,eAAK,CACR,GAAIA,CAAJ,CACEM,kCAAYC,mBAAZ,CAAkCP,CAAlC,CACH,CAJH,iDAPF,CADF,CAgBD,C,kBAlBgBQ,gB,EAqBnBV,KAAKW,SAAL,aACKC,0BADL,EAEEC,MAAOC,oBAAUC,SAAV,CAAoB,CACzBD,oBAAUE,MADe,CAEzBF,oBAAUG,MAFe,CAGzBH,oBAAUI,KAHe,CAApB,CAFT,GASA,GAAMC,YAAa,yCAAa,iBAAb,CAAgC,EAAhC,CAAoCC,8BAApC,EACjBpB,IADiB,CAAnB,C,QAIuBA,I,CAAdmB,U","file":"Root.js","sourcesContent":["import React, { Component } from \"react\";\nimport { View, ViewPropTypes } from \"react-native\";\nimport PropTypes from \"prop-types\";\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\nimport { ToastContainer as Toast } from \"./ToastContainer\";\nimport { ActionSheetContainer as ActionSheet } from \"./Actionsheet\";\nimport { Text } from \"./Text\";\n\nclass Root extends Component {\n render() {\n return (\n (this._root = c)} {...this.props} style={{ flex: 1 }}>\n {this.props.children}\n {\n if (c) Toast.toastInstance = c;\n }}\n />\n {\n if (c)\n ActionSheet.actionsheetInstance = c;\n }}\n />\n \n );\n }\n}\n\nRoot.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledRoot = connectStyle(\"NativeBase.Root\", {}, mapPropsToStyleNames)(\n Root\n);\n\nexport { StyledRoot as Root };\n"]} \ No newline at end of file diff --git a/dist/src/basic/Segment.js b/dist/src/basic/Segment.js index f9e025a45..00c1730e8 100644 --- a/dist/src/basic/Segment.js +++ b/dist/src/basic/Segment.js @@ -1,28 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.Segment=undefined;var _extends=Object.assign||function(target){for(var i=1;i (this._root = c)} {...this.props} />;\n }\n}\n\nSegment.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledSegment = connectStyle(\n \"NativeBase.Segment\",\n {},\n mapPropsToStyleNames\n)(Segment);\nexport { StyledSegment as Segment };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Segment.js"],"names":["Segment","_root","c","props","Component","propTypes","ViewPropTypes","style","PropTypes","oneOfType","object","number","array","StyledSegment","mapPropsToStyleNames"],"mappings":"y1BAAA,4B,2CACA,qC,mDACA,yCACA,iEACA,mE,68BAEMA,Q,mRACK,iBACP,MAAO,+BAAC,iBAAD,WAAM,IAAK,sBAAM,QAAKC,KAAL,CAAaC,CAAnB,EAAX,EAAsC,KAAKC,KAA3C,kDAAP,CACD,C,qBAHmBC,gB,EAMtBJ,QAAQK,SAAR,aACKC,0BADL,EAEEC,MAAOC,oBAAUC,SAAV,CAAoB,CACzBD,oBAAUE,MADe,CAEzBF,oBAAUG,MAFe,CAGzBH,oBAAUI,KAHe,CAApB,CAFT,GASA,GAAMC,eAAgB,yCACpB,oBADoB,CAEpB,EAFoB,CAGpBC,8BAHoB,EAIpBd,OAJoB,CAAtB,C,QAK0BA,O,CAAjBa,a","file":"Segment.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { View, ViewPropTypes } from \"react-native\";\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass Segment extends Component {\n render() {\n return (this._root = c)} {...this.props} />;\n }\n}\n\nSegment.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledSegment = connectStyle(\n \"NativeBase.Segment\",\n {},\n mapPropsToStyleNames\n)(Segment);\nexport { StyledSegment as Segment };\n"]} \ No newline at end of file diff --git a/dist/src/basic/Separator.js b/dist/src/basic/Separator.js index 1659677fd..0221a941e 100644 --- a/dist/src/basic/Separator.js +++ b/dist/src/basic/Separator.js @@ -1,30 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.Separator=undefined;var _extends=Object.assign||function(target){for(var i=1;i (this._root = c)} {...this.props} />;\n }\n}\n\nSeparator.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledSeparator = connectStyle(\n \"NativeBase.Separator\",\n {},\n mapPropsToStyleNames\n)(Separator);\n\nexport { StyledSeparator as Separator };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Separator.js"],"names":["Separator","_root","c","props","Component","propTypes","ViewPropTypes","style","PropTypes","oneOfType","object","number","array","StyledSeparator","mapPropsToStyleNames"],"mappings":"61BAAA,4B,2CACA,qC,mDACA,yCAEA,iEACA,mE,68BAEMA,U,+RACK,iBACP,MAAO,+BAAC,iBAAD,WAAM,IAAK,sBAAM,QAAKC,KAAL,CAAaC,CAAnB,EAAX,EAAsC,KAAKC,KAA3C,mDAAP,CACD,C,uBAHqBC,gB,EAMxBJ,UAAUK,SAAV,aACKC,0BADL,EAEEC,MAAOC,oBAAUC,SAAV,CAAoB,CACzBD,oBAAUE,MADe,CAEzBF,oBAAUG,MAFe,CAGzBH,oBAAUI,KAHe,CAApB,CAFT,GASA,GAAMC,iBAAkB,yCACtB,sBADsB,CAEtB,EAFsB,CAGtBC,8BAHsB,EAItBd,SAJsB,CAAxB,C,QAM4BA,S,CAAnBa,e","file":"Separator.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { View, ViewPropTypes } from \"react-native\";\n\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass Separator extends Component {\n render() {\n return (this._root = c)} {...this.props} />;\n }\n}\n\nSeparator.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledSeparator = connectStyle(\n \"NativeBase.Separator\",\n {},\n mapPropsToStyleNames\n)(Separator);\n\nexport { StyledSeparator as Separator };\n"]} \ No newline at end of file diff --git a/dist/src/basic/Spinner.js b/dist/src/basic/Spinner.js index 268d62e4b..f863986a6 100644 --- a/dist/src/basic/Spinner.js +++ b/dist/src/basic/Spinner.js @@ -1,39 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.Spinner=undefined;var _extends=Object.assign||function(target){for(var i=1;i (this._root = c)}\n\t\t\t\t{...this.props}\n\t\t\t\tcolor={\n\t\t\t\t\tthis.props.color\n\t\t\t\t\t\t? this.props.color\n\t\t\t\t\t\t: this.props.inverse ? variables.inverseSpinnerColor : variables.defaultSpinnerColor\n\t\t\t\t}\n\t\t\t\tsize={this.props.size ? this.props.size : \"large\"}\n\t\t\t/>\n\t\t);\n\t}\n}\n\nSpinner.propTypes = {\n\t...ActivityIndicator.propTypes,\n\tcolor: PropTypes.string,\n\tinverse: PropTypes.bool,\n};\n\nconst StyledSpinner = connectStyle(\"NativeBase.Spinner\", {}, mapPropsToStyleNames)(Spinner);\n\nexport { StyledSpinner as Spinner };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Spinner.js"],"names":["Spinner","variables","context","theme","variable","_root","c","props","color","inverse","inverseSpinnerColor","defaultSpinnerColor","size","Component","contextTypes","PropTypes","object","propTypes","ActivityIndicator","string","bool","StyledSpinner","mapPropsToStyleNames"],"mappings":"y1BAAA,4B,2CACA,qC,mDACA,yCAEA,iEACA,qD,iDACA,mE,68BAEMA,Q,mRAII,iBACR,GAAMC,WAAY,KAAKC,OAAL,CAAaC,KAAb,CAAqB,KAAKD,OAAL,CAAaC,KAAb,CAAmB,4BAAnB,EAAiDF,SAAtE,CAAkFG,kBAApG,CACA,MACC,+BAAC,8BAAD,WACC,IAAK,sBAAM,QAAKC,KAAL,CAAaC,CAAnB,EADN,EAEK,KAAKC,KAFV,EAGC,MACC,KAAKA,KAAL,CAAWC,KAAX,CACG,KAAKD,KAAL,CAAWC,KADd,CAEG,KAAKD,KAAL,CAAWE,OAAX,CAAqBR,UAAUS,mBAA/B,CAAqDT,UAAUU,mBANpE,CAQC,KAAM,KAAKJ,KAAL,CAAWK,IAAX,CAAkB,KAAKL,KAAL,CAAWK,IAA7B,CAAoC,OAR3C,kDADD,CAYA,C,qBAlBoBC,gB,EAAhBb,O,CACEc,Y,CAAe,CACrBX,MAAOY,oBAAUC,MADI,C,CAoBvBhB,QAAQiB,SAAR,aACIC,+BAAkBD,SADtB,EAECT,MAAOO,oBAAUI,MAFlB,CAGCV,QAASM,oBAAUK,IAHpB,GAMA,GAAMC,eAAgB,yCAAa,oBAAb,CAAmC,EAAnC,CAAuCC,8BAAvC,EAA6DtB,OAA7D,CAAtB,C,QAE0BA,O,CAAjBqB,a","file":"Spinner.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { ActivityIndicator } from \"react-native\";\n\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport variable from \"../theme/variables/platform\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass Spinner extends Component {\n\tstatic contextTypes = {\n\t\ttheme: PropTypes.object,\n\t};\n\trender() {\n\t\tconst variables = this.context.theme ? this.context.theme[\"@@shoutem.theme/themeStyle\"].variables : variable;\n\t\treturn (\n\t\t\t (this._root = c)}\n\t\t\t\t{...this.props}\n\t\t\t\tcolor={\n\t\t\t\t\tthis.props.color\n\t\t\t\t\t\t? this.props.color\n\t\t\t\t\t\t: this.props.inverse ? variables.inverseSpinnerColor : variables.defaultSpinnerColor\n\t\t\t\t}\n\t\t\t\tsize={this.props.size ? this.props.size : \"large\"}\n\t\t\t/>\n\t\t);\n\t}\n}\n\nSpinner.propTypes = {\n\t...ActivityIndicator.propTypes,\n\tcolor: PropTypes.string,\n\tinverse: PropTypes.bool,\n};\n\nconst StyledSpinner = connectStyle(\"NativeBase.Spinner\", {}, mapPropsToStyleNames)(Spinner);\n\nexport { StyledSpinner as Spinner };\n"]} \ No newline at end of file diff --git a/dist/src/basic/Subtitle.js b/dist/src/basic/Subtitle.js index 99c8e4b61..8b21a948f 100644 --- a/dist/src/basic/Subtitle.js +++ b/dist/src/basic/Subtitle.js @@ -1,20 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.Subtitle=undefined;var _extends=Object.assign||function(target){for(var i=1;i (this._root = c)} {...this.props} />;\n\t}\n}\n\nSubtitle.propTypes = {\n\t...Text.propTypes,\n\tstyle: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),\n};\n\nconst StyledSubtitle = connectStyle(\"NativeBase.Subtitle\", {}, mapPropsToStyleNames)(Subtitle);\nexport { StyledSubtitle as Subtitle };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Subtitle.js"],"names":["Subtitle","_root","c","props","Component","propTypes","Text","style","PropTypes","oneOfType","object","number","array","StyledSubtitle","mapPropsToStyleNames"],"mappings":"21BAAA,4B,2CACA,qC,mDACA,yCACA,iEACA,mE,68BAEMA,S,yRACI,iBACR,MAAO,+BAAC,iBAAD,WAAM,IAAK,sBAAM,QAAKC,KAAL,CAAaC,CAAnB,EAAX,EAAsC,KAAKC,KAA3C,kDAAP,CACA,C,sBAHqBC,gB,EAMvBJ,SAASK,SAAT,aACIC,kBAAKD,SADT,EAECE,MAAOC,oBAAUC,SAAV,CAAoB,CAACD,oBAAUE,MAAX,CAAmBF,oBAAUG,MAA7B,CAAqCH,oBAAUI,KAA/C,CAApB,CAFR,GAKA,GAAMC,gBAAiB,yCAAa,qBAAb,CAAoC,EAApC,CAAwCC,8BAAxC,EAA8Dd,QAA9D,CAAvB,C,QAC2BA,Q,CAAlBa,c","file":"Subtitle.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Text } from \"react-native\";\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass Subtitle extends Component {\n\trender() {\n\t\treturn (this._root = c)} {...this.props} />;\n\t}\n}\n\nSubtitle.propTypes = {\n\t...Text.propTypes,\n\tstyle: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),\n};\n\nconst StyledSubtitle = connectStyle(\"NativeBase.Subtitle\", {}, mapPropsToStyleNames)(Subtitle);\nexport { StyledSubtitle as Subtitle };\n"]} \ No newline at end of file diff --git a/dist/src/basic/SwipeRow.js b/dist/src/basic/SwipeRow.js index ac2ff1909..00b307ade 100644 --- a/dist/src/basic/SwipeRow.js +++ b/dist/src/basic/SwipeRow.js @@ -1,274 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.SwipeRow=undefined;var _extends=Object.assign||function(target){for(var i=1;ithis.props.directionalDistanceChangeThreshold; -}},{key:"handlePanResponderMove",value:function handlePanResponderMove( - -e,gestureState){var -dx=gestureState.dx,dy=gestureState.dy; -var absDx=Math.abs(dx); -var absDy=Math.abs(dy); - - - -if( -absDx>this.props.directionalDistanceChangeThreshold|| -absDy>this.props.directionalDistanceChangeThreshold) -{ - -if(absDy>absDx&&!this.horizontalSwipeGestureBegan){ - -return; -} - - -if(this.parentScrollEnabled){ - -this.parentScrollEnabled=false; -this.props.setScrollEnabled&&this.props.setScrollEnabled(false); -} - -if(this.swipeInitialX===null){ - -this.swipeInitialX=this._translateX._value; -} -if(!this.horizontalSwipeGestureBegan){ -this.horizontalSwipeGestureBegan=true; -this.props.swipeGestureBegan&&this.props.swipeGestureBegan(); -} - -var newDX=this.swipeInitialX+dx; -if(this.props.disableLeftSwipe&&newDX<0){ -newDX=0; -} -if(this.props.disableRightSwipe&&newDX>0){ -newDX=0; -} - -if(this.props.stopLeftSwipe&&newDX>this.props.stopLeftSwipe){ -newDX=this.props.stopLeftSwipe; -} -if(this.props.stopRightSwipe&&newDX=0){ - -if(this._translateX._value>this.props.leftOpenValue*(this.props.swipeToOpenPercent/100)){ - -toValue=this.props.leftOpenValue; -} -}else{ - -if(this._translateX._valuethis.props.directionalDistanceChangeThreshold;}},{key:"handlePanResponderMove",value:function handlePanResponderMove(e,gestureState){var dx=gestureState.dx,dy=gestureState.dy;var absDx=Math.abs(dx);var absDy=Math.abs(dy);if(absDx>this.props.directionalDistanceChangeThreshold||absDy>this.props.directionalDistanceChangeThreshold){if(absDy>absDx&&!this.horizontalSwipeGestureBegan){return;}if(this.parentScrollEnabled){this.parentScrollEnabled=false;this.props.setScrollEnabled&&this.props.setScrollEnabled(false);}if(this.swipeInitialX===null){this.swipeInitialX=this._translateX._value;}if(!this.horizontalSwipeGestureBegan){this.horizontalSwipeGestureBegan=true;this.props.swipeGestureBegan&&this.props.swipeGestureBegan();}var newDX=this.swipeInitialX+dx;if(this.props.disableLeftSwipe&&newDX<0){newDX=0;}if(this.props.disableRightSwipe&&newDX>0){newDX=0;}if(this.props.stopLeftSwipe&&newDX>this.props.stopLeftSwipe){newDX=this.props.stopLeftSwipe;}if(this.props.stopRightSwipe&&newDX=0){if(this._translateX._value>this.props.leftOpenValue*(this.props.swipeToOpenPercent/100)){toValue=this.props.leftOpenValue;}}else{if(this._translateX._value this.handleOnMoveShouldSetPanResponder(e, gs),\n\t\t\tonPanResponderMove: (e, gs) => this.handlePanResponderMove(e, gs),\n\t\t\tonPanResponderRelease: (e, gs) => this.handlePanResponderEnd(e, gs),\n\t\t\tonPanResponderTerminate: (e, gs) => this.handlePanResponderEnd(e, gs),\n\t\t\tonShouldBlockNativeResponder: _ => false,\n\t\t});\n\t}\n\n\tgetPreviewAnimation(toValue, delay) {\n\t\treturn Animated.timing(this._translateX, { duration: this.props.previewDuration, toValue, delay });\n\t}\n\n\tonContentLayout(e) {\n\t\tthis.setState({\n\t\t\tdimensionsSet: !this.props.recalculateHiddenLayout,\n\t\t\thiddenHeight: e.nativeEvent.layout.height,\n\t\t\thiddenWidth: e.nativeEvent.layout.width,\n\t\t});\n\n\t\tif (this.props.preview && !this.ranPreview) {\n\t\t\tthis.ranPreview = true;\n\t\t\tlet previewOpenValue = this.props.previewOpenValue || this.props.rightOpenValue * 0.5;\n\t\t\tthis.getPreviewAnimation(previewOpenValue, PREVIEW_OPEN_DELAY).start(_ => {\n\t\t\t\tthis.getPreviewAnimation(0, PREVIEW_CLOSE_DELAY).start();\n\t\t\t});\n\t\t}\n\t}\n\n\thandleOnMoveShouldSetPanResponder(e, gs) {\n\t\tconst { dx } = gs;\n\t\treturn Math.abs(dx) > this.props.directionalDistanceChangeThreshold;\n\t}\n\n\thandlePanResponderMove(e, gestureState) {\n\t\tconst { dx, dy } = gestureState;\n\t\tconst absDx = Math.abs(dx);\n\t\tconst absDy = Math.abs(dy);\n\n\t\t// this check may not be necessary because we don't capture the move until we pass the threshold\n\t\t// just being extra safe here\n\t\tif (\n\t\t\tabsDx > this.props.directionalDistanceChangeThreshold ||\n\t\t\tabsDy > this.props.directionalDistanceChangeThreshold\n\t\t) {\n\t\t\t// we have enough to determine direction\n\t\t\tif (absDy > absDx && !this.horizontalSwipeGestureBegan) {\n\t\t\t\t// user is moving vertically, do nothing, listView will handle\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// user is moving horizontally\n\t\t\tif (this.parentScrollEnabled) {\n\t\t\t\t// disable scrolling on the listView parent\n\t\t\t\tthis.parentScrollEnabled = false;\n\t\t\t\tthis.props.setScrollEnabled && this.props.setScrollEnabled(false);\n\t\t\t}\n\n\t\t\tif (this.swipeInitialX === null) {\n\t\t\t\t// set tranlateX value when user started swiping\n\t\t\t\tthis.swipeInitialX = this._translateX._value;\n\t\t\t}\n\t\t\tif (!this.horizontalSwipeGestureBegan) {\n\t\t\t\tthis.horizontalSwipeGestureBegan = true;\n\t\t\t\tthis.props.swipeGestureBegan && this.props.swipeGestureBegan();\n\t\t\t}\n\n\t\t\tlet newDX = this.swipeInitialX + dx;\n\t\t\tif (this.props.disableLeftSwipe && newDX < 0) {\n\t\t\t\tnewDX = 0;\n\t\t\t}\n\t\t\tif (this.props.disableRightSwipe && newDX > 0) {\n\t\t\t\tnewDX = 0;\n\t\t\t}\n\n\t\t\tif (this.props.stopLeftSwipe && newDX > this.props.stopLeftSwipe) {\n\t\t\t\tnewDX = this.props.stopLeftSwipe;\n\t\t\t}\n\t\t\tif (this.props.stopRightSwipe && newDX < this.props.stopRightSwipe) {\n\t\t\t\tnewDX = this.props.stopRightSwipe;\n\t\t\t}\n\n\t\t\tthis._translateX.setValue(newDX);\n\t\t}\n\t}\n\n\thandlePanResponderEnd(e, gestureState) {\n\t\t// re-enable scrolling on listView parent\n\t\tif (!this.parentScrollEnabled) {\n\t\t\tthis.parentScrollEnabled = true;\n\t\t\tthis.props.setScrollEnabled && this.props.setScrollEnabled(true);\n\t\t}\n\n\t\t// finish up the animation\n\t\tlet toValue = 0;\n\t\tif (this._translateX._value >= 0) {\n\t\t\t// trying to open right\n\t\t\tif (this._translateX._value > this.props.leftOpenValue * (this.props.swipeToOpenPercent / 100)) {\n\t\t\t\t// we're more than halfway\n\t\t\t\ttoValue = this.props.leftOpenValue;\n\t\t\t}\n\t\t} else {\n\t\t\t// trying to open left\n\t\t\tif (this._translateX._value < this.props.rightOpenValue * (this.props.swipeToOpenPercent / 100)) {\n\t\t\t\t// we're more than halfway\n\t\t\t\ttoValue = this.props.rightOpenValue;\n\t\t\t}\n\t\t}\n\n\t\tthis.manuallySwipeRow(toValue);\n\t}\n\n\t/*\n\t * This method is called by SwipeListView\n\t */\n\tcloseRow() {\n\t\tthis.manuallySwipeRow(0);\n\t}\n\n\tmanuallySwipeRow(toValue) {\n\t\tAnimated.spring(this._translateX, {\n\t\t\ttoValue,\n\t\t\tfriction: this.props.friction,\n\t\t\ttension: this.props.tension,\n\t\t}).start(_ => {\n\t\t\tif (toValue === 0) {\n\t\t\t\tthis.props.onRowDidClose && this.props.onRowDidClose();\n\t\t\t} else {\n\t\t\t\tthis.props.onRowDidOpen && this.props.onRowDidOpen();\n\t\t\t}\n\t\t});\n\n\t\tif (toValue === 0) {\n\t\t\tthis.props.onRowClose && this.props.onRowClose();\n\t\t} else {\n\t\t\tthis.props.onRowOpen && this.props.onRowOpen(toValue);\n\t\t}\n\n\t\t// reset everything\n\t\tthis.swipeInitialX = null;\n\t\tthis.horizontalSwipeGestureBegan = false;\n\t}\n\n\trenderMainContent() {\n\t\t// We do this annoying if statement for performance.\n\t\t// We don't want the onLayout func to run after it runs once.\n\t\tif (this.state.dimensionsSet) {\n\t\t\treturn (\n\t\t\t\t\n\t\t\t\t\t{!this.props.list\n\t\t\t\t\t\t? \n\t\t\t\t\t\t\t\t{this.props.body}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t: \n\t\t\t\t\t\t\t\t{this.props.body}\n\t\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t);\n\t\t} else {\n\t\t\treturn (\n\t\t\t\t this.onContentLayout(e)}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\ttransform: [{ translateX: this._translateX }],\n\t\t\t\t\t\tzIndex: 2,\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{!this.props.list\n\t\t\t\t\t\t? \n\t\t\t\t\t\t\t\t{this.props.body}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t: \n\t\t\t\t\t\t\t\t{this.props.body}\n\t\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t);\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{this.props.left}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{this.props.right}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t{this.renderMainContent()}\n\t\t\t\n\t\t);\n\t}\n}\n\nconst styles = {\n\tcontainer: {\n\t\t// As of RN 0.29 flex: 1 is causing all rows to be the same height\n\t\t// flex: 1\n\t},\n\thidden: {\n\t\tbottom: 0,\n\t\tleft: 0,\n\t\toverflow: \"hidden\",\n\t\tposition: \"absolute\",\n\t\tright: 0,\n\t\ttop: 0,\n\t},\n};\n\nconst StyledSwipeRow = connectStyle(\"NativeBase.SwipeRow\", {}, mapPropsToStyleNames)(SwipeRow);\nexport { StyledSwipeRow as SwipeRow };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/SwipeRow.js"],"names":["PREVIEW_OPEN_DELAY","PREVIEW_CLOSE_DELAY","SwipeRow","props","horizontalSwipeGestureBegan","swipeInitialX","parentScrollEnabled","ranPreview","state","dimensionsSet","hiddenHeight","hiddenWidth","_translateX","Animated","Value","_panResponder","PanResponder","create","onMoveShouldSetPanResponder","e","gs","handleOnMoveShouldSetPanResponder","onPanResponderMove","handlePanResponderMove","onPanResponderRelease","handlePanResponderEnd","onPanResponderTerminate","onShouldBlockNativeResponder","toValue","delay","timing","duration","previewDuration","setState","recalculateHiddenLayout","nativeEvent","layout","height","width","preview","previewOpenValue","rightOpenValue","getPreviewAnimation","start","dx","Math","abs","directionalDistanceChangeThreshold","gestureState","dy","absDx","absDy","setScrollEnabled","_value","swipeGestureBegan","newDX","disableLeftSwipe","disableRightSwipe","stopLeftSwipe","stopRightSwipe","setValue","leftOpenValue","swipeToOpenPercent","manuallySwipeRow","spring","friction","tension","onRowDidClose","onRowDidOpen","onRowClose","onRowOpen","panHandlers","transform","translateX","zIndex","list","style","body","backgroundColor","onContentLayout","undefined","styles","hidden","flex","flexDirection","justifyContent","left","right","renderMainContent","Component","defaultProps","closeOnRowPress","container","bottom","overflow","position","top","StyledSwipeRow","mapPropsToStyleNames"],"mappings":"21BAAA,4B,2CACA,qC,mDACA,yCACA,iEACA,4BACA,4BACA,8BACA,4BACA,oCACA,mE,08BAEA,GAAMA,oBAAqB,GAA3B,CACA,GAAMC,qBAAsB,GAA5B,C,GAEMC,S,qDAaL,kBAAYC,KAAZ,CAAmB,0IACZA,KADY,GAElB,MAAKC,2BAAL,CAAmC,KAAnC,CACA,MAAKC,aAAL,CAAqB,IAArB,CACA,MAAKC,mBAAL,CAA2B,IAA3B,CACA,MAAKC,UAAL,CAAkB,KAAlB,CACA,MAAKC,KAAL,CAAa,CACZC,cAAe,KADH,CAEZC,aAAc,CAFF,CAGZC,YAAa,CAHD,CAAb,CAKA,MAAKC,WAAL,CAAmB,GAAIC,uBAASC,KAAb,CAAmB,CAAnB,CAAnB,CAXkB,aAYlB,C,oFAEoB,iBACpB,KAAKC,aAAL,CAAqBC,0BAAaC,MAAb,CAAoB,CACxCC,4BAA6B,qCAACC,CAAD,CAAIC,EAAJ,QAAW,QAAKC,iCAAL,CAAuCF,CAAvC,CAA0CC,EAA1C,CAAX,EADW,CAExCE,mBAAoB,4BAACH,CAAD,CAAIC,EAAJ,QAAW,QAAKG,sBAAL,CAA4BJ,CAA5B,CAA+BC,EAA/B,CAAX,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MrBvB,wBAAyB,KANJ,CAOrBK,QAAS,KAPY,CAQrBP,gBAAiB,GARI,CASrBe,mCAAoC,CATf,CAUrBe,mBAAoB,EAVC,C,CAiPvB,GAAMmB,QAAS,CACdW,UAAW,EADG,CAKdV,OAAQ,CACPW,OAAQ,CADD,CAEPP,KAAM,CAFC,CAGPQ,SAAU,QAHH,CAIPC,SAAU,UAJH,CAKPR,MAAO,CALA,CAMPS,IAAK,CANE,CALM,CAAf,CAeA,GAAMC,gBAAiB,yCAAa,qBAAb,CAAoC,EAApC,CAAwCC,8BAAxC,EAA8DhG,QAA9D,CAAvB,C,QAC2BA,Q,CAAlB+F,c","file":"SwipeRow.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Animated, PanResponder, Platform, StyleSheet, TouchableOpacity, View } from \"react-native\";\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport { Text } from \"./Text\";\nimport { Left } from \"./Left\";\nimport { Right } from \"./Right\";\nimport { Body } from \"./Body\";\nimport { ListItem } from \"./ListItem\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nconst PREVIEW_OPEN_DELAY = 700;\nconst PREVIEW_CLOSE_DELAY = 300;\n\nclass SwipeRow extends Component {\n\tstatic defaultProps = {\n\t\tleftOpenValue: 0,\n\t\trightOpenValue: 0,\n\t\tcloseOnRowPress: true,\n\t\tdisableLeftSwipe: false,\n\t\tdisableRightSwipe: false,\n\t\trecalculateHiddenLayout: false,\n\t\tpreview: false,\n\t\tpreviewDuration: 300,\n\t\tdirectionalDistanceChangeThreshold: 2,\n\t\tswipeToOpenPercent: 50,\n\t};\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.horizontalSwipeGestureBegan = false;\n\t\tthis.swipeInitialX = null;\n\t\tthis.parentScrollEnabled = true;\n\t\tthis.ranPreview = false;\n\t\tthis.state = {\n\t\t\tdimensionsSet: false,\n\t\t\thiddenHeight: 0,\n\t\t\thiddenWidth: 0,\n\t\t};\n\t\tthis._translateX = new Animated.Value(0);\n\t}\n\n\tcomponentWillMount() {\n\t\tthis._panResponder = PanResponder.create({\n\t\t\tonMoveShouldSetPanResponder: (e, gs) => this.handleOnMoveShouldSetPanResponder(e, gs),\n\t\t\tonPanResponderMove: (e, gs) => this.handlePanResponderMove(e, gs),\n\t\t\tonPanResponderRelease: (e, gs) => this.handlePanResponderEnd(e, gs),\n\t\t\tonPanResponderTerminate: (e, gs) => this.handlePanResponderEnd(e, gs),\n\t\t\tonShouldBlockNativeResponder: _ => false,\n\t\t});\n\t}\n\n\tgetPreviewAnimation(toValue, delay) {\n\t\treturn Animated.timing(this._translateX, { duration: this.props.previewDuration, toValue, delay });\n\t}\n\n\tonContentLayout(e) {\n\t\tthis.setState({\n\t\t\tdimensionsSet: !this.props.recalculateHiddenLayout,\n\t\t\thiddenHeight: e.nativeEvent.layout.height,\n\t\t\thiddenWidth: e.nativeEvent.layout.width,\n\t\t});\n\n\t\tif (this.props.preview && !this.ranPreview) {\n\t\t\tthis.ranPreview = true;\n\t\t\tlet previewOpenValue = this.props.previewOpenValue || this.props.rightOpenValue * 0.5;\n\t\t\tthis.getPreviewAnimation(previewOpenValue, PREVIEW_OPEN_DELAY).start(_ => {\n\t\t\t\tthis.getPreviewAnimation(0, PREVIEW_CLOSE_DELAY).start();\n\t\t\t});\n\t\t}\n\t}\n\n\thandleOnMoveShouldSetPanResponder(e, gs) {\n\t\tconst { dx } = gs;\n\t\treturn Math.abs(dx) > this.props.directionalDistanceChangeThreshold;\n\t}\n\n\thandlePanResponderMove(e, gestureState) {\n\t\tconst { dx, dy } = gestureState;\n\t\tconst absDx = Math.abs(dx);\n\t\tconst absDy = Math.abs(dy);\n\n\t\t// this check may not be necessary because we don't capture the move until we pass the threshold\n\t\t// just being extra safe here\n\t\tif (\n\t\t\tabsDx > this.props.directionalDistanceChangeThreshold ||\n\t\t\tabsDy > this.props.directionalDistanceChangeThreshold\n\t\t) {\n\t\t\t// we have enough to determine direction\n\t\t\tif (absDy > absDx && !this.horizontalSwipeGestureBegan) {\n\t\t\t\t// user is moving vertically, do nothing, listView will handle\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// user is moving horizontally\n\t\t\tif (this.parentScrollEnabled) {\n\t\t\t\t// disable scrolling on the listView parent\n\t\t\t\tthis.parentScrollEnabled = false;\n\t\t\t\tthis.props.setScrollEnabled && this.props.setScrollEnabled(false);\n\t\t\t}\n\n\t\t\tif (this.swipeInitialX === null) {\n\t\t\t\t// set tranlateX value when user started swiping\n\t\t\t\tthis.swipeInitialX = this._translateX._value;\n\t\t\t}\n\t\t\tif (!this.horizontalSwipeGestureBegan) {\n\t\t\t\tthis.horizontalSwipeGestureBegan = true;\n\t\t\t\tthis.props.swipeGestureBegan && this.props.swipeGestureBegan();\n\t\t\t}\n\n\t\t\tlet newDX = this.swipeInitialX + dx;\n\t\t\tif (this.props.disableLeftSwipe && newDX < 0) {\n\t\t\t\tnewDX = 0;\n\t\t\t}\n\t\t\tif (this.props.disableRightSwipe && newDX > 0) {\n\t\t\t\tnewDX = 0;\n\t\t\t}\n\n\t\t\tif (this.props.stopLeftSwipe && newDX > this.props.stopLeftSwipe) {\n\t\t\t\tnewDX = this.props.stopLeftSwipe;\n\t\t\t}\n\t\t\tif (this.props.stopRightSwipe && newDX < this.props.stopRightSwipe) {\n\t\t\t\tnewDX = this.props.stopRightSwipe;\n\t\t\t}\n\n\t\t\tthis._translateX.setValue(newDX);\n\t\t}\n\t}\n\n\thandlePanResponderEnd(e, gestureState) {\n\t\t// re-enable scrolling on listView parent\n\t\tif (!this.parentScrollEnabled) {\n\t\t\tthis.parentScrollEnabled = true;\n\t\t\tthis.props.setScrollEnabled && this.props.setScrollEnabled(true);\n\t\t}\n\n\t\t// finish up the animation\n\t\tlet toValue = 0;\n\t\tif (this._translateX._value >= 0) {\n\t\t\t// trying to open right\n\t\t\tif (this._translateX._value > this.props.leftOpenValue * (this.props.swipeToOpenPercent / 100)) {\n\t\t\t\t// we're more than halfway\n\t\t\t\ttoValue = this.props.leftOpenValue;\n\t\t\t}\n\t\t} else {\n\t\t\t// trying to open left\n\t\t\tif (this._translateX._value < this.props.rightOpenValue * (this.props.swipeToOpenPercent / 100)) {\n\t\t\t\t// we're more than halfway\n\t\t\t\ttoValue = this.props.rightOpenValue;\n\t\t\t}\n\t\t}\n\n\t\tthis.manuallySwipeRow(toValue);\n\t}\n\n\t/*\n\t * This method is called by SwipeListView\n\t */\n\tcloseRow() {\n\t\tthis.manuallySwipeRow(0);\n\t}\n\n\tmanuallySwipeRow(toValue) {\n\t\tAnimated.spring(this._translateX, {\n\t\t\ttoValue,\n\t\t\tfriction: this.props.friction,\n\t\t\ttension: this.props.tension,\n\t\t}).start(_ => {\n\t\t\tif (toValue === 0) {\n\t\t\t\tthis.props.onRowDidClose && this.props.onRowDidClose();\n\t\t\t} else {\n\t\t\t\tthis.props.onRowDidOpen && this.props.onRowDidOpen();\n\t\t\t}\n\t\t});\n\n\t\tif (toValue === 0) {\n\t\t\tthis.props.onRowClose && this.props.onRowClose();\n\t\t} else {\n\t\t\tthis.props.onRowOpen && this.props.onRowOpen(toValue);\n\t\t}\n\n\t\t// reset everything\n\t\tthis.swipeInitialX = null;\n\t\tthis.horizontalSwipeGestureBegan = false;\n\t}\n\n\trenderMainContent() {\n\t\t// We do this annoying if statement for performance.\n\t\t// We don't want the onLayout func to run after it runs once.\n\t\tif (this.state.dimensionsSet) {\n\t\t\treturn (\n\t\t\t\t\n\t\t\t\t\t{!this.props.list\n\t\t\t\t\t\t? \n\t\t\t\t\t\t\t\t{this.props.body}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t: \n\t\t\t\t\t\t\t\t{this.props.body}\n\t\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t);\n\t\t} else {\n\t\t\treturn (\n\t\t\t\t this.onContentLayout(e)}\n\t\t\t\t\tstyle={{\n\t\t\t\t\t\ttransform: [{ translateX: this._translateX }],\n\t\t\t\t\t\tzIndex: 2,\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t{!this.props.list\n\t\t\t\t\t\t? \n\t\t\t\t\t\t\t\t{this.props.body}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t: \n\t\t\t\t\t\t\t\t{this.props.body}\n\t\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t);\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{this.props.left}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t{this.props.right}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t{this.renderMainContent()}\n\t\t\t\n\t\t);\n\t}\n}\n\nconst styles = {\n\tcontainer: {\n\t\t// As of RN 0.29 flex: 1 is causing all rows to be the same height\n\t\t// flex: 1\n\t},\n\thidden: {\n\t\tbottom: 0,\n\t\tleft: 0,\n\t\toverflow: \"hidden\",\n\t\tposition: \"absolute\",\n\t\tright: 0,\n\t\ttop: 0,\n\t},\n};\n\nconst StyledSwipeRow = connectStyle(\"NativeBase.SwipeRow\", {}, mapPropsToStyleNames)(SwipeRow);\nexport { StyledSwipeRow as SwipeRow };\n"]} \ No newline at end of file diff --git a/dist/src/basic/Switch.js b/dist/src/basic/Switch.js index c26bb519c..15f4d2bc2 100644 --- a/dist/src/basic/Switch.js +++ b/dist/src/basic/Switch.js @@ -1,21 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.Switch=undefined;var _extends=Object.assign||function(target){for(var i=1;i (this._root = c)} {...this.props} />;\n\t}\n}\n\nSwitch.propTypes = {\n\t...Switch.propTypes,\n};\n\nconst StyledSwitch = connectStyle(\"NativeBase.Switch\", {}, mapPropsToStyleNames)(Switch);\n\nexport { StyledSwitch as Switch };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Switch.js"],"names":["Switch","_root","c","props","Component","propTypes","StyledSwitch","mapPropsToStyleNames"],"mappings":"u1BAAA,4B,2CACA,qC,mDACA,yCAEA,iEACA,mE,68BAEMA,O,6QACI,iBACR,MAAO,+BAAC,mBAAD,WAAU,IAAK,sBAAM,QAAKC,KAAL,CAAaC,CAAnB,EAAf,EAA0C,KAAKC,KAA/C,mDAAP,CACA,C,oBAHmBC,gB,EAMrBJ,OAAOK,SAAP,aACIL,OAAOK,SADX,EAIA,GAAMC,cAAe,yCAAa,mBAAb,CAAkC,EAAlC,CAAsCC,8BAAtC,EAA4DP,MAA5D,CAArB,C,QAEyBA,M,CAAhBM,Y","file":"Switch.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Switch as SwitchNB } from \"react-native\";\n\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass Switch extends Component {\n\trender() {\n\t\treturn (this._root = c)} {...this.props} />;\n\t}\n}\n\nSwitch.propTypes = {\n\t...Switch.propTypes,\n};\n\nconst StyledSwitch = connectStyle(\"NativeBase.Switch\", {}, mapPropsToStyleNames)(Switch);\n\nexport { StyledSwitch as Switch };\n"]} \ No newline at end of file diff --git a/dist/src/basic/Tab.js b/dist/src/basic/Tab.js index 3e35adccb..2d715cf6f 100644 --- a/dist/src/basic/Tab.js +++ b/dist/src/basic/Tab.js @@ -1,30 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.Tab=undefined;var _extends=Object.assign||function(target){for(var i=1;i (this._root = c)} {...this.props}>\n {this.props.children}\n
\n );\n }\n}\n\nTab.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledTab = connectStyle(\"NativeBase.Tab\", {}, mapPropsToStyleNames)(Tab);\n\nexport { StyledTab as Tab };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Tab.js"],"names":["Tab","_root","c","props","children","Component","propTypes","ViewPropTypes","style","PropTypes","oneOfType","object","number","array","StyledTab","mapPropsToStyleNames"],"mappings":"i1BAAA,4B,2CACA,qC,mDACA,yCAEA,iEACA,mE,68BAEMA,I,2PACK,iBACP,MACE,+BAAC,iBAAD,WAAM,IAAK,sBAAM,QAAKC,KAAL,CAAaC,CAAnB,EAAX,EAAsC,KAAKC,KAA3C,mDACG,KAAKA,KAAL,CAAWC,QADd,CADF,CAKD,C,iBAPeC,gB,EAUlBL,IAAIM,SAAJ,aACKC,0BADL,EAEEC,MAAOC,oBAAUC,SAAV,CAAoB,CACzBD,oBAAUE,MADe,CAEzBF,oBAAUG,MAFe,CAGzBH,oBAAUI,KAHe,CAApB,CAFT,GASA,GAAMC,WAAY,yCAAa,gBAAb,CAA+B,EAA/B,CAAmCC,8BAAnC,EAAyDf,GAAzD,CAAlB,C,QAEsBA,G,CAAbc,S","file":"Tab.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { View, ViewPropTypes } from \"react-native\";\n\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass Tab extends Component {\n render() {\n return (\n (this._root = c)} {...this.props}>\n {this.props.children}\n \n );\n }\n}\n\nTab.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledTab = connectStyle(\"NativeBase.Tab\", {}, mapPropsToStyleNames)(Tab);\n\nexport { StyledTab as Tab };\n"]} \ No newline at end of file diff --git a/dist/src/basic/TabContainer.js b/dist/src/basic/TabContainer.js index ac4a3176c..95fd357ea 100644 --- a/dist/src/basic/TabContainer.js +++ b/dist/src/basic/TabContainer.js @@ -1,28 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.TabContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i (this._root = c)} {...this.props} />;\n }\n}\n\nTabContainer.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledTabContainer = connectStyle(\n \"NativeBase.TabContainer\",\n {},\n mapPropsToStyleNames\n)(TabContainer);\nexport { StyledTabContainer as TabContainer };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/TabContainer.js"],"names":["TabContainer","_root","c","props","Component","propTypes","ViewPropTypes","style","PropTypes","oneOfType","object","number","array","StyledTabContainer","mapPropsToStyleNames"],"mappings":"m2BAAA,4B,2CACA,qC,mDACA,yCACA,iEACA,mE,68BAEMA,a,iTACK,iBACP,MAAO,+BAAC,iBAAD,WAAM,IAAK,sBAAM,QAAKC,KAAL,CAAaC,CAAnB,EAAX,EAAsC,KAAKC,KAA3C,kDAAP,CACD,C,0BAHwBC,gB,EAM3BJ,aAAaK,SAAb,aACKC,0BADL,EAEEC,MAAOC,oBAAUC,SAAV,CAAoB,CACzBD,oBAAUE,MADe,CAEzBF,oBAAUG,MAFe,CAGzBH,oBAAUI,KAHe,CAApB,CAFT,GASA,GAAMC,oBAAqB,yCACzB,yBADyB,CAEzB,EAFyB,CAGzBC,8BAHyB,EAIzBd,YAJyB,CAA3B,C,QAK+BA,Y,CAAtBa,kB","file":"TabContainer.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { View, ViewPropTypes } from \"react-native\";\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass TabContainer extends Component {\n render() {\n return (this._root = c)} {...this.props} />;\n }\n}\n\nTabContainer.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledTabContainer = connectStyle(\n \"NativeBase.TabContainer\",\n {},\n mapPropsToStyleNames\n)(TabContainer);\nexport { StyledTabContainer as TabContainer };\n"]} \ No newline at end of file diff --git a/dist/src/basic/TabHeading.js b/dist/src/basic/TabHeading.js index b920193bb..fdbd009b3 100644 --- a/dist/src/basic/TabHeading.js +++ b/dist/src/basic/TabHeading.js @@ -1,28 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.TabHeading=undefined;var _extends=Object.assign||function(target){for(var i=1;i (this._root = c)} {...this.props} />;\n }\n}\n\nTabHeadingNB.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledTabHeadingNB = connectStyle(\n \"NativeBase.TabHeading\",\n {},\n mapPropsToStyleNames\n)(TabHeadingNB);\nexport { StyledTabHeadingNB as TabHeading };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/TabHeading.js"],"names":["TabHeadingNB","_root","c","props","Component","propTypes","ViewPropTypes","style","PropTypes","oneOfType","object","number","array","StyledTabHeadingNB","mapPropsToStyleNames","TabHeading"],"mappings":"+1BAAA,4B,2CACA,qC,mDACA,yCACA,iEACA,mE,68BAEMA,a,iTACK,iBACP,MAAO,+BAAC,iBAAD,WAAM,IAAK,sBAAM,QAAKC,KAAL,CAAaC,CAAnB,EAAX,EAAsC,KAAKC,KAA3C,kDAAP,CACD,C,0BAHwBC,gB,EAM3BJ,aAAaK,SAAb,aACKC,0BADL,EAEEC,MAAOC,oBAAUC,SAAV,CAAoB,CACzBD,oBAAUE,MADe,CAEzBF,oBAAUG,MAFe,CAGzBH,oBAAUI,KAHe,CAApB,CAFT,GASA,GAAMC,oBAAqB,yCACzB,uBADyB,CAEzB,EAFyB,CAGzBC,8BAHyB,EAIzBd,YAJyB,CAA3B,C,QAK+Be,U,CAAtBF,kB","file":"TabHeading.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { View, ViewPropTypes } from \"react-native\";\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass TabHeadingNB extends Component {\n render() {\n return (this._root = c)} {...this.props} />;\n }\n}\n\nTabHeadingNB.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledTabHeadingNB = connectStyle(\n \"NativeBase.TabHeading\",\n {},\n mapPropsToStyleNames\n)(TabHeadingNB);\nexport { StyledTabHeadingNB as TabHeading };\n"]} \ No newline at end of file diff --git a/dist/src/basic/Tabs/Button.android.js b/dist/src/basic/Tabs/Button.android.js index d6ee1f8b3..37b0c2bfc 100644 --- a/dist/src/basic/Tabs/Button.android.js +++ b/dist/src/basic/Tabs/Button.android.js @@ -1,17 +1,2 @@ -var _extends=Object.assign||function(target){for(var i=1;i {\n return (\n \n {props.children}\n \n );\n};\n\nmodule.exports = Button;\n//export default Button;\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/basic/Tabs/Button.android.js"],"names":["React","require","ReactNative","TouchableNativeFeedback","View","Button","props","children","module","exports"],"mappings":"oRAAA,GAAMA,OAAQC,QAAQ,OAAR,CAAd,CACA,GAAMC,aAAcD,QAAQ,cAAR,CAApB,C,GACQE,wB,CAAkCD,W,CAAlCC,uB,CAAyBC,I,CAASF,W,CAATE,I,CAEjC,GAAMC,QAAS,QAATA,OAAS,OAAS,CACtB,MACE,qBAAC,uBAAD,WACE,aAAc,CADhB,EAEMC,KAFN,kDAIGA,MAAMC,QAJT,CADF,CAQD,CATD,CAWAC,OAAOC,OAAP,CAAiBJ,MAAjB","file":"Button.android.js","sourcesContent":["const React = require(\"react\");\nconst ReactNative = require(\"react-native\");\nconst { TouchableNativeFeedback, View } = ReactNative;\n\nconst Button = props => {\n return (\n \n {props.children}\n \n );\n};\n\nmodule.exports = Button;\n//export default Button;\n"]} \ No newline at end of file diff --git a/dist/src/basic/Tabs/Button.ios.js b/dist/src/basic/Tabs/Button.ios.js index a83ec9941..09d70510f 100644 --- a/dist/src/basic/Tabs/Button.ios.js +++ b/dist/src/basic/Tabs/Button.ios.js @@ -1,14 +1,2 @@ -var _extends=Object.assign||function(target){for(var i=1;i {\n return (\n \n {props.children}\n \n );\n};\n\nmodule.exports = Button;\n//export default Button;\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/basic/Tabs/Button.ios.js"],"names":["React","require","ReactNative","TouchableOpacity","View","Button","props","children","module","exports"],"mappings":"gRAAA,GAAMA,OAAQC,QAAQ,OAAR,CAAd,CACA,GAAMC,aAAcD,QAAQ,cAAR,CAApB,C,GACQE,iB,CAA2BD,W,CAA3BC,gB,CAAkBC,I,CAASF,W,CAATE,I,CAE1B,GAAMC,QAAS,QAATA,OAAS,OAAS,CACtB,MACE,qBAAC,gBAAD,WAAkB,cAAe,GAAjC,EAA0CC,KAA1C,kDACGA,MAAMC,QADT,CADF,CAKD,CAND,CAQAC,OAAOC,OAAP,CAAiBJ,MAAjB","file":"Button.ios.js","sourcesContent":["const React = require(\"react\");\nconst ReactNative = require(\"react-native\");\nconst { TouchableOpacity, View } = ReactNative;\n\nconst Button = props => {\n return (\n \n {props.children}\n \n );\n};\n\nmodule.exports = Button;\n//export default Button;\n"]} \ No newline at end of file diff --git a/dist/src/basic/Tabs/Button.js b/dist/src/basic/Tabs/Button.js index ccf0a6dec..b1405ebdd 100644 --- a/dist/src/basic/Tabs/Button.js +++ b/dist/src/basic/Tabs/Button.js @@ -1,14 +1,2 @@ -var _extends=Object.assign||function(target){for(var i=1;i {\n return (\n \n {props.children}\n \n );\n};\n\nmodule.exports = Button;\n//export default Button;\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/basic/Tabs/Button.js"],"names":["React","require","ReactNative","TouchableOpacity","View","Button","props","children","module","exports"],"mappings":"4QAAA,GAAMA,OAAQC,QAAQ,OAAR,CAAd,CACA,GAAMC,aAAcD,QAAQ,cAAR,CAApB,C,GACQE,iB,CAA2BD,W,CAA3BC,gB,CAAkBC,I,CAASF,W,CAATE,I,CAE1B,GAAMC,QAAS,QAATA,OAAS,OAAS,CACtB,MACE,qBAAC,gBAAD,aAAsBC,KAAtB,kDACGA,MAAMC,QADT,CADF,CAKD,CAND,CAQAC,OAAOC,OAAP,CAAiBJ,MAAjB","file":"Button.js","sourcesContent":["const React = require(\"react\");\nconst ReactNative = require(\"react-native\");\nconst { TouchableOpacity, View } = ReactNative;\n\nconst Button = props => {\n return (\n \n {props.children}\n \n );\n};\n\nmodule.exports = Button;\n//export default Button;\n"]} \ No newline at end of file diff --git a/dist/src/basic/Tabs/DefaultTabBar.js b/dist/src/basic/Tabs/DefaultTabBar.js index 61064ee6e..f2477a2b0 100644 --- a/dist/src/basic/Tabs/DefaultTabBar.js +++ b/dist/src/basic/Tabs/DefaultTabBar.js @@ -1,153 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.DefaultTabBar=undefined;var _jsxFileName="src/basic/Tabs/DefaultTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react); -var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes); -var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass); -var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash); -var _nativeBaseShoutemTheme=require("native-base-shoutem-theme"); -var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames); -var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform); -var _index=require("./../../index"); -var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};} -var ReactNative=require("react-native");var - -StyleSheet=ReactNative.StyleSheet,View=ReactNative.View,Animated=ReactNative.Animated,Platform=ReactNative.Platform; -var Button=require("./Button"); - -var DefaultTabBar=(0,_createReactClass2.default)({displayName:"DefaultTabBar", -propTypes:{ -goToPage:_propTypes2.default.func, -activeTab:_propTypes2.default.number, -tabs:_propTypes2.default.array, -backgroundColor:_propTypes2.default.string, -activeTextColor:_propTypes2.default.string, -inactiveTextColor:_propTypes2.default.string, -tabStyle:_utils.ViewPropTypes.style, -renderTab:_propTypes2.default.func, -underlineStyle:_utils.ViewPropTypes.style, -tabContainerStyle:_utils.ViewPropTypes.style}, - -contextTypes:{ -theme:_propTypes2.default.object}, - - -getDefaultProps:function getDefaultProps(){ -return{ -activeTextColor:_platform2.default.topTabBarActiveTextColor, -inactiveTextColor:_platform2.default.topTabBarTextColor, -backgroundColor:null, -tabFontSize:_platform2.default.tabFontSize}; - -}, - -renderTabOption:function renderTabOption(name,page){}, - -renderTab:function renderTab( -name, -page, -isTabActive, -onPressHandler, -tabStyle, -activeTabStyle, -textStyle, -activeTextStyle, -tabHeaderStyle) -{ -var headerContent= -typeof name!=="string"?name.props.children:undefined;var _props= -this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize; -var textColor=isTabActive?activeTextColor:inactiveTextColor; -var fontWeight=isTabActive?"bold":"normal"; -var fontSize=tabFontSize; -if(typeof name==="string"){ -return( -_react2.default.createElement(Button,{ -style:{flex:1}, -key:name, -onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:62}}, - -_react2.default.createElement(_index.TabHeading,{ -style:isTabActive?activeTabStyle:tabStyle, -active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:67}}, - -_react2.default.createElement(_index.Text,{ -style:[ -isTabActive?activeTextStyle:textStyle, -{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:71}}, - - -name)))); - - - - -}else{ -return( -_react2.default.createElement(Button,{ -style:{flex:1}, -key:_lodash2.default.random(1.2,5.2), -onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:84}}, - -_react2.default.createElement(_index.TabHeading,{style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:89}}, -headerContent))); - - - -} -}, - -render:function render(){var _this=this; -var variables=this.context.theme? -this.context.theme["@@shoutem.theme/themeStyle"].variables: -_platform2.default; -var platformStyle=variables.platformStyle; -var containerWidth=this.props.containerWidth; -var numberOfTabs=this.props.tabs.length; -var tabUnderlineStyle={ -position:"absolute", -width:containerWidth/numberOfTabs, -height:4, -backgroundColor:variables.topTabBarActiveBorderColor, -bottom:0}; - - -var left=this.props.scrollValue.interpolate({ -inputRange:[0,1], -outputRange:[0,containerWidth/numberOfTabs]}); - -return( -_react2.default.createElement(_index.TabContainer,{ -style:[ -{backgroundColor:variables.tabDefaultBg}, -this.props.tabContainerStyle?this.props.tabContainerStyle:{}],__source:{fileName:_jsxFileName,lineNumber:117}}, - - -this.props.tabs.map(function(name,page){ -var isTabActive=_this.props.activeTab===page; -var renderTab=_this.props.renderTab||_this.renderTab; -return renderTab( -name, -page, -isTabActive, -_this.props.goToPage, -_this.props.tabStyle[page], -_this.props.activeTabStyle[page], -_this.props.textStyle[page], -_this.props.activeTextStyle[page], -_this.props.tabHeaderStyle[page]); - -}), -_react2.default.createElement(Animated.View,{ -style:[tabUnderlineStyle,{left:left},this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:138}}))); - - - -}}); - - - -var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)( -"NativeBase.DefaultTabBar", -{}, -_mapPropsToStyleNames2.default)( -DefaultTabBar);exports. -DefaultTabBar=StyledTab; +Object.defineProperty(exports,"__esModule",{value:true});exports.DefaultTabBar=undefined;var _jsxFileName="src/basic/Tabs/DefaultTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react);var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes);var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass);var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _index=require("./../../index");var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var ReactNative=require("react-native");var StyleSheet=ReactNative.StyleSheet,View=ReactNative.View,Animated=ReactNative.Animated,Platform=ReactNative.Platform;var Button=require("./Button");var DefaultTabBar=(0,_createReactClass2.default)({displayName:"DefaultTabBar",propTypes:{goToPage:_propTypes2.default.func,activeTab:_propTypes2.default.number,tabs:_propTypes2.default.array,backgroundColor:_propTypes2.default.string,activeTextColor:_propTypes2.default.string,inactiveTextColor:_propTypes2.default.string,tabStyle:_utils.ViewPropTypes.style,renderTab:_propTypes2.default.func,underlineStyle:_utils.ViewPropTypes.style,tabContainerStyle:_utils.ViewPropTypes.style},contextTypes:{theme:_propTypes2.default.object},getDefaultProps:function getDefaultProps(){return{activeTextColor:_platform2.default.topTabBarActiveTextColor,inactiveTextColor:_platform2.default.topTabBarTextColor,backgroundColor:null,tabFontSize:_platform2.default.tabFontSize};},renderTabOption:function renderTabOption(name,page){},renderTab:function renderTab(name,page,isTabActive,onPressHandler,tabStyle,activeTabStyle,textStyle,activeTextStyle,tabHeaderStyle){var headerContent=typeof name!=="string"?name.props.children:undefined;var _props=this.props,activeTextColor=_props.activeTextColor,inactiveTextColor=_props.inactiveTextColor,tabFontSize=_props.tabFontSize;var textColor=isTabActive?activeTextColor:inactiveTextColor;var fontWeight=isTabActive?"bold":"normal";var fontSize=tabFontSize;if(typeof name==="string"){return _react2.default.createElement(Button,{style:{flex:1},key:name,onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:62}},_react2.default.createElement(_index.TabHeading,{style:isTabActive?activeTabStyle:tabStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:67}},_react2.default.createElement(_index.Text,{style:[isTabActive?activeTextStyle:textStyle,{fontSize:tabFontSize}],__source:{fileName:_jsxFileName,lineNumber:71}},name)));}else{return _react2.default.createElement(Button,{style:{flex:1},key:_lodash2.default.random(1.2,5.2),onPress:function onPress(){return onPressHandler(page);},__source:{fileName:_jsxFileName,lineNumber:84}},_react2.default.createElement(_index.TabHeading,{style:tabHeaderStyle,active:isTabActive,__source:{fileName:_jsxFileName,lineNumber:89}},headerContent));}},render:function render(){var _this=this;var variables=this.context.theme?this.context.theme["@@shoutem.theme/themeStyle"].variables:_platform2.default;var platformStyle=variables.platformStyle;var containerWidth=this.props.containerWidth;var numberOfTabs=this.props.tabs.length;var tabUnderlineStyle={position:"absolute",width:containerWidth/numberOfTabs,height:4,backgroundColor:variables.topTabBarActiveBorderColor,bottom:0};var left=this.props.scrollValue.interpolate({inputRange:[0,1],outputRange:[0,containerWidth/numberOfTabs]});return _react2.default.createElement(_index.TabContainer,{style:[{backgroundColor:variables.tabDefaultBg},this.props.tabContainerStyle?this.props.tabContainerStyle:{}],__source:{fileName:_jsxFileName,lineNumber:117}},this.props.tabs.map(function(name,page){var isTabActive=_this.props.activeTab===page;var renderTab=_this.props.renderTab||_this.renderTab;return renderTab(name,page,isTabActive,_this.props.goToPage,_this.props.tabStyle[page],_this.props.activeTabStyle[page],_this.props.textStyle[page],_this.props.activeTextStyle[page],_this.props.tabHeaderStyle[page]);}),_react2.default.createElement(Animated.View,{style:[tabUnderlineStyle,{left:left},this.props.underlineStyle],__source:{fileName:_jsxFileName,lineNumber:138}}));}});var StyledTab=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.DefaultTabBar",{},_mapPropsToStyleNames2.default)(DefaultTabBar);exports.DefaultTabBar=StyledTab; //# sourceMappingURL=DefaultTabBar.js.map \ No newline at end of file diff --git a/dist/src/basic/Tabs/DefaultTabBar.js.map b/dist/src/basic/Tabs/DefaultTabBar.js.map index 02d7a26c8..8ea82fe11 100644 --- a/dist/src/basic/Tabs/DefaultTabBar.js.map +++ b/dist/src/basic/Tabs/DefaultTabBar.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/basic/Tabs/DefaultTabBar.js"],"names":["ReactNative","require","StyleSheet","View","Animated","Platform","Button","DefaultTabBar","propTypes","goToPage","PropTypes","func","activeTab","number","tabs","array","backgroundColor","string","activeTextColor","inactiveTextColor","tabStyle","ViewPropTypes","style","renderTab","underlineStyle","tabContainerStyle","contextTypes","theme","object","getDefaultProps","variable","topTabBarActiveTextColor","topTabBarTextColor","tabFontSize","renderTabOption","name","page","isTabActive","onPressHandler","activeTabStyle","textStyle","activeTextStyle","tabHeaderStyle","headerContent","props","children","undefined","textColor","fontWeight","fontSize","flex","_","random","render","variables","context","platformStyle","containerWidth","numberOfTabs","length","tabUnderlineStyle","position","width","height","topTabBarActiveBorderColor","bottom","left","scrollValue","interpolate","inputRange","outputRange","tabDefaultBg","map","StyledTab","mapPropsToStyleNames"],"mappings":"4IAAA,4B;AACA,qC;AACA,oD;AACA,8B;AACA;AACA,sE;AACA,0D;AACA;AACA,kC;AACA,GAAMA,aAAcC,QAAQ,cAAR,CAApB,C;;AAEQC,U,CAAyCF,W,CAAzCE,U,CAAYC,I,CAA6BH,W,CAA7BG,I,CAAMC,Q,CAAuBJ,W,CAAvBI,Q,CAAUC,Q,CAAaL,W,CAAbK,Q;AACpC,GAAMC,QAASL,QAAQ,UAAR,CAAf;;AAEA,GAAMM,eAAgB,+BAAiB;AACrCC,UAAW;AACTC,SAAUC,oBAAUC,IADX;AAETC,UAAWF,oBAAUG,MAFZ;AAGTC,KAAMJ,oBAAUK,KAHP;AAITC,gBAAiBN,oBAAUO,MAJlB;AAKTC,gBAAiBR,oBAAUO,MALlB;AAMTE,kBAAmBT,oBAAUO,MANpB;AAOTG,SAAUC,qBAAcC,KAPf;AAQTC,UAAWb,oBAAUC,IARZ;AASTa,eAAgBH,qBAAcC,KATrB;AAUTG,kBAAmBJ,qBAAcC,KAVxB,CAD0B;;AAarCI,aAAc;AACZC,MAAOjB,oBAAUkB,MADL,CAbuB;;;AAiBrCC,eAjBqC,2BAiBnB;AAChB,MAAO;AACLX,gBAAiBY,mBAASC,wBADrB;AAELZ,kBAAmBW,mBAASE,kBAFvB;AAGLhB,gBAAiB,IAHZ;AAILiB,YAAaH,mBAASG,WAJjB,CA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AWxB,QAAX,CAAoBgB,IAApB,CALK;AAML,MAAKQ,KAAL,CAAWL,cAAX,CAA0BH,IAA1B,CANK;AAOL,MAAKQ,KAAL,CAAWJ,SAAX,CAAqBJ,IAArB,CAPK;AAQL,MAAKQ,KAAL,CAAWH,eAAX,CAA2BL,IAA3B,CARK;AASL,MAAKQ,KAAL,CAAWF,cAAX,CAA0BN,IAA1B,CATK,CAAP;;AAWD,CAdA,CANH;AAqBE,8BAAC,QAAD,CAAU,IAAV;AACE,MAAO,CAACwB,iBAAD,CAAoB,CAAEM,SAAF,CAApB,CAA8B,KAAKtB,KAAL,CAAWpB,cAAzC,CADT,kDArBF,CADF;;;;AA2BD,CAhIoC,CAAjB,CAAtB;;;;AAoIA,GAAMiD,WAAY;AAChB,0BADgB;AAEhB,EAFgB;AAGhBC,8BAHgB;AAIhBnE,aAJgB,CAAlB,C;AAKsBA,a,CAAbkE,S","file":"DefaultTabBar.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport createReactClass from \"create-react-class\";\nimport _ from \"lodash\";\nimport { connectStyle, StyleProvider } from \"native-base-shoutem-theme\";\nimport mapPropsToStyleNames from \"../../utils/mapPropsToStyleNames\";\nimport variable from \"./../../theme/variables/platform\";\nimport { TabHeading, Text, TabContainer } from \"./../../index\";\nimport { ViewPropTypes } from \"../../utils\";\nconst ReactNative = require(\"react-native\");\n\nconst { StyleSheet, View, Animated, Platform } = ReactNative;\nconst Button = require(\"./Button\");\n\nconst DefaultTabBar = createReactClass({\n propTypes: {\n goToPage: PropTypes.func,\n activeTab: PropTypes.number,\n tabs: PropTypes.array,\n backgroundColor: PropTypes.string,\n activeTextColor: PropTypes.string,\n inactiveTextColor: PropTypes.string,\n tabStyle: ViewPropTypes.style,\n renderTab: PropTypes.func,\n underlineStyle: ViewPropTypes.style,\n tabContainerStyle: ViewPropTypes.style\n },\n contextTypes: {\n theme: PropTypes.object\n },\n\n getDefaultProps() {\n return {\n activeTextColor: variable.topTabBarActiveTextColor,\n inactiveTextColor: variable.topTabBarTextColor,\n backgroundColor: null,\n tabFontSize: variable.tabFontSize\n };\n },\n\n renderTabOption(name, page) {},\n\n renderTab(\n name,\n page,\n isTabActive,\n onPressHandler,\n tabStyle,\n activeTabStyle,\n textStyle,\n activeTextStyle,\n tabHeaderStyle\n ) {\n const headerContent =\n typeof name !== \"string\" ? name.props.children : undefined;\n const { activeTextColor, inactiveTextColor, tabFontSize } = this.props;\n const textColor = isTabActive ? activeTextColor : inactiveTextColor;\n const fontWeight = isTabActive ? \"bold\" : \"normal\";\n const fontSize = tabFontSize;\n if (typeof name === \"string\") {\n return (\n onPressHandler(page)}\n >\n \n \n {name}\n \n \n \n );\n } else {\n return (\n onPressHandler(page)}\n >\n \n {headerContent}\n \n \n );\n }\n },\n\n render() {\n const variables = this.context.theme\n ? this.context.theme[\"@@shoutem.theme/themeStyle\"].variables\n : variable;\n const platformStyle = variables.platformStyle;\n const containerWidth = this.props.containerWidth;\n const numberOfTabs = this.props.tabs.length;\n const tabUnderlineStyle = {\n position: \"absolute\",\n width: containerWidth / numberOfTabs,\n height: 4,\n backgroundColor: variables.topTabBarActiveBorderColor,\n bottom: 0\n };\n\n const left = this.props.scrollValue.interpolate({\n inputRange: [0, 1],\n outputRange: [0, containerWidth / numberOfTabs]\n });\n return (\n \n {this.props.tabs.map((name, page) => {\n const isTabActive = this.props.activeTab === page;\n const renderTab = this.props.renderTab || this.renderTab;\n return renderTab(\n name,\n page,\n isTabActive,\n this.props.goToPage,\n this.props.tabStyle[page],\n this.props.activeTabStyle[page],\n this.props.textStyle[page],\n this.props.activeTextStyle[page],\n this.props.tabHeaderStyle[page]\n );\n })}\n \n \n );\n }\n});\n\n// module.exports = DefaultTabBar;\nconst StyledTab = connectStyle(\n \"NativeBase.DefaultTabBar\",\n {},\n mapPropsToStyleNames\n)(DefaultTabBar);\nexport { StyledTab as DefaultTabBar };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/basic/Tabs/DefaultTabBar.js"],"names":["ReactNative","require","StyleSheet","View","Animated","Platform","Button","DefaultTabBar","propTypes","goToPage","PropTypes","func","activeTab","number","tabs","array","backgroundColor","string","activeTextColor","inactiveTextColor","tabStyle","ViewPropTypes","style","renderTab","underlineStyle","tabContainerStyle","contextTypes","theme","object","getDefaultProps","variable","topTabBarActiveTextColor","topTabBarTextColor","tabFontSize","renderTabOption","name","page","isTabActive","onPressHandler","activeTabStyle","textStyle","activeTextStyle","tabHeaderStyle","headerContent","props","children","undefined","textColor","fontWeight","fontSize","flex","_","random","render","variables","context","platformStyle","containerWidth","numberOfTabs","length","tabUnderlineStyle","position","width","height","topTabBarActiveBorderColor","bottom","left","scrollValue","interpolate","inputRange","outputRange","tabDefaultBg","map","StyledTab","mapPropsToStyleNames"],"mappings":"4IAAA,4B,2CACA,qC,mDACA,oD,iEACA,8B,6CACA,iEACA,sE,yEACA,0D,iDACA,oCACA,kC,mFACA,GAAMA,aAAcC,QAAQ,cAAR,CAApB,C,GAEQC,W,CAAyCF,W,CAAzCE,U,CAAYC,I,CAA6BH,W,CAA7BG,I,CAAMC,Q,CAAuBJ,W,CAAvBI,Q,CAAUC,Q,CAAaL,W,CAAbK,Q,CACpC,GAAMC,QAASL,QAAQ,UAAR,CAAf,CAEA,GAAMM,eAAgB,+BAAiB,6BACrCC,UAAW,CACTC,SAAUC,oBAAUC,IADX,CAETC,UAAWF,oBAAUG,MAFZ,CAGTC,KAAMJ,oBAAUK,KAHP,CAITC,gBAAiBN,oBAAUO,MAJlB,CAKTC,gBAAiBR,oBAAUO,MALlB,CAMTE,kBAAmBT,oBAAUO,MANpB,CAOTG,SAAUC,qBAAcC,KAPf,CAQTC,UAAWb,oBAAUC,IARZ,CASTa,eAAgBH,qBAAcC,KATrB,CAUTG,kBAAmBJ,qBAAcC,KAVxB,CAD0B,CAarCI,aAAc,CACZC,MAAOjB,oBAAUkB,MADL,CAbuB,CAiBrCC,eAjBqC,2BAiBnB,CAChB,MAAO,CACLX,gBAA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ACLY,IADK,CAELC,IAFK,CAGLC,WAHK,CAIL,MAAKO,KAAL,CAAWnC,QAJN,CAKL,MAAKmC,KAAL,CAAWxB,QAAX,CAAoBgB,IAApB,CALK,CAML,MAAKQ,KAAL,CAAWL,cAAX,CAA0BH,IAA1B,CANK,CAOL,MAAKQ,KAAL,CAAWJ,SAAX,CAAqBJ,IAArB,CAPK,CAQL,MAAKQ,KAAL,CAAWH,eAAX,CAA2BL,IAA3B,CARK,CASL,MAAKQ,KAAL,CAAWF,cAAX,CAA0BN,IAA1B,CATK,CAAP,CAWD,CAdA,CANH,CAqBE,8BAAC,QAAD,CAAU,IAAV,EACE,MAAO,CAACwB,iBAAD,CAAoB,CAAEM,SAAF,CAApB,CAA8B,KAAKtB,KAAL,CAAWpB,cAAzC,CADT,kDArBF,CADF,CA2BD,CAhIoC,CAAjB,CAAtB,CAoIA,GAAMiD,WAAY,yCAChB,0BADgB,CAEhB,EAFgB,CAGhBC,8BAHgB,EAIhBnE,aAJgB,CAAlB,C,QAKsBA,a,CAAbkE,S","file":"DefaultTabBar.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport createReactClass from \"create-react-class\";\nimport _ from \"lodash\";\nimport { connectStyle, StyleProvider } from \"native-base-shoutem-theme\";\nimport mapPropsToStyleNames from \"../../utils/mapPropsToStyleNames\";\nimport variable from \"./../../theme/variables/platform\";\nimport { TabHeading, Text, TabContainer } from \"./../../index\";\nimport { ViewPropTypes } from \"../../utils\";\nconst ReactNative = require(\"react-native\");\n\nconst { StyleSheet, View, Animated, Platform } = ReactNative;\nconst Button = require(\"./Button\");\n\nconst DefaultTabBar = createReactClass({\n propTypes: {\n goToPage: PropTypes.func,\n activeTab: PropTypes.number,\n tabs: PropTypes.array,\n backgroundColor: PropTypes.string,\n activeTextColor: PropTypes.string,\n inactiveTextColor: PropTypes.string,\n tabStyle: ViewPropTypes.style,\n renderTab: PropTypes.func,\n underlineStyle: ViewPropTypes.style,\n tabContainerStyle: ViewPropTypes.style\n },\n contextTypes: {\n theme: PropTypes.object\n },\n\n getDefaultProps() {\n return {\n activeTextColor: variable.topTabBarActiveTextColor,\n inactiveTextColor: variable.topTabBarTextColor,\n backgroundColor: null,\n tabFontSize: variable.tabFontSize\n };\n },\n\n renderTabOption(name, page) {},\n\n renderTab(\n name,\n page,\n isTabActive,\n onPressHandler,\n tabStyle,\n activeTabStyle,\n textStyle,\n activeTextStyle,\n tabHeaderStyle\n ) {\n const headerContent =\n typeof name !== \"string\" ? name.props.children : undefined;\n const { activeTextColor, inactiveTextColor, tabFontSize } = this.props;\n const textColor = isTabActive ? activeTextColor : inactiveTextColor;\n const fontWeight = isTabActive ? \"bold\" : \"normal\";\n const fontSize = tabFontSize;\n if (typeof name === \"string\") {\n return (\n onPressHandler(page)}\n >\n \n \n {name}\n \n \n \n );\n } else {\n return (\n onPressHandler(page)}\n >\n \n {headerContent}\n \n \n );\n }\n },\n\n render() {\n const variables = this.context.theme\n ? this.context.theme[\"@@shoutem.theme/themeStyle\"].variables\n : variable;\n const platformStyle = variables.platformStyle;\n const containerWidth = this.props.containerWidth;\n const numberOfTabs = this.props.tabs.length;\n const tabUnderlineStyle = {\n position: \"absolute\",\n width: containerWidth / numberOfTabs,\n height: 4,\n backgroundColor: variables.topTabBarActiveBorderColor,\n bottom: 0\n };\n\n const left = this.props.scrollValue.interpolate({\n inputRange: [0, 1],\n outputRange: [0, containerWidth / numberOfTabs]\n });\n return (\n \n {this.props.tabs.map((name, page) => {\n const isTabActive = this.props.activeTab === page;\n const renderTab = this.props.renderTab || this.renderTab;\n return renderTab(\n name,\n page,\n isTabActive,\n this.props.goToPage,\n this.props.tabStyle[page],\n this.props.activeTabStyle[page],\n this.props.textStyle[page],\n this.props.activeTextStyle[page],\n this.props.tabHeaderStyle[page]\n );\n })}\n \n \n );\n }\n});\n\n// module.exports = DefaultTabBar;\nconst StyledTab = connectStyle(\n \"NativeBase.DefaultTabBar\",\n {},\n mapPropsToStyleNames\n)(DefaultTabBar);\nexport { StyledTab as DefaultTabBar };\n"]} \ No newline at end of file diff --git a/dist/src/basic/Tabs/SceneComponent.js b/dist/src/basic/Tabs/SceneComponent.js index e13ba208c..41ef3e1b4 100644 --- a/dist/src/basic/Tabs/SceneComponent.js +++ b/dist/src/basic/Tabs/SceneComponent.js @@ -1,20 +1,2 @@ -var _extends=Object.assign||function(target){for(var i=1;i=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}var React=require("react"); -var ReactNative=require("react-native");var -Component=React.Component;var -View=ReactNative.View,StyleSheet=ReactNative.StyleSheet; - -var StaticContainer=require("./StaticContainer"); - -var SceneComponent=function SceneComponent(Props){var -shouldUpdated=Props.shouldUpdated,props=_objectWithoutProperties(Props,["shouldUpdated"]); -return( -React.createElement(View,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:11}}), -React.createElement(StaticContainer,{shouldUpdate:shouldUpdated,__source:{fileName:_jsxFileName,lineNumber:12}}, -props.children))); - - - -}; - -module.exports=SceneComponent; +var _extends=Object.assign||function(target){for(var i=1;i=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}var React=require("react");var ReactNative=require("react-native");var Component=React.Component;var View=ReactNative.View,StyleSheet=ReactNative.StyleSheet;var StaticContainer=require("./StaticContainer");var SceneComponent=function SceneComponent(Props){var shouldUpdated=Props.shouldUpdated,props=_objectWithoutProperties(Props,["shouldUpdated"]);return React.createElement(View,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:11}}),React.createElement(StaticContainer,{shouldUpdate:shouldUpdated,__source:{fileName:_jsxFileName,lineNumber:12}},props.children));};module.exports=SceneComponent; //# sourceMappingURL=SceneComponent.js.map \ No newline at end of file diff --git a/dist/src/basic/Tabs/SceneComponent.js.map b/dist/src/basic/Tabs/SceneComponent.js.map index 408c4b263..ee24f53b2 100644 --- a/dist/src/basic/Tabs/SceneComponent.js.map +++ b/dist/src/basic/Tabs/SceneComponent.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/basic/Tabs/SceneComponent.js"],"names":["React","require","ReactNative","Component","View","StyleSheet","StaticContainer","SceneComponent","shouldUpdated","Props","props","children","module","exports"],"mappings":"ydAAA,GAAMA,OAAQC,QAAQ,OAAR,CAAd;AACA,GAAMC,aAAcD,QAAQ,cAAR,CAApB,C;AACQE,S,CAAcH,K,CAAdG,S;AACAC,I,CAAqBF,W,CAArBE,I,CAAMC,U,CAAeH,W,CAAfG,U;;AAEd,GAAMC,iBAAkBL,QAAQ,mBAAR,CAAxB;;AAEA,GAAMM,gBAAiB,QAAjBA,eAAiB,OAAS;AACtBC,aADsB,CACMC,KADN,CACtBD,aADsB,CACJE,KADI,0BACMD,KADN;AAE9B;AACE,oBAAC,IAAD,aAAUC,KAAV;AACE,oBAAC,eAAD,EAAiB,aAAcF,aAA/B;AACGE,MAAMC,QADT,CADF,CADF;;;;AAOD,CATD;;AAWAC,OAAOC,OAAP,CAAiBN,cAAjB","file":"SceneComponent.js","sourcesContent":["const React = require(\"react\");\nconst ReactNative = require(\"react-native\");\nconst { Component } = React;\nconst { View, StyleSheet } = ReactNative;\n\nconst StaticContainer = require(\"./StaticContainer\");\n\nconst SceneComponent = Props => {\n const { shouldUpdated, ...props } = Props;\n return (\n \n \n {props.children}\n \n \n );\n};\n\nmodule.exports = SceneComponent;\n//export default SceneComponent;\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/basic/Tabs/SceneComponent.js"],"names":["React","require","ReactNative","Component","View","StyleSheet","StaticContainer","SceneComponent","shouldUpdated","Props","props","children","module","exports"],"mappings":"ydAAA,GAAMA,OAAQC,QAAQ,OAAR,CAAd,CACA,GAAMC,aAAcD,QAAQ,cAAR,CAApB,C,GACQE,U,CAAcH,K,CAAdG,S,IACAC,K,CAAqBF,W,CAArBE,I,CAAMC,U,CAAeH,W,CAAfG,U,CAEd,GAAMC,iBAAkBL,QAAQ,mBAAR,CAAxB,CAEA,GAAMM,gBAAiB,QAAjBA,eAAiB,OAAS,IACtBC,cADsB,CACMC,KADN,CACtBD,aADsB,CACJE,KADI,0BACMD,KADN,oBAE9B,MACE,qBAAC,IAAD,aAAUC,KAAV,mDACE,oBAAC,eAAD,EAAiB,aAAcF,aAA/B,iDACGE,MAAMC,QADT,CADF,CADF,CAOD,CATD,CAWAC,OAAOC,OAAP,CAAiBN,cAAjB","file":"SceneComponent.js","sourcesContent":["const React = require(\"react\");\nconst ReactNative = require(\"react-native\");\nconst { Component } = React;\nconst { View, StyleSheet } = ReactNative;\n\nconst StaticContainer = require(\"./StaticContainer\");\n\nconst SceneComponent = Props => {\n const { shouldUpdated, ...props } = Props;\n return (\n \n \n {props.children}\n \n \n );\n};\n\nmodule.exports = SceneComponent;\n//export default SceneComponent;\n"]} \ No newline at end of file diff --git a/dist/src/basic/Tabs/ScrollableTabBar.js b/dist/src/basic/Tabs/ScrollableTabBar.js index e85516c1f..f037f885b 100644 --- a/dist/src/basic/Tabs/ScrollableTabBar.js +++ b/dist/src/basic/Tabs/ScrollableTabBar.js @@ -1,342 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.ScrollableTab=undefined;var _jsxFileName="src/basic/Tabs/ScrollableTabBar.js";var _react=require("react");var _react2=_interopRequireDefault(_react); -var _propTypes=require("prop-types");var _propTypes2=_interopRequireDefault(_propTypes); -var _createReactClass=require("create-react-class");var _createReactClass2=_interopRequireDefault(_createReactClass); -var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash); -var _nativeBaseShoutemTheme=require("native-base-shoutem-theme"); -var _mapPropsToStyleNames=require("../../utils/mapPropsToStyleNames");var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames); -var _platform=require("./../../theme/variables/platform");var _platform2=_interopRequireDefault(_platform); -var _index=require("./../../index"); -var _utils=require("../../utils");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};} -var Button=require("./Button"); -var ReactNative=require("react-native");var - -View= - - - - - -ReactNative.View,Animated=ReactNative.Animated,StyleSheet=ReactNative.StyleSheet,ScrollView=ReactNative.ScrollView,Platform=ReactNative.Platform,Dimensions=ReactNative.Dimensions; - -var WINDOW_WIDTH=Dimensions.get("window").width; - -var ScrollableTabBar=(0,_createReactClass2.default)({displayName:"ScrollableTabBar", -propTypes:{ -goToPage:_propTypes2.default.func, -activeTab:_propTypes2.default.number, -tabs:_propTypes2.default.array, -backgroundColor:_propTypes2.default.string, -activeTextColor:_propTypes2.default.string, -inactiveTextColor:_propTypes2.default.string, -scrollOffset:_propTypes2.default.number, -style:_utils.ViewPropTypes.style, -tabStyle:_utils.ViewPropTypes.style, -tabsContainerStyle:_utils.ViewPropTypes.style, -renderTab:_propTypes2.default.func, -underlineStyle:_utils.ViewPropTypes.style, -onScroll:_propTypes2.default.func}, - -contextTypes:{ -theme:_propTypes2.default.object}, - - -getDefaultProps:function getDefaultProps(){ -return{ -scrollOffset:52, -activeTextColor:"navy", -inactiveTextColor:"black", -backgroundColor:_platform2.default.tabDefaultBg, -style:{}, -tabStyle:{}, -tabsContainerStyle:{}, -underlineStyle:{}, -tabFontSize:_platform2.default.tabFontSize}; - -}, - -getInitialState:function getInitialState(){ -this._tabsMeasurements=[]; -return{ -_leftTabUnderline:new Animated.Value(0), -_widthTabUnderline:new Animated.Value(0), -_containerWidth:null}; - -}, - -componentDidMount:function componentDidMount(){ -this.props.scrollValue.addListener(this.updateView); -}, - -updateView:function updateView(offset){ -var position=Math.floor(offset.value); -var pageOffset=offset.value%1; -var tabCount=this.props.tabs.length; -var lastTabPosition=tabCount-1; - -if(tabCount===0||offset.value<0||offset.value>lastTabPosition){ -return; -} - -if( -this.necessarilyMeasurementsCompleted( -position, -position===lastTabPosition)) - -{ -this.updateTabPanel(position,pageOffset); -this.updateTabUnderline(position,pageOffset,tabCount); -} -}, - -necessarilyMeasurementsCompleted:function necessarilyMeasurementsCompleted(position,isLastTab){ -return( -this._tabsMeasurements[position]&&( -isLastTab||this._tabsMeasurements[position+1])&& -this._tabContainerMeasurements&& -this._containerMeasurements); - -}, - -updateTabPanel:function updateTabPanel(position,pageOffset){ -var containerWidth=this._containerMeasurements.width; -var tabWidth=this._tabsMeasurements[position].width; -var nextTabMeasurements=this._tabsMeasurements[position+1]; -var nextTabWidth= -nextTabMeasurements&&nextTabMeasurements.width||0; -var tabOffset=this._tabsMeasurements[position].left; -var absolutePageOffset=pageOffset*tabWidth; -var newScrollX=tabOffset+absolutePageOffset; - - -newScrollX-= -(containerWidth- -(1-pageOffset)*tabWidth- -pageOffset*nextTabWidth)/ -2; -newScrollX=newScrollX>=0?newScrollX:0; - -if(Platform.OS==="android"){ -this._scrollView.scrollTo({x:newScrollX,y:0,animated:false}); -}else{ -var rightBoundScroll= -this._tabContainerMeasurements.width- -this._containerMeasurements.width; -newScrollX= -newScrollX>rightBoundScroll?rightBoundScroll:newScrollX; -this._scrollView.scrollTo({x:newScrollX,y:0,animated:false}); -} -}, - -updateTabUnderline:function updateTabUnderline(position,pageOffset,tabCount){ -var lineLeft=this._tabsMeasurements[position].left; -var lineRight=this._tabsMeasurements[position].right; - -if(positionlastTabPosition){return;}if(this.necessarilyMeasurementsCompleted(position,position===lastTabPosition)){this.updateTabPanel(position,pageOffset);this.updateTabUnderline(position,pageOffset,tabCount);}},necessarilyMeasurementsCompleted:function necessarilyMeasurementsCompleted(position,isLastTab){return this._tabsMeasurements[position]&&(isLastTab||this._tabsMeasurements[position+1])&&this._tabContainerMeasurements&&this._containerMeasurements;},updateTabPanel:function updateTabPanel(position,pageOffset){var containerWidth=this._containerMeasurements.width;var tabWidth=this._tabsMeasurements[position].width;var nextTabMeasurements=this._tabsMeasurements[position+1];var nextTabWidth=nextTabMeasurements&&nextTabMeasurements.width||0;var tabOffset=this._tabsMeasurements[position].left;var absolutePageOffset=pageOffset*tabWidth;var newScrollX=tabOffset+absolutePageOffset;newScrollX-=(containerWidth-(1-pageOffset)*tabWidth-pageOffset*nextTabWidth)/2;newScrollX=newScrollX>=0?newScrollX:0;if(Platform.OS==="android"){this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});}else{var rightBoundScroll=this._tabContainerMeasurements.width-this._containerMeasurements.width;newScrollX=newScrollX>rightBoundScroll?rightBoundScroll:newScrollX;this._scrollView.scrollTo({x:newScrollX,y:0,animated:false});}},updateTabUnderline:function updateTabUnderline(position,pageOffset,tabCount){var lineLeft=this._tabsMeasurements[position].left;var lineRight=this._tabsMeasurements[position].right;if(position lastTabPosition) {\n return;\n }\n\n if (\n this.necessarilyMeasurementsCompleted(\n position,\n position === lastTabPosition\n )\n ) {\n this.updateTabPanel(position, pageOffset);\n this.updateTabUnderline(position, pageOffset, tabCount);\n }\n },\n\n necessarilyMeasurementsCompleted(position, isLastTab) {\n return (\n this._tabsMeasurements[position] &&\n (isLastTab || this._tabsMeasurements[position + 1]) &&\n this._tabContainerMeasurements &&\n this._containerMeasurements\n );\n },\n\n updateTabPanel(position, pageOffset) {\n const containerWidth = this._containerMeasurements.width;\n const tabWidth = this._tabsMeasurements[position].width;\n const nextTabMeasurements = this._tabsMeasurements[position + 1];\n const nextTabWidth =\n (nextTabMeasurements && nextTabMeasurements.width) || 0;\n const tabOffset = this._tabsMeasurements[position].left;\n const absolutePageOffset = pageOffset * tabWidth;\n let newScrollX = tabOffset + absolutePageOffset;\n\n // center tab and smooth tab change (for when tabWidth changes a lot between two tabs)\n newScrollX -=\n (containerWidth -\n (1 - pageOffset) * tabWidth -\n pageOffset * nextTabWidth) /\n 2;\n newScrollX = newScrollX >= 0 ? newScrollX : 0;\n\n if (Platform.OS === \"android\") {\n this._scrollView.scrollTo({ x: newScrollX, y: 0, animated: false });\n } else {\n const rightBoundScroll =\n this._tabContainerMeasurements.width -\n this._containerMeasurements.width;\n newScrollX =\n newScrollX > rightBoundScroll ? rightBoundScroll : newScrollX;\n this._scrollView.scrollTo({ x: newScrollX, y: 0, animated: false });\n }\n },\n\n updateTabUnderline(position, pageOffset, tabCount) {\n const lineLeft = this._tabsMeasurements[position].left;\n const lineRight = this._tabsMeasurements[position].right;\n\n if (position < tabCount - 1) {\n const nextTabLeft = this._tabsMeasurements[position + 1].left;\n const nextTabRight = this._tabsMeasurements[position + 1].right;\n\n const newLineLeft =\n pageOffset * nextTabLeft + (1 - pageOffset) * lineLeft;\n const newLineRight =\n pageOffset * nextTabRight + (1 - pageOffset) * lineRight;\n\n this.state._leftTabUnderline.setValue(newLineLeft);\n this.state._widthTabUnderline.setValue(newLineRight - newLineLeft);\n } else {\n this.state._leftTabUnderline.setValue(lineLeft);\n this.state._widthTabUnderline.setValue(lineRight - lineLeft);\n }\n },\n\n renderTab(\n name,\n page,\n isTabActive,\n onPressHandler,\n onLayoutHandler,\n tabStyle,\n activeTabStyle,\n textStyle,\n activeTextStyle,\n tabHeaderStyle\n ) {\n const headerContent =\n typeof name !== \"string\" ? name.props.children : undefined;\n const { activeTextColor, inactiveTextColor, tabFontSize } = this.props;\n const textColor = isTabActive ? activeTextColor : inactiveTextColor;\n const fontWeight = isTabActive ? \"bold\" : \"normal\";\n const fontSize = tabFontSize;\n\n if (typeof name === \"string\") {\n return (\n onPressHandler(page)}\n onLayout={onLayoutHandler}\n >\n \n \n {name}\n \n \n \n );\n } else {\n return (\n onPressHandler(page)}\n onLayout={onLayoutHandler}\n >\n \n {headerContent}\n \n \n );\n }\n },\n\n measureTab(page, event) {\n const { x, width, height } = event.nativeEvent.layout;\n this._tabsMeasurements[page] = { left: x, right: x + width, width, height };\n this.updateView({ value: this.props.scrollValue._value });\n },\n\n render() {\n const variables = this.context.theme\n ? this.context.theme[\"@@shoutem.theme/themeStyle\"].variables\n : variable;\n const tabUnderlineStyle = {\n position: \"absolute\",\n height: 4,\n backgroundColor: variables.topTabBarActiveBorderColor,\n bottom: 0\n };\n\n const dynamicTabUnderline = {\n left: this.state._leftTabUnderline,\n width: this.state._widthTabUnderline\n };\n\n return (\n \n {\n this._scrollView = scrollView;\n }}\n horizontal={true}\n showsHorizontalScrollIndicator={false}\n showsVerticalScrollIndicator={false}\n directionalLockEnabled={true}\n onScroll={this.props.onScroll}\n bounces={false}\n scrollsToTop={false}\n >\n \n {this.props.tabs.map((name, page) => {\n const isTabActive = this.props.activeTab === page;\n const renderTab = this.props.renderTab || this.renderTab;\n return renderTab(\n name,\n page,\n isTabActive,\n this.props.goToPage,\n this.measureTab.bind(this, page),\n this.props.tabStyle[page],\n this.props.activeTabStyle[page],\n this.props.textStyle[page],\n this.props.activeTextStyle[page],\n this.props.tabHeaderStyle[page]\n );\n })}\n \n \n \n \n );\n },\n\n componentWillReceiveProps(nextProps) {\n // If the tabs change, force the width of the tabs container to be recalculated\n if (\n !_.isEqual(this.props.tabs, nextProps.tabs) &&\n this.state._containerWidth\n ) {\n this.setState({ _containerWidth: null });\n }\n },\n\n onTabContainerLayout(e) {\n this._tabContainerMeasurements = e.nativeEvent.layout;\n let width = this._tabContainerMeasurements.width;\n if (width < WINDOW_WIDTH) {\n width = WINDOW_WIDTH;\n }\n this.setState({ _containerWidth: width });\n this.updateView({ value: this.props.scrollValue._value });\n },\n\n onContainerLayout(e) {\n this._containerMeasurements = e.nativeEvent.layout;\n this.updateView({ value: this.props.scrollValue._value });\n }\n});\n\n// module.exports = ScrollableTabBar;\nconst StyledTab = connectStyle(\n \"NativeBase.ScrollableTab\",\n {},\n mapPropsToStyleNames\n)(ScrollableTabBar);\nexport { StyledTab as ScrollableTab };\nconst styles = StyleSheet.create({\n tab: {\n height: 49,\n alignItems: \"center\",\n justifyContent: \"center\",\n paddingLeft: 20,\n paddingRight: 20\n },\n container: {\n height: 50,\n borderWidth: 1,\n borderTopWidth: 0,\n borderLeftWidth: 0,\n borderRightWidth: 0,\n borderColor: \"#ccc\"\n },\n tabs: {\n flexDirection: \"row\",\n justifyContent: \"space-around\"\n }\n});\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/basic/Tabs/ScrollableTabBar.js"],"names":["Button","require","ReactNative","View","Animated","StyleSheet","ScrollView","Platform","Dimensions","WINDOW_WIDTH","get","width","ScrollableTabBar","propTypes","goToPage","PropTypes","func","activeTab","number","tabs","array","backgroundColor","string","activeTextColor","inactiveTextColor","scrollOffset","style","ViewPropTypes","tabStyle","tabsContainerStyle","renderTab","underlineStyle","onScroll","contextTypes","theme","object","getDefaultProps","variable","tabDefaultBg","tabFontSize","getInitialState","_tabsMeasurements","_leftTabUnderline","Value","_widthTabUnderline","_containerWidth","componentDidMount","props","scrollValue","addListener","updateView","offset","position","Math","floor","value","pageOffset","tabCount","length","lastTabPosition","necessarilyMeasurementsCompleted","updateTabPanel","updateTabUnderline","isLastTab","_tabContainerMeasurements","_containerMeasurements","containerWidth","tabWidth","nextTabMeasurements","nextTabWidth","tabOffset","left","absolutePageOffset","newScrollX","OS","_scrollView","scrollTo","x","y","animated","rightBoundScroll","lineLeft","lineRight","right","nextTabLeft","nextTabRight","newLineLeft","newLineRight","state","setValue","name","page","isTabActive","onPressHandler","onLayoutHandler","activeTabStyle","textStyle","activeTextStyle","tabHeaderStyle","headerContent","children","undefined","textColor","fontWeight","fontSize","_","random","measureTab","event","nativeEvent","layout","height","_value","render","variables","context","tabUnderlineStyle","topTabBarActiveBorderColor","bottom","dynamicTabUnderline","styles","container","onContainerLayout","scrollView","onTabContainerLayout","map","bind","componentWillReceiveProps","nextProps","isEqual","setState","e","StyledTab","mapPropsToStyleNames","ScrollableTab","create","tab","alignItems","justifyContent","paddingLeft","paddingRight","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderColor","flexDirection"],"mappings":"+IAAA,4B,2CACA,qC,mDACA,oD,iEACA,8B,6CACA,iEACA,sE,yEACA,0D,iDACA,oCACA,kC,mFACA,GAAMA,QAASC,QAAQ,UAAR,CAAf,CACA,GAAMC,aAAcD,QAAQ,cAAR,CAApB,C,GAEEE,K,CAMED,W,CANFC,I,CACAC,Q,CAKEF,W,CALFE,Q,CACAC,U,CAIEH,W,CAJFG,U,CACAC,U,CAGEJ,W,CAHFI,U,CACAC,Q,CAEEL,W,CAFFK,Q,CACAC,U,CACEN,W,CADFM,U,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TC,YAAa,MANJ,CARoB,CAgB/B9H,KAAM,CACJ+H,cAAe,KADX,CAEJR,eAAgB,cAFZ,CAhByB,CAAlB,CAAf","file":"ScrollableTabBar.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport createReactClass from \"create-react-class\";\nimport _ from \"lodash\";\nimport { connectStyle, StyleProvider } from \"native-base-shoutem-theme\";\nimport mapPropsToStyleNames from \"../../utils/mapPropsToStyleNames\";\nimport variable from \"./../../theme/variables/platform\";\nimport { TabHeading, Text, TabContainer } from \"./../../index\";\nimport { ViewPropTypes } from \"../../utils\";\nconst Button = require(\"./Button\");\nconst ReactNative = require(\"react-native\");\nconst {\n View,\n Animated,\n StyleSheet,\n ScrollView,\n Platform,\n Dimensions\n} = ReactNative;\n\nconst WINDOW_WIDTH = Dimensions.get(\"window\").width;\n\nconst ScrollableTabBar = createReactClass({\n propTypes: {\n goToPage: PropTypes.func,\n activeTab: PropTypes.number,\n tabs: PropTypes.array,\n backgroundColor: PropTypes.string,\n activeTextColor: PropTypes.string,\n inactiveTextColor: PropTypes.string,\n scrollOffset: PropTypes.number,\n style: ViewPropTypes.style,\n tabStyle: ViewPropTypes.style,\n tabsContainerStyle: ViewPropTypes.style,\n renderTab: PropTypes.func,\n underlineStyle: ViewPropTypes.style,\n onScroll: PropTypes.func\n },\n contextTypes: {\n theme: PropTypes.object\n },\n\n getDefaultProps() {\n return {\n scrollOffset: 52,\n activeTextColor: \"navy\",\n inactiveTextColor: \"black\",\n backgroundColor: variable.tabDefaultBg,\n style: {},\n tabStyle: {},\n tabsContainerStyle: {},\n underlineStyle: {},\n tabFontSize: variable.tabFontSize\n };\n },\n\n getInitialState() {\n this._tabsMeasurements = [];\n return {\n _leftTabUnderline: new Animated.Value(0),\n _widthTabUnderline: new Animated.Value(0),\n _containerWidth: null\n };\n },\n\n componentDidMount() {\n this.props.scrollValue.addListener(this.updateView);\n },\n\n updateView(offset) {\n const position = Math.floor(offset.value);\n const pageOffset = offset.value % 1;\n const tabCount = this.props.tabs.length;\n const lastTabPosition = tabCount - 1;\n\n if (tabCount === 0 || offset.value < 0 || offset.value > lastTabPosition) {\n return;\n }\n\n if (\n this.necessarilyMeasurementsCompleted(\n position,\n position === lastTabPosition\n )\n ) {\n this.updateTabPanel(position, pageOffset);\n this.updateTabUnderline(position, pageOffset, tabCount);\n }\n },\n\n necessarilyMeasurementsCompleted(position, isLastTab) {\n return (\n this._tabsMeasurements[position] &&\n (isLastTab || this._tabsMeasurements[position + 1]) &&\n this._tabContainerMeasurements &&\n this._containerMeasurements\n );\n },\n\n updateTabPanel(position, pageOffset) {\n const containerWidth = this._containerMeasurements.width;\n const tabWidth = this._tabsMeasurements[position].width;\n const nextTabMeasurements = this._tabsMeasurements[position + 1];\n const nextTabWidth =\n (nextTabMeasurements && nextTabMeasurements.width) || 0;\n const tabOffset = this._tabsMeasurements[position].left;\n const absolutePageOffset = pageOffset * tabWidth;\n let newScrollX = tabOffset + absolutePageOffset;\n\n // center tab and smooth tab change (for when tabWidth changes a lot between two tabs)\n newScrollX -=\n (containerWidth -\n (1 - pageOffset) * tabWidth -\n pageOffset * nextTabWidth) /\n 2;\n newScrollX = newScrollX >= 0 ? newScrollX : 0;\n\n if (Platform.OS === \"android\") {\n this._scrollView.scrollTo({ x: newScrollX, y: 0, animated: false });\n } else {\n const rightBoundScroll =\n this._tabContainerMeasurements.width -\n this._containerMeasurements.width;\n newScrollX =\n newScrollX > rightBoundScroll ? rightBoundScroll : newScrollX;\n this._scrollView.scrollTo({ x: newScrollX, y: 0, animated: false });\n }\n },\n\n updateTabUnderline(position, pageOffset, tabCount) {\n const lineLeft = this._tabsMeasurements[position].left;\n const lineRight = this._tabsMeasurements[position].right;\n\n if (position < tabCount - 1) {\n const nextTabLeft = this._tabsMeasurements[position + 1].left;\n const nextTabRight = this._tabsMeasurements[position + 1].right;\n\n const newLineLeft =\n pageOffset * nextTabLeft + (1 - pageOffset) * lineLeft;\n const newLineRight =\n pageOffset * nextTabRight + (1 - pageOffset) * lineRight;\n\n this.state._leftTabUnderline.setValue(newLineLeft);\n this.state._widthTabUnderline.setValue(newLineRight - newLineLeft);\n } else {\n this.state._leftTabUnderline.setValue(lineLeft);\n this.state._widthTabUnderline.setValue(lineRight - lineLeft);\n }\n },\n\n renderTab(\n name,\n page,\n isTabActive,\n onPressHandler,\n onLayoutHandler,\n tabStyle,\n activeTabStyle,\n textStyle,\n activeTextStyle,\n tabHeaderStyle\n ) {\n const headerContent =\n typeof name !== \"string\" ? name.props.children : undefined;\n const { activeTextColor, inactiveTextColor, tabFontSize } = this.props;\n const textColor = isTabActive ? activeTextColor : inactiveTextColor;\n const fontWeight = isTabActive ? \"bold\" : \"normal\";\n const fontSize = tabFontSize;\n\n if (typeof name === \"string\") {\n return (\n onPressHandler(page)}\n onLayout={onLayoutHandler}\n >\n \n \n {name}\n \n \n \n );\n } else {\n return (\n onPressHandler(page)}\n onLayout={onLayoutHandler}\n >\n \n {headerContent}\n \n \n );\n }\n },\n\n measureTab(page, event) {\n const { x, width, height } = event.nativeEvent.layout;\n this._tabsMeasurements[page] = { left: x, right: x + width, width, height };\n this.updateView({ value: this.props.scrollValue._value });\n },\n\n render() {\n const variables = this.context.theme\n ? this.context.theme[\"@@shoutem.theme/themeStyle\"].variables\n : variable;\n const tabUnderlineStyle = {\n position: \"absolute\",\n height: 4,\n backgroundColor: variables.topTabBarActiveBorderColor,\n bottom: 0\n };\n\n const dynamicTabUnderline = {\n left: this.state._leftTabUnderline,\n width: this.state._widthTabUnderline\n };\n\n return (\n \n {\n this._scrollView = scrollView;\n }}\n horizontal={true}\n showsHorizontalScrollIndicator={false}\n showsVerticalScrollIndicator={false}\n directionalLockEnabled={true}\n onScroll={this.props.onScroll}\n bounces={false}\n scrollsToTop={false}\n >\n \n {this.props.tabs.map((name, page) => {\n const isTabActive = this.props.activeTab === page;\n const renderTab = this.props.renderTab || this.renderTab;\n return renderTab(\n name,\n page,\n isTabActive,\n this.props.goToPage,\n this.measureTab.bind(this, page),\n this.props.tabStyle[page],\n this.props.activeTabStyle[page],\n this.props.textStyle[page],\n this.props.activeTextStyle[page],\n this.props.tabHeaderStyle[page]\n );\n })}\n \n
\n \n
\n );\n },\n\n componentWillReceiveProps(nextProps) {\n // If the tabs change, force the width of the tabs container to be recalculated\n if (\n !_.isEqual(this.props.tabs, nextProps.tabs) &&\n this.state._containerWidth\n ) {\n this.setState({ _containerWidth: null });\n }\n },\n\n onTabContainerLayout(e) {\n this._tabContainerMeasurements = e.nativeEvent.layout;\n let width = this._tabContainerMeasurements.width;\n if (width < WINDOW_WIDTH) {\n width = WINDOW_WIDTH;\n }\n this.setState({ _containerWidth: width });\n this.updateView({ value: this.props.scrollValue._value });\n },\n\n onContainerLayout(e) {\n this._containerMeasurements = e.nativeEvent.layout;\n this.updateView({ value: this.props.scrollValue._value });\n }\n});\n\n// module.exports = ScrollableTabBar;\nconst StyledTab = connectStyle(\n \"NativeBase.ScrollableTab\",\n {},\n mapPropsToStyleNames\n)(ScrollableTabBar);\nexport { StyledTab as ScrollableTab };\nconst styles = StyleSheet.create({\n tab: {\n height: 49,\n alignItems: \"center\",\n justifyContent: \"center\",\n paddingLeft: 20,\n paddingRight: 20\n },\n container: {\n height: 50,\n borderWidth: 1,\n borderTopWidth: 0,\n borderLeftWidth: 0,\n borderRightWidth: 0,\n borderColor: \"#ccc\"\n },\n tabs: {\n flexDirection: \"row\",\n justifyContent: \"space-around\"\n }\n});\n"]} \ No newline at end of file diff --git a/dist/src/basic/Tabs/StaticContainer.js b/dist/src/basic/Tabs/StaticContainer.js index a3b1dba74..246510195 100644 --- a/dist/src/basic/Tabs/StaticContainer.js +++ b/dist/src/basic/Tabs/StaticContainer.js @@ -1,18 +1,2 @@ -var _createClass=function(){function defineProperties(target,props){for(var i=0;i=0&&props.page!==this.state.currentPage){ -this.goToPage(props.page); -} -}, - -goToPage:function goToPage(pageNumber){ -var offset=pageNumber*this.state.containerWidth; -if(this.scrollView){ -this.scrollView.scrollTo({ -x:offset, -y:0, -animated:!this.props.scrollWithoutAnimation}); - -} - -var currentPage=this.state.currentPage; -this.updateSceneKeys({ -page:pageNumber, -callback:this._onChangeTab.bind(this,currentPage,pageNumber)}); - -}, - -renderTabBar:function renderTabBar(props){ -if(this.props.renderTabBar===false){ -return null; -}else if(this.props.renderTabBar){ -return React.cloneElement(this.props.renderTabBar(props),props); -}else{ -return React.createElement(DefaultTabBar,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:116}})); -} -}, - -updateSceneKeys:function updateSceneKeys(_ref) - - - -{var page=_ref.page,_ref$children=_ref.children,children=_ref$children===undefined?this.props.children:_ref$children,_ref$callback=_ref.callback,callback=_ref$callback===undefined?function(){}:_ref$callback; -var newKeys=this.newSceneKeys({ -previousKeys:this.state.sceneKeys, -currentPage:page, -children:children}); - -this.setState({currentPage:page,sceneKeys:newKeys},callback); -}, - -newSceneKeys:function newSceneKeys(_ref2) - - - -{var _this2=this;var _ref2$previousKeys=_ref2.previousKeys,previousKeys=_ref2$previousKeys===undefined?[]:_ref2$previousKeys,_ref2$currentPage=_ref2.currentPage,currentPage=_ref2$currentPage===undefined?0:_ref2$currentPage,_ref2$children=_ref2.children,children=_ref2$children===undefined?this.props.children:_ref2$children; -var newKeys=[]; -this._children(children).forEach(function(child,idx){ -var key=_this2._makeSceneKey(child,idx); -if( -_this2._keyExists(previousKeys,key)|| -_this2._shouldRenderSceneKey(idx,currentPage)) -{ -newKeys.push(key); -} -}); -return newKeys; -}, - -_shouldRenderSceneKey:function _shouldRenderSceneKey(idx,currentPageKey){ -var numOfSibling=this.props.prerenderingSiblingsNumber; -return( -idxcurrentPageKey-numOfSibling-1); - -}, - -_keyExists:function _keyExists(sceneKeys,key){ -return sceneKeys.find(function(sceneKey){return key===sceneKey;}); -}, - -_makeSceneKey:function _makeSceneKey(child,idx){ -return child.props.heading+"_"+idx; -}, - -renderScrollableContent:function renderScrollableContent(){var _this3=this; -var scenes=this._composeScenes(); -return( -React.createElement(ScrollView,_extends({ -horizontal:true, -pagingEnabled:true, -automaticallyAdjustContentInsets:false, -keyboardShouldPersistTaps:"handled", -contentOffset:{ -x:this.props.initialPage*this.state.containerWidth}, - -ref:function ref(scrollView){ -_this3.scrollView=scrollView; -}, -onScroll:function onScroll(e){ -var offsetX=e.nativeEvent.contentOffset.x; -_this3._updateScrollValue(offsetX/_this3.state.containerWidth); -}, -onMomentumScrollBegin:this._onMomentumScrollBeginAndEnd, -onMomentumScrollEnd:this._onMomentumScrollBeginAndEnd, -scrollEventThrottle:16, -scrollsToTop:false, -showsHorizontalScrollIndicator:false, -scrollEnabled:!this.props.locked, -directionalLockEnabled:true, -alwaysBounceVertical:false, -keyboardDismissMode:"on-drag"}, -this.props.contentProps,{__source:{fileName:_jsxFileName,lineNumber:170}}), - -scenes)); - - -}, - -_composeScenes:function _composeScenes(){var _this4=this; -return this._children().map(function(child,idx){ -var key=_this4._makeSceneKey(child,idx); -return( -React.createElement(SceneComponent,{ -key:child.key, -shouldUpdated:_this4._shouldRenderSceneKey( -idx, -_this4.state.currentPage), - -style:{width:_this4.state.containerWidth},__source:{fileName:_jsxFileName,lineNumber:205}}, - -_this4._keyExists(_this4.state.sceneKeys,key)? -child: - -React.createElement(View,{heading:child.props.heading,__source:{fileName:_jsxFileName,lineNumber:216}}))); - - - -}); -}, - -_onMomentumScrollBeginAndEnd:function _onMomentumScrollBeginAndEnd(e){ -var offsetX=e.nativeEvent.contentOffset.x; -var page=Math.round(offsetX/this.state.containerWidth); -if(this.state.currentPage!==page){ -this._updateSelectedPage(page); -} -}, - -_updateSelectedPage:function _updateSelectedPage(nextPage){ -var localNextPage=nextPage; -if(typeof localNextPage==="object"){ -localNextPage=nextPage.nativeEvent.position; -} - -var currentPage=this.state.currentPage; -this.updateSceneKeys({ -page:localNextPage, -callback:this._onChangeTab.bind(this,currentPage,localNextPage)}); - -}, - -_onChangeTab:function _onChangeTab(prevPage,currentPage){ -this.props.onChangeTab({ -i:currentPage, -ref:this._children()[currentPage], -from:prevPage}); - -}, - -_updateScrollValue:function _updateScrollValue(value){ -this.state.scrollValue.setValue(value); -this.props.onScroll(value); -}, - -_handleLayout:function _handleLayout(e){var _this5=this;var -width=e.nativeEvent.layout.width; - -if(Math.round(width)!==Math.round(this.state.containerWidth)){ -this.setState({containerWidth:width}); -this.requestAnimationFrame(function(){ -_this5.goToPage(_this5.state.currentPage); -}); -} -}, - -_children:function _children(){var children=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.props.children; -return React.Children.map(children,function(child){return child;}); -}, - -render:function render(){ -var overlayTabs= -this.props.tabBarPosition==="overlayTop"|| -this.props.tabBarPosition==="overlayBottom"; -var tabBarProps={ -goToPage:this.goToPage, -tabs:this._children().map(function(child){return child.props.heading;}), -tabStyle:this._children().map(function(child){return child.props.tabStyle;}), -activeTabStyle:this._children().map(function(child){return child.props.activeTabStyle;}), -textStyle:this._children().map(function(child){return child.props.textStyle;}), -activeTextStyle:this._children().map( -function(child){return child.props.activeTextStyle;}), - -tabHeaderStyle:this._children().map(function(child){return( -_lodash2.default.get(child.props.heading.props,"style",undefined));}), - -activeTab:this.state.currentPage, -scrollValue:this.state.scrollValue, -containerWidth:this.state.containerWidth}; - - -if(this.props.tabBarBackgroundColor){ -tabBarProps.backgroundColor=this.props.tabBarBackgroundColor; -} -if(this.props.tabBarActiveTextColor){ -tabBarProps.activeTextColor=this.props.tabBarActiveTextColor; -} -if(this.props.tabBarInactiveTextColor){ -tabBarProps.inactiveTextColor=this.props.tabBarInactiveTextColor; -} -if(this.props.tabBarTextStyle){ -tabBarProps.textStyle=this.props.tabBarTextStyle; -} -if(this.props.tabBarUnderlineStyle){ -tabBarProps.underlineStyle=this.props.tabBarUnderlineStyle; -} -if(this.props.tabContainerStyle){ -tabBarProps.tabContainerStyle=this.props.tabContainerStyle; -} -if(overlayTabs){var _tabBarProps$style; -tabBarProps.style=(_tabBarProps$style={ -position:"absolute", -left:0, -right:0},_defineProperty(_tabBarProps$style, -this.props.tabBarPosition==="overlayTop"?"top":"bottom",0),_defineProperty(_tabBarProps$style,"backgroundColor", -"rgba(255, 255, 255, 0.7)"),_tabBarProps$style); - -} - -return( -React.createElement(View,{ -style:[styles.container,this.props.style], -onLayout:this._handleLayout,__source:{fileName:_jsxFileName,lineNumber:322}}, - -(this.props.tabBarPosition==="top"|| -this.props.tabBarPosition==="overlayTop")&& -this.renderTabBar(tabBarProps), -this.renderScrollableContent(), -(this.props.tabBarPosition==="bottom"|| -this.props.tabBarPosition==="overlayBottom")&& -this.renderTabBar(tabBarProps))); - - -}});exports.default= - - -ScrollableTabView; - -var styles=StyleSheet.create({ -container:{ -flex:1}, - -scrollableContentAndroid:{ -flex:1}}); +Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i=0&&props.page!==this.state.currentPage){this.goToPage(props.page);}},goToPage:function goToPage(pageNumber){var offset=pageNumber*this.state.containerWidth;if(this.scrollView){this.scrollView.scrollTo({x:offset,y:0,animated:!this.props.scrollWithoutAnimation});}var currentPage=this.state.currentPage;this.updateSceneKeys({page:pageNumber,callback:this._onChangeTab.bind(this,currentPage,pageNumber)});},renderTabBar:function renderTabBar(props){if(this.props.renderTabBar===false){return null;}else if(this.props.renderTabBar){return React.cloneElement(this.props.renderTabBar(props),props);}else{return React.createElement(DefaultTabBar,_extends({},props,{__source:{fileName:_jsxFileName,lineNumber:116}}));}},updateSceneKeys:function updateSceneKeys(_ref){var page=_ref.page,_ref$children=_ref.children,children=_ref$children===undefined?this.props.children:_ref$children,_ref$callback=_ref.callback,callback=_ref$callback===undefined?function(){}:_ref$callback;var newKeys=this.newSceneKeys({previousKeys:this.state.sceneKeys,currentPage:page,children:children});this.setState({currentPage:page,sceneKeys:newKeys},callback);},newSceneKeys:function newSceneKeys(_ref2){var _this2=this;var _ref2$previousKeys=_ref2.previousKeys,previousKeys=_ref2$previousKeys===undefined?[]:_ref2$previousKeys,_ref2$currentPage=_ref2.currentPage,currentPage=_ref2$currentPage===undefined?0:_ref2$currentPage,_ref2$children=_ref2.children,children=_ref2$children===undefined?this.props.children:_ref2$children;var newKeys=[];this._children(children).forEach(function(child,idx){var key=_this2._makeSceneKey(child,idx);if(_this2._keyExists(previousKeys,key)||_this2._shouldRenderSceneKey(idx,currentPage)){newKeys.push(key);}});return newKeys;},_shouldRenderSceneKey:function _shouldRenderSceneKey(idx,currentPageKey){var numOfSibling=this.props.prerenderingSiblingsNumber;return idxcurrentPageKey-numOfSibling-1;},_keyExists:function _keyExists(sceneKeys,key){return sceneKeys.find(function(sceneKey){return key===sceneKey;});},_makeSceneKey:function _makeSceneKey(child,idx){return child.props.heading+"_"+idx;},renderScrollableContent:function renderScrollableContent(){var _this3=this;var scenes=this._composeScenes();return React.createElement(ScrollView,_extends({horizontal:true,pagingEnabled:true,automaticallyAdjustContentInsets:false,keyboardShouldPersistTaps:"handled",contentOffset:{x:this.props.initialPage*this.state.containerWidth},ref:function ref(scrollView){_this3.scrollView=scrollView;},onScroll:function onScroll(e){var offsetX=e.nativeEvent.contentOffset.x;_this3._updateScrollValue(offsetX/_this3.state.containerWidth);},onMomentumScrollBegin:this._onMomentumScrollBeginAndEnd,onMomentumScrollEnd:this._onMomentumScrollBeginAndEnd,scrollEventThrottle:16,scrollsToTop:false,showsHorizontalScrollIndicator:false,scrollEnabled:!this.props.locked,directionalLockEnabled:true,alwaysBounceVertical:false,keyboardDismissMode:"on-drag"},this.props.contentProps,{__source:{fileName:_jsxFileName,lineNumber:170}}),scenes);},_composeScenes:function _composeScenes(){var _this4=this;return this._children().map(function(child,idx){var key=_this4._makeSceneKey(child,idx);return React.createElement(SceneComponent,{key:child.key,shouldUpdated:_this4._shouldRenderSceneKey(idx,_this4.state.currentPage),style:{width:_this4.state.containerWidth},__source:{fileName:_jsxFileName,lineNumber:205}},_this4._keyExists(_this4.state.sceneKeys,key)?child:React.createElement(View,{heading:child.props.heading,__source:{fileName:_jsxFileName,lineNumber:216}}));});},_onMomentumScrollBeginAndEnd:function _onMomentumScrollBeginAndEnd(e){var offsetX=e.nativeEvent.contentOffset.x;var page=Math.round(offsetX/this.state.containerWidth);if(this.state.currentPage!==page){this._updateSelectedPage(page);}},_updateSelectedPage:function _updateSelectedPage(nextPage){var localNextPage=nextPage;if(typeof localNextPage==="object"){localNextPage=nextPage.nativeEvent.position;}var currentPage=this.state.currentPage;this.updateSceneKeys({page:localNextPage,callback:this._onChangeTab.bind(this,currentPage,localNextPage)});},_onChangeTab:function _onChangeTab(prevPage,currentPage){this.props.onChangeTab({i:currentPage,ref:this._children()[currentPage],from:prevPage});},_updateScrollValue:function _updateScrollValue(value){this.state.scrollValue.setValue(value);this.props.onScroll(value);},_handleLayout:function _handleLayout(e){var _this5=this;var width=e.nativeEvent.layout.width;if(Math.round(width)!==Math.round(this.state.containerWidth)){this.setState({containerWidth:width});this.requestAnimationFrame(function(){_this5.goToPage(_this5.state.currentPage);});}},_children:function _children(){var children=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.props.children;return React.Children.map(children,function(child){return child;});},render:function render(){var overlayTabs=this.props.tabBarPosition==="overlayTop"||this.props.tabBarPosition==="overlayBottom";var tabBarProps={goToPage:this.goToPage,tabs:this._children().map(function(child){return child.props.heading;}),tabStyle:this._children().map(function(child){return child.props.tabStyle;}),activeTabStyle:this._children().map(function(child){return child.props.activeTabStyle;}),textStyle:this._children().map(function(child){return child.props.textStyle;}),activeTextStyle:this._children().map(function(child){return child.props.activeTextStyle;}),tabHeaderStyle:this._children().map(function(child){return _lodash2.default.get(child.props.heading.props,"style",undefined);}),activeTab:this.state.currentPage,scrollValue:this.state.scrollValue,containerWidth:this.state.containerWidth};if(this.props.tabBarBackgroundColor){tabBarProps.backgroundColor=this.props.tabBarBackgroundColor;}if(this.props.tabBarActiveTextColor){tabBarProps.activeTextColor=this.props.tabBarActiveTextColor;}if(this.props.tabBarInactiveTextColor){tabBarProps.inactiveTextColor=this.props.tabBarInactiveTextColor;}if(this.props.tabBarTextStyle){tabBarProps.textStyle=this.props.tabBarTextStyle;}if(this.props.tabBarUnderlineStyle){tabBarProps.underlineStyle=this.props.tabBarUnderlineStyle;}if(this.props.tabContainerStyle){tabBarProps.tabContainerStyle=this.props.tabContainerStyle;}if(overlayTabs){var _tabBarProps$style;tabBarProps.style=(_tabBarProps$style={position:"absolute",left:0,right:0},_defineProperty(_tabBarProps$style,this.props.tabBarPosition==="overlayTop"?"top":"bottom",0),_defineProperty(_tabBarProps$style,"backgroundColor","rgba(255, 255, 255, 0.7)"),_tabBarProps$style);}return React.createElement(View,{style:[styles.container,this.props.style],onLayout:this._handleLayout,__source:{fileName:_jsxFileName,lineNumber:322}},(this.props.tabBarPosition==="top"||this.props.tabBarPosition==="overlayTop")&&this.renderTabBar(tabBarProps),this.renderScrollableContent(),(this.props.tabBarPosition==="bottom"||this.props.tabBarPosition==="overlayBottom")&&this.renderTabBar(tabBarProps));}});exports.default=ScrollableTabView;var styles=StyleSheet.create({container:{flex:1},scrollableContentAndroid:{flex:1}}); //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/src/basic/Tabs/index.js.map b/dist/src/basic/Tabs/index.js.map index 60c3638f4..1027c41cc 100644 --- a/dist/src/basic/Tabs/index.js.map +++ b/dist/src/basic/Tabs/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/basic/Tabs/index.js"],"names":["React","require","Component","ReactNative","Dimensions","View","Animated","ScrollView","StyleSheet","Platform","TimerMixin","SceneComponent","DefaultTabBar","ScrollableTabBar","ScrollableTabView","mixins","statics","propTypes","tabBarPosition","PropTypes","oneOf","initialPage","number","page","onChangeTab","func","onScroll","renderTabBar","any","style","ViewPropTypes","contentProps","object","scrollWithoutAnimation","bool","locked","prerenderingSiblingsNumber","getDefaultProps","getInitialState","currentPage","props","scrollValue","Value","containerWidth","get","width","sceneKeys","newSceneKeys","componentDidMount","scrollFn","scrollView","state","setValue","InteractionManager","runAfterInteractions","componentWillReceiveProps","children","updateSceneKeys","goToPage","pageNumber","offset","scrollTo","x","y","animated","callback","_onChangeTab","bind","cloneElement","newKeys","previousKeys","setState","_children","forEach","child","idx","key","_makeSceneKey","_keyExists","_shouldRenderSceneKey","push","currentPageKey","numOfSibling","find","sceneKey","heading","renderScrollableContent","scenes","_composeScenes","offsetX","e","nativeEvent","contentOffset","_updateScrollValue","_onMomentumScrollBeginAndEnd","map","Math","round","_updateSelectedPage","nextPage","localNextPage","position","prevPage","i","ref","from","value","_handleLayout","layout","requestAnimationFrame","Children","render","overlayTabs","tabBarProps","tabs","tabStyle","activeTabStyle","textStyle","activeTextStyle","tabHeaderStyle","_","undefined","activeTab","tabBarBackgroundColor","backgroundColor","tabBarActiveTextColor","activeTextColor","tabBarInactiveTextColor","inactiveTextColor","tabBarTextStyle","tabBarUnderlineStyle","underlineStyle","tabContainerStyle","left","right","styles","container","create","flex","scrollableContentAndroid"],"mappings":"oUAAA,qC;AACA,oD;AACA,8B;AACA,kC;AACA,GAAMA,OAAQC,QAAQ,OAAR,CAAd,C;AACQC,S,CAAcF,K,CAAdE,S;AACR,GAAMC,aAAcF,QAAQ,cAAR,CAApB,C;;AAEEG,U;;;;;;AAMED,W,CANFC,U,CACAC,I,CAKEF,W,CALFE,I,CACAC,Q,CAIEH,W,CAJFG,Q,CACAC,U,CAGEJ,W,CAHFI,U,CACAC,U,CAEEL,W,CAFFK,U,CACAC,Q,CACEN,W,CADFM,Q;AAEF,GAAMC,YAAaT,QAAQ,mBAAR,CAAnB;;AAEA,GAAMU,gBAAiBV,QAAQ,kBAAR,CAAvB,C;AAC0BA,QAAQ,iBAAR,C,CAAlBW,a,UAAAA,a;AACqBX,QAAQ,oBAAR,C,CAArBY,gB,WAAAA,gB;;AAER,GAAMC,mBAAoB,+BAAiB;AACzCC,OAAQ,CAACL,UAAD,CADiC;AAEzCM,QAAS;AACPJ,2BADO;AAEPC,iCAFO,CAFgC;;;AAOzCI,UAAW;AACTC,eAAgBC,oBAAUC,KAAV,CAAgB;AAC9B,KAD8B;AAE9B,QAF8B;AAG9B,YAH8B;AAI9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kC;AAChCnB,YAAYmB,iBAAZ,CAAgC,KAAK5F,KAAL,CAAW4F,iBAA3C;AACD;AACD,GAAIpB,WAAJ,CAAiB;AACfC,YAAYpF,KAAZ;AACEwE,SAAU,UADZ;AAEEgC,KAAM,CAFR;AAGEC,MAAO,CAHT;AAIG,KAAK9F,KAAL,CAAWtB,cAAX,GAA8B,YAA9B,CAA6C,KAA7C,CAAqD,QAJxD,CAImE,CAJnE;AAKmB,0BALnB;;AAOD;;AAED;AACE,oBAAC,IAAD;AACE,MAAO,CAACqH,OAAOC,SAAR,CAAmB,KAAKhG,KAAL,CAAWX,KAA9B,CADT;AAEE,SAAU,KAAK8E,aAFjB;;AAIG,CAAC,KAAKnE,KAAL,CAAWtB,cAAX,GAA8B,KAA9B;AACA,KAAKsB,KAAL,CAAWtB,cAAX,GAA8B,YAD/B;AAEC,KAAKS,YAAL,CAAkBsF,WAAlB,CANJ;AAOG,KAAK3B,uBAAL,EAPH;AAQG,CAAC,KAAK9C,KAAL,CAAWtB,cAAX,GAA8B,QAA9B;AACA,KAAKsB,KAAL,CAAWtB,cAAX,GAA8B,eAD/B;AAEC,KAAKS,YAAL,CAAkBsF,WAAlB,CAVJ,CADF;;;AAcD,CAzTwC,CAAjB,CAA1B,C;;;AA4TenG,iB;;AAEf,GAAMyH,QAAS/H,WAAWiI,MAAX,CAAkB;AAC/BD,UAAW;AACTE,KAAM,CADG,CADoB;;AAI/BC,yBAA0B;AACxBD,KAAM,CADkB,CAJK,CAAlB,CAAf","file":"index.js","sourcesContent":["import PropTypes from \"prop-types\";\nimport createReactClass from \"create-react-class\";\nimport _ from \"lodash\";\nimport { InteractionManager, ViewPropTypes } from \"../../utils\";\nconst React = require(\"react\");\nconst { Component } = React;\nconst ReactNative = require(\"react-native\");\nconst {\n Dimensions,\n View,\n Animated,\n ScrollView,\n StyleSheet,\n Platform\n} = ReactNative;\nconst TimerMixin = require(\"react-timer-mixin\");\n\nconst SceneComponent = require(\"./SceneComponent\");\nconst { DefaultTabBar } = require(\"./DefaultTabBar\");\nconst { ScrollableTabBar } = require(\"./ScrollableTabBar\");\n\nconst ScrollableTabView = createReactClass({\n mixins: [TimerMixin],\n statics: {\n DefaultTabBar,\n ScrollableTabBar\n },\n\n propTypes: {\n tabBarPosition: PropTypes.oneOf([\n \"top\",\n \"bottom\",\n \"overlayTop\",\n \"overlayBottom\"\n ]),\n initialPage: PropTypes.number,\n page: PropTypes.number,\n onChangeTab: PropTypes.func,\n onScroll: PropTypes.func,\n renderTabBar: PropTypes.any,\n style: ViewPropTypes.style,\n contentProps: PropTypes.object,\n scrollWithoutAnimation: PropTypes.bool,\n locked: PropTypes.bool,\n prerenderingSiblingsNumber: PropTypes.number\n },\n\n getDefaultProps() {\n return {\n tabBarPosition: \"top\",\n initialPage: 0,\n page: -1,\n onChangeTab: () => {},\n onScroll: () => {},\n contentProps: {},\n scrollWithoutAnimation: false,\n locked: false,\n prerenderingSiblingsNumber: 0\n };\n },\n\n getInitialState() {\n return {\n currentPage: this.props.initialPage,\n scrollValue: new Animated.Value(this.props.initialPage),\n containerWidth: Dimensions.get(\"window\").width,\n sceneKeys: this.newSceneKeys({ currentPage: this.props.initialPage })\n };\n },\n\n componentDidMount() {\n const scrollFn = () => {\n if (this.scrollView) {\n this.state.scrollValue.setValue(this.props.initialPage);\n }\n };\n InteractionManager.runAfterInteractions(scrollFn);\n },\n\n componentWillReceiveProps(props) {\n if (props.children !== this.props.children) {\n this.updateSceneKeys({\n page: this.state.currentPage,\n children: props.children\n });\n }\n\n if (props.page >= 0 && props.page !== this.state.currentPage) {\n this.goToPage(props.page);\n }\n },\n\n goToPage(pageNumber) {\n const offset = pageNumber * this.state.containerWidth;\n if (this.scrollView) {\n this.scrollView.scrollTo({\n x: offset,\n y: 0,\n animated: !this.props.scrollWithoutAnimation\n });\n }\n\n const currentPage = this.state.currentPage;\n this.updateSceneKeys({\n page: pageNumber,\n callback: this._onChangeTab.bind(this, currentPage, pageNumber)\n });\n },\n\n renderTabBar(props) {\n if (this.props.renderTabBar === false) {\n return null;\n } else if (this.props.renderTabBar) {\n return React.cloneElement(this.props.renderTabBar(props), props);\n } else {\n return ;\n }\n },\n\n updateSceneKeys({\n page,\n children = this.props.children,\n callback = () => {}\n }) {\n let newKeys = this.newSceneKeys({\n previousKeys: this.state.sceneKeys,\n currentPage: page,\n children\n });\n this.setState({ currentPage: page, sceneKeys: newKeys }, callback);\n },\n\n newSceneKeys({\n previousKeys = [],\n currentPage = 0,\n children = this.props.children\n }) {\n let newKeys = [];\n this._children(children).forEach((child, idx) => {\n let key = this._makeSceneKey(child, idx);\n if (\n this._keyExists(previousKeys, key) ||\n this._shouldRenderSceneKey(idx, currentPage)\n ) {\n newKeys.push(key);\n }\n });\n return newKeys;\n },\n\n _shouldRenderSceneKey(idx, currentPageKey) {\n let numOfSibling = this.props.prerenderingSiblingsNumber;\n return (\n idx < currentPageKey + numOfSibling + 1 &&\n idx > currentPageKey - numOfSibling - 1\n );\n },\n\n _keyExists(sceneKeys, key) {\n return sceneKeys.find(sceneKey => key === sceneKey);\n },\n\n _makeSceneKey(child, idx) {\n return child.props.heading + \"_\" + idx;\n },\n\n renderScrollableContent() {\n const scenes = this._composeScenes();\n return (\n {\n this.scrollView = scrollView;\n }}\n onScroll={e => {\n const offsetX = e.nativeEvent.contentOffset.x;\n this._updateScrollValue(offsetX / this.state.containerWidth);\n }}\n onMomentumScrollBegin={this._onMomentumScrollBeginAndEnd}\n onMomentumScrollEnd={this._onMomentumScrollBeginAndEnd}\n scrollEventThrottle={16}\n scrollsToTop={false}\n showsHorizontalScrollIndicator={false}\n scrollEnabled={!this.props.locked}\n directionalLockEnabled\n alwaysBounceVertical={false}\n keyboardDismissMode=\"on-drag\"\n {...this.props.contentProps}\n >\n {scenes}\n \n );\n },\n\n _composeScenes() {\n return this._children().map((child, idx) => {\n let key = this._makeSceneKey(child, idx);\n return (\n \n {this._keyExists(this.state.sceneKeys, key) ? (\n child\n ) : (\n \n )}\n \n );\n });\n },\n\n _onMomentumScrollBeginAndEnd(e) {\n const offsetX = e.nativeEvent.contentOffset.x;\n const page = Math.round(offsetX / this.state.containerWidth);\n if (this.state.currentPage !== page) {\n this._updateSelectedPage(page);\n }\n },\n\n _updateSelectedPage(nextPage) {\n let localNextPage = nextPage;\n if (typeof localNextPage === \"object\") {\n localNextPage = nextPage.nativeEvent.position;\n }\n\n const currentPage = this.state.currentPage;\n this.updateSceneKeys({\n page: localNextPage,\n callback: this._onChangeTab.bind(this, currentPage, localNextPage)\n });\n },\n\n _onChangeTab(prevPage, currentPage) {\n this.props.onChangeTab({\n i: currentPage,\n ref: this._children()[currentPage],\n from: prevPage\n });\n },\n\n _updateScrollValue(value) {\n this.state.scrollValue.setValue(value);\n this.props.onScroll(value);\n },\n\n _handleLayout(e) {\n const { width } = e.nativeEvent.layout;\n\n if (Math.round(width) !== Math.round(this.state.containerWidth)) {\n this.setState({ containerWidth: width });\n this.requestAnimationFrame(() => {\n this.goToPage(this.state.currentPage);\n });\n }\n },\n\n _children(children = this.props.children) {\n return React.Children.map(children, child => child);\n },\n\n render() {\n let overlayTabs =\n this.props.tabBarPosition === \"overlayTop\" ||\n this.props.tabBarPosition === \"overlayBottom\";\n let tabBarProps = {\n goToPage: this.goToPage,\n tabs: this._children().map(child => child.props.heading),\n tabStyle: this._children().map(child => child.props.tabStyle),\n activeTabStyle: this._children().map(child => child.props.activeTabStyle),\n textStyle: this._children().map(child => child.props.textStyle),\n activeTextStyle: this._children().map(\n child => child.props.activeTextStyle\n ),\n tabHeaderStyle: this._children().map(child =>\n _.get(child.props.heading.props, \"style\", undefined)\n ),\n activeTab: this.state.currentPage,\n scrollValue: this.state.scrollValue,\n containerWidth: this.state.containerWidth\n };\n\n if (this.props.tabBarBackgroundColor) {\n tabBarProps.backgroundColor = this.props.tabBarBackgroundColor;\n }\n if (this.props.tabBarActiveTextColor) {\n tabBarProps.activeTextColor = this.props.tabBarActiveTextColor;\n }\n if (this.props.tabBarInactiveTextColor) {\n tabBarProps.inactiveTextColor = this.props.tabBarInactiveTextColor;\n }\n if (this.props.tabBarTextStyle) {\n tabBarProps.textStyle = this.props.tabBarTextStyle;\n }\n if (this.props.tabBarUnderlineStyle) {\n tabBarProps.underlineStyle = this.props.tabBarUnderlineStyle;\n }\n if (this.props.tabContainerStyle) {\n tabBarProps.tabContainerStyle = this.props.tabContainerStyle;\n }\n if (overlayTabs) {\n tabBarProps.style = {\n position: \"absolute\",\n left: 0,\n right: 0,\n [this.props.tabBarPosition === \"overlayTop\" ? \"top\" : \"bottom\"]: 0,\n backgroundColor: \"rgba(255, 255, 255, 0.7)\"\n };\n }\n\n return (\n \n {(this.props.tabBarPosition === \"top\" ||\n this.props.tabBarPosition === \"overlayTop\") &&\n this.renderTabBar(tabBarProps)}\n {this.renderScrollableContent()}\n {(this.props.tabBarPosition === \"bottom\" ||\n this.props.tabBarPosition === \"overlayBottom\") &&\n this.renderTabBar(tabBarProps)}\n \n );\n }\n});\n\nexport default ScrollableTabView;\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1\n },\n scrollableContentAndroid: {\n flex: 1\n }\n});\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/basic/Tabs/index.js"],"names":["React","require","Component","ReactNative","Dimensions","View","Animated","ScrollView","StyleSheet","Platform","TimerMixin","SceneComponent","DefaultTabBar","ScrollableTabBar","ScrollableTabView","mixins","statics","propTypes","tabBarPosition","PropTypes","oneOf","initialPage","number","page","onChangeTab","func","onScroll","renderTabBar","any","style","ViewPropTypes","contentProps","object","scrollWithoutAnimation","bool","locked","prerenderingSiblingsNumber","getDefaultProps","getInitialState","currentPage","props","scrollValue","Value","containerWidth","get","width","sceneKeys","newSceneKeys","componentDidMount","scrollFn","scrollView","state","setValue","InteractionManager","runAfterInteractions","componentWillReceiveProps","children","updateSceneKeys","goToPage","pageNumber","offset","scrollTo","x","y","animated","callback","_onChangeTab","bind","cloneElement","newKeys","previousKeys","setState","_children","forEach","child","idx","key","_makeSceneKey","_keyExists","_shouldRenderSceneKey","push","currentPageKey","numOfSibling","find","sceneKey","heading","renderScrollableContent","scenes","_composeScenes","offsetX","e","nativeEvent","contentOffset","_updateScrollValue","_onMomentumScrollBeginAndEnd","map","Math","round","_updateSelectedPage","nextPage","localNextPage","position","prevPage","i","ref","from","value","_handleLayout","layout","requestAnimationFrame","Children","render","overlayTabs","tabBarProps","tabs","tabStyle","activeTabStyle","textStyle","activeTextStyle","tabHeaderStyle","_","undefined","activeTab","tabBarBackgroundColor","backgroundColor","tabBarActiveTextColor","activeTextColor","tabBarInactiveTextColor","inactiveTextColor","tabBarTextStyle","tabBarUnderlineStyle","underlineStyle","tabContainerStyle","left","right","styles","container","create","flex","scrollableContentAndroid"],"mappings":"oUAAA,qC,mDACA,oD,iEACA,8B,6CACA,kC,yQACA,GAAMA,OAAQC,QAAQ,OAAR,CAAd,C,GACQC,U,CAAcF,K,CAAdE,S,CACR,GAAMC,aAAcF,QAAQ,cAAR,CAApB,C,GAEEG,W,CAMED,W,CANFC,U,CACAC,I,CAKEF,W,CALFE,I,CACAC,Q,CAIEH,W,CAJFG,Q,CACAC,U,CAGEJ,W,CAHFI,U,CACAC,U,CAEEL,W,CAFFK,U,CACAC,Q,CACEN,W,CADFM,Q,CAEF,GAAMC,YAAaT,QAAQ,mBAAR,CAAnB,CAEA,GAAMU,gBAAiBV,QAAQ,kBAAR,CAAvB,C,aAC0BA,QAAQ,iBAAR,C,CAAlBW,a,UAAAA,a,eACqBX,QAAQ,oBAAR,C,CAArBY,gB,WAAAA,gB,CAER,GAAMC,mBAAoB,+BAAiB,iCACzCC,OAAQ,CAACL,UAAD,CADiC,CAEzCM,QAAS,CACPJ,2BADO,CAEPC,iCAFO,CAFgC,CAOzCI,UAAW,CACTC,eAAgBC,oBAAUC,KAAV,CAAgB,CAC9B,KAD8B,CAE9B,QAF8B,CAG9B,YAH8B,CAI9B,eAJ8B,CAAhB,CADP,CAOTC,YAAaF,oBAAUG,MAPd,CAQTC,KAAMJ,oBAAUG,MARP,C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,UADZ,CAEEgC,KAAM,CAFR,CAGEC,MAAO,CAHT,qCAIG,KAAK9F,KAAL,CAAWtB,cAAX,GAA8B,YAA9B,CAA6C,KAA7C,CAAqD,QAJxD,CAImE,CAJnE,uDAKmB,0BALnB,sBAOD,CAED,MACE,qBAAC,IAAD,EACE,MAAO,CAACqH,OAAOC,SAAR,CAAmB,KAAKhG,KAAL,CAAWX,KAA9B,CADT,CAEE,SAAU,KAAK8E,aAFjB,kDAIG,CAAC,KAAKnE,KAAL,CAAWtB,cAAX,GAA8B,KAA9B,EACA,KAAKsB,KAAL,CAAWtB,cAAX,GAA8B,YAD/B,GAEC,KAAKS,YAAL,CAAkBsF,WAAlB,CANJ,CAOG,KAAK3B,uBAAL,EAPH,CAQG,CAAC,KAAK9C,KAAL,CAAWtB,cAAX,GAA8B,QAA9B,EACA,KAAKsB,KAAL,CAAWtB,cAAX,GAA8B,eAD/B,GAEC,KAAKS,YAAL,CAAkBsF,WAAlB,CAVJ,CADF,CAcD,CAzTwC,CAAjB,CAA1B,C,gBA4TenG,iB,CAEf,GAAMyH,QAAS/H,WAAWiI,MAAX,CAAkB,CAC/BD,UAAW,CACTE,KAAM,CADG,CADoB,CAI/BC,yBAA0B,CACxBD,KAAM,CADkB,CAJK,CAAlB,CAAf","file":"index.js","sourcesContent":["import PropTypes from \"prop-types\";\nimport createReactClass from \"create-react-class\";\nimport _ from \"lodash\";\nimport { InteractionManager, ViewPropTypes } from \"../../utils\";\nconst React = require(\"react\");\nconst { Component } = React;\nconst ReactNative = require(\"react-native\");\nconst {\n Dimensions,\n View,\n Animated,\n ScrollView,\n StyleSheet,\n Platform\n} = ReactNative;\nconst TimerMixin = require(\"react-timer-mixin\");\n\nconst SceneComponent = require(\"./SceneComponent\");\nconst { DefaultTabBar } = require(\"./DefaultTabBar\");\nconst { ScrollableTabBar } = require(\"./ScrollableTabBar\");\n\nconst ScrollableTabView = createReactClass({\n mixins: [TimerMixin],\n statics: {\n DefaultTabBar,\n ScrollableTabBar\n },\n\n propTypes: {\n tabBarPosition: PropTypes.oneOf([\n \"top\",\n \"bottom\",\n \"overlayTop\",\n \"overlayBottom\"\n ]),\n initialPage: PropTypes.number,\n page: PropTypes.number,\n onChangeTab: PropTypes.func,\n onScroll: PropTypes.func,\n renderTabBar: PropTypes.any,\n style: ViewPropTypes.style,\n contentProps: PropTypes.object,\n scrollWithoutAnimation: PropTypes.bool,\n locked: PropTypes.bool,\n prerenderingSiblingsNumber: PropTypes.number\n },\n\n getDefaultProps() {\n return {\n tabBarPosition: \"top\",\n initialPage: 0,\n page: -1,\n onChangeTab: () => {},\n onScroll: () => {},\n contentProps: {},\n scrollWithoutAnimation: false,\n locked: false,\n prerenderingSiblingsNumber: 0\n };\n },\n\n getInitialState() {\n return {\n currentPage: this.props.initialPage,\n scrollValue: new Animated.Value(this.props.initialPage),\n containerWidth: Dimensions.get(\"window\").width,\n sceneKeys: this.newSceneKeys({ currentPage: this.props.initialPage })\n };\n },\n\n componentDidMount() {\n const scrollFn = () => {\n if (this.scrollView) {\n this.state.scrollValue.setValue(this.props.initialPage);\n }\n };\n InteractionManager.runAfterInteractions(scrollFn);\n },\n\n componentWillReceiveProps(props) {\n if (props.children !== this.props.children) {\n this.updateSceneKeys({\n page: this.state.currentPage,\n children: props.children\n });\n }\n\n if (props.page >= 0 && props.page !== this.state.currentPage) {\n this.goToPage(props.page);\n }\n },\n\n goToPage(pageNumber) {\n const offset = pageNumber * this.state.containerWidth;\n if (this.scrollView) {\n this.scrollView.scrollTo({\n x: offset,\n y: 0,\n animated: !this.props.scrollWithoutAnimation\n });\n }\n\n const currentPage = this.state.currentPage;\n this.updateSceneKeys({\n page: pageNumber,\n callback: this._onChangeTab.bind(this, currentPage, pageNumber)\n });\n },\n\n renderTabBar(props) {\n if (this.props.renderTabBar === false) {\n return null;\n } else if (this.props.renderTabBar) {\n return React.cloneElement(this.props.renderTabBar(props), props);\n } else {\n return ;\n }\n },\n\n updateSceneKeys({\n page,\n children = this.props.children,\n callback = () => {}\n }) {\n let newKeys = this.newSceneKeys({\n previousKeys: this.state.sceneKeys,\n currentPage: page,\n children\n });\n this.setState({ currentPage: page, sceneKeys: newKeys }, callback);\n },\n\n newSceneKeys({\n previousKeys = [],\n currentPage = 0,\n children = this.props.children\n }) {\n let newKeys = [];\n this._children(children).forEach((child, idx) => {\n let key = this._makeSceneKey(child, idx);\n if (\n this._keyExists(previousKeys, key) ||\n this._shouldRenderSceneKey(idx, currentPage)\n ) {\n newKeys.push(key);\n }\n });\n return newKeys;\n },\n\n _shouldRenderSceneKey(idx, currentPageKey) {\n let numOfSibling = this.props.prerenderingSiblingsNumber;\n return (\n idx < currentPageKey + numOfSibling + 1 &&\n idx > currentPageKey - numOfSibling - 1\n );\n },\n\n _keyExists(sceneKeys, key) {\n return sceneKeys.find(sceneKey => key === sceneKey);\n },\n\n _makeSceneKey(child, idx) {\n return child.props.heading + \"_\" + idx;\n },\n\n renderScrollableContent() {\n const scenes = this._composeScenes();\n return (\n {\n this.scrollView = scrollView;\n }}\n onScroll={e => {\n const offsetX = e.nativeEvent.contentOffset.x;\n this._updateScrollValue(offsetX / this.state.containerWidth);\n }}\n onMomentumScrollBegin={this._onMomentumScrollBeginAndEnd}\n onMomentumScrollEnd={this._onMomentumScrollBeginAndEnd}\n scrollEventThrottle={16}\n scrollsToTop={false}\n showsHorizontalScrollIndicator={false}\n scrollEnabled={!this.props.locked}\n directionalLockEnabled\n alwaysBounceVertical={false}\n keyboardDismissMode=\"on-drag\"\n {...this.props.contentProps}\n >\n {scenes}\n \n );\n },\n\n _composeScenes() {\n return this._children().map((child, idx) => {\n let key = this._makeSceneKey(child, idx);\n return (\n \n {this._keyExists(this.state.sceneKeys, key) ? (\n child\n ) : (\n \n )}\n \n );\n });\n },\n\n _onMomentumScrollBeginAndEnd(e) {\n const offsetX = e.nativeEvent.contentOffset.x;\n const page = Math.round(offsetX / this.state.containerWidth);\n if (this.state.currentPage !== page) {\n this._updateSelectedPage(page);\n }\n },\n\n _updateSelectedPage(nextPage) {\n let localNextPage = nextPage;\n if (typeof localNextPage === \"object\") {\n localNextPage = nextPage.nativeEvent.position;\n }\n\n const currentPage = this.state.currentPage;\n this.updateSceneKeys({\n page: localNextPage,\n callback: this._onChangeTab.bind(this, currentPage, localNextPage)\n });\n },\n\n _onChangeTab(prevPage, currentPage) {\n this.props.onChangeTab({\n i: currentPage,\n ref: this._children()[currentPage],\n from: prevPage\n });\n },\n\n _updateScrollValue(value) {\n this.state.scrollValue.setValue(value);\n this.props.onScroll(value);\n },\n\n _handleLayout(e) {\n const { width } = e.nativeEvent.layout;\n\n if (Math.round(width) !== Math.round(this.state.containerWidth)) {\n this.setState({ containerWidth: width });\n this.requestAnimationFrame(() => {\n this.goToPage(this.state.currentPage);\n });\n }\n },\n\n _children(children = this.props.children) {\n return React.Children.map(children, child => child);\n },\n\n render() {\n let overlayTabs =\n this.props.tabBarPosition === \"overlayTop\" ||\n this.props.tabBarPosition === \"overlayBottom\";\n let tabBarProps = {\n goToPage: this.goToPage,\n tabs: this._children().map(child => child.props.heading),\n tabStyle: this._children().map(child => child.props.tabStyle),\n activeTabStyle: this._children().map(child => child.props.activeTabStyle),\n textStyle: this._children().map(child => child.props.textStyle),\n activeTextStyle: this._children().map(\n child => child.props.activeTextStyle\n ),\n tabHeaderStyle: this._children().map(child =>\n _.get(child.props.heading.props, \"style\", undefined)\n ),\n activeTab: this.state.currentPage,\n scrollValue: this.state.scrollValue,\n containerWidth: this.state.containerWidth\n };\n\n if (this.props.tabBarBackgroundColor) {\n tabBarProps.backgroundColor = this.props.tabBarBackgroundColor;\n }\n if (this.props.tabBarActiveTextColor) {\n tabBarProps.activeTextColor = this.props.tabBarActiveTextColor;\n }\n if (this.props.tabBarInactiveTextColor) {\n tabBarProps.inactiveTextColor = this.props.tabBarInactiveTextColor;\n }\n if (this.props.tabBarTextStyle) {\n tabBarProps.textStyle = this.props.tabBarTextStyle;\n }\n if (this.props.tabBarUnderlineStyle) {\n tabBarProps.underlineStyle = this.props.tabBarUnderlineStyle;\n }\n if (this.props.tabContainerStyle) {\n tabBarProps.tabContainerStyle = this.props.tabContainerStyle;\n }\n if (overlayTabs) {\n tabBarProps.style = {\n position: \"absolute\",\n left: 0,\n right: 0,\n [this.props.tabBarPosition === \"overlayTop\" ? \"top\" : \"bottom\"]: 0,\n backgroundColor: \"rgba(255, 255, 255, 0.7)\"\n };\n }\n\n return (\n \n {(this.props.tabBarPosition === \"top\" ||\n this.props.tabBarPosition === \"overlayTop\") &&\n this.renderTabBar(tabBarProps)}\n {this.renderScrollableContent()}\n {(this.props.tabBarPosition === \"bottom\" ||\n this.props.tabBarPosition === \"overlayBottom\") &&\n this.renderTabBar(tabBarProps)}\n \n );\n }\n});\n\nexport default ScrollableTabView;\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1\n },\n scrollableContentAndroid: {\n flex: 1\n }\n});\n"]} \ No newline at end of file diff --git a/dist/src/basic/Text.js b/dist/src/basic/Text.js index b014eb436..8cafa53c2 100644 --- a/dist/src/basic/Text.js +++ b/dist/src/basic/Text.js @@ -1,50 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.Text=undefined;var _extends=Object.assign||function(target){for(var i=1;i {\n if (_.isString(child)) {\n return _.toUpper(child);\n } else {\n return child;\n }\n })\n } else {\n text = children;\n }\n\n\t\treturn (\n\t\t\t (this._root = c)} {...this.props}>\n\t\t\t\t{text}\n\t\t\t\n\t\t);\n\t}\n}\n\nText.propTypes = {\n\t...RNText.propTypes,\n\tuppercase: PropTypes.bool,\n\tstyle: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),\n};\n\nText.defaultProps = {\n\tuppercase: false,\n};\n\nconst StyledText = connectStyle(\"NativeBase.Text\", {}, mapPropsToStyleNames)(Text);\n\nexport { StyledText as Text };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Text.js"],"names":["Text","props","uppercase","children","text","React","Children","map","_","isString","child","toUpper","_root","c","Component","propTypes","RNText","PropTypes","bool","style","oneOfType","object","number","array","defaultProps","StyledText","mapPropsToStyleNames"],"mappings":"m1BAAA,4B,2CACA,qC,mDACA,yCACA,8B,6CAEA,iEACA,mE,68BAEMA,K,iQACI,4BAIF,KAAKC,KAJH,CAEJC,SAFI,QAEJA,SAFI,CAGJC,QAHI,QAGJA,QAHI,CAMN,GAAIC,YAAJ,CACA,GAAIF,SAAJ,CAAe,CACbE,KAAOC,gBAAMC,QAAN,CAAeC,GAAf,CAAmBJ,QAAnB,CAA6B,eAAS,CAC3C,GAAIK,iBAAEC,QAAF,CAAWC,KAAX,CAAJ,CAAuB,CACrB,MAAOF,kBAAEG,OAAF,CAAUD,KAAV,CAAP,CACD,CAFD,IAEO,CACL,MAAOA,MAAP,CACD,CACF,CANM,CAAP,CAOD,CARD,IAQO,CACLN,KAAOD,QAAP,CACD,CAEH,MACC,+BAAC,iBAAD,WAAQ,IAAK,sBAAM,QAAKS,KAAL,CAAaC,CAAnB,EAAb,EAAwC,KAAKZ,KAA7C,mDACEG,IADF,CADD,CAKA,C,kBAzBiBU,gB,EA4BnBd,KAAKe,SAAL,aACIC,kBAAOD,SADX,EAECb,UAAWe,oBAAUC,IAFtB,CAGCC,MAAOF,oBAAUG,SAAV,CAAoB,CAACH,oBAAUI,MAAX,CAAmBJ,oBAAUK,MAA7B,CAAqCL,oBAAUM,KAA/C,CAApB,CAHR,GAMAvB,KAAKwB,YAAL,CAAoB,CACnBtB,UAAW,KADQ,CAApB,CAIA,GAAMuB,YAAa,yCAAa,iBAAb,CAAgC,EAAhC,CAAoCC,8BAApC,EAA0D1B,IAA1D,CAAnB,C,QAEuBA,I,CAAdyB,U","file":"Text.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Text as RNText } from \"react-native\";\nimport _ from \"lodash\";\n\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass Text extends Component {\n\trender() {\n const {\n uppercase,\n children,\n } = this.props;\n\n let text;\n if (uppercase) {\n text = React.Children.map(children, child => {\n if (_.isString(child)) {\n return _.toUpper(child);\n } else {\n return child;\n }\n })\n } else {\n text = children;\n }\n\n\t\treturn (\n\t\t\t (this._root = c)} {...this.props}>\n\t\t\t\t{text}\n\t\t\t\n\t\t);\n\t}\n}\n\nText.propTypes = {\n\t...RNText.propTypes,\n\tuppercase: PropTypes.bool,\n\tstyle: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),\n};\n\nText.defaultProps = {\n\tuppercase: false,\n};\n\nconst StyledText = connectStyle(\"NativeBase.Text\", {}, mapPropsToStyleNames)(Text);\n\nexport { StyledText as Text };\n"]} \ No newline at end of file diff --git a/dist/src/basic/Textarea.js b/dist/src/basic/Textarea.js index b7d1be0fe..c3a4773ba 100644 --- a/dist/src/basic/Textarea.js +++ b/dist/src/basic/Textarea.js @@ -1,53 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.Textarea=undefined;var _extends=Object.assign||function(target){for(var i=1;i {\n\t\t\t\t\tthis._textInput = c;\n\t\t\t\t\tthis._root = c;\n\t\t\t\t}}\n\t\t\t\t{...this.prepareRootProps()}\n\t\t\t\tmultiline\n\t\t\t\tplaceholderTextColor={\n\t\t\t\t\tthis.props.placeholderTextColor ? this.props.placeholderTextColor : variables.inputColorPlaceholder\n\t\t\t\t}\n\t\t\t\tunderlineColorAndroid=\"rgba(0,0,0,0)\"\n\t\t\t/>\n\t\t);\n\t}\n}\n\nTextarea.propTypes = {\n\t...TextInput.propTypes,\n\tstyle: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),\n\trowSpan: PropTypes.number,\n\tbordered: PropTypes.bool,\n\tunderline: PropTypes.bool,\n};\n\nconst StyledTextarea = connectStyle(\"NativeBase.Textarea\", {}, mapPropsToStyleNames)(Textarea);\n\nexport { StyledTextarea as Textarea };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Textarea.js"],"names":["Textarea","textarea","height","props","rowSpan","defaultProps","style","getStyle","_textInput","c","_root","prepareRootProps","placeholderTextColor","variables","inputColorPlaceholder","Component","propTypes","TextInput","PropTypes","oneOfType","object","number","array","bordered","bool","underline","StyledTextarea","mapPropsToStyleNames"],"mappings":"21BAAA,4B,2CACA,qC,mDACA,yCACA,iEACA,qD,iDACA,mD,yDACA,mE,68BAEMA,S,6RACM,CACV,MAAO,CACNC,SAAU,CACTC,OAAQ,KAAKC,KAAL,CAAWC,OAAX,CAAqB,KAAKD,KAAL,CAAWC,OAAX,CAAqB,EAA1C,CAA+C,EAD9C,CADJ,CAAP,CAKA,C,2DAEkB,CAClB,GAAMC,cAAe,CACpBC,MAAO,KAAKC,QAAL,GAAgBN,QADH,CAArB,CAGA,MAAO,2BAAa,KAAKE,KAAlB,CAAyBE,YAAzB,CAAP,CACA,C,uCACQ,iBACR,MACC,+BAAC,sBAAD,WACC,IAAK,eAAK,CACT,OAAKG,UAAL,CAAkBC,CAAlB,CACA,OAAKC,KAAL,CAAaD,CAAb,CACA,CAJF,EAKK,KAAKE,gBAAL,EALL,EAMC,cAND,CAOC,qBACC,KAAKR,KAAL,CAAWS,oBAAX,CAAkC,KAAKT,KAAL,CAAWS,oBAA7C,CAAoEC,mBAAUC,qBARhF,CAUC,sBAAsB,eAVvB,kDADD,CAcA,C,sBA9BqBC,gB,EAiCvBf,SAASgB,SAAT,aACIC,uBAAUD,SADd,EAECV,MAAOY,oBAAUC,SAAV,CAAoB,CAACD,oBAAUE,MAAX,CAAmBF,oBAAUG,MAA7B,CAAqCH,oBAAUI,KAA/C,CAApB,CAFR,CAGClB,QAASc,oBAAUG,MAHpB,CAICE,SAAUL,oBAAUM,IAJrB,CAKCC,UAAWP,oBAAUM,IALtB,GAQA,GAAME,gBAAiB,yCAAa,qBAAb,CAAoC,EAApC,CAAwCC,8BAAxC,EAA8D3B,QAA9D,CAAvB,C,QAE2BA,Q,CAAlB0B,c","file":"Textarea.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { TextInput } from \"react-native\";\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport variables from \"../theme/variables/platform\";\nimport computeProps from \"../utils/computeProps\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass Textarea extends Component {\n\tgetStyle() {\n\t\treturn {\n\t\t\ttextarea: {\n\t\t\t\theight: this.props.rowSpan ? this.props.rowSpan * 25 : 60,\n\t\t\t},\n\t\t};\n\t}\n\n\tprepareRootProps() {\n\t\tconst defaultProps = {\n\t\t\tstyle: this.getStyle().textarea,\n\t\t};\n\t\treturn computeProps(this.props, defaultProps);\n\t}\n\trender() {\n\t\treturn (\n\t\t\t {\n\t\t\t\t\tthis._textInput = c;\n\t\t\t\t\tthis._root = c;\n\t\t\t\t}}\n\t\t\t\t{...this.prepareRootProps()}\n\t\t\t\tmultiline\n\t\t\t\tplaceholderTextColor={\n\t\t\t\t\tthis.props.placeholderTextColor ? this.props.placeholderTextColor : variables.inputColorPlaceholder\n\t\t\t\t}\n\t\t\t\tunderlineColorAndroid=\"rgba(0,0,0,0)\"\n\t\t\t/>\n\t\t);\n\t}\n}\n\nTextarea.propTypes = {\n\t...TextInput.propTypes,\n\tstyle: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),\n\trowSpan: PropTypes.number,\n\tbordered: PropTypes.bool,\n\tunderline: PropTypes.bool,\n};\n\nconst StyledTextarea = connectStyle(\"NativeBase.Textarea\", {}, mapPropsToStyleNames)(Textarea);\n\nexport { StyledTextarea as Textarea };\n"]} \ No newline at end of file diff --git a/dist/src/basic/Thumbnail.js b/dist/src/basic/Thumbnail.js index 9e9b9511c..b71ce8c11 100644 --- a/dist/src/basic/Thumbnail.js +++ b/dist/src/basic/Thumbnail.js @@ -1,25 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.Thumbnail=undefined;var _extends=Object.assign||function(target){for(var i=1;i (this._root = c)} {...this.props} />;\n\t}\n}\n\nThumbnail.propTypes = {\n\t...Image.propTypes,\n\tstyle: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),\n\tsquare: PropTypes.bool,\n\tcircular: PropTypes.bool,\n\tsize: PropTypes.number,\n};\n\nconst StyledThumbnail = connectStyle(\"NativeBase.Thumbnail\", {}, mapPropsToStyleNames)(Thumbnail);\n\nexport { StyledThumbnail as Thumbnail };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Thumbnail.js"],"names":["Thumbnail","_root","c","props","Component","propTypes","Image","style","PropTypes","oneOfType","object","number","array","square","bool","circular","size","StyledThumbnail","mapPropsToStyleNames"],"mappings":"61BAAA,4B,2CACA,qC,mDACA,yCACA,iEACA,mD,yDACA,mE,68BAEMA,U,+RACI,iBACR,MAAO,+BAAC,kBAAD,WAAO,IAAK,sBAAM,QAAKC,KAAL,CAAaC,CAAnB,EAAZ,EAAuC,KAAKC,KAA5C,mDAAP,CACA,C,uBAHsBC,gB,EAMxBJ,UAAUK,SAAV,aACIC,mBAAMD,SADV,EAECE,MAAOC,oBAAUC,SAAV,CAAoB,CAACD,oBAAUE,MAAX,CAAmBF,oBAAUG,MAA7B,CAAqCH,oBAAUI,KAA/C,CAApB,CAFR,CAGCC,OAAQL,oBAAUM,IAHnB,CAICC,SAAUP,oBAAUM,IAJrB,CAKCE,KAAMR,oBAAUG,MALjB,GAQA,GAAMM,iBAAkB,yCAAa,sBAAb,CAAqC,EAArC,CAAyCC,8BAAzC,EAA+DlB,SAA/D,CAAxB,C,QAE4BA,S,CAAnBiB,e","file":"Thumbnail.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Image } from \"react-native\";\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport computeProps from \"../utils/computeProps\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass Thumbnail extends Component {\n\trender() {\n\t\treturn (this._root = c)} {...this.props} />;\n\t}\n}\n\nThumbnail.propTypes = {\n\t...Image.propTypes,\n\tstyle: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),\n\tsquare: PropTypes.bool,\n\tcircular: PropTypes.bool,\n\tsize: PropTypes.number,\n};\n\nconst StyledThumbnail = connectStyle(\"NativeBase.Thumbnail\", {}, mapPropsToStyleNames)(Thumbnail);\n\nexport { StyledThumbnail as Thumbnail };\n"]} \ No newline at end of file diff --git a/dist/src/basic/Title.js b/dist/src/basic/Title.js index 400e9fb4e..d6db6c2ec 100644 --- a/dist/src/basic/Title.js +++ b/dist/src/basic/Title.js @@ -1,20 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.Title=undefined;var _extends=Object.assign||function(target){for(var i=1;i (this._root = c)} numberOfLines={1} {...this.props} />;\n\t}\n}\n\nTitle.propTypes = {\n\t...Text.propTypes,\n\tstyle: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),\n};\n\nconst StyledTitle = connectStyle(\"NativeBase.Title\", {}, mapPropsToStyleNames)(Title);\nexport { StyledTitle as Title };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Title.js"],"names":["Title","_root","c","props","Component","propTypes","Text","style","PropTypes","oneOfType","object","number","array","StyledTitle","mapPropsToStyleNames"],"mappings":"q1BAAA,4B,2CACA,qC,mDACA,yCACA,iEACA,mE,68BAEMA,M,uQACI,iBACR,MAAO,+BAAC,iBAAD,WAAM,IAAK,sBAAM,QAAKC,KAAL,CAAaC,CAAnB,EAAX,CAAkC,cAAe,CAAjD,EAAwD,KAAKC,KAA7D,kDAAP,CACA,C,mBAHkBC,gB,EAMpBJ,MAAMK,SAAN,aACIC,kBAAKD,SADT,EAECE,MAAOC,oBAAUC,SAAV,CAAoB,CAACD,oBAAUE,MAAX,CAAmBF,oBAAUG,MAA7B,CAAqCH,oBAAUI,KAA/C,CAApB,CAFR,GAKA,GAAMC,aAAc,yCAAa,kBAAb,CAAiC,EAAjC,CAAqCC,8BAArC,EAA2Dd,KAA3D,CAApB,C,QACwBA,K,CAAfa,W","file":"Title.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { Text } from \"react-native\";\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass Title extends Component {\n\trender() {\n\t\treturn (this._root = c)} numberOfLines={1} {...this.props} />;\n\t}\n}\n\nTitle.propTypes = {\n\t...Text.propTypes,\n\tstyle: PropTypes.oneOfType([PropTypes.object, PropTypes.number, PropTypes.array]),\n};\n\nconst StyledTitle = connectStyle(\"NativeBase.Title\", {}, mapPropsToStyleNames)(Title);\nexport { StyledTitle as Title };\n"]} \ No newline at end of file diff --git a/dist/src/basic/Toast.js b/dist/src/basic/Toast.js index 33730c4e3..2be70e221 100644 --- a/dist/src/basic/Toast.js +++ b/dist/src/basic/Toast.js @@ -1,26 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.Toast=undefined;var _extends=Object.assign||function(target){for(var i=1;i (this._root = c)} {...this.props} />;\n }\n}\n\nToast.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledToast = connectStyle(\"NativeBase.Toast\", {}, mapPropsToStyleNames)(\n Toast\n);\nexport { StyledToast as Toast };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/Toast.js"],"names":["Toast","_root","c","props","Component","propTypes","ViewPropTypes","style","PropTypes","oneOfType","object","number","array","StyledToast","mapPropsToStyleNames"],"mappings":"q1BAAA,4B,2CACA,qC,mDACA,yCACA,iEACA,mE,68BAEMA,M,uQACK,iBACP,MAAO,+BAAC,iBAAD,WAAM,IAAK,sBAAM,QAAKC,KAAL,CAAaC,CAAnB,EAAX,EAAsC,KAAKC,KAA3C,kDAAP,CACD,C,mBAHiBC,gB,EAMpBJ,MAAMK,SAAN,aACKC,0BADL,EAEEC,MAAOC,oBAAUC,SAAV,CAAoB,CACzBD,oBAAUE,MADe,CAEzBF,oBAAUG,MAFe,CAGzBH,oBAAUI,KAHe,CAApB,CAFT,GASA,GAAMC,aAAc,yCAAa,kBAAb,CAAiC,EAAjC,CAAqCC,8BAArC,EAClBd,KADkB,CAApB,C,QAGwBA,K,CAAfa,W","file":"Toast.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { View, ViewPropTypes } from \"react-native\";\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass Toast extends Component {\n render() {\n return (this._root = c)} {...this.props} />;\n }\n}\n\nToast.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledToast = connectStyle(\"NativeBase.Toast\", {}, mapPropsToStyleNames)(\n Toast\n);\nexport { StyledToast as Toast };\n"]} \ No newline at end of file diff --git a/dist/src/basic/ToastContainer.js b/dist/src/basic/ToastContainer.js index e0313629e..e2224dbf5 100644 --- a/dist/src/basic/ToastContainer.js +++ b/dist/src/basic/ToastContainer.js @@ -1,138 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.ToastContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var - -ToastContainer=function(_Component){_inherits(ToastContainer,_Component); -function ToastContainer(props){_classCallCheck(this,ToastContainer);var _this=_possibleConstructorReturn(this,(ToastContainer.__proto__||Object.getPrototypeOf(ToastContainer)).call(this, -props)); -_this.state={ -modalVisible:false, -fadeAnim:new _reactNative.Animated.Value(0)};return _this; - -}_createClass(ToastContainer,[{key:"getToastStyle",value:function getToastStyle() - - - - -{ -return{ -position:"absolute", -opacity:this.state.fadeAnim, -width:"100%", -elevation:9, -paddingHorizontal:_reactNative.Platform.OS==="ios"?20:0, -top:this.state.position==="top"?this.getTop():undefined, -bottom:this.state.position==="bottom"?this.getTop():undefined}; - -}},{key:"getTop",value:function getTop() -{ -if(_reactNative.Platform.OS==="ios"){ -return 30; -}else{ -return 0; -} -}},{key:"getButtonText",value:function getButtonText( -buttonText){ -if(buttonText){ -if(buttonText.trim().length===0){ -return undefined; -}else return buttonText; -} -return undefined; -}},{key:"showToast",value:function showToast(_ref) -{var config=_ref.config; -this.setState({ -modalVisible:true, -text:config.text, -buttonText:this.getButtonText(config.buttonText), -type:config.type, -position:config.position?config.position:"bottom", -supportedOrientations:config.supportedOrientations, -style:config.style, -buttonTextStyle:config.buttonTextStyle, -buttonStyle:config.buttonStyle, -textStyle:config.textStyle, -onClose:config.onClose}); - - -if(this.closeTimeout){ -clearTimeout(this.closeTimeout); -} - -if(config.duration!==0){ -var duration=config.duration>0?config.duration:1500; -this.closeTimeout=setTimeout(this.closeToast.bind(this,'timeout'),duration); -} - -_reactNative.Animated.timing(this.state.fadeAnim,{ -toValue:1, -duration:200}). -start(); -}},{key:"closeModal",value:function closeModal( -reason){ -this.setState({ -modalVisible:false});var - -onClose=this.state.onClose; -if(onClose&&typeof onClose==="function"){ -onClose(reason); -} -}},{key:"closeToast",value:function closeToast( -reason){ -clearTimeout(this.closeTimeout); -_reactNative.Animated.timing(this.state.fadeAnim,{ -toValue:0, -duration:200}). -start(this.closeModal.bind(this,reason)); -}},{key:"render",value:function render() -{var _this2=this; -if(this.state.modalVisible){ -return( -_react2.default.createElement(_reactNative.Animated.View,{style:this.getToastStyle(),__source:{fileName:_jsxFileName,lineNumber:97}}, -_react2.default.createElement(_Toast.Toast,{ -style:this.state.style, -danger:this.state.type=="danger"?true:false, -success:this.state.type=="success"?true:false, -warning:this.state.type=="warning"?true:false,__source:{fileName:_jsxFileName,lineNumber:98}}, - -_react2.default.createElement(_Text.Text,{style:this.state.textStyle,__source:{fileName:_jsxFileName,lineNumber:104}},this.state.text), -this.state.buttonText&& -_react2.default.createElement(_Button.Button,{ -style:this.state.buttonStyle, -onPress:function onPress(){return _this2.closeToast('user');},__source:{fileName:_jsxFileName,lineNumber:106}}, - -_react2.default.createElement(_Text.Text,{style:this.state.buttonTextStyle,__source:{fileName:_jsxFileName,lineNumber:110}}, -this.state.buttonText))))); - - - - - - -}else return null; -}}],[{key:"show",value:function show(_ref2){var config=_objectWithoutProperties(_ref2,[]);this.toastInstance._root.showToast({config:config});}}]);return ToastContainer;}(_react.Component); - - -ToastContainer.propTypes=_extends({}, -_reactNative.ViewPropTypes,{ -style:_propTypes2.default.oneOfType([ -_propTypes2.default.object, -_propTypes2.default.number, -_propTypes2.default.array])}); - - - -var StyledToastContainer=(0,_nativeBaseShoutemTheme.connectStyle)( -"NativeBase.ToastContainer", -{}, -_mapPropsToStyleNames2.default)( -ToastContainer);exports. - -ToastContainer=StyledToastContainer; +Object.defineProperty(exports,"__esModule",{value:true});exports.ToastContainer=undefined;var _extends=Object.assign||function(target){for(var i=1;i=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var ToastContainer=function(_Component){_inherits(ToastContainer,_Component);function ToastContainer(props){_classCallCheck(this,ToastContainer);var _this=_possibleConstructorReturn(this,(ToastContainer.__proto__||Object.getPrototypeOf(ToastContainer)).call(this,props));_this.state={modalVisible:false,fadeAnim:new _reactNative.Animated.Value(0)};return _this;}_createClass(ToastContainer,[{key:"getToastStyle",value:function getToastStyle(){return{position:"absolute",opacity:this.state.fadeAnim,width:"100%",elevation:9,paddingHorizontal:_reactNative.Platform.OS==="ios"?20:0,top:this.state.position==="top"?this.getTop():undefined,bottom:this.state.position==="bottom"?this.getTop():undefined};}},{key:"getTop",value:function getTop(){if(_reactNative.Platform.OS==="ios"){return 30;}else{return 0;}}},{key:"getButtonText",value:function getButtonText(buttonText){if(buttonText){if(buttonText.trim().length===0){return undefined;}else return buttonText;}return undefined;}},{key:"showToast",value:function showToast(_ref){var config=_ref.config;this.setState({modalVisible:true,text:config.text,buttonText:this.getButtonText(config.buttonText),type:config.type,position:config.position?config.position:"bottom",supportedOrientations:config.supportedOrientations,style:config.style,buttonTextStyle:config.buttonTextStyle,buttonStyle:config.buttonStyle,textStyle:config.textStyle,onClose:config.onClose});if(this.closeTimeout){clearTimeout(this.closeTimeout);}if(config.duration!==0){var duration=config.duration>0?config.duration:1500;this.closeTimeout=setTimeout(this.closeToast.bind(this,'timeout'),duration);}_reactNative.Animated.timing(this.state.fadeAnim,{toValue:1,duration:200}).start();}},{key:"closeModal",value:function closeModal(reason){this.setState({modalVisible:false});var onClose=this.state.onClose;if(onClose&&typeof onClose==="function"){onClose(reason);}}},{key:"closeToast",value:function closeToast(reason){clearTimeout(this.closeTimeout);_reactNative.Animated.timing(this.state.fadeAnim,{toValue:0,duration:200}).start(this.closeModal.bind(this,reason));}},{key:"render",value:function render(){var _this2=this;if(this.state.modalVisible){return _react2.default.createElement(_reactNative.Animated.View,{style:this.getToastStyle(),__source:{fileName:_jsxFileName,lineNumber:97}},_react2.default.createElement(_Toast.Toast,{style:this.state.style,danger:this.state.type=="danger"?true:false,success:this.state.type=="success"?true:false,warning:this.state.type=="warning"?true:false,__source:{fileName:_jsxFileName,lineNumber:98}},_react2.default.createElement(_Text.Text,{style:this.state.textStyle,__source:{fileName:_jsxFileName,lineNumber:104}},this.state.text),this.state.buttonText&&_react2.default.createElement(_Button.Button,{style:this.state.buttonStyle,onPress:function onPress(){return _this2.closeToast('user');},__source:{fileName:_jsxFileName,lineNumber:106}},_react2.default.createElement(_Text.Text,{style:this.state.buttonTextStyle,__source:{fileName:_jsxFileName,lineNumber:110}},this.state.buttonText))));}else return null;}}],[{key:"show",value:function show(_ref2){var config=_objectWithoutProperties(_ref2,[]);this.toastInstance._root.showToast({config:config});}}]);return ToastContainer;}(_react.Component);ToastContainer.propTypes=_extends({},_reactNative.ViewPropTypes,{style:_propTypes2.default.oneOfType([_propTypes2.default.object,_propTypes2.default.number,_propTypes2.default.array])});var StyledToastContainer=(0,_nativeBaseShoutemTheme.connectStyle)("NativeBase.ToastContainer",{},_mapPropsToStyleNames2.default)(ToastContainer);exports.ToastContainer=StyledToastContainer; //# sourceMappingURL=ToastContainer.js.map \ No newline at end of file diff --git a/dist/src/basic/ToastContainer.js.map b/dist/src/basic/ToastContainer.js.map index fceefddfc..a0d0b186d 100644 --- a/dist/src/basic/ToastContainer.js.map +++ b/dist/src/basic/ToastContainer.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../src/basic/ToastContainer.js"],"names":["ToastContainer","props","state","modalVisible","fadeAnim","Animated","Value","position","opacity","width","elevation","paddingHorizontal","Platform","OS","top","getTop","undefined","bottom","buttonText","trim","length","config","setState","text","getButtonText","type","supportedOrientations","style","buttonTextStyle","buttonStyle","textStyle","onClose","closeTimeout","clearTimeout","duration","setTimeout","closeToast","bind","timing","toValue","start","reason","closeModal","getToastStyle","toastInstance","_root","showToast","Component","propTypes","ViewPropTypes","PropTypes","oneOfType","object","number","array","StyledToastContainer","mapPropsToStyleNames"],"mappings":"u2BAAA,4B;AACA,qC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mE;;AAEMA,c;AACJ,wBAAYC,KAAZ,CAAmB;AACXA,KADW;AAEjB,MAAKC,KAAL,CAAa;AACXC,aAAc,KADH;AAEXC,SAAU,GAAIC,uBAASC,KAAb,CAAmB,CAAnB,CAFC,CAAb,CAFiB;;AAMlB,C;;;;;AAKe;AACd,MAAO;AACLC,SAAU,UADL;AAELC,QAAS,KAAKN,KAAL,CAAWE,QAFf;AAGLK,MAAO,MAHF;AAILC,UAAW,CAJN;AAKLC,kBAAmBC,sBAASC,EAAT,GAAgB,KAAhB,CAAwB,EAAxB,CAA6B,CAL3C;AAMLC,IAAK,KAAKZ,KAAL,CAAWK,QAAX,GAAwB,KAAxB,CAAgC,KAAKQ,MAAL,EAAhC,CAAgDC,SANhD;AAOLC,OAAQ,KAAKf,KAAL,CAAWK,QAAX,GAAwB,QAAxB,CAAmC,KAAKQ,MAAL,EAAnC,CAAmDC,SAPtD,CAAP;;AASD,C;AACQ;AACP,GAAIJ,sBAASC,EAAT,GAAgB,KAApB,CAA2B;AACzB,MAAO,GAAP;AACD,CAFD,IAEO;AACL,MAAO,EAAP;AACD;AACF,C;AACaK,U,CAAY;AACxB,GAAIA,UAAJ,CAAgB;AACd,GAAIA,WAAWC,IAAX,GAAkBC,MAAlB,GAA6B,CAAjC,CAAoC;AAClC,MAAOJ,UAAP;AACD,CAFD,IAEO,OAAOE,WAAP;AACR;AACD,MAAOF,UAAP;AACD,C;AACqB,IAAVK,OAAU,MAAVA,MAAU;AACpB,KAAKC,QAAL,CAAc;AACZnB,aAAc,IADF;AAEZoB,KAAMF,OAAOE,IAFD;AAGZL,WAAY,KAAKM,aAAL,CAAmBH,OAAOH,UAA1B,CAHA;AAIZO,KAAMJ,OAAOI,IAJD;AA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PropTypes from \"prop-types\";\nimport { View, Modal, Platform, Animated, ViewPropTypes } from \"react-native\";\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport { Text } from \"./Text\";\nimport { Button } from \"./Button\";\nimport { ViewNB } from \"./View\";\nimport { Toast } from \"./Toast\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass ToastContainer extends Component {\n constructor(props) {\n super(props);\n this.state = {\n modalVisible: false,\n fadeAnim: new Animated.Value(0)\n };\n }\n static toastInstance;\n static show({ ...config }) {\n this.toastInstance._root.showToast({ config });\n }\n getToastStyle() {\n return {\n position: \"absolute\",\n opacity: this.state.fadeAnim,\n width: \"100%\",\n elevation: 9,\n paddingHorizontal: Platform.OS === \"ios\" ? 20 : 0,\n top: this.state.position === \"top\" ? this.getTop() : undefined,\n bottom: this.state.position === \"bottom\" ? this.getTop() : undefined\n };\n }\n getTop() {\n if (Platform.OS === \"ios\") {\n return 30;\n } else {\n return 0;\n }\n }\n getButtonText(buttonText) {\n if (buttonText) {\n if (buttonText.trim().length === 0) {\n return undefined;\n } else return buttonText;\n }\n return undefined;\n }\n showToast({ config }) {\n this.setState({\n modalVisible: true,\n text: config.text,\n buttonText: this.getButtonText(config.buttonText),\n type: config.type,\n position: config.position ? config.position : \"bottom\",\n supportedOrientations: config.supportedOrientations,\n style: config.style,\n buttonTextStyle: config.buttonTextStyle,\n buttonStyle: config.buttonStyle,\n textStyle: config.textStyle,\n onClose: config.onClose\n });\n // If we have a toast already open, cut off its close timeout so that it won't affect *this* toast.\n if (this.closeTimeout) {\n clearTimeout(this.closeTimeout)\n }\n // Set the toast to close after the duration.\n if (config.duration !== 0) {\n const duration = (config.duration > 0) ? config.duration : 1500;\n this.closeTimeout = setTimeout(this.closeToast.bind(this, 'timeout'), duration);\n } \n // Fade the toast in now.\n Animated.timing(this.state.fadeAnim, {\n toValue: 1,\n duration: 200\n }).start();\n }\n closeModal(reason) {\n this.setState({\n modalVisible: false\n });\n const { onClose } = this.state;\n if(onClose && typeof onClose === \"function\") {\n onClose(reason);\n }\n }\n closeToast(reason) {\n clearTimeout(this.closeTimeout);\n Animated.timing(this.state.fadeAnim, {\n toValue: 0,\n duration: 200\n }).start(this.closeModal.bind(this, reason));\n }\n render() {\n if (this.state.modalVisible) {\n return (\n \n \n {this.state.text}\n {this.state.buttonText && (\n this.closeToast('user')}\n >\n \n {this.state.buttonText}\n \n \n )}\n \n \n );\n } else return null;\n }\n}\n\nToastContainer.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledToastContainer = connectStyle(\n \"NativeBase.ToastContainer\",\n {},\n mapPropsToStyleNames\n)(ToastContainer);\n\nexport { StyledToastContainer as ToastContainer };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/ToastContainer.js"],"names":["ToastContainer","props","state","modalVisible","fadeAnim","Animated","Value","position","opacity","width","elevation","paddingHorizontal","Platform","OS","top","getTop","undefined","bottom","buttonText","trim","length","config","setState","text","getButtonText","type","supportedOrientations","style","buttonTextStyle","buttonStyle","textStyle","onClose","closeTimeout","clearTimeout","duration","setTimeout","closeToast","bind","timing","toValue","start","reason","closeModal","getToastStyle","toastInstance","_root","showToast","Component","propTypes","ViewPropTypes","PropTypes","oneOfType","object","number","array","StyledToastContainer","mapPropsToStyleNames"],"mappings":"u2BAAA,4B,2CACA,qC,mDACA,yCACA,iEACA,4BACA,gCACA,4BACA,8BACA,mE,kpCAEMA,e,2DACJ,wBAAYC,KAAZ,CAAmB,4JACXA,KADW,GAEjB,MAAKC,KAAL,CAAa,CACXC,aAAc,KADH,CAEXC,SAAU,GAAIC,uBAASC,KAAb,CAAmB,CAAnB,CAFC,CAAb,CAFiB,aAMlB,C,gFAKe,CACd,MAAO,CACLC,SAAU,UADL,CAELC,QAAS,KAAKN,KAAL,CAAWE,QAFf,CAGLK,MAAO,MAHF,CAILC,UAAW,CAJN,CAKLC,kBAAmBC,s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OG,KAAKrB,KAAL,CAAWgB,UAAX,EACC,8BAAC,cAAD,EACE,MAAO,KAAKhB,KAAL,CAAW2B,WADpB,CAEE,QAAS,yBAAM,QAAKO,UAAL,CAAgB,MAAhB,CAAN,EAFX,kDAIE,8BAAC,UAAD,EAAM,MAAO,KAAKlC,KAAL,CAAW0B,eAAxB,kDACG,KAAK1B,KAAL,CAAWgB,UADd,CAJF,CARJ,CADF,CADF,CAsBD,CAvBD,IAuBO,OAAO,KAAP,CACR,C,0CAnG0B,IAAVG,OAAU,oCACzB,KAAKuB,aAAL,CAAmBC,KAAnB,CAAyBC,SAAzB,CAAmC,CAAEzB,aAAF,CAAnC,EACD,C,4BAX0B0B,gB,EA+G7B/C,eAAegD,SAAf,aACKC,0BADL,EAEEtB,MAAOuB,oBAAUC,SAAV,CAAoB,CACzBD,oBAAUE,MADe,CAEzBF,oBAAUG,MAFe,CAGzBH,oBAAUI,KAHe,CAApB,CAFT,GASA,GAAMC,sBAAuB,yCAC3B,2BAD2B,CAE3B,EAF2B,CAG3BC,8BAH2B,EAI3BxD,cAJ2B,CAA7B,C,QAMiCA,c,CAAxBuD,oB","file":"ToastContainer.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { View, Modal, Platform, Animated, ViewPropTypes } from \"react-native\";\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport { Text } from \"./Text\";\nimport { Button } from \"./Button\";\nimport { ViewNB } from \"./View\";\nimport { Toast } from \"./Toast\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass ToastContainer extends Component {\n constructor(props) {\n super(props);\n this.state = {\n modalVisible: false,\n fadeAnim: new Animated.Value(0)\n };\n }\n static toastInstance;\n static show({ ...config }) {\n this.toastInstance._root.showToast({ config });\n }\n getToastStyle() {\n return {\n position: \"absolute\",\n opacity: this.state.fadeAnim,\n width: \"100%\",\n elevation: 9,\n paddingHorizontal: Platform.OS === \"ios\" ? 20 : 0,\n top: this.state.position === \"top\" ? this.getTop() : undefined,\n bottom: this.state.position === \"bottom\" ? this.getTop() : undefined\n };\n }\n getTop() {\n if (Platform.OS === \"ios\") {\n return 30;\n } else {\n return 0;\n }\n }\n getButtonText(buttonText) {\n if (buttonText) {\n if (buttonText.trim().length === 0) {\n return undefined;\n } else return buttonText;\n }\n return undefined;\n }\n showToast({ config }) {\n this.setState({\n modalVisible: true,\n text: config.text,\n buttonText: this.getButtonText(config.buttonText),\n type: config.type,\n position: config.position ? config.position : \"bottom\",\n supportedOrientations: config.supportedOrientations,\n style: config.style,\n buttonTextStyle: config.buttonTextStyle,\n buttonStyle: config.buttonStyle,\n textStyle: config.textStyle,\n onClose: config.onClose\n });\n // If we have a toast already open, cut off its close timeout so that it won't affect *this* toast.\n if (this.closeTimeout) {\n clearTimeout(this.closeTimeout)\n }\n // Set the toast to close after the duration.\n if (config.duration !== 0) {\n const duration = (config.duration > 0) ? config.duration : 1500;\n this.closeTimeout = setTimeout(this.closeToast.bind(this, 'timeout'), duration);\n } \n // Fade the toast in now.\n Animated.timing(this.state.fadeAnim, {\n toValue: 1,\n duration: 200\n }).start();\n }\n closeModal(reason) {\n this.setState({\n modalVisible: false\n });\n const { onClose } = this.state;\n if(onClose && typeof onClose === \"function\") {\n onClose(reason);\n }\n }\n closeToast(reason) {\n clearTimeout(this.closeTimeout);\n Animated.timing(this.state.fadeAnim, {\n toValue: 0,\n duration: 200\n }).start(this.closeModal.bind(this, reason));\n }\n render() {\n if (this.state.modalVisible) {\n return (\n \n \n {this.state.text}\n {this.state.buttonText && (\n this.closeToast('user')}\n >\n \n {this.state.buttonText}\n \n \n )}\n \n \n );\n } else return null;\n }\n}\n\nToastContainer.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledToastContainer = connectStyle(\n \"NativeBase.ToastContainer\",\n {},\n mapPropsToStyleNames\n)(ToastContainer);\n\nexport { StyledToastContainer as ToastContainer };\n"]} \ No newline at end of file diff --git a/dist/src/basic/View.js b/dist/src/basic/View.js index ef10b35df..5d29b712e 100644 --- a/dist/src/basic/View.js +++ b/dist/src/basic/View.js @@ -1,28 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.ViewNB=undefined;var _extends=Object.assign||function(target){for(var i=1;i (this._root = c)} {...this.props} />;\n }\n}\n\nViewNB.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledViewNB = connectStyle(\n \"NativeBase.ViewNB\",\n {},\n mapPropsToStyleNames\n)(ViewNB);\nexport { StyledViewNB as ViewNB };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/basic/View.js"],"names":["ViewNB","_root","c","props","Component","propTypes","ViewPropTypes","style","PropTypes","oneOfType","object","number","array","StyledViewNB","mapPropsToStyleNames"],"mappings":"q1BAAA,4B,2CACA,qC,mDACA,yCACA,iEACA,mE,68BAEMA,O,6QACK,iBACP,MAAO,+BAAC,iBAAD,WAAM,IAAK,sBAAM,QAAKC,KAAL,CAAaC,CAAnB,EAAX,EAAsC,KAAKC,KAA3C,kDAAP,CACD,C,oBAHkBC,gB,EAMrBJ,OAAOK,SAAP,aACKC,0BADL,EAEEC,MAAOC,oBAAUC,SAAV,CAAoB,CACzBD,oBAAUE,MADe,CAEzBF,oBAAUG,MAFe,CAGzBH,oBAAUI,KAHe,CAApB,CAFT,GASA,GAAMC,cAAe,yCACnB,mBADmB,CAEnB,EAFmB,CAGnBC,8BAHmB,EAInBd,MAJmB,CAArB,C,QAKyBA,M,CAAhBa,Y","file":"View.js","sourcesContent":["import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { View, ViewPropTypes } from \"react-native\";\nimport { connectStyle } from \"native-base-shoutem-theme\";\nimport mapPropsToStyleNames from \"../utils/mapPropsToStyleNames\";\n\nclass ViewNB extends Component {\n render() {\n return (this._root = c)} {...this.props} />;\n }\n}\n\nViewNB.propTypes = {\n ...ViewPropTypes,\n style: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.number,\n PropTypes.array\n ])\n};\n\nconst StyledViewNB = connectStyle(\n \"NativeBase.ViewNB\",\n {},\n mapPropsToStyleNames\n)(ViewNB);\nexport { StyledViewNB as ViewNB };\n"]} \ No newline at end of file diff --git a/dist/src/index.js b/dist/src/index.js index acc1c1a29..f5cc0df5b 100644 --- a/dist/src/index.js +++ b/dist/src/index.js @@ -1,132 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.mapPropsToStyleNames=exports.Accordion=exports.VueNativeBase=exports.SwipeRow=exports.Root=exports.Segment=exports.DefaultTabBar=exports.TabContainer=exports.TabHeading=exports.ActionSheet=exports.ScrollableTab=exports.Toast=exports.View=exports.TabContent=exports.Text=exports.Grid=exports.Row=exports.Col=exports.Textarea=exports.Label=exports.Subtitle=exports.Item=exports.DeckSwiper=exports.Separator=exports.ListItem=exports.List=exports.Picker=exports.FooterTab=exports.Tabs=exports.Tab=exports.Footer=exports.Content=exports.Container=exports.Switch=exports.Spinner=exports.H3=exports.H2=exports.H1=exports.CardItem=exports.Card=exports.Thumbnail=exports.Radio=exports.CheckBox=exports.Badge=exports.Body=exports.Right=exports.Left=exports.Fab=exports.Title=exports.Input=exports.InputGroup=exports.Form=exports.Header=exports.Icon=exports.IconNB=exports.DatePicker=exports.Button=exports.Drawer=exports.connectStyle=exports.StyleProvider=exports.variables=exports.getTheme=undefined;var _nativeBaseShoutemTheme=require("native-base-shoutem-theme"); -var _lodash=require("lodash"); -var _reactNativeEasyGrid=require("react-native-easy-grid"); - -var _init=require("./init");var _init2=_interopRequireDefault(_init); -var _components=require("./theme/components");var _components2=_interopRequireDefault(_components); -var _platform=require("./theme/variables/platform");var _platform2=_interopRequireDefault(_platform); -var _Drawer=require("./basic/Drawer");var _Drawer2=_interopRequireDefault(_Drawer); -var _SwipeRow=require("./basic/SwipeRow"); -var _Text=require("./basic/Text"); -var _View=require("./basic/View"); -var _Button=require("./basic/Button"); -var _DatePicker=require("./basic/DatePicker"); -var _TabHeading=require("./basic/TabHeading"); -var _TabContainer=require("./basic/TabContainer"); -var _IconNB=require("./basic/IconNB"); -var _Icon=require("./basic/Icon"); -var _Header=require("./basic/Header"); -var _InputGroup=require("./basic/InputGroup"); -var _Input=require("./basic/Input"); -var _Title=require("./basic/Title"); -var _Fab=require("./basic/Fab"); -var _Left=require("./basic/Left"); -var _Right=require("./basic/Right"); -var _Body=require("./basic/Body"); -var _Badge=require("./basic/Badge"); -var _Checkbox=require("./basic/Checkbox"); -var _Radio=require("./basic/Radio"); -var _Thumbnail=require("./basic/Thumbnail"); -var _Card=require("./basic/Card"); -var _CardItem=require("./basic/CardItem"); -var _H=require("./basic/H1"); -var _H2=require("./basic/H2"); -var _H3=require("./basic/H3"); -var _Spinner=require("./basic/Spinner"); -var _Switch=require("./basic/Switch"); -var _Container=require("./basic/Container"); -var _Root=require("./basic/Root"); -var _Content=require("./basic/Content"); -var _Footer=require("./basic/Footer"); -var _FooterTab=require("./basic/FooterTab"); -var _Form=require("./basic/Form"); -var _ToastContainer=require("./basic/ToastContainer"); -var _Actionsheet=require("./basic/Actionsheet"); -var _Picker=require("./basic/Picker"); -var _List=require("./basic/List"); -var _ListItem=require("./basic/ListItem"); -var _Separator=require("./basic/Separator"); -var _DeckSwiper=require("./basic/DeckSwiper"); -var _Item=require("./basic/Item"); -var _Segment=require("./basic/Segment"); -var _Label=require("./basic/Label"); -var _Textarea=require("./basic/Textarea"); -var _Tab=require("./basic/Tab"); -var _Tabs=require("./basic/Tabs");var _Tabs2=_interopRequireDefault(_Tabs); -var _DefaultTabBar=require("./basic/Tabs/DefaultTabBar"); -var _ScrollableTabBar=require("./basic/Tabs/ScrollableTabBar"); -var _Subtitle=require("./basic/Subtitle"); -var _Accordion=require("./basic/Accordion"); - -var _vueNative=require("./vue-native.js");var _vueNative2=_interopRequireDefault(_vueNative);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};} - -(0,_init2.default)();exports. - - -getTheme=_components2.default;exports. -variables=_platform2.default;exports. -StyleProvider=_nativeBaseShoutemTheme.StyleProvider;exports. -connectStyle=_nativeBaseShoutemTheme.connectStyle;exports. -Drawer=_Drawer2.default;exports. -Button=_Button.Button;exports. -DatePicker=_DatePicker.DatePicker;exports. -IconNB=_IconNB.IconNB;exports. -Icon=_Icon.Icon;exports. -Header=_Header.Header;exports. -Form=_Form.Form;exports. -InputGroup=_InputGroup.InputGroup;exports. -Input=_Input.Input;exports. -Title=_Title.Title;exports. -Fab=_Fab.Fab;exports. -Left=_Left.Left;exports. -Right=_Right.Right;exports. -Body=_Body.Body;exports. -Badge=_Badge.Badge;exports. -CheckBox=_Checkbox.CheckBox;exports. -Radio=_Radio.Radio;exports. -Thumbnail=_Thumbnail.Thumbnail;exports. -Card=_Card.Card;exports. -CardItem=_CardItem.CardItem;exports. -H1=_H.H1;exports. -H2=_H2.H2;exports. -H3=_H3.H3;exports. -Spinner=_Spinner.Spinner;exports. -Switch=_Switch.Switch;exports. -Container=_Container.Container;exports. -Content=_Content.Content;exports. -Footer=_Footer.Footer;exports. -Tab=_Tab.Tab;exports. -Tabs=_Tabs2.default;exports. -FooterTab=_FooterTab.FooterTab;exports. -Picker=_Picker.PickerNB;exports. -List=_List.List;exports. -ListItem=_ListItem.ListItem;exports. -Separator=_Separator.Separator;exports. -DeckSwiper=_DeckSwiper.DeckSwiper;exports. -Item=_Item.Item;exports. -Subtitle=_Subtitle.Subtitle;exports. -Label=_Label.Label;exports. -Textarea=_Textarea.Textarea;exports. -Col=_reactNativeEasyGrid.Col;exports. -Row=_reactNativeEasyGrid.Row;exports. -Grid=_reactNativeEasyGrid.Grid;exports. -Text=_Text.Text;exports. -TabContent=_Content.Content;exports. -View=_View.ViewNB;exports. -Toast=_ToastContainer.ToastContainer;exports. -ScrollableTab=_ScrollableTabBar.ScrollableTab;exports. -ActionSheet=_Actionsheet.ActionSheetContainer;exports. -TabHeading=_TabHeading.TabHeading;exports. -TabContainer=_TabContainer.TabContainer;exports. -DefaultTabBar=_DefaultTabBar.DefaultTabBar;exports. -Segment=_Segment.Segment;exports. -Root=_Root.Root;exports. -SwipeRow=_SwipeRow.SwipeRow;exports. -VueNativeBase=_vueNative2.default;exports. -Accordion=_Accordion.Accordion; - - -var mapPropsToStyleNames=function mapPropsToStyleNames(styleNames,props){return(0,_lodash.keys)(props);};exports. - -mapPropsToStyleNames=mapPropsToStyleNames; +Object.defineProperty(exports,"__esModule",{value:true});exports.mapPropsToStyleNames=exports.Accordion=exports.VueNativeBase=exports.SwipeRow=exports.Root=exports.Segment=exports.DefaultTabBar=exports.TabContainer=exports.TabHeading=exports.ActionSheet=exports.ScrollableTab=exports.Toast=exports.View=exports.TabContent=exports.Text=exports.Grid=exports.Row=exports.Col=exports.Textarea=exports.Label=exports.Subtitle=exports.Item=exports.DeckSwiper=exports.Separator=exports.ListItem=exports.List=exports.Picker=exports.FooterTab=exports.Tabs=exports.Tab=exports.Footer=exports.Content=exports.Container=exports.Switch=exports.Spinner=exports.H3=exports.H2=exports.H1=exports.CardItem=exports.Card=exports.Thumbnail=exports.Radio=exports.CheckBox=exports.Badge=exports.Body=exports.Right=exports.Left=exports.Fab=exports.Title=exports.Input=exports.InputGroup=exports.Form=exports.Header=exports.Icon=exports.IconNB=exports.DatePicker=exports.Button=exports.Drawer=exports.connectStyle=exports.StyleProvider=exports.variables=exports.getTheme=undefined;var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _lodash=require("lodash");var _reactNativeEasyGrid=require("react-native-easy-grid");var _init=require("./init");var _init2=_interopRequireDefault(_init);var _components=require("./theme/components");var _components2=_interopRequireDefault(_components);var _platform=require("./theme/variables/platform");var _platform2=_interopRequireDefault(_platform);var _Drawer=require("./basic/Drawer");var _Drawer2=_interopRequireDefault(_Drawer);var _SwipeRow=require("./basic/SwipeRow");var _Text=require("./basic/Text");var _View=require("./basic/View");var _Button=require("./basic/Button");var _DatePicker=require("./basic/DatePicker");var _TabHeading=require("./basic/TabHeading");var _TabContainer=require("./basic/TabContainer");var _IconNB=require("./basic/IconNB");var _Icon=require("./basic/Icon");var _Header=require("./basic/Header");var _InputGroup=require("./basic/InputGroup");var _Input=require("./basic/Input");var _Title=require("./basic/Title");var _Fab=require("./basic/Fab");var _Left=require("./basic/Left");var _Right=require("./basic/Right");var _Body=require("./basic/Body");var _Badge=require("./basic/Badge");var _Checkbox=require("./basic/Checkbox");var _Radio=require("./basic/Radio");var _Thumbnail=require("./basic/Thumbnail");var _Card=require("./basic/Card");var _CardItem=require("./basic/CardItem");var _H=require("./basic/H1");var _H2=require("./basic/H2");var _H3=require("./basic/H3");var _Spinner=require("./basic/Spinner");var _Switch=require("./basic/Switch");var _Container=require("./basic/Container");var _Root=require("./basic/Root");var _Content=require("./basic/Content");var _Footer=require("./basic/Footer");var _FooterTab=require("./basic/FooterTab");var _Form=require("./basic/Form");var _ToastContainer=require("./basic/ToastContainer");var _Actionsheet=require("./basic/Actionsheet");var _Picker=require("./basic/Picker");var _List=require("./basic/List");var _ListItem=require("./basic/ListItem");var _Separator=require("./basic/Separator");var _DeckSwiper=require("./basic/DeckSwiper");var _Item=require("./basic/Item");var _Segment=require("./basic/Segment");var _Label=require("./basic/Label");var _Textarea=require("./basic/Textarea");var _Tab=require("./basic/Tab");var _Tabs=require("./basic/Tabs");var _Tabs2=_interopRequireDefault(_Tabs);var _DefaultTabBar=require("./basic/Tabs/DefaultTabBar");var _ScrollableTabBar=require("./basic/Tabs/ScrollableTabBar");var _Subtitle=require("./basic/Subtitle");var _Accordion=require("./basic/Accordion");var _vueNative=require("./vue-native.js");var _vueNative2=_interopRequireDefault(_vueNative);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}(0,_init2.default)();exports.getTheme=_components2.default;exports.variables=_platform2.default;exports.StyleProvider=_nativeBaseShoutemTheme.StyleProvider;exports.connectStyle=_nativeBaseShoutemTheme.connectStyle;exports.Drawer=_Drawer2.default;exports.Button=_Button.Button;exports.DatePicker=_DatePicker.DatePicker;exports.IconNB=_IconNB.IconNB;exports.Icon=_Icon.Icon;exports.Header=_Header.Header;exports.Form=_Form.Form;exports.InputGroup=_InputGroup.InputGroup;exports.Input=_Input.Input;exports.Title=_Title.Title;exports.Fab=_Fab.Fab;exports.Left=_Left.Left;exports.Right=_Right.Right;exports.Body=_Body.Body;exports.Badge=_Badge.Badge;exports.CheckBox=_Checkbox.CheckBox;exports.Radio=_Radio.Radio;exports.Thumbnail=_Thumbnail.Thumbnail;exports.Card=_Card.Card;exports.CardItem=_CardItem.CardItem;exports.H1=_H.H1;exports.H2=_H2.H2;exports.H3=_H3.H3;exports.Spinner=_Spinner.Spinner;exports.Switch=_Switch.Switch;exports.Container=_Container.Container;exports.Content=_Content.Content;exports.Footer=_Footer.Footer;exports.Tab=_Tab.Tab;exports.Tabs=_Tabs2.default;exports.FooterTab=_FooterTab.FooterTab;exports.Picker=_Picker.PickerNB;exports.List=_List.List;exports.ListItem=_ListItem.ListItem;exports.Separator=_Separator.Separator;exports.DeckSwiper=_DeckSwiper.DeckSwiper;exports.Item=_Item.Item;exports.Subtitle=_Subtitle.Subtitle;exports.Label=_Label.Label;exports.Textarea=_Textarea.Textarea;exports.Col=_reactNativeEasyGrid.Col;exports.Row=_reactNativeEasyGrid.Row;exports.Grid=_reactNativeEasyGrid.Grid;exports.Text=_Text.Text;exports.TabContent=_Content.Content;exports.View=_View.ViewNB;exports.Toast=_ToastContainer.ToastContainer;exports.ScrollableTab=_ScrollableTabBar.ScrollableTab;exports.ActionSheet=_Actionsheet.ActionSheetContainer;exports.TabHeading=_TabHeading.TabHeading;exports.TabContainer=_TabContainer.TabContainer;exports.DefaultTabBar=_DefaultTabBar.DefaultTabBar;exports.Segment=_Segment.Segment;exports.Root=_Root.Root;exports.SwipeRow=_SwipeRow.SwipeRow;exports.VueNativeBase=_vueNative2.default;exports.Accordion=_Accordion.Accordion;var mapPropsToStyleNames=function mapPropsToStyleNames(styleNames,props){return(0,_lodash.keys)(props);};exports.mapPropsToStyleNames=mapPropsToStyleNames; //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/src/index.js.map b/dist/src/index.js.map index 89d063152..4d3e2f904 100644 --- a/dist/src/index.js.map +++ b/dist/src/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../src/index.js"],"names":["getTheme","variables","StyleProvider","connectStyle","Drawer","Button","DatePicker","IconNB","Icon","Header","Form","InputGroup","Input","Title","Fab","Left","Right","Body","Badge","CheckBox","Radio","Thumbnail","Card","CardItem","H1","H2","H3","Spinner","Switch","Container","Content","Footer","Tab","Tabs","ScrollableTabView","FooterTab","Picker","PickerNB","List","ListItem","Separator","DeckSwiper","Item","Subtitle","Label","Textarea","Col","Row","Grid","Text","TabContent","View","Toast","ToastContainer","ScrollableTab","ActionSheet","ActionSheetContainer","TabHeading","TabContainer","DefaultTabBar","Segment","Root","SwipeRow","VueNativeBase","Accordion","mapPropsToStyleNames","styleNames","props"],"mappings":"giCAAA;AACA;AACA;;AAEA,4B;AACA,8C;AACA,oD;AACA,sC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kC;AACA;AACA;AACA;AACA;;AAEA,0C;;AAEA,qB;;;AAGEA,Q,CAAAA,oB;AACAC,S,CAAAA,kB;AACAC,a,CAAAA,qC;AACAC,Y,CAAAA,oC;AACAC,M,CAAAA,gB;AACAC,M,CAAAA,c;AACAC,U,CAAAA,sB;AACAC,M,CAAAA,c;AACAC,I,CAAAA,U;AACAC,M,CAAAA,c;AACAC,I,CAAAA,U;AACAC,U,CAAAA,sB;AACAC,K,CAAAA,Y;AACAC,K,CAAAA,Y;AACAC,G,CAAAA,Q;AACAC,I,CAAAA,U;AACAC,K,CAAAA,Y;AACAC,I,CAAAA,U;AACAC,K,CAAAA,Y;AACAC,Q,CAAAA,kB;AACAC,K,CAAAA,Y;AACAC,S,CAAAA,oB;AACAC,I,CAAAA,U;AACAC,Q,CAAAA,kB;AACAC,E,CAAAA,K;AACAC,E,CAAAA,M;AACAC,E,CAAAA,M;AACAC,O,CAAAA,gB;AACAC,M,CAAAA,c;AACAC,S,CAAAA,oB;AACAC,O,CAAAA,gB;AACAC,M,CAAAA,c;AACAC,G,CAAAA,Q;AACqBC,I,CAArBC,c;AACAC,S,CAAAA,oB;AACYC,M,CAAZC,gB;AACAC,I,CAAAA,U;AACAC,Q,CAAAA,kB;AACAC,S,CAAAA,oB;AACAC,U,CAAAA,sB;AACAC,I,CAAAA,U;AACAC,Q,CAAAA,kB;AACAC,K,CAAAA,Y;AACAC,Q,CAAAA,kB;AACAC,G,CAAAA,wB;AACAC,G,CAAAA,wB;AACAC,I,CAAAA,yB;AACAC,I,CAAAA,U;AACWC,U,CAAXpB,gB;AACAqB,I,CAAAA,Y;AACkBC,K,CAAlBC,8B;AACAC,a,CAAAA,+B;AACwBC,W,CAAxBC,iC;AACAC,U,CAAAA,sB;AACAC,Y,CAAAA,0B;AACAC,a,CAAAA,4B;AACAC,O,CAAAA,gB;AACAC,I,CAAAA,U;AACAC,Q,CAAAA,kB;AACAC,a,CAAAA,mB;AACAC,S,CAAAA,oB;;;AAGF,GAAMC,sBAAuB,QAAvBA,qBAAuB,CAACC,UAAD,CAAaC,KAAb,QAAuB,iBAAKA,KAAL,CAAvB,EAA7B,C;;AAESF,oB,CAAAA,oB","file":"index.js","sourcesContent":["import { StyleProvider, connectStyle } from \"native-base-shoutem-theme\";\nimport { keys } from \"lodash\";\nimport { Col, Row, Grid } from \"react-native-easy-grid\";\n// import { Gravatar } from \"./basic/Gravatar\";\nimport setDefaultThemeStyle from \"./init\";\nimport getTheme from \"./theme/components\";\nimport variables from \"./theme/variables/platform\";\nimport Drawer from \"./basic/Drawer\";\nimport { SwipeRow } from \"./basic/SwipeRow\";\nimport { Text } from \"./basic/Text\";\nimport { ViewNB as View } from \"./basic/View\";\nimport { Button } from \"./basic/Button\";\nimport { DatePicker } from \"./basic/DatePicker\";\nimport { TabHeading } from \"./basic/TabHeading\";\nimport { TabContainer } from \"./basic/TabContainer\";\nimport { IconNB } from \"./basic/IconNB\";\nimport { Icon } from \"./basic/Icon\";\nimport { Header } from \"./basic/Header\";\nimport { InputGroup } from \"./basic/InputGroup\";\nimport { Input } from \"./basic/Input\";\nimport { Title } from \"./basic/Title\";\nimport { Fab } from \"./basic/Fab\";\nimport { Left } from \"./basic/Left\";\nimport { Right } from \"./basic/Right\";\nimport { Body } from \"./basic/Body\";\nimport { Badge } from \"./basic/Badge\";\nimport { CheckBox } from \"./basic/Checkbox\";\nimport { Radio } from \"./basic/Radio\";\nimport { Thumbnail } from \"./basic/Thumbnail\";\nimport { Card } from \"./basic/Card\";\nimport { CardItem } from \"./basic/CardItem\";\nimport { H1 } from \"./basic/H1\";\nimport { H2 } from \"./basic/H2\";\nimport { H3 } from \"./basic/H3\";\nimport { Spinner } from \"./basic/Spinner\";\nimport { Switch } from \"./basic/Switch\";\nimport { Container } from \"./basic/Container\";\nimport { Root } from \"./basic/Root\";\nimport { Content } from \"./basic/Content\";\nimport { Footer } from \"./basic/Footer\";\nimport { FooterTab } from \"./basic/FooterTab\";\nimport { Form } from \"./basic/Form\";\nimport { ToastContainer } from \"./basic/ToastContainer\";\nimport { ActionSheetContainer } from \"./basic/Actionsheet\";\nimport { PickerNB } from \"./basic/Picker\";\nimport { List } from \"./basic/List\";\nimport { ListItem } from \"./basic/ListItem\";\nimport { Separator } from \"./basic/Separator\";\nimport { DeckSwiper } from \"./basic/DeckSwiper\";\nimport { Item } from \"./basic/Item\";\nimport { Segment } from \"./basic/Segment\";\nimport { Label } from \"./basic/Label\";\nimport { Textarea } from \"./basic/Textarea\";\nimport { Tab } from \"./basic/Tab\";\nimport ScrollableTabView from \"./basic/Tabs\";\nimport { DefaultTabBar } from \"./basic/Tabs/DefaultTabBar\";\nimport { ScrollableTab } from \"./basic/Tabs/ScrollableTabBar\";\nimport { Subtitle } from \"./basic/Subtitle\";\nimport { Accordion } from \"./basic/Accordion\";\n\nimport VueNativeBase from \"./vue-native.js\";\n\nsetDefaultThemeStyle();\n// Theme\nexport {\n getTheme,\n variables,\n StyleProvider,\n connectStyle,\n Drawer,\n Button,\n DatePicker,\n IconNB,\n Icon,\n Header,\n Form,\n InputGroup,\n Input,\n Title,\n Fab,\n Left,\n Right,\n Body,\n Badge,\n CheckBox,\n Radio,\n Thumbnail,\n Card,\n CardItem,\n H1,\n H2,\n H3,\n Spinner,\n Switch,\n Container,\n Content,\n Footer,\n Tab,\n ScrollableTabView as Tabs,\n FooterTab,\n PickerNB as Picker,\n List,\n ListItem,\n Separator,\n DeckSwiper,\n Item,\n Subtitle,\n Label,\n Textarea,\n Col,\n Row,\n Grid,\n Text,\n Content as TabContent,\n View,\n ToastContainer as Toast,\n ScrollableTab,\n ActionSheetContainer as ActionSheet,\n TabHeading,\n TabContainer,\n DefaultTabBar,\n Segment,\n Root,\n SwipeRow,\n VueNativeBase,\n Accordion\n};\n\nconst mapPropsToStyleNames = (styleNames, props) => keys(props);\n\nexport { mapPropsToStyleNames };\n"]} \ No newline at end of file +{"version":3,"sources":["../../src/index.js"],"names":["getTheme","variables","StyleProvider","connectStyle","Drawer","Button","DatePicker","IconNB","Icon","Header","Form","InputGroup","Input","Title","Fab","Left","Right","Body","Badge","CheckBox","Radio","Thumbnail","Card","CardItem","H1","H2","H3","Spinner","Switch","Container","Content","Footer","Tab","Tabs","ScrollableTabView","FooterTab","Picker","PickerNB","List","ListItem","Separator","DeckSwiper","Item","Subtitle","Label","Textarea","Col","Row","Grid","Text","TabContent","View","Toast","ToastContainer","ScrollableTab","ActionSheet","ActionSheetContainer","TabHeading","TabContainer","DefaultTabBar","Segment","Root","SwipeRow","VueNativeBase","Accordion","mapPropsToStyleNames","styleNames","props"],"mappings":"giCAAA,iEACA,8BACA,2DAEA,4B,yCACA,8C,qDACA,oD,iDACA,sC,6CACA,0CACA,kCACA,kCACA,sCACA,8CACA,8CACA,kDACA,sCACA,kCACA,sCACA,8CACA,oCACA,oCACA,gCACA,kCACA,oCACA,kCACA,oCACA,0CACA,oCACA,4CACA,kCACA,0CACA,6BACA,8BACA,8BACA,wCACA,sCACA,4CACA,kCACA,wCACA,sCACA,4CACA,kCACA,sDACA,gDACA,sCACA,kCACA,0CACA,4CACA,8CACA,kCACA,wCACA,oCACA,0CACA,gCACA,kC,yCACA,yDACA,+DACA,0CACA,4CAEA,0C,sIAEA,qB,QAGEA,Q,CAAAA,oB,SACAC,S,CAAAA,kB,SACAC,a,CAAAA,qC,SACAC,Y,CAAAA,oC,SACAC,M,CAAAA,gB,SACAC,M,CAAAA,c,SACAC,U,CAAAA,sB,SACAC,M,CAAAA,c,SACAC,I,CAAAA,U,SACAC,M,CAAAA,c,SACAC,I,CAAAA,U,SACAC,U,CAAAA,sB,SACAC,K,CAAAA,Y,SACAC,K,CAAAA,Y,SACAC,G,CAAAA,Q,SACAC,I,CAAAA,U,SACAC,K,CAAAA,Y,SACAC,I,CAAAA,U,SACAC,K,CAAAA,Y,SACAC,Q,CAAAA,kB,SACAC,K,CAAAA,Y,SACAC,S,CAAAA,oB,SACAC,I,CAAAA,U,SACAC,Q,CAAAA,kB,SACAC,E,CAAAA,K,SACAC,E,CAAAA,M,SACAC,E,CAAAA,M,SACAC,O,CAAAA,gB,SACAC,M,CAAAA,c,SACAC,S,CAAAA,oB,SACAC,O,CAAAA,gB,SACAC,M,CAAAA,c,SACAC,G,CAAAA,Q,SACqBC,I,CAArBC,c,SACAC,S,CAAAA,oB,SACYC,M,CAAZC,gB,SACAC,I,CAAAA,U,SACAC,Q,CAAAA,kB,SACAC,S,CAAAA,oB,SACAC,U,CAAAA,sB,SACAC,I,CAAAA,U,SACAC,Q,CAAAA,kB,SACAC,K,CAAAA,Y,SACAC,Q,CAAAA,kB,SACAC,G,CAAAA,wB,SACAC,G,CAAAA,wB,SACAC,I,CAAAA,yB,SACAC,I,CAAAA,U,SACWC,U,CAAXpB,gB,SACAqB,I,CAAAA,Y,SACkBC,K,CAAlBC,8B,SACAC,a,CAAAA,+B,SACwBC,W,CAAxBC,iC,SACAC,U,CAAAA,sB,SACAC,Y,CAAAA,0B,SACAC,a,CAAAA,4B,SACAC,O,CAAAA,gB,SACAC,I,CAAAA,U,SACAC,Q,CAAAA,kB,SACAC,a,CAAAA,mB,SACAC,S,CAAAA,oB,CAGF,GAAMC,sBAAuB,QAAvBA,qBAAuB,CAACC,UAAD,CAAaC,KAAb,QAAuB,iBAAKA,KAAL,CAAvB,EAA7B,C,QAESF,oB,CAAAA,oB","file":"index.js","sourcesContent":["import { StyleProvider, connectStyle } from \"native-base-shoutem-theme\";\nimport { keys } from \"lodash\";\nimport { Col, Row, Grid } from \"react-native-easy-grid\";\n// import { Gravatar } from \"./basic/Gravatar\";\nimport setDefaultThemeStyle from \"./init\";\nimport getTheme from \"./theme/components\";\nimport variables from \"./theme/variables/platform\";\nimport Drawer from \"./basic/Drawer\";\nimport { SwipeRow } from \"./basic/SwipeRow\";\nimport { Text } from \"./basic/Text\";\nimport { ViewNB as View } from \"./basic/View\";\nimport { Button } from \"./basic/Button\";\nimport { DatePicker } from \"./basic/DatePicker\";\nimport { TabHeading } from \"./basic/TabHeading\";\nimport { TabContainer } from \"./basic/TabContainer\";\nimport { IconNB } from \"./basic/IconNB\";\nimport { Icon } from \"./basic/Icon\";\nimport { Header } from \"./basic/Header\";\nimport { InputGroup } from \"./basic/InputGroup\";\nimport { Input } from \"./basic/Input\";\nimport { Title } from \"./basic/Title\";\nimport { Fab } from \"./basic/Fab\";\nimport { Left } from \"./basic/Left\";\nimport { Right } from \"./basic/Right\";\nimport { Body } from \"./basic/Body\";\nimport { Badge } from \"./basic/Badge\";\nimport { CheckBox } from \"./basic/Checkbox\";\nimport { Radio } from \"./basic/Radio\";\nimport { Thumbnail } from \"./basic/Thumbnail\";\nimport { Card } from \"./basic/Card\";\nimport { CardItem } from \"./basic/CardItem\";\nimport { H1 } from \"./basic/H1\";\nimport { H2 } from \"./basic/H2\";\nimport { H3 } from \"./basic/H3\";\nimport { Spinner } from \"./basic/Spinner\";\nimport { Switch } from \"./basic/Switch\";\nimport { Container } from \"./basic/Container\";\nimport { Root } from \"./basic/Root\";\nimport { Content } from \"./basic/Content\";\nimport { Footer } from \"./basic/Footer\";\nimport { FooterTab } from \"./basic/FooterTab\";\nimport { Form } from \"./basic/Form\";\nimport { ToastContainer } from \"./basic/ToastContainer\";\nimport { ActionSheetContainer } from \"./basic/Actionsheet\";\nimport { PickerNB } from \"./basic/Picker\";\nimport { List } from \"./basic/List\";\nimport { ListItem } from \"./basic/ListItem\";\nimport { Separator } from \"./basic/Separator\";\nimport { DeckSwiper } from \"./basic/DeckSwiper\";\nimport { Item } from \"./basic/Item\";\nimport { Segment } from \"./basic/Segment\";\nimport { Label } from \"./basic/Label\";\nimport { Textarea } from \"./basic/Textarea\";\nimport { Tab } from \"./basic/Tab\";\nimport ScrollableTabView from \"./basic/Tabs\";\nimport { DefaultTabBar } from \"./basic/Tabs/DefaultTabBar\";\nimport { ScrollableTab } from \"./basic/Tabs/ScrollableTabBar\";\nimport { Subtitle } from \"./basic/Subtitle\";\nimport { Accordion } from \"./basic/Accordion\";\n\nimport VueNativeBase from \"./vue-native.js\";\n\nsetDefaultThemeStyle();\n// Theme\nexport {\n getTheme,\n variables,\n StyleProvider,\n connectStyle,\n Drawer,\n Button,\n DatePicker,\n IconNB,\n Icon,\n Header,\n Form,\n InputGroup,\n Input,\n Title,\n Fab,\n Left,\n Right,\n Body,\n Badge,\n CheckBox,\n Radio,\n Thumbnail,\n Card,\n CardItem,\n H1,\n H2,\n H3,\n Spinner,\n Switch,\n Container,\n Content,\n Footer,\n Tab,\n ScrollableTabView as Tabs,\n FooterTab,\n PickerNB as Picker,\n List,\n ListItem,\n Separator,\n DeckSwiper,\n Item,\n Subtitle,\n Label,\n Textarea,\n Col,\n Row,\n Grid,\n Text,\n Content as TabContent,\n View,\n ToastContainer as Toast,\n ScrollableTab,\n ActionSheetContainer as ActionSheet,\n TabHeading,\n TabContainer,\n DefaultTabBar,\n Segment,\n Root,\n SwipeRow,\n VueNativeBase,\n Accordion\n};\n\nconst mapPropsToStyleNames = (styleNames, props) => keys(props);\n\nexport { mapPropsToStyleNames };\n"]} \ No newline at end of file diff --git a/dist/src/init.js b/dist/src/init.js index ece96ecfe..2a89d3634 100644 --- a/dist/src/init.js +++ b/dist/src/init.js @@ -1,8 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.default= - - -setDefaultThemeStyle;var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _components=require("./theme/components");var _components2=_interopRequireDefault(_components);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function setDefaultThemeStyle(){ -var theme=(0,_components2.default)(); -_nativeBaseShoutemTheme.Theme.setDefaultThemeStyle(theme); -} +Object.defineProperty(exports,"__esModule",{value:true});exports.default=setDefaultThemeStyle;var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _components=require("./theme/components");var _components2=_interopRequireDefault(_components);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function setDefaultThemeStyle(){var theme=(0,_components2.default)();_nativeBaseShoutemTheme.Theme.setDefaultThemeStyle(theme);} //# sourceMappingURL=init.js.map \ No newline at end of file diff --git a/dist/src/init.js.map b/dist/src/init.js.map index 5912e47e8..494969b7d 100644 --- a/dist/src/init.js.map +++ b/dist/src/init.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../src/init.js"],"names":["setDefaultThemeStyle","theme","Theme"],"mappings":";;;AAGwBA,oB,CAHxB,iEACA,8C,wIAEe,QAASA,qBAAT,EAAgC;AAC7C,GAAMC,OAAQ,0BAAd;AACAC,8BAAMF,oBAAN,CAA2BC,KAA3B;AACD","file":"init.js","sourcesContent":["import { Theme } from \"native-base-shoutem-theme\";\nimport getThemeStyle from \"./theme/components\";\n\nexport default function setDefaultThemeStyle() {\n const theme = getThemeStyle();\n Theme.setDefaultThemeStyle(theme);\n}\n"]} \ No newline at end of file +{"version":3,"sources":["../../src/init.js"],"names":["setDefaultThemeStyle","theme","Theme"],"mappings":"yEAGwBA,oB,CAHxB,iEACA,8C,wIAEe,QAASA,qBAAT,EAAgC,CAC7C,GAAMC,OAAQ,0BAAd,CACAC,8BAAMF,oBAAN,CAA2BC,KAA3B,EACD","file":"init.js","sourcesContent":["import { Theme } from \"native-base-shoutem-theme\";\nimport getThemeStyle from \"./theme/components\";\n\nexport default function setDefaultThemeStyle() {\n const theme = getThemeStyle();\n Theme.setDefaultThemeStyle(theme);\n}\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Badge.js b/dist/src/theme/components/Badge.js index 33d4db37d..5fb433fd3 100644 --- a/dist/src/theme/components/Badge.js +++ b/dist/src/theme/components/Badge.js @@ -1,37 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var badgeTheme={ -".primary":{ -backgroundColor:variables.btnPrimaryBg}, - -".warning":{ -backgroundColor:variables.btnWarningBg}, - -".info":{ -backgroundColor:variables.btnInfoBg}, - -".success":{ -backgroundColor:variables.btnSuccessBg}, - -".danger":{ -backgroundColor:variables.btnDangerBg}, - -"NativeBase.Text":{ -color:variables.badgeColor, -fontSize:variables.fontSizeBase, -lineHeight:variables.lineHeight-1, -textAlign:"center", -paddingHorizontal:3}, - -backgroundColor:variables.badgeBg, -padding:variables.badgePadding, -paddingHorizontal:6, -alignSelf:"flex-start", -justifyContent:variables.platform==="ios"?"center":undefined, -borderRadius:13.5, -height:27}; - -return badgeTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var badgeTheme={".primary":{backgroundColor:variables.btnPrimaryBg},".warning":{backgroundColor:variables.btnWarningBg},".info":{backgroundColor:variables.btnInfoBg},".success":{backgroundColor:variables.btnSuccessBg},".danger":{backgroundColor:variables.btnDangerBg},"NativeBase.Text":{color:variables.badgeColor,fontSize:variables.fontSizeBase,lineHeight:variables.lineHeight-1,textAlign:"center",paddingHorizontal:3},backgroundColor:variables.badgeBg,padding:variables.badgePadding,paddingHorizontal:6,alignSelf:"flex-start",justifyContent:variables.platform==="ios"?"center":undefined,borderRadius:13.5,height:27};return badgeTheme;}; //# sourceMappingURL=Badge.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Badge.js.map b/dist/src/theme/components/Badge.js.map index f421ac59a..fee93326f 100644 --- a/dist/src/theme/components/Badge.js.map +++ b/dist/src/theme/components/Badge.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Badge.js"],"names":["variables","variable","badgeTheme","backgroundColor","btnPrimaryBg","btnWarningBg","btnInfoBg","btnSuccessBg","btnDangerBg","color","badgeColor","fontSize","fontSizeBase","lineHeight","textAlign","paddingHorizontal","badgeBg","padding","badgePadding","alignSelf","justifyContent","platform","undefined","borderRadius","height"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,YAAa;AACjB,WAAY;AACVC,gBAAiBH,UAAUI,YADjB,CADK;;AAIjB,WAAY;AACVD,gBAAiBH,UAAUK,YADjB,CAJK;;AAOjB,QAAS;AACPF,gBAAiBH,UAAUM,SADpB,CAPQ;;AAUjB,WAAY;AACVH,gBAAiBH,UAAUO,YADjB,CAVK;;AAajB,UAAW;AACTJ,gBAAiBH,UAAUQ,WADlB,CAbM;;AAgBjB,kBAAmB;AACjBC,MAAOT,UAAUU,UADA;AAEjBC,SAAUX,UAAUY,YAFH;AAGjBC,WAAYb,UAAUa,UAAV,CAAuB,CAHlB;AAIjBC,UAAW,QAJM;AAKjBC,kBAAmB,CALF,CAhBF;;AAuBjBZ,gBAAiBH,UAAUgB,OAvBV;AAwBjBC,QAASjB,UAAUkB,YAxBF;AAyBjBH,kBAAmB,CAzBF;AA0BjBI,UAAW,YA1BM;AA2BjBC,eAAgBpB,UAAUqB,QAAV,GAAuB,KAAvB,CAA+B,QAA/B,CAA0CC,SA3BzC;AA4BjBC,aAAc,IA5BG;AA6BjBC,OAAQ,EA7BS,CAAnB;;AA+BA,MAAOtB,WAAP;AACD,C","file":"Badge.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const badgeTheme = {\n \".primary\": {\n backgroundColor: variables.btnPrimaryBg\n },\n \".warning\": {\n backgroundColor: variables.btnWarningBg\n },\n \".info\": {\n backgroundColor: variables.btnInfoBg\n },\n \".success\": {\n backgroundColor: variables.btnSuccessBg\n },\n \".danger\": {\n backgroundColor: variables.btnDangerBg\n },\n \"NativeBase.Text\": {\n color: variables.badgeColor,\n fontSize: variables.fontSizeBase,\n lineHeight: variables.lineHeight - 1,\n textAlign: \"center\",\n paddingHorizontal: 3\n },\n backgroundColor: variables.badgeBg,\n padding: variables.badgePadding,\n paddingHorizontal: 6,\n alignSelf: \"flex-start\",\n justifyContent: variables.platform === \"ios\" ? \"center\" : undefined,\n borderRadius: 13.5,\n height: 27\n };\n return badgeTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Badge.js"],"names":["variables","variable","badgeTheme","backgroundColor","btnPrimaryBg","btnWarningBg","btnInfoBg","btnSuccessBg","btnDangerBg","color","badgeColor","fontSize","fontSizeBase","lineHeight","textAlign","paddingHorizontal","badgeBg","padding","badgePadding","alignSelf","justifyContent","platform","undefined","borderRadius","height"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,YAAa,CACjB,WAAY,CACVC,gBAAiBH,UAAUI,YADjB,CADK,CAIjB,WAAY,CACVD,gBAAiBH,UAAUK,YADjB,CAJK,CAOjB,QAAS,CACPF,gBAAiBH,UAAUM,SADpB,CAPQ,CAUjB,WAAY,CACVH,gBAAiBH,UAAUO,YADjB,CAVK,CAajB,UAAW,CACTJ,gBAAiBH,UAAUQ,WADlB,CAbM,CAgBjB,kBAAmB,CACjBC,MAAOT,UAAUU,UADA,CAEjBC,SAAUX,UAAUY,YAFH,CAGjBC,WAAYb,UAAUa,UAAV,CAAuB,CAHlB,CAIjBC,UAAW,QAJM,CAKjBC,kBAAmB,CALF,CAhBF,CAuBjBZ,gBAAiBH,UAAUgB,OAvBV,CAwBjBC,QAASjB,UAAUkB,YAxBF,CAyBjBH,kBAAmB,CAzBF,CA0BjBI,UAAW,YA1BM,CA2BjBC,eAAgBpB,UAAUqB,QAAV,GAAuB,KAAvB,CAA+B,QAA/B,CAA0CC,SA3BzC,CA4BjBC,aAAc,IA5BG,CA6BjBC,OAAQ,EA7BS,CAAnB,CA+BA,MAAOtB,WAAP,CACD,C","file":"Badge.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const badgeTheme = {\n \".primary\": {\n backgroundColor: variables.btnPrimaryBg\n },\n \".warning\": {\n backgroundColor: variables.btnWarningBg\n },\n \".info\": {\n backgroundColor: variables.btnInfoBg\n },\n \".success\": {\n backgroundColor: variables.btnSuccessBg\n },\n \".danger\": {\n backgroundColor: variables.btnDangerBg\n },\n \"NativeBase.Text\": {\n color: variables.badgeColor,\n fontSize: variables.fontSizeBase,\n lineHeight: variables.lineHeight - 1,\n textAlign: \"center\",\n paddingHorizontal: 3\n },\n backgroundColor: variables.badgeBg,\n padding: variables.badgePadding,\n paddingHorizontal: 6,\n alignSelf: \"flex-start\",\n justifyContent: variables.platform === \"ios\" ? \"center\" : undefined,\n borderRadius: 13.5,\n height: 27\n };\n return badgeTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Body.js b/dist/src/theme/components/Body.js index 056e4d772..6ac834ce8 100644 --- a/dist/src/theme/components/Body.js +++ b/dist/src/theme/components/Body.js @@ -1,12 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var bodyTheme={ -flex:1, -alignItems:'center', -alignSelf:'center'}; - - -return bodyTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var bodyTheme={flex:1,alignItems:'center',alignSelf:'center'};return bodyTheme;}; //# sourceMappingURL=Body.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Body.js.map b/dist/src/theme/components/Body.js.map index e1cf53aa6..06c4c69cd 100644 --- a/dist/src/theme/components/Body.js.map +++ b/dist/src/theme/components/Body.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Body.js"],"names":["variables","variable","bodyTheme","flex","alignItems","alignSelf"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACxC,GAAMC,WAAY;AACjBC,KAAM,CADW;AAEjBC,WAAY,QAFK;AAGjBC,UAAW,QAHM,CAAlB;;;AAMA,MAAOH,UAAP;AACA,C","file":"Body.js","sourcesContent":["import variable from './../variables/platform';\n\nexport default (variables = variable) => {\n\tconst bodyTheme = {\n\t\tflex: 1,\n\t\talignItems: 'center',\n\t\talignSelf: 'center',\n\t};\n\n\treturn bodyTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Body.js"],"names":["variables","variable","bodyTheme","flex","alignItems","alignSelf"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACxC,GAAMC,WAAY,CACjBC,KAAM,CADW,CAEjBC,WAAY,QAFK,CAGjBC,UAAW,QAHM,CAAlB,CAMA,MAAOH,UAAP,CACA,C","file":"Body.js","sourcesContent":["import variable from './../variables/platform';\n\nexport default (variables = variable) => {\n\tconst bodyTheme = {\n\t\tflex: 1,\n\t\talignItems: 'center',\n\t\talignSelf: 'center',\n\t};\n\n\treturn bodyTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Button.js b/dist/src/theme/components/Button.js index 956d9be97..6c2c764ba 100644 --- a/dist/src/theme/components/Button.js +++ b/dist/src/theme/components/Button.js @@ -1,395 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var platformStyle=variables.platformStyle; -var platform=variables.platform; -var darkCommon={ -"NativeBase.Text":{ -color:variables.brandDark}, - -"NativeBase.Icon":{ -color:variables.brandDark}, - -"NativeBase.IconNB":{ -color:variables.brandDark}}; - - -var lightCommon={ -"NativeBase.Text":{ -color:variables.brandLight}, - -"NativeBase.Icon":{ -color:variables.brandLight}, - -"NativeBase.IconNB":{ -color:variables.brandLight}}; - - -var primaryCommon={ -"NativeBase.Text":{ -color:variables.btnPrimaryBg}, - -"NativeBase.Icon":{ -color:variables.btnPrimaryBg}, - -"NativeBase.IconNB":{ -color:variables.btnPrimaryBg}}; - - -var successCommon={ -"NativeBase.Text":{ -color:variables.btnSuccessBg}, - -"NativeBase.Icon":{ -color:variables.btnSuccessBg}, - -"NativeBase.IconNB":{ -color:variables.btnSuccessBg}}; - - -var infoCommon={ -"NativeBase.Text":{ -color:variables.btnInfoBg}, - -"NativeBase.Icon":{ -color:variables.btnInfoBg}, - -"NativeBase.IconNB":{ -color:variables.btnInfoBg}}; - - -var warningCommon={ -"NativeBase.Text":{ -color:variables.btnWarningBg}, - -"NativeBase.Icon":{ -color:variables.btnWarningBg}, - -"NativeBase.IconNB":{ -color:variables.btnWarningBg}}; - - -var dangerCommon={ -"NativeBase.Text":{ -color:variables.btnDangerBg}, - -"NativeBase.Icon":{ -color:variables.btnDangerBg}, - -"NativeBase.IconNB":{ -color:variables.btnDangerBg}}; - - -var buttonTheme={ -".disabled":{ -".transparent":{ -backgroundColor:null, -"NativeBase.Text":{ -color:variables.btnDisabledBg}, - -"NativeBase.Icon":{ -color:variables.btnDisabledBg}, - -"NativeBase.IconNB":{ -color:variables.btnDisabledBg}}, - - -"NativeBase.Icon":{ -color:variables.brandLight}, - -"NativeBase.IconNB":{ -color:variables.brandLight}, - -backgroundColor:variables.btnDisabledBg}, - -".bordered":_extends({ -".dark":_extends({}, -darkCommon,{ -backgroundColor:"transparent", -borderColor:variables.brandDark, -borderWidth:variables.borderWidth*2}), - -".light":_extends({}, -lightCommon,{ -backgroundColor:"transparent", -borderColor:variables.brandLight, -borderWidth:variables.borderWidth*2}), - -".primary":_extends({}, -primaryCommon,{ -backgroundColor:"transparent", -borderColor:variables.btnPrimaryBg, -borderWidth:variables.borderWidth*2}), - -".success":_extends({}, -successCommon,{ -backgroundColor:"transparent", -borderColor:variables.btnSuccessBg, -borderWidth:variables.borderWidth*2}), - -".info":_extends({}, -infoCommon,{ -backgroundColor:"transparent", -borderColor:variables.btnInfoBg, -borderWidth:variables.borderWidth*2}), - -".warning":_extends({}, -warningCommon,{ -backgroundColor:"transparent", -borderColor:variables.btnWarningBg, -borderWidth:variables.borderWidth*2}), - -".danger":_extends({}, -dangerCommon,{ -backgroundColor:"transparent", -borderColor:variables.btnDangerBg, -borderWidth:variables.borderWidth*2}), - -".disabled":{ -backgroundColor:null, -borderColor:variables.btnDisabledBg, -borderWidth:variables.borderWidth*2, -"NativeBase.Text":{ -color:variables.btnDisabledBg}}}, - - -primaryCommon,{ -borderWidth:variables.borderWidth*2, -elevation:null, -shadowColor:null, -shadowOffset:null, -shadowOpacity:null, -shadowRadius:null, -backgroundColor:"transparent"}), - - -".dark":{ -".bordered":_extends({}, -darkCommon), - -backgroundColor:variables.brandDark}, - -".light":_extends({ -".transparent":_extends({}, -lightCommon,{ -backgroundColor:null}), - -".bordered":_extends({}, -lightCommon)}, - -darkCommon,{ -backgroundColor:variables.brandLight}), - - -".primary":{ -".bordered":_extends({}, -primaryCommon), - -backgroundColor:variables.btnPrimaryBg}, - - -".success":{ -".bordered":_extends({}, -successCommon), - -backgroundColor:variables.btnSuccessBg}, - - -".info":{ -".bordered":_extends({}, -infoCommon), - -backgroundColor:variables.btnInfoBg}, - - -".warning":{ -".bordered":_extends({}, -warningCommon), - -backgroundColor:variables.btnWarningBg}, - - -".danger":{ -".bordered":_extends({}, -dangerCommon), - -backgroundColor:variables.btnDangerBg}, - - -".block":{ -justifyContent:"center", -alignSelf:"stretch"}, - - -".full":{ -justifyContent:"center", -alignSelf:"stretch", -borderRadius:0}, - - -".rounded":{ - -borderRadius:variables.borderRadiusLarge}, - - -".transparent":_extends({ -backgroundColor:"transparent", -elevation:0, -shadowColor:null, -shadowOffset:null, -shadowRadius:null, -shadowOpacity:null}, -primaryCommon,{ -".dark":_extends({}, -darkCommon,{ -backgroundColor:null}), - -".danger":_extends({}, -dangerCommon,{ -backgroundColor:null}), - -".warning":_extends({}, -warningCommon,{ -backgroundColor:null}), - -".info":_extends({}, -infoCommon,{ -backgroundColor:null}), - -".primary":_extends({}, -primaryCommon,{ -backgroundColor:null}), - -".success":_extends({}, -successCommon,{ -backgroundColor:null}), - -".light":_extends({}, -lightCommon,{ -backgroundColor:null}), - -".disabled":{ -backgroundColor:"transparent", -borderColor:variables.btnDisabledBg, -borderWidth:variables.borderWidth*2, -"NativeBase.Text":{ -color:variables.btnDisabledBg}, - -"NativeBase.Icon":{ -color:variables.btnDisabledBg}, - -"NativeBase.IconNB":{ -color:variables.btnDisabledBg}}}), - - - - -".small":{ -height:30, -"NativeBase.Text":{ -fontSize:14}, - -"NativeBase.Icon":{ -fontSize:20, -paddingTop:0}, - -"NativeBase.IconNB":{ -fontSize:20, -paddingTop:0}}, - - - -".large":{ -height:60, -"NativeBase.Text":{ -fontSize:22}}, - - - -".capitalize":{}, - -".vertical":{ -flexDirection:"column", -height:null}, - - -"NativeBase.Text":{ -fontFamily:variables.btnFontFamily, -marginLeft:0, -marginRight:0, -color:variables.inverseTextColor, -fontSize:variables.btnTextSize, -paddingHorizontal:16, -backgroundColor:"transparent"}, - - - -"NativeBase.Icon":{ -color:variables.inverseTextColor, -fontSize:24, -marginHorizontal:16, -paddingTop:platform==="ios"?2:undefined}, - -"NativeBase.IconNB":{ -color:variables.inverseTextColor, -fontSize:24, -marginHorizontal:16, -paddingTop:platform==="ios"?2:undefined}, - - -".iconLeft":{ -"NativeBase.Text":{ -marginLeft:0}, - -"NativeBase.IconNB":{ -marginRight:0, -marginLeft:16}, - -"NativeBase.Icon":{ -marginRight:0, -marginLeft:16}}, - - -".iconRight":{ -"NativeBase.Text":{ -marginRight:0}, - -"NativeBase.IconNB":{ -marginLeft:0, -marginRight:16}, - -"NativeBase.Icon":{ -marginLeft:0, -marginRight:16}}, - - -".picker":{ -"NativeBase.Text":{ -".note":{ -fontSize:16, -lineHeight:null}}}, - - - - -paddingVertical:variables.buttonPadding, - -backgroundColor:variables.btnPrimaryBg, -borderRadius:variables.borderRadiusBase, -borderColor:variables.btnPrimaryBg, -borderWidth:null, -height:45, -alignSelf:"flex-start", -flexDirection:"row", -elevation:2, -shadowColor:platformStyle==="material"?variables.brandDark:undefined, -shadowOffset: -platformStyle==="material"?{width:0,height:2}:undefined, -shadowOpacity:platformStyle==="material"?0.2:undefined, -shadowRadius:platformStyle==="material"?1.2:undefined, -alignItems:"center", -justifyContent:"space-between"}; - -return buttonTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var darkCommon={"NativeBase.Text":{color:variables.brandDark},"NativeBase.Icon":{color:variables.brandDark},"NativeBase.IconNB":{color:variables.brandDark}};var lightCommon={"NativeBase.Text":{color:variables.brandLight},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight}};var primaryCommon={"NativeBase.Text":{color:variables.btnPrimaryBg},"NativeBase.Icon":{color:variables.btnPrimaryBg},"NativeBase.IconNB":{color:variables.btnPrimaryBg}};var successCommon={"NativeBase.Text":{color:variables.btnSuccessBg},"NativeBase.Icon":{color:variables.btnSuccessBg},"NativeBase.IconNB":{color:variables.btnSuccessBg}};var infoCommon={"NativeBase.Text":{color:variables.btnInfoBg},"NativeBase.Icon":{color:variables.btnInfoBg},"NativeBase.IconNB":{color:variables.btnInfoBg}};var warningCommon={"NativeBase.Text":{color:variables.btnWarningBg},"NativeBase.Icon":{color:variables.btnWarningBg},"NativeBase.IconNB":{color:variables.btnWarningBg}};var dangerCommon={"NativeBase.Text":{color:variables.btnDangerBg},"NativeBase.Icon":{color:variables.btnDangerBg},"NativeBase.IconNB":{color:variables.btnDangerBg}};var buttonTheme={".disabled":{".transparent":{backgroundColor:null,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}},"NativeBase.Icon":{color:variables.brandLight},"NativeBase.IconNB":{color:variables.brandLight},backgroundColor:variables.btnDisabledBg},".bordered":_extends({".dark":_extends({},darkCommon,{backgroundColor:"transparent",borderColor:variables.brandDark,borderWidth:variables.borderWidth*2}),".light":_extends({},lightCommon,{backgroundColor:"transparent",borderColor:variables.brandLight,borderWidth:variables.borderWidth*2}),".primary":_extends({},primaryCommon,{backgroundColor:"transparent",borderColor:variables.btnPrimaryBg,borderWidth:variables.borderWidth*2}),".success":_extends({},successCommon,{backgroundColor:"transparent",borderColor:variables.btnSuccessBg,borderWidth:variables.borderWidth*2}),".info":_extends({},infoCommon,{backgroundColor:"transparent",borderColor:variables.btnInfoBg,borderWidth:variables.borderWidth*2}),".warning":_extends({},warningCommon,{backgroundColor:"transparent",borderColor:variables.btnWarningBg,borderWidth:variables.borderWidth*2}),".danger":_extends({},dangerCommon,{backgroundColor:"transparent",borderColor:variables.btnDangerBg,borderWidth:variables.borderWidth*2}),".disabled":{backgroundColor:null,borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg}}},primaryCommon,{borderWidth:variables.borderWidth*2,elevation:null,shadowColor:null,shadowOffset:null,shadowOpacity:null,shadowRadius:null,backgroundColor:"transparent"}),".dark":{".bordered":_extends({},darkCommon),backgroundColor:variables.brandDark},".light":_extends({".transparent":_extends({},lightCommon,{backgroundColor:null}),".bordered":_extends({},lightCommon)},darkCommon,{backgroundColor:variables.brandLight}),".primary":{".bordered":_extends({},primaryCommon),backgroundColor:variables.btnPrimaryBg},".success":{".bordered":_extends({},successCommon),backgroundColor:variables.btnSuccessBg},".info":{".bordered":_extends({},infoCommon),backgroundColor:variables.btnInfoBg},".warning":{".bordered":_extends({},warningCommon),backgroundColor:variables.btnWarningBg},".danger":{".bordered":_extends({},dangerCommon),backgroundColor:variables.btnDangerBg},".block":{justifyContent:"center",alignSelf:"stretch"},".full":{justifyContent:"center",alignSelf:"stretch",borderRadius:0},".rounded":{borderRadius:variables.borderRadiusLarge},".transparent":_extends({backgroundColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},primaryCommon,{".dark":_extends({},darkCommon,{backgroundColor:null}),".danger":_extends({},dangerCommon,{backgroundColor:null}),".warning":_extends({},warningCommon,{backgroundColor:null}),".info":_extends({},infoCommon,{backgroundColor:null}),".primary":_extends({},primaryCommon,{backgroundColor:null}),".success":_extends({},successCommon,{backgroundColor:null}),".light":_extends({},lightCommon,{backgroundColor:null}),".disabled":{backgroundColor:"transparent",borderColor:variables.btnDisabledBg,borderWidth:variables.borderWidth*2,"NativeBase.Text":{color:variables.btnDisabledBg},"NativeBase.Icon":{color:variables.btnDisabledBg},"NativeBase.IconNB":{color:variables.btnDisabledBg}}}),".small":{height:30,"NativeBase.Text":{fontSize:14},"NativeBase.Icon":{fontSize:20,paddingTop:0},"NativeBase.IconNB":{fontSize:20,paddingTop:0}},".large":{height:60,"NativeBase.Text":{fontSize:22}},".capitalize":{},".vertical":{flexDirection:"column",height:null},"NativeBase.Text":{fontFamily:variables.btnFontFamily,marginLeft:0,marginRight:0,color:variables.inverseTextColor,fontSize:variables.btnTextSize,paddingHorizontal:16,backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},"NativeBase.IconNB":{color:variables.inverseTextColor,fontSize:24,marginHorizontal:16,paddingTop:platform==="ios"?2:undefined},".iconLeft":{"NativeBase.Text":{marginLeft:0},"NativeBase.IconNB":{marginRight:0,marginLeft:16},"NativeBase.Icon":{marginRight:0,marginLeft:16}},".iconRight":{"NativeBase.Text":{marginRight:0},"NativeBase.IconNB":{marginLeft:0,marginRight:16},"NativeBase.Icon":{marginLeft:0,marginRight:16}},".picker":{"NativeBase.Text":{".note":{fontSize:16,lineHeight:null}}},paddingVertical:variables.buttonPadding,backgroundColor:variables.btnPrimaryBg,borderRadius:variables.borderRadiusBase,borderColor:variables.btnPrimaryBg,borderWidth:null,height:45,alignSelf:"flex-start",flexDirection:"row",elevation:2,shadowColor:platformStyle==="material"?variables.brandDark:undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,alignItems:"center",justifyContent:"space-between"};return buttonTheme;}; //# sourceMappingURL=Button.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Button.js.map b/dist/src/theme/components/Button.js.map index 66f9a2c79..1c2db218f 100644 --- a/dist/src/theme/components/Button.js.map +++ b/dist/src/theme/components/Button.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Button.js"],"names":["variables","variable","platformStyle","platform","darkCommon","color","brandDark","lightCommon","brandLight","primaryCommon","btnPrimaryBg","successCommon","btnSuccessBg","infoCommon","btnInfoBg","warningCommon","btnWarningBg","dangerCommon","btnDangerBg","buttonTheme","backgroundColor","btnDisabledBg","borderColor","borderWidth","elevation","shadowColor","shadowOffset","shadowOpacity","shadowRadius","justifyContent","alignSelf","borderRadius","borderRadiusLarge","height","fontSize","paddingTop","flexDirection","fontFamily","btnFontFamily","marginLeft","marginRight","inverseTextColor","btnTextSize","paddingHorizontal","marginHorizontal","undefined","lineHeight","paddingVertical","buttonPadding","borderRadiusBase","width","alignItems"],"mappings":"yRAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,eAAgBF,UAAUE,aAAhC;AACA,GAAMC,UAAWH,UAAUG,QAA3B;AACA,GAAMC,YAAa;AACjB,kBAAmB;AACjBC,MAAOL,UAAUM,SADA,CADF;;AAIjB,kBAAmB;AACjBD,MAAOL,UAAUM,SADA,CAJF;;AAOjB,oBAAqB;AACnBD,MAAOL,UAAUM,SADE,CAPJ,CAAnB;;;AAWA,GAAMC,aAAc;AAClB,kBAAmB;AACjBF,MAAOL,UAAUQ,UADA,CADD;;AAIlB,kBAAmB;AACjBH,MAAOL,UAAUQ,UADA,CAJD;;AAOlB,oBAAqB;AACnBH,MAAOL,UAAUQ,UADE,CAPH,CAApB;;;AAWA,GAAMC,eAAgB;AACpB,kBAAmB;AACjBJ,MAAOL,UAAUU,YADA,CADC;;AAIpB,kBAAmB;AACjBL,MAAOL,UAAUU,YADA,CAJC;;AAOpB,oBAAqB;AACnBL,MAAOL,UAAUU,YADE,CAPD,CAAtB;;;AAWA,GAAMC,eAAgB;AACpB,kBAAmB;AACjBN,MAAOL,UAAUY,YADA,CADC;;AAIpB,kBAAmB;AACjBP,MAAOL,UAAUY,YADA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AmB;AACjBD,WAAY,CADK;AAEjBC,YAAa,EAFI,CARP,CA9QI;;;AA2RlB,UAAW;AACT,kBAAmB;AACjB,QAAS;AACPN,SAAU,EADH;AAEPY,WAAY,IAFL,CADQ,CADV,CA3RO;;;;;AAoSlBC,gBAAiB/C,UAAUgD,aApST;;AAsSlB5B,gBAAiBpB,UAAUU,YAtST;AAuSlBqB,aAAc/B,UAAUiD,gBAvSN;AAwSlB3B,YAAatB,UAAUU,YAxSL;AAySlBa,YAAa,IAzSK;AA0SlBU,OAAQ,EA1SU;AA2SlBH,UAAW,YA3SO;AA4SlBM,cAAe,KA5SG;AA6SlBZ,UAAW,CA7SO;AA8SlBC,YAAavB,gBAAkB,UAAlB,CAA+BF,UAAUM,SAAzC,CAAqDuC,SA9ShD;AA+SlBnB;AACExB,gBAAkB,UAAlB,CAA+B,CAAEgD,MAAO,CAAT,CAAYjB,OAAQ,CAApB,CAA/B,CAAyDY,SAhTzC;AAiTlBlB,cAAezB,gBAAkB,UAAlB,CAA+B,GAA/B,CAAqC2C,SAjTlC;AAkTlBjB,aAAc1B,gBAAkB,UAAlB,CAA+B,GAA/B,CAAqC2C,SAlTjC;AAmTlBM,WAAY,QAnTM;AAoTlBtB,eAAgB,eApTE,CAApB;;AAsTA,MAAOV,YAAP;AACD,C","file":"Button.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const platformStyle = variables.platformStyle;\n const platform = variables.platform;\n const darkCommon = {\n \"NativeBase.Text\": {\n color: variables.brandDark\n },\n \"NativeBase.Icon\": {\n color: variables.brandDark\n },\n \"NativeBase.IconNB\": {\n color: variables.brandDark\n }\n };\n const lightCommon = {\n \"NativeBase.Text\": {\n color: variables.brandLight\n },\n \"NativeBase.Icon\": {\n color: variables.brandLight\n },\n \"NativeBase.IconNB\": {\n color: variables.brandLight\n }\n };\n const primaryCommon = {\n \"NativeBase.Text\": {\n color: variables.btnPrimaryBg\n },\n \"NativeBase.Icon\": {\n color: variables.btnPrimaryBg\n },\n \"NativeBase.IconNB\": {\n color: variables.btnPrimaryBg\n }\n };\n const successCommon = {\n \"NativeBase.Text\": {\n color: variables.btnSuccessBg\n },\n \"NativeBase.Icon\": {\n color: variables.btnSuccessBg\n },\n \"NativeBase.IconNB\": {\n color: variables.btnSuccessBg\n }\n };\n const infoCommon = {\n \"NativeBase.Text\": {\n color: variables.btnInfoBg\n },\n \"NativeBase.Icon\": {\n color: variables.btnInfoBg\n },\n \"NativeBase.IconNB\": {\n color: variables.btnInfoBg\n }\n };\n const warningCommon = {\n \"NativeBase.Text\": {\n color: variables.btnWarningBg\n },\n \"NativeBase.Icon\": {\n color: variables.btnWarningBg\n },\n \"NativeBase.IconNB\": {\n color: variables.btnWarningBg\n }\n };\n const dangerCommon = {\n \"NativeBase.Text\": {\n color: variables.btnDangerBg\n },\n \"NativeBase.Icon\": {\n color: variables.btnDangerBg\n },\n \"NativeBase.IconNB\": {\n color: variables.btnDangerBg\n }\n };\n const buttonTheme = {\n \".disabled\": {\n \".transparent\": {\n backgroundColor: null,\n \"NativeBase.Text\": {\n color: variables.btnDisabledBg\n },\n \"NativeBase.Icon\": {\n color: variables.btnDisabledBg\n },\n \"NativeBase.IconNB\": {\n color: variables.btnDisabledBg\n }\n },\n \"NativeBase.Icon\": {\n color: variables.brandLight\n },\n \"NativeBase.IconNB\": {\n color: variables.brandLight\n },\n backgroundColor: variables.btnDisabledBg\n },\n \".bordered\": {\n \".dark\": {\n ...darkCommon,\n backgroundColor: \"transparent\",\n borderColor: variables.brandDark,\n borderWidth: variables.borderWidth * 2\n },\n \".light\": {\n ...lightCommon,\n backgroundColor: \"transparent\",\n borderColor: variables.brandLight,\n borderWidth: variables.borderWidth * 2\n },\n \".primary\": {\n ...primaryCommon,\n backgroundColor: \"transparent\",\n borderColor: variables.btnPrimaryBg,\n borderWidth: variables.borderWidth * 2\n },\n \".success\": {\n ...successCommon,\n backgroundColor: \"transparent\",\n borderColor: variables.btnSuccessBg,\n borderWidth: variables.borderWidth * 2\n },\n \".info\": {\n ...infoCommon,\n backgroundColor: \"transparent\",\n borderColor: variables.btnInfoBg,\n borderWidth: variables.borderWidth * 2\n },\n \".warning\": {\n ...warningCommon,\n backgroundColor: \"transparent\",\n borderColor: variables.btnWarningBg,\n borderWidth: variables.borderWidth * 2\n },\n \".danger\": {\n ...dangerCommon,\n backgroundColor: \"transparent\",\n borderColor: variables.btnDangerBg,\n borderWidth: variables.borderWidth * 2\n },\n \".disabled\": {\n backgroundColor: null,\n borderColor: variables.btnDisabledBg,\n borderWidth: variables.borderWidth * 2,\n \"NativeBase.Text\": {\n color: variables.btnDisabledBg\n }\n },\n ...primaryCommon,\n borderWidth: variables.borderWidth * 2,\n elevation: null,\n shadowColor: null,\n shadowOffset: null,\n shadowOpacity: null,\n shadowRadius: null,\n backgroundColor: \"transparent\"\n },\n\n \".dark\": {\n \".bordered\": {\n ...darkCommon\n },\n backgroundColor: variables.brandDark\n },\n \".light\": {\n \".transparent\": {\n ...lightCommon,\n backgroundColor: null\n },\n \".bordered\": {\n ...lightCommon\n },\n ...darkCommon,\n backgroundColor: variables.brandLight\n },\n\n \".primary\": {\n \".bordered\": {\n ...primaryCommon\n },\n backgroundColor: variables.btnPrimaryBg\n },\n\n \".success\": {\n \".bordered\": {\n ...successCommon\n },\n backgroundColor: variables.btnSuccessBg\n },\n\n \".info\": {\n \".bordered\": {\n ...infoCommon\n },\n backgroundColor: variables.btnInfoBg\n },\n\n \".warning\": {\n \".bordered\": {\n ...warningCommon\n },\n backgroundColor: variables.btnWarningBg\n },\n\n \".danger\": {\n \".bordered\": {\n ...dangerCommon\n },\n backgroundColor: variables.btnDangerBg\n },\n\n \".block\": {\n justifyContent: \"center\",\n alignSelf: \"stretch\"\n },\n\n \".full\": {\n justifyContent: \"center\",\n alignSelf: \"stretch\",\n borderRadius: 0\n },\n\n \".rounded\": {\n // paddingHorizontal: variables.buttonPadding + 20,\n borderRadius: variables.borderRadiusLarge\n },\n\n \".transparent\": {\n backgroundColor: \"transparent\",\n elevation: 0,\n shadowColor: null,\n shadowOffset: null,\n shadowRadius: null,\n shadowOpacity: null,\n ...primaryCommon,\n \".dark\": {\n ...darkCommon,\n backgroundColor: null\n },\n \".danger\": {\n ...dangerCommon,\n backgroundColor: null\n },\n \".warning\": {\n ...warningCommon,\n backgroundColor: null\n },\n \".info\": {\n ...infoCommon,\n backgroundColor: null\n },\n \".primary\": {\n ...primaryCommon,\n backgroundColor: null\n },\n \".success\": {\n ...successCommon,\n backgroundColor: null\n },\n \".light\": {\n ...lightCommon,\n backgroundColor: null\n },\n \".disabled\": {\n backgroundColor: \"transparent\",\n borderColor: variables.btnDisabledBg,\n borderWidth: variables.borderWidth * 2,\n \"NativeBase.Text\": {\n color: variables.btnDisabledBg\n },\n \"NativeBase.Icon\": {\n color: variables.btnDisabledBg\n },\n \"NativeBase.IconNB\": {\n color: variables.btnDisabledBg\n }\n }\n },\n\n \".small\": {\n height: 30,\n \"NativeBase.Text\": {\n fontSize: 14\n },\n \"NativeBase.Icon\": {\n fontSize: 20,\n paddingTop: 0\n },\n \"NativeBase.IconNB\": {\n fontSize: 20,\n paddingTop: 0\n }\n },\n\n \".large\": {\n height: 60,\n \"NativeBase.Text\": {\n fontSize: 22,\n }\n },\n\n \".capitalize\": {},\n\n \".vertical\": {\n flexDirection: \"column\",\n height: null\n },\n\n \"NativeBase.Text\": {\n fontFamily: variables.btnFontFamily,\n marginLeft: 0,\n marginRight: 0,\n color: variables.inverseTextColor,\n fontSize: variables.btnTextSize,\n paddingHorizontal: 16,\n backgroundColor: \"transparent\"\n // childPosition: 1\n },\n\n \"NativeBase.Icon\": {\n color: variables.inverseTextColor,\n fontSize: 24,\n marginHorizontal: 16,\n paddingTop: platform === \"ios\" ? 2 : undefined\n },\n \"NativeBase.IconNB\": {\n color: variables.inverseTextColor,\n fontSize: 24,\n marginHorizontal: 16,\n paddingTop: platform === \"ios\" ? 2 : undefined\n },\n\n \".iconLeft\": {\n \"NativeBase.Text\": {\n marginLeft: 0\n },\n \"NativeBase.IconNB\": {\n marginRight: 0,\n marginLeft: 16\n },\n \"NativeBase.Icon\": {\n marginRight: 0,\n marginLeft: 16\n }\n },\n \".iconRight\": {\n \"NativeBase.Text\": {\n marginRight: 0\n },\n \"NativeBase.IconNB\": {\n marginLeft: 0,\n marginRight: 16\n },\n \"NativeBase.Icon\": {\n marginLeft: 0,\n marginRight: 16\n }\n },\n \".picker\": {\n \"NativeBase.Text\": {\n \".note\": {\n fontSize: 16,\n lineHeight: null\n }\n }\n },\n\n paddingVertical: variables.buttonPadding,\n // paddingHorizontal: variables.buttonPadding + 10,\n backgroundColor: variables.btnPrimaryBg,\n borderRadius: variables.borderRadiusBase,\n borderColor: variables.btnPrimaryBg,\n borderWidth: null,\n height: 45,\n alignSelf: \"flex-start\",\n flexDirection: \"row\",\n elevation: 2,\n shadowColor: platformStyle === \"material\" ? variables.brandDark : undefined,\n shadowOffset:\n platformStyle === \"material\" ? { width: 0, height: 2 } : undefined,\n shadowOpacity: platformStyle === \"material\" ? 0.2 : undefined,\n shadowRadius: platformStyle === \"material\" ? 1.2 : undefined,\n alignItems: \"center\",\n justifyContent: \"space-between\"\n };\n return buttonTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Button.js"],"names":["variables","variable","platformStyle","platform","darkCommon","color","brandDark","lightCommon","brandLight","primaryCommon","btnPrimaryBg","successCommon","btnSuccessBg","infoCommon","btnInfoBg","warningCommon","btnWarningBg","dangerCommon","btnDangerBg","buttonTheme","backgroundColor","btnDisabledBg","borderColor","borderWidth","elevation","shadowColor","shadowOffset","shadowOpacity","shadowRadius","justifyContent","alignSelf","borderRadius","borderRadiusLarge","height","fontSize","paddingTop","flexDirection","fontFamily","btnFontFamily","marginLeft","marginRight","inverseTextColor","btnTextSize","paddingHorizontal","marginHorizontal","undefined","lineHeight","paddingVertical","buttonPadding","borderRadiusBase","width","alignItems"],"mappings":"yRAAA,iD,oJAEe,UAA0B,IAAzBA,UAA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B,CAA+B,GAA/B,CAAqC2C,SAjTlC,CAkTlBjB,aAAc1B,gBAAkB,UAAlB,CAA+B,GAA/B,CAAqC2C,SAlTjC,CAmTlBM,WAAY,QAnTM,CAoTlBtB,eAAgB,eApTE,CAApB,CAsTA,MAAOV,YAAP,CACD,C","file":"Button.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const platformStyle = variables.platformStyle;\n const platform = variables.platform;\n const darkCommon = {\n \"NativeBase.Text\": {\n color: variables.brandDark\n },\n \"NativeBase.Icon\": {\n color: variables.brandDark\n },\n \"NativeBase.IconNB\": {\n color: variables.brandDark\n }\n };\n const lightCommon = {\n \"NativeBase.Text\": {\n color: variables.brandLight\n },\n \"NativeBase.Icon\": {\n color: variables.brandLight\n },\n \"NativeBase.IconNB\": {\n color: variables.brandLight\n }\n };\n const primaryCommon = {\n \"NativeBase.Text\": {\n color: variables.btnPrimaryBg\n },\n \"NativeBase.Icon\": {\n color: variables.btnPrimaryBg\n },\n \"NativeBase.IconNB\": {\n color: variables.btnPrimaryBg\n }\n };\n const successCommon = {\n \"NativeBase.Text\": {\n color: variables.btnSuccessBg\n },\n \"NativeBase.Icon\": {\n color: variables.btnSuccessBg\n },\n \"NativeBase.IconNB\": {\n color: variables.btnSuccessBg\n }\n };\n const infoCommon = {\n \"NativeBase.Text\": {\n color: variables.btnInfoBg\n },\n \"NativeBase.Icon\": {\n color: variables.btnInfoBg\n },\n \"NativeBase.IconNB\": {\n color: variables.btnInfoBg\n }\n };\n const warningCommon = {\n \"NativeBase.Text\": {\n color: variables.btnWarningBg\n },\n \"NativeBase.Icon\": {\n color: variables.btnWarningBg\n },\n \"NativeBase.IconNB\": {\n color: variables.btnWarningBg\n }\n };\n const dangerCommon = {\n \"NativeBase.Text\": {\n color: variables.btnDangerBg\n },\n \"NativeBase.Icon\": {\n color: variables.btnDangerBg\n },\n \"NativeBase.IconNB\": {\n color: variables.btnDangerBg\n }\n };\n const buttonTheme = {\n \".disabled\": {\n \".transparent\": {\n backgroundColor: null,\n \"NativeBase.Text\": {\n color: variables.btnDisabledBg\n },\n \"NativeBase.Icon\": {\n color: variables.btnDisabledBg\n },\n \"NativeBase.IconNB\": {\n color: variables.btnDisabledBg\n }\n },\n \"NativeBase.Icon\": {\n color: variables.brandLight\n },\n \"NativeBase.IconNB\": {\n color: variables.brandLight\n },\n backgroundColor: variables.btnDisabledBg\n },\n \".bordered\": {\n \".dark\": {\n ...darkCommon,\n backgroundColor: \"transparent\",\n borderColor: variables.brandDark,\n borderWidth: variables.borderWidth * 2\n },\n \".light\": {\n ...lightCommon,\n backgroundColor: \"transparent\",\n borderColor: variables.brandLight,\n borderWidth: variables.borderWidth * 2\n },\n \".primary\": {\n ...primaryCommon,\n backgroundColor: \"transparent\",\n borderColor: variables.btnPrimaryBg,\n borderWidth: variables.borderWidth * 2\n },\n \".success\": {\n ...successCommon,\n backgroundColor: \"transparent\",\n borderColor: variables.btnSuccessBg,\n borderWidth: variables.borderWidth * 2\n },\n \".info\": {\n ...infoCommon,\n backgroundColor: \"transparent\",\n borderColor: variables.btnInfoBg,\n borderWidth: variables.borderWidth * 2\n },\n \".warning\": {\n ...warningCommon,\n backgroundColor: \"transparent\",\n borderColor: variables.btnWarningBg,\n borderWidth: variables.borderWidth * 2\n },\n \".danger\": {\n ...dangerCommon,\n backgroundColor: \"transparent\",\n borderColor: variables.btnDangerBg,\n borderWidth: variables.borderWidth * 2\n },\n \".disabled\": {\n backgroundColor: null,\n borderColor: variables.btnDisabledBg,\n borderWidth: variables.borderWidth * 2,\n \"NativeBase.Text\": {\n color: variables.btnDisabledBg\n }\n },\n ...primaryCommon,\n borderWidth: variables.borderWidth * 2,\n elevation: null,\n shadowColor: null,\n shadowOffset: null,\n shadowOpacity: null,\n shadowRadius: null,\n backgroundColor: \"transparent\"\n },\n\n \".dark\": {\n \".bordered\": {\n ...darkCommon\n },\n backgroundColor: variables.brandDark\n },\n \".light\": {\n \".transparent\": {\n ...lightCommon,\n backgroundColor: null\n },\n \".bordered\": {\n ...lightCommon\n },\n ...darkCommon,\n backgroundColor: variables.brandLight\n },\n\n \".primary\": {\n \".bordered\": {\n ...primaryCommon\n },\n backgroundColor: variables.btnPrimaryBg\n },\n\n \".success\": {\n \".bordered\": {\n ...successCommon\n },\n backgroundColor: variables.btnSuccessBg\n },\n\n \".info\": {\n \".bordered\": {\n ...infoCommon\n },\n backgroundColor: variables.btnInfoBg\n },\n\n \".warning\": {\n \".bordered\": {\n ...warningCommon\n },\n backgroundColor: variables.btnWarningBg\n },\n\n \".danger\": {\n \".bordered\": {\n ...dangerCommon\n },\n backgroundColor: variables.btnDangerBg\n },\n\n \".block\": {\n justifyContent: \"center\",\n alignSelf: \"stretch\"\n },\n\n \".full\": {\n justifyContent: \"center\",\n alignSelf: \"stretch\",\n borderRadius: 0\n },\n\n \".rounded\": {\n // paddingHorizontal: variables.buttonPadding + 20,\n borderRadius: variables.borderRadiusLarge\n },\n\n \".transparent\": {\n backgroundColor: \"transparent\",\n elevation: 0,\n shadowColor: null,\n shadowOffset: null,\n shadowRadius: null,\n shadowOpacity: null,\n ...primaryCommon,\n \".dark\": {\n ...darkCommon,\n backgroundColor: null\n },\n \".danger\": {\n ...dangerCommon,\n backgroundColor: null\n },\n \".warning\": {\n ...warningCommon,\n backgroundColor: null\n },\n \".info\": {\n ...infoCommon,\n backgroundColor: null\n },\n \".primary\": {\n ...primaryCommon,\n backgroundColor: null\n },\n \".success\": {\n ...successCommon,\n backgroundColor: null\n },\n \".light\": {\n ...lightCommon,\n backgroundColor: null\n },\n \".disabled\": {\n backgroundColor: \"transparent\",\n borderColor: variables.btnDisabledBg,\n borderWidth: variables.borderWidth * 2,\n \"NativeBase.Text\": {\n color: variables.btnDisabledBg\n },\n \"NativeBase.Icon\": {\n color: variables.btnDisabledBg\n },\n \"NativeBase.IconNB\": {\n color: variables.btnDisabledBg\n }\n }\n },\n\n \".small\": {\n height: 30,\n \"NativeBase.Text\": {\n fontSize: 14\n },\n \"NativeBase.Icon\": {\n fontSize: 20,\n paddingTop: 0\n },\n \"NativeBase.IconNB\": {\n fontSize: 20,\n paddingTop: 0\n }\n },\n\n \".large\": {\n height: 60,\n \"NativeBase.Text\": {\n fontSize: 22,\n }\n },\n\n \".capitalize\": {},\n\n \".vertical\": {\n flexDirection: \"column\",\n height: null\n },\n\n \"NativeBase.Text\": {\n fontFamily: variables.btnFontFamily,\n marginLeft: 0,\n marginRight: 0,\n color: variables.inverseTextColor,\n fontSize: variables.btnTextSize,\n paddingHorizontal: 16,\n backgroundColor: \"transparent\"\n // childPosition: 1\n },\n\n \"NativeBase.Icon\": {\n color: variables.inverseTextColor,\n fontSize: 24,\n marginHorizontal: 16,\n paddingTop: platform === \"ios\" ? 2 : undefined\n },\n \"NativeBase.IconNB\": {\n color: variables.inverseTextColor,\n fontSize: 24,\n marginHorizontal: 16,\n paddingTop: platform === \"ios\" ? 2 : undefined\n },\n\n \".iconLeft\": {\n \"NativeBase.Text\": {\n marginLeft: 0\n },\n \"NativeBase.IconNB\": {\n marginRight: 0,\n marginLeft: 16\n },\n \"NativeBase.Icon\": {\n marginRight: 0,\n marginLeft: 16\n }\n },\n \".iconRight\": {\n \"NativeBase.Text\": {\n marginRight: 0\n },\n \"NativeBase.IconNB\": {\n marginLeft: 0,\n marginRight: 16\n },\n \"NativeBase.Icon\": {\n marginLeft: 0,\n marginRight: 16\n }\n },\n \".picker\": {\n \"NativeBase.Text\": {\n \".note\": {\n fontSize: 16,\n lineHeight: null\n }\n }\n },\n\n paddingVertical: variables.buttonPadding,\n // paddingHorizontal: variables.buttonPadding + 10,\n backgroundColor: variables.btnPrimaryBg,\n borderRadius: variables.borderRadiusBase,\n borderColor: variables.btnPrimaryBg,\n borderWidth: null,\n height: 45,\n alignSelf: \"flex-start\",\n flexDirection: \"row\",\n elevation: 2,\n shadowColor: platformStyle === \"material\" ? variables.brandDark : undefined,\n shadowOffset:\n platformStyle === \"material\" ? { width: 0, height: 2 } : undefined,\n shadowOpacity: platformStyle === \"material\" ? 0.2 : undefined,\n shadowRadius: platformStyle === \"material\" ? 1.2 : undefined,\n alignItems: \"center\",\n justifyContent: \"space-between\"\n };\n return buttonTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Card.js b/dist/src/theme/components/Card.js index e7e465560..c81095449 100644 --- a/dist/src/theme/components/Card.js +++ b/dist/src/theme/components/Card.js @@ -1,37 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var cardTheme={ -".transparent":{ -shadowColor:null, -shadowOffset:null, -shadowOpacity:null, -shadowRadius:null, -elevation:null, -backgroundColor:"transparent", -borderWidth:0}, - -".noShadow":{ -shadowColor:null, -shadowOffset:null, -shadowOpacity:null, -elevation:null}, - -marginVertical:5, -marginHorizontal:2, -flex:1, -borderWidth:variables.borderWidth, -borderRadius:variables.cardBorderRadius, -borderColor:variables.cardBorderColor, -flexWrap:"nowrap", -backgroundColor:variables.cardDefaultBg, -shadowColor:"#000", -shadowOffset:{width:0,height:2}, -shadowOpacity:0.1, -shadowRadius:1.5, -elevation:3}; - - -return cardTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var cardTheme={".transparent":{shadowColor:null,shadowOffset:null,shadowOpacity:null,shadowRadius:null,elevation:null,backgroundColor:"transparent",borderWidth:0},".noShadow":{shadowColor:null,shadowOffset:null,shadowOpacity:null,elevation:null},marginVertical:5,marginHorizontal:2,flex:1,borderWidth:variables.borderWidth,borderRadius:variables.cardBorderRadius,borderColor:variables.cardBorderColor,flexWrap:"nowrap",backgroundColor:variables.cardDefaultBg,shadowColor:"#000",shadowOffset:{width:0,height:2},shadowOpacity:0.1,shadowRadius:1.5,elevation:3};return cardTheme;}; //# sourceMappingURL=Card.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Card.js.map b/dist/src/theme/components/Card.js.map index 70f0d36c4..ea4324672 100644 --- a/dist/src/theme/components/Card.js.map +++ b/dist/src/theme/components/Card.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Card.js"],"names":["variables","variable","cardTheme","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","backgroundColor","borderWidth","marginVertical","marginHorizontal","flex","borderRadius","cardBorderRadius","borderColor","cardBorderColor","flexWrap","cardDefaultBg","width","height"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,WAAY;AAChB,eAAgB;AACdC,YAAa,IADC;AAEdC,aAAc,IAFA;AAGdC,cAAe,IAHD;AAIdC,aAAc,IAJA;AAKdC,UAAW,IALG;AAMdC,gBAAiB,aANH;AAOdC,YAAa,CAPC,CADA;;AAUhB,YAAa;AACXN,YAAa,IADF;AAEXC,aAAc,IAFH;AAGXC,cAAe,IAHJ;AAIXE,UAAW,IAJA,CAVG;;AAgBhBG,eAAgB,CAhBA;AAiBhBC,iBAAkB,CAjBF;AAkBhBC,KAAM,CAlBU;AAmBhBH,YAAaT,UAAUS,WAnBP;AAoBhBI,aAAcb,UAAUc,gBApBR;AAqBhBC,YAAaf,UAAUgB,eArBP;AAsBhBC,SAAU,QAtBM;AAuBhBT,gBAAiBR,UAAUkB,aAvBX;AAwBhBf,YAAa,MAxBG;AAyBhBC,aAAc,CAAEe,MAAO,CAAT,CAAYC,OAAQ,CAApB,CAzBE;AA0BhBf,cAAe,GA1BC;AA2BhBC,aAAc,GA3BE;AA4BhBC,UAAW,CA5BK,CAAlB;;;AA+BA,MAAOL,UAAP;AACD,C","file":"Card.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const cardTheme = {\n \".transparent\": {\n shadowColor: null,\n shadowOffset: null,\n shadowOpacity: null,\n shadowRadius: null,\n elevation: null,\n backgroundColor: \"transparent\",\n borderWidth: 0\n },\n \".noShadow\": {\n shadowColor: null,\n shadowOffset: null,\n shadowOpacity: null,\n elevation: null\n },\n marginVertical: 5,\n marginHorizontal: 2,\n flex: 1,\n borderWidth: variables.borderWidth,\n borderRadius: variables.cardBorderRadius,\n borderColor: variables.cardBorderColor,\n flexWrap: \"nowrap\",\n backgroundColor: variables.cardDefaultBg,\n shadowColor: \"#000\",\n shadowOffset: { width: 0, height: 2 },\n shadowOpacity: 0.1,\n shadowRadius: 1.5,\n elevation: 3\n };\n\n return cardTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Card.js"],"names":["variables","variable","cardTheme","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","backgroundColor","borderWidth","marginVertical","marginHorizontal","flex","borderRadius","cardBorderRadius","borderColor","cardBorderColor","flexWrap","cardDefaultBg","width","height"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,WAAY,CAChB,eAAgB,CACdC,YAAa,IADC,CAEdC,aAAc,IAFA,CAGdC,cAAe,IAHD,CAIdC,aAAc,IAJA,CAKdC,UAAW,IALG,CAMdC,gBAAiB,aANH,CAOdC,YAAa,CAPC,CADA,CAUhB,YAAa,CACXN,YAAa,IADF,CAEXC,aAAc,IAFH,CAGXC,cAAe,IAHJ,CAIXE,UAAW,IAJA,CAVG,CAgBhBG,eAAgB,CAhBA,CAiBhBC,iBAAkB,CAjBF,CAkBhBC,KAAM,CAlBU,CAmBhBH,YAAaT,UAAUS,WAnBP,CAoBhBI,aAAcb,UAAUc,gBApBR,CAqBhBC,YAAaf,UAAUgB,eArBP,CAsBhBC,SAAU,QAtBM,CAuBhBT,gBAAiBR,UAAUkB,aAvBX,CAwBhBf,YAAa,MAxBG,CAyBhBC,aAAc,CAAEe,MAAO,CAAT,CAAYC,OAAQ,CAApB,CAzBE,CA0BhBf,cAAe,GA1BC,CA2BhBC,aAAc,GA3BE,CA4BhBC,UAAW,CA5BK,CAAlB,CA+BA,MAAOL,UAAP,CACD,C","file":"Card.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const cardTheme = {\n \".transparent\": {\n shadowColor: null,\n shadowOffset: null,\n shadowOpacity: null,\n shadowRadius: null,\n elevation: null,\n backgroundColor: \"transparent\",\n borderWidth: 0\n },\n \".noShadow\": {\n shadowColor: null,\n shadowOffset: null,\n shadowOpacity: null,\n elevation: null\n },\n marginVertical: 5,\n marginHorizontal: 2,\n flex: 1,\n borderWidth: variables.borderWidth,\n borderRadius: variables.cardBorderRadius,\n borderColor: variables.cardBorderColor,\n flexWrap: \"nowrap\",\n backgroundColor: variables.cardDefaultBg,\n shadowColor: \"#000\",\n shadowOffset: { width: 0, height: 2 },\n shadowOpacity: 0.1,\n shadowRadius: 1.5,\n elevation: 3\n };\n\n return cardTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/CardItem.js b/dist/src/theme/components/CardItem.js index eecac5162..58a873f97 100644 --- a/dist/src/theme/components/CardItem.js +++ b/dist/src/theme/components/CardItem.js @@ -1,195 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var platform=variables.platform; -var transparentBtnCommon={ -"NativeBase.Text":{ -fontSize:variables.DefaultFontSize-3, -color:variables.sTabBarActiveTextColor}, - -"NativeBase.Icon":{ -fontSize:variables.iconFontSize-10, -color:variables.sTabBarActiveTextColor, -marginHorizontal:null}, - -"NativeBase.IconNB":{ -fontSize:variables.iconFontSize-10, -color:variables.sTabBarActiveTextColor}, - -paddingVertical:null, -paddingHorizontal:null}; - - -var cardItemTheme={ -"NativeBase.Left":{ -"NativeBase.Body":{ -"NativeBase.Text":{ -".note":{ -color:variables.listNoteColor, -fontWeight:"400", -marginRight:20}}, - - -flex:1, -marginLeft:10, -alignItems:null}, - -"NativeBase.Icon":{ -fontSize:variables.iconFontSize}, - -"NativeBase.IconNB":{ -fontSize:variables.iconFontSize}, - -"NativeBase.Text":{ -marginLeft:10, -alignSelf:"center"}, - -"NativeBase.Button":{ -".transparent":_extends({}, -transparentBtnCommon,{ -paddingRight:variables.cardItemPadding+5})}, - - -flex:1, -flexDirection:"row", -alignItems:"center"}, - -".content":{ -"NativeBase.Text":{ -color:platform==="ios"?"#555":"#222", -fontSize:variables.DefaultFontSize-2}}, - - -".cardBody":{ -padding:-5, -"NativeBase.Text":{ -marginTop:5}}, - - -"NativeBase.Body":{ -"NativeBase.Text":{ -".note":{ -color:variables.listNoteColor, -fontWeight:"200", -marginRight:20}}, - - -"NativeBase.Button":{ -".transparent":_extends({}, -transparentBtnCommon,{ -paddingRight:variables.cardItemPadding+5, -alignSelf:"stretch"})}, - - -flex:1, -alignSelf:"stretch", -alignItems:"flex-start"}, - -"NativeBase.Right":{ -"NativeBase.Badge":{ -alignSelf:null}, - -"NativeBase.Button":{ -".transparent":_extends({}, -transparentBtnCommon), - -alignSelf:null}, - -"NativeBase.Icon":{ -alignSelf:null, -fontSize:variables.iconFontSize-8, -color:variables.cardBorderColor}, - -"NativeBase.IconNB":{ -alignSelf:null, -fontSize:variables.iconFontSize-8, -color:variables.cardBorderColor}, - -"NativeBase.Text":{ -fontSize:variables.DefaultFontSize-1, -alignSelf:null}, - -"NativeBase.Thumbnail":{ -alignSelf:null}, - -"NativeBase.Image":{ -alignSelf:null}, - -"NativeBase.Radio":{ -alignSelf:null}, - -"NativeBase.Checkbox":{ -alignSelf:null}, - -"NativeBase.Switch":{ -alignSelf:null}, - -flex:0.8}, - -".header":{ -"NativeBase.Text":{ -fontSize:16, -fontWeight:platform==="ios"?"600":"500"}, - -".bordered":{ -"NativeBase.Text":{ -color:variables.brandPrimary, -fontWeight:platform==="ios"?"600":"500"}, - -borderBottomWidth:variables.borderWidth}, - -borderBottomWidth:null, -paddingVertical:variables.cardItemPadding+5}, - -".footer":{ -"NativeBase.Text":{ -fontSize:16, -fontWeight:platform==="ios"?"600":"500"}, - -".bordered":{ -"NativeBase.Text":{ -color:variables.brandPrimary, -fontWeight:platform==="ios"?"600":"500"}, - -borderTopWidth:variables.borderWidth}, - -borderBottomWidth:null}, - -"NativeBase.Text":{ -".note":{ -color:variables.listNoteColor, -fontWeight:"200"}}, - - -"NativeBase.Icon":{ -width:variables.iconFontSize+5, -fontSize:variables.iconFontSize-2}, - -"NativeBase.IconNB":{ -width:variables.iconFontSize+5, -fontSize:variables.iconFontSize-2}, - -".bordered":{ -borderBottomWidth:_reactNative.StyleSheet.hairlineWidth, -borderColor:variables.cardBorderColor}, - -".first":{ -borderTopLeftRadius:variables.cardBorderRadius, -borderTopRightRadius:variables.cardBorderRadius}, - -".last":{ -borderBottomLeftRadius:variables.cardBorderRadius, -borderBottomRightRadius:variables.cardBorderRadius}, - -flexDirection:"row", -alignItems:"center", -borderRadius:2, -padding:variables.cardItemPadding+5, -paddingVertical:variables.cardItemPadding, -backgroundColor:variables.cardDefaultBg}; - - -return cardItemTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var transparentBtnCommon={"NativeBase.Text":{fontSize:variables.DefaultFontSize-3,color:variables.sTabBarActiveTextColor},"NativeBase.Icon":{fontSize:variables.iconFontSize-10,color:variables.sTabBarActiveTextColor,marginHorizontal:null},"NativeBase.IconNB":{fontSize:variables.iconFontSize-10,color:variables.sTabBarActiveTextColor},paddingVertical:null,paddingHorizontal:null};var cardItemTheme={"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"400",marginRight:20}},flex:1,marginLeft:10,alignItems:null},"NativeBase.Icon":{fontSize:variables.iconFontSize},"NativeBase.IconNB":{fontSize:variables.iconFontSize},"NativeBase.Text":{marginLeft:10,alignSelf:"center"},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon,{paddingRight:variables.cardItemPadding+5})},flex:1,flexDirection:"row",alignItems:"center"},".content":{"NativeBase.Text":{color:platform==="ios"?"#555":"#222",fontSize:variables.DefaultFontSize-2}},".cardBody":{padding:-5,"NativeBase.Text":{marginTop:5}},"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200",marginRight:20}},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon,{paddingRight:variables.cardItemPadding+5,alignSelf:"stretch"})},flex:1,alignSelf:"stretch",alignItems:"flex-start"},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.Button":{".transparent":_extends({},transparentBtnCommon),alignSelf:null},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:variables.cardBorderColor},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:variables.cardBorderColor},"NativeBase.Text":{fontSize:variables.DefaultFontSize-1,alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},flex:0.8},".header":{"NativeBase.Text":{fontSize:16,fontWeight:platform==="ios"?"600":"500"},".bordered":{"NativeBase.Text":{color:variables.brandPrimary,fontWeight:platform==="ios"?"600":"500"},borderBottomWidth:variables.borderWidth},borderBottomWidth:null,paddingVertical:variables.cardItemPadding+5},".footer":{"NativeBase.Text":{fontSize:16,fontWeight:platform==="ios"?"600":"500"},".bordered":{"NativeBase.Text":{color:variables.brandPrimary,fontWeight:platform==="ios"?"600":"500"},borderTopWidth:variables.borderWidth},borderBottomWidth:null},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"}},"NativeBase.Icon":{width:variables.iconFontSize+5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize+5,fontSize:variables.iconFontSize-2},".bordered":{borderBottomWidth:_reactNative.StyleSheet.hairlineWidth,borderColor:variables.cardBorderColor},".first":{borderTopLeftRadius:variables.cardBorderRadius,borderTopRightRadius:variables.cardBorderRadius},".last":{borderBottomLeftRadius:variables.cardBorderRadius,borderBottomRightRadius:variables.cardBorderRadius},flexDirection:"row",alignItems:"center",borderRadius:2,padding:variables.cardItemPadding+5,paddingVertical:variables.cardItemPadding,backgroundColor:variables.cardDefaultBg};return cardItemTheme;}; //# sourceMappingURL=CardItem.js.map \ No newline at end of file diff --git a/dist/src/theme/components/CardItem.js.map b/dist/src/theme/components/CardItem.js.map index d5074e90e..ca848e2dd 100644 --- a/dist/src/theme/components/CardItem.js.map +++ b/dist/src/theme/components/CardItem.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/CardItem.js"],"names":["variables","variable","platform","transparentBtnCommon","fontSize","DefaultFontSize","color","sTabBarActiveTextColor","iconFontSize","marginHorizontal","paddingVertical","paddingHorizontal","cardItemTheme","listNoteColor","fontWeight","marginRight","flex","marginLeft","alignItems","alignSelf","paddingRight","cardItemPadding","flexDirection","padding","marginTop","cardBorderColor","brandPrimary","borderBottomWidth","borderWidth","borderTopWidth","width","StyleSheet","hairlineWidth","borderColor","borderTopLeftRadius","cardBorderRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderRadius","backgroundColor","cardDefaultBg"],"mappings":"yRAAA;AACA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,UAAWF,UAAUE,QAA3B;AACA,GAAMC,sBAAuB;AAC3B,kBAAmB;AACjBC,SAAUJ,UAAUK,eAAV,CAA4B,CADrB;AAEjBC,MAAON,UAAUO,sBAFA,CADQ;;AAK3B,kBAAmB;AACjBH,SAAUJ,UAAUQ,YAAV,CAAyB,EADlB;AAEjBF,MAAON,UAAUO,sBAFA;AAGjBE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ADA;AAEjBZ,WAAYZ,WAAa,KAAb,CAAqB,KAArB,CAA6B,KAFxB,CADR;;AAKX2B,eAAgB7B,UAAU4B,WALf,CALJ;;AAYTD,kBAAmB,IAZV,CAzHS;;AAuIpB,kBAAmB;AACjB,QAAS;AACPrB,MAAON,UAAUa,aADV;AAEPC,WAAY,KAFL,CADQ,CAvIC;;;AA6IpB,kBAAmB;AACjBgB,MAAO9B,UAAUQ,YAAV,CAAyB,CADf;AAEjBJ,SAAUJ,UAAUQ,YAAV,CAAyB,CAFlB,CA7IC;;AAiJpB,oBAAqB;AACnBsB,MAAO9B,UAAUQ,YAAV,CAAyB,CADb;AAEnBJ,SAAUJ,UAAUQ,YAAV,CAAyB,CAFhB,CAjJD;;AAqJpB,YAAa;AACXmB,kBAAmBI,wBAAWC,aADnB;AAEXC,YAAajC,UAAUyB,eAFZ,CArJO;;AAyJpB,SAAU;AACRS,oBAAqBlC,UAAUmC,gBADvB;AAERC,qBAAsBpC,UAAUmC,gBAFxB,CAzJU;;AA6JpB,QAAS;AACPE,uBAAwBrC,UAAUmC,gBAD3B;AAEPG,wBAAyBtC,UAAUmC,gBAF5B,CA7JW;;AAiKpBb,cAAe,KAjKK;AAkKpBJ,WAAY,QAlKQ;AAmKpBqB,aAAc,CAnKM;AAoKpBhB,QAASvB,UAAUqB,eAAV,CAA4B,CApKjB;AAqKpBX,gBAAiBV,UAAUqB,eArKP;AAsKpBmB,gBAAiBxC,UAAUyC,aAtKP,CAAtB;;;AAyKA,MAAO7B,cAAP;AACD,C","file":"CardItem.js","sourcesContent":["import { StyleSheet } from \"react-native\";\nimport variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const platform = variables.platform;\n const transparentBtnCommon = {\n \"NativeBase.Text\": {\n fontSize: variables.DefaultFontSize - 3,\n color: variables.sTabBarActiveTextColor\n },\n \"NativeBase.Icon\": {\n fontSize: variables.iconFontSize - 10,\n color: variables.sTabBarActiveTextColor,\n marginHorizontal: null\n },\n \"NativeBase.IconNB\": {\n fontSize: variables.iconFontSize - 10,\n color: variables.sTabBarActiveTextColor\n },\n paddingVertical: null,\n paddingHorizontal: null\n };\n\n const cardItemTheme = {\n \"NativeBase.Left\": {\n \"NativeBase.Body\": {\n \"NativeBase.Text\": {\n \".note\": {\n color: variables.listNoteColor,\n fontWeight: \"400\",\n marginRight: 20\n }\n },\n flex: 1,\n marginLeft: 10,\n alignItems: null\n },\n \"NativeBase.Icon\": {\n fontSize: variables.iconFontSize\n },\n \"NativeBase.IconNB\": {\n fontSize: variables.iconFontSize\n },\n \"NativeBase.Text\": {\n marginLeft: 10,\n alignSelf: \"center\"\n },\n \"NativeBase.Button\": {\n \".transparent\": {\n ...transparentBtnCommon,\n paddingRight: variables.cardItemPadding + 5\n }\n },\n flex: 1,\n flexDirection: \"row\",\n alignItems: \"center\"\n },\n \".content\": {\n \"NativeBase.Text\": {\n color: platform === \"ios\" ? \"#555\" : \"#222\",\n fontSize: variables.DefaultFontSize - 2\n }\n },\n \".cardBody\": {\n padding: -5,\n \"NativeBase.Text\": {\n marginTop: 5\n }\n },\n \"NativeBase.Body\": {\n \"NativeBase.Text\": {\n \".note\": {\n color: variables.listNoteColor,\n fontWeight: \"200\",\n marginRight: 20\n }\n },\n \"NativeBase.Button\": {\n \".transparent\": {\n ...transparentBtnCommon,\n paddingRight: variables.cardItemPadding + 5,\n alignSelf: \"stretch\"\n }\n },\n flex: 1,\n alignSelf: \"stretch\",\n alignItems: \"flex-start\"\n },\n \"NativeBase.Right\": {\n \"NativeBase.Badge\": {\n alignSelf: null\n },\n \"NativeBase.Button\": {\n \".transparent\": {\n ...transparentBtnCommon\n },\n alignSelf: null\n },\n \"NativeBase.Icon\": {\n alignSelf: null,\n fontSize: variables.iconFontSize - 8,\n color: variables.cardBorderColor\n },\n \"NativeBase.IconNB\": {\n alignSelf: null,\n fontSize: variables.iconFontSize - 8,\n color: variables.cardBorderColor\n },\n \"NativeBase.Text\": {\n fontSize: variables.DefaultFontSize - 1,\n alignSelf: null\n },\n \"NativeBase.Thumbnail\": {\n alignSelf: null\n },\n \"NativeBase.Image\": {\n alignSelf: null\n },\n \"NativeBase.Radio\": {\n alignSelf: null\n },\n \"NativeBase.Checkbox\": {\n alignSelf: null\n },\n \"NativeBase.Switch\": {\n alignSelf: null\n },\n flex: 0.8\n },\n \".header\": {\n \"NativeBase.Text\": {\n fontSize: 16,\n fontWeight: platform === \"ios\" ? \"600\" : \"500\"\n },\n \".bordered\": {\n \"NativeBase.Text\": {\n color: variables.brandPrimary,\n fontWeight: platform === \"ios\" ? \"600\" : \"500\"\n },\n borderBottomWidth: variables.borderWidth\n },\n borderBottomWidth: null,\n paddingVertical: variables.cardItemPadding + 5\n },\n \".footer\": {\n \"NativeBase.Text\": {\n fontSize: 16,\n fontWeight: platform === \"ios\" ? \"600\" : \"500\"\n },\n \".bordered\": {\n \"NativeBase.Text\": {\n color: variables.brandPrimary,\n fontWeight: platform === \"ios\" ? \"600\" : \"500\"\n },\n borderTopWidth: variables.borderWidth\n },\n borderBottomWidth: null\n },\n \"NativeBase.Text\": {\n \".note\": {\n color: variables.listNoteColor,\n fontWeight: \"200\"\n }\n },\n \"NativeBase.Icon\": {\n width: variables.iconFontSize + 5,\n fontSize: variables.iconFontSize - 2\n },\n \"NativeBase.IconNB\": {\n width: variables.iconFontSize + 5,\n fontSize: variables.iconFontSize - 2\n },\n \".bordered\": {\n borderBottomWidth: StyleSheet.hairlineWidth,\n borderColor: variables.cardBorderColor\n },\n \".first\": {\n borderTopLeftRadius: variables.cardBorderRadius,\n borderTopRightRadius: variables.cardBorderRadius\n },\n \".last\": {\n borderBottomLeftRadius: variables.cardBorderRadius,\n borderBottomRightRadius: variables.cardBorderRadius\n },\n flexDirection: \"row\",\n alignItems: \"center\",\n borderRadius: 2,\n padding: variables.cardItemPadding + 5,\n paddingVertical: variables.cardItemPadding,\n backgroundColor: variables.cardDefaultBg\n };\n\n return cardItemTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/CardItem.js"],"names":["variables","variable","platform","transparentBtnCommon","fontSize","DefaultFontSize","color","sTabBarActiveTextColor","iconFontSize","marginHorizontal","paddingVertical","paddingHorizontal","cardItemTheme","listNoteColor","fontWeight","marginRight","flex","marginLeft","alignItems","alignSelf","paddingRight","cardItemPadding","flexDirection","padding","marginTop","cardBorderColor","brandPrimary","borderBottomWidth","borderWidth","borderTopWidth","width","StyleSheet","hairlineWidth","borderColor","borderTopLeftRadius","cardBorderRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderRadius","backgroundColor","cardDefaultBg"],"mappings":"yRAAA,yCACA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,UAAWF,UAAUE,QAA3B,CACA,GAAMC,sBAAuB,CAC3B,kBAAmB,CACjBC,SAAUJ,UAAUK,eAAV,CAA4B,CADrB,CAEjBC,MAAON,UAAUO,sBAFA,CADQ,CAK3B,kBAAmB,CACjBH,SAAUJ,UAAUQ,YAAV,CAAyB,EADlB,CAEjBF,MAAON,UAAUO,sBAFA,CAGjBE,iBAAkB,IAHD,CALQ,CAU3B,oBAAqB,CACnBL,SAAUJ,UAAUQ,YAAV,CAAyB,EADhB,CAEnBF,MAAON,UAAUO,sBAFE,CAVM,CAc3BG,gBAAiB,IAdU,CAe3BC,kBAAmB,IAfQ,CAA7B,CAkBA,GAAMC,eAAgB,CACpB,kBAAmB,CACjB,kBAAmB,CACjB,kBAAmB,CACjB,QAAS,CACPN,MAAON,UAAUa,aADV,CAEPC,WAAY,KAFL,CAGPC,YAAa,EAHN,CADQ,CADF,CAQjBC,KAAM,CARW,CASjBC,WAAY,EATK,CAUjBC,WAAY,IAVK,CADF,CAajB,kBAAmB,CACjBd,SAAUJ,UAAUQ,YADH,CAbF,CAgBjB,oBAAqB,CACnBJ,SAAUJ,UAAUQ,YADD,CAhBJ,CAmBjB,kBAAmB,CACjBS,WAAY,EADK,CAEjBE,UAAW,QAFM,CAnBF,CA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AUmC,gBAFxB,CAzJU,CA6JpB,QAAS,CACPE,uBAAwBrC,UAAUmC,gBAD3B,CAEPG,wBAAyBtC,UAAUmC,gBAF5B,CA7JW,CAiKpBb,cAAe,KAjKK,CAkKpBJ,WAAY,QAlKQ,CAmKpBqB,aAAc,CAnKM,CAoKpBhB,QAASvB,UAAUqB,eAAV,CAA4B,CApKjB,CAqKpBX,gBAAiBV,UAAUqB,eArKP,CAsKpBmB,gBAAiBxC,UAAUyC,aAtKP,CAAtB,CAyKA,MAAO7B,cAAP,CACD,C","file":"CardItem.js","sourcesContent":["import { StyleSheet } from \"react-native\";\nimport variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const platform = variables.platform;\n const transparentBtnCommon = {\n \"NativeBase.Text\": {\n fontSize: variables.DefaultFontSize - 3,\n color: variables.sTabBarActiveTextColor\n },\n \"NativeBase.Icon\": {\n fontSize: variables.iconFontSize - 10,\n color: variables.sTabBarActiveTextColor,\n marginHorizontal: null\n },\n \"NativeBase.IconNB\": {\n fontSize: variables.iconFontSize - 10,\n color: variables.sTabBarActiveTextColor\n },\n paddingVertical: null,\n paddingHorizontal: null\n };\n\n const cardItemTheme = {\n \"NativeBase.Left\": {\n \"NativeBase.Body\": {\n \"NativeBase.Text\": {\n \".note\": {\n color: variables.listNoteColor,\n fontWeight: \"400\",\n marginRight: 20\n }\n },\n flex: 1,\n marginLeft: 10,\n alignItems: null\n },\n \"NativeBase.Icon\": {\n fontSize: variables.iconFontSize\n },\n \"NativeBase.IconNB\": {\n fontSize: variables.iconFontSize\n },\n \"NativeBase.Text\": {\n marginLeft: 10,\n alignSelf: \"center\"\n },\n \"NativeBase.Button\": {\n \".transparent\": {\n ...transparentBtnCommon,\n paddingRight: variables.cardItemPadding + 5\n }\n },\n flex: 1,\n flexDirection: \"row\",\n alignItems: \"center\"\n },\n \".content\": {\n \"NativeBase.Text\": {\n color: platform === \"ios\" ? \"#555\" : \"#222\",\n fontSize: variables.DefaultFontSize - 2\n }\n },\n \".cardBody\": {\n padding: -5,\n \"NativeBase.Text\": {\n marginTop: 5\n }\n },\n \"NativeBase.Body\": {\n \"NativeBase.Text\": {\n \".note\": {\n color: variables.listNoteColor,\n fontWeight: \"200\",\n marginRight: 20\n }\n },\n \"NativeBase.Button\": {\n \".transparent\": {\n ...transparentBtnCommon,\n paddingRight: variables.cardItemPadding + 5,\n alignSelf: \"stretch\"\n }\n },\n flex: 1,\n alignSelf: \"stretch\",\n alignItems: \"flex-start\"\n },\n \"NativeBase.Right\": {\n \"NativeBase.Badge\": {\n alignSelf: null\n },\n \"NativeBase.Button\": {\n \".transparent\": {\n ...transparentBtnCommon\n },\n alignSelf: null\n },\n \"NativeBase.Icon\": {\n alignSelf: null,\n fontSize: variables.iconFontSize - 8,\n color: variables.cardBorderColor\n },\n \"NativeBase.IconNB\": {\n alignSelf: null,\n fontSize: variables.iconFontSize - 8,\n color: variables.cardBorderColor\n },\n \"NativeBase.Text\": {\n fontSize: variables.DefaultFontSize - 1,\n alignSelf: null\n },\n \"NativeBase.Thumbnail\": {\n alignSelf: null\n },\n \"NativeBase.Image\": {\n alignSelf: null\n },\n \"NativeBase.Radio\": {\n alignSelf: null\n },\n \"NativeBase.Checkbox\": {\n alignSelf: null\n },\n \"NativeBase.Switch\": {\n alignSelf: null\n },\n flex: 0.8\n },\n \".header\": {\n \"NativeBase.Text\": {\n fontSize: 16,\n fontWeight: platform === \"ios\" ? \"600\" : \"500\"\n },\n \".bordered\": {\n \"NativeBase.Text\": {\n color: variables.brandPrimary,\n fontWeight: platform === \"ios\" ? \"600\" : \"500\"\n },\n borderBottomWidth: variables.borderWidth\n },\n borderBottomWidth: null,\n paddingVertical: variables.cardItemPadding + 5\n },\n \".footer\": {\n \"NativeBase.Text\": {\n fontSize: 16,\n fontWeight: platform === \"ios\" ? \"600\" : \"500\"\n },\n \".bordered\": {\n \"NativeBase.Text\": {\n color: variables.brandPrimary,\n fontWeight: platform === \"ios\" ? \"600\" : \"500\"\n },\n borderTopWidth: variables.borderWidth\n },\n borderBottomWidth: null\n },\n \"NativeBase.Text\": {\n \".note\": {\n color: variables.listNoteColor,\n fontWeight: \"200\"\n }\n },\n \"NativeBase.Icon\": {\n width: variables.iconFontSize + 5,\n fontSize: variables.iconFontSize - 2\n },\n \"NativeBase.IconNB\": {\n width: variables.iconFontSize + 5,\n fontSize: variables.iconFontSize - 2\n },\n \".bordered\": {\n borderBottomWidth: StyleSheet.hairlineWidth,\n borderColor: variables.cardBorderColor\n },\n \".first\": {\n borderTopLeftRadius: variables.cardBorderRadius,\n borderTopRightRadius: variables.cardBorderRadius\n },\n \".last\": {\n borderBottomLeftRadius: variables.cardBorderRadius,\n borderBottomRightRadius: variables.cardBorderRadius\n },\n flexDirection: \"row\",\n alignItems: \"center\",\n borderRadius: 2,\n padding: variables.cardItemPadding + 5,\n paddingVertical: variables.cardItemPadding,\n backgroundColor: variables.cardDefaultBg\n };\n\n return cardItemTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/CheckBox.js b/dist/src/theme/components/CheckBox.js index e5edabbf9..fb6fd10b0 100644 --- a/dist/src/theme/components/CheckBox.js +++ b/dist/src/theme/components/CheckBox.js @@ -1,37 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var checkBoxTheme={ -".checked":{ -"NativeBase.Icon":{ -color:variables.checkboxTickColor}, - -"NativeBase.IconNB":{ -color:variables.checkboxTickColor}}, - - -"NativeBase.Icon":{ -color:"transparent", -lineHeight:variables.CheckboxIconSize, -marginTop:variables.CheckboxIconMarginTop, -fontSize:variables.CheckboxFontSize}, - -"NativeBase.IconNB":{ -color:"transparent", -lineHeight:variables.CheckboxIconSize, -marginTop:variables.CheckboxIconMarginTop, -fontSize:variables.CheckboxFontSize}, - -borderRadius:variables.CheckboxRadius, -overflow:"hidden", -width:variables.checkboxSize, -height:variables.checkboxSize, -borderWidth:variables.CheckboxBorderWidth, -paddingLeft:variables.CheckboxPaddingLeft-1, -paddingBottom:variables.CheckboxPaddingBottom, -left:10}; - - -return checkBoxTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var checkBoxTheme={".checked":{"NativeBase.Icon":{color:variables.checkboxTickColor},"NativeBase.IconNB":{color:variables.checkboxTickColor}},"NativeBase.Icon":{color:"transparent",lineHeight:variables.CheckboxIconSize,marginTop:variables.CheckboxIconMarginTop,fontSize:variables.CheckboxFontSize},"NativeBase.IconNB":{color:"transparent",lineHeight:variables.CheckboxIconSize,marginTop:variables.CheckboxIconMarginTop,fontSize:variables.CheckboxFontSize},borderRadius:variables.CheckboxRadius,overflow:"hidden",width:variables.checkboxSize,height:variables.checkboxSize,borderWidth:variables.CheckboxBorderWidth,paddingLeft:variables.CheckboxPaddingLeft-1,paddingBottom:variables.CheckboxPaddingBottom,left:10};return checkBoxTheme;}; //# sourceMappingURL=CheckBox.js.map \ No newline at end of file diff --git a/dist/src/theme/components/CheckBox.js.map b/dist/src/theme/components/CheckBox.js.map index e464625e0..f4992f69e 100644 --- a/dist/src/theme/components/CheckBox.js.map +++ b/dist/src/theme/components/CheckBox.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/CheckBox.js"],"names":["variables","variable","checkBoxTheme","color","checkboxTickColor","lineHeight","CheckboxIconSize","marginTop","CheckboxIconMarginTop","fontSize","CheckboxFontSize","borderRadius","CheckboxRadius","overflow","width","checkboxSize","height","borderWidth","CheckboxBorderWidth","paddingLeft","CheckboxPaddingLeft","paddingBottom","CheckboxPaddingBottom","left"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,eAAgB;AACpB,WAAY;AACV,kBAAmB;AACjBC,MAAOH,UAAUI,iBADA,CADT;;AAIV,oBAAqB;AACnBD,MAAOH,UAAUI,iBADE,CAJX,CADQ;;;AASpB,kBAAmB;AACjBD,MAAO,aADU;AAEjBE,WAAYL,UAAUM,gBAFL;AAGjBC,UAAWP,UAAUQ,qBAHJ;AAIjBC,SAAUT,UAAUU,gBAJH,CATC;;AAepB,oBAAqB;AACnBP,MAAO,aADY;AAEnBE,WAAYL,UAAUM,gBAFH;AAGnBC,UAAWP,UAAUQ,qBAHF;AAInBC,SAAUT,UAAUU,gBAJD,CAfD;;AAqBpBC,aAAcX,UAAUY,cArBJ;AAsBpBC,SAAU,QAtBU;AAuBpBC,MAAOd,UAAUe,YAvBG;AAwBpBC,OAAQhB,UAAUe,YAxBE;AAyBpBE,YAAajB,UAAUkB,mBAzBH;AA0BpBC,YAAanB,UAAUoB,mBAAV,CAAgC,CA1BzB;AA2BpBC,cAAerB,UAAUsB,qBA3BL;AA4BpBC,KAAM,EA5Bc,CAAtB;;;AA+BA,MAAOrB,cAAP;AACD,C","file":"CheckBox.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const checkBoxTheme = {\n \".checked\": {\n \"NativeBase.Icon\": {\n color: variables.checkboxTickColor\n },\n \"NativeBase.IconNB\": {\n color: variables.checkboxTickColor\n }\n },\n \"NativeBase.Icon\": {\n color: \"transparent\",\n lineHeight: variables.CheckboxIconSize,\n marginTop: variables.CheckboxIconMarginTop,\n fontSize: variables.CheckboxFontSize\n },\n \"NativeBase.IconNB\": {\n color: \"transparent\",\n lineHeight: variables.CheckboxIconSize,\n marginTop: variables.CheckboxIconMarginTop,\n fontSize: variables.CheckboxFontSize\n },\n borderRadius: variables.CheckboxRadius,\n overflow: \"hidden\",\n width: variables.checkboxSize,\n height: variables.checkboxSize,\n borderWidth: variables.CheckboxBorderWidth,\n paddingLeft: variables.CheckboxPaddingLeft - 1,\n paddingBottom: variables.CheckboxPaddingBottom,\n left: 10\n };\n\n return checkBoxTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/CheckBox.js"],"names":["variables","variable","checkBoxTheme","color","checkboxTickColor","lineHeight","CheckboxIconSize","marginTop","CheckboxIconMarginTop","fontSize","CheckboxFontSize","borderRadius","CheckboxRadius","overflow","width","checkboxSize","height","borderWidth","CheckboxBorderWidth","paddingLeft","CheckboxPaddingLeft","paddingBottom","CheckboxPaddingBottom","left"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,eAAgB,CACpB,WAAY,CACV,kBAAmB,CACjBC,MAAOH,UAAUI,iBADA,CADT,CAIV,oBAAqB,CACnBD,MAAOH,UAAUI,iBADE,CAJX,CADQ,CASpB,kBAAmB,CACjBD,MAAO,aADU,CAEjBE,WAAYL,UAAUM,gBAFL,CAGjBC,UAAWP,UAAUQ,qBAHJ,CAIjBC,SAAUT,UAAUU,gBAJH,CATC,CAepB,oBAAqB,CACnBP,MAAO,aADY,CAEnBE,WAAYL,UAAUM,gBAFH,CAGnBC,UAAWP,UAAUQ,qBAHF,CAInBC,SAAUT,UAAUU,gBAJD,CAfD,CAqBpBC,aAAcX,UAAUY,cArBJ,CAsBpBC,SAAU,QAtBU,CAuBpBC,MAAOd,UAAUe,YAvBG,CAwBpBC,OAAQhB,UAAUe,YAxBE,CAyBpBE,YAAajB,UAAUkB,mBAzBH,CA0BpBC,YAAanB,UAAUoB,mBAAV,CAAgC,CA1BzB,CA2BpBC,cAAerB,UAAUsB,qBA3BL,CA4BpBC,KAAM,EA5Bc,CAAtB,CA+BA,MAAOrB,cAAP,CACD,C","file":"CheckBox.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const checkBoxTheme = {\n \".checked\": {\n \"NativeBase.Icon\": {\n color: variables.checkboxTickColor\n },\n \"NativeBase.IconNB\": {\n color: variables.checkboxTickColor\n }\n },\n \"NativeBase.Icon\": {\n color: \"transparent\",\n lineHeight: variables.CheckboxIconSize,\n marginTop: variables.CheckboxIconMarginTop,\n fontSize: variables.CheckboxFontSize\n },\n \"NativeBase.IconNB\": {\n color: \"transparent\",\n lineHeight: variables.CheckboxIconSize,\n marginTop: variables.CheckboxIconMarginTop,\n fontSize: variables.CheckboxFontSize\n },\n borderRadius: variables.CheckboxRadius,\n overflow: \"hidden\",\n width: variables.checkboxSize,\n height: variables.checkboxSize,\n borderWidth: variables.CheckboxBorderWidth,\n paddingLeft: variables.CheckboxPaddingLeft - 1,\n paddingBottom: variables.CheckboxPaddingBottom,\n left: 10\n };\n\n return checkBoxTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Container.js b/dist/src/theme/components/Container.js index 2eb1bf6f4..5b334a387 100644 --- a/dist/src/theme/components/Container.js +++ b/dist/src/theme/components/Container.js @@ -1,14 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native"); - -var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};} - -var deviceHeight=_reactNative.Dimensions.get("window").height;exports.default= -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var theme={ -flex:1, -height:_reactNative.Platform.OS==="ios"?deviceHeight:deviceHeight-20}; - - -return theme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var deviceHeight=_reactNative.Dimensions.get("window").height;exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var theme={flex:1,height:_reactNative.Platform.OS==="ios"?deviceHeight:deviceHeight-20};return theme;}; //# sourceMappingURL=Container.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Container.js.map b/dist/src/theme/components/Container.js.map index e23de3ca7..634fd4950 100644 --- a/dist/src/theme/components/Container.js.map +++ b/dist/src/theme/components/Container.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Container.js"],"names":["deviceHeight","Dimensions","get","height","variables","variable","theme","flex","Platform","OS"],"mappings":"yDAAA;;AAEA,iD;;AAEA,GAAMA,cAAeC,wBAAWC,GAAX,CAAe,QAAf,EAAyBC,MAA9C,C;AACe,UAA0B,IAAzBC,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,OAAQ;AACZC,KAAM,CADM;AAEZJ,OAAQK,sBAASC,EAAT,GAAgB,KAAhB,CAAwBT,YAAxB,CAAuCA,aAAe,EAFlD,CAAd;;;AAKA,MAAOM,MAAP;AACD,C","file":"Container.js","sourcesContent":["import { Platform, Dimensions } from \"react-native\";\n\nimport variable from \"./../variables/platform\";\n\nconst deviceHeight = Dimensions.get(\"window\").height;\nexport default (variables = variable) => {\n const theme = {\n flex: 1,\n height: Platform.OS === \"ios\" ? deviceHeight : deviceHeight - 20\n };\n\n return theme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Container.js"],"names":["deviceHeight","Dimensions","get","height","variables","variable","theme","flex","Platform","OS"],"mappings":"yDAAA,yCAEA,iD,oIAEA,GAAMA,cAAeC,wBAAWC,GAAX,CAAe,QAAf,EAAyBC,MAA9C,C,gBACe,UAA0B,IAAzBC,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,OAAQ,CACZC,KAAM,CADM,CAEZJ,OAAQK,sBAASC,EAAT,GAAgB,KAAhB,CAAwBT,YAAxB,CAAuCA,aAAe,EAFlD,CAAd,CAKA,MAAOM,MAAP,CACD,C","file":"Container.js","sourcesContent":["import { Platform, Dimensions } from \"react-native\";\n\nimport variable from \"./../variables/platform\";\n\nconst deviceHeight = Dimensions.get(\"window\").height;\nexport default (variables = variable) => {\n const theme = {\n flex: 1,\n height: Platform.OS === \"ios\" ? deviceHeight : deviceHeight - 20\n };\n\n return theme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Content.js b/dist/src/theme/components/Content.js index c81227661..98d1543b6 100644 --- a/dist/src/theme/components/Content.js +++ b/dist/src/theme/components/Content.js @@ -1,15 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var contentTheme={ -flex:1, -backgroundColor:"transparent", -"NativeBase.Segment":{ -borderWidth:0, -backgroundColor:"transparent"}}; - - - -return contentTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var contentTheme={flex:1,backgroundColor:"transparent","NativeBase.Segment":{borderWidth:0,backgroundColor:"transparent"}};return contentTheme;}; //# sourceMappingURL=Content.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Content.js.map b/dist/src/theme/components/Content.js.map index 71fb1d9b6..1236ef39d 100644 --- a/dist/src/theme/components/Content.js.map +++ b/dist/src/theme/components/Content.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Content.js"],"names":["variables","variable","contentTheme","flex","backgroundColor","borderWidth"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,cAAe;AACnBC,KAAM,CADa;AAEnBC,gBAAiB,aAFE;AAGnB,qBAAsB;AACpBC,YAAa,CADO;AAEpBD,gBAAiB,aAFG,CAHH,CAArB;;;;AASA,MAAOF,aAAP;AACD,C","file":"Content.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const contentTheme = {\n flex: 1,\n backgroundColor: \"transparent\",\n \"NativeBase.Segment\": {\n borderWidth: 0,\n backgroundColor: \"transparent\"\n }\n };\n\n return contentTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Content.js"],"names":["variables","variable","contentTheme","flex","backgroundColor","borderWidth"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,cAAe,CACnBC,KAAM,CADa,CAEnBC,gBAAiB,aAFE,CAGnB,qBAAsB,CACpBC,YAAa,CADO,CAEpBD,gBAAiB,aAFG,CAHH,CAArB,CASA,MAAOF,aAAP,CACD,C","file":"Content.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const contentTheme = {\n flex: 1,\n backgroundColor: \"transparent\",\n \"NativeBase.Segment\": {\n borderWidth: 0,\n backgroundColor: \"transparent\"\n }\n };\n\n return contentTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Fab.js b/dist/src/theme/components/Fab.js index 5c04ea9c0..c4a398f75 100644 --- a/dist/src/theme/components/Fab.js +++ b/dist/src/theme/components/Fab.js @@ -1,28 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var platform=variables.platform; - -var fabTheme={ -"NativeBase.Button":{ -alignItems:"center", -padding:null, -justifyContent:"center", -"NativeBase.Icon":{ -alignSelf:"center", -fontSize:20, -marginLeft:0, -marginRight:0}, - -"NativeBase.IconNB":{ -alignSelf:"center", -fontSize:20, -marginLeft:0, -marginRight:0}}}; - - - - -return fabTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var fabTheme={"NativeBase.Button":{alignItems:"center",padding:null,justifyContent:"center","NativeBase.Icon":{alignSelf:"center",fontSize:20,marginLeft:0,marginRight:0},"NativeBase.IconNB":{alignSelf:"center",fontSize:20,marginLeft:0,marginRight:0}}};return fabTheme;}; //# sourceMappingURL=Fab.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Fab.js.map b/dist/src/theme/components/Fab.js.map index e35bfd445..aaac65faa 100644 --- a/dist/src/theme/components/Fab.js.map +++ b/dist/src/theme/components/Fab.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Fab.js"],"names":["variables","variable","platform","fabTheme","alignItems","padding","justifyContent","alignSelf","fontSize","marginLeft","marginRight"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACxC,GAAMC,UAAWF,UAAUE,QAA3B;;AAEA,GAAMC,UAAW;AAChB,oBAAqB;AACpBC,WAAY,QADQ;AAEpBC,QAAS,IAFW;AAGpBC,eAAgB,QAHI;AAIpB,kBAAmB;AAClBC,UAAW,QADO;AAElBC,SAAU,EAFQ;AAGlBC,WAAY,CAHM;AAIlBC,YAAa,CAJK,CAJC;;AAUpB,oBAAqB;AACpBH,UAAW,QADS;AAEpBC,SAAU,EAFU;AAGpBC,WAAY,CAHQ;AAIpBC,YAAa,CAJO,CAVD,CADL,CAAjB;;;;;AAoBA,MAAOP,SAAP;AACA,C","file":"Fab.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n\tconst platform = variables.platform;\n\n\tconst fabTheme = {\n\t\t\"NativeBase.Button\": {\n\t\t\talignItems: \"center\",\n\t\t\tpadding: null,\n\t\t\tjustifyContent: \"center\",\n\t\t\t\"NativeBase.Icon\": {\n\t\t\t\talignSelf: \"center\",\n\t\t\t\tfontSize: 20,\n\t\t\t\tmarginLeft: 0,\n\t\t\t\tmarginRight: 0,\n\t\t\t},\n\t\t\t\"NativeBase.IconNB\": {\n\t\t\t\talignSelf: \"center\",\n\t\t\t\tfontSize: 20,\n\t\t\t\tmarginLeft: 0,\n\t\t\t\tmarginRight: 0,\n\t\t\t},\n\t\t},\n\t};\n\n\treturn fabTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Fab.js"],"names":["variables","variable","platform","fabTheme","alignItems","padding","justifyContent","alignSelf","fontSize","marginLeft","marginRight"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACxC,GAAMC,UAAWF,UAAUE,QAA3B,CAEA,GAAMC,UAAW,CAChB,oBAAqB,CACpBC,WAAY,QADQ,CAEpBC,QAAS,IAFW,CAGpBC,eAAgB,QAHI,CAIpB,kBAAmB,CAClBC,UAAW,QADO,CAElBC,SAAU,EAFQ,CAGlBC,WAAY,CAHM,CAIlBC,YAAa,CAJK,CAJC,CAUpB,oBAAqB,CACpBH,UAAW,QADS,CAEpBC,SAAU,EAFU,CAGpBC,WAAY,CAHQ,CAIpBC,YAAa,CAJO,CAVD,CADL,CAAjB,CAoBA,MAAOP,SAAP,CACA,C","file":"Fab.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n\tconst platform = variables.platform;\n\n\tconst fabTheme = {\n\t\t\"NativeBase.Button\": {\n\t\t\talignItems: \"center\",\n\t\t\tpadding: null,\n\t\t\tjustifyContent: \"center\",\n\t\t\t\"NativeBase.Icon\": {\n\t\t\t\talignSelf: \"center\",\n\t\t\t\tfontSize: 20,\n\t\t\t\tmarginLeft: 0,\n\t\t\t\tmarginRight: 0,\n\t\t\t},\n\t\t\t\"NativeBase.IconNB\": {\n\t\t\t\talignSelf: \"center\",\n\t\t\t\tfontSize: 20,\n\t\t\t\tmarginLeft: 0,\n\t\t\t\tmarginRight: 0,\n\t\t\t},\n\t\t},\n\t};\n\n\treturn fabTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Footer.js b/dist/src/theme/components/Footer.js index a7e5791cf..e75df6952 100644 --- a/dist/src/theme/components/Footer.js +++ b/dist/src/theme/components/Footer.js @@ -1,117 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var platformStyle=variables.platformStyle; -var platform=variables.platform; - -var iconCommon={ -"NativeBase.Icon":{ -color:variables.tabBarActiveTextColor}}; - - -var iconNBCommon={ -"NativeBase.IconNB":{ -color:variables.tabBarActiveTextColor}}; - - -var textCommon={ -"NativeBase.Text":{ -color:variables.tabBarActiveTextColor}}; - - -var footerTheme={ -"NativeBase.Left":{ -"NativeBase.Button":_extends({ -".transparent":_extends({ -backgroundColor:"transparent", -borderColor:null, -elevation:0, -shadowColor:null, -shadowOffset:null, -shadowRadius:null, -shadowOpacity:null}, -iconCommon, -iconNBCommon, -textCommon), - -alignSelf:null}, -iconCommon, -iconNBCommon), - - -flex:1, -alignSelf:"center", -alignItems:"flex-start"}, - -"NativeBase.Body":{ -flex:1, -alignItems:"center", -alignSelf:"center", -flexDirection:"row", -"NativeBase.Button":_extends({ -alignSelf:"center", -".transparent":_extends({ -backgroundColor:"transparent", -borderColor:null, -elevation:0, -shadowColor:null, -shadowOffset:null, -shadowRadius:null, -shadowOpacity:null}, -iconCommon, -iconNBCommon, -textCommon), - -".full":{ -height:variables.footerHeight, -paddingBottom:variables.footerPaddingBottom, -flex:1}}, - -iconCommon, -iconNBCommon)}, - - - -"NativeBase.Right":{ -"NativeBase.Button":_extends({ -".transparent":_extends({ -backgroundColor:"transparent", -borderColor:null, -elevation:0, -shadowColor:null, -shadowOffset:null, -shadowRadius:null, -shadowOpacity:null}, -iconCommon, -iconNBCommon, -textCommon), - -alignSelf:null}, -iconCommon, -iconNBCommon), - - -flex:1, -alignSelf:"center", -alignItems:"flex-end"}, - -backgroundColor:variables.footerDefaultBg, -flexDirection:"row", -justifyContent:"center", -borderTopWidth: -platform==="ios"&&platformStyle!=="material"? -variables.borderWidth: -undefined, -borderColor: -platform==="ios"&&platformStyle!=="material"? -"#cbcbcb": -undefined, -height:variables.footerHeight, -paddingBottom:variables.footerPaddingBottom, -elevation:3, -left:0, -right:0}; - -return footerTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var iconCommon={"NativeBase.Icon":{color:variables.tabBarActiveTextColor}};var iconNBCommon={"NativeBase.IconNB":{color:variables.tabBarActiveTextColor}};var textCommon={"NativeBase.Text":{color:variables.tabBarActiveTextColor}};var footerTheme={"NativeBase.Left":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:"center",alignSelf:"center",flexDirection:"row","NativeBase.Button":_extends({alignSelf:"center",".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),".full":{height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,flex:1}},iconCommon,iconNBCommon)},"NativeBase.Right":{"NativeBase.Button":_extends({".transparent":_extends({backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},iconCommon,iconNBCommon,textCommon),alignSelf:null},iconCommon,iconNBCommon),flex:1,alignSelf:"center",alignItems:"flex-end"},backgroundColor:variables.footerDefaultBg,flexDirection:"row",justifyContent:"center",borderTopWidth:platform==="ios"&&platformStyle!=="material"?variables.borderWidth:undefined,borderColor:platform==="ios"&&platformStyle!=="material"?"#cbcbcb":undefined,height:variables.footerHeight,paddingBottom:variables.footerPaddingBottom,elevation:3,left:0,right:0};return footerTheme;}; //# sourceMappingURL=Footer.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Footer.js.map b/dist/src/theme/components/Footer.js.map index f186decc8..08bcce1f6 100644 --- a/dist/src/theme/components/Footer.js.map +++ b/dist/src/theme/components/Footer.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Footer.js"],"names":["variables","variable","platformStyle","platform","iconCommon","color","tabBarActiveTextColor","iconNBCommon","textCommon","footerTheme","backgroundColor","borderColor","elevation","shadowColor","shadowOffset","shadowRadius","shadowOpacity","alignSelf","flex","alignItems","flexDirection","height","footerHeight","paddingBottom","footerPaddingBottom","footerDefaultBg","justifyContent","borderTopWidth","borderWidth","undefined","left","right"],"mappings":"yRAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,eAAgBF,UAAUE,aAAhC;AACA,GAAMC,UAAWH,UAAUG,QAA3B;;AAEA,GAAMC,YAAa;AACjB,kBAAmB;AACjBC,MAAOL,UAAUM,qBADA,CADF,CAAnB;;;AAKA,GAAMC,cAAe;AACnB,oBAAqB;AACnBF,MAAOL,UAAUM,qBADE,CADF,CAArB;;;AAKA,GAAME,YAAa;AACjB,kBAAmB;AACjBH,MAAOL,UAAUM,qBADA,CADF,CAAnB;;;AAKA,GAAMG,aAAc;AAClB,kBAAmB;AACjB;AACE;AACEC,gBAAiB,aADnB;AAEEC,YAAa,IAFf;AAGEC,UAAW,CAHb;AAIEC,YAAa,IAJf;AAKEC,aAAc,IALhB;AAMEC,aAAc,IANhB;AAOEC,cAAe,IAPjB;AAQKZ,UARL;AASKG,YATL;AAUKC,UAVL,CADF;;AAaES,UAAW,IAbb;AAcKb,UAdL;AAeKG,YAfL,CADiB;;;AAmBjBW,KAAM,CAnBW;AAoBjBD,UAAW,QApBM;AAqBjBE,WAAY,YArBK,CAD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variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const platformStyle = variables.platformStyle;\n const platform = variables.platform;\n\n const iconCommon = {\n \"NativeBase.Icon\": {\n color: variables.tabBarActiveTextColor\n }\n };\n const iconNBCommon = {\n \"NativeBase.IconNB\": {\n color: variables.tabBarActiveTextColor\n }\n };\n const textCommon = {\n \"NativeBase.Text\": {\n color: variables.tabBarActiveTextColor\n }\n };\n const footerTheme = {\n \"NativeBase.Left\": {\n \"NativeBase.Button\": {\n \".transparent\": {\n backgroundColor: \"transparent\",\n borderColor: null,\n elevation: 0,\n shadowColor: null,\n shadowOffset: null,\n shadowRadius: null,\n shadowOpacity: null,\n ...iconCommon,\n ...iconNBCommon,\n ...textCommon\n },\n alignSelf: null,\n ...iconCommon,\n ...iconNBCommon,\n // ...textCommon\n },\n flex: 1,\n alignSelf: \"center\",\n alignItems: \"flex-start\"\n },\n \"NativeBase.Body\": {\n flex: 1,\n alignItems: \"center\",\n alignSelf: \"center\",\n flexDirection: \"row\",\n \"NativeBase.Button\": {\n alignSelf: \"center\",\n \".transparent\": {\n backgroundColor: \"transparent\",\n borderColor: null,\n elevation: 0,\n shadowColor: null,\n shadowOffset: null,\n shadowRadius: null,\n shadowOpacity: null,\n ...iconCommon,\n ...iconNBCommon,\n ...textCommon\n },\n \".full\": {\n height: variables.footerHeight,\n paddingBottom: variables.footerPaddingBottom,\n flex: 1\n },\n ...iconCommon,\n ...iconNBCommon,\n // ...textCommon\n }\n },\n \"NativeBase.Right\": {\n \"NativeBase.Button\": {\n \".transparent\": {\n backgroundColor: \"transparent\",\n borderColor: null,\n elevation: 0,\n shadowColor: null,\n shadowOffset: null,\n shadowRadius: null,\n shadowOpacity: null,\n ...iconCommon,\n ...iconNBCommon,\n ...textCommon\n },\n alignSelf: null,\n ...iconCommon,\n ...iconNBCommon,\n // ...textCommon\n },\n flex: 1,\n alignSelf: \"center\",\n alignItems: \"flex-end\"\n },\n backgroundColor: variables.footerDefaultBg,\n flexDirection: \"row\",\n justifyContent: \"center\",\n borderTopWidth:\n platform === \"ios\" && platformStyle !== \"material\"\n ? variables.borderWidth\n : undefined,\n borderColor:\n platform === \"ios\" && platformStyle !== \"material\"\n ? \"#cbcbcb\"\n : undefined,\n height: variables.footerHeight,\n paddingBottom: variables.footerPaddingBottom,\n elevation: 3,\n left: 0,\n right: 0\n };\n return footerTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Footer.js"],"names":["variables","variable","platformStyle","platform","iconCommon","color","tabBarActiveTextColor","iconNBCommon","textCommon","footerTheme","backgroundColor","borderColor","elevation","shadowColor","shadowOffset","shadowRadius","shadowOpacity","alignSelf","flex","alignItems","flexDirection","height","footerHeight","paddingBottom","footerPaddingBottom","footerDefaultBg","justifyContent","borderTopWidth","borderWidth","undefined","left","right"],"mappings":"yRAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,eAAgBF,UAAUE,aAAhC,CACA,GAAMC,UAAWH,UAAUG,QAA3B,CAEA,GAAMC,YAAa,CACjB,kBAAmB,CACjBC,MAAOL,UAAUM,qBADA,CADF,CAAnB,CAKA,GAAMC,cAAe,CACnB,oBAAqB,CACnBF,MAAOL,UAAUM,qBADE,CADF,CAArB,CAKA,GAAME,YAAa,CACjB,kBAAmB,CACjBH,MAAOL,UAAUM,qBADA,CADF,CAAnB,CAKA,GAAMG,aAAc,CAClB,kBAAmB,CACjB,8BACE,yBACEC,gBAAiB,aADnB,CAEEC,YAAa,IAFf,CAGEC,UAAW,CAHb,CAIEC,YAAa,IAJf,CAKEC,aAAc,IALhB,CAMEC,aAAc,IANhB,CAOEC,cAAe,IAPjB,EAQKZ,UARL,CASKG,YATL,CAUKC,UAVL,CADF,CAaES,UAAW,IAbb,EAcKb,UAdL,CAeKG,YAfL,CADiB,CAmBjBW,KAAM,CAnBW,CAoBjBD,UAAW,QApBM,CAqBjBE,WAAY,YArBK,CADD,CAwBlB,kBAAmB,CACjBD,KAAM,CADW,CAEjBC,WAAY,QAFK,CAGjBF,UAAW,QAHM,CAIjBG,cAAe,KAJE,CAKjB,8BACEH,UAAW,QADb,CAEE,yBACEP,gBAAiB,aADnB,CAEEC,YAAa,IAFf,CAGEC,UAAW,CAHb,CAIEC,YAAa,IAJf,CAKEC,aAAc,IALhB,CAMEC,aAAc,IANhB,CAOEC,cAAe,IAPjB,EAQKZ,UARL,CASKG,YATL,CAUKC,UAVL,CAFF,CAcE,QAAS,CACPa,OAAQrB,UAAUsB,YADX,CAEPC,cAAevB,UAAUwB,mBAFlB,CAGPN,KAAM,CAHC,CAdX,EAmBKd,UAnBL,CAoBKG,YApBL,CALiB,CAxBD,CAqDlB,mBAAoB,CAClB,8BACE,yBACEG,gBAAiB,aADnB,CAEEC,YAAa,IAFf,CAGEC,UAAW,CAHb,CAIEC,YAAa,IAJf,CAKEC,aAAc,IALhB,CAMEC,aAAc,IANhB,CAOEC,cAAe,IAPjB,EAQKZ,UARL,CASKG,YATL,CAUKC,UAVL,CADF,CAaES,UAAW,IAbb,EAcKb,UAdL,CAeKG,YAfL,CADkB,CAmBlBW,KAAM,CAnBY,CAoBlBD,UAAW,QApBO,CAqBlBE,WAAY,UArBM,CArDF,CA4ElBT,gBAAiBV,UAAUyB,eA5ET,CA6ElBL,cAAe,KA7EG,CA8ElBM,eAAgB,QA9EE,CA+ElBC,eACExB,WAAa,KAAb,EAAsBD,gBAAkB,UAAxC,CACIF,UAAU4B,WADd,CAEIC,SAlFY,CAmFlBlB,YACER,WAAa,KAAb,EAAsBD,gBAAkB,UAAxC,CACI,SADJ,CAEI2B,SAtFY,CAuFlBR,OAAQrB,UAAUsB,YAvFA,CAwFlBC,cAAevB,UAAUwB,mBAxFP,CAyFlBZ,UAAW,CAzFO,CA0FlBkB,KAAM,CA1FY,CA2FlBC,MAAO,CA3FW,CAApB,CA6FA,MAAOtB,YAAP,CACD,C","file":"Footer.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const platformStyle = variables.platformStyle;\n const platform = variables.platform;\n\n const iconCommon = {\n \"NativeBase.Icon\": {\n color: variables.tabBarActiveTextColor\n }\n };\n const iconNBCommon = {\n \"NativeBase.IconNB\": {\n color: variables.tabBarActiveTextColor\n }\n };\n const textCommon = {\n \"NativeBase.Text\": {\n color: variables.tabBarActiveTextColor\n }\n };\n const footerTheme = {\n \"NativeBase.Left\": {\n \"NativeBase.Button\": {\n \".transparent\": {\n backgroundColor: \"transparent\",\n borderColor: null,\n elevation: 0,\n shadowColor: null,\n shadowOffset: null,\n shadowRadius: null,\n shadowOpacity: null,\n ...iconCommon,\n ...iconNBCommon,\n ...textCommon\n },\n alignSelf: null,\n ...iconCommon,\n ...iconNBCommon,\n // ...textCommon\n },\n flex: 1,\n alignSelf: \"center\",\n alignItems: \"flex-start\"\n },\n \"NativeBase.Body\": {\n flex: 1,\n alignItems: \"center\",\n alignSelf: \"center\",\n flexDirection: \"row\",\n \"NativeBase.Button\": {\n alignSelf: \"center\",\n \".transparent\": {\n backgroundColor: \"transparent\",\n borderColor: null,\n elevation: 0,\n shadowColor: null,\n shadowOffset: null,\n shadowRadius: null,\n shadowOpacity: null,\n ...iconCommon,\n ...iconNBCommon,\n ...textCommon\n },\n \".full\": {\n height: variables.footerHeight,\n paddingBottom: variables.footerPaddingBottom,\n flex: 1\n },\n ...iconCommon,\n ...iconNBCommon,\n // ...textCommon\n }\n },\n \"NativeBase.Right\": {\n \"NativeBase.Button\": {\n \".transparent\": {\n backgroundColor: \"transparent\",\n borderColor: null,\n elevation: 0,\n shadowColor: null,\n shadowOffset: null,\n shadowRadius: null,\n shadowOpacity: null,\n ...iconCommon,\n ...iconNBCommon,\n ...textCommon\n },\n alignSelf: null,\n ...iconCommon,\n ...iconNBCommon,\n // ...textCommon\n },\n flex: 1,\n alignSelf: \"center\",\n alignItems: \"flex-end\"\n },\n backgroundColor: variables.footerDefaultBg,\n flexDirection: \"row\",\n justifyContent: \"center\",\n borderTopWidth:\n platform === \"ios\" && platformStyle !== \"material\"\n ? variables.borderWidth\n : undefined,\n borderColor:\n platform === \"ios\" && platformStyle !== \"material\"\n ? \"#cbcbcb\"\n : undefined,\n height: variables.footerHeight,\n paddingBottom: variables.footerPaddingBottom,\n elevation: 3,\n left: 0,\n right: 0\n };\n return footerTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/FooterTab.js b/dist/src/theme/components/FooterTab.js index 4bb120209..bfacb0838 100644 --- a/dist/src/theme/components/FooterTab.js +++ b/dist/src/theme/components/FooterTab.js @@ -1,78 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native"); - -var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var platform=variables.platform; - -var footerTabTheme={ -"NativeBase.Button":{ -".active":{ -"NativeBase.Text":{ -color:variables.tabBarActiveTextColor, -fontSize:variables.tabBarTextSize, -lineHeight:16}, - -"NativeBase.Icon":{ -color:variables.tabBarActiveTextColor}, - -"NativeBase.IconNB":{ -color:variables.tabBarActiveTextColor}, - -backgroundColor:variables.tabActiveBgColor}, - -flexDirection:null, -backgroundColor:"transparent", -borderColor:null, -elevation:0, -shadowColor:null, -shadowOffset:null, -shadowRadius:null, -shadowOpacity:null, -alignSelf:"center", -flex:1, -height:variables.footerHeight, -justifyContent:"center", -".badge":{ -"NativeBase.Badge":{ -"NativeBase.Text":{ -fontSize:11, -fontWeight:platform==="ios"?"600":undefined, -lineHeight:14}, - -top:-3, -alignSelf:"center", -left:10, -zIndex:99, -height:18, -padding:1.7, -paddingHorizontal:3}, - -"NativeBase.Icon":{ -marginTop:-18}}, - - -"NativeBase.Icon":{ -color:variables.tabBarTextColor}, - -"NativeBase.IconNB":{ -color:variables.tabBarTextColor}, - -"NativeBase.Text":{ -color:variables.tabBarTextColor, -fontSize:variables.tabBarTextSize, -lineHeight:16}}, - - -backgroundColor:_reactNative.Platform.OS==="android"? -variables.footerDefaultBg: -undefined, -flexDirection:"row", -justifyContent:"space-between", -flex:1, -alignSelf:"stretch"}; - - -return footerTabTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var footerTabTheme={"NativeBase.Button":{".active":{"NativeBase.Text":{color:variables.tabBarActiveTextColor,fontSize:variables.tabBarTextSize,lineHeight:16},"NativeBase.Icon":{color:variables.tabBarActiveTextColor},"NativeBase.IconNB":{color:variables.tabBarActiveTextColor},backgroundColor:variables.tabActiveBgColor},flexDirection:null,backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,alignSelf:"center",flex:1,height:variables.footerHeight,justifyContent:"center",".badge":{"NativeBase.Badge":{"NativeBase.Text":{fontSize:11,fontWeight:platform==="ios"?"600":undefined,lineHeight:14},top:-3,alignSelf:"center",left:10,zIndex:99,height:18,padding:1.7,paddingHorizontal:3},"NativeBase.Icon":{marginTop:-18}},"NativeBase.Icon":{color:variables.tabBarTextColor},"NativeBase.IconNB":{color:variables.tabBarTextColor},"NativeBase.Text":{color:variables.tabBarTextColor,fontSize:variables.tabBarTextSize,lineHeight:16}},backgroundColor:_reactNative.Platform.OS==="android"?variables.footerDefaultBg:undefined,flexDirection:"row",justifyContent:"space-between",flex:1,alignSelf:"stretch"};return footerTabTheme;}; //# sourceMappingURL=FooterTab.js.map \ No newline at end of file diff --git a/dist/src/theme/components/FooterTab.js.map b/dist/src/theme/components/FooterTab.js.map index 3cfc0d1ac..31fe9cd5b 100644 --- a/dist/src/theme/components/FooterTab.js.map +++ b/dist/src/theme/components/FooterTab.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/FooterTab.js"],"names":["variables","variable","platform","footerTabTheme","color","tabBarActiveTextColor","fontSize","tabBarTextSize","lineHeight","backgroundColor","tabActiveBgColor","flexDirection","borderColor","elevation","shadowColor","shadowOffset","shadowRadius","shadowOpacity","alignSelf","flex","height","footerHeight","justifyContent","fontWeight","undefined","top","left","zIndex","padding","paddingHorizontal","marginTop","tabBarTextColor","Platform","OS","footerDefaultBg"],"mappings":"yDAAA;;AAEA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,UAAWF,UAAUE,QAA3B;;AAEA,GAAMC,gBAAiB;AACrB,oBAAqB;AACnB,UAAW;AACT,kBAAmB;AACjBC,MAAOJ,UAAUK,qBADA;AAEjBC,SAAUN,UAAUO,cAFH;AAGjBC,WAAY,EAHK,CADV;;AAMT,kBAAmB;AACjBJ,MAAOJ,UAAUK,qBADA,CANV;;AAST,oBAAqB;AACnBD,MAAOJ,UAAUK,qBADE,CATZ;;AAYTI,gBAAiBT,UAAUU,gBAZlB,CADQ;;AAenBC,cAAe,IAfI;AAgBnBF,gBAAiB,aAhBE;AAiBnBG,YAAa,IAjBM;AAkBnBC,UAAW,CAlBQ;AAmBnBC,YAAa,IAnBM;AAoBnBC,aAAc,IApBK;AAqBnBC,aAAc,IArBK;AAsBnBC,cAAe,IAtBI;AAuBnBC,UAAW,QAvBQ;AAwBnBC,KAAM,CAxBa;AAyBnBC,OAAQpB,UAAUqB,YAzBC;AA0BnBC,eAAgB,QA1BG;AA2BnB,SAAU;AACR,mBAAoB;AAClB,kBAAmB;AACjBhB,SAAU,EADO;AAEjBiB,WAAYrB,WAAa,KAAb,CAAqB,KAArB,CAA6BsB,SAFxB;AAGjBhB,WAAY,EAHK,CADD;;AAMlBiB,IAAK,CAAC,CANY;AAOlBP,UAAW,QAPO;AAQlBQ,KAAM,EARY;AASlBC,OAAQ,EATU;AAUlBP,OAAQ,EAVU;AAWlBQ,QAAS,GAXS;AAYlBC,kBAAmB,CAZD,CADZ;;AAeR,kBAAmB;AACjBC,UAAW,CAAC,EADK,CAfX,CA3BS;;;AA8CnB,kBAAmB;AACjB1B,MAAOJ,UAAU+B,eADA,CA9CA;;AAiDnB,oBAAqB;AACnB3B,MAAOJ,UAAU+B,eADE,CAjDF;;AAoDnB,kBAAmB;AACjB3B,MAAOJ,UAAU+B,eADA;AAEjBzB,SAAUN,UAAUO,cAFH;AAGjBC,WAAY,EAHK,CApDA,CADA;;;AA2DrBC,gBAAiBuB,sBAASC,EAAT,GAAgB,SAAhB;AACbjC,UAAUkC,eADG;AAEbV,SA7DiB;AA8DrBb,cAAe,KA9DM;AA+DrBW,eAAgB,eA/DK;AAgErBH,KAAM,CAhEe;AAiErBD,UAAW,SAjEU,CAAvB;;;AAoEA,MAAOf,eAAP;AACD,C","file":"FooterTab.js","sourcesContent":["import { Platform } from \"react-native\";\n\nimport variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const platform = variables.platform;\n\n const footerTabTheme = {\n \"NativeBase.Button\": {\n \".active\": {\n \"NativeBase.Text\": {\n color: variables.tabBarActiveTextColor,\n fontSize: variables.tabBarTextSize,\n lineHeight: 16\n },\n \"NativeBase.Icon\": {\n color: variables.tabBarActiveTextColor\n },\n \"NativeBase.IconNB\": {\n color: variables.tabBarActiveTextColor\n },\n backgroundColor: variables.tabActiveBgColor\n },\n flexDirection: null,\n backgroundColor: \"transparent\",\n borderColor: null,\n elevation: 0,\n shadowColor: null,\n shadowOffset: null,\n shadowRadius: null,\n shadowOpacity: null,\n alignSelf: \"center\",\n flex: 1,\n height: variables.footerHeight,\n justifyContent: \"center\",\n \".badge\": {\n \"NativeBase.Badge\": {\n \"NativeBase.Text\": {\n fontSize: 11,\n fontWeight: platform === \"ios\" ? \"600\" : undefined,\n lineHeight: 14\n },\n top: -3,\n alignSelf: \"center\",\n left: 10,\n zIndex: 99,\n height: 18,\n padding: 1.7,\n paddingHorizontal: 3\n },\n \"NativeBase.Icon\": {\n marginTop: -18\n }\n },\n \"NativeBase.Icon\": {\n color: variables.tabBarTextColor\n },\n \"NativeBase.IconNB\": {\n color: variables.tabBarTextColor\n },\n \"NativeBase.Text\": {\n color: variables.tabBarTextColor,\n fontSize: variables.tabBarTextSize,\n lineHeight: 16\n }\n },\n backgroundColor: Platform.OS === \"android\"\n ? variables.footerDefaultBg\n : undefined,\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n flex: 1,\n alignSelf: \"stretch\"\n };\n\n return footerTabTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/FooterTab.js"],"names":["variables","variable","platform","footerTabTheme","color","tabBarActiveTextColor","fontSize","tabBarTextSize","lineHeight","backgroundColor","tabActiveBgColor","flexDirection","borderColor","elevation","shadowColor","shadowOffset","shadowRadius","shadowOpacity","alignSelf","flex","height","footerHeight","justifyContent","fontWeight","undefined","top","left","zIndex","padding","paddingHorizontal","marginTop","tabBarTextColor","Platform","OS","footerDefaultBg"],"mappings":"yDAAA,yCAEA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,UAAWF,UAAUE,QAA3B,CAEA,GAAMC,gBAAiB,CACrB,oBAAqB,CACnB,UAAW,CACT,kBAAmB,CACjBC,MAAOJ,UAAUK,qBADA,CAEjBC,SAAUN,UAAUO,cAFH,CAGjBC,WAAY,EAHK,CADV,CAMT,kBAAmB,CACjBJ,MAAOJ,UAAUK,qBADA,CANV,CAST,oBAAqB,CACnBD,MAAOJ,UAAUK,qBADE,CATZ,CAYTI,gBAAiBT,UAAUU,gBAZlB,CADQ,CAenBC,cAAe,IAfI,CAgBnBF,gBAAiB,aAhBE,CAiBnBG,YAAa,IAjBM,CAkBnBC,UAAW,CAlBQ,CAmBnBC,YAAa,IAnBM,CAoBnBC,aAAc,IApBK,CAqBnBC,aAAc,IArBK,CAsBnBC,cAAe,IAtBI,CAuBnBC,UAAW,QAvBQ,CAwBnBC,KAAM,CAxBa,CAyBnBC,OAAQpB,UAAUqB,YAzBC,CA0BnBC,eAAgB,QA1BG,CA2BnB,SAAU,CACR,mBAAoB,CAClB,kBAAmB,CACjBhB,SAAU,EADO,CAEjBiB,WAAYrB,WAAa,KAAb,CAAqB,KAArB,CAA6BsB,SAFxB,CAGjBhB,WAAY,EAHK,CADD,CAMlBiB,IAAK,CAAC,CANY,CAOlBP,UAAW,QAPO,CAQlBQ,KAAM,EARY,CASlBC,OAAQ,EATU,CAUlBP,OAAQ,EAVU,CAWlBQ,QAAS,GAXS,CAYlBC,kBAAmB,CAZD,CADZ,CAeR,kBAAmB,CACjBC,UAAW,CAAC,EADK,CAfX,CA3BS,CA8CnB,kBAAmB,CACjB1B,MAAOJ,UAAU+B,eADA,CA9CA,CAiDnB,oBAAqB,CACnB3B,MAAOJ,UAAU+B,eADE,CAjDF,CAoDnB,kBAAmB,CACjB3B,MAAOJ,UAAU+B,eADA,CAEjBzB,SAAUN,UAAUO,cAFH,CAGjBC,WAAY,EAHK,CApDA,CADA,CA2DrBC,gBAAiBuB,sBAASC,EAAT,GAAgB,SAAhB,CACbjC,UAAUkC,eADG,CAEbV,SA7DiB,CA8DrBb,cAAe,KA9DM,CA+DrBW,eAAgB,eA/DK,CAgErBH,KAAM,CAhEe,CAiErBD,UAAW,SAjEU,CAAvB,CAoEA,MAAOf,eAAP,CACD,C","file":"FooterTab.js","sourcesContent":["import { Platform } from \"react-native\";\n\nimport variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const platform = variables.platform;\n\n const footerTabTheme = {\n \"NativeBase.Button\": {\n \".active\": {\n \"NativeBase.Text\": {\n color: variables.tabBarActiveTextColor,\n fontSize: variables.tabBarTextSize,\n lineHeight: 16\n },\n \"NativeBase.Icon\": {\n color: variables.tabBarActiveTextColor\n },\n \"NativeBase.IconNB\": {\n color: variables.tabBarActiveTextColor\n },\n backgroundColor: variables.tabActiveBgColor\n },\n flexDirection: null,\n backgroundColor: \"transparent\",\n borderColor: null,\n elevation: 0,\n shadowColor: null,\n shadowOffset: null,\n shadowRadius: null,\n shadowOpacity: null,\n alignSelf: \"center\",\n flex: 1,\n height: variables.footerHeight,\n justifyContent: \"center\",\n \".badge\": {\n \"NativeBase.Badge\": {\n \"NativeBase.Text\": {\n fontSize: 11,\n fontWeight: platform === \"ios\" ? \"600\" : undefined,\n lineHeight: 14\n },\n top: -3,\n alignSelf: \"center\",\n left: 10,\n zIndex: 99,\n height: 18,\n padding: 1.7,\n paddingHorizontal: 3\n },\n \"NativeBase.Icon\": {\n marginTop: -18\n }\n },\n \"NativeBase.Icon\": {\n color: variables.tabBarTextColor\n },\n \"NativeBase.IconNB\": {\n color: variables.tabBarTextColor\n },\n \"NativeBase.Text\": {\n color: variables.tabBarTextColor,\n fontSize: variables.tabBarTextSize,\n lineHeight: 16\n }\n },\n backgroundColor: Platform.OS === \"android\"\n ? variables.footerDefaultBg\n : undefined,\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n flex: 1,\n alignSelf: \"stretch\"\n };\n\n return footerTabTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Form.js b/dist/src/theme/components/Form.js index 9ecf0b873..a5f603a10 100644 --- a/dist/src/theme/components/Form.js +++ b/dist/src/theme/components/Form.js @@ -1,89 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var platform=variables.platform; - -var theme={ -"NativeBase.Item":{ -".fixedLabel":{ -"NativeBase.Label":{ -paddingLeft:null}, - -marginLeft:15}, - -".inlineLabel":{ -"NativeBase.Label":{ -paddingLeft:null}, - -marginLeft:15}, - -".placeholderLabel":{ -"NativeBase.Input":{}}, - -".stackedLabel":{ -"NativeBase.Label":{ -top:5, -paddingLeft:null}, - -"NativeBase.Input":{ -paddingLeft:null, -marginLeft:null}, - -"NativeBase.Icon":{ -marginTop:36}, - -marginLeft:15}, - -".floatingLabel":{ -"NativeBase.Input":{ -paddingLeft:null, -top:10, -marginLeft:null}, - -"NativeBase.Label":{ -left:0, -top:6}, - -"NativeBase.Icon":{ -top:6}, - -marginTop:15, -marginLeft:15}, - -".regular":{ -"NativeBase.Label":{ -left:0}, - -marginLeft:0}, - -".rounded":{ -"NativeBase.Label":{ -left:0}, - -marginLeft:0}, - -".underline":{ -"NativeBase.Label":{ -left:0, -top:0, -position:"relative"}, - -"NativeBase.Input":{ -left:-15}, - -marginLeft:15}, - -".last":{ -marginLeft:0, -paddingLeft:15}, - -"NativeBase.Label":{ -paddingRight:5}, - -marginLeft:15}}; - - - -return theme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var theme={"NativeBase.Item":{".fixedLabel":{"NativeBase.Label":{paddingLeft:null},marginLeft:15},".inlineLabel":{"NativeBase.Label":{paddingLeft:null},marginLeft:15},".placeholderLabel":{"NativeBase.Input":{}},".stackedLabel":{"NativeBase.Label":{top:5,paddingLeft:null},"NativeBase.Input":{paddingLeft:null,marginLeft:null},"NativeBase.Icon":{marginTop:36},marginLeft:15},".floatingLabel":{"NativeBase.Input":{paddingLeft:null,top:10,marginLeft:null},"NativeBase.Label":{left:0,top:6},"NativeBase.Icon":{top:6},marginTop:15,marginLeft:15},".regular":{"NativeBase.Label":{left:0},marginLeft:0},".rounded":{"NativeBase.Label":{left:0},marginLeft:0},".underline":{"NativeBase.Label":{left:0,top:0,position:"relative"},"NativeBase.Input":{left:-15},marginLeft:15},".last":{marginLeft:0,paddingLeft:15},"NativeBase.Label":{paddingRight:5},marginLeft:15}};return theme;}; //# sourceMappingURL=Form.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Form.js.map b/dist/src/theme/components/Form.js.map index fdfcd98c1..4ebfb7008 100644 --- a/dist/src/theme/components/Form.js.map +++ b/dist/src/theme/components/Form.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Form.js"],"names":["variables","variable","platform","theme","paddingLeft","marginLeft","top","marginTop","left","position","paddingRight"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,UAAWF,UAAUE,QAA3B;;AAEA,GAAMC,OAAQ;AACZ,kBAAmB;AACjB,cAAe;AACb,mBAAoB;AAClBC,YAAa,IADK,CADP;;AAIbC,WAAY,EAJC,CADE;;AAOjB,eAAgB;AACd,mBAAoB;AAClBD,YAAa,IADK,CADN;;AAIdC,WAAY,EAJE,CAPC;;AAajB,oBAAqB;AACnB,mBAAoB,EADD,CAbJ;;AAgBjB,gBAAiB;AACf,mBAAoB;AAClBC,IAAK,CADa;AAElBF,YAAa,IAFK,CADL;;AAKf,mBAAoB;AAClBA,YAAa,IADK;AAElBC,WAAY,IAFM,CALL;;AASf,kBAAmB;AACjBE,UAAW,EADM,CATJ;;AAYfF,WAAY,EAZG,CAhBA;;AA8BjB,iBAAkB;AAChB,mBAAoB;AAClBD,YAAa,IADK;AAElBE,IAAK,EAFa;AAGlBD,WAAY,IAHM,CADJ;;AAMhB,mBAAoB;AAClBG,KAAM,CADY;AAElBF,IAAK,CAFa,CANJ;;AAUhB,kBAAmB;AACjBA,IAAK,CADY,CAVH;;AAahBC,UAAW,EAbK;AAchBF,WAAY,EAdI,CA9BD;;AA8CjB,WAAY;AACV,mBAAoB;AAClBG,KAAM,CADY,CADV;;AAIVH,WAAY,CAJF,CA9CK;;AAoDjB,WAAY;AACV,mBAAoB;AAClBG,KAAM,CADY,CADV;;AAIVH,WAAY,CAJF,CApDK;;AA0DjB,aAAc;AACZ,mBAAoB;AAClBG,KAAM,CADY;AAElBF,IAAK,CAFa;AAGlBG,SAAU,UAHQ,CADR;;AAMZ,mBAAoB;AAClBD,KAAM,CAAC,EADW,CANR;;AASZH,WAAY,EATA,CA1DG;;AAqEjB,QAAS;AACPA,WAAY,CADL;AAEPD,YAAa,EAFN,CArEQ;;AAyEjB,mBAAoB;AAClBM,aAAc,CADI,CAzEH;;AA4EjBL,WAAY,EA5EK,CADP,CAAd;;;;AAiFA,MAAOF,MAAP;AACD,C","file":"Form.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const platform = variables.platform;\n\n const theme = {\n \"NativeBase.Item\": {\n \".fixedLabel\": {\n \"NativeBase.Label\": {\n paddingLeft: null\n },\n marginLeft: 15\n },\n \".inlineLabel\": {\n \"NativeBase.Label\": {\n paddingLeft: null\n },\n marginLeft: 15\n },\n \".placeholderLabel\": {\n \"NativeBase.Input\": {}\n },\n \".stackedLabel\": {\n \"NativeBase.Label\": {\n top: 5,\n paddingLeft: null\n },\n \"NativeBase.Input\": {\n paddingLeft: null,\n marginLeft: null\n },\n \"NativeBase.Icon\": {\n marginTop: 36\n },\n marginLeft: 15\n },\n \".floatingLabel\": {\n \"NativeBase.Input\": {\n paddingLeft: null,\n top: 10,\n marginLeft: null\n },\n \"NativeBase.Label\": {\n left: 0,\n top: 6\n },\n \"NativeBase.Icon\": {\n top: 6\n },\n marginTop: 15,\n marginLeft: 15\n },\n \".regular\": {\n \"NativeBase.Label\": {\n left: 0\n },\n marginLeft: 0\n },\n \".rounded\": {\n \"NativeBase.Label\": {\n left: 0\n },\n marginLeft: 0\n },\n \".underline\": {\n \"NativeBase.Label\": {\n left: 0,\n top: 0,\n position: \"relative\"\n },\n \"NativeBase.Input\": {\n left: -15\n },\n marginLeft: 15\n },\n \".last\": {\n marginLeft: 0,\n paddingLeft: 15\n },\n \"NativeBase.Label\": {\n paddingRight: 5\n },\n marginLeft: 15\n }\n };\n\n return theme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Form.js"],"names":["variables","variable","platform","theme","paddingLeft","marginLeft","top","marginTop","left","position","paddingRight"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,UAAWF,UAAUE,QAA3B,CAEA,GAAMC,OAAQ,CACZ,kBAAmB,CACjB,cAAe,CACb,mBAAoB,CAClBC,YAAa,IADK,CADP,CAIbC,WAAY,EAJC,CADE,CAOjB,eAAgB,CACd,mBAAoB,CAClBD,YAAa,IADK,CADN,CAIdC,WAAY,EAJE,CAPC,CAajB,oBAAqB,CACnB,mBAAoB,EADD,CAbJ,CAgBjB,gBAAiB,CACf,mBAAoB,CAClBC,IAAK,CADa,CAElBF,YAAa,IAFK,CADL,CAKf,mBAAoB,CAClBA,YAAa,IADK,CAElBC,WAAY,IAFM,CALL,CASf,kBAAmB,CACjBE,UAAW,EADM,CATJ,CAYfF,WAAY,EAZG,CAhBA,CA8BjB,iBAAkB,CAChB,mBAAoB,CAClBD,YAAa,IADK,CAElBE,IAAK,EAFa,CAGlBD,WAAY,IAHM,CADJ,CAMhB,mBAAoB,CAClBG,KAAM,CADY,CAElBF,IAAK,CAFa,CANJ,CAUhB,kBAAmB,CACjBA,IAAK,CADY,CAVH,CAahBC,UAAW,EAbK,CAchBF,WAAY,EAdI,CA9BD,CA8CjB,WAAY,CACV,mBAAoB,CAClBG,KAAM,CADY,CADV,CAIVH,WAAY,CAJF,CA9CK,CAoDjB,WAAY,CACV,mBAAoB,CAClBG,KAAM,CADY,CADV,CAIVH,WAAY,CAJF,CApDK,CA0DjB,aAAc,CACZ,mBAAoB,CAClBG,KAAM,CADY,CAElBF,IAAK,CAFa,CAGlBG,SAAU,UAHQ,CADR,CAMZ,mBAAoB,CAClBD,KAAM,CAAC,EADW,CANR,CASZH,WAAY,EATA,CA1DG,CAqEjB,QAAS,CACPA,WAAY,CADL,CAEPD,YAAa,EAFN,CArEQ,CAyEjB,mBAAoB,CAClBM,aAAc,CADI,CAzEH,CA4EjBL,WAAY,EA5EK,CADP,CAAd,CAiFA,MAAOF,MAAP,CACD,C","file":"Form.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const platform = variables.platform;\n\n const theme = {\n \"NativeBase.Item\": {\n \".fixedLabel\": {\n \"NativeBase.Label\": {\n paddingLeft: null\n },\n marginLeft: 15\n },\n \".inlineLabel\": {\n \"NativeBase.Label\": {\n paddingLeft: null\n },\n marginLeft: 15\n },\n \".placeholderLabel\": {\n \"NativeBase.Input\": {}\n },\n \".stackedLabel\": {\n \"NativeBase.Label\": {\n top: 5,\n paddingLeft: null\n },\n \"NativeBase.Input\": {\n paddingLeft: null,\n marginLeft: null\n },\n \"NativeBase.Icon\": {\n marginTop: 36\n },\n marginLeft: 15\n },\n \".floatingLabel\": {\n \"NativeBase.Input\": {\n paddingLeft: null,\n top: 10,\n marginLeft: null\n },\n \"NativeBase.Label\": {\n left: 0,\n top: 6\n },\n \"NativeBase.Icon\": {\n top: 6\n },\n marginTop: 15,\n marginLeft: 15\n },\n \".regular\": {\n \"NativeBase.Label\": {\n left: 0\n },\n marginLeft: 0\n },\n \".rounded\": {\n \"NativeBase.Label\": {\n left: 0\n },\n marginLeft: 0\n },\n \".underline\": {\n \"NativeBase.Label\": {\n left: 0,\n top: 0,\n position: \"relative\"\n },\n \"NativeBase.Input\": {\n left: -15\n },\n marginLeft: 15\n },\n \".last\": {\n marginLeft: 0,\n paddingLeft: 15\n },\n \"NativeBase.Label\": {\n paddingRight: 5\n },\n marginLeft: 15\n }\n };\n\n return theme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/H1.js b/dist/src/theme/components/H1.js index 32f74e56e..945090331 100644 --- a/dist/src/theme/components/H1.js +++ b/dist/src/theme/components/H1.js @@ -1,12 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var h1Theme={ -color:variables.textColor, -fontSize:variables.fontSizeH1, -lineHeight:variables.lineHeightH1}; - - -return h1Theme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var h1Theme={color:variables.textColor,fontSize:variables.fontSizeH1,lineHeight:variables.lineHeightH1};return h1Theme;}; //# sourceMappingURL=H1.js.map \ No newline at end of file diff --git a/dist/src/theme/components/H1.js.map b/dist/src/theme/components/H1.js.map index 3febc4015..2492a417a 100644 --- a/dist/src/theme/components/H1.js.map +++ b/dist/src/theme/components/H1.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/H1.js"],"names":["variables","variable","h1Theme","color","textColor","fontSize","fontSizeH1","lineHeight","lineHeightH1"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,SAAU;AACdC,MAAOH,UAAUI,SADH;AAEdC,SAAUL,UAAUM,UAFN;AAGdC,WAAYP,UAAUQ,YAHR,CAAhB;;;AAMA,MAAON,QAAP;AACD,C","file":"H1.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const h1Theme = {\n color: variables.textColor,\n fontSize: variables.fontSizeH1,\n lineHeight: variables.lineHeightH1,\n };\n\n return h1Theme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/H1.js"],"names":["variables","variable","h1Theme","color","textColor","fontSize","fontSizeH1","lineHeight","lineHeightH1"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,SAAU,CACdC,MAAOH,UAAUI,SADH,CAEdC,SAAUL,UAAUM,UAFN,CAGdC,WAAYP,UAAUQ,YAHR,CAAhB,CAMA,MAAON,QAAP,CACD,C","file":"H1.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const h1Theme = {\n color: variables.textColor,\n fontSize: variables.fontSizeH1,\n lineHeight: variables.lineHeightH1,\n };\n\n return h1Theme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/H2.js b/dist/src/theme/components/H2.js index d275ad799..410fc6e29 100644 --- a/dist/src/theme/components/H2.js +++ b/dist/src/theme/components/H2.js @@ -1,12 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var h2Theme={ -color:variables.textColor, -fontSize:variables.fontSizeH2, -lineHeight:variables.lineHeightH2}; - - -return h2Theme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var h2Theme={color:variables.textColor,fontSize:variables.fontSizeH2,lineHeight:variables.lineHeightH2};return h2Theme;}; //# sourceMappingURL=H2.js.map \ No newline at end of file diff --git a/dist/src/theme/components/H2.js.map b/dist/src/theme/components/H2.js.map index 52f5e47e6..1af9bec0f 100644 --- a/dist/src/theme/components/H2.js.map +++ b/dist/src/theme/components/H2.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/H2.js"],"names":["variables","variable","h2Theme","color","textColor","fontSize","fontSizeH2","lineHeight","lineHeightH2"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,SAAU;AACdC,MAAOH,UAAUI,SADH;AAEdC,SAAUL,UAAUM,UAFN;AAGdC,WAAYP,UAAUQ,YAHR,CAAhB;;;AAMA,MAAON,QAAP;AACD,C","file":"H2.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const h2Theme = {\n color: variables.textColor,\n fontSize: variables.fontSizeH2,\n lineHeight: variables.lineHeightH2,\n };\n\n return h2Theme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/H2.js"],"names":["variables","variable","h2Theme","color","textColor","fontSize","fontSizeH2","lineHeight","lineHeightH2"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,SAAU,CACdC,MAAOH,UAAUI,SADH,CAEdC,SAAUL,UAAUM,UAFN,CAGdC,WAAYP,UAAUQ,YAHR,CAAhB,CAMA,MAAON,QAAP,CACD,C","file":"H2.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const h2Theme = {\n color: variables.textColor,\n fontSize: variables.fontSizeH2,\n lineHeight: variables.lineHeightH2,\n };\n\n return h2Theme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/H3.js b/dist/src/theme/components/H3.js index b73019e05..9a759c98f 100644 --- a/dist/src/theme/components/H3.js +++ b/dist/src/theme/components/H3.js @@ -1,12 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var h3Theme={ -color:variables.textColor, -fontSize:variables.fontSizeH3, -lineHeight:variables.lineHeightH3}; - - -return h3Theme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var h3Theme={color:variables.textColor,fontSize:variables.fontSizeH3,lineHeight:variables.lineHeightH3};return h3Theme;}; //# sourceMappingURL=H3.js.map \ No newline at end of file diff --git a/dist/src/theme/components/H3.js.map b/dist/src/theme/components/H3.js.map index 7f627b3b1..e089a82aa 100644 --- a/dist/src/theme/components/H3.js.map +++ b/dist/src/theme/components/H3.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/H3.js"],"names":["variables","variable","h3Theme","color","textColor","fontSize","fontSizeH3","lineHeight","lineHeightH3"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,SAAU;AACdC,MAAOH,UAAUI,SADH;AAEdC,SAAUL,UAAUM,UAFN;AAGdC,WAAYP,UAAUQ,YAHR,CAAhB;;;AAMA,MAAON,QAAP;AACD,C","file":"H3.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const h3Theme = {\n color: variables.textColor,\n fontSize: variables.fontSizeH3,\n lineHeight: variables.lineHeightH3\n };\n\n return h3Theme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/H3.js"],"names":["variables","variable","h3Theme","color","textColor","fontSize","fontSizeH3","lineHeight","lineHeightH3"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,SAAU,CACdC,MAAOH,UAAUI,SADH,CAEdC,SAAUL,UAAUM,UAFN,CAGdC,WAAYP,UAAUQ,YAHR,CAAhB,CAMA,MAAON,QAAP,CACD,C","file":"H3.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const h3Theme = {\n color: variables.textColor,\n fontSize: variables.fontSizeH3,\n lineHeight: variables.lineHeightH3\n };\n\n return h3Theme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Header.js b/dist/src/theme/components/Header.js index fa13fef59..336b94234 100644 --- a/dist/src/theme/components/Header.js +++ b/dist/src/theme/components/Header.js @@ -1,399 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native"); - -var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var platformStyle=variables.platformStyle; -var platform=variables.platform; - -var headerTheme={ -".span":{ -height:128, -"NativeBase.Left":{ -alignSelf:"flex-start"}, - -"NativeBase.Body":{ -alignSelf:"flex-end", -alignItems:"flex-start", -justifyContent:"center", -paddingBottom:26}, - -"NativeBase.Right":{ -alignSelf:"flex-start"}}, - - -".hasSubtitle":{ -"NativeBase.Body":{ -"NativeBase.Title":{ -fontSize:variables.titleFontSize-2, -fontFamily:variables.titleFontfamily, -textAlign:"center", -fontWeight:"500", -paddingBottom:3}, - -"NativeBase.Subtitle":{ -fontSize:variables.subTitleFontSize, -fontFamily:variables.titleFontfamily, -color:variables.subtitleColor, -textAlign:"center"}}}, - - - -".transparent":{ -backgroundColor:"transparent", -borderBottomColor:"transparent", -elevation:0, -shadowColor:null, -shadowOffset:null, -shadowRadius:null, -shadowOpacity:null, -paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined, -height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight}, - -".noShadow":{ -elevation:0, -shadowColor:null, -shadowOffset:null, -shadowRadius:null, -shadowOpacity:null}, - -".hasTabs":{ -elevation:0, -shadowColor:null, -shadowOffset:null, -shadowRadius:null, -shadowOpacity:null, -borderBottomWidth:null}, - -".hasSegment":{ -elevation:0, -shadowColor:null, -shadowOffset:null, -shadowRadius:null, -shadowOpacity:null, -borderBottomWidth:null, -"NativeBase.Left":{ -flex:0.3}, - -"NativeBase.Right":{ -flex:0.3}, - -"NativeBase.Body":{ -flex:1, -"NativeBase.Segment":{ -marginRight:0, -alignSelf:"center", -"NativeBase.Button":{ -paddingLeft:0, -paddingRight:0}}}}, - - - - -".noLeft":{ -"NativeBase.Left":{ -width:platform==="ios"?undefined:0, -flex:platform==="ios"?1:0}, - -"NativeBase.Body":{ -"NativeBase.Title":{ -paddingLeft:platform==="ios"?undefined:10}, - -"NativeBase.Subtitle":{ -paddingLeft:platform==="ios"?undefined:10}}}, - - - -"NativeBase.Button":{ -justifyContent:"center", -alignSelf:"center", -alignItems:"center", -".transparent":{ -"NativeBase.Text":{ -color:variables.toolbarBtnTextColor, -fontWeight:"600"}, - -"NativeBase.Icon":{ -color:variables.toolbarBtnColor}, - -"NativeBase.IconNB":{ -color:variables.toolbarBtnColor}, - -paddingHorizontal:variables.buttonPadding}, - -paddingHorizontal:15}, - -".searchBar":{ -"NativeBase.Item":{ -"NativeBase.Icon":{ -backgroundColor:"transparent", -color:variables.dropdownLinkColor, -fontSize:variables.toolbarSearchIconSize, -alignItems:"center", -marginTop:2, -paddingRight:10, -paddingLeft:10}, - -"NativeBase.IconNB":{ -backgroundColor:"transparent", -color:null, -alignSelf:"center"}, - -"NativeBase.Input":{ -alignSelf:"center", -lineHeight:null, -height:variables.searchBarInputHeight}, - -alignSelf:"center", -alignItems:"center", -justifyContent:"flex-start", -flex:1, -height:variables.searchBarHeight, -borderColor:"transparent", -backgroundColor:variables.toolbarInputColor}, - -"NativeBase.Button":{ -".transparent":{ -"NativeBase.Text":{ -fontWeight:"500"}, - -paddingHorizontal:null, -paddingLeft:platform==="ios"?10:null}, - -paddingHorizontal:platform==="ios"?undefined:null, -width:platform==="ios"?undefined:0, -height:platform==="ios"?undefined:0}}, - - -".rounded":{ -"NativeBase.Item":{ -borderRadius: -platform==="ios"&&platformStyle!=="material"?25:3}}, - - -"NativeBase.Left":{ -"NativeBase.Button":{ -".hasText":{ -marginLeft:-10, -height:30, -"NativeBase.Icon":{ -color:variables.toolbarBtnColor, -fontSize:variables.iconHeaderSize, -marginTop:2, -marginRight:5, -marginLeft:2}, - -"NativeBase.Text":{ -color:variables.toolbarBtnTextColor, -fontSize:platform==="ios"?17:0, -marginLeft:7, -lineHeight:19.5}, - -"NativeBase.IconNB":{ -color:variables.toolbarBtnColor, -fontSize:variables.iconHeaderSize, -marginTop:2, -marginRight:5, -marginLeft:2}}, - - -".transparent":{ -marginLeft: -platform==="ios"&&platformStyle!=="material"?-3:0, -"NativeBase.Icon":{ -color:variables.toolbarBtnColor, -fontSize: -platform==="ios"&&variables.platformStyle!=="material"? -variables.iconHeaderSize+1: -variables.iconHeaderSize, -marginTop:0, -marginRight:2, -marginLeft:1, -paddingTop:1}, - -"NativeBase.IconNB":{ -color:variables.toolbarBtnColor, -fontSize: -platform==="ios"&&variables.platformStyle!=="material"? -variables.iconHeaderSize+1: -variables.iconHeaderSize-2, -marginTop:0, -marginRight:2, -marginLeft:1, -paddingTop:1}, - -"NativeBase.Text":{ -color:variables.toolbarBtnTextColor, -fontSize:platform==="ios"?17:0, -top:platform==="ios"?1:-1.5, -paddingLeft: -platform==="ios"&&platformStyle!=="material"?2:5, -paddingRight: -platform==="ios"&&platformStyle!=="material"? -undefined: -10}, - -backgroundColor:"transparent", -borderColor:null, -elevation:0, -shadowColor:null, -shadowOffset:null, -shadowRadius:null, -shadowOpacity:null}, - -"NativeBase.Icon":{ -color:variables.toolbarBtnColor}, - -"NativeBase.IconNB":{ -color:variables.toolbarBtnColor}, - -alignSelf:null, -paddingRight:variables.buttonPadding, -paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8}, - -flex:platform==="ios"&&platformStyle!=="material"?1:0.4, -alignSelf:"center", -alignItems:"flex-start"}, - -"NativeBase.Body":{ -flex:1, -alignItems: -platform==="ios"&&platformStyle!=="material"? -"center": -"flex-start", -alignSelf:"center", -"NativeBase.Segment":{ -borderWidth:0, -alignSelf:"flex-end", -marginRight:platform==="ios"?-40:-55}, - -"NativeBase.Button":{ -alignSelf:"center", -".transparent":{ -backgroundColor:"transparent"}, - -"NativeBase.Icon":{ -color:variables.toolbarBtnColor}, - -"NativeBase.IconNB":{ -color:variables.toolbarBtnColor}, - -"NativeBase.Text":{ -color:variables.inverseTextColor, -backgroundColor:"transparent"}}}, - - - -"NativeBase.Right":{ -"NativeBase.Button":{ -".hasText":{ -height:30, -"NativeBase.Icon":{ -color:variables.toolbarBtnColor, -fontSize:variables.iconHeaderSize-2, -marginTop:2, -marginRight:2, -marginLeft:5}, - -"NativeBase.Text":{ -color:variables.toolbarBtnTextColor, -fontSize:platform==="ios"?17:14, -lineHeight:19.5}, - -"NativeBase.IconNB":{ -color:variables.toolbarBtnColor, -fontSize:variables.iconHeaderSize-2, -marginTop:2, -marginRight:2, -marginLeft:5}}, - - -".transparent":{ -marginRight:platform==="ios"?-9:-5, -paddingLeft:15, -paddingRight:12, -paddingHorizontal:15, -borderRadius:50, -"NativeBase.Icon":{ -color:variables.toolbarBtnColor, -fontSize: -platform==="ios"&&variables.platformStyle!=="material"? -variables.iconHeaderSize-9: -variables.iconHeaderSize-2, -marginTop:0, -marginLeft:2, -marginRight:0}, - - -"NativeBase.IconNB":{ -color:variables.toolbarBtnColor, -fontSize: -platform==="ios"&&variables.platformStyle!=="material"? -variables.iconHeaderSize-9: -variables.iconHeaderSize-2, -marginTop:0, -marginLeft:2, -marginRight:0}, - - -"NativeBase.Text":{ -color:variables.toolbarBtnTextColor, -fontSize:platform==="ios"?17:14, -top:platform==="ios"?1:-1.5, -paddingRight: -platform==="ios"&&variables.platformStyle!=="material"? -0: -undefined}, - -backgroundColor:"transparent", -borderColor:null, -elevation:0, -shadowColor:null, -shadowOffset:null, -shadowRadius:null, -shadowOpacity:null}, - -"NativeBase.Icon":{ -color:variables.toolbarBtnColor}, - -"NativeBase.IconNB":{ -color:variables.toolbarBtnColor}, - -alignSelf:null, -paddingHorizontal:variables.buttonPadding}, - -flex:1, -alignSelf:"center", -alignItems:"flex-end", -flexDirection:"row", -justifyContent:"flex-end"}, - -backgroundColor:variables.toolbarDefaultBg, -flexDirection:"row", - -paddingLeft: -platform==="ios"&&variables.platformStyle!=="material"?6:10, -paddingRight:10, -justifyContent:"center", -paddingTop:platform==="ios"?18:0, -borderBottomWidth: -platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0, -borderBottomColor:variables.toolbarDefaultBorder, -height: -variables.platform==="ios"&&variables.platformStyle==="material"? -variables.toolbarHeight+_reactNative.StatusBar.height: -variables.toolbarHeight, -elevation:3, -shadowColor:platformStyle==="material"?"#000":undefined, -shadowOffset: -platformStyle==="material"?{width:0,height:2}:undefined, -shadowOpacity:platformStyle==="material"?0.2:undefined, -shadowRadius:platformStyle==="material"?1.2:undefined, -top:0, -left:0, -right:0}; - - -return headerTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var headerTheme={".span":{height:128,"NativeBase.Left":{alignSelf:"flex-start"},"NativeBase.Body":{alignSelf:"flex-end",alignItems:"flex-start",justifyContent:"center",paddingBottom:26},"NativeBase.Right":{alignSelf:"flex-start"}},".hasSubtitle":{"NativeBase.Body":{"NativeBase.Title":{fontSize:variables.titleFontSize-2,fontFamily:variables.titleFontfamily,textAlign:"center",fontWeight:"500",paddingBottom:3},"NativeBase.Subtitle":{fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center"}}},".transparent":{backgroundColor:"transparent",borderBottomColor:"transparent",elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,paddingTop:platform==="android"?_reactNative.StatusBar.currentHeight:undefined,height:platform==="android"?variables.toolbarHeight+_reactNative.StatusBar.currentHeight:variables.toolbarHeight},".noShadow":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},".hasTabs":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null},".hasSegment":{elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null,borderBottomWidth:null,"NativeBase.Left":{flex:0.3},"NativeBase.Right":{flex:0.3},"NativeBase.Body":{flex:1,"NativeBase.Segment":{marginRight:0,alignSelf:"center","NativeBase.Button":{paddingLeft:0,paddingRight:0}}}},".noLeft":{"NativeBase.Left":{width:platform==="ios"?undefined:0,flex:platform==="ios"?1:0},"NativeBase.Body":{"NativeBase.Title":{paddingLeft:platform==="ios"?undefined:10},"NativeBase.Subtitle":{paddingLeft:platform==="ios"?undefined:10}}},"NativeBase.Button":{justifyContent:"center",alignSelf:"center",alignItems:"center",".transparent":{"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontWeight:"600"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},paddingHorizontal:variables.buttonPadding},paddingHorizontal:15},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:variables.toolbarSearchIconSize,alignItems:"center",marginTop:2,paddingRight:10,paddingLeft:10},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center",lineHeight:null,height:variables.searchBarInputHeight},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:variables.searchBarHeight,borderColor:"transparent",backgroundColor:variables.toolbarInputColor},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0}},".rounded":{"NativeBase.Item":{borderRadius:platform==="ios"&&platformStyle!=="material"?25:3}},"NativeBase.Left":{"NativeBase.Button":{".hasText":{marginLeft:-10,height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,marginLeft:7,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize,marginTop:2,marginRight:5,marginLeft:2}},".transparent":{marginLeft:platform==="ios"&&platformStyle!=="material"?-3:0,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize+1:variables.iconHeaderSize-2,marginTop:0,marginRight:2,marginLeft:1,paddingTop:1},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:0,top:platform==="ios"?1:-1.5,paddingLeft:platform==="ios"&&platformStyle!=="material"?2:5,paddingRight:platform==="ios"&&platformStyle!=="material"?undefined:10},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingRight:variables.buttonPadding,paddingLeft:platform==="ios"&&platformStyle!=="material"?4:8},flex:platform==="ios"&&platformStyle!=="material"?1:0.4,alignSelf:"center",alignItems:"flex-start"},"NativeBase.Body":{flex:1,alignItems:platform==="ios"&&platformStyle!=="material"?"center":"flex-start",alignSelf:"center","NativeBase.Segment":{borderWidth:0,alignSelf:"flex-end",marginRight:platform==="ios"?-40:-55},"NativeBase.Button":{alignSelf:"center",".transparent":{backgroundColor:"transparent"},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},"NativeBase.Text":{color:variables.inverseTextColor,backgroundColor:"transparent"}}},"NativeBase.Right":{"NativeBase.Button":{".hasText":{height:30,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,lineHeight:19.5},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:variables.iconHeaderSize-2,marginTop:2,marginRight:2,marginLeft:5}},".transparent":{marginRight:platform==="ios"?-9:-5,paddingLeft:15,paddingRight:12,paddingHorizontal:15,borderRadius:50,"NativeBase.Icon":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.IconNB":{color:variables.toolbarBtnColor,fontSize:platform==="ios"&&variables.platformStyle!=="material"?variables.iconHeaderSize-9:variables.iconHeaderSize-2,marginTop:0,marginLeft:2,marginRight:0},"NativeBase.Text":{color:variables.toolbarBtnTextColor,fontSize:platform==="ios"?17:14,top:platform==="ios"?1:-1.5,paddingRight:platform==="ios"&&variables.platformStyle!=="material"?0:undefined},backgroundColor:"transparent",borderColor:null,elevation:0,shadowColor:null,shadowOffset:null,shadowRadius:null,shadowOpacity:null},"NativeBase.Icon":{color:variables.toolbarBtnColor},"NativeBase.IconNB":{color:variables.toolbarBtnColor},alignSelf:null,paddingHorizontal:variables.buttonPadding},flex:1,alignSelf:"center",alignItems:"flex-end",flexDirection:"row",justifyContent:"flex-end"},backgroundColor:variables.toolbarDefaultBg,flexDirection:"row",paddingLeft:platform==="ios"&&variables.platformStyle!=="material"?6:10,paddingRight:10,justifyContent:"center",paddingTop:platform==="ios"?18:0,borderBottomWidth:platform==="ios"?1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1):0,borderBottomColor:variables.toolbarDefaultBorder,height:variables.platform==="ios"&&variables.platformStyle==="material"?variables.toolbarHeight+_reactNative.StatusBar.height:variables.toolbarHeight,elevation:3,shadowColor:platformStyle==="material"?"#000":undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,top:0,left:0,right:0};return headerTheme;}; //# sourceMappingURL=Header.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Header.js.map b/dist/src/theme/components/Header.js.map index c7e51bd99..b7ee5b0cb 100644 --- a/dist/src/theme/components/Header.js.map +++ b/dist/src/theme/components/Header.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Header.js"],"names":["variables","variable","platformStyle","platform","headerTheme","height","alignSelf","alignItems","justifyContent","paddingBottom","fontSize","titleFontSize","fontFamily","titleFontfamily","textAlign","fontWeight","subTitleFontSize","color","subtitleColor","backgroundColor","borderBottomColor","elevation","shadowColor","shadowOffset","shadowRadius","shadowOpacity","paddingTop","StatusBar","currentHeight","undefined","toolbarHeight","borderBottomWidth","flex","marginRight","paddingLeft","paddingRight","width","toolbarBtnTextColor","toolbarBtnColor","paddingHorizontal","buttonPadding","dropdownLinkColor","toolbarSearchIconSize","marginTop","lineHeight","searchBarInputHeight","searchBarHeight","borderColor","toolbarInputColor","borderRadius","marginLeft","iconHeaderSize","top","borderWidth","inverseTextColor","flexDirection","toolbarDefaultBg","PixelRatio","getPixelSizeForLayoutSize","toolbarDefaultBorder","left","right"],"mappings":"yDAAA;;AAEA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,eAAgBF,UAAUE,aAAhC;AACA,GAAMC,UAAWH,UAAUG,QAA3B;;AAEA,GAAMC,aAAc;AAClB,QAAS;AACPC,OAAQ,GADD;AAEP,kBAAmB;AACjBC,UAAW,YADM,CAFZ;;AAKP,kBAAmB;AACjBA,UAAW,UADM;AAEjBC,WAAY,YAFK;AAGjBC,eAAgB,QAHC;AAIjBC,cAAe,EAJE,CALZ;;AAWP,mBAAoB;AAClBH,UAAW,YADO,CAXb,CADS;;;AAgBlB,eA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/EO;AAgFlBC,WAAY,UAhFM;AAiFlBgD,cAAe,KAjFG;AAkFlB/C,eAAgB,UAlFE,CAtRF;;AA0WlBW,gBAAiBnB,UAAUwD,gBA1WT;AA2WlBD,cAAe,KA3WG;;AA6WlBrB;AACE/B,WAAa,KAAb,EAAsBH,UAAUE,aAAV,GAA4B,UAAlD,CAA+D,CAA/D,CAAmE,EA9WnD;AA+WlBiC,aAAc,EA/WI;AAgXlB3B,eAAgB,QAhXE;AAiXlBkB,WAAYvB,WAAa,KAAb,CAAqB,EAArB,CAA0B,CAjXpB;AAkXlB4B;AACE5B,WAAa,KAAb,CAAqB,EAAIsD,wBAAWC,yBAAX,CAAqC,CAArC,CAAzB,CAAmE,CAnXnD;AAoXlBtC,kBAAmBpB,UAAU2D,oBApXX;AAqXlBtD;AACEL,UAAUG,QAAV,GAAuB,KAAvB,EAAgCH,UAAUE,aAAV,GAA4B,UAA5D;AACIF,UAAU8B,aAAV,CAA0BH,uBAAUtB,MADxC;AAEIL,UAAU8B,aAxXE;AAyXlBT,UAAW,CAzXO;AA0XlBC,YAAapB,gBAAkB,UAAlB,CAA+B,MAA/B,CAAwC2B,SA1XnC;AA2XlBN;AACErB,gBAAkB,UAAlB,CAA+B,CAAEkC,MAAO,CAAT,CAAY/B,OAAQ,CAApB,CAA/B,CAAyDwB,SA5XzC;AA6XlBJ,cAAevB,gBAAkB,UAAlB,CAA+B,GAA/B,CAAqC2B,SA7XlC;AA8XlBL,aAActB,gBAAkB,UAAlB,CAA+B,GAA/B,CAAqC2B,SA9XjC;AA+XlBuB,IAAK,CA/Xa;AAgYlBQ,KAAM,CAhYY;AAiYlBC,MAAO,CAjYW,CAApB;;;AAoYA,MAAOzD,YAAP;AACD,C","file":"Header.js","sourcesContent":["import { PixelRatio, StatusBar } from \"react-native\";\n\nimport variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const platformStyle = variables.platformStyle;\n const platform = variables.platform;\n\n const headerTheme = {\n \".span\": {\n height: 128,\n \"NativeBase.Left\": {\n alignSelf: \"flex-start\"\n },\n \"NativeBase.Body\": {\n alignSelf: \"flex-end\",\n alignItems: \"flex-start\",\n justifyContent: \"center\",\n paddingBottom: 26\n },\n \"NativeBase.Right\": {\n alignSelf: \"flex-start\"\n }\n },\n \".hasSubtitle\": {\n \"NativeBase.Body\": {\n \"NativeBase.Title\": {\n fontSize: variables.titleFontSize - 2,\n fontFamily: variables.titleFontfamily,\n textAlign: \"center\",\n fontWeight: \"500\",\n paddingBottom: 3\n },\n \"NativeBase.Subtitle\": {\n fontSize: variables.subTitleFontSize,\n fontFamily: variables.titleFontfamily,\n color: variables.subtitleColor,\n textAlign: \"center\"\n }\n }\n },\n \".transparent\": {\n backgroundColor: \"transparent\",\n borderBottomColor: \"transparent\",\n elevation: 0,\n shadowColor: null,\n shadowOffset: null,\n shadowRadius: null,\n shadowOpacity: null,\n paddingTop: platform === \"android\" ? StatusBar.currentHeight : undefined,\n height: platform === \"android\" ? variables.toolbarHeight + StatusBar.currentHeight : variables.toolbarHeight\n },\n \".noShadow\": {\n elevation: 0,\n shadowColor: null,\n shadowOffset: null,\n shadowRadius: null,\n shadowOpacity: null\n },\n \".hasTabs\": {\n elevation: 0,\n shadowColor: null,\n shadowOffset: null,\n shadowRadius: null,\n shadowOpacity: null,\n borderBottomWidth: null\n },\n \".hasSegment\": {\n elevation: 0,\n shadowColor: null,\n shadowOffset: null,\n shadowRadius: null,\n shadowOpacity: null,\n borderBottomWidth: null,\n \"NativeBase.Left\": {\n flex: 0.3\n },\n \"NativeBase.Right\": {\n flex: 0.3\n },\n \"NativeBase.Body\": {\n flex: 1,\n \"NativeBase.Segment\": {\n marginRight: 0,\n alignSelf: \"center\",\n \"NativeBase.Button\": {\n paddingLeft: 0,\n paddingRight: 0\n }\n }\n }\n },\n \".noLeft\": {\n \"NativeBase.Left\": {\n width: platform === \"ios\" ? undefined : 0,\n flex: platform === \"ios\" ? 1 : 0\n },\n \"NativeBase.Body\": {\n \"NativeBase.Title\": {\n paddingLeft: platform === \"ios\" ? undefined : 10\n },\n \"NativeBase.Subtitle\": {\n paddingLeft: platform === \"ios\" ? undefined : 10\n }\n }\n },\n \"NativeBase.Button\": {\n justifyContent: \"center\",\n alignSelf: \"center\",\n alignItems: \"center\",\n \".transparent\": {\n \"NativeBase.Text\": {\n color: variables.toolbarBtnTextColor,\n fontWeight: \"600\"\n },\n \"NativeBase.Icon\": {\n color: variables.toolbarBtnColor\n },\n \"NativeBase.IconNB\": {\n color: variables.toolbarBtnColor\n },\n paddingHorizontal: variables.buttonPadding\n },\n paddingHorizontal: 15\n },\n \".searchBar\": {\n \"NativeBase.Item\": {\n \"NativeBase.Icon\": {\n backgroundColor: \"transparent\",\n color: variables.dropdownLinkColor,\n fontSize: variables.toolbarSearchIconSize,\n alignItems: \"center\",\n marginTop: 2,\n paddingRight: 10,\n paddingLeft: 10\n },\n \"NativeBase.IconNB\": {\n backgroundColor: \"transparent\",\n color: null,\n alignSelf: \"center\"\n },\n \"NativeBase.Input\": {\n alignSelf: \"center\",\n lineHeight: null,\n height: variables.searchBarInputHeight\n },\n alignSelf: \"center\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n flex: 1,\n height: variables.searchBarHeight,\n borderColor: \"transparent\",\n backgroundColor: variables.toolbarInputColor\n },\n \"NativeBase.Button\": {\n \".transparent\": {\n \"NativeBase.Text\": {\n fontWeight: \"500\"\n },\n paddingHorizontal: null,\n paddingLeft: platform === \"ios\" ? 10 : null\n },\n paddingHorizontal: platform === \"ios\" ? undefined : null,\n width: platform === \"ios\" ? undefined : 0,\n height: platform === \"ios\" ? undefined : 0\n }\n },\n \".rounded\": {\n \"NativeBase.Item\": {\n borderRadius:\n platform === \"ios\" && platformStyle !== \"material\" ? 25 : 3\n }\n },\n \"NativeBase.Left\": {\n \"NativeBase.Button\": {\n \".hasText\": {\n marginLeft: -10,\n height: 30,\n \"NativeBase.Icon\": {\n color: variables.toolbarBtnColor,\n fontSize: variables.iconHeaderSize,\n marginTop: 2,\n marginRight: 5,\n marginLeft: 2\n },\n \"NativeBase.Text\": {\n color: variables.toolbarBtnTextColor,\n fontSize: platform === \"ios\" ? 17 : 0,\n marginLeft: 7,\n lineHeight: 19.5\n },\n \"NativeBase.IconNB\": {\n color: variables.toolbarBtnColor,\n fontSize: variables.iconHeaderSize,\n marginTop: 2,\n marginRight: 5,\n marginLeft: 2\n }\n },\n \".transparent\": {\n marginLeft:\n platform === \"ios\" && platformStyle !== \"material\" ? -3 : 0,\n \"NativeBase.Icon\": {\n color: variables.toolbarBtnColor,\n fontSize:\n platform === \"ios\" && variables.platformStyle !== \"material\"\n ? variables.iconHeaderSize + 1\n : variables.iconHeaderSize,\n marginTop: 0,\n marginRight: 2,\n marginLeft: 1,\n paddingTop: 1\n },\n \"NativeBase.IconNB\": {\n color: variables.toolbarBtnColor,\n fontSize:\n platform === \"ios\" && variables.platformStyle !== \"material\"\n ? variables.iconHeaderSize + 1\n : variables.iconHeaderSize - 2,\n marginTop: 0,\n marginRight: 2,\n marginLeft: 1,\n paddingTop: 1\n },\n \"NativeBase.Text\": {\n color: variables.toolbarBtnTextColor,\n fontSize: platform === \"ios\" ? 17 : 0,\n top: platform === \"ios\" ? 1 : -1.5,\n paddingLeft:\n platform === \"ios\" && platformStyle !== \"material\" ? 2 : 5,\n paddingRight:\n platform === \"ios\" && platformStyle !== \"material\"\n ? undefined\n : 10\n },\n backgroundColor: \"transparent\",\n borderColor: null,\n elevation: 0,\n shadowColor: null,\n shadowOffset: null,\n shadowRadius: null,\n shadowOpacity: null\n },\n \"NativeBase.Icon\": {\n color: variables.toolbarBtnColor\n },\n \"NativeBase.IconNB\": {\n color: variables.toolbarBtnColor\n },\n alignSelf: null,\n paddingRight: variables.buttonPadding,\n paddingLeft: platform === \"ios\" && platformStyle !== \"material\" ? 4 : 8\n },\n flex: platform === \"ios\" && platformStyle !== \"material\" ? 1 : 0.4,\n alignSelf: \"center\",\n alignItems: \"flex-start\"\n },\n \"NativeBase.Body\": {\n flex: 1,\n alignItems:\n platform === \"ios\" && platformStyle !== \"material\"\n ? \"center\"\n : \"flex-start\",\n alignSelf: \"center\",\n \"NativeBase.Segment\": {\n borderWidth: 0,\n alignSelf: \"flex-end\",\n marginRight: platform === \"ios\" ? -40 : -55\n },\n \"NativeBase.Button\": {\n alignSelf: \"center\",\n \".transparent\": {\n backgroundColor: \"transparent\"\n },\n \"NativeBase.Icon\": {\n color: variables.toolbarBtnColor\n },\n \"NativeBase.IconNB\": {\n color: variables.toolbarBtnColor\n },\n \"NativeBase.Text\": {\n color: variables.inverseTextColor,\n backgroundColor: \"transparent\"\n }\n }\n },\n \"NativeBase.Right\": {\n \"NativeBase.Button\": {\n \".hasText\": {\n height: 30,\n \"NativeBase.Icon\": {\n color: variables.toolbarBtnColor,\n fontSize: variables.iconHeaderSize - 2,\n marginTop: 2,\n marginRight: 2,\n marginLeft: 5\n },\n \"NativeBase.Text\": {\n color: variables.toolbarBtnTextColor,\n fontSize: platform === \"ios\" ? 17 : 14,\n lineHeight: 19.5\n },\n \"NativeBase.IconNB\": {\n color: variables.toolbarBtnColor,\n fontSize: variables.iconHeaderSize - 2,\n marginTop: 2,\n marginRight: 2,\n marginLeft: 5\n }\n },\n \".transparent\": {\n marginRight: platform === \"ios\" ? -9 : -5,\n paddingLeft: 15,\n paddingRight: 12,\n paddingHorizontal: 15,\n borderRadius: 50,\n \"NativeBase.Icon\": {\n color: variables.toolbarBtnColor,\n fontSize:\n platform === \"ios\" && variables.platformStyle !== \"material\"\n ? variables.iconHeaderSize - 9\n : variables.iconHeaderSize - 2,\n marginTop: 0,\n marginLeft: 2,\n marginRight: 0\n // paddingTop: 0\n },\n \"NativeBase.IconNB\": {\n color: variables.toolbarBtnColor,\n fontSize:\n platform === \"ios\" && variables.platformStyle !== \"material\"\n ? variables.iconHeaderSize - 9\n : variables.iconHeaderSize - 2,\n marginTop: 0,\n marginLeft: 2,\n marginRight: 0\n // paddingTop: 0\n },\n \"NativeBase.Text\": {\n color: variables.toolbarBtnTextColor,\n fontSize: platform === \"ios\" ? 17 : 14,\n top: platform === \"ios\" ? 1 : -1.5,\n paddingRight:\n platform === \"ios\" && variables.platformStyle !== \"material\"\n ? 0\n : undefined\n },\n backgroundColor: \"transparent\",\n borderColor: null,\n elevation: 0,\n shadowColor: null,\n shadowOffset: null,\n shadowRadius: null,\n shadowOpacity: null\n },\n \"NativeBase.Icon\": {\n color: variables.toolbarBtnColor\n },\n \"NativeBase.IconNB\": {\n color: variables.toolbarBtnColor\n },\n alignSelf: null,\n paddingHorizontal: variables.buttonPadding\n },\n flex: 1,\n alignSelf: \"center\",\n alignItems: \"flex-end\",\n flexDirection: \"row\",\n justifyContent: \"flex-end\"\n },\n backgroundColor: variables.toolbarDefaultBg,\n flexDirection: \"row\",\n // paddingHorizontal: 10,\n paddingLeft:\n platform === \"ios\" && variables.platformStyle !== \"material\" ? 6 : 10,\n paddingRight: 10,\n justifyContent: \"center\",\n paddingTop: platform === \"ios\" ? 18 : 0,\n borderBottomWidth:\n platform === \"ios\" ? 1 / PixelRatio.getPixelSizeForLayoutSize(1) : 0,\n borderBottomColor: variables.toolbarDefaultBorder,\n height:\n variables.platform === \"ios\" && variables.platformStyle === \"material\"\n ? variables.toolbarHeight + StatusBar.height\n : variables.toolbarHeight,\n elevation: 3,\n shadowColor: platformStyle === \"material\" ? \"#000\" : undefined,\n shadowOffset:\n platformStyle === \"material\" ? { width: 0, height: 2 } : undefined,\n shadowOpacity: platformStyle === \"material\" ? 0.2 : undefined,\n shadowRadius: platformStyle === \"material\" ? 1.2 : undefined,\n top: 0,\n left: 0,\n right: 0\n };\n\n return headerTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Header.js"],"names":["variables","variable","platformStyle","platform","headerTheme","height","alignSelf","alignItems","justifyContent","paddingBottom","fontSize","titleFontSize","fontFamily","titleFontfamily","textAlign","fontWeight","subTitleFontSize","color","subtitleColor","backgroundColor","borderBottomColor","elevation","shadowColor","shadowOffset","shadowRadius","shadowOpacity","paddingTop","StatusBar","currentHeight","undefined","toolbarHeight","borderBottomWidth","flex","marginRight","paddingLeft","paddingRight","width","toolbarBtnTextColor","toolbarBtnColor","paddingHorizontal","buttonPadding","dropdownLinkColor","toolbarSearchIconSize","marginTop","lineHeight","searchBarInputHeight","searchBarHeight","borderColor","toolbarInputColor","borderRadius","marginLeft","iconHeaderSize","top","borderWidth","inverseTextColor","flexDirection","toolbarDefaultBg","PixelRatio","getPixelSizeForLayoutSize","toolbarDefaultBorder","left","right"],"mappings":"yDAAA,yCAEA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,eAAgBF,UAAUE,aAAhC,CACA,GAAMC,UAAWH,UAAUG,QAA3B,CAEA,GAAMC,aAAc,CAClB,QAAS,CACPC,OAAQ,GADD,CAEP,kBAAmB,CACjBC,UAAW,YADM,CAFZ,CAKP,kBAAmB,CACjBA,UAAW,UADM,CAEjBC,WAAY,YAFK,CAGjBC,eAAgB,QAHC,CAIjBC,cAAe,EAJE,CALZ,CAWP,mBAAoB,CAClBH,UAAW,YADO,CAXb,CADS,CAgBlB,eAAgB,CACd,kBAAmB,CACjB,mBAAoB,CAClBI,SAAUV,UAAUW,aAAV,CAA0B,CADlB,CAElBC,WAAYZ,UAAUa,eAFJ,CAGlBC,UAAW,QAHO,CAIlBC,WAAY,KAJM,CAKlBN,cAAe,CALG,CADH,CAQjB,sBAAuB,CACrBC,SAAUV,UAAUgB,gBADC,CAErBJ,WAAYZ,UAAUa,eAFD,CAGrBI,MAAOjB,UAAUkB,aAHI,CAIrBJ,UAAW,QAJU,CARN,CADL,CAhBE,CAiClB,eAAgB,CACdK,gBAAiB,aADH,CAEdC,kBAAmB,aAFL,CAGdC,UAAW,CAHG,CAIdC,YAAa,IAJC,CAKdC,aAAc,IALA,CAMdC,aAAc,IANA,CAOdC,cAAe,IAPD,CAQdC,WAAYvB,WAAa,SAAb,CAAyBwB,uBAAUC,aAAnC,CAAm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AAUtB,MADxC,CAEIL,UAAU8B,aAxXE,CAyXlBT,UAAW,CAzXO,CA0XlBC,YAAapB,gBAAkB,UAAlB,CAA+B,MAA/B,CAAwC2B,SA1XnC,CA2XlBN,aACErB,gBAAkB,UAAlB,CAA+B,CAAEkC,MAAO,CAAT,CAAY/B,OAAQ,CAApB,CAA/B,CAAyDwB,SA5XzC,CA6XlBJ,cAAevB,gBAAkB,UAAlB,CAA+B,GAA/B,CAAqC2B,SA7XlC,CA8XlBL,aAActB,gBAAkB,UAAlB,CAA+B,GAA/B,CAAqC2B,SA9XjC,CA+XlBuB,IAAK,CA/Xa,CAgYlBQ,KAAM,CAhYY,CAiYlBC,MAAO,CAjYW,CAApB,CAoYA,MAAOzD,YAAP,CACD,C","file":"Header.js","sourcesContent":["import { PixelRatio, StatusBar } from \"react-native\";\n\nimport variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const platformStyle = variables.platformStyle;\n const platform = variables.platform;\n\n const headerTheme = {\n \".span\": {\n height: 128,\n \"NativeBase.Left\": {\n alignSelf: \"flex-start\"\n },\n \"NativeBase.Body\": {\n alignSelf: \"flex-end\",\n alignItems: \"flex-start\",\n justifyContent: \"center\",\n paddingBottom: 26\n },\n \"NativeBase.Right\": {\n alignSelf: \"flex-start\"\n }\n },\n \".hasSubtitle\": {\n \"NativeBase.Body\": {\n \"NativeBase.Title\": {\n fontSize: variables.titleFontSize - 2,\n fontFamily: variables.titleFontfamily,\n textAlign: \"center\",\n fontWeight: \"500\",\n paddingBottom: 3\n },\n \"NativeBase.Subtitle\": {\n fontSize: variables.subTitleFontSize,\n fontFamily: variables.titleFontfamily,\n color: variables.subtitleColor,\n textAlign: \"center\"\n }\n }\n },\n \".transparent\": {\n backgroundColor: \"transparent\",\n borderBottomColor: \"transparent\",\n elevation: 0,\n shadowColor: null,\n shadowOffset: null,\n shadowRadius: null,\n shadowOpacity: null,\n paddingTop: platform === \"android\" ? StatusBar.currentHeight : undefined,\n height: platform === \"android\" ? variables.toolbarHeight + StatusBar.currentHeight : variables.toolbarHeight\n },\n \".noShadow\": {\n elevation: 0,\n shadowColor: null,\n shadowOffset: null,\n shadowRadius: null,\n shadowOpacity: null\n },\n \".hasTabs\": {\n elevation: 0,\n shadowColor: null,\n shadowOffset: null,\n shadowRadius: null,\n shadowOpacity: null,\n borderBottomWidth: null\n },\n \".hasSegment\": {\n elevation: 0,\n shadowColor: null,\n shadowOffset: null,\n shadowRadius: null,\n shadowOpacity: null,\n borderBottomWidth: null,\n \"NativeBase.Left\": {\n flex: 0.3\n },\n \"NativeBase.Right\": {\n flex: 0.3\n },\n \"NativeBase.Body\": {\n flex: 1,\n \"NativeBase.Segment\": {\n marginRight: 0,\n alignSelf: \"center\",\n \"NativeBase.Button\": {\n paddingLeft: 0,\n paddingRight: 0\n }\n }\n }\n },\n \".noLeft\": {\n \"NativeBase.Left\": {\n width: platform === \"ios\" ? undefined : 0,\n flex: platform === \"ios\" ? 1 : 0\n },\n \"NativeBase.Body\": {\n \"NativeBase.Title\": {\n paddingLeft: platform === \"ios\" ? undefined : 10\n },\n \"NativeBase.Subtitle\": {\n paddingLeft: platform === \"ios\" ? undefined : 10\n }\n }\n },\n \"NativeBase.Button\": {\n justifyContent: \"center\",\n alignSelf: \"center\",\n alignItems: \"center\",\n \".transparent\": {\n \"NativeBase.Text\": {\n color: variables.toolbarBtnTextColor,\n fontWeight: \"600\"\n },\n \"NativeBase.Icon\": {\n color: variables.toolbarBtnColor\n },\n \"NativeBase.IconNB\": {\n color: variables.toolbarBtnColor\n },\n paddingHorizontal: variables.buttonPadding\n },\n paddingHorizontal: 15\n },\n \".searchBar\": {\n \"NativeBase.Item\": {\n \"NativeBase.Icon\": {\n backgroundColor: \"transparent\",\n color: variables.dropdownLinkColor,\n fontSize: variables.toolbarSearchIconSize,\n alignItems: \"center\",\n marginTop: 2,\n paddingRight: 10,\n paddingLeft: 10\n },\n \"NativeBase.IconNB\": {\n backgroundColor: \"transparent\",\n color: null,\n alignSelf: \"center\"\n },\n \"NativeBase.Input\": {\n alignSelf: \"center\",\n lineHeight: null,\n height: variables.searchBarInputHeight\n },\n alignSelf: \"center\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n flex: 1,\n height: variables.searchBarHeight,\n borderColor: \"transparent\",\n backgroundColor: variables.toolbarInputColor\n },\n \"NativeBase.Button\": {\n \".transparent\": {\n \"NativeBase.Text\": {\n fontWeight: \"500\"\n },\n paddingHorizontal: null,\n paddingLeft: platform === \"ios\" ? 10 : null\n },\n paddingHorizontal: platform === \"ios\" ? undefined : null,\n width: platform === \"ios\" ? undefined : 0,\n height: platform === \"ios\" ? undefined : 0\n }\n },\n \".rounded\": {\n \"NativeBase.Item\": {\n borderRadius:\n platform === \"ios\" && platformStyle !== \"material\" ? 25 : 3\n }\n },\n \"NativeBase.Left\": {\n \"NativeBase.Button\": {\n \".hasText\": {\n marginLeft: -10,\n height: 30,\n \"NativeBase.Icon\": {\n color: variables.toolbarBtnColor,\n fontSize: variables.iconHeaderSize,\n marginTop: 2,\n marginRight: 5,\n marginLeft: 2\n },\n \"NativeBase.Text\": {\n color: variables.toolbarBtnTextColor,\n fontSize: platform === \"ios\" ? 17 : 0,\n marginLeft: 7,\n lineHeight: 19.5\n },\n \"NativeBase.IconNB\": {\n color: variables.toolbarBtnColor,\n fontSize: variables.iconHeaderSize,\n marginTop: 2,\n marginRight: 5,\n marginLeft: 2\n }\n },\n \".transparent\": {\n marginLeft:\n platform === \"ios\" && platformStyle !== \"material\" ? -3 : 0,\n \"NativeBase.Icon\": {\n color: variables.toolbarBtnColor,\n fontSize:\n platform === \"ios\" && variables.platformStyle !== \"material\"\n ? variables.iconHeaderSize + 1\n : variables.iconHeaderSize,\n marginTop: 0,\n marginRight: 2,\n marginLeft: 1,\n paddingTop: 1\n },\n \"NativeBase.IconNB\": {\n color: variables.toolbarBtnColor,\n fontSize:\n platform === \"ios\" && variables.platformStyle !== \"material\"\n ? variables.iconHeaderSize + 1\n : variables.iconHeaderSize - 2,\n marginTop: 0,\n marginRight: 2,\n marginLeft: 1,\n paddingTop: 1\n },\n \"NativeBase.Text\": {\n color: variables.toolbarBtnTextColor,\n fontSize: platform === \"ios\" ? 17 : 0,\n top: platform === \"ios\" ? 1 : -1.5,\n paddingLeft:\n platform === \"ios\" && platformStyle !== \"material\" ? 2 : 5,\n paddingRight:\n platform === \"ios\" && platformStyle !== \"material\"\n ? undefined\n : 10\n },\n backgroundColor: \"transparent\",\n borderColor: null,\n elevation: 0,\n shadowColor: null,\n shadowOffset: null,\n shadowRadius: null,\n shadowOpacity: null\n },\n \"NativeBase.Icon\": {\n color: variables.toolbarBtnColor\n },\n \"NativeBase.IconNB\": {\n color: variables.toolbarBtnColor\n },\n alignSelf: null,\n paddingRight: variables.buttonPadding,\n paddingLeft: platform === \"ios\" && platformStyle !== \"material\" ? 4 : 8\n },\n flex: platform === \"ios\" && platformStyle !== \"material\" ? 1 : 0.4,\n alignSelf: \"center\",\n alignItems: \"flex-start\"\n },\n \"NativeBase.Body\": {\n flex: 1,\n alignItems:\n platform === \"ios\" && platformStyle !== \"material\"\n ? \"center\"\n : \"flex-start\",\n alignSelf: \"center\",\n \"NativeBase.Segment\": {\n borderWidth: 0,\n alignSelf: \"flex-end\",\n marginRight: platform === \"ios\" ? -40 : -55\n },\n \"NativeBase.Button\": {\n alignSelf: \"center\",\n \".transparent\": {\n backgroundColor: \"transparent\"\n },\n \"NativeBase.Icon\": {\n color: variables.toolbarBtnColor\n },\n \"NativeBase.IconNB\": {\n color: variables.toolbarBtnColor\n },\n \"NativeBase.Text\": {\n color: variables.inverseTextColor,\n backgroundColor: \"transparent\"\n }\n }\n },\n \"NativeBase.Right\": {\n \"NativeBase.Button\": {\n \".hasText\": {\n height: 30,\n \"NativeBase.Icon\": {\n color: variables.toolbarBtnColor,\n fontSize: variables.iconHeaderSize - 2,\n marginTop: 2,\n marginRight: 2,\n marginLeft: 5\n },\n \"NativeBase.Text\": {\n color: variables.toolbarBtnTextColor,\n fontSize: platform === \"ios\" ? 17 : 14,\n lineHeight: 19.5\n },\n \"NativeBase.IconNB\": {\n color: variables.toolbarBtnColor,\n fontSize: variables.iconHeaderSize - 2,\n marginTop: 2,\n marginRight: 2,\n marginLeft: 5\n }\n },\n \".transparent\": {\n marginRight: platform === \"ios\" ? -9 : -5,\n paddingLeft: 15,\n paddingRight: 12,\n paddingHorizontal: 15,\n borderRadius: 50,\n \"NativeBase.Icon\": {\n color: variables.toolbarBtnColor,\n fontSize:\n platform === \"ios\" && variables.platformStyle !== \"material\"\n ? variables.iconHeaderSize - 9\n : variables.iconHeaderSize - 2,\n marginTop: 0,\n marginLeft: 2,\n marginRight: 0\n // paddingTop: 0\n },\n \"NativeBase.IconNB\": {\n color: variables.toolbarBtnColor,\n fontSize:\n platform === \"ios\" && variables.platformStyle !== \"material\"\n ? variables.iconHeaderSize - 9\n : variables.iconHeaderSize - 2,\n marginTop: 0,\n marginLeft: 2,\n marginRight: 0\n // paddingTop: 0\n },\n \"NativeBase.Text\": {\n color: variables.toolbarBtnTextColor,\n fontSize: platform === \"ios\" ? 17 : 14,\n top: platform === \"ios\" ? 1 : -1.5,\n paddingRight:\n platform === \"ios\" && variables.platformStyle !== \"material\"\n ? 0\n : undefined\n },\n backgroundColor: \"transparent\",\n borderColor: null,\n elevation: 0,\n shadowColor: null,\n shadowOffset: null,\n shadowRadius: null,\n shadowOpacity: null\n },\n \"NativeBase.Icon\": {\n color: variables.toolbarBtnColor\n },\n \"NativeBase.IconNB\": {\n color: variables.toolbarBtnColor\n },\n alignSelf: null,\n paddingHorizontal: variables.buttonPadding\n },\n flex: 1,\n alignSelf: \"center\",\n alignItems: \"flex-end\",\n flexDirection: \"row\",\n justifyContent: \"flex-end\"\n },\n backgroundColor: variables.toolbarDefaultBg,\n flexDirection: \"row\",\n // paddingHorizontal: 10,\n paddingLeft:\n platform === \"ios\" && variables.platformStyle !== \"material\" ? 6 : 10,\n paddingRight: 10,\n justifyContent: \"center\",\n paddingTop: platform === \"ios\" ? 18 : 0,\n borderBottomWidth:\n platform === \"ios\" ? 1 / PixelRatio.getPixelSizeForLayoutSize(1) : 0,\n borderBottomColor: variables.toolbarDefaultBorder,\n height:\n variables.platform === \"ios\" && variables.platformStyle === \"material\"\n ? variables.toolbarHeight + StatusBar.height\n : variables.toolbarHeight,\n elevation: 3,\n shadowColor: platformStyle === \"material\" ? \"#000\" : undefined,\n shadowOffset:\n platformStyle === \"material\" ? { width: 0, height: 2 } : undefined,\n shadowOpacity: platformStyle === \"material\" ? 0.2 : undefined,\n shadowRadius: platformStyle === \"material\" ? 1.2 : undefined,\n top: 0,\n left: 0,\n right: 0\n };\n\n return headerTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Icon.js b/dist/src/theme/components/Icon.js index bd25c9f24..50175011a 100644 --- a/dist/src/theme/components/Icon.js +++ b/dist/src/theme/components/Icon.js @@ -1,11 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var iconTheme={ -fontSize:variables.iconFontSize, -color:"#000"}; - - -return iconTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var iconTheme={fontSize:variables.iconFontSize,color:"#000"};return iconTheme;}; //# sourceMappingURL=Icon.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Icon.js.map b/dist/src/theme/components/Icon.js.map index 5d930f977..280d2f5f2 100644 --- a/dist/src/theme/components/Icon.js.map +++ b/dist/src/theme/components/Icon.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Icon.js"],"names":["variables","variable","iconTheme","fontSize","iconFontSize","color"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,WAAY;AAChBC,SAAUH,UAAUI,YADJ;AAEhBC,MAAO,MAFS,CAAlB;;;AAKA,MAAOH,UAAP;AACD,C","file":"Icon.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const iconTheme = {\n fontSize: variables.iconFontSize,\n color: \"#000\"\n };\n\n return iconTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Icon.js"],"names":["variables","variable","iconTheme","fontSize","iconFontSize","color"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,WAAY,CAChBC,SAAUH,UAAUI,YADJ,CAEhBC,MAAO,MAFS,CAAlB,CAKA,MAAOH,UAAP,CACD,C","file":"Icon.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const iconTheme = {\n fontSize: variables.iconFontSize,\n color: \"#000\"\n };\n\n return iconTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Input.js b/dist/src/theme/components/Input.js index 5c671a1a6..d241e307d 100644 --- a/dist/src/theme/components/Input.js +++ b/dist/src/theme/components/Input.js @@ -1,18 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var inputTheme={ -'.multiline':{ -height:null}, - -height:variables.inputHeightBase, -color:variables.inputColor, -paddingLeft:5, -paddingRight:5, -flex:1, -fontSize:variables.inputFontSize}; - - -return inputTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var inputTheme={'.multiline':{height:null},height:variables.inputHeightBase,color:variables.inputColor,paddingLeft:5,paddingRight:5,flex:1,fontSize:variables.inputFontSize};return inputTheme;}; //# sourceMappingURL=Input.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Input.js.map b/dist/src/theme/components/Input.js.map index 87df3022f..522b06f35 100644 --- a/dist/src/theme/components/Input.js.map +++ b/dist/src/theme/components/Input.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Input.js"],"names":["variables","variable","inputTheme","height","inputHeightBase","color","inputColor","paddingLeft","paddingRight","flex","fontSize","inputFontSize"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACxC,GAAMC,YAAa;AAClB,aAAc;AACbC,OAAQ,IADK,CADI;;AAIlBA,OAAQH,UAAUI,eAJA;AAKlBC,MAAOL,UAAUM,UALC;AAMlBC,YAAa,CANK;AAOlBC,aAAc,CAPI;AAQlBC,KAAM,CARY;AASlBC,SAAUV,UAAUW,aATF,CAAnB;;;AAYA,MAAOT,WAAP;AACA,C","file":"Input.js","sourcesContent":["import variable from './../variables/platform';\n\nexport default (variables = variable) => {\n\tconst inputTheme = {\n\t\t'.multiline': {\n\t\t\theight: null,\n\t\t},\n\t\theight: variables.inputHeightBase,\n\t\tcolor: variables.inputColor,\n\t\tpaddingLeft: 5,\n\t\tpaddingRight: 5,\n\t\tflex: 1,\n\t\tfontSize: variables.inputFontSize\n\t};\n\n\treturn inputTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Input.js"],"names":["variables","variable","inputTheme","height","inputHeightBase","color","inputColor","paddingLeft","paddingRight","flex","fontSize","inputFontSize"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACxC,GAAMC,YAAa,CAClB,aAAc,CACbC,OAAQ,IADK,CADI,CAIlBA,OAAQH,UAAUI,eAJA,CAKlBC,MAAOL,UAAUM,UALC,CAMlBC,YAAa,CANK,CAOlBC,aAAc,CAPI,CAQlBC,KAAM,CARY,CASlBC,SAAUV,UAAUW,aATF,CAAnB,CAYA,MAAOT,WAAP,CACA,C","file":"Input.js","sourcesContent":["import variable from './../variables/platform';\n\nexport default (variables = variable) => {\n\tconst inputTheme = {\n\t\t'.multiline': {\n\t\t\theight: null,\n\t\t},\n\t\theight: variables.inputHeightBase,\n\t\tcolor: variables.inputColor,\n\t\tpaddingLeft: 5,\n\t\tpaddingRight: 5,\n\t\tflex: 1,\n\t\tfontSize: variables.inputFontSize\n\t};\n\n\treturn inputTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/InputGroup.js b/dist/src/theme/components/InputGroup.js index 9fc4f0806..272851383 100644 --- a/dist/src/theme/components/InputGroup.js +++ b/dist/src/theme/components/InputGroup.js @@ -1,131 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var inputGroupTheme={ -"NativeBase.Icon":{ -fontSize:24, -color:variables.sTabBarActiveTextColor, -paddingHorizontal:5}, - -"NativeBase.IconNB":{ -fontSize:24, -color:variables.sTabBarActiveTextColor, -paddingHorizontal:5}, - -"NativeBase.Input":{ -height:variables.inputHeightBase, -color:variables.inputColor, -paddingLeft:5, -paddingRight:5, -flex:1, -fontSize:variables.inputFontSize, -lineHeight:variables.inputLineHeight}, - -".underline":{ -".success":{ -borderColor:variables.inputSuccessBorderColor}, - -".error":{ -borderColor:variables.inputErrorBorderColor}, - -paddingLeft:5, -borderWidth:variables.borderWidth, -borderTopWidth:0, -borderRightWidth:0, -borderLeftWidth:0, -borderColor:variables.inputBorderColor}, - -".regular":{ -".success":{ -borderColor:variables.inputSuccessBorderColor}, - -".error":{ -borderColor:variables.inputErrorBorderColor}, - -paddingLeft:5, -borderWidth:variables.borderWidth, -borderColor:variables.inputBorderColor}, - -".rounded":{ -".success":{ -borderColor:variables.inputSuccessBorderColor}, - -".error":{ -borderColor:variables.inputErrorBorderColor}, - -paddingLeft:5, -borderWidth:variables.borderWidth, -borderRadius:variables.inputGroupRoundedBorderRadius, -borderColor:variables.inputBorderColor}, - - -".success":{ -"NativeBase.Icon":{ -color:variables.inputSuccessBorderColor}, - -"NativeBase.IconNB":{ -color:variables.inputSuccessBorderColor}, - -".rounded":{ -borderRadius:30, -borderColor:variables.inputSuccessBorderColor}, - -".regular":{ -borderColor:variables.inputSuccessBorderColor}, - -".underline":{ -borderWidth:variables.borderWidth, -borderTopWidth:0, -borderRightWidth:0, -borderLeftWidth:0, -borderColor:variables.inputSuccessBorderColor}, - -borderColor:variables.inputSuccessBorderColor}, - - -".error":{ -"NativeBase.Icon":{ -color:variables.inputErrorBorderColor}, - -"NativeBase.IconNB":{ -color:variables.inputErrorBorderColor}, - -".rounded":{ -borderRadius:30, -borderColor:variables.inputErrorBorderColor}, - -".regular":{ -borderColor:variables.inputErrorBorderColor}, - -".underline":{ -borderWidth:variables.borderWidth, -borderTopWidth:0, -borderRightWidth:0, -borderLeftWidth:0, -borderColor:variables.inputErrorBorderColor}, - -borderColor:variables.inputErrorBorderColor}, - -".disabled":{ -"NativeBase.Icon":{ -color:"#384850"}, - -"NativeBase.IconNB":{ -color:"#384850"}}, - - - -paddingLeft:5, -borderWidth:variables.borderWidth, -borderTopWidth:0, -borderRightWidth:0, -borderLeftWidth:0, -borderColor:variables.inputBorderColor, -backgroundColor:"transparent", -flexDirection:"row", -alignItems:"center"}; - - -return inputGroupTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var inputGroupTheme={"NativeBase.Icon":{fontSize:24,color:variables.sTabBarActiveTextColor,paddingHorizontal:5},"NativeBase.IconNB":{fontSize:24,color:variables.sTabBarActiveTextColor,paddingHorizontal:5},"NativeBase.Input":{height:variables.inputHeightBase,color:variables.inputColor,paddingLeft:5,paddingRight:5,flex:1,fontSize:variables.inputFontSize,lineHeight:variables.inputLineHeight},".underline":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor},".regular":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderColor:variables.inputBorderColor},".rounded":{".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},paddingLeft:5,borderWidth:variables.borderWidth,borderRadius:variables.inputGroupRoundedBorderRadius,borderColor:variables.inputBorderColor},".success":{"NativeBase.Icon":{color:variables.inputSuccessBorderColor},"NativeBase.IconNB":{color:variables.inputSuccessBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputSuccessBorderColor},".regular":{borderColor:variables.inputSuccessBorderColor},".underline":{borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputSuccessBorderColor},borderColor:variables.inputSuccessBorderColor},".error":{"NativeBase.Icon":{color:variables.inputErrorBorderColor},"NativeBase.IconNB":{color:variables.inputErrorBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputErrorBorderColor},".regular":{borderColor:variables.inputErrorBorderColor},".underline":{borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputErrorBorderColor},borderColor:variables.inputErrorBorderColor},".disabled":{"NativeBase.Icon":{color:"#384850"},"NativeBase.IconNB":{color:"#384850"}},paddingLeft:5,borderWidth:variables.borderWidth,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor,backgroundColor:"transparent",flexDirection:"row",alignItems:"center"};return inputGroupTheme;}; //# sourceMappingURL=InputGroup.js.map \ No newline at end of file diff --git a/dist/src/theme/components/InputGroup.js.map b/dist/src/theme/components/InputGroup.js.map index 30b906721..781d8858b 100644 --- a/dist/src/theme/components/InputGroup.js.map +++ b/dist/src/theme/components/InputGroup.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/InputGroup.js"],"names":["variables","variable","inputGroupTheme","fontSize","color","sTabBarActiveTextColor","paddingHorizontal","height","inputHeightBase","inputColor","paddingLeft","paddingRight","flex","inputFontSize","lineHeight","inputLineHeight","borderColor","inputSuccessBorderColor","inputErrorBorderColor","borderWidth","borderTopWidth","borderRightWidth","borderLeftWidth","inputBorderColor","borderRadius","inputGroupRoundedBorderRadius","backgroundColor","flexDirection","alignItems"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,iBAAkB;AACtB,kBAAmB;AACjBC,SAAU,EADO;AAEjBC,MAAOJ,UAAUK,sBAFA;AAGjBC,kBAAmB,CAHF,CADG;;AAMtB,oBAAqB;AACnBH,SAAU,EADS;AAEnBC,MAAOJ,UAAUK,sBAFE;AAGnBC,kBAAmB,CAHA,CANC;;AAWtB,mBAAoB;AAClBC,OAAQP,UAAUQ,eADA;AAElBJ,MAAOJ,UAAUS,UAFC;AAGlBC,YAAa,CAHK;AAIlBC,aAAc,CAJI;AAKlBC,KAAM,CALY;AAMlBT,SAAUH,UAAUa,aANF;AAOlBC,WAAYd,UAAUe,eAPJ,CAXE;;AAoBtB,aAAc;AACZ,WAAY;AACVC,YAAahB,UAAUiB,uBADb,CADA;;AAIZ,SAAU;AACRD,YAAahB,UAAUkB,qBADf,CAJE;;AAOZR,YAAa,CAPD;AAQZS,YAAanB,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GZC,iBAAkB,CAHN;AAIZC,gBAAiB,CAJL;AAKZN,YAAahB,UAAUkB,qBALX,CAdN;;AAqBRF,YAAahB,UAAUkB,qBArBf,CAlFY;;AAyGtB,YAAa;AACX,kBAAmB;AACjBd,MAAO,SADU,CADR;;AAIX,oBAAqB;AACnBA,MAAO,SADY,CAJV,CAzGS;;;;AAkHtBM,YAAa,CAlHS;AAmHtBS,YAAanB,UAAUmB,WAnHD;AAoHtBC,eAAgB,CApHM;AAqHtBC,iBAAkB,CArHI;AAsHtBC,gBAAiB,CAtHK;AAuHtBN,YAAahB,UAAUuB,gBAvHD;AAwHtBG,gBAAiB,aAxHK;AAyHtBC,cAAe,KAzHO;AA0HtBC,WAAY,QA1HU,CAAxB;;;AA6HA,MAAO1B,gBAAP;AACD,C","file":"InputGroup.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const inputGroupTheme = {\n \"NativeBase.Icon\": {\n fontSize: 24,\n color: variables.sTabBarActiveTextColor,\n paddingHorizontal: 5\n },\n \"NativeBase.IconNB\": {\n fontSize: 24,\n color: variables.sTabBarActiveTextColor,\n paddingHorizontal: 5\n },\n \"NativeBase.Input\": {\n height: variables.inputHeightBase,\n color: variables.inputColor,\n paddingLeft: 5,\n paddingRight: 5,\n flex: 1,\n fontSize: variables.inputFontSize,\n lineHeight: variables.inputLineHeight\n },\n \".underline\": {\n \".success\": {\n borderColor: variables.inputSuccessBorderColor\n },\n \".error\": {\n borderColor: variables.inputErrorBorderColor\n },\n paddingLeft: 5,\n borderWidth: variables.borderWidth,\n borderTopWidth: 0,\n borderRightWidth: 0,\n borderLeftWidth: 0,\n borderColor: variables.inputBorderColor\n },\n \".regular\": {\n \".success\": {\n borderColor: variables.inputSuccessBorderColor\n },\n \".error\": {\n borderColor: variables.inputErrorBorderColor\n },\n paddingLeft: 5,\n borderWidth: variables.borderWidth,\n borderColor: variables.inputBorderColor\n },\n \".rounded\": {\n \".success\": {\n borderColor: variables.inputSuccessBorderColor\n },\n \".error\": {\n borderColor: variables.inputErrorBorderColor\n },\n paddingLeft: 5,\n borderWidth: variables.borderWidth,\n borderRadius: variables.inputGroupRoundedBorderRadius,\n borderColor: variables.inputBorderColor\n },\n\n \".success\": {\n \"NativeBase.Icon\": {\n color: variables.inputSuccessBorderColor\n },\n \"NativeBase.IconNB\": {\n color: variables.inputSuccessBorderColor\n },\n \".rounded\": {\n borderRadius: 30,\n borderColor: variables.inputSuccessBorderColor\n },\n \".regular\": {\n borderColor: variables.inputSuccessBorderColor\n },\n \".underline\": {\n borderWidth: variables.borderWidth,\n borderTopWidth: 0,\n borderRightWidth: 0,\n borderLeftWidth: 0,\n borderColor: variables.inputSuccessBorderColor\n },\n borderColor: variables.inputSuccessBorderColor\n },\n\n \".error\": {\n \"NativeBase.Icon\": {\n color: variables.inputErrorBorderColor\n },\n \"NativeBase.IconNB\": {\n color: variables.inputErrorBorderColor\n },\n \".rounded\": {\n borderRadius: 30,\n borderColor: variables.inputErrorBorderColor\n },\n \".regular\": {\n borderColor: variables.inputErrorBorderColor\n },\n \".underline\": {\n borderWidth: variables.borderWidth,\n borderTopWidth: 0,\n borderRightWidth: 0,\n borderLeftWidth: 0,\n borderColor: variables.inputErrorBorderColor\n },\n borderColor: variables.inputErrorBorderColor\n },\n \".disabled\": {\n \"NativeBase.Icon\": {\n color: \"#384850\"\n },\n \"NativeBase.IconNB\": {\n color: \"#384850\"\n }\n },\n\n paddingLeft: 5,\n borderWidth: variables.borderWidth,\n borderTopWidth: 0,\n borderRightWidth: 0,\n borderLeftWidth: 0,\n borderColor: variables.inputBorderColor,\n backgroundColor: \"transparent\",\n flexDirection: \"row\",\n alignItems: \"center\"\n };\n\n return inputGroupTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/InputGroup.js"],"names":["variables","variable","inputGroupTheme","fontSize","color","sTabBarActiveTextColor","paddingHorizontal","height","inputHeightBase","inputColor","paddingLeft","paddingRight","flex","inputFontSize","lineHeight","inputLineHeight","borderColor","inputSuccessBorderColor","inputErrorBorderColor","borderWidth","borderTopWidth","borderRightWidth","borderLeftWidth","inputBorderColor","borderRadius","inputGroupRoundedBorderRadius","backgroundColor","flexDirection","alignItems"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,iBAAkB,CACtB,kBAAmB,CACjBC,SAAU,EADO,CAEjBC,MAAOJ,UAAUK,sBAFA,CAGjBC,kBAAmB,CAHF,CADG,CAMtB,oBAAqB,CACnBH,SAAU,EADS,CAEnBC,MAAOJ,UAAUK,sBAFE,CAGnBC,kBAAmB,CAHA,CANC,CAWtB,mBAAoB,CAClBC,OAAQP,UAAUQ,eADA,CAElBJ,MAAOJ,UAAUS,UAFC,CAGlBC,YAAa,CAHK,CAIlBC,aAAc,CAJI,CAKlBC,KAAM,CALY,CAMlBT,SAAUH,UAAUa,aANF,CAOlBC,WAAYd,UAAUe,eAPJ,CAXE,CAoBtB,aAAc,CACZ,WAAY,CACVC,YAAahB,UAAUiB,uBADb,CADA,CAIZ,SAAU,CACRD,YAAahB,UAAUkB,qBADf,CAJE,CAOZR,YAAa,CAPD,CAQZS,YAAanB,UAAUmB,WARX,CASZC,eAAgB,CATJ,CAUZC,iBAAkB,CAVN,CAWZC,gBAAiB,CAXL,CAYZN,YAAahB,UAAUuB,gBAZX,CApBQ,CAkCtB,WAAY,CACV,WAAY,CACVP,YAAahB,UAAUiB,uBADb,CADF,CAIV,SAAU,CACRD,YAAahB,UAAUkB,qBADf,CAJA,CAOVR,YAAa,CAPH,CAQVS,YAAanB,UAAUmB,WARb,CASVH,YAAahB,UAAUuB,gBATb,CAlCU,CA6CtB,WAAY,CACV,WAAY,CACVP,YAAahB,UAAUiB,uBADb,CADF,CAIV,SAAU,CACRD,YAAahB,UAAUkB,qBADf,CAJA,CAOVR,YAAa,CAPH,CAQVS,YAAanB,UAAUmB,WARb,CASVK,aAAcxB,UAAUyB,6BATd,CAUVT,YA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./../variables/platform\";\n\nexport default (variables = variable) => {\n const inputGroupTheme = {\n \"NativeBase.Icon\": {\n fontSize: 24,\n color: variables.sTabBarActiveTextColor,\n paddingHorizontal: 5\n },\n \"NativeBase.IconNB\": {\n fontSize: 24,\n color: variables.sTabBarActiveTextColor,\n paddingHorizontal: 5\n },\n \"NativeBase.Input\": {\n height: variables.inputHeightBase,\n color: variables.inputColor,\n paddingLeft: 5,\n paddingRight: 5,\n flex: 1,\n fontSize: variables.inputFontSize,\n lineHeight: variables.inputLineHeight\n },\n \".underline\": {\n \".success\": {\n borderColor: variables.inputSuccessBorderColor\n },\n \".error\": {\n borderColor: variables.inputErrorBorderColor\n },\n paddingLeft: 5,\n borderWidth: variables.borderWidth,\n borderTopWidth: 0,\n borderRightWidth: 0,\n borderLeftWidth: 0,\n borderColor: variables.inputBorderColor\n },\n \".regular\": {\n \".success\": {\n borderColor: variables.inputSuccessBorderColor\n },\n \".error\": {\n borderColor: variables.inputErrorBorderColor\n },\n paddingLeft: 5,\n borderWidth: variables.borderWidth,\n borderColor: variables.inputBorderColor\n },\n \".rounded\": {\n \".success\": {\n borderColor: variables.inputSuccessBorderColor\n },\n \".error\": {\n borderColor: variables.inputErrorBorderColor\n },\n paddingLeft: 5,\n borderWidth: variables.borderWidth,\n borderRadius: variables.inputGroupRoundedBorderRadius,\n borderColor: variables.inputBorderColor\n },\n\n \".success\": {\n \"NativeBase.Icon\": {\n color: variables.inputSuccessBorderColor\n },\n \"NativeBase.IconNB\": {\n color: variables.inputSuccessBorderColor\n },\n \".rounded\": {\n borderRadius: 30,\n borderColor: variables.inputSuccessBorderColor\n },\n \".regular\": {\n borderColor: variables.inputSuccessBorderColor\n },\n \".underline\": {\n borderWidth: variables.borderWidth,\n borderTopWidth: 0,\n borderRightWidth: 0,\n borderLeftWidth: 0,\n borderColor: variables.inputSuccessBorderColor\n },\n borderColor: variables.inputSuccessBorderColor\n },\n\n \".error\": {\n \"NativeBase.Icon\": {\n color: variables.inputErrorBorderColor\n },\n \"NativeBase.IconNB\": {\n color: variables.inputErrorBorderColor\n },\n \".rounded\": {\n borderRadius: 30,\n borderColor: variables.inputErrorBorderColor\n },\n \".regular\": {\n borderColor: variables.inputErrorBorderColor\n },\n \".underline\": {\n borderWidth: variables.borderWidth,\n borderTopWidth: 0,\n borderRightWidth: 0,\n borderLeftWidth: 0,\n borderColor: variables.inputErrorBorderColor\n },\n borderColor: variables.inputErrorBorderColor\n },\n \".disabled\": {\n \"NativeBase.Icon\": {\n color: \"#384850\"\n },\n \"NativeBase.IconNB\": {\n color: \"#384850\"\n }\n },\n\n paddingLeft: 5,\n borderWidth: variables.borderWidth,\n borderTopWidth: 0,\n borderRightWidth: 0,\n borderLeftWidth: 0,\n borderColor: variables.inputBorderColor,\n backgroundColor: \"transparent\",\n flexDirection: \"row\",\n alignItems: \"center\"\n };\n\n return inputGroupTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Item.js b/dist/src/theme/components/Item.js index fd48c2caf..09056cb7d 100644 --- a/dist/src/theme/components/Item.js +++ b/dist/src/theme/components/Item.js @@ -1,239 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native"); - -var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var itemTheme={ -".floatingLabel":{ -"NativeBase.Input":{ -height:50, -top:8, -paddingTop:3, -paddingBottom:7, -".multiline":{ -minHeight:variables.inputHeightBase, -paddingTop:_reactNative.Platform.OS==="ios"?10:3, -paddingBottom:_reactNative.Platform.OS==="ios"?14:10}}, - - -"NativeBase.Label":{ -top:8}, - -"NativeBase.Icon":{ -top:6, -paddingTop:8}, - -"NativeBase.IconNB":{ -top:6, -paddingTop:8}}, - - -".fixedLabel":{ -"NativeBase.Label":{ -position:null, -top:null, -left:null, -right:null, -flex:1, -height:null, -width:null, -fontSize:variables.inputFontSize}, - -"NativeBase.Input":{ -flex:2, -fontSize:variables.inputFontSize}}, - - -".stackedLabel":{ -"NativeBase.Label":{ -position:null, -top:null, -left:null, -right:null, -paddingTop:5, -alignSelf:"flex-start", -fontSize:variables.inputFontSize-2}, - -"NativeBase.Icon":{ -marginTop:36}, - -"NativeBase.Input":{ -alignSelf:_reactNative.Platform.OS==="ios"?"stretch":"flex-start", -flex:1, -width:_reactNative.Platform.OS==="ios"?null:variables.deviceWidth-25, -fontSize:variables.inputFontSize, -lineHeight:variables.inputLineHeight-6, -".secureTextEntry":{ -fontSize:variables.inputFontSize-4}, - -".multiline":{ -paddingTop:_reactNative.Platform.OS==="ios"?9:undefined, -paddingBottom:_reactNative.Platform.OS==="ios"?9:undefined}}, - - -flexDirection:null, -minHeight:variables.inputHeightBase+15}, - -".inlineLabel":{ -"NativeBase.Label":{ -position:null, -top:null, -left:null, -right:null, -paddingRight:20, -height:null, -width:null, -fontSize:variables.inputFontSize}, - -"NativeBase.Input":{ -paddingLeft:5, -fontSize:variables.inputFontSize}, - -flexDirection:"row"}, - -"NativeBase.Label":{ -fontSize:variables.inputFontSize, -color:variables.inputColorPlaceholder, -paddingRight:5}, - -"NativeBase.Icon":{ -fontSize:24, -paddingRight:8}, - -"NativeBase.IconNB":{ -fontSize:24, -paddingRight:8}, - -"NativeBase.Input":{ -".multiline":{ -height:null}, - -height:variables.inputHeightBase, -color:variables.inputColor, -flex:1, -top:_reactNative.Platform.OS==="ios"?1.5:undefined, -fontSize:variables.inputFontSize}, - -".underline":{ -"NativeBase.Input":{ -paddingLeft:15}, - -".success":{ -borderColor:variables.inputSuccessBorderColor}, - -".error":{ -borderColor:variables.inputErrorBorderColor}, - -borderWidth:variables.borderWidth*2, -borderTopWidth:0, -borderRightWidth:0, -borderLeftWidth:0, -borderColor:variables.inputBorderColor}, - -".regular":{ -"NativeBase.Input":{ -paddingLeft:8}, - -"NativeBase.Icon":{ -paddingLeft:10}, - -".success":{ -borderColor:variables.inputSuccessBorderColor}, - -".error":{ -borderColor:variables.inputErrorBorderColor}, - -borderWidth:variables.borderWidth*2, -borderColor:variables.inputBorderColor}, - -".rounded":{ -"NativeBase.Input":{ -paddingLeft:8}, - -"NativeBase.Icon":{ -paddingLeft:10}, - -".success":{ -borderColor:variables.inputSuccessBorderColor}, - -".error":{ -borderColor:variables.inputErrorBorderColor}, - -borderWidth:variables.borderWidth*2, -borderRadius:30, -borderColor:variables.inputBorderColor}, - - -".success":{ -"NativeBase.Icon":{ -color:variables.inputSuccessBorderColor}, - -"NativeBase.IconNB":{ -color:variables.inputSuccessBorderColor}, - -".rounded":{ -borderRadius:30, -borderColor:variables.inputSuccessBorderColor}, - -".regular":{ -borderColor:variables.inputSuccessBorderColor}, - -".underline":{ -borderWidth:variables.borderWidth*2, -borderTopWidth:0, -borderRightWidth:0, -borderLeftWidth:0, -borderColor:variables.inputSuccessBorderColor}, - -borderColor:variables.inputSuccessBorderColor}, - - -".error":{ -"NativeBase.Icon":{ -color:variables.inputErrorBorderColor}, - -"NativeBase.IconNB":{ -color:variables.inputErrorBorderColor}, - -".rounded":{ -borderRadius:30, -borderColor:variables.inputErrorBorderColor}, - -".regular":{ -borderColor:variables.inputErrorBorderColor}, - -".underline":{ -borderWidth:variables.borderWidth*2, -borderTopWidth:0, -borderRightWidth:0, -borderLeftWidth:0, -borderColor:variables.inputErrorBorderColor}, - -borderColor:variables.inputErrorBorderColor}, - -".disabled":{ -"NativeBase.Icon":{ -color:"#384850"}, - -"NativeBase.IconNB":{ -color:"#384850"}}, - - -".picker":{ -marginLeft:0}, - - -borderWidth:variables.borderWidth*2, -borderTopWidth:0, -borderRightWidth:0, -borderLeftWidth:0, -borderColor:variables.inputBorderColor, -backgroundColor:"transparent", -flexDirection:"row", -alignItems:"center", -marginLeft:2}; - - -return itemTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var itemTheme={".floatingLabel":{"NativeBase.Input":{height:50,top:8,paddingTop:3,paddingBottom:7,".multiline":{minHeight:variables.inputHeightBase,paddingTop:_reactNative.Platform.OS==="ios"?10:3,paddingBottom:_reactNative.Platform.OS==="ios"?14:10}},"NativeBase.Label":{top:8},"NativeBase.Icon":{top:6,paddingTop:8},"NativeBase.IconNB":{top:6,paddingTop:8}},".fixedLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,flex:1,height:null,width:null,fontSize:variables.inputFontSize},"NativeBase.Input":{flex:2,fontSize:variables.inputFontSize}},".stackedLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,paddingTop:5,alignSelf:"flex-start",fontSize:variables.inputFontSize-2},"NativeBase.Icon":{marginTop:36},"NativeBase.Input":{alignSelf:_reactNative.Platform.OS==="ios"?"stretch":"flex-start",flex:1,width:_reactNative.Platform.OS==="ios"?null:variables.deviceWidth-25,fontSize:variables.inputFontSize,lineHeight:variables.inputLineHeight-6,".secureTextEntry":{fontSize:variables.inputFontSize-4},".multiline":{paddingTop:_reactNative.Platform.OS==="ios"?9:undefined,paddingBottom:_reactNative.Platform.OS==="ios"?9:undefined}},flexDirection:null,minHeight:variables.inputHeightBase+15},".inlineLabel":{"NativeBase.Label":{position:null,top:null,left:null,right:null,paddingRight:20,height:null,width:null,fontSize:variables.inputFontSize},"NativeBase.Input":{paddingLeft:5,fontSize:variables.inputFontSize},flexDirection:"row"},"NativeBase.Label":{fontSize:variables.inputFontSize,color:variables.inputColorPlaceholder,paddingRight:5},"NativeBase.Icon":{fontSize:24,paddingRight:8},"NativeBase.IconNB":{fontSize:24,paddingRight:8},"NativeBase.Input":{".multiline":{height:null},height:variables.inputHeightBase,color:variables.inputColor,flex:1,top:_reactNative.Platform.OS==="ios"?1.5:undefined,fontSize:variables.inputFontSize},".underline":{"NativeBase.Input":{paddingLeft:15},".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor},".regular":{"NativeBase.Input":{paddingLeft:8},"NativeBase.Icon":{paddingLeft:10},".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},borderWidth:variables.borderWidth*2,borderColor:variables.inputBorderColor},".rounded":{"NativeBase.Input":{paddingLeft:8},"NativeBase.Icon":{paddingLeft:10},".success":{borderColor:variables.inputSuccessBorderColor},".error":{borderColor:variables.inputErrorBorderColor},borderWidth:variables.borderWidth*2,borderRadius:30,borderColor:variables.inputBorderColor},".success":{"NativeBase.Icon":{color:variables.inputSuccessBorderColor},"NativeBase.IconNB":{color:variables.inputSuccessBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputSuccessBorderColor},".regular":{borderColor:variables.inputSuccessBorderColor},".underline":{borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputSuccessBorderColor},borderColor:variables.inputSuccessBorderColor},".error":{"NativeBase.Icon":{color:variables.inputErrorBorderColor},"NativeBase.IconNB":{color:variables.inputErrorBorderColor},".rounded":{borderRadius:30,borderColor:variables.inputErrorBorderColor},".regular":{borderColor:variables.inputErrorBorderColor},".underline":{borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputErrorBorderColor},borderColor:variables.inputErrorBorderColor},".disabled":{"NativeBase.Icon":{color:"#384850"},"NativeBase.IconNB":{color:"#384850"}},".picker":{marginLeft:0},borderWidth:variables.borderWidth*2,borderTopWidth:0,borderRightWidth:0,borderLeftWidth:0,borderColor:variables.inputBorderColor,backgroundColor:"transparent",flexDirection:"row",alignItems:"center",marginLeft:2};return itemTheme;}; //# sourceMappingURL=Item.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Item.js.map b/dist/src/theme/components/Item.js.map index a69da9ad3..29e6e07ab 100644 --- a/dist/src/theme/components/Item.js.map +++ b/dist/src/theme/components/Item.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Item.js"],"names":["variables","variable","itemTheme","height","top","paddingTop","paddingBottom","minHeight","inputHeightBase","Platform","OS","position","left","right","flex","width","fontSize","inputFontSize","alignSelf","marginTop","deviceWidth","lineHeight","inputLineHeight","undefined","flexDirection","paddingRight","paddingLeft","color","inputColorPlaceholder","inputColor","borderColor","inputSuccessBorderColor","inputErrorBorderColor","borderWidth","borderTopWidth","borderRightWidth","borderLeftWidth","inputBorderColor","borderRadius","marginLeft","backgroundColor","alignItems"],"mappings":"yDAAA;;AAEA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,WAAY;AAChB,iBAAkB;AAChB,mBAAoB;AAClBC,OAAQ,EADU;AAElBC,IAAK,CAFa;AAGlBC,WAAY,CAHM;AAIlBC,cAAe,CAJG;AAKlB,aAAc;AACZC,UAAWP,UAAUQ,eADT;AAEZH,WAAYI,sBAASC,EAAT,GAAgB,KAAhB,CAAwB,EAAxB,CAA6B,CAF7B;AAGZJ,cAAeG,sBAASC,EAAT,GAAgB,KAAhB,CAAwB,EAAxB,CAA6B,EAHhC,CALI,CADJ;;;AAYhB,mBAAoB;AAClBN,IAAK,CADa,CAZJ;;AAehB,kBAAmB;AACjBA,IAAK,CADY;AAEjBC,WAAY,CAFK,CAfH;;AAmBhB,oBAAqB;AACnBD,IAAK,CADc;AAEnBC,WAAY,CAFO,CAnBL,CADF;;;AAyBhB,cAAe;AACb,mBAAoB;AAClBM,SAAU,IADQ;AAElBP,IAAK,IAFa;AAGlBQ,KAAM,IAHY;AAIlBC,MAAO,IAJW;AAKlBC,KAAM,CALY;AAMlBX,OAAQ,IANU;AAOlBY,MAAO,IAPW;AAQlBC,SAAUhB,UAAUiB,aARF,CADP;;AAWb,mBAAoB;AA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hOP;AAiOhBG,gBAAiB,aAjOD;AAkOhBhB,cAAe,KAlOC;AAmOhBiB,WAAY,QAnOI;AAoOhBF,WAAY,CApOI,CAAlB;;;AAuOA,MAAOrC,UAAP;AACD,C","file":"Item.js","sourcesContent":["import { Platform } from \"react-native\";\n\nimport variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const itemTheme = {\n \".floatingLabel\": {\n \"NativeBase.Input\": {\n height: 50,\n top: 8,\n paddingTop: 3,\n paddingBottom: 7,\n \".multiline\": {\n minHeight: variables.inputHeightBase,\n paddingTop: Platform.OS === \"ios\" ? 10 : 3,\n paddingBottom: Platform.OS === \"ios\" ? 14 : 10\n }\n },\n \"NativeBase.Label\": {\n top: 8\n },\n \"NativeBase.Icon\": {\n top: 6,\n paddingTop: 8\n },\n \"NativeBase.IconNB\": {\n top: 6,\n paddingTop: 8\n }\n },\n \".fixedLabel\": {\n \"NativeBase.Label\": {\n position: null,\n top: null,\n left: null,\n right: null,\n flex: 1,\n height: null,\n width: null,\n fontSize: variables.inputFontSize\n },\n \"NativeBase.Input\": {\n flex: 2,\n fontSize: variables.inputFontSize\n }\n },\n \".stackedLabel\": {\n \"NativeBase.Label\": {\n position: null,\n top: null,\n left: null,\n right: null,\n paddingTop: 5,\n alignSelf: \"flex-start\",\n fontSize: variables.inputFontSize - 2\n },\n \"NativeBase.Icon\": {\n marginTop: 36\n },\n \"NativeBase.Input\": {\n alignSelf: Platform.OS === \"ios\" ? \"stretch\" : \"flex-start\",\n flex: 1,\n width: Platform.OS === \"ios\" ? null : variables.deviceWidth - 25,\n fontSize: variables.inputFontSize,\n lineHeight: variables.inputLineHeight - 6,\n \".secureTextEntry\": {\n fontSize: variables.inputFontSize - 4\n },\n \".multiline\": {\n paddingTop: Platform.OS === \"ios\" ? 9 : undefined,\n paddingBottom: Platform.OS === \"ios\" ? 9 : undefined\n }\n },\n flexDirection: null,\n minHeight: variables.inputHeightBase + 15\n },\n \".inlineLabel\": {\n \"NativeBase.Label\": {\n position: null,\n top: null,\n left: null,\n right: null,\n paddingRight: 20,\n height: null,\n width: null,\n fontSize: variables.inputFontSize\n },\n \"NativeBase.Input\": {\n paddingLeft: 5,\n fontSize: variables.inputFontSize\n },\n flexDirection: \"row\"\n },\n \"NativeBase.Label\": {\n fontSize: variables.inputFontSize,\n color: variables.inputColorPlaceholder,\n paddingRight: 5\n },\n \"NativeBase.Icon\": {\n fontSize: 24,\n paddingRight: 8\n },\n \"NativeBase.IconNB\": {\n fontSize: 24,\n paddingRight: 8\n },\n \"NativeBase.Input\": {\n \".multiline\": {\n height: null\n },\n height: variables.inputHeightBase,\n color: variables.inputColor,\n flex: 1,\n top: Platform.OS === \"ios\" ? 1.5 : undefined,\n fontSize: variables.inputFontSize\n },\n \".underline\": {\n \"NativeBase.Input\": {\n paddingLeft: 15\n },\n \".success\": {\n borderColor: variables.inputSuccessBorderColor\n },\n \".error\": {\n borderColor: variables.inputErrorBorderColor\n },\n borderWidth: variables.borderWidth * 2,\n borderTopWidth: 0,\n borderRightWidth: 0,\n borderLeftWidth: 0,\n borderColor: variables.inputBorderColor\n },\n \".regular\": {\n \"NativeBase.Input\": {\n paddingLeft: 8\n },\n \"NativeBase.Icon\": {\n paddingLeft: 10\n },\n \".success\": {\n borderColor: variables.inputSuccessBorderColor\n },\n \".error\": {\n borderColor: variables.inputErrorBorderColor\n },\n borderWidth: variables.borderWidth * 2,\n borderColor: variables.inputBorderColor\n },\n \".rounded\": {\n \"NativeBase.Input\": {\n paddingLeft: 8\n },\n \"NativeBase.Icon\": {\n paddingLeft: 10\n },\n \".success\": {\n borderColor: variables.inputSuccessBorderColor\n },\n \".error\": {\n borderColor: variables.inputErrorBorderColor\n },\n borderWidth: variables.borderWidth * 2,\n borderRadius: 30,\n borderColor: variables.inputBorderColor\n },\n\n \".success\": {\n \"NativeBase.Icon\": {\n color: variables.inputSuccessBorderColor\n },\n \"NativeBase.IconNB\": {\n color: variables.inputSuccessBorderColor\n },\n \".rounded\": {\n borderRadius: 30,\n borderColor: variables.inputSuccessBorderColor\n },\n \".regular\": {\n borderColor: variables.inputSuccessBorderColor\n },\n \".underline\": {\n borderWidth: variables.borderWidth * 2,\n borderTopWidth: 0,\n borderRightWidth: 0,\n borderLeftWidth: 0,\n borderColor: variables.inputSuccessBorderColor\n },\n borderColor: variables.inputSuccessBorderColor\n },\n\n \".error\": {\n \"NativeBase.Icon\": {\n color: variables.inputErrorBorderColor\n },\n \"NativeBase.IconNB\": {\n color: variables.inputErrorBorderColor\n },\n \".rounded\": {\n borderRadius: 30,\n borderColor: variables.inputErrorBorderColor\n },\n \".regular\": {\n borderColor: variables.inputErrorBorderColor\n },\n \".underline\": {\n borderWidth: variables.borderWidth * 2,\n borderTopWidth: 0,\n borderRightWidth: 0,\n borderLeftWidth: 0,\n borderColor: variables.inputErrorBorderColor\n },\n borderColor: variables.inputErrorBorderColor\n },\n \".disabled\": {\n \"NativeBase.Icon\": {\n color: \"#384850\"\n },\n \"NativeBase.IconNB\": {\n color: \"#384850\"\n }\n },\n \".picker\": {\n marginLeft: 0\n },\n\n borderWidth: variables.borderWidth * 2,\n borderTopWidth: 0,\n borderRightWidth: 0,\n borderLeftWidth: 0,\n borderColor: variables.inputBorderColor,\n backgroundColor: \"transparent\",\n flexDirection: \"row\",\n alignItems: \"center\",\n marginLeft: 2\n };\n\n return itemTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Item.js"],"names":["variables","variable","itemTheme","height","top","paddingTop","paddingBottom","minHeight","inputHeightBase","Platform","OS","position","left","right","flex","width","fontSize","inputFontSize","alignSelf","marginTop","deviceWidth","lineHeight","inputLineHeight","undefined","flexDirection","paddingRight","paddingLeft","color","inputColorPlaceholder","inputColor","borderColor","inputSuccessBorderColor","inputErrorBorderColor","borderWidth","borderTopWidth","borderRightWidth","borderLeftWidth","inputBorderColor","borderRadius","marginLeft","backgroundColor","alignItems"],"mappings":"yDAAA,yCAEA,iD,oJAEe,UAA0B,IAAzBA,UAAy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,UAAUgC,qBADA,CADX,CAIR,oBAAqB,CACnBL,MAAO3B,UAAUgC,qBADE,CAJb,CAOR,WAAY,CACVM,aAAc,EADJ,CAEVR,YAAa9B,UAAUgC,qBAFb,CAPJ,CAWR,WAAY,CACVF,YAAa9B,UAAUgC,qBADb,CAXJ,CAcR,aAAc,CACZC,YAAajC,UAAUiC,WAAV,CAAwB,CADzB,CAEZC,eAAgB,CAFJ,CAGZC,iBAAkB,CAHN,CAIZC,gBAAiB,CAJL,CAKZN,YAAa9B,UAAUgC,qBALX,CAdN,CAqBRF,YAAa9B,UAAUgC,qBArBf,CAzLM,CAgNhB,YAAa,CACX,kBAAmB,CACjBL,MAAO,SADU,CADR,CAIX,oBAAqB,CACnBA,MAAO,SADY,CAJV,CAhNG,CAwNhB,UAAW,CACTY,WAAY,CADH,CAxNK,CA4NhBN,YAAajC,UAAUiC,WAAV,CAAwB,CA5NrB,CA6NhBC,eAAgB,CA7NA,CA8NhBC,iBAAkB,CA9NF,CA+NhBC,gBAAiB,CA/ND,CAgOhBN,YAAa9B,UAAUqC,gBAhOP,CAiOhBG,gBAAiB,aAjOD,CAkOhBhB,cAAe,KAlOC,CAmOhBiB,WAAY,QAnOI,CAoOhBF,WAAY,CApOI,CAAlB,CAuOA,MAAOrC,UAAP,CACD,C","file":"Item.js","sourcesContent":["import { Platform } from \"react-native\";\n\nimport variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const itemTheme = {\n \".floatingLabel\": {\n \"NativeBase.Input\": {\n height: 50,\n top: 8,\n paddingTop: 3,\n paddingBottom: 7,\n \".multiline\": {\n minHeight: variables.inputHeightBase,\n paddingTop: Platform.OS === \"ios\" ? 10 : 3,\n paddingBottom: Platform.OS === \"ios\" ? 14 : 10\n }\n },\n \"NativeBase.Label\": {\n top: 8\n },\n \"NativeBase.Icon\": {\n top: 6,\n paddingTop: 8\n },\n \"NativeBase.IconNB\": {\n top: 6,\n paddingTop: 8\n }\n },\n \".fixedLabel\": {\n \"NativeBase.Label\": {\n position: null,\n top: null,\n left: null,\n right: null,\n flex: 1,\n height: null,\n width: null,\n fontSize: variables.inputFontSize\n },\n \"NativeBase.Input\": {\n flex: 2,\n fontSize: variables.inputFontSize\n }\n },\n \".stackedLabel\": {\n \"NativeBase.Label\": {\n position: null,\n top: null,\n left: null,\n right: null,\n paddingTop: 5,\n alignSelf: \"flex-start\",\n fontSize: variables.inputFontSize - 2\n },\n \"NativeBase.Icon\": {\n marginTop: 36\n },\n \"NativeBase.Input\": {\n alignSelf: Platform.OS === \"ios\" ? \"stretch\" : \"flex-start\",\n flex: 1,\n width: Platform.OS === \"ios\" ? null : variables.deviceWidth - 25,\n fontSize: variables.inputFontSize,\n lineHeight: variables.inputLineHeight - 6,\n \".secureTextEntry\": {\n fontSize: variables.inputFontSize - 4\n },\n \".multiline\": {\n paddingTop: Platform.OS === \"ios\" ? 9 : undefined,\n paddingBottom: Platform.OS === \"ios\" ? 9 : undefined\n }\n },\n flexDirection: null,\n minHeight: variables.inputHeightBase + 15\n },\n \".inlineLabel\": {\n \"NativeBase.Label\": {\n position: null,\n top: null,\n left: null,\n right: null,\n paddingRight: 20,\n height: null,\n width: null,\n fontSize: variables.inputFontSize\n },\n \"NativeBase.Input\": {\n paddingLeft: 5,\n fontSize: variables.inputFontSize\n },\n flexDirection: \"row\"\n },\n \"NativeBase.Label\": {\n fontSize: variables.inputFontSize,\n color: variables.inputColorPlaceholder,\n paddingRight: 5\n },\n \"NativeBase.Icon\": {\n fontSize: 24,\n paddingRight: 8\n },\n \"NativeBase.IconNB\": {\n fontSize: 24,\n paddingRight: 8\n },\n \"NativeBase.Input\": {\n \".multiline\": {\n height: null\n },\n height: variables.inputHeightBase,\n color: variables.inputColor,\n flex: 1,\n top: Platform.OS === \"ios\" ? 1.5 : undefined,\n fontSize: variables.inputFontSize\n },\n \".underline\": {\n \"NativeBase.Input\": {\n paddingLeft: 15\n },\n \".success\": {\n borderColor: variables.inputSuccessBorderColor\n },\n \".error\": {\n borderColor: variables.inputErrorBorderColor\n },\n borderWidth: variables.borderWidth * 2,\n borderTopWidth: 0,\n borderRightWidth: 0,\n borderLeftWidth: 0,\n borderColor: variables.inputBorderColor\n },\n \".regular\": {\n \"NativeBase.Input\": {\n paddingLeft: 8\n },\n \"NativeBase.Icon\": {\n paddingLeft: 10\n },\n \".success\": {\n borderColor: variables.inputSuccessBorderColor\n },\n \".error\": {\n borderColor: variables.inputErrorBorderColor\n },\n borderWidth: variables.borderWidth * 2,\n borderColor: variables.inputBorderColor\n },\n \".rounded\": {\n \"NativeBase.Input\": {\n paddingLeft: 8\n },\n \"NativeBase.Icon\": {\n paddingLeft: 10\n },\n \".success\": {\n borderColor: variables.inputSuccessBorderColor\n },\n \".error\": {\n borderColor: variables.inputErrorBorderColor\n },\n borderWidth: variables.borderWidth * 2,\n borderRadius: 30,\n borderColor: variables.inputBorderColor\n },\n\n \".success\": {\n \"NativeBase.Icon\": {\n color: variables.inputSuccessBorderColor\n },\n \"NativeBase.IconNB\": {\n color: variables.inputSuccessBorderColor\n },\n \".rounded\": {\n borderRadius: 30,\n borderColor: variables.inputSuccessBorderColor\n },\n \".regular\": {\n borderColor: variables.inputSuccessBorderColor\n },\n \".underline\": {\n borderWidth: variables.borderWidth * 2,\n borderTopWidth: 0,\n borderRightWidth: 0,\n borderLeftWidth: 0,\n borderColor: variables.inputSuccessBorderColor\n },\n borderColor: variables.inputSuccessBorderColor\n },\n\n \".error\": {\n \"NativeBase.Icon\": {\n color: variables.inputErrorBorderColor\n },\n \"NativeBase.IconNB\": {\n color: variables.inputErrorBorderColor\n },\n \".rounded\": {\n borderRadius: 30,\n borderColor: variables.inputErrorBorderColor\n },\n \".regular\": {\n borderColor: variables.inputErrorBorderColor\n },\n \".underline\": {\n borderWidth: variables.borderWidth * 2,\n borderTopWidth: 0,\n borderRightWidth: 0,\n borderLeftWidth: 0,\n borderColor: variables.inputErrorBorderColor\n },\n borderColor: variables.inputErrorBorderColor\n },\n \".disabled\": {\n \"NativeBase.Icon\": {\n color: \"#384850\"\n },\n \"NativeBase.IconNB\": {\n color: \"#384850\"\n }\n },\n \".picker\": {\n marginLeft: 0\n },\n\n borderWidth: variables.borderWidth * 2,\n borderTopWidth: 0,\n borderRightWidth: 0,\n borderLeftWidth: 0,\n borderColor: variables.inputBorderColor,\n backgroundColor: \"transparent\",\n flexDirection: \"row\",\n alignItems: \"center\",\n marginLeft: 2\n };\n\n return itemTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Label.js b/dist/src/theme/components/Label.js index 5d449e81a..9505d937e 100644 --- a/dist/src/theme/components/Label.js +++ b/dist/src/theme/components/Label.js @@ -1,13 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var labelTheme={ -".focused":{ -width:0}, - -fontSize:17}; - - -return labelTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var labelTheme={".focused":{width:0},fontSize:17};return labelTheme;}; //# sourceMappingURL=Label.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Label.js.map b/dist/src/theme/components/Label.js.map index 2e01e2ab9..c23f9f7e9 100644 --- a/dist/src/theme/components/Label.js.map +++ b/dist/src/theme/components/Label.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Label.js"],"names":["variables","variable","labelTheme","width","fontSize"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,YAAa;AACjB,WAAY;AACVC,MAAO,CADG,CADK;;AAIjBC,SAAU,EAJO,CAAnB;;;AAOA,MAAOF,WAAP;AACD,C","file":"Label.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const labelTheme = {\n \".focused\": {\n width: 0\n },\n fontSize: 17\n };\n\n return labelTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Label.js"],"names":["variables","variable","labelTheme","width","fontSize"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,YAAa,CACjB,WAAY,CACVC,MAAO,CADG,CADK,CAIjBC,SAAU,EAJO,CAAnB,CAOA,MAAOF,WAAP,CACD,C","file":"Label.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const labelTheme = {\n \".focused\": {\n width: 0\n },\n fontSize: 17\n };\n\n return labelTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Left.js b/dist/src/theme/components/Left.js index c639ceaa7..403d3762c 100644 --- a/dist/src/theme/components/Left.js +++ b/dist/src/theme/components/Left.js @@ -1,12 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var leftTheme={ -flex:1, -alignSelf:'center', -alignItems:'flex-start'}; - - -return leftTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var leftTheme={flex:1,alignSelf:'center',alignItems:'flex-start'};return leftTheme;}; //# sourceMappingURL=Left.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Left.js.map b/dist/src/theme/components/Left.js.map index 785148648..f0f990ef9 100644 --- a/dist/src/theme/components/Left.js.map +++ b/dist/src/theme/components/Left.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Left.js"],"names":["variables","variable","leftTheme","flex","alignSelf","alignItems"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACxC,GAAMC,WAAY;AACjBC,KAAM,CADW;AAEjBC,UAAW,QAFM;AAGjBC,WAAY,YAHK,CAAlB;;;AAMA,MAAOH,UAAP;AACA,C","file":"Left.js","sourcesContent":["import variable from './../variables/platform';\n\nexport default (variables = variable) => {\n\tconst leftTheme = {\n\t\tflex: 1,\n\t\talignSelf: 'center',\n\t\talignItems: 'flex-start',\n\t};\n\n\treturn leftTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Left.js"],"names":["variables","variable","leftTheme","flex","alignSelf","alignItems"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACxC,GAAMC,WAAY,CACjBC,KAAM,CADW,CAEjBC,UAAW,QAFM,CAGjBC,WAAY,YAHK,CAAlB,CAMA,MAAOH,UAAP,CACA,C","file":"Left.js","sourcesContent":["import variable from './../variables/platform';\n\nexport default (variables = variable) => {\n\tconst leftTheme = {\n\t\tflex: 1,\n\t\talignSelf: 'center',\n\t\talignItems: 'flex-start',\n\t};\n\n\treturn leftTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/ListItem.js b/dist/src/theme/components/ListItem.js index 39d036851..749602da5 100644 --- a/dist/src/theme/components/ListItem.js +++ b/dist/src/theme/components/ListItem.js @@ -1,441 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var platform=variables.platform; -var selectedStyle={ -"NativeBase.Text":{ -color:variables.listItemSelected}, - -"NativeBase.Icon":{ -color:variables.listItemSelected}}; - - - -var listItemTheme={ -"NativeBase.InputGroup":{ -"NativeBase.Icon":{ -paddingRight:5}, - -"NativeBase.IconNB":{ -paddingRight:5}, - -"NativeBase.Input":{ -paddingHorizontal:5}, - -flex:1, -borderWidth:null, -margin:-10, -borderBottomColor:"transparent"}, - -".searchBar":{ -"NativeBase.Item":{ -"NativeBase.Icon":{ -backgroundColor:"transparent", -color:variables.dropdownLinkColor, -fontSize: -platform==="ios"? -variables.iconFontSize-10: -variables.iconFontSize-5, -alignItems:"center", -marginTop:2, -paddingRight:8}, - -"NativeBase.IconNB":{ -backgroundColor:"transparent", -color:null, -alignSelf:"center"}, - -"NativeBase.Input":{ -alignSelf:"center"}, - -alignSelf:"center", -alignItems:"center", -justifyContent:"flex-start", -flex:1, -height:platform==="ios"?30:40, -borderColor:"transparent", -backgroundColor:"#fff", -borderRadius:5}, - -"NativeBase.Button":{ -".transparent":{ -"NativeBase.Text":{ -fontWeight:"500"}, - -paddingHorizontal:null, -paddingLeft:platform==="ios"?10:null}, - -paddingHorizontal:platform==="ios"?undefined:null, -width:platform==="ios"?undefined:0, -height:platform==="ios"?undefined:0}, - -backgroundColor:variables.toolbarInputColor, -padding:10, -marginLeft:null}, - -"NativeBase.CheckBox":{ -marginLeft:-10, -marginRight:10}, - -".first":{ -".itemHeader":{ -paddingTop:variables.listItemPadding+3}}, - - -".itemHeader":{ -".first":{ -paddingTop:variables.listItemPadding+3}, - -borderBottomWidth:platform==="ios"?variables.borderWidth:null, -marginLeft:null, -padding:variables.listItemPadding, -paddingLeft:variables.listItemPadding+5, -paddingTop: -platform==="ios"?variables.listItemPadding+25:undefined, -paddingBottom: -platform==="android"?variables.listItemPadding+20:undefined, -flexDirection:"row", -borderColor:variables.listBorderColor, -"NativeBase.Text":{ -fontSize:14, -color:platform==="ios"?undefined:variables.listNoteColor}}, - - -".itemDivider":{ -borderBottomWidth:null, -marginLeft:null, -padding:variables.listItemPadding, -paddingLeft:variables.listItemPadding+5, -backgroundColor:variables.listDividerBg, -flexDirection:"row", -borderColor:variables.listBorderColor}, - -".selected":_extends({ -"NativeBase.Left":_extends({}, -selectedStyle), - -"NativeBase.Body":_extends({}, -selectedStyle), - -"NativeBase.Right":_extends({}, -selectedStyle)}, - -selectedStyle), - -"NativeBase.Left":{ -"NativeBase.Body":{ -"NativeBase.Text":{ -".note":{ -color:variables.listNoteColor, -fontWeight:"200"}, - -fontWeight:"600"}, - -marginLeft:10, -alignItems:null, -alignSelf:null}, - -"NativeBase.Icon":{ -width:variables.iconFontSize-10, -fontSize:variables.iconFontSize-10}, - -"NativeBase.IconNB":{ -width:variables.iconFontSize-10, -fontSize:variables.iconFontSize-10}, - -"NativeBase.Text":{ -alignSelf:"center"}, - -flexDirection:"row"}, - -"NativeBase.Body":{ -"NativeBase.Text":{ -marginHorizontal:variables.listItemPadding, -".note":{ -color:variables.listNoteColor, -fontWeight:"200"}}, - - -alignSelf:null, -alignItems:null}, - -"NativeBase.Right":{ -"NativeBase.Badge":{ -alignSelf:null}, - -"NativeBase.PickerNB":{ -"NativeBase.Button":{ -marginRight:-15, -"NativeBase.Text":{ -color:variables.topTabBarActiveTextColor}}}, - - - -"NativeBase.Button":{ -alignSelf:null, -".transparent":{ -"NativeBase.Text":{ -color:variables.topTabBarActiveTextColor}}}, - - - -"NativeBase.Icon":{ -alignSelf:null, -fontSize:variables.iconFontSize-8, -color:"#c9c8cd"}, - -"NativeBase.IconNB":{ -alignSelf:null, -fontSize:variables.iconFontSize-8, -color:"#c9c8cd"}, - -"NativeBase.Text":{ -".note":{ -color:variables.listNoteColor, -fontWeight:"200"}, - -alignSelf:null}, - -"NativeBase.Thumbnail":{ -alignSelf:null}, - -"NativeBase.Image":{ -alignSelf:null}, - -"NativeBase.Radio":{ -alignSelf:null}, - -"NativeBase.Checkbox":{ -alignSelf:null}, - -"NativeBase.Switch":{ -alignSelf:null}, - -padding:null, -flex:0.28}, - -"NativeBase.Text":{ -".note":{ -color:variables.listNoteColor, -fontWeight:"200"}, - -alignSelf:"center"}, - -".last":{ -marginLeft:-(variables.listItemPadding+5), -paddingLeft:(variables.listItemPadding+5)*2, -top:1}, - -".avatar":{ -"NativeBase.Left":{ -flex:0}, - -"NativeBase.Body":{ -"NativeBase.Text":{ -marginLeft:null}, - -flex:1, -paddingVertical:variables.listItemPadding, -borderBottomWidth:variables.borderWidth, -borderColor:variables.listBorderColor, -marginLeft:variables.listItemPadding+5}, - -"NativeBase.Right":{ -"NativeBase.Text":{ -".note":{ -fontSize:variables.noteFontSize-2}}, - - -flex:0, -paddingRight:variables.listItemPadding+5, -alignSelf:"stretch", -paddingVertical:variables.listItemPadding, -borderBottomWidth:variables.borderWidth, -borderColor:variables.listBorderColor}, - -".noBorder":{ -"NativeBase.Body":{ -borderBottomWidth:null}, - -"NativeBase.Right":{ -borderBottomWidth:null}}, - - -borderBottomWidth:null, -paddingVertical:null, -paddingRight:null}, - -".thumbnail":{ -"NativeBase.Left":{ -flex:0}, - -"NativeBase.Body":{ -"NativeBase.Text":{ -marginLeft:null}, - -flex:1, -paddingVertical:variables.listItemPadding+5, -borderBottomWidth:variables.borderWidth, -borderColor:variables.listBorderColor, -marginLeft:variables.listItemPadding+5}, - -"NativeBase.Right":{ -"NativeBase.Button":{ -".transparent":{ -"NativeBase.Text":{ -fontSize:variables.listNoteSize, -color:variables.sTabBarActiveTextColor}}, - - -height:null}, - -flex:0, -justifyContent:"center", -alignSelf:"stretch", -paddingRight:variables.listItemPadding+5, -paddingVertical:variables.listItemPadding+5, -borderBottomWidth:variables.borderWidth, -borderColor:variables.listBorderColor}, - -".noBorder":{ -"NativeBase.Body":{ -borderBottomWidth:null}, - -"NativeBase.Right":{ -borderBottomWidth:null}}, - - -borderBottomWidth:null, -paddingVertical:null, -paddingRight:null}, - -".icon":{ -".last":{ -"NativeBase.Body":{ -borderBottomWidth:null}, - -"NativeBase.Right":{ -borderBottomWidth:null}, - -borderBottomWidth:variables.borderWidth, -borderColor:variables.listBorderColor}, - -"NativeBase.Left":{ -"NativeBase.Button":{ -"NativeBase.IconNB":{ -marginHorizontal:null, -fontSize:variables.iconFontSize-5}, - -"NativeBase.Icon":{ -marginHorizontal:null, -fontSize:variables.iconFontSize-8}, - -alignSelf:"center", -height:29, -width:29, -borderRadius:6, -paddingVertical:null, -paddingHorizontal:null, -alignItems:"center", -justifyContent:"center"}, - -"NativeBase.Icon":{ -width:variables.iconFontSize-5, -fontSize:variables.iconFontSize-2}, - -"NativeBase.IconNB":{ -width:variables.iconFontSize-5, -fontSize:variables.iconFontSize-2}, - -paddingRight:variables.listItemPadding+5, -flex:0, -height:44, -justifyContent:"center", -alignItems:"center"}, - -"NativeBase.Body":{ -"NativeBase.Text":{ -marginLeft:null, -fontSize:17}, - -flex:1, -height:44, -justifyContent:"center", -borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1), -borderColor:variables.listBorderColor}, - -"NativeBase.Right":{ -"NativeBase.Text":{ -textAlign:"center", -color:"#8F8E95", -fontSize:17}, - -"NativeBase.IconNB":{ -color:"#C8C7CC", -fontSize:variables.iconFontSize-10, -alignSelf:"center", -paddingLeft:10, -paddingTop:3}, - -"NativeBase.Icon":{ -color:"#C8C7CC", -fontSize:variables.iconFontSize-10, -alignSelf:"center", -paddingLeft:10, -paddingTop:3}, - -"NativeBase.Switch":{ -marginRight:_reactNative.Platform.OS==="ios"?undefined:-5, -alignSelf:null}, - -"NativeBase.PickerNB":_extends({}, -(0,_Picker2.default)()), - -flexDirection:"row", -alignItems:"center", -flex:0, -alignSelf:"stretch", -height:44, -justifyContent:"flex-end", -borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1), -borderColor:variables.listBorderColor, -paddingRight:variables.listItemPadding+5}, - -".noBorder":{ -"NativeBase.Body":{ -borderBottomWidth:null}, - -"NativeBase.Right":{ -borderBottomWidth:null}}, - - -borderBottomWidth:null, -paddingVertical:null, -paddingRight:null, -height:44, -justifyContent:"center"}, - -".noBorder":{ -borderBottomWidth:null}, - -".noIndent":{ -marginLeft:null, -padding:variables.listItemPadding, -paddingLeft:variables.listItemPadding+6}, - -alignItems:"center", -flexDirection:"row", -paddingRight:variables.listItemPadding+6, -paddingVertical:variables.listItemPadding+3, -marginLeft:variables.listItemPadding+6, -borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1), -backgroundColor:variables.listBg, -borderColor:variables.listBorderColor}; - - -return listItemTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var selectedStyle={"NativeBase.Text":{color:variables.listItemSelected},"NativeBase.Icon":{color:variables.listItemSelected}};var listItemTheme={"NativeBase.InputGroup":{"NativeBase.Icon":{paddingRight:5},"NativeBase.IconNB":{paddingRight:5},"NativeBase.Input":{paddingHorizontal:5},flex:1,borderWidth:null,margin:-10,borderBottomColor:"transparent"},".searchBar":{"NativeBase.Item":{"NativeBase.Icon":{backgroundColor:"transparent",color:variables.dropdownLinkColor,fontSize:platform==="ios"?variables.iconFontSize-10:variables.iconFontSize-5,alignItems:"center",marginTop:2,paddingRight:8},"NativeBase.IconNB":{backgroundColor:"transparent",color:null,alignSelf:"center"},"NativeBase.Input":{alignSelf:"center"},alignSelf:"center",alignItems:"center",justifyContent:"flex-start",flex:1,height:platform==="ios"?30:40,borderColor:"transparent",backgroundColor:"#fff",borderRadius:5},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontWeight:"500"},paddingHorizontal:null,paddingLeft:platform==="ios"?10:null},paddingHorizontal:platform==="ios"?undefined:null,width:platform==="ios"?undefined:0,height:platform==="ios"?undefined:0},backgroundColor:variables.toolbarInputColor,padding:10,marginLeft:null},"NativeBase.CheckBox":{marginLeft:-10,marginRight:10},".first":{".itemHeader":{paddingTop:variables.listItemPadding+3}},".itemHeader":{".first":{paddingTop:variables.listItemPadding+3},borderBottomWidth:platform==="ios"?variables.borderWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,paddingTop:platform==="ios"?variables.listItemPadding+25:undefined,paddingBottom:platform==="android"?variables.listItemPadding+20:undefined,flexDirection:"row",borderColor:variables.listBorderColor,"NativeBase.Text":{fontSize:14,color:platform==="ios"?undefined:variables.listNoteColor}},".itemDivider":{borderBottomWidth:null,marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+5,backgroundColor:variables.listDividerBg,flexDirection:"row",borderColor:variables.listBorderColor},".selected":_extends({"NativeBase.Left":_extends({},selectedStyle),"NativeBase.Body":_extends({},selectedStyle),"NativeBase.Right":_extends({},selectedStyle)},selectedStyle),"NativeBase.Left":{"NativeBase.Body":{"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},fontWeight:"600"},marginLeft:10,alignItems:null,alignSelf:null},"NativeBase.Icon":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.IconNB":{width:variables.iconFontSize-10,fontSize:variables.iconFontSize-10},"NativeBase.Text":{alignSelf:"center"},flexDirection:"row"},"NativeBase.Body":{"NativeBase.Text":{marginHorizontal:variables.listItemPadding,".note":{color:variables.listNoteColor,fontWeight:"200"}},alignSelf:null,alignItems:null},"NativeBase.Right":{"NativeBase.Badge":{alignSelf:null},"NativeBase.PickerNB":{"NativeBase.Button":{marginRight:-15,"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Button":{alignSelf:null,".transparent":{"NativeBase.Text":{color:variables.topTabBarActiveTextColor}}},"NativeBase.Icon":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.IconNB":{alignSelf:null,fontSize:variables.iconFontSize-8,color:"#c9c8cd"},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:null},"NativeBase.Thumbnail":{alignSelf:null},"NativeBase.Image":{alignSelf:null},"NativeBase.Radio":{alignSelf:null},"NativeBase.Checkbox":{alignSelf:null},"NativeBase.Switch":{alignSelf:null},padding:null,flex:0.28},"NativeBase.Text":{".note":{color:variables.listNoteColor,fontWeight:"200"},alignSelf:"center"},".last":{marginLeft:-(variables.listItemPadding+5),paddingLeft:(variables.listItemPadding+5)*2,top:1},".avatar":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Text":{".note":{fontSize:variables.noteFontSize-2}},flex:0,paddingRight:variables.listItemPadding+5,alignSelf:"stretch",paddingVertical:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".thumbnail":{"NativeBase.Left":{flex:0},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null},flex:1,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor,marginLeft:variables.listItemPadding+5},"NativeBase.Right":{"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:variables.listNoteSize,color:variables.sTabBarActiveTextColor}},height:null},flex:0,justifyContent:"center",alignSelf:"stretch",paddingRight:variables.listItemPadding+5,paddingVertical:variables.listItemPadding+5,borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null},".icon":{".last":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null},borderBottomWidth:variables.borderWidth,borderColor:variables.listBorderColor},"NativeBase.Left":{"NativeBase.Button":{"NativeBase.IconNB":{marginHorizontal:null,fontSize:variables.iconFontSize-5},"NativeBase.Icon":{marginHorizontal:null,fontSize:variables.iconFontSize-8},alignSelf:"center",height:29,width:29,borderRadius:6,paddingVertical:null,paddingHorizontal:null,alignItems:"center",justifyContent:"center"},"NativeBase.Icon":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},"NativeBase.IconNB":{width:variables.iconFontSize-5,fontSize:variables.iconFontSize-2},paddingRight:variables.listItemPadding+5,flex:0,height:44,justifyContent:"center",alignItems:"center"},"NativeBase.Body":{"NativeBase.Text":{marginLeft:null,fontSize:17},flex:1,height:44,justifyContent:"center",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor},"NativeBase.Right":{"NativeBase.Text":{textAlign:"center",color:"#8F8E95",fontSize:17},"NativeBase.IconNB":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Icon":{color:"#C8C7CC",fontSize:variables.iconFontSize-10,alignSelf:"center",paddingLeft:10,paddingTop:3},"NativeBase.Switch":{marginRight:_reactNative.Platform.OS==="ios"?undefined:-5,alignSelf:null},"NativeBase.PickerNB":_extends({},(0,_Picker2.default)()),flexDirection:"row",alignItems:"center",flex:0,alignSelf:"stretch",height:44,justifyContent:"flex-end",borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),borderColor:variables.listBorderColor,paddingRight:variables.listItemPadding+5},".noBorder":{"NativeBase.Body":{borderBottomWidth:null},"NativeBase.Right":{borderBottomWidth:null}},borderBottomWidth:null,paddingVertical:null,paddingRight:null,height:44,justifyContent:"center"},".noBorder":{borderBottomWidth:null},".noIndent":{marginLeft:null,padding:variables.listItemPadding,paddingLeft:variables.listItemPadding+6},alignItems:"center",flexDirection:"row",paddingRight:variables.listItemPadding+6,paddingVertical:variables.listItemPadding+3,marginLeft:variables.listItemPadding+6,borderBottomWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),backgroundColor:variables.listBg,borderColor:variables.listBorderColor};return listItemTheme;}; //# sourceMappingURL=ListItem.js.map \ No newline at end of file diff --git a/dist/src/theme/components/ListItem.js.map b/dist/src/theme/components/ListItem.js.map index 67fe8f931..4caa6cfda 100644 --- a/dist/src/theme/components/ListItem.js.map +++ b/dist/src/theme/components/ListItem.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/ListItem.js"],"names":["variables","variable","platform","selectedStyle","color","listItemSelected","listItemTheme","paddingRight","paddingHorizontal","flex","borderWidth","margin","borderBottomColor","backgroundColor","dropdownLinkColor","fontSize","iconFontSize","alignItems","marginTop","alignSelf","justifyContent","height","borderColor","borderRadius","fontWeight","paddingLeft","undefined","width","toolbarInputColor","padding","marginLeft","marginRight","paddingTop","listItemPadding","borderBottomWidth","paddingBottom","flexDirection","listBorderColor","listNoteColor","listDividerBg","marginHorizontal","topTabBarActiveTextColor","top","paddingVertical","noteFontSize","listNoteSize","sTabBarActiveTextColor","PixelRatio","getPixelSizeForLayoutSize","textAlign","Platform","OS","listBg"],"mappings":"yRAAA;;AAEA,gC;AACA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,UAAWF,UAAUE,QAA3B;AACA,GAAMC,eAAgB;AACpB,kBAAmB;AACjBC,MAAOJ,UAAUK,gBADA,CADC;;AAIpB,kBAAmB;AACjBD,MAAOJ,UAAUK,gBADA,CAJC,CAAtB;;;;AASA,GAAMC,eAAgB;AACpB,wBAAyB;AACvB,kBAAmB;AACjBC,aAAc,CADG,CADI;;AAIvB,oBAAqB;AACnBA,aAAc,CADK,CAJE;;AAOvB,mBAAoB;AAClBC,kBAAmB,CADD,CAPG;;AAUvBC,KAAM,CAViB;AAWvBC,YAAa,IAXU;AAYvBC,OAAQ,CAAC,EAZc;AAavBC,kBAAmB,aAbI,CADL;;AAgBpB,aAAc;AACZ,kBAAmB;AACjB,kBAAmB;AACjBC,gBAAiB,aADA;AAEjBT,MAAOJ,UAAUc,iBAFA;AAGjBC;AACEb,WAAa,KAAb;AACIF,UAAUgB,YAAV,CAAyB,EAD7B;AAEIhB,UAAUgB,YAAV,CAAyB,CANd;AAOjB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,IADD,CAJT,CA5FN;;;AAoGPA,kBAAmB,IApGZ;AAqGPS,gBAAiB,IArGV;AAsGPpC,aAAc,IAtGP;AAuGPc,OAAQ,EAvGD;AAwGPD,eAAgB,QAxGT,CA1SW;;AAoZpB,YAAa;AACXc,kBAAmB,IADR,CApZO;;AAuZpB,YAAa;AACXJ,WAAY,IADD;AAEXD,QAAS7B,UAAUiC,eAFR;AAGXR,YAAazB,UAAUiC,eAAV,CAA4B,CAH9B,CAvZO;;AA4ZpBhB,WAAY,QA5ZQ;AA6ZpBmB,cAAe,KA7ZK;AA8ZpB7B,aAAcP,UAAUiC,eAAV,CAA4B,CA9ZtB;AA+ZpBU,gBAAiB3C,UAAUiC,eAAV,CAA4B,CA/ZzB;AAgapBH,WAAY9B,UAAUiC,eAAV,CAA4B,CAhapB;AAiapBC,kBAAmB,EAAIa,wBAAWC,yBAAX,CAAqC,CAArC,CAjaH;AAkapBnC,gBAAiBb,UAAUoD,MAlaP;AAmapB9B,YAAatB,UAAUqC,eAnaH,CAAtB;;;AAsaA,MAAO/B,cAAP;AACD,C","file":"ListItem.js","sourcesContent":["import { Platform, PixelRatio } from \"react-native\";\n\nimport pickerTheme from \"./Picker\";\nimport variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const platform = variables.platform;\n const selectedStyle = {\n \"NativeBase.Text\": {\n color: variables.listItemSelected\n },\n \"NativeBase.Icon\": {\n color: variables.listItemSelected\n }\n };\n\n const listItemTheme = {\n \"NativeBase.InputGroup\": {\n \"NativeBase.Icon\": {\n paddingRight: 5\n },\n \"NativeBase.IconNB\": {\n paddingRight: 5\n },\n \"NativeBase.Input\": {\n paddingHorizontal: 5\n },\n flex: 1,\n borderWidth: null,\n margin: -10,\n borderBottomColor: \"transparent\"\n },\n \".searchBar\": {\n \"NativeBase.Item\": {\n \"NativeBase.Icon\": {\n backgroundColor: \"transparent\",\n color: variables.dropdownLinkColor,\n fontSize:\n platform === \"ios\"\n ? variables.iconFontSize - 10\n : variables.iconFontSize - 5,\n alignItems: \"center\",\n marginTop: 2,\n paddingRight: 8\n },\n \"NativeBase.IconNB\": {\n backgroundColor: \"transparent\",\n color: null,\n alignSelf: \"center\"\n },\n \"NativeBase.Input\": {\n alignSelf: \"center\"\n },\n alignSelf: \"center\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n flex: 1,\n height: platform === \"ios\" ? 30 : 40,\n borderColor: \"transparent\",\n backgroundColor: \"#fff\",\n borderRadius: 5\n },\n \"NativeBase.Button\": {\n \".transparent\": {\n \"NativeBase.Text\": {\n fontWeight: \"500\"\n },\n paddingHorizontal: null,\n paddingLeft: platform === \"ios\" ? 10 : null\n },\n paddingHorizontal: platform === \"ios\" ? undefined : null,\n width: platform === \"ios\" ? undefined : 0,\n height: platform === \"ios\" ? undefined : 0\n },\n backgroundColor: variables.toolbarInputColor,\n padding: 10,\n marginLeft: null\n },\n \"NativeBase.CheckBox\": {\n marginLeft: -10,\n marginRight: 10\n },\n \".first\": {\n \".itemHeader\": {\n paddingTop: variables.listItemPadding + 3\n }\n },\n \".itemHeader\": {\n \".first\": {\n paddingTop: variables.listItemPadding + 3\n },\n borderBottomWidth: platform === \"ios\" ? variables.borderWidth : null,\n marginLeft: null,\n padding: variables.listItemPadding,\n paddingLeft: variables.listItemPadding + 5,\n paddingTop:\n platform === \"ios\" ? variables.listItemPadding + 25 : undefined,\n paddingBottom:\n platform === \"android\" ? variables.listItemPadding + 20 : undefined,\n flexDirection: \"row\",\n borderColor: variables.listBorderColor,\n \"NativeBase.Text\": {\n fontSize: 14,\n color: platform === \"ios\" ? undefined : variables.listNoteColor\n }\n },\n \".itemDivider\": {\n borderBottomWidth: null,\n marginLeft: null,\n padding: variables.listItemPadding,\n paddingLeft: variables.listItemPadding + 5,\n backgroundColor: variables.listDividerBg,\n flexDirection: \"row\",\n borderColor: variables.listBorderColor\n },\n \".selected\": {\n \"NativeBase.Left\": {\n ...selectedStyle\n },\n \"NativeBase.Body\": {\n ...selectedStyle\n },\n \"NativeBase.Right\": {\n ...selectedStyle\n },\n ...selectedStyle\n },\n \"NativeBase.Left\": {\n \"NativeBase.Body\": {\n \"NativeBase.Text\": {\n \".note\": {\n color: variables.listNoteColor,\n fontWeight: \"200\"\n },\n fontWeight: \"600\"\n },\n marginLeft: 10,\n alignItems: null,\n alignSelf: null\n },\n \"NativeBase.Icon\": {\n width: variables.iconFontSize - 10,\n fontSize: variables.iconFontSize - 10\n },\n \"NativeBase.IconNB\": {\n width: variables.iconFontSize - 10,\n fontSize: variables.iconFontSize - 10\n },\n \"NativeBase.Text\": {\n alignSelf: \"center\"\n },\n flexDirection: \"row\"\n },\n \"NativeBase.Body\": {\n \"NativeBase.Text\": {\n marginHorizontal: variables.listItemPadding,\n \".note\": {\n color: variables.listNoteColor,\n fontWeight: \"200\"\n }\n },\n alignSelf: null,\n alignItems: null\n },\n \"NativeBase.Right\": {\n \"NativeBase.Badge\": {\n alignSelf: null\n },\n \"NativeBase.PickerNB\": {\n \"NativeBase.Button\": {\n marginRight: -15,\n \"NativeBase.Text\": {\n color: variables.topTabBarActiveTextColor\n }\n }\n },\n \"NativeBase.Button\": {\n alignSelf: null,\n \".transparent\": {\n \"NativeBase.Text\": {\n color: variables.topTabBarActiveTextColor\n }\n }\n },\n \"NativeBase.Icon\": {\n alignSelf: null,\n fontSize: variables.iconFontSize - 8,\n color: \"#c9c8cd\"\n },\n \"NativeBase.IconNB\": {\n alignSelf: null,\n fontSize: variables.iconFontSize - 8,\n color: \"#c9c8cd\"\n },\n \"NativeBase.Text\": {\n \".note\": {\n color: variables.listNoteColor,\n fontWeight: \"200\"\n },\n alignSelf: null\n },\n \"NativeBase.Thumbnail\": {\n alignSelf: null\n },\n \"NativeBase.Image\": {\n alignSelf: null\n },\n \"NativeBase.Radio\": {\n alignSelf: null\n },\n \"NativeBase.Checkbox\": {\n alignSelf: null\n },\n \"NativeBase.Switch\": {\n alignSelf: null\n },\n padding: null,\n flex: 0.28\n },\n \"NativeBase.Text\": {\n \".note\": {\n color: variables.listNoteColor,\n fontWeight: \"200\"\n },\n alignSelf: \"center\"\n },\n \".last\": {\n marginLeft: -(variables.listItemPadding + 5),\n paddingLeft: (variables.listItemPadding + 5) * 2,\n top: 1\n },\n \".avatar\": {\n \"NativeBase.Left\": {\n flex: 0\n },\n \"NativeBase.Body\": {\n \"NativeBase.Text\": {\n marginLeft: null\n },\n flex: 1,\n paddingVertical: variables.listItemPadding,\n borderBottomWidth: variables.borderWidth,\n borderColor: variables.listBorderColor,\n marginLeft: variables.listItemPadding + 5\n },\n \"NativeBase.Right\": {\n \"NativeBase.Text\": {\n \".note\": {\n fontSize: variables.noteFontSize - 2\n }\n },\n flex: 0,\n paddingRight: variables.listItemPadding + 5,\n alignSelf: \"stretch\",\n paddingVertical: variables.listItemPadding,\n borderBottomWidth: variables.borderWidth,\n borderColor: variables.listBorderColor\n },\n \".noBorder\": {\n \"NativeBase.Body\": {\n borderBottomWidth: null\n },\n \"NativeBase.Right\": {\n borderBottomWidth: null\n }\n },\n borderBottomWidth: null,\n paddingVertical: null,\n paddingRight: null\n },\n \".thumbnail\": {\n \"NativeBase.Left\": {\n flex: 0\n },\n \"NativeBase.Body\": {\n \"NativeBase.Text\": {\n marginLeft: null\n },\n flex: 1,\n paddingVertical: variables.listItemPadding + 5,\n borderBottomWidth: variables.borderWidth,\n borderColor: variables.listBorderColor,\n marginLeft: variables.listItemPadding + 5\n },\n \"NativeBase.Right\": {\n \"NativeBase.Button\": {\n \".transparent\": {\n \"NativeBase.Text\": {\n fontSize: variables.listNoteSize,\n color: variables.sTabBarActiveTextColor\n }\n },\n height: null\n },\n flex: 0,\n justifyContent: \"center\",\n alignSelf: \"stretch\",\n paddingRight: variables.listItemPadding + 5,\n paddingVertical: variables.listItemPadding + 5,\n borderBottomWidth: variables.borderWidth,\n borderColor: variables.listBorderColor\n },\n \".noBorder\": {\n \"NativeBase.Body\": {\n borderBottomWidth: null\n },\n \"NativeBase.Right\": {\n borderBottomWidth: null\n }\n },\n borderBottomWidth: null,\n paddingVertical: null,\n paddingRight: null\n },\n \".icon\": {\n \".last\": {\n \"NativeBase.Body\": {\n borderBottomWidth: null\n },\n \"NativeBase.Right\": {\n borderBottomWidth: null\n },\n borderBottomWidth: variables.borderWidth,\n borderColor: variables.listBorderColor\n },\n \"NativeBase.Left\": {\n \"NativeBase.Button\": {\n \"NativeBase.IconNB\": {\n marginHorizontal: null,\n fontSize: variables.iconFontSize - 5\n },\n \"NativeBase.Icon\": {\n marginHorizontal: null,\n fontSize: variables.iconFontSize - 8\n },\n alignSelf: \"center\",\n height: 29,\n width: 29,\n borderRadius: 6,\n paddingVertical: null,\n paddingHorizontal: null,\n alignItems: \"center\",\n justifyContent: \"center\"\n },\n \"NativeBase.Icon\": {\n width: variables.iconFontSize - 5,\n fontSize: variables.iconFontSize - 2\n },\n \"NativeBase.IconNB\": {\n width: variables.iconFontSize - 5,\n fontSize: variables.iconFontSize - 2\n },\n paddingRight: variables.listItemPadding + 5,\n flex: 0,\n height: 44,\n justifyContent: \"center\",\n alignItems: \"center\"\n },\n \"NativeBase.Body\": {\n \"NativeBase.Text\": {\n marginLeft: null,\n fontSize: 17\n },\n flex: 1,\n height: 44,\n justifyContent: \"center\",\n borderBottomWidth: 1 / PixelRatio.getPixelSizeForLayoutSize(1),\n borderColor: variables.listBorderColor\n },\n \"NativeBase.Right\": {\n \"NativeBase.Text\": {\n textAlign: \"center\",\n color: \"#8F8E95\",\n fontSize: 17\n },\n \"NativeBase.IconNB\": {\n color: \"#C8C7CC\",\n fontSize: variables.iconFontSize - 10,\n alignSelf: \"center\",\n paddingLeft: 10,\n paddingTop: 3\n },\n \"NativeBase.Icon\": {\n color: \"#C8C7CC\",\n fontSize: variables.iconFontSize - 10,\n alignSelf: \"center\",\n paddingLeft: 10,\n paddingTop: 3\n },\n \"NativeBase.Switch\": {\n marginRight: Platform.OS === \"ios\" ? undefined : -5,\n alignSelf: null\n },\n \"NativeBase.PickerNB\": {\n ...pickerTheme()\n },\n flexDirection: \"row\",\n alignItems: \"center\",\n flex: 0,\n alignSelf: \"stretch\",\n height: 44,\n justifyContent: \"flex-end\",\n borderBottomWidth: 1 / PixelRatio.getPixelSizeForLayoutSize(1),\n borderColor: variables.listBorderColor,\n paddingRight: variables.listItemPadding + 5\n },\n \".noBorder\": {\n \"NativeBase.Body\": {\n borderBottomWidth: null\n },\n \"NativeBase.Right\": {\n borderBottomWidth: null\n }\n },\n borderBottomWidth: null,\n paddingVertical: null,\n paddingRight: null,\n height: 44,\n justifyContent: \"center\"\n },\n \".noBorder\": {\n borderBottomWidth: null\n },\n \".noIndent\": {\n marginLeft: null,\n padding: variables.listItemPadding,\n paddingLeft: variables.listItemPadding + 6,\n },\n alignItems: \"center\",\n flexDirection: \"row\",\n paddingRight: variables.listItemPadding + 6,\n paddingVertical: variables.listItemPadding + 3,\n marginLeft: variables.listItemPadding + 6,\n borderBottomWidth: 1 / PixelRatio.getPixelSizeForLayoutSize(1),\n backgroundColor: variables.listBg,\n borderColor: variables.listBorderColor\n };\n\n return listItemTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/ListItem.js"],"names":["variables","variable","platform","selectedStyle","color","listItemSelected","listItemTheme","paddingRight","paddingHorizontal","flex","borderWidth","margin","borderBottomColor","backgroundColor","dropdownLinkColor","fontSize","iconFontSize","alignItems","marginTop","alignSelf","justifyContent","height","borderColor","borderRadius","fontWeight","paddingLeft","undefined","width","toolbarInputColor","padding","marginLeft","marginRight","paddingTop","listItemPadding","borderBottomWidth","paddingBottom","flexDirection","listBorderColor","listNoteColor","listDividerBg","marginHorizontal","topTabBarActiveTextColor","top","paddingVertical","noteFontSize","listNoteSize","sTabBarActiveTextColor","PixelRatio","getPixelSizeForLayoutSize","textAlign","Platform","OS","listBg"],"mappings":"yRAAA,yCAEA,gC,6CACA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,UAAWF,UAAUE,QAA3B,CACA,GAAMC,eAAgB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SAAxB,CAAoC,CAAC,CAD/B,CAEnBP,UAAW,IAFQ,CApBH,CAwBlB,kCACK,sBADL,CAxBkB,CA2BlBiB,cAAe,KA3BG,CA4BlBnB,WAAY,QA5BM,CA6BlBR,KAAM,CA7BY,CA8BlBU,UAAW,SA9BO,CA+BlBE,OAAQ,EA/BU,CAgClBD,eAAgB,UAhCE,CAiClBc,kBAAmB,EAAIa,wBAAWC,yBAAX,CAAqC,CAArC,CAjCL,CAkClB1B,YAAatB,UAAUqC,eAlCL,CAmClB9B,aAAcP,UAAUiC,eAAV,CAA4B,CAnCxB,CAvDb,CA4FP,YAAa,CACX,kBAAmB,CACjBC,kBAAmB,IADF,CADR,CAIX,mBAAoB,CAClBA,kBAAmB,IADD,CAJT,CA5FN,CAoGPA,kBAAmB,IApGZ,CAqGPS,gBAAiB,IArGV,CAsGPpC,aAAc,IAtGP,CAuGPc,OAAQ,EAvGD,CAwGPD,eAAgB,QAxGT,CA1SW,CAoZpB,YAAa,CACXc,kBAAmB,IADR,CApZO,CAuZpB,YAAa,CACXJ,WAAY,IADD,CAEXD,QAAS7B,UAAUiC,eAFR,CAGXR,YAAazB,UAAUiC,eAAV,CAA4B,CAH9B,CAvZO,CA4ZpBhB,WAAY,QA5ZQ,CA6ZpBmB,cAAe,KA7ZK,CA8ZpB7B,aAAcP,UAAUiC,eAAV,CAA4B,CA9ZtB,CA+ZpBU,gBAAiB3C,UAAUiC,eAAV,CAA4B,CA/ZzB,CAgapBH,WAAY9B,UAAUiC,eAAV,CAA4B,CAhapB,CAiapBC,kBAAmB,EAAIa,wBAAWC,yBAAX,CAAqC,CAArC,CAjaH,CAkapBnC,gBAAiBb,UAAUoD,MAlaP,CAmapB9B,YAAatB,UAAUqC,eAnaH,CAAtB,CAsaA,MAAO/B,cAAP,CACD,C","file":"ListItem.js","sourcesContent":["import { Platform, PixelRatio } from \"react-native\";\n\nimport pickerTheme from \"./Picker\";\nimport variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const platform = variables.platform;\n const selectedStyle = {\n \"NativeBase.Text\": {\n color: variables.listItemSelected\n },\n \"NativeBase.Icon\": {\n color: variables.listItemSelected\n }\n };\n\n const listItemTheme = {\n \"NativeBase.InputGroup\": {\n \"NativeBase.Icon\": {\n paddingRight: 5\n },\n \"NativeBase.IconNB\": {\n paddingRight: 5\n },\n \"NativeBase.Input\": {\n paddingHorizontal: 5\n },\n flex: 1,\n borderWidth: null,\n margin: -10,\n borderBottomColor: \"transparent\"\n },\n \".searchBar\": {\n \"NativeBase.Item\": {\n \"NativeBase.Icon\": {\n backgroundColor: \"transparent\",\n color: variables.dropdownLinkColor,\n fontSize:\n platform === \"ios\"\n ? variables.iconFontSize - 10\n : variables.iconFontSize - 5,\n alignItems: \"center\",\n marginTop: 2,\n paddingRight: 8\n },\n \"NativeBase.IconNB\": {\n backgroundColor: \"transparent\",\n color: null,\n alignSelf: \"center\"\n },\n \"NativeBase.Input\": {\n alignSelf: \"center\"\n },\n alignSelf: \"center\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n flex: 1,\n height: platform === \"ios\" ? 30 : 40,\n borderColor: \"transparent\",\n backgroundColor: \"#fff\",\n borderRadius: 5\n },\n \"NativeBase.Button\": {\n \".transparent\": {\n \"NativeBase.Text\": {\n fontWeight: \"500\"\n },\n paddingHorizontal: null,\n paddingLeft: platform === \"ios\" ? 10 : null\n },\n paddingHorizontal: platform === \"ios\" ? undefined : null,\n width: platform === \"ios\" ? undefined : 0,\n height: platform === \"ios\" ? undefined : 0\n },\n backgroundColor: variables.toolbarInputColor,\n padding: 10,\n marginLeft: null\n },\n \"NativeBase.CheckBox\": {\n marginLeft: -10,\n marginRight: 10\n },\n \".first\": {\n \".itemHeader\": {\n paddingTop: variables.listItemPadding + 3\n }\n },\n \".itemHeader\": {\n \".first\": {\n paddingTop: variables.listItemPadding + 3\n },\n borderBottomWidth: platform === \"ios\" ? variables.borderWidth : null,\n marginLeft: null,\n padding: variables.listItemPadding,\n paddingLeft: variables.listItemPadding + 5,\n paddingTop:\n platform === \"ios\" ? variables.listItemPadding + 25 : undefined,\n paddingBottom:\n platform === \"android\" ? variables.listItemPadding + 20 : undefined,\n flexDirection: \"row\",\n borderColor: variables.listBorderColor,\n \"NativeBase.Text\": {\n fontSize: 14,\n color: platform === \"ios\" ? undefined : variables.listNoteColor\n }\n },\n \".itemDivider\": {\n borderBottomWidth: null,\n marginLeft: null,\n padding: variables.listItemPadding,\n paddingLeft: variables.listItemPadding + 5,\n backgroundColor: variables.listDividerBg,\n flexDirection: \"row\",\n borderColor: variables.listBorderColor\n },\n \".selected\": {\n \"NativeBase.Left\": {\n ...selectedStyle\n },\n \"NativeBase.Body\": {\n ...selectedStyle\n },\n \"NativeBase.Right\": {\n ...selectedStyle\n },\n ...selectedStyle\n },\n \"NativeBase.Left\": {\n \"NativeBase.Body\": {\n \"NativeBase.Text\": {\n \".note\": {\n color: variables.listNoteColor,\n fontWeight: \"200\"\n },\n fontWeight: \"600\"\n },\n marginLeft: 10,\n alignItems: null,\n alignSelf: null\n },\n \"NativeBase.Icon\": {\n width: variables.iconFontSize - 10,\n fontSize: variables.iconFontSize - 10\n },\n \"NativeBase.IconNB\": {\n width: variables.iconFontSize - 10,\n fontSize: variables.iconFontSize - 10\n },\n \"NativeBase.Text\": {\n alignSelf: \"center\"\n },\n flexDirection: \"row\"\n },\n \"NativeBase.Body\": {\n \"NativeBase.Text\": {\n marginHorizontal: variables.listItemPadding,\n \".note\": {\n color: variables.listNoteColor,\n fontWeight: \"200\"\n }\n },\n alignSelf: null,\n alignItems: null\n },\n \"NativeBase.Right\": {\n \"NativeBase.Badge\": {\n alignSelf: null\n },\n \"NativeBase.PickerNB\": {\n \"NativeBase.Button\": {\n marginRight: -15,\n \"NativeBase.Text\": {\n color: variables.topTabBarActiveTextColor\n }\n }\n },\n \"NativeBase.Button\": {\n alignSelf: null,\n \".transparent\": {\n \"NativeBase.Text\": {\n color: variables.topTabBarActiveTextColor\n }\n }\n },\n \"NativeBase.Icon\": {\n alignSelf: null,\n fontSize: variables.iconFontSize - 8,\n color: \"#c9c8cd\"\n },\n \"NativeBase.IconNB\": {\n alignSelf: null,\n fontSize: variables.iconFontSize - 8,\n color: \"#c9c8cd\"\n },\n \"NativeBase.Text\": {\n \".note\": {\n color: variables.listNoteColor,\n fontWeight: \"200\"\n },\n alignSelf: null\n },\n \"NativeBase.Thumbnail\": {\n alignSelf: null\n },\n \"NativeBase.Image\": {\n alignSelf: null\n },\n \"NativeBase.Radio\": {\n alignSelf: null\n },\n \"NativeBase.Checkbox\": {\n alignSelf: null\n },\n \"NativeBase.Switch\": {\n alignSelf: null\n },\n padding: null,\n flex: 0.28\n },\n \"NativeBase.Text\": {\n \".note\": {\n color: variables.listNoteColor,\n fontWeight: \"200\"\n },\n alignSelf: \"center\"\n },\n \".last\": {\n marginLeft: -(variables.listItemPadding + 5),\n paddingLeft: (variables.listItemPadding + 5) * 2,\n top: 1\n },\n \".avatar\": {\n \"NativeBase.Left\": {\n flex: 0\n },\n \"NativeBase.Body\": {\n \"NativeBase.Text\": {\n marginLeft: null\n },\n flex: 1,\n paddingVertical: variables.listItemPadding,\n borderBottomWidth: variables.borderWidth,\n borderColor: variables.listBorderColor,\n marginLeft: variables.listItemPadding + 5\n },\n \"NativeBase.Right\": {\n \"NativeBase.Text\": {\n \".note\": {\n fontSize: variables.noteFontSize - 2\n }\n },\n flex: 0,\n paddingRight: variables.listItemPadding + 5,\n alignSelf: \"stretch\",\n paddingVertical: variables.listItemPadding,\n borderBottomWidth: variables.borderWidth,\n borderColor: variables.listBorderColor\n },\n \".noBorder\": {\n \"NativeBase.Body\": {\n borderBottomWidth: null\n },\n \"NativeBase.Right\": {\n borderBottomWidth: null\n }\n },\n borderBottomWidth: null,\n paddingVertical: null,\n paddingRight: null\n },\n \".thumbnail\": {\n \"NativeBase.Left\": {\n flex: 0\n },\n \"NativeBase.Body\": {\n \"NativeBase.Text\": {\n marginLeft: null\n },\n flex: 1,\n paddingVertical: variables.listItemPadding + 5,\n borderBottomWidth: variables.borderWidth,\n borderColor: variables.listBorderColor,\n marginLeft: variables.listItemPadding + 5\n },\n \"NativeBase.Right\": {\n \"NativeBase.Button\": {\n \".transparent\": {\n \"NativeBase.Text\": {\n fontSize: variables.listNoteSize,\n color: variables.sTabBarActiveTextColor\n }\n },\n height: null\n },\n flex: 0,\n justifyContent: \"center\",\n alignSelf: \"stretch\",\n paddingRight: variables.listItemPadding + 5,\n paddingVertical: variables.listItemPadding + 5,\n borderBottomWidth: variables.borderWidth,\n borderColor: variables.listBorderColor\n },\n \".noBorder\": {\n \"NativeBase.Body\": {\n borderBottomWidth: null\n },\n \"NativeBase.Right\": {\n borderBottomWidth: null\n }\n },\n borderBottomWidth: null,\n paddingVertical: null,\n paddingRight: null\n },\n \".icon\": {\n \".last\": {\n \"NativeBase.Body\": {\n borderBottomWidth: null\n },\n \"NativeBase.Right\": {\n borderBottomWidth: null\n },\n borderBottomWidth: variables.borderWidth,\n borderColor: variables.listBorderColor\n },\n \"NativeBase.Left\": {\n \"NativeBase.Button\": {\n \"NativeBase.IconNB\": {\n marginHorizontal: null,\n fontSize: variables.iconFontSize - 5\n },\n \"NativeBase.Icon\": {\n marginHorizontal: null,\n fontSize: variables.iconFontSize - 8\n },\n alignSelf: \"center\",\n height: 29,\n width: 29,\n borderRadius: 6,\n paddingVertical: null,\n paddingHorizontal: null,\n alignItems: \"center\",\n justifyContent: \"center\"\n },\n \"NativeBase.Icon\": {\n width: variables.iconFontSize - 5,\n fontSize: variables.iconFontSize - 2\n },\n \"NativeBase.IconNB\": {\n width: variables.iconFontSize - 5,\n fontSize: variables.iconFontSize - 2\n },\n paddingRight: variables.listItemPadding + 5,\n flex: 0,\n height: 44,\n justifyContent: \"center\",\n alignItems: \"center\"\n },\n \"NativeBase.Body\": {\n \"NativeBase.Text\": {\n marginLeft: null,\n fontSize: 17\n },\n flex: 1,\n height: 44,\n justifyContent: \"center\",\n borderBottomWidth: 1 / PixelRatio.getPixelSizeForLayoutSize(1),\n borderColor: variables.listBorderColor\n },\n \"NativeBase.Right\": {\n \"NativeBase.Text\": {\n textAlign: \"center\",\n color: \"#8F8E95\",\n fontSize: 17\n },\n \"NativeBase.IconNB\": {\n color: \"#C8C7CC\",\n fontSize: variables.iconFontSize - 10,\n alignSelf: \"center\",\n paddingLeft: 10,\n paddingTop: 3\n },\n \"NativeBase.Icon\": {\n color: \"#C8C7CC\",\n fontSize: variables.iconFontSize - 10,\n alignSelf: \"center\",\n paddingLeft: 10,\n paddingTop: 3\n },\n \"NativeBase.Switch\": {\n marginRight: Platform.OS === \"ios\" ? undefined : -5,\n alignSelf: null\n },\n \"NativeBase.PickerNB\": {\n ...pickerTheme()\n },\n flexDirection: \"row\",\n alignItems: \"center\",\n flex: 0,\n alignSelf: \"stretch\",\n height: 44,\n justifyContent: \"flex-end\",\n borderBottomWidth: 1 / PixelRatio.getPixelSizeForLayoutSize(1),\n borderColor: variables.listBorderColor,\n paddingRight: variables.listItemPadding + 5\n },\n \".noBorder\": {\n \"NativeBase.Body\": {\n borderBottomWidth: null\n },\n \"NativeBase.Right\": {\n borderBottomWidth: null\n }\n },\n borderBottomWidth: null,\n paddingVertical: null,\n paddingRight: null,\n height: 44,\n justifyContent: \"center\"\n },\n \".noBorder\": {\n borderBottomWidth: null\n },\n \".noIndent\": {\n marginLeft: null,\n padding: variables.listItemPadding,\n paddingLeft: variables.listItemPadding + 6,\n },\n alignItems: \"center\",\n flexDirection: \"row\",\n paddingRight: variables.listItemPadding + 6,\n paddingVertical: variables.listItemPadding + 3,\n marginLeft: variables.listItemPadding + 6,\n borderBottomWidth: 1 / PixelRatio.getPixelSizeForLayoutSize(1),\n backgroundColor: variables.listBg,\n borderColor: variables.listBorderColor\n };\n\n return listItemTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Picker.android.js b/dist/src/theme/components/Picker.android.js index 93c8f7807..b3725c474 100644 --- a/dist/src/theme/components/Picker.android.js +++ b/dist/src/theme/components/Picker.android.js @@ -1,15 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var pickerTheme={ -".note":{ -color:"#8F8E95"}, - - -marginRight:-4, -flexGrow:1}; - - -return pickerTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var pickerTheme={".note":{color:"#8F8E95"},marginRight:-4,flexGrow:1};return pickerTheme;}; //# sourceMappingURL=Picker.android.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Picker.android.js.map b/dist/src/theme/components/Picker.android.js.map index 006b07a95..60857a10c 100644 --- a/dist/src/theme/components/Picker.android.js.map +++ b/dist/src/theme/components/Picker.android.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Picker.android.js"],"names":["variables","variable","pickerTheme","color","marginRight","flexGrow"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,aAAc;AAClB,QAAS;AACPC,MAAO,SADA,CADS;;;AAKlBC,YAAa,CAAC,CALI;AAMlBC,SAAU,CANQ,CAApB;;;AASA,MAAOH,YAAP;AACD,C","file":"Picker.android.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const pickerTheme = {\n \".note\": {\n color: \"#8F8E95\"\n },\n // width: 90,\n marginRight: -4,\n flexGrow: 1\n };\n\n return pickerTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Picker.android.js"],"names":["variables","variable","pickerTheme","color","marginRight","flexGrow"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,aAAc,CAClB,QAAS,CACPC,MAAO,SADA,CADS,CAKlBC,YAAa,CAAC,CALI,CAMlBC,SAAU,CANQ,CAApB,CASA,MAAOH,YAAP,CACD,C","file":"Picker.android.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const pickerTheme = {\n \".note\": {\n color: \"#8F8E95\"\n },\n // width: 90,\n marginRight: -4,\n flexGrow: 1\n };\n\n return pickerTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Picker.ios.js b/dist/src/theme/components/Picker.ios.js index 5b3c7afbd..02af2f315 100644 --- a/dist/src/theme/components/Picker.ios.js +++ b/dist/src/theme/components/Picker.ios.js @@ -1,8 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var pickerTheme={}; - -return pickerTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var pickerTheme={};return pickerTheme;}; //# sourceMappingURL=Picker.ios.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Picker.ios.js.map b/dist/src/theme/components/Picker.ios.js.map index 50521ddfe..4f3ab00f4 100644 --- a/dist/src/theme/components/Picker.ios.js.map +++ b/dist/src/theme/components/Picker.ios.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Picker.ios.js"],"names":["variables","variable","pickerTheme"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,aAAc,EAApB;;AAEA,MAAOA,YAAP;AACD,C","file":"Picker.ios.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const pickerTheme = {};\n\n return pickerTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Picker.ios.js"],"names":["variables","variable","pickerTheme"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,aAAc,EAApB,CAEA,MAAOA,YAAP,CACD,C","file":"Picker.ios.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const pickerTheme = {};\n\n return pickerTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Picker.js b/dist/src/theme/components/Picker.js index 10c9227ef..c8f529afb 100644 --- a/dist/src/theme/components/Picker.js +++ b/dist/src/theme/components/Picker.js @@ -1,15 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var pickerTheme={ -".note":{ -color:"#8F8E95"}, - - -marginRight:-4, -flexGrow:1}; - - -return pickerTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var pickerTheme={".note":{color:"#8F8E95"},marginRight:-4,flexGrow:1};return pickerTheme;}; //# sourceMappingURL=Picker.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Picker.js.map b/dist/src/theme/components/Picker.js.map index 01563fb48..e6bb9a15f 100644 --- a/dist/src/theme/components/Picker.js.map +++ b/dist/src/theme/components/Picker.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Picker.js"],"names":["variables","variable","pickerTheme","color","marginRight","flexGrow"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,aAAc;AAClB,QAAS;AACPC,MAAO,SADA,CADS;;;AAKlBC,YAAa,CAAC,CALI;AAMlBC,SAAU,CANQ,CAApB;;;AASA,MAAOH,YAAP;AACD,C","file":"Picker.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const pickerTheme = {\n \".note\": {\n color: \"#8F8E95\"\n },\n // width: 90,\n marginRight: -4,\n flexGrow: 1\n };\n\n return pickerTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Picker.js"],"names":["variables","variable","pickerTheme","color","marginRight","flexGrow"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,aAAc,CAClB,QAAS,CACPC,MAAO,SADA,CADS,CAKlBC,YAAa,CAAC,CALI,CAMlBC,SAAU,CANQ,CAApB,CASA,MAAOH,YAAP,CACD,C","file":"Picker.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const pickerTheme = {\n \".note\": {\n color: \"#8F8E95\"\n },\n // width: 90,\n marginRight: -4,\n flexGrow: 1\n };\n\n return pickerTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Radio.js b/dist/src/theme/components/Radio.js index 541cefae7..053e0de37 100644 --- a/dist/src/theme/components/Radio.js +++ b/dist/src/theme/components/Radio.js @@ -1,27 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native"); - -var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var radioTheme={ -".selected":{ -"NativeBase.IconNB":{ -color:_reactNative.Platform.OS==="ios"? -variables.radioColor: -variables.radioSelectedColorAndroid, -lineHeight:_reactNative.Platform.OS==="ios"?25:variables.radioBtnLineHeight, -height:_reactNative.Platform.OS==="ios"?20:undefined}}, - - -"NativeBase.IconNB":{ -color:_reactNative.Platform.OS==="ios"?"transparent":undefined, -lineHeight:_reactNative.Platform.OS==="ios"? -undefined: -variables.radioBtnLineHeight, -fontSize:_reactNative.Platform.OS==="ios"?undefined:variables.radioBtnSize}}; - - - -return radioTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var radioTheme={".selected":{"NativeBase.IconNB":{color:_reactNative.Platform.OS==="ios"?variables.radioColor:variables.radioSelectedColorAndroid,lineHeight:_reactNative.Platform.OS==="ios"?25:variables.radioBtnLineHeight,height:_reactNative.Platform.OS==="ios"?20:undefined}},"NativeBase.IconNB":{color:_reactNative.Platform.OS==="ios"?"transparent":undefined,lineHeight:_reactNative.Platform.OS==="ios"?undefined:variables.radioBtnLineHeight,fontSize:_reactNative.Platform.OS==="ios"?undefined:variables.radioBtnSize}};return radioTheme;}; //# sourceMappingURL=Radio.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Radio.js.map b/dist/src/theme/components/Radio.js.map index 1211e6650..692901447 100644 --- a/dist/src/theme/components/Radio.js.map +++ b/dist/src/theme/components/Radio.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Radio.js"],"names":["variables","variable","radioTheme","color","Platform","OS","radioColor","radioSelectedColorAndroid","lineHeight","radioBtnLineHeight","height","undefined","fontSize","radioBtnSize"],"mappings":"yDAAA;;AAEA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,YAAa;AACjB,YAAa;AACX,oBAAqB;AACnBC,MAAOC,sBAASC,EAAT,GAAgB,KAAhB;AACHL,UAAUM,UADP;AAEHN,UAAUO,yBAHK;AAInBC,WAAYJ,sBAASC,EAAT,GAAgB,KAAhB,CAAwB,EAAxB,CAA6BL,UAAUS,kBAJhC;AAKnBC,OAAQN,sBAASC,EAAT,GAAgB,KAAhB,CAAwB,EAAxB,CAA6BM,SALlB,CADV,CADI;;;AAUjB,oBAAqB;AACnBR,MAAOC,sBAASC,EAAT,GAAgB,KAAhB,CAAwB,aAAxB,CAAwCM,SAD5B;AAEnBH,WAAYJ,sBAASC,EAAT,GAAgB,KAAhB;AACRM,SADQ;AAERX,UAAUS,kBAJK;AAKnBG,SAAUR,sBAASC,EAAT,GAAgB,KAAhB,CAAwBM,SAAxB,CAAoCX,UAAUa,YALrC,CAVJ,CAAnB;;;;AAmBA,MAAOX,WAAP;AACD,C","file":"Radio.js","sourcesContent":["import { Platform } from \"react-native\";\n\nimport variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const radioTheme = {\n \".selected\": {\n \"NativeBase.IconNB\": {\n color: Platform.OS === \"ios\"\n ? variables.radioColor\n : variables.radioSelectedColorAndroid,\n lineHeight: Platform.OS === \"ios\" ? 25 : variables.radioBtnLineHeight,\n height: Platform.OS === \"ios\" ? 20 : undefined\n }\n },\n \"NativeBase.IconNB\": {\n color: Platform.OS === \"ios\" ? \"transparent\" : undefined,\n lineHeight: Platform.OS === \"ios\"\n ? undefined\n : variables.radioBtnLineHeight,\n fontSize: Platform.OS === \"ios\" ? undefined : variables.radioBtnSize\n }\n };\n\n return radioTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Radio.js"],"names":["variables","variable","radioTheme","color","Platform","OS","radioColor","radioSelectedColorAndroid","lineHeight","radioBtnLineHeight","height","undefined","fontSize","radioBtnSize"],"mappings":"yDAAA,yCAEA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,YAAa,CACjB,YAAa,CACX,oBAAqB,CACnBC,MAAOC,sBAASC,EAAT,GAAgB,KAAhB,CACHL,UAAUM,UADP,CAEHN,UAAUO,yBAHK,CAInBC,WAAYJ,sBAASC,EAAT,GAAgB,KAAhB,CAAwB,EAAxB,CAA6BL,UAAUS,kBAJhC,CAKnBC,OAAQN,sBAASC,EAAT,GAAgB,KAAhB,CAAwB,EAAxB,CAA6BM,SALlB,CADV,CADI,CAUjB,oBAAqB,CACnBR,MAAOC,sBAASC,EAAT,GAAgB,KAAhB,CAAwB,aAAxB,CAAwCM,SAD5B,CAEnBH,WAAYJ,sBAASC,EAAT,GAAgB,KAAhB,CACRM,SADQ,CAERX,UAAUS,kBAJK,CAKnBG,SAAUR,sBAASC,EAAT,GAAgB,KAAhB,CAAwBM,SAAxB,CAAoCX,UAAUa,YALrC,CAVJ,CAAnB,CAmBA,MAAOX,WAAP,CACD,C","file":"Radio.js","sourcesContent":["import { Platform } from \"react-native\";\n\nimport variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const radioTheme = {\n \".selected\": {\n \"NativeBase.IconNB\": {\n color: Platform.OS === \"ios\"\n ? variables.radioColor\n : variables.radioSelectedColorAndroid,\n lineHeight: Platform.OS === \"ios\" ? 25 : variables.radioBtnLineHeight,\n height: Platform.OS === \"ios\" ? 20 : undefined\n }\n },\n \"NativeBase.IconNB\": {\n color: Platform.OS === \"ios\" ? \"transparent\" : undefined,\n lineHeight: Platform.OS === \"ios\"\n ? undefined\n : variables.radioBtnLineHeight,\n fontSize: Platform.OS === \"ios\" ? undefined : variables.radioBtnSize\n }\n };\n\n return radioTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Right.js b/dist/src/theme/components/Right.js index 4a2393a5e..3c6fab2ea 100644 --- a/dist/src/theme/components/Right.js +++ b/dist/src/theme/components/Right.js @@ -1,15 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var rightTheme={ -'NativeBase.Button':{ -alignSelf:null}, - -flex:1, -alignSelf:'center', -alignItems:'flex-end'}; - - -return rightTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var rightTheme={'NativeBase.Button':{alignSelf:null},flex:1,alignSelf:'center',alignItems:'flex-end'};return rightTheme;}; //# sourceMappingURL=Right.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Right.js.map b/dist/src/theme/components/Right.js.map index 7921513f7..4acde763e 100644 --- a/dist/src/theme/components/Right.js.map +++ b/dist/src/theme/components/Right.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Right.js"],"names":["variables","variable","rightTheme","alignSelf","flex","alignItems"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACxC,GAAMC,YAAa;AAClB,oBAAqB;AACpBC,UAAW,IADS,CADH;;AAIlBC,KAAM,CAJY;AAKlBD,UAAW,QALO;AAMlBE,WAAY,UANM,CAAnB;;;AASA,MAAOH,WAAP;AACA,C","file":"Right.js","sourcesContent":["import variable from './../variables/platform';\n\nexport default (variables = variable) => {\n\tconst rightTheme = {\n\t\t'NativeBase.Button': {\n\t\t\talignSelf: null,\n\t\t},\n\t\tflex: 1,\n\t\talignSelf: 'center',\n\t\talignItems: 'flex-end',\n\t};\n\n\treturn rightTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Right.js"],"names":["variables","variable","rightTheme","alignSelf","flex","alignItems"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACxC,GAAMC,YAAa,CAClB,oBAAqB,CACpBC,UAAW,IADS,CADH,CAIlBC,KAAM,CAJY,CAKlBD,UAAW,QALO,CAMlBE,WAAY,UANM,CAAnB,CASA,MAAOH,WAAP,CACA,C","file":"Right.js","sourcesContent":["import variable from './../variables/platform';\n\nexport default (variables = variable) => {\n\tconst rightTheme = {\n\t\t'NativeBase.Button': {\n\t\t\talignSelf: null,\n\t\t},\n\t\tflex: 1,\n\t\talignSelf: 'center',\n\t\talignItems: 'flex-end',\n\t};\n\n\treturn rightTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Segment.js b/dist/src/theme/components/Segment.js index 42ba13a2b..059f77313 100644 --- a/dist/src/theme/components/Segment.js +++ b/dist/src/theme/components/Segment.js @@ -1,55 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var platform=variables.platform; - -var segmentTheme={ -height:45, -borderColor:variables.segmentBorderColorMain, -flexDirection:"row", -justifyContent:"center", -backgroundColor:variables.segmentBackgroundColor, -"NativeBase.Button":{ -alignSelf:"center", -borderRadius:0, -paddingTop:3, -paddingBottom:3, -height:30, -backgroundColor:"transparent", -borderWidth:1, -borderLeftWidth:0, -borderColor:variables.segmentBorderColor, -elevation:0, -".active":{ -backgroundColor:variables.segmentActiveBackgroundColor, -"NativeBase.Text":{ -color:variables.segmentActiveTextColor}, - -"NativeBase.Icon":{ -color:variables.segmentActiveTextColor}}, - - -".first":{ -borderTopLeftRadius:platform==="ios"?5:undefined, -borderBottomLeftRadius:platform==="ios"?5:undefined, -borderLeftWidth:1}, - -".last":{ -borderTopRightRadius:platform==="ios"?5:undefined, -borderBottomRightRadius:platform==="ios"?5:undefined}, - -"NativeBase.Text":{ -color:variables.segmentTextColor, -fontSize:14}, - -"NativeBase.Icon":{ -fontSize:22, -paddingTop:0, -color:variables.segmentTextColor}}}; - - - - -return segmentTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var segmentTheme={height:45,borderColor:variables.segmentBorderColorMain,flexDirection:"row",justifyContent:"center",backgroundColor:variables.segmentBackgroundColor,"NativeBase.Button":{alignSelf:"center",borderRadius:0,paddingTop:3,paddingBottom:3,height:30,backgroundColor:"transparent",borderWidth:1,borderLeftWidth:0,borderColor:variables.segmentBorderColor,elevation:0,".active":{backgroundColor:variables.segmentActiveBackgroundColor,"NativeBase.Text":{color:variables.segmentActiveTextColor},"NativeBase.Icon":{color:variables.segmentActiveTextColor}},".first":{borderTopLeftRadius:platform==="ios"?5:undefined,borderBottomLeftRadius:platform==="ios"?5:undefined,borderLeftWidth:1},".last":{borderTopRightRadius:platform==="ios"?5:undefined,borderBottomRightRadius:platform==="ios"?5:undefined},"NativeBase.Text":{color:variables.segmentTextColor,fontSize:14},"NativeBase.Icon":{fontSize:22,paddingTop:0,color:variables.segmentTextColor}}};return segmentTheme;}; //# sourceMappingURL=Segment.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Segment.js.map b/dist/src/theme/components/Segment.js.map index 8c62ac5c0..8c231986a 100644 --- a/dist/src/theme/components/Segment.js.map +++ b/dist/src/theme/components/Segment.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Segment.js"],"names":["variables","variable","platform","segmentTheme","height","borderColor","segmentBorderColorMain","flexDirection","justifyContent","backgroundColor","segmentBackgroundColor","alignSelf","borderRadius","paddingTop","paddingBottom","borderWidth","borderLeftWidth","segmentBorderColor","elevation","segmentActiveBackgroundColor","color","segmentActiveTextColor","borderTopLeftRadius","undefined","borderBottomLeftRadius","borderTopRightRadius","borderBottomRightRadius","segmentTextColor","fontSize"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,UAAWF,UAAUE,QAA3B;;AAEA,GAAMC,cAAe;AACnBC,OAAQ,EADW;AAEnBC,YAAaL,UAAUM,sBAFJ;AAGnBC,cAAe,KAHI;AAInBC,eAAgB,QAJG;AAKnBC,gBAAiBT,UAAUU,sBALR;AAMnB,oBAAqB;AACnBC,UAAW,QADQ;AAEnBC,aAAc,CAFK;AAGnBC,WAAY,CAHO;AAInBC,cAAe,CAJI;AAKnBV,OAAQ,EALW;AAMnBK,gBAAiB,aANE;AAOnBM,YAAa,CAPM;AAQnBC,gBAAiB,CARE;AASnBX,YAAaL,UAAUiB,kBATJ;AAUnBC,UAAW,CAVQ;AAWnB,UAAW;AACTT,gBAAiBT,UAAUmB,4BADlB;AAET,kBAAmB;AACjBC,MAAOpB,UAAUqB,sBADA,CAFV;;AAKT,kBAAmB;AACjBD,MAAOpB,UAAUqB,sBADA,CALV,CAXQ;;;AAoBnB,SAAU;AACRC,oBAAqBpB,WAAa,KAAb,CAAqB,CAArB,CAAyBqB,SADtC;AAERC,uBAAwBtB,WAAa,KAAb,CAAqB,CAArB,CAAyBqB,SAFzC;AAGRP,gBAAiB,CAHT,CApBS;;AAyBnB,QAAS;AACPS,qBAAsBvB,WAAa,KAAb,CAAqB,CAArB,CAAyBqB,SADxC;AAEPG,wBAAyBxB,WAAa,KAAb,CAAqB,CAArB,CAAyBqB,SAF3C,CAzBU;;AA6BnB,kBAAmB;AACjBH,MAAOpB,UAAU2B,gBADA;AAEjBC,SAAU,EAFO,CA7BA;;AAiCnB,kBAAmB;AACjBA,SAAU,EADO;AAEjBf,WAAY,CAFK;AAGjBO,MAAOpB,UAAU2B,gBAHA,CAjCA,CANF,CAArB;;;;;AA+CA,MAAOxB,aAAP;AACD,C","file":"Segment.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const platform = variables.platform;\n\n const segmentTheme = {\n height: 45,\n borderColor: variables.segmentBorderColorMain,\n flexDirection: \"row\",\n justifyContent: \"center\",\n backgroundColor: variables.segmentBackgroundColor,\n \"NativeBase.Button\": {\n alignSelf: \"center\",\n borderRadius: 0,\n paddingTop: 3,\n paddingBottom: 3,\n height: 30,\n backgroundColor: \"transparent\",\n borderWidth: 1,\n borderLeftWidth: 0,\n borderColor: variables.segmentBorderColor,\n elevation: 0,\n \".active\": {\n backgroundColor: variables.segmentActiveBackgroundColor,\n \"NativeBase.Text\": {\n color: variables.segmentActiveTextColor\n },\n \"NativeBase.Icon\": {\n color: variables.segmentActiveTextColor\n }\n },\n \".first\": {\n borderTopLeftRadius: platform === \"ios\" ? 5 : undefined,\n borderBottomLeftRadius: platform === \"ios\" ? 5 : undefined,\n borderLeftWidth: 1\n },\n \".last\": {\n borderTopRightRadius: platform === \"ios\" ? 5 : undefined,\n borderBottomRightRadius: platform === \"ios\" ? 5 : undefined\n },\n \"NativeBase.Text\": {\n color: variables.segmentTextColor,\n fontSize: 14\n },\n \"NativeBase.Icon\": {\n fontSize: 22,\n paddingTop: 0,\n color: variables.segmentTextColor\n }\n }\n };\n\n return segmentTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Segment.js"],"names":["variables","variable","platform","segmentTheme","height","borderColor","segmentBorderColorMain","flexDirection","justifyContent","backgroundColor","segmentBackgroundColor","alignSelf","borderRadius","paddingTop","paddingBottom","borderWidth","borderLeftWidth","segmentBorderColor","elevation","segmentActiveBackgroundColor","color","segmentActiveTextColor","borderTopLeftRadius","undefined","borderBottomLeftRadius","borderTopRightRadius","borderBottomRightRadius","segmentTextColor","fontSize"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,UAAWF,UAAUE,QAA3B,CAEA,GAAMC,cAAe,CACnBC,OAAQ,EADW,CAEnBC,YAAaL,UAAUM,sBAFJ,CAGnBC,cAAe,KAHI,CAInBC,eAAgB,QAJG,CAKnBC,gBAAiBT,UAAUU,sBALR,CAMnB,oBAAqB,CACnBC,UAAW,QADQ,CAEnBC,aAAc,CAFK,CAGnBC,WAAY,CAHO,CAInBC,cAAe,CAJI,CAKnBV,OAAQ,EALW,CAMnBK,gBAAiB,aANE,CAOnBM,YAAa,CAPM,CAQnBC,gBAAiB,CARE,CASnBX,YAAaL,UAAUiB,kBATJ,CAUnBC,UAAW,CAVQ,CAWnB,UAAW,CACTT,gBAAiBT,UAAUmB,4BADlB,CAET,kBAAmB,CACjBC,MAAOpB,UAAUqB,sBADA,CAFV,CAKT,kBAAmB,CACjBD,MAAOpB,UAAUqB,sBADA,CALV,CAXQ,CAoBnB,SAAU,CACRC,oBAAqBpB,WAAa,KAAb,CAAqB,CAArB,CAAyBqB,SADtC,CAERC,uBAAwBtB,WAAa,KAAb,CAAqB,CAArB,CAAyBqB,SAFzC,CAGRP,gBAAiB,CAHT,CApBS,CAyBnB,QAAS,CACPS,qBAAsBvB,WAAa,KAAb,CAAqB,CAArB,CAAyBqB,SADxC,CAEPG,wBAAyBxB,WAAa,KAAb,CAAqB,CAArB,CAAyBqB,SAF3C,CAzBU,CA6BnB,kBAAmB,CACjBH,MAAOpB,UAAU2B,gBADA,CAEjBC,SAAU,EAFO,CA7BA,CAiCnB,kBAAmB,CACjBA,SAAU,EADO,CAEjBf,WAAY,CAFK,CAGjBO,MAAOpB,UAAU2B,gBAHA,CAjCA,CANF,CAArB,CA+CA,MAAOxB,aAAP,CACD,C","file":"Segment.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const platform = variables.platform;\n\n const segmentTheme = {\n height: 45,\n borderColor: variables.segmentBorderColorMain,\n flexDirection: \"row\",\n justifyContent: \"center\",\n backgroundColor: variables.segmentBackgroundColor,\n \"NativeBase.Button\": {\n alignSelf: \"center\",\n borderRadius: 0,\n paddingTop: 3,\n paddingBottom: 3,\n height: 30,\n backgroundColor: \"transparent\",\n borderWidth: 1,\n borderLeftWidth: 0,\n borderColor: variables.segmentBorderColor,\n elevation: 0,\n \".active\": {\n backgroundColor: variables.segmentActiveBackgroundColor,\n \"NativeBase.Text\": {\n color: variables.segmentActiveTextColor\n },\n \"NativeBase.Icon\": {\n color: variables.segmentActiveTextColor\n }\n },\n \".first\": {\n borderTopLeftRadius: platform === \"ios\" ? 5 : undefined,\n borderBottomLeftRadius: platform === \"ios\" ? 5 : undefined,\n borderLeftWidth: 1\n },\n \".last\": {\n borderTopRightRadius: platform === \"ios\" ? 5 : undefined,\n borderBottomRightRadius: platform === \"ios\" ? 5 : undefined\n },\n \"NativeBase.Text\": {\n color: variables.segmentTextColor,\n fontSize: 14\n },\n \"NativeBase.Icon\": {\n fontSize: 22,\n paddingTop: 0,\n color: variables.segmentTextColor\n }\n }\n };\n\n return segmentTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Separator.js b/dist/src/theme/components/Separator.js index f0b4361e3..6e84109df 100644 --- a/dist/src/theme/components/Separator.js +++ b/dist/src/theme/components/Separator.js @@ -1,48 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var theme={ -'.group':{ -height:50, -paddingVertical:variables.listItemPadding-8, -paddingTop:variables.listItemPadding+12, -'.bordered':{ -height:50, -paddingVertical:variables.listItemPadding-8, -paddingTop:variables.listItemPadding+12}}, - - -'.bordered':{ -'.noTopBorder':{ -borderTopWidth:0}, - -'.noBottomBorder':{ -borderBottomWidth:0}, - -height:35, -paddingTop:variables.listItemPadding+2, -paddingBottom:variables.listItemPadding, -borderBottomWidth:variables.borderWidth, -borderTopWidth:variables.borderWidth, -borderColor:variables.listBorderColor}, - -'NativeBase.Text':{ -fontSize:variables.tabBarTextSize-2, -color:'#777'}, - -'.noTopBorder':{ -borderTopWidth:0}, - -'.noBottomBorder':{ -borderBottomWidth:0}, - -height:38, -backgroundColor:'#F0EFF5', -flex:1, -justifyContent:'center', -paddingLeft:variables.listItemPadding+5}; - - -return theme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var theme={'.group':{height:50,paddingVertical:variables.listItemPadding-8,paddingTop:variables.listItemPadding+12,'.bordered':{height:50,paddingVertical:variables.listItemPadding-8,paddingTop:variables.listItemPadding+12}},'.bordered':{'.noTopBorder':{borderTopWidth:0},'.noBottomBorder':{borderBottomWidth:0},height:35,paddingTop:variables.listItemPadding+2,paddingBottom:variables.listItemPadding,borderBottomWidth:variables.borderWidth,borderTopWidth:variables.borderWidth,borderColor:variables.listBorderColor},'NativeBase.Text':{fontSize:variables.tabBarTextSize-2,color:'#777'},'.noTopBorder':{borderTopWidth:0},'.noBottomBorder':{borderBottomWidth:0},height:38,backgroundColor:'#F0EFF5',flex:1,justifyContent:'center',paddingLeft:variables.listItemPadding+5};return theme;}; //# sourceMappingURL=Separator.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Separator.js.map b/dist/src/theme/components/Separator.js.map index b379987b8..843017bf1 100644 --- a/dist/src/theme/components/Separator.js.map +++ b/dist/src/theme/components/Separator.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Separator.js"],"names":["variables","variable","theme","height","paddingVertical","listItemPadding","paddingTop","borderTopWidth","borderBottomWidth","paddingBottom","borderWidth","borderColor","listBorderColor","fontSize","tabBarTextSize","color","backgroundColor","flex","justifyContent","paddingLeft"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACxC,GAAMC,OAAQ;AACb,SAAU;AACTC,OAAQ,EADC;AAETC,gBAAiBJ,UAAUK,eAAV,CAA4B,CAFpC;AAGTC,WAAYN,UAAUK,eAAV,CAA4B,EAH/B;AAIT,YAAa;AACZF,OAAQ,EADI;AAEZC,gBAAiBJ,UAAUK,eAAV,CAA4B,CAFjC;AAGZC,WAAYN,UAAUK,eAAV,CAA4B,EAH5B,CAJJ,CADG;;;AAWb,YAAa;AACZ,eAAgB;AACfE,eAAgB,CADD,CADJ;;AAIZ,kBAAmB;AAClBC,kBAAmB,CADD,CAJP;;AAOZL,OAAQ,EAPI;AAQZG,WAAYN,UAAUK,eAAV,CAA4B,CAR5B;AASZI,cAAeT,UAAUK,eATb;AAUZG,kBAAmBR,UAAUU,WAVjB;AAWZH,eAAgBP,UAAUU,WAXd;AAYZC,YAAaX,UAAUY,eAZX,CAXA;;AAyBb,kBAAmB;AAClBC,SAAUb,UAAUc,cAAV,CAA2B,CADnB;AAElBC,MAAO,MAFW,CAzBN;;AA6Bb,eAAgB;AACfR,eAAgB,CADD,CA7BH;;AAgCb,kBAAmB;AAClBC,kBAAmB,CADD,CAhCN;;AAmCbL,OAAQ,EAnCK;AAoCba,gBAAiB,SApCJ;AAqCbC,KAAM,CArCO;AAsCbC,eAAgB,QAtCH;AAuCbC,YAAanB,UAAUK,eAAV,CAA4B,CAvC5B,CAAd;;;AA0CA,MAAOH,MAAP;AACA,C","file":"Separator.js","sourcesContent":["import variable from './../variables/platform';\n\nexport default (variables = variable) => {\n\tconst theme = {\n\t\t'.group': {\n\t\t\theight: 50,\n\t\t\tpaddingVertical: variables.listItemPadding - 8,\n\t\t\tpaddingTop: variables.listItemPadding + 12,\n\t\t\t'.bordered': {\n\t\t\t\theight: 50,\n\t\t\t\tpaddingVertical: variables.listItemPadding - 8,\n\t\t\t\tpaddingTop: variables.listItemPadding + 12,\n\t\t\t},\n\t\t},\n\t\t'.bordered': {\n\t\t\t'.noTopBorder': {\n\t\t\t\tborderTopWidth: 0,\n\t\t\t},\n\t\t\t'.noBottomBorder': {\n\t\t\t\tborderBottomWidth: 0,\n\t\t\t},\n\t\t\theight: 35,\n\t\t\tpaddingTop: variables.listItemPadding + 2,\n\t\t\tpaddingBottom: variables.listItemPadding,\n\t\t\tborderBottomWidth: variables.borderWidth,\n\t\t\tborderTopWidth: variables.borderWidth,\n\t\t\tborderColor: variables.listBorderColor,\n\t\t},\n\t\t'NativeBase.Text': {\n\t\t\tfontSize: variables.tabBarTextSize - 2,\n\t\t\tcolor: '#777',\n\t\t},\n\t\t'.noTopBorder': {\n\t\t\tborderTopWidth: 0,\n\t\t},\n\t\t'.noBottomBorder': {\n\t\t\tborderBottomWidth: 0,\n\t\t},\n\t\theight: 38,\n\t\tbackgroundColor: '#F0EFF5',\n\t\tflex: 1,\n\t\tjustifyContent: 'center',\n\t\tpaddingLeft: variables.listItemPadding + 5,\n\t};\n\n\treturn theme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Separator.js"],"names":["variables","variable","theme","height","paddingVertical","listItemPadding","paddingTop","borderTopWidth","borderBottomWidth","paddingBottom","borderWidth","borderColor","listBorderColor","fontSize","tabBarTextSize","color","backgroundColor","flex","justifyContent","paddingLeft"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACxC,GAAMC,OAAQ,CACb,SAAU,CACTC,OAAQ,EADC,CAETC,gBAAiBJ,UAAUK,eAAV,CAA4B,CAFpC,CAGTC,WAAYN,UAAUK,eAAV,CAA4B,EAH/B,CAIT,YAAa,CACZF,OAAQ,EADI,CAEZC,gBAAiBJ,UAAUK,eAAV,CAA4B,CAFjC,CAGZC,WAAYN,UAAUK,eAAV,CAA4B,EAH5B,CAJJ,CADG,CAWb,YAAa,CACZ,eAAgB,CACfE,eAAgB,CADD,CADJ,CAIZ,kBAAmB,CAClBC,kBAAmB,CADD,CAJP,CAOZL,OAAQ,EAPI,CAQZG,WAAYN,UAAUK,eAAV,CAA4B,CAR5B,CASZI,cAAeT,UAAUK,eATb,CAUZG,kBAAmBR,UAAUU,WAVjB,CAWZH,eAAgBP,UAAUU,WAXd,CAYZC,YAAaX,UAAUY,eAZX,CAXA,CAyBb,kBAAmB,CAClBC,SAAUb,UAAUc,cAAV,CAA2B,CADnB,CAElBC,MAAO,MAFW,CAzBN,CA6Bb,eAAgB,CACfR,eAAgB,CADD,CA7BH,CAgCb,kBAAmB,CAClBC,kBAAmB,CADD,CAhCN,CAmCbL,OAAQ,EAnCK,CAoCba,gBAAiB,SApCJ,CAqCbC,KAAM,CArCO,CAsCbC,eAAgB,QAtCH,CAuCbC,YAAanB,UAAUK,eAAV,CAA4B,CAvC5B,CAAd,CA0CA,MAAOH,MAAP,CACA,C","file":"Separator.js","sourcesContent":["import variable from './../variables/platform';\n\nexport default (variables = variable) => {\n\tconst theme = {\n\t\t'.group': {\n\t\t\theight: 50,\n\t\t\tpaddingVertical: variables.listItemPadding - 8,\n\t\t\tpaddingTop: variables.listItemPadding + 12,\n\t\t\t'.bordered': {\n\t\t\t\theight: 50,\n\t\t\t\tpaddingVertical: variables.listItemPadding - 8,\n\t\t\t\tpaddingTop: variables.listItemPadding + 12,\n\t\t\t},\n\t\t},\n\t\t'.bordered': {\n\t\t\t'.noTopBorder': {\n\t\t\t\tborderTopWidth: 0,\n\t\t\t},\n\t\t\t'.noBottomBorder': {\n\t\t\t\tborderBottomWidth: 0,\n\t\t\t},\n\t\t\theight: 35,\n\t\t\tpaddingTop: variables.listItemPadding + 2,\n\t\t\tpaddingBottom: variables.listItemPadding,\n\t\t\tborderBottomWidth: variables.borderWidth,\n\t\t\tborderTopWidth: variables.borderWidth,\n\t\t\tborderColor: variables.listBorderColor,\n\t\t},\n\t\t'NativeBase.Text': {\n\t\t\tfontSize: variables.tabBarTextSize - 2,\n\t\t\tcolor: '#777',\n\t\t},\n\t\t'.noTopBorder': {\n\t\t\tborderTopWidth: 0,\n\t\t},\n\t\t'.noBottomBorder': {\n\t\t\tborderBottomWidth: 0,\n\t\t},\n\t\theight: 38,\n\t\tbackgroundColor: '#F0EFF5',\n\t\tflex: 1,\n\t\tjustifyContent: 'center',\n\t\tpaddingLeft: variables.listItemPadding + 5,\n\t};\n\n\treturn theme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Spinner.js b/dist/src/theme/components/Spinner.js index 114019927..878c52a63 100644 --- a/dist/src/theme/components/Spinner.js +++ b/dist/src/theme/components/Spinner.js @@ -1,10 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var spinnerTheme={ -height:80}; - - -return spinnerTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var spinnerTheme={height:80};return spinnerTheme;}; //# sourceMappingURL=Spinner.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Spinner.js.map b/dist/src/theme/components/Spinner.js.map index 6162a53ff..387f44741 100644 --- a/dist/src/theme/components/Spinner.js.map +++ b/dist/src/theme/components/Spinner.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Spinner.js"],"names":["variables","variable","spinnerTheme","height"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,cAAe;AACnBC,OAAQ,EADW,CAArB;;;AAIA,MAAOD,aAAP;AACD,C","file":"Spinner.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const spinnerTheme = {\n height: 80\n };\n\n return spinnerTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Spinner.js"],"names":["variables","variable","spinnerTheme","height"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,cAAe,CACnBC,OAAQ,EADW,CAArB,CAIA,MAAOD,aAAP,CACD,C","file":"Spinner.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const spinnerTheme = {\n height: 80\n };\n\n return spinnerTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Subtitle.js b/dist/src/theme/components/Subtitle.js index 56433f872..057a63479 100644 --- a/dist/src/theme/components/Subtitle.js +++ b/dist/src/theme/components/Subtitle.js @@ -1,17 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native"); - -var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var subtitleTheme={ -fontSize:variables.subTitleFontSize, -fontFamily:variables.titleFontfamily, -color:variables.subtitleColor, -textAlign:"center", -paddingLeft:_reactNative.Platform.OS==="ios"?4:0, -marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3}; - - -return subtitleTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var subtitleTheme={fontSize:variables.subTitleFontSize,fontFamily:variables.titleFontfamily,color:variables.subtitleColor,textAlign:"center",paddingLeft:_reactNative.Platform.OS==="ios"?4:0,marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3};return subtitleTheme;}; //# sourceMappingURL=Subtitle.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Subtitle.js.map b/dist/src/theme/components/Subtitle.js.map index f4e30e23d..d129212f9 100644 --- a/dist/src/theme/components/Subtitle.js.map +++ b/dist/src/theme/components/Subtitle.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Subtitle.js"],"names":["variables","variable","subtitleTheme","fontSize","subTitleFontSize","fontFamily","titleFontfamily","color","subtitleColor","textAlign","paddingLeft","Platform","OS","marginLeft","undefined"],"mappings":"yDAAA;;AAEA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,eAAgB;AACpBC,SAAUH,UAAUI,gBADA;AAEpBC,WAAYL,UAAUM,eAFF;AAGpBC,MAAOP,UAAUQ,aAHG;AAIpBC,UAAW,QAJS;AAKpBC,YAAaC,sBAASC,EAAT,GAAgB,KAAhB,CAAwB,CAAxB,CAA4B,CALrB;AAMpBC,WAAYF,sBAASC,EAAT,GAAgB,KAAhB,CAAwBE,SAAxB,CAAoC,CAAC,CAN7B,CAAtB;;;AASA,MAAOZ,cAAP;AACD,C","file":"Subtitle.js","sourcesContent":["import { Platform } from \"react-native\";\n\nimport variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const subtitleTheme = {\n fontSize: variables.subTitleFontSize,\n fontFamily: variables.titleFontfamily,\n color: variables.subtitleColor,\n textAlign: \"center\",\n paddingLeft: Platform.OS === \"ios\" ? 4 : 0,\n marginLeft: Platform.OS === \"ios\" ? undefined : -3\n };\n\n return subtitleTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Subtitle.js"],"names":["variables","variable","subtitleTheme","fontSize","subTitleFontSize","fontFamily","titleFontfamily","color","subtitleColor","textAlign","paddingLeft","Platform","OS","marginLeft","undefined"],"mappings":"yDAAA,yCAEA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,eAAgB,CACpBC,SAAUH,UAAUI,gBADA,CAEpBC,WAAYL,UAAUM,eAFF,CAGpBC,MAAOP,UAAUQ,aAHG,CAIpBC,UAAW,QAJS,CAKpBC,YAAaC,sBAASC,EAAT,GAAgB,KAAhB,CAAwB,CAAxB,CAA4B,CALrB,CAMpBC,WAAYF,sBAASC,EAAT,GAAgB,KAAhB,CAAwBE,SAAxB,CAAoC,CAAC,CAN7B,CAAtB,CASA,MAAOZ,cAAP,CACD,C","file":"Subtitle.js","sourcesContent":["import { Platform } from \"react-native\";\n\nimport variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const subtitleTheme = {\n fontSize: variables.subTitleFontSize,\n fontFamily: variables.titleFontfamily,\n color: variables.subtitleColor,\n textAlign: \"center\",\n paddingLeft: Platform.OS === \"ios\" ? 4 : 0,\n marginLeft: Platform.OS === \"ios\" ? undefined : -3\n };\n\n return subtitleTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/SwipeRow.js b/dist/src/theme/components/SwipeRow.js index da306bd9d..d5fac7f44 100644 --- a/dist/src/theme/components/SwipeRow.js +++ b/dist/src/theme/components/SwipeRow.js @@ -1,47 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var swipeRowTheme={ -"NativeBase.ListItem":{ -".list":{ -backgroundColor:"#FFF"}, - -marginLeft:0}, - -"NativeBase.Left":{ -flex:0, -alignSelf:null, -alignItems:null, -"NativeBase.Button":{ -flex:1, -alignItems:"center", -justifyContent:"center", -alignSelf:"stretch", -borderRadius:0}}, - - -"NativeBase.Right":{ -flex:0, -alignSelf:null, -alignItems:null, -"NativeBase.Button":{ -flex:1, -alignItems:"center", -justifyContent:"center", -alignSelf:"stretch", -borderRadius:0}}, - - -"NativeBase.Button":{ -flex:1, -height:null, -alignItems:"center", -justifyContent:"center", -alignSelf:"stretch", -borderRadius:0}}; - - - -return swipeRowTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var swipeRowTheme={"NativeBase.ListItem":{".list":{backgroundColor:"#FFF"},marginLeft:0},"NativeBase.Left":{flex:0,alignSelf:null,alignItems:null,"NativeBase.Button":{flex:1,alignItems:"center",justifyContent:"center",alignSelf:"stretch",borderRadius:0}},"NativeBase.Right":{flex:0,alignSelf:null,alignItems:null,"NativeBase.Button":{flex:1,alignItems:"center",justifyContent:"center",alignSelf:"stretch",borderRadius:0}},"NativeBase.Button":{flex:1,height:null,alignItems:"center",justifyContent:"center",alignSelf:"stretch",borderRadius:0}};return swipeRowTheme;}; //# sourceMappingURL=SwipeRow.js.map \ No newline at end of file diff --git a/dist/src/theme/components/SwipeRow.js.map b/dist/src/theme/components/SwipeRow.js.map index a72695e59..742611db5 100644 --- a/dist/src/theme/components/SwipeRow.js.map +++ b/dist/src/theme/components/SwipeRow.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/SwipeRow.js"],"names":["variables","variable","swipeRowTheme","backgroundColor","marginLeft","flex","alignSelf","alignItems","justifyContent","borderRadius","height"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACxC,GAAMC,eAAgB;AACrB,sBAAuB;AACtB,QAAS;AACRC,gBAAiB,MADT,CADa;;AAItBC,WAAY,CAJU,CADF;;AAOrB,kBAAmB;AAClBC,KAAM,CADY;AAElBC,UAAW,IAFO;AAGlBC,WAAY,IAHM;AAIlB,oBAAqB;AACpBF,KAAM,CADc;AAEpBE,WAAY,QAFQ;AAGpBC,eAAgB,QAHI;AAIpBF,UAAW,SAJS;AAKpBG,aAAc,CALM,CAJH,CAPE;;;AAmBrB,mBAAoB;AACnBJ,KAAM,CADa;AAEnBC,UAAW,IAFQ;AAGnBC,WAAY,IAHO;AAInB,oBAAqB;AACpBF,KAAM,CADc;AAEpBE,WAAY,QAFQ;AAGpBC,eAAgB,QAHI;AAIpBF,UAAW,SAJS;AAKpBG,aAAc,CALM,CAJF,CAnBC;;;AA+BrB,oBAAqB;AACpBJ,KAAM,CADc;AAEpBK,OAAQ,IAFY;AAGpBH,WAAY,QAHQ;AAIpBC,eAAgB,QAJI;AAKpBF,UAAW,SALS;AAMpBG,aAAc,CANM,CA/BA,CAAtB;;;;AAyCA,MAAOP,cAAP;AACA,C","file":"SwipeRow.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n\tconst swipeRowTheme = {\n\t\t\"NativeBase.ListItem\": {\n\t\t\t\".list\": {\n\t\t\t\tbackgroundColor: \"#FFF\",\n\t\t\t},\n\t\t\tmarginLeft: 0,\n\t\t},\n\t\t\"NativeBase.Left\": {\n\t\t\tflex: 0,\n\t\t\talignSelf: null,\n\t\t\talignItems: null,\n\t\t\t\"NativeBase.Button\": {\n\t\t\t\tflex: 1,\n\t\t\t\talignItems: \"center\",\n\t\t\t\tjustifyContent: \"center\",\n\t\t\t\talignSelf: \"stretch\",\n\t\t\t\tborderRadius: 0,\n\t\t\t},\n\t\t},\n\t\t\"NativeBase.Right\": {\n\t\t\tflex: 0,\n\t\t\talignSelf: null,\n\t\t\talignItems: null,\n\t\t\t\"NativeBase.Button\": {\n\t\t\t\tflex: 1,\n\t\t\t\talignItems: \"center\",\n\t\t\t\tjustifyContent: \"center\",\n\t\t\t\talignSelf: \"stretch\",\n\t\t\t\tborderRadius: 0,\n\t\t\t},\n\t\t},\n\t\t\"NativeBase.Button\": {\n\t\t\tflex: 1,\n\t\t\theight: null,\n\t\t\talignItems: \"center\",\n\t\t\tjustifyContent: \"center\",\n\t\t\talignSelf: \"stretch\",\n\t\t\tborderRadius: 0,\n\t\t},\n\t};\n\n\treturn swipeRowTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/SwipeRow.js"],"names":["variables","variable","swipeRowTheme","backgroundColor","marginLeft","flex","alignSelf","alignItems","justifyContent","borderRadius","height"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACxC,GAAMC,eAAgB,CACrB,sBAAuB,CACtB,QAAS,CACRC,gBAAiB,MADT,CADa,CAItBC,WAAY,CAJU,CADF,CAOrB,kBAAmB,CAClBC,KAAM,CADY,CAElBC,UAAW,IAFO,CAGlBC,WAAY,IAHM,CAIlB,oBAAqB,CACpBF,KAAM,CADc,CAEpBE,WAAY,QAFQ,CAGpBC,eAAgB,QAHI,CAIpBF,UAAW,SAJS,CAKpBG,aAAc,CALM,CAJH,CAPE,CAmBrB,mBAAoB,CACnBJ,KAAM,CADa,CAEnBC,UAAW,IAFQ,CAGnBC,WAAY,IAHO,CAInB,oBAAqB,CACpBF,KAAM,CADc,CAEpBE,WAAY,QAFQ,CAGpBC,eAAgB,QAHI,CAIpBF,UAAW,SAJS,CAKpBG,aAAc,CALM,CAJF,CAnBC,CA+BrB,oBAAqB,CACpBJ,KAAM,CADc,CAEpBK,OAAQ,IAFY,CAGpBH,WAAY,QAHQ,CAIpBC,eAAgB,QAJI,CAKpBF,UAAW,SALS,CAMpBG,aAAc,CANM,CA/BA,CAAtB,CAyCA,MAAOP,cAAP,CACA,C","file":"SwipeRow.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n\tconst swipeRowTheme = {\n\t\t\"NativeBase.ListItem\": {\n\t\t\t\".list\": {\n\t\t\t\tbackgroundColor: \"#FFF\",\n\t\t\t},\n\t\t\tmarginLeft: 0,\n\t\t},\n\t\t\"NativeBase.Left\": {\n\t\t\tflex: 0,\n\t\t\talignSelf: null,\n\t\t\talignItems: null,\n\t\t\t\"NativeBase.Button\": {\n\t\t\t\tflex: 1,\n\t\t\t\talignItems: \"center\",\n\t\t\t\tjustifyContent: \"center\",\n\t\t\t\talignSelf: \"stretch\",\n\t\t\t\tborderRadius: 0,\n\t\t\t},\n\t\t},\n\t\t\"NativeBase.Right\": {\n\t\t\tflex: 0,\n\t\t\talignSelf: null,\n\t\t\talignItems: null,\n\t\t\t\"NativeBase.Button\": {\n\t\t\t\tflex: 1,\n\t\t\t\talignItems: \"center\",\n\t\t\t\tjustifyContent: \"center\",\n\t\t\t\talignSelf: \"stretch\",\n\t\t\t\tborderRadius: 0,\n\t\t\t},\n\t\t},\n\t\t\"NativeBase.Button\": {\n\t\t\tflex: 1,\n\t\t\theight: null,\n\t\t\talignItems: \"center\",\n\t\t\tjustifyContent: \"center\",\n\t\t\talignSelf: \"stretch\",\n\t\t\tborderRadius: 0,\n\t\t},\n\t};\n\n\treturn swipeRowTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Switch.js b/dist/src/theme/components/Switch.js index d723f731b..cbb692c5f 100644 --- a/dist/src/theme/components/Switch.js +++ b/dist/src/theme/components/Switch.js @@ -1,10 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var switchTheme={ -marginVertical:-5}; - - -return switchTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var switchTheme={marginVertical:-5};return switchTheme;}; //# sourceMappingURL=Switch.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Switch.js.map b/dist/src/theme/components/Switch.js.map index 0656244c4..741ebbd56 100644 --- a/dist/src/theme/components/Switch.js.map +++ b/dist/src/theme/components/Switch.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Switch.js"],"names":["variables","variable","switchTheme","marginVertical"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,aAAc;AAClBC,eAAgB,CAAC,CADC,CAApB;;;AAIA,MAAOD,YAAP;AACD,C","file":"Switch.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const switchTheme = {\n marginVertical: -5,\n };\n\n return switchTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Switch.js"],"names":["variables","variable","switchTheme","marginVertical"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,aAAc,CAClBC,eAAgB,CAAC,CADC,CAApB,CAIA,MAAOD,YAAP,CACD,C","file":"Switch.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const switchTheme = {\n marginVertical: -5,\n };\n\n return switchTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Tab.js b/dist/src/theme/components/Tab.js index 317ab6ad8..9f9875cbb 100644 --- a/dist/src/theme/components/Tab.js +++ b/dist/src/theme/components/Tab.js @@ -1,11 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var tabTheme={ -flex:1, -backgroundColor:"#FFF"}; - - -return tabTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var tabTheme={flex:1,backgroundColor:"#FFF"};return tabTheme;}; //# sourceMappingURL=Tab.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Tab.js.map b/dist/src/theme/components/Tab.js.map index 37d49fb65..563f7948f 100644 --- a/dist/src/theme/components/Tab.js.map +++ b/dist/src/theme/components/Tab.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Tab.js"],"names":["variables","variable","tabTheme","flex","backgroundColor"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,UAAW;AACfC,KAAM,CADS;AAEfC,gBAAiB,MAFF,CAAjB;;;AAKA,MAAOF,SAAP;AACD,C","file":"Tab.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const tabTheme = {\n flex: 1,\n backgroundColor: \"#FFF\"\n };\n\n return tabTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Tab.js"],"names":["variables","variable","tabTheme","flex","backgroundColor"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,UAAW,CACfC,KAAM,CADS,CAEfC,gBAAiB,MAFF,CAAjB,CAKA,MAAOF,SAAP,CACD,C","file":"Tab.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const tabTheme = {\n flex: 1,\n backgroundColor: \"#FFF\"\n };\n\n return tabTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/TabBar.js b/dist/src/theme/components/TabBar.js index 6ee1a9839..97e18e953 100644 --- a/dist/src/theme/components/TabBar.js +++ b/dist/src/theme/components/TabBar.js @@ -1,56 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var tabBarTheme={ -".tabIcon":{ -height:undefined}, - -".vertical":{ -height:60}, - -"NativeBase.Button":{ -".transparent":{ -"NativeBase.Text":{ -fontSize:variables.tabFontSize, -color:variables.sTabBarActiveTextColor, -fontWeight:"400"}, - -"NativeBase.IconNB":{ -color:variables.sTabBarActiveTextColor}}, - - -"NativeBase.IconNB":{ -color:variables.sTabBarActiveTextColor}, - -"NativeBase.Text":{ -fontSize:variables.tabFontSize, -color:variables.sTabBarActiveTextColor, -fontWeight:"400"}, - -".isTabActive":{ -"NativeBase.Text":{ -fontWeight:"900"}}, - - -flex:1, -alignSelf:"stretch", -alignItems:"center", -justifyContent:"center", -borderRadius:null, -borderBottomColor:"transparent", -backgroundColor:variables.tabBgColor}, - -height:45, -flexDirection:"row", -justifyContent:"space-around", -borderWidth:1, -borderTopWidth:0, -borderLeftWidth:0, -borderRightWidth:0, -borderBottomColor:"#ccc", -backgroundColor:variables.tabBgColor}; - - -return tabBarTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var tabBarTheme={".tabIcon":{height:undefined},".vertical":{height:60},"NativeBase.Button":{".transparent":{"NativeBase.Text":{fontSize:variables.tabFontSize,color:variables.sTabBarActiveTextColor,fontWeight:"400"},"NativeBase.IconNB":{color:variables.sTabBarActiveTextColor}},"NativeBase.IconNB":{color:variables.sTabBarActiveTextColor},"NativeBase.Text":{fontSize:variables.tabFontSize,color:variables.sTabBarActiveTextColor,fontWeight:"400"},".isTabActive":{"NativeBase.Text":{fontWeight:"900"}},flex:1,alignSelf:"stretch",alignItems:"center",justifyContent:"center",borderRadius:null,borderBottomColor:"transparent",backgroundColor:variables.tabBgColor},height:45,flexDirection:"row",justifyContent:"space-around",borderWidth:1,borderTopWidth:0,borderLeftWidth:0,borderRightWidth:0,borderBottomColor:"#ccc",backgroundColor:variables.tabBgColor};return tabBarTheme;}; //# sourceMappingURL=TabBar.js.map \ No newline at end of file diff --git a/dist/src/theme/components/TabBar.js.map b/dist/src/theme/components/TabBar.js.map index c8361fe1c..2e50867fd 100644 --- a/dist/src/theme/components/TabBar.js.map +++ b/dist/src/theme/components/TabBar.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/TabBar.js"],"names":["variables","variable","tabBarTheme","height","undefined","fontSize","tabFontSize","color","sTabBarActiveTextColor","fontWeight","flex","alignSelf","alignItems","justifyContent","borderRadius","borderBottomColor","backgroundColor","tabBgColor","flexDirection","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,aAAc;AAClB,WAAY;AACVC,OAAQC,SADE,CADM;;AAIlB,YAAa;AACXD,OAAQ,EADG,CAJK;;AAOlB,oBAAqB;AACnB,eAAgB;AACd,kBAAmB;AACjBE,SAAUL,UAAUM,WADH;AAEjBC,MAAOP,UAAUQ,sBAFA;AAGjBC,WAAY,KAHK,CADL;;AAMd,oBAAqB;AACnBF,MAAOP,UAAUQ,sBADE,CANP,CADG;;;AAWnB,oBAAqB;AACnBD,MAAOP,UAAUQ,sBADE,CAXF;;AAcnB,kBAAmB;AACjBH,SAAUL,UAAUM,WADH;AAEjBC,MAAOP,UAAUQ,sBAFA;AAGjBC,WAAY,KAHK,CAdA;;AAmBnB,eAAgB;AACd,kBAAmB;AACjBA,WAAY,KADK,CADL,CAnBG;;;AAwBnBC,KAAM,CAxBa;AAyBnBC,UAAW,SAzBQ;AA0BnBC,WAAY,QA1BO;AA2BnBC,eAAgB,QA3BG;AA4BnBC,aAAc,IA5BK;AA6BnBC,kBAAmB,aA7BA;AA8BnBC,gBAAiBhB,UAAUiB,UA9BR,CAPH;;AAuClBd,OAAQ,EAvCU;AAwClBe,cAAe,KAxCG;AAyClBL,eAAgB,cAzCE;AA0ClBM,YAAa,CA1CK;AA2ClBC,eAAgB,CA3CE;AA4ClBC,gBAAiB,CA5CC;AA6ClBC,iBAAkB,CA7CA;AA8ClBP,kBAAmB,MA9CD;AA+ClBC,gBAAiBhB,UAAUiB,UA/CT,CAApB;;;AAkDA,MAAOf,YAAP;AACD,C","file":"TabBar.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const tabBarTheme = {\n \".tabIcon\": {\n height: undefined\n },\n \".vertical\": {\n height: 60\n },\n \"NativeBase.Button\": {\n \".transparent\": {\n \"NativeBase.Text\": {\n fontSize: variables.tabFontSize,\n color: variables.sTabBarActiveTextColor,\n fontWeight: \"400\"\n },\n \"NativeBase.IconNB\": {\n color: variables.sTabBarActiveTextColor\n }\n },\n \"NativeBase.IconNB\": {\n color: variables.sTabBarActiveTextColor\n },\n \"NativeBase.Text\": {\n fontSize: variables.tabFontSize,\n color: variables.sTabBarActiveTextColor,\n fontWeight: \"400\"\n },\n \".isTabActive\": {\n \"NativeBase.Text\": {\n fontWeight: \"900\"\n }\n },\n flex: 1,\n alignSelf: \"stretch\",\n alignItems: \"center\",\n justifyContent: \"center\",\n borderRadius: null,\n borderBottomColor: \"transparent\",\n backgroundColor: variables.tabBgColor\n },\n height: 45,\n flexDirection: \"row\",\n justifyContent: \"space-around\",\n borderWidth: 1,\n borderTopWidth: 0,\n borderLeftWidth: 0,\n borderRightWidth: 0,\n borderBottomColor: \"#ccc\",\n backgroundColor: variables.tabBgColor\n };\n\n return tabBarTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/TabBar.js"],"names":["variables","variable","tabBarTheme","height","undefined","fontSize","tabFontSize","color","sTabBarActiveTextColor","fontWeight","flex","alignSelf","alignItems","justifyContent","borderRadius","borderBottomColor","backgroundColor","tabBgColor","flexDirection","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,aAAc,CAClB,WAAY,CACVC,OAAQC,SADE,CADM,CAIlB,YAAa,CACXD,OAAQ,EADG,CAJK,CAOlB,oBAAqB,CACnB,eAAgB,CACd,kBAAmB,CACjBE,SAAUL,UAAUM,WADH,CAEjBC,MAAOP,UAAUQ,sBAFA,CAGjBC,WAAY,KAHK,CADL,CAMd,oBAAqB,CACnBF,MAAOP,UAAUQ,sBADE,CANP,CADG,CAWnB,oBAAqB,CACnBD,MAAOP,UAAUQ,sBADE,CAXF,CAcnB,kBAAmB,CACjBH,SAAUL,UAAUM,WADH,CAEjBC,MAAOP,UAAUQ,sBAFA,CAGjBC,WAAY,KAHK,CAdA,CAmBnB,eAAgB,CACd,kBAAmB,CACjBA,WAAY,KADK,CADL,CAnBG,CAwBnBC,KAAM,CAxBa,CAyBnBC,UAAW,SAzBQ,CA0BnBC,WAAY,QA1BO,CA2BnBC,eAAgB,QA3BG,CA4BnBC,aAAc,IA5BK,CA6BnBC,kBAAmB,aA7BA,CA8BnBC,gBAAiBhB,UAAUiB,UA9BR,CAPH,CAuClBd,OAAQ,EAvCU,CAwClBe,cAAe,KAxCG,CAyClBL,eAAgB,cAzCE,CA0ClBM,YAAa,CA1CK,CA2ClBC,eAAgB,CA3CE,CA4ClBC,gBAAiB,CA5CC,CA6ClBC,iBAAkB,CA7CA,CA8ClBP,kBAAmB,MA9CD,CA+ClBC,gBAAiBhB,UAAUiB,UA/CT,CAApB,CAkDA,MAAOf,YAAP,CACD,C","file":"TabBar.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const tabBarTheme = {\n \".tabIcon\": {\n height: undefined\n },\n \".vertical\": {\n height: 60\n },\n \"NativeBase.Button\": {\n \".transparent\": {\n \"NativeBase.Text\": {\n fontSize: variables.tabFontSize,\n color: variables.sTabBarActiveTextColor,\n fontWeight: \"400\"\n },\n \"NativeBase.IconNB\": {\n color: variables.sTabBarActiveTextColor\n }\n },\n \"NativeBase.IconNB\": {\n color: variables.sTabBarActiveTextColor\n },\n \"NativeBase.Text\": {\n fontSize: variables.tabFontSize,\n color: variables.sTabBarActiveTextColor,\n fontWeight: \"400\"\n },\n \".isTabActive\": {\n \"NativeBase.Text\": {\n fontWeight: \"900\"\n }\n },\n flex: 1,\n alignSelf: \"stretch\",\n alignItems: \"center\",\n justifyContent: \"center\",\n borderRadius: null,\n borderBottomColor: \"transparent\",\n backgroundColor: variables.tabBgColor\n },\n height: 45,\n flexDirection: \"row\",\n justifyContent: \"space-around\",\n borderWidth: 1,\n borderTopWidth: 0,\n borderLeftWidth: 0,\n borderRightWidth: 0,\n borderBottomColor: \"#ccc\",\n backgroundColor: variables.tabBgColor\n };\n\n return tabBarTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/TabContainer.js b/dist/src/theme/components/TabContainer.js index 9b7da8ba1..02c28cf6f 100644 --- a/dist/src/theme/components/TabContainer.js +++ b/dist/src/theme/components/TabContainer.js @@ -1,25 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform); -var _reactNative=require("react-native");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var platformStyle=variables.platformStyle; -var platform=variables.platform; - -var tabContainerTheme={ -elevation:3, -height:50, -flexDirection:"row", -shadowColor:platformStyle==="material"?"#000":undefined, -shadowOffset:platformStyle==="material"? -{width:0,height:2}: -undefined, -shadowOpacity:platformStyle==="material"?0.2:undefined, -shadowRadius:platformStyle==="material"?1.2:undefined, -justifyContent:"space-around", -borderBottomWidth:_reactNative.Platform.OS==="ios"?variables.borderWidth:0, -borderColor:variables.topTabBarBorderColor}; - - -return tabContainerTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);var _reactNative=require("react-native");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platformStyle=variables.platformStyle;var platform=variables.platform;var tabContainerTheme={elevation:3,height:50,flexDirection:"row",shadowColor:platformStyle==="material"?"#000":undefined,shadowOffset:platformStyle==="material"?{width:0,height:2}:undefined,shadowOpacity:platformStyle==="material"?0.2:undefined,shadowRadius:platformStyle==="material"?1.2:undefined,justifyContent:"space-around",borderBottomWidth:_reactNative.Platform.OS==="ios"?variables.borderWidth:0,borderColor:variables.topTabBarBorderColor};return tabContainerTheme;}; //# sourceMappingURL=TabContainer.js.map \ No newline at end of file diff --git a/dist/src/theme/components/TabContainer.js.map b/dist/src/theme/components/TabContainer.js.map index d3f17f70b..18a6be923 100644 --- a/dist/src/theme/components/TabContainer.js.map +++ b/dist/src/theme/components/TabContainer.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/TabContainer.js"],"names":["variables","variable","platformStyle","platform","tabContainerTheme","elevation","height","flexDirection","shadowColor","undefined","shadowOffset","width","shadowOpacity","shadowRadius","justifyContent","borderBottomWidth","Platform","OS","borderWidth","borderColor","topTabBarBorderColor"],"mappings":"yDAAA,iD;AACA,yC;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,eAAgBF,UAAUE,aAAhC;AACA,GAAMC,UAAWH,UAAUG,QAA3B;;AAEA,GAAMC,mBAAoB;AACxBC,UAAW,CADa;AAExBC,OAAQ,EAFgB;AAGxBC,cAAe,KAHS;AAIxBC,YAAaN,gBAAkB,UAAlB,CAA+B,MAA/B,CAAwCO,SAJ7B;AAKxBC,aAAcR,gBAAkB,UAAlB;AACV,CAAES,MAAO,CAAT,CAAYL,OAAQ,CAApB,CADU;AAEVG,SAPoB;AAQxBG,cAAeV,gBAAkB,UAAlB,CAA+B,GAA/B,CAAqCO,SAR5B;AASxBI,aAAcX,gBAAkB,UAAlB,CAA+B,GAA/B,CAAqCO,SAT3B;AAUxBK,eAAgB,cAVQ;AAWxBC,kBAAmBC,sBAASC,EAAT,GAAgB,KAAhB,CAAwBjB,UAAUkB,WAAlC,CAAgD,CAX3C;AAYxBC,YAAanB,UAAUoB,oBAZC,CAA1B;;;AAeA,MAAOhB,kBAAP;AACD,C","file":"TabContainer.js","sourcesContent":["import variable from \"./../variables/platform\";\nimport { Platform } from \"react-native\";\n\nexport default (variables = variable) => {\n const platformStyle = variables.platformStyle;\n const platform = variables.platform;\n\n const tabContainerTheme = {\n elevation: 3,\n height: 50,\n flexDirection: \"row\",\n shadowColor: platformStyle === \"material\" ? \"#000\" : undefined,\n shadowOffset: platformStyle === \"material\"\n ? { width: 0, height: 2 }\n : undefined,\n shadowOpacity: platformStyle === \"material\" ? 0.2 : undefined,\n shadowRadius: platformStyle === \"material\" ? 1.2 : undefined,\n justifyContent: \"space-around\",\n borderBottomWidth: Platform.OS === \"ios\" ? variables.borderWidth : 0,\n borderColor: variables.topTabBarBorderColor\n };\n\n return tabContainerTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/TabContainer.js"],"names":["variables","variable","platformStyle","platform","tabContainerTheme","elevation","height","flexDirection","shadowColor","undefined","shadowOffset","width","shadowOpacity","shadowRadius","justifyContent","borderBottomWidth","Platform","OS","borderWidth","borderColor","topTabBarBorderColor"],"mappings":"yDAAA,iD,iDACA,yC,mGAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,eAAgBF,UAAUE,aAAhC,CACA,GAAMC,UAAWH,UAAUG,QAA3B,CAEA,GAAMC,mBAAoB,CACxBC,UAAW,CADa,CAExBC,OAAQ,EAFgB,CAGxBC,cAAe,KAHS,CAIxBC,YAAaN,gBAAkB,UAAlB,CAA+B,MAA/B,CAAwCO,SAJ7B,CAKxBC,aAAcR,gBAAkB,UAAlB,CACV,CAAES,MAAO,CAAT,CAAYL,OAAQ,CAApB,CADU,CAEVG,SAPoB,CAQxBG,cAAeV,gBAAkB,UAAlB,CAA+B,GAA/B,CAAqCO,SAR5B,CASxBI,aAAcX,gBAAkB,UAAlB,CAA+B,GAA/B,CAAqCO,SAT3B,CAUxBK,eAAgB,cAVQ,CAWxBC,kBAAmBC,sBAASC,EAAT,GAAgB,KAAhB,CAAwBjB,UAAUkB,WAAlC,CAAgD,CAX3C,CAYxBC,YAAanB,UAAUoB,oBAZC,CAA1B,CAeA,MAAOhB,kBAAP,CACD,C","file":"TabContainer.js","sourcesContent":["import variable from \"./../variables/platform\";\nimport { Platform } from \"react-native\";\n\nexport default (variables = variable) => {\n const platformStyle = variables.platformStyle;\n const platform = variables.platform;\n\n const tabContainerTheme = {\n elevation: 3,\n height: 50,\n flexDirection: \"row\",\n shadowColor: platformStyle === \"material\" ? \"#000\" : undefined,\n shadowOffset: platformStyle === \"material\"\n ? { width: 0, height: 2 }\n : undefined,\n shadowOpacity: platformStyle === \"material\" ? 0.2 : undefined,\n shadowRadius: platformStyle === \"material\" ? 1.2 : undefined,\n justifyContent: \"space-around\",\n borderBottomWidth: Platform.OS === \"ios\" ? variables.borderWidth : 0,\n borderColor: variables.topTabBarBorderColor\n };\n\n return tabContainerTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/TabHeading.js b/dist/src/theme/components/TabHeading.js index 875590d66..567a32833 100644 --- a/dist/src/theme/components/TabHeading.js +++ b/dist/src/theme/components/TabHeading.js @@ -1,38 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var platform=variables.platform; - -var tabHeadingTheme={ -flexDirection:"row", -backgroundColor:variables.tabDefaultBg, -flex:1, -alignItems:"center", -justifyContent:"center", -".scrollable":{ -paddingHorizontal:20, -flex:platform==="android"?0:1, -minWidth:platform==="android"?undefined:60}, - -"NativeBase.Text":{ -color:variables.topTabBarTextColor, -marginHorizontal:7}, - -"NativeBase.Icon":{ -color:variables.topTabBarTextColor, -fontSize:platform==="ios"?26:undefined}, - -".active":{ -"NativeBase.Text":{ -color:variables.topTabBarActiveTextColor, -fontWeight:"600"}, - -"NativeBase.Icon":{ -color:variables.topTabBarActiveTextColor}}}; - - - - -return tabHeadingTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var tabHeadingTheme={flexDirection:"row",backgroundColor:variables.tabDefaultBg,flex:1,alignItems:"center",justifyContent:"center",".scrollable":{paddingHorizontal:20,flex:platform==="android"?0:1,minWidth:platform==="android"?undefined:60},"NativeBase.Text":{color:variables.topTabBarTextColor,marginHorizontal:7},"NativeBase.Icon":{color:variables.topTabBarTextColor,fontSize:platform==="ios"?26:undefined},".active":{"NativeBase.Text":{color:variables.topTabBarActiveTextColor,fontWeight:"600"},"NativeBase.Icon":{color:variables.topTabBarActiveTextColor}}};return tabHeadingTheme;}; //# sourceMappingURL=TabHeading.js.map \ No newline at end of file diff --git a/dist/src/theme/components/TabHeading.js.map b/dist/src/theme/components/TabHeading.js.map index 10457db34..253ee7402 100644 --- a/dist/src/theme/components/TabHeading.js.map +++ b/dist/src/theme/components/TabHeading.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/TabHeading.js"],"names":["variables","variable","platform","tabHeadingTheme","flexDirection","backgroundColor","tabDefaultBg","flex","alignItems","justifyContent","paddingHorizontal","minWidth","undefined","color","topTabBarTextColor","marginHorizontal","fontSize","topTabBarActiveTextColor","fontWeight"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,UAAWF,UAAUE,QAA3B;;AAEA,GAAMC,iBAAkB;AACtBC,cAAe,KADO;AAEtBC,gBAAiBL,UAAUM,YAFL;AAGtBC,KAAM,CAHgB;AAItBC,WAAY,QAJU;AAKtBC,eAAgB,QALM;AAMtB,cAAe;AACbC,kBAAmB,EADN;AAEbH,KAAML,WAAa,SAAb,CAAyB,CAAzB,CAA6B,CAFtB;AAGbS,SAAUT,WAAa,SAAb,CAAyBU,SAAzB,CAAqC,EAHlC,CANO;;AAWtB,kBAAmB;AACjBC,MAAOb,UAAUc,kBADA;AAEjBC,iBAAkB,CAFD,CAXG;;AAetB,kBAAmB;AACjBF,MAAOb,UAAUc,kBADA;AAEjBE,SAAUd,WAAa,KAAb,CAAqB,EAArB,CAA0BU,SAFnB,CAfG;;AAmBtB,UAAW;AACT,kBAAmB;AACjBC,MAAOb,UAAUiB,wBADA;AAEjBC,WAAY,KAFK,CADV;;AAKT,kBAAmB;AACjBL,MAAOb,UAAUiB,wBADA,CALV,CAnBW,CAAxB;;;;;AA8BA,MAAOd,gBAAP;AACD,C","file":"TabHeading.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const platform = variables.platform;\n\n const tabHeadingTheme = {\n flexDirection: \"row\",\n backgroundColor: variables.tabDefaultBg,\n flex: 1,\n alignItems: \"center\",\n justifyContent: \"center\",\n \".scrollable\": {\n paddingHorizontal: 20,\n flex: platform === \"android\" ? 0 : 1,\n minWidth: platform === \"android\" ? undefined : 60\n },\n \"NativeBase.Text\": {\n color: variables.topTabBarTextColor,\n marginHorizontal: 7\n },\n \"NativeBase.Icon\": {\n color: variables.topTabBarTextColor,\n fontSize: platform === \"ios\" ? 26 : undefined\n },\n \".active\": {\n \"NativeBase.Text\": {\n color: variables.topTabBarActiveTextColor,\n fontWeight: \"600\"\n },\n \"NativeBase.Icon\": {\n color: variables.topTabBarActiveTextColor\n }\n }\n };\n\n return tabHeadingTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/TabHeading.js"],"names":["variables","variable","platform","tabHeadingTheme","flexDirection","backgroundColor","tabDefaultBg","flex","alignItems","justifyContent","paddingHorizontal","minWidth","undefined","color","topTabBarTextColor","marginHorizontal","fontSize","topTabBarActiveTextColor","fontWeight"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,UAAWF,UAAUE,QAA3B,CAEA,GAAMC,iBAAkB,CACtBC,cAAe,KADO,CAEtBC,gBAAiBL,UAAUM,YAFL,CAGtBC,KAAM,CAHgB,CAItBC,WAAY,QAJU,CAKtBC,eAAgB,QALM,CAMtB,cAAe,CACbC,kBAAmB,EADN,CAEbH,KAAML,WAAa,SAAb,CAAyB,CAAzB,CAA6B,CAFtB,CAGbS,SAAUT,WAAa,SAAb,CAAyBU,SAAzB,CAAqC,EAHlC,CANO,CAWtB,kBAAmB,CACjBC,MAAOb,UAAUc,kBADA,CAEjBC,iBAAkB,CAFD,CAXG,CAetB,kBAAmB,CACjBF,MAAOb,UAAUc,kBADA,CAEjBE,SAAUd,WAAa,KAAb,CAAqB,EAArB,CAA0BU,SAFnB,CAfG,CAmBtB,UAAW,CACT,kBAAmB,CACjBC,MAAOb,UAAUiB,wBADA,CAEjBC,WAAY,KAFK,CADV,CAKT,kBAAmB,CACjBL,MAAOb,UAAUiB,wBADA,CALV,CAnBW,CAAxB,CA8BA,MAAOd,gBAAP,CACD,C","file":"TabHeading.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const platform = variables.platform;\n\n const tabHeadingTheme = {\n flexDirection: \"row\",\n backgroundColor: variables.tabDefaultBg,\n flex: 1,\n alignItems: \"center\",\n justifyContent: \"center\",\n \".scrollable\": {\n paddingHorizontal: 20,\n flex: platform === \"android\" ? 0 : 1,\n minWidth: platform === \"android\" ? undefined : 60\n },\n \"NativeBase.Text\": {\n color: variables.topTabBarTextColor,\n marginHorizontal: 7\n },\n \"NativeBase.Icon\": {\n color: variables.topTabBarTextColor,\n fontSize: platform === \"ios\" ? 26 : undefined\n },\n \".active\": {\n \"NativeBase.Text\": {\n color: variables.topTabBarActiveTextColor,\n fontWeight: \"600\"\n },\n \"NativeBase.Icon\": {\n color: variables.topTabBarActiveTextColor\n }\n }\n };\n\n return tabHeadingTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Text.js b/dist/src/theme/components/Text.js index 023c234f9..bd76ebefd 100644 --- a/dist/src/theme/components/Text.js +++ b/dist/src/theme/components/Text.js @@ -1,16 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var textTheme={ -fontSize:variables.DefaultFontSize, -fontFamily:variables.fontFamily, -color:variables.textColor, -".note":{ -color:"#a7a7a7", -fontSize:variables.noteFontSize}}; - - - -return textTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var textTheme={fontSize:variables.DefaultFontSize,fontFamily:variables.fontFamily,color:variables.textColor,".note":{color:"#a7a7a7",fontSize:variables.noteFontSize}};return textTheme;}; //# sourceMappingURL=Text.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Text.js.map b/dist/src/theme/components/Text.js.map index 4364d51bc..c6e38b5ca 100644 --- a/dist/src/theme/components/Text.js.map +++ b/dist/src/theme/components/Text.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Text.js"],"names":["variables","variable","textTheme","fontSize","DefaultFontSize","fontFamily","color","textColor","noteFontSize"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,WAAY;AAChBC,SAAUH,UAAUI,eADJ;AAEhBC,WAAYL,UAAUK,UAFN;AAGhBC,MAAON,UAAUO,SAHD;AAIhB,QAAS;AACPD,MAAO,SADA;AAEPH,SAAUH,UAAUQ,YAFb,CAJO,CAAlB;;;;AAUA,MAAON,UAAP;AACD,C","file":"Text.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const textTheme = {\n fontSize: variables.DefaultFontSize,\n fontFamily: variables.fontFamily,\n color: variables.textColor,\n \".note\": {\n color: \"#a7a7a7\",\n fontSize: variables.noteFontSize\n }\n };\n\n return textTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Text.js"],"names":["variables","variable","textTheme","fontSize","DefaultFontSize","fontFamily","color","textColor","noteFontSize"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,WAAY,CAChBC,SAAUH,UAAUI,eADJ,CAEhBC,WAAYL,UAAUK,UAFN,CAGhBC,MAAON,UAAUO,SAHD,CAIhB,QAAS,CACPD,MAAO,SADA,CAEPH,SAAUH,UAAUQ,YAFb,CAJO,CAAlB,CAUA,MAAON,UAAP,CACD,C","file":"Text.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const textTheme = {\n fontSize: variables.DefaultFontSize,\n fontFamily: variables.fontFamily,\n color: variables.textColor,\n \".note\": {\n color: \"#a7a7a7\",\n fontSize: variables.noteFontSize\n }\n };\n\n return textTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Textarea.js b/dist/src/theme/components/Textarea.js index d1b2aee15..d74f6411b 100644 --- a/dist/src/theme/components/Textarea.js +++ b/dist/src/theme/components/Textarea.js @@ -1,24 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var textAreaTheme={ -".underline":{ -borderBottomWidth:variables.borderWidth, -marginTop:5, -borderColor:variables.inputBorderColor}, - -".bordered":{ -borderWidth:1, -marginTop:5, -borderColor:variables.inputBorderColor}, - -color:variables.textColor, -paddingLeft:10, -paddingRight:5, -fontSize:15, -textAlignVertical:"top"}; - - -return textAreaTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var textAreaTheme={".underline":{borderBottomWidth:variables.borderWidth,marginTop:5,borderColor:variables.inputBorderColor},".bordered":{borderWidth:1,marginTop:5,borderColor:variables.inputBorderColor},color:variables.textColor,paddingLeft:10,paddingRight:5,fontSize:15,textAlignVertical:"top"};return textAreaTheme;}; //# sourceMappingURL=Textarea.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Textarea.js.map b/dist/src/theme/components/Textarea.js.map index 34ce26aad..3dfb48e9f 100644 --- a/dist/src/theme/components/Textarea.js.map +++ b/dist/src/theme/components/Textarea.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Textarea.js"],"names":["variables","variable","textAreaTheme","borderBottomWidth","borderWidth","marginTop","borderColor","inputBorderColor","color","textColor","paddingLeft","paddingRight","fontSize","textAlignVertical"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,eAAgB;AACpB,aAAc;AACZC,kBAAmBH,UAAUI,WADjB;AAEZC,UAAW,CAFC;AAGZC,YAAaN,UAAUO,gBAHX,CADM;;AAMpB,YAAa;AACXH,YAAa,CADF;AAEXC,UAAW,CAFA;AAGXC,YAAaN,UAAUO,gBAHZ,CANO;;AAWpBC,MAAOR,UAAUS,SAXG;AAYpBC,YAAa,EAZO;AAapBC,aAAc,CAbM;AAcpBC,SAAU,EAdU;AAepBC,kBAAmB,KAfC,CAAtB;;;AAkBA,MAAOX,cAAP;AACD,C","file":"Textarea.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const textAreaTheme = {\n \".underline\": {\n borderBottomWidth: variables.borderWidth,\n marginTop: 5,\n borderColor: variables.inputBorderColor\n },\n \".bordered\": {\n borderWidth: 1,\n marginTop: 5,\n borderColor: variables.inputBorderColor\n },\n color: variables.textColor,\n paddingLeft: 10,\n paddingRight: 5,\n fontSize: 15,\n textAlignVertical: \"top\"\n };\n\n return textAreaTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Textarea.js"],"names":["variables","variable","textAreaTheme","borderBottomWidth","borderWidth","marginTop","borderColor","inputBorderColor","color","textColor","paddingLeft","paddingRight","fontSize","textAlignVertical"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,eAAgB,CACpB,aAAc,CACZC,kBAAmBH,UAAUI,WADjB,CAEZC,UAAW,CAFC,CAGZC,YAAaN,UAAUO,gBAHX,CADM,CAMpB,YAAa,CACXH,YAAa,CADF,CAEXC,UAAW,CAFA,CAGXC,YAAaN,UAAUO,gBAHZ,CANO,CAWpBC,MAAOR,UAAUS,SAXG,CAYpBC,YAAa,EAZO,CAapBC,aAAc,CAbM,CAcpBC,SAAU,EAdU,CAepBC,kBAAmB,KAfC,CAAtB,CAkBA,MAAOX,cAAP,CACD,C","file":"Textarea.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const textAreaTheme = {\n \".underline\": {\n borderBottomWidth: variables.borderWidth,\n marginTop: 5,\n borderColor: variables.inputBorderColor\n },\n \".bordered\": {\n borderWidth: 1,\n marginTop: 5,\n borderColor: variables.inputBorderColor\n },\n color: variables.textColor,\n paddingLeft: 10,\n paddingRight: 5,\n fontSize: 15,\n textAlignVertical: \"top\"\n };\n\n return textAreaTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Thumbnail.js b/dist/src/theme/components/Thumbnail.js index ced2be6ce..f7c53ecb6 100644 --- a/dist/src/theme/components/Thumbnail.js +++ b/dist/src/theme/components/Thumbnail.js @@ -1,41 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var thumbnailTheme={ -'.square':{ -borderRadius:0, -'.small':{ -width:36, -height:36, -borderRadius:0}, - -'.large':{ -width:80, -height:80, -borderRadius:0}}, - - -'.small':{ -width:36, -height:36, -borderRadius:18, -'.square':{ -borderRadius:0}}, - - -'.large':{ -width:80, -height:80, -borderRadius:40, -'.square':{ -borderRadius:0}}, - - -width:56, -height:56, -borderRadius:28}; - - -return thumbnailTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require('./../variables/platform');var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var thumbnailTheme={'.square':{borderRadius:0,'.small':{width:36,height:36,borderRadius:0},'.large':{width:80,height:80,borderRadius:0}},'.small':{width:36,height:36,borderRadius:18,'.square':{borderRadius:0}},'.large':{width:80,height:80,borderRadius:40,'.square':{borderRadius:0}},width:56,height:56,borderRadius:28};return thumbnailTheme;}; //# sourceMappingURL=Thumbnail.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Thumbnail.js.map b/dist/src/theme/components/Thumbnail.js.map index bea82597c..b8eb2b273 100644 --- a/dist/src/theme/components/Thumbnail.js.map +++ b/dist/src/theme/components/Thumbnail.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Thumbnail.js"],"names":["variables","variable","thumbnailTheme","borderRadius","width","height"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACxC,GAAMC,gBAAiB;AACtB,UAAW;AACVC,aAAc,CADJ;AAEV,SAAU;AACTC,MAAO,EADE;AAETC,OAAQ,EAFC;AAGTF,aAAc,CAHL,CAFA;;AAOV,SAAU;AACTC,MAAO,EADE;AAETC,OAAQ,EAFC;AAGTF,aAAc,CAHL,CAPA,CADW;;;AActB,SAAU;AACTC,MAAO,EADE;AAETC,OAAQ,EAFC;AAGTF,aAAc,EAHL;AAIT,UAAW;AACVA,aAAc,CADJ,CAJF,CAdY;;;AAsBtB,SAAU;AACTC,MAAO,EADE;AAETC,OAAQ,EAFC;AAGTF,aAAc,EAHL;AAIT,UAAW;AACVA,aAAc,CADJ,CAJF,CAtBY;;;AA8BtBC,MAAO,EA9Be;AA+BtBC,OAAQ,EA/Bc;AAgCtBF,aAAc,EAhCQ,CAAvB;;;AAmCA,MAAOD,eAAP;AACA,C","file":"Thumbnail.js","sourcesContent":["import variable from './../variables/platform';\n\nexport default (variables = variable) => {\n\tconst thumbnailTheme = {\n\t\t'.square': {\n\t\t\tborderRadius: 0,\n\t\t\t'.small': {\n\t\t\t\twidth: 36,\n\t\t\t\theight: 36,\n\t\t\t\tborderRadius: 0,\n\t\t\t},\n\t\t\t'.large': {\n\t\t\t\twidth: 80,\n\t\t\t\theight: 80,\n\t\t\t\tborderRadius: 0,\n\t\t\t},\n\t\t},\n\t\t'.small': {\n\t\t\twidth: 36,\n\t\t\theight: 36,\n\t\t\tborderRadius: 18,\n\t\t\t'.square': {\n\t\t\t\tborderRadius: 0,\n\t\t\t},\n\t\t},\n\t\t'.large': {\n\t\t\twidth: 80,\n\t\t\theight: 80,\n\t\t\tborderRadius: 40,\n\t\t\t'.square': {\n\t\t\t\tborderRadius: 0,\n\t\t\t},\n\t\t},\n\t\twidth: 56,\n\t\theight: 56,\n\t\tborderRadius: 28,\n\t};\n\n\treturn thumbnailTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Thumbnail.js"],"names":["variables","variable","thumbnailTheme","borderRadius","width","height"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACxC,GAAMC,gBAAiB,CACtB,UAAW,CACVC,aAAc,CADJ,CAEV,SAAU,CACTC,MAAO,EADE,CAETC,OAAQ,EAFC,CAGTF,aAAc,CAHL,CAFA,CAOV,SAAU,CACTC,MAAO,EADE,CAETC,OAAQ,EAFC,CAGTF,aAAc,CAHL,CAPA,CADW,CActB,SAAU,CACTC,MAAO,EADE,CAETC,OAAQ,EAFC,CAGTF,aAAc,EAHL,CAIT,UAAW,CACVA,aAAc,CADJ,CAJF,CAdY,CAsBtB,SAAU,CACTC,MAAO,EADE,CAETC,OAAQ,EAFC,CAGTF,aAAc,EAHL,CAIT,UAAW,CACVA,aAAc,CADJ,CAJF,CAtBY,CA8BtBC,MAAO,EA9Be,CA+BtBC,OAAQ,EA/Bc,CAgCtBF,aAAc,EAhCQ,CAAvB,CAmCA,MAAOD,eAAP,CACA,C","file":"Thumbnail.js","sourcesContent":["import variable from './../variables/platform';\n\nexport default (variables = variable) => {\n\tconst thumbnailTheme = {\n\t\t'.square': {\n\t\t\tborderRadius: 0,\n\t\t\t'.small': {\n\t\t\t\twidth: 36,\n\t\t\t\theight: 36,\n\t\t\t\tborderRadius: 0,\n\t\t\t},\n\t\t\t'.large': {\n\t\t\t\twidth: 80,\n\t\t\t\theight: 80,\n\t\t\t\tborderRadius: 0,\n\t\t\t},\n\t\t},\n\t\t'.small': {\n\t\t\twidth: 36,\n\t\t\theight: 36,\n\t\t\tborderRadius: 18,\n\t\t\t'.square': {\n\t\t\t\tborderRadius: 0,\n\t\t\t},\n\t\t},\n\t\t'.large': {\n\t\t\twidth: 80,\n\t\t\theight: 80,\n\t\t\tborderRadius: 40,\n\t\t\t'.square': {\n\t\t\t\tborderRadius: 0,\n\t\t\t},\n\t\t},\n\t\twidth: 56,\n\t\theight: 56,\n\t\tborderRadius: 28,\n\t};\n\n\treturn thumbnailTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Title.js b/dist/src/theme/components/Title.js index fd29d9114..26c153444 100644 --- a/dist/src/theme/components/Title.js +++ b/dist/src/theme/components/Title.js @@ -1,19 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native"); - -var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var titleTheme={ -fontSize:variables.titleFontSize, -fontFamily:variables.titleFontfamily, -color:variables.titleFontColor, -fontWeight:_reactNative.Platform.OS==="ios"?"700":undefined, -textAlign:"center", -paddingLeft:_reactNative.Platform.OS==="ios"?4:0, -marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3, -paddingTop:1}; - - -return titleTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _reactNative=require("react-native");var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var titleTheme={fontSize:variables.titleFontSize,fontFamily:variables.titleFontfamily,color:variables.titleFontColor,fontWeight:_reactNative.Platform.OS==="ios"?"700":undefined,textAlign:"center",paddingLeft:_reactNative.Platform.OS==="ios"?4:0,marginLeft:_reactNative.Platform.OS==="ios"?undefined:-3,paddingTop:1};return titleTheme;}; //# sourceMappingURL=Title.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Title.js.map b/dist/src/theme/components/Title.js.map index ebe686b6a..30f60d0cb 100644 --- a/dist/src/theme/components/Title.js.map +++ b/dist/src/theme/components/Title.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Title.js"],"names":["variables","variable","titleTheme","fontSize","titleFontSize","fontFamily","titleFontfamily","color","titleFontColor","fontWeight","Platform","OS","undefined","textAlign","paddingLeft","marginLeft","paddingTop"],"mappings":"yDAAA;;AAEA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,YAAa;AACjBC,SAAUH,UAAUI,aADH;AAEjBC,WAAYL,UAAUM,eAFL;AAGjBC,MAAOP,UAAUQ,cAHA;AAIjBC,WAAYC,sBAASC,EAAT,GAAgB,KAAhB,CAAwB,KAAxB,CAAgCC,SAJ3B;AAKjBC,UAAW,QALM;AAMjBC,YAAaJ,sBAASC,EAAT,GAAgB,KAAhB,CAAwB,CAAxB,CAA4B,CANxB;AAOjBI,WAAYL,sBAASC,EAAT,GAAgB,KAAhB,CAAwBC,SAAxB,CAAoC,CAAC,CAPhC;AAQjBI,WAAY,CARK,CAAnB;;;AAWA,MAAOd,WAAP;AACD,C","file":"Title.js","sourcesContent":["import { Platform } from \"react-native\";\n\nimport variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const titleTheme = {\n fontSize: variables.titleFontSize,\n fontFamily: variables.titleFontfamily,\n color: variables.titleFontColor,\n fontWeight: Platform.OS === \"ios\" ? \"700\" : undefined,\n textAlign: \"center\",\n paddingLeft: Platform.OS === \"ios\" ? 4 : 0,\n marginLeft: Platform.OS === \"ios\" ? undefined : -3,\n paddingTop: 1\n };\n\n return titleTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Title.js"],"names":["variables","variable","titleTheme","fontSize","titleFontSize","fontFamily","titleFontfamily","color","titleFontColor","fontWeight","Platform","OS","undefined","textAlign","paddingLeft","marginLeft","paddingTop"],"mappings":"yDAAA,yCAEA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,YAAa,CACjBC,SAAUH,UAAUI,aADH,CAEjBC,WAAYL,UAAUM,eAFL,CAGjBC,MAAOP,UAAUQ,cAHA,CAIjBC,WAAYC,sBAASC,EAAT,GAAgB,KAAhB,CAAwB,KAAxB,CAAgCC,SAJ3B,CAKjBC,UAAW,QALM,CAMjBC,YAAaJ,sBAASC,EAAT,GAAgB,KAAhB,CAAwB,CAAxB,CAA4B,CANxB,CAOjBI,WAAYL,sBAASC,EAAT,GAAgB,KAAhB,CAAwBC,SAAxB,CAAoC,CAAC,CAPhC,CAQjBI,WAAY,CARK,CAAnB,CAWA,MAAOd,WAAP,CACD,C","file":"Title.js","sourcesContent":["import { Platform } from \"react-native\";\n\nimport variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const titleTheme = {\n fontSize: variables.titleFontSize,\n fontFamily: variables.titleFontfamily,\n color: variables.titleFontColor,\n fontWeight: Platform.OS === \"ios\" ? \"700\" : undefined,\n textAlign: \"center\",\n paddingLeft: Platform.OS === \"ios\" ? 4 : 0,\n marginLeft: Platform.OS === \"ios\" ? undefined : -3,\n paddingTop: 1\n };\n\n return titleTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/Toast.js b/dist/src/theme/components/Toast.js index 835ab3eb4..1fe5241a2 100644 --- a/dist/src/theme/components/Toast.js +++ b/dist/src/theme/components/Toast.js @@ -1,39 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var platform=variables.platform; - -var toastTheme={ -".danger":{ -backgroundColor:variables.brandDanger}, - -".warning":{ -backgroundColor:variables.brandWarning}, - -".success":{ -backgroundColor:variables.brandSuccess}, - -backgroundColor:"rgba(0,0,0,0.8)", -borderRadius:platform==="ios"?5:0, -flexDirection:"row", -justifyContent:"space-between", -alignItems:"center", -padding:10, -minHeight:50, -"NativeBase.Text":{ -color:"#fff", -flex:1}, - -"NativeBase.Button":{ -backgroundColor:"transparent", -height:30, -elevation:0, -"NativeBase.Text":{ -fontSize:14}}}; - - - - -return toastTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var platform=variables.platform;var toastTheme={".danger":{backgroundColor:variables.brandDanger},".warning":{backgroundColor:variables.brandWarning},".success":{backgroundColor:variables.brandSuccess},backgroundColor:"rgba(0,0,0,0.8)",borderRadius:platform==="ios"?5:0,flexDirection:"row",justifyContent:"space-between",alignItems:"center",padding:10,minHeight:50,"NativeBase.Text":{color:"#fff",flex:1},"NativeBase.Button":{backgroundColor:"transparent",height:30,elevation:0,"NativeBase.Text":{fontSize:14}}};return toastTheme;}; //# sourceMappingURL=Toast.js.map \ No newline at end of file diff --git a/dist/src/theme/components/Toast.js.map b/dist/src/theme/components/Toast.js.map index b42680845..635ff3099 100644 --- a/dist/src/theme/components/Toast.js.map +++ b/dist/src/theme/components/Toast.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/Toast.js"],"names":["variables","variable","platform","toastTheme","backgroundColor","brandDanger","brandWarning","brandSuccess","borderRadius","flexDirection","justifyContent","alignItems","padding","minHeight","color","flex","height","elevation","fontSize"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,UAAWF,UAAUE,QAA3B;;AAEA,GAAMC,YAAa;AACjB,UAAW;AACTC,gBAAiBJ,UAAUK,WADlB,CADM;;AAIjB,WAAY;AACVD,gBAAiBJ,UAAUM,YADjB,CAJK;;AAOjB,WAAY;AACVF,gBAAiBJ,UAAUO,YADjB,CAPK;;AAUjBH,gBAAiB,iBAVA;AAWjBI,aAAcN,WAAa,KAAb,CAAqB,CAArB,CAAyB,CAXtB;AAYjBO,cAAe,KAZE;AAajBC,eAAgB,eAbC;AAcjBC,WAAY,QAdK;AAejBC,QAAS,EAfQ;AAgBjBC,UAAW,EAhBM;AAiBjB,kBAAmB;AACjBC,MAAO,MADU;AAEjBC,KAAM,CAFW,CAjBF;;AAqBjB,oBAAqB;AACnBX,gBAAiB,aADE;AAEnBY,OAAQ,EAFW;AAGnBC,UAAW,CAHQ;AAInB,kBAAmB;AACjBC,SAAU,EADO,CAJA,CArBJ,CAAnB;;;;;AA+BA,MAAOf,WAAP;AACD,C","file":"Toast.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const platform = variables.platform;\n\n const toastTheme = {\n \".danger\": {\n backgroundColor: variables.brandDanger\n },\n \".warning\": {\n backgroundColor: variables.brandWarning\n },\n \".success\": {\n backgroundColor: variables.brandSuccess\n },\n backgroundColor: \"rgba(0,0,0,0.8)\",\n borderRadius: platform === \"ios\" ? 5 : 0,\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n padding: 10,\n minHeight: 50,\n \"NativeBase.Text\": {\n color: \"#fff\",\n flex: 1\n },\n \"NativeBase.Button\": {\n backgroundColor: \"transparent\",\n height: 30,\n elevation: 0,\n \"NativeBase.Text\": {\n fontSize: 14\n }\n }\n };\n\n return toastTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/Toast.js"],"names":["variables","variable","platform","toastTheme","backgroundColor","brandDanger","brandWarning","brandSuccess","borderRadius","flexDirection","justifyContent","alignItems","padding","minHeight","color","flex","height","elevation","fontSize"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,UAAWF,UAAUE,QAA3B,CAEA,GAAMC,YAAa,CACjB,UAAW,CACTC,gBAAiBJ,UAAUK,WADlB,CADM,CAIjB,WAAY,CACVD,gBAAiBJ,UAAUM,YADjB,CAJK,CAOjB,WAAY,CACVF,gBAAiBJ,UAAUO,YADjB,CAPK,CAUjBH,gBAAiB,iBAVA,CAWjBI,aAAcN,WAAa,KAAb,CAAqB,CAArB,CAAyB,CAXtB,CAYjBO,cAAe,KAZE,CAajBC,eAAgB,eAbC,CAcjBC,WAAY,QAdK,CAejBC,QAAS,EAfQ,CAgBjBC,UAAW,EAhBM,CAiBjB,kBAAmB,CACjBC,MAAO,MADU,CAEjBC,KAAM,CAFW,CAjBF,CAqBjB,oBAAqB,CACnBX,gBAAiB,aADE,CAEnBY,OAAQ,EAFW,CAGnBC,UAAW,CAHQ,CAInB,kBAAmB,CACjBC,SAAU,EADO,CAJA,CArBJ,CAAnB,CA+BA,MAAOf,WAAP,CACD,C","file":"Toast.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const platform = variables.platform;\n\n const toastTheme = {\n \".danger\": {\n backgroundColor: variables.brandDanger\n },\n \".warning\": {\n backgroundColor: variables.brandWarning\n },\n \".success\": {\n backgroundColor: variables.brandSuccess\n },\n backgroundColor: \"rgba(0,0,0,0.8)\",\n borderRadius: platform === \"ios\" ? 5 : 0,\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n padding: 10,\n minHeight: 50,\n \"NativeBase.Text\": {\n color: \"#fff\",\n flex: 1\n },\n \"NativeBase.Button\": {\n backgroundColor: \"transparent\",\n height: 30,\n elevation: 0,\n \"NativeBase.Text\": {\n fontSize: 14\n }\n }\n };\n\n return toastTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/View.js b/dist/src/theme/components/View.js index 798836edf..3c1e24693 100644 --- a/dist/src/theme/components/View.js +++ b/dist/src/theme/components/View.js @@ -1,12 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default= - -function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var viewTheme={ -".padder":{ -padding:variables.contentPadding}}; - - - -return viewTheme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _platform=require("./../variables/platform");var _platform2=_interopRequireDefault(_platform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=function(){var variables=arguments.length>0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var viewTheme={".padder":{padding:variables.contentPadding}};return viewTheme;}; //# sourceMappingURL=View.js.map \ No newline at end of file diff --git a/dist/src/theme/components/View.js.map b/dist/src/theme/components/View.js.map index dd4fd0add..aff4140a2 100644 --- a/dist/src/theme/components/View.js.map +++ b/dist/src/theme/components/View.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/View.js"],"names":["variables","variable","viewTheme","padding","contentPadding"],"mappings":"yDAAA,iD;;AAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa;AACvC,GAAMC,WAAY;AAChB,UAAW;AACTC,QAASH,UAAUI,cADV,CADK,CAAlB;;;;AAMA,MAAOF,UAAP;AACD,C","file":"View.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const viewTheme = {\n \".padder\": {\n padding: variables.contentPadding\n }\n };\n\n return viewTheme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/View.js"],"names":["variables","variable","viewTheme","padding","contentPadding"],"mappings":"yDAAA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,WAAY,CAChB,UAAW,CACTC,QAASH,UAAUI,cADV,CADK,CAAlB,CAMA,MAAOF,UAAP,CACD,C","file":"View.js","sourcesContent":["import variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const viewTheme = {\n \".padder\": {\n padding: variables.contentPadding\n }\n };\n\n return viewTheme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/components/index.js b/dist/src/theme/components/index.js index 184343752..cce7ce832 100644 --- a/dist/src/theme/components/index.js +++ b/dist/src/theme/components/index.js @@ -1,243 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i0&&arguments[0]!==undefined?arguments[0]:_platform2.default; -var theme={ -variables:variables, -"NativeBase.Left":_extends({}, -(0,_Left2.default)(variables)), - -"NativeBase.Right":_extends({}, -(0,_Right2.default)(variables)), - -"NativeBase.Body":_extends({}, -(0,_Body2.default)(variables)), - - -"NativeBase.Header":_extends({}, -(0,_Header2.default)(variables)), - - -"NativeBase.Button":_extends({}, -(0,_Button2.default)(variables)), - - -"NativeBase.Title":_extends({}, -(0,_Title2.default)(variables)), - -"NativeBase.Subtitle":_extends({}, -(0,_Subtitle2.default)(variables)), - - -"NativeBase.InputGroup":_extends({}, -(0,_InputGroup2.default)(variables)), - - -"NativeBase.Input":_extends({}, -(0,_Input2.default)(variables)), - - -"NativeBase.Badge":_extends({}, -(0,_Badge2.default)(variables)), - - -"NativeBase.CheckBox":_extends({}, -(0,_CheckBox2.default)(variables)), - - -"NativeBase.Radio":_extends({}, -(0,_Radio2.default)(variables)), - - -"NativeBase.Card":_extends({}, -(0,_Card2.default)()), - - -"NativeBase.CardItem":_extends({}, -(0,_CardItem2.default)(variables)), - - -"NativeBase.Toast":_extends({}, -(0,_Toast2.default)(variables)), - - -"NativeBase.H1":_extends({}, -(0,_H6.default)(variables)), - -"NativeBase.H2":_extends({}, -(0,_H4.default)(variables)), - -"NativeBase.H3":_extends({}, -(0,_H2.default)(variables)), - -"NativeBase.Form":_extends({}, -(0,_Form2.default)(variables)), - - -"NativeBase.Container":_extends({}, -(0,_Container2.default)(variables)), - -"NativeBase.Content":_extends({}, -(0,_Content2.default)(variables)), - - -"NativeBase.Footer":_extends({}, -(0,_Footer2.default)(variables)), - - -"NativeBase.Tabs":{ -flex:1}, - - -"NativeBase.FooterTab":_extends({}, -(0,_FooterTab2.default)(variables)), - - -"NativeBase.ListItem":_extends({}, -(0,_ListItem2.default)(variables)), - - -"NativeBase.ListItem1":_extends({}, -(0,_ListItem2.default)(variables)), - - -"NativeBase.Icon":_extends({}, -(0,_Icon2.default)(variables)), - -"NativeBase.IconNB":_extends({}, -(0,_Icon2.default)(variables)), - -"NativeBase.Text":_extends({}, -(0,_Text2.default)(variables)), - -"NativeBase.Spinner":_extends({}, -(0,_Spinner2.default)(variables)), - - -"NativeBase.Fab":_extends({}, -(0,_Fab2.default)(variables)), - - -"NativeBase.Item":_extends({}, -(0,_Item2.default)(variables)), - - -"NativeBase.Label":_extends({}, -(0,_Label2.default)(variables)), - - -"NativeBase.Textarea":_extends({}, -(0,_Textarea2.default)(variables)), - - -"NativeBase.PickerNB":_extends({}, -(0,_Picker2.default)(variables),{ -"NativeBase.Button":{ -"NativeBase.Text":{}}}), - - - -"NativeBase.Tab":_extends({}, -(0,_Tab2.default)(variables)), - - -"NativeBase.Segment":_extends({}, -(0,_Segment2.default)(variables)), - - -"NativeBase.TabBar":_extends({}, -(0,_TabBar2.default)(variables)), - -"NativeBase.ViewNB":_extends({}, -(0,_View2.default)(variables)), - -"NativeBase.TabHeading":_extends({}, -(0,_TabHeading2.default)(variables)), - -"NativeBase.TabContainer":_extends({}, -(0,_TabContainer2.default)(variables)), - -"NativeBase.Switch":_extends({}, -(0,_Switch2.default)(variables)), - -"NativeBase.Separator":_extends({}, -(0,_Separator2.default)(variables)), - -"NativeBase.SwipeRow":_extends({}, -(0,_SwipeRow2.default)(variables)), - -"NativeBase.Thumbnail":_extends({}, -(0,_Thumbnail2.default)(variables))}; - - - -var cssifyTheme=function cssifyTheme(grandparent,parent,parentKey){ -_lodash2.default.forEach(parent,function(style,styleName){ - - -if( -styleName.indexOf(".")===0&& -parentKey&& -parentKey.indexOf(".")===0) -{ -if(grandparent){ -if(!grandparent[styleName]){ -grandparent[styleName]={}; -}else{ -grandparent[styleName][parentKey]=style; -} -} -} -if(style&&typeof style==="object"&&styleName!=="fontVariant"){ -cssifyTheme(parent,style,styleName); -} -}); -}; - -cssifyTheme(null,theme,null); - -return theme; -}; +Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i0&&arguments[0]!==undefined?arguments[0]:_platform2.default;var theme={variables:variables,"NativeBase.Left":_extends({},(0,_Left2.default)(variables)),"NativeBase.Right":_extends({},(0,_Right2.default)(variables)),"NativeBase.Body":_extends({},(0,_Body2.default)(variables)),"NativeBase.Header":_extends({},(0,_Header2.default)(variables)),"NativeBase.Button":_extends({},(0,_Button2.default)(variables)),"NativeBase.Title":_extends({},(0,_Title2.default)(variables)),"NativeBase.Subtitle":_extends({},(0,_Subtitle2.default)(variables)),"NativeBase.InputGroup":_extends({},(0,_InputGroup2.default)(variables)),"NativeBase.Input":_extends({},(0,_Input2.default)(variables)),"NativeBase.Badge":_extends({},(0,_Badge2.default)(variables)),"NativeBase.CheckBox":_extends({},(0,_CheckBox2.default)(variables)),"NativeBase.Radio":_extends({},(0,_Radio2.default)(variables)),"NativeBase.Card":_extends({},(0,_Card2.default)()),"NativeBase.CardItem":_extends({},(0,_CardItem2.default)(variables)),"NativeBase.Toast":_extends({},(0,_Toast2.default)(variables)),"NativeBase.H1":_extends({},(0,_H6.default)(variables)),"NativeBase.H2":_extends({},(0,_H4.default)(variables)),"NativeBase.H3":_extends({},(0,_H2.default)(variables)),"NativeBase.Form":_extends({},(0,_Form2.default)(variables)),"NativeBase.Container":_extends({},(0,_Container2.default)(variables)),"NativeBase.Content":_extends({},(0,_Content2.default)(variables)),"NativeBase.Footer":_extends({},(0,_Footer2.default)(variables)),"NativeBase.Tabs":{flex:1},"NativeBase.FooterTab":_extends({},(0,_FooterTab2.default)(variables)),"NativeBase.ListItem":_extends({},(0,_ListItem2.default)(variables)),"NativeBase.ListItem1":_extends({},(0,_ListItem2.default)(variables)),"NativeBase.Icon":_extends({},(0,_Icon2.default)(variables)),"NativeBase.IconNB":_extends({},(0,_Icon2.default)(variables)),"NativeBase.Text":_extends({},(0,_Text2.default)(variables)),"NativeBase.Spinner":_extends({},(0,_Spinner2.default)(variables)),"NativeBase.Fab":_extends({},(0,_Fab2.default)(variables)),"NativeBase.Item":_extends({},(0,_Item2.default)(variables)),"NativeBase.Label":_extends({},(0,_Label2.default)(variables)),"NativeBase.Textarea":_extends({},(0,_Textarea2.default)(variables)),"NativeBase.PickerNB":_extends({},(0,_Picker2.default)(variables),{"NativeBase.Button":{"NativeBase.Text":{}}}),"NativeBase.Tab":_extends({},(0,_Tab2.default)(variables)),"NativeBase.Segment":_extends({},(0,_Segment2.default)(variables)),"NativeBase.TabBar":_extends({},(0,_TabBar2.default)(variables)),"NativeBase.ViewNB":_extends({},(0,_View2.default)(variables)),"NativeBase.TabHeading":_extends({},(0,_TabHeading2.default)(variables)),"NativeBase.TabContainer":_extends({},(0,_TabContainer2.default)(variables)),"NativeBase.Switch":_extends({},(0,_Switch2.default)(variables)),"NativeBase.Separator":_extends({},(0,_Separator2.default)(variables)),"NativeBase.SwipeRow":_extends({},(0,_SwipeRow2.default)(variables)),"NativeBase.Thumbnail":_extends({},(0,_Thumbnail2.default)(variables))};var cssifyTheme=function cssifyTheme(grandparent,parent,parentKey){_lodash2.default.forEach(parent,function(style,styleName){if(styleName.indexOf(".")===0&&parentKey&&parentKey.indexOf(".")===0){if(grandparent){if(!grandparent[styleName]){grandparent[styleName]={};}else{grandparent[styleName][parentKey]=style;}}}if(style&&typeof style==="object"&&styleName!=="fontVariant"){cssifyTheme(parent,style,styleName);}});};cssifyTheme(null,theme,null);return theme;}; //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/src/theme/components/index.js.map b/dist/src/theme/components/index.js.map index b938b1e0c..3cec85028 100644 --- a/dist/src/theme/components/index.js.map +++ b/dist/src/theme/components/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/components/index.js"],"names":["variables","variable","theme","flex","cssifyTheme","grandparent","parent","parentKey","_","forEach","style","styleName","indexOf"],"mappings":"yRAAA,8B;AACA,4B;AACA,4B;AACA,8B;AACA,gC;AACA,gC;AACA,sC;AACA,sC;AACA,kC;AACA,gC;AACA,8B;AACA,oC;AACA,wC;AACA,8B;AACA,oC;AACA,4B;AACA,8B;AACA,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lB,IAA2B,CAH7B;AAIE;AACA,GAAIP,WAAJ,CAAiB;AACf,GAAI,CAACA,YAAYM,SAAZ,CAAL,CAA6B;AAC3BN,YAAYM,SAAZ,EAAyB,EAAzB;AACD,CAFD,IAEO;AACLN,YAAYM,SAAZ,EAAuBJ,SAAvB,EAAoCG,KAApC;AACD;AACF;AACF;AACD,GAAIA,OAAS,MAAOA,MAAP,GAAiB,QAA1B,EAAsCC,YAAc,aAAxD,CAAuE;AACrEP,YAAYE,MAAZ,CAAoBI,KAApB,CAA2BC,SAA3B;AACD;AACF,CAnBD;AAoBD,CArBD;;AAuBAP,YAAY,IAAZ,CAAkBF,KAAlB,CAAyB,IAAzB;;AAEA,MAAOA,MAAP;AACD,C","file":"index.js","sourcesContent":["import _ from \"lodash\";\nimport bodyTheme from \"./Body\";\nimport leftTheme from \"./Left\";\nimport rightTheme from \"./Right\";\nimport headerTheme from \"./Header\";\nimport switchTheme from \"./Switch\";\nimport thumbnailTheme from \"./Thumbnail\";\nimport containerTheme from \"./Container\";\nimport contentTheme from \"./Content\";\nimport buttonTheme from \"./Button\";\nimport titleTheme from \"./Title\";\nimport subtitleTheme from \"./Subtitle\";\nimport inputGroupTheme from \"./InputGroup\";\nimport badgeTheme from \"./Badge\";\nimport checkBoxTheme from \"./CheckBox\";\nimport cardTheme from \"./Card\";\nimport radioTheme from \"./Radio\";\nimport h3Theme from \"./H3\";\nimport h2Theme from \"./H2\";\nimport h1Theme from \"./H1\";\nimport footerTheme from \"./Footer\";\nimport footerTabTheme from \"./FooterTab\";\nimport fabTheme from \"./Fab\";\nimport itemTheme from \"./Item\";\nimport labelTheme from \"./Label\";\nimport textAreaTheme from \"./Textarea\";\nimport textTheme from \"./Text\";\nimport toastTheme from \"./Toast\";\nimport tabTheme from \"./Tab\";\nimport tabBarTheme from \"./TabBar\";\nimport tabContainerTheme from \"./TabContainer\";\nimport viewTheme from \"./View\";\nimport tabHeadingTheme from \"./TabHeading\";\nimport iconTheme from \"./Icon\";\nimport inputTheme from \"./Input\";\nimport swipeRowTheme from \"./SwipeRow\";\nimport segmentTheme from \"./Segment\";\nimport spinnerTheme from \"./Spinner\";\nimport cardItemTheme from \"./CardItem\";\nimport listItemTheme from \"./ListItem\";\nimport formTheme from \"./Form\";\nimport separatorTheme from \"./Separator\";\nimport pickerTheme from \"./Picker\"\nimport variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const theme = {\n variables,\n \"NativeBase.Left\": {\n ...leftTheme(variables)\n },\n \"NativeBase.Right\": {\n ...rightTheme(variables)\n },\n \"NativeBase.Body\": {\n ...bodyTheme(variables)\n },\n\n \"NativeBase.Header\": {\n ...headerTheme(variables)\n },\n\n \"NativeBase.Button\": {\n ...buttonTheme(variables)\n },\n\n \"NativeBase.Title\": {\n ...titleTheme(variables)\n },\n \"NativeBase.Subtitle\": {\n ...subtitleTheme(variables)\n },\n\n \"NativeBase.InputGroup\": {\n ...inputGroupTheme(variables)\n },\n\n \"NativeBase.Input\": {\n ...inputTheme(variables)\n },\n\n \"NativeBase.Badge\": {\n ...badgeTheme(variables)\n },\n\n \"NativeBase.CheckBox\": {\n ...checkBoxTheme(variables)\n },\n\n \"NativeBase.Radio\": {\n ...radioTheme(variables)\n },\n\n \"NativeBase.Card\": {\n ...cardTheme()\n },\n\n \"NativeBase.CardItem\": {\n ...cardItemTheme(variables)\n },\n\n \"NativeBase.Toast\": {\n ...toastTheme(variables)\n },\n\n \"NativeBase.H1\": {\n ...h1Theme(variables)\n },\n \"NativeBase.H2\": {\n ...h2Theme(variables)\n },\n \"NativeBase.H3\": {\n ...h3Theme(variables)\n },\n \"NativeBase.Form\": {\n ...formTheme(variables)\n },\n\n \"NativeBase.Container\": {\n ...containerTheme(variables)\n },\n \"NativeBase.Content\": {\n ...contentTheme(variables)\n },\n\n \"NativeBase.Footer\": {\n ...footerTheme(variables)\n },\n\n \"NativeBase.Tabs\": {\n flex: 1\n },\n\n \"NativeBase.FooterTab\": {\n ...footerTabTheme(variables)\n },\n\n \"NativeBase.ListItem\": {\n ...listItemTheme(variables)\n },\n\n \"NativeBase.ListItem1\": {\n ...listItemTheme(variables)\n },\n\n \"NativeBase.Icon\": {\n ...iconTheme(variables)\n },\n \"NativeBase.IconNB\": {\n ...iconTheme(variables)\n },\n \"NativeBase.Text\": {\n ...textTheme(variables)\n },\n \"NativeBase.Spinner\": {\n ...spinnerTheme(variables)\n },\n\n \"NativeBase.Fab\": {\n ...fabTheme(variables)\n },\n\n \"NativeBase.Item\": {\n ...itemTheme(variables)\n },\n\n \"NativeBase.Label\": {\n ...labelTheme(variables)\n },\n\n \"NativeBase.Textarea\": {\n ...textAreaTheme(variables)\n },\n\n \"NativeBase.PickerNB\": {\n ...pickerTheme(variables),\n \"NativeBase.Button\": {\n \"NativeBase.Text\": {}\n }\n },\n\n \"NativeBase.Tab\": {\n ...tabTheme(variables)\n },\n\n \"NativeBase.Segment\": {\n ...segmentTheme(variables)\n },\n\n \"NativeBase.TabBar\": {\n ...tabBarTheme(variables)\n },\n \"NativeBase.ViewNB\": {\n ...viewTheme(variables)\n },\n \"NativeBase.TabHeading\": {\n ...tabHeadingTheme(variables)\n },\n \"NativeBase.TabContainer\": {\n ...tabContainerTheme(variables)\n },\n \"NativeBase.Switch\": {\n ...switchTheme(variables)\n },\n \"NativeBase.Separator\": {\n ...separatorTheme(variables)\n },\n \"NativeBase.SwipeRow\": {\n ...swipeRowTheme(variables)\n },\n \"NativeBase.Thumbnail\": {\n ...thumbnailTheme(variables)\n }\n };\n\n const cssifyTheme = (grandparent, parent, parentKey) => {\n _.forEach(parent, (style, styleName) => {\n // console.log('styleName', styleName);\n // console.log('parentKey', parentKey);\n if (\n styleName.indexOf(\".\") === 0 &&\n parentKey &&\n parentKey.indexOf(\".\") === 0\n ) {\n if (grandparent) {\n if (!grandparent[styleName]) {\n grandparent[styleName] = {};\n } else {\n grandparent[styleName][parentKey] = style;\n }\n }\n }\n if (style && typeof style === \"object\" && styleName !== \"fontVariant\") {\n cssifyTheme(parent, style, styleName);\n }\n });\n };\n\n cssifyTheme(null, theme, null);\n\n return theme;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/components/index.js"],"names":["variables","variable","theme","flex","cssifyTheme","grandparent","parent","parentKey","_","forEach","style","styleName","indexOf"],"mappings":"yRAAA,8B,6CACA,4B,yCACA,4B,yCACA,8B,2CACA,gC,6CACA,gC,6CACA,sC,mDACA,sC,mDACA,kC,+CACA,gC,6CACA,8B,2CACA,oC,iDACA,wC,qDACA,8B,2CACA,oC,iDACA,4B,yCACA,8B,2CACA,uB,mCACA,wB,oCACA,wB,oCACA,gC,6CACA,sC,mDACA,0B,uCACA,4B,yCACA,8B,2CACA,oC,iDACA,4B,yCACA,8B,2CACA,0B,uCACA,gC,6CACA,4C,yDACA,4B,yCACA,wC,qDACA,4B,yCACA,8B,2CACA,oC,iDACA,kC,+CACA,kC,+CACA,oC,iDACA,oC,iDACA,4B,yCACA,sC,mDACA,gC,6CACA,iD,oJAEe,UAA0B,IAAzBA,UAAyB,2DAAbC,kBAAa,CACvC,GAAMC,OAAQ,CACZF,mBADY,CAEZ,8BACK,mBAAUA,SAAV,CADL,CAFY,CAKZ,+BACK,oBAAWA,SAAX,CADL,CALY,CAQZ,8BACK,mBAAUA,SAAV,CADL,CARY,CAYZ,gCACK,qBAAYA,SAAZ,CADL,CAZY,CAgBZ,gCACK,qBAAYA,SAAZ,CADL,CAhBY,CAoBZ,+BACK,oBAAWA,SAAX,CADL,CApBY,CAuBZ,kCACK,uBAAcA,SAAd,CADL,CAvBY,CA2BZ,oCACK,yBAAgBA,SAAhB,CADL,CA3BY,CA+BZ,+BACK,oBAAWA,SAAX,CADL,CA/BY,CAmCZ,+BACK,oBAAWA,SAAX,CADL,CAnCY,CAuCZ,kCACK,uBAAcA,SAAd,CADL,CAvCY,CA2CZ,+BACK,oBAAWA,SAAX,CADL,CA3CY,CA+CZ,8BACK,oBADL,CA/CY,CAmDZ,kCACK,uBAAcA,SAAd,CADL,CAnDY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,CAiKZ,kCACK,uBAAcA,SAAd,CADL,CAjKY,CAoKZ,mCACK,wBAAeA,SAAf,CADL,CApKY,CAAd,CAyKA,GAAMI,aAAc,QAAdA,YAAc,CAACC,WAAD,CAAcC,MAAd,CAAsBC,SAAtB,CAAoC,CACtDC,iBAAEC,OAAF,CAAUH,MAAV,CAAkB,SAACI,KAAD,CAAQC,SAAR,CAAsB,CAGtC,GACEA,UAAUC,OAAV,CAAkB,GAAlB,IAA2B,CAA3B,EACAL,SADA,EAEAA,UAAUK,OAAV,CAAkB,GAAlB,IAA2B,CAH7B,CAIE,CACA,GAAIP,WAAJ,CAAiB,CACf,GAAI,CAACA,YAAYM,SAAZ,CAAL,CAA6B,CAC3BN,YAAYM,SAAZ,EAAyB,EAAzB,CACD,CAFD,IAEO,CACLN,YAAYM,SAAZ,EAAuBJ,SAAvB,EAAoCG,KAApC,CACD,CACF,CACF,CACD,GAAIA,OAAS,MAAOA,MAAP,GAAiB,QAA1B,EAAsCC,YAAc,aAAxD,CAAuE,CACrEP,YAAYE,MAAZ,CAAoBI,KAApB,CAA2BC,SAA3B,EACD,CACF,CAnBD,EAoBD,CArBD,CAuBAP,YAAY,IAAZ,CAAkBF,KAAlB,CAAyB,IAAzB,EAEA,MAAOA,MAAP,CACD,C","file":"index.js","sourcesContent":["import _ from \"lodash\";\nimport bodyTheme from \"./Body\";\nimport leftTheme from \"./Left\";\nimport rightTheme from \"./Right\";\nimport headerTheme from \"./Header\";\nimport switchTheme from \"./Switch\";\nimport thumbnailTheme from \"./Thumbnail\";\nimport containerTheme from \"./Container\";\nimport contentTheme from \"./Content\";\nimport buttonTheme from \"./Button\";\nimport titleTheme from \"./Title\";\nimport subtitleTheme from \"./Subtitle\";\nimport inputGroupTheme from \"./InputGroup\";\nimport badgeTheme from \"./Badge\";\nimport checkBoxTheme from \"./CheckBox\";\nimport cardTheme from \"./Card\";\nimport radioTheme from \"./Radio\";\nimport h3Theme from \"./H3\";\nimport h2Theme from \"./H2\";\nimport h1Theme from \"./H1\";\nimport footerTheme from \"./Footer\";\nimport footerTabTheme from \"./FooterTab\";\nimport fabTheme from \"./Fab\";\nimport itemTheme from \"./Item\";\nimport labelTheme from \"./Label\";\nimport textAreaTheme from \"./Textarea\";\nimport textTheme from \"./Text\";\nimport toastTheme from \"./Toast\";\nimport tabTheme from \"./Tab\";\nimport tabBarTheme from \"./TabBar\";\nimport tabContainerTheme from \"./TabContainer\";\nimport viewTheme from \"./View\";\nimport tabHeadingTheme from \"./TabHeading\";\nimport iconTheme from \"./Icon\";\nimport inputTheme from \"./Input\";\nimport swipeRowTheme from \"./SwipeRow\";\nimport segmentTheme from \"./Segment\";\nimport spinnerTheme from \"./Spinner\";\nimport cardItemTheme from \"./CardItem\";\nimport listItemTheme from \"./ListItem\";\nimport formTheme from \"./Form\";\nimport separatorTheme from \"./Separator\";\nimport pickerTheme from \"./Picker\"\nimport variable from \"./../variables/platform\";\n\nexport default (variables = variable) => {\n const theme = {\n variables,\n \"NativeBase.Left\": {\n ...leftTheme(variables)\n },\n \"NativeBase.Right\": {\n ...rightTheme(variables)\n },\n \"NativeBase.Body\": {\n ...bodyTheme(variables)\n },\n\n \"NativeBase.Header\": {\n ...headerTheme(variables)\n },\n\n \"NativeBase.Button\": {\n ...buttonTheme(variables)\n },\n\n \"NativeBase.Title\": {\n ...titleTheme(variables)\n },\n \"NativeBase.Subtitle\": {\n ...subtitleTheme(variables)\n },\n\n \"NativeBase.InputGroup\": {\n ...inputGroupTheme(variables)\n },\n\n \"NativeBase.Input\": {\n ...inputTheme(variables)\n },\n\n \"NativeBase.Badge\": {\n ...badgeTheme(variables)\n },\n\n \"NativeBase.CheckBox\": {\n ...checkBoxTheme(variables)\n },\n\n \"NativeBase.Radio\": {\n ...radioTheme(variables)\n },\n\n \"NativeBase.Card\": {\n ...cardTheme()\n },\n\n \"NativeBase.CardItem\": {\n ...cardItemTheme(variables)\n },\n\n \"NativeBase.Toast\": {\n ...toastTheme(variables)\n },\n\n \"NativeBase.H1\": {\n ...h1Theme(variables)\n },\n \"NativeBase.H2\": {\n ...h2Theme(variables)\n },\n \"NativeBase.H3\": {\n ...h3Theme(variables)\n },\n \"NativeBase.Form\": {\n ...formTheme(variables)\n },\n\n \"NativeBase.Container\": {\n ...containerTheme(variables)\n },\n \"NativeBase.Content\": {\n ...contentTheme(variables)\n },\n\n \"NativeBase.Footer\": {\n ...footerTheme(variables)\n },\n\n \"NativeBase.Tabs\": {\n flex: 1\n },\n\n \"NativeBase.FooterTab\": {\n ...footerTabTheme(variables)\n },\n\n \"NativeBase.ListItem\": {\n ...listItemTheme(variables)\n },\n\n \"NativeBase.ListItem1\": {\n ...listItemTheme(variables)\n },\n\n \"NativeBase.Icon\": {\n ...iconTheme(variables)\n },\n \"NativeBase.IconNB\": {\n ...iconTheme(variables)\n },\n \"NativeBase.Text\": {\n ...textTheme(variables)\n },\n \"NativeBase.Spinner\": {\n ...spinnerTheme(variables)\n },\n\n \"NativeBase.Fab\": {\n ...fabTheme(variables)\n },\n\n \"NativeBase.Item\": {\n ...itemTheme(variables)\n },\n\n \"NativeBase.Label\": {\n ...labelTheme(variables)\n },\n\n \"NativeBase.Textarea\": {\n ...textAreaTheme(variables)\n },\n\n \"NativeBase.PickerNB\": {\n ...pickerTheme(variables),\n \"NativeBase.Button\": {\n \"NativeBase.Text\": {}\n }\n },\n\n \"NativeBase.Tab\": {\n ...tabTheme(variables)\n },\n\n \"NativeBase.Segment\": {\n ...segmentTheme(variables)\n },\n\n \"NativeBase.TabBar\": {\n ...tabBarTheme(variables)\n },\n \"NativeBase.ViewNB\": {\n ...viewTheme(variables)\n },\n \"NativeBase.TabHeading\": {\n ...tabHeadingTheme(variables)\n },\n \"NativeBase.TabContainer\": {\n ...tabContainerTheme(variables)\n },\n \"NativeBase.Switch\": {\n ...switchTheme(variables)\n },\n \"NativeBase.Separator\": {\n ...separatorTheme(variables)\n },\n \"NativeBase.SwipeRow\": {\n ...swipeRowTheme(variables)\n },\n \"NativeBase.Thumbnail\": {\n ...thumbnailTheme(variables)\n }\n };\n\n const cssifyTheme = (grandparent, parent, parentKey) => {\n _.forEach(parent, (style, styleName) => {\n // console.log('styleName', styleName);\n // console.log('parentKey', parentKey);\n if (\n styleName.indexOf(\".\") === 0 &&\n parentKey &&\n parentKey.indexOf(\".\") === 0\n ) {\n if (grandparent) {\n if (!grandparent[styleName]) {\n grandparent[styleName] = {};\n } else {\n grandparent[styleName][parentKey] = style;\n }\n }\n }\n if (style && typeof style === \"object\" && styleName !== \"fontVariant\") {\n cssifyTheme(parent, style, styleName);\n }\n });\n };\n\n cssifyTheme(null, theme, null);\n\n return theme;\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/variables/commonColor.js b/dist/src/theme/variables/commonColor.js index d9abebd72..5aee23060 100644 --- a/dist/src/theme/variables/commonColor.js +++ b/dist/src/theme/variables/commonColor.js @@ -1,276 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _color=require("color");var _color2=_interopRequireDefault(_color); - -var _reactNative=require("react-native");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};} - -var deviceHeight=_reactNative.Dimensions.get("window").height; -var deviceWidth=_reactNative.Dimensions.get("window").width; -var platform=_reactNative.Platform.OS; -var platformStyle=undefined; -var isIphoneX= -platform==="ios"&&(deviceHeight===812||deviceWidth===812);exports.default= - -{ -platformStyle:platformStyle, -platform:platform, - - -headerStyle:"#edebed", -iconStyle:"#000", -contentStyle:"#f5f4f5", -expandedIconStyle:"#000", -accordionBorderColor:"#d3d3d3", - - -androidRipple:true, -androidRippleColor:"rgba(256, 256, 256, 0.3)", -androidRippleColorDark:"rgba(0, 0, 0, 0.15)", -btnUppercaseAndroidText:true, - - -badgeBg:"#ED1727", -badgeColor:"#fff", -badgePadding:platform==="ios"?3:0, - - -btnFontFamily:platform==="ios"?"System":"Roboto_medium", -btnDisabledBg:"#b5b5b5", -buttonPadding:6, -get btnPrimaryBg(){ -return this.brandPrimary; -}, -get btnPrimaryColor(){ -return this.inverseTextColor; -}, -get btnInfoBg(){ -return this.brandInfo; -}, -get btnInfoColor(){ -return this.inverseTextColor; -}, -get btnSuccessBg(){ -return this.brandSuccess; -}, -get btnSuccessColor(){ -return this.inverseTextColor; -}, -get btnDangerBg(){ -return this.brandDanger; -}, -get btnDangerColor(){ -return this.inverseTextColor; -}, -get btnWarningBg(){ -return this.brandWarning; -}, -get btnWarningColor(){ -return this.inverseTextColor; -}, -get btnTextSize(){ -return platform==="ios"?this.fontSizeBase*1.1:this.fontSizeBase-1; -}, -get btnTextSizeLarge(){ -return this.fontSizeBase*1.5; -}, -get btnTextSizeSmall(){ -return this.fontSizeBase*0.8; -}, -get borderRadiusLarge(){ -return this.fontSizeBase*3.8; -}, -get iconSizeLarge(){ -return this.iconFontSize*1.5; -}, -get iconSizeSmall(){ -return this.iconFontSize*0.6; -}, - - -cardDefaultBg:"#fff", -cardBorderColor:"#ccc", -cardBorderRadius:2, -cardItemPadding:platform==="ios"?10:12, - - -CheckboxRadius:platform==="ios"?13:0, -CheckboxBorderWidth:platform==="ios"?1:2, -CheckboxPaddingLeft:platform==="ios"?4:2, -CheckboxPaddingBottom:platform==="ios"?0:5, -CheckboxIconSize:platform==="ios"?21:16, -CheckboxIconMarginTop:platform==="ios"?undefined:1, -CheckboxFontSize:platform==="ios"?23/0.9:17, -checkboxBgColor:"#039BE5", -checkboxSize:20, -checkboxTickColor:"#fff", - - -brandPrimary:platform==="ios"?"#007aff":"#3F51B5", -brandInfo:"#62B1F6", -brandSuccess:"#5cb85c", -brandDanger:"#d9534f", -brandWarning:"#f0ad4e", -brandDark:"#000", -brandLight:"#f4f4f4", - - -datePickerTextColor:"#000", -datePickerBg:"transparent", - - -DefaultFontSize:16, -fontFamily:platform==="ios"?"System":"Roboto", -fontSizeBase:15, -get fontSizeH1(){ -return this.fontSizeBase*1.8; -}, -get fontSizeH2(){ -return this.fontSizeBase*1.6; -}, -get fontSizeH3(){ -return this.fontSizeBase*1.4; -}, - - -footerHeight:55, -footerDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5", -footerPaddingBottom:0, - - -tabBarTextColor:platform==="ios"?"#737373":"#bfc6ea", -tabBarTextSize:platform==="ios"?14:11, -activeTab:platform==="ios"?"#007aff":"#fff", -sTabBarActiveTextColor:"#007aff", -tabBarActiveTextColor:platform==="ios"?"#2874F0":"#fff", -tabActiveBgColor:platform==="ios"?"#cde1f9":"#3F51B5", - - -toolbarBtnColor:platform==="ios"?"#007aff":"#fff", -toolbarDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5", -toolbarHeight:platform==="ios"?64:56, -toolbarSearchIconSize:platform==="ios"?20:23, -toolbarInputColor:platform==="ios"?"#CECDD2":"#fff", -searchBarHeight:platform==="ios"?30:40, -searchBarInputHeight:platform==="ios"?30:50, -toolbarBtnTextColor:platform==="ios"?"#007aff":"#fff", -iosStatusbar:"dark-content", -toolbarDefaultBorder:platform==="ios"?"#a7a6ab":"#3F51B5", -get statusBarColor(){ -return(0,_color2.default)(this.toolbarDefaultBg). -darken(0.2). -hex(); -}, -get darkenHeader(){ -return(0,_color2.default)(this.tabBgColor). -darken(0.03). -hex(); -}, - - -iconFamily:"Ionicons", -iconFontSize:platform==="ios"?30:28, -iconHeaderSize:platform==="ios"?33:24, - - -inputFontSize:17, -inputBorderColor:"#D9D5DC", -inputSuccessBorderColor:"#2b8339", -inputErrorBorderColor:"#ed2f2f", -inputHeightBase:50, -get inputColor(){ -return this.textColor; -}, -get inputColorPlaceholder(){ -return"#575757"; -}, - - -btnLineHeight:19, -lineHeightH1:32, -lineHeightH2:27, -lineHeightH3:22, -lineHeight:platform==="ios"?20:24, - - -listBg:"transparent", -listBorderColor:"#c9c9c9", -listDividerBg:"#f4f4f4", -listBtnUnderlayColor:"#DDD", -listItemPadding:platform==="ios"?10:12, -listNoteColor:"#808080", -listNoteSize:13, -listItemSelected:platform==="ios"?"#007aff":"#3F51B5", - - -defaultProgressColor:"#E4202D", -inverseProgressColor:"#1A191B", - - -radioBtnSize:platform==="ios"?25:23, -radioSelectedColorAndroid:"#3F51B5", -radioBtnLineHeight:platform==="ios"?29:24, -get radioColor(){ -return this.brandPrimary; -}, - - -segmentBackgroundColor:platform==="ios"?"#F8F8F8":"#3F51B5", -segmentActiveBackgroundColor:platform==="ios"?"#007aff":"#fff", -segmentTextColor:platform==="ios"?"#007aff":"#fff", -segmentActiveTextColor:platform==="ios"?"#fff":"#3F51B5", -segmentBorderColor:platform==="ios"?"#007aff":"#fff", -segmentBorderColorMain:platform==="ios"?"#a7a6ab":"#3F51B5", - - -defaultSpinnerColor:"#45D56E", -inverseSpinnerColor:"#1A191B", - - -tabDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5", -topTabBarTextColor:platform==="ios"?"#6b6b6b":"#b3c7f9", -topTabBarActiveTextColor:platform==="ios"?"#007aff":"#fff", -topTabBarBorderColor:platform==="ios"?"#a7a6ab":"#fff", -topTabBarActiveBorderColor:platform==="ios"?"#007aff":"#fff", - - -tabBgColor:"#F8F8F8", -tabFontSize:15, - - -textColor:"#000", -inverseTextColor:"#fff", -noteFontSize:14, -get defaultTextColor(){ -return this.textColor; -}, - - -titleFontfamily:platform==="ios"?"System":"Roboto_medium", -titleFontSize:platform==="ios"?17:19, -subTitleFontSize:platform==="ios"?11:14, -subtitleColor:platform==="ios"?"#000":"#fff", -titleFontColor:platform==="ios"?"#000":"#fff", - - -borderRadiusBase:platform==="ios"?5:2, -borderWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1), -contentPadding:10, -dropdownLinkColor:"#414142", -inputLineHeight:24, -deviceWidth:deviceWidth, -deviceHeight:deviceHeight, -isIphoneX:isIphoneX, -inputGroupRoundedBorderRadius:30, - - -Inset:{ -portrait:{ -topInset:24, -leftInset:0, -rightInset:0, -bottomInset:34}, - -landscape:{ -topInset:0, -leftInset:44, -rightInset:44, -bottomInset:21}}}; +Object.defineProperty(exports,"__esModule",{value:true});var _color=require("color");var _color2=_interopRequireDefault(_color);var _reactNative=require("react-native");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var deviceHeight=_reactNative.Dimensions.get("window").height;var deviceWidth=_reactNative.Dimensions.get("window").width;var platform=_reactNative.Platform.OS;var platformStyle=undefined;var isIphoneX=platform==="ios"&&(deviceHeight===812||deviceWidth===812);exports.default={platformStyle:platformStyle,platform:platform,headerStyle:"#edebed",iconStyle:"#000",contentStyle:"#f5f4f5",expandedIconStyle:"#000",accordionBorderColor:"#d3d3d3",androidRipple:true,androidRippleColor:"rgba(256, 256, 256, 0.3)",androidRippleColorDark:"rgba(0, 0, 0, 0.15)",btnUppercaseAndroidText:true,badgeBg:"#ED1727",badgeColor:"#fff",badgePadding:platform==="ios"?3:0,btnFontFamily:platform==="ios"?"System":"Roboto_medium",btnDisabledBg:"#b5b5b5",buttonPadding:6,get btnPrimaryBg(){return this.brandPrimary;},get btnPrimaryColor(){return this.inverseTextColor;},get btnInfoBg(){return this.brandInfo;},get btnInfoColor(){return this.inverseTextColor;},get btnSuccessBg(){return this.brandSuccess;},get btnSuccessColor(){return this.inverseTextColor;},get btnDangerBg(){return this.brandDanger;},get btnDangerColor(){return this.inverseTextColor;},get btnWarningBg(){return this.brandWarning;},get btnWarningColor(){return this.inverseTextColor;},get btnTextSize(){return platform==="ios"?this.fontSizeBase*1.1:this.fontSizeBase-1;},get btnTextSizeLarge(){return this.fontSizeBase*1.5;},get btnTextSizeSmall(){return this.fontSizeBase*0.8;},get borderRadiusLarge(){return this.fontSizeBase*3.8;},get iconSizeLarge(){return this.iconFontSize*1.5;},get iconSizeSmall(){return this.iconFontSize*0.6;},cardDefaultBg:"#fff",cardBorderColor:"#ccc",cardBorderRadius:2,cardItemPadding:platform==="ios"?10:12,CheckboxRadius:platform==="ios"?13:0,CheckboxBorderWidth:platform==="ios"?1:2,CheckboxPaddingLeft:platform==="ios"?4:2,CheckboxPaddingBottom:platform==="ios"?0:5,CheckboxIconSize:platform==="ios"?21:16,CheckboxIconMarginTop:platform==="ios"?undefined:1,CheckboxFontSize:platform==="ios"?23/0.9:17,checkboxBgColor:"#039BE5",checkboxSize:20,checkboxTickColor:"#fff",brandPrimary:platform==="ios"?"#007aff":"#3F51B5",brandInfo:"#62B1F6",brandSuccess:"#5cb85c",brandDanger:"#d9534f",brandWarning:"#f0ad4e",brandDark:"#000",brandLight:"#f4f4f4",datePickerTextColor:"#000",datePickerBg:"transparent",DefaultFontSize:16,fontFamily:platform==="ios"?"System":"Roboto",fontSizeBase:15,get fontSizeH1(){return this.fontSizeBase*1.8;},get fontSizeH2(){return this.fontSizeBase*1.6;},get fontSizeH3(){return this.fontSizeBase*1.4;},footerHeight:55,footerDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5",footerPaddingBottom:0,tabBarTextColor:platform==="ios"?"#737373":"#bfc6ea",tabBarTextSize:platform==="ios"?14:11,activeTab:platform==="ios"?"#007aff":"#fff",sTabBarActiveTextColor:"#007aff",tabBarActiveTextColor:platform==="ios"?"#2874F0":"#fff",tabActiveBgColor:platform==="ios"?"#cde1f9":"#3F51B5",toolbarBtnColor:platform==="ios"?"#007aff":"#fff",toolbarDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5",toolbarHeight:platform==="ios"?64:56,toolbarSearchIconSize:platform==="ios"?20:23,toolbarInputColor:platform==="ios"?"#CECDD2":"#fff",searchBarHeight:platform==="ios"?30:40,searchBarInputHeight:platform==="ios"?30:50,toolbarBtnTextColor:platform==="ios"?"#007aff":"#fff",iosStatusbar:"dark-content",toolbarDefaultBorder:platform==="ios"?"#a7a6ab":"#3F51B5",get statusBarColor(){return(0,_color2.default)(this.toolbarDefaultBg).darken(0.2).hex();},get darkenHeader(){return(0,_color2.default)(this.tabBgColor).darken(0.03).hex();},iconFamily:"Ionicons",iconFontSize:platform==="ios"?30:28,iconHeaderSize:platform==="ios"?33:24,inputFontSize:17,inputBorderColor:"#D9D5DC",inputSuccessBorderColor:"#2b8339",inputErrorBorderColor:"#ed2f2f",inputHeightBase:50,get inputColor(){return this.textColor;},get inputColorPlaceholder(){return"#575757";},btnLineHeight:19,lineHeightH1:32,lineHeightH2:27,lineHeightH3:22,lineHeight:platform==="ios"?20:24,listBg:"transparent",listBorderColor:"#c9c9c9",listDividerBg:"#f4f4f4",listBtnUnderlayColor:"#DDD",listItemPadding:platform==="ios"?10:12,listNoteColor:"#808080",listNoteSize:13,listItemSelected:platform==="ios"?"#007aff":"#3F51B5",defaultProgressColor:"#E4202D",inverseProgressColor:"#1A191B",radioBtnSize:platform==="ios"?25:23,radioSelectedColorAndroid:"#3F51B5",radioBtnLineHeight:platform==="ios"?29:24,get radioColor(){return this.brandPrimary;},segmentBackgroundColor:platform==="ios"?"#F8F8F8":"#3F51B5",segmentActiveBackgroundColor:platform==="ios"?"#007aff":"#fff",segmentTextColor:platform==="ios"?"#007aff":"#fff",segmentActiveTextColor:platform==="ios"?"#fff":"#3F51B5",segmentBorderColor:platform==="ios"?"#007aff":"#fff",segmentBorderColorMain:platform==="ios"?"#a7a6ab":"#3F51B5",defaultSpinnerColor:"#45D56E",inverseSpinnerColor:"#1A191B",tabDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5",topTabBarTextColor:platform==="ios"?"#6b6b6b":"#b3c7f9",topTabBarActiveTextColor:platform==="ios"?"#007aff":"#fff",topTabBarBorderColor:platform==="ios"?"#a7a6ab":"#fff",topTabBarActiveBorderColor:platform==="ios"?"#007aff":"#fff",tabBgColor:"#F8F8F8",tabFontSize:15,textColor:"#000",inverseTextColor:"#fff",noteFontSize:14,get defaultTextColor(){return this.textColor;},titleFontfamily:platform==="ios"?"System":"Roboto_medium",titleFontSize:platform==="ios"?17:19,subTitleFontSize:platform==="ios"?11:14,subtitleColor:platform==="ios"?"#000":"#fff",titleFontColor:platform==="ios"?"#000":"#fff",borderRadiusBase:platform==="ios"?5:2,borderWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),contentPadding:10,dropdownLinkColor:"#414142",inputLineHeight:24,deviceWidth:deviceWidth,deviceHeight:deviceHeight,isIphoneX:isIphoneX,inputGroupRoundedBorderRadius:30,Inset:{portrait:{topInset:24,leftInset:0,rightInset:0,bottomInset:34},landscape:{topInset:0,leftInset:44,rightInset:44,bottomInset:21}}}; //# sourceMappingURL=commonColor.js.map \ No newline at end of file diff --git a/dist/src/theme/variables/commonColor.js.map b/dist/src/theme/variables/commonColor.js.map index b0ed80f35..9b190a247 100644 --- a/dist/src/theme/variables/commonColor.js.map +++ b/dist/src/theme/variables/commonColor.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/variables/commonColor.js"],"names":["deviceHeight","Dimensions","get","height","deviceWidth","width","platform","Platform","OS","platformStyle","undefined","isIphoneX","headerStyle","iconStyle","contentStyle","expandedIconStyle","accordionBorderColor","androidRipple","androidRippleColor","androidRippleColorDark","btnUppercaseAndroidText","badgeBg","badgeColor","badgePadding","btnFontFamily","btnDisabledBg","buttonPadding","btnPrimaryBg","brandPrimary","btnPrimaryColor","inverseTextColor","btnInfoBg","brandInfo","btnInfoColor","btnSuccessBg","brandSuccess","btnSuccessColor","btnDangerBg","brandDanger","btnDangerColor","btnWarningBg","brandWarning","btnWarningColor","btnTextSize","fontSizeBase","btnTextSizeLarge","btnTextSizeSmall","borderRadiusLarge","iconSizeLarge","iconFontSize","iconSizeSmall","cardDefaultBg","cardBorderColor","cardBorderRadius","cardItemPadding","CheckboxRadius","CheckboxBorderWidth","CheckboxPaddingLeft","CheckboxPaddingBottom","CheckboxIconSize","CheckboxIconMarginTop","CheckboxFontSize","checkboxBgColor","checkboxSize","checkboxTickColor","brandDark","brandLight","datePickerTextColor","datePickerBg","DefaultFontSize","fontFamily","fontSizeH1","fontSizeH2","fontSizeH3","footerHeight","footerDefaultBg","footerPaddingBottom","tabBarTextColor","tabBarTextSize","activeTab","sTabBarActiveTextColor","tabBarActiveTextColor","tabActiveBgColor","toolbarBtnColor","toolbarDefaultBg","toolbarHeight","toolbarSearchIconSize","toolbarInputColor","searchBarHeight","searchBarInputHeight","toolbarBtnTextColor","iosStatusbar","toolbarDefaultBorder","statusBarColor","darken","hex","darkenHeader","tabBgColor","iconFamily","iconHeaderSize","inputFontSize","inputBorderColor","inputSuccessBorderColor","inputErrorBorderColor","inputHeightBase","inputColor","textColor","inputColorPlaceholder","btnLineHeight","lineHeightH1","lineHeightH2","lineHeightH3","lineHeight","listBg","listBorderColor","listDividerBg","listBtnUnderlayColor","listItemPadding","listNoteColor","listNoteSize","listItemSelected","defaultProgressColor","inverseProgressColor","radioBtnSize","radioSelectedColorAndroid","radioBtnLineHeight","radioColor","segmentBackgroundColor","segmentActiveBackgroundColor","segmentTextColor","segmentActiveTextColor","segmentBorderColor","segmentBorderColorMain","defaultSpinnerColor","inverseSpinnerColor","tabDefaultBg","topTabBarTextColor","topTabBarActiveTextColor","topTabBarBorderColor","topTabBarActiveBorderColor","tabFontSize","noteFontSize","defaultTextColor","titleFontfamily","titleFontSize","subTitleFontSize","subtitleColor","titleFontColor","borderRadiusBase","borderWidth","PixelRatio","getPixelSizeForLayoutSize","contentPadding","dropdownLinkColor","inputLineHeight","inputGroupRoundedBorderRadius","Inset","portrait","topInset","leftInset","rightInset","bottomInset","landscape"],"mappings":"yDAAA,4B;;AAEA,yC;;AAEA,GAAMA,cAAeC,wBAAWC,GAAX,CAAe,QAAf,EAAyBC,MAA9C;AACA,GAAMC,aAAcH,wBAAWC,GAAX,CAAe,QAAf,EAAyBG,KAA7C;AACA,GAAMC,UAAWC,sBAASC,EAA1B;AACA,GAAMC,eAAgBC,SAAtB;AACA,GAAMC;AACJL,WAAa,KAAb,GAAuBN,eAAiB,GAAjB,EAAwBI,cAAgB,GAA/D,CADF,C;;AAGe;AACbK,2BADa;AAEbH,iBAFa;;;AAKbM,YAAa,SALA;AAMbC,UAAW,MANE;AAObC,aAAc,SAPD;AAQbC,kBAAmB,MARN;AASbC,qBAAsB,SATT;;;AAYbC,cAAe,IAZF;AAabC,mBAAoB,0BAbP;AAcbC,uBAAwB,qBAdX;AAebC,wBAAyB,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eAAgB7I,WAAa,KAAb,CAAqB,MAArB,CAA8B,MA9OjC;;;AAiPb8I,iBAAkB9I,WAAa,KAAb,CAAqB,CAArB,CAAyB,CAjP9B;AAkPb+I,YAAa,EAAIC,wBAAWC,yBAAX,CAAqC,CAArC,CAlPJ;AAmPbC,eAAgB,EAnPH;AAoPbC,kBAAmB,SApPN;AAqPbC,gBAAiB,EArPJ;AAsPbtJ,uBAtPa;AAuPbJ,yBAvPa;AAwPbW,mBAxPa;AAyPbgJ,8BAA+B,EAzPlB;;;AA4PbC,MAAO;AACLC,SAAU;AACRC,SAAU,EADF;AAERC,UAAW,CAFH;AAGRC,WAAY,CAHJ;AAIRC,YAAa,EAJL,CADL;;AAOLC,UAAW;AACTJ,SAAU,CADD;AAETC,UAAW,EAFF;AAGTC,WAAY,EAHH;AAITC,YAAa,EAJJ,CAPN,CA5PM,C","file":"commonColor.js","sourcesContent":["import color from \"color\";\n\nimport { Platform, Dimensions, PixelRatio } from \"react-native\";\n\nconst deviceHeight = Dimensions.get(\"window\").height;\nconst deviceWidth = Dimensions.get(\"window\").width;\nconst platform = Platform.OS;\nconst platformStyle = undefined;\nconst isIphoneX =\n platform === \"ios\" && (deviceHeight === 812 || deviceWidth === 812);\n\nexport default {\n platformStyle,\n platform,\n\n //Accordion\n headerStyle: \"#edebed\",\n iconStyle: \"#000\",\n contentStyle: \"#f5f4f5\",\n expandedIconStyle: \"#000\",\n accordionBorderColor: \"#d3d3d3\",\n\n //Android\n androidRipple: true,\n androidRippleColor: \"rgba(256, 256, 256, 0.3)\",\n androidRippleColorDark: \"rgba(0, 0, 0, 0.15)\",\n btnUppercaseAndroidText: true,\n\n // Badge\n badgeBg: \"#ED1727\",\n badgeColor: \"#fff\",\n badgePadding: platform === \"ios\" ? 3 : 0,\n\n // Button\n btnFontFamily: platform === \"ios\" ? \"System\" : \"Roboto_medium\",\n btnDisabledBg: \"#b5b5b5\",\n buttonPadding: 6,\n get btnPrimaryBg() {\n return this.brandPrimary;\n },\n get btnPrimaryColor() {\n return this.inverseTextColor;\n },\n get btnInfoBg() {\n return this.brandInfo;\n },\n get btnInfoColor() {\n return this.inverseTextColor;\n },\n get btnSuccessBg() {\n return this.brandSuccess;\n },\n get btnSuccessColor() {\n return this.inverseTextColor;\n },\n get btnDangerBg() {\n return this.brandDanger;\n },\n get btnDangerColor() {\n return this.inverseTextColor;\n },\n get btnWarningBg() {\n return this.brandWarning;\n },\n get btnWarningColor() {\n return this.inverseTextColor;\n },\n get btnTextSize() {\n return platform === \"ios\" ? this.fontSizeBase * 1.1 : this.fontSizeBase - 1;\n },\n get btnTextSizeLarge() {\n return this.fontSizeBase * 1.5;\n },\n get btnTextSizeSmall() {\n return this.fontSizeBase * 0.8;\n },\n get borderRadiusLarge() {\n return this.fontSizeBase * 3.8;\n },\n get iconSizeLarge() {\n return this.iconFontSize * 1.5;\n },\n get iconSizeSmall() {\n return this.iconFontSize * 0.6;\n },\n\n // Card\n cardDefaultBg: \"#fff\",\n cardBorderColor: \"#ccc\",\n cardBorderRadius: 2,\n cardItemPadding: platform === \"ios\" ? 10 : 12,\n\n // CheckBox\n CheckboxRadius: platform === \"ios\" ? 13 : 0,\n CheckboxBorderWidth: platform === \"ios\" ? 1 : 2,\n CheckboxPaddingLeft: platform === \"ios\" ? 4 : 2,\n CheckboxPaddingBottom: platform === \"ios\" ? 0 : 5,\n CheckboxIconSize: platform === \"ios\" ? 21 : 16,\n CheckboxIconMarginTop: platform === \"ios\" ? undefined : 1,\n CheckboxFontSize: platform === \"ios\" ? 23 / 0.9 : 17,\n checkboxBgColor: \"#039BE5\",\n checkboxSize: 20,\n checkboxTickColor: \"#fff\",\n\n // Color\n brandPrimary: platform === \"ios\" ? \"#007aff\" : \"#3F51B5\",\n brandInfo: \"#62B1F6\",\n brandSuccess: \"#5cb85c\",\n brandDanger: \"#d9534f\",\n brandWarning: \"#f0ad4e\",\n brandDark: \"#000\",\n brandLight: \"#f4f4f4\",\n\n //Date Picker\n datePickerTextColor: \"#000\",\n datePickerBg: \"transparent\",\n\n // Font\n DefaultFontSize: 16,\n fontFamily: platform === \"ios\" ? \"System\" : \"Roboto\",\n fontSizeBase: 15,\n get fontSizeH1() {\n return this.fontSizeBase * 1.8;\n },\n get fontSizeH2() {\n return this.fontSizeBase * 1.6;\n },\n get fontSizeH3() {\n return this.fontSizeBase * 1.4;\n },\n\n // Footer\n footerHeight: 55,\n footerDefaultBg: platform === \"ios\" ? \"#F8F8F8\" : \"#3F51B5\",\n footerPaddingBottom: 0,\n\n // FooterTab\n tabBarTextColor: platform === \"ios\" ? \"#737373\" : \"#bfc6ea\",\n tabBarTextSize: platform === \"ios\" ? 14 : 11,\n activeTab: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n sTabBarActiveTextColor: \"#007aff\",\n tabBarActiveTextColor: platform === \"ios\" ? \"#2874F0\" : \"#fff\",\n tabActiveBgColor: platform === \"ios\" ? \"#cde1f9\" : \"#3F51B5\",\n\n // Header\n toolbarBtnColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n toolbarDefaultBg: platform === \"ios\" ? \"#F8F8F8\" : \"#3F51B5\",\n toolbarHeight: platform === \"ios\" ? 64 : 56,\n toolbarSearchIconSize: platform === \"ios\" ? 20 : 23,\n toolbarInputColor: platform === \"ios\" ? \"#CECDD2\" : \"#fff\",\n searchBarHeight: platform === \"ios\" ? 30 : 40,\n searchBarInputHeight: platform === \"ios\" ? 30 : 50,\n toolbarBtnTextColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n iosStatusbar: \"dark-content\",\n toolbarDefaultBorder: platform === \"ios\" ? \"#a7a6ab\" : \"#3F51B5\",\n get statusBarColor() {\n return color(this.toolbarDefaultBg)\n .darken(0.2)\n .hex();\n },\n get darkenHeader() {\n return color(this.tabBgColor)\n .darken(0.03)\n .hex();\n },\n\n // Icon\n iconFamily: \"Ionicons\",\n iconFontSize: platform === \"ios\" ? 30 : 28,\n iconHeaderSize: platform === \"ios\" ? 33 : 24,\n\n // InputGroup\n inputFontSize: 17,\n inputBorderColor: \"#D9D5DC\",\n inputSuccessBorderColor: \"#2b8339\",\n inputErrorBorderColor: \"#ed2f2f\",\n inputHeightBase: 50,\n get inputColor() {\n return this.textColor;\n },\n get inputColorPlaceholder() {\n return \"#575757\";\n },\n\n // Line Height\n btnLineHeight: 19,\n lineHeightH1: 32,\n lineHeightH2: 27,\n lineHeightH3: 22,\n lineHeight: platform === \"ios\" ? 20 : 24,\n\n // List\n listBg: \"transparent\",\n listBorderColor: \"#c9c9c9\",\n listDividerBg: \"#f4f4f4\",\n listBtnUnderlayColor: \"#DDD\",\n listItemPadding: platform === \"ios\" ? 10 : 12,\n listNoteColor: \"#808080\",\n listNoteSize: 13,\n listItemSelected: platform === \"ios\" ? \"#007aff\" : \"#3F51B5\",\n\n // Progress Bar\n defaultProgressColor: \"#E4202D\",\n inverseProgressColor: \"#1A191B\",\n\n // Radio Button\n radioBtnSize: platform === \"ios\" ? 25 : 23,\n radioSelectedColorAndroid: \"#3F51B5\",\n radioBtnLineHeight: platform === \"ios\" ? 29 : 24,\n get radioColor() {\n return this.brandPrimary;\n },\n\n // Segment\n segmentBackgroundColor: platform === \"ios\" ? \"#F8F8F8\" : \"#3F51B5\",\n segmentActiveBackgroundColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n segmentTextColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n segmentActiveTextColor: platform === \"ios\" ? \"#fff\" : \"#3F51B5\",\n segmentBorderColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n segmentBorderColorMain: platform === \"ios\" ? \"#a7a6ab\" : \"#3F51B5\",\n\n // Spinner\n defaultSpinnerColor: \"#45D56E\",\n inverseSpinnerColor: \"#1A191B\",\n\n // Tab\n tabDefaultBg: platform === \"ios\" ? \"#F8F8F8\" : \"#3F51B5\",\n topTabBarTextColor: platform === \"ios\" ? \"#6b6b6b\" : \"#b3c7f9\",\n topTabBarActiveTextColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n topTabBarBorderColor: platform === \"ios\" ? \"#a7a6ab\" : \"#fff\",\n topTabBarActiveBorderColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n\n // Tabs\n tabBgColor: \"#F8F8F8\",\n tabFontSize: 15,\n\n // Text\n textColor: \"#000\",\n inverseTextColor: \"#fff\",\n noteFontSize: 14,\n get defaultTextColor() {\n return this.textColor;\n },\n\n // Title\n titleFontfamily: platform === \"ios\" ? \"System\" : \"Roboto_medium\",\n titleFontSize: platform === \"ios\" ? 17 : 19,\n subTitleFontSize: platform === \"ios\" ? 11 : 14,\n subtitleColor: platform === \"ios\" ? \"#000\" : \"#fff\",\n titleFontColor: platform === \"ios\" ? \"#000\" : \"#fff\",\n\n // Other\n borderRadiusBase: platform === \"ios\" ? 5 : 2,\n borderWidth: 1 / PixelRatio.getPixelSizeForLayoutSize(1),\n contentPadding: 10,\n dropdownLinkColor: \"#414142\",\n inputLineHeight: 24,\n deviceWidth,\n deviceHeight,\n isIphoneX,\n inputGroupRoundedBorderRadius: 30,\n\n //iPhoneX SafeArea\n Inset: {\n portrait: {\n topInset: 24,\n leftInset: 0,\n rightInset: 0,\n bottomInset: 34\n },\n landscape: {\n topInset: 0,\n leftInset: 44,\n rightInset: 44,\n bottomInset: 21\n }\n }\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/variables/commonColor.js"],"names":["deviceHeight","Dimensions","get","height","deviceWidth","width","platform","Platform","OS","platformStyle","undefined","isIphoneX","headerStyle","iconStyle","contentStyle","expandedIconStyle","accordionBorderColor","androidRipple","androidRippleColor","androidRippleColorDark","btnUppercaseAndroidText","badgeBg","badgeColor","badgePadding","btnFontFamily","btnDisabledBg","buttonPadding","btnPrimaryBg","brandPrimary","btnPrimaryColor","inverseTextColor","btnInfoBg","brandInfo","btnInfoColor","btnSuccessBg","brandSuccess","btnSuccessColor","btnDangerBg","brandDanger","btnDangerColor","btnWarningBg","brandWarning","btnWarningColor","btnTextSize","fontSizeBase","btnTextSizeLarge","btnTextSizeSmall","borderRadiusLarge","iconSizeLarge","iconFontSize","iconSizeSmall","cardDefaultBg","cardBorderColor","cardBorderRadius","cardItemPadding","CheckboxRadius","CheckboxBorderWidth","CheckboxPaddingLeft","CheckboxPaddingBottom","CheckboxIconSize","CheckboxIconMarginTop","CheckboxFontSize","checkboxBgColor","checkboxSize","checkboxTickColor","brandDark","brandLight","datePickerTextColor","datePickerBg","DefaultFontSize","fontFamily","fontSizeH1","fontSizeH2","fontSizeH3","footerHeight","footerDefaultBg","footerPaddingBottom","tabBarTextColor","tabBarTextSize","activeTab","sTabBarActiveTextColor","tabBarActiveTextColor","tabActiveBgColor","toolbarBtnColor","toolbarDefaultBg","toolbarHeight","toolbarSearchIconSize","toolbarInputColor","searchBarHeight","searchBarInputHeight","toolbarBtnTextColor","iosStatusbar","toolbarDefaultBorder","statusBarColor","darken","hex","darkenHeader","tabBgColor","iconFamily","iconHeaderSize","inputFontSize","inputBorderColor","inputSuccessBorderColor","inputErrorBorderColor","inputHeightBase","inputColor","textColor","inputColorPlaceholder","btnLineHeight","lineHeightH1","lineHeightH2","lineHeightH3","lineHeight","listBg","listBorderColor","listDividerBg","listBtnUnderlayColor","listItemPadding","listNoteColor","listNoteSize","listItemSelected","defaultProgressColor","inverseProgressColor","radioBtnSize","radioSelectedColorAndroid","radioBtnLineHeight","radioColor","segmentBackgroundColor","segmentActiveBackgroundColor","segmentTextColor","segmentActiveTextColor","segmentBorderColor","segmentBorderColorMain","defaultSpinnerColor","inverseSpinnerColor","tabDefaultBg","topTabBarTextColor","topTabBarActiveTextColor","topTabBarBorderColor","topTabBarActiveBorderColor","tabFontSize","noteFontSize","defaultTextColor","titleFontfamily","titleFontSize","subTitleFontSize","subtitleColor","titleFontColor","borderRadiusBase","borderWidth","PixelRatio","getPixelSizeForLayoutSize","contentPadding","dropdownLinkColor","inputLineHeight","inputGroupRoundedBorderRadius","Inset","portrait","topInset","leftInset","rightInset","bottomInset","landscape"],"mappings":"yDAAA,4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b2F,WAAY,SA9NC,CA+Nb2C,YAAa,EA/NA,CAkOblC,UAAW,MAlOE,CAmOb5E,iBAAkB,MAnOL,CAoOb+G,aAAc,EApOD,CAqOb,GAAIC,iBAAJ,EAAuB,CACrB,MAAO,MAAKpC,SAAZ,CACD,CAvOY,CA0ObqC,gBAAiBzI,WAAa,KAAb,CAAqB,QAArB,CAAgC,eA1OpC,CA2Ob0I,cAAe1I,WAAa,KAAb,CAAqB,EAArB,CAA0B,EA3O5B,CA4Ob2I,iBAAkB3I,WAAa,KAAb,CAAqB,EAArB,CAA0B,EA5O/B,CA6Ob4I,cAAe5I,WAAa,KAAb,CAAqB,MAArB,CAA8B,MA7OhC,CA8Ob6I,eAAgB7I,WAAa,KAAb,CAAqB,MAArB,CAA8B,MA9OjC,CAiPb8I,iBAAkB9I,WAAa,KAAb,CAAqB,CAArB,CAAyB,CAjP9B,CAkPb+I,YAAa,EAAIC,wBAAWC,yBAAX,CAAqC,CAArC,CAlPJ,CAmPbC,eAAgB,EAnPH,CAoPbC,kBAAmB,SApPN,CAqPbC,gBAAiB,EArPJ,CAsPbtJ,uBAtPa,CAuPbJ,yBAvPa,CAwPbW,mBAxPa,CAyPbgJ,8BAA+B,EAzPlB,CA4PbC,MAAO,CACLC,SAAU,CACRC,SAAU,EADF,CAERC,UAAW,CAFH,CAGRC,WAAY,CAHJ,CAIRC,YAAa,EAJL,CADL,CAOLC,UAAW,CACTJ,SAAU,CADD,CAETC,UAAW,EAFF,CAGTC,WAAY,EAHH,CAITC,YAAa,EAJJ,CAPN,CA5PM,C","file":"commonColor.js","sourcesContent":["import color from \"color\";\n\nimport { Platform, Dimensions, PixelRatio } from \"react-native\";\n\nconst deviceHeight = Dimensions.get(\"window\").height;\nconst deviceWidth = Dimensions.get(\"window\").width;\nconst platform = Platform.OS;\nconst platformStyle = undefined;\nconst isIphoneX =\n platform === \"ios\" && (deviceHeight === 812 || deviceWidth === 812);\n\nexport default {\n platformStyle,\n platform,\n\n //Accordion\n headerStyle: \"#edebed\",\n iconStyle: \"#000\",\n contentStyle: \"#f5f4f5\",\n expandedIconStyle: \"#000\",\n accordionBorderColor: \"#d3d3d3\",\n\n //Android\n androidRipple: true,\n androidRippleColor: \"rgba(256, 256, 256, 0.3)\",\n androidRippleColorDark: \"rgba(0, 0, 0, 0.15)\",\n btnUppercaseAndroidText: true,\n\n // Badge\n badgeBg: \"#ED1727\",\n badgeColor: \"#fff\",\n badgePadding: platform === \"ios\" ? 3 : 0,\n\n // Button\n btnFontFamily: platform === \"ios\" ? \"System\" : \"Roboto_medium\",\n btnDisabledBg: \"#b5b5b5\",\n buttonPadding: 6,\n get btnPrimaryBg() {\n return this.brandPrimary;\n },\n get btnPrimaryColor() {\n return this.inverseTextColor;\n },\n get btnInfoBg() {\n return this.brandInfo;\n },\n get btnInfoColor() {\n return this.inverseTextColor;\n },\n get btnSuccessBg() {\n return this.brandSuccess;\n },\n get btnSuccessColor() {\n return this.inverseTextColor;\n },\n get btnDangerBg() {\n return this.brandDanger;\n },\n get btnDangerColor() {\n return this.inverseTextColor;\n },\n get btnWarningBg() {\n return this.brandWarning;\n },\n get btnWarningColor() {\n return this.inverseTextColor;\n },\n get btnTextSize() {\n return platform === \"ios\" ? this.fontSizeBase * 1.1 : this.fontSizeBase - 1;\n },\n get btnTextSizeLarge() {\n return this.fontSizeBase * 1.5;\n },\n get btnTextSizeSmall() {\n return this.fontSizeBase * 0.8;\n },\n get borderRadiusLarge() {\n return this.fontSizeBase * 3.8;\n },\n get iconSizeLarge() {\n return this.iconFontSize * 1.5;\n },\n get iconSizeSmall() {\n return this.iconFontSize * 0.6;\n },\n\n // Card\n cardDefaultBg: \"#fff\",\n cardBorderColor: \"#ccc\",\n cardBorderRadius: 2,\n cardItemPadding: platform === \"ios\" ? 10 : 12,\n\n // CheckBox\n CheckboxRadius: platform === \"ios\" ? 13 : 0,\n CheckboxBorderWidth: platform === \"ios\" ? 1 : 2,\n CheckboxPaddingLeft: platform === \"ios\" ? 4 : 2,\n CheckboxPaddingBottom: platform === \"ios\" ? 0 : 5,\n CheckboxIconSize: platform === \"ios\" ? 21 : 16,\n CheckboxIconMarginTop: platform === \"ios\" ? undefined : 1,\n CheckboxFontSize: platform === \"ios\" ? 23 / 0.9 : 17,\n checkboxBgColor: \"#039BE5\",\n checkboxSize: 20,\n checkboxTickColor: \"#fff\",\n\n // Color\n brandPrimary: platform === \"ios\" ? \"#007aff\" : \"#3F51B5\",\n brandInfo: \"#62B1F6\",\n brandSuccess: \"#5cb85c\",\n brandDanger: \"#d9534f\",\n brandWarning: \"#f0ad4e\",\n brandDark: \"#000\",\n brandLight: \"#f4f4f4\",\n\n //Date Picker\n datePickerTextColor: \"#000\",\n datePickerBg: \"transparent\",\n\n // Font\n DefaultFontSize: 16,\n fontFamily: platform === \"ios\" ? \"System\" : \"Roboto\",\n fontSizeBase: 15,\n get fontSizeH1() {\n return this.fontSizeBase * 1.8;\n },\n get fontSizeH2() {\n return this.fontSizeBase * 1.6;\n },\n get fontSizeH3() {\n return this.fontSizeBase * 1.4;\n },\n\n // Footer\n footerHeight: 55,\n footerDefaultBg: platform === \"ios\" ? \"#F8F8F8\" : \"#3F51B5\",\n footerPaddingBottom: 0,\n\n // FooterTab\n tabBarTextColor: platform === \"ios\" ? \"#737373\" : \"#bfc6ea\",\n tabBarTextSize: platform === \"ios\" ? 14 : 11,\n activeTab: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n sTabBarActiveTextColor: \"#007aff\",\n tabBarActiveTextColor: platform === \"ios\" ? \"#2874F0\" : \"#fff\",\n tabActiveBgColor: platform === \"ios\" ? \"#cde1f9\" : \"#3F51B5\",\n\n // Header\n toolbarBtnColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n toolbarDefaultBg: platform === \"ios\" ? \"#F8F8F8\" : \"#3F51B5\",\n toolbarHeight: platform === \"ios\" ? 64 : 56,\n toolbarSearchIconSize: platform === \"ios\" ? 20 : 23,\n toolbarInputColor: platform === \"ios\" ? \"#CECDD2\" : \"#fff\",\n searchBarHeight: platform === \"ios\" ? 30 : 40,\n searchBarInputHeight: platform === \"ios\" ? 30 : 50,\n toolbarBtnTextColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n iosStatusbar: \"dark-content\",\n toolbarDefaultBorder: platform === \"ios\" ? \"#a7a6ab\" : \"#3F51B5\",\n get statusBarColor() {\n return color(this.toolbarDefaultBg)\n .darken(0.2)\n .hex();\n },\n get darkenHeader() {\n return color(this.tabBgColor)\n .darken(0.03)\n .hex();\n },\n\n // Icon\n iconFamily: \"Ionicons\",\n iconFontSize: platform === \"ios\" ? 30 : 28,\n iconHeaderSize: platform === \"ios\" ? 33 : 24,\n\n // InputGroup\n inputFontSize: 17,\n inputBorderColor: \"#D9D5DC\",\n inputSuccessBorderColor: \"#2b8339\",\n inputErrorBorderColor: \"#ed2f2f\",\n inputHeightBase: 50,\n get inputColor() {\n return this.textColor;\n },\n get inputColorPlaceholder() {\n return \"#575757\";\n },\n\n // Line Height\n btnLineHeight: 19,\n lineHeightH1: 32,\n lineHeightH2: 27,\n lineHeightH3: 22,\n lineHeight: platform === \"ios\" ? 20 : 24,\n\n // List\n listBg: \"transparent\",\n listBorderColor: \"#c9c9c9\",\n listDividerBg: \"#f4f4f4\",\n listBtnUnderlayColor: \"#DDD\",\n listItemPadding: platform === \"ios\" ? 10 : 12,\n listNoteColor: \"#808080\",\n listNoteSize: 13,\n listItemSelected: platform === \"ios\" ? \"#007aff\" : \"#3F51B5\",\n\n // Progress Bar\n defaultProgressColor: \"#E4202D\",\n inverseProgressColor: \"#1A191B\",\n\n // Radio Button\n radioBtnSize: platform === \"ios\" ? 25 : 23,\n radioSelectedColorAndroid: \"#3F51B5\",\n radioBtnLineHeight: platform === \"ios\" ? 29 : 24,\n get radioColor() {\n return this.brandPrimary;\n },\n\n // Segment\n segmentBackgroundColor: platform === \"ios\" ? \"#F8F8F8\" : \"#3F51B5\",\n segmentActiveBackgroundColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n segmentTextColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n segmentActiveTextColor: platform === \"ios\" ? \"#fff\" : \"#3F51B5\",\n segmentBorderColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n segmentBorderColorMain: platform === \"ios\" ? \"#a7a6ab\" : \"#3F51B5\",\n\n // Spinner\n defaultSpinnerColor: \"#45D56E\",\n inverseSpinnerColor: \"#1A191B\",\n\n // Tab\n tabDefaultBg: platform === \"ios\" ? \"#F8F8F8\" : \"#3F51B5\",\n topTabBarTextColor: platform === \"ios\" ? \"#6b6b6b\" : \"#b3c7f9\",\n topTabBarActiveTextColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n topTabBarBorderColor: platform === \"ios\" ? \"#a7a6ab\" : \"#fff\",\n topTabBarActiveBorderColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n\n // Tabs\n tabBgColor: \"#F8F8F8\",\n tabFontSize: 15,\n\n // Text\n textColor: \"#000\",\n inverseTextColor: \"#fff\",\n noteFontSize: 14,\n get defaultTextColor() {\n return this.textColor;\n },\n\n // Title\n titleFontfamily: platform === \"ios\" ? \"System\" : \"Roboto_medium\",\n titleFontSize: platform === \"ios\" ? 17 : 19,\n subTitleFontSize: platform === \"ios\" ? 11 : 14,\n subtitleColor: platform === \"ios\" ? \"#000\" : \"#fff\",\n titleFontColor: platform === \"ios\" ? \"#000\" : \"#fff\",\n\n // Other\n borderRadiusBase: platform === \"ios\" ? 5 : 2,\n borderWidth: 1 / PixelRatio.getPixelSizeForLayoutSize(1),\n contentPadding: 10,\n dropdownLinkColor: \"#414142\",\n inputLineHeight: 24,\n deviceWidth,\n deviceHeight,\n isIphoneX,\n inputGroupRoundedBorderRadius: 30,\n\n //iPhoneX SafeArea\n Inset: {\n portrait: {\n topInset: 24,\n leftInset: 0,\n rightInset: 0,\n bottomInset: 34\n },\n landscape: {\n topInset: 0,\n leftInset: 44,\n rightInset: 44,\n bottomInset: 21\n }\n }\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/variables/material.js b/dist/src/theme/variables/material.js index 06b1be8fd..34cf87e0d 100644 --- a/dist/src/theme/variables/material.js +++ b/dist/src/theme/variables/material.js @@ -1,276 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _color=require("color");var _color2=_interopRequireDefault(_color); - -var _reactNative=require("react-native");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};} - -var deviceHeight=_reactNative.Dimensions.get("window").height; -var deviceWidth=_reactNative.Dimensions.get("window").width; -var platform=_reactNative.Platform.OS; -var platformStyle="material"; -var isIphoneX= -platform==="ios"&&(deviceHeight===812||deviceWidth===812);exports.default= - -{ -platformStyle:platformStyle, -platform:platform, - - -headerStyle:"#edebed", -iconStyle:"#000", -contentStyle:"#f5f4f5", -expandedIconStyle:"#000", -accordionBorderColor:"#d3d3d3", - - -androidRipple:true, -androidRippleColor:"rgba(256, 256, 256, 0.3)", -androidRippleColorDark:"rgba(0, 0, 0, 0.15)", -btnUppercaseAndroidText:true, - - -badgeBg:"#ED1727", -badgeColor:"#fff", -badgePadding:0, - - -btnFontFamily:"Roboto", -btnDisabledBg:"#b5b5b5", -buttonPadding:6, -get btnPrimaryBg(){ -return this.brandPrimary; -}, -get btnPrimaryColor(){ -return this.inverseTextColor; -}, -get btnInfoBg(){ -return this.brandInfo; -}, -get btnInfoColor(){ -return this.inverseTextColor; -}, -get btnSuccessBg(){ -return this.brandSuccess; -}, -get btnSuccessColor(){ -return this.inverseTextColor; -}, -get btnDangerBg(){ -return this.brandDanger; -}, -get btnDangerColor(){ -return this.inverseTextColor; -}, -get btnWarningBg(){ -return this.brandWarning; -}, -get btnWarningColor(){ -return this.inverseTextColor; -}, -get btnTextSize(){ -return this.fontSizeBase-1; -}, -get btnTextSizeLarge(){ -return this.fontSizeBase*1.5; -}, -get btnTextSizeSmall(){ -return this.fontSizeBase*0.8; -}, -get borderRadiusLarge(){ -return this.fontSizeBase*3.8; -}, -get iconSizeLarge(){ -return this.iconFontSize*1.5; -}, -get iconSizeSmall(){ -return this.iconFontSize*0.6; -}, - - -cardDefaultBg:"#fff", -cardBorderColor:"#ccc", -cardBorderRadius:2, -cardItemPadding:platform==="ios"?10:12, - - -CheckboxRadius:0, -CheckboxBorderWidth:2, -CheckboxPaddingLeft:2, -CheckboxPaddingBottom:5, -CheckboxIconSize:16, -CheckboxIconMarginTop:1, -CheckboxFontSize:17, -checkboxBgColor:"#039BE5", -checkboxSize:20, -checkboxTickColor:"#fff", - - -brandPrimary:"#3F51B5", -brandInfo:"#62B1F6", -brandSuccess:"#5cb85c", -brandDanger:"#d9534f", -brandWarning:"#f0ad4e", -brandDark:"#000", -brandLight:"#f4f4f4", - - -datePickerTextColor:"#000", -datePickerBg:"transparent", - - -DefaultFontSize:16, -fontFamily:"Roboto", -fontSizeBase:15, -get fontSizeH1(){ -return this.fontSizeBase*1.8; -}, -get fontSizeH2(){ -return this.fontSizeBase*1.6; -}, -get fontSizeH3(){ -return this.fontSizeBase*1.4; -}, - - -footerHeight:55, -footerDefaultBg:"#3F51B5", -footerPaddingBottom:0, - - -tabBarTextColor:"#bfc6ea", -tabBarTextSize:11, -activeTab:"#fff", -sTabBarActiveTextColor:"#007aff", -tabBarActiveTextColor:"#fff", -tabActiveBgColor:"#3F51B5", - - -toolbarBtnColor:"#fff", -toolbarDefaultBg:"#3F51B5", -toolbarHeight:56, -toolbarSearchIconSize:23, -toolbarInputColor:"#fff", -searchBarHeight:platform==="ios"?30:40, -searchBarInputHeight:platform==="ios"?40:50, -toolbarBtnTextColor:"#fff", -toolbarDefaultBorder:"#3F51B5", -iosStatusbar:"light-content", -get statusBarColor(){ -return(0,_color2.default)(this.toolbarDefaultBg). -darken(0.2). -hex(); -}, -get darkenHeader(){ -return(0,_color2.default)(this.tabBgColor). -darken(0.03). -hex(); -}, - - -iconFamily:"Ionicons", -iconFontSize:28, -iconHeaderSize:24, - - -inputFontSize:17, -inputBorderColor:"#D9D5DC", -inputSuccessBorderColor:"#2b8339", -inputErrorBorderColor:"#ed2f2f", -inputHeightBase:50, -get inputColor(){ -return this.textColor; -}, -get inputColorPlaceholder(){ -return"#575757"; -}, - - -btnLineHeight:19, -lineHeightH1:32, -lineHeightH2:27, -lineHeightH3:22, -lineHeight:24, - - -listBg:"transparent", -listBorderColor:"#c9c9c9", -listDividerBg:"#f4f4f4", -listBtnUnderlayColor:"#DDD", -listItemPadding:12, -listNoteColor:"#808080", -listNoteSize:13, -listItemSelected:"#3F51B5", - - -defaultProgressColor:"#E4202D", -inverseProgressColor:"#1A191B", - - -radioBtnSize:23, -radioSelectedColorAndroid:"#3F51B5", -radioBtnLineHeight:24, -get radioColor(){ -return this.brandPrimary; -}, - - -segmentBackgroundColor:"#3F51B5", -segmentActiveBackgroundColor:"#fff", -segmentTextColor:"#fff", -segmentActiveTextColor:"#3F51B5", -segmentBorderColor:"#fff", -segmentBorderColorMain:"#3F51B5", - - -defaultSpinnerColor:"#45D56E", -inverseSpinnerColor:"#1A191B", - - -tabDefaultBg:"#3F51B5", -topTabBarTextColor:"#b3c7f9", -topTabBarActiveTextColor:"#fff", -topTabBarBorderColor:"#fff", -topTabBarActiveBorderColor:"#fff", - - -tabBgColor:"#F8F8F8", -tabFontSize:15, - - -textColor:"#000", -inverseTextColor:"#fff", -noteFontSize:14, -get defaultTextColor(){ -return this.textColor; -}, - - -titleFontfamily:"Roboto", -titleFontSize:19, -subTitleFontSize:14, -subtitleColor:"#FFF", -titleFontColor:"#FFF", - - -borderRadiusBase:2, -borderWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1), -contentPadding:10, -dropdownLinkColor:"#414142", -inputLineHeight:24, -deviceWidth:deviceWidth, -deviceHeight:deviceHeight, -isIphoneX:isIphoneX, -inputGroupRoundedBorderRadius:30, - - -Inset:{ -portrait:{ -topInset:24, -leftInset:0, -rightInset:0, -bottomInset:34}, - -landscape:{ -topInset:0, -leftInset:44, -rightInset:44, -bottomInset:21}}}; +Object.defineProperty(exports,"__esModule",{value:true});var _color=require("color");var _color2=_interopRequireDefault(_color);var _reactNative=require("react-native");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var deviceHeight=_reactNative.Dimensions.get("window").height;var deviceWidth=_reactNative.Dimensions.get("window").width;var platform=_reactNative.Platform.OS;var platformStyle="material";var isIphoneX=platform==="ios"&&(deviceHeight===812||deviceWidth===812);exports.default={platformStyle:platformStyle,platform:platform,headerStyle:"#edebed",iconStyle:"#000",contentStyle:"#f5f4f5",expandedIconStyle:"#000",accordionBorderColor:"#d3d3d3",androidRipple:true,androidRippleColor:"rgba(256, 256, 256, 0.3)",androidRippleColorDark:"rgba(0, 0, 0, 0.15)",btnUppercaseAndroidText:true,badgeBg:"#ED1727",badgeColor:"#fff",badgePadding:0,btnFontFamily:"Roboto",btnDisabledBg:"#b5b5b5",buttonPadding:6,get btnPrimaryBg(){return this.brandPrimary;},get btnPrimaryColor(){return this.inverseTextColor;},get btnInfoBg(){return this.brandInfo;},get btnInfoColor(){return this.inverseTextColor;},get btnSuccessBg(){return this.brandSuccess;},get btnSuccessColor(){return this.inverseTextColor;},get btnDangerBg(){return this.brandDanger;},get btnDangerColor(){return this.inverseTextColor;},get btnWarningBg(){return this.brandWarning;},get btnWarningColor(){return this.inverseTextColor;},get btnTextSize(){return this.fontSizeBase-1;},get btnTextSizeLarge(){return this.fontSizeBase*1.5;},get btnTextSizeSmall(){return this.fontSizeBase*0.8;},get borderRadiusLarge(){return this.fontSizeBase*3.8;},get iconSizeLarge(){return this.iconFontSize*1.5;},get iconSizeSmall(){return this.iconFontSize*0.6;},cardDefaultBg:"#fff",cardBorderColor:"#ccc",cardBorderRadius:2,cardItemPadding:platform==="ios"?10:12,CheckboxRadius:0,CheckboxBorderWidth:2,CheckboxPaddingLeft:2,CheckboxPaddingBottom:5,CheckboxIconSize:16,CheckboxIconMarginTop:1,CheckboxFontSize:17,checkboxBgColor:"#039BE5",checkboxSize:20,checkboxTickColor:"#fff",brandPrimary:"#3F51B5",brandInfo:"#62B1F6",brandSuccess:"#5cb85c",brandDanger:"#d9534f",brandWarning:"#f0ad4e",brandDark:"#000",brandLight:"#f4f4f4",datePickerTextColor:"#000",datePickerBg:"transparent",DefaultFontSize:16,fontFamily:"Roboto",fontSizeBase:15,get fontSizeH1(){return this.fontSizeBase*1.8;},get fontSizeH2(){return this.fontSizeBase*1.6;},get fontSizeH3(){return this.fontSizeBase*1.4;},footerHeight:55,footerDefaultBg:"#3F51B5",footerPaddingBottom:0,tabBarTextColor:"#bfc6ea",tabBarTextSize:11,activeTab:"#fff",sTabBarActiveTextColor:"#007aff",tabBarActiveTextColor:"#fff",tabActiveBgColor:"#3F51B5",toolbarBtnColor:"#fff",toolbarDefaultBg:"#3F51B5",toolbarHeight:56,toolbarSearchIconSize:23,toolbarInputColor:"#fff",searchBarHeight:platform==="ios"?30:40,searchBarInputHeight:platform==="ios"?40:50,toolbarBtnTextColor:"#fff",toolbarDefaultBorder:"#3F51B5",iosStatusbar:"light-content",get statusBarColor(){return(0,_color2.default)(this.toolbarDefaultBg).darken(0.2).hex();},get darkenHeader(){return(0,_color2.default)(this.tabBgColor).darken(0.03).hex();},iconFamily:"Ionicons",iconFontSize:28,iconHeaderSize:24,inputFontSize:17,inputBorderColor:"#D9D5DC",inputSuccessBorderColor:"#2b8339",inputErrorBorderColor:"#ed2f2f",inputHeightBase:50,get inputColor(){return this.textColor;},get inputColorPlaceholder(){return"#575757";},btnLineHeight:19,lineHeightH1:32,lineHeightH2:27,lineHeightH3:22,lineHeight:24,listBg:"transparent",listBorderColor:"#c9c9c9",listDividerBg:"#f4f4f4",listBtnUnderlayColor:"#DDD",listItemPadding:12,listNoteColor:"#808080",listNoteSize:13,listItemSelected:"#3F51B5",defaultProgressColor:"#E4202D",inverseProgressColor:"#1A191B",radioBtnSize:23,radioSelectedColorAndroid:"#3F51B5",radioBtnLineHeight:24,get radioColor(){return this.brandPrimary;},segmentBackgroundColor:"#3F51B5",segmentActiveBackgroundColor:"#fff",segmentTextColor:"#fff",segmentActiveTextColor:"#3F51B5",segmentBorderColor:"#fff",segmentBorderColorMain:"#3F51B5",defaultSpinnerColor:"#45D56E",inverseSpinnerColor:"#1A191B",tabDefaultBg:"#3F51B5",topTabBarTextColor:"#b3c7f9",topTabBarActiveTextColor:"#fff",topTabBarBorderColor:"#fff",topTabBarActiveBorderColor:"#fff",tabBgColor:"#F8F8F8",tabFontSize:15,textColor:"#000",inverseTextColor:"#fff",noteFontSize:14,get defaultTextColor(){return this.textColor;},titleFontfamily:"Roboto",titleFontSize:19,subTitleFontSize:14,subtitleColor:"#FFF",titleFontColor:"#FFF",borderRadiusBase:2,borderWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),contentPadding:10,dropdownLinkColor:"#414142",inputLineHeight:24,deviceWidth:deviceWidth,deviceHeight:deviceHeight,isIphoneX:isIphoneX,inputGroupRoundedBorderRadius:30,Inset:{portrait:{topInset:24,leftInset:0,rightInset:0,bottomInset:34},landscape:{topInset:0,leftInset:44,rightInset:44,bottomInset:21}}}; //# sourceMappingURL=material.js.map \ No newline at end of file diff --git a/dist/src/theme/variables/material.js.map b/dist/src/theme/variables/material.js.map index 1374404e6..bbc98fb06 100644 --- a/dist/src/theme/variables/material.js.map +++ b/dist/src/theme/variables/material.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/variables/material.js"],"names":["deviceHeight","Dimensions","get","height","deviceWidth","width","platform","Platform","OS","platformStyle","isIphoneX","headerStyle","iconStyle","contentStyle","expandedIconStyle","accordionBorderColor","androidRipple","androidRippleColor","androidRippleColorDark","btnUppercaseAndroidText","badgeBg","badgeColor","badgePadding","btnFontFamily","btnDisabledBg","buttonPadding","btnPrimaryBg","brandPrimary","btnPrimaryColor","inverseTextColor","btnInfoBg","brandInfo","btnInfoColor","btnSuccessBg","brandSuccess","btnSuccessColor","btnDangerBg","brandDanger","btnDangerColor","btnWarningBg","brandWarning","btnWarningColor","btnTextSize","fontSizeBase","btnTextSizeLarge","btnTextSizeSmall","borderRadiusLarge","iconSizeLarge","iconFontSize","iconSizeSmall","cardDefaultBg","cardBorderColor","cardBorderRadius","cardItemPadding","CheckboxRadius","CheckboxBorderWidth","CheckboxPaddingLeft","CheckboxPaddingBottom","CheckboxIconSize","CheckboxIconMarginTop","CheckboxFontSize","checkboxBgColor","checkboxSize","checkboxTickColor","brandDark","brandLight","datePickerTextColor","datePickerBg","DefaultFontSize","fontFamily","fontSizeH1","fontSizeH2","fontSizeH3","footerHeight","footerDefaultBg","footerPaddingBottom","tabBarTextColor","tabBarTextSize","activeTab","sTabBarActiveTextColor","tabBarActiveTextColor","tabActiveBgColor","toolbarBtnColor","toolbarDefaultBg","toolbarHeight","toolbarSearchIconSize","toolbarInputColor","searchBarHeight","searchBarInputHeight","toolbarBtnTextColor","toolbarDefaultBorder","iosStatusbar","statusBarColor","darken","hex","darkenHeader","tabBgColor","iconFamily","iconHeaderSize","inputFontSize","inputBorderColor","inputSuccessBorderColor","inputErrorBorderColor","inputHeightBase","inputColor","textColor","inputColorPlaceholder","btnLineHeight","lineHeightH1","lineHeightH2","lineHeightH3","lineHeight","listBg","listBorderColor","listDividerBg","listBtnUnderlayColor","listItemPadding","listNoteColor","listNoteSize","listItemSelected","defaultProgressColor","inverseProgressColor","radioBtnSize","radioSelectedColorAndroid","radioBtnLineHeight","radioColor","segmentBackgroundColor","segmentActiveBackgroundColor","segmentTextColor","segmentActiveTextColor","segmentBorderColor","segmentBorderColorMain","defaultSpinnerColor","inverseSpinnerColor","tabDefaultBg","topTabBarTextColor","topTabBarActiveTextColor","topTabBarBorderColor","topTabBarActiveBorderColor","tabFontSize","noteFontSize","defaultTextColor","titleFontfamily","titleFontSize","subTitleFontSize","subtitleColor","titleFontColor","borderRadiusBase","borderWidth","PixelRatio","getPixelSizeForLayoutSize","contentPadding","dropdownLinkColor","inputLineHeight","inputGroupRoundedBorderRadius","Inset","portrait","topInset","leftInset","rightInset","bottomInset","landscape"],"mappings":"yDAAA,4B;;AAEA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EAAIC,wBAAWC,yBAAX,CAAqC,CAArC,CAlPJ;AAmPbC,eAAgB,EAnPH;AAoPbC,kBAAmB,SApPN;AAqPbC,gBAAiB,EArPJ;AAsPbrJ,uBAtPa;AAuPbJ,yBAvPa;AAwPbU,mBAxPa;AAyPbgJ,8BAA+B,EAzPlB;;;AA4PbC,MAAO;AACLC,SAAU;AACRC,SAAU,EADF;AAERC,UAAW,CAFH;AAGRC,WAAY,CAHJ;AAIRC,YAAa,EAJL,CADL;;AAOLC,UAAW;AACTJ,SAAU,CADD;AAETC,UAAW,EAFF;AAGTC,WAAY,EAHH;AAITC,YAAa,EAJJ,CAPN,CA5PM,C","file":"material.js","sourcesContent":["import color from \"color\";\n\nimport { Platform, Dimensions, PixelRatio } from \"react-native\";\n\nconst deviceHeight = Dimensions.get(\"window\").height;\nconst deviceWidth = Dimensions.get(\"window\").width;\nconst platform = Platform.OS;\nconst platformStyle = \"material\";\nconst isIphoneX =\n platform === \"ios\" && (deviceHeight === 812 || deviceWidth === 812);\n\nexport default {\n platformStyle,\n platform,\n\n //Accordion\n headerStyle: \"#edebed\",\n iconStyle: \"#000\",\n contentStyle: \"#f5f4f5\",\n expandedIconStyle: \"#000\",\n accordionBorderColor: \"#d3d3d3\",\n\n // Android\n androidRipple: true,\n androidRippleColor: \"rgba(256, 256, 256, 0.3)\",\n androidRippleColorDark: \"rgba(0, 0, 0, 0.15)\",\n btnUppercaseAndroidText: true,\n\n // Badge\n badgeBg: \"#ED1727\",\n badgeColor: \"#fff\",\n badgePadding: 0,\n\n // Button\n btnFontFamily: \"Roboto\",\n btnDisabledBg: \"#b5b5b5\",\n buttonPadding: 6,\n get btnPrimaryBg() {\n return this.brandPrimary;\n },\n get btnPrimaryColor() {\n return this.inverseTextColor;\n },\n get btnInfoBg() {\n return this.brandInfo;\n },\n get btnInfoColor() {\n return this.inverseTextColor;\n },\n get btnSuccessBg() {\n return this.brandSuccess;\n },\n get btnSuccessColor() {\n return this.inverseTextColor;\n },\n get btnDangerBg() {\n return this.brandDanger;\n },\n get btnDangerColor() {\n return this.inverseTextColor;\n },\n get btnWarningBg() {\n return this.brandWarning;\n },\n get btnWarningColor() {\n return this.inverseTextColor;\n },\n get btnTextSize() {\n return this.fontSizeBase - 1;\n },\n get btnTextSizeLarge() {\n return this.fontSizeBase * 1.5;\n },\n get btnTextSizeSmall() {\n return this.fontSizeBase * 0.8;\n },\n get borderRadiusLarge() {\n return this.fontSizeBase * 3.8;\n },\n get iconSizeLarge() {\n return this.iconFontSize * 1.5;\n },\n get iconSizeSmall() {\n return this.iconFontSize * 0.6;\n },\n\n // Card\n cardDefaultBg: \"#fff\",\n cardBorderColor: \"#ccc\",\n cardBorderRadius: 2,\n cardItemPadding: platform === \"ios\" ? 10 : 12,\n\n // CheckBox\n CheckboxRadius: 0,\n CheckboxBorderWidth: 2,\n CheckboxPaddingLeft: 2,\n CheckboxPaddingBottom: 5,\n CheckboxIconSize: 16,\n CheckboxIconMarginTop: 1,\n CheckboxFontSize: 17,\n checkboxBgColor: \"#039BE5\",\n checkboxSize: 20,\n checkboxTickColor: \"#fff\",\n\n // Color\n brandPrimary: \"#3F51B5\",\n brandInfo: \"#62B1F6\",\n brandSuccess: \"#5cb85c\",\n brandDanger: \"#d9534f\",\n brandWarning: \"#f0ad4e\",\n brandDark: \"#000\",\n brandLight: \"#f4f4f4\",\n\n //Date Picker\n datePickerTextColor: \"#000\",\n datePickerBg: \"transparent\",\n\n // Font\n DefaultFontSize: 16,\n fontFamily: \"Roboto\",\n fontSizeBase: 15,\n get fontSizeH1() {\n return this.fontSizeBase * 1.8;\n },\n get fontSizeH2() {\n return this.fontSizeBase * 1.6;\n },\n get fontSizeH3() {\n return this.fontSizeBase * 1.4;\n },\n\n // Footer\n footerHeight: 55,\n footerDefaultBg: \"#3F51B5\",\n footerPaddingBottom: 0,\n\n // FooterTab\n tabBarTextColor: \"#bfc6ea\",\n tabBarTextSize: 11,\n activeTab: \"#fff\",\n sTabBarActiveTextColor: \"#007aff\",\n tabBarActiveTextColor: \"#fff\",\n tabActiveBgColor: \"#3F51B5\",\n\n // Header\n toolbarBtnColor: \"#fff\",\n toolbarDefaultBg: \"#3F51B5\",\n toolbarHeight: 56,\n toolbarSearchIconSize: 23,\n toolbarInputColor: \"#fff\",\n searchBarHeight: platform === \"ios\" ? 30 : 40,\n searchBarInputHeight: platform === \"ios\" ? 40 : 50,\n toolbarBtnTextColor: \"#fff\",\n toolbarDefaultBorder: \"#3F51B5\",\n iosStatusbar: \"light-content\",\n get statusBarColor() {\n return color(this.toolbarDefaultBg)\n .darken(0.2)\n .hex();\n },\n get darkenHeader() {\n return color(this.tabBgColor)\n .darken(0.03)\n .hex();\n },\n\n // Icon\n iconFamily: \"Ionicons\",\n iconFontSize: 28,\n iconHeaderSize: 24,\n\n // InputGroup\n inputFontSize: 17,\n inputBorderColor: \"#D9D5DC\",\n inputSuccessBorderColor: \"#2b8339\",\n inputErrorBorderColor: \"#ed2f2f\",\n inputHeightBase: 50,\n get inputColor() {\n return this.textColor;\n },\n get inputColorPlaceholder() {\n return \"#575757\";\n },\n\n // Line Height\n btnLineHeight: 19,\n lineHeightH1: 32,\n lineHeightH2: 27,\n lineHeightH3: 22,\n lineHeight: 24,\n\n // List\n listBg: \"transparent\",\n listBorderColor: \"#c9c9c9\",\n listDividerBg: \"#f4f4f4\",\n listBtnUnderlayColor: \"#DDD\",\n listItemPadding: 12,\n listNoteColor: \"#808080\",\n listNoteSize: 13,\n listItemSelected: \"#3F51B5\",\n\n // Progress Bar\n defaultProgressColor: \"#E4202D\",\n inverseProgressColor: \"#1A191B\",\n\n // Radio Button\n radioBtnSize: 23,\n radioSelectedColorAndroid: \"#3F51B5\",\n radioBtnLineHeight: 24,\n get radioColor() {\n return this.brandPrimary;\n },\n\n // Segment\n segmentBackgroundColor: \"#3F51B5\",\n segmentActiveBackgroundColor: \"#fff\",\n segmentTextColor: \"#fff\",\n segmentActiveTextColor: \"#3F51B5\",\n segmentBorderColor: \"#fff\",\n segmentBorderColorMain: \"#3F51B5\",\n\n // Spinner\n defaultSpinnerColor: \"#45D56E\",\n inverseSpinnerColor: \"#1A191B\",\n\n // Tab\n tabDefaultBg: \"#3F51B5\",\n topTabBarTextColor: \"#b3c7f9\",\n topTabBarActiveTextColor: \"#fff\",\n topTabBarBorderColor: \"#fff\",\n topTabBarActiveBorderColor: \"#fff\",\n\n // Tabs\n tabBgColor: \"#F8F8F8\",\n tabFontSize: 15,\n\n // Text\n textColor: \"#000\",\n inverseTextColor: \"#fff\",\n noteFontSize: 14,\n get defaultTextColor() {\n return this.textColor;\n },\n\n // Title\n titleFontfamily: \"Roboto\",\n titleFontSize: 19,\n subTitleFontSize: 14,\n subtitleColor: \"#FFF\",\n titleFontColor: \"#FFF\",\n\n // Other\n borderRadiusBase: 2,\n borderWidth: 1 / PixelRatio.getPixelSizeForLayoutSize(1),\n contentPadding: 10,\n dropdownLinkColor: \"#414142\",\n inputLineHeight: 24,\n deviceWidth,\n deviceHeight,\n isIphoneX,\n inputGroupRoundedBorderRadius: 30,\n\n //iPhoneX SafeArea\n Inset: {\n portrait: {\n topInset: 24,\n leftInset: 0,\n rightInset: 0,\n bottomInset: 34\n },\n landscape: {\n topInset: 0,\n leftInset: 44,\n rightInset: 44,\n bottomInset: 21\n }\n }\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/variables/material.js"],"names":["deviceHeight","Dimensions","get","height","deviceWidth","width","platform","Platform","OS","platformStyle","isIphoneX","headerStyle","iconStyle","contentStyle","expandedIconStyle","accordionBorderColor","androidRipple","androidRippleColor","androidRippleColorDark","btnUppercaseAndroidText","badgeBg","badgeColor","badgePadding","btnFontFamily","btnDisabledBg","buttonPadding","btnPrimaryBg","brandPrimary","btnPrimaryColor","inverseTextColor","btnInfoBg","brandInfo","btnInfoColor","btnSuccessBg","brandSuccess","btnSuccessColor","btnDangerBg","brandDanger","btnDangerColor","btnWarningBg","brandWarning","btnWarningColor","btnTextSize","fontSizeBase","btnTextSizeLarge","btnTextSizeSmall","borderRadiusLarge","iconSizeLarge","iconFontSize","iconSizeSmall","cardDefaultBg","cardBorderColor","cardBorderRadius","cardItemPadding","CheckboxRadius","CheckboxBorderWidth","CheckboxPaddingLeft","CheckboxPaddingBottom","CheckboxIconSize","CheckboxIconMarginTop","CheckboxFontSize","checkboxBgColor","checkboxSize","checkboxTickColor","brandDark","brandLight","datePickerTextColor","datePickerBg","DefaultFontSize","fontFamily","fontSizeH1","fontSizeH2","fontSizeH3","footerHeight","footerDefaultBg","footerPaddingBottom","tabBarTextColor","tabBarTextSize","activeTab","sTabBarActiveTextColor","tabBarActiveTextColor","tabActiveBgColor","toolbarBtnColor","toolbarDefaultBg","toolbarHeight","toolbarSearchIconSize","toolbarInputColor","searchBarHeight","searchBarInputHeight","toolbarBtnTextColor","toolbarDefaultBorder","iosStatusbar","statusBarColor","darken","hex","darkenHeader","tabBgColor","iconFamily","iconHeaderSize","inputFontSize","inputBorderColor","inputSuccessBorderColor","inputErrorBorderColor","inputHeightBase","inputColor","textColor","inputColorPlaceholder","btnLineHeight","lineHeightH1","lineHeightH2","lineHeightH3","lineHeight","listBg","listBorderColor","listDividerBg","listBtnUnderlayColor","listItemPadding","listNoteColor","listNoteSize","listItemSelected","defaultProgressColor","inverseProgressColor","radioBtnSize","radioSelectedColorAndroid","radioBtnLineHeight","radioColor","segmentBackgroundColor","segmentActiveBackgroundColor","segmentTextColor","segmentActiveTextColor","segmentBorderColor","segmentBorderColorMain","defaultSpinnerColor","inverseSpinnerColor","tabDefaultBg","topTabBarTextColor","topTabBarActiveTextColor","topTabBarBorderColor","topTabBarActiveBorderColor","tabFontSize","noteFontSize","defaultTextColor","titleFontfamily","titleFontSize","subTitleFontSize","subtitleColor","titleFontColor","borderRadiusBase","borderWidth","PixelRatio","getPixelSizeForLayoutSize","contentPadding","dropdownLinkColor","inputLineHeight","inputGroupRoundedBorderRadius","Inset","portrait","topInset","leftInset","rightInset","bottomInset","landscape"],"mappings":"yDAAA,4B,2CA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B,EAnPH,CAoPbC,kBAAmB,SApPN,CAqPbC,gBAAiB,EArPJ,CAsPbrJ,uBAtPa,CAuPbJ,yBAvPa,CAwPbU,mBAxPa,CAyPbgJ,8BAA+B,EAzPlB,CA4PbC,MAAO,CACLC,SAAU,CACRC,SAAU,EADF,CAERC,UAAW,CAFH,CAGRC,WAAY,CAHJ,CAIRC,YAAa,EAJL,CADL,CAOLC,UAAW,CACTJ,SAAU,CADD,CAETC,UAAW,EAFF,CAGTC,WAAY,EAHH,CAITC,YAAa,EAJJ,CAPN,CA5PM,C","file":"material.js","sourcesContent":["import color from \"color\";\n\nimport { Platform, Dimensions, PixelRatio } from \"react-native\";\n\nconst deviceHeight = Dimensions.get(\"window\").height;\nconst deviceWidth = Dimensions.get(\"window\").width;\nconst platform = Platform.OS;\nconst platformStyle = \"material\";\nconst isIphoneX =\n platform === \"ios\" && (deviceHeight === 812 || deviceWidth === 812);\n\nexport default {\n platformStyle,\n platform,\n\n //Accordion\n headerStyle: \"#edebed\",\n iconStyle: \"#000\",\n contentStyle: \"#f5f4f5\",\n expandedIconStyle: \"#000\",\n accordionBorderColor: \"#d3d3d3\",\n\n // Android\n androidRipple: true,\n androidRippleColor: \"rgba(256, 256, 256, 0.3)\",\n androidRippleColorDark: \"rgba(0, 0, 0, 0.15)\",\n btnUppercaseAndroidText: true,\n\n // Badge\n badgeBg: \"#ED1727\",\n badgeColor: \"#fff\",\n badgePadding: 0,\n\n // Button\n btnFontFamily: \"Roboto\",\n btnDisabledBg: \"#b5b5b5\",\n buttonPadding: 6,\n get btnPrimaryBg() {\n return this.brandPrimary;\n },\n get btnPrimaryColor() {\n return this.inverseTextColor;\n },\n get btnInfoBg() {\n return this.brandInfo;\n },\n get btnInfoColor() {\n return this.inverseTextColor;\n },\n get btnSuccessBg() {\n return this.brandSuccess;\n },\n get btnSuccessColor() {\n return this.inverseTextColor;\n },\n get btnDangerBg() {\n return this.brandDanger;\n },\n get btnDangerColor() {\n return this.inverseTextColor;\n },\n get btnWarningBg() {\n return this.brandWarning;\n },\n get btnWarningColor() {\n return this.inverseTextColor;\n },\n get btnTextSize() {\n return this.fontSizeBase - 1;\n },\n get btnTextSizeLarge() {\n return this.fontSizeBase * 1.5;\n },\n get btnTextSizeSmall() {\n return this.fontSizeBase * 0.8;\n },\n get borderRadiusLarge() {\n return this.fontSizeBase * 3.8;\n },\n get iconSizeLarge() {\n return this.iconFontSize * 1.5;\n },\n get iconSizeSmall() {\n return this.iconFontSize * 0.6;\n },\n\n // Card\n cardDefaultBg: \"#fff\",\n cardBorderColor: \"#ccc\",\n cardBorderRadius: 2,\n cardItemPadding: platform === \"ios\" ? 10 : 12,\n\n // CheckBox\n CheckboxRadius: 0,\n CheckboxBorderWidth: 2,\n CheckboxPaddingLeft: 2,\n CheckboxPaddingBottom: 5,\n CheckboxIconSize: 16,\n CheckboxIconMarginTop: 1,\n CheckboxFontSize: 17,\n checkboxBgColor: \"#039BE5\",\n checkboxSize: 20,\n checkboxTickColor: \"#fff\",\n\n // Color\n brandPrimary: \"#3F51B5\",\n brandInfo: \"#62B1F6\",\n brandSuccess: \"#5cb85c\",\n brandDanger: \"#d9534f\",\n brandWarning: \"#f0ad4e\",\n brandDark: \"#000\",\n brandLight: \"#f4f4f4\",\n\n //Date Picker\n datePickerTextColor: \"#000\",\n datePickerBg: \"transparent\",\n\n // Font\n DefaultFontSize: 16,\n fontFamily: \"Roboto\",\n fontSizeBase: 15,\n get fontSizeH1() {\n return this.fontSizeBase * 1.8;\n },\n get fontSizeH2() {\n return this.fontSizeBase * 1.6;\n },\n get fontSizeH3() {\n return this.fontSizeBase * 1.4;\n },\n\n // Footer\n footerHeight: 55,\n footerDefaultBg: \"#3F51B5\",\n footerPaddingBottom: 0,\n\n // FooterTab\n tabBarTextColor: \"#bfc6ea\",\n tabBarTextSize: 11,\n activeTab: \"#fff\",\n sTabBarActiveTextColor: \"#007aff\",\n tabBarActiveTextColor: \"#fff\",\n tabActiveBgColor: \"#3F51B5\",\n\n // Header\n toolbarBtnColor: \"#fff\",\n toolbarDefaultBg: \"#3F51B5\",\n toolbarHeight: 56,\n toolbarSearchIconSize: 23,\n toolbarInputColor: \"#fff\",\n searchBarHeight: platform === \"ios\" ? 30 : 40,\n searchBarInputHeight: platform === \"ios\" ? 40 : 50,\n toolbarBtnTextColor: \"#fff\",\n toolbarDefaultBorder: \"#3F51B5\",\n iosStatusbar: \"light-content\",\n get statusBarColor() {\n return color(this.toolbarDefaultBg)\n .darken(0.2)\n .hex();\n },\n get darkenHeader() {\n return color(this.tabBgColor)\n .darken(0.03)\n .hex();\n },\n\n // Icon\n iconFamily: \"Ionicons\",\n iconFontSize: 28,\n iconHeaderSize: 24,\n\n // InputGroup\n inputFontSize: 17,\n inputBorderColor: \"#D9D5DC\",\n inputSuccessBorderColor: \"#2b8339\",\n inputErrorBorderColor: \"#ed2f2f\",\n inputHeightBase: 50,\n get inputColor() {\n return this.textColor;\n },\n get inputColorPlaceholder() {\n return \"#575757\";\n },\n\n // Line Height\n btnLineHeight: 19,\n lineHeightH1: 32,\n lineHeightH2: 27,\n lineHeightH3: 22,\n lineHeight: 24,\n\n // List\n listBg: \"transparent\",\n listBorderColor: \"#c9c9c9\",\n listDividerBg: \"#f4f4f4\",\n listBtnUnderlayColor: \"#DDD\",\n listItemPadding: 12,\n listNoteColor: \"#808080\",\n listNoteSize: 13,\n listItemSelected: \"#3F51B5\",\n\n // Progress Bar\n defaultProgressColor: \"#E4202D\",\n inverseProgressColor: \"#1A191B\",\n\n // Radio Button\n radioBtnSize: 23,\n radioSelectedColorAndroid: \"#3F51B5\",\n radioBtnLineHeight: 24,\n get radioColor() {\n return this.brandPrimary;\n },\n\n // Segment\n segmentBackgroundColor: \"#3F51B5\",\n segmentActiveBackgroundColor: \"#fff\",\n segmentTextColor: \"#fff\",\n segmentActiveTextColor: \"#3F51B5\",\n segmentBorderColor: \"#fff\",\n segmentBorderColorMain: \"#3F51B5\",\n\n // Spinner\n defaultSpinnerColor: \"#45D56E\",\n inverseSpinnerColor: \"#1A191B\",\n\n // Tab\n tabDefaultBg: \"#3F51B5\",\n topTabBarTextColor: \"#b3c7f9\",\n topTabBarActiveTextColor: \"#fff\",\n topTabBarBorderColor: \"#fff\",\n topTabBarActiveBorderColor: \"#fff\",\n\n // Tabs\n tabBgColor: \"#F8F8F8\",\n tabFontSize: 15,\n\n // Text\n textColor: \"#000\",\n inverseTextColor: \"#fff\",\n noteFontSize: 14,\n get defaultTextColor() {\n return this.textColor;\n },\n\n // Title\n titleFontfamily: \"Roboto\",\n titleFontSize: 19,\n subTitleFontSize: 14,\n subtitleColor: \"#FFF\",\n titleFontColor: \"#FFF\",\n\n // Other\n borderRadiusBase: 2,\n borderWidth: 1 / PixelRatio.getPixelSizeForLayoutSize(1),\n contentPadding: 10,\n dropdownLinkColor: \"#414142\",\n inputLineHeight: 24,\n deviceWidth,\n deviceHeight,\n isIphoneX,\n inputGroupRoundedBorderRadius: 30,\n\n //iPhoneX SafeArea\n Inset: {\n portrait: {\n topInset: 24,\n leftInset: 0,\n rightInset: 0,\n bottomInset: 34\n },\n landscape: {\n topInset: 0,\n leftInset: 44,\n rightInset: 44,\n bottomInset: 21\n }\n }\n};\n"]} \ No newline at end of file diff --git a/dist/src/theme/variables/platform.js b/dist/src/theme/variables/platform.js index 80c60495e..06d7e3fc7 100644 --- a/dist/src/theme/variables/platform.js +++ b/dist/src/theme/variables/platform.js @@ -1,276 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _color=require("color");var _color2=_interopRequireDefault(_color); - -var _reactNative=require("react-native");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};} - -var deviceHeight=_reactNative.Dimensions.get("window").height; -var deviceWidth=_reactNative.Dimensions.get("window").width; -var platform=_reactNative.Platform.OS; -var platformStyle=undefined; -var isIphoneX= -platform==="ios"&&(deviceHeight===812||deviceWidth===812);exports.default= - -{ -platformStyle:platformStyle, -platform:platform, - - -headerStyle:"#edebed", -iconStyle:"#000", -contentStyle:"#f5f4f5", -expandedIconStyle:"#000", -accordionBorderColor:"#d3d3d3", - - -androidRipple:true, -androidRippleColor:"rgba(256, 256, 256, 0.3)", -androidRippleColorDark:"rgba(0, 0, 0, 0.15)", -btnUppercaseAndroidText:true, - - -badgeBg:"#ED1727", -badgeColor:"#fff", -badgePadding:platform==="ios"?3:0, - - -btnFontFamily:platform==="ios"?"System":"Roboto_medium", -btnDisabledBg:"#b5b5b5", -buttonPadding:6, -get btnPrimaryBg(){ -return this.brandPrimary; -}, -get btnPrimaryColor(){ -return this.inverseTextColor; -}, -get btnInfoBg(){ -return this.brandInfo; -}, -get btnInfoColor(){ -return this.inverseTextColor; -}, -get btnSuccessBg(){ -return this.brandSuccess; -}, -get btnSuccessColor(){ -return this.inverseTextColor; -}, -get btnDangerBg(){ -return this.brandDanger; -}, -get btnDangerColor(){ -return this.inverseTextColor; -}, -get btnWarningBg(){ -return this.brandWarning; -}, -get btnWarningColor(){ -return this.inverseTextColor; -}, -get btnTextSize(){ -return platform==="ios"?this.fontSizeBase*1.1:this.fontSizeBase-1; -}, -get btnTextSizeLarge(){ -return this.fontSizeBase*1.5; -}, -get btnTextSizeSmall(){ -return this.fontSizeBase*0.8; -}, -get borderRadiusLarge(){ -return this.fontSizeBase*3.8; -}, -get iconSizeLarge(){ -return this.iconFontSize*1.5; -}, -get iconSizeSmall(){ -return this.iconFontSize*0.6; -}, - - -cardDefaultBg:"#fff", -cardBorderColor:"#ccc", -cardBorderRadius:2, -cardItemPadding:platform==="ios"?10:12, - - -CheckboxRadius:platform==="ios"?13:0, -CheckboxBorderWidth:platform==="ios"?1:2, -CheckboxPaddingLeft:platform==="ios"?4:2, -CheckboxPaddingBottom:platform==="ios"?0:5, -CheckboxIconSize:platform==="ios"?21:16, -CheckboxIconMarginTop:platform==="ios"?undefined:1, -CheckboxFontSize:platform==="ios"?23/0.9:17, -checkboxBgColor:"#039BE5", -checkboxSize:20, -checkboxTickColor:"#fff", - - -brandPrimary:platform==="ios"?"#007aff":"#3F51B5", -brandInfo:"#62B1F6", -brandSuccess:"#5cb85c", -brandDanger:"#d9534f", -brandWarning:"#f0ad4e", -brandDark:"#000", -brandLight:"#f4f4f4", - - -datePickerTextColor:"#000", -datePickerBg:"transparent", - - -DefaultFontSize:16, -fontFamily:platform==="ios"?"System":"Roboto", -fontSizeBase:15, -get fontSizeH1(){ -return this.fontSizeBase*1.8; -}, -get fontSizeH2(){ -return this.fontSizeBase*1.6; -}, -get fontSizeH3(){ -return this.fontSizeBase*1.4; -}, - - -footerHeight:55, -footerDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5", -footerPaddingBottom:0, - - -tabBarTextColor:platform==="ios"?"#6b6b6b":"#b3c7f9", -tabBarTextSize:platform==="ios"?14:11, -activeTab:platform==="ios"?"#007aff":"#fff", -sTabBarActiveTextColor:"#007aff", -tabBarActiveTextColor:platform==="ios"?"#007aff":"#fff", -tabActiveBgColor:platform==="ios"?"#cde1f9":"#3F51B5", - - -toolbarBtnColor:platform==="ios"?"#007aff":"#fff", -toolbarDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5", -toolbarHeight:platform==="ios"?64:56, -toolbarSearchIconSize:platform==="ios"?20:23, -toolbarInputColor:platform==="ios"?"#CECDD2":"#fff", -searchBarHeight:platform==="ios"?30:40, -searchBarInputHeight:platform==="ios"?30:50, -toolbarBtnTextColor:platform==="ios"?"#007aff":"#fff", -toolbarDefaultBorder:platform==="ios"?"#a7a6ab":"#3F51B5", -iosStatusbar:platform==="ios"?"dark-content":"light-content", -get statusBarColor(){ -return(0,_color2.default)(this.toolbarDefaultBg). -darken(0.2). -hex(); -}, -get darkenHeader(){ -return(0,_color2.default)(this.tabBgColor). -darken(0.03). -hex(); -}, - - -iconFamily:"Ionicons", -iconFontSize:platform==="ios"?30:28, -iconHeaderSize:platform==="ios"?33:24, - - -inputFontSize:17, -inputBorderColor:"#D9D5DC", -inputSuccessBorderColor:"#2b8339", -inputErrorBorderColor:"#ed2f2f", -inputHeightBase:50, -get inputColor(){ -return this.textColor; -}, -get inputColorPlaceholder(){ -return"#575757"; -}, - - -btnLineHeight:19, -lineHeightH1:32, -lineHeightH2:27, -lineHeightH3:22, -lineHeight:platform==="ios"?20:24, -listItemSelected:platform==="ios"?"#007aff":"#3F51B5", - - -listBg:"transparent", -listBorderColor:"#c9c9c9", -listDividerBg:"#f4f4f4", -listBtnUnderlayColor:"#DDD", -listItemPadding:platform==="ios"?10:12, -listNoteColor:"#808080", -listNoteSize:13, - - -defaultProgressColor:"#E4202D", -inverseProgressColor:"#1A191B", - - -radioBtnSize:platform==="ios"?25:23, -radioSelectedColorAndroid:"#3F51B5", -radioBtnLineHeight:platform==="ios"?29:24, -get radioColor(){ -return this.brandPrimary; -}, - - -segmentBackgroundColor:platform==="ios"?"#F8F8F8":"#3F51B5", -segmentActiveBackgroundColor:platform==="ios"?"#007aff":"#fff", -segmentTextColor:platform==="ios"?"#007aff":"#fff", -segmentActiveTextColor:platform==="ios"?"#fff":"#3F51B5", -segmentBorderColor:platform==="ios"?"#007aff":"#fff", -segmentBorderColorMain:platform==="ios"?"#a7a6ab":"#3F51B5", - - -defaultSpinnerColor:"#45D56E", -inverseSpinnerColor:"#1A191B", - - -tabDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5", -topTabBarTextColor:platform==="ios"?"#6b6b6b":"#b3c7f9", -topTabBarActiveTextColor:platform==="ios"?"#007aff":"#fff", -topTabBarBorderColor:platform==="ios"?"#a7a6ab":"#fff", -topTabBarActiveBorderColor:platform==="ios"?"#007aff":"#fff", - - -tabBgColor:"#F8F8F8", -tabFontSize:15, - - -textColor:"#000", -inverseTextColor:"#fff", -noteFontSize:14, -get defaultTextColor(){ -return this.textColor; -}, - - -titleFontfamily:platform==="ios"?"System":"Roboto_medium", -titleFontSize:platform==="ios"?17:19, -subTitleFontSize:platform==="ios"?11:14, -subtitleColor:platform==="ios"?"#8e8e93":"#FFF", -titleFontColor:platform==="ios"?"#000":"#FFF", - - -borderRadiusBase:platform==="ios"?5:2, -borderWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1), -contentPadding:10, -dropdownLinkColor:"#414142", -inputLineHeight:24, -deviceWidth:deviceWidth, -deviceHeight:deviceHeight, -isIphoneX:isIphoneX, -inputGroupRoundedBorderRadius:30, - - -Inset:{ -portrait:{ -topInset:24, -leftInset:0, -rightInset:0, -bottomInset:34}, - -landscape:{ -topInset:0, -leftInset:44, -rightInset:44, -bottomInset:21}}}; +Object.defineProperty(exports,"__esModule",{value:true});var _color=require("color");var _color2=_interopRequireDefault(_color);var _reactNative=require("react-native");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var deviceHeight=_reactNative.Dimensions.get("window").height;var deviceWidth=_reactNative.Dimensions.get("window").width;var platform=_reactNative.Platform.OS;var platformStyle=undefined;var isIphoneX=platform==="ios"&&(deviceHeight===812||deviceWidth===812);exports.default={platformStyle:platformStyle,platform:platform,headerStyle:"#edebed",iconStyle:"#000",contentStyle:"#f5f4f5",expandedIconStyle:"#000",accordionBorderColor:"#d3d3d3",androidRipple:true,androidRippleColor:"rgba(256, 256, 256, 0.3)",androidRippleColorDark:"rgba(0, 0, 0, 0.15)",btnUppercaseAndroidText:true,badgeBg:"#ED1727",badgeColor:"#fff",badgePadding:platform==="ios"?3:0,btnFontFamily:platform==="ios"?"System":"Roboto_medium",btnDisabledBg:"#b5b5b5",buttonPadding:6,get btnPrimaryBg(){return this.brandPrimary;},get btnPrimaryColor(){return this.inverseTextColor;},get btnInfoBg(){return this.brandInfo;},get btnInfoColor(){return this.inverseTextColor;},get btnSuccessBg(){return this.brandSuccess;},get btnSuccessColor(){return this.inverseTextColor;},get btnDangerBg(){return this.brandDanger;},get btnDangerColor(){return this.inverseTextColor;},get btnWarningBg(){return this.brandWarning;},get btnWarningColor(){return this.inverseTextColor;},get btnTextSize(){return platform==="ios"?this.fontSizeBase*1.1:this.fontSizeBase-1;},get btnTextSizeLarge(){return this.fontSizeBase*1.5;},get btnTextSizeSmall(){return this.fontSizeBase*0.8;},get borderRadiusLarge(){return this.fontSizeBase*3.8;},get iconSizeLarge(){return this.iconFontSize*1.5;},get iconSizeSmall(){return this.iconFontSize*0.6;},cardDefaultBg:"#fff",cardBorderColor:"#ccc",cardBorderRadius:2,cardItemPadding:platform==="ios"?10:12,CheckboxRadius:platform==="ios"?13:0,CheckboxBorderWidth:platform==="ios"?1:2,CheckboxPaddingLeft:platform==="ios"?4:2,CheckboxPaddingBottom:platform==="ios"?0:5,CheckboxIconSize:platform==="ios"?21:16,CheckboxIconMarginTop:platform==="ios"?undefined:1,CheckboxFontSize:platform==="ios"?23/0.9:17,checkboxBgColor:"#039BE5",checkboxSize:20,checkboxTickColor:"#fff",brandPrimary:platform==="ios"?"#007aff":"#3F51B5",brandInfo:"#62B1F6",brandSuccess:"#5cb85c",brandDanger:"#d9534f",brandWarning:"#f0ad4e",brandDark:"#000",brandLight:"#f4f4f4",datePickerTextColor:"#000",datePickerBg:"transparent",DefaultFontSize:16,fontFamily:platform==="ios"?"System":"Roboto",fontSizeBase:15,get fontSizeH1(){return this.fontSizeBase*1.8;},get fontSizeH2(){return this.fontSizeBase*1.6;},get fontSizeH3(){return this.fontSizeBase*1.4;},footerHeight:55,footerDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5",footerPaddingBottom:0,tabBarTextColor:platform==="ios"?"#6b6b6b":"#b3c7f9",tabBarTextSize:platform==="ios"?14:11,activeTab:platform==="ios"?"#007aff":"#fff",sTabBarActiveTextColor:"#007aff",tabBarActiveTextColor:platform==="ios"?"#007aff":"#fff",tabActiveBgColor:platform==="ios"?"#cde1f9":"#3F51B5",toolbarBtnColor:platform==="ios"?"#007aff":"#fff",toolbarDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5",toolbarHeight:platform==="ios"?64:56,toolbarSearchIconSize:platform==="ios"?20:23,toolbarInputColor:platform==="ios"?"#CECDD2":"#fff",searchBarHeight:platform==="ios"?30:40,searchBarInputHeight:platform==="ios"?30:50,toolbarBtnTextColor:platform==="ios"?"#007aff":"#fff",toolbarDefaultBorder:platform==="ios"?"#a7a6ab":"#3F51B5",iosStatusbar:platform==="ios"?"dark-content":"light-content",get statusBarColor(){return(0,_color2.default)(this.toolbarDefaultBg).darken(0.2).hex();},get darkenHeader(){return(0,_color2.default)(this.tabBgColor).darken(0.03).hex();},iconFamily:"Ionicons",iconFontSize:platform==="ios"?30:28,iconHeaderSize:platform==="ios"?33:24,inputFontSize:17,inputBorderColor:"#D9D5DC",inputSuccessBorderColor:"#2b8339",inputErrorBorderColor:"#ed2f2f",inputHeightBase:50,get inputColor(){return this.textColor;},get inputColorPlaceholder(){return"#575757";},btnLineHeight:19,lineHeightH1:32,lineHeightH2:27,lineHeightH3:22,lineHeight:platform==="ios"?20:24,listItemSelected:platform==="ios"?"#007aff":"#3F51B5",listBg:"transparent",listBorderColor:"#c9c9c9",listDividerBg:"#f4f4f4",listBtnUnderlayColor:"#DDD",listItemPadding:platform==="ios"?10:12,listNoteColor:"#808080",listNoteSize:13,defaultProgressColor:"#E4202D",inverseProgressColor:"#1A191B",radioBtnSize:platform==="ios"?25:23,radioSelectedColorAndroid:"#3F51B5",radioBtnLineHeight:platform==="ios"?29:24,get radioColor(){return this.brandPrimary;},segmentBackgroundColor:platform==="ios"?"#F8F8F8":"#3F51B5",segmentActiveBackgroundColor:platform==="ios"?"#007aff":"#fff",segmentTextColor:platform==="ios"?"#007aff":"#fff",segmentActiveTextColor:platform==="ios"?"#fff":"#3F51B5",segmentBorderColor:platform==="ios"?"#007aff":"#fff",segmentBorderColorMain:platform==="ios"?"#a7a6ab":"#3F51B5",defaultSpinnerColor:"#45D56E",inverseSpinnerColor:"#1A191B",tabDefaultBg:platform==="ios"?"#F8F8F8":"#3F51B5",topTabBarTextColor:platform==="ios"?"#6b6b6b":"#b3c7f9",topTabBarActiveTextColor:platform==="ios"?"#007aff":"#fff",topTabBarBorderColor:platform==="ios"?"#a7a6ab":"#fff",topTabBarActiveBorderColor:platform==="ios"?"#007aff":"#fff",tabBgColor:"#F8F8F8",tabFontSize:15,textColor:"#000",inverseTextColor:"#fff",noteFontSize:14,get defaultTextColor(){return this.textColor;},titleFontfamily:platform==="ios"?"System":"Roboto_medium",titleFontSize:platform==="ios"?17:19,subTitleFontSize:platform==="ios"?11:14,subtitleColor:platform==="ios"?"#8e8e93":"#FFF",titleFontColor:platform==="ios"?"#000":"#FFF",borderRadiusBase:platform==="ios"?5:2,borderWidth:1/_reactNative.PixelRatio.getPixelSizeForLayoutSize(1),contentPadding:10,dropdownLinkColor:"#414142",inputLineHeight:24,deviceWidth:deviceWidth,deviceHeight:deviceHeight,isIphoneX:isIphoneX,inputGroupRoundedBorderRadius:30,Inset:{portrait:{topInset:24,leftInset:0,rightInset:0,bottomInset:34},landscape:{topInset:0,leftInset:44,rightInset:44,bottomInset:21}}}; //# sourceMappingURL=platform.js.map \ No newline at end of file diff --git a/dist/src/theme/variables/platform.js.map b/dist/src/theme/variables/platform.js.map index 2ec1ac1ee..4c03a1a30 100644 --- a/dist/src/theme/variables/platform.js.map +++ b/dist/src/theme/variables/platform.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../../src/theme/variables/platform.js"],"names":["deviceHeight","Dimensions","get","height","deviceWidth","width","platform","Platform","OS","platformStyle","undefined","isIphoneX","headerStyle","iconStyle","contentStyle","expandedIconStyle","accordionBorderColor","androidRipple","androidRippleColor","androidRippleColorDark","btnUppercaseAndroidText","badgeBg","badgeColor","badgePadding","btnFontFamily","btnDisabledBg","buttonPadding","btnPrimaryBg","brandPrimary","btnPrimaryColor","inverseTextColor","btnInfoBg","brandInfo","btnInfoColor","btnSuccessBg","brandSuccess","btnSuccessColor","btnDangerBg","brandDanger","btnDangerColor","btnWarningBg","brandWarning","btnWarningColor","btnTextSize","fontSizeBase","btnTextSizeLarge","btnTextSizeSmall","borderRadiusLarge","iconSizeLarge","iconFontSize","iconSizeSmall","cardDefaultBg","cardBorderColor","cardBorderRadius","cardItemPadding","CheckboxRadius","CheckboxBorderWidth","CheckboxPaddingLeft","CheckboxPaddingBottom","CheckboxIconSize","CheckboxIconMarginTop","CheckboxFontSize","checkboxBgColor","checkboxSize","checkboxTickColor","brandDark","brandLight","datePickerTextColor","datePickerBg","DefaultFontSize","fontFamily","fontSizeH1","fontSizeH2","fontSizeH3","footerHeight","footerDefaultBg","footerPaddingBottom","tabBarTextColor","tabBarTextSize","activeTab","sTabBarActiveTextColor","tabBarActiveTextColor","tabActiveBgColor","toolbarBtnColor","toolbarDefaultBg","toolbarHeight","toolbarSearchIconSize","toolbarInputColor","searchBarHeight","searchBarInputHeight","toolbarBtnTextColor","toolbarDefaultBorder","iosStatusbar","statusBarColor","darken","hex","darkenHeader","tabBgColor","iconFamily","iconHeaderSize","inputFontSize","inputBorderColor","inputSuccessBorderColor","inputErrorBorderColor","inputHeightBase","inputColor","textColor","inputColorPlaceholder","btnLineHeight","lineHeightH1","lineHeightH2","lineHeightH3","lineHeight","listItemSelected","listBg","listBorderColor","listDividerBg","listBtnUnderlayColor","listItemPadding","listNoteColor","listNoteSize","defaultProgressColor","inverseProgressColor","radioBtnSize","radioSelectedColorAndroid","radioBtnLineHeight","radioColor","segmentBackgroundColor","segmentActiveBackgroundColor","segmentTextColor","segmentActiveTextColor","segmentBorderColor","segmentBorderColorMain","defaultSpinnerColor","inverseSpinnerColor","tabDefaultBg","topTabBarTextColor","topTabBarActiveTextColor","topTabBarBorderColor","topTabBarActiveBorderColor","tabFontSize","noteFontSize","defaultTextColor","titleFontfamily","titleFontSize","subTitleFontSize","subtitleColor","titleFontColor","borderRadiusBase","borderWidth","PixelRatio","getPixelSizeForLayoutSize","contentPadding","dropdownLinkColor","inputLineHeight","inputGroupRoundedBorderRadius","Inset","portrait","topInset","leftInset","rightInset","bottomInset","landscape"],"mappings":"yDAAA,4B;;AAEA,yC;;AAEA,GAAMA,cAAeC,wBAAWC,GAAX,CAAe,QAAf,EAAyBC,MAA9C;AACA,GAAMC,aAAcH,wBAAWC,GAAX,CAA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2C,YAAa,EA/NA;;;AAkOblC,UAAW,MAlOE;AAmOb5E,iBAAkB,MAnOL;AAoOb+G,aAAc,EApOD;AAqOb,GAAIC,iBAAJ,EAAuB;AACrB,MAAO,MAAKpC,SAAZ;AACD,CAvOY;;;AA0ObqC,gBAAiBzI,WAAa,KAAb,CAAqB,QAArB,CAAgC,eA1OpC;AA2Ob0I,cAAe1I,WAAa,KAAb,CAAqB,EAArB,CAA0B,EA3O5B;AA4Ob2I,iBAAkB3I,WAAa,KAAb,CAAqB,EAArB,CAA0B,EA5O/B;AA6Ob4I,cAAe5I,WAAa,KAAb,CAAqB,SAArB,CAAiC,MA7OnC;AA8Ob6I,eAAgB7I,WAAa,KAAb,CAAqB,MAArB,CAA8B,MA9OjC;;;AAiPb8I,iBAAkB9I,WAAa,KAAb,CAAqB,CAArB,CAAyB,CAjP9B;AAkPb+I,YAAa,EAAIC,wBAAWC,yBAAX,CAAqC,CAArC,CAlPJ;AAmPbC,eAAgB,EAnPH;AAoPbC,kBAAmB,SApPN;AAqPbC,gBAAiB,EArPJ;AAsPbtJ,uBAtPa;AAuPbJ,yBAvPa;AAwPbW,mBAxPa;AAyPbgJ,8BAA+B,EAzPlB;;;AA4PbC,MAAO;AACLC,SAAU;AACRC,SAAU,EADF;AAERC,UAAW,CAFH;AAGRC,WAAY,CAHJ;AAIRC,YAAa,EAJL,CADL;;AAOLC,UAAW;AACTJ,SAAU,CADD;AAETC,UAAW,EAFF;AAGTC,WAAY,EAHH;AAITC,YAAa,EAJJ,CAPN,CA5PM,C","file":"platform.js","sourcesContent":["import color from \"color\";\n\nimport { Platform, Dimensions, PixelRatio } from \"react-native\";\n\nconst deviceHeight = Dimensions.get(\"window\").height;\nconst deviceWidth = Dimensions.get(\"window\").width;\nconst platform = Platform.OS;\nconst platformStyle = undefined;\nconst isIphoneX =\n platform === \"ios\" && (deviceHeight === 812 || deviceWidth === 812);\n\nexport default {\n platformStyle,\n platform,\n\n //Accordion\n headerStyle: \"#edebed\",\n iconStyle: \"#000\",\n contentStyle: \"#f5f4f5\",\n expandedIconStyle: \"#000\",\n accordionBorderColor: \"#d3d3d3\",\n\n // Android\n androidRipple: true,\n androidRippleColor: \"rgba(256, 256, 256, 0.3)\",\n androidRippleColorDark: \"rgba(0, 0, 0, 0.15)\",\n btnUppercaseAndroidText: true,\n\n // Badge\n badgeBg: \"#ED1727\",\n badgeColor: \"#fff\",\n badgePadding: platform === \"ios\" ? 3 : 0,\n\n // Button\n btnFontFamily: platform === \"ios\" ? \"System\" : \"Roboto_medium\",\n btnDisabledBg: \"#b5b5b5\",\n buttonPadding: 6,\n get btnPrimaryBg() {\n return this.brandPrimary;\n },\n get btnPrimaryColor() {\n return this.inverseTextColor;\n },\n get btnInfoBg() {\n return this.brandInfo;\n },\n get btnInfoColor() {\n return this.inverseTextColor;\n },\n get btnSuccessBg() {\n return this.brandSuccess;\n },\n get btnSuccessColor() {\n return this.inverseTextColor;\n },\n get btnDangerBg() {\n return this.brandDanger;\n },\n get btnDangerColor() {\n return this.inverseTextColor;\n },\n get btnWarningBg() {\n return this.brandWarning;\n },\n get btnWarningColor() {\n return this.inverseTextColor;\n },\n get btnTextSize() {\n return platform === \"ios\" ? this.fontSizeBase * 1.1 : this.fontSizeBase - 1;\n },\n get btnTextSizeLarge() {\n return this.fontSizeBase * 1.5;\n },\n get btnTextSizeSmall() {\n return this.fontSizeBase * 0.8;\n },\n get borderRadiusLarge() {\n return this.fontSizeBase * 3.8;\n },\n get iconSizeLarge() {\n return this.iconFontSize * 1.5;\n },\n get iconSizeSmall() {\n return this.iconFontSize * 0.6;\n },\n\n // Card\n cardDefaultBg: \"#fff\",\n cardBorderColor: \"#ccc\",\n cardBorderRadius: 2,\n cardItemPadding: platform === \"ios\" ? 10 : 12,\n\n // CheckBox\n CheckboxRadius: platform === \"ios\" ? 13 : 0,\n CheckboxBorderWidth: platform === \"ios\" ? 1 : 2,\n CheckboxPaddingLeft: platform === \"ios\" ? 4 : 2,\n CheckboxPaddingBottom: platform === \"ios\" ? 0 : 5,\n CheckboxIconSize: platform === \"ios\" ? 21 : 16,\n CheckboxIconMarginTop: platform === \"ios\" ? undefined : 1,\n CheckboxFontSize: platform === \"ios\" ? 23 / 0.9 : 17,\n checkboxBgColor: \"#039BE5\",\n checkboxSize: 20,\n checkboxTickColor: \"#fff\",\n\n // Color\n brandPrimary: platform === \"ios\" ? \"#007aff\" : \"#3F51B5\",\n brandInfo: \"#62B1F6\",\n brandSuccess: \"#5cb85c\",\n brandDanger: \"#d9534f\",\n brandWarning: \"#f0ad4e\",\n brandDark: \"#000\",\n brandLight: \"#f4f4f4\",\n\n //Date Picker\n datePickerTextColor: \"#000\",\n datePickerBg: \"transparent\",\n\n // Font\n DefaultFontSize: 16,\n fontFamily: platform === \"ios\" ? \"System\" : \"Roboto\",\n fontSizeBase: 15,\n get fontSizeH1() {\n return this.fontSizeBase * 1.8;\n },\n get fontSizeH2() {\n return this.fontSizeBase * 1.6;\n },\n get fontSizeH3() {\n return this.fontSizeBase * 1.4;\n },\n\n // Footer\n footerHeight: 55,\n footerDefaultBg: platform === \"ios\" ? \"#F8F8F8\" : \"#3F51B5\",\n footerPaddingBottom: 0,\n\n // FooterTab\n tabBarTextColor: platform === \"ios\" ? \"#6b6b6b\" : \"#b3c7f9\",\n tabBarTextSize: platform === \"ios\" ? 14 : 11,\n activeTab: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n sTabBarActiveTextColor: \"#007aff\",\n tabBarActiveTextColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n tabActiveBgColor: platform === \"ios\" ? \"#cde1f9\" : \"#3F51B5\",\n\n // Header\n toolbarBtnColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n toolbarDefaultBg: platform === \"ios\" ? \"#F8F8F8\" : \"#3F51B5\",\n toolbarHeight: platform === \"ios\" ? 64 : 56,\n toolbarSearchIconSize: platform === \"ios\" ? 20 : 23,\n toolbarInputColor: platform === \"ios\" ? \"#CECDD2\" : \"#fff\",\n searchBarHeight: platform === \"ios\" ? 30 : 40,\n searchBarInputHeight: platform === \"ios\" ? 30 : 50,\n toolbarBtnTextColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n toolbarDefaultBorder: platform === \"ios\" ? \"#a7a6ab\" : \"#3F51B5\",\n iosStatusbar: platform === \"ios\" ? \"dark-content\" : \"light-content\",\n get statusBarColor() {\n return color(this.toolbarDefaultBg)\n .darken(0.2)\n .hex();\n },\n get darkenHeader() {\n return color(this.tabBgColor)\n .darken(0.03)\n .hex();\n },\n\n // Icon\n iconFamily: \"Ionicons\",\n iconFontSize: platform === \"ios\" ? 30 : 28,\n iconHeaderSize: platform === \"ios\" ? 33 : 24,\n\n // InputGroup\n inputFontSize: 17,\n inputBorderColor: \"#D9D5DC\",\n inputSuccessBorderColor: \"#2b8339\",\n inputErrorBorderColor: \"#ed2f2f\",\n inputHeightBase: 50,\n get inputColor() {\n return this.textColor;\n },\n get inputColorPlaceholder() {\n return \"#575757\";\n },\n\n // Line Height\n btnLineHeight: 19,\n lineHeightH1: 32,\n lineHeightH2: 27,\n lineHeightH3: 22,\n lineHeight: platform === \"ios\" ? 20 : 24,\n listItemSelected: platform === \"ios\" ? \"#007aff\" : \"#3F51B5\",\n\n // List\n listBg: \"transparent\",\n listBorderColor: \"#c9c9c9\",\n listDividerBg: \"#f4f4f4\",\n listBtnUnderlayColor: \"#DDD\",\n listItemPadding: platform === \"ios\" ? 10 : 12,\n listNoteColor: \"#808080\",\n listNoteSize: 13,\n\n // Progress Bar\n defaultProgressColor: \"#E4202D\",\n inverseProgressColor: \"#1A191B\",\n\n // Radio Button\n radioBtnSize: platform === \"ios\" ? 25 : 23,\n radioSelectedColorAndroid: \"#3F51B5\",\n radioBtnLineHeight: platform === \"ios\" ? 29 : 24,\n get radioColor() {\n return this.brandPrimary;\n },\n\n // Segment\n segmentBackgroundColor: platform === \"ios\" ? \"#F8F8F8\" : \"#3F51B5\",\n segmentActiveBackgroundColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n segmentTextColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n segmentActiveTextColor: platform === \"ios\" ? \"#fff\" : \"#3F51B5\",\n segmentBorderColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n segmentBorderColorMain: platform === \"ios\" ? \"#a7a6ab\" : \"#3F51B5\",\n\n // Spinner\n defaultSpinnerColor: \"#45D56E\",\n inverseSpinnerColor: \"#1A191B\",\n\n // Tab\n tabDefaultBg: platform === \"ios\" ? \"#F8F8F8\" : \"#3F51B5\",\n topTabBarTextColor: platform === \"ios\" ? \"#6b6b6b\" : \"#b3c7f9\",\n topTabBarActiveTextColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n topTabBarBorderColor: platform === \"ios\" ? \"#a7a6ab\" : \"#fff\",\n topTabBarActiveBorderColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n\n // Tabs\n tabBgColor: \"#F8F8F8\",\n tabFontSize: 15,\n\n // Text\n textColor: \"#000\",\n inverseTextColor: \"#fff\",\n noteFontSize: 14,\n get defaultTextColor() {\n return this.textColor;\n },\n\n // Title\n titleFontfamily: platform === \"ios\" ? \"System\" : \"Roboto_medium\",\n titleFontSize: platform === \"ios\" ? 17 : 19,\n subTitleFontSize: platform === \"ios\" ? 11 : 14,\n subtitleColor: platform === \"ios\" ? \"#8e8e93\" : \"#FFF\",\n titleFontColor: platform === \"ios\" ? \"#000\" : \"#FFF\",\n\n // Other\n borderRadiusBase: platform === \"ios\" ? 5 : 2,\n borderWidth: 1 / PixelRatio.getPixelSizeForLayoutSize(1),\n contentPadding: 10,\n dropdownLinkColor: \"#414142\",\n inputLineHeight: 24,\n deviceWidth,\n deviceHeight,\n isIphoneX,\n inputGroupRoundedBorderRadius: 30,\n\n //iPhoneX SafeArea\n Inset: {\n portrait: {\n topInset: 24,\n leftInset: 0,\n rightInset: 0,\n bottomInset: 34\n },\n landscape: {\n topInset: 0,\n leftInset: 44,\n rightInset: 44,\n bottomInset: 21\n }\n }\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../../src/theme/variables/platform.js"],"names":["deviceHeight","Dimensions","get","height","deviceWidth","width","platform","Platform","OS","platformStyle","undefined","isIphoneX","headerStyle","iconStyle","contentStyle","expandedIconStyle","accordionBorderColor","androidRipple","androidRippleColor","androidRippleColorDark","btnUppercaseAndroidText","badgeBg","badgeColor","badgePadding","btnFontFamily","btnDisabledBg","buttonPadding","btnPrimaryBg","brandPrimary","btnPrimaryColor","inverseTextColor","btnInfoBg","brandInfo","btnInfoColor","btnSuccessBg","brandSuccess","btnSuccessColor","btnDangerBg","brandDanger","btnDangerColor","btnWarningBg","brandWarning","btnWarningColor","btnTextSize","fontSizeBase","btnTextSizeLarge","btnTextSizeSmall","borderRadiusLarge","iconSizeLarge","iconFontSize","iconSizeSmall","cardDefaultBg","cardBorderColor","cardBorderRadius","cardItemPadding","CheckboxRadius","CheckboxBorderWidth","CheckboxPaddingLeft","CheckboxPaddingBottom","CheckboxIconSize","CheckboxIconMarginTop","CheckboxFontSize","checkboxBgColor","checkboxSize","checkboxTickColor","brandDark","brandLight","datePickerTextColor","datePickerBg","DefaultFontSize","fontFamily","fontSizeH1","fontSizeH2","fontSizeH3","footerHeight","footerDefaultBg","footerPaddingBottom","tabBarTextColor","tabBarTextSize","activeTab","sTabBarActiveTextColor","tabBarActiveTextColor","tabActiveBgColor","toolbarBtnColor","toolbarDefaultBg","toolbarHeight","toolbarSearchIconSize","toolbarInputColor","searchBarHeight","searchBarInputHeight","toolbarBtnTextColor","toolbarDefaultBorder","iosStatusbar","statusBarColor","darken","hex","darkenHeader","tabBgColor","iconFamily","iconHeaderSize","inputFontSize","inputBorderColor","inputSuccessBorderColor","inputErrorBorderColor","inputHeightBase","inputColor","textColor","inputColorPlaceholder","btnLineHeight","lineHeightH1","lineHeightH2","lineHeightH3","lineHeight","listItemSelected","listBg","listBorderColor","listDividerBg","listBtnUnderlayColor","listItemPadding","listNoteColor","listNoteSize","defaultProgressColor","inverseProgressColor","radioBtnSize","radioSelectedColorAndroid","radioBtnLineHeight","radioColor","segmentBackgroundColor","segmentActiveBackgroundColor","segmentTextColor","segmentActiveTextColor","segmentBorderColor","segmentBorderColorMain","defaultSpinnerColor","inverseSpinnerColor","tabDefaultBg","topTabBarTextColor","topTabBarActiveTextColor","topTabBarBorderColor","topTabBarActiveBorderColor","tabFontSize","noteFontSize","defaultTextColor","titleFontfamily","titleFontSize","subTitleFontSize","subtitleColor","titleFontColor","borderRadiusBase","borderWidth","PixelRatio","getPixelSizeForLayoutSize","contentPadding","dropdownLinkColor","inputLineHeight","inputGroupRoundedBorderRadius","Inset","portrait","topInset","leftInset","rightInset","bottomInset","landscape"],"mappings":"yDAAA,4B,2CAEA,yC,mFAEA,GAAMA,cAAeC,wBAAWC,GAAX,CAAe,QAAf,EAAyBC,MAA9C,CACA,GAAMC,aAAcH,wBAAWC,GAAX,CAAe,QAAf,EAAyBG,KAA7C,CACA,GAAMC,UAAWC,sBAASC,EAA1B,CACA,GAAMC,eAAgBC,SAAtB,CACA,GAAMC,WACJL,WAAa,KAAb,GAAuBN,eAAiB,GAAjB,EAAwBI,cAAgB,GAA/D,CADF,C,gBAGe,CACbK,2BADa,CAEbH,iBAFa,CAKbM,YAAa,SALA,CAMbC,UAAW,MANE,CAObC,aAAc,SAPD,CAQbC,kBAAmB,MARN,CASbC,qBAAsB,SATT,CAYbC,cAAe,IAZF,CAabC,mBAAoB,0BAbP,CAcbC,uBAAwB,qBAdX,CAebC,wBAAyB,IAfZ,CAkBbC,QAAS,SAlBI,CAmBbC,WAAY,MAnBC,CAoBbC,aAAcjB,WAAa,KAAb,CAAqB,CAArB,CAAyB,CApB1B,CAuBbkB,cAAelB,WAAa,KAAb,CAAqB,QAArB,CAAgC,eAvBlC,CAwBbmB,cAAe,SAxBF,CAyBbC,cAAe,CAzBF,CA0Bb,GAAIC,aAAJ,EAAmB,CACjB,MAAO,MAAKC,YAAZ,CACD,CA5BY,CA6Bb,GAAIC,gBAAJ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AzPlB,CA4PbC,MAAO,CACLC,SAAU,CACRC,SAAU,EADF,CAERC,UAAW,CAFH,CAGRC,WAAY,CAHJ,CAIRC,YAAa,EAJL,CADL,CAOLC,UAAW,CACTJ,SAAU,CADD,CAETC,UAAW,EAFF,CAGTC,WAAY,EAHH,CAITC,YAAa,EAJJ,CAPN,CA5PM,C","file":"platform.js","sourcesContent":["import color from \"color\";\n\nimport { Platform, Dimensions, PixelRatio } from \"react-native\";\n\nconst deviceHeight = Dimensions.get(\"window\").height;\nconst deviceWidth = Dimensions.get(\"window\").width;\nconst platform = Platform.OS;\nconst platformStyle = undefined;\nconst isIphoneX =\n platform === \"ios\" && (deviceHeight === 812 || deviceWidth === 812);\n\nexport default {\n platformStyle,\n platform,\n\n //Accordion\n headerStyle: \"#edebed\",\n iconStyle: \"#000\",\n contentStyle: \"#f5f4f5\",\n expandedIconStyle: \"#000\",\n accordionBorderColor: \"#d3d3d3\",\n\n // Android\n androidRipple: true,\n androidRippleColor: \"rgba(256, 256, 256, 0.3)\",\n androidRippleColorDark: \"rgba(0, 0, 0, 0.15)\",\n btnUppercaseAndroidText: true,\n\n // Badge\n badgeBg: \"#ED1727\",\n badgeColor: \"#fff\",\n badgePadding: platform === \"ios\" ? 3 : 0,\n\n // Button\n btnFontFamily: platform === \"ios\" ? \"System\" : \"Roboto_medium\",\n btnDisabledBg: \"#b5b5b5\",\n buttonPadding: 6,\n get btnPrimaryBg() {\n return this.brandPrimary;\n },\n get btnPrimaryColor() {\n return this.inverseTextColor;\n },\n get btnInfoBg() {\n return this.brandInfo;\n },\n get btnInfoColor() {\n return this.inverseTextColor;\n },\n get btnSuccessBg() {\n return this.brandSuccess;\n },\n get btnSuccessColor() {\n return this.inverseTextColor;\n },\n get btnDangerBg() {\n return this.brandDanger;\n },\n get btnDangerColor() {\n return this.inverseTextColor;\n },\n get btnWarningBg() {\n return this.brandWarning;\n },\n get btnWarningColor() {\n return this.inverseTextColor;\n },\n get btnTextSize() {\n return platform === \"ios\" ? this.fontSizeBase * 1.1 : this.fontSizeBase - 1;\n },\n get btnTextSizeLarge() {\n return this.fontSizeBase * 1.5;\n },\n get btnTextSizeSmall() {\n return this.fontSizeBase * 0.8;\n },\n get borderRadiusLarge() {\n return this.fontSizeBase * 3.8;\n },\n get iconSizeLarge() {\n return this.iconFontSize * 1.5;\n },\n get iconSizeSmall() {\n return this.iconFontSize * 0.6;\n },\n\n // Card\n cardDefaultBg: \"#fff\",\n cardBorderColor: \"#ccc\",\n cardBorderRadius: 2,\n cardItemPadding: platform === \"ios\" ? 10 : 12,\n\n // CheckBox\n CheckboxRadius: platform === \"ios\" ? 13 : 0,\n CheckboxBorderWidth: platform === \"ios\" ? 1 : 2,\n CheckboxPaddingLeft: platform === \"ios\" ? 4 : 2,\n CheckboxPaddingBottom: platform === \"ios\" ? 0 : 5,\n CheckboxIconSize: platform === \"ios\" ? 21 : 16,\n CheckboxIconMarginTop: platform === \"ios\" ? undefined : 1,\n CheckboxFontSize: platform === \"ios\" ? 23 / 0.9 : 17,\n checkboxBgColor: \"#039BE5\",\n checkboxSize: 20,\n checkboxTickColor: \"#fff\",\n\n // Color\n brandPrimary: platform === \"ios\" ? \"#007aff\" : \"#3F51B5\",\n brandInfo: \"#62B1F6\",\n brandSuccess: \"#5cb85c\",\n brandDanger: \"#d9534f\",\n brandWarning: \"#f0ad4e\",\n brandDark: \"#000\",\n brandLight: \"#f4f4f4\",\n\n //Date Picker\n datePickerTextColor: \"#000\",\n datePickerBg: \"transparent\",\n\n // Font\n DefaultFontSize: 16,\n fontFamily: platform === \"ios\" ? \"System\" : \"Roboto\",\n fontSizeBase: 15,\n get fontSizeH1() {\n return this.fontSizeBase * 1.8;\n },\n get fontSizeH2() {\n return this.fontSizeBase * 1.6;\n },\n get fontSizeH3() {\n return this.fontSizeBase * 1.4;\n },\n\n // Footer\n footerHeight: 55,\n footerDefaultBg: platform === \"ios\" ? \"#F8F8F8\" : \"#3F51B5\",\n footerPaddingBottom: 0,\n\n // FooterTab\n tabBarTextColor: platform === \"ios\" ? \"#6b6b6b\" : \"#b3c7f9\",\n tabBarTextSize: platform === \"ios\" ? 14 : 11,\n activeTab: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n sTabBarActiveTextColor: \"#007aff\",\n tabBarActiveTextColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n tabActiveBgColor: platform === \"ios\" ? \"#cde1f9\" : \"#3F51B5\",\n\n // Header\n toolbarBtnColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n toolbarDefaultBg: platform === \"ios\" ? \"#F8F8F8\" : \"#3F51B5\",\n toolbarHeight: platform === \"ios\" ? 64 : 56,\n toolbarSearchIconSize: platform === \"ios\" ? 20 : 23,\n toolbarInputColor: platform === \"ios\" ? \"#CECDD2\" : \"#fff\",\n searchBarHeight: platform === \"ios\" ? 30 : 40,\n searchBarInputHeight: platform === \"ios\" ? 30 : 50,\n toolbarBtnTextColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n toolbarDefaultBorder: platform === \"ios\" ? \"#a7a6ab\" : \"#3F51B5\",\n iosStatusbar: platform === \"ios\" ? \"dark-content\" : \"light-content\",\n get statusBarColor() {\n return color(this.toolbarDefaultBg)\n .darken(0.2)\n .hex();\n },\n get darkenHeader() {\n return color(this.tabBgColor)\n .darken(0.03)\n .hex();\n },\n\n // Icon\n iconFamily: \"Ionicons\",\n iconFontSize: platform === \"ios\" ? 30 : 28,\n iconHeaderSize: platform === \"ios\" ? 33 : 24,\n\n // InputGroup\n inputFontSize: 17,\n inputBorderColor: \"#D9D5DC\",\n inputSuccessBorderColor: \"#2b8339\",\n inputErrorBorderColor: \"#ed2f2f\",\n inputHeightBase: 50,\n get inputColor() {\n return this.textColor;\n },\n get inputColorPlaceholder() {\n return \"#575757\";\n },\n\n // Line Height\n btnLineHeight: 19,\n lineHeightH1: 32,\n lineHeightH2: 27,\n lineHeightH3: 22,\n lineHeight: platform === \"ios\" ? 20 : 24,\n listItemSelected: platform === \"ios\" ? \"#007aff\" : \"#3F51B5\",\n\n // List\n listBg: \"transparent\",\n listBorderColor: \"#c9c9c9\",\n listDividerBg: \"#f4f4f4\",\n listBtnUnderlayColor: \"#DDD\",\n listItemPadding: platform === \"ios\" ? 10 : 12,\n listNoteColor: \"#808080\",\n listNoteSize: 13,\n\n // Progress Bar\n defaultProgressColor: \"#E4202D\",\n inverseProgressColor: \"#1A191B\",\n\n // Radio Button\n radioBtnSize: platform === \"ios\" ? 25 : 23,\n radioSelectedColorAndroid: \"#3F51B5\",\n radioBtnLineHeight: platform === \"ios\" ? 29 : 24,\n get radioColor() {\n return this.brandPrimary;\n },\n\n // Segment\n segmentBackgroundColor: platform === \"ios\" ? \"#F8F8F8\" : \"#3F51B5\",\n segmentActiveBackgroundColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n segmentTextColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n segmentActiveTextColor: platform === \"ios\" ? \"#fff\" : \"#3F51B5\",\n segmentBorderColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n segmentBorderColorMain: platform === \"ios\" ? \"#a7a6ab\" : \"#3F51B5\",\n\n // Spinner\n defaultSpinnerColor: \"#45D56E\",\n inverseSpinnerColor: \"#1A191B\",\n\n // Tab\n tabDefaultBg: platform === \"ios\" ? \"#F8F8F8\" : \"#3F51B5\",\n topTabBarTextColor: platform === \"ios\" ? \"#6b6b6b\" : \"#b3c7f9\",\n topTabBarActiveTextColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n topTabBarBorderColor: platform === \"ios\" ? \"#a7a6ab\" : \"#fff\",\n topTabBarActiveBorderColor: platform === \"ios\" ? \"#007aff\" : \"#fff\",\n\n // Tabs\n tabBgColor: \"#F8F8F8\",\n tabFontSize: 15,\n\n // Text\n textColor: \"#000\",\n inverseTextColor: \"#fff\",\n noteFontSize: 14,\n get defaultTextColor() {\n return this.textColor;\n },\n\n // Title\n titleFontfamily: platform === \"ios\" ? \"System\" : \"Roboto_medium\",\n titleFontSize: platform === \"ios\" ? 17 : 19,\n subTitleFontSize: platform === \"ios\" ? 11 : 14,\n subtitleColor: platform === \"ios\" ? \"#8e8e93\" : \"#FFF\",\n titleFontColor: platform === \"ios\" ? \"#000\" : \"#FFF\",\n\n // Other\n borderRadiusBase: platform === \"ios\" ? 5 : 2,\n borderWidth: 1 / PixelRatio.getPixelSizeForLayoutSize(1),\n contentPadding: 10,\n dropdownLinkColor: \"#414142\",\n inputLineHeight: 24,\n deviceWidth,\n deviceHeight,\n isIphoneX,\n inputGroupRoundedBorderRadius: 30,\n\n //iPhoneX SafeArea\n Inset: {\n portrait: {\n topInset: 24,\n leftInset: 0,\n rightInset: 0,\n bottomInset: 34\n },\n landscape: {\n topInset: 0,\n leftInset: 44,\n rightInset: 44,\n bottomInset: 21\n }\n }\n};\n"]} \ No newline at end of file diff --git a/dist/src/utils/computeProps.js b/dist/src/utils/computeProps.js index 5f4b813ee..4a07a6c12 100644 --- a/dist/src/utils/computeProps.js +++ b/dist/src/utils/computeProps.js @@ -1,45 +1,2 @@ -"use_strict"; -var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash); -var _ReactNativePropRegistry=require("react-native/Libraries/Renderer/shims/ReactNativePropRegistry");var _ReactNativePropRegistry2=_interopRequireDefault(_ReactNativePropRegistry);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};} - - -module.exports=function(incomingProps,defaultProps){ - -var computedProps={}; - -incomingProps=_lodash2.default.clone(incomingProps); -delete incomingProps.children; - -var incomingPropsStyle=incomingProps.style; -delete incomingProps.style; - - -if(incomingProps){ -_lodash2.default.assign(computedProps,defaultProps,incomingProps); -}else{ -computedProps=defaultProps; -} - -if(incomingPropsStyle){ -var computedPropsStyle={}; -computedProps.style={}; -if(Array.isArray(incomingPropsStyle)){ -_lodash2.default.forEach(incomingPropsStyle,function(style){ -if(typeof style==="number"){ -_lodash2.default.merge(computedPropsStyle,_ReactNativePropRegistry2.default.getByID(style)); -}else{ -_lodash2.default.merge(computedPropsStyle,style); -} -}); -}else if(typeof incomingPropsStyle==="number"){ -computedPropsStyle=_ReactNativePropRegistry2.default.getByID(incomingPropsStyle); -}else{ -computedPropsStyle=incomingPropsStyle; -} - -_lodash2.default.merge(computedProps.style,defaultProps.style,computedPropsStyle); -} - -return computedProps; -}; +"use_strict";var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);var _reactNative=require("react-native");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}module.exports=function(incomingProps,defaultProps){var computedProps={};incomingProps=_lodash2.default.clone(incomingProps);delete incomingProps.children;var incomingPropsStyle=incomingProps.style;delete incomingProps.style;if(incomingProps){_lodash2.default.assign(computedProps,defaultProps,incomingProps);}else{computedProps=defaultProps;}if(incomingPropsStyle){var computedPropsStyle={};computedProps.style={};if(Array.isArray(incomingPropsStyle)){_lodash2.default.forEach(incomingPropsStyle,function(style){if(typeof style==="number"){_lodash2.default.merge(computedPropsStyle,_reactNative.StyleSheet.flatten(style));}else{_lodash2.default.merge(computedPropsStyle,style);}});}else if(typeof incomingPropsStyle==="number"){computedPropsStyle=_reactNative.StyleSheet.flatten(incomingPropsStyle);}else{computedPropsStyle=incomingPropsStyle;}_lodash2.default.merge(computedProps.style,defaultProps.style,computedPropsStyle);}return computedProps;}; //# sourceMappingURL=computeProps.js.map \ No newline at end of file diff --git a/dist/src/utils/computeProps.js.map b/dist/src/utils/computeProps.js.map index 2f0b45b00..8318b9a3c 100644 --- a/dist/src/utils/computeProps.js.map +++ b/dist/src/utils/computeProps.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../src/utils/computeProps.js"],"names":["module","exports","incomingProps","defaultProps","computedProps","_","clone","children","incomingPropsStyle","style","assign","computedPropsStyle","Array","isArray","forEach","merge","ReactNativePropRegistry","getByID"],"mappings":"AAAA;AACA,8B;AACA,sG;;;AAGAA,OAAOC,OAAP,CAAiB,SAASC,aAAT,CAAwBC,YAAxB,CAAsC;;AAErD,GAAIC,eAAgB,EAApB;;AAEAF,cAAgBG,iBAAEC,KAAF,CAAQJ,aAAR,CAAhB;AACA,MAAOA,eAAcK,QAArB;;AAEA,GAAMC,oBAAqBN,cAAcO,KAAzC;AACA,MAAOP,eAAcO,KAArB;;;AAGA,GAAIP,aAAJ,CAAmB;AACjBG,iBAAEK,MAAF,CAASN,aAAT,CAAwBD,YAAxB,CAAsCD,aAAtC;AACD,CAFD,IAEO;AACLE,cAAgBD,YAAhB;AACD;;AAED,GAAIK,kBAAJ,CAAwB;AACtB,GAAIG,oBAAqB,EAAzB;AACAP,cAAcK,KAAd,CAAsB,EAAtB;AACA,GAAIG,MAAMC,OAAN,CAAcL,kBAAd,CAAJ,CAAuC;AACrCH,iBAAES,OAAF,CAAUN,kBAAV,CAA8B,eAAS;AACrC,GAAI,MAAOC,MAAP,GAAiB,QAArB,CAA+B;AAC7BJ,iBAAEU,KAAF,CAAQJ,kBAAR,CAA4BK,kCAAwBC,OAAxB,CAAgCR,KAAhC,CAA5B;AACD,CAFD,IAEO;AACLJ,iBAAEU,KAAF,CAAQJ,kBAAR,CAA4BF,KAA5B;AACD;AACF,CAND;AAOD,CARD,IAQO,IAAI,MAAOD,mBAAP,GAA8B,QAAlC,CAA4C;AACjDG,mBAAqBK,kCAAwBC,OAAxB,CAAgCT,kBAAhC,CAArB;AACD,CAFM,IAEA;AACLG,mBAAqBH,kBAArB;AACD;;AAEDH,iBAAEU,KAAF,CAAQX,cAAcK,KAAtB,CAA6BN,aAAaM,KAA1C,CAAiDE,kBAAjD;AACD;;AAED,MAAOP,cAAP;AACD,CAtCD","file":"computeProps.js","sourcesContent":["\"use_strict\";\nimport _ from \"lodash\";\nimport ReactNativePropRegistry from \"react-native/Libraries/Renderer/shims/ReactNativePropRegistry\";\n// For compatibility with RN 0.25\n// import ReactNativePropRegistry from \"react-native/Libraries/ReactNative/ReactNativePropRegistry\";\nmodule.exports = function(incomingProps, defaultProps) {\n // External props has a higher precedence\n let computedProps = {};\n\n incomingProps = _.clone(incomingProps);\n delete incomingProps.children;\n\n const incomingPropsStyle = incomingProps.style;\n delete incomingProps.style;\n\n // console.log(defaultProps, incomingProps);\n if (incomingProps) {\n _.assign(computedProps, defaultProps, incomingProps);\n } else {\n computedProps = defaultProps;\n }\n // Pass the merged Style Object instead\n if (incomingPropsStyle) {\n let computedPropsStyle = {};\n computedProps.style = {};\n if (Array.isArray(incomingPropsStyle)) {\n _.forEach(incomingPropsStyle, style => {\n if (typeof style === \"number\") {\n _.merge(computedPropsStyle, ReactNativePropRegistry.getByID(style));\n } else {\n _.merge(computedPropsStyle, style);\n }\n });\n } else if (typeof incomingPropsStyle === \"number\") {\n computedPropsStyle = ReactNativePropRegistry.getByID(incomingPropsStyle);\n } else {\n computedPropsStyle = incomingPropsStyle;\n }\n\n _.merge(computedProps.style, defaultProps.style, computedPropsStyle);\n }\n // console.log(\"computedProps \", computedProps);\n return computedProps;\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/utils/computeProps.js"],"names":["module","exports","incomingProps","defaultProps","computedProps","_","clone","children","incomingPropsStyle","style","assign","computedPropsStyle","Array","isArray","forEach","merge","StyleSheet","flatten"],"mappings":"AAAA,aACA,8B,6CACA,yC,mFAEAA,OAAOC,OAAP,CAAiB,SAASC,aAAT,CAAwBC,YAAxB,CAAsC,CAErD,GAAIC,eAAgB,EAApB,CAEAF,cAAgBG,iBAAEC,KAAF,CAAQJ,aAAR,CAAhB,CACA,MAAOA,eAAcK,QAArB,CAEA,GAAMC,oBAAqBN,cAAcO,KAAzC,CACA,MAAOP,eAAcO,KAArB,CAGA,GAAIP,aAAJ,CAAmB,CACjBG,iBAAEK,MAAF,CAASN,aAAT,CAAwBD,YAAxB,CAAsCD,aAAtC,EACD,CAFD,IAEO,CACLE,cAAgBD,YAAhB,CACD,CAED,GAAIK,kBAAJ,CAAwB,CACtB,GAAIG,oBAAqB,EAAzB,CACAP,cAAcK,KAAd,CAAsB,EAAtB,CACA,GAAIG,MAAMC,OAAN,CAAcL,kBAAd,CAAJ,CAAuC,CACrCH,iBAAES,OAAF,CAAUN,kBAAV,CAA8B,eAAS,CACrC,GAAI,MAAOC,MAAP,GAAiB,QAArB,CAA+B,CAC7BJ,iBAAEU,KAAF,CAAQJ,kBAAR,CAA4BK,wBAAWC,OAAX,CAAmBR,KAAnB,CAA5B,EACD,CAFD,IAEO,CACLJ,iBAAEU,KAAF,CAAQJ,kBAAR,CAA4BF,KAA5B,EACD,CACF,CAND,EAOD,CARD,IAQO,IAAI,MAAOD,mBAAP,GAA8B,QAAlC,CAA4C,CACjDG,mBAAqBK,wBAAWC,OAAX,CAAmBT,kBAAnB,CAArB,CACD,CAFM,IAEA,CACLG,mBAAqBH,kBAArB,CACD,CAEDH,iBAAEU,KAAF,CAAQX,cAAcK,KAAtB,CAA6BN,aAAaM,KAA1C,CAAiDE,kBAAjD,EACD,CAED,MAAOP,cAAP,CACD,CAtCD","file":"computeProps.js","sourcesContent":["\"use_strict\";\nimport _ from \"lodash\";\nimport { StyleSheet } from \"react-native\";\n\nmodule.exports = function(incomingProps, defaultProps) {\n // External props has a higher precedence\n let computedProps = {};\n\n incomingProps = _.clone(incomingProps);\n delete incomingProps.children;\n\n const incomingPropsStyle = incomingProps.style;\n delete incomingProps.style;\n\n // console.log(defaultProps, incomingProps);\n if (incomingProps) {\n _.assign(computedProps, defaultProps, incomingProps);\n } else {\n computedProps = defaultProps;\n }\n // Pass the merged Style Object instead\n if (incomingPropsStyle) {\n let computedPropsStyle = {};\n computedProps.style = {};\n if (Array.isArray(incomingPropsStyle)) {\n _.forEach(incomingPropsStyle, style => {\n if (typeof style === \"number\") {\n _.merge(computedPropsStyle, StyleSheet.flatten(style));\n } else {\n _.merge(computedPropsStyle, style);\n }\n });\n } else if (typeof incomingPropsStyle === \"number\") {\n computedPropsStyle = StyleSheet.flatten(incomingPropsStyle);\n } else {\n computedPropsStyle = incomingPropsStyle;\n }\n\n _.merge(computedProps.style, defaultProps.style, computedPropsStyle);\n }\n // console.log(\"computedProps \", computedProps);\n return computedProps;\n};\n"]} \ No newline at end of file diff --git a/dist/src/utils/index.js b/dist/src/utils/index.js index 23985fa79..475737e6a 100644 --- a/dist/src/utils/index.js +++ b/dist/src/utils/index.js @@ -1,5 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.ViewPropTypes=exports.InteractionManager=undefined;var _reactNative=require("react-native"); -var _interactionManager=require("./interactionManager");var _interactionManager2=_interopRequireDefault(_interactionManager);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports. - -InteractionManager=_interactionManager2.default;exports.ViewPropTypes=_reactNative.ViewPropTypes; +Object.defineProperty(exports,"__esModule",{value:true});exports.ViewPropTypes=exports.InteractionManager=undefined;var _reactNative=require("react-native");var _interactionManager=require("./interactionManager");var _interactionManager2=_interopRequireDefault(_interactionManager);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.InteractionManager=_interactionManager2.default;exports.ViewPropTypes=_reactNative.ViewPropTypes; //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/src/utils/index.js.map b/dist/src/utils/index.js.map index 3e30c4367..dd1734e80 100644 --- a/dist/src/utils/index.js.map +++ b/dist/src/utils/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../src/utils/index.js"],"names":["InteractionManager","ViewPropTypes"],"mappings":"oHAAA;AACA,wD;;AAESA,kB,CAAAA,4B,SAAoBC,a,CAAAA,0B","file":"index.js","sourcesContent":["import { ViewPropTypes } from \"react-native\";\nimport InteractionManager from \"./interactionManager\";\n\nexport { InteractionManager, ViewPropTypes };\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/utils/index.js"],"names":["InteractionManager","ViewPropTypes"],"mappings":"oHAAA,yCACA,wD,gKAESA,kB,CAAAA,4B,SAAoBC,a,CAAAA,0B","file":"index.js","sourcesContent":["import { ViewPropTypes } from \"react-native\";\nimport InteractionManager from \"./interactionManager\";\n\nexport { InteractionManager, ViewPropTypes };\n"]} \ No newline at end of file diff --git a/dist/src/utils/interactionManager.js b/dist/src/utils/interactionManager.js index f0ac302ae..e8e7049c9 100644 --- a/dist/src/utils/interactionManager.js +++ b/dist/src/utils/interactionManager.js @@ -1,18 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i {\n // ensure f get called, timeout at 10ms\n // @gre workaround https://github.com/facebook/react-native/issues/8624\n let called = false;\n const timeout = setTimeout(() => {\n called = true;\n f();\n }, 10);\n InteractionManager.runAfterInteractions(() => {\n if (called) return;\n clearTimeout(timeout);\n f();\n });\n }\n};\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/utils/interactionManager.js"],"names":["InteractionManager","runAfterInteractions","called","timeout","setTimeout","f","clearTimeout"],"mappings":"yRAAA,yC,4BAEKA,+B,EACHC,qBAAsB,gCAAK,CAGzB,GAAIC,QAAS,KAAb,CACA,GAAMC,SAAUC,WAAW,UAAM,CAC/BF,OAAS,IAAT,CACAG,IACD,CAHe,CAGb,EAHa,CAAhB,CAIAL,gCAAmBC,oBAAnB,CAAwC,UAAM,CAC5C,GAAIC,MAAJ,CAAY,OACZI,aAAaH,OAAb,EACAE,IACD,CAJD,EAKD,C","file":"interactionManager.js","sourcesContent":["import { InteractionManager } from \"react-native\";\nexport default {\n ...InteractionManager,\n runAfterInteractions: f => {\n // ensure f get called, timeout at 10ms\n // @gre workaround https://github.com/facebook/react-native/issues/8624\n let called = false;\n const timeout = setTimeout(() => {\n called = true;\n f();\n }, 10);\n InteractionManager.runAfterInteractions(() => {\n if (called) return;\n clearTimeout(timeout);\n f();\n });\n }\n};\n"]} \ No newline at end of file diff --git a/dist/src/utils/mapPropsToStyleNames.js b/dist/src/utils/mapPropsToStyleNames.js index bc66e0d4b..811e47842 100644 --- a/dist/src/utils/mapPropsToStyleNames.js +++ b/dist/src/utils/mapPropsToStyleNames.js @@ -1,17 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};} - -var mapPropsToStyleNames=function mapPropsToStyleNames(styleNames,props){ -var keys=_lodash2.default.keys(props); -var values=_lodash2.default.values(props); - -_lodash2.default.forEach(keys,function(key,index){ -if(values[index]){ -styleNames.push(key); -} -}); - -return styleNames; -};exports.default= - -mapPropsToStyleNames; +Object.defineProperty(exports,"__esModule",{value:true});var _lodash=require("lodash");var _lodash2=_interopRequireDefault(_lodash);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var mapPropsToStyleNames=function mapPropsToStyleNames(styleNames,props){var keys=_lodash2.default.keys(props);var values=_lodash2.default.values(props);_lodash2.default.forEach(keys,function(key,index){if(values[index]){styleNames.push(key);}});return styleNames;};exports.default=mapPropsToStyleNames; //# sourceMappingURL=mapPropsToStyleNames.js.map \ No newline at end of file diff --git a/dist/src/utils/mapPropsToStyleNames.js.map b/dist/src/utils/mapPropsToStyleNames.js.map index 05e425b83..3c5133243 100644 --- a/dist/src/utils/mapPropsToStyleNames.js.map +++ b/dist/src/utils/mapPropsToStyleNames.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../src/utils/mapPropsToStyleNames.js"],"names":["mapPropsToStyleNames","styleNames","props","keys","_","values","forEach","key","index","push"],"mappings":"yDAAA,8B;;AAEA,GAAMA,sBAAuB,QAAvBA,qBAAuB,CAACC,UAAD,CAAaC,KAAb,CAAuB;AAClD,GAAMC,MAAOC,iBAAED,IAAF,CAAOD,KAAP,CAAb;AACA,GAAMG,QAASD,iBAAEC,MAAF,CAASH,KAAT,CAAf;;AAEAE,iBAAEE,OAAF,CAAUH,IAAV,CAAgB,SAACI,GAAD,CAAMC,KAAN,CAAgB;AAC9B,GAAIH,OAAOG,KAAP,CAAJ,CAAmB;AACjBP,WAAWQ,IAAX,CAAgBF,GAAhB;AACD;AACF,CAJD;;AAMA,MAAON,WAAP;AACD,CAXD,C;;AAaeD,oB","file":"mapPropsToStyleNames.js","sourcesContent":["import _ from \"lodash\";\n\nconst mapPropsToStyleNames = (styleNames, props) => {\n const keys = _.keys(props);\n const values = _.values(props);\n\n _.forEach(keys, (key, index) => {\n if (values[index]) {\n styleNames.push(key);\n }\n });\n\n return styleNames;\n};\n\nexport default mapPropsToStyleNames;\n"]} \ No newline at end of file +{"version":3,"sources":["../../../src/utils/mapPropsToStyleNames.js"],"names":["mapPropsToStyleNames","styleNames","props","keys","_","values","forEach","key","index","push"],"mappings":"yDAAA,8B,gIAEA,GAAMA,sBAAuB,QAAvBA,qBAAuB,CAACC,UAAD,CAAaC,KAAb,CAAuB,CAClD,GAAMC,MAAOC,iBAAED,IAAF,CAAOD,KAAP,CAAb,CACA,GAAMG,QAASD,iBAAEC,MAAF,CAASH,KAAT,CAAf,CAEAE,iBAAEE,OAAF,CAAUH,IAAV,CAAgB,SAACI,GAAD,CAAMC,KAAN,CAAgB,CAC9B,GAAIH,OAAOG,KAAP,CAAJ,CAAmB,CACjBP,WAAWQ,IAAX,CAAgBF,GAAhB,EACD,CACF,CAJD,EAMA,MAAON,WAAP,CACD,CAXD,C,gBAaeD,oB","file":"mapPropsToStyleNames.js","sourcesContent":["import _ from \"lodash\";\n\nconst mapPropsToStyleNames = (styleNames, props) => {\n const keys = _.keys(props);\n const values = _.values(props);\n\n _.forEach(keys, (key, index) => {\n if (values[index]) {\n styleNames.push(key);\n }\n });\n\n return styleNames;\n};\n\nexport default mapPropsToStyleNames;\n"]} \ No newline at end of file diff --git a/dist/src/vue-native.js b/dist/src/vue-native.js index ae3726034..99b47551a 100644 --- a/dist/src/vue-native.js +++ b/dist/src/vue-native.js @@ -1,122 +1,2 @@ -Object.defineProperty(exports,"__esModule",{value:true});var _nativeBaseShoutemTheme=require("native-base-shoutem-theme"); - -var _reactNativeEasyGrid=require("react-native-easy-grid"); -var _Drawer=require("./basic/Drawer");var _Drawer2=_interopRequireDefault(_Drawer); -var _SwipeRow=require("./basic/SwipeRow"); -var _Text=require("./basic/Text"); -var _View=require("./basic/View"); -var _Button=require("./basic/Button"); -var _DatePicker=require("./basic/DatePicker"); -var _TabHeading=require("./basic/TabHeading"); -var _TabContainer=require("./basic/TabContainer"); -var _IconNB=require("./basic/IconNB"); -var _Icon=require("./basic/Icon"); -var _Header=require("./basic/Header"); -var _InputGroup=require("./basic/InputGroup"); -var _Input=require("./basic/Input"); -var _Title=require("./basic/Title"); -var _Fab=require("./basic/Fab"); -var _Left=require("./basic/Left"); -var _Right=require("./basic/Right"); -var _Body=require("./basic/Body"); -var _Badge=require("./basic/Badge"); -var _Checkbox=require("./basic/Checkbox"); -var _Radio=require("./basic/Radio"); -var _Thumbnail=require("./basic/Thumbnail"); -var _Card=require("./basic/Card"); -var _CardItem=require("./basic/CardItem"); -var _H=require("./basic/H1"); -var _H2=require("./basic/H2"); -var _H3=require("./basic/H3"); -var _Spinner=require("./basic/Spinner"); -var _Switch=require("./basic/Switch"); -var _Container=require("./basic/Container"); -var _Root=require("./basic/Root"); -var _Content=require("./basic/Content"); -var _Footer=require("./basic/Footer"); -var _FooterTab=require("./basic/FooterTab"); -var _Form=require("./basic/Form"); -var _ToastContainer=require("./basic/ToastContainer"); -var _Actionsheet=require("./basic/Actionsheet"); -var _Picker=require("./basic/Picker"); -var _List=require("./basic/List"); -var _ListItem=require("./basic/ListItem"); -var _Separator=require("./basic/Separator"); -var _DeckSwiper=require("./basic/DeckSwiper"); -var _Item=require("./basic/Item"); -var _Segment=require("./basic/Segment"); -var _Label=require("./basic/Label"); -var _Textarea=require("./basic/Textarea"); -var _Tab=require("./basic/Tab"); -var _Tabs=require("./basic/Tabs");var _Tabs2=_interopRequireDefault(_Tabs); -var _DefaultTabBar=require("./basic/Tabs/DefaultTabBar"); -var _ScrollableTabBar=require("./basic/Tabs/ScrollableTabBar"); -var _Subtitle=require("./basic/Subtitle"); -var _Accordion=require("./basic/Accordion");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};} - -var VueNativeBasePlugin={ - - -install:function install(Vue,options){ -Vue.component("nb-drawer",_Drawer2.default); -Vue.component("nb-row",_reactNativeEasyGrid.Row); -Vue.component("nb-col",_reactNativeEasyGrid.Col); -Vue.component("nb-grid",_reactNativeEasyGrid.Grid); -Vue.component("nb-swipe-row",_SwipeRow.SwipeRow); -Vue.component("nb-text",_Text.Text); -Vue.component("nb-view",_View.ViewNB); -Vue.component("nb-button",_Button.Button); -Vue.component("nb-date-picker",_DatePicker.DatePicker); -Vue.component("nb-tab-heading",_TabHeading.TabHeading); -Vue.component("nb-tab-container",_TabContainer.TabContainer); -Vue.component("nb-icon-nb",_IconNB.IconNB); -Vue.component("nb-icon",_Icon.Icon); -Vue.component("nb-style-provider",_nativeBaseShoutemTheme.StyleProvider); -Vue.component("nb-header",_Header.Header); -Vue.component("nb-input-group",_InputGroup.InputGroup); -Vue.component("nb-input",_Input.Input); -Vue.component("nb-title",_Title.Title); -Vue.component("nb-fab",_Fab.Fab); -Vue.component("nb-left",_Left.Left); -Vue.component("nb-right",_Right.Right); -Vue.component("nb-body",_Body.Body); -Vue.component("nb-badge",_Badge.Badge); -Vue.component("nb-checkbox",_Checkbox.CheckBox); -Vue.component("nb-radio",_Radio.Radio); -Vue.component("nb-thumbnail",_Thumbnail.Thumbnail); -Vue.component("nb-card",_Card.Card); -Vue.component("nb-cardItem",_CardItem.CardItem); -Vue.component("nb-h1",_H.H1); -Vue.component("nb-h2",_H2.H2); -Vue.component("nb-h3",_H3.H3); -Vue.component("nb-spinner",_Spinner.Spinner); -Vue.component("nb-switch",_Switch.Switch); -Vue.component("nb-container",_Container.Container); -Vue.component("nb-root",_Root.Root); -Vue.component("nb-content",_Content.Content); -Vue.component("nb-tab-content",_Content.Content); -Vue.component("nb-footer",_Footer.Footer); -Vue.component("nb-footer-tab",_FooterTab.FooterTab); -Vue.component("nb-form",_Form.Form); -Vue.component("nb-toast",_ToastContainer.ToastContainer); -Vue.component("nb-action-sheet",_Actionsheet.ActionSheetContainer); -Vue.component("nb-picker",_Picker.PickerNB); -Vue.component("nb-list",_List.List); -Vue.component("nb-list-item",_ListItem.ListItem); -Vue.component("nb-separator",_Separator.Separator); -Vue.component("nb-deckSwiper",_DeckSwiper.DeckSwiper); -Vue.component("nb-item",_Item.Item); -Vue.component("nb-segment",_Segment.Segment); -Vue.component("nb-label",_Label.Label); -Vue.component("nb-textarea",_Textarea.Textarea); -Vue.component("nb-tab",_Tab.Tab); -Vue.component("nb-tabs",_Tabs2.default); -Vue.component("nb-default-tab-bar",_DefaultTabBar.DefaultTabBar); -Vue.component("nb-scrollable-tab",_ScrollableTabBar.ScrollableTab); -Vue.component("nb-subtitle",_Subtitle.Subtitle); -Vue.component("nb-accordion",_Accordion.Accordion); -}};exports.default= - - -VueNativeBasePlugin; +Object.defineProperty(exports,"__esModule",{value:true});var _nativeBaseShoutemTheme=require("native-base-shoutem-theme");var _reactNativeEasyGrid=require("react-native-easy-grid");var _Drawer=require("./basic/Drawer");var _Drawer2=_interopRequireDefault(_Drawer);var _SwipeRow=require("./basic/SwipeRow");var _Text=require("./basic/Text");var _View=require("./basic/View");var _Button=require("./basic/Button");var _DatePicker=require("./basic/DatePicker");var _TabHeading=require("./basic/TabHeading");var _TabContainer=require("./basic/TabContainer");var _IconNB=require("./basic/IconNB");var _Icon=require("./basic/Icon");var _Header=require("./basic/Header");var _InputGroup=require("./basic/InputGroup");var _Input=require("./basic/Input");var _Title=require("./basic/Title");var _Fab=require("./basic/Fab");var _Left=require("./basic/Left");var _Right=require("./basic/Right");var _Body=require("./basic/Body");var _Badge=require("./basic/Badge");var _Checkbox=require("./basic/Checkbox");var _Radio=require("./basic/Radio");var _Thumbnail=require("./basic/Thumbnail");var _Card=require("./basic/Card");var _CardItem=require("./basic/CardItem");var _H=require("./basic/H1");var _H2=require("./basic/H2");var _H3=require("./basic/H3");var _Spinner=require("./basic/Spinner");var _Switch=require("./basic/Switch");var _Container=require("./basic/Container");var _Root=require("./basic/Root");var _Content=require("./basic/Content");var _Footer=require("./basic/Footer");var _FooterTab=require("./basic/FooterTab");var _Form=require("./basic/Form");var _ToastContainer=require("./basic/ToastContainer");var _Actionsheet=require("./basic/Actionsheet");var _Picker=require("./basic/Picker");var _List=require("./basic/List");var _ListItem=require("./basic/ListItem");var _Separator=require("./basic/Separator");var _DeckSwiper=require("./basic/DeckSwiper");var _Item=require("./basic/Item");var _Segment=require("./basic/Segment");var _Label=require("./basic/Label");var _Textarea=require("./basic/Textarea");var _Tab=require("./basic/Tab");var _Tabs=require("./basic/Tabs");var _Tabs2=_interopRequireDefault(_Tabs);var _DefaultTabBar=require("./basic/Tabs/DefaultTabBar");var _ScrollableTabBar=require("./basic/Tabs/ScrollableTabBar");var _Subtitle=require("./basic/Subtitle");var _Accordion=require("./basic/Accordion");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var VueNativeBasePlugin={install:function install(Vue,options){Vue.component("nb-drawer",_Drawer2.default);Vue.component("nb-row",_reactNativeEasyGrid.Row);Vue.component("nb-col",_reactNativeEasyGrid.Col);Vue.component("nb-grid",_reactNativeEasyGrid.Grid);Vue.component("nb-swipe-row",_SwipeRow.SwipeRow);Vue.component("nb-text",_Text.Text);Vue.component("nb-view",_View.ViewNB);Vue.component("nb-button",_Button.Button);Vue.component("nb-date-picker",_DatePicker.DatePicker);Vue.component("nb-tab-heading",_TabHeading.TabHeading);Vue.component("nb-tab-container",_TabContainer.TabContainer);Vue.component("nb-icon-nb",_IconNB.IconNB);Vue.component("nb-icon",_Icon.Icon);Vue.component("nb-style-provider",_nativeBaseShoutemTheme.StyleProvider);Vue.component("nb-header",_Header.Header);Vue.component("nb-input-group",_InputGroup.InputGroup);Vue.component("nb-input",_Input.Input);Vue.component("nb-title",_Title.Title);Vue.component("nb-fab",_Fab.Fab);Vue.component("nb-left",_Left.Left);Vue.component("nb-right",_Right.Right);Vue.component("nb-body",_Body.Body);Vue.component("nb-badge",_Badge.Badge);Vue.component("nb-checkbox",_Checkbox.CheckBox);Vue.component("nb-radio",_Radio.Radio);Vue.component("nb-thumbnail",_Thumbnail.Thumbnail);Vue.component("nb-card",_Card.Card);Vue.component("nb-cardItem",_CardItem.CardItem);Vue.component("nb-h1",_H.H1);Vue.component("nb-h2",_H2.H2);Vue.component("nb-h3",_H3.H3);Vue.component("nb-spinner",_Spinner.Spinner);Vue.component("nb-switch",_Switch.Switch);Vue.component("nb-container",_Container.Container);Vue.component("nb-root",_Root.Root);Vue.component("nb-content",_Content.Content);Vue.component("nb-tab-content",_Content.Content);Vue.component("nb-footer",_Footer.Footer);Vue.component("nb-footer-tab",_FooterTab.FooterTab);Vue.component("nb-form",_Form.Form);Vue.component("nb-toast",_ToastContainer.ToastContainer);Vue.component("nb-action-sheet",_Actionsheet.ActionSheetContainer);Vue.component("nb-picker",_Picker.PickerNB);Vue.component("nb-list",_List.List);Vue.component("nb-list-item",_ListItem.ListItem);Vue.component("nb-separator",_Separator.Separator);Vue.component("nb-deckSwiper",_DeckSwiper.DeckSwiper);Vue.component("nb-item",_Item.Item);Vue.component("nb-segment",_Segment.Segment);Vue.component("nb-label",_Label.Label);Vue.component("nb-textarea",_Textarea.Textarea);Vue.component("nb-tab",_Tab.Tab);Vue.component("nb-tabs",_Tabs2.default);Vue.component("nb-default-tab-bar",_DefaultTabBar.DefaultTabBar);Vue.component("nb-scrollable-tab",_ScrollableTabBar.ScrollableTab);Vue.component("nb-subtitle",_Subtitle.Subtitle);Vue.component("nb-accordion",_Accordion.Accordion);}};exports.default=VueNativeBasePlugin; //# sourceMappingURL=vue-native.js.map \ No newline at end of file diff --git a/dist/src/vue-native.js.map b/dist/src/vue-native.js.map index f87029b5b..c7c950c53 100644 --- a/dist/src/vue-native.js.map +++ b/dist/src/vue-native.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../src/vue-native.js"],"names":["VueNativeBasePlugin","install","Vue","options","component","Drawer","Row","Col","Grid","SwipeRow","Text","View","Button","DatePicker","TabHeading","TabContainer","IconNB","Icon","StyleProvider","Header","InputGroup","Input","Title","Fab","Left","Right","Body","Badge","CheckBox","Radio","Thumbnail","Card","CardItem","H1","H2","H3","Spinner","Switch","Container","Root","Content","Footer","FooterTab","Form","ToastContainer","ActionSheetContainer","PickerNB","List","ListItem","Separator","DeckSwiper","Item","Segment","Label","Textarea","Tab","ScrollableTabView","DefaultTabBar","ScrollableTab","Subtitle","Accordion"],"mappings":"yDAAA;;AAEA;AACA,sC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kC;AACA;AACA;AACA;AACA,4C;;AAEA,GAAMA,qBAAsB;;;AAG1BC,OAH0B,kBAGlBC,GAHkB,CAGbC,OAHa,CAGJ;AACpBD,IAAIE,SAAJ,CAAc,WAAd,CAA2BC,gBAA3B;AACAH,IAAIE,SAAJ,CAAc,QAAd,CAAwBE,wBAAxB;AACAJ,IAAIE,SAAJ,CAAc,QAAd,CAAwBG,wBAAxB;AACAL,IAAIE,SAAJ,CAAc,SAAd,CAAyBI,yBAAzB;AACAN,IAAIE,SAAJ,CAAc,cAAd,CAA8BK,kBAA9B;AACAP,IAAIE,SAAJ,CAAc,SAAd,CAAyBM,UAAzB;AACAR,IAAIE,SAAJ,CAAc,SAAd,CAAyBO,YAAzB;AACAT,IAAIE,SAAJ,CAAc,WAAd,CAA2BQ,cAA3B;AACAV,IAAIE,SAAJ,CAAc,gBAAd,CAAgCS,sBAAhC;AACAX,IAAIE,SAAJ,CAAc,gBAAd,CAAgCU,sBAAhC;AACAZ,IAAIE,SAAJ,CAAc,kBAAd,CAAkCW,0BAAlC;AACAb,IAAIE,SAAJ,CAAc,YAAd,CAA4BY,cAA5B;AACAd,IAAIE,SAAJ,CAAc,SAAd,CAAyBa,UAAzB;AACAf,IAAIE,SAAJ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d,CAA2BqC,cAA3B;AACAvC,IAAIE,SAAJ,CAAc,eAAd,CAA+BsC,oBAA/B;AACAxC,IAAIE,SAAJ,CAAc,SAAd,CAAyBuC,UAAzB;AACAzC,IAAIE,SAAJ,CAAc,UAAd,CAA0BwC,8BAA1B;AACA1C,IAAIE,SAAJ,CAAc,iBAAd,CAAiCyC,iCAAjC;AACA3C,IAAIE,SAAJ,CAAc,WAAd,CAA2B0C,gBAA3B;AACA5C,IAAIE,SAAJ,CAAc,SAAd,CAAyB2C,UAAzB;AACA7C,IAAIE,SAAJ,CAAc,cAAd,CAA8B4C,kBAA9B;AACA9C,IAAIE,SAAJ,CAAc,cAAd,CAA8B6C,oBAA9B;AACA/C,IAAIE,SAAJ,CAAc,eAAd,CAA+B8C,sBAA/B;AACAhD,IAAIE,SAAJ,CAAc,SAAd,CAAyB+C,UAAzB;AACAjD,IAAIE,SAAJ,CAAc,YAAd,CAA4BgD,gBAA5B;AACAlD,IAAIE,SAAJ,CAAc,UAAd,CAA0BiD,YAA1B;AACAnD,IAAIE,SAAJ,CAAc,aAAd,CAA6BkD,kBAA7B;AACApD,IAAIE,SAAJ,CAAc,QAAd,CAAwBmD,QAAxB;AACArD,IAAIE,SAAJ,CAAc,SAAd,CAAyBoD,cAAzB;AACAtD,IAAIE,SAAJ,CAAc,oBAAd,CAAoCqD,4BAApC;AACAvD,IAAIE,SAAJ,CAAc,mBAAd,CAAmCsD,+BAAnC;AACAxD,IAAIE,SAAJ,CAAc,aAAd,CAA6BuD,kBAA7B;AACAzD,IAAIE,SAAJ,CAAc,cAAd,CAA8BwD,oBAA9B;AACD,CA7DyB,CAA5B,C;;;AAgEe5D,mB","file":"vue-native.js","sourcesContent":["import { StyleProvider } from \"native-base-shoutem-theme\";\n// import { Gravatar } from \"./basic/Gravatar\";\nimport { Col, Row, Grid } from \"react-native-easy-grid\";\nimport Drawer from \"./basic/Drawer\";\nimport { SwipeRow } from \"./basic/SwipeRow\";\nimport { Text } from \"./basic/Text\";\nimport { ViewNB as View } from \"./basic/View\";\nimport { Button } from \"./basic/Button\";\nimport { DatePicker } from \"./basic/DatePicker\";\nimport { TabHeading } from \"./basic/TabHeading\";\nimport { TabContainer } from \"./basic/TabContainer\";\nimport { IconNB } from \"./basic/IconNB\";\nimport { Icon } from \"./basic/Icon\";\nimport { Header } from \"./basic/Header\";\nimport { InputGroup } from \"./basic/InputGroup\";\nimport { Input } from \"./basic/Input\";\nimport { Title } from \"./basic/Title\";\nimport { Fab } from \"./basic/Fab\";\nimport { Left } from \"./basic/Left\";\nimport { Right } from \"./basic/Right\";\nimport { Body } from \"./basic/Body\";\nimport { Badge } from \"./basic/Badge\";\nimport { CheckBox } from \"./basic/Checkbox\";\nimport { Radio } from \"./basic/Radio\";\nimport { Thumbnail } from \"./basic/Thumbnail\";\nimport { Card } from \"./basic/Card\";\nimport { CardItem } from \"./basic/CardItem\";\nimport { H1 } from \"./basic/H1\";\nimport { H2 } from \"./basic/H2\";\nimport { H3 } from \"./basic/H3\";\nimport { Spinner } from \"./basic/Spinner\";\nimport { Switch } from \"./basic/Switch\";\nimport { Container } from \"./basic/Container\";\nimport { Root } from \"./basic/Root\";\nimport { Content } from \"./basic/Content\";\nimport { Footer } from \"./basic/Footer\";\nimport { FooterTab } from \"./basic/FooterTab\";\nimport { Form } from \"./basic/Form\";\nimport { ToastContainer } from \"./basic/ToastContainer\";\nimport { ActionSheetContainer } from \"./basic/Actionsheet\";\nimport { PickerNB } from \"./basic/Picker\";\nimport { List } from \"./basic/List\";\nimport { ListItem } from \"./basic/ListItem\";\nimport { Separator } from \"./basic/Separator\";\nimport { DeckSwiper } from \"./basic/DeckSwiper\";\nimport { Item } from \"./basic/Item\";\nimport { Segment } from \"./basic/Segment\";\nimport { Label } from \"./basic/Label\";\nimport { Textarea } from \"./basic/Textarea\";\nimport { Tab } from \"./basic/Tab\";\nimport ScrollableTabView from \"./basic/Tabs\";\nimport { DefaultTabBar } from \"./basic/Tabs/DefaultTabBar\";\nimport { ScrollableTab } from \"./basic/Tabs/ScrollableTabBar\";\nimport { Subtitle } from \"./basic/Subtitle\";\nimport { Accordion } from \"./basic/Accordion\";\n\nconst VueNativeBasePlugin = {\n // The install method is all that needs to exist on the plugin object.\n // It takes the global Vue object as well as user-defined options.\n install(Vue, options) {\n Vue.component(\"nb-drawer\", Drawer);\n Vue.component(\"nb-row\", Row);\n Vue.component(\"nb-col\", Col);\n Vue.component(\"nb-grid\", Grid);\n Vue.component(\"nb-swipe-row\", SwipeRow);\n Vue.component(\"nb-text\", Text);\n Vue.component(\"nb-view\", View);\n Vue.component(\"nb-button\", Button);\n Vue.component(\"nb-date-picker\", DatePicker);\n Vue.component(\"nb-tab-heading\", TabHeading);\n Vue.component(\"nb-tab-container\", TabContainer);\n Vue.component(\"nb-icon-nb\", IconNB);\n Vue.component(\"nb-icon\", Icon);\n Vue.component(\"nb-style-provider\", StyleProvider);\n Vue.component(\"nb-header\", Header);\n Vue.component(\"nb-input-group\", InputGroup);\n Vue.component(\"nb-input\", Input);\n Vue.component(\"nb-title\", Title);\n Vue.component(\"nb-fab\", Fab);\n Vue.component(\"nb-left\", Left);\n Vue.component(\"nb-right\", Right);\n Vue.component(\"nb-body\", Body);\n Vue.component(\"nb-badge\", Badge);\n Vue.component(\"nb-checkbox\", CheckBox);\n Vue.component(\"nb-radio\", Radio);\n Vue.component(\"nb-thumbnail\", Thumbnail);\n Vue.component(\"nb-card\", Card);\n Vue.component(\"nb-cardItem\", CardItem);\n Vue.component(\"nb-h1\", H1);\n Vue.component(\"nb-h2\", H2);\n Vue.component(\"nb-h3\", H3);\n Vue.component(\"nb-spinner\", Spinner);\n Vue.component(\"nb-switch\", Switch);\n Vue.component(\"nb-container\", Container);\n Vue.component(\"nb-root\", Root);\n Vue.component(\"nb-content\", Content);\n Vue.component(\"nb-tab-content\", Content);\n Vue.component(\"nb-footer\", Footer);\n Vue.component(\"nb-footer-tab\", FooterTab);\n Vue.component(\"nb-form\", Form);\n Vue.component(\"nb-toast\", ToastContainer);\n Vue.component(\"nb-action-sheet\", ActionSheetContainer);\n Vue.component(\"nb-picker\", PickerNB);\n Vue.component(\"nb-list\", List);\n Vue.component(\"nb-list-item\", ListItem);\n Vue.component(\"nb-separator\", Separator);\n Vue.component(\"nb-deckSwiper\", DeckSwiper);\n Vue.component(\"nb-item\", Item);\n Vue.component(\"nb-segment\", Segment);\n Vue.component(\"nb-label\", Label);\n Vue.component(\"nb-textarea\", Textarea);\n Vue.component(\"nb-tab\", Tab);\n Vue.component(\"nb-tabs\", ScrollableTabView);\n Vue.component(\"nb-default-tab-bar\", DefaultTabBar);\n Vue.component(\"nb-scrollable-tab\", ScrollableTab);\n Vue.component(\"nb-subtitle\", Subtitle);\n Vue.component(\"nb-accordion\", Accordion);\n }\n};\n\nexport default VueNativeBasePlugin;\n"]} \ No newline at end of file +{"version":3,"sources":["../../src/vue-native.js"],"names":["VueNativeBasePlugin","install","Vue","options","component","Drawer","Row","Col","Grid","SwipeRow","Text","View","Button","DatePicker","TabHeading","TabContainer","IconNB","Icon","StyleProvider","Header","InputGroup","Input","Title","Fab","Left","Right","Body","Badge","CheckBox","Radio","Thumbnail","Card","CardItem","H1","H2","H3","Spinner","Switch","Container","Root","Content","Footer","FooterTab","Form","ToastContainer","ActionSheetContainer","PickerNB","List","ListItem","Separator","DeckSwiper","Item","Segment","Label","Textarea","Tab","ScrollableTabView","DefaultTabBar","ScrollableTab","Subtitle","Accordion"],"mappings":"yDAAA,iEAEA,2DACA,sC,6CACA,0CACA,kCACA,kCACA,sCACA,8CACA,8CACA,kDACA,sCACA,kCACA,sCACA,8CACA,oCACA,oCACA,gCACA,kCACA,oCACA,kCACA,oCACA,0CACA,oCACA,4CACA,kCACA,0CACA,6BACA,8BACA,8BACA,wCACA,sCACA,4CACA,kCACA,wCACA,sCACA,4CACA,kCACA,sDACA,gDACA,sCACA,kCACA,0CACA,4CACA,8CACA,kCACA,wCACA,oCACA,0CACA,gCACA,kC,yCACA,yDACA,+DACA,0CACA,4C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AIE,SAAJ,CAAc,SAAd,CAAyB+C,UAAzB,EACAjD,IAAIE,SAAJ,CAAc,YAAd,CAA4BgD,gBAA5B,EACAlD,IAAIE,SAAJ,CAAc,UAAd,CAA0BiD,YAA1B,EACAnD,IAAIE,SAAJ,CAAc,aAAd,CAA6BkD,kBAA7B,EACApD,IAAIE,SAAJ,CAAc,QAAd,CAAwBmD,QAAxB,EACArD,IAAIE,SAAJ,CAAc,SAAd,CAAyBoD,cAAzB,EACAtD,IAAIE,SAAJ,CAAc,oBAAd,CAAoCqD,4BAApC,EACAvD,IAAIE,SAAJ,CAAc,mBAAd,CAAmCsD,+BAAnC,EACAxD,IAAIE,SAAJ,CAAc,aAAd,CAA6BuD,kBAA7B,EACAzD,IAAIE,SAAJ,CAAc,cAAd,CAA8BwD,oBAA9B,EACD,CA7DyB,CAA5B,C,gBAgEe5D,mB","file":"vue-native.js","sourcesContent":["import { StyleProvider } from \"native-base-shoutem-theme\";\n// import { Gravatar } from \"./basic/Gravatar\";\nimport { Col, Row, Grid } from \"react-native-easy-grid\";\nimport Drawer from \"./basic/Drawer\";\nimport { SwipeRow } from \"./basic/SwipeRow\";\nimport { Text } from \"./basic/Text\";\nimport { ViewNB as View } from \"./basic/View\";\nimport { Button } from \"./basic/Button\";\nimport { DatePicker } from \"./basic/DatePicker\";\nimport { TabHeading } from \"./basic/TabHeading\";\nimport { TabContainer } from \"./basic/TabContainer\";\nimport { IconNB } from \"./basic/IconNB\";\nimport { Icon } from \"./basic/Icon\";\nimport { Header } from \"./basic/Header\";\nimport { InputGroup } from \"./basic/InputGroup\";\nimport { Input } from \"./basic/Input\";\nimport { Title } from \"./basic/Title\";\nimport { Fab } from \"./basic/Fab\";\nimport { Left } from \"./basic/Left\";\nimport { Right } from \"./basic/Right\";\nimport { Body } from \"./basic/Body\";\nimport { Badge } from \"./basic/Badge\";\nimport { CheckBox } from \"./basic/Checkbox\";\nimport { Radio } from \"./basic/Radio\";\nimport { Thumbnail } from \"./basic/Thumbnail\";\nimport { Card } from \"./basic/Card\";\nimport { CardItem } from \"./basic/CardItem\";\nimport { H1 } from \"./basic/H1\";\nimport { H2 } from \"./basic/H2\";\nimport { H3 } from \"./basic/H3\";\nimport { Spinner } from \"./basic/Spinner\";\nimport { Switch } from \"./basic/Switch\";\nimport { Container } from \"./basic/Container\";\nimport { Root } from \"./basic/Root\";\nimport { Content } from \"./basic/Content\";\nimport { Footer } from \"./basic/Footer\";\nimport { FooterTab } from \"./basic/FooterTab\";\nimport { Form } from \"./basic/Form\";\nimport { ToastContainer } from \"./basic/ToastContainer\";\nimport { ActionSheetContainer } from \"./basic/Actionsheet\";\nimport { PickerNB } from \"./basic/Picker\";\nimport { List } from \"./basic/List\";\nimport { ListItem } from \"./basic/ListItem\";\nimport { Separator } from \"./basic/Separator\";\nimport { DeckSwiper } from \"./basic/DeckSwiper\";\nimport { Item } from \"./basic/Item\";\nimport { Segment } from \"./basic/Segment\";\nimport { Label } from \"./basic/Label\";\nimport { Textarea } from \"./basic/Textarea\";\nimport { Tab } from \"./basic/Tab\";\nimport ScrollableTabView from \"./basic/Tabs\";\nimport { DefaultTabBar } from \"./basic/Tabs/DefaultTabBar\";\nimport { ScrollableTab } from \"./basic/Tabs/ScrollableTabBar\";\nimport { Subtitle } from \"./basic/Subtitle\";\nimport { Accordion } from \"./basic/Accordion\";\n\nconst VueNativeBasePlugin = {\n // The install method is all that needs to exist on the plugin object.\n // It takes the global Vue object as well as user-defined options.\n install(Vue, options) {\n Vue.component(\"nb-drawer\", Drawer);\n Vue.component(\"nb-row\", Row);\n Vue.component(\"nb-col\", Col);\n Vue.component(\"nb-grid\", Grid);\n Vue.component(\"nb-swipe-row\", SwipeRow);\n Vue.component(\"nb-text\", Text);\n Vue.component(\"nb-view\", View);\n Vue.component(\"nb-button\", Button);\n Vue.component(\"nb-date-picker\", DatePicker);\n Vue.component(\"nb-tab-heading\", TabHeading);\n Vue.component(\"nb-tab-container\", TabContainer);\n Vue.component(\"nb-icon-nb\", IconNB);\n Vue.component(\"nb-icon\", Icon);\n Vue.component(\"nb-style-provider\", StyleProvider);\n Vue.component(\"nb-header\", Header);\n Vue.component(\"nb-input-group\", InputGroup);\n Vue.component(\"nb-input\", Input);\n Vue.component(\"nb-title\", Title);\n Vue.component(\"nb-fab\", Fab);\n Vue.component(\"nb-left\", Left);\n Vue.component(\"nb-right\", Right);\n Vue.component(\"nb-body\", Body);\n Vue.component(\"nb-badge\", Badge);\n Vue.component(\"nb-checkbox\", CheckBox);\n Vue.component(\"nb-radio\", Radio);\n Vue.component(\"nb-thumbnail\", Thumbnail);\n Vue.component(\"nb-card\", Card);\n Vue.component(\"nb-cardItem\", CardItem);\n Vue.component(\"nb-h1\", H1);\n Vue.component(\"nb-h2\", H2);\n Vue.component(\"nb-h3\", H3);\n Vue.component(\"nb-spinner\", Spinner);\n Vue.component(\"nb-switch\", Switch);\n Vue.component(\"nb-container\", Container);\n Vue.component(\"nb-root\", Root);\n Vue.component(\"nb-content\", Content);\n Vue.component(\"nb-tab-content\", Content);\n Vue.component(\"nb-footer\", Footer);\n Vue.component(\"nb-footer-tab\", FooterTab);\n Vue.component(\"nb-form\", Form);\n Vue.component(\"nb-toast\", ToastContainer);\n Vue.component(\"nb-action-sheet\", ActionSheetContainer);\n Vue.component(\"nb-picker\", PickerNB);\n Vue.component(\"nb-list\", List);\n Vue.component(\"nb-list-item\", ListItem);\n Vue.component(\"nb-separator\", Separator);\n Vue.component(\"nb-deckSwiper\", DeckSwiper);\n Vue.component(\"nb-item\", Item);\n Vue.component(\"nb-segment\", Segment);\n Vue.component(\"nb-label\", Label);\n Vue.component(\"nb-textarea\", Textarea);\n Vue.component(\"nb-tab\", Tab);\n Vue.component(\"nb-tabs\", ScrollableTabView);\n Vue.component(\"nb-default-tab-bar\", DefaultTabBar);\n Vue.component(\"nb-scrollable-tab\", ScrollableTab);\n Vue.component(\"nb-subtitle\", Subtitle);\n Vue.component(\"nb-accordion\", Accordion);\n }\n};\n\nexport default VueNativeBasePlugin;\n"]} \ No newline at end of file diff --git a/package.json b/package.json index 2dbcd9a20..4230206e6 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "print-message": "^2.1.0", "prop-types": "^15.5.10", "react-native-drawer": "2.5.0", - "react-native-easy-grid": "0.1.17", + "react-native-easy-grid": "0.2.0", "react-native-keyboard-aware-scroll-view": "0.5.0", "react-native-vector-icons": "~4.5.0", "react-tween-state": "^0.1.5", @@ -49,8 +49,8 @@ "devDependencies": { "babel-cli": "^6.18.0", "babel-eslint": "^7.2.3", - "babel-jest": "^16.0.0", - "babel-preset-react-native": "^1.9.2", + "babel-jest": "23.2.0", + "babel-preset-react-native": "4.0.0", "eslint": "^3.5.0", "eslint-config-airbnb": "^11.1.0", "eslint-plugin-import": "^1.14.0", @@ -58,11 +58,11 @@ "eslint-plugin-react": "^6.2.0", "eslint-plugin-react-native": "^2.0.0", "flow-bin": "0.47.0", - "jest": "19.0.2", - "react": "^16.0.0-alpha.12", - "react-native": "^0.46.0", - "react-native-vector-icons": "~4.5.0", - "react-test-renderer": "^16.0.0-alpha.12" + "jest": "23.3.0", + "react": "16.4.1", + "react-native": "0.56.0", + "react-native-vector-icons": "4.6.0", + "react-test-renderer": "16.4.1" }, "gitHead": "5bbeacc403ba97622703699132c55d8359344004", "homepage": "https://github.com/GeekyAnts/NativeBase#readme", @@ -70,8 +70,8 @@ "typings": "./index.d.ts", "optionalDependencies": {}, "peerDependencies": { - "react": ">=16.0.0-alpha.12", - "react-native": ">=0.46.0" + "react": ">=16.4.1", + "react-native": ">=0.56.0" }, "readmeFilename": "README.md", "repository": { diff --git a/src/utils/computeProps.js b/src/utils/computeProps.js index ec661a4e3..2d433032c 100644 --- a/src/utils/computeProps.js +++ b/src/utils/computeProps.js @@ -1,8 +1,7 @@ "use_strict"; import _ from "lodash"; -import ReactNativePropRegistry from "react-native/Libraries/Renderer/shims/ReactNativePropRegistry"; -// For compatibility with RN 0.25 -// import ReactNativePropRegistry from "react-native/Libraries/ReactNative/ReactNativePropRegistry"; +import { StyleSheet } from "react-native"; + module.exports = function(incomingProps, defaultProps) { // External props has a higher precedence let computedProps = {}; @@ -26,13 +25,13 @@ module.exports = function(incomingProps, defaultProps) { if (Array.isArray(incomingPropsStyle)) { _.forEach(incomingPropsStyle, style => { if (typeof style === "number") { - _.merge(computedPropsStyle, ReactNativePropRegistry.getByID(style)); + _.merge(computedPropsStyle, StyleSheet.flatten(style)); } else { _.merge(computedPropsStyle, style); } }); } else if (typeof incomingPropsStyle === "number") { - computedPropsStyle = ReactNativePropRegistry.getByID(incomingPropsStyle); + computedPropsStyle = StyleSheet.flatten(incomingPropsStyle); } else { computedPropsStyle = incomingPropsStyle; } diff --git a/yarn.lock b/yarn.lock index e882fa260..7fdb3b844 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,7 +2,495 @@ # yarn lockfile v1 -abab@^1.0.3: +"@babel/code-frame@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0-beta.47.tgz#d18c2f4c4ba8d093a2bcfab5616593bfe2441a27" + dependencies: + "@babel/highlight" "7.0.0-beta.47" + +"@babel/code-frame@^7.0.0-beta.35": + version "7.0.0-beta.52" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0-beta.52.tgz#192483bfa0d1e467c101571c21029ccb74af2801" + dependencies: + "@babel/highlight" "7.0.0-beta.52" + +"@babel/core@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.0.0-beta.47.tgz#b9c164fb9a1e1083f067c236a9da1d7a7d759271" + dependencies: + "@babel/code-frame" "7.0.0-beta.47" + "@babel/generator" "7.0.0-beta.47" + "@babel/helpers" "7.0.0-beta.47" + "@babel/template" "7.0.0-beta.47" + "@babel/traverse" "7.0.0-beta.47" + "@babel/types" "7.0.0-beta.47" + babylon "7.0.0-beta.47" + convert-source-map "^1.1.0" + debug "^3.1.0" + json5 "^0.5.0" + lodash "^4.17.5" + micromatch "^2.3.11" + resolve "^1.3.2" + semver "^5.4.1" + source-map "^0.5.0" + +"@babel/generator@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.0.0-beta.47.tgz#1835709f377cc4d2a4affee6d9258a10bbf3b9d1" + dependencies: + "@babel/types" "7.0.0-beta.47" + jsesc "^2.5.1" + lodash "^4.17.5" + source-map "^0.5.0" + trim-right "^1.0.1" + +"@babel/helper-annotate-as-pure@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.0.0-beta.47.tgz#354fb596055d9db369211bf075f0d5e93904d6f6" + dependencies: + "@babel/types" "7.0.0-beta.47" + +"@babel/helper-builder-binary-assignment-operator-visitor@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.0.0-beta.47.tgz#d5917c29ee3d68abc2c72f604bc043f6e056e907" + dependencies: + "@babel/helper-explode-assignable-expression" "7.0.0-beta.47" + "@babel/types" "7.0.0-beta.47" + +"@babel/helper-builder-react-jsx@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/helper-builder-react-jsx/-/helper-builder-react-jsx-7.0.0-beta.47.tgz#e39bbce315743044c0d64b31f82f20600f761729" + dependencies: + "@babel/types" "7.0.0-beta.47" + esutils "^2.0.0" + +"@babel/helper-call-delegate@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/helper-call-delegate/-/helper-call-delegate-7.0.0-beta.47.tgz#96b7804397075f722a4030d3876f51ec19d8829b" + dependencies: + "@babel/helper-hoist-variables" "7.0.0-beta.47" + "@babel/traverse" "7.0.0-beta.47" + "@babel/types" "7.0.0-beta.47" + +"@babel/helper-define-map@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/helper-define-map/-/helper-define-map-7.0.0-beta.47.tgz#43a9def87c5166dc29630d51b3da9cc4320c131c" + dependencies: + "@babel/helper-function-name" "7.0.0-beta.47" + "@babel/types" "7.0.0-beta.47" + lodash "^4.17.5" + +"@babel/helper-explode-assignable-expression@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.0.0-beta.47.tgz#56b688e282a698f4d1cf135453a11ae8af870a19" + dependencies: + "@babel/traverse" "7.0.0-beta.47" + "@babel/types" "7.0.0-beta.47" + +"@babel/helper-function-name@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.47.tgz#8057d63e951e85c57c02cdfe55ad7608d73ffb7d" + dependencies: + "@babel/helper-get-function-arity" "7.0.0-beta.47" + "@babel/template" "7.0.0-beta.47" + "@babel/types" "7.0.0-beta.47" + +"@babel/helper-get-function-arity@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.47.tgz#2de04f97c14b094b55899d3fa83144a16d207510" + dependencies: + "@babel/types" "7.0.0-beta.47" + +"@babel/helper-hoist-variables@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.0.0-beta.47.tgz#ce295d1d723fe22b2820eaec748ed701aa5ae3d0" + dependencies: + "@babel/types" "7.0.0-beta.47" + +"@babel/helper-member-expression-to-functions@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.0.0-beta.47.tgz#35bfcf1d16dce481ef3dec66d5a1ae6a7d80bb45" + dependencies: + "@babel/types" "7.0.0-beta.47" + +"@babel/helper-module-imports@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.0.0-beta.47.tgz#5af072029ffcfbece6ffbaf5d9984c75580f3f04" + dependencies: + "@babel/types" "7.0.0-beta.47" + lodash "^4.17.5" + +"@babel/helper-module-transforms@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.0.0-beta.47.tgz#7eff91fc96873bd7b8d816698f1a69bbc01f3c38" + dependencies: + "@babel/helper-module-imports" "7.0.0-beta.47" + "@babel/helper-simple-access" "7.0.0-beta.47" + "@babel/helper-split-export-declaration" "7.0.0-beta.47" + "@babel/template" "7.0.0-beta.47" + "@babel/types" "7.0.0-beta.47" + lodash "^4.17.5" + +"@babel/helper-optimise-call-expression@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.0.0-beta.47.tgz#085d864d0613c5813c1b7c71b61bea36f195929e" + dependencies: + "@babel/types" "7.0.0-beta.47" + +"@babel/helper-plugin-utils@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0-beta.47.tgz#4f564117ec39f96cf60fafcde35c9ddce0e008fd" + +"@babel/helper-regex@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/helper-regex/-/helper-regex-7.0.0-beta.47.tgz#b8e3b53132c4edbb04804242c02ffe4d60316971" + dependencies: + lodash "^4.17.5" + +"@babel/helper-remap-async-to-generator@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.0.0-beta.47.tgz#444dc362f61470bd61a745ebb364431d9ca186c2" + dependencies: + "@babel/helper-annotate-as-pure" "7.0.0-beta.47" + "@babel/helper-wrap-function" "7.0.0-beta.47" + "@babel/template" "7.0.0-beta.47" + "@babel/traverse" "7.0.0-beta.47" + "@babel/types" "7.0.0-beta.47" + +"@babel/helper-replace-supers@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.0.0-beta.47.tgz#310b206a302868a792b659455ceba27db686cbb7" + dependencies: + "@babel/helper-member-expression-to-functions" "7.0.0-beta.47" + "@babel/helper-optimise-call-expression" "7.0.0-beta.47" + "@babel/traverse" "7.0.0-beta.47" + "@babel/types" "7.0.0-beta.47" + +"@babel/helper-simple-access@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.0.0-beta.47.tgz#234d754acbda9251a10db697ef50181eab125042" + dependencies: + "@babel/template" "7.0.0-beta.47" + "@babel/types" "7.0.0-beta.47" + lodash "^4.17.5" + +"@babel/helper-split-export-declaration@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.47.tgz#e11277855472d8d83baf22f2d0186c4a2059b09a" + dependencies: + "@babel/types" "7.0.0-beta.47" + +"@babel/helper-wrap-function@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.0.0-beta.47.tgz#6528b44a3ccb4f3aeeb79add0a88192f7eb81161" + dependencies: + "@babel/helper-function-name" "7.0.0-beta.47" + "@babel/template" "7.0.0-beta.47" + "@babel/traverse" "7.0.0-beta.47" + "@babel/types" "7.0.0-beta.47" + +"@babel/helpers@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.0.0-beta.47.tgz#f9b42ed2e4d5f75ec0fb2e792c173e451e8d40fd" + dependencies: + "@babel/template" "7.0.0-beta.47" + "@babel/traverse" "7.0.0-beta.47" + "@babel/types" "7.0.0-beta.47" + +"@babel/highlight@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.0.0-beta.47.tgz#8fbc83fb2a21f0bd2b95cdbeb238cf9689cad494" + dependencies: + chalk "^2.0.0" + esutils "^2.0.2" + js-tokens "^3.0.0" + +"@babel/highlight@7.0.0-beta.52": + version "7.0.0-beta.52" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.0.0-beta.52.tgz#ef24931432f06155e7bc39cdb8a6b37b4a28b3d0" + dependencies: + chalk "^2.0.0" + esutils "^2.0.2" + js-tokens "^3.0.0" + +"@babel/plugin-external-helpers@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-external-helpers/-/plugin-external-helpers-7.0.0-beta.47.tgz#b348b80da9b5fa3acebbe21979aa3839f6f7b875" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-beta.47" + +"@babel/plugin-proposal-class-properties@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.0.0-beta.47.tgz#08c1a1dfc92d0f5c37b39096c6fb883e1ca4b0f5" + dependencies: + "@babel/helper-function-name" "7.0.0-beta.47" + "@babel/helper-plugin-utils" "7.0.0-beta.47" + "@babel/helper-replace-supers" "7.0.0-beta.47" + "@babel/plugin-syntax-class-properties" "7.0.0-beta.47" + +"@babel/plugin-proposal-object-rest-spread@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.0.0-beta.47.tgz#e1529fddc88e948868ee1d0edaa27ebd9502322d" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-beta.47" + "@babel/plugin-syntax-object-rest-spread" "7.0.0-beta.47" + +"@babel/plugin-proposal-optional-chaining@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.0.0-beta.47.tgz#099e5720121f91eb36544575f98d44cd57865ea5" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-beta.47" + "@babel/plugin-syntax-optional-chaining" "7.0.0-beta.47" + +"@babel/plugin-syntax-class-properties@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.0.0-beta.47.tgz#de52bed12fd472c848e1562f57dd4a202fe27f11" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-beta.47" + +"@babel/plugin-syntax-dynamic-import@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.0.0-beta.47.tgz#ee964915014a687701ee8e15c289e31a7c899e60" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-beta.47" + +"@babel/plugin-syntax-flow@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.0.0-beta.47.tgz#9d0b09b9af6fec87a7b22e406bf948089d58c188" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-beta.47" + +"@babel/plugin-syntax-jsx@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.0.0-beta.47.tgz#f3849d94288695d724bd205b4f6c3c99e4ec24a4" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-beta.47" + +"@babel/plugin-syntax-nullish-coalescing-operator@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.0.0-beta.47.tgz#24043fa9b2cdd980d4ff18b9d451569565725ebf" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-beta.47" + +"@babel/plugin-syntax-object-rest-spread@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.0.0-beta.47.tgz#21da514d94c138b2261ca09f0dec9abadce16185" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-beta.47" + +"@babel/plugin-syntax-optional-chaining@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.0.0-beta.47.tgz#f1febe859d9dde26f2b2e1f20cf679925d1fab23" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-beta.47" + +"@babel/plugin-transform-arrow-functions@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.0.0-beta.47.tgz#d6eecda4c652b909e3088f0983ebaf8ec292984b" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-beta.47" + +"@babel/plugin-transform-async-to-generator@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.0.0-beta.47.tgz#5723816ea1e91fa313a84e6ee9cc12ff31d46610" + dependencies: + "@babel/helper-module-imports" "7.0.0-beta.47" + "@babel/helper-plugin-utils" "7.0.0-beta.47" + "@babel/helper-remap-async-to-generator" "7.0.0-beta.47" + +"@babel/plugin-transform-block-scoping@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.0.0-beta.47.tgz#b737cc58a81bea57efd5bda0baef9a43a25859ad" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-beta.47" + lodash "^4.17.5" + +"@babel/plugin-transform-classes@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.0.0-beta.47.tgz#7aff9cbe7b26fd94d7a9f97fa90135ef20c93fb6" + dependencies: + "@babel/helper-annotate-as-pure" "7.0.0-beta.47" + "@babel/helper-define-map" "7.0.0-beta.47" + "@babel/helper-function-name" "7.0.0-beta.47" + "@babel/helper-optimise-call-expression" "7.0.0-beta.47" + "@babel/helper-plugin-utils" "7.0.0-beta.47" + "@babel/helper-replace-supers" "7.0.0-beta.47" + "@babel/helper-split-export-declaration" "7.0.0-beta.47" + globals "^11.1.0" + +"@babel/plugin-transform-computed-properties@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.0.0-beta.47.tgz#56ef2a021769a2b65e90a3e12fd10b791da9f3e0" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-beta.47" + +"@babel/plugin-transform-destructuring@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.0.0-beta.47.tgz#452b607775fd1c4d10621997837189efc0a6d428" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-beta.47" + +"@babel/plugin-transform-exponentiation-operator@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.0.0-beta.47.tgz#930e1abf5db9f4db5b63dbf97f3581ad0be1e907" + dependencies: + "@babel/helper-builder-binary-assignment-operator-visitor" "7.0.0-beta.47" + "@babel/helper-plugin-utils" "7.0.0-beta.47" + +"@babel/plugin-transform-flow-strip-types@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.0.0-beta.47.tgz#fa45811094c10d70c84efdd0eac62ebd2a634bf7" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-beta.47" + "@babel/plugin-syntax-flow" "7.0.0-beta.47" + +"@babel/plugin-transform-for-of@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.0.0-beta.47.tgz#527d5dc24e4a4ad0fc1d0a3990d29968cb984e76" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-beta.47" + +"@babel/plugin-transform-function-name@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.0.0-beta.47.tgz#fb443c81cc77f3206a863b730b35c8c553ce5041" + dependencies: + "@babel/helper-function-name" "7.0.0-beta.47" + "@babel/helper-plugin-utils" "7.0.0-beta.47" + +"@babel/plugin-transform-literals@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.0.0-beta.47.tgz#448fad196f062163684a38f10f14e83315892e9c" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-beta.47" + +"@babel/plugin-transform-modules-commonjs@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.0.0-beta.47.tgz#dfe5c6d867aa9614e55f7616736073edb3aab887" + dependencies: + "@babel/helper-module-transforms" "7.0.0-beta.47" + "@babel/helper-plugin-utils" "7.0.0-beta.47" + "@babel/helper-simple-access" "7.0.0-beta.47" + +"@babel/plugin-transform-object-assign@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-assign/-/plugin-transform-object-assign-7.0.0-beta.47.tgz#aaf0e4593c1e9b1ceb48fc8770736a029b17ed64" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-beta.47" + +"@babel/plugin-transform-parameters@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.0.0-beta.47.tgz#46a4236040a6552a5f165fb3ddd60368954b0ddd" + dependencies: + "@babel/helper-call-delegate" "7.0.0-beta.47" + "@babel/helper-get-function-arity" "7.0.0-beta.47" + "@babel/helper-plugin-utils" "7.0.0-beta.47" + +"@babel/plugin-transform-react-display-name@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.0.0-beta.47.tgz#7a45c1703b8b33f252148ecf1b50dd54809de952" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-beta.47" + +"@babel/plugin-transform-react-jsx-source@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.0.0-beta.47.tgz#da8c01704b896409eae168a15045216e72d278dc" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-beta.47" + "@babel/plugin-syntax-jsx" "7.0.0-beta.47" + +"@babel/plugin-transform-react-jsx@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.0.0-beta.47.tgz#98c99a69be748d966c0aea08b5ca942ba3fc9ed1" + dependencies: + "@babel/helper-builder-react-jsx" "7.0.0-beta.47" + "@babel/helper-plugin-utils" "7.0.0-beta.47" + "@babel/plugin-syntax-jsx" "7.0.0-beta.47" + +"@babel/plugin-transform-regenerator@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.0.0-beta.47.tgz#86500e1c404055fb98fc82b73b09bd053cacb516" + dependencies: + regenerator-transform "^0.12.3" + +"@babel/plugin-transform-shorthand-properties@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.0.0-beta.47.tgz#00be44c4fad8fe2c00ed18ea15ea3c88dd519dbb" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-beta.47" + +"@babel/plugin-transform-spread@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.0.0-beta.47.tgz#3feadb02292ed1e9b75090d651b9df88a7ab5c50" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-beta.47" + +"@babel/plugin-transform-sticky-regex@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.0.0-beta.47.tgz#c0aa347d76b5dc87d3b37ac016ada3f950605131" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-beta.47" + "@babel/helper-regex" "7.0.0-beta.47" + +"@babel/plugin-transform-template-literals@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.0.0-beta.47.tgz#5f7b5badf64c4c5da79026aeab03001e62a6ee5f" + dependencies: + "@babel/helper-annotate-as-pure" "7.0.0-beta.47" + "@babel/helper-plugin-utils" "7.0.0-beta.47" + +"@babel/plugin-transform-unicode-regex@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.0.0-beta.47.tgz#efed0b2f1dfbf28283502234a95b4be88f7fdcb6" + dependencies: + "@babel/helper-plugin-utils" "7.0.0-beta.47" + "@babel/helper-regex" "7.0.0-beta.47" + regexpu-core "^4.1.3" + +"@babel/register@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/register/-/register-7.0.0-beta.47.tgz#ac53bc357ca59979db0e306aa5d3121aa612a7a2" + dependencies: + core-js "^2.5.3" + find-cache-dir "^1.0.0" + home-or-tmp "^3.0.0" + lodash "^4.17.5" + mkdirp "^0.5.1" + pirates "^3.0.1" + source-map-support "^0.4.2" + +"@babel/template@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.0.0-beta.47.tgz#0473970a7c0bee7a1a18c1ca999d3ba5e5bad83d" + dependencies: + "@babel/code-frame" "7.0.0-beta.47" + "@babel/types" "7.0.0-beta.47" + babylon "7.0.0-beta.47" + lodash "^4.17.5" + +"@babel/traverse@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.0.0-beta.47.tgz#0e57fdbb9ff3a909188b6ebf1e529c641e6c82a4" + dependencies: + "@babel/code-frame" "7.0.0-beta.47" + "@babel/generator" "7.0.0-beta.47" + "@babel/helper-function-name" "7.0.0-beta.47" + "@babel/helper-split-export-declaration" "7.0.0-beta.47" + "@babel/types" "7.0.0-beta.47" + babylon "7.0.0-beta.47" + debug "^3.1.0" + globals "^11.1.0" + invariant "^2.2.0" + lodash "^4.17.5" + +"@babel/types@7.0.0-beta.47": + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.0.0-beta.47.tgz#e6fcc1a691459002c2671d558a586706dddaeef8" + dependencies: + esutils "^2.0.2" + lodash "^4.17.5" + to-fast-properties "^2.0.0" + +abab@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/abab/-/abab-1.0.4.tgz#5faad9c2c07f60dd76770f71cf025b62a63cfd4e" @@ -14,25 +502,18 @@ absolute-path@^0.0.0: version "0.0.0" resolved "https://registry.yarnpkg.com/absolute-path/-/absolute-path-0.0.0.tgz#a78762fbdadfb5297be99b15d35a785b2f095bf7" -accepts@~1.2.12, accepts@~1.2.13: - version "1.2.13" - resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.2.13.tgz#e5f1f3928c6d95fd96558c36ec3d9d0de4a6ecea" - dependencies: - mime-types "~2.1.6" - negotiator "0.5.3" - -accepts@~1.3.0: +accepts@~1.3.3, accepts@~1.3.4: version "1.3.5" resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.5.tgz#eb777df6011723a3b14e8a72c0805c8e86746bd2" dependencies: mime-types "~2.1.18" negotiator "0.6.1" -acorn-globals@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-3.1.0.tgz#fd8270f71fbb4996b004fa880ee5d46573a731bf" +acorn-globals@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-4.1.0.tgz#ab716025dbe17c54d3ef81d32ece2b2d99fe2538" dependencies: - acorn "^4.0.4" + acorn "^5.0.0" acorn-jsx@^3.0.0: version "3.0.1" @@ -44,11 +525,7 @@ acorn@^3.0.4: version "3.3.0" resolved "https://registry.yarnpkg.com/acorn/-/acorn-3.3.0.tgz#45e37fb39e8da3f25baee3ff5369e2bb5f22017a" -acorn@^4.0.4: - version "4.0.13" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-4.0.13.tgz#105495ae5361d697bd195c825192e1ad7f253787" - -acorn@^5.5.0: +acorn@^5.0.0, acorn@^5.3.0, acorn@^5.5.0: version "5.7.1" resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.1.tgz#f095829297706a7c9776958c0afc8930a9b9d9d8" @@ -84,7 +561,19 @@ amdefine@>=0.0.4: version "1.0.1" resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" -ansi-escapes@^1.1.0, ansi-escapes@^1.4.0: +ansi-colors@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-1.1.0.tgz#6374b4dd5d4718ff3ce27a671a3b1cad077132a9" + dependencies: + ansi-wrap "^0.1.0" + +ansi-cyan@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/ansi-cyan/-/ansi-cyan-0.1.1.tgz#538ae528af8982f28ae30d86f2f17456d2609873" + dependencies: + ansi-wrap "0.1.0" + +ansi-escapes@^1.1.0: version "1.4.0" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-1.4.0.tgz#d3a8a83b319aa67793662b13e761c7911422306e" @@ -98,6 +587,12 @@ ansi-gray@^0.1.1: dependencies: ansi-wrap "0.1.0" +ansi-red@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/ansi-red/-/ansi-red-0.1.1.tgz#8c638f9d1080800a353c9c28c8a81ca4705d946c" + dependencies: + ansi-wrap "0.1.0" + ansi-regex@^2.0.0: version "2.1.1" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" @@ -110,13 +605,13 @@ ansi-styles@^2.1.0, ansi-styles@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" -ansi-styles@^3.0.0, ansi-styles@^3.2.1: +ansi-styles@^3.2.0, ansi-styles@^3.2.1: version "3.2.1" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" dependencies: color-convert "^1.9.0" -ansi-wrap@0.1.0: +ansi-wrap@0.1.0, ansi-wrap@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/ansi-wrap/-/ansi-wrap-0.1.0.tgz#a82250ddb0015e9a27ca82e82ea603bbfa45efaf" @@ -131,6 +626,13 @@ anymatch@^1.3.0: micromatch "^2.1.5" normalize-path "^2.0.0" +anymatch@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb" + dependencies: + micromatch "^3.1.4" + normalize-path "^2.1.1" + append-transform@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/append-transform/-/append-transform-1.0.0.tgz#046a52ae582a228bd72f58acfbe2967c678759ab" @@ -154,6 +656,13 @@ argparse@^1.0.7: dependencies: sprintf-js "~1.0.2" +arr-diff@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-1.1.0.tgz#687c32758163588fef7de7b36fabe495eb1a399a" + dependencies: + arr-flatten "^1.0.1" + array-slice "^0.2.3" + arr-diff@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" @@ -168,14 +677,14 @@ arr-flatten@^1.0.1, arr-flatten@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" +arr-union@^2.0.1: + version "2.1.0" + resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-2.1.0.tgz#20f9eab5ec70f5c7d215b1077b1c39161d292c7d" + arr-union@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" -array-differ@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/array-differ/-/array-differ-1.0.0.tgz#eff52e3758249d33be402b8bb8e564bb2b5d4031" - array-equal@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/array-equal/-/array-equal-1.0.0.tgz#8c2a5ef2472fd9ea742b04c77a75093ba2757c93" @@ -192,13 +701,17 @@ array-reduce@~0.0.0: version "0.0.0" resolved "https://registry.yarnpkg.com/array-reduce/-/array-reduce-0.0.0.tgz#173899d3ffd1c7d9383e4479525dbe278cab5f2b" +array-slice@^0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/array-slice/-/array-slice-0.2.3.tgz#dd3cfb80ed7973a75117cdac69b0b99ec86186f5" + array-union@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" dependencies: array-uniq "^1.0.1" -array-uniq@^1.0.1, array-uniq@^1.0.2: +array-uniq@^1.0.1: version "1.0.3" resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" @@ -241,10 +754,18 @@ assign-symbols@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" +astral-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" + async-each@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" +async-limiter@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.0.tgz#78faed8c3d074ab81f22b4e985d79e8738f720f8" + async@^1.4.0: version "1.5.2" resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" @@ -255,10 +776,6 @@ async@^2.1.4, async@^2.4.0: dependencies: lodash "^4.17.10" -async@~0.2.6: - version "0.2.10" - resolved "https://registry.yarnpkg.com/async/-/async-0.2.10.tgz#b6bbe0b0674b9d719708ca38de8c237cb526c3d1" - asynckit@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" @@ -337,7 +854,7 @@ babel-eslint@^7.2.3: babel-types "^6.23.0" babylon "^6.17.0" -babel-generator@^6.18.0, babel-generator@^6.24.1, babel-generator@^6.26.0: +babel-generator@^6.18.0, babel-generator@^6.26.0: version "6.26.1" resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.26.1.tgz#1844408d3b8f0d35a404ea7ac180f087a601bd90" dependencies: @@ -415,16 +932,6 @@ babel-helper-regex@^6.24.1: babel-types "^6.26.0" lodash "^4.17.4" -babel-helper-remap-async-to-generator@^6.16.0: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz#5ec581827ad723fecdd381f1c928390676e4551b" - dependencies: - babel-helper-function-name "^6.24.1" - babel-runtime "^6.22.0" - babel-template "^6.24.1" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - babel-helper-replace-supers@^6.24.1: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz#bf6dbfe43938d17369a213ca8a8bf74b6a90ab1a" @@ -443,21 +950,12 @@ babel-helpers@^6.24.1: babel-runtime "^6.22.0" babel-template "^6.24.1" -babel-jest@^16.0.0: - version "16.0.0" - resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-16.0.0.tgz#348729aea6d624a4774b8a934d07a40dd2cfd640" +babel-jest@23.2.0, babel-jest@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-23.2.0.tgz#14a9d6a3f4122dfea6069d37085adf26a53a4dba" dependencies: - babel-core "^6.0.0" - babel-plugin-istanbul "^2.0.0" - babel-preset-jest "^16.0.0" - -babel-jest@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-19.0.0.tgz#59323ced99a3a84d359da219ca881074ffc6ce3f" - dependencies: - babel-core "^6.0.0" - babel-plugin-istanbul "^4.0.0" - babel-preset-jest "^19.0.0" + babel-plugin-istanbul "^4.1.6" + babel-preset-jest "^23.2.0" babel-messages@^6.23.0: version "6.23.0" @@ -465,28 +963,19 @@ babel-messages@^6.23.0: dependencies: babel-runtime "^6.22.0" -babel-plugin-check-es2015-constants@^6.5.0, babel-plugin-check-es2015-constants@^6.7.2, babel-plugin-check-es2015-constants@^6.8.0: +babel-plugin-check-es2015-constants@^6.5.0, babel-plugin-check-es2015-constants@^6.8.0: version "6.22.0" resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a" dependencies: babel-runtime "^6.22.0" -babel-plugin-external-helpers@^6.18.0: +babel-plugin-external-helpers@^6.22.0: version "6.22.0" resolved "https://registry.yarnpkg.com/babel-plugin-external-helpers/-/babel-plugin-external-helpers-6.22.0.tgz#2285f48b02bd5dede85175caf8c62e86adccefa1" dependencies: babel-runtime "^6.22.0" -babel-plugin-istanbul@^2.0.0: - version "2.0.3" - resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-2.0.3.tgz#266b304b9109607d60748474394676982f660df4" - dependencies: - find-up "^1.1.2" - istanbul-lib-instrument "^1.1.4" - object-assign "^4.1.0" - test-exclude "^2.1.1" - -babel-plugin-istanbul@^4.0.0: +babel-plugin-istanbul@^4.1.6: version "4.1.6" resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-4.1.6.tgz#36c59b2192efce81c5b378321b74175add1c9a45" dependencies: @@ -495,21 +984,17 @@ babel-plugin-istanbul@^4.0.0: istanbul-lib-instrument "^1.10.1" test-exclude "^4.2.1" -babel-plugin-jest-hoist@^16.0.0: - version "16.0.0" - resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-16.0.0.tgz#b58ca3f770982a7e7c25b5614b2e57e9dafc6e76" +babel-plugin-jest-hoist@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-23.2.0.tgz#e61fae05a1ca8801aadee57a6d66b8cefaf44167" -babel-plugin-jest-hoist@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-19.0.0.tgz#4ae2a04ea612a6e73651f3fde52c178991304bea" - -babel-plugin-react-transform@2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/babel-plugin-react-transform/-/babel-plugin-react-transform-2.0.2.tgz#515bbfa996893981142d90b1f9b1635de2995109" +babel-plugin-react-transform@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/babel-plugin-react-transform/-/babel-plugin-react-transform-3.0.0.tgz#402f25137b7bb66e9b54ead75557dfbc7ecaaa74" dependencies: lodash "^4.6.1" -babel-plugin-syntax-async-functions@^6.5.0, babel-plugin-syntax-async-functions@^6.8.0: +babel-plugin-syntax-async-functions@^6.5.0: version "6.13.0" resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95" @@ -517,6 +1002,10 @@ babel-plugin-syntax-class-properties@^6.5.0, babel-plugin-syntax-class-propertie version "6.13.0" resolved "https://registry.yarnpkg.com/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz#d7eb23b79a317f8543962c505b827c7d6cac27de" +babel-plugin-syntax-dynamic-import@^6.18.0: + version "6.18.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz#8d6a26229c83745a9982a441051572caa179b1da" + babel-plugin-syntax-flow@^6.18.0, babel-plugin-syntax-flow@^6.5.0, babel-plugin-syntax-flow@^6.8.0: version "6.18.0" resolved "https://registry.yarnpkg.com/babel-plugin-syntax-flow/-/babel-plugin-syntax-flow-6.18.0.tgz#4c3ab20a2af26aa20cd25995c398c4eb70310c8d" @@ -525,23 +1014,15 @@ babel-plugin-syntax-jsx@^6.5.0, babel-plugin-syntax-jsx@^6.8.0: version "6.18.0" resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946" -babel-plugin-syntax-object-rest-spread@^6.13.0, babel-plugin-syntax-object-rest-spread@^6.5.0, babel-plugin-syntax-object-rest-spread@^6.8.0: +babel-plugin-syntax-object-rest-spread@^6.13.0, babel-plugin-syntax-object-rest-spread@^6.8.0: version "6.13.0" resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5" -babel-plugin-syntax-trailing-function-commas@^6.20.0, babel-plugin-syntax-trailing-function-commas@^6.5.0, babel-plugin-syntax-trailing-function-commas@^6.8.0: +babel-plugin-syntax-trailing-function-commas@^6.5.0, babel-plugin-syntax-trailing-function-commas@^6.8.0: version "6.22.0" resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz#ba0360937f8d06e40180a43fe0d5616fff532cf3" -babel-plugin-transform-async-to-generator@6.16.0: - version "6.16.0" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.16.0.tgz#19ec36cb1486b59f9f468adfa42ce13908ca2999" - dependencies: - babel-helper-remap-async-to-generator "^6.16.0" - babel-plugin-syntax-async-functions "^6.8.0" - babel-runtime "^6.0.0" - -babel-plugin-transform-class-properties@^6.18.0, babel-plugin-transform-class-properties@^6.5.0, babel-plugin-transform-class-properties@^6.6.0, babel-plugin-transform-class-properties@^6.8.0: +babel-plugin-transform-class-properties@^6.5.0, babel-plugin-transform-class-properties@^6.8.0: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz#6a79763ea61d33d36f37b611aa9def81a81b46ac" dependencies: @@ -550,19 +1031,19 @@ babel-plugin-transform-class-properties@^6.18.0, babel-plugin-transform-class-pr babel-runtime "^6.22.0" babel-template "^6.24.1" -babel-plugin-transform-es2015-arrow-functions@^6.5.0, babel-plugin-transform-es2015-arrow-functions@^6.5.2, babel-plugin-transform-es2015-arrow-functions@^6.8.0: +babel-plugin-transform-es2015-arrow-functions@^6.5.0, babel-plugin-transform-es2015-arrow-functions@^6.8.0: version "6.22.0" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221" dependencies: babel-runtime "^6.22.0" -babel-plugin-transform-es2015-block-scoped-functions@^6.6.5, babel-plugin-transform-es2015-block-scoped-functions@^6.8.0: +babel-plugin-transform-es2015-block-scoped-functions@^6.8.0: version "6.22.0" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz#bbc51b49f964d70cb8d8e0b94e820246ce3a6141" dependencies: babel-runtime "^6.22.0" -babel-plugin-transform-es2015-block-scoping@^6.5.0, babel-plugin-transform-es2015-block-scoping@^6.7.1, babel-plugin-transform-es2015-block-scoping@^6.8.0: +babel-plugin-transform-es2015-block-scoping@^6.5.0, babel-plugin-transform-es2015-block-scoping@^6.8.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz#d70f5299c1308d05c12f463813b0a09e73b1895f" dependencies: @@ -572,7 +1053,7 @@ babel-plugin-transform-es2015-block-scoping@^6.5.0, babel-plugin-transform-es201 babel-types "^6.26.0" lodash "^4.17.4" -babel-plugin-transform-es2015-classes@^6.5.0, babel-plugin-transform-es2015-classes@^6.6.5, babel-plugin-transform-es2015-classes@^6.8.0: +babel-plugin-transform-es2015-classes@^6.5.0, babel-plugin-transform-es2015-classes@^6.8.0: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db" dependencies: @@ -586,20 +1067,20 @@ babel-plugin-transform-es2015-classes@^6.5.0, babel-plugin-transform-es2015-clas babel-traverse "^6.24.1" babel-types "^6.24.1" -babel-plugin-transform-es2015-computed-properties@^6.5.0, babel-plugin-transform-es2015-computed-properties@^6.6.5, babel-plugin-transform-es2015-computed-properties@^6.8.0: +babel-plugin-transform-es2015-computed-properties@^6.5.0, babel-plugin-transform-es2015-computed-properties@^6.8.0: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3" dependencies: babel-runtime "^6.22.0" babel-template "^6.24.1" -babel-plugin-transform-es2015-destructuring@6.x, babel-plugin-transform-es2015-destructuring@^6.5.0, babel-plugin-transform-es2015-destructuring@^6.6.5, babel-plugin-transform-es2015-destructuring@^6.8.0: +babel-plugin-transform-es2015-destructuring@6.x, babel-plugin-transform-es2015-destructuring@^6.5.0, babel-plugin-transform-es2015-destructuring@^6.8.0: version "6.23.0" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d" dependencies: babel-runtime "^6.22.0" -babel-plugin-transform-es2015-for-of@^6.5.0, babel-plugin-transform-es2015-for-of@^6.6.0, babel-plugin-transform-es2015-for-of@^6.8.0: +babel-plugin-transform-es2015-for-of@^6.5.0, babel-plugin-transform-es2015-for-of@^6.8.0: version "6.23.0" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691" dependencies: @@ -619,7 +1100,7 @@ babel-plugin-transform-es2015-literals@^6.5.0, babel-plugin-transform-es2015-lit dependencies: babel-runtime "^6.22.0" -babel-plugin-transform-es2015-modules-commonjs@6.x, babel-plugin-transform-es2015-modules-commonjs@^6.5.0, babel-plugin-transform-es2015-modules-commonjs@^6.7.0, babel-plugin-transform-es2015-modules-commonjs@^6.8.0: +babel-plugin-transform-es2015-modules-commonjs@6.x, babel-plugin-transform-es2015-modules-commonjs@^6.5.0, babel-plugin-transform-es2015-modules-commonjs@^6.8.0: version "6.26.2" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz#58a793863a9e7ca870bdc5a881117ffac27db6f3" dependencies: @@ -628,14 +1109,14 @@ babel-plugin-transform-es2015-modules-commonjs@6.x, babel-plugin-transform-es201 babel-template "^6.26.0" babel-types "^6.26.0" -babel-plugin-transform-es2015-object-super@^6.6.5, babel-plugin-transform-es2015-object-super@^6.8.0: +babel-plugin-transform-es2015-object-super@^6.8.0: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d" dependencies: babel-helper-replace-supers "^6.24.1" babel-runtime "^6.22.0" -babel-plugin-transform-es2015-parameters@6.x, babel-plugin-transform-es2015-parameters@^6.5.0, babel-plugin-transform-es2015-parameters@^6.7.0, babel-plugin-transform-es2015-parameters@^6.8.0: +babel-plugin-transform-es2015-parameters@6.x, babel-plugin-transform-es2015-parameters@^6.5.0, babel-plugin-transform-es2015-parameters@^6.8.0: version "6.24.1" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b" dependencies: @@ -653,7 +1134,7 @@ babel-plugin-transform-es2015-shorthand-properties@6.x, babel-plugin-transform-e babel-runtime "^6.22.0" babel-types "^6.24.1" -babel-plugin-transform-es2015-spread@6.x, babel-plugin-transform-es2015-spread@^6.5.0, babel-plugin-transform-es2015-spread@^6.6.5, babel-plugin-transform-es2015-spread@^6.8.0: +babel-plugin-transform-es2015-spread@6.x, babel-plugin-transform-es2015-spread@^6.5.0, babel-plugin-transform-es2015-spread@^6.8.0: version "6.22.0" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz#d6d68a99f89aedc4536c81a542e8dd9f1746f8d1" dependencies: @@ -667,7 +1148,7 @@ babel-plugin-transform-es2015-sticky-regex@6.x: babel-runtime "^6.22.0" babel-types "^6.24.1" -babel-plugin-transform-es2015-template-literals@^6.5.0, babel-plugin-transform-es2015-template-literals@^6.6.5, babel-plugin-transform-es2015-template-literals@^6.8.0: +babel-plugin-transform-es2015-template-literals@^6.5.0, babel-plugin-transform-es2015-template-literals@^6.8.0: version "6.22.0" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz#a84b3450f7e9f8f1f6839d6d687da84bb1236d8d" dependencies: @@ -681,19 +1162,19 @@ babel-plugin-transform-es2015-unicode-regex@6.x: babel-runtime "^6.22.0" regexpu-core "^2.0.0" -babel-plugin-transform-es3-member-expression-literals@^6.5.0, babel-plugin-transform-es3-member-expression-literals@^6.8.0: +babel-plugin-transform-es3-member-expression-literals@^6.8.0: version "6.22.0" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es3-member-expression-literals/-/babel-plugin-transform-es3-member-expression-literals-6.22.0.tgz#733d3444f3ecc41bef8ed1a6a4e09657b8969ebb" dependencies: babel-runtime "^6.22.0" -babel-plugin-transform-es3-property-literals@^6.5.0, babel-plugin-transform-es3-property-literals@^6.8.0: +babel-plugin-transform-es3-property-literals@^6.8.0: version "6.22.0" resolved "https://registry.yarnpkg.com/babel-plugin-transform-es3-property-literals/-/babel-plugin-transform-es3-property-literals-6.22.0.tgz#b2078d5842e22abf40f73e8cde9cd3711abd5758" dependencies: babel-runtime "^6.22.0" -babel-plugin-transform-flow-strip-types@^6.21.0, babel-plugin-transform-flow-strip-types@^6.5.0, babel-plugin-transform-flow-strip-types@^6.7.0, babel-plugin-transform-flow-strip-types@^6.8.0: +babel-plugin-transform-flow-strip-types@^6.21.0, babel-plugin-transform-flow-strip-types@^6.5.0, babel-plugin-transform-flow-strip-types@^6.8.0: version "6.22.0" resolved "https://registry.yarnpkg.com/babel-plugin-transform-flow-strip-types/-/babel-plugin-transform-flow-strip-types-6.22.0.tgz#84cb672935d43714fdc32bce84568d87441cf7cf" dependencies: @@ -706,7 +1187,7 @@ babel-plugin-transform-object-assign@^6.5.0: dependencies: babel-runtime "^6.22.0" -babel-plugin-transform-object-rest-spread@^6.20.2, babel-plugin-transform-object-rest-spread@^6.5.0, babel-plugin-transform-object-rest-spread@^6.6.5, babel-plugin-transform-object-rest-spread@^6.8.0: +babel-plugin-transform-object-rest-spread@^6.5.0, babel-plugin-transform-object-rest-spread@^6.8.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz#0f36692d50fef6b7e2d4b3ac1478137a963b7b06" dependencies: @@ -747,7 +1228,7 @@ babel-plugin-transform-strict-mode@^6.24.1: babel-runtime "^6.22.0" babel-types "^6.24.1" -babel-polyfill@^6.20.0, babel-polyfill@^6.26.0: +babel-polyfill@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153" dependencies: @@ -769,36 +1250,7 @@ babel-preset-es2015-node@^6.1.1: babel-plugin-transform-es2015-unicode-regex "6.x" semver "5.x" -babel-preset-fbjs@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/babel-preset-fbjs/-/babel-preset-fbjs-1.0.0.tgz#c972e5c9b301d4ec9e7971f4aec3e14ac017a8b0" - dependencies: - babel-plugin-check-es2015-constants "^6.7.2" - babel-plugin-syntax-flow "^6.5.0" - babel-plugin-syntax-object-rest-spread "^6.5.0" - babel-plugin-syntax-trailing-function-commas "^6.5.0" - babel-plugin-transform-class-properties "^6.6.0" - babel-plugin-transform-es2015-arrow-functions "^6.5.2" - babel-plugin-transform-es2015-block-scoped-functions "^6.6.5" - babel-plugin-transform-es2015-block-scoping "^6.7.1" - babel-plugin-transform-es2015-classes "^6.6.5" - babel-plugin-transform-es2015-computed-properties "^6.6.5" - babel-plugin-transform-es2015-destructuring "^6.6.5" - babel-plugin-transform-es2015-for-of "^6.6.0" - babel-plugin-transform-es2015-literals "^6.5.0" - babel-plugin-transform-es2015-modules-commonjs "^6.7.0" - babel-plugin-transform-es2015-object-super "^6.6.5" - babel-plugin-transform-es2015-parameters "^6.7.0" - babel-plugin-transform-es2015-shorthand-properties "^6.5.0" - babel-plugin-transform-es2015-spread "^6.6.5" - babel-plugin-transform-es2015-template-literals "^6.6.5" - babel-plugin-transform-es3-member-expression-literals "^6.5.0" - babel-plugin-transform-es3-property-literals "^6.5.0" - babel-plugin-transform-flow-strip-types "^6.7.0" - babel-plugin-transform-object-rest-spread "^6.6.5" - object-assign "^4.0.1" - -babel-preset-fbjs@^2.1.0, babel-preset-fbjs@^2.1.2: +babel-preset-fbjs@^2.1.2, babel-preset-fbjs@^2.1.4: version "2.1.4" resolved "https://registry.yarnpkg.com/babel-preset-fbjs/-/babel-preset-fbjs-2.1.4.tgz#22f358e6654073acf61e47a052a777d7bccf03af" dependencies: @@ -831,26 +1283,22 @@ babel-preset-fbjs@^2.1.0, babel-preset-fbjs@^2.1.2: babel-plugin-transform-react-display-name "^6.8.0" babel-plugin-transform-react-jsx "^6.8.0" -babel-preset-jest@^16.0.0: - version "16.0.0" - resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-16.0.0.tgz#417aabc2d7d93170f43c20ef1ea0145e8f7f2db5" +babel-preset-jest@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-23.2.0.tgz#8ec7a03a138f001a1a8fb1e8113652bf1a55da46" dependencies: - babel-plugin-jest-hoist "^16.0.0" - -babel-preset-jest@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-19.0.0.tgz#22d67201d02324a195811288eb38294bb3cac396" - dependencies: - babel-plugin-jest-hoist "^19.0.0" + babel-plugin-jest-hoist "^23.2.0" + babel-plugin-syntax-object-rest-spread "^6.13.0" -babel-preset-react-native@^1.9.1, babel-preset-react-native@^1.9.2: - version "1.9.2" - resolved "https://registry.yarnpkg.com/babel-preset-react-native/-/babel-preset-react-native-1.9.2.tgz#b22addd2e355ff3b39671b79be807e52dfa145f2" +babel-preset-react-native@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/babel-preset-react-native/-/babel-preset-react-native-4.0.0.tgz#3df80dd33a453888cdd33bdb87224d17a5d73959" dependencies: babel-plugin-check-es2015-constants "^6.5.0" - babel-plugin-react-transform "2.0.2" + babel-plugin-react-transform "^3.0.0" babel-plugin-syntax-async-functions "^6.5.0" babel-plugin-syntax-class-properties "^6.5.0" + babel-plugin-syntax-dynamic-import "^6.18.0" babel-plugin-syntax-flow "^6.5.0" babel-plugin-syntax-jsx "^6.5.0" babel-plugin-syntax-trailing-function-commas "^6.5.0" @@ -875,8 +1323,41 @@ babel-preset-react-native@^1.9.1, babel-preset-react-native@^1.9.2: babel-plugin-transform-react-jsx "^6.5.0" babel-plugin-transform-react-jsx-source "^6.5.0" babel-plugin-transform-regenerator "^6.5.0" + babel-template "^6.24.1" react-transform-hmr "^1.0.4" +babel-preset-react-native@^5.0.0: + version "5.0.2" + resolved "https://registry.yarnpkg.com/babel-preset-react-native/-/babel-preset-react-native-5.0.2.tgz#dfed62379712a9c017ff99ce4fbeac1e11d42285" + dependencies: + "@babel/plugin-proposal-class-properties" "7.0.0-beta.47" + "@babel/plugin-proposal-object-rest-spread" "7.0.0-beta.47" + "@babel/plugin-proposal-optional-chaining" "7.0.0-beta.47" + "@babel/plugin-transform-arrow-functions" "7.0.0-beta.47" + "@babel/plugin-transform-block-scoping" "7.0.0-beta.47" + "@babel/plugin-transform-classes" "7.0.0-beta.47" + "@babel/plugin-transform-computed-properties" "7.0.0-beta.47" + "@babel/plugin-transform-destructuring" "7.0.0-beta.47" + "@babel/plugin-transform-exponentiation-operator" "7.0.0-beta.47" + "@babel/plugin-transform-flow-strip-types" "7.0.0-beta.47" + "@babel/plugin-transform-for-of" "7.0.0-beta.47" + "@babel/plugin-transform-function-name" "7.0.0-beta.47" + "@babel/plugin-transform-literals" "7.0.0-beta.47" + "@babel/plugin-transform-modules-commonjs" "7.0.0-beta.47" + "@babel/plugin-transform-object-assign" "7.0.0-beta.47" + "@babel/plugin-transform-parameters" "7.0.0-beta.47" + "@babel/plugin-transform-react-display-name" "7.0.0-beta.47" + "@babel/plugin-transform-react-jsx" "7.0.0-beta.47" + "@babel/plugin-transform-react-jsx-source" "7.0.0-beta.47" + "@babel/plugin-transform-regenerator" "7.0.0-beta.47" + "@babel/plugin-transform-shorthand-properties" "7.0.0-beta.47" + "@babel/plugin-transform-spread" "7.0.0-beta.47" + "@babel/plugin-transform-sticky-regex" "7.0.0-beta.47" + "@babel/plugin-transform-template-literals" "7.0.0-beta.47" + "@babel/plugin-transform-unicode-regex" "7.0.0-beta.47" + "@babel/template" "7.0.0-beta.47" + metro-babel7-plugin-react-transform "^0.39.1" + babel-register@^6.24.1, babel-register@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071" @@ -889,7 +1370,7 @@ babel-register@^6.24.1, babel-register@^6.26.0: mkdirp "^0.5.1" source-map-support "^0.4.15" -babel-runtime@^6.0.0, babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.23.0, babel-runtime@^6.26.0: +babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" dependencies: @@ -906,7 +1387,7 @@ babel-template@^6.16.0, babel-template@^6.24.1, babel-template@^6.26.0: babylon "^6.18.0" lodash "^4.17.4" -babel-traverse@^6.18.0, babel-traverse@^6.23.1, babel-traverse@^6.24.1, babel-traverse@^6.26.0: +babel-traverse@^6.0.0, babel-traverse@^6.18.0, babel-traverse@^6.23.1, babel-traverse@^6.24.1, babel-traverse@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" dependencies: @@ -920,7 +1401,7 @@ babel-traverse@^6.18.0, babel-traverse@^6.23.1, babel-traverse@^6.24.1, babel-tr invariant "^2.2.2" lodash "^4.17.4" -babel-types@^6.18.0, babel-types@^6.19.0, babel-types@^6.23.0, babel-types@^6.24.1, babel-types@^6.26.0: +babel-types@^6.0.0, babel-types@^6.18.0, babel-types@^6.19.0, babel-types@^6.23.0, babel-types@^6.24.1, babel-types@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" dependencies: @@ -929,6 +1410,10 @@ babel-types@^6.18.0, babel-types@^6.19.0, babel-types@^6.23.0, babel-types@^6.24 lodash "^4.17.4" to-fast-properties "^1.0.3" +babylon@7.0.0-beta.47: + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.47.tgz#6d1fa44f0abec41ab7c780481e62fd9aafbdea80" + babylon@^6.17.0, babylon@^6.18.0: version "6.18.0" resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" @@ -937,22 +1422,14 @@ balanced-match@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" -base64-js@0.0.8: - version "0.0.8" - resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-0.0.8.tgz#1101e9544f4a76b1bc3b26d452ca96d7a35e7978" - base64-js@1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.1.2.tgz#d6400cac1c4c660976d90d07a04351d89395f5e8" -base64-js@^1.1.2: +base64-js@^1.1.2, base64-js@^1.2.3: version "1.3.0" resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.3.0.tgz#cab1e6118f051095e58b5281aea8c1cd22bfc0e3" -base64-url@1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/base64-url/-/base64-url-1.2.1.tgz#199fd661702a0e7b7dcae6e0698bb089c52f6d78" - base@^0.11.1: version "0.11.2" resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" @@ -965,31 +1442,21 @@ base@^0.11.1: mixin-deep "^1.2.0" pascalcase "^0.1.1" -basic-auth-connect@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/basic-auth-connect/-/basic-auth-connect-1.0.0.tgz#fdb0b43962ca7b40456a7c2bb48fe173da2d2122" - -basic-auth@~1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/basic-auth/-/basic-auth-1.0.4.tgz#030935b01de7c9b94a824b29f3fccb750d3a5290" - -batch@0.5.3: - version "0.5.3" - resolved "https://registry.yarnpkg.com/batch/-/batch-0.5.3.tgz#3f3414f380321743bfc1042f9a83ff1d5824d464" +basic-auth@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/basic-auth/-/basic-auth-2.0.0.tgz#015db3f353e02e56377755f962742e8981e7bbba" + dependencies: + safe-buffer "5.1.1" bcrypt-pbkdf@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz#63bc5dcb61331b92bc05fd528953c33462a06f8d" + version "1.0.2" + resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" dependencies: tweetnacl "^0.14.3" -beeper@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/beeper/-/beeper-1.1.1.tgz#e6d5ea8c5dad001304a70b22638447f69cb2f809" - big-integer@^1.6.7: - version "1.6.31" - resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.31.tgz#6d7852486e67c642502dcc03f7225a245c9fc7fa" + version "1.6.32" + resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.32.tgz#5867458b25ecd5bcb36b627c30bb501a13c07e89" binary-extensions@^1.0.0: version "1.11.0" @@ -999,21 +1466,6 @@ blueimp-md5@^2.5.0: version "2.10.0" resolved "https://registry.yarnpkg.com/blueimp-md5/-/blueimp-md5-2.10.0.tgz#02f0843921f90dca14f5b8920a38593201d6964d" -body-parser@~1.13.3: - version "1.13.3" - resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.13.3.tgz#c08cf330c3358e151016a05746f13f029c97fa97" - dependencies: - bytes "2.1.0" - content-type "~1.0.1" - debug "~2.2.0" - depd "~1.0.1" - http-errors "~1.3.1" - iconv-lite "0.4.11" - on-finished "~2.3.0" - qs "4.0.0" - raw-body "~2.1.2" - type-is "~1.6.6" - bplist-creator@0.0.7: version "0.0.7" resolved "https://registry.yarnpkg.com/bplist-creator/-/bplist-creator-0.0.7.tgz#37df1536092824b87c42f957b01344117372ae45" @@ -1056,23 +1508,15 @@ braces@^2.3.1: split-string "^3.0.2" to-regex "^3.0.1" -browser-resolve@^1.11.2: - version "1.11.2" - resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.2.tgz#8ff09b0a2c421718a1051c260b32e48f442938ce" - dependencies: - resolve "1.1.7" - -bser@1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/bser/-/bser-1.0.2.tgz#381116970b2a6deea5646dd15dd7278444b56169" - dependencies: - node-int64 "^0.4.0" +browser-process-hrtime@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-0.1.2.tgz#425d68a58d3447f02a04aa894187fce8af8b7b8e" -bser@^1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/bser/-/bser-1.0.3.tgz#d63da19ee17330a0e260d2a34422b21a89520317" +browser-resolve@^1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.3.tgz#9b7cbb3d0f510e4cb86bdbd796124d28b5890af6" dependencies: - node-int64 "^0.4.0" + resolve "1.1.7" bser@^2.0.0: version "2.0.0" @@ -1088,13 +1532,9 @@ builtin-modules@^1.0.0, builtin-modules@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" -bytes@2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/bytes/-/bytes-2.1.0.tgz#ac93c410e2ffc9cc7cf4b464b38289067f5e47b4" - -bytes@2.4.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/bytes/-/bytes-2.4.0.tgz#7d97196f9d5baf7f6935e25985549edd2a6c2339" +bytes@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" cache-base@^1.0.1: version "1.0.1" @@ -1128,14 +1568,16 @@ camelcase@^1.0.2: version "1.2.1" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" -camelcase@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a" - camelcase@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" +capture-exit@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/capture-exit/-/capture-exit-1.2.0.tgz#1c5fcc489fd0ab00d4f1ac7ae1072e3173fbab6f" + dependencies: + rsvp "^3.3.3" + caseless@~0.12.0: version "0.12.0" resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" @@ -1167,7 +1609,7 @@ chalk@^1.0.0, chalk@^1.1.1, chalk@^1.1.3: strip-ansi "^3.0.0" supports-color "^2.0.0" -chalk@^2.0.0: +chalk@^2.0.0, chalk@^2.0.1: version "2.4.1" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e" dependencies: @@ -1251,13 +1693,17 @@ cliui@^3.2.0: strip-ansi "^3.0.1" wrap-ansi "^2.0.0" -clone-stats@^0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/clone-stats/-/clone-stats-0.0.1.tgz#b88f94a82cf38b8791d58046ea4029ad88ca99d1" +cliui@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-4.1.0.tgz#348422dbe82d800b3022eef4f6ac10bf2e4d1b49" + dependencies: + string-width "^2.1.1" + strip-ansi "^4.0.0" + wrap-ansi "^2.0.0" -clone@^1.0.0: - version "1.0.4" - resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" +clorox@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/clorox/-/clorox-1.0.3.tgz#6fa63653f280c33d69f548fb14d239ddcfa1590d" co@^4.6.0: version "4.6.0" @@ -1313,8 +1759,16 @@ combined-stream@1.0.6, combined-stream@~1.0.5: delayed-stream "~1.0.0" commander@^2.11.0, commander@^2.9.0: - version "2.15.1" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.15.1.tgz#df46e867d0fc2aec66a34662b406a9ccafff5b0f" + version "2.16.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.16.0.tgz#f16390593996ceb4f3eeb020b31d78528f7f8a50" + +commander@~2.13.0: + version "2.13.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.13.0.tgz#6964bca67685df7c1f1430c584f07d7597885b9c" + +commondir@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" compare-versions@^3.1.0: version "3.3.0" @@ -1324,22 +1778,23 @@ component-emitter@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.2.1.tgz#137918d6d78283f7df7a6b7c5a63e140e69425e6" -compressible@~2.0.5: +compressible@~2.0.13: version "2.0.14" resolved "https://registry.yarnpkg.com/compressible/-/compressible-2.0.14.tgz#326c5f507fbb055f54116782b969a81b67a29da7" dependencies: mime-db ">= 1.34.0 < 2" -compression@~1.5.2: - version "1.5.2" - resolved "http://registry.npmjs.org/compression/-/compression-1.5.2.tgz#b03b8d86e6f8ad29683cba8df91ddc6ffc77b395" +compression@^1.7.1: + version "1.7.2" + resolved "http://registry.npmjs.org/compression/-/compression-1.7.2.tgz#aaffbcd6aaf854b44ebb280353d5ad1651f59a69" dependencies: - accepts "~1.2.12" - bytes "2.1.0" - compressible "~2.0.5" - debug "~2.2.0" - on-headers "~1.0.0" - vary "~1.0.1" + accepts "~1.3.4" + bytes "3.0.0" + compressible "~2.0.13" + debug "2.6.9" + on-headers "~1.0.1" + safe-buffer "5.1.1" + vary "~1.1.2" concat-map@0.0.1: version "0.0.1" @@ -1354,50 +1809,14 @@ concat-stream@^1.5.2, concat-stream@^1.6.0: readable-stream "^2.2.2" typedarray "^0.0.6" -connect-timeout@~1.6.2: - version "1.6.2" - resolved "https://registry.yarnpkg.com/connect-timeout/-/connect-timeout-1.6.2.tgz#de9a5ec61e33a12b6edaab7b5f062e98c599b88e" - dependencies: - debug "~2.2.0" - http-errors "~1.3.1" - ms "0.7.1" - on-headers "~1.0.0" - -connect@^2.8.3: - version "2.30.2" - resolved "https://registry.yarnpkg.com/connect/-/connect-2.30.2.tgz#8da9bcbe8a054d3d318d74dfec903b5c39a1b609" - dependencies: - basic-auth-connect "1.0.0" - body-parser "~1.13.3" - bytes "2.1.0" - compression "~1.5.2" - connect-timeout "~1.6.2" - content-type "~1.0.1" - cookie "0.1.3" - cookie-parser "~1.3.5" - cookie-signature "1.0.6" - csurf "~1.8.3" - debug "~2.2.0" - depd "~1.0.1" - errorhandler "~1.4.2" - express-session "~1.11.3" - finalhandler "0.4.0" - fresh "0.3.0" - http-errors "~1.3.1" - method-override "~2.3.5" - morgan "~1.6.1" - multiparty "3.3.2" - on-headers "~1.0.0" - parseurl "~1.3.0" - pause "0.1.0" - qs "4.0.0" - response-time "~2.3.1" - serve-favicon "~2.3.0" - serve-index "~1.7.2" - serve-static "~1.10.0" - type-is "~1.6.6" - utils-merge "1.0.0" - vhost "~3.0.1" +connect@^3.6.5: + version "3.6.6" + resolved "https://registry.yarnpkg.com/connect/-/connect-3.6.6.tgz#09eff6c55af7236e137135a72574858b6786f524" + dependencies: + debug "2.6.9" + finalhandler "1.1.0" + parseurl "~1.3.2" + utils-merge "1.0.1" console-control-strings@^1.0.0, console-control-strings@~1.1.0: version "1.1.0" @@ -1407,33 +1826,10 @@ contains-path@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a" -content-type-parser@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/content-type-parser/-/content-type-parser-1.0.2.tgz#caabe80623e63638b2502fd4c7f12ff4ce2352e7" - -content-type@~1.0.1: - version "1.0.4" - resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b" - -convert-source-map@^1.5.0, convert-source-map@^1.5.1: +convert-source-map@^1.1.0, convert-source-map@^1.4.0, convert-source-map@^1.5.0, convert-source-map@^1.5.1: version "1.5.1" resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.1.tgz#b8278097b9bc229365de5c62cf5fcaed8b5599e5" -cookie-parser@~1.3.5: - version "1.3.5" - resolved "https://registry.yarnpkg.com/cookie-parser/-/cookie-parser-1.3.5.tgz#9d755570fb5d17890771227a02314d9be7cf8356" - dependencies: - cookie "0.1.3" - cookie-signature "1.0.6" - -cookie-signature@1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" - -cookie@0.1.3: - version "0.1.3" - resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.1.3.tgz#e734a5c1417fce472d5aef82c381cabb64d1a435" - copy-descriptor@^0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" @@ -1442,7 +1838,7 @@ core-js@^1.0.0: version "1.2.7" resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" -core-js@^2.2.2, core-js@^2.4.0, core-js@^2.5.0: +core-js@^2.2.2, core-js@^2.4.0, core-js@^2.4.1, core-js@^2.5.0, core-js@^2.5.3: version "2.5.7" resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.7.tgz#f972608ff0cead68b841a16a932d0b183791814e" @@ -1450,11 +1846,7 @@ core-util-is@1.0.2, core-util-is@~1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" -crc@3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/crc/-/crc-3.3.0.tgz#fa622e1bc388bf257309082d6b65200ce67090ba" - -create-react-class@^15.5.2: +create-react-class@^15.6.3: version "15.6.3" resolved "https://registry.yarnpkg.com/create-react-class/-/create-react-class-15.6.3.tgz#2d73237fb3f970ae6ebe011a9e66f46dbca80036" dependencies: @@ -1462,14 +1854,7 @@ create-react-class@^15.5.2: loose-envify "^1.3.1" object-assign "^4.1.1" -cross-spawn@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-3.0.1.tgz#1256037ecb9f0c5f79e3d6ef135e30770184b982" - dependencies: - lru-cache "^4.0.1" - which "^1.2.9" - -cross-spawn@^5.0.1: +cross-spawn@^5.0.1, cross-spawn@^5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" dependencies: @@ -1477,33 +1862,16 @@ cross-spawn@^5.0.1: shebang-command "^1.2.0" which "^1.2.9" -csrf@~3.0.0: - version "3.0.6" - resolved "https://registry.yarnpkg.com/csrf/-/csrf-3.0.6.tgz#b61120ddceeafc91e76ed5313bb5c0b2667b710a" - dependencies: - rndm "1.2.0" - tsscmp "1.0.5" - uid-safe "2.1.4" - cssom@0.3.x, "cssom@>= 0.3.2 < 0.4.0": - version "0.3.2" - resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.2.tgz#b8036170c79f07a90ff2f16e22284027a243848b" + version "0.3.4" + resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.4.tgz#8cd52e8a3acfd68d3aed38ee0a640177d2f9d797" -"cssstyle@>= 0.2.37 < 0.3.0": - version "0.2.37" - resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-0.2.37.tgz#541097234cb2513c83ceed3acddc27ff27987d54" +"cssstyle@>= 0.3.1 < 0.4.0": + version "0.3.1" + resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-0.3.1.tgz#6da9b4cff1bc5d716e6e5fe8e04fcb1b50a49adf" dependencies: cssom "0.3.x" -csurf@~1.8.3: - version "1.8.3" - resolved "https://registry.yarnpkg.com/csurf/-/csurf-1.8.3.tgz#23f2a13bf1d8fce1d0c996588394442cba86a56a" - dependencies: - cookie "0.1.3" - cookie-signature "1.0.6" - csrf "~3.0.0" - http-errors "~1.3.1" - d@1: version "1.0.0" resolved "https://registry.yarnpkg.com/d/-/d-1.0.0.tgz#754bb5bfe55451da69a58b94d45f4c5b0462d58f" @@ -1520,9 +1888,13 @@ dashdash@^1.12.0: dependencies: assert-plus "^1.0.0" -dateformat@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-2.2.0.tgz#4065e2013cf9fb916ddfd82efb506ad4c6769062" +data-urls@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-1.0.0.tgz#24802de4e81c298ea8a9388bb0d8e461c774684f" + dependencies: + abab "^1.0.4" + whatwg-mimetype "^2.0.0" + whatwg-url "^6.4.0" debug@2.6.9, debug@^2.1.1, debug@^2.1.2, debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9: version "2.6.9" @@ -1532,15 +1904,9 @@ debug@2.6.9, debug@^2.1.1, debug@^2.1.2, debug@^2.2.0, debug@^2.3.3, debug@^2.6. debug@^3.1.0: version "3.1.0" - resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" - dependencies: - ms "2.0.0" - -debug@~2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.2.0.tgz#f87057e995b1a1f6ae6a4960664137bc56f039da" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" dependencies: - ms "0.7.1" + ms "2.0.0" decamelize@^1.0.0, decamelize@^1.1.1: version "1.2.0" @@ -1614,11 +1980,7 @@ denodeify@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/denodeify/-/denodeify-1.2.1.tgz#3a36287f5034e699e7577901052c2e6c94251631" -depd@~1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/depd/-/depd-1.0.1.tgz#80aec64c9d6d97e65cc2a9caa93c0aa6abf73aaa" - -depd@~1.1.0: +depd@~1.1.1, depd@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" @@ -1636,7 +1998,11 @@ detect-libc@^1.0.2: version "1.0.3" resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" -diff@^3.0.0: +detect-newline@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2" + +diff@^3.2.0: version "3.5.0" resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" @@ -1664,11 +2030,11 @@ dom-walk@^0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/dom-walk/-/dom-walk-0.1.1.tgz#672226dc74c8f799ad35307df936aba11acd6018" -duplexer2@0.0.2: - version "0.0.2" - resolved "https://registry.yarnpkg.com/duplexer2/-/duplexer2-0.0.2.tgz#c614dcf67e2fb14995a91711e5a617e8a60a31db" +domexception@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/domexception/-/domexception-1.0.1.tgz#937442644ca6a31261ef36e3ec677fe805582c90" dependencies: - readable-stream "~1.1.9" + webidl-conversions "^4.0.2" ecc-jsbn@~0.1.1: version "0.1.1" @@ -1680,32 +2046,34 @@ ee-first@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" +encodeurl@~1.0.1, encodeurl@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" + encoding@^0.1.11: version "0.1.12" resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.12.tgz#538b66f3ee62cd1ab51ec323829d1f9480c74beb" dependencies: iconv-lite "~0.4.13" -"errno@>=0.1.1 <0.2.0-0", errno@~0.1.7: - version "0.1.7" - resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.7.tgz#4684d71779ad39af177e3f007996f7c67c852618" - dependencies: - prr "~1.0.1" +envinfo@^5.7.0: + version "5.10.0" + resolved "https://registry.yarnpkg.com/envinfo/-/envinfo-5.10.0.tgz#503a9774ae15b93ea68bdfae2ccd6306624ea6df" error-ex@^1.2.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.1.tgz#f855a86ce61adc4e8621c3cda21e7a7612c3a8dc" + version "1.3.2" + resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" dependencies: is-arrayish "^0.2.1" -errorhandler@~1.4.2: - version "1.4.3" - resolved "https://registry.yarnpkg.com/errorhandler/-/errorhandler-1.4.3.tgz#b7b70ed8f359e9db88092f2d20c0f831420ad83f" +errorhandler@^1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/errorhandler/-/errorhandler-1.5.0.tgz#eaba64ca5d542a311ac945f582defc336165d9f4" dependencies: - accepts "~1.3.0" + accepts "~1.3.3" escape-html "~1.0.3" -es-abstract@^1.7.0: +es-abstract@^1.5.1, es-abstract@^1.7.0: version "1.12.0" resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.12.0.tgz#9dbbdd27c6856f0001421ca18782d786bf8a6165" dependencies: @@ -1776,10 +2144,6 @@ es6-weak-map@^2.0.1: es6-iterator "^2.0.1" es6-symbol "^3.1.1" -escape-html@1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.2.tgz#d77d32fa98e38c2f41ae85e9278e0e0e6ba1022c" - escape-html@~1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" @@ -1788,7 +2152,7 @@ escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" -escodegen@^1.6.1: +escodegen@^1.9.0: version "1.10.0" resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.10.0.tgz#f647395de22519fbd0d928ffcf1d17e0dec2603e" dependencies: @@ -1940,13 +2304,13 @@ estraverse@^4.0.0, estraverse@^4.1.0, estraverse@^4.1.1, estraverse@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" -esutils@^2.0.2: +esutils@^2.0.0, esutils@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" -etag@~1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/etag/-/etag-1.7.0.tgz#03d30b5f67dd6e632d2945d30d6652731a34d5d8" +etag@~1.8.1: + version "1.8.1" + resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" event-emitter@~0.3.5: version "0.3.5" @@ -1959,11 +2323,15 @@ event-target-shim@^1.0.5: version "1.1.1" resolved "https://registry.yarnpkg.com/event-target-shim/-/event-target-shim-1.1.1.tgz#a86e5ee6bdaa16054475da797ccddf0c55698491" +eventemitter3@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-3.1.0.tgz#090b4d6cdbd645ed10bf750d4b5407942d7ba163" + exec-sh@^0.2.0: - version "0.2.1" - resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.2.1.tgz#163b98a6e89e6b65b47c2a28d215bc1f63989c38" + version "0.2.2" + resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.2.2.tgz#2a5e7ffcbd7d0ba2755bdecb16e5a427dfbdec36" dependencies: - merge "^1.1.3" + merge "^1.2.0" execa@^0.7.0: version "0.7.0" @@ -1981,6 +2349,10 @@ exit-hook@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/exit-hook/-/exit-hook-1.1.1.tgz#f05ca233b48c05d54fff07765df8507e95c02ff8" +exit@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" + expand-brackets@^0.1.4: version "0.1.5" resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" @@ -2005,19 +2377,22 @@ expand-range@^1.8.1: dependencies: fill-range "^2.1.0" -express-session@~1.11.3: - version "1.11.3" - resolved "https://registry.yarnpkg.com/express-session/-/express-session-1.11.3.tgz#5cc98f3f5ff84ed835f91cbf0aabd0c7107400af" - dependencies: - cookie "0.1.3" - cookie-signature "1.0.6" - crc "3.3.0" - debug "~2.2.0" - depd "~1.0.1" - on-headers "~1.0.0" - parseurl "~1.3.0" - uid-safe "~2.0.0" - utils-merge "1.0.0" +expect@^23.3.0: + version "23.3.0" + resolved "https://registry.yarnpkg.com/expect/-/expect-23.3.0.tgz#ecb051adcbdc40ac4db576c16067f12fdb13cc61" + dependencies: + ansi-styles "^3.2.0" + jest-diff "^23.2.0" + jest-get-type "^22.1.0" + jest-matcher-utils "^23.2.0" + jest-message-util "^23.3.0" + jest-regex-util "^23.3.0" + +extend-shallow@^1.1.2: + version "1.1.4" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-1.1.4.tgz#19d6bf94dfc09d76ba711f39b872d21ff4dd9071" + dependencies: + kind-of "^1.1.0" extend-shallow@^2.0.1: version "2.0.1" @@ -2071,7 +2446,7 @@ extsprintf@^1.2.0: version "1.4.0" resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" -fancy-log@^1.1.0: +fancy-log@^1.3.2: version "1.3.2" resolved "https://registry.yarnpkg.com/fancy-log/-/fancy-log-1.3.2.tgz#f41125e3d84f2e7d89a43d06d958c8f78be16be1" dependencies: @@ -2091,34 +2466,30 @@ fast-levenshtein@~2.0.4: version "2.0.6" resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" -fb-watchman@^1.8.0: - version "1.9.2" - resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-1.9.2.tgz#a24cf47827f82d38fb59a69ad70b76e3b6ae7383" - dependencies: - bser "1.0.2" - fb-watchman@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.0.tgz#54e9abf7dfa2f26cd9b1636c588c1afc05de5d58" dependencies: bser "^2.0.0" -fbjs-scripts@^0.7.0: - version "0.7.1" - resolved "https://registry.yarnpkg.com/fbjs-scripts/-/fbjs-scripts-0.7.1.tgz#4f115e218e243e3addbf0eddaac1e3c62f703fac" +fbjs-scripts@^0.8.1: + version "0.8.3" + resolved "https://registry.yarnpkg.com/fbjs-scripts/-/fbjs-scripts-0.8.3.tgz#b854de7a11e62a37f72dab9aaf4d9b53c4a03174" dependencies: + ansi-colors "^1.0.1" babel-core "^6.7.2" - babel-preset-fbjs "^1.0.0" - core-js "^1.0.0" - cross-spawn "^3.0.1" - gulp-util "^3.0.4" + babel-preset-fbjs "^2.1.2" + core-js "^2.4.1" + cross-spawn "^5.1.0" + fancy-log "^1.3.2" object-assign "^4.0.1" + plugin-error "^0.1.2" semver "^5.1.0" through2 "^2.0.0" -fbjs@0.8.12: - version "0.8.12" - resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.12.tgz#10b5d92f76d45575fd63a217d4ea02bea2f8ed04" +fbjs@0.8.16: + version "0.8.16" + resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.16.tgz#5e67432f550dc41b572bf55847b8aca64e5337db" dependencies: core-js "^1.0.0" isomorphic-fetch "^2.1.1" @@ -2128,7 +2499,7 @@ fbjs@0.8.12: setimmediate "^1.0.5" ua-parser-js "^0.7.9" -fbjs@^0.8.16, fbjs@^0.8.9: +fbjs@^0.8.14, fbjs@^0.8.16, fbjs@^0.8.9: version "0.8.17" resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.17.tgz#c4d598ead6949112653d6588b01a5cdcd9f90fdd" dependencies: @@ -2190,16 +2561,27 @@ fill-range@^4.0.0: repeat-string "^1.6.1" to-regex-range "^2.1.0" -finalhandler@0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-0.4.0.tgz#965a52d9e8d05d2b857548541fb89b53a2497d9b" +finalhandler@1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.0.tgz#ce0b6855b45853e791b2fcc680046d88253dd7f5" dependencies: - debug "~2.2.0" - escape-html "1.0.2" + debug "2.6.9" + encodeurl "~1.0.1" + escape-html "~1.0.3" on-finished "~2.3.0" + parseurl "~1.3.2" + statuses "~1.3.1" unpipe "~1.0.0" -find-up@^1.0.0, find-up@^1.1.2: +find-cache-dir@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-1.0.0.tgz#9288e3e9e3cc3748717d39eade17cf71fc30ee6f" + dependencies: + commondir "^1.0.1" + make-dir "^1.0.0" + pkg-dir "^2.0.0" + +find-up@^1.0.0: version "1.1.2" resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" dependencies: @@ -2243,7 +2625,7 @@ forever-agent@~0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" -form-data@^2.1.1, form-data@~2.3.1: +form-data@~2.3.1: version "2.3.2" resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.2.tgz#4970498be604c20c005d4f5c23aecd21d6b49099" dependencies: @@ -2257,9 +2639,9 @@ fragment-cache@^0.2.1: dependencies: map-cache "^0.2.2" -fresh@0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.3.0.tgz#651f838e22424e7566de161d8358caa199f83d4f" +fresh@0.5.2: + version "0.5.2" + resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" fs-extra@^1.0.0: version "1.0.0" @@ -2290,7 +2672,7 @@ fs.realpath@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" -fsevents@^1.0.0: +fsevents@^1.0.0, fsevents@^1.2.3: version "1.2.4" resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.4.tgz#f41dcb1af2582af3692da36fc55cbd8e1041c426" dependencies: @@ -2383,6 +2765,10 @@ global@^4.3.0: min-document "^2.19.0" process "~0.5.1" +globals@^11.1.0: + version "11.7.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-11.7.0.tgz#a583faa43055b1aca771914bf68258e2fc125673" + globals@^9.14.0, globals@^9.18.0: version "9.18.0" resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" @@ -2398,12 +2784,6 @@ globby@^5.0.0: pify "^2.0.0" pinkie-promise "^2.0.0" -glogg@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/glogg/-/glogg-1.0.1.tgz#dcf758e44789cc3f3d32c1f3562a3676e6a34810" - dependencies: - sparkles "^1.0.0" - graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.3, graceful-fs@^4.1.4, graceful-fs@^4.1.6, graceful-fs@^4.1.9: version "4.1.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" @@ -2412,35 +2792,6 @@ growly@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" -gulp-util@^3.0.4: - version "3.0.8" - resolved "https://registry.yarnpkg.com/gulp-util/-/gulp-util-3.0.8.tgz#0054e1e744502e27c04c187c3ecc505dd54bbb4f" - dependencies: - array-differ "^1.0.0" - array-uniq "^1.0.2" - beeper "^1.0.0" - chalk "^1.0.0" - dateformat "^2.0.0" - fancy-log "^1.1.0" - gulplog "^1.0.0" - has-gulplog "^0.1.0" - lodash._reescape "^3.0.0" - lodash._reevaluate "^3.0.0" - lodash._reinterpolate "^3.0.0" - lodash.template "^3.0.0" - minimist "^1.1.0" - multipipe "^0.1.2" - object-assign "^3.0.0" - replace-ext "0.0.1" - through2 "^2.0.0" - vinyl "^0.5.0" - -gulplog@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/gulplog/-/gulplog-1.0.0.tgz#e28c4d45d05ecbbed818363ce8f9c5926229ffe5" - dependencies: - glogg "^1.0.0" - handlebars@^4.0.3: version "4.0.11" resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.11.tgz#630a35dfe0294bc281edae6ffc5d329fc7982dcc" @@ -2476,12 +2827,6 @@ has-flag@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" -has-gulplog@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/has-gulplog/-/has-gulplog-0.1.0.tgz#6414c82913697da51590397dafb12f22967811ce" - dependencies: - sparkles "^1.0.0" - has-symbols@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.0.tgz#ba1a8f1af2a0fc39650f5c850367704122063b44" @@ -2534,22 +2879,28 @@ home-or-tmp@^2.0.0: os-homedir "^1.0.0" os-tmpdir "^1.0.1" +home-or-tmp@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-3.0.0.tgz#57a8fe24cf33cdd524860a15821ddc25c86671fb" + hosted-git-info@^2.1.4: - version "2.6.0" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.6.0.tgz#23235b29ab230c576aab0d4f13fc046b0b038222" + version "2.6.1" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.6.1.tgz#6e4cee78b01bb849dcf93527708c69fdbee410df" -html-encoding-sniffer@^1.0.1: +html-encoding-sniffer@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz#e70d84b94da53aa375e11fe3a351be6642ca46f8" dependencies: whatwg-encoding "^1.0.1" -http-errors@~1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.3.1.tgz#197e22cdebd4198585e8694ef6786197b91ed942" +http-errors@~1.6.2: + version "1.6.3" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.3.tgz#8b55680bb4be283a0b5bf4ea2e38580be1d9320d" dependencies: - inherits "~2.0.1" - statuses "1" + depd "~1.1.2" + inherits "2.0.3" + setprototypeof "1.1.0" + statuses ">= 1.4.0 < 2" http-signature@~1.2.0: version "1.2.0" @@ -2559,14 +2910,6 @@ http-signature@~1.2.0: jsprim "^1.2.2" sshpk "^1.7.0" -iconv-lite@0.4.11: - version "0.4.11" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.11.tgz#2ecb42fd294744922209a2e7c404dac8793d8ade" - -iconv-lite@0.4.13: - version "0.4.13" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.13.tgz#1f88aba4ab0b1508e8312acc39345f36e992e2f2" - iconv-lite@0.4.19: version "0.4.19" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b" @@ -2584,12 +2927,19 @@ ignore-walk@^3.0.1: minimatch "^3.0.4" ignore@^3.2.0: - version "3.3.8" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.8.tgz#3f8e9c35d38708a3a7e0e9abb6c73e7ee7707b2b" + version "3.3.10" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.10.tgz#0a97fb876986e8081c631160f8f9f389157f0043" -image-size@^0.3.5: - version "0.3.5" - resolved "https://registry.yarnpkg.com/image-size/-/image-size-0.3.5.tgz#83240eab2fb5b00b04aab8c74b0471e9cba7ad8c" +image-size@^0.6.0: + version "0.6.3" + resolved "https://registry.yarnpkg.com/image-size/-/image-size-0.6.3.tgz#e7e5c65bb534bd7cdcedd6cb5166272a85f75fb2" + +import-local@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/import-local/-/import-local-1.0.0.tgz#5e4ffdc03f4fe6c009c6729beb29631c2f8227bc" + dependencies: + pkg-dir "^2.0.0" + resolve-cwd "^2.0.0" imurmurhash@^0.1.4: version "0.1.4" @@ -2602,7 +2952,7 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.1, inherits@~2.0.3: +inherits@2, inherits@2.0.3, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" @@ -2651,7 +3001,7 @@ interpret@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.1.0.tgz#7ed1b1410c6a0e0f78cf95d3b8440c63f78b8614" -invariant@^2.2.2: +invariant@^2.2.0, invariant@^2.2.2: version "2.2.4" resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" dependencies: @@ -2678,8 +3028,8 @@ is-arrayish@^0.2.1: resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" is-arrayish@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.3.1.tgz#c2dfc386abaa0c3e33c48db3fe87059e69065efd" + version "0.3.2" + resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.3.2.tgz#4574a2ae56f7ab206896fb431eaeed066fdf8f03" is-binary-path@^1.0.0: version "1.0.1" @@ -2698,10 +3048,10 @@ is-builtin-module@^1.0.0: builtin-modules "^1.0.0" is-callable@^1.1.1, is-callable@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.3.tgz#86eb75392805ddc33af71c92a0eedf74ee7604b2" + version "1.1.4" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.4.tgz#1e1adf219e1eeb684d691f9d6a05ff0d30a24d75" -is-ci@^1.0.9: +is-ci@^1.0.10: version "1.1.0" resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.1.0.tgz#247e4162e7860cebbdaf30b774d6b0ac7dcfe7a5" dependencies: @@ -2779,6 +3129,10 @@ is-fullwidth-code-point@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" +is-generator-fn@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-1.0.0.tgz#969d49e1bb3329f6bb7f09089be26578b2ddd46a" + is-glob@^2.0.0, is-glob@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" @@ -2815,12 +3169,6 @@ is-number@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff" -is-odd@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-odd/-/is-odd-2.0.0.tgz#7646624671fd7ea558ccd9a2795182f2958f1b24" - dependencies: - is-number "^4.0.0" - is-path-cwd@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-1.0.0.tgz#d225ec23132e89edd38fda767472e62e65f1106d" @@ -2889,10 +3237,6 @@ is-windows@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" -isarray@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" - isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" @@ -2922,7 +3266,7 @@ isstream@~0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" -istanbul-api@^1.1.0-alpha.1: +istanbul-api@^1.3.1: version "1.3.1" resolved "https://registry.yarnpkg.com/istanbul-api/-/istanbul-api-1.3.1.tgz#4c3b05d18c0016d1022e079b98dc82c40f488954" dependencies: @@ -2939,7 +3283,7 @@ istanbul-api@^1.1.0-alpha.1: mkdirp "^0.5.1" once "^1.4.0" -istanbul-lib-coverage@^1.0.0, istanbul-lib-coverage@^1.2.0: +istanbul-lib-coverage@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-1.2.0.tgz#f7d8f2e42b97e37fe796114cb0f9d68b5e3a4341" @@ -2949,7 +3293,7 @@ istanbul-lib-hook@^1.2.0: dependencies: append-transform "^1.0.0" -istanbul-lib-instrument@^1.1.1, istanbul-lib-instrument@^1.1.4, istanbul-lib-instrument@^1.10.1: +istanbul-lib-instrument@^1.10.1: version "1.10.1" resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-1.10.1.tgz#724b4b6caceba8692d3f1f9d0727e279c401af7b" dependencies: @@ -2986,226 +3330,321 @@ istanbul-reports@^1.3.0: dependencies: handlebars "^4.0.3" -jest-changed-files@^19.0.2: - version "19.0.2" - resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-19.0.2.tgz#16c54c84c3270be408e06d2e8af3f3e37a885824" +jest-changed-files@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-23.2.0.tgz#a145a6e4b66d0129fc7c99cee134dc937a643d9c" + dependencies: + throat "^4.0.0" -jest-cli@^19.0.2: - version "19.0.2" - resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-19.0.2.tgz#cc3620b62acac5f2d93a548cb6ef697d4ec85443" +jest-cli@^23.3.0: + version "23.3.0" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-23.3.0.tgz#307e9be7733443b789a8279d694054d051a9e5e2" dependencies: - ansi-escapes "^1.4.0" - callsites "^2.0.0" - chalk "^1.1.1" - graceful-fs "^4.1.6" - is-ci "^1.0.9" - istanbul-api "^1.1.0-alpha.1" - istanbul-lib-coverage "^1.0.0" - istanbul-lib-instrument "^1.1.1" - jest-changed-files "^19.0.2" - jest-config "^19.0.2" - jest-environment-jsdom "^19.0.2" - jest-haste-map "^19.0.0" - jest-jasmine2 "^19.0.2" - jest-message-util "^19.0.0" - jest-regex-util "^19.0.0" - jest-resolve-dependencies "^19.0.0" - jest-runtime "^19.0.2" - jest-snapshot "^19.0.2" - jest-util "^19.0.2" - micromatch "^2.3.11" - node-notifier "^5.0.1" + ansi-escapes "^3.0.0" + chalk "^2.0.1" + exit "^0.1.2" + glob "^7.1.2" + graceful-fs "^4.1.11" + import-local "^1.0.0" + is-ci "^1.0.10" + istanbul-api "^1.3.1" + istanbul-lib-coverage "^1.2.0" + istanbul-lib-instrument "^1.10.1" + istanbul-lib-source-maps "^1.2.4" + jest-changed-files "^23.2.0" + jest-config "^23.3.0" + jest-environment-jsdom "^23.3.0" + jest-get-type "^22.1.0" + jest-haste-map "^23.2.0" + jest-message-util "^23.3.0" + jest-regex-util "^23.3.0" + jest-resolve-dependencies "^23.3.0" + jest-runner "^23.3.0" + jest-runtime "^23.3.0" + jest-snapshot "^23.3.0" + jest-util "^23.3.0" + jest-validate "^23.3.0" + jest-watcher "^23.2.0" + jest-worker "^23.2.0" + micromatch "^3.1.10" + node-notifier "^5.2.1" + prompts "^0.1.9" + realpath-native "^1.0.0" + rimraf "^2.5.4" slash "^1.0.0" - string-length "^1.0.1" - throat "^3.0.0" - which "^1.1.1" - worker-farm "^1.3.1" - yargs "^6.3.0" + string-length "^2.0.0" + strip-ansi "^4.0.0" + which "^1.2.12" + yargs "^11.0.0" -jest-config@^19.0.2: - version "19.0.4" - resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-19.0.4.tgz#42980211d46417e91ca7abffd086c270234f73fd" +jest-config@^23.3.0: + version "23.3.0" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-23.3.0.tgz#bb4d53b70f9500fafddf718d226abb53b13b8323" dependencies: - chalk "^1.1.1" - jest-environment-jsdom "^19.0.2" - jest-environment-node "^19.0.2" - jest-jasmine2 "^19.0.2" - jest-regex-util "^19.0.0" - jest-resolve "^19.0.2" - jest-validate "^19.0.2" - pretty-format "^19.0.0" - -jest-diff@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-19.0.0.tgz#d1563cfc56c8b60232988fbc05d4d16ed90f063c" + babel-core "^6.0.0" + babel-jest "^23.2.0" + chalk "^2.0.1" + glob "^7.1.1" + jest-environment-jsdom "^23.3.0" + jest-environment-node "^23.3.0" + jest-get-type "^22.1.0" + jest-jasmine2 "^23.3.0" + jest-regex-util "^23.3.0" + jest-resolve "^23.2.0" + jest-util "^23.3.0" + jest-validate "^23.3.0" + pretty-format "^23.2.0" + +jest-diff@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-23.2.0.tgz#9f2cf4b51e12c791550200abc16b47130af1062a" dependencies: - chalk "^1.1.3" - diff "^3.0.0" - jest-matcher-utils "^19.0.0" - pretty-format "^19.0.0" + chalk "^2.0.1" + diff "^3.2.0" + jest-get-type "^22.1.0" + pretty-format "^23.2.0" -jest-docblock@^20.0.3: - version "20.0.3" - resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-20.0.3.tgz#17bea984342cc33d83c50fbe1545ea0efaa44712" +jest-docblock@23.0.1: + version "23.0.1" + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-23.0.1.tgz#deddd18333be5dc2415260a04ef3fce9276b5725" + dependencies: + detect-newline "^2.1.0" -jest-environment-jsdom@^19.0.2: - version "19.0.2" - resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-19.0.2.tgz#ceda859c4a4b94ab35e4de7dab54b926f293e4a3" +jest-docblock@^23.0.1, jest-docblock@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-23.2.0.tgz#f085e1f18548d99fdd69b20207e6fd55d91383a7" dependencies: - jest-mock "^19.0.0" - jest-util "^19.0.2" - jsdom "^9.11.0" + detect-newline "^2.1.0" -jest-environment-node@^19.0.2: - version "19.0.2" - resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-19.0.2.tgz#6e84079db87ed21d0c05e1f9669f207b116fe99b" +jest-each@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-23.2.0.tgz#a400f81c857083f50c4f53399b109f12023fb19d" dependencies: - jest-mock "^19.0.0" - jest-util "^19.0.2" + chalk "^2.0.1" + pretty-format "^23.2.0" -jest-file-exists@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/jest-file-exists/-/jest-file-exists-19.0.0.tgz#cca2e587a11ec92e24cfeab3f8a94d657f3fceb8" +jest-environment-jsdom@^23.3.0: + version "23.3.0" + resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-23.3.0.tgz#190457f91c9e615454c4186056065db6ed7a4e2a" + dependencies: + jest-mock "^23.2.0" + jest-util "^23.3.0" + jsdom "^11.5.1" -jest-haste-map@^19.0.0: - version "19.0.2" - resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-19.0.2.tgz#286484c3a16e86da7872b0877c35dce30c3d6f07" +jest-environment-node@^23.3.0: + version "23.3.0" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-23.3.0.tgz#1e8df21c847aa5d03b76573f0dc16fcde5034c32" dependencies: - fb-watchman "^2.0.0" - graceful-fs "^4.1.6" - micromatch "^2.3.11" - sane "~1.5.0" - worker-farm "^1.3.1" + jest-mock "^23.2.0" + jest-util "^23.3.0" + +jest-get-type@^22.1.0: + version "22.4.3" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-22.4.3.tgz#e3a8504d8479342dd4420236b322869f18900ce4" -jest-haste-map@^20.0.4: - version "20.0.5" - resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-20.0.5.tgz#abad74efb1a005974a7b6517e11010709cab9112" +jest-haste-map@23.1.0: + version "23.1.0" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-23.1.0.tgz#18e6c7d5a8d27136f91b7d9852f85de0c7074c49" dependencies: fb-watchman "^2.0.0" graceful-fs "^4.1.11" - jest-docblock "^20.0.3" + jest-docblock "^23.0.1" + jest-serializer "^23.0.1" + jest-worker "^23.0.1" micromatch "^2.3.11" - sane "~1.6.0" - worker-farm "^1.3.1" - -jest-jasmine2@^19.0.2: - version "19.0.2" - resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-19.0.2.tgz#167991ac825981fb1a800af126e83afcca832c73" - dependencies: - graceful-fs "^4.1.6" - jest-matcher-utils "^19.0.0" - jest-matchers "^19.0.0" - jest-message-util "^19.0.0" - jest-snapshot "^19.0.2" - -jest-matcher-utils@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-19.0.0.tgz#5ecd9b63565d2b001f61fbf7ec4c7f537964564d" - dependencies: - chalk "^1.1.3" - pretty-format "^19.0.0" + sane "^2.0.0" -jest-matchers@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/jest-matchers/-/jest-matchers-19.0.0.tgz#c74ecc6ebfec06f384767ba4d6fa4a42d6755754" +jest-haste-map@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-23.2.0.tgz#d10cbac007c695948c8ef1821a2b2ed2d4f2d4d8" dependencies: - jest-diff "^19.0.0" - jest-matcher-utils "^19.0.0" - jest-message-util "^19.0.0" - jest-regex-util "^19.0.0" + fb-watchman "^2.0.0" + graceful-fs "^4.1.11" + jest-docblock "^23.2.0" + jest-serializer "^23.0.1" + jest-worker "^23.2.0" + micromatch "^3.1.10" + sane "^2.0.0" -jest-message-util@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-19.0.0.tgz#721796b89c0e4d761606f9ba8cb828a3b6246416" +jest-jasmine2@^23.3.0: + version "23.3.0" + resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-23.3.0.tgz#a8706baac23c8a130d5aa8ef5464a9d49096d1b5" dependencies: - chalk "^1.1.1" - micromatch "^2.3.11" + chalk "^2.0.1" + co "^4.6.0" + expect "^23.3.0" + is-generator-fn "^1.0.0" + jest-diff "^23.2.0" + jest-each "^23.2.0" + jest-matcher-utils "^23.2.0" + jest-message-util "^23.3.0" + jest-snapshot "^23.3.0" + jest-util "^23.3.0" + pretty-format "^23.2.0" + +jest-leak-detector@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-23.2.0.tgz#c289d961dc638f14357d4ef96e0431ecc1aa377d" + dependencies: + pretty-format "^23.2.0" + +jest-matcher-utils@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-23.2.0.tgz#4d4981f23213e939e3cedf23dc34c747b5ae1913" + dependencies: + chalk "^2.0.1" + jest-get-type "^22.1.0" + pretty-format "^23.2.0" + +jest-message-util@^23.3.0: + version "23.3.0" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-23.3.0.tgz#bc07b11cec6971fb5dd9de2dfb60ebc22150c160" + dependencies: + "@babel/code-frame" "^7.0.0-beta.35" + chalk "^2.0.1" + micromatch "^3.1.10" + slash "^1.0.0" + stack-utils "^1.0.1" -jest-mock@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-19.0.0.tgz#67038641e9607ab2ce08ec4a8cb83aabbc899d01" +jest-mock@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-23.2.0.tgz#ad1c60f29e8719d47c26e1138098b6d18b261134" jest-react-native@^18.0.0: version "18.0.0" resolved "https://registry.yarnpkg.com/jest-react-native/-/jest-react-native-18.0.0.tgz#77dd909f069324599f227c58c61c2e62168726ba" -jest-regex-util@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-19.0.0.tgz#b7754587112aede1456510bb1f6afe74ef598691" +jest-regex-util@^23.3.0: + version "23.3.0" + resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-23.3.0.tgz#5f86729547c2785c4002ceaa8f849fe8ca471bc5" -jest-resolve-dependencies@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-19.0.0.tgz#a741ad1fa094140e64ecf2642a504f834ece22ee" +jest-resolve-dependencies@^23.3.0: + version "23.3.0" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-23.3.0.tgz#8444d3b0b1288b80864d8801ff50b44a4d695d1d" dependencies: - jest-file-exists "^19.0.0" + jest-regex-util "^23.3.0" + jest-snapshot "^23.3.0" -jest-resolve@^19.0.2: - version "19.0.2" - resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-19.0.2.tgz#5793575de4f07aec32f7d7ff0c6c181963eefb3c" +jest-resolve@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-23.2.0.tgz#a0790ad5a3b99002ab4dbfcbf8d9e2d6a69b3d99" dependencies: - browser-resolve "^1.11.2" - jest-haste-map "^19.0.0" - resolve "^1.2.0" + browser-resolve "^1.11.3" + chalk "^2.0.1" + realpath-native "^1.0.0" -jest-runtime@^19.0.2: - version "19.0.4" - resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-19.0.4.tgz#f167d9f1347752f2027361067926485349fcc245" +jest-runner@^23.3.0: + version "23.3.0" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-23.3.0.tgz#04c7e458a617501a4875db0d7ffbe0e3cbd43bfb" + dependencies: + exit "^0.1.2" + graceful-fs "^4.1.11" + jest-config "^23.3.0" + jest-docblock "^23.2.0" + jest-haste-map "^23.2.0" + jest-jasmine2 "^23.3.0" + jest-leak-detector "^23.2.0" + jest-message-util "^23.3.0" + jest-runtime "^23.3.0" + jest-util "^23.3.0" + jest-worker "^23.2.0" + source-map-support "^0.5.6" + throat "^4.0.0" + +jest-runtime@^23.3.0: + version "23.3.0" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-23.3.0.tgz#4865aab4ceff82f9cec6335fd7ae1422cc1de7df" dependencies: babel-core "^6.0.0" - babel-jest "^19.0.0" - babel-plugin-istanbul "^4.0.0" - chalk "^1.1.3" - graceful-fs "^4.1.6" - jest-config "^19.0.2" - jest-file-exists "^19.0.0" - jest-haste-map "^19.0.0" - jest-regex-util "^19.0.0" - jest-resolve "^19.0.2" - jest-util "^19.0.2" - json-stable-stringify "^1.0.1" - micromatch "^2.3.11" + babel-plugin-istanbul "^4.1.6" + chalk "^2.0.1" + convert-source-map "^1.4.0" + exit "^0.1.2" + fast-json-stable-stringify "^2.0.0" + graceful-fs "^4.1.11" + jest-config "^23.3.0" + jest-haste-map "^23.2.0" + jest-message-util "^23.3.0" + jest-regex-util "^23.3.0" + jest-resolve "^23.2.0" + jest-snapshot "^23.3.0" + jest-util "^23.3.0" + jest-validate "^23.3.0" + micromatch "^3.1.10" + realpath-native "^1.0.0" + slash "^1.0.0" strip-bom "3.0.0" - yargs "^6.3.0" - -jest-snapshot@^19.0.2: - version "19.0.2" - resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-19.0.2.tgz#9c1b216214f7187c38bfd5c70b1efab16b0ff50b" - dependencies: - chalk "^1.1.3" - jest-diff "^19.0.0" - jest-file-exists "^19.0.0" - jest-matcher-utils "^19.0.0" - jest-util "^19.0.2" + write-file-atomic "^2.1.0" + yargs "^11.0.0" + +jest-serializer@23.0.1, jest-serializer@^23.0.1: + version "23.0.1" + resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-23.0.1.tgz#a3776aeb311e90fe83fab9e533e85102bd164165" + +jest-snapshot@^23.3.0: + version "23.3.0" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-23.3.0.tgz#fc4e9f81e45432d10507e27f50bce60f44d81424" + dependencies: + babel-traverse "^6.0.0" + babel-types "^6.0.0" + chalk "^2.0.1" + jest-diff "^23.2.0" + jest-matcher-utils "^23.2.0" + jest-message-util "^23.3.0" + jest-resolve "^23.2.0" + mkdirp "^0.5.1" natural-compare "^1.4.0" - pretty-format "^19.0.0" + pretty-format "^23.2.0" + semver "^5.5.0" -jest-util@^19.0.2: - version "19.0.2" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-19.0.2.tgz#e0a0232a2ab9e6b2b53668bdb3534c2b5977ed41" +jest-util@^23.3.0: + version "23.3.0" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-23.3.0.tgz#79f35bb0c30100ef611d963ee6b88f8ed873a81d" dependencies: - chalk "^1.1.1" - graceful-fs "^4.1.6" - jest-file-exists "^19.0.0" - jest-message-util "^19.0.0" - jest-mock "^19.0.0" - jest-validate "^19.0.2" - leven "^2.0.0" + callsites "^2.0.0" + chalk "^2.0.1" + graceful-fs "^4.1.11" + is-ci "^1.0.10" + jest-message-util "^23.3.0" mkdirp "^0.5.1" + slash "^1.0.0" + source-map "^0.6.0" -jest-validate@^19.0.2: - version "19.0.2" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-19.0.2.tgz#dc534df5f1278d5b63df32b14241d4dbf7244c0c" +jest-validate@^23.3.0: + version "23.3.0" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-23.3.0.tgz#d49bea6aad98c30acd2cbb542434798a0cc13f76" dependencies: - chalk "^1.1.1" - jest-matcher-utils "^19.0.0" - leven "^2.0.0" - pretty-format "^19.0.0" + chalk "^2.0.1" + jest-get-type "^22.1.0" + leven "^2.1.0" + pretty-format "^23.2.0" + +jest-watcher@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-23.2.0.tgz#678e852896e919e9d9a0eb4b8baf1ae279620ea9" + dependencies: + ansi-escapes "^3.0.0" + chalk "^2.0.1" + string-length "^2.0.0" + +jest-worker@23.0.1: + version "23.0.1" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-23.0.1.tgz#9e649dd963ff4046026f91c4017f039a6aa4a7bc" + dependencies: + merge-stream "^1.0.1" + +jest-worker@^23.0.1, jest-worker@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-23.2.0.tgz#faf706a8da36fae60eb26957257fa7b5d8ea02b9" + dependencies: + merge-stream "^1.0.1" -jest@19.0.2: - version "19.0.2" - resolved "https://registry.yarnpkg.com/jest/-/jest-19.0.2.tgz#b794faaf8ff461e7388f28beef559a54f20b2c10" +jest@23.3.0: + version "23.3.0" + resolved "https://registry.yarnpkg.com/jest/-/jest-23.3.0.tgz#1355cd792f38cf20fba4da02dddb7ca14d9484b5" dependencies: - jest-cli "^19.0.2" + import-local "^1.0.0" + jest-cli "^23.3.0" js-tokens@^3.0.0, js-tokens@^3.0.2: version "3.0.2" @@ -3222,34 +3661,45 @@ jsbn@~0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" -jsdom@^9.11.0: - version "9.12.0" - resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-9.12.0.tgz#e8c546fffcb06c00d4833ca84410fed7f8a097d4" +jsdom@^11.5.1: + version "11.11.0" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-11.11.0.tgz#df486efad41aee96c59ad7a190e2449c7eb1110e" dependencies: - abab "^1.0.3" - acorn "^4.0.4" - acorn-globals "^3.1.0" + abab "^1.0.4" + acorn "^5.3.0" + acorn-globals "^4.1.0" array-equal "^1.0.0" - content-type-parser "^1.0.1" cssom ">= 0.3.2 < 0.4.0" - cssstyle ">= 0.2.37 < 0.3.0" - escodegen "^1.6.1" - html-encoding-sniffer "^1.0.1" - nwmatcher ">= 1.3.9 < 2.0.0" - parse5 "^1.5.1" - request "^2.79.0" - sax "^1.2.1" - symbol-tree "^3.2.1" - tough-cookie "^2.3.2" - webidl-conversions "^4.0.0" - whatwg-encoding "^1.0.1" - whatwg-url "^4.3.0" - xml-name-validator "^2.0.1" + cssstyle ">= 0.3.1 < 0.4.0" + data-urls "^1.0.0" + domexception "^1.0.0" + escodegen "^1.9.0" + html-encoding-sniffer "^1.0.2" + left-pad "^1.2.0" + nwsapi "^2.0.0" + parse5 "4.0.0" + pn "^1.1.0" + request "^2.83.0" + request-promise-native "^1.0.5" + sax "^1.2.4" + symbol-tree "^3.2.2" + tough-cookie "^2.3.3" + w3c-hr-time "^1.0.1" + webidl-conversions "^4.0.2" + whatwg-encoding "^1.0.3" + whatwg-mimetype "^2.1.0" + whatwg-url "^6.4.1" + ws "^4.0.0" + xml-name-validator "^3.0.0" jsesc@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" +jsesc@^2.5.1: + version "2.5.1" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.1.tgz#e421a2a8e20d6b0819df28908f782526b96dd1fe" + jsesc@~0.5.0: version "0.5.0" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" @@ -3276,7 +3726,7 @@ json5@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/json5/-/json5-0.4.0.tgz#054352e4c4c80c86c0923877d449de176a732c8d" -json5@^0.5.1: +json5@^0.5.0, json5@^0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" @@ -3307,6 +3757,10 @@ jsx-ast-utils@^1.0.0, jsx-ast-utils@^1.3.4: version "1.4.1" resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-1.4.1.tgz#3867213e8dd79bf1e8f2300c0cfc1efb182c0df1" +kind-of@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-1.1.0.tgz#140a3d2d41a36d2efcfa9377b62c24f8495a5c44" + kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: version "3.2.2" resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" @@ -3343,11 +3797,11 @@ lcid@^1.0.0: dependencies: invert-kv "^1.0.0" -left-pad@^1.1.3: +left-pad@^1.1.3, left-pad@^1.2.0: version "1.3.0" resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.3.0.tgz#5b8a3a7765dfe001261dde915589e782f8c94d1e" -leven@^2.0.0: +leven@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580" @@ -3384,42 +3838,6 @@ locate-path@^2.0.0: p-locate "^2.0.0" path-exists "^3.0.0" -lodash._basecopy@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz#8da0e6a876cf344c0ad8a54882111dd3c5c7ca36" - -lodash._basetostring@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/lodash._basetostring/-/lodash._basetostring-3.0.1.tgz#d1861d877f824a52f669832dcaf3ee15566a07d5" - -lodash._basevalues@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/lodash._basevalues/-/lodash._basevalues-3.0.0.tgz#5b775762802bde3d3297503e26300820fdf661b7" - -lodash._getnative@^3.0.0: - version "3.9.1" - resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5" - -lodash._isiterateecall@^3.0.0: - version "3.0.9" - resolved "https://registry.yarnpkg.com/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz#5203ad7ba425fae842460e696db9cf3e6aac057c" - -lodash._reescape@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/lodash._reescape/-/lodash._reescape-3.0.0.tgz#2b1d6f5dfe07c8a355753e5f27fac7f1cde1616a" - -lodash._reevaluate@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/lodash._reevaluate/-/lodash._reevaluate-3.0.0.tgz#58bc74c40664953ae0b124d806996daca431e2ed" - -lodash._reinterpolate@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d" - -lodash._root@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/lodash._root/-/lodash._root-3.0.1.tgz#fba1c4524c19ee9a5f8136b4609f017cf4ded692" - lodash.cond@^4.3.0: version "4.5.2" resolved "https://registry.yarnpkg.com/lodash.cond/-/lodash.cond-4.5.2.tgz#f471a1da486be60f6ab955d17115523dd1d255d5" @@ -3428,12 +3846,6 @@ lodash.endswith@^4.0.1: version "4.2.1" resolved "https://registry.yarnpkg.com/lodash.endswith/-/lodash.endswith-4.2.1.tgz#fed59ac1738ed3e236edd7064ec456448b37bc09" -lodash.escape@^3.0.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/lodash.escape/-/lodash.escape-3.2.0.tgz#995ee0dc18c1b48cc92effae71a10aab5b487698" - dependencies: - lodash._root "^3.0.0" - lodash.find@^4.3.0: version "4.6.0" resolved "https://registry.yarnpkg.com/lodash.find/-/lodash.find-4.6.0.tgz#cb0704d47ab71789ffa0de8b97dd926fb88b13b1" @@ -3442,22 +3854,6 @@ lodash.findindex@^4.3.0: version "4.6.0" resolved "https://registry.yarnpkg.com/lodash.findindex/-/lodash.findindex-4.6.0.tgz#a3245dee61fb9b6e0624b535125624bb69c11106" -lodash.isarguments@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz#2f573d85c6a24289ff00663b491c1d338ff3458a" - -lodash.isarray@^3.0.0: - version "3.0.4" - resolved "https://registry.yarnpkg.com/lodash.isarray/-/lodash.isarray-3.0.4.tgz#79e4eb88c36a8122af86f844aa9bcd851b5fbb55" - -lodash.keys@^3.0.0: - version "3.1.2" - resolved "https://registry.yarnpkg.com/lodash.keys/-/lodash.keys-3.1.2.tgz#4dbc0472b156be50a0b286855d1bd0b0c656098a" - dependencies: - lodash._getnative "^3.0.0" - lodash.isarguments "^3.0.0" - lodash.isarray "^3.0.0" - lodash.pad@^4.1.0: version "4.5.1" resolved "https://registry.yarnpkg.com/lodash.pad/-/lodash.pad-4.5.1.tgz#4330949a833a7c8da22cc20f6a26c4d59debba70" @@ -3470,36 +3866,15 @@ lodash.padstart@^4.1.0: version "4.6.1" resolved "https://registry.yarnpkg.com/lodash.padstart/-/lodash.padstart-4.6.1.tgz#d2e3eebff0d9d39ad50f5cbd1b52a7bce6bb611b" -lodash.restparam@^3.0.0: - version "3.6.1" - resolved "https://registry.yarnpkg.com/lodash.restparam/-/lodash.restparam-3.6.1.tgz#936a4e309ef330a7645ed4145986c85ae5b20805" - -lodash.template@^3.0.0: - version "3.6.2" - resolved "https://registry.yarnpkg.com/lodash.template/-/lodash.template-3.6.2.tgz#f8cdecc6169a255be9098ae8b0c53d378931d14f" - dependencies: - lodash._basecopy "^3.0.0" - lodash._basetostring "^3.0.0" - lodash._basevalues "^3.0.0" - lodash._isiterateecall "^3.0.0" - lodash._reinterpolate "^3.0.0" - lodash.escape "^3.0.0" - lodash.keys "^3.0.0" - lodash.restparam "^3.0.0" - lodash.templatesettings "^3.0.0" - -lodash.templatesettings@^3.0.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/lodash.templatesettings/-/lodash.templatesettings-3.1.1.tgz#fb307844753b66b9f1afa54e262c745307dba8e5" - dependencies: - lodash._reinterpolate "^3.0.0" - lodash.escape "^3.0.0" +lodash.sortby@^4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" -lodash@^3.5.0: - version "3.10.1" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6" +lodash.throttle@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/lodash.throttle/-/lodash.throttle-4.1.1.tgz#c23e91b710242ac70c37f1e1cda9274cc39bf2f4" -lodash@^4.0.0, lodash@^4.10.1, lodash@^4.11.1, lodash@^4.16.6, lodash@^4.17.10, lodash@^4.17.4, lodash@^4.3.0, lodash@^4.6.1: +lodash@^4.0.0, lodash@^4.10.1, lodash@^4.11.1, lodash@^4.13.1, lodash@^4.17.10, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.3.0, lodash@^4.6.1: version "4.17.10" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7" @@ -3524,6 +3899,12 @@ lru-cache@^4.0.1: pseudomap "^1.0.2" yallist "^2.1.2" +make-dir@^1.0.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c" + dependencies: + pify "^3.0.0" + makeerror@1.0.x: version "1.0.11" resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.11.tgz#e01a5c9109f2af79660e4e8b9587790184f5a96c" @@ -3544,10 +3925,6 @@ math-random@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/math-random/-/math-random-1.0.1.tgz#8b3aac588b8a66e4975e3cdea67f7bb329601fac" -media-typer@0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" - mem@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/mem/-/mem-1.1.0.tgz#5edd52b485ca1d900fe64895505399a0dfa45f76" @@ -3560,61 +3937,166 @@ merge-stream@^1.0.1: dependencies: readable-stream "^2.0.1" -merge@^1.1.3: +merge@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/merge/-/merge-1.2.0.tgz#7531e39d4949c281a66b8c5a6e0265e8b05894da" -method-override@~2.3.5: - version "2.3.10" - resolved "https://registry.yarnpkg.com/method-override/-/method-override-2.3.10.tgz#e3daf8d5dee10dd2dce7d4ae88d62bbee77476b4" +metro-babel-register@0.38.1, metro-babel-register@^0.38.1: + version "0.38.1" + resolved "https://registry.yarnpkg.com/metro-babel-register/-/metro-babel-register-0.38.1.tgz#7b564191fd86387c48f6dfa4ded07afb693a1986" + dependencies: + "@babel/plugin-proposal-class-properties" "7.0.0-beta.47" + "@babel/plugin-proposal-object-rest-spread" "7.0.0-beta.47" + "@babel/plugin-proposal-optional-chaining" "7.0.0-beta.47" + "@babel/plugin-transform-async-to-generator" "7.0.0-beta.47" + "@babel/plugin-transform-flow-strip-types" "7.0.0-beta.47" + "@babel/plugin-transform-modules-commonjs" "7.0.0-beta.47" + "@babel/register" "7.0.0-beta.47" + core-js "^2.2.2" + escape-string-regexp "^1.0.5" + +metro-babel7-plugin-react-transform@0.38.1: + version "0.38.1" + resolved "https://registry.yarnpkg.com/metro-babel7-plugin-react-transform/-/metro-babel7-plugin-react-transform-0.38.1.tgz#a39ee73f6a6df1bac1e65045129621d70d53adbe" dependencies: - debug "2.6.9" - methods "~1.1.2" - parseurl "~1.3.2" - vary "~1.1.2" + "@babel/helper-module-imports" "7.0.0-beta.47" + lodash "^4.17.5" -methods@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" +metro-babel7-plugin-react-transform@^0.39.1: + version "0.39.1" + resolved "https://registry.yarnpkg.com/metro-babel7-plugin-react-transform/-/metro-babel7-plugin-react-transform-0.39.1.tgz#deb851fa6904ed5b9f4e38f69e3f318a0fb670e6" + dependencies: + "@babel/helper-module-imports" "7.0.0-beta.47" + lodash "^4.17.5" -metro-bundler@^0.7.4: - version "0.7.8" - resolved "https://registry.yarnpkg.com/metro-bundler/-/metro-bundler-0.7.8.tgz#5845cf49f877ea0f7694e9177e19e5f447ca3d86" +metro-cache@0.38.1: + version "0.38.1" + resolved "https://registry.yarnpkg.com/metro-cache/-/metro-cache-0.38.1.tgz#bd3a6de283f339627f6e1039b8fd9383332eeae1" + dependencies: + jest-serializer "23.0.1" + metro-core "0.38.1" + mkdirp "^0.5.1" + rimraf "^2.5.4" + +metro-core@0.38.1, metro-core@^0.38.1: + version "0.38.1" + resolved "https://registry.yarnpkg.com/metro-core/-/metro-core-0.38.1.tgz#da87bcce03c17ec1085d040360459b4404d13079" + dependencies: + jest-haste-map "23.1.0" + lodash.throttle "^4.1.1" + metro-resolver "0.38.1" + wordwrap "^1.0.0" + +metro-memory-fs@^0.38.1: + version "0.38.1" + resolved "https://registry.yarnpkg.com/metro-memory-fs/-/metro-memory-fs-0.38.1.tgz#951067da1df2f2985e551c9f718626844b049c94" + +metro-minify-uglify@0.38.1: + version "0.38.1" + resolved "https://registry.yarnpkg.com/metro-minify-uglify/-/metro-minify-uglify-0.38.1.tgz#8959094b7d340ebb50b9382d74521a5beda1215e" + dependencies: + uglify-es "^3.1.9" + +metro-resolver@0.38.1: + version "0.38.1" + resolved "https://registry.yarnpkg.com/metro-resolver/-/metro-resolver-0.38.1.tgz#e5ddc02609d1a54bdd13b9681ad514b57cbf96ad" + dependencies: + absolute-path "^0.0.0" + +metro-source-map@0.38.1: + version "0.38.1" + resolved "https://registry.yarnpkg.com/metro-source-map/-/metro-source-map-0.38.1.tgz#6b7fb99745cd0cc71ac17c59cc2e012b2b729dc5" dependencies: + source-map "^0.5.6" + +metro@^0.38.1: + version "0.38.1" + resolved "https://registry.yarnpkg.com/metro/-/metro-0.38.1.tgz#063d6ff18cf29481140e882a3f49488a97cb89d1" + dependencies: + "@babel/core" "7.0.0-beta.47" + "@babel/generator" "7.0.0-beta.47" + "@babel/helper-remap-async-to-generator" "7.0.0-beta.47" + "@babel/plugin-external-helpers" "7.0.0-beta.47" + "@babel/plugin-proposal-class-properties" "7.0.0-beta.47" + "@babel/plugin-proposal-object-rest-spread" "7.0.0-beta.47" + "@babel/plugin-syntax-dynamic-import" "7.0.0-beta.47" + "@babel/plugin-syntax-nullish-coalescing-operator" "7.0.0-beta.47" + "@babel/plugin-transform-arrow-functions" "7.0.0-beta.47" + "@babel/plugin-transform-async-to-generator" "7.0.0-beta.47" + "@babel/plugin-transform-block-scoping" "7.0.0-beta.47" + "@babel/plugin-transform-classes" "7.0.0-beta.47" + "@babel/plugin-transform-computed-properties" "7.0.0-beta.47" + "@babel/plugin-transform-destructuring" "7.0.0-beta.47" + "@babel/plugin-transform-exponentiation-operator" "7.0.0-beta.47" + "@babel/plugin-transform-flow-strip-types" "7.0.0-beta.47" + "@babel/plugin-transform-for-of" "7.0.0-beta.47" + "@babel/plugin-transform-function-name" "7.0.0-beta.47" + "@babel/plugin-transform-literals" "7.0.0-beta.47" + "@babel/plugin-transform-modules-commonjs" "7.0.0-beta.47" + "@babel/plugin-transform-object-assign" "7.0.0-beta.47" + "@babel/plugin-transform-parameters" "7.0.0-beta.47" + "@babel/plugin-transform-react-display-name" "7.0.0-beta.47" + "@babel/plugin-transform-react-jsx" "7.0.0-beta.47" + "@babel/plugin-transform-react-jsx-source" "7.0.0-beta.47" + "@babel/plugin-transform-regenerator" "7.0.0-beta.47" + "@babel/plugin-transform-shorthand-properties" "7.0.0-beta.47" + "@babel/plugin-transform-spread" "7.0.0-beta.47" + "@babel/plugin-transform-template-literals" "7.0.0-beta.47" + "@babel/plugin-transform-unicode-regex" "7.0.0-beta.47" + "@babel/register" "7.0.0-beta.47" + "@babel/template" "7.0.0-beta.47" + "@babel/traverse" "7.0.0-beta.47" + "@babel/types" "7.0.0-beta.47" absolute-path "^0.0.0" async "^2.4.0" babel-core "^6.24.1" - babel-generator "^6.24.1" - babel-plugin-external-helpers "^6.18.0" + babel-plugin-external-helpers "^6.22.0" + babel-plugin-transform-flow-strip-types "^6.21.0" babel-preset-es2015-node "^6.1.1" - babel-preset-fbjs "^2.1.0" - babel-preset-react-native "^1.9.1" + babel-preset-fbjs "^2.1.4" + babel-preset-react-native "^5.0.0" babel-register "^6.24.1" - babylon "^6.17.0" + babylon "7.0.0-beta.47" chalk "^1.1.1" concat-stream "^1.6.0" - core-js "^2.2.2" + connect "^3.6.5" debug "^2.2.0" denodeify "^1.2.1" - fbjs "0.8.12" + eventemitter3 "^3.0.0" + fbjs "^0.8.14" + fs-extra "^1.0.0" graceful-fs "^4.1.3" - image-size "^0.3.5" - jest-haste-map "^20.0.4" + image-size "^0.6.0" + jest-docblock "23.0.1" + jest-haste-map "23.1.0" + jest-worker "23.0.1" json-stable-stringify "^1.0.1" json5 "^0.4.0" left-pad "^1.1.3" - lodash "^4.16.6" + lodash.throttle "^4.1.1" merge-stream "^1.0.1" + metro-babel-register "0.38.1" + metro-babel7-plugin-react-transform "0.38.1" + metro-cache "0.38.1" + metro-core "0.38.1" + metro-minify-uglify "0.38.1" + metro-resolver "0.38.1" + metro-source-map "0.38.1" mime-types "2.1.11" mkdirp "^0.5.1" - request "^2.79.0" + node-fetch "^1.3.3" + react-transform-hmr "^1.0.4" + resolve "^1.5.0" rimraf "^2.5.4" + serialize-error "^2.1.0" source-map "^0.5.6" temp "0.8.3" - throat "^3.0.0" - uglify-js "2.7.5" + throat "^4.1.0" + wordwrap "^1.0.0" write-file-atomic "^1.2.0" + ws "^1.1.0" xpipe "^1.0.5" + yargs "^9.0.0" micromatch@^2.1.5, micromatch@^2.3.11: version "2.3.11" @@ -3634,7 +4116,7 @@ micromatch@^2.1.5, micromatch@^2.3.11: parse-glob "^3.0.4" regex-cache "^0.4.2" -micromatch@^3.1.8: +micromatch@^3.1.10, micromatch@^3.1.4, micromatch@^3.1.8: version "3.1.10" resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" dependencies: @@ -3670,15 +4152,15 @@ mime-types@2.1.11: dependencies: mime-db "~1.23.0" -mime-types@^2.1.12, mime-types@~2.1.17, mime-types@~2.1.18, mime-types@~2.1.6, mime-types@~2.1.9: +mime-types@^2.1.12, mime-types@~2.1.17, mime-types@~2.1.18: version "2.1.18" resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.18.tgz#6f323f60a83d11146f831ff11fd66e2fe5503bb8" dependencies: mime-db "~1.33.0" -mime@1.3.4: - version "1.3.4" - resolved "https://registry.yarnpkg.com/mime/-/mime-1.3.4.tgz#115f9e3b6b3daf2959983cb38f149a2d40eb5d53" +mime@1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.4.1.tgz#121f9ebc49e3766f311a76e1fa1c8003c4b03aa6" mime@^1.3.4: version "1.6.0" @@ -3704,7 +4186,7 @@ minimist@0.0.8: version "0.0.8" resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" -minimist@^1.1.0, minimist@^1.1.1, minimist@^1.2.0: +minimist@^1.1.1, minimist@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" @@ -3738,41 +4220,20 @@ mkdirp@^0.5.0, mkdirp@^0.5.1: dependencies: minimist "0.0.8" -morgan@~1.6.1: - version "1.6.1" - resolved "https://registry.yarnpkg.com/morgan/-/morgan-1.6.1.tgz#5fd818398c6819cba28a7cd6664f292fe1c0bbf2" +morgan@^1.9.0: + version "1.9.0" + resolved "https://registry.yarnpkg.com/morgan/-/morgan-1.9.0.tgz#d01fa6c65859b76fcf31b3cb53a3821a311d8051" dependencies: - basic-auth "~1.0.3" - debug "~2.2.0" - depd "~1.0.1" + basic-auth "~2.0.0" + debug "2.6.9" + depd "~1.1.1" on-finished "~2.3.0" - on-headers "~1.0.0" - -ms@0.7.1: - version "0.7.1" - resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.1.tgz#9cd13c03adbff25b65effde7ce864ee952017098" - -ms@0.7.2: - version "0.7.2" - resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.2.tgz#ae25cf2512b3885a1d95d7f037868d8431124765" + on-headers "~1.0.1" ms@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" -multiparty@3.3.2: - version "3.3.2" - resolved "https://registry.yarnpkg.com/multiparty/-/multiparty-3.3.2.tgz#35de6804dc19643e5249f3d3e3bdc6c8ce301d3f" - dependencies: - readable-stream "~1.1.9" - stream-counter "~0.2.0" - -multipipe@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/multipipe/-/multipipe-0.1.2.tgz#2a8f2ddf70eed564dff2d57f1e1a137d9f05078b" - dependencies: - duplexer2 "0.0.2" - mute-stream@0.0.5: version "0.0.5" resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.5.tgz#8fbfabb0a98a253d3184331f9e8deb7372fac6c0" @@ -3786,15 +4247,14 @@ nan@^2.9.2: resolved "https://registry.yarnpkg.com/nan/-/nan-2.10.0.tgz#96d0cd610ebd58d4b4de9cc0c6828cda99c7548f" nanomatch@^1.2.9: - version "1.2.9" - resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.9.tgz#879f7150cb2dab7a471259066c104eee6e0fa7c2" + version "1.2.13" + resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" dependencies: arr-diff "^4.0.0" array-unique "^0.3.2" define-property "^2.0.2" extend-shallow "^3.0.2" fragment-cache "^0.2.1" - is-odd "^2.0.0" is-windows "^1.0.2" kind-of "^6.0.2" object.pick "^1.3.0" @@ -3822,10 +4282,6 @@ needle@^2.2.0: iconv-lite "^0.4.4" sax "^1.2.4" -negotiator@0.5.3: - version "0.5.3" - resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.5.3.tgz#269d5c476810ec92edbe7b6c2f28316384f9a7e8" - negotiator@0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.1.tgz#2b327184e8992101177b28563fb5e7102acd0ca9" @@ -3845,7 +4301,11 @@ node-int64@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" -node-notifier@^5.0.1: +node-modules-regexp@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz#8d9dbe28964a4ac5712e9131642107c71e90ec40" + +node-notifier@^5.2.1: version "5.2.1" resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-5.2.1.tgz#fa313dd08f5517db0e2502e5758d664ac69f9dea" dependencies: @@ -3855,8 +4315,8 @@ node-notifier@^5.0.1: which "^1.3.0" node-pre-gyp@^0.10.0: - version "0.10.0" - resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.10.0.tgz#6e4ef5bb5c5203c6552448828c852c40111aac46" + version "0.10.2" + resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.10.2.tgz#e8945c20ef6795a20aac2b44f036eb13cf5146e3" dependencies: detect-libc "^1.0.2" mkdirp "^0.5.1" @@ -3864,7 +4324,7 @@ node-pre-gyp@^0.10.0: nopt "^4.0.1" npm-packlist "^1.1.6" npmlog "^4.0.2" - rc "^1.1.7" + rc "^1.2.7" rimraf "^2.6.1" semver "^5.3.0" tar "^4" @@ -3885,7 +4345,7 @@ normalize-package-data@^2.3.2: semver "2 || 3 || 4 || 5" validate-npm-package-license "^3.0.1" -normalize-path@^2.0.0, normalize-path@^2.0.1: +normalize-path@^2.0.0, normalize-path@^2.0.1, normalize-path@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" dependencies: @@ -3929,18 +4389,14 @@ number-is-nan@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" -"nwmatcher@>= 1.3.9 < 2.0.0": - version "1.4.4" - resolved "https://registry.yarnpkg.com/nwmatcher/-/nwmatcher-1.4.4.tgz#2285631f34a95f0d0395cd900c96ed39b58f346e" +nwsapi@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.0.4.tgz#dc79040a5f77b97716dc79565fc7fc3ef7d50570" oauth-sign@~0.8.2: version "0.8.2" resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" -object-assign@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-3.0.0.tgz#9bedd5ca0897949bca47e7ff408062d549f587f2" - object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" @@ -3954,8 +4410,8 @@ object-copy@^0.1.0: kind-of "^3.0.3" object-keys@^1.0.11, object-keys@^1.0.8: - version "1.0.11" - resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.11.tgz#c54601778ad560f1142ce0e01bcca8b56d13426d" + version "1.0.12" + resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.12.tgz#09c53855377575310cca62f55bb334abff7b3ed2" object-visit@^1.0.0: version "1.0.1" @@ -3972,6 +4428,13 @@ object.assign@^4.0.4: has-symbols "^1.0.0" object-keys "^1.0.11" +object.getownpropertydescriptors@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz#8758c846f5b407adab0f236e0986f14b051caa16" + dependencies: + define-properties "^1.1.2" + es-abstract "^1.5.1" + object.omit@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" @@ -3991,7 +4454,7 @@ on-finished@~2.3.0: dependencies: ee-first "1.1.1" -on-headers@~1.0.0, on-headers@~1.0.1: +on-headers@~1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.1.tgz#928f5d0f470d49342651ea6794b0857c100693f7" @@ -4043,12 +4506,6 @@ os-homedir@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" -os-locale@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-1.4.0.tgz#20f9f17ae29ed345e8bde583b13d2009803c14d9" - dependencies: - lcid "^1.0.0" - os-locale@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-2.1.0.tgz#42bc2900a6b5b8bd17376c8e882b65afccf24bf2" @@ -4111,11 +4568,11 @@ parse-json@^2.2.0: dependencies: error-ex "^1.2.0" -parse5@^1.5.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/parse5/-/parse5-1.5.1.tgz#9b7f3b0de32be78dc2401b17573ccaf0f6f59d94" +parse5@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-4.0.0.tgz#6d78656e3da8d78b4ec0b906f7c08ef1dfe3f608" -parseurl@~1.3.0, parseurl@~1.3.1, parseurl@~1.3.2: +parseurl@~1.3.2: version "1.3.2" resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.2.tgz#fc289d4ed8993119460c156253262cdc8de65bf3" @@ -4163,10 +4620,6 @@ path-type@^2.0.0: dependencies: pify "^2.0.0" -pause@0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/pause/-/pause-0.1.0.tgz#ebc8a4a8619ff0b8a81ac1513c3434ff469fdb74" - pegjs@^0.10.0: version "0.10.0" resolved "https://registry.yarnpkg.com/pegjs/-/pegjs-0.10.0.tgz#cf8bafae6eddff4b5a7efb185269eaaf4610ddbd" @@ -4179,6 +4632,10 @@ pify@^2.0.0: version "2.3.0" resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" +pify@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" + pinkie-promise@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" @@ -4189,12 +4646,24 @@ pinkie@^2.0.0: version "2.0.4" resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" +pirates@^3.0.1: + version "3.0.2" + resolved "https://registry.yarnpkg.com/pirates/-/pirates-3.0.2.tgz#7e6f85413fd9161ab4e12b539b06010d85954bb9" + dependencies: + node-modules-regexp "^1.0.0" + pkg-dir@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-1.0.0.tgz#7a4b508a8d5bb2d629d447056ff4e9c9314cf3d4" dependencies: find-up "^1.0.0" +pkg-dir@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-2.0.0.tgz#f6d5d1109e19d63edf428e0bd57e12777615334b" + dependencies: + find-up "^2.1.0" + pkg-up@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-1.0.0.tgz#3e08fb461525c4421624a33b9f7e6d0af5b05a26" @@ -4209,19 +4678,32 @@ plist@2.0.1: xmlbuilder "8.2.2" xmldom "0.1.x" -plist@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/plist/-/plist-1.2.0.tgz#084b5093ddc92506e259f874b8d9b1afb8c79593" +plist@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/plist/-/plist-3.0.1.tgz#a9b931d17c304e8912ef0ba3bdd6182baf2e1f8c" dependencies: - base64-js "0.0.8" - util-deprecate "1.0.2" - xmlbuilder "4.0.0" + base64-js "^1.2.3" + xmlbuilder "^9.0.7" xmldom "0.1.x" +plugin-error@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/plugin-error/-/plugin-error-0.1.2.tgz#3b9bb3335ccf00f425e07437e19276967da47ace" + dependencies: + ansi-cyan "^0.1.1" + ansi-red "^0.1.1" + arr-diff "^1.0.1" + arr-union "^2.0.1" + extend-shallow "^1.1.2" + pluralize@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-1.2.1.tgz#d1a21483fd22bb41e58a12fa3421823140897c45" +pn@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/pn/-/pn-1.1.0.tgz#e2f4cef0e219f463c179ab37463e4e1ecdccbafb" + posix-character-classes@^0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" @@ -4234,11 +4716,12 @@ preserve@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" -pretty-format@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-19.0.0.tgz#56530d32acb98a3fa4851c4e2b9d37b420684c84" +pretty-format@^23.2.0: + version "23.2.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-23.2.0.tgz#3b0aaa63c018a53583373c1cb3a5d96cc5e83017" dependencies: - ansi-styles "^3.0.0" + ansi-regex "^3.0.0" + ansi-styles "^3.2.0" pretty-format@^4.2.1: version "4.3.1" @@ -4272,18 +4755,20 @@ promise@^7.1.1: dependencies: asap "~2.0.3" +prompts@^0.1.9: + version "0.1.10" + resolved "https://registry.yarnpkg.com/prompts/-/prompts-0.1.10.tgz#832cbf6116ecb121d6884e84643bb2cf92b3ed2c" + dependencies: + clorox "^1.0.3" + sisteransi "^0.1.1" + prop-types@^15.5.10, prop-types@^15.5.8, prop-types@^15.6.0: - version "15.6.1" - resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.1.tgz#36644453564255ddda391191fb3a125cbdf654ca" + version "15.6.2" + resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.2.tgz#05d5ca77b4453e985d60fc7ff8c859094a497102" dependencies: - fbjs "^0.8.16" loose-envify "^1.3.1" object-assign "^4.1.1" -prr@~1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476" - pseudomap@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" @@ -4296,9 +4781,9 @@ punycode@^1.4.1: version "1.4.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" -qs@4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/qs/-/qs-4.0.0.tgz#c31d9b74ec27df75e543a86c78728ed8d4623607" +punycode@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" qs@~6.5.1: version "6.5.2" @@ -4310,10 +4795,6 @@ raf@^3.1.0: dependencies: performance-now "^2.1.0" -random-bytes@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/random-bytes/-/random-bytes-1.0.0.tgz#4f68a1dc0ae58bd3fb95848c30324db75d64360b" - randomatic@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-3.0.0.tgz#d35490030eb4f7578de292ce6dfb04a91a128923" @@ -4322,19 +4803,11 @@ randomatic@^3.0.0: kind-of "^6.0.0" math-random "^1.0.1" -range-parser@~1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.0.3.tgz#6872823535c692e2c2a0103826afd82c2e0ff175" - -raw-body@~2.1.2: - version "2.1.7" - resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.1.7.tgz#adfeace2e4fb3098058014d08c072dcc59758774" - dependencies: - bytes "2.4.0" - iconv-lite "0.4.13" - unpipe "1.0.0" +range-parser@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.0.tgz#f49be6b487894ddc40dcc94a322f611092e00d5e" -rc@^1.1.7: +rc@^1.2.7: version "1.2.8" resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" dependencies: @@ -4351,12 +4824,12 @@ react-deep-force-update@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/react-deep-force-update/-/react-deep-force-update-1.1.1.tgz#bcd31478027b64b3339f108921ab520b4313dc2c" -react-devtools-core@2.3.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/react-devtools-core/-/react-devtools-core-2.3.1.tgz#dc83aba85735effe5e1dc386a1614cb5e8d0047d" +react-devtools-core@^3.2.2: + version "3.2.3" + resolved "https://registry.yarnpkg.com/react-devtools-core/-/react-devtools-core-3.2.3.tgz#a37e199d94865e2cbb616b97be8f5820674e6abd" dependencies: shell-quote "^1.6.1" - ws "^2.0.3" + ws "^3.3.1" react-is@^16.4.1: version "16.4.1" @@ -4369,9 +4842,9 @@ react-native-drawer@2.5.0: prop-types "^15.5.8" tween-functions "^1.0.1" -react-native-easy-grid@0.1.17: - version "0.1.17" - resolved "https://registry.yarnpkg.com/react-native-easy-grid/-/react-native-easy-grid-0.1.17.tgz#fad8cb371d465828c1c71daa4d8b513d33253452" +"react-native-easy-grid@https://github.com/GeekyAnts/react-native-easy-grid#development": + version "0.2.0" + resolved "https://github.com/GeekyAnts/react-native-easy-grid#b5912239540bae496657867414260a5dac3037d1" dependencies: lodash "^4.11.1" @@ -4394,94 +4867,61 @@ react-native-vector-icons@~4.5.0: prop-types "^15.5.10" yargs "^8.0.2" -react-native@^0.46.0: - version "0.46.4" - resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.46.4.tgz#281bbcc165e5c36b4c8eaa868e6768543e811bcb" +react-native@0.56.0: + version "0.56.0" + resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.56.0.tgz#66686f781ec39a44376aadd4bbc55c8573ab61e5" dependencies: absolute-path "^0.0.0" art "^0.10.0" - async "^2.4.0" - babel-core "^6.24.1" - babel-generator "^6.24.1" - babel-plugin-external-helpers "^6.18.0" - babel-plugin-syntax-trailing-function-commas "^6.20.0" - babel-plugin-transform-async-to-generator "6.16.0" - babel-plugin-transform-class-properties "^6.18.0" - babel-plugin-transform-flow-strip-types "^6.21.0" - babel-plugin-transform-object-rest-spread "^6.20.2" - babel-polyfill "^6.20.0" - babel-preset-es2015-node "^6.1.1" - babel-preset-fbjs "^2.1.2" - babel-preset-react-native "^1.9.2" - babel-register "^6.24.1" - babel-runtime "^6.23.0" - babel-traverse "^6.24.1" - babel-types "^6.24.1" - babylon "^6.17.0" base64-js "^1.1.2" - bser "^1.0.2" chalk "^1.1.1" commander "^2.9.0" - concat-stream "^1.6.0" - connect "^2.8.3" - core-js "^2.2.2" - create-react-class "^15.5.2" + compression "^1.7.1" + connect "^3.6.5" + create-react-class "^15.6.3" debug "^2.2.0" denodeify "^1.2.1" - errno ">=0.1.1 <0.2.0-0" + envinfo "^5.7.0" + errorhandler "^1.5.0" + escape-string-regexp "^1.0.5" event-target-shim "^1.0.5" - fbjs "0.8.12" - fbjs-scripts "^0.7.0" - form-data "^2.1.1" + fbjs "0.8.16" + fbjs-scripts "^0.8.1" fs-extra "^1.0.0" glob "^7.1.1" graceful-fs "^4.1.3" - image-size "^0.3.5" inquirer "^3.0.6" - jest-haste-map "^20.0.4" - json-stable-stringify "^1.0.1" - json5 "^0.4.0" - left-pad "^1.1.3" - lodash "^4.16.6" - merge-stream "^1.0.1" - metro-bundler "^0.7.4" + lodash "^4.17.5" + metro "^0.38.1" + metro-babel-register "^0.38.1" + metro-core "^0.38.1" + metro-memory-fs "^0.38.1" mime "^1.3.4" - mime-types "2.1.11" minimist "^1.2.0" mkdirp "^0.5.1" + morgan "^1.9.0" node-fetch "^1.3.3" + node-notifier "^5.2.1" npmlog "^2.0.4" opn "^3.0.2" optimist "^0.6.1" - plist "^1.2.0" + plist "^3.0.0" pretty-format "^4.2.1" promise "^7.1.1" prop-types "^15.5.8" react-clone-referenced-element "^1.0.1" - react-devtools-core "2.3.1" + react-devtools-core "^3.2.2" react-timer-mixin "^0.13.2" - react-transform-hmr "^1.0.4" - rebound "^0.0.13" - regenerator-runtime "^0.9.5" - request "^2.79.0" + regenerator-runtime "^0.11.0" rimraf "^2.5.4" - sane "~1.4.1" semver "^5.0.3" + serve-static "^1.13.1" shell-quote "1.6.1" - source-map "^0.5.6" stacktrace-parser "^0.1.3" - temp "0.8.3" - throat "^3.0.0" - uglify-js "2.7.5" - whatwg-fetch "^1.0.0" - wordwrap "^1.0.0" - write-file-atomic "^1.2.0" ws "^1.1.0" xcode "^0.9.1" xmldoc "^0.4.0" - xpipe "^1.0.5" - xtend ">=4.0.0 <4.1.0-0" - yargs "^6.4.0" + yargs "^9.0.0" react-proxy@^1.1.7: version "1.1.8" @@ -4490,7 +4930,7 @@ react-proxy@^1.1.7: lodash "^4.6.1" react-deep-force-update "^1.0.0" -react-test-renderer@^16.0.0-alpha.12: +react-test-renderer@16.4.1: version "16.4.1" resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-16.4.1.tgz#f2fb30c2c7b517db6e5b10ed20bb6b0a7ccd8d70" dependencies: @@ -4517,7 +4957,7 @@ react-tween-state@^0.1.5: raf "^3.1.0" tween-functions "^1.0.1" -react@^16.0.0-alpha.12: +react@16.4.1: version "16.4.1" resolved "https://registry.yarnpkg.com/react/-/react-16.4.1.tgz#de51ba5764b5dbcd1f9079037b862bd26b82fe32" dependencies: @@ -4568,15 +5008,6 @@ readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.6, readable string_decoder "~1.1.1" util-deprecate "~1.0.1" -readable-stream@~1.1.8, readable-stream@~1.1.9: - version "1.1.14" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.1.14.tgz#7cf4c54ef648e3813084c636dd2079e166c081d9" - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.1" - isarray "0.0.1" - string_decoder "~0.10.x" - readdirp@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" @@ -4594,9 +5025,11 @@ readline2@^1.0.1: is-fullwidth-code-point "^1.0.0" mute-stream "0.0.5" -rebound@^0.0.13: - version "0.0.13" - resolved "https://registry.yarnpkg.com/rebound/-/rebound-0.0.13.tgz#4a225254caf7da756797b19c5817bf7a7941fac1" +realpath-native@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/realpath-native/-/realpath-native-1.0.1.tgz#07f40a0cce8f8261e2e8b7ebebf5c95965d7b633" + dependencies: + util.promisify "^1.0.0" rechoir@^0.6.2: version "0.6.2" @@ -4604,7 +5037,13 @@ rechoir@^0.6.2: dependencies: resolve "^1.1.6" -regenerate@^1.2.1: +regenerate-unicode-properties@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-7.0.0.tgz#107405afcc4a190ec5ed450ecaa00ed0cafa7a4c" + dependencies: + regenerate "^1.4.0" + +regenerate@^1.2.1, regenerate@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.0.tgz#4a856ec4b56e4077c557589cae85e7a4c8869a11" @@ -4616,10 +5055,6 @@ regenerator-runtime@^0.11.0: version "0.11.1" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" -regenerator-runtime@^0.9.5: - version "0.9.6" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.9.6.tgz#d33eb95d0d2001a4be39659707c51b0cb71ce029" - regenerator-transform@^0.10.0: version "0.10.1" resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd" @@ -4628,6 +5063,12 @@ regenerator-transform@^0.10.0: babel-types "^6.19.0" private "^0.1.6" +regenerator-transform@^0.12.3: + version "0.12.4" + resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.12.4.tgz#aa9b6c59f4b97be080e972506c560b3bccbfcff0" + dependencies: + private "^0.1.6" + regex-cache@^0.4.2: version "0.4.4" resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd" @@ -4649,16 +5090,37 @@ regexpu-core@^2.0.0: regjsgen "^0.2.0" regjsparser "^0.1.4" +regexpu-core@^4.1.3: + version "4.2.0" + resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-4.2.0.tgz#a3744fa03806cffe146dea4421a3e73bdcc47b1d" + dependencies: + regenerate "^1.4.0" + regenerate-unicode-properties "^7.0.0" + regjsgen "^0.4.0" + regjsparser "^0.3.0" + unicode-match-property-ecmascript "^1.0.4" + unicode-match-property-value-ecmascript "^1.0.2" + regjsgen@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.2.0.tgz#6c016adeac554f75823fe37ac05b92d5a4edb1f7" +regjsgen@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.4.0.tgz#c1eb4c89a209263f8717c782591523913ede2561" + regjsparser@^0.1.4: version "0.1.5" resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.1.5.tgz#7ee8f84dc6fa792d3fd0ae228d24bd949ead205c" dependencies: jsesc "~0.5.0" +regjsparser@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.3.0.tgz#3c326da7fcfd69fa0d332575a41c8c0cdf588c96" + dependencies: + jsesc "~0.5.0" + remove-trailing-separator@^1.0.1: version "1.1.0" resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" @@ -4677,11 +5139,21 @@ repeating@^2.0.0: dependencies: is-finite "^1.0.0" -replace-ext@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/replace-ext/-/replace-ext-0.0.1.tgz#29bbd92078a739f0bcce2b4ee41e837953522924" +request-promise-core@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.1.tgz#3eee00b2c5aa83239cfb04c5700da36f81cd08b6" + dependencies: + lodash "^4.13.1" + +request-promise-native@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/request-promise-native/-/request-promise-native-1.0.5.tgz#5281770f68e0c9719e5163fd3fab482215f4fda5" + dependencies: + request-promise-core "1.1.1" + stealthy-require "^1.1.0" + tough-cookie ">=2.3.3" -request@^2.79.0: +request@^2.83.0: version "2.87.0" resolved "https://registry.yarnpkg.com/request/-/request-2.87.0.tgz#32f00235cd08d482b4d0d68db93a829c0ed5756e" dependencies: @@ -4721,10 +5193,20 @@ require-uncached@^1.0.2: caller-path "^0.1.0" resolve-from "^1.0.0" +resolve-cwd@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-2.0.0.tgz#00a9f7387556e27038eae232caa372a6a59b665a" + dependencies: + resolve-from "^3.0.0" + resolve-from@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-1.0.1.tgz#26cbfe935d1aeeeabb29bc3fe5aeb01e93d44226" +resolve-from@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" + resolve-url@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" @@ -4733,19 +5215,12 @@ resolve@1.1.7: version "1.1.7" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" -resolve@^1.1.6, resolve@^1.2.0: +resolve@^1.1.6, resolve@^1.3.2, resolve@^1.5.0: version "1.8.1" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.8.1.tgz#82f1ec19a423ac1fbd080b0bab06ba36e84a7a26" dependencies: path-parse "^1.0.5" -response-time@~2.3.1: - version "2.3.2" - resolved "https://registry.yarnpkg.com/response-time/-/response-time-2.3.2.tgz#ffa71bab952d62f7c1d49b7434355fbc68dffc5a" - dependencies: - depd "~1.1.0" - on-headers "~1.0.1" - restore-cursor@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-1.0.1.tgz#34661f46886327fed2991479152252df92daa541" @@ -4780,9 +5255,9 @@ rimraf@~2.2.6: version "2.2.8" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.2.8.tgz#e439be2aaee327321952730f99a8929e4fc50582" -rndm@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/rndm/-/rndm-1.2.0.tgz#f33fe9cfb52bbfd520aa18323bc65db110a1b76c" +rsvp@^3.3.3: + version "3.6.2" + resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-3.6.2.tgz#2e96491599a96cde1b515d5674a8f7a91452926a" run-async@^0.1.0: version "0.1.0" @@ -4810,14 +5285,14 @@ rx-lite@^3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-3.1.2.tgz#19ce502ca572665f3b647b10939f97fd1615f102" +safe-buffer@5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" + safe-buffer@^5.0.1, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.1.2" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" -safe-buffer@~5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.0.1.tgz#d263ca54696cd8a306b5ca6551e92de57918fbe7" - safe-regex@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" @@ -4828,42 +5303,22 @@ safe-regex@^1.1.0: version "2.1.2" resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" -sane@~1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/sane/-/sane-1.4.1.tgz#88f763d74040f5f0c256b6163db399bf110ac715" - dependencies: - exec-sh "^0.2.0" - fb-watchman "^1.8.0" - minimatch "^3.0.2" - minimist "^1.1.1" - walker "~1.0.5" - watch "~0.10.0" - -sane@~1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/sane/-/sane-1.5.0.tgz#a4adeae764d048621ecb27d5f9ecf513101939f3" - dependencies: - anymatch "^1.3.0" - exec-sh "^0.2.0" - fb-watchman "^1.8.0" - minimatch "^3.0.2" - minimist "^1.1.1" - walker "~1.0.5" - watch "~0.10.0" - -sane@~1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/sane/-/sane-1.6.0.tgz#9610c452307a135d29c1fdfe2547034180c46775" +sane@^2.0.0: + version "2.5.2" + resolved "https://registry.yarnpkg.com/sane/-/sane-2.5.2.tgz#b4dc1861c21b427e929507a3e751e2a2cb8ab3fa" dependencies: - anymatch "^1.3.0" + anymatch "^2.0.0" + capture-exit "^1.2.0" exec-sh "^0.2.0" - fb-watchman "^1.8.0" - minimatch "^3.0.2" + fb-watchman "^2.0.0" + micromatch "^3.1.4" minimist "^1.1.1" walker "~1.0.5" - watch "~0.10.0" + watch "~0.18.0" + optionalDependencies: + fsevents "^1.2.3" -sax@^1.2.1, sax@^1.2.4: +sax@^1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" @@ -4871,55 +5326,40 @@ sax@~1.1.1: version "1.1.6" resolved "https://registry.yarnpkg.com/sax/-/sax-1.1.6.tgz#5d616be8a5e607d54e114afae55b7eaf2fcc3240" -"semver@2 || 3 || 4 || 5", semver@5.x, semver@^5.0.3, semver@^5.1.0, semver@^5.3.0, semver@^5.4.1: +"semver@2 || 3 || 4 || 5", semver@5.x, semver@^5.0.3, semver@^5.1.0, semver@^5.3.0, semver@^5.4.1, semver@^5.5.0: version "5.5.0" resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" -send@0.13.2: - version "0.13.2" - resolved "https://registry.yarnpkg.com/send/-/send-0.13.2.tgz#765e7607c8055452bba6f0b052595350986036de" +send@0.16.2: + version "0.16.2" + resolved "https://registry.yarnpkg.com/send/-/send-0.16.2.tgz#6ecca1e0f8c156d141597559848df64730a6bbc1" dependencies: - debug "~2.2.0" - depd "~1.1.0" + debug "2.6.9" + depd "~1.1.2" destroy "~1.0.4" + encodeurl "~1.0.2" escape-html "~1.0.3" - etag "~1.7.0" - fresh "0.3.0" - http-errors "~1.3.1" - mime "1.3.4" - ms "0.7.1" + etag "~1.8.1" + fresh "0.5.2" + http-errors "~1.6.2" + mime "1.4.1" + ms "2.0.0" on-finished "~2.3.0" - range-parser "~1.0.3" - statuses "~1.2.1" - -serve-favicon@~2.3.0: - version "2.3.2" - resolved "https://registry.yarnpkg.com/serve-favicon/-/serve-favicon-2.3.2.tgz#dd419e268de012ab72b319d337f2105013f9381f" - dependencies: - etag "~1.7.0" - fresh "0.3.0" - ms "0.7.2" - parseurl "~1.3.1" + range-parser "~1.2.0" + statuses "~1.4.0" -serve-index@~1.7.2: - version "1.7.3" - resolved "https://registry.yarnpkg.com/serve-index/-/serve-index-1.7.3.tgz#7a057fc6ee28dc63f64566e5fa57b111a86aecd2" - dependencies: - accepts "~1.2.13" - batch "0.5.3" - debug "~2.2.0" - escape-html "~1.0.3" - http-errors "~1.3.1" - mime-types "~2.1.9" - parseurl "~1.3.1" +serialize-error@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/serialize-error/-/serialize-error-2.1.0.tgz#50b679d5635cdf84667bdc8e59af4e5b81d5f60a" -serve-static@~1.10.0: - version "1.10.3" - resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.10.3.tgz#ce5a6ecd3101fed5ec09827dac22a9c29bfb0535" +serve-static@^1.13.1: + version "1.13.2" + resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.13.2.tgz#095e8472fd5b46237db50ce486a43f4b86c6cec1" dependencies: + encodeurl "~1.0.2" escape-html "~1.0.3" - parseurl "~1.3.1" - send "0.13.2" + parseurl "~1.3.2" + send "0.16.2" set-blocking@^2.0.0, set-blocking@~2.0.0: version "2.0.0" @@ -4951,6 +5391,10 @@ setimmediate@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" +setprototypeof@1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.0.tgz#d0bd85536887b6fe7c0d818cb962d9d91c54e656" + shebang-command@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" @@ -5000,6 +5444,10 @@ simple-swizzle@^0.2.2: dependencies: is-arrayish "^0.3.1" +sisteransi@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-0.1.1.tgz#5431447d5f7d1675aac667ccd0b865a4994cb3ce" + slash@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" @@ -5049,12 +5497,19 @@ source-map-resolve@^0.5.0: source-map-url "^0.4.0" urix "^0.1.0" -source-map-support@^0.4.15: +source-map-support@^0.4.15, source-map-support@^0.4.2: version "0.4.18" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f" dependencies: source-map "^0.5.6" +source-map-support@^0.5.6: + version "0.5.6" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.6.tgz#4435cee46b1aab62b8e8610ce60f788091c51c13" + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + source-map-url@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" @@ -5065,18 +5520,14 @@ source-map@^0.4.4: dependencies: amdefine ">=0.0.4" -source-map@^0.5.3, source-map@^0.5.6, source-map@^0.5.7, source-map@~0.5.1: +source-map@^0.5.0, source-map@^0.5.3, source-map@^0.5.6, source-map@^0.5.7, source-map@~0.5.1: version "0.5.7" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" -source-map@~0.6.1: +source-map@^0.6.0, source-map@~0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" -sparkles@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/sparkles/-/sparkles-1.0.1.tgz#008db65edce6c50eec0c5e228e1945061dd0437c" - spdx-correct@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.0.0.tgz#05a5b4d7153a195bc92c3c425b69f3b2a9524c82" @@ -5124,6 +5575,10 @@ sshpk@^1.7.0: jsbn "~0.1.0" tweetnacl "~0.14.0" +stack-utils@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-1.0.1.tgz#d4f33ab54e8e38778b0ca5cfd3b3afb12db68620" + stacktrace-parser@^0.1.3: version "0.1.4" resolved "https://registry.yarnpkg.com/stacktrace-parser/-/stacktrace-parser-0.1.4.tgz#01397922e5f62ecf30845522c95c4fe1d25e7d4e" @@ -5135,31 +5590,34 @@ static-extend@^0.1.1: define-property "^0.2.5" object-copy "^0.1.0" -statuses@1: +"statuses@>= 1.4.0 < 2": version "1.5.0" resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" -statuses@~1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.2.1.tgz#dded45cc18256d51ed40aec142489d5c61026d28" +statuses@~1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.3.1.tgz#faf51b9eb74aaef3b3acf4ad5f61abf24cb7b93e" + +statuses@~1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.4.0.tgz#bb73d446da2796106efcc1b601a253d6c46bd087" + +stealthy-require@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b" stream-buffers@~2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/stream-buffers/-/stream-buffers-2.2.0.tgz#91d5f5130d1cef96dcfa7f726945188741d09ee4" -stream-counter@~0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/stream-counter/-/stream-counter-0.2.0.tgz#ded266556319c8b0e222812b9cf3b26fa7d947de" - dependencies: - readable-stream "~1.1.8" - -string-length@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/string-length/-/string-length-1.0.1.tgz#56970fb1c38558e9e70b728bf3de269ac45adfac" +string-length@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/string-length/-/string-length-2.0.0.tgz#d40dbb686a3ace960c1cffca562bf2c45f8363ed" dependencies: - strip-ansi "^3.0.0" + astral-regex "^1.0.0" + strip-ansi "^4.0.0" -string-width@^1.0.1, string-width@^1.0.2: +string-width@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" dependencies: @@ -5167,17 +5625,13 @@ string-width@^1.0.1, string-width@^1.0.2: is-fullwidth-code-point "^1.0.0" strip-ansi "^3.0.0" -"string-width@^1.0.2 || 2", string-width@^2.0.0, string-width@^2.1.0: +"string-width@^1.0.2 || 2", string-width@^2.0.0, string-width@^2.1.0, string-width@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" dependencies: is-fullwidth-code-point "^2.0.0" strip-ansi "^4.0.0" -string_decoder@~0.10.x: - version "0.10.31" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" - string_decoder@~1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" @@ -5230,7 +5684,7 @@ supports-color@^5.3.0: dependencies: has-flag "^3.0.0" -symbol-tree@^3.2.1: +symbol-tree@^3.2.2: version "3.2.2" resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.2.tgz#ae27db38f660a7ae2e1c3b7d1bc290819b8519e6" @@ -5264,16 +5718,6 @@ temp@0.8.3: os-tmpdir "^1.0.0" rimraf "~2.2.6" -test-exclude@^2.1.1: - version "2.1.3" - resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-2.1.3.tgz#a8d8968e1da83266f9864f2852c55e220f06434a" - dependencies: - arrify "^1.0.1" - micromatch "^2.3.11" - object-assign "^4.1.0" - read-pkg-up "^1.0.1" - require-main-filename "^1.0.1" - test-exclude@^4.2.1: version "4.2.1" resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-4.2.1.tgz#dfa222f03480bca69207ca728b37d74b45f724fa" @@ -5288,9 +5732,9 @@ text-table@~0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" -throat@^3.0.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/throat/-/throat-3.2.0.tgz#50cb0670edbc40237b9e347d7e1f88e4620af836" +throat@^4.0.0, throat@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/throat/-/throat-4.1.0.tgz#89037cbc92c56ab18926e6ba4cbb200e15672a6a" through2@^2.0.0: version "2.0.3" @@ -5321,6 +5765,10 @@ to-fast-properties@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" +to-fast-properties@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" + to-object-path@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" @@ -5343,9 +5791,9 @@ to-regex@^3.0.1, to-regex@^3.0.2: regex-not "^1.0.2" safe-regex "^1.1.0" -tough-cookie@^2.3.2: - version "2.4.2" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.4.2.tgz#aa9133154518b494efab98a58247bfc38818c00c" +tough-cookie@>=2.3.3, tough-cookie@^2.3.3: + version "2.4.3" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.4.3.tgz#53f36da3f47783b0925afa06ff9f3b165280f781" dependencies: psl "^1.1.24" punycode "^1.4.1" @@ -5356,18 +5804,16 @@ tough-cookie@~2.3.3: dependencies: punycode "^1.4.1" -tr46@~0.0.3: - version "0.0.3" - resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" +tr46@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-1.0.1.tgz#a8b13fd6bfd2489519674ccde55ba3693b706d09" + dependencies: + punycode "^2.1.0" trim-right@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" -tsscmp@1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/tsscmp/-/tsscmp-1.0.5.tgz#7dc4a33af71581ab4337da91d85ca5427ebd9a97" - tunnel-agent@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" @@ -5388,13 +5834,6 @@ type-check@~0.3.2: dependencies: prelude-ls "~1.1.2" -type-is@~1.6.6: - version "1.6.16" - resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.16.tgz#f89ce341541c672b25ee7ae3c73dee3b2be50194" - dependencies: - media-typer "0.3.0" - mime-types "~2.1.18" - typedarray@^0.0.6: version "0.0.6" resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" @@ -5403,14 +5842,12 @@ ua-parser-js@^0.7.18, ua-parser-js@^0.7.9: version "0.7.18" resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.18.tgz#a7bfd92f56edfb117083b69e31d2aa8882d4b1ed" -uglify-js@2.7.5: - version "2.7.5" - resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.7.5.tgz#4612c0c7baaee2ba7c487de4904ae122079f2ca8" +uglify-es@^3.1.9: + version "3.3.9" + resolved "https://registry.yarnpkg.com/uglify-es/-/uglify-es-3.3.9.tgz#0c1c4f0700bed8dbc124cdb304d2592ca203e677" dependencies: - async "~0.2.6" - source-map "~0.5.1" - uglify-to-browserify "~1.0.0" - yargs "~3.10.0" + commander "~2.13.0" + source-map "~0.6.1" uglify-js@^2.6: version "2.8.29" @@ -5425,18 +5862,6 @@ uglify-to-browserify@~1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" -uid-safe@2.1.4: - version "2.1.4" - resolved "https://registry.yarnpkg.com/uid-safe/-/uid-safe-2.1.4.tgz#3ad6f38368c6d4c8c75ec17623fb79aa1d071d81" - dependencies: - random-bytes "~1.0.0" - -uid-safe@~2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/uid-safe/-/uid-safe-2.0.0.tgz#a7f3c6ca64a1f6a5d04ec0ef3e4c3d5367317137" - dependencies: - base64-url "1.2.1" - ultron@1.0.x: version "1.0.2" resolved "https://registry.yarnpkg.com/ultron/-/ultron-1.0.2.tgz#ace116ab557cd197386a4e88f4685378c8b2e4fa" @@ -5445,6 +5870,25 @@ ultron@~1.1.0: version "1.1.1" resolved "https://registry.yarnpkg.com/ultron/-/ultron-1.1.1.tgz#9fe1536a10a664a65266a1e3ccf85fd36302bc9c" +unicode-canonical-property-names-ecmascript@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz#2619800c4c825800efdd8343af7dd9933cbe2818" + +unicode-match-property-ecmascript@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz#8ed2a32569961bce9227d09cd3ffbb8fed5f020c" + dependencies: + unicode-canonical-property-names-ecmascript "^1.0.4" + unicode-property-aliases-ecmascript "^1.0.4" + +unicode-match-property-value-ecmascript@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.0.2.tgz#9f1dc76926d6ccf452310564fd834ace059663d4" + +unicode-property-aliases-ecmascript@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.0.4.tgz#5a533f31b4317ea76f17d807fa0d116546111dd0" + union-value@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.0.tgz#5c71c34cb5bad5dcebe3ea0cd08207ba5aa1aea4" @@ -5454,7 +5898,7 @@ union-value@^1.0.0: is-extendable "^0.1.1" set-value "^0.4.3" -unpipe@1.0.0, unpipe@~1.0.0: +unpipe@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" @@ -5485,21 +5929,28 @@ user-home@^2.0.0: dependencies: os-homedir "^1.0.0" -util-deprecate@1.0.2, util-deprecate@~1.0.1: +util-deprecate@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" -utils-merge@1.0.0: +util.promisify@^1.0.0: version "1.0.0" - resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.0.tgz#0294fb922bb9375153541c4f7096231f287c8af8" + resolved "https://registry.yarnpkg.com/util.promisify/-/util.promisify-1.0.0.tgz#440f7165a459c9a16dc145eb8e72f35687097030" + dependencies: + define-properties "^1.1.2" + object.getownpropertydescriptors "^2.0.3" + +utils-merge@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" uuid@3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.0.1.tgz#6544bba2dfda8c1cf17e629a3a305e2bb1fee6c1" uuid@^3.1.0: - version "3.2.1" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.2.1.tgz#12c528bb9d58d0b9265d9a2f6f0fe8be17ff1f14" + version "3.3.2" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131" v8flags@^2.1.1: version "2.1.1" @@ -5514,10 +5965,6 @@ validate-npm-package-license@^3.0.1: spdx-correct "^3.0.0" spdx-expression-parse "^3.0.0" -vary@~1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/vary/-/vary-1.0.1.tgz#99e4981566a286118dfb2b817357df7993376d10" - vary@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" @@ -5530,17 +5977,11 @@ verror@1.10.0: core-util-is "1.0.2" extsprintf "^1.2.0" -vhost@~3.0.1: - version "3.0.2" - resolved "https://registry.yarnpkg.com/vhost/-/vhost-3.0.2.tgz#2fb1decd4c466aa88b0f9341af33dc1aff2478d5" - -vinyl@^0.5.0: - version "0.5.3" - resolved "https://registry.yarnpkg.com/vinyl/-/vinyl-0.5.3.tgz#b0455b38fc5e0cf30d4325132e461970c2091cde" +w3c-hr-time@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.1.tgz#82ac2bff63d950ea9e3189a58a65625fedf19045" dependencies: - clone "^1.0.0" - clone-stats "^0.0.1" - replace-ext "0.0.1" + browser-process-hrtime "^0.1.2" walker@~1.0.5: version "1.0.7" @@ -5548,19 +5989,18 @@ walker@~1.0.5: dependencies: makeerror "1.0.x" -watch@~0.10.0: - version "0.10.0" - resolved "https://registry.yarnpkg.com/watch/-/watch-0.10.0.tgz#77798b2da0f9910d595f1ace5b0c2258521f21dc" - -webidl-conversions@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" +watch@~0.18.0: + version "0.18.0" + resolved "https://registry.yarnpkg.com/watch/-/watch-0.18.0.tgz#28095476c6df7c90c963138990c0a5423eb4b986" + dependencies: + exec-sh "^0.2.0" + minimist "^1.2.0" -webidl-conversions@^4.0.0: +webidl-conversions@^4.0.2: version "4.0.2" resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad" -whatwg-encoding@^1.0.1: +whatwg-encoding@^1.0.1, whatwg-encoding@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.3.tgz#57c235bc8657e914d24e1a397d3c82daee0a6ba3" dependencies: @@ -5570,26 +6010,23 @@ whatwg-fetch@>=0.10.0: version "2.0.4" resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz#dde6a5df315f9d39991aa17621853d720b85566f" -whatwg-fetch@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-1.1.1.tgz#ac3c9d39f320c6dce5339969d054ef43dd333319" +whatwg-mimetype@^2.0.0, whatwg-mimetype@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.1.0.tgz#f0f21d76cbba72362eb609dbed2a30cd17fcc7d4" -whatwg-url@^4.3.0: - version "4.8.0" - resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-4.8.0.tgz#d2981aa9148c1e00a41c5a6131166ab4683bbcc0" +whatwg-url@^6.4.0, whatwg-url@^6.4.1: + version "6.5.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-6.5.0.tgz#f2df02bff176fd65070df74ad5ccbb5a199965a8" dependencies: - tr46 "~0.0.3" - webidl-conversions "^3.0.0" - -which-module@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f" + lodash.sortby "^4.7.0" + tr46 "^1.0.1" + webidl-conversions "^4.0.2" which-module@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" -which@^1.1.1, which@^1.2.9, which@^1.3.0: +which@^1.2.12, which@^1.2.9, which@^1.3.0: version "1.3.1" resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" dependencies: @@ -5617,12 +6054,6 @@ wordwrap@~0.0.2: version "0.0.3" resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" -worker-farm@^1.3.1: - version "1.6.0" - resolved "https://registry.yarnpkg.com/worker-farm/-/worker-farm-1.6.0.tgz#aecc405976fab5a95526180846f0dba288f3a4a0" - dependencies: - errno "~0.1.7" - wrap-ansi@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" @@ -5642,6 +6073,14 @@ write-file-atomic@^1.2.0: imurmurhash "^0.1.4" slide "^1.1.5" +write-file-atomic@^2.1.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.3.0.tgz#1ff61575c2e2a4e8e510d6fa4e243cce183999ab" + dependencies: + graceful-fs "^4.1.11" + imurmurhash "^0.1.4" + signal-exit "^3.0.2" + write@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/write/-/write-0.2.1.tgz#5fc03828e264cea3fe91455476f7a3c566cb0757" @@ -5655,13 +6094,21 @@ ws@^1.1.0: options ">=0.0.5" ultron "1.0.x" -ws@^2.0.3: - version "2.3.1" - resolved "https://registry.yarnpkg.com/ws/-/ws-2.3.1.tgz#6b94b3e447cb6a363f785eaf94af6359e8e81c80" +ws@^3.3.1: + version "3.3.3" + resolved "https://registry.yarnpkg.com/ws/-/ws-3.3.3.tgz#f1cf84fe2d5e901ebce94efaece785f187a228f2" dependencies: - safe-buffer "~5.0.1" + async-limiter "~1.0.0" + safe-buffer "~5.1.0" ultron "~1.1.0" +ws@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/ws/-/ws-4.1.0.tgz#a979b5d7d4da68bf54efe0408967c324869a7289" + dependencies: + async-limiter "~1.0.0" + safe-buffer "~5.1.0" + xcode@^0.9.1: version "0.9.3" resolved "https://registry.yarnpkg.com/xcode/-/xcode-0.9.3.tgz#910a89c16aee6cc0b42ca805a6d0b4cf87211cf3" @@ -5670,20 +6117,18 @@ xcode@^0.9.1: simple-plist "^0.2.1" uuid "3.0.1" -xml-name-validator@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-2.0.1.tgz#4d8b8f1eccd3419aa362061becef515e1e559635" - -xmlbuilder@4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-4.0.0.tgz#98b8f651ca30aa624036f127d11cc66dc7b907a3" - dependencies: - lodash "^3.5.0" +xml-name-validator@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" xmlbuilder@8.2.2: version "8.2.2" resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-8.2.2.tgz#69248673410b4ba42e1a6136551d2922335aa773" +xmlbuilder@^9.0.7: + version "9.0.7" + resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-9.0.7.tgz#132ee63d2ec5565c557e20f4c22df9aca686b10d" + xmldoc@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/xmldoc/-/xmldoc-0.4.0.tgz#d257224be8393eaacbf837ef227fd8ec25b36888" @@ -5698,7 +6143,7 @@ xpipe@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/xpipe/-/xpipe-1.0.5.tgz#8dd8bf45fc3f7f55f0e054b878f43a62614dafdf" -"xtend@>=4.0.0 <4.1.0-0", xtend@^4.0.0, xtend@~4.0.1: +xtend@^4.0.0, xtend@~4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" @@ -5714,35 +6159,34 @@ yallist@^3.0.0, yallist@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.0.2.tgz#8452b4bb7e83c7c188d8041c1a837c773d6d8bb9" -yargs-parser@^4.2.0: - version "4.2.1" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-4.2.1.tgz#29cceac0dc4f03c6c87b4a9f217dd18c9f74871c" - dependencies: - camelcase "^3.0.0" - yargs-parser@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-7.0.0.tgz#8d0ac42f16ea55debd332caf4c4038b3e3f5dfd9" dependencies: camelcase "^4.1.0" -yargs@^6.3.0, yargs@^6.4.0: - version "6.6.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-6.6.0.tgz#782ec21ef403345f830a808ca3d513af56065208" +yargs-parser@^9.0.2: + version "9.0.2" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-9.0.2.tgz#9ccf6a43460fe4ed40a9bb68f48d43b8a68cc077" dependencies: - camelcase "^3.0.0" - cliui "^3.2.0" + camelcase "^4.1.0" + +yargs@^11.0.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-11.1.0.tgz#90b869934ed6e871115ea2ff58b03f4724ed2d77" + dependencies: + cliui "^4.0.0" decamelize "^1.1.1" + find-up "^2.1.0" get-caller-file "^1.0.1" - os-locale "^1.4.0" - read-pkg-up "^1.0.1" + os-locale "^2.0.0" require-directory "^2.1.1" require-main-filename "^1.0.1" set-blocking "^2.0.0" - string-width "^1.0.2" - which-module "^1.0.0" + string-width "^2.0.0" + which-module "^2.0.0" y18n "^3.2.1" - yargs-parser "^4.2.0" + yargs-parser "^9.0.2" yargs@^8.0.2: version "8.0.2" @@ -5762,6 +6206,24 @@ yargs@^8.0.2: y18n "^3.2.1" yargs-parser "^7.0.0" +yargs@^9.0.0: + version "9.0.1" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-9.0.1.tgz#52acc23feecac34042078ee78c0c007f5085db4c" + dependencies: + camelcase "^4.1.0" + cliui "^3.2.0" + decamelize "^1.1.1" + get-caller-file "^1.0.1" + os-locale "^2.0.0" + read-pkg-up "^2.0.0" + require-directory "^2.1.1" + require-main-filename "^1.0.1" + set-blocking "^2.0.0" + string-width "^2.0.0" + which-module "^2.0.0" + y18n "^3.2.1" + yargs-parser "^7.0.0" + yargs@~3.10.0: version "3.10.0" resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1"