path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
test/fixtures/unnamed-function-hoc/actual.js
layershifter/babel-plugin-transform-react-handled-props
import React from 'react'; import hoistStatics from 'hoist-non-react-statics'; export default function() { return function(Component) { class Wrapper extends React.Component { render() { return <Component {...this.props} />; } } return hoistStatics(Wrapper, Component); } }
src/containers/SaleProducts/ProductSummary/ProductSummary.js
GoogleChromeLabs/react-shrine
/* * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
renderer/components/TabContainer.js
markmarcelo/reactide
import React from 'react'; import Tab from './Tab'; import PropTypes from 'prop-types'; const TabContainer = ({ appState, setActiveTab, closeTab }) => { const tabs = []; for (var i = 0; i < appState.openTabs.length; i++) { tabs.push( <Tab key={i} name={appState.openTabs[...
src/SplitButton.js
mengmenglv/react-bootstrap
import React from 'react'; import BootstrapMixin from './BootstrapMixin'; import Button from './Button'; import Dropdown from './Dropdown'; import SplitToggle from './SplitToggle'; class SplitButton extends React.Component { render() { let { children, title, onClick, target, href, ...
packages/material-ui-icons/src/Filter1.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 10h2V5h-4v2h2v8zm7-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z" /></g> , 'Filter1');
src/main/webapp/resources/js/components/antd/antd-demo.js
peterchenhdu/infosys
import React from 'react' import { Calendar } from 'antd'; import { Switch } from 'antd'; import { Rate } from 'antd'; import { Progress } from 'antd'; export default class AntdDemo extends React.Component{ constructor(props){ super(props); this.state = {} } render() { return ( <div> ...
app/component/Tag.js
vankai/hitokoto-pwa
import React from 'react' import style from './Tag.css' export default function Tag(props) { return ( <div className={style.tag}> <div> <p>一言</p> </div> </div> ) }
app/src/js/components/Home.js
seiyavw/electron-template
import React, { Component } from 'react'; import { Link } from 'react-router'; export default class Home extends Component { render() { return ( <div> <div className="home"> <h2>Home</h2> <Link to="/counter">to Counter</Link> </div> </div> ); } }
pages/contact.js
EvanSimpson/evansimpson.github.io
import React, { Component } from 'react'; import styles from '../css/contact.module.css'; class About extends Component { render() { return ( <div> <div className={ styles.container }> <p>Say hello at</p> <p>me @ this domain</p> </div> </div> ); } } export ...
node_modules/@material-ui/core/esm/internal/svg-icons/RadioButtonChecked.js
pcclarke/civ-techs
import React from 'react'; import createSvgIcon from './createSvgIcon'; /** * @ignore - internal component. */ export default createSvgIcon(React.createElement("path", { d: "M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C...
src/containers/Contact/ThankYouSection.js
d-amit/in-di-go
import React from 'react'; import { Section } from '../../components'; const ThankYouSection = ({ id, className }) => { let sectionClass = `thankyou ${className}`; let aos = { type : "fade-up", duration: 1500 }; return ( <Section id={id} aos={aos} className={sectionClass}> <...
src/components/ChangePassword.js
JMIsham/AboutgccFront
/** * Created by Isham on 5/15/2017. */ import React, { Component } from 'react'; import { Field, reduxForm } from 'redux-form'; import FlatButton from 'material-ui/RaisedButton'; import { TextField } from 'redux-form-material-ui'; const required = value => value == null ? 'Required' : undefined; class ChangePas...
local-cli/templates/HelloNavigation/views/chat/ChatListScreen.js
shrutic/react-native
'use strict'; import React, { Component } from 'react'; import { ActivityIndicator, Image, ListView, Platform, StyleSheet, View, } from 'react-native'; import ListItem from '../../components/ListItem'; import Backend from '../../lib/Backend'; export default class ChatListScreen extends Component { stat...
fields/types/name/NameField.js
pswoodworth/keystone
import Field from '../Field'; import React from 'react'; import { FormField, FormInput, FormRow } from 'elemental'; module.exports = Field.create({ displayName: 'NameField', focusTargetRef: 'first', valueChanged: function (which, event) { this.props.value[which] = event.target.value; this.props.onChange({ ...
src/svg-icons/device/gps-off.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceGpsOff = (props) => ( <SvgIcon {...props}> <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.52 2.65l1.5...
docs/src/components/Docs/index.js
michalko/draft-wyswig
import React, { Component } from 'react'; import Installation from './Installation'; import Usage from './Usage'; import Props from './Props'; import ARIASupport from './ARIASupport'; import DataConversion from './DataConversion'; import './styles.css'; export default () => <div className="docs-root"> <Installation ...
src/components/App.js
react-puzzle-games/15-puzzle
import React, { Component } from 'react'; import levelFactory from './../lib/levels-factory'; import Game from './Game'; import Footer from './Footer'; import PropTypes from 'prop-types'; import styled from 'styled-components'; class App extends Component { constructor(props) { super(props); const level = p...
react-youtube-adaptive-loading/src/containers/SideBar/Subscriptions/Subscriptions.js
GoogleChromeLabs/adaptive-loading
import React from 'react'; import {Subscription} from "./Subscription/Subscription"; import {Divider} from "semantic-ui-react"; import {SideBarHeader} from '../SideBarHeader/SideBarHeader'; export class Subscriptions extends React.Component { render() { return ( <React.Fragment> <SideBarHeader titl...
envkey-react/src/components/billing/billing_columns.js
envkey/envkey-app
import React from 'react' import h from "lib/ui/hyperscript_with_helpers" export default function({columns}){ const renderBillingList = (header, items)=> h.div(".billing-list", [ (header ? h.h4(header) : null), h.div(".items", items.map((i)=> h.p([i]))) ]) return h.div(".billing-columns", ...
modules/experimental/AsyncProps.js
kenwheeler/react-router
import React from 'react'; import invariant from 'invariant'; var { func, array, shape, object } = React.PropTypes; var contextTypes = { asyncProps: shape({ reloadComponent: func, propsArray: array, componentsArray: array }) }; var _serverPropsArray = null; function setServerPropsArray(array) { inv...
src/components/smart_scroll/index.js
VictorQD/react-pdf-viewer
import React, { Component } from 'react'; import { Scrollbars } from 'react-custom-scrollbars'; import { range, cloneDeep } from 'lodash'; // isEqual const offsetBottom = node => node.offsetTop + node.clientHeight; const offsetTop = node => node.offsetTop; // itemClassName // getScroll // setCurrentItem class Smart...
src/js/components/icons/base/Clipboard.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...
src/svg-icons/places/casino.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesCasino = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM7.5 18c-.83 0-1.5-.67-1.5-1.5S6.67 15 7.5 15s1.5.67 1.5 1.5S8.33 18 7.5 18z...
src/components/player-details.js
orouvinen/dnf-ranks-frontend
import React, { Component } from 'react'; import MatchRow from './match-row'; import PlayerBadge from './player-badge'; class PlayerDetails extends Component { render() { const player = this.props.player; const matches = this.props.matches; return ( <div className="row"> ...
src/js/tooltip/index.js
HBM/md-components
import React from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' /** * Tooltip */ export default class Tooltip extends React.Component { /** * Property types */ static propTypes = { content: PropTypes.string, visible: PropTypes.bool } /** * Default propertie...
src/components/Head.js
shiyangzhaoa/redux-cnode
import React from 'react' import { connect } from 'react-redux' import * as Actions from '../actions' import { Link } from 'react-router' import { Icon, Form, Input, Button, Popover, BackTop, Spin, message } from 'antd' const FormItem = Form.Item const react_img = require('../public/redux.png') const style ...
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js
wisc/spectacle-caching
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
src/routes/chart/Container.js
zhangjingge/sse-antd-admin
import React from 'react' import PropTypes from 'prop-types' import styles from './Container.less' import { ResponsiveContainer } from 'recharts' const Container = ({ children, ratio = 5 / 2, minHeight = 250, maxHeight = 350 }) => <div className={styles.container} style={{ minHeight, maxHeight }}> <div style={{ marg...
src/svg-icons/device/battery-60.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBattery60 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h10V5.33z"/><path d="M7 11v9.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 ...
src/react-in-isolation/presentation.js
travi/presentations
import React from 'react'; import createTheme from 'spectacle/lib/themes/default'; import {Appear, Deck, Fill, Fit, Heading, Image, Layout, Link, List, ListItem, Slide, Text} from 'spectacle'; import preloader from 'spectacle/lib/utils/preloader'; import Terminal from 'spectacle-terminal'; import CodeSlide from 'specta...
src/svg-icons/av/volume-mute.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVolumeMute = (props) => ( <SvgIcon {...props}> <path d="M7 9v6h4l5 5V4l-5 5H7z"/> </SvgIcon> ); AvVolumeMute = pure(AvVolumeMute); AvVolumeMute.displayName = 'AvVolumeMute'; AvVolumeMute.muiName = 'SvgIcon'...
packages/ringcentral-widgets/components/DurationCounter/index.js
ringcentral/ringcentral-js-widget
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import formatDuration from '../../lib/formatDuration'; export default class DurationCounter extends Component { constructor(props) { super(props); this.state = this.calculateState(); } componentDidMount() { this.interval = ...
examples/counter/containers/App.js
ataker/redux-devtools
import React, { Component } from 'react'; import CounterApp from './CounterApp'; import { createStore, applyMiddleware, combineReducers, compose } from 'redux'; import { devTools, persistState } from 'redux-devtools'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; import thunk from 'redux-...
cerberus-dashboard/src/components/Header/Header.js
Nike-Inc/cerberus
/* * Copyright (c) 2020 Nike, inc. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
src/components/RepositoryInfoComponent.js
krzysztofkolek/react-github-client
'use strict'; require('styles//RepositoryInfo.css'); import React from 'react'; import dispatcher from '../dispatcher/Dispatcher' import * as RepositoryInfoAction from '../actions/RepositoryInfoAction' import SearchStore from '../stores/SearchStore' import RepositoryInfoStore from '../stores/RepositoryInfoStore' cla...
src/components/DragGroup/DragGroupDropArea.js
Bandwidth/shared-components
import React from 'react'; import PropTypes from 'prop-types'; import { DropTarget } from 'react-dnd'; import * as styles from './styles'; /** * The droppable area of a DragGroup. Connected to react-dnd. * Renders its children when idle, but if a dragging operation is * ongoing, its default Content presenter will r...
client/containers/LogoutLink.js
nurpax/snap-reactjs-todo
import React from 'react' import { Link } from 'react-router-dom' import { connect } from 'react-redux' import { logout } from '../auth' const Logout = function ({ logout, to, children }) { return <Link to={to} onClick={(e) => logout()}>{children}</Link> } export default connect(false, { logout })(Logout)
src/utils/ValidComponentChildren.js
bbc/react-bootstrap
import React from 'react'; /** * Maps children that are typically specified as `props.children`, * but only iterates over children that are "valid components". * * The mapFunction provided index will be normalised to the components mapped, * so an invalid component would not increase the index. * * @param {?*} ...
ui/js/components/Button.js
ericsoderberg/pbc-web
import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class Button extends Component { constructor() { super(); this._layout = this._layout.bind(this); this._onClick = this._onClick.bind(this); this.state = {}; } componentDidMount() { const { left, ri...
src/client.js
CalebEverett/soulpurpose
/** * 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 useScroll from 'scroll-behavior/lib/useStandardScroll'; imp...
renderer/vectors/crop.js
wulkano/kap
import React from 'react'; import Svg from './svg'; const CropIcon = props => ( <Svg {...props}> <path d="M7 17V1H5v4H1v2h4v10a2 2 0 0 0 2 2h10v4h2v-4h4v-2m-6-2h2V7a2 2 0 0 0-2-2H9v2h8v8z"/> </Svg> ); export default CropIcon;
core/src/plugins/gui.ajax/res/js/ui/HOCs/selection/selection.js
ChuckDaniels87/pydio-core
/* * Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io> * This file is part of Pydio. * * Pydio 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, either version 3 of the License, o...
src/ActivityEditor.js
siiptuo/taimio-spa
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { date, time } from './filters'; import * as activity from './activity'; import { fetchActivity, updateActivity, resumeActivity, removeActivity, } from './actions'; import { getWeekRange } from './List'...
src/js/components/icons/base/SocialMastercard.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...
blueocean-material-icons/src/js/components/svg-icons/maps/satellite.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const MapsSatellite = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.99h3C8 6.65 6.66 8 5 8V4.99zM5 12v-2c2.76 0 5-2.25 5-5.01h2C12 8.86 8.87 12 5 12zm0 6l3.5-4.5 2.5 3.01L...
src/CarouselItem.js
justinanastos/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import TransitionEvents from './utils/TransitionEvents'; const CarouselItem = React.createClass({ propTypes: { direction: React.PropTypes.oneOf(['prev', 'next']), onAnimateOutEnd: React.PropTypes.func, active: React.PropTypes.bool, anima...
actor-apps/app-web/src/app/components/DialogSection.react.js
treejames/actor-platform
import _ from 'lodash'; import React from 'react'; import { PeerTypes } from 'constants/ActorAppConstants'; import MessagesSection from 'components/dialog/MessagesSection.react'; import TypingSection from 'components/dialog/TypingSection.react'; import ComposeSection from 'components/dialog/ComposeSection.react'; i...
src/pages/index.js
xiaoxinghu/home
import React from 'react' import style from './_style.module.scss' export default class Index extends React.Component { render() { const { html, meta } = this.props.data.orga const { title } = meta return ( <div> <h1 className={style.title}>{ title }</h1> <div style={{maxWidth: '50r...
node_modules/react-bootstrap/es/MediaHeading.js
yeshdev1/Everydays-project
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 ...
app/components/PaginationBar/index.js
oliv37/vocab-front
/** * * PaginationBar * */ import React from 'react'; import styles from './styles.css'; function PaginationBar({ currentPage, totalPage, changePage }) { const showPreviousBtn = currentPage > 1; const showNextBtn = totalPage > currentPage; const onPreviousBtnClick = () => { changePage(currentPage - 1); ...
docs/src/app/components/pages/components/Dialog/ExampleSimple.js
hai-cea/material-ui
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; /** * Dialog with action buttons. The actions are passed in as an array of React objects, * in this example [FlatButtons](/#/components/flat-button...
consoles/my-joy-templates/src/app.js
yldio/joyent-portal
import React from 'react'; import Helmet from 'react-helmet-async'; import { RootContainer } from 'joyent-ui-toolkit'; import Routes from '@root/routes'; export default () => ( <RootContainer> <Helmet> <title>Templates</title> </Helmet> <Routes /> </RootContainer> );
src/components/entries_new.js
calvincolton/timesheet
import React, { Component } from 'react'; import { Field, reduxForm } from 'redux-form'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { createDate } from '../actions'; class EntriesNew extends Component { renderField(field) { const { meta: { touched, error } } = fi...
packages/react-native-renderer/src/ReactNativeComponent.js
jameszhan/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow * @format */ import type { MeasureInWindowOnSuccessCallback, MeasureLayoutOnSuccessCallback, MeasureOnSuccessCallb...
src/containers/Notify.js
dzwiedziu-nkg/books-collection-frontend
import React from 'react'; import { connect } from 'react-redux'; import Main from '../components/basic/Notify'; class Notify extends React.Component { render() { const { text, style } = this.props; if (text === null) { return null; } return (<Main style={style}>{text}</Main>); } } functi...
webpack/scenes/RedHatRepositories/components/RepositorySetRepositories.js
stbenjam/katello
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Alert, Spinner } from 'patternfly-react'; import loadRepositorySetRepos from '../../../redux/actions/RedHatRepositories/repositorySetRepositories'; import RepositorySetRepository from './Reposi...
src/TableBody.js
archr/react-tables
import React from 'react'; export default class TableBody extends React.Component { static contextTypes = { columns: React.PropTypes.array, loading: React.PropTypes.bool, rows: React.PropTypes.array, classes: React.PropTypes.string, dimentions: React.PropTypes.object } constructor(props, co...
src/interface/others/AverageTargetsHit.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; class AverageTargetsHit extends React.PureComponent { static propTypes = { casts: PropTypes.number.isRequired, hits: PropTypes.number.isRequired, unique: PropTypes.bool, approximate: PropTypes.bool, }; render() { const { casts, h...
src/svg-icons/av/skip-next.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSkipNext = (props) => ( <SvgIcon {...props}> <path d="M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z"/> </SvgIcon> ); AvSkipNext = pure(AvSkipNext); AvSkipNext.displayName = 'AvSkipNext'; AvSkipNext.muiName = 'SvgIcon...
src/svg-icons/av/mic-none.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvMicNone = (props) => ( <SvgIcon {...props}> <path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm-1.2-9.1c0-.66.54-1.2 1.2-1.2.66 0 1.2.54 1.2 1.2l-.01 6.2c0 .66-.53 ...
src/interface/icons/Avoidance.js
sMteX/WoWAnalyzer
import React from 'react'; import Icon from 'common/Icon'; const icon = props => ( <Icon icon="ability_rogue_quickrecovery" {...props} /> ); export default icon;
src/scenes/home/families/facts/facts.js
miaket/operationcode_frontend
import React from 'react'; import styles from './facts.css'; import family3 from '../../../../images/Family-3.jpg'; const Facts = () => ( <div className={styles.facts}> <div className={styles.factsList}> <div className={styles.factsHeading}> <h5>The Facts</h5> </div> <ul> <li cl...
docs/app/Examples/elements/Button/Content/index.js
Rohanhacker/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const ButtonContentExamples = () => ( <ExampleSection title='Content'> <ComponentExample title='Conditionals' descrip...
client/components/header.js
twistedSynapse/nodeServerBareBones
import React from 'react'; import { Link } from 'react-router-dom'; import { AppBar, Navigation, Button } from 'react-toolbox'; import appBarTheme from '../theme/appBar.css'; function Header(props) { return ( <AppBar title='AIoT' leftIcon='menu' theme={appBarTheme}> <Navigation type='horizontal'> ...
src/js/pages/Results/index.js
nathanuphoff/datahub.client
import React from 'react'; export default class Results extends React.Component { render() { return <h1>Results</h1> } }
frontend/src/components/popup/NewProductAdmin.js
jirkae/BeerCheese
import React from 'react'; import { Modal, ModalBody, Container, Row, Form, FormGroup, Label, Input, Button, Col, InputGroupAddon, InputGroup, } from 'reactstrap'; import api from '../../api'; export default class NewProductAdmin extends React.Component { constructor(props) { super(props); this.state =...
src/Navbar.js
mmartche/boilerplate-shop
import classNames from 'classnames'; import React from 'react'; import deprecated from 'react-prop-types/lib/deprecated'; import elementType from 'react-prop-types/lib/elementType'; import BootstrapMixin from './BootstrapMixin'; import Grid from './Grid'; import NavBrand from './NavBrand'; import createChainedFunctio...
packages/icons/src/md/image/Filter4.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdFilter4(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M6 10H2v32c0 2.21 1.79 4 4 4h32v-4H6V10zm24 20h4V10h-4v8h-4v-8h-4v12h8v8zM42 2c2.21 0 4 1.79 4 4v28c0 2.21-1.79 4-4 4H14c-2.21 0-4-1.79-4-4V6c0-2.21 ...
examples/basic/example.js
alexmnv/react-navtree
import React from 'react' import PropTypes from 'prop-types' import Nav, {navDynamic} from 'react-navtree' import './example.css' class Header extends React.PureComponent { constructor (props) { super(props) this.state = { tab: 'tab-foo' } } render () { return <Nav className='header'> <Nav ...
frontend/src/Welcome.js
natsukagami/hakkero-project
import React from 'react'; import { Row, Col, Image } from 'react-bootstrap'; import logo from './logo.png'; export default function Welcome() { return ( <Row> <Col md={3}> <Image src={logo} responsive /> </Col> <Col md={9}> <h2>Hakkero Project!</h2> <h4> A mi...
client-src/components/comparison/header/Price.js
minimus/final-task
import React from 'react' import propTypes from 'prop-types' export default function Price({ price }) { return ( <div className="price-item-wrapper"> <span className="price-item">{price}</span> </div> ) } Price.propTypes = { price: propTypes.number.isRequired, }
docs/src/app/components/pages/components/AppBar/ExampleIconMenu.js
rscnt/material-ui
import React from 'react'; import AppBar from 'material-ui/AppBar'; import IconButton from 'material-ui/IconButton'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert'; import NavigationClose from 'material-ui/s...
src/view/Lib.js
blockkeeper/blockkeeper-frontend-web
import React from 'react' import { Link } from 'react-router-dom' import MenuItem from '@material-ui/core/MenuItem' import Tabs from '@material-ui/core/Tabs' import Tab from '@material-ui/core/Tab' import AppBar from '@material-ui/core/AppBar' import List from '@material-ui/core/List' import ListItem from '@material-ui...
src/components/PetitionGroup/index.js
iris-dni/iris-frontend
import React from 'react'; import styles from './petition-group.scss'; import TeaserGrid from 'components/TeaserGrid'; import Container from 'components/Container'; import BlockContainer from 'components/BlockContainer'; import Section from 'components/Section'; import Heading2 from 'components/Heading2'; import Link f...
packages/icons/src/md/image/Tonality.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdTonality(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M24 4c11.05 0 20 8.95 20 20s-8.95 20-20 20S4 35.05 4 24 12.95 4 24 4zm-2 35.86V8.14C14.11 9.12 8 15.84 8 24s6.11 14.88 14 15.86zm4-31.72V10h5.74C30 ...
app/scripts/components/troubleshooting-menu.js
hustbill/network-verification-ui
import React from 'react'; import { connect } from 'react-redux'; // -d 'dpdk|192.168.122.224:50051| // 10.0.5.4/0,10.0.207.0/8,0/0,0/0,0/0;sum,volume,1000;32,32,8,16,16;100' class DebugMenu extends React.Component { constructor(props, context) { super(props, context); this.state = { data: 'dpdk|192.168.122...
docs/src/app/components/pages/components/Tabs/ExampleControlled.js
ngbrown/material-ui
import React from 'react'; import {Tabs, Tab} from 'material-ui/Tabs'; const styles = { headline: { fontSize: 24, paddingTop: 16, marginBottom: 12, fontWeight: 400, }, }; export default class TabsExampleControlled extends React.Component { constructor(props) { super(props); this.state =...
page/src/components/LogList.js
swpark6/Dumbledore
import React from 'react'; import PropTypes from 'prop-types'; import { List } from 'semantic-ui-react'; import moment from 'moment'; import './LogList.css'; const LogList = ({ logs }) => { const openType = key => ( <List.Item key={key}> <List.Icon name="compress" color="blue" size="large" verticalAlign="m...
src/components/svg/icon/Checkbox-Checked.js
ryanabragg/VanguardLARP
import React from 'react'; import PropTypes from 'prop-types'; const CheckedboxChecked = (props) => { const color = props.color == 'inherit' ? undefined : props.color; const aria = props.title ? 'svg-checkedbox-checked-title' : '' + props.title && props.description ? ' ' : '' + props.description ? 'svg-che...
src/svg-icons/image/compare.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCompare = (props) => ( <SvgIcon {...props}> <path d="M10 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v2h2V1h-2v2zm0 15H5l5-6v6zm9-15h-5v2h5v13l-5-6v9h5c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); ImageCo...
src/svg-icons/communication/stay-current-landscape.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayCurrentLandscape = (props) => ( <SvgIcon {...props}> <path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/> </SvgIcon> ); Communicat...
src/svg-icons/action/settings-applications.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsApplications = (props) => ( <SvgIcon {...props}> <path d="M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm7-7H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-1.75 9c...
Test_ReactNative_NativeModules/js/AppRoot.js
ksti/Test_react-native-nativeModules
/** * Created by GJS on 2017/3/30. */ import React from 'react'; /* * test app * */ import TestApp from './apps/testApp/src/AppRoot' /* * examples * */ /* export */ export default () => <TestApp/>
src/components/Settings/index.js
hasibsahibzada/quran.com-frontend
import React, { Component } from 'react'; import * as customPropTypes from 'customPropTypes'; import * as OptionsActions from 'redux/actions/options.js'; import ChapterInfoToggle from 'components/Settings/ChapterInfoToggle'; import { connect } from 'react-redux'; import FontSizeOptions from 'components/Settings/FontSiz...
src/Parser/HolyPaladin/Modules/Items/SoulOfTheHighlord.js
Yuyz0112/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Module from 'Parser/Core/Module'; class SoulOfTheHighlord extends Module { on_initialized() { if (!this.owner.error) { this.active = this.owner.selectedCombata...
src/screens/Auth/SignUp.js
alphasp/pxview
import React from 'react'; import PXWebView from '../../components/PXWebView'; const signUpUrl = 'https://accounts.pixiv.net/signup'; const SignUp = () => ( <PXWebView source={{ uri: signUpUrl, }} /> ); export default SignUp;
dist/lib/carbon-fields/assets/js/fields/components/sortable-list/index.js
ArtFever911/statrer-kit
/** * The external dependencies. */ import $ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; class SortableList extends React.Component { /** * Lifecycle hook. * * @return {void} */ componentDidMount() { this.handleSortableUpdate = this.handleSortableUpdate.bind(this); this...
app/components/genericComponents/Blackquote/index.js
romainquellec/cuistot
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; const StyledBlockquote = styled.blockquote` position: relative; font-style: italic; font-size: 1.2rem; line-height: 2rem; box-sizing: border-box; margin: 1rem 0; padding: 0.5rem 0 0.5rem 1.5rem; `; con...
docs/app/components/layout/main/index.js
rubenmoya/react-toolbox
import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import { Button } from 'react-toolbox'; import Appbar from '../../../components/appbar'; import Markdown from '../../../components/markdown'; import Playground from './components/playground.js'; import MainNavigation from '...
client/src/components/dashboard/Profile/Preferences/common/RepoContainer.js
no-stack-dub-sack/alumni-network
import { connectScreenSize } from 'react-screen-size'; import { mapScreenSizeToProps } from '../../../Community/UserCard'; import propTypes from 'prop-types'; import React from 'react'; import repoHosts from '../../../../../assets/dropdowns/repoHosts'; import RepoInput from './RepoInput'; import RepoListItem from './Re...
lib/ui/src/modules/ui/components/left_panel/header.js
bigassdragon/storybook
import PropTypes from 'prop-types'; import React from 'react'; import { baseFonts } from '../theme'; const wrapperStyle = { background: '#F7F7F7', marginBottom: 10, }; const headingStyle = { ...baseFonts, textTransform: 'uppercase', letterSpacing: '1.5px', fontSize: '12px', fontWeight: 'bolder', color...
src/utils/ownerDocument.js
BespokeInsights/react-overlays
import React from 'react'; import ownerDocument from 'dom-helpers/ownerDocument'; export default function (componentOrElement) { return ownerDocument(React.findDOMNode(componentOrElement)); }
src/components/icons/MistIcon.js
maximgatilin/weathernow
import React from 'react'; export default function CloudsBrokenIcon() { return ( <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 176.32 148.26"><title>mist</title><path d="M1018.93,943.61h0c0-.25,0-0.5,0-0.75a36.25,36.25,0,1,0-72.51,0s0,0,0,.07a29.59,29.59,0,0,0,1.39,59.16h71....
app/common/components/LockButton/index.js
Kaniwani/KW-Frontend
import React from 'react'; import PropTypes from 'prop-types'; import IconButton from 'common/components/IconButton'; LockButton.propTypes = { size: PropTypes.string, isActionable: PropTypes.bool, isSubmitting: PropTypes.bool, isLocked: PropTypes.bool, children: PropTypes.any, onClick: PropTypes.func.isRe...
src/components/controls/InlineEditableControl.js
kryptnostic/gallery
/* * @flow */ import React from 'react'; import FontAwesome from 'react-fontawesome'; import styled from 'styled-components'; import { isNonEmptyString } from '../../utils/LangUtils'; const ControlWrapper = styled.div` display: inline-flex; margin: 0; padding: 0; width: 100%; `; const EditableControlWrap...
src/svg-icons/maps/rate-review.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsRateReview = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 14v-2.47l6.88-6.88c.2-.2.51-.2.71 0l1.77 1.77c.2.2.2.51 0 .71L8.47 14H6zm1...
src/app/component/star-rating/star-rating.story.js
all3dp/printing-engine-client
import React from 'react' import {storiesOf} from '@storybook/react' import StarRating from '.' storiesOf('StarRating', module).add('default', () => <StarRating stars={3} of={5} />)
Libraries/Image/Image.ios.js
jhen0409/react-native
/** * 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...
src/components/fields/File/Show.js
orionsoft/parts
import React from 'react' import DeleteIcon from 'react-icons/lib/md/delete' import ViewIcon from 'react-icons/lib/md/open-in-browser' import autobind from 'autobind-decorator' import cleanFileURL from './cleanFileURL' import PropTypes from 'prop-types' const styles = { container: { backgroundColor: '#fff', ...
docs/app/Examples/elements/Container/Variations/ContainerExampleAlignment.js
mohammed88/Semantic-UI-React
/* eslint-disable max-len */ import React from 'react' import { Container, Divider } from 'semantic-ui-react' const ContainerExampleAlignment = () => ( <div> <Container textAlign='left'> Left Aligned </Container> <Container textAlign='center'> Center Aligned </Container> <Container t...