@sia.soul/sia-react-ui 0.1.139 → 0.1.141
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-AL46WYJF.js → chunk-DIRPOUVX.js} +11 -5
- package/dist/{core-CwcgYFnO.d.cts → core-DYo5C4Si.d.cts} +6 -4
- package/dist/{core-Cmeyc0TI.d.ts → core-sWwvVAmP.d.ts} +6 -4
- package/dist/core.cjs +11 -5
- package/dist/core.css +52 -17
- package/dist/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/game.css +52 -17
- package/dist/index.cjs +11 -5
- package/dist/index.css +52 -17
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -255,7 +255,8 @@ function Tabs({
|
|
|
255
255
|
onAfterChange,
|
|
256
256
|
deferContent = false,
|
|
257
257
|
type = "line",
|
|
258
|
-
indicatorMotion = type === "line" || type === "underline" ? "stretch" : "slide",
|
|
258
|
+
indicatorMotion = type === "line" || type === "underline" || type === "rounded" ? "stretch" : "slide",
|
|
259
|
+
indicatorPosition,
|
|
259
260
|
size = "medium",
|
|
260
261
|
tabPosition,
|
|
261
262
|
orientation = "horizontal",
|
|
@@ -279,7 +280,9 @@ function Tabs({
|
|
|
279
280
|
const enabledItems = useMemo(() => items.filter((item) => !item.disabled), [items]);
|
|
280
281
|
const resolvedPosition = tabPosition ?? (orientation === "vertical" ? "left" : "top");
|
|
281
282
|
const resolvedOrientation = resolvedPosition === "left" || resolvedPosition === "right" ? "vertical" : "horizontal";
|
|
282
|
-
const
|
|
283
|
+
const defaultIndicatorPosition = { top: "bottom", bottom: "top", left: "right", right: "left" }[resolvedPosition];
|
|
284
|
+
const resolvedIndicatorPosition = indicatorPosition && (resolvedOrientation === "vertical" ? ["left", "right"] : ["top", "bottom"]).includes(indicatorPosition) ? indicatorPosition : defaultIndicatorPosition;
|
|
285
|
+
const sliding = ["capsule", "line", "underline", "rounded", "tech", "tech-line"].includes(type);
|
|
283
286
|
const listRef = useRef2(null);
|
|
284
287
|
const indicatorRef = useRef2(null);
|
|
285
288
|
const indicatorTargetRef = useRef2();
|
|
@@ -341,7 +344,11 @@ function Tabs({
|
|
|
341
344
|
return;
|
|
342
345
|
}
|
|
343
346
|
const listRect = list.getBoundingClientRect();
|
|
344
|
-
const
|
|
347
|
+
const tabRect = active.getBoundingClientRect();
|
|
348
|
+
const vertical = resolvedOrientation === "vertical";
|
|
349
|
+
const width = type === "rounded" && !vertical ? Math.min(24, tabRect.width) : tabRect.width;
|
|
350
|
+
const height = type === "rounded" && vertical ? Math.min(16, tabRect.height) : tabRect.height;
|
|
351
|
+
const rect = { left: tabRect.left + (tabRect.width - width) / 2, top: tabRect.top + (tabRect.height - height) / 2, width, height };
|
|
345
352
|
const x = rect.left - listRect.left - list.clientLeft + list.scrollLeft;
|
|
346
353
|
const y = rect.top - listRect.top - list.clientTop + list.scrollTop;
|
|
347
354
|
const previous = indicatorTargetRef.current;
|
|
@@ -360,7 +367,6 @@ function Tabs({
|
|
|
360
367
|
if (indicatorMotion === "stretch" && previous?.node === indicator && previous.key !== selectedKey && previous.position === resolvedPosition && !window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
361
368
|
const fromX = current.left - listRect.left - list.clientLeft + list.scrollLeft;
|
|
362
369
|
const fromY = current.top - listRect.top - list.clientTop + list.scrollTop;
|
|
363
|
-
const vertical = resolvedOrientation === "vertical";
|
|
364
370
|
const start = vertical ? Math.min(fromY, y) : Math.min(fromX, x);
|
|
365
371
|
const end = vertical ? Math.max(fromY + current.height, y + rect.height) : Math.max(fromX + current.width, x + rect.width);
|
|
366
372
|
indicator.animate([
|
|
@@ -453,7 +459,7 @@ function Tabs({
|
|
|
453
459
|
type === "tech-line" ? /* @__PURE__ */ jsx4("svg", { className: "sia-tabs__title-connector", viewBox: "0 0 32 40", "aria-hidden": "true", children: /* @__PURE__ */ jsx4("path", { d: "M0 39.25 H5 Q8 39.25 10 35.25 L28 3.75 Q29 1.75 32 1.75", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinejoin: "round" }) }) : null
|
|
454
460
|
] }) : null,
|
|
455
461
|
/* @__PURE__ */ jsxs4("div", { ref: listRef, style: resolvedOrientation === "horizontal" && overflow.width ? { width: overflow.width } : void 0, className: `sia-tabs__list${sliding ? " sia-tabs__list--sliding" : ""}`, role: "tablist", "aria-orientation": resolvedOrientation, children: [
|
|
456
|
-
sliding ? /* @__PURE__ */ jsx4("span", { ref: indicatorRef, className: `sia-tabs__indicator${indicatorMotion === "stretch" ? " sia-tabs__indicator--stretch" : ""}${type === "capsule" ? " sia-tabs__capsule-indicator" : ""}`, "aria-hidden": "true", children: type === "tech-line" ? /* @__PURE__ */ jsx4("span", { className: "sia-tabs__indicator-shape", "aria-hidden": "true" }) : null }, `${type}-${indicatorMotion}`) : null,
|
|
462
|
+
sliding ? /* @__PURE__ */ jsx4("span", { ref: indicatorRef, "data-indicator-position": resolvedIndicatorPosition, className: `sia-tabs__indicator${indicatorMotion === "stretch" ? " sia-tabs__indicator--stretch" : ""}${type === "capsule" ? " sia-tabs__capsule-indicator" : ""}`, "aria-hidden": "true", children: type === "tech-line" ? /* @__PURE__ */ jsx4("span", { className: "sia-tabs__indicator-shape", "aria-hidden": "true" }) : null }, `${type}-${indicatorMotion}`) : null,
|
|
457
463
|
items.map((item, index) => {
|
|
458
464
|
const selected = item.key === selectedKey;
|
|
459
465
|
const canClose = item.closable ?? closable;
|
|
@@ -766,7 +766,7 @@ interface TabItem {
|
|
|
766
766
|
closable?: boolean;
|
|
767
767
|
}
|
|
768
768
|
/** 选项卡的类型标识。 */
|
|
769
|
-
type TabsType = "line" | "card" | "pill" | "capsule" | "underline" | "tech" | "tech-line";
|
|
769
|
+
type TabsType = "line" | "card" | "pill" | "capsule" | "underline" | "rounded" | "tech" | "tech-line";
|
|
770
770
|
/** 选项卡沿水平方向或垂直方向排列。 */
|
|
771
771
|
type TabsOrientation = "horizontal" | "vertical";
|
|
772
772
|
/** 选项卡导航相对于内容区的位置。 */
|
|
@@ -793,12 +793,14 @@ interface TabsProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
|
793
793
|
/** 是否等选中框动画结束后再切换 items[].children,等待期间保留旧面板。默认 false,立即切换;true 时未访问的目标面板在动画结束后首次挂载,连续切换跳过未显示的中间目标。面板是否保留由 destroyInactiveTabPane 决定,与是否延迟无关。不能延迟父组件已执行的同步计算或 onChange 中的渲染,请将外部重内容更新放到 onAfterChange。 */
|
|
794
794
|
deferContent?: boolean;
|
|
795
795
|
/**
|
|
796
|
-
* 标签样式:line 线型、card 卡片、pill 胶囊、capsule 圆角胶囊、underline 紧凑下划线、tech 科技型、tech-line 折线科技型。
|
|
796
|
+
* 标签样式:line 线型、card 卡片、pill 胶囊、capsule 圆角胶囊、underline 紧凑下划线、rounded 圆角矩形背景配短指示线、tech 科技型、tech-line 折线科技型。
|
|
797
797
|
* @defaultValue "line"
|
|
798
798
|
*/
|
|
799
799
|
type?: TabsType;
|
|
800
|
-
/** 选中指示器的切换动效:stretch 朝目标方向先拉长再收拢,slide 同步平移并调整尺寸。line、underline 默认 stretch,其余样式默认 slide;card、pill 无独立指示器,不受此项影响。stretch 时长 300ms,首次定位及系统减少动态效果时不播放;支持四个方向,连续切换从当前显示位置续接。 */
|
|
800
|
+
/** 选中指示器的切换动效:stretch 朝目标方向先拉长再收拢,slide 同步平移并调整尺寸。line、underline、rounded 默认 stretch,其余样式默认 slide;card、pill 无独立指示器,不受此项影响。stretch 时长 300ms,首次定位及系统减少动态效果时不播放;支持四个方向,连续切换从当前显示位置续接。 */
|
|
801
801
|
indicatorMotion?: "slide" | "stretch";
|
|
802
|
+
/** 指示线位于标签的哪一侧,仅适用于 line、underline、rounded。横向标签可选 top / bottom,纵向标签可选 left / right;未指定或传入与排列方向不符的值时,默认朝向内容区(顶部标签为 bottom、底部为 top、左侧为 right、右侧为 left)。只移动指示线,不改变标签栏位置或分隔线;动态修改立即生效,并保留切换动效。 */
|
|
803
|
+
indicatorPosition?: TabsPosition;
|
|
802
804
|
/**
|
|
803
805
|
* 组件尺寸;用于调整控件高度、字号和间距。
|
|
804
806
|
* @defaultValue "medium"
|
|
@@ -841,7 +843,7 @@ interface TabsProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
|
841
843
|
onTabContextMenuClick?: (info: TabsContextMenuClickInfo) => void;
|
|
842
844
|
}
|
|
843
845
|
/** 选项卡组件;默认仅挂载首次激活的面板,切走后隐藏并保留,显式设置 destroyInactiveTabPane=true 可在切走后卸载。横向空间不足时,剩余标签收起到末尾的更多菜单,支持悬停或点击展开。设置确定高度或由父级弹性布局分配高度时,内容面板占满导航之外的剩余空间;未限定高度时按内容自然撑开。 */
|
|
844
|
-
declare function Tabs({ items, activeKey, defaultActiveKey, onChange, onAfterChange, deferContent, type, indicatorMotion, size, tabPosition, orientation, centered, tabBarTitle, tabBarExtraContent, contentGap, destroyInactiveTabPane, closable, onEdit, tabContextMenu, onTabContextMenuClick, className, ...props }: TabsProps): react.JSX.Element;
|
|
846
|
+
declare function Tabs({ items, activeKey, defaultActiveKey, onChange, onAfterChange, deferContent, type, indicatorMotion, indicatorPosition, size, tabPosition, orientation, centered, tabBarTitle, tabBarExtraContent, contentGap, destroyInactiveTabPane, closable, onEdit, tabContextMenu, onTabContextMenuClick, className, ...props }: TabsProps): react.JSX.Element;
|
|
845
847
|
|
|
846
848
|
/** 打开下拉菜单的触发方式。 */
|
|
847
849
|
type DropdownTrigger = "click" | "hover" | "contextMenu";
|
|
@@ -766,7 +766,7 @@ interface TabItem {
|
|
|
766
766
|
closable?: boolean;
|
|
767
767
|
}
|
|
768
768
|
/** 选项卡的类型标识。 */
|
|
769
|
-
type TabsType = "line" | "card" | "pill" | "capsule" | "underline" | "tech" | "tech-line";
|
|
769
|
+
type TabsType = "line" | "card" | "pill" | "capsule" | "underline" | "rounded" | "tech" | "tech-line";
|
|
770
770
|
/** 选项卡沿水平方向或垂直方向排列。 */
|
|
771
771
|
type TabsOrientation = "horizontal" | "vertical";
|
|
772
772
|
/** 选项卡导航相对于内容区的位置。 */
|
|
@@ -793,12 +793,14 @@ interface TabsProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
|
793
793
|
/** 是否等选中框动画结束后再切换 items[].children,等待期间保留旧面板。默认 false,立即切换;true 时未访问的目标面板在动画结束后首次挂载,连续切换跳过未显示的中间目标。面板是否保留由 destroyInactiveTabPane 决定,与是否延迟无关。不能延迟父组件已执行的同步计算或 onChange 中的渲染,请将外部重内容更新放到 onAfterChange。 */
|
|
794
794
|
deferContent?: boolean;
|
|
795
795
|
/**
|
|
796
|
-
* 标签样式:line 线型、card 卡片、pill 胶囊、capsule 圆角胶囊、underline 紧凑下划线、tech 科技型、tech-line 折线科技型。
|
|
796
|
+
* 标签样式:line 线型、card 卡片、pill 胶囊、capsule 圆角胶囊、underline 紧凑下划线、rounded 圆角矩形背景配短指示线、tech 科技型、tech-line 折线科技型。
|
|
797
797
|
* @defaultValue "line"
|
|
798
798
|
*/
|
|
799
799
|
type?: TabsType;
|
|
800
|
-
/** 选中指示器的切换动效:stretch 朝目标方向先拉长再收拢,slide 同步平移并调整尺寸。line、underline 默认 stretch,其余样式默认 slide;card、pill 无独立指示器,不受此项影响。stretch 时长 300ms,首次定位及系统减少动态效果时不播放;支持四个方向,连续切换从当前显示位置续接。 */
|
|
800
|
+
/** 选中指示器的切换动效:stretch 朝目标方向先拉长再收拢,slide 同步平移并调整尺寸。line、underline、rounded 默认 stretch,其余样式默认 slide;card、pill 无独立指示器,不受此项影响。stretch 时长 300ms,首次定位及系统减少动态效果时不播放;支持四个方向,连续切换从当前显示位置续接。 */
|
|
801
801
|
indicatorMotion?: "slide" | "stretch";
|
|
802
|
+
/** 指示线位于标签的哪一侧,仅适用于 line、underline、rounded。横向标签可选 top / bottom,纵向标签可选 left / right;未指定或传入与排列方向不符的值时,默认朝向内容区(顶部标签为 bottom、底部为 top、左侧为 right、右侧为 left)。只移动指示线,不改变标签栏位置或分隔线;动态修改立即生效,并保留切换动效。 */
|
|
803
|
+
indicatorPosition?: TabsPosition;
|
|
802
804
|
/**
|
|
803
805
|
* 组件尺寸;用于调整控件高度、字号和间距。
|
|
804
806
|
* @defaultValue "medium"
|
|
@@ -841,7 +843,7 @@ interface TabsProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
|
841
843
|
onTabContextMenuClick?: (info: TabsContextMenuClickInfo) => void;
|
|
842
844
|
}
|
|
843
845
|
/** 选项卡组件;默认仅挂载首次激活的面板,切走后隐藏并保留,显式设置 destroyInactiveTabPane=true 可在切走后卸载。横向空间不足时,剩余标签收起到末尾的更多菜单,支持悬停或点击展开。设置确定高度或由父级弹性布局分配高度时,内容面板占满导航之外的剩余空间;未限定高度时按内容自然撑开。 */
|
|
844
|
-
declare function Tabs({ items, activeKey, defaultActiveKey, onChange, onAfterChange, deferContent, type, indicatorMotion, size, tabPosition, orientation, centered, tabBarTitle, tabBarExtraContent, contentGap, destroyInactiveTabPane, closable, onEdit, tabContextMenu, onTabContextMenuClick, className, ...props }: TabsProps): react.JSX.Element;
|
|
846
|
+
declare function Tabs({ items, activeKey, defaultActiveKey, onChange, onAfterChange, deferContent, type, indicatorMotion, indicatorPosition, size, tabPosition, orientation, centered, tabBarTitle, tabBarExtraContent, contentGap, destroyInactiveTabPane, closable, onEdit, tabContextMenu, onTabContextMenuClick, className, ...props }: TabsProps): react.JSX.Element;
|
|
845
847
|
|
|
846
848
|
/** 打开下拉菜单的触发方式。 */
|
|
847
849
|
type DropdownTrigger = "click" | "hover" | "contextMenu";
|
package/dist/core.cjs
CHANGED
|
@@ -2384,7 +2384,8 @@ function Tabs({
|
|
|
2384
2384
|
onAfterChange,
|
|
2385
2385
|
deferContent = false,
|
|
2386
2386
|
type = "line",
|
|
2387
|
-
indicatorMotion = type === "line" || type === "underline" ? "stretch" : "slide",
|
|
2387
|
+
indicatorMotion = type === "line" || type === "underline" || type === "rounded" ? "stretch" : "slide",
|
|
2388
|
+
indicatorPosition,
|
|
2388
2389
|
size = "medium",
|
|
2389
2390
|
tabPosition,
|
|
2390
2391
|
orientation = "horizontal",
|
|
@@ -2408,7 +2409,9 @@ function Tabs({
|
|
|
2408
2409
|
const enabledItems = (0, import_react11.useMemo)(() => items.filter((item) => !item.disabled), [items]);
|
|
2409
2410
|
const resolvedPosition = tabPosition ?? (orientation === "vertical" ? "left" : "top");
|
|
2410
2411
|
const resolvedOrientation = resolvedPosition === "left" || resolvedPosition === "right" ? "vertical" : "horizontal";
|
|
2411
|
-
const
|
|
2412
|
+
const defaultIndicatorPosition = { top: "bottom", bottom: "top", left: "right", right: "left" }[resolvedPosition];
|
|
2413
|
+
const resolvedIndicatorPosition = indicatorPosition && (resolvedOrientation === "vertical" ? ["left", "right"] : ["top", "bottom"]).includes(indicatorPosition) ? indicatorPosition : defaultIndicatorPosition;
|
|
2414
|
+
const sliding = ["capsule", "line", "underline", "rounded", "tech", "tech-line"].includes(type);
|
|
2412
2415
|
const listRef = (0, import_react11.useRef)(null);
|
|
2413
2416
|
const indicatorRef = (0, import_react11.useRef)(null);
|
|
2414
2417
|
const indicatorTargetRef = (0, import_react11.useRef)();
|
|
@@ -2470,7 +2473,11 @@ function Tabs({
|
|
|
2470
2473
|
return;
|
|
2471
2474
|
}
|
|
2472
2475
|
const listRect = list.getBoundingClientRect();
|
|
2473
|
-
const
|
|
2476
|
+
const tabRect = active.getBoundingClientRect();
|
|
2477
|
+
const vertical = resolvedOrientation === "vertical";
|
|
2478
|
+
const width = type === "rounded" && !vertical ? Math.min(24, tabRect.width) : tabRect.width;
|
|
2479
|
+
const height = type === "rounded" && vertical ? Math.min(16, tabRect.height) : tabRect.height;
|
|
2480
|
+
const rect = { left: tabRect.left + (tabRect.width - width) / 2, top: tabRect.top + (tabRect.height - height) / 2, width, height };
|
|
2474
2481
|
const x = rect.left - listRect.left - list.clientLeft + list.scrollLeft;
|
|
2475
2482
|
const y = rect.top - listRect.top - list.clientTop + list.scrollTop;
|
|
2476
2483
|
const previous = indicatorTargetRef.current;
|
|
@@ -2489,7 +2496,6 @@ function Tabs({
|
|
|
2489
2496
|
if (indicatorMotion === "stretch" && previous?.node === indicator && previous.key !== selectedKey && previous.position === resolvedPosition && !window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
2490
2497
|
const fromX = current.left - listRect.left - list.clientLeft + list.scrollLeft;
|
|
2491
2498
|
const fromY = current.top - listRect.top - list.clientTop + list.scrollTop;
|
|
2492
|
-
const vertical = resolvedOrientation === "vertical";
|
|
2493
2499
|
const start = vertical ? Math.min(fromY, y) : Math.min(fromX, x);
|
|
2494
2500
|
const end = vertical ? Math.max(fromY + current.height, y + rect.height) : Math.max(fromX + current.width, x + rect.width);
|
|
2495
2501
|
indicator.animate([
|
|
@@ -2582,7 +2588,7 @@ function Tabs({
|
|
|
2582
2588
|
type === "tech-line" ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("svg", { className: "sia-tabs__title-connector", viewBox: "0 0 32 40", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("path", { d: "M0 39.25 H5 Q8 39.25 10 35.25 L28 3.75 Q29 1.75 32 1.75", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinejoin: "round" }) }) : null
|
|
2583
2589
|
] }) : null,
|
|
2584
2590
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { ref: listRef, style: resolvedOrientation === "horizontal" && overflow.width ? { width: overflow.width } : void 0, className: `sia-tabs__list${sliding ? " sia-tabs__list--sliding" : ""}`, role: "tablist", "aria-orientation": resolvedOrientation, children: [
|
|
2585
|
-
sliding ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { ref: indicatorRef, className: `sia-tabs__indicator${indicatorMotion === "stretch" ? " sia-tabs__indicator--stretch" : ""}${type === "capsule" ? " sia-tabs__capsule-indicator" : ""}`, "aria-hidden": "true", children: type === "tech-line" ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "sia-tabs__indicator-shape", "aria-hidden": "true" }) : null }, `${type}-${indicatorMotion}`) : null,
|
|
2591
|
+
sliding ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { ref: indicatorRef, "data-indicator-position": resolvedIndicatorPosition, className: `sia-tabs__indicator${indicatorMotion === "stretch" ? " sia-tabs__indicator--stretch" : ""}${type === "capsule" ? " sia-tabs__capsule-indicator" : ""}`, "aria-hidden": "true", children: type === "tech-line" ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "sia-tabs__indicator-shape", "aria-hidden": "true" }) : null }, `${type}-${indicatorMotion}`) : null,
|
|
2586
2592
|
items.map((item, index) => {
|
|
2587
2593
|
const selected = item.key === selectedKey;
|
|
2588
2594
|
const canClose = item.closable ?? closable;
|
package/dist/core.css
CHANGED
|
@@ -5059,37 +5059,72 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
5059
5059
|
.sia-tabs--line > .sia-tabs__header .sia-tabs__tab[aria-selected=true]::after {
|
|
5060
5060
|
display: none;
|
|
5061
5061
|
}
|
|
5062
|
-
.sia-tabs--line > .sia-tabs__header .sia-tabs__indicator::after {
|
|
5062
|
+
.sia-tabs:is(.sia-tabs--line, .sia-tabs--rounded) > .sia-tabs__header .sia-tabs__indicator::after {
|
|
5063
5063
|
position: absolute;
|
|
5064
5064
|
content: "";
|
|
5065
5065
|
background: var(--sia-tabs-accent, var(--sia-color-primary));
|
|
5066
5066
|
}
|
|
5067
|
-
.sia-tabs--line.sia-tabs--
|
|
5068
|
-
|
|
5069
|
-
left: 0;
|
|
5070
|
-
right: 0;
|
|
5067
|
+
.sia-tabs:is(.sia-tabs--line, .sia-tabs--rounded) > .sia-tabs__header .sia-tabs__indicator[data-indicator-position=bottom]::after {
|
|
5068
|
+
inset: auto 0 -1px 0;
|
|
5071
5069
|
height: 2px;
|
|
5072
5070
|
border-radius: 2px 2px 0 0;
|
|
5073
5071
|
}
|
|
5074
|
-
.sia-tabs--line.sia-tabs--
|
|
5075
|
-
|
|
5076
|
-
left: 0;
|
|
5077
|
-
right: 0;
|
|
5072
|
+
.sia-tabs:is(.sia-tabs--line, .sia-tabs--rounded) > .sia-tabs__header .sia-tabs__indicator[data-indicator-position=top]::after {
|
|
5073
|
+
inset: -1px 0 auto 0;
|
|
5078
5074
|
height: 2px;
|
|
5079
5075
|
border-radius: 0 0 2px 2px;
|
|
5080
5076
|
}
|
|
5081
|
-
.sia-tabs--line.sia-tabs--
|
|
5082
|
-
|
|
5083
|
-
bottom: 0;
|
|
5084
|
-
right: -1px;
|
|
5077
|
+
.sia-tabs:is(.sia-tabs--line, .sia-tabs--rounded) > .sia-tabs__header .sia-tabs__indicator[data-indicator-position=right]::after {
|
|
5078
|
+
inset: 0 -1px 0 auto;
|
|
5085
5079
|
width: 2px;
|
|
5086
5080
|
}
|
|
5087
|
-
.sia-tabs--line.sia-tabs--
|
|
5088
|
-
|
|
5089
|
-
bottom: 0;
|
|
5090
|
-
left: -1px;
|
|
5081
|
+
.sia-tabs:is(.sia-tabs--line, .sia-tabs--rounded) > .sia-tabs__header .sia-tabs__indicator[data-indicator-position=left]::after {
|
|
5082
|
+
inset: 0 auto 0 -1px;
|
|
5091
5083
|
width: 2px;
|
|
5092
5084
|
}
|
|
5085
|
+
.sia-tabs--rounded > .sia-tabs__header .sia-tabs__list {
|
|
5086
|
+
gap: 4px;
|
|
5087
|
+
}
|
|
5088
|
+
.sia-tabs--rounded > .sia-tabs__header .sia-tabs__tab {
|
|
5089
|
+
border-radius: 8px;
|
|
5090
|
+
color: var(--sia-color-text);
|
|
5091
|
+
transition: background-color 160ms ease;
|
|
5092
|
+
}
|
|
5093
|
+
.sia-tabs--rounded > .sia-tabs__header .sia-tabs__tab:hover:not(:disabled) {
|
|
5094
|
+
color: var(--sia-color-text);
|
|
5095
|
+
background: var(--sia-color-control-hover);
|
|
5096
|
+
}
|
|
5097
|
+
.sia-tabs--rounded > .sia-tabs__header .sia-tabs__tab[aria-selected=true] {
|
|
5098
|
+
background: var(--sia-color-control-hover);
|
|
5099
|
+
}
|
|
5100
|
+
.sia-tabs--rounded > .sia-tabs__header .sia-tabs__tab:focus-visible {
|
|
5101
|
+
outline: 2px solid var(--sia-color-primary);
|
|
5102
|
+
outline-offset: -2px;
|
|
5103
|
+
}
|
|
5104
|
+
.sia-tabs--rounded > .sia-tabs__header .sia-tabs__indicator {
|
|
5105
|
+
z-index: 1;
|
|
5106
|
+
}
|
|
5107
|
+
.sia-tabs.sia-tabs--rounded > .sia-tabs__header .sia-tabs__indicator[data-indicator-position=left]::after {
|
|
5108
|
+
left: 4px;
|
|
5109
|
+
border-radius: 2px;
|
|
5110
|
+
}
|
|
5111
|
+
.sia-tabs.sia-tabs--rounded > .sia-tabs__header .sia-tabs__indicator[data-indicator-position=right]::after {
|
|
5112
|
+
right: 4px;
|
|
5113
|
+
border-radius: 2px;
|
|
5114
|
+
}
|
|
5115
|
+
.sia-tabs.sia-tabs--rounded > .sia-tabs__header .sia-tabs__indicator[data-indicator-position=top]::after {
|
|
5116
|
+
top: 4px;
|
|
5117
|
+
border-radius: 2px;
|
|
5118
|
+
}
|
|
5119
|
+
.sia-tabs.sia-tabs--rounded > .sia-tabs__header .sia-tabs__indicator[data-indicator-position=bottom]::after {
|
|
5120
|
+
bottom: 4px;
|
|
5121
|
+
border-radius: 2px;
|
|
5122
|
+
}
|
|
5123
|
+
@media (prefers-reduced-motion: reduce) {
|
|
5124
|
+
.sia-tabs--rounded > .sia-tabs__header .sia-tabs__tab {
|
|
5125
|
+
transition: none;
|
|
5126
|
+
}
|
|
5127
|
+
}
|
|
5093
5128
|
.sia-tabs--tech > .sia-tabs__header .sia-tabs__tab[aria-selected=true]::before,
|
|
5094
5129
|
.sia-tabs--tech > .sia-tabs__header .sia-tabs__tab[aria-selected=true]::after {
|
|
5095
5130
|
display: none;
|
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, W as Input, X as InputProps, a2 as MessageConfig, a3 as MessageHandle, a4 as MessageKey, a5 as MessageType, ad as Progress, ae as ProgressProps, af as ProgressStatus, ai as Result, aj as ResultProps, ak as ResultStatus, al as Segmented, am as SegmentedOption, an as SegmentedProps, ao as SegmentedValue, av as TabItem, aw as Tabs, ay as TabsOrientation, az as TabsPosition, aA as TabsProps, aB as TabsType, aC as Tag, aD as TagProps, aE as TagSize, T as TagStatus, aF as TagVariant, aJ as Toolbar, aK as ToolbarItem, aL as ToolbarProps, aW as Typography, aX as TypographyLinkProps, aY as TypographyProps, aZ as TypographyTitleProps, a_ as TypographyType, a$ as Upload, b0 as UploadChangeInfo, b1 as UploadDraggerProps, b2 as UploadFile, b3 as UploadFileStatus, b6 as UploadProps, ba as UploadRequestOptions, be 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, W as Input, X as InputProps, a2 as MessageConfig, a3 as MessageHandle, a4 as MessageKey, a5 as MessageType, ad as Progress, ae as ProgressProps, af as ProgressStatus, ai as Result, aj as ResultProps, ak as ResultStatus, al as Segmented, am as SegmentedOption, an as SegmentedProps, ao as SegmentedValue, av as TabItem, aw as Tabs, ay as TabsOrientation, az as TabsPosition, aA as TabsProps, aB as TabsType, aC as Tag, aD as TagProps, aE as TagSize, T as TagStatus, aF as TagVariant, aJ as Toolbar, aK as ToolbarItem, aL as ToolbarProps, aW as Typography, aX as TypographyLinkProps, aY as TypographyProps, aZ as TypographyTitleProps, a_ as TypographyType, a$ as Upload, b0 as UploadChangeInfo, b1 as UploadDraggerProps, b2 as UploadFile, b3 as UploadFileStatus, b6 as UploadProps, ba as UploadRequestOptions, be as message } from './core-DYo5C4Si.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-Y0e9kaxE.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, W as Input, X as InputProps, a2 as MessageConfig, a3 as MessageHandle, a4 as MessageKey, a5 as MessageType, ad as Progress, ae as ProgressProps, af as ProgressStatus, ai as Result, aj as ResultProps, ak as ResultStatus, al as Segmented, am as SegmentedOption, an as SegmentedProps, ao as SegmentedValue, av as TabItem, aw as Tabs, ay as TabsOrientation, az as TabsPosition, aA as TabsProps, aB as TabsType, aC as Tag, aD as TagProps, aE as TagSize, T as TagStatus, aF as TagVariant, aJ as Toolbar, aK as ToolbarItem, aL as ToolbarProps, aW as Typography, aX as TypographyLinkProps, aY as TypographyProps, aZ as TypographyTitleProps, a_ as TypographyType, a$ as Upload, b0 as UploadChangeInfo, b1 as UploadDraggerProps, b2 as UploadFile, b3 as UploadFileStatus, b6 as UploadProps, ba as UploadRequestOptions, be 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, W as Input, X as InputProps, a2 as MessageConfig, a3 as MessageHandle, a4 as MessageKey, a5 as MessageType, ad as Progress, ae as ProgressProps, af as ProgressStatus, ai as Result, aj as ResultProps, ak as ResultStatus, al as Segmented, am as SegmentedOption, an as SegmentedProps, ao as SegmentedValue, av as TabItem, aw as Tabs, ay as TabsOrientation, az as TabsPosition, aA as TabsProps, aB as TabsType, aC as Tag, aD as TagProps, aE as TagSize, T as TagStatus, aF as TagVariant, aJ as Toolbar, aK as ToolbarItem, aL as ToolbarProps, aW as Typography, aX as TypographyLinkProps, aY as TypographyProps, aZ as TypographyTitleProps, a_ as TypographyType, a$ as Upload, b0 as UploadChangeInfo, b1 as UploadDraggerProps, b2 as UploadFile, b3 as UploadFileStatus, b6 as UploadProps, ba as UploadRequestOptions, be as message } from './core-sWwvVAmP.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-DeD4O8FL.js';
|
|
4
4
|
import 'react';
|
package/dist/core.js
CHANGED
package/dist/game.css
CHANGED
|
@@ -5068,37 +5068,72 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
5068
5068
|
.sia-tabs--line > .sia-tabs__header .sia-tabs__tab[aria-selected=true]::after {
|
|
5069
5069
|
display: none;
|
|
5070
5070
|
}
|
|
5071
|
-
.sia-tabs--line > .sia-tabs__header .sia-tabs__indicator::after {
|
|
5071
|
+
.sia-tabs:is(.sia-tabs--line, .sia-tabs--rounded) > .sia-tabs__header .sia-tabs__indicator::after {
|
|
5072
5072
|
position: absolute;
|
|
5073
5073
|
content: "";
|
|
5074
5074
|
background: var(--sia-tabs-accent, var(--sia-color-primary));
|
|
5075
5075
|
}
|
|
5076
|
-
.sia-tabs--line.sia-tabs--
|
|
5077
|
-
|
|
5078
|
-
left: 0;
|
|
5079
|
-
right: 0;
|
|
5076
|
+
.sia-tabs:is(.sia-tabs--line, .sia-tabs--rounded) > .sia-tabs__header .sia-tabs__indicator[data-indicator-position=bottom]::after {
|
|
5077
|
+
inset: auto 0 -1px 0;
|
|
5080
5078
|
height: 2px;
|
|
5081
5079
|
border-radius: 2px 2px 0 0;
|
|
5082
5080
|
}
|
|
5083
|
-
.sia-tabs--line.sia-tabs--
|
|
5084
|
-
|
|
5085
|
-
left: 0;
|
|
5086
|
-
right: 0;
|
|
5081
|
+
.sia-tabs:is(.sia-tabs--line, .sia-tabs--rounded) > .sia-tabs__header .sia-tabs__indicator[data-indicator-position=top]::after {
|
|
5082
|
+
inset: -1px 0 auto 0;
|
|
5087
5083
|
height: 2px;
|
|
5088
5084
|
border-radius: 0 0 2px 2px;
|
|
5089
5085
|
}
|
|
5090
|
-
.sia-tabs--line.sia-tabs--
|
|
5091
|
-
|
|
5092
|
-
bottom: 0;
|
|
5093
|
-
right: -1px;
|
|
5086
|
+
.sia-tabs:is(.sia-tabs--line, .sia-tabs--rounded) > .sia-tabs__header .sia-tabs__indicator[data-indicator-position=right]::after {
|
|
5087
|
+
inset: 0 -1px 0 auto;
|
|
5094
5088
|
width: 2px;
|
|
5095
5089
|
}
|
|
5096
|
-
.sia-tabs--line.sia-tabs--
|
|
5097
|
-
|
|
5098
|
-
bottom: 0;
|
|
5099
|
-
left: -1px;
|
|
5090
|
+
.sia-tabs:is(.sia-tabs--line, .sia-tabs--rounded) > .sia-tabs__header .sia-tabs__indicator[data-indicator-position=left]::after {
|
|
5091
|
+
inset: 0 auto 0 -1px;
|
|
5100
5092
|
width: 2px;
|
|
5101
5093
|
}
|
|
5094
|
+
.sia-tabs--rounded > .sia-tabs__header .sia-tabs__list {
|
|
5095
|
+
gap: 4px;
|
|
5096
|
+
}
|
|
5097
|
+
.sia-tabs--rounded > .sia-tabs__header .sia-tabs__tab {
|
|
5098
|
+
border-radius: 8px;
|
|
5099
|
+
color: var(--sia-color-text);
|
|
5100
|
+
transition: background-color 160ms ease;
|
|
5101
|
+
}
|
|
5102
|
+
.sia-tabs--rounded > .sia-tabs__header .sia-tabs__tab:hover:not(:disabled) {
|
|
5103
|
+
color: var(--sia-color-text);
|
|
5104
|
+
background: var(--sia-color-control-hover);
|
|
5105
|
+
}
|
|
5106
|
+
.sia-tabs--rounded > .sia-tabs__header .sia-tabs__tab[aria-selected=true] {
|
|
5107
|
+
background: var(--sia-color-control-hover);
|
|
5108
|
+
}
|
|
5109
|
+
.sia-tabs--rounded > .sia-tabs__header .sia-tabs__tab:focus-visible {
|
|
5110
|
+
outline: 2px solid var(--sia-color-primary);
|
|
5111
|
+
outline-offset: -2px;
|
|
5112
|
+
}
|
|
5113
|
+
.sia-tabs--rounded > .sia-tabs__header .sia-tabs__indicator {
|
|
5114
|
+
z-index: 1;
|
|
5115
|
+
}
|
|
5116
|
+
.sia-tabs.sia-tabs--rounded > .sia-tabs__header .sia-tabs__indicator[data-indicator-position=left]::after {
|
|
5117
|
+
left: 4px;
|
|
5118
|
+
border-radius: 2px;
|
|
5119
|
+
}
|
|
5120
|
+
.sia-tabs.sia-tabs--rounded > .sia-tabs__header .sia-tabs__indicator[data-indicator-position=right]::after {
|
|
5121
|
+
right: 4px;
|
|
5122
|
+
border-radius: 2px;
|
|
5123
|
+
}
|
|
5124
|
+
.sia-tabs.sia-tabs--rounded > .sia-tabs__header .sia-tabs__indicator[data-indicator-position=top]::after {
|
|
5125
|
+
top: 4px;
|
|
5126
|
+
border-radius: 2px;
|
|
5127
|
+
}
|
|
5128
|
+
.sia-tabs.sia-tabs--rounded > .sia-tabs__header .sia-tabs__indicator[data-indicator-position=bottom]::after {
|
|
5129
|
+
bottom: 4px;
|
|
5130
|
+
border-radius: 2px;
|
|
5131
|
+
}
|
|
5132
|
+
@media (prefers-reduced-motion: reduce) {
|
|
5133
|
+
.sia-tabs--rounded > .sia-tabs__header .sia-tabs__tab {
|
|
5134
|
+
transition: none;
|
|
5135
|
+
}
|
|
5136
|
+
}
|
|
5102
5137
|
.sia-tabs--tech > .sia-tabs__header .sia-tabs__tab[aria-selected=true]::before,
|
|
5103
5138
|
.sia-tabs--tech > .sia-tabs__header .sia-tabs__tab[aria-selected=true]::after {
|
|
5104
5139
|
display: none;
|
package/dist/index.cjs
CHANGED
|
@@ -12725,7 +12725,8 @@ function Tabs({
|
|
|
12725
12725
|
onAfterChange,
|
|
12726
12726
|
deferContent = false,
|
|
12727
12727
|
type = "line",
|
|
12728
|
-
indicatorMotion = type === "line" || type === "underline" ? "stretch" : "slide",
|
|
12728
|
+
indicatorMotion = type === "line" || type === "underline" || type === "rounded" ? "stretch" : "slide",
|
|
12729
|
+
indicatorPosition,
|
|
12729
12730
|
size = "medium",
|
|
12730
12731
|
tabPosition,
|
|
12731
12732
|
orientation = "horizontal",
|
|
@@ -12749,7 +12750,9 @@ function Tabs({
|
|
|
12749
12750
|
const enabledItems = (0, import_react49.useMemo)(() => items.filter((item) => !item.disabled), [items]);
|
|
12750
12751
|
const resolvedPosition = tabPosition ?? (orientation === "vertical" ? "left" : "top");
|
|
12751
12752
|
const resolvedOrientation = resolvedPosition === "left" || resolvedPosition === "right" ? "vertical" : "horizontal";
|
|
12752
|
-
const
|
|
12753
|
+
const defaultIndicatorPosition = { top: "bottom", bottom: "top", left: "right", right: "left" }[resolvedPosition];
|
|
12754
|
+
const resolvedIndicatorPosition = indicatorPosition && (resolvedOrientation === "vertical" ? ["left", "right"] : ["top", "bottom"]).includes(indicatorPosition) ? indicatorPosition : defaultIndicatorPosition;
|
|
12755
|
+
const sliding = ["capsule", "line", "underline", "rounded", "tech", "tech-line"].includes(type);
|
|
12753
12756
|
const listRef = (0, import_react49.useRef)(null);
|
|
12754
12757
|
const indicatorRef = (0, import_react49.useRef)(null);
|
|
12755
12758
|
const indicatorTargetRef = (0, import_react49.useRef)();
|
|
@@ -12811,7 +12814,11 @@ function Tabs({
|
|
|
12811
12814
|
return;
|
|
12812
12815
|
}
|
|
12813
12816
|
const listRect = list.getBoundingClientRect();
|
|
12814
|
-
const
|
|
12817
|
+
const tabRect = active.getBoundingClientRect();
|
|
12818
|
+
const vertical = resolvedOrientation === "vertical";
|
|
12819
|
+
const width = type === "rounded" && !vertical ? Math.min(24, tabRect.width) : tabRect.width;
|
|
12820
|
+
const height = type === "rounded" && vertical ? Math.min(16, tabRect.height) : tabRect.height;
|
|
12821
|
+
const rect = { left: tabRect.left + (tabRect.width - width) / 2, top: tabRect.top + (tabRect.height - height) / 2, width, height };
|
|
12815
12822
|
const x = rect.left - listRect.left - list.clientLeft + list.scrollLeft;
|
|
12816
12823
|
const y = rect.top - listRect.top - list.clientTop + list.scrollTop;
|
|
12817
12824
|
const previous = indicatorTargetRef.current;
|
|
@@ -12830,7 +12837,6 @@ function Tabs({
|
|
|
12830
12837
|
if (indicatorMotion === "stretch" && previous?.node === indicator && previous.key !== selectedKey && previous.position === resolvedPosition && !window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
|
|
12831
12838
|
const fromX = current.left - listRect.left - list.clientLeft + list.scrollLeft;
|
|
12832
12839
|
const fromY = current.top - listRect.top - list.clientTop + list.scrollTop;
|
|
12833
|
-
const vertical = resolvedOrientation === "vertical";
|
|
12834
12840
|
const start = vertical ? Math.min(fromY, y) : Math.min(fromX, x);
|
|
12835
12841
|
const end = vertical ? Math.max(fromY + current.height, y + rect.height) : Math.max(fromX + current.width, x + rect.width);
|
|
12836
12842
|
indicator.animate([
|
|
@@ -12923,7 +12929,7 @@ function Tabs({
|
|
|
12923
12929
|
type === "tech-line" ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("svg", { className: "sia-tabs__title-connector", viewBox: "0 0 32 40", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { d: "M0 39.25 H5 Q8 39.25 10 35.25 L28 3.75 Q29 1.75 32 1.75", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinejoin: "round" }) }) : null
|
|
12924
12930
|
] }) : null,
|
|
12925
12931
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { ref: listRef, style: resolvedOrientation === "horizontal" && overflow.width ? { width: overflow.width } : void 0, className: `sia-tabs__list${sliding ? " sia-tabs__list--sliding" : ""}`, role: "tablist", "aria-orientation": resolvedOrientation, children: [
|
|
12926
|
-
sliding ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { ref: indicatorRef, className: `sia-tabs__indicator${indicatorMotion === "stretch" ? " sia-tabs__indicator--stretch" : ""}${type === "capsule" ? " sia-tabs__capsule-indicator" : ""}`, "aria-hidden": "true", children: type === "tech-line" ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "sia-tabs__indicator-shape", "aria-hidden": "true" }) : null }, `${type}-${indicatorMotion}`) : null,
|
|
12932
|
+
sliding ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { ref: indicatorRef, "data-indicator-position": resolvedIndicatorPosition, className: `sia-tabs__indicator${indicatorMotion === "stretch" ? " sia-tabs__indicator--stretch" : ""}${type === "capsule" ? " sia-tabs__capsule-indicator" : ""}`, "aria-hidden": "true", children: type === "tech-line" ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { className: "sia-tabs__indicator-shape", "aria-hidden": "true" }) : null }, `${type}-${indicatorMotion}`) : null,
|
|
12927
12933
|
items.map((item, index) => {
|
|
12928
12934
|
const selected = item.key === selectedKey;
|
|
12929
12935
|
const canClose = item.closable ?? closable;
|
package/dist/index.css
CHANGED
|
@@ -5059,37 +5059,72 @@ fieldset:disabled .sia-input-number__floating-placeholder {
|
|
|
5059
5059
|
.sia-tabs--line > .sia-tabs__header .sia-tabs__tab[aria-selected=true]::after {
|
|
5060
5060
|
display: none;
|
|
5061
5061
|
}
|
|
5062
|
-
.sia-tabs--line > .sia-tabs__header .sia-tabs__indicator::after {
|
|
5062
|
+
.sia-tabs:is(.sia-tabs--line, .sia-tabs--rounded) > .sia-tabs__header .sia-tabs__indicator::after {
|
|
5063
5063
|
position: absolute;
|
|
5064
5064
|
content: "";
|
|
5065
5065
|
background: var(--sia-tabs-accent, var(--sia-color-primary));
|
|
5066
5066
|
}
|
|
5067
|
-
.sia-tabs--line.sia-tabs--
|
|
5068
|
-
|
|
5069
|
-
left: 0;
|
|
5070
|
-
right: 0;
|
|
5067
|
+
.sia-tabs:is(.sia-tabs--line, .sia-tabs--rounded) > .sia-tabs__header .sia-tabs__indicator[data-indicator-position=bottom]::after {
|
|
5068
|
+
inset: auto 0 -1px 0;
|
|
5071
5069
|
height: 2px;
|
|
5072
5070
|
border-radius: 2px 2px 0 0;
|
|
5073
5071
|
}
|
|
5074
|
-
.sia-tabs--line.sia-tabs--
|
|
5075
|
-
|
|
5076
|
-
left: 0;
|
|
5077
|
-
right: 0;
|
|
5072
|
+
.sia-tabs:is(.sia-tabs--line, .sia-tabs--rounded) > .sia-tabs__header .sia-tabs__indicator[data-indicator-position=top]::after {
|
|
5073
|
+
inset: -1px 0 auto 0;
|
|
5078
5074
|
height: 2px;
|
|
5079
5075
|
border-radius: 0 0 2px 2px;
|
|
5080
5076
|
}
|
|
5081
|
-
.sia-tabs--line.sia-tabs--
|
|
5082
|
-
|
|
5083
|
-
bottom: 0;
|
|
5084
|
-
right: -1px;
|
|
5077
|
+
.sia-tabs:is(.sia-tabs--line, .sia-tabs--rounded) > .sia-tabs__header .sia-tabs__indicator[data-indicator-position=right]::after {
|
|
5078
|
+
inset: 0 -1px 0 auto;
|
|
5085
5079
|
width: 2px;
|
|
5086
5080
|
}
|
|
5087
|
-
.sia-tabs--line.sia-tabs--
|
|
5088
|
-
|
|
5089
|
-
bottom: 0;
|
|
5090
|
-
left: -1px;
|
|
5081
|
+
.sia-tabs:is(.sia-tabs--line, .sia-tabs--rounded) > .sia-tabs__header .sia-tabs__indicator[data-indicator-position=left]::after {
|
|
5082
|
+
inset: 0 auto 0 -1px;
|
|
5091
5083
|
width: 2px;
|
|
5092
5084
|
}
|
|
5085
|
+
.sia-tabs--rounded > .sia-tabs__header .sia-tabs__list {
|
|
5086
|
+
gap: 4px;
|
|
5087
|
+
}
|
|
5088
|
+
.sia-tabs--rounded > .sia-tabs__header .sia-tabs__tab {
|
|
5089
|
+
border-radius: 8px;
|
|
5090
|
+
color: var(--sia-color-text);
|
|
5091
|
+
transition: background-color 160ms ease;
|
|
5092
|
+
}
|
|
5093
|
+
.sia-tabs--rounded > .sia-tabs__header .sia-tabs__tab:hover:not(:disabled) {
|
|
5094
|
+
color: var(--sia-color-text);
|
|
5095
|
+
background: var(--sia-color-control-hover);
|
|
5096
|
+
}
|
|
5097
|
+
.sia-tabs--rounded > .sia-tabs__header .sia-tabs__tab[aria-selected=true] {
|
|
5098
|
+
background: var(--sia-color-control-hover);
|
|
5099
|
+
}
|
|
5100
|
+
.sia-tabs--rounded > .sia-tabs__header .sia-tabs__tab:focus-visible {
|
|
5101
|
+
outline: 2px solid var(--sia-color-primary);
|
|
5102
|
+
outline-offset: -2px;
|
|
5103
|
+
}
|
|
5104
|
+
.sia-tabs--rounded > .sia-tabs__header .sia-tabs__indicator {
|
|
5105
|
+
z-index: 1;
|
|
5106
|
+
}
|
|
5107
|
+
.sia-tabs.sia-tabs--rounded > .sia-tabs__header .sia-tabs__indicator[data-indicator-position=left]::after {
|
|
5108
|
+
left: 4px;
|
|
5109
|
+
border-radius: 2px;
|
|
5110
|
+
}
|
|
5111
|
+
.sia-tabs.sia-tabs--rounded > .sia-tabs__header .sia-tabs__indicator[data-indicator-position=right]::after {
|
|
5112
|
+
right: 4px;
|
|
5113
|
+
border-radius: 2px;
|
|
5114
|
+
}
|
|
5115
|
+
.sia-tabs.sia-tabs--rounded > .sia-tabs__header .sia-tabs__indicator[data-indicator-position=top]::after {
|
|
5116
|
+
top: 4px;
|
|
5117
|
+
border-radius: 2px;
|
|
5118
|
+
}
|
|
5119
|
+
.sia-tabs.sia-tabs--rounded > .sia-tabs__header .sia-tabs__indicator[data-indicator-position=bottom]::after {
|
|
5120
|
+
bottom: 4px;
|
|
5121
|
+
border-radius: 2px;
|
|
5122
|
+
}
|
|
5123
|
+
@media (prefers-reduced-motion: reduce) {
|
|
5124
|
+
.sia-tabs--rounded > .sia-tabs__header .sia-tabs__tab {
|
|
5125
|
+
transition: none;
|
|
5126
|
+
}
|
|
5127
|
+
}
|
|
5093
5128
|
.sia-tabs--tech > .sia-tabs__header .sia-tabs__tab[aria-selected=true]::before,
|
|
5094
5129
|
.sia-tabs--tech > .sia-tabs__header .sia-tabs__tab[aria-selected=true]::after {
|
|
5095
5130
|
display: none;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes, RefObject } from 'react';
|
|
3
|
-
import { T as TagStatus, B as BadgeProps } from './core-
|
|
4
|
-
export { a as Badge, b as BadgeRibbonProps, c as BadgeStatus, d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, C as Calendar, g as CalendarProps, h as Card, i as CardAccent, j as CardProps, k as Carousel, l as CarouselProps, m as CarouselRef, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, D as Dropdown, r as DropdownButtonProps, s as DropdownMenuProps, t as DropdownOpenSource, u as DropdownPlacement, v as DropdownProps, w as DropdownTrigger, F as FILLED_ICON_NAMES, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, H as FloatingPlacement, I as FloatingTrigger, J as ICON_NAMES, K as Icon, L as IconName, M as IconProps, N as IconVariant, O as Image, P as ImagePreview, Q as ImagePreviewConfig, R as ImagePreviewGroup, S as ImagePreviewGroupProps, U as ImagePreviewProps, V as ImageProps, W as Input, X as InputProps, Y as Menu, Z as MenuClickInfo, _ as MenuItem, $ as MenuMode, a0 as MenuProps, a1 as MenuTheme, a2 as MessageConfig, a3 as MessageHandle, a4 as MessageKey, a5 as MessageType, a6 as NotificationConfig, a7 as NotificationPlacement, a8 as NotificationType, a9 as Popconfirm, aa as PopconfirmProps, ab as Popover, ac as PopoverProps, ad as Progress, ae as ProgressProps, af as ProgressStatus, ag as Rate, ah as RateProps, ai as Result, aj as ResultProps, ak as ResultStatus, al as Segmented, am as SegmentedOption, an as SegmentedProps, ao as SegmentedValue, ap as Spin, aq as SpinProps, ar as StepItem, as as StepStatus, at as Steps, au as StepsProps, av as TabItem, aw as Tabs, ax as TabsContextMenuClickInfo, ay as TabsOrientation, az as TabsPosition, aA as TabsProps, aB as TabsType, aC as Tag, aD as TagProps, aE as TagSize, aF as TagVariant, aG as Timeline, aH as TimelineItem, aI as TimelineProps, aJ as Toolbar, aK as ToolbarItem, aL as ToolbarProps, aM as Tooltip, aN as TooltipProps, aO as Tour, aP as TourProps, aQ as TourStep, aR as Tree, aS as TreeDropPosition, aT as TreeKey, aU as TreeNode, aV as TreeProps, aW as Typography, aX as TypographyLinkProps, aY as TypographyProps, aZ as TypographyTitleProps, a_ as TypographyType, a$ as Upload, b0 as UploadChangeInfo, b1 as UploadDraggerProps, b2 as UploadFile, b3 as UploadFileStatus, b4 as UploadHttpRequest, b5 as UploadItemActions, b6 as UploadProps, b7 as UploadRef, b8 as UploadRejectInfo, b9 as UploadRequestHandle, ba as UploadRequestOptions, bb as Watermark, bc as WatermarkFont, bd as WatermarkProps, be as message, bf as notification } from './core-
|
|
3
|
+
import { T as TagStatus, B as BadgeProps } from './core-DYo5C4Si.cjs';
|
|
4
|
+
export { a as Badge, b as BadgeRibbonProps, c as BadgeStatus, d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, C as Calendar, g as CalendarProps, h as Card, i as CardAccent, j as CardProps, k as Carousel, l as CarouselProps, m as CarouselRef, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, D as Dropdown, r as DropdownButtonProps, s as DropdownMenuProps, t as DropdownOpenSource, u as DropdownPlacement, v as DropdownProps, w as DropdownTrigger, F as FILLED_ICON_NAMES, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, H as FloatingPlacement, I as FloatingTrigger, J as ICON_NAMES, K as Icon, L as IconName, M as IconProps, N as IconVariant, O as Image, P as ImagePreview, Q as ImagePreviewConfig, R as ImagePreviewGroup, S as ImagePreviewGroupProps, U as ImagePreviewProps, V as ImageProps, W as Input, X as InputProps, Y as Menu, Z as MenuClickInfo, _ as MenuItem, $ as MenuMode, a0 as MenuProps, a1 as MenuTheme, a2 as MessageConfig, a3 as MessageHandle, a4 as MessageKey, a5 as MessageType, a6 as NotificationConfig, a7 as NotificationPlacement, a8 as NotificationType, a9 as Popconfirm, aa as PopconfirmProps, ab as Popover, ac as PopoverProps, ad as Progress, ae as ProgressProps, af as ProgressStatus, ag as Rate, ah as RateProps, ai as Result, aj as ResultProps, ak as ResultStatus, al as Segmented, am as SegmentedOption, an as SegmentedProps, ao as SegmentedValue, ap as Spin, aq as SpinProps, ar as StepItem, as as StepStatus, at as Steps, au as StepsProps, av as TabItem, aw as Tabs, ax as TabsContextMenuClickInfo, ay as TabsOrientation, az as TabsPosition, aA as TabsProps, aB as TabsType, aC as Tag, aD as TagProps, aE as TagSize, aF as TagVariant, aG as Timeline, aH as TimelineItem, aI as TimelineProps, aJ as Toolbar, aK as ToolbarItem, aL as ToolbarProps, aM as Tooltip, aN as TooltipProps, aO as Tour, aP as TourProps, aQ as TourStep, aR as Tree, aS as TreeDropPosition, aT as TreeKey, aU as TreeNode, aV as TreeProps, aW as Typography, aX as TypographyLinkProps, aY as TypographyProps, aZ as TypographyTitleProps, a_ as TypographyType, a$ as Upload, b0 as UploadChangeInfo, b1 as UploadDraggerProps, b2 as UploadFile, b3 as UploadFileStatus, b4 as UploadHttpRequest, b5 as UploadItemActions, b6 as UploadProps, b7 as UploadRef, b8 as UploadRejectInfo, b9 as UploadRequestHandle, ba as UploadRequestOptions, bb as Watermark, bc as WatermarkFont, bd as WatermarkProps, be as message, bf as notification } from './core-DYo5C4Si.cjs';
|
|
5
5
|
import { C as ControlSize, I as InputPlaceholderMode, a as ControlStatus } from './shared-Bx4B28Wh.cjs';
|
|
6
6
|
import { B as ButtonProps, a as ButtonSize } from './Button-O_pNB3SQ.cjs';
|
|
7
7
|
export { b as Button, c as ButtonVariant } from './Button-O_pNB3SQ.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { HTMLAttributes, ReactNode, CSSProperties, ElementType, FormHTMLAttributes, InputHTMLAttributes, ChangeEvent, TextareaHTMLAttributes, MouseEvent, Key, PointerEvent, Ref, ReactElement, ButtonHTMLAttributes, RefObject } from 'react';
|
|
3
|
-
import { T as TagStatus, B as BadgeProps } from './core-
|
|
4
|
-
export { a as Badge, b as BadgeRibbonProps, c as BadgeStatus, d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, C as Calendar, g as CalendarProps, h as Card, i as CardAccent, j as CardProps, k as Carousel, l as CarouselProps, m as CarouselRef, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, D as Dropdown, r as DropdownButtonProps, s as DropdownMenuProps, t as DropdownOpenSource, u as DropdownPlacement, v as DropdownProps, w as DropdownTrigger, F as FILLED_ICON_NAMES, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, H as FloatingPlacement, I as FloatingTrigger, J as ICON_NAMES, K as Icon, L as IconName, M as IconProps, N as IconVariant, O as Image, P as ImagePreview, Q as ImagePreviewConfig, R as ImagePreviewGroup, S as ImagePreviewGroupProps, U as ImagePreviewProps, V as ImageProps, W as Input, X as InputProps, Y as Menu, Z as MenuClickInfo, _ as MenuItem, $ as MenuMode, a0 as MenuProps, a1 as MenuTheme, a2 as MessageConfig, a3 as MessageHandle, a4 as MessageKey, a5 as MessageType, a6 as NotificationConfig, a7 as NotificationPlacement, a8 as NotificationType, a9 as Popconfirm, aa as PopconfirmProps, ab as Popover, ac as PopoverProps, ad as Progress, ae as ProgressProps, af as ProgressStatus, ag as Rate, ah as RateProps, ai as Result, aj as ResultProps, ak as ResultStatus, al as Segmented, am as SegmentedOption, an as SegmentedProps, ao as SegmentedValue, ap as Spin, aq as SpinProps, ar as StepItem, as as StepStatus, at as Steps, au as StepsProps, av as TabItem, aw as Tabs, ax as TabsContextMenuClickInfo, ay as TabsOrientation, az as TabsPosition, aA as TabsProps, aB as TabsType, aC as Tag, aD as TagProps, aE as TagSize, aF as TagVariant, aG as Timeline, aH as TimelineItem, aI as TimelineProps, aJ as Toolbar, aK as ToolbarItem, aL as ToolbarProps, aM as Tooltip, aN as TooltipProps, aO as Tour, aP as TourProps, aQ as TourStep, aR as Tree, aS as TreeDropPosition, aT as TreeKey, aU as TreeNode, aV as TreeProps, aW as Typography, aX as TypographyLinkProps, aY as TypographyProps, aZ as TypographyTitleProps, a_ as TypographyType, a$ as Upload, b0 as UploadChangeInfo, b1 as UploadDraggerProps, b2 as UploadFile, b3 as UploadFileStatus, b4 as UploadHttpRequest, b5 as UploadItemActions, b6 as UploadProps, b7 as UploadRef, b8 as UploadRejectInfo, b9 as UploadRequestHandle, ba as UploadRequestOptions, bb as Watermark, bc as WatermarkFont, bd as WatermarkProps, be as message, bf as notification } from './core-
|
|
3
|
+
import { T as TagStatus, B as BadgeProps } from './core-sWwvVAmP.js';
|
|
4
|
+
export { a as Badge, b as BadgeRibbonProps, c as BadgeStatus, d as Breadcrumb, e as BreadcrumbItem, f as BreadcrumbProps, C as Calendar, g as CalendarProps, h as Card, i as CardAccent, j as CardProps, k as Carousel, l as CarouselProps, m as CarouselRef, n as Collapse, o as CollapseItem, p as CollapseKey, q as CollapseProps, D as Dropdown, r as DropdownButtonProps, s as DropdownMenuProps, t as DropdownOpenSource, u as DropdownPlacement, v as DropdownProps, w as DropdownTrigger, F as FILLED_ICON_NAMES, x as FilledIconName, y as FloatButton, z as FloatButtonBackTopProps, A as FloatButtonGroupProps, E as FloatButtonProps, G as FloatButtonShape, H as FloatingPlacement, I as FloatingTrigger, J as ICON_NAMES, K as Icon, L as IconName, M as IconProps, N as IconVariant, O as Image, P as ImagePreview, Q as ImagePreviewConfig, R as ImagePreviewGroup, S as ImagePreviewGroupProps, U as ImagePreviewProps, V as ImageProps, W as Input, X as InputProps, Y as Menu, Z as MenuClickInfo, _ as MenuItem, $ as MenuMode, a0 as MenuProps, a1 as MenuTheme, a2 as MessageConfig, a3 as MessageHandle, a4 as MessageKey, a5 as MessageType, a6 as NotificationConfig, a7 as NotificationPlacement, a8 as NotificationType, a9 as Popconfirm, aa as PopconfirmProps, ab as Popover, ac as PopoverProps, ad as Progress, ae as ProgressProps, af as ProgressStatus, ag as Rate, ah as RateProps, ai as Result, aj as ResultProps, ak as ResultStatus, al as Segmented, am as SegmentedOption, an as SegmentedProps, ao as SegmentedValue, ap as Spin, aq as SpinProps, ar as StepItem, as as StepStatus, at as Steps, au as StepsProps, av as TabItem, aw as Tabs, ax as TabsContextMenuClickInfo, ay as TabsOrientation, az as TabsPosition, aA as TabsProps, aB as TabsType, aC as Tag, aD as TagProps, aE as TagSize, aF as TagVariant, aG as Timeline, aH as TimelineItem, aI as TimelineProps, aJ as Toolbar, aK as ToolbarItem, aL as ToolbarProps, aM as Tooltip, aN as TooltipProps, aO as Tour, aP as TourProps, aQ as TourStep, aR as Tree, aS as TreeDropPosition, aT as TreeKey, aU as TreeNode, aV as TreeProps, aW as Typography, aX as TypographyLinkProps, aY as TypographyProps, aZ as TypographyTitleProps, a_ as TypographyType, a$ as Upload, b0 as UploadChangeInfo, b1 as UploadDraggerProps, b2 as UploadFile, b3 as UploadFileStatus, b4 as UploadHttpRequest, b5 as UploadItemActions, b6 as UploadProps, b7 as UploadRef, b8 as UploadRejectInfo, b9 as UploadRequestHandle, ba as UploadRequestOptions, bb as Watermark, bc as WatermarkFont, bd as WatermarkProps, be as message, bf as notification } from './core-sWwvVAmP.js';
|
|
5
5
|
import { C as ControlSize, I as InputPlaceholderMode, a as ControlStatus } from './shared-Bx4B28Wh.js';
|
|
6
6
|
import { B as ButtonProps, a as ButtonSize } from './Button-BiL3Wjsd.js';
|
|
7
7
|
export { b as Button, c as ButtonVariant } from './Button-BiL3Wjsd.js';
|
package/dist/index.js
CHANGED