@sia.soul/sia-react-ui 0.1.114 → 0.1.116
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-Cf0xz1Tg.d.cts → Select-BAFXKVZB.d.cts} +1 -1
- package/dist/{Select-BddM4uXC.d.ts → Select-vjX7B63I.d.ts} +1 -1
- package/dist/{chunk-7KNHBJZX.js → chunk-7PPE6DJO.js} +10 -3
- package/dist/{chunk-6CII5JCT.js → chunk-CVIFJLW6.js} +1 -1
- package/dist/{chunk-DUOOIPWH.js → chunk-D2H37DUL.js} +7 -4
- package/dist/{chunk-NKENBSLP.js → chunk-MKCU5S77.js} +1 -1
- package/dist/{chunk-IOVN3QL7.js → chunk-SATXB6X4.js} +31 -2
- package/dist/{core-CEaTbhWd.d.cts → core-CCb4CoSP.d.cts} +18 -7
- package/dist/{core-C6muCCSS.d.ts → core-CJnRQZkv.d.ts} +18 -7
- package/dist/core.cjs +40 -4
- package/dist/core.css +60 -2
- package/dist/core.d.cts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/core.js +3 -3
- package/dist/game.css +13 -0
- package/dist/index.cjs +851 -720
- package/dist/index.css +91 -2
- package/dist/index.d.cts +18 -10
- package/dist/index.d.ts +18 -10
- package/dist/index.js +257 -165
- package/dist/rich-text-editor.cjs +31 -2
- package/dist/rich-text-editor.js +2 -2
- package/dist/{select-date-range-yGDEA1RP.d.ts → select-date-range-C9jlUrCX.d.ts} +1 -1
- package/dist/{select-date-range-Cm5o2xPp.d.cts → select-date-range-CIiI0F5o.d.cts} +1 -1
- package/dist/select-date-range.cjs +9 -2
- package/dist/select-date-range.d.cts +2 -2
- package/dist/select-date-range.d.ts +2 -2
- package/dist/select-date-range.js +3 -3
- package/package.json +1 -1
|
@@ -269,7 +269,7 @@ interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "def
|
|
|
269
269
|
*/
|
|
270
270
|
notFoundContent?: ReactNode;
|
|
271
271
|
}
|
|
272
|
-
/**
|
|
272
|
+
/** 选择器组件。下拉面板每次展开自动定位到列表顺序中的第一个已选项,支持普通和虚拟列表;未选中时从顶部显示。展开时 Escape 只收起选择器,不关闭外层弹框或抽屉。 */
|
|
273
273
|
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
|
|
274
274
|
|
|
275
275
|
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 };
|
|
@@ -269,7 +269,7 @@ interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "def
|
|
|
269
269
|
*/
|
|
270
270
|
notFoundContent?: ReactNode;
|
|
271
271
|
}
|
|
272
|
-
/**
|
|
272
|
+
/** 选择器组件。下拉面板每次展开自动定位到列表顺序中的第一个已选项,支持普通和虚拟列表;未选中时从顶部显示。展开时 Escape 只收起选择器,不关闭外层弹框或抽屉。 */
|
|
273
273
|
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
|
|
274
274
|
|
|
275
275
|
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 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Dropdown,
|
|
3
3
|
Input
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SATXB6X4.js";
|
|
5
5
|
import {
|
|
6
6
|
Icon,
|
|
7
7
|
Modal
|
|
@@ -1678,8 +1678,15 @@ var Select = forwardRef2(function Select2({
|
|
|
1678
1678
|
function clearSelection() {
|
|
1679
1679
|
setCurrentValue(multiple ? [] : null);
|
|
1680
1680
|
}
|
|
1681
|
+
function handleDropdownEscape(event) {
|
|
1682
|
+
if (event.key !== "Escape" || !open || popupMode !== "dropdown") return false;
|
|
1683
|
+
event.preventDefault();
|
|
1684
|
+
event.stopPropagation();
|
|
1685
|
+
closeDropdown();
|
|
1686
|
+
return true;
|
|
1687
|
+
}
|
|
1681
1688
|
function handleInteractionKeyDown(event, fromSearch = false) {
|
|
1682
|
-
if (popupMode === "modal" && open) return;
|
|
1689
|
+
if (handleDropdownEscape(event) || popupMode === "modal" && open) return;
|
|
1683
1690
|
if (event.key === "ArrowDown" || event.key === "ArrowUp") {
|
|
1684
1691
|
event.preventDefault();
|
|
1685
1692
|
if (!open) openDropdown();
|
|
@@ -1784,7 +1791,7 @@ var Select = forwardRef2(function Select2({
|
|
|
1784
1791
|
}
|
|
1785
1792
|
),
|
|
1786
1793
|
allowClear && hasValue && !disabled && !loading ? /* @__PURE__ */ jsx5("button", { className: "sia-select__clear", type: "button", "aria-label": "\u6E05\u7A7A\u9009\u62E9", onClick: clearValue, children: /* @__PURE__ */ jsx5(Icon, { name: "circle-close", variant: "filled", size: 15 }) }) : null,
|
|
1787
|
-
/* @__PURE__ */ jsxs5(PopupPortal, { ref: popupRef, anchorRef: rootRef, open: open && popupMode === "dropdown", style: { fontSize: dropdownFontSize }, className: `sia-select__dropdown${filteredOptions.length === 0 && !canSubmitInput ? " sia-select__dropdown--empty" : ""}`, children: [
|
|
1794
|
+
/* @__PURE__ */ jsxs5(PopupPortal, { ref: popupRef, onKeyDown: handleDropdownEscape, anchorRef: rootRef, open: open && popupMode === "dropdown", style: { fontSize: dropdownFontSize }, className: `sia-select__dropdown${filteredOptions.length === 0 && !canSubmitInput ? " sia-select__dropdown--empty" : ""}`, children: [
|
|
1788
1795
|
/* @__PURE__ */ jsx5(FloatingScrollbarProvider, { targetRef: listRef }),
|
|
1789
1796
|
showSearch || allowInput ? /* @__PURE__ */ jsxs5("label", { className: "sia-select__search", children: [
|
|
1790
1797
|
/* @__PURE__ */ jsx5(Icon, { name: "search", size: 15 }),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Popover,
|
|
3
3
|
Tooltip
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7PPE6DJO.js";
|
|
5
5
|
import {
|
|
6
6
|
Dropdown
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SATXB6X4.js";
|
|
8
8
|
import {
|
|
9
9
|
TextArea
|
|
10
10
|
} from "./chunk-SCEHVGKV.js";
|
|
@@ -1124,7 +1124,7 @@ function ImagePreview({ open, src, alt = "", onOpenChange }) {
|
|
|
1124
1124
|
] })
|
|
1125
1125
|
] }), document.body);
|
|
1126
1126
|
}
|
|
1127
|
-
function Image({ fallback, placeholder, preview = true, rootClassName = "", className = "", src, alt = "", onError, style, ...props }) {
|
|
1127
|
+
function Image({ fallback, placeholder, preview = true, rootClassName = "", className = "", src, alt = "", onLoad, onError, style, ...props }) {
|
|
1128
1128
|
const config = typeof preview === "object" ? preview : {};
|
|
1129
1129
|
const controlled = typeof preview === "object" && preview.open !== void 0;
|
|
1130
1130
|
const [internalOpen, setInternalOpen] = useState5(false);
|
|
@@ -1143,7 +1143,10 @@ function Image({ fallback, placeholder, preview = true, rootClassName = "", clas
|
|
|
1143
1143
|
}
|
|
1144
1144
|
return /* @__PURE__ */ jsxs6("span", { className: `sia-image ${rootClassName}`.trim(), style: rootStyle, children: [
|
|
1145
1145
|
!loaded && placeholder ? /* @__PURE__ */ jsx6("span", { className: "sia-image__placeholder", children: placeholder }) : null,
|
|
1146
|
-
/* @__PURE__ */ jsx6("img", { ...withTitleTooltip(props), src: displaySrc, alt, className, onLoad: (
|
|
1146
|
+
/* @__PURE__ */ jsx6("img", { ...withTitleTooltip(props), src: displaySrc, alt, className, onLoad: (event) => {
|
|
1147
|
+
setLoaded(true);
|
|
1148
|
+
onLoad?.(event);
|
|
1149
|
+
}, onError: (event) => {
|
|
1147
1150
|
if (!failed && fallback) setFailed(true);
|
|
1148
1151
|
onError?.(event);
|
|
1149
1152
|
} }),
|
|
@@ -116,12 +116,13 @@ function MenuEntry({
|
|
|
116
116
|
...withTitleTooltip({ title: collapsed ? item.title ?? (typeof item.label === "string" ? item.label : void 0) : item.title }),
|
|
117
117
|
disabled: item.disabled,
|
|
118
118
|
"aria-current": isSelected ? "page" : void 0,
|
|
119
|
+
"data-menu-key": item.key,
|
|
119
120
|
"data-applied": item.applied || void 0,
|
|
120
121
|
"aria-expanded": hasChildren ? isOpen : void 0,
|
|
121
122
|
onClick: (event) => hasChildren ? props.toggle(item.key) : props.select(item, path, event),
|
|
122
123
|
children: [
|
|
123
124
|
reserveIcon ? /* @__PURE__ */ jsx("span", { className: "sia-menu__icon", style: item.iconSize ? { width: item.iconSize, height: item.iconSize, flexBasis: item.iconSize } : void 0, "aria-hidden": !item.icon || void 0, children: item.icon }) : null,
|
|
124
|
-
item.applied ? /* @__PURE__ */ jsx("span", { className: "sia-menu__applied", role: "img", "aria-label": item.appliedLabel ?? "\u5F53\u524D\u4F7F\u7528", children: /* @__PURE__ */ jsx(Icon, { name: "circle-check", size: 32 }) }) : null,
|
|
125
|
+
item.applied ? /* @__PURE__ */ jsx("span", { className: "sia-menu__applied", role: "img", "aria-label": item.appliedLabel ?? "\u5F53\u524D\u4F7F\u7528", children: /* @__PURE__ */ jsx(Icon, { name: "circle-check", variant: "filled", size: 32 }) }) : null,
|
|
125
126
|
!collapsed ? /* @__PURE__ */ jsx("span", { className: "sia-menu__label", children: item.label }) : null,
|
|
126
127
|
!collapsed && item.extra ? /* @__PURE__ */ jsx("span", { className: "sia-menu__extra", children: item.extra }) : null,
|
|
127
128
|
!collapsed && hasChildren ? /* @__PURE__ */ jsx(Icon, { className: "sia-menu__expand-icon", name: "chevron-down", size: 13 }) : null
|
|
@@ -167,8 +168,10 @@ function MenuLevel({
|
|
|
167
168
|
function Menu({
|
|
168
169
|
items,
|
|
169
170
|
mode = "vertical",
|
|
171
|
+
gridColumns = 2,
|
|
170
172
|
theme = "light",
|
|
171
173
|
selectedKeys,
|
|
174
|
+
autoScrollSelected = false,
|
|
172
175
|
defaultSelectedKeys = [],
|
|
173
176
|
openKeys,
|
|
174
177
|
defaultOpenKeys = [],
|
|
@@ -182,12 +185,37 @@ function Menu({
|
|
|
182
185
|
onDeselect,
|
|
183
186
|
onOpenChange,
|
|
184
187
|
className = "",
|
|
188
|
+
style,
|
|
185
189
|
...rest
|
|
186
190
|
}) {
|
|
187
191
|
const menuId = useId();
|
|
188
192
|
const rootRef = useRef(null);
|
|
189
193
|
const [selected, setSelected] = useControllableState({ value: selectedKeys, defaultValue: defaultSelectedKeys });
|
|
190
194
|
const [open, setOpen] = useControllableState({ value: openKeys, defaultValue: defaultOpenKeys, onChange: (next) => onOpenChange?.([...next]) });
|
|
195
|
+
const revealedKey = useRef();
|
|
196
|
+
const firstSelected = selected[0];
|
|
197
|
+
useLayoutEffect(() => {
|
|
198
|
+
if (!autoScrollSelected || firstSelected === void 0) {
|
|
199
|
+
revealedKey.current = void 0;
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
const root = rootRef.current;
|
|
203
|
+
if (!root || revealedKey.current === firstSelected || mode === "horizontal") return;
|
|
204
|
+
const reveal = () => {
|
|
205
|
+
if (revealedKey.current === firstSelected || root.clientHeight === 0) return;
|
|
206
|
+
const target = Array.from(root.querySelectorAll(".sia-menu__item")).find((element) => element.dataset.menuKey === firstSelected && element.getBoundingClientRect().height > 0);
|
|
207
|
+
if (!target) return;
|
|
208
|
+
const bounds = root.getBoundingClientRect(), item = target.getBoundingClientRect();
|
|
209
|
+
const top = bounds.top + root.clientTop, bottom = top + root.clientHeight;
|
|
210
|
+
if (item.top < top || item.bottom > bottom)
|
|
211
|
+
root.scrollTop += item.top - top - Math.max(0, (root.clientHeight - item.height) / 2);
|
|
212
|
+
revealedKey.current = firstSelected;
|
|
213
|
+
};
|
|
214
|
+
reveal();
|
|
215
|
+
const observer = new ResizeObserver(reveal);
|
|
216
|
+
observer.observe(root);
|
|
217
|
+
return () => observer.disconnect();
|
|
218
|
+
}, [autoScrollSelected, firstSelected, items, mode]);
|
|
191
219
|
useEffect(() => {
|
|
192
220
|
if (mode === "inline" || !open.length) return void 0;
|
|
193
221
|
const closeOutside = (event) => {
|
|
@@ -214,7 +242,8 @@ function Menu({
|
|
|
214
242
|
else onSelect?.({ ...info, selectedKeys: [...next] });
|
|
215
243
|
if (mode !== "inline") setOpen([]);
|
|
216
244
|
}
|
|
217
|
-
|
|
245
|
+
const gridStyle = mode === "grid" ? { "--sia-menu-grid-columns": gridColumns === "auto" ? "repeat(auto-fill, minmax(88px, 1fr))" : `repeat(${Number.isFinite(gridColumns) ? Math.max(1, Math.floor(Number(gridColumns))) : 2}, minmax(0, 1fr))` } : {};
|
|
246
|
+
return /* @__PURE__ */ jsx("ul", { ref: rootRef, className: `sia-menu sia-menu--${mode} sia-menu--${theme}${inlineCollapsed ? " sia-menu--collapsed" : ""} ${className}`.trim(), role: "menu", ...withTitleTooltip(rest), style: { ...gridStyle, ...style }, "data-sia-menu-owner": menuId, children: /* @__PURE__ */ jsx(MenuLevel, { items, level: 0, parents: [], props: { menuId, mode, theme, multiple, selectable, inlineCollapsed, inlineIndent, triggerSubMenuAction, selected, open, select, toggle } }) });
|
|
218
247
|
}
|
|
219
248
|
function Steps({ items, current = 0, initial = 0, direction = "horizontal", type = "default", size = "default", status = "process", progressDot = false, onChange, className = "", ...props }) {
|
|
220
249
|
return /* @__PURE__ */ jsx("div", { className: `sia-steps sia-steps--${direction} sia-steps--${type} sia-steps--${size} ${className}`.trim(), ...withTitleTooltip(props), children: items.map((item, rawIndex) => {
|
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
|
2
2
|
import { ReactNode, HTMLAttributes, CSSProperties, MouseEvent, ReactElement, ImgHTMLAttributes, InputHTMLAttributes, MouseEventHandler, AnchorHTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
3
3
|
import { B as ButtonProps, b as Button } from './Button-O_pNB3SQ.cjs';
|
|
4
4
|
import { C as ControlSize, a as ControlStatus, I as InputPlaceholderMode } from './shared-Bx4B28Wh.cjs';
|
|
5
|
-
import './Select-
|
|
5
|
+
import './Select-BAFXKVZB.cjs';
|
|
6
6
|
|
|
7
7
|
/** 单个工具栏操作及其下拉菜单。 */
|
|
8
8
|
interface ToolbarItem {
|
|
@@ -486,8 +486,8 @@ interface TagProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
486
486
|
/** 标记状态或筛选条件的标签,支持语义配色、自定义边框色或背景色及关闭操作。 */
|
|
487
487
|
declare function Tag({ size: sizeProp, color, status, compact, variant, icon, closable, closeOnHover, disabled, onClose, className, children, style, ...props }: TagProps): react.JSX.Element;
|
|
488
488
|
|
|
489
|
-
/**
|
|
490
|
-
type MenuMode = "vertical" | "horizontal" | "inline";
|
|
489
|
+
/** 菜单排列模式;vertical 为纵向列表,horizontal 为横向菜单,inline 为内嵌子菜单,grid 为双列圆角卡片(图标在上、名称在下,子菜单以弹层展开)。 */
|
|
490
|
+
type MenuMode = "vertical" | "horizontal" | "inline" | "grid";
|
|
491
491
|
/** 菜单的亮色或暗色主题。 */
|
|
492
492
|
type MenuTheme = "light" | "dark";
|
|
493
493
|
/** 菜单的项目定义。 */
|
|
@@ -500,7 +500,7 @@ type MenuItem = {
|
|
|
500
500
|
icon?: ReactNode;
|
|
501
501
|
/** 图标槽的宽高,单位 px;未指定时沿用菜单图标尺寸变量。图片图标应传入与图片相同的尺寸,避免挤压。 */
|
|
502
502
|
iconSize?: number;
|
|
503
|
-
/**
|
|
503
|
+
/** 是否显示当前生效的实心圆形勾选标记,默认为 false;标记以92%不透明度显示,独立于 selectedKeys 的浏览选中状态,由业务在应用成功后更新。 */
|
|
504
504
|
applied?: boolean;
|
|
505
505
|
/** 生效水印的无障碍说明;默认为“当前使用”,仅 applied 为 true 时显示。 */
|
|
506
506
|
appliedLabel?: string;
|
|
@@ -533,10 +533,12 @@ interface MenuProps extends Omit<HTMLAttributes<HTMLUListElement>, "onClick" | "
|
|
|
533
533
|
/** 按展示顺序排列的项目配置。 */
|
|
534
534
|
items: readonly MenuItem[];
|
|
535
535
|
/**
|
|
536
|
-
*
|
|
536
|
+
* 展示或交互模式;grid 显示双列圆角卡片,图标居上、名称居下,保留选中和当前生效标记。
|
|
537
537
|
* @defaultValue "vertical"
|
|
538
538
|
*/
|
|
539
539
|
mode?: MenuMode;
|
|
540
|
+
/** grid 模式的列数,默认 2;正数取整且至少为 1,auto 按每列至少 88px 自动换列。通过 --sia-menu-grid-columns 传递到分组;style 中的同名变量可覆盖。其他模式不生效。 */
|
|
541
|
+
gridColumns?: number | "auto";
|
|
540
542
|
/**
|
|
541
543
|
组件的配色主题。
|
|
542
544
|
* @defaultValue "light"
|
|
@@ -544,6 +546,13 @@ interface MenuProps extends Omit<HTMLAttributes<HTMLUListElement>, "onClick" | "
|
|
|
544
546
|
theme?: MenuTheme;
|
|
545
547
|
/** 当前选中项目的标识集合;传入后由外部控制。 */
|
|
546
548
|
selectedKeys?: readonly string[];
|
|
549
|
+
/**
|
|
550
|
+
* 自动将首个选中项目滚动到菜单自身的可见区域,适用于可纵向滚动的列表、内嵌或网格菜单。
|
|
551
|
+
* 首次渲染、异步项目到达及首个选中标识改变时尝试定位;已完整可见时不滚动,超出时尽量居中。
|
|
552
|
+
* 仅调整菜单自身的滚动位置,不展开子菜单、不移动焦点;相同选中项的普通重渲染保留用户手动滚动位置。
|
|
553
|
+
* @defaultValue false
|
|
554
|
+
*/
|
|
555
|
+
autoScrollSelected?: boolean;
|
|
547
556
|
/**
|
|
548
557
|
* 非受控模式下初始选中的项目标识集合。
|
|
549
558
|
* @defaultValue []
|
|
@@ -597,7 +606,7 @@ interface MenuProps extends Omit<HTMLAttributes<HTMLUListElement>, "onClick" | "
|
|
|
597
606
|
onOpenChange?: (keys: string[]) => void;
|
|
598
607
|
}
|
|
599
608
|
/** 菜单组件。 */
|
|
600
|
-
declare function Menu({ items, mode, theme, selectedKeys, defaultSelectedKeys, openKeys, defaultOpenKeys, multiple, selectable, inlineCollapsed, inlineIndent, triggerSubMenuAction, onClick, onSelect, onDeselect, onOpenChange, className, ...rest }: MenuProps): react.JSX.Element;
|
|
609
|
+
declare function Menu({ items, mode, gridColumns, theme, selectedKeys, autoScrollSelected, defaultSelectedKeys, openKeys, defaultOpenKeys, multiple, selectable, inlineCollapsed, inlineIndent, triggerSubMenuAction, onClick, onSelect, onDeselect, onOpenChange, className, style, ...rest }: MenuProps): react.JSX.Element;
|
|
601
610
|
/** Step的状态类型。 */
|
|
602
611
|
type StepStatus = "wait" | "process" | "finish" | "error";
|
|
603
612
|
/** Step的项目定义。 */
|
|
@@ -1890,6 +1899,8 @@ interface ImagePreviewConfig {
|
|
|
1890
1899
|
}
|
|
1891
1900
|
/** 图片的属性配置。 */
|
|
1892
1901
|
interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
1902
|
+
/** 图片成功加载后触发,传入原生图片的 React 加载事件;在框架更新占位状态后调用,可用于恢复业务预览状态。 */
|
|
1903
|
+
onLoad?: ImgHTMLAttributes<HTMLImageElement>["onLoad"];
|
|
1893
1904
|
/** 资源加载失败时使用的替代内容或地址。 */
|
|
1894
1905
|
fallback?: string;
|
|
1895
1906
|
/** 未填写或未选择时的提示内容。 */
|
|
@@ -1906,7 +1917,7 @@ interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
|
1906
1917
|
rootClassName?: string;
|
|
1907
1918
|
}
|
|
1908
1919
|
/** 图片组件。 */
|
|
1909
|
-
declare function Image({ fallback, placeholder, preview, rootClassName, className, src, alt, onError, style, ...props }: ImageProps): react.JSX.Element;
|
|
1920
|
+
declare function Image({ fallback, placeholder, preview, rootClassName, className, src, alt, onLoad, onError, style, ...props }: ImageProps): react.JSX.Element;
|
|
1910
1921
|
|
|
1911
1922
|
/** 输入框的属性配置。 */
|
|
1912
1923
|
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "prefix" | "size"> {
|
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
|
2
2
|
import { ReactNode, HTMLAttributes, CSSProperties, MouseEvent, ReactElement, ImgHTMLAttributes, InputHTMLAttributes, MouseEventHandler, AnchorHTMLAttributes, ButtonHTMLAttributes } from 'react';
|
|
3
3
|
import { B as ButtonProps, b as Button } from './Button-BiL3Wjsd.js';
|
|
4
4
|
import { C as ControlSize, a as ControlStatus, I as InputPlaceholderMode } from './shared-Bx4B28Wh.js';
|
|
5
|
-
import './Select-
|
|
5
|
+
import './Select-vjX7B63I.js';
|
|
6
6
|
|
|
7
7
|
/** 单个工具栏操作及其下拉菜单。 */
|
|
8
8
|
interface ToolbarItem {
|
|
@@ -486,8 +486,8 @@ interface TagProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
486
486
|
/** 标记状态或筛选条件的标签,支持语义配色、自定义边框色或背景色及关闭操作。 */
|
|
487
487
|
declare function Tag({ size: sizeProp, color, status, compact, variant, icon, closable, closeOnHover, disabled, onClose, className, children, style, ...props }: TagProps): react.JSX.Element;
|
|
488
488
|
|
|
489
|
-
/**
|
|
490
|
-
type MenuMode = "vertical" | "horizontal" | "inline";
|
|
489
|
+
/** 菜单排列模式;vertical 为纵向列表,horizontal 为横向菜单,inline 为内嵌子菜单,grid 为双列圆角卡片(图标在上、名称在下,子菜单以弹层展开)。 */
|
|
490
|
+
type MenuMode = "vertical" | "horizontal" | "inline" | "grid";
|
|
491
491
|
/** 菜单的亮色或暗色主题。 */
|
|
492
492
|
type MenuTheme = "light" | "dark";
|
|
493
493
|
/** 菜单的项目定义。 */
|
|
@@ -500,7 +500,7 @@ type MenuItem = {
|
|
|
500
500
|
icon?: ReactNode;
|
|
501
501
|
/** 图标槽的宽高,单位 px;未指定时沿用菜单图标尺寸变量。图片图标应传入与图片相同的尺寸,避免挤压。 */
|
|
502
502
|
iconSize?: number;
|
|
503
|
-
/**
|
|
503
|
+
/** 是否显示当前生效的实心圆形勾选标记,默认为 false;标记以92%不透明度显示,独立于 selectedKeys 的浏览选中状态,由业务在应用成功后更新。 */
|
|
504
504
|
applied?: boolean;
|
|
505
505
|
/** 生效水印的无障碍说明;默认为“当前使用”,仅 applied 为 true 时显示。 */
|
|
506
506
|
appliedLabel?: string;
|
|
@@ -533,10 +533,12 @@ interface MenuProps extends Omit<HTMLAttributes<HTMLUListElement>, "onClick" | "
|
|
|
533
533
|
/** 按展示顺序排列的项目配置。 */
|
|
534
534
|
items: readonly MenuItem[];
|
|
535
535
|
/**
|
|
536
|
-
*
|
|
536
|
+
* 展示或交互模式;grid 显示双列圆角卡片,图标居上、名称居下,保留选中和当前生效标记。
|
|
537
537
|
* @defaultValue "vertical"
|
|
538
538
|
*/
|
|
539
539
|
mode?: MenuMode;
|
|
540
|
+
/** grid 模式的列数,默认 2;正数取整且至少为 1,auto 按每列至少 88px 自动换列。通过 --sia-menu-grid-columns 传递到分组;style 中的同名变量可覆盖。其他模式不生效。 */
|
|
541
|
+
gridColumns?: number | "auto";
|
|
540
542
|
/**
|
|
541
543
|
组件的配色主题。
|
|
542
544
|
* @defaultValue "light"
|
|
@@ -544,6 +546,13 @@ interface MenuProps extends Omit<HTMLAttributes<HTMLUListElement>, "onClick" | "
|
|
|
544
546
|
theme?: MenuTheme;
|
|
545
547
|
/** 当前选中项目的标识集合;传入后由外部控制。 */
|
|
546
548
|
selectedKeys?: readonly string[];
|
|
549
|
+
/**
|
|
550
|
+
* 自动将首个选中项目滚动到菜单自身的可见区域,适用于可纵向滚动的列表、内嵌或网格菜单。
|
|
551
|
+
* 首次渲染、异步项目到达及首个选中标识改变时尝试定位;已完整可见时不滚动,超出时尽量居中。
|
|
552
|
+
* 仅调整菜单自身的滚动位置,不展开子菜单、不移动焦点;相同选中项的普通重渲染保留用户手动滚动位置。
|
|
553
|
+
* @defaultValue false
|
|
554
|
+
*/
|
|
555
|
+
autoScrollSelected?: boolean;
|
|
547
556
|
/**
|
|
548
557
|
* 非受控模式下初始选中的项目标识集合。
|
|
549
558
|
* @defaultValue []
|
|
@@ -597,7 +606,7 @@ interface MenuProps extends Omit<HTMLAttributes<HTMLUListElement>, "onClick" | "
|
|
|
597
606
|
onOpenChange?: (keys: string[]) => void;
|
|
598
607
|
}
|
|
599
608
|
/** 菜单组件。 */
|
|
600
|
-
declare function Menu({ items, mode, theme, selectedKeys, defaultSelectedKeys, openKeys, defaultOpenKeys, multiple, selectable, inlineCollapsed, inlineIndent, triggerSubMenuAction, onClick, onSelect, onDeselect, onOpenChange, className, ...rest }: MenuProps): react.JSX.Element;
|
|
609
|
+
declare function Menu({ items, mode, gridColumns, theme, selectedKeys, autoScrollSelected, defaultSelectedKeys, openKeys, defaultOpenKeys, multiple, selectable, inlineCollapsed, inlineIndent, triggerSubMenuAction, onClick, onSelect, onDeselect, onOpenChange, className, style, ...rest }: MenuProps): react.JSX.Element;
|
|
601
610
|
/** Step的状态类型。 */
|
|
602
611
|
type StepStatus = "wait" | "process" | "finish" | "error";
|
|
603
612
|
/** Step的项目定义。 */
|
|
@@ -1890,6 +1899,8 @@ interface ImagePreviewConfig {
|
|
|
1890
1899
|
}
|
|
1891
1900
|
/** 图片的属性配置。 */
|
|
1892
1901
|
interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
1902
|
+
/** 图片成功加载后触发,传入原生图片的 React 加载事件;在框架更新占位状态后调用,可用于恢复业务预览状态。 */
|
|
1903
|
+
onLoad?: ImgHTMLAttributes<HTMLImageElement>["onLoad"];
|
|
1893
1904
|
/** 资源加载失败时使用的替代内容或地址。 */
|
|
1894
1905
|
fallback?: string;
|
|
1895
1906
|
/** 未填写或未选择时的提示内容。 */
|
|
@@ -1906,7 +1917,7 @@ interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
|
1906
1917
|
rootClassName?: string;
|
|
1907
1918
|
}
|
|
1908
1919
|
/** 图片组件。 */
|
|
1909
|
-
declare function Image({ fallback, placeholder, preview, rootClassName, className, src, alt, onError, style, ...props }: ImageProps): react.JSX.Element;
|
|
1920
|
+
declare function Image({ fallback, placeholder, preview, rootClassName, className, src, alt, onLoad, onError, style, ...props }: ImageProps): react.JSX.Element;
|
|
1910
1921
|
|
|
1911
1922
|
/** 输入框的属性配置。 */
|
|
1912
1923
|
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "prefix" | "size"> {
|
package/dist/core.cjs
CHANGED
|
@@ -1658,12 +1658,13 @@ function MenuEntry({
|
|
|
1658
1658
|
...withTitleTooltip({ title: collapsed ? item.title ?? (typeof item.label === "string" ? item.label : void 0) : item.title }),
|
|
1659
1659
|
disabled: item.disabled,
|
|
1660
1660
|
"aria-current": isSelected ? "page" : void 0,
|
|
1661
|
+
"data-menu-key": item.key,
|
|
1661
1662
|
"data-applied": item.applied || void 0,
|
|
1662
1663
|
"aria-expanded": hasChildren ? isOpen : void 0,
|
|
1663
1664
|
onClick: (event) => hasChildren ? props.toggle(item.key) : props.select(item, path, event),
|
|
1664
1665
|
children: [
|
|
1665
1666
|
reserveIcon ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "sia-menu__icon", style: item.iconSize ? { width: item.iconSize, height: item.iconSize, flexBasis: item.iconSize } : void 0, "aria-hidden": !item.icon || void 0, children: item.icon }) : null,
|
|
1666
|
-
item.applied ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "sia-menu__applied", role: "img", "aria-label": item.appliedLabel ?? "\u5F53\u524D\u4F7F\u7528", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "circle-check", size: 32 }) }) : null,
|
|
1667
|
+
item.applied ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "sia-menu__applied", role: "img", "aria-label": item.appliedLabel ?? "\u5F53\u524D\u4F7F\u7528", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { name: "circle-check", variant: "filled", size: 32 }) }) : null,
|
|
1667
1668
|
!collapsed ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "sia-menu__label", children: item.label }) : null,
|
|
1668
1669
|
!collapsed && item.extra ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "sia-menu__extra", children: item.extra }) : null,
|
|
1669
1670
|
!collapsed && hasChildren ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { className: "sia-menu__expand-icon", name: "chevron-down", size: 13 }) : null
|
|
@@ -1709,8 +1710,10 @@ function MenuLevel({
|
|
|
1709
1710
|
function Menu({
|
|
1710
1711
|
items,
|
|
1711
1712
|
mode = "vertical",
|
|
1713
|
+
gridColumns = 2,
|
|
1712
1714
|
theme = "light",
|
|
1713
1715
|
selectedKeys,
|
|
1716
|
+
autoScrollSelected = false,
|
|
1714
1717
|
defaultSelectedKeys = [],
|
|
1715
1718
|
openKeys,
|
|
1716
1719
|
defaultOpenKeys = [],
|
|
@@ -1724,12 +1727,37 @@ function Menu({
|
|
|
1724
1727
|
onDeselect,
|
|
1725
1728
|
onOpenChange,
|
|
1726
1729
|
className = "",
|
|
1730
|
+
style,
|
|
1727
1731
|
...rest
|
|
1728
1732
|
}) {
|
|
1729
1733
|
const menuId = (0, import_react6.useId)();
|
|
1730
1734
|
const rootRef = (0, import_react6.useRef)(null);
|
|
1731
1735
|
const [selected, setSelected] = useControllableState({ value: selectedKeys, defaultValue: defaultSelectedKeys });
|
|
1732
1736
|
const [open, setOpen] = useControllableState({ value: openKeys, defaultValue: defaultOpenKeys, onChange: (next) => onOpenChange?.([...next]) });
|
|
1737
|
+
const revealedKey = (0, import_react6.useRef)();
|
|
1738
|
+
const firstSelected = selected[0];
|
|
1739
|
+
(0, import_react6.useLayoutEffect)(() => {
|
|
1740
|
+
if (!autoScrollSelected || firstSelected === void 0) {
|
|
1741
|
+
revealedKey.current = void 0;
|
|
1742
|
+
return;
|
|
1743
|
+
}
|
|
1744
|
+
const root = rootRef.current;
|
|
1745
|
+
if (!root || revealedKey.current === firstSelected || mode === "horizontal") return;
|
|
1746
|
+
const reveal = () => {
|
|
1747
|
+
if (revealedKey.current === firstSelected || root.clientHeight === 0) return;
|
|
1748
|
+
const target = Array.from(root.querySelectorAll(".sia-menu__item")).find((element) => element.dataset.menuKey === firstSelected && element.getBoundingClientRect().height > 0);
|
|
1749
|
+
if (!target) return;
|
|
1750
|
+
const bounds = root.getBoundingClientRect(), item = target.getBoundingClientRect();
|
|
1751
|
+
const top = bounds.top + root.clientTop, bottom = top + root.clientHeight;
|
|
1752
|
+
if (item.top < top || item.bottom > bottom)
|
|
1753
|
+
root.scrollTop += item.top - top - Math.max(0, (root.clientHeight - item.height) / 2);
|
|
1754
|
+
revealedKey.current = firstSelected;
|
|
1755
|
+
};
|
|
1756
|
+
reveal();
|
|
1757
|
+
const observer = new ResizeObserver(reveal);
|
|
1758
|
+
observer.observe(root);
|
|
1759
|
+
return () => observer.disconnect();
|
|
1760
|
+
}, [autoScrollSelected, firstSelected, items, mode]);
|
|
1733
1761
|
(0, import_react6.useEffect)(() => {
|
|
1734
1762
|
if (mode === "inline" || !open.length) return void 0;
|
|
1735
1763
|
const closeOutside = (event) => {
|
|
@@ -1756,7 +1784,8 @@ function Menu({
|
|
|
1756
1784
|
else onSelect?.({ ...info, selectedKeys: [...next] });
|
|
1757
1785
|
if (mode !== "inline") setOpen([]);
|
|
1758
1786
|
}
|
|
1759
|
-
|
|
1787
|
+
const gridStyle = mode === "grid" ? { "--sia-menu-grid-columns": gridColumns === "auto" ? "repeat(auto-fill, minmax(88px, 1fr))" : `repeat(${Number.isFinite(gridColumns) ? Math.max(1, Math.floor(Number(gridColumns))) : 2}, minmax(0, 1fr))` } : {};
|
|
1788
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("ul", { ref: rootRef, className: `sia-menu sia-menu--${mode} sia-menu--${theme}${inlineCollapsed ? " sia-menu--collapsed" : ""} ${className}`.trim(), role: "menu", ...withTitleTooltip(rest), style: { ...gridStyle, ...style }, "data-sia-menu-owner": menuId, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(MenuLevel, { items, level: 0, parents: [], props: { menuId, mode, theme, multiple, selectable, inlineCollapsed, inlineIndent, triggerSubMenuAction, selected, open, select, toggle } }) });
|
|
1760
1789
|
}
|
|
1761
1790
|
function Segmented({ options, value, defaultValue, variant = "default", shape = "capsule", size: sizeProp, block = false, vertical = false, disabled = false, onChange, className = "", onKeyDown, ...props }) {
|
|
1762
1791
|
const size = useControlSize(sizeProp);
|
|
@@ -4573,8 +4602,15 @@ var Select = (0, import_react25.forwardRef)(function Select2({
|
|
|
4573
4602
|
function clearSelection() {
|
|
4574
4603
|
setCurrentValue(multiple ? [] : null);
|
|
4575
4604
|
}
|
|
4605
|
+
function handleDropdownEscape(event) {
|
|
4606
|
+
if (event.key !== "Escape" || !open || popupMode !== "dropdown") return false;
|
|
4607
|
+
event.preventDefault();
|
|
4608
|
+
event.stopPropagation();
|
|
4609
|
+
closeDropdown();
|
|
4610
|
+
return true;
|
|
4611
|
+
}
|
|
4576
4612
|
function handleInteractionKeyDown(event, fromSearch = false) {
|
|
4577
|
-
if (popupMode === "modal" && open) return;
|
|
4613
|
+
if (handleDropdownEscape(event) || popupMode === "modal" && open) return;
|
|
4578
4614
|
if (event.key === "ArrowDown" || event.key === "ArrowUp") {
|
|
4579
4615
|
event.preventDefault();
|
|
4580
4616
|
if (!open) openDropdown();
|
|
@@ -4679,7 +4715,7 @@ var Select = (0, import_react25.forwardRef)(function Select2({
|
|
|
4679
4715
|
}
|
|
4680
4716
|
),
|
|
4681
4717
|
allowClear && hasValue && !disabled && !loading ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("button", { className: "sia-select__clear", type: "button", "aria-label": "\u6E05\u7A7A\u9009\u62E9", onClick: clearValue, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Icon, { name: "circle-close", variant: "filled", size: 15 }) }) : null,
|
|
4682
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(PopupPortal, { ref: popupRef, anchorRef: rootRef, open: open && popupMode === "dropdown", style: { fontSize: dropdownFontSize }, className: `sia-select__dropdown${filteredOptions.length === 0 && !canSubmitInput ? " sia-select__dropdown--empty" : ""}`, children: [
|
|
4718
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(PopupPortal, { ref: popupRef, onKeyDown: handleDropdownEscape, anchorRef: rootRef, open: open && popupMode === "dropdown", style: { fontSize: dropdownFontSize }, className: `sia-select__dropdown${filteredOptions.length === 0 && !canSubmitInput ? " sia-select__dropdown--empty" : ""}`, children: [
|
|
4683
4719
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(FloatingScrollbarProvider, { targetRef: listRef }),
|
|
4684
4720
|
showSearch || allowInput ? /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("label", { className: "sia-select__search", children: [
|
|
4685
4721
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Icon, { name: "search", size: 15 }),
|
package/dist/core.css
CHANGED
|
@@ -364,6 +364,18 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
364
364
|
.sia-form--horizontal .sia-form-item__input-wrap > :is(.sia-radio, .sia-checkbox, .sia-radio-group, .sia-checkbox-group) {
|
|
365
365
|
min-height: var(--sia-form-row-height);
|
|
366
366
|
}
|
|
367
|
+
.sia-form--horizontal .sia-form-item--align-center {
|
|
368
|
+
align-items: center;
|
|
369
|
+
}
|
|
370
|
+
.sia-form--horizontal .sia-form-item--align-center > .sia-form-item__label {
|
|
371
|
+
padding-top: 0;
|
|
372
|
+
}
|
|
373
|
+
.sia-form--horizontal .sia-form-item--align-center > .sia-form-item__control > .sia-floating > .sia-form-item__input-wrap {
|
|
374
|
+
display: flex;
|
|
375
|
+
flex-direction: column;
|
|
376
|
+
justify-content: center;
|
|
377
|
+
min-height: var(--sia-form-row-height);
|
|
378
|
+
}
|
|
367
379
|
}
|
|
368
380
|
.sia-form.sia-form--vertical .sia-form-item__label {
|
|
369
381
|
padding-top: 0;
|
|
@@ -5374,6 +5386,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
5374
5386
|
.sia-table__toolbar > div:last-child {
|
|
5375
5387
|
flex-shrink: 0;
|
|
5376
5388
|
flex-wrap: nowrap;
|
|
5389
|
+
gap: 4px;
|
|
5377
5390
|
}
|
|
5378
5391
|
.sia-tabs--horizontal > .sia-tabs__header > .sia-tabs__list {
|
|
5379
5392
|
position: relative;
|
|
@@ -8254,9 +8267,54 @@ body:has(.sia-window-frame[data-sia-text-selectable=false]) img {
|
|
|
8254
8267
|
transform: translateY(-50%);
|
|
8255
8268
|
display: inline-flex;
|
|
8256
8269
|
color: var(--sia-color-primary);
|
|
8257
|
-
opacity: .
|
|
8270
|
+
opacity: .92;
|
|
8258
8271
|
pointer-events: none;
|
|
8259
|
-
z-index:
|
|
8272
|
+
z-index: 1;
|
|
8273
|
+
}
|
|
8274
|
+
.sia-menu--grid,
|
|
8275
|
+
.sia-menu--grid .sia-menu__group > ul {
|
|
8276
|
+
display: grid;
|
|
8277
|
+
grid-template-columns: var(--sia-menu-grid-columns, repeat(2, minmax(0, 1fr)));
|
|
8278
|
+
gap: 8px;
|
|
8279
|
+
align-content: start;
|
|
8280
|
+
border-inline-end: 0;
|
|
8281
|
+
}
|
|
8282
|
+
.sia-menu--grid > .sia-menu__entry,
|
|
8283
|
+
.sia-menu--grid .sia-menu__group > ul > .sia-menu__entry {
|
|
8284
|
+
min-width: 0;
|
|
8285
|
+
margin: 0;
|
|
8286
|
+
}
|
|
8287
|
+
.sia-menu--grid > .sia-menu__entry > .sia-menu__item,
|
|
8288
|
+
.sia-menu--grid .sia-menu__group > ul > .sia-menu__entry > .sia-menu__item {
|
|
8289
|
+
flex-direction: column;
|
|
8290
|
+
justify-content: flex-start;
|
|
8291
|
+
gap: 10px;
|
|
8292
|
+
height: 100%;
|
|
8293
|
+
min-height: 108px;
|
|
8294
|
+
padding: 14px 6px 10px;
|
|
8295
|
+
border: 1px solid var(--sia-color-border);
|
|
8296
|
+
border-radius: var(--sia-radius-lg, 10px);
|
|
8297
|
+
text-align: center;
|
|
8298
|
+
}
|
|
8299
|
+
.sia-menu--grid > .sia-menu__entry > .sia-menu__item > .sia-menu__label,
|
|
8300
|
+
.sia-menu--grid .sia-menu__group > ul > .sia-menu__entry > .sia-menu__item > .sia-menu__label {
|
|
8301
|
+
flex: 0 0 auto;
|
|
8302
|
+
width: 100%;
|
|
8303
|
+
margin-top: auto;
|
|
8304
|
+
font-size: 12px;
|
|
8305
|
+
line-height: 1.5;
|
|
8306
|
+
white-space: normal;
|
|
8307
|
+
overflow-wrap: anywhere;
|
|
8308
|
+
}
|
|
8309
|
+
.sia-menu--grid > .sia-menu__entry > .sia-menu__item > .sia-menu__applied,
|
|
8310
|
+
.sia-menu--grid .sia-menu__group > ul > .sia-menu__entry > .sia-menu__item > .sia-menu__applied {
|
|
8311
|
+
top: 8px;
|
|
8312
|
+
right: 6px;
|
|
8313
|
+
transform: none;
|
|
8314
|
+
}
|
|
8315
|
+
.sia-menu--grid > .sia-menu__divider,
|
|
8316
|
+
.sia-menu--grid > .sia-menu__group {
|
|
8317
|
+
grid-column: 1 / -1;
|
|
8260
8318
|
}
|
|
8261
8319
|
.sia-menu__extra {
|
|
8262
8320
|
color: var(--sia-color-text-secondary);
|
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, K as Icon, L as IconName, M as IconProps, N as IconVariant, U as Input, V as InputProps, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ag as Result, ah as ResultProps, ai as ResultStatus, aj as Segmented, ak as SegmentedOption, al as SegmentedProps, am as SegmentedValue, at as TabItem, au as Tabs, aw as TabsOrientation, ax as TabsPosition, ay as TabsProps, az as TabsType, aA as Tag, aB as TagProps, aC as TagSize, T as TagStatus, aD as TagVariant, aH as Toolbar, aI as ToolbarItem, aJ as ToolbarProps, aU as Typography, aV as TypographyLinkProps, aW as TypographyProps, aX as TypographyTitleProps, aY as TypographyType, aZ as Upload, a_ as UploadChangeInfo, a$ as UploadDraggerProps, b0 as UploadFile, b1 as UploadFileStatus, b4 as UploadProps, b8 as UploadRequestOptions, bc as message } from './core-
|
|
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, K as Icon, L as IconName, M as IconProps, N as IconVariant, U as Input, V as InputProps, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ag as Result, ah as ResultProps, ai as ResultStatus, aj as Segmented, ak as SegmentedOption, al as SegmentedProps, am as SegmentedValue, at as TabItem, au as Tabs, aw as TabsOrientation, ax as TabsPosition, ay as TabsProps, az as TabsType, aA as Tag, aB as TagProps, aC as TagSize, T as TagStatus, aD as TagVariant, aH as Toolbar, aI as ToolbarItem, aJ as ToolbarProps, aU as Typography, aV as TypographyLinkProps, aW as TypographyProps, aX as TypographyTitleProps, aY as TypographyType, aZ as Upload, a_ as UploadChangeInfo, a$ as UploadDraggerProps, b0 as UploadFile, b1 as UploadFileStatus, b4 as UploadProps, b8 as UploadRequestOptions, bc as message } from './core-CCb4CoSP.cjs';
|
|
2
2
|
export { b as Button, B as ButtonProps, a as ButtonSize, c as ButtonVariant } from './Button-O_pNB3SQ.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-
|
|
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-BAFXKVZB.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, K as Icon, L as IconName, M as IconProps, N as IconVariant, U as Input, V as InputProps, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ag as Result, ah as ResultProps, ai as ResultStatus, aj as Segmented, ak as SegmentedOption, al as SegmentedProps, am as SegmentedValue, at as TabItem, au as Tabs, aw as TabsOrientation, ax as TabsPosition, ay as TabsProps, az as TabsType, aA as Tag, aB as TagProps, aC as TagSize, T as TagStatus, aD as TagVariant, aH as Toolbar, aI as ToolbarItem, aJ as ToolbarProps, aU as Typography, aV as TypographyLinkProps, aW as TypographyProps, aX as TypographyTitleProps, aY as TypographyType, aZ as Upload, a_ as UploadChangeInfo, a$ as UploadDraggerProps, b0 as UploadFile, b1 as UploadFileStatus, b4 as UploadProps, b8 as UploadRequestOptions, bc as message } from './core-
|
|
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, K as Icon, L as IconName, M as IconProps, N as IconVariant, U as Input, V as InputProps, a0 as MessageConfig, a1 as MessageHandle, a2 as MessageKey, a3 as MessageType, ab as Progress, ac as ProgressProps, ad as ProgressStatus, ag as Result, ah as ResultProps, ai as ResultStatus, aj as Segmented, ak as SegmentedOption, al as SegmentedProps, am as SegmentedValue, at as TabItem, au as Tabs, aw as TabsOrientation, ax as TabsPosition, ay as TabsProps, az as TabsType, aA as Tag, aB as TagProps, aC as TagSize, T as TagStatus, aD as TagVariant, aH as Toolbar, aI as ToolbarItem, aJ as ToolbarProps, aU as Typography, aV as TypographyLinkProps, aW as TypographyProps, aX as TypographyTitleProps, aY as TypographyType, aZ as Upload, a_ as UploadChangeInfo, a$ as UploadDraggerProps, b0 as UploadFile, b1 as UploadFileStatus, b4 as UploadProps, b8 as UploadRequestOptions, bc as message } from './core-CJnRQZkv.js';
|
|
2
2
|
export { b as Button, B as ButtonProps, a as ButtonSize, c as ButtonVariant } from './Button-BiL3Wjsd.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-
|
|
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-vjX7B63I.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
import './shared-Bx4B28Wh.js';
|
package/dist/core.js
CHANGED
|
@@ -11,15 +11,15 @@ import {
|
|
|
11
11
|
Typography,
|
|
12
12
|
Upload,
|
|
13
13
|
message
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-D2H37DUL.js";
|
|
15
15
|
import "./chunk-RX242MUO.js";
|
|
16
16
|
import {
|
|
17
17
|
Select
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-7PPE6DJO.js";
|
|
19
19
|
import {
|
|
20
20
|
Input,
|
|
21
21
|
Segmented
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-SATXB6X4.js";
|
|
23
23
|
import "./chunk-SCEHVGKV.js";
|
|
24
24
|
import {
|
|
25
25
|
Icon,
|
package/dist/game.css
CHANGED
|
@@ -373,6 +373,18 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
373
373
|
.sia-form--horizontal .sia-form-item__input-wrap > :is(.sia-radio, .sia-checkbox, .sia-radio-group, .sia-checkbox-group) {
|
|
374
374
|
min-height: var(--sia-form-row-height);
|
|
375
375
|
}
|
|
376
|
+
.sia-form--horizontal .sia-form-item--align-center {
|
|
377
|
+
align-items: center;
|
|
378
|
+
}
|
|
379
|
+
.sia-form--horizontal .sia-form-item--align-center > .sia-form-item__label {
|
|
380
|
+
padding-top: 0;
|
|
381
|
+
}
|
|
382
|
+
.sia-form--horizontal .sia-form-item--align-center > .sia-form-item__control > .sia-floating > .sia-form-item__input-wrap {
|
|
383
|
+
display: flex;
|
|
384
|
+
flex-direction: column;
|
|
385
|
+
justify-content: center;
|
|
386
|
+
min-height: var(--sia-form-row-height);
|
|
387
|
+
}
|
|
376
388
|
}
|
|
377
389
|
.sia-form.sia-form--vertical .sia-form-item__label {
|
|
378
390
|
padding-top: 0;
|
|
@@ -5383,6 +5395,7 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
5383
5395
|
.sia-table__toolbar > div:last-child {
|
|
5384
5396
|
flex-shrink: 0;
|
|
5385
5397
|
flex-wrap: nowrap;
|
|
5398
|
+
gap: 4px;
|
|
5386
5399
|
}
|
|
5387
5400
|
.sia-tabs--horizontal > .sia-tabs__header > .sia-tabs__list {
|
|
5388
5401
|
position: relative;
|