-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
21a0ff5
commit 99e7bd0
Showing
8 changed files
with
92 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
from dataclasses import dataclass | ||
from typing import Any, List, Optional | ||
|
||
from govuk_frontend_django.components import base as govuk_frontend_base | ||
from govuk_frontend_django.components import ( | ||
error_message as govuk_frontend_error_message, | ||
) | ||
from govuk_frontend_django.components import fieldset as govuk_frontend_fieldset | ||
from govuk_frontend_django.components import hint as govuk_frontend_hint | ||
from govuk_frontend_django.components import label as govuk_frontend_label | ||
from govuk_frontend_django.components import tag as govuk_frontend_tag | ||
|
||
|
||
@dataclass(kw_only=True) | ||
class TaskListItemsStatus: | ||
tag: Optional[Any] = None | ||
text: Optional[str] = None | ||
html: Optional[str] = None | ||
classes: Optional[str] = None | ||
|
||
|
||
@dataclass(kw_only=True) | ||
class TaskListItemsTitle: | ||
text: Optional[str] = None | ||
html: Optional[str] = None | ||
classes: Optional[str] = None | ||
|
||
|
||
@dataclass(kw_only=True) | ||
class TaskListItems: | ||
title: TaskListItemsTitle | ||
hint: Optional[govuk_frontend_hint.GovUKHint] = None | ||
status: TaskListItemsStatus | ||
href: Optional[str] = None | ||
classes: Optional[str] = None | ||
|
||
|
||
@dataclass(kw_only=True) | ||
class GovUKTaskList(govuk_frontend_base.GovUKComponent): | ||
"""GOV.UK Task List | ||
See: https://design-system.service.gov.uk/components/task-list/ | ||
""" | ||
|
||
items: List[TaskListItems] | ||
idPrefix: Optional[str] = None | ||
|
||
_jinja2_template = "govuk_frontend_jinja/components/task-list/macro.html" | ||
_macro_name = "govukTaskList" | ||
|
||
|
||
COMPONENT = GovUKTaskList |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters