@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.
- package/CHANGELOG.md +3 -1
- package/build/context/context-system-provider.cjs +1 -1
- package/build/context/context-system-provider.cjs.map +2 -2
- package/build/duotone-picker/duotone-picker.cjs +1 -1
- package/build/duotone-picker/duotone-picker.cjs.map +1 -1
- package/build/higher-order/with-fallback-styles/index.cjs +1 -1
- package/build/higher-order/with-fallback-styles/index.cjs.map +1 -1
- package/build/menu/popover.cjs +1 -0
- package/build/menu/popover.cjs.map +2 -2
- package/build/menu/styles.cjs +15 -15
- package/build/menu/styles.cjs.map +2 -2
- package/build-module/context/context-system-provider.mjs +1 -1
- package/build-module/context/context-system-provider.mjs.map +2 -2
- package/build-module/duotone-picker/duotone-picker.mjs +1 -1
- package/build-module/duotone-picker/duotone-picker.mjs.map +1 -1
- package/build-module/higher-order/with-fallback-styles/index.mjs +1 -1
- package/build-module/higher-order/with-fallback-styles/index.mjs.map +1 -1
- package/build-module/menu/popover.mjs +1 -0
- package/build-module/menu/popover.mjs.map +2 -2
- package/build-module/menu/styles.mjs +15 -15
- package/build-module/menu/styles.mjs.map +2 -2
- package/build-types/alignment-matrix-control/stories/index.story.d.ts +1 -1
- package/build-types/alignment-matrix-control/stories/index.story.d.ts.map +1 -1
- package/build-types/angle-picker-control/stories/index.story.d.ts +1 -1
- package/build-types/animate/stories/index.story.d.ts +7 -7
- package/build-types/animate/stories/index.story.d.ts.map +1 -1
- package/build-types/base-control/stories/index.story.d.ts +1 -1
- package/build-types/border-box-control/stories/index.story.d.ts +1 -1
- package/build-types/border-control/stories/index.story.d.ts +5 -5
- package/build-types/box-control/stories/index.story.d.ts +7 -7
- package/build-types/box-control/stories/index.story.d.ts.map +1 -1
- package/build-types/button/stories/e2e/index.story.d.ts +1 -1
- package/build-types/button/stories/e2e/index.story.d.ts.map +1 -1
- package/build-types/button/stories/index.story.d.ts +7 -7
- package/build-types/button/stories/index.story.d.ts.map +1 -1
- package/build-types/card/card-divider/hook.d.ts +1 -1
- package/build-types/circular-option-picker/stories/index.story.d.ts +5 -5
- package/build-types/circular-option-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/color-palette/stories/index.story.d.ts +3 -3
- package/build-types/color-palette/stories/index.story.d.ts.map +1 -1
- package/build-types/combobox-control/stories/index.story.d.ts +4 -4
- package/build-types/confirm-dialog/stories/index.story.d.ts +2 -2
- package/build-types/confirm-dialog/stories/index.story.d.ts.map +1 -1
- package/build-types/context/context-system-provider.d.ts.map +1 -1
- package/build-types/custom-gradient-picker/stories/index.story.d.ts +1 -1
- package/build-types/custom-gradient-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/custom-select-control/stories/index.story.d.ts +3 -3
- package/build-types/custom-select-control/stories/index.story.d.ts.map +1 -1
- package/build-types/custom-select-control-v2/stories/index.story.d.ts +3 -3
- package/build-types/date-time/stories/time.story.d.ts +1 -1
- package/build-types/date-time/stories/time.story.d.ts.map +1 -1
- package/build-types/drop-zone/stories/index.story.d.ts +1 -1
- package/build-types/drop-zone/stories/index.story.d.ts.map +1 -1
- package/build-types/duotone-picker/stories/duotone-picker.story.d.ts +1 -1
- package/build-types/duotone-picker/stories/duotone-picker.story.d.ts.map +1 -1
- package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts +3 -3
- package/build-types/duotone-picker/stories/duotone-swatch.story.d.ts.map +1 -1
- package/build-types/focal-point-picker/stories/index.story.d.ts +4 -4
- package/build-types/form-file-upload/stories/index.story.d.ts +5 -5
- package/build-types/form-file-upload/stories/index.story.d.ts.map +1 -1
- package/build-types/gradient-picker/stories/index.story.d.ts +3 -3
- package/build-types/gradient-picker/stories/index.story.d.ts.map +1 -1
- package/build-types/guide/stories/index.story.d.ts +1 -1
- package/build-types/guide/stories/index.story.d.ts.map +1 -1
- package/build-types/icon/stories/index.story.d.ts +4 -4
- package/build-types/icon/stories/index.story.d.ts.map +1 -1
- package/build-types/index.d.ts +1 -0
- package/build-types/index.d.ts.map +1 -1
- package/build-types/input-control/stories/index.story.d.ts +7 -7
- package/build-types/input-control/stories/index.story.d.ts.map +1 -1
- package/build-types/keyboard-shortcuts/stories/index.story.d.ts +1 -1
- package/build-types/keyboard-shortcuts/stories/index.story.d.ts.map +1 -1
- package/build-types/menu/popover.d.ts.map +1 -1
- package/build-types/menu/styles.d.ts.map +1 -1
- package/build-types/menu-group/stories/index.story.d.ts +1 -1
- package/build-types/menu-group/stories/index.story.d.ts.map +1 -1
- package/build-types/menu-item/stories/index.story.d.ts +4 -4
- package/build-types/navigation/stories/index.story.d.ts +6 -6
- package/build-types/navigation/stories/index.story.d.ts.map +1 -1
- package/build-types/notice/stories/index.story.d.ts +5 -5
- package/build-types/notice/stories/index.story.d.ts.map +1 -1
- package/build-types/number-control/stories/index.story.d.ts +1 -1
- package/build-types/palette-edit/stories/index.story.d.ts +2 -2
- package/build-types/palette-edit/stories/index.story.d.ts.map +1 -1
- package/build-types/progress-bar/stories/index.story.d.ts +1 -1
- package/build-types/progress-bar/stories/index.story.d.ts.map +1 -1
- package/build-types/query-controls/stories/index.story.d.ts +1 -1
- package/build-types/query-controls/stories/index.story.d.ts.map +1 -1
- package/build-types/range-control/index.d.ts +2 -2
- package/build-types/resizable-box/stories/index.story.d.ts +2 -2
- package/build-types/responsive-wrapper/stories/index.story.d.ts +1 -1
- package/build-types/responsive-wrapper/stories/index.story.d.ts.map +1 -1
- package/build-types/sandbox/stories/index.story.d.ts +1 -1
- package/build-types/sandbox/stories/index.story.d.ts.map +1 -1
- package/build-types/search-control/stories/index.story.d.ts +1 -1
- package/build-types/select-control/stories/index.story.d.ts +5 -5
- package/build-types/shortcut/stories/index.story.d.ts +1 -1
- package/build-types/shortcut/stories/index.story.d.ts.map +1 -1
- package/build-types/tab-panel/stories/index.story.d.ts +4 -4
- package/build-types/tab-panel/stories/index.story.d.ts.map +1 -1
- package/build-types/tabs/stories/index.story.d.ts +7 -7
- package/build-types/tabs/stories/index.story.d.ts.map +1 -1
- package/build-types/text/stories/index.story.d.ts +3 -3
- package/build-types/theme/stories/index.story.d.ts +1 -1
- package/build-types/toggle-control/stories/index.story.d.ts +2 -2
- package/build-types/toolbar/stories/index.story.d.ts +3 -3
- package/build-types/toolbar/stories/index.story.d.ts.map +1 -1
- package/build-types/tooltip/stories/index.story.d.ts +1 -1
- package/build-types/tooltip/stories/index.story.d.ts.map +1 -1
- package/build-types/tree-grid/stories/index.story.d.ts +1 -1
- package/build-types/tree-grid/stories/index.story.d.ts.map +1 -1
- package/build-types/tree-select/stories/index.story.d.ts +1 -1
- package/build-types/tree-select/stories/index.story.d.ts.map +1 -1
- package/build-types/v-stack/stories/index.story.d.ts +1 -1
- package/package.json +22 -22
- package/src/context/context-system-provider.js +2 -1
- package/src/duotone-picker/duotone-picker.tsx +1 -1
- package/src/higher-order/with-fallback-styles/index.tsx +1 -1
- package/src/index.ts +6 -0
- package/src/menu/popover.tsx +1 -0
- 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
|
|
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
|
|
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
|
|
12
|
-
export declare const WithoutGroup: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react
|
|
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
|
|
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,
|
|
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
|
|
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,
|
|
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
|
|
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,
|
|
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
|
|
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,
|
|
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
|
|
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.
|
|
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.
|
|
67
|
-
"@wordpress/base-styles": "^6.13.2-next.
|
|
68
|
-
"@wordpress/compose": "^7.37.1-next.
|
|
69
|
-
"@wordpress/date": "^5.37.2-next.
|
|
70
|
-
"@wordpress/deprecated": "^4.37.1-next.
|
|
71
|
-
"@wordpress/dom": "^4.37.1-next.
|
|
72
|
-
"@wordpress/element": "^6.37.1-next.
|
|
73
|
-
"@wordpress/escape-html": "^3.37.1-next.
|
|
74
|
-
"@wordpress/hooks": "^4.37.1-next.
|
|
75
|
-
"@wordpress/html-entities": "^4.37.1-next.
|
|
76
|
-
"@wordpress/i18n": "^6.10.1-next.
|
|
77
|
-
"@wordpress/icons": "^11.4.1-next.
|
|
78
|
-
"@wordpress/is-shallow-equal": "^5.37.1-next.
|
|
79
|
-
"@wordpress/keycodes": "^4.38.1-next.
|
|
80
|
-
"@wordpress/primitives": "^4.37.1-next.
|
|
81
|
-
"@wordpress/private-apis": "^1.37.1-next.
|
|
82
|
-
"@wordpress/rich-text": "^7.37.1-next.
|
|
83
|
-
"@wordpress/warning": "^3.37.1-next.
|
|
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.
|
|
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.
|
|
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": "
|
|
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
|
/**
|
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
|
|
package/src/menu/popover.tsx
CHANGED
|
@@ -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
|
package/src/menu/styles.ts
CHANGED
|
@@ -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
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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
|
`;
|