diff --git a/build/editor.asset.php b/build/editor.asset.php index 04b7b6d..c83fe1b 100644 --- a/build/editor.asset.php +++ b/build/editor.asset.php @@ -1 +1 @@ - array(), 'version' => 'e2e22252cb9c6767ab28'); + array(), 'version' => '3551ee3b00eaf871ceb2'); diff --git a/build/editor.css b/build/editor.css index 326570f..4ef55ff 100644 --- a/build/editor.css +++ b/build/editor.css @@ -1,152 +1 @@ -/*!****************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/editor.scss ***! - \****************************************************************************************************************************************************************************************************************************************/ -.wp-block-button[class*=has-icon__] .wp-block-button__link::after { - content: ""; -} -.wp-block-button[class*=has-icon__] .wp-block-button__link::after, .wp-block-button[class*=has-icon__] .wp-block-button__link::before { - display: inline-block; - background-color: currentColor; - -webkit-mask-size: contain; - mask-size: contain; - -webkit-mask-position: center; - mask-position: center; - -webkit-mask-repeat: no-repeat; - mask-repeat: no-repeat; - height: 0.8em; - width: 0.45em; - mask-image: url("data:image/svg+xml;utf8,"); - -webkit-mask-image: url("data:image/svg+xml;utf8,"); -} -.wp-block-button[class*=has-icon__].has-icon-position__left .wp-block-button__link::after { - content: none; -} -.wp-block-button[class*=has-icon__].has-icon-position__left .wp-block-button__link::before { - content: ""; -} -.wp-block-button[class*=has-icon__].has-icon__arrow-left .wp-block-button__link::after, .wp-block-button[class*=has-icon__].has-icon__arrow-left .wp-block-button__link::before { - height: 0.7em; - width: 1em; - mask-image: url("data:image/svg+xml;utf8,"); - -webkit-mask-image: url("data:image/svg+xml;utf8,"); -} -.wp-block-button[class*=has-icon__].has-icon__arrow-right .wp-block-button__link::after, .wp-block-button[class*=has-icon__].has-icon__arrow-right .wp-block-button__link::before { - height: 0.7em; - width: 1em; - mask-image: url("data:image/svg+xml;utf8,"); - -webkit-mask-image: url("data:image/svg+xml;utf8,"); -} -.wp-block-button[class*=has-icon__].has-icon__chevron-right-small .wp-block-button__link::after, .wp-block-button[class*=has-icon__].has-icon__chevron-right-small .wp-block-button__link::before { - height: 0.5em; - width: 0.3em; - mask-image: url("data:image/svg+xml;utf8,"); - -webkit-mask-image: url("data:image/svg+xml;utf8,"); -} -.wp-block-button[class*=has-icon__].has-icon__chevron-left .wp-block-button__link::after, .wp-block-button[class*=has-icon__].has-icon__chevron-left .wp-block-button__link::before { - height: 0.8em; - width: 0.45em; - mask-image: url("data:image/svg+xml;utf8,"); - -webkit-mask-image: url("data:image/svg+xml;utf8,"); -} -.wp-block-button[class*=has-icon__].has-icon__chevron-left-small .wp-block-button__link::after, .wp-block-button[class*=has-icon__].has-icon__chevron-left-small .wp-block-button__link::before { - height: 0.5em; - width: 0.3em; - mask-image: url("data:image/svg+xml;utf8,"); - -webkit-mask-image: url("data:image/svg+xml;utf8,"); -} -.wp-block-button[class*=has-icon__].has-icon__cloud .wp-block-button__link::after, .wp-block-button[class*=has-icon__].has-icon__cloud .wp-block-button__link::before { - height: 0.7em; - width: 1em; - mask-image: url("data:image/svg+xml;utf8,"); - -webkit-mask-image: url("data:image/svg+xml;utf8,"); -} -.wp-block-button[class*=has-icon__].has-icon__cloud-upload .wp-block-button__link::after, .wp-block-button[class*=has-icon__].has-icon__cloud-upload .wp-block-button__link::before { - height: 0.7em; - width: 1em; - mask-image: url("data:image/svg+xml;utf8,"); - -webkit-mask-image: url("data:image/svg+xml;utf8,"); -} -.wp-block-button[class*=has-icon__].has-icon__comment-author-avatar .wp-block-button__link::after, .wp-block-button[class*=has-icon__].has-icon__comment-author-avatar .wp-block-button__link::before { - height: 1em; - width: 1em; - mask-image: url("data:image/svg+xml;utf8,"); - -webkit-mask-image: url("data:image/svg+xml;utf8,"); -} -.wp-block-button[class*=has-icon__].has-icon__download .wp-block-button__link::after, .wp-block-button[class*=has-icon__].has-icon__download .wp-block-button__link::before { - height: 0.85em; - width: 0.8em; - mask-image: url("data:image/svg+xml;utf8,"); - -webkit-mask-image: url("data:image/svg+xml;utf8,"); -} -.wp-block-button[class*=has-icon__].has-icon__external .wp-block-button__link::after, .wp-block-button[class*=has-icon__].has-icon__external .wp-block-button__link::before { - height: 0.7em; - width: 0.7em; - mask-image: url("data:image/svg+xml;utf8,"); - -webkit-mask-image: url("data:image/svg+xml;utf8,"); -} -.wp-block-button[class*=has-icon__].has-icon__external-arrow .wp-block-button__link::after, .wp-block-button[class*=has-icon__].has-icon__external-arrow .wp-block-button__link::before { - height: 0.6em; - width: 0.6em; - mask-image: url("data:image/svg+xml;utf8,"); - -webkit-mask-image: url("data:image/svg+xml;utf8,"); -} -.wp-block-button[class*=has-icon__].has-icon__help .wp-block-button__link::after, .wp-block-button[class*=has-icon__].has-icon__help .wp-block-button__link::before { - height: 0.9em; - width: 0.9em; - mask-image: url("data:image/svg+xml;utf8,"); - -webkit-mask-image: url("data:image/svg+xml;utf8,"); -} -.wp-block-button[class*=has-icon__].has-icon__info .wp-block-button__link::after, .wp-block-button[class*=has-icon__].has-icon__info .wp-block-button__link::before { - height: 0.9em; - width: 0.9em; - mask-image: url("data:image/svg+xml;utf8,"); - -webkit-mask-image: url("data:image/svg+xml;utf8,"); -} -.wp-block-button[class*=has-icon__].has-icon__lock-outline .wp-block-button__link::after, .wp-block-button[class*=has-icon__].has-icon__lock-outline .wp-block-button__link::before { - height: 0.9em; - width: 0.64em; - mask-image: url("data:image/svg+xml;utf8,"); - -webkit-mask-image: url("data:image/svg+xml;utf8,"); -} -.wp-block-button[class*=has-icon__].has-icon__login .wp-block-button__link::after, .wp-block-button[class*=has-icon__].has-icon__login .wp-block-button__link::before { - height: 0.8em; - width: 0.8em; - mask-image: url("data:image/svg+xml;utf8,"); - -webkit-mask-image: url("data:image/svg+xml;utf8,"); -} -.wp-block-button[class*=has-icon__].has-icon__next .wp-block-button__link::after, .wp-block-button[class*=has-icon__].has-icon__next .wp-block-button__link::before { - height: 0.75em; - width: 0.775em; - mask-image: url("data:image/svg+xml;utf8,"); - -webkit-mask-image: url("data:image/svg+xml;utf8,"); -} -.wp-block-button[class*=has-icon__].has-icon__previous .wp-block-button__link::after, .wp-block-button[class*=has-icon__].has-icon__previous .wp-block-button__link::before { - height: 0.75em; - width: 0.775em; - mask-image: url("data:image/svg+xml;utf8,"); - -webkit-mask-image: url("data:image/svg+xml;utf8,"); -} -.wp-block-button[class*=has-icon__].has-icon__shuffle .wp-block-button__link::after, .wp-block-button[class*=has-icon__].has-icon__shuffle .wp-block-button__link::before { - height: 0.9em; - width: 0.9em; - mask-image: url("data:image/svg+xml;utf8,"); - -webkit-mask-image: url("data:image/svg+xml;utf8,"); -} -.wp-block-button[class*=has-icon__].has-icon__wordpress .wp-block-button__link::after, .wp-block-button[class*=has-icon__].has-icon__wordpress .wp-block-button__link::before { - height: 0.9em; - width: 0.9em; - mask-image: url("data:image/svg+xml;utf8,"); - -webkit-mask-image: url("data:image/svg+xml;utf8,"); -} - -.button-icon-picker .components-panel__row:not(:nth-child(2)) { - margin-top: 16px; -} -.button-icon-picker .button-icon-picker__grid { - border: 1px solid rgb(148, 148, 148); - border-radius: 2px; - padding: 2px; - width: 100%; -} - -/*# sourceMappingURL=editor.css.map*/ \ No newline at end of file +.wp-block-button[class*=has-icon__] .wp-block-button__link:after{content:""}.wp-block-button[class*=has-icon__] .wp-block-button__link:after,.wp-block-button[class*=has-icon__] .wp-block-button__link:before{background-color:currentColor;display:inline-block;height:.8em;mask-image:url("data:image/svg+xml;utf8,");-webkit-mask-image:url("data:image/svg+xml;utf8,");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;width:.45em}.wp-block-button[class*=has-icon__].has-icon-position__left .wp-block-button__link:after{content:none}.wp-block-button[class*=has-icon__].has-icon-position__left .wp-block-button__link:before{content:""}.wp-block-button[class*=has-icon__].has-icon__arrow-left .wp-block-button__link:after,.wp-block-button[class*=has-icon__].has-icon__arrow-left .wp-block-button__link:before{height:.7em;mask-image:url("data:image/svg+xml;utf8,");-webkit-mask-image:url("data:image/svg+xml;utf8,");width:1em}.wp-block-button[class*=has-icon__].has-icon__arrow-right .wp-block-button__link:after,.wp-block-button[class*=has-icon__].has-icon__arrow-right .wp-block-button__link:before{height:.7em;mask-image:url("data:image/svg+xml;utf8,");-webkit-mask-image:url("data:image/svg+xml;utf8,");width:1em}.wp-block-button[class*=has-icon__].has-icon__chevron-right-small .wp-block-button__link:after,.wp-block-button[class*=has-icon__].has-icon__chevron-right-small .wp-block-button__link:before{height:.5em;mask-image:url("data:image/svg+xml;utf8,");-webkit-mask-image:url("data:image/svg+xml;utf8,");width:.3em}.wp-block-button[class*=has-icon__].has-icon__chevron-left .wp-block-button__link:after,.wp-block-button[class*=has-icon__].has-icon__chevron-left .wp-block-button__link:before{height:.8em;mask-image:url("data:image/svg+xml;utf8,");-webkit-mask-image:url("data:image/svg+xml;utf8,");width:.45em}.wp-block-button[class*=has-icon__].has-icon__chevron-left-small .wp-block-button__link:after,.wp-block-button[class*=has-icon__].has-icon__chevron-left-small .wp-block-button__link:before{height:.5em;mask-image:url("data:image/svg+xml;utf8,");-webkit-mask-image:url("data:image/svg+xml;utf8,");width:.3em}.wp-block-button[class*=has-icon__].has-icon__cloud .wp-block-button__link:after,.wp-block-button[class*=has-icon__].has-icon__cloud .wp-block-button__link:before{height:.7em;mask-image:url("data:image/svg+xml;utf8,");-webkit-mask-image:url("data:image/svg+xml;utf8,");width:1em}.wp-block-button[class*=has-icon__].has-icon__cloud-upload .wp-block-button__link:after,.wp-block-button[class*=has-icon__].has-icon__cloud-upload .wp-block-button__link:before{height:.7em;mask-image:url("data:image/svg+xml;utf8,");-webkit-mask-image:url("data:image/svg+xml;utf8,");width:1em}.wp-block-button[class*=has-icon__].has-icon__comment-author-avatar .wp-block-button__link:after,.wp-block-button[class*=has-icon__].has-icon__comment-author-avatar .wp-block-button__link:before{height:1em;mask-image:url("data:image/svg+xml;utf8,");-webkit-mask-image:url("data:image/svg+xml;utf8,");width:1em}.wp-block-button[class*=has-icon__].has-icon__download .wp-block-button__link:after,.wp-block-button[class*=has-icon__].has-icon__download .wp-block-button__link:before{height:.85em;mask-image:url("data:image/svg+xml;utf8,");-webkit-mask-image:url("data:image/svg+xml;utf8,");width:.8em}.wp-block-button[class*=has-icon__].has-icon__external .wp-block-button__link:after,.wp-block-button[class*=has-icon__].has-icon__external .wp-block-button__link:before{height:.7em;mask-image:url("data:image/svg+xml;utf8,");-webkit-mask-image:url("data:image/svg+xml;utf8,");width:.7em}.wp-block-button[class*=has-icon__].has-icon__external-arrow .wp-block-button__link:after,.wp-block-button[class*=has-icon__].has-icon__external-arrow .wp-block-button__link:before{height:.6em;mask-image:url("data:image/svg+xml;utf8,");-webkit-mask-image:url("data:image/svg+xml;utf8,");width:.6em}.wp-block-button[class*=has-icon__].has-icon__help .wp-block-button__link:after,.wp-block-button[class*=has-icon__].has-icon__help .wp-block-button__link:before{height:.9em;mask-image:url("data:image/svg+xml;utf8,");-webkit-mask-image:url("data:image/svg+xml;utf8,");width:.9em}.wp-block-button[class*=has-icon__].has-icon__info .wp-block-button__link:after,.wp-block-button[class*=has-icon__].has-icon__info .wp-block-button__link:before{height:.9em;mask-image:url("data:image/svg+xml;utf8,");-webkit-mask-image:url("data:image/svg+xml;utf8,");width:.9em}.wp-block-button[class*=has-icon__].has-icon__lock-outline .wp-block-button__link:after,.wp-block-button[class*=has-icon__].has-icon__lock-outline .wp-block-button__link:before{height:.9em;mask-image:url("data:image/svg+xml;utf8,");-webkit-mask-image:url("data:image/svg+xml;utf8,");width:.64em}.wp-block-button[class*=has-icon__].has-icon__login .wp-block-button__link:after,.wp-block-button[class*=has-icon__].has-icon__login .wp-block-button__link:before{height:.8em;mask-image:url("data:image/svg+xml;utf8,");-webkit-mask-image:url("data:image/svg+xml;utf8,");width:.8em}.wp-block-button[class*=has-icon__].has-icon__next .wp-block-button__link:after,.wp-block-button[class*=has-icon__].has-icon__next .wp-block-button__link:before{height:.75em;mask-image:url("data:image/svg+xml;utf8,");-webkit-mask-image:url("data:image/svg+xml;utf8,");width:.775em}.wp-block-button[class*=has-icon__].has-icon__previous .wp-block-button__link:after,.wp-block-button[class*=has-icon__].has-icon__previous .wp-block-button__link:before{height:.75em;mask-image:url("data:image/svg+xml;utf8,");-webkit-mask-image:url("data:image/svg+xml;utf8,");width:.775em}.wp-block-button[class*=has-icon__].has-icon__shuffle .wp-block-button__link:after,.wp-block-button[class*=has-icon__].has-icon__shuffle .wp-block-button__link:before{height:.9em;mask-image:url("data:image/svg+xml;utf8,");-webkit-mask-image:url("data:image/svg+xml;utf8,");width:.9em}.wp-block-button[class*=has-icon__].has-icon__wordpress .wp-block-button__link:after,.wp-block-button[class*=has-icon__].has-icon__wordpress .wp-block-button__link:before{height:.9em;mask-image:url("data:image/svg+xml;utf8,");-webkit-mask-image:url("data:image/svg+xml;utf8,");width:.9em}.button-icon-picker .components-panel__row:not(:nth-child(2)){margin-top:16px}.button-icon-picker .button-icon-picker__grid{border:1px solid #949494;border-radius:2px;padding:2px;width:100%} diff --git a/build/editor.css.map b/build/editor.css.map deleted file mode 100644 index 20ce6e8..0000000 --- a/build/editor.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"editor.css","mappings":";;;AAyBQ;EACI;AAxBZ;AA4BQ;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AA1BZ;AAgCY;EACI;AA9BhB;AAiCY;EACI;AA/BhB;AAsCY;EACI;EACA;EACA;EACA;AApChB;AA2CY;EACI;EACA;EACA;EACA;AAzChB;AAgDY;EACI;EACA;EACA;EACA;AA9ChB;AAqDY;EACI;EACA;EACA;EACA;AAnDhB;AA0DY;EACI;EACA;EACA;EACA;AAxDhB;AA+DY;EACI;EACA;EACA;EACA;AA7DhB;AAoEY;EACI;EACA;EACA;EACA;AAlEhB;AAyEY;EACI;EACA;EACA;EACA;AAvEhB;AA8EY;EACI;EACA;EACA;EACA;AA5EhB;AAmFY;EACI;EACA;EACA;EACA;AAjFhB;AAwFY;EACI;EACA;EACA;EACA;AAtFhB;AA6FY;EACI;EACA;EACA;EACA;AA3FhB;AAkGY;EACI;EACA;EACA;EACA;AAhGhB;AAuGY;EACI;EACA;EACA;EACA;AArGhB;AA4GY;EACI;EACA;EACA;EACA;AA1GhB;AAiHY;EACI;EACA;EACA;EACA;AA/GhB;AAsHY;EACI;EACA;EACA;EACA;AApHhB;AA2HY;EACI;EACA;EACA;EACA;AAzHhB;AAgIY;EACI;EACA;EACA;EACA;AA9HhB;;AAuIQ;EACI;AApIZ;AAwII;EACI;EACA;EACA;EACA;AAtIR,C","sources":["webpack://enable-button-icons/./src/editor.scss"],"sourcesContent":["// Icons\n$arrow_left: \"data:image/svg+xml;utf8,\";\n$arrow_right: \"data:image/svg+xml;utf8,\";\n$chevron_left: \"data:image/svg+xml;utf8,\";\n$chevron_left-small: \"data:image/svg+xml;utf8,\";\n$chevron_right: \"data:image/svg+xml;utf8,\";\n$chevron_right-small: \"data:image/svg+xml;utf8,\";\n$cloud: \"data:image/svg+xml;utf8,\";\n$cloud_upload: \"data:image/svg+xml;utf8,\";\n$comment_author_avatar: \"data:image/svg+xml;utf8,\";\n$download: \"data:image/svg+xml;utf8,\";\n$external: \"data:image/svg+xml;utf8,\";\n$external_arrow: \"data:image/svg+xml;utf8,\";\n$help: \"data:image/svg+xml;utf8,\";\n$info: \"data:image/svg+xml;utf8,\";\n$lock_outline: \"data:image/svg+xml;utf8,\";\n$login: \"data:image/svg+xml;utf8,\";\n$next: \"data:image/svg+xml;utf8,\";\n$previous: \"data:image/svg+xml;utf8,\";\n$shuffle: \"data:image/svg+xml;utf8,\";\n$wordpress: \"data:image/svg+xml;utf8,\";\n\n// Add icons to Button blocks and style appropriately.\n.wp-block-button[class*=has-icon__] {\n .wp-block-button__link {\n &::after {\n content: \"\";\n }\n\n // Styles the icon.\n &::after, &::before {\n display: inline-block;\n background-color: currentColor;\n -webkit-mask-size: contain;\n mask-size: contain;\n -webkit-mask-position:center;\n mask-position:center;\n -webkit-mask-repeat: no-repeat;\n mask-repeat: no-repeat;\n height: 0.8em;\n width: 0.45em;\n mask-image: url( $chevron_right );\n -webkit-mask-image: url( $chevron_right );\n } \n } \n\n &.has-icon-position__left {\n .wp-block-button__link {\n &::after {\n content: none;\n }\n\n &::before {\n content: \"\";\n } \n }\n }\n\n &.has-icon__arrow-left {\n .wp-block-button__link {\n &::after, &::before {\n height: 0.7em;\n width: 1em;\n mask-image: url( $arrow-left);\n -webkit-mask-image: url( $arrow-left );\n } \n }\n }\n\n &.has-icon__arrow-right {\n .wp-block-button__link {\n &::after, &::before {\n height: 0.7em;\n width: 1em;\n mask-image: url( $arrow-right);\n -webkit-mask-image: url( $arrow-right );\n } \n }\n }\n\n &.has-icon__chevron-right-small {\n .wp-block-button__link {\n &::after, &::before {\n height: 0.5em;\n width: 0.3em;\n mask-image: url( $chevron-right-small);\n -webkit-mask-image: url( $chevron-right-small );\n } \n } \n }\n\n &.has-icon__chevron-left {\n .wp-block-button__link {\n &::after, &::before {\n height: 0.8em;\n width: 0.45em;\n mask-image: url( $chevron-left);\n -webkit-mask-image: url( $chevron-left );\n } \n } \n }\n\n &.has-icon__chevron-left-small {\n .wp-block-button__link {\n &::after, &::before {\n height: 0.5em;\n width: 0.3em;\n mask-image: url( $chevron-left-small);\n -webkit-mask-image: url( $chevron-left-small );\n } \n } \n }\n\n &.has-icon__cloud {\n .wp-block-button__link {\n &::after, &::before {\n height: 0.7em;\n width: 1em;\n mask-image: url( $cloud);\n -webkit-mask-image: url( $cloud );\n } \n }\n }\n\n &.has-icon__cloud-upload {\n .wp-block-button__link {\n &::after, &::before {\n height: 0.7em;\n width: 1em;\n mask-image: url( $cloud_upload);\n -webkit-mask-image: url( $cloud_upload );\n } \n }\n }\n\n &.has-icon__comment-author-avatar {\n .wp-block-button__link {\n &::after, &::before {\n height: 1em;\n width: 1em;\n mask-image: url( $comment_author_avatar);\n -webkit-mask-image: url( $comment_author_avatar );\n } \n }\n }\n\n &.has-icon__download {\n .wp-block-button__link {\n &::after, &::before {\n height: 0.85em;\n width: 0.8em;\n mask-image: url( $download);\n -webkit-mask-image: url( $download );\n } \n } \n }\n\n &.has-icon__external {\n .wp-block-button__link {\n &::after, &::before {\n height: 0.7em;\n width: 0.7em;\n mask-image: url( $external);\n -webkit-mask-image: url( $external );\n } \n } \n }\n\n &.has-icon__external-arrow {\n .wp-block-button__link {\n &::after, &::before {\n height: 0.6em;\n width: 0.6em;\n mask-image: url( $external_arrow);\n -webkit-mask-image: url( $external_arrow );\n } \n } \n }\n\n &.has-icon__help {\n .wp-block-button__link {\n &::after, &::before {\n height: 0.9em;\n width: 0.9em;\n mask-image: url( $help);\n -webkit-mask-image: url( $help );\n } \n }\n }\n\n &.has-icon__info {\n .wp-block-button__link {\n &::after, &::before {\n height: 0.9em;\n width: 0.9em;\n mask-image: url( $info);\n -webkit-mask-image: url( $info );\n } \n }\n }\n\n &.has-icon__lock-outline {\n .wp-block-button__link {\n &::after, &::before {\n height: 0.9em;\n width: 0.64em;\n mask-image: url( $lock_outline );\n -webkit-mask-image: url( $lock_outline );\n } \n }\n }\n\n &.has-icon__login {\n .wp-block-button__link {\n &::after, &::before {\n height: 0.8em;\n width: 0.8em;\n mask-image: url( $login);\n -webkit-mask-image: url( $login );\n } \n }\n }\n\n &.has-icon__next {\n .wp-block-button__link {\n &::after, &::before {\n height: 0.75em;\n width: 0.775em;\n mask-image: url( $next);\n -webkit-mask-image: url( $next );\n } \n } \n }\n\n &.has-icon__previous {\n .wp-block-button__link {\n &::after, &::before {\n height: 0.75em;\n width: 0.775em;\n mask-image: url( $previous);\n -webkit-mask-image: url( $previous );\n } \n } \n }\n\n &.has-icon__shuffle {\n .wp-block-button__link {\n &::after, &::before {\n height: 0.9em;\n width: 0.9em;\n mask-image: url( $shuffle);\n -webkit-mask-image: url( $shuffle );\n } \n }\n }\n\n &.has-icon__wordpress {\n .wp-block-button__link {\n &::after, &::before {\n height: 0.9em;\n width: 0.9em;\n mask-image: url( $wordpress);\n -webkit-mask-image: url( $wordpress );\n } \n } \n }\n}\n\n// Style \"Icon Settings\" panel.\n.button-icon-picker {\n .components-panel__row {\n &:not(:nth-child(2)) {\n margin-top: 16px;\n }\n }\n\n .button-icon-picker__grid {\n border: 1px solid rgb(148, 148, 148);\n border-radius: 2px;\n padding: 2px;\n width: 100%;\n }\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/build/index.asset.php b/build/index.asset.php index eb04e12..142a690 100644 --- a/build/index.asset.php +++ b/build/index.asset.php @@ -1 +1 @@ - array('react', 'wp-block-editor', 'wp-components', 'wp-hooks', 'wp-i18n', 'wp-primitives'), 'version' => 'ed81b9d48ab9b6552339'); + array('react', 'wp-block-editor', 'wp-components', 'wp-hooks', 'wp-i18n', 'wp-primitives'), 'version' => '4fdea727e3f0d59e1b8f'); diff --git a/build/index.js b/build/index.js index 9d8ee21..63d9850 100644 --- a/build/index.js +++ b/build/index.js @@ -1,1010 +1 @@ -/******/ (function() { // webpackBootstrap -/******/ var __webpack_modules__ = ({ - -/***/ "./node_modules/@wordpress/icons/build-module/library/arrow-left.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@wordpress/icons/build-module/library/arrow-left.js ***! - \**************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - -/** - * WordPress dependencies - */ - -const arrowLeft = (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { - d: "M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z" -})); -/* harmony default export */ __webpack_exports__["default"] = (arrowLeft); -//# sourceMappingURL=arrow-left.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/icons/build-module/library/arrow-right.js": -/*!***************************************************************************!*\ - !*** ./node_modules/@wordpress/icons/build-module/library/arrow-right.js ***! - \***************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - -/** - * WordPress dependencies - */ - -const arrowRight = (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { - d: "m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z" -})); -/* harmony default export */ __webpack_exports__["default"] = (arrowRight); -//# sourceMappingURL=arrow-right.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/icons/build-module/library/chevron-left-small.js": -/*!**********************************************************************************!*\ - !*** ./node_modules/@wordpress/icons/build-module/library/chevron-left-small.js ***! - \**********************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - -/** - * WordPress dependencies - */ - -const chevronLeftSmall = (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { - d: "m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z" -})); -/* harmony default export */ __webpack_exports__["default"] = (chevronLeftSmall); -//# sourceMappingURL=chevron-left-small.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/icons/build-module/library/chevron-left.js": -/*!****************************************************************************!*\ - !*** ./node_modules/@wordpress/icons/build-module/library/chevron-left.js ***! - \****************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - -/** - * WordPress dependencies - */ - -const chevronLeft = (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { - d: "M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z" -})); -/* harmony default export */ __webpack_exports__["default"] = (chevronLeft); -//# sourceMappingURL=chevron-left.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/icons/build-module/library/chevron-right-small.js": -/*!***********************************************************************************!*\ - !*** ./node_modules/@wordpress/icons/build-module/library/chevron-right-small.js ***! - \***********************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - -/** - * WordPress dependencies - */ - -const chevronRightSmall = (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { - d: "M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z" -})); -/* harmony default export */ __webpack_exports__["default"] = (chevronRightSmall); -//# sourceMappingURL=chevron-right-small.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/icons/build-module/library/chevron-right.js": -/*!*****************************************************************************!*\ - !*** ./node_modules/@wordpress/icons/build-module/library/chevron-right.js ***! - \*****************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - -/** - * WordPress dependencies - */ - -const chevronRight = (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { - d: "M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z" -})); -/* harmony default export */ __webpack_exports__["default"] = (chevronRight); -//# sourceMappingURL=chevron-right.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/icons/build-module/library/cloud-upload.js": -/*!****************************************************************************!*\ - !*** ./node_modules/@wordpress/icons/build-module/library/cloud-upload.js ***! - \****************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - -/** - * WordPress dependencies - */ - -const cloudUpload = (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { - d: "M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-4v-2.4L14 14l1-1-3-3-3 3 1 1 1.2-1.2v2.4H7.7c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4H9l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8 0 1-.8 1.8-1.7 1.8z" -})); -/* harmony default export */ __webpack_exports__["default"] = (cloudUpload); -//# sourceMappingURL=cloud-upload.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/icons/build-module/library/cloud.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@wordpress/icons/build-module/library/cloud.js ***! - \*********************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - -/** - * WordPress dependencies - */ - -const cloud = (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { - d: "M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-9c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4h1.3l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8-.1 1-.9 1.8-1.8 1.8z" -})); -/* harmony default export */ __webpack_exports__["default"] = (cloud); -//# sourceMappingURL=cloud.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/icons/build-module/library/comment-author-avatar.js": -/*!*************************************************************************************!*\ - !*** ./node_modules/@wordpress/icons/build-module/library/comment-author-avatar.js ***! - \*************************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - -/** - * WordPress dependencies - */ - -const commentAuthorAvatar = (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { - fillRule: "evenodd", - d: "M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z", - clipRule: "evenodd" -})); -/* harmony default export */ __webpack_exports__["default"] = (commentAuthorAvatar); -//# sourceMappingURL=comment-author-avatar.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/icons/build-module/library/download.js": -/*!************************************************************************!*\ - !*** ./node_modules/@wordpress/icons/build-module/library/download.js ***! - \************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - -/** - * WordPress dependencies - */ - -const download = (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { - d: "M18 11.3l-1-1.1-4 4V3h-1.5v11.3L7 10.2l-1 1.1 6.2 5.8 5.8-5.8zm.5 3.7v3.5h-13V15H4v5h16v-5h-1.5z" -})); -/* harmony default export */ __webpack_exports__["default"] = (download); -//# sourceMappingURL=download.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/icons/build-module/library/external.js": -/*!************************************************************************!*\ - !*** ./node_modules/@wordpress/icons/build-module/library/external.js ***! - \************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - -/** - * WordPress dependencies - */ - -const external = (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { - d: "M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z" -})); -/* harmony default export */ __webpack_exports__["default"] = (external); -//# sourceMappingURL=external.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/icons/build-module/library/help.js": -/*!********************************************************************!*\ - !*** ./node_modules/@wordpress/icons/build-module/library/help.js ***! - \********************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - -/** - * WordPress dependencies - */ - -const help = (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { - d: "M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z" -})); -/* harmony default export */ __webpack_exports__["default"] = (help); -//# sourceMappingURL=help.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/icons/build-module/library/info.js": -/*!********************************************************************!*\ - !*** ./node_modules/@wordpress/icons/build-module/library/info.js ***! - \********************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - -/** - * WordPress dependencies - */ - -const info = (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { - d: "M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z" -})); -/* harmony default export */ __webpack_exports__["default"] = (info); -//# sourceMappingURL=info.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/icons/build-module/library/lock-outline.js": -/*!****************************************************************************!*\ - !*** ./node_modules/@wordpress/icons/build-module/library/lock-outline.js ***! - \****************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - -/** - * WordPress dependencies - */ - -const lockOutline = (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { - d: "M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zM9.8 7c0-1.2 1-2.2 2.2-2.2 1.2 0 2.2 1 2.2 2.2v3H9.8V7zm6.7 11.5h-9v-7h9v7z" -})); -/* harmony default export */ __webpack_exports__["default"] = (lockOutline); -//# sourceMappingURL=lock-outline.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/icons/build-module/library/login.js": -/*!*********************************************************************!*\ - !*** ./node_modules/@wordpress/icons/build-module/library/login.js ***! - \*********************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - -/** - * WordPress dependencies - */ - -const login = (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { - d: "M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z" -})); -/* harmony default export */ __webpack_exports__["default"] = (login); -//# sourceMappingURL=login.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/icons/build-module/library/next.js": -/*!********************************************************************!*\ - !*** ./node_modules/@wordpress/icons/build-module/library/next.js ***! - \********************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - -/** - * WordPress dependencies - */ - -const next = (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { - d: "M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z" -})); -/* harmony default export */ __webpack_exports__["default"] = (next); -//# sourceMappingURL=next.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/icons/build-module/library/previous.js": -/*!************************************************************************!*\ - !*** ./node_modules/@wordpress/icons/build-module/library/previous.js ***! - \************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - -/** - * WordPress dependencies - */ - -const previous = (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24" -}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { - d: "M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z" -})); -/* harmony default export */ __webpack_exports__["default"] = (previous); -//# sourceMappingURL=previous.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/icons/build-module/library/shuffle.js": -/*!***********************************************************************!*\ - !*** ./node_modules/@wordpress/icons/build-module/library/shuffle.js ***! - \***********************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - -/** - * WordPress dependencies - */ - -const shuffle = (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/SVG" -}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { - d: "M17.192 6.75L15.47 5.03l1.06-1.06 3.537 3.53-3.537 3.53-1.06-1.06 1.723-1.72h-3.19c-.602 0-.993.202-1.28.498-.309.319-.538.792-.695 1.383-.13.488-.222 1.023-.296 1.508-.034.664-.116 1.413-.303 2.117-.193.721-.513 1.467-1.068 2.04-.575.594-1.359.954-2.357.954H4v-1.5h4.003c.601 0 .993-.202 1.28-.498.308-.319.538-.792.695-1.383.149-.557.216-1.093.288-1.662l.039-.31a9.653 9.653 0 0 1 .272-1.653c.193-.722.513-1.467 1.067-2.04.576-.594 1.36-.954 2.358-.954h3.19zM8.004 6.75c.8 0 1.46.23 1.988.628a6.24 6.24 0 0 0-.684 1.396 1.725 1.725 0 0 0-.024-.026c-.287-.296-.679-.498-1.28-.498H4v-1.5h4.003zM12.699 14.726c-.161.459-.38.94-.684 1.396.527.397 1.188.628 1.988.628h3.19l-1.722 1.72 1.06 1.06L20.067 16l-3.537-3.53-1.06 1.06 1.723 1.72h-3.19c-.602 0-.993-.202-1.28-.498a1.96 1.96 0 0 1-.024-.026z" -})); -/* harmony default export */ __webpack_exports__["default"] = (shuffle); -//# sourceMappingURL=shuffle.js.map - -/***/ }), - -/***/ "./node_modules/@wordpress/icons/build-module/library/wordpress.js": -/*!*************************************************************************!*\ - !*** ./node_modules/@wordpress/icons/build-module/library/wordpress.js ***! - \*************************************************************************/ -/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/primitives */ "@wordpress/primitives"); -/* harmony import */ var _wordpress_primitives__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__); - -/** - * WordPress dependencies - */ - -const wordpress = (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.SVG, { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "-2 -2 24 24" -}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_primitives__WEBPACK_IMPORTED_MODULE_1__.Path, { - d: "M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z" -})); -/* harmony default export */ __webpack_exports__["default"] = (wordpress); -//# sourceMappingURL=wordpress.js.map - -/***/ }), - -/***/ "./node_modules/classnames/index.js": -/*!******************************************!*\ - !*** ./node_modules/classnames/index.js ***! - \******************************************/ -/***/ (function(module, exports) { - -var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/ -/* global define */ - -(function () { - 'use strict'; - - var hasOwn = {}.hasOwnProperty; - var nativeCodeString = '[native code]'; - - function classNames() { - var classes = []; - - for (var i = 0; i < arguments.length; i++) { - var arg = arguments[i]; - if (!arg) continue; - - var argType = typeof arg; - - if (argType === 'string' || argType === 'number') { - classes.push(arg); - } else if (Array.isArray(arg)) { - if (arg.length) { - var inner = classNames.apply(null, arg); - if (inner) { - classes.push(inner); - } - } - } else if (argType === 'object') { - if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) { - classes.push(arg.toString()); - continue; - } - - for (var key in arg) { - if (hasOwn.call(arg, key) && arg[key]) { - classes.push(key); - } - } - } - } - - return classes.join(' '); - } - - if ( true && module.exports) { - classNames.default = classNames; - module.exports = classNames; - } else if (true) { - // register as 'classnames', consistent with npm package name - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () { - return classNames; - }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - } else {} -}()); - - -/***/ }), - -/***/ "react": -/*!************************!*\ - !*** external "React" ***! - \************************/ -/***/ (function(module) { - -"use strict"; -module.exports = window["React"]; - -/***/ }), - -/***/ "@wordpress/block-editor": -/*!*************************************!*\ - !*** external ["wp","blockEditor"] ***! - \*************************************/ -/***/ (function(module) { - -"use strict"; -module.exports = window["wp"]["blockEditor"]; - -/***/ }), - -/***/ "@wordpress/components": -/*!************************************!*\ - !*** external ["wp","components"] ***! - \************************************/ -/***/ (function(module) { - -"use strict"; -module.exports = window["wp"]["components"]; - -/***/ }), - -/***/ "@wordpress/hooks": -/*!*******************************!*\ - !*** external ["wp","hooks"] ***! - \*******************************/ -/***/ (function(module) { - -"use strict"; -module.exports = window["wp"]["hooks"]; - -/***/ }), - -/***/ "@wordpress/i18n": -/*!******************************!*\ - !*** external ["wp","i18n"] ***! - \******************************/ -/***/ (function(module) { - -"use strict"; -module.exports = window["wp"]["i18n"]; - -/***/ }), - -/***/ "@wordpress/primitives": -/*!************************************!*\ - !*** external ["wp","primitives"] ***! - \************************************/ -/***/ (function(module) { - -"use strict"; -module.exports = window["wp"]["primitives"]; - -/***/ }) - -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat get default export */ -/******/ !function() { -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function() { return module['default']; } : -/******/ function() { return module; }; -/******/ __webpack_require__.d(getter, { a: getter }); -/******/ return getter; -/******/ }; -/******/ }(); -/******/ -/******/ /* webpack/runtime/define property getters */ -/******/ !function() { -/******/ // define getter functions for harmony exports -/******/ __webpack_require__.d = function(exports, definition) { -/******/ for(var key in definition) { -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ }(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ !function() { -/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } -/******/ }(); -/******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ !function() { -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ }(); -/******/ -/************************************************************************/ -var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be in strict mode. -!function() { -"use strict"; -/*!**********************!*\ - !*** ./src/index.js ***! - \**********************/ -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ ICONS: function() { return /* binding */ ICONS; } -/* harmony export */ }); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js"); -/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); -/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/hooks */ "@wordpress/hooks"); -/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); -/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); -/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/chevron-right.js"); -/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/chevron-left.js"); -/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/chevron-right-small.js"); -/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/chevron-left-small.js"); -/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/shuffle.js"); -/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/arrow-right.js"); -/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/arrow-left.js"); -/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/next.js"); -/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/previous.js"); -/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/download.js"); -/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/external.js"); -/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/login.js"); -/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/lock-outline.js"); -/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/comment-author-avatar.js"); -/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/cloud.js"); -/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/cloud-upload.js"); -/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/help.js"); -/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/info.js"); -/* harmony import */ var _wordpress_icons__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @wordpress/icons */ "./node_modules/@wordpress/icons/build-module/library/wordpress.js"); - -/** - * External dependencies - */ - - -/** - * WordPress dependencies - */ - - - - - - -/** - * All available icons. - * (Order determines presentation order) - */ -const ICONS = [{ - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Chevron Right', 'enable-button-icons'), - value: 'chevron-right', - icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_6__["default"] -}, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Chevron Left', 'enable-button-icons'), - value: 'chevron-left', - icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_7__["default"] -}, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Chevron Right (Small)', 'enable-button-icons'), - value: 'chevron-right-small', - icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_8__["default"] -}, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Chevron Left (Small)', 'enable-button-icons'), - value: 'chevron-left-small', - icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_9__["default"] -}, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Shuffle', 'enable-button-icons'), - value: 'shuffle', - icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_10__["default"] -}, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Arrow Right', 'enable-button-icons'), - value: 'arrow-right', - icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_11__["default"] -}, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Arrow Left', 'enable-button-icons'), - value: 'arrow-left', - icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_12__["default"] -}, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Next', 'enable-button-icons'), - value: 'next', - icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_13__["default"] -}, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Pevious', 'enable-button-icons'), - value: 'previous', - icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_14__["default"] -}, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Download', 'enable-button-icons'), - value: 'download', - icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_15__["default"] -}, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('External Arrow', 'enable-button-icons'), - value: 'external-arrow', - icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", { - width: "24", - height: "24", - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" - }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("polygon", { - points: "18 6 8.15240328 6 8.15240328 8.1101993 14.3985932 8.1101993 6 16.5087925 7.4912075 18 15.8898007 9.6014068 15.8898007 15.8475967 18 15.8475967" - })) -}, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('External', 'enable-button-icons'), - value: 'external', - icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_16__["default"] -}, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Login', 'enable-button-icons'), - value: 'login', - icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_17__["default"] -}, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Lock', 'enable-button-icons'), - value: 'lock-outline', - icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_18__["default"] -}, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Avatar', 'enable-button-icons'), - value: 'comment-author-avatar', - icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_19__["default"] -}, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Cloud', 'enable-button-icons'), - value: 'cloud', - icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_20__["default"] -}, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Cloud Upload', 'enable-button-icons'), - value: 'cloud-upload', - icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_21__["default"] -}, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Help', 'enable-button-icons'), - value: 'help', - icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_22__["default"] -}, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Info', 'enable-button-icons'), - value: 'info', - icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_23__["default"] -}, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('WordPress', 'enable-button-icons'), - value: 'wordpress', - icon: _wordpress_icons__WEBPACK_IMPORTED_MODULE_24__["default"] -}]; - -/** - * Add the attributes needed for button icons. - * - * @since 0.1.0 - * @param {Object} settings - */ -function addAttributes(settings) { - if ('core/button' !== settings.name) { - return settings; - } - - // Add the block visibility attributes. - const iconAttributes = { - icon: { - type: 'string' - }, - iconPositionLeft: { - type: 'boolean', - default: false - } - }; - const newSettings = { - ...settings, - attributes: { - ...settings.attributes, - ...iconAttributes - } - }; - return newSettings; -} -(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_3__.addFilter)('blocks.registerBlockType', 'enable-button-icons/add-attributes', addAttributes); - -/** - * Filter the BlockEdit object and add icon inspector controls to button blocks. - * - * @since 0.1.0 - * @param {Object} BlockEdit - */ -function addInspectorControls(BlockEdit) { - return props => { - if (props.name !== 'core/button') { - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(BlockEdit, { - ...props - }); - } - const { - attributes, - setAttributes - } = props; - const { - icon: currentIcon, - iconPositionLeft - } = attributes; - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(BlockEdit, { - ...props - }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.InspectorControls, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.PanelBody, { - title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Icon settings', 'enable-button-icons'), - className: "button-icon-picker", - initialOpen: true - }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.PanelRow, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.__experimentalGrid, { - className: "button-icon-picker__grid", - columns: "5", - gap: "0" - }, ICONS.map((icon, index) => { - var _icon$icon; - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.Button, { - key: index, - label: icon?.label, - isPressed: currentIcon === icon.value, - className: "button-icon-picker__button", - onClick: () => setAttributes({ - // Allow user to disable icons. - icon: currentIcon === icon.value ? null : icon.value - }) - }, (_icon$icon = icon.icon) !== null && _icon$icon !== void 0 ? _icon$icon : icon.value); - }))), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.PanelRow, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.ToggleControl, { - label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Show icon on left', 'enable-button-icons'), - checked: iconPositionLeft, - onChange: () => { - setAttributes({ - iconPositionLeft: !iconPositionLeft - }); - } - }))))); - }; -} -(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_3__.addFilter)('editor.BlockEdit', 'enable-button-icons/add-inspector-controls', addInspectorControls); - -/** - * Add icon and position classes in the Editor. - * - * @since 0.1.0 - * @param {Object} BlockListBlock - */ -function addClasses(BlockListBlock) { - return props => { - const { - name, - attributes - } = props; - if ('core/button' !== name || !attributes?.icon) { - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(BlockListBlock, { - ...props - }); - } - const classes = classnames__WEBPACK_IMPORTED_MODULE_1___default()(props?.className, { - [`has-icon__${attributes?.icon}`]: attributes?.icon, - 'has-icon-position__left': attributes?.iconPositionLeft - }); - return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(BlockListBlock, { - ...props, - className: classes - }); - }; -} -(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_3__.addFilter)('editor.BlockListBlock', 'enable-button-icons/add-classes', addClasses); -}(); -/******/ })() -; -//# sourceMappingURL=index.js.map \ No newline at end of file +(()=>{var e={942:(e,t)=>{var n;!function(){"use strict";var l={}.hasOwnProperty;function o(){for(var e="",t=0;t{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var l in t)n.o(t,l)&&!n.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.React;var t=n(942),l=n.n(t);const o=window.wp.i18n,a=window.wp.hooks,c=window.wp.blockEditor,r=window.wp.components,i=window.wp.primitives,s=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"})),w=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})),v=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})),u=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"})),h=(0,e.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/SVG"},(0,e.createElement)(i.Path,{d:"M17.192 6.75L15.47 5.03l1.06-1.06 3.537 3.53-3.537 3.53-1.06-1.06 1.723-1.72h-3.19c-.602 0-.993.202-1.28.498-.309.319-.538.792-.695 1.383-.13.488-.222 1.023-.296 1.508-.034.664-.116 1.413-.303 2.117-.193.721-.513 1.467-1.068 2.04-.575.594-1.359.954-2.357.954H4v-1.5h4.003c.601 0 .993-.202 1.28-.498.308-.319.538-.792.695-1.383.149-.557.216-1.093.288-1.662l.039-.31a9.653 9.653 0 0 1 .272-1.653c.193-.722.513-1.467 1.067-2.04.576-.594 1.36-.954 2.358-.954h3.19zM8.004 6.75c.8 0 1.46.23 1.988.628a6.24 6.24 0 0 0-.684 1.396 1.725 1.725 0 0 0-.024-.026c-.287-.296-.679-.498-1.28-.498H4v-1.5h4.003zM12.699 14.726c-.161.459-.38.94-.684 1.396.527.397 1.188.628 1.988.628h3.19l-1.722 1.72 1.06 1.06L20.067 16l-3.537-3.53-1.06 1.06 1.723 1.72h-3.19c-.602 0-.993-.202-1.28-.498a1.96 1.96 0 0 1-.024-.026z"})),m=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"})),b=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})),d=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"})),p=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"})),g=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M18 11.3l-1-1.1-4 4V3h-1.5v11.3L7 10.2l-1 1.1 6.2 5.8 5.8-5.8zm.5 3.7v3.5h-13V15H4v5h16v-5h-1.5z"})),E=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})),_=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"})),x=(0,e.createElement)(i.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(i.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zM9.8 7c0-1.2 1-2.2 2.2-2.2 1.2 0 2.2 1 2.2 2.2v3H9.8V7zm6.7 11.5h-9v-7h9v7z"})),f=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})),z=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-9c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4h1.3l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8-.1 1-.9 1.8-1.8 1.8z"})),V=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-4v-2.4L14 14l1-1-3-3-3 3 1 1 1.2-1.2v2.4H7.7c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4H9l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8 0 1-.8 1.8-1.7 1.8z"})),P=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"})),M=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),L=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,e.createElement)(i.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})),S=[{label:(0,o.__)("Chevron Right","enable-button-icons"),value:"chevron-right",icon:s},{label:(0,o.__)("Chevron Left","enable-button-icons"),value:"chevron-left",icon:w},{label:(0,o.__)("Chevron Right (Small)","enable-button-icons"),value:"chevron-right-small",icon:v},{label:(0,o.__)("Chevron Left (Small)","enable-button-icons"),value:"chevron-left-small",icon:u},{label:(0,o.__)("Shuffle","enable-button-icons"),value:"shuffle",icon:h},{label:(0,o.__)("Arrow Right","enable-button-icons"),value:"arrow-right",icon:m},{label:(0,o.__)("Arrow Left","enable-button-icons"),value:"arrow-left",icon:b},{label:(0,o.__)("Next","enable-button-icons"),value:"next",icon:d},{label:(0,o.__)("Previous","enable-button-icons"),value:"previous",icon:p},{label:(0,o.__)("Download","enable-button-icons"),value:"download",icon:g},{label:(0,o.__)("External Arrow","enable-button-icons"),value:"external-arrow",icon:(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("polygon",{points:"18 6 8.15240328 6 8.15240328 8.1101993 14.3985932 8.1101993 6 16.5087925 7.4912075 18 15.8898007 9.6014068 15.8898007 15.8475967 18 15.8475967"}))},{label:(0,o.__)("External","enable-button-icons"),value:"external",icon:E},{label:(0,o.__)("Login","enable-button-icons"),value:"login",icon:_},{label:(0,o.__)("Lock","enable-button-icons"),value:"lock-outline",icon:x},{label:(0,o.__)("Avatar","enable-button-icons"),value:"comment-author-avatar",icon:f},{label:(0,o.__)("Cloud","enable-button-icons"),value:"cloud",icon:z},{label:(0,o.__)("Cloud Upload","enable-button-icons"),value:"cloud-upload",icon:V},{label:(0,o.__)("Help","enable-button-icons"),value:"help",icon:P},{label:(0,o.__)("Info","enable-button-icons"),value:"info",icon:M},{label:(0,o.__)("WordPress","enable-button-icons"),value:"wordpress",icon:L}];(0,a.addFilter)("blocks.registerBlockType","enable-button-icons/add-attributes",(function(e){return"core/button"!==e.name?e:{...e,attributes:{...e.attributes,icon:{type:"string"},iconPositionLeft:{type:"boolean",default:!1}}}})),(0,a.addFilter)("editor.BlockEdit","enable-button-icons/add-inspector-controls",(function(t){return n=>{if("core/button"!==n.name)return(0,e.createElement)(t,{...n});const{attributes:l,setAttributes:a}=n,{icon:i,iconPositionLeft:s}=l;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t,{...n}),(0,e.createElement)(c.InspectorControls,null,(0,e.createElement)(r.PanelBody,{title:(0,o.__)("Icon settings","enable-button-icons"),className:"button-icon-picker",initialOpen:!0},(0,e.createElement)(r.PanelRow,null,(0,e.createElement)(r.__experimentalGrid,{className:"button-icon-picker__grid",columns:"5",gap:"0"},S.map(((t,n)=>{var l;return(0,e.createElement)(r.Button,{key:n,label:t?.label,isPressed:i===t.value,className:"button-icon-picker__button",onClick:()=>a({icon:i===t.value?null:t.value})},null!==(l=t.icon)&&void 0!==l?l:t.value)})))),(0,e.createElement)(r.PanelRow,null,(0,e.createElement)(r.ToggleControl,{label:(0,o.__)("Show icon on left","enable-button-icons"),checked:s,onChange:()=>{a({iconPositionLeft:!s})}})))))}})),(0,a.addFilter)("editor.BlockListBlock","enable-button-icons/add-classes",(function(t){return n=>{const{name:o,attributes:a}=n;if("core/button"!==o||!a?.icon)return(0,e.createElement)(t,{...n});const c=l()(n?.className,{[`has-icon__${a?.icon}`]:a?.icon,"has-icon-position__left":a?.iconPositionLeft});return(0,e.createElement)(t,{...n,className:c})}}))})()})(); \ No newline at end of file diff --git a/build/index.js.map b/build/index.js.map deleted file mode 100644 index 6b4add2..0000000 --- a/build/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","mappings":";;;;;;;;;;;;;;;AAAsC;AACtC;AACA;AACA;AACkD;AAClD,kBAAkB,oDAAa,CAAC,sDAAG;AACnC;AACA;AACA,CAAC,EAAE,oDAAa,CAAC,uDAAI;AACrB;AACA,CAAC;AACD,+DAAe,SAAS,EAAC;AACzB;;;;;;;;;;;;;;;;ACZsC;AACtC;AACA;AACA;AACkD;AAClD,mBAAmB,oDAAa,CAAC,sDAAG;AACpC;AACA;AACA,CAAC,EAAE,oDAAa,CAAC,uDAAI;AACrB;AACA,CAAC;AACD,+DAAe,UAAU,EAAC;AAC1B;;;;;;;;;;;;;;;;ACZsC;AACtC;AACA;AACA;AACkD;AAClD,yBAAyB,oDAAa,CAAC,sDAAG;AAC1C;AACA;AACA,CAAC,EAAE,oDAAa,CAAC,uDAAI;AACrB;AACA,CAAC;AACD,+DAAe,gBAAgB,EAAC;AAChC;;;;;;;;;;;;;;;;ACZsC;AACtC;AACA;AACA;AACkD;AAClD,oBAAoB,oDAAa,CAAC,sDAAG;AACrC;AACA;AACA,CAAC,EAAE,oDAAa,CAAC,uDAAI;AACrB;AACA,CAAC;AACD,+DAAe,WAAW,EAAC;AAC3B;;;;;;;;;;;;;;;;ACZsC;AACtC;AACA;AACA;AACkD;AAClD,0BAA0B,oDAAa,CAAC,sDAAG;AAC3C;AACA;AACA,CAAC,EAAE,oDAAa,CAAC,uDAAI;AACrB;AACA,CAAC;AACD,+DAAe,iBAAiB,EAAC;AACjC;;;;;;;;;;;;;;;;ACZsC;AACtC;AACA;AACA;AACkD;AAClD,qBAAqB,oDAAa,CAAC,sDAAG;AAC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;MAAEM;IAAW,CAAC,GAAGG,KAAK;IAElC,IAAK,aAAa,KAAKT,IAAI,IAAI,CAAEM,UAAU,EAAEf,IAAI,EAAG;MACnD,OAAOC,oDAAA,CAACmC,cAAc;QAAA,GAAMlB;MAAK,CAAI,CAAC;IACvC;IAEA,MAAMmB,OAAO,GAAGrE,iDAAU,CAAEkD,KAAK,EAAEK,SAAS,EAAE;MAC7C,CAAG,aAAaR,UAAU,EAAEf,IAAM,EAAC,GAAIe,UAAU,EAAEf,IAAI;MACvD,yBAAyB,EAAEe,UAAU,EAAEH;IACxC,CAAE,CAAC;IAEH,OAAOX,oDAAA,CAACmC,cAAc;MAAA,GAAMlB,KAAK;MAAGK,SAAS,EAAGc;IAAS,CAAE,CAAC;EAC7D,CAAC;AACF;AAEAnE,2DAAS,CACR,uBAAuB,EACvB,iCAAiC,EACjCiE,UACD,CAAC,C","sources":["webpack://enable-button-icons/./node_modules/@wordpress/icons/build-module/library/arrow-left.js","webpack://enable-button-icons/./node_modules/@wordpress/icons/build-module/library/arrow-right.js","webpack://enable-button-icons/./node_modules/@wordpress/icons/build-module/library/chevron-left-small.js","webpack://enable-button-icons/./node_modules/@wordpress/icons/build-module/library/chevron-left.js","webpack://enable-button-icons/./node_modules/@wordpress/icons/build-module/library/chevron-right-small.js","webpack://enable-button-icons/./node_modules/@wordpress/icons/build-module/library/chevron-right.js","webpack://enable-button-icons/./node_modules/@wordpress/icons/build-module/library/cloud-upload.js","webpack://enable-button-icons/./node_modules/@wordpress/icons/build-module/library/cloud.js","webpack://enable-button-icons/./node_modules/@wordpress/icons/build-module/library/comment-author-avatar.js","webpack://enable-button-icons/./node_modules/@wordpress/icons/build-module/library/download.js","webpack://enable-button-icons/./node_modules/@wordpress/icons/build-module/library/external.js","webpack://enable-button-icons/./node_modules/@wordpress/icons/build-module/library/help.js","webpack://enable-button-icons/./node_modules/@wordpress/icons/build-module/library/info.js","webpack://enable-button-icons/./node_modules/@wordpress/icons/build-module/library/lock-outline.js","webpack://enable-button-icons/./node_modules/@wordpress/icons/build-module/library/login.js","webpack://enable-button-icons/./node_modules/@wordpress/icons/build-module/library/next.js","webpack://enable-button-icons/./node_modules/@wordpress/icons/build-module/library/previous.js","webpack://enable-button-icons/./node_modules/@wordpress/icons/build-module/library/shuffle.js","webpack://enable-button-icons/./node_modules/@wordpress/icons/build-module/library/wordpress.js","webpack://enable-button-icons/./node_modules/classnames/index.js","webpack://enable-button-icons/external window \"React\"","webpack://enable-button-icons/external window [\"wp\",\"blockEditor\"]","webpack://enable-button-icons/external window [\"wp\",\"components\"]","webpack://enable-button-icons/external window [\"wp\",\"hooks\"]","webpack://enable-button-icons/external window [\"wp\",\"i18n\"]","webpack://enable-button-icons/external window [\"wp\",\"primitives\"]","webpack://enable-button-icons/webpack/bootstrap","webpack://enable-button-icons/webpack/runtime/compat get default export","webpack://enable-button-icons/webpack/runtime/define property getters","webpack://enable-button-icons/webpack/runtime/hasOwnProperty shorthand","webpack://enable-button-icons/webpack/runtime/make namespace object","webpack://enable-button-icons/./src/index.js"],"sourcesContent":["import { createElement } from \"react\";\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst arrowLeft = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z\"\n}));\nexport default arrowLeft;\n//# sourceMappingURL=arrow-left.js.map","import { createElement } from \"react\";\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst arrowRight = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z\"\n}));\nexport default arrowRight;\n//# sourceMappingURL=arrow-right.js.map","import { createElement } from \"react\";\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst chevronLeftSmall = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z\"\n}));\nexport default chevronLeftSmall;\n//# sourceMappingURL=chevron-left-small.js.map","import { createElement } from \"react\";\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst chevronLeft = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z\"\n}));\nexport default chevronLeft;\n//# sourceMappingURL=chevron-left.js.map","import { createElement } from \"react\";\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst chevronRightSmall = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z\"\n}));\nexport default chevronRightSmall;\n//# sourceMappingURL=chevron-right-small.js.map","import { createElement } from \"react\";\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst chevronRight = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z\"\n}));\nexport default chevronRight;\n//# sourceMappingURL=chevron-right.js.map","import { createElement } from \"react\";\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst cloudUpload = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-4v-2.4L14 14l1-1-3-3-3 3 1 1 1.2-1.2v2.4H7.7c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4H9l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8 0 1-.8 1.8-1.7 1.8z\"\n}));\nexport default cloudUpload;\n//# sourceMappingURL=cloud-upload.js.map","import { createElement } from \"react\";\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst cloud = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-9c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4h1.3l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8-.1 1-.9 1.8-1.8 1.8z\"\n}));\nexport default cloud;\n//# sourceMappingURL=cloud.js.map","import { createElement } from \"react\";\n/**\n * WordPress dependencies\n */\nimport { Path, SVG } from '@wordpress/primitives';\nconst commentAuthorAvatar = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n fillRule: \"evenodd\",\n d: \"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z\",\n clipRule: \"evenodd\"\n}));\nexport default commentAuthorAvatar;\n//# sourceMappingURL=comment-author-avatar.js.map","import { createElement } from \"react\";\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst download = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M18 11.3l-1-1.1-4 4V3h-1.5v11.3L7 10.2l-1 1.1 6.2 5.8 5.8-5.8zm.5 3.7v3.5h-13V15H4v5h16v-5h-1.5z\"\n}));\nexport default download;\n//# sourceMappingURL=download.js.map","import { createElement } from \"react\";\n/**\n * WordPress dependencies\n */\nimport { Path, SVG } from '@wordpress/primitives';\nconst external = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z\"\n}));\nexport default external;\n//# sourceMappingURL=external.js.map","import { createElement } from \"react\";\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst help = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z\"\n}));\nexport default help;\n//# sourceMappingURL=help.js.map","import { createElement } from \"react\";\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst info = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z\"\n}));\nexport default info;\n//# sourceMappingURL=info.js.map","import { createElement } from \"react\";\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst lockOutline = createElement(SVG, {\n viewBox: \"0 0 24 24\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, createElement(Path, {\n d: \"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zM9.8 7c0-1.2 1-2.2 2.2-2.2 1.2 0 2.2 1 2.2 2.2v3H9.8V7zm6.7 11.5h-9v-7h9v7z\"\n}));\nexport default lockOutline;\n//# sourceMappingURL=lock-outline.js.map","import { createElement } from \"react\";\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst login = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z\"\n}));\nexport default login;\n//# sourceMappingURL=login.js.map","import { createElement } from \"react\";\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst next = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z\"\n}));\nexport default next;\n//# sourceMappingURL=next.js.map","import { createElement } from \"react\";\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst previous = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z\"\n}));\nexport default previous;\n//# sourceMappingURL=previous.js.map","import { createElement } from \"react\";\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst shuffle = createElement(SVG, {\n viewBox: \"0 0 24 24\",\n xmlns: \"http://www.w3.org/2000/SVG\"\n}, createElement(Path, {\n d: \"M17.192 6.75L15.47 5.03l1.06-1.06 3.537 3.53-3.537 3.53-1.06-1.06 1.723-1.72h-3.19c-.602 0-.993.202-1.28.498-.309.319-.538.792-.695 1.383-.13.488-.222 1.023-.296 1.508-.034.664-.116 1.413-.303 2.117-.193.721-.513 1.467-1.068 2.04-.575.594-1.359.954-2.357.954H4v-1.5h4.003c.601 0 .993-.202 1.28-.498.308-.319.538-.792.695-1.383.149-.557.216-1.093.288-1.662l.039-.31a9.653 9.653 0 0 1 .272-1.653c.193-.722.513-1.467 1.067-2.04.576-.594 1.36-.954 2.358-.954h3.19zM8.004 6.75c.8 0 1.46.23 1.988.628a6.24 6.24 0 0 0-.684 1.396 1.725 1.725 0 0 0-.024-.026c-.287-.296-.679-.498-1.28-.498H4v-1.5h4.003zM12.699 14.726c-.161.459-.38.94-.684 1.396.527.397 1.188.628 1.988.628h3.19l-1.722 1.72 1.06 1.06L20.067 16l-3.537-3.53-1.06 1.06 1.723 1.72h-3.19c-.602 0-.993-.202-1.28-.498a1.96 1.96 0 0 1-.024-.026z\"\n}));\nexport default shuffle;\n//# sourceMappingURL=shuffle.js.map","import { createElement } from \"react\";\n/**\n * WordPress dependencies\n */\nimport { Path, SVG } from '@wordpress/primitives';\nconst wordpress = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"-2 -2 24 24\"\n}, createElement(Path, {\n d: \"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z\"\n}));\nexport default wordpress;\n//# sourceMappingURL=wordpress.js.map","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","module.exports = window[\"React\"];","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"hooks\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"primitives\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { addFilter } from '@wordpress/hooks';\nimport { InspectorControls } from '@wordpress/block-editor';\nimport {\n\tButton,\n\tPanelBody,\n\tPanelRow,\n\tToggleControl,\n\t__experimentalGrid as Grid, // eslint-disable-line\n} from '@wordpress/components';\nimport {\n\tarrowRight,\n\tarrowLeft,\n\tchevronLeft,\n\tchevronLeftSmall,\n\tchevronRight,\n\tchevronRightSmall,\n\tcloud,\n\tcloudUpload,\n\tcommentAuthorAvatar,\n\tdownload,\n\texternal,\n\thelp,\n\tinfo,\n\tlockOutline,\n\tlogin,\n\tnext,\n\tprevious,\n\tshuffle,\n\twordpress,\n} from '@wordpress/icons';\n\n/**\n * All available icons.\n * (Order determines presentation order)\n */\nexport const ICONS = [\n\t{\n\t\tlabel: __( 'Chevron Right', 'enable-button-icons' ),\n\t\tvalue: 'chevron-right',\n\t\ticon: chevronRight,\n\t},\n\t{\n\t\tlabel: __( 'Chevron Left', 'enable-button-icons' ),\n\t\tvalue: 'chevron-left',\n\t\ticon: chevronLeft,\n\t},\n\t{\n\t\tlabel: __( 'Chevron Right (Small)', 'enable-button-icons' ),\n\t\tvalue: 'chevron-right-small',\n\t\ticon: chevronRightSmall,\n\t},\n\t{\n\t\tlabel: __( 'Chevron Left (Small)', 'enable-button-icons' ),\n\t\tvalue: 'chevron-left-small',\n\t\ticon: chevronLeftSmall,\n\t},\n\t{\n\t\tlabel: __( 'Shuffle', 'enable-button-icons' ),\n\t\tvalue: 'shuffle',\n\t\ticon: shuffle,\n\t},\n\t{\n\t\tlabel: __( 'Arrow Right', 'enable-button-icons' ),\n\t\tvalue: 'arrow-right',\n\t\ticon: arrowRight,\n\t},\n\t{\n\t\tlabel: __( 'Arrow Left', 'enable-button-icons' ),\n\t\tvalue: 'arrow-left',\n\t\ticon: arrowLeft,\n\t},\n\t{\n\t\tlabel: __( 'Next', 'enable-button-icons' ),\n\t\tvalue: 'next',\n\t\ticon: next,\n\t},\n\t{\n\t\tlabel: __( 'Pevious', 'enable-button-icons' ),\n\t\tvalue: 'previous',\n\t\ticon: previous,\n\t},\n\t{\n\t\tlabel: __( 'Download', 'enable-button-icons' ),\n\t\tvalue: 'download',\n\t\ticon: download,\n\t},\n\t{\n\t\tlabel: __( 'External Arrow', 'enable-button-icons' ),\n\t\tvalue: 'external-arrow',\n\t\ticon: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t},\n\t{\n\t\tlabel: __( 'External', 'enable-button-icons' ),\n\t\tvalue: 'external',\n\t\ticon: external,\n\t},\n\t{\n\t\tlabel: __( 'Login', 'enable-button-icons' ),\n\t\tvalue: 'login',\n\t\ticon: login,\n\t},\n\t{\n\t\tlabel: __( 'Lock', 'enable-button-icons' ),\n\t\tvalue: 'lock-outline',\n\t\ticon: lockOutline,\n\t},\n\t{\n\t\tlabel: __( 'Avatar', 'enable-button-icons' ),\n\t\tvalue: 'comment-author-avatar',\n\t\ticon: commentAuthorAvatar,\n\t},\n\t{\n\t\tlabel: __( 'Cloud', 'enable-button-icons' ),\n\t\tvalue: 'cloud',\n\t\ticon: cloud,\n\t},\n\t{\n\t\tlabel: __( 'Cloud Upload', 'enable-button-icons' ),\n\t\tvalue: 'cloud-upload',\n\t\ticon: cloudUpload,\n\t},\n\t{\n\t\tlabel: __( 'Help', 'enable-button-icons' ),\n\t\tvalue: 'help',\n\t\ticon: help,\n\t},\n\t{\n\t\tlabel: __( 'Info', 'enable-button-icons' ),\n\t\tvalue: 'info',\n\t\ticon: info,\n\t},\n\t{\n\t\tlabel: __( 'WordPress', 'enable-button-icons' ),\n\t\tvalue: 'wordpress',\n\t\ticon: wordpress,\n\t},\n];\n\n/**\n * Add the attributes needed for button icons.\n *\n * @since 0.1.0\n * @param {Object} settings\n */\nfunction addAttributes( settings ) {\n\tif ( 'core/button' !== settings.name ) {\n\t\treturn settings;\n\t}\n\n\t// Add the block visibility attributes.\n\tconst iconAttributes = {\n\t\ticon: {\n\t\t\ttype: 'string',\n\t\t},\n\t\ticonPositionLeft: {\n\t\t\ttype: 'boolean',\n\t\t\tdefault: false,\n\t\t},\n\t};\n\n\tconst newSettings = {\n\t\t...settings,\n\t\tattributes: {\n\t\t\t...settings.attributes,\n\t\t\t...iconAttributes,\n\t\t},\n\t};\n\n\treturn newSettings;\n}\n\naddFilter(\n\t'blocks.registerBlockType',\n\t'enable-button-icons/add-attributes',\n\taddAttributes\n);\n\n/**\n * Filter the BlockEdit object and add icon inspector controls to button blocks.\n *\n * @since 0.1.0\n * @param {Object} BlockEdit\n */\nfunction addInspectorControls( BlockEdit ) {\n\treturn ( props ) => {\n\t\tif ( props.name !== 'core/button' ) {\n\t\t\treturn ;\n\t\t}\n\n\t\tconst { attributes, setAttributes } = props;\n\t\tconst { icon: currentIcon, iconPositionLeft } = attributes;\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t{ ICONS.map( ( icon, index ) => (\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\t\t\t\t// Allow user to disable icons.\n\t\t\t\t\t\t\t\t\t\t\t\ticon:\n\t\t\t\t\t\t\t\t\t\t\t\t\tcurrentIcon === icon.value\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? null\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: icon.value,\n\t\t\t\t\t\t\t\t\t\t\t} )\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{ icon.icon ?? icon.value }\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t) ) }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\tsetAttributes( {\n\t\t\t\t\t\t\t\t\t\ticonPositionLeft: ! iconPositionLeft,\n\t\t\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t);\n\t};\n}\n\naddFilter(\n\t'editor.BlockEdit',\n\t'enable-button-icons/add-inspector-controls',\n\taddInspectorControls\n);\n\n/**\n * Add icon and position classes in the Editor.\n *\n * @since 0.1.0\n * @param {Object} BlockListBlock\n */\nfunction addClasses( BlockListBlock ) {\n\treturn ( props ) => {\n\t\tconst { name, attributes } = props;\n\n\t\tif ( 'core/button' !== name || ! attributes?.icon ) {\n\t\t\treturn ;\n\t\t}\n\n\t\tconst classes = classnames( props?.className, {\n\t\t\t[ `has-icon__${ attributes?.icon }` ]: attributes?.icon,\n\t\t\t'has-icon-position__left': attributes?.iconPositionLeft,\n\t\t} );\n\n\t\treturn ;\n\t};\n}\n\naddFilter(\n\t'editor.BlockListBlock',\n\t'enable-button-icons/add-classes',\n\taddClasses\n);\n"],"names":["classnames","__","addFilter","InspectorControls","Button","PanelBody","PanelRow","ToggleControl","__experimentalGrid","Grid","arrowRight","arrowLeft","chevronLeft","chevronLeftSmall","chevronRight","chevronRightSmall","cloud","cloudUpload","commentAuthorAvatar","download","external","help","info","lockOutline","login","next","previous","shuffle","wordpress","ICONS","label","value","icon","createElement","width","height","viewBox","xmlns","points","addAttributes","settings","name","iconAttributes","type","iconPositionLeft","default","newSettings","attributes","addInspectorControls","BlockEdit","props","setAttributes","currentIcon","Fragment","title","className","initialOpen","columns","gap","map","index","_icon$icon","key","isPressed","onClick","checked","onChange","addClasses","BlockListBlock","classes"],"sourceRoot":""} \ No newline at end of file diff --git a/build/style.asset.php b/build/style.asset.php index e4f6979..e8469f3 100644 --- a/build/style.asset.php +++ b/build/style.asset.php @@ -1 +1 @@ - array(), 'version' => '12b57ec001d2eaa63574'); + array(), 'version' => 'befba063cc451bb8ad81'); diff --git a/build/style.css b/build/style.css index b1a4a9b..df03ce5 100644 --- a/build/style.css +++ b/build/style.css @@ -1,61 +1 @@ -/*!***************************************************************************************************************************************************************************************************************************************!*\ - !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/index.scss ***! - \***************************************************************************************************************************************************************************************************************************************/ -.wp-block-button[class*=has-icon__] .wp-block-button__link { - display: flex; - gap: 0.5em; - align-items: center; -} -.wp-block-button[class*=has-icon__] .wp-block-button__link span { - line-height: 0; -} -.wp-block-button[class*=has-icon__] .wp-block-button__link svg { - color: currentColor; - fill: currentColor; -} -.wp-block-button[class*=has-icon__].has-icon__arrow-left svg, .wp-block-button[class*=has-icon__].has-icon__arrow-right svg, .wp-block-button[class*=has-icon__].has-icon__cloud svg, .wp-block-button[class*=has-icon__].has-icon__cloud-upload svg { - height: 0.7em; - width: 1em; -} -.wp-block-button[class*=has-icon__].has-icon__chevron-left svg, .wp-block-button[class*=has-icon__].has-icon__chevron-right svg { - height: 0.8em; - width: 0.45em; -} -.wp-block-button[class*=has-icon__].has-icon__chevron-left-small svg, .wp-block-button[class*=has-icon__].has-icon__chevron-right-small svg { - height: 0.5em; - width: 0.3em; -} -.wp-block-button[class*=has-icon__].has-icon__comment-author-avatar svg, .wp-block-button[class*=has-icon__].has-icon__help svg, .wp-block-button[class*=has-icon__].has-icon__info svg { - height: 0.9em; - width: 0.9em; -} -.wp-block-button[class*=has-icon__].has-icon__download svg { - height: 0.8em; - width: 0.75em; -} -.wp-block-button[class*=has-icon__].has-icon__external svg { - height: 0.7em; - width: 0.7em; -} -.wp-block-button[class*=has-icon__].has-icon__external-arrow svg { - height: 0.6em; - width: 0.6em; -} -.wp-block-button[class*=has-icon__].has-icon__lock-outline svg { - height: 0.9em; - width: 0.64em; -} -.wp-block-button[class*=has-icon__].has-icon__login svg { - height: 0.8em; - width: 0.8em; -} -.wp-block-button[class*=has-icon__].has-icon__next svg, .wp-block-button[class*=has-icon__].has-icon__previous svg { - height: 0.75em; - width: 0.775em; -} -.wp-block-button[class*=has-icon__].has-icon__shuffle svg, .wp-block-button[class*=has-icon__].has-icon__wordpress svg { - height: 0.9em; - width: 0.9em; -} - -/*# sourceMappingURL=style.css.map*/ \ No newline at end of file +.wp-block-button[class*=has-icon__] .wp-block-button__link{align-items:center;display:flex;gap:.5em}.wp-block-button[class*=has-icon__] .wp-block-button__link span{line-height:0}.wp-block-button[class*=has-icon__] .wp-block-button__link svg{color:currentColor;fill:currentColor}.wp-block-button[class*=has-icon__].has-icon__arrow-left svg,.wp-block-button[class*=has-icon__].has-icon__arrow-right svg,.wp-block-button[class*=has-icon__].has-icon__cloud svg,.wp-block-button[class*=has-icon__].has-icon__cloud-upload svg{height:.7em;width:1em}.wp-block-button[class*=has-icon__].has-icon__chevron-left svg,.wp-block-button[class*=has-icon__].has-icon__chevron-right svg{height:.8em;width:.45em}.wp-block-button[class*=has-icon__].has-icon__chevron-left-small svg,.wp-block-button[class*=has-icon__].has-icon__chevron-right-small svg{height:.5em;width:.3em}.wp-block-button[class*=has-icon__].has-icon__comment-author-avatar svg,.wp-block-button[class*=has-icon__].has-icon__help svg,.wp-block-button[class*=has-icon__].has-icon__info svg{height:.9em;width:.9em}.wp-block-button[class*=has-icon__].has-icon__download svg{height:.8em;width:.75em}.wp-block-button[class*=has-icon__].has-icon__external svg{height:.7em;width:.7em}.wp-block-button[class*=has-icon__].has-icon__external-arrow svg{height:.6em;width:.6em}.wp-block-button[class*=has-icon__].has-icon__lock-outline svg{height:.9em;width:.64em}.wp-block-button[class*=has-icon__].has-icon__login svg{height:.8em;width:.8em}.wp-block-button[class*=has-icon__].has-icon__next svg,.wp-block-button[class*=has-icon__].has-icon__previous svg{height:.75em;width:.775em}.wp-block-button[class*=has-icon__].has-icon__shuffle svg,.wp-block-button[class*=has-icon__].has-icon__wordpress svg{height:.9em;width:.9em} diff --git a/build/style.css.map b/build/style.css.map deleted file mode 100644 index 8377019..0000000 --- a/build/style.css.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"style.css","mappings":";;;AACI;EACI;EACA;EACA;AAAR;AAEQ;EACI;AAAZ;AAGQ;EACI;EACA;AADZ;AASQ;EACI;EACA;AAPZ;AAaQ;EACI;EACA;AAXZ;AAiBQ;EACI;EACA;AAfZ;AAsBQ;EACI;EACA;AApBZ;AAyBQ;EACI;EACA;AAvBZ;AA4BQ;EACI;EACA;AA1BZ;AA+BQ;EACI;EACA;AA7BZ;AAkCQ;EACI;EACA;AAhCZ;AAqCQ;EACI;EACA;AAnCZ;AAyCQ;EACI;EACA;AAvCZ;AA6CQ;EACI;EACA;AA3CZ,C","sources":["webpack://enable-button-icons/./src/index.scss"],"sourcesContent":[".wp-block-button[class*=has-icon__] {\n .wp-block-button__link {\n display: flex;\n gap: 0.5em;\n align-items: center;\n\n span {\n line-height: 0;\n }\n\n svg {\n color: currentColor;\n fill: currentColor;\n }\n }\n\n &.has-icon__arrow-left,\n &.has-icon__arrow-right,\n &.has-icon__cloud,\n &.has-icon__cloud-upload {\n svg {\n height: 0.7em;\n width: 1em;\n }\n }\n\n &.has-icon__chevron-left,\n &.has-icon__chevron-right {\n svg {\n height: 0.8em;\n width: 0.45em;\n }\n }\n\n &.has-icon__chevron-left-small,\n &.has-icon__chevron-right-small {\n svg {\n height: 0.5em;\n width: 0.3em;\n }\n }\n\n &.has-icon__comment-author-avatar,\n &.has-icon__help,\n &.has-icon__info {\n svg {\n height: 0.9em;\n width: 0.9em;\n }\n }\n\n &.has-icon__download {\n svg {\n height: 0.8em;\n width: 0.75em;\n }\n }\n\n &.has-icon__external {\n svg {\n height: 0.7em;\n width: 0.7em;\n }\n }\n\n &.has-icon__external-arrow {\n svg {\n height: 0.6em;\n width: 0.6em;\n }\n }\n\n &.has-icon__lock-outline {\n svg {\n height: 0.9em;\n width: 0.64em;\n }\n }\n\n &.has-icon__login {\n svg {\n height: 0.8em;\n width: 0.8em;\n }\n }\n\n &.has-icon__next,\n &.has-icon__previous {\n svg {\n height: 0.75em;\n width: 0.775em;\n }\n }\n\n &.has-icon__shuffle,\n &.has-icon__wordpress {\n svg {\n height: 0.9em;\n width: 0.9em;\n }\n }\n} "],"names":[],"sourceRoot":""} \ No newline at end of file