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

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 +9 -9
  4. package/dist/chart.js +5 -5
  5. package/dist/{chunk-H6UTSSZM.js → chunk-33WX54AU.js} +5 -5
  6. package/dist/{chunk-PU2V3VB5.js → chunk-4B7ATL6J.js} +1 -1
  7. package/dist/{chunk-XXFYFLZA.js → chunk-5WZR2RHA.js} +2 -2
  8. package/dist/{chunk-YO5OJQEH.js → chunk-CRA7VNOA.js} +1 -1
  9. package/dist/{chunk-ZIH5VLPT.js → chunk-KA3M4TE4.js} +2 -2
  10. package/dist/{chunk-6SSZVJO4.js → chunk-M4IASLGB.js} +3 -3
  11. package/dist/{chunk-REAWVQH2.js → chunk-MXK6TKMO.js} +5 -5
  12. package/dist/{chunk-KDIJYXKW.js → chunk-Q3LEK2TL.js} +599 -270
  13. package/dist/{chunk-NRLIOMXY.js → chunk-UL54A2YN.js} +2 -2
  14. package/dist/{chunk-P5ZCOIKQ.js → chunk-UPXL2QLJ.js} +6 -6
  15. package/dist/{chunk-SRWUDTCS.js → chunk-WMZYYPIW.js} +9 -9
  16. package/dist/{chunk-EMBCJFJM.js → chunk-ZNPNZD6O.js} +4 -4
  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 +9 -9
  20. package/dist/core.css +164 -22
  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 +9 -9
  25. package/dist/game.js +3 -3
  26. package/dist/index.cjs +646 -316
  27. package/dist/index.css +164 -22
  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 +9 -9
  32. package/dist/markdown-editor.js +3 -3
  33. package/dist/rich-text-editor.cjs +9 -9
  34. package/dist/rich-text-editor.js +7 -7
  35. package/dist/{select-date-range-DYrA87Tl.d.ts → select-date-range-CIXBuoef.d.ts} +8 -9
  36. package/dist/{select-date-range-CIwE5nFu.d.cts → select-date-range-Cbh37zmU.d.cts} +8 -9
  37. package/dist/select-date-range.cjs +598 -269
  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
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  useFloatingPlaceholder
3
- } from "./chunk-YO5OJQEH.js";
3
+ } from "./chunk-CRA7VNOA.js";
4
4
  import {
5
5
  useControlSize,
6
6
  withTitleTooltip
7
- } from "./chunk-SRWUDTCS.js";
7
+ } from "./chunk-WMZYYPIW.js";
8
8
 
9
9
  // src/components/TextArea.tsx
10
10
  import { forwardRef, useId, useState } from "react";
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  Popover,
3
3
  Tooltip
4
- } from "./chunk-REAWVQH2.js";
4
+ } from "./chunk-MXK6TKMO.js";
5
5
  import {
6
6
  Dropdown
7
- } from "./chunk-EMBCJFJM.js";
7
+ } from "./chunk-ZNPNZD6O.js";
8
8
  import {
9
9
  TextArea
10
- } from "./chunk-NRLIOMXY.js";
10
+ } from "./chunk-UL54A2YN.js";
11
11
  import {
12
12
  Icon,
13
13
  useOverlayLifecycle
14
- } from "./chunk-ZIH5VLPT.js";
14
+ } from "./chunk-KA3M4TE4.js";
15
15
  import {
16
16
  Button
17
- } from "./chunk-PU2V3VB5.js";
17
+ } from "./chunk-4B7ATL6J.js";
18
18
  import {
19
19
  useControlSize,
20
20
  useControllableState,
21
21
  useOverlayMotion,
22
22
  withTitleTooltip
23
- } from "./chunk-SRWUDTCS.js";
23
+ } from "./chunk-WMZYYPIW.js";
24
24
 
25
25
  // src/components/Toolbar.tsx
26
26
  import { useLayoutEffect, useRef, useState } from "react";
@@ -510,8 +510,8 @@ import { useEffect as useEffect3, useLayoutEffect, useRef, useState } from "reac
510
510
  // src/components/popupFluidMotion.ts
511
511
  var popupEnterDuration = 260;
512
512
  var popupExitDuration = 140;
513
- var popupInitialScale = 0.88;
514
- var popupTravelOffset = 6;
513
+ var popupInitialScale = 0.93;
514
+ var popupTravelOffset = 4;
515
515
  function popupFluidFrames(placement, open = true) {
516
516
  const side = placement.split("-")[0];
517
517
  const axis = side === "left" || side === "right" ? "X" : "Y";
@@ -520,8 +520,8 @@ function popupFluidFrames(placement, open = true) {
520
520
  const visible = { opacity: 1, transform: "none" };
521
521
  return open ? [
522
522
  { ...hidden, offset: 0 },
523
- { opacity: 1, transform: "scale(1.11, 1.085)", offset: 0.68 },
524
- { opacity: 1, transform: "scale(.945, .965)", offset: 0.86 },
523
+ { opacity: 1, transform: "scale(1.05, 1.04)", offset: 0.68 },
524
+ { opacity: 1, transform: "scale(.977, .985)", offset: 0.86 },
525
525
  { ...visible, offset: 1 }
526
526
  ] : [{ ...visible, offset: 0 }, { ...hidden, offset: 1 }];
527
527
  }
@@ -541,16 +541,16 @@ function motionFrames(kind, placement) {
541
541
  const outside = `translate${axis}(${sign * 100}%)`;
542
542
  return [
543
543
  { transform: outside, offset: 0 },
544
- { transform: `translate${axis}(0) scale${axis}(1.065)`, offset: 0.68 },
545
- { transform: `translate${axis}(0) scale${axis}(.975)`, offset: 0.86 },
544
+ { transform: `translate${axis}(0) scale${axis}(1.03)`, offset: 0.68 },
545
+ { transform: `translate${axis}(0) scale${axis}(.988)`, offset: 0.86 },
546
546
  { transform: "none", offset: 1 }
547
547
  ];
548
548
  }
549
549
  const modal = kind === "modal";
550
550
  return [
551
- { opacity: 0, transform: `translateY(${modal ? 18 : -6}px) scale(${modal ? 0.9 : 0.88})`, offset: 0 },
552
- { opacity: 1, transform: modal ? "scale(1.075, 1.05)" : "scale(1.11, 1.085)", offset: 0.68 },
553
- { opacity: 1, transform: modal ? "scale(.965, .98)" : "scale(.945, .965)", offset: 0.86 },
551
+ { opacity: 0, transform: `translateY(${modal ? 14 : -4}px) scale(${modal ? 0.95 : 0.93})`, offset: 0 },
552
+ { opacity: 1, transform: modal ? "scale(1.035, 1.02)" : "scale(1.05, 1.04)", offset: 0.68 },
553
+ { opacity: 1, transform: modal ? "scale(.984, .992)" : "scale(.977, .985)", offset: 0.86 },
554
554
  { opacity: 1, transform: "none", offset: 1 }
555
555
  ];
556
556
  }
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  TextArea
3
- } from "./chunk-NRLIOMXY.js";
3
+ } from "./chunk-UL54A2YN.js";
4
4
  import {
5
5
  Icon,
6
6
  Modal
7
- } from "./chunk-ZIH5VLPT.js";
7
+ } from "./chunk-KA3M4TE4.js";
8
8
  import {
9
9
  Button
10
- } from "./chunk-PU2V3VB5.js";
10
+ } from "./chunk-4B7ATL6J.js";
11
11
  import {
12
12
  FloatingScrollbarProvider,
13
13
  PopupPortal,
@@ -17,7 +17,7 @@ import {
17
17
  useControllableState,
18
18
  usePlaceholderMode,
19
19
  withTitleTooltip
20
- } from "./chunk-SRWUDTCS.js";
20
+ } from "./chunk-WMZYYPIW.js";
21
21
 
22
22
  // src/components/Navigation.tsx
23
23
  import { useEffect, useId, useLayoutEffect as useLayoutEffect3, useMemo, useRef as useRef3, useState, forwardRef } from "react";
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { ReactNode, HTMLAttributes, CSSProperties, MouseEvent, ReactElement, ImgHTMLAttributes, InputHTMLAttributes, MouseEventHandler, AnchorHTMLAttributes, ButtonHTMLAttributes, RefObject } from 'react';
3
3
  import { B as ButtonProps, b as Button } from './Button-B59TIes7.js';
4
4
  import { C as ControlSize, a as ControlStatus, I as InputPlaceholderMode } from './shared-Bx4B28Wh.js';
5
- import './Select-BCVUoK0I.js';
5
+ import './Select-tsENCXQI.js';
6
6
 
7
7
  /** 单个工具栏操作及其下拉菜单。 */
8
8
  interface ToolbarItem {
@@ -968,7 +968,7 @@ interface DropdownButtonProps extends Omit<DropdownProps, "children" | "classNam
968
968
  onClick?: ButtonProps["onClick"];
969
969
  }
970
970
  declare function DropdownButton({ children, className, buttonProps, onClick, disabled, buttonDisabled, dropdownDisabled, trigger, ...dropdownProps }: DropdownButtonProps): react.JSX.Element;
