@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.
@@ -224,14 +224,14 @@
224
224
  &:hover {
225
225
  @media (hover: hover) {
226
226
  &:not(*:disabled) {
227
- color: var(--color-red-100) !important;
227
+ color: var(--color-red-200) !important;
228
228
  }
229
229
  }
230
230
  }
231
231
  }
232
232
  &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
233
233
  &:focus {
234
- color: var(--color-red-100) !important;
234
+ color: var(--color-red-200) !important;
235
235
  }
236
236
  }
237
237
  }
package/dist/index.cjs CHANGED
@@ -1939,14 +1939,14 @@ var DropdownMenuContent = React16__namespace.forwardRef(({ className, sideOffset
1939
1939
  }
1940
1940
  ) }));
1941
1941
  DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
1942
- var DropdownMenuItem = React16__namespace.forwardRef(({ className, inset, danger, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1942
+ var DropdownMenuItem = React16__namespace.forwardRef(({ className, inset, variant = "neutral", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1943
1943
  DropdownMenuPrimitive__namespace.Item,
1944
1944
  {
1945
1945
  ref,
1946
1946
  className: cn(
1947
1947
  styles22__default.default["dropdown-menu-item"],
1948
1948
  inset && styles22__default.default["dropdown-menu-inset"],
1949
- danger && styles22__default.default["dropdown-menu-item-danger"],
1949
+ variant === "danger" && styles22__default.default["dropdown-menu-item-danger"],
1950
1950
  className
1951
1951
  ),
1952
1952
  ...props
@@ -2037,7 +2037,7 @@ var FilterDropdown = ({
2037
2037
  (option) => option.value && option.value.trim() !== "" && option.label && option.label.trim() !== ""
2038
2038
  );
2039
2039
  return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
2040
- /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
2040
+ /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, disabled, children: /* @__PURE__ */ jsxRuntime.jsxs(
2041
2041
  Button,
2042
2042
  {
2043
2043
  variant: "tertiary",
@@ -3081,19 +3081,15 @@ function SortSelector({
3081
3081
  !isDefaultSort && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "link", size: "sm", onClick: handleReset, children: "Reset" })
3082
3082
  ] }),
3083
3083
  /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSeparator, {}),
3084
- filteredOptions.map((option) => {
3085
- const isSelected = currentValue === option.value;
3086
- return /* @__PURE__ */ jsxRuntime.jsx(
3087
- DropdownMenuCheckboxItem,
3088
- {
3089
- checked: isSelected,
3090
- onCheckedChange: () => handleChange(option.value),
3091
- onSelect: (e) => e.preventDefault(),
3092
- children: option.label
3093
- },
3094
- option.value
3095
- );
3096
- })
3084
+ /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuRadioGroup, { value: currentValue, onValueChange: handleChange, children: filteredOptions.map((option) => /* @__PURE__ */ jsxRuntime.jsx(
3085
+ DropdownMenuRadioItem,
3086
+ {
3087
+ value: option.value,
3088
+ onSelect: (e) => e.preventDefault(),
3089
+ children: option.label
3090
+ },
3091
+ option.value
3092
+ )) })
3097
3093
  ]
3098
3094
  }
3099
3095
  )