@lanaco/lnc-react-ui 4.0.68 → 4.0.70

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.
@@ -140,4 +140,4 @@
140
140
  display: none;
141
141
  }
142
142
  }
143
- `,Me=N.forwardRef(({carouselItems:t=[],onSelectItem:n=()=>{},onButtonAction:r=()=>{}},i)=>{const e=Le.useDetectMobile();return D.jsx(Ot,{ref:i,children:D.jsx(Oe.Carousel,{autoPlay:!0,infiniteLoop:!0,showArrows:!1,showStatus:!1,showThumbs:!1,transitionTime:500,onClickItem:o=>{e||n==null||n(t==null?void 0:t.at(o),o)},children:t&&(t==null?void 0:t.map((o,a)=>D.jsxs(Rt,{backgroundColor:o==null?void 0:o.backgroundColor,children:[D.jsx("img",{loading:"lazy",src:o.imageUrl}),D.jsx(Et,{backgroundColor:o==null?void 0:o.backgroundColor,children:D.jsxs("div",{className:"banner-content",children:[D.jsxs("div",{className:"banner-text",children:[D.jsx("div",{className:"banner-title",children:o.title}),o.description]}),re.isDefined(o==null?void 0:o.buttonText)&&D.jsx(De,{color:"neutral",trailingIcon:"arrow-right",onClick:()=>r(o),children:o.buttonText})]})})]},`banner-${a+1}`)))})})});Me.propTypes={items:fe.PropTypes.array,handleClick:fe.PropTypes.func};module.exports=Me;
143
+ `,Me=N.forwardRef(({carouselItems:t=[],onSelectItem:n=()=>{},onButtonAction:r=()=>{}},i)=>{const e=Le.useDetectMobile();return D.jsx(Ot,{ref:i,children:D.jsx(Oe.Carousel,{autoPlay:!0,infiniteLoop:!0,showArrows:!1,showStatus:!1,showThumbs:!1,transitionTime:500,onClickItem:o=>{e||n==null||n(t==null?void 0:t.at(o),o)},children:t&&(t==null?void 0:t.map((o,a)=>D.jsxs(Rt,{backgroundColor:o==null?void 0:o.backgroundColor,children:[D.jsx("img",{loading:"lazy",src:o.imageUrl}),D.jsx(Et,{backgroundColor:o==null?void 0:o.backgroundColor,children:D.jsxs("div",{className:"banner-content",children:[D.jsxs("div",{className:"banner-text",children:[D.jsx("div",{className:"banner-title",children:o.title}),o.description]}),re.isDefinedNotEmptyString(o==null?void 0:o.buttonText)&&D.jsx(De,{color:"neutral",onClick:()=>r(o),children:o.buttonText})]})})]},`banner-${a+1}`)))})})});Me.propTypes={items:fe.PropTypes.array,handleClick:fe.PropTypes.func};module.exports=Me;
@@ -1,4 +1,4 @@
1
- import { jsx as N, jsxs as ue } from "react/jsx-runtime";
1
+ import { jsx as N, jsxs as le } from "react/jsx-runtime";
2
2
  import F, { forwardRef as Ce } from "react";
3
3
  import { c as Oe } from "./_commonjsHelpers-DaMA6jEr.js";
4
4
  import { p as Le, P as Se } from "./index-S5Cd7WrG.js";
@@ -6,10 +6,10 @@ import { a as ke } from "./index-Bq3leL2e.js";
6
6
  import { u as De } from "./useDetectMobile-BC6EGaBc.js";
7
7
  import { s as te } from "./emotion-styled.browser.esm-BNN1dTl3.js";
8
8
  import { M as ne } from "./consts-C1uHV4xc.js";
