From 209d6d492cd7d96b7bbf6cd2fb9d45ebb6ebdf0d Mon Sep 17 00:00:00 2001 From: Tal Koren Date: Mon, 3 Jun 2024 17:49:14 +0300 Subject: [PATCH] fix(ResponsiveList): add static props for backwards (#2161) --- .../src/components/ResponsiveList/ResponsiveList.tsx | 9 ++++++--- packages/core/webpack/published-js-components.js | 1 - packages/core/webpack/published-ts-components.js | 1 + 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/core/src/components/ResponsiveList/ResponsiveList.tsx b/packages/core/src/components/ResponsiveList/ResponsiveList.tsx index f6c937e055..dd300ded5d 100644 --- a/packages/core/src/components/ResponsiveList/ResponsiveList.tsx +++ b/packages/core/src/components/ResponsiveList/ResponsiveList.tsx @@ -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 = forwardRef( +const ResponsiveList: VibeComponent & { + menuButtonSizes?: typeof MenuButton.sizes; +} = forwardRef( ( { id, @@ -101,4 +103,5 @@ const ResponsiveList: VibeComponent = forwardRef