@livechat/design-system-react-components 1.0.0-alpha.26 → 1.0.0-alpha.28

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/dist/dsrc.es.js CHANGED
@@ -36,7 +36,7 @@ var __publicField = (obj, key, value) => {
36
36
  import * as React from "react";
37
37
  import { useReducer, useRef, useEffect, useCallback, useMemo } from "react";
38
38
  import cx from "clsx";
39
- import { Close, Info as Info$1, Warning, CheckCircleSolid, Block, Person, ChevronUp, ChevronDown, Check, DoubleArrowLeft, ChevronLeft, ChevronRight, DoubleArrowRight, Error as Error2, Search, LockBlack } from "@livechat/design-system-icons/react/material";
39
+ import { Close, Info as Info$1, Warning, CheckCircleSolid, Block, Person, ChevronUp, ChevronDown, Check, DoubleArrowLeft, ChevronLeft, ChevronRight, DoubleArrowRight, VisibilityOn, VisibilityOff, Error as Error2, Search, LockBlack } from "@livechat/design-system-icons/react/material";
40
40
  import debounce from "lodash.debounce";
41
41
  import { getContrast } from "polished";
42
42
  import ReactDayPicker from "react-day-picker";
@@ -195,7 +195,7 @@ const ShadowToken = {
195
195
  Modal: "--shadow-modal"
196
196
  };
197
197
  const caps = "lc-Typography-module__caps___c3eNJ";
198
- var styles$A = {
198
+ var styles$B = {
199
199
  "heading-xl": "lc-Typography-module__heading-xl___nhr-6",
200
200
  "heading-lg": "lc-Typography-module__heading-lg___XYF7l",
201
201
  "heading-md": "lc-Typography-module__heading-md___wHOIs",
@@ -231,7 +231,7 @@ const Heading = (_a) => {
231
231
  "children",
232
232
  "className"
233
233
  ]);
234
- return React.createElement(as || SIZE_TO_ELEMENT_MAP[size], __spreadValues({ className: cx(styles$A[`heading-${size}`], className) }, props), children);
234
+ return React.createElement(as || SIZE_TO_ELEMENT_MAP[size], __spreadValues({ className: cx(styles$B[`heading-${size}`], className) }, props), children);
235
235
  };
236
236
  const Text = (_c) => {
237
237
  var _d = _c, {
@@ -256,15 +256,15 @@ const Text = (_c) => {
256
256
  const baseClassPrefix = caps2 ? "caps" : `paragraph-${size}`;
257
257
  return React.createElement(as, __spreadValues({
258
258
  className: cx({
259
- [styles$A[`${baseClassPrefix}`]]: true,
260
- [styles$A[`${baseClassPrefix}--bold`]]: bold,
261
- [styles$A[`${baseClassPrefix}--strike`]]: strike,
262
- [styles$A[`${baseClassPrefix}--underline`]]: underline
259
+ [styles$B[`${baseClassPrefix}`]]: true,
260
+ [styles$B[`${baseClassPrefix}--bold`]]: bold,
261
+ [styles$B[`${baseClassPrefix}--strike`]]: strike,
262
+ [styles$B[`${baseClassPrefix}--underline`]]: underline
263
263
  }, className)
264
264
  }, props), children);
265
265
  };
266
266
  const icon$1 = "lc-Icon-module__icon___tw31R";
267
- var styles$z = {
267
+ var styles$A = {
268
268
  icon: icon$1,
269
269
  "icon--primary": "lc-Icon-module__icon--primary___JJnBV",
270
270
  "icon--subtle": "lc-Icon-module__icon--subtle___sZIzL",
@@ -305,7 +305,7 @@ const IconSizeMap = {
305
305
  height: 32
306
306
  }
307
307
  };
308
- const baseClass$J = "icon";
308
+ const baseClass$K = "icon";
309
309
  const Icon = (props) => {
310
310
  const _a = props, {
311
311
  source,
@@ -325,7 +325,7 @@ const Icon = (props) => {
325
325
  const GeneratedIcon = React.createElement(source, __spreadProps(__spreadValues({}, IconSizeMap[size]), {
326
326
  color: customColor
327
327
  }));
328
- const mergedClassNames = cx(className, styles$z[baseClass$J], kind && styles$z[`${baseClass$J}--${disabled ? "disabled--" : ""}${kind}`]);
328
+ const mergedClassNames = cx(className, styles$A[baseClass$K], kind && styles$A[`${baseClass$K}--${disabled ? "disabled--" : ""}${kind}`]);
329
329
  return /* @__PURE__ */ React.createElement("span", __spreadProps(__spreadValues({}, restProps), {
330
330
  className: mergedClassNames
331
331
  }), GeneratedIcon);
@@ -333,7 +333,7 @@ const Icon = (props) => {
333
333
  const alert = "lc-Alert-module__alert___HBTns";
334
334
  const alert__content = "lc-Alert-module__alert__content___9nZdf";
335
335
  const alert__icon = "lc-Alert-module__alert__icon___8TaAH";
336
- var styles$y = {
336
+ var styles$z = {
337
337
  alert,
338
338
  alert__content,
339
339
  "alert__content-text": "lc-Alert-module__alert__content-text___x2Un5",
@@ -365,7 +365,7 @@ const IconConfig = {
365
365
  kind: "error"
366
366
  }
367
367
  };
368
- const baseClass$I = "alert";
368
+ const baseClass$J = "alert";
369
369
  const Alert = ({
370
370
  children,
371
371
  className,
@@ -374,7 +374,7 @@ const Alert = ({
374
374
  }) => {
375
375
  const containerRef = React.useRef(null);
376
376
  const [isSmallContainer, setIsSmallContainer] = React.useState(false);
377
- const mergedClassNames = cx(styles$y[baseClass$I], styles$y[`${baseClass$I}--${kind}`], isSmallContainer && styles$y[`${baseClass$I}--small`], className);
377
+ const mergedClassNames = cx(styles$z[baseClass$J], styles$z[`${baseClass$J}--${kind}`], isSmallContainer && styles$z[`${baseClass$J}--small`], className);
378
378
  React.useEffect(() => {
379
379
  const handleResize = debounce(() => {
380
380
  if (containerRef.current && containerRef.current.offsetWidth <= 400) {
@@ -389,16 +389,16 @@ const Alert = ({
389
389
  ref: containerRef,
390
390
  className: mergedClassNames
391
391
  }, /* @__PURE__ */ React.createElement("div", {
392
- className: styles$y[`${baseClass$I}__content`]
392
+ className: styles$z[`${baseClass$J}__content`]
393
393
  }, /* @__PURE__ */ React.createElement(Icon, __spreadProps(__spreadValues({}, IconConfig[kind]), {
394
394
  size: "large",
395
- className: styles$y[`${baseClass$I}__content-icon`]
395
+ className: styles$z[`${baseClass$J}__content-icon`]
396
396
  })), /* @__PURE__ */ React.createElement(Text, {
397
397
  as: "div",
398
- className: cx(styles$y[`${baseClass$I}__content-text`], onClose && styles$y[`${baseClass$I}__content-text--margin`])
398
+ className: cx(styles$z[`${baseClass$J}__content-text`], onClose && styles$z[`${baseClass$J}__content-text--margin`])
399
399
  }, children)), onClose && /* @__PURE__ */ React.createElement("button", {
400
400
  type: "button",
401
- className: styles$y[`${baseClass$I}__close-icon`],
401
+ className: styles$z[`${baseClass$J}__close-icon`],
402
402
  onClick: onClose
403
403
  }, /* @__PURE__ */ React.createElement(Icon, {
404
404
  source: Close,
@@ -416,7 +416,7 @@ const avatar = "lc-Avatar-module__avatar___1zTCE";
416
416
  const avatar__status = "lc-Avatar-module__avatar__status___nX2Ls";
417
417
  const avatar__rim = "lc-Avatar-module__avatar__rim___RCQ8Q";
418
418
  const avatar__image = "lc-Avatar-module__avatar__image___YqfqE";
419
- var styles$x = {
419
+ var styles$y = {
420
420
  avatar,
421
421
  avatar__status,
422
422
  "avatar__status--available": "lc-Avatar-module__avatar__status--available___tcpFg",
@@ -462,7 +462,7 @@ var styles$x = {
462
462
  "avatar--xlarge": "lc-Avatar-module__avatar--xlarge___zwgeW",
463
463
  "avatar--xxlarge": "lc-Avatar-module__avatar--xxlarge___Ur0ul"
464
464
  };
465
- const baseClass$H = "avatar";
465
+ const baseClass$I = "avatar";
466
466
  const defaultBackgroundColor = "var(--surface-basic-disabled)";
467
467
  const defaultFontColor = "var(--content-subtle)";
468
468
  const Avatar = ({
@@ -486,15 +486,15 @@ const Avatar = ({
486
486
  const backgroundColor = color || defaultBackgroundColor;
487
487
  const fontColor = color ? getFontColor(color) : defaultFontColor;
488
488
  const mergedClassNames = cx({
489
- [styles$x[baseClass$H]]: true,
490
- [styles$x[`${baseClass$H}--${shape}`]]: true,
491
- [styles$x[`${baseClass$H}--${size}`]]: true,
492
- [styles$x[`${baseClass$H}--with-rim`]]: withRim,
489
+ [styles$y[baseClass$I]]: true,
490
+ [styles$y[`${baseClass$I}--${shape}`]]: true,
491
+ [styles$y[`${baseClass$I}--${size}`]]: true,
492
+ [styles$y[`${baseClass$I}--with-rim`]]: withRim,
493
493
  [`${className}`]: className
494
494
  });
495
- const mergedStatusClassNames = cx(styles$x[`${baseClass$H}__status`], styles$x[`${baseClass$H}__status--${shape}`], styles$x[`${baseClass$H}__status--${size}`], styles$x[`${baseClass$H}__status--${status}`]);
496
- const mergedIconClassNames = cx(styles$x[`${baseClass$H}__icon`], styles$x[`${baseClass$H}__icon--${size}`]);
497
- const mergedRimClassNames = cx(styles$x[`${baseClass$H}__rim`], styles$x[`${baseClass$H}__rim--${size}`]);
495
+ const mergedStatusClassNames = cx(styles$y[`${baseClass$I}__status`], styles$y[`${baseClass$I}__status--${shape}`], styles$y[`${baseClass$I}__status--${size}`], styles$y[`${baseClass$I}__status--${status}`]);
496
+ const mergedIconClassNames = cx(styles$y[`${baseClass$I}__icon`], styles$y[`${baseClass$I}__icon--${size}`]);
497
+ const mergedRimClassNames = cx(styles$y[`${baseClass$I}__rim`], styles$y[`${baseClass$I}__rim--${size}`]);
498
498
  const handleError = React.useCallback(() => setShouldDisplayFallbackAvatar(true), []);
499
499
  React.useEffect(() => {
500
500
  setShouldDisplayFallbackAvatar(isImproperImageSetup);
@@ -503,20 +503,20 @@ const Avatar = ({
503
503
  className: mergedClassNames,
504
504
  style: { backgroundColor }
505
505
  }, withRim && /* @__PURE__ */ React.createElement("div", {
506
- "data-testid": `${baseClass$H}__rim`,
506
+ "data-testid": `${baseClass$I}__rim`,
507
507
  className: mergedRimClassNames
508
508
  }), status && /* @__PURE__ */ React.createElement("div", {
509
- "data-testid": `${baseClass$H}__status`,
509
+ "data-testid": `${baseClass$I}__status`,
510
510
  className: mergedStatusClassNames
511
511
  }), shouldDisplayImage && /* @__PURE__ */ React.createElement("img", {
512
- className: styles$x[`${baseClass$H}__image`],
512
+ className: styles$y[`${baseClass$I}__image`],
513
513
  src,
514
514
  alt,
515
515
  onError: handleError
516
516
  }), shouldDisplayInitials && /* @__PURE__ */ React.createElement("span", {
517
517
  style: { color: fontColor }
518
518
  }, initials), shouldDisplayFallbackAvatar && /* @__PURE__ */ React.createElement(Icon, {
519
- "data-testid": `${baseClass$H}__icon`,
519
+ "data-testid": `${baseClass$I}__icon`,
520
520
  className: mergedIconClassNames,
521
521
  source: Person,
522
522
  kind: "primary"
@@ -524,7 +524,7 @@ const Avatar = ({
524
524
  };
525
525
  const badge = "lc-Badge-module__badge___GhLnu";
526
526
  const badge__dot = "lc-Badge-module__badge__dot___z6RO6";
527
- var styles$w = {
527
+ var styles$x = {
528
528
  badge,
529
529
  badge__dot,
530
530
  "badge--large": "lc-Badge-module__badge--large___B131q",
@@ -537,7 +537,7 @@ var styles$w = {
537
537
  function formatCount(count, max) {
538
538
  return count > max ? `${max}+` : `${count}`;
539
539
  }
540
- const baseClass$G = "badge";
540
+ const baseClass$H = "badge";
541
541
  const Badge = (_e) => {
542
542
  var _f = _e, {
543
543
  className,
@@ -554,12 +554,12 @@ const Badge = (_e) => {
554
554
  "size",
555
555
  "type"
556
556
  ]);
557
- const mergedClassNames = cx(className, styles$w[baseClass$G], styles$w[`${baseClass$G}--${kind}`], styles$w[`${baseClass$G}--${size}`]);
557
+ const mergedClassNames = cx(className, styles$x[baseClass$H], styles$x[`${baseClass$H}--${kind}`], styles$x[`${baseClass$H}--${size}`]);
558
558
  const content = {
559
559
  ["counter"]: formatCount(count, max),
560
560
  ["alert"]: "!",
561
561
  ["dot"]: /* @__PURE__ */ React.createElement("span", {
562
- className: styles$w[`${baseClass$G}__dot`]
562
+ className: styles$x[`${baseClass$H}__dot`]
563
563
  })
564
564
  }[type];
565
565
  return /* @__PURE__ */ React.createElement("span", __spreadValues({
@@ -570,7 +570,7 @@ const loader = "lc-Loader-module__loader___LRflD";
570
570
  const loader__spinner = "lc-Loader-module__loader__spinner___l3C1g";
571
571
  const rotate = "lc-Loader-module__rotate___Tlni-";
572
572
  const loader__label = "lc-Loader-module__loader__label___R74f6";
573
- var styles$v = {
573
+ var styles$w = {
574
574
  loader,
575
575
  loader__spinner,
576
576
  "loader__spinner--small": "lc-Loader-module__loader__spinner--small___dGFFt",
@@ -580,8 +580,8 @@ var styles$v = {
580
580
  rotate,
581
581
  loader__label
582
582
  };
583
- const baseClass$F = "loader";
584
- const spinnerClass = `${baseClass$F}__spinner`;
583
+ const baseClass$G = "loader";
584
+ const spinnerClass = `${baseClass$G}__spinner`;
585
585
  const Loader = ({
586
586
  primaryColor,
587
587
  secondaryColor,
@@ -590,11 +590,11 @@ const Loader = ({
590
590
  size = "medium"
591
591
  }) => {
592
592
  return /* @__PURE__ */ React.createElement("div", {
593
- className: cx(styles$v[baseClass$F], className)
593
+ className: cx(styles$w[baseClass$G], className)
594
594
  }, /* @__PURE__ */ React.createElement("div", {
595
- className: cx(styles$v[spinnerClass], styles$v[`${spinnerClass}--${size}`])
595
+ className: cx(styles$w[spinnerClass], styles$w[`${spinnerClass}--${size}`])
596
596
  }, /* @__PURE__ */ React.createElement("div", {
597
- className: styles$v["loader__spinner-circle"],
597
+ className: styles$w["loader__spinner-circle"],
598
598
  style: {
599
599
  borderColor: secondaryColor,
600
600
  borderTopColor: primaryColor
@@ -602,14 +602,14 @@ const Loader = ({
602
602
  })), label && /* @__PURE__ */ React.createElement(Text, {
603
603
  as: "div",
604
604
  size: "md",
605
- className: styles$v["loader__label"]
605
+ className: styles$w["loader__label"]
606
606
  }, label));
607
607
  };
608
608
  const btn$1 = "lc-Button-module__btn___aijZJ";
609
609
  const btn__loader = "lc-Button-module__btn__loader___c8zZz";
610
610
  const btn__content = "lc-Button-module__btn__content___wefl2";
611
611
  const btn__icon = "lc-Button-module__btn__icon___GVExB";
612
- var styles$u = {
612
+ var styles$v = {
613
613
  btn: btn$1,
614
614
  "btn--disabled": "lc-Button-module__btn--disabled___lXBav",
615
615
  "btn--icon-only": "lc-Button-module__btn--icon-only___bF5pW",
@@ -630,7 +630,7 @@ var styles$u = {
630
630
  btn__content,
631
631
  btn__icon
632
632
  };
633
- const baseClass$E = "btn";
633
+ const baseClass$F = "btn";
634
634
  const Button = (_g) => {
635
635
  var _h = _g, {
636
636
  loading = false,
@@ -663,11 +663,11 @@ const Button = (_g) => {
663
663
  ]);
664
664
  const isDisabled = loading || disabled;
665
665
  const Component = href ? "a" : "button";
666
- const mergedClassNames = cx(className, styles$u[baseClass$E], styles$u[`${baseClass$E}--${kind}`], styles$u[`${baseClass$E}--${size}`], {
667
- [styles$u[`${baseClass$E}--loading`]]: loading,
668
- [styles$u[`${baseClass$E}--full-width`]]: fullWidth,
669
- [styles$u[`${baseClass$E}--icon-only`]]: !children && icon2,
670
- [styles$u[`${baseClass$E}--disabled`]]: isDisabled
666
+ const mergedClassNames = cx(className, styles$v[baseClass$F], styles$v[`${baseClass$F}--${kind}`], styles$v[`${baseClass$F}--${size}`], {
667
+ [styles$v[`${baseClass$F}--loading`]]: loading,
668
+ [styles$v[`${baseClass$F}--full-width`]]: fullWidth,
669
+ [styles$v[`${baseClass$F}--icon-only`]]: !children && icon2,
670
+ [styles$v[`${baseClass$F}--disabled`]]: isDisabled
671
671
  });
672
672
  return /* @__PURE__ */ React.createElement(Component, __spreadValues({
673
673
  className: mergedClassNames,
@@ -678,16 +678,16 @@ const Button = (_g) => {
678
678
  }, props), loading && /* @__PURE__ */ React.createElement(Loader, {
679
679
  size: "small",
680
680
  label: loaderLabel,
681
- className: styles$u[`${baseClass$E}__loader`]
681
+ className: styles$v[`${baseClass$F}__loader`]
682
682
  }), icon2 && React.cloneElement(icon2, {
683
- className: cx(styles$u[`${baseClass$E}__icon`], styles$u[`${baseClass$E}__icon--${iconPosition}`]),
683
+ className: cx(styles$v[`${baseClass$F}__icon`], styles$v[`${baseClass$F}__icon--${iconPosition}`]),
684
684
  disabled
685
685
  }), /* @__PURE__ */ React.createElement("div", {
686
- className: styles$u[`${baseClass$E}__content`]
686
+ className: styles$v[`${baseClass$F}__content`]
687
687
  }, children));
688
688
  };
689
689
  const btn = "lc-SegmentedControl-module__btn___tfsvL";
690
- var styles$t = {
690
+ var styles$u = {
691
691
  "segmented-control": "lc-SegmentedControl-module__segmented-control___LHWSk",
692
692
  btn,
693
693
  "btn--active": "lc-SegmentedControl-module__btn--active___Za-th",
@@ -697,7 +697,7 @@ var styles$t = {
697
697
  };
698
698
  function noop() {
699
699
  }
700
- const baseClass$D = "segmented-control";
700
+ const baseClass$E = "segmented-control";
701
701
  const SegmentedControl = ({
702
702
  size = "medium",
703
703
  buttons,
@@ -707,7 +707,7 @@ const SegmentedControl = ({
707
707
  fullWidth = false,
708
708
  onButtonClick = noop
709
709
  }) => {
710
- const mergedClassName = cx(styles$t[baseClass$D], className);
710
+ const mergedClassName = cx(styles$u[baseClass$E], className);
711
711
  const [currentStateId, setCurrentStateId] = React.useState(() => initialId);
712
712
  const isControlled = typeof currentId === "string";
713
713
  React.useEffect(() => {
@@ -719,8 +719,8 @@ const SegmentedControl = ({
719
719
  }
720
720
  onButtonClick(id, event);
721
721
  };
722
- const buttonSet = buttons.map(({ id, label, loading, disabled }) => {
723
- const activityStyles = id === currentStateId ? styles$t["btn--active"] : "";
722
+ const buttonSet = buttons.map(({ id, label, loading, disabled, icon: icon2 }) => {
723
+ const activityStyles = id === currentStateId ? styles$u["btn--active"] : "";
724
724
  const loadingStatus = id === currentStateId ? false : loading;
725
725
  return /* @__PURE__ */ React.createElement(Button, {
726
726
  key: id,
@@ -728,7 +728,8 @@ const SegmentedControl = ({
728
728
  loading: loadingStatus,
729
729
  disabled,
730
730
  kind: "secondary",
731
- className: cx(styles$t["btn"], styles$t[`btn--${size}`], activityStyles),
731
+ icon: icon2,
732
+ className: cx(styles$u["btn"], styles$u[`btn--${size}`], activityStyles),
732
733
  onClick: (event) => {
733
734
  handleClick(id, event);
734
735
  }
@@ -749,13 +750,14 @@ const card__content = "lc-Card-module__card__content___KuDcc";
749
750
  const card__actions = "lc-Card-module__card__actions___q9sAo";
750
751
  const card__actions__line = "lc-Card-module__card__actions__line___TF1bt";
751
752
  const card__actions__buttons = "lc-Card-module__card__actions__buttons___PDMMR";
752
- var styles$s = {
753
+ var styles$t = {
753
754
  card,
754
755
  card__header,
755
756
  card__header__image,
756
757
  card__header__heading,
757
758
  card__header__heading__title,
758
759
  card__header__heading__description,
760
+ "card__header__no-image": "lc-Card-module__card__header__no-image___UcnNY",
759
761
  card__content,
760
762
  "card__expanded-content": "lc-Card-module__card__expanded-content___yB-QL",
761
763
  card__actions,
@@ -763,10 +765,11 @@ var styles$s = {
763
765
  card__actions__buttons,
764
766
  "card__actions__buttons-expander": "lc-Card-module__card__actions__buttons-expander___lz4h-"
765
767
  };
766
- const baseClass$C = "card";
767
- const headerClass = `${baseClass$C}__header`;
768
+ const baseClass$D = "card";
769
+ const headerClass = `${baseClass$D}__header`;
768
770
  const headingClass = `${headerClass}__heading`;
769
- const actionsClass = `${baseClass$C}__actions`;
771
+ const actionsClass = `${baseClass$D}__actions`;
772
+ const noImageClass = `${headerClass}__no-image`;
770
773
  const Card = (_i) => {
771
774
  var _j = _i, {
772
775
  alt,
@@ -793,42 +796,45 @@ const Card = (_i) => {
793
796
  const shouldShowActionButtons = (buttonsOptions == null ? void 0 : buttonsOptions.length) > 0;
794
797
  const shouldShowExpandAction = !!expandableContent;
795
798
  const shouldShowActions = shouldShowActionButtons || shouldShowExpandAction;
799
+ const isTitleAvailable = title;
800
+ const isImageAvailable = src;
801
+ const noImageAvailable = isImageAvailable ? "" : styles$t[noImageClass];
796
802
  return /* @__PURE__ */ React.createElement("div", __spreadValues({
797
- className: cx(styles$s[baseClass$C], className)
798
- }, divProps), /* @__PURE__ */ React.createElement("div", {
799
- className: styles$s[headerClass]
800
- }, src && /* @__PURE__ */ React.createElement("img", {
803
+ className: cx(styles$t[baseClass$D], className)
804
+ }, divProps), isTitleAvailable && /* @__PURE__ */ React.createElement("div", {
805
+ className: cx(styles$t[headerClass], noImageAvailable)
806
+ }, isImageAvailable && /* @__PURE__ */ React.createElement("img", {
801
807
  alt,
802
- className: styles$s[`${headerClass}__image`],
808
+ className: styles$t[`${headerClass}__image`],
803
809
  src
804
810
  }), /* @__PURE__ */ React.createElement("div", {
805
- className: styles$s[headingClass]
811
+ className: styles$t[headingClass]
806
812
  }, /* @__PURE__ */ React.createElement(Heading, {
807
813
  size: "sm",
808
- className: styles$s[`${headingClass}__title`]
814
+ className: styles$t[`${headingClass}__title`]
809
815
  }, title), /* @__PURE__ */ React.createElement(Text, {
810
816
  size: "sm",
811
- className: styles$s[`${headingClass}__description`]
817
+ className: styles$t[`${headingClass}__description`]
812
818
  }, description))), /* @__PURE__ */ React.createElement(Text, {
813
819
  as: "div",
814
820
  size: "md",
815
- className: styles$s[`${baseClass$C}__content`]
821
+ className: styles$t[`${baseClass$D}__content`]
816
822
  }, children), isExpanded && /* @__PURE__ */ React.createElement(Text, {
817
823
  as: "div",
818
824
  size: "md",
819
- className: styles$s[`${baseClass$C}__expanded-content`]
825
+ className: styles$t[`${baseClass$D}__expanded-content`]
820
826
  }, expandableContent), shouldShowActions && /* @__PURE__ */ React.createElement("div", {
821
- className: styles$s[actionsClass]
827
+ className: styles$t[actionsClass]
822
828
  }, /* @__PURE__ */ React.createElement("div", {
823
- className: styles$s[`${actionsClass}__line`]
829
+ className: styles$t[`${actionsClass}__line`]
824
830
  }), /* @__PURE__ */ React.createElement("div", {
825
- className: styles$s[`${actionsClass}__buttons`]
831
+ className: styles$t[`${actionsClass}__buttons`]
826
832
  }, shouldShowActionButtons && buttonsOptions.map(({ kind, onClick, children: buttonChildren }) => /* @__PURE__ */ React.createElement(Button, {
827
833
  size: "compact",
828
834
  kind,
829
835
  onClick
830
836
  }, buttonChildren)), shouldShowExpandAction && /* @__PURE__ */ React.createElement(Button, {
831
- className: styles$s[`${actionsClass}__buttons-expander`],
837
+ className: styles$t[`${actionsClass}__buttons-expander`],
832
838
  kind: "plain",
833
839
  iconPosition: "right",
834
840
  icon: /* @__PURE__ */ React.createElement(Icon, {
@@ -837,10 +843,10 @@ const Card = (_i) => {
837
843
  onClick: () => setIsExpanded(!isExpanded)
838
844
  }, expandButtonText))));
839
845
  };
840
- var styles$r = {
846
+ var styles$s = {
841
847
  "field-description": "lc-FieldDescription-module__field-description___IcRDH"
842
848
  };
843
- const baseClass$B = "field-description";
849
+ const baseClass$C = "field-description";
844
850
  const FieldDescription = (_k) => {
845
851
  var _l = _k, {
846
852
  children,
@@ -849,7 +855,7 @@ const FieldDescription = (_k) => {
849
855
  "children",
850
856
  "className"
851
857
  ]);
852
- const mergedClassNames = cx(styles$r[baseClass$B], className);
858
+ const mergedClassNames = cx(styles$s[baseClass$C], className);
853
859
  return /* @__PURE__ */ React.createElement(Text, __spreadProps(__spreadValues({
854
860
  as: "span",
855
861
  size: "sm"
@@ -864,7 +870,7 @@ const checkbox__checkmark = "lc-Checkbox-module__checkbox__checkmark___16pfY";
864
870
  const checkbox__input = "lc-Checkbox-module__checkbox__input___YLbVF";
865
871
  const checkbox__text = "lc-Checkbox-module__checkbox__text___P2SIq";
866
872
  const checkbox__helper = "lc-Checkbox-module__checkbox__helper___YSJ-n";
867
- var styles$q = {
873
+ var styles$r = {
868
874
  checkbox,
869
875
  checkbox__label,
870
876
  checkbox__square,
@@ -875,39 +881,45 @@ var styles$q = {
875
881
  "checkbox--disabled": "lc-Checkbox-module__checkbox--disabled___-lAqW",
876
882
  checkbox__helper
877
883
  };
878
- const baseClass$A = "checkbox";
884
+ const baseClass$B = "checkbox";
879
885
  const Checkbox = React.forwardRef((_m, ref) => {
880
886
  var _n = _m, { checked, disabled, children, description, className } = _n, restInputProps = __objRest(_n, ["checked", "disabled", "children", "description", "className"]);
881
887
  return /* @__PURE__ */ React.createElement("div", {
882
- className: cx(styles$q[baseClass$A], className, {
883
- [styles$q[`${baseClass$A}--selected`]]: checked,
884
- [styles$q[`${baseClass$A}--disabled`]]: disabled
888
+ className: cx(styles$r[baseClass$B], className, {
889
+ [styles$r[`${baseClass$B}--selected`]]: checked,
890
+ [styles$r[`${baseClass$B}--disabled`]]: disabled
885
891
  })
886
892
  }, /* @__PURE__ */ React.createElement("label", {
887
- className: styles$q[`${baseClass$A}__label`]
893
+ className: styles$r[`${baseClass$B}__label`]
888
894
  }, /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("input", __spreadProps(__spreadValues({}, restInputProps), {
889
895
  ref,
890
896
  checked,
891
897
  disabled,
892
- className: styles$q[`${baseClass$A}__input`],
898
+ className: styles$r[`${baseClass$B}__input`],
893
899
  type: "checkbox"
894
900
  })), /* @__PURE__ */ React.createElement("div", {
895
- className: styles$q[`${baseClass$A}__square`]
901
+ className: styles$r[`${baseClass$B}__square`]
896
902
  }, /* @__PURE__ */ React.createElement(Icon, {
897
903
  source: Check,
898
904
  kind: "inverted",
899
905
  size: "xsmall",
900
- className: styles$q[`${baseClass$A}__checkmark`]
906
+ className: styles$r[`${baseClass$B}__checkmark`]
901
907
  }))), children && /* @__PURE__ */ React.createElement(Text, {
902
908
  as: "div",
903
909
  size: "md",
904
- className: styles$q[`${baseClass$A}__text`]
910
+ className: styles$r[`${baseClass$B}__text`]
905
911
  }, children)), description && /* @__PURE__ */ React.createElement(FieldDescription, {
906
- className: styles$q[`${baseClass$A}__helper`]
912
+ className: styles$r[`${baseClass$B}__helper`]
907
913
  }, description));
908
914
  });
909
- var styles$p = {
915
+ var styles$q = {
910
916
  "date-picker": "lc-DatePicker-module__date-picker___9AqJ2",
917
+ "date-picker--interaction-disabled": "lc-DatePicker-module__date-picker--interaction-disabled___-zn8o",
918
+ "date-picker__day": "lc-DatePicker-module__date-picker__day___ZTSw9",
919
+ "date-picker__day--disabled": "lc-DatePicker-module__date-picker__day--disabled___4O6yW",
920
+ "date-picker__day--selected": "lc-DatePicker-module__date-picker__day--selected___1D1tC",
921
+ "date-picker__day--outside": "lc-DatePicker-module__date-picker__day--outside___ptNdC",
922
+ "date-picker__day-content": "lc-DatePicker-module__date-picker__day-content___rDIa0",
911
923
  "date-picker__wrapper": "lc-DatePicker-module__date-picker__wrapper___tNp4l",
912
924
  "date-picker__months": "lc-DatePicker-module__date-picker__months___QuPb0",
913
925
  "date-picker__month": "lc-DatePicker-module__date-picker__month___239nh",
@@ -920,14 +932,8 @@ var styles$p = {
920
932
  "date-picker__weekday": "lc-DatePicker-module__date-picker__weekday___3FCx8",
921
933
  "date-picker__body": "lc-DatePicker-module__date-picker__body___toP1u",
922
934
  "date-picker__week": "lc-DatePicker-module__date-picker__week___nZI1x",
923
- "date-picker__day": "lc-DatePicker-module__date-picker__day___ZTSw9",
924
- "date-picker__day-content": "lc-DatePicker-module__date-picker__day-content___rDIa0",
925
935
  "date-picker__day-wrapper": "lc-DatePicker-module__date-picker__day-wrapper___gGeeJ",
926
936
  "date-picker__day--today": "lc-DatePicker-module__date-picker__day--today___LL51c",
927
- "date-picker__day--selected": "lc-DatePicker-module__date-picker__day--selected___1D1tC",
928
- "date-picker__day--outside": "lc-DatePicker-module__date-picker__day--outside___ptNdC",
929
- "date-picker__day--disabled": "lc-DatePicker-module__date-picker__day--disabled___4O6yW",
930
- "date-picker--interaction-disabled": "lc-DatePicker-module__date-picker--interaction-disabled___-zn8o",
931
937
  "date-picker__footer": "lc-DatePicker-module__date-picker__footer___cXMQ5",
932
938
  "date-picker__input": "lc-DatePicker-module__date-picker__input___r6qih",
933
939
  "date-picker__input-overlay-wrapper": "lc-DatePicker-module__date-picker__input-overlay-wrapper___vmC0M",
@@ -942,7 +948,7 @@ var styles$p = {
942
948
  "date-picker--range__calendars-wrapper": "lc-DatePicker-module__date-picker--range__calendars-wrapper___8nWaW",
943
949
  "date-picker__navbar-buttons-wrapper": "lc-DatePicker-module__date-picker__navbar-buttons-wrapper___Hnksb"
944
950
  };
945
- const baseClass$z = "date-picker";
951
+ const baseClass$A = "date-picker";
946
952
  const DatePickerNavbar = (props) => {
947
953
  const {
948
954
  onPreviousClick,
@@ -991,7 +997,7 @@ const DatePickerNavbar = (props) => {
991
997
  return /* @__PURE__ */ React.createElement("div", {
992
998
  className
993
999
  }, /* @__PURE__ */ React.createElement("div", {
994
- className: styles$p[`${baseClass$z}__navbar-buttons-wrapper`]
1000
+ className: styles$q[`${baseClass$A}__navbar-buttons-wrapper`]
995
1001
  }, /* @__PURE__ */ React.createElement("button", {
996
1002
  "data-testid": "date-picker-prev-year-button",
997
1003
  className: cx({
@@ -1013,7 +1019,7 @@ const DatePickerNavbar = (props) => {
1013
1019
  source: ChevronLeft,
1014
1020
  kind: "subtle"
1015
1021
  }))), /* @__PURE__ */ React.createElement("div", {
1016
- className: styles$p[`${baseClass$z}__navbar-buttons-wrapper`]
1022
+ className: styles$q[`${baseClass$A}__navbar-buttons-wrapper`]
1017
1023
  }, /* @__PURE__ */ React.createElement("button", {
1018
1024
  "data-testid": "date-picker-next-month-button",
1019
1025
  className: cx({
@@ -1036,7 +1042,7 @@ const DatePickerNavbar = (props) => {
1036
1042
  kind: "subtle"
1037
1043
  }))));
1038
1044
  };
1039
- const baseClass$y = "date-picker";
1045
+ const baseClass$z = "date-picker";
1040
1046
  const isDateWithinRange = (date, range) => {
1041
1047
  const { from, to } = range;
1042
1048
  if (to && !isSameDay(date, to) && isAfter(date, to)) {
@@ -1059,22 +1065,22 @@ const calculateDatePickerMonth = (initialFromDate, initialToDate, toMonth) => {
1059
1065
  };
1060
1066
  const getRangeDatePickerModifiers = (from, to) => {
1061
1067
  const base = {
1062
- [styles$p[`${baseClass$y}__day--monday`]]: { daysOfWeek: [1] },
1063
- [styles$p[`${baseClass$y}__day--sunday`]]: { daysOfWeek: [0] },
1064
- [styles$p[`${baseClass$y}__day--start`]]: from,
1065
- [styles$p[`${baseClass$y}__day--end`]]: from
1068
+ [styles$q[`${baseClass$z}__day--monday`]]: { daysOfWeek: [1] },
1069
+ [styles$q[`${baseClass$z}__day--sunday`]]: { daysOfWeek: [0] },
1070
+ [styles$q[`${baseClass$z}__day--start`]]: from,
1071
+ [styles$q[`${baseClass$z}__day--end`]]: from
1066
1072
  };
1067
1073
  if (!to || !from)
1068
1074
  return base;
1069
1075
  const diff = differenceInCalendarDays(to, from);
1070
1076
  if (diff > 0) {
1071
1077
  return __spreadProps(__spreadValues({}, base), {
1072
- [styles$p[`${baseClass$y}__day--end`]]: to
1078
+ [styles$q[`${baseClass$z}__day--end`]]: to
1073
1079
  });
1074
1080
  }
1075
1081
  if (diff < 0) {
1076
1082
  return __spreadProps(__spreadValues({}, base), {
1077
- [styles$p[`${baseClass$y}__day--start`]]: to
1083
+ [styles$q[`${baseClass$z}__day--start`]]: to
1078
1084
  });
1079
1085
  }
1080
1086
  return base;
@@ -1113,41 +1119,41 @@ const getInitialStateFromProps = (props) => {
1113
1119
  };
1114
1120
  const getDatePickerClassNames = (range, classNames) => __spreadValues({
1115
1121
  container: cx({
1116
- [styles$p[`${baseClass$y}`]]: true,
1117
- [styles$p[`${baseClass$y}--range`]]: range
1122
+ [styles$q[`${baseClass$z}`]]: true,
1123
+ [styles$q[`${baseClass$z}--range`]]: range
1118
1124
  }),
1119
- wrapper: styles$p[`${baseClass$y}__wrapper`],
1120
- interactionDisabled: styles$p[`${baseClass$y}--interaction-disabled`],
1121
- months: styles$p[`${baseClass$y}__months`],
1122
- month: styles$p[`${baseClass$y}__month`],
1123
- navBar: styles$p[`${baseClass$y}__nav-bar`],
1124
- navButtonPrev: cx(styles$p[`${baseClass$y}__nav-button`], styles$p[`${baseClass$y}__nav-button--prev`]),
1125
- navButtonNext: cx(styles$p[`${baseClass$y}__nav-button`], styles$p[`${baseClass$y}__nav-button--next`]),
1126
- navButtonInteractionDisabled: styles$p[`${baseClass$y}__nav-button--interaction-disabled`],
1127
- caption: styles$p[`${baseClass$y}__caption`],
1128
- weekdays: styles$p[`${baseClass$y}__weekdays`],
1129
- weekdaysRow: styles$p[`${baseClass$y}__weekdays-row`],
1130
- weekday: styles$p[`${baseClass$y}__weekday`],
1131
- body: styles$p[`${baseClass$y}__body`],
1132
- week: styles$p[`${baseClass$y}__week`],
1133
- weekNumber: styles$p[`${baseClass$y}__week-number`],
1134
- day: styles$p[`${baseClass$y}__day`],
1135
- footer: styles$p[`${baseClass$y}__footer`],
1136
- todayButton: styles$p[`${baseClass$y}__today-button`],
1137
- today: styles$p[`${baseClass$y}__day--today`],
1138
- selected: styles$p[`${baseClass$y}__day--selected`],
1139
- disabled: styles$p[`${baseClass$y}__day--disabled`],
1140
- outside: styles$p[`${baseClass$y}__day--outside`],
1141
- start: styles$p[`${baseClass$y}__day--start`],
1142
- end: styles$p[`${baseClass$y}__day--end`]
1125
+ wrapper: styles$q[`${baseClass$z}__wrapper`],
1126
+ interactionDisabled: styles$q[`${baseClass$z}--interaction-disabled`],
1127
+ months: styles$q[`${baseClass$z}__months`],
1128
+ month: styles$q[`${baseClass$z}__month`],
1129
+ navBar: styles$q[`${baseClass$z}__nav-bar`],
1130
+ navButtonPrev: cx(styles$q[`${baseClass$z}__nav-button`], styles$q[`${baseClass$z}__nav-button--prev`]),
1131
+ navButtonNext: cx(styles$q[`${baseClass$z}__nav-button`], styles$q[`${baseClass$z}__nav-button--next`]),
1132
+ navButtonInteractionDisabled: styles$q[`${baseClass$z}__nav-button--interaction-disabled`],
1133
+ caption: styles$q[`${baseClass$z}__caption`],
1134
+ weekdays: styles$q[`${baseClass$z}__weekdays`],
1135
+ weekdaysRow: styles$q[`${baseClass$z}__weekdays-row`],
1136
+ weekday: styles$q[`${baseClass$z}__weekday`],
1137
+ body: styles$q[`${baseClass$z}__body`],
1138
+ week: styles$q[`${baseClass$z}__week`],
1139
+ weekNumber: styles$q[`${baseClass$z}__week-number`],
1140
+ day: styles$q[`${baseClass$z}__day`],
1141
+ footer: styles$q[`${baseClass$z}__footer`],
1142
+ todayButton: styles$q[`${baseClass$z}__today-button`],
1143
+ today: styles$q[`${baseClass$z}__day--today`],
1144
+ selected: styles$q[`${baseClass$z}__day--selected`],
1145
+ disabled: styles$q[`${baseClass$z}__day--disabled`],
1146
+ outside: styles$q[`${baseClass$z}__day--outside`],
1147
+ start: styles$q[`${baseClass$z}__day--start`],
1148
+ end: styles$q[`${baseClass$z}__day--end`]
1143
1149
  }, classNames);
1144
- const baseClass$x = "date-picker";
1150
+ const baseClass$y = "date-picker";
1145
1151
  const defaultDayRenderer = (day) => {
1146
1152
  const date = day.getDate();
1147
1153
  return /* @__PURE__ */ React.createElement("div", {
1148
- className: styles$p[`${baseClass$x}__day-wrapper`]
1154
+ className: styles$q[`${baseClass$y}__day-wrapper`]
1149
1155
  }, /* @__PURE__ */ React.createElement("div", {
1150
- className: styles$p[`${baseClass$x}__day-content`]
1156
+ className: styles$q[`${baseClass$y}__day-content`]
1151
1157
  }, date));
1152
1158
  };
1153
1159
  const DatePickerComponent = (props) => {
@@ -1468,10 +1474,10 @@ RangeDatePicker.defaultProps = {
1468
1474
  }
1469
1475
  ]
1470
1476
  };
1471
- var styles$o = {
1477
+ var styles$p = {
1472
1478
  "field-error": "lc-FieldError-module__field-error___IDkPT"
1473
1479
  };
1474
- const baseClass$w = "field-error";
1480
+ const baseClass$x = "field-error";
1475
1481
  const FieldError = (_o) => {
1476
1482
  var _p = _o, {
1477
1483
  children,
@@ -1480,7 +1486,7 @@ const FieldError = (_o) => {
1480
1486
  "children",
1481
1487
  "className"
1482
1488
  ]);
1483
- const mergedClassNames = cx(styles$o[baseClass$w], className);
1489
+ const mergedClassNames = cx(styles$p[baseClass$x], className);
1484
1490
  return /* @__PURE__ */ React.createElement(Text, __spreadProps(__spreadValues({
1485
1491
  as: "span",
1486
1492
  size: "sm"
@@ -1488,12 +1494,12 @@ const FieldError = (_o) => {
1488
1494
  className: mergedClassNames
1489
1495
  }), children);
1490
1496
  };
1491
- var styles$n = {
1497
+ var styles$o = {
1492
1498
  "field-group": "lc-FieldGroup-module__field-group___gy8lp",
1493
1499
  "field-group--inline": "lc-FieldGroup-module__field-group--inline___or4qf",
1494
1500
  "field-group--stretched": "lc-FieldGroup-module__field-group--stretched___6rkuO"
1495
1501
  };
1496
- const baseClass$v = "field-group";
1502
+ const baseClass$w = "field-group";
1497
1503
  const FieldGroup = (_q) => {
1498
1504
  var _r = _q, {
1499
1505
  className = "",
@@ -1510,9 +1516,9 @@ const FieldGroup = (_q) => {
1510
1516
  "inline",
1511
1517
  "stretch"
1512
1518
  ]);
1513
- const mergedClassNames = cx(styles$n[baseClass$v], className, {
1514
- [styles$n[`${baseClass$v}--inline`]]: inline,
1515
- [styles$n[`${baseClass$v}--stretched`]]: stretch
1519
+ const mergedClassNames = cx(styles$o[baseClass$w], className, {
1520
+ [styles$o[`${baseClass$w}--inline`]]: inline,
1521
+ [styles$o[`${baseClass$w}--stretched`]]: stretch
1516
1522
  });
1517
1523
  return /* @__PURE__ */ React.createElement("div", __spreadProps(__spreadValues({}, props), {
1518
1524
  className: mergedClassNames
@@ -1523,14 +1529,14 @@ const form__header = "lc-Form-module__form__header___U4B7t";
1523
1529
  const form__footer = "lc-Form-module__form__footer___1-sUX";
1524
1530
  const form__label = "lc-Form-module__form__label___spg-J";
1525
1531
  const form__helper = "lc-Form-module__form__helper___bhfwS";
1526
- var styles$m = {
1532
+ var styles$n = {
1527
1533
  form,
1528
1534
  form__header,
1529
1535
  form__footer,
1530
1536
  form__label,
1531
1537
  form__helper
1532
1538
  };
1533
- const baseClass$u = "form";
1539
+ const baseClass$v = "form";
1534
1540
  const Form = (_s) => {
1535
1541
  var _t = _s, {
1536
1542
  className,
@@ -1546,21 +1552,21 @@ const Form = (_s) => {
1546
1552
  "formFooter"
1547
1553
  ]);
1548
1554
  return /* @__PURE__ */ React.createElement("form", __spreadValues({
1549
- className: cx(styles$m[baseClass$u], className)
1555
+ className: cx(styles$n[baseClass$v], className)
1550
1556
  }, restProps), (labelText || helperText) && /* @__PURE__ */ React.createElement("div", {
1551
- className: styles$m[`${baseClass$u}__header`]
1557
+ className: styles$n[`${baseClass$v}__header`]
1552
1558
  }, labelText && /* @__PURE__ */ React.createElement(Heading, {
1553
1559
  size: "sm",
1554
- className: styles$m[`${baseClass$u}__label`]
1560
+ className: styles$n[`${baseClass$v}__label`]
1555
1561
  }, labelText), helperText && /* @__PURE__ */ React.createElement(Text, {
1556
1562
  as: "p",
1557
1563
  size: "sm",
1558
- className: styles$m[`${baseClass$u}__helper`]
1564
+ className: styles$n[`${baseClass$v}__helper`]
1559
1565
  }, helperText)), children, formFooter && /* @__PURE__ */ React.createElement("div", {
1560
- className: styles$m[`${baseClass$u}__footer`]
1566
+ className: styles$n[`${baseClass$v}__footer`]
1561
1567
  }, formFooter));
1562
1568
  };
1563
- var styles$l = {
1569
+ var styles$m = {
1564
1570
  "form-field": "lc-FormField-module__form-field___JqnX6",
1565
1571
  "form-field--inline": "lc-FormField-module__form-field--inline___4DgIq",
1566
1572
  "form-field__wrapper--inline": "lc-FormField-module__form-field__wrapper--inline___Ubvrn",
@@ -1575,7 +1581,7 @@ var styles$l = {
1575
1581
  "form-field__row-break": "lc-FormField-module__form-field__row-break___DCBjC",
1576
1582
  "form-field__content": "lc-FormField-module__form-field__content___XaOx3"
1577
1583
  };
1578
- const baseClass$t = "form-field";
1584
+ const baseClass$u = "form-field";
1579
1585
  const FormField = ({
1580
1586
  inline,
1581
1587
  error,
@@ -1587,42 +1593,42 @@ const FormField = ({
1587
1593
  children,
1588
1594
  labelRightNode
1589
1595
  }) => {
1590
- const mergedClassNames = cx(styles$l[baseClass$t], {
1591
- [styles$l[`${baseClass$t}--inline`]]: inline
1596
+ const mergedClassNames = cx(styles$m[baseClass$u], {
1597
+ [styles$m[`${baseClass$u}--inline`]]: inline
1592
1598
  }, className);
1593
1599
  return /* @__PURE__ */ React.createElement("div", {
1594
1600
  className: mergedClassNames
1595
1601
  }, labelRightNode && inline && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", {
1596
- className: cx(styles$l[`${baseClass$t}__label-right-node`], styles$l[`${baseClass$t}__label-right-node--inline`])
1602
+ className: cx(styles$m[`${baseClass$u}__label-right-node`], styles$m[`${baseClass$u}__label-right-node--inline`])
1597
1603
  }, labelRightNode), /* @__PURE__ */ React.createElement("div", {
1598
- className: styles$l[`${baseClass$t}__row-break`]
1604
+ className: styles$m[`${baseClass$u}__row-break`]
1599
1605
  })), /* @__PURE__ */ React.createElement("div", {
1600
- className: cx(styles$l[`${baseClass$t}__wrapper`], inline && styles$l[`${baseClass$t}__wrapper--inline`])
1606
+ className: cx(styles$m[`${baseClass$u}__wrapper`], inline && styles$m[`${baseClass$u}__wrapper--inline`])
1601
1607
  }, (labelText || labelRightNode) && /* @__PURE__ */ React.createElement("div", {
1602
- className: cx(styles$l[`${baseClass$t}__label`], inline && styles$l[`${baseClass$t}__label--inline`], !labelText && styles$l[`${baseClass$t}__label--no-text`])
1608
+ className: cx(styles$m[`${baseClass$u}__label`], inline && styles$m[`${baseClass$u}__label--inline`], !labelText && styles$m[`${baseClass$u}__label--no-text`])
1603
1609
  }, labelText && /* @__PURE__ */ React.createElement("div", {
1604
- className: cx(styles$l[`${baseClass$t}__label-wrapper`])
1610
+ className: cx(styles$m[`${baseClass$u}__label-wrapper`])
1605
1611
  }, /* @__PURE__ */ React.createElement("label", {
1606
- className: styles$l[`${baseClass$t}__label-left-node`],
1612
+ className: styles$m[`${baseClass$u}__label-left-node`],
1607
1613
  htmlFor: labelFor
1608
1614
  }, /* @__PURE__ */ React.createElement(Text, {
1609
1615
  as: "span",
1610
1616
  size: "sm"
1611
1617
  }, labelText)), labelAdornment && /* @__PURE__ */ React.createElement("div", {
1612
- className: cx(styles$l[`${baseClass$t}__label-adornment`])
1618
+ className: cx(styles$m[`${baseClass$u}__label-adornment`])
1613
1619
  }, labelAdornment)), labelRightNode && !inline && /* @__PURE__ */ React.createElement("div", {
1614
- className: cx(styles$l[`${baseClass$t}__label-right-node`])
1620
+ className: cx(styles$m[`${baseClass$u}__label-right-node`])
1615
1621
  }, labelRightNode)), /* @__PURE__ */ React.createElement("div", {
1616
- className: cx(styles$l[`${baseClass$t}__content`])
1622
+ className: cx(styles$m[`${baseClass$u}__content`])
1617
1623
  }, children, error && /* @__PURE__ */ React.createElement(FieldError, null, error), description && /* @__PURE__ */ React.createElement(FieldDescription, null, description))));
1618
1624
  };
1619
- var styles$k = {
1625
+ var styles$l = {
1620
1626
  "form-group": "lc-FormGroup-module__form-group___e2JHa",
1621
1627
  "form-group__header": "lc-FormGroup-module__form-group__header___DgGmR",
1622
1628
  "form-group__label": "lc-FormGroup-module__form-group__label___NC-JW",
1623
1629
  "form-group__helper": "lc-FormGroup-module__form-group__helper___SRuxe"
1624
1630
  };
1625
- const baseClass$s = "form-group";
1631
+ const baseClass$t = "form-group";
1626
1632
  const FormGroup = (_u) => {
1627
1633
  var _v = _u, {
1628
1634
  className = "",
@@ -1635,49 +1641,98 @@ const FormGroup = (_u) => {
1635
1641
  "labelText",
1636
1642
  "helperText"
1637
1643
  ]);
1638
- const mergedClassNames = cx(styles$k[baseClass$s], className);
1644
+ const mergedClassNames = cx(styles$l[baseClass$t], className);
1639
1645
  return /* @__PURE__ */ React.createElement("div", __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, props), {
1640
1646
  role: "group"
1641
1647
  }), labelText && { "aria-label": labelText }), {
1642
1648
  className: mergedClassNames
1643
1649
  }), /* @__PURE__ */ React.createElement("div", {
1644
- className: styles$k[`${baseClass$s}__header`]
1650
+ className: styles$l[`${baseClass$t}__header`]
1645
1651
  }, /* @__PURE__ */ React.createElement(Heading, {
1646
1652
  as: "div",
1647
1653
  size: "sm",
1648
- className: styles$k[`${baseClass$s}__label`]
1654
+ className: styles$l[`${baseClass$t}__label`]
1649
1655
  }, labelText), helperText && /* @__PURE__ */ React.createElement(Text, {
1650
1656
  as: "div",
1651
1657
  size: "sm",
1652
- className: styles$k[`${baseClass$s}__helper`]
1658
+ className: styles$l[`${baseClass$t}__helper`]
1653
1659
  }, helperText)), children);
1654
1660
  };
1655
1661
  const input = "lc-Input-module__input___qeMAQ";
1656
- var styles$j = {
1662
+ var styles$k = {
1657
1663
  input,
1664
+ "input--focused": "lc-Input-module__input--focused___wQH5-",
1665
+ "input--disabled": "lc-Input-module__input--disabled___HidXX",
1658
1666
  "input--error": "lc-Input-module__input--error___DlDbC",
1659
- "input--xsmall": "lc-Input-module__input--xsmall___9u99K",
1660
- "input--small": "lc-Input-module__input--small___elNtF",
1667
+ "input--compact": "lc-Input-module__input--compact___iKSQZ",
1661
1668
  "input--medium": "lc-Input-module__input--medium___3BjqQ",
1662
- "input--large": "lc-Input-module__input--large___jX5RW"
1663
- };
1664
- const baseClass$r = "input";
1669
+ "input--large": "lc-Input-module__input--large___jX5RW",
1670
+ "input__icon--disabled": "lc-Input-module__input__icon--disabled___XO3dc",
1671
+ "input__icon--left": "lc-Input-module__input__icon--left___BcySs",
1672
+ "input__icon--right": "lc-Input-module__input__icon--right___VefSK",
1673
+ "input__visibility-button": "lc-Input-module__input__visibility-button___eWrVe"
1674
+ };
1675
+ const baseClass$s = "input";
1676
+ const renderIcon = (icon2, disabled) => React.cloneElement(icon2.source, {
1677
+ ["data-testid"]: `input-icon-${icon2.place}`,
1678
+ className: cx(styles$k[`${baseClass$s}__icon`], styles$k[`${baseClass$s}__icon--${icon2.place}`], {
1679
+ [styles$k[`${baseClass$s}__icon--disabled`]]: disabled
1680
+ })
1681
+ });
1665
1682
  const Input = React.forwardRef((_w, ref) => {
1666
- var _x = _w, { size = "medium", error = false, className } = _x, inputProps = __objRest(_x, ["size", "error", "className"]);
1667
- return /* @__PURE__ */ React.createElement("input", __spreadValues({
1668
- className: cx(className, styles$j[baseClass$r], styles$j[`${baseClass$r}--${size}`], {
1669
- [styles$j[`${baseClass$r}--error`]]: error
1683
+ var _x = _w, {
1684
+ inputSize = "medium",
1685
+ error = false,
1686
+ disabled,
1687
+ icon: icon2 = null,
1688
+ className
1689
+ } = _x, inputProps = __objRest(_x, [
1690
+ "inputSize",
1691
+ "error",
1692
+ "disabled",
1693
+ "icon",
1694
+ "className"
1695
+ ]);
1696
+ const [isFocused, setIsFocused] = React.useState(false);
1697
+ const [isPasswordVisible, setIsPasswordVisible] = React.useState(false);
1698
+ const { type } = inputProps;
1699
+ const mergedClassNames = cx(className, styles$k[baseClass$s], styles$k[`${baseClass$s}--${inputSize}`], {
1700
+ [styles$k[`${baseClass$s}--disabled`]]: disabled,
1701
+ [styles$k[`${baseClass$s}--focused`]]: isFocused,
1702
+ [styles$k[`${baseClass$s}--error`]]: error
1703
+ });
1704
+ const iconCustomColor = !disabled ? "var(--content-default)" : "var(--content-disabled)";
1705
+ const iconSource = isPasswordVisible ? VisibilityOn : VisibilityOff;
1706
+ const shouldRenderLeftIcon = icon2 && icon2.place === "left";
1707
+ const shouldRenderRightIcon = icon2 && type !== "password" && icon2.place === "right";
1708
+ return /* @__PURE__ */ React.createElement("div", {
1709
+ className: mergedClassNames,
1710
+ "aria-disabled": disabled,
1711
+ "tab-index": "0"
1712
+ }, shouldRenderLeftIcon && renderIcon(icon2, disabled), /* @__PURE__ */ React.createElement("input", __spreadProps(__spreadValues({}, inputProps), {
1713
+ "data-testid": "input",
1714
+ ref,
1715
+ onFocus: () => setIsFocused(true),
1716
+ onBlur: () => setIsFocused(false),
1717
+ disabled,
1718
+ type: type && !isPasswordVisible ? type : "text"
1719
+ })), shouldRenderRightIcon && renderIcon(icon2, disabled), type === "password" && /* @__PURE__ */ React.createElement(Button, {
1720
+ disabled,
1721
+ kind: "plain",
1722
+ icon: /* @__PURE__ */ React.createElement(Icon, {
1723
+ customColor: iconCustomColor,
1724
+ source: iconSource
1670
1725
  }),
1671
- type: "text",
1672
- ref
1673
- }, inputProps));
1726
+ onClick: () => setIsPasswordVisible((v) => !v),
1727
+ className: styles$k[`${baseClass$s}__visibility-button`]
1728
+ }));
1674
1729
  });
1675
1730
  const link = "lc-Link-module__link___kqx52";
1676
- var styles$i = {
1731
+ var styles$j = {
1677
1732
  link,
1678
1733
  "link--bold": "lc-Link-module__link--bold___1rGdO"
1679
1734
  };
1680
- const baseClass$q = "link";
1735
+ const baseClass$r = "link";
1681
1736
  const Link = (_y) => {
1682
1737
  var _z = _y, {
1683
1738
  bold = false,
@@ -1687,14 +1742,14 @@ const Link = (_y) => {
1687
1742
  "className"
1688
1743
  ]);
1689
1744
  return /* @__PURE__ */ React.createElement("a", __spreadValues({
1690
- className: cx(styles$i[baseClass$q], bold && styles$i[`${baseClass$q}--bold`], className)
1745
+ className: cx(styles$j[baseClass$r], bold && styles$j[`${baseClass$r}--bold`], className)
1691
1746
  }, rest));
1692
1747
  };
1693
1748
  const modal__header = "lc-Modal-module__modal__header___Fp5VE";
1694
1749
  const modal__heading = "lc-Modal-module__modal__heading___G9KVK";
1695
1750
  const modal__body = "lc-Modal-module__modal__body___M-jmN";
1696
1751
  const modal__footer = "lc-Modal-module__modal__footer___2LYdc";
1697
- var styles$h = {
1752
+ var styles$i = {
1698
1753
  "modal-base": "lc-Modal-module__modal-base___hbL1U",
1699
1754
  "modal-base__overlay": "lc-Modal-module__modal-base__overlay___kCQ8t",
1700
1755
  "modal-base__overlay--visible": "lc-Modal-module__modal-base__overlay--visible___zUNJL",
@@ -1713,7 +1768,7 @@ const ModalCloseButton = ({
1713
1768
  onClick
1714
1769
  }) => /* @__PURE__ */ React.createElement("button", {
1715
1770
  title: "Close modal",
1716
- className: styles$h["modal-base__close"],
1771
+ className: styles$i["modal-base__close"],
1717
1772
  onClick,
1718
1773
  type: "button"
1719
1774
  }, /* @__PURE__ */ React.createElement(Icon, {
@@ -1732,7 +1787,7 @@ const KeyCodes = {
1732
1787
  arrowUp: "ArrowUp",
1733
1788
  arrowDown: "ArrowDown"
1734
1789
  };
1735
- const baseClass$p = "modal-base";
1790
+ const baseClass$q = "modal-base";
1736
1791
  const ModalBase = (_A) => {
1737
1792
  var _B = _A, {
1738
1793
  children,
@@ -1747,7 +1802,7 @@ const ModalBase = (_A) => {
1747
1802
  "closeOnEscPress",
1748
1803
  "closeOnOverlayPress"
1749
1804
  ]);
1750
- const mergedClassNames = cx(styles$h[baseClass$p], className);
1805
+ const mergedClassNames = cx(styles$i[baseClass$q], className);
1751
1806
  React.useEffect(() => {
1752
1807
  if (!closeOnEscPress) {
1753
1808
  return;
@@ -1773,14 +1828,14 @@ const ModalBase = (_A) => {
1773
1828
  return /* @__PURE__ */ React.createElement("div", {
1774
1829
  "data-testid": "lc-modal-overlay",
1775
1830
  onMouseDown: onOverlayClick,
1776
- className: cx(styles$h[`${baseClass$p}__overlay`], styles$h[`${baseClass$p}__overlay--visible`])
1831
+ className: cx(styles$i[`${baseClass$q}__overlay`], styles$i[`${baseClass$q}__overlay--visible`])
1777
1832
  }, /* @__PURE__ */ React.createElement("div", __spreadValues({
1778
1833
  className: mergedClassNames
1779
1834
  }, props), /* @__PURE__ */ React.createElement(ModalCloseButton, {
1780
1835
  onClick: onCloseButtonClick
1781
1836
  }), children));
1782
1837
  };
1783
- const baseClass$o = "action-modal";
1838
+ const baseClass$p = "action-modal";
1784
1839
  const ActionModal = (_C) => {
1785
1840
  var _D = _C, {
1786
1841
  children,
@@ -1795,20 +1850,20 @@ const ActionModal = (_C) => {
1795
1850
  "heading",
1796
1851
  "actions"
1797
1852
  ]);
1798
- const mergedClassNames = cx(styles$h[baseClass$o], className);
1853
+ const mergedClassNames = cx(styles$i[baseClass$p], className);
1799
1854
  return /* @__PURE__ */ React.createElement(ModalBase, __spreadValues({
1800
1855
  className: mergedClassNames
1801
1856
  }, props), icon2 && /* @__PURE__ */ React.createElement("div", {
1802
- className: styles$h[`${baseClass$o}__icon`]
1857
+ className: styles$i[`${baseClass$p}__icon`]
1803
1858
  }, icon2), heading && /* @__PURE__ */ React.createElement("div", {
1804
- className: styles$h[`${baseClass$o}__heading`]
1859
+ className: styles$i[`${baseClass$p}__heading`]
1805
1860
  }, heading), /* @__PURE__ */ React.createElement("div", {
1806
- className: styles$h[`${baseClass$o}__content`]
1861
+ className: styles$i[`${baseClass$p}__content`]
1807
1862
  }, children), actions && /* @__PURE__ */ React.createElement("div", {
1808
- className: styles$h[`${baseClass$o}__actions`]
1863
+ className: styles$i[`${baseClass$p}__actions`]
1809
1864
  }, actions));
1810
1865
  };
1811
- const baseClass$n = "modal";
1866
+ const baseClass$o = "modal";
1812
1867
  const Modal = (_E) => {
1813
1868
  var _F = _E, {
1814
1869
  children,
@@ -1821,19 +1876,19 @@ const Modal = (_E) => {
1821
1876
  "heading",
1822
1877
  "footer"
1823
1878
  ]);
1824
- const mergedClassNames = cx(styles$h[baseClass$n], className);
1879
+ const mergedClassNames = cx(styles$i[baseClass$o], className);
1825
1880
  return /* @__PURE__ */ React.createElement(ModalBase, __spreadValues({
1826
1881
  className: mergedClassNames
1827
1882
  }, props), heading && /* @__PURE__ */ React.createElement("div", {
1828
- className: styles$h[`${baseClass$n}__header`]
1883
+ className: styles$i[`${baseClass$o}__header`]
1829
1884
  }, /* @__PURE__ */ React.createElement(Heading, {
1830
1885
  size: "sm",
1831
1886
  as: "div",
1832
- className: styles$h[`${baseClass$n}__heading`]
1887
+ className: styles$i[`${baseClass$o}__heading`]
1833
1888
  }, heading)), /* @__PURE__ */ React.createElement("div", {
1834
- className: styles$h[`${baseClass$n}__body`]
1889
+ className: styles$i[`${baseClass$o}__body`]
1835
1890
  }, children), footer && /* @__PURE__ */ React.createElement("div", {
1836
- className: styles$h[`${baseClass$n}__footer`]
1891
+ className: styles$i[`${baseClass$o}__footer`]
1837
1892
  }, footer));
1838
1893
  };
1839
1894
  const ModalPortal = ({
@@ -1859,7 +1914,7 @@ const ModalPortal = ({
1859
1914
  }, [parentElementName]);
1860
1915
  return /* @__PURE__ */ React.createElement(React.Fragment, null, ReactDOM.createPortal(children, container));
1861
1916
  };
1862
- var styles$g = {
1917
+ var styles$h = {
1863
1918
  "numeric-input": "lc-NumericInput-module__numeric-input___j1esc",
1864
1919
  "numeric-input__increment": "lc-NumericInput-module__numeric-input__increment___i3Tys",
1865
1920
  "numeric-input__decrement": "lc-NumericInput-module__numeric-input__decrement___3qgn0",
@@ -1867,7 +1922,7 @@ var styles$g = {
1867
1922
  "numeric-input--no-controls": "lc-NumericInput-module__numeric-input--no-controls___D90rG",
1868
1923
  "numeric-input--error": "lc-NumericInput-module__numeric-input--error___TMxRx"
1869
1924
  };
1870
- const baseClass$m = "numeric-input";
1925
+ const baseClass$n = "numeric-input";
1871
1926
  const NumericInput = (_G) => {
1872
1927
  var _H = _G, {
1873
1928
  className,
@@ -1891,10 +1946,10 @@ const NumericInput = (_G) => {
1891
1946
  "onChange"
1892
1947
  ]);
1893
1948
  const inputRef = React.useRef(null);
1894
- const mergedClassNames = cx(styles$g[baseClass$m], {
1895
- [styles$g[`${baseClass$m}--error`]]: error,
1896
- [styles$g[`${baseClass$m}--no-controls`]]: noControls,
1897
- [styles$g[`${baseClass$m}--disabled`]]: disabled
1949
+ const mergedClassNames = cx(styles$h[baseClass$n], {
1950
+ [styles$h[`${baseClass$n}--error`]]: error,
1951
+ [styles$h[`${baseClass$n}--no-controls`]]: noControls,
1952
+ [styles$h[`${baseClass$n}--disabled`]]: disabled
1898
1953
  }, className);
1899
1954
  const callOnChange = (val) => onChange(String(val));
1900
1955
  const calcValue = (val) => {
@@ -1959,7 +2014,7 @@ const NumericInput = (_G) => {
1959
2014
  disabled: disabled || hasReachedTheLimit(value, max),
1960
2015
  onClick: handleIncrementClick,
1961
2016
  "aria-label": "Increment value",
1962
- className: styles$g[`${baseClass$m}__increment`],
2017
+ className: styles$h[`${baseClass$n}__increment`],
1963
2018
  type: "button"
1964
2019
  }, /* @__PURE__ */ React.createElement(Icon, {
1965
2020
  source: ChevronUp,
@@ -1969,7 +2024,7 @@ const NumericInput = (_G) => {
1969
2024
  tabIndex: -1,
1970
2025
  disabled: disabled || hasReachedTheLimit(value, min),
1971
2026
  "aria-label": "Decrement value",
1972
- className: styles$g[`${baseClass$m}__decrement`],
2027
+ className: styles$h[`${baseClass$n}__decrement`],
1973
2028
  onClick: handleDecrementClick,
1974
2029
  type: "button"
1975
2030
  }, /* @__PURE__ */ React.createElement(Icon, {
@@ -1978,7 +2033,7 @@ const NumericInput = (_G) => {
1978
2033
  disabled: disabled || hasReachedTheLimit(value, min)
1979
2034
  }))));
1980
2035
  };
1981
- var styles$f = {
2036
+ var styles$g = {
1982
2037
  "picker-trigger": "lc-Trigger-module__picker-trigger___BIvTx",
1983
2038
  "picker-trigger--compact": "lc-Trigger-module__picker-trigger--compact___3i1DL",
1984
2039
  "picker-trigger--medium": "lc-Trigger-module__picker-trigger--medium___-fbEx",
@@ -1995,7 +2050,7 @@ var styles$f = {
1995
2050
  "picker-trigger--focused": "lc-Trigger-module__picker-trigger--focused___vTr39",
1996
2051
  "picker-trigger--error": "lc-Trigger-module__picker-trigger--error___Rh8Qd"
1997
2052
  };
1998
- const baseClass$l = "picker-trigger";
2053
+ const baseClass$m = "picker-trigger";
1999
2054
  const Trigger = ({
2000
2055
  children,
2001
2056
  isSearchDisabled,
@@ -2010,7 +2065,7 @@ const Trigger = ({
2010
2065
  onClear
2011
2066
  }) => {
2012
2067
  const triggerRef = React.useRef(null);
2013
- const mergedClassNames = cx(styles$f[baseClass$l], styles$f[`${baseClass$l}--${size}`], isMultiSelect && styles$f[`${baseClass$l}--multi-select`], isMultiSelect && isItemSelected && styles$f[`${baseClass$l}--multi-select--with-items`], isDisabled && styles$f[`${baseClass$l}--disabled`], isOpen && styles$f[`${baseClass$l}--focused`], isError && styles$f[`${baseClass$l}--error`]);
2068
+ const mergedClassNames = cx(styles$g[baseClass$m], styles$g[`${baseClass$m}--${size}`], isMultiSelect && styles$g[`${baseClass$m}--multi-select`], isMultiSelect && isItemSelected && styles$g[`${baseClass$m}--multi-select--with-items`], isDisabled && styles$g[`${baseClass$m}--disabled`], isOpen && styles$g[`${baseClass$m}--focused`], isError && styles$g[`${baseClass$m}--error`]);
2014
2069
  React.useEffect(() => {
2015
2070
  const onKeyDown = (e) => {
2016
2071
  const isFocused = document.activeElement === triggerRef.current;
@@ -2040,34 +2095,35 @@ const Trigger = ({
2040
2095
  onClick: handleTriggerClick,
2041
2096
  tabIndex: 0
2042
2097
  }, /* @__PURE__ */ React.createElement("div", {
2043
- className: cx(styles$f[`${baseClass$l}__content`], isMultiSelect && styles$f[`${baseClass$l}__content--multi-select`])
2098
+ className: styles$g[`${baseClass$m}__content`]
2044
2099
  }, children), /* @__PURE__ */ React.createElement("div", {
2045
- className: cx(styles$f[`${baseClass$l}__controls`], styles$f[`${baseClass$l}__controls--${size}`])
2100
+ className: cx(styles$g[`${baseClass$m}__controls`], styles$g[`${baseClass$m}__controls--${size}`])
2046
2101
  }, isItemSelected && !isDisabled && !isRequired && /* @__PURE__ */ React.createElement("div", {
2047
- "data-testid": `${baseClass$l}__clear-icon`,
2048
- className: styles$f[`${baseClass$l}__clear-icon`],
2102
+ "data-testid": `${baseClass$m}__clear-icon`,
2103
+ className: styles$g[`${baseClass$m}__clear-icon`],
2049
2104
  onClick: handleOnClearClick
2050
2105
  }, /* @__PURE__ */ React.createElement(Icon, {
2051
2106
  kind: "primary",
2052
2107
  size: "small",
2053
2108
  source: Close
2054
2109
  })), /* @__PURE__ */ React.createElement(Icon, {
2055
- className: styles$f[`${baseClass$l}__chevron-icon`],
2110
+ className: styles$g[`${baseClass$m}__chevron-icon`],
2056
2111
  source: !isOpen ? ChevronDown : ChevronUp,
2057
2112
  size: "large",
2058
2113
  disabled: isDisabled
2059
2114
  })));
2060
2115
  };
2061
- var styles$e = {
2116
+ var styles$f = {
2062
2117
  "picker-list": "lc-PickerList-module__picker-list___FqdgZ",
2063
2118
  "picker-list__no-results": "lc-PickerList-module__picker-list__no-results___tX172",
2064
2119
  "picker-list__item": "lc-PickerList-module__picker-list__item___8QNS0",
2065
2120
  "picker-list__item--select-all": "lc-PickerList-module__picker-list__item--select-all___PlTHV",
2066
- "picker-list__item__header": "lc-PickerList-module__picker-list__item__header___mxmg0"
2121
+ "picker-list__item__header": "lc-PickerList-module__picker-list__item__header___mxmg0",
2122
+ "picker-list__item__custom": "lc-PickerList-module__picker-list__item__custom___kJEP6"
2067
2123
  };
2068
2124
  const SELECT_ALL_OPTION_KEY = "select-all";
2069
- const baseClass$k = "picker-list";
2070
- const itemClassName = `${baseClass$k}__item`;
2125
+ const baseClass$l = "picker-list";
2126
+ const itemClassName = `${baseClass$l}__item`;
2071
2127
  const PickerList = ({
2072
2128
  isOpen,
2073
2129
  items,
@@ -2079,8 +2135,8 @@ const PickerList = ({
2079
2135
  onSelect,
2080
2136
  onSelectAll
2081
2137
  }) => {
2082
- const mergedClassNames = cx(styles$e[baseClass$k], {
2083
- [styles$e[`${baseClass$k}__no-results`]]: items.length === 0
2138
+ const mergedClassNames = cx(styles$f[baseClass$l], {
2139
+ [styles$f[`${baseClass$l}__no-results`]]: items.length === 0
2084
2140
  });
2085
2141
  const [currentItemKey, setCurrentItemKey] = React.useState(null);
2086
2142
  const indexRef = React.useRef(-1);
@@ -2174,10 +2230,18 @@ const PickerList = ({
2174
2230
  "aria-current": currentItemKey === SELECT_ALL_OPTION_KEY,
2175
2231
  id: SELECT_ALL_OPTION_KEY,
2176
2232
  key: SELECT_ALL_OPTION_KEY,
2177
- className: cx(styles$e[itemClassName], styles$e[`${itemClassName}--select-all`]),
2233
+ className: cx(styles$f[itemClassName], styles$f[`${itemClassName}--select-all`]),
2178
2234
  onClick: handleOnSelectAllClick
2179
2235
  }, selectAllOptionText);
2180
2236
  };
2237
+ const getOptionContent = (item) => {
2238
+ if (item == null ? void 0 : item.customElement) {
2239
+ return /* @__PURE__ */ React.createElement("div", {
2240
+ className: styles$f[`${itemClassName}__custom`]
2241
+ }, item.customElement.listItemBody);
2242
+ }
2243
+ return item.name;
2244
+ };
2181
2245
  if (!isOpen) {
2182
2246
  return null;
2183
2247
  }
@@ -2196,7 +2260,7 @@ const PickerList = ({
2196
2260
  return /* @__PURE__ */ React.createElement("li", {
2197
2261
  role: "option",
2198
2262
  key: item.key,
2199
- className: styles$e[`${itemClassName}__header`]
2263
+ className: styles$f[`${itemClassName}__header`]
2200
2264
  }, item.name);
2201
2265
  }
2202
2266
  return /* @__PURE__ */ React.createElement("li", {
@@ -2211,9 +2275,11 @@ const PickerList = ({
2211
2275
  "aria-disabled": item.disabled,
2212
2276
  id: item.key,
2213
2277
  key: item.key,
2214
- className: styles$e[itemClassName],
2278
+ className: cx(styles$f[itemClassName], {
2279
+ [styles$f[`${itemClassName}__custom`]]: item == null ? void 0 : item.customElement
2280
+ }),
2215
2281
  onClick: () => !item.disabled && handleOnClick(item)
2216
- }, item.name, isItemSelected(item.key) && /* @__PURE__ */ React.createElement(Icon, {
2282
+ }, getOptionContent(item), isItemSelected(item.key) && /* @__PURE__ */ React.createElement(Icon, {
2217
2283
  kind: "link",
2218
2284
  source: Check
2219
2285
  }));
@@ -2224,7 +2290,7 @@ const picker__container = "lc-Picker-module__picker__container___s0PUc";
2224
2290
  const picker__label = "lc-Picker-module__picker__label___Ac7Vu";
2225
2291
  const picker__error = "lc-Picker-module__picker__error___H865k";
2226
2292
  const picker__error__icon = "lc-Picker-module__picker__error__icon___bbL7r";
2227
- var styles$d = {
2293
+ var styles$e = {
2228
2294
  picker,
2229
2295
  picker__container,
2230
2296
  picker__label,
@@ -2237,7 +2303,7 @@ const tag__remove = "lc-Tag-module__tag__remove___UmtrW";
2237
2303
  const icon = "lc-Tag-module__icon___2Z-35";
2238
2304
  const tag__icon = "lc-Tag-module__tag__icon___tZoQ9";
2239
2305
  const tag__avatar = "lc-Tag-module__tag__avatar___U4c-P";
2240
- var styles$c = {
2306
+ var styles$d = {
2241
2307
  tag,
2242
2308
  "tag--success": "lc-Tag-module__tag--success___P2hXQ",
2243
2309
  tag__remove,
@@ -2255,7 +2321,7 @@ var styles$c = {
2255
2321
  tag__icon,
2256
2322
  tag__avatar
2257
2323
  };
2258
- const baseClass$j = "tag";
2324
+ const baseClass$k = "tag";
2259
2325
  const getCustomTextClass = (customColor) => {
2260
2326
  if (!customColor) {
2261
2327
  return "";
@@ -2286,11 +2352,11 @@ const Tag = (_I) => {
2286
2352
  "avatar",
2287
2353
  "customColor"
2288
2354
  ]);
2289
- const mergedClassNames = cx(styles$c[baseClass$j], className, styles$c[`${baseClass$j}--${size}`], styles$c[`${baseClass$j}--${kind}`], {
2290
- [styles$c[`${baseClass$j}--dismissible`]]: dismissible,
2291
- [styles$c[`${baseClass$j}--outline`]]: outline,
2292
- [styles$c[`${baseClass$j}--with-icon`]]: !!icon2 || !!avatar2,
2293
- [styles$c[`${baseClass$j}--${getCustomTextClass(customColor)}`]]: !!customColor
2355
+ const mergedClassNames = cx(styles$d[baseClass$k], className, styles$d[`${baseClass$k}--${size}`], styles$d[`${baseClass$k}--${kind}`], {
2356
+ [styles$d[`${baseClass$k}--dismissible`]]: dismissible,
2357
+ [styles$d[`${baseClass$k}--outline`]]: outline,
2358
+ [styles$d[`${baseClass$k}--with-icon`]]: !!icon2 || !!avatar2,
2359
+ [styles$d[`${baseClass$k}--${getCustomTextClass(customColor)}`]]: !!customColor
2294
2360
  });
2295
2361
  const getCustomColorStyles = () => {
2296
2362
  if (!customColor) {
@@ -2322,13 +2388,13 @@ const Tag = (_I) => {
2322
2388
  as: "div",
2323
2389
  size: "md"
2324
2390
  }), avatar2 && /* @__PURE__ */ React.createElement("img", {
2325
- className: styles$c[`${baseClass$j}__avatar`],
2391
+ className: styles$d[`${baseClass$k}__avatar`],
2326
2392
  src: avatar2,
2327
2393
  alt: "tag-avatar",
2328
2394
  "data-testid": "lc-tag-avatar"
2329
2395
  }), " ", icon2 && !avatar2 && /* @__PURE__ */ React.createElement(Icon, {
2330
2396
  "data-testid": "lc-tag-icon",
2331
- className: styles$c[`${baseClass$j}__icon`],
2397
+ className: styles$d[`${baseClass$k}__icon`],
2332
2398
  source: icon2,
2333
2399
  size: "small",
2334
2400
  customColor: getIconCustomColor()
@@ -2336,7 +2402,7 @@ const Tag = (_I) => {
2336
2402
  title: "Remove",
2337
2403
  onClick: onRemove,
2338
2404
  type: "button",
2339
- className: styles$c[`${baseClass$j}__remove`]
2405
+ className: styles$d[`${baseClass$k}__remove`]
2340
2406
  }, /* @__PURE__ */ React.createElement(Icon, {
2341
2407
  "data-dismiss-icon": true,
2342
2408
  source: Close,
@@ -2344,11 +2410,11 @@ const Tag = (_I) => {
2344
2410
  customColor: getIconCustomColor()
2345
2411
  })));
2346
2412
  };
2347
- var styles$b = {
2413
+ var styles$c = {
2348
2414
  "picker-trigger-body": "lc-TriggerBody-module__picker-trigger-body___ZWjX9",
2349
2415
  "picker-trigger-body__input": "lc-TriggerBody-module__picker-trigger-body__input___ezPyz"
2350
2416
  };
2351
- const baseClass$i = "picker-trigger-body";
2417
+ const baseClass$j = "picker-trigger-body";
2352
2418
  const TriggerBody = ({
2353
2419
  isOpen,
2354
2420
  isSearchDisabled,
@@ -2359,17 +2425,22 @@ const TriggerBody = ({
2359
2425
  onFilter
2360
2426
  }) => {
2361
2427
  const shouldDisplaySearch = isOpen && !isSearchDisabled;
2362
- const getSingleItem = (name) => {
2363
- if (isOpen && !isSearchDisabled) {
2428
+ const getSingleItem = (item) => {
2429
+ if (type === "single" && isOpen && !isSearchDisabled) {
2364
2430
  return null;
2365
2431
  }
2366
- return name;
2432
+ if (item == null ? void 0 : item.customElement) {
2433
+ return /* @__PURE__ */ React.createElement("div", {
2434
+ className: styles$c[`${baseClass$j}__custom`]
2435
+ }, item.customElement.selectedItemBody);
2436
+ }
2437
+ return item.name;
2367
2438
  };
2368
2439
  const handleOnChange = (e) => {
2369
2440
  onFilter(e.target.value);
2370
2441
  };
2371
2442
  const getSearch = () => /* @__PURE__ */ React.createElement("input", {
2372
- className: styles$b[`${baseClass$i}__input`],
2443
+ className: styles$c[`${baseClass$j}__input`],
2373
2444
  placeholder: "Select option",
2374
2445
  onChange: handleOnChange,
2375
2446
  autoFocus: true
@@ -2378,17 +2449,17 @@ const TriggerBody = ({
2378
2449
  return shouldDisplaySearch ? getSearch() : /* @__PURE__ */ React.createElement("div", null, placeholder);
2379
2450
  }
2380
2451
  return /* @__PURE__ */ React.createElement("div", {
2381
- className: styles$b[baseClass$i]
2382
- }, type === "single" ? getSingleItem(items[0].name) : items.map((item) => {
2452
+ className: styles$c[baseClass$j]
2453
+ }, type === "single" ? getSingleItem(items[0]) : items.map((item) => {
2383
2454
  return /* @__PURE__ */ React.createElement(Tag, {
2384
2455
  key: item.name,
2385
- className: styles$b[`${baseClass$i}__tag`],
2456
+ className: styles$c[`${baseClass$j}__tag`],
2386
2457
  dismissible: true,
2387
2458
  onRemove: () => onItemRemove(item)
2388
- }, item.name);
2459
+ }, getSingleItem(item));
2389
2460
  }), shouldDisplaySearch && getSearch());
2390
2461
  };
2391
- const baseClass$h = "picker";
2462
+ const baseClass$i = "picker";
2392
2463
  const Picker = ({
2393
2464
  className,
2394
2465
  disabled,
@@ -2408,7 +2479,7 @@ const Picker = ({
2408
2479
  const [isListOpen, setIsListOpen] = React.useState(false);
2409
2480
  const [searchPhrase, setSearchPhrase] = React.useState(null);
2410
2481
  const triggerRef = React.useRef(null);
2411
- const mergedClassNames = cx(styles$d[baseClass$h], className);
2482
+ const mergedClassNames = cx(styles$e[baseClass$i], className);
2412
2483
  React.useEffect(() => {
2413
2484
  if (isListOpen) {
2414
2485
  const onDocumentClick = (e) => {
@@ -2500,11 +2571,11 @@ const Picker = ({
2500
2571
  ref: triggerRef,
2501
2572
  className: mergedClassNames
2502
2573
  }, label && /* @__PURE__ */ React.createElement("div", {
2503
- className: cx(styles$d[`${baseClass$h}__label`], {
2504
- [styles$d[`${baseClass$h}__label--disabled`]]: disabled
2574
+ className: cx(styles$e[`${baseClass$i}__label`], {
2575
+ [styles$e[`${baseClass$i}__label--disabled`]]: disabled
2505
2576
  })
2506
2577
  }, label), /* @__PURE__ */ React.createElement("div", {
2507
- className: styles$d[`${baseClass$h}__container`]
2578
+ className: styles$e[`${baseClass$i}__container`]
2508
2579
  }, /* @__PURE__ */ React.createElement(Trigger, {
2509
2580
  isSearchDisabled: searchDisabled,
2510
2581
  isError: !!error,
@@ -2535,9 +2606,9 @@ const Picker = ({
2535
2606
  onSelect: handleSelect,
2536
2607
  onSelectAll: handleSelectAll
2537
2608
  })), error && /* @__PURE__ */ React.createElement("div", {
2538
- className: styles$d[`${baseClass$h}__error`]
2609
+ className: styles$e[`${baseClass$i}__error`]
2539
2610
  }, /* @__PURE__ */ React.createElement(Icon, {
2540
- className: styles$d[`${baseClass$h}__error__icon`],
2611
+ className: styles$e[`${baseClass$i}__error__icon`],
2541
2612
  source: Error2,
2542
2613
  kind: "error",
2543
2614
  size: "small"
@@ -2636,7 +2707,7 @@ function getProgressStatus(status, percent) {
2636
2707
  }
2637
2708
  return status || "normal";
2638
2709
  }
2639
- var styles$a = {
2710
+ var styles$b = {
2640
2711
  "progress-circle": "lc-ProgressCircle-module__progress-circle___NRHCi",
2641
2712
  "progress-circle--small": "lc-ProgressCircle-module__progress-circle--small___8FVwG",
2642
2713
  "progress-circle--medium": "lc-ProgressCircle-module__progress-circle--medium___XlzEX",
@@ -2662,7 +2733,7 @@ const SIZE_VALUE_FROM_SIZE = {
2662
2733
  medium: 36,
2663
2734
  large: 56
2664
2735
  };
2665
- const baseClass$g = "progress-circle";
2736
+ const baseClass$h = "progress-circle";
2666
2737
  const ProgressCircle = React.forwardRef((_K, ref) => {
2667
2738
  var _L = _K, {
2668
2739
  status = "normal",
@@ -2679,9 +2750,9 @@ const ProgressCircle = React.forwardRef((_K, ref) => {
2679
2750
  const percentNumber = getPercentNumber(progressStatus, progressValue);
2680
2751
  const thickness = THICKNESS_FROM_SIZE[size];
2681
2752
  const sizeValue = SIZE_VALUE_FROM_SIZE[size];
2682
- const mergedClassNames = cx(styles$a[baseClass$g], {
2683
- [styles$a[`${baseClass$g}--${size}`]]: size,
2684
- [styles$a[`${baseClass$g}--${status}`]]: status
2753
+ const mergedClassNames = cx(styles$b[baseClass$h], {
2754
+ [styles$b[`${baseClass$h}--${size}`]]: size,
2755
+ [styles$b[`${baseClass$h}--${status}`]]: status
2685
2756
  }, className);
2686
2757
  const circumference = 2 * Math.PI * ((sizeValue - thickness) / 2);
2687
2758
  const indicatorStyle = {
@@ -2696,14 +2767,14 @@ const ProgressCircle = React.forwardRef((_K, ref) => {
2696
2767
  }, restProps), /* @__PURE__ */ React.createElement("svg", {
2697
2768
  viewBox: svgViewBox
2698
2769
  }, /* @__PURE__ */ React.createElement("circle", {
2699
- className: styles$a[`${baseClass$g}__bg-line--${status}`],
2770
+ className: styles$b[`${baseClass$h}__bg-line--${status}`],
2700
2771
  cx: sizeValue,
2701
2772
  cy: sizeValue,
2702
2773
  r: (sizeValue - thickness) / 2,
2703
2774
  fill: "none",
2704
2775
  strokeWidth: thickness
2705
2776
  }), /* @__PURE__ */ React.createElement("circle", {
2706
- className: styles$a[`${baseClass$g}__indicator--${status}`],
2777
+ className: styles$b[`${baseClass$h}__indicator--${status}`],
2707
2778
  style: indicatorStyle,
2708
2779
  cx: sizeValue,
2709
2780
  cy: sizeValue,
@@ -2712,7 +2783,7 @@ const ProgressCircle = React.forwardRef((_K, ref) => {
2712
2783
  strokeWidth: thickness
2713
2784
  })));
2714
2785
  });
2715
- var styles$9 = {
2786
+ var styles$a = {
2716
2787
  "progress-bar": "lc-ProgressBar-module__progress-bar___3pa3d",
2717
2788
  "progress-bar--small": "lc-ProgressBar-module__progress-bar--small___7nQKx",
2718
2789
  "progress-bar--medium": "lc-ProgressBar-module__progress-bar--medium___cM44p",
@@ -2723,7 +2794,7 @@ var styles$9 = {
2723
2794
  "progress-bar__indicator--success": "lc-ProgressBar-module__progress-bar__indicator--success___wRjR3",
2724
2795
  "progress-bar__indicator--normal": "lc-ProgressBar-module__progress-bar__indicator--normal___0Uhle"
2725
2796
  };
2726
- const baseClass$f = "progress-bar";
2797
+ const baseClass$g = "progress-bar";
2727
2798
  const ProgressBar = React.forwardRef((_M, ref) => {
2728
2799
  var _N = _M, {
2729
2800
  status = "normal",
@@ -2738,20 +2809,20 @@ const ProgressBar = React.forwardRef((_M, ref) => {
2738
2809
  ]);
2739
2810
  const progressStatus = getProgressStatus(status, percent);
2740
2811
  const percentNumber = getPercentNumber(progressStatus, percent);
2741
- const mergedClassNames = cx(styles$9[baseClass$f], {
2742
- [styles$9[`${baseClass$f}--${size}`]]: size,
2743
- [styles$9[`${baseClass$f}--${status}`]]: status
2812
+ const mergedClassNames = cx(styles$a[baseClass$g], {
2813
+ [styles$a[`${baseClass$g}--${size}`]]: size,
2814
+ [styles$a[`${baseClass$g}--${status}`]]: status
2744
2815
  }, className);
2745
2816
  return /* @__PURE__ */ React.createElement("div", __spreadProps(__spreadValues({}, restProps), {
2746
2817
  className: mergedClassNames,
2747
2818
  ref,
2748
2819
  role: "progressbar"
2749
2820
  }), /* @__PURE__ */ React.createElement("div", {
2750
- className: styles$9[`${baseClass$f}__indicator--${status}`],
2821
+ className: styles$a[`${baseClass$g}__indicator--${status}`],
2751
2822
  style: { width: `${percentNumber}%` }
2752
2823
  }));
2753
2824
  });
2754
- var styles$8 = {
2825
+ var styles$9 = {
2755
2826
  "promo-banner": "lc-PromoBanner-module__promo-banner___-mGpq",
2756
2827
  "promo-banner__content": "lc-PromoBanner-module__promo-banner__content___kRWar",
2757
2828
  "promo-banner__wrapper": "lc-PromoBanner-module__promo-banner__wrapper___I-8cl",
@@ -2767,7 +2838,7 @@ var styles$8 = {
2767
2838
  const SMALL_CONTAINER_WIDTH_TRESHOLD = 400;
2768
2839
  const LARGE_CONTAINER_WIDTH_TRESHOLD = 800;
2769
2840
  const RESIZE_DEBOUNCE_TRESHOLD = 500;
2770
- const baseClass$e = "promo-banner";
2841
+ const baseClass$f = "promo-banner";
2771
2842
  const PromoBanner = ({
2772
2843
  className,
2773
2844
  buttonText,
@@ -2782,10 +2853,10 @@ const PromoBanner = ({
2782
2853
  }) => {
2783
2854
  const containerRef = React.useRef(null);
2784
2855
  const [containerSize, setContainerSize] = React.useState("medium");
2785
- const mergedClassNames = cx(styles$8[baseClass$e], {
2786
- [styles$8[`${baseClass$e}--light`]]: light,
2787
- [styles$8[`${baseClass$e}--small`]]: containerSize === "small",
2788
- [styles$8[`${baseClass$e}--large`]]: containerSize === "large"
2856
+ const mergedClassNames = cx(styles$9[baseClass$f], {
2857
+ [styles$9[`${baseClass$f}--light`]]: light,
2858
+ [styles$9[`${baseClass$f}--small`]]: containerSize === "small",
2859
+ [styles$9[`${baseClass$f}--large`]]: containerSize === "large"
2789
2860
  }, className);
2790
2861
  React.useEffect(() => {
2791
2862
  const handleResize = () => {
@@ -2806,12 +2877,12 @@ const PromoBanner = ({
2806
2877
  };
2807
2878
  }, []);
2808
2879
  const footer = /* @__PURE__ */ React.createElement("div", {
2809
- className: styles$8[`${baseClass$e}__footer`]
2880
+ className: styles$9[`${baseClass$f}__footer`]
2810
2881
  }, buttonText && /* @__PURE__ */ React.createElement(Button, {
2811
2882
  kind: "primary",
2812
2883
  size: "compact",
2813
2884
  onClick: onButtonClick,
2814
- className: styles$8[`${baseClass$e}__button-text`]
2885
+ className: styles$9[`${baseClass$f}__button-text`]
2815
2886
  }, buttonText), linkText && /* @__PURE__ */ React.createElement(Button, {
2816
2887
  size: "compact",
2817
2888
  kind: "text",
@@ -2821,24 +2892,24 @@ const PromoBanner = ({
2821
2892
  ref: containerRef,
2822
2893
  className: mergedClassNames
2823
2894
  }, /* @__PURE__ */ React.createElement("div", {
2824
- className: styles$8[`${baseClass$e}__content`]
2895
+ className: styles$9[`${baseClass$f}__content`]
2825
2896
  }, img && /* @__PURE__ */ React.createElement("img", {
2826
2897
  src: img,
2827
- className: styles$8[`${baseClass$e}__img`]
2898
+ className: styles$9[`${baseClass$f}__img`]
2828
2899
  }), /* @__PURE__ */ React.createElement("div", {
2829
- className: styles$8[`${baseClass$e}__wrapper`]
2900
+ className: styles$9[`${baseClass$f}__wrapper`]
2830
2901
  }, /* @__PURE__ */ React.createElement("div", {
2831
- className: styles$8[`${baseClass$e}__header`]
2902
+ className: styles$9[`${baseClass$f}__header`]
2832
2903
  }, header), /* @__PURE__ */ React.createElement("div", null, children), containerSize !== "large" && footer), containerSize === "large" && footer), onClose && /* @__PURE__ */ React.createElement("button", {
2833
2904
  type: "button",
2834
- className: styles$8[`${baseClass$e}__close-icon`],
2905
+ className: styles$9[`${baseClass$f}__close-icon`],
2835
2906
  onClick: onClose
2836
2907
  }, /* @__PURE__ */ React.createElement(Icon, {
2837
2908
  source: Close,
2838
2909
  size: "large"
2839
2910
  })));
2840
2911
  };
2841
- var styles$7 = {
2912
+ var styles$8 = {
2842
2913
  "radio-button": "lc-RadioButton-module__radio-button___WaToM",
2843
2914
  "radio-button__label": "lc-RadioButton-module__radio-button__label___i7ygg",
2844
2915
  "radio-button__circle": "lc-RadioButton-module__radio-button__circle___wimWA",
@@ -2849,23 +2920,23 @@ var styles$7 = {
2849
2920
  "radio-button--selected": "lc-RadioButton-module__radio-button--selected___s9lqj",
2850
2921
  "radio-button--disabled": "lc-RadioButton-module__radio-button--disabled___wHSA7"
2851
2922
  };
2852
- const baseClass$d = "radio-button";
2923
+ const baseClass$e = "radio-button";
2853
2924
  const RadioButton = React.forwardRef((_O, ref) => {
2854
2925
  var _P = _O, { children, className = "", description, checked, disabled } = _P, props = __objRest(_P, ["children", "className", "description", "checked", "disabled"]);
2855
- const mergedClassNames = cx(styles$7[baseClass$d], className, {
2856
- [styles$7[`${baseClass$d}--selected`]]: checked,
2857
- [styles$7[`${baseClass$d}--disabled`]]: disabled
2926
+ const mergedClassNames = cx(styles$8[baseClass$e], className, {
2927
+ [styles$8[`${baseClass$e}--selected`]]: checked,
2928
+ [styles$8[`${baseClass$e}--disabled`]]: disabled
2858
2929
  });
2859
2930
  return /* @__PURE__ */ React.createElement("div", {
2860
2931
  className: mergedClassNames
2861
2932
  }, /* @__PURE__ */ React.createElement("label", {
2862
- className: styles$7[`${baseClass$d}__label`]
2933
+ className: styles$8[`${baseClass$e}__label`]
2863
2934
  }, /* @__PURE__ */ React.createElement("div", {
2864
- className: styles$7[`${baseClass$d}__circle`]
2935
+ className: styles$8[`${baseClass$e}__circle`]
2865
2936
  }, /* @__PURE__ */ React.createElement("span", {
2866
- className: styles$7[`${baseClass$d}__inner-circle`]
2937
+ className: styles$8[`${baseClass$e}__inner-circle`]
2867
2938
  }), /* @__PURE__ */ React.createElement("input", __spreadProps(__spreadValues({}, props), {
2868
- className: styles$7[`${baseClass$d}__input`],
2939
+ className: styles$8[`${baseClass$e}__input`],
2869
2940
  ref,
2870
2941
  type: "radio",
2871
2942
  checked,
@@ -2873,12 +2944,12 @@ const RadioButton = React.forwardRef((_O, ref) => {
2873
2944
  }))), children && /* @__PURE__ */ React.createElement(Text, {
2874
2945
  as: "div",
2875
2946
  size: "md",
2876
- className: styles$7[`${baseClass$d}__text`]
2947
+ className: styles$8[`${baseClass$e}__text`]
2877
2948
  }, children)), description && /* @__PURE__ */ React.createElement(FieldDescription, {
2878
- className: styles$7[`${baseClass$d}__helper`]
2949
+ className: styles$8[`${baseClass$e}__helper`]
2879
2950
  }, description));
2880
2951
  });
2881
- var styles$6 = {
2952
+ var styles$7 = {
2882
2953
  "search-input": "lc-Search-module__search-input___FsbCk",
2883
2954
  "search-input__search-icon": "lc-Search-module__search-input__search-icon___BBQoD",
2884
2955
  "search-input__clear-icon": "lc-Search-module__search-input__clear-icon___LoNkc",
@@ -2891,8 +2962,8 @@ var styles$6 = {
2891
2962
  "search-input__input--collapsable--open": "lc-Search-module__search-input__input--collapsable--open___a2rX2",
2892
2963
  "search-input__input--disabled": "lc-Search-module__search-input__input--disabled___nfZau"
2893
2964
  };
2894
- const baseClass$c = "search-input";
2895
- const inputBaseClass = `${baseClass$c}__input`;
2965
+ const baseClass$d = "search-input";
2966
+ const inputBaseClass = `${baseClass$d}__input`;
2896
2967
  const SearchInput = ({
2897
2968
  isCollapsable,
2898
2969
  isDisabled,
@@ -2907,7 +2978,7 @@ const SearchInput = ({
2907
2978
  const [isCollapsed, setIsCollapsed] = React.useState(true);
2908
2979
  const inputRef = React.useRef(null);
2909
2980
  const isCloseIconVisible = !!searchValue && !isDisabled && !isLoading;
2910
- const mergedClassNames = cx(className, styles$6[`${inputBaseClass}`], styles$6[`${inputBaseClass}--${size}`], (isDisabled || isLoading) && styles$6[`${inputBaseClass}--disabled`], isCollapsable && styles$6[`${inputBaseClass}--collapsable`], !isCollapsed && styles$6[`${inputBaseClass}--collapsable--open`]);
2981
+ const mergedClassNames = cx(className, styles$7[`${inputBaseClass}`], styles$7[`${inputBaseClass}--${size}`], (isDisabled || isLoading) && styles$7[`${inputBaseClass}--disabled`], isCollapsable && styles$7[`${inputBaseClass}--collapsable`], !isCollapsed && styles$7[`${inputBaseClass}--collapsable--open`]);
2911
2982
  React.useEffect(() => {
2912
2983
  if (typeof value === "string") {
2913
2984
  setSearchValue(value);
@@ -2943,11 +3014,11 @@ const SearchInput = ({
2943
3014
  }
2944
3015
  };
2945
3016
  return /* @__PURE__ */ React.createElement("div", {
2946
- "data-testid": `${baseClass$c}-container`,
2947
- className: styles$6[baseClass$c],
3017
+ "data-testid": `${baseClass$d}-container`,
3018
+ className: styles$7[baseClass$d],
2948
3019
  onClick: handleClick
2949
3020
  }, /* @__PURE__ */ React.createElement(Icon, {
2950
- className: styles$6[`${baseClass$c}__search-icon`],
3021
+ className: styles$7[`${baseClass$d}__search-icon`],
2951
3022
  source: Search,
2952
3023
  disabled: isDisabled || isLoading,
2953
3024
  kind: "primary"
@@ -2963,14 +3034,14 @@ const SearchInput = ({
2963
3034
  onKeyDown: handleKeyDown,
2964
3035
  disabled: isDisabled || isLoading
2965
3036
  }), isCloseIconVisible && /* @__PURE__ */ React.createElement("div", {
2966
- className: styles$6[`${baseClass$c}__clear-icon`],
2967
- "data-testid": `${baseClass$c}-clear-icon`,
3037
+ className: styles$7[`${baseClass$d}__clear-icon`],
3038
+ "data-testid": `${baseClass$d}-clear-icon`,
2968
3039
  onClick: handleClear
2969
3040
  }, /* @__PURE__ */ React.createElement(Icon, {
2970
3041
  source: Close
2971
3042
  })), isLoading && /* @__PURE__ */ React.createElement("div", {
2972
- "data-testid": `${baseClass$c}-loader`,
2973
- className: styles$6[`${baseClass$c}__loader`]
3043
+ "data-testid": `${baseClass$d}-loader`,
3044
+ className: styles$7[`${baseClass$d}__loader`]
2974
3045
  }, /* @__PURE__ */ React.createElement(Loader, {
2975
3046
  size: "small"
2976
3047
  })));
@@ -2981,7 +3052,7 @@ const switch__track = "lc-Switch-module__switch__track___2wr2M";
2981
3052
  const switch__slider = "lc-Switch-module__switch__slider___WHd--";
2982
3053
  const switch__loader = "lc-Switch-module__switch__loader___FE-fA";
2983
3054
  const switch__icon = "lc-Switch-module__switch__icon___-O1qY";
2984
- var styles$5 = {
3055
+ var styles$6 = {
2985
3056
  "switch": "lc-Switch-module__switch___AaA2k",
2986
3057
  "switch__track--enabled": "lc-Switch-module__switch__track--enabled___sy4Xl",
2987
3058
  "switch__track--on": "lc-Switch-module__switch__track--on___aOMWe",
@@ -3010,13 +3081,13 @@ var styles$5 = {
3010
3081
  "switch__loader--large": "lc-Switch-module__switch__loader--large___vLRFa",
3011
3082
  switch__icon
3012
3083
  };
3013
- const baseClass$b = "switch";
3084
+ const baseClass$c = "switch";
3014
3085
  const Switch = (_Q) => {
3015
3086
  var _R = _Q, {
3016
3087
  className = "",
3017
3088
  defaultOn = false,
3018
3089
  disabled = false,
3019
- name = baseClass$b,
3090
+ name = baseClass$c,
3020
3091
  on,
3021
3092
  onChange = noop,
3022
3093
  size = "large",
@@ -3047,7 +3118,7 @@ const Switch = (_Q) => {
3047
3118
  const toggleStyles = checked ? "on" : "off";
3048
3119
  const shouldBehaveAsDisabled = disabled || isLoading || isLocked;
3049
3120
  const availabilityStyles = shouldBehaveAsDisabled ? "disabled" : "enabled";
3050
- const mergedClassNames = cx(styles$5[baseClass$b], styles$5[`${baseClass$b}--${size}`], className);
3121
+ const mergedClassNames = cx(styles$6[baseClass$c], styles$6[`${baseClass$c}--${size}`], className);
3051
3122
  const handleChange = (e) => {
3052
3123
  const hasOnChangePassed = onChange !== noop;
3053
3124
  if (hasOnChangePassed) {
@@ -3061,7 +3132,7 @@ const Switch = (_Q) => {
3061
3132
  className: mergedClassNames
3062
3133
  }, /* @__PURE__ */ React.createElement("input", __spreadValues({
3063
3134
  type: "checkbox",
3064
- className: cx(styles$5[`${baseClass$b}__input`], styles$5[`${baseClass$b}__input--${availabilityStyles}`]),
3135
+ className: cx(styles$6[`${baseClass$c}__input`], styles$6[`${baseClass$c}__input--${availabilityStyles}`]),
3065
3136
  onChange: handleChange,
3066
3137
  checked,
3067
3138
  name,
@@ -3069,15 +3140,15 @@ const Switch = (_Q) => {
3069
3140
  disabled: shouldBehaveAsDisabled,
3070
3141
  "aria-label": ariaLabel
3071
3142
  }, props)), /* @__PURE__ */ React.createElement("span", {
3072
- className: styles$5[`${baseClass$b}__container`]
3143
+ className: styles$6[`${baseClass$c}__container`]
3073
3144
  }, /* @__PURE__ */ React.createElement("span", {
3074
- className: cx(styles$5[`${baseClass$b}__track`], styles$5[`${baseClass$b}__track--${toggleStyles}`], styles$5[`${baseClass$b}__track--${availabilityStyles}`])
3145
+ className: cx(styles$6[`${baseClass$c}__track`], styles$6[`${baseClass$c}__track--${toggleStyles}`], styles$6[`${baseClass$c}__track--${availabilityStyles}`])
3075
3146
  }), /* @__PURE__ */ React.createElement("span", {
3076
- className: cx(styles$5[`${baseClass$b}__slider`], styles$5[`${baseClass$b}__slider--${size}`], styles$5[`${baseClass$b}__slider--${size}--${toggleStyles}`])
3147
+ className: cx(styles$6[`${baseClass$c}__slider`], styles$6[`${baseClass$c}__slider--${size}`], styles$6[`${baseClass$c}__slider--${size}--${toggleStyles}`])
3077
3148
  }, isLoading && /* @__PURE__ */ React.createElement(Loader, {
3078
- className: cx(styles$5[`${baseClass$b}__loader`], styles$5[`${baseClass$b}__loader--${size}`])
3149
+ className: cx(styles$6[`${baseClass$c}__loader`], styles$6[`${baseClass$c}__loader--${size}`])
3079
3150
  }), isLocked && /* @__PURE__ */ React.createElement(Icon, {
3080
- className: styles$5[`${baseClass$b}__icon`],
3151
+ className: styles$6[`${baseClass$c}__icon`],
3081
3152
  "data-testid": "lock-icon",
3082
3153
  size: iconSize,
3083
3154
  source: LockBlack,
@@ -3086,12 +3157,12 @@ const Switch = (_Q) => {
3086
3157
  };
3087
3158
  const tab = "lc-Tab-module__tab___fME7u";
3088
3159
  const tab__description = "lc-Tab-module__tab__description___JGXU6";
3089
- var styles$4 = {
3160
+ var styles$5 = {
3090
3161
  tab,
3091
3162
  tab__description,
3092
3163
  "tab--selected": "lc-Tab-module__tab--selected___c0EkL"
3093
3164
  };
3094
- const baseClass$a = "tab";
3165
+ const baseClass$b = "tab";
3095
3166
  const Tab = (_S) => {
3096
3167
  var _T = _S, {
3097
3168
  children,
@@ -3108,26 +3179,26 @@ const Tab = (_S) => {
3108
3179
  as: restProps.href ? "a" : "button",
3109
3180
  size: "md",
3110
3181
  bold: isSelected,
3111
- className: cx(styles$4[baseClass$a], className, isSelected && styles$4[`${baseClass$a}--selected`])
3182
+ className: cx(styles$5[baseClass$b], className, isSelected && styles$5[`${baseClass$b}--selected`])
3112
3183
  }), children, description && /* @__PURE__ */ React.createElement(Text, {
3113
3184
  as: "span",
3114
3185
  size: "md",
3115
- className: styles$4[`${baseClass$a}__description`]
3186
+ className: styles$5[`${baseClass$b}__description`]
3116
3187
  }, "(", description, ")"));
3117
3188
  };
3118
3189
  const tabs = "lc-TabsWrapper-module__tabs___Y2xyD";
3119
3190
  const tabs__list = "lc-TabsWrapper-module__tabs__list___i6tVO";
3120
- var styles$3 = {
3191
+ var styles$4 = {
3121
3192
  tabs,
3122
3193
  tabs__list
3123
3194
  };
3124
- const baseClass$9 = "tabs";
3195
+ const baseClass$a = "tabs";
3125
3196
  const TabsWrapper = ({
3126
3197
  className,
3127
3198
  children
3128
3199
  }) => {
3129
3200
  return /* @__PURE__ */ React.createElement("div", {
3130
- className: cx(styles$3[baseClass$9], className)
3201
+ className: cx(styles$4[baseClass$a], className)
3131
3202
  }, children);
3132
3203
  };
3133
3204
  const TabsList = ({
@@ -3135,7 +3206,7 @@ const TabsList = ({
3135
3206
  children
3136
3207
  }) => {
3137
3208
  return /* @__PURE__ */ React.createElement("div", {
3138
- className: cx(styles$3[`${baseClass$9}__list`], className)
3209
+ className: cx(styles$4[`${baseClass$a}__list`], className)
3139
3210
  }, children);
3140
3211
  };
3141
3212
  const EditableTagContent = ({
@@ -3195,7 +3266,7 @@ const EditableTagContent = ({
3195
3266
  dangerouslySetInnerHTML: { __html: escape(value) }
3196
3267
  });
3197
3268
  };
3198
- var styles$2 = {
3269
+ var styles$3 = {
3199
3270
  "tag-input": "lc-TagInput-module__tag-input___CLVY-",
3200
3271
  "tag-input--error": "lc-TagInput-module__tag-input--error___RP0SB",
3201
3272
  "tag-input__input": "lc-TagInput-module__tag-input__input___dgEYB",
@@ -3203,7 +3274,7 @@ var styles$2 = {
3203
3274
  "tag-input__input--large": "lc-TagInput-module__tag-input__input--large___G6iEO",
3204
3275
  "tag-input__tag__content": "lc-TagInput-module__tag-input__tag__content___x95-M"
3205
3276
  };
3206
- const baseClass$8 = "tag-input__tag";
3277
+ const baseClass$9 = "tag-input__tag";
3207
3278
  const EditableTag = ({
3208
3279
  children,
3209
3280
  index: index2,
@@ -3227,13 +3298,13 @@ const EditableTag = ({
3227
3298
  value: children,
3228
3299
  inputRef,
3229
3300
  innerEditableRef,
3230
- className: styles$2[`${baseClass$8}__content`],
3301
+ className: styles$3[`${baseClass$9}__content`],
3231
3302
  change: (newValue) => update(index2, newValue),
3232
3303
  remove: removeTag,
3233
3304
  validator
3234
3305
  }));
3235
3306
  };
3236
- const baseClass$7 = "tag-input";
3307
+ const baseClass$8 = "tag-input";
3237
3308
  const tagSeparatorKeys = [
3238
3309
  KeyCodes.enter,
3239
3310
  KeyCodes.spacebar,
@@ -3251,10 +3322,10 @@ const TagInput = ({
3251
3322
  placeholder,
3252
3323
  size = "medium"
3253
3324
  }) => {
3254
- const mergedClassNames = cx(styles$2[baseClass$7], {
3255
- [styles$2[`${baseClass$7}--error`]]: error
3325
+ const mergedClassNames = cx(styles$3[baseClass$8], {
3326
+ [styles$3[`${baseClass$8}--error`]]: error
3256
3327
  });
3257
- const inputClassNames = cx(styles$2[`${baseClass$7}__input`], styles$2[`${baseClass$7}__input--${size}`]);
3328
+ const inputClassNames = cx(styles$3[`${baseClass$8}__input`], styles$3[`${baseClass$8}__input--${size}`]);
3258
3329
  const [inputValue, setInputValue] = React.useState("");
3259
3330
  const inputRef = React.useRef(null);
3260
3331
  const addTag = (value) => {
@@ -3344,7 +3415,7 @@ const EmailTagInput = ({
3344
3415
  const toast = "lc-Toast-module__toast___j5Amn";
3345
3416
  const toast__content = "lc-Toast-module__toast__content___HjaNw";
3346
3417
  const toast__actions = "lc-Toast-module__toast__actions___JWu-1";
3347
- var styles$1 = {
3418
+ var styles$2 = {
3348
3419
  toast,
3349
3420
  toast__content,
3350
3421
  toast__actions,
@@ -3380,15 +3451,14 @@ const iconConfig = {
3380
3451
  source: Warning
3381
3452
  },
3382
3453
  error: {
3383
- source: Error2,
3454
+ source: Block,
3384
3455
  kind: "inverted"
3385
3456
  },
3386
3457
  info: {
3387
- source: Info$1,
3388
- kind: "inverted"
3458
+ source: Info$1
3389
3459
  }
3390
3460
  };
3391
- const baseClass$6 = "toast";
3461
+ const baseClass$7 = "toast";
3392
3462
  const Toast = (_U) => {
3393
3463
  var _V = _U, {
3394
3464
  action,
@@ -3405,7 +3475,7 @@ const Toast = (_U) => {
3405
3475
  "kind",
3406
3476
  "onClose"
3407
3477
  ]);
3408
- const mergedClassNames = cx(styles$1[baseClass$6], styles$1[`${baseClass$6}--${kind}`], className);
3478
+ const mergedClassNames = cx(styles$2[baseClass$7], styles$2[`${baseClass$7}--${kind}`], className);
3409
3479
  const onActionClick = (action2) => {
3410
3480
  if (action2 && action2.closesOnClick && onClose) {
3411
3481
  action2.onClick();
@@ -3416,29 +3486,29 @@ const Toast = (_U) => {
3416
3486
  return /* @__PURE__ */ React.createElement("div", __spreadValues({
3417
3487
  className: mergedClassNames
3418
3488
  }, divProps), /* @__PURE__ */ React.createElement("div", {
3419
- className: styles$1[`${baseClass$6}__icon`]
3489
+ className: styles$2[`${baseClass$7}__icon`]
3420
3490
  }, /* @__PURE__ */ React.createElement(Icon, __spreadProps(__spreadValues({}, iconConfig[kind]), {
3421
3491
  size: "medium"
3422
3492
  }))), /* @__PURE__ */ React.createElement("div", {
3423
- className: styles$1[`${baseClass$6}__content`]
3493
+ className: styles$2[`${baseClass$7}__content`]
3424
3494
  }, children), (action || removable) && /* @__PURE__ */ React.createElement("div", {
3425
- className: styles$1[`${baseClass$6}__actions`]
3495
+ className: styles$2[`${baseClass$7}__actions`]
3426
3496
  }, action && /* @__PURE__ */ React.createElement(Button, {
3427
- className: styles$1[`${baseClass$6}__actions--custom`],
3497
+ className: styles$2[`${baseClass$7}__actions--custom`],
3428
3498
  kind: "plain",
3429
3499
  onClick: () => onActionClick(action)
3430
3500
  }, action.label), removable && /* @__PURE__ */ React.createElement("div", {
3431
- className: styles$1[`${baseClass$6}__actions--close`],
3501
+ className: styles$2[`${baseClass$7}__actions--close`],
3432
3502
  "aria-label": "Close toast",
3433
3503
  onClick: onClose
3434
3504
  }, /* @__PURE__ */ React.createElement(Icon, {
3435
3505
  source: Close,
3436
3506
  size: "medium",
3437
- kind: ["warning"].includes(kind) ? "primary" : "inverted"
3507
+ kind: ["warning", "info"].includes(kind) ? "primary" : "inverted"
3438
3508
  }))));
3439
3509
  };
3440
3510
  const ANIMATION_TIME = 200;
3441
- const baseClass$5 = "toast-wrapper";
3511
+ const baseClass$6 = "toast-wrapper";
3442
3512
  const ToastWrapper = ({
3443
3513
  className,
3444
3514
  toasts = [],
@@ -3448,11 +3518,11 @@ const ToastWrapper = ({
3448
3518
  verticalPosition = "top",
3449
3519
  horizontalPosition = "center"
3450
3520
  }) => {
3451
- const mergedClassNames = cx(styles$1[baseClass$5], {
3452
- [styles$1[`${baseClass$5}--fixed`]]: fixed,
3453
- [styles$1[`${baseClass$5}--block`]]: !fixed && block,
3454
- [styles$1[`${baseClass$5}--horizontal-${horizontalPosition}`]]: horizontalPosition,
3455
- [styles$1[`${baseClass$5}--vertical-${verticalPosition}`]]: verticalPosition
3521
+ const mergedClassNames = cx(styles$2[baseClass$6], {
3522
+ [styles$2[`${baseClass$6}--fixed`]]: fixed,
3523
+ [styles$2[`${baseClass$6}--block`]]: !fixed && block,
3524
+ [styles$2[`${baseClass$6}--horizontal-${horizontalPosition}`]]: horizontalPosition,
3525
+ [styles$2[`${baseClass$6}--vertical-${verticalPosition}`]]: verticalPosition
3456
3526
  }, className);
3457
3527
  return /* @__PURE__ */ React.createElement("div", {
3458
3528
  className: mergedClassNames
@@ -3461,10 +3531,10 @@ const ToastWrapper = ({
3461
3531
  }, toasts.map(({ id, kind, content, removable, action, onClose }) => /* @__PURE__ */ React.createElement(CSSTransition, {
3462
3532
  key: id,
3463
3533
  classNames: {
3464
- enter: styles$1[`toast-appear--${animationType}`],
3465
- enterActive: styles$1[`toast-appear-active--${animationType}`],
3466
- exit: styles$1[`toast-exit--${animationType}`],
3467
- exitActive: styles$1[`toast-exit-active--${animationType}`]
3534
+ enter: styles$2[`toast-appear--${animationType}`],
3535
+ enterActive: styles$2[`toast-appear-active--${animationType}`],
3536
+ exit: styles$2[`toast-exit--${animationType}`],
3537
+ exitActive: styles$2[`toast-exit-active--${animationType}`]
3468
3538
  },
3469
3539
  timeout: ANIMATION_TIME
3470
3540
  }, /* @__PURE__ */ React.createElement(Toast, {
@@ -3476,7 +3546,7 @@ const ToastWrapper = ({
3476
3546
  };
3477
3547
  const tooltip = "lc-Tooltip-module__tooltip___QOOAr";
3478
3548
  const tooltip__arrow = "lc-Tooltip-module__tooltip__arrow___Ov1YW";
3479
- var styles = {
3549
+ var styles$1 = {
3480
3550
  tooltip,
3481
3551
  "tooltip--invert": "lc-Tooltip-module__tooltip--invert___PVjhE",
3482
3552
  "tooltip--important": "lc-Tooltip-module__tooltip--important___X-IMK",
@@ -3494,7 +3564,7 @@ var styles = {
3494
3564
  const sleep = (milliseconds) => {
3495
3565
  return new Promise((resolve) => setTimeout(resolve, milliseconds));
3496
3566
  };
3497
- const baseClass$4 = "tooltip";
3567
+ const baseClass$5 = "tooltip";
3498
3568
  const Tooltip = (props) => {
3499
3569
  const {
3500
3570
  triggerRenderer,
@@ -3604,9 +3674,9 @@ const Tooltip = (props) => {
3604
3674
  };
3605
3675
  const top = arrowOffsetY && arrowY ? arrowY + arrowOffsetY : arrowY;
3606
3676
  const left = arrowOffsetX && arrowX ? arrowX + arrowOffsetX : arrowX;
3607
- const mergedClassNames = cx(styles[baseClass$4], className, {
3608
- [styles[`${baseClass$4}--invert`]]: theme === "invert",
3609
- [styles[`${baseClass$4}--important`]]: theme === "important"
3677
+ const mergedClassNames = cx(styles$1[baseClass$5], className, {
3678
+ [styles$1[`${baseClass$5}--invert`]]: theme === "invert",
3679
+ [styles$1[`${baseClass$5}--important`]]: theme === "important"
3610
3680
  });
3611
3681
  const floatingComponent = /* @__PURE__ */ React.createElement("div", {
3612
3682
  ref: floating,
@@ -3628,7 +3698,7 @@ const Tooltip = (props) => {
3628
3698
  return null;
3629
3699
  }), /* @__PURE__ */ React.createElement("div", {
3630
3700
  ref: arrowRef,
3631
- className: cx([styles[`${baseClass$4}__arrow`]]),
3701
+ className: cx([styles$1[`${baseClass$5}__arrow`]]),
3632
3702
  "data-arrow-placement": updatedPlacement,
3633
3703
  style: { top, left }
3634
3704
  }));
@@ -3704,23 +3774,23 @@ function getIconType(theme) {
3704
3774
  return "primary";
3705
3775
  }
3706
3776
  }
3707
- const baseClass$3 = "tooltip";
3777
+ const baseClass$4 = "tooltip";
3708
3778
  const Info = ({ header, text, closeWithX, theme, handleCloseAction }) => {
3709
3779
  return /* @__PURE__ */ React.createElement("div", {
3710
3780
  style: { position: "relative" }
3711
3781
  }, closeWithX && /* @__PURE__ */ React.createElement("div", {
3712
- className: styles[`${baseClass$3}-close`],
3782
+ className: styles$1[`${baseClass$4}-close`],
3713
3783
  onClick: handleCloseAction
3714
3784
  }, /* @__PURE__ */ React.createElement(Icon, {
3715
3785
  source: Close,
3716
3786
  kind: theme ? getIconType(theme) : "primary"
3717
3787
  })), header && /* @__PURE__ */ React.createElement("div", {
3718
- className: styles[`${baseClass$3}-header`]
3788
+ className: styles$1[`${baseClass$4}-header`]
3719
3789
  }, header), /* @__PURE__ */ React.createElement("div", {
3720
- className: styles[`${baseClass$3}-text`]
3790
+ className: styles$1[`${baseClass$4}-text`]
3721
3791
  }, text));
3722
3792
  };
3723
- const baseClass$2 = "tooltip";
3793
+ const baseClass$3 = "tooltip";
3724
3794
  const Interactive = ({
3725
3795
  header,
3726
3796
  text,
@@ -3737,7 +3807,7 @@ const Interactive = ({
3737
3807
  }, /* @__PURE__ */ React.createElement("div", {
3738
3808
  style: { position: "relative", height: "25px", marginBottom: "10px" }
3739
3809
  }, closeWithX && /* @__PURE__ */ React.createElement("div", {
3740
- className: styles[`${baseClass$2}-close`]
3810
+ className: styles$1[`${baseClass$3}-close`]
3741
3811
  }, /* @__PURE__ */ React.createElement("div", {
3742
3812
  onClick: handleCloseAction
3743
3813
  }, /* @__PURE__ */ React.createElement(Icon, {
@@ -3746,13 +3816,13 @@ const Interactive = ({
3746
3816
  })))), image && /* @__PURE__ */ React.createElement("div", {
3747
3817
  style: { margin: "0 4px" }
3748
3818
  }, /* @__PURE__ */ React.createElement("img", {
3749
- className: styles[`${baseClass$2}-image`],
3819
+ className: styles$1[`${baseClass$3}-image`],
3750
3820
  src: image.src,
3751
3821
  alt: image.alt
3752
3822
  })), header && /* @__PURE__ */ React.createElement("div", {
3753
- className: styles[`${baseClass$2}-header`]
3823
+ className: styles$1[`${baseClass$3}-header`]
3754
3824
  }, header), /* @__PURE__ */ React.createElement("div", {
3755
- className: styles[`${baseClass$2}-text`]
3825
+ className: styles$1[`${baseClass$3}-text`]
3756
3826
  }, text), /* @__PURE__ */ React.createElement("div", {
3757
3827
  style: { margin: "4px" }
3758
3828
  }, /* @__PURE__ */ React.createElement(Button, {
@@ -3768,7 +3838,7 @@ const Interactive = ({
3768
3838
  }
3769
3839
  }, "Link")));
3770
3840
  };
3771
- const baseClass$1 = "guide-tooltip";
3841
+ const baseClass$2 = "guide-tooltip";
3772
3842
  const SpotlightOverlay = ({
3773
3843
  gap,
3774
3844
  isVisible,
@@ -3810,37 +3880,37 @@ const SpotlightOverlay = ({
3810
3880
  };
3811
3881
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", {
3812
3882
  className: cx({
3813
- [styles[`${baseClass$1}__overlay`]]: true,
3814
- [styles[`${baseClass$1}__overlay--visible`]]: isVisible,
3815
- [styles[`${baseClass$1}__overlay--slide`]]: slide
3883
+ [styles$1[`${baseClass$2}__overlay`]]: true,
3884
+ [styles$1[`${baseClass$2}__overlay--visible`]]: isVisible,
3885
+ [styles$1[`${baseClass$2}__overlay--slide`]]: slide
3816
3886
  }),
3817
3887
  style: overlayLeft
3818
3888
  }), /* @__PURE__ */ React.createElement("div", {
3819
3889
  className: cx({
3820
- [styles[`${baseClass$1}__overlay`]]: true,
3821
- [styles[`${baseClass$1}__overlay--visible`]]: isVisible,
3822
- [styles[`${baseClass$1}__overlay--slide`]]: slide
3890
+ [styles$1[`${baseClass$2}__overlay`]]: true,
3891
+ [styles$1[`${baseClass$2}__overlay--visible`]]: isVisible,
3892
+ [styles$1[`${baseClass$2}__overlay--slide`]]: slide
3823
3893
  }),
3824
3894
  style: overlayTop
3825
3895
  }), /* @__PURE__ */ React.createElement("div", {
3826
3896
  className: cx({
3827
- [styles[`${baseClass$1}__overlay`]]: true,
3828
- [styles[`${baseClass$1}__overlay--visible`]]: isVisible,
3829
- [styles[`${baseClass$1}__overlay--slide`]]: slide
3897
+ [styles$1[`${baseClass$2}__overlay`]]: true,
3898
+ [styles$1[`${baseClass$2}__overlay--visible`]]: isVisible,
3899
+ [styles$1[`${baseClass$2}__overlay--slide`]]: slide
3830
3900
  }),
3831
3901
  style: overlayRight
3832
3902
  }), /* @__PURE__ */ React.createElement("div", {
3833
3903
  className: cx({
3834
- [styles[`${baseClass$1}__overlay`]]: true,
3835
- [styles[`${baseClass$1}__overlay--visible`]]: isVisible,
3836
- [styles[`${baseClass$1}__overlay--slide`]]: slide
3904
+ [styles$1[`${baseClass$2}__overlay`]]: true,
3905
+ [styles$1[`${baseClass$2}__overlay--visible`]]: isVisible,
3906
+ [styles$1[`${baseClass$2}__overlay--slide`]]: slide
3837
3907
  }),
3838
3908
  style: overlayBottom
3839
3909
  }), disablePointerEvents && /* @__PURE__ */ React.createElement("div", {
3840
3910
  className: cx({
3841
- [styles[`${baseClass$1}__overlay`]]: true,
3842
- [styles[`${baseClass$1}__overlay--visible`]]: isVisible,
3843
- [styles[`${baseClass$1}__overlay--slide`]]: slide
3911
+ [styles$1[`${baseClass$2}__overlay`]]: true,
3912
+ [styles$1[`${baseClass$2}__overlay--visible`]]: isVisible,
3913
+ [styles$1[`${baseClass$2}__overlay--slide`]]: slide
3844
3914
  }),
3845
3915
  style: spotlight
3846
3916
  }));
@@ -3883,7 +3953,7 @@ class VirtualReference {
3883
3953
  }
3884
3954
  }
3885
3955
  const spotlightPadding = 8;
3886
- const baseClass = "guide-tooltip";
3956
+ const baseClass$1 = "guide-tooltip";
3887
3957
  const virtualReference = (element, padding) => new VirtualReference(element, padding);
3888
3958
  const UserGuide = (props) => {
3889
3959
  const {
@@ -3935,10 +4005,35 @@ const UserGuide = (props) => {
3935
4005
  },
3936
4006
  arrowOffsetY: 25,
3937
4007
  className: cx({
3938
- [styles[baseClass]]: true,
3939
- [styles[`${baseClass}--slide`]]: isSliding,
4008
+ [styles$1[baseClass$1]]: true,
4009
+ [styles$1[`${baseClass$1}--slide`]]: isSliding,
3940
4010
  className
3941
4011
  })
3942
4012
  }), props.children)) : null;
3943
4013
  };
3944
- export { ANIMATION_TIME, ActionModal, Alert, Avatar, Badge, Button, Card, Checkbox, DatePicker, DesignToken, EmailTagInput, FieldDescription, FieldError, FieldGroup, Form, FormField, FormGroup, Heading, Icon, Info, Input, Interactive, Link, Loader, Modal, ModalBase, ModalCloseButton, ModalPortal, NumericInput, Picker, Popover, ProgressBar, ProgressCircle, PromoBanner, RadioButton, RangeDatePicker, SearchInput, SegmentedControl, ShadowToken, Simple, SpacingToken, Switch, Tab, TabsList, TabsWrapper, Tag, TagInput, Text, Toast, ToastWrapper, Tooltip, UserGuide };
4014
+ const textarea = "lc-Textarea-module__textarea___g6U8F";
4015
+ var styles = {
4016
+ textarea,
4017
+ "textarea--focused": "lc-Textarea-module__textarea--focused___1vtEx",
4018
+ "textarea--disabled": "lc-Textarea-module__textarea--disabled___xXaGv",
4019
+ "textarea--error": "lc-Textarea-module__textarea--error___0EGuq"
4020
+ };
4021
+ const baseClass = "textarea";
4022
+ const Textarea = React.forwardRef((_W, ref) => {
4023
+ var _X = _W, { className, error } = _X, textareaProps = __objRest(_X, ["className", "error"]);
4024
+ const { disabled } = textareaProps;
4025
+ const [isFocused, setIsFocused] = React.useState(false);
4026
+ const mergedClassNames = cx(className, styles[baseClass], {
4027
+ [styles[`${baseClass}--disabled`]]: disabled,
4028
+ [styles[`${baseClass}--focused`]]: isFocused,
4029
+ [styles[`${baseClass}--error`]]: error
4030
+ });
4031
+ return /* @__PURE__ */ React.createElement("div", {
4032
+ className: mergedClassNames
4033
+ }, /* @__PURE__ */ React.createElement("textarea", __spreadProps(__spreadValues({}, textareaProps), {
4034
+ ref,
4035
+ onFocus: () => setIsFocused(true),
4036
+ onBlur: () => setIsFocused(false)
4037
+ })));
4038
+ });
4039
+ export { ANIMATION_TIME, ActionModal, Alert, Avatar, Badge, Button, Card, Checkbox, DatePicker, DesignToken, EmailTagInput, FieldDescription, FieldError, FieldGroup, Form, FormField, FormGroup, Heading, Icon, Info, Input, Interactive, Link, Loader, Modal, ModalBase, ModalCloseButton, ModalPortal, NumericInput, Picker, Popover, ProgressBar, ProgressCircle, PromoBanner, RadioButton, RangeDatePicker, SearchInput, SegmentedControl, ShadowToken, Simple, SpacingToken, Switch, Tab, TabsList, TabsWrapper, Tag, TagInput, Text, Textarea, Toast, ToastWrapper, Tooltip, UserGuide };