@eqtylab/equality 4.4.0 → 4.4.1
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/CHANGELOG.md +9 -0
- package/dist/index.cjs +21 -6
- 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 +21 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes to Equality are recorded here, following [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
4
4
|
|
|
5
|
+
## 4.4.1 - 2026-09-25
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Toasts dismiss on their own again after a toast is closed while hovered. The hover pause
|
|
10
|
+
stuck on, so every later toast stayed until closed by hand.
|
|
11
|
+
- A toast shown before a `Sheet` or `Dialog` opened can now be closed while it is open.
|
|
12
|
+
- The toast close button has an accessible name.
|
|
13
|
+
|
|
5
14
|
## 4.4.0 - 2026-09-25
|
|
6
15
|
|
|
7
16
|
### Added
|
package/dist/index.cjs
CHANGED
|
@@ -4399,12 +4399,13 @@ var toastVariants = classVarianceAuthority.cva(styles60__default.default["toast"
|
|
|
4399
4399
|
variant: "default"
|
|
4400
4400
|
}
|
|
4401
4401
|
});
|
|
4402
|
-
var ToastContainer = React15__namespace.forwardRef(({ className, variant, ...props }, ref) => {
|
|
4402
|
+
var ToastContainer = React15__namespace.forwardRef(({ className, variant, style, ...props }, ref) => {
|
|
4403
4403
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4404
4404
|
ToastPrimitives__namespace.Root,
|
|
4405
4405
|
{
|
|
4406
4406
|
ref,
|
|
4407
4407
|
className: cn(toastVariants({ variant }), className),
|
|
4408
|
+
style: { pointerEvents: "auto", ...style },
|
|
4408
4409
|
...props
|
|
4409
4410
|
}
|
|
4410
4411
|
);
|
|
@@ -4412,7 +4413,16 @@ var ToastContainer = React15__namespace.forwardRef(({ className, variant, ...pro
|
|
|
4412
4413
|
ToastContainer.displayName = ToastPrimitives__namespace.Root.displayName;
|
|
4413
4414
|
var ToastAction = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Action, { ref, className: cn(styles60__default.default["toast-action"], className), ...props }));
|
|
4414
4415
|
ToastAction.displayName = ToastPrimitives__namespace.Action.displayName;
|
|
4415
|
-
var ToastClose = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4416
|
+
var ToastClose = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4417
|
+
ToastPrimitives__namespace.Close,
|
|
4418
|
+
{
|
|
4419
|
+
ref,
|
|
4420
|
+
"aria-label": "Close",
|
|
4421
|
+
className: cn(styles60__default.default["toast-close"], className),
|
|
4422
|
+
...props,
|
|
4423
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(XIcon2, { className: styles60__default.default["toast-close-icon"] })
|
|
4424
|
+
}
|
|
4425
|
+
));
|
|
4416
4426
|
ToastClose.displayName = ToastPrimitives__namespace.Close.displayName;
|
|
4417
4427
|
var ToastTitle = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Title, { ref, className: cn(styles60__default.default["toast-title"], className), ...props }));
|
|
4418
4428
|
ToastTitle.displayName = ToastPrimitives__namespace.Title.displayName;
|
|
@@ -4573,10 +4583,15 @@ var Toaster = () => {
|
|
|
4573
4583
|
});
|
|
4574
4584
|
};
|
|
4575
4585
|
var ToastRoot = () => {
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4586
|
+
const { toasts } = useToast();
|
|
4587
|
+
const newestToastId = toasts[0]?.id;
|
|
4588
|
+
return (
|
|
4589
|
+
// Radix's shared pause flag can stick on, freezing every later toast's timer.
|
|
4590
|
+
/* @__PURE__ */ jsxRuntime.jsxs(ToastProvider, { children: [
|
|
4591
|
+
/* @__PURE__ */ jsxRuntime.jsx(Toaster, {}),
|
|
4592
|
+
/* @__PURE__ */ jsxRuntime.jsx(ToastViewport, {})
|
|
4593
|
+
] }, newestToastId)
|
|
4594
|
+
);
|
|
4580
4595
|
};
|
|
4581
4596
|
var TruncatedDescription = ({
|
|
4582
4597
|
className,
|