@sia.soul/sia-react-ui 0.1.108 → 0.1.109
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/{chunk-GPCUD6FA.js → chunk-XRHL56EV.js} +2 -1
- package/dist/{core-OuydQbFN.d.ts → core-gI4QB_Nz.d.ts} +3 -1
- package/dist/{core-KJBvQlUc.d.cts → core-lGT-8jSj.d.cts} +3 -1
- package/dist/core.cjs +2 -1
- package/dist/core.css +19 -0
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/game.cjs +1651 -1193
- package/dist/game.css +186 -0
- package/dist/game.d.cts +76 -7
- package/dist/game.d.ts +76 -7
- package/dist/game.js +821 -367
- package/dist/index.cjs +6 -2
- package/dist/index.css +19 -0
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -2
- package/package.json +1 -1
|
@@ -113,6 +113,7 @@ function Card({
|
|
|
113
113
|
defaultCollapsed = false,
|
|
114
114
|
onCollapsedChange,
|
|
115
115
|
bodyHeight,
|
|
116
|
+
fill = false,
|
|
116
117
|
bodyClassName = "",
|
|
117
118
|
bodyStyle,
|
|
118
119
|
className = "",
|
|
@@ -148,7 +149,7 @@ function Card({
|
|
|
148
149
|
return /* @__PURE__ */ jsxs2(
|
|
149
150
|
"section",
|
|
150
151
|
{
|
|
151
|
-
className: `sia-card${!bordered ? " sia-card--borderless" : ""}${isCollapsed ? " sia-card--collapsed" : ""}${selectable ? " sia-card--selectable" : ""}${actionable ? " sia-card--actionable" : ""}${selectable && isSelected ? " sia-card--selected" : ""}${hoverActions ? " sia-card--hover-actions" : ""} ${className}`.trim(),
|
|
152
|
+
className: `sia-card${fill ? " sia-card--fill" : ""}${fill && bodyHeight !== void 0 ? " sia-card--body-height" : ""}${!bordered ? " sia-card--borderless" : ""}${isCollapsed ? " sia-card--collapsed" : ""}${selectable ? " sia-card--selectable" : ""}${actionable ? " sia-card--actionable" : ""}${selectable && isSelected ? " sia-card--selected" : ""}${hoverActions ? " sia-card--hover-actions" : ""} ${className}`.trim(),
|
|
152
153
|
style: mergedStyle,
|
|
153
154
|
role: selectable ? "checkbox" : actionable ? "button" : void 0,
|
|
154
155
|
"aria-checked": selectable ? isSelected : void 0,
|
|
@@ -107,6 +107,8 @@ interface CardProps extends Omit<HTMLAttributes<HTMLElement>, "title"> {
|
|
|
107
107
|
onCollapsedChange?: (collapsed: boolean) => void;
|
|
108
108
|
/** 固定内容区高度并开启内部滚动 */
|
|
109
109
|
bodyHeight?: number | string;
|
|
110
|
+
/** 填充父容器分配的高度,标题固定、正文占用剩余空间;父容器必须提供确定高度或弹性分配。bodyHeight 显式指定时优先使用该正文高度。默认 false。 */
|
|
111
|
+
fill?: boolean;
|
|
110
112
|
/**
|
|
111
113
|
* 内容区域的 CSS 类名。
|
|
112
114
|
* @defaultValue ""
|
|
@@ -116,7 +118,7 @@ interface CardProps extends Omit<HTMLAttributes<HTMLElement>, "title"> {
|
|
|
116
118
|
bodyStyle?: CSSProperties;
|
|
117
119
|
}
|
|
118
120
|
/** 卡片组件。 */
|
|
119
|
-
declare function Card({ bordered, title, description, extra, selectable, selected, showSelectedIndicator, defaultSelected, disabled, onSelectedChange, onAction, hoverActions, accent, accentColor, collapsible, collapsed, defaultCollapsed, onCollapsedChange, bodyHeight, bodyClassName, bodyStyle, className, style, children, onClick, onKeyDown, ...props }: CardProps): react.JSX.Element;
|
|
121
|
+
declare function Card({ bordered, title, description, extra, selectable, selected, showSelectedIndicator, defaultSelected, disabled, onSelectedChange, onAction, hoverActions, accent, accentColor, collapsible, collapsed, defaultCollapsed, onCollapsedChange, bodyHeight, fill, bodyClassName, bodyStyle, className, style, children, onClick, onKeyDown, ...props }: CardProps): react.JSX.Element;
|
|
120
122
|
|
|
121
123
|
declare const iconPaths: {
|
|
122
124
|
"notepad-file": react.JSX.Element;
|
|
@@ -107,6 +107,8 @@ interface CardProps extends Omit<HTMLAttributes<HTMLElement>, "title"> {
|
|
|
107
107
|
onCollapsedChange?: (collapsed: boolean) => void;
|
|
108
108
|
/** 固定内容区高度并开启内部滚动 */
|
|
109
109
|
bodyHeight?: number | string;
|
|
110
|
+
/** 填充父容器分配的高度,标题固定、正文占用剩余空间;父容器必须提供确定高度或弹性分配。bodyHeight 显式指定时优先使用该正文高度。默认 false。 */
|
|
111
|
+
fill?: boolean;
|
|
110
112
|
/**
|
|
111
113
|
* 内容区域的 CSS 类名。
|
|
112
114
|
* @defaultValue ""
|
|
@@ -116,7 +118,7 @@ interface CardProps extends Omit<HTMLAttributes<HTMLElement>, "title"> {
|
|
|
116
118
|
bodyStyle?: CSSProperties;
|
|
117
119
|
}
|
|
118
120
|
/** 卡片组件。 */
|
|
119
|
-
declare function Card({ bordered, title, description, extra, selectable, selected, showSelectedIndicator, defaultSelected, disabled, onSelectedChange, onAction, hoverActions, accent, accentColor, collapsible, collapsed, defaultCollapsed, onCollapsedChange, bodyHeight, bodyClassName, bodyStyle, className, style, children, onClick, onKeyDown, ...props }: CardProps): react.JSX.Element;
|
|
121
|
+
declare function Card({ bordered, title, description, extra, selectable, selected, showSelectedIndicator, defaultSelected, disabled, onSelectedChange, onAction, hoverActions, accent, accentColor, collapsible, collapsed, defaultCollapsed, onCollapsedChange, bodyHeight, fill, bodyClassName, bodyStyle, className, style, children, onClick, onKeyDown, ...props }: CardProps): react.JSX.Element;
|
|
120
122
|
|
|
121
123
|
declare const iconPaths: {
|
|
122
124
|
"notepad-file": react.JSX.Element;
|
package/dist/core.cjs
CHANGED
|
@@ -2072,6 +2072,7 @@ function Card({
|
|
|
2072
2072
|
defaultCollapsed = false,
|
|
2073
2073
|
onCollapsedChange,
|
|
2074
2074
|
bodyHeight,
|
|
2075
|
+
fill = false,
|
|
2075
2076
|
bodyClassName = "",
|
|
2076
2077
|
bodyStyle,
|
|
2077
2078
|
className = "",
|
|
@@ -2107,7 +2108,7 @@ function Card({
|
|
|
2107
2108
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
2108
2109
|
"section",
|
|
2109
2110
|
{
|
|
2110
|
-
className: `sia-card${!bordered ? " sia-card--borderless" : ""}${isCollapsed ? " sia-card--collapsed" : ""}${selectable ? " sia-card--selectable" : ""}${actionable ? " sia-card--actionable" : ""}${selectable && isSelected ? " sia-card--selected" : ""}${hoverActions ? " sia-card--hover-actions" : ""} ${className}`.trim(),
|
|
2111
|
+
className: `sia-card${fill ? " sia-card--fill" : ""}${fill && bodyHeight !== void 0 ? " sia-card--body-height" : ""}${!bordered ? " sia-card--borderless" : ""}${isCollapsed ? " sia-card--collapsed" : ""}${selectable ? " sia-card--selectable" : ""}${actionable ? " sia-card--actionable" : ""}${selectable && isSelected ? " sia-card--selected" : ""}${hoverActions ? " sia-card--hover-actions" : ""} ${className}`.trim(),
|
|
2111
2112
|
style: mergedStyle,
|
|
2112
2113
|
role: selectable ? "checkbox" : actionable ? "button" : void 0,
|
|
2113
2114
|
"aria-checked": selectable ? isSelected : void 0,
|
package/dist/core.css
CHANGED
|
@@ -2607,6 +2607,25 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
2607
2607
|
outline: 2px solid var(--sia-color-primary);
|
|
2608
2608
|
outline-offset: 2px;
|
|
2609
2609
|
}
|
|
2610
|
+
.sia-card--fill {
|
|
2611
|
+
height: 100%;
|
|
2612
|
+
min-height: 0;
|
|
2613
|
+
min-width: 0;
|
|
2614
|
+
display: flex;
|
|
2615
|
+
flex-direction: column;
|
|
2616
|
+
}
|
|
2617
|
+
.sia-card--fill > .sia-card__header,
|
|
2618
|
+
.sia-card--fill > .sia-card__description {
|
|
2619
|
+
flex-shrink: 0;
|
|
2620
|
+
}
|
|
2621
|
+
.sia-card--fill > .sia-card__body {
|
|
2622
|
+
flex: 1;
|
|
2623
|
+
min-height: 0;
|
|
2624
|
+
min-width: 0;
|
|
2625
|
+
}
|
|
2626
|
+
.sia-card--fill.sia-card--body-height > .sia-card__body {
|
|
2627
|
+
flex: 0 0 auto;
|
|
2628
|
+
}
|
|
2610
2629
|
.sia-card__selected-corner {
|
|
2611
2630
|
position: absolute;
|
|
2612
2631
|
top: 0;
|
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-
|
|
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-lGT-8jSj.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-Cf0xz1Tg.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-
|
|
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-gI4QB_Nz.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-BddM4uXC.js';
|
|
4
4
|
import 'react';
|