@hkyhy/marsun-components-core 0.1.33 → 0.1.34

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.
Files changed (36) hide show
  1. package/dist/components/AgentHub/Report/Detail/ReportMetaStrip/index.d.ts +19 -0
  2. package/dist/components/AgentHub/Report/Detail/ReportMetaStrip/index.js +46 -0
  3. package/dist/components/AgentHub/Report/Detail/ReportMetaStrip/index.js.map +1 -0
  4. package/dist/components/AgentHub/Report/Detail/ReportMetaStrip/style.module.scss.js +12 -0
  5. package/dist/components/AgentHub/Report/Detail/ReportMetaStrip/style.module.scss.js.map +1 -0
  6. package/dist/components/AgentHub/Report/Detail/ReportTemplate/index.d.ts +18 -0
  7. package/dist/components/AgentHub/Report/Detail/ReportTemplate/index.js +98 -0
  8. package/dist/components/AgentHub/Report/Detail/ReportTemplate/index.js.map +1 -0
  9. package/dist/components/AgentHub/Report/Detail/ReportTemplate/style.module.scss.js +14 -0
  10. package/dist/components/AgentHub/Report/Detail/ReportTemplate/style.module.scss.js.map +1 -0
  11. package/dist/components/AgentHub/Report/Detail/index.d.ts +4 -0
  12. package/dist/components/AgentHub/Report/index.d.ts +1 -0
  13. package/dist/components/InteractiveBlock/InteractiveBlock.d.ts +3 -0
  14. package/dist/components/InteractiveBlock/InteractiveBlock.js +49 -46
  15. package/dist/components/InteractiveBlock/InteractiveBlock.js.map +1 -1
  16. package/dist/components/InteractiveBlock/index.d.ts +1 -1
  17. package/dist/components/InteractiveBlock/style.module.scss.js +14 -13
  18. package/dist/components/InteractiveBlock/style.module.scss.js.map +1 -1
  19. package/dist/components/Modal/Modal/index.d.ts +6 -0
  20. package/dist/components/Modal/Modal/index.js +120 -0
  21. package/dist/components/Modal/Modal/index.js.map +1 -0
  22. package/dist/components/Modal/Modal/style.module.scss.js +17 -0
  23. package/dist/components/Modal/Modal/style.module.scss.js.map +1 -0
  24. package/dist/components/Modal/ModalTypes.d.ts +26 -0
  25. package/dist/components/Modal/StepModal/index.js +43 -41
  26. package/dist/components/Modal/StepModal/index.js.map +1 -1
  27. package/dist/components/Modal/index.d.ts +3 -0
  28. package/dist/components/Modal/utils/resolveModalSize.d.ts +22 -0
  29. package/dist/components/Modal/utils/resolveModalSize.js +28 -0
  30. package/dist/components/Modal/utils/resolveModalSize.js.map +1 -0
  31. package/dist/index.d.ts +1 -0
  32. package/dist/index.js +293 -282
  33. package/dist/index.js.map +1 -1
  34. package/dist/marsun-components-core.css +1 -1
  35. package/dist/styles/global.css +1 -1
  36. package/package.json +1 -1
