@pactor-app/ui 1.11.0 → 1.12.0
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-PECP7DJB.js → chunk-2B5YV2HR.js} +1 -1
- package/dist/{chunk-HW6M3BEF.js → chunk-3KCE7ROX.js} +22 -6
- package/dist/{chunk-VM4FESQB.js → chunk-AUSWAD26.js} +79 -79
- package/dist/{chunk-TAJXMOEX.js → chunk-CWUY7LXF.js} +2 -2
- package/dist/{chunk-NVORKHWX.js → chunk-XEK5NQJA.js} +1 -1
- package/dist/components/index.cjs +461 -443
- package/dist/components/index.d.cts +11 -4
- package/dist/components/index.d.ts +11 -4
- package/dist/components/index.js +4 -4
- package/dist/index.cjs +464 -446
- package/dist/index.js +5 -5
- package/dist/layout/index.js +3 -3
- package/dist/ui/index.js +2 -2
- package/package.json +5 -5
|
@@ -158,6 +158,8 @@ interface ButtonProps {
|
|
|
158
158
|
text?: string;
|
|
159
159
|
/** 图标名(Icon 白名单,kebab-case / PascalCase 均可),渲染在文本前 */
|
|
160
160
|
icon?: string;
|
|
161
|
+
/** 提示文案:hover / focus 按钮时展示 Tooltip */
|
|
162
|
+
tooltip?: string;
|
|
161
163
|
/** 变体,默认 default */
|
|
162
164
|
variant?: ButtonVariant;
|
|
163
165
|
/** 危险态 */
|
|
@@ -180,9 +182,10 @@ interface ButtonProps {
|
|
|
180
182
|
* props 契约与 pactor-components(antd 版)一致;`submit: true` 时作为
|
|
181
183
|
* Form 的提交按钮(type=submit);danger 映射 destructive(link/text
|
|
182
184
|
* 变体保持原样、文字标红);loading 显示旋转图标并禁用(优先于 icon);
|
|
183
|
-
* `icon` 渲染文本前图标(对齐 Alert 的 icon
|
|
185
|
+
* `icon` 渲染文本前图标(对齐 Alert 的 icon 通道);`tooltip` 经 vendored
|
|
186
|
+
* Tooltip 包装(Trigger render 合并到按钮本体)。
|
|
184
187
|
*/
|
|
185
|
-
declare function Button({ text, icon, variant, danger, size, loading, disabled, submit, onClick, className, style, children, }: ButtonProps): React.JSX.Element;
|
|
188
|
+
declare function Button({ text, icon, tooltip, variant, danger, size, loading, disabled, submit, onClick, className, style, children, }: ButtonProps): React.JSX.Element;
|
|
186
189
|
|
|
187
190
|
interface ButtonGroupProps {
|
|
188
191
|
/** 通用:根节点 class(与内置样式合并) */
|
|
@@ -1712,11 +1715,15 @@ declare function Tabs({ items, activeKey, variant, onChange, className, style }:
|
|
|
1712
1715
|
|
|
1713
1716
|
/** DSL Text 语义类型 */
|
|
1714
1717
|
type TextType = 'default' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
1718
|
+
/** DSL Text 字号(middle 缺省继承上下文字号) */
|
|
1719
|
+
type TextSize = 'small' | 'middle' | 'large';
|
|
1715
1720
|
interface TextProps {
|
|
1716
1721
|
/** 文本内容(可含表达式);也可用 children 渲染 */
|
|
1717
1722
|
text?: string;
|
|
1718
1723
|
/** 语义类型(颜色) */
|
|
1719
1724
|
type?: TextType;
|
|
1725
|
+
/** 字号:small 12 / middle 继承(缺省)/ large 18 */
|
|
1726
|
+
size?: TextSize;
|
|
1720
1727
|
/** 加粗 */
|
|
1721
1728
|
strong?: boolean;
|
|
1722
1729
|
/** 删除线 */
|
|
@@ -1731,8 +1738,8 @@ interface TextProps {
|
|
|
1731
1738
|
style?: CSSProperties;
|
|
1732
1739
|
children?: ReactNode;
|
|
1733
1740
|
}
|
|
1734
|
-
/** Text 适配器(shadcn kit):普通文本渲染,语义类型 + 修饰(粗体/删除线/下划线/斜体) */
|
|
1735
|
-
declare function Text({ text, type, strong, delete: del, underline, italic, className, style, children, }: TextProps): React.JSX.Element;
|
|
1741
|
+
/** Text 适配器(shadcn kit):普通文本渲染,语义类型 + 字号 + 修饰(粗体/删除线/下划线/斜体) */
|
|
1742
|
+
declare function Text({ text, type, size, strong, delete: del, underline, italic, className, style, children, }: TextProps): React.JSX.Element;
|
|
1736
1743
|
|
|
1737
1744
|
interface TextareaProps {
|
|
1738
1745
|
/** 字段名;在 Form 内声明 name 即自动成为表单项 */
|
|
@@ -158,6 +158,8 @@ interface ButtonProps {
|
|
|
158
158
|
text?: string;
|
|
159
159
|
/** 图标名(Icon 白名单,kebab-case / PascalCase 均可),渲染在文本前 */
|
|
160
160
|
icon?: string;
|
|
161
|
+
/** 提示文案:hover / focus 按钮时展示 Tooltip */
|
|
162
|
+
tooltip?: string;
|
|
161
163
|
/** 变体,默认 default */
|
|
162
164
|
variant?: ButtonVariant;
|
|
163
165
|
/** 危险态 */
|
|
@@ -180,9 +182,10 @@ interface ButtonProps {
|
|
|
180
182
|
* props 契约与 pactor-components(antd 版)一致;`submit: true` 时作为
|
|
181
183
|
* Form 的提交按钮(type=submit);danger 映射 destructive(link/text
|
|
182
184
|
* 变体保持原样、文字标红);loading 显示旋转图标并禁用(优先于 icon);
|
|
183
|
-
* `icon` 渲染文本前图标(对齐 Alert 的 icon
|
|
185
|
+
* `icon` 渲染文本前图标(对齐 Alert 的 icon 通道);`tooltip` 经 vendored
|
|
186
|
+
* Tooltip 包装(Trigger render 合并到按钮本体)。
|
|
184
187
|
*/
|
|
185
|
-
declare function Button({ text, icon, variant, danger, size, loading, disabled, submit, onClick, className, style, children, }: ButtonProps): React.JSX.Element;
|
|
188
|
+
declare function Button({ text, icon, tooltip, variant, danger, size, loading, disabled, submit, onClick, className, style, children, }: ButtonProps): React.JSX.Element;
|
|
186
189
|
|
|
187
190
|
interface ButtonGroupProps {
|
|
188
191
|
/** 通用:根节点 class(与内置样式合并) */
|
|
@@ -1712,11 +1715,15 @@ declare function Tabs({ items, activeKey, variant, onChange, className, style }:
|
|
|
1712
1715
|
|
|
1713
1716
|
/** DSL Text 语义类型 */
|
|
1714
1717
|
type TextType = 'default' | 'secondary' | 'success' | 'warning' | 'danger';
|
|
1718
|
+
/** DSL Text 字号(middle 缺省继承上下文字号) */
|
|
1719
|
+
type TextSize = 'small' | 'middle' | 'large';
|
|
1715
1720
|
interface TextProps {
|
|
1716
1721
|
/** 文本内容(可含表达式);也可用 children 渲染 */
|
|
1717
1722
|
text?: string;
|
|
1718
1723
|
/** 语义类型(颜色) */
|
|
1719
1724
|
type?: TextType;
|
|
1725
|
+
/** 字号:small 12 / middle 继承(缺省)/ large 18 */
|
|
1726
|
+
size?: TextSize;
|
|
1720
1727
|
/** 加粗 */
|
|
1721
1728
|
strong?: boolean;
|
|
1722
1729
|
/** 删除线 */
|
|
@@ -1731,8 +1738,8 @@ interface TextProps {
|
|
|
1731
1738
|
style?: CSSProperties;
|
|
1732
1739
|
children?: ReactNode;
|
|
1733
1740
|
}
|
|
1734
|
-
/** Text 适配器(shadcn kit):普通文本渲染,语义类型 + 修饰(粗体/删除线/下划线/斜体) */
|
|
1735
|
-
declare function Text({ text, type, strong, delete: del, underline, italic, className, style, children, }: TextProps): React.JSX.Element;
|
|
1741
|
+
/** Text 适配器(shadcn kit):普通文本渲染,语义类型 + 字号 + 修饰(粗体/删除线/下划线/斜体) */
|
|
1742
|
+
declare function Text({ text, type, size, strong, delete: del, underline, italic, className, style, children, }: TextProps): React.JSX.Element;
|
|
1736
1743
|
|
|
1737
1744
|
interface TextareaProps {
|
|
1738
1745
|
/** 字段名;在 Form 内声明 name 即自动成为表单项 */
|
package/dist/components/index.js
CHANGED
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
createComponentRegistry,
|
|
72
72
|
registerBuiltinComponents,
|
|
73
73
|
useFormContext
|
|
74
|
-
} from "../chunk-
|
|
74
|
+
} from "../chunk-3KCE7ROX.js";
|
|
75
75
|
import {
|
|
76
76
|
ICONS,
|
|
77
77
|
Icon,
|
|
@@ -80,10 +80,10 @@ import {
|
|
|
80
80
|
Sidebar,
|
|
81
81
|
normalizeIconName,
|
|
82
82
|
useSidebarDrawer
|
|
83
|
-
} from "../chunk-
|
|
84
|
-
import "../chunk-
|
|
83
|
+
} from "../chunk-2B5YV2HR.js";
|
|
84
|
+
import "../chunk-XEK5NQJA.js";
|
|
85
85
|
import "../chunk-XUHJ5YSG.js";
|
|
86
|
-
import "../chunk-
|
|
86
|
+
import "../chunk-AUSWAD26.js";
|
|
87
87
|
import "../chunk-WKJUCGV4.js";
|
|
88
88
|
export {
|
|
89
89
|
Accordion,
|