@sia.soul/sia-react-ui 0.1.115 → 0.1.117

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.
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  Icon,
6
6
  Modal
7
- } from "./chunk-XY7CXJS6.js";
7
+ } from "./chunk-KIQSPAAQ.js";
8
8
  import {
9
9
  Button
10
10
  } from "./chunk-CZ2ITBRW.js";
@@ -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
@@ -170,6 +171,7 @@ function Menu({
170
171
  gridColumns = 2,
171
172
  theme = "light",
172
173
  selectedKeys,
174
+ autoScrollSelected = false,
173
175
  defaultSelectedKeys = [],
174
176
  openKeys,
175
177
  defaultOpenKeys = [],
@@ -190,6 +192,30 @@ function Menu({
190
192
  const rootRef = useRef(null);
191
193
  const [selected, setSelected] = useControllableState({ value: selectedKeys, defaultValue: defaultSelectedKeys });
192
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]);
193
219
  useEffect(() => {
194
220
  if (mode === "inline" || !open.length) return void 0;
195
221
  const closeOutside = (event) => {
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  Popover,
3
3
  Tooltip
4
- } from "./chunk-KPOK4HIQ.js";
4
+ } from "./chunk-SB53UBFV.js";
5
5
  import {
6
6
  Dropdown
7
- } from "./chunk-SPIQSYWQ.js";
7
+ } from "./chunk-6DFAX43X.js";
8
8
  import {
9
9
  TextArea
10
10
  } from "./chunk-SCEHVGKV.js";
11
11
  import {
12
12
  Icon,
13
13
  useOverlayLifecycle
14
- } from "./chunk-XY7CXJS6.js";
14
+ } from "./chunk-KIQSPAAQ.js";
15
15
  import {
16
16
  Button
17
17
  } from "./chunk-CZ2ITBRW.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Dropdown,
3
3
  Input
4
- } from "./chunk-SPIQSYWQ.js";
4
+ } from "./chunk-6DFAX43X.js";
5
5
  import {
6
6
  Icon
7
- } from "./chunk-XY7CXJS6.js";
7
+ } from "./chunk-KIQSPAAQ.js";
8
8
  import {
9
9
  Button
10
10
  } from "./chunk-CZ2ITBRW.js";
@@ -1151,9 +1151,10 @@ var filledIconPaths = {
1151
1151
  var FILLED_ICON_NAMES = Object.freeze(Object.keys(filledIconPaths));
1152
1152
  var normalizedOutlinePaths = normalizeIconPaths(iconPaths, outlineIconBounds);
1153
1153
  var normalizedFilledPaths = normalizeIconPaths(filledIconPaths, filledIconBounds);
1154
- var Icon = forwardRef(function Icon2({ name, size = "1em", strokeWidth = 1.8, rotate = 0, spin = false, pulse = false, label, variant = "outline", className = "", style, ...props }, ref) {
1154
+ var Icon = forwardRef(function Icon2({ name, tone = "inherit", size = "1em", strokeWidth = 1.8, rotate = 0, spin = false, pulse = false, label, variant = "outline", className = "", style, ...props }, ref) {
1155
1155
  const resolvedSize = typeof size === "number" ? `${size}px` : size;
1156
- const mergedStyle = { "--sia-icon-size": resolvedSize, "--sia-icon-rotate": `${rotate}deg`, ...style };
1156
+ const toneColor = tone === "inherit" ? void 0 : `var(--sia-color-${tone === "danger" ? "error" : tone === "primary" ? "primary-text" : tone})`;
1157
+ const mergedStyle = { "--sia-icon-size": resolvedSize, "--sia-icon-rotate": `${rotate}deg`, color: toneColor, ...style };
1157
1158
  const animationClass = spin ? " sia-icon--spin" : pulse ? " sia-icon--pulse" : "";
1158
1159
  const filledPath = filledIconPaths[name];
1159
1160
  const resolvedVariant = variant === "filled" && filledPath ? "filled" : "outline";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  FloatingScrollbarProvider,
3
3
  Select
4
- } from "./chunk-KPOK4HIQ.js";
4
+ } from "./chunk-SB53UBFV.js";
5
5
  import {
6
6
  Icon
7
- } from "./chunk-XY7CXJS6.js";
7
+ } from "./chunk-KIQSPAAQ.js";
8
8
  import {
9
9
  useFloatingPlaceholder
10
10
  } from "./chunk-KY6A5IJH.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  Dropdown,
3
3
  Input
4
- } from "./chunk-SPIQSYWQ.js";
4
+ } from "./chunk-6DFAX43X.js";
5
5
  import {
6
6
  Icon,
7
7
  Modal
8
- } from "./chunk-XY7CXJS6.js";
8
+ } from "./chunk-KIQSPAAQ.js";
9
9
  import {
10
10
  Button
11
11
  } from "./chunk-CZ2ITBRW.js";
