diff --git a/dist/src/utils/computeProps.js.map b/dist/src/utils/computeProps.js.map index 2f0b45b00..a26bf8c79 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","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 diff --git a/dist/src/utils/index.js.map b/dist/src/utils/index.js.map index 3e30c4367..326127012 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;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 diff --git a/dist/src/utils/interactionManager.js.map b/dist/src/utils/interactionManager.js.map index 29a9f2945..35049c738 100644 --- a/dist/src/utils/interactionManager.js.map +++ b/dist/src/utils/interactionManager.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../../src/utils/interactionManager.js"],"names":["InteractionManager","runAfterInteractions","called","timeout","setTimeout","f","clearTimeout"],"mappings":"yRAAA,yC;;AAEKA,+B;AACHC,qBAAsB,gCAAK;;;AAGzB,GAAIC,QAAS,KAAb;AACA,GAAMC,SAAUC,WAAW,UAAM;AAC/BF,OAAS,IAAT;AACAG;AACD,CAHe,CAGb,EAHa,CAAhB;AAIAL,gCAAmBC,oBAAnB,CAAwC,UAAM;AAC5C,GAAIC,MAAJ,CAAY;AACZI,aAAaH,OAAb;AACAE;AACD,CAJD;AAKD,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 +{"version":3,"sources":["../../../src/Utils/interactionManager.js"],"names":["InteractionManager","runAfterInteractions","called","timeout","setTimeout","f","clearTimeout"],"mappings":"yRAAA,yC;;AAEKA,+B;AACHC,qBAAsB,gCAAK;;;AAGzB,GAAIC,QAAS,KAAb;AACA,GAAMC,SAAUC,WAAW,UAAM;AAC/BF,OAAS,IAAT;AACAG;AACD,CAHe,CAGb,EAHa,CAAhB;AAIAL,gCAAmBC,oBAAnB,CAAwC,UAAM;AAC5C,GAAIC,MAAJ,CAAY;AACZI,aAAaH,OAAb;AACAE;AACD,CAJD;AAKD,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.map b/dist/src/utils/mapPropsToStyleNames.js.map index 05e425b83..573bf70f3 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;;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 diff --git a/dist/src/vue-native.js b/dist/src/vue-native.js index 898cb82c7..ae3726034 100644 --- a/dist/src/vue-native.js +++ b/dist/src/vue-native.js @@ -6,6 +6,7 @@ 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"); @@ -65,6 +66,7 @@ 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); diff --git a/dist/src/vue-native.js.map b/dist/src/vue-native.js.map index 91f578f7a..f87029b5b 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","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,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,kBAAd,CAAkCU,0BAAlC;AACAZ,IAAIE,SAAJ,CAAc,YAAd,CAA4BW,cAA5B;AACAb,IAAIE,SAAJ,CAAc,SAAd,CAAyBY,UAAzB;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AAJ,CAAc,WAAd,CAA2BoC,cAA3B;AACAtC,IAAIE,SAAJ,CAAc,eAAd,CAA+BqC,oBAA/B;AACAvC,IAAIE,SAAJ,CAAc,SAAd,CAAyBsC,UAAzB;AACAxC,IAAIE,SAAJ,CAAc,UAAd,CAA0BuC,8BAA1B;AACAzC,IAAIE,SAAJ,CAAc,iBAAd,CAAiCwC,iCAAjC;AACA1C,IAAIE,SAAJ,CAAc,WAAd,CAA2ByC,gBAA3B;AACA3C,IAAIE,SAAJ,CAAc,SAAd,CAAyB0C,UAAzB;AACA5C,IAAIE,SAAJ,CAAc,cAAd,CAA8B2C,kBAA9B;AACA7C,IAAIE,SAAJ,CAAc,cAAd,CAA8B4C,oBAA9B;AACA9C,IAAIE,SAAJ,CAAc,eAAd,CAA+B6C,sBAA/B;AACA/C,IAAIE,SAAJ,CAAc,SAAd,CAAyB8C,UAAzB;AACAhD,IAAIE,SAAJ,CAAc,YAAd,CAA4B+C,gBAA5B;AACAjD,IAAIE,SAAJ,CAAc,UAAd,CAA0BgD,YAA1B;AACAlD,IAAIE,SAAJ,CAAc,aAAd,CAA6BiD,kBAA7B;AACAnD,IAAIE,SAAJ,CAAc,QAAd,CAAwBkD,QAAxB;AACApD,IAAIE,SAAJ,CAAc,SAAd,CAAyBmD,cAAzB;AACArD,IAAIE,SAAJ,CAAc,oBAAd,CAAoCoD,4BAApC;AACAtD,IAAIE,SAAJ,CAAc,mBAAd,CAAmCqD,+BAAnC;AACAvD,IAAIE,SAAJ,CAAc,aAAd,CAA6BsD,kBAA7B;AACAxD,IAAIE,SAAJ,CAAc,cAAd,CAA8BuD,oBAA9B;AACD,CA5DyB,CAA5B,C;;;AA+De3D,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 { 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-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;;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,W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,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 diff --git a/src/vue-native.js b/src/vue-native.js index 6366fd0c6..4431a3ac1 100644 --- a/src/vue-native.js +++ b/src/vue-native.js @@ -6,6 +6,7 @@ import { SwipeRow } from "./basic/SwipeRow"; import { Text } from "./basic/Text"; import { ViewNB as View } from "./basic/View"; import { Button } from "./basic/Button"; +import { DatePicker } from "./basic/DatePicker"; import { TabHeading } from "./basic/TabHeading"; import { TabContainer } from "./basic/TabContainer"; import { IconNB } from "./basic/IconNB"; @@ -65,6 +66,7 @@ const VueNativeBasePlugin = { Vue.component("nb-text", Text); Vue.component("nb-view", View); Vue.component("nb-button", Button); + Vue.component("nb-date-picker", DatePicker); Vue.component("nb-tab-heading", TabHeading); Vue.component("nb-tab-container", TabContainer); Vue.component("nb-icon-nb", IconNB);