@ldkj/web-ui 0.9.0 → 0.10.0

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 @@
1
+ export * from "./tabs";
@@ -0,0 +1,36 @@
1
+ import * as React from "react";
2
+ import * as TabsPrimitive from "@radix-ui/react-tabs";
3
+ import { type SxProps } from "@/styling";
4
+ type StyledProps = {
5
+ className?: string;
6
+ class?: string;
7
+ style?: React.CSSProperties;
8
+ sx?: SxProps;
9
+ };
10
+ export type TabsItemConfig = {
11
+ value: string;
12
+ label: React.ReactNode;
13
+ content?: React.ReactNode;
14
+ disabled?: boolean;
15
+ triggerProps?: Omit<TabsTriggerProps, "value" | "children" | "disabled">;
16
+ contentProps?: Omit<TabsContentProps, "value" | "children">;
17
+ };
18
+ export type TabsProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root> & StyledProps & {
19
+ items?: TabsItemConfig[];
20
+ listProps?: TabsListProps;
21
+ };
22
+ export declare function Tabs(props: TabsProps): import("react/jsx-runtime").JSX.Element;
23
+ export declare namespace Tabs {
24
+ var displayName: string;
25
+ }
26
+ export type TabsListProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.List> & StyledProps;
27
+ export declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & StyledProps & React.RefAttributes<HTMLDivElement>>;
28
+ export type TabsTriggerProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger> & StyledProps;
29
+ export declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & StyledProps & React.RefAttributes<HTMLButtonElement>>;
30
+ export type TabsContentProps = React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content> & StyledProps & {
31
+ borderless?: boolean;
32
+ };
33
+ export declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & StyledProps & {
34
+ borderless?: boolean;
35
+ } & React.RefAttributes<HTMLDivElement>>;
36
+ export {};