zaravand-ui 7.0.1 → 7.1.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.
- package/dist/components/Dialog/Dialog.cjs +1 -1
- package/dist/components/Dialog/Dialog.js +1 -1
- package/dist/components/Input/Input.formatting.cjs +1 -1
- package/dist/components/Input/Input.formatting.js +35 -17
- package/dist/components/Input/Input.interface.d.cts +5 -1
- package/dist/components/Input/Input.interface.d.ts +5 -1
- package/dist/components/OtpInput/OtpInput.cjs +1 -0
- package/dist/components/OtpInput/OtpInput.d.cts +10 -0
- package/dist/components/OtpInput/OtpInput.d.ts +10 -0
- package/dist/components/OtpInput/OtpInput.interface.d.cts +49 -0
- package/dist/components/OtpInput/OtpInput.interface.d.ts +49 -0
- package/dist/components/OtpInput/OtpInput.js +150 -0
- package/dist/components/OtpInput/OtpInput.variant.cjs +1 -0
- package/dist/components/OtpInput/OtpInput.variant.d.cts +6 -0
- package/dist/components/OtpInput/OtpInput.variant.d.ts +6 -0
- package/dist/components/OtpInput/OtpInput.variant.js +15 -0
- package/dist/components/Select/Select.cjs +1 -1
- package/dist/components/Select/Select.d.cts +4 -1
- package/dist/components/Select/Select.d.ts +4 -1
- package/dist/components/Select/Select.interface.d.cts +15 -1
- package/dist/components/Select/Select.interface.d.ts +15 -1
- package/dist/components/Select/Select.js +697 -566
- package/dist/components/Table/Table.cjs +1 -1
- package/dist/components/Table/Table.constants.cjs +1 -1
- package/dist/components/Table/Table.constants.d.cts +1 -0
- package/dist/components/Table/Table.constants.d.ts +1 -0
- package/dist/components/Table/Table.constants.js +2 -2
- package/dist/components/Table/Table.interface.d.cts +39 -0
- package/dist/components/Table/Table.interface.d.ts +39 -0
- package/dist/components/Table/Table.js +522 -421
- package/dist/components/Table/Table.utils.cjs +1 -1
- package/dist/components/Table/Table.utils.d.cts +10 -1
- package/dist/components/Table/Table.utils.d.ts +10 -1
- package/dist/components/Table/Table.utils.js +23 -1
- package/dist/components/Table/Table.variant.cjs +1 -1
- package/dist/components/Table/Table.variant.d.cts +5 -0
- package/dist/components/Table/Table.variant.d.ts +5 -0
- package/dist/components/Table/Table.variant.js +17 -11
- package/dist/components/Table/TableActiveFilters.cjs +1 -0
- package/dist/components/Table/TableActiveFilters.d.cts +12 -0
- package/dist/components/Table/TableActiveFilters.d.ts +12 -0
- package/dist/components/Table/TableActiveFilters.js +55 -0
- package/dist/components/Table/TableColumnFilter.cjs +1 -0
- package/dist/components/Table/TableColumnFilter.d.cts +20 -0
- package/dist/components/Table/TableColumnFilter.d.ts +20 -0
- package/dist/components/Table/TableColumnFilter.js +100 -0
- package/dist/components/Table/TableEmptyState.cjs +1 -1
- package/dist/components/Table/TableEmptyState.d.cts +1 -1
- package/dist/components/Table/TableEmptyState.d.ts +1 -1
- package/dist/components/Table/TableEmptyState.js +16 -7
- package/dist/components/Table/TableFilterRegistry.cjs +1 -0
- package/dist/components/Table/TableFilterRegistry.d.cts +13 -0
- package/dist/components/Table/TableFilterRegistry.d.ts +13 -0
- package/dist/components/Table/TableFilterRegistry.js +5 -0
- package/dist/components/Table/TableSkeletonRows.cjs +1 -1
- package/dist/components/Table/TableSkeletonRows.js +7 -7
- package/dist/components/Table/TableSortToggle.cjs +1 -1
- package/dist/components/Table/TableSortToggle.js +8 -8
- package/dist/components/Table/hooks/useTableFilter.cjs +1 -0
- package/dist/components/Table/hooks/useTableFilter.d.cts +18 -0
- package/dist/components/Table/hooks/useTableFilter.d.ts +18 -0
- package/dist/components/Table/hooks/useTableFilter.js +49 -0
- package/dist/components/Uploader/Uploader.variant.cjs +1 -1
- package/dist/components/Uploader/Uploader.variant.d.cts +1 -1
- package/dist/components/Uploader/Uploader.variant.d.ts +1 -1
- package/dist/components/Uploader/Uploader.variant.js +1 -1
- package/dist/components/VerticalTabs/VerticalTabs.cjs +1 -0
- package/dist/components/VerticalTabs/VerticalTabs.d.cts +4 -0
- package/dist/components/VerticalTabs/VerticalTabs.d.ts +4 -0
- package/dist/components/VerticalTabs/VerticalTabs.interface.d.cts +41 -0
- package/dist/components/VerticalTabs/VerticalTabs.interface.d.ts +41 -0
- package/dist/components/VerticalTabs/VerticalTabs.js +196 -0
- package/dist/components/VerticalTabs/VerticalTabs.variant.cjs +1 -0
- package/dist/components/VerticalTabs/VerticalTabs.variant.d.cts +19 -0
- package/dist/components/VerticalTabs/VerticalTabs.variant.d.ts +19 -0
- package/dist/components/VerticalTabs/VerticalTabs.variant.js +48 -0
- package/dist/components/shared/responsiveScale.cjs +1 -1
- package/dist/components/shared/responsiveScale.d.cts +3 -1
- package/dist/components/shared/responsiveScale.d.ts +3 -1
- package/dist/components/shared/responsiveScale.js +2 -2
- package/dist/config/messages.cjs +1 -1
- package/dist/config/messages.d.cts +8 -0
- package/dist/config/messages.d.ts +8 -0
- package/dist/config/messages.js +12 -2
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +19 -16
- package/package.json +2 -1
|
@@ -5,7 +5,10 @@ declare function SelectGroup(props: SelectGroupProps): null;
|
|
|
5
5
|
declare function SelectLabel(props: SelectLabelProps): null;
|
|
6
6
|
declare function SelectSeparator(): null;
|
|
7
7
|
declare function Select(props: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type"> & import("class-variance-authority").VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> &
|
|
8
|
+
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type"> & import("class-variance-authority").VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & {
|
|
9
|
+
unstyled?: boolean;
|
|
10
|
+
tooltip?: string;
|
|
11
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
9
12
|
declare function SelectValue({ className, placeholder, children, ...props }: SelectValueProps): import("react/jsx-runtime").JSX.Element;
|
|
10
13
|
declare const SelectContent: React.ForwardRefExoticComponent<SelectContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
14
|
export { SelectTrigger, SelectValue, SelectContent, SelectGroup, SelectLabel, SelectItem, SelectSeparator, };
|
|
@@ -5,7 +5,10 @@ declare function SelectGroup(props: SelectGroupProps): null;
|
|
|
5
5
|
declare function SelectLabel(props: SelectLabelProps): null;
|
|
6
6
|
declare function SelectSeparator(): null;
|
|
7
7
|
declare function Select(props: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type"> & import("class-variance-authority").VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> &
|
|
8
|
+
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type"> & import("class-variance-authority").VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & {
|
|
9
|
+
unstyled?: boolean;
|
|
10
|
+
tooltip?: string;
|
|
11
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
9
12
|
declare function SelectValue({ className, placeholder, children, ...props }: SelectValueProps): import("react/jsx-runtime").JSX.Element;
|
|
10
13
|
declare const SelectContent: React.ForwardRefExoticComponent<SelectContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
14
|
export { SelectTrigger, SelectValue, SelectContent, SelectGroup, SelectLabel, SelectItem, SelectSeparator, };
|
|
@@ -46,6 +46,12 @@ interface SelectBaseProps {
|
|
|
46
46
|
options?: SelectOption[];
|
|
47
47
|
remoteOptions?: SelectRemoteOptions;
|
|
48
48
|
isSearch?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* With `isSearch`, shows the clear (and, for `type="multi"`, select all) buttons beside the
|
|
51
|
+
* search field. Pass `false` for a search field alone.
|
|
52
|
+
* @default true
|
|
53
|
+
*/
|
|
54
|
+
searchActions?: boolean;
|
|
49
55
|
disabled?: boolean;
|
|
50
56
|
/** @deprecated Use `disabled`. */
|
|
51
57
|
disable?: boolean;
|
|
@@ -85,7 +91,15 @@ export interface SelectMultiProps extends SelectBaseProps {
|
|
|
85
91
|
onChange?: (value: string[]) => void;
|
|
86
92
|
}
|
|
87
93
|
export type SelectProps = SelectSingleProps | SelectMultiProps;
|
|
88
|
-
export type SelectTriggerProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type"> & VariantProps<typeof selectTriggerVariants
|
|
94
|
+
export type SelectTriggerProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type"> & VariantProps<typeof selectTriggerVariants> & {
|
|
95
|
+
/**
|
|
96
|
+
* Drops the field look (border, height, chevron, clear button) so the trigger is only its
|
|
97
|
+
* `children` styled by `className` — e.g. an icon button that opens the same dropdown.
|
|
98
|
+
*/
|
|
99
|
+
unstyled?: boolean;
|
|
100
|
+
/** Shown in a tooltip when the pointer rests on the trigger. */
|
|
101
|
+
tooltip?: string;
|
|
102
|
+
};
|
|
89
103
|
export type SelectValueProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
90
104
|
placeholder?: React.ReactNode;
|
|
91
105
|
};
|
|
@@ -46,6 +46,12 @@ interface SelectBaseProps {
|
|
|
46
46
|
options?: SelectOption[];
|
|
47
47
|
remoteOptions?: SelectRemoteOptions;
|
|
48
48
|
isSearch?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* With `isSearch`, shows the clear (and, for `type="multi"`, select all) buttons beside the
|
|
51
|
+
* search field. Pass `false` for a search field alone.
|
|
52
|
+
* @default true
|
|
53
|
+
*/
|
|
54
|
+
searchActions?: boolean;
|
|
49
55
|
disabled?: boolean;
|
|
50
56
|
/** @deprecated Use `disabled`. */
|
|
51
57
|
disable?: boolean;
|
|
@@ -85,7 +91,15 @@ export interface SelectMultiProps extends SelectBaseProps {
|
|
|
85
91
|
onChange?: (value: string[]) => void;
|
|
86
92
|
}
|
|
87
93
|
export type SelectProps = SelectSingleProps | SelectMultiProps;
|
|
88
|
-
export type SelectTriggerProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type"> & VariantProps<typeof selectTriggerVariants
|
|
94
|
+
export type SelectTriggerProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "type"> & VariantProps<typeof selectTriggerVariants> & {
|
|
95
|
+
/**
|
|
96
|
+
* Drops the field look (border, height, chevron, clear button) so the trigger is only its
|
|
97
|
+
* `children` styled by `className` — e.g. an icon button that opens the same dropdown.
|
|
98
|
+
*/
|
|
99
|
+
unstyled?: boolean;
|
|
100
|
+
/** Shown in a tooltip when the pointer rests on the trigger. */
|
|
101
|
+
tooltip?: string;
|
|
102
|
+
};
|
|
89
103
|
export type SelectValueProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
90
104
|
placeholder?: React.ReactNode;
|
|
91
105
|
};
|