wonder-image 1.2.4 → 1.2.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wonder-image",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "",
5
5
  "private": false,
6
6
  "scripts": {
@@ -183,6 +183,10 @@ line-height: var(--text-small-line-height) !important;
183
183
  font-family: var(--text-small-font-family) !important;
184
184
  font-weight: var(--text-small-font-weight) !important;
185
185
  }
186
+ /* Align */
187
+ .t-a-c { text-align: center !important; }
188
+ .t-a-l { text-align: left !important; }
189
+ .t-a-r { text-align: right !important; }
186
190
  /* Font weight */
187
191
  .fw-t-100 { font-weight: 100 !important; }
188
192
  .fw-t-200 { font-weight: 200 !important; }
@@ -231,6 +235,10 @@ line-height: var(--text-small-line-height) !important;
231
235
  font-family: var(--text-small-font-family) !important;
232
236
  font-weight: var(--text-small-font-weight) !important;
233
237
  }
238
+ /* Align */
239
+ .p-a-c { text-align: center !important; }
240
+ .p-a-l { text-align: left !important; }
241
+ .p-a-r { text-align: right !important; }
234
242
  /* Font weight */
235
243
  .fw-p-100 { font-weight: 100 !important; }
236
244
  .fw-p-200 { font-weight: 200 !important; }
@@ -1,7 +1,9 @@
1
1
  function setAos() {
2
2
 
3
- if(isMobile() && (typeof MOBILE_REMOVE_AOS == 'undefined' || MOBILE_REMOVE_AOS == true)) {
4
-
3
+ if (isMobile() && (typeof MOBILE_REMOVE_AOS == 'undefined' || MOBILE_REMOVE_AOS == true)) {
4
+ AOS.init({
5
+ disable: 'mobile'
6
+ });
5
7
  } else {
6
8
  AOS.init();
7
9
  }
@@ -30,18 +30,14 @@ function checkInputPlace(input, autocomplete) {
30
30
 
31
31
  for (const component of place.address_components) {
32
32
 
33
- const componentType = component.types[0];
34
-
35
- switch (componentType) {
36
-
37
- case "street_number": { number.value = component.long_name; break; }
38
- case "route": { street.value = component.short_name; break; }
39
- case "administrative_area_level_3": { city.value = component.short_name; break; }
40
- case "postal_code": { cap.value = component.short_name; break; }
41
- case "administrative_area_level_2": { province.value = component.short_name; break; }
42
- case "country": { country.value = component.short_name; break; }
43
-
44
- }
33
+ const componentType = component.types;
34
+
35
+ if (componentType.includes('street_number')) { number.value = component.long_name; }
36
+ if (componentType.includes('route')) { number.value = component.short_name; }
37
+ if (componentType.includes('administrative_area_level_3') || componentType.includes('postal_town')) { city.value = component.short_name; }
38
+ if (componentType.includes('postal_code') || componentType.includes('postal_code_prefix')) { cap.value = component.short_name; }
39
+ if (componentType.includes('administrative_area_level_2')) { province.value = component.short_name; }
40
+ if (componentType.includes('country')) { country.value = component.short_name; }
45
41
 
46
42
  }
47
43
 
package/webpack.config.js CHANGED
@@ -52,7 +52,12 @@ module.exports = {
52
52
  test: /.s?css$/,
53
53
  use: [
54
54
  MiniCssExtractPlugin.loader,
55
- { loader: "css-loader", options: { sourceMap: true } }
55
+ {
56
+ loader: "css-loader",
57
+ options: {
58
+ sourceMap: true
59
+ }
60
+ }
56
61
  ],
57
62
  },
58
63
  ],
@@ -68,12 +73,16 @@ module.exports = {
68
73
  preset: [
69
74
  "default",
70
75
  {
71
- discardComments: { removeAll: true },
76
+ discardComments: {
77
+ removeAll: true
78
+ },
72
79
  },
73
80
  ],
74
81
  },
75
82
  })
76
83
  ]
77
84
  },
78
- plugins: [new MiniCssExtractPlugin()],
85
+ plugins: [
86
+ new MiniCssExtractPlugin()
87
+ ],
79
88
  };