diff --git a/CHANGELOG.md b/CHANGELOG.md index 436e9574e..7c7d3a384 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,25 +1,22 @@ -# Version [2.5.2](https://github.com/GeekyAnts/NativeBase/releases/tag/v2.5.2) +# Version [2.6.1](https://github.com/GeekyAnts/NativeBase/releases/tag/v2.6.1) ### Upgraded Features -* **Accordion:** Added border style to accordion along with customisable from theme. PR [#2010](https://github.com/GeekyAnts/NativeBase/pull/2010) -* **Card:** Added card borderRadius to theme. PR [#2008](https://github.com/GeekyAnts/NativeBase/pull/2008), closes [#1845](https://github.com/GeekyAnts/NativeBase/issues/1845) -* **DatePicker:** - - Exposed `onDateChange` method for iOS. PR [#1987](https://github.com/GeekyAnts/NativeBase/pull/1987) - - Added `placeHolderTextStyle` props to DatePicker. PR [#1972](https://github.com/GeekyAnts/NativeBase/pull/1972), closes [#1991](https://github.com/GeekyAnts/NativeBase/issues/1991) -* **Header:** Added `transparent` prop with Header. PR [#1995](https://github.com/GeekyAnts/NativeBase/pull/1995), closes [#1981](https://github.com/GeekyAnts/NativeBase/issues/1981) -* **Typescript:** Added definitions for Accordion and DatePicker. PR [#1997](https://github.com/GeekyAnts/NativeBase/pull/1997), closes [#1986](https://github.com/GeekyAnts/NativeBase/issues/1986) +* **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) + ### Bug Fixes -* **General:** NativeBase passes flow check. [4663af0](https://github.com/GeekyAnts/NativeBase/commit/4663af052e6e4852d3c37289503f84201ba04c26), closes [#633](https://github.com/GeekyAnts/NativeBase/issues/633) -* **Header:** Fix header padding issue on iphoneX in case of inline styles. PR [#2012](https://github.com/GeekyAnts/NativeBase/pull/2012), closes [#1985](https://github.com/GeekyAnts/NativeBase/issues/1985) -* **Input:** - - StackedLabel supports `multiline` prop. PR [#1927](https://github.com/GeekyAnts/NativeBase/pull/1927), closes [#1924](https://github.com/GeekyAnts/NativeBase/issues/1924) - - Fixed back StackedLabel input scroll. PR [#2007](https://github.com/GeekyAnts/NativeBase/pull/2007), closes [#2006](https://github.com/GeekyAnts/NativeBase/issues/2006) - - FloatingLabel supports `multiline` prop. PR [#1935](https://github.com/GeekyAnts/NativeBase/pull/1935) - - Added check to filter out Input. PR [#1922](https://github.com/GeekyAnts/NativeBase/pull/1922), closes [#1915](https://github.com/GeekyAnts/NativeBase/issues/1915) -* **Tabs:** Tab button text font size is customizable from theme. PR [#1996](https://github.com/GeekyAnts/NativeBase/pull/1996), closes [#1992](https://github.com/GeekyAnts/NativeBase/issues/1992) -* **Typescript:** - - Fixed typo. PR [#1990](https://github.com/GeekyAnts/NativeBase/pull/1990), closes [#1982](https://github.com/GeekyAnts/NativeBase/issues/1982) \ No newline at end of file +* **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 diff --git a/dist/src/index.js b/dist/src/index.js index 80faadc0c..acc1c1a29 100644 --- a/dist/src/index.js +++ b/dist/src/index.js @@ -1,4 +1,4 @@ -Object.defineProperty(exports,"__esModule",{value:true});exports.mapPropsToStyleNames=exports.Accordion=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"); +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"); @@ -56,7 +56,9 @@ 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 _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. @@ -120,6 +122,7 @@ DefaultTabBar=_DefaultTabBar.DefaultTabBar;exports. Segment=_Segment.Segment;exports. Root=_Root.Root;exports. SwipeRow=_SwipeRow.SwipeRow;exports. +VueNativeBase=_vueNative2.default;exports. Accordion=_Accordion.Accordion; diff --git a/dist/src/index.js.map b/dist/src/index.js.map index f17c0135e..89d063152 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","Accordion","mapPropsToStyleNames","styleNames","props"],"mappings":"0gCAAA;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,4C;;AAEA,qB;;;AAGEA,Q,CAAAA,oB;AACAC,S,CAAAA,kB;AACAC,a,CAAAA,qC;AACAC,Y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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\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 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;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 diff --git a/dist/src/vue-native.js b/dist/src/vue-native.js new file mode 100644 index 000000000..ae3726034 --- /dev/null +++ b/dist/src/vue-native.js @@ -0,0 +1,122 @@ +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 new file mode 100644 index 000000000..f87029b5b --- /dev/null +++ b/dist/src/vue-native.js.map @@ -0,0 +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,gBA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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/package.json b/package.json index 669672d66..2dbcd9a20 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "node_modules/(?!react-native|@shoutem|react-clone-referenced-element|native-base-shoutem-theme)" ] }, - "version": "2.5.2", + "version": "2.6.1", "license": "Apache-2.0", "private": false, "dependencies": { diff --git a/src/index.js b/src/index.js index 058a75d10..767d9e914 100644 --- a/src/index.js +++ b/src/index.js @@ -58,6 +58,8 @@ import { ScrollableTab } from "./basic/Tabs/ScrollableTabBar"; import { Subtitle } from "./basic/Subtitle"; import { Accordion } from "./basic/Accordion"; +import VueNativeBase from "./vue-native.js"; + setDefaultThemeStyle(); // Theme export { @@ -120,6 +122,7 @@ export { Segment, Root, SwipeRow, + VueNativeBase, Accordion }; diff --git a/src/vue-native.js b/src/vue-native.js new file mode 100644 index 000000000..4431a3ac1 --- /dev/null +++ b/src/vue-native.js @@ -0,0 +1,121 @@ +import { StyleProvider } from "native-base-shoutem-theme"; +// import { Gravatar } from "./basic/Gravatar"; +import { Col, Row, Grid } from "react-native-easy-grid"; +import Drawer from "./basic/Drawer"; +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"; +import { Icon } from "./basic/Icon"; +import { Header } from "./basic/Header"; +import { InputGroup } from "./basic/InputGroup"; +import { Input } from "./basic/Input"; +import { Title } from "./basic/Title"; +import { Fab } from "./basic/Fab"; +import { Left } from "./basic/Left"; +import { Right } from "./basic/Right"; +import { Body } from "./basic/Body"; +import { Badge } from "./basic/Badge"; +import { CheckBox } from "./basic/Checkbox"; +import { Radio } from "./basic/Radio"; +import { Thumbnail } from "./basic/Thumbnail"; +import { Card } from "./basic/Card"; +import { CardItem } from "./basic/CardItem"; +import { H1 } from "./basic/H1"; +import { H2 } from "./basic/H2"; +import { H3 } from "./basic/H3"; +import { Spinner } from "./basic/Spinner"; +import { Switch } from "./basic/Switch"; +import { Container } from "./basic/Container"; +import { Root } from "./basic/Root"; +import { Content } from "./basic/Content"; +import { Footer } from "./basic/Footer"; +import { FooterTab } from "./basic/FooterTab"; +import { Form } from "./basic/Form"; +import { ToastContainer } from "./basic/ToastContainer"; +import { ActionSheetContainer } from "./basic/Actionsheet"; +import { PickerNB } from "./basic/Picker"; +import { List } from "./basic/List"; +import { ListItem } from "./basic/ListItem"; +import { Separator } from "./basic/Separator"; +import { DeckSwiper } from "./basic/DeckSwiper"; +import { Item } from "./basic/Item"; +import { Segment } from "./basic/Segment"; +import { Label } from "./basic/Label"; +import { Textarea } from "./basic/Textarea"; +import { Tab } from "./basic/Tab"; +import ScrollableTabView from "./basic/Tabs"; +import { DefaultTabBar } from "./basic/Tabs/DefaultTabBar"; +import { ScrollableTab } from "./basic/Tabs/ScrollableTabBar"; +import { Subtitle } from "./basic/Subtitle"; +import { Accordion } from "./basic/Accordion"; + +const VueNativeBasePlugin = { + // The install method is all that needs to exist on the plugin object. + // It takes the global Vue object as well as user-defined options. + install(Vue, options) { + Vue.component("nb-drawer", Drawer); + Vue.component("nb-row", Row); + Vue.component("nb-col", Col); + Vue.component("nb-grid", Grid); + Vue.component("nb-swipe-row", SwipeRow); + 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); + Vue.component("nb-icon", Icon); + Vue.component("nb-style-provider", StyleProvider); + Vue.component("nb-header", Header); + Vue.component("nb-input-group", InputGroup); + Vue.component("nb-input", Input); + Vue.component("nb-title", Title); + Vue.component("nb-fab", Fab); + Vue.component("nb-left", Left); + Vue.component("nb-right", Right); + Vue.component("nb-body", Body); + Vue.component("nb-badge", Badge); + Vue.component("nb-checkbox", CheckBox); + Vue.component("nb-radio", Radio); + Vue.component("nb-thumbnail", Thumbnail); + Vue.component("nb-card", Card); + Vue.component("nb-cardItem", CardItem); + Vue.component("nb-h1", H1); + Vue.component("nb-h2", H2); + Vue.component("nb-h3", H3); + Vue.component("nb-spinner", Spinner); + Vue.component("nb-switch", Switch); + Vue.component("nb-container", Container); + Vue.component("nb-root", Root); + Vue.component("nb-content", Content); + Vue.component("nb-tab-content", Content); + Vue.component("nb-footer", Footer); + Vue.component("nb-footer-tab", FooterTab); + Vue.component("nb-form", Form); + Vue.component("nb-toast", ToastContainer); + Vue.component("nb-action-sheet", ActionSheetContainer); + Vue.component("nb-picker", PickerNB); + Vue.component("nb-list", List); + Vue.component("nb-list-item", ListItem); + Vue.component("nb-separator", Separator); + Vue.component("nb-deckSwiper", DeckSwiper); + Vue.component("nb-item", Item); + Vue.component("nb-segment", Segment); + Vue.component("nb-label", Label); + Vue.component("nb-textarea", Textarea); + Vue.component("nb-tab", Tab); + Vue.component("nb-tabs", ScrollableTabView); + Vue.component("nb-default-tab-bar", DefaultTabBar); + Vue.component("nb-scrollable-tab", ScrollableTab); + Vue.component("nb-subtitle", Subtitle); + Vue.component("nb-accordion", Accordion); + } +}; + +export default VueNativeBasePlugin;