@wordpress/global-styles-ui 1.15.0 → 1.15.2-next.v.202606191442.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 +11 -0
- package/build/font-library/font-card.cjs +10 -1
- package/build/font-library/font-card.cjs.map +2 -2
- package/build/font-library/font-collection.cjs +6 -1
- package/build/font-library/font-collection.cjs.map +2 -2
- package/build/font-library/installed-fonts.cjs +29 -1
- package/build/font-library/installed-fonts.cjs.map +2 -2
- package/build/font-library/lib/unbrotli.cjs +1 -1
- package/build/font-library/lib/unbrotli.cjs.map +2 -2
- package/build/screen-revisions/revisions-buttons.cjs +10 -3
- package/build/screen-revisions/revisions-buttons.cjs.map +3 -3
- package/build/variations/variation.cjs +5 -2
- package/build/variations/variation.cjs.map +3 -3
- package/build-module/font-library/font-card.mjs +10 -1
- package/build-module/font-library/font-card.mjs.map +2 -2
- package/build-module/font-library/font-collection.mjs +6 -1
- package/build-module/font-library/font-collection.mjs.map +2 -2
- package/build-module/font-library/installed-fonts.mjs +30 -2
- package/build-module/font-library/installed-fonts.mjs.map +2 -2
- package/build-module/font-library/lib/unbrotli.mjs +1 -1
- package/build-module/font-library/lib/unbrotli.mjs.map +2 -2
- package/build-module/screen-revisions/revisions-buttons.mjs +15 -4
- package/build-module/screen-revisions/revisions-buttons.mjs.map +2 -2
- package/build-module/variations/variation.mjs +6 -3
- package/build-module/variations/variation.mjs.map +2 -2
- package/build-style/style-rtl.css +8 -11
- package/build-style/style.css +8 -12
- package/build-types/font-library/font-card.d.ts +2 -1
- package/build-types/font-library/font-card.d.ts.map +1 -1
- package/build-types/font-library/font-collection.d.ts.map +1 -1
- package/build-types/font-library/installed-fonts.d.ts.map +1 -1
- package/build-types/screen-revisions/revisions-buttons.d.ts.map +1 -1
- package/build-types/variations/variation.d.ts.map +1 -1
- package/package.json +31 -21
- package/src/font-library/font-card.tsx +11 -0
- package/src/font-library/font-collection.tsx +11 -0
- package/src/font-library/installed-fonts.tsx +57 -3
- package/src/screen-revisions/revisions-buttons.tsx +14 -6
- package/src/screen-revisions/style.scss +4 -6
- package/src/style.scss +11 -15
- package/src/variations/variation.tsx +6 -5
package/src/style.scss
CHANGED
|
@@ -188,27 +188,23 @@
|
|
|
188
188
|
flex-direction: column;
|
|
189
189
|
margin: 16px;
|
|
190
190
|
|
|
191
|
-
.
|
|
191
|
+
.block-editor-global-styles-advanced-panel {
|
|
192
192
|
flex: 1 1 auto;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.block-editor-global-styles-advanced-panel__custom-css-input {
|
|
196
|
+
flex: 1 1 auto;
|
|
197
|
+
display: flex;
|
|
198
|
+
flex-direction: column;
|
|
193
199
|
|
|
194
|
-
.
|
|
200
|
+
.components-base-control__field {
|
|
195
201
|
flex: 1 1 auto;
|
|
196
202
|
display: flex;
|
|
197
203
|
flex-direction: column;
|
|
204
|
+
}
|
|
198
205
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
display: flex;
|
|
202
|
-
flex-direction: column;
|
|
203
|
-
|
|
204
|
-
.components-textarea-control__input {
|
|
205
|
-
flex: 1 1 auto;
|
|
206
|
-
// CSS input is always LTR regardless of language.
|
|
207
|
-
|
|
208
|
-
/*rtl:ignore*/
|
|
209
|
-
direction: ltr;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
206
|
+
textarea {
|
|
207
|
+
flex: 1 1 auto;
|
|
212
208
|
}
|
|
213
209
|
}
|
|
214
210
|
}
|
|
@@ -3,10 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* WordPress dependencies
|
|
8
|
-
*/
|
|
9
|
-
import { Tooltip as WCTooltip } from '@wordpress/components';
|
|
10
6
|
import { useMemo, useContext, useState } from '@wordpress/element';
|
|
11
7
|
import { ENTER } from '@wordpress/keycodes';
|
|
12
8
|
import { _x, sprintf } from '@wordpress/i18n';
|
|
@@ -14,11 +10,13 @@ import {
|
|
|
14
10
|
areGlobalStylesEqual,
|
|
15
11
|
mergeGlobalStyles,
|
|
16
12
|
} from '@wordpress/global-styles-engine';
|
|
13
|
+
import { Tooltip } from '@wordpress/ui';
|
|
17
14
|
|
|
18
15
|
/**
|
|
19
16
|
* Internal dependencies
|
|
20
17
|
*/
|
|
21
18
|
import { GlobalStylesContext } from '../context';
|
|
19
|
+
|
|
22
20
|
import { filterObjectByProperties } from '../utils';
|
|
23
21
|
|
|
24
22
|
interface VariationProps {
|
|
@@ -107,7 +105,10 @@ export default function Variation( {
|
|
|
107
105
|
return (
|
|
108
106
|
<GlobalStylesContext.Provider value={ context }>
|
|
109
107
|
{ showTooltip ? (
|
|
110
|
-
<
|
|
108
|
+
<Tooltip.Root>
|
|
109
|
+
<Tooltip.Trigger render={ content } />
|
|
110
|
+
<Tooltip.Popup>{ variation?.title }</Tooltip.Popup>
|
|
111
|
+
</Tooltip.Root>
|
|
111
112
|
) : (
|
|
112
113
|
content
|
|
113
114
|
) }
|