@@ -395,6 +395,12 @@ type IconVariant = "outline" | "filled";
395
395
  declare const FILLED_ICON_NAMES: readonly ("pause" | "play" | "filter" | "image" | "warning" | "info" | "question" | "circle-check" | "circle-close" | "circle-plus" | "circle-minus" | "home" | "user" | "users" | "trash" | "calendar" | "clock" | "mail" | "lock" | "unlock" | "bell" | "star" | "heart" | "file" | "folder" | "book" | "component" | "token")[];
396
396
  /** 图标的属性配置。 */
397
397
  interface IconProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children"> {
398
+ /**
399
+ * 图标语义色:inherit 继承文字颜色,primary 使用主题蓝色,success/warning/danger 分别表示成功、警告和危险。
400
+ * 仅改变图形颜色,不改变相邻文字、尺寸或交互;颜色跟随主题变量,显式 style.color 优先。
401
+ * @defaultValue "inherit"
402
+ */
403
+ tone?: "inherit" | "primary" | "success" | "warning" | "danger";
398
404
  /** 名称或字段标识。 */
399
405
  name: IconName;
400
406
  /**
@@ -500,7 +506,7 @@ type MenuItem = {
500
506
  icon?: ReactNode;
501
507
  /** 图标槽的宽高,单位 px;未指定时沿用菜单图标尺寸变量。图片图标应传入与图片相同的尺寸,避免挤压。 */
502
508
  iconSize?: number;
503
- /** 是否显示当前生效的半透明勾选水印,默认为 false;独立于 selectedKeys 的浏览选中状态,由业务在应用成功后更新。 */
509
+ /** 是否显示当前生效的实心圆形勾选标记,默认为 false;标记以92%不透明度显示,独立于 selectedKeys 的浏览选中状态,由业务在应用成功后更新。 */
504
510
  applied?: boolean;
505
511
  /** 生效水印的无障碍说明;默认为“当前使用”,仅 applied 为 true 时显示。 */
506
512
  appliedLabel?: string;
@@ -546,6 +552,13 @@ interface MenuProps extends Omit<HTMLAttributes<HTMLUListElement>, "onClick" | "
546
552
  theme?: MenuTheme;
547
553
  /** 当前选中项目的标识集合;传入后由外部控制。 */
548
554
  selectedKeys?: readonly string[];
555
+ /**
556
+ * 自动将首个选中项目滚动到菜单自身的可见区域,适用于可纵向滚动的列表、内嵌或网格菜单。
557
+ * 首次渲染、异步项目到达及首个选中标识改变时尝试定位;已完整可见时不滚动,超出时尽量居中。
558
+ * 仅调整菜单自身的滚动位置,不展开子菜单、不移动焦点;相同选中项的普通重渲染保留用户手动滚动位置。
559
+ * @defaultValue false
560
+ */
561
+ autoScrollSelected?: boolean;
549
562
  /**
550
563
  * 非受控模式下初始选中的项目标识集合。
551
564
  * @defaultValue []
@@ -599,7 +612,7 @@ interface MenuProps extends Omit<HTMLAttributes<HTMLUListElement>, "onClick" | "
599
612
  onOpenChange?: (keys: string[]) => void;
600
613
  }
601
614
  /** 菜单组件。 */
602
- declare function Menu({ items, mode, gridColumns, theme, selectedKeys, defaultSelectedKeys, openKeys, defaultOpenKeys, multiple, selectable, inlineCollapsed, inlineIndent, triggerSubMenuAction, onClick, onSelect, onDeselect, onOpenChange, className, style, ...rest }: MenuProps): react.JSX.Element;
615
+ 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;
603
616
  /** Step的状态类型。 */
604
617
  type StepStatus = "wait" | "process" | "finish" | "error";
605
618
  /** Step的项目定义。 */
