@wordpress/components 32.3.1-next.v.202602241322.0 → 32.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (236) hide show
  1. package/CHANGELOG.md +28 -1
  2. package/build/alignment-matrix-control/cell.cjs +2 -2
  3. package/build/alignment-matrix-control/cell.cjs.map +2 -2
  4. package/build/alignment-matrix-control/index.cjs +2 -2
  5. package/build/alignment-matrix-control/index.cjs.map +2 -2
  6. package/build/angle-picker-control/angle-circle.cjs +2 -2
  7. package/build/angle-picker-control/angle-circle.cjs.map +2 -2
  8. package/build/calendar/utils/constants.cjs +1 -0
  9. package/build/calendar/utils/constants.cjs.map +2 -2
  10. package/build/date-time/date/styles.cjs +9 -9
  11. package/build/date-time/date/styles.cjs.map +2 -2
  12. package/build/date-time/time/index.cjs +1 -1
  13. package/build/date-time/time/index.cjs.map +2 -2
  14. package/build/date-time/utils.cjs +9 -0
  15. package/build/date-time/utils.cjs.map +2 -2
  16. package/build/menu/radio-item.cjs +1 -1
  17. package/build/menu/radio-item.cjs.map +2 -2
  18. package/build/private-apis.cjs +0 -4
  19. package/build/private-apis.cjs.map +3 -3
  20. package/build/select-control/styles/select-control-styles.cjs +8 -8
  21. package/build/select-control/styles/select-control-styles.cjs.map +2 -2
  22. package/build/tooltip/index.cjs +1 -1
  23. package/build/tooltip/index.cjs.map +1 -1
  24. package/build/visually-hidden/styles.cjs +2 -1
  25. package/build/visually-hidden/styles.cjs.map +2 -2
  26. package/build-module/alignment-matrix-control/cell.mjs +2 -2
  27. package/build-module/alignment-matrix-control/cell.mjs.map +2 -2
  28. package/build-module/alignment-matrix-control/index.mjs +2 -2
  29. package/build-module/alignment-matrix-control/index.mjs.map +2 -2
  30. package/build-module/angle-picker-control/angle-circle.mjs +2 -2
  31. package/build-module/angle-picker-control/angle-circle.mjs.map +2 -2
  32. package/build-module/calendar/utils/constants.mjs +1 -0
  33. package/build-module/calendar/utils/constants.mjs.map +2 -2
  34. package/build-module/date-time/date/styles.mjs +9 -9
  35. package/build-module/date-time/date/styles.mjs.map +2 -2
  36. package/build-module/date-time/time/index.mjs +2 -2
  37. package/build-module/date-time/time/index.mjs.map +2 -2
  38. package/build-module/date-time/utils.mjs +8 -0
  39. package/build-module/date-time/utils.mjs.map +2 -2
  40. package/build-module/menu/radio-item.mjs +1 -1
  41. package/build-module/menu/radio-item.mjs.map +2 -2
  42. package/build-module/private-apis.mjs +0 -4
  43. package/build-module/private-apis.mjs.map +2 -2
  44. package/build-module/select-control/styles/select-control-styles.mjs +8 -8
  45. package/build-module/select-control/styles/select-control-styles.mjs.map +2 -2
  46. package/build-module/tooltip/index.mjs +1 -1
  47. package/build-module/tooltip/index.mjs.map +1 -1
  48. package/build-module/visually-hidden/styles.mjs +2 -1
  49. package/build-module/visually-hidden/styles.mjs.map +2 -2
  50. package/build-style/style-rtl.css +12 -184
  51. package/build-style/style.css +12 -184
  52. package/build-types/alignment-matrix-control/stories/index.story.d.ts +1 -1
  53. package/build-types/alignment-matrix-control/stories/index.story.d.ts.map +1 -1
  54. package/build-types/angle-picker-control/stories/index.story.d.ts +1 -1
  55. package/build-types/animate/stories/index.story.d.ts +7 -7
  56. package/build-types/animate/stories/index.story.d.ts.map +1 -1
  57. package/build-types/base-control/stories/index.story.d.ts +1 -1
  58. package/build-types/border-box-control/stories/index.story.d.ts +1 -1
  59. package/build-types/border-control/stories/index.story.d.ts +5 -5
  60. package/build-types/box-control/stories/index.story.d.ts +7 -7
  61. package/build-types/box-control/stories/index.story.d.ts.map +1 -1
  62. package/build-types/button/stories/e2e/index.story.d.ts +1 -1
  63. package/build-types/button/stories/e2e/index.story.d.ts.map +1 -1
  64. package/build-types/button/stories/index.story.d.ts +7 -7
  65. package/build-types/button/stories/index.story.d.ts.map +1 -1
  66. package/build-types/calendar/stories/date-calendar.story.d.ts +5 -0
  67. package/build-types/calendar/stories/date-calendar.story.d.ts.map +1 -1
  68. package/build-types/calendar/stories/date-range-calendar.story.d.ts +5 -0
  69. package/build-types/calendar/stories/date-range-calendar.story.d.ts.map +1 -1
  70. package/build-types/calendar/types.d.ts +12 -0
  71. package/build-types/calendar/types.d.ts.map +1 -1
  72. package/build-types/calendar/utils/constants.d.ts +1 -0
  73. package/build-types/calendar/utils/constants.d.ts.map +1 -1
  74. package/build-types/circular-option-picker/stories/index.story.d.ts +5 -5
  75. package/build-types/circular-option-picker/stories/index.story.d.ts.map +1 -1
  76. package/build-types/combobox-control/stories/index.story.d.ts +4 -4
  77. package/build-types/confirm-dialog/stories/index.story.d.ts +2 -2
  78. package/build-types/confirm-dialog/stories/index.story.d.ts.map +1 -1
  79. package/build-types/custom-gradient-picker/stories/index.story.d.ts +1 -1
  80. package/build-types/custom-gradient-picker/stories/index.story.d.ts.map +1 -1
  81. package/build-types/custom-select-control/stories/index.story.d.ts +3 -3
  82. package/build-types/custom-select-control/stories/index.story.d.ts.map +1 -1
  83. package/build-types/custom-select-control-v2/stories/index.story.d.ts +3 -3
  84. package/build-types/date-time/date/styles.d.ts.map +1 -1
  85. package/build-types/date-time/stories/time.story.d.ts +1 -1
  86. package/build-types/date-time/stories/time.story.d.ts.map +1 -1
  87. package/build-types/date-time/time/index.d.ts.map +1 -1
  88. package/build-types/date-time/utils.d.ts +9 -0
  89. package/build-types/date-time/utils.d.ts.map +1 -1
  90. package/build-types/drop-zone/stories/index.story.d.ts +1 -1
  91. package/build-types/drop-zone/stories/index.story.d.ts.map +1 -1
  92. package/build-types/dropdown/types.d.ts +9 -13
  93. package/build-types/dropdown/types.d.ts.map +1 -1
  94. package/build-types/duotone-picker/stories/duotone-picker.story.d.ts +1 -1
  95. package/build-types/duotone-picker/stories/duotone-picker.story.d.ts.map +1 -1
  96. package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts +3 -3
  97. package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts.map +1 -1
  98. package/build-types/focal-point-picker/stories/index.story.d.ts +4 -4
  99. package/build-types/form-file-upload/stories/index.story.d.ts +5 -5
  100. package/build-types/form-file-upload/stories/index.story.d.ts.map +1 -1
  101. package/build-types/guide/stories/index.story.d.ts +1 -1
  102. package/build-types/guide/stories/index.story.d.ts.map +1 -1
  103. package/build-types/icon/stories/index.story.d.ts +4 -4
  104. package/build-types/icon/stories/index.story.d.ts.map +1 -1
  105. package/build-types/input-control/stories/index.story.d.ts +7 -7
  106. package/build-types/input-control/stories/index.story.d.ts.map +1 -1
  107. package/build-types/keyboard-shortcuts/stories/index.story.d.ts +1 -1
  108. package/build-types/keyboard-shortcuts/stories/index.story.d.ts.map +1 -1
  109. package/build-types/menu/radio-item.d.ts.map +1 -1
  110. package/build-types/menu-group/stories/index.story.d.ts +1 -1
  111. package/build-types/menu-group/stories/index.story.d.ts.map +1 -1
  112. package/build-types/menu-item/stories/index.story.d.ts +4 -4
  113. package/build-types/modal/types.d.ts +9 -3
  114. package/build-types/modal/types.d.ts.map +1 -1
  115. package/build-types/navigation/stories/index.story.d.ts +6 -6
  116. package/build-types/navigation/stories/index.story.d.ts.map +1 -1
  117. package/build-types/notice/stories/index.story.d.ts +5 -5
  118. package/build-types/notice/stories/index.story.d.ts.map +1 -1
  119. package/build-types/number-control/stories/index.story.d.ts +1 -1
  120. package/build-types/palette-edit/stories/index.story.d.ts +2 -2
  121. package/build-types/palette-edit/stories/index.story.d.ts.map +1 -1
  122. package/build-types/popover/types.d.ts +10 -10
  123. package/build-types/popover/types.d.ts.map +1 -1
  124. package/build-types/private-apis.d.ts.map +1 -1
  125. package/build-types/progress-bar/stories/index.story.d.ts +1 -1
  126. package/build-types/progress-bar/stories/index.story.d.ts.map +1 -1
  127. package/build-types/query-controls/stories/index.story.d.ts +1 -1
  128. package/build-types/query-controls/stories/index.story.d.ts.map +1 -1
  129. package/build-types/resizable-box/stories/index.story.d.ts +2 -2
  130. package/build-types/responsive-wrapper/stories/index.story.d.ts +1 -1
  131. package/build-types/responsive-wrapper/stories/index.story.d.ts.map +1 -1
  132. package/build-types/sandbox/stories/index.story.d.ts +1 -1
  133. package/build-types/sandbox/stories/index.story.d.ts.map +1 -1
  134. package/build-types/search-control/stories/index.story.d.ts +1 -1
  135. package/build-types/select-control/stories/index.story.d.ts +5 -5
  136. package/build-types/select-control/styles/select-control-styles.d.ts.map +1 -1
  137. package/build-types/shortcut/stories/index.story.d.ts +1 -1
  138. package/build-types/shortcut/stories/index.story.d.ts.map +1 -1
  139. package/build-types/tab-panel/stories/index.story.d.ts +4 -4
  140. package/build-types/tab-panel/stories/index.story.d.ts.map +1 -1
  141. package/build-types/tabs/stories/index.story.d.ts +7 -7
  142. package/build-types/tabs/stories/index.story.d.ts.map +1 -1
  143. package/build-types/text/stories/index.story.d.ts +3 -3
  144. package/build-types/theme/stories/index.story.d.ts +1 -1
  145. package/build-types/toggle-control/stories/index.story.d.ts +2 -2
  146. package/build-types/toolbar/stories/index.story.d.ts +3 -3
  147. package/build-types/toolbar/stories/index.story.d.ts.map +1 -1
  148. package/build-types/tools-panel/tools-panel/hook.d.ts +1 -1
  149. package/build-types/tools-panel/types.d.ts +1 -1
  150. package/build-types/tools-panel/types.d.ts.map +1 -1
  151. package/build-types/tooltip/stories/index.story.d.ts +1 -1
  152. package/build-types/tooltip/stories/index.story.d.ts.map +1 -1
  153. package/build-types/tooltip/types.d.ts +2 -2
  154. package/build-types/tree-grid/stories/index.story.d.ts +1 -1
  155. package/build-types/tree-grid/stories/index.story.d.ts.map +1 -1
  156. package/build-types/tree-select/stories/index.story.d.ts +1 -1
  157. package/build-types/tree-select/stories/index.story.d.ts.map +1 -1
  158. package/build-types/v-stack/stories/index.story.d.ts +1 -1
  159. package/build-types/visually-hidden/styles.d.ts.map +1 -1
  160. package/package.json +25 -25
  161. package/src/button-group/stories/index.story.tsx +1 -1
  162. package/src/calendar/stories/date-calendar.story.tsx +11 -0
  163. package/src/calendar/stories/date-range-calendar.story.tsx +11 -0
  164. package/src/calendar/style.scss +5 -0
  165. package/src/calendar/types.ts +12 -0
  166. package/src/calendar/utils/constants.ts +1 -0
  167. package/src/composite/legacy/stories/index.story.tsx +1 -1
  168. package/src/date-time/date/styles.ts +1 -0
  169. package/src/date-time/test/utils.test.ts +8 -11
  170. package/src/date-time/time/index.tsx +2 -12
  171. package/src/date-time/time/test/index.tsx +69 -0
  172. package/src/date-time/utils.ts +18 -0
  173. package/src/dropdown/types.ts +9 -14
  174. package/src/form-token-field/style.scss +1 -0
  175. package/src/guide/style.scss +3 -0
  176. package/src/menu/radio-item.tsx +1 -1
  177. package/src/modal/style.scss +4 -7
  178. package/src/modal/types.ts +9 -5
  179. package/src/navigation/stories/index.story.tsx +1 -1
  180. package/src/notice/test/__snapshots__/index.tsx.snap +1 -1
  181. package/src/popover/types.ts +10 -10
  182. package/src/private-apis.ts +0 -4
  183. package/src/radio-group/stories/index.story.tsx +1 -1
  184. package/src/select-control/styles/select-control-styles.ts +1 -0
  185. package/src/snackbar/style.scss +1 -0
  186. package/src/style.scss +0 -2
  187. package/src/tools-panel/types.ts +4 -1
  188. package/src/tooltip/README.md +2 -2
  189. package/src/tooltip/index.tsx +2 -2
  190. package/src/tooltip/types.ts +2 -2
  191. package/src/visually-hidden/styles.ts +1 -0
  192. package/src/visually-hidden/test/__snapshots__/index.tsx.snap +1 -1
  193. package/build/avatar/component.cjs +0 -99
  194. package/build/avatar/component.cjs.map +0 -7
  195. package/build/avatar/index.cjs +0 -37
  196. package/build/avatar/index.cjs.map +0 -7
  197. package/build/avatar/types.cjs +0 -19
  198. package/build/avatar/types.cjs.map +0 -7
  199. package/build/avatar-group/component.cjs +0 -60
  200. package/build/avatar-group/component.cjs.map +0 -7
  201. package/build/avatar-group/index.cjs +0 -37
  202. package/build/avatar-group/index.cjs.map +0 -7
  203. package/build/avatar-group/types.cjs +0 -19
  204. package/build/avatar-group/types.cjs.map +0 -7
  205. package/build-module/avatar/component.mjs +0 -68
  206. package/build-module/avatar/component.mjs.map +0 -7
  207. package/build-module/avatar/index.mjs +0 -6
  208. package/build-module/avatar/index.mjs.map +0 -7
  209. package/build-module/avatar/types.mjs +0 -1
  210. package/build-module/avatar/types.mjs.map +0 -7
  211. package/build-module/avatar-group/component.mjs +0 -29
  212. package/build-module/avatar-group/component.mjs.map +0 -7
  213. package/build-module/avatar-group/index.mjs +0 -6
  214. package/build-module/avatar-group/index.mjs.map +0 -7
  215. package/build-module/avatar-group/types.mjs +0 -1
  216. package/build-module/avatar-group/types.mjs.map +0 -7
  217. package/build-types/avatar/component.d.ts +0 -5
  218. package/build-types/avatar/component.d.ts.map +0 -1
  219. package/build-types/avatar/index.d.ts +0 -3
  220. package/build-types/avatar/index.d.ts.map +0 -1
  221. package/build-types/avatar/types.d.ts +0 -59
  222. package/build-types/avatar/types.d.ts.map +0 -1
  223. package/build-types/avatar-group/component.d.ts +0 -8
  224. package/build-types/avatar-group/component.d.ts.map +0 -1
  225. package/build-types/avatar-group/index.d.ts +0 -3
  226. package/build-types/avatar-group/index.d.ts.map +0 -1
  227. package/build-types/avatar-group/types.d.ts +0 -14
  228. package/build-types/avatar-group/types.d.ts.map +0 -1
  229. package/src/avatar/component.tsx +0 -82
  230. package/src/avatar/index.ts +0 -2
  231. package/src/avatar/styles.scss +0 -152
  232. package/src/avatar/types.ts +0 -59
  233. package/src/avatar-group/component.tsx +0 -46
  234. package/src/avatar-group/index.ts +0 -2
  235. package/src/avatar-group/styles.scss +0 -32
  236. package/src/avatar-group/types.ts +0 -13
