@kopexa/grc 0.0.2 → 0.0.4

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 (61) hide show
  1. package/dist/chunk-5TBN3JQA.mjs +66 -0
  2. package/dist/{chunk-TW3S4OE2.mjs → chunk-AGASJJ7X.mjs} +106 -82
  3. package/dist/chunk-DC44K745.mjs +46 -0
  4. package/dist/chunk-HI7F2CF4.mjs +1 -0
  5. package/dist/chunk-HJUSN7FD.mjs +1 -0
  6. package/dist/chunk-QDYL5ABK.mjs +118 -0
  7. package/dist/chunk-QS5S6V26.mjs +22 -0
  8. package/dist/chunk-VFX3DASQ.mjs +57 -0
  9. package/dist/common/control/index.d.mts +3 -0
  10. package/dist/common/control/index.d.ts +3 -0
  11. package/dist/common/control/index.js +160 -0
  12. package/dist/common/control/index.mjs +11 -0
  13. package/dist/common/control/mapped-controls.d.mts +33 -0
  14. package/dist/common/control/mapped-controls.d.ts +33 -0
  15. package/dist/common/control/mapped-controls.js +159 -0
  16. package/dist/common/control/mapped-controls.mjs +11 -0
  17. package/dist/common/control/messages.d.mts +16 -0
  18. package/dist/common/control/messages.d.ts +16 -0
  19. package/dist/common/control/messages.js +45 -0
  20. package/dist/common/control/messages.mjs +7 -0
  21. package/dist/common/impact/impact-card.d.mts +7 -1
  22. package/dist/common/impact/impact-card.d.ts +7 -1
  23. package/dist/common/impact/impact-card.js +105 -81
  24. package/dist/common/impact/impact-card.mjs +1 -1
  25. package/dist/common/impact/index.js +105 -81
  26. package/dist/common/impact/index.mjs +1 -1
  27. package/dist/common/index.d.mts +5 -0
  28. package/dist/common/index.d.ts +5 -0
  29. package/dist/common/index.js +458 -145
  30. package/dist/common/index.mjs +27 -2
  31. package/dist/common/risk/index.d.mts +4 -0
  32. package/dist/common/risk/index.d.ts +4 -0
  33. package/dist/common/risk/index.js +185 -0
  34. package/dist/common/risk/index.mjs +20 -0
  35. package/dist/common/risk/messages.d.mts +40 -0
  36. package/dist/common/risk/messages.d.ts +40 -0
  37. package/dist/common/risk/messages.js +69 -0
  38. package/dist/common/risk/messages.mjs +7 -0
  39. package/dist/common/risk/risk-rating-display.d.mts +21 -0
  40. package/dist/common/risk/risk-rating-display.d.ts +21 -0
  41. package/dist/common/risk/risk-rating-display.js +139 -0
  42. package/dist/common/risk/risk-rating-display.mjs +10 -0
  43. package/dist/common/risk/types.d.mts +37 -0
  44. package/dist/common/risk/types.d.ts +37 -0
  45. package/dist/common/risk/types.js +82 -0
  46. package/dist/common/risk/types.mjs +11 -0
  47. package/dist/index.d.mts +5 -0
  48. package/dist/index.d.ts +5 -0
  49. package/dist/index.js +458 -145
  50. package/dist/index.mjs +27 -2
  51. package/package.json +8 -7
  52. package/src/common/control/index.ts +6 -0
  53. package/src/common/control/mapped-controls.tsx +192 -0
  54. package/src/common/control/messages.ts +16 -0
  55. package/src/common/impact/impact-card.tsx +132 -79
  56. package/src/common/index.ts +2 -0
  57. package/src/common/risk/index.ts +12 -0
  58. package/src/common/risk/messages.ts +40 -0
  59. package/src/common/risk/risk-rating-display.tsx +86 -0
  60. package/src/common/risk/types.ts +91 -0
  61. /package/dist/{chunk-BFZPRJQT.mjs → chunk-CND77GVC.mjs} +0 -0
