From 1ec7476d50af321a3ea77e90ec416ee21cebc923 Mon Sep 17 00:00:00 2001 From: Chrillaz Date: Mon, 2 Nov 2020 15:23:49 +0100 Subject: [PATCH] Revert "Extended bootstrap button on wp-bootstrap-blocks" This reverts commit a35431d8465f02f69c45973307cabab2d7def514. --- blocks.php | 2 +- build/accordion.js | 2 +- build/index.asset.php | 2 +- build/index.css | 2 +- build/index.css.map | 2 +- build/index.js | 2 +- build/style-index.css | 2 +- build/style-index.css.map | 2 +- readme.txt | 6 +----- src/components/controls.js | 32 ------------------------------ src/filters/attributes.js | 40 +++++++++++--------------------------- src/filters/blockEdit.js | 6 ++---- src/styles/_common.scss | 5 ----- 13 files changed, 22 insertions(+), 83 deletions(-) diff --git a/blocks.php b/blocks.php index 861444a..6c8da8d 100644 --- a/blocks.php +++ b/blocks.php @@ -2,7 +2,7 @@ /** * Plugin Name: Noor Blocks * Description: Collection of custom blocks. - * Version: 1.1.4 + * Version: 1.1.3 * Author: Noor Digital Agency * Author URI: https://noordigital.com * Text Domain: blocks diff --git a/build/accordion.js b/build/accordion.js index ecc0689..d896294 100644 --- a/build/accordion.js +++ b/build/accordion.js @@ -1 +1 @@ -!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=24)}([,,,,,function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => 'b272959f1e9ea39ae01ce48f310d8aa3'), 'accordion.js' => array('dependencies' => array('wp-polyfill'), 'version' => '667f7b37f3c5299d2fe9a3111cca5cee')); \ No newline at end of file + array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-polyfill'), 'version' => '3e3431dedc31a36a978dcbe88a15441b'), 'accordion.js' => array('dependencies' => array('wp-polyfill'), 'version' => '787c70681cd515f09219444213a9f808')); \ No newline at end of file diff --git a/build/index.css b/build/index.css index 149a4fd..07fe663 100644 --- a/build/index.css +++ b/build/index.css @@ -1,2 +1,2 @@ -.has-icon-arrow-right-alt .wp-block-button__link:after,.has-icon-arrow-right-alt .wp-block-button__link:before,.has-icon-arrow-right-alt:after,.has-icon-arrow-right-alt:before{display:none;font-family:dashicons;font-size:20px;vertical-align:middle}.has-icon-arrow-right-alt.has-left-icon .wp-block-button__link:before,.has-icon-arrow-right-alt.has-left-icon:before{display:inline-block;content:"";padding-right:8px}.has-icon-arrow-right-alt.has-right-icon .wp-block-button__link:after,.has-icon-arrow-right-alt.has-right-icon:after{position:relative;display:inline-block;content:"";right:0;padding-left:8px;transition:right .25s ease-in-out}.has-icon-arrow-right-alt:hover .wp-block-button__link:after,.has-icon-arrow-right-alt:hover:after{right:-6px}.has-icon-arrow-right-alt2 .wp-block-button__link:after,.has-icon-arrow-right-alt2 .wp-block-button__link:before,.has-icon-arrow-right-alt2:after,.has-icon-arrow-right-alt2:before{display:none;font-family:dashicons;font-size:20px;vertical-align:middle}.has-icon-arrow-right-alt2.has-left-icon .wp-block-button__link:before,.has-icon-arrow-right-alt2.has-left-icon:before{display:inline-block;content:"";padding-right:8px}.has-icon-arrow-right-alt2.has-right-icon .wp-block-button__link:after,.has-icon-arrow-right-alt2.has-right-icon:after{position:relative;display:inline-block;content:"";right:0;padding-left:8px;transition:right .25s ease-in-out}.has-icon-arrow-right-alt2:hover .wp-block-button__link:after,.has-icon-arrow-right-alt2:hover:after{right:-6px}.has-icon-arrow-left-alt .wp-block-button__link:after,.has-icon-arrow-left-alt .wp-block-button__link:before,.has-icon-arrow-left-alt:after,.has-icon-arrow-left-alt:before{display:none;font-family:dashicons;font-size:20px;vertical-align:middle}.has-icon-arrow-left-alt.has-left-icon .wp-block-button__link:before,.has-icon-arrow-left-alt.has-left-icon:before{display:inline-block;content:"";padding-right:8px}.has-icon-arrow-left-alt.has-right-icon .wp-block-button__link:after,.has-icon-arrow-left-alt.has-right-icon:after{position:relative;display:inline-block;content:"";right:0;padding-left:8px;transition:right .25s ease-in-out}.has-icon-arrow-left-alt:hover .wp-block-button__link:after,.has-icon-arrow-left-alt:hover:after{right:-6px}.has-icon-arrow-left-alt2 .wp-block-button__link:after,.has-icon-arrow-left-alt2 .wp-block-button__link:before,.has-icon-arrow-left-alt2:after,.has-icon-arrow-left-alt2:before{display:none;font-family:dashicons;font-size:20px;vertical-align:middle}.has-icon-arrow-left-alt2.has-left-icon .wp-block-button__link:before,.has-icon-arrow-left-alt2.has-left-icon:before{display:inline-block;content:"";padding-right:8px}.has-icon-arrow-left-alt2.has-right-icon .wp-block-button__link:after,.has-icon-arrow-left-alt2.has-right-icon:after{position:relative;display:inline-block;content:"";right:0;padding-left:8px;transition:right .25s ease-in-out}.has-icon-arrow-left-alt2:hover .wp-block-button__link:after,.has-icon-arrow-left-alt2:hover:after{right:-6px}.has-icon-clock .wp-block-button__link:after,.has-icon-clock .wp-block-button__link:before,.has-icon-clock:after,.has-icon-clock:before{display:none;font-family:dashicons;font-size:20px;vertical-align:middle}.has-icon-clock.has-left-icon .wp-block-button__link:before,.has-icon-clock.has-left-icon:before{display:inline-block;content:"";padding-right:8px}.has-icon-clock.has-right-icon .wp-block-button__link:after,.has-icon-clock.has-right-icon:after{position:relative;display:inline-block;content:"";right:0;padding-left:8px;transition:right .25s ease-in-out}.has-icon-clock:hover .wp-block-button__link:after,.has-icon-clock:hover:after{right:-6px}.has-icon-location .wp-block-button__link:after,.has-icon-location .wp-block-button__link:before,.has-icon-location:after,.has-icon-location:before{display:none;font-family:dashicons;font-size:20px;vertical-align:middle}.has-icon-location.has-left-icon .wp-block-button__link:before,.has-icon-location.has-left-icon:before{display:inline-block;content:"";padding-right:8px}.has-icon-location.has-right-icon .wp-block-button__link:after,.has-icon-location.has-right-icon:after{position:relative;display:inline-block;content:"";right:0;padding-left:8px;transition:right .25s ease-in-out}.has-icon-location:hover .wp-block-button__link:after,.has-icon-location:hover:after{right:-6px}.noor-block-bullet-point{display:flex;width:100%}.noor-block-bullet-point.has-align-center{justify-content:center}.noor-block-bullet-point.has-align-right{justify-content:flex-end}.noor-block-bullet-point.has-align-left{justify-content:flex-start}.noor-block-bullet-point__point{display:flex;flex-direction:column;justify-content:center;align-items:center;width:87px;height:87px;border-radius:50%;overflow:hidden}.noor-block-bullet-point__text-content{margin:0!important}.noor-block-google-map{position:relative;height:0;overflow:hidden}.noor-block-google-map iframe{position:absolute;top:0;left:0;width:100%!important;height:100%!important;border:0!important}.noor-block-accordion__content{display:none;height:auto;max-height:100%}.noor-block-accordion[aria-expanded=true]+.noor-block-accordion__content{display:block}.components-responsive-wrapper__content{width:auto} +.has-icon-arrow-right-alt .wp-block-button__link:after,.has-icon-arrow-right-alt .wp-block-button__link:before{display:none;font-family:dashicons;font-size:20px;vertical-align:middle}.has-icon-arrow-right-alt.has-left-icon .wp-block-button__link:before{display:inline-block;content:"";padding-right:8px}.has-icon-arrow-right-alt.has-right-icon .wp-block-button__link:after{position:relative;display:inline-block;content:"";right:0;padding-left:8px;transition:right .25s ease-in-out}.has-icon-arrow-right-alt:hover .wp-block-button__link:after{right:-6px}.has-icon-arrow-right-alt2 .wp-block-button__link:after,.has-icon-arrow-right-alt2 .wp-block-button__link:before{display:none;font-family:dashicons;font-size:20px;vertical-align:middle}.has-icon-arrow-right-alt2.has-left-icon .wp-block-button__link:before{display:inline-block;content:"";padding-right:8px}.has-icon-arrow-right-alt2.has-right-icon .wp-block-button__link:after{position:relative;display:inline-block;content:"";right:0;padding-left:8px;transition:right .25s ease-in-out}.has-icon-arrow-right-alt2:hover .wp-block-button__link:after{right:-6px}.has-icon-arrow-left-alt .wp-block-button__link:after,.has-icon-arrow-left-alt .wp-block-button__link:before{display:none;font-family:dashicons;font-size:20px;vertical-align:middle}.has-icon-arrow-left-alt.has-left-icon .wp-block-button__link:before{display:inline-block;content:"";padding-right:8px}.has-icon-arrow-left-alt.has-right-icon .wp-block-button__link:after{position:relative;display:inline-block;content:"";right:0;padding-left:8px;transition:right .25s ease-in-out}.has-icon-arrow-left-alt:hover .wp-block-button__link:after{right:-6px}.has-icon-arrow-left-alt2 .wp-block-button__link:after,.has-icon-arrow-left-alt2 .wp-block-button__link:before{display:none;font-family:dashicons;font-size:20px;vertical-align:middle}.has-icon-arrow-left-alt2.has-left-icon .wp-block-button__link:before{display:inline-block;content:"";padding-right:8px}.has-icon-arrow-left-alt2.has-right-icon .wp-block-button__link:after{position:relative;display:inline-block;content:"";right:0;padding-left:8px;transition:right .25s ease-in-out}.has-icon-arrow-left-alt2:hover .wp-block-button__link:after{right:-6px}.has-icon-clock .wp-block-button__link:after,.has-icon-clock .wp-block-button__link:before{display:none;font-family:dashicons;font-size:20px;vertical-align:middle}.has-icon-clock.has-left-icon .wp-block-button__link:before{display:inline-block;content:"";padding-right:8px}.has-icon-clock.has-right-icon .wp-block-button__link:after{position:relative;display:inline-block;content:"";right:0;padding-left:8px;transition:right .25s ease-in-out}.has-icon-clock:hover .wp-block-button__link:after{right:-6px}.has-icon-location .wp-block-button__link:after,.has-icon-location .wp-block-button__link:before{display:none;font-family:dashicons;font-size:20px;vertical-align:middle}.has-icon-location.has-left-icon .wp-block-button__link:before{display:inline-block;content:"";padding-right:8px}.has-icon-location.has-right-icon .wp-block-button__link:after{position:relative;display:inline-block;content:"";right:0;padding-left:8px;transition:right .25s ease-in-out}.has-icon-location:hover .wp-block-button__link:after{right:-6px}.noor-block-bullet-point{display:flex;width:100%}.noor-block-bullet-point.has-align-center{justify-content:center}.noor-block-bullet-point.has-align-right{justify-content:flex-end}.noor-block-bullet-point.has-align-left{justify-content:flex-start}.noor-block-bullet-point__point{display:flex;flex-direction:column;justify-content:center;align-items:center;width:87px;height:87px;border-radius:50%;overflow:hidden}.noor-block-bullet-point__text-content{margin:0!important}.noor-block-google-map{position:relative;height:0;overflow:hidden}.noor-block-google-map iframe{position:absolute;top:0;left:0;width:100%!important;height:100%!important;border:0!important}.noor-block-accordion__content{display:none;height:auto;max-height:100%}.noor-block-accordion[aria-expanded=true]+.noor-block-accordion__content{display:block}.components-responsive-wrapper__content{width:auto} /*# sourceMappingURL=index.css.map */ \ No newline at end of file diff --git a/build/index.css.map b/build/index.css.map index 011bf49..345196f 100644 --- a/build/index.css.map +++ b/build/index.css.map @@ -1 +1 @@ -{"version":3,"sources":["css ./node_modules/css-loader/dist/cjs.js??ref--7-1!./node_modules/postcss-loader/src??postcss!./node_modules/sass-loader/dist/cjs.js??ref--7-3!./src/styles/editor.scss"],"names":[],"mappings":"AAAA,gLAAoL,YAAA,CAAa,qBAAA,CAAwB,cAAA,CAAe,qBAAA,CAAsB,qHAAuH,oBAAA,CAAqB,WAAA,CAAY,iBAAA,CAAkB,qHAAuH,iBAAA,CAAkB,oBAAA,CAAqB,WAAA,CAAY,OAAA,CAAQ,gBAAA,CAAiB,iCAAA,CAAkC,mGAAqG,UAAA,CAAW,oLAAwL,YAAA,CAAa,qBAAA,CAAwB,cAAA,CAAe,qBAAA,CAAsB,uHAAyH,o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iBAAA,CAAkB,eAAA,CAAgB,uCAAuC,kBAAA,CAAoB,uBAAuB,iBAAA,CAAkB,QAAA,CAAS,eAAA,CAAgB,8BAA8B,iBAAA,CAAkB,KAAA,CAAM,MAAA,CAAO,oBAAA,CAAsB,qBAAA,CAAuB,kBAAA,CAAoB,+BAA+B,YAAA,CAAa,WAAA,CAAY,eAAA,CAAgB,yEAA2E,aAAA,CAAc,wCAAwC,UAAA","file":"index.css","sourcesContent":[".has-icon-arrow-right-alt::before,.has-icon-arrow-right-alt::after,.has-icon-arrow-right-alt .wp-block-button__link::before,.has-icon-arrow-right-alt .wp-block-button__link::after{display:none;font-family:'dashicons';font-size:20px;vertical-align:middle}.has-icon-arrow-right-alt.has-left-icon::before,.has-icon-arrow-right-alt.has-left-icon .wp-block-button__link::before{display:inline-block;content:\"\";padding-right:8px}.has-icon-arrow-right-alt.has-right-icon::after,.has-icon-arrow-right-alt.has-right-icon .wp-block-button__link::after{position:relative;display:inline-block;content:\"\";right:0;padding-left:8px;transition:right .25s ease-in-out}.has-icon-arrow-right-alt:hover::after,.has-icon-arrow-right-alt:hover .wp-block-button__link::after{right:-6px}.has-icon-arrow-right-alt2::before,.has-icon-arrow-right-alt2::after,.has-icon-arrow-right-alt2 .wp-block-button__link::before,.has-icon-arrow-right-alt2 .wp-block-button__link::after{display:none;font-family:'dashicons';font-size:20px;vertical-align:middle}.has-icon-arrow-right-alt2.has-left-icon::before,.has-icon-arrow-right-alt2.has-left-icon .wp-block-button__link::before{display:inline-block;content:\"\";padding-right:8px}.has-icon-arrow-right-alt2.has-right-icon::after,.has-icon-arrow-right-alt2.has-right-icon .wp-block-button__link::after{position:relative;display:inline-block;content:\"\";right:0;padding-left:8px;transition:right .25s ease-in-out}.has-icon-arrow-right-alt2:hover::after,.has-icon-arrow-right-alt2:hover .wp-block-button__link::after{right:-6px}.has-icon-arrow-left-alt::before,.has-icon-arrow-left-alt::after,.has-icon-arrow-left-alt .wp-block-button__link::before,.has-icon-arrow-left-alt .wp-block-button__link::after{display:none;font-family:'dashicons';font-size:20px;vertical-align:middle}.has-icon-arrow-left-alt.has-left-icon::before,.has-icon-arrow-left-alt.has-left-icon .wp-block-button__link::before{display:inline-block;content:\"\";padding-right:8px}.has-icon-arrow-left-alt.has-right-icon::after,.has-icon-arrow-left-alt.has-right-icon .wp-block-button__link::after{position:relative;display:inline-block;content:\"\";right:0;padding-left:8px;transition:right .25s ease-in-out}.has-icon-arrow-left-alt:hover::after,.has-icon-arrow-left-alt:hover .wp-block-button__link::after{right:-6px}.has-icon-arrow-left-alt2::before,.has-icon-arrow-left-alt2::after,.has-icon-arrow-left-alt2 .wp-block-button__link::before,.has-icon-arrow-left-alt2 .wp-block-button__link::after{display:none;font-family:'dashicons';font-size:20px;vertical-align:middle}.has-icon-arrow-left-alt2.has-left-icon::before,.has-icon-arrow-left-alt2.has-left-icon .wp-block-button__link::before{display:inline-block;content:\"\";padding-right:8px}.has-icon-arrow-left-alt2.has-right-icon::after,.has-icon-arrow-left-alt2.has-right-icon .wp-block-button__link::after{position:relative;display:inline-block;content:\"\";right:0;padding-left:8px;transition:right .25s ease-in-out}.has-icon-arrow-left-alt2:hover::after,.has-icon-arrow-left-alt2:hover .wp-block-button__link::after{right:-6px}.has-icon-clock::before,.has-icon-clock::after,.has-icon-clock .wp-block-button__link::before,.has-icon-clock .wp-block-button__link::after{display:none;font-family:'dashicons';font-size:20px;vertical-align:middle}.has-icon-clock.has-left-icon::before,.has-icon-clock.has-left-icon .wp-block-button__link::before{display:inline-block;content:\"\";padding-right:8px}.has-icon-clock.has-right-icon::after,.has-icon-clock.has-right-icon .wp-block-button__link::after{position:relative;display:inline-block;content:\"\";right:0;padding-left:8px;transition:right .25s ease-in-out}.has-icon-clock:hover::after,.has-icon-clock:hover .wp-block-button__link::after{right:-6px}.has-icon-location::before,.has-icon-location::after,.has-icon-location .wp-block-button__link::before,.has-icon-location .wp-block-button__link::after{display:none;font-family:'dashicons';font-size:20px;vertical-align:middle}.has-icon-location.has-left-icon::before,.has-icon-location.has-left-icon .wp-block-button__link::before{display:inline-block;content:\"\";padding-right:8px}.has-icon-location.has-right-icon::after,.has-icon-location.has-right-icon .wp-block-button__link::after{position:relative;display:inline-block;content:\"\";right:0;padding-left:8px;transition:right .25s ease-in-out}.has-icon-location:hover::after,.has-icon-location:hover .wp-block-button__link::after{right:-6px}.noor-block-bullet-point{display:flex;width:100%}.noor-block-bullet-point.has-align-center{justify-content:center}.noor-block-bullet-point.has-align-right{justify-content:flex-end}.noor-block-bullet-point.has-align-left{justify-content:flex-start}.noor-block-bullet-point__point{display:flex;flex-direction:column;justify-content:center;align-items:center;width:87px;height:87px;border-radius:50%;overflow:hidden}.noor-block-bullet-point__text-content{margin:0 !important}.noor-block-google-map{position:relative;height:0;overflow:hidden}.noor-block-google-map iframe{position:absolute;top:0;left:0;width:100% !important;height:100% !important;border:0 !important}.noor-block-accordion__content{display:none;height:auto;max-height:100%}.noor-block-accordion[aria-expanded=\"true\"]+.noor-block-accordion__content{display:block}.components-responsive-wrapper__content{width:auto}\n"]} \ No newline at end of file +{"version":3,"sources":["css ./node_modules/css-loader/dist/cjs.js??ref--7-1!./node_modules/postcss-loader/src??postcss!./node_modules/sass-loader/dist/cjs.js??ref--7-3!./src/styles/editor.scss"],"names":[],"mappings":"AAAA,+GAAiH,YAAA,CAAa,qBAAA,CAAwB,cAAA,CAAe,qBAAA,CAAsB,sEAAuE,oBAAA,CAAqB,WAAA,CAAY,iBAAA,CAAkB,sEAAuE,iBAAA,CAAkB,oBAAA,CAAqB,WAAA,CAAY,OAAA,CAAQ,gBAAA,CAAiB,iCAAA,CAAkC,6DAA8D,UAAA,CAAW,iHAAmH,YAAA,CAAa,qBAAA,CAAwB,cAAA,CAAe,qBAAA,CAAsB,uEAAwE,oBAAA,CAAqB,WAAA,CAAY,iBAAA,CAAkB,uEAAwE,iBAAA,CAAkB,oBAAA,CAAqB,WAAA,CAAY,OAAA,CAAQ,gBAAA,CAAiB,iCAAA,CAAkC,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,MAAA,CAAO,oBAAA,CAAsB,qBAAA,CAAuB,kBAAA,CAAoB,+BAA+B,YAAA,CAAa,WAAA,CAAY,eAAA,CAAgB,yEAA2E,aAAA,CAAc,wCAAwC,UAAA","file":"index.css","sourcesContent":[".has-icon-arrow-right-alt .wp-block-button__link::before,.has-icon-arrow-right-alt .wp-block-button__link::after{display:none;font-family:'dashicons';font-size:20px;vertical-align:middle}.has-icon-arrow-right-alt.has-left-icon .wp-block-button__link::before{display:inline-block;content:\"\";padding-right:8px}.has-icon-arrow-right-alt.has-right-icon .wp-block-button__link::after{position:relative;display:inline-block;content:\"\";right:0;padding-left:8px;transition:right .25s ease-in-out}.has-icon-arrow-right-alt:hover .wp-block-button__link::after{right:-6px}.has-icon-arrow-right-alt2 .wp-block-button__link::before,.has-icon-arrow-right-alt2 .wp-block-button__link::after{display:none;font-family:'dashicons';font-size:20px;vertical-align:middle}.has-icon-arrow-right-alt2.has-left-icon .wp-block-button__link::before{display:inline-block;content:\"\";padding-right:8px}.has-icon-arrow-right-alt2.has-right-icon .wp-block-button__link::after{position:relative;display:inline-block;content:\"\";right:0;padding-left:8px;transition:right .25s ease-in-out}.has-icon-arrow-right-alt2:hover .wp-block-button__link::after{right:-6px}.has-icon-arrow-left-alt .wp-block-button__link::before,.has-icon-arrow-left-alt .wp-block-button__link::after{display:none;font-family:'dashicons';font-size:20px;vertical-align:middle}.has-icon-arrow-left-alt.has-left-icon .wp-block-button__link::before{display:inline-block;content:\"\";padding-right:8px}.has-icon-arrow-left-alt.has-right-icon .wp-block-button__link::after{position:relative;display:inline-block;content:\"\";right:0;padding-left:8px;transition:right .25s ease-in-out}.has-icon-arrow-left-alt:hover .wp-block-button__link::after{right:-6px}.has-icon-arrow-left-alt2 .wp-block-button__link::before,.has-icon-arrow-left-alt2 .wp-block-button__link::after{display:none;font-family:'dashicons';font-size:20px;vertical-align:middle}.has-icon-arrow-left-alt2.has-left-icon .wp-block-button__link::before{display:inline-block;content:\"\";padding-right:8px}.has-icon-arrow-left-alt2.has-right-icon .wp-block-button__link::after{position:relative;display:inline-block;content:\"\";right:0;padding-left:8px;transition:right .25s ease-in-out}.has-icon-arrow-left-alt2:hover .wp-block-button__link::after{right:-6px}.has-icon-clock .wp-block-button__link::before,.has-icon-clock .wp-block-button__link::after{display:none;font-family:'dashicons';font-size:20px;vertical-align:middle}.has-icon-clock.has-left-icon .wp-block-button__link::before{display:inline-block;content:\"\";padding-right:8px}.has-icon-clock.has-right-icon .wp-block-button__link::after{position:relative;display:inline-block;content:\"\";right:0;padding-left:8px;transition:right .25s ease-in-out}.has-icon-clock:hover .wp-block-button__link::after{right:-6px}.has-icon-location .wp-block-button__link::before,.has-icon-location .wp-block-button__link::after{display:none;font-family:'dashicons';font-size:20px;vertical-align:middle}.has-icon-location.has-left-icon .wp-block-button__link::before{display:inline-block;content:\"\";padding-right:8px}.has-icon-location.has-right-icon .wp-block-button__link::after{position:relative;display:inline-block;content:\"\";right:0;padding-left:8px;transition:right .25s ease-in-out}.has-icon-location:hover .wp-block-button__link::after{right:-6px}.noor-block-bullet-point{display:flex;width:100%}.noor-block-bullet-point.has-align-center{justify-content:center}.noor-block-bullet-point.has-align-right{justify-content:flex-end}.noor-block-bullet-point.has-align-left{justify-content:flex-start}.noor-block-bullet-point__point{display:flex;flex-direction:column;justify-content:center;align-items:center;width:87px;height:87px;border-radius:50%;overflow:hidden}.noor-block-bullet-point__text-content{margin:0 !important}.noor-block-google-map{position:relative;height:0;overflow:hidden}.noor-block-google-map iframe{position:absolute;top:0;left:0;width:100% !important;height:100% !important;border:0 !important}.noor-block-accordion__content{display:none;height:auto;max-height:100%}.noor-block-accordion[aria-expanded=\"true\"]+.noor-block-accordion__content{display:block}.components-responsive-wrapper__content{width:auto}\n"]} \ No newline at end of file diff --git a/build/index.js b/build/index.js index 8dd6c04..1d89b97 100644 --- a/build/index.js +++ b/build/index.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{18:function(e,t,n){}}]),function(e){function t(t){for(var o,a,l=t[0],i=t[1],s=t[2],b=0,d=[];be.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n} ); -} - -export const ButtonAllControls = (props) => { - - const { color, setColor, backgroundColor, setBackgroundColor, setAttributes } = props; - - setAttributes({ className: color.class != undefined ? color.class + ' has-color' : '' }); - - setAttributes({ className: backgroundColor.class != undefined ? backgroundColor.class + ' has-background' : '' }); - - return ( - - - - - - ) } \ No newline at end of file diff --git a/src/filters/attributes.js b/src/filters/attributes.js index 9af50cd..e18fd73 100644 --- a/src/filters/attributes.js +++ b/src/filters/attributes.js @@ -1,18 +1,3 @@ -const inlineIconAttributes = { - useIcon: { - type: 'boolean', - default: true - }, - alignIcon: { - type: 'boolean', - default: false - }, - icon: { - type: 'string', - default: 'arrow-right-alt' - } -} - export const attributes = (settings, name) => { if ( ! name.includes( 'noor' ) ) { @@ -28,22 +13,19 @@ export const attributes = (settings, name) => { if ( 'core/button' === name ) { Object.assign(settings.attributes, { - ...inlineIconAttributes - }); - } - - // wp-bootstrap-blocks plugin - if ( 'wp-bootstrap-blocks' === name ) { - - Object.assign(settings.attributes, { - ...inlineIconAttributes, - backgroundColor: { - type: 'string' + useIcon: { + type: 'boolean', + default: true }, - color: { - type: 'string' + alignIcon: { + type: 'boolean', + default: false + }, + icon: { + type: 'string', + default: 'arrow-right-alt' } - }) + }); } if ( 'core/column' === name ) { diff --git a/src/filters/blockEdit.js b/src/filters/blockEdit.js index 4f886ce..a827d11 100644 --- a/src/filters/blockEdit.js +++ b/src/filters/blockEdit.js @@ -7,12 +7,11 @@ import { compose } from '@wordpress/compose' import { SmallScreenControl, ColumnBackgrounControl, - ButtonIconControl, - ButtonAllControls + ButtonIconControl } from '../components/controls' export const blockEdit = compose( - withColors({ backgroundColor: 'background-color', color: 'color' }), + withColors({ backgroundColor: 'background-color' }), createHigherOrderComponent( BlockEdit => props => { if ( ! props.name.includes( 'noor' ) ) { @@ -24,7 +23,6 @@ export const blockEdit = compose( {props.name === 'core/column' && } {props.name === 'core/button' && } - {props.name === 'wp-bootstrap-blocks' && } ) diff --git a/src/styles/_common.scss b/src/styles/_common.scss index 76b333b..d251850 100644 --- a/src/styles/_common.scss +++ b/src/styles/_common.scss @@ -17,8 +17,6 @@ $icons: ( .has-icon-#{$name} { - &::before, - &::after, .wp-block-button__link::before, .wp-block-button__link::after { @@ -30,7 +28,6 @@ $icons: ( &.has-left-icon { - &::before, .wp-block-button__link::before { display: inline-block; @@ -41,7 +38,6 @@ $icons: ( &.has-right-icon { - &::after, .wp-block-button__link::after { position: relative; @@ -55,7 +51,6 @@ $icons: ( &:hover { - &::after, .wp-block-button__link::after { right: -6px;