@@ -8,12 +8,12 @@ import type { Meta, StoryFn } from '@storybook/react-vite';
8
8
  import { Tabs } from '..';
9
9
  declare const meta: Meta<typeof Tabs>;
10
10
  export default meta;
11
- export declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../types").TabsProps>;
11
+ export declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../types").TabsProps>;
12
12
  export declare const SizeAndOverflowPlayground: StoryFn<typeof Tabs>;
13
- export declare const Vertical: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../types").TabsProps>;
14
- export declare const DisabledTab: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../types").TabsProps>;
15
- export declare const WithTabIconsAndTooltips: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../types").TabsProps>;
16
- export declare const ManualActivation: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../types").TabsProps>;
17
- export declare const UsingSlotFill: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../types").TabsProps>;
18
- export declare const InsertCustomElements: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../types").TabsProps>;
13
+ export declare const Vertical: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../types").TabsProps>;
14
+ export declare const DisabledTab: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../types").TabsProps>;
15
+ export declare const WithTabIconsAndTooltips: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../types").TabsProps>;
16
+ export declare const ManualActivation: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../types").TabsProps>;
17
+ export declare const UsingSlotFill: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../types").TabsProps>;
18
+ export declare const InsertCustomElements: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../types").TabsProps>;
19
19
  //# sourceMappingURL=index.story.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/tabs/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAS3D;;GAEG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAM1B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,IAAI,CAyB5B,CAAC;AACF,eAAe,IAAI,CAAC;AAiCpB,eAAO,MAAM,OAAO,gIAAsB,CAAC;AAE3C,eAAO,MAAM,yBAAyB,EAAE,OAAO,CAAE,OAAO,IAAI,CAsG3D,CAAC;AAiBF,eAAO,MAAM,QAAQ,gIAA8B,CAAC;AAwBpD,eAAO,MAAM,WAAW,gIAAiC,CAAC;AA0C1D,eAAO,MAAM,uBAAuB,gIAEnC,CAAC;AAEF,eAAO,MAAM,gBAAgB,gIAAsB,CAAC;AA0CpD,eAAO,MAAM,aAAa,gIAAmC,CAAC;AA+D9D,eAAO,MAAM,oBAAoB,gIAAiC,CAAC"}
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/tabs/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAS3D;;GAEG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;AAM1B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,IAAI,CAyB5B,CAAC;AACF,eAAe,IAAI,CAAC;AAiCpB,eAAO,MAAM,OAAO,2HAAsB,CAAC;AAE3C,eAAO,MAAM,yBAAyB,EAAE,OAAO,CAAE,OAAO,IAAI,CAsG3D,CAAC;AAiBF,eAAO,MAAM,QAAQ,2HAA8B,CAAC;AAwBpD,eAAO,MAAM,WAAW,2HAAiC,CAAC;AA0C1D,eAAO,MAAM,uBAAuB,2HAEnC,CAAC;AAEF,eAAO,MAAM,gBAAgB,2HAAsB,CAAC;AA0CpD,eAAO,MAAM,aAAa,2HAAmC,CAAC;AA+D9D,eAAO,MAAM,oBAAoB,2HAAiC,CAAC"}
@@ -8,13 +8,13 @@ import type { Meta } from '@storybook/react-vite';
8
8
  import { Text } from '../component';
