-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* L-rail updates * L-rail updates * codegen
- Loading branch information
Showing
15 changed files
with
151 additions
and
9 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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,44 @@ | ||
import React from "react"; | ||
import {Svg, G, Path, Rect} from "react-primitives-svg"; | ||
import PropTypes from "prop-types"; | ||
import {svgSize} from "../helpers/svg"; | ||
import {Colors} from "./HSL_COLORS"; | ||
|
||
export default function Icon({fill, height, width, ...rest}) { | ||
return ( | ||
<Svg | ||
{...rest} | ||
{...svgSize(height, width)} | ||
viewBox="0 0 35 35" | ||
version="1.1" | ||
preserveAspectRatio="xMidYMid meet"> | ||
<G> | ||
<Rect fill={fill.inner} x="3" y="3" width="30" height="30" /> | ||
<Path | ||
fill={fill.outer} | ||
d="M 23.847656 19.917969 L 22.183594 8.308594 C 22.085938 7.5 21.585938 6.792969 20.855469 6.429688 C 19.582031 5.855469 18.226562 5.480469 16.835938 5.324219 L 16.835938 3.917969 L 19.777344 3.917969 C 20.214844 3.917969 20.566406 3.5625 20.566406 3.128906 C 20.566406 2.691406 20.214844 2.339844 19.777344 2.339844 L 12.269531 2.339844 C 11.832031 2.339844 11.480469 2.691406 11.480469 3.128906 C 11.480469 3.5625 11.832031 3.917969 12.269531 3.917969 L 15.214844 3.917969 L 15.214844 5.324219 C 13.824219 5.480469 12.464844 5.851562 11.1875 6.429688 C 10.457031 6.792969 9.960938 7.5 9.863281 8.308594 L 8.203125 19.917969 C 8.078125 20.789062 8.160156 21.679688 8.441406 22.515625 C 8.605469 23.007812 8.914062 24.003906 9.101562 24.492188 C 9.367188 25.160156 9.941406 25.660156 10.644531 25.835938 C 11.878906 26.15625 13.722656 26.433594 16.023438 26.433594 C 18.320312 26.433594 20.167969 26.15625 21.402344 25.835938 C 22.105469 25.660156 22.675781 25.160156 22.945312 24.492188 C 23.132812 24.003906 23.441406 23.007812 23.605469 22.515625 C 23.886719 21.679688 23.96875 20.789062 23.847656 19.917969 Z M 22.351562 21.546875 L 21.933594 22.835938 C 21.867188 23.089844 21.65625 23.28125 21.398438 23.324219 C 20.8125 23.5 18.347656 23.917969 16.023438 23.9375 C 13.699219 23.917969 11.238281 23.5 10.652344 23.324219 C 10.394531 23.28125 10.183594 23.089844 10.117188 22.835938 L 9.699219 21.546875 C 9.601562 21.253906 9.84375 21.046875 10.171875 21.136719 C 11.175781 21.40625 12.296875 21.636719 13.226562 21.820312 C 13.511719 21.871094 13.757812 22.046875 13.894531 22.300781 C 14.03125 22.59375 14.316406 22.792969 14.636719 22.820312 C 15.0625 22.847656 15.554688 22.863281 16.023438 22.863281 C 16.503906 22.863281 16.984375 22.847656 17.410156 22.820312 C 17.730469 22.792969 18.011719 22.59375 18.152344 22.300781 C 18.289062 22.046875 18.535156 21.871094 18.820312 21.820312 C 19.75 21.636719 20.875 21.410156 21.878906 21.136719 C 22.207031 21.046875 22.449219 21.253906 22.351562 21.546875 Z M 21.710938 19.289062 C 19.871094 19.867188 17.953125 20.167969 16.023438 20.183594 C 14.09375 20.167969 12.179688 19.867188 10.339844 19.289062 C 10.042969 19.195312 9.855469 18.898438 9.902344 18.589844 L 11.078125 10.382812 C 11.113281 10.113281 11.316406 9.898438 11.578125 9.847656 C 14.511719 9.230469 17.539062 9.230469 20.46875 9.847656 C 20.734375 9.898438 20.933594 10.113281 20.972656 10.382812 L 22.148438 18.589844 C 22.191406 18.898438 22.007812 19.195312 21.710938 19.289062 Z M 20.566406 27.214844 C 20.011719 27.328125 19.386719 27.417969 18.746094 27.488281 C 18.746094 27.488281 19.957031 28.925781 20.277344 29.304688 C 20.6875 29.796875 21.019531 29.953125 21.488281 29.953125 C 22.019531 29.953125 22.492188 29.558594 21.933594 28.859375 C 21.660156 28.519531 20.566406 27.214844 20.566406 27.214844 Z M 11.480469 27.214844 C 12.039062 27.328125 12.664062 27.417969 13.300781 27.488281 C 13.300781 27.488281 12.089844 28.925781 11.773438 29.304688 C 11.363281 29.796875 11.03125 29.953125 10.558594 29.953125 C 10.027344 29.953125 9.554688 29.558594 10.113281 28.859375 C 10.390625 28.519531 11.480469 27.214844 11.480469 27.214844 Z M 11.480469 27.214844 " | ||
id="L-Rail-1" | ||
fillRule="nonzero" | ||
/> | ||
</G> | ||
</Svg> | ||
); | ||
} | ||
|
||
Icon.propTypes = { | ||
fill: PropTypes.shape({ | ||
inner: PropTypes.string, | ||
outer: PropTypes.string, | ||
}), | ||
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), | ||
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), | ||
}; | ||
|
||
Icon.defaultProps = { | ||
fill: { | ||
inner: Colors.primary.hslWhite, | ||
outer: Colors.transport.rail, | ||
}, | ||
}; | ||
|
||
Icon.displayName = "Icons.LRailRectangle"; |
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