@eqtylab/equality 2.2.2 → 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 +31 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +31 -29
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -224,14 +224,14 @@
|
|
|
224
224
|
&:hover {
|
|
225
225
|
@media (hover: hover) {
|
|
226
226
|
&:not(*:disabled) {
|
|
227
|
-
color: var(--color-red-
|
|
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-
|
|
234
|
+
color: var(--color-red-200) !important;
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -561,19 +561,25 @@ function Badge({
|
|
|
561
561
|
}) {
|
|
562
562
|
const effectiveIcon = icon ?? (variant ? defaultVariantIcons2[variant] : void 0);
|
|
563
563
|
const renderClosable = () => {
|
|
564
|
-
if (
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
564
|
+
if (closeable && handleClosable) {
|
|
565
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
566
|
+
Button,
|
|
567
|
+
{
|
|
568
|
+
type: "button",
|
|
569
|
+
variant: "tertiary",
|
|
570
|
+
size: "sm",
|
|
571
|
+
onPointerDown: (e) => e.stopPropagation(),
|
|
572
|
+
onClick: (e) => {
|
|
573
|
+
e.stopPropagation();
|
|
574
|
+
handleClosable();
|
|
575
|
+
},
|
|
576
|
+
"aria-label": closeLabel,
|
|
577
|
+
className: styles7__default.default["closable-btn"],
|
|
578
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(XIcon, {})
|
|
579
|
+
}
|
|
580
|
+
);
|
|
581
|
+
}
|
|
582
|
+
return null;
|
|
577
583
|
};
|
|
578
584
|
const renderChildren = () => {
|
|
579
585
|
const children = props.children;
|
|
@@ -1933,14 +1939,14 @@ var DropdownMenuContent = React16__namespace.forwardRef(({ className, sideOffset
|
|
|
1933
1939
|
}
|
|
1934
1940
|
) }));
|
|
1935
1941
|
DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
|
|
1936
|
-
var DropdownMenuItem = React16__namespace.forwardRef(({ className, inset,
|
|
1942
|
+
var DropdownMenuItem = React16__namespace.forwardRef(({ className, inset, variant = "neutral", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1937
1943
|
DropdownMenuPrimitive__namespace.Item,
|
|
1938
1944
|
{
|
|
1939
1945
|
ref,
|
|
1940
1946
|
className: cn(
|
|
1941
1947
|
styles22__default.default["dropdown-menu-item"],
|
|
1942
1948
|
inset && styles22__default.default["dropdown-menu-inset"],
|
|
1943
|
-
danger && styles22__default.default["dropdown-menu-item-danger"],
|
|
1949
|
+
variant === "danger" && styles22__default.default["dropdown-menu-item-danger"],
|
|
1944
1950
|
className
|
|
1945
1951
|
),
|
|
1946
1952
|
...props
|
|
@@ -2031,7 +2037,7 @@ var FilterDropdown = ({
|
|
|
2031
2037
|
(option) => option.value && option.value.trim() !== "" && option.label && option.label.trim() !== ""
|
|
2032
2038
|
);
|
|
2033
2039
|
return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
|
|
2034
|
-
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2040
|
+
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, disabled, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2035
2041
|
Button,
|
|
2036
2042
|
{
|
|
2037
2043
|
variant: "tertiary",
|
|
@@ -3075,19 +3081,15 @@ function SortSelector({
|
|
|
3075
3081
|
!isDefaultSort && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "link", size: "sm", onClick: handleReset, children: "Reset" })
|
|
3076
3082
|
] }),
|
|
3077
3083
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSeparator, {}),
|
|
3078
|
-
filteredOptions.map((option) =>
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
},
|
|
3088
|
-
option.value
|
|
3089
|
-
);
|
|
3090
|
-
})
|
|
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
|
+
)) })
|
|
3091
3093
|
]
|
|
3092
3094
|
}
|
|
3093
3095
|
)
|