@nuwatop/code-canvas-core 0.5.114 → 0.5.115

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.
@@ -2,16 +2,31 @@ import { default as React } from 'react';
2
2
  import { AlertProps as AntAlertProps } from 'antd';
3
3
  import { BaseComponentProps, DataSetConfig } from '../../types/common';
4
4
 
5
+ interface AlertSemanticStyles {
6
+ root?: React.CSSProperties;
7
+ icon?: React.CSSProperties;
8
+ section?: React.CSSProperties;
9
+ title?: React.CSSProperties;
10
+ description?: React.CSSProperties;
11
+ actions?: React.CSSProperties;
12
+ close?: React.CSSProperties;
13
+ }
5
14
  /**
6
15
  * AndAlert Props 接口
7
16
  */
8
- export interface AndAlertProps extends Omit<AntAlertProps, 'message'>, BaseComponentProps, DataSetConfig {
17
+ export interface AndAlertProps extends Omit<AntAlertProps, 'message' | 'styles'>, BaseComponentProps, DataSetConfig {
9
18
  /** 关闭动作 */
10
19
  closeAction?: string;
11
20
  /** 标题 (对应旧的 message) */
12
21
  title?: React.ReactNode;
13
22
  /** 关闭文字 (已废弃,兼容用) */
14
23
  closeText?: string;
24
+ /** Semantic DOM 样式 */
25
+ styles?: AlertSemanticStyles | string;
26
+ /** Design Token */
27
+ token?: Record<string, unknown> | string;
28
+ /** 迭代器内行下标,供 closeAction 中 @index 占位 */
29
+ index?: number;
15
30
  }
16
31
  /**
17
32
  * AndAlert 组件
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AndAlert/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,KAAK,EAAE,UAAU,IAAI,aAAa,EAAE,MAAM,MAAM,CAAC;AAGxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAE5E;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,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