@livechat/design-system-react-components 1.0.0-alpha.37 → 1.0.0-alpha.39

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, VisibilityOn, VisibilityOff, Error as Error2, Search, LockBlack, Refresh } 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, Search, LockBlack, Refresh, Error as Error2 } 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";
@@ -569,8 +569,6 @@ var styles$B = {
569
569
  "avatar--xxlarge": "lc-Avatar-module__avatar--xxlarge___Ur0ul"
570
570
  };
571
571
  const baseClass$K = "avatar";
572
- const defaultBackgroundColor = "var(--surface-basic-disabled)";
573
- const defaultFontColor = "var(--content-subtle)";
574
572
  const Avatar = ({
575
573
  alt,
576
574
  className,
@@ -589,8 +587,7 @@ const Avatar = ({
589
587
  const shouldDisplayInitials = type === "text";
590
588
  const letterCount = ["xxxsmall", "xxsmall", "xsmall"].includes(size) ? 1 : 2;
591
589
  const initials = getInitials(text, letterCount);
592
- const backgroundColor = color || defaultBackgroundColor;
593
- const fontColor = color ? getFontColor(color) : defaultFontColor;
590
+ const fontColor = color && getFontColor(color);
594
591
  const mergedClassNames = cx({
595
592
  [styles$B[baseClass$K]]: true,
596
593
  [styles$B[`${baseClass$K}--${shape}`]]: true,
@@ -607,7 +604,7 @@ const Avatar = ({
607
604
  }, [isImproperImageSetup]);
608
605
  return /* @__PURE__ */ React.createElement("div", {
609
606
  className: mergedClassNames,
610
- style: { backgroundColor }
607
+ style: { backgroundColor: color }
611
608
  }, withRim && /* @__PURE__ */ React.createElement("div", {
612
609
  "data-testid": `${baseClass$K}__rim`,
613
610
  className: mergedRimClassNames
@@ -624,8 +621,7 @@ const Avatar = ({
624
621
  }, initials), shouldDisplayFallbackAvatar && /* @__PURE__ */ React.createElement(Icon, {
625
622
  "data-testid": `${baseClass$K}__icon`,
626
623
  className: mergedIconClassNames,
627
- source: Person,
628
- kind: "primary"
624
+ source: Person
629
625
  }));
630
626
  };
631
627
  const badge = "lc-Badge-module__badge___GhLnu";
@@ -718,15 +714,13 @@ const btn__icon = "lc-Button-module__btn__icon___GVExB";
718
714
  var styles$y = {
719
715
  btn: btn$1,
720
716
  "btn--disabled": "lc-Button-module__btn--disabled___lXBav",
721
- "btn--icon-only": "lc-Button-module__btn--icon-only___bF5pW",
722
- "btn__icon--left": "lc-Button-module__btn__icon--left___H68zu",
723
- "btn__icon--right": "lc-Button-module__btn__icon--right___fHr3D",
724
717
  "btn--full-width": "lc-Button-module__btn--full-width___kdbAr",
725
718
  "btn--basic": "lc-Button-module__btn--basic___Jc2gD",
726
719
  "btn--primary": "lc-Button-module__btn--primary___ajbjQ",
727
720
  "btn--secondary": "lc-Button-module__btn--secondary___iWzE0",
728
721
  "btn--destructive": "lc-Button-module__btn--destructive___-kLCl",
729
722
  "btn--compact": "lc-Button-module__btn--compact___4eptQ",
723
+ "btn--icon-only": "lc-Button-module__btn--icon-only___bF5pW",
730
724
  "btn--large": "lc-Button-module__btn--large___lb-z6",
731
725
  "btn--text": "lc-Button-module__btn--text___WA8OL",
732
726
  "btn--plain": "lc-Button-module__btn--plain___eOPui",
@@ -734,7 +728,10 @@ var styles$y = {
734
728
  "btn--loading": "lc-Button-module__btn--loading___ZAgjv",
735
729
  btn__loader,
736
730
  btn__content,
737
- btn__icon
731
+ btn__icon,
732
+ "btn__icon--left": "lc-Button-module__btn__icon--left___H68zu",
733
+ "btn__icon--right": "lc-Button-module__btn__icon--right___fHr3D",
734
+ "btn--icon-only--bg": "lc-Button-module__btn--icon-only--bg___X-4V2"
738
735
  };
739
736
  const baseClass$H = "btn";
740
737
  const Button = (_i) => {
@@ -768,11 +765,22 @@ const Button = (_i) => {
768
765
  "onClick"
769
766
  ]);
770
767
  const isDisabled = loading || disabled;
768
+ const isIconOnly = !children && icon2;
769
+ const isTextButton = ["text", "plain", "plain-light"].includes(kind);
771
770
  const Component = href ? "a" : "button";
771
+ const getSpinnerColors = () => {
772
+ if (kind === "primary" || kind === "destructive") {
773
+ return {
774
+ primaryColor: "var(--action-primary-default)",
775
+ secondaryColor: "var(--border-invert-primary)"
776
+ };
777
+ }
778
+ };
772
779
  const mergedClassNames = cx(className, styles$y[baseClass$H], styles$y[`${baseClass$H}--${kind}`], styles$y[`${baseClass$H}--${size}`], {
773
780
  [styles$y[`${baseClass$H}--loading`]]: loading,
774
781
  [styles$y[`${baseClass$H}--full-width`]]: fullWidth,
775
- [styles$y[`${baseClass$H}--icon-only`]]: !children && icon2,
782
+ [styles$y[`${baseClass$H}--icon-only`]]: isIconOnly,
783
+ [styles$y[`${baseClass$H}--icon-only--bg`]]: isIconOnly && isTextButton,
776
784
  [styles$y[`${baseClass$H}--disabled`]]: isDisabled
777
785
  });
778
786
  return /* @__PURE__ */ React.createElement(Component, __spreadValues({
@@ -780,12 +788,13 @@ const Button = (_i) => {
780
788
  "aria-disabled": isDisabled,
781
789
  type,
782
790
  href: isDisabled ? void 0 : href,
783
- onClick: isDisabled ? void 0 : onClick
784
- }, props), loading && /* @__PURE__ */ React.createElement(Loader, {
791
+ onClick: isDisabled ? void 0 : onClick,
792
+ disabled: isDisabled
793
+ }, props), loading && /* @__PURE__ */ React.createElement(Loader, __spreadValues({
785
794
  size: "small",
786
795
  label: loaderLabel,
787
796
  className: styles$y[`${baseClass$H}__loader`]
788
- }), icon2 && React.cloneElement(icon2, {
797
+ }, getSpinnerColors())), icon2 && React.cloneElement(icon2, {
789
798
  className: cx(styles$y[`${baseClass$H}__icon`], styles$y[`${baseClass$H}__icon--${iconPosition}`]),
790
799
  disabled
791
800
  }), /* @__PURE__ */ React.createElement("div", {
@@ -1888,12 +1897,7 @@ var styles$l = {
1888
1897
  "modal__label-heading": "lc-Modal-module__modal__label-heading___WnYcF",
1889
1898
  modal__body,
1890
1899
  "modal__body--full-space": "lc-Modal-module__modal__body--full-space___LsSNE",
1891
- modal__footer,
1892
- "action-modal": "lc-Modal-module__action-modal___CsRC7",
1893
- "action-modal__heading": "lc-Modal-module__action-modal__heading___m3MuG",
1894
- "action-modal__content": "lc-Modal-module__action-modal__content___gf-R2",
1895
- "action-modal__actions": "lc-Modal-module__action-modal__actions___kpRXD",
1896
- "action-modal__icon": "lc-Modal-module__action-modal__icon___MK5xt"
1900
+ modal__footer
1897
1901
  };
1898
1902
  const baseClass$s = "modal-base";
1899
1903
  const ModalBase = (_C) => {
@@ -2405,16 +2409,9 @@ const PickerList = ({
2405
2409
  };
2406
2410
  const picker = "lc-Picker-module__picker___GRj9W";
2407
2411
  const picker__container = "lc-Picker-module__picker__container___s0PUc";
2408
- const picker__label = "lc-Picker-module__picker__label___Ac7Vu";
2409
- const picker__error = "lc-Picker-module__picker__error___H865k";
2410
- const picker__error__icon = "lc-Picker-module__picker__error__icon___bbL7r";
2411
2412
  var styles$h = {
2412
2413
  picker,
2413
- picker__container,
2414
- picker__label,
2415
- "picker__label--disabled": "lc-Picker-module__picker__label--disabled___Opu7s",
2416
- picker__error,
2417
- picker__error__icon
2414
+ picker__container
2418
2415
  };
2419
2416
  const tag = "lc-Tag-module__tag___1QRVY";
2420
2417
  const tag__remove = "lc-Tag-module__tag__remove___UmtrW";
@@ -2428,9 +2425,11 @@ var styles$g = {
2428
2425
  "tag--error": "lc-Tag-module__tag--error___1cjsm",
2429
2426
  "tag--warning": "lc-Tag-module__tag--warning___PstMG",
2430
2427
  "tag--info": "lc-Tag-module__tag--info___RTH0C",
2428
+ "tag--purple": "lc-Tag-module__tag--purple___a0xaE",
2429
+ "tag--black": "lc-Tag-module__tag--black___qWjfD",
2430
+ "tag--outline": "lc-Tag-module__tag--outline___aZXtr",
2431
2431
  "tag--medium": "lc-Tag-module__tag--medium___l5-KI",
2432
2432
  "tag--large": "lc-Tag-module__tag--large___ytC6Y",
2433
- "tag--outline": "lc-Tag-module__tag--outline___aZXtr",
2434
2433
  icon,
2435
2434
  "tag--text-white": "lc-Tag-module__tag--text-white___x0fnD",
2436
2435
  "tag--text-black": "lc-Tag-module__tag--text-black___dUvmD",
@@ -2586,23 +2585,38 @@ const TriggerBody = ({
2586
2585
  }), shouldDisplaySearch && getSearch());
2587
2586
  };
2588
2587
  const baseClass$l = "picker";
2589
- const Picker = ({
2590
- className,
2591
- disabled,
2592
- error,
2593
- label,
2594
- options,
2595
- selected,
2596
- size = "medium",
2597
- tagIconSize = "medium",
2598
- placeholder = "Select option",
2599
- isRequired,
2600
- noSearchResultText = "No results found",
2601
- selectAllOptionText,
2602
- type = "single",
2603
- searchDisabled = false,
2604
- onSelect
2605
- }) => {
2588
+ const Picker = (_K) => {
2589
+ var _L = _K, {
2590
+ className,
2591
+ disabled,
2592
+ error,
2593
+ options,
2594
+ selected,
2595
+ size = "medium",
2596
+ tagIconSize = "medium",
2597
+ placeholder = "Select option",
2598
+ isRequired,
2599
+ noSearchResultText = "No results found",
2600
+ selectAllOptionText,
2601
+ type = "single",
2602
+ searchDisabled = false,
2603
+ onSelect
2604
+ } = _L, props = __objRest(_L, [
2605
+ "className",
2606
+ "disabled",
2607
+ "error",
2608
+ "options",
2609
+ "selected",
2610
+ "size",
2611
+ "tagIconSize",
2612
+ "placeholder",
2613
+ "isRequired",
2614
+ "noSearchResultText",
2615
+ "selectAllOptionText",
2616
+ "type",
2617
+ "searchDisabled",
2618
+ "onSelect"
2619
+ ]);
2606
2620
  const [isListOpen, setIsListOpen] = React.useState(false);
2607
2621
  const [searchPhrase, setSearchPhrase] = React.useState(null);
2608
2622
  const triggerRef = React.useRef(null);
@@ -2694,18 +2708,14 @@ const Picker = ({
2694
2708
  }
2695
2709
  return selected.map((item) => item.key);
2696
2710
  }, [selected]);
2697
- return /* @__PURE__ */ React.createElement("div", {
2711
+ return /* @__PURE__ */ React.createElement("div", __spreadValues({
2698
2712
  ref: triggerRef,
2699
2713
  className: mergedClassNames
2700
- }, label && /* @__PURE__ */ React.createElement("div", {
2701
- className: cx(styles$h[`${baseClass$l}__label`], {
2702
- [styles$h[`${baseClass$l}__label--disabled`]]: disabled
2703
- })
2704
- }, label), /* @__PURE__ */ React.createElement("div", {
2714
+ }, props), /* @__PURE__ */ React.createElement("div", {
2705
2715
  className: styles$h[`${baseClass$l}__container`]
2706
2716
  }, /* @__PURE__ */ React.createElement(Trigger, {
2707
2717
  isSearchDisabled: searchDisabled,
2708
- isError: !!error,
2718
+ isError: error,
2709
2719
  isOpen: isListOpen,
2710
2720
  isDisabled: disabled,
2711
2721
  isItemSelected: !!selected,
@@ -2734,14 +2744,7 @@ const Picker = ({
2734
2744
  onClose: handleOnClose,
2735
2745
  onSelect: handleSelect,
2736
2746
  onSelectAll: handleSelectAll
2737
- })), error && /* @__PURE__ */ React.createElement("div", {
2738
- className: styles$h[`${baseClass$l}__error`]
2739
- }, /* @__PURE__ */ React.createElement(Icon, {
2740
- className: styles$h[`${baseClass$l}__error__icon`],
2741
- source: Error2,
2742
- kind: "error",
2743
- size: "small"
2744
- }), error));
2747
+ })));
2745
2748
  };
2746
2749
  const popover = "lc-Popover-module__popover___8X1b2";
2747
2750
  var cssStyles = {
@@ -2871,13 +2874,13 @@ const SIZE_VALUE_FROM_SIZE = {
2871
2874
  large: 56
2872
2875
  };
2873
2876
  const baseClass$k = "progress-circle";
2874
- const ProgressCircle = React.forwardRef((_K, ref) => {
2875
- var _L = _K, {
2877
+ const ProgressCircle = React.forwardRef((_M, ref) => {
2878
+ var _N = _M, {
2876
2879
  status = "normal",
2877
2880
  progressValue,
2878
2881
  className,
2879
2882
  size = "medium"
2880
- } = _L, restProps = __objRest(_L, [
2883
+ } = _N, restProps = __objRest(_N, [
2881
2884
  "status",
2882
2885
  "progressValue",
2883
2886
  "className",
@@ -2932,13 +2935,13 @@ var styles$d = {
2932
2935
  "progress-bar__indicator--normal": "lc-ProgressBar-module__progress-bar__indicator--normal___0Uhle"
2933
2936
  };
2934
2937
  const baseClass$j = "progress-bar";
2935
- const ProgressBar = React.forwardRef((_M, ref) => {
2936
- var _N = _M, {
2938
+ const ProgressBar = React.forwardRef((_O, ref) => {
2939
+ var _P = _O, {
2937
2940
  status = "normal",
2938
2941
  percent,
2939
2942
  size = "medium",
2940
2943
  className = ""
2941
- } = _N, restProps = __objRest(_N, [
2944
+ } = _P, restProps = __objRest(_P, [
2942
2945
  "status",
2943
2946
  "percent",
2944
2947
  "size",
@@ -3043,13 +3046,14 @@ const PromoBanner = ({
3043
3046
  onClick: onClose
3044
3047
  }, /* @__PURE__ */ React.createElement(Icon, {
3045
3048
  source: Close,
3046
- size: "large"
3049
+ size: "large",
3050
+ kind: "primary"
3047
3051
  })));
3048
3052
  };
3049
3053
  var styles$b = {
3050
3054
  "radio-button": "lc-RadioButton-module__radio-button___WaToM",
3051
- "radio-button__label": "lc-RadioButton-module__radio-button__label___i7ygg",
3052
3055
  "radio-button__circle": "lc-RadioButton-module__radio-button__circle___wimWA",
3056
+ "radio-button__label": "lc-RadioButton-module__radio-button__label___i7ygg",
3053
3057
  "radio-button__inner-circle": "lc-RadioButton-module__radio-button__inner-circle___qkRVf",
3054
3058
  "radio-button__text": "lc-RadioButton-module__radio-button__text___mT8c0",
3055
3059
  "radio-button__input": "lc-RadioButton-module__radio-button__input___7OTAK",
@@ -3058,8 +3062,8 @@ var styles$b = {
3058
3062
  "radio-button--disabled": "lc-RadioButton-module__radio-button--disabled___wHSA7"
3059
3063
  };
3060
3064
  const baseClass$h = "radio-button";
3061
- const RadioButton = React.forwardRef((_O, ref) => {
3062
- var _P = _O, { children, className = "", description, checked, disabled } = _P, props = __objRest(_P, ["children", "className", "description", "checked", "disabled"]);
3065
+ const RadioButton = React.forwardRef((_Q, ref) => {
3066
+ var _R = _Q, { children, className = "", description, checked, disabled } = _R, props = __objRest(_R, ["children", "className", "description", "checked", "disabled"]);
3063
3067
  const mergedClassNames = cx(styles$b[baseClass$h], className, {
3064
3068
  [styles$b[`${baseClass$h}--selected`]]: checked,
3065
3069
  [styles$b[`${baseClass$h}--disabled`]]: disabled
@@ -3225,8 +3229,8 @@ var styles$9 = {
3225
3229
  switch__icon
3226
3230
  };
3227
3231
  const baseClass$f = "switch";
3228
- const Switch = (_Q) => {
3229
- var _R = _Q, {
3232
+ const Switch = (_S) => {
3233
+ var _T = _S, {
3230
3234
  className = "",
3231
3235
  defaultOn = false,
3232
3236
  disabled = false,
@@ -3237,7 +3241,7 @@ const Switch = (_Q) => {
3237
3241
  state = "regular",
3238
3242
  innerRef,
3239
3243
  ariaLabel
3240
- } = _R, props = __objRest(_R, [
3244
+ } = _T, props = __objRest(_T, [
3241
3245
  "className",
3242
3246
  "defaultOn",
3243
3247
  "disabled",
@@ -3312,15 +3316,15 @@ var styles$8 = {
3312
3316
  "tab--disabled": "lc-Tab-module__tab--disabled___URdTh"
3313
3317
  };
3314
3318
  const baseClass$e = "tab";
3315
- const Tab = (_S) => {
3316
- var _T = _S, {
3319
+ const Tab = (_U) => {
3320
+ var _V = _U, {
3317
3321
  children,
3318
3322
  className,
3319
3323
  count,
3320
3324
  isSelected,
3321
3325
  asBadge,
3322
3326
  size = "medium"
3323
- } = _T, restProps = __objRest(_T, [
3327
+ } = _V, restProps = __objRest(_V, [
3324
3328
  "children",
3325
3329
  "className",
3326
3330
  "count",
@@ -3576,11 +3580,12 @@ const EmailTagInput = ({
3576
3580
  const toast = "lc-Toast-module__toast___j5Amn";
3577
3581
  const toast__content = "lc-Toast-module__toast__content___HjaNw";
3578
3582
  const toast__actions = "lc-Toast-module__toast__actions___JWu-1";
3583
+ const toast__actions__close = "lc-Toast-module__toast__actions__close___CRPrb";
3579
3584
  var styles$5 = {
3580
3585
  toast,
3581
3586
  toast__content,
3582
3587
  toast__actions,
3583
- "toast__actions--close": "lc-Toast-module__toast__actions--close___QuXHY",
3588
+ toast__actions__close,
3584
3589
  "toast__actions--custom": "lc-Toast-module__toast__actions--custom___lm-pM",
3585
3590
  "toast--success": "lc-Toast-module__toast--success___7UC6m",
3586
3591
  "toast--warning": "lc-Toast-module__toast--warning___pteb7",
@@ -3605,30 +3610,28 @@ var styles$5 = {
3605
3610
  };
3606
3611
  const iconConfig = {
3607
3612
  success: {
3608
- source: CheckCircleSolid,
3609
- kind: "inverted"
3613
+ source: CheckCircleSolid
3610
3614
  },
3611
3615
  warning: {
3612
3616
  source: Warning
3613
3617
  },
3614
3618
  error: {
3615
- source: Block,
3616
- kind: "inverted"
3619
+ source: Block
3617
3620
  },
3618
3621
  info: {
3619
3622
  source: Info$1
3620
3623
  }
3621
3624
  };
3622
3625
  const baseClass$a = "toast";
3623
- const Toast = (_U) => {
3624
- var _V = _U, {
3626
+ const Toast = (_W) => {
3627
+ var _X = _W, {
3625
3628
  action,
3626
3629
  className,
3627
3630
  children,
3628
3631
  removable,
3629
3632
  kind = "info",
3630
3633
  onClose
3631
- } = _V, divProps = __objRest(_V, [
3634
+ } = _X, divProps = __objRest(_X, [
3632
3635
  "action",
3633
3636
  "className",
3634
3637
  "children",
@@ -3659,13 +3662,13 @@ const Toast = (_U) => {
3659
3662
  kind: "plain",
3660
3663
  onClick: () => onActionClick(action)
3661
3664
  }, action.label), removable && /* @__PURE__ */ React.createElement("div", {
3662
- className: styles$5[`${baseClass$a}__actions--close`],
3665
+ className: styles$5[`${baseClass$a}__actions`],
3663
3666
  "aria-label": "Close toast",
3664
3667
  onClick: onClose
3665
3668
  }, /* @__PURE__ */ React.createElement(Icon, {
3669
+ className: styles$5[`${baseClass$a}__actions__close`],
3666
3670
  source: Close,
3667
- size: "medium",
3668
- kind: ["warning", "info"].includes(kind) ? "primary" : "inverted"
3671
+ size: "medium"
3669
3672
  }))));
3670
3673
  };
3671
3674
  const ANIMATION_TIME = 200;
@@ -4180,8 +4183,8 @@ var styles$3 = {
4180
4183
  "textarea--error": "lc-Textarea-module__textarea--error___0EGuq"
4181
4184
  };
4182
4185
  const baseClass$3 = "textarea";
4183
- const Textarea = React.forwardRef((_W, ref) => {
4184
- var _X = _W, { className, error } = _X, textareaProps = __objRest(_X, ["className", "error"]);
4186
+ const Textarea = React.forwardRef((_Y, ref) => {
4187
+ var _Z = _Y, { className, error } = _Z, textareaProps = __objRest(_Z, ["className", "error"]);
4185
4188
  const { disabled } = textareaProps;
4186
4189
  const [isFocused, setIsFocused] = React.useState(false);
4187
4190
  const mergedClassNames = cx(className, styles$3[baseClass$3], {
@@ -4200,6 +4203,7 @@ const Textarea = React.forwardRef((_W, ref) => {
4200
4203
  var styles$2 = {
4201
4204
  "file-upload-progress": "lc-FileUploadProgress-module__file-upload-progress___xw8h8",
4202
4205
  "file-upload-progress__icon": "lc-FileUploadProgress-module__file-upload-progress__icon___p8Rfz",
4206
+ "file-upload-progress__icon--success": "lc-FileUploadProgress-module__file-upload-progress__icon--success___X40uH",
4203
4207
  "file-upload-progress__wrapper": "lc-FileUploadProgress-module__file-upload-progress__wrapper___01Nkq",
4204
4208
  "file-upload-progress__wrapper--with-icon": "lc-FileUploadProgress-module__file-upload-progress__wrapper--with-icon___GSXmA",
4205
4209
  "file-upload-progress__wrapper__header": "lc-FileUploadProgress-module__file-upload-progress__wrapper__header___mYBGK",
@@ -4252,10 +4256,9 @@ const FileUploadProgress = React.forwardRef(({
4252
4256
  }, icon2 && status !== "success" && /* @__PURE__ */ React.createElement("div", {
4253
4257
  className: styles$2[`${baseClass$1}__icon`]
4254
4258
  }, icon2), status === "success" && /* @__PURE__ */ React.createElement("div", {
4255
- className: styles$2[`${baseClass$1}__icon`]
4259
+ className: cx(styles$2[`${baseClass$1}__icon`], styles$2[`${baseClass$1}__icon--success`])
4256
4260
  }, /* @__PURE__ */ React.createElement(Icon, {
4257
- source: Check,
4258
- kind: "success"
4261
+ source: Check
4259
4262
  })), /* @__PURE__ */ React.createElement("div", {
4260
4263
  className: cx(styles$2[`${baseClass$1}__wrapper`], {
4261
4264
  [styles$2[`${baseClass$1}__wrapper--with-icon`]]: icon2
@@ -4291,6 +4294,8 @@ var styles = {
4291
4294
  "upload-bar__wrapper__header__title": "lc-UploadBar-module__upload-bar__wrapper__header__title___BNuDu",
4292
4295
  "upload-bar__wrapper__header__collapse-button": "lc-UploadBar-module__upload-bar__wrapper__header__collapse-button___3khMy",
4293
4296
  "upload-bar__wrapper__header__actions-container": "lc-UploadBar-module__upload-bar__wrapper__header__actions-container___5Pj4y",
4297
+ "upload-bar__wrapper__header__success-icon": "lc-UploadBar-module__upload-bar__wrapper__header__success-icon___ZLCdw",
4298
+ "upload-bar__wrapper__header__error-icon": "lc-UploadBar-module__upload-bar__wrapper__header__error-icon___q-sZo",
4294
4299
  "upload-bar__files": "lc-UploadBar-module__upload-bar__files___3W4nx",
4295
4300
  "upload-bar__files--enter": "lc-UploadBar-module__upload-bar__files--enter___zGq19",
4296
4301
  "upload-bar__files--enter-active": "lc-UploadBar-module__upload-bar__files--enter-active___-dMVb",
@@ -4308,16 +4313,14 @@ const getHeaderIcon = (status, progressValue) => {
4308
4313
  return /* @__PURE__ */ React.createElement("div", {
4309
4314
  className: styles[`${wrapperHeaderClass}__success-icon`]
4310
4315
  }, /* @__PURE__ */ React.createElement(Icon, {
4311
- source: Check,
4312
- kind: "success"
4316
+ source: Check
4313
4317
  }));
4314
4318
  }
4315
4319
  if (status === "error") {
4316
4320
  return /* @__PURE__ */ React.createElement("div", {
4317
4321
  className: styles[`${wrapperHeaderClass}__error-icon`]
4318
4322
  }, /* @__PURE__ */ React.createElement(Icon, {
4319
- source: Error2,
4320
- kind: "error"
4323
+ source: Error2
4321
4324
  }));
4322
4325
  }
4323
4326
  return /* @__PURE__ */ React.createElement(ProgressCircle, {