aw-front-helpers 2.5.10 → 2.5.11

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/Readme.md CHANGED
@@ -1,6 +1,13 @@
1
- ![Logo](https://www.awstudio.fr/files/logo_5bf827234607f.png)
1
+ <div align="center">
2
+
3
+ # AW Studio - AW Front Helpers
4
+
5
+ [![Gitlab](https://img.shields.io/badge/Gitlab-aw--front--helpers-blue?style=for-the-badge&logo=gitlab&logoColor=white&labelColor=222261&color=white)](https://gitlab.com/awstudio/aw-front-helpers)
6
+
7
+ [![NODE version](https://img.shields.io/node/v/aw-front-starter)](https://gitlab.com/awstudio/aw-front-starter)
8
+
9
+ </div>
2
10
 
3
- # Front helpers
4
11
  A library of functionalities for common tasks in Javascript / Sass.
5
12
 
6
13
  ## Table of contents
@@ -22,10 +29,8 @@ A library of functionalities for common tasks in Javascript / Sass.
22
29
  - regex
23
30
  - helpers
24
31
 
25
- ### stylesheets
26
- Using [Sass](http://sass-lang.com/)
27
-
28
- [See the documentation](https://gitlab.com/awstudio/front-helpers/tree/master/stylesheets/Readme.md)
32
+ ### Stylesheets
33
+ Using [Sass](http://sass-lang.com/) - [See the documentation](https://gitlab.com/awstudio/front-helpers/tree/master/stylesheets/Readme.md)
29
34
 
30
35
  - functions | General mixins
31
36
  - medias | Media queries variables and mixins
@@ -1,15 +1,28 @@
1
- ![Logo](https://www.awstudio.fr/files/logo_5bf827234607f.png)
1
+ <div align="center">
2
+
3
+ # AW Front Helpers - Bootstraper
4
+
5
+ [![Gitlab](https://img.shields.io/badge/Gitlab-aw--front--helpers-blue?style=for-the-badge&logo=gitlab&logoColor=white&labelColor=222261&color=white)](https://gitlab.com/awstudio/aw-front-helpers)
6
+
7
+ </div>
8
+
9
+ ## Google Maps
10
+
11
+ ```js
12
+ import { BootstraperMaps } from 'aw-front-helpers';
13
+
14
+ BootstraperMaps.load('{googleKeyApi}', library[]).then( initMap ).catch(console.error);
15
+ ```
2
16
 
3
- # Bootstraper
4
- ## maps
5
- - `import { BootstraperMaps } from 'aw-front-helpers'
6
- - `bootstraperMaps.load('googleKeyApi', library[]).then( initMap )` to initialize
7
17
  - you can specified libraries to load in second parameters [Libraries](https://developers.google.com/maps/documentation/javascript/libraries)
8
18
  - drawing
9
19
  - geometry
10
20
  - places
11
21
  - visualization
12
22
 
13
- ## youtube
14
- - `import { BootstraperYoutube } from 'aw-front-helpers'
15
- - `BootstraperYoutube.load().then( initPlayer )` to initialize
23
+ ## Youtube
24
+ ```js
25
+ import { BootstraperYoutube } from 'aw-front-helpers';
26
+
27
+ BootstraperYoutube.load().then( initPlayer ).catch(console.error);
28
+ ```
package/classes/Readme.md CHANGED
@@ -1,27 +1,49 @@
1
- ![Logo](https://www.awstudio.fr/files/logo_5bf827234607f.png)
1
+ <div align="center">
2
+
3
+ # AW Front Helpers - Classes
4
+
5
+ [![Gitlab](https://img.shields.io/badge/Gitlab-aw--front--helpers-blue?style=for-the-badge&logo=gitlab&logoColor=white&labelColor=222261&color=white)](https://gitlab.com/awstudio/aw-front-helpers)
6
+
7
+ </div>
2
8
 
3
- # classes
4
9
  ## formControl
5
10
  Based on HTML5 basic options for inputs (required, type...).
6
11
 
7
- - `import FormControl from 'aw-front-helpers';` to import
8
- - `new FormControl(this._el, {options})`;
12
+ ```js
13
+ import { FormControl } from 'aw-front-helpers';
14
+
15
+ new FormControl(this._el, {options})
16
+ ```
9
17
 
10
18
  ## globalParallax
11
- - `import GParallax from 'aw-front-helpers';` to import
12
- - `GParallax.start()` to instantiate
19
+
20
+ ```js
21
+ import { GParallax } from 'aw-front-helpers';
22
+
23
+ GParallax.start();
24
+ ```
25
+
13
26
  - in your HTML element, you need define some atribute
14
27
  - `data-prllx-item` with option `data-speed` and `data-delta-start` (speed between 0 and 2): HTML element, moves vertically
15
28
  - `data-prllx-item-hz` with option `data-speed` and `data-delta-start` (speed between 0 and 2): HTML element, moves horizontally
16
29
  - `data-prllx-bg` with options `data-delta-start` and `data-delta-end`: defines a background-image to an element
17
30
 
18
31
  ## nearby
19
- - `import Nearby from 'aw-front-helpers';` to import
20
- - `new Nearby(this._el, {options})`;
32
+
33
+ ```js
34
+ import { Nearby } from 'aw-front-helpers';
35
+
36
+ new Nearby(this._el, {options});
37
+ ```
21
38
 
22
39
  ## sticky
23
- - `import Sticky from 'aw-front-helpers';` to import
24
- - `new Sticky({options})`;
40
+
41
+ ```js
42
+ import { Sticky } from 'aw-front-helpers';
43
+
44
+ new Sticky({options});
45
+ ```
46
+
25
47
  - need to define `[data-attributes]`
26
48
  - `[data-sticker-wrapper]` sticky wrapper of the element
27
49
  - `[data-sticker-element]` element you want stick in the wrapper
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aw-front-helpers",
3
- "version": "2.5.10",
3
+ "version": "2.5.11",
4
4
  "description": "Assets helpers for projects",
5
5
  "author": "Yoann Le Poupon",
6
6
  "license": "ISC",
@@ -12,6 +12,6 @@
12
12
  "dependencies": {
13
13
  "es6-symbol": "^3.1.3",
14
14
  "exif-js": "^2.3.0",
15
- "gsap": "^3.12.1"
15
+ "gsap": "^3.12.3"
16
16
  }
17
17
  }
@@ -1,6 +1,11 @@
1
- ![Logo](https://www.awstudio.fr/files/logo_5bf827234607f.png)
1
+ <div align="center">
2
+
3
+ # AW Front Helpers - Stylesheets
4
+
5
+ [![Gitlab](https://img.shields.io/badge/Gitlab-aw--front--helpers-blue?style=for-the-badge&logo=gitlab&logoColor=white&labelColor=222261&color=white)](https://gitlab.com/awstudio/aw-front-helpers)
6
+
7
+ </div>
2
8
 
3
- # Stylesheets
4
9
  ## functions.scss
5
10
  **Variables**
6
11
  - px-base
@@ -16,6 +21,7 @@
16
21
  - $breakpoint-desktop
17
22
  - $breakpoint-desktop-header
18
23
  - $breakpoint-desktop-xl
24
+ - $breakpoint-desktop-xxl
19
25
 
20
26
  **Mixins**
21
27
  - mobile
@@ -26,6 +32,7 @@
26
32
  - desktop-header
27
33
  - desktop
28
34
  - desktop-xl
35
+ - desktop-xxl
29
36
 
30
37
  ## mixins.scss
31
38
  **Variables:**
@@ -48,11 +55,10 @@
48
55
  - resetList
49
56
  - resetBtn
50
57
  - size
51
- - centerBlock
52
58
  - absolute
53
59
  - fixed
54
60
  - hidden
55
61
  - visible
56
- - unselectable
57
- - clearfix
58
62
  - imageCover
63
+ - loader
64
+ - hideAccess
@@ -150,12 +150,6 @@ $vertical-spacing-desktop: 80px !default;
150
150
  height: $height;
151
151
  }
152
152
 
153
- @mixin centerBlock {
154
- display: block;
155
- margin-left: auto;
156
- margin-right: auto;
157
- }
158
-
159
153
  @mixin absolute {
160
154
  position: absolute;
161
155
  top: 0;
@@ -184,19 +178,6 @@ $vertical-spacing-desktop: 80px !default;
184
178
  visibility: visible;
185
179
  }
186
180
 
187
- @mixin unselectable {
188
- cursor: default;
189
- user-select: none;
190
- }
191
-
192
- @mixin clearfix {
193
- &::after {
194
- clear: both;
195
- content: "";
196
- display: table;
197
- }
198
- }
199
-
200
181
  @mixin imageCover {
201
182
  @include absolute;
202
183
  width: 100%;
@@ -231,18 +212,22 @@ $vertical-spacing-desktop: 80px !default;
231
212
  }
232
213
 
233
214
  @mixin hideAccess {
215
+ border: 0 !important;
216
+ clip: rect(1px, 1px, 1px, 1px) !important;
217
+ clip-path: inset(50%) !important;
218
+ height: 1px !important;
219
+ overflow: hidden !important;
220
+ padding: 0 !important;
234
221
  position: absolute !important;
235
- clip: rect(1px, 1px, 1px, 1px);
236
- overflow: hidden;
237
- height: rem(1);
238
- width: rem(1);
239
- word-wrap: normal;
240
-
241
- &.focusable:focus {
242
- position: static !important;
243
- clip: auto;
244
- overflow: visible;
245
- height: auto;
246
- width: auto;
222
+ width: 1px !important;
223
+ white-space: nowrap !important;
224
+ &.sr-focusable:focus {
225
+ clip: auto !important;
226
+ clip-path: none !important;
227
+ height: auto !important;
228
+ margin: auto !important;
229
+ overflow: visible !important;
230
+ width: auto !important;
231
+ white-space: normal !important;
247
232
  }
248
233
  }
package/utils/Readme.md CHANGED
@@ -1,4 +1,9 @@
1
- ![Logo](https://www.awstudio.fr/files/logo_5bf827234607f.png)
1
+ <div align="center">
2
2
 
3
- # Utils
4
- `import utils from 'aw-front-helpers/utils';` to import
3
+ # AW Front Helpers - Utils
4
+
5
+ [![Gitlab](https://img.shields.io/badge/Gitlab-aw--front--helpers-blue?style=for-the-badge&logo=gitlab&logoColor=white&labelColor=222261&color=white)](https://gitlab.com/awstudio/aw-front-helpers)
6
+
7
+ </div>
8
+
9
+ `import { utils } from 'aw-front-helpers/utils';`