@opentui/core 0.1.12 → 0.1.13

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
@@ -115,7 +115,7 @@ import {
115
115
  white,
116
116
  wrapWithDelegates,
117
117
  yellow
118
- } from "./index-bpwzbxgn.js";
118
+ } from "./index-4gez9k7q.js";
119
119
  // src/post/filters.ts
120
120
  function applyScanlines(buffer, strength = 0.8, step = 2) {
121
121
  const width = buffer.width;
@@ -1174,6 +1174,9 @@ class BoxRenderable extends Renderable {
1174
1174
  super(ctx, options);
1175
1175
  this._backgroundColor = parseColor(options.backgroundColor || this._defaultOptions.backgroundColor);
1176
1176
  this._border = options.border ?? this._defaultOptions.border;
1177
+ if (!options.border && (options.borderStyle || options.borderColor || options.focusedBorderColor || options.customBorderChars)) {
1178
+ this._border = true;
1179
+ }
1177
1180
  this._borderStyle = options.borderStyle || this._defaultOptions.borderStyle;
1178
1181
  this._borderColor = parseColor(options.borderColor || this._defaultOptions.borderColor);
1179
1182
  this._focusedBorderColor = parseColor(options.focusedBorderColor || this._defaultOptions.focusedBorderColor);
@@ -1354,12 +1357,6 @@ class FrameBufferRenderable extends Renderable {
1354
1357
  super.destroySelf();
1355
1358
  }
1356
1359
  }
1357
- // src/renderables/Group.ts
1358
- class GroupRenderable extends Renderable {
1359
- constructor(ctx, options) {
1360
- super(ctx, options);
1361
- }
1362
- }
1363
1360
  // src/renderables/Text.ts
1364
1361
  class TextRenderable extends Renderable {
1365
1362
  selectable = true;
@@ -2560,9 +2557,6 @@ class TabSelectRenderable extends Renderable {
2560
2557
  function Generic(props, ...children) {
2561
2558
  return h(VRenderable, props || {}, ...children);
2562
2559
  }
2563
- function Group(props, ...children) {
2564
- return h(GroupRenderable, props || {}, ...children);
2565
- }
2566
2560
  function Box(props, ...children) {
2567
2561
  return h(BoxRenderable, props || {}, ...children);
2568
2562
  }
@@ -2726,8 +2720,6 @@ export {
2726
2720
  InputRenderableEvents,
2727
2721
  InputRenderable,
2728
2722
  Input,
2729
- GroupRenderable,
2730
- Group,
2731
2723
  Generic,
2732
2724
  FrameBufferRenderable,
2733
2725
  FrameBuffer,
@@ -2748,5 +2740,5 @@ export {
2748
2740
  ASCIIFont
2749
2741
  };
2750
2742
 
2751
- //# debugId=81DD4B36658B2C2464756E2164756E21
2743
+ //# debugId=90AD54F99873C73864756E2164756E21
2752
2744
  //# sourceMappingURL=index.js.map