Skip to content

Commit

Permalink
fix(deps): update dependency polished to v4 (#920)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored Nov 11, 2020
1 parent 3f4f7ab commit a084164
Show file tree
Hide file tree
Showing 42 changed files with 317 additions and 150 deletions.
2 changes: 1 addition & 1 deletion packages/.template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"sideEffects": false,
"types": "dist/typings/index.d.ts",
"dependencies": {
"polished": "^3.5.1"
"polished": "^4.0.0"
},
"peerDependencies": {
"@zendeskgarden/react-theming": "^8.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/accordions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dependencies": {
"@zendeskgarden/container-accordion": "^1.0.0",
"@zendeskgarden/container-utilities": "^0.5.3",
"polished": "^3.5.1"
"polished": "^4.0.0"
},
"peerDependencies": {
"@zendeskgarden/react-theming": "^8.1.0",
Expand Down
14 changes: 14 additions & 0 deletions packages/accordions/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
# yarn lockfile v1


"@babel/runtime@^7.12.0":
version "7.12.5"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.5.tgz#410e7e487441e1b360c29be715d870d9b985882e"
integrity sha512-plcc+hbExy3McchJCEQG3knOsuh3HH+Prx1P6cLIkET/0dLuQDEnrT+s27Axgc9bqfsmNUNHfscgMUdBpC9xfg==
dependencies:
regenerator-runtime "^0.13.4"

"@babel/runtime@^7.8.4":
version "7.8.4"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.8.4.tgz#d79f5a2040f7caa24d53e563aad49cbc05581308"
Expand Down Expand Up @@ -84,6 +91,13 @@ polished@^3.5.1:
dependencies:
"@babel/runtime" "^7.8.7"

polished@^4.0.0:
version "4.0.3"
resolved "https://registry.yarnpkg.com/polished/-/polished-4.0.3.tgz#e2bde249f8884bdabc6997dd3eca225ee32f7a26"
integrity sha512-yOALHMrqcYHlHIxFkHvGX8NGsjsbSaYMZ8Z3uEElVpzF5ZgNmTgqMOh4bnSVXGC6sXjBTZCH6+GebTRWhJR4zQ==
dependencies:
"@babel/runtime" "^7.12.0"

react-uid@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/react-uid/-/react-uid-2.2.0.tgz#0f77e1e0594fbf29fc4fe528cc9aa415c5bf9159"
Expand Down
2 changes: 1 addition & 1 deletion packages/avatars/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"sideEffects": false,
"types": "dist/typings/index.d.ts",
"dependencies": {
"polished": "^3.5.1"
"polished": "^4.0.0"
},
"peerDependencies": {
"@zendeskgarden/react-theming": "^8.1.0",
Expand Down
37 changes: 16 additions & 21 deletions packages/avatars/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# yarn lockfile v1


"@babel/runtime@^7.6.3":
version "7.8.4"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.8.4.tgz#d79f5a2040f7caa24d53e563aad49cbc05581308"
integrity sha512-neAp3zt80trRVBI1x0azq6c57aNBqYZH8KhMm3TaB7wEI5Q4A2SHfBHE8w9gOhI/lrqxtEbXZgQIrHP+wvSGwQ==
"@babel/runtime@^7.12.0":
version "7.12.5"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.5.tgz#410e7e487441e1b360c29be715d870d9b985882e"
integrity sha512-plcc+hbExy3McchJCEQG3knOsuh3HH+Prx1P6cLIkET/0dLuQDEnrT+s27Axgc9bqfsmNUNHfscgMUdBpC9xfg==
dependencies:
regenerator-runtime "^0.13.2"
regenerator-runtime "^0.13.4"

"@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7":
version "7.9.2"
Expand All @@ -30,21 +30,14 @@
dependencies:
"@babel/runtime" "^7.8.4"

"@zendeskgarden/react-theming@^8.4.1":
version "8.4.1"
resolved "https://registry.yarnpkg.com/@zendeskgarden/react-theming/-/react-theming-8.4.1.tgz#8dd2a165a0146c31cc093e733c544895a0837f4c"
integrity sha512-KHTP09GpJQf+5+0ax6ONHwsXDxCsJy3PmWQ9nMv5poAsLzpocVp+E8P3rxwjuK1cnxD13cwtcrZ0MHSIA0E7Vg==
"@zendeskgarden/react-theming@^8.25.2":
version "8.25.2"
resolved "https://registry.yarnpkg.com/@zendeskgarden/react-theming/-/react-theming-8.25.2.tgz#61c0b0346154e7238645125533d33bf7ff26a481"
integrity sha512-/HefQjvFQpiQSEFoVZ6D7QSbyZkAviGE5op8GXqMp4angmt2evXhkSu2JT49xPV5WI8EfMUXWdHVHbPuhcrtdA==
dependencies:
"@zendeskgarden/container-focusvisible" "^0.4.3"
"@zendeskgarden/container-utilities" "^0.5.1"
polished "^3.4.4"

polished@^3.4.4:
version "3.4.4"
resolved "https://registry.yarnpkg.com/polished/-/polished-3.4.4.tgz#ac8cd6e704887398f3b802718f9d389b9ea4307b"
integrity sha512-x9PKeExyI9AhWrJP3Q57I1k7GInujjiVBJMPFmycj9hX1yCOo/X9eu9eZwxgOziiXge3WbFQ5XOmkzunOntBSA==
dependencies:
"@babel/runtime" "^7.6.3"
polished "^3.5.1"

polished@^3.5.1:
version "3.5.1"
Expand All @@ -53,10 +46,12 @@ polished@^3.5.1:
dependencies:
"@babel/runtime" "^7.8.7"

regenerator-runtime@^0.13.2:
version "0.13.3"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz#7cf6a77d8f5c6f60eb73c5fc1955b2ceb01e6bf5"
integrity sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw==
polished@^4.0.0:
version "4.0.3"
resolved "https://registry.yarnpkg.com/polished/-/polished-4.0.3.tgz#e2bde249f8884bdabc6997dd3eca225ee32f7a26"
integrity sha512-yOALHMrqcYHlHIxFkHvGX8NGsjsbSaYMZ8Z3uEElVpzF5ZgNmTgqMOh4bnSVXGC6sXjBTZCH6+GebTRWhJR4zQ==
dependencies:
"@babel/runtime" "^7.12.0"

regenerator-runtime@^0.13.4:
version "0.13.5"
Expand Down
2 changes: 1 addition & 1 deletion packages/breadcrumbs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"types": "dist/typings/index.d.ts",
"dependencies": {
"@zendeskgarden/container-breadcrumb": "^0.4.1",
"polished": "^3.5.1"
"polished": "^4.0.0"
},
"peerDependencies": {
"@zendeskgarden/react-theming": "^8.1.0",
Expand Down
5 changes: 2 additions & 3 deletions packages/breadcrumbs/src/styled/StyledBreadcrumbItem.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@
*/

import React from 'react';
import { stripUnit } from 'polished';
import { render } from 'garden-test-utils';
import { getColor, DEFAULT_THEME } from '@zendeskgarden/react-theming';
import { getColor, DEFAULT_THEME, getLineHeight } from '@zendeskgarden/react-theming';
import { StyledBreadcrumbItem } from './StyledBreadcrumbItem';

describe('StyledBreadcrumbItem', () => {
it('renders default styling', () => {
const { container } = render(<StyledBreadcrumbItem />);
const lineHeight = (DEFAULT_THEME.space.base * 5) / stripUnit(DEFAULT_THEME.fontSizes.md);
const lineHeight = getLineHeight(DEFAULT_THEME.space.md, DEFAULT_THEME.fontSizes.md);

expect(container.firstChild).toHaveStyleRule('line-height', lineHeight.toString());
expect(container.firstChild).toHaveStyleRule('white-space', 'nowrap');
Expand Down
14 changes: 14 additions & 0 deletions packages/breadcrumbs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
# yarn lockfile v1


"@babel/runtime@^7.12.0":
version "7.12.5"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.5.tgz#410e7e487441e1b360c29be715d870d9b985882e"
integrity sha512-plcc+hbExy3McchJCEQG3knOsuh3HH+Prx1P6cLIkET/0dLuQDEnrT+s27Axgc9bqfsmNUNHfscgMUdBpC9xfg==
dependencies:
regenerator-runtime "^0.13.4"

"@babel/runtime@^7.8.4":
version "7.8.7"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.8.7.tgz#8fefce9802db54881ba59f90bb28719b4996324d"
Expand Down Expand Up @@ -56,6 +63,13 @@ polished@^3.5.1:
dependencies:
"@babel/runtime" "^7.8.7"

polished@^4.0.0:
version "4.0.3"
resolved "https://registry.yarnpkg.com/polished/-/polished-4.0.3.tgz#e2bde249f8884bdabc6997dd3eca225ee32f7a26"
integrity sha512-yOALHMrqcYHlHIxFkHvGX8NGsjsbSaYMZ8Z3uEElVpzF5ZgNmTgqMOh4bnSVXGC6sXjBTZCH6+GebTRWhJR4zQ==
dependencies:
"@babel/runtime" "^7.12.0"

regenerator-runtime@^0.13.4:
version "0.13.4"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.4.tgz#e96bf612a3362d12bb69f7e8f74ffeab25c7ac91"
Expand Down
2 changes: 1 addition & 1 deletion packages/buttons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dependencies": {
"@zendeskgarden/container-buttongroup": "^0.3.1",
"@zendeskgarden/container-keyboardfocus": "^0.4.1",
"polished": "^3.5.1"
"polished": "^4.0.0"
},
"peerDependencies": {
"@zendeskgarden/react-theming": "^8.1.0",
Expand Down
14 changes: 14 additions & 0 deletions packages/buttons/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
# yarn lockfile v1


"@babel/runtime@^7.12.0":
version "7.12.5"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.5.tgz#410e7e487441e1b360c29be715d870d9b985882e"
integrity sha512-plcc+hbExy3McchJCEQG3knOsuh3HH+Prx1P6cLIkET/0dLuQDEnrT+s27Axgc9bqfsmNUNHfscgMUdBpC9xfg==
dependencies:
regenerator-runtime "^0.13.4"

"@babel/runtime@^7.8.4":
version "7.8.7"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.8.7.tgz#8fefce9802db54881ba59f90bb28719b4996324d"
Expand Down Expand Up @@ -74,6 +81,13 @@ polished@^3.5.1:
dependencies:
"@babel/runtime" "^7.8.7"

polished@^4.0.0:
version "4.0.3"
resolved "https://registry.yarnpkg.com/polished/-/polished-4.0.3.tgz#e2bde249f8884bdabc6997dd3eca225ee32f7a26"
integrity sha512-yOALHMrqcYHlHIxFkHvGX8NGsjsbSaYMZ8Z3uEElVpzF5ZgNmTgqMOh4bnSVXGC6sXjBTZCH6+GebTRWhJR4zQ==
dependencies:
"@babel/runtime" "^7.12.0"

regenerator-runtime@^0.13.4:
version "0.13.4"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.4.tgz#e96bf612a3362d12bb69f7e8f74ffeab25c7ac91"
Expand Down
16 changes: 8 additions & 8 deletions packages/chrome/.size-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@
}
},
"index.cjs.js": {
"bundled": 53833,
"minified": 40685,
"gzipped": 7514
"bundled": 53858,
"minified": 40695,
"gzipped": 7520
},
"index.esm.js": {
"bundled": 49544,
"minified": 36839,
"gzipped": 7291,
"bundled": 49569,
"minified": 36849,
"gzipped": 7297,
"treeshaked": {
"rollup": {
"code": 28057,
"code": 28067,
"import_statements": 550
},
"webpack": {
"code": 31469
"code": 31479
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/chrome/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@zendeskgarden/container-accordion": "^1.0.0",
"@zendeskgarden/container-keyboardfocus": "^0.4.1",
"@zendeskgarden/container-utilities": "^0.5.1",
"polished": "^3.5.1"
"polished": "^4.0.0"
},
"peerDependencies": {
"@zendeskgarden/react-theming": "^8.1.0",
Expand Down
4 changes: 3 additions & 1 deletion packages/chrome/src/elements/Chrome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ const Chrome = React.forwardRef<HTMLDivElement, IChromeProps>(({ hue, isFluid, .
const LIGHT_COLOR = 'white';

/* prevent this expensive computation on every render */
return readableColor(backgroundColor!, LIGHT_COLOR) === LIGHT_COLOR;
return (
readableColor(backgroundColor!, LIGHT_COLOR, undefined, false /* strict */) === LIGHT_COLOR
);
}

return false;
Expand Down
14 changes: 14 additions & 0 deletions packages/chrome/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
# yarn lockfile v1


"@babel/runtime@^7.12.0":
version "7.12.5"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.5.tgz#410e7e487441e1b360c29be715d870d9b985882e"
integrity sha512-plcc+hbExy3McchJCEQG3knOsuh3HH+Prx1P6cLIkET/0dLuQDEnrT+s27Axgc9bqfsmNUNHfscgMUdBpC9xfg==
dependencies:
regenerator-runtime "^0.13.4"

"@babel/runtime@^7.8.4":
version "7.8.7"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.8.7.tgz#8fefce9802db54881ba59f90bb28719b4996324d"
Expand Down Expand Up @@ -72,6 +79,13 @@ polished@^3.5.1:
dependencies:
"@babel/runtime" "^7.8.7"

polished@^4.0.0:
version "4.0.3"
resolved "https://registry.yarnpkg.com/polished/-/polished-4.0.3.tgz#e2bde249f8884bdabc6997dd3eca225ee32f7a26"
integrity sha512-yOALHMrqcYHlHIxFkHvGX8NGsjsbSaYMZ8Z3uEElVpzF5ZgNmTgqMOh4bnSVXGC6sXjBTZCH6+GebTRWhJR4zQ==
dependencies:
"@babel/runtime" "^7.12.0"

react-uid@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/react-uid/-/react-uid-2.2.0.tgz#0f77e1e0594fbf29fc4fe528cc9aa415c5bf9159"
Expand Down
2 changes: 1 addition & 1 deletion packages/dropdowns/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@zendeskgarden/container-utilities": "^0.5.1",
"@zendeskgarden/react-forms": "^8.25.2",
"downshift": "^6.0.0",
"polished": "^3.5.1",
"polished": "^4.0.0",
"react-popper": "^1.3.4"
},
"peerDependencies": {
Expand Down
14 changes: 14 additions & 0 deletions packages/dropdowns/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
dependencies:
regenerator-runtime "^0.13.4"

"@babel/runtime@^7.12.0":
version "7.12.5"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.5.tgz#410e7e487441e1b360c29be715d870d9b985882e"
integrity sha512-plcc+hbExy3McchJCEQG3knOsuh3HH+Prx1P6cLIkET/0dLuQDEnrT+s27Axgc9bqfsmNUNHfscgMUdBpC9xfg==
dependencies:
regenerator-runtime "^0.13.4"

"@babel/runtime@^7.8.4":
version "7.8.7"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.8.7.tgz#8fefce9802db54881ba59f90bb28719b4996324d"
Expand Down Expand Up @@ -273,6 +280,13 @@ polished@^3.5.1:
dependencies:
"@babel/runtime" "^7.8.7"

polished@^4.0.0:
version "4.0.3"
resolved "https://registry.yarnpkg.com/polished/-/polished-4.0.3.tgz#e2bde249f8884bdabc6997dd3eca225ee32f7a26"
integrity sha512-yOALHMrqcYHlHIxFkHvGX8NGsjsbSaYMZ8Z3uEElVpzF5ZgNmTgqMOh4bnSVXGC6sXjBTZCH6+GebTRWhJR4zQ==
dependencies:
"@babel/runtime" "^7.12.0"

popper.js@^1.14.4:
version "1.16.1"
resolved "https://registry.yarnpkg.com/popper.js/-/popper.js-1.16.1.tgz#2a223cb3dc7b6213d740e40372be40de43e65b1b"
Expand Down
2 changes: 1 addition & 1 deletion packages/forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"dependencies": {
"@zendeskgarden/container-field": "^1.3.1",
"@zendeskgarden/container-utilities": "^0.5.1",
"polished": "^3.5.1"
"polished": "^4.0.0"
},
"peerDependencies": {
"@zendeskgarden/react-theming": "^8.1.0",
Expand Down
14 changes: 14 additions & 0 deletions packages/forms/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
# yarn lockfile v1


"@babel/runtime@^7.12.0":
version "7.12.5"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.5.tgz#410e7e487441e1b360c29be715d870d9b985882e"
integrity sha512-plcc+hbExy3McchJCEQG3knOsuh3HH+Prx1P6cLIkET/0dLuQDEnrT+s27Axgc9bqfsmNUNHfscgMUdBpC9xfg==
dependencies:
regenerator-runtime "^0.13.4"

"@babel/runtime@^7.8.4":
version "7.8.7"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.8.7.tgz#8fefce9802db54881ba59f90bb28719b4996324d"
Expand Down Expand Up @@ -102,6 +109,13 @@ polished@^3.5.1:
dependencies:
"@babel/runtime" "^7.8.7"

polished@^4.0.0:
version "4.0.3"
resolved "https://registry.yarnpkg.com/polished/-/polished-4.0.3.tgz#e2bde249f8884bdabc6997dd3eca225ee32f7a26"
integrity sha512-yOALHMrqcYHlHIxFkHvGX8NGsjsbSaYMZ8Z3uEElVpzF5ZgNmTgqMOh4bnSVXGC6sXjBTZCH6+GebTRWhJR4zQ==
dependencies:
"@babel/runtime" "^7.12.0"

prop-types@^15.7.2:
version "15.7.2"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5"
Expand Down
2 changes: 1 addition & 1 deletion packages/grid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"sideEffects": false,
"types": "dist/typings/index.d.ts",
"dependencies": {
"polished": "^3.5.1"
"polished": "^4.0.0"
},
"peerDependencies": {
"@zendeskgarden/react-theming": "^8.1.0",
Expand Down
Loading

0 comments on commit a084164

Please sign in to comment.