@sia.soul/sia-react-ui 0.1.159 → 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.
- 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 +9 -9
- package/dist/chart.js +5 -5
- package/dist/{chunk-6PIZGTNT.js → chunk-33WX54AU.js} +5 -5
- package/dist/{chunk-PU2V3VB5.js → chunk-4B7ATL6J.js} +1 -1
- package/dist/{chunk-XXFYFLZA.js → chunk-5WZR2RHA.js} +2 -2
- package/dist/{chunk-YO5OJQEH.js → chunk-CRA7VNOA.js} +1 -1
- package/dist/{chunk-ZIH5VLPT.js → chunk-KA3M4TE4.js} +2 -2
- package/dist/{chunk-6SSZVJO4.js → chunk-M4IASLGB.js} +3 -3
- package/dist/{chunk-UGCKRFZN.js → chunk-MXK6TKMO.js} +5 -5
- package/dist/{chunk-CDMCXNRK.js → chunk-Q3LEK2TL.js} +599 -270
- package/dist/{chunk-NRLIOMXY.js → chunk-UL54A2YN.js} +2 -2
- package/dist/{chunk-4CFFAKIJ.js → chunk-UPXL2QLJ.js} +6 -6
- package/dist/{chunk-SRWUDTCS.js → chunk-WMZYYPIW.js} +9 -9
- package/dist/{chunk-PJCO6PPW.js → chunk-ZNPNZD6O.js} +30 -15
- package/dist/{core-sU1bV7QH.d.ts → core-XtqUDbbD.d.ts} +5 -5
- package/dist/{core-B26pkBp_.d.cts → core-r-smfiNN.d.cts} +5 -5
- package/dist/core.cjs +27 -13
- package/dist/core.css +170 -22
- package/dist/core.d.cts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/core.js +8 -8
- package/dist/game.cjs +9 -9
- package/dist/game.js +3 -3
- package/dist/index.cjs +664 -320
- package/dist/index.css +170 -22
- 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 +9 -9
- package/dist/markdown-editor.js +3 -3
- package/dist/rich-text-editor.cjs +40 -13
- package/dist/rich-text-editor.js +7 -7
- package/dist/{select-date-range-DYrA87Tl.d.ts → select-date-range-CIXBuoef.d.ts} +8 -9
- package/dist/{select-date-range-CIwE5nFu.d.cts → select-date-range-Cbh37zmU.d.cts} +8 -9
- package/dist/select-date-range.cjs +598 -269
- 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
|
}
|
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-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-
|
|
4
|
+
} from "./chunk-ZNPNZD6O.js";
|
|
5
5
|
import {
|
|
6
6
|
Icon
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KA3M4TE4.js";
|
|
8
8
|
import {
|
|
9
9
|
Button
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4B7ATL6J.js";
|
|
11
11
|
import {
|
|
12
12
|
useFloatingPlaceholder
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-CRA7VNOA.js";
|
|
14
14
|
import {
|
|
15
15
|
withTitleTooltip
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WMZYYPIW.js";
|
|
17
17
|
|
|
18
18
|
// src/components/RichTextEditor.tsx
|
|
19
19
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFloatingPlaceholder
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CRA7VNOA.js";
|
|
4
4
|
import {
|
|
5
5
|
withTitleTooltip
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WMZYYPIW.js";
|
|
7
7
|
|
|
8
8
|
// src/components/MarkdownEditor.tsx
|
|
9
9
|
import { useEffect, useRef, useState } from "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Button
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4B7ATL6J.js";
|
|
4
4
|
import {
|
|
5
5
|
useOverlayMotion,
|
|
6
6
|
withTitleTooltip
|
|
7
|
-
} from "./chunk-
|
|
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-
|
|
3
|
+
} from "./chunk-UL54A2YN.js";
|
|
4
4
|
import {
|
|
5
5
|
Button
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4B7ATL6J.js";
|
|
7
7
|
import {
|
|
8
8
|
initializeDefaultScrollbars,
|
|
9
9
|
withTitleTooltip
|
|
10
|
-
} from "./chunk-
|
|
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-
|
|
4
|
+
} from "./chunk-ZNPNZD6O.js";
|
|
5
5
|
import {
|
|
6
6
|
Icon,
|
|
7
7
|
Modal,
|
|
8
8
|
isAnchorBehindOverlay,
|
|
9
9
|
subscribeOverlayLayers
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KA3M4TE4.js";
|
|
11
11
|
import {
|
|
12
12
|
Button
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4B7ATL6J.js";
|
|
14
14
|
import {
|
|
15
15
|
useFloatingPlaceholder
|
|
16
|
-
} from "./chunk-
|
|
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-
|
|
25
|
+
} from "./chunk-WMZYYPIW.js";
|
|
26
26
|
|
|
27
27
|
// src/components/usePressFeedback.ts
|
|
28
28
|
import { useEffect, useRef } from "react";
|