@aivex/ui 1.1.0-dev.28 → 1.1.0-dev.30
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.
- package/dist/components/SelectBox/SelectBox.d.ts +2 -0
- package/dist/components/Switch/Switch.d.ts +5 -4
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3842 -2303
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +3 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
1
2
|
import { type VariantProps } from "class-variance-authority";
|
|
2
|
-
import { type
|
|
3
|
+
import { type ComponentPropsWithoutRef, type Ref } from "react";
|
|
3
4
|
declare const switchTrackVariants: (props?: ({
|
|
4
5
|
size?: "lg" | "md" | "sm" | null | undefined;
|
|
5
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
-
export interface SwitchProps extends Omit<
|
|
7
|
+
export interface SwitchProps extends Omit<ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>, "asChild" | "children">, VariantProps<typeof switchTrackVariants> {
|
|
7
8
|
label?: string;
|
|
8
|
-
ref?: Ref<
|
|
9
|
+
ref?: Ref<HTMLButtonElement>;
|
|
9
10
|
}
|
|
10
|
-
declare function Switch({ className, label, size,
|
|
11
|
+
declare function Switch({ className, label, size, disabled, id, ref, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export { Switch };
|