@wordpress/components 27.0.0 → 27.2.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 (314) hide show
  1. package/CHANGELOG.md +50 -2
  2. package/build/base-control/index.native.js.map +1 -1
  3. package/build/border-box-control/border-box-control/component.js.map +1 -1
  4. package/build/border-box-control/border-box-control-split-controls/component.js.map +1 -1
  5. package/build/border-control/border-control-dropdown/component.js.map +1 -1
  6. package/build/button/index.js +4 -5
  7. package/build/button/index.js.map +1 -1
  8. package/build/button/index.native.js.map +1 -1
  9. package/build/button/types.js.map +1 -1
  10. package/build/confirm-dialog/component.js.map +1 -1
  11. package/build/custom-select-control-v2/default-component/index.js.map +1 -1
  12. package/build/custom-select-control-v2/index.js +2 -2
  13. package/build/custom-select-control-v2/index.js.map +1 -1
  14. package/build/custom-select-control-v2/types.js.map +1 -1
  15. package/build/date-time/date/styles.js +7 -7
  16. package/build/date-time/date/styles.js.map +1 -1
  17. package/build/draggable/index.native.js +2 -2
  18. package/build/draggable/index.native.js.map +1 -1
  19. package/build/dropdown-menu/index.native.js.map +1 -1
  20. package/build/flex/flex/hook.js +1 -1
  21. package/build/flex/flex/hook.js.map +1 -1
  22. package/build/font-size-picker/index.native.js.map +1 -1
  23. package/build/form-token-field/index.js +1 -1
  24. package/build/form-token-field/index.js.map +1 -1
  25. package/build/h-stack/hook.js +6 -1
  26. package/build/h-stack/hook.js.map +1 -1
  27. package/build/input-control/index.js +1 -1
  28. package/build/input-control/index.js.map +1 -1
  29. package/build/mobile/bottom-sheet/button.native.js.map +1 -1
  30. package/build/mobile/bottom-sheet/index.native.js.map +1 -1
  31. package/build/mobile/bottom-sheet/range-cell.native.js.map +1 -1
  32. package/build/mobile/bottom-sheet/stepper-cell/index.native.js.map +1 -1
  33. package/build/mobile/bottom-sheet-select-control/index.native.js.map +1 -1
  34. package/build/mobile/bottom-sheet-text-control/index.native.js.map +1 -1
  35. package/build/mobile/gradient/index.native.js.map +1 -1
  36. package/build/mobile/image/index.native.js +4 -13
  37. package/build/mobile/image/index.native.js.map +1 -1
  38. package/build/mobile/media-edit/index.native.js.map +1 -1
  39. package/build/palette-edit/index.js +18 -12
  40. package/build/palette-edit/index.js.map +1 -1
  41. package/build/query-controls/index.native.js.map +1 -1
  42. package/build/range-control/index.js.map +1 -1
  43. package/build/search-control/index.native.js.map +1 -1
  44. package/build/snackbar/index.js +3 -2
  45. package/build/snackbar/index.js.map +1 -1
  46. package/build/snackbar/list.js +2 -1
  47. package/build/snackbar/list.js.map +1 -1
  48. package/build/snackbar/types.js.map +1 -1
  49. package/build/tabs/index.js +7 -7
  50. package/build/tabs/index.js.map +1 -1
  51. package/build/tabs/types.js.map +1 -1
  52. package/build/text-control/types.js.map +1 -1
  53. package/build/toggle-group-control/toggle-group-control-option-base/component.js +4 -1
  54. package/build/toggle-group-control/toggle-group-control-option-base/component.js.map +1 -1
  55. package/build/tools-panel/tools-panel-header/component.js +1 -1
  56. package/build/tools-panel/tools-panel-header/component.js.map +1 -1
  57. package/build/utils/config-values.js +1 -1
  58. package/build/utils/config-values.js.map +1 -1
  59. package/build/utils/hooks/index.js +0 -7
  60. package/build/utils/hooks/index.js.map +1 -1
  61. package/build/utils/input/base.js +2 -2
  62. package/build/utils/input/base.js.map +1 -1
  63. package/build-module/base-control/index.native.js.map +1 -1
  64. package/build-module/border-box-control/border-box-control/component.js.map +1 -1
  65. package/build-module/border-box-control/border-box-control-split-controls/component.js.map +1 -1
  66. package/build-module/border-control/border-control-dropdown/component.js.map +1 -1
  67. package/build-module/button/index.js +4 -5
  68. package/build-module/button/index.js.map +1 -1
  69. package/build-module/button/index.native.js.map +1 -1
  70. package/build-module/button/types.js.map +1 -1
  71. package/build-module/confirm-dialog/component.js.map +1 -1
  72. package/build-module/custom-select-control-v2/default-component/index.js.map +1 -1
  73. package/build-module/custom-select-control-v2/index.js +1 -1
  74. package/build-module/custom-select-control-v2/index.js.map +1 -1
  75. package/build-module/custom-select-control-v2/types.js.map +1 -1
  76. package/build-module/date-time/date/styles.js +7 -7
  77. package/build-module/date-time/date/styles.js.map +1 -1
  78. package/build-module/draggable/index.native.js +2 -2
  79. package/build-module/draggable/index.native.js.map +1 -1
  80. package/build-module/dropdown-menu/index.native.js.map +1 -1
  81. package/build-module/flex/flex/hook.js +1 -1
  82. package/build-module/flex/flex/hook.js.map +1 -1
  83. package/build-module/font-size-picker/index.native.js.map +1 -1
  84. package/build-module/form-token-field/index.js +1 -1
  85. package/build-module/form-token-field/index.js.map +1 -1
  86. package/build-module/h-stack/hook.js +6 -1
  87. package/build-module/h-stack/hook.js.map +1 -1
  88. package/build-module/input-control/index.js +1 -1
  89. package/build-module/input-control/index.js.map +1 -1
  90. package/build-module/mobile/bottom-sheet/button.native.js.map +1 -1
  91. package/build-module/mobile/bottom-sheet/index.native.js.map +1 -1
  92. package/build-module/mobile/bottom-sheet/range-cell.native.js.map +1 -1
  93. package/build-module/mobile/bottom-sheet/stepper-cell/index.native.js.map +1 -1
  94. package/build-module/mobile/bottom-sheet-select-control/index.native.js.map +1 -1
  95. package/build-module/mobile/bottom-sheet-text-control/index.native.js.map +1 -1
  96. package/build-module/mobile/gradient/index.native.js.map +1 -1
  97. package/build-module/mobile/image/index.native.js +6 -15
  98. package/build-module/mobile/image/index.native.js.map +1 -1
  99. package/build-module/mobile/media-edit/index.native.js.map +1 -1
  100. package/build-module/palette-edit/index.js +17 -11
  101. package/build-module/palette-edit/index.js.map +1 -1
  102. package/build-module/query-controls/index.native.js.map +1 -1
  103. package/build-module/range-control/index.js.map +1 -1
  104. package/build-module/search-control/index.native.js.map +1 -1
  105. package/build-module/snackbar/index.js +3 -2
  106. package/build-module/snackbar/index.js.map +1 -1
  107. package/build-module/snackbar/list.js +2 -1
  108. package/build-module/snackbar/list.js.map +1 -1
  109. package/build-module/snackbar/types.js.map +1 -1
  110. package/build-module/tabs/index.js +7 -7
  111. package/build-module/tabs/index.js.map +1 -1
  112. package/build-module/tabs/types.js.map +1 -1
  113. package/build-module/text-control/types.js.map +1 -1
  114. package/build-module/toggle-group-control/toggle-group-control-option-base/component.js +4 -1
  115. package/build-module/toggle-group-control/toggle-group-control-option-base/component.js.map +1 -1
  116. package/build-module/tools-panel/tools-panel-header/component.js +1 -1
  117. package/build-module/tools-panel/tools-panel-header/component.js.map +1 -1
  118. package/build-module/utils/config-values.js +1 -1
  119. package/build-module/utils/config-values.js.map +1 -1
  120. package/build-module/utils/hooks/index.js +0 -1
  121. package/build-module/utils/hooks/index.js.map +1 -1
  122. package/build-module/utils/input/base.js +2 -2
  123. package/build-module/utils/input/base.js.map +1 -1
  124. package/build-style/style-rtl.css +33 -23
  125. package/build-style/style.css +33 -23
  126. package/build-types/box-control/styles/box-control-styles.d.ts +1 -1
  127. package/build-types/button/deprecated.d.ts +4 -10
  128. package/build-types/button/deprecated.d.ts.map +1 -1
  129. package/build-types/button/index.d.ts +3 -3
  130. package/build-types/button/index.d.ts.map +1 -1
  131. package/build-types/button/stories/e2e/index.story.d.ts +1 -1
  132. package/build-types/button/stories/e2e/index.story.d.ts.map +1 -1
  133. package/build-types/button/stories/index.story.d.ts +7 -7
  134. package/build-types/button/stories/index.story.d.ts.map +1 -1
  135. package/build-types/button/types.d.ts +37 -8
  136. package/build-types/button/types.d.ts.map +1 -1
  137. package/build-types/color-picker/styles.d.ts +1 -1
  138. package/build-types/custom-select-control-v2/default-component/index.d.ts +2 -1
  139. package/build-types/custom-select-control-v2/default-component/index.d.ts.map +1 -1
  140. package/build-types/custom-select-control-v2/index.d.ts +1 -1
  141. package/build-types/custom-select-control-v2/index.d.ts.map +1 -1
  142. package/build-types/custom-select-control-v2/legacy-component/test/index.d.ts +2 -0
  143. package/build-types/custom-select-control-v2/legacy-component/test/index.d.ts.map +1 -0
  144. package/build-types/custom-select-control-v2/stories/default.story.d.ts +4 -3
  145. package/build-types/custom-select-control-v2/stories/default.story.d.ts.map +1 -1
  146. package/build-types/custom-select-control-v2/stories/legacy.story.d.ts +2 -2
  147. package/build-types/custom-select-control-v2/stories/legacy.story.d.ts.map +1 -1
  148. package/build-types/custom-select-control-v2/types.d.ts +0 -1
  149. package/build-types/custom-select-control-v2/types.d.ts.map +1 -1
  150. package/build-types/date-time/date/styles.d.ts +1 -1
  151. package/build-types/dropdown/stories/index.story.d.ts +1 -0
  152. package/build-types/dropdown/stories/index.story.d.ts.map +1 -1
  153. package/build-types/flex/flex/hook.d.ts +2 -3
  154. package/build-types/flex/flex/hook.d.ts.map +1 -1
  155. package/build-types/font-size-picker/styles.d.ts +1 -1
  156. package/build-types/form-token-field/index.d.ts +1 -1
  157. package/build-types/h-stack/hook.d.ts +2 -4
  158. package/build-types/h-stack/hook.d.ts.map +1 -1
  159. package/build-types/input-control/index.d.ts +1 -1
  160. package/build-types/input-control/stories/index.story.d.ts.map +1 -1
  161. package/build-types/navigation/stories/utils/hide-if-empty.d.ts.map +1 -1
  162. package/build-types/navigation/styles/navigation-styles.d.ts +1 -1
  163. package/build-types/navigator/navigator-back-button/component.d.ts +0 -1
  164. package/build-types/navigator/navigator-back-button/component.d.ts.map +1 -1
  165. package/build-types/navigator/navigator-back-button/hook.d.ts +1 -2
  166. package/build-types/navigator/navigator-back-button/hook.d.ts.map +1 -1
  167. package/build-types/navigator/navigator-button/component.d.ts +0 -1
  168. package/build-types/navigator/navigator-button/component.d.ts.map +1 -1
  169. package/build-types/navigator/navigator-button/hook.d.ts +1 -2
  170. package/build-types/navigator/navigator-button/hook.d.ts.map +1 -1
  171. package/build-types/navigator/navigator-to-parent-button/component.d.ts +0 -1
  172. package/build-types/navigator/navigator-to-parent-button/component.d.ts.map +1 -1
  173. package/build-types/number-control/styles/number-control-styles.d.ts +1 -1
  174. package/build-types/palette-edit/index.d.ts +6 -3
  175. package/build-types/palette-edit/index.d.ts.map +1 -1
  176. package/build-types/palette-edit/styles.d.ts +2 -2
  177. package/build-types/radio-group/stories/index.story.d.ts.map +1 -1
  178. package/build-types/snackbar/index.d.ts +5 -2
  179. package/build-types/snackbar/index.d.ts.map +1 -1
  180. package/build-types/snackbar/list.d.ts.map +1 -1
  181. package/build-types/snackbar/test/index.d.ts +2 -0
  182. package/build-types/snackbar/test/index.d.ts.map +1 -0
  183. package/build-types/snackbar/test/list.d.ts +2 -0
  184. package/build-types/snackbar/test/list.d.ts.map +1 -0
  185. package/build-types/snackbar/types.d.ts +18 -2
  186. package/build-types/snackbar/types.d.ts.map +1 -1
  187. package/build-types/tabs/index.d.ts +1 -1
  188. package/build-types/tabs/types.d.ts +1 -1
  189. package/build-types/text-control/index.d.ts +1 -1
  190. package/build-types/text-control/types.d.ts +1 -1
  191. package/build-types/text-control/types.d.ts.map +1 -1
  192. package/build-types/toggle-group-control/toggle-group-control-option-base/component.d.ts.map +1 -1
  193. package/build-types/toolbar/toolbar-button/index.d.ts +4 -10
  194. package/build-types/toolbar/toolbar-button/index.d.ts.map +1 -1
  195. package/build-types/utils/hooks/index.d.ts +0 -1
  196. package/build-types/v-stack/hook.d.ts +2 -4
  197. package/build-types/v-stack/hook.d.ts.map +1 -1
  198. package/package.json +19 -19
  199. package/src/base-control/index.native.js +1 -1
  200. package/src/base-control/test/index.tsx +1 -1
  201. package/src/border-box-control/border-box-control/component.tsx +1 -1
  202. package/src/border-box-control/border-box-control-split-controls/component.tsx +4 -4
  203. package/src/border-control/border-control-dropdown/component.tsx +1 -1
  204. package/src/button/index.native.js +1 -1
  205. package/src/button/index.tsx +3 -4
  206. package/src/button/style.scss +1 -3
  207. package/src/button/test/index.tsx +6 -6
  208. package/src/button/types.ts +37 -9
  209. package/src/circular-option-picker/test/index.tsx +2 -4
  210. package/src/combobox-control/test/index.tsx +1 -1
  211. package/src/confirm-dialog/README.md +7 -0
  212. package/src/confirm-dialog/component.tsx +1 -1
  213. package/src/confirm-dialog/test/index.tsx +5 -21
  214. package/src/custom-select-control-v2/default-component/index.tsx +4 -1
  215. package/src/custom-select-control-v2/index.tsx +1 -1
  216. package/src/custom-select-control-v2/legacy-component/test/index.tsx +457 -0
  217. package/src/custom-select-control-v2/stories/legacy.story.tsx +5 -6
  218. package/src/custom-select-control-v2/test/index.tsx +279 -749
  219. package/src/custom-select-control-v2/types.ts +0 -1
  220. package/src/date-time/date/styles.ts +2 -2
  221. package/src/dimension-control/test/__snapshots__/index.test.js.snap +4 -4
  222. package/src/disabled/test/index.tsx +1 -1
  223. package/src/draggable/index.native.js +2 -2
  224. package/src/draggable/test/index.native.js +6 -2
  225. package/src/dropdown/stories/index.story.tsx +19 -0
  226. package/src/dropdown/style.scss +26 -0
  227. package/src/dropdown-menu/index.native.js +2 -2
  228. package/src/dropdown-menu/style.scss +0 -25
  229. package/src/flex/flex/README.md +2 -2
  230. package/src/flex/flex/hook.ts +1 -1
  231. package/src/font-size-picker/index.native.js +2 -2
  232. package/src/form-token-field/README.md +1 -1
  233. package/src/form-token-field/index.tsx +2 -2
  234. package/src/grid/README.md +11 -11
  235. package/src/h-stack/README.md +6 -6
  236. package/src/h-stack/hook.tsx +2 -1
  237. package/src/h-stack/test/index.tsx +10 -0
  238. package/src/heading/README.md +1 -1
  239. package/src/heading/test/__snapshots__/index.tsx.snap +3 -3
  240. package/src/input-control/README.md +1 -1
  241. package/src/input-control/index.tsx +1 -1
  242. package/src/input-control/stories/index.story.tsx +1 -0
  243. package/src/item-group/test/__snapshots__/index.js.snap +11 -11
  244. package/src/item-group/test/index.js +2 -2
  245. package/src/mobile/bottom-sheet/bottom-sheet-navigation/test/navigation-container.native.js +10 -15
  246. package/src/mobile/bottom-sheet/button.native.js +1 -5
  247. package/src/mobile/bottom-sheet/index.native.js +2 -2
  248. package/src/mobile/bottom-sheet/range-cell.native.js +1 -1
  249. package/src/mobile/bottom-sheet/stepper-cell/index.native.js +2 -2
  250. package/src/mobile/bottom-sheet-select-control/README.md +1 -1
  251. package/src/mobile/bottom-sheet-select-control/index.native.js +1 -1
  252. package/src/mobile/bottom-sheet-text-control/index.native.js +1 -1
  253. package/src/mobile/gradient/index.native.js +1 -1
  254. package/src/mobile/image/index.native.js +8 -23
  255. package/src/mobile/media-edit/index.native.js +1 -1
  256. package/src/modal/test/index.tsx +1 -1
  257. package/src/navigation/stories/utils/hide-if-empty.tsx +2 -6
  258. package/src/palette-edit/index.tsx +23 -23
  259. package/src/palette-edit/test/index.tsx +21 -17
  260. package/src/placeholder/style.scss +5 -1
  261. package/src/popover/test/index.tsx +1 -4
  262. package/src/progress-bar/README.md +1 -1
  263. package/src/query-controls/index.native.js +2 -2
  264. package/src/radio-control/README.md +3 -3
  265. package/src/radio-group/stories/index.story.tsx +1 -0
  266. package/src/range-control/index.tsx +3 -3
  267. package/src/range-control/test/index.tsx +2 -2
  268. package/src/resizable-box/resize-tooltip/README.md +2 -2
  269. package/src/search-control/index.native.js +1 -1
  270. package/src/snackbar/index.tsx +5 -2
  271. package/src/snackbar/list.tsx +6 -1
  272. package/src/snackbar/stories/list.story.tsx +0 -3
  273. package/src/snackbar/test/index.tsx +267 -0
  274. package/src/snackbar/test/list.tsx +46 -0
  275. package/src/snackbar/types.ts +31 -3
  276. package/src/tabs/README.md +18 -18
  277. package/src/tabs/index.tsx +7 -7
  278. package/src/tabs/stories/index.story.tsx +1 -1
  279. package/src/tabs/test/index.tsx +30 -30
  280. package/src/tabs/types.ts +1 -1
  281. package/src/text/test/__snapshots__/index.tsx.snap +3 -3
  282. package/src/text-control/types.ts +12 -1
  283. package/src/toggle-group-control/test/__snapshots__/index.tsx.snap +14 -10
  284. package/src/toggle-group-control/test/index.tsx +1 -1
  285. package/src/toggle-group-control/toggle-group-control-option-base/component.tsx +12 -10
  286. package/src/tools-panel/stories/index.story.tsx +8 -8
  287. package/src/tools-panel/test/index.tsx +10 -28
  288. package/src/tools-panel/tools-panel-header/component.tsx +1 -1
  289. package/src/tooltip/style.scss +2 -1
  290. package/src/tooltip/test/index.native.js +3 -3
  291. package/src/tree-grid/test/index.tsx +1 -1
  292. package/src/truncate/README.md +5 -5
  293. package/src/utils/config-values.js +1 -1
  294. package/src/utils/hooks/index.js +0 -1
  295. package/src/utils/input/base.js +1 -1
  296. package/src/v-stack/README.md +6 -6
  297. package/src/v-stack/test/index.tsx +10 -0
  298. package/tsconfig.json +1 -0
  299. package/tsconfig.tsbuildinfo +1 -1
  300. package/build/custom-select-control-v2/legacy-adapter.js +0 -29
  301. package/build/custom-select-control-v2/legacy-adapter.js.map +0 -1
  302. package/build/utils/hooks/use-latest-ref.js +0 -33
  303. package/build/utils/hooks/use-latest-ref.js.map +0 -1
  304. package/build-module/custom-select-control-v2/legacy-adapter.js +0 -21
  305. package/build-module/custom-select-control-v2/legacy-adapter.js.map +0 -1
  306. package/build-module/utils/hooks/use-latest-ref.js +0 -27
  307. package/build-module/utils/hooks/use-latest-ref.js.map +0 -1
  308. package/build-types/custom-select-control-v2/legacy-adapter.d.ts +0 -6
  309. package/build-types/custom-select-control-v2/legacy-adapter.d.ts.map +0 -1
  310. package/build-types/utils/hooks/use-latest-ref.d.ts +0 -15
  311. package/build-types/utils/hooks/use-latest-ref.d.ts.map +0 -1
  312. package/src/custom-select-control-v2/legacy-adapter.tsx +0 -25
  313. package/src/utils/hooks/test/use-latest-ref.js +0 -119
  314. package/src/utils/hooks/use-latest-ref.ts +0 -29
