@sia.soul/sia-react-ui 0.1.165 → 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.
Files changed (40) hide show
  1. package/dist/chart.cjs +4553 -4513
  2. package/dist/chart.d.cts +1850 -1843
  3. package/dist/chart.d.ts +1850 -1843
  4. package/dist/chart.js +1 -1
  5. package/dist/chunk-2FZI7TP6.js +0 -0
  6. package/dist/{chunk-WR5YBY2A.js → chunk-5CGJVE4C.js} +57 -43
  7. package/dist/{chunk-2EC653G5.js → chunk-5KTQXNGL.js} +2 -2
  8. package/dist/{chunk-NHGCGOF2.js → chunk-A7TLMWMM.js} +4754 -4714
  9. package/dist/{chunk-G5EJJFUI.js → chunk-FSO46WEJ.js} +14 -6
  10. package/dist/{chunk-SX4LLT3H.js → chunk-KDNOLFDJ.js} +2 -2
  11. package/dist/{chunk-DKQ5UCN6.js → chunk-S6FA6NN3.js} +519 -220
  12. package/dist/{chunk-23FQ5ARA.js → chunk-XS7AVCHO.js} +27 -17
  13. package/dist/{core-r-smfiNN.d.cts → core-C7Was4Vc.d.cts} +11 -12
  14. package/dist/{core-XtqUDbbD.d.ts → core-D7C32Rdq.d.ts} +11 -12
  15. package/dist/core.cjs +267 -235
  16. package/dist/core.css +3125 -5327
  17. package/dist/core.d.cts +1 -1
  18. package/dist/core.d.ts +1 -1
  19. package/dist/core.js +4 -4
  20. package/dist/game.cjs +14 -6
  21. package/dist/game.css +1666 -3147
  22. package/dist/game.js +1 -1
  23. package/dist/index.cjs +6498 -6060
  24. package/dist/index.css +8721 -8545
  25. package/dist/index.d.cts +127 -111
  26. package/dist/index.d.ts +127 -111
  27. package/dist/index.js +817 -749
  28. package/dist/markdown-editor.css +461 -0
  29. package/dist/markdown-editor.js +2 -1
  30. package/dist/rich-text-editor.cjs +38 -20
  31. package/dist/rich-text-editor.css +461 -0
  32. package/dist/rich-text-editor.js +4 -3
  33. package/dist/{select-date-range-E1N5-oXv.d.ts → select-date-range-AOleKBXc.d.ts} +6 -9
  34. package/dist/{select-date-range-BnlISSPV.d.cts → select-date-range-BtTkMElI.d.cts} +6 -9
  35. package/dist/select-date-range.cjs +529 -222
  36. package/dist/select-date-range.d.cts +1 -1
  37. package/dist/select-date-range.d.ts +1 -1
  38. package/dist/select-date-range.js +4 -4
  39. package/package.json +5 -1
  40. /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
- if (event.key !== "Tab" || !panelRef.current) return;
1399
- const focusable = focusableElements(panelRef.current);
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
- panelRef.current.focus();
1403
+ panel.focus();
1403
1404
  return;
1404
1405
  }
1405
1406
  const first = focusable[0];
1406
1407
  const last = focusable.at(-1);
1407
- if (event.shiftKey && document.activeElement === first) {
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 && document.activeElement === last) {
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, autoFocusInput]);
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-23FQ5ARA.js";
4
+ } from "./chunk-XS7AVCHO.js";
5
5
  import {
6
6
  Icon,
7
7
  Modal,
8
8
  isAnchorBehindOverlay,
9
9
  subscribeOverlayLayers
10
- } from "./chunk-G5EJJFUI.js";
10
+ } from "./chunk-FSO46WEJ.js";
11
11
  import {
12
12
  Button
13
13
  } from "./chunk-PAWEP65C.js";