Skip to main content

Module recipe_date_edit_style

Module recipe_date_edit_style 

Source
Expand description

Default DateEditStyle impl + date-edit family design tokens.

Design tokens for the date-edit family live as pub consts on this module. The four widgets (DateEdit, TimeEdit, DateRangeEdit, DateTimeEdit) read them directly when building the calendar / clock trigger icon and the segmented-field separators.

In IntUI the trigger sits inside TextInput’s trailing slot, so the default make_body is a passthrough — the widget pre-assembles the complete body before handing it to the recipe. Custom recipes can wrap the body or surround it with siblings.

Structs§

DateEditRecipe
Configurable dimension bundle for RecipeDateEditStyle.
RecipeDateEditStyle
Default DateEditStyle shipped with Teksilo. Currently a passthrough — IntUI’s date-edit chrome lives inside TextInput, which is already themed. Custom styles can wrap the body to add extra siblings (clear button, status icon, etc.).

Constants§

CALENDAR_BUTTON_WIDTH
Width of the trailing calendar / clock trigger button slot.
CALENDAR_ICON_SIZE
Edge length of the calendar / clock trigger glyph.
SEGMENT_GAP
Gap between adjacent segments (visual separator characters sit in this gap). Used by the segmented date/time editors.

Functions§

resolve_date_edit_style
Convenience for callers that need the active style (per-call override → theme slot → RecipeDateEditStyle).