@sia.soul/sia-react-ui 0.1.137 → 0.1.138

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/index.cjs CHANGED
@@ -13853,7 +13853,7 @@ function playCellFocusGlow(cell, isVisible, onFinish, options) {
13853
13853
  const requestedSpeed = options?.speed, requestedWidth = options?.lineWidth;
13854
13854
  const speed = typeof requestedSpeed === "number" && Number.isFinite(requestedSpeed) && requestedSpeed > 0 ? Math.min(10, Math.max(0.1, requestedSpeed)) : 1;
13855
13855
  const lineWidth = typeof requestedWidth === "number" && Number.isFinite(requestedWidth) && requestedWidth > 0 ? Math.min(12, Math.max(1, requestedWidth)) : 4;
13856
- glow.style.setProperty("--sia-cell-focus-duration", `${750 / speed}ms`);
13856
+ glow.style.setProperty("--sia-cell-focus-duration", `${600 / speed}ms`);
13857
13857
  const path = document.createElementNS(namespace, "path");
13858
13858
  path.setAttribute("pathLength", "100");
13859
13859
  glow.appendChild(path);
package/dist/index.css CHANGED
@@ -11194,7 +11194,7 @@ body > .sia-title-tooltip[data-sia-popup-layer] {
11194
11194
  pointer-events: none;
11195
11195
  fill: none;
11196
11196
  color: #ff303b;
11197
- animation: sia-table-cell-focus-lifetime var(--sia-cell-focus-duration, 750ms) linear forwards;
11197
+ animation: sia-table-cell-focus-lifetime var(--sia-cell-focus-duration, 600ms) linear forwards;
11198
11198
  }
11199
11199
  .sia-table__cell-focus-glow path {
11200
11200
  stroke: currentColor;
@@ -11202,14 +11202,14 @@ body > .sia-title-tooltip[data-sia-popup-layer] {
11202
11202
  stroke-linecap: round;
11203
11203
  stroke-dashoffset: 0;
11204
11204
  filter: drop-shadow(0 0 3px color-mix(in srgb, currentColor 55%, transparent));
11205
- animation: sia-table-cell-focus-grow-retract var(--sia-cell-focus-duration, 750ms) linear forwards;
11205
+ animation: sia-table-cell-focus-grow-retract var(--sia-cell-focus-duration, 600ms) linear forwards;
11206
11206
  }
11207
11207
  @keyframes sia-table-cell-focus-grow-retract {
11208
11208
  0% {
11209
11209
  stroke-dasharray: 0px 100px;
11210
11210
  stroke-dashoffset: 0px;
11211
11211
  }
11212
- 60% {
11212
+ 50% {
11213
11213
  stroke-dasharray: 100px 0px;
11214
11214
  stroke-dashoffset: 0px;
11215
11215
  }
package/dist/index.d.cts CHANGED
@@ -2355,7 +2355,7 @@ interface TableCellFocusOptions {
2355
2355
  highlight?: boolean;
2356
2356
  /** 描边和柔光共用的 CSS 颜色,默认红色 #ff303b;例如 #fa8c16 为橙色。无效颜色回退默认值;CSS 变量需在页面根层可用。 */
2357
2357
  color?: string;
2358
- /** 动效速度倍率,默认 1,即增长 450ms、收缩 300ms;2 为双倍速度、0.5 为半速。有限正数限制在 0.1~10,零、负数或非有限值回退 1;减少动态效果时忽略此倍率,统一 200ms 淡出。 */
2358
+ /** 动效速度倍率,默认 1,即增长 300ms、收缩 300ms;2 为双倍速度、0.5 为半速。有限正数限制在 0.1~10,零、负数或非有限值回退 1;减少动态效果时忽略此倍率,统一 200ms 淡出。 */
2359
2359
  speed?: number;
2360
2360
  /** 描边线宽,单位 CSS px,默认 4;有限正数限制在 1~12,零、负数或非有限值回退 4。极窄单元格会按可容纳宽度缩小,柔光颜色跟随 color。 */
2361
2361
  lineWidth?: number;
@@ -2372,7 +2372,7 @@ interface TableRef<T> {
2372
2372
  scrollTo: (options: ScrollToOptions) => void;
2373
2373
  /** 按 rowKey 定位当前筛选、排序、分页及树展开后列表中的行,仅在该行被遮挡时立即纵向滚动,使其避开吸顶表头和合计行;支持虚拟列表,不改变横向位置或焦点。返回是否找到目标且视口可见;目标被筛掉、位于其他页、表格隐藏或未挂载时返回 false,不自动切页。应在数据提交和弹框显示后调用。 */
2374
2374
  scrollToRow: (key: TableKey) => boolean;
2375
- /** 按稳定行键和叶子列键定位单元格,横纵滚动避开吸顶表头、固定列及合计行,选中并聚焦但不进入编辑。等待虚拟行挂载、位置稳定且整格在可视区后返回成功,再由顶层浮层从左上角沿边框顺时针增长光线:尾端固定,默认速度下 450 毫秒围满一圈,再用 300 毫秒从尾部收拢至头部后消失;不拦截操作,减少动态效果时仅同色边框淡出。隐藏列、其它页、无法完整显示的单元格、不可见表格或被后续定位取代时返回 false,不自动切页或显示隐藏列。应在数据更新及弹框关闭动画完成后调用;再次定位、目标滚出可视区或卸载会清理动效。 */
2375
+ /** 按稳定行键和叶子列键定位单元格,横纵滚动避开吸顶表头、固定列及合计行,选中并聚焦但不进入编辑。等待虚拟行挂载、位置稳定且整格在可视区后返回成功,再由顶层浮层从左上角沿边框顺时针增长光线:尾端固定,默认速度下 300 毫秒围满一圈,再用 300 毫秒从尾部收拢至头部后消失;不拦截操作,减少动态效果时仅同色边框淡出。隐藏列、其它页、无法完整显示的单元格、不可见表格或被后续定位取代时返回 false,不自动切页或显示隐藏列。应在数据更新及弹框关闭动画完成后调用;再次定位、目标滚出可视区或卸载会清理动效。 */
2376
2376
  focusCell: (rowKey: TableKey, columnKey: string, options?: TableCellFocusOptions) => Promise<boolean>;
2377
2377
  /** 切换加载状态。 */
2378
2378
  setLoading: (loading: boolean) => void;
package/dist/index.d.ts CHANGED
@@ -2355,7 +2355,7 @@ interface TableCellFocusOptions {
2355
2355
  highlight?: boolean;
2356
2356
  /** 描边和柔光共用的 CSS 颜色,默认红色 #ff303b;例如 #fa8c16 为橙色。无效颜色回退默认值;CSS 变量需在页面根层可用。 */
2357
2357
  color?: string;
2358
- /** 动效速度倍率,默认 1,即增长 450ms、收缩 300ms;2 为双倍速度、0.5 为半速。有限正数限制在 0.1~10,零、负数或非有限值回退 1;减少动态效果时忽略此倍率,统一 200ms 淡出。 */
2358
+ /** 动效速度倍率,默认 1,即增长 300ms、收缩 300ms;2 为双倍速度、0.5 为半速。有限正数限制在 0.1~10,零、负数或非有限值回退 1;减少动态效果时忽略此倍率,统一 200ms 淡出。 */
2359
2359
  speed?: number;
2360
2360
  /** 描边线宽,单位 CSS px,默认 4;有限正数限制在 1~12,零、负数或非有限值回退 4。极窄单元格会按可容纳宽度缩小,柔光颜色跟随 color。 */
2361
2361
  lineWidth?: number;
@@ -2372,7 +2372,7 @@ interface TableRef<T> {
2372
2372
  scrollTo: (options: ScrollToOptions) => void;
2373
2373
  /** 按 rowKey 定位当前筛选、排序、分页及树展开后列表中的行,仅在该行被遮挡时立即纵向滚动,使其避开吸顶表头和合计行;支持虚拟列表,不改变横向位置或焦点。返回是否找到目标且视口可见;目标被筛掉、位于其他页、表格隐藏或未挂载时返回 false,不自动切页。应在数据提交和弹框显示后调用。 */
2374
2374
  scrollToRow: (key: TableKey) => boolean;
2375
- /** 按稳定行键和叶子列键定位单元格,横纵滚动避开吸顶表头、固定列及合计行,选中并聚焦但不进入编辑。等待虚拟行挂载、位置稳定且整格在可视区后返回成功,再由顶层浮层从左上角沿边框顺时针增长光线:尾端固定,默认速度下 450 毫秒围满一圈,再用 300 毫秒从尾部收拢至头部后消失;不拦截操作,减少动态效果时仅同色边框淡出。隐藏列、其它页、无法完整显示的单元格、不可见表格或被后续定位取代时返回 false,不自动切页或显示隐藏列。应在数据更新及弹框关闭动画完成后调用;再次定位、目标滚出可视区或卸载会清理动效。 */
2375
+ /** 按稳定行键和叶子列键定位单元格,横纵滚动避开吸顶表头、固定列及合计行,选中并聚焦但不进入编辑。等待虚拟行挂载、位置稳定且整格在可视区后返回成功,再由顶层浮层从左上角沿边框顺时针增长光线:尾端固定,默认速度下 300 毫秒围满一圈,再用 300 毫秒从尾部收拢至头部后消失;不拦截操作,减少动态效果时仅同色边框淡出。隐藏列、其它页、无法完整显示的单元格、不可见表格或被后续定位取代时返回 false,不自动切页或显示隐藏列。应在数据更新及弹框关闭动画完成后调用;再次定位、目标滚出可视区或卸载会清理动效。 */
2376
2376
  focusCell: (rowKey: TableKey, columnKey: string, options?: TableCellFocusOptions) => Promise<boolean>;
2377
2377
  /** 切换加载状态。 */
2378
2378
  setLoading: (loading: boolean) => void;
package/dist/index.js CHANGED
@@ -5708,7 +5708,7 @@ function playCellFocusGlow(cell, isVisible, onFinish, options) {
5708
5708
  const requestedSpeed = options?.speed, requestedWidth = options?.lineWidth;
5709
5709
  const speed = typeof requestedSpeed === "number" && Number.isFinite(requestedSpeed) && requestedSpeed > 0 ? Math.min(10, Math.max(0.1, requestedSpeed)) : 1;
5710
5710
  const lineWidth = typeof requestedWidth === "number" && Number.isFinite(requestedWidth) && requestedWidth > 0 ? Math.min(12, Math.max(1, requestedWidth)) : 4;
5711
- glow.style.setProperty("--sia-cell-focus-duration", `${750 / speed}ms`);
5711
+ glow.style.setProperty("--sia-cell-focus-duration", `${600 / speed}ms`);
5712
5712
  const path = document.createElementNS(namespace, "path");
5713
5713
  path.setAttribute("pathLength", "100");
5714
5714
  glow.appendChild(path);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sia.soul/sia-react-ui",
3
- "version": "0.1.137",
3
+ "version": "0.1.138",
4
4
  "description": "Sia Design components and tokens for React",
5
5
  "publishConfig": {
6
6
  "access": "public",