@wordpress/components 32.0.1-next.ba3aee3a2.0 → 32.0.1-next.v.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 (121) hide show
  1. package/CHANGELOG.md +3 -1
  2. package/build/context/context-system-provider.cjs +1 -1
  3. package/build/context/context-system-provider.cjs.map +2 -2
  4. package/build/duotone-picker/duotone-picker.cjs +1 -1
  5. package/build/duotone-picker/duotone-picker.cjs.map +1 -1
  6. package/build/higher-order/with-fallback-styles/index.cjs +1 -1
  7. package/build/higher-order/with-fallback-styles/index.cjs.map +1 -1
  8. package/build/menu/popover.cjs +1 -0
  9. package/build/menu/popover.cjs.map +2 -2
  10. package/build/menu/styles.cjs +15 -15
  11. package/build/menu/styles.cjs.map +2 -2
  12. package/build-module/context/context-system-provider.mjs +1 -1
  13. package/build-module/context/context-system-provider.mjs.map +2 -2
  14. package/build-module/duotone-picker/duotone-picker.mjs +1 -1
  15. package/build-module/duotone-picker/duotone-picker.mjs.map +1 -1
  16. package/build-module/higher-order/with-fallback-styles/index.mjs +1 -1
  17. package/build-module/higher-order/with-fallback-styles/index.mjs.map +1 -1
  18. package/build-module/menu/popover.mjs +1 -0
  19. package/build-module/menu/popover.mjs.map +2 -2
  20. package/build-module/menu/styles.mjs +15 -15
  21. package/build-module/menu/styles.mjs.map +2 -2
  22. package/build-types/alignment-matrix-control/stories/index.story.d.ts +1 -1
  23. package/build-types/alignment-matrix-control/stories/index.story.d.ts.map +1 -1
  24. package/build-types/angle-picker-control/stories/index.story.d.ts +1 -1
  25. package/build-types/animate/stories/index.story.d.ts +7 -7
  26. package/build-types/animate/stories/index.story.d.ts.map +1 -1
  27. package/build-types/base-control/stories/index.story.d.ts +1 -1
  28. package/build-types/border-box-control/stories/index.story.d.ts +1 -1
  29. package/build-types/border-control/stories/index.story.d.ts +5 -5
  30. package/build-types/box-control/stories/index.story.d.ts +7 -7
  31. package/build-types/box-control/stories/index.story.d.ts.map +1 -1
  32. package/build-types/button/stories/e2e/index.story.d.ts +1 -1
  33. package/build-types/button/stories/e2e/index.story.d.ts.map +1 -1
  34. package/build-types/button/stories/index.story.d.ts +7 -7
  35. package/build-types/button/stories/index.story.d.ts.map +1 -1
  36. package/build-types/card/card-divider/hook.d.ts +1 -1
  37. package/build-types/circular-option-picker/stories/index.story.d.ts +5 -5
  38. package/build-types/circular-option-picker/stories/index.story.d.ts.map +1 -1
  39. package/build-types/color-palette/stories/index.story.d.ts +3 -3
  40. package/build-types/color-palette/stories/index.story.d.ts.map +1 -1
  41. package/build-types/combobox-control/stories/index.story.d.ts +4 -4
  42. package/build-types/confirm-dialog/stories/index.story.d.ts +2 -2
  43. package/build-types/confirm-dialog/stories/index.story.d.ts.map +1 -1
  44. package/build-types/context/context-system-provider.d.ts.map +1 -1
  45. package/build-types/custom-gradient-picker/stories/index.story.d.ts +1 -1
  46. package/build-types/custom-gradient-picker/stories/index.story.d.ts.map +1 -1
  47. package/build-types/custom-select-control/stories/index.story.d.ts +3 -3
  48. package/build-types/custom-select-control/stories/index.story.d.ts.map +1 -1
  49. package/build-types/custom-select-control-v2/stories/index.story.d.ts +3 -3
  50. package/build-types/date-time/stories/time.story.d.ts +1 -1
  51. package/build-types/date-time/stories/time.story.d.ts.map +1 -1
  52. package/build-types/drop-zone/stories/index.story.d.ts +1 -1
  53. package/build-types/drop-zone/stories/index.story.d.ts.map +1 -1
  54. package/build-types/duotone-picker/stories/duotone-picker.story.d.ts +1 -1
  55. package/build-types/duotone-picker/stories/duotone-picker.story.d.ts.map +1 -1
  56. package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts +3 -3
  57. package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts.map +1 -1
  58. package/build-types/focal-point-picker/stories/index.story.d.ts +4 -4
  59. package/build-types/form-file-upload/stories/index.story.d.ts +5 -5
  60. package/build-types/form-file-upload/stories/index.story.d.ts.map +1 -1
  61. package/build-types/gradient-picker/stories/index.story.d.ts +3 -3
  62. package/build-types/gradient-picker/stories/index.story.d.ts.map +1 -1
  63. package/build-types/guide/stories/index.story.d.ts +1 -1
  64. package/build-types/guide/stories/index.story.d.ts.map +1 -1
  65. package/build-types/icon/stories/index.story.d.ts +4 -4
  66. package/build-types/icon/stories/index.story.d.ts.map +1 -1
  67. package/build-types/index.d.ts +1 -0
  68. package/build-types/index.d.ts.map +1 -1
  69. package/build-types/input-control/stories/index.story.d.ts +7 -7
  70. package/build-types/input-control/stories/index.story.d.ts.map +1 -1
  71. package/build-types/keyboard-shortcuts/stories/index.story.d.ts +1 -1
  72. package/build-types/keyboard-shortcuts/stories/index.story.d.ts.map +1 -1
  73. package/build-types/menu/popover.d.ts.map +1 -1
  74. package/build-types/menu/styles.d.ts.map +1 -1
  75. package/build-types/menu-group/stories/index.story.d.ts +1 -1
  76. package/build-types/menu-group/stories/index.story.d.ts.map +1 -1
  77. package/build-types/menu-item/stories/index.story.d.ts +4 -4
  78. package/build-types/navigation/stories/index.story.d.ts +6 -6
  79. package/build-types/navigation/stories/index.story.d.ts.map +1 -1
  80. package/build-types/notice/stories/index.story.d.ts +5 -5
  81. package/build-types/notice/stories/index.story.d.ts.map +1 -1
  82. package/build-types/number-control/stories/index.story.d.ts +1 -1
  83. package/build-types/palette-edit/stories/index.story.d.ts +2 -2
  84. package/build-types/palette-edit/stories/index.story.d.ts.map +1 -1
  85. package/build-types/progress-bar/stories/index.story.d.ts +1 -1
  86. package/build-types/progress-bar/stories/index.story.d.ts.map +1 -1
  87. package/build-types/query-controls/stories/index.story.d.ts +1 -1
  88. package/build-types/query-controls/stories/index.story.d.ts.map +1 -1
  89. package/build-types/range-control/index.d.ts +2 -2
  90. package/build-types/resizable-box/stories/index.story.d.ts +2 -2
  91. package/build-types/responsive-wrapper/stories/index.story.d.ts +1 -1
  92. package/build-types/responsive-wrapper/stories/index.story.d.ts.map +1 -1
  93. package/build-types/sandbox/stories/index.story.d.ts +1 -1
  94. package/build-types/sandbox/stories/index.story.d.ts.map +1 -1
  95. package/build-types/search-control/stories/index.story.d.ts +1 -1
  96. package/build-types/select-control/stories/index.story.d.ts +5 -5
  97. package/build-types/shortcut/stories/index.story.d.ts +1 -1
  98. package/build-types/shortcut/stories/index.story.d.ts.map +1 -1
  99. package/build-types/tab-panel/stories/index.story.d.ts +4 -4
  100. package/build-types/tab-panel/stories/index.story.d.ts.map +1 -1
  101. package/build-types/tabs/stories/index.story.d.ts +7 -7
  102. package/build-types/tabs/stories/index.story.d.ts.map +1 -1
  103. package/build-types/text/stories/index.story.d.ts +3 -3
  104. package/build-types/theme/stories/index.story.d.ts +1 -1
  105. package/build-types/toggle-control/stories/index.story.d.ts +2 -2
  106. package/build-types/toolbar/stories/index.story.d.ts +3 -3
  107. package/build-types/toolbar/stories/index.story.d.ts.map +1 -1
  108. package/build-types/tooltip/stories/index.story.d.ts +1 -1
  109. package/build-types/tooltip/stories/index.story.d.ts.map +1 -1
  110. package/build-types/tree-grid/stories/index.story.d.ts +1 -1
  111. package/build-types/tree-grid/stories/index.story.d.ts.map +1 -1
  112. package/build-types/tree-select/stories/index.story.d.ts +1 -1
  113. package/build-types/tree-select/stories/index.story.d.ts.map +1 -1
  114. package/build-types/v-stack/stories/index.story.d.ts +1 -1
  115. package/package.json +22 -22
  116. package/src/context/context-system-provider.js +2 -1
  117. package/src/duotone-picker/duotone-picker.tsx +1 -1
  118. package/src/higher-order/with-fallback-styles/index.tsx +1 -1
  119. package/src/index.ts +6 -0
  120. package/src/menu/popover.tsx +1 -0
  121. package/src/menu/styles.ts +36 -26
