@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
@@ -281,7 +281,7 @@ interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "def
281
281
  */
282
282
  notFoundContent?: ReactNode;
283
283
  }
284
- /** 选择器组件。下拉面板以 260ms 缩放淡入、弹大回收后归位,关闭为 140ms 无回弹缩小淡出;最终外观沿用组件样式,系统减少动态效果时直接显示。下拉面板每次展开自动定位到列表顺序中的第一个已选项,支持普通和虚拟列表;未选中时从顶部显示。展开时 Escape 只收起选择器,不关闭外层弹框或抽屉。 */
284
+ /** 选择器组件。下拉面板以 260ms 缩放淡入、轻微弹大回收后归位,关闭为 140ms 无回弹缩小淡出;最终外观沿用组件样式,系统减少动态效果时直接显示。下拉面板每次展开自动定位到列表顺序中的第一个已选项,支持普通和虚拟列表;未选中时从顶部显示。展开时 Escape 只收起选择器,不关闭外层弹框或抽屉。 */
285
285
  declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
286
286
 
287
287
  export { type ModalOpenConfig as M, type OverlayContainer as O, type SelectOption as S, type OverlayApiHandle as a, type SelectChangeValue as b, type SelectProps as c, type ModalActionResult as d, Modal as e, type ModalProps as f, type ModalType as g, Select as h, type SelectMode as i, type SelectValue as j };
@@ -281,7 +281,7 @@ interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "def
281
281
  */
282
282
  notFoundContent?: ReactNode;
283
283
  }
284
- /** 选择器组件。下拉面板以 260ms 缩放淡入、弹大回收后归位,关闭为 140ms 无回弹缩小淡出;最终外观沿用组件样式,系统减少动态效果时直接显示。下拉面板每次展开自动定位到列表顺序中的第一个已选项,支持普通和虚拟列表;未选中时从顶部显示。展开时 Escape 只收起选择器,不关闭外层弹框或抽屉。 */
284
+ /** 选择器组件。下拉面板以 260ms 缩放淡入、轻微弹大回收后归位,关闭为 140ms 无回弹缩小淡出;最终外观沿用组件样式,系统减少动态效果时直接显示。下拉面板每次展开自动定位到列表顺序中的第一个已选项,支持普通和虚拟列表;未选中时从顶部显示。展开时 Escape 只收起选择器,不关闭外层弹框或抽屉。 */
285
285
  declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
286
286
 
287
287
  export { type ModalOpenConfig as M, type OverlayContainer as O, type SelectOption as S, type OverlayApiHandle as a, type SelectChangeValue as b, type SelectProps as c, type ModalActionResult as d, Modal as e, type ModalProps as f, type ModalType as g, Select as h, type SelectMode as i, type SelectValue as j };
package/dist/chart.cjs CHANGED
@@ -610,8 +610,8 @@ var import_react4 = require("react");
610
610
  // src/components/popupFluidMotion.ts
611
611
  var popupEnterDuration = 260;
612
612
  var popupExitDuration = 140;
613
- var popupInitialScale = 0.88;
614
- var popupTravelOffset = 6;
613
+ var popupInitialScale = 0.93;
614
+ var popupTravelOffset = 4;
615
615
  function popupFluidFrames(placement, open = true) {
616
616
  const side = placement.split("-")[0];
617
617
  const axis = side === "left" || side === "right" ? "X" : "Y";
@@ -620,8 +620,8 @@ function popupFluidFrames(placement, open = true) {
620
620
  const visible = { opacity: 1, transform: "none" };
621
621
  return open ? [
622
622
  { ...hidden, offset: 0 },
623
- { opacity: 1, transform: "scale(1.11, 1.085)", offset: 0.68 },
624
- { opacity: 1, transform: "scale(.945, .965)", offset: 0.86 },
623
+ { opacity: 1, transform: "scale(1.05, 1.04)", offset: 0.68 },
624
+ { opacity: 1, transform: "scale(.977, .985)", offset: 0.86 },
625
625
  { ...visible, offset: 1 }
626
626
  ] : [{ ...visible, offset: 0 }, { ...hidden, offset: 1 }];
627
627
  }
@@ -641,16 +641,16 @@ function motionFrames(kind, placement) {
641
641
  const outside = `translate${axis}(${sign * 100}%)`;
642
642
  return [
643
643
  { transform: outside, offset: 0 },
644
- { transform: `translate${axis}(0) scale${axis}(1.065)`, offset: 0.68 },
645
- { transform: `translate${axis}(0) scale${axis}(.975)`, offset: 0.86 },
644
+ { transform: `translate${axis}(0) scale${axis}(1.03)`, offset: 0.68 },
645
+ { transform: `translate${axis}(0) scale${axis}(.988)`, offset: 0.86 },
646
646
  { transform: "none", offset: 1 }
647
647
  ];
648
648
  }
649
649
  const modal = kind === "modal";
650
650
  return [
651
- { opacity: 0, transform: `translateY(${modal ? 18 : -6}px) scale(${modal ? 0.9 : 0.88})`, offset: 0 },
652
- { opacity: 1, transform: modal ? "scale(1.075, 1.05)" : "scale(1.11, 1.085)", offset: 0.68 },
653
- { opacity: 1, transform: modal ? "scale(.965, .98)" : "scale(.945, .965)", offset: 0.86 },
651
+ { opacity: 0, transform: `translateY(${modal ? 14 : -4}px) scale(${modal ? 0.95 : 0.93})`, offset: 0 },
652
+ { opacity: 1, transform: modal ? "scale(1.035, 1.02)" : "scale(1.05, 1.04)", offset: 0.68 },
653
+ { opacity: 1, transform: modal ? "scale(.984, .992)" : "scale(.977, .985)", offset: 0.86 },
654
654
  { opacity: 1, transform: "none", offset: 1 }
655
655
  ];
656
656
  }
package/dist/chart.js CHANGED
@@ -56,11 +56,11 @@ import {
56
56
  smoothSvgPath,
57
57
  svgArcPath,
58
58
  transferCompositeValue
59
- } from "./chunk-6SSZVJO4.js";
60
- import "./chunk-NRLIOMXY.js";
61
- import "./chunk-PU2V3VB5.js";
62
- import "./chunk-YO5OJQEH.js";
63
- import "./chunk-SRWUDTCS.js";
59
+ } from "./chunk-M4IASLGB.js";
60
+ import "./chunk-UL54A2YN.js";
61
+ import "./chunk-4B7ATL6J.js";
62
+ import "./chunk-CRA7VNOA.js";
63
+ import "./chunk-WMZYYPIW.js";
64
64
  export {
65
65
  BarChart,
66
66
  CHART_VIEWBOX_HEIGHT,
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  Dropdown,
3
3
  Input
4
- } from "./chunk-EMBCJFJM.js";
4
+ } from "./chunk-ZNPNZD6O.js";
5
5
  import {
6
6
  Icon
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
  useFloatingPlaceholder
13
- } from "./chunk-YO5OJQEH.js";
13
+ } from "./chunk-CRA7VNOA.js";
14
14
  import {
15
15
  withTitleTooltip
16
- } from "./chunk-SRWUDTCS.js";
16
+ } from "./chunk-WMZYYPIW.js";
17
17
 
18
18
  // src/components/RichTextEditor.tsx
19
19
  import { useEffect, useMemo, useRef, useState } from "react";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  useControlSize,
3
3
  withTitleTooltip
4
- } from "./chunk-SRWUDTCS.js";
4
+ } from "./chunk-WMZYYPIW.js";
5
5
 
6
6
  // src/components/Button.tsx
7
7
  import { forwardRef, useEffect, useRef } from "react";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  useFloatingPlaceholder
3
- } from "./chunk-YO5OJQEH.js";
3
+ } from "./chunk-CRA7VNOA.js";
4
4
  import {
5
5
  withTitleTooltip
6
- } from "./chunk-SRWUDTCS.js";
6
+ } from "./chunk-WMZYYPIW.js";
7
7
 
8
8
  // src/components/MarkdownEditor.tsx
9
9
  import { useEffect, useRef, useState } from "react";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  usePlaceholderMode
3
- } from "./chunk-SRWUDTCS.js";
3
+ } from "./chunk-WMZYYPIW.js";
4
4
 
5
5
  // src/components/FloatingPlaceholder.tsx
6
6
  import { jsx } from "react/jsx-runtime";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Button
3
- } from "./chunk-PU2V3VB5.js";
3
+ } from "./chunk-4B7ATL6J.js";
4
4
  import {
5
5
  useOverlayMotion,
6
6
  withTitleTooltip
7
- } from "./chunk-SRWUDTCS.js";
7
+ } from "./chunk-WMZYYPIW.js";
8
8
 
9
9
  // src/components/Icon.tsx
10
10
  import { forwardRef } from "react";
@@ -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
  Button
6
- } from "./chunk-PU2V3VB5.js";
6
+ } from "./chunk-4B7ATL6J.js";
7
7
  import {
8
8
  initializeDefaultScrollbars,
9
9
  withTitleTooltip
10
- } from "./chunk-SRWUDTCS.js";
10
+ } from "./chunk-WMZYYPIW.js";
11
11
 
12
12
  // src/components/ChartWhirlingLoading.tsx
13
13
  import { useEffect, useState } from "react";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  Dropdown,
3
3
  Input
4
- } from "./chunk-EMBCJFJM.js";
4
+ } from "./chunk-ZNPNZD6O.js";
5
5
  import {
6
6
  Icon,
7
7
  Modal,
8
8
  isAnchorBehindOverlay,
9
9
  subscribeOverlayLayers
10
- } from "./chunk-ZIH5VLPT.js";
10
+ } from "./chunk-KA3M4TE4.js";
11
11
  import {
12
12
  Button
13
- } from "./chunk-PU2V3VB5.js";
13
+ } from "./chunk-4B7ATL6J.js";
14
14
  import {
15
15
  useFloatingPlaceholder
16
- } from "./chunk-YO5OJQEH.js";
16
+ } from "./chunk-CRA7VNOA.js";
17
17
  import {
18
18
  ControlSizeContext,
19
19
  FloatingScrollbarProvider,
@@ -22,7 +22,7 @@ import {
22
22
  useControllableState,
23
23
  useOverlayMotion,
24
24
  withTitleTooltip
25
- } from "./chunk-SRWUDTCS.js";
25
+ } from "./chunk-WMZYYPIW.js";
26
26
 
27
27
  // src/components/usePressFeedback.ts
28
28
  import { useEffect, useRef } from "react";