Expand description
Type definitions for HyperChad UI transformer models.
This crate provides the core data models used by the HyperChad transformer framework,
including layout primitives, styling enums, routing definitions, and DOM manipulation types.
§Core Types
LayoutDirection,LayoutOverflow,JustifyContent,AlignItems- Flexbox-style layout controlsSelector,ElementTarget- CSS-style element targetingRoute,SwapStrategy- HTTP routing and DOM content swapping (htmx-inspired)Position,Cursor,Visibility- Element positioning and stylingTextAlign,FontWeight,WhiteSpace- Text styling and formattingImageFit,ImageLoading- Image display controls
§Features
serde- Enables serialization/deserialization for all public typesarb- ProvidesArbitraryimplementations for property-based testinglayout- Enables theLayoutPositiontype for grid-based layouts
Modules§
- arb
- Property-based testing support via
proptest::arbitrary::Arbitraryimplementations.
Structs§
- Parse
Selector Error - Error type for selector parsing failures.
Enums§
- Align
Items - Item alignment along the cross axis in flexbox-style layouts.
- Cursor
- Mouse cursor style.
- Element
Target - Target specification for DOM element selection.
- Font
Weight - Font weight (thickness) values.
- Image
Fit - How an image should fit within its container.
- Image
Loading - Image loading strategy.
- Justify
Content - Content justification along the main axis in flexbox-style layouts.
- Layout
Direction - Layout direction for flexbox-style layouts.
- Layout
Overflow - Overflow behavior for layouts when content exceeds available space.
- Layout
Position - Position information for elements in wrapped layouts.
- Link
Target - HTML link target attribute.
- Overflow
Wrap - Word breaking and wrapping behavior.
- Position
- CSS positioning mode for elements.
- Route
- HTTP route definition with target and swap strategy.
- Selector
- CSS-style selector for targeting elements.
- Swap
Strategy - Strategy for how to swap or insert content in the DOM.
- Target
- A target reference that can be either a literal string or a reference to a value.
- Text
Align - Text alignment within a container.
- Text
Decoration Line - Text decoration line style.
- Text
Decoration Style - Text decoration style.
- Text
Overflow - Text overflow behavior.
- User
Select - Text selection behavior.
- Visibility
- Element visibility state.
- White
Space - White space handling in text.