@wordpress/components 19.3.0 → 19.4.1

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 (318) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/CONTRIBUTING.md +1 -1
  3. package/README.md +8 -4
  4. package/build/base-field/hook.js +1 -1
  5. package/build/base-field/hook.js.map +1 -1
  6. package/build/button/deprecated.js +2 -1
  7. package/build/button/deprecated.js.map +1 -1
  8. package/build/button/index.js +2 -1
  9. package/build/button/index.js.map +1 -1
  10. package/build/card/card/component.js +1 -1
  11. package/build/card/card/component.js.map +1 -1
  12. package/build/card/card/hook.js +1 -1
  13. package/build/card/card/hook.js.map +1 -1
  14. package/build/card/card-body/hook.js +1 -1
  15. package/build/card/card-body/hook.js.map +1 -1
  16. package/build/card/card-divider/hook.js +1 -1
  17. package/build/card/card-divider/hook.js.map +1 -1
  18. package/build/card/card-footer/hook.js +1 -1
  19. package/build/card/card-footer/hook.js.map +1 -1
  20. package/build/card/card-header/hook.js +1 -1
  21. package/build/card/card-header/hook.js.map +1 -1
  22. package/build/card/card-media/hook.js +1 -1
  23. package/build/card/card-media/hook.js.map +1 -1
  24. package/build/circular-option-picker/index.js +2 -0
  25. package/build/circular-option-picker/index.js.map +1 -1
  26. package/build/color-indicator/index.js +2 -0
  27. package/build/color-indicator/index.js.map +1 -1
  28. package/build/color-palette/index.js +2 -0
  29. package/build/color-palette/index.js.map +1 -1
  30. package/build/color-picker/color-display.js.map +1 -1
  31. package/build/color-picker/color-input.js.map +1 -1
  32. package/build/color-picker/component.js +1 -1
  33. package/build/color-picker/component.js.map +1 -1
  34. package/build/color-picker/use-deprecated-props.js +2 -0
  35. package/build/color-picker/use-deprecated-props.js.map +1 -1
  36. package/build/date-time/time.js +1 -1
  37. package/build/date-time/time.js.map +1 -1
  38. package/build/dropdown/index.js +3 -3
  39. package/build/dropdown/index.js.map +1 -1
  40. package/build/elevation/hook.js +5 -5
  41. package/build/elevation/hook.js.map +1 -1
  42. package/build/flex/flex/hook.js +4 -4
  43. package/build/flex/flex/hook.js.map +1 -1
  44. package/build/grid/hook.js +2 -2
  45. package/build/grid/hook.js.map +1 -1
  46. package/build/item-group/item/hook.js +1 -1
  47. package/build/item-group/item/hook.js.map +1 -1
  48. package/build/mobile/inserter-button/index.native.js +3 -3
  49. package/build/mobile/inserter-button/index.native.js.map +1 -1
  50. package/build/mobile/inserter-button/sparkles.js +25 -0
  51. package/build/mobile/inserter-button/sparkles.js.map +1 -0
  52. package/build/modal/index.js +1 -12
  53. package/build/modal/index.js.map +1 -1
  54. package/build/navigator/context.js +2 -2
  55. package/build/navigator/context.js.map +1 -1
  56. package/build/navigator/navigator-provider/component.js +18 -25
  57. package/build/navigator/navigator-provider/component.js.map +1 -1
  58. package/build/navigator/navigator-screen/component.js +39 -13
  59. package/build/navigator/navigator-screen/component.js.map +1 -1
  60. package/build/navigator/use-navigator.js +4 -4
  61. package/build/navigator/use-navigator.js.map +1 -1
  62. package/build/placeholder/index.js +4 -4
  63. package/build/placeholder/index.js.map +1 -1
  64. package/build/scrollable/hook.js +1 -1
  65. package/build/scrollable/hook.js.map +1 -1
  66. package/build/slot-fill/bubbles-virtually/fill.js +11 -2
  67. package/build/slot-fill/bubbles-virtually/fill.js.map +1 -1
  68. package/build/spinner/index.js +44 -5
  69. package/build/spinner/index.js.map +1 -1
  70. package/build/spinner/styles.js +56 -0
  71. package/build/spinner/styles.js.map +1 -0
  72. package/build/surface/hook.js +1 -1
  73. package/build/surface/hook.js.map +1 -1
  74. package/build/text/hook.js +5 -5
  75. package/build/text/hook.js.map +1 -1
  76. package/build/tip/index.js +4 -8
  77. package/build/tip/index.js.map +1 -1
  78. package/build/toggle-group-control/toggle-group-control/component.js +1 -1
  79. package/build/toggle-group-control/toggle-group-control/component.js.map +1 -1
  80. package/build/tools-panel/tools-panel/hook.js +7 -7
  81. package/build/tools-panel/tools-panel/hook.js.map +1 -1
  82. package/build/tools-panel/tools-panel-header/hook.js +3 -3
  83. package/build/tools-panel/tools-panel-header/hook.js.map +1 -1
  84. package/build/tools-panel/tools-panel-item/hook.js +1 -1
  85. package/build/tools-panel/tools-panel-item/hook.js.map +1 -1
  86. package/build/tree-grid/index.js +13 -6
  87. package/build/tree-grid/index.js.map +1 -1
  88. package/build/truncate/hook.js +2 -2
  89. package/build/truncate/hook.js.map +1 -1
  90. package/build/utils/config-values.js +1 -1
  91. package/build/utils/config-values.js.map +1 -1
  92. package/build-module/base-field/hook.js +1 -1
  93. package/build-module/base-field/hook.js.map +1 -1
  94. package/build-module/button/deprecated.js +2 -1
  95. package/build-module/button/deprecated.js.map +1 -1
  96. package/build-module/button/index.js +2 -1
  97. package/build-module/button/index.js.map +1 -1
  98. package/build-module/card/card/component.js +1 -1
  99. package/build-module/card/card/component.js.map +1 -1
  100. package/build-module/card/card/hook.js +1 -1
  101. package/build-module/card/card/hook.js.map +1 -1
  102. package/build-module/card/card-body/hook.js +1 -1
  103. package/build-module/card/card-body/hook.js.map +1 -1
  104. package/build-module/card/card-divider/hook.js +1 -1
  105. package/build-module/card/card-divider/hook.js.map +1 -1
  106. package/build-module/card/card-footer/hook.js +1 -1
  107. package/build-module/card/card-footer/hook.js.map +1 -1
  108. package/build-module/card/card-header/hook.js +1 -1
  109. package/build-module/card/card-header/hook.js.map +1 -1
  110. package/build-module/card/card-media/hook.js +1 -1
  111. package/build-module/card/card-media/hook.js.map +1 -1
  112. package/build-module/circular-option-picker/index.js +1 -0
  113. package/build-module/circular-option-picker/index.js.map +1 -1
  114. package/build-module/color-indicator/index.js +1 -0
  115. package/build-module/color-indicator/index.js.map +1 -1
  116. package/build-module/color-palette/index.js +1 -0
  117. package/build-module/color-palette/index.js.map +1 -1
  118. package/build-module/color-picker/color-display.js.map +1 -1
  119. package/build-module/color-picker/color-input.js.map +1 -1
  120. package/build-module/color-picker/component.js +1 -1
  121. package/build-module/color-picker/component.js.map +1 -1
  122. package/build-module/color-picker/use-deprecated-props.js +2 -0
  123. package/build-module/color-picker/use-deprecated-props.js.map +1 -1
  124. package/build-module/date-time/time.js +1 -1
  125. package/build-module/date-time/time.js.map +1 -1
  126. package/build-module/dropdown/index.js +3 -3
  127. package/build-module/dropdown/index.js.map +1 -1
  128. package/build-module/elevation/hook.js +5 -5
  129. package/build-module/elevation/hook.js.map +1 -1
  130. package/build-module/flex/flex/hook.js +4 -4
  131. package/build-module/flex/flex/hook.js.map +1 -1
  132. package/build-module/grid/hook.js +2 -2
  133. package/build-module/grid/hook.js.map +1 -1
  134. package/build-module/item-group/item/hook.js +1 -1
  135. package/build-module/item-group/item/hook.js.map +1 -1
  136. package/build-module/mobile/inserter-button/index.native.js +1 -1
  137. package/build-module/mobile/inserter-button/index.native.js.map +1 -1
  138. package/build-module/mobile/inserter-button/sparkles.js +16 -0
  139. package/build-module/mobile/inserter-button/sparkles.js.map +1 -0
  140. package/build-module/modal/index.js +1 -11
  141. package/build-module/modal/index.js.map +1 -1
  142. package/build-module/navigator/context.js +2 -2
  143. package/build-module/navigator/context.js.map +1 -1
  144. package/build-module/navigator/navigator-provider/component.js +18 -25
  145. package/build-module/navigator/navigator-provider/component.js.map +1 -1
  146. package/build-module/navigator/navigator-screen/component.js +39 -15
  147. package/build-module/navigator/navigator-screen/component.js.map +1 -1
  148. package/build-module/navigator/use-navigator.js +4 -4
  149. package/build-module/navigator/use-navigator.js.map +1 -1
  150. package/build-module/placeholder/index.js +4 -4
  151. package/build-module/placeholder/index.js.map +1 -1
  152. package/build-module/scrollable/hook.js +1 -1
  153. package/build-module/scrollable/hook.js.map +1 -1
  154. package/build-module/slot-fill/bubbles-virtually/fill.js +11 -2
  155. package/build-module/slot-fill/bubbles-virtually/fill.js.map +1 -1
  156. package/build-module/spinner/index.js +40 -5
  157. package/build-module/spinner/index.js.map +1 -1
  158. package/build-module/spinner/styles.js +49 -0
  159. package/build-module/spinner/styles.js.map +1 -0
  160. package/build-module/surface/hook.js +1 -1
  161. package/build-module/surface/hook.js.map +1 -1
  162. package/build-module/text/hook.js +5 -5
  163. package/build-module/text/hook.js.map +1 -1
  164. package/build-module/tip/index.js +4 -8
  165. package/build-module/tip/index.js.map +1 -1
  166. package/build-module/toggle-group-control/toggle-group-control/component.js +1 -1
  167. package/build-module/toggle-group-control/toggle-group-control/component.js.map +1 -1
  168. package/build-module/tools-panel/tools-panel/hook.js +7 -7
  169. package/build-module/tools-panel/tools-panel/hook.js.map +1 -1
  170. package/build-module/tools-panel/tools-panel-header/hook.js +3 -3
  171. package/build-module/tools-panel/tools-panel-header/hook.js.map +1 -1
  172. package/build-module/tools-panel/tools-panel-item/hook.js +1 -1
  173. package/build-module/tools-panel/tools-panel-item/hook.js.map +1 -1
  174. package/build-module/tree-grid/index.js +12 -6
  175. package/build-module/tree-grid/index.js.map +1 -1
  176. package/build-module/truncate/hook.js +2 -2
  177. package/build-module/truncate/hook.js.map +1 -1
  178. package/build-module/utils/config-values.js +1 -1
  179. package/build-module/utils/config-values.js.map +1 -1
  180. package/build-style/style-rtl.css +12 -2
  181. package/build-style/style.css +12 -2
  182. package/build-types/button/index.d.ts.map +1 -1
  183. package/build-types/circular-option-picker/index.d.ts +31 -0
  184. package/build-types/circular-option-picker/index.d.ts.map +1 -0
  185. package/build-types/color-palette/index.d.ts +16 -0
  186. package/build-types/color-palette/index.d.ts.map +1 -0
  187. package/build-types/color-palette/styles.d.ts +8 -0
  188. package/build-types/color-palette/styles.d.ts.map +1 -0
  189. package/build-types/color-picker/color-display.d.ts +14 -0
  190. package/build-types/color-picker/color-display.d.ts.map +1 -0
  191. package/build-types/color-picker/color-input.d.ts +14 -0
  192. package/build-types/color-picker/color-input.d.ts.map +1 -0
  193. package/build-types/color-picker/component.d.ts +11 -0
  194. package/build-types/color-picker/component.d.ts.map +1 -0
  195. package/build-types/color-picker/hex-input.d.ts +13 -0
  196. package/build-types/color-picker/hex-input.d.ts.map +1 -0
  197. package/build-types/color-picker/hsl-input.d.ts +13 -0
  198. package/build-types/color-picker/hsl-input.d.ts.map +1 -0
  199. package/build-types/color-picker/index.d.ts +5 -0
  200. package/build-types/color-picker/index.d.ts.map +1 -0
  201. package/build-types/color-picker/input-with-slider.d.ts +12 -0
  202. package/build-types/color-picker/input-with-slider.d.ts.map +1 -0
  203. package/build-types/color-picker/legacy-adapter.d.ts +6 -0
  204. package/build-types/color-picker/legacy-adapter.d.ts.map +1 -0
  205. package/build-types/color-picker/picker.d.ts +10 -0
  206. package/build-types/color-picker/picker.d.ts.map +1 -0
  207. package/build-types/color-picker/rgb-input.d.ts +13 -0
  208. package/build-types/color-picker/rgb-input.d.ts.map +1 -0
  209. package/build-types/color-picker/styles.d.ts +76 -0
  210. package/build-types/color-picker/styles.d.ts.map +1 -0
  211. package/build-types/color-picker/types.d.ts +2 -0
  212. package/build-types/color-picker/types.d.ts.map +1 -0
  213. package/build-types/color-picker/use-deprecated-props.d.ts +49 -0
  214. package/build-types/color-picker/use-deprecated-props.d.ts.map +1 -0
  215. package/build-types/dropdown/index.d.ts +1 -13
  216. package/build-types/dropdown/index.d.ts.map +1 -1
  217. package/build-types/elevation/hook.d.ts.map +1 -1
  218. package/build-types/flex/flex/hook.d.ts.map +1 -1
  219. package/build-types/grid/hook.d.ts.map +1 -1
  220. package/build-types/navigator/navigator-provider/component.d.ts +4 -4
  221. package/build-types/navigator/navigator-provider/component.d.ts.map +1 -1
  222. package/build-types/navigator/navigator-screen/component.d.ts +4 -4
  223. package/build-types/navigator/navigator-screen/component.d.ts.map +1 -1
  224. package/build-types/navigator/types.d.ts +5 -3
  225. package/build-types/navigator/types.d.ts.map +1 -1
  226. package/build-types/resizable-box/index.d.ts +1 -1
  227. package/build-types/resizable-box/resize-tooltip/index.d.ts +1 -1
  228. package/build-types/slot-fill/bubbles-virtually/fill.d.ts.map +1 -1
  229. package/build-types/spinner/index.d.ts +18 -1
  230. package/build-types/spinner/index.d.ts.map +1 -1
  231. package/build-types/spinner/styles.d.ts +13 -0
  232. package/build-types/spinner/styles.d.ts.map +1 -0
  233. package/build-types/surface/hook.d.ts.map +1 -1
  234. package/build-types/text/hook.d.ts.map +1 -1
  235. package/build-types/tip/index.d.ts.map +1 -1
  236. package/build-types/tools-panel/tools-panel/hook.d.ts.map +1 -1
  237. package/build-types/tools-panel/tools-panel-item/hook.d.ts.map +1 -1
  238. package/build-types/unit-control/index.d.ts +3 -2
  239. package/build-types/unit-control/index.d.ts.map +1 -1
  240. package/build-types/unit-control/types.d.ts +2 -1
  241. package/build-types/unit-control/types.d.ts.map +1 -1
  242. package/build-types/utils/config-values.d.ts +1 -1
  243. package/package.json +16 -17
  244. package/src/base-field/hook.js +1 -1
  245. package/src/button/deprecated.js +1 -0
  246. package/src/button/index.js +1 -0
  247. package/src/card/card/component.js +1 -1
  248. package/src/card/card/hook.js +1 -1
  249. package/src/card/card-body/hook.js +1 -1
  250. package/src/card/card-divider/hook.js +1 -1
  251. package/src/card/card-footer/hook.js +1 -1
  252. package/src/card/card-header/hook.js +1 -1
  253. package/src/card/card-media/hook.js +1 -1
  254. package/src/circular-option-picker/index.js +1 -0
  255. package/src/color-indicator/index.js +2 -0
  256. package/src/color-palette/index.js +1 -0
  257. package/src/color-palette/test/__snapshots__/index.js.snap +0 -1
  258. package/src/color-picker/color-display.tsx +1 -1
  259. package/src/color-picker/color-input.tsx +1 -1
  260. package/src/color-picker/component.tsx +1 -1
  261. package/src/color-picker/use-deprecated-props.ts +2 -0
  262. package/src/combobox-control/stories/index.js +6 -2
  263. package/src/combobox-control/style.scss +2 -2
  264. package/src/date-time/README.md +4 -4
  265. package/src/date-time/test/time.js +2 -2
  266. package/src/date-time/time.js +2 -2
  267. package/src/dropdown/index.js +14 -13
  268. package/src/elevation/hook.js +1 -0
  269. package/src/flex/flex/hook.js +1 -0
  270. package/src/grid/hook.js +1 -0
  271. package/src/item-group/item/hook.ts +1 -1
  272. package/src/item-group/stories/index.js +2 -2
  273. package/src/mobile/inserter-button/index.native.js +1 -2
  274. package/src/mobile/inserter-button/sparkles.js +15 -0
  275. package/src/mobile/link-settings/test/edit.native.js +5 -5
  276. package/src/modal/index.js +1 -10
  277. package/src/navigator/context.ts +2 -2
  278. package/src/navigator/navigator-provider/README.md +11 -9
  279. package/src/navigator/navigator-provider/component.tsx +16 -25
  280. package/src/navigator/navigator-screen/component.tsx +55 -15
  281. package/src/navigator/stories/index.js +19 -5
  282. package/src/navigator/test/index.js +77 -25
  283. package/src/navigator/types.ts +5 -3
  284. package/src/navigator/use-navigator.ts +3 -3
  285. package/src/placeholder/index.js +8 -6
  286. package/src/placeholder/style.scss +12 -0
  287. package/src/placeholder/test/index.js +18 -1
  288. package/src/scrollable/hook.js +1 -1
  289. package/src/slot-fill/bubbles-virtually/fill.js +12 -1
  290. package/src/spinner/README.md +10 -10
  291. package/src/spinner/index.js +42 -3
  292. package/src/spinner/stories/index.js +36 -3
  293. package/src/spinner/styles.js +47 -0
  294. package/src/surface/hook.js +1 -0
  295. package/src/text/hook.js +1 -0
  296. package/src/tip/index.js +2 -4
  297. package/src/toggle-group-control/toggle-group-control/component.tsx +1 -1
  298. package/src/tools-panel/stories/index.js +20 -1
  299. package/src/tools-panel/test/__snapshots__/index.js.snap +0 -1
  300. package/src/tools-panel/test/index.js +31 -1
  301. package/src/tools-panel/tools-panel/hook.ts +14 -9
  302. package/src/tools-panel/tools-panel-header/hook.ts +3 -3
  303. package/src/tools-panel/tools-panel-item/hook.ts +1 -0
  304. package/src/tree-grid/index.js +19 -5
  305. package/src/truncate/hook.js +1 -1
  306. package/src/unit-control/types.ts +2 -1
  307. package/src/utils/config-values.js +1 -1
  308. package/src/utils/hooks/stories/use-cx.js +121 -44
  309. package/tsconfig.json +3 -0
  310. package/tsconfig.tsbuildinfo +1 -1
  311. package/build/spinner/styles/spinner-styles.js +0 -40
  312. package/build/spinner/styles/spinner-styles.js.map +0 -1
  313. package/build-module/spinner/styles/spinner-styles.js +0 -28
  314. package/build-module/spinner/styles/spinner-styles.js.map +0 -1
  315. package/build-types/spinner/styles/spinner-styles.d.ts +0 -5
  316. package/build-types/spinner/styles/spinner-styles.d.ts.map +0 -1
  317. package/src/spinner/styles/spinner-styles.js +0 -47
  318. package/src/ui/visually-hidden/README.md +0 -21
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/unit-control/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,KAAK,EACX,mBAAmB,EACnB,IAAI,IAAI,SAAS,EACjB,MAAM,wBAAwB,CAAC;AAEhC,oBAAY,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAEpC,oBAAY,UAAU,GAAG,SAAS,CAAC;AAEnC,oBAAY,iBAAiB,GAAG;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,oBAAY,qBAAqB,GAAG,KAAK,CAAE,iBAAiB,CAAE,GAAG,KAAK,CAAC;AAEvE,oBAAY,2BAA2B,GAAG,mBAAmB,CAC5D,cAAc,CAAE,iBAAiB,GAAG,gBAAgB,CAAE,EACtD;IAAE,IAAI,CAAC,EAAE,iBAAiB,CAAA;CAAE,CAC5B,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACpC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,2BAA2B,CAAC;IACvC;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,KAAK,CAAC,EAAE,qBAAqB,CAAC;CAC9B,CAAC;AAEF,oBAAY,gBAAgB,GAAG,sBAAsB,GAAG;IACvD,sBAAsB,CAAC,EAAE,YAAY,CAAC;IACtC;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;;OAKG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,YAAY,CAAC,EAAE,2BAA2B,CAAC;IAC3C;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC;CACb,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/unit-control/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE3D;;GAEG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,KAAK,EACX,mBAAmB,EACnB,IAAI,IAAI,SAAS,EACjB,MAAM,wBAAwB,CAAC;AAEhC,oBAAY,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAEpC,oBAAY,UAAU,GAAG,SAAS,CAAC;AAEnC,oBAAY,iBAAiB,GAAG;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,oBAAY,qBAAqB,GAAG,KAAK,CAAE,iBAAiB,CAAE,GAAG,KAAK,CAAC;AAEvE,oBAAY,2BAA2B,GAAG,mBAAmB,CAC5D,cAAc,CAAE,iBAAiB,GAAG,gBAAgB,CAAE,EACtD;IAAE,IAAI,CAAC,EAAE,iBAAiB,CAAA;CAAE,CAC5B,CAAC;AAEF,oBAAY,sBAAsB,GAAG;IACpC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,2BAA2B,CAAC;IACvC;;;;OAIG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,KAAK,CAAC,EAAE,qBAAqB,CAAC;CAC9B,CAAC;AAEF,oBAAY,gBAAgB,GAAG,sBAAsB,GAAG;IACvD,sBAAsB,CAAC,EAAE,YAAY,CAAC;IACtC,oBAAoB,CAAC,EAAE,aAAa,CAAE,OAAO,CAAE,CAAC;IAChD;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;;OAKG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,YAAY,CAAC,EAAE,2BAA2B,CAAC;IAC3C;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC;CACb,CAAC"}
@@ -8,7 +8,7 @@ declare namespace _default {
8
8
  export const borderWidth: string;
9
9
  export const borderWidthFocus: string;
10
10
  export const borderWidthTab: string;
11
- export const spinnerSize: string;
11
+ export const spinnerSize: number;
12
12
  export const fontSize: string;
13
13
  export const fontSizeH1: string;
14
14
  export const fontSizeH2: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/components",
3
- "version": "19.3.0",
3
+ "version": "19.4.1",
4
4
  "description": "UI components for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -36,20 +36,20 @@
36
36
  "@emotion/serialize": "^1.0.2",
37
37
  "@emotion/styled": "^11.6.0",
38
38
  "@emotion/utils": "1.0.0",
39
- "@wordpress/a11y": "^3.3.0",
40
- "@wordpress/compose": "^5.1.0",
41
- "@wordpress/date": "^4.3.0",
42
- "@wordpress/deprecated": "^3.3.0",
43
- "@wordpress/dom": "^3.3.0",
44
- "@wordpress/element": "^4.1.0",
45
- "@wordpress/hooks": "^3.3.0",
46
- "@wordpress/i18n": "^4.3.0",
47
- "@wordpress/icons": "^6.2.0",
48
- "@wordpress/is-shallow-equal": "^4.3.0",
49
- "@wordpress/keycodes": "^3.3.0",
50
- "@wordpress/primitives": "^3.1.0",
51
- "@wordpress/rich-text": "^5.1.0",
52
- "@wordpress/warning": "^2.3.0",
39
+ "@wordpress/a11y": "^3.3.1",
40
+ "@wordpress/compose": "^5.1.1",
41
+ "@wordpress/date": "^4.3.1",
42
+ "@wordpress/deprecated": "^3.3.1",
43
+ "@wordpress/dom": "^3.3.1",
44
+ "@wordpress/element": "^4.1.1",
45
+ "@wordpress/hooks": "^3.3.1",
46
+ "@wordpress/i18n": "^4.3.1",
47
+ "@wordpress/icons": "^7.0.0",
48
+ "@wordpress/is-shallow-equal": "^4.3.1",
49
+ "@wordpress/keycodes": "^3.3.1",
50
+ "@wordpress/primitives": "^3.1.1",
51
+ "@wordpress/rich-text": "^5.1.1",
52
+ "@wordpress/warning": "^2.3.1",
53
53
  "classnames": "^2.3.1",
54
54
  "colord": "^2.7.0",
55
55
  "dom-scroll-into-view": "^1.2.1",
@@ -66,7 +66,6 @@
66
66
  "react-resize-aware": "^3.1.0",
67
67
  "react-use-gesture": "^9.0.0",
68
68
  "reakit": "^1.3.8",
69
- "rememo": "^3.0.0",
70
69
  "uuid": "^8.3.0"
71
70
  },
