From 9667f0fc3be38a2e494ab4d5a600660e661b022c Mon Sep 17 00:00:00 2001 From: HichamELBSI Date: Thu, 1 Oct 2020 16:55:10 +0200 Subject: [PATCH] Bump BuffetJS to 3.3.1 Signed-off-by: HichamELBSI --- packages/strapi-admin/package.json | 12 +- .../tests/__snapshots__/index.test.js.snap | 522 +++++++++--------- packages/strapi-helper-plugin/package.json | 12 +- .../package.json | 12 +- .../package.json | 12 +- .../strapi-plugin-documentation/package.json | 12 +- packages/strapi-plugin-upload/package.json | 12 +- .../package.json | 12 +- yarn.lock | 62 +-- 9 files changed, 337 insertions(+), 331 deletions(-) diff --git a/packages/strapi-admin/package.json b/packages/strapi-admin/package.json index 82b7406065..70a2ae1b37 100644 --- a/packages/strapi-admin/package.json +++ b/packages/strapi-admin/package.json @@ -23,12 +23,12 @@ "@babel/preset-env": "^7.9.5", "@babel/preset-react": "^7.9.4", "@babel/runtime": "^7.9.2", - "@buffetjs/core": "3.3.0", - "@buffetjs/custom": "3.3.0", - "@buffetjs/hooks": "3.3.0", - "@buffetjs/icons": "3.3.0", - "@buffetjs/styles": "3.3.0", - "@buffetjs/utils": "3.3.0", + "@buffetjs/core": "3.3.1", + "@buffetjs/custom": "3.3.1", + "@buffetjs/hooks": "3.3.1", + "@buffetjs/icons": "3.3.1", + "@buffetjs/styles": "3.3.1", + "@buffetjs/utils": "3.3.1", "@casl/ability": "^4.1.5", "@fortawesome/fontawesome-free": "^5.11.2", "@fortawesome/fontawesome-svg-core": "^1.2.25", diff --git a/packages/strapi-helper-plugin/lib/src/components/PopUpWarning/tests/__snapshots__/index.test.js.snap b/packages/strapi-helper-plugin/lib/src/components/PopUpWarning/tests/__snapshots__/index.test.js.snap index dbe9e4e7aa..16b7bade14 100644 --- a/packages/strapi-helper-plugin/lib/src/components/PopUpWarning/tests/__snapshots__/index.test.js.snap +++ b/packages/strapi-helper-plugin/lib/src/components/PopUpWarning/tests/__snapshots__/index.test.js.snap @@ -2,7 +2,7 @@ exports[` should render properly should match snapshot if onlyConfirmButton is false 1`] = ` - .c7 { + .c8 { height: 30px; padding: 0 15px 2px; font-weight: 600; @@ -17,30 +17,273 @@ exports[` should render properly should match snapshot if onlyCo color: #9ea7b8; } -.c7:hover, -.c7:active { +.c8:hover, +.c8:active { -webkit-box-shadow: inset 0 0 30px rgba(0,0,0,0.1); -moz-box-shadow: inset 0 0 30px rgba(0,0,0,0.1); box-shadow: inset 0 0 30px [object Object]; } -.c7:focus { +.c8:focus { outline: 0; } -.c7 > span svg { +.c8 > span svg { font-size: 10px; vertical-align: initial; } -.c7 > svg { +.c8 > svg { height: 10px; width: auto; margin-right: 10px; vertical-align: baseline; } -.c8 { +.c9 { + height: 30px; + padding: 0 15px 2px; + font-weight: 600; + font-size: 1.3rem; + line-height: normal; + border-radius: 2px; + cursor: pointer; + outline: 0; + background-color: #ffffff; + background-color: #F64D0A; + border: 1px solid #F64D0A; + color: #ffffff; +} + +.c9:hover, +.c9:active { + -webkit-box-shadow: inset 0 0 30px rgba(0,0,0,0.1); + -moz-box-shadow: inset 0 0 30px rgba(0,0,0,0.1); + box-shadow: inset 0 0 30px [object Object]; +} + +.c9:focus { + outline: 0; +} + +.c9 > span svg { + font-size: 10px; + vertical-align: initial; +} + +.c9 > svg { + height: 10px; + width: auto; + margin-right: 10px; + vertical-align: baseline; +} + +.c5 { + margin: 0; + line-height: 18px; + color: #f64d0a; + font-size: 13px; + font-weight: 400; + text-transform: none; +} + +.c3 { + padding: 0; + text-align: center; +} + +.c3 > div { + padding: 2.1rem 3rem 1.5rem 3rem !important; + text-align: center; +} + +.c6 { + width: 100%; + line-height: 1.8rem; + margin: auto; + min-height: 36px; +} + +.c1 { + position: absolute; + top: 18px; + right: 30px; + cursor: pointer; +} + +.c1 > svg { + fill: #c3c5c8; +} + +.c2 { + padding-left: 30px; + padding-right: 30px; + padding-top: 17px; + padding-bottom: 22px !important; + border: 0; + background-color: #fafafa; +} + +.c2 > h5 { + width: 100%; + text-align: center; + font-family: Lato; + font-weight: bold !important; + font-size: 1.8rem !important; + line-height: normal; +} + +.c2 > button { + display: none; +} + +.c4 { + width: 2.5rem; + margin-bottom: 2.2rem; +} + +.c0 { + width: 41.6rem !important; + margin: 14.4rem auto !important; + -webkit-font-smoothing: antialiased !important; +} + +.c0 > div { + width: 41.6rem; + padding: 0 !important; + border: none; + border-radius: 2px; +} + +.c7 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + width: 100%; + margin-top: 19px; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; + background-color: #eff3f6; + padding: 15px 30px 17px 30px; +} + +.c7 > button { + padding-left: 30px; + padding-right: 30px; +} + +
+ + + +`; + +exports[` should render properly should match snapshot if onlyConfirmButton is true 1`] = ` + + .c8 { height: 30px; padding: 0 15px 2px; font-weight: 600; @@ -78,6 +321,15 @@ exports[` should render properly should match snapshot if onlyCo vertical-align: baseline; } +.c5 { + margin: 0; + line-height: 18px; + color: #f64d0a; + font-size: 13px; + font-weight: 400; + text-transform: none; +} + .c3 { padding: 0; text-align: center; @@ -88,13 +340,7 @@ exports[` should render properly should match snapshot if onlyCo text-align: center; } -.c5 { - margin: 0; - line-height: 18px; - color: #f64d0a; - font-size: 13px; - font-weight: 400; - text-transform: none; +.c6 { width: 100%; line-height: 1.8rem; margin: auto; @@ -152,7 +398,7 @@ exports[` should render properly should match snapshot if onlyCo border-radius: 2px; } -.c6 { +.c7 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -167,7 +413,7 @@ exports[` should render properly should match snapshot if onlyCo padding: 15px 30px 17px 30px; } -.c6 > button { +.c7 > button { padding-left: 30px; padding-right: 30px; } @@ -235,7 +481,7 @@ exports[` should render properly should match snapshot if onlyCo src="IMAGE_MOCK" />

should render properly should match snapshot if onlyCo

- -
- - - - -
-`; - -exports[` should render properly should match snapshot if onlyConfirmButton is true 1`] = ` - - .c7 { - height: 30px; - padding: 0 15px 2px; - font-weight: 600; - font-size: 1.3rem; - line-height: normal; - border-radius: 2px; - cursor: pointer; - outline: 0; - background-color: #ffffff; - background-color: #F64D0A; - border: 1px solid #F64D0A; - color: #ffffff; -} - -.c7:hover, -.c7:active { - -webkit-box-shadow: inset 0 0 30px rgba(0,0,0,0.1); - -moz-box-shadow: inset 0 0 30px rgba(0,0,0,0.1); - box-shadow: inset 0 0 30px [object Object]; -} - -.c7:focus { - outline: 0; -} - -.c7 > span svg { - font-size: 10px; - vertical-align: initial; -} - -.c7 > svg { - height: 10px; - width: auto; - margin-right: 10px; - vertical-align: baseline; -} - -.c3 { - padding: 0; - text-align: center; -} - -.c3 > div { - padding: 2.1rem 3rem 1.5rem 3rem !important; - text-align: center; -} - -.c5 { - margin: 0; - line-height: 18px; - color: #f64d0a; - font-size: 13px; - font-weight: 400; - text-transform: none; - width: 100%; - line-height: 1.8rem; - margin: auto; - min-height: 36px; -} - -.c1 { - position: absolute; - top: 18px; - right: 30px; - cursor: pointer; -} - -.c1 > svg { - fill: #c3c5c8; -} - -.c2 { - padding-left: 30px; - padding-right: 30px; - padding-top: 17px; - padding-bottom: 22px !important; - border: 0; - background-color: #fafafa; -} - -.c2 > h5 { - width: 100%; - text-align: center; - font-family: Lato; - font-weight: bold !important; - font-size: 1.8rem !important; - line-height: normal; -} - -.c2 > button { - display: none; -} - -.c4 { - width: 2.5rem; - margin-bottom: 2.2rem; -} - -.c0 { - width: 41.6rem !important; - margin: 14.4rem auto !important; - -webkit-font-smoothing: antialiased !important; -} - -.c0 > div { - width: 41.6rem; - padding: 0 !important; - border: none; - border-radius: 2px; -} - -.c6 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - width: 100%; - margin-top: 19px; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - -ms-flex-pack: justify; - justify-content: space-between; - background-color: #eff3f6; - padding: 15px 30px 17px 30px; -} - -.c6 > button { - padding-left: 30px; - padding-right: 30px; -} - -
-