-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Select): adding outlined Select #267
- Loading branch information
James Friedman
committed
Jul 10, 2018
1 parent
aebe073
commit 5344191
Showing
10 changed files
with
166 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
"use strict"; | ||
|
||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.NotchedOutlineIdle = exports.NotchedOutline = undefined; | ||
|
||
var _react = require("react"); | ||
|
||
var React = _interopRequireWildcard(_react); | ||
|
||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } | ||
|
||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | ||
|
||
var NotchedOutline = exports.NotchedOutline = function NotchedOutline() { | ||
return React.createElement( | ||
"div", | ||
{ className: "mdc-notched-outline" }, | ||
React.createElement( | ||
"svg", | ||
null, | ||
React.createElement("path", { className: "mdc-notched-outline__path" }) | ||
) | ||
); | ||
}; | ||
|
||
var NotchedOutlineIdle = function NotchedOutlineIdle(_ref) { | ||
var rest = _objectWithoutProperties(_ref, []); | ||
|
||
return React.createElement("div", Object.assign({}, rest, { className: "mdc-notched-outline__idle" })); | ||
}; | ||
exports.NotchedOutlineIdle = NotchedOutlineIdle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// @flow | ||
import * as React from 'react'; | ||
|
||
export const NotchedOutline = () => ( | ||
<div className="mdc-notched-outline"> | ||
<svg> | ||
<path className="mdc-notched-outline__path" /> | ||
</svg> | ||
</div> | ||
); | ||
|
||
export const NotchedOutlineIdle = ({ ...rest }: {}) => ( | ||
<div {...rest} className="mdc-notched-outline__idle" /> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// @flow | ||
import * as React from 'react'; | ||
|
||
export const NotchedOutline = () => ( | ||
<div className="mdc-notched-outline"> | ||
<svg> | ||
<path className="mdc-notched-outline__path" /> | ||
</svg> | ||
</div> | ||
); | ||
|
||
export const NotchedOutlineIdle = ({ ...rest }: {}) => ( | ||
<div {...rest} className="mdc-notched-outline__idle" /> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* @jest-environment node | ||
*/ | ||
import * as React from 'react'; | ||
import { renderToString as mount } from 'react-dom/server'; | ||
import { NotchedOutline } from './'; | ||
|
||
describe('NotchedOutline SSR', () => { | ||
it('renders', () => { | ||
mount(<NotchedOutline />); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import * as React from 'react'; | ||
import { mount } from 'enzyme'; | ||
import { NotchedOutline } from './'; | ||
|
||
describe('NotchedOutline SSR', () => { | ||
it('renders', () => { | ||
mount(<NotchedOutline />); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters