@wordpress/components 19.2.1-next.33ec3857e2.0 → 19.4.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 (748) hide show
  1. package/CHANGELOG.md +54 -1
  2. package/CONTRIBUTING.md +1 -1
  3. package/LICENSE.md +1 -1
  4. package/README.md +8 -4
  5. package/build/base-control/index.js +2 -3
  6. package/build/base-control/index.js.map +1 -1
  7. package/build/base-control/styles/base-control-styles.js +23 -13
  8. package/build/base-control/styles/base-control-styles.js.map +1 -1
  9. package/build/base-field/hook.js +1 -1
  10. package/build/base-field/hook.js.map +1 -1
  11. package/build/box-control/styles/box-control-styles.js +9 -9
  12. package/build/box-control/styles/box-control-styles.js.map +1 -1
  13. package/build/button/deprecated.js +2 -1
  14. package/build/button/deprecated.js.map +1 -1
  15. package/build/button/index.js +2 -1
  16. package/build/button/index.js.map +1 -1
  17. package/build/card/card/component.js +1 -1
  18. package/build/card/card/component.js.map +1 -1
  19. package/build/card/card/hook.js +1 -1
  20. package/build/card/card/hook.js.map +1 -1
  21. package/build/card/card-body/hook.js +1 -1
  22. package/build/card/card-body/hook.js.map +1 -1
  23. package/build/card/card-divider/hook.js +1 -1
  24. package/build/card/card-divider/hook.js.map +1 -1
  25. package/build/card/card-footer/hook.js +1 -1
  26. package/build/card/card-footer/hook.js.map +1 -1
  27. package/build/card/card-header/hook.js +1 -1
  28. package/build/card/card-header/hook.js.map +1 -1
  29. package/build/card/card-media/hook.js +1 -1
  30. package/build/card/card-media/hook.js.map +1 -1
  31. package/build/circular-option-picker/index.js +2 -0
  32. package/build/circular-option-picker/index.js.map +1 -1
  33. package/build/color-indicator/index.js +2 -0
  34. package/build/color-indicator/index.js.map +1 -1
  35. package/build/color-palette/index.js +4 -7
  36. package/build/color-palette/index.js.map +1 -1
  37. package/build/color-palette/index.native.js +4 -2
  38. package/build/color-palette/index.native.js.map +1 -1
  39. package/build/color-picker/color-display.js.map +1 -1
  40. package/build/color-picker/color-input.js.map +1 -1
  41. package/build/color-picker/component.js +2 -5
  42. package/build/color-picker/component.js.map +1 -1
  43. package/build/color-picker/use-deprecated-props.js +2 -0
  44. package/build/color-picker/use-deprecated-props.js.map +1 -1
  45. package/build/confirm-dialog/component.js +10 -6
  46. package/build/confirm-dialog/component.js.map +1 -1
  47. package/build/confirm-dialog/styles.js +30 -0
  48. package/build/confirm-dialog/styles.js.map +1 -0
  49. package/build/custom-gradient-bar/control-points.js +1 -2
  50. package/build/custom-gradient-bar/control-points.js.map +1 -1
  51. package/build/custom-select-control/index.js +10 -2
  52. package/build/custom-select-control/index.js.map +1 -1
  53. package/build/date-time/time.js +1 -1
  54. package/build/date-time/time.js.map +1 -1
  55. package/build/divider/component.js.map +1 -1
  56. package/build/dropdown/index.js +3 -3
  57. package/build/dropdown/index.js.map +1 -1
  58. package/build/elevation/hook.js +5 -5
  59. package/build/elevation/hook.js.map +1 -1
  60. package/build/external-link/styles/external-link-styles.js +5 -5
  61. package/build/external-link/styles/external-link-styles.js.map +1 -1
  62. package/build/flex/flex/hook.js +4 -4
  63. package/build/flex/flex/hook.js.map +1 -1
  64. package/build/form-token-field/suggestions-list.js +75 -81
  65. package/build/form-token-field/suggestions-list.js.map +1 -1
  66. package/build/grid/hook.js +2 -2
  67. package/build/grid/hook.js.map +1 -1
  68. package/build/heading/component.js +0 -1
  69. package/build/heading/component.js.map +1 -1
  70. package/build/icon/index.js +0 -1
  71. package/build/icon/index.js.map +1 -1
  72. package/build/input-control/index.js.map +1 -1
  73. package/build/input-control/input-base.js +0 -1
  74. package/build/input-control/input-base.js.map +1 -1
  75. package/build/input-control/input-field.js.map +1 -1
  76. package/build/input-control/reducer/actions.js +0 -1
  77. package/build/input-control/reducer/actions.js.map +1 -1
  78. package/build/input-control/reducer/reducer.js.map +1 -1
  79. package/build/input-control/reducer/state.js +0 -1
  80. package/build/input-control/reducer/state.js.map +1 -1
  81. package/build/input-control/styles/input-control-styles.js +32 -30
  82. package/build/input-control/styles/input-control-styles.js.map +1 -1
  83. package/build/item-group/item/component.js +0 -1
  84. package/build/item-group/item/component.js.map +1 -1
  85. package/build/item-group/item/hook.js +1 -2
  86. package/build/item-group/item/hook.js.map +1 -1
  87. package/build/item-group/item-group/component.js +0 -1
  88. package/build/item-group/item-group/component.js.map +1 -1
  89. package/build/mobile/bottom-sheet/bottom-sheet-context.native.js +3 -1
  90. package/build/mobile/bottom-sheet/bottom-sheet-context.native.js.map +1 -1
  91. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +4 -12
  92. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js.map +1 -1
  93. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js +23 -5
  94. package/build/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js.map +1 -1
  95. package/build/mobile/bottom-sheet/cell.native.js +3 -5
  96. package/build/mobile/bottom-sheet/cell.native.js.map +1 -1
  97. package/build/mobile/bottom-sheet/index.native.js +16 -16
  98. package/build/mobile/bottom-sheet/index.native.js.map +1 -1
  99. package/build/mobile/bottom-sheet/range-text-input.native.js +2 -3
  100. package/build/mobile/bottom-sheet/range-text-input.native.js.map +1 -1
  101. package/build/mobile/color-settings/index.native.js +2 -0
  102. package/build/mobile/color-settings/index.native.js.map +1 -1
  103. package/build/mobile/color-settings/palette.screen.native.js +5 -0
  104. package/build/mobile/color-settings/palette.screen.native.js.map +1 -1
  105. package/build/mobile/color-settings/utils.native.js +9 -3
  106. package/build/mobile/color-settings/utils.native.js.map +1 -1
  107. package/build/mobile/keyboard-avoiding-view/index.ios.js +6 -8
  108. package/build/mobile/keyboard-avoiding-view/index.ios.js.map +1 -1
  109. package/build/mobile/link-picker/index.native.js +3 -1
  110. package/build/mobile/link-picker/index.native.js.map +1 -1
  111. package/build/mobile/link-picker/link-picker-screen.native.js +18 -5
  112. package/build/mobile/link-picker/link-picker-screen.native.js.map +1 -1
  113. package/build/mobile/link-settings/index.native.js +3 -1
  114. package/build/mobile/link-settings/index.native.js.map +1 -1
  115. package/build/mobile/readable-content-view/index.native.js +2 -2
  116. package/build/mobile/readable-content-view/index.native.js.map +1 -1
  117. package/build/mobile/utils/use-is-floating-keyboard.native.js +2 -2
  118. package/build/mobile/utils/use-is-floating-keyboard.native.js.map +1 -1
  119. package/build/mobile/utils/use-unit-converter-to-mobile.native.js +7 -3
  120. package/build/mobile/utils/use-unit-converter-to-mobile.native.js.map +1 -1
  121. package/build/modal/index.js +1 -12
  122. package/build/modal/index.js.map +1 -1
  123. package/build/navigator/context.js +5 -1
  124. package/build/navigator/context.js.map +1 -1
  125. package/build/navigator/navigator-provider/component.js +42 -22
  126. package/build/navigator/navigator-provider/component.js.map +1 -1
  127. package/build/navigator/navigator-screen/component.js +57 -29
  128. package/build/navigator/navigator-screen/component.js.map +1 -1
  129. package/build/navigator/use-navigator.js +8 -8
  130. package/build/navigator/use-navigator.js.map +1 -1
  131. package/build/notice/index.native.js +2 -2
  132. package/build/notice/index.native.js.map +1 -1
  133. package/build/palette-edit/index.js +39 -30
  134. package/build/palette-edit/index.js.map +1 -1
  135. package/build/palette-edit/styles.js +11 -13
  136. package/build/palette-edit/styles.js.map +1 -1
  137. package/build/placeholder/index.js +4 -4
  138. package/build/placeholder/index.js.map +1 -1
  139. package/build/range-control/styles/range-control-styles.js +29 -29
  140. package/build/range-control/styles/range-control-styles.js.map +1 -1
  141. package/build/resizable-box/index.js.map +1 -1
  142. package/build/resizable-box/resize-tooltip/index.js.map +1 -1
  143. package/build/resizable-box/resize-tooltip/label.js +0 -1
  144. package/build/resizable-box/resize-tooltip/label.js.map +1 -1
  145. package/build/sandbox/index.native.js +5 -5
  146. package/build/sandbox/index.native.js.map +1 -1
  147. package/build/scrollable/hook.js +1 -1
  148. package/build/scrollable/hook.js.map +1 -1
  149. package/build/select-control/index.js.map +1 -1
  150. package/build/slot-fill/bubbles-virtually/fill.js +11 -2
  151. package/build/slot-fill/bubbles-virtually/fill.js.map +1 -1
  152. package/build/spacer/component.js +0 -1
  153. package/build/spacer/component.js.map +1 -1
  154. package/build/spinner/index.js +44 -5
  155. package/build/spinner/index.js.map +1 -1
  156. package/build/spinner/index.native.js +4 -2
  157. package/build/spinner/index.native.js.map +1 -1
  158. package/build/spinner/styles.js +56 -0
  159. package/build/spinner/styles.js.map +1 -0
  160. package/build/surface/hook.js +1 -1
  161. package/build/surface/hook.js.map +1 -1
  162. package/build/text/get-line-height.js +0 -1
  163. package/build/text/get-line-height.js.map +1 -1
  164. package/build/text/hook.js +5 -5
  165. package/build/text/hook.js.map +1 -1
  166. package/build/tip/index.js +4 -8
  167. package/build/tip/index.js.map +1 -1
  168. package/build/toggle-group-control/toggle-group-control/component.js +2 -12
  169. package/build/toggle-group-control/toggle-group-control/component.js.map +1 -1
  170. package/build/toggle-group-control/toggle-group-control/styles.js +3 -14
  171. package/build/toggle-group-control/toggle-group-control/styles.js.map +1 -1
  172. package/build/toggle-group-control/toggle-group-control-option/component.js +0 -1
  173. package/build/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
  174. package/build/toggle-group-control/toggle-group-control-option/styles.js +8 -8
  175. package/build/toggle-group-control/toggle-group-control-option/styles.js.map +1 -1
  176. package/build/tools-panel/styles.js +10 -10
  177. package/build/tools-panel/styles.js.map +1 -1
  178. package/build/tools-panel/tools-panel/component.js +0 -1
  179. package/build/tools-panel/tools-panel/component.js.map +1 -1
  180. package/build/tools-panel/tools-panel/hook.js +51 -44
  181. package/build/tools-panel/tools-panel/hook.js.map +1 -1
  182. package/build/tools-panel/tools-panel-header/component.js +0 -1
  183. package/build/tools-panel/tools-panel-header/component.js.map +1 -1
  184. package/build/tools-panel/tools-panel-header/hook.js +3 -3
  185. package/build/tools-panel/tools-panel-header/hook.js.map +1 -1
  186. package/build/tools-panel/tools-panel-item/component.js +0 -1
  187. package/build/tools-panel/tools-panel-item/component.js.map +1 -1
  188. package/build/tools-panel/tools-panel-item/hook.js +17 -9
  189. package/build/tools-panel/tools-panel-item/hook.js.map +1 -1
  190. package/build/tree-grid/index.js +19 -10
  191. package/build/tree-grid/index.js.map +1 -1
  192. package/build/truncate/hook.js +2 -2
  193. package/build/truncate/hook.js.map +1 -1
  194. package/build/ui/shortcut/component.js +0 -1
  195. package/build/ui/shortcut/component.js.map +1 -1
  196. package/build/ui/utils/font-size.js +0 -1
  197. package/build/ui/utils/font-size.js.map +1 -1
  198. package/build/ui/utils/get-valid-children.js +0 -1
  199. package/build/ui/utils/get-valid-children.js.map +1 -1
  200. package/build/unit-control/index.js +0 -1
  201. package/build/unit-control/index.js.map +1 -1
  202. package/build/unit-control/unit-select-control.js.map +1 -1
  203. package/build/utils/colors-values.js +6 -3
  204. package/build/utils/colors-values.js.map +1 -1
  205. package/build/utils/config-values.js +1 -4
  206. package/build/utils/config-values.js.map +1 -1
  207. package/build/utils/hooks/use-combined-ref.js.map +1 -1
  208. package/build/utils/hooks/use-latest-ref.js +0 -1
  209. package/build/utils/hooks/use-latest-ref.js.map +1 -1
  210. package/build/z-stack/component.js +0 -1
  211. package/build/z-stack/component.js.map +1 -1
  212. package/build-module/base-control/index.js +3 -4
  213. package/build-module/base-control/index.js.map +1 -1
  214. package/build-module/base-control/styles/base-control-styles.js +20 -12
  215. package/build-module/base-control/styles/base-control-styles.js.map +1 -1
  216. package/build-module/base-field/hook.js +1 -1
  217. package/build-module/base-field/hook.js.map +1 -1
  218. package/build-module/box-control/styles/box-control-styles.js +9 -9
  219. package/build-module/box-control/styles/box-control-styles.js.map +1 -1
  220. package/build-module/button/deprecated.js +2 -1
  221. package/build-module/button/deprecated.js.map +1 -1
  222. package/build-module/button/index.js +2 -1
  223. package/build-module/button/index.js.map +1 -1
  224. package/build-module/card/card/component.js +1 -1
  225. package/build-module/card/card/component.js.map +1 -1
  226. package/build-module/card/card/hook.js +1 -1
  227. package/build-module/card/card/hook.js.map +1 -1
  228. package/build-module/card/card-body/hook.js +1 -1
  229. package/build-module/card/card-body/hook.js.map +1 -1
  230. package/build-module/card/card-divider/hook.js +1 -1
  231. package/build-module/card/card-divider/hook.js.map +1 -1
  232. package/build-module/card/card-footer/hook.js +1 -1
  233. package/build-module/card/card-footer/hook.js.map +1 -1
  234. package/build-module/card/card-header/hook.js +1 -1
  235. package/build-module/card/card-header/hook.js.map +1 -1
  236. package/build-module/card/card-media/hook.js +1 -1
  237. package/build-module/card/card-media/hook.js.map +1 -1
  238. package/build-module/circular-option-picker/index.js +1 -0
  239. package/build-module/circular-option-picker/index.js.map +1 -1
  240. package/build-module/color-indicator/index.js +1 -0
  241. package/build-module/color-indicator/index.js.map +1 -1
  242. package/build-module/color-palette/index.js +4 -8
  243. package/build-module/color-palette/index.js.map +1 -1
  244. package/build-module/color-palette/index.native.js +4 -2
  245. package/build-module/color-palette/index.native.js.map +1 -1
  246. package/build-module/color-picker/color-display.js.map +1 -1
  247. package/build-module/color-picker/color-input.js.map +1 -1
  248. package/build-module/color-picker/component.js +2 -4
  249. package/build-module/color-picker/component.js.map +1 -1
  250. package/build-module/color-picker/use-deprecated-props.js +3 -2
  251. package/build-module/color-picker/use-deprecated-props.js.map +1 -1
  252. package/build-module/confirm-dialog/component.js +6 -3
  253. package/build-module/confirm-dialog/component.js.map +1 -1
  254. package/build-module/confirm-dialog/styles.js +25 -0
  255. package/build-module/confirm-dialog/styles.js.map +1 -0
  256. package/build-module/custom-gradient-bar/control-points.js +2 -3
  257. package/build-module/custom-gradient-bar/control-points.js.map +1 -1
  258. package/build-module/custom-select-control/index.js +11 -2
  259. package/build-module/custom-select-control/index.js.map +1 -1
  260. package/build-module/date-time/time.js +1 -1
  261. package/build-module/date-time/time.js.map +1 -1
  262. package/build-module/divider/component.js +1 -1
  263. package/build-module/divider/component.js.map +1 -1
  264. package/build-module/dropdown/index.js +3 -3
  265. package/build-module/dropdown/index.js.map +1 -1
  266. package/build-module/elevation/hook.js +5 -5
  267. package/build-module/elevation/hook.js.map +1 -1
  268. package/build-module/external-link/styles/external-link-styles.js +5 -5
  269. package/build-module/external-link/styles/external-link-styles.js.map +1 -1
  270. package/build-module/flex/flex/hook.js +4 -4
  271. package/build-module/flex/flex/hook.js.map +1 -1
  272. package/build-module/form-token-field/suggestions-list.js +73 -79
  273. package/build-module/form-token-field/suggestions-list.js.map +1 -1
  274. package/build-module/grid/hook.js +2 -2
  275. package/build-module/grid/hook.js.map +1 -1
  276. package/build-module/heading/component.js +0 -1
  277. package/build-module/heading/component.js.map +1 -1
  278. package/build-module/icon/index.js +0 -1
  279. package/build-module/icon/index.js.map +1 -1
  280. package/build-module/input-control/index.js +1 -1
  281. package/build-module/input-control/index.js.map +1 -1
  282. package/build-module/input-control/input-base.js +0 -1
  283. package/build-module/input-control/input-base.js.map +1 -1
  284. package/build-module/input-control/input-field.js +1 -1
  285. package/build-module/input-control/input-field.js.map +1 -1
  286. package/build-module/input-control/reducer/actions.js +0 -1
  287. package/build-module/input-control/reducer/actions.js.map +1 -1
  288. package/build-module/input-control/reducer/reducer.js +1 -1
  289. package/build-module/input-control/reducer/reducer.js.map +1 -1
  290. package/build-module/input-control/reducer/state.js +0 -1
  291. package/build-module/input-control/reducer/state.js.map +1 -1
  292. package/build-module/input-control/styles/input-control-styles.js +32 -30
  293. package/build-module/input-control/styles/input-control-styles.js.map +1 -1
  294. package/build-module/item-group/item/component.js +0 -1
  295. package/build-module/item-group/item/component.js.map +1 -1
  296. package/build-module/item-group/item/hook.js +1 -2
  297. package/build-module/item-group/item/hook.js.map +1 -1
  298. package/build-module/item-group/item-group/component.js +0 -1
  299. package/build-module/item-group/item-group/component.js.map +1 -1
  300. package/build-module/mobile/bottom-sheet/bottom-sheet-context.native.js +3 -1
  301. package/build-module/mobile/bottom-sheet/bottom-sheet-context.native.js.map +1 -1
  302. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +5 -13
  303. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js.map +1 -1
  304. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js +23 -5
  305. package/build-module/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js.map +1 -1
  306. package/build-module/mobile/bottom-sheet/cell.native.js +3 -3
  307. package/build-module/mobile/bottom-sheet/cell.native.js.map +1 -1
  308. package/build-module/mobile/bottom-sheet/index.native.js +16 -13
  309. package/build-module/mobile/bottom-sheet/index.native.js.map +1 -1
  310. package/build-module/mobile/bottom-sheet/range-text-input.native.js +2 -2
  311. package/build-module/mobile/bottom-sheet/range-text-input.native.js.map +1 -1
  312. package/build-module/mobile/color-settings/index.native.js +2 -0
  313. package/build-module/mobile/color-settings/index.native.js.map +1 -1
  314. package/build-module/mobile/color-settings/palette.screen.native.js +5 -0
  315. package/build-module/mobile/color-settings/palette.screen.native.js.map +1 -1
  316. package/build-module/mobile/color-settings/utils.native.js +7 -3
  317. package/build-module/mobile/color-settings/utils.native.js.map +1 -1
  318. package/build-module/mobile/keyboard-avoiding-view/index.ios.js +6 -6
  319. package/build-module/mobile/keyboard-avoiding-view/index.ios.js.map +1 -1
  320. package/build-module/mobile/link-picker/index.native.js +2 -1
  321. package/build-module/mobile/link-picker/index.native.js.map +1 -1
  322. package/build-module/mobile/link-picker/link-picker-screen.native.js +13 -5
  323. package/build-module/mobile/link-picker/link-picker-screen.native.js.map +1 -1
  324. package/build-module/mobile/link-settings/index.native.js +2 -1
  325. package/build-module/mobile/link-settings/index.native.js.map +1 -1
  326. package/build-module/mobile/readable-content-view/index.native.js +2 -2
  327. package/build-module/mobile/readable-content-view/index.native.js.map +1 -1
  328. package/build-module/mobile/utils/use-is-floating-keyboard.native.js +2 -2
  329. package/build-module/mobile/utils/use-is-floating-keyboard.native.js.map +1 -1
  330. package/build-module/mobile/utils/use-unit-converter-to-mobile.native.js +7 -3
  331. package/build-module/mobile/utils/use-unit-converter-to-mobile.native.js.map +1 -1
  332. package/build-module/modal/index.js +1 -11
  333. package/build-module/modal/index.js.map +1 -1
  334. package/build-module/navigator/context.js +5 -1
  335. package/build-module/navigator/context.js.map +1 -1
  336. package/build-module/navigator/navigator-provider/component.js +43 -24
  337. package/build-module/navigator/navigator-provider/component.js.map +1 -1
  338. package/build-module/navigator/navigator-screen/component.js +57 -32
  339. package/build-module/navigator/navigator-screen/component.js.map +1 -1
  340. package/build-module/navigator/use-navigator.js +8 -8
  341. package/build-module/navigator/use-navigator.js.map +1 -1
  342. package/build-module/notice/index.native.js +2 -2
  343. package/build-module/notice/index.native.js.map +1 -1
  344. package/build-module/palette-edit/index.js +38 -30
  345. package/build-module/palette-edit/index.js.map +1 -1
  346. package/build-module/palette-edit/styles.js +11 -12
  347. package/build-module/palette-edit/styles.js.map +1 -1
  348. package/build-module/placeholder/index.js +4 -4
  349. package/build-module/placeholder/index.js.map +1 -1
  350. package/build-module/range-control/styles/range-control-styles.js +29 -29
  351. package/build-module/range-control/styles/range-control-styles.js.map +1 -1
  352. package/build-module/resizable-box/index.js.map +1 -1
  353. package/build-module/resizable-box/resize-tooltip/index.js +3 -3
  354. package/build-module/resizable-box/resize-tooltip/index.js.map +1 -1
  355. package/build-module/resizable-box/resize-tooltip/label.js +0 -1
  356. package/build-module/resizable-box/resize-tooltip/label.js.map +1 -1
  357. package/build-module/sandbox/index.native.js +5 -5
  358. package/build-module/sandbox/index.native.js.map +1 -1
  359. package/build-module/scrollable/hook.js +1 -1
  360. package/build-module/scrollable/hook.js.map +1 -1
  361. package/build-module/select-control/index.js.map +1 -1
  362. package/build-module/slot-fill/bubbles-virtually/fill.js +11 -2
  363. package/build-module/slot-fill/bubbles-virtually/fill.js.map +1 -1
  364. package/build-module/spacer/component.js +0 -1
  365. package/build-module/spacer/component.js.map +1 -1
  366. package/build-module/spinner/index.js +40 -5
  367. package/build-module/spinner/index.js.map +1 -1
  368. package/build-module/spinner/index.native.js +4 -2
  369. package/build-module/spinner/index.native.js.map +1 -1
  370. package/build-module/spinner/styles.js +49 -0
  371. package/build-module/spinner/styles.js.map +1 -0
  372. package/build-module/surface/hook.js +1 -1
  373. package/build-module/surface/hook.js.map +1 -1
  374. package/build-module/text/get-line-height.js +0 -1
  375. package/build-module/text/get-line-height.js.map +1 -1
  376. package/build-module/text/hook.js +5 -5
  377. package/build-module/text/hook.js.map +1 -1
  378. package/build-module/tip/index.js +4 -8
  379. package/build-module/tip/index.js.map +1 -1
  380. package/build-module/toggle-group-control/toggle-group-control/component.js +2 -10
  381. package/build-module/toggle-group-control/toggle-group-control/component.js.map +1 -1
  382. package/build-module/toggle-group-control/toggle-group-control/styles.js +3 -11
  383. package/build-module/toggle-group-control/toggle-group-control/styles.js.map +1 -1
  384. package/build-module/toggle-group-control/toggle-group-control-option/component.js +0 -1
  385. package/build-module/toggle-group-control/toggle-group-control-option/component.js.map +1 -1
  386. package/build-module/toggle-group-control/toggle-group-control-option/styles.js +8 -8
  387. package/build-module/toggle-group-control/toggle-group-control-option/styles.js.map +1 -1
  388. package/build-module/tools-panel/styles.js +10 -10
  389. package/build-module/tools-panel/styles.js.map +1 -1
  390. package/build-module/tools-panel/tools-panel/component.js +0 -1
  391. package/build-module/tools-panel/tools-panel/component.js.map +1 -1
  392. package/build-module/tools-panel/tools-panel/hook.js +52 -45
  393. package/build-module/tools-panel/tools-panel/hook.js.map +1 -1
  394. package/build-module/tools-panel/tools-panel-header/component.js +0 -1
  395. package/build-module/tools-panel/tools-panel-header/component.js.map +1 -1
  396. package/build-module/tools-panel/tools-panel-header/hook.js +3 -3
  397. package/build-module/tools-panel/tools-panel-header/hook.js.map +1 -1
  398. package/build-module/tools-panel/tools-panel-item/component.js +0 -1
  399. package/build-module/tools-panel/tools-panel-item/component.js.map +1 -1
  400. package/build-module/tools-panel/tools-panel-item/hook.js +17 -9
  401. package/build-module/tools-panel/tools-panel-item/hook.js.map +1 -1
  402. package/build-module/tree-grid/index.js +18 -10
  403. package/build-module/tree-grid/index.js.map +1 -1
  404. package/build-module/truncate/hook.js +2 -2
  405. package/build-module/truncate/hook.js.map +1 -1
  406. package/build-module/ui/shortcut/component.js +0 -1
  407. package/build-module/ui/shortcut/component.js.map +1 -1
  408. package/build-module/ui/utils/font-size.js +0 -1
  409. package/build-module/ui/utils/font-size.js.map +1 -1
  410. package/build-module/ui/utils/get-valid-children.js +0 -1
  411. package/build-module/ui/utils/get-valid-children.js.map +1 -1
  412. package/build-module/unit-control/index.js +0 -1
  413. package/build-module/unit-control/index.js.map +1 -1
  414. package/build-module/unit-control/unit-select-control.js +1 -2
  415. package/build-module/unit-control/unit-select-control.js.map +1 -1
  416. package/build-module/utils/colors-values.js +6 -3
  417. package/build-module/utils/colors-values.js.map +1 -1
  418. package/build-module/utils/config-values.js +1 -4
  419. package/build-module/utils/config-values.js.map +1 -1
  420. package/build-module/utils/hooks/use-combined-ref.js +0 -1
  421. package/build-module/utils/hooks/use-combined-ref.js.map +1 -1
  422. package/build-module/utils/hooks/use-latest-ref.js +0 -1
  423. package/build-module/utils/hooks/use-latest-ref.js.map +1 -1
  424. package/build-module/z-stack/component.js +0 -1
  425. package/build-module/z-stack/component.js.map +1 -1
  426. package/build-style/style-rtl.css +22 -6
  427. package/build-style/style.css +22 -6
  428. package/build-types/base-control/index.d.ts.map +1 -1
  429. package/build-types/base-control/styles/base-control-styles.d.ts +4 -0
  430. package/build-types/base-control/styles/base-control-styles.d.ts.map +1 -1
  431. package/build-types/button/index.d.ts.map +1 -1
  432. package/build-types/card/types.d.ts.map +1 -1
  433. package/build-types/circular-option-picker/index.d.ts +31 -0
  434. package/build-types/circular-option-picker/index.d.ts.map +1 -0
  435. package/build-types/color-palette/index.d.ts +16 -0
  436. package/build-types/color-palette/index.d.ts.map +1 -0
  437. package/build-types/color-palette/styles.d.ts +8 -0
  438. package/build-types/color-palette/styles.d.ts.map +1 -0
  439. package/build-types/color-picker/color-display.d.ts +14 -0
  440. package/build-types/color-picker/color-display.d.ts.map +1 -0
  441. package/build-types/color-picker/color-input.d.ts +14 -0
  442. package/build-types/color-picker/color-input.d.ts.map +1 -0
  443. package/build-types/color-picker/component.d.ts +11 -0
  444. package/build-types/color-picker/component.d.ts.map +1 -0
  445. package/build-types/color-picker/hex-input.d.ts +13 -0
  446. package/build-types/color-picker/hex-input.d.ts.map +1 -0
  447. package/build-types/color-picker/hsl-input.d.ts +13 -0
  448. package/build-types/color-picker/hsl-input.d.ts.map +1 -0
  449. package/build-types/color-picker/index.d.ts +5 -0
  450. package/build-types/color-picker/index.d.ts.map +1 -0
  451. package/build-types/color-picker/input-with-slider.d.ts +12 -0
  452. package/build-types/color-picker/input-with-slider.d.ts.map +1 -0
  453. package/build-types/color-picker/legacy-adapter.d.ts +6 -0
  454. package/build-types/color-picker/legacy-adapter.d.ts.map +1 -0
  455. package/build-types/color-picker/picker.d.ts +10 -0
  456. package/build-types/color-picker/picker.d.ts.map +1 -0
  457. package/build-types/color-picker/rgb-input.d.ts +13 -0
  458. package/build-types/color-picker/rgb-input.d.ts.map +1 -0
  459. package/build-types/color-picker/styles.d.ts +76 -0
  460. package/build-types/color-picker/styles.d.ts.map +1 -0
  461. package/build-types/color-picker/types.d.ts +2 -0
  462. package/build-types/color-picker/types.d.ts.map +1 -0
  463. package/build-types/color-picker/use-deprecated-props.d.ts +49 -0
  464. package/build-types/color-picker/use-deprecated-props.d.ts.map +1 -0
  465. package/build-types/confirm-dialog/component.d.ts +11 -14
  466. package/build-types/confirm-dialog/component.d.ts.map +1 -1
  467. package/build-types/confirm-dialog/styles.d.ts +10 -0
  468. package/build-types/confirm-dialog/styles.d.ts.map +1 -0
  469. package/build-types/confirm-dialog/types.d.ts.map +1 -1
  470. package/build-types/divider/component.d.ts.map +1 -1
  471. package/build-types/dropdown/index.d.ts +1 -13
  472. package/build-types/dropdown/index.d.ts.map +1 -1
  473. package/build-types/elevation/hook.d.ts.map +1 -1
  474. package/build-types/elevation/types.d.ts.map +1 -1
  475. package/build-types/flex/flex/hook.d.ts.map +1 -1
  476. package/build-types/flex/types.d.ts.map +1 -1
  477. package/build-types/flyout/types.d.ts.map +1 -1
  478. package/build-types/grid/hook.d.ts.map +1 -1
  479. package/build-types/grid/types.d.ts.map +1 -1
  480. package/build-types/h-stack/hook.d.ts +1 -1
  481. package/build-types/h-stack/hook.d.ts.map +1 -1
  482. package/build-types/h-stack/types.d.ts.map +1 -1
  483. package/build-types/heading/component.d.ts.map +1 -1
  484. package/build-types/higher-order/with-focus-outside/index.d.ts +1 -1
  485. package/build-types/icon/index.d.ts.map +1 -1
  486. package/build-types/input-control/index.d.ts.map +1 -1
  487. package/build-types/input-control/input-base.d.ts.map +1 -1
  488. package/build-types/input-control/input-field.d.ts.map +1 -1
  489. package/build-types/input-control/reducer/actions.d.ts.map +1 -1
  490. package/build-types/input-control/reducer/reducer.d.ts.map +1 -1
  491. package/build-types/input-control/reducer/state.d.ts.map +1 -1
  492. package/build-types/input-control/styles/input-control-styles.d.ts.map +1 -1
  493. package/build-types/input-control/types.d.ts.map +1 -1
  494. package/build-types/item-group/item/component.d.ts.map +1 -1
  495. package/build-types/item-group/item/hook.d.ts.map +1 -1
  496. package/build-types/item-group/item-group/component.d.ts.map +1 -1
  497. package/build-types/navigator/context.d.ts.map +1 -1
  498. package/build-types/navigator/navigator-provider/component.d.ts +16 -17
  499. package/build-types/navigator/navigator-provider/component.d.ts.map +1 -1
  500. package/build-types/navigator/navigator-screen/component.d.ts +16 -16
  501. package/build-types/navigator/navigator-screen/component.d.ts.map +1 -1
  502. package/build-types/navigator/types.d.ts +10 -9
  503. package/build-types/navigator/types.d.ts.map +1 -1
  504. package/build-types/resizable-box/index.d.ts +1 -1
  505. package/build-types/resizable-box/index.d.ts.map +1 -1
  506. package/build-types/resizable-box/resize-tooltip/index.d.ts +1 -1
  507. package/build-types/resizable-box/resize-tooltip/index.d.ts.map +1 -1
  508. package/build-types/resizable-box/resize-tooltip/label.d.ts.map +1 -1
  509. package/build-types/select-control/index.d.ts +3 -2
  510. package/build-types/select-control/index.d.ts.map +1 -1
  511. package/build-types/slot-fill/bubbles-virtually/fill.d.ts.map +1 -1
  512. package/build-types/spacer/component.d.ts.map +1 -1
  513. package/build-types/spacer/types.d.ts.map +1 -1
  514. package/build-types/spinner/index.d.ts +18 -1
  515. package/build-types/spinner/index.d.ts.map +1 -1
  516. package/build-types/spinner/styles.d.ts +13 -0
  517. package/build-types/spinner/styles.d.ts.map +1 -0
  518. package/build-types/surface/hook.d.ts.map +1 -1
  519. package/build-types/text/get-line-height.d.ts.map +1 -1
  520. package/build-types/text/hook.d.ts.map +1 -1
  521. package/build-types/text/types.d.ts.map +1 -1
  522. package/build-types/tip/index.d.ts.map +1 -1
  523. package/build-types/toggle-group-control/toggle-group-control/component.d.ts.map +1 -1
  524. package/build-types/toggle-group-control/toggle-group-control/styles.d.ts +0 -5
  525. package/build-types/toggle-group-control/toggle-group-control/styles.d.ts.map +1 -1
  526. package/build-types/toggle-group-control/toggle-group-control-option/component.d.ts.map +1 -1
  527. package/build-types/toggle-group-control/toggle-group-control-option/styles.d.ts.map +1 -1
  528. package/build-types/toggle-group-control/types.d.ts +1 -7
  529. package/build-types/toggle-group-control/types.d.ts.map +1 -1
  530. package/build-types/tools-panel/styles.d.ts.map +1 -1
  531. package/build-types/tools-panel/tools-panel/component.d.ts.map +1 -1
  532. package/build-types/tools-panel/tools-panel/hook.d.ts +8 -4
  533. package/build-types/tools-panel/tools-panel/hook.d.ts.map +1 -1
  534. package/build-types/tools-panel/tools-panel-header/component.d.ts.map +1 -1
  535. package/build-types/tools-panel/tools-panel-item/component.d.ts.map +1 -1
  536. package/build-types/tools-panel/tools-panel-item/hook.d.ts.map +1 -1
  537. package/build-types/tools-panel/types.d.ts +14 -0
  538. package/build-types/tools-panel/types.d.ts.map +1 -1
  539. package/build-types/ui/context/wordpress-component.d.ts.map +1 -1
  540. package/build-types/ui/control-group/types.d.ts.map +1 -1
  541. package/build-types/ui/form-group/types.d.ts.map +1 -1
  542. package/build-types/ui/shortcut/component.d.ts.map +1 -1
  543. package/build-types/ui/tooltip/types.d.ts.map +1 -1
  544. package/build-types/ui/utils/font-size.d.ts.map +1 -1
  545. package/build-types/ui/utils/get-valid-children.d.ts.map +1 -1
  546. package/build-types/unit-control/index.d.ts +3 -2
  547. package/build-types/unit-control/index.d.ts.map +1 -1
  548. package/build-types/unit-control/types.d.ts +2 -1
  549. package/build-types/unit-control/types.d.ts.map +1 -1
  550. package/build-types/unit-control/unit-select-control.d.ts.map +1 -1
  551. package/build-types/utils/colors-values.d.ts +1 -0
  552. package/build-types/utils/colors-values.d.ts.map +1 -1
  553. package/build-types/utils/config-values.d.ts +1 -5
  554. package/build-types/utils/config-values.d.ts.map +1 -1
  555. package/build-types/utils/hooks/use-combined-ref.d.ts.map +1 -1
  556. package/build-types/utils/hooks/use-latest-ref.d.ts.map +1 -1
  557. package/build-types/v-stack/types.d.ts.map +1 -1
  558. package/build-types/z-stack/component.d.ts.map +1 -1
  559. package/package.json +20 -17
  560. package/src/base-control/index.js +11 -2
  561. package/src/base-control/styles/base-control-styles.js +10 -1
  562. package/src/base-field/hook.js +1 -1
  563. package/src/box-control/styles/box-control-styles.js +1 -1
  564. package/src/button/deprecated.js +1 -0
  565. package/src/button/index.js +1 -0
  566. package/src/card/card/component.js +1 -1
  567. package/src/card/card/hook.js +1 -1
  568. package/src/card/card-body/hook.js +1 -1
  569. package/src/card/card-divider/hook.js +1 -1
  570. package/src/card/card-footer/hook.js +1 -1
  571. package/src/card/card-header/hook.js +1 -1
  572. package/src/card/card-media/hook.js +1 -1
  573. package/src/card/types.ts +0 -1
  574. package/src/circular-option-picker/index.js +1 -0
  575. package/src/color-indicator/README.md +28 -0
  576. package/src/color-indicator/index.js +2 -0
  577. package/src/color-indicator/style.scss +1 -1
  578. package/src/color-palette/index.js +7 -8
  579. package/src/color-palette/index.native.js +2 -0
  580. package/src/color-palette/style.scss +11 -3
  581. package/src/color-palette/test/__snapshots__/index.js.snap +0 -1
  582. package/src/color-picker/README.md +1 -1
  583. package/src/color-picker/color-display.tsx +1 -1
  584. package/src/color-picker/color-input.tsx +1 -1
  585. package/src/color-picker/component.tsx +3 -4
  586. package/src/color-picker/use-deprecated-props.ts +2 -1
  587. package/src/combobox-control/stories/index.js +6 -2
  588. package/src/combobox-control/style.scss +2 -2
  589. package/src/confirm-dialog/component.tsx +7 -4
  590. package/src/confirm-dialog/stories/index.js +5 -2
  591. package/src/confirm-dialog/styles.ts +18 -0
  592. package/src/confirm-dialog/types.ts +0 -1
  593. package/src/custom-gradient-bar/control-points.js +2 -3
  594. package/src/custom-gradient-picker/style.scss +0 -1
  595. package/src/custom-select-control/index.js +13 -1
  596. package/src/custom-select-control/stories/index.js +27 -0
  597. package/src/custom-select-control/test/index.js +46 -0
  598. package/src/date-time/README.md +4 -4
  599. package/src/date-time/test/time.js +2 -2
  600. package/src/date-time/time.js +2 -2
  601. package/src/dimension-control/README.md +2 -0
  602. package/src/divider/component.tsx +0 -1
  603. package/src/dropdown/index.js +14 -13
  604. package/src/elevation/hook.js +1 -0
  605. package/src/elevation/types.ts +0 -1
  606. package/src/external-link/styles/external-link-styles.js +3 -3
  607. package/src/flex/flex/hook.js +1 -0
  608. package/src/flex/types.ts +0 -1
  609. package/src/flyout/types.ts +0 -1
  610. package/src/form-token-field/style.scss +1 -1
  611. package/src/form-token-field/suggestions-list.js +109 -120
  612. package/src/form-token-field/test/index.js +4 -2
  613. package/src/gradient-picker/README.md +94 -0
  614. package/src/grid/hook.js +1 -0
  615. package/src/grid/types.ts +0 -1
  616. package/src/h-stack/types.ts +0 -1
  617. package/src/heading/component.tsx +0 -1
  618. package/src/icon/index.tsx +0 -1
  619. package/src/input-control/index.tsx +0 -1
  620. package/src/input-control/input-base.tsx +0 -1
  621. package/src/input-control/input-field.tsx +0 -1
  622. package/src/input-control/reducer/actions.ts +0 -1
  623. package/src/input-control/reducer/reducer.ts +0 -1
  624. package/src/input-control/reducer/state.ts +0 -1
  625. package/src/input-control/styles/input-control-styles.tsx +7 -7
  626. package/src/input-control/types.ts +0 -1
  627. package/src/item-group/item/component.tsx +0 -1
  628. package/src/item-group/item/hook.ts +1 -2
  629. package/src/item-group/item-group/component.tsx +0 -1
  630. package/src/item-group/stories/index.js +2 -2
  631. package/src/mobile/bottom-sheet/bottom-sheet-context.native.js +2 -0
  632. package/src/mobile/bottom-sheet/bottom-sheet-navigation/navigation-container.native.js +8 -14
  633. package/src/mobile/bottom-sheet/bottom-sheet-navigation/navigation-screen.native.js +33 -3
  634. package/src/mobile/bottom-sheet/bottom-sheet-navigation/test/navigation-container.native.js +162 -0
  635. package/src/mobile/bottom-sheet/cell.native.js +8 -6
  636. package/src/mobile/bottom-sheet/index.native.js +24 -14
  637. package/src/mobile/bottom-sheet/link-suggestion-styles.native.scss +3 -0
  638. package/src/mobile/bottom-sheet/range-text-input.native.js +5 -2
  639. package/src/mobile/bottom-sheet/styles.native.scss +4 -0
  640. package/src/mobile/bottom-sheet/test/index.native.js +24 -0
  641. package/src/mobile/color-settings/index.native.js +2 -0
  642. package/src/mobile/color-settings/palette.screen.native.js +5 -0
  643. package/src/mobile/color-settings/utils.native.js +8 -3
  644. package/src/mobile/html-text-input/test/index.native.js +34 -35
  645. package/src/mobile/keyboard-avoiding-view/index.ios.js +12 -9
  646. package/src/mobile/link-picker/index.native.js +2 -1
  647. package/src/mobile/link-picker/link-picker-screen.native.js +13 -5
  648. package/src/mobile/link-settings/index.native.js +2 -1
  649. package/src/mobile/link-settings/test/edit.native.js +172 -236
  650. package/src/mobile/link-settings/test/link-settings-navigation.native.js +97 -0
  651. package/src/mobile/readable-content-view/index.native.js +5 -2
  652. package/src/mobile/utils/use-is-floating-keyboard.native.js +2 -5
  653. package/src/mobile/utils/use-unit-converter-to-mobile.native.js +11 -3
  654. package/src/modal/index.js +1 -10
  655. package/src/navigator/context.ts +5 -1
  656. package/src/navigator/navigator-provider/README.md +30 -20
  657. package/src/navigator/navigator-provider/component.tsx +69 -25
  658. package/src/navigator/navigator-screen/component.tsx +71 -34
  659. package/src/navigator/stories/index.js +26 -13
  660. package/src/navigator/test/index.js +167 -32
  661. package/src/navigator/types.ts +11 -11
  662. package/src/navigator/use-navigator.ts +4 -4
  663. package/src/notice/index.native.js +5 -2
  664. package/src/palette-edit/index.js +115 -75
  665. package/src/palette-edit/styles.js +22 -3
  666. package/src/placeholder/index.js +8 -6
  667. package/src/placeholder/style.scss +12 -0
  668. package/src/placeholder/test/index.js +18 -1
  669. package/src/range-control/styles/range-control-styles.js +1 -1
  670. package/src/resizable-box/index.tsx +0 -1
  671. package/src/resizable-box/resize-tooltip/index.tsx +1 -2
  672. package/src/resizable-box/resize-tooltip/label.tsx +0 -1
  673. package/src/sandbox/index.native.js +8 -5
  674. package/src/scrollable/hook.js +1 -1
  675. package/src/scrollable/stories/index.js +6 -3
  676. package/src/select-control/README.md +2 -2
  677. package/src/select-control/index.tsx +3 -2
  678. package/src/select-control/stories/index.js +1 -1
  679. package/src/slot-fill/bubbles-virtually/fill.js +12 -1
  680. package/src/spacer/component.tsx +0 -1
  681. package/src/spacer/types.ts +0 -1
  682. package/src/spinner/README.md +10 -10
  683. package/src/spinner/index.js +42 -3
  684. package/src/spinner/index.native.js +7 -2
  685. package/src/spinner/stories/index.js +36 -3
  686. package/src/spinner/styles.js +47 -0
  687. package/src/surface/hook.js +1 -0
  688. package/src/text/get-line-height.ts +0 -1
  689. package/src/text/hook.js +1 -0
  690. package/src/text/types.ts +0 -1
  691. package/src/tip/index.js +2 -4
  692. package/src/toggle-group-control/test/__snapshots__/index.js.snap +25 -27
  693. package/src/toggle-group-control/toggle-group-control/component.tsx +1 -12
  694. package/src/toggle-group-control/toggle-group-control/styles.ts +0 -14
  695. package/src/toggle-group-control/toggle-group-control-option/component.tsx +0 -1
  696. package/src/toggle-group-control/toggle-group-control-option/styles.ts +1 -3
  697. package/src/toggle-group-control/types.ts +1 -9
  698. package/src/tools-panel/stories/index.js +21 -1
  699. package/src/tools-panel/stories/tools-panel-with-item-group-slot.js +244 -0
  700. package/src/tools-panel/styles.ts +1 -3
  701. package/src/tools-panel/test/__snapshots__/index.js.snap +219 -0
  702. package/src/tools-panel/test/index.js +218 -20
  703. package/src/tools-panel/tools-panel/README.md +3 -2
  704. package/src/tools-panel/tools-panel/component.tsx +0 -1
  705. package/src/tools-panel/tools-panel/hook.ts +164 -97
  706. package/src/tools-panel/tools-panel-header/component.tsx +0 -1
  707. package/src/tools-panel/tools-panel-header/hook.ts +3 -3
  708. package/src/tools-panel/tools-panel-item/component.tsx +0 -1
  709. package/src/tools-panel/tools-panel-item/hook.ts +39 -8
  710. package/src/tools-panel/types.ts +14 -1
  711. package/src/tooltip/test/index.native.js +3 -1
  712. package/src/tree-grid/index.js +157 -126
  713. package/src/truncate/hook.js +1 -1
  714. package/src/ui/README.md +1 -1
  715. package/src/ui/context/wordpress-component.ts +0 -1
  716. package/src/ui/control-group/types.ts +0 -1
  717. package/src/ui/form-group/types.ts +0 -1
  718. package/src/ui/shortcut/component.tsx +0 -1
  719. package/src/ui/tooltip/types.ts +0 -1
  720. package/src/ui/utils/font-size.ts +0 -1
  721. package/src/ui/utils/get-valid-children.ts +0 -1
  722. package/src/unit-control/index.tsx +0 -1
  723. package/src/unit-control/types.ts +2 -2
  724. package/src/unit-control/unit-select-control.tsx +0 -1
  725. package/src/utils/colors-values.js +4 -3
  726. package/src/utils/config-values.js +1 -5
  727. package/src/utils/hooks/stories/use-cx.js +121 -44
  728. package/src/utils/hooks/use-combined-ref.ts +0 -1
  729. package/src/utils/hooks/use-latest-ref.ts +0 -1
  730. package/src/v-stack/types.ts +0 -1
  731. package/src/z-stack/component.tsx +0 -1
  732. package/tsconfig.json +3 -0
  733. package/tsconfig.tsbuildinfo +1 -1
  734. package/build/spinner/styles/spinner-styles.js +0 -40
  735. package/build/spinner/styles/spinner-styles.js.map +0 -1
  736. package/build/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.js +0 -90
  737. package/build/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.js.map +0 -1
  738. package/build-module/spinner/styles/spinner-styles.js +0 -28
  739. package/build-module/spinner/styles/spinner-styles.js.map +0 -1
  740. package/build-module/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.js +0 -86
  741. package/build-module/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.js.map +0 -1
  742. package/build-types/spinner/styles/spinner-styles.d.ts +0 -5
  743. package/build-types/spinner/styles/spinner-styles.d.ts.map +0 -1
  744. package/build-types/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.d.ts +0 -9
  745. package/build-types/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.d.ts.map +0 -1
  746. package/src/spinner/styles/spinner-styles.js +0 -47
  747. package/src/toggle-group-control/toggle-group-control/toggle-group-control-backdrop.tsx +0 -86
  748. package/src/ui/visually-hidden/README.md +0 -21
