@eqtylab/equality 2.1.3 → 2.1.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/dist/index.cjs +18 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +18 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -437,8 +437,9 @@ interface FilterDropdownProps {
|
|
|
437
437
|
onClearAll: () => void;
|
|
438
438
|
buttonClassName?: string;
|
|
439
439
|
contentClassName?: string;
|
|
440
|
+
disabled?: boolean;
|
|
440
441
|
}
|
|
441
|
-
declare const FilterDropdown: ({ label, options, selectedFilters, onToggleFilter, onClearAll, buttonClassName, contentClassName, }: FilterDropdownProps) => react_jsx_runtime.JSX.Element;
|
|
442
|
+
declare const FilterDropdown: ({ label, options, selectedFilters, onToggleFilter, onClearAll, buttonClassName, contentClassName, disabled, }: FilterDropdownProps) => react_jsx_runtime.JSX.Element;
|
|
442
443
|
|
|
443
444
|
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
444
445
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
@@ -874,7 +875,7 @@ declare const TruncatedDescription: ({ className, description, maxLength, }: Tru
|
|
|
874
875
|
|
|
875
876
|
declare const iconVariants: (props?: ({
|
|
876
877
|
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
877
|
-
background?: "
|
|
878
|
+
background?: "circle" | "square" | "transparent" | null | undefined;
|
|
878
879
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
879
880
|
declare const iconElevationVariants: (props?: ({
|
|
880
881
|
elevation?: string | number | null | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -437,8 +437,9 @@ interface FilterDropdownProps {
|
|
|
437
437
|
onClearAll: () => void;
|
|
438
438
|
buttonClassName?: string;
|
|
439
439
|
contentClassName?: string;
|
|
440
|
+
disabled?: boolean;
|
|
440
441
|
}
|
|
441
|
-
declare const FilterDropdown: ({ label, options, selectedFilters, onToggleFilter, onClearAll, buttonClassName, contentClassName, }: FilterDropdownProps) => react_jsx_runtime.JSX.Element;
|
|
442
|
+
declare const FilterDropdown: ({ label, options, selectedFilters, onToggleFilter, onClearAll, buttonClassName, contentClassName, disabled, }: FilterDropdownProps) => react_jsx_runtime.JSX.Element;
|
|
442
443
|
|
|
443
444
|
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
444
445
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
@@ -874,7 +875,7 @@ declare const TruncatedDescription: ({ className, description, maxLength, }: Tru
|
|
|
874
875
|
|
|
875
876
|
declare const iconVariants: (props?: ({
|
|
876
877
|
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
877
|
-
background?: "
|
|
878
|
+
background?: "circle" | "square" | "transparent" | null | undefined;
|
|
878
879
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
879
880
|
declare const iconElevationVariants: (props?: ({
|
|
880
881
|
elevation?: string | number | null | undefined;
|
package/dist/index.js
CHANGED
|
@@ -1887,7 +1887,7 @@ var EmptyTableState = ({
|
|
|
1887
1887
|
icon,
|
|
1888
1888
|
title,
|
|
1889
1889
|
description,
|
|
1890
|
-
elevation = ELEVATION.
|
|
1890
|
+
elevation = ELEVATION.OVERLAY,
|
|
1891
1891
|
showClearButton = false,
|
|
1892
1892
|
onClear,
|
|
1893
1893
|
className
|
|
@@ -1910,20 +1910,29 @@ var FilterDropdown = ({
|
|
|
1910
1910
|
onToggleFilter,
|
|
1911
1911
|
onClearAll,
|
|
1912
1912
|
buttonClassName,
|
|
1913
|
-
contentClassName
|
|
1913
|
+
contentClassName,
|
|
1914
|
+
disabled = false
|
|
1914
1915
|
}) => {
|
|
1915
1916
|
const hasSelectedFilters = selectedFilters.length > 0;
|
|
1916
1917
|
const filteredOptions = options.filter(
|
|
1917
1918
|
(option) => option.value && option.value.trim() !== "" && option.label && option.label.trim() !== ""
|
|
1918
1919
|
);
|
|
1919
1920
|
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
1920
|
-
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1921
|
+
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
1922
|
+
Button,
|
|
1923
|
+
{
|
|
1924
|
+
variant: "tertiary",
|
|
1925
|
+
disabled,
|
|
1926
|
+
className: cn(styles24["selector-button"], buttonClassName),
|
|
1927
|
+
children: [
|
|
1928
|
+
/* @__PURE__ */ jsxs("span", { className: styles24["selector-button-content"], children: [
|
|
1929
|
+
label,
|
|
1930
|
+
hasSelectedFilters && /* @__PURE__ */ jsx(Badge, { variant: "primary", children: selectedFilters.length })
|
|
1931
|
+
] }),
|
|
1932
|
+
/* @__PURE__ */ jsx(ChevronDownIcon, { className: styles24["chevron-icon"] })
|
|
1933
|
+
]
|
|
1934
|
+
}
|
|
1935
|
+
) }),
|
|
1927
1936
|
/* @__PURE__ */ jsxs(
|
|
1928
1937
|
DropdownMenuContent,
|
|
1929
1938
|
{
|