@@ -8,12 +8,12 @@ import type { Meta } from '@storybook/react-webpack5';
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-webpack5").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-webpack5").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-webpack5';
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-webpack5").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-webpack5").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-webpack5").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,2BAA2B,CAAC;AAwB/D;;GAEG;AACH,OAAO,EACN,OAAO,EAKP,MAAM,IAAI,CAAC;AAGZ,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,OAAO,CAoB/B,CAAC;AAEF,eAAe,IAAI,CAAC;AAgBpB,eAAO,MAAM,OAAO,iWAAsB,CAAC;AA8F3C,eAAO,MAAM,YAAY,iWAAsB,CAAC;AAahD;;;GAGG;AAEH,eAAO,MAAM,QAAQ,iWAAsB,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,2BAA2B,CAAC;AAwB/D;;GAEG;AACH,OAAO,EACN,OAAO,EAKP,MAAM,IAAI,CAAC;AAGZ,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,OAAO,CAoB/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"}
@@ -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-webpack5").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,2BAA2B,CAAC;AAO/D;;GAEG;AACH,OAAO,OAAO,MAAM,IAAI,CAAC;AAGzB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,OAAO,CAuB/B,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,OAAO,CAAwB,CAAC;AAMtE,eAAO,MAAM,gBAAgB,4KAAsB,CAAC;AASpD;;;;;;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,2BAA2B,CAAC;AAO/D;;GAEG;AACH,OAAO,OAAO,MAAM,IAAI,CAAC;AAGzB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,OAAO,CAuB/B,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,OAAO,CAAwB,CAAC;AAMtE,eAAO,MAAM,gBAAgB,mKAAsB,CAAC;AASpD;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,EAAE,OAAO,CAAE,OAAO,OAAO,CAAwB,CAAC"}
@@ -8,5 +8,5 @@ import type { Meta } from '@storybook/react-webpack5';
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-webpack5").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,2BAA2B,CAAC;AAQ/D;;GAEG;AACH,OAAO,QAAuC,MAAM,IAAI,CAAC;AAIzD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,QAAQ,CAiBhC,CAAC;AACF,eAAe,IAAI,CAAC;AAiHpB,eAAO,MAAM,OAAO,yWAAsB,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,2BAA2B,CAAC;AAQ/D;;GAEG;AACH,OAAO,QAAuC,MAAM,IAAI,CAAC;AAIzD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,QAAQ,CAiBhC,CAAC;AACF,eAAe,IAAI,CAAC;AAiHpB,eAAO,MAAM,OAAO,gWAAsB,CAAC"}
@@ -8,5 +8,5 @@ import type { Meta } from '@storybook/react-webpack5';
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-webpack5").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,2BAA2B,CAAC;AAO/D;;GAEG;AACH,OAAO,UAAU,MAAM,KAAK,CAAC;AAE7B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,UAAU,CAiBlC,CAAC;AAEF,eAAe,IAAI,CAAC;AAepB,eAAO,MAAM,OAAO,0IAAiC,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,2BAA2B,CAAC;AAO/D;;GAEG;AACH,OAAO,UAAU,MAAM,KAAK,CAAC;AAE7B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,UAAU,CAiBlC,CAAC;AAEF,eAAe,IAAI,CAAC;AAepB,eAAO,MAAM,OAAO,iIAAiC,CAAC"}
@@ -5,7 +5,7 @@ import type { Meta } from '@storybook/react-webpack5';
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-webpack5").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"> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/components",
3
- "version": "32.0.1-next.ba3aee3a2.0",
3
+ "version": "32.0.1-next.v.0+500f87dd8",
4
4
  "description": "UI components for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -63,24 +63,24 @@
63
63
  "@types/gradient-parser": "1.1.0",
64
64
  "@types/highlight-words-core": "1.2.1",
65
65
  "@use-gesture/react": "^10.3.1",
66
- "@wordpress/a11y": "^4.37.1-next.ba3aee3a2.0",
67
- "@wordpress/base-styles": "^6.13.2-next.ba3aee3a2.0",
68
- "@wordpress/compose": "^7.37.1-next.ba3aee3a2.0",
69
- "@wordpress/date": "^5.37.2-next.ba3aee3a2.0",
70
- "@wordpress/deprecated": "^4.37.1-next.ba3aee3a2.0",
71
- "@wordpress/dom": "^4.37.1-next.ba3aee3a2.0",
72
- "@wordpress/element": "^6.37.1-next.ba3aee3a2.0",
73
- "@wordpress/escape-html": "^3.37.1-next.ba3aee3a2.0",
74
- "@wordpress/hooks": "^4.37.1-next.ba3aee3a2.0",
75
- "@wordpress/html-entities": "^4.37.1-next.ba3aee3a2.0",
76
- "@wordpress/i18n": "^6.10.1-next.ba3aee3a2.0",
77
- "@wordpress/icons": "^11.4.1-next.ba3aee3a2.0",
78
- "@wordpress/is-shallow-equal": "^5.37.1-next.ba3aee3a2.0",
79
- "@wordpress/keycodes": "^4.38.1-next.ba3aee3a2.0",
80
- "@wordpress/primitives": "^4.37.1-next.ba3aee3a2.0",
81
- "@wordpress/private-apis": "^1.37.1-next.ba3aee3a2.0",
82
- "@wordpress/rich-text": "^7.37.1-next.ba3aee3a2.0",
83
- "@wordpress/warning": "^3.37.1-next.ba3aee3a2.0",
66
+ "@wordpress/a11y": "^4.37.1-next.v.0+500f87dd8",
67
+ "@wordpress/base-styles": "^6.13.2-next.v.0+500f87dd8",
68
+ "@wordpress/compose": "^7.37.1-next.v.0+500f87dd8",
69
+ "@wordpress/date": "^5.37.2-next.v.0+500f87dd8",
70
+ "@wordpress/deprecated": "^4.37.1-next.v.0+500f87dd8",
71
+ "@wordpress/dom": "^4.37.1-next.v.0+500f87dd8",
72
+ "@wordpress/element": "^6.37.1-next.v.0+500f87dd8",
73
+ "@wordpress/escape-html": "^3.37.1-next.v.0+500f87dd8",
74
+ "@wordpress/hooks": "^4.37.1-next.v.0+500f87dd8",
75
+ "@wordpress/html-entities": "^4.37.1-next.v.0+500f87dd8",
76
+ "@wordpress/i18n": "^6.10.1-next.v.0+500f87dd8",
77
+ "@wordpress/icons": "^11.4.1-next.v.0+500f87dd8",
78
+ "@wordpress/is-shallow-equal": "^5.37.1-next.v.0+500f87dd8",
79
+ "@wordpress/keycodes": "^4.38.1-next.v.0+500f87dd8",
80
+ "@wordpress/primitives": "^4.37.1-next.v.0+500f87dd8",
81
+ "@wordpress/private-apis": "^1.37.1-next.v.0+500f87dd8",
82
+ "@wordpress/rich-text": "^7.37.1-next.v.0+500f87dd8",
83
+ "@wordpress/warning": "^3.37.1-next.v.0+500f87dd8",
84
84
  "change-case": "^4.1.2",
