Skip to content
This repository has been archived by the owner on Mar 30, 2018. It is now read-only.

Commit

Permalink
Update uikit to the latest version 🚀 (#522)
Browse files Browse the repository at this point in the history
* chore(package): update uikit to version 3.0.0-beta.19

https://greenkeeper.io/

* grab junk before svg tag

* Updating snapshots
  • Loading branch information
greenkeeper[bot] authored and stipsan committed Apr 3, 2017
1 parent b35df9e commit 6a695ba
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 31 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"semver": "^5.3.0",
"semver-truncate": "^1.1.2",
"style-loader": "0.16.1",
"uikit": "3.0.0-beta.16",
"uikit": "3.0.0-beta.19",
"url-loader": "0.5.8"
},
"dependencies": {
Expand Down
46 changes: 42 additions & 4 deletions src/Icon/__tests__/__snapshots__/index-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ exports[`instagram 1`] = `
<svg
dangerouslySetInnerHTML={
Object {
"__html": "<path d=\\"M13.547,1 L6.463,1 C3.452,1 1,3.44 1,6.44 L1,13.561 C1,16.561 3.452,19 6.463,19 L13.536,19 C16.559,19 19,16.561 19,13.561 L19,6.44 C19.01,3.44 16.559,1 13.547,1 L13.547,1 L13.547,1 Z M17.479,13.98 C17.479,15.879 15.927,17.429 14.016,17.429 L6.133,17.429 C4.222,17.429 2.671,15.89 2.671,13.98 L2.671,6.19 C2.671,4.29 4.222,2.74 6.133,2.74 L14.017,2.74 C15.928,2.74 17.48,4.28 17.48,6.19 L17.48,13.98 L17.479,13.98 L17.479,13.98 Z\\"></path><circle cx=\\"14.87\\" cy=\\"5.26\\" r=\\"1.09\\"></circle><path d=\\"M10.03,5.45 C7.48,5.45 5.4,7.51 5.4,10.05 C5.4,12.6 7.47,14.66 10.03,14.66 C12.59,14.66 14.66,12.599 14.66,10.05 C14.65,7.51 12.58,5.45 10.03,5.45 L10.03,5.45 L10.03,5.45 Z M10.08,13 C8.42,13 7.08,11.66 7.08,10.01 C7.08,8.36 8.42,7.02 10.08,7.02 C11.74,7.02 13.08,8.36 13.08,10.01 C13.08,11.66 11.74,13 10.08,13 L10.08,13 L10.08,13 Z\\"></path>",
"__html": "<path d=\\"M13.55,1H6.46C3.45,1,1,3.44,1,6.44v7.12c0,3,2.45,5.44,5.46,5.44h7.08c3.02,0,5.46-2.44,5.46-5.44V6.44 C19.01,3.44,16.56,1,13.55,1z M17.5,14c0,1.93-1.57,3.5-3.5,3.5H6c-1.93,0-3.5-1.57-3.5-3.5V6c0-1.93,1.57-3.5,3.5-3.5h8 c1.93,0,3.5,1.57,3.5,3.5V14z\\"/><circle cx=\\"14.87\\" cy=\\"5.26\\" r=\\"1.09\\"/><path d=\\"M10.03,5.45c-2.55,0-4.63,2.06-4.63,4.6c0,2.55,2.07,4.61,4.63,4.61c2.56,0,4.63-2.061,4.63-4.61 C14.65,7.51,12.58,5.45,10.03,5.45L10.03,5.45L10.03,5.45z M10.08,13c-1.66,0-3-1.34-3-2.99c0-1.65,1.34-2.99,3-2.99s3,1.34,3,2.99 C13.08,11.66,11.74,13,10.08,13L10.08,13L10.08,13z\\"/>",
}
}
height={20}
Expand Down Expand Up @@ -2201,7 +2201,7 @@ exports[`soundcloud 1`] = `
<svg
dangerouslySetInnerHTML={
Object {
"__html": "<path d=\\"M17.2,8.4c-0.4,0-0.8,0.1-1.1,0.2c-0.2-2.5-2.4-4.5-5-4.5c-0.6,0-1.2,0.1-1.7,0.3C9.2,4.5,9.1,4.6,9.1,4.6V14h8 c1.6,0,2.8-1.2,2.8-2.8C20,9.7,18.7,8.4,17.2,8.4L17.2,8.4z\\"></path><rect x=\\"6\\" y=\\"5.5\\" width=\\"1.5\\" height=\\"8.5\\"></rect><rect x=\\"3\\" y=\\"7\\" width=\\"1.5\\" height=\\"7\\"></rect><rect y=\\"9\\" width=\\"1.5\\" height=\\"5\\"></rect>",
"__html": "<path d=\\"M17.2,9.4c-0.4,0-0.8,0.1-1.101,0.2c-0.199-2.5-2.399-4.5-5-4.5c-0.6,0-1.2,0.1-1.7,0.3C9.2,5.5,9.1,5.6,9.1,5.6V15h8 c1.601,0,2.801-1.2,2.801-2.8C20,10.7,18.7,9.4,17.2,9.4L17.2,9.4z\\"></path><rect x=\\"6\\" y=\\"6.5\\" width=\\"1.5\\" height=\\"8.5\\"></rect><rect x=\\"3\\" y=\\"8\\" width=\\"1.5\\" height=\\"7\\"></rect><rect y=\\"10\\" width=\\"1.5\\" height=\\"5\\"></rect>",
}
}
height={20}
Expand Down Expand Up @@ -2469,14 +2469,33 @@ exports[`triangle-up 1`] = `
</span>
`;
exports[`tripadvisor 1`] = `
<span
className="uk-icon"
>
<svg
dangerouslySetInnerHTML={
Object {
"__html": "<path d=\\"M19.021,7.866C19.256,6.862,20,5.854,20,5.854h-3.346C14.781,4.641,12.504,4,9.98,4C7.363,4,4.999,4.651,3.135,5.876H0 c0,0,0.738,0.987,0.976,1.988c-0.611,0.837-0.973,1.852-0.973,2.964c0,2.763,2.249,5.009,5.011,5.009 c1.576,0,2.976-0.737,3.901-1.879l1.063,1.599l1.075-1.615c0.475,0.611,1.1,1.111,1.838,1.451c1.213,0.547,2.574,0.612,3.825,0.15 c2.589-0.963,3.913-3.852,2.964-6.439c-0.175-0.463-0.4-0.876-0.675-1.238H19.021z M16.38,14.594 c-1.002,0.371-2.088,0.328-3.06-0.119c-0.688-0.317-1.252-0.817-1.657-1.438c-0.164-0.25-0.313-0.52-0.417-0.811 c-0.124-0.328-0.186-0.668-0.217-1.014c-0.063-0.689,0.037-1.396,0.339-2.043c0.448-0.971,1.251-1.71,2.25-2.079 c2.075-0.765,4.375,0.3,5.14,2.366c0.762,2.066-0.301,4.37-2.363,5.134L16.38,14.594L16.38,14.594z M8.322,13.066 c-0.72,1.059-1.935,1.76-3.309,1.76c-2.207,0-4.001-1.797-4.001-3.996c0-2.203,1.795-4.002,4.001-4.002 c2.204,0,3.999,1.8,3.999,4.002c0,0.137-0.024,0.261-0.04,0.396c-0.067,0.678-0.284,1.313-0.648,1.853v-0.013H8.322z M2.472,10.775 c0,1.367,1.112,2.479,2.476,2.479c1.363,0,2.472-1.11,2.472-2.479c0-1.359-1.11-2.468-2.472-2.468 C3.584,8.306,2.473,9.416,2.472,10.775L2.472,10.775z M12.514,10.775c0,1.367,1.104,2.479,2.471,2.479 c1.363,0,2.474-1.108,2.474-2.479c0-1.359-1.11-2.468-2.474-2.468c-1.364,0-2.477,1.109-2.477,2.468H12.514z M3.324,10.775 c0-0.893,0.726-1.618,1.614-1.618c0.889,0,1.625,0.727,1.625,1.618c0,0.898-0.725,1.627-1.625,1.627 c-0.901,0-1.625-0.729-1.625-1.627H3.324z M13.354,10.775c0-0.893,0.726-1.618,1.627-1.618c0.886,0,1.61,0.727,1.61,1.618 c0,0.898-0.726,1.627-1.626,1.627s-1.625-0.729-1.625-1.627H13.354z M9.977,4.875c1.798,0,3.425,0.324,4.849,0.968 c-0.535,0.015-1.061,0.108-1.586,0.3c-1.264,0.463-2.264,1.388-2.815,2.604c-0.262,0.551-0.398,1.133-0.448,1.72 C9.79,7.905,7.677,5.873,5.076,5.82C6.501,5.208,8.153,4.875,9.94,4.875H9.977z\\"></path>",
}
}
height={20}
icon="tripadvisor"
viewBox="0 0 20 20"
width={20}
xmlns="http://www.w3.org/2000/svg"
/>
</span>
`;
exports[`tumblr 1`] = `
<span
className="uk-icon"
>
<svg
dangerouslySetInnerHTML={
Object {
"__html": "<path d=\\"M7,9c0,0,0,3.6,0,5.3c0,0.3,0,0.7,0.1,1c0.4,1.6,1.2,2.7,2.7,3.3c1.4,0.5,2.5,0.5,3.9,0c0.6-0.2,1.2-0.7,1.2-0.7L14,15.5 c0,0-1.1,0.4-1.7,0.3c-0.6-0.1-1.3-0.7-1.3-1.6c0-1.7,0-5.2,0-5.2h3V6h-3V2H8.4c0,0-0.1,0.7-0.2,1C8,3.9,7.4,4.9,6.7,5.6 C5.9,6.4,5,6.7,5,6.7V9H7z\\"></path>",
"__html": "<path d=\\"M6.885,8.598c0,0,0,3.393,0,4.996c0,0.282,0,0.66,0.094,0.942c0.377,1.509,1.131,2.545,2.545,3.11 c1.319,0.472,2.356,0.472,3.676,0c0.565-0.188,1.132-0.659,1.132-0.659l-0.849-2.263c0,0-1.036,0.378-1.603,0.283 c-0.565-0.094-1.226-0.66-1.226-1.508c0-1.603,0-4.902,0-4.902h2.828V5.771h-2.828V2H8.205c0,0-0.094,0.66-0.188,0.942 C7.828,3.791,7.262,4.733,6.603,5.394C5.848,6.147,5,6.43,5,6.43v2.168H6.885z\\"/>",
}
}
height={20}
Expand Down Expand Up @@ -2647,7 +2666,7 @@ exports[`vimeo 1`] = `
<svg
dangerouslySetInnerHTML={
Object {
"__html": "<path d=\\"M1.78,7.31 C1.55,7.08 1.36,6.79 1.17,6.54 C0.83,6.11 1.03,6.12 1.45,5.75 C2.5,4.82 3.5,3.81 4.65,3 C5.69,2.27 7.07,1.8 8.01,2.96 C8.88,4.03 8.9,5.65 9.12,6.94 C9.34,8.28 9.55,9.65 10.02,10.93 C10.15,11.29 10.4,11.97 10.85,12.03 C11.43,12.11 12.02,11.09 12.29,10.71 C12.99,9.7 13.94,8.34 13.82,7.04 C13.7,5.66 12.21,5.92 11.28,6.25 C11.43,4.7 12.87,2.96 14.26,2.37 C15.73,1.76 17.92,1.77 18.66,3.43 C19.45,5.23 18.74,7.32 17.88,8.95 C16.94,10.72 15.73,12.36 14.44,13.89 C13.3,15.25 11.95,16.74 10.25,17.39 C8.31,18.13 7.16,16.69 6.5,15.02 C5.78,13.2 5.42,11.16 4.9,9.27 C4.68,8.47 4.42,7.56 3.9,6.9 C3.22,6.05 2.45,6.85 1.78,7.31 C1.69,7.22 1.83,7.27 1.78,7.31 L1.78,7.31 Z\\"></path>",
"__html": "<path d=\\"M2.065,7.59C1.84,7.367,1.654,7.082,1.468,6.838c-0.332-0.42-0.137-0.411,0.274-0.772c1.026-0.91,2.004-1.896,3.127-2.688 c1.017-0.713,2.365-1.173,3.286-0.039c0.849,1.045,0.869,2.629,1.084,3.891c0.215,1.309,0.421,2.648,0.88,3.901 c0.127,0.352,0.37,1.018,0.81,1.074c0.567,0.078,1.145-0.917,1.408-1.289c0.684-0.987,1.611-2.317,1.494-3.587 c-0.115-1.349-1.572-1.095-2.482-0.773c0.146-1.514,1.555-3.216,2.912-3.792c1.439-0.597,3.579-0.587,4.302,1.036 c0.772,1.759,0.078,3.802-0.763,5.396c-0.918,1.731-2.1,3.333-3.363,4.829c-1.114,1.329-2.432,2.787-4.093,3.422 c-1.897,0.723-3.021-0.686-3.667-2.318c-0.705-1.777-1.056-3.771-1.565-5.621C4.898,8.726,4.644,7.836,4.136,7.191 C3.473,6.358,2.72,7.141,2.065,7.59C1.977,7.502,2.115,7.551,2.065,7.59L2.065,7.59z\\"/>",
}
}
height={20}
Expand Down Expand Up @@ -2754,6 +2773,25 @@ exports[`xing 1`] = `
</span>
`;
exports[`yelp 1`] = `
<span
className="uk-icon"
>
<svg
dangerouslySetInnerHTML={
Object {
"__html": "<path d=\\"M17.175,14.971c-0.112,0.77-1.686,2.767-2.406,3.054c-0.246,0.1-0.487,0.076-0.675-0.069 c-0.122-0.096-2.446-3.859-2.446-3.859c-0.194-0.293-0.157-0.682,0.083-0.978c0.234-0.284,0.581-0.393,0.881-0.276 c0.016,0.01,4.21,1.394,4.332,1.482c0.178,0.148,0.263,0.379,0.225,0.646L17.175,14.971L17.175,14.971z M11.464,10.789 c-0.203-0.307-0.199-0.666,0.009-0.916c0,0,2.625-3.574,2.745-3.657c0.203-0.135,0.452-0.141,0.69-0.025 c0.691,0.335,2.085,2.405,2.167,3.199v0.027c0.024,0.271-0.082,0.491-0.273,0.623c-0.132,0.083-4.43,1.155-4.43,1.155 c-0.322,0.096-0.68-0.06-0.882-0.381L11.464,10.789z M9.475,9.563C9.32,9.609,8.848,9.757,8.269,8.817c0,0-3.916-6.16-4.007-6.351 c-0.057-0.212,0.011-0.455,0.202-0.65C5.047,1.211,8.21,0.327,9.037,0.529c0.27,0.069,0.457,0.238,0.522,0.479 c0.047,0.266,0.433,5.982,0.488,7.264C10.098,9.368,9.629,9.517,9.475,9.563z M9.927,19.066c-0.083,0.225-0.273,0.373-0.54,0.421 c-0.762,0.13-3.15-0.751-3.647-1.342c-0.096-0.131-0.155-0.262-0.167-0.394c-0.011-0.095,0-0.189,0.036-0.272 c0.061-0.155,2.917-3.538,2.917-3.538c0.214-0.272,0.595-0.355,0.952-0.213c0.345,0.13,0.56,0.428,0.536,0.749 C10.014,14.479,9.977,18.923,9.927,19.066z M3.495,13.912c-0.235-0.009-0.444-0.148-0.568-0.382c-0.089-0.17-0.151-0.453-0.19-0.794 C2.63,11.701,2.761,10.144,3.07,9.648c0.145-0.226,0.357-0.345,0.592-0.336c0.154,0,4.255,1.667,4.255,1.667 c0.321,0.118,0.521,0.453,0.5,0.833c-0.023,0.37-0.236,0.655-0.551,0.738L3.495,13.912z\\"></path>",
}
}
height={20}
icon="yelp"
viewBox="0 0 20 20"
width={20}
xmlns="http://www.w3.org/2000/svg"
/>
</span>
`;
exports[`youtube 1`] = `
<span
className="uk-icon"
Expand Down
2 changes: 1 addition & 1 deletion src/Icon/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ export const getDimensionsFromViewBox = (svg) => {
return { width, height }
}

export const getInnerSvg = svg => svg.replace(/^<svg[^>]*>|<\/svg>$/g, '')
export const getInnerSvg = svg => svg.replace(/.*<svg[^>]*>|<\/svg>$/g, '')
50 changes: 25 additions & 25 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1753,9 +1753,9 @@ cosmiconfig@^2.1.0, cosmiconfig@^2.1.1:
parse-json "^2.2.0"
require-from-string "^1.1.0"

coveralls@2.12.0:
version "2.12.0"
resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-2.12.0.tgz#b3d064108e29728385b56e42fc2d119f43e0e517"
coveralls@2.13.0:
version "2.13.0"
resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-2.13.0.tgz#df933876e8c6f478efb04f4d3ab70dc96b7e5a8e"
dependencies:
js-yaml "3.6.1"
lcov-parse "0.0.10"
Expand All @@ -1782,9 +1782,9 @@ css-color-names@0.0.4:
version "0.0.4"
resolved "https://registry.yarnpkg.com/css-color-names/-/css-color-names-0.0.4.tgz#808adc2e79cf84738069b646cb20ec27beb629e0"

css-loader@0.27.3:
version "0.27.3"
resolved "https://registry.yarnpkg.com/css-loader/-/css-loader-0.27.3.tgz#69ab6f47b69bfb1b5acee61bac2aab14302ff0dc"
css-loader@0.28.0:
version "0.28.0"
resolved "https://registry.yarnpkg.com/css-loader/-/css-loader-0.28.0.tgz#417cfa9789f8cde59a30ccbf3e4da7a806889bad"
dependencies:
babel-code-frame "^6.11.0"
css-selector-tokenizer "^0.7.0"
Expand Down Expand Up @@ -2259,9 +2259,9 @@ eslint-plugin-react@6.10.2:
jsx-ast-utils "^1.3.4"
object.assign "^4.0.4"

eslint@3.18.0:
version "3.18.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.18.0.tgz#647e985c4ae71502d20ac62c109f66d5104c8a4b"
eslint@3.19.0:
version "3.19.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.19.0.tgz#c8fc6201c7f40dd08941b87c085767386a679acc"
dependencies:
babel-code-frame "^6.16.0"
chalk "^1.1.3"
Expand Down Expand Up @@ -2489,9 +2489,9 @@ file-entry-cache@^2.0.0:
flat-cache "^1.2.1"
object-assign "^4.0.1"

file-loader@0.10.1:
version "0.10.1"
resolved "https://registry.yarnpkg.com/file-loader/-/file-loader-0.10.1.tgz#815034119891fc6441fb5a64c11bc93c22ddd842"
file-loader@0.11.1:
version "0.11.1"
resolved "https://registry.yarnpkg.com/file-loader/-/file-loader-0.11.1.tgz#6b328ee1234a729e4e47d36375dd6d35c0e1db84"
dependencies:
loader-utils "^1.0.2"

Expand Down Expand Up @@ -3548,14 +3548,14 @@ js-tokens@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.1.tgz#08e9f132484a2c45a30907e9dc4d5567b7f114d7"

js-yaml@3.6.1, js-yaml@^3.5.1:
js-yaml@3.6.1:
version "3.6.1"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.6.1.tgz#6e5fe67d8b205ce4d22fad05b7781e8dadcc4b30"
dependencies:
argparse "^1.0.7"
esprima "^2.6.0"

js-yaml@^3.4.3, js-yaml@^3.7.0:
js-yaml@^3.4.3, js-yaml@^3.5.1, js-yaml@^3.7.0:
version "3.8.2"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.8.2.tgz#02d3e2c0f6beab20248d412c352203827d786721"
dependencies:
Expand Down Expand Up @@ -3678,12 +3678,12 @@ lcov-parse@0.0.10:
version "0.0.10"
resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-0.0.10.tgz#1b0b8ff9ac9c7889250582b70b71315d9da6d9a3"

less-loader@4.0.2:
version "4.0.2"
resolved "https://registry.yarnpkg.com/less-loader/-/less-loader-4.0.2.tgz#3ec6909c31e07f2658266fed7b04d4d5d7e71d25"
less-loader@4.0.3:
version "4.0.3"
resolved "https://registry.yarnpkg.com/less-loader/-/less-loader-4.0.3.tgz#d1e6462ca2f090c11248455e14b8dda4616d0521"
dependencies:
clone "^2.1.1"
loader-utils "^1.0.2"
loader-utils "^1.1.0"
pify "^2.3.0"

less@2.7.2:
Expand Down Expand Up @@ -3733,7 +3733,7 @@ loader-utils@^0.2.11, loader-utils@^0.2.16, loader-utils@^0.2.7, loader-utils@~0
json5 "^0.5.0"
object-assign "^4.0.1"

loader-utils@^1.0.2:
loader-utils@^1.0.2, loader-utils@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.1.0.tgz#c98aef488bcceda2ffb5e2de646d6a754429f5cd"
dependencies:
Expand Down Expand Up @@ -5554,9 +5554,9 @@ style-loader@0.13.1:
dependencies:
loader-utils "^0.2.7"

style-loader@0.16.0:
version "0.16.0"
resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-0.16.0.tgz#5f001a9bf58fff9fd40f8aa3b9738ab99d4000c7"
style-loader@0.16.1:
version "0.16.1"
resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-0.16.1.tgz#50e325258d4e78421dd9680636b41e8661595d10"
dependencies:
loader-utils "^1.0.2"

Expand Down Expand Up @@ -5764,9 +5764,9 @@ uid-number@^0.0.6:
version "0.0.6"
resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81"

uikit@3.0.0-beta.16:
version "3.0.0-beta.16"
resolved "https://registry.yarnpkg.com/uikit/-/uikit-3.0.0-beta.16.tgz#770290dfb8b6518cf93d5ca0b41fee97ad6e0b24"
uikit@3.0.0-beta.19:
version "3.0.0-beta.19"
resolved "https://registry.yarnpkg.com/uikit/-/uikit-3.0.0-beta.19.tgz#6e1c82f304ebf39c9697abb644f1fcd94d612c49"

uniq@^1.0.1:
version "1.0.1"
Expand Down

0 comments on commit 6a695ba

Please sign in to comment.