Skip to content

Commit 0505284

Browse files
committed
chore(update): Update core version to 2.x
1 parent f917e5b commit 0505284

4 files changed

Lines changed: 121 additions & 43 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@babel/plugin-proposal-class-properties": "^7.1.0",
2222
"@babel/preset-env": "^7.1.6",
2323
"@babel/preset-react": "^7.0.0",
24-
"@patternfly/react-core": "^1.40.1",
24+
"@patternfly/react-core": "^2.1.4",
2525
"babel-jest": "^24.1.0",
2626
"babel-loader": "^8.0.4",
2727
"css-loader": "^1.0.1",

src/App/__snapshots__/app.test.js.snap

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,11 @@ exports[`App tests should render default App component 1`] = `
99
>
1010
<Alert
1111
action={
12-
<Button
13-
aria-label={null}
14-
className="dismiss-notification"
15-
component="button"
16-
isActive={false}
17-
isBlock={false}
18-
isDisabled={false}
19-
isFocus={false}
20-
isHover={false}
21-
onClick={[Function]}
22-
type="button"
23-
variant="secondary"
24-
>
25-
Dismiss
26-
</Button>
12+
<AlertActionCloseButton
13+
aria-label=""
14+
className=""
15+
onClose={[Function]}
16+
/>
2717
}
2818
className=""
2919
title="Setup Complete"

src/App/index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { Component } from 'react';
2-
import { Alert, Button } from '@patternfly/react-core';
2+
import { Alert, AlertActionCloseButton } from '@patternfly/react-core';
33
import './app.css';
44

55
export default class App extends Component {
@@ -18,11 +18,7 @@ export default class App extends Component {
1818
<Alert
1919
variant="success"
2020
title="Setup Complete"
21-
action={
22-
<Button className="dismiss-notification" onClick={this.dismissNotification} variant="secondary">
23-
Dismiss
24-
</Button>
25-
}
21+
action={<AlertActionCloseButton onClose={this.dismissNotification} />}
2622
>
2723
You have successfully launched your patternfly starter project.
2824
</Alert>

yarn.lock

Lines changed: 113 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -681,16 +681,47 @@
681681
find-root "^1.1.0"
682682
source-map "^0.7.2"
683683

684+
"@emotion/cache@^10.0.7":
685+
version "10.0.7"
686+
resolved "https://registry.yarnpkg.com/@emotion/cache/-/cache-10.0.7.tgz#6221de2e939f62022c04b4df2c165ce577809f23"
687+
integrity sha512-wscXuawG+nQhSNbDpJdAqvv5d2g1O+fpwf/wD/CAmW/wsuN8hNzahWh2ldSVakqO9sINewyQNFl74IeDeTkRZg==
688+
dependencies:
689+
"@emotion/sheet" "0.9.2"
690+
"@emotion/stylis" "0.8.3"
691+
"@emotion/utils" "0.11.1"
692+
"@emotion/weak-memoize" "0.2.2"
693+
694+
"@emotion/hash@0.7.1":
695+
version "0.7.1"
696+
resolved "https://registry.yarnpkg.com/@emotion/hash/-/hash-0.7.1.tgz#9833722341379fb7d67f06a4b00ab3c37913da53"
697+
integrity sha512-OYpa/Sg+2GDX+jibUfpZVn1YqSVRpYmTLF2eyAfrFTIJSbwyIrc+YscayoykvaOME/wV4BV0Sa0yqdMrgse6mA==
698+
684699
"@emotion/hash@^0.6.2", "@emotion/hash@^0.6.6":
685700
version "0.6.6"
686701
resolved "https://registry.yarnpkg.com/@emotion/hash/-/hash-0.6.6.tgz#62266c5f0eac6941fece302abad69f2ee7e25e44"
687702
integrity sha512-ojhgxzUHZ7am3D2jHkMzPpsBAiB005GF5YU4ea+8DNPybMk01JJUM9V9YRlF/GE95tcOm8DxQvWA2jq19bGalQ==
688703

704+
"@emotion/memoize@0.7.1":
705+
version "0.7.1"
706+
resolved "https://registry.yarnpkg.com/@emotion/memoize/-/memoize-0.7.1.tgz#e93c13942592cf5ef01aa8297444dc192beee52f"
707+
integrity sha512-Qv4LTqO11jepd5Qmlp3M1YEjBumoTHcHFdgPTQ+sFlIL5myi/7xu/POwP7IRu6odBdmLXdtIs1D6TuW6kbwbbg==
708+
689709
"@emotion/memoize@^0.6.1", "@emotion/memoize@^0.6.6":
690710
version "0.6.6"
691711
resolved "https://registry.yarnpkg.com/@emotion/memoize/-/memoize-0.6.6.tgz#004b98298d04c7ca3b4f50ca2035d4f60d2eed1b"
692712
integrity sha512-h4t4jFjtm1YV7UirAFuSuFGyLa+NNxjdkq6DpFLANNQY5rHueFZHVY+8Cu1HYVP6DrheB0kv4m5xPjo7eKT7yQ==
693713

714+
"@emotion/serialize@^0.11.4":
715+
version "0.11.4"
716+
resolved "https://registry.yarnpkg.com/@emotion/serialize/-/serialize-0.11.4.tgz#691e615184a23cd3b9ae9b1eaa79eb8798e52379"
717+
integrity sha512-JKmn+Qnc8f6OZKSHmNq1RpO27raIi6Kj0uqBaSOUVMW6NI0M3wLpV4pK5hZO4I+1WuCC39hOBPgQ/GcgoHbDeg==
718+
dependencies:
719+
"@emotion/hash" "0.7.1"
720+
"@emotion/memoize" "0.7.1"
721+
"@emotion/unitless" "0.7.3"
722+
"@emotion/utils" "0.11.1"
723+
csstype "^2.5.7"
724+
694725
"@emotion/serialize@^0.9.1":
695726
version "0.9.1"
696727
resolved "https://registry.yarnpkg.com/@emotion/serialize/-/serialize-0.9.1.tgz#a494982a6920730dba6303eb018220a2b629c145"
@@ -701,42 +732,69 @@
701732
"@emotion/unitless" "^0.6.7"
702733
"@emotion/utils" "^0.8.2"
703734

735+
"@emotion/sheet@0.9.2":
736+
version "0.9.2"
737+
resolved "https://registry.yarnpkg.com/@emotion/sheet/-/sheet-0.9.2.tgz#74e5c6b5e489a1ba30ab246ab5eedd96916487c4"
738+
integrity sha512-pVBLzIbC/QCHDKJF2E82V2H/W/B004mDFQZiyo/MSR+VC4pV5JLG0TF/zgQDFvP3fZL/5RTPGEmXlYJBMUuJ+A==
739+
740+
"@emotion/stylis@0.8.3":
741+
version "0.8.3"
742+
resolved "https://registry.yarnpkg.com/@emotion/stylis/-/stylis-0.8.3.tgz#3ca7e9bcb31b3cb4afbaeb66156d86ee85e23246"
743+
integrity sha512-M3nMfJ6ndJMYloSIbYEBq6G3eqoYD41BpDOxreE8j0cb4fzz/5qvmqU9Mb2hzsXcCnIlGlWhS03PCzVGvTAe0Q==
744+
704745
"@emotion/stylis@^0.7.0":
705746
version "0.7.1"
706747
resolved "https://registry.yarnpkg.com/@emotion/stylis/-/stylis-0.7.1.tgz#50f63225e712d99e2b2b39c19c70fff023793ca5"
707748
integrity sha512-/SLmSIkN13M//53TtNxgxo57mcJk/UJIDFRKwOiLIBEyBHEcipgR6hNMQ/59Sl4VjCJ0Z/3zeAZyvnSLPG/1HQ==
708749

750+
"@emotion/unitless@0.7.3":
751+
version "0.7.3"
752+
resolved "https://registry.yarnpkg.com/@emotion/unitless/-/unitless-0.7.3.tgz#6310a047f12d21a1036fb031317219892440416f"
753+
integrity sha512-4zAPlpDEh2VwXswwr/t8xGNDGg8RQiPxtxZ3qQEXyQsBV39ptTdESCjuBvGze1nLMVrxmTIKmnO/nAV8Tqjjzg==
754+
709755
"@emotion/unitless@^0.6.2", "@emotion/unitless@^0.6.7":
710756
version "0.6.7"
711757
resolved "https://registry.yarnpkg.com/@emotion/unitless/-/unitless-0.6.7.tgz#53e9f1892f725b194d5e6a1684a7b394df592397"
712758
integrity sha512-Arj1hncvEVqQ2p7Ega08uHLr1JuRYBuO5cIvcA+WWEQ5+VmkOE3ZXzl04NbQxeQpWX78G7u6MqxKuNX3wvYZxg==
713759

760+
"@emotion/utils@0.11.1":
761+
version "0.11.1"
762+
resolved "https://registry.yarnpkg.com/@emotion/utils/-/utils-0.11.1.tgz#8529b7412a6eb4b48bdf6e720cc1b8e6e1e17628"
763+
integrity sha512-8M3VN0hetwhsJ8dH8VkVy7xo5/1VoBsDOk/T4SJOeXwTO1c4uIqVNx2qyecLFnnUWD5vvUqHQ1gASSeUN6zcTg==
764+
714765
"@emotion/utils@^0.8.2":
715766
version "0.8.2"
716767
resolved "https://registry.yarnpkg.com/@emotion/utils/-/utils-0.8.2.tgz#576ff7fb1230185b619a75d258cbc98f0867a8dc"
717768
integrity sha512-rLu3wcBWH4P5q1CGoSSH/i9hrXs7SlbRLkoq9IGuoPYNGQvDJ3pt/wmOM+XgYjIDRMVIdkUWt0RsfzF50JfnCw==
718769

719-
"@patternfly/react-core@^1.40.1":
720-
version "1.51.6"
721-
resolved "https://registry.yarnpkg.com/@patternfly/react-core/-/react-core-1.51.6.tgz#2ed675031f1e2b328e773742411d1b7fc62c3554"
722-
integrity sha512-SROyH59owrz3Qr3SF9pMayOeHixjI7DhPf/NB1ixLqedvdCjHeKbwYtbDRnDWBiScRfYoRFmcetzKG429eiVUg==
770+
"@emotion/weak-memoize@0.2.2":
771+
version "0.2.2"
772+
resolved "https://registry.yarnpkg.com/@emotion/weak-memoize/-/weak-memoize-0.2.2.tgz#63985d3d8b02530e0869962f4da09142ee8e200e"
773+
integrity sha512-n/VQ4mbfr81aqkx/XmVicOLjviMuy02eenSdJY33SVA7S2J42EU0P1H0mOogfYedb3wXA0d/LVtBrgTSm04WEA==
774+
775+
"@patternfly/react-core@^2.1.4":
776+
version "2.1.4"
777+
resolved "https://registry.yarnpkg.com/@patternfly/react-core/-/react-core-2.1.4.tgz#be16ae1928d694eb1408f585542471abf3c147f9"
778+
integrity sha512-A7TpS4r4p/poPQNgUfNb4jJoaGMC394jLTX0w/ZKzPkkIsdbZaxLdQRD7hxgaLS4YAyT1//ZHuieaaZGBzVQiQ==
723779
dependencies:
724-
"@patternfly/react-icons" "^2.10.5"
725-
"@patternfly/react-styles" "^2.3.0"
726-
"@patternfly/react-tokens" "^1.10.2"
780+
"@patternfly/react-icons" "^3.0.0"
781+
"@patternfly/react-styles" "^2.3.2"
782+
"@patternfly/react-tokens" "^2.0.0"
727783
"@tippy.js/react" "^1.1.1"
784+
emotion "^10.0.6"
728785
exenv "^1.2.2"
729786
focus-trap-react "^4.0.1"
787+
tippy.js "^3.4.1"
730788

731-
"@patternfly/react-icons@^2.10.5":
732-
version "2.10.6"
733-
resolved "https://registry.yarnpkg.com/@patternfly/react-icons/-/react-icons-2.10.6.tgz#496c83e1a54257d3929df58a40e42410af35968d"
734-
integrity sha512-XAvmPEEINfTrj5nKXcOFxyuFVtUOR6/IG4ZsmwwuECgf9lhDnsqpZyxSzIzhtrL+IivRQrswd8rc5wREF0+N4Q==
789+
"@patternfly/react-icons@^3.0.0":
790+
version "3.0.1"
791+
resolved "https://registry.yarnpkg.com/@patternfly/react-icons/-/react-icons-3.0.1.tgz#47d0184f40686f3fb6a0b9b0e835013d95320f06"
792+
integrity sha512-A/ACY0zCpIvNR8bzR21hKghqFTkFNIUX4pksDoMH8MY2tdCkJVZwkGAVy9jQ98H9DnyMnaNDd4KZuaoyicmlug==
735793

736-
"@patternfly/react-styles@^2.3.0":
737-
version "2.3.0"
738-
resolved "https://registry.yarnpkg.com/@patternfly/react-styles/-/react-styles-2.3.0.tgz#e6041a22c8ad11f622e6ca280075aaf482879d7e"
739-
integrity sha512-yST33QTrePsGjZMs/Q0eAC0CyL5gihL/+bHQscRn/IvpVSxSo+XwFKpEs+vNFFBFLkc1XKKB+cXosaofGAVjcQ==
794+
"@patternfly/react-styles@^2.3.2":
795+
version "2.3.2"
796+
resolved "https://registry.yarnpkg.com/@patternfly/react-styles/-/react-styles-2.3.2.tgz#b2dd4d0e202bbdda7ceaceb6beced9c1419d2d87"
797+
integrity sha512-2WJZUgF79Bc5hTKGkifRrl3rR+uU1GS7xtGQwsVpL1tEEV1GgcDxNGV1sh0eU4Nk54G1p6P48OMeKsgeI4U21w==
740798
dependencies:
741799
"@babel/helper-plugin-utils" "^7.0.0-beta.48"
742800
camel-case "^3.0.0"
@@ -751,10 +809,10 @@
751809
relative "^3.0.2"
752810
resolve-from "^4.0.0"
753811

754-
"@patternfly/react-tokens@^1.10.2":
755-
version "1.10.2"
756-
resolved "https://registry.yarnpkg.com/@patternfly/react-tokens/-/react-tokens-1.10.2.tgz#16429a1093aa239b353d5f32dfca90d80074fc54"
757-
integrity sha512-jGGYQT4x01JYfmyLwSZntKu0ko8o8D6wVXtQiuIYD2oyZHl6+dQ/p71SHb6QKF53cr6bWBEQh5am2Ns+6jS2Eg==
812+
"@patternfly/react-tokens@^2.0.0":
813+
version "2.0.0"
814+
resolved "https://registry.yarnpkg.com/@patternfly/react-tokens/-/react-tokens-2.0.0.tgz#db44313e884bf2a3eb78aba64f084f0a9dd93625"
815+
integrity sha512-buDc/zTC0C/zULLL+RqCNgLXmN7jV3lRX9VyELSVWiTWE5G9TB59G8/ccVqx1GSxYFF/kybEioMRnbQrVhB2hg==
758816

759817
"@tippy.js/react@^1.1.1":
760818
version "1.1.1"
@@ -1505,6 +1563,22 @@ babel-plugin-check-es2015-constants@^6.8.0:
15051563
dependencies:
15061564
babel-runtime "^6.22.0"
15071565

1566+
babel-plugin-emotion@^10.0.7:
1567+
version "10.0.7"
1568+
resolved "https://registry.yarnpkg.com/babel-plugin-emotion/-/babel-plugin-emotion-10.0.7.tgz#3634ada6dee762140f27db07387feaec8d2cb619"
1569+
integrity sha512-5PdLJYme3tFN97M3tBbEUS/rJVkS9EMbo7rs7/7BAUEUVMWehm1kb5DEbp16Rs+UsI3rTXRan1iqpL022T8XxA==
1570+
dependencies:
1571+
"@babel/helper-module-imports" "^7.0.0"
1572+
"@emotion/hash" "0.7.1"
1573+
"@emotion/memoize" "0.7.1"
1574+
"@emotion/serialize" "^0.11.4"
1575+
babel-plugin-macros "^2.0.0"
1576+
babel-plugin-syntax-jsx "^6.18.0"
1577+
convert-source-map "^1.5.0"
1578+
escape-string-regexp "^1.0.5"
1579+
find-root "^1.1.0"
1580+
source-map "^0.5.7"
1581+
15081582
babel-plugin-emotion@^9.2.11:
15091583
version "9.2.11"
15101584
resolved "https://registry.yarnpkg.com/babel-plugin-emotion/-/babel-plugin-emotion-9.2.11.tgz#319c005a9ee1d15bb447f59fe504c35fd5807728"
@@ -2631,6 +2705,16 @@ create-emotion-server@^9.2.12:
26312705
multipipe "^1.0.2"
26322706
through "^2.3.8"
26332707

2708+
create-emotion@^10.0.7:
2709+
version "10.0.7"
2710+
resolved "https://registry.yarnpkg.com/create-emotion/-/create-emotion-10.0.7.tgz#608d69c550e2f57827383762d416a9ddf75d8bed"
2711+
integrity sha512-2T6vvvh7XN/MvI3far2SXeQ5s7wti/dae6jKuHxkK4IA1IKdYocKTujZ+r56azZ8fguq3Qj4ua1AJ2vHCq7VTg==
2712+
dependencies:
2713+
"@emotion/cache" "^10.0.7"
2714+
"@emotion/serialize" "^0.11.4"
2715+
"@emotion/sheet" "0.9.2"
2716+
"@emotion/utils" "0.11.1"
2717+
26342718
create-emotion@^9.2.12:
26352719
version "9.2.12"
26362720
resolved "https://registry.yarnpkg.com/create-emotion/-/create-emotion-9.2.12.tgz#0fc8e7f92c4f8bb924b0fef6781f66b1d07cb26f"
@@ -2914,7 +2998,7 @@ cssstyle@^1.0.0:
29142998
dependencies:
29152999
cssom "0.3.x"
29163000

2917-
csstype@^2.5.2:
3001+
csstype@^2.5.2, csstype@^2.5.7:
29183002
version "2.6.2"
29193003
resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.2.tgz#3043d5e065454579afc7478a18de41909c8a2f01"
29203004
integrity sha512-Rl7PvTae0pflc1YtxtKbiSqq20Ts6vpIYOD5WBafl4y123DyHUeLrRdQP66sQW8/6gmX8jrYJLXwNeMqYVJcow==
@@ -3331,6 +3415,14 @@ emotion-server@^9.2.6:
33313415
dependencies:
33323416
create-emotion-server "^9.2.12"
33333417

3418+
emotion@^10.0.6:
3419+
version "10.0.7"
3420+
resolved "https://registry.yarnpkg.com/emotion/-/emotion-10.0.7.tgz#74ea432c7004c2bd5452d017d52e307a7a31a835"
3421+
integrity sha512-k1gGBoel9rlHvHIUVHyk4iJPsRaDsrpr7vKivOmdJAH2Va+smxIYvsjjzXnxTeqJt5IwcVBareuoAJMxeShG/w==
3422+
dependencies:
3423+
babel-plugin-emotion "^10.0.7"
3424+
create-emotion "^10.0.7"
3425+
33343426
emotion@^9.2.6:
33353427
version "9.2.12"
33363428
resolved "https://registry.yarnpkg.com/emotion/-/emotion-9.2.12.tgz#53925aaa005614e65c6e43db8243c843574d1ea9"
@@ -8752,7 +8844,7 @@ timsort@^0.3.0:
87528844
resolved "https://registry.yarnpkg.com/timsort/-/timsort-0.3.0.tgz#405411a8e7e6339fe64db9a234de11dc31e02bd4"
87538845
integrity sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=
87548846

8755-
tippy.js@^3.2.0:
8847+
tippy.js@^3.2.0, tippy.js@^3.4.1:
87568848
version "3.4.1"
87578849
resolved "https://registry.yarnpkg.com/tippy.js/-/tippy.js-3.4.1.tgz#f0eb3081824ad6c5d364336451ad77ae2f543da8"
87588850
integrity sha512-ZiyGP9WZyCCcjxKM4G88cm4U1r1ytjeMDGa5FSKPaPzwc/3yZJVZsb1ffcmqUMCpryRp5LNxRNGKLzbs11sb/Q==

0 commit comments

Comments
 (0)