@@ -5,8 +5,8 @@ import type { Meta } from '@storybook/react';
5
5
  /**
6
6
  * Internal dependencies
7
7
  */
8
- import _LegacyCustomSelect from '../legacy-component';
9
- declare const meta: Meta<typeof _LegacyCustomSelect>;
8
+ import CustomSelect from '../legacy-component';
9
+ declare const meta: Meta<typeof CustomSelect>;
10
10
  export default meta;
11
11
  export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../types").LegacyCustomSelectProps>;
12
12
  //# sourceMappingURL=legacy.story.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"legacy.story.d.ts","sourceRoot":"","sources":["../../../src/custom-select-control-v2/stories/legacy.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AAOtD;;GAEG;AACH,OAAO,mBAAmB,MAAM,qBAAqB,CAAC;AAGtD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,mBAAmB,CA0B3C,CAAC;AACF,eAAe,IAAI,CAAC;AAiBpB,eAAO,MAAM,OAAO,2IAAsB,CAAC"}
1
+ {"version":3,"file":"legacy.story.d.ts","sourceRoot":"","sources":["../../../src/custom-select-control-v2/stories/legacy.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AAOtD;;GAEG;AACH,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAE/C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,YAAY,CA0BpC,CAAC;AACF,eAAe,IAAI,CAAC;AAiBpB,eAAO,MAAM,OAAO,2IAAsB,CAAC"}
@@ -80,7 +80,6 @@ type LegacyOnChangeObject = {
80
80
  selectedItem: LegacyOption;
81
81
  };
82
82
  export type LegacyCustomSelectProps = {
83
- children?: never;
84
83
  /**
85
84
  * Optional classname for the component.
86
85
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/custom-select-control-v2/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAElE,MAAM,MAAM,iBAAiB,GAAG;IAC/B;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,GAAG,SAAS,CAAC;AAEhE,MAAM,MAAM,uBAAuB,GAAG;IACrC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAE,QAAQ,E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C;IACnC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IACnC;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC"}
@@ -29,7 +29,7 @@ export declare const DayOfWeek: import("@emotion/styled").StyledComponent<{
29
29
  theme?: import("@emotion/react").Theme | undefined;
30
30
  as?: import("react").ElementType<any> | undefined;
31
31
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
32
- export declare const DayButton: import("@emotion/styled").StyledComponent<((import("../../button/types").ButtonProps & import("react").RefAttributes<any>) & {
32
+ export declare const DayButton: import("@emotion/styled").StyledComponent<(((import("../../button/types").ButtonProps & import("../../button/types").DeprecatedButtonProps) & import("react").RefAttributes<any>) & {
33
33
  theme?: import("@emotion/react").Theme | undefined;
34
34
  }) & {
35
35
  column: number;
@@ -21,4 +21,5 @@ export declare const WithMorePadding: import("@storybook/types").AnnotatedStoryF
21
21
  * paddings, for example when child components already have padding on their own.
22
22
  */
23
23
  export declare const WithNoPadding: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../context").WordPressComponentProps<import("../types").DropdownProps & import("react").RefAttributes<any>, import("react").ElementType<any> | null, boolean>>;
24
+ export declare const WithMenuItems: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../context").WordPressComponentProps<import("../types").DropdownProps & import("react").RefAttributes<any>, import("react").ElementType<any> | null, boolean>>;
24
25
  //# sourceMappingURL=index.story.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/dropdown/stories/index.story.tsx"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AAEtD;;GAEG;AACH,OAAO,QAAQ,MAAM,IAAI,CAAC;AAI1B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,QAAQ,CA0BhC,CAAC;AACF,eAAe,IAAI,CAAC;AAQpB,eAAO,MAAM,OAAO,yQAAsB,CAAC;AAU3C;;;GAGG;AACH,eAAO,MAAM,eAAe,yQAAsB,CAAC;AAUnD;;;;GAIG;AACH,eAAO,MAAM,aAAa,yQAAsB,CAAC"}
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/dropdown/stories/index.story.tsx"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AAEtD;;GAEG;AACH,OAAO,QAAQ,MAAM,IAAI,CAAC;AAM1B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,QAAQ,CA0BhC,CAAC;AACF,eAAe,IAAI,CAAC;AAQpB,eAAO,MAAM,OAAO,yQAAsB,CAAC;AAU3C;;;GAGG;AACH,eAAO,MAAM,eAAe,yQAAsB,CAAC;AAUnD;;;;GAIG;AACH,eAAO,MAAM,aAAa,yQAAsB,CAAC;AAUjD,eAAO,MAAM,aAAa,yQAAsB,CAAC"}
@@ -7,12 +7,11 @@ import type { FlexProps } from '../types';
7
7
  export declare function useFlex(props: WordPressComponentProps<FlexProps, 'div'>): {
8
8
  className: string;
9
9
  isColumn: boolean;
10
- children: import("react").ReactNode;
11
- isReversed?: boolean | undefined;
12
10
  id?: string | undefined;
13
11
  prefix?: string | undefined;
14
12
  slot?: string | undefined;
15
13
  role?: import("react").AriaRole | undefined;
14
+ children: import("react").ReactNode;
16
15
  style?: import("react").CSSProperties | undefined;
17
16
  title?: string | undefined;
18
17
  color?: string | undefined;
@@ -231,6 +230,7 @@ export declare function useFlex(props: WordPressComponentProps<FlexProps, 'div'>
231
230
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
232
231
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
233
232
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
233
+ as?: keyof JSX.IntrinsicElements | undefined;
234
234
  key?: import("react").Key | null | undefined;
235
235
  defaultChecked?: boolean | undefined;
236
236
  defaultValue?: string | number | readonly string[] | undefined;
@@ -264,6 +264,5 @@ export declare function useFlex(props: WordPressComponentProps<FlexProps, 'div'>
264
264
  unselectable?: "on" | "off" | undefined;
265
265
  inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
266
266
  is?: string | undefined;
267
- as?: keyof JSX.IntrinsicElements | undefined;
268
267
  };
269
268
  //# sourceMappingURL=hook.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../src/flex/flex/hook.ts"],"names":[],"mappings":";AAWA;;GAEG;AACH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAM7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAqB1C,wBAAgB,OAAO,CAAE,KAAK,EAAE,uBAAuB,CAAE,SAAS,EAAE,KAAK,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoD1E"}
1
+ {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../src/flex/flex/hook.ts"],"names":[],"mappings":";AAWA;;GAEG;AACH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAM7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAqB1C,wBAAgB,OAAO,CAAE,KAAK,EAAE,uBAAuB,CAAE,SAAS,EAAE,KAAK,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoD1E"}
@@ -11,7 +11,7 @@ export declare const Header: import("@emotion/styled").StyledComponent<Omit<impo
11
11
  } & {
12
12
  theme?: import("@emotion/react").Theme | undefined;
13
13
  }, {}, {}>;
14
- export declare const HeaderToggle: import("@emotion/styled").StyledComponent<(import("../button/types").ButtonProps & import("react").RefAttributes<any>) & {
14
+ export declare const HeaderToggle: import("@emotion/styled").StyledComponent<((import("../button/types").ButtonProps & import("../button/types").DeprecatedButtonProps) & import("react").RefAttributes<any>) & {
15
15
  theme?: import("@emotion/react").Theme | undefined;
16
16
  }, {}, {}>;
17
17
  export declare const HeaderLabel: import("@emotion/styled").StyledComponent<import("../base-control/types").BaseControlVisualLabelProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>>, "children" | "as"> & {
@@ -8,7 +8,7 @@ import type { FormTokenFieldProps } from './types';
8
8
  * Tokens are separated by the "," character. Suggestions can be selected with the up or down arrows and added with the tab or enter key.
9
9
  *
10
10
  * The `value` property is handled in a manner similar to controlled form components.
11
- * See [Forms](http://facebook.github.io/react/docs/forms.html) in the React Documentation for more information.
11
+ * See [Forms](https://react.dev/reference/react-dom/components#form-components) in the React Documentation for more information.
12
12
  */
13
13
  export declare function FormTokenField(props: FormTokenFieldProps): JSX.Element;
14
14
  export default FormTokenField;
@@ -6,13 +6,11 @@ import type { WordPressComponentProps } from '../context';
6
6
  import type { Props } from './types';
7
7
  export declare function useHStack(props: WordPressComponentProps<Props, 'div'>): {
8
8
  className: string;
9
- isColumn: boolean;
10
- children: import("react").ReactNode;
11
- isReversed?: boolean | undefined;
12
9
  id?: string | undefined;
13
10
  prefix?: string | undefined;
14
11
  slot?: string | undefined;
15
12
  role?: import("react").AriaRole | undefined;
13
+ children: import("react").ReactNode;
16
14
  style?: import("react").CSSProperties | undefined;
17
15
  title?: string | undefined;
18
16
  color?: string | undefined;
@@ -231,6 +229,7 @@ export declare function useHStack(props: WordPressComponentProps<Props, 'div'>):
231
229
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
232
230
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
233
231
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
232
+ as?: keyof JSX.IntrinsicElements | undefined;
234
233
  key?: import("react").Key | null | undefined;
235
234
  defaultChecked?: boolean | undefined;
236
235
  defaultValue?: string | number | readonly string[] | undefined;
@@ -264,6 +263,5 @@ export declare function useHStack(props: WordPressComponentProps<Props, 'div'>):
264
263
  unselectable?: "on" | "off" | undefined;
265
264
  inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
266
265
  is?: string | undefined;
267
- as?: keyof JSX.IntrinsicElements | undefined;
268
266
  };
269
267
  //# sourceMappingURL=hook.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../src/h-stack/hook.tsx"],"names":[],"mappings":";AAKA;;GAEG;AACH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAK1D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,wBAAgB,SAAS,CAAE,KAAK,EAAE,uBAAuB,CAAE,KAAK,EAAE,KAAK,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCxE"}
1
+ {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../src/h-stack/hook.tsx"],"names":[],"mappings":";AAKA;;GAEG;AACH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAK1D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,wBAAgB,SAAS,CAAE,KAAK,EAAE,uBAAuB,CAAE,KAAK,EAAE,KAAK,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsCxE"}
@@ -7,7 +7,7 @@ export declare function UnforwardedInputControl(props: InputControlProps, ref: F
7
7
  *
8
8
  * ```jsx
9
9
  * import { __experimentalInputControl as InputControl } from '@wordpress/components';
10
- * import { useState } from '@wordpress/compose';
10
+ * import { useState } from 'react';
11
11
  *
12
12
  * const Example = () => {
13
13
  * const [ value, setValue ] = useState( '' );
@@ -1 +1 @@
1
- {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/input-control/stories/index.story.tsx"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AAEtD;;GAEG;AACH,OAAO,YAAY,MAAM,IAAI,CAAC;AAI9B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,YAAY,CAkBpC,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO,uLAAsB,CAAC;AAM3C,eAAO,MAAM,YAAY,uLAAsB,CAAC;AAMhD;;;;GAIG;AACH,eAAO,MAAM,UAAU,uLAAsB,CAAC;AAM9C;;;;GAIG;AACH,eAAO,MAAM,UAAU,uLAAsB,CAAC;AAM9C,eAAO,MAAM,aAAa,uLAAsB,CAAC;AAMjD,eAAO,MAAM,aAAa,uLAAsB,CAAC"}
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/input-control/stories/index.story.tsx"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAC;AAEtD;;GAEG;AACH,OAAO,YAAY,MAAM,IAAI,CAAC;AAI9B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,YAAY,CAmBpC,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO,uLAAsB,CAAC;AAM3C,eAAO,MAAM,YAAY,uLAAsB,CAAC;AAMhD;;;;GAIG;AACH,eAAO,MAAM,UAAU,uLAAsB,CAAC;AAM9C;;;;GAIG;AACH,eAAO,MAAM,UAAU,uLAAsB,CAAC;AAM9C,eAAO,MAAM,aAAa,uLAAsB,CAAC;AAMjD,eAAO,MAAM,aAAa,uLAAsB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"hide-if-empty.d.ts","sourceRoot":"","sources":["../../../../src/navigation/stories/utils/hide-if-empty.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAInC,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAE,OAAO,UAAU,CAyDxD,CAAC"}
1
+ {"version":3,"file":"hide-if-empty.d.ts","sourceRoot":"","sources":["../../../../src/navigation/stories/utils/hide-if-empty.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAInC,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAE,OAAO,UAAU,CAqDxD,CAAC"}
@@ -7,7 +7,7 @@ export declare const MenuUI: import("@emotion/styled").StyledComponent<{
7
7
  theme?: import("@emotion/react").Theme | undefined;
8
8
  as?: import("react").ElementType<any> | undefined;
9
9
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
- export declare const MenuBackButtonUI: import("@emotion/styled").StyledComponent<(import("../../button/types").ButtonProps & import("react").RefAttributes<any>) & {
10
+ export declare const MenuBackButtonUI: import("@emotion/styled").StyledComponent<((import("../../button/types").ButtonProps & import("../../button/types").DeprecatedButtonProps) & import("react").RefAttributes<any>) & {
11
11
  theme?: import("@emotion/react").Theme | undefined;
12
12
  }, {}, {}>;
13
13
  export declare const MenuTitleUI: import("@emotion/styled").StyledComponent<{
@@ -43,7 +43,6 @@ export declare const NavigatorBackButton: import("../../context").WordPressCompo
43
43
  isBusy?: boolean | undefined;
44
44
  isDestructive?: boolean | undefined;
45
45
  isPressed?: boolean | undefined;
46
- isSmall?: boolean | undefined;
47
46
  label?: string | undefined;
48
47
  shortcut?: string | {
49
48
  display: string;
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/navigator/navigator-back-button/component.tsx"],"names":[],"mappings":";AAuBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;6CAG/B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/navigator/navigator-back-button/component.tsx"],"names":[],"mappings":";AAuBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;6CAG/B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -14,7 +14,6 @@ export declare function useNavigatorBackButton(props: WordPressComponentProps<Na
14
14
  isBusy?: boolean | undefined;
15
15
  isDestructive?: boolean | undefined;
16
16
  isPressed?: boolean | undefined;
17
- isSmall?: boolean | undefined;
18
17
  label?: string | undefined;
19
18
  shortcut?: string | {
20
19
  display: string;
@@ -292,7 +291,7 @@ export declare function useNavigatorBackButton(props: WordPressComponentProps<Na
292
291
  formMethod?: string | undefined;
293
292
  formNoValidate?: boolean | undefined;
294
293
  formTarget?: string | undefined;
295
- as: keyof JSX.IntrinsicElements | import("react").ForwardRefExoticComponent<import("../../button/types").ButtonProps & import("react").RefAttributes<any>>;
294
+ as: keyof JSX.IntrinsicElements | import("react").ForwardRefExoticComponent<(import("../../button/types").ButtonProps & import("../../button/types").DeprecatedButtonProps) & import("react").RefAttributes<any>>;
296
295
  onClick: import("react").MouseEventHandler<HTMLButtonElement>;
297
296
  };
298
297
  //# sourceMappingURL=hook.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../src/navigator/navigator-back-button/hook.ts"],"names":[],"mappings":";AAKA;;GAEG;AACH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAI7D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAE7D,wBAAgB,sBAAsB,CACrC,KAAK,EAAE,uBAAuB,CAAE,4BAA4B,EAAE,QAAQ,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BxE"}
1
+ {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../src/navigator/navigator-back-button/hook.ts"],"names":[],"mappings":";AAKA;;GAEG;AACH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAI7D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAE7D,wBAAgB,sBAAsB,CACrC,KAAK,EAAE,uBAAuB,CAAE,4BAA4B,EAAE,QAAQ,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BxE"}
@@ -42,7 +42,6 @@ export declare const NavigatorButton: import("../../context").WordPressComponent
42
42
  isBusy?: boolean | undefined;
43
43
  isDestructive?: boolean | undefined;
44
44
  isPressed?: boolean | undefined;
45
- isSmall?: boolean | undefined;
46
45
  label?: string | undefined;
47
46
  shortcut?: string | {
48
47
  display: string;
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/navigator/navigator-button/component.tsx"],"names":[],"mappings":";AAuBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;6CAG3B,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/navigator/navigator-button/component.tsx"],"names":[],"mappings":";AAuBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;6CAG3B,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -14,7 +14,6 @@ export declare function useNavigatorButton(props: WordPressComponentProps<Naviga
14
14
  isBusy?: boolean | undefined;
15
15
  isDestructive?: boolean | undefined;
16
16
  isPressed?: boolean | undefined;
17
- isSmall?: boolean | undefined;
18
17
  label?: string | undefined;
19
18
  shortcut?: string | {
20
19
  display: string;
@@ -292,7 +291,7 @@ export declare function useNavigatorButton(props: WordPressComponentProps<Naviga
292
291
  formMethod?: string | undefined;
293
292
  formNoValidate?: boolean | undefined;
294
293
  formTarget?: string | undefined;
295
- as: keyof JSX.IntrinsicElements | import("react").ForwardRefExoticComponent<import("../../button/types").ButtonProps & import("react").RefAttributes<any>>;
294
+ as: keyof JSX.IntrinsicElements | import("react").ForwardRefExoticComponent<(import("../../button/types").ButtonProps & import("../../button/types").DeprecatedButtonProps) & import("react").RefAttributes<any>>;
296
295
  onClick: import("react").MouseEventHandler<HTMLButtonElement>;
297
296
  };
298
297
  //# sourceMappingURL=hook.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../src/navigator/navigator-button/hook.ts"],"names":[],"mappings":";AAMA;;GAEG;AACH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAI7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAKrD,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,uBAAuB,CAAE,oBAAoB,EAAE,QAAQ,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkChE"}
1
+ {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../src/navigator/navigator-button/hook.ts"],"names":[],"mappings":";AAMA;;GAEG;AACH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAI7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAKrD,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,uBAAuB,CAAE,oBAAoB,EAAE,QAAQ,CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkChE"}
@@ -9,7 +9,6 @@ export declare const NavigatorToParentButton: import("../../context").WordPressC
9
9
  isBusy?: boolean | undefined;
10
10
  isDestructive?: boolean | undefined;
11
11
  isPressed?: boolean | undefined;
12
- isSmall?: boolean | undefined;
13
12
  label?: string | undefined;
14
13
  shortcut?: string | {
15
14
  display: string;
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/navigator/navigator-to-parent-button/component.tsx"],"names":[],"mappings":";AA4DA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;6CAGnC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/navigator/navigator-to-parent-button/component.tsx"],"names":[],"mappings":";AA4DA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;6CAGnC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -4,7 +4,7 @@ export declare const Input: import("@emotion/styled").StyledComponent<import("..
4
4
  } & {
5
5
  hideHTMLArrows: boolean;
6
6
  }, {}, {}>;
7
- export declare const SpinButton: import("@emotion/styled").StyledComponent<(import("../../button/types").ButtonProps & import("react").RefAttributes<any>) & {
7
+ export declare const SpinButton: import("@emotion/styled").StyledComponent<((import("../../button/types").ButtonProps & import("../../button/types").DeprecatedButtonProps) & import("react").RefAttributes<any>) & {
8
8
  theme?: import("@emotion/react").Theme | undefined;
9
9
  }, {}, {}>;
10
10
  export declare const styles: {
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import type { PaletteEditProps, PaletteElement } from './types';
3
3
  /**
4
- * Returns a name for a palette item in the format "Color + id".
4
+ * Returns a name and slug for a palette item. The name takes the format "Color + id".
5
5
  * To ensure there are no duplicate ids, this function checks all slugs.
6
6
  * It expects slugs to be in the format: slugPrefix + color- + number.
7
7
  * It then sets the id component of the new name based on the incremented id of the highest existing slug id.
@@ -9,9 +9,12 @@ import type { PaletteEditProps, PaletteElement } from './types';
9
9
  * @param elements An array of color palette items.
10
10
  * @param slugPrefix The slug prefix used to match the element slug.
11
11
  *
12
- * @return A unique name for a palette item.
12
+ * @return A name and slug for the new palette item.
13
13
  */
14
- export declare function getNameForPosition(elements: PaletteElement[], slugPrefix: string): string;
14
+ export declare function getNameAndSlugForPosition(elements: PaletteElement[], slugPrefix: string): {
15
+ name: string;
16
+ slug: string;
17
+ };
15
18
  /**
16
19
  * Allows editing a palette of colors or gradients.
17
20
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/palette-edit/index.tsx"],"names":[],"mappings":";AAmDA,OAAO,KAAK,EAOX,gBAAgB,EAChB,cAAc,EACd,MAAM,SAAS,CAAC;AAejB;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CACjC,QAAQ,EAAE,cAAc,EAAE,EAC1B,UAAU,EAAE,MAAM,UAqBlB;AAwOD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,WAAW,CAAE,EAC5B,SAAS,EACT,MAAoB,EACpB,QAAQ,EACR,YAAY,EACZ,wBAA4B,EAC5B,YAAY,EACZ,mBAAmB,EACnB,QAAQ,EACR,UAAe,EACf,YAAY,GACZ,EAAE,gBAAgB,eA6OlB;AAED,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/palette-edit/index.tsx"],"names":[],"mappings":";AAmDA,OAAO,KAAK,EAOX,gBAAgB,EAChB,cAAc,EACd,MAAM,SAAS,CAAC;AAejB;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CACxC,QAAQ,EAAE,cAAc,EAAE,EAC1B,UAAU,EAAE,MAAM;;;EAwBlB;AAwOD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,WAAW,CAAE,EAC5B,SAAS,EACT,MAAoB,EACpB,QAAQ,EACR,YAAY,EACZ,wBAA4B,EAC5B,YAAY,EACZ,mBAAmB,EACnB,QAAQ,EACR,UAAe,EACf,YAAY,GACZ,EAAE,gBAAgB,eA0OlB;AAED,eAAe,WAAW,CAAC"}
@@ -45,10 +45,10 @@ export declare const PaletteEditStyles: import("@emotion/styled").StyledComponen
45
45
  } & {
46
46
  theme?: import("@emotion/react").Theme | undefined;
47
47
  }, {}, {}>;
48
- export declare const DoneButton: import("@emotion/styled").StyledComponent<(import("../button/types").ButtonProps & import("react").RefAttributes<any>) & {
48
+ export declare const DoneButton: import("@emotion/styled").StyledComponent<((import("../button/types").ButtonProps & import("../button/types").DeprecatedButtonProps) & import("react").RefAttributes<any>) & {
49
49
  theme?: import("@emotion/react").Theme | undefined;
50
50
  }, {}, {}>;
51
- export declare const RemoveButton: import("@emotion/styled").StyledComponent<(import("../button/types").ButtonProps & import("react").RefAttributes<any>) & {
51
+ export declare const RemoveButton: import("@emotion/styled").StyledComponent<((import("../button/types").ButtonProps & import("../button/types").DeprecatedButtonProps) & import("react").RefAttributes<any>) & {
52
52
  theme?: import("@emotion/react").Theme | undefined;
53
53
  }, {}, {}>;
54
54
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/radio-group/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAQhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,UAAU,CAelC,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,UAAU,CAAwB,CAAC;AAczE,eAAO,MAAM,QAAQ,EAAE,OAAO,CAAE,OAAO,UAAU,CAAwB,CAAC;AA2B1E,eAAO,MAAM,UAAU,EAAE,OAAO,CAAE,OAAO,UAAU,CAElD,CAAC"}
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/radio-group/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAQhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,UAAU,CAgBlC,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,UAAU,CAAwB,CAAC;AAczE,eAAO,MAAM,QAAQ,EAAE,OAAO,CAAE,OAAO,UAAU,CAAwB,CAAC;AA2B1E,eAAO,MAAM,UAAU,EAAE,OAAO,CAAE,OAAO,UAAU,CAElD,CAAC"}
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import type { NoticeAction } from '../notice/types';
2
3
  /**
3
4
  * A Snackbar displays a succinct message that is cleared out after a small delay.
4
5
  *
@@ -11,11 +12,13 @@
11
12
  * );
12
13
  * ```
13
14
  */
14
- export declare const Snackbar: import("react").ForwardRefExoticComponent<Omit<import("../notice/types").NoticeProps, "__unstableHTML"> & {
15
+ export declare const Snackbar: import("react").ForwardRefExoticComponent<Pick<import("../notice/types").NoticeProps, "className" | "children" | "onRemove" | "spokenMessage" | "politeness" | "onDismiss"> & {
15
16
  icon?: import("react").ReactNode;
16
17
  explicitDismiss?: boolean | undefined;
17
18
  listRef?: import("react").MutableRefObject<HTMLDivElement | null> | undefined;
18
- } & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "className" | "children" | "as" | "status" | "actions" | "onRemove" | "isDismissible" | "spokenMessage" | "politeness" | "onDismiss" | keyof {
19
+ } & {
20
+ actions?: Pick<NoticeAction, "label" | "onClick" | "url">[] | undefined;
21
+ } & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "className" | "children" | "as" | "actions" | "onRemove" | "spokenMessage" | "politeness" | "onDismiss" | keyof {
19
22
  icon?: import("react").ReactNode;
20
23
  explicitDismiss?: boolean | undefined;
21
24
  listRef?: import("react").MutableRefObject<HTMLDivElement | null> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/snackbar/index.tsx"],"names":[],"mappings":";AAqLA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;uCAAoC,CAAC;AAE1D,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/snackbar/index.tsx"],"names":[],"mappings":";AAyBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AA+JpD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;uCAAoC,CAAC;AAE1D,eAAe,QAAQ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../src/snackbar/list.tsx"],"names":[],"mappings":";AAmBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AA8B1D;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAE,EAC7B,OAAO,EACP,SAAS,EACT,QAAQ,EACR,QAAQ,GACR,EAAE,uBAAuB,CAAE,iBAAiB,EAAE,KAAK,CAAE,eAwCrD;AAED,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../src/snackbar/list.tsx"],"names":[],"mappings":";AAmBA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AA8B1D;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAE,EAC7B,OAAO,EACP,SAAS,EACT,QAAQ,EACR,QAAQ,GACR,EAAE,uBAAuB,CAAE,iBAAiB,EAAE,KAAK,CAAE,eA6CrD;AAED,eAAe,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/snackbar/test/index.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/snackbar/test/list.tsx"],"names":[],"mappings":""}
@@ -5,7 +5,7 @@ import type { MutableRefObject, ReactNode } from 'react';
5
5
  /**
6
6
  * Internal dependencies
7
7
  */
8
- import type { NoticeProps, NoticeChildren } from '../notice/types';
8
+ import type { NoticeProps, NoticeChildren, NoticeAction } from '../notice/types';
9
9
  type SnackbarOnlyProps = {
10
10
  /**
11
11
  * The icon to render in the snackbar.
@@ -25,7 +25,23 @@ type SnackbarOnlyProps = {
25
25
  */
26
26
  listRef?: MutableRefObject<HTMLDivElement | null>;
27
27
  };
28
- export type SnackbarProps = Omit<NoticeProps, '__unstableHTML'> & SnackbarOnlyProps;
28
+ export type SnackbarProps = Pick<NoticeProps, 'className' | 'children' | 'spokenMessage' | 'onRemove' | 'politeness' | 'onDismiss'> & SnackbarOnlyProps & {
29
+ /**
30
+ * An array of action objects. Each member object should contain:
31
+ *
32
+ * - `label`: `string` containing the text of the button/link
33
+ * - `url`: `string` OR `onClick`: `( event: SyntheticEvent ) => void` to specify
34
+ * what the action does.
35
+ *
36
+ * The default appearance of an action button is inferred based on whether
37
+ * `url` or `onClick` are provided, rendering the button as a link if
38
+ * appropriate. If both props are provided, `url` takes precedence, and the
39
+ * action button will render as an anchor tag.
40
+ *
41
+ * @default []
42
+ */
43
+ actions?: Pick<NoticeAction, 'label' | 'url' | 'onClick'>[];
44
+ };
29
45
  export type SnackbarListProps = {
30
46
  notices: Array<Omit<SnackbarProps, 'children'> & {
31
47
  id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/snackbar/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzD;;GAEG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEnE,KAAK,iBAAiB,GAAG;IACxB;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAE,cAAc,GAAG,IAAI,CAAE,CAAC;CACpD,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,IAAI,CAAE,WAAW,EAAE,gBAAgB,CAAE,GAChE,iBAAiB,CAAC;AAEnB,MAAM,MAAM,iBAAiB,GAAG;IAC/B,OAAO,EAAE,KAAK,CACb,IAAI,CAAE,aAAa,EAAE,UAAU,CAAE,GAAG;QACnC,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;KAChB,CACD,CAAC;IACF,QAAQ,EAAE,CAAE,EAAE,EAAE,MAAM,KAAM,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,cAAc,GAAG,KAAK,CAAE,cAAc,CAAE,CAAC;CACpD,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/snackbar/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzD;;GAEG;AACH,OAAO,KAAK,EACX,WAAW,EACX,cAAc,EACd,YAAY,EACZ,MAAM,iBAAiB,CAAC;AAEzB,KAAK,iBAAiB,GAAG;IACxB;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAE,cAAc,GAAG,IAAI,CAAE,CAAC;CACpD,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,IAAI,CAC/B,WAAW,EACT,WAAW,GACX,UAAU,GACV,eAAe,GACf,UAAU,GACV,YAAY,GACZ,WAAW,CACb,GACA,iBAAiB,GAAG;IACnB;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,EAAE,IAAI,CAAE,YAAY,EAAE,OAAO,GAAG,KAAK,GAAG,SAAS,CAAE,EAAE,CAAC;CAC9D,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG;IAC/B,OAAO,EAAE,KAAK,CACb,IAAI,CAAE,aAAa,EAAE,UAAU,CAAE,GAAG;QACnC,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;KAChB,CACD,CAAC;IACF,QAAQ,EAAE,CAAE,EAAE,EAAE,MAAM,KAAM,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,cAAc,GAAG,KAAK,CAAE,cAAc,CAAE,CAAC;CACpD,CAAC"}
@@ -3,7 +3,7 @@
3
3
  * Internal dependencies
4
4
  */
5
5
  import type { TabsProps } from './types';
6
- declare function Tabs({ selectOnMove, initialTabId, orientation, onSelect, children, selectedTabId, }: TabsProps): JSX.Element;
6
+ declare function Tabs({ selectOnMove, defaultTabId, orientation, onSelect, children, selectedTabId, }: TabsProps): JSX.Element;
7
7
  declare namespace Tabs {
8
8
  var TabList: import("react").ForwardRefExoticComponent<import("./types").TabListProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "children" | "as"> & import("react").RefAttributes<HTMLDivElement>>;
9
9
  var Tab: import("react").ForwardRefExoticComponent<Omit<import("../context").WordPressComponentProps<import("./types").TabProps, "button", false>, "id"> & import("react").RefAttributes<HTMLButtonElement>>;
@@ -39,7 +39,7 @@ export type TabsProps = {
39
39
  * Note: this prop will be overridden by the `selectedTabId` prop if it is
40
40
  * provided. (Controlled Mode)
41
41
  */
42
- initialTabId?: string;
42
+ defaultTabId?: string;
43
43
  /**
44
44
  * The function called when a tab has been selected.
45
45
  * It is passed the id of the newly selected tab as an argument.
@@ -22,7 +22,7 @@
22
22
  export declare const TextControl: import("react").ForwardRefExoticComponent<Pick<import("../base-control/types").BaseControlProps, "className" | "label" | "help" | "hideLabelFromVision" | "__nextHasNoMarginBottom"> & {
23
23
  onChange: (value: string) => void;
24
24
  value: string | number;
25
- type?: "number" | "search" | "text" | "tel" | "url" | "email" | "password" | undefined;
25
+ type?: "number" | "search" | "time" | "text" | "tel" | "url" | "email" | "date" | "datetime-local" | "password" | undefined;
26
26
  __next40pxDefaultSize?: boolean | undefined;
27
27
  } & Omit<Pick<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof import("react").InputHTMLAttributes<HTMLInputElement>>, "className" | "children" | "label" | "help" | "type" | "onChange" | "value" | "as" | "__next40pxDefaultSize" | "hideLabelFromVision" | "__nextHasNoMarginBottom"> & import("react").RefAttributes<HTMLInputElement>>;
28
28
  export default TextControl;
@@ -16,7 +16,7 @@ export type TextControlProps = Pick<BaseControlProps, 'className' | 'hideLabelFr
16
16
  *
17
17
  * @default 'text'
18
18
  */
19
- type?: 'email' | 'number' | 'password' | 'tel' | 'text' | 'search' | 'url';
19
+ type?: 'date' | 'datetime-local' | 'email' | 'number' | 'password' | 'tel' | 'text' | 'time' | 'search' | 'url';
20
20
  /**
21
21
  * Start opting into the larger default height that will become the default size in a future version.
22
22
  *
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/text-control/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAClC,gBAAgB,EACd,WAAW,GACX,qBAAqB,GACrB,MAAM,GACN,OAAO,GACP,yBAAyB,CAC3B,GAAG;IACH;;OAEG;IACH,QAAQ,EAAE,CAAE,KAAK,EAAE,MAAM,KAAM,IAAI,CAAC;IACpC;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;IAC3E;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/text-control/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAClC,gBAAgB,EACd,WAAW,GACX,qBAAqB,GACrB,MAAM,GACN,OAAO,GACP,yBAAyB,CAC3B,GAAG;IACH;;OAEG;IACH,QAAQ,EAAE,CAAE,KAAK,EAAE,MAAM,KAAM,IAAI,CAAC;IACpC;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB;;;;OAIG;IACH,IAAI,CAAC,EACF,MAAM,GACN,gBAAgB,GAChB,OAAO,GACP,QAAQ,GACR,UAAU,GACV,KAAK,GACL,MAAM,GACN,MAAM,GACN,QAAQ,GACR,KAAK,CAAC;IAET;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/toggle-group-control/toggle-group-control-option-base/component.tsx"],"names":[],"mappings":";AAeA;;GAEG;AACH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAE7D,OAAO,KAAK,EACX,iCAAiC,EAEjC,MAAM,UAAU,CAAC;AA0JlB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,QAAA,MAAM,qCAAqC,4NAG1C,CAAC;AAEF,eAAe,qCAAqC,CAAC"}
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/toggle-group-control/toggle-group-control-option-base/component.tsx"],"names":[],"mappings":";AAeA;;GAEG;AACH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAE7D,OAAO,KAAK,EACX,iCAAiC,EAEjC,MAAM,UAAU,CAAC;AA4JlB;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,QAAA,MAAM,qCAAqC,4NAG1C,CAAC;AAEF,eAAe,qCAAqC,CAAC"}