@@ -0,0 +1,19 @@
1
+ import { ReactNode } from 'react';
2
+ export type ReportMetaTone = 'default' | 'danger' | 'warning';
3
+ export type ReportMetaItem = {
4
+ key: string;
5
+ label: ReactNode;
6
+ value: ReactNode;
7
+ tone?: ReportMetaTone;
8
+ };
9
+ export type ReportMetaStripProps = {
10
+ items: ReportMetaItem[];
11
+ /** 默认 4 列均分 */
12
+ columns?: number;
13
+ className?: string;
14
+ };
15
+ /**
16
+ * 报告指标条 — 默认四列均分
17
+ */
18
+ declare const ReportMetaStrip: React.FC<ReportMetaStripProps>;
19
+ export default ReportMetaStrip;
@@ -0,0 +1,46 @@
1
+ import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
+ import e from "classnames";
3
+ import r from "./style.module.scss.js";
4
+ const i = ({ items: m, columns: s = 4, className: n }) => /* @__PURE__ */ t(
5
+ "div",
6
+ {
7
+ className: e(
8
+ "marsun-report-meta-strip",
9
+ r["marsun-report-meta-strip"],
10
+ n
11
+ ),
12
+ style: { gridTemplateColumns: `repeat(${s}, minmax(0, 1fr))` },
13
+ children: m.map((a) => /* @__PURE__ */ l(
14
+ "div",
15
+ {
16
+ className: e("marsun-report-meta-item", r["marsun-report-meta-item"]),
17
+ children: [
18
+ /* @__PURE__ */ t(
19
+ "span",
20
+ {
21
+ className: e("marsun-report-meta-label", r["marsun-report-meta-label"]),
22
+ children: a.label
23
+ }
24
+ ),
25
+ /* @__PURE__ */ t(
26
+ "strong",
27
+ {
28
+ className: e(
29
+ "marsun-report-meta-value",
30
+ r["marsun-report-meta-value"],
31
+ a.tone === "danger" && r["marsun-report-meta-value--danger"],
32
+ a.tone === "warning" && r["marsun-report-meta-value--warning"]
33
+ ),
34
+ children: a.value
35
+ }
36
+ )
37
+ ]
38
+ },
39
+ a.key
40
+ ))
41
+ }
42
+ );
43
+ export {
44
+ i as default
45
+ };
46
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../src/components/AgentHub/Report/Detail/ReportMetaStrip/index.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport type { ReactNode } from 'react';\nimport styles from './style.module.scss';\n\nexport type ReportMetaTone = 'default' | 'danger' | 'warning';\n\nexport type ReportMetaItem = {\n key: string;\n label: ReactNode;\n value: ReactNode;\n tone?: ReportMetaTone;\n};\n\nexport type ReportMetaStripProps = {\n items: ReportMetaItem[];\n /** 默认 4 列均分 */\n columns?: number;\n className?: string;\n};\n\n/**\n * 报告指标条 — 默认四列均分\n */\nconst ReportMetaStrip: React.FC<ReportMetaStripProps> = ({ items, columns = 4, className }) => (\n <div\n className={classNames(\n 'marsun-report-meta-strip',\n styles['marsun-report-meta-strip'],\n className,\n )}\n style={{ gridTemplateColumns: `repeat(${columns}, minmax(0, 1fr))` }}\n >\n {items.map((item) => (\n <div\n key={item.key}\n className={classNames('marsun-report-meta-item', styles['marsun-report-meta-item'])}\n >\n <span\n className={classNames('marsun-report-meta-label', styles['marsun-report-meta-label'])}\n >\n {item.label}\n </span>\n <strong\n className={classNames(\n 'marsun-report-meta-value',\n styles['marsun-report-meta-value'],\n item.tone === 'danger' && styles['marsun-report-meta-value--danger'],\n item.tone === 'warning' && styles['marsun-report-meta-value--warning'],\n )}\n >\n {item.value}\n </strong>\n </div>\n ))}\n </div>\n);\n\nexport default ReportMetaStrip;\n"],"names":["ReportMetaStrip","items","columns","className","jsx","classNames","styles","item","jsxs"],"mappings":";;;AAuBA,MAAMA,IAAkD,CAAC,EAAE,OAAAC,GAAO,SAAAC,IAAU,GAAG,WAAAC,QAC7E,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC;AAAA,MACT;AAAA,MACAC,EAAO,0BAA0B;AAAA,MACjCH;AAAA,IAAA;AAAA,IAEF,OAAO,EAAE,qBAAqB,UAAUD,CAAO,oBAAA;AAAA,IAE9C,UAAAD,EAAM,IAAI,CAACM,MACV,gBAAAC;AAAA,MAAC;AAAA,MAAA;AAAA,QAEC,WAAWH,EAAW,2BAA2BC,EAAO,yBAAyB,CAAC;AAAA,QAElF,UAAA;AAAA,UAAA,gBAAAF;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,WAAWC,EAAW,4BAA4BC,EAAO,0BAA0B,CAAC;AAAA,cAEnF,UAAAC,EAAK;AAAA,YAAA;AAAA,UAAA;AAAA,UAER,gBAAAH;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,WAAWC;AAAA,gBACT;AAAA,gBACAC,EAAO,0BAA0B;AAAA,gBACjCC,EAAK,SAAS,YAAYD,EAAO,kCAAkC;AAAA,gBACnEC,EAAK,SAAS,aAAaD,EAAO,mCAAmC;AAAA,cAAA;AAAA,cAGtE,UAAAC,EAAK;AAAA,YAAA;AAAA,UAAA;AAAA,QACR;AAAA,MAAA;AAAA,MAjBKA,EAAK;AAAA,IAAA,CAmBb;AAAA,EAAA;AACH;"}
@@ -0,0 +1,12 @@
1
+ const r = {
2
+ "marsun-report-meta-strip": "_marsun-report-meta-strip_c5zos_1",
3
+ "marsun-report-meta-item": "_marsun-report-meta-item_c5zos_14",
4
+ "marsun-report-meta-label": "_marsun-report-meta-label_c5zos_21",
5
+ "marsun-report-meta-value": "_marsun-report-meta-value_c5zos_26",
6
+ "marsun-report-meta-value--danger": "_marsun-report-meta-value--danger_c5zos_37",
7
+ "marsun-report-meta-value--warning": "_marsun-report-meta-value--warning_c5zos_41"
8
+ };
9
+ export {
10
+ r as default
11
+ };
12
+ //# sourceMappingURL=style.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,18 @@
1
+ import { ReactNode } from 'react';
2
+ import { ReportMetaItem } from '../ReportMetaStrip';
3
+ export type ReportTemplateProps = {
4
+ badge?: ReactNode;
5
+ title?: ReactNode;
6
+ subtitle?: ReactNode;
7
+ metaItems?: ReportMetaItem[];
8
+ metaColumns?: number;
9
+ toolbar?: ReactNode;
10
+ children?: ReactNode;
11
+ footer?: ReactNode;
12
+ className?: string;
13
+ };
14
+ /**
15
+ * Agent 报告布局模板 — Meta 四列 + 叙事区槽位(无业务 API)
16
+ */
17
+ declare const ReportTemplate: React.FC<ReportTemplateProps>;
18
+ export default ReportTemplate;
@@ -0,0 +1,98 @@
1
+ import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
+ import e from "classnames";
3
+ import h from "../ReportMetaStrip/index.js";
4
+ import r from "./style.module.scss.js";
5
+ const x = ({
6
+ badge: a,
7
+ title: l,
8
+ subtitle: m,
9
+ metaItems: s,
10
+ metaColumns: u = 4,
11
+ toolbar: p,
12
+ children: c,
13
+ footer: o,
14
+ className: d
15
+ }) => {
16
+ const i = !!(a || l || m);
17
+ return /* @__PURE__ */ n(
18
+ "div",
19
+ {
20
+ className: e("marsun-report-template", r["marsun-report-template"], d),
21
+ children: [
22
+ i ? /* @__PURE__ */ n(
23
+ "header",
24
+ {
25
+ className: e(
26
+ "marsun-report-template-header",
27
+ r["marsun-report-template-header"]
28
+ ),
29
+ children: [
30
+ a ? /* @__PURE__ */ t(
31
+ "div",
32
+ {
33
+ className: e(
34
+ "marsun-report-template-badge",
35
+ r["marsun-report-template-badge"]
36
+ ),
37
+ children: a
38
+ }
39
+ ) : null,
40
+ l ? /* @__PURE__ */ t(
41
+ "div",
42
+ {
43
+ className: e(
44
+ "marsun-report-template-title",
45
+ r["marsun-report-template-title"]
46
+ ),
47
+ children: l
48
+ }
49
+ ) : null,
50
+ m ? /* @__PURE__ */ t(
51
+ "p",
52
+ {
53
+ className: e(
54
+ "marsun-report-template-subtitle",
55
+ r["marsun-report-template-subtitle"]
56
+ ),
57
+ children: m
58
+ }
59
+ ) : null
60
+ ]
61
+ }
62
+ ) : null,
63
+ p ? /* @__PURE__ */ t(
64
+ "div",
65
+ {
66
+ className: e(
67
+ "marsun-report-template-toolbar",
68
+ r["marsun-report-template-toolbar"]
69
+ ),
70
+ children: p
71
+ }
72
+ ) : null,
73
+ s && s.length > 0 ? /* @__PURE__ */ t(h, { items: s, columns: u }) : null,
74
+ /* @__PURE__ */ t(
75
+ "div",
76
+ {
77
+ className: e("marsun-report-template-body", r["marsun-report-template-body"]),
78
+ children: c
79
+ }
80
+ ),
81
+ o ? /* @__PURE__ */ t(
82
+ "footer",
83
+ {
84
+ className: e(
85
+ "marsun-report-template-footer",
86
+ r["marsun-report-template-footer"]
87
+ ),
88
+ children: o
89
+ }
90
+ ) : null
91
+ ]
92
+ }
93
+ );
94
+ };
95
+ export {
96
+ x as default
97
+ };
98
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../../src/components/AgentHub/Report/Detail/ReportTemplate/index.tsx"],"sourcesContent":["import classNames from 'classnames';\nimport type { ReactNode } from 'react';\nimport ReportMetaStrip, { type ReportMetaItem } from '../ReportMetaStrip';\nimport styles from './style.module.scss';\n\nexport type ReportTemplateProps = {\n badge?: ReactNode;\n title?: ReactNode;\n subtitle?: ReactNode;\n metaItems?: ReportMetaItem[];\n metaColumns?: number;\n toolbar?: ReactNode;\n children?: ReactNode;\n footer?: ReactNode;\n className?: string;\n};\n\n/**\n * Agent 报告布局模板 — Meta 四列 + 叙事区槽位(无业务 API)\n */\nconst ReportTemplate: React.FC<ReportTemplateProps> = ({\n badge,\n title,\n subtitle,\n metaItems,\n metaColumns = 4,\n toolbar,\n children,\n footer,\n className,\n}) => {\n const showHeader = Boolean(badge || title || subtitle);\n\n return (\n <div\n className={classNames('marsun-report-template', styles['marsun-report-template'], className)}\n >\n {showHeader ? (\n <header\n className={classNames(\n 'marsun-report-template-header',\n styles['marsun-report-template-header'],\n )}\n >\n {badge ? (\n <div\n className={classNames(\n 'marsun-report-template-badge',\n styles['marsun-report-template-badge'],\n )}\n >\n {badge}\n </div>\n ) : null}\n {title ? (\n <div\n className={classNames(\n 'marsun-report-template-title',\n styles['marsun-report-template-title'],\n )}\n >\n {title}\n </div>\n ) : null}\n {subtitle ? (\n <p\n className={classNames(\n 'marsun-report-template-subtitle',\n styles['marsun-report-template-subtitle'],\n )}\n >\n {subtitle}\n </p>\n ) : null}\n </header>\n ) : null}\n\n {toolbar ? (\n <div\n className={classNames(\n 'marsun-report-template-toolbar',\n styles['marsun-report-template-toolbar'],\n )}\n >\n {toolbar}\n </div>\n ) : null}\n\n {metaItems && metaItems.length > 0 ? (\n <ReportMetaStrip items={metaItems} columns={metaColumns} />\n ) : null}\n\n <div\n className={classNames('marsun-report-template-body', styles['marsun-report-template-body'])}\n >\n {children}\n </div>\n\n {footer ? (\n <footer\n className={classNames(\n 'marsun-report-template-footer',\n styles['marsun-report-template-footer'],\n )}\n >\n {footer}\n </footer>\n ) : null}\n </div>\n );\n};\n\nexport default ReportTemplate;\n"],"names":["ReportTemplate","badge","title","subtitle","metaItems","metaColumns","toolbar","children","footer","className","showHeader","jsxs","classNames","styles","jsx","ReportMetaStrip"],"mappings":";;;;AAoBA,MAAMA,IAAgD,CAAC;AAAA,EACrD,OAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC;AACF,MAAM;AACJ,QAAMC,IAAa,GAAQT,KAASC,KAASC;AAE7C,SACE,gBAAAQ;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAW,0BAA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YACC,WAAWF;AAAA,cACT;AAAA,cACAC,EAAO,+BAA+B;AAAA,YAAA;AAAA,YAGvC,UAAAL;AAAA,UAAA;AAAA,QAAA,IAED;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGV;"}
@@ -0,0 +1,14 @@
1
+ const t = {
2
+ "marsun-report-template": "_marsun-report-template_8xub7_1",
3
+ "marsun-report-template-header": "_marsun-report-template-header_8xub7_8",
4
+ "marsun-report-template-badge": "_marsun-report-template-badge_8xub7_17",
5
+ "marsun-report-template-title": "_marsun-report-template-title_8xub7_23",
6
+ "marsun-report-template-subtitle": "_marsun-report-template-subtitle_8xub7_34",
7
+ "marsun-report-template-toolbar": "_marsun-report-template-toolbar_8xub7_40",
8
+ "marsun-report-template-body": "_marsun-report-template-body_8xub7_44",
9
+ "marsun-report-template-footer": "_marsun-report-template-footer_8xub7_52"
10
+ };
11
+ export {
12
+ t as default
13
+ };
14
+ //# sourceMappingURL=style.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ export { default as ReportMetaStrip } from './ReportMetaStrip';
2
+ export type { ReportMetaItem, ReportMetaStripProps, ReportMetaTone } from './ReportMetaStrip';
3
+ export { default as ReportTemplate } from './ReportTemplate';
4
+ export type { ReportTemplateProps } from './ReportTemplate';
@@ -0,0 +1 @@
1
+ export * from './Detail';
@@ -12,6 +12,7 @@ export type InteractiveBlockAction = {
12
12
  hidden?: boolean;
13
13
  };
