1#[cfg(all(feature = "tty", not(feature = "reexport_crossterm")))]
2mod attribute;
3mod cell;
4#[cfg(all(feature = "tty", not(feature = "reexport_crossterm")))]
5mod color;
6mod column;
7pub mod presets;
10mod table;
11mod table_style;
12
13pub use cell::CellAlignment;
14pub use column::{ColumnConstraint, Width};
15#[cfg(feature = "tty")]
16pub use styling_enums::{Attribute, Color};
17#[cfg(feature = "tty")]
18pub(crate) use styling_enums::{map_attribute, map_color};
19pub use table::ContentArrangement;
20pub use table_style::{ContentLineStyle, LineStyle, TableStyle};
21
22#[cfg(all(feature = "tty", not(feature = "reexport_crossterm")))]
24mod styling_enums {
25 pub use super::{attribute::*, color::*};
26}
27
28#[cfg(all(feature = "tty", feature = "reexport_crossterm"))]
32mod styling_enums {
33 pub use crossterm::style::Attribute;
36 pub use crossterm::style::Color;
39
40 #[inline]
42 pub(crate) fn map_attribute(attribute: Attribute) -> Attribute {
43 attribute
44 }
45
46 #[inline]
48 pub(crate) fn map_color(color: Color) -> Color {
49 color
50 }
51}