@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.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?: "square" | "circle" | "transparent" | null | undefined;
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?: "square" | "circle" | "transparent" | null | undefined;
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.RAISED,
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(Button, { variant: "tertiary", className: cn(styles24["selector-button"], buttonClassName), children: [
1921
- /* @__PURE__ */ jsxs("span", { className: styles24["selector-button-content"], children: [
1922
- label,
1923
- hasSelectedFilters && /* @__PURE__ */ jsx(Badge, { variant: "primary", children: selectedFilters.length })
1924
- ] }),
1925
- /* @__PURE__ */ jsx(ChevronDownIcon, { className: styles24["chevron-icon"] })
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
  {