@sia.soul/sia-react-ui 0.1.160 → 0.1.163

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 (41) hide show
  1. package/dist/{Select-DIdEbGwf.d.cts → Select-Dxevc0f6.d.cts} +1 -1
  2. package/dist/{Select-BCVUoK0I.d.ts → Select-tsENCXQI.d.ts} +1 -1
  3. package/dist/chart.cjs +10 -10
  4. package/dist/chart.js +5 -5
  5. package/dist/{chunk-EMBCJFJM.js → chunk-23FQ5ARA.js} +4 -4
  6. package/dist/{chunk-H6UTSSZM.js → chunk-2EC653G5.js} +5 -5
  7. package/dist/{chunk-SRWUDTCS.js → chunk-CUAXJCSH.js} +10 -10
  8. package/dist/{chunk-KDIJYXKW.js → chunk-DKQ5UCN6.js} +618 -273
  9. package/dist/{chunk-ZIH5VLPT.js → chunk-G5EJJFUI.js} +2 -2
  10. package/dist/{chunk-NRLIOMXY.js → chunk-J6BPKBEL.js} +2 -2
  11. package/dist/{chunk-6SSZVJO4.js → chunk-NHGCGOF2.js} +3 -3
  12. package/dist/{chunk-YO5OJQEH.js → chunk-OHAESA5R.js} +1 -1
  13. package/dist/{chunk-PU2V3VB5.js → chunk-PAWEP65C.js} +1 -1
  14. package/dist/{chunk-REAWVQH2.js → chunk-SX4LLT3H.js} +5 -5
  15. package/dist/{chunk-XXFYFLZA.js → chunk-V4I32DPL.js} +2 -2
  16. package/dist/{chunk-P5ZCOIKQ.js → chunk-WR5YBY2A.js} +6 -6
  17. package/dist/{core--AEiGVOU.d.ts → core-XtqUDbbD.d.ts} +3 -3
  18. package/dist/{core-DolUEUCo.d.cts → core-r-smfiNN.d.cts} +3 -3
  19. package/dist/core.cjs +10 -10
  20. package/dist/core.css +245 -29
  21. package/dist/core.d.cts +2 -2
  22. package/dist/core.d.ts +2 -2
  23. package/dist/core.js +8 -8
  24. package/dist/game.cjs +10 -10
  25. package/dist/game.js +3 -3
  26. package/dist/index.cjs +666 -320
  27. package/dist/index.css +245 -29
  28. package/dist/index.d.cts +13 -8
  29. package/dist/index.d.ts +13 -8
  30. package/dist/index.js +60 -59
  31. package/dist/markdown-editor.cjs +10 -10
  32. package/dist/markdown-editor.js +3 -3
  33. package/dist/rich-text-editor.cjs +10 -10
  34. package/dist/rich-text-editor.js +7 -7
  35. package/dist/{select-date-range-CIwE5nFu.d.cts → select-date-range-C9lTBQFX.d.cts} +10 -11
  36. package/dist/{select-date-range-DYrA87Tl.d.ts → select-date-range-CQCGGkkt.d.ts} +10 -11
  37. package/dist/select-date-range.cjs +618 -273
  38. package/dist/select-date-range.d.cts +2 -2
  39. package/dist/select-date-range.d.ts +2 -2
  40. package/dist/select-date-range.js +8 -8
  41. package/package.json +1 -1
package/dist/game.cjs CHANGED
@@ -940,8 +940,8 @@ var import_react3 = require("react");
940
940
  // src/components/popupFluidMotion.ts
941
941
  var popupEnterDuration = 260;
942
942
  var popupExitDuration = 140;
