@ons/design-system 67.0.2 → 67.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,33 @@
1
+ {% from "components/autosuggest/_macro.njk" import onsAutosuggest %}
2
+
3
+ {% set inputWithSearch = {
4
+ "id": 'search-field',
5
+ "width": '20',
6
+ "label": {
7
+ "text": "Search",
8
+ "id": "search-field-label",
9
+ "classes": "ons-u-pl-m"
10
+ },
11
+ "classes": "ons-input-search ons-input-search--icon ons-input-search--dark ons-u-mb-s",
12
+ "accessiblePlaceholder": true,
13
+ "autocomplete": "off"
14
+ }
15
+ %}
16
+
17
+ {{ onsAutosuggest({
18
+ "id": "search-input-autosuggest",
19
+ "input": inputWithSearch,
20
+ "containerClasses": "ons-autosuggest--header",
21
+ "instructions": "Use up and down keys to navigate suggestions once you\'ve typed more than two characters. Use the enter key to select a suggestion. Touch device users, explore by touch or with swipe gestures.",
22
+ "ariaYouHaveSelected": "You have selected",
23
+ "ariaMinChars": "Enter 3 or more characters for suggestions.",
24
+ "ariaOneResult": "There is one suggestion available.",
25
+ "ariaNResults": "There are {n} suggestions available.",
26
+ "ariaLimitedResults": "Results have been limited to 10 suggestions. Type more characters to improve your search",
27
+ "moreResults": "Continue entering to improve suggestions",
28
+ "resultsTitle": "Suggestions",
29
+ "resultsTitleId": "results-suggestions",
30
+ "autosuggestData": "/examples/data/search-index.json",
31
+ "noResults": "No suggestions found",
32
+ "typeMore": "Continue entering to get suggestions"
33
+ }) }}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ons/design-system",
3
3
  "description": "ONS Design System built CSS, JS, and Nunjucks templates",
4
- "version": "67.0.2",
4
+ "version": "67.0.3",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
7
7
  "author": {
@@ -2,7 +2,7 @@
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  min-height: 100%;
5
- overflow-x: hidden;
5
+ overflow-x: clip;
6
6
  width: 100%;
7
7
  }
8
8