85
85
  "clsx": "^2.1.1",
86
86
  "colord": "^2.7.0",
@@ -94,7 +94,7 @@
94
94
  "memize": "^2.1.0",
95
95
  "path-to-regexp": "^6.2.1",
96
96
  "re-resizable": "^6.4.0",
97
- "react-colorful": "^5.3.1",
97
+ "react-colorful": "^5.6.1",
98
98
  "react-day-picker": "^9.7.0",
99
99
  "remove-accents": "^0.5.0",
100
100
  "uuid": "^9.0.1"
@@ -104,7 +104,7 @@
104
104
  "@storybook/addon-docs": "^9.1.17",
105
105
  "@testing-library/jest-dom": "^6.6.3",
106
106
  "@types/jest": "^29.5.14",
107
- "@wordpress/jest-console": "^8.37.1-next.ba3aee3a2.0",
107
+ "@wordpress/jest-console": "^8.37.1-next.v.0+500f87dd8",
108
108
  "csstype": "^3.2.3",
109
109
  "snapshot-diff": "^0.10.0",
110
110
  "storybook": "^9.1.17",
@@ -117,5 +117,5 @@
117
117
  "publishConfig": {
118
118
  "access": "public"
119
119
  },
120
- "gitHead": "67d2e486fcd40c753591cf911ca0659132f519ca"
120
+ "gitHead": "ca0db0ee8ac2116cd307650136027d26d0cdd9bd"
121
121
  }
@@ -2,7 +2,8 @@
2
2
  * External dependencies
3
3
  */
4
4
  import deepmerge from 'deepmerge';
