@pushwoosh/dumb-components 1.0.25 → 1.0.26

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.
@@ -9,6 +9,7 @@ export type DropdownMenuButtonProps = {
9
9
  color: RequiredButtonProps['color'];
10
10
  size?: RequiredButtonProps['size'];
11
11
  view?: RequiredButtonProps['view'];
12
+ className?: string;
12
13
  icon?: RequiredButtonProps['icon'];
13
14
  rightIcon?: RequiredButtonProps['rightIcon'];
14
15
  children: (() => ReactNode) | ReactNode;
@@ -11,7 +11,8 @@ export function Tabs(props) {
11
11
  activeTabCode,
12
12
  setActiveTabCode
13
13
  }), [activeTabCode, setActiveTabCode]);
14
+ const Container = props.container || TabsContainer;
14
15
  return React.createElement(TabContext.Provider, {
15
16
  value: contextValue
16
- }, React.createElement(TabsContainer, null, children));
17
+ }, React.createElement(Container, null, children));
17
18
  }
@@ -1,6 +1,7 @@
1
- import type { PropsWithChildren } from 'react';
1
+ import type { ElementType, PropsWithChildren } from 'react';
2
2
  import { type TabCode } from '../../types';
3
3
  export type TabsProps = PropsWithChildren<Readonly<{
4
4
  activeCode: TabCode;
5
5
  onChange: (code: TabCode) => void;
6
+ container?: ElementType;
6
7
  }>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",