@eqtylab/equality 2.2.3 → 2.2.4
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/dropdown-menu.module.module.css.module.css +2 -2
- package/dist/index.cjs +12 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +12 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -396,7 +396,7 @@ declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<Dro
|
|
|
396
396
|
declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
397
397
|
declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
398
398
|
inset?: boolean;
|
|
399
|
-
|
|
399
|
+
variant?: "neutral" | "danger";
|
|
400
400
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
401
401
|
declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
402
402
|
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -645,7 +645,7 @@ declare const SearchBar: ({ searchQuery, setSearchQuery, placeholder, className,
|
|
|
645
645
|
|
|
646
646
|
interface SectionHeadingProps {
|
|
647
647
|
className?: string;
|
|
648
|
-
heading:
|
|
648
|
+
heading: React.ReactNode;
|
|
649
649
|
description?: string;
|
|
650
650
|
renderRightContent?: () => React.ReactNode;
|
|
651
651
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -396,7 +396,7 @@ declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<Dro
|
|
|
396
396
|
declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
397
397
|
declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
398
398
|
inset?: boolean;
|
|
399
|
-
|
|
399
|
+
variant?: "neutral" | "danger";
|
|
400
400
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
401
401
|
declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
402
402
|
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -645,7 +645,7 @@ declare const SearchBar: ({ searchQuery, setSearchQuery, placeholder, className,
|
|
|
645
645
|
|
|
646
646
|
interface SectionHeadingProps {
|
|
647
647
|
className?: string;
|
|
648
|
-
heading:
|
|
648
|
+
heading: React.ReactNode;
|
|
649
649
|
description?: string;
|
|
650
650
|
renderRightContent?: () => React.ReactNode;
|
|
651
651
|
}
|
package/dist/index.js
CHANGED
|
@@ -1835,14 +1835,14 @@ var DropdownMenuContent = React16.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
1835
1835
|
}
|
|
1836
1836
|
) }));
|
|
1837
1837
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
1838
|
-
var DropdownMenuItem = React16.forwardRef(({ className, inset,
|
|
1838
|
+
var DropdownMenuItem = React16.forwardRef(({ className, inset, variant = "neutral", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1839
1839
|
DropdownMenuPrimitive.Item,
|
|
1840
1840
|
{
|
|
1841
1841
|
ref,
|
|
1842
1842
|
className: cn(
|
|
1843
1843
|
styles22["dropdown-menu-item"],
|
|
1844
1844
|
inset && styles22["dropdown-menu-inset"],
|
|
1845
|
-
danger && styles22["dropdown-menu-item-danger"],
|
|
1845
|
+
variant === "danger" && styles22["dropdown-menu-item-danger"],
|
|
1846
1846
|
className
|
|
1847
1847
|
),
|
|
1848
1848
|
...props
|
|
@@ -1933,7 +1933,7 @@ var FilterDropdown = ({
|
|
|
1933
1933
|
(option) => option.value && option.value.trim() !== "" && option.label && option.label.trim() !== ""
|
|
1934
1934
|
);
|
|
1935
1935
|
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
1936
|
-
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
1936
|
+
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, disabled, children: /* @__PURE__ */ jsxs(
|
|
1937
1937
|
Button,
|
|
1938
1938
|
{
|
|
1939
1939
|
variant: "tertiary",
|
|
@@ -2977,19 +2977,15 @@ function SortSelector({
|
|
|
2977
2977
|
!isDefaultSort && /* @__PURE__ */ jsx(Button, { variant: "link", size: "sm", onClick: handleReset, children: "Reset" })
|
|
2978
2978
|
] }),
|
|
2979
2979
|
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
2980
|
-
filteredOptions.map((option) =>
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
},
|
|
2990
|
-
option.value
|
|
2991
|
-
);
|
|
2992
|
-
})
|
|
2980
|
+
/* @__PURE__ */ jsx(DropdownMenuRadioGroup, { value: currentValue, onValueChange: handleChange, children: filteredOptions.map((option) => /* @__PURE__ */ jsx(
|
|
2981
|
+
DropdownMenuRadioItem,
|
|
2982
|
+
{
|
|
2983
|
+
value: option.value,
|
|
2984
|
+
onSelect: (e) => e.preventDefault(),
|
|
2985
|
+
children: option.label
|
|
2986
|
+
},
|
|
2987
|
+
option.value
|
|
2988
|
+
)) })
|
|
2993
2989
|
]
|
|
2994
2990
|
}
|
|
2995
2991
|
)
|