@sia.soul/sia-react-ui 0.1.18 → 0.1.21
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-4hGJt3RJ.d.cts +142 -0
- package/dist/Select-BNSE67xn.d.ts +142 -0
- package/dist/chart.d.cts +2498 -0
- package/dist/chart.d.ts +2498 -0
- package/dist/{chunk-LPRFOSRZ.js → chunk-3TRRBMXY.js} +45 -10
- package/dist/{chunk-JX53ZBIW.js → chunk-7RNS52YG.js} +38 -5
- package/dist/{chunk-SUMXP2SF.js → chunk-KLI65JVD.js} +12 -4
- package/dist/{chunk-I3EF5SF2.js → chunk-RWGSZW32.js} +1 -1
- package/dist/{chunk-UCQZZ2YC.js → chunk-VN6PIPP7.js} +2 -2
- package/dist/core-C5OnrCi4.d.cts +2288 -0
- package/dist/core-DeZknKwc.d.ts +2288 -0
- package/dist/core.cjs +85 -15
- package/dist/core.css +18 -1
- package/dist/core.d.cts +3 -3
- package/dist/core.d.ts +3 -3
- package/dist/core.js +3 -3
- package/dist/index.cjs +1812 -1571
- package/dist/index.css +18 -1
- package/dist/index.d.cts +1715 -8
- package/dist/index.d.ts +1715 -8
- package/dist/index.js +402 -238
- package/dist/markdown-editor.d.cts +41 -1
- package/dist/markdown-editor.d.ts +41 -1
- package/dist/rich-text-editor.cjs +11 -3
- package/dist/rich-text-editor.d.cts +46 -1
- package/dist/rich-text-editor.d.ts +46 -1
- package/dist/rich-text-editor.js +2 -2
- package/dist/{select-date-range-Bdb-hi9c.d.ts → select-date-range-CGRb3-W8.d.ts} +116 -2
- package/dist/{select-date-range-shDQ5uJA.d.cts → select-date-range-DDmYGDD4.d.cts} +116 -2
- package/dist/select-date-range.cjs +44 -9
- package/dist/select-date-range.d.cts +3 -3
- package/dist/select-date-range.d.ts +3 -3
- package/dist/select-date-range.js +3 -3
- package/dist/{shared-DAYZvZVu.d.cts → shared-Bx4B28Wh.d.cts} +3 -0
- package/dist/{shared-DAYZvZVu.d.ts → shared-Bx4B28Wh.d.ts} +3 -0
- package/package.json +1 -1
- package/dist/Select-CVvF4mcy.d.cts +0 -57
- package/dist/Select-Ce2Irbpt.d.ts +0 -57
- package/dist/core-AeKYVPDZ.d.cts +0 -1082
- package/dist/core-DcSXqSRs.d.ts +0 -1082
package/dist/core.cjs
CHANGED
|
@@ -1368,6 +1368,7 @@ function DropdownRoot({
|
|
|
1368
1368
|
open,
|
|
1369
1369
|
defaultOpen = false,
|
|
1370
1370
|
disabled = false,
|
|
1371
|
+
showTriggerIcon = true,
|
|
1371
1372
|
arrow = false,
|
|
1372
1373
|
autoFocus = false,
|
|
1373
1374
|
openDelay = 80,
|
|
@@ -1528,6 +1529,10 @@ function DropdownRoot({
|
|
|
1528
1529
|
className: "sia-dropdown__menu"
|
|
1529
1530
|
}
|
|
1530
1531
|
);
|
|
1532
|
+
const triggerNode = showTriggerIcon && (0, import_react7.isValidElement)(children) && children.type === Button && children.props.children !== void 0 && children.props.children !== null ? (0, import_react7.cloneElement)(children, {}, /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "sia-dropdown__trigger-content", children: [
|
|
1533
|
+
children.props.children,
|
|
1534
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: "chevron-down", size: 14, className: "sia-dropdown__trigger-icon" })
|
|
1535
|
+
] })) : children;
|
|
1531
1536
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
1532
1537
|
"span",
|
|
1533
1538
|
{
|
|
@@ -1543,7 +1548,7 @@ function DropdownRoot({
|
|
|
1543
1548
|
onKeyDown: handleKeyDown,
|
|
1544
1549
|
...props,
|
|
1545
1550
|
children: [
|
|
1546
|
-
|
|
1551
|
+
triggerNode,
|
|
1547
1552
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
1548
1553
|
"span",
|
|
1549
1554
|
{
|
|
@@ -1590,7 +1595,7 @@ function DropdownButton({
|
|
|
1590
1595
|
}) {
|
|
1591
1596
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: `sia-dropdown-button ${className}`.trim(), children: [
|
|
1592
1597
|
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Button, { ...buttonProps, disabled, onClick, children }),
|
|
1593
|
-
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownRoot, { ...dropdownProps, disabled, trigger, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
1598
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownRoot, { ...dropdownProps, disabled, trigger, showTriggerIcon: false, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
1594
1599
|
Button,
|
|
1595
1600
|
{
|
|
1596
1601
|
...buttonProps,
|
|
@@ -1602,7 +1607,10 @@ function DropdownButton({
|
|
|
1602
1607
|
) })
|
|
1603
1608
|
] });
|
|
1604
1609
|
}
|
|
1605
|
-
var Dropdown = Object.assign(DropdownRoot, {
|
|
1610
|
+
var Dropdown = Object.assign(DropdownRoot, {
|
|
1611
|
+
/** 组合主操作按钮与下拉菜单的按钮组件。 */
|
|
1612
|
+
Button: DropdownButton
|
|
1613
|
+
});
|
|
1606
1614
|
|
|
1607
1615
|
// src/components/Tabs.tsx
|
|
1608
1616
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
@@ -1895,7 +1903,10 @@ function CheckboxGroup({
|
|
|
1895
1903
|
children
|
|
1896
1904
|
] }) }) });
|
|
1897
1905
|
}
|
|
1898
|
-
var Checkbox2 = Object.assign(CheckboxRoot, {
|
|
1906
|
+
var Checkbox2 = Object.assign(CheckboxRoot, {
|
|
1907
|
+
/** 组合多个子项并统一管理布局或选择状态。 */
|
|
1908
|
+
Group: CheckboxGroup
|
|
1909
|
+
});
|
|
1899
1910
|
|
|
1900
1911
|
// src/components/FloatingDisplay.tsx
|
|
1901
1912
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
@@ -2320,6 +2331,7 @@ var ModalRoot = (0, import_react14.forwardRef)(function Modal({
|
|
|
2320
2331
|
title,
|
|
2321
2332
|
children,
|
|
2322
2333
|
footer,
|
|
2334
|
+
footerExtra,
|
|
2323
2335
|
type = "default",
|
|
2324
2336
|
okText = "\u786E\u5B9A",
|
|
2325
2337
|
cancelText = "\u53D6\u6D88",
|
|
@@ -2444,7 +2456,10 @@ var ModalRoot = (0, import_react14.forwardRef)(function Modal({
|
|
|
2444
2456
|
closable ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("button", { type: "button", className: "sia-modal__close", "aria-label": "\u5173\u95ED\u5BF9\u8BDD\u6846", onClick: requestClose, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Icon, { name: "close", size: 17 }) }) : null
|
|
2445
2457
|
] }),
|
|
2446
2458
|
children !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "sia-modal__body", children }) : null,
|
|
2447
|
-
footer !== null ? /* @__PURE__ */ (0, import_jsx_runtime15.
|
|
2459
|
+
footer !== null ? /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "sia-modal__footer", children: [
|
|
2460
|
+
footer === void 0 && footerExtra != null ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { style: { marginRight: "auto" }, children: footerExtra }) : null,
|
|
2461
|
+
footer ?? defaultFooter
|
|
2462
|
+
] }) : null
|
|
2448
2463
|
]
|
|
2449
2464
|
}
|
|
2450
2465
|
)
|
|
@@ -2507,12 +2522,19 @@ function preset(type, defaults = {}) {
|
|
|
2507
2522
|
});
|
|
2508
2523
|
}
|
|
2509
2524
|
var Modal2 = Object.assign(ModalRoot, {
|
|
2525
|
+
/** 直接打开实例,返回可用于更新或关闭的操作句柄。 */
|
|
2510
2526
|
open: openModal,
|
|
2527
|
+
/** 显示普通信息提示。 */
|
|
2511
2528
|
info: preset("info", { title: "\u63D0\u793A" }),
|
|
2529
|
+
/** 显示成功提示。 */
|
|
2512
2530
|
success: preset("success", { title: "\u64CD\u4F5C\u6210\u529F" }),
|
|
2531
|
+
/** 显示警告提示。 */
|
|
2513
2532
|
warning: preset("warning", { title: "\u8BF7\u6CE8\u610F" }),
|
|
2533
|
+
/** 显示错误提示。 */
|
|
2514
2534
|
error: preset("error", { title: "\u64CD\u4F5C\u5931\u8D25" }),
|
|
2535
|
+
/** 打开确认弹框,支持异步确认;返回 false 可阻止关闭。 */
|
|
2515
2536
|
confirm: preset("confirm", { title: "\u786E\u8BA4\u64CD\u4F5C" }),
|
|
2537
|
+
/** 关闭由此 API 打开的所有弹层。 */
|
|
2516
2538
|
destroyAll() {
|
|
2517
2539
|
[...modalHandles].forEach((handle) => handle.destroy());
|
|
2518
2540
|
}
|
|
@@ -2630,6 +2652,7 @@ function SelectionPanel({
|
|
|
2630
2652
|
value,
|
|
2631
2653
|
onChange,
|
|
2632
2654
|
multiple = false,
|
|
2655
|
+
allowDeselect = false,
|
|
2633
2656
|
disabled = false,
|
|
2634
2657
|
loading = false,
|
|
2635
2658
|
showSearch = true,
|
|
@@ -2648,6 +2671,8 @@ function SelectionPanel({
|
|
|
2648
2671
|
const search = searchValue ?? localSearch;
|
|
2649
2672
|
const [scrollTop, setScrollTop] = (0, import_react16.useState)(0);
|
|
2650
2673
|
const [active, setActive] = (0, import_react16.useState)();
|
|
2674
|
+
const [keyboardActive, setKeyboardActive] = (0, import_react16.useState)(false);
|
|
2675
|
+
const [deselectedHover, setDeselectedHover] = (0, import_react16.useState)();
|
|
2651
2676
|
const listRef = (0, import_react16.useRef)(null);
|
|
2652
2677
|
const id = (0, import_react16.useId)();
|
|
2653
2678
|
const selected = (0, import_react16.useMemo)(() => new Set(value), [value]);
|
|
@@ -2692,10 +2717,12 @@ function SelectionPanel({
|
|
|
2692
2717
|
if (listRef.current) listRef.current.scrollTop = 0;
|
|
2693
2718
|
setActive(void 0);
|
|
2694
2719
|
}, [search, selectedOnly, count]);
|
|
2695
|
-
function toggle(option) {
|
|
2720
|
+
function toggle(option, keyboard = false) {
|
|
2696
2721
|
if (disabled || loading || option.disabled || option.optionType === "divider") return;
|
|
2697
2722
|
setActive(option.value);
|
|
2698
|
-
|
|
2723
|
+
setKeyboardActive(keyboard);
|
|
2724
|
+
setDeselectedHover(!keyboard && !multiple && allowDeselect && selected.has(option.value) ? option.value : void 0);
|
|
2725
|
+
onChange(multiple ? selected.has(option.value) ? value.filter((item) => item !== option.value) : [...value, option.value] : allowDeselect && selected.has(option.value) ? [] : [option.value]);
|
|
2699
2726
|
}
|
|
2700
2727
|
function batch(operation) {
|
|
2701
2728
|
if (disabled || loading) return;
|
|
@@ -2744,6 +2771,10 @@ function SelectionPanel({
|
|
|
2744
2771
|
className: "sia-selection-panel__list",
|
|
2745
2772
|
style: { maxHeight },
|
|
2746
2773
|
onScroll: (event) => setScrollTop(event.currentTarget.scrollTop),
|
|
2774
|
+
onPointerDown: () => setKeyboardActive(false),
|
|
2775
|
+
onBlur: (event) => {
|
|
2776
|
+
if (!event.currentTarget.contains(event.relatedTarget)) setKeyboardActive(false);
|
|
2777
|
+
},
|
|
2747
2778
|
"aria-activedescendant": active !== void 0 ? `${id}-${typeof active}-${active}` : void 0,
|
|
2748
2779
|
onKeyDown: (event) => {
|
|
2749
2780
|
if (event.target instanceof HTMLInputElement) return;
|
|
@@ -2751,6 +2782,8 @@ function SelectionPanel({
|
|
|
2751
2782
|
const index = enabled.findIndex((option) => option.value === active);
|
|
2752
2783
|
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(event.key)) {
|
|
2753
2784
|
event.preventDefault();
|
|
2785
|
+
setKeyboardActive(true);
|
|
2786
|
+
setDeselectedHover(void 0);
|
|
2754
2787
|
const next = event.key === "Home" ? 0 : event.key === "End" ? enabled.length - 1 : Math.max(0, Math.min(enabled.length - 1, index + (event.key === "ArrowDown" ? 1 : -1)));
|
|
2755
2788
|
const option = enabled[next];
|
|
2756
2789
|
setActive(option.value);
|
|
@@ -2761,7 +2794,7 @@ function SelectionPanel({
|
|
|
2761
2794
|
}
|
|
2762
2795
|
} else if ((event.key === "Enter" || event.key === " ") && index >= 0) {
|
|
2763
2796
|
event.preventDefault();
|
|
2764
|
-
toggle(enabled[index]);
|
|
2797
|
+
toggle(enabled[index], true);
|
|
2765
2798
|
}
|
|
2766
2799
|
},
|
|
2767
2800
|
children: loading ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { role: "status", children: "\u52A0\u8F7D\u4E2D\u2026" }) : !rows.length ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "sia-selection-panel__empty", children: "\u6682\u65E0\u5339\u914D\u9009\u9879" }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { style: { height: totalHeight, position: "relative" }, children: renderedRows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
@@ -2777,7 +2810,11 @@ function SelectionPanel({
|
|
|
2777
2810
|
tabIndex: -1,
|
|
2778
2811
|
"aria-selected": selected.has(option.value),
|
|
2779
2812
|
"aria-disabled": disabled || option.disabled || void 0,
|
|
2780
|
-
className: `sia-selection-panel__option${active === option.value ? " is-active" : ""}`,
|
|
2813
|
+
className: `sia-selection-panel__option${keyboardActive && active === option.value ? " is-active" : ""}`,
|
|
2814
|
+
"data-deselected-hover": deselectedHover === option.value || void 0,
|
|
2815
|
+
onPointerLeave: () => {
|
|
2816
|
+
if (deselectedHover === option.value) setDeselectedHover(void 0);
|
|
2817
|
+
},
|
|
2781
2818
|
onClick: (event) => {
|
|
2782
2819
|
if (!event.target.closest(".sia-checkbox")) toggle(option);
|
|
2783
2820
|
},
|
|
@@ -3229,7 +3266,8 @@ function defaultFilterOption(query, option) {
|
|
|
3229
3266
|
var Select = (0, import_react20.forwardRef)(function Select2({
|
|
3230
3267
|
options,
|
|
3231
3268
|
mode = "single",
|
|
3232
|
-
popupMode
|
|
3269
|
+
popupMode: popupModeProp,
|
|
3270
|
+
modalThreshold = 15,
|
|
3233
3271
|
modalConfig,
|
|
3234
3272
|
value,
|
|
3235
3273
|
defaultValue,
|
|
@@ -3238,7 +3276,7 @@ var Select = (0, import_react20.forwardRef)(function Select2({
|
|
|
3238
3276
|
placeholderMode,
|
|
3239
3277
|
size: sizeProp,
|
|
3240
3278
|
status = "default",
|
|
3241
|
-
allowClear =
|
|
3279
|
+
allowClear = true,
|
|
3242
3280
|
loading = false,
|
|
3243
3281
|
showSearch = false,
|
|
3244
3282
|
showValue = false,
|
|
@@ -3271,6 +3309,9 @@ var Select = (0, import_react20.forwardRef)(function Select2({
|
|
|
3271
3309
|
const searchRef = (0, import_react20.useRef)(null);
|
|
3272
3310
|
const listRef = (0, import_react20.useRef)(null);
|
|
3273
3311
|
const [open, setOpen] = (0, import_react20.useState)(false);
|
|
3312
|
+
const automaticMode = popupModeProp ?? (options.length > modalThreshold ? "modal" : "dropdown");
|
|
3313
|
+
const [openedMode, setOpenedMode] = (0, import_react20.useState)(automaticMode);
|
|
3314
|
+
const popupMode = open ? openedMode : automaticMode;
|
|
3274
3315
|
const [modalValues, setModalValues] = (0, import_react20.useState)([]);
|
|
3275
3316
|
const [selectedOnly, setSelectedOnly] = (0, import_react20.useState)(false);
|
|
3276
3317
|
const [query, setQuery] = (0, import_react20.useState)("");
|
|
@@ -3342,9 +3383,10 @@ var Select = (0, import_react20.forwardRef)(function Select2({
|
|
|
3342
3383
|
}
|
|
3343
3384
|
function openDropdown() {
|
|
3344
3385
|
if (disabled || loading) return;
|
|
3386
|
+
setOpenedMode(automaticMode);
|
|
3345
3387
|
const selectedIndex = filteredOptions.findIndex((option) => selectedValueSet.has(option.value) && !option.disabled);
|
|
3346
3388
|
setActiveIndex(selectedIndex >= 0 ? selectedIndex : firstEnabledIndex());
|
|
3347
|
-
if (
|
|
3389
|
+
if (automaticMode === "modal") {
|
|
3348
3390
|
setModalValues([...selectedValues]);
|
|
3349
3391
|
setSelectedOnly(false);
|
|
3350
3392
|
}
|
|
@@ -3631,6 +3673,7 @@ var Select = (0, import_react20.forwardRef)(function Select2({
|
|
|
3631
3673
|
value: modalValues,
|
|
3632
3674
|
onChange: setModalValues,
|
|
3633
3675
|
multiple,
|
|
3676
|
+
allowDeselect: allowClear,
|
|
3634
3677
|
selectedOnly,
|
|
3635
3678
|
showValue,
|
|
3636
3679
|
showSearch: false,
|
|
@@ -3774,7 +3817,12 @@ function UploadDragger({ hint = "\u652F\u6301\u5355\u4E2A\u6216\u6279\u91CF\u4E0
|
|
|
3774
3817
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { children: hint })
|
|
3775
3818
|
] }) });
|
|
3776
3819
|
}
|
|
3777
|
-
var Upload = Object.assign(UploadRoot, {
|
|
3820
|
+
var Upload = Object.assign(UploadRoot, {
|
|
3821
|
+
/** 支持拖入文件上传的区域组件。 */
|
|
3822
|
+
Dragger: UploadDragger,
|
|
3823
|
+
/** beforeUpload 返回此标记时忽略该文件,不加入上传列表。 */
|
|
3824
|
+
LIST_IGNORE
|
|
3825
|
+
});
|
|
3778
3826
|
|
|
3779
3827
|
// src/components/Message.tsx
|
|
3780
3828
|
var import_client3 = require("react-dom/client");
|
|
@@ -3854,12 +3902,19 @@ function shortcut(type) {
|
|
|
3854
3902
|
return (content, duration) => openMessage({ content, duration, type });
|
|
3855
3903
|
}
|
|
3856
3904
|
var message = {
|
|
3905
|
+
/** 直接打开实例,返回可用于更新或关闭的操作句柄。 */
|
|
3857
3906
|
open: openMessage,
|
|
3907
|
+
/** 显示普通信息提示。 */
|
|
3858
3908
|
info: shortcut("info"),
|
|
3909
|
+
/** 显示成功提示。 */
|
|
3859
3910
|
success: shortcut("success"),
|
|
3911
|
+
/** 显示警告提示。 */
|
|
3860
3912
|
warning: shortcut("warning"),
|
|
3913
|
+
/** 显示错误提示。 */
|
|
3861
3914
|
error: shortcut("error"),
|
|
3915
|
+
/** 显示持续加载提示。 */
|
|
3862
3916
|
loading: shortcut("loading"),
|
|
3917
|
+
/** 关闭指定实例;未指定标识时关闭所有实例。 */
|
|
3863
3918
|
destroy(key) {
|
|
3864
3919
|
if (key !== void 0) {
|
|
3865
3920
|
closeMessage(key);
|
|
@@ -3867,6 +3922,7 @@ var message = {
|
|
|
3867
3922
|
}
|
|
3868
3923
|
[...messageItems].forEach((item) => closeMessage(item.key));
|
|
3869
3924
|
},
|
|
3925
|
+
/** 配置消息默认持续时间和最大同时显示数量。 */
|
|
3870
3926
|
config(config) {
|
|
3871
3927
|
if (config.duration !== void 0) defaultDuration = config.duration;
|
|
3872
3928
|
if (config.maxCount !== void 0) maxCount = Math.max(1, config.maxCount);
|
|
@@ -4106,7 +4162,16 @@ function Link({ disabled, className = "", onClick, href, target, rel, ...props }
|
|
|
4106
4162
|
function TypographyRoot({ className = "", ...props }) {
|
|
4107
4163
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { ...props, className: `sia-typography ${className}`.trim() });
|
|
4108
4164
|
}
|
|
4109
|
-
var Typography = Object.assign(TypographyRoot, {
|
|
4165
|
+
var Typography = Object.assign(TypographyRoot, {
|
|
4166
|
+
/** 语义化标题,支持标题级别、复制和编辑。 */
|
|
4167
|
+
Title,
|
|
4168
|
+
/** 行内文本,支持强调、复制、编辑和省略。 */
|
|
4169
|
+
Text,
|
|
4170
|
+
/** 段落文本,支持复制、编辑和省略。 */
|
|
4171
|
+
Paragraph,
|
|
4172
|
+
/** 具有排版样式的链接。 */
|
|
4173
|
+
Link
|
|
4174
|
+
});
|
|
4110
4175
|
|
|
4111
4176
|
// src/components/FloatButton.tsx
|
|
4112
4177
|
var import_react24 = require("react");
|
|
@@ -4237,7 +4302,12 @@ function FloatButtonBackTop({ target, visibilityHeight = 400, behavior = "smooth
|
|
|
4237
4302
|
element?.scrollTo({ top: 0, behavior: window.matchMedia("(prefers-reduced-motion: reduce)").matches ? "auto" : behavior });
|
|
4238
4303
|
} });
|
|
4239
4304
|
}
|
|
4240
|
-
var FloatButton2 = Object.assign(FloatButtonRoot, {
|
|
4305
|
+
var FloatButton2 = Object.assign(FloatButtonRoot, {
|
|
4306
|
+
/** 组合多个子项并统一管理布局或选择状态。 */
|
|
4307
|
+
Group: FloatButtonGroup,
|
|
4308
|
+
/** 滚动超过指定距离后显示的返回顶部按钮。 */
|
|
4309
|
+
BackTop: FloatButtonBackTop
|
|
4310
|
+
});
|
|
4241
4311
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4242
4312
|
0 && (module.exports = {
|
|
4243
4313
|
Breadcrumb,
|
package/dist/core.css
CHANGED
|
@@ -7377,6 +7377,14 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
7377
7377
|
cursor: not-allowed;
|
|
7378
7378
|
opacity: .55;
|
|
7379
7379
|
}
|
|
7380
|
+
.sia-dropdown__trigger-content {
|
|
7381
|
+
display: inline-flex;
|
|
7382
|
+
align-items: center;
|
|
7383
|
+
gap: 8px;
|
|
7384
|
+
}
|
|
7385
|
+
.sia-dropdown__trigger-icon {
|
|
7386
|
+
flex: none;
|
|
7387
|
+
}
|
|
7380
7388
|
.sia-dropdown__context-anchor {
|
|
7381
7389
|
position: fixed;
|
|
7382
7390
|
width: 0;
|
|
@@ -7514,6 +7522,9 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
7514
7522
|
gap: 4px;
|
|
7515
7523
|
white-space: nowrap;
|
|
7516
7524
|
}
|
|
7525
|
+
.sia-pagination__current-count {
|
|
7526
|
+
white-space: nowrap;
|
|
7527
|
+
}
|
|
7517
7528
|
.sia-pagination__size-select.sia-select {
|
|
7518
7529
|
width: 94px;
|
|
7519
7530
|
}
|
|
@@ -8529,6 +8540,12 @@ body > .sia-popup-portal[data-sia-popup-layer] {
|
|
|
8529
8540
|
position: relative;
|
|
8530
8541
|
display: inline-flex;
|
|
8531
8542
|
}
|
|
8543
|
+
.sia-floating.sia-table__cell-tooltip {
|
|
8544
|
+
display: block;
|
|
8545
|
+
min-width: 0;
|
|
8546
|
+
overflow: hidden;
|
|
8547
|
+
text-overflow: ellipsis;
|
|
8548
|
+
}
|
|
8532
8549
|
.sia-floating__overlay {
|
|
8533
8550
|
--sia-floating-color: rgb(24 24 27 / 94%);
|
|
8534
8551
|
--sia-floating-arrow-border: transparent;
|
|
@@ -9579,7 +9596,7 @@ button.sia-treemap__tile:focus-visible,
|
|
|
9579
9596
|
min-width: 0;
|
|
9580
9597
|
font: inherit;
|
|
9581
9598
|
}
|
|
9582
|
-
.sia-selection-panel__option:hover,
|
|
9599
|
+
.sia-selection-panel__option:hover:not([data-deselected-hover=true]),
|
|
9583
9600
|
.sia-selection-panel__option.is-active {
|
|
9584
9601
|
background: var(--sia-color-fill-secondary, #f2f5f8);
|
|
9585
9602
|
}
|
package/dist/core.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { h as Breadcrumb, i as BreadcrumbItem, j as BreadcrumbProps, k as Button, B as ButtonProps, c as ButtonSize, l as ButtonVariant, n as Card, o as CardAccent, p as CardProps, t as Collapse, u as CollapseItem, v as CollapseKey, w as CollapseProps, H as FilledIconName, I as FloatButton, J as FloatButtonBackTopProps, K as FloatButtonGroupProps, L as FloatButtonProps, N as FloatButtonShape, S as Icon, U as IconName, V as IconProps, W as IconVariant, a0 as Input, a1 as InputProps, a8 as MessageConfig, a9 as MessageHandle, aa as MessageKey, ab as MessageType, ac as Modal, b as ModalActionResult, M as ModalOpenConfig, ad as ModalProps, ae as ModalType, a as OverlayApiHandle, am as Progress, an as ProgressProps, ao as ProgressStatus, ar as Segmented, as as SegmentedOption, at as SegmentedProps, au as SegmentedValue, aB as TabItem, aC as Tabs, aE as TabsOrientation, aF as TabsPosition, aG as TabsProps, aH as TabsType, aI as Tag, aJ as TagProps, T as TagStatus, aK as TagVariant, aY as Typography, aZ as TypographyLinkProps, a_ as TypographyProps, a$ as TypographyTitleProps, b0 as TypographyType, b1 as Upload, b2 as UploadChangeInfo, b3 as UploadDraggerProps, b4 as UploadFile, b5 as UploadFileStatus, b6 as UploadProps, b7 as UploadRequestOptions, bb as message } from './core-C5OnrCi4.cjs';
|
|
2
|
+
export { c as Select, S as SelectOption, b as SelectProps, e as SelectValue } from './Select-4hGJt3RJ.cjs';
|
|
3
3
|
import 'react';
|
|
4
|
-
import './shared-
|
|
4
|
+
import './shared-Bx4B28Wh.cjs';
|
package/dist/core.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { h as Breadcrumb, i as BreadcrumbItem, j as BreadcrumbProps, k as Button, B as ButtonProps, c as ButtonSize, l as ButtonVariant, n as Card, o as CardAccent, p as CardProps, t as Collapse, u as CollapseItem, v as CollapseKey, w as CollapseProps, H as FilledIconName, I as FloatButton, J as FloatButtonBackTopProps, K as FloatButtonGroupProps, L as FloatButtonProps, N as FloatButtonShape, S as Icon, U as IconName, V as IconProps, W as IconVariant, a0 as Input, a1 as InputProps, a8 as MessageConfig, a9 as MessageHandle, aa as MessageKey, ab as MessageType, ac as Modal, b as ModalActionResult, M as ModalOpenConfig, ad as ModalProps, ae as ModalType, a as OverlayApiHandle, am as Progress, an as ProgressProps, ao as ProgressStatus, ar as Segmented, as as SegmentedOption, at as SegmentedProps, au as SegmentedValue, aB as TabItem, aC as Tabs, aE as TabsOrientation, aF as TabsPosition, aG as TabsProps, aH as TabsType, aI as Tag, aJ as TagProps, T as TagStatus, aK as TagVariant, aY as Typography, aZ as TypographyLinkProps, a_ as TypographyProps, a$ as TypographyTitleProps, b0 as TypographyType, b1 as Upload, b2 as UploadChangeInfo, b3 as UploadDraggerProps, b4 as UploadFile, b5 as UploadFileStatus, b6 as UploadProps, b7 as UploadRequestOptions, bb as message } from './core-DeZknKwc.js';
|
|
2
|
+
export { c as Select, S as SelectOption, b as SelectProps, e as SelectValue } from './Select-BNSE67xn.js';
|
|
3
3
|
import 'react';
|
|
4
|
-
import './shared-
|
|
4
|
+
import './shared-Bx4B28Wh.js';
|
package/dist/core.js
CHANGED
|
@@ -9,17 +9,17 @@ import {
|
|
|
9
9
|
Typography,
|
|
10
10
|
Upload,
|
|
11
11
|
message
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7RNS52YG.js";
|
|
13
13
|
import "./chunk-YT6E3X2K.js";
|
|
14
14
|
import {
|
|
15
15
|
Modal,
|
|
16
16
|
Select
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3TRRBMXY.js";
|
|
18
18
|
import {
|
|
19
19
|
Icon,
|
|
20
20
|
Input,
|
|
21
21
|
Segmented
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-KLI65JVD.js";
|
|
23
23
|
import {
|
|
24
24
|
Button
|
|
25
25
|
} from "./chunk-TZGUBGA4.js";
|