@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.
- package/dist/{Select-DIdEbGwf.d.cts → Select-Dxevc0f6.d.cts} +1 -1
- package/dist/{Select-BCVUoK0I.d.ts → Select-tsENCXQI.d.ts} +1 -1
- package/dist/chart.cjs +10 -10
- package/dist/chart.js +5 -5
- package/dist/{chunk-EMBCJFJM.js → chunk-23FQ5ARA.js} +4 -4
- package/dist/{chunk-H6UTSSZM.js → chunk-2EC653G5.js} +5 -5
- package/dist/{chunk-SRWUDTCS.js → chunk-CUAXJCSH.js} +10 -10
- package/dist/{chunk-KDIJYXKW.js → chunk-DKQ5UCN6.js} +618 -273
- package/dist/{chunk-ZIH5VLPT.js → chunk-G5EJJFUI.js} +2 -2
- package/dist/{chunk-NRLIOMXY.js → chunk-J6BPKBEL.js} +2 -2
- package/dist/{chunk-6SSZVJO4.js → chunk-NHGCGOF2.js} +3 -3
- package/dist/{chunk-YO5OJQEH.js → chunk-OHAESA5R.js} +1 -1
- package/dist/{chunk-PU2V3VB5.js → chunk-PAWEP65C.js} +1 -1
- package/dist/{chunk-REAWVQH2.js → chunk-SX4LLT3H.js} +5 -5
- package/dist/{chunk-XXFYFLZA.js → chunk-V4I32DPL.js} +2 -2
- package/dist/{chunk-P5ZCOIKQ.js → chunk-WR5YBY2A.js} +6 -6
- package/dist/{core--AEiGVOU.d.ts → core-XtqUDbbD.d.ts} +3 -3
- package/dist/{core-DolUEUCo.d.cts → core-r-smfiNN.d.cts} +3 -3
- package/dist/core.cjs +10 -10
- package/dist/core.css +245 -29
- package/dist/core.d.cts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/core.js +8 -8
- package/dist/game.cjs +10 -10
- package/dist/game.js +3 -3
- package/dist/index.cjs +666 -320
- package/dist/index.css +245 -29
- package/dist/index.d.cts +13 -8
- package/dist/index.d.ts +13 -8
- package/dist/index.js +60 -59
- package/dist/markdown-editor.cjs +10 -10
- package/dist/markdown-editor.js +3 -3
- package/dist/rich-text-editor.cjs +10 -10
- package/dist/rich-text-editor.js +7 -7
- package/dist/{select-date-range-CIwE5nFu.d.cts → select-date-range-C9lTBQFX.d.cts} +10 -11
- package/dist/{select-date-range-DYrA87Tl.d.ts → select-date-range-CQCGGkkt.d.ts} +10 -11
- package/dist/select-date-range.cjs +618 -273
- package/dist/select-date-range.d.cts +2 -2
- package/dist/select-date-range.d.ts +2 -2
- package/dist/select-date-range.js +8 -8
- 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
|
|
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
|
|
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.
|
|
614
|
-
var popupTravelOffset =
|
|
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.
|
|
624
|
-
{ opacity: 1, transform: "scale(.
|
|
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.
|
|
645
|
-
{ transform: `translate${axis}(0) scale${axis}(.
|
|
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 ?
|
|
652
|
-
{ opacity: 1, transform: modal ? "scale(1.
|
|
653
|
-
{ opacity: 1, transform: modal ? "scale(.
|
|
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
|
}
|
|
@@ -868,7 +868,7 @@ var PopupPortal = (0, import_react5.forwardRef)(function PopupPortal2({
|
|
|
868
868
|
cancelAnimationFrame(frame);
|
|
869
869
|
observer.disconnect();
|
|
870
870
|
};
|
|
871
|
-
}, [anchorRef, offset, motion.present, placement, viewportPadding]);
|
|
871
|
+
}, [anchorRef, offset, motion.present, placement, viewportPadding, position?.availableHeight, position?.placement]);
|
|
872
872
|
if (!motion.present || typeof document === "undefined") return null;
|
|
873
873
|
return (0, import_react_dom.createPortal)(
|
|
874
874
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
package/dist/chart.js
CHANGED
|
@@ -56,11 +56,11 @@ import {
|
|
|
56
56
|
smoothSvgPath,
|
|
57
57
|
svgArcPath,
|
|
58
58
|
transferCompositeValue
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
59
|
+
} from "./chunk-NHGCGOF2.js";
|
|
60
|
+
import "./chunk-J6BPKBEL.js";
|
|
61
|
+
import "./chunk-PAWEP65C.js";
|
|
62
|
+
import "./chunk-OHAESA5R.js";
|
|
63
|
+
import "./chunk-CUAXJCSH.js";
|
|
64
64
|
export {
|
|
65
65
|
BarChart,
|
|
66
66
|
CHART_VIEWBOX_HEIGHT,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TextArea
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-J6BPKBEL.js";
|
|
4
4
|
import {
|
|
5
5
|
Icon,
|
|
6
6
|
Modal
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-G5EJJFUI.js";
|
|
8
8
|
import {
|
|
9
9
|
Button
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PAWEP65C.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-
|
|
20
|
+
} from "./chunk-CUAXJCSH.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";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Dropdown,
|
|
3
3
|
Input
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-23FQ5ARA.js";
|
|
5
5
|
import {
|
|
6
6
|
Icon
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-G5EJJFUI.js";
|
|
8
8
|
import {
|
|
9
9
|
Button
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PAWEP65C.js";
|
|
11
11
|
import {
|
|
12
12
|
useFloatingPlaceholder
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OHAESA5R.js";
|
|
14
14
|
import {
|
|
15
15
|
withTitleTooltip
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CUAXJCSH.js";
|
|
17
17
|
|
|
18
18
|
// src/components/RichTextEditor.tsx
|
|
19
19
|
import { useEffect, useMemo, 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.
|
|
514
|
-
var popupTravelOffset =
|
|
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.
|
|
524
|
-
{ opacity: 1, transform: "scale(.
|
|
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.
|
|
545
|
-
{ transform: `translate${axis}(0) scale${axis}(.
|
|
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 ?
|
|
552
|
-
{ opacity: 1, transform: modal ? "scale(1.
|
|
553
|
-
{ opacity: 1, transform: modal ? "scale(.
|
|
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
|
}
|
|
@@ -930,7 +930,7 @@ var PopupPortal = forwardRef(function PopupPortal2({
|
|
|
930
930
|
cancelAnimationFrame(frame);
|
|
931
931
|
observer.disconnect();
|
|
932
932
|
};
|
|
933
|
-
}, [anchorRef, offset, motion.present, placement, viewportPadding]);
|
|
933
|
+
}, [anchorRef, offset, motion.present, placement, viewportPadding, position?.availableHeight, position?.placement]);
|
|
934
934
|
if (!motion.present || typeof document === "undefined") return null;
|
|
935
935
|
return createPortal(
|
|
936
936
|
/* @__PURE__ */ jsx2(
|