5
- import fastDeepEqual from 'fast-deep-equal/es6';
5
+ import fastDeepEqual from 'fast-deep-equal/es6/index.js';
6
+ // @ts-expect-error https://github.com/jonschlinkert/is-plain-object/pull/47
6
7
  import { isPlainObject } from 'is-plain-object';
7
8
 
8
9
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import fastDeepEqual from 'fast-deep-equal/es6';
4
+ import fastDeepEqual from 'fast-deep-equal/es6/index.js';
5
5
 
6
6
  /**
7
7
  * WordPress dependencies
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import fastDeepEqual from 'fast-deep-equal/es6';
4
+ import fastDeepEqual from 'fast-deep-equal/es6/index.js';
5
5
 
6
6
  /**
7
7
  * WordPress dependencies
package/src/index.ts CHANGED
@@ -218,6 +218,12 @@ export {
218
218
  useSlot as __experimentalUseSlot,
219
219
  useSlotFills as __experimentalUseSlotFills,
220
220
  } from './slot-fill';
221
+ export type {
222
+ SlotKey,
223
+ SlotComponentProps,
224
+ FillComponentProps,
225
+ DistributiveOmit,
226
+ } from './slot-fill/types';
221
227
  export { default as __experimentalStyleProvider } from './style-provider';
222
228
  export { ZStack as __experimentalZStack } from './z-stack';
223
229
 
@@ -84,6 +84,7 @@ export const Popover = forwardRef<
84
84
  shift={ shift ?? ( menuContext.store.parent ? -4 : 0 ) }
85
85
  hideOnHoverOutside={ false }
86
86
  data-side={ appliedPlacementSide }
87
+ data-submenu={ !! menuContext.store.parent || undefined }
87
88
  wrapperProps={ wrapperProps }
88
89
  hideOnEscape={ hideOnEscape }
89
90
  unmountOnHide
@@ -72,32 +72,42 @@ export const Menu = styled( Ariakit.Menu )< Pick< ContextProps, 'variant' > >`
72
72
  ${ DROPDOWN_MOTION_CSS.FADE_EASING };
73
73
  will-change: transform, opacity;
74
74
 
75
- /* Regardless of the side, fade in and out. */
76
- opacity: 0;
77
- &[data-enter] {
78
- opacity: 1;
79
- }
80
-
81
- /* Slide in the direction the menu is opening. */
82
- &[data-side='bottom'] {
83
- transform: translateY( -${ DROPDOWN_MOTION_CSS.SLIDE_DISTANCE } );
84
- }
85
- &[data-side='top'] {
86
- transform: translateY( ${ DROPDOWN_MOTION_CSS.SLIDE_DISTANCE } );
87
- }
88
- &[data-side='left'] {
89
- transform: translateX( ${ DROPDOWN_MOTION_CSS.SLIDE_DISTANCE } );
90
- }
91
- &[data-side='right'] {
92
- transform: translateX( -${ DROPDOWN_MOTION_CSS.SLIDE_DISTANCE } );
93
- }
94
- &[data-enter][data-side='bottom'],
95
- &[data-enter][data-side='top'] {
96
- transform: translateY( 0 );
97
- }
98
- &[data-enter][data-side='left'],
99
- &[data-enter][data-side='right'] {
100
- transform: translateX( 0 );
75
+ &:not( [data-submenu] ) {
76
+ /* Regardless of the side, fade in and out. */
77
+ opacity: 0;
78
+ &[data-enter] {
79
+ opacity: 1;
80
+ }
81
+
82
+ /* Slide in the direction the menu is opening. */
83
+ &[data-side='bottom'] {
84
+ transform: translateY(
85
+ -${ DROPDOWN_MOTION_CSS.SLIDE_DISTANCE }
86
+ );
87
+ }
88
+ &[data-side='top'] {
89
+ transform: translateY(
90
+ ${ DROPDOWN_MOTION_CSS.SLIDE_DISTANCE }
91
+ );
92
+ }
93
+ &[data-side='left'] {
94
+ transform: translateX(
95
+ ${ DROPDOWN_MOTION_CSS.SLIDE_DISTANCE }
96
+ );
97
+ }
98
+ &[data-side='right'] {
99
+ transform: translateX(
100
+ -${ DROPDOWN_MOTION_CSS.SLIDE_DISTANCE }
101
+ );
102
+ }
103
+ &[data-enter][data-side='bottom'],
104
+ &[data-enter][data-side='top'] {
105
+ transform: translateY( 0 );
106
+ }
107
+ &[data-enter][data-side='left'],
108
+ &[data-enter][data-side='right'] {
109
+ transform: translateX( 0 );
110
+ }
101
111
  }
102
112
  }
103
113
  `;