@@ -395,6 +395,12 @@ type IconVariant = "outline" | "filled";
395
395
  declare const FILLED_ICON_NAMES: readonly ("pause" | "play" | "filter" | "image" | "warning" | "info" | "question" | "circle-check" | "circle-close" | "circle-plus" | "circle-minus" | "home" | "user" | "users" | "trash" | "calendar" | "clock" | "mail" | "lock" | "unlock" | "bell" | "star" | "heart" | "file" | "folder" | "book" | "component" | "token")[];
396
396
  /** 图标的属性配置。 */
397
397
  interface IconProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children"> {
398
+ /**
399
+ * 图标语义色:inherit 继承文字颜色,primary 使用主题蓝色,success/warning/danger 分别表示成功、警告和危险。
400
+ * 仅改变图形颜色,不改变相邻文字、尺寸或交互;颜色跟随主题变量,显式 style.color 优先。
401
+ * @defaultValue "inherit"
402
+ */
403
+ tone?: "inherit" | "primary" | "success" | "warning" | "danger";
398
404
  /** 名称或字段标识。 */
399
405
  name: IconName;
400
406
  /**
@@ -500,7 +506,7 @@ type MenuItem = {
500
506
  icon?: ReactNode;
501
507
  /** 图标槽的宽高,单位 px;未指定时沿用菜单图标尺寸变量。图片图标应传入与图片相同的尺寸,避免挤压。 */
502
508
  iconSize?: number;
503
- /** 是否显示当前生效的半透明勾选水印,默认为 false;独立于 selectedKeys 的浏览选中状态,由业务在应用成功后更新。 */
509
+ /** 是否显示当前生效的实心圆形勾选标记,默认为 false;标记以92%不透明度显示,独立于 selectedKeys 的浏览选中状态,由业务在应用成功后更新。 */
504
510
  applied?: boolean;
505
511
  /** 生效水印的无障碍说明;默认为“当前使用”,仅 applied 为 true 时显示。 */
506
512
  appliedLabel?: string;
@@ -546,6 +552,13 @@ interface MenuProps extends Omit<HTMLAttributes<HTMLUListElement>, "onClick" | "
546
552
  theme?: MenuTheme;
547
553
  /** 当前选中项目的标识集合;传入后由外部控制。 */
548
554
  selectedKeys?: readonly string[];
555
+ /**
556
+ * 自动将首个选中项目滚动到菜单自身的可见区域,适用于可纵向滚动的列表、内嵌或网格菜单。
557
+ * 首次渲染、异步项目到达及首个选中标识改变时尝试定位;已完整可见时不滚动,超出时尽量居中。
558
+ * 仅调整菜单自身的滚动位置,不展开子菜单、不移动焦点;相同选中项的普通重渲染保留用户手动滚动位置。
559
+ * @defaultValue false
560
+ */
561
+ autoScrollSelected?: boolean;
549
562
  /**
550
563
  * 非受控模式下初始选中的项目标识集合。
551
564
  * @defaultValue []
@@ -599,7 +612,7 @@ interface MenuProps extends Omit<HTMLAttributes<HTMLUListElement>, "onClick" | "
599
612
  onOpenChange?: (keys: string[]) => void;
600
613
  }
601
614
  /** 菜单组件。 */
602
- declare function Menu({ items, mode, gridColumns, theme, selectedKeys, defaultSelectedKeys, openKeys, defaultOpenKeys, multiple, selectable, inlineCollapsed, inlineIndent, triggerSubMenuAction, onClick, onSelect, onDeselect, onOpenChange, className, style, ...rest }: MenuProps): react.JSX.Element;
615
+ 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;
603
616
  /** Step的状态类型。 */
604
617
  type StepStatus = "wait" | "process" | "finish" | "error";
605
618
  /** Step的项目定义。 */
