@iris.interactive/handcook 2.6.22 → 2.6.25

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,5 +1,5 @@
1
1
  # Welcome to HandCook 👨‍🍳
2
- ![Version](https://img.shields.io/badge/version-2.6.22-blue.svg?cacheSeconds=2592000)
2
+ ![Version](https://img.shields.io/badge/version-2.6.24-blue.svg?cacheSeconds=2592000)
3
3
  ![Prerequisite](https://img.shields.io/badge/node-%3E%3D%2012.14.0-blue.svg)
4
4
  [![License: UNLICENSED](https://img.shields.io/badge/License-UNLICENSED-yellow.svg)](#)
5
5
  [![Twitter: captain\_iris](https://img.shields.io/twitter/follow/captain\_iris.svg?style=social)](https://twitter.com/captain\_iris)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iris.interactive/handcook",
3
- "version": "2.6.22",
3
+ "version": "2.6.25",
4
4
  "description": "The web cooking by IRIS Interactive",
5
5
  "main": "./public/scripts/index.js",
6
6
  "scripts": {
@@ -21,16 +21,19 @@ export class HcLightbox {
21
21
 
22
22
  instance;
23
23
 
24
- constructor(elements = ElementEnum.lightbox) {
25
- Fancybox.bind(elements,{
26
- groupAll: true
27
- });
24
+ constructor(elements = ElementEnum.lightbox, options = {}) {
25
+ if ( elements === ElementEnum.lightbox ) {
26
+ Object.assign(options, {
27
+ groupAttr: ElementEnum.lightboxAttr
28
+ });
29
+ }
30
+ Fancybox.bind(elements,options);
28
31
  this.instance = Fancybox.getInstance();
29
32
  }
30
33
  }
31
34
 
32
- const hc_lightbox = function (trigger) {
33
- return new HcLightbox(trigger);
35
+ const hc_lightbox = function (trigger = ElementEnum.lightbox, options = {}) {
36
+ return new HcLightbox(trigger, options);
34
37
  }
35
38
 
36
39
  export default hc_lightbox;
@@ -25,15 +25,15 @@ export class HcSlider {
25
25
 
26
26
  breakpoints = [{
27
27
  name: "medium",
28
- value: 650
28
+ value: 651
29
29
  },
30
30
  {
31
31
  name: "large",
32
- value: 1000
32
+ value: 1001
33
33
  },
34
34
  {
35
35
  name: "xlarge",
36
- value: 1453
36
+ value: 1454
37
37
  }];
38
38
 
39
39
  // Options
@@ -18,7 +18,8 @@ export default class ElementEnum {
18
18
  static popover = '[data-hc-popover]';
19
19
  static scrollSmooth = '[data-hc-smooth-scroll]';
20
20
  static modal = '[data-hc-modal]';
21
- static lightbox = '[data-hc-lightbox]';
21
+ static lightboxAttr = 'data-hc-lightbox';
22
+ static lightbox = `[${ElementEnum.lightboxAttr}]`;
22
23
  static dropdown = '[data-hc-dropdown]';
23
24
  static collapse = '[data-hc-collapse]';
24
25
  static collapseItem = '[data-hc-collapse-item]';
@@ -317,6 +317,7 @@ $highlight-link-color-hover: var(--iris--highlight--color-link-hover);
317
317
 
318
318
  // Single SIT highlight
319
319
  $detail-sit-highlight-color: var(--iris--detail-sit-highlight--color);
320
+ $detail-sit-highlight-color-title: var(--iris--detail-sit-highlight--color-title, var(--iris--detail-sit-highlight--color));
320
321
  $detail-sit-highlight-background-color: var(--iris--detail-sit-highlight--background-color);
321
322
  $detail-sit-highlight-link-color: var(--iris--detail-sit-highlight--color-link);
322
323
  $detail-sit-highlight-link-color-hover: var(--iris--detail-sit-highlight--color-link-hover);
@@ -334,6 +335,7 @@ $stratefull-content-width: var(--iris--stratefull--content-width);
334
335
 
335
336
  // Brochures form
336
337
  $brochure-form-color: var(--iris--brochure-form--color);
338
+ $brochure-form-color-title: var(--iris--brochure-form--color-title, var(--iris--brochure-form--color));
337
339
  $brochure-form-background-color: var(--iris--brochure-form--background-color);
338
340
  $brochure-form-link-color: var(--iris--brochure-form--color-link);
339
341
  $brochure-form-link-color-hover: var(--iris--brochure-form--color-link-hover);
@@ -345,6 +347,7 @@ $brochure-form-field-color: var(--iris--brochure-form-field--color);
345
347
 
346
348
  // Alternative content
347
349
  $alternative-content-color: var(--iris--alternative-content--color);
350
+ $alternative-content-color-title: var(--iris--alternative-content--color-title, var(--iris--alternative-content--color));
348
351
  $alternative-content-background-color: var(--iris--alternative-content--background-color);
349
352
  $alternative-content-link-color: var(--iris--alternative-content--color-link);
350
353
  $alternative-content-link-color-hover: var(--iris--alternative-content--color-link-hover);
@@ -352,6 +355,7 @@ $alternative-content-link-color-hover: var(--iris--alternative-content--color-li
352
355
 
353
356
  // Relative content
354
357
  $relative-content-color: var(--iris--relative-content--color);
358
+ $relative-content-color-title: var(--iris--relative-content--color-title, var(--iris--relative-content--color));
355
359
  $relative-content-background-color: var(--iris--relative-content--background-color);
356
360
  $relative-content-link-color: var(--iris--relative-content--color-link);
357
361
  $relative-content-link-color-hover: var(--iris--relative-content--color-link-hover);
@@ -359,13 +363,23 @@ $relative-content-link-color-hover: var(--iris--relative-content--color-link-hov
359
363
 
360
364
  // Video highlight
361
365
  $video-highlight-color: var(--iris--video-highlight--color);
366
+ $video-highlight-color-title: var(--iris--video-highlight--color-title, var(--iris--video-highlight--color));
362
367
  $video-highlight-background-color: var(--iris--video-highlight--background-color);
363
368
  $video-highlight-link-color: var(--iris--video-highlight--color-link);
364
369
  $video-highlight-link-color-hover: var(--iris--video-highlight--color-link-hover);
365
370
 
366
371
 
372
+ // Webcam
373
+ $webcam-highlight-color: var(--iris--webcam-highlight--color);
374
+ $webcam-highlight-color-title: var(--iris--webcam-highlight--color-title, var(--iris--webcam-highlight--color));
375
+ $webcam-highlight-background-color: var(--iris--webcam-highlight--background-color);
376
+ $webcam-highlight-link-color: var(--iris--webcam-highlight--color-link);
377
+ $webcam-highlight-link-color-hover: var(--iris--webcam-highlight--color-link-hover);
378
+
379
+
367
380
  // Authors
368
381
  $authors-color: var(--iris--authors--color);
382
+ $authors-color-title: var(--iris--authors--color-title, var(--iris--authors--color));
369
383
  $authors-background-color: var(--iris--authors--background-color);
370
384
  $authors-link-color: var(--iris--authors--color-link);
371
385
  $authors-link-color-hover: var(--iris--authors--color-link-hover);
@@ -373,20 +387,23 @@ $authors-link-color-hover: var(--iris--authors--color-link-hover);
373
387
 
374
388
  // Ma Plage
375
389
  $ma-plage-color: var(--iris--ma-plage--color);
390
+ $ma-plage-color-title: var(--iris--ma-plage--color-title, var(--iris--ma-plage--color));
376
391
  $ma-plage-background-color: var(--iris--ma-plage--background-color);
377
392
  $ma-plage-link-color: var(--iris--ma-plage--color-link);
378
393
  $ma-plage-link-color-hover: var(--iris--ma-plage--color-link-hover);
379
394
 
380
395
 
381
396
  // Tides
382
- $tides-background-color: var(--iris--tides--background-color);
383
397
  $tides-color: var(--iris--tides--color);
398
+ $tides-color-title: var(--iris--tides--color-title, var(--iris--tides--color));
399
+ $tides-background-color: var(--iris--tides--background-color);
384
400
  $tides-link-color: var(--iris--tides--color-link);
385
401
  $tides-link-color-hover: var(--iris--tides--color-link-hover);
386
402
 
387
403
 
388
404
  // Snow
389
405
  $snow-color: var(--iris--snow--color);
406
+ $snow-color-title: var(--iris--snow--color-title, var(--iris--snow--color));
390
407
  $snow-background-color: var(--iris--snow--background-color);
391
408
  $snow-link-color: var(--iris--snow--color-link);
392
409
  $snow-link-color-hover: var(--iris--snow--color-link-hover);
@@ -394,12 +411,14 @@ $snow-link-color-hover: var(--iris--snow--color-link-hover);
394
411
 
395
412
  // How to come
396
413
  $how-to-come-color: var(--iris--how-to-come--color);
414
+ $how-to-come-color-title: var(--iris--how-to-come--color-title, var(--iris--how-to-come--color));
397
415
  $how-to-come-background-color: var(--iris--how-to-come--background-color);
398
416
  $how-to-come-link-color: var(--iris--how-to-come--color-link);
399
417
  $how-to-come-link-color-hover: var(--iris--how-to-come--color-link-hover);
400
418
 
401
419
  // Trip
402
420
  $trip-color: var(--iris--trip--color);
421
+ $trip-color-title: var(--iris--trip--color-title, var(--iris--trip--color));
403
422
  $trip-background-color: var(--iris--trip--background-color);
404
423
  $trip-link-color: var(--iris--trip--color-link);
405
424
  $trip-link-color-hover: var(--iris--trip--color-link-hover);
@@ -414,4 +433,4 @@ $c-warning: #ff890e;
414
433
  / ================================================== */
415
434
  $c-easy: #9ccc65;
416
435
  $c-medium: #ff890e;
417
- $c-hard: #ef5350;
436
+ $c-hard: #ef5350;