14
14
  export type InteractiveBlockTagsPlacement = 'inline' | 'below';
15
+ export type InteractiveBlockSurface = 'plain' | 'inset';
15
16
  export type InteractiveBlockProps = {
16
17
  title: ReactNode;
17
18
  info?: DescriptionItem[];
@@ -20,6 +21,8 @@ export type InteractiveBlockProps = {
20
21
  tags?: InteractiveBlockTag[];
21
22
  tagsPlacement?: InteractiveBlockTagsPlacement;
22
23
  actions?: InteractiveBlockAction[];
24
+ /** 列表表面:inset 对齐归档检索灰底项 */
25
+ surface?: InteractiveBlockSurface;
23
26
  selected?: boolean;
24
27
  onClick?: () => void;
25
28
  className?: string;
@@ -1,42 +1,43 @@
1
- import { jsx as t, jsxs as l, Fragment as N } from "react/jsx-runtime";
2
- import g from "@kne/button-group";
3
- import i from "classnames";
4
- import { Info as w } from "../Icons/index.js";
1
+ import { jsx as i, jsxs as l, Fragment as g } from "react/jsx-runtime";
2
+ import w from "@kne/button-group";
3
+ import t from "classnames";
4
+ import { Info as x } from "../Icons/index.js";
5
5
  import n from "./style.module.scss.js";
6
- import x from "../Tag/SemanticTag.js";
7
- import D from "../TooltipInfo/TooltipInfo.js";
8
- const L = ({
9
- title: k,
6
+ import D from "../Tag/SemanticTag.js";
7
+ import P from "../TooltipInfo/TooltipInfo.js";
8
+ const M = ({
9
+ title: p,
10
10
  info: a,
11
11
  subtitle: o,
12
12
  description: s,
13
13
  tags: r,
14
14
  tagsPlacement: d = "inline",
15
- actions: p,
16
- selected: m,
15
+ actions: h,
16
+ surface: m = "plain",
17
+ selected: u,
17
18
  onClick: c,
18
- className: u
19
+ className: v
19
20
  }) => {
20
- const v = (p ?? []).filter((e) => !e.hidden), h = !!(o || r != null && r.length), y = v.map((e) => ({
21
+ const b = (h ?? []).filter((e) => !e.hidden), y = !!(o || r != null && r.length), N = b.map((e) => ({
21
22
  type: "link",
22
23
  key: e.key,
23
24
  icon: e.icon,
24
25
  children: e.label,
25
26
  onClick: e.onClick
26
- })), f = r != null && r.length ? /* @__PURE__ */ t(
27
+ })), f = r != null && r.length ? /* @__PURE__ */ i(
27
28
  "div",
28
29
  {
29
- className: i(
30
+ className: t(
30
31
  "marsun-interactive-block-tags",
31
32
  n["marsun-interactive-block-tags"]
32
33
  ),
33
- children: r.map((e) => /* @__PURE__ */ t(x, { color: e.color, children: e.label }, e.label))
34
+ children: r.map((e) => /* @__PURE__ */ i(D, { color: e.color, children: e.label }, e.label))
34
35
  }
35
- ) : null, b = /* @__PURE__ */ l(N, { children: [
36
+ ) : null, k = /* @__PURE__ */ l(g, { children: [
36
37
  /* @__PURE__ */ l(
37
38
  "div",
38
39
  {
39
- className: i(
40
+ className: t(
40
41
  "marsun-interactive-block-header",
41
42
  n["marsun-interactive-block-header"]
42
43
  ),
@@ -44,39 +45,39 @@ const L = ({
44
45
  /* @__PURE__ */ l(
45
46
  "div",
46
47
  {
47
- className: i(
48
+ className: t(
48
49
  "marsun-interactive-block-title-group",
49
50
  n["marsun-interactive-block-title-group"]
50
51
  ),
51
52
  children: [
52
- /* @__PURE__ */ t(
53
+ /* @__PURE__ */ i(
53
54
  "p",
54
55
  {
55
- className: i(
56
+ className: t(
56
57
  "marsun-interactive-block-title",
57
58
  n["marsun-interactive-block-title"]
58
59
  ),
59
- children: k
60
+ children: p
60
61
  }
61
62
  ),
62
- a != null && a.length ? /* @__PURE__ */ t(
63
- D,
63
+ a != null && a.length ? /* @__PURE__ */ i(
64
+ P,
64
65
  {
65
66
  content: a,
66
67
  placement: "topLeft",
67
68
  overlayStyle: { minWidth: 220, maxWidth: 360 },
68
69
  overlayClassName: "marsun-interactive-block-info-tooltip",
69
- children: /* @__PURE__ */ t(
70
+ children: /* @__PURE__ */ i(
70
71
  "span",
71
72
  {
72
- className: i(
73
+ className: t(
73
74
  "marsun-interactive-block-info-trigger",
74
75
  n["marsun-interactive-block-info-trigger"]
75
76
  ),
76
77
  onClick: (e) => e.stopPropagation(),
77
78
  onMouseDown: (e) => e.stopPropagation(),
78
79
  onKeyDown: (e) => e.stopPropagation(),
79
- children: /* @__PURE__ */ t(w, { size: 16, "aria-hidden": !0 })
80
+ children: /* @__PURE__ */ i(x, { size: 16, "aria-hidden": !0 })
80
81
  }
81
82
  )
82
83
  }
@@ -84,35 +85,35 @@ const L = ({
84
85
  ]
85
86
  }
86
87
  ),
87
- v.length ? /* @__PURE__ */ t(
88
+ b.length ? /* @__PURE__ */ i(
88
89
  "div",
89
90
  {
90
- className: i(
91
+ className: t(
91
92
  "marsun-interactive-block-actions",
92
93
  n["marsun-interactive-block-actions"]
93
94
  ),
94
95
  onClick: (e) => e.stopPropagation(),
95
96
  onKeyDown: (e) => e.stopPropagation(),
96
97
  role: "presentation",
97
- children: /* @__PURE__ */ t(g, { moreType: "link", list: y })
98
+ children: /* @__PURE__ */ i(w, { moreType: "link", list: N })
98
99
  }
99
100
  ) : null
100
101
  ]
101
102
  }
102
103
  ),
103
- h ? /* @__PURE__ */ l(
104
+ y ? /* @__PURE__ */ l(
104
105
  "div",
105
106
  {
106
- className: i(
107
+ className: t(
107
108
  "marsun-interactive-block-meta",
108
109
  n["marsun-interactive-block-meta"],
109
110
  d === "below" && n["marsun-interactive-block-meta--below"]
110
111
  ),
111
112
  children: [
112
- o ? /* @__PURE__ */ t(
113
+ o ? /* @__PURE__ */ i(
113
114
  "p",
114
115
  {
115
- className: i(
116
+ className: t(
116
117
  "marsun-interactive-block-subtitle",
117
118
  n["marsun-interactive-block-subtitle"]
118
119
  ),
@@ -123,10 +124,10 @@ const L = ({
123
124
  ]
124
125
  }
125
126
  ) : null,
126
- s ? /* @__PURE__ */ t(
127
+ s ? /* @__PURE__ */ i(
127
128
  "p",
128
129
  {
129
- className: i(
130
+ className: t(
130
131
  "marsun-interactive-block-description",
131
132
  n["marsun-interactive-block-description"]
132
133
  ),
@@ -134,38 +135,40 @@ const L = ({
134
135
  }
135
136
  ) : null
136
137
  ] });
137
- return c ? /* @__PURE__ */ t(
138
+ return c ? /* @__PURE__ */ i(
138
139
  "div",
139
140
  {
140
141
  role: "button",
141
142
  tabIndex: 0,
142
- className: i(
143
+ className: t(
143
144
  "marsun-interactive-block",
144
145
  n["marsun-interactive-block"],
145
146
  n["marsun-interactive-block--clickable"],
146
- m && n["marsun-interactive-block--selected"],
147
- u
147
+ m === "inset" && n["marsun-interactive-block--inset"],
148
+ u && n["marsun-interactive-block--selected"],
149
+ v
148
150
  ),
149
151
  onClick: c,
150
152
  onKeyDown: (e) => {
151
153
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), c());
152
154
  },
153
- children: b
155
+ children: k
154
156
  }
155
- ) : /* @__PURE__ */ t(
157
+ ) : /* @__PURE__ */ i(
156
158
  "div",
157
159
  {
158
- className: i(
160
+ className: t(
159
161
  "marsun-interactive-block",
160
162
  n["marsun-interactive-block"],
161
- m && n["marsun-interactive-block--selected"],
162
- u
163
+ m === "inset" && n["marsun-interactive-block--inset"],
164
+ u && n["marsun-interactive-block--selected"],
165
+ v
163
166
  ),
164
- children: b
167
+ children: k
165
168
  }
166
169
  );
167
170
  };
168
171
  export {
169
- L as default
172
+ M as default
170
173
  };
171
174
  //# sourceMappingURL=InteractiveBlock.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InteractiveBlock.js","sources":["../../../src/components/InteractiveBlock/InteractiveBlock.tsx"],"sourcesContent":["import ButtonGroup from '@kne/button-group';\nimport classNames from 'classnames';\nimport type { ReactNode } from 'react';\nimport type { DescriptionItem } from '../Descriptions/CommonDescriptions';\nimport { Info } from '../Icons';\nimport { SemanticTag } from '../Tag';\nimport { TooltipInfo } from '../TooltipInfo';\nimport styles from './style.module.scss';\n\nexport type InteractiveBlockTag = {\n label: string;\n color: string;\n};\n\nexport type InteractiveBlockAction = {\n key: string;\n label: string;\n icon?: ReactNode;\n onClick?: () => void;\n hidden?: boolean;\n};\n\nexport type InteractiveBlockTagsPlacement = 'inline' | 'below';\n\nexport type InteractiveBlockProps = {\n title: ReactNode;\n info?: DescriptionItem[];\n subtitle?: ReactNode;\n description?: ReactNode;\n tags?: InteractiveBlockTag[];\n tagsPlacement?: InteractiveBlockTagsPlacement;\n actions?: InteractiveBlockAction[];\n selected?: boolean;\n onClick?: () => void;\n className?: string;\n};\n\n/**\n * 带操作性的展示块:title → Info+TooltipInfo → actions;tags 紧贴 subtitle。\n */\nconst InteractiveBlock: React.FC<InteractiveBlockProps> = ({\n title,\n info,\n subtitle,\n description,\n tags,\n tagsPlacement = 'inline',\n actions,\n selected,\n onClick,\n className,\n}) => {\n const visibleActions = (actions ?? []).filter((a) => !a.hidden);\n const hasMeta = Boolean(subtitle || tags?.length);\n\n const actionList = visibleActions.map((action) => ({\n type: 'link' as const,\n key: action.key,\n icon: action.icon,\n children: action.label,\n onClick: action.onClick,\n }));\n\n const tagsNode = tags?.length ? (\n <div\n className={classNames(\n 'marsun-interactive-block-tags',\n styles['marsun-interactive-block-tags'],\n )}\n >\n {tags.map((tag) => (\n <SemanticTag key={tag.label} color={tag.color}>\n {tag.label}\n </SemanticTag>\n ))}\n </div>\n ) : null;\n\n const body = (\n <>\n <div\n className={classNames(\n 'marsun-interactive-block-header',\n styles['marsun-interactive-block-header'],\n )}\n >\n <div\n className={classNames(\n 'marsun-interactive-block-title-group',\n styles['marsun-interactive-block-title-group'],\n )}\n >\n <p\n className={classNames(\n 'marsun-interactive-block-title',\n styles['marsun-interactive-block-title'],\n )}\n >\n {title}\n </p>\n {info?.length ? (\n <TooltipInfo\n content={info}\n placement=\"topLeft\"\n overlayStyle={{ minWidth: 220, maxWidth: 360 }}\n overlayClassName=\"marsun-interactive-block-info-tooltip\"\n >\n <span\n className={classNames(\n 'marsun-interactive-block-info-trigger',\n styles['marsun-interactive-block-info-trigger'],\n )}\n onClick={(e) => e.stopPropagation()}\n onMouseDown={(e) => e.stopPropagation()}\n onKeyDown={(e) => e.stopPropagation()}\n >\n <Info size={16} aria-hidden />\n </span>\n </TooltipInfo>\n ) : null}\n </div>\n {visibleActions.length ? (\n <div\n className={classNames(\n 'marsun-interactive-block-actions',\n styles['marsun-interactive-block-actions'],\n )}\n onClick={(e) => e.stopPropagation()}\n onKeyDown={(e) => e.stopPropagation()}\n role=\"presentation\"\n >\n <ButtonGroup moreType=\"link\" list={actionList} />\n </div>\n ) : null}\n </div>\n {hasMeta ? (\n <div\n className={classNames(\n 'marsun-interactive-block-meta',\n styles['marsun-interactive-block-meta'],\n tagsPlacement === 'below' && styles['marsun-interactive-block-meta--below'],\n )}\n >\n {subtitle ? (\n <p\n className={classNames(\n 'marsun-interactive-block-subtitle',\n styles['marsun-interactive-block-subtitle'],\n )}\n >\n {subtitle}\n </p>\n ) : null}\n {tagsNode}\n </div>\n ) : null}\n {description ? (\n <p\n className={classNames(\n 'marsun-interactive-block-description',\n styles['marsun-interactive-block-description'],\n )}\n >\n {description}\n </p>\n ) : null}\n </>\n );\n\n if (onClick) {\n return (\n <div\n role=\"button\"\n tabIndex={0}\n className={classNames(\n 'marsun-interactive-block',\n styles['marsun-interactive-block'],\n styles['marsun-interactive-block--clickable'],\n selected && styles['marsun-interactive-block--selected'],\n className,\n )}\n onClick={onClick}\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n onClick();\n }\n }}\n >\n {body}\n </div>\n );\n }\n\n return (\n <div\n className={classNames(\n 'marsun-interactive-block',\n styles['marsun-interactive-block'],\n selected && styles['marsun-interactive-block--selected'],\n className,\n )}\n >\n {body}\n </div>\n );\n};\n\nexport default InteractiveBlock;\n"],"names":["InteractiveBlock","title","info","subtitle","description","tags","tagsPlacement","actions","selected","onClick","className","visibleActions","a","hasMeta","actionList","action","tagsNode","jsx","classNames","styles","tag","SemanticTag","body","jsxs","Fragment","TooltipInfo","Info","ButtonGroup"],"mappings":";;;;;;;AAwCA,MAAMA,IAAoD,CAAC;AAAA,EACzD,OAAAC;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,aAAAC;AAAA,EACA,MAAAC;AAAA,EACA,eAAAC,IAAgB;AAAA,EAChB,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,SAAAC;AAAA,EACA,WAAAC;AACF,MAAM;AACJ,QAAMC,KAAkBJ,KAAW,CAAA,GAAI,OAAO,CAACK,MAAM,CAACA,EAAE,MAAM,GACxDC,IAAU,GAAQV,KAAYE,KAAA,QAAAA,EAAM,SAEpCS,IAAaH,EAAe,IAAI,CAACI,OAAY;AAAA,IACjD,MAAM;AAAA,IACN,KAAKA,EAAO;AAAA,IACZ,MAAMA,EAAO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AAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,UAAU;AAAA,MACV,WAAWC;AAAA,QACT;AAAA,QACAC,EAAO,0BAA0B;AAAA,QACjCA,EAAO,qCAAqC;AAAA,QAC5CX,KAAYW,EAAO,oCAAoC;AAAA,QACvDT;AAAA,MAAA;AAAA,MAEF,SAAAD;AAAA,MACA,WAAW,CAAC,MAAM;AAChB,SAAI,EAAE,QAAQ,WAAW,EAAE,QAAQ,SACjC,EAAE,eAAA,GACFA,EAAA;AAAA,MAEJ;AAAA,MAEC,UAAAa;AAAA,IAAA;AAAA,EAAA,IAML,gBAAAL;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACT;AAAA,QACAC,EAAO,0BAA0B;AAAA,QACjCX,KAAYW,EAAO,oCAAoC;AAAA,QACvDT;AAAA,MAAA;AAAA,MAGD,UAAAY;AAAA,IAAA;AAAA,EAAA;AAGP;"}
1
+ {"version":3,"file":"InteractiveBlock.js","sources":["../../../src/components/InteractiveBlock/InteractiveBlock.tsx"],"sourcesContent":["import ButtonGroup from '@kne/button-group';\nimport classNames from 'classnames';\nimport type { ReactNode } from 'react';\nimport type { DescriptionItem } from '../Descriptions/CommonDescriptions';\nimport { Info } from '../Icons';\nimport { SemanticTag } from '../Tag';\nimport { TooltipInfo } from '../TooltipInfo';\nimport styles from './style.module.scss';\n\nexport type InteractiveBlockTag = {\n label: string;\n color: string;\n};\n\nexport type InteractiveBlockAction = {\n key: string;\n label: string;\n icon?: ReactNode;\n onClick?: () => void;\n hidden?: boolean;\n};\n\nexport type InteractiveBlockTagsPlacement = 'inline' | 'below';\n\nexport type InteractiveBlockSurface = 'plain' | 'inset';\n\nexport type InteractiveBlockProps = {\n title: ReactNode;\n info?: DescriptionItem[];\n subtitle?: ReactNode;\n description?: ReactNode;\n tags?: InteractiveBlockTag[];\n tagsPlacement?: InteractiveBlockTagsPlacement;\n actions?: InteractiveBlockAction[];\n /** 列表表面:inset 对齐归档检索灰底项 */\n surface?: InteractiveBlockSurface;\n selected?: boolean;\n onClick?: () => void;\n className?: string;\n};\n\n/**\n * 带操作性的展示块:title → Info+TooltipInfo → actions;tags 紧贴 subtitle。\n */\nconst InteractiveBlock: React.FC<InteractiveBlockProps> = ({\n title,\n info,\n subtitle,\n description,\n tags,\n tagsPlacement = 'inline',\n actions,\n surface = 'plain',\n selected,\n onClick,\n className,\n}) => {\n const visibleActions = (actions ?? []).filter((a) => !a.hidden);\n const hasMeta = Boolean(subtitle || tags?.length);\n\n const actionList = visibleActions.map((action) => ({\n type: 'link' as const,\n key: action.key,\n icon: action.icon,\n children: action.label,\n onClick: action.onClick,\n }));\n\n const tagsNode = tags?.length ? (\n <div\n className={classNames(\n 'marsun-interactive-block-tags',\n styles['marsun-interactive-block-tags'],\n )}\n >\n {tags.map((tag) => (\n <SemanticTag key={tag.label} color={tag.color}>\n {tag.label}\n </SemanticTag>\n ))}\n </div>\n ) : null;\n\n const body = (\n <>\n <div\n className={classNames(\n 'marsun-interactive-block-header',\n styles['marsun-interactive-block-header'],\n )}\n >\n <div\n className={classNames(\n 'marsun-interactive-block-title-group',\n styles['marsun-interactive-block-title-group'],\n )}\n >\n <p\n className={classNames(\n 'marsun-interactive-block-title',\n styles['marsun-interactive-block-title'],\n )}\n >\n {title}\n </p>\n {info?.length ? (\n <TooltipInfo\n content={info}\n placement=\"topLeft\"\n overlayStyle={{ minWidth: 220, maxWidth: 360 }}\n overlayClassName=\"marsun-interactive-block-info-tooltip\"\n >\n <span\n className={classNames(\n 'marsun-interactive-block-info-trigger',\n styles['marsun-interactive-block-info-trigger'],\n )}\n onClick={(e) => e.stopPropagation()}\n onMouseDown={(e) => e.stopPropagation()}\n onKeyDown={(e) => e.stopPropagation()}\n >\n <Info size={16} aria-hidden />\n </span>\n </TooltipInfo>\n ) : null}\n </div>\n {visibleActions.length ? (\n <div\n className={classNames(\n 'marsun-interactive-block-actions',\n styles['marsun-interactive-block-actions'],\n )}\n onClick={(e) => e.stopPropagation()}\n onKeyDown={(e) => e.stopPropagation()}\n role=\"presentation\"\n >\n <ButtonGroup moreType=\"link\" list={actionList} />\n </div>\n ) : null}\n </div>\n {hasMeta ? (\n <div\n className={classNames(\n 'marsun-interactive-block-meta',\n styles['marsun-interactive-block-meta'],\n tagsPlacement === 'below' && styles['marsun-interactive-block-meta--below'],\n )}\n >\n {subtitle ? (\n <p\n className={classNames(\n 'marsun-interactive-block-subtitle',\n styles['marsun-interactive-block-subtitle'],\n )}\n >\n {subtitle}\n </p>\n ) : null}\n {tagsNode}\n </div>\n ) : null}\n {description ? (\n <p\n className={classNames(\n 'marsun-interactive-block-description',\n styles['marsun-interactive-block-description'],\n )}\n >\n {description}\n </p>\n ) : null}\n </>\n );\n\n if (onClick) {\n return (\n <div\n role=\"button\"\n tabIndex={0}\n className={classNames(\n 'marsun-interactive-block',\n styles['marsun-interactive-block'],\n styles['marsun-interactive-block--clickable'],\n surface === 'inset' && styles['marsun-interactive-block--inset'],\n selected && styles['marsun-interactive-block--selected'],\n className,\n )}\n onClick={onClick}\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n onClick();\n }\n }}\n >\n {body}\n </div>\n );\n }\n\n return (\n <div\n className={classNames(\n 'marsun-interactive-block',\n styles['marsun-interactive-block'],\n surface === 'inset' && styles['marsun-interactive-block--inset'],\n selected && styles['marsun-interactive-block--selected'],\n className,\n )}\n >\n {body}\n </div>\n );\n};\n\nexport default InteractiveBlock;\n"],"names":["InteractiveBlock","title","info","subtitle","description","tags","tagsPlacement","actions","surface","selected","onClick","className","visibleActions","a","hasMeta","actionList","action","tagsNode","jsx","classNames","styles","tag","SemanticTag","body","jsxs","Fragment","TooltipInfo","Info","ButtonGroup"],"mappings":";;;;;;;AA4CA,MAAMA,IAAoD,CAAC;AAAA,EACzD,OAAAC;AAAA,EACA,MAAAC;AAAA,EACA,UAAAC;AAAA,EACA,aAAAC;AAAA,EACA,MAAAC;AAAA,EACA,eAAAC,IAA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,mCAAmC;AAAA,cAAA;AAAA,cAG3C,UAAAjB;AAAA,YAAA;AAAA,UAAA,IAED;AAAA,UACHc;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA,IAED;AAAA,IACHb,IACC,gBAAAc;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAWC;AAAA,UACT;AAAA,UACAC,EAAO,sCAAsC;AAAA,QAAA;AAAA,QAG9C,UAAAhB;AAAA,MAAA;AAAA,IAAA,IAED;AAAA,EAAA,GACN;AAGF,SAAIM,IAEA,gBAAAQ;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,UAAU;AAAA,MACV,WAAWC;AAAA,QACT;AAAA,QACAC,EAAO,0BAA0B;AAAA,QACjCA,EAAO,qCAAqC;AAAA,QAC5CZ,MAAY,WAAWY,EAAO,iCAAiC;AAAA,QAC/DX,KAAYW,EAAO,oCAAoC;AAAA,QACvDT;AAAA,MAAA;AAAA,MAEF,SAAAD;AAAA,MACA,WAAW,CAAC,MAAM;AAChB,SAAI,EAAE,QAAQ,WAAW,EAAE,QAAQ,SACjC,EAAE,eAAA,GACFA,EAAA;AAAA,MAEJ;AAAA,MAEC,UAAAa;AAAA,IAAA;AAAA,EAAA,IAML,gBAAAL;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACT;AAAA,QACAC,EAAO,0BAA0B;AAAA,QACjCZ,MAAY,WAAWY,EAAO,iCAAiC;AAAA,QAC/DX,KAAYW,EAAO,oCAAoC;AAAA,QACvDT;AAAA,MAAA;AAAA,MAGD,UAAAY;AAAA,IAAA;AAAA,EAAA;AAGP;"}
@@ -1,3 +1,3 @@
1
1
  export { default } from './InteractiveBlock';
2
2
  export { default as InteractiveBlock } from './InteractiveBlock';
3
- export type { InteractiveBlockAction, InteractiveBlockProps, InteractiveBlockTag, InteractiveBlockTagsPlacement, } from './InteractiveBlock';
3
+ export type { InteractiveBlockAction, InteractiveBlockProps, InteractiveBlockSurface, InteractiveBlockTag, InteractiveBlockTagsPlacement, } from './InteractiveBlock';
@@ -1,17 +1,18 @@
1
1
  const e = {
2
- "marsun-interactive-block": "_marsun-interactive-block_3jkx1_1",
3
- "marsun-interactive-block--clickable": "_marsun-interactive-block--clickable_3jkx1_10",
4
- "marsun-interactive-block--selected": "_marsun-interactive-block--selected_3jkx1_13",
5
- "marsun-interactive-block-title": "_marsun-interactive-block-title_3jkx1_13",
6
- "marsun-interactive-block-header": "_marsun-interactive-block-header_3jkx1_33",
7
- "marsun-interactive-block-title-group": "_marsun-interactive-block-title-group_3jkx1_40",
8
- "marsun-interactive-block-info-trigger": "_marsun-interactive-block-info-trigger_3jkx1_59",
9
- "marsun-interactive-block-actions": "_marsun-interactive-block-actions_3jkx1_69",
10
- "marsun-interactive-block-meta": "_marsun-interactive-block-meta_3jkx1_86",
11
- "marsun-interactive-block-meta--below": "_marsun-interactive-block-meta--below_3jkx1_93",
12
- "marsun-interactive-block-subtitle": "_marsun-interactive-block-subtitle_3jkx1_98",
13
- "marsun-interactive-block-tags": "_marsun-interactive-block-tags_3jkx1_105",
14
- "marsun-interactive-block-description": "_marsun-interactive-block-description_3jkx1_111"
2
+ "marsun-interactive-block": "_marsun-interactive-block_jc90o_1",
3
+ "marsun-interactive-block--clickable": "_marsun-interactive-block--clickable_jc90o_12",
4
+ "marsun-interactive-block--inset": "_marsun-interactive-block--inset_jc90o_15",
5
+ "marsun-interactive-block--selected": "_marsun-interactive-block--selected_jc90o_24",
6
+ "marsun-interactive-block-title": "_marsun-interactive-block-title_jc90o_28",
7
+ "marsun-interactive-block-header": "_marsun-interactive-block-header_jc90o_48",
8
+ "marsun-interactive-block-title-group": "_marsun-interactive-block-title-group_jc90o_55",
9
+ "marsun-interactive-block-info-trigger": "_marsun-interactive-block-info-trigger_jc90o_74",
10
+ "marsun-interactive-block-actions": "_marsun-interactive-block-actions_jc90o_84",
11
+ "marsun-interactive-block-meta": "_marsun-interactive-block-meta_jc90o_101",
12
+ "marsun-interactive-block-meta--below": "_marsun-interactive-block-meta--below_jc90o_108",
13
+ "marsun-interactive-block-subtitle": "_marsun-interactive-block-subtitle_jc90o_113",
14
+ "marsun-interactive-block-tags": "_marsun-interactive-block-tags_jc90o_120",
15
+ "marsun-interactive-block-description": "_marsun-interactive-block-description_jc90o_126"
15
16
  };
16
17
  export {
17
18
  e as default
@@ -1 +1 @@
1
- {"version":3,"file":"style.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"style.module.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
@@ -0,0 +1,6 @@
1
+ import { MarsunModalProps } from '../ModalTypes';
2
+ /**
3
+ * 通用居中 Modal:必填标题、可选 info/description、标题 Action(ButtonGroup)、S/M/L 宽度(只可缩小)、固定 body 高。
4
+ */
5
+ declare const Modal: React.FC<MarsunModalProps>;
6
+ export default Modal;