@7onic-ui/react 0.2.3 → 0.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/README.md +13 -3
- package/dist/index.js +3 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/index.mjs
CHANGED
|
@@ -4660,10 +4660,9 @@ var PaginationRoot = React26.forwardRef(
|
|
|
4660
4660
|
color = "default",
|
|
4661
4661
|
radius = "md",
|
|
4662
4662
|
disabled = false,
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
withEdges = false,
|
|
4666
|
-
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
4663
|
+
// Pre-declared API; conditional auto-rendering is tracked in COMPONENT-IMPROVEMENTS.md.
|
|
4664
|
+
withControls: _withControls = true,
|
|
4665
|
+
withEdges: _withEdges = false,
|
|
4667
4666
|
loop = false,
|
|
4668
4667
|
children,
|
|
4669
4668
|
...props
|
|
@@ -5963,7 +5962,6 @@ var ToastItem = React32.memo(function ToastItem2({
|
|
|
5963
5962
|
}) {
|
|
5964
5963
|
const [isExiting, setIsExiting] = React32.useState(false);
|
|
5965
5964
|
const [isEntered, setIsEntered] = React32.useState(false);
|
|
5966
|
-
const [isPaused, setIsPaused] = React32.useState(false);
|
|
5967
5965
|
const timerRef = React32.useRef(null);
|
|
5968
5966
|
const remainingRef = React32.useRef(0);
|
|
5969
5967
|
const startTimeRef = React32.useRef(0);
|
|
@@ -6002,7 +6000,6 @@ var ToastItem = React32.memo(function ToastItem2({
|
|
|
6002
6000
|
}, [duration, handleAutoClose]);
|
|
6003
6001
|
const handleMouseEnter = React32.useCallback(() => {
|
|
6004
6002
|
if (duration <= 0) return;
|
|
6005
|
-
setIsPaused(true);
|
|
6006
6003
|
if (timerRef.current) {
|
|
6007
6004
|
clearTimeout(timerRef.current);
|
|
6008
6005
|
remainingRef.current -= Date.now() - startTimeRef.current;
|
|
@@ -6010,7 +6007,6 @@ var ToastItem = React32.memo(function ToastItem2({
|
|
|
6010
6007
|
}, [duration]);
|
|
6011
6008
|
const handleMouseLeave = React32.useCallback(() => {
|
|
6012
6009
|
if (duration <= 0) return;
|
|
6013
|
-
setIsPaused(false);
|
|
6014
6010
|
startTimeRef.current = Date.now();
|
|
6015
6011
|
timerRef.current = setTimeout(handleAutoClose, Math.max(remainingRef.current, TOAST_MIN_RESUME_MS));
|
|
6016
6012
|
}, [duration, handleAutoClose]);
|