code
stringlengths
26
5k
intent
stringlengths
3
2.56k
import React from 'react'; import { emallson, Zerotorescue } from 'CONTRIBUTORS'; import ITEMS from 'common/ITEMS'; import ItemLink from 'common/ItemLink'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; export default [ { date: new Date('2019-04-11'), changes: <>Fixed a bug in...
Imports a single node in the checklist.
/* * * ThemeProvider * * this component connects the redux state theme to the * */ import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' import { makeSelectDirection } from 'containers/LanguageProvider...
A theme provider that can be used to render a series of children in a series of state.
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
A component that is rendered when a node is clicked on a node.
import React from 'react'; import { Link } from 'react-router-dom'; const SideNavbar = () => { return ( <div id="menubar" className="menubar-inverse "> <div className="menubar-fixed-panel"> <div> <a className="btn btn-icon-toggle btn-default menubar-toggle" data-toggle="menubar" hre...
export default SideNavbar
import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './app'; render( <AppContainer><App/></AppContainer>, document.querySelector("#app")); if (module.hot) { module.hot.accept('./app.js', () => { const App = require('./app.js').default; ...
Imports the hot - loader and renders the app if it s available.
import React from 'react'; import { View, KeyboardAvoidingView, Platform, Text, ViewPropTypes } from 'react-native'; import PropTypes from 'prop-types'; import Modal from 'react-native-modal'; import styles from './Popup.styles'; import KeyboardDismissingView from '../KeyboardDismissingView/KeyboardDismissing...
Imports a single node - returning popup.
import React from 'react'; const ServerTime = ({ api }) => { const [hasApiResponse, setHasApiResponse] = React.useState(false); const [date, setDate] = React.useState(); const [dateString, setDateString] = React.useState(); const updateTime = () => { if (!date) return; date.setSeconds...
This module exports a function that exports a server time object.
import React from 'react' import { storiesOf } from '@storybook/react' import theme from 'v2/styles/theme' import Specimen from 'v2/stories/__components__/Specimen' import States from 'v2/stories/__components__/States' import GenericButton from 'v2/components/UI/GenericButton' import { DividerButton, FilledButton } ...
- -
import React from 'react'; export default function(props) { const {children} = props; // eslint-disable-line react/prop-types return <div>{children}</div>; }
default export function
import React from 'react' const PageBreak = () => <div className="page-break" /> export default ({ company, title, dateRange, children, pageBreak = false }) => { return ( <> <div className="experience-container"> <div className="experience-header"> <span> <b>{title}</b> at {c...
default implementation of
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let LibraryAdd = props => <SvgIcon {...props}> <path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z" /> </...
A component that adds a series of icons to a group of icons.
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import ItemHealingDone from 'Main/ItemHealingDone'; /* * Tarratus Keystone - * Use: Open a portal at an ally's locati...
A class that implements a tarratus keystone.
/* * Copyright (C) 2015 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
Package base for all missing missing records.
import React from 'react' import Image from 'next/image' const myLoader = ({ src, width, quality }) => { return `https://customresolver.com/${src}?w~~${width},q~~${quality}` } const MyImage = (props) => { return <Image loader={myLoader} {...props}></Image> } const Page = () => { return ( <div> <p id=...
export default page - protected
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
This is the first
// https://github.com/vishnevskiy/bbcodejs/blob/master/src/coffee/tags.coffee import React from 'react'; import Tag from '../tag'; export default class SizeTag extends Tag { toHTML() { const size = this.params.size; if (isNaN(size)) { return this.getContent(); } return [`<span style="font-siz...
A base class for all size tags that can be rendered as a size tag.
/** * Created by flybear on 15/11/18. */ import React from 'react' export default class Head extends React.Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(this); } handleClick(){ console.log("---") } render() { return ( ...
Component that displays a single n - node error in the navbar.
import React from 'react' import PropTypes from 'prop-types' import MessageBar from '@components/MessageBar' const MessagesList = ({ children }) => { return ( <ul className="messages"> { children } </ul> ) } MessagesList.propTypes = { children: PropTypes.oneOfType([PropTypes.a...
Create a MessagesList object that can be used to render a sequence of children.
import React from 'react'; import { getPeriodLabel, getPeriodDate } from '../helpers/periods'; import { DrilldownLink } from '../../../components/shared/drilldown-link'; import { formatMeasure } from '../../../helpers/measures'; const Measure = React.createClass({ render() { if (this.props.value == null || isN...
A component which displays a single condition in a layout.
import React, { Component } from 'react'; import GreedyText from 'react-greedy-text'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <header> <GreedyText> Greedy Text! </GreedyText> </header> <main style={...
Component that is not part of a component in a component s container.
import React from 'react'; import PropTypes from 'prop-types'; import { ConfirmDialog } from '@strapi/helper-plugin'; import { useRemoveAsset } from '../../hooks/useRemoveAsset'; export const RemoveAssetDialog = ({ onClose, asset }) => { const { isLoading, removeAsset } = useRemoveAsset(onClose); const handleConf...
Create a dialog that removes a single asset from the assets list.
import React from 'react'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import SPELLS from 'common/SPELLS'; import { TooltipElement } from 'common/Tooltip'; import Analyzer from 'parser/core/Analyzer...
The base class for all HealingRain events.
import React from 'react'; import PropTypes from 'prop-types'; export default function SpeakerListItem(props) { const { id, firstName, lastName, company, imageUrl } = props; const img = () => { if (process.env.NODE_ENV === 'development') { return ( <img src={`assets/images/speakers/Spe...
A list item that can be used to show a single noun in a list of nouns.
import React from 'react'; import {home} from '../styles/home.scss'; import Carousel from './Carousel'; import UpcomingEvents from './UpcomingEvents'; import axios from 'axios'; import { WP_DOMAIN } from '../../wp.config'; class Home extends React.Component { constructor(props) { super(props); this...
Component that shows a carousel image.
import React, { Component } from 'react'; const List = props => ( <ul> {props.items.map((item, index) => <li key={index}>{item}</li>)} </ul> ); export default List;
Export a list of missing key - value pairs in a React component.
import React, { Component } from 'react'; import Script from './../data/data.json'; import SearchForm from './SearchForm'; import Visualization from './Visualization'; import SecretStory from './SecretStory'; import TextLineList from './TextLineList'; class App extends Component { constructor(props) { super(pro...
Component that is a component that can be used to show a series of results in a single line.
/* @flow */ import React from 'react'; import { View, Image, ScrollView } from 'react-native'; import { connectStyle } from 'native-base-shoutem-theme'; import { Footer } from '../../basic/Footer'; import { Fab } from '../../basic/Fab'; import _ from 'lodash'; import mapPropsToStyleNames from '../../Utils/mapPropsToSt...
Creates a container
import React from 'react'; import { render } from 'react-dom'; import Lorem from './Lorem'; render( <div> <Lorem /> <Lorem reps={{ times: 4, lineBreak: true }} color={'yellow'} fontSize={'medium'} /> <Lorem color={'blue'} fontSize={30} /> <Lorem color={'rgb(154,67,123)'} fontSize={'large'} /> </div...
Renders a single node in the hierarchy.
import React from 'react'; class IssueIcon extends React.Component { render() { return ( <svg height="1em" width="0.875em" className={ this.props.className } > <path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.1...
A component that can be rendered as an icon in a tree.
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
Get the shallow rendered component
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class Button extends React.PureComponent { static propTypes = { text: PropTypes.node, onClick: PropTypes.func, disabled: PropTypes.bool, block: PropTypes.bool, secondary: PropTypes....
Button component that renders a button with a single component that has a single child.
import React from 'react'; import {Row,Col} from 'reactstrap'; import PRODUCTS from './products.json'; // import Gallery from './gallery'; var $ = require ('jquery'); export default class Product extends React.Component { render() { var getProductData = id => $.grep(PRODUCTS, function(e){ retu...
Add a single product with no dependencies or missing dependencies.
import { t } from '@lingui/macro'; import { formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS'; import { SpellLink } from 'interface'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import BoringSpellValueText from 'parser/ui/BoringSpe...
The base class for all of the functions that are defined in the grammar.
import React from 'react'; import Root from './Root'; import HomePage from './HomePage'; import IntroductionPage from './IntroductionPage'; import GettingStartedPage from './GettingStartedPage'; import ComponentsPage from './ComponentsPage'; import SupportPage from './SupportPage'; import NotFoundPage from './NotFound...
Imports a bunch of modules into the hierarchy.
import React from 'react' import PropTypes from 'prop-types' import { Field, reduxForm } from 'redux-form' import { TextField } from 'redux-form-material-ui' import RaisedButton from 'material-ui/RaisedButton' import { required, email } from 'utils/forms' import { RECOVER_EMAIL_FORM_NAME } from 'constants' import class...
Create a template for a single non - empty sequence of components.
import React from 'react'; import { ScrollView } from 'react-native'; import { compose, mapProps, pure } from 'recompose'; import withArticle from '@data/withArticle'; import withCachedContent from '@data/withCachedContent'; import BackgroundView from '@ui/BackgroundView'; import Header from '@ui/Header'; import Conte...
Imports a single node in the hierarchy.
import React from 'react' import rpc from 'app/rpc' import Flash from 'app/flash' import PluginDetails from './details' import plugin from 'app/utils/plugin' import {merge, object_list_to_map} from 'app/utils' import event from 'app/utils/event' import i18n from 'app/utils/i18n' import {set_modal, goto} from 'app/utils...
Component that is rendered when a component is rendered.
import C from './constants' import React from 'react' import { render } from 'react-dom' import routes from './routes' import sampleData from './initialState' import storeFactory from './store' import { Provider } from 'react-redux' import { addError } from './actions' const initialState = (localStorage["redux-store"]...
Imports a single node in the window
import React from 'react'; import createAll from './components/createAll'; export const { Provider, Connector, provide, connect } = createAll(React);
Imports and exports all components of a managed component.
import React from 'react' import { Helmet } from 'react-helmet' import '../styles/about.css' const About = () => ( <div className="page-goes-here" id="about"> <Helmet> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrit...
Package private for testing purposes
import isEmpty from 'lodash/isEmpty'; import React from 'react'; import PropTypes from 'prop-types'; import CSSModules from 'react-css-modules'; import { LinkContainer } from 'react-router-bootstrap'; import Nav from 'react-bootstrap/lib/Nav'; import NavItem from 'react-bootstrap/lib/NavItem'; import Panel from 'react-...
The main function of the timeline expansion.
import React from 'react'; import PropTable from '../PropTable'; import Anchor from '../Anchor'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function ReferListSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> ...
This function returns a list of all possible missing items in the list.
import React from 'react'; import PropTypes from 'prop-types'; import { Row, Col, Form, FormGroup, Button } from 'patternfly-react'; import { LinkContainer } from 'react-router-bootstrap'; import { noop } from 'foremanReact/common/helpers'; import { translate as __ } from 'foremanReact/common/I18n'; import Search from...
Renders a single single - language sequence sequence
import React, { Component } from 'react'; export default class Break extends Component { render() { return ( <div className="break"> </div> ); } }
The default implementation of a break class.
import React from 'react'; import { withRouter } from 'react-router'; import Purifier from 'html-purify'; import { user, getIcon } from './auth'; import Bucket from './bucket'; import Loading from './loading'; import API from './api'; import { EventSolveOpt } from './eventsolve'; import { ResolvableComponent } from '....
A component that shows a list of clues that can be solved or unsolving.
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; const root = document.getElementById('root'); ReactDOM.render(<App />, root); if (module.hot) { module.hot.accept('./App', () => { const NextApp = require('./App').default; ReactDOM.render(<NextApp />, root); }); }
Imports the hot app if it is not available.
import React from 'react'; import PropTypes from 'prop-types'; import styled from '@ui/styled'; import PaddedView from '@ui/PaddedView'; import Icon from '@ui/Icon'; import { H3, H4, BodyText } from '@ui/typography'; import { withTheme } from '@ui/theme'; import Button, { ButtonLink } from '@ui/Button'; import WebBrows...
Imports a single node in the system.
import _ from 'underscore'; import moment from 'moment'; import React from 'react'; import { GeneralDebt } from './debt'; import { GeneralCoverage } from './coverage'; import { GeneralDuplications } from './duplications'; import { GeneralStructure } from './structure'; import { CoverageSelectionMixin } from '../compon...
The default implementation of a single component that has a single measure of a specific field.
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
Provides a way to render a missing component in a browser.
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createScaleFunction, getLanes } from '../../helpers/timelineHelper'; import { SIDEBAR_WIDTH, TOPICS_LIST_WIDTH, MINIMAP_MARGIN } from '../../redux/constants/uiConstants'; import EventsLane from '../EventsLane/...
The React module that exports a single React object.
import React from 'react'; import StackedBarGraph from '../graphs/StackedBarGraph'; import directionCodes from '../utils/directionCodes'; class ShortCountVol extends React.Component { render() { var data = this.props.data; var countDate = `${data.month}/${data.dayOfFirstData}/${data.year}`; var infoTable...
Short count vol.
import PropTypes from 'prop-types'; import React from 'react'; const Example = function () { return <div />; }; Example.handledProps = ["active", "children", "className"]; Example.defaultProps = { active: true }; Example.propTypes = { children: PropTypes.node, className: PropTypes.string }; export default Exa...
Provides a simple example of how to render a node in a hierarchy.
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' /** * A PopupContent displays the content body of a Popover. */ export default function PopupContent(props)...
PopupContent displays the content body of a Popup.
import React from 'react'; import ReactDom from 'react-dom'; import App from './components/App'; import './scss/index.scss'; ReactDom.render( <App />, document.getElementById('app') );
Imports a single node in the DOM.
import React from 'react'; export default (props) => { const onRemove = (book, event) => { event.preventDefault(); Meteor.call('book.unApprove', book); } const reqApproved = () => { return props.books.map(book => { return ( <li className="list-group-item" key={book._id}> {bo...
The default function for the series of actions that are performed on a list of books.
import React from 'react' export default class VenueList extends React.Component { render () { function generateVenueButton (venue){ return ( <a className="list-group-item" href={`/location/add/${venue.id}`} key={venue.id} > <h4 className="list-grou...
The base class for a list of venues.
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
A component that wraps a component with a h4 class and a list of bootstrap classes.
import React from 'react'; import NotAuthorizedPage from '../../../components/NotAuthorizedPage'; import { usePermission } from '../../../contexts/AuthorizationContext'; import OAuthAppsPage from './OAuthAppsPage'; export default function MailerRoute() { const canAccessOAuthApps = usePermission('manage-oauth-apps');...
The MailerRoute class
import React from 'react'; import { Link } from 'react-router-dom'; import { Breadcrumb } from 'antd'; import PropTypes from 'prop-types'; const mainModules = [ 'overview', 'projects', 'stageTemplate', 'resource', 'integration', 'workflows', ]; const operations = ['update', 'add']; /** * define the route...
BreadcrumbComponent provides a BreadcrumbComponent for a single
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import Rea...
This module exports a warning if a node is not reserved.
import React, { Component } from 'react'; import update from 'immutability-helper'; import edit from './icons/edit.svg' import save from './icons/save.svg' import close from './icons/close.svg' class ContractRows extends Component { constructor(props) { super(props); this.state = { contract: [], ...
Component for listing and editing of contract rows.
import React from 'react' import className from 'classnames' export default class PositionCard extends React.Component { static defaultProps = { } constructor(props){ super(props) this.state = { isOpen : this.props.isOpen, isReady : !this.props.isOpen, } } componentWillReceivePr...
The PositionCard component which is a component that is rendered on a position.
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Label = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'label', bsStyle: 'default' }; }, render() { let classes = this.getBsClassSe...
create a label with a bootstrap class
import React from 'react' import { connect } from 'cerebral/react' import { props, signal, state } from 'cerebral/tags' import translations from '../../common/compute/translations' export default connect( { // autoFocus enterPressed: signal`projects.enterPressed`, escPressed: signal`projects.escPressed`,...
input - > input for a single node
import React from 'react'; import Relay from 'react-relay'; import ReactDOM from 'react-dom'; import WidgetToolContainer from './containers/widget-tool-container'; import ViewerRoute from './routes/viewer-route'; ReactDOM.render( <Relay.RootContainer Component={WidgetToolContainer} route={new ViewerRoute()} />, d...
Imports React and Relay from ReactDOM
import React from 'react' import { render } from 'react-dom' // import routes from './routes' import Member from './components/ui/Member' window.React = React render( <Member admin={true} name="Edna Welch" email="edna.welch88@example.com" thumbnail="https://randomuser.me/api/portr...
Import a single sequence of components from a window.
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Tool from './Tool'; i...
Provides a function to display a list of free slots in the system.
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux' import RoutineForm from './RoutineForm'; import { createRoutine } from '../actions/routineFormActions'; import { clearCurrentRoutine } from '../actions/routineActions'; export class NewRoutineFo...
Create a new RoutineForm component that wraps a state object and dispatch object.
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import classNames from 'classnames'; import Icon from './Icon'; export default class TimePickerSelect extends Component { static propTypes = { children: PropTypes.node, className: PropTypes.string, id: PropTypes.string.isRequir...
A component that can be used to select a timepicker.
import React from 'react'; import {withInfo} from '@storybook/addon-info'; import {number, boolean} from '@storybook/addon-knobs'; import styled from '@emotion/styled'; import CheckboxFancy from 'app/components/checkboxFancy/checkboxFancy'; export default { title: 'Core/Style/Icons', }; export const _CheckboxFancy...
export a single node with a fancy looking checkbox
import React from 'react' import { browserHistory } from 'react-router' import { inject, observer } from 'mobx-react' import Form from './Form' @inject('employeesStore') @observer export default class New extends React.Component { constructor(props) { super(props) this.state = { errors: [] } ...
The new component class which creates a new component with a given set of properties.
import React from 'react'; import Link from "gatsby-link"; import SearchForm from '../SearchForm'; const Header = () => ( <div className="container"> <div className="nav-left"> <Link activeClassName="is-active" className="nav-item brand" to="/"> <img alt="Frint" className="dark" src="/img/frint-log...
export header for missing missing records
import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import ReactGA from 'react-ga'; import { Heading } from 'common/base'; import Button from 'common/button/Button'; import ButtonGroupImage from 'common/button/ButtonGroupImage'; import Checked from 'common/icons/Checked'; import...
A base class that creates a block of blocks with a feedback.
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import cx from 'classnames'; import React from 'react'; ...
A component that renders a single missing key in a table.
// React import React from 'react' // Gatsby import { graphql, Link } from 'gatsby' // MDX import { MDXProvider } from "@mdx-js/react" import { MDXRenderer } from "gatsby-plugin-mdx" // Local import Layout from '../components/Layout' const Template = ({ data }) => { const { page } = data return ( <Layout pag...
JSX - specific functions
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
Imports a single node in the DOM.
import React from 'react'; import ReactDOM from 'react-dom'; import { ActorSystem } from 'actor-system'; import Application from './modules/Application.react'; import Wrapper from './modules/Wrapper.react'; import Storage from './modules/Storage'; import Main from './modules/Main.actor'; const system = ActorSystem.fro...
Imports a single system and a main actor.
import React from 'react'; import './alumnoForm.scss'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' import TextField from 'material-ui/TextField'; import {orange500, blue500} from 'material-ui/styles/colors'; import RaisedButton from 'material-ui/RaisedButton'; const styles = { errorStyle: { ...
A component that displays a single alumno.
import React from 'react'; import filter from '../filter'; import Div from './div'; const stateArray = ['active']; const defaultClassName = 'title'; const componentName = 'Title'; const Title = new filter(Div) .stateFilter(stateArray) .classGenerator(defaultClassName) .getComposeComponent(componen...
Imports a and exports it as a default component.
import React from 'react'; import { View } from 'react-native'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import reducers from './src/reducers'; import { Header } from './src/components/common'; import LibraryList from './src/components/LibraryList'; const App = () => ( <Provider s...
Imports a single - component application.
import React from 'react'; import PropTypes from 'prop-types'; import { ScrollView, } from 'react-native'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { cards as actions } from '../../store/actions'; import Card from '../Card'; const CardList = props => ( <ScrollView> ...
Imports a single unhandled exception.
import React from 'react' import { storiesOf } from '@kadira/storybook' import Paragraph from '.' storiesOf('Paragraph', module) .add('default', () => ( <Paragraph> Nisi eu eiusmod cupidatat aute laboris commodo excepteur esse dolore incididunt incididunt aliquip pariatur est minim officia sit. Nulla paria...
Add a dependency to the sequence of components that define a sequence of words.
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFlightLand = (props) => ( <SvgIcon {...props}> <path d="M2.5 19h19v2h-19zm7.18-5.73l4.35 1.16 5.31 1.42c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2...
A component that exports a action flight land icon.
import React from 'react'; import classNames from 'classnames'; import TransitionEvents from './utils/TransitionEvents'; const Tab = React.createClass({ propTypes: { /** * @private */ active: React.PropTypes.bool, animation: React.PropTypes.bool, /** * It is used by 'Tab...
The Tab component is a child of the Tab instance. It is used by TabTabs.
import React from 'react'; import SimpleExample from './simple'; import EventsExample from './events'; import VectorLayersExample from './vector-layers'; const examples = <div> <h1>React-Leaflet examples</h1> <h2>Popup with Marker</h2> <SimpleExample /> <h2>Events</h2> <p>Click the map to show a marker at y...
Renders all of the missing - node node elements.
import React from 'react'; import { View, Image, Keyboard } from 'react-native'; import { RkButton, RkText, RkTextInput, RkStyleSheet, RkTheme, RkAvoidKeyboard, RkChoice } from 'react-native-ui-kitten'; import {GradientButton} from '../../components/'; import {scale, scaleModerate, scaleVertical} fr...
A component that renders a single critical alert.
import React from 'react'; import Overlay from '../px-overlay'; import Button from '../px-button'; import classnames from 'classnames'; import stylesheet from './style.scss'; /** * px-modal component */ export default ({ style, modalHeading = 'Modal', btnModalNegative, onBtnModalNegativeClick, btnModalPos...
default function to render a single modal
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvRecentActors = (props) => ( <SvgIcon {...props}> <path d="M21 5v14h2V5h-2zm-4 14h2V5h-2v14zM14 5H2c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM8 7.75c1.24 0 2.25 1.01 2.25 2.25S9....
A component that exports a sequence of icons that are not visible in a component.
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage } from 'react-intl'; import Toggle from 'react-toggle'; import AsyncSelect from 'react-select/lib/Async'; export default @injectIntl class ColumnSettings exte...
A custom column that can be used to provide custom tags for a column.
'use strict'; import React from 'react'; import {RouteHandler} from 'react-router'; import Locator from 'capacitor-locator'; import PluginList from 'src/components/plugin-list'; import PluginStore from 'src/stores/plugin'; /** * Display the current list of plugins and the currently-selected plugin */ export default...
The app view class
import React from 'react'; import {BaseMixin, ElementaryMixin, Tools} from '../common/common.js'; import './camera.less'; // TODO // quality of picture -> jpg, png, ... // choice of camera devices if pc has more cameras export const Camera = React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, Elem...
Add a camera to a component that can be rendered by a camera.
import React from 'react'; import { FontIcon, RaisedButton } from 'material-ui'; const EmptyViewDouble = ({ title, description, iconClassName, iconColor, leftIconType, rightIconType, handleClickRightButton, handleClickLeftButton, labelButtonLeft, labelButtonRight }) => { const styles = { con...
Exports a single node in a tree.
import React from 'react'; import { storiesOf } from '@storybook/react-native'; import LetterRotated from './LetterRotated'; storiesOf('exercises/LetterRotated', module) .add('difficulty level 1', () => ( <LetterRotated letters={['a', 'N', 'E']} rotated={[4]} angles={['50deg']} difficult...
Adds a filter to the sequence of non - terminal words.
import React from 'react'; import classnames from 'classnames'; class ModalBody extends React.Component { render() { return ( <div {...this.props} className={classnames(this.props.className, this.props.modalClassName)}> {this.props.children} </div> ); } } ModalBody.propTypes = { /** ...
A modal body component that renders a modal modal to the user.
// @flow import React from 'react'; import RadarAxis from './RadarAxis'; import RadarRings from './RadarRings'; import type {RadarVariable} from './types'; import {radiusScales, forEachArray} from './utils'; type Props = { width: number, height: number, padding: number, variables: Array<RadarVariable>, domai...
Renders a single missing node in a radial system.
import React from 'react' import PropTypes from 'prop-types' import { GridBlockWrapper } from './Base' import formatDate from '../../lib/formatDate' import '../../stylesheets/Clock.css' class Clock extends React.Component { static propTypes = { block: PropTypes.object.isRequired } state = { time: new...
A base class for a single block of time - related components.
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatShapes = (props) => ( <SvgIcon {...props}> <path d="M23 7V1h-6v2H7V1H1v6h2v10H1v6h6v-2h10v2h6v-6h-2V7h2zM3 3h2v2H3V3zm2 18H3v-2h2v2zm12-2H7v-2H5V7h2V5h10v2h2v10h-2v2zm4 2h-2v-2h2v2zM19 5V3h2v2h-2zm-...
A component that renders a series of icons that can be used to render a series of icons.
import React from 'react'; import moment from 'moment'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var DateColumn = React.createClass({ displayName: 'DateColumn', propTypes: { col: React.PropTypes.object, ...
A component that displays a date column with a date field.
import React from 'react' class Grades extends React.Component { render() { return ( <div> <h2>Grades</h2> </div> ) } } export default Grades
The Grades component
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Text, Button, Icon } from 'native-base'; import { openDrawer } from '../../actions/drawer'; import { popRoute } from '../../actions/route'; import styles from './styles'; class BlankPage exten...
The default implementation of a hierarchical page which is a component that can be rendered on a hidden hidden list.