Skip to content

Commit

Permalink
Merge pull request #876 from wmcadigital/next-release
Browse files Browse the repository at this point in the history
Next release
  • Loading branch information
gldgrnt committed Aug 26, 2021
2 parents 0c8fd36 + 0448115 commit 293f47c
Show file tree
Hide file tree
Showing 38 changed files with 1,423 additions and 48,279 deletions.
48,443 changes: 302 additions & 48,141 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/wmnds/assets/icon/facilities/baby-changing.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions src/wmnds/assets/icon/facilities/blue-badge-parking.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/wmnds/assets/icon/facilities/electric-charging.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/wmnds/assets/icon/facilities/induction-loop.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/wmnds/assets/icon/facilities/key-scheme.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/wmnds/assets/icon/facilities/ramp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions src/wmnds/assets/icon/facilities/seating.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/wmnds/assets/icon/facilities/shared-occupancy-parking.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions src/wmnds/assets/icon/facilities/step-free-access.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/wmnds/assets/icon/facilities/taxi-rank.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/wmnds/assets/icon/facilities/toilets.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/wmnds/assets/icon/facilities/wifi.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/wmnds/patterns/_patterns.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@
@import "journey-planner/journey-planner"; // Journey planner styles
@import "journey-planner-widget/journey-planner-widget"; // Journey planner widget styles
@import "find-a-timetable-widget/find-a-timetable-widget"; // Find a timetable widget pattern styles
@import "timetable/timetable"; // Timetable pattern styles
26 changes: 22 additions & 4 deletions src/wmnds/patterns/autocomplete/_autocomplete.njk
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
{% set label = params.label.contentText if params.label.contentText else "Autocomplete label" %}
{% set name = params.name if params.name else id %}
{% set isRequired = params.isRequired if params.isRequired else false %}
{% set selected = params.selected if params.selected else false %}
{% set selectedItem = params.selectedItem if params.selectedItem else 'Selected item' %}

{# Label #}
{{
Expand All @@ -23,6 +25,21 @@
})
}}

{% if params.selected %}
<div
class="wmnds-autocomplete__selected-item wmnds-grid wmnds-grid--justify-between wmnds-m-t-xs wmnds-m-b-md"
>
<strong class="wmnds-col-auto wmnds-autocomplete__selected-item-summary">{{selectedItem}}</strong>
<button type="button" class="wmnds-autocomplete__selected-item-close">
{{
wmndsIcon({
icon: 'general-cross',
class: 'wmnds-autocomplete__selected-item-close-icon'
})
}}
</button>
</div>
{% else %}
<div class="wmnds-autocomplete wmnds-grid{{isLoading}}">
{% from "wmnds/components/loader/_loader.njk" import wmndsLoader %}
{#- Get SVG icon and pass class -#}
Expand All @@ -31,16 +48,17 @@
wmndsIcon({
icon: 'general-search',
class: 'wmnds-autocomplete__icon'
}) | indent(2) | trim
-}}
})
}}

{# Loading spinner #}
{{
wmndsLoader() | indent(2) | trim
wmndsLoader()
}}
<!-- Autocomplete input box -->
<input class="wmnds-fe-input wmnds-autocomplete__input wmnds-col-1" value="{{ query }}" placeholder="{{ placeholder }}" name="{{ name }}" aria-label="{{ placeholder }}" type="text" id="{{id}}" required="{{isRequired}}" autocomplete="off">
</div>
{% endif %}

{#- If showSuggestions is true #}
{% if params.showSuggestions %}
Expand All @@ -62,7 +80,7 @@
wmndsDisruptionIndicatorMedium({
classModifiers: 'wmnds-disruption-indicator-medium',
text: query
}) | indent(8) | trim
})
}}
</div>
<div class="wmnds-col-1-2 wmnds-col-sm-2-3">
Expand Down
Loading

0 comments on commit 293f47c

Please sign in to comment.