@wordpress/interface 9.16.1-next.f56bd8138.0 → 9.17.1-next.47f435fc9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/build/components/action-item/index.js +68 -66
- package/build/components/action-item/index.js.map +7 -1
- package/build/components/complementary-area/index.js +215 -194
- package/build/components/complementary-area/index.js.map +7 -1
- package/build/components/complementary-area-header/index.js +53 -33
- package/build/components/complementary-area-header/index.js.map +7 -1
- package/build/components/complementary-area-more-menu-item/index.js +60 -39
- package/build/components/complementary-area-more-menu-item/index.js.map +7 -1
- package/build/components/complementary-area-toggle/index.js +61 -50
- package/build/components/complementary-area-toggle/index.js.map +7 -1
- package/build/components/fullscreen-mode/index.js +33 -27
- package/build/components/fullscreen-mode/index.js.map +7 -1
- package/build/components/index.js +52 -55
- package/build/components/index.js.map +7 -1
- package/build/components/interface-skeleton/index.js +156 -132
- package/build/components/interface-skeleton/index.js.map +7 -1
- package/build/components/pinned-items/index.js +48 -39
- package/build/components/pinned-items/index.js.map +7 -1
- package/build/index.js +27 -24
- package/build/index.js.map +7 -1
- package/build/store/actions.js +94 -165
- package/build/store/actions.js.map +7 -1
- package/build/store/constants.js +27 -12
- package/build/store/constants.js.map +7 -1
- package/build/store/deprecated.js +55 -29
- package/build/store/deprecated.js.map +7 -1
- package/build/store/index.js +44 -32
- package/build/store/index.js.map +7 -1
- package/build/store/reducer.js +49 -51
- package/build/store/reducer.js.map +7 -1
- package/build/store/selectors.js +96 -93
- package/build/store/selectors.js.map +7 -1
- package/build-module/components/action-item/index.js +49 -59
- package/build-module/components/action-item/index.js.map +7 -1
- package/build-module/components/complementary-area/index.js +185 -174
- package/build-module/components/complementary-area/index.js.map +7 -1
- package/build-module/components/complementary-area-header/index.js +25 -26
- package/build-module/components/complementary-area-header/index.js.map +7 -1
- package/build-module/components/complementary-area-more-menu-item/index.js +33 -33
- package/build-module/components/complementary-area-more-menu-item/index.js.map +7 -1
- package/build-module/components/complementary-area-toggle/index.js +41 -44
- package/build-module/components/complementary-area-toggle/index.js.map +7 -1
- package/build-module/components/fullscreen-mode/index.js +13 -19
- package/build-module/components/fullscreen-mode/index.js.map +7 -1
- package/build-module/components/index.js +15 -8
- package/build-module/components/index.js.map +7 -1
- package/build-module/components/interface-skeleton/index.js +132 -122
- package/build-module/components/interface-skeleton/index.js.map +7 -1
- package/build-module/components/pinned-items/index.js +20 -32
- package/build-module/components/pinned-items/index.js.map +7 -1
- package/build-module/index.js +6 -3
- package/build-module/index.js.map +7 -1
- package/build-module/store/actions.js +47 -138
- package/build-module/store/actions.js.map +7 -1
- package/build-module/store/constants.js +5 -7
- package/build-module/store/constants.js.map +7 -1
- package/build-module/store/deprecated.js +21 -20
- package/build-module/store/deprecated.js.map +7 -1
- package/build-module/store/index.js +10 -22
- package/build-module/store/index.js.map +7 -1
- package/build-module/store/reducer.js +28 -45
- package/build-module/store/reducer.js.map +7 -1
- package/build-module/store/selectors.js +64 -87
- package/build-module/store/selectors.js.map +7 -1
- package/build-style/style-rtl.css +87 -85
- package/build-style/style.css +87 -85
- package/package.json +21 -15
- package/src/components/complementary-area/style.scss +5 -0
- package/src/components/complementary-area-header/style.scss +3 -0
- package/src/components/fullscreen-mode/style.scss +3 -0
- package/src/components/index.js +0 -1
- package/src/components/interface-skeleton/index.js +1 -5
- package/src/components/interface-skeleton/style.scss +6 -0
- package/src/components/pinned-items/style.scss +3 -0
- package/src/style.scss +6 -5
- package/build/components/index.native.js +0 -21
- package/build/components/index.native.js.map +0 -1
- package/build/components/navigable-region/index.js +0 -38
- package/build/components/navigable-region/index.js.map +0 -1
- package/build-module/components/index.native.js +0 -3
- package/build-module/components/index.native.js.map +0 -1
- package/build-module/components/navigable-region/index.js +0 -30
- package/build-module/components/navigable-region/index.js.map +0 -1
- package/src/components/navigable-region/README.md +0 -36
- package/src/components/navigable-region/index.js +0 -29
|
@@ -1,59 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*/
|
|
4
|
-
import { combineReducers } from '@wordpress/data';
|
|
5
|
-
export function complementaryAreas(state = {}, action) {
|
|
1
|
+
import { combineReducers } from "@wordpress/data";
|
|
2
|
+
function complementaryAreas(state = {}, action) {
|
|
6
3
|
switch (action.type) {
|
|
7
|
-
case
|
|
8
|
-
{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
area
|
|
12
|
-
} = action;
|
|
13
|
-
|
|
14
|
-
// If there's already an area, don't overwrite it.
|
|
15
|
-
if (state[scope]) {
|
|
16
|
-
return state;
|
|
17
|
-
}
|
|
18
|
-
return {
|
|
19
|
-
...state,
|
|
20
|
-
[scope]: area
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
case 'ENABLE_COMPLEMENTARY_AREA':
|
|
24
|
-
{
|
|
25
|
-
const {
|
|
26
|
-
scope,
|
|
27
|
-
area
|
|
28
|
-
} = action;
|
|
29
|
-
return {
|
|
30
|
-
...state,
|
|
31
|
-
[scope]: area
|
|
32
|
-
};
|
|
4
|
+
case "SET_DEFAULT_COMPLEMENTARY_AREA": {
|
|
5
|
+
const { scope, area } = action;
|
|
6
|
+
if (state[scope]) {
|
|
7
|
+
return state;
|
|
33
8
|
}
|
|
9
|
+
return {
|
|
10
|
+
...state,
|
|
11
|
+
[scope]: area
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
case "ENABLE_COMPLEMENTARY_AREA": {
|
|
15
|
+
const { scope, area } = action;
|
|
16
|
+
return {
|
|
17
|
+
...state,
|
|
18
|
+
[scope]: area
|
|
19
|
+
};
|
|
20
|
+
}
|
|
34
21
|
}
|
|
35
22
|
return state;
|
|
36
23
|
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Reducer for storing the name of the open modal, or null if no modal is open.
|
|
40
|
-
*
|
|
41
|
-
* @param {Object} state Previous state.
|
|
42
|
-
* @param {Object} action Action object containing the `name` of the modal
|
|
43
|
-
*
|
|
44
|
-
* @return {Object} Updated state
|
|
45
|
-
*/
|
|
46
|
-
export function activeModal(state = null, action) {
|
|
24
|
+
function activeModal(state = null, action) {
|
|
47
25
|
switch (action.type) {
|
|
48
|
-
case
|
|
26
|
+
case "OPEN_MODAL":
|
|
49
27
|
return action.name;
|
|
50
|
-
case
|
|
28
|
+
case "CLOSE_MODAL":
|
|
51
29
|
return null;
|
|
52
30
|
}
|
|
53
31
|
return state;
|
|
54
32
|
}
|
|
55
|
-
|
|
33
|
+
var reducer_default = combineReducers({
|
|
56
34
|
complementaryAreas,
|
|
57
35
|
activeModal
|
|
58
36
|
});
|
|
59
|
-
|
|
37
|
+
export {
|
|
38
|
+
activeModal,
|
|
39
|
+
complementaryAreas,
|
|
40
|
+
reducer_default as default
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=reducer.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/store/reducer.js"],
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { combineReducers } from '@wordpress/data';\n\nexport function complementaryAreas( state = {}, action ) {\n\tswitch ( action.type ) {\n\t\tcase 'SET_DEFAULT_COMPLEMENTARY_AREA': {\n\t\t\tconst { scope, area } = action;\n\n\t\t\t// If there's already an area, don't overwrite it.\n\t\t\tif ( state[ scope ] ) {\n\t\t\t\treturn state;\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ scope ]: area,\n\t\t\t};\n\t\t}\n\t\tcase 'ENABLE_COMPLEMENTARY_AREA': {\n\t\t\tconst { scope, area } = action;\n\t\t\treturn {\n\t\t\t\t...state,\n\t\t\t\t[ scope ]: area,\n\t\t\t};\n\t\t}\n\t}\n\n\treturn state;\n}\n\n/**\n * Reducer for storing the name of the open modal, or null if no modal is open.\n *\n * @param {Object} state Previous state.\n * @param {Object} action Action object containing the `name` of the modal\n *\n * @return {Object} Updated state\n */\nexport function activeModal( state = null, action ) {\n\tswitch ( action.type ) {\n\t\tcase 'OPEN_MODAL':\n\t\t\treturn action.name;\n\t\tcase 'CLOSE_MODAL':\n\t\t\treturn null;\n\t}\n\n\treturn state;\n}\n\nexport default combineReducers( {\n\tcomplementaryAreas,\n\tactiveModal,\n} );\n"],
|
|
5
|
+
"mappings": "AAGA,SAAS,uBAAuB;AAEzB,SAAS,mBAAoB,QAAQ,CAAC,GAAG,QAAS;AACxD,UAAS,OAAO,MAAO;AAAA,IACtB,KAAK,kCAAkC;AACtC,YAAM,EAAE,OAAO,KAAK,IAAI;AAGxB,UAAK,MAAO,KAAM,GAAI;AACrB,eAAO;AAAA,MACR;AAEA,aAAO;AAAA,QACN,GAAG;AAAA,QACH,CAAE,KAAM,GAAG;AAAA,MACZ;AAAA,IACD;AAAA,IACA,KAAK,6BAA6B;AACjC,YAAM,EAAE,OAAO,KAAK,IAAI;AACxB,aAAO;AAAA,QACN,GAAG;AAAA,QACH,CAAE,KAAM,GAAG;AAAA,MACZ;AAAA,IACD;AAAA,EACD;AAEA,SAAO;AACR;AAUO,SAAS,YAAa,QAAQ,MAAM,QAAS;AACnD,UAAS,OAAO,MAAO;AAAA,IACtB,KAAK;AACJ,aAAO,OAAO;AAAA,IACf,KAAK;AACJ,aAAO;AAAA,EACT;AAEA,SAAO;AACR;AAEA,IAAO,kBAAQ,gBAAiB;AAAA,EAC/B;AAAA,EACA;AACD,CAAE;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,91 +1,68 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
scope = normalizeComplementaryAreaScope(scope);
|
|
23
|
-
const isComplementaryAreaVisible = select(preferencesStore).get(scope, 'isComplementaryAreaVisible');
|
|
24
|
-
|
|
25
|
-
// Return `undefined` to indicate that the user has never toggled
|
|
26
|
-
// visibility, this is the vanilla default. Other code relies on this
|
|
27
|
-
// nuance in the return value.
|
|
28
|
-
if (isComplementaryAreaVisible === undefined) {
|
|
29
|
-
return undefined;
|
|
1
|
+
import { createRegistrySelector } from "@wordpress/data";
|
|
2
|
+
import deprecated from "@wordpress/deprecated";
|
|
3
|
+
import { store as preferencesStore } from "@wordpress/preferences";
|
|
4
|
+
import {
|
|
5
|
+
normalizeComplementaryAreaScope,
|
|
6
|
+
normalizeComplementaryAreaName
|
|
7
|
+
} from "./deprecated";
|
|
8
|
+
const getActiveComplementaryArea = createRegistrySelector(
|
|
9
|
+
(select) => (state, scope) => {
|
|
10
|
+
scope = normalizeComplementaryAreaScope(scope);
|
|
11
|
+
const isComplementaryAreaVisible = select(preferencesStore).get(
|
|
12
|
+
scope,
|
|
13
|
+
"isComplementaryAreaVisible"
|
|
14
|
+
);
|
|
15
|
+
if (isComplementaryAreaVisible === void 0) {
|
|
16
|
+
return void 0;
|
|
17
|
+
}
|
|
18
|
+
if (isComplementaryAreaVisible === false) {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
return state?.complementaryAreas?.[scope];
|
|
30
22
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
);
|
|
24
|
+
const isComplementaryAreaLoading = createRegistrySelector(
|
|
25
|
+
(select) => (state, scope) => {
|
|
26
|
+
scope = normalizeComplementaryAreaScope(scope);
|
|
27
|
+
const isVisible = select(preferencesStore).get(
|
|
28
|
+
scope,
|
|
29
|
+
"isComplementaryAreaVisible"
|
|
30
|
+
);
|
|
31
|
+
const identifier = state?.complementaryAreas?.[scope];
|
|
32
|
+
return isVisible && identifier === void 0;
|
|
35
33
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Returns a boolean indicating whether a feature is active for a particular
|
|
64
|
-
* scope.
|
|
65
|
-
*
|
|
66
|
-
* @param {Object} state The store state.
|
|
67
|
-
* @param {string} scope The scope of the feature (e.g. core/edit-post).
|
|
68
|
-
* @param {string} featureName The name of the feature.
|
|
69
|
-
*
|
|
70
|
-
* @return {boolean} Is the feature enabled?
|
|
71
|
-
*/
|
|
72
|
-
export const isFeatureActive = createRegistrySelector(select => (state, scope, featureName) => {
|
|
73
|
-
deprecated(`select( 'core/interface' ).isFeatureActive( scope, featureName )`, {
|
|
74
|
-
since: '6.0',
|
|
75
|
-
alternative: `select( 'core/preferences' ).get( scope, featureName )`
|
|
76
|
-
});
|
|
77
|
-
return !!select(preferencesStore).get(scope, featureName);
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Returns true if a modal is active, or false otherwise.
|
|
82
|
-
*
|
|
83
|
-
* @param {Object} state Global application state.
|
|
84
|
-
* @param {string} modalName A string that uniquely identifies the modal.
|
|
85
|
-
*
|
|
86
|
-
* @return {boolean} Whether the modal is active.
|
|
87
|
-
*/
|
|
88
|
-
export function isModalActive(state, modalName) {
|
|
34
|
+
);
|
|
35
|
+
const isItemPinned = createRegistrySelector(
|
|
36
|
+
(select) => (state, scope, item) => {
|
|
37
|
+
scope = normalizeComplementaryAreaScope(scope);
|
|
38
|
+
item = normalizeComplementaryAreaName(scope, item);
|
|
39
|
+
const pinnedItems = select(preferencesStore).get(
|
|
40
|
+
scope,
|
|
41
|
+
"pinnedItems"
|
|
42
|
+
);
|
|
43
|
+
return pinnedItems?.[item] ?? true;
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
const isFeatureActive = createRegistrySelector(
|
|
47
|
+
(select) => (state, scope, featureName) => {
|
|
48
|
+
deprecated(
|
|
49
|
+
`select( 'core/interface' ).isFeatureActive( scope, featureName )`,
|
|
50
|
+
{
|
|
51
|
+
since: "6.0",
|
|
52
|
+
alternative: `select( 'core/preferences' ).get( scope, featureName )`
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
return !!select(preferencesStore).get(scope, featureName);
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
function isModalActive(state, modalName) {
|
|
89
59
|
return state.activeModal === modalName;
|
|
90
60
|
}
|
|
91
|
-
|
|
61
|
+
export {
|
|
62
|
+
getActiveComplementaryArea,
|
|
63
|
+
isComplementaryAreaLoading,
|
|
64
|
+
isFeatureActive,
|
|
65
|
+
isItemPinned,
|
|
66
|
+
isModalActive
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=selectors.js.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/store/selectors.js"],
|
|
4
|
+
"sourcesContent": ["/**\n * WordPress dependencies\n */\nimport { createRegistrySelector } from '@wordpress/data';\nimport deprecated from '@wordpress/deprecated';\nimport { store as preferencesStore } from '@wordpress/preferences';\n\n/**\n * Internal dependencies\n */\nimport {\n\tnormalizeComplementaryAreaScope,\n\tnormalizeComplementaryAreaName,\n} from './deprecated';\n\n/**\n * Returns the complementary area that is active in a given scope.\n *\n * @param {Object} state Global application state.\n * @param {string} scope Item scope.\n *\n * @return {string | null | undefined} The complementary area that is active in the given scope.\n */\nexport const getActiveComplementaryArea = createRegistrySelector(\n\t( select ) => ( state, scope ) => {\n\t\tscope = normalizeComplementaryAreaScope( scope );\n\t\tconst isComplementaryAreaVisible = select( preferencesStore ).get(\n\t\t\tscope,\n\t\t\t'isComplementaryAreaVisible'\n\t\t);\n\n\t\t// Return `undefined` to indicate that the user has never toggled\n\t\t// visibility, this is the vanilla default. Other code relies on this\n\t\t// nuance in the return value.\n\t\tif ( isComplementaryAreaVisible === undefined ) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\t// Return `null` to indicate the user hid the complementary area.\n\t\tif ( isComplementaryAreaVisible === false ) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn state?.complementaryAreas?.[ scope ];\n\t}\n);\n\nexport const isComplementaryAreaLoading = createRegistrySelector(\n\t( select ) => ( state, scope ) => {\n\t\tscope = normalizeComplementaryAreaScope( scope );\n\t\tconst isVisible = select( preferencesStore ).get(\n\t\t\tscope,\n\t\t\t'isComplementaryAreaVisible'\n\t\t);\n\t\tconst identifier = state?.complementaryAreas?.[ scope ];\n\n\t\treturn isVisible && identifier === undefined;\n\t}\n);\n\n/**\n * Returns a boolean indicating if an item is pinned or not.\n *\n * @param {Object} state Global application state.\n * @param {string} scope Scope.\n * @param {string} item Item to check.\n *\n * @return {boolean} True if the item is pinned and false otherwise.\n */\nexport const isItemPinned = createRegistrySelector(\n\t( select ) => ( state, scope, item ) => {\n\t\tscope = normalizeComplementaryAreaScope( scope );\n\t\titem = normalizeComplementaryAreaName( scope, item );\n\t\tconst pinnedItems = select( preferencesStore ).get(\n\t\t\tscope,\n\t\t\t'pinnedItems'\n\t\t);\n\t\treturn pinnedItems?.[ item ] ?? true;\n\t}\n);\n\n/**\n * Returns a boolean indicating whether a feature is active for a particular\n * scope.\n *\n * @param {Object} state The store state.\n * @param {string} scope The scope of the feature (e.g. core/edit-post).\n * @param {string} featureName The name of the feature.\n *\n * @return {boolean} Is the feature enabled?\n */\nexport const isFeatureActive = createRegistrySelector(\n\t( select ) => ( state, scope, featureName ) => {\n\t\tdeprecated(\n\t\t\t`select( 'core/interface' ).isFeatureActive( scope, featureName )`,\n\t\t\t{\n\t\t\t\tsince: '6.0',\n\t\t\t\talternative: `select( 'core/preferences' ).get( scope, featureName )`,\n\t\t\t}\n\t\t);\n\n\t\treturn !! select( preferencesStore ).get( scope, featureName );\n\t}\n);\n\n/**\n * Returns true if a modal is active, or false otherwise.\n *\n * @param {Object} state Global application state.\n * @param {string} modalName A string that uniquely identifies the modal.\n *\n * @return {boolean} Whether the modal is active.\n */\nexport function isModalActive( state, modalName ) {\n\treturn state.activeModal === modalName;\n}\n"],
|
|
5
|
+
"mappings": "AAGA,SAAS,8BAA8B;AACvC,OAAO,gBAAgB;AACvB,SAAS,SAAS,wBAAwB;AAK1C;AAAA,EACC;AAAA,EACA;AAAA,OACM;AAUA,MAAM,6BAA6B;AAAA,EACzC,CAAE,WAAY,CAAE,OAAO,UAAW;AACjC,YAAQ,gCAAiC,KAAM;AAC/C,UAAM,6BAA6B,OAAQ,gBAAiB,EAAE;AAAA,MAC7D;AAAA,MACA;AAAA,IACD;AAKA,QAAK,+BAA+B,QAAY;AAC/C,aAAO;AAAA,IACR;AAGA,QAAK,+BAA+B,OAAQ;AAC3C,aAAO;AAAA,IACR;AAEA,WAAO,OAAO,qBAAsB,KAAM;AAAA,EAC3C;AACD;AAEO,MAAM,6BAA6B;AAAA,EACzC,CAAE,WAAY,CAAE,OAAO,UAAW;AACjC,YAAQ,gCAAiC,KAAM;AAC/C,UAAM,YAAY,OAAQ,gBAAiB,EAAE;AAAA,MAC5C;AAAA,MACA;AAAA,IACD;AACA,UAAM,aAAa,OAAO,qBAAsB,KAAM;AAEtD,WAAO,aAAa,eAAe;AAAA,EACpC;AACD;AAWO,MAAM,eAAe;AAAA,EAC3B,CAAE,WAAY,CAAE,OAAO,OAAO,SAAU;AACvC,YAAQ,gCAAiC,KAAM;AAC/C,WAAO,+BAAgC,OAAO,IAAK;AACnD,UAAM,cAAc,OAAQ,gBAAiB,EAAE;AAAA,MAC9C;AAAA,MACA;AAAA,IACD;AACA,WAAO,cAAe,IAAK,KAAK;AAAA,EACjC;AACD;AAYO,MAAM,kBAAkB;AAAA,EAC9B,CAAE,WAAY,CAAE,OAAO,OAAO,gBAAiB;AAC9C;AAAA,MACC;AAAA,MACA;AAAA,QACC,OAAO;AAAA,QACP,aAAa;AAAA,MACd;AAAA,IACD;AAEA,WAAO,CAAC,CAAE,OAAQ,gBAAiB,EAAE,IAAK,OAAO,WAAY;AAAA,EAC9D;AACD;AAUO,SAAS,cAAe,OAAO,WAAY;AACjD,SAAO,MAAM,gBAAgB;AAC9B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Colors
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Breakpoints & Media Queries
|
|
6
|
-
*/
|
|
7
1
|
/**
|
|
8
2
|
* Colors
|
|
9
3
|
*/
|
|
@@ -49,51 +43,9 @@
|
|
|
49
43
|
* React Native specific.
|
|
50
44
|
* These variables do not appear to be used anywhere else.
|
|
51
45
|
*/
|
|
52
|
-
/**
|
|
53
|
-
* Colors
|
|
54
|
-
*/
|
|
55
|
-
/**
|
|
56
|
-
* SCSS Variables.
|
|
57
|
-
*
|
|
58
|
-
* Please use variables from this sheet to ensure consistency across the UI.
|
|
59
|
-
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
60
|
-
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
61
|
-
*/
|
|
62
|
-
/**
|
|
63
|
-
* Fonts & basic variables.
|
|
64
|
-
*/
|
|
65
46
|
/**
|
|
66
47
|
* Typography
|
|
67
48
|
*/
|
|
68
|
-
/**
|
|
69
|
-
* Grid System.
|
|
70
|
-
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
|
|
71
|
-
*/
|
|
72
|
-
/**
|
|
73
|
-
* Radius scale.
|
|
74
|
-
*/
|
|
75
|
-
/**
|
|
76
|
-
* Elevation scale.
|
|
77
|
-
*/
|
|
78
|
-
/**
|
|
79
|
-
* Dimensions.
|
|
80
|
-
*/
|
|
81
|
-
/**
|
|
82
|
-
* Mobile specific styles
|
|
83
|
-
*/
|
|
84
|
-
/**
|
|
85
|
-
* Editor styles.
|
|
86
|
-
*/
|
|
87
|
-
/**
|
|
88
|
-
* Block & Editor UI.
|
|
89
|
-
*/
|
|
90
|
-
/**
|
|
91
|
-
* Block paddings.
|
|
92
|
-
*/
|
|
93
|
-
/**
|
|
94
|
-
* React Native specific.
|
|
95
|
-
* These variables do not appear to be used anywhere else.
|
|
96
|
-
*/
|
|
97
49
|
/**
|
|
98
50
|
* Breakpoints & Media Queries
|
|
99
51
|
*/
|
|
@@ -109,9 +61,6 @@
|
|
|
109
61
|
* Creates a fading overlay to signify that the content is longer
|
|
110
62
|
* than the space allows.
|
|
111
63
|
*/
|
|
112
|
-
/**
|
|
113
|
-
* Typography
|
|
114
|
-
*/
|
|
115
64
|
/**
|
|
116
65
|
* Breakpoint mixins
|
|
117
66
|
*/
|
|
@@ -134,6 +83,75 @@
|
|
|
134
83
|
/**
|
|
135
84
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
136
85
|
*/
|
|
86
|
+
.admin-ui-page {
|
|
87
|
+
display: flex;
|
|
88
|
+
height: 100%;
|
|
89
|
+
background-color: #fff;
|
|
90
|
+
color: #2f2f2f;
|
|
91
|
+
position: relative;
|
|
92
|
+
z-index: 1;
|
|
93
|
+
flex-flow: column;
|
|
94
|
+
container: admin-ui-page/inline-size;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@media not (prefers-reduced-motion) {
|
|
98
|
+
.admin-ui-page {
|
|
99
|
+
transition: width ease-out 0.2s;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
.admin-ui-page__header {
|
|
103
|
+
padding: 16px 48px;
|
|
104
|
+
border-bottom: 1px solid #f0f0f0;
|
|
105
|
+
background: #fff;
|
|
106
|
+
position: sticky;
|
|
107
|
+
top: 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@container (max-width: 430px) {
|
|
111
|
+
.admin-ui-page__header {
|
|
112
|
+
padding: 16px 24px;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
.admin-ui-page__header-subtitle {
|
|
116
|
+
padding-block-end: 8px;
|
|
117
|
+
color: #757575;
|
|
118
|
+
font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
119
|
+
font-weight: 400;
|
|
120
|
+
font-size: 13px;
|
|
121
|
+
line-height: 20px;
|
|
122
|
+
margin: 0;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.admin-ui-page__content {
|
|
126
|
+
flex-grow: 1;
|
|
127
|
+
overflow: auto;
|
|
128
|
+
display: flex;
|
|
129
|
+
flex-direction: column;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.admin-ui-page__content.has-padding {
|
|
133
|
+
padding: 16px 20px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@container (max-width: 430px) {
|
|
137
|
+
.admin-ui-page__content.has-padding {
|
|
138
|
+
padding: 16px 24px;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon {
|
|
142
|
+
width: auto;
|
|
143
|
+
padding: 0 8px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon svg {
|
|
147
|
+
display: none;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.show-icon-labels .admin-ui-page__header-actions .components-button.has-icon::after {
|
|
151
|
+
content: attr(aria-label);
|
|
152
|
+
font-size: 12px;
|
|
153
|
+
}
|
|
154
|
+
|
|
137
155
|
/**
|
|
138
156
|
* Colors
|
|
139
157
|
*/
|
|
@@ -179,6 +197,18 @@
|
|
|
179
197
|
* React Native specific.
|
|
180
198
|
* These variables do not appear to be used anywhere else.
|
|
181
199
|
*/
|
|
200
|
+
.interface-complementary-area-header {
|
|
201
|
+
background: #fff;
|
|
202
|
+
padding-left: 8px;
|
|
203
|
+
gap: 4px;
|
|
204
|
+
}
|
|
205
|
+
.interface-complementary-area-header .interface-complementary-area-header__title {
|
|
206
|
+
margin: 0 0 0 auto;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Typography
|
|
211
|
+
*/
|
|
182
212
|
/**
|
|
183
213
|
* Breakpoints & Media Queries
|
|
184
214
|
*/
|
|
@@ -194,9 +224,6 @@
|
|
|
194
224
|
* Creates a fading overlay to signify that the content is longer
|
|
195
225
|
* than the space allows.
|
|
196
226
|
*/
|
|
197
|
-
/**
|
|
198
|
-
* Typography
|
|
199
|
-
*/
|
|
200
227
|
/**
|
|
201
228
|
* Breakpoint mixins
|
|
202
229
|
*/
|
|
@@ -219,33 +246,6 @@
|
|
|
219
246
|
/**
|
|
220
247
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
221
248
|
*/
|
|
222
|
-
:root {
|
|
223
|
-
--wp-block-synced-color: #7a00df;
|
|
224
|
-
--wp-block-synced-color--rgb: 122, 0, 223;
|
|
225
|
-
--wp-bound-block-color: var(--wp-block-synced-color);
|
|
226
|
-
--wp-admin-theme-color: #007cba;
|
|
227
|
-
--wp-admin-theme-color--rgb: 0, 124, 186;
|
|
228
|
-
--wp-admin-theme-color-darker-10: #006ba1;
|
|
229
|
-
--wp-admin-theme-color-darker-10--rgb: 0, 107, 161;
|
|
230
|
-
--wp-admin-theme-color-darker-20: #005a87;
|
|
231
|
-
--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
|
|
232
|
-
--wp-admin-border-width-focus: 2px;
|
|
233
|
-
}
|
|
234
|
-
@media (min-resolution: 192dpi) {
|
|
235
|
-
:root {
|
|
236
|
-
--wp-admin-border-width-focus: 1.5px;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.interface-complementary-area-header {
|
|
241
|
-
background: #fff;
|
|
242
|
-
padding-left: 8px;
|
|
243
|
-
gap: 4px;
|
|
244
|
-
}
|
|
245
|
-
.interface-complementary-area-header .interface-complementary-area-header__title {
|
|
246
|
-
margin: 0 0 0 auto;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
249
|
.interface-complementary-area {
|
|
250
250
|
background: #fff;
|
|
251
251
|
color: #1e1e1e;
|
|
@@ -322,11 +322,11 @@
|
|
|
322
322
|
height: calc(100% + 32px);
|
|
323
323
|
}
|
|
324
324
|
body.js.is-fullscreen-mode #adminmenumain,
|
|
325
|
-
body.js.is-fullscreen-mode #wpadminbar {
|
|
325
|
+
body.js.is-fullscreen-mode #wpadminbar {
|
|
326
326
|
display: none;
|
|
327
327
|
}
|
|
328
328
|
body.js.is-fullscreen-mode #wpcontent,
|
|
329
|
-
body.js.is-fullscreen-mode #wpfooter {
|
|
329
|
+
body.js.is-fullscreen-mode #wpfooter {
|
|
330
330
|
margin-right: 0;
|
|
331
331
|
}
|
|
332
332
|
}
|
|
@@ -444,7 +444,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
444
444
|
}
|
|
445
445
|
@media (min-width: 782px) {
|
|
446
446
|
.interface-interface-skeleton__secondary-sidebar,
|
|
447
|
-
.interface-interface-skeleton__sidebar {
|
|
447
|
+
.interface-interface-skeleton__sidebar {
|
|
448
448
|
position: relative !important;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
@@ -543,7 +543,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
543
543
|
|
|
544
544
|
.interface-pinned-items {
|
|
545
545
|
display: flex;
|
|
546
|
-
gap: 8px;
|
|
547
546
|
}
|
|
548
547
|
.interface-pinned-items .components-button {
|
|
549
548
|
display: none;
|
|
@@ -560,4 +559,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
560
559
|
.interface-pinned-items .components-button {
|
|
561
560
|
display: flex;
|
|
562
561
|
}
|
|
562
|
+
}
|
|
563
|
+
.interface-pinned-items {
|
|
564
|
+
gap: 8px;
|
|
563
565
|
}
|