rebase code on oct-10-2023
This commit is contained in:
@@ -1 +1 @@
|
||||
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wc-admin-layout', 'wc-components', 'wc-csv', 'wc-currency', 'wc-customer-effort-score', 'wc-date', 'wc-experimental', 'wc-explat', 'wc-navigation', 'wc-notices', 'wc-number', 'wc-product-editor', 'wc-settings', 'wc-store-data', 'wc-tracks', 'wp-a11y', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-primitives', 'wp-url', 'wp-viewport', 'wp-warning'), 'version' => '23912561a6f0642f272713fb0b777e24');
|
||||
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wc-admin-layout', 'wc-components', 'wc-csv', 'wc-currency', 'wc-customer-effort-score', 'wc-date', 'wc-experimental', 'wc-explat', 'wc-navigation', 'wc-notices', 'wc-number', 'wc-product-editor', 'wc-settings', 'wc-store-data', 'wc-tracks', 'wp-a11y', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-primitives', 'wp-url', 'wp-viewport', 'wp-warning'), 'version' => '7b0bf67d40b61fcab89fdf5cdef5da71');
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[7844],{28029:(e,a,s)=>{s.r(a),s.d(a,{SetupTasksPanel:()=>n,default:()=>l});var c=s(69307),t=s(159);const n=e=>{let{query:a}=e;return(0,c.createElement)("div",{className:"woocommerce-setup-panel"},(0,c.createElement)(t.TaskLists,{query:a}))},l=n}}]);
|
||||
"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[7844],{28029:(e,a,s)=>{s.r(a),s.d(a,{SetupTasksPanel:()=>n,default:()=>l});var c=s(69307),t=s(95817);const n=e=>{let{query:a}=e;return(0,c.createElement)("div",{className:"woocommerce-setup-panel"},(0,c.createElement)(t.TaskLists,{query:a}))},l=n}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
"use strict";(globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[]).push([[925],{25:(e,t,n)=>{n.r(t),n.d(t,{CustomizeStoreController:()=>T,customizeStoreStateMachineActions:()=>h,customizeStoreStateMachineDefinition:()=>p,customizeStoreStateMachineServices:()=>u,default:()=>v});var r={};n.r(r),n.d(r,{assignThemeCards:()=>m});var o={};n.r(o),n.d(o,{fetchThemeCards:()=>d});var i=n(69307),a=n(11122),s=n(28226),c=n(50883),l=n(34374);const m=(0,n(5031).f0)({intro:(e,t)=>{const n=t.data;return{...e.intro,themeCards:n}}}),d=async()=>[{name:"Twenty Twenty One",description:"The default theme for WordPress."},{name:"Twenty Twenty",description:"The previous default theme for WordPress."}];var E=n(1718);const u={...o},h={...r},p=(0,a.C)({id:"customizeStore",initial:"intro",predictableActionArguments:!0,preserveActionOrder:!0,schema:{context:{},events:{},services:{}},context:{intro:{themeCards:[],activeTheme:""}},states:{intro:{id:"intro",initial:"preIntro",states:{preIntro:{invoke:{src:"fetchThemeCards",onDone:{target:"intro",actions:["assignThemeCards"]}}},intro:{meta:{component:e=>{let{sendEvent:t,context:n}=e;const{intro:{themeCards:r,activeTheme:o}}=n;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("h1",null,"Intro"),(0,i.createElement)("div",null,"Active theme: ",o),null==r?void 0:r.map((e=>(0,i.createElement)("button",{key:e.name,onClick:()=>t({type:"SELECTED_NEW_THEME",payload:{theme:e.name}})},e.name))),(0,i.createElement)("button",{onClick:()=>t({type:"DESIGN_WITH_AI"})},"Design with AI"))}}}},on:{DESIGN_WITH_AI:{target:"designWithAi"},SELECTED_ACTIVE_THEME:{target:"assemblerHub"},CLICKED_ON_BREADCRUMB:{target:"backToHomescreen"},SELECTED_NEW_THEME:{target:"? Appearance Task ?"},SELECTED_BROWSE_ALL_THEMES:{target:"? Appearance Task ?"}}},designWithAi:{initial:"preDesignWithAi",states:{preDesignWithAi:{always:{target:"designWithAi"}},designWithAi:{meta:{component:e=>{let{sendEvent:t}=e;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("h1",null,"Design with AI"),(0,i.createElement)("button",{onClick:()=>t({type:"THEME_SUGGESTED"})},"Back to intro"))}}}},on:{THEME_SUGGESTED:{target:"assemblerHub"}}},assemblerHub:{on:{FINISH_CUSTOMIZATION:{target:"backToHomescreen"}}},backToHomescreen:{},"? Appearance Task ?":{}}}),T=e=>{let{actionOverrides:t,servicesOverrides:n}=e;(0,l.p0)(["woocommerce-customize-store"]);const r=(0,i.useMemo)((()=>p.withConfig({services:{...u,...n},actions:{...h,...t},guards:{}})),[t,n]),[o,a,m]=(0,s.e)(r,{devTools:!1}),d=(0,c.v)(m,(e=>{var t;return(0,E.r)(null!==(t=null==e?void 0:e.meta)&&void 0!==t?t:void 0)})),[T,v]=(0,i.useState)(null);(0,i.useEffect)((()=>{null!=d&&d.component&&v((()=>null==d?void 0:d.component))}),[T,null==d?void 0:d.component]);const g=o.value instanceof Object?Object.keys(o.value)[0]:o.value;return(0,i.createElement)(i.Fragment,null,(0,i.createElement)("div",{className:`woocommerce-profile-wizard__container woocommerce-profile-wizard__step-${g}`},T?(0,i.createElement)(T,{sendEvent:a,context:o.context}):(0,i.createElement)("div",null)))},v=T},1718:(e,t,n)=>{function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(!t.has(e)){t.add(e);for(const n in e)if(e.hasOwnProperty(n)){if("component"===n)return e;if("object"==typeof e[n]&&null!==e[n]){const o=r(e[n],t);if(void 0!==o)return o}}}}n.d(t,{r:()=>r})}}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wc-currency', 'wc-date', 'wc-navigation', 'wc-store-data', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-primitives', 'wp-url', 'wp-viewport'), 'version' => '32ba1c8d1980522384394719dce73738');
|
||||
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wc-currency', 'wc-date', 'wc-navigation', 'wc-store-data', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-primitives', 'wp-url', 'wp-viewport'), 'version' => '2e6e2a0c15101a393ed4caf0a7837c54');
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
<?php return array('dependencies' => array('lodash', 'moment', 'wc-date', 'wc-navigation', 'wc-tracks', 'wp-api-fetch', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-url'), 'version' => 'cc7113073da3becef828de681c9dcfea');
|
||||
<?php return array('dependencies' => array('lodash', 'moment', 'wc-date', 'wc-navigation', 'wc-tracks', 'wp-api-fetch', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-url'), 'version' => '04fa79fc4ee3c9df20cf83765e188228');
|
||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
<?php return array('dependencies' => array('react', 'wc-components', 'wc-experimental', 'wc-tracks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => 'ddf81ab0c05730149053fd3b640a385c');
|
||||
<?php return array('dependencies' => array('react', 'wc-components', 'wc-experimental', 'wc-tracks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => 'cebd1ddaa6f7bc83c0ef15e999a4e053');
|
||||
File diff suppressed because one or more lines are too long
@@ -278,7 +278,7 @@ body.admin-color-sunrise {
|
||||
line-height: 32px;
|
||||
}
|
||||
.woocommerce-recommended-payments-banner .woocommerce-recommended-payments__header-heading {
|
||||
color: #757575;
|
||||
color: #50575e;
|
||||
}
|
||||
.woocommerce-recommended-payments-banner .woocommerce-recommended-payments-banner__image_container {
|
||||
display: flex;
|
||||
@@ -315,31 +315,24 @@ body.admin-color-sunrise {
|
||||
|
||||
.woocommerce-wcpay-benefits {
|
||||
background-color: #fff;
|
||||
border: 1px solid #e2e4e7;
|
||||
border-radius: 2px;
|
||||
padding: 36px 24px;
|
||||
padding: 40px 30px 30px;
|
||||
width: 680px;
|
||||
min-height: 200px;
|
||||
height: 344px;
|
||||
}
|
||||
.woocommerce-wcpay-benefits .woocommerce-wcpay-benefits-benefit {
|
||||
flex-direction: column;
|
||||
justify-content: start;
|
||||
margin-right: 0;
|
||||
width: 186px;
|
||||
align-items: start;
|
||||
gap: 16px;
|
||||
}
|
||||
.woocommerce-wcpay-benefits .woocommerce-wcpay-benefits-benefit .woocommerce-wcpay-benefits-benefit-icon-container {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
background-color: #F2EDFF;
|
||||
border-radius: 12px;
|
||||
justify-content: center;
|
||||
}
|
||||
.woocommerce-wcpay-benefits p {
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 13px;
|
||||
line-height: 16px;
|
||||
font-size: 16px;
|
||||
line-height: 24px;
|
||||
text-align: center;
|
||||
color: #1d2327;
|
||||
}
|
||||
|
||||
|
||||
@@ -278,7 +278,7 @@ body.admin-color-sunrise {
|
||||
line-height: 32px;
|
||||
}
|
||||
.woocommerce-recommended-payments-banner .woocommerce-recommended-payments__header-heading {
|
||||
color: #757575;
|
||||
color: #50575e;
|
||||
}
|
||||
.woocommerce-recommended-payments-banner .woocommerce-recommended-payments-banner__image_container {
|
||||
display: flex;
|
||||
@@ -315,31 +315,24 @@ body.admin-color-sunrise {
|
||||
|
||||
.woocommerce-wcpay-benefits {
|
||||
background-color: #fff;
|
||||
border: 1px solid #e2e4e7;
|
||||
border-radius: 2px;
|
||||
padding: 36px 24px;
|
||||
padding: 40px 30px 30px;
|
||||
width: 680px;
|
||||
min-height: 200px;
|
||||
height: 344px;
|
||||
}
|
||||
.woocommerce-wcpay-benefits .woocommerce-wcpay-benefits-benefit {
|
||||
flex-direction: column;
|
||||
justify-content: start;
|
||||
margin-left: 0;
|
||||
width: 186px;
|
||||
align-items: start;
|
||||
gap: 16px;
|
||||
}
|
||||
.woocommerce-wcpay-benefits .woocommerce-wcpay-benefits-benefit .woocommerce-wcpay-benefits-benefit-icon-container {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
background-color: #F2EDFF;
|
||||
border-radius: 12px;
|
||||
justify-content: center;
|
||||
}
|
||||
.woocommerce-wcpay-benefits p {
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 13px;
|
||||
line-height: 16px;
|
||||
font-size: 16px;
|
||||
line-height: 24px;
|
||||
text-align: center;
|
||||
color: #1d2327;
|
||||
}
|
||||
|
||||
|
||||
-31
@@ -1,31 +0,0 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 2,
|
||||
"name": "woocommerce/product-catalog-visibility-field",
|
||||
"description": "A checkbox to manage the catalog visibility of the product.",
|
||||
"title": "Product catalog visibility",
|
||||
"category": "widgets",
|
||||
"keywords": [ "products", "catalog" ],
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"label": {
|
||||
"type": "string",
|
||||
"__experimentalRole": "content"
|
||||
},
|
||||
"visibilty": {
|
||||
"type": "string",
|
||||
"enum": [ "visible", "catalog", "search", "hidden" ],
|
||||
"default": "visible"
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"align": false,
|
||||
"html": false,
|
||||
"multiple": false,
|
||||
"reusable": false,
|
||||
"inserter": false,
|
||||
"lock": false,
|
||||
"__experimentalToolbar": false
|
||||
},
|
||||
"editorStyle": "file:./editor.css"
|
||||
}
|
||||
-3
@@ -232,9 +232,6 @@ body.admin-color-sunrise {
|
||||
align-items: center;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.woocommerce-product-form__checkbox .components-checkbox-control__label {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.woocommerce-product-form__checkbox-wrapper {
|
||||
gap: 4px;
|
||||
|
||||
-3
@@ -232,9 +232,6 @@ body.admin-color-sunrise {
|
||||
align-items: center;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.woocommerce-product-form__checkbox .components-checkbox-control__label {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.woocommerce-product-form__checkbox-wrapper {
|
||||
gap: 4px;
|
||||
|
||||
-38
@@ -1,38 +0,0 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 2,
|
||||
"name": "woocommerce/product-has-variations-notice",
|
||||
"title": "Notice",
|
||||
"category": "woocommerce",
|
||||
"description": "Notice description",
|
||||
"keywords": [ "products", "notice" ],
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"content": {
|
||||
"type": "string"
|
||||
},
|
||||
"buttonText": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"align": false,
|
||||
"html": false,
|
||||
"multiple": true,
|
||||
"reusable": false,
|
||||
"inserter": false,
|
||||
"lock": false,
|
||||
"__experimentalToolbar": false
|
||||
},
|
||||
"editorStyle": "file:./editor.css",
|
||||
"templateLock": "contentOnly"
|
||||
}
|
||||
-231
@@ -1,231 +0,0 @@
|
||||
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ../../../node_modules/.pnpm/css-loader@3.6.0_webpack@5.70.0/node_modules/css-loader/dist/cjs.js!../../../node_modules/.pnpm/postcss-loader@4.3.0_postcss@8.4.12_webpack@5.70.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!../../../node_modules/.pnpm/sass-loader@10.2.1_sass@1.60.0_webpack@5.70.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[3]!./src/blocks/notice/editor.scss ***!
|
||||
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* SCSS Variables.
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* Fonts & basic variables.
|
||||
*/
|
||||
/**
|
||||
* Grid System.
|
||||
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||
*/
|
||||
/**
|
||||
* Dimensions.
|
||||
*/
|
||||
/**
|
||||
* Shadows.
|
||||
*/
|
||||
/**
|
||||
* Editor widths.
|
||||
*/
|
||||
/**
|
||||
* Block & Editor UI.
|
||||
*/
|
||||
/**
|
||||
* Block paddings.
|
||||
*/
|
||||
/**
|
||||
* React Native specific.
|
||||
* These variables do not appear to be used anywhere else.
|
||||
*/
|
||||
/**
|
||||
* Converts a hex value into the rgb equivalent.
|
||||
*
|
||||
* @param {string} hex - the hexadecimal value to convert
|
||||
* @return {string} comma separated rgb values
|
||||
*/
|
||||
/**
|
||||
* Breakpoint mixins
|
||||
*/
|
||||
/**
|
||||
* Long content fade mixin
|
||||
*
|
||||
* Creates a fading overlay to signify that the content is longer
|
||||
* than the space allows.
|
||||
*/
|
||||
/**
|
||||
* Focus styles.
|
||||
*/
|
||||
/**
|
||||
* Applies editor left position to the selector passed as argument
|
||||
*/
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
/**
|
||||
* Allows users to opt-out of animations via OS-level preferences.
|
||||
*/
|
||||
/**
|
||||
* Reset default styles for JavaScript UI based pages.
|
||||
* This is a WP-admin agnostic reset
|
||||
*/
|
||||
/**
|
||||
* Reset the WP Admin page styles for Gutenberg-like pages.
|
||||
*/
|
||||
/**
|
||||
* Breakpoints & Media Queries
|
||||
*/
|
||||
:root {
|
||||
--wp-admin-theme-color: #007cba;
|
||||
--wp-admin-theme-color--rgb: 0, 124, 186;
|
||||
--wp-admin-theme-color-darker-10: #006ba1;
|
||||
--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;
|
||||
--wp-admin-theme-color-darker-20: #005a87;
|
||||
--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
:root {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-light {
|
||||
--wp-admin-theme-color: #0085ba;
|
||||
--wp-admin-theme-color--rgb: 0, 133, 186;
|
||||
--wp-admin-theme-color-darker-10: #0073a1;
|
||||
--wp-admin-theme-color-darker-10--rgb: 0, 115, 161;
|
||||
--wp-admin-theme-color-darker-20: #006187;
|
||||
--wp-admin-theme-color-darker-20--rgb: 0, 97, 135;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-light {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-modern {
|
||||
--wp-admin-theme-color: #3858e9;
|
||||
--wp-admin-theme-color--rgb: 56, 88, 233;
|
||||
--wp-admin-theme-color-darker-10: #2145e6;
|
||||
--wp-admin-theme-color-darker-10--rgb: 33, 69, 230;
|
||||
--wp-admin-theme-color-darker-20: #183ad6;
|
||||
--wp-admin-theme-color-darker-20--rgb: 24, 58, 214;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-modern {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-blue {
|
||||
--wp-admin-theme-color: #096484;
|
||||
--wp-admin-theme-color--rgb: 9, 100, 132;
|
||||
--wp-admin-theme-color-darker-10: #07526c;
|
||||
--wp-admin-theme-color-darker-10--rgb: 7, 82, 108;
|
||||
--wp-admin-theme-color-darker-20: #064054;
|
||||
--wp-admin-theme-color-darker-20--rgb: 6, 64, 84;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-blue {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-coffee {
|
||||
--wp-admin-theme-color: #46403c;
|
||||
--wp-admin-theme-color--rgb: 70, 64, 60;
|
||||
--wp-admin-theme-color-darker-10: #383330;
|
||||
--wp-admin-theme-color-darker-10--rgb: 56, 51, 48;
|
||||
--wp-admin-theme-color-darker-20: #2b2724;
|
||||
--wp-admin-theme-color-darker-20--rgb: 43, 39, 36;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-coffee {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-ectoplasm {
|
||||
--wp-admin-theme-color: #523f6d;
|
||||
--wp-admin-theme-color--rgb: 82, 63, 109;
|
||||
--wp-admin-theme-color-darker-10: #46365d;
|
||||
--wp-admin-theme-color-darker-10--rgb: 70, 54, 93;
|
||||
--wp-admin-theme-color-darker-20: #3a2c4d;
|
||||
--wp-admin-theme-color-darker-20--rgb: 58, 44, 77;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-ectoplasm {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-midnight {
|
||||
--wp-admin-theme-color: #e14d43;
|
||||
--wp-admin-theme-color--rgb: 225, 77, 67;
|
||||
--wp-admin-theme-color-darker-10: #dd382d;
|
||||
--wp-admin-theme-color-darker-10--rgb: 221, 56, 45;
|
||||
--wp-admin-theme-color-darker-20: #d02c21;
|
||||
--wp-admin-theme-color-darker-20--rgb: 208, 44, 33;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-midnight {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-ocean {
|
||||
--wp-admin-theme-color: #627c83;
|
||||
--wp-admin-theme-color--rgb: 98, 124, 131;
|
||||
--wp-admin-theme-color-darker-10: #576e74;
|
||||
--wp-admin-theme-color-darker-10--rgb: 87, 110, 116;
|
||||
--wp-admin-theme-color-darker-20: #4c6066;
|
||||
--wp-admin-theme-color-darker-20--rgb: 76, 96, 102;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-ocean {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-sunrise {
|
||||
--wp-admin-theme-color: #dd823b;
|
||||
--wp-admin-theme-color--rgb: 221, 130, 59;
|
||||
--wp-admin-theme-color-darker-10: #d97426;
|
||||
--wp-admin-theme-color-darker-10--rgb: 217, 116, 38;
|
||||
--wp-admin-theme-color-darker-20: #c36922;
|
||||
--wp-admin-theme-color-darker-20--rgb: 195, 105, 34;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-sunrise {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
/* stylelint-disable block-closing-brace-newline-after */
|
||||
/* stylelint-enable */
|
||||
/**
|
||||
* Breakpoint mixins
|
||||
*/
|
||||
/* stylelint-disable block-closing-brace-newline-after */
|
||||
/* stylelint-enable */
|
||||
.woocommerce-product-notice {
|
||||
margin-top: 64px;
|
||||
}
|
||||
.woocommerce-product-notice button {
|
||||
pointer-events: all;
|
||||
cursor: pointer;
|
||||
}
|
||||
-231
@@ -1,231 +0,0 @@
|
||||
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ../../../node_modules/.pnpm/css-loader@3.6.0_webpack@5.70.0/node_modules/css-loader/dist/cjs.js!../../../node_modules/.pnpm/postcss-loader@4.3.0_postcss@8.4.12_webpack@5.70.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!../../../node_modules/.pnpm/sass-loader@10.2.1_sass@1.60.0_webpack@5.70.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[3]!./src/blocks/notice/editor.scss ***!
|
||||
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* SCSS Variables.
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* Fonts & basic variables.
|
||||
*/
|
||||
/**
|
||||
* Grid System.
|
||||
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||
*/
|
||||
/**
|
||||
* Dimensions.
|
||||
*/
|
||||
/**
|
||||
* Shadows.
|
||||
*/
|
||||
/**
|
||||
* Editor widths.
|
||||
*/
|
||||
/**
|
||||
* Block & Editor UI.
|
||||
*/
|
||||
/**
|
||||
* Block paddings.
|
||||
*/
|
||||
/**
|
||||
* React Native specific.
|
||||
* These variables do not appear to be used anywhere else.
|
||||
*/
|
||||
/**
|
||||
* Converts a hex value into the rgb equivalent.
|
||||
*
|
||||
* @param {string} hex - the hexadecimal value to convert
|
||||
* @return {string} comma separated rgb values
|
||||
*/
|
||||
/**
|
||||
* Breakpoint mixins
|
||||
*/
|
||||
/**
|
||||
* Long content fade mixin
|
||||
*
|
||||
* Creates a fading overlay to signify that the content is longer
|
||||
* than the space allows.
|
||||
*/
|
||||
/**
|
||||
* Focus styles.
|
||||
*/
|
||||
/**
|
||||
* Applies editor left position to the selector passed as argument
|
||||
*/
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
/**
|
||||
* Allows users to opt-out of animations via OS-level preferences.
|
||||
*/
|
||||
/**
|
||||
* Reset default styles for JavaScript UI based pages.
|
||||
* This is a WP-admin agnostic reset
|
||||
*/
|
||||
/**
|
||||
* Reset the WP Admin page styles for Gutenberg-like pages.
|
||||
*/
|
||||
/**
|
||||
* Breakpoints & Media Queries
|
||||
*/
|
||||
:root {
|
||||
--wp-admin-theme-color: #007cba;
|
||||
--wp-admin-theme-color--rgb: 0, 124, 186;
|
||||
--wp-admin-theme-color-darker-10: #006ba1;
|
||||
--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;
|
||||
--wp-admin-theme-color-darker-20: #005a87;
|
||||
--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
:root {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-light {
|
||||
--wp-admin-theme-color: #0085ba;
|
||||
--wp-admin-theme-color--rgb: 0, 133, 186;
|
||||
--wp-admin-theme-color-darker-10: #0073a1;
|
||||
--wp-admin-theme-color-darker-10--rgb: 0, 115, 161;
|
||||
--wp-admin-theme-color-darker-20: #006187;
|
||||
--wp-admin-theme-color-darker-20--rgb: 0, 97, 135;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-light {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-modern {
|
||||
--wp-admin-theme-color: #3858e9;
|
||||
--wp-admin-theme-color--rgb: 56, 88, 233;
|
||||
--wp-admin-theme-color-darker-10: #2145e6;
|
||||
--wp-admin-theme-color-darker-10--rgb: 33, 69, 230;
|
||||
--wp-admin-theme-color-darker-20: #183ad6;
|
||||
--wp-admin-theme-color-darker-20--rgb: 24, 58, 214;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-modern {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-blue {
|
||||
--wp-admin-theme-color: #096484;
|
||||
--wp-admin-theme-color--rgb: 9, 100, 132;
|
||||
--wp-admin-theme-color-darker-10: #07526c;
|
||||
--wp-admin-theme-color-darker-10--rgb: 7, 82, 108;
|
||||
--wp-admin-theme-color-darker-20: #064054;
|
||||
--wp-admin-theme-color-darker-20--rgb: 6, 64, 84;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-blue {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-coffee {
|
||||
--wp-admin-theme-color: #46403c;
|
||||
--wp-admin-theme-color--rgb: 70, 64, 60;
|
||||
--wp-admin-theme-color-darker-10: #383330;
|
||||
--wp-admin-theme-color-darker-10--rgb: 56, 51, 48;
|
||||
--wp-admin-theme-color-darker-20: #2b2724;
|
||||
--wp-admin-theme-color-darker-20--rgb: 43, 39, 36;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-coffee {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-ectoplasm {
|
||||
--wp-admin-theme-color: #523f6d;
|
||||
--wp-admin-theme-color--rgb: 82, 63, 109;
|
||||
--wp-admin-theme-color-darker-10: #46365d;
|
||||
--wp-admin-theme-color-darker-10--rgb: 70, 54, 93;
|
||||
--wp-admin-theme-color-darker-20: #3a2c4d;
|
||||
--wp-admin-theme-color-darker-20--rgb: 58, 44, 77;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-ectoplasm {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-midnight {
|
||||
--wp-admin-theme-color: #e14d43;
|
||||
--wp-admin-theme-color--rgb: 225, 77, 67;
|
||||
--wp-admin-theme-color-darker-10: #dd382d;
|
||||
--wp-admin-theme-color-darker-10--rgb: 221, 56, 45;
|
||||
--wp-admin-theme-color-darker-20: #d02c21;
|
||||
--wp-admin-theme-color-darker-20--rgb: 208, 44, 33;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-midnight {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-ocean {
|
||||
--wp-admin-theme-color: #627c83;
|
||||
--wp-admin-theme-color--rgb: 98, 124, 131;
|
||||
--wp-admin-theme-color-darker-10: #576e74;
|
||||
--wp-admin-theme-color-darker-10--rgb: 87, 110, 116;
|
||||
--wp-admin-theme-color-darker-20: #4c6066;
|
||||
--wp-admin-theme-color-darker-20--rgb: 76, 96, 102;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-ocean {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-sunrise {
|
||||
--wp-admin-theme-color: #dd823b;
|
||||
--wp-admin-theme-color--rgb: 221, 130, 59;
|
||||
--wp-admin-theme-color-darker-10: #d97426;
|
||||
--wp-admin-theme-color-darker-10--rgb: 217, 116, 38;
|
||||
--wp-admin-theme-color-darker-20: #c36922;
|
||||
--wp-admin-theme-color-darker-20--rgb: 195, 105, 34;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-sunrise {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
/* stylelint-disable block-closing-brace-newline-after */
|
||||
/* stylelint-enable */
|
||||
/**
|
||||
* Breakpoint mixins
|
||||
*/
|
||||
/* stylelint-disable block-closing-brace-newline-after */
|
||||
/* stylelint-enable */
|
||||
.woocommerce-product-notice {
|
||||
margin-top: 64px;
|
||||
}
|
||||
.woocommerce-product-notice button {
|
||||
pointer-events: all;
|
||||
cursor: pointer;
|
||||
}
|
||||
-26
@@ -1,26 +0,0 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 2,
|
||||
"name": "woocommerce/product-password-field",
|
||||
"description": "A checkbox and an input to type a password to view a product.",
|
||||
"title": "Product password",
|
||||
"category": "widgets",
|
||||
"keywords": [ "products", "password" ],
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"label": {
|
||||
"type": "string",
|
||||
"__experimentalRole": "content"
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"align": false,
|
||||
"html": false,
|
||||
"multiple": false,
|
||||
"reusable": false,
|
||||
"inserter": false,
|
||||
"lock": false,
|
||||
"__experimentalToolbar": false
|
||||
},
|
||||
"editorStyle": "file:./editor.css"
|
||||
}
|
||||
-227
@@ -1,227 +0,0 @@
|
||||
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ../../../node_modules/.pnpm/css-loader@3.6.0_webpack@5.70.0/node_modules/css-loader/dist/cjs.js!../../../node_modules/.pnpm/postcss-loader@4.3.0_postcss@8.4.12_webpack@5.70.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!../../../node_modules/.pnpm/sass-loader@10.2.1_sass@1.60.0_webpack@5.70.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[3]!./src/blocks/password/editor.scss ***!
|
||||
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* SCSS Variables.
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* Fonts & basic variables.
|
||||
*/
|
||||
/**
|
||||
* Grid System.
|
||||
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||
*/
|
||||
/**
|
||||
* Dimensions.
|
||||
*/
|
||||
/**
|
||||
* Shadows.
|
||||
*/
|
||||
/**
|
||||
* Editor widths.
|
||||
*/
|
||||
/**
|
||||
* Block & Editor UI.
|
||||
*/
|
||||
/**
|
||||
* Block paddings.
|
||||
*/
|
||||
/**
|
||||
* React Native specific.
|
||||
* These variables do not appear to be used anywhere else.
|
||||
*/
|
||||
/**
|
||||
* Converts a hex value into the rgb equivalent.
|
||||
*
|
||||
* @param {string} hex - the hexadecimal value to convert
|
||||
* @return {string} comma separated rgb values
|
||||
*/
|
||||
/**
|
||||
* Breakpoint mixins
|
||||
*/
|
||||
/**
|
||||
* Long content fade mixin
|
||||
*
|
||||
* Creates a fading overlay to signify that the content is longer
|
||||
* than the space allows.
|
||||
*/
|
||||
/**
|
||||
* Focus styles.
|
||||
*/
|
||||
/**
|
||||
* Applies editor left position to the selector passed as argument
|
||||
*/
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
/**
|
||||
* Allows users to opt-out of animations via OS-level preferences.
|
||||
*/
|
||||
/**
|
||||
* Reset default styles for JavaScript UI based pages.
|
||||
* This is a WP-admin agnostic reset
|
||||
*/
|
||||
/**
|
||||
* Reset the WP Admin page styles for Gutenberg-like pages.
|
||||
*/
|
||||
/**
|
||||
* Breakpoints & Media Queries
|
||||
*/
|
||||
:root {
|
||||
--wp-admin-theme-color: #007cba;
|
||||
--wp-admin-theme-color--rgb: 0, 124, 186;
|
||||
--wp-admin-theme-color-darker-10: #006ba1;
|
||||
--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;
|
||||
--wp-admin-theme-color-darker-20: #005a87;
|
||||
--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
:root {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-light {
|
||||
--wp-admin-theme-color: #0085ba;
|
||||
--wp-admin-theme-color--rgb: 0, 133, 186;
|
||||
--wp-admin-theme-color-darker-10: #0073a1;
|
||||
--wp-admin-theme-color-darker-10--rgb: 0, 115, 161;
|
||||
--wp-admin-theme-color-darker-20: #006187;
|
||||
--wp-admin-theme-color-darker-20--rgb: 0, 97, 135;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-light {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-modern {
|
||||
--wp-admin-theme-color: #3858e9;
|
||||
--wp-admin-theme-color--rgb: 56, 88, 233;
|
||||
--wp-admin-theme-color-darker-10: #2145e6;
|
||||
--wp-admin-theme-color-darker-10--rgb: 33, 69, 230;
|
||||
--wp-admin-theme-color-darker-20: #183ad6;
|
||||
--wp-admin-theme-color-darker-20--rgb: 24, 58, 214;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-modern {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-blue {
|
||||
--wp-admin-theme-color: #096484;
|
||||
--wp-admin-theme-color--rgb: 9, 100, 132;
|
||||
--wp-admin-theme-color-darker-10: #07526c;
|
||||
--wp-admin-theme-color-darker-10--rgb: 7, 82, 108;
|
||||
--wp-admin-theme-color-darker-20: #064054;
|
||||
--wp-admin-theme-color-darker-20--rgb: 6, 64, 84;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-blue {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-coffee {
|
||||
--wp-admin-theme-color: #46403c;
|
||||
--wp-admin-theme-color--rgb: 70, 64, 60;
|
||||
--wp-admin-theme-color-darker-10: #383330;
|
||||
--wp-admin-theme-color-darker-10--rgb: 56, 51, 48;
|
||||
--wp-admin-theme-color-darker-20: #2b2724;
|
||||
--wp-admin-theme-color-darker-20--rgb: 43, 39, 36;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-coffee {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-ectoplasm {
|
||||
--wp-admin-theme-color: #523f6d;
|
||||
--wp-admin-theme-color--rgb: 82, 63, 109;
|
||||
--wp-admin-theme-color-darker-10: #46365d;
|
||||
--wp-admin-theme-color-darker-10--rgb: 70, 54, 93;
|
||||
--wp-admin-theme-color-darker-20: #3a2c4d;
|
||||
--wp-admin-theme-color-darker-20--rgb: 58, 44, 77;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-ectoplasm {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-midnight {
|
||||
--wp-admin-theme-color: #e14d43;
|
||||
--wp-admin-theme-color--rgb: 225, 77, 67;
|
||||
--wp-admin-theme-color-darker-10: #dd382d;
|
||||
--wp-admin-theme-color-darker-10--rgb: 221, 56, 45;
|
||||
--wp-admin-theme-color-darker-20: #d02c21;
|
||||
--wp-admin-theme-color-darker-20--rgb: 208, 44, 33;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-midnight {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-ocean {
|
||||
--wp-admin-theme-color: #627c83;
|
||||
--wp-admin-theme-color--rgb: 98, 124, 131;
|
||||
--wp-admin-theme-color-darker-10: #576e74;
|
||||
--wp-admin-theme-color-darker-10--rgb: 87, 110, 116;
|
||||
--wp-admin-theme-color-darker-20: #4c6066;
|
||||
--wp-admin-theme-color-darker-20--rgb: 76, 96, 102;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-ocean {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-sunrise {
|
||||
--wp-admin-theme-color: #dd823b;
|
||||
--wp-admin-theme-color--rgb: 221, 130, 59;
|
||||
--wp-admin-theme-color-darker-10: #d97426;
|
||||
--wp-admin-theme-color-darker-10--rgb: 217, 116, 38;
|
||||
--wp-admin-theme-color-darker-20: #c36922;
|
||||
--wp-admin-theme-color-darker-20--rgb: 195, 105, 34;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-sunrise {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
/* stylelint-disable block-closing-brace-newline-after */
|
||||
/* stylelint-enable */
|
||||
/**
|
||||
* Breakpoint mixins
|
||||
*/
|
||||
/* stylelint-disable block-closing-brace-newline-after */
|
||||
/* stylelint-enable */
|
||||
.wp-block-woocommerce-product-password-fields__field {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
-227
@@ -1,227 +0,0 @@
|
||||
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ../../../node_modules/.pnpm/css-loader@3.6.0_webpack@5.70.0/node_modules/css-loader/dist/cjs.js!../../../node_modules/.pnpm/postcss-loader@4.3.0_postcss@8.4.12_webpack@5.70.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!../../../node_modules/.pnpm/sass-loader@10.2.1_sass@1.60.0_webpack@5.70.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[3]!./src/blocks/password/editor.scss ***!
|
||||
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* SCSS Variables.
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* Fonts & basic variables.
|
||||
*/
|
||||
/**
|
||||
* Grid System.
|
||||
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||
*/
|
||||
/**
|
||||
* Dimensions.
|
||||
*/
|
||||
/**
|
||||
* Shadows.
|
||||
*/
|
||||
/**
|
||||
* Editor widths.
|
||||
*/
|
||||
/**
|
||||
* Block & Editor UI.
|
||||
*/
|
||||
/**
|
||||
* Block paddings.
|
||||
*/
|
||||
/**
|
||||
* React Native specific.
|
||||
* These variables do not appear to be used anywhere else.
|
||||
*/
|
||||
/**
|
||||
* Converts a hex value into the rgb equivalent.
|
||||
*
|
||||
* @param {string} hex - the hexadecimal value to convert
|
||||
* @return {string} comma separated rgb values
|
||||
*/
|
||||
/**
|
||||
* Breakpoint mixins
|
||||
*/
|
||||
/**
|
||||
* Long content fade mixin
|
||||
*
|
||||
* Creates a fading overlay to signify that the content is longer
|
||||
* than the space allows.
|
||||
*/
|
||||
/**
|
||||
* Focus styles.
|
||||
*/
|
||||
/**
|
||||
* Applies editor left position to the selector passed as argument
|
||||
*/
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
/**
|
||||
* Allows users to opt-out of animations via OS-level preferences.
|
||||
*/
|
||||
/**
|
||||
* Reset default styles for JavaScript UI based pages.
|
||||
* This is a WP-admin agnostic reset
|
||||
*/
|
||||
/**
|
||||
* Reset the WP Admin page styles for Gutenberg-like pages.
|
||||
*/
|
||||
/**
|
||||
* Breakpoints & Media Queries
|
||||
*/
|
||||
:root {
|
||||
--wp-admin-theme-color: #007cba;
|
||||
--wp-admin-theme-color--rgb: 0, 124, 186;
|
||||
--wp-admin-theme-color-darker-10: #006ba1;
|
||||
--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;
|
||||
--wp-admin-theme-color-darker-20: #005a87;
|
||||
--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
:root {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-light {
|
||||
--wp-admin-theme-color: #0085ba;
|
||||
--wp-admin-theme-color--rgb: 0, 133, 186;
|
||||
--wp-admin-theme-color-darker-10: #0073a1;
|
||||
--wp-admin-theme-color-darker-10--rgb: 0, 115, 161;
|
||||
--wp-admin-theme-color-darker-20: #006187;
|
||||
--wp-admin-theme-color-darker-20--rgb: 0, 97, 135;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-light {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-modern {
|
||||
--wp-admin-theme-color: #3858e9;
|
||||
--wp-admin-theme-color--rgb: 56, 88, 233;
|
||||
--wp-admin-theme-color-darker-10: #2145e6;
|
||||
--wp-admin-theme-color-darker-10--rgb: 33, 69, 230;
|
||||
--wp-admin-theme-color-darker-20: #183ad6;
|
||||
--wp-admin-theme-color-darker-20--rgb: 24, 58, 214;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-modern {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-blue {
|
||||
--wp-admin-theme-color: #096484;
|
||||
--wp-admin-theme-color--rgb: 9, 100, 132;
|
||||
--wp-admin-theme-color-darker-10: #07526c;
|
||||
--wp-admin-theme-color-darker-10--rgb: 7, 82, 108;
|
||||
--wp-admin-theme-color-darker-20: #064054;
|
||||
--wp-admin-theme-color-darker-20--rgb: 6, 64, 84;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-blue {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-coffee {
|
||||
--wp-admin-theme-color: #46403c;
|
||||
--wp-admin-theme-color--rgb: 70, 64, 60;
|
||||
--wp-admin-theme-color-darker-10: #383330;
|
||||
--wp-admin-theme-color-darker-10--rgb: 56, 51, 48;
|
||||
--wp-admin-theme-color-darker-20: #2b2724;
|
||||
--wp-admin-theme-color-darker-20--rgb: 43, 39, 36;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-coffee {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-ectoplasm {
|
||||
--wp-admin-theme-color: #523f6d;
|
||||
--wp-admin-theme-color--rgb: 82, 63, 109;
|
||||
--wp-admin-theme-color-darker-10: #46365d;
|
||||
--wp-admin-theme-color-darker-10--rgb: 70, 54, 93;
|
||||
--wp-admin-theme-color-darker-20: #3a2c4d;
|
||||
--wp-admin-theme-color-darker-20--rgb: 58, 44, 77;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-ectoplasm {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-midnight {
|
||||
--wp-admin-theme-color: #e14d43;
|
||||
--wp-admin-theme-color--rgb: 225, 77, 67;
|
||||
--wp-admin-theme-color-darker-10: #dd382d;
|
||||
--wp-admin-theme-color-darker-10--rgb: 221, 56, 45;
|
||||
--wp-admin-theme-color-darker-20: #d02c21;
|
||||
--wp-admin-theme-color-darker-20--rgb: 208, 44, 33;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-midnight {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-ocean {
|
||||
--wp-admin-theme-color: #627c83;
|
||||
--wp-admin-theme-color--rgb: 98, 124, 131;
|
||||
--wp-admin-theme-color-darker-10: #576e74;
|
||||
--wp-admin-theme-color-darker-10--rgb: 87, 110, 116;
|
||||
--wp-admin-theme-color-darker-20: #4c6066;
|
||||
--wp-admin-theme-color-darker-20--rgb: 76, 96, 102;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-ocean {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-sunrise {
|
||||
--wp-admin-theme-color: #dd823b;
|
||||
--wp-admin-theme-color--rgb: 221, 130, 59;
|
||||
--wp-admin-theme-color-darker-10: #d97426;
|
||||
--wp-admin-theme-color-darker-10--rgb: 217, 116, 38;
|
||||
--wp-admin-theme-color-darker-20: #c36922;
|
||||
--wp-admin-theme-color-darker-20--rgb: 195, 105, 34;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-sunrise {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
/* stylelint-disable block-closing-brace-newline-after */
|
||||
/* stylelint-enable */
|
||||
/**
|
||||
* Breakpoint mixins
|
||||
*/
|
||||
/* stylelint-disable block-closing-brace-newline-after */
|
||||
/* stylelint-enable */
|
||||
.wp-block-woocommerce-product-password-fields__field {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
-3
@@ -27,9 +27,6 @@
|
||||
"lock": false,
|
||||
"__experimentalToolbar": false
|
||||
},
|
||||
"providesContext": {
|
||||
"isInSelectedTab": "isSelected"
|
||||
},
|
||||
"usesContext": [ "selectedTab" ],
|
||||
"editorStyle": "file:./editor.css",
|
||||
"templateLock": "contentOnly"
|
||||
|
||||
-27
@@ -1,27 +0,0 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 2,
|
||||
"name": "woocommerce/product-variation-items-field",
|
||||
"title": "Product variations items",
|
||||
"category": "woocommerce",
|
||||
"description": "The product variations items.",
|
||||
"keywords": [ "products", "variations" ],
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"description": {
|
||||
"type": "string",
|
||||
"__experimentalRole": "content"
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"align": false,
|
||||
"html": false,
|
||||
"multiple": false,
|
||||
"reusable": false,
|
||||
"inserter": false,
|
||||
"lock": false,
|
||||
"__experimentalToolbar": false
|
||||
},
|
||||
"usesContext": [ "isInSelectedTab" ],
|
||||
"editorStyle": "file:./editor.css"
|
||||
}
|
||||
-238
@@ -1,238 +0,0 @@
|
||||
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ../../../node_modules/.pnpm/css-loader@3.6.0_webpack@5.70.0/node_modules/css-loader/dist/cjs.js!../../../node_modules/.pnpm/postcss-loader@4.3.0_postcss@8.4.12_webpack@5.70.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!../../../node_modules/.pnpm/sass-loader@10.2.1_sass@1.60.0_webpack@5.70.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[3]!./src/blocks/variation-items/editor.scss ***!
|
||||
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* SCSS Variables.
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* Fonts & basic variables.
|
||||
*/
|
||||
/**
|
||||
* Grid System.
|
||||
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||
*/
|
||||
/**
|
||||
* Dimensions.
|
||||
*/
|
||||
/**
|
||||
* Shadows.
|
||||
*/
|
||||
/**
|
||||
* Editor widths.
|
||||
*/
|
||||
/**
|
||||
* Block & Editor UI.
|
||||
*/
|
||||
/**
|
||||
* Block paddings.
|
||||
*/
|
||||
/**
|
||||
* React Native specific.
|
||||
* These variables do not appear to be used anywhere else.
|
||||
*/
|
||||
/**
|
||||
* Converts a hex value into the rgb equivalent.
|
||||
*
|
||||
* @param {string} hex - the hexadecimal value to convert
|
||||
* @return {string} comma separated rgb values
|
||||
*/
|
||||
/**
|
||||
* Breakpoint mixins
|
||||
*/
|
||||
/**
|
||||
* Long content fade mixin
|
||||
*
|
||||
* Creates a fading overlay to signify that the content is longer
|
||||
* than the space allows.
|
||||
*/
|
||||
/**
|
||||
* Focus styles.
|
||||
*/
|
||||
/**
|
||||
* Applies editor left position to the selector passed as argument
|
||||
*/
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
/**
|
||||
* Allows users to opt-out of animations via OS-level preferences.
|
||||
*/
|
||||
/**
|
||||
* Reset default styles for JavaScript UI based pages.
|
||||
* This is a WP-admin agnostic reset
|
||||
*/
|
||||
/**
|
||||
* Reset the WP Admin page styles for Gutenberg-like pages.
|
||||
*/
|
||||
/**
|
||||
* Breakpoints & Media Queries
|
||||
*/
|
||||
:root {
|
||||
--wp-admin-theme-color: #007cba;
|
||||
--wp-admin-theme-color--rgb: 0, 124, 186;
|
||||
--wp-admin-theme-color-darker-10: #006ba1;
|
||||
--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;
|
||||
--wp-admin-theme-color-darker-20: #005a87;
|
||||
--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
:root {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-light {
|
||||
--wp-admin-theme-color: #0085ba;
|
||||
--wp-admin-theme-color--rgb: 0, 133, 186;
|
||||
--wp-admin-theme-color-darker-10: #0073a1;
|
||||
--wp-admin-theme-color-darker-10--rgb: 0, 115, 161;
|
||||
--wp-admin-theme-color-darker-20: #006187;
|
||||
--wp-admin-theme-color-darker-20--rgb: 0, 97, 135;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-light {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-modern {
|
||||
--wp-admin-theme-color: #3858e9;
|
||||
--wp-admin-theme-color--rgb: 56, 88, 233;
|
||||
--wp-admin-theme-color-darker-10: #2145e6;
|
||||
--wp-admin-theme-color-darker-10--rgb: 33, 69, 230;
|
||||
--wp-admin-theme-color-darker-20: #183ad6;
|
||||
--wp-admin-theme-color-darker-20--rgb: 24, 58, 214;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-modern {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-blue {
|
||||
--wp-admin-theme-color: #096484;
|
||||
--wp-admin-theme-color--rgb: 9, 100, 132;
|
||||
--wp-admin-theme-color-darker-10: #07526c;
|
||||
--wp-admin-theme-color-darker-10--rgb: 7, 82, 108;
|
||||
--wp-admin-theme-color-darker-20: #064054;
|
||||
--wp-admin-theme-color-darker-20--rgb: 6, 64, 84;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-blue {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-coffee {
|
||||
--wp-admin-theme-color: #46403c;
|
||||
--wp-admin-theme-color--rgb: 70, 64, 60;
|
||||
--wp-admin-theme-color-darker-10: #383330;
|
||||
--wp-admin-theme-color-darker-10--rgb: 56, 51, 48;
|
||||
--wp-admin-theme-color-darker-20: #2b2724;
|
||||
--wp-admin-theme-color-darker-20--rgb: 43, 39, 36;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-coffee {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-ectoplasm {
|
||||
--wp-admin-theme-color: #523f6d;
|
||||
--wp-admin-theme-color--rgb: 82, 63, 109;
|
||||
--wp-admin-theme-color-darker-10: #46365d;
|
||||
--wp-admin-theme-color-darker-10--rgb: 70, 54, 93;
|
||||
--wp-admin-theme-color-darker-20: #3a2c4d;
|
||||
--wp-admin-theme-color-darker-20--rgb: 58, 44, 77;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-ectoplasm {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-midnight {
|
||||
--wp-admin-theme-color: #e14d43;
|
||||
--wp-admin-theme-color--rgb: 225, 77, 67;
|
||||
--wp-admin-theme-color-darker-10: #dd382d;
|
||||
--wp-admin-theme-color-darker-10--rgb: 221, 56, 45;
|
||||
--wp-admin-theme-color-darker-20: #d02c21;
|
||||
--wp-admin-theme-color-darker-20--rgb: 208, 44, 33;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-midnight {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-ocean {
|
||||
--wp-admin-theme-color: #627c83;
|
||||
--wp-admin-theme-color--rgb: 98, 124, 131;
|
||||
--wp-admin-theme-color-darker-10: #576e74;
|
||||
--wp-admin-theme-color-darker-10--rgb: 87, 110, 116;
|
||||
--wp-admin-theme-color-darker-20: #4c6066;
|
||||
--wp-admin-theme-color-darker-20--rgb: 76, 96, 102;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-ocean {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-sunrise {
|
||||
--wp-admin-theme-color: #dd823b;
|
||||
--wp-admin-theme-color--rgb: 221, 130, 59;
|
||||
--wp-admin-theme-color-darker-10: #d97426;
|
||||
--wp-admin-theme-color-darker-10--rgb: 217, 116, 38;
|
||||
--wp-admin-theme-color-darker-20: #c36922;
|
||||
--wp-admin-theme-color-darker-20--rgb: 195, 105, 34;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-sunrise {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
/* stylelint-disable block-closing-brace-newline-after */
|
||||
/* stylelint-enable */
|
||||
/**
|
||||
* Breakpoint mixins
|
||||
*/
|
||||
/* stylelint-disable block-closing-brace-newline-after */
|
||||
/* stylelint-enable */
|
||||
@media (min-width: 782px) {
|
||||
.wp-block-woocommerce-product-variation-items-field {
|
||||
min-height: 420px;
|
||||
}
|
||||
}
|
||||
|
||||
.variation-items-product-tour .tour-kit-spotlight {
|
||||
border-radius: 8px;
|
||||
padding: 24px;
|
||||
}
|
||||
.variation-items-product-tour .tour-kit-frame__container,
|
||||
.variation-items-product-tour .woocommerce-tour-kit-step {
|
||||
border-radius: 8px;
|
||||
}
|
||||
-238
@@ -1,238 +0,0 @@
|
||||
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ../../../node_modules/.pnpm/css-loader@3.6.0_webpack@5.70.0/node_modules/css-loader/dist/cjs.js!../../../node_modules/.pnpm/postcss-loader@4.3.0_postcss@8.4.12_webpack@5.70.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!../../../node_modules/.pnpm/sass-loader@10.2.1_sass@1.60.0_webpack@5.70.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[3]!./src/blocks/variation-items/editor.scss ***!
|
||||
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* SCSS Variables.
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* Fonts & basic variables.
|
||||
*/
|
||||
/**
|
||||
* Grid System.
|
||||
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||
*/
|
||||
/**
|
||||
* Dimensions.
|
||||
*/
|
||||
/**
|
||||
* Shadows.
|
||||
*/
|
||||
/**
|
||||
* Editor widths.
|
||||
*/
|
||||
/**
|
||||
* Block & Editor UI.
|
||||
*/
|
||||
/**
|
||||
* Block paddings.
|
||||
*/
|
||||
/**
|
||||
* React Native specific.
|
||||
* These variables do not appear to be used anywhere else.
|
||||
*/
|
||||
/**
|
||||
* Converts a hex value into the rgb equivalent.
|
||||
*
|
||||
* @param {string} hex - the hexadecimal value to convert
|
||||
* @return {string} comma separated rgb values
|
||||
*/
|
||||
/**
|
||||
* Breakpoint mixins
|
||||
*/
|
||||
/**
|
||||
* Long content fade mixin
|
||||
*
|
||||
* Creates a fading overlay to signify that the content is longer
|
||||
* than the space allows.
|
||||
*/
|
||||
/**
|
||||
* Focus styles.
|
||||
*/
|
||||
/**
|
||||
* Applies editor left position to the selector passed as argument
|
||||
*/
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
/**
|
||||
* Allows users to opt-out of animations via OS-level preferences.
|
||||
*/
|
||||
/**
|
||||
* Reset default styles for JavaScript UI based pages.
|
||||
* This is a WP-admin agnostic reset
|
||||
*/
|
||||
/**
|
||||
* Reset the WP Admin page styles for Gutenberg-like pages.
|
||||
*/
|
||||
/**
|
||||
* Breakpoints & Media Queries
|
||||
*/
|
||||
:root {
|
||||
--wp-admin-theme-color: #007cba;
|
||||
--wp-admin-theme-color--rgb: 0, 124, 186;
|
||||
--wp-admin-theme-color-darker-10: #006ba1;
|
||||
--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;
|
||||
--wp-admin-theme-color-darker-20: #005a87;
|
||||
--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
:root {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-light {
|
||||
--wp-admin-theme-color: #0085ba;
|
||||
--wp-admin-theme-color--rgb: 0, 133, 186;
|
||||
--wp-admin-theme-color-darker-10: #0073a1;
|
||||
--wp-admin-theme-color-darker-10--rgb: 0, 115, 161;
|
||||
--wp-admin-theme-color-darker-20: #006187;
|
||||
--wp-admin-theme-color-darker-20--rgb: 0, 97, 135;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-light {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-modern {
|
||||
--wp-admin-theme-color: #3858e9;
|
||||
--wp-admin-theme-color--rgb: 56, 88, 233;
|
||||
--wp-admin-theme-color-darker-10: #2145e6;
|
||||
--wp-admin-theme-color-darker-10--rgb: 33, 69, 230;
|
||||
--wp-admin-theme-color-darker-20: #183ad6;
|
||||
--wp-admin-theme-color-darker-20--rgb: 24, 58, 214;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-modern {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-blue {
|
||||
--wp-admin-theme-color: #096484;
|
||||
--wp-admin-theme-color--rgb: 9, 100, 132;
|
||||
--wp-admin-theme-color-darker-10: #07526c;
|
||||
--wp-admin-theme-color-darker-10--rgb: 7, 82, 108;
|
||||
--wp-admin-theme-color-darker-20: #064054;
|
||||
--wp-admin-theme-color-darker-20--rgb: 6, 64, 84;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-blue {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-coffee {
|
||||
--wp-admin-theme-color: #46403c;
|
||||
--wp-admin-theme-color--rgb: 70, 64, 60;
|
||||
--wp-admin-theme-color-darker-10: #383330;
|
||||
--wp-admin-theme-color-darker-10--rgb: 56, 51, 48;
|
||||
--wp-admin-theme-color-darker-20: #2b2724;
|
||||
--wp-admin-theme-color-darker-20--rgb: 43, 39, 36;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-coffee {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-ectoplasm {
|
||||
--wp-admin-theme-color: #523f6d;
|
||||
--wp-admin-theme-color--rgb: 82, 63, 109;
|
||||
--wp-admin-theme-color-darker-10: #46365d;
|
||||
--wp-admin-theme-color-darker-10--rgb: 70, 54, 93;
|
||||
--wp-admin-theme-color-darker-20: #3a2c4d;
|
||||
--wp-admin-theme-color-darker-20--rgb: 58, 44, 77;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-ectoplasm {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-midnight {
|
||||
--wp-admin-theme-color: #e14d43;
|
||||
--wp-admin-theme-color--rgb: 225, 77, 67;
|
||||
--wp-admin-theme-color-darker-10: #dd382d;
|
||||
--wp-admin-theme-color-darker-10--rgb: 221, 56, 45;
|
||||
--wp-admin-theme-color-darker-20: #d02c21;
|
||||
--wp-admin-theme-color-darker-20--rgb: 208, 44, 33;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-midnight {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-ocean {
|
||||
--wp-admin-theme-color: #627c83;
|
||||
--wp-admin-theme-color--rgb: 98, 124, 131;
|
||||
--wp-admin-theme-color-darker-10: #576e74;
|
||||
--wp-admin-theme-color-darker-10--rgb: 87, 110, 116;
|
||||
--wp-admin-theme-color-darker-20: #4c6066;
|
||||
--wp-admin-theme-color-darker-20--rgb: 76, 96, 102;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-ocean {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-sunrise {
|
||||
--wp-admin-theme-color: #dd823b;
|
||||
--wp-admin-theme-color--rgb: 221, 130, 59;
|
||||
--wp-admin-theme-color-darker-10: #d97426;
|
||||
--wp-admin-theme-color-darker-10--rgb: 217, 116, 38;
|
||||
--wp-admin-theme-color-darker-20: #c36922;
|
||||
--wp-admin-theme-color-darker-20--rgb: 195, 105, 34;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-sunrise {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
/* stylelint-disable block-closing-brace-newline-after */
|
||||
/* stylelint-enable */
|
||||
/**
|
||||
* Breakpoint mixins
|
||||
*/
|
||||
/* stylelint-disable block-closing-brace-newline-after */
|
||||
/* stylelint-enable */
|
||||
@media (min-width: 782px) {
|
||||
.wp-block-woocommerce-product-variation-items-field {
|
||||
min-height: 420px;
|
||||
}
|
||||
}
|
||||
|
||||
.variation-items-product-tour .tour-kit-spotlight {
|
||||
border-radius: 8px;
|
||||
padding: 24px;
|
||||
}
|
||||
.variation-items-product-tour .tour-kit-frame__container,
|
||||
.variation-items-product-tour .woocommerce-tour-kit-step {
|
||||
border-radius: 8px;
|
||||
}
|
||||
-26
@@ -1,26 +0,0 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 2,
|
||||
"name": "woocommerce/product-variations-options-field",
|
||||
"title": "Product variations options",
|
||||
"category": "woocommerce",
|
||||
"description": "The product variations options.",
|
||||
"keywords": [ "products", "variations" ],
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"description": {
|
||||
"type": "string",
|
||||
"__experimentalRole": "content"
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"align": false,
|
||||
"html": false,
|
||||
"multiple": false,
|
||||
"reusable": false,
|
||||
"inserter": false,
|
||||
"lock": false,
|
||||
"__experimentalToolbar": false
|
||||
},
|
||||
"editorStyle": "file:./editor.css"
|
||||
}
|
||||
-240
@@ -1,240 +0,0 @@
|
||||
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ../../../node_modules/.pnpm/css-loader@3.6.0_webpack@5.70.0/node_modules/css-loader/dist/cjs.js!../../../node_modules/.pnpm/postcss-loader@4.3.0_postcss@8.4.12_webpack@5.70.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!../../../node_modules/.pnpm/sass-loader@10.2.1_sass@1.60.0_webpack@5.70.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[3]!./src/blocks/variation-options/editor.scss ***!
|
||||
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* SCSS Variables.
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* Fonts & basic variables.
|
||||
*/
|
||||
/**
|
||||
* Grid System.
|
||||
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||
*/
|
||||
/**
|
||||
* Dimensions.
|
||||
*/
|
||||
/**
|
||||
* Shadows.
|
||||
*/
|
||||
/**
|
||||
* Editor widths.
|
||||
*/
|
||||
/**
|
||||
* Block & Editor UI.
|
||||
*/
|
||||
/**
|
||||
* Block paddings.
|
||||
*/
|
||||
/**
|
||||
* React Native specific.
|
||||
* These variables do not appear to be used anywhere else.
|
||||
*/
|
||||
/**
|
||||
* Converts a hex value into the rgb equivalent.
|
||||
*
|
||||
* @param {string} hex - the hexadecimal value to convert
|
||||
* @return {string} comma separated rgb values
|
||||
*/
|
||||
/**
|
||||
* Breakpoint mixins
|
||||
*/
|
||||
/**
|
||||
* Long content fade mixin
|
||||
*
|
||||
* Creates a fading overlay to signify that the content is longer
|
||||
* than the space allows.
|
||||
*/
|
||||
/**
|
||||
* Focus styles.
|
||||
*/
|
||||
/**
|
||||
* Applies editor left position to the selector passed as argument
|
||||
*/
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
/**
|
||||
* Allows users to opt-out of animations via OS-level preferences.
|
||||
*/
|
||||
/**
|
||||
* Reset default styles for JavaScript UI based pages.
|
||||
* This is a WP-admin agnostic reset
|
||||
*/
|
||||
/**
|
||||
* Reset the WP Admin page styles for Gutenberg-like pages.
|
||||
*/
|
||||
/**
|
||||
* Breakpoints & Media Queries
|
||||
*/
|
||||
:root {
|
||||
--wp-admin-theme-color: #007cba;
|
||||
--wp-admin-theme-color--rgb: 0, 124, 186;
|
||||
--wp-admin-theme-color-darker-10: #006ba1;
|
||||
--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;
|
||||
--wp-admin-theme-color-darker-20: #005a87;
|
||||
--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
:root {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-light {
|
||||
--wp-admin-theme-color: #0085ba;
|
||||
--wp-admin-theme-color--rgb: 0, 133, 186;
|
||||
--wp-admin-theme-color-darker-10: #0073a1;
|
||||
--wp-admin-theme-color-darker-10--rgb: 0, 115, 161;
|
||||
--wp-admin-theme-color-darker-20: #006187;
|
||||
--wp-admin-theme-color-darker-20--rgb: 0, 97, 135;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-light {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-modern {
|
||||
--wp-admin-theme-color: #3858e9;
|
||||
--wp-admin-theme-color--rgb: 56, 88, 233;
|
||||
--wp-admin-theme-color-darker-10: #2145e6;
|
||||
--wp-admin-theme-color-darker-10--rgb: 33, 69, 230;
|
||||
--wp-admin-theme-color-darker-20: #183ad6;
|
||||
--wp-admin-theme-color-darker-20--rgb: 24, 58, 214;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-modern {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-blue {
|
||||
--wp-admin-theme-color: #096484;
|
||||
--wp-admin-theme-color--rgb: 9, 100, 132;
|
||||
--wp-admin-theme-color-darker-10: #07526c;
|
||||
--wp-admin-theme-color-darker-10--rgb: 7, 82, 108;
|
||||
--wp-admin-theme-color-darker-20: #064054;
|
||||
--wp-admin-theme-color-darker-20--rgb: 6, 64, 84;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-blue {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-coffee {
|
||||
--wp-admin-theme-color: #46403c;
|
||||
--wp-admin-theme-color--rgb: 70, 64, 60;
|
||||
--wp-admin-theme-color-darker-10: #383330;
|
||||
--wp-admin-theme-color-darker-10--rgb: 56, 51, 48;
|
||||
--wp-admin-theme-color-darker-20: #2b2724;
|
||||
--wp-admin-theme-color-darker-20--rgb: 43, 39, 36;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-coffee {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-ectoplasm {
|
||||
--wp-admin-theme-color: #523f6d;
|
||||
--wp-admin-theme-color--rgb: 82, 63, 109;
|
||||
--wp-admin-theme-color-darker-10: #46365d;
|
||||
--wp-admin-theme-color-darker-10--rgb: 70, 54, 93;
|
||||
--wp-admin-theme-color-darker-20: #3a2c4d;
|
||||
--wp-admin-theme-color-darker-20--rgb: 58, 44, 77;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-ectoplasm {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-midnight {
|
||||
--wp-admin-theme-color: #e14d43;
|
||||
--wp-admin-theme-color--rgb: 225, 77, 67;
|
||||
--wp-admin-theme-color-darker-10: #dd382d;
|
||||
--wp-admin-theme-color-darker-10--rgb: 221, 56, 45;
|
||||
--wp-admin-theme-color-darker-20: #d02c21;
|
||||
--wp-admin-theme-color-darker-20--rgb: 208, 44, 33;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-midnight {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-ocean {
|
||||
--wp-admin-theme-color: #627c83;
|
||||
--wp-admin-theme-color--rgb: 98, 124, 131;
|
||||
--wp-admin-theme-color-darker-10: #576e74;
|
||||
--wp-admin-theme-color-darker-10--rgb: 87, 110, 116;
|
||||
--wp-admin-theme-color-darker-20: #4c6066;
|
||||
--wp-admin-theme-color-darker-20--rgb: 76, 96, 102;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-ocean {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-sunrise {
|
||||
--wp-admin-theme-color: #dd823b;
|
||||
--wp-admin-theme-color--rgb: 221, 130, 59;
|
||||
--wp-admin-theme-color-darker-10: #d97426;
|
||||
--wp-admin-theme-color-darker-10--rgb: 217, 116, 38;
|
||||
--wp-admin-theme-color-darker-20: #c36922;
|
||||
--wp-admin-theme-color-darker-20--rgb: 195, 105, 34;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-sunrise {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
/* stylelint-disable block-closing-brace-newline-after */
|
||||
/* stylelint-enable */
|
||||
/**
|
||||
* Breakpoint mixins
|
||||
*/
|
||||
/* stylelint-disable block-closing-brace-newline-after */
|
||||
/* stylelint-enable */
|
||||
.wp-block-woocommerce-product-variations-options-field .woocommerce-sortable {
|
||||
padding: 0;
|
||||
}
|
||||
.wp-block-woocommerce-product-variations-options-field .woocommerce-sortable__item:not(:last-child) .woocommerce-list-item {
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
}
|
||||
.wp-block-woocommerce-product-variations-options-field .woocommerce-list-item {
|
||||
background: none;
|
||||
border: none;
|
||||
padding-right: 0;
|
||||
-ms-grid-columns: 26% auto 90px;
|
||||
grid-template-columns: 26% auto 90px;
|
||||
}
|
||||
.wp-block-woocommerce-product-variations-options-field .woocommerce-sortable__handle {
|
||||
display: none;
|
||||
}
|
||||
-240
@@ -1,240 +0,0 @@
|
||||
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ../../../node_modules/.pnpm/css-loader@3.6.0_webpack@5.70.0/node_modules/css-loader/dist/cjs.js!../../../node_modules/.pnpm/postcss-loader@4.3.0_postcss@8.4.12_webpack@5.70.0/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!../../../node_modules/.pnpm/sass-loader@10.2.1_sass@1.60.0_webpack@5.70.0/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[0].use[3]!./src/blocks/variation-options/editor.scss ***!
|
||||
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* SCSS Variables.
|
||||
*
|
||||
* Please use variables from this sheet to ensure consistency across the UI.
|
||||
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
||||
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
||||
*/
|
||||
/**
|
||||
* Colors
|
||||
*/
|
||||
/**
|
||||
* Fonts & basic variables.
|
||||
*/
|
||||
/**
|
||||
* Grid System.
|
||||
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
||||
*/
|
||||
/**
|
||||
* Dimensions.
|
||||
*/
|
||||
/**
|
||||
* Shadows.
|
||||
*/
|
||||
/**
|
||||
* Editor widths.
|
||||
*/
|
||||
/**
|
||||
* Block & Editor UI.
|
||||
*/
|
||||
/**
|
||||
* Block paddings.
|
||||
*/
|
||||
/**
|
||||
* React Native specific.
|
||||
* These variables do not appear to be used anywhere else.
|
||||
*/
|
||||
/**
|
||||
* Converts a hex value into the rgb equivalent.
|
||||
*
|
||||
* @param {string} hex - the hexadecimal value to convert
|
||||
* @return {string} comma separated rgb values
|
||||
*/
|
||||
/**
|
||||
* Breakpoint mixins
|
||||
*/
|
||||
/**
|
||||
* Long content fade mixin
|
||||
*
|
||||
* Creates a fading overlay to signify that the content is longer
|
||||
* than the space allows.
|
||||
*/
|
||||
/**
|
||||
* Focus styles.
|
||||
*/
|
||||
/**
|
||||
* Applies editor left position to the selector passed as argument
|
||||
*/
|
||||
/**
|
||||
* Styles that are reused verbatim in a few places
|
||||
*/
|
||||
/**
|
||||
* Allows users to opt-out of animations via OS-level preferences.
|
||||
*/
|
||||
/**
|
||||
* Reset default styles for JavaScript UI based pages.
|
||||
* This is a WP-admin agnostic reset
|
||||
*/
|
||||
/**
|
||||
* Reset the WP Admin page styles for Gutenberg-like pages.
|
||||
*/
|
||||
/**
|
||||
* Breakpoints & Media Queries
|
||||
*/
|
||||
:root {
|
||||
--wp-admin-theme-color: #007cba;
|
||||
--wp-admin-theme-color--rgb: 0, 124, 186;
|
||||
--wp-admin-theme-color-darker-10: #006ba1;
|
||||
--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;
|
||||
--wp-admin-theme-color-darker-20: #005a87;
|
||||
--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
:root {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-light {
|
||||
--wp-admin-theme-color: #0085ba;
|
||||
--wp-admin-theme-color--rgb: 0, 133, 186;
|
||||
--wp-admin-theme-color-darker-10: #0073a1;
|
||||
--wp-admin-theme-color-darker-10--rgb: 0, 115, 161;
|
||||
--wp-admin-theme-color-darker-20: #006187;
|
||||
--wp-admin-theme-color-darker-20--rgb: 0, 97, 135;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-light {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-modern {
|
||||
--wp-admin-theme-color: #3858e9;
|
||||
--wp-admin-theme-color--rgb: 56, 88, 233;
|
||||
--wp-admin-theme-color-darker-10: #2145e6;
|
||||
--wp-admin-theme-color-darker-10--rgb: 33, 69, 230;
|
||||
--wp-admin-theme-color-darker-20: #183ad6;
|
||||
--wp-admin-theme-color-darker-20--rgb: 24, 58, 214;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-modern {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-blue {
|
||||
--wp-admin-theme-color: #096484;
|
||||
--wp-admin-theme-color--rgb: 9, 100, 132;
|
||||
--wp-admin-theme-color-darker-10: #07526c;
|
||||
--wp-admin-theme-color-darker-10--rgb: 7, 82, 108;
|
||||
--wp-admin-theme-color-darker-20: #064054;
|
||||
--wp-admin-theme-color-darker-20--rgb: 6, 64, 84;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-blue {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-coffee {
|
||||
--wp-admin-theme-color: #46403c;
|
||||
--wp-admin-theme-color--rgb: 70, 64, 60;
|
||||
--wp-admin-theme-color-darker-10: #383330;
|
||||
--wp-admin-theme-color-darker-10--rgb: 56, 51, 48;
|
||||
--wp-admin-theme-color-darker-20: #2b2724;
|
||||
--wp-admin-theme-color-darker-20--rgb: 43, 39, 36;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-coffee {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-ectoplasm {
|
||||
--wp-admin-theme-color: #523f6d;
|
||||
--wp-admin-theme-color--rgb: 82, 63, 109;
|
||||
--wp-admin-theme-color-darker-10: #46365d;
|
||||
--wp-admin-theme-color-darker-10--rgb: 70, 54, 93;
|
||||
--wp-admin-theme-color-darker-20: #3a2c4d;
|
||||
--wp-admin-theme-color-darker-20--rgb: 58, 44, 77;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-ectoplasm {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-midnight {
|
||||
--wp-admin-theme-color: #e14d43;
|
||||
--wp-admin-theme-color--rgb: 225, 77, 67;
|
||||
--wp-admin-theme-color-darker-10: #dd382d;
|
||||
--wp-admin-theme-color-darker-10--rgb: 221, 56, 45;
|
||||
--wp-admin-theme-color-darker-20: #d02c21;
|
||||
--wp-admin-theme-color-darker-20--rgb: 208, 44, 33;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-midnight {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-ocean {
|
||||
--wp-admin-theme-color: #627c83;
|
||||
--wp-admin-theme-color--rgb: 98, 124, 131;
|
||||
--wp-admin-theme-color-darker-10: #576e74;
|
||||
--wp-admin-theme-color-darker-10--rgb: 87, 110, 116;
|
||||
--wp-admin-theme-color-darker-20: #4c6066;
|
||||
--wp-admin-theme-color-darker-20--rgb: 76, 96, 102;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-ocean {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
body.admin-color-sunrise {
|
||||
--wp-admin-theme-color: #dd823b;
|
||||
--wp-admin-theme-color--rgb: 221, 130, 59;
|
||||
--wp-admin-theme-color-darker-10: #d97426;
|
||||
--wp-admin-theme-color-darker-10--rgb: 217, 116, 38;
|
||||
--wp-admin-theme-color-darker-20: #c36922;
|
||||
--wp-admin-theme-color-darker-20--rgb: 195, 105, 34;
|
||||
--wp-admin-border-width-focus: 2px;
|
||||
}
|
||||
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
||||
body.admin-color-sunrise {
|
||||
--wp-admin-border-width-focus: 1.5px;
|
||||
}
|
||||
}
|
||||
|
||||
/* stylelint-disable block-closing-brace-newline-after */
|
||||
/* stylelint-enable */
|
||||
/**
|
||||
* Breakpoint mixins
|
||||
*/
|
||||
/* stylelint-disable block-closing-brace-newline-after */
|
||||
/* stylelint-enable */
|
||||
.wp-block-woocommerce-product-variations-options-field .woocommerce-sortable {
|
||||
padding: 0;
|
||||
}
|
||||
.wp-block-woocommerce-product-variations-options-field .woocommerce-sortable__item:not(:last-child) .woocommerce-list-item {
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
}
|
||||
.wp-block-woocommerce-product-variations-options-field .woocommerce-list-item {
|
||||
background: none;
|
||||
border: none;
|
||||
padding-left: 0;
|
||||
-ms-grid-columns: 26% auto 90px;
|
||||
grid-template-columns: 26% auto 90px;
|
||||
}
|
||||
.wp-block-woocommerce-product-variations-options-field .woocommerce-sortable__handle {
|
||||
display: none;
|
||||
}
|
||||
-31
@@ -1,31 +0,0 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 2,
|
||||
"name": "woocommerce/product-catalog-visibility-field",
|
||||
"description": "A checkbox to manage the catalog visibility of the product.",
|
||||
"title": "Product catalog visibility",
|
||||
"category": "widgets",
|
||||
"keywords": ["products", "catalog"],
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"label": {
|
||||
"type": "string",
|
||||
"__experimentalRole": "content"
|
||||
},
|
||||
"visibilty": {
|
||||
"type": "string",
|
||||
"enum": ["visible", "catalog", "search", "hidden"],
|
||||
"default": "visible"
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"align": false,
|
||||
"html": false,
|
||||
"multiple": false,
|
||||
"reusable": false,
|
||||
"inserter": false,
|
||||
"lock": false,
|
||||
"__experimentalToolbar": false
|
||||
},
|
||||
"editorStyle": "file:./editor.css"
|
||||
}
|
||||
-1
@@ -1 +0,0 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Edit=void 0;const block_editor_1=require("@wordpress/block-editor"),components_1=require("@wordpress/components"),core_data_1=require("@wordpress/core-data"),element_1=require("@wordpress/element");function Edit({attributes:e}){const{label:t,visibilty:o}=e,r=(0,block_editor_1.useBlockProps)(),[i,s]=(0,core_data_1.useEntityProp)("postType","product","catalog_visibility"),d=i===o||"hidden"===i;return(0,element_1.createElement)("div",{...r},(0,element_1.createElement)(components_1.CheckboxControl,{label:t,checked:d,onChange:function(e){if(e){if("visible"===i)return void s(o);s("hidden")}else{if("hidden"===i)return"catalog"===o?void s("search"):"search"===o?void s("catalog"):void 0;s("visible")}}}))}exports.Edit=Edit;
|
||||
-1
@@ -1 +0,0 @@
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=require("../../utils/init-block"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_block_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
-1
@@ -1 +0,0 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=require("../../utils/init-block"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit};const init=()=>(0,init_block_1.initBlock)({name,metadata,settings:exports.settings});exports.init=init;
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=__importDefault(require("../../utils/init-block")),block_json_1=__importDefault(require("./block.json"));exports.metadata=block_json_1.default;const edit_1=require("./edit"),{name}=block_json_1.default;exports.name=name,exports.settings={example:{},edit:edit_1.Edit};const init=()=>(0,init_block_1.default)({name,metadata:block_json_1.default,settings:exports.settings});exports.init=init;
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=require("../../utils/init-block"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit};const init=()=>(0,init_block_1.initBlock)({name,metadata,settings:exports.settings});exports.init=init;
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=__importDefault(require("../../utils/init-block")),block_json_1=__importDefault(require("./block.json"));exports.metadata=block_json_1.default;const edit_1=require("./edit"),{name}=block_json_1.default;exports.name=name,exports.settings={example:{},edit:edit_1.Edit};const init=()=>(0,init_block_1.default)({name,metadata:block_json_1.default,settings:exports.settings});exports.init=init;
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Edit=void 0;const i18n_1=require("@wordpress/i18n"),components_1=require("@wordpress/components"),classnames_1=__importDefault(require("classnames")),element_1=require("@wordpress/element"),icons_1=require("@wordpress/icons"),components_2=require("@woocommerce/components"),tracks_1=require("@woocommerce/tracks"),block_editor_1=require("@wordpress/block-editor"),core_data_1=require("@wordpress/core-data");function Edit(){const[e,r]=(0,core_data_1.useEntityProp)("postType","product","images"),[o,t]=(0,element_1.useState)(!1),[a,n]=(0,element_1.useState)(!1),[c,_]=(0,element_1.useState)(null),i=(0,block_editor_1.useBlockProps)({className:(0,classnames_1.default)({"has-images":e.length>0})}),l=()=>{t(!o)};return(0,element_1.createElement)("div",{...i},(0,element_1.createElement)("div",{className:"woocommerce-product-form__image-drop-zone"},o?(0,element_1.createElement)("div",{className:"woocommerce-product-form__remove-image-drop-zone"},(0,element_1.createElement)("span",null,(0,element_1.createElement)(icons_1.Icon,{icon:icons_1.trash,size:20,className:"icon-control"}),(0,i18n_1.__)("Drop here to remove","woocommerce")),(0,element_1.createElement)(components_1.DropZone,{onHTMLDrop:()=>n(!0),onDrop:()=>n(!0),label:(0,i18n_1.__)("Drop here to remove","woocommerce")})):(0,element_1.createElement)(components_2.MediaUploader,{multipleSelect:"add",onError:()=>null,onFileUploadChange:o=>{o[0].id&&((0,tracks_1.recordEvent)("product_images_add_via_file_upload_area"),r([...e,...o]))},onMediaGalleryOpen:()=>{(0,tracks_1.recordEvent)("product_images_media_gallery_open")},onSelect:o=>{const t=o.filter((r=>!e.find((e=>e.id===r.id))));t.length>0&&((0,tracks_1.recordEvent)("product_images_add_via_media_library"),r([...e,...t]))},onUpload:o=>{o[0].id&&((0,tracks_1.recordEvent)("product_images_add_via_drag_and_drop_upload"),r([...e,...o]))},label:""})),(0,element_1.createElement)(components_2.ImageGallery,{allowDragging:!1,onDragStart:r=>{var o;const{id:t,dataset:a}=r.target;if(t)_(parseInt(t,10));else{const r=null==a?void 0:a.index;r&&_(null===(o=e[parseInt(r,10)])||void 0===o?void 0:o.id)}l()},onDragEnd:()=>{a&&c&&((0,tracks_1.recordEvent)("product_images_remove_image_button_click"),r(e.filter((e=>e.id!==c))),n(!1),_(null)),l()},onOrderChange:o=>{const t=o.map((r=>e.find((e=>{var o;return e.id===parseInt(null===(o=null==r?void 0:r.props)||void 0===o?void 0:o.id,10)}))));(0,tracks_1.recordEvent)("product_images_change_image_order_via_image_gallery"),r(t)},onReplace:({replaceIndex:o,media:t})=>{if(void 0===e.find((e=>t.id===e.id))){const a=[...e];a[o]=t,(0,tracks_1.recordEvent)("product_images_replace_image_button_click"),r(a)}},onSelectAsCover:()=>(0,tracks_1.recordEvent)("product_images_select_image_as_cover_button_click")},e.map((e=>(0,element_1.createElement)(components_2.ImageGalleryItem,{key:e.id||e.url,alt:e.alt,src:e.url||e.src,id:`${e.id}`})))))}exports.Edit=Edit;
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Edit=void 0;const i18n_1=require("@wordpress/i18n"),components_1=require("@wordpress/components"),classnames_1=__importDefault(require("classnames")),element_1=require("@wordpress/element"),icons_1=require("@wordpress/icons"),components_2=require("@woocommerce/components"),tracks_1=require("@woocommerce/tracks"),block_editor_1=require("@wordpress/block-editor"),core_data_1=require("@wordpress/core-data");function Edit(){const[e,r]=(0,core_data_1.useEntityProp)("postType","product","images"),[o,t]=(0,element_1.useState)(!1),[a,n]=(0,element_1.useState)(!1),[c,_]=(0,element_1.useState)(null),i=(0,block_editor_1.useBlockProps)({className:(0,classnames_1.default)({"has-images":e.length>0})}),l=()=>{t(!o)};return(0,element_1.createElement)("div",{...i},(0,element_1.createElement)("div",{className:"woocommerce-product-form__image-drop-zone"},o?(0,element_1.createElement)("div",{className:"woocommerce-product-form__remove-image-drop-zone"},(0,element_1.createElement)("span",null,(0,element_1.createElement)(icons_1.Icon,{icon:icons_1.trash,size:20,className:"icon-control"}),(0,i18n_1.__)("Drop here to remove","woocommerce")),(0,element_1.createElement)(components_1.DropZone,{onHTMLDrop:()=>n(!0),onDrop:()=>n(!0),label:(0,i18n_1.__)("Drop here to remove","woocommerce")})):(0,element_1.createElement)(components_2.MediaUploader,{multipleSelect:!0,onError:()=>null,onFileUploadChange:o=>{o[0].id&&((0,tracks_1.recordEvent)("product_images_add_via_file_upload_area"),r([...e,...o]))},onMediaGalleryOpen:()=>{(0,tracks_1.recordEvent)("product_images_media_gallery_open")},onSelect:o=>{const t=o.filter((r=>!e.find((e=>e.id===r.id))));t.length>0&&((0,tracks_1.recordEvent)("product_images_add_via_media_library"),r([...e,...t]))},onUpload:o=>{o[0].id&&((0,tracks_1.recordEvent)("product_images_add_via_drag_and_drop_upload"),r([...e,...o]))},label:""})),(0,element_1.createElement)(components_2.ImageGallery,{allowDragging:!1,onDragStart:r=>{var o;const{id:t,dataset:a}=r.target;if(t)_(parseInt(t,10));else{const r=null==a?void 0:a.index;r&&_(null===(o=e[parseInt(r,10)])||void 0===o?void 0:o.id)}l()},onDragEnd:()=>{a&&c&&((0,tracks_1.recordEvent)("product_images_remove_image_button_click"),r(e.filter((e=>e.id!==c))),n(!1),_(null)),l()},onOrderChange:o=>{const t=o.map((r=>e.find((e=>{var o;return e.id===parseInt(null===(o=null==r?void 0:r.props)||void 0===o?void 0:o.id,10)}))));(0,tracks_1.recordEvent)("product_images_change_image_order_via_image_gallery"),r(t)},onReplace:({replaceIndex:o,media:t})=>{if(void 0===e.find((e=>t.id===e.id))){const a=[...e];a[o]=t,(0,tracks_1.recordEvent)("product_images_replace_image_button_click"),r(a)}},onSelectAsCover:()=>(0,tracks_1.recordEvent)("product_images_select_image_as_cover_button_click")},e.map((e=>(0,element_1.createElement)(components_2.ImageGalleryItem,{key:e.id||e.url,alt:e.alt,src:e.url||e.src,id:`${e.id}`})))))}exports.Edit=Edit;
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.initNotice=exports.initVariationOptions=exports.initVariationItems=exports.initRequirePassword=exports.initVariations=exports.attributesInit=exports.initToggle=exports.initInventoryQuantity=exports.initTab=exports.initSummary=exports.initShippingDimensions=exports.initShippingClass=exports.initSection=exports.initScheduleSale=exports.initSalePrice=exports.initRegularPrice=exports.initRadio=exports.initPricing=exports.initName=exports.initSku=exports.initLowStockQty=exports.initImages=exports.initDescription=exports.initConditional=exports.initCollapsible=exports.initCheckbox=exports.initCategory=exports.initCatalogVisibility=void 0;var catalog_visibility_1=require("./catalog-visibility");Object.defineProperty(exports,"initCatalogVisibility",{enumerable:!0,get:function(){return catalog_visibility_1.init}});var category_1=require("./category");Object.defineProperty(exports,"initCategory",{enumerable:!0,get:function(){return category_1.init}});var checkbox_1=require("./checkbox");Object.defineProperty(exports,"initCheckbox",{enumerable:!0,get:function(){return checkbox_1.init}});var collapsible_1=require("./collapsible");Object.defineProperty(exports,"initCollapsible",{enumerable:!0,get:function(){return collapsible_1.init}});var conditional_1=require("./conditional");Object.defineProperty(exports,"initConditional",{enumerable:!0,get:function(){return conditional_1.init}});var description_1=require("./description");Object.defineProperty(exports,"initDescription",{enumerable:!0,get:function(){return description_1.init}});var images_1=require("./images");Object.defineProperty(exports,"initImages",{enumerable:!0,get:function(){return images_1.init}});var inventory_email_1=require("./inventory-email");Object.defineProperty(exports,"initLowStockQty",{enumerable:!0,get:function(){return inventory_email_1.init}});var inventory_sku_1=require("./inventory-sku");Object.defineProperty(exports,"initSku",{enumerable:!0,get:function(){return inventory_sku_1.init}});var name_1=require("./name");Object.defineProperty(exports,"initName",{enumerable:!0,get:function(){return name_1.init}});var pricing_1=require("./pricing");Object.defineProperty(exports,"initPricing",{enumerable:!0,get:function(){return pricing_1.init}});var radio_1=require("./radio");Object.defineProperty(exports,"initRadio",{enumerable:!0,get:function(){return radio_1.init}});var regular_price_1=require("./regular-price");Object.defineProperty(exports,"initRegularPrice",{enumerable:!0,get:function(){return regular_price_1.init}});var sale_price_1=require("./sale-price");Object.defineProperty(exports,"initSalePrice",{enumerable:!0,get:function(){return sale_price_1.init}});var schedule_sale_1=require("./schedule-sale");Object.defineProperty(exports,"initScheduleSale",{enumerable:!0,get:function(){return schedule_sale_1.init}});var section_1=require("./section");Object.defineProperty(exports,"initSection",{enumerable:!0,get:function(){return section_1.init}});var shipping_class_1=require("./shipping-class");Object.defineProperty(exports,"initShippingClass",{enumerable:!0,get:function(){return shipping_class_1.init}});var shipping_dimensions_1=require("./shipping-dimensions");Object.defineProperty(exports,"initShippingDimensions",{enumerable:!0,get:function(){return shipping_dimensions_1.init}});var summary_1=require("./summary");Object.defineProperty(exports,"initSummary",{enumerable:!0,get:function(){return summary_1.init}});var tab_1=require("./tab");Object.defineProperty(exports,"initTab",{enumerable:!0,get:function(){return tab_1.init}});var inventory_quantity_1=require("./inventory-quantity");Object.defineProperty(exports,"initInventoryQuantity",{enumerable:!0,get:function(){return inventory_quantity_1.init}});var toggle_1=require("./toggle");Object.defineProperty(exports,"initToggle",{enumerable:!0,get:function(){return toggle_1.init}});var attributes_1=require("./attributes");Object.defineProperty(exports,"attributesInit",{enumerable:!0,get:function(){return attributes_1.init}});var variations_1=require("./variations");Object.defineProperty(exports,"initVariations",{enumerable:!0,get:function(){return variations_1.init}});var password_1=require("./password");Object.defineProperty(exports,"initRequirePassword",{enumerable:!0,get:function(){return password_1.init}});var variation_items_1=require("./variation-items");Object.defineProperty(exports,"initVariationItems",{enumerable:!0,get:function(){return variation_items_1.init}});var variation_options_1=require("./variation-options");Object.defineProperty(exports,"initVariationOptions",{enumerable:!0,get:function(){return variation_options_1.init}});var notice_1=require("./notice");Object.defineProperty(exports,"initNotice",{enumerable:!0,get:function(){return notice_1.init}});
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.initVariations=exports.attributesInit=exports.initToggle=exports.initInventoryQuantity=exports.initTab=exports.initSummary=exports.initShippingDimensions=exports.initShippingClass=exports.initSection=exports.initScheduleSale=exports.initSalePrice=exports.initRegularPrice=exports.initRadio=exports.initPricing=exports.initName=exports.initSku=exports.initLowStockQty=exports.initImages=exports.initDescription=exports.initConditional=exports.initCollapsible=exports.initCheckbox=exports.initCategory=void 0;var category_1=require("./category");Object.defineProperty(exports,"initCategory",{enumerable:!0,get:function(){return category_1.init}});var checkbox_1=require("./checkbox");Object.defineProperty(exports,"initCheckbox",{enumerable:!0,get:function(){return checkbox_1.init}});var collapsible_1=require("./collapsible");Object.defineProperty(exports,"initCollapsible",{enumerable:!0,get:function(){return collapsible_1.init}});var conditional_1=require("./conditional");Object.defineProperty(exports,"initConditional",{enumerable:!0,get:function(){return conditional_1.init}});var description_1=require("./description");Object.defineProperty(exports,"initDescription",{enumerable:!0,get:function(){return description_1.init}});var images_1=require("./images");Object.defineProperty(exports,"initImages",{enumerable:!0,get:function(){return images_1.init}});var inventory_email_1=require("./inventory-email");Object.defineProperty(exports,"initLowStockQty",{enumerable:!0,get:function(){return inventory_email_1.init}});var inventory_sku_1=require("./inventory-sku");Object.defineProperty(exports,"initSku",{enumerable:!0,get:function(){return inventory_sku_1.init}});var name_1=require("./name");Object.defineProperty(exports,"initName",{enumerable:!0,get:function(){return name_1.init}});var pricing_1=require("./pricing");Object.defineProperty(exports,"initPricing",{enumerable:!0,get:function(){return pricing_1.init}});var radio_1=require("./radio");Object.defineProperty(exports,"initRadio",{enumerable:!0,get:function(){return radio_1.init}});var regular_price_1=require("./regular-price");Object.defineProperty(exports,"initRegularPrice",{enumerable:!0,get:function(){return regular_price_1.init}});var sale_price_1=require("./sale-price");Object.defineProperty(exports,"initSalePrice",{enumerable:!0,get:function(){return sale_price_1.init}});var schedule_sale_1=require("./schedule-sale");Object.defineProperty(exports,"initScheduleSale",{enumerable:!0,get:function(){return schedule_sale_1.init}});var section_1=require("./section");Object.defineProperty(exports,"initSection",{enumerable:!0,get:function(){return section_1.init}});var shipping_class_1=require("./shipping-class");Object.defineProperty(exports,"initShippingClass",{enumerable:!0,get:function(){return shipping_class_1.init}});var shipping_dimensions_1=require("./shipping-dimensions");Object.defineProperty(exports,"initShippingDimensions",{enumerable:!0,get:function(){return shipping_dimensions_1.init}});var summary_1=require("./summary");Object.defineProperty(exports,"initSummary",{enumerable:!0,get:function(){return summary_1.init}});var tab_1=require("./tab");Object.defineProperty(exports,"initTab",{enumerable:!0,get:function(){return tab_1.init}});var inventory_quantity_1=require("./inventory-quantity");Object.defineProperty(exports,"initInventoryQuantity",{enumerable:!0,get:function(){return inventory_quantity_1.init}});var toggle_1=require("./toggle");Object.defineProperty(exports,"initToggle",{enumerable:!0,get:function(){return toggle_1.init}});var attributes_1=require("./attributes");Object.defineProperty(exports,"attributesInit",{enumerable:!0,get:function(){return attributes_1.init}});var variations_1=require("./variations");Object.defineProperty(exports,"initVariations",{enumerable:!0,get:function(){return variations_1.init}});
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=require("../../utils/init-block"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_block_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_blocks_1=require("../../utils/init-blocks"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_blocks_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=require("../../utils/init-block"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_block_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_blocks_1=require("../../utils/init-blocks"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_blocks_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=require("../../utils/init-block"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit};const init=()=>(0,init_block_1.initBlock)({name,metadata,settings:exports.settings});exports.init=init;
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=__importDefault(require("../../utils/init-block")),block_json_1=__importDefault(require("./block.json"));exports.metadata=block_json_1.default;const edit_1=require("./edit"),{name}=block_json_1.default;exports.name=name,exports.settings={example:{},edit:edit_1.Edit};const init=()=>(0,init_block_1.default)({name,metadata:block_json_1.default,settings:exports.settings});exports.init=init;
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Edit=void 0;const i18n_1=require("@wordpress/i18n"),element_1=require("@wordpress/element"),block_editor_1=require("@wordpress/block-editor"),compose_1=require("@wordpress/compose"),url_1=require("@wordpress/url"),data_1=require("@wordpress/data"),data_2=require("@woocommerce/data"),classnames_1=__importDefault(require("classnames")),components_1=require("@wordpress/components"),core_data_1=require("@wordpress/core-data"),utils_1=require("../../utils"),edit_product_link_modal_1=require("../../components/edit-product-link-modal"),validation_context_1=require("../../contexts/validation-context"),use_product_edits_1=require("../../hooks/use-product-edits");function Edit({attributes:e}){const t=(0,block_editor_1.useBlockProps)(),{editEntityRecord:r,saveEntityRecord:o}=(0,data_1.useDispatch)("core"),{hasEdit:n}=(0,use_product_edits_1.useProductEdits)(),[a,i]=(0,element_1.useState)(!1),s=(0,core_data_1.useEntityId)("postType","product"),l=(0,data_1.useSelect)((e=>e("core").getEditedEntityRecord("postType","product",s))),[c,_]=(0,core_data_1.useEntityProp)("postType","product","sku"),[u,d]=(0,core_data_1.useEntityProp)("postType","product","name"),{permalinkPrefix:m,permalinkSuffix:p}=(0,data_1.useSelect)((e=>{const{getPermalinkParts:t}=e(data_2.PRODUCTS_STORE_NAME);if(s){const e=t(s);return{permalinkPrefix:null==e?void 0:e.prefix,permalinkSuffix:null==e?void 0:e.suffix}}return{}})),{ref:f,error:E,validate:k}=(0,validation_context_1.useValidation)("name",(async function(){return u&&u!==utils_1.AUTO_DRAFT_NAME?u.length>120?(0,i18n_1.__)("Please enter a product name shorter than 120 characters.","woocommerce"):void 0:(0,i18n_1.__)("This field is required.","woocommerce")}),[u]),w=null!=E?E:s&&["publish","draft"].includes(l.status)&&m&&(0,element_1.createElement)("span",{className:"woocommerce-product-form__secondary-text product-details-section__product-link"},(0,i18n_1.__)("Product link","woocommerce"),": ",(0,element_1.createElement)("a",{href:l.permalink,target:"_blank",rel:"noreferrer"},m,l.slug||(0,url_1.cleanForSlug)(u),p),(0,element_1.createElement)(components_1.Button,{variant:"link",onClick:()=>i(!0)},(0,i18n_1.__)("Edit","woocommerce"))),q=(0,compose_1.useInstanceId)(components_1.BaseControl,"product_name");return(0,element_1.createElement)(element_1.Fragment,null,(0,element_1.createElement)("div",{...t},(0,element_1.createElement)(components_1.BaseControl,{id:q,label:(0,element_1.createInterpolateElement)((0,i18n_1.__)("Name <required />","woocommerce"),{required:(0,element_1.createElement)("span",{className:"woocommerce-product-form__required-input"},(0,i18n_1.__)("*","woocommerce"))}),className:(0,classnames_1.default)({"has-error":E}),help:w},(0,element_1.createElement)(components_1.__experimentalInputControl,{id:q,ref:f,name:"name",autoFocus:e.autoFocus,placeholder:(0,i18n_1.__)("e.g. 12 oz Coffee Mug","woocommerce"),onChange:d,value:u&&u!==utils_1.AUTO_DRAFT_NAME?u:"",autoComplete:"off","data-1p-ignore":!0,onBlur:()=>{n("name")&&(c||E||_((0,url_1.cleanForSlug)(u)),k())}})),a&&(0,element_1.createElement)(edit_product_link_modal_1.EditProductLinkModal,{permalinkPrefix:m||"",permalinkSuffix:p||"",product:l,onCancel:()=>i(!1),onSaved:()=>i(!1),saveHandler:async e=>{const{slug:t,permalink:n}=await o("postType","product",{id:l.id,slug:e});if(t&&n)return r("postType","product",l.id,{slug:t,permalink:n}),{slug:t,permalink:n}}})))}exports.Edit=Edit;
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Edit=void 0;const i18n_1=require("@wordpress/i18n"),element_1=require("@wordpress/element"),block_editor_1=require("@wordpress/block-editor"),compose_1=require("@wordpress/compose"),url_1=require("@wordpress/url"),data_1=require("@wordpress/data"),data_2=require("@woocommerce/data"),classnames_1=__importDefault(require("classnames")),components_1=require("@wordpress/components"),core_data_1=require("@wordpress/core-data"),utils_1=require("../../utils"),edit_product_link_modal_1=require("../../components/edit-product-link-modal"),validation_context_1=require("../../contexts/validation-context");function Edit({attributes:e}){const t=(0,block_editor_1.useBlockProps)(),{editEntityRecord:r,saveEntityRecord:o}=(0,data_1.useDispatch)("core"),[n,a]=(0,element_1.useState)(!1),i=(0,core_data_1.useEntityId)("postType","product"),l=(0,data_1.useSelect)((e=>e("core").getEditedEntityRecord("postType","product",i))),[s,c]=(0,core_data_1.useEntityProp)("postType","product","sku"),[_,u]=(0,core_data_1.useEntityProp)("postType","product","name"),{permalinkPrefix:d,permalinkSuffix:m}=(0,data_1.useSelect)((e=>{const{getPermalinkParts:t}=e(data_2.PRODUCTS_STORE_NAME);if(i){const e=t(i);return{permalinkPrefix:null==e?void 0:e.prefix,permalinkSuffix:null==e?void 0:e.suffix}}return{}})),{ref:p,error:f,validate:E}=(0,validation_context_1.useValidation)("name",(async function(){return _&&_!==utils_1.AUTO_DRAFT_NAME?_.length>120?(0,i18n_1.__)("Please enter a product name shorter than 120 characters.","woocommerce"):void 0:(0,i18n_1.__)("This field is required.","woocommerce")}),[_]),k=null!=f?f:i&&["publish","draft"].includes(l.status)&&d&&(0,element_1.createElement)("span",{className:"woocommerce-product-form__secondary-text product-details-section__product-link"},(0,i18n_1.__)("Product link","woocommerce"),": ",(0,element_1.createElement)("a",{href:l.permalink,target:"_blank",rel:"noreferrer"},d,l.slug||(0,url_1.cleanForSlug)(_),m),(0,element_1.createElement)(components_1.Button,{variant:"link",onClick:()=>a(!0)},(0,i18n_1.__)("Edit","woocommerce"))),w=(0,compose_1.useInstanceId)(components_1.BaseControl,"product_name");return(0,element_1.createElement)(element_1.Fragment,null,(0,element_1.createElement)("div",{...t},(0,element_1.createElement)(components_1.BaseControl,{id:w,label:(0,element_1.createInterpolateElement)((0,i18n_1.__)("Name <required />","woocommerce"),{required:(0,element_1.createElement)("span",{className:"woocommerce-product-form__required-input"},(0,i18n_1.__)("*","woocommerce"))}),className:(0,classnames_1.default)({"has-error":f}),help:k},(0,element_1.createElement)(components_1.__experimentalInputControl,{id:w,ref:p,name:"name",autoFocus:e.autoFocus,placeholder:(0,i18n_1.__)("e.g. 12 oz Coffee Mug","woocommerce"),onChange:u,value:_&&_!==utils_1.AUTO_DRAFT_NAME?_:"",autoComplete:"off","data-1p-ignore":!0,onBlur:()=>{s||f||c((0,url_1.cleanForSlug)(_)),E()}})),n&&(0,element_1.createElement)(edit_product_link_modal_1.EditProductLinkModal,{permalinkPrefix:d||"",permalinkSuffix:m||"",product:l,onCancel:()=>a(!1),onSaved:()=>a(!1),saveHandler:async e=>{const{slug:t,permalink:n}=await o("postType","product",{id:l.id,slug:e});if(t&&n)return r("postType","product",l.id,{slug:t,permalink:n}),{slug:t,permalink:n}}})))}exports.Edit=Edit;
|
||||
-38
@@ -1,38 +0,0 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 2,
|
||||
"name": "woocommerce/product-has-variations-notice",
|
||||
"title": "Notice",
|
||||
"category": "woocommerce",
|
||||
"description": "Notice description",
|
||||
"keywords": ["products", "notice"],
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"content": {
|
||||
"type": "string"
|
||||
},
|
||||
"buttonText": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"align": false,
|
||||
"html": false,
|
||||
"multiple": true,
|
||||
"reusable": false,
|
||||
"inserter": false,
|
||||
"lock": false,
|
||||
"__experimentalToolbar": false
|
||||
},
|
||||
"editorStyle": "file:./editor.css",
|
||||
"templateLock": "contentOnly"
|
||||
}
|
||||
-1
@@ -1 +0,0 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Edit=void 0;const block_editor_1=require("@wordpress/block-editor"),element_1=require("@wordpress/element"),components_1=require("@wordpress/components"),navigation_1=require("@woocommerce/navigation"),core_data_1=require("@wordpress/core-data"),notice_1=require("../../components/notice"),utils_1=require("../../utils");function Edit({attributes:e}){const t=(0,block_editor_1.useBlockProps)(),{buttonText:o,content:r,title:i,type:n="info"}=e,[s]=(0,core_data_1.useEntityProp)("postType","product","attributes"),a=(0,utils_1.hasAttributesUsedForVariations)(s);return(0,element_1.createElement)("div",{...t},a&&(0,element_1.createElement)(notice_1.Notice,{content:r,title:i,type:n},(0,element_1.createElement)(components_1.Button,{isSecondary:!0,onClick:()=>(0,navigation_1.navigateTo)({url:(0,navigation_1.getNewPath)({tab:"variations"})})},o)))}exports.Edit=Edit;
|
||||
-1
@@ -1 +0,0 @@
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=require("../../utils/init-block"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){(0,init_block_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
-26
@@ -1,26 +0,0 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 2,
|
||||
"name": "woocommerce/product-password-field",
|
||||
"description": "A checkbox and an input to type a password to view a product.",
|
||||
"title": "Product password",
|
||||
"category": "widgets",
|
||||
"keywords": ["products", "password"],
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"label": {
|
||||
"type": "string",
|
||||
"__experimentalRole": "content"
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"align": false,
|
||||
"html": false,
|
||||
"multiple": false,
|
||||
"reusable": false,
|
||||
"inserter": false,
|
||||
"lock": false,
|
||||
"__experimentalToolbar": false
|
||||
},
|
||||
"editorStyle": "file:./editor.css"
|
||||
}
|
||||
-1
@@ -1 +0,0 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Edit=void 0;const block_editor_1=require("@wordpress/block-editor"),compose_1=require("@wordpress/compose"),core_data_1=require("@wordpress/core-data"),element_1=require("@wordpress/element"),i18n_1=require("@wordpress/i18n"),components_1=require("@wordpress/components");function Edit({attributes:e}){const o=(0,block_editor_1.useBlockProps)(),{label:t}=e,[r,s]=(0,core_data_1.useEntityProp)("postType","product","post_password"),[n,c]=(0,element_1.useState)(Boolean(r)),l=(0,compose_1.useInstanceId)(components_1.BaseControl,"post_password");return(0,element_1.createElement)("div",{...o},(0,element_1.createElement)(components_1.CheckboxControl,{label:t,checked:n,className:"wp-block-woocommerce-product-password-fields__field",onChange:e=>{c(e),e||s("")}}),n&&(0,element_1.createElement)(components_1.BaseControl,{id:l,label:(0,i18n_1.__)("Password","woocommerce")},(0,element_1.createElement)(components_1.__experimentalInputControl,{id:l,value:r,onChange:s})))}exports.Edit=Edit;
|
||||
-1
@@ -1 +0,0 @@
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=require("../../utils/init-block"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_block_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={edit:edit_1.Edit},exports.init=init;
|
||||
-1
@@ -1 +0,0 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=require("../../utils/init-block"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_block_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_blocks_1=require("../../utils/init-blocks"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_blocks_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=require("../../utils/init-block"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_block_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_blocks_1=require("../../utils/init-blocks"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_blocks_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=require("../../utils/init-block"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_block_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_blocks_1=require("../../utils/init-blocks"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_blocks_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=require("../../utils/init-block"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_block_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_blocks_1=require("../../utils/init-blocks"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_blocks_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=require("../../utils/init-block"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_block_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_blocks_1=require("../../utils/init-blocks"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_blocks_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=require("../../utils/init-block"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_block_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_blocks_1=require("../../utils/init-blocks"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_blocks_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=require("../../utils/init-block"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_block_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_blocks_1=require("../../utils/init-blocks"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_blocks_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=require("../../utils/init-block"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_block_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_blocks_1=require("../../utils/init-blocks"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_blocks_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
-3
@@ -27,9 +27,6 @@
|
||||
"lock": false,
|
||||
"__experimentalToolbar": false
|
||||
},
|
||||
"providesContext": {
|
||||
"isInSelectedTab": "isSelected"
|
||||
},
|
||||
"usesContext": ["selectedTab"],
|
||||
"editorStyle": "file:./editor.css",
|
||||
"templateLock": "contentOnly"
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Edit=void 0;const block_editor_1=require("@wordpress/block-editor"),classnames_1=__importDefault(require("classnames")),element_1=require("@wordpress/element"),tab_button_1=require("./tab-button");function Edit({setAttributes:e,attributes:t,context:o}){const r=(0,block_editor_1.useBlockProps)(),{id:l,title:c,order:n,isSelected:s}=t,i=(null==o?void 0:o.selectedTab)===l;i!==s&&e({isSelected:i});const a=(0,classnames_1.default)("wp-block-woocommerce-product-tab__content",{"is-selected":i});return(0,element_1.createElement)("div",{...r},(0,element_1.createElement)(tab_button_1.TabButton,{id:l,selected:i,order:n},c),(0,element_1.createElement)("div",{id:`woocommerce-product-tab__${l}-content`,"aria-labelledby":`woocommerce-product-tab__${l}`,role:"tabpanel",className:a},(0,element_1.createElement)(block_editor_1.InnerBlocks,{templateLock:"contentOnly"})))}exports.Edit=Edit;
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Edit=void 0;const block_editor_1=require("@wordpress/block-editor"),classnames_1=__importDefault(require("classnames")),element_1=require("@wordpress/element"),tab_button_1=require("./tab-button");function Edit({attributes:e,context:t}){const o=(0,block_editor_1.useBlockProps)(),{id:r,title:l,order:c}=e,n=(null==t?void 0:t.selectedTab)===r,a=(0,classnames_1.default)("wp-block-woocommerce-product-tab__content",{"is-selected":n});return(0,element_1.createElement)("div",{...o},(0,element_1.createElement)(tab_button_1.TabButton,{id:r,selected:n,order:c},l),(0,element_1.createElement)("div",{id:`woocommerce-product-tab__${r}-content`,"aria-labelledby":`woocommerce-product-tab__${r}`,role:"tabpanel",className:a},(0,element_1.createElement)(block_editor_1.InnerBlocks,{templateLock:"contentOnly"})))}exports.Edit=Edit;
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=require("../../utils/init-block"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){(0,init_block_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=__importDefault(require("../../utils/init-block")),block_json_1=__importDefault(require("./block.json"));exports.metadata=block_json_1.default;const edit_1=require("./edit"),{name}=block_json_1.default;exports.name=name,exports.settings={example:{},edit:edit_1.Edit};const init=()=>(0,init_block_1.default)({name,metadata:block_json_1.default,settings:exports.settings});exports.init=init;
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=require("../../utils/init-block"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_block_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_blocks_1=require("../../utils/init-blocks"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_blocks_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
-27
@@ -1,27 +0,0 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 2,
|
||||
"name": "woocommerce/product-variation-items-field",
|
||||
"title": "Product variations items",
|
||||
"category": "woocommerce",
|
||||
"description": "The product variations items.",
|
||||
"keywords": ["products", "variations"],
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"description": {
|
||||
"type": "string",
|
||||
"__experimentalRole": "content"
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"align": false,
|
||||
"html": false,
|
||||
"multiple": false,
|
||||
"reusable": false,
|
||||
"inserter": false,
|
||||
"lock": false,
|
||||
"__experimentalToolbar": false
|
||||
},
|
||||
"usesContext": ["isInSelectedTab"],
|
||||
"editorStyle": "file:./editor.css"
|
||||
}
|
||||
-1
@@ -1 +0,0 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Edit=void 0;const block_editor_1=require("@wordpress/block-editor"),element_1=require("@wordpress/element"),variations_table_1=require("../../components/variations-table"),variable_product_tour_1=require("./variable-product-tour");function Edit({context:e}){const t=(0,block_editor_1.useBlockProps)();return(0,element_1.createElement)("div",{...t},(0,element_1.createElement)(variations_table_1.VariationsTable,null),(null==e?void 0:e.isInSelectedTab)&&(0,element_1.createElement)(variable_product_tour_1.VariableProductTour,null))}exports.Edit=Edit;
|
||||
-1
@@ -1 +0,0 @@
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=require("../../utils/init-block"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_block_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
-1
@@ -1 +0,0 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
||||
-1
@@ -1 +0,0 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.VariableProductTour=void 0;const element_1=require("@wordpress/element"),i18n_1=require("@wordpress/i18n"),components_1=require("@woocommerce/components"),data_1=require("@woocommerce/data"),tracks_1=require("@woocommerce/tracks"),data_2=require("@wordpress/data"),core_data_1=require("@wordpress/core-data"),constants_1=require("../../constants"),VariableProductTour=()=>{const[e,o]=(0,element_1.useState)(!1),r=(0,core_data_1.useEntityId)("postType","product"),t=(0,element_1.useRef)(),{totalCount:a}=(0,data_2.useSelect)((e=>{const{getProductVariationsTotalCount:o}=e(data_1.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME);return{totalCount:o({product_id:r,page:1,per_page:constants_1.DEFAULT_PER_PAGE_OPTION,order:"asc",orderby:"menu_order"})}}),[r]),{updateUserPreferences:c,variable_product_block_tour_shown:n}=(0,data_1.useUserPreferences)(),s={placement:"top",steps:[{referenceElements:{desktop:".wp-block-woocommerce-product-variation-items-field"},focusElement:{desktop:".wp-block-woocommerce-product-variation-items-field"},meta:{name:"product-variations-2",heading:(0,i18n_1.__)("⚡️ This product now has variations","woocommerce"),descriptions:{desktop:(0,i18n_1.__)("From now on, you’ll manage pricing, shipping, and inventory for each variation individually—just like any other product in your store.","woocommerce")},primaryButton:{text:(0,i18n_1.__)("Got it","woocommerce")}}}],options:{classNames:["variation-items-product-tour"],effects:{arrowIndicator:!0,spotlight:{interactivity:{enabled:!0}}},callbacks:{onStepViewOnce:()=>{(0,tracks_1.recordEvent)("variable_product_block_tour_shown",{variable_count:a})}},popperModifiers:[{name:"offset",options:{offset:[0,32]}}]},closeHandler:()=>{c({variable_product_block_tour_shown:"yes"}),o(!1),(0,tracks_1.recordEvent)("variable_product_block_tour_dismissed")}};return(0,element_1.useEffect)((()=>{const r=t.current!==a&&a>0&&0===t.current;t.current=a,r&&!e&&o(!0)}),[a]),"yes"!==n&&e?(0,element_1.createElement)(components_1.TourKit,{config:s}):null};exports.VariableProductTour=VariableProductTour;
|
||||
-26
@@ -1,26 +0,0 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 2,
|
||||
"name": "woocommerce/product-variations-options-field",
|
||||
"title": "Product variations options",
|
||||
"category": "woocommerce",
|
||||
"description": "The product variations options.",
|
||||
"keywords": ["products", "variations"],
|
||||
"textdomain": "default",
|
||||
"attributes": {
|
||||
"description": {
|
||||
"type": "string",
|
||||
"__experimentalRole": "content"
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"align": false,
|
||||
"html": false,
|
||||
"multiple": false,
|
||||
"reusable": false,
|
||||
"inserter": false,
|
||||
"lock": false,
|
||||
"__experimentalToolbar": false
|
||||
},
|
||||
"editorStyle": "file:./editor.css"
|
||||
}
|
||||
-1
@@ -1 +0,0 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Edit=void 0;const i18n_1=require("@wordpress/i18n"),block_editor_1=require("@wordpress/block-editor"),element_1=require("@wordpress/element"),data_1=require("@woocommerce/data"),components_1=require("@woocommerce/components"),core_data_1=require("@wordpress/core-data"),use_product_attributes_1=require("../../hooks/use-product-attributes"),attribute_control_1=require("../../components/attribute-control"),use_product_variations_helper_1=require("../../hooks/use-product-variations-helper");function manageDefaultAttributes(e){return e.reduce(((e,t)=>t.isDefault?[...e,{id:t.id,name:t.name,option:t.options[0]}]:e),[])}function Edit(){const e=(0,block_editor_1.useBlockProps)(),{generateProductVariations:t}=(0,use_product_variations_helper_1.useProductVariationsHelper)(),{updateUserPreferences:o,product_block_variable_options_notice_dismissed:r}=(0,data_1.useUserPreferences)(),[i,a]=(0,core_data_1.useEntityProp)("postType","product","attributes"),[n,s]=(0,core_data_1.useEntityProp)("postType","product","default_attributes"),{attributes:u,handleChange:l}=(0,use_product_attributes_1.useProductAttributes)({allAttributes:i,isVariationAttributes:!0,productId:(0,core_data_1.useEntityId)("postType","product"),onChange(e){a(e),s(manageDefaultAttributes(e)),t(e)}}),c=u.filter((e=>0===e.id)).map((e=>e.name));let d="";return c.length>0&&"yes"!==r&&(d=(0,element_1.createInterpolateElement)((0,i18n_1.__)("Buyers can’t search or filter by <attributeNames /> to find the variations. Consider adding them again as <globalAttributeLink>global attributes</globalAttributeLink> to make them easier to discover.","woocommerce"),{attributeNames:(0,element_1.createElement)("span",null,2===c.length?c.join((0,i18n_1.__)(" and ","woocommerce")):c.join(", ")),globalAttributeLink:(0,element_1.createElement)(components_1.Link,{href:"https://woocommerce.com/document/variable-product/#add-attributes-to-use-for-variations",type:"external",target:"_blank"})})),(0,element_1.createElement)("div",{...e},(0,element_1.createElement)(attribute_control_1.AttributeControl,{value:(0,element_1.useMemo)((function(){return u.map((e=>({...e,isDefault:n.some((t=>t.id===e.id||t.name===e.name))})))}),[u,n]),onChange:l,createNewAttributesAsGlobal:!0,useRemoveConfirmationModal:!0,onNoticeDismiss:()=>o({product_block_variable_options_notice_dismissed:"yes"}),disabledAttributeIds:i.filter((e=>!e.variation)).map((e=>e.id)),uiStrings:{notice:d,globalAttributeHelperMessage:"",customAttributeHelperMessage:"",newAttributeModalNotice:"",newAttributeModalTitle:(0,i18n_1.__)("Add variation options","woocommerce"),newAttributeModalDescription:(0,element_1.createInterpolateElement)((0,i18n_1.__)("Select from existing <globalAttributeLink>global attributes</globalAttributeLink> or create options for buyers to choose on the product page. You can change the order later.","woocommerce"),{globalAttributeLink:(0,element_1.createElement)(components_1.Link,{href:"https://woocommerce.com/document/variable-product/#add-attributes-to-use-for-variations",type:"external",target:"_blank"})}),attributeRemoveLabel:(0,i18n_1.__)("Remove variation option","woocommerce"),attributeRemoveConfirmationModalMessage:(0,i18n_1.__)("If you continue, some variations of this product will be deleted and customers will no longer be able to purchase them.","woocommerce")}}))}exports.Edit=Edit;
|
||||
-1
@@ -1 +0,0 @@
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=require("../../utils/init-block"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_block_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
-1
@@ -1 +0,0 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Edit=void 0;const classnames_1=__importDefault(require("classnames")),components_1=require("@wordpress/components"),components_2=require("@woocommerce/components"),element_1=require("@wordpress/element"),i18n_1=require("@wordpress/i18n"),block_editor_1=require("@wordpress/block-editor"),core_data_1=require("@wordpress/core-data"),sanitize_html_1=require("../../utils/sanitize-html"),empty_variations_image_1=require("./empty-variations-image"),new_attribute_modal_1=require("../../components/attribute-control/new-attribute-modal"),use_product_attributes_1=require("../../hooks/use-product-attributes"),utils_1=require("../../components/attribute-control/utils"),use_product_variations_helper_1=require("../../hooks/use-product-variations-helper"),utils_2=require("../../utils");function getFirstOptionFromEachAttribute(e){return e.map((e=>({id:e.id,name:e.name,option:e.options[0]})))}function Edit({attributes:e}){const{description:t}=e,{generateProductVariations:r}=(0,use_product_variations_helper_1.useProductVariationsHelper)(),[o,i]=(0,element_1.useState)(!1),[a,s]=(0,core_data_1.useEntityProp)("postType","product","attributes"),[,n]=(0,core_data_1.useEntityProp)("postType","product","default_attributes"),{attributes:c,handleChange:l}=(0,use_product_attributes_1.useProductAttributes)({allAttributes:a,isVariationAttributes:!0,productId:(0,core_data_1.useEntityId)("postType","product"),onChange(e){s(e),n(getFirstOptionFromEachAttribute(e)),r(e)}}),u=(0,utils_2.hasAttributesUsedForVariations)(a),_=(0,block_editor_1.useBlockProps)({className:(0,classnames_1.default)({"wp-block-woocommerce-product-variations-fields--has-attributes":u})}),d=(0,block_editor_1.useInnerBlocksProps)({className:"wp-block-woocommerce-product-variations-fields__content"},{templateLock:"all"}),m=()=>{i(!1)};return(0,element_1.createElement)("div",{..._},(0,element_1.createElement)("div",{className:"wp-block-woocommerce-product-variations-fields__heading"},(0,element_1.createElement)("div",{className:"wp-block-woocommerce-product-variations-fields__heading-image-container"},(0,element_1.createElement)(empty_variations_image_1.EmptyVariationsImage,null)),(0,element_1.createElement)("p",{className:"wp-block-woocommerce-product-variations-fields__heading-description",dangerouslySetInnerHTML:(0,sanitize_html_1.sanitizeHTML)(t)}),(0,element_1.createElement)("div",{className:"wp-block-woocommerce-product-variations-fields__heading-actions"},(0,element_1.createElement)(components_1.Button,{variant:"primary",onClick:()=>{i(!0)}},(0,i18n_1.__)("Add variation options","woocommerce")))),(0,element_1.createElement)("div",{...d}),o&&(0,element_1.createElement)(new_attribute_modal_1.NewAttributeModal,{title:(0,i18n_1.__)("Add variation options","woocommerce"),description:(0,element_1.createInterpolateElement)((0,i18n_1.__)("Select from existing <globalAttributeLink>global attributes</globalAttributeLink> or create options for buyers to choose on the product page. You can change the order later.","woocommerce"),{globalAttributeLink:(0,element_1.createElement)(components_2.Link,{href:"https://woocommerce.com/document/variable-product/#add-attributes-to-use-for-variations",type:"external",target:"_blank"})}),createNewAttributesAsGlobal:!0,notice:"",onCancel:()=>{m()},onAdd:e=>{l([...e.filter((e=>!c.find((t=>(0,utils_1.getAttributeId)(e)===(0,utils_1.getAttributeId)(t)))))]),m()},selectedAttributeIds:c.map((e=>e.id)),disabledAttributeIds:a.filter((e=>!e.variation)).map((e=>e.id))}))}exports.Edit=Edit;
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Edit=void 0;const classnames_1=__importDefault(require("classnames")),components_1=require("@wordpress/components"),core_data_1=require("@wordpress/core-data"),element_1=require("@wordpress/element"),i18n_1=require("@wordpress/i18n"),block_editor_1=require("@wordpress/block-editor"),sanitize_html_1=require("../../utils/sanitize-html"),empty_variations_image_1=require("./empty-variations-image");function hasAttributesUsedForVariations(e){return e.some((({variation:e})=>e))}function Edit({attributes:e}){const{description:t}=e,[r]=(0,core_data_1.useEntityProp)("postType","product","attributes"),o=hasAttributesUsedForVariations(r),i=(0,block_editor_1.useBlockProps)({className:(0,classnames_1.default)({"wp-block-woocommerce-product-variations-fields--has-attributes":o})}),a=(0,block_editor_1.useInnerBlocksProps)({className:"wp-block-woocommerce-product-variations-fields__content"},{templateLock:"all"});return(0,element_1.createElement)("div",{...i},(0,element_1.createElement)("div",{className:"wp-block-woocommerce-product-variations-fields__heading"},(0,element_1.createElement)("div",{className:"wp-block-woocommerce-product-variations-fields__heading-image-container"},(0,element_1.createElement)(empty_variations_image_1.EmptyVariationsImage,null)),(0,element_1.createElement)("p",{className:"wp-block-woocommerce-product-variations-fields__heading-description",dangerouslySetInnerHTML:(0,sanitize_html_1.sanitizeHTML)(t)}),(0,element_1.createElement)("div",{className:"wp-block-woocommerce-product-variations-fields__heading-actions"},(0,element_1.createElement)(components_1.Button,{variant:"primary","aria-disabled":"true"},(0,i18n_1.__)("Add variation options","woocommerce")))),(0,element_1.createElement)("div",{...a}))}exports.Edit=Edit;
|
||||
+1
-1
@@ -1 +1 @@
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=require("../../utils/init-block"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_block_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_blocks_1=require("../../utils/init-blocks"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_blocks_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;
|
||||
+1
-1
@@ -1 +1 @@
|
||||
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'wc-admin-layout', 'wc-components', 'wc-currency', 'wc-customer-effort-score', 'wc-experimental', 'wc-navigation', 'wc-number', 'wc-settings', 'wc-store-data', 'wc-tracks', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-url'), 'version' => 'd0676a24ff3923ce7fb2f0abc2ab7e61');
|
||||
<?php return array('dependencies' => array('lodash', 'moment', 'react', 'wc-admin-layout', 'wc-components', 'wc-currency', 'wc-customer-effort-score', 'wc-experimental', 'wc-navigation', 'wc-number', 'wc-settings', 'wc-store-data', 'wc-tracks', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-plugins', 'wp-preferences', 'wp-primitives', 'wp-url'), 'version' => '84d4ab5879cad44a33467baab3e04e57');
|
||||
File diff suppressed because one or more lines are too long
+28
-201
@@ -984,20 +984,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.woocommerce-product-notice {
|
||||
padding: 12px 16px;
|
||||
}
|
||||
.woocommerce-product-notice p {
|
||||
color: #1e1e1e;
|
||||
letter-spacing: 0.24px;
|
||||
}
|
||||
.woocommerce-product-notice button {
|
||||
letter-spacing: 0.24px;
|
||||
}
|
||||
.woocommerce-product-notice.info {
|
||||
background-color: #f0f6fc;
|
||||
}
|
||||
|
||||
.woocommerce-iframe-editor {
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
@@ -1050,16 +1036,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
border-bottom: 1px solid #ccc;
|
||||
border-left: 1px solid #ccc;
|
||||
box-sizing: border-box;
|
||||
margin-right: 0px;
|
||||
width: 100%;
|
||||
min-height: 47px;
|
||||
}
|
||||
.woocommerce-iframe-editor .block-editor-block-contextual-toolbar.is-fixed > .block-editor-block-toolbar.is-showing-movers:before {
|
||||
display: none;
|
||||
}
|
||||
.woocommerce-iframe-editor .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar__group-expand-fixed-toolbar,
|
||||
.woocommerce-iframe-editor .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar__group-collapse-fixed-toolbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.woocommerce-iframe-editor__header-toolbar {
|
||||
@@ -1094,7 +1070,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.woocommerce-iframe-editor__header-toolbar-right > .components-dropdown-menu {
|
||||
margin-left: 12px;
|
||||
@@ -1109,6 +1084,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
}
|
||||
.woocommerce-iframe-editor__header-toolbar-right button.woocommerce-modal-actions__done-button,
|
||||
.woocommerce-iframe-editor__header-toolbar-right button.woocommerce-modal-actions__cancel-button {
|
||||
margin-right: 8px;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
@@ -1308,7 +1284,24 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@keyframes slide-up {
|
||||
0% {
|
||||
bottom: -60px;
|
||||
}
|
||||
100% {
|
||||
bottom: 0;
|
||||
}
|
||||
}
|
||||
.woocommerce-product-mvp-ces-footer {
|
||||
position: fixed;
|
||||
animation: slide-up 0.5s forwards;
|
||||
width: 100%;
|
||||
border-top: 1px solid var(--gutenberg-gray-100, #f0f0f0);
|
||||
background: rgba(255, 255, 255, 0.5);
|
||||
-webkit-backdrop-filter: blur(6px);
|
||||
backdrop-filter: blur(6px);
|
||||
}
|
||||
.woocommerce-product-mvp-ces-footer__body {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
@@ -1317,7 +1310,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
gap: 16px;
|
||||
}
|
||||
@media (min-width: 783px) {
|
||||
.woocommerce-product-mvp-ces-footer {
|
||||
.woocommerce-product-mvp-ces-footer__body {
|
||||
padding: 16px 0;
|
||||
max-width: 650px;
|
||||
margin: 0 auto;
|
||||
@@ -1575,10 +1568,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
.woocommerce-attribute-field .woocommerce-add-attribute-list-item__add-button {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.woocommerce-attribute-field__notice.components-notice {
|
||||
margin: 0px;
|
||||
padding-left: 12px;
|
||||
}
|
||||
|
||||
.woocommerce-edit-attribute-modal {
|
||||
overflow: visible;
|
||||
@@ -1610,9 +1599,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
.woocommerce-edit-attribute-modal__body .woocommerce-edit-attribute-modal__option-container .components-checkbox-control .components-base-control__field {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.woocommerce-edit-attribute-modal__body .woocommerce-attribute-term-field {
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
@@ -1621,9 +1607,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
margin: 0.5em 0 1.5em 0;
|
||||
}
|
||||
|
||||
.woocommerce-new-attribute-modal {
|
||||
min-width: 50%;
|
||||
}
|
||||
.woocommerce-new-attribute-modal .components-notice.is-info {
|
||||
margin-right: 0;
|
||||
margin-left: 0;
|
||||
@@ -1729,17 +1712,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.woocommerce-remove-attribute-modal {
|
||||
max-width: 650px;
|
||||
}
|
||||
.woocommerce-remove-attribute-modal__buttons {
|
||||
margin-top: 36px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 8px;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.woocommerce-attribute-input-field__add-new {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -1749,14 +1721,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
margin-left: 12px;
|
||||
}
|
||||
|
||||
.woocommerce-experimental-select-control__popover-menu-container .woocommerce-experimental-select-control__menu-item[disabled] {
|
||||
pointer-events: none;
|
||||
color: #949494;
|
||||
}
|
||||
.woocommerce-experimental-select-control__popover-menu-container .disabled-element-wrapper {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.woocommerce-add-attribute-list-item,
|
||||
.woocommerce-attribute-list-item {
|
||||
min-height: 82px;
|
||||
@@ -1794,24 +1758,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
justify-content: end;
|
||||
gap: 8px;
|
||||
}
|
||||
.woocommerce-attribute-list-item__actions-tooltip.components-tooltip.components-popover .components-popover__content {
|
||||
width: 100%;
|
||||
max-width: 150px;
|
||||
white-space: normal;
|
||||
}
|
||||
.woocommerce-attribute-list-item__actions-icon-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
}
|
||||
.woocommerce-attribute-list-item__actions-icon-wrapper-icon {
|
||||
color: #949494;
|
||||
}
|
||||
.woocommerce-attribute-list-item__actions-icon-wrapper-help-icon {
|
||||
position: absolute;
|
||||
left: -2px;
|
||||
bottom: 0px;
|
||||
}
|
||||
|
||||
.woocommerce-attribute-term-field__loading-spinner {
|
||||
padding: 12px 0;
|
||||
@@ -1830,91 +1776,19 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.woocommerce-product-variations {
|
||||
.woocommerce-create-attribute-term-modal__buttons {
|
||||
margin-top: 36px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
}
|
||||
.woocommerce-product-variations > div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-grow: 1;
|
||||
}
|
||||
.woocommerce-product-variations__loading {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
}
|
||||
.woocommerce-product-variations__loading .components-spinner {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
.woocommerce-product-variations__status-dot {
|
||||
margin-left: 8px;
|
||||
}
|
||||
.woocommerce-product-variations__status-dot.green {
|
||||
color: #4ab866;
|
||||
}
|
||||
.woocommerce-product-variations__status-dot.yellow {
|
||||
color: #ffb900;
|
||||
}
|
||||
.woocommerce-product-variations__status-dot.red {
|
||||
color: #d94f4f;
|
||||
}
|
||||
.woocommerce-product-variations__price--fade, .woocommerce-product-variations__quantity--fade {
|
||||
opacity: 0.5;
|
||||
}
|
||||
.woocommerce-product-variations__actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
gap: 8px;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.woocommerce-product-variations__actions .components-button {
|
||||
position: relative;
|
||||
color: var(--wp-admin-theme-color);
|
||||
.woocommerce-create-attribute-term-modal .has-error .components-base-control__help {
|
||||
color: #d63638;
|
||||
}
|
||||
.woocommerce-product-variations__actions .components-button:disabled, .woocommerce-product-variations__actions .components-button[aria-disabled=true] {
|
||||
opacity: 1;
|
||||
}
|
||||
.woocommerce-product-variations__actions .components-button .components-spinner {
|
||||
margin: 4px;
|
||||
}
|
||||
.woocommerce-product-variations__actions .components-button svg {
|
||||
fill: none;
|
||||
}
|
||||
.woocommerce-product-variations__actions .components-button--visible {
|
||||
color: #757575;
|
||||
}
|
||||
.woocommerce-product-variations__actions .components-button--hidden {
|
||||
color: #d94f4f;
|
||||
}
|
||||
.woocommerce-product-variations .woocommerce-list-item {
|
||||
display: -ms-grid;
|
||||
display: grid;
|
||||
-ms-grid-columns: auto 25% 25% 88px;
|
||||
grid-template-columns: auto 25% 25% 88px;
|
||||
padding: 0;
|
||||
min-height: 72px;
|
||||
border: none;
|
||||
}
|
||||
.woocommerce-product-variations .woocommerce-sortable {
|
||||
margin: 0;
|
||||
flex: 1 0 auto;
|
||||
}
|
||||
.woocommerce-product-variations .woocommerce-sortable__item:not(:last-child) .woocommerce-list-item {
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
}
|
||||
.woocommerce-product-variations .woocommerce-sortable__handle {
|
||||
display: none;
|
||||
}
|
||||
.woocommerce-product-variations__footer {
|
||||
padding: 16px;
|
||||
.woocommerce-create-attribute-term-modal .components-base-control:not(:first-child) {
|
||||
margin-top: 16px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Field Blocks */
|
||||
@@ -1951,9 +1825,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
align-items: center;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.woocommerce-product-form__checkbox .components-checkbox-control__label {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.woocommerce-product-form__checkbox-wrapper {
|
||||
gap: 4px;
|
||||
@@ -2025,14 +1896,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
color: #d63638;
|
||||
}
|
||||
|
||||
.woocommerce-product-notice {
|
||||
margin-top: 64px;
|
||||
}
|
||||
.woocommerce-product-notice button {
|
||||
pointer-events: all;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.components-currency-control .components-input-control__prefix {
|
||||
color: #757575;
|
||||
}
|
||||
@@ -2193,39 +2056,3 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
.wp-block-woocommerce-product-variations-fields__content {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.wp-block-woocommerce-product-password-fields__field {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
@media (min-width: 782px) {
|
||||
.wp-block-woocommerce-product-variation-items-field {
|
||||
min-height: 420px;
|
||||
}
|
||||
}
|
||||
|
||||
.variation-items-product-tour .tour-kit-spotlight {
|
||||
border-radius: 8px;
|
||||
padding: 24px;
|
||||
}
|
||||
.variation-items-product-tour .tour-kit-frame__container,
|
||||
.variation-items-product-tour .woocommerce-tour-kit-step {
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.wp-block-woocommerce-product-variations-options-field .woocommerce-sortable {
|
||||
padding: 0;
|
||||
}
|
||||
.wp-block-woocommerce-product-variations-options-field .woocommerce-sortable__item:not(:last-child) .woocommerce-list-item {
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
}
|
||||
.wp-block-woocommerce-product-variations-options-field .woocommerce-list-item {
|
||||
background: none;
|
||||
border: none;
|
||||
padding-right: 0;
|
||||
-ms-grid-columns: 26% auto 90px;
|
||||
grid-template-columns: 26% auto 90px;
|
||||
}
|
||||
.wp-block-woocommerce-product-variations-options-field .woocommerce-sortable__handle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -984,20 +984,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.woocommerce-product-notice {
|
||||
padding: 12px 16px;
|
||||
}
|
||||
.woocommerce-product-notice p {
|
||||
color: #1e1e1e;
|
||||
letter-spacing: 0.24px;
|
||||
}
|
||||
.woocommerce-product-notice button {
|
||||
letter-spacing: 0.24px;
|
||||
}
|
||||
.woocommerce-product-notice.info {
|
||||
background-color: #f0f6fc;
|
||||
}
|
||||
|
||||
.woocommerce-iframe-editor {
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
@@ -1050,16 +1036,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
border-bottom: 1px solid #ccc;
|
||||
border-right: 1px solid #ccc;
|
||||
box-sizing: border-box;
|
||||
margin-left: 0px;
|
||||
width: 100%;
|
||||
min-height: 47px;
|
||||
}
|
||||
.woocommerce-iframe-editor .block-editor-block-contextual-toolbar.is-fixed > .block-editor-block-toolbar.is-showing-movers:before {
|
||||
display: none;
|
||||
}
|
||||
.woocommerce-iframe-editor .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar__group-expand-fixed-toolbar,
|
||||
.woocommerce-iframe-editor .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar__group-collapse-fixed-toolbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.woocommerce-iframe-editor__header-toolbar {
|
||||
@@ -1094,7 +1070,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.woocommerce-iframe-editor__header-toolbar-right > .components-dropdown-menu {
|
||||
margin-right: 12px;
|
||||
@@ -1109,6 +1084,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
}
|
||||
.woocommerce-iframe-editor__header-toolbar-right button.woocommerce-modal-actions__done-button,
|
||||
.woocommerce-iframe-editor__header-toolbar-right button.woocommerce-modal-actions__cancel-button {
|
||||
margin-left: 8px;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
@@ -1308,7 +1284,24 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@keyframes slide-up {
|
||||
0% {
|
||||
bottom: -60px;
|
||||
}
|
||||
100% {
|
||||
bottom: 0;
|
||||
}
|
||||
}
|
||||
.woocommerce-product-mvp-ces-footer {
|
||||
position: fixed;
|
||||
animation: slide-up 0.5s forwards;
|
||||
width: 100%;
|
||||
border-top: 1px solid var(--gutenberg-gray-100, #f0f0f0);
|
||||
background: rgba(255, 255, 255, 0.5);
|
||||
-webkit-backdrop-filter: blur(6px);
|
||||
backdrop-filter: blur(6px);
|
||||
}
|
||||
.woocommerce-product-mvp-ces-footer__body {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: center;
|
||||
@@ -1317,7 +1310,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
gap: 16px;
|
||||
}
|
||||
@media (min-width: 783px) {
|
||||
.woocommerce-product-mvp-ces-footer {
|
||||
.woocommerce-product-mvp-ces-footer__body {
|
||||
padding: 16px 0;
|
||||
max-width: 650px;
|
||||
margin: 0 auto;
|
||||
@@ -1575,10 +1568,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
.woocommerce-attribute-field .woocommerce-add-attribute-list-item__add-button {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.woocommerce-attribute-field__notice.components-notice {
|
||||
margin: 0px;
|
||||
padding-right: 12px;
|
||||
}
|
||||
|
||||
.woocommerce-edit-attribute-modal {
|
||||
overflow: visible;
|
||||
@@ -1610,9 +1599,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
.woocommerce-edit-attribute-modal__body .woocommerce-edit-attribute-modal__option-container .components-checkbox-control .components-base-control__field {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.woocommerce-edit-attribute-modal__body .woocommerce-attribute-term-field {
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
@@ -1621,9 +1607,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
margin: 0.5em 0 1.5em 0;
|
||||
}
|
||||
|
||||
.woocommerce-new-attribute-modal {
|
||||
min-width: 50%;
|
||||
}
|
||||
.woocommerce-new-attribute-modal .components-notice.is-info {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
@@ -1729,17 +1712,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.woocommerce-remove-attribute-modal {
|
||||
max-width: 650px;
|
||||
}
|
||||
.woocommerce-remove-attribute-modal__buttons {
|
||||
margin-top: 36px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 8px;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.woocommerce-attribute-input-field__add-new {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -1749,14 +1721,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
.woocommerce-experimental-select-control__popover-menu-container .woocommerce-experimental-select-control__menu-item[disabled] {
|
||||
pointer-events: none;
|
||||
color: #949494;
|
||||
}
|
||||
.woocommerce-experimental-select-control__popover-menu-container .disabled-element-wrapper {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.woocommerce-add-attribute-list-item,
|
||||
.woocommerce-attribute-list-item {
|
||||
min-height: 82px;
|
||||
@@ -1794,24 +1758,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
justify-content: end;
|
||||
gap: 8px;
|
||||
}
|
||||
.woocommerce-attribute-list-item__actions-tooltip.components-tooltip.components-popover .components-popover__content {
|
||||
width: 100%;
|
||||
max-width: 150px;
|
||||
white-space: normal;
|
||||
}
|
||||
.woocommerce-attribute-list-item__actions-icon-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
}
|
||||
.woocommerce-attribute-list-item__actions-icon-wrapper-icon {
|
||||
color: #949494;
|
||||
}
|
||||
.woocommerce-attribute-list-item__actions-icon-wrapper-help-icon {
|
||||
position: absolute;
|
||||
right: -2px;
|
||||
bottom: 0px;
|
||||
}
|
||||
|
||||
.woocommerce-attribute-term-field__loading-spinner {
|
||||
padding: 12px 0;
|
||||
@@ -1830,91 +1776,19 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.woocommerce-product-variations {
|
||||
.woocommerce-create-attribute-term-modal__buttons {
|
||||
margin-top: 36px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
}
|
||||
.woocommerce-product-variations > div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-grow: 1;
|
||||
}
|
||||
.woocommerce-product-variations__loading {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
}
|
||||
.woocommerce-product-variations__loading .components-spinner {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
.woocommerce-product-variations__status-dot {
|
||||
margin-right: 8px;
|
||||
}
|
||||
.woocommerce-product-variations__status-dot.green {
|
||||
color: #4ab866;
|
||||
}
|
||||
.woocommerce-product-variations__status-dot.yellow {
|
||||
color: #ffb900;
|
||||
}
|
||||
.woocommerce-product-variations__status-dot.red {
|
||||
color: #d94f4f;
|
||||
}
|
||||
.woocommerce-product-variations__price--fade, .woocommerce-product-variations__quantity--fade {
|
||||
opacity: 0.5;
|
||||
}
|
||||
.woocommerce-product-variations__actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
gap: 8px;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.woocommerce-product-variations__actions .components-button {
|
||||
position: relative;
|
||||
color: var(--wp-admin-theme-color);
|
||||
.woocommerce-create-attribute-term-modal .has-error .components-base-control__help {
|
||||
color: #d63638;
|
||||
}
|
||||
.woocommerce-product-variations__actions .components-button:disabled, .woocommerce-product-variations__actions .components-button[aria-disabled=true] {
|
||||
opacity: 1;
|
||||
}
|
||||
.woocommerce-product-variations__actions .components-button .components-spinner {
|
||||
margin: 4px;
|
||||
}
|
||||
.woocommerce-product-variations__actions .components-button svg {
|
||||
fill: none;
|
||||
}
|
||||
.woocommerce-product-variations__actions .components-button--visible {
|
||||
color: #757575;
|
||||
}
|
||||
.woocommerce-product-variations__actions .components-button--hidden {
|
||||
color: #d94f4f;
|
||||
}
|
||||
.woocommerce-product-variations .woocommerce-list-item {
|
||||
display: -ms-grid;
|
||||
display: grid;
|
||||
-ms-grid-columns: auto 25% 25% 88px;
|
||||
grid-template-columns: auto 25% 25% 88px;
|
||||
padding: 0;
|
||||
min-height: 72px;
|
||||
border: none;
|
||||
}
|
||||
.woocommerce-product-variations .woocommerce-sortable {
|
||||
margin: 0;
|
||||
flex: 1 0 auto;
|
||||
}
|
||||
.woocommerce-product-variations .woocommerce-sortable__item:not(:last-child) .woocommerce-list-item {
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
}
|
||||
.woocommerce-product-variations .woocommerce-sortable__handle {
|
||||
display: none;
|
||||
}
|
||||
.woocommerce-product-variations__footer {
|
||||
padding: 16px;
|
||||
.woocommerce-create-attribute-term-modal .components-base-control:not(:first-child) {
|
||||
margin-top: 16px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Field Blocks */
|
||||
@@ -1951,9 +1825,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
align-items: center;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.woocommerce-product-form__checkbox .components-checkbox-control__label {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.woocommerce-product-form__checkbox-wrapper {
|
||||
gap: 4px;
|
||||
@@ -2025,14 +1896,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
color: #d63638;
|
||||
}
|
||||
|
||||
.woocommerce-product-notice {
|
||||
margin-top: 64px;
|
||||
}
|
||||
.woocommerce-product-notice button {
|
||||
pointer-events: all;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.components-currency-control .components-input-control__prefix {
|
||||
color: #757575;
|
||||
}
|
||||
@@ -2194,39 +2057,3 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
||||
.wp-block-woocommerce-product-variations-fields__content {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.wp-block-woocommerce-product-password-fields__field {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
@media (min-width: 782px) {
|
||||
.wp-block-woocommerce-product-variation-items-field {
|
||||
min-height: 420px;
|
||||
}
|
||||
}
|
||||
|
||||
.variation-items-product-tour .tour-kit-spotlight {
|
||||
border-radius: 8px;
|
||||
padding: 24px;
|
||||
}
|
||||
.variation-items-product-tour .tour-kit-frame__container,
|
||||
.variation-items-product-tour .woocommerce-tour-kit-step {
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.wp-block-woocommerce-product-variations-options-field .woocommerce-sortable {
|
||||
padding: 0;
|
||||
}
|
||||
.wp-block-woocommerce-product-variations-options-field .woocommerce-sortable__item:not(:last-child) .woocommerce-list-item {
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
}
|
||||
.wp-block-woocommerce-product-variations-options-field .woocommerce-list-item {
|
||||
background: none;
|
||||
border: none;
|
||||
padding-left: 0;
|
||||
-ms-grid-columns: 26% auto 90px;
|
||||
grid-template-columns: 26% auto 90px;
|
||||
}
|
||||
.wp-block-woocommerce-product-variations-options-field .woocommerce-sortable__handle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user