@@ -0,0 +1,160 @@
1
+ "use client";
2
+ "use strict";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/common/control/index.ts
22
+ var control_exports = {};
23
+ __export(control_exports, {
24
+ ControlChip: () => ControlChip,
25
+ MappedControls: () => MappedControls
26
+ });
27
+ module.exports = __toCommonJS(control_exports);
28
+
29
+ // src/common/control/mapped-controls.tsx
30
+ var import_i18n2 = require("@kopexa/i18n");
31
+ var import_krn = require("@kopexa/krn");
32
+ var import_sight = require("@kopexa/sight");
33
+ var import_theme = require("@kopexa/theme");
34
+
35
+ // src/common/control/messages.ts
36
+ var import_i18n = require("@kopexa/i18n");
37
+ var messages = (0, import_i18n.defineMessages)({
38
+ more_controls: {
39
+ id: "grc.control.mapped.more",
40
+ defaultMessage: "+{count} more"
41
+ },
42
+ view_all: {
43
+ id: "grc.control.mapped.view_all",
44
+ defaultMessage: "View all {count} controls"
45
+ },
46
+ no_controls: {
47
+ id: "grc.control.mapped.no_controls",
48
+ defaultMessage: "No mapped controls"
49
+ }
50
+ });
51
+
52
+ // src/common/control/mapped-controls.tsx
53
+ var import_jsx_runtime = require("react/jsx-runtime");
54
+ function formatControlKrn(krnString) {
55
+ const parsed = import_krn.KRN.tryParse(krnString);
56
+ if (!parsed) {
57
+ return { framework: null, controlId: krnString, full: krnString };
58
+ }
59
+ const framework = parsed.tryResourceId("frameworks");
60
+ const control = parsed.tryResourceId("controls");
61
+ if (framework && control) {
62
+ return {
63
+ framework,
64
+ controlId: control,
65
+ full: `${framework}:${control}`
66
+ };
67
+ }
68
+ const basename = parsed.basename();
69
+ return {
70
+ framework: null,
71
+ controlId: basename || krnString,
72
+ full: basename || krnString
73
+ };
74
+ }
75
+ function ControlChip({
76
+ krn,
77
+ size = "md",
78
+ interactive = false,
79
+ onClick,
80
+ className
81
+ }) {
82
+ const styles = (0, import_theme.relatedControlChip)({ size, interactive });
83
+ const { controlId, full } = formatControlKrn(krn);
84
+ const displayId = controlId.toUpperCase();
85
+ const content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: styles.chipId(), children: displayId });
86
+ const chip = interactive && onClick ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
87
+ "button",
88
+ {
89
+ type: "button",
90
+ className: styles.chip({ className }),
91
+ onClick,
92
+ children: content
93
+ }
94
+ ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: styles.chip({ className }), children: content });
95
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sight.Tooltip, { content: full, children: chip });
96
+ }
97
+ function MappedControls({
98
+ controls,
99
+ maxVisible = 2,
100
+ size = "md",
101
+ interactive = false,
102
+ onControlClick,
103
+ showEmpty = false,
104
+ className,
105
+ ...rest
106
+ }) {
107
+ const intl = (0, import_i18n2.useSafeIntl)();
108
+ const styles = (0, import_theme.relatedControlChip)({ size, interactive });
109
+ if (controls.length === 0) {
110
+ if (!showEmpty) return null;
111
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-xs text-muted-foreground", children: intl.formatMessage(messages.no_controls) });
112
+ }
113
+ const visibleControls = controls.slice(0, maxVisible);
114
+ const hiddenCount = controls.length - maxVisible;
115
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: styles.root({ className }), ...rest, children: [
116
+ visibleControls.map((krn) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
117
+ ControlChip,
118
+ {
119
+ krn,
120
+ size,
121
+ interactive,
122
+ onClick: onControlClick ? () => onControlClick(krn) : void 0
123
+ },
124
+ krn
125
+ )),
126
+ hiddenCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_sight.Popover.Root, { children: [
127
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sight.Popover.Trigger, { className: styles.overflow(), children: intl.formatMessage(messages.more_controls, {
128
+ count: hiddenCount
129
+ }) }),
130
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
131
+ import_sight.Popover.Content,
132
+ {
133
+ align: "start",
134
+ className: "p-2 max-w-xs",
135
+ showArrow: false,
136
+ children: [
137
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-xs font-medium text-muted-foreground mb-2", children: intl.formatMessage(messages.view_all, {
138
+ count: controls.length
139
+ }) }),
140
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex flex-wrap gap-1", children: controls.map((krn) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
141
+ ControlChip,
142
+ {
143
+ krn,
144
+ size,
145
+ interactive,
146
+ onClick: onControlClick ? () => onControlClick(krn) : void 0
147
+ },
148
+ krn
149
+ )) })
150
+ ]
151
+ }
152
+ )
153
+ ] })
154
+ ] });
155
+ }
156
+ // Annotate the CommonJS export names for ESM import in node:
157
+ 0 && (module.exports = {
158
+ ControlChip,
159
+ MappedControls
160
+ });
@@ -0,0 +1,11 @@
1
+ "use client";
2
+ import "../../chunk-CND77GVC.mjs";
3
+ import {
4
+ ControlChip,
5
+ MappedControls
6
+ } from "../../chunk-QDYL5ABK.mjs";
7
+ import "../../chunk-QS5S6V26.mjs";
8
+ export {
9
+ ControlChip,
10
+ MappedControls
11
+ };
@@ -0,0 +1,33 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentProps } from 'react';
3
+
4
+ interface MappedControlsProps extends ComponentProps<"div"> {
5
+ /** Array of control KRN strings */
6
+ controls: string[];
7
+ /** Maximum number of chips to display before showing overflow */
8
+ maxVisible?: number;
9
+ /** Size variant */
10
+ size?: "sm" | "md" | "lg";
11
+ /** Make chips interactive (clickable) */
12
+ interactive?: boolean;
13
+ /** Callback when a control chip is clicked */
14
+ onControlClick?: (krn: string) => void;
15
+ /** Show empty state when no controls */
16
+ showEmpty?: boolean;
17
+ }
18
+ interface ControlChipProps {
19
+ /** The KRN string */
20
+ krn: string;
21
+ /** Size variant */
22
+ size?: "sm" | "md" | "lg";
23
+ /** Make chip interactive */
24
+ interactive?: boolean;
25
+ /** Click handler */
26
+ onClick?: () => void;
27
+ /** Additional class names */
28
+ className?: string;
29
+ }
30
+ declare function ControlChip({ krn, size, interactive, onClick, className, }: ControlChipProps): react_jsx_runtime.JSX.Element;
31
+ declare function MappedControls({ controls, maxVisible, size, interactive, onControlClick, showEmpty, className, ...rest }: MappedControlsProps): react_jsx_runtime.JSX.Element | null;
32
+
33
+ export { ControlChip, type ControlChipProps, MappedControls, type MappedControlsProps };
@@ -0,0 +1,33 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ComponentProps } from 'react';
3
+
4
+ interface MappedControlsProps extends ComponentProps<"div"> {
5
+ /** Array of control KRN strings */
6
+ controls: string[];
7
+ /** Maximum number of chips to display before showing overflow */
8
+ maxVisible?: number;
9
+ /** Size variant */
10
+ size?: "sm" | "md" | "lg";
11
+ /** Make chips interactive (clickable) */
12
+ interactive?: boolean;
13
+ /** Callback when a control chip is clicked */
14
+ onControlClick?: (krn: string) => void;
15
+ /** Show empty state when no controls */
16
+ showEmpty?: boolean;
17
+ }
18
+ interface ControlChipProps {
19
+ /** The KRN string */
20
+ krn: string;
21
+ /** Size variant */
22
+ size?: "sm" | "md" | "lg";
23
+ /** Make chip interactive */
24
+ interactive?: boolean;
25
+ /** Click handler */
26
+ onClick?: () => void;
27
+ /** Additional class names */
28
+ className?: string;
29
+ }
30
+ declare function ControlChip({ krn, size, interactive, onClick, className, }: ControlChipProps): react_jsx_runtime.JSX.Element;
31
+ declare function MappedControls({ controls, maxVisible, size, interactive, onControlClick, showEmpty, className, ...rest }: MappedControlsProps): react_jsx_runtime.JSX.Element | null;
32
+
33
+ export { ControlChip, type ControlChipProps, MappedControls, type MappedControlsProps };
@@ -0,0 +1,159 @@
1
+ "use client";
2
+ "use strict";
3
+ "use client";
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
21
+
22
+ // src/common/control/mapped-controls.tsx
23
+ var mapped_controls_exports = {};
24
+ __export(mapped_controls_exports, {
25
+ ControlChip: () => ControlChip,
26
+ MappedControls: () => MappedControls
27
+ });
28
+ module.exports = __toCommonJS(mapped_controls_exports);
29
+ var import_i18n2 = require("@kopexa/i18n");
30
+ var import_krn = require("@kopexa/krn");
31
+ var import_sight = require("@kopexa/sight");
32
+ var import_theme = require("@kopexa/theme");
33
+
34
+ // src/common/control/messages.ts
35
+ var import_i18n = require("@kopexa/i18n");
36
+ var messages = (0, import_i18n.defineMessages)({
37
+ more_controls: {
38
+ id: "grc.control.mapped.more",
39
+ defaultMessage: "+{count} more"
40
+ },
41
+ view_all: {
42
+ id: "grc.control.mapped.view_all",
43
+ defaultMessage: "View all {count} controls"
44
+ },
45
+ no_controls: {
46
+ id: "grc.control.mapped.no_controls",
47
+ defaultMessage: "No mapped controls"
48
+ }
49
+ });
50
+
51
+ // src/common/control/mapped-controls.tsx
52
+ var import_jsx_runtime = require("react/jsx-runtime");
53
+ function formatControlKrn(krnString) {
54
+ const parsed = import_krn.KRN.tryParse(krnString);
55
+ if (!parsed) {
56
+ return { framework: null, controlId: krnString, full: krnString };
57
+ }
58
+ const framework = parsed.tryResourceId("frameworks");
59
+ const control = parsed.tryResourceId("controls");
60
+ if (framework && control) {
61
+ return {
62
+ framework,
63
+ controlId: control,
64
+ full: `${framework}:${control}`
65
+ };
66
+ }
67
+ const basename = parsed.basename();
68
+ return {
69
+ framework: null,
70
+ controlId: basename || krnString,
71
+ full: basename || krnString
72
+ };
73
+ }
74
+ function ControlChip({
75
+ krn,
76
+ size = "md",
77
+ interactive = false,
78
+ onClick,
79
+ className
80
+ }) {
81
+ const styles = (0, import_theme.relatedControlChip)({ size, interactive });
82
+ const { controlId, full } = formatControlKrn(krn);
83
+ const displayId = controlId.toUpperCase();
84
+ const content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: styles.chipId(), children: displayId });
85
+ const chip = interactive && onClick ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
86
+ "button",
87
+ {
88
+ type: "button",
89
+ className: styles.chip({ className }),
90
+ onClick,
91
+ children: content
92
+ }
93
+ ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: styles.chip({ className }), children: content });
94
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sight.Tooltip, { content: full, children: chip });
95
+ }
96
+ function MappedControls({
97
+ controls,
98
+ maxVisible = 2,
99
+ size = "md",
100
+ interactive = false,
101
+ onControlClick,
102
+ showEmpty = false,
103
+ className,
104
+ ...rest
105
+ }) {
106
+ const intl = (0, import_i18n2.useSafeIntl)();
107
+ const styles = (0, import_theme.relatedControlChip)({ size, interactive });
108
+ if (controls.length === 0) {
109
+ if (!showEmpty) return null;
110
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-xs text-muted-foreground", children: intl.formatMessage(messages.no_controls) });
111
+ }
112
+ const visibleControls = controls.slice(0, maxVisible);
113
+ const hiddenCount = controls.length - maxVisible;
114
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: styles.root({ className }), ...rest, children: [
115
+ visibleControls.map((krn) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
116
+ ControlChip,
117
+ {
118
+ krn,
119
+ size,
120
+ interactive,
121
+ onClick: onControlClick ? () => onControlClick(krn) : void 0
122
+ },
123
+ krn
124
+ )),
125
+ hiddenCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_sight.Popover.Root, { children: [
126
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_sight.Popover.Trigger, { className: styles.overflow(), children: intl.formatMessage(messages.more_controls, {
127
+ count: hiddenCount
128
+ }) }),
129
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
130
+ import_sight.Popover.Content,
131
+ {
132
+ align: "start",
133
+ className: "p-2 max-w-xs",
134
+ showArrow: false,
135
+ children: [
136
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "text-xs font-medium text-muted-foreground mb-2", children: intl.formatMessage(messages.view_all, {
137
+ count: controls.length
138
+ }) }),
139
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex flex-wrap gap-1", children: controls.map((krn) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
140
+ ControlChip,
141
+ {
142
+ krn,
143
+ size,
144
+ interactive,
145
+ onClick: onControlClick ? () => onControlClick(krn) : void 0
146
+ },
147
+ krn
148
+ )) })
149
+ ]
150
+ }
151
+ )
152
+ ] })
153
+ ] });
154
+ }
155
+ // Annotate the CommonJS export names for ESM import in node:
156
+ 0 && (module.exports = {
157
+ ControlChip,
158
+ MappedControls
159
+ });
@@ -0,0 +1,11 @@
1
+ "use client";
2
+ "use client";
3
+ import {
4
+ ControlChip,
5
+ MappedControls
6
+ } from "../../chunk-QDYL5ABK.mjs";
7
+ import "../../chunk-QS5S6V26.mjs";
8
+ export {
9
+ ControlChip,
10
+ MappedControls
11
+ };
@@ -0,0 +1,16 @@
1
+ declare const messages: {
2
+ more_controls: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ };
6
+ view_all: {
7
+ id: string;
8
+ defaultMessage: string;
9
+ };
10
+ no_controls: {
11
+ id: string;
12
+ defaultMessage: string;
13
+ };
14
+ };
15
+
16
+ export { messages };
@@ -0,0 +1,16 @@
1
+ declare const messages: {
2
+ more_controls: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ };
6
+ view_all: {
7
+ id: string;
8
+ defaultMessage: string;
9
+ };
10
+ no_controls: {
11
+ id: string;
12
+ defaultMessage: string;
13
+ };
14
+ };
15
+
16
+ export { messages };
@@ -0,0 +1,45 @@
1
+ "use client";
2
+ "use strict";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/common/control/messages.ts
22
+ var messages_exports = {};
23
+ __export(messages_exports, {
24
+ messages: () => messages
25
+ });
26
+ module.exports = __toCommonJS(messages_exports);
27
+ var import_i18n = require("@kopexa/i18n");
28
+ var messages = (0, import_i18n.defineMessages)({
29
+ more_controls: {
30
+ id: "grc.control.mapped.more",
31
+ defaultMessage: "+{count} more"
32
+ },
33
+ view_all: {
34
+ id: "grc.control.mapped.view_all",
35
+ defaultMessage: "View all {count} controls"
36
+ },
37
+ no_controls: {
38
+ id: "grc.control.mapped.no_controls",
39
+ defaultMessage: "No mapped controls"
40
+ }
41
+ });
42
+ // Annotate the CommonJS export names for ESM import in node:
43
+ 0 && (module.exports = {
44
+ messages
45
+ });
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ import {
3
+ messages
4
+ } from "../../chunk-QS5S6V26.mjs";
5
+ export {
6
+ messages
7
+ };
@@ -29,7 +29,13 @@ interface ImpactCardProps {
29
29
  scale?: ImpactScalePreset | ImpactScaleConfig;
30
30
  /** Custom title for the card */
31
31
  title?: string;
32
+ /**
33
+ * Display variant:
34
+ * - `card`: Wrapped in a Card with edit/save/cancel buttons (default)
35
+ * - `inline`: No card wrapper, always editable, changes propagate immediately
36
+ */
37
+ variant?: "card" | "inline";
32
38
  }
33
- declare function ImpactCard({ value, onChange, showJustification, showAuthenticity, readOnly, scale, title, }: ImpactCardProps): react_jsx_runtime.JSX.Element;
39
+ declare function ImpactCard({ value, onChange, showJustification, showAuthenticity, readOnly, scale, title, variant, }: ImpactCardProps): react_jsx_runtime.JSX.Element;
34
40
 
35
41
  export { ImpactCard, type ImpactCardProps, type ImpactValue };
@@ -29,7 +29,13 @@ interface ImpactCardProps {
29
29
  scale?: ImpactScalePreset | ImpactScaleConfig;
30
30
  /** Custom title for the card */
31
31
  title?: string;
32
+ /**
33
+ * Display variant:
34
+ * - `card`: Wrapped in a Card with edit/save/cancel buttons (default)
35
+ * - `inline`: No card wrapper, always editable, changes propagate immediately
36
+ */
37
+ variant?: "card" | "inline";
32
38
  }
33
- declare function ImpactCard({ value, onChange, showJustification, showAuthenticity, readOnly, scale, title, }: ImpactCardProps): react_jsx_runtime.JSX.Element;
39
+ declare function ImpactCard({ value, onChange, showJustification, showAuthenticity, readOnly, scale, title, variant, }: ImpactCardProps): react_jsx_runtime.JSX.Element;
34
40
 
35
41
  export { ImpactCard, type ImpactCardProps, type ImpactValue };