@kala-ui/react 0.0.1-beta.8 → 0.0.2
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.
|
@@ -3,11 +3,11 @@ import { type VariantProps } from "class-variance-authority";
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
declare const Tabs: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: ({
|
|
6
|
-
variant?: "
|
|
7
|
-
align?: "center" | "
|
|
6
|
+
variant?: "line" | "vertical" | "default" | null | undefined;
|
|
7
|
+
align?: "center" | "start" | "end" | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
10
|
-
variant?: "
|
|
10
|
+
variant?: "line" | "vertical" | "default" | null | undefined;
|
|
11
11
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
12
|
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
@@ -25,7 +25,7 @@ const Tabs = React.forwardRef(({ className, value, onValueChange, defaultValue,
|
|
|
25
25
|
onChange: onValueChange,
|
|
26
26
|
defaultProp: defaultValue,
|
|
27
27
|
});
|
|
28
|
-
return (_jsx(TabsContext.Provider, { value: { activeTab, setActiveTab, uniqueId }, children: _jsx(TabsPrimitive.Root, { ref: ref,
|
|
28
|
+
return (_jsx(TabsContext.Provider, { value: { activeTab, setActiveTab, uniqueId }, children: _jsx(TabsPrimitive.Root, { ref: ref, value: activeTab, onValueChange: setActiveTab, orientation: orientation, "data-slot": "tabs", className: cn("flex", orientation === "vertical" ? "flex-row gap-6" : "flex-col", className), ...props }) }));
|
|
29
29
|
});
|
|
30
30
|
Tabs.displayName = TabsPrimitive.Root.displayName;
|
|
31
31
|
const tabsListVariants = cva(tabsListStyles.base, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kala-ui/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "65+ accessible React components built with Radix UI and Tailwind CSS. Includes DataTable with server-side support, charts, drag-and-drop, and comprehensive form controls.",
|
|
6
6
|
"keywords": [
|