diff --git a/README.md b/README.md index ff5853f06..cc0247f98 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ The octicons node.js library is the main JavaScript library. With [a JavaScript | Package | Version | |---|---| | **[octicons](/lib/octicons_node)**
Node.js package with Javascript API | [![npm version](https://img.shields.io/npm/v/octicons.svg)](https://www.npmjs.org/package/octicons) | +| **[@github/octicons-react](/lib/octicons_react)**
React octicons components | [![npm version](https://img.shields.io/npm/v/%40github%2Focticons-react.svg)](https://www.npmjs.org/package/%40github%2Focticons-react) | ### Ruby @@ -28,7 +29,7 @@ The octicons node.js library is the main JavaScript library. With [a JavaScript |---|---| | **[octicons](/lib/octicons_gem)**
Ruby gem with Ruby API | [![Gem version](https://img.shields.io/gem/v/octicons.svg)](https://rubygems.org/gems/octicons) | | [octicons_helper](/lib/octicons_helper)
Rails helper for using octicons| [![Gem version](https://img.shields.io/gem/v/octicons_helper.svg)](https://rubygems.org/gems/octicons_helper) | -| [jekyll-octicons](/lib/jekyll-octicons)
Jekyll plugin for using octicons | [![Gem version](https://img.shields.io/gem/v/jekyll-octicons.svg)](https://rubygems.org/gems/jekyll-octicons) | +| [jekyll-octicons](/lib/octicons_jekyll)
Jekyll plugin for using octicons | [![Gem version](https://img.shields.io/gem/v/jekyll-octicons.svg)](https://rubygems.org/gems/jekyll-octicons) | ## License diff --git a/lerna.json b/lerna.json index 08155510f..937102e35 100644 --- a/lerna.json +++ b/lerna.json @@ -4,7 +4,8 @@ "lib/octicons_node", "lib/octicons_gem", "lib/octicons_helper", - "lib/jekyll-octicons" + "lib/octicons_jekyll", + "lib/octicons_react" ], "version": "7.3.0" } diff --git a/lib/jekyll-octicons/.npmignore b/lib/octicons_jekyll/.npmignore similarity index 100% rename from lib/jekyll-octicons/.npmignore rename to lib/octicons_jekyll/.npmignore diff --git a/lib/jekyll-octicons/Gemfile b/lib/octicons_jekyll/Gemfile similarity index 100% rename from lib/jekyll-octicons/Gemfile rename to lib/octicons_jekyll/Gemfile diff --git a/lib/jekyll-octicons/LICENSE b/lib/octicons_jekyll/LICENSE similarity index 100% rename from lib/jekyll-octicons/LICENSE rename to lib/octicons_jekyll/LICENSE diff --git a/lib/jekyll-octicons/README.md b/lib/octicons_jekyll/README.md similarity index 100% rename from lib/jekyll-octicons/README.md rename to lib/octicons_jekyll/README.md diff --git a/lib/jekyll-octicons/Rakefile b/lib/octicons_jekyll/Rakefile similarity index 100% rename from lib/jekyll-octicons/Rakefile rename to lib/octicons_jekyll/Rakefile diff --git a/lib/jekyll-octicons/jekyll-octicons.gemspec b/lib/octicons_jekyll/jekyll-octicons.gemspec similarity index 100% rename from lib/jekyll-octicons/jekyll-octicons.gemspec rename to lib/octicons_jekyll/jekyll-octicons.gemspec diff --git a/lib/jekyll-octicons/lib/jekyll-octicons.rb b/lib/octicons_jekyll/lib/jekyll-octicons.rb similarity index 98% rename from lib/jekyll-octicons/lib/jekyll-octicons.rb rename to lib/octicons_jekyll/lib/jekyll-octicons.rb index 9c91560c7..7a306dba2 100644 --- a/lib/jekyll-octicons/lib/jekyll-octicons.rb +++ b/lib/octicons_jekyll/lib/jekyll-octicons.rb @@ -1,4 +1,3 @@ -# rubocop:disable Naming/FileName require "octicons" require "jekyll-octicons/version" require "liquid" diff --git a/lib/jekyll-octicons/lib/jekyll-octicons/version.rb b/lib/octicons_jekyll/lib/jekyll-octicons/version.rb similarity index 100% rename from lib/jekyll-octicons/lib/jekyll-octicons/version.rb rename to lib/octicons_jekyll/lib/jekyll-octicons/version.rb diff --git a/lib/jekyll-octicons/package.json b/lib/octicons_jekyll/package.json similarity index 100% rename from lib/jekyll-octicons/package.json rename to lib/octicons_jekyll/package.json diff --git a/lib/jekyll-octicons/test/helper.rb b/lib/octicons_jekyll/test/helper.rb similarity index 100% rename from lib/jekyll-octicons/test/helper.rb rename to lib/octicons_jekyll/test/helper.rb diff --git a/lib/jekyll-octicons/test/octicon_tag_test.rb b/lib/octicons_jekyll/test/octicon_tag_test.rb similarity index 100% rename from lib/jekyll-octicons/test/octicon_tag_test.rb rename to lib/octicons_jekyll/test/octicon_tag_test.rb diff --git a/lib/octicons_react/.babelrc b/lib/octicons_react/.babelrc new file mode 100644 index 000000000..1224b59fc --- /dev/null +++ b/lib/octicons_react/.babelrc @@ -0,0 +1,8 @@ +{ + "presets": ["env", "stage-0", "react"], + "env": { + "production": { + "presets": ["next/babel"] + } + } +} diff --git a/lib/octicons_react/.eslintignore b/lib/octicons_react/.eslintignore new file mode 100644 index 000000000..7d744c72e --- /dev/null +++ b/lib/octicons_react/.eslintignore @@ -0,0 +1 @@ +src/icons/*.js diff --git a/lib/octicons_react/.eslintrc.json b/lib/octicons_react/.eslintrc.json new file mode 100644 index 000000000..dc20bf90b --- /dev/null +++ b/lib/octicons_react/.eslintrc.json @@ -0,0 +1,9 @@ +{ + "extends": [ + "plugin:github/recommended", + "plugin:github/es6", + "plugin:github/react" + ], + "rules": { + } +} diff --git a/lib/octicons_react/.gitignore b/lib/octicons_react/.gitignore new file mode 100644 index 000000000..1c24e517f --- /dev/null +++ b/lib/octicons_react/.gitignore @@ -0,0 +1,3 @@ +.cache +.next +dist/ diff --git a/lib/octicons_react/.npmignore b/lib/octicons_react/.npmignore new file mode 100644 index 000000000..be73bc345 --- /dev/null +++ b/lib/octicons_react/.npmignore @@ -0,0 +1,9 @@ +*.config.js +.*.sw? +.*rc +.cache +.eslint* +.gitignore +.next +script +src diff --git a/lib/octicons_react/.nvmrc b/lib/octicons_react/.nvmrc new file mode 100644 index 000000000..45a4fb75d --- /dev/null +++ b/lib/octicons_react/.nvmrc @@ -0,0 +1 @@ +8 diff --git a/lib/octicons_react/LICENSE b/lib/octicons_react/LICENSE new file mode 100644 index 000000000..9317777c6 --- /dev/null +++ b/lib/octicons_react/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 GitHub Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/lib/octicons_react/README.md b/lib/octicons_react/README.md new file mode 100644 index 000000000..3f9a3e74e --- /dev/null +++ b/lib/octicons_react/README.md @@ -0,0 +1,200 @@ +# GitHub Octicons React Component + +[![npm version](https://img.shields.io/npm/v/%40github%2Focticons-react.svg)](https://www.npmjs.org/package/%40github%2Focticons-react) +[![Build Status](https://travis-ci.org/primer/octicons.svg?branch=master)](https://travis-ci.org/primer/octicons) + +> [Octicons] for React + +## Install + +``` +$ npm install @github/octicons-react --save +``` + +## Usage + +### `` +The `` component is really just the "shell" of an Octicon that renders +the `` element and all of its attributes. To render a specific icon, you +must pass it either via the `icon` prop, or as the only child: + +```jsx +/** + * The prop form is shorter, but doesn't allow you to pass icon props. + */ + + +/** + * The child form allows you to pass props. + */ + +``` + +Note that none of our builtin icons take props, so unless you're creating +[custom icons](#custom-icons) you'll probably want to use the `icon` prop form. + +### Icons +The `@github/octicons-react` module exports the `Octicon` component as +`default` and the individual icon symbols as separate [named +exports](https://ponyfoo.com/articles/es6-modules-in-depth#named-exports). This +allows you to import only the icons that you need without blowing up your +bundle: + +```jsx +import React from 'react' +import Octicon, {Beaker, Zap} from '@github/octicons-react' + +export default function Icon({boom}) { + return +} +``` + +If you were to compile this example with a tool that supports [tree-shaking][] +(such as Webpack, Rollup, or Parcel) the resulting bundle would only include +the "zap" and "beaker" icons. + +### All icons +If you don't mind your bundle being huge or you need to be able to render +arbitrarily named icons at runtime, you can import either of the following +named exports: + +#### `getIconByName()` +The `getIconByName` export is a function that takes a lowercase octicon name +(such as `arrow-right`) and returns the corresponding icon class. Using this +helper, it's possible to create an Octicon class that takes a `name` prop and +resolves it to the right component: + +```jsx +import React from 'react' +import Octicon, {getIconByName} from '@github/octicons-react' + +export default function OcticonByName({name, ...props}) { + return +} +``` + +#### `iconsByName` +The `iconsByName` export is an object that maps keys (such as `arrow-right` or +`zap`) to component functions, which you can use to generate listings of all +the octicons: + +```jsx +import React from 'react' +import Octicon, {iconsByName} from '@github/octicons-react' + +export default function OcticonsList() { + return ( + + ) +} +``` + +### Vertical alignment +By default the octicons have `vertical-align: text-bottom;` applied as inline +styles. You can change the alignment via the `verticalAlign` prop, which can be +either `middle`, `text-bottom`, `text-top`, or `top`. + +```js +import Octicon, {Repo} from '@github/octicons-react' + +export default () => ( +

+ github/github +

+) +``` + + +### `ariaLabel` +You have the option of adding accessibility information to the icon with the +[`aria-label` attribute][aria-label] via the `ariaLabel` prop (note the +capitalization of `L`!). + +```js +// Example usage +import Octicon, {Plus} from '@github/octicons-react' + +export default () => ( + +) +``` + + +### Sizes +The `size` prop takes `small`, `medium`, and `large` values that can be used to +render octicons at standard sizes: + +| Prop | Rendered Size | +| :- | :- | +| `size='small'` | 16px height by `computed` width | +| `size='medium'` | 32px height by `computed` width | +| `size='large'` | 64px height by `computed` width | + +```js +// Example usage +import Octicon, {LogoGithub} from '@github/octicons-react' + +export default () => ( +

+ + + +

+) +``` + + +## Custom icons +Each of our icon components is really just a function that renders its SVG +``. To accommodate icons varying aspect ratios, the `Octicon` component +determines the `viewBox` of the `` element by first looking for a `size` +array on the icon component class. For instance, if you wanted to create a +custom icon that consisted of three circles side by side, you could do this: + +```jsx +import React from 'react' +import Octicon from '@github/octicons-react' + +function CirclesIcon() { + return ( + + + + + + ) +} + +CirclesIcon.size = [30, 10] + +export default CirclesOcticon(props) { + return +} +``` + + +## License + +(c) GitHub, Inc. + +When using the GitHub logos, be sure to follow the [GitHub logo +guidelines](https://github.com/logos). + +[MIT](./LICENSE) + +[octicons]: https://octicons.github.com/ +[primer]: https://github.com/primer/primer +[docs]: http://primercss.io/ +[npm]: https://www.npmjs.com/ +[install-npm]: https://docs.npmjs.com/getting-started/installing-node +[tree-shaking]: https://developer.mozilla.org/en-US/docs/Glossary/Tree_shaking +[aria-label]: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-label_attribute diff --git a/lib/octicons_react/package.json b/lib/octicons_react/package.json new file mode 100644 index 000000000..1147c64b9 --- /dev/null +++ b/lib/octicons_react/package.json @@ -0,0 +1,58 @@ +{ + "name": "@github/octicons-react", + "version": "7.3.0", + "description": "A scalable set of icons handcrafted with <3 by GitHub.", + "homepage": "https://octicons.github.com", + "author": "GitHub, Inc.", + "license": "MIT", + "main": "dist/index.umd.js", + "module": "dist/index.esm.js", + "repository": "primer/octicons", + "scripts": { + "pretest": "npm run lint -s", + "test": "jest", + "start": "NODE_ENV=production next", + "lint": "eslint src script", + "prepare": "script/build.js && npm -s run rollup", + "prepublishOnly": "../../script/notify pending", + "preversion": "npm -s run prepare", + "publish": "../../script/notify success", + "rollup": "rollup -c" + }, + "keywords": [ + "GitHub", + "icons", + "svg", + "octicons", + "react", + "primer" + ], + "dependencies": { + "prop-types": "^15.6.1" + }, + "devDependencies": { + "babel-preset-env": "^1.7.0", + "babel-preset-react": "^6.24.1", + "babel-preset-stage-0": "^6.24.1", + "eslint": "^5.0.1", + "eslint-plugin-github": "^1.1.0", + "eslint-plugin-jest": "^21.17.0", + "fs-extra": "^6.0.1", + "jest": "^23.2.0", + "next": "^5.1.0", + "octicons": "7.2.0", + "primer-react": "0.0.6-alpha.1", + "react": "^16.4.0", + "react-dom": "^16.4.1", + "react-test-renderer": "^16.4.1", + "rollup": "^0.62.0", + "rollup-plugin-babel": "^3.0.5", + "rollup-plugin-commonjs": "^9.1.3" + }, + "peerDependencies": { + "react": ">=15" + }, + "engines": { + "node": ">=8" + } +} diff --git a/lib/octicons_react/pages/_document.js b/lib/octicons_react/pages/_document.js new file mode 100644 index 000000000..dc0654405 --- /dev/null +++ b/lib/octicons_react/pages/_document.js @@ -0,0 +1,17 @@ +import Document, { Head, Main, NextScript } from 'next/document' + +export default class PrimerDocument extends Document { + render() { + return ( + + + + + +
+ + + + ) + } +} diff --git a/lib/octicons_react/pages/index.js b/lib/octicons_react/pages/index.js new file mode 100644 index 000000000..7eb919ad6 --- /dev/null +++ b/lib/octicons_react/pages/index.js @@ -0,0 +1,46 @@ +import React from 'react' + +import Octicon, {iconsByName} from '../' +import {Block, Box, Text} from 'primer-react' + +export default function App() { + const sizes = ['small', 'medium', 'large'] + return ( + + + + + + + + + + + + {Object.keys(iconsByName).map(key => { + const Icon = iconsByName[key] + return ( + + + + + + + ) + })} + +
keyimportsmall, medium, largecode sample
{key}{Icon.name} + {sizes.map(size => ( + + + + ))} + +
{`
+import Octicon, {${Icon.name}} from '@github/octicons-react'
+export default () => 
+                  `.trim()}
+
+
+ ) +} diff --git a/lib/octicons_react/prettier.config.js b/lib/octicons_react/prettier.config.js new file mode 100644 index 000000000..7d9937db5 --- /dev/null +++ b/lib/octicons_react/prettier.config.js @@ -0,0 +1 @@ +module.exports = require('eslint-plugin-github/prettier.config') diff --git a/lib/octicons_react/rollup.config.js b/lib/octicons_react/rollup.config.js new file mode 100644 index 000000000..342b58c29 --- /dev/null +++ b/lib/octicons_react/rollup.config.js @@ -0,0 +1,24 @@ +import babel from 'rollup-plugin-babel' +import commonjs from 'rollup-plugin-commonjs' + +const formats = ['esm', 'umd'] // 'cjs' ? + +export default { + input: 'src/index.js', + plugins: [ + babel({ + babelrc: false, + presets: [ + ['env', {modules: false}], + 'stage-0', + 'react' + ] + }), + commonjs() + ], + output: formats.map(format => ({ + file: `dist/index.${format}.js`, + format, + name: 'reocticons' + })) +} diff --git a/lib/octicons_react/script/.eslintrc.json b/lib/octicons_react/script/.eslintrc.json new file mode 100644 index 000000000..9f1520bef --- /dev/null +++ b/lib/octicons_react/script/.eslintrc.json @@ -0,0 +1,9 @@ +{ + "env": { + "node": true, + "browser": false + }, + "rules": { + "no-console": 0 + } +} diff --git a/lib/octicons_react/script/build.js b/lib/octicons_react/script/build.js new file mode 100755 index 000000000..231f36f29 --- /dev/null +++ b/lib/octicons_react/script/build.js @@ -0,0 +1,71 @@ +#!/usr/bin/env node +const octicons = require('octicons') +const fse = require('fs-extra') +const {join, resolve} = require('path') + +const iconsDir = resolve(__dirname, '../src/icons') + +function CamelCase(str) { + return str.replace(/(^|-)([a-z])/g, (_, __, c) => c.toUpperCase()) +} + +const icons = [...Object.entries(octicons)].map(([key, octicon]) => { + const name = CamelCase(key) + const {width, height, path} = octicon + // convert attributes like fill-rule into JSX equivalents, e.g. fillRule + const svg = path.replace(/([a-z]+)-([a-z]+)=/g, (_, a, b) => `${a}${CamelCase(b)}=`) + const code = `import React from 'react' +export default function ${name}() { + return ${svg} +} +${name}.size = [${width}, ${height}] +` + + return { + key, + name, + octicon, + code + } +}) + +const tasks = icons + // sort them alphabetically + .sort((a, b) => a.key.localeCompare(b.key)) + .map(({key, name, code}) => { + const file = join(iconsDir, `${key}.js`) + return fse.writeFile(file, code, 'utf8').then(() => ({key, name, file})) + }) + +function writeIndex(icons) { + const count = icons.length + console.warn('wrote %d files to %s', count, iconsDir) + const file = join(iconsDir, 'index.js') + const code = `/* THIS FILE IS GENERATED. DO NOT EDIT IT. */ +${icons.map(({key, name}) => `import {default as ${name}} from './${key}'`).join('\n')} + +const iconsByName = { + ${icons.map(({key, name}) => `'${key}': ${name}`).join(',\n ')} +} + +function getIconByName(name) { + return iconsByName[name] +} + +export { + getIconByName, + iconsByName, + ${icons.map(({name}) => name).join(',\n ')} +}` + return fse.writeFile(file, code, 'utf8').then(() => { + console.warn('wrote %s with %d exports', file, count) + return icons + }) +} + +Promise.all(tasks) + .then(writeIndex) + .catch(error => { + console.error(error) + process.exit(1) + }) diff --git a/lib/octicons_react/src/__tests__/__snapshots__/octicon.js.snap b/lib/octicons_react/src/__tests__/__snapshots__/octicon.js.snap new file mode 100644 index 000000000..d2f4ec7d8 --- /dev/null +++ b/lib/octicons_react/src/__tests__/__snapshots__/octicon.js.snap @@ -0,0 +1,22 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[` outputs 1`] = ` + +`; diff --git a/lib/octicons_react/src/__tests__/all.js b/lib/octicons_react/src/__tests__/all.js new file mode 100644 index 000000000..ff73947be --- /dev/null +++ b/lib/octicons_react/src/__tests__/all.js @@ -0,0 +1,14 @@ +import {Alert, Zap, getIconByName, iconsByName} from '../' + +describe('import {getIconByName}', () => { + it('gets named icons', () => { + const Icon = getIconByName('zap') + expect(Icon).toEqual(Zap) + }) +}) + +describe('import {iconsByName}', () => { + it('gets all the icons', () => { + expect(iconsByName.alert).toEqual(Alert) + }) +}) diff --git a/lib/octicons_react/src/__tests__/octicon.js b/lib/octicons_react/src/__tests__/octicon.js new file mode 100644 index 000000000..faaee0c22 --- /dev/null +++ b/lib/octicons_react/src/__tests__/octicon.js @@ -0,0 +1,129 @@ +import React from 'react' +import Octicon from '../index' +import renderer from 'react-test-renderer' + +const render = el => renderer.create(el).toJSON() + +// set a default child; this is essentially a shallow render helper +const TestOcticon = ({children, ...props}) => { + return {children || } +} + +describe('', () => { + it('throws an error without a single child or icon prop', () => { + // console.error() is ugly af in jest; mock it with a noop + jest.spyOn(console, 'error').mockImplementation(() => jest.fn()) + expect(() => render()).toThrow() + expect(() => render()).toThrow() + }) + + it('outputs ', () => { + const rendered = render() + expect(rendered).toMatchSnapshot() + expect(rendered.type).toEqual('svg') + }) + + it('respects the className prop', () => { + expect(render().props.className).toEqual('foo') + }) + + it('respects the verticalAlign prop', () => { + expect(render().props.style.verticalAlign).toEqual('middle') + expect(render().props.style.verticalAlign).toEqual('text-bottom') + // FIXME: I have no idea why this fails! + // expect(render().props.style.verticalAlign).toEqual('text-top') + expect(render().props.style.verticalAlign).toEqual('text-top') + }) + + describe('size props', () => { + it('respects size="small"', () => { + const rendered = render() + expect(rendered.props.width).toEqual(16) + expect(rendered.props.height).toEqual(16) + }) + + it('respects size="medium"', () => { + const rendered = render() + expect(rendered.props.width).toEqual(32) + expect(rendered.props.height).toEqual(32) + }) + + it('respects size="large"', () => { + const rendered = render() + expect(rendered.props.width).toEqual(64) + expect(rendered.props.height).toEqual(64) + }) + + it('respects size={number}', () => { + const rendered = render() + expect(rendered.props.width).toEqual(128) + expect(rendered.props.height).toEqual(128) + }) + + it('respects width instead of size', () => { + const rendered = render() + expect(rendered.props.width).toEqual(48) + expect(rendered.props.height).toEqual(48) + }) + + it('respects height instead of size', () => { + const rendered = render() + expect(rendered.props.width).toEqual(48) + expect(rendered.props.height).toEqual(48) + }) + }) + + describe('with as child', () => { + it('generates a default viewBox', () => { + const rendered = render() + expect(rendered.props.viewBox).toEqual('0 0 16 16') + }) + + it('generates default viewBox', () => { + const rendered = render() + expect(rendered.props.viewBox).toEqual('0 0 16 16') + }) + }) + + describe('Icon type support', () => { + function Icon() { + return + } + Icon.size = [12, 20] + + it('generates the right viewBox with an child', () => { + const rendered = render( + + + + ) + expect(rendered.props.viewBox).toEqual('0 0 12 20') + }) + + it('generates the right viewBox with icon={Icon}', () => { + const rendered = render() + expect(rendered.props.viewBox).toEqual('0 0 12 20') + }) + + it('generates the right viewBox with custom size', () => { + const rendered = render() + expect(rendered.props.viewBox).toEqual('0 0 12 20') + expect(rendered.props.height).toEqual(40) + expect(rendered.props.width).toEqual(24) + }) + + it('generates the right viewBox with custom width', () => { + const rendered = render() + expect(rendered.props.viewBox).toEqual('0 0 12 20') + expect(rendered.props.width).toEqual(24) + expect(rendered.props.height).toEqual(40) + }) + + it('generates the right viewBox with custom height', () => { + const rendered = render() + expect(rendered.props.viewBox).toEqual('0 0 12 20') + expect(rendered.props.width).toEqual(6) + expect(rendered.props.height).toEqual(10) + }) + }) +}) diff --git a/lib/octicons_react/src/icons/alert.js b/lib/octicons_react/src/icons/alert.js new file mode 100644 index 000000000..99fd19f21 --- /dev/null +++ b/lib/octicons_react/src/icons/alert.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Alert() { + return +} +Alert.size = [16, 16] diff --git a/lib/octicons_react/src/icons/arrow-down.js b/lib/octicons_react/src/icons/arrow-down.js new file mode 100644 index 000000000..449de7e14 --- /dev/null +++ b/lib/octicons_react/src/icons/arrow-down.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function ArrowDown() { + return +} +ArrowDown.size = [10, 16] diff --git a/lib/octicons_react/src/icons/arrow-left.js b/lib/octicons_react/src/icons/arrow-left.js new file mode 100644 index 000000000..fa6fa8aa2 --- /dev/null +++ b/lib/octicons_react/src/icons/arrow-left.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function ArrowLeft() { + return +} +ArrowLeft.size = [10, 16] diff --git a/lib/octicons_react/src/icons/arrow-right.js b/lib/octicons_react/src/icons/arrow-right.js new file mode 100644 index 000000000..a7ddddcf6 --- /dev/null +++ b/lib/octicons_react/src/icons/arrow-right.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function ArrowRight() { + return +} +ArrowRight.size = [10, 16] diff --git a/lib/octicons_react/src/icons/arrow-small-down.js b/lib/octicons_react/src/icons/arrow-small-down.js new file mode 100644 index 000000000..e604d209d --- /dev/null +++ b/lib/octicons_react/src/icons/arrow-small-down.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function ArrowSmallDown() { + return +} +ArrowSmallDown.size = [6, 16] diff --git a/lib/octicons_react/src/icons/arrow-small-left.js b/lib/octicons_react/src/icons/arrow-small-left.js new file mode 100644 index 000000000..d087c8b10 --- /dev/null +++ b/lib/octicons_react/src/icons/arrow-small-left.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function ArrowSmallLeft() { + return +} +ArrowSmallLeft.size = [6, 16] diff --git a/lib/octicons_react/src/icons/arrow-small-right.js b/lib/octicons_react/src/icons/arrow-small-right.js new file mode 100644 index 000000000..8908b6dee --- /dev/null +++ b/lib/octicons_react/src/icons/arrow-small-right.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function ArrowSmallRight() { + return +} +ArrowSmallRight.size = [6, 16] diff --git a/lib/octicons_react/src/icons/arrow-small-up.js b/lib/octicons_react/src/icons/arrow-small-up.js new file mode 100644 index 000000000..31fd47222 --- /dev/null +++ b/lib/octicons_react/src/icons/arrow-small-up.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function ArrowSmallUp() { + return +} +ArrowSmallUp.size = [6, 16] diff --git a/lib/octicons_react/src/icons/arrow-up.js b/lib/octicons_react/src/icons/arrow-up.js new file mode 100644 index 000000000..d5a66a14a --- /dev/null +++ b/lib/octicons_react/src/icons/arrow-up.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function ArrowUp() { + return +} +ArrowUp.size = [10, 16] diff --git a/lib/octicons_react/src/icons/beaker.js b/lib/octicons_react/src/icons/beaker.js new file mode 100644 index 000000000..fd81c9dac --- /dev/null +++ b/lib/octicons_react/src/icons/beaker.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Beaker() { + return +} +Beaker.size = [16, 16] diff --git a/lib/octicons_react/src/icons/bell.js b/lib/octicons_react/src/icons/bell.js new file mode 100644 index 000000000..5d3d66ff8 --- /dev/null +++ b/lib/octicons_react/src/icons/bell.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Bell() { + return +} +Bell.size = [14, 16] diff --git a/lib/octicons_react/src/icons/bold.js b/lib/octicons_react/src/icons/bold.js new file mode 100644 index 000000000..5c2bf8073 --- /dev/null +++ b/lib/octicons_react/src/icons/bold.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Bold() { + return +} +Bold.size = [10, 16] diff --git a/lib/octicons_react/src/icons/book.js b/lib/octicons_react/src/icons/book.js new file mode 100644 index 000000000..7f632b71f --- /dev/null +++ b/lib/octicons_react/src/icons/book.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Book() { + return +} +Book.size = [16, 16] diff --git a/lib/octicons_react/src/icons/bookmark.js b/lib/octicons_react/src/icons/bookmark.js new file mode 100644 index 000000000..52422b291 --- /dev/null +++ b/lib/octicons_react/src/icons/bookmark.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Bookmark() { + return +} +Bookmark.size = [10, 16] diff --git a/lib/octicons_react/src/icons/briefcase.js b/lib/octicons_react/src/icons/briefcase.js new file mode 100644 index 000000000..930046f4d --- /dev/null +++ b/lib/octicons_react/src/icons/briefcase.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Briefcase() { + return +} +Briefcase.size = [14, 16] diff --git a/lib/octicons_react/src/icons/broadcast.js b/lib/octicons_react/src/icons/broadcast.js new file mode 100644 index 000000000..397db9abc --- /dev/null +++ b/lib/octicons_react/src/icons/broadcast.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Broadcast() { + return +} +Broadcast.size = [16, 16] diff --git a/lib/octicons_react/src/icons/browser.js b/lib/octicons_react/src/icons/browser.js new file mode 100644 index 000000000..1467b7f19 --- /dev/null +++ b/lib/octicons_react/src/icons/browser.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Browser() { + return +} +Browser.size = [14, 16] diff --git a/lib/octicons_react/src/icons/bug.js b/lib/octicons_react/src/icons/bug.js new file mode 100644 index 000000000..4bc22a37d --- /dev/null +++ b/lib/octicons_react/src/icons/bug.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Bug() { + return +} +Bug.size = [16, 16] diff --git a/lib/octicons_react/src/icons/calendar.js b/lib/octicons_react/src/icons/calendar.js new file mode 100644 index 000000000..ba4f9ee89 --- /dev/null +++ b/lib/octicons_react/src/icons/calendar.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Calendar() { + return +} +Calendar.size = [14, 16] diff --git a/lib/octicons_react/src/icons/check.js b/lib/octicons_react/src/icons/check.js new file mode 100644 index 000000000..e3f21e992 --- /dev/null +++ b/lib/octicons_react/src/icons/check.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Check() { + return +} +Check.size = [12, 16] diff --git a/lib/octicons_react/src/icons/checklist.js b/lib/octicons_react/src/icons/checklist.js new file mode 100644 index 000000000..85339d59f --- /dev/null +++ b/lib/octicons_react/src/icons/checklist.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Checklist() { + return +} +Checklist.size = [16, 16] diff --git a/lib/octicons_react/src/icons/chevron-down.js b/lib/octicons_react/src/icons/chevron-down.js new file mode 100644 index 000000000..f8d539ecf --- /dev/null +++ b/lib/octicons_react/src/icons/chevron-down.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function ChevronDown() { + return +} +ChevronDown.size = [10, 16] diff --git a/lib/octicons_react/src/icons/chevron-left.js b/lib/octicons_react/src/icons/chevron-left.js new file mode 100644 index 000000000..598f1b997 --- /dev/null +++ b/lib/octicons_react/src/icons/chevron-left.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function ChevronLeft() { + return +} +ChevronLeft.size = [8, 16] diff --git a/lib/octicons_react/src/icons/chevron-right.js b/lib/octicons_react/src/icons/chevron-right.js new file mode 100644 index 000000000..21610f1db --- /dev/null +++ b/lib/octicons_react/src/icons/chevron-right.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function ChevronRight() { + return +} +ChevronRight.size = [8, 16] diff --git a/lib/octicons_react/src/icons/chevron-up.js b/lib/octicons_react/src/icons/chevron-up.js new file mode 100644 index 000000000..35ba5c4fb --- /dev/null +++ b/lib/octicons_react/src/icons/chevron-up.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function ChevronUp() { + return +} +ChevronUp.size = [10, 16] diff --git a/lib/octicons_react/src/icons/circle-slash.js b/lib/octicons_react/src/icons/circle-slash.js new file mode 100644 index 000000000..4fc2ab920 --- /dev/null +++ b/lib/octicons_react/src/icons/circle-slash.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function CircleSlash() { + return +} +CircleSlash.size = [14, 16] diff --git a/lib/octicons_react/src/icons/circuit-board.js b/lib/octicons_react/src/icons/circuit-board.js new file mode 100644 index 000000000..358391a9e --- /dev/null +++ b/lib/octicons_react/src/icons/circuit-board.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function CircuitBoard() { + return +} +CircuitBoard.size = [14, 16] diff --git a/lib/octicons_react/src/icons/clippy.js b/lib/octicons_react/src/icons/clippy.js new file mode 100644 index 000000000..62c5433bd --- /dev/null +++ b/lib/octicons_react/src/icons/clippy.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Clippy() { + return +} +Clippy.size = [14, 16] diff --git a/lib/octicons_react/src/icons/clock.js b/lib/octicons_react/src/icons/clock.js new file mode 100644 index 000000000..0e315f92a --- /dev/null +++ b/lib/octicons_react/src/icons/clock.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Clock() { + return +} +Clock.size = [14, 16] diff --git a/lib/octicons_react/src/icons/cloud-download.js b/lib/octicons_react/src/icons/cloud-download.js new file mode 100644 index 000000000..3375e308b --- /dev/null +++ b/lib/octicons_react/src/icons/cloud-download.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function CloudDownload() { + return +} +CloudDownload.size = [16, 16] diff --git a/lib/octicons_react/src/icons/cloud-upload.js b/lib/octicons_react/src/icons/cloud-upload.js new file mode 100644 index 000000000..b237728a3 --- /dev/null +++ b/lib/octicons_react/src/icons/cloud-upload.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function CloudUpload() { + return +} +CloudUpload.size = [16, 16] diff --git a/lib/octicons_react/src/icons/code.js b/lib/octicons_react/src/icons/code.js new file mode 100644 index 000000000..8f6c732d7 --- /dev/null +++ b/lib/octicons_react/src/icons/code.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Code() { + return +} +Code.size = [14, 16] diff --git a/lib/octicons_react/src/icons/comment-discussion.js b/lib/octicons_react/src/icons/comment-discussion.js new file mode 100644 index 000000000..9f6691c2e --- /dev/null +++ b/lib/octicons_react/src/icons/comment-discussion.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function CommentDiscussion() { + return +} +CommentDiscussion.size = [16, 16] diff --git a/lib/octicons_react/src/icons/comment.js b/lib/octicons_react/src/icons/comment.js new file mode 100644 index 000000000..f1b8ddc43 --- /dev/null +++ b/lib/octicons_react/src/icons/comment.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Comment() { + return +} +Comment.size = [16, 16] diff --git a/lib/octicons_react/src/icons/credit-card.js b/lib/octicons_react/src/icons/credit-card.js new file mode 100644 index 000000000..94890bef0 --- /dev/null +++ b/lib/octicons_react/src/icons/credit-card.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function CreditCard() { + return +} +CreditCard.size = [16, 16] diff --git a/lib/octicons_react/src/icons/dash.js b/lib/octicons_react/src/icons/dash.js new file mode 100644 index 000000000..4abfc35ca --- /dev/null +++ b/lib/octicons_react/src/icons/dash.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Dash() { + return +} +Dash.size = [8, 16] diff --git a/lib/octicons_react/src/icons/dashboard.js b/lib/octicons_react/src/icons/dashboard.js new file mode 100644 index 000000000..3664f08d3 --- /dev/null +++ b/lib/octicons_react/src/icons/dashboard.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Dashboard() { + return +} +Dashboard.size = [16, 16] diff --git a/lib/octicons_react/src/icons/database.js b/lib/octicons_react/src/icons/database.js new file mode 100644 index 000000000..13ccad9d5 --- /dev/null +++ b/lib/octicons_react/src/icons/database.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Database() { + return +} +Database.size = [12, 16] diff --git a/lib/octicons_react/src/icons/desktop-download.js b/lib/octicons_react/src/icons/desktop-download.js new file mode 100644 index 000000000..2e5570bed --- /dev/null +++ b/lib/octicons_react/src/icons/desktop-download.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function DesktopDownload() { + return +} +DesktopDownload.size = [16, 16] diff --git a/lib/octicons_react/src/icons/device-camera-video.js b/lib/octicons_react/src/icons/device-camera-video.js new file mode 100644 index 000000000..dc0dcf775 --- /dev/null +++ b/lib/octicons_react/src/icons/device-camera-video.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function DeviceCameraVideo() { + return +} +DeviceCameraVideo.size = [16, 16] diff --git a/lib/octicons_react/src/icons/device-camera.js b/lib/octicons_react/src/icons/device-camera.js new file mode 100644 index 000000000..453ffd8c5 --- /dev/null +++ b/lib/octicons_react/src/icons/device-camera.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function DeviceCamera() { + return +} +DeviceCamera.size = [16, 16] diff --git a/lib/octicons_react/src/icons/device-desktop.js b/lib/octicons_react/src/icons/device-desktop.js new file mode 100644 index 000000000..692d01a08 --- /dev/null +++ b/lib/octicons_react/src/icons/device-desktop.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function DeviceDesktop() { + return +} +DeviceDesktop.size = [16, 16] diff --git a/lib/octicons_react/src/icons/device-mobile.js b/lib/octicons_react/src/icons/device-mobile.js new file mode 100644 index 000000000..f258aa178 --- /dev/null +++ b/lib/octicons_react/src/icons/device-mobile.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function DeviceMobile() { + return +} +DeviceMobile.size = [10, 16] diff --git a/lib/octicons_react/src/icons/diff-added.js b/lib/octicons_react/src/icons/diff-added.js new file mode 100644 index 000000000..03b19b415 --- /dev/null +++ b/lib/octicons_react/src/icons/diff-added.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function DiffAdded() { + return +} +DiffAdded.size = [14, 16] diff --git a/lib/octicons_react/src/icons/diff-ignored.js b/lib/octicons_react/src/icons/diff-ignored.js new file mode 100644 index 000000000..6bedea651 --- /dev/null +++ b/lib/octicons_react/src/icons/diff-ignored.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function DiffIgnored() { + return +} +DiffIgnored.size = [14, 16] diff --git a/lib/octicons_react/src/icons/diff-modified.js b/lib/octicons_react/src/icons/diff-modified.js new file mode 100644 index 000000000..0b1eb9f67 --- /dev/null +++ b/lib/octicons_react/src/icons/diff-modified.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function DiffModified() { + return +} +DiffModified.size = [14, 16] diff --git a/lib/octicons_react/src/icons/diff-removed.js b/lib/octicons_react/src/icons/diff-removed.js new file mode 100644 index 000000000..e914be2c9 --- /dev/null +++ b/lib/octicons_react/src/icons/diff-removed.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function DiffRemoved() { + return +} +DiffRemoved.size = [14, 16] diff --git a/lib/octicons_react/src/icons/diff-renamed.js b/lib/octicons_react/src/icons/diff-renamed.js new file mode 100644 index 000000000..37e5bd2cc --- /dev/null +++ b/lib/octicons_react/src/icons/diff-renamed.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function DiffRenamed() { + return +} +DiffRenamed.size = [14, 16] diff --git a/lib/octicons_react/src/icons/diff.js b/lib/octicons_react/src/icons/diff.js new file mode 100644 index 000000000..8b18b44c2 --- /dev/null +++ b/lib/octicons_react/src/icons/diff.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Diff() { + return +} +Diff.size = [13, 16] diff --git a/lib/octicons_react/src/icons/ellipsis.js b/lib/octicons_react/src/icons/ellipsis.js new file mode 100644 index 000000000..fbf41dfcf --- /dev/null +++ b/lib/octicons_react/src/icons/ellipsis.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Ellipsis() { + return +} +Ellipsis.size = [12, 16] diff --git a/lib/octicons_react/src/icons/eye.js b/lib/octicons_react/src/icons/eye.js new file mode 100644 index 000000000..654a297ac --- /dev/null +++ b/lib/octicons_react/src/icons/eye.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Eye() { + return +} +Eye.size = [16, 16] diff --git a/lib/octicons_react/src/icons/file-binary.js b/lib/octicons_react/src/icons/file-binary.js new file mode 100644 index 000000000..a3f4b6da8 --- /dev/null +++ b/lib/octicons_react/src/icons/file-binary.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function FileBinary() { + return +} +FileBinary.size = [12, 16] diff --git a/lib/octicons_react/src/icons/file-code.js b/lib/octicons_react/src/icons/file-code.js new file mode 100644 index 000000000..e49974203 --- /dev/null +++ b/lib/octicons_react/src/icons/file-code.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function FileCode() { + return +} +FileCode.size = [12, 16] diff --git a/lib/octicons_react/src/icons/file-directory.js b/lib/octicons_react/src/icons/file-directory.js new file mode 100644 index 000000000..e7106c8f4 --- /dev/null +++ b/lib/octicons_react/src/icons/file-directory.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function FileDirectory() { + return +} +FileDirectory.size = [14, 16] diff --git a/lib/octicons_react/src/icons/file-media.js b/lib/octicons_react/src/icons/file-media.js new file mode 100644 index 000000000..4f3899eee --- /dev/null +++ b/lib/octicons_react/src/icons/file-media.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function FileMedia() { + return +} +FileMedia.size = [12, 16] diff --git a/lib/octicons_react/src/icons/file-pdf.js b/lib/octicons_react/src/icons/file-pdf.js new file mode 100644 index 000000000..8b3413540 --- /dev/null +++ b/lib/octicons_react/src/icons/file-pdf.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function FilePdf() { + return +} +FilePdf.size = [12, 16] diff --git a/lib/octicons_react/src/icons/file-submodule.js b/lib/octicons_react/src/icons/file-submodule.js new file mode 100644 index 000000000..a046419be --- /dev/null +++ b/lib/octicons_react/src/icons/file-submodule.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function FileSubmodule() { + return +} +FileSubmodule.size = [14, 16] diff --git a/lib/octicons_react/src/icons/file-symlink-directory.js b/lib/octicons_react/src/icons/file-symlink-directory.js new file mode 100644 index 000000000..a46a0de36 --- /dev/null +++ b/lib/octicons_react/src/icons/file-symlink-directory.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function FileSymlinkDirectory() { + return +} +FileSymlinkDirectory.size = [14, 16] diff --git a/lib/octicons_react/src/icons/file-symlink-file.js b/lib/octicons_react/src/icons/file-symlink-file.js new file mode 100644 index 000000000..6615115cf --- /dev/null +++ b/lib/octicons_react/src/icons/file-symlink-file.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function FileSymlinkFile() { + return +} +FileSymlinkFile.size = [12, 16] diff --git a/lib/octicons_react/src/icons/file-zip.js b/lib/octicons_react/src/icons/file-zip.js new file mode 100644 index 000000000..a1e23b1d2 --- /dev/null +++ b/lib/octicons_react/src/icons/file-zip.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function FileZip() { + return +} +FileZip.size = [12, 16] diff --git a/lib/octicons_react/src/icons/file.js b/lib/octicons_react/src/icons/file.js new file mode 100644 index 000000000..230088fea --- /dev/null +++ b/lib/octicons_react/src/icons/file.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function File() { + return +} +File.size = [12, 16] diff --git a/lib/octicons_react/src/icons/flame.js b/lib/octicons_react/src/icons/flame.js new file mode 100644 index 000000000..5149d83e8 --- /dev/null +++ b/lib/octicons_react/src/icons/flame.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Flame() { + return +} +Flame.size = [12, 16] diff --git a/lib/octicons_react/src/icons/fold.js b/lib/octicons_react/src/icons/fold.js new file mode 100644 index 000000000..c4ed96b80 --- /dev/null +++ b/lib/octicons_react/src/icons/fold.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Fold() { + return +} +Fold.size = [14, 16] diff --git a/lib/octicons_react/src/icons/gear.js b/lib/octicons_react/src/icons/gear.js new file mode 100644 index 000000000..f46ed6b76 --- /dev/null +++ b/lib/octicons_react/src/icons/gear.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Gear() { + return +} +Gear.size = [14, 16] diff --git a/lib/octicons_react/src/icons/gift.js b/lib/octicons_react/src/icons/gift.js new file mode 100644 index 000000000..42483f168 --- /dev/null +++ b/lib/octicons_react/src/icons/gift.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Gift() { + return +} +Gift.size = [14, 16] diff --git a/lib/octicons_react/src/icons/gist-secret.js b/lib/octicons_react/src/icons/gist-secret.js new file mode 100644 index 000000000..2d31e6475 --- /dev/null +++ b/lib/octicons_react/src/icons/gist-secret.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function GistSecret() { + return +} +GistSecret.size = [14, 16] diff --git a/lib/octicons_react/src/icons/gist.js b/lib/octicons_react/src/icons/gist.js new file mode 100644 index 000000000..34da17054 --- /dev/null +++ b/lib/octicons_react/src/icons/gist.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Gist() { + return +} +Gist.size = [12, 16] diff --git a/lib/octicons_react/src/icons/git-branch.js b/lib/octicons_react/src/icons/git-branch.js new file mode 100644 index 000000000..f06f1b3b8 --- /dev/null +++ b/lib/octicons_react/src/icons/git-branch.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function GitBranch() { + return +} +GitBranch.size = [10, 16] diff --git a/lib/octicons_react/src/icons/git-commit.js b/lib/octicons_react/src/icons/git-commit.js new file mode 100644 index 000000000..69c5d927d --- /dev/null +++ b/lib/octicons_react/src/icons/git-commit.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function GitCommit() { + return +} +GitCommit.size = [14, 16] diff --git a/lib/octicons_react/src/icons/git-compare.js b/lib/octicons_react/src/icons/git-compare.js new file mode 100644 index 000000000..cd764b2bd --- /dev/null +++ b/lib/octicons_react/src/icons/git-compare.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function GitCompare() { + return +} +GitCompare.size = [14, 16] diff --git a/lib/octicons_react/src/icons/git-merge.js b/lib/octicons_react/src/icons/git-merge.js new file mode 100644 index 000000000..1c9465b5a --- /dev/null +++ b/lib/octicons_react/src/icons/git-merge.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function GitMerge() { + return +} +GitMerge.size = [12, 16] diff --git a/lib/octicons_react/src/icons/git-pull-request.js b/lib/octicons_react/src/icons/git-pull-request.js new file mode 100644 index 000000000..2ae310fe3 --- /dev/null +++ b/lib/octicons_react/src/icons/git-pull-request.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function GitPullRequest() { + return +} +GitPullRequest.size = [12, 16] diff --git a/lib/octicons_react/src/icons/globe.js b/lib/octicons_react/src/icons/globe.js new file mode 100644 index 000000000..d1a1b304c --- /dev/null +++ b/lib/octicons_react/src/icons/globe.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Globe() { + return +} +Globe.size = [14, 16] diff --git a/lib/octicons_react/src/icons/grabber.js b/lib/octicons_react/src/icons/grabber.js new file mode 100644 index 000000000..1092ec941 --- /dev/null +++ b/lib/octicons_react/src/icons/grabber.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Grabber() { + return +} +Grabber.size = [8, 16] diff --git a/lib/octicons_react/src/icons/graph.js b/lib/octicons_react/src/icons/graph.js new file mode 100644 index 000000000..8c261c0ee --- /dev/null +++ b/lib/octicons_react/src/icons/graph.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Graph() { + return +} +Graph.size = [16, 16] diff --git a/lib/octicons_react/src/icons/heart.js b/lib/octicons_react/src/icons/heart.js new file mode 100644 index 000000000..46122d158 --- /dev/null +++ b/lib/octicons_react/src/icons/heart.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Heart() { + return +} +Heart.size = [12, 16] diff --git a/lib/octicons_react/src/icons/history.js b/lib/octicons_react/src/icons/history.js new file mode 100644 index 000000000..1446a92c6 --- /dev/null +++ b/lib/octicons_react/src/icons/history.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function History() { + return +} +History.size = [14, 16] diff --git a/lib/octicons_react/src/icons/home.js b/lib/octicons_react/src/icons/home.js new file mode 100644 index 000000000..ca522b41d --- /dev/null +++ b/lib/octicons_react/src/icons/home.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Home() { + return +} +Home.size = [16, 16] diff --git a/lib/octicons_react/src/icons/horizontal-rule.js b/lib/octicons_react/src/icons/horizontal-rule.js new file mode 100644 index 000000000..0a9601dca --- /dev/null +++ b/lib/octicons_react/src/icons/horizontal-rule.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function HorizontalRule() { + return +} +HorizontalRule.size = [10, 16] diff --git a/lib/octicons_react/src/icons/hubot.js b/lib/octicons_react/src/icons/hubot.js new file mode 100644 index 000000000..5cd600dfb --- /dev/null +++ b/lib/octicons_react/src/icons/hubot.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Hubot() { + return +} +Hubot.size = [14, 16] diff --git a/lib/octicons_react/src/icons/inbox.js b/lib/octicons_react/src/icons/inbox.js new file mode 100644 index 000000000..dd4e332d1 --- /dev/null +++ b/lib/octicons_react/src/icons/inbox.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Inbox() { + return +} +Inbox.size = [14, 16] diff --git a/lib/octicons_react/src/icons/index.js b/lib/octicons_react/src/icons/index.js new file mode 100644 index 000000000..e64f39bd7 --- /dev/null +++ b/lib/octicons_react/src/icons/index.js @@ -0,0 +1,541 @@ +/* THIS FILE IS GENERATED. DO NOT EDIT IT. */ +import {default as Alert} from './alert' +import {default as ArrowDown} from './arrow-down' +import {default as ArrowLeft} from './arrow-left' +import {default as ArrowRight} from './arrow-right' +import {default as ArrowSmallDown} from './arrow-small-down' +import {default as ArrowSmallLeft} from './arrow-small-left' +import {default as ArrowSmallRight} from './arrow-small-right' +import {default as ArrowSmallUp} from './arrow-small-up' +import {default as ArrowUp} from './arrow-up' +import {default as Beaker} from './beaker' +import {default as Bell} from './bell' +import {default as Bold} from './bold' +import {default as Book} from './book' +import {default as Bookmark} from './bookmark' +import {default as Briefcase} from './briefcase' +import {default as Broadcast} from './broadcast' +import {default as Browser} from './browser' +import {default as Bug} from './bug' +import {default as Calendar} from './calendar' +import {default as Check} from './check' +import {default as Checklist} from './checklist' +import {default as ChevronDown} from './chevron-down' +import {default as ChevronLeft} from './chevron-left' +import {default as ChevronRight} from './chevron-right' +import {default as ChevronUp} from './chevron-up' +import {default as CircleSlash} from './circle-slash' +import {default as CircuitBoard} from './circuit-board' +import {default as Clippy} from './clippy' +import {default as Clock} from './clock' +import {default as CloudDownload} from './cloud-download' +import {default as CloudUpload} from './cloud-upload' +import {default as Code} from './code' +import {default as Comment} from './comment' +import {default as CommentDiscussion} from './comment-discussion' +import {default as CreditCard} from './credit-card' +import {default as Dash} from './dash' +import {default as Dashboard} from './dashboard' +import {default as Database} from './database' +import {default as DesktopDownload} from './desktop-download' +import {default as DeviceCamera} from './device-camera' +import {default as DeviceCameraVideo} from './device-camera-video' +import {default as DeviceDesktop} from './device-desktop' +import {default as DeviceMobile} from './device-mobile' +import {default as Diff} from './diff' +import {default as DiffAdded} from './diff-added' +import {default as DiffIgnored} from './diff-ignored' +import {default as DiffModified} from './diff-modified' +import {default as DiffRemoved} from './diff-removed' +import {default as DiffRenamed} from './diff-renamed' +import {default as Ellipsis} from './ellipsis' +import {default as Eye} from './eye' +import {default as File} from './file' +import {default as FileBinary} from './file-binary' +import {default as FileCode} from './file-code' +import {default as FileDirectory} from './file-directory' +import {default as FileMedia} from './file-media' +import {default as FilePdf} from './file-pdf' +import {default as FileSubmodule} from './file-submodule' +import {default as FileSymlinkDirectory} from './file-symlink-directory' +import {default as FileSymlinkFile} from './file-symlink-file' +import {default as FileZip} from './file-zip' +import {default as Flame} from './flame' +import {default as Fold} from './fold' +import {default as Gear} from './gear' +import {default as Gift} from './gift' +import {default as Gist} from './gist' +import {default as GistSecret} from './gist-secret' +import {default as GitBranch} from './git-branch' +import {default as GitCommit} from './git-commit' +import {default as GitCompare} from './git-compare' +import {default as GitMerge} from './git-merge' +import {default as GitPullRequest} from './git-pull-request' +import {default as Globe} from './globe' +import {default as Grabber} from './grabber' +import {default as Graph} from './graph' +import {default as Heart} from './heart' +import {default as History} from './history' +import {default as Home} from './home' +import {default as HorizontalRule} from './horizontal-rule' +import {default as Hubot} from './hubot' +import {default as Inbox} from './inbox' +import {default as Info} from './info' +import {default as IssueClosed} from './issue-closed' +import {default as IssueOpened} from './issue-opened' +import {default as IssueReopened} from './issue-reopened' +import {default as Italic} from './italic' +import {default as Jersey} from './jersey' +import {default as KebabHorizontal} from './kebab-horizontal' +import {default as KebabVertical} from './kebab-vertical' +import {default as Key} from './key' +import {default as Keyboard} from './keyboard' +import {default as Law} from './law' +import {default as LightBulb} from './light-bulb' +import {default as Link} from './link' +import {default as LinkExternal} from './link-external' +import {default as ListOrdered} from './list-ordered' +import {default as ListUnordered} from './list-unordered' +import {default as Location} from './location' +import {default as Lock} from './lock' +import {default as LogoGist} from './logo-gist' +import {default as LogoGithub} from './logo-github' +import {default as Mail} from './mail' +import {default as MailRead} from './mail-read' +import {default as MarkGithub} from './mark-github' +import {default as Markdown} from './markdown' +import {default as Megaphone} from './megaphone' +import {default as Mention} from './mention' +import {default as Milestone} from './milestone' +import {default as Mirror} from './mirror' +import {default as MortarBoard} from './mortar-board' +import {default as Mute} from './mute' +import {default as NoNewline} from './no-newline' +import {default as Note} from './note' +import {default as Octoface} from './octoface' +import {default as Organization} from './organization' +import {default as Package} from './package' +import {default as Paintcan} from './paintcan' +import {default as Pencil} from './pencil' +import {default as Person} from './person' +import {default as Pin} from './pin' +import {default as Plug} from './plug' +import {default as Plus} from './plus' +import {default as PlusSmall} from './plus-small' +import {default as PrimitiveDot} from './primitive-dot' +import {default as PrimitiveSquare} from './primitive-square' +import {default as Project} from './project' +import {default as Pulse} from './pulse' +import {default as Question} from './question' +import {default as Quote} from './quote' +import {default as RadioTower} from './radio-tower' +import {default as Reply} from './reply' +import {default as Repo} from './repo' +import {default as RepoClone} from './repo-clone' +import {default as RepoForcePush} from './repo-force-push' +import {default as RepoForked} from './repo-forked' +import {default as RepoPull} from './repo-pull' +import {default as RepoPush} from './repo-push' +import {default as Report} from './report' +import {default as Rocket} from './rocket' +import {default as Rss} from './rss' +import {default as Ruby} from './ruby' +import {default as ScreenFull} from './screen-full' +import {default as ScreenNormal} from './screen-normal' +import {default as Search} from './search' +import {default as Server} from './server' +import {default as Settings} from './settings' +import {default as Shield} from './shield' +import {default as SignIn} from './sign-in' +import {default as SignOut} from './sign-out' +import {default as Smiley} from './smiley' +import {default as Squirrel} from './squirrel' +import {default as Star} from './star' +import {default as Stop} from './stop' +import {default as Sync} from './sync' +import {default as Tag} from './tag' +import {default as Tasklist} from './tasklist' +import {default as Telescope} from './telescope' +import {default as Terminal} from './terminal' +import {default as TextSize} from './text-size' +import {default as ThreeBars} from './three-bars' +import {default as Thumbsdown} from './thumbsdown' +import {default as Thumbsup} from './thumbsup' +import {default as Tools} from './tools' +import {default as Trashcan} from './trashcan' +import {default as TriangleDown} from './triangle-down' +import {default as TriangleLeft} from './triangle-left' +import {default as TriangleRight} from './triangle-right' +import {default as TriangleUp} from './triangle-up' +import {default as Unfold} from './unfold' +import {default as Unmute} from './unmute' +import {default as Unverified} from './unverified' +import {default as Verified} from './verified' +import {default as Versions} from './versions' +import {default as Watch} from './watch' +import {default as X} from './x' +import {default as Zap} from './zap' + +const iconsByName = { + 'alert': Alert, + 'arrow-down': ArrowDown, + 'arrow-left': ArrowLeft, + 'arrow-right': ArrowRight, + 'arrow-small-down': ArrowSmallDown, + 'arrow-small-left': ArrowSmallLeft, + 'arrow-small-right': ArrowSmallRight, + 'arrow-small-up': ArrowSmallUp, + 'arrow-up': ArrowUp, + 'beaker': Beaker, + 'bell': Bell, + 'bold': Bold, + 'book': Book, + 'bookmark': Bookmark, + 'briefcase': Briefcase, + 'broadcast': Broadcast, + 'browser': Browser, + 'bug': Bug, + 'calendar': Calendar, + 'check': Check, + 'checklist': Checklist, + 'chevron-down': ChevronDown, + 'chevron-left': ChevronLeft, + 'chevron-right': ChevronRight, + 'chevron-up': ChevronUp, + 'circle-slash': CircleSlash, + 'circuit-board': CircuitBoard, + 'clippy': Clippy, + 'clock': Clock, + 'cloud-download': CloudDownload, + 'cloud-upload': CloudUpload, + 'code': Code, + 'comment': Comment, + 'comment-discussion': CommentDiscussion, + 'credit-card': CreditCard, + 'dash': Dash, + 'dashboard': Dashboard, + 'database': Database, + 'desktop-download': DesktopDownload, + 'device-camera': DeviceCamera, + 'device-camera-video': DeviceCameraVideo, + 'device-desktop': DeviceDesktop, + 'device-mobile': DeviceMobile, + 'diff': Diff, + 'diff-added': DiffAdded, + 'diff-ignored': DiffIgnored, + 'diff-modified': DiffModified, + 'diff-removed': DiffRemoved, + 'diff-renamed': DiffRenamed, + 'ellipsis': Ellipsis, + 'eye': Eye, + 'file': File, + 'file-binary': FileBinary, + 'file-code': FileCode, + 'file-directory': FileDirectory, + 'file-media': FileMedia, + 'file-pdf': FilePdf, + 'file-submodule': FileSubmodule, + 'file-symlink-directory': FileSymlinkDirectory, + 'file-symlink-file': FileSymlinkFile, + 'file-zip': FileZip, + 'flame': Flame, + 'fold': Fold, + 'gear': Gear, + 'gift': Gift, + 'gist': Gist, + 'gist-secret': GistSecret, + 'git-branch': GitBranch, + 'git-commit': GitCommit, + 'git-compare': GitCompare, + 'git-merge': GitMerge, + 'git-pull-request': GitPullRequest, + 'globe': Globe, + 'grabber': Grabber, + 'graph': Graph, + 'heart': Heart, + 'history': History, + 'home': Home, + 'horizontal-rule': HorizontalRule, + 'hubot': Hubot, + 'inbox': Inbox, + 'info': Info, + 'issue-closed': IssueClosed, + 'issue-opened': IssueOpened, + 'issue-reopened': IssueReopened, + 'italic': Italic, + 'jersey': Jersey, + 'kebab-horizontal': KebabHorizontal, + 'kebab-vertical': KebabVertical, + 'key': Key, + 'keyboard': Keyboard, + 'law': Law, + 'light-bulb': LightBulb, + 'link': Link, + 'link-external': LinkExternal, + 'list-ordered': ListOrdered, + 'list-unordered': ListUnordered, + 'location': Location, + 'lock': Lock, + 'logo-gist': LogoGist, + 'logo-github': LogoGithub, + 'mail': Mail, + 'mail-read': MailRead, + 'mark-github': MarkGithub, + 'markdown': Markdown, + 'megaphone': Megaphone, + 'mention': Mention, + 'milestone': Milestone, + 'mirror': Mirror, + 'mortar-board': MortarBoard, + 'mute': Mute, + 'no-newline': NoNewline, + 'note': Note, + 'octoface': Octoface, + 'organization': Organization, + 'package': Package, + 'paintcan': Paintcan, + 'pencil': Pencil, + 'person': Person, + 'pin': Pin, + 'plug': Plug, + 'plus': Plus, + 'plus-small': PlusSmall, + 'primitive-dot': PrimitiveDot, + 'primitive-square': PrimitiveSquare, + 'project': Project, + 'pulse': Pulse, + 'question': Question, + 'quote': Quote, + 'radio-tower': RadioTower, + 'reply': Reply, + 'repo': Repo, + 'repo-clone': RepoClone, + 'repo-force-push': RepoForcePush, + 'repo-forked': RepoForked, + 'repo-pull': RepoPull, + 'repo-push': RepoPush, + 'report': Report, + 'rocket': Rocket, + 'rss': Rss, + 'ruby': Ruby, + 'screen-full': ScreenFull, + 'screen-normal': ScreenNormal, + 'search': Search, + 'server': Server, + 'settings': Settings, + 'shield': Shield, + 'sign-in': SignIn, + 'sign-out': SignOut, + 'smiley': Smiley, + 'squirrel': Squirrel, + 'star': Star, + 'stop': Stop, + 'sync': Sync, + 'tag': Tag, + 'tasklist': Tasklist, + 'telescope': Telescope, + 'terminal': Terminal, + 'text-size': TextSize, + 'three-bars': ThreeBars, + 'thumbsdown': Thumbsdown, + 'thumbsup': Thumbsup, + 'tools': Tools, + 'trashcan': Trashcan, + 'triangle-down': TriangleDown, + 'triangle-left': TriangleLeft, + 'triangle-right': TriangleRight, + 'triangle-up': TriangleUp, + 'unfold': Unfold, + 'unmute': Unmute, + 'unverified': Unverified, + 'verified': Verified, + 'versions': Versions, + 'watch': Watch, + 'x': X, + 'zap': Zap +} + +function getIconByName(name) { + return iconsByName[name] +} + +export { + getIconByName, + iconsByName, + Alert, + ArrowDown, + ArrowLeft, + ArrowRight, + ArrowSmallDown, + ArrowSmallLeft, + ArrowSmallRight, + ArrowSmallUp, + ArrowUp, + Beaker, + Bell, + Bold, + Book, + Bookmark, + Briefcase, + Broadcast, + Browser, + Bug, + Calendar, + Check, + Checklist, + ChevronDown, + ChevronLeft, + ChevronRight, + ChevronUp, + CircleSlash, + CircuitBoard, + Clippy, + Clock, + CloudDownload, + CloudUpload, + Code, + Comment, + CommentDiscussion, + CreditCard, + Dash, + Dashboard, + Database, + DesktopDownload, + DeviceCamera, + DeviceCameraVideo, + DeviceDesktop, + DeviceMobile, + Diff, + DiffAdded, + DiffIgnored, + DiffModified, + DiffRemoved, + DiffRenamed, + Ellipsis, + Eye, + File, + FileBinary, + FileCode, + FileDirectory, + FileMedia, + FilePdf, + FileSubmodule, + FileSymlinkDirectory, + FileSymlinkFile, + FileZip, + Flame, + Fold, + Gear, + Gift, + Gist, + GistSecret, + GitBranch, + GitCommit, + GitCompare, + GitMerge, + GitPullRequest, + Globe, + Grabber, + Graph, + Heart, + History, + Home, + HorizontalRule, + Hubot, + Inbox, + Info, + IssueClosed, + IssueOpened, + IssueReopened, + Italic, + Jersey, + KebabHorizontal, + KebabVertical, + Key, + Keyboard, + Law, + LightBulb, + Link, + LinkExternal, + ListOrdered, + ListUnordered, + Location, + Lock, + LogoGist, + LogoGithub, + Mail, + MailRead, + MarkGithub, + Markdown, + Megaphone, + Mention, + Milestone, + Mirror, + MortarBoard, + Mute, + NoNewline, + Note, + Octoface, + Organization, + Package, + Paintcan, + Pencil, + Person, + Pin, + Plug, + Plus, + PlusSmall, + PrimitiveDot, + PrimitiveSquare, + Project, + Pulse, + Question, + Quote, + RadioTower, + Reply, + Repo, + RepoClone, + RepoForcePush, + RepoForked, + RepoPull, + RepoPush, + Report, + Rocket, + Rss, + Ruby, + ScreenFull, + ScreenNormal, + Search, + Server, + Settings, + Shield, + SignIn, + SignOut, + Smiley, + Squirrel, + Star, + Stop, + Sync, + Tag, + Tasklist, + Telescope, + Terminal, + TextSize, + ThreeBars, + Thumbsdown, + Thumbsup, + Tools, + Trashcan, + TriangleDown, + TriangleLeft, + TriangleRight, + TriangleUp, + Unfold, + Unmute, + Unverified, + Verified, + Versions, + Watch, + X, + Zap +} \ No newline at end of file diff --git a/lib/octicons_react/src/icons/info.js b/lib/octicons_react/src/icons/info.js new file mode 100644 index 000000000..b29ea587a --- /dev/null +++ b/lib/octicons_react/src/icons/info.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Info() { + return +} +Info.size = [14, 16] diff --git a/lib/octicons_react/src/icons/issue-closed.js b/lib/octicons_react/src/icons/issue-closed.js new file mode 100644 index 000000000..da40d74f3 --- /dev/null +++ b/lib/octicons_react/src/icons/issue-closed.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function IssueClosed() { + return +} +IssueClosed.size = [16, 16] diff --git a/lib/octicons_react/src/icons/issue-opened.js b/lib/octicons_react/src/icons/issue-opened.js new file mode 100644 index 000000000..1b7a5bace --- /dev/null +++ b/lib/octicons_react/src/icons/issue-opened.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function IssueOpened() { + return +} +IssueOpened.size = [14, 16] diff --git a/lib/octicons_react/src/icons/issue-reopened.js b/lib/octicons_react/src/icons/issue-reopened.js new file mode 100644 index 000000000..3d0f62892 --- /dev/null +++ b/lib/octicons_react/src/icons/issue-reopened.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function IssueReopened() { + return +} +IssueReopened.size = [14, 16] diff --git a/lib/octicons_react/src/icons/italic.js b/lib/octicons_react/src/icons/italic.js new file mode 100644 index 000000000..8a09a4529 --- /dev/null +++ b/lib/octicons_react/src/icons/italic.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Italic() { + return +} +Italic.size = [6, 16] diff --git a/lib/octicons_react/src/icons/jersey.js b/lib/octicons_react/src/icons/jersey.js new file mode 100644 index 000000000..aee2f16f5 --- /dev/null +++ b/lib/octicons_react/src/icons/jersey.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Jersey() { + return +} +Jersey.size = [14, 16] diff --git a/lib/octicons_react/src/icons/kebab-horizontal.js b/lib/octicons_react/src/icons/kebab-horizontal.js new file mode 100644 index 000000000..580d71127 --- /dev/null +++ b/lib/octicons_react/src/icons/kebab-horizontal.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function KebabHorizontal() { + return +} +KebabHorizontal.size = [13, 16] diff --git a/lib/octicons_react/src/icons/kebab-vertical.js b/lib/octicons_react/src/icons/kebab-vertical.js new file mode 100644 index 000000000..8f671046b --- /dev/null +++ b/lib/octicons_react/src/icons/kebab-vertical.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function KebabVertical() { + return +} +KebabVertical.size = [3, 16] diff --git a/lib/octicons_react/src/icons/key.js b/lib/octicons_react/src/icons/key.js new file mode 100644 index 000000000..0dbf986d1 --- /dev/null +++ b/lib/octicons_react/src/icons/key.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Key() { + return +} +Key.size = [14, 16] diff --git a/lib/octicons_react/src/icons/keyboard.js b/lib/octicons_react/src/icons/keyboard.js new file mode 100644 index 000000000..58b2b9b3d --- /dev/null +++ b/lib/octicons_react/src/icons/keyboard.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Keyboard() { + return +} +Keyboard.size = [16, 16] diff --git a/lib/octicons_react/src/icons/law.js b/lib/octicons_react/src/icons/law.js new file mode 100644 index 000000000..ebbae4e03 --- /dev/null +++ b/lib/octicons_react/src/icons/law.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Law() { + return +} +Law.size = [14, 16] diff --git a/lib/octicons_react/src/icons/light-bulb.js b/lib/octicons_react/src/icons/light-bulb.js new file mode 100644 index 000000000..db182b808 --- /dev/null +++ b/lib/octicons_react/src/icons/light-bulb.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function LightBulb() { + return +} +LightBulb.size = [12, 16] diff --git a/lib/octicons_react/src/icons/link-external.js b/lib/octicons_react/src/icons/link-external.js new file mode 100644 index 000000000..d4cf9c4bc --- /dev/null +++ b/lib/octicons_react/src/icons/link-external.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function LinkExternal() { + return +} +LinkExternal.size = [12, 16] diff --git a/lib/octicons_react/src/icons/link.js b/lib/octicons_react/src/icons/link.js new file mode 100644 index 000000000..bc013ee2d --- /dev/null +++ b/lib/octicons_react/src/icons/link.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Link() { + return +} +Link.size = [16, 16] diff --git a/lib/octicons_react/src/icons/list-ordered.js b/lib/octicons_react/src/icons/list-ordered.js new file mode 100644 index 000000000..2184b73d5 --- /dev/null +++ b/lib/octicons_react/src/icons/list-ordered.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function ListOrdered() { + return +} +ListOrdered.size = [12, 16] diff --git a/lib/octicons_react/src/icons/list-unordered.js b/lib/octicons_react/src/icons/list-unordered.js new file mode 100644 index 000000000..f8475df59 --- /dev/null +++ b/lib/octicons_react/src/icons/list-unordered.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function ListUnordered() { + return +} +ListUnordered.size = [12, 16] diff --git a/lib/octicons_react/src/icons/location.js b/lib/octicons_react/src/icons/location.js new file mode 100644 index 000000000..81f86e17f --- /dev/null +++ b/lib/octicons_react/src/icons/location.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Location() { + return +} +Location.size = [12, 16] diff --git a/lib/octicons_react/src/icons/lock.js b/lib/octicons_react/src/icons/lock.js new file mode 100644 index 000000000..1403b135a --- /dev/null +++ b/lib/octicons_react/src/icons/lock.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Lock() { + return +} +Lock.size = [12, 16] diff --git a/lib/octicons_react/src/icons/logo-gist.js b/lib/octicons_react/src/icons/logo-gist.js new file mode 100644 index 000000000..5d829e73c --- /dev/null +++ b/lib/octicons_react/src/icons/logo-gist.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function LogoGist() { + return +} +LogoGist.size = [25, 16] diff --git a/lib/octicons_react/src/icons/logo-github.js b/lib/octicons_react/src/icons/logo-github.js new file mode 100644 index 000000000..12ea8fe35 --- /dev/null +++ b/lib/octicons_react/src/icons/logo-github.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function LogoGithub() { + return +} +LogoGithub.size = [45, 16] diff --git a/lib/octicons_react/src/icons/mail-read.js b/lib/octicons_react/src/icons/mail-read.js new file mode 100644 index 000000000..94872a9be --- /dev/null +++ b/lib/octicons_react/src/icons/mail-read.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function MailRead() { + return +} +MailRead.size = [14, 16] diff --git a/lib/octicons_react/src/icons/mail.js b/lib/octicons_react/src/icons/mail.js new file mode 100644 index 000000000..83120dcd7 --- /dev/null +++ b/lib/octicons_react/src/icons/mail.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Mail() { + return +} +Mail.size = [14, 16] diff --git a/lib/octicons_react/src/icons/mark-github.js b/lib/octicons_react/src/icons/mark-github.js new file mode 100644 index 000000000..6668c8f17 --- /dev/null +++ b/lib/octicons_react/src/icons/mark-github.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function MarkGithub() { + return +} +MarkGithub.size = [16, 16] diff --git a/lib/octicons_react/src/icons/markdown.js b/lib/octicons_react/src/icons/markdown.js new file mode 100644 index 000000000..e483a58a9 --- /dev/null +++ b/lib/octicons_react/src/icons/markdown.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Markdown() { + return +} +Markdown.size = [16, 16] diff --git a/lib/octicons_react/src/icons/megaphone.js b/lib/octicons_react/src/icons/megaphone.js new file mode 100644 index 000000000..bc40997b0 --- /dev/null +++ b/lib/octicons_react/src/icons/megaphone.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Megaphone() { + return +} +Megaphone.size = [16, 16] diff --git a/lib/octicons_react/src/icons/mention.js b/lib/octicons_react/src/icons/mention.js new file mode 100644 index 000000000..8aef19180 --- /dev/null +++ b/lib/octicons_react/src/icons/mention.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Mention() { + return +} +Mention.size = [14, 16] diff --git a/lib/octicons_react/src/icons/milestone.js b/lib/octicons_react/src/icons/milestone.js new file mode 100644 index 000000000..50e939fc4 --- /dev/null +++ b/lib/octicons_react/src/icons/milestone.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Milestone() { + return +} +Milestone.size = [14, 16] diff --git a/lib/octicons_react/src/icons/mirror.js b/lib/octicons_react/src/icons/mirror.js new file mode 100644 index 000000000..6f9498894 --- /dev/null +++ b/lib/octicons_react/src/icons/mirror.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Mirror() { + return +} +Mirror.size = [16, 16] diff --git a/lib/octicons_react/src/icons/mortar-board.js b/lib/octicons_react/src/icons/mortar-board.js new file mode 100644 index 000000000..70bf2ef9b --- /dev/null +++ b/lib/octicons_react/src/icons/mortar-board.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function MortarBoard() { + return +} +MortarBoard.size = [16, 16] diff --git a/lib/octicons_react/src/icons/mute.js b/lib/octicons_react/src/icons/mute.js new file mode 100644 index 000000000..bbc46c242 --- /dev/null +++ b/lib/octicons_react/src/icons/mute.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Mute() { + return +} +Mute.size = [16, 16] diff --git a/lib/octicons_react/src/icons/no-newline.js b/lib/octicons_react/src/icons/no-newline.js new file mode 100644 index 000000000..c92f7a498 --- /dev/null +++ b/lib/octicons_react/src/icons/no-newline.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function NoNewline() { + return +} +NoNewline.size = [16, 16] diff --git a/lib/octicons_react/src/icons/note.js b/lib/octicons_react/src/icons/note.js new file mode 100644 index 000000000..70a370a71 --- /dev/null +++ b/lib/octicons_react/src/icons/note.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Note() { + return +} +Note.size = [14, 16] diff --git a/lib/octicons_react/src/icons/octoface.js b/lib/octicons_react/src/icons/octoface.js new file mode 100644 index 000000000..9ac6cb61f --- /dev/null +++ b/lib/octicons_react/src/icons/octoface.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Octoface() { + return +} +Octoface.size = [16, 16] diff --git a/lib/octicons_react/src/icons/organization.js b/lib/octicons_react/src/icons/organization.js new file mode 100644 index 000000000..6c45abb4b --- /dev/null +++ b/lib/octicons_react/src/icons/organization.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Organization() { + return +} +Organization.size = [16, 16] diff --git a/lib/octicons_react/src/icons/package.js b/lib/octicons_react/src/icons/package.js new file mode 100644 index 000000000..587546f10 --- /dev/null +++ b/lib/octicons_react/src/icons/package.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Package() { + return +} +Package.size = [16, 16] diff --git a/lib/octicons_react/src/icons/paintcan.js b/lib/octicons_react/src/icons/paintcan.js new file mode 100644 index 000000000..15e9d2658 --- /dev/null +++ b/lib/octicons_react/src/icons/paintcan.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Paintcan() { + return +} +Paintcan.size = [12, 16] diff --git a/lib/octicons_react/src/icons/pencil.js b/lib/octicons_react/src/icons/pencil.js new file mode 100644 index 000000000..d3c99cd2b --- /dev/null +++ b/lib/octicons_react/src/icons/pencil.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Pencil() { + return +} +Pencil.size = [14, 16] diff --git a/lib/octicons_react/src/icons/person.js b/lib/octicons_react/src/icons/person.js new file mode 100644 index 000000000..97f5cb7af --- /dev/null +++ b/lib/octicons_react/src/icons/person.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Person() { + return +} +Person.size = [12, 16] diff --git a/lib/octicons_react/src/icons/pin.js b/lib/octicons_react/src/icons/pin.js new file mode 100644 index 000000000..3b2a20c94 --- /dev/null +++ b/lib/octicons_react/src/icons/pin.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Pin() { + return +} +Pin.size = [16, 16] diff --git a/lib/octicons_react/src/icons/plug.js b/lib/octicons_react/src/icons/plug.js new file mode 100644 index 000000000..0edae3ebb --- /dev/null +++ b/lib/octicons_react/src/icons/plug.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Plug() { + return +} +Plug.size = [14, 16] diff --git a/lib/octicons_react/src/icons/plus-small.js b/lib/octicons_react/src/icons/plus-small.js new file mode 100644 index 000000000..d12158521 --- /dev/null +++ b/lib/octicons_react/src/icons/plus-small.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function PlusSmall() { + return +} +PlusSmall.size = [7, 16] diff --git a/lib/octicons_react/src/icons/plus.js b/lib/octicons_react/src/icons/plus.js new file mode 100644 index 000000000..4156950c0 --- /dev/null +++ b/lib/octicons_react/src/icons/plus.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Plus() { + return +} +Plus.size = [12, 16] diff --git a/lib/octicons_react/src/icons/primitive-dot.js b/lib/octicons_react/src/icons/primitive-dot.js new file mode 100644 index 000000000..074a54b0a --- /dev/null +++ b/lib/octicons_react/src/icons/primitive-dot.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function PrimitiveDot() { + return +} +PrimitiveDot.size = [8, 16] diff --git a/lib/octicons_react/src/icons/primitive-square.js b/lib/octicons_react/src/icons/primitive-square.js new file mode 100644 index 000000000..dd0ec3c4c --- /dev/null +++ b/lib/octicons_react/src/icons/primitive-square.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function PrimitiveSquare() { + return +} +PrimitiveSquare.size = [8, 16] diff --git a/lib/octicons_react/src/icons/project.js b/lib/octicons_react/src/icons/project.js new file mode 100644 index 000000000..50aa19e7f --- /dev/null +++ b/lib/octicons_react/src/icons/project.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Project() { + return +} +Project.size = [15, 16] diff --git a/lib/octicons_react/src/icons/pulse.js b/lib/octicons_react/src/icons/pulse.js new file mode 100644 index 000000000..a8acc1858 --- /dev/null +++ b/lib/octicons_react/src/icons/pulse.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Pulse() { + return +} +Pulse.size = [14, 16] diff --git a/lib/octicons_react/src/icons/question.js b/lib/octicons_react/src/icons/question.js new file mode 100644 index 000000000..7c6b88b89 --- /dev/null +++ b/lib/octicons_react/src/icons/question.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Question() { + return +} +Question.size = [14, 16] diff --git a/lib/octicons_react/src/icons/quote.js b/lib/octicons_react/src/icons/quote.js new file mode 100644 index 000000000..480b41e8a --- /dev/null +++ b/lib/octicons_react/src/icons/quote.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Quote() { + return +} +Quote.size = [14, 16] diff --git a/lib/octicons_react/src/icons/radio-tower.js b/lib/octicons_react/src/icons/radio-tower.js new file mode 100644 index 000000000..8f5a05060 --- /dev/null +++ b/lib/octicons_react/src/icons/radio-tower.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function RadioTower() { + return +} +RadioTower.size = [16, 16] diff --git a/lib/octicons_react/src/icons/reply.js b/lib/octicons_react/src/icons/reply.js new file mode 100644 index 000000000..8fb8274c9 --- /dev/null +++ b/lib/octicons_react/src/icons/reply.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Reply() { + return +} +Reply.size = [14, 16] diff --git a/lib/octicons_react/src/icons/repo-clone.js b/lib/octicons_react/src/icons/repo-clone.js new file mode 100644 index 000000000..f2efe36b7 --- /dev/null +++ b/lib/octicons_react/src/icons/repo-clone.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function RepoClone() { + return +} +RepoClone.size = [16, 16] diff --git a/lib/octicons_react/src/icons/repo-force-push.js b/lib/octicons_react/src/icons/repo-force-push.js new file mode 100644 index 000000000..f520f8d95 --- /dev/null +++ b/lib/octicons_react/src/icons/repo-force-push.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function RepoForcePush() { + return +} +RepoForcePush.size = [12, 16] diff --git a/lib/octicons_react/src/icons/repo-forked.js b/lib/octicons_react/src/icons/repo-forked.js new file mode 100644 index 000000000..07d1a685f --- /dev/null +++ b/lib/octicons_react/src/icons/repo-forked.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function RepoForked() { + return +} +RepoForked.size = [10, 16] diff --git a/lib/octicons_react/src/icons/repo-pull.js b/lib/octicons_react/src/icons/repo-pull.js new file mode 100644 index 000000000..d66167948 --- /dev/null +++ b/lib/octicons_react/src/icons/repo-pull.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function RepoPull() { + return +} +RepoPull.size = [16, 16] diff --git a/lib/octicons_react/src/icons/repo-push.js b/lib/octicons_react/src/icons/repo-push.js new file mode 100644 index 000000000..3751f5ea0 --- /dev/null +++ b/lib/octicons_react/src/icons/repo-push.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function RepoPush() { + return +} +RepoPush.size = [12, 16] diff --git a/lib/octicons_react/src/icons/repo.js b/lib/octicons_react/src/icons/repo.js new file mode 100644 index 000000000..c93a40730 --- /dev/null +++ b/lib/octicons_react/src/icons/repo.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Repo() { + return +} +Repo.size = [12, 16] diff --git a/lib/octicons_react/src/icons/report.js b/lib/octicons_react/src/icons/report.js new file mode 100644 index 000000000..5987aada4 --- /dev/null +++ b/lib/octicons_react/src/icons/report.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Report() { + return +} +Report.size = [16, 16] diff --git a/lib/octicons_react/src/icons/rocket.js b/lib/octicons_react/src/icons/rocket.js new file mode 100644 index 000000000..55f81b0d2 --- /dev/null +++ b/lib/octicons_react/src/icons/rocket.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Rocket() { + return +} +Rocket.size = [16, 16] diff --git a/lib/octicons_react/src/icons/rss.js b/lib/octicons_react/src/icons/rss.js new file mode 100644 index 000000000..6ca3650c6 --- /dev/null +++ b/lib/octicons_react/src/icons/rss.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Rss() { + return +} +Rss.size = [10, 16] diff --git a/lib/octicons_react/src/icons/ruby.js b/lib/octicons_react/src/icons/ruby.js new file mode 100644 index 000000000..f2f221bc5 --- /dev/null +++ b/lib/octicons_react/src/icons/ruby.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Ruby() { + return +} +Ruby.size = [16, 16] diff --git a/lib/octicons_react/src/icons/screen-full.js b/lib/octicons_react/src/icons/screen-full.js new file mode 100644 index 000000000..24d07ee23 --- /dev/null +++ b/lib/octicons_react/src/icons/screen-full.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function ScreenFull() { + return +} +ScreenFull.size = [14, 16] diff --git a/lib/octicons_react/src/icons/screen-normal.js b/lib/octicons_react/src/icons/screen-normal.js new file mode 100644 index 000000000..e3e3e314e --- /dev/null +++ b/lib/octicons_react/src/icons/screen-normal.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function ScreenNormal() { + return +} +ScreenNormal.size = [14, 16] diff --git a/lib/octicons_react/src/icons/search.js b/lib/octicons_react/src/icons/search.js new file mode 100644 index 000000000..b5e9343e7 --- /dev/null +++ b/lib/octicons_react/src/icons/search.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Search() { + return +} +Search.size = [16, 16] diff --git a/lib/octicons_react/src/icons/server.js b/lib/octicons_react/src/icons/server.js new file mode 100644 index 000000000..4e08d0f6d --- /dev/null +++ b/lib/octicons_react/src/icons/server.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Server() { + return +} +Server.size = [12, 16] diff --git a/lib/octicons_react/src/icons/settings.js b/lib/octicons_react/src/icons/settings.js new file mode 100644 index 000000000..353c70e35 --- /dev/null +++ b/lib/octicons_react/src/icons/settings.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Settings() { + return +} +Settings.size = [16, 16] diff --git a/lib/octicons_react/src/icons/shield.js b/lib/octicons_react/src/icons/shield.js new file mode 100644 index 000000000..3b90d337d --- /dev/null +++ b/lib/octicons_react/src/icons/shield.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Shield() { + return +} +Shield.size = [14, 16] diff --git a/lib/octicons_react/src/icons/sign-in.js b/lib/octicons_react/src/icons/sign-in.js new file mode 100644 index 000000000..dccaccc47 --- /dev/null +++ b/lib/octicons_react/src/icons/sign-in.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function SignIn() { + return +} +SignIn.size = [14, 16] diff --git a/lib/octicons_react/src/icons/sign-out.js b/lib/octicons_react/src/icons/sign-out.js new file mode 100644 index 000000000..3a0dc8d45 --- /dev/null +++ b/lib/octicons_react/src/icons/sign-out.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function SignOut() { + return +} +SignOut.size = [16, 16] diff --git a/lib/octicons_react/src/icons/smiley.js b/lib/octicons_react/src/icons/smiley.js new file mode 100644 index 000000000..57104b959 --- /dev/null +++ b/lib/octicons_react/src/icons/smiley.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Smiley() { + return +} +Smiley.size = [16, 16] diff --git a/lib/octicons_react/src/icons/squirrel.js b/lib/octicons_react/src/icons/squirrel.js new file mode 100644 index 000000000..91a2fac1f --- /dev/null +++ b/lib/octicons_react/src/icons/squirrel.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Squirrel() { + return +} +Squirrel.size = [16, 16] diff --git a/lib/octicons_react/src/icons/star.js b/lib/octicons_react/src/icons/star.js new file mode 100644 index 000000000..514164d08 --- /dev/null +++ b/lib/octicons_react/src/icons/star.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Star() { + return +} +Star.size = [14, 16] diff --git a/lib/octicons_react/src/icons/stop.js b/lib/octicons_react/src/icons/stop.js new file mode 100644 index 000000000..3865e5bbb --- /dev/null +++ b/lib/octicons_react/src/icons/stop.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Stop() { + return +} +Stop.size = [14, 16] diff --git a/lib/octicons_react/src/icons/sync.js b/lib/octicons_react/src/icons/sync.js new file mode 100644 index 000000000..2bd22c00b --- /dev/null +++ b/lib/octicons_react/src/icons/sync.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Sync() { + return +} +Sync.size = [12, 16] diff --git a/lib/octicons_react/src/icons/tag.js b/lib/octicons_react/src/icons/tag.js new file mode 100644 index 000000000..52e923068 --- /dev/null +++ b/lib/octicons_react/src/icons/tag.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Tag() { + return +} +Tag.size = [14, 16] diff --git a/lib/octicons_react/src/icons/tasklist.js b/lib/octicons_react/src/icons/tasklist.js new file mode 100644 index 000000000..310aadb25 --- /dev/null +++ b/lib/octicons_react/src/icons/tasklist.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Tasklist() { + return +} +Tasklist.size = [16, 16] diff --git a/lib/octicons_react/src/icons/telescope.js b/lib/octicons_react/src/icons/telescope.js new file mode 100644 index 000000000..f43753f97 --- /dev/null +++ b/lib/octicons_react/src/icons/telescope.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Telescope() { + return +} +Telescope.size = [14, 16] diff --git a/lib/octicons_react/src/icons/terminal.js b/lib/octicons_react/src/icons/terminal.js new file mode 100644 index 000000000..4a4156f75 --- /dev/null +++ b/lib/octicons_react/src/icons/terminal.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Terminal() { + return +} +Terminal.size = [14, 16] diff --git a/lib/octicons_react/src/icons/text-size.js b/lib/octicons_react/src/icons/text-size.js new file mode 100644 index 000000000..b86db24e7 --- /dev/null +++ b/lib/octicons_react/src/icons/text-size.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function TextSize() { + return +} +TextSize.size = [18, 16] diff --git a/lib/octicons_react/src/icons/three-bars.js b/lib/octicons_react/src/icons/three-bars.js new file mode 100644 index 000000000..604eecce7 --- /dev/null +++ b/lib/octicons_react/src/icons/three-bars.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function ThreeBars() { + return +} +ThreeBars.size = [12, 16] diff --git a/lib/octicons_react/src/icons/thumbsdown.js b/lib/octicons_react/src/icons/thumbsdown.js new file mode 100644 index 000000000..40373f261 --- /dev/null +++ b/lib/octicons_react/src/icons/thumbsdown.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Thumbsdown() { + return +} +Thumbsdown.size = [16, 16] diff --git a/lib/octicons_react/src/icons/thumbsup.js b/lib/octicons_react/src/icons/thumbsup.js new file mode 100644 index 000000000..5ce407360 --- /dev/null +++ b/lib/octicons_react/src/icons/thumbsup.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Thumbsup() { + return +} +Thumbsup.size = [16, 16] diff --git a/lib/octicons_react/src/icons/tools.js b/lib/octicons_react/src/icons/tools.js new file mode 100644 index 000000000..dea686981 --- /dev/null +++ b/lib/octicons_react/src/icons/tools.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Tools() { + return +} +Tools.size = [16, 16] diff --git a/lib/octicons_react/src/icons/trashcan.js b/lib/octicons_react/src/icons/trashcan.js new file mode 100644 index 000000000..2800b7358 --- /dev/null +++ b/lib/octicons_react/src/icons/trashcan.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Trashcan() { + return +} +Trashcan.size = [12, 16] diff --git a/lib/octicons_react/src/icons/triangle-down.js b/lib/octicons_react/src/icons/triangle-down.js new file mode 100644 index 000000000..7fb3d8f6b --- /dev/null +++ b/lib/octicons_react/src/icons/triangle-down.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function TriangleDown() { + return +} +TriangleDown.size = [12, 16] diff --git a/lib/octicons_react/src/icons/triangle-left.js b/lib/octicons_react/src/icons/triangle-left.js new file mode 100644 index 000000000..04edd03dd --- /dev/null +++ b/lib/octicons_react/src/icons/triangle-left.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function TriangleLeft() { + return +} +TriangleLeft.size = [6, 16] diff --git a/lib/octicons_react/src/icons/triangle-right.js b/lib/octicons_react/src/icons/triangle-right.js new file mode 100644 index 000000000..323f41ce8 --- /dev/null +++ b/lib/octicons_react/src/icons/triangle-right.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function TriangleRight() { + return +} +TriangleRight.size = [6, 16] diff --git a/lib/octicons_react/src/icons/triangle-up.js b/lib/octicons_react/src/icons/triangle-up.js new file mode 100644 index 000000000..0bed44d8d --- /dev/null +++ b/lib/octicons_react/src/icons/triangle-up.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function TriangleUp() { + return +} +TriangleUp.size = [12, 16] diff --git a/lib/octicons_react/src/icons/unfold.js b/lib/octicons_react/src/icons/unfold.js new file mode 100644 index 000000000..c411d15be --- /dev/null +++ b/lib/octicons_react/src/icons/unfold.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Unfold() { + return +} +Unfold.size = [14, 16] diff --git a/lib/octicons_react/src/icons/unmute.js b/lib/octicons_react/src/icons/unmute.js new file mode 100644 index 000000000..2b05fc834 --- /dev/null +++ b/lib/octicons_react/src/icons/unmute.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Unmute() { + return +} +Unmute.size = [16, 16] diff --git a/lib/octicons_react/src/icons/unverified.js b/lib/octicons_react/src/icons/unverified.js new file mode 100644 index 000000000..9cf29e846 --- /dev/null +++ b/lib/octicons_react/src/icons/unverified.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Unverified() { + return +} +Unverified.size = [16, 16] diff --git a/lib/octicons_react/src/icons/verified.js b/lib/octicons_react/src/icons/verified.js new file mode 100644 index 000000000..ec8765e66 --- /dev/null +++ b/lib/octicons_react/src/icons/verified.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Verified() { + return +} +Verified.size = [16, 16] diff --git a/lib/octicons_react/src/icons/versions.js b/lib/octicons_react/src/icons/versions.js new file mode 100644 index 000000000..0078d7f9e --- /dev/null +++ b/lib/octicons_react/src/icons/versions.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Versions() { + return +} +Versions.size = [14, 16] diff --git a/lib/octicons_react/src/icons/watch.js b/lib/octicons_react/src/icons/watch.js new file mode 100644 index 000000000..a86c6c88e --- /dev/null +++ b/lib/octicons_react/src/icons/watch.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Watch() { + return +} +Watch.size = [12, 16] diff --git a/lib/octicons_react/src/icons/x.js b/lib/octicons_react/src/icons/x.js new file mode 100644 index 000000000..17269f8ee --- /dev/null +++ b/lib/octicons_react/src/icons/x.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function X() { + return +} +X.size = [12, 16] diff --git a/lib/octicons_react/src/icons/zap.js b/lib/octicons_react/src/icons/zap.js new file mode 100644 index 000000000..3a5775fd0 --- /dev/null +++ b/lib/octicons_react/src/icons/zap.js @@ -0,0 +1,5 @@ +import React from 'react' +export default function Zap() { + return +} +Zap.size = [10, 16] diff --git a/lib/octicons_react/src/index.js b/lib/octicons_react/src/index.js new file mode 100644 index 000000000..178c65f6f --- /dev/null +++ b/lib/octicons_react/src/index.js @@ -0,0 +1,71 @@ +import React from 'react' +import PropTypes from 'prop-types' + +const sizeMap = { + small: 16, + medium: 32, + large: 64 +} + +const alignMap = { + top: 'text-top', + middle: 'middle' +} + +const defaultSize = [16, 16] + +export default function Octicon(props) { + const {ariaLabel, children, className, height, icon: Icon, size, verticalAlign, width} = props + + const child = typeof Icon === 'function' ? : React.Children.only(children) + + const widthHeight = child.type.size || defaultSize + + const attrs = { + 'aria-hidden': 'true', + 'aria-label': ariaLabel, + className, + height, + role: 'img', + viewBox: [0, 0, ...widthHeight].join(' ') + } + + if (width && height) { + Object.assign(attrs, {width, height}) + } else { + const dims = {width: widthHeight[0], height: widthHeight[1]} + const given = width ? 'width' : 'height' + const computed = given === 'width' ? 'height' : 'width' + attrs[given] = width || height || sizeMap[size] || size + attrs[computed] = attrs[given] * (dims[computed] / dims[given]) + } + + attrs.style = { + display: 'inline-block', + fill: 'currentColor', + userSelect: 'none', + verticalAlign: alignMap[verticalAlign] || verticalAlign + } + + return {child} +} + +Octicon.defaultProps = { + className: 'octicon', + size: 16, + verticalAlign: 'text-bottom' +} + +Octicon.propTypes = { + ariaLabel: PropTypes.string, + children: PropTypes.element, + height: PropTypes.number, + icon: PropTypes.func, + size: PropTypes.oneOfType([PropTypes.number, PropTypes.oneOf(Object.keys(sizeMap))]), + verticalAlign: PropTypes.oneOf(['middle', 'text-bottom', 'text-top', 'top']), + width: PropTypes.number +} + +// this exports all of the icon classes as named exports, which can be +// tree-shaken by tools such as webpack, rollup, etc. +export * from './icons' diff --git a/script/export b/script/export index f431d0029..312a40169 100755 --- a/script/export +++ b/script/export @@ -18,6 +18,16 @@ try { return process.exit(1) } +const { + FIGMA_DOMAIN = 'api.figma.com', + FIGMA_TOKEN +} = process.env + +if (!FIGMA_TOKEN) { + console.error('You must set FIGMA_TOKEN to a Figma personal access token.') + process.exit(1) +} + spinner.info(`Exporting octicons from ${figma.url} file`) // Where we're putting the exported SVG and data.json @@ -30,9 +40,9 @@ let oCount = 0 const getFigmaComponents = () => { return new Promise((resolve, reject) => { spinner.info("Getting components from the figma file") - spinner.start(`Contacting ${process.env.FIGMA_DOMAIN}`) - got.get(`${process.env.FIGMA_DOMAIN}/v1/files/${figmaFileKey}`, { - headers: { "Content-Type": "application/json", "x-figma-token": process.env.FIGMA_TOKEN }, + spinner.start(`Contacting ${FIGMA_DOMAIN}`) + got.get(`${FIGMA_DOMAIN}/v1/files/${figmaFileKey}`, { + headers: { "Content-Type": "application/json", "x-figma-token": FIGMA_TOKEN }, json: true }) .then( response => { @@ -66,12 +76,12 @@ const getFigmaComponents = () => { const getFigmaImageUrls = (componentIds) => { spinner.info("Exporting figma components as SVG") return new Promise((resolve, reject) => { - got.get(`${process.env.FIGMA_DOMAIN}/v1/images/${figmaFileKey}`, { + got.get(`${FIGMA_DOMAIN}/v1/images/${figmaFileKey}`, { query: { ids: componentIds, format: "svg" }, - headers: { "Content-Type": "application/json", "x-figma-token": process.env.FIGMA_TOKEN }, + headers: { "Content-Type": "application/json", "x-figma-token": FIGMA_TOKEN }, json: true }) .then( response => {