path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
docs/app/Examples/modules/Search/index.js
aabustamante/Semantic-UI-React
import React from 'react' import Types from './Types' import Variations from './Variations' const SearchExamples = () => ( <div> <Types /> <Variations /> </div> ) export default SearchExamples
app/javascript/flavours/glitch/features/compose/containers/sensitive_button_container.js
im-in-space/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { changeComposeSensitivity } from 'flavours/glitch/actions/compose'; import { injectIntl, defineMessages, FormattedMessage } from 'react-intl'; const messages = defineMessag...
app/javascript/mastodon/features/community_timeline/index.js
rainyday/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
src/svg-icons/av/games.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvGames = (props) => ( <SvgIcon {...props}> <path d="M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"/> </SvgIcon> ); AvGames = pure(AvGames); AvGames.dis...
src/parser/warlock/demonology/modules/talents/Doom.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Enemies from 'parser/shared/modules/Enemies'; import Events from 'parser/core/Events'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { formatPercentage, formatThousands } from 'co...
admin/client/Signin/Signin.js
snowkeeper/keystone
/** * The actual Sign In view, with the login form */ import assign from 'object-assign'; import classnames from 'classnames'; import React from 'react'; import xhr from 'xhr'; import Alert from './components/Alert'; import Brand from './components/Brand'; import UserInfo from './components/UserInfo'; import LoginF...
src/Selector/ExtraIcon/ExtraIcon.js
skyiea/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import WixComponent from '../../BaseComponents/WixComponent'; import * as Icons from '../../Icons'; class ExtraIcon extends WixComponent { static propTypes = { name: PropTypes.string.isRequired }; render() { return ( <div key={this.pro...
src/components/atoms/Dialog/_stories.js
ygoto3/artwork-manager
import React from 'react'; import { action } from '@storybook/addon-actions'; import { Dialog, DialogContent, DialogActions, } from './index'; const actions = new Array(2).fill(null) .map((a, i) => ({ label: `action ${i}`, onClick: action(`clicked ${i}`) })); module.exports = stories => ( stories .add( ...
src/components/Modal/ConfirmModal.js
dovydasvenckus/time-tracker-web
import React from 'react'; import PropTypes from 'prop-types'; const ConfirmModal = ({ isOpen, title, message, closeModal, confirmAction }) => ( <div className={`modal ${resolveIsActiveClass(isOpen)}`}> <div className="modal-background"></div> <div className="modal-card"> <header className="modal-card-...
SmartDemo/ReactComponent/node_modules/react-native/Libraries/Components/Keyboard/Keyboard.js
HarrisLee/React-Native-Express
/** * 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. * * @provides...
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js
theosherry/mx_pl
import React from 'react' import { reduxForm } from 'redux-form' export const fields = [] const validate = (values) => { const errors = {} return errors } type Props = { handleSubmit: Function, fields: Object, } export class <%= pascalEntityName %> extends React.Component { props: Props; defaultProps = ...
node_modules/react-icons/fa/share-square.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const FaShareSquare = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m25.4 24.6l7.9-7.9q0.4-0.4 0.4-1t-0.4-1l-7.9-7.8q-0.6-0.7-1.5-0.4-0.9 0.4-0.9 1.4v3.5q-2.7 0-4.8 0.5t-3.6 1.1-2.6 1.8-1.7 2.1-1 2.4-0.5 2.5-0.1 2.5q0 4 3.7 9 0.3 ...
packages/reactor-kitchensink/src/examples/Wizard/Wizard.js
markbrocato/extjs-reactor
import React, { Component } from 'react'; import { Toolbar, Container, Panel, Button, Indicator, SegmentedButton, ToolTip } from '@extjs/ext-react'; export default class WizardExample extends Component { state = { step: 0, tapMode: 'direction' } render() { const { step, tapMode } ...
src/browser/createRoutes.js
vacuumlabs/este
import App from './app/App.react'; import Auth from './auth/AuthPage.react'; import Fields from './fields/FieldsPage.react'; import Firebase from './firebase/FirebasePage.react'; import Home from './home/HomePage.react'; import Intl from './intl/IntlPage.react'; import Me from './me/MePage.react'; import NotFound from ...
src/js/components/ui/ChipList.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import shouldPureComponentUpdate from 'react-pure-render/function'; import Chip from './Chip'; import SmallChip from './SmallChip'; export default class ChipList extends Component { static propTypes = { chips : PropTypes.array.isRequired...
src/svg-icons/device/battery-charging-full.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryChargingFull = (props) => ( <SvgIcon {...props}> <path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zM11 20v-5.5H...
src/components/ProgressBar/ProgressBar.js
alexcondorachi/ps-react-alexc
import React from 'react'; import PropTypes from 'prop-types'; class ProgressBar extends React.Component {   getColor = (percent) => {     if (this.props.percent === 100) return 'green';     return this.props.percent > 50 ? 'lightgreen' : 'red';   } getWidthAsPercentOfTotalWidth = () => { return parseInt(this.p...
src/Components/Modal/index.js
gabriel-lopez-lopez/gll-billin-code-challenge
/** * Componente que crea ventana modales apoyandose en Bootstrap y jQuery * :( Not like * */ /*global $*/ import React, { Component } from 'react'; import { PropTypes } from 'prop-types'; // Estilos personalizados import './modal.less'; class Modal extends Component { constructor(props){ super(pro...
frontend/src/components/eois/buttons/addNewRequestButton.js
unicef/un-partner-portal
import React from 'react'; import PropTypes from 'prop-types'; import Add from 'material-ui-icons/Add'; import IconWithTextButton from '../../common/iconWithTextButton'; const messages = { text: 'Add New Request', }; const AddNewRequestButton = (props) => { const { handleClick } = props; return ( <IconWithT...
src/containers/ui/NavbarMenuButton/NavbarMenuButtonView.js
npdat/Demo_React_Native
/** * Navbar Menu Button * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React from 'react'; import PropTypes from 'prop-types'; import { TouchableOpacity } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; /* Component =======================...
src/components/svg/icon/Redo.js
ryanabragg/VanguardLARP
import React from 'react'; import PropTypes from 'prop-types'; const Add = (props) => { const color = props.color == 'inherit' ? undefined : props.color; const aria = props.title ? 'svg-add-title' : '' + props.title && props.description ? ' ' : '' + props.description ? 'svg-add-desc' : ''; return ( <...
src/svg-icons/action/hourglass-empty.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHourglassEmpty = (props) => ( <SvgIcon {...props}> <path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"/> ...
frontend/js/components/organisms/SentimentSelector.js
Code4HR/okcandidate-platform
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Icon from './../atoms/Icon'; import { setQuestionSentiment } from './../../redux/actions/survey-actions'; const Rating = require('react-rating'); class SentimentSelector extends Component { onHeartClick(sentim...
app/javascript/mastodon/features/status/components/card.js
kazh98/social.arnip.org
import React from 'react'; import PropTypes from 'prop-types'; import Immutable from 'immutable'; import ImmutablePropTypes from 'react-immutable-proptypes'; import punycode from 'punycode'; import classnames from 'classnames'; import Icon from 'mastodon/components/icon'; const IDNA_PREFIX = 'xn--'; const decodeIDNA ...
game-of-life-react/src/index.js
ReaganDuggins/game-of-life
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById('root') ); // If you want your app to work offline and load f...
app/containers/HomePage/index.js
MathieuDebit/rise2016-app
/* * 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 neccessity for you then you can refactor it and remove * the ...
docs/src/components/usage-example.js
adrianleb/nuclear-js
import React from 'react' import { Reactor, Store, toImmutable } from 'nuclear-js' import Code from './code' const storeCode = `import { Reactor, Store, toImmutable } from 'nuclear-js' import React from 'react' const reactor = new Reactor({ debug: true }); reactor.registerStores({ typeFilter: Store({ getInitia...
addons/info/src/components/types/Enum.js
storybooks/react-storybook
import React from 'react'; import { TypeInfo, getPropTypes } from './proptypes'; const Enum = ({ propType }) => ( <span> {getPropTypes(propType) .map(({ value }) => value) .join(' | ')} </span> ); Enum.propTypes = { propType: TypeInfo.isRequired, };
app/containers/LanguageProvider/index.js
zuban/zuban-boilerplate
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
src/example/component.js
musawirali/preact-rpc
import React from 'react'; import { combineReducers } from 'redux'; import { connect } from 'react-redux'; // Count reducer const count = (state = 10, action) => { switch (action.type) { case 'increment': return state + 1; case 'decrement': return state -1; default: return state; } } ...
jsxstyle/button.js
kwangkim/css-in-js
import React from 'react'; import {Block} from 'jsxstyle'; let styles = { button: { backgroundColor: '#ff0000', width: '320px', padding: '20px', borderRadius: '5px', border: 'none', outline: 'none' } }; let Button = React.createClass({ render() { return ( <Block textAlign="cent...
node_modules/native-base/Components/Widgets/H2.js
aspanu/threeSeaShells
/* @flow */ 'use strict'; import React from 'react'; import Text from './Text'; import NativeBaseComponent from '../Base/NativeBaseComponent'; import computeProps from '../../Utils/computeProps'; export default class H2NB extends NativeBaseComponent { propTypes: { style : React.PropTypes.object } ...
client/index.js
rraub/react-redux-todo
/** * index.jsx * * This is the entry point for the app */ import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import App from './components/App'; import { store } from './stores'; const render = () => { ReactDOM.render( <Provider store={store}> <App />...
src/js/components/icons/base/AccessBraille.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
examples/flux-utils-todomvc/js/app.js
runn1ng/flux
/** * Copyright (c) 2014, 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. * * @flow */ 'use s...
stories/components/profile/index.js
OperationCode/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import Profile from 'scenes/home/profile/profile'; // import blocJpg from '../../asset/bloc.jpg'; storiesOf('scenes/home/profile', module) .add('Not Verified', () => <Profile />) .add('Verified', () => <Profile verified />);
webpack/scenes/AnsibleCollections/AnsibleCollectionsTableSchema.js
pmoravec/katello
import React from 'react'; import { Link } from 'react-router-dom'; import { translate as __ } from 'foremanReact/common/I18n'; import { urlBuilder } from 'foremanReact/common/urlHelpers'; import { headerFormatter, cellFormatter, } from '../../move_to_foreman/components/common/table/formatters'; const TableSchema ...
prop-ui-lib-common/src/components/CheckboxInput.js
somrajg7/Astoria
import React from 'react'; import {Checkbox} from 'react-bootstrap'; var CheckSvgIcon = require('babel!svg-react!../assets/images/check.svg?name=Check'); class CheckboxInput extends React.Component { render() { return ( <Checkbox {...this.props}> <span className='cr'> <CheckS...
app/ToolBar/ToolBarContainer.js
RyanWangGit/poi
import React from 'react'; import { connect } from 'react-redux'; import ToolBar from './ToolBar'; import { updateQueryList, togglePick, submitQuery, toggleToolbar, toggleHot } from '../actions'; const mapStateToProps = (state, ownProps) => { return { className: ownProps.className, isOpen: state.to...
socket/src/components/gallery.js
pixelgrade/starter_content_exporter
import React from 'react' import PropTypes from 'prop-types' import { Button, Form, Header, Icon, Image, Popup, Placeholder, Segment, Grid } from 'semantic-ui-react' import isEmpty from 'lodash/isEmpty' import isUndefined from 'lodash/isUndefined' class SocketGallery extends React.Component { constructor (...
lib/components/pages/Lc.js
founderzhl/redux_mvc_20160414
import React from 'react' export default class Hello extends React.Component { render () { return ( <div> 教学系统:针对方正慧云互动课堂定制开发的教育学习软件<br /> 版本:0.0.1<br /> 地址:北京市海淀区上地五街9号 </div> ) } }
frontend/src/Settings/Profiles/Metadata/PrimaryTypeItems.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import FormGroup from 'Components/Form/FormGroup'; import FormInputHelpText from 'Components/Form/FormInputHelpText'; import FormLabel from 'Components/Form/FormLabel'; import PrimaryTypeItem from './PrimaryTypeItem'; import styles from './Ty...
react/DropdownList/DropdownList.js
seekinternational/seek-asia-style-guide
import styles from './DropdownList.less'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { Text, Icon } from 'seek-asia-style-guide/react'; const LEFT = 'left'; const RIGHT = 'right'; export default class DropdownList extends Component { co...
app/containers/btns/WriteAnsterBtnContainer.js
Caraxiong/react-demo
import React from 'react' import { connect } from 'react-redux' import PropTypes from 'prop-types' import { showToastFun } from '../../actions/toastActions' import Btn from '../../components/operator/Btn' const BtnContainer = ({ showToastFun }) => ( <Btn onClick = { () => showToastFun()} btnName={'写回答'}/> ) BtnCo...
src/client.js
Viral-MediaLab/viralSitePubPub
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createHistory from 'history/lib/createBrowserHistory'; import createStore from './redux/create'; import ApiClient from '....
app/javascript/mastodon/features/ui/components/upload_area.js
riku6460/chikuwagoddon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import { FormattedMessage } from 'react-intl'; export default class UploadArea extends React.PureComponent { static propTypes = { active: PropTypes.boo...
react/features/remote-video-menu/components/RemoteVideoMenu.js
KalinduDN/kalindudn.github.io
import React, { Component } from 'react'; /** * React {@code Component} responsible for displaying other components as a menu * for manipulating remote participant state. * * @extends {Component} */ export default class RemoteVideoMenu extends Component { /** * {@code RemoteVideoMenu}'s property types. ...
app/react-icons/fa/file-code-o.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaFileCodeO extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m35.8 8.5q0.6 0.6 1 1.7t0.5 1.9v25.8q0 0.8-0.6 1.5t-1.6 0.6h-30q-0.9 0-1.5...
docs/src/HomePage.js
tonylinyy/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageFooter from './PageFooter'; import Grid from '../../src/Grid'; import Alert from '../../src/Alert'; import Glyphicon from '../../src/Glyphicon'; import Label from '../../src/Label'; export default class HomePage extends React.Component{ render()...
src/components/menu/demos/UpperRight.js
isogon/material-components
import React from 'react' import { Menu, MenuItem, MenuDivider, Button, Icon } from '../../../' import { Container, Bar, Bg } from './_shared' export default () => ( <Container align="right"> <Bg /> <Bar> <Menu topRight control={ <Button icon> <Icon name="more_ver...
src/js/components/icons/base/Tip.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
05_ES6/Code/fork-es6/app/components/StorePane.js
sayar/ReactMVA
import React from 'react'; import Store from './Store'; import autoBind from 'react-autobind'; class StorePane extends React.Component { constructor(props) { super(props); autoBind(this); } renderStore(store){ return <Store key={store} index={store} details={this.props.stores[store]} />; } ...
app/components/RepoSelect.js
nimatra/nimGit
/* eslint-disable react/prop-types, react/jsx-handler-names */ import React from 'react'; import classNames from 'classnames'; import Select from 'react-select'; import { withStyles } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; import NoSsr from '@material-ui/core/NoSsr'; im...
react/features/recording/components/Recording/native/StopRecordingDialog.js
jitsi/jitsi-meet
// @flow import React from 'react'; import { ConfirmDialog } from '../../../../base/dialog'; import { translate } from '../../../../base/i18n'; import { connect } from '../../../../base/redux'; import AbstractStopRecordingDialog, { type Props, _mapStateToProps } from '../AbstractStopRecordingDialog'; /** * ...
src/components/Root.js
decaster3/hikester_redux
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { ConnectedRouter } from 'react-router-redux'; import { Provider } from 'react-redux'; import configureRoutes from '../routes' import { connect } from 'react-redux' export default class Root extends Component { render() { const...
example/src/components/Header.js
ethanselzer/react-touch-position
import React from 'react'; import { MenuItem, Navbar, Nav, NavItem, NavDropdown } from 'react-bootstrap'; import ScrollToTopOnMount from '../components/ScrollToTopOnMount'; import npmLogo from '../../images/npm-logo.png'; import githubLogo from '../../images/github-logo.png'; import '../../styles/header.css'; class...
src/components/demo/fieldArrays/renderMembers.js
tedyuen/react-redux-form-v6-example
import React from 'react'; import { Field,FieldArray } from 'redux-form' import inputField from '../../utils/validation/inputField'; import renderHobbies from './renderHobbies'; const renderMembers = ({ fields, meta: { error, submitFailed } }) => ( <ul className="list-group"> <li className="list-group-item"> ...
CMS/redux/components/presentational/dashboard.js
BJCheng/cs554-assignments
import { connect } from 'react-redux'; import React from 'react'; import { List, ListItem } from 'material-ui/List'; import Paper from 'material-ui/Paper'; import ActionAndroid from 'material-ui/svg-icons/action/android'; import ActionFavorite from 'material-ui/svg-icons/action/favorite'; import ActionList from 'materi...
src/MenuItem.js
collinwu/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import SafeAnchor from './SafeAnchor'; const MenuItem = React.createClass({ propTypes: { header: React.PropTypes.bool, divider: React.PropTypes.bool, href: React.PropTypes.string, title: React.PropTypes.string, target: ...
native/app/index.js
carlosacabrera/dirtydining
import React from 'react' import EStyleSheet from 'react-native-extended-stylesheet' import { StatusBar } from 'react-native' import { ApolloProvider } from 'react-apollo' import client from './config/client' import store from './config/store' import styles from './config/styles' import { Container } from './componen...
app/javascript/mastodon/components/animated_number.js
ikuradon/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedNumber } from 'react-intl'; import TransitionMotion from 'react-motion/lib/TransitionMotion'; import spring from 'react-motion/lib/spring'; import { reduceMotion } from 'mastodon/initial_state'; const obfuscatedCount = count => { if (co...
components/dataset/producer.js
sgmap/inspire
import React from 'react' import PropTypes from 'prop-types' const Producer = ({producer}) => { return ( <div> <div className='wrapper'> <img src={producer.logo_thumbnail} alt='' /> </div> <h4>{producer.name}</h4> <style jsx>{` .wrapper { display: flex; ...
packages/ringcentral-widgets-docs/src/app/pages/Components/Header/Demo.js
u9520107/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import Header from 'ringcentral-widgets/components/Header'; const props = {}; /** * A example of `Header` */ const HeaderDemo = () => ( <Header {...props} /> ); export default HeaderDemo;
admin/client/components/Toolbar/ToolbarSection.js
andreufirefly/keystone
import React from 'react'; import blacklist from 'blacklist'; import classNames from 'classnames'; module.exports = React.createClass({ displayName: 'ToolbarSection', propTypes: { className: React.PropTypes.string, left: React.PropTypes.bool, right: React.PropTypes.bool, }, render () { var className = clas...
app/demos/StockChartWithVolume.js
chunghe/React-Native-Stock-Chart
import React, { Component } from 'react'; import { InteractionManager, View, Dimensions, ScrollView, StyleSheet } from 'react-native'; import { VictoryBar, VictoryLine, VictoryAxis, VictoryArea } from 'victory-chart-native'; import Svg from 'react-native-svg'; import T from '../components/T'; import ...
examples/src/components/RemoteSelectField.js
pdrko/react-select
import React from 'react'; import Select from 'react-select'; var RemoteSelectField = React.createClass({ displayName: 'RemoteSelectField', propTypes: { hint: React.PropTypes.string, label: React.PropTypes.string, }, loadOptions (input, callback) { input = input.toLowerCase(); var rtn = { options: [ ...
ajax/libs/react-instantsearch/4.4.1/Connectors.js
wout/cdnjs
/*! ReactInstantSearch UNRELEASED | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory...
examples/Chips.js
jhernandezme/react-materialize
import React from 'react'; import Row from '../src/Row'; import Col from '../src/Col'; import Chip from '../src/Chip'; import Tag from '../src/Tag'; export default <Row> <Col s={12}> <Chip> <image src='assets/yuna.jpg' alt='Contact Person' /> Jane Doe </Chip> <Tag>tag</Tag> </Col> </Row>;
src/components/List/List.js
wfp/ui
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; import settings from '../../globals/js/settings'; const { prefix } = settings; /** List component show a number of connected items written consecutively, typically one below the other. */ export const List = ({ childr...
Realization/frontend/czechidm-core/src/components/basic/HelpIcon/HelpIcon.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; // import Dialog from '@material-ui/core/Dialog'; import DialogActions from '@material-ui/core/DialogActions'; import DialogContent from '@material-ui/core/DialogContent'; import DialogContentText from '@material-ui/core/DialogConten...
src/components/appStructure/componentPage.js
Jguardado/ComponentBase
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as actionCreators from '../../actions/action'; import HideShow from '../examples/exampleHideShow'; import Contructor from '../examples/constructorFunc'; import Buttons from '../examples/...
fields/types/localfile/LocalFileField.js
wustxing/keystone
import Field from '../Field'; import React from 'react'; import { Button, FormField, FormInput, FormNote } from 'elemental'; module.exports = Field.create({ shouldCollapse () { return this.props.collapse && !this.hasExisting(); }, fileFieldNode () { return this.refs.fileField.getDOMNode(); }, changeFile ()...
src/app/topApp.js
thiagolucio/REACT-whiteLabel
import React from 'react'; import {Toolbar, ToolbarGroup, ToolbarSeparator, ToolbarTitle} from 'material-ui/Toolbar'; export default class TopApp extends React.Component { render() { return ( <Toolbar className="toolbar-top"> <ToolbarGroup> <img ...
examples/todomvc/containers/App.js
dariocravero/redux-devtools
import React, { Component } from 'react'; import TodoApp from './TodoApp'; import { createStore, combineReducers, compose } from 'redux'; import { devTools, persistState } from 'redux-devtools'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; import { Provider } from 'react-redux'; import *...
example/src/SharedElementExample.js
bkazi/react-layout-transition
import React from 'react'; import {SharedElementTransitionGroup} from '../../src/index'; import SpringInterpolator from '../../src/interpolators/SpringInterpolator'; import Page1 from './Page1'; import Page2 from './Page2'; class SharedElementExample extends React.Component { constructor() { super(); ...
src/App/Body/Content/Two/index.js
mikearnaldi/react-starter
import React from 'react' import Link from '../../../Link' export const Button = ({children}) => { return ( <div style={{border: '1px solid black', display: 'inline-block', padding: '5px'}}>{children}</div> ) } export const Two = () => { return ( <div>Page TWO -- link to: <Link to={'/'}>page 1</Link></d...
src/templates/blog-post.js
eejdoowad/dawoodjee.com
import React from 'react'; import graphql from 'graphql'; import Helmet from 'react-helmet'; import Content, { HTMLContent } from '../components/Content'; export const BlogPostTemplate = ({ content, contentComponent, description, title, date, helmet, }) => { const PostContent = contentComponent || Content; retu...
src/pages/index.js
dannyphillips/dannyphillips.github.io
import React from 'react' import { Layout, Home } from '../components' const IndexPage = () => ( <Layout home={true}> <Home /> </Layout> ) export default IndexPage
src/svg-icons/device/settings-system-daydream.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSettingsSystemDaydream = (props) => ( <SvgIcon {...props}> <path d="M9 16h6.5c1.38 0 2.5-1.12 2.5-2.5S16.88 11 15.5 11h-.05c-.24-1.69-1.69-3-3.45-3-1.4 0-2.6.83-3.16 2.02h-.16C7.17 10.18 6 11.45 6 13c0 1....
app/components/CarListItem/index.js
aditigoel23/React-Car-App
import React from 'react'; import _ from 'lodash'; import Item from './Item'; import Wrapper from './Wrapper'; function CarsListItem(props) { const carMetaData = _.find(props.types, (type) => type.CarTypeCode === props.item.CarTypeCode); return ( <Wrapper> <Item className="item"> <span className=...
app/assets/javascripts/components/tasks/Task.js
Codeminer42/cm42-central
import React from 'react'; import Checkbox from 'components/forms/Checkbox'; class Task extends React.Component { constructor(props) { super(props); this.state = { done: props.task.get('done') }; this._handleChange = this._handleChange.bind(this); this._handleDelete = this._handleDelete.bind(this); ...
app/src/components/Profile.js
mertkahyaoglu/mertkahyaoglu.github.io
import React from 'react' const Profile = ({profile}) => ( <div className="profile"> <h1>{profile.name}</h1> <h2>{profile.title}</h2> <div dangerouslySetInnerHTML={profile.bio} /> </div> ) export default Profile
pages/about/index.js
DarcyChan/darcychan.com
import React from 'react'; import { PageTitle, PageWrapper, PageJumbotron, PageLead } from 'components/page'; import { ExternalLink, SmallLabel } from 'components/common'; /* eslint-disable quotes */ exports.data = { id: 3, path: `/about/`, template: `basic`, category: `about`, sho...
src/components/mock/MotionList.js
tituomin/council-compass
import React from 'react'; import MotionCard from './MotionCard'; import _ from 'lodash'; export default function MotionList({cases, userVotes, emptyVotes}) { const cards = _.map(cases, (_case, index) => { const userVote = userVotes[_case.issue_id]; return <MotionCard key={_case.issue_id} index={index+1} _ca...
senic_hub/setup_app/components/AddComponent.js
grunskis/senic-hub
import React from 'react' import { FlatList } from 'react-native' import { List, ListItem } from 'react-native-elements' import Screen from './Screen' export default class AddComponent extends Screen { constructor(props) { super(props) this.state = { // TODO get this from the API componentTypes:...
src/components/slider/demos/startingValue.js
isogon/styled-mdl
import React from 'react' import { Slider } from '../../../' export default () => <Slider min={50} max={100} defaultValue={70} />
src/components/formattedNumber/stories.js
LiskHQ/lisk-nano
import React from 'react'; import { storiesOf } from '@storybook/react'; import FormattedNumber from './'; storiesOf('FormattedNumber', module) .add('with val', () => ( <FormattedNumber val="-3.1415926535" /> ));
docs/src/_bilprospekt_section_header_component.js
Bilprospekt/bilprospekt-ui
import React from 'react'; import {SectionHeader} from 'bilprospekt-ui'; const SectionHeaderDoc = React.createClass({ _action() { alert('Party Joined!'); }, render() { return ( <div id='SectionHeaderDoc'> <p className="table-header-label">Section Header</p> ...
whatIsAround/index.android.js
liang121/what-s-around
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class whatIsAround extends Component { render() { return ( <View style={styles.contai...
dialog-component-explorer/src/SettingsDialog.js
jacklam718/react-native-dialog-component
// @flow import React, { Component } from 'react'; import { View, Text, StyleSheet, ScrollView, TouchableOpacity } from 'react-native'; import { DialogComponent, DialogContent } from 'react-native-dialog-component'; import _ from 'lodash'; import SettingsDialogTitle from './components/SettingsDialogTitle'; import Set...
node_modules/react-bootstrap/es/Form.js
nikhil-ahuja/Express-React
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 ...
actor-apps/app-web/src/app/components/Main.react.js
JeeLiu/actor-platform
import React from 'react'; import requireAuth from 'utils/require-auth'; import VisibilityActionCreators from '../actions/VisibilityActionCreators'; import FaviconActionCreators from 'actions/FaviconActionCreators'; import FaviconStore from 'stores/FaviconStore'; import ActivitySection from 'components/ActivitySecti...
test/index.js
trendmicro-frontend/react-dropdown
import React from 'react'; import { mount } from 'enzyme'; import { test } from 'tap'; import '../setupTests'; import Dropdown, { MenuItem } from '../src'; test('<Dropdown />', (t) => { const wrapper = mount(( <Dropdown> <Dropdown.Toggle> </Dropdown.Toggle> <Dropdown.Men...
packages/xo-web/src/common/xo/revert-snapshot-modal/index.js
vatesfr/xo-web
import _ from 'intl' import BaseComponent from 'base-component' import React from 'react' export default class RevertSnapshotModalBody extends BaseComponent { state = { snapshotBefore: true } get value() { return this.state.snapshotBefore } render() { return ( <div> <div>{_('revertVmMod...
docs/src/NavMain.js
zerkms/react-bootstrap
import React from 'react'; import { Link } from 'react-router'; import Navbar from '../../src/Navbar'; import Nav from '../../src/Nav'; const NAV_LINKS = { 'introduction': { link: 'introduction', title: 'Introduction' }, 'getting-started': { link: 'getting-started', title: 'Getting started' }, ...
addons/ondevice-knobs/src/types/Button.js
storybooks/react-storybook
import PropTypes from 'prop-types'; import React from 'react'; import { TouchableOpacity } from 'react-native'; import styled from '@emotion/native'; const Label = styled.Text(({ theme }) => ({ fontSize: 17, color: theme.labelColor, })); const ButtonType = ({ knob, onPress }) => ( <TouchableOpacity style={{ mar...
src/helpers/spinner.js
wunderg/PTC
import React from 'react'; const style = { marginTop: '30%' }; export default () => ( <div className="center spinner" style={style}> <div className="preloader-wrapper big active"> <div className="spinner-layer spinner-blue-only"> <div className="circle-clipper left"> <div className="ci...
client/modules/News/components/Preview/Preview.js
lordknight1904/bigvnadmin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { FormControl, Button, Table, Checkbox, Glyphicon, OverlayTrigger, Tooltip } from 'react-bootstrap'; import ImageGallery from 'react-image-gallery'; import style from '../../../../../node_modules/...
src/index.js
radsquad/listiq
import React from 'react' import { render } from 'react-dom' import Hello from './Hello/Hello' import './index.css' document.addEventListener('DOMContentLoaded', () => { var span = document.createElement('span') span.innerHTML = 'hello world' document.querySelector('body').appendChild(span) }) render(<Hello />,...
node_modules/@material-ui/core/es/test-utils/getClasses.js
pcclarke/civ-techs
import React from 'react'; import createShallow from './createShallow'; const shallow = createShallow(); // Helper function to extract the classes from a styleSheet. export default function getClasses(element) { const { useStyles } = element.type; let classes; function Listener() { classes = useStyles...