@wordpress/components 32.3.1-next.v.202602271551.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.
- package/CHANGELOG.md +22 -1
- package/build/alignment-matrix-control/cell.cjs +2 -2
- package/build/alignment-matrix-control/cell.cjs.map +1 -1
- package/build/alignment-matrix-control/index.cjs +2 -2
- package/build/alignment-matrix-control/index.cjs.map +1 -1
- package/build/angle-picker-control/angle-circle.cjs +2 -2
- package/build/angle-picker-control/angle-circle.cjs.map +1 -1
- package/build/calendar/utils/constants.cjs +1 -0
- package/build/calendar/utils/constants.cjs.map +2 -2
- package/build/date-time/date/styles.cjs +9 -9
- package/build/date-time/date/styles.cjs.map +2 -2
- package/build/date-time/time/index.cjs +1 -1
- package/build/date-time/time/index.cjs.map +2 -2
- package/build/date-time/utils.cjs +9 -0
- package/build/date-time/utils.cjs.map +2 -2
- package/build/menu/radio-item.cjs +1 -1
- package/build/menu/radio-item.cjs.map +2 -2
- package/build/private-apis.cjs +0 -4
- package/build/private-apis.cjs.map +3 -3
- package/build/tooltip/index.cjs +1 -1
- package/build/tooltip/index.cjs.map +1 -1
- package/build/visually-hidden/styles.cjs +2 -1
- package/build/visually-hidden/styles.cjs.map +2 -2
- package/build-module/alignment-matrix-control/cell.mjs +2 -2
- package/build-module/alignment-matrix-control/cell.mjs.map +1 -1
- package/build-module/alignment-matrix-control/index.mjs +2 -2
- package/build-module/alignment-matrix-control/index.mjs.map +1 -1
- package/build-module/angle-picker-control/angle-circle.mjs +2 -2
- package/build-module/angle-picker-control/angle-circle.mjs.map +1 -1
- package/build-module/calendar/utils/constants.mjs +1 -0
- package/build-module/calendar/utils/constants.mjs.map +2 -2
- package/build-module/date-time/date/styles.mjs +9 -9
- package/build-module/date-time/date/styles.mjs.map +2 -2
- package/build-module/date-time/time/index.mjs +2 -2
- package/build-module/date-time/time/index.mjs.map +2 -2
- package/build-module/date-time/utils.mjs +8 -0
- package/build-module/date-time/utils.mjs.map +2 -2
- package/build-module/menu/radio-item.mjs +1 -1
- package/build-module/menu/radio-item.mjs.map +2 -2
- package/build-module/private-apis.mjs +0 -4
- package/build-module/private-apis.mjs.map +2 -2
- package/build-module/tooltip/index.mjs +1 -1
- package/build-module/tooltip/index.mjs.map +1 -1
- package/build-module/visually-hidden/styles.mjs +2 -1
- package/build-module/visually-hidden/styles.mjs.map +2 -2
- package/build-style/style-rtl.css +11 -184
- package/build-style/style.css +11 -184
- 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/calendar/stories/date-calendar.story.d.ts +5 -0
- package/build-types/calendar/stories/date-calendar.story.d.ts.map +1 -1
- package/build-types/calendar/stories/date-range-calendar.story.d.ts +5 -0
- package/build-types/calendar/stories/date-range-calendar.story.d.ts.map +1 -1
- package/build-types/calendar/types.d.ts +12 -0
- package/build-types/calendar/types.d.ts.map +1 -1
- package/build-types/calendar/utils/constants.d.ts +1 -0
- package/build-types/calendar/utils/constants.d.ts.map +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/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/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/date/styles.d.ts.map +1 -1
- 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/date-time/time/index.d.ts.map +1 -1
- package/build-types/date-time/utils.d.ts +9 -0
- package/build-types/date-time/utils.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/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/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/radio-item.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/private-apis.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/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/tools-panel/tools-panel/hook.d.ts +1 -1
- package/build-types/tools-panel/types.d.ts +1 -1
- package/build-types/tools-panel/types.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/tooltip/types.d.ts +2 -2
- 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/build-types/visually-hidden/styles.d.ts.map +1 -1
- package/package.json +25 -25
- package/src/button-group/stories/index.story.tsx +1 -1
- package/src/calendar/stories/date-calendar.story.tsx +11 -0
- package/src/calendar/stories/date-range-calendar.story.tsx +11 -0
- package/src/calendar/style.scss +5 -0
- package/src/calendar/types.ts +12 -0
- package/src/calendar/utils/constants.ts +1 -0
- package/src/composite/legacy/stories/index.story.tsx +1 -1
- package/src/date-time/date/styles.ts +1 -0
- package/src/date-time/test/utils.test.ts +8 -11
- package/src/date-time/time/index.tsx +2 -12
- package/src/date-time/time/test/index.tsx +69 -0
- package/src/date-time/utils.ts +18 -0
- package/src/guide/style.scss +3 -0
- package/src/menu/radio-item.tsx +1 -1
- package/src/modal/style.scss +4 -7
- package/src/navigation/stories/index.story.tsx +1 -1
- package/src/notice/test/__snapshots__/index.tsx.snap +1 -1
- package/src/private-apis.ts +0 -4
- package/src/radio-group/stories/index.story.tsx +1 -1
- package/src/snackbar/style.scss +1 -0
- package/src/style.scss +0 -2
- package/src/tools-panel/types.ts +4 -1
- package/src/tooltip/README.md +2 -2
- package/src/tooltip/index.tsx +2 -2
- package/src/tooltip/types.ts +2 -2
- package/src/visually-hidden/styles.ts +1 -0
- package/src/visually-hidden/test/__snapshots__/index.tsx.snap +1 -1
- package/build/avatar/component.cjs +0 -99
- package/build/avatar/component.cjs.map +0 -7
- package/build/avatar/index.cjs +0 -37
- package/build/avatar/index.cjs.map +0 -7
- package/build/avatar/types.cjs +0 -19
- package/build/avatar/types.cjs.map +0 -7
- package/build/avatar-group/component.cjs +0 -60
- package/build/avatar-group/component.cjs.map +0 -7
- package/build/avatar-group/index.cjs +0 -37
- package/build/avatar-group/index.cjs.map +0 -7
- package/build/avatar-group/types.cjs +0 -19
- package/build/avatar-group/types.cjs.map +0 -7
- package/build-module/avatar/component.mjs +0 -68
- package/build-module/avatar/component.mjs.map +0 -7
- package/build-module/avatar/index.mjs +0 -6
- package/build-module/avatar/index.mjs.map +0 -7
- package/build-module/avatar/types.mjs +0 -1
- package/build-module/avatar/types.mjs.map +0 -7
- package/build-module/avatar-group/component.mjs +0 -29
- package/build-module/avatar-group/component.mjs.map +0 -7
- package/build-module/avatar-group/index.mjs +0 -6
- package/build-module/avatar-group/index.mjs.map +0 -7
- package/build-module/avatar-group/types.mjs +0 -1
- package/build-module/avatar-group/types.mjs.map +0 -7
- package/build-types/avatar/component.d.ts +0 -5
- package/build-types/avatar/component.d.ts.map +0 -1
- package/build-types/avatar/index.d.ts +0 -3
- package/build-types/avatar/index.d.ts.map +0 -1
- package/build-types/avatar/types.d.ts +0 -59
- package/build-types/avatar/types.d.ts.map +0 -1
- package/build-types/avatar-group/component.d.ts +0 -8
- package/build-types/avatar-group/component.d.ts.map +0 -1
- package/build-types/avatar-group/index.d.ts +0 -3
- package/build-types/avatar-group/index.d.ts.map +0 -1
- package/build-types/avatar-group/types.d.ts +0 -14
- package/build-types/avatar-group/types.d.ts.map +0 -1
- package/src/avatar/component.tsx +0 -82
- package/src/avatar/index.ts +0 -2
- package/src/avatar/styles.scss +0 -152
- package/src/avatar/types.ts +0 -59
- package/src/avatar-group/component.tsx +0 -46
- package/src/avatar-group/index.ts +0 -2
- package/src/avatar-group/styles.scss +0 -32
- package/src/avatar-group/types.ts +0 -13
|
@@ -8,7 +8,7 @@ import type { Meta } from '@storybook/react-vite';
|
|
|
8
8
|
import ResizableBox from '..';
|
|
9
9
|
declare const meta: Meta<typeof ResizableBox>;
|
|
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("re-resizable").ResizableProps & {
|
|
12
12
|
children: import("react").ReactNode;
|
|
13
13
|
showHandle?: boolean;
|
|
14
14
|
__experimentalShowTooltip?: boolean;
|
|
@@ -31,7 +31,7 @@ export declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<
|
|
|
31
31
|
/**
|
|
32
32
|
* The `enable` prop can be used to disable resizing in specific directions.
|
|
33
33
|
*/
|
|
34
|
-
export declare const DisabledDirections: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react
|
|
34
|
+
export declare const DisabledDirections: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("re-resizable").ResizableProps & {
|
|
35
35
|
children: import("react").ReactNode;
|
|
36
36
|
showHandle?: boolean;
|
|
37
37
|
__experimentalShowTooltip?: boolean;
|
|
@@ -8,7 +8,7 @@ import type { Meta, StoryFn } from '@storybook/react-vite';
|
|
|
8
8
|
import ResponsiveWrapper from '..';
|
|
9
9
|
declare const meta: Meta<typeof ResponsiveWrapper>;
|
|
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").ResponsiveWrapperProps>;
|
|
12
12
|
/**
|
|
13
13
|
* When passing an `SVG` element as the `<ResponsiveWrapper />`'s child, make
|
|
14
14
|
* sure that it has the `viewbox` and the `preserveAspectRatio` set.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/responsive-wrapper/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAE3D;;GAEG;AACH,OAAO,iBAAiB,MAAM,IAAI,CAAC;AAEnC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,iBAAiB,CAgBzC,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/responsive-wrapper/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAE3D;;GAEG;AACH,OAAO,iBAAiB,MAAM,IAAI,CAAC;AAEnC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,iBAAiB,CAgBzC,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO,wIAAsB,CAAC;AAY3C;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,iBAAiB,CAAwB,CAAC"}
|
|
@@ -8,5 +8,5 @@ import type { Meta } from '@storybook/react-vite';
|
|
|
8
8
|
import SandBox from '..';
|
|
9
9
|
declare const meta: Meta<typeof SandBox>;
|
|
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").SandBoxProps>;
|
|
12
12
|
//# sourceMappingURL=index.story.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/sandbox/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;AAG3D;;GAEG;AACH,OAAO,OAAO,MAAM,IAAI,CAAC;AAEzB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,OAAO,CAkB/B,CAAC;AACF,eAAe,IAAI,CAAC;AAIpB,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/sandbox/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;AAG3D;;GAEG;AACH,OAAO,OAAO,MAAM,IAAI,CAAC;AAEzB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,OAAO,CAkB/B,CAAC;AACF,eAAe,IAAI,CAAC;AAIpB,eAAO,MAAM,OAAO,8HAAsB,CAAC"}
|
|
@@ -8,7 +8,7 @@ import type { Meta } from '@storybook/react-vite';
|
|
|
8
8
|
import SearchControl from '..';
|
|
9
9
|
declare const meta: Meta<typeof SearchControl>;
|
|
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("../../input-control/types").InputControlProps, "value" | "help"> & {
|
|
12
12
|
__next40pxDefaultSize?: import("../../input-control/types").InputControlProps["__next40pxDefaultSize"];
|
|
13
13
|
__nextHasNoMarginBottom?: boolean;
|
|
14
14
|
hideLabelFromVision?: import("../../input-control/types").InputControlProps["hideLabelFromVision"];
|
|
@@ -8,27 +8,27 @@ import type { Meta } from '@storybook/react-vite';
|
|
|
8
8
|
import SelectControl from '../';
|
|
9
9
|
declare const meta: Meta<typeof SelectControl>;
|
|
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("../../context").WordPressComponentProps<import("../types").SelectControlProps<string>, "select", false> & {
|
|
12
12
|
ref?: React.Ref<HTMLSelectElement>;
|
|
13
13
|
}>;
|
|
14
|
-
export declare const WithLabelAndHelpText: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react
|
|
14
|
+
export declare const WithLabelAndHelpText: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../../context").WordPressComponentProps<import("../types").SelectControlProps<string>, "select", false> & {
|
|
15
15
|
ref?: React.Ref<HTMLSelectElement>;
|
|
16
16
|
}>;
|
|
17
17
|
/**
|
|
18
18
|
* As an alternative to the `options` prop, `optgroup`s and `options` can be
|
|
19
19
|
* passed in as `children` for more customizeability.
|
|
20
20
|
*/
|
|
21
|
-
export declare const WithCustomChildren: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react
|
|
21
|
+
export declare const WithCustomChildren: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../../context").WordPressComponentProps<import("../types").SelectControlProps<string>, "select", false> & {
|
|
22
22
|
ref?: React.Ref<HTMLSelectElement>;
|
|
23
23
|
}>;
|
|
24
24
|
/**
|
|
25
25
|
* By default, the prefix is aligned with the edge of the input border, with no padding.
|
|
26
26
|
* If you want to apply standard padding in accordance with the size variant, wrap the element in the `<InputControlPrefixWrapper>` component.
|
|
27
27
|
*/
|
|
28
|
-
export declare const WithPrefix: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react
|
|
28
|
+
export declare const WithPrefix: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../../context").WordPressComponentProps<import("../types").SelectControlProps<string>, "select", false> & {
|
|
29
29
|
ref?: React.Ref<HTMLSelectElement>;
|
|
30
30
|
}>;
|
|
31
|
-
export declare const Minimal: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react
|
|
31
|
+
export declare const Minimal: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../../context").WordPressComponentProps<import("../types").SelectControlProps<string>, "select", false> & {
|
|
32
32
|
ref?: React.Ref<HTMLSelectElement>;
|
|
33
33
|
}>;
|
|
34
34
|
//# sourceMappingURL=index.story.d.ts.map
|
|
@@ -9,5 +9,5 @@ import Shortcut from '../';
|
|
|
9
9
|
declare const meta: Meta<typeof Shortcut>;
|
|
10
10
|
export default meta;
|
|
11
11
|
export declare const Default: StoryFn<typeof Shortcut>;
|
|
12
|
-
export declare const WithAriaLabel: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react
|
|
12
|
+
export declare const WithAriaLabel: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../types").ShortcutProps>;
|
|
13
13
|
//# sourceMappingURL=index.story.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/shortcut/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAE3D;;GAEG;AACH,OAAO,QAAQ,MAAM,KAAK,CAAC;AAE3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,QAAQ,CAchC,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,QAAQ,CAAwB,CAAC;AAEvE,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/shortcut/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAE3D;;GAEG;AACH,OAAO,QAAQ,MAAM,KAAK,CAAC;AAE3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,QAAQ,CAchC,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO,EAAE,OAAO,CAAE,OAAO,QAAQ,CAAwB,CAAC;AAEvE,eAAO,MAAM,aAAa,+HAAsB,CAAC"}
|
|
@@ -8,8 +8,8 @@ import type { Meta } from '@storybook/react-vite';
|
|
|
8
8
|
import TabPanel from '..';
|
|
9
9
|
declare const meta: Meta<typeof TabPanel>;
|
|
10
10
|
export default meta;
|
|
11
|
-
export declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react
|
|
12
|
-
export declare const DisabledTab: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react
|
|
13
|
-
export declare const WithTabIconsAndTooltips: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react
|
|
14
|
-
export declare const ManualActivation: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react
|
|
11
|
+
export declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../types").TabPanelProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "as" | keyof import("../types").TabPanelProps> & import("react").RefAttributes<any>>;
|
|
12
|
+
export declare const DisabledTab: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../types").TabPanelProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "as" | keyof import("../types").TabPanelProps> & import("react").RefAttributes<any>>;
|
|
13
|
+
export declare const WithTabIconsAndTooltips: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../types").TabPanelProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "as" | keyof import("../types").TabPanelProps> & import("react").RefAttributes<any>>;
|
|
14
|
+
export declare const ManualActivation: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("../types").TabPanelProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "as" | keyof import("../types").TabPanelProps> & import("react").RefAttributes<any>>;
|
|
15
15
|
//# sourceMappingURL=index.story.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/tab-panel/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;AAQ3D;;GAEG;AACH,OAAO,QAAQ,MAAM,IAAI,CAAC;AAE1B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,QAAQ,CAgBhC,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"index.story.d.ts","sourceRoot":"","sources":["../../../src/tab-panel/stories/index.story.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;AAQ3D;;GAEG;AACH,OAAO,QAAQ,MAAM,IAAI,CAAC;AAE1B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAE,OAAO,QAAQ,CAgBhC,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,OAAO,0UAAsB,CAAC;AAe3C,eAAO,MAAM,WAAW,0UAAsB,CAAC;AAwB/C,eAAO,MAAM,uBAAuB,0UAA8B,CAAC;AAsBnE,eAAO,MAAM,gBAAgB,0UAAsB,CAAC"}
|
|
@@ -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
|
|
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
|
|
14
|
-
export declare const DisabledTab: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react
|
|
15
|
-
export declare const WithTabIconsAndTooltips: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react
|
|
16
|
-
export declare const ManualActivation: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react
|
|
17
|
-
export declare const UsingSlotFill: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react
|
|
18
|
-
export declare const InsertCustomElements: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react
|
|
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,
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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-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
|
|
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,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,
|
|
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,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,MAAM,MAAM,cAAc,GAAG,CAAE,UAAU,CAAC,EAAE,GAAG,KAAM,GAAG,CAAC;AACzD,KAAK,QAAQ,GAAG,CAAE,OAAO,CAAC,EAAE,cAAc,EAAE,KAAM,IAAI,CAAC;AAEvD,MAAM,MAAM,eAAe,GAAG;IAC7B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,cAAc,CAAE,OAAO,YAAY,CAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/tools-panel/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -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,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,
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
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
|
|
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,
|
|
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
|
|
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,
|
|
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
|
+
"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.
|
|
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.
|
|
68
|
-
"@wordpress/base-styles": "^6.
|
|
69
|
-
"@wordpress/compose": "^7.
|
|
70
|
-
"@wordpress/date": "^5.
|
|
71
|
-
"@wordpress/deprecated": "^4.
|
|
72
|
-
"@wordpress/dom": "^4.
|
|
73
|
-
"@wordpress/element": "^6.
|
|
74
|
-
"@wordpress/escape-html": "^3.
|
|
75
|
-
"@wordpress/hooks": "^4.
|
|
76
|
-
"@wordpress/html-entities": "^4.
|
|
77
|
-
"@wordpress/i18n": "^6.
|
|
78
|
-
"@wordpress/icons": "^
|
|
79
|
-
"@wordpress/is-shallow-equal": "^5.
|
|
80
|
-
"@wordpress/keycodes": "^4.
|
|
81
|
-
"@wordpress/primitives": "^4.
|
|
82
|
-
"@wordpress/private-apis": "^1.
|
|
83
|
-
"@wordpress/rich-text": "^7.
|
|
84
|
-
"@wordpress/warning": "^3.
|
|
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.
|
|
107
|
-
"@storybook/react-vite": "^10.
|
|
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.
|
|
110
|
+
"@wordpress/jest-console": "^8.42.0",
|
|
111
111
|
"snapshot-diff": "^0.10.0",
|
|
112
|
-
"storybook": "^10.
|
|
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": "
|
|
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
|
|
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
|
*/
|
package/src/calendar/style.scss
CHANGED
|
@@ -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;
|
package/src/calendar/types.ts
CHANGED
|
@@ -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
|
|
18
|
+
title: 'Components/Deprecated/Composite (Unstable)',
|
|
19
19
|
id: 'components-composite-unstable',
|
|
20
20
|
component: UseCompositeStatePlaceholder,
|
|
21
21
|
subcomponents: {
|
|
@@ -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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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;
|