Skip to content

Commit

Permalink
feat: added new ui-icons package
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiftwork committed Dec 18, 2019
1 parent 64496d4 commit d9de442
Show file tree
Hide file tree
Showing 198 changed files with 5,669 additions and 7 deletions.
762 changes: 761 additions & 1 deletion package-lock.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -72,6 +72,8 @@
"gulp-print": "5.0.2",
"gulp-sourcemaps": "2.6.5",
"gulp-stylelint": "10.0.0",
"gulp-svg-sprite": "1.5.0",
"gulp-svgo": "2.1.1",
"gulp-typescript": "5.0.1",
"husky": "3.1.0",
"lazypipe": "1.0.2",
Expand Down
6 changes: 6 additions & 0 deletions packages/ui-core/postcss.variables.js
Expand Up @@ -6,10 +6,13 @@ module.exports.base = {
/* COLOR */
'--c_color_alpha': '#b27100', // Quality Gold
'--c_color_beta': '#ffab19', // Shiny Gold

'--c_light_alpha': '#556270', // Might Slate
'--c_light_beta': '#666666', // Soft Grey

'--c_text': '#121212', // Dark Grey
'--c_background': '#ffffff', // White

'--c_valid': '#95c11f', // Green
'--c_warning': '#ea5b0c', // Orange
'--c_invalid': '#c43b0a', // Red
Expand Down Expand Up @@ -68,10 +71,13 @@ module.exports.dark = {
/* COLOR */
'--c_color_alpha': '#ffab19', // Shiny Gold
'--c_color_beta': '#b27100', // Quality Gold

'--c_light_alpha': '#556270', // Might Slate
'--c_light_beta': '#666666', // Soft Grey

'--c_text': '#f0f0f0', // Bone White
'--c_background': '#121212', // Dark Grey

'--c_valid': '#95c11f', // Green
'--c_warning': '#ea5b0c', // Orange
'--c_invalid': '#c43b0a', // Red
Expand Down
7 changes: 4 additions & 3 deletions packages/ui-core/src/components/Button/Button.css
Expand Up @@ -12,19 +12,20 @@
overflow: hidden;
cursor: pointer;
outline: none;
border: none;
vertical-align: middle;
border-radius: 0;
border: 1px solid rgba(0, 0, 0, 0.2);
background-color: var(--c_background);
transition: color 0.15s ease, background-color 0.15s ease;
box-shadow: 0 5px 0 0 rgba(0, 0, 0, 0.2);

&:hover,
&:focus {
background-color: white;
color: var(--c_color_beta);
background-color: var(--c_light_alpha);
}

&:active {
&:not(.disabled):active {
margin-top: 3px;
box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.2);
}
Expand Down
6 changes: 6 additions & 0 deletions packages/ui-core/src/components/Button/Button.stories.tsx
Expand Up @@ -26,3 +26,9 @@ export const disabledLink = () => (
Click me!
</Button>
);

export const onDark = () => (
<div style={{ padding: '4rem', background: 'var(--c_light_alpha)' }}>
<Button onClick={console.log}>Click me!</Button>
</div>
);
10 changes: 10 additions & 0 deletions packages/ui-icons/LICENSE.md
@@ -0,0 +1,10 @@
MIT License

Copyright (c) 2016 Sabbir Ahmed & All Contributors
Copyright (c) 2019 Trutoo AB

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.
34 changes: 34 additions & 0 deletions packages/ui-icons/package.json
@@ -0,0 +1,34 @@
{
"name": "@trutoo/ui-icons",
"version": "1.5.0",
"keywords": [
"trutoo",
"uikit",
"wcag",
"whitelabel"
],
"description": "Basic whitelabled interactive elements following strict code quality and accessibility",
"main": "dist/index.js",
"author": "Trutoo AB",
"license": "GPL-3.0",
"bugs": "https://github.com/trutoo/uikit/issues",
"repository": {
"type": "git",
"url": "git://github.com/trutoo/uikit.git",
"directory": "packages/ui-icons"
},
"contributors": [
{
"name": "Erik Hughes",
"email": "erik.hughes@outlook.com",
"url": "https://github.com/swiftwork"
}
],
"files": [
"dist/"
],
"scripts": {
"build": "node ../../scripts/build.js"
},
"dependencies": {}
}
19 changes: 19 additions & 0 deletions packages/ui-icons/src/icons/action-redo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions packages/ui-icons/src/icons/action-undo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions packages/ui-icons/src/icons/anchor.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions packages/ui-icons/src/icons/arrow-down-circle.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions packages/ui-icons/src/icons/arrow-down.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions packages/ui-icons/src/icons/arrow-left-circle.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions packages/ui-icons/src/icons/arrow-left.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions packages/ui-icons/src/icons/arrow-right-circle.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions packages/ui-icons/src/icons/arrow-right.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d9de442

Please sign in to comment.