zaravand-ui 1.0.3 → 1.0.5
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/README.md +1 -0
- package/dist/components/Button/Button.interface.d.ts +2 -1
- package/dist/components/RadioGroup/RadioGroup.variant.d.ts +1 -1
- package/dist/components/Table/Table.constants.d.ts +1 -1
- package/dist/components/Textarea/Textarea.variant.d.ts +1 -1
- package/dist/components/shared/fieldStyles.d.ts +2 -1
- package/dist/index.cjs +4 -4
- package/dist/index.css +1 -1
- package/dist/index.js +5217 -5197
- package/dist/shared/theme.d.ts +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
|
-
export interface ButtonProps {
|
|
2
|
+
export interface ButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children" | "type" | "disabled" | "onClick"> {
|
|
3
3
|
size?: "sm" | "default" | "lg";
|
|
4
4
|
variant?: "primary" | "secondary";
|
|
5
5
|
kind?: "confirm" | "cancel";
|
|
@@ -10,4 +10,5 @@ export interface ButtonProps {
|
|
|
10
10
|
ariaLabel?: string;
|
|
11
11
|
type?: "button" | "submit" | "reset";
|
|
12
12
|
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
13
|
+
className?: string;
|
|
13
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const radioGroupVariants: (props?: ({
|
|
2
|
-
orientation?: "
|
|
2
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
3
3
|
gap?: "sm" | "default" | "lg" | null | undefined;
|
|
4
4
|
disabled?: boolean | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -9,7 +9,7 @@ export declare const editButtonLabel = "\u0648\u06CC\u0631\u0627\u06CC\u0634";
|
|
|
9
9
|
export declare const deleteButtonLabel = "\u062D\u0630\u0641";
|
|
10
10
|
export declare const actionIconClassName = "zui:size-4";
|
|
11
11
|
export declare const pagingToggleIconClassName = "zui:size-6";
|
|
12
|
-
export declare const rowActionButtonClassName = "zui:border-0 zui:bg-transparent zui:shadow-none zui:hover:bg-transparent zui:hover:shadow-none zui:active:bg-transparent zui:focus-visible:ring-0";
|
|
12
|
+
export declare const rowActionButtonClassName = "zui:cursor-pointer zui:border-0 zui:bg-transparent zui:shadow-none zui:hover:bg-transparent zui:hover:shadow-none zui:active:bg-transparent zui:focus-visible:ring-0 zui:disabled:cursor-not-allowed";
|
|
13
13
|
export declare const actionsColumnClassName = "zui:w-32 zui:px-3 zui:text-center";
|
|
14
14
|
export declare const rowNumberColumnClassName = "zui:w-16 zui:px-3 zui:text-center";
|
|
15
15
|
export declare const searchInputPlaceholder = "\u062C\u0633\u062A\u062C\u0648 \u06A9\u0646\u06CC\u062F";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
declare const fieldInteractionClassName: string;
|
|
2
2
|
declare const fieldExpandedInteractionClassName: string;
|
|
3
|
-
|
|
3
|
+
declare const fieldDefaultBorderWhenEmptyClassName = "zui:[&:not(:focus):not(:focus-visible):not([data-state=open]):not([aria-invalid=true]):not([data-has-value=true])]:border-[var(--zui-color-border)]";
|
|
4
|
+
export { fieldDefaultBorderWhenEmptyClassName, fieldExpandedInteractionClassName, fieldInteractionClassName, };
|