1import React from 'react';
2import PropTypes from 'prop-types';
20 const _color = disabled ? 'disabled' : color
21 const _s = getStyles(styleManifest, type, _color, size)
22 const _disabled = disabled ? 'disabled': ''
26 className={`${_s} ${className} ${_disabled} sans`}
39const getStyles = (m, t, c, s) => `${m[t][c]} ${m[t][s]} ${m[t]['all']}`;
41const styleManifest = {
51 s: 'text-sans-serif fs-35 mb-0',
52 m: 'text-sans-serif fs-4 mb-1',
54 // Applied to all link buttons
55 all: 'bg-transparent text-400 underline user-select-auto p-0',
60 black: 'b-black black',
61 green: 'b-green green',
62 yellow: 'b-yellow yellow',
63 gray: 'b-gray-50 gray-50',
64 disabled: 'b-gray-30 gray-30',
66 s: 'h-7 ph-2 fs-3 b-1',
67 m: 'h-9 ph-4 fs-4 b-2',
68 l: 'h-13 ph-6 fs-5 b-2',
69 // Applied to all outline buttons
70 all: 'bg-transparent b-solid',
84 // Applied to all outline buttons
85 all: 'bg-transparent b-0',
89 blue: 'bg-blue b-blue',
90 black: 'bg-black b-black',
91 green: 'bg-green b-green',
92 yellow: 'bg-yellow b-yellow',
93 gray: 'bg-gray b-gray',
94 disabled: 'b-gray-30 bg-gray-30',
96 s: 'h-6 ph-2 fs-3 sans',
99 // Applied to all block buttons
100 all: 'white b-2 br-solid',
106 disabled: PropTypes.bool,
107 onClick: PropTypes.func,
108 className: PropTypes.string,
109 children: PropTypes.node,
110 autoFocus: PropTypes.bool,
111 style: PropTypes.object,
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list