package/dist/core.cjs CHANGED
@@ -1535,9 +1535,10 @@ var filledIconPaths = {
1535
1535
  var FILLED_ICON_NAMES = Object.freeze(Object.keys(filledIconPaths));
1536
1536
  var normalizedOutlinePaths = normalizeIconPaths(iconPaths, outlineIconBounds);
1537
1537
  var normalizedFilledPaths = normalizeIconPaths(filledIconPaths, filledIconBounds);
1538
- var Icon = (0, import_react5.forwardRef)(function Icon2({ name, size = "1em", strokeWidth = 1.8, rotate = 0, spin = false, pulse = false, label, variant = "outline", className = "", style, ...props }, ref) {
1538
+ var Icon = (0, import_react5.forwardRef)(function Icon2({ name, tone = "inherit", size = "1em", strokeWidth = 1.8, rotate = 0, spin = false, pulse = false, label, variant = "outline", className = "", style, ...props }, ref) {
1539
1539
  const resolvedSize = typeof size === "number" ? `${size}px` : size;
1540
- const mergedStyle = { "--sia-icon-size": resolvedSize, "--sia-icon-rotate": `${rotate}deg`, ...style };
1540
+ const toneColor = tone === "inherit" ? void 0 : `var(--sia-color-${tone === "danger" ? "error" : tone === "primary" ? "primary-text" : tone})`;
1541
+ const mergedStyle = { "--sia-icon-size": resolvedSize, "--sia-icon-rotate": `${rotate}deg`, color: toneColor, ...style };
1541
1542
  const animationClass = spin ? " sia-icon--spin" : pulse ? " sia-icon--pulse" : "";
1542
1543
  const filledPath = filledIconPaths[name];
1543
1544
  const resolvedVariant = variant === "filled" && filledPath ? "filled" : "outline";
@@ -1658,12 +1659,13 @@ function MenuEntry({
1658
1659
  ...withTitleTooltip({ title: collapsed ? item.title ?? (typeof item.label === "string" ? item.label : void 0) : item.title }),
1659
1660
  disabled: item.disabled,
1660
1661
  "aria-current": isSelected ? "page" : void 0,
1662
+ "data-menu-key": item.key,
1661
1663
  "data-applied": item.applied || void 0,
1662
1664
  "aria-expanded": hasChildren ? isOpen : void 0,
1663
1665
  onClick: (event) => hasChildren ? props.toggle(item.key) : props.select(item, path, event),
1664
1666
  children: [
1665
1667
  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,
1668
+ 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
1669
  !collapsed ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "sia-menu__label", children: item.label }) : null,
1668
1670
  !collapsed && item.extra ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "sia-menu__extra", children: item.extra }) : null,
1669
1671
  !collapsed && hasChildren ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { className: "sia-menu__expand-icon", name: "chevron-down", size: 13 }) : null
@@ -1712,6 +1714,7 @@ function Menu({
1712
1714
  gridColumns = 2,
1713
1715
  theme = "light",
1714
1716
  selectedKeys,
1717
+ autoScrollSelected = false,
1715
1718
  defaultSelectedKeys = [],
1716
1719
  openKeys,
1717
1720
  defaultOpenKeys = [],
@@ -1732,6 +1735,30 @@ function Menu({
1732
1735
  const rootRef = (0, import_react6.useRef)(null);
1733
1736
  const [selected, setSelected] = useControllableState({ value: selectedKeys, defaultValue: defaultSelectedKeys });
1734
1737
  const [open, setOpen] = useControllableState({ value: openKeys, defaultValue: defaultOpenKeys, onChange: (next) => onOpenChange?.([...next]) });
1738
+ const revealedKey = (0, import_react6.useRef)();
1739
+ const firstSelected = selected[0];
1740
+ (0, import_react6.useLayoutEffect)(() => {
1741
+ if (!autoScrollSelected || firstSelected === void 0) {
1742
+ revealedKey.current = void 0;
1743
+ return;
1744
+ }
1745
+ const root = rootRef.current;
1746
+ if (!root || revealedKey.current === firstSelected || mode === "horizontal") return;
1747
+ const reveal = () => {
1748
+ if (revealedKey.current === firstSelected || root.clientHeight === 0) return;
1749
+ const target = Array.from(root.querySelectorAll(".sia-menu__item")).find((element) => element.dataset.menuKey === firstSelected && element.getBoundingClientRect().height > 0);
1750
+ if (!target) return;
1751
+ const bounds = root.getBoundingClientRect(), item = target.getBoundingClientRect();
1752
+ const top = bounds.top + root.clientTop, bottom = top + root.clientHeight;
1753
+ if (item.top < top || item.bottom > bottom)
1754
+ root.scrollTop += item.top - top - Math.max(0, (root.clientHeight - item.height) / 2);
1755
+ revealedKey.current = firstSelected;
1756
+ };
1757
+ reveal();
1758
+ const observer = new ResizeObserver(reveal);
1759
+ observer.observe(root);
1760
+ return () => observer.disconnect();
1761
+ }, [autoScrollSelected, firstSelected, items, mode]);
1735
1762
  (0, import_react6.useEffect)(() => {
1736
1763
  if (mode === "inline" || !open.length) return void 0;
1737
1764
  const closeOutside = (event) => {
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,9 @@ 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: .18;
8270
+ opacity: .92;
8258
8271
  pointer-events: none;
8259
- z-index: -1;
8272
+ z-index: 1;
8260
8273
  }
8261
8274
  .sia-menu--grid,
8262
8275
  .sia-menu--grid .sia-menu__group > ul {
package/dist/core.d.cts CHANGED
@@ -1,4 +1,4 @@
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-O6oDXbkG.cjs';
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-DlngVjmf.cjs';
2
2
  export { b as Button, B as ButtonProps, a as ButtonSize, c as ButtonVariant } from './Button-O_pNB3SQ.cjs';
3
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';
package/dist/core.d.ts CHANGED
@@ -1,4 +1,4 @@
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-uVaNwjTO.js';
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-De9MXbF6.js';
2
2
  export { b as Button, B as ButtonProps, a as ButtonSize, c as ButtonVariant } from './Button-BiL3Wjsd.js';
3
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';
package/dist/core.js CHANGED
@@ -11,20 +11,20 @@ import {
11
11
  Typography,
12
12
  Upload,
13
13
  message
14
- } from "./chunk-GNOZYUIH.js";
14
+ } from "./chunk-CKP3SNVH.js";
15
15
  import "./chunk-RX242MUO.js";
16
16
  import {
17
17
  Select
18
- } from "./chunk-KPOK4HIQ.js";
18
+ } from "./chunk-SB53UBFV.js";
19
19
  import {
20
20
  Input,
21
21
  Segmented
22
- } from "./chunk-SPIQSYWQ.js";
22
+ } from "./chunk-6DFAX43X.js";
23
23
  import "./chunk-SCEHVGKV.js";
24
24
  import {
25
25
  Icon,
26
26
  Modal
27
- } from "./chunk-XY7CXJS6.js";
27
+ } from "./chunk-KIQSPAAQ.js";
28
28
  import {
29
29
  Button
30
30
  } from "./chunk-CZ2ITBRW.js";
package/dist/game.cjs CHANGED
@@ -2237,9 +2237,10 @@ var filledIconPaths = {
2237
2237
  var FILLED_ICON_NAMES = Object.freeze(Object.keys(filledIconPaths));
2238
2238
  var normalizedOutlinePaths = normalizeIconPaths(iconPaths, outlineIconBounds);
2239
2239
  var normalizedFilledPaths = normalizeIconPaths(filledIconPaths, filledIconBounds);
2240
- var Icon = (0, import_react6.forwardRef)(function Icon2({ name, size = "1em", strokeWidth = 1.8, rotate = 0, spin = false, pulse = false, label, variant = "outline", className = "", style, ...props }, ref) {
2240
+ var Icon = (0, import_react6.forwardRef)(function Icon2({ name, tone = "inherit", size = "1em", strokeWidth = 1.8, rotate = 0, spin = false, pulse = false, label, variant = "outline", className = "", style, ...props }, ref) {
2241
2241
  const resolvedSize = typeof size === "number" ? `${size}px` : size;
2242
- const mergedStyle = { "--sia-icon-size": resolvedSize, "--sia-icon-rotate": `${rotate}deg`, ...style };
2242
+ const toneColor = tone === "inherit" ? void 0 : `var(--sia-color-${tone === "danger" ? "error" : tone === "primary" ? "primary-text" : tone})`;
2243
+ const mergedStyle = { "--sia-icon-size": resolvedSize, "--sia-icon-rotate": `${rotate}deg`, color: toneColor, ...style };
2243
2244
  const animationClass = spin ? " sia-icon--spin" : pulse ? " sia-icon--pulse" : "";
2244
2245
  const filledPath = filledIconPaths[name];
2245
2246
  const resolvedVariant = variant === "filled" && filledPath ? "filled" : "outline";
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;
package/dist/game.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./chunk-RX242MUO.js";
2
2
  import {
3
3
  Modal
4
- } from "./chunk-XY7CXJS6.js";
4
+ } from "./chunk-KIQSPAAQ.js";
5
5
  import {
6
6
  Button
7
7
  } from "./chunk-CZ2ITBRW.js";