@sia.soul/sia-react-ui 0.1.166 → 0.1.167
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/chart.cjs +4553 -4513
- package/dist/chart.d.cts +1850 -1843
- package/dist/chart.d.ts +1850 -1843
- package/dist/chart.js +1 -1
- package/dist/chunk-2FZI7TP6.js +0 -0
- package/dist/{chunk-T2F6X3LA.js → chunk-5CGJVE4C.js} +26 -22
- package/dist/{chunk-2EC653G5.js → chunk-5KTQXNGL.js} +2 -2
- package/dist/{chunk-NHGCGOF2.js → chunk-A7TLMWMM.js} +4754 -4714
- package/dist/{chunk-G5EJJFUI.js → chunk-FSO46WEJ.js} +14 -6
- package/dist/{chunk-SX4LLT3H.js → chunk-KDNOLFDJ.js} +2 -2
- package/dist/{chunk-DKQ5UCN6.js → chunk-S6FA6NN3.js} +519 -220
- package/dist/{chunk-23FQ5ARA.js → chunk-XS7AVCHO.js} +27 -17
- package/dist/{core-Cnt8r6pj.d.cts → core-C7Was4Vc.d.cts} +6 -9
- package/dist/{core-Dy8NWJ1b.d.ts → core-D7C32Rdq.d.ts} +6 -9
- package/dist/core.cjs +83 -61
- package/dist/core.css +3135 -5340
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +4 -4
- package/dist/game.cjs +14 -6
- package/dist/game.css +1666 -3147
- package/dist/game.js +1 -1
- package/dist/index.cjs +6625 -6197
- package/dist/index.css +8733 -8560
- package/dist/index.d.cts +126 -110
- package/dist/index.d.ts +126 -110
- package/dist/index.js +817 -749
- package/dist/markdown-editor.css +461 -0
- package/dist/markdown-editor.js +2 -1
- package/dist/rich-text-editor.cjs +38 -20
- package/dist/rich-text-editor.css +461 -0
- package/dist/rich-text-editor.js +4 -3
- package/dist/{select-date-range-E1N5-oXv.d.ts → select-date-range-AOleKBXc.d.ts} +6 -9
- package/dist/{select-date-range-BnlISSPV.d.cts → select-date-range-BtTkMElI.d.cts} +6 -9
- package/dist/select-date-range.cjs +529 -222
- package/dist/select-date-range.d.cts +1 -1
- package/dist/select-date-range.d.ts +1 -1
- package/dist/select-date-range.js +4 -4
- package/package.json +5 -1
- /package/dist/{chunk-V4I32DPL.js → chunk-GKWSCL5Q.js} +0 -0
|
@@ -1395,19 +1395,27 @@ function useOverlayLifecycle(open, panelRef, onRequestClose, keyboard = true, au
|
|
|
1395
1395
|
closeRef.current();
|
|
1396
1396
|
return;
|
|
1397
1397
|
}
|
|
1398
|
-
|
|
1399
|
-
|
|
1398
|
+
const panel = panelRef.current;
|
|
1399
|
+
if (event.key !== "Tab" || !panel) return;
|
|
1400
|
+
const focusable = focusableElements(panel);
|
|
1400
1401
|
if (focusable.length === 0) {
|
|
1401
1402
|
event.preventDefault();
|
|
1402
|
-
|
|
1403
|
+
panel.focus();
|
|
1403
1404
|
return;
|
|
1404
1405
|
}
|
|
1405
1406
|
const first = focusable[0];
|
|
1406
1407
|
const last = focusable.at(-1);
|
|
1407
|
-
|
|
1408
|
+
const active = document.activeElement;
|
|
1409
|
+
const insidePanel = active instanceof Node && panel.contains(active);
|
|
1410
|
+
if (!insidePanel || active === panel) {
|
|
1411
|
+
event.preventDefault();
|
|
1412
|
+
(event.shiftKey ? last : first).focus();
|
|
1413
|
+
return;
|
|
1414
|
+
}
|
|
1415
|
+
if (event.shiftKey && active === first) {
|
|
1408
1416
|
event.preventDefault();
|
|
1409
1417
|
last.focus();
|
|
1410
|
-
} else if (!event.shiftKey &&
|
|
1418
|
+
} else if (!event.shiftKey && active === last) {
|
|
1411
1419
|
event.preventDefault();
|
|
1412
1420
|
first.focus();
|
|
1413
1421
|
}
|
|
@@ -1422,7 +1430,7 @@ function useOverlayLifecycle(open, panelRef, onRequestClose, keyboard = true, au
|
|
|
1422
1430
|
unlockBody();
|
|
1423
1431
|
previouslyFocused?.focus({ preventScroll: true });
|
|
1424
1432
|
};
|
|
1425
|
-
}, [keyboard, open, panelRef
|
|
1433
|
+
}, [keyboard, open, panelRef]);
|
|
1426
1434
|
useEffect(() => {
|
|
1427
1435
|
if (!open) return;
|
|
1428
1436
|
const timer = window.setTimeout(() => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Dropdown,
|
|
3
3
|
Input
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XS7AVCHO.js";
|
|
5
5
|
import {
|
|
6
6
|
Icon,
|
|
7
7
|
Modal,
|
|
8
8
|
isAnchorBehindOverlay,
|
|
9
9
|
subscribeOverlayLayers
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FSO46WEJ.js";
|
|
11
11
|
import {
|
|
12
12
|
Button
|
|
13
13
|
} from "./chunk-PAWEP65C.js";
|