Skip to content

Commit

Permalink
Updates to support GOV.UK Frontend v4.6.0
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Apr 26, 2023
1 parent 12d417e commit 2c81279
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 17 deletions.
1 change: 1 addition & 0 deletions govuk_frontend_django/components/accordion.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class GovUKAccordion(govuk_frontend_base.GovUKComponent):

id: str
headingLevel: Optional[int] = None
rememberExpanded: Optional[bool] = None
hideAllSectionsText: Optional[str] = None
hideSectionText: Optional[str] = None
hideSectionAriaLabelText: Optional[str] = None
Expand Down
1 change: 1 addition & 0 deletions govuk_frontend_django/components/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class GovUKButton(govuk_frontend_base.GovUKComponent):
href: Optional[str] = None
preventDoubleClick: Optional[bool] = None
isStartButton: Optional[bool] = None
id: Optional[str] = None

_jinja2_template = "govuk_frontend_jinja/components/button/macro.html"
_macro_name = "govukButton"
Expand Down
2 changes: 2 additions & 0 deletions govuk_frontend_django/components/character_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ class GovUKCharacterCount(govuk_frontend_base.GovUKComponent):
textareaDescriptionText: Optional[str] = None
charactersUnderLimitText: Optional[Any] = None
charactersAtLimitText: Optional[str] = None
charactersOverLimitText: Optional[Any] = None
wordsUnderLimitText: Optional[Any] = None
wordsAtLimitText: Optional[str] = None
wordsOverLimitText: Optional[Any] = None

_jinja2_template = "govuk_frontend_jinja/components/character-count/macro.html"
_macro_name = "govukCharacterCount"
Expand Down
1 change: 1 addition & 0 deletions govuk_frontend_django/components/file_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class GovUKFileUpload(govuk_frontend_base.GovUKComponent):
name: str
id: 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
Expand Down
1 change: 1 addition & 0 deletions govuk_frontend_django/components/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class GovUKInput(govuk_frontend_base.GovUKComponent):
type: Optional[str] = None
inputmode: Optional[str] = None
value: Optional[str] = None
disabled: Optional[bool] = None
describedBy: Optional[str] = None
label: govuk_frontend_label.GovUKLabel
hint: Optional[govuk_frontend_hint.GovUKHint] = None
Expand Down
1 change: 1 addition & 0 deletions govuk_frontend_django/components/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class GovUKSelect(govuk_frontend_base.GovUKComponent):
name: str
items: List[SelectItems]
value: Optional[str] = None
disabled: Optional[bool] = None
describedBy: Optional[str] = None
label: Optional[govuk_frontend_label.GovUKLabel] = None
hint: Optional[govuk_frontend_hint.GovUKHint] = None
Expand Down
1 change: 1 addition & 0 deletions govuk_frontend_django/components/textarea.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class GovUKTextarea(govuk_frontend_base.GovUKComponent):
spellcheck: Optional[bool] = None
rows: Optional[str] = None
value: Optional[str] = None
disabled: Optional[bool] = None
describedBy: Optional[str] = None
label: govuk_frontend_label.GovUKLabel
hint: Optional[govuk_frontend_hint.GovUKHint] = None
Expand Down
2 changes: 1 addition & 1 deletion govuk_frontend_django/components/warning_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class GovUKWarningText(govuk_frontend_base.GovUKComponent):

text: Optional[str] = None
html: Optional[str] = None
iconFallbackText: str
iconFallbackText: Optional[str] = None

_jinja2_template = "govuk_frontend_jinja/components/warning-text/macro.html"
_macro_name = "govukWarningText"
Expand Down
30 changes: 15 additions & 15 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ packages = [{include = "govuk_frontend_django"}]
python = "^3.8"
Django = "^4.1.7"
jinja2 = "^3.1.2"
govuk-frontend-jinja = "2.5.0"
govuk-frontend-jinja = "2.6.0"

[tool.poetry.group.dev.dependencies]
black = "^23.3.0"
Expand Down

0 comments on commit 2c81279

Please sign in to comment.