@oclif/multi-stage-output 0.3.0 → 0.3.2

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.
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  const getSideDividerWidth = (width, titleWidth) => (width - titleWidth) / 2;
4
4
  const getNumberOfCharsPerWidth = (char, width) => width / char.length;
5
5
  const PAD = ' ';
6
- export function Divider({ dividerChar = '─', dividerColor = 'dim', padding = 1, textColor = 'white', textPadding: titlePadding = 1, title = '', width = 50, }) {
6
+ export function Divider({ dividerChar = '─', dividerColor = 'dim', padding = 1, textColor, textPadding: titlePadding = 1, title = '', width = 50, }) {
7
7
  const titleString = title ? `${PAD.repeat(titlePadding) + title + PAD.repeat(titlePadding)}` : '';
8
8
  const titleWidth = titleString.length;
9
9
  const terminalWidth = process.stdout.columns ?? 80;
package/lib/design.d.ts CHANGED
@@ -43,7 +43,7 @@ export type Design = {
43
43
  */
44
44
  padding?: number;
45
45
  /**
46
- * Color of the title. Defaults to 'white'
46
+ * Color of the title
47
47
  */
48
48
  textColor?: string;
49
49
  /**
package/lib/design.js CHANGED
@@ -54,7 +54,7 @@ export function constructDesignParams(design) {
54
54
  dividerChar: '─',
55
55
  dividerColor: 'dim',
56
56
  padding: 1,
57
- textColor: 'white',
57
+ textColor: 'reset',
58
58
  textPadding: 1,
59
59
  width: 50,
60
60
  ...design?.title,
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@oclif/multi-stage-output",
3
3
  "description": "Terminal output for oclif commands with multiple stages",
4
- "version": "0.3.0",
4
+ "version": "0.3.2",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/multi-stage-output/issues",
7
7
  "dependencies": {
8
8
  "@oclif/core": "^4",
9
- "@types/react": "^18.3.3",
9
+ "@types/react": "^18.3.4",
10
10
  "change-case": "^5.4.4",
11
11
  "cli-spinners": "^2",
12
12
  "figures": "^6.1.0",