971
- /** 下拉菜单组件;面板以 260ms 缩放淡入并果冻回弹,关闭为 140ms 无回弹缩小淡出;退出完成后释放定位锚点,系统减少动态效果时直接完成。 */
971
+ /** 下拉菜单组件;面板以 260ms 缩放淡入并轻微回弹,关闭为 140ms 无回弹缩小淡出;退出完成后释放定位锚点,系统减少动态效果时直接完成。 */
972
972
  declare const Dropdown: typeof DropdownRoot & {
973
973
  /** 组合主操作按钮与下拉菜单的按钮组件。 */
974
974
  Button: typeof DropdownButton;
@@ -2411,7 +2411,7 @@ interface FloatButtonGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, "on
2411
2411
  * @defaultValue "top"
2412
2412
  */
2413
2413
  placement?: "top" | "bottom" | "left" | "right";
2414
- /** 是否打开;传入后由外部控制显示状态。菜单展开 260ms,以缩放淡入、弹大回收后归位表现果冻弹性;收起 140ms,无回弹缩小淡出,保留原有面板外观;结束后卸载,减少动态效果时直接切换。 */
2414
+ /** 是否打开;传入后由外部控制显示状态。菜单展开 260ms,以缩放淡入、轻微弹大回收后归位表现柔和弹性;收起 140ms,无回弹缩小淡出,保留原有面板外观;结束后卸载,减少动态效果时直接切换。 */
2415
2415
  open?: boolean;
2416
2416
  /**
2417
2417
  * 非受控模式下的初始打开状态。
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { ReactNode, HTMLAttributes, CSSProperties, MouseEvent, ReactElement, ImgHTMLAttributes, InputHTMLAttributes, MouseEventHandler, AnchorHTMLAttributes, ButtonHTMLAttributes, RefObject } from 'react';
3
3
  import { B as ButtonProps, b as Button } from './Button-xLR4Yt57.cjs';
4
4
  import { C as ControlSize, a as ControlStatus, I as InputPlaceholderMode } from './shared-Bx4B28Wh.cjs';
5
- import './Select-DIdEbGwf.cjs';
5
+ import './Select-Dxevc0f6.cjs';
6
6
 
7
7
  /** 单个工具栏操作及其下拉菜单。 */
8
8
  interface ToolbarItem {
@@ -968,7 +968,7 @@ interface DropdownButtonProps extends Omit<DropdownProps, "children" | "classNam
968
968
  onClick?: ButtonProps["onClick"];
969
969
  }
970
970
  declare function DropdownButton({ children, className, buttonProps, onClick, disabled, buttonDisabled, dropdownDisabled, trigger, ...dropdownProps }: DropdownButtonProps): react.JSX.Element;
971
- /** 下拉菜单组件;面板以 260ms 缩放淡入并果冻回弹,关闭为 140ms 无回弹缩小淡出;退出完成后释放定位锚点,系统减少动态效果时直接完成。 */
971
+ /** 下拉菜单组件;面板以 260ms 缩放淡入并轻微回弹,关闭为 140ms 无回弹缩小淡出;退出完成后释放定位锚点,系统减少动态效果时直接完成。 */
972
972
  declare const Dropdown: typeof DropdownRoot & {
973
973
  /** 组合主操作按钮与下拉菜单的按钮组件。 */
974
974
  Button: typeof DropdownButton;
@@ -2411,7 +2411,7 @@ interface FloatButtonGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, "on
2411
2411
  * @defaultValue "top"
2412
2412
  */
2413
2413
  placement?: "top" | "bottom" | "left" | "right";
2414
- /** 是否打开;传入后由外部控制显示状态。菜单展开 260ms,以缩放淡入、弹大回收后归位表现果冻弹性;收起 140ms,无回弹缩小淡出,保留原有面板外观;结束后卸载,减少动态效果时直接切换。 */
2414
+ /** 是否打开;传入后由外部控制显示状态。菜单展开 260ms,以缩放淡入、轻微弹大回收后归位表现柔和弹性;收起 140ms,无回弹缩小淡出,保留原有面板外观;结束后卸载,减少动态效果时直接切换。 */
2415
2415
  open?: boolean;
2416
2416
  /**
2417
2417
  * 非受控模式下的初始打开状态。
package/dist/core.cjs CHANGED
@@ -562,8 +562,8 @@ var import_react3 = require("react");
562
562
  // src/components/popupFluidMotion.ts
563
563
  var popupEnterDuration = 260;
564
564
  var popupExitDuration = 140;
565
- var popupInitialScale = 0.88;
566
- var popupTravelOffset = 6;
565
+ var popupInitialScale = 0.93;
566
+ var popupTravelOffset = 4;
567
567
  function popupFluidFrames(placement, open = true) {
568
568
  const side = placement.split("-")[0];
569
569
  const axis = side === "left" || side === "right" ? "X" : "Y";
@@ -572,8 +572,8 @@ function popupFluidFrames(placement, open = true) {
572
572
  const visible = { opacity: 1, transform: "none" };
573
573
  return open ? [
574
574
  { ...hidden, offset: 0 },
575
- { opacity: 1, transform: "scale(1.11, 1.085)", offset: 0.68 },
576
- { opacity: 1, transform: "scale(.945, .965)", offset: 0.86 },
575
+ { opacity: 1, transform: "scale(1.05, 1.04)", offset: 0.68 },
576
+ { opacity: 1, transform: "scale(.977, .985)", offset: 0.86 },
577
577
  { ...visible, offset: 1 }
578
578
  ] : [{ ...visible, offset: 0 }, { ...hidden, offset: 1 }];
579
579
  }
@@ -593,16 +593,16 @@ function motionFrames(kind, placement) {
593
593
  const outside = `translate${axis}(${sign * 100}%)`;
594
594
  return [
595
595
  { transform: outside, offset: 0 },
596
- { transform: `translate${axis}(0) scale${axis}(1.065)`, offset: 0.68 },
597
- { transform: `translate${axis}(0) scale${axis}(.975)`, offset: 0.86 },
596
+ { transform: `translate${axis}(0) scale${axis}(1.03)`, offset: 0.68 },
597
+ { transform: `translate${axis}(0) scale${axis}(.988)`, offset: 0.86 },
598
598
  { transform: "none", offset: 1 }
599
599
  ];
600
600
  }
601
601
  const modal = kind === "modal";
602
602
  return [
603
- { opacity: 0, transform: `translateY(${modal ? 18 : -6}px) scale(${modal ? 0.9 : 0.88})`, offset: 0 },
604
- { opacity: 1, transform: modal ? "scale(1.075, 1.05)" : "scale(1.11, 1.085)", offset: 0.68 },
605
- { opacity: 1, transform: modal ? "scale(.965, .98)" : "scale(.945, .965)", offset: 0.86 },
603
+ { opacity: 0, transform: `translateY(${modal ? 14 : -4}px) scale(${modal ? 0.95 : 0.93})`, offset: 0 },
604
+ { opacity: 1, transform: modal ? "scale(1.035, 1.02)" : "scale(1.05, 1.04)", offset: 0.68 },
605
+ { opacity: 1, transform: modal ? "scale(.984, .992)" : "scale(.977, .985)", offset: 0.86 },
606
606
  { opacity: 1, transform: "none", offset: 1 }
607
607
  ];
608
608
  }
package/dist/core.css CHANGED
@@ -7370,24 +7370,35 @@ body:has(.sia-window-frame[data-sia-text-selectable=false]) img {
7370
7370
  box-shadow: var(--sia-shadow-popup);
7371
7371
  scrollbar-width: thin;
7372
7372
  }
7373
- .sia-date-panel--with-time {
7374
- width: max-content;
7375
- }
7376
7373
  .sia-date-panel--with-presets {
7377
7374
  width: max-content;
7378
7375
  }
7379
- .sia-date-panel--with-presets.sia-date-panel--with-time {
7380
- width: max-content;
7381
- }
7382
7376
  .sia-date-panel--range {
7383
7377
  width: max-content;
7384
7378
  }
7385
7379
  .sia-date-panel--range.sia-date-panel--with-presets {
7386
7380
  width: max-content;
7387
7381
  }
7388
- .sia-date-panel--range.sia-date-panel--with-time {
7382
+ .sia-date-panel--datetime {
7383
+ width: 282px;
7384
+ }
7385
+ .sia-date-panel--datetime.sia-date-panel--with-presets {
7389
7386
  width: max-content;
7390
7387
  }
7388
+ .sia-date-panel--datetime.sia-date-panel--with-presets {
7389
+ display: grid;
7390
+ grid-template-columns: 145px minmax(0, 1fr);
7391
+ grid-template-rows: auto auto;
7392
+ }
7393
+ .sia-date-panel--datetime.sia-date-panel--with-presets .sia-date-panel__body {
7394
+ display: contents;
7395
+ }
7396
+ .sia-date-panel--datetime.sia-date-panel--with-presets .sia-date-panel__presets {
7397
+ grid-row: 1 / span 2;
7398
+ }
7399
+ .sia-date-panel--datetime.sia-date-panel--with-presets .sia-date-panel__footer {
7400
+ grid-column: 2;
7401
+ }
7391
7402
  .sia-date-panel__body {
7392
7403
  display: flex;
7393
7404
  min-width: 0;
@@ -7423,21 +7434,6 @@ body:has(.sia-window-frame[data-sia-text-selectable=false]) img {
7423
7434
  .sia-date-panel__range-calendars > .sia-date-panel__calendar + .sia-date-panel__calendar {
7424
7435
  border-inline-start: 1px solid var(--sia-color-border);
7425
7436
  }
7426
- .sia-date-panel__range-date-time {
7427
- display: flex;
7428
- min-width: 0;
7429
- }
7430
- .sia-date-panel__range-date-time-group {
7431
- display: flex;
7432
- min-width: 0;
7433
- box-shadow: inset 0 2px transparent;
7434
- }
7435
- .sia-date-panel__range-date-time-group.is-active {
7436
- box-shadow: inset 0 2px var(--sia-color-primary);
7437
- }
7438
- .sia-date-panel__range-date-time-group + .sia-date-panel__range-date-time-group {
7439
- border-inline-start: 1px solid var(--sia-color-border);
7440
- }
7441
7437
  .sia-date-panel__header {
7442
7438
  display: grid;
7443
7439
  grid-template-columns: 56px 1fr 56px;
@@ -7463,6 +7459,35 @@ body:has(.sia-window-frame[data-sia-text-selectable=false]) img {
7463
7459
  font-size: 12px;
7464
7460
  font-weight: 600;
7465
7461
  }
7462
+ .sia-date-panel__header > .sia-date-panel__title {
7463
+ display: flex;
7464
+ align-items: center;
7465
+ justify-content: center;
7466
+ gap: 7px;
7467
+ min-width: 0;
7468
+ padding: 5px 9px;
7469
+ color: var(--sia-color-text);
7470
+ font: inherit;
7471
+ font-weight: inherit;
7472
+ text-align: center;
7473
+ white-space: nowrap;
7474
+ cursor: pointer;
7475
+ background: transparent;
7476
+ border: 0;
7477
+ border-radius: 6px;
7478
+ }
7479
+ .sia-date-panel__header > .sia-date-panel__title small {
7480
+ padding: 2px 5px;
7481
+ color: var(--sia-color-primary-text);
7482
+ background: color-mix(in srgb, var(--sia-color-primary) 10%, transparent);
7483
+ border-radius: 4px;
7484
+ font-size: 12px;
7485
+ font-weight: 600;
7486
+ }
7487
+ .sia-date-panel__header > .sia-date-panel__title:hover {
7488
+ color: var(--sia-color-primary-text);
7489
+ background: var(--sia-color-control-hover);
7490
+ }
7466
7491
  .sia-date-panel__nav {
7467
7492
  display: flex;
7468
7493
  align-items: center;
@@ -7492,11 +7517,14 @@ body:has(.sia-window-frame[data-sia-text-selectable=false]) img {
7492
7517
  }
7493
7518
  .sia-date-panel__month {
7494
7519
  padding: 12px 14px 14px;
7520
+ touch-action: pan-y;
7521
+ user-select: none;
7495
7522
  }
7496
7523
  .sia-date-panel__weekdays,
7497
7524
  .sia-date-panel__days {
7498
7525
  display: grid;
7499
7526
  grid-template-columns: repeat(7, 1fr);
7527
+ gap: 4px;
7500
7528
  }
7501
7529
  .sia-date-panel__weekdays {
7502
7530
  margin-bottom: 6px;
@@ -7583,6 +7611,9 @@ body:has(.sia-window-frame[data-sia-text-selectable=false]) img {
7583
7611
  place-items: center;
7584
7612
  border-bottom: 1px solid var(--sia-color-border);
7585
7613
  }
7614
+ .sia-date-panel__time > .sia-date-panel__time-title {
7615
+ font-weight: 600;
7616
+ }
7586
7617
  .sia-date-panel__time-columns {
7587
7618
  display: grid;
7588
7619
  grid-auto-flow: column;
@@ -7590,10 +7621,60 @@ body:has(.sia-window-frame[data-sia-text-selectable=false]) img {
7590
7621
  height: 280px;
7591
7622
  overflow: hidden;
7592
7623
  }
7624
+ .sia-date-panel__views {
7625
+ position: relative;
7626
+ flex: 0 0 280px;
7627
+ min-width: 0;
7628
+ overflow: hidden;
7629
+ }
7630
+ .sia-date-panel__view {
7631
+ min-width: 0;
7632
+ pointer-events: none;
7633
+ transition: transform 220ms cubic-bezier(.2, .7, .2, 1), visibility 0s 220ms;
7634
+ }
7635
+ .sia-date-panel__view.is-active {
7636
+ pointer-events: auto;
7637
+ visibility: visible;
7638
+ transform: translateX(0);
7639
+ transition: transform 220ms cubic-bezier(.2, .7, .2, 1);
7640
+ }
7641
+ .sia-date-panel__view--date:not(.is-active) {
7642
+ visibility: hidden;
7643
+ transform: translateX(-100%);
7644
+ }
7645
+ .sia-date-panel__view--time {
7646
+ position: absolute;
7647
+ inset: 0;
7648
+ }
7649
+ .sia-date-panel__view--time:not(.is-active) {
7650
+ visibility: hidden;
7651
+ transform: translateX(100%);
7652
+ }
7653
+ .sia-date-panel__view--time .sia-date-panel__time {
7654
+ height: 100%;
7655
+ flex: none;
7656
+ border-inline-start: 0;
7657
+ }
7658
+ .sia-date-panel__view--time .sia-date-panel__time-columns {
7659
+ grid-auto-columns: 1fr;
7660
+ height: auto;
7661
+ min-height: 0;
7662
+ }
7663
+ @media (prefers-reduced-motion: reduce) {
7664
+ .sia-date-panel__view {
7665
+ transition: none;
7666
+ }
7667
+ }
7593
7668
  .sia-date-panel__time-columns > div {
7594
7669
  height: 100%;
7595
7670
  overflow: auto;
7596
7671
  padding: 4px;
7672
+ touch-action: none;
7673
+ user-select: none;
7674
+ cursor: grab;
7675
+ }
7676
+ .sia-date-panel__time-columns > div:active {
7677
+ cursor: grabbing;
7597
7678
  }
7598
7679
  .sia-date-panel__time-columns > div + div {
7599
7680
  border-inline-start: 1px solid var(--sia-color-border);
@@ -7667,6 +7748,67 @@ body:has(.sia-window-frame[data-sia-text-selectable=false]) img {
7667
7748
  .sia-date-panel__range-error {
7668
7749
  color: var(--sia-color-error);
7669
7750
  }
7751
+ .sia-date-panel__footer button.sia-date-panel__chip {
7752
+ display: inline-flex;
7753
+ align-items: center;
7754
+ gap: 6px;
7755
+ min-width: 0;
7756
+ min-height: 30px;
7757
+ padding: 3px 9px;
7758
+ color: var(--sia-color-text);
7759
+ font-variant-numeric: tabular-nums;
7760
+ white-space: nowrap;
7761
+ cursor: pointer;
7762
+ background: transparent;
7763
+ border: 0;
7764
+ border-radius: 6px;
7765
+ transition: background-color 160ms ease, color 160ms ease;
7766
+ }
7767
+ .sia-date-panel__footer .sia-date-panel__chip .sia-icon {
7768
+ flex-shrink: 0;
7769
+ color: var(--sia-color-text-secondary);
7770
+ }
7771
+ .sia-date-panel__footer button.sia-date-panel__chip:hover {
7772
+ color: var(--sia-color-text);
7773
+ background: var(--sia-color-control-hover);
7774
+ }
7775
+ .sia-date-panel__footer button.sia-date-panel__chip[aria-pressed=true] {
7776
+ color: var(--sia-color-primary-text);
7777
+ background: color-mix(in srgb, var(--sia-color-primary) 10%, transparent);
7778
+ }
7779
+ .sia-date-panel__footer button.sia-date-panel__chip[aria-pressed=true] .sia-icon {
7780
+ color: var(--sia-color-primary-text);
7781
+ }
7782
+ .sia-date-panel__footer button.sia-date-panel__chip:disabled {
7783
+ cursor: not-allowed;
7784
+ opacity: .45;
7785
+ }
7786
+ .sia-date-panel__footer button.sia-date-panel__chip:disabled:hover {
7787
+ color: var(--sia-color-text);
7788
+ background: transparent;
7789
+ }
7790
+ .sia-date-panel__footer button.sia-date-panel__chip--time.is-clearable {
7791
+ position: relative;
7792
+ padding-inline-end: 24px;
7793
+ }
7794
+ .sia-date-panel__chip-clear {
7795
+ position: absolute;
7796
+ inset-block: 0;
7797
+ inset-inline-end: 3px;
7798
+ display: none;
7799
+ place-items: center;
7800
+ padding: 2px;
7801
+ color: var(--sia-color-text-secondary);
7802
+ cursor: pointer;
7803
+ border-radius: 50%;
7804
+ }
7805
+ .sia-date-panel__chip--time:hover .sia-date-panel__chip-clear,
7806
+ .sia-date-panel__chip-clear:focus-visible {
7807
+ display: grid;
7808
+ }
7809
+ .sia-date-panel__chip-clear:hover {
7810
+ color: var(--sia-color-text);
7811
+ }
7670
7812
  .sia-tree-select {
7671
7813
  position: relative;
7672
7814
  display: inline-block;
package/dist/core.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, I as FloatingScrollbarProvider, J as FloatingScrollbarProviderProps, M as Icon, N as IconName, O as IconProps, P as IconVariant, Y as Input, Z as InputProps, a4 as MessageConfig, a5 as MessageHandle, a6 as MessageKey, a7 as MessageType, af as Progress, ag as ProgressProps, ah as ProgressStatus, ak as Result, al as ResultProps, am as ResultStatus, an as Segmented, ao as SegmentedOption, ap as SegmentedProps, aq as SegmentedValue, ar as Skeleton, as as SkeletonProps, az as TabItem, aA as Tabs, aC as TabsOrientation, aD as TabsPosition, aE as TabsProps, aF as TabsType, aG as Tag, aH as TagProps, aI as TagSize, T as TagStatus, aJ as TagVariant, aN as Toolbar, aO as ToolbarItem, aP as ToolbarProps, a_ as Typography, a$ as TypographyLinkProps, b0 as TypographyProps, b1 as TypographyTitleProps, b2 as TypographyType, b3 as Upload, b4 as UploadChangeInfo, b5 as UploadDraggerProps, b6 as UploadFile, b7 as UploadFileStatus, ba as UploadProps, be as UploadRequestOptions, bi as message } from './core-DolUEUCo.cjs';
1
+ export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, I as FloatingScrollbarProvider, J as FloatingScrollbarProviderProps, M as Icon, N as IconName, O as IconProps, P as IconVariant, Y as Input, Z as InputProps, a4 as MessageConfig, a5 as MessageHandle, a6 as MessageKey, a7 as MessageType, af as Progress, ag as ProgressProps, ah as ProgressStatus, ak as Result, al as ResultProps, am as ResultStatus, an as Segmented, ao as SegmentedOption, ap as SegmentedProps, aq as SegmentedValue, ar as Skeleton, as as SkeletonProps, az as TabItem, aA as Tabs, aC as TabsOrientation, aD as TabsPosition, aE as TabsProps, aF as TabsType, aG as Tag, aH as TagProps, aI as TagSize, T as TagStatus, aJ as TagVariant, aN as Toolbar, aO as ToolbarItem, aP as ToolbarProps, a_ as Typography, a$ as TypographyLinkProps, b0 as TypographyProps, b1 as TypographyTitleProps, b2 as TypographyType, b3 as Upload, b4 as UploadChangeInfo, b5 as UploadDraggerProps, b6 as UploadFile, b7 as UploadFileStatus, ba as UploadProps, be as UploadRequestOptions, bi as message } from './core-r-smfiNN.cjs';
2
2
  export { b as Button, B as ButtonProps, a as ButtonSize, c as ButtonVariant } from './Button-xLR4Yt57.cjs';
3
- export { e as Modal, d as ModalActionResult, M as ModalOpenConfig, f as ModalProps, g as ModalType, a as OverlayApiHandle, h as Select, S as SelectOption, c as SelectProps, j as SelectValue } from './Select-DIdEbGwf.cjs';
3
+ export { e as Modal, d as ModalActionResult, M as ModalOpenConfig, f as ModalProps, g as ModalType, a as OverlayApiHandle, h as Select, S as SelectOption, c as SelectProps, j as SelectValue } from './Select-Dxevc0f6.cjs';
4
4
  import 'react';
5
5
  import './shared-Bx4B28Wh.cjs';
package/dist/core.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, I as FloatingScrollbarProvider, J as FloatingScrollbarProviderProps, M as Icon, N as IconName, O as IconProps, P as IconVariant, Y as Input, Z as InputProps, a4 as MessageConfig, a5 as MessageHandle, a6 as MessageKey, a7 as MessageType, af as Progress, ag as ProgressProps, ah as ProgressStatus, ak as Result, al as ResultProps, am as ResultStatus, an as Segmented, ao as SegmentedOption, ap as SegmentedProps, aq as SegmentedValue, ar as Skeleton, as as SkeletonProps, az as TabItem, aA as Tabs, aC as TabsOrientation, aD as TabsPosition, aE as TabsProps, aF as TabsType, aG as Tag, aH as TagProps, aI as TagSize, T as TagStatus, aJ as TagVariant, aN as Toolbar, aO as ToolbarItem, aP as ToolbarProps, a_ as Typography, a$ as TypographyLinkProps, b0 as TypographyProps, b1 as TypographyTitleProps, b2 as TypographyType, b3 as Upload, b4 as UploadChangeInfo, b5 as UploadDraggerProps, b6 as UploadFile, b7 as UploadFileStatus, ba as UploadProps, be as UploadRequestOptions, bi as message } from './core--AEiGVOU.js';
1
+ export { d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, h as Card, i as CardAccent, j as CardProps, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, I as FloatingScrollbarProvider, J as FloatingScrollbarProviderProps, M as Icon, N as IconName, O as IconProps, P as IconVariant, Y as Input, Z as InputProps, a4 as MessageConfig, a5 as MessageHandle, a6 as MessageKey, a7 as MessageType, af as Progress, ag as ProgressProps, ah as ProgressStatus, ak as Result, al as ResultProps, am as ResultStatus, an as Segmented, ao as SegmentedOption, ap as SegmentedProps, aq as SegmentedValue, ar as Skeleton, as as SkeletonProps, az as TabItem, aA as Tabs, aC as TabsOrientation, aD as TabsPosition, aE as TabsProps, aF as TabsType, aG as Tag, aH as TagProps, aI as TagSize, T as TagStatus, aJ as TagVariant, aN as Toolbar, aO as ToolbarItem, aP as ToolbarProps, a_ as Typography, a$ as TypographyLinkProps, b0 as TypographyProps, b1 as TypographyTitleProps, b2 as TypographyType, b3 as Upload, b4 as UploadChangeInfo, b5 as UploadDraggerProps, b6 as UploadFile, b7 as UploadFileStatus, ba as UploadProps, be as UploadRequestOptions, bi as message } from './core-XtqUDbbD.js';
2
2
  export { b as Button, B as ButtonProps, a as ButtonSize, c as ButtonVariant } from './Button-B59TIes7.js';
3
- export { e as Modal, d as ModalActionResult, M as ModalOpenConfig, f as ModalProps, g as ModalType, a as OverlayApiHandle, h as Select, S as SelectOption, c as SelectProps, j as SelectValue } from './Select-BCVUoK0I.js';
3
+ export { e as Modal, d as ModalActionResult, M as ModalOpenConfig, f as ModalProps, g as ModalType, a as OverlayApiHandle, h as Select, S as SelectOption, c as SelectProps, j as SelectValue } from './Select-tsENCXQI.js';
4
4
  import 'react';
5
5
  import './shared-Bx4B28Wh.js';
package/dist/core.js CHANGED
@@ -11,29 +11,29 @@ import {
11
11
  Typography,
12
12
  Upload,
13
13
  message
14
- } from "./chunk-P5ZCOIKQ.js";
14
+ } from "./chunk-UPXL2QLJ.js";
15
15
  import "./chunk-RX242MUO.js";
16
16
  import {
17
17
  Select
18
- } from "./chunk-REAWVQH2.js";
18
+ } from "./chunk-MXK6TKMO.js";
19
19
  import {
20
20
  Input,
21
21
  Segmented
22
- } from "./chunk-EMBCJFJM.js";
23
- import "./chunk-NRLIOMXY.js";
22
+ } from "./chunk-ZNPNZD6O.js";
23
+ import "./chunk-UL54A2YN.js";
24
24
  import {
25
25
  Icon,
26
26
  Modal,
27
27
  Skeleton
28
- } from "./chunk-ZIH5VLPT.js";
28
+ } from "./chunk-KA3M4TE4.js";
29
29
  import {
30
30
  Button
31
- } from "./chunk-PU2V3VB5.js";
32
- import "./chunk-YO5OJQEH.js";
31
+ } from "./chunk-4B7ATL6J.js";
32
+ import "./chunk-CRA7VNOA.js";
33
33
  import {
34
34
  FloatingScrollbarProvider,
35
35
  initializeDefaultScrollbars
36
- } from "./chunk-SRWUDTCS.js";
36
+ } from "./chunk-WMZYYPIW.js";
37
37
 
38
38
  // src/core.ts
39
39
  initializeDefaultScrollbars();
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
  }
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-KA3M4TE4.js";
5
5
  import {
6
6
  Button
7
- } from "./chunk-PU2V3VB5.js";
7
+ } from "./chunk-4B7ATL6J.js";
8
8
  import {
9
9
  initializeDefaultScrollbars
10
- } from "./chunk-SRWUDTCS.js";
10
+ } from "./chunk-WMZYYPIW.js";
11
11
 
12
12
  // src/game/hex-rules.ts
13
13
  var DEFAULT_GAME_ABILITIES = [