Skip to content

Commit

Permalink
fix(ResponsiveList): add static props for backwards (#2161)
Browse files Browse the repository at this point in the history
  • Loading branch information
talkor authored Jun 3, 2024
1 parent 99d44ad commit 209d6d4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import useMergeRef from "../../hooks/useMergeRef";
import useElementsOverflowingIndex from "../../hooks/useElementsOverflowingIndex";
import { ComponentDefaultTestId, getTestId } from "../../tests/test-ids-utils";
import styles from "./ResponsiveList.module.scss";
import { VibeComponent } from "../../types";
import { VibeComponent, withStaticProps } from "../../types";
import MenuButton from "../MenuButton/MenuButton";
import { DEFAULT_MINIMAL_MARGIN, EMPTY_ARRAY, ResponsiveListProps } from "./ResponsiveList.types";

const ResponsiveList: VibeComponent<ResponsiveListProps> = forwardRef<HTMLDivElement, ResponsiveListProps>(
const ResponsiveList: VibeComponent<ResponsiveListProps> & {
menuButtonSizes?: typeof MenuButton.sizes;
} = forwardRef<HTMLDivElement, ResponsiveListProps>(
(
{
id,
Expand Down Expand Up @@ -101,4 +103,5 @@ const ResponsiveList: VibeComponent<ResponsiveListProps> = forwardRef<HTMLDivEle
);
}
);
export default ResponsiveList;

export default withStaticProps(ResponsiveList, { menuButtonSizes: MenuButton.sizes });
1 change: 0 additions & 1 deletion packages/core/webpack/published-js-components.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const publishedJSComponents = {
ResponsiveList: "components/ResponsiveList/ResponsiveList",
MultiStepIndicator: "components/MultiStepIndicator/MultiStepIndicator",
Dropdown: "components/Dropdown/Dropdown",
DropdownMenu: "components/Dropdown/components/menu/menu",
Expand Down
1 change: 1 addition & 0 deletions packages/core/webpack/published-ts-components.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const publishedTSComponents = {
// Don't remove next line
// plop_marker:published-components
ResponsiveList: "components/ResponsiveList/ResponsiveList",
TextArea: "components/TextArea/TextArea",
EditableText: "components/EditableText/EditableText",
Badge: "components/Badge/Badge",
Expand Down

0 comments on commit 209d6d4

Please sign in to comment.