943
- var popupInitialScale = 0.88;
944
- var popupTravelOffset = 6;
943
+ var popupInitialScale = 0.93;
944
+ var popupTravelOffset = 4;
945
945
  function popupFluidFrames(placement, open = true) {
946
946
  const side = placement.split("-")[0];
947
947
  const axis = side === "left" || side === "right" ? "X" : "Y";
@@ -950,8 +950,8 @@ function popupFluidFrames(placement, open = true) {
950
950
  const visible = { opacity: 1, transform: "none" };
951
951
  return open ? [
952
952
  { ...hidden, offset: 0 },
953
- { opacity: 1, transform: "scale(1.11, 1.085)", offset: 0.68 },
954
- { opacity: 1, transform: "scale(.945, .965)", offset: 0.86 },
953
+ { opacity: 1, transform: "scale(1.05, 1.04)", offset: 0.68 },
954
+ { opacity: 1, transform: "scale(.977, .985)", offset: 0.86 },
955
955
  { ...visible, offset: 1 }
956
956
  ] : [{ ...visible, offset: 0 }, { ...hidden, offset: 1 }];
957
957
  }
@@ -971,16 +971,16 @@ function motionFrames(kind, placement) {
971
971
  const outside = `translate${axis}(${sign * 100}%)`;
972
972
  return [
973
973
  { transform: outside, offset: 0 },
974
- { transform: `translate${axis}(0) scale${axis}(1.065)`, offset: 0.68 },
975
- { transform: `translate${axis}(0) scale${axis}(.975)`, offset: 0.86 },
974
+ { transform: `translate${axis}(0) scale${axis}(1.03)`, offset: 0.68 },
975
+ { transform: `translate${axis}(0) scale${axis}(.988)`, offset: 0.86 },
976
976
  { transform: "none", offset: 1 }
977
977
  ];
978
978
  }
979
979
  const modal = kind === "modal";
980
980
  return [
981
- { opacity: 0, transform: `translateY(${modal ? 18 : -6}px) scale(${modal ? 0.9 : 0.88})`, offset: 0 },
982
- { opacity: 1, transform: modal ? "scale(1.075, 1.05)" : "scale(1.11, 1.085)", offset: 0.68 },
983
- { opacity: 1, transform: modal ? "scale(.965, .98)" : "scale(.945, .965)", offset: 0.86 },
981
+ { opacity: 0, transform: `translateY(${modal ? 14 : -4}px) scale(${modal ? 0.95 : 0.93})`, offset: 0 },
982
+ { opacity: 1, transform: modal ? "scale(1.035, 1.02)" : "scale(1.05, 1.04)", offset: 0.68 },
983
+ { opacity: 1, transform: modal ? "scale(.984, .992)" : "scale(.977, .985)", offset: 0.86 },
984
984
  { opacity: 1, transform: "none", offset: 1 }
985
985
  ];
986
986
  }
@@ -1198,7 +1198,7 @@ var PopupPortal = (0, import_react4.forwardRef)(function PopupPortal2({
1198
1198
  cancelAnimationFrame(frame);
1199
1199
  observer.disconnect();
1200
1200
  };
1201
- }, [anchorRef, offset, motion.present, placement, viewportPadding]);
1201
+ }, [anchorRef, offset, motion.present, placement, viewportPadding, position?.availableHeight, position?.placement]);
1202
1202
  if (!motion.present || typeof document === "undefined") return null;
1203
1203
  return (0, import_react_dom.createPortal)(
1204
1204
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
package/dist/game.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import "./chunk-RX242MUO.js";
2
2
  import {
3
3
  Modal
4
- } from "./chunk-ZIH5VLPT.js";
4
+ } from "./chunk-G5EJJFUI.js";
5
5
  import {
6
6
  Button
7
- } from "./chunk-PU2V3VB5.js";
7
+ } from "./chunk-PAWEP65C.js";
8
8
  import {
9
9
  initializeDefaultScrollbars
10
- } from "./chunk-SRWUDTCS.js";
10
+ } from "./chunk-CUAXJCSH.js";
11
11
 
12
12
  // src/game/hex-rules.ts
13
13
  var DEFAULT_GAME_ABILITIES = [