impact-nova 3.0.0-alpha.13 → 3.0.0-alpha.15

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 (42) hide show
  1. package/dist/components/data/ag-grid-react/ag-grid-list.d.ts +3 -1
  2. package/dist/components/data/ag-grid-react/ag-grid-list.demo-board.d.ts +46 -0
  3. package/dist/components/data/ag-grid-react/ag-grid-list.js +9 -8
  4. package/dist/components/data/ag-grid-react/ag-grid-list.key-attributes.d.ts +1 -0
  5. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +50 -3
  6. package/dist/components/data/ag-grid-react/build-list-drag-column-defs.d.ts +8 -0
  7. package/dist/components/data/ag-grid-react/build-list-drag-column-defs.js +28 -0
  8. package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.d.ts +18 -0
  9. package/dist/components/data/ag-grid-react/cell-renderers/drag-handle-cell-renderer.js +32 -0
  10. package/dist/components/data/ag-grid-react/cell-renderers/editors/list-select-cell-editor.js +66 -55
  11. package/dist/components/data/ag-grid-react/index.d.ts +5 -1
  12. package/dist/components/data/ag-grid-react/index.js +250 -201
  13. package/dist/components/data/ag-grid-react/list-drag-grid-options.d.ts +21 -0
  14. package/dist/components/data/ag-grid-react/list-drag-grid-options.js +46 -0
  15. package/dist/components/data/ag-grid-react/list-row-move.d.ts +84 -0
  16. package/dist/components/data/ag-grid-react/list-row-move.js +74 -0
  17. package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.d.ts +59 -0
  18. package/dist/components/data/ag-grid-react/use-ag-grid-list-drag.js +139 -0
  19. package/dist/components/data/ag-grid-react/use-list-drag-preview.d.ts +17 -0
  20. package/dist/components/data/ag-grid-react/use-list-drag-preview.js +49 -0
  21. package/dist/components/data/ag-grid-react/use-list-row-drop-zones.d.ts +44 -0
  22. package/dist/components/data/ag-grid-react/use-list-row-drop-zones.js +73 -0
  23. package/dist/components/data/data-table/data-table-list-header.d.ts +7 -0
  24. package/dist/components/data/data-table/data-table-list-header.js +31 -0
  25. package/dist/components/data/data-table/data-table.js +35 -34
  26. package/dist/components/data/data-table/data-table.types.d.ts +12 -2
  27. package/dist/components/data/data-table/index.d.ts +6 -0
  28. package/dist/components/data/data-table/index.js +63 -57
  29. package/dist/components/forms/choice-card/choice-card.js +99 -97
  30. package/dist/components/forms/choice-card/choice-card.variants.js +22 -1
  31. package/dist/components/primitives/iris/iris.js +20 -18
  32. package/dist/impact-nova-components.css +71 -0
  33. package/dist/impact-nova-tokens.scss +2 -0
  34. package/dist/impact-nova.css +1 -1
  35. package/dist/index.js +314 -308
  36. package/dist/llms/rules/ag-grid.js +1 -1
  37. package/dist/llms/rules/installation.js +1 -1
  38. package/dist/llms/rules/real-world-patterns.js +1 -1
  39. package/dist/llms/rules/requirements.js +1 -1
  40. package/dist/tailwind.config.js +3 -0
  41. package/dist/theme/tailwind-colors.js +3 -0
  42. package/package.json +1 -1
