index.js 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686
  1. import React from 'react';
  2. import Types from '../../lib/Types';
  3. import Module from '../../lib/Module';
  4. import { Accordion as AccordionCtor } from 'native-base';
  5. import { Actionsheet as ActionsheetCtor } from 'native-base';
  6. import { Badge as BadgeCtor } from 'native-base';
  7. import { Body as BodyCtor } from 'native-base';
  8. import { Button as ButtonCtor } from 'native-base';
  9. import { Card as CardCtor } from 'native-base';
  10. import { CardItem as CardItemCtor } from 'native-base';
  11. import { Checkbox as CheckboxCtor } from 'native-base';
  12. import { Container as ContainerCtor } from 'native-base';
  13. import { Content as ContentCtor } from 'native-base';
  14. import { DatePicker as DatePickerCtor } from 'native-base';
  15. import { DeckSwiper as DeckSwiperCtor } from 'native-base';
  16. import { Fab as FabCtor } from 'native-base';
  17. import { Footer as FooterCtor } from 'native-base';
  18. import { FooterTab as FooterTabCtor } from 'native-base';
  19. import { Form as FormCtor } from 'native-base';
  20. import { Gravatar as GravatarCtor } from 'native-base';
  21. import { H1 as H1Ctor } from 'native-base';
  22. import { H2 as H2Ctor } from 'native-base';
  23. import { H3 as H3Ctor } from 'native-base';
  24. import { Header as HeaderCtor } from 'native-base';
  25. import { IconNB as IconNBCtor } from 'native-base';
  26. import { Input as InputCtor } from 'native-base';
  27. import { InputGroup as InputGroupCtor } from 'native-base';
  28. import { Item as ItemCtor } from 'native-base';
  29. import { Label as LabelCtor } from 'native-base';
  30. import { Left as LeftCtor } from 'native-base';
  31. import { List as ListCtor } from 'native-base';
  32. import { ListItem as ListItemCtor } from 'native-base';
  33. import { PickerItem as PickerItemCtor } from 'native-base';
  34. import { Radio as RadioCtor } from 'native-base';
  35. import { Right as RightCtor } from 'native-base';
  36. import { Root as RootCtor } from 'native-base';
  37. import { Segment as SegmentCtor } from 'native-base';
  38. import { Separator as SeparatorCtor } from 'native-base';
  39. import { Spinner as SpinnerCtor } from 'native-base';
  40. import { Subtitle as SubtitleCtor } from 'native-base';
  41. import { SwipeRow as SwipeRowCtor } from 'native-base';
  42. import { Switch as SwitchCtor } from 'native-base';
  43. import { Tab as TabCtor } from 'native-base';
  44. import { TabContainer as TabContainerCtor } from 'native-base';
  45. import { TabHeading as TabHeadingCtor } from 'native-base';
  46. import { Text as TextCtor } from 'native-base';
  47. import { Textarea as TextareaCtor } from 'native-base';
  48. import { Thumbnail as ThumbnailCtor } from 'native-base';
  49. import { Title as TitleCtor } from 'native-base';
  50. import { Toast as ToastCtor } from 'native-base';
  51. import { ToastContainer as ToastContainerCtor } from 'native-base';
  52. import { View as ViewCtor } from 'native-base';
  53. export class Accordion extends Module {
  54. constructor(props) {
  55. super(props);
  56. }
  57. display() {
  58. return <AccordionCtor {...this.props} />
  59. }
  60. }
  61. export class Actionsheet extends Module {
  62. constructor(props) {
  63. super(props);
  64. }
  65. display() {
  66. return <ActionsheetCtor {...this.props} />
  67. }
  68. }
  69. export class Badge extends Module {
  70. constructor(props) {
  71. super(props);
  72. }
  73. display() {
  74. return <BadgeCtor {...this.props} />
  75. }
  76. }
  77. export class Body extends Module {
  78. constructor(props) {
  79. super(props);
  80. }
  81. display() {
  82. return <BodyCtor {...this.props} />
  83. }
  84. }
  85. export class Button extends Module {
  86. constructor(props) {
  87. super(props);
  88. }
  89. display() {
  90. return <ButtonCtor {...this.props} />
  91. }
  92. }
  93. export class Card extends Module {
  94. constructor(props) {
  95. super(props);
  96. }
  97. display() {
  98. return <CardCtor {...this.props} />
  99. }
  100. }
  101. export class CardItem extends Module {
  102. constructor(props) {
  103. super(props);
  104. }
  105. display() {
  106. return <CardItemCtor {...this.props} />
  107. }
  108. }
  109. export class Checkbox extends Module {
  110. constructor(props) {
  111. super(props);
  112. }
  113. display() {
  114. return <CheckboxCtor {...this.props} />
  115. }
  116. }
  117. export class Container extends Module {
  118. constructor(props) {
  119. super(props);
  120. }
  121. display() {
  122. return <ContainerCtor {...this.props} />
  123. }
  124. }
  125. export class Content extends Module {
  126. constructor(props) {
  127. super(props);
  128. }
  129. display() {
  130. return <ContentCtor {...this.props} />
  131. }
  132. }
  133. export class DatePicker extends Module {
  134. constructor(props) {
  135. super(props);
  136. }
  137. display() {
  138. return <DatePickerCtor {...this.props} />
  139. }
  140. }
  141. export class DeckSwiper extends Module {
  142. constructor(props) {
  143. super(props);
  144. }
  145. display() {
  146. return <DeckSwiperCtor {...this.props} />
  147. }
  148. }
  149. export class Fab extends Module {
  150. constructor(props) {
  151. super(props);
  152. }
  153. display() {
  154. return <FabCtor {...this.props} />
  155. }
  156. }
  157. export class Footer extends Module {
  158. constructor(props) {
  159. super(props);
  160. }
  161. display() {
  162. return <FooterCtor {...this.props} />
  163. }
  164. }
  165. export class FooterTab extends Module {
  166. constructor(props) {
  167. super(props);
  168. }
  169. display() {
  170. return <FooterTabCtor {...this.props} />
  171. }
  172. }
  173. export class Form extends Module {
  174. constructor(props) {
  175. super(props);
  176. }
  177. display() {
  178. return <FormCtor {...this.props} />
  179. }
  180. }
  181. export class Gravatar extends Module {
  182. constructor(props) {
  183. super(props);
  184. }
  185. display() {
  186. return <GravatarCtor {...this.props} />
  187. }
  188. }
  189. export class H1 extends Module {
  190. constructor(props) {
  191. super(props);
  192. }
  193. display() {
  194. return <H1Ctor {...this.props} />
  195. }
  196. }
  197. export class H2 extends Module {
  198. constructor(props) {
  199. super(props);
  200. }
  201. display() {
  202. return <H2Ctor {...this.props} />
  203. }
  204. }
  205. export class H3 extends Module {
  206. constructor(props) {
  207. super(props);
  208. }
  209. display() {
  210. return <H3Ctor {...this.props} />
  211. }
  212. }
  213. export class Header extends Module {
  214. constructor(props) {
  215. super(props);
  216. }
  217. display() {
  218. return <HeaderCtor {...this.props} />
  219. }
  220. }
  221. export class IconNB extends Module {
  222. constructor(props) {
  223. super(props);
  224. }
  225. display() {
  226. return <IconNBCtor {...this.props} />
  227. }
  228. }
  229. export class Input extends Module {
  230. constructor(props) {
  231. super(props);
  232. }
  233. display() {
  234. return <InputCtor {...this.props} />
  235. }
  236. }
  237. export class InputGroup extends Module {
  238. constructor(props) {
  239. super(props);
  240. }
  241. display() {
  242. return <InputGroupCtor {...this.props} />
  243. }
  244. }
  245. export class Item extends Module {
  246. constructor(props) {
  247. super(props);
  248. }
  249. display() {
  250. return <ItemCtor {...this.props} />
  251. }
  252. }
  253. export class Label extends Module {
  254. constructor(props) {
  255. super(props);
  256. }
  257. display() {
  258. return <LabelCtor {...this.props} />
  259. }
  260. }
  261. export class Left extends Module {
  262. constructor(props) {
  263. super(props);
  264. }
  265. display() {
  266. return <LeftCtor {...this.props} />
  267. }
  268. }
  269. export class List extends Module {
  270. constructor(props) {
  271. super(props);
  272. }
  273. display() {
  274. return <ListCtor {...this.props} />
  275. }
  276. }
  277. export class ListItem extends Module {
  278. constructor(props) {
  279. super(props);
  280. }
  281. display() {
  282. return <ListItemCtor {...this.props} />
  283. }
  284. }
  285. export class PickerItem extends Module {
  286. constructor(props) {
  287. super(props);
  288. }
  289. display() {
  290. return <PickerItemCtor {...this.props} />
  291. }
  292. }
  293. export class Radio extends Module {
  294. constructor(props) {
  295. super(props);
  296. }
  297. display() {
  298. return <RadioCtor {...this.props} />
  299. }
  300. }
  301. export class Right extends Module {
  302. constructor(props) {
  303. super(props);
  304. }
  305. display() {
  306. return <RightCtor {...this.props} />
  307. }
  308. }
  309. export class Root extends Module {
  310. constructor(props) {
  311. super(props);
  312. }
  313. display() {
  314. return <RootCtor {...this.props} />
  315. }
  316. }
  317. export class Segment extends Module {
  318. constructor(props) {
  319. super(props);
  320. }
  321. display() {
  322. return <SegmentCtor {...this.props} />
  323. }
  324. }
  325. export class Separator extends Module {
  326. constructor(props) {
  327. super(props);
  328. }
  329. display() {
  330. return <SeparatorCtor {...this.props} />
  331. }
  332. }
  333. export class Spinner extends Module {
  334. constructor(props) {
  335. super(props);
  336. }
  337. display() {
  338. return <SpinnerCtor {...this.props} />
  339. }
  340. }
  341. export class Subtitle extends Module {
  342. constructor(props) {
  343. super(props);
  344. }
  345. display() {
  346. return <SubtitleCtor {...this.props} />
  347. }
  348. }
  349. export class SwipeRow extends Module {
  350. constructor(props) {
  351. super(props);
  352. }
  353. display() {
  354. return <SwipeRowCtor {...this.props} />
  355. }
  356. }
  357. export class Switch extends Module {
  358. constructor(props) {
  359. super(props);
  360. }
  361. display() {
  362. return <SwitchCtor {...this.props} />
  363. }
  364. }
  365. export class Tab extends Module {
  366. constructor(props) {
  367. super(props);
  368. }
  369. display() {
  370. return <TabCtor {...this.props} />
  371. }
  372. }
  373. export class TabContainer extends Module {
  374. constructor(props) {
  375. super(props);
  376. }
  377. display() {
  378. return <TabContainerCtor {...this.props} />
  379. }
  380. }
  381. export class TabHeading extends Module {
  382. constructor(props) {
  383. super(props);
  384. }
  385. display() {
  386. return <TabHeadingCtor {...this.props} />
  387. }
  388. }
  389. export class Text extends Module {
  390. constructor(props) {
  391. super(props);
  392. }
  393. display() {
  394. return <TextCtor {...this.props} />
  395. }
  396. }
  397. export class Textarea extends Module {
  398. constructor(props) {
  399. super(props);
  400. }
  401. display() {
  402. return <TextareaCtor {...this.props} />
  403. }
  404. }
  405. export class Thumbnail extends Module {
  406. constructor(props) {
  407. super(props);
  408. }
  409. display() {
  410. return <ThumbnailCtor {...this.props} />
  411. }
  412. }
  413. export class Title extends Module {
  414. constructor(props) {
  415. super(props);
  416. }
  417. display() {
  418. return <TitleCtor {...this.props} />
  419. }
  420. }
  421. export class Toast extends Module {
  422. constructor(props) {
  423. super(props);
  424. }
  425. display() {
  426. return <ToastCtor {...this.props} />
  427. }
  428. }
  429. export class ToastContainer extends Module {
  430. constructor(props) {
  431. super(props);
  432. }
  433. display() {
  434. return <ToastContainerCtor {...this.props} />
  435. }
  436. }
  437. export class View extends Module {
  438. constructor(props) {
  439. super(props);
  440. }
  441. display() {
  442. return <ViewCtor {...this.props} />
  443. }
  444. }
  445. Accordion.Inputs = {
  446. }
  447. Actionsheet.Inputs = {
  448. }
  449. Badge.Inputs = {
  450. }
  451. Body.Inputs = {
  452. }
  453. Button.Inputs = {
  454. block: new Types.Bool(),
  455. primary: new Types.Bool(),
  456. transparent: new Types.Bool(),
  457. success: new Types.Bool(),
  458. danger: new Types.Bool(),
  459. warning: new Types.Bool(),
  460. info: new Types.Bool(),
  461. bordered: new Types.Bool(),
  462. disabled: new Types.Bool(),
  463. rounded: new Types.Bool(),
  464. large: new Types.Bool(),
  465. small: new Types.Bool(),
  466. active: new Types.Bool()
  467. }
  468. Card.Inputs = {
  469. }
  470. CardItem.Inputs = {
  471. header: new Types.Bool(),
  472. cardBody: new Types.Bool(),
  473. footer: new Types.Bool(),
  474. button: new Types.Bool()
  475. }
  476. Checkbox.Inputs = {
  477. checked: new Types.Bool()
  478. }
  479. Container.Inputs = {
  480. }
  481. Content.Inputs = {
  482. disableKBDismissScroll: new Types.Bool(),
  483. keyboardShouldPersistTaps: new Types.Text(),
  484. padder: new Types.Bool()
  485. }
  486. DatePicker.Inputs = {
  487. }
  488. DeckSwiper.Inputs = {
  489. }
  490. Fab.Inputs = {
  491. }
  492. Footer.Inputs = {
  493. }
  494. FooterTab.Inputs = {
  495. }
  496. Form.Inputs = {
  497. }
  498. Gravatar.Inputs = {
  499. email: new Types.Text().require(),
  500. size: new Types.Real(),
  501. circular: new Types.Bool(),
  502. square: new Types.Bool()
  503. }
  504. H1.Inputs = {
  505. }
  506. H2.Inputs = {
  507. }
  508. H3.Inputs = {
  509. }
  510. Header.Inputs = {
  511. searchBar: new Types.Bool(),
  512. rounded: new Types.Bool()
  513. }
  514. IconNB.Inputs = {
  515. }
  516. Input.Inputs = {
  517. }
  518. InputGroup.Inputs = {
  519. regular: new Types.Bool(),
  520. underline: new Types.Bool(),
  521. rounded: new Types.Bool(),
  522. success: new Types.Bool(),
  523. error: new Types.Bool(),
  524. disabled: new Types.Bool()
  525. }
  526. Item.Inputs = {
  527. inlineLabel: new Types.Bool(),
  528. floatingLabel: new Types.Bool(),
  529. stackedLabel: new Types.Bool(),
  530. fixedLabel: new Types.Bool(),
  531. success: new Types.Bool(),
  532. error: new Types.Bool()
  533. }
  534. Label.Inputs = {
  535. floatBack: new Types.Real()
  536. }
  537. Left.Inputs = {
  538. }
  539. List.Inputs = {
  540. }
  541. ListItem.Inputs = {
  542. itemDivider: new Types.Bool(),
  543. button: new Types.Bool()
  544. }
  545. PickerItem.Inputs = {
  546. }
  547. Radio.Inputs = {
  548. selected: new Types.Bool(),
  549. standardStyle: new Types.Bool()
  550. }
  551. Right.Inputs = {
  552. }
  553. Root.Inputs = {
  554. }
  555. Segment.Inputs = {
  556. }
  557. Separator.Inputs = {
  558. }
  559. Spinner.Inputs = {
  560. color: new Types.Text(),
  561. inverse: new Types.Bool()
  562. }
  563. Subtitle.Inputs = {
  564. }
  565. SwipeRow.Inputs = {
  566. }
  567. Switch.Inputs = {
  568. }
  569. Tab.Inputs = {
  570. }
  571. TabContainer.Inputs = {
  572. }
  573. TabHeading.Inputs = {
  574. }
  575. Text.Inputs = {
  576. uppercase: new Types.Bool().default(false)
  577. }
  578. Textarea.Inputs = {
  579. rowSpan: new Types.Real(),
  580. bordered: new Types.Bool(),
  581. underline: new Types.Bool()
  582. }
  583. Thumbnail.Inputs = {
  584. square: new Types.Bool(),
  585. circular: new Types.Bool(),
  586. size: new Types.Real()
  587. }
  588. Title.Inputs = {
  589. }
  590. Toast.Inputs = {
  591. }
  592. ToastContainer.Inputs = {
  593. }
  594. View.Inputs = {
  595. }
  596. export default {
  597. Accordion,
  598. Actionsheet,
  599. Badge,
  600. Body,
  601. Button,
  602. Card,
  603. CardItem,
  604. Checkbox,
  605. Container,
  606. Content,
  607. DatePicker,
  608. DeckSwiper,
  609. Fab,
  610. Footer,
  611. FooterTab,
  612. Form,
  613. Gravatar,
  614. H1,
  615. H2,
  616. H3,
  617. Header,
  618. IconNB,
  619. Input,
  620. InputGroup,
  621. Item,
  622. Label,
  623. Left,
  624. List,
  625. ListItem,
  626. PickerItem,
  627. Radio,
  628. Right,
  629. Root,
  630. Segment,
  631. Separator,
  632. Spinner,
  633. Subtitle,
  634. SwipeRow,
  635. Switch,
  636. Tab,
  637. TabContainer,
  638. TabHeading,
  639. Text,
  640. Textarea,
  641. Thumbnail,
  642. Title,
  643. Toast,
  644. ToastContainer,
  645. View
  646. }