#[cfg(all(feature = "tty", not(feature = "reexport_crossterm")))]
mod attribute;
mod cell;
#[cfg(all(feature = "tty", not(feature = "reexport_crossterm")))]
mod color;
mod column;
pub mod modifiers;
pub mod presets;
mod table;
pub use cell::CellAlignment;
pub use column::{ColumnConstraint, Width};
#[cfg(feature = "tty")]
pub(crate) use styling_enums::{map_attribute, map_color};
#[cfg(feature = "tty")]
pub use styling_enums::{Attribute, Color};
pub use table::{ContentArrangement, TableComponent};
#[cfg(all(feature = "tty", not(feature = "reexport_crossterm")))]
mod styling_enums {
pub use super::attribute::*;
pub use super::color::*;
}
#[cfg(all(feature = "tty", feature = "reexport_crossterm"))]
mod styling_enums {
pub use crossterm::style::Attribute;
pub use crossterm::style::Color;
#[inline]
pub(crate) fn map_attribute(attribute: Attribute) -> Attribute {
attribute
}
#[inline]
pub(crate) fn map_color(color: Color) -> Color {
color
}
}