zaravand-ui 3.1.6 → 4.0.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,4 @@
1
+ import * as React from "react";
2
+ import type { SwitchProps } from "./Switch.interface";
3
+ declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
4
+ export default Switch;
@@ -0,0 +1,18 @@
1
+ import type * as React from "react";
2
+ import type { VariantProps } from "class-variance-authority";
3
+ import type { switchVariants } from "./Switch.variant";
4
+ export interface SwitchProps extends VariantProps<typeof switchVariants> {
5
+ checked?: boolean;
6
+ defaultChecked?: boolean;
7
+ onCheckedChange?: (checked: boolean) => void;
8
+ required?: boolean;
9
+ name?: string;
10
+ value?: string;
11
+ form?: string;
12
+ id?: string;
13
+ className?: string;
14
+ "aria-label"?: string;
15
+ disabled?: boolean;
16
+ onClick?: React.MouseEventHandler<HTMLButtonElement>;
17
+ onInvalid?: React.FormEventHandler<HTMLButtonElement>;
18
+ }
@@ -0,0 +1,7 @@
1
+ declare const switchVariants: (props?: ({
2
+ size?: "sm" | "default" | "lg" | null | undefined;
3
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
4
+ declare const switchThumbVariants: (props?: ({
5
+ size?: "sm" | "default" | "lg" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ export { switchVariants, switchThumbVariants };
@@ -35,7 +35,7 @@ export declare const infiniteCompletedStatusLabel = "\u0647\u0645\u0647 \u0631\u
35
35
  export declare const defaultLoadingRowsCount = 6;
36
36
  export declare const maxLoadingRowsCount = 12;
37
37
  export declare const sortIconClassName = "zui:size-4";
38
- export declare const sortToggleButtonClassName = "zui:inline-flex zui:cursor-pointer zui:items-center zui:justify-center zui:rounded zui:border-0 zui:bg-transparent zui:p-0 zui:text-[var(--zui-theme-text-primary)] zui:transition-transform zui:duration-200 zui:ease-out zui:hover:scale-125 zui:focus-visible:outline-none zui:focus-visible:ring-2 zui:focus-visible:ring-[var(--zui-theme-action-secondary)]";
38
+ export declare const sortToggleButtonClassName = "zui:inline-flex zui:cursor-pointer zui:items-center zui:justify-center zui:rounded zui:border-0 zui:bg-transparent zui:p-0 zui:text-[var(--zui-color-surface)] zui:transition-transform zui:duration-200 zui:ease-out zui:hover:scale-125 zui:focus-visible:outline-none zui:focus-visible:ring-2 zui:focus-visible:ring-[var(--zui-theme-action-secondary)]";
39
39
  export declare const sortAscendingLabel = "\u0635\u0639\u0648\u062F\u06CC";
40
40
  export declare const sortDescendingLabel = "\u0646\u0632\u0648\u0644\u06CC";
41
41
  export declare const sortTooltipPrefixLabel = "\u0645\u0631\u062A\u0628\u200C\u0633\u0627\u0632\u06CC \u0628\u0631 \u0627\u0633\u0627\u0633";
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { ToggleProps } from "./Toggle.interface";
3
+ declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLButtonElement>>;
4
+ export default Toggle;
@@ -0,0 +1,13 @@
1
+ import type * as React from "react";
2
+ import type { VariantProps } from "class-variance-authority";
3
+ import type { toggleVariants } from "./Toggle.variant";
4
+ export interface ToggleProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children" | "disabled" | "onClick">, VariantProps<typeof toggleVariants> {
5
+ pressed?: boolean;
6
+ defaultPressed?: boolean;
7
+ onPressedChange?: (pressed: boolean) => void;
8
+ disabled?: boolean;
9
+ label?: React.ReactNode;
10
+ icon?: React.ReactNode;
11
+ ariaLabel?: string;
12
+ className?: string;
13
+ }
@@ -0,0 +1,5 @@
1
+ declare const toggleVariants: (props?: ({
2
+ variant?: "default" | "outline" | null | undefined;
3
+ size?: "sm" | "default" | "lg" | null | undefined;
4
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
+ export { toggleVariants };