@@ -51,147 +51,178 @@ function TreeGrid(
51
51
  { children, onExpandRow = () => {}, onCollapseRow = () => {}, ...props },
52
52
  ref
53
53
  ) {
54
- const onKeyDown = useCallback( ( event ) => {
55
- const { keyCode, metaKey, ctrlKey, altKey, shiftKey } = event;
56
-
57
- const hasModifierKeyPressed = metaKey || ctrlKey || altKey || shiftKey;
58
-
59
- if (
60
- hasModifierKeyPressed ||
61
- ! includes( [ UP, DOWN, LEFT, RIGHT ], keyCode )
62
- ) {
63
- return;
64
- }
65
-
66
- // The event will be handled, stop propagation.
67
- event.stopPropagation();
68
-
69
- const { activeElement } = document;
70
- const { currentTarget: treeGridElement } = event;
71
- if ( ! treeGridElement.contains( activeElement ) ) {
72
- return;
73
- }
74
-
75
- // Calculate the columnIndex of the active element.
76
- const activeRow = activeElement.closest( '[role="row"]' );
77
- const focusablesInRow = getRowFocusables( activeRow );
78
- const currentColumnIndex = focusablesInRow.indexOf( activeElement );
79
-
80
- if ( includes( [ LEFT, RIGHT ], keyCode ) ) {
81
- // Calculate to the next element.
82
- let nextIndex;
83
- if ( keyCode === LEFT ) {
84
- nextIndex = Math.max( 0, currentColumnIndex - 1 );
85
- } else {
86
- nextIndex = Math.min(
87
- currentColumnIndex + 1,
88
- focusablesInRow.length - 1
89
- );
54
+ const onKeyDown = useCallback(
55
+ ( event ) => {
56
+ const { keyCode, metaKey, ctrlKey, altKey, shiftKey } = event;
57
+
58
+ const hasModifierKeyPressed =
59
+ metaKey || ctrlKey || altKey || shiftKey;
60
+
61
+ if (
62
+ hasModifierKeyPressed ||
63
+ ! includes( [ UP, DOWN, LEFT, RIGHT ], keyCode )
64
+ ) {
65
+ return;
66
+ }
67
+
68
+ // The event will be handled, stop propagation.
69
+ event.stopPropagation();
70
+
71
+ const { activeElement } = document;
72
+ const { currentTarget: treeGridElement } = event;
73
+ if ( ! treeGridElement.contains( activeElement ) ) {
74
+ return;
90
75
  }
91
76
 
92
- // Focus is either at the left or right edge of the grid.
93
- if ( nextIndex === currentColumnIndex ) {
77
+ // Calculate the columnIndex of the active element.
78
+ const activeRow = activeElement.closest( '[role="row"]' );
79
+ const focusablesInRow = getRowFocusables( activeRow );
80
+ const currentColumnIndex = focusablesInRow.indexOf( activeElement );
81
+ const canExpandCollapse = 0 === currentColumnIndex;
82
+ const cannotFocusNextColumn =
83
+ canExpandCollapse &&
84
+ activeRow.getAttribute( 'aria-expanded' ) === 'false' &&
85
+ keyCode === RIGHT;
86
+
87
+ if ( includes( [ LEFT, RIGHT ], keyCode ) ) {
88
+ // Calculate to the next element.
89
+ let nextIndex;
94
90
  if ( keyCode === LEFT ) {
95
- // Left:
96
- // If a row is focused, and it is expanded, collapses the current row.
97
- if ( activeRow?.ariaExpanded === 'true' ) {
98
- onCollapseRow( activeRow );
99
- event.preventDefault();
100
- return;
101
- }
102
- // If a row is focused, and it is collapsed, moves to the parent row (if there is one).
103
- const level = Math.max(
104
- parseInt( activeRow?.ariaLevel ?? 1, 10 ) - 1,
105
- 1
106
- );
107
- const rows = Array.from(
108
- treeGridElement.querySelectorAll( '[role="row"]' )
91
+ nextIndex = Math.max( 0, currentColumnIndex - 1 );
92
+ } else {
93
+ nextIndex = Math.min(
94
+ currentColumnIndex + 1,
95
+ focusablesInRow.length - 1
109
96
  );
110
- let parentRow = activeRow;
111
- const currentRowIndex = rows.indexOf( activeRow );
112
- for ( let i = currentRowIndex; i >= 0; i-- ) {
113
- if ( parseInt( rows[ i ].ariaLevel, 10 ) === level ) {
114
- parentRow = rows[ i ];
115
- break;
97
+ }
98
+
99
+ // Focus is at the left most column.
100
+ if ( canExpandCollapse ) {
101
+ if ( keyCode === LEFT ) {
102
+ // Left:
103
+ // If a row is focused, and it is expanded, collapses the current row.
104
+ if (
105
+ activeRow.getAttribute( 'aria-expanded' ) === 'true'
106
+ ) {
107
+ onCollapseRow( activeRow );
108
+ event.preventDefault();
109
+ return;
116
110
  }
111
+ // If a row is focused, and it is collapsed, moves to the parent row (if there is one).
112
+ const level = Math.max(
113
+ parseInt(
114
+ activeRow?.getAttribute( 'aria-level' ) ?? 1,
115
+ 10
116
+ ) - 1,
117
+ 1
118
+ );
119
+ const rows = Array.from(
120
+ treeGridElement.querySelectorAll( '[role="row"]' )
121
+ );
122
+ let parentRow = activeRow;
123
+ const currentRowIndex = rows.indexOf( activeRow );
124
+ for ( let i = currentRowIndex; i >= 0; i-- ) {
125
+ if (
126
+ parseInt(
127
+ rows[ i ].getAttribute( 'aria-level' ),
128
+ 10
129
+ ) === level
130
+ ) {
131
+ parentRow = rows[ i ];
132
+ break;
133
+ }
134
+ }
135
+ getRowFocusables( parentRow )?.[ 0 ]?.focus();
117
136
  }
118
- getRowFocusables( parentRow )?.[ 0 ]?.focus();
119
- } else {
120
- // Right:
121
- // If a row is focused, and it is collapsed, expands the current row.
122
- if ( activeRow?.ariaExpanded === 'false' ) {
123
- onExpandRow( activeRow );
124
- event.preventDefault();
125
- return;
126
- }
127
- // If a row is focused, and it is expanded, focuses the rightmost cell in the row.
128
- const focusableItems = getRowFocusables( activeRow );
129
- if ( focusableItems.length > 0 ) {
130
- focusableItems[ focusableItems.length - 1 ]?.focus();
137
+ if ( keyCode === RIGHT ) {
138
+ // Right:
139
+ // If a row is focused, and it is collapsed, expands the current row.
140
+ if (
141
+ activeRow.getAttribute( 'aria-expanded' ) ===
142
+ 'false'
143
+ ) {
144
+ onExpandRow( activeRow );
145
+ event.preventDefault();
146
+ return;
147
+ }
148
+ // If a row is focused, and it is expanded, focuses the rightmost cell in the row.
149
+ const focusableItems = getRowFocusables( activeRow );
150
+ if ( focusableItems.length > 0 ) {
151
+ focusableItems[
152
+ focusableItems.length - 1
153
+ ]?.focus();
154
+ }
131
155
  }
156
+ // Prevent key use for anything else. For example, Voiceover
157
+ // will start reading text on continued use of left/right arrow
158
+ // keys.
159
+ event.preventDefault();
160
+ return;
132
161
  }
133
- // Prevent key use for anything else. For example, Voiceover
134
- // will start reading text on continued use of left/right arrow
135
- // keys.
136
- event.preventDefault();
137
- return;
138
- }
139
162
 
140
- // Focus the next element.
141
- focusablesInRow[ nextIndex ].focus();
142
-
143
- // Prevent key use for anything else. This ensures Voiceover
144
- // doesn't try to handle key navigation.
145
- event.preventDefault();
146
- } else if ( includes( [ UP, DOWN ], keyCode ) ) {
147
- // Calculate the rowIndex of the next row.
148
- const rows = Array.from(
149
- treeGridElement.querySelectorAll( '[role="row"]' )
150
- );
151
- const currentRowIndex = rows.indexOf( activeRow );
152
- let nextRowIndex;
153
-
154
- if ( keyCode === UP ) {
155
- nextRowIndex = Math.max( 0, currentRowIndex - 1 );
156
- } else {
157
- nextRowIndex = Math.min( currentRowIndex + 1, rows.length - 1 );
158
- }
163
+ // Focus the next element. If at most left column and row is collapsed, moving right is not allowed as this will expand. However, if row is collapsed, moving left is allowed.
164
+ if ( cannotFocusNextColumn ) {
165
+ return;
166
+ }
167
+ focusablesInRow[ nextIndex ].focus();
159
168
 
160
- // Focus is either at the top or bottom edge of the grid. Do nothing.
161
- if ( nextRowIndex === currentRowIndex ) {
162
- // Prevent key use for anything else. For example, Voiceover
163
- // will start navigating horizontally when reaching the vertical
164
- // bounds of a table.
169
+ // Prevent key use for anything else. This ensures Voiceover
170
+ // doesn't try to handle key navigation.
165
171
  event.preventDefault();
166
- return;
167
- }
172
+ } else if ( includes( [ UP, DOWN ], keyCode ) ) {
173
+ // Calculate the rowIndex of the next row.
174
+ const rows = Array.from(
175
+ treeGridElement.querySelectorAll( '[role="row"]' )
176
+ );
177
+ const currentRowIndex = rows.indexOf( activeRow );
178
+ let nextRowIndex;
179
+
180
+ if ( keyCode === UP ) {
181
+ nextRowIndex = Math.max( 0, currentRowIndex - 1 );
182
+ } else {
183
+ nextRowIndex = Math.min(
184
+ currentRowIndex + 1,
185
+ rows.length - 1
186
+ );
187
+ }
168
188
 
169
- // Get the focusables in the next row.
170
- const focusablesInNextRow = getRowFocusables(
171
- rows[ nextRowIndex ]
172
- );
189
+ // Focus is either at the top or bottom edge of the grid. Do nothing.
190
+ if ( nextRowIndex === currentRowIndex ) {
191
+ // Prevent key use for anything else. For example, Voiceover
192
+ // will start navigating horizontally when reaching the vertical
193
+ // bounds of a table.
194
+ event.preventDefault();
195
+ return;
196
+ }
197
+
198
+ // Get the focusables in the next row.
199
+ const focusablesInNextRow = getRowFocusables(
200
+ rows[ nextRowIndex ]
201
+ );
202
+
203
+ // If for some reason there are no focusables in the next row, do nothing.
204
+ if ( ! focusablesInNextRow || ! focusablesInNextRow.length ) {
205
+ // Prevent key use for anything else. For example, Voiceover
206
+ // will still focus text when using arrow keys, while this
207
+ // component should limit navigation to focusables.
208
+ event.preventDefault();
209
+ return;
210
+ }
173
211
 
174
- // If for some reason there are no focusables in the next row, do nothing.
175
- if ( ! focusablesInNextRow || ! focusablesInNextRow.length ) {
176
- // Prevent key use for anything else. For example, Voiceover
177
- // will still focus text when using arrow keys, while this
178
- // component should limit navigation to focusables.
212
+ // Try to focus the element in the next row that's at a similar column to the activeElement.
213
+ const nextIndex = Math.min(
214
+ currentColumnIndex,
215
+ focusablesInNextRow.length - 1
216
+ );
217
+ focusablesInNextRow[ nextIndex ].focus();
218
+
219
+ // Prevent key use for anything else. This ensures Voiceover
220
+ // doesn't try to handle key navigation.
179
221
  event.preventDefault();
180
- return;
181
222
  }
182
-
183
- // Try to focus the element in the next row that's at a similar column to the activeElement.
184
- const nextIndex = Math.min(
185
- currentColumnIndex,
186
- focusablesInNextRow.length - 1
187
- );
188
- focusablesInNextRow[ nextIndex ].focus();
189
-
190
- // Prevent key use for anything else. This ensures Voiceover
191
- // doesn't try to handle key navigation.
192
- event.preventDefault();
193
- }
194
- }, [] );
223
+ },
224
+ [ onExpandRow, onCollapseRow ]
225
+ );
195
226
 
196
227
  /* Disable reason: A treegrid is implemented using a table element. */
197
228
  /* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role */
@@ -59,7 +59,7 @@ export default function useTruncate( props ) {
59
59
  shouldTruncate && !! numberOfLines && sx.numberOfLines,
60
60
  className
61
61
  );
62
- }, [ className, numberOfLines, shouldTruncate ] );
62
+ }, [ className, cx, numberOfLines, shouldTruncate ] );
63
63
 
64
64
  return { ...otherProps, className: classes, children: truncatedContent };
65
65
  }
package/src/ui/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  This directory contains the code for next Component System.
4
4
 
5
- More information can be found in the original Github issue:
5
+ More information can be found in the original GitHub issue:
6
6
  https://github.com/WordPress/gutenberg/issues/27484
7
7
 
8
8
  ## Usage
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- // eslint-disable-next-line no-restricted-imports
5
4
  import type * as React from 'react';
6
5
 
7
6
  /**
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- // eslint-disable-next-line no-restricted-imports
5
4
  import type { CSSProperties } from 'react';
6
5
 
7
6
  /**
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- // eslint-disable-next-line no-restricted-imports
5
4
  import type { CSSProperties, ReactNode, ReactText } from 'react';
6
5
 
7
6
  /**
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- // eslint-disable-next-line no-restricted-imports
5
4
  import type { Ref } from 'react';
6
5
 
7
6
  /**
@@ -3,7 +3,6 @@
3
3
  */
4
4
  // eslint-disable-next-line no-restricted-imports
5
5
  import type { TooltipInitialState, TooltipProps } from 'reakit';
6
- // eslint-disable-next-line no-restricted-imports
7
6
  import type { ReactElement, ReactNode } from 'react';
8
7
 
9
8
  /**
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- // eslint-disable-next-line no-restricted-imports
5
4
  import type { CSSProperties, ReactText } from 'react';
6
5
 
7
6
  /**
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- // eslint-disable-next-line no-restricted-imports
5
4
  import type { ReactNode, ReactNodeArray } from 'react';
6
5
 
7
6
  /**
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- // eslint-disable-next-line no-restricted-imports
5
4
  import type {
6
5
  FocusEventHandler,
7
6
  KeyboardEvent,
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- // eslint-disable-next-line no-restricted-imports
5
- import type { SyntheticEvent } from 'react';
4
+ import type { CSSProperties, SyntheticEvent } from 'react';
6
5
 
7
6
  /**
8
7
  * Internal dependencies
@@ -80,6 +79,7 @@ export type UnitSelectControlProps = {
80
79
 
81
80
  export type UnitControlProps = UnitSelectControlProps & {
82
81
  __unstableStateReducer?: StateReducer;
82
+ __unstableInputWidth?: CSSProperties[ 'width' ];
83
83
  /**
84
84
  * If `true`, the unit `<select>` is hidden.
85
85
  *
@@ -3,7 +3,6 @@
3
3
  */
4
4
  import { noop } from 'lodash';
5
5
  import classnames from 'classnames';
6
- // eslint-disable-next-line no-restricted-imports
7
6
  import type { ChangeEvent } from 'react';
8
7
 
9
8
  /**
@@ -31,8 +31,9 @@ export const G2 = {
31
31
  700: '#757575', // Meets 4.6:1 text contrast against white.
32
32
  600: '#949494', // Meets 3:1 UI or large text contrast against white.
33
33
  400: '#ccc',
34
- 200: '#ddd', // Used for most borders.
35
- 100: '#f0f0f0',
34
+ 300: '#ddd', // Used for most borders.
35
+ 200: '#e0e0e0', // Used sparingly for light borders.
36
+ 100: '#f0f0f0', // Used for light gray backgrounds.
36
37
  },
37
38
  darkGray: {
38
39
  primary: '#1e1e1e',
@@ -158,7 +159,7 @@ export const UI = {
158
159
  borderHover: G2.gray[ 700 ],
159
160
  borderFocus: ADMIN.themeDark10,
160
161
  borderDisabled: G2.gray[ 400 ],
161
- borderLight: G2.gray[ 200 ],
162
+ borderLight: G2.gray[ 300 ],
162
163
  label: DARK_GRAY[ 500 ],
163
164
  textDisabled: DARK_GRAY[ 150 ],
164
165
  textDark: BASE.white,
@@ -29,10 +29,6 @@ const CONTROL_PROPS = {
29
29
  const TOGGLE_GROUP_CONTROL_PROPS = {
30
30
  toggleGroupControlBackgroundColor: CONTROL_PROPS.controlBackgroundColor,
31
31
  toggleGroupControlBorderColor: COLORS.ui.border,
32
- toggleGroupControlBackdropBackgroundColor:
33
- CONTROL_PROPS.controlSurfaceColor,
34
- toggleGroupControlBackdropBorderColor: COLORS.ui.border,
35
- toggleGroupControlBackdropBoxShadow: 'transparent',
36
32
  toggleGroupControlButtonColorActive: CONTROL_PROPS.controlBackgroundColor,
37
33
  };
38
34
 
@@ -48,7 +44,7 @@ export default {
48
44
  borderWidth: '1px',
49
45
  borderWidthFocus: '1.5px',
50
46
  borderWidthTab: '4px',
51
- spinnerSize: '18px',
47
+ spinnerSize: 16,
52
48
  fontSize: '13px',
53
49
  fontSizeH1: 'calc(2.44 * 13px)',
54
50
  fontSizeH2: 'calc(1.95 * 13px)',
@@ -1,68 +1,145 @@
1
1
  /**
2
- * Internal dependencies
2
+ * External dependencies
3
3
  */
4
- import { useCx } from '..';
5
- import StyleProvider from '../../../style-provider';
4
+ import { css } from '@emotion/react';
6
5
 
7
6
  /**
8
7
  * WordPress dependencies
9
8
  */
10
- import { useState, createPortal } from '@wordpress/element';
9
+ import { __unstableIframe as Iframe } from '@wordpress/block-editor';
10
+ import { useMemo } from '@wordpress/element';
11
+
11
12
  /**
12
- * External dependencies
13
+ * Internal dependencies
13
14
  */
14
- import { css } from '@emotion/react';
15
+ import { useCx } from '..';
16
+ import StyleProvider from '../../../style-provider';
17
+ import {
18
+ createSlotFill,
19
+ Provider as SlotFillProvider,
20
+ } from '../../../slot-fill';
15
21
 
16
22
  export default {
17
23
  title: 'Components (Experimental)/useCx',
18
24
  };
19
25
 
20
- const IFrame = ( { children } ) => {
21
- const [ iframeDocument, setIframeDocument ] = useState();
26
+ const Example = ( { serializedStyles, children } ) => {
27
+ const cx = useCx();
28
+ const classes = cx( serializedStyles );
29
+ return <span className={ classes }>{ children }</span>;
30
+ };
31
+
32
+ const ExampleWithUseMemoWrong = ( { serializedStyles, children } ) => {
33
+ const cx = useCx();
34
+ // Wrong: using 'useMemo' without adding 'cx' to the dependency list.
35
+ // eslint-disable-next-line react-hooks/exhaustive-deps
36
+ const classes = useMemo( () => cx( serializedStyles ), [
37
+ serializedStyles,
38
+ ] );
39
+ return <span className={ classes }>{ children }</span>;
40
+ };
22
41
 
23
- const handleRef = ( node ) => {
24
- if ( ! node ) {
25
- return null;
26
- }
42
+ const ExampleWithUseMemoRight = ( { serializedStyles, children } ) => {
43
+ const cx = useCx();
44
+ // Right: using 'useMemo' with 'cx' listed as a dependency.
45
+ const classes = useMemo( () => cx( serializedStyles ), [
46
+ cx,
47
+ serializedStyles,
48
+ ] );
49
+ return <span className={ classes }>{ children }</span>;
50
+ };
27
51
 
28
- function setIfReady() {
29
- const { contentDocument } = node;
30
- const { readyState } = contentDocument;
52
+ export const _slotFill = () => {
53
+ const { Fill, Slot } = createSlotFill( 'UseCxExampleSlot' );
31
54
 
32
- if ( readyState !== 'interactive' && readyState !== 'complete' ) {
33
- return false;
34
- }
55
+ const redText = css`
56
+ color: red;
57
+ `;
58
+ const blueText = css`
59
+ color: blue;
60
+ `;
61
+ const greenText = css`
62
+ color: green;
63
+ `;
35
64
 
36
- setIframeDocument( contentDocument );
37
- }
65
+ return (
66
+ <SlotFillProvider>
67
+ <StyleProvider document={ document }>
68
+ <Iframe>
69
+ <Iframe>
70
+ <Example serializedStyles={ redText }>
71
+ This text is inside an iframe and should be red
72
+ </Example>
73
+ <Fill name="test-slot">
74
+ <Example serializedStyles={ blueText }>
75
+ This text is also inside the iframe, but is
76
+ relocated by a slot/fill and should be blue
77
+ </Example>
78
+ </Fill>
79
+ <Fill name="outside-frame">
80
+ <Example serializedStyles={ greenText }>
81
+ This text is also inside the iframe, but is
82
+ relocated by a slot/fill and should be green
83
+ </Example>
84
+ </Fill>
85
+ </Iframe>
86
+ <StyleProvider document={ document }>
87
+ <Slot bubblesVirtually name="test-slot" />
88
+ </StyleProvider>
89
+ </Iframe>
90
+ <Slot bubblesVirtually name="outside-frame" />
91
+ </StyleProvider>
92
+ </SlotFillProvider>
93
+ );
94
+ };
38
95
 
39
- if ( setIfReady() ) {
40
- return;
41
- }
96
+ export const _slotFillSimple = () => {
97
+ const { Fill, Slot } = createSlotFill( 'UseCxExampleSlotTwo' );
42
98
 
43
- node.addEventListener( 'load', () => {
44
- // iframe isn't immediately ready in Firefox
45
- setIfReady();
46
- } );
47
- };
99
+ const redText = css`
100
+ color: red;
101
+ `;
48
102
 
49
103
  return (
50
- <iframe ref={ handleRef } title="use-cx-test-frame">
51
- { iframeDocument &&
52
- createPortal(
53
- <StyleProvider document={ iframeDocument }>
54
- { children }
55
- </StyleProvider>,
56
- iframeDocument.body
57
- ) }
58
- </iframe>
104
+ <SlotFillProvider>
105
+ <Iframe>
106
+ <Fill name="test-slot">
107
+ <Example serializedStyles={ redText }>
108
+ This text should be red
109
+ </Example>
110
+ </Fill>
111
+ </Iframe>
112
+ <Slot bubblesVirtually name="test-slot" />
113
+ </SlotFillProvider>
59
114
  );
60
115
  };
61
116
 
62
- const Example = ( { args, children } ) => {
63
- const cx = useCx();
64
- const classes = cx( ...args );
65
- return <span className={ classes }>{ children }</span>;
117
+ export const _useMemoBadPractices = () => {
118
+ const redText = css`
119
+ color: red;
120
+ `;
121
+ const blueText = css`
122
+ color: blue;
123
+ `;
124
+
125
+ return (
126
+ <>
127
+ <Example serializedStyles={ redText }>
128
+ This text should be red
129
+ </Example>
130
+ <ExampleWithUseMemoRight serializedStyles={ blueText }>
131
+ This text should be blue
132
+ </ExampleWithUseMemoRight>
133
+ <Iframe>
134
+ <Example serializedStyles={ redText }>
135
+ This text should be red
136
+ </Example>
137
+ <ExampleWithUseMemoWrong serializedStyles={ blueText }>
138
+ This text should be blue but it&apos;s not!
139
+ </ExampleWithUseMemoWrong>
140
+ </Iframe>
141
+ </>
142
+ );
66
143
  };
67
144
 
68
145
  export const _default = () => {
@@ -70,10 +147,10 @@ export const _default = () => {
70
147
  color: red;
71
148
  `;
72
149
  return (
73
- <IFrame>
74
- <Example args={ [ redText ] }>
150
+ <Iframe>
151
+ <Example serializedStyles={ redText }>
75
152
  This text is inside an iframe and is red!
76
153
  </Example>
77
- </IFrame>
154
+ </Iframe>
78
155
  );
79
156
  };