@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.
Files changed (41) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/build/font-library/font-card.cjs +10 -1
  3. package/build/font-library/font-card.cjs.map +2 -2
  4. package/build/font-library/font-collection.cjs +6 -1
  5. package/build/font-library/font-collection.cjs.map +2 -2
  6. package/build/font-library/installed-fonts.cjs +29 -1
  7. package/build/font-library/installed-fonts.cjs.map +2 -2
  8. package/build/font-library/lib/unbrotli.cjs +1 -1
  9. package/build/font-library/lib/unbrotli.cjs.map +2 -2
  10. package/build/screen-revisions/revisions-buttons.cjs +10 -3
  11. package/build/screen-revisions/revisions-buttons.cjs.map +3 -3
  12. package/build/variations/variation.cjs +5 -2
  13. package/build/variations/variation.cjs.map +3 -3
  14. package/build-module/font-library/font-card.mjs +10 -1
  15. package/build-module/font-library/font-card.mjs.map +2 -2
  16. package/build-module/font-library/font-collection.mjs +6 -1
  17. package/build-module/font-library/font-collection.mjs.map +2 -2
  18. package/build-module/font-library/installed-fonts.mjs +30 -2
  19. package/build-module/font-library/installed-fonts.mjs.map +2 -2
  20. package/build-module/font-library/lib/unbrotli.mjs +1 -1
  21. package/build-module/font-library/lib/unbrotli.mjs.map +2 -2
  22. package/build-module/screen-revisions/revisions-buttons.mjs +15 -4
  23. package/build-module/screen-revisions/revisions-buttons.mjs.map +2 -2
  24. package/build-module/variations/variation.mjs +6 -3
  25. package/build-module/variations/variation.mjs.map +2 -2
  26. package/build-style/style-rtl.css +8 -11
  27. package/build-style/style.css +8 -12
  28. package/build-types/font-library/font-card.d.ts +2 -1
  29. package/build-types/font-library/font-card.d.ts.map +1 -1
  30. package/build-types/font-library/font-collection.d.ts.map +1 -1
  31. package/build-types/font-library/installed-fonts.d.ts.map +1 -1
  32. package/build-types/screen-revisions/revisions-buttons.d.ts.map +1 -1
  33. package/build-types/variations/variation.d.ts.map +1 -1
  34. package/package.json +31 -21
  35. package/src/font-library/font-card.tsx +11 -0
  36. package/src/font-library/font-collection.tsx +11 -0
  37. package/src/font-library/installed-fonts.tsx +57 -3
  38. package/src/screen-revisions/revisions-buttons.tsx +14 -6
  39. package/src/screen-revisions/style.scss +4 -6
  40. package/src/style.scss +11 -15
  41. 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
- .components-v-stack {
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
- .block-editor-global-styles-advanced-panel__custom-css-input {
200
+ .components-base-control__field {
195
201
  flex: 1 1 auto;
196
202
  display: flex;
197
203
  flex-direction: column;
204
+ }
198
205
 
199
- .components-base-control__field {
200
- flex: 1 1 auto;
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
- <WCTooltip text={ variation?.title }>{ content }</WCTooltip>
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
  ) }