@loadsmart/loadsmart-ui
Advanced tools
Comparing version 0.24.0 to 0.25.0
import { HTMLAttributes, ReactNode } from 'react'; | ||
declare type NavProps = HTMLAttributes<HTMLUListElement>; | ||
declare function Nav({ children, ...props }: NavProps): JSX.Element; | ||
interface NavItemProps extends HTMLAttributes<HTMLInputElement> { | ||
import type { WithDirectionProps } from './Tabs.types'; | ||
declare type TabsItemsProps = HTMLAttributes<HTMLUListElement>; | ||
declare function TabsItems({ children, ...props }: TabsItemsProps): JSX.Element; | ||
interface TabsItemProps extends HTMLAttributes<HTMLInputElement> { | ||
name: string; | ||
@@ -9,16 +10,18 @@ default?: boolean; | ||
} | ||
declare function NavItem({ children, name, default: isDefault, className, onChange, leading, ...props }: NavItemProps): JSX.Element; | ||
declare type PanelsProps = HTMLAttributes<HTMLDivElement>; | ||
interface PanelItemProps extends HTMLAttributes<HTMLElement> { | ||
declare function TabsItem({ children, name, default: isDefault, className, onChange, leading, ...props }: TabsItemProps): JSX.Element; | ||
declare type PanelsItemsProps = HTMLAttributes<HTMLDivElement>; | ||
declare function PanelsItems({ children, ...props }: PanelsItemsProps): JSX.Element; | ||
interface PanelsItemProps extends HTMLAttributes<HTMLElement> { | ||
name: string; | ||
} | ||
declare function PanelItem({ children, name, ...props }: PanelItemProps): JSX.Element; | ||
export declare type TabsProps = HTMLAttributes<HTMLElement>; | ||
declare function Tab({ children, ...props }: TabsProps): JSX.Element; | ||
declare namespace Tab { | ||
var Items: typeof Nav; | ||
var Item: typeof NavItem; | ||
var Panels: ({ children, ...props }: PanelsProps) => JSX.Element; | ||
var Panel: typeof PanelItem; | ||
declare function PanelsItem({ children, name, ...props }: PanelsItemProps): JSX.Element; | ||
export interface TabsProps extends HTMLAttributes<HTMLElement>, WithDirectionProps { | ||
} | ||
export default Tab; | ||
declare function Tabs({ children, direction, ...props }: TabsProps): JSX.Element; | ||
declare namespace Tabs { | ||
var Items: typeof TabsItems; | ||
var Item: typeof TabsItem; | ||
var Panels: typeof PanelsItems; | ||
var Panel: typeof PanelsItem; | ||
} | ||
export default Tabs; |
@@ -6,4 +6,5 @@ /// <reference types="react" /> | ||
setActiveTab: (name: string) => void; | ||
direction?: 'horizontal' | 'vertical'; | ||
} | ||
export declare const TabContext: import("react").Context<TabContextValue>; | ||
export {}; |
{ | ||
"name": "@loadsmart/loadsmart-ui", | ||
"version": "0.24.0", | ||
"version": "0.25.0", | ||
"description": "Loadsmart UI", | ||
@@ -5,0 +5,0 @@ "main": "dist", |
@@ -7,4 +7,5 @@ import { createContext } from 'react' | ||
setActiveTab: (name: string) => void | ||
direction?: 'horizontal' | 'vertical' | ||
} | ||
export const TabContext = createContext<TabContextValue>({} as TabContextValue) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
975774
241
15368