72
71
  "peerDependencies": {
@@ -76,5 +75,5 @@
76
75
  "publishConfig": {
77
76
  "access": "public"
78
77
  },
79
- "gitHead": "d95ccb9366e249133cdb1d7b25c382446b9ee502"
78
+ "gitHead": "0f838547f37472e46e6d5a9d2e84b6c61f4bd3f0"
80
79
  }
@@ -50,7 +50,7 @@ export function useBaseField( props ) {
50
50
  isInline && styles.inline,
51
51
  className
52
52
  ),
53
- [ className, controlGroupStyles, hasError, isInline, isSubtle ]
53
+ [ className, controlGroupStyles, cx, hasError, isInline, isSubtle ]
54
54
  );
55
55
 
56
56
  return {
@@ -14,6 +14,7 @@ function IconButton( { labelPosition, size, tooltip, label, ...props }, ref ) {
14
14
  deprecated( 'wp.components.IconButton', {
15
15
  since: '5.4',
16
16
  alternative: 'wp.components.Button',
17
+ version: '6.2',
17
18
  } );
18
19
 
19
20
  return (
@@ -48,6 +48,7 @@ function useDeprecatedProps( {
48
48
  deprecated( 'Button isDefault prop', {
49
49
  since: '5.4',
50
50
  alternative: 'variant="secondary"',
51
+ version: '6.2',
51
52
  } );
52
53
 
53
54
  computedVariant ??= 'secondary';
@@ -38,7 +38,7 @@ function Card( props, forwardedRef ) {
38
38
 
39
39
  const elevationClassName = useMemo(
40
40
  () => cx( css( { borderRadius: elevationBorderRadius } ) ),
41
- [ elevationBorderRadius ]
41
+ [ cx, elevationBorderRadius ]
42
42
  );
43
43
 
44
44
  const contextProviderValue = useMemo( () => {
@@ -61,7 +61,7 @@ export function useCard( props ) {
61
61
  isRounded && styles.rounded,
62
62
  className
63
63
  );
64
- }, [ className, isBorderless, isRounded ] );
64
+ }, [ className, cx, isBorderless, isRounded ] );
65
65
 
66
66
  const surfaceProps = useSurface( { ...otherProps, className: classes } );
67
67
 
@@ -35,7 +35,7 @@ export function useCardBody( props ) {
35
35
  'components-card__body',
36
36
  className
37
37
  ),
38
- [ className, isShady, size ]
38
+ [ className, cx, isShady, size ]
39
39
  );
40
40
 
41
41
  return {
@@ -30,7 +30,7 @@ export function useCardDivider( props ) {
30
30
  'components-card__divider',
31
31
  className
32
32
  ),
33
- [ className ]
33
+ [ className, cx ]
34
34
  );
35
35
 
36
36
  return {
@@ -38,7 +38,7 @@ export function useCardFooter( props ) {
38
38
  'components-card__footer',
39
39
  className
40
40
  ),
41
- [ className, isBorderless, isShady, size ]
41
+ [ className, cx, isBorderless, isShady, size ]
42
42
  );
43
43
 
44
44
  return {
@@ -37,7 +37,7 @@ export function useCardHeader( props ) {
37
37
  'components-card__header',
38
38
  className
39
39
  ),
40
- [ className, isBorderless, isShady, size ]
40
+ [ className, cx, isBorderless, isShady, size ]
41
41
  );
42
42
 
43
43
  return {
@@ -27,7 +27,7 @@ export function useCardMedia( props ) {
27
27
  'components-card__media',
28
28
  className
29
29
  ),
30
- [ className ]
30
+ [ className, cx ]
31
31
  );
32
32
 
33
33
  return {
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  /**
2
3
  * External dependencies
3
4
  */
@@ -1,3 +1,5 @@
1
+ // @ts-nocheck
2
+
1
3
  /**
2
4
  * External dependencies
3
5
  */
@@ -1,3 +1,4 @@
1
+ // @ts-nocheck
1
2
  /**
2
3
  * External dependencies
3
4
  */
@@ -391,7 +391,6 @@ exports[`ColorPalette should render a dynamic toolbar of colors 1`] = `
391
391
  fill="#000"
392
392
  focusable={false}
393
393
  height={24}
394
- role="img"
395
394
  viewBox="0 0 24 24"
396
395
  width={24}
397
396
  xmlns="http://www.w3.org/2000/svg"
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import { colord, extend, Colord } from 'colord';
4
+ import type { Colord } from 'colord';
5
5
 
6
6
  /**
7
7
  * WordPress dependencies
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import { colord, extend, Colord } from 'colord';
4
+ import type { Colord } from 'colord';
5
5
 
6
6
  /**
7
7
  * Internal dependencies
@@ -73,7 +73,7 @@ const ColorPicker = (
73
73
  } );
74
74
 
75
75
  const safeColordColor = useMemo( () => {
76
- return colord( color );
76
+ return colord( color || '' );
77
77
  }, [ color ] );
78
78
 
79
79
  const debouncedSetColor = useDebounce( setColor );
@@ -83,6 +83,8 @@ function getColorFromLegacyProps( props: LegacyProps ): string | undefined {
83
83
  if ( props.color.hex ) {
84
84
  return props.color.hex;
85
85
  }
86
+
87
+ return undefined;
86
88
  }
87
89
 
88
90
  const transformColorStringToLegacyColor = memoize(
@@ -266,7 +266,7 @@ const mapCountryOption = ( country ) => ( {
266
266
 
267
267
  const countryOptions = countries.map( mapCountryOption );
268
268
 
269
- function CountryCodeComboboxControl() {
269
+ function CountryCodeComboboxControl( { allowReset } ) {
270
270
  const [ value, setValue ] = useState( null );
271
271
 
272
272
  return (
@@ -276,9 +276,13 @@ function CountryCodeComboboxControl() {
276
276
  onChange={ setValue }
277
277
  label="Select a country"
278
278
  options={ countryOptions }
279
+ allowReset={ allowReset }
279
280
  />
280
281
  <p>Value: { value }</p>
281
282
  </>
282
283
  );
283
284
  }
284
- export const _default = () => <CountryCodeComboboxControl />;
285
+ export const _default = CountryCodeComboboxControl.bind( {} );
286
+ _default.args = {
287
+ allowReset: false,
288
+ };
@@ -40,7 +40,7 @@ input.components-combobox-control__input[type="text"] {
40
40
 
41
41
  .components-combobox-control__reset.components-button {
42
42
  display: flex;
43
- height: $grid-unit-30;
44
- min-width: $grid-unit-30;
43
+ height: $grid-unit-20;
44
+ min-width: $grid-unit-20;
45
45
  padding: 0;
46
46
  }
@@ -28,7 +28,7 @@ const MyDateTimePicker = () => {
28
28
  is12Hour={ true }
29
29
  />
30
30
  );
31
- }
31
+ };
32
32
  ```
33
33
 
34
34
  ## Props
@@ -52,7 +52,7 @@ The function called when a new date or time has been selected. It is passed the
52
52
 
53
53
  ### is12Hour
54
54
 
55
- Whether we use a 12-hour clock. With a 12-hour clock, an AM/PM widget is displayed and the time format is assumed to be MM-DD-YYYY.
55
+ Whether we use a 12-hour clock. With a 12-hour clock, an AM/PM widget is displayed and the time format is assumed to be `MM-DD-YYYY` (as opposed to the default format `DD-MM-YYYY`).
56
56
 
57
57
  - Type: `bool`
58
58
  - Required: No
@@ -69,5 +69,5 @@ A callback function which receives a Date object representing a day as an argume
69
69
 
70
70
  A callback invoked when selecting the previous/next month in the date picker. The callback receives the new month date in the ISO format as an argument.
71
71
 
72
- - Type: `Function`
73
- - Required: No
72
+ - Type: `Function`
73
+ - Required: No
@@ -278,7 +278,7 @@ describe( 'TimePicker', () => {
278
278
  screen.getByLabelText( 'Day' )
279
279
  );
280
280
 
281
- expect( monthInputIndex < dayInputIndex ).toBe( true );
281
+ expect( monthInputIndex > dayInputIndex ).toBe( true );
282
282
 
283
283
  rerender(
284
284
  <form aria-label="form">
@@ -299,7 +299,7 @@ describe( 'TimePicker', () => {
299
299
  screen.getByLabelText( 'Day' )
300
300
  );
301
301
 
302
- expect( monthInputIndex > dayInputIndex ).toBe( true );
302
+ expect( monthInputIndex < dayInputIndex ).toBe( true );
303
303
  } );
304
304
 
305
305
  it( 'Should set a time when passed a null currentTime', () => {
@@ -196,13 +196,13 @@ export function TimePicker( { is12Hour, currentTime, onChange } ) {
196
196
 
197
197
  const dayMonthFormat = is12Hour ? (
198
198
  <>
199
- { dayFormat }
200
199
  { monthFormat }
200
+ { dayFormat }
201
201
  </>
202
202
  ) : (
203
203
  <>
204
- { monthFormat }
205
204
  { dayFormat }
205
+ { monthFormat }
206
206
  </>
207
207
  );
208
208
 
@@ -27,19 +27,20 @@ function useObservableState( initialState, onStateChange ) {
27
27
  ];
28
28
  }
29
29
 
30
- export default function Dropdown( {
31
- renderContent,
32
- renderToggle,
33
- position = 'bottom right',
34
- className,
35
- contentClassName,
36
- expandOnMobile,
37
- headerTitle,
38
- focusOnMount,
39
- popoverProps,
40
- onClose,
41
- onToggle,
42
- } ) {
30
+ export default function Dropdown( props ) {
31
+ const {
32
+ renderContent,
33
+ renderToggle,
34
+ position = 'bottom right',
35
+ className,
36
+ contentClassName,
37
+ expandOnMobile,
38
+ headerTitle,
39
+ focusOnMount,
40
+ popoverProps,
41
+ onClose,
42
+ onToggle,
43
+ } = props;
43
44
  const containerRef = useRef();
44
45
  const [ isOpen, setIsOpen ] = useObservableState( false, onToggle );
45
46
 
@@ -112,6 +112,7 @@ export function useElevation( props ) {
112
112
  active,
113
113
  borderRadius,
114
114
  className,
115
+ cx,
115
116
  focus,
116
117
  hover,
117
118
  isInteractive,
@@ -126,6 +126,7 @@ export function useFlex( props ) {
126
126
  }, [
127
127
  align,
128
128
  className,
129
+ cx,
129
130
  direction,
130
131
  expanded,
131
132
  gap,
package/src/grid/hook.js CHANGED
@@ -71,6 +71,7 @@ export default function useGrid( props ) {
71
71
  alignment,
72
72
  className,
73
73
  columnGap,
74
+ cx,
74
75
  gap,
75
76
  gridTemplateColumns,
76
77
  gridTemplateRows,
@@ -48,7 +48,7 @@ export function useItem( props: WordPressComponentProps< ItemProps, 'div' > ) {
48
48
  spacedAround && styles.spacedAround,
49
49
  className
50
50
  ),
51
- [ as, className, size, spacedAround ]
51
+ [ as, className, cx, size, spacedAround ]
52
52
  );
53
53
 
54
54
  const wrapperClassName = cx( styles.itemWrapper );
@@ -145,7 +145,7 @@ const ItemWithChevron = ( {
145
145
 
146
146
  const itemClassName = useMemo(
147
147
  () => cx( ! alwaysVisible && appearingChevron, className ),
148
- [ alwaysVisible, className ]
148
+ [ alwaysVisible, className, cx ]
149
149
  );
150
150
 
151
151
  const chevronIconClassName = useMemo(
@@ -155,7 +155,7 @@ const ItemWithChevron = ( {
155
155
  fill: currentColor;
156
156
  transform: ${ isRtlLayout ? 'scaleX( -100% )' : 'none' };
157
157
  ` ),
158
- [ isRtlLayout ]
158
+ [ cx, isRtlLayout ]
159
159
  );
160
160
 
161
161
  return (
@@ -10,14 +10,13 @@ import { Component } from '@wordpress/element';
10
10
  import { Icon } from '@wordpress/components';
11
11
  import { withPreferredColorScheme } from '@wordpress/compose';
12
12
  import { __, sprintf } from '@wordpress/i18n';
13
- import { sparkles } from '@wordpress/icons';
14
13
  import { BlockIcon } from '@wordpress/block-editor';
15
14
 
16
15
  /**
17
16
  * Internal dependencies
18
17
  */
19
18
  import styles from './style.scss';
20
-
19
+ import sparkles from './sparkles';
21
20
  class MenuItem extends Component {
22
21
  constructor() {
23
22
  super( ...arguments );
@@ -0,0 +1,15 @@
1
+ /**
2
+ * WordPress dependencies
3
+ */
4
+ import { SVG, Path } from '@wordpress/primitives';
5
+
6
+ const sparkles = (
7
+ <SVG viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
8
+ <Path
9
+ d="M10 11c-1.588-.479-4-.91-4-.91s2-.241 4-.454c1.8-.191 3.365-.502 4-3.181C14.635 3.775 15 1 15 1s.365 2.775 1 5.455c.635 2.679 2 2.969 4 3.181 2 .213 4 .455 4 .455s-2.412.43-4 .909c-1.588.479-3 1-4 4.546-.746 2.643-.893 4.948-1 5.454-.107-.506-.167-2.5-1-5.454C13 12 11.588 11.479 10 11zM7.333 3.5C6.803 3.333 6 3.182 6 3.182s.667-.085 1.333-.16c.6-.066 1.122-.175 1.334-1.113C8.878.971 9 0 9 0s.122.971.333 1.91c.212.937.667 1.038 1.334 1.113.666.074 1.333.159 1.333.159s-.804.15-1.333.318c-.53.167-1 .35-1.334 1.59C9.085 6.017 9.036 6.824 9 7c-.036-.177-.056-.875-.333-1.91-.334-1.24-.804-1.423-1.334-1.59zM2.444 18C1.474 17.713 0 17.454 0 17.454s1.222-.145 2.444-.272c1.1-.115 2.057-.302 2.445-1.91C5.277 13.666 5.5 12 5.5 12s.223 1.665.611 3.273c.388 1.607 1.222 1.781 2.445 1.909 1.222.127 2.444.273 2.444.273s-1.474.258-2.444.545c-.971.287-1.834.6-2.445 2.727-.456 1.586-.546 2.97-.611 3.273-.065-.304-.102-1.5-.611-3.273C4.278 18.6 3.415 18.287 2.444 18z"
10
+ fill="#F0C930"
11
+ />
12
+ </SVG>
13
+ );
14
+
15
+ export default sparkles;
@@ -72,7 +72,7 @@ describe.each( [
72
72
  it( 'should display the LINK SETTINGS with an EMPTY LINK TO field.', async () => {
73
73
  // Arrange
74
74
  const url = 'https://tonytahmouchtest.files.wordpress.com';
75
- const subject = initializeEditor( { initialHtml } );
75
+ const subject = await initializeEditor( { initialHtml } );
76
76
  Clipboard.getString.mockReturnValue( url );
77
77
 
78
78
  // Act
@@ -109,7 +109,7 @@ describe.each( [
109
109
  it( 'should display the LINK PICKER with NO FROM CLIPBOARD CELL.', async () => {
110
110
  // Arrange
111
111
  const url = 'tonytahmouchtest.files.wordpress.com';
112
- const subject = initializeEditor( { initialHtml } );
112
+ const subject = await initializeEditor( { initialHtml } );
113
113
  Clipboard.getString.mockReturnValue( url );
114
114
 
115
115
  // Act
@@ -162,7 +162,7 @@ describe.each( [
162
162
  it( 'should display the LINK PICKER with NO FROM CLIPBOARD CELL.', async () => {
163
163
  // Arrange
164
164
  const url = 'https://tonytahmouchtest.files.wordpress.com';
165
- const subject = initializeEditor( { initialHtml } );
165
+ const subject = await initializeEditor( { initialHtml } );
166
166
  Clipboard.getString.mockReturnValue( url );
167
167
 
168
168
  // Act
@@ -241,7 +241,7 @@ describe.each( [
241
241
  async () => {
242
242
  // Arrange
243
243
  const url = 'https://tonytahmouchtest.files.wordpress.com';
244
- const subject = initializeEditor( { initialHtml } );
244
+ const subject = await initializeEditor( { initialHtml } );
245
245
  Clipboard.getString.mockReturnValue( url );
246
246
 
247
247
  // Act
@@ -308,7 +308,7 @@ describe.each( [
308
308
  async () => {
309
309
  // Arrange
310
310
  const url = 'https://tonytahmouchtest.files.wordpress.com';
311
- const subject = initializeEditor( { initialHtml } );
311
+ const subject = await initializeEditor( { initialHtml } );
312
312
  Clipboard.getString.mockReturnValue( url );
313
313
 
314
314
  // Act
@@ -22,7 +22,6 @@ import {
22
22
  useConstrainedTabbing,
23
23
  useMergeRefs,
24
24
  } from '@wordpress/compose';
25
- import deprecated from '@wordpress/deprecated';
26
25
  import { ESCAPE } from '@wordpress/keycodes';
27
26
  import { __ } from '@wordpress/i18n';
28
27
  import { closeSmall } from '@wordpress/icons';
@@ -45,8 +44,7 @@ function Modal( props, forwardedRef ) {
45
44
  focusOnMount = true,
46
45
  shouldCloseOnEsc = true,
47
46
  shouldCloseOnClickOutside = true,
48
- isDismissable, // Deprecated
49
- isDismissible = isDismissable || true,
47
+ isDismissible = true,
50
48
  /* accessibility */
51
49
  aria = {
52
50
  labelledby: null,
@@ -93,13 +91,6 @@ function Modal( props, forwardedRef ) {
93
91
  };
94
92
  }, [] );
95
93
 
96
- if ( isDismissable ) {
97
- deprecated( 'isDismissable prop of the Modal component', {
98
- since: '5.4',
99
- alternative: 'isDismissible prop (renamed) of the Modal component',
100
- } );
101
- }
102
-
103
94
  function handleEscapeKeyDown( event ) {
104
95
  if (
105
96
  shouldCloseOnEsc &&
@@ -10,7 +10,7 @@ import type { NavigatorContext as NavigatorContextType } from './types';
10
10
 
11
11
  const initialContextValue: NavigatorContextType = {
12
12
  location: {},
13
- push: () => {},
14
- pop: () => {},
13
+ goTo: () => {},
14
+ goBack: () => {},
15
15
  };
16
16
  export const NavigatorContext = createContext( initialContextValue );
@@ -16,19 +16,19 @@ import {
16
16
  } from '@wordpress/components';
17
17
 
18
18
  function NavigatorButton( { path, ...props } ) {
19
- const { push } = useNavigator();
19
+ const { goTo } = useNavigator();
20
20
  return (
21
21
  <Button
22
22
  variant="primary"
23
- onClick={ () => push( path ) }
23
+ onClick={ () => goTo( path ) }
24
24
  { ...props }
25
25
  />
26
26
  );
27
27
  }
28
28
 
29
29
  function NavigatorBackButton( props ) {
30
- const { pop } = useNavigator();
31
- return <Button variant="secondary" onClick={ () => pop() } { ...props } />;
30
+ const { goBack } = useNavigator();
31
+ return <Button variant="secondary" onClick={ () => goBack() } { ...props } />;
32
32
  }
33
33
 
34
34
  const MyNavigation = () => (
@@ -64,15 +64,17 @@ You can retrieve a `navigator` instance by using the `useNavigator` hook.
64
64
 
65
65
  The `navigator` instance has a few properties:
66
66
 
67
- ### `push`: `( path: string, options: NavigateOptions ) => void`
67
+ ### `goTo`: `( path: string, options: NavigateOptions ) => void`
68
68
 
69
- The `push` function allows navigating to a given path. The second argument can augment the navigation operations with different options.
69
+ The `goTo` function allows navigating to a given path. The second argument can augment the navigation operations with different options.
70
70
 
71
- There currently aren't any available options.
71
+ The available options are:
72
72
 
73
- ### `pop`: `() => void`
73
+ - `focusTargetSelector`: `string`. An optional property used to specify the CSS selector used to restore focus on the matching element when navigating back.
74
74
 
75
- The `pop` function allows navigating to the previous path.
75
+ ### `goBack`: `() => void`
76
+
77
+ The `goBack` function allows navigating to the previous path.
76
78
 
77
79
  ### `location`: `NavigatorLocation`
78
80