@banyan_cloud/roots 2.0.61 → 2.0.62

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.
@@ -0,0 +1,4 @@
1
+ import { type ReactElement } from 'react';
2
+ import type { TabsProps } from './types';
3
+ declare const Tabs: (props: TabsProps) => ReactElement;
4
+ export default Tabs;
@@ -0,0 +1,2 @@
1
+ export { default as Tabs } from './Tabs';
2
+ export * from './types';
@@ -0,0 +1,30 @@
1
+ import type { ComponentType, ReactNode } from 'react';
2
+ interface TabProps {
3
+ id: string;
4
+ title: string;
5
+ disabled?: boolean;
6
+ leftIcon?: ComponentType | {
7
+ Active?: ComponentType;
8
+ InActive?: ComponentType;
9
+ };
10
+ rightIcon?: ComponentType<{
11
+ className?: string | undefined;
12
+ }>;
13
+ dropdown?: boolean;
14
+ dropdownItems?: {
15
+ title: string;
16
+ id: string;
17
+ }[];
18
+ }
19
+ type TabDirection = 'horizontal' | 'vertical';
20
+ export interface TabsProps {
21
+ tabs: TabProps[];
22
+ className?: string;
23
+ selectedTab: string;
24
+ setSelectedTab: (id: string) => void;
25
+ /** OPTIONAL because component provides a default */
26
+ direction?: TabDirection;
27
+ /** allow <div>, text, fragments, etc */
28
+ children?: ReactNode;
29
+ }
30
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@banyan_cloud/roots",
3
- "version": "2.0.61",
3
+ "version": "2.0.62",
4
4
  "description": "Design System Library which drives the Banyan Cloud products",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",