9
9
  declare const meta: Meta<typeof Text>;
10
10
  export default meta;
11
- export declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../types").Props & import("react").RefAttributes<any> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, "as" | keyof import("react").RefAttributes<any> | keyof import("../types").Props> & {
11
+ export declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../types").Props & import("react").RefAttributes<any> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, "as" | keyof import("react").RefAttributes<any> | keyof import("../types").Props> & {
12
12
  as?: keyof import("react").JSX.IntrinsicElements | undefined;
13
13
  }>;
14
- export declare const Truncate: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../types").Props & import("react").RefAttributes<any> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, "as" | keyof import("react").RefAttributes<any> | keyof import("../types").Props> & {
14
+ export declare const Truncate: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../types").Props & import("react").RefAttributes<any> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, "as" | keyof import("react").RefAttributes<any> | keyof import("../types").Props> & {
15
15
  as?: keyof import("react").JSX.IntrinsicElements | undefined;
16
16
  }>;
17
- export declare const Highlight: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../types").Props & import("react").RefAttributes<any> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, "as" | keyof import("react").RefAttributes<any> | keyof import("../types").Props> & {
17
+ export declare const Highlight: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../types").Props & import("react").RefAttributes<any> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, "as" | keyof import("react").RefAttributes<any> | keyof import("../types").Props> & {
18
18
  as?: keyof import("react").JSX.IntrinsicElements | undefined;
