-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release 0.9.1 for GOV.UK Frontend v5.4.0 and GOV.UK Frontend Jinja 3.…
…1.0 (#57) * Updates * Bump version to 0.9.1 * Update example project --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Cameron Lamb <[email protected]>
- Loading branch information
1 parent
67c7de8
commit c1269c5
Showing
6 changed files
with
61 additions
and
13 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
from dataclasses import dataclass | ||
from typing import 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 PasswordInputButton: | ||
classes: Optional[str] = None | ||
|
||
|
||
@dataclass(kw_only=True) | ||
class GovUKPasswordInput(govuk_frontend_base.GovUKComponent): | ||
"""GOV.UK Password Input | ||
See: https://design-system.service.gov.uk/components/password-input/ | ||
""" | ||
|
||
id: str | ||
name: str | ||
value: Optional[str] = None | ||
disabled: Optional[bool] = None | ||
describedBy: Optional[str] = None | ||
label: govuk_frontend_label.GovUKLabel | ||
hint: Optional[govuk_frontend_hint.GovUKHint] = None | ||
errorMessage: Optional[govuk_frontend_error_message.GovUKErrorMessage] = None | ||
formGroup: Optional[govuk_frontend_base.FormGroup] = None | ||
autocomplete: Optional[str] = None | ||
showPasswordText: Optional[str] = None | ||
hidePasswordText: Optional[str] = None | ||
showPasswordAriaLabelText: Optional[str] = None | ||
hidePasswordAriaLabelText: Optional[str] = None | ||
passwordShownAnnouncementText: Optional[str] = None | ||
passwordHiddenAnnouncementText: Optional[str] = None | ||
button: Optional[PasswordInputButton] = None | ||
|
||
_jinja2_template = "govuk_frontend_jinja/components/password-input/macro.html" | ||
_macro_name = "govukPasswordInput" | ||
|
||
|
||
COMPONENT = GovUKPasswordInput |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" | |
|
||
[tool.poetry] | ||
name = "govuk-frontend-django" | ||
version = "0.9.0" | ||
version = "0.9.1" | ||
description = "Django functionality to help when building a GOV.UK website." | ||
authors = [ | ||
"DBT Live Service Team <[email protected]>", | ||
|
@@ -25,7 +25,7 @@ packages = [ | |
python = "^3.8" | ||
Django = "^4.1.9" | ||
jinja2 = "^3.1.2" | ||
govuk-frontend-jinja = "3.0.0" | ||
govuk-frontend-jinja = "3.1.0" | ||
|
||
[tool.poetry.group.testing] | ||
optional = true | ||
|