@opentui/core 0.2.2 → 0.2.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.
@@ -172,6 +172,7 @@ import {
172
172
  setRenderLibPath,
173
173
  strikethrough,
174
174
  stringToStyledText,
175
+ stringWidth,
175
176
  stripAnsiSequences,
176
177
  t,
177
178
  terminalNamedSingleStrokeKeys,
@@ -183,7 +184,7 @@ import {
183
184
  white,
184
185
  wrapWithDelegates,
185
186
  yellow
186
- } from "./index-jv9g79dk.js";
187
+ } from "./index-hmk8xzt3.js";
187
188
 
188
189
  // src/index.ts
189
190
  var exports_src2 = {};
@@ -3370,11 +3371,11 @@ class GutterRenderable extends Renderable {
3370
3371
  this._maxAfterWidth = 0;
3371
3372
  for (const sign of this._lineSigns.values()) {
3372
3373
  if (sign.before) {
3373
- const width = Bun.stringWidth(sign.before);
3374
+ const width = stringWidth(sign.before);
3374
3375
  this._maxBeforeWidth = Math.max(this._maxBeforeWidth, width);
3375
3376
  }
3376
3377
  if (sign.after) {
3377
- const width = Bun.stringWidth(sign.after);
3378
+ const width = stringWidth(sign.after);
3378
3379
  this._maxAfterWidth = Math.max(this._maxAfterWidth, width);
3379
3380
  }
3380
3381
  }
@@ -3472,7 +3473,7 @@ class GutterRenderable extends Renderable {
3472
3473
  let currentX = startX;
3473
3474
  const sign = this._lineSigns.get(logicalLine);
3474
3475
  if (sign?.before) {
3475
- const beforeWidth = Bun.stringWidth(sign.before);
3476
+ const beforeWidth = stringWidth(sign.before);
3476
3477
  const padding = this._maxBeforeWidth - beforeWidth;
3477
3478
  currentX += padding;
3478
3479
  const beforeColor = sign.beforeColor ? parseColor(sign.beforeColor) : this._fg;
@@ -9464,7 +9465,7 @@ class ArrowRenderable extends Renderable {
9464
9465
  ...options.arrowChars
9465
9466
  };
9466
9467
  if (!options.width) {
9467
- this.width = Bun.stringWidth(this.getArrowChar());
9468
+ this.width = stringWidth(this.getArrowChar());
9468
9469
  }
9469
9470
  }
9470
9471
  get direction() {
@@ -10989,5 +10990,5 @@ class TimeToFirstDrawRenderable extends Renderable {
10989
10990
  }
10990
10991
  export { DistortionEffect, VignetteEffect, CloudsEffect, FlamesEffect, CRTRollingBarEffect, RainbowTextEffect, applyScanlines, applyInvert, applyNoise, applyChromaticAberration, applyAsciiArt, applyBrightness, applyGain, applySaturation, BloomEffect, SEPIA_MATRIX, PROTANOPIA_SIM_MATRIX, DEUTERANOPIA_SIM_MATRIX, TRITANOPIA_SIM_MATRIX, ACHROMATOPSIA_MATRIX, PROTANOPIA_COMP_MATRIX, DEUTERANOPIA_COMP_MATRIX, TRITANOPIA_COMP_MATRIX, TECHNICOLOR_MATRIX, SOLARIZATION_MATRIX, SYNTHWAVE_MATRIX, GREENSCALE_MATRIX, GRAYSCALE_MATRIX, INVERT_MATRIX, Timeline, engine, createTimeline, SlotRegistry, createSlotRegistry, createCoreSlotRegistry, registerCorePlugin, resolveCoreSlot, SlotRenderable, NativeSpanFeed, FrameBufferRenderable, ASCIIFontRenderable, Generic, Box, Text, ASCIIFont, Input, Select, TabSelect, FrameBuffer, Code, ScrollBox, vstyles, VRenderable, LineNumberRenderable, DiffRenderable, defaultTextareaKeyBindings, TextareaRenderable, InputRenderableEvents, InputRenderable, TextTableRenderable, MarkdownRenderable, SliderRenderable, ScrollBarRenderable, ArrowRenderable, ScrollBoxRenderable, SelectRenderableEvents, SelectRenderable, TabSelectRenderableEvents, TabSelectRenderable, TimeToFirstDrawRenderable, exports_src2 as exports_src };
10991
10992
 
10992
- //# debugId=C6958AB1304EEF3C64756E2164756E21
10993
- //# sourceMappingURL=index-d07rkqtc.js.map
10993
+ //# debugId=4A8BA0B5BE8B6F0464756E2164756E21
10994
+ //# sourceMappingURL=index-4w8751xf.js.map