This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
red: { | |
'100': '#FFBDBD', | |
'200': '#FF9B9B', | |
'300': '#F86A6A', | |
'400': '#EF4E4E', | |
'500': '#E12D39', | |
'600': '#CF1124', | |
'700': '#AB091E', | |
'800': '#8A041A', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import styled from "@emotion/styled"; | |
import { shouldForwardProp } from "@styled-system/should-forward-prop"; | |
import { | |
background, | |
border, | |
color, | |
flexbox, | |
grid, | |
layout, | |
position, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios, { AxiosInstance } from 'axios'; | |
import moment from 'moment'; | |
import * as readline from 'readline'; | |
const FIELDS = ['applicant', 'location', 'DayOrder', 'start24', 'end24']; | |
const serializeFields = (fields: string[]) => | |
fields.map(field => `\`${field}\``).join(','); | |
const range = (start: number, end: number) => |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable */ | |
declare module 'react-window' { | |
import { Requireable, Validator } from 'prop-types'; | |
export type Direction = 'vertical' | 'horizontal'; | |
export type Alignment = 'auto' | 'center' | 'end' | 'start'; | |
export type RenderProps<TDataType extends any = any> = { | |
key?: string; | |
data?: TDataType; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import { InfiniteLoader, AutoSizer, GridProps, Dimensions, IndexRange, Index } from 'react-virtualized'; | |
import ProductLoader from './ProductLoader'; | |
import ProductFilters from './ProductFilters'; | |
export interface Props extends GridProps { | |
limit: number; | |
cardWidth: number; | |
cardHeight: number; | |
padding: number; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import * as rbush from 'rbush'; | |
import * as PropTypes from 'prop-types'; | |
export interface Props { | |
/* +/- how many pixels from mousedown */ | |
tolerance: number; | |
/* What to do on selection */ | |
onSelection(o: { selection: Set<string>, e: React.MouseEvent<HTMLDivElement> }): void; | |
/* What to do when selection has been completed */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cssnano from 'cssnano'; | |
import simplevars from 'postcss-simple-vars'; | |
import nested from 'postcss-nested'; | |
import cssnext from 'postcss-cssnext'; | |
import postcssModules from 'postcss-modules'; | |
import tslint from 'rollup-plugin-tslint'; | |
import uglify from 'rollup-plugin-uglify'; | |
import postcss from 'rollup-plugin-postcss'; | |
import replace from 'rollup-plugin-replace'; | |
import commonjs from 'rollup-plugin-commonjs'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import { findDOMNode } from 'react-dom'; | |
type Props = { | |
selectableKey: any, | |
children?: React.ReactNode, | |
}; | |
/** | |
* Wraps an element inside of a SelectableGroup and makes it possible to select |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import 'lib/jwplayer-7.7.4/jwplayer.js'; | |
interface Props extends SetupConfig, Events {}; | |
interface EventMap { | |
[name: string]: (e: any) => void, | |
} | |
export default class ShiftPlayer extends React.Component<Props, {}> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { observer } from 'mobx-react'; | |
import DevTools from 'mobx-react-devtools'; | |
@observer | |
export default class App extends Component { | |
state = { | |
value: '', | |
}; |