@opentui/core 0.0.0-20251031-fc297165 → 0.0.0-20251102-23e7b561

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/index.js CHANGED
@@ -30,6 +30,7 @@ import {
30
30
  RendererControlState,
31
31
  RootRenderable,
32
32
  Selection,
33
+ StdinBuffer,
33
34
  StyledText,
34
35
  TerminalConsole,
35
36
  TextAttributes,
@@ -133,7 +134,7 @@ import {
133
134
  white,
134
135
  wrapWithDelegates,
135
136
  yellow
136
- } from "./index-vr8t68wb.js";
137
+ } from "./index-rzgaxyf4.js";
137
138
  // src/text-buffer-view.ts
138
139
  class TextBufferView {
139
140
  lib;
@@ -2202,6 +2203,13 @@ class BoxRenderable extends Renderable {
2202
2203
  this.applyYogaGap(options);
2203
2204
  }
2204
2205
  }
2206
+ initializeBorder() {
2207
+ if (this._border === false) {
2208
+ this._border = true;
2209
+ this.borderSides = getBorderSides(this._border);
2210
+ this.applyYogaBorders();
2211
+ }
2212
+ }
2205
2213
  get customBorderChars() {
2206
2214
  return this._customBorderCharsObj;
2207
2215
  }
@@ -2236,9 +2244,10 @@ class BoxRenderable extends Renderable {
2236
2244
  }
2237
2245
  set borderStyle(value) {
2238
2246
  let _value = value ?? this._defaultOptions.borderStyle;
2239
- if (this._borderStyle !== _value) {
2247
+ if (this._borderStyle !== _value || !this._border) {
2240
2248
  this._borderStyle = _value;
2241
2249
  this._customBorderChars = undefined;
2250
+ this.initializeBorder();
2242
2251
  this.requestRender();
2243
2252
  }
2244
2253
  }
@@ -2249,6 +2258,7 @@ class BoxRenderable extends Renderable {
2249
2258
  const newColor = parseColor(value ?? this._defaultOptions.borderColor);
2250
2259
  if (this._borderColor !== newColor) {
2251
2260
  this._borderColor = newColor;
2261
+ this.initializeBorder();
2252
2262
  this.requestRender();
2253
2263
  }
2254
2264
  }
@@ -2259,6 +2269,7 @@ class BoxRenderable extends Renderable {
2259
2269
  const newColor = parseColor(value ?? this._defaultOptions.focusedBorderColor);
2260
2270
  if (this._focusedBorderColor !== newColor) {
2261
2271
  this._focusedBorderColor = newColor;
2272
+ this.initializeBorder();
2262
2273
  if (this._focused) {
2263
2274
  this.requestRender();
2264
2275
  }
@@ -6112,6 +6123,7 @@ export {
6112
6123
  TabSelect,
6113
6124
  SyntaxStyle,
6114
6125
  StyledText,
6126
+ StdinBuffer,
6115
6127
  SliderRenderable,
6116
6128
  Selection,
6117
6129
  SelectRenderableEvents,
@@ -6167,5 +6179,5 @@ export {
6167
6179
  ASCIIFont
6168
6180
  };
6169
6181
 
6170
- //# debugId=FA34F12A6B07201B64756E2164756E21
6182
+ //# debugId=52657F382323749F64756E2164756E21
6171
6183
  //# sourceMappingURL=index.js.map