1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#![feature(track_caller)]
mod style;

// exports
pub use style::CssValueTrait;

// style builder
pub use style::s;

pub use seed_style_macros::{view_macro, as_tag, process_part, process_submacro_part,*};

#[macro_export]
macro_rules! with_dollar_sign {
    ($($body:tt)*) => {
        macro_rules! __with_dollar_sign { $($body)* }
        __with_dollar_sign!($);
    }
}


// style property argument trait
pub use style::{
    PseudoTrait,
    // exports for Seed Layout
    composition::{default_bp_theme, Composition, SeedBreakpoint, WithLayoutComposition},
    //ro col layout
    row_col_layout::{Row, *, Column, RowBuilder, ColumnBuilder, RowColumnArgs, RowItemArgs, ColumnItemArgs,},

    // Css Values
    css_values::*,
    // resizing
    helpers::conditionally_skip_rendering,
    layout::{Layout, LayoutArea, NoArea, WithGridLayout},
    // measures
    measures::{cm, em, hsl, pc, px, rem, rgb, rgba, vh, vw, ExactLength},
    // presets
    presets::{seed_colors, style_presets},
    theme::change_theme_with_name,
    theme::use_themes,
    // themes
    theme::Theme,
    // themes, conditional rendering
    theme::{except, only, only_and_above, only_and_below, at_breakpoint_and_above},
    //theme alias keys
    theme::{
        BorderRadiusTheme, BorderStyleTheme, BorderTheme, BorderWidthTheme, BreakpointTheme,
        ColorTheme, DisplayTheme, FontSizeTheme, FontTheme, LetterSpacingTheme, LineHeightTheme,
        ShadowTheme, SizeTheme, SpaceTheme, StyleTheme, TransitionTheme, ZIndexTheme,
    },
    AddStyleToNode,
    // global style api
    GlobalStyle,
    // extension trait to allow Style structs to be update_el processed by seed.
    LocalUpdateEl,
    // Style struct, technically user shouldn't really need to access this directly
    Style,
    // style property argument trait
    UpdateStyle,
};

// pub trait UpdateView<B,Ms> {
//     fn update_view(self, builder: &mut B);
// }

// impl<T,B> UpdateView<B> for T
// where T:UpdateEl(Ms),
// {
//     fn update_view(self, builder: &mut B) {
//         match builder.root {
//             Node::Element(ref mut el) => self.update_el(el),
//             _ => {}
//         }
//     }
// }

#[cfg(test)]
mod tests {
    #[test]
    fn it_works() {
        assert_eq!(2 + 2, 4);
    }
}