@@ -22,20 +22,20 @@ const G = {
22
22
  size: i = "md",
23
23
  shape: o = "default",
24
24
  children: s,
25
- type: e = "button",
26
- ...r
25
+ type: r = "button",
26
+ ...e
27
27
  }, a) => /* @__PURE__ */ t("span", { className: P({ shape: o }), children: /* @__PURE__ */ p(
28
28
  w,
29
29
  {
30
30
  ref: a,
31
- type: e,
31
+ type: r,
32
32
  variant: "ghost",
33
33
  size: V[i],
34
34
  "data-component": "iris-button",
35
35
  "data-size": i,
36
36
  "data-shape": o,
37
37
  className: l(k({ size: i }), n),
38
- ...r,
38
+ ...e,
39
39
  children: [
40
40
  /* @__PURE__ */ t(v, { size: G[i] }),
41
41
  s ?? "Ask Iris"
@@ -49,8 +49,8 @@ const G = {
49
49
  appearance: i = "outline",
50
50
  size: o = "md",
51
51
  shape: s = "default",
52
- type: e = "button",
53
- "aria-label": r = "Ask Iris",
52
+ type: r = "button",
53
+ "aria-label": e = "Ask Iris",
54
54
  ...a
55
55
  }, d) => {
56
56
  const m = S({ appearance: i, shape: s }), c = i === "filled" ? /* @__PURE__ */ t(N, { size: 16, className: "text-brand-foreground" }) : /* @__PURE__ */ t(v, { size: 16 });
@@ -58,12 +58,12 @@ const G = {
58
58
  "button",
59
59
  {
60
60
  ref: d,
61
- type: e,
61
+ type: r,
62
62
  "data-component": "iris-icon-button",
63
63
  "data-appearance": i,
64
64
  "data-size": o,
65
65
  "data-shape": s,
66
- "aria-label": r,
66
+ "aria-label": e,
67
67
  className: l(j({ size: o }), n),
68
68
  ...a,
69
69
  children: c
@@ -72,14 +72,14 @@ const G = {
72
72
  w,
73
73
  {
74
74
  ref: d,
75
- type: e,
75
+ type: r,
76
76
  variant: "ghost",
77
77
  size: y[o],
78
78
  "data-component": "iris-icon-button",
79
79
  "data-appearance": i,
80
80
  "data-size": o,
81
81
  "data-shape": s,
82
- "aria-label": r,
82
+ "aria-label": e,
83
83
  className: l(M({ size: o }), n),
84
84
  ...a,
85
85
  children: c
@@ -93,11 +93,11 @@ const G = {
93
93
  appearance: i = "loading",
94
94
  children: o,
95
95
  onAskInChat: s,
96
- askInChatLabel: e = "Ask in chat",
97
- overflowTooltipContent: r,
96
+ askInChatLabel: r = "Ask in chat",
97
+ overflowTooltipContent: e,
98
98
  ...a
99
99
  }, d) => {
100
- const m = i === "loading" || i === "status", c = i === "card", f = r ?? (typeof o == "string" ? o : void 0), u = /* @__PURE__ */ p(
100
+ const m = i === "loading" || i === "status", c = i === "card", f = e ?? (typeof o == "string" ? o : void 0), u = /* @__PURE__ */ p(
101
101
  "div",
102
102
  {
103
103
  ref: d,
@@ -129,7 +129,7 @@ const G = {
129
129
  children: i === "status" ? /* @__PURE__ */ t(A, { overflowTooltipContent: f, children: o }) : o
130
130
  }
131
131
  ),
132
- c && s && /* @__PURE__ */ t(w, { variant: "outline", size: "sm", className: "max-h-7 capitalize", onClick: s, children: e })
132
+ c && s && /* @__PURE__ */ t(w, { variant: "outline", size: "sm", className: "max-h-7 capitalize", onClick: s, children: r })
133
133
  ]
134
134
  }
135
135
  );
@@ -151,8 +151,8 @@ const G = {
151
151
  iconSize: i = "md",
152
152
  iconAppearance: o = "outline",
153
153
  loadingLabel: s = "Gathering insights...",
154
- onTriggerClick: e,
155
- onAskInChat: r,
154
+ onTriggerClick: r,
155
+ onAskInChat: e,
156
156
  askInChatLabel: a,
157
157
  className: d,
158
158
  children: m
@@ -182,7 +182,7 @@ const G = {
182
182
  appearance: b ? "filled" : o,
183
183
  "aria-expanded": f && h,
184
184
  onClick: (I) => {
185
- n === "idle" && (e?.(), I.preventDefault());
185
+ n === "idle" && (r?.(), I.preventDefault());
186
186
  }
187
187
  }
188
188
  ) }),
@@ -197,7 +197,9 @@ const G = {
197
197
  C,
198
198
  {
199
199
  appearance: "card",
200
- onAskInChat: r,
200
+ onAskInChat: e ? () => {
201
+ e(), u(!1);
202
+ } : void 0,
201
203
  askInChatLabel: a,
202
204
  children: m
203
205
  }
@@ -2047,12 +2047,25 @@ html.iris-agent-session *:not(.iris-agent-cursor):not(.iris-agent-cursor *):not(
2047
2047
  background-color: var(--color-primary-soft);
2048
2048
  }
2049
2049
 
2050
+ [data-component="ag-grid-react"][data-variant="list"][data-list-header="none"] .ag-header,
2051
+ [data-component="ag-grid-react"][data-variant="list"][data-list-header="none"] .ag-grid-pinned-top-rows {
2052
+ display: none;
2053
+ height: 0;
2054
+ min-height: 0;
2055
+ max-height: 0;
2056
+ margin: 0;
2057
+ overflow: hidden;
2058
+ border: none;
2059
+ }
2060
+
2050
2061
  [data-component="ag-grid-react"][data-variant="list"] .ag-cell {
2051
2062
  z-index: 1;
2052
2063
  pointer-events: auto;
2053
2064
  display: flex;
2054
2065
  align-items: center;
2055
2066
  box-sizing: border-box;
2067
+ min-width: 0;
2068
+ overflow: hidden;
2056
2069
  height: calc(var(--ag-row-height, 60px) - var(--in-ag-list-gap));
2057
2070
  max-height: calc(var(--ag-row-height, 60px) - var(--in-ag-list-gap));
2058
2071
  background-color: transparent;
@@ -2235,3 +2248,61 @@ html.iris-agent-session *:not(.iris-agent-cursor):not(.iris-agent-cursor *):not(
2235
2248
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
2236
2249
  }
2237
2250
  }
2251
+
2252
+ /* List drag — opt-in layer on the list skin (`data-list-drag`, from `onRowReorder`
2253
+ or the `drag-list` alias). Per-row gradient comes from `listRowGradient`
2254
+ via --in-ag-list-row-gradient on the .ag-row. */
2255
+ [data-component="ag-grid-react"][data-list-drag="true"] .ag-row::before {
2256
+ background-image: var(--in-ag-list-row-gradient, none);
2257
+ }
2258
+
2259
+ /* Dragged row: whole card highlighted and dimmed. The original stays in place
2260
+ (suppressMoveWhenRowDragging) while the ghost follows the pointer. */
2261
+ [data-component="ag-grid-react"][data-list-drag="true"] .ag-row-dragging {
2262
+ opacity: 0.5;
2263
+ }
2264
+
2265
+ [data-component="ag-grid-react"][data-list-drag="true"] .ag-row-dragging::before {
2266
+ background-color: var(--color-primary-soft);
2267
+ border-color: var(--color-primary);
2268
+ }
2269
+
2270
+ /* Drop target: primary stroke on the edge where the row will land (sits in the row gap).
2271
+ AG Grid's own full-slot indicator line is replaced. */
2272
+ [data-component="ag-grid-react"][data-list-drag="true"] .ag-row-highlight-above::after,
2273
+ [data-component="ag-grid-react"][data-list-drag="true"] .ag-row-highlight-below::after {
2274
+ display: none;
2275
+ }
2276
+
2277
+ [data-component="ag-grid-react"][data-list-drag="true"] .ag-row-highlight-above::before {
2278
+ box-shadow: 0 -2px 0 0 var(--color-primary);
2279
+ }
2280
+
2281
+ [data-component="ag-grid-react"][data-list-drag="true"] .ag-row-highlight-below::before {
2282
+ box-shadow: 0 2px 0 0 var(--color-primary);
2283
+ }
2284
+
2285
+ [data-component="ag-grid-react"][data-list-drag="true"] .ag-row-highlight-inside::before {
2286
+ box-shadow: 0 2px 0 0 var(--color-primary);
2287
+ }
2288
+
2289
+ /* Pressing the drag handle focuses/range-selects its cell; keep the highlight on the whole row only. */
2290
+ [data-component="ag-grid-react"][data-list-drag="true"] .ag-cell.ag-cell[col-id="__drag-handle"],
2291
+ [data-component="ag-grid-react"][data-list-drag="true"] .ag-row-dragging .ag-cell.ag-cell {
2292
+ border-color: transparent;
2293
+ background-color: transparent;
2294
+ outline: none;
2295
+ box-shadow: none;
2296
+ }
2297
+
2298
+ [data-component="ag-grid-react"][data-list-drag="true"] .ag-cell.ag-cell[col-id="__drag-handle"]::after,
2299
+ [data-component="ag-grid-react"][data-list-drag="true"] .ag-cell.ag-cell[col-id="__drag-handle"]::before {
2300
+ display: none;
2301
+ }
2302
+
2303
+ /* Hide AG Grid's default text ghost. Drag-list feedback is the dimmed source row
2304
+ plus the drop-edge highlight; `listDragPreview` is opt-in on top of that. */
2305
+ body:has([data-component="ag-grid-react"][data-list-drag="true"]) .ag-dnd-ghost,
2306
+ body[data-in-list-drag="true"] .ag-dnd-ghost {
2307
+ opacity: 0;
2308
+ }
@@ -79,6 +79,7 @@
79
79
  --color-badge-warning-filled: #ffe875;
80
80
  --color-badge-warning-muted: #fdfae8;
81
81
  --color-badge-warning-text: #8e7306;
82
+ --color-list-row-gradient-start: #f7f1fb;
82
83
 
83
84
  /* —— Component-specific —— */
84
85
  --color-button-primary-disabled: #c3c8d4;
@@ -369,6 +370,7 @@
369
370
  --color-badge-warning-filled: #f59e0b;
370
371
  --color-badge-warning-muted: #2d2410;
371
372
  --color-badge-warning-text: #fcd34d;
373
+ --color-list-row-gradient-start: #3a2d42;
372
374
 
373
375
  /* —— Component-specific —— */
374
376
  --color-button-primary-disabled: #404040;