"""Rows: label rows, the numbered list and plain rows, each divided by lines. CSS: rows.css.""" from .frame import paragraphs, small_text from .links import links, text from .page import e def label_rows(items): """Rows with a label in a 150px column, then the text with its links 8px below, then any note in small text 8px below that. On phones the label stacks above the content. Data: [{"label", "title"?, "text"?, "links"?, "source"?: link or [links], "note"?}]. text and links are the row's text field, as in the kit's rows, or text holds a whole text field. A row with no text holds only its links. title sits above the text in medium weight, for a related item's name. note is a text field, such as where the row came from. label_rows([{"label": "Key risk", "text": "Design sign-off is blocking the search migration.", "source": {"title": "PLAT-221 Design sign-off", "url": "#", "icon": "task"}}]) """ def row(x): title = f'