19
19
  }>;
20
20
  //# sourceMappingURL=index.story.d.ts.map
@@ -8,7 +8,7 @@ import type { Meta, StoryFn } from '@storybook/react-vite';
8
8
  import Theme from '../index';
9
9
  declare const meta: Meta<typeof Theme>;
10
10
  export default meta;
11
- export declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../types").ThemeInputValues & {
11
+ export declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../types").ThemeInputValues & {
12
12
  children?: import("react").ReactNode;
13
13
  } & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "children" | "as" | keyof import("../types").ThemeInputValues> & {
14
14
  as?: keyof import("react").JSX.IntrinsicElements | undefined;
@@ -8,12 +8,12 @@ import type { Meta } from '@storybook/react-vite';
8
8
  import ToggleControl from '..';
9
9
  declare const meta: Meta<typeof ToggleControl>;
10
10
  export default meta;
11
- export declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, Pick<import("../../form-toggle/types").FormToggleProps, "disabled" | "checked"> & Pick<import("../../base-control/types").BaseControlProps, "className" | "__nextHasNoMarginBottom"> & {
11
+ export declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, Pick<import("../../form-toggle/types").FormToggleProps, "disabled" | "checked"> & Pick<import("../../base-control/types").BaseControlProps, "className" | "__nextHasNoMarginBottom"> & {
12
12
  help?: import("react").ReactNode | ((checked: boolean) => import("react").ReactNode);
13
13
  label: import("react").ReactNode;
14
14
  onChange: (value: boolean) => void;
15
15
  } & Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "onChange" | "label" | "help" | "disabled" | "children" | "as" | "className" | "checked" | "__nextHasNoMarginBottom"> & import("react").RefAttributes<HTMLInputElement>>;
16
- export declare const WithHelpText: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, Pick<import("../../form-toggle/types").FormToggleProps, "disabled" | "checked"> & Pick<import("../../base-control/types").BaseControlProps, "className" | "__nextHasNoMarginBottom"> & {
16
+ export declare const WithHelpText: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, Pick<import("../../form-toggle/types").FormToggleProps, "disabled" | "checked"> & Pick<import("../../base-control/types").BaseControlProps, "className" | "__nextHasNoMarginBottom"> & {
17
17
  help?: import("react").ReactNode | ((checked: boolean) => import("react").ReactNode);
18
18
  label: import("react").ReactNode;
19
19
  onChange: (value: boolean) => void;
@@ -8,11 +8,11 @@ import type { Meta } from '@storybook/react-vite';
8
8
  import { Toolbar } from '..';
9
9
  declare const meta: Meta<typeof Toolbar>;
10
10
  export default meta;
11
- export declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../toolbar/types").ToolbarProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "as" | keyof import("../toolbar/types").ToolbarProps> & import("react").RefAttributes<any>>;
12
- export declare const WithoutGroup: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../toolbar/types").ToolbarProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "as" | keyof import("../toolbar/types").ToolbarProps> & import("react").RefAttributes<any>>;
11
+ export declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../toolbar/types").ToolbarProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "as" | keyof import("../toolbar/types").ToolbarProps> & import("react").RefAttributes<any>>;
12
+ export declare const WithoutGroup: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../toolbar/types").ToolbarProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "as" | keyof import("../toolbar/types").ToolbarProps> & import("react").RefAttributes<any>>;
13
13
  /**
14
14
  * Set the variant to `unstyled` to remove default border styles.
15
15
  * Otherwise, leave it as `undefined` for default styles.
16
16
  */
17
- export declare const Unstyled: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../toolbar/types").ToolbarProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "as" | keyof import("../toolbar/types").ToolbarProps> & import("react").RefAttributes<any>>;
17
+ export declare const Unstyled: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../toolbar/types").ToolbarProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "as" | keyof import("../toolbar/types").ToolbarProps> & import("react").RefAttributes<any>>;
18
18
  //# sourceMappingURL=index.story.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/toolbar/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;AAwB3D;;GAEG;AACH,OAAO,EACN,OAAO,EAKP,MAAM,IAAI,CAAC;AAGZ,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,OAAO,CAwB/B,CAAC;AAEF,eAAe,IAAI,CAAC;AAgBpB,eAAO,MAAM,OAAO,6VAAsB,CAAC;AA8F3C,eAAO,MAAM,YAAY,6VAAsB,CAAC;AAahD;;;GAGG;AAEH,eAAO,MAAM,QAAQ,6VAAsB,CAAC"}
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/toolbar/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;AAwB3D;;GAEG;AACH,OAAO,EACN,OAAO,EAKP,MAAM,IAAI,CAAC;AAGZ,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,OAAO,CAwB/B,CAAC;AAEF,eAAe,IAAI,CAAC;AAgBpB,eAAO,MAAM,OAAO,wVAAsB,CAAC;AA8F3C,eAAO,MAAM,YAAY,wVAAsB,CAAC;AAahD;;;GAGG;AAEH,eAAO,MAAM,QAAQ,wVAAsB,CAAC"}
@@ -23,7 +23,7 @@ export declare function useToolsPanel(props: WordPressComponentProps<ToolsPanelP
23
23
  toggleItem: (label: string) => void;
24
24
  className: string;
25
25
  children: import("react").ReactNode;
26
- dropdownMenuProps?: React.ComponentProps<typeof import("../..").DropdownMenu>;
26
+ dropdownMenuProps?: Omit<React.ComponentProps<typeof import("../..").DropdownMenu>, "label">;
27
27
  label: string;
28
28
  defaultValue?: string | number | readonly string[] | undefined;
29
29
  onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
@@ -17,7 +17,7 @@ export type ToolsPanelProps = {
17
17
  /**
18
18
  * The dropdown menu props to configure the panel's `DropdownMenu`.
19
19
  */
20
- dropdownMenuProps?: React.ComponentProps<typeof DropdownMenu>;
20
+ dropdownMenuProps?: Omit<React.ComponentProps<typeof DropdownMenu>, 'label'>;
21
21
  /**
22
22
  * Flags that the items in this ToolsPanel will be contained within an inner
23
23
  * wrapper element allowing the panel to lay them out accordingly.
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/tools-panel/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,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EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,CAAE,MAAM,EAAE,OAAO,CAAE,EAAE,CAAC;IAC7B,UAAU,EAAE,CAAE,KAAK,EAAE,MAAM,KAAM,IAAI,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACvC,UAAU,EAAE,cAAc,EAAE,CAAC;IAC7B,WAAW,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,mBAAmB,CAAC;IACvC,aAAa,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC"}
@@ -9,7 +9,7 @@ import Tooltip from '..';
9
9
  declare const meta: Meta<typeof Tooltip>;
10
10
  export default meta;
11
11
  export declare const Default: StoryFn<typeof Tooltip>;
12
- export declare const KeyboardShortcut: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../types").TooltipProps & import("react").RefAttributes<any>>;
12
+ export declare const KeyboardShortcut: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../types").TooltipProps & import("react").RefAttributes<any>>;
13
13
  /**
14
14
  * In case one or more `Tooltip` components are rendered inside another
15
15
  * `Tooltip` component, only the tooltip associated to the outermost `Tooltip`
@@ -1 +1 @@
1
- {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/tooltip/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAO3D;;GAEG;AACH,OAAO,OAAO,MAAM,IAAI,CAAC;AAGzB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,OAAO,CA2B/B,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,OAAO,CAAwB,CAAC;AAUtE,eAAO,MAAM,gBAAgB,wKAAsB,CAAC;AAapD;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,EAAE,OAAO,CAAE,OAAO,OAAO,CAAwB,CAAC"}
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/tooltip/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAO3D;;GAEG;AACH,OAAO,OAAO,MAAM,IAAI,CAAC;AAGzB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,OAAO,CA2B/B,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,OAAO,CAAwB,CAAC;AAUtE,eAAO,MAAM,gBAAgB,mKAAsB,CAAC;AAapD;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,EAAE,OAAO,CAAE,OAAO,OAAO,CAAwB,CAAC"}
@@ -33,7 +33,7 @@ export type TooltipProps = {
33
33
  /**
34
34
  * Where the tooltip should be positioned relative to its parent.
35
35
  *
36
- * @default bottom
36
+ * @default top
37
37
  */
38
38
  placement?: Placement;
39
39
  /**
@@ -45,7 +45,7 @@ export type TooltipProps = {
45
45
  * `"bottom"` y axis, and `"left"`, `"center"`, `"right"` x axis.
46
46
  *
47
47
  * @deprecated
48
- * @default bottom
48
+ * @default top
49
49
  */
50
50
  position?: PopoverProps['position'];
51
51
  /**
@@ -8,5 +8,5 @@ import type { Meta } from '@storybook/react-vite';
8
8
  import TreeGrid from '..';
9
9
  declare const meta: Meta<typeof TreeGrid>;
10
10
  export default meta;
11
- export declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../types").TreeGridProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref">, "as" | keyof import("../types").TreeGridProps> & import("react").RefAttributes<HTMLTableElement>>;
11
+ export declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../types").TreeGridProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref">, "as" | keyof import("../types").TreeGridProps> & import("react").RefAttributes<HTMLTableElement>>;
12
12
  //# sourceMappingURL=index.story.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/tree-grid/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;AAQ3D;;GAEG;AACH,OAAO,QAAuC,MAAM,IAAI,CAAC;AAIzD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,QAAQ,CAqBhC,CAAC;AACF,eAAe,IAAI,CAAC;AAqHpB,eAAO,MAAM,OAAO,qWAAsB,CAAC"}
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/tree-grid/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;AAQ3D;;GAEG;AACH,OAAO,QAAuC,MAAM,IAAI,CAAC;AAIzD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,QAAQ,CAqBhC,CAAC;AACF,eAAe,IAAI,CAAC;AAqHpB,eAAO,MAAM,OAAO,gWAAsB,CAAC"}
@@ -8,5 +8,5 @@ import type { Meta } from '@storybook/react-vite';
8
8
  import TreeSelect from '../';
9
9
  declare const meta: Meta<typeof TreeSelect>;
10
10
  export default meta;
11
- export declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("../types").TreeSelectProps>;
11
+ export declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../types").TreeSelectProps>;
12
12
  //# sourceMappingURL=index.story.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/tree-select/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;AAO3D;;GAEG;AACH,OAAO,UAAU,MAAM,KAAK,CAAC;AAE7B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,UAAU,CAqBlC,CAAC;AAEF,eAAe,IAAI,CAAC;AAgBpB,eAAO,MAAM,OAAO,sIAAiC,CAAC"}
1
+ {"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/tree-select/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;AAO3D;;GAEG;AACH,OAAO,UAAU,MAAM,KAAK,CAAC;AAE7B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,UAAU,CAqBlC,CAAC;AAEF,eAAe,IAAI,CAAC;AAgBpB,eAAO,MAAM,OAAO,iIAAiC,CAAC"}
@@ -5,7 +5,7 @@ import type { Meta } from '@storybook/react-vite';
5
5
  import { VStack } from '..';
6
6
  declare const meta: Meta<typeof VStack>;
7
7
  export default meta;
8
- export declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, Omit<import("../../h-stack/types").Props, "spacing" | "alignment"> & {
8
+ export declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, Omit<import("../../h-stack/types").Props, "spacing" | "alignment"> & {
9
9
  alignment?: import("../../h-stack/types").HStackAlignment | import("react").CSSProperties["alignItems"];
10
10
  spacing?: import("react").CSSProperties["width"];
11
11
  } & import("react").RefAttributes<any> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "direction" | "wrap" | "expanded" | "justify" | "children" | "as" | "spacing" | keyof import("react").RefAttributes<any> | "isReversed" | "alignment"> & {
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/visually-hidden/styles.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,eAAO,MAAM,cAAc,EAAE,aAY5B,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/visually-hidden/styles.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,eAAO,MAAM,cAAc,EAAE,aAa5B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/components",
3
- "version": "32.3.1-next.v.202602241322.0+bce7cff88",
3
+ "version": "32.4.0",
4
4
  "description": "UI components for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -51,7 +51,7 @@
51
51
  "src/**/*.scss"
52
52
  ],
53
53
  "dependencies": {
54
- "@ariakit/react": "^0.4.21",
54
+ "@ariakit/react": "^0.4.22",
55
55
  "@date-fns/utc": "^2.1.1",
56
56
  "@emotion/cache": "^11.14.0",
57
57
  "@emotion/css": "^11.13.5",
@@ -64,24 +64,24 @@
64
64
  "@types/highlight-words-core": "1.2.1",
65
65
  "@types/react": "^18.3.27",
66
66
  "@use-gesture/react": "^10.3.1",
67
- "@wordpress/a11y": "^4.40.1-next.v.202602241322.0+bce7cff88",
68
- "@wordpress/base-styles": "^6.16.1-next.v.202602241322.0+bce7cff88",
69
- "@wordpress/compose": "^7.40.1-next.v.202602241322.0+bce7cff88",
70
- "@wordpress/date": "^5.40.1-next.v.202602241322.0+bce7cff88",
71
- "@wordpress/deprecated": "^4.40.1-next.v.202602241322.0+bce7cff88",
72
- "@wordpress/dom": "^4.40.1-next.v.202602241322.0+bce7cff88",
73
- "@wordpress/element": "^6.40.1-next.v.202602241322.0+bce7cff88",
74
- "@wordpress/escape-html": "^3.40.1-next.v.202602241322.0+bce7cff88",
75
- "@wordpress/hooks": "^4.40.1-next.v.202602241322.0+bce7cff88",
76
- "@wordpress/html-entities": "^4.40.1-next.v.202602241322.0+bce7cff88",
77
- "@wordpress/i18n": "^6.13.1-next.v.202602241322.0+bce7cff88",
78
- "@wordpress/icons": "^11.7.1-next.v.202602241322.0+bce7cff88",
79
- "@wordpress/is-shallow-equal": "^5.40.1-next.v.202602241322.0+bce7cff88",
80
- "@wordpress/keycodes": "^4.40.1-next.v.202602241322.0+bce7cff88",
81
- "@wordpress/primitives": "^4.40.1-next.v.202602241322.0+bce7cff88",
82
- "@wordpress/private-apis": "^1.40.1-next.v.202602241322.0+bce7cff88",
83
- "@wordpress/rich-text": "^7.40.1-next.v.202602241322.0+bce7cff88",
84
- "@wordpress/warning": "^3.40.1-next.v.202602241322.0+bce7cff88",
67
+ "@wordpress/a11y": "^4.42.0",
68
+ "@wordpress/base-styles": "^6.18.0",
69
+ "@wordpress/compose": "^7.42.0",
70
+ "@wordpress/date": "^5.42.0",
71
+ "@wordpress/deprecated": "^4.42.0",
72
+ "@wordpress/dom": "^4.42.0",
73
+ "@wordpress/element": "^6.42.0",
74
+ "@wordpress/escape-html": "^3.42.0",
75
+ "@wordpress/hooks": "^4.42.0",
76
+ "@wordpress/html-entities": "^4.42.0",
77
+ "@wordpress/i18n": "^6.15.0",
78
+ "@wordpress/icons": "^12.0.0",
79
+ "@wordpress/is-shallow-equal": "^5.42.0",
80
+ "@wordpress/keycodes": "^4.42.0",
81
+ "@wordpress/primitives": "^4.42.0",
82
+ "@wordpress/private-apis": "^1.42.0",
83
+ "@wordpress/rich-text": "^7.42.0",
84
+ "@wordpress/warning": "^3.42.0",
85
85
  "change-case": "^4.1.2",
86
86
  "clsx": "^2.1.1",
87
87
  "colord": "^2.7.0",
@@ -103,13 +103,13 @@
103
103
  },
104
104
  "devDependencies": {
105
105
  "@ariakit/test": "^0.4.13",
106
- "@storybook/addon-docs": "^10.1.11",
107
- "@storybook/react-vite": "^10.1.11",
106
+ "@storybook/addon-docs": "^10.2.8",
107
+ "@storybook/react-vite": "^10.2.8",
108
108
  "@testing-library/jest-dom": "^6.9.1",
109
109
  "@types/jest": "^29.5.14",
110
- "@wordpress/jest-console": "^8.40.1-next.v.202602241322.0+bce7cff88",
110
+ "@wordpress/jest-console": "^8.42.0",
111
111
  "snapshot-diff": "^0.10.0",
112
- "storybook": "^10.1.11",
112
+ "storybook": "^10.2.8",
113
113
  "timezone-mock": "^1.3.6"
114
114
  },
115
115
  "peerDependencies": {
@@ -119,5 +119,5 @@
119
119
  "publishConfig": {
120
120
  "access": "public"
121
121
  },
122
- "gitHead": "943dde7f0b600ce238726c36284bc9f70ce0ffa4"
122
+ "gitHead": "c20787b1778ae64c2db65643b1c236309d68e6ba"
123
123
  }
@@ -16,7 +16,7 @@ import Button from '../../button';
16
16
  * This component is deprecated. Use `ToggleGroupControl` instead.
17
17
  */
18
18
  const meta: Meta< typeof ButtonGroup > = {
19
- title: 'Components (Deprecated)/ButtonGroup',
19
+ title: 'Components/Deprecated/ButtonGroup',
20
20
  id: 'components-buttongroup',
21
21
  component: ButtonGroup,
22
22
  argTypes: {
@@ -159,6 +159,17 @@ export const WithSelectedDateAndMonth: Story = {
159
159
  },
160
160
  };
161
161
 
162
+ /**
163
+ * Shows days from adjacent months in the grid. Outside days use a lighter style
164
+ * and are still interactive. Use `fixedWeeks` to keep the grid height constant.
165
+ */
166
+ export const WithOutsideDays: Story = {
167
+ args: {
168
+ showOutsideDays: true,
169
+ fixedWeeks: true,
170
+ },
171
+ };
172
+
162
173
  /**
163
174
  * When working with time zones, use the `TZDate` object exported by this package instead of the native `Date` object.
164
175
  */
@@ -162,6 +162,17 @@ export const WithSelectedRangeAndMonth: Story = {
162
162
  },
163
163
  };
164
164
 
165
+ /**
166
+ * Shows days from adjacent months in the grid. Outside days use a lighter style
167
+ * and are still interactive. Use `fixedWeeks` to keep the grid height constant.
168
+ */
169
+ export const WithOutsideDays: Story = {
170
+ args: {
171
+ showOutsideDays: true,
172
+ fixedWeeks: true,
173
+ },
174
+ };
175
+
165
176
  /**
166
177
  * When working with time zones, use the `TZDate` object exported by this package instead of the native `Date` object.
167
178
  */
@@ -253,6 +253,11 @@ $wp-components-calendar-preview-border-color: color-mix(in srgb, $components-col
253
253
  }
254
254
  }
255
255
 
256
+ // Outside month days (visible when showOutsideDays is true): use a lighter text color.
257
+ .components-calendar__day--outside {
258
+ color: $components-color-gray-600;
259
+ }
260
+
256
261
  // Hidden button (ie. outside current month but still rendered)
257
262
  .components-calendar__day--hidden {
258
263
  visibility: hidden;
@@ -187,6 +187,18 @@ export interface BaseProps
187
187
  * @default 1
188
188
  */
189
189
  numberOfMonths?: number;
190
+ /**
191
+ * When `true`, days from adjacent months are shown in the grid and receive
192
+ * the `outside` modifier and the class.
193
+ * @default false
194
+ */
195
+ showOutsideDays?: boolean;
196
+ /**
197
+ * When `true`, the calendar always shows a fixed number of weeks (e.g. 6)
198
+ * so the grid height does not change between months.
199
+ * @default false
200
+ */
201
+ fixedWeeks?: boolean;
190
202
  /**
191
203
  * The earliest month to start the month navigation.
192
204
  */
@@ -7,6 +7,7 @@ const CLASSNAMES = {
7
7
  root: 'components-calendar',
8
8
  day: 'components-calendar__day',
9
9
  day_button: 'components-calendar__day-button',
10
+ outside: 'components-calendar__day--outside',
10
11
  caption_label: 'components-calendar__caption-label',
11
12
  button_next: 'components-calendar__button-next',
12
13
  button_previous: 'components-calendar__button-previous',
@@ -15,7 +15,7 @@ import {
15
15
  import { UseCompositeStatePlaceholder, transform } from './utils';
16
16
 
17
17
  const meta: Meta< typeof UseCompositeStatePlaceholder > = {
18
- title: 'Components (Deprecated)/Composite (Unstable)',
18
+ title: 'Components/Deprecated/Composite (Unstable)',
19
19
  id: 'components-composite-unstable',
20
20
  component: UseCompositeStatePlaceholder,
21
21
  subcomponents: {
@@ -68,6 +68,7 @@ export const DayButton = styled( Button, {
68
68
  grid-column: ${ ( props ) => props.column };
69
69
  position: relative;
70
70
  justify-content: center;
71
+ padding: 0;
71
72
 
72
73
  ${ ( props ) =>
73
74
  props.disabled &&
@@ -1,17 +1,14 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import timezoneMock from 'timezone-mock';
5
-
6
- /**
7
- * WordPress dependencies
8
- */
9
2
  import { getSettings, setSettings, type DateSettings } from '@wordpress/date';
3
+ import { inputToDate, getDaysInMonth } from '../utils';
10
4
 
11
- /**
12
- * Internal dependencies
13
- */
14
- import { inputToDate } from '../utils';
5
+ describe( 'getDaysInMonth', () => {
6
+ it( 'should return the number of days in the month', () => {
7
+ expect( getDaysInMonth( 2026, 0 ) ).toBe( 31 );
8
+ expect( getDaysInMonth( 2026, 1 ) ).toBe( 28 );
9
+ expect( getDaysInMonth( 2028, 1 ) ).toBe( 29 );
10
+ } );
11
+ } );
15
12
 
16
13
  describe( 'inputToDate', () => {
17
14
  let originalSettings: DateSettings;
@@ -1,18 +1,7 @@
1
- /**
2
- * External dependencies
3
- */
4
1
  import { startOfMinute } from 'date-fns';
5
-
6
- /**
7
- * WordPress dependencies
8
- */
9
2
  import { useState, useMemo, useEffect } from '@wordpress/element';
10
3
  import { __ } from '@wordpress/i18n';
11
4
  import { date as formatDate } from '@wordpress/date';
12
-
13
- /**
14
- * Internal dependencies
15
- */
16
5
  import BaseControl from '../../base-control';
17
6
  import { VisuallyHidden } from '../../visually-hidden';
18
7
  import SelectControl from '../../select-control';
@@ -33,6 +22,7 @@ import {
33
22
  buildPadInputStateReducer,
34
23
  validateInputElementTarget,
35
24
  setInConfiguredTimezone,
25
+ getDaysInMonth,
36
26
  } from '../utils';
37
27
  import { TIMEZONELESS_FORMAT } from '../constants';
38
28
  import { TimeInput } from './time-input';
@@ -150,7 +140,7 @@ export function TimePicker( {
150
140
  value={ day }
151
141
  step={ 1 }
152
142
  min={ 1 }
153
- max={ 31 }
143
+ max={ getDaysInMonth( Number( year ), Number( month ) - 1 ) }
154
144
  required
155
145
  spinControls="none"
156
146
  isPressEnterToChange
@@ -158,6 +158,75 @@ describe( 'TimePicker', () => {
158
158
  expect( onChangeSpy ).toHaveBeenCalledWith( '1986-10-18T11:59:00' );
159
159
  } );
160
160
 
161
+ it( 'should call onChange with a bounded day if out of bounds', async () => {
162
+ const user = userEvent.setup();
163
+
164
+ const onChangeSpy = jest.fn();
165
+
166
+ render(
167
+ <TimePicker
168
+ currentTime="2026-02-05T00:00:00"
169
+ onChange={ onChangeSpy }
170
+ is12Hour
171
+ />
172
+ );
173
+
174
+ const dayInput = screen.getByLabelText( 'Day' );
175
+
176
+ await user.clear( dayInput );
177
+ await user.type( dayInput, '30' );
178
+ await user.keyboard( '{Tab}' );
179
+
180
+ expect( onChangeSpy ).toHaveBeenCalledWith( '2026-02-28T00:00:00' );
181
+ expect( dayInput ).toHaveValue( 28 );
182
+ } );
183
+
184
+ it( 'should clamp day when switching months', async () => {
185
+ const user = userEvent.setup();
186
+
187
+ const onChangeSpy = jest.fn();
188
+
189
+ render(
190
+ <TimePicker
191
+ currentTime="2026-03-31T00:00:00"
192
+ onChange={ onChangeSpy }
193
+ is12Hour
194
+ />
195
+ );
196
+
197
+ const monthSelect = screen.getByLabelText( 'Month' );
198
+ const dayInput = screen.getByLabelText( 'Day' );
199
+
200
+ await user.selectOptions( monthSelect, '02' );
201
+
202
+ expect( onChangeSpy ).toHaveBeenCalledWith( '2026-02-28T00:00:00' );
203
+ expect( dayInput ).toHaveValue( 28 );
204
+ } );
205
+
206
+ it( 'should clamp day when switching year from leap to non-leap', async () => {
207
+ const user = userEvent.setup();
208
+
209
+ const onChangeSpy = jest.fn();
210
+
211
+ render(
212
+ <TimePicker
213
+ currentTime="2028-02-29T00:00:00"
214
+ onChange={ onChangeSpy }
215
+ is12Hour
216
+ />
217
+ );
218
+
219
+ const dayInput = screen.getByLabelText( 'Day' );
220
+ const yearInput = screen.getByLabelText( 'Year' );
221
+
222
+ await user.clear( yearInput );
223
+ await user.type( yearInput, '2026' );
224
+ await user.keyboard( '{Tab}' );
225
+
226
+ expect( onChangeSpy ).toHaveBeenCalledWith( '2026-02-28T00:00:00' );
227
+ expect( dayInput ).toHaveValue( 28 );
228
+ } );
229
+
161
230
  it( 'should switch to PM correctly', async () => {
162
231
  const user = userEvent.setup();
163
232
 
@@ -110,6 +110,19 @@ export function buildPadInputStateReducer( pad: number ) {
110
110
  };
111
111
  }
112
112
 
113
+ /**
114
+ * Returns the number of days in a month.
115
+ *
116
+ * @param year The year
117
+ * @param month The month, zero-indexed (0-11)
118
+ *
119
+ * @return The number of days in the month
120
+ */
121
+ export const getDaysInMonth = ( year: number, month: number ) =>
122
+ // Take advantage of JavaScript's built-in date wrapping logic, where day 0
123
+ // of the next month is interpreted as the last day of the preceding month.
124
+ new Date( year, month + 1, 0 ).getDate();
125
+
113
126
  /**
114
127
  * Updates specific date fields in the configured timezone and returns a new
115
128
  * UTC date.
@@ -139,6 +152,11 @@ export function setInConfiguredTimezone(
139
152
  ...updates,
140
153
  };
141
154
 
155
+ // Clamp the day to the last valid day of the month, to avoid producing
156
+ // invalid date strings (e.g. "2026-02-31").
157
+ const daysInMonth = getDaysInMonth( values.year, values.month );
158
+ values.date = Math.min( values.date, daysInMonth );
159
+
142
160
  const year = String( values.year ).padStart( 4, '0' );
143
161
  const month = String( values.month + 1 ).padStart( 2, '0' );
144
162
  const day = String( values.date ).padStart( 2, '0' );