@signalridge/pi-workflows 1.3.1 → 1.4.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/src/ui.ts CHANGED
@@ -148,7 +148,7 @@ async function selectList<T>(
148
148
  if (ctx.mode !== "tui") return undefined;
149
149
  return ctx.ui.custom<T | undefined>((_tui, theme, _keybindings, done) => {
150
150
  const container = new Container();
151
- container.addChild(new DynamicBorder((s: string) => theme.fg("accent", s)));
151
+ container.addChild(new DynamicBorder((s: string) => theme.fg("borderAccent", s)));
152
152
  container.addChild(new Text(theme.fg("accent", theme.bold(title)), 1, 0));
153
153
  container.addChild(new Text(theme.fg("dim", renderExtra(theme)), 1, 0));
154
154
  const list = new SelectList(items, Math.min(12, Math.max(1, items.length)), {
@@ -162,7 +162,7 @@ async function selectList<T>(
162
162
  list.onCancel = () => done(undefined);
163
163
  container.addChild(list);
164
164
  container.addChild(new Text(theme.fg("dim", "↑↓ select · enter confirm · esc back"), 1, 0));
165
- container.addChild(new DynamicBorder((s: string) => theme.fg("accent", s)));
165
+ container.addChild(new DynamicBorder((s: string) => theme.fg("borderAccent", s)));
166
166
  return {
167
167
  render: (width) => container.render(width),
168
168
  invalidate: () => container.invalidate(),