@effect-tui/react 0.11.0 → 0.12.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.
@@ -8,8 +8,10 @@ export interface StyleOptions {
8
8
  fg?: ColorValue
9
9
  bg?: ColorValue
10
10
  bold?: boolean
11
+ dimmed?: boolean
11
12
  italic?: boolean
12
13
  underline?: boolean
14
+ strikethrough?: boolean
13
15
  inverse?: boolean
14
16
  }
15
17
 
@@ -17,8 +19,10 @@ export interface StyleInput {
17
19
  fg?: Color
18
20
  bg?: Color
19
21
  bold?: boolean
22
+ dimmed?: boolean
20
23
  italic?: boolean
21
24
  underline?: boolean
25
+ strikethrough?: boolean
22
26
  inverse?: boolean
23
27
  }
24
28
 
@@ -37,8 +41,10 @@ export function styleSpecFromProps(props: StyleInput): StyleSpec | undefined {
37
41
  if (fg !== undefined) spec.fg = fg
38
42
  if (bg !== undefined) spec.bg = bg
39
43
  if (props.bold) spec.bold = true
44
+ if (props.dimmed) spec.dimmed = true
40
45
  if (props.italic) spec.italic = true
41
46
  if (props.underline) spec.underline = true
47
+ if (props.strikethrough) spec.strikethrough = true
42
48
  if (props.inverse) spec.inverse = true
43
49
 
44
50
  return Object.keys(spec).length > 0 ? spec : undefined