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
//! Semantics - Domain-specific UI components
//!
//! This module contains UI components with specific semantic meaning.
//! These are built on top of atoms but carry domain-specific intent.
//!
//! ## Design Philosophy
//!
//! - **Atoms**: Pure style primitives (colors, variants, layouts)
//! - **Semantics**: Meaningful actions with fixed labels (save, edit, delete)
//!
//! The key difference is that semantic components have **fixed labels and icons**,
//! ensuring UI consistency across the entire application. You can only choose
//! the display style (icon-only, text-only, or both).
//!
//! ## Example
//!
//! ```ignore
//! use egui_cha_ds::semantics::{self, ButtonStyle};
//!
//! // Icon only (compact)
//! semantics::save(ButtonStyle::Icon).on_click(ctx, Msg::Save);
//!
//! // Text only
//! semantics::close(ButtonStyle::Text).on_click(ctx, Msg::Close);
//!
//! // Icon + Text (most explicit)
//! semantics::delete(ButtonStyle::Both).on_click(ctx, Msg::Delete);
//! ```
pub use ;
pub use ;