9
- import { k as he, l as Ae } from "./utils-DCs-SbIv.js";
10
- import We from "./Button.js";
11
- var Re = {}, re = {}, me = {}, le = {}, ge;
12
- function ze() {
9
+ import { k as re } from "./utils-DCs-SbIv.js";
10
+ import Ae from "./Button.js";
11
+ var Re = {}, ie = {}, me = {}, fe = {}, ge;
12
+ function We() {
13
13
  return ge || (ge = 1, function(t) {
14
14
  (function(n, r) {
15
15
  r(t, F, Le);
@@ -83,7 +83,7 @@ function ze() {
83
83
  var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { capture: !0 };
84
84
  return b ? l : l.capture;
85
85
  }
86
- function se(l) {
86
+ function ue(l) {
87
87
  if ("touches" in l) {
88
88
  var p = l.touches[0], S = p.pageX, u = p.pageY;
89
89
  return { x: S, y: u };
@@ -135,14 +135,14 @@ function ze() {
135
135
  }, {
136
136
  key: "_handleSwipeStart",
137
137
  value: function(u) {
138
- var g = se(u), T = g.x, w = g.y;
138
+ var g = ue(u), T = g.x, w = g.y;
139
139
  this.moveStart = { x: T, y: w }, this.props.onSwipeStart(u);
140
140
  }
141
141
  }, {
142
142
  key: "_handleSwipeMove",
143
143
  value: function(u) {
144
144
  if (this.moveStart) {
145
- var g = se(u), T = g.x, w = g.y, Y = T - this.moveStart.x, we = w - this.moveStart.y;
145
+ var g = ue(u), T = g.x, w = g.y, Y = T - this.moveStart.x, we = w - this.moveStart.y;
146
146
  this.moving = !0;
147
147
  var Ie = this.props.onSwipeMove({
148
148
  x: Y,
@@ -223,11 +223,11 @@ function ze() {
223
223
  tolerance: 0
224
224
  }, n.default = z;
225
225
  });
226
- }(le)), le;
226
+ }(fe)), fe;
227
227
  }
228
228
  (function(t) {
229
229
  (function(n, r) {
230
- r(t, ze());
230
+ r(t, We());
231
231
  })(Oe, function(n, r) {
232
232
  Object.defineProperty(n, "__esModule", {
233
233
  value: !0
@@ -246,16 +246,16 @@ Object.defineProperty(K, "__esModule", {
246
246
  value: !0
247
247
  });
248
248
  K.default = void 0;
249
- var D = Ne(ke);
250
- function Ne(t) {
249
+ var D = ze(ke);
250
+ function ze(t) {
251
251
  return t && t.__esModule ? t : { default: t };
252
252
  }
253
- function xe(t, n, r) {
253
+ function Ne(t, n, r) {
254
254
  return n in t ? Object.defineProperty(t, n, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = r, t;
255
255
  }
256
- var He = {
256
+ var xe = {
257
257
  ROOT: function(n) {
258
- return (0, D.default)(xe({
258
+ return (0, D.default)(Ne({
259
259
  "carousel-root": !0
260
260
  }, n || "", !!n));
261
261
  },
@@ -307,42 +307,42 @@ var He = {
307
307
  });
308
308
  }
309
309
  };
310
- K.default = He;
311
- var j = {}, ie = {};
312
- Object.defineProperty(ie, "__esModule", {
310
+ K.default = xe;
311
+ var j = {}, oe = {};
312
+ Object.defineProperty(oe, "__esModule", {
313
313
  value: !0
314
314
  });
315
- ie.outerWidth = void 0;
316
- var $e = function(n) {
315
+ oe.outerWidth = void 0;
316
+ var He = function(n) {
317
317
  var r = n.offsetWidth, i = getComputedStyle(n);
318
318
  return r += parseInt(i.marginLeft) + parseInt(i.marginRight), r;
319
319
  };
320
- ie.outerWidth = $e;
320
+ oe.outerWidth = He;
321
321
  var x = {};
322
322
  Object.defineProperty(x, "__esModule", {
323
323
  value: !0
324
324
  });
325
325
  x.default = void 0;
326
- var Ue = function(n, r, i) {
326
+ var $e = function(n, r, i) {
327
327
  var e = n === 0 ? n : n + r, o = i === "horizontal" ? [e, 0, 0] : [0, e, 0], a = "translate3d", s = "(" + o.join(",") + ")";
328
328
  return a + s;
329
329
  };
330
- x.default = Ue;
330
+ x.default = $e;
331
331
  var q = {};
332
332
  Object.defineProperty(q, "__esModule", {
333
333
  value: !0
334
334
  });
335
335
  q.default = void 0;
336
- var Fe = function() {
336
+ var Ue = function() {
337
337
  return window;
338
338
  };
339
- q.default = Fe;
339
+ q.default = Ue;
340
340
  Object.defineProperty(j, "__esModule", {
341
341
  value: !0
342
342
  });
343
343
  j.default = void 0;
344
- var M = qe(F), A = oe(K), Ke = ie, be = oe(x), je = oe(me), V = oe(q);
345
- function oe(t) {
344
+ var M = je(F), A = ae(K), Fe = oe, be = ae(x), Ke = ae(me), V = ae(q);
345
+ function ae(t) {
346
346
  return t && t.__esModule ? t : { default: t };
347
347
  }
348
348
  function Ee() {
@@ -352,7 +352,7 @@ function Ee() {
352
352
  return t;
353
353
  }, t;
354
354
  }
355
- function qe(t) {
355
+ function je(t) {
356
356
  if (t && t.__esModule)
357
357
  return t;
358
358
  if (t === null || $(t) !== "object" && typeof t != "function")
@@ -376,41 +376,41 @@ function $(t) {
376
376
  return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
377
377
  }, $(t);
378
378
  }
379
- function fe() {
380
- return fe = Object.assign || function(t) {
379
+ function ce() {
380
+ return ce = Object.assign || function(t) {
381
381
  for (var n = 1; n < arguments.length; n++) {
382
382
  var r = arguments[n];
383
383
  for (var i in r)
384
384
  Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
385
385
  }
386
386
  return t;
387
- }, fe.apply(this, arguments);
387
+ }, ce.apply(this, arguments);
388
388
  }
389
- function Be(t, n) {
389
+ function qe(t, n) {
390
390
  if (!(t instanceof n))
391
391
  throw new TypeError("Cannot call a class as a function");
392
392
  }
393
- function Xe(t, n) {
393
+ function Be(t, n) {
394
394
  for (var r = 0; r < n.length; r++) {
395
395
  var i = n[r];
396
396
  i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, i.key, i);
397
397
  }
398
398
  }
399
- function Ye(t, n, r) {
400
- return n && Xe(t.prototype, n), t;
399
+ function Xe(t, n, r) {
400
+ return n && Be(t.prototype, n), t;
401
401
  }
402
- function Ve(t, n) {
402
+ function Ye(t, n) {
403
403
  if (typeof n != "function" && n !== null)
404
404
  throw new TypeError("Super expression must either be null or a function");
405
- t.prototype = Object.create(n && n.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), n && ce(t, n);
405
+ t.prototype = Object.create(n && n.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), n && de(t, n);
406
406
  }
407
- function ce(t, n) {
408
- return ce = Object.setPrototypeOf || function(i, e) {
407
+ function de(t, n) {
408
+ return de = Object.setPrototypeOf || function(i, e) {
409
409
  return i.__proto__ = e, i;
410
- }, ce(t, n);
410
+ }, de(t, n);
411
411
  }
412
- function Ge(t) {
413
- var n = Je();
412
+ function Ve(t) {
413
+ var n = Ze();
414
414
  return function() {
415
415
  var i = J(t), e;
416
416
  if (n) {
@@ -418,10 +418,10 @@ function Ge(t) {
418
418
  e = Reflect.construct(i, arguments, o);
419
419
  } else
420
420
  e = i.apply(this, arguments);
421
- return Ze(this, e);
421
+ return Ge(this, e);
422
422
  };
423
423
  }
424
- function Ze(t, n) {
424
+ function Ge(t, n) {
425
425
  return n && ($(n) === "object" || typeof n == "function") ? n : O(t);
426
426
  }
427
427
  function O(t) {
@@ -429,7 +429,7 @@ function O(t) {
429
429
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
430
430
  return t;
431
431
  }
432
- function Je() {
432
+ function Ze() {
433
433
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
434
434
  if (typeof Proxy == "function") return !0;
435
435
  try {
@@ -447,14 +447,14 @@ function J(t) {
447
447
  function P(t, n, r) {
448
448
  return n in t ? Object.defineProperty(t, n, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = r, t;
449
449
  }
450
- var Qe = function(n) {
450
+ var Je = function(n) {
451
451
  return n.hasOwnProperty("key");
452
452
  }, ve = /* @__PURE__ */ function(t) {
453
- Ve(r, t);
454
- var n = Ge(r);
453
+ Ye(r, t);
454
+ var n = Ve(r);
455
455
  function r(i) {
456
456
  var e;
457
- return Be(this, r), e = n.call(this, i), P(O(e), "itemsWrapperRef", void 0), P(O(e), "itemsListRef", void 0), P(O(e), "thumbsRef", void 0), P(O(e), "setItemsWrapperRef", function(o) {
457
+ return qe(this, r), e = n.call(this, i), P(O(e), "itemsWrapperRef", void 0), P(O(e), "itemsListRef", void 0), P(O(e), "thumbsRef", void 0), P(O(e), "setItemsWrapperRef", function(o) {
458
458
  e.itemsWrapperRef = o;
459
459
  }), P(O(e), "setItemsListRef", function(o) {
460
460
  e.itemsListRef = o;
@@ -462,7 +462,7 @@ var Qe = function(n) {
462
462
  e.thumbsRef || (e.thumbsRef = []), e.thumbsRef[a] = o;
463
463
  }), P(O(e), "updateSizes", function() {
464
464
  if (!(!e.props.children || !e.itemsWrapperRef || !e.thumbsRef)) {
465
- var o = M.Children.count(e.props.children), a = e.itemsWrapperRef.clientWidth, s = e.props.thumbWidth ? e.props.thumbWidth : (0, Ke.outerWidth)(e.thumbsRef[0]), f = Math.floor(a / s), h = f < o, m = h ? o - f : 0;
465
+ var o = M.Children.count(e.props.children), a = e.itemsWrapperRef.clientWidth, s = e.props.thumbWidth ? e.props.thumbWidth : (0, Fe.outerWidth)(e.thumbsRef[0]), f = Math.floor(a / s), h = f < o, m = h ? o - f : 0;
466
466
  e.setState(function(v, _) {
467
467
  return {
468
468
  itemSize: s,
@@ -474,7 +474,7 @@ var Qe = function(n) {
474
474
  });
475
475
  }
476
476
  }), P(O(e), "handleClickItem", function(o, a, s) {
477
- if (!Qe(s) || s.key === "Enter") {
477
+ if (!Je(s) || s.key === "Enter") {
478
478
  var f = e.props.onSelectItem;
479
479
  typeof f == "function" && f(o, a);
480
480
  }
@@ -513,7 +513,7 @@ var Qe = function(n) {
513
513
  lastPosition: 0
514
514
  }, e;
515
515
  }
516
- return Ye(r, [{
516
+ return Xe(r, [{
517
517
  key: "componentDidMount",
518
518
  value: function() {
519
519
  this.setupThumbs();
@@ -565,7 +565,7 @@ var Qe = function(n) {
565
565
  width: e.props.thumbWidth
566
566
  }
567
567
  };
568
- return /* @__PURE__ */ M.default.createElement("li", fe({}, f, {
568
+ return /* @__PURE__ */ M.default.createElement("li", ce({}, f, {
569
569
  role: "button",
570
570
  tabIndex: 0
571
571
  }), o);
@@ -603,7 +603,7 @@ var Qe = function(n) {
603
603
  return e.slideRight();
604
604
  },
605
605
  "aria-label": this.props.labels.leftArrow
606
- }), o ? /* @__PURE__ */ M.default.createElement(je.default, {
606
+ }), o ? /* @__PURE__ */ M.default.createElement(Ke.default, {
607
607
  tagName: "ul",
608
608
  className: A.default.SLIDER(!1, this.state.swiping),
609
609
  onSwipeLeft: this.slideLeft,
@@ -644,60 +644,60 @@ P(ve, "defaultProps", {
644
644
  thumbWidth: 80,
645
645
  transitionTime: 350
646
646
  });
647
- var ae = {};
648
- Object.defineProperty(ae, "__esModule", {
647
+ var se = {};
648
+ Object.defineProperty(se, "__esModule", {
649
649
  value: !0
650
650
  });
651
- ae.default = void 0;
652
- var et = function() {
651
+ se.default = void 0;
652
+ var Qe = function() {
653
653
  return document;
654
654
  };
655
- ae.default = et;
655
+ se.default = Qe;
656
656
  var R = {};
657
657
  Object.defineProperty(R, "__esModule", {
658
658
  value: !0
659
659
  });
660
660
  R.setPosition = R.getPosition = R.isKeyboardEvent = R.defaultStatusFormatter = R.noop = void 0;
661
- var tt = F, nt = rt(x);
662
- function rt(t) {
661
+ var et = F, tt = nt(x);
662
+ function nt(t) {
663
663
  return t && t.__esModule ? t : { default: t };
664
664
  }
665
- var it = function() {
665
+ var rt = function() {
666
666
  };
667
- R.noop = it;
668
- var ot = function(n, r) {
667
+ R.noop = rt;
668
+ var it = function(n, r) {
669
669
  return "".concat(n, " of ").concat(r);
670
670
  };
671
- R.defaultStatusFormatter = ot;
672
- var at = function(n) {
671
+ R.defaultStatusFormatter = it;
672
+ var ot = function(n) {
673
673
  return n ? n.hasOwnProperty("key") : !1;
674
674
  };
675
- R.isKeyboardEvent = at;
676
- var st = function(n, r) {
675
+ R.isKeyboardEvent = ot;
676
+ var at = function(n, r) {
677
677
  if (r.infiniteLoop && ++n, n === 0)
678
678
  return 0;
679
- var i = tt.Children.count(r.children);
679
+ var i = et.Children.count(r.children);
680
680
  if (r.centerMode && r.axis === "horizontal") {
681
681
  var e = -n * r.centerSlidePercentage, o = i - 1;
682
682
  return n && (n !== o || r.infiniteLoop) ? e += (100 - r.centerSlidePercentage) / 2 : n === o && (e += 100 - r.centerSlidePercentage), e;
683
683
  }
684
684
  return -n * 100;
685
685
  };
686
- R.getPosition = st;
687
- var ut = function(n, r) {
686
+ R.getPosition = at;
687
+ var st = function(n, r) {
688
688
  var i = {};
689
689
  return ["WebkitTransform", "MozTransform", "MsTransform", "OTransform", "transform", "msTransform"].forEach(function(e) {
690
- i[e] = (0, nt.default)(n, "%", r);
690
+ i[e] = (0, tt.default)(n, "%", r);
691
691
  }), i;
692
692
  };
693
- R.setPosition = ut;
693
+ R.setPosition = st;
694
694
  var C = {};
695
695
  Object.defineProperty(C, "__esModule", {
696
696
  value: !0
697
697
  });
698
698
  C.fadeAnimationHandler = C.slideStopSwipingHandler = C.slideSwipeAnimationHandler = C.slideAnimationHandler = void 0;
699
- var Te = F, lt = ft(x), L = R;
700
- function ft(t) {
699
+ var Te = F, ut = lt(x), L = R;
700
+ function lt(t) {
701
701
  return t && t.__esModule ? t : { default: t };
702
702
  }
703
703
  function _e(t, n) {
@@ -714,21 +714,21 @@ function W(t) {
714
714
  for (var n = 1; n < arguments.length; n++) {
715
715
  var r = arguments[n] != null ? arguments[n] : {};
716
716
  n % 2 ? _e(Object(r), !0).forEach(function(i) {
717
- ct(t, i, r[i]);
717
+ ft(t, i, r[i]);
718
718
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : _e(Object(r)).forEach(function(i) {
719
719
  Object.defineProperty(t, i, Object.getOwnPropertyDescriptor(r, i));
720
720
  });
721
721
  }
722
722
  return t;
723
723
  }
724
- function ct(t, n, r) {
724
+ function ft(t, n, r) {
725
725
  return n in t ? Object.defineProperty(t, n, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = r, t;
726
726
  }
727
- var dt = function(n, r) {
727
+ var ct = function(n, r) {
728
728
  var i = {}, e = r.selectedItem, o = e, a = Te.Children.count(n.children) - 1, s = n.infiniteLoop && (e < 0 || e > a);
729
729
  if (s)
730
730
  return o < 0 ? n.centerMode && n.centerSlidePercentage && n.axis === "horizontal" ? i.itemListStyle = (0, L.setPosition)(-(a + 2) * n.centerSlidePercentage - (100 - n.centerSlidePercentage) / 2, n.axis) : i.itemListStyle = (0, L.setPosition)(-(a + 2) * 100, n.axis) : o > a && (i.itemListStyle = (0, L.setPosition)(0, n.axis)), i;
731
- var f = (0, L.getPosition)(e, n), h = (0, lt.default)(f, "%", n.axis), m = n.transitionTime + "ms";
731
+ var f = (0, L.getPosition)(e, n), h = (0, ut.default)(f, "%", n.axis), m = n.transitionTime + "ms";
732
732
  return i.itemListStyle = {
733
733
  WebkitTransform: h,
734
734
  msTransform: h,
@@ -742,8 +742,8 @@ var dt = function(n, r) {
742
742
  msTransitionDuration: m
743
743
  })), i;
744
744
  };
745
- C.slideAnimationHandler = dt;
746
- var pt = function(n, r, i, e) {
745
+ C.slideAnimationHandler = ct;
746
+ var dt = function(n, r, i, e) {
747
747
  var o = {}, a = r.axis === "horizontal", s = Te.Children.count(r.children), f = 0, h = (0, L.getPosition)(i.selectedItem, r), m = r.infiniteLoop ? (0, L.getPosition)(s - 1, r) - 100 : (0, L.getPosition)(s - 1, r), v = a ? n.x : n.y, _ = v;
748
748
  h === f && v > 0 && (_ = 0), h === m && v < 0 && (_ = 0);
749
749
  var b = h + 100 / (i.itemSize / _), E = Math.abs(v) > r.swipeScrollTolerance;
@@ -753,15 +753,15 @@ var pt = function(n, r, i, e) {
753
753
  cancelClick: !0
754
754
  }), o;
755
755
  };
756
- C.slideSwipeAnimationHandler = pt;
757
- var ht = function(n, r) {
756
+ C.slideSwipeAnimationHandler = dt;
757
+ var pt = function(n, r) {
758
758
  var i = (0, L.getPosition)(r.selectedItem, n), e = (0, L.setPosition)(i, n.axis);
759
759
  return {
760
760
  itemListStyle: e
761
761
  };
762
762
  };
763
- C.slideStopSwipingHandler = ht;
764
- var mt = function(n, r) {
763
+ C.slideStopSwipingHandler = pt;
764
+ var ht = function(n, r) {
765
765
  var i = n.transitionTime + "ms", e = "ease-in-out", o = {
766
766
  position: "absolute",
767
767
  display: "block",
@@ -793,12 +793,12 @@ var mt = function(n, r) {
793
793
  prevStyle: W({}, o)
794
794
  };
795
795
  };
796
- C.fadeAnimationHandler = mt;
797
- Object.defineProperty(re, "__esModule", {
796
+ C.fadeAnimationHandler = ht;
797
+ Object.defineProperty(ie, "__esModule", {
798
798
  value: !0
799
799
  });
800
- re.default = void 0;
801
- var y = wt(F), vt = B(me), k = B(K), yt = B(j), G = B(ae), Z = B(q), H = R, Q = C;
800
+ ie.default = void 0;
801
+ var y = yt(F), mt = B(me), k = B(K), vt = B(j), G = B(se), Z = B(q), H = R, Q = C;
802
802
  function B(t) {
803
803
  return t && t.__esModule ? t : { default: t };
804
804
  }
@@ -809,7 +809,7 @@ function Me() {
809
809
  return t;
810
810
  }, t;
811
811
  }
812
- function wt(t) {
812
+ function yt(t) {
813
813
  if (t && t.__esModule)
814
814
  return t;
815
815
  if (t === null || U(t) !== "object" && typeof t != "function")
@@ -833,15 +833,15 @@ function U(t) {
833
833
  return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
834
834
  }, U(t);
835
835
  }
836
- function de() {
837
- return de = Object.assign || function(t) {
836
+ function pe() {
837
+ return pe = Object.assign || function(t) {
838
838
  for (var n = 1; n < arguments.length; n++) {
839
839
  var r = arguments[n];
840
840
  for (var i in r)
841
841
  Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
842
842
  }
843
843
  return t;
844
- }, de.apply(this, arguments);
844
+ }, pe.apply(this, arguments);
845
845
  }
846
846
  function Pe(t, n) {
847
847
  var r = Object.keys(t);
@@ -864,31 +864,31 @@ function I(t) {
864
864
  }
865
865
  return t;
866
866
  }
867
- function St(t, n) {
867
+ function wt(t, n) {
868
868
  if (!(t instanceof n))
869
869
  throw new TypeError("Cannot call a class as a function");
870
870
  }
871
- function gt(t, n) {
871
+ function St(t, n) {
872
872
  for (var r = 0; r < n.length; r++) {
873
873
  var i = n[r];
874
874
  i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, i.key, i);
875
875
  }
876
876
  }
877
- function bt(t, n, r) {
878
- return n && gt(t.prototype, n), t;
877
+ function gt(t, n, r) {
878
+ return n && St(t.prototype, n), t;
879
879
  }
880
- function _t(t, n) {
880
+ function bt(t, n) {
881
881
  if (typeof n != "function" && n !== null)
882
882
  throw new TypeError("Super expression must either be null or a function");
883
- t.prototype = Object.create(n && n.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), n && pe(t, n);
883
+ t.prototype = Object.create(n && n.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), n && he(t, n);
884
884
  }
885
- function pe(t, n) {
886
- return pe = Object.setPrototypeOf || function(i, e) {
885
+ function he(t, n) {
886
+ return he = Object.setPrototypeOf || function(i, e) {
887
887
  return i.__proto__ = e, i;
888
- }, pe(t, n);
888
+ }, he(t, n);
889
889
  }
890
- function Pt(t) {
891
- var n = Rt();
890
+ function _t(t) {
891
+ var n = Ot();
892
892
  return function() {
893
893
  var i = ee(t), e;
894
894
  if (n) {
@@ -896,10 +896,10 @@ function Pt(t) {
896
896
  e = Reflect.construct(i, arguments, o);
897
897
  } else
898
898
  e = i.apply(this, arguments);
899
- return Ot(this, e);
899
+ return Pt(this, e);
900
900
  };
901
901
  }
902
- function Ot(t, n) {
902
+ function Pt(t, n) {
903
903
  return n && (U(n) === "object" || typeof n == "function") ? n : d(t);
904
904
  }
905
905
  function d(t) {
@@ -907,7 +907,7 @@ function d(t) {
907
907
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
908
908
  return t;
909
909
  }
910
- function Rt() {
910
+ function Ot() {
911
911
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
912
912
  if (typeof Proxy == "function") return !0;
913
913
  try {
@@ -926,11 +926,11 @@ function c(t, n, r) {
926
926
  return n in t ? Object.defineProperty(t, n, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[n] = r, t;
927
927
  }
928
928
  var ye = /* @__PURE__ */ function(t) {
929
- _t(r, t);
930
- var n = Pt(r);
929
+ bt(r, t);
930
+ var n = _t(r);
931
931
  function r(i) {
932
932
  var e;
933
- St(this, r), e = n.call(this, i), c(d(e), "thumbsRef", void 0), c(d(e), "carouselWrapperRef", void 0), c(d(e), "listRef", void 0), c(d(e), "itemsRef", void 0), c(d(e), "timer", void 0), c(d(e), "animationHandler", void 0), c(d(e), "setThumbsRef", function(a) {
933
+ wt(this, r), e = n.call(this, i), c(d(e), "thumbsRef", void 0), c(d(e), "carouselWrapperRef", void 0), c(d(e), "listRef", void 0), c(d(e), "itemsRef", void 0), c(d(e), "timer", void 0), c(d(e), "animationHandler", void 0), c(d(e), "setThumbsRef", function(a) {
934
934
  e.thumbsRef = a;
935
935
  }), c(d(e), "setCarouselWrapperRef", function(a) {
936
936
  e.carouselWrapperRef = a;
@@ -1085,7 +1085,7 @@ var ye = /* @__PURE__ */ function(t) {
1085
1085
  };
1086
1086
  return e.animationHandler = typeof i.animationHandler == "function" && i.animationHandler || i.animationHandler === "fade" && Q.fadeAnimationHandler || Q.slideAnimationHandler, e.state = I(I({}, o), e.animationHandler(i, o)), e;
1087
1087
  }
1088
- return bt(r, [{
1088
+ return gt(r, [{
1089
1089
  key: "componentDidMount",
1090
1090
  value: function() {
1091
1091
  this.props.children && this.setupCarousel();
@@ -1196,7 +1196,7 @@ var ye = /* @__PURE__ */ function(t) {
1196
1196
  }, {
1197
1197
  key: "renderThumbs",
1198
1198
  value: function() {
1199
- return !this.props.showThumbs || !this.props.children || y.Children.count(this.props.children) === 0 ? null : /* @__PURE__ */ y.default.createElement(yt.default, {
1199
+ return !this.props.showThumbs || !this.props.children || y.Children.count(this.props.children) === 0 ? null : /* @__PURE__ */ y.default.createElement(vt.default, {
1200
1200
  ref: this.setThumbsRef,
1201
1201
  onSelectItem: this.handleClickThumb,
1202
1202
  selectedItem: this.state.selectedItem,
@@ -1242,7 +1242,7 @@ var ye = /* @__PURE__ */ function(t) {
1242
1242
  }, this.renderControls(), this.props.renderArrowPrev(this.onClickPrev, f, this.props.labels.leftArrow), /* @__PURE__ */ y.default.createElement("div", {
1243
1243
  className: k.default.WRAPPER(!0, this.props.axis),
1244
1244
  style: E
1245
- }, o ? /* @__PURE__ */ y.default.createElement(vt.default, de({
1245
+ }, o ? /* @__PURE__ */ y.default.createElement(mt.default, pe({
1246
1246
  tagName: "ul",
1247
1247
  innerRef: this.setListRef
1248
1248
  }, b, {
@@ -1257,7 +1257,7 @@ var ye = /* @__PURE__ */ function(t) {
1257
1257
  }
1258
1258
  }]), r;
1259
1259
  }(y.default.Component);
1260
- re.default = ye;
1260
+ ie.default = ye;
1261
1261
  c(ye, "displayName", "Carousel");
1262
1262
  c(ye, "defaultProps", {
1263
1263
  ariaLabel: void 0,
@@ -1339,7 +1339,7 @@ c(ye, "defaultProps", {
1339
1339
  swipeAnimationHandler: Q.slideSwipeAnimationHandler,
1340
1340
  stopSwipingHandler: Q.slideStopSwipingHandler
1341
1341
  });
1342
- var Et = {};
1342
+ var Rt = {};
1343
1343
  (function(t) {
1344
1344
  Object.defineProperty(t, "__esModule", {
1345
1345
  value: !0
@@ -1359,12 +1359,12 @@ var Et = {};
1359
1359
  return i.default;
1360
1360
  }
1361
1361
  });
1362
- var n = e(re), r = Et, i = e(j);
1362
+ var n = e(ie), r = Rt, i = e(j);
1363
1363
  function e(o) {
1364
1364
  return o && o.__esModule ? o : { default: o };
1365
1365
  }
1366
1366
  })(Re);
1367
- const Tt = te.div`
1367
+ const Et = te.div`
1368
1368
  position: relative;
1369
1369
 
1370
1370
  & .image-carousel {
@@ -1395,7 +1395,7 @@ te.div`
1395
1395
  position: absolute;
1396
1396
  top: 0;
1397
1397
  left: 0;
1398
- background: ${(t) => he(t == null ? void 0 : t.backgroundColor) ? t == null ? void 0 : t.backgroundColor : `linear-gradient(
1398
+ background: ${(t) => re(t == null ? void 0 : t.backgroundColor) ? t == null ? void 0 : t.backgroundColor : `linear-gradient(
1399
1399
  to top left,
1400
1400
  rgba(0, 0, 0, 0) 85%,
1401
1401
  rgba(0, 0, 0, 1) 100%
@@ -1435,11 +1435,11 @@ te.div`
1435
1435
  display: none;
1436
1436
  }
1437
1437
  `;
1438
- const Mt = te.div`
1438
+ const Tt = te.div`
1439
1439
  position: relative;
1440
1440
  border-radius: 0.75rem;
1441
1441
 
1442
- background: ${(t) => he(t == null ? void 0 : t.backgroundColor) ? t == null ? void 0 : t.backgroundColor : `linear-gradient(
1442
+ background: ${(t) => re(t == null ? void 0 : t.backgroundColor) ? t == null ? void 0 : t.backgroundColor : `linear-gradient(
1443
1443
  to top left,
1444
1444
  rgba(0, 0, 0, 0) 85%,
1445
1445
  rgba(0, 0, 0, 1) 100%
@@ -1459,7 +1459,7 @@ const Mt = te.div`
1459
1459
  border-radius: unset;
1460
1460
  }
1461
1461
  }
1462
- `, It = te.div`
1462
+ `, Mt = te.div`
1463
1463
  border-radius: 0.75rem;
1464
1464
  position: absolute;
1465
1465
  top: 0;
@@ -1468,7 +1468,7 @@ const Mt = te.div`
1468
1468
  width: 100%;
1469
1469
  padding: 3rem 0 3rem 3rem;
1470
1470
 
1471
- background: ${(t) => he(t == null ? void 0 : t.backgroundColor) ? t == null ? void 0 : t.backgroundColor : `linear-gradient(
1471
+ background: ${(t) => re(t == null ? void 0 : t.backgroundColor) ? t == null ? void 0 : t.backgroundColor : `linear-gradient(
1472
1472
  to top left,
1473
1473
  rgba(0, 0, 0, 0) 85%,
1474
1474
  rgba(0, 0, 0, 1) 100%
@@ -1508,12 +1508,12 @@ const Mt = te.div`
1508
1508
  display: none;
1509
1509
  }
1510
1510
  }
1511
- `, Ct = Ce(
1511
+ `, It = Ce(
1512
1512
  ({ carouselItems: t = [], onSelectItem: n = () => {
1513
1513
  }, onButtonAction: r = () => {
1514
1514
  } }, i) => {
1515
1515
  const e = De();
1516
- return /* @__PURE__ */ N(Tt, { ref: i, children: /* @__PURE__ */ N(
1516
+ return /* @__PURE__ */ N(Et, { ref: i, children: /* @__PURE__ */ N(
1517
1517
  Re.Carousel,
1518
1518
  {
1519
1519
  autoPlay: !0,
@@ -1525,22 +1525,21 @@ const Mt = te.div`
1525
1525
  onClickItem: (o) => {
1526
1526
  e || n == null || n(t == null ? void 0 : t.at(o), o);
1527
1527
  },
1528
- children: t && (t == null ? void 0 : t.map((o, a) => /* @__PURE__ */ ue(
1529
- Mt,
1528
+ children: t && (t == null ? void 0 : t.map((o, a) => /* @__PURE__ */ le(
1529
+ Tt,
1530
1530
  {
1531
1531
  backgroundColor: o == null ? void 0 : o.backgroundColor,
1532
1532
  children: [
1533
1533
  /* @__PURE__ */ N("img", { loading: "lazy", src: o.imageUrl }),
1534
- /* @__PURE__ */ N(It, { backgroundColor: o == null ? void 0 : o.backgroundColor, children: /* @__PURE__ */ ue("div", { className: "banner-content", children: [
1535
- /* @__PURE__ */ ue("div", { className: "banner-text", children: [
1534
+ /* @__PURE__ */ N(Mt, { backgroundColor: o == null ? void 0 : o.backgroundColor, children: /* @__PURE__ */ le("div", { className: "banner-content", children: [
1535
+ /* @__PURE__ */ le("div", { className: "banner-text", children: [
1536
1536
  /* @__PURE__ */ N("div", { className: "banner-title", children: o.title }),
1537
1537
  o.description
1538
1538
  ] }),
1539
- Ae(o == null ? void 0 : o.buttonText) && /* @__PURE__ */ N(
1540
- We,
1539
+ re(o == null ? void 0 : o.buttonText) && /* @__PURE__ */ N(
1540
+ Ae,
1541
1541
  {
1542
1542
  color: "neutral",
1543
- trailingIcon: "arrow-right",
1544
1543
  onClick: () => r(o),
1545
1544
  children: o.buttonText
1546
1545
  }
@@ -1554,10 +1553,10 @@ const Mt = te.div`
1554
1553
  ) });
1555
1554
  }
1556
1555
  );
1557
- Ct.propTypes = {
1556
+ It.propTypes = {
1558
1557
  items: Se.array,
1559
1558
  handleClick: Se.func
1560
1559
  };
1561
1560
  export {
1562
- Ct as default
1561
+ It as default
1563
1562
  };
@@ -207,4 +207,4 @@
207
207
  gap: 1rem;
208
208
  }
209
209
  }
210
- `,z=l.forwardRef(({title:t,subtitle:i,options:a=[],limitTags:p=7,limitTagsForMobile:w=2,limit:c=3,limitForMobile:b=3,items:n=[],onSelectTag:h=()=>{},onSelectCard:_=()=>{},isLoading:y},v)=>{var f,u;const x=e=>{h==null||h(e==null?void 0:e.uuid)},g=e=>{_==null||_(e==null?void 0:e.uuid)};return r.jsxs(q,{ref:v,limitTags:p,limitTagsForMobile:w,limitCards:c,limitCardsForMobile:b,children:[r.jsxs("div",{className:"wrapper__heading",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),i&&r.jsx("div",{className:"wrapper__subtitle",children:i})]}),r.jsx("div",{className:"wrapper__cards",children:n&&(n==null?void 0:n.length)>0?n==null?void 0:n.map((e,s)=>r.jsx(G,{image:e==null?void 0:e.image,imageComponent:e==null?void 0:e.imageComponent,title:e==null?void 0:e.title,onSelectCard:()=>g==null?void 0:g(e==null?void 0:e.uuid)},`general-with-tags-card__${s+1}`)):(f=Array.from("123"))==null?void 0:f.map((e,s)=>r.jsx(R,{},`general-with-tags-card-skeleton__${s+1}`))}),(a==null?void 0:a.length)>0&&r.jsx("div",{className:"wrapper__tags",children:a==null?void 0:a.map((e,s)=>r.jsx(W,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.text,onSelectCard:()=>x==null?void 0:x(e)},`general-with-tags-card-tag__${s+1}`))}),y===!0&&!((a==null?void 0:a.length)>0)&&r.jsx("div",{className:"wrapper__tags",children:(u=Array.from("123"))==null?void 0:u.map((e,s)=>r.jsx(E,{},`general-with-tags-card-tag-skeleton__${s+1}`))})]})});module.exports=z;
210
+ `,z=l.forwardRef(({title:t,subtitle:i,options:a=[],limitTags:p=7,limitTagsForMobile:w=2,limit:c=3,limitForMobile:b=3,items:n=[],onSelectTag:h=()=>{},onSelectCard:_=()=>{},isLoading:y},v)=>{var f,u;const x=e=>{h==null||h(e==null?void 0:e.uuid)},g=e=>{_==null||_(e==null?void 0:e.uuid)};return r.jsxs(q,{ref:v,limitTags:p,limitTagsForMobile:w,limitCards:c,limitCardsForMobile:b,children:[r.jsxs("div",{className:"wrapper__heading",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),i&&r.jsx("div",{className:"wrapper__subtitle",children:i})]}),r.jsx("div",{className:"wrapper__cards",children:n&&(n==null?void 0:n.length)>0?n==null?void 0:n.map((e,s)=>r.jsx(G,{image:e==null?void 0:e.imageUrl,imageComponent:e==null?void 0:e.imageComponent,title:e==null?void 0:e.title,onSelectCard:()=>g==null?void 0:g(e==null?void 0:e.uuid)},`general-with-tags-card__${s+1}`)):(f=Array.from("123"))==null?void 0:f.map((e,s)=>r.jsx(R,{},`general-with-tags-card-skeleton__${s+1}`))}),(a==null?void 0:a.length)>0&&r.jsx("div",{className:"wrapper__tags",children:a==null?void 0:a.map((e,s)=>r.jsx(W,{icon:e==null?void 0:e.icon,text:e==null?void 0:e.text,onSelectCard:()=>x==null?void 0:x(e)},`general-with-tags-card-tag__${s+1}`))}),y===!0&&!((a==null?void 0:a.length)>0)&&r.jsx("div",{className:"wrapper__tags",children:(u=Array.from("123"))==null?void 0:u.map((e,s)=>r.jsx(E,{},`general-with-tags-card-tag-skeleton__${s+1}`))})]})});module.exports=z;
@@ -229,7 +229,7 @@ const j = s.div`
229
229
  gap: 1rem;
230
230
  }
231
231
  }
232
- `, Z = o(
232
+ `, X = o(
233
233
  ({
234
234
  title: r,
235
235
  subtitle: i,
@@ -267,7 +267,7 @@ const j = s.div`
267
267
  /* @__PURE__ */ a("div", { className: "wrapper__cards", children: n && (n == null ? void 0 : n.length) > 0 ? n == null ? void 0 : n.map((e, l) => /* @__PURE__ */ a(
268
268
  A,
269
269
  {
270
- image: e == null ? void 0 : e.image,
270
+ image: e == null ? void 0 : e.imageUrl,
271
271
  imageComponent: e == null ? void 0 : e.imageComponent,
272
272
  title: e == null ? void 0 : e.title,
273
273
  onSelectCard: () => _ == null ? void 0 : _(e == null ? void 0 : e.uuid)
@@ -298,5 +298,5 @@ const j = s.div`
298
298
  }
299
299
  );
300
300
  export {
301
- Z as default
301
+ X as default
302
302
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
- "version": "4.0.68",
3
+ "version": "4.0.70",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [