hrm_ui_lib 2.4.13 → 2.4.15

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.
@@ -1,5 +1,5 @@
1
1
  import _extends from '@babel/runtime/helpers/extends';
2
- import React, { useMemo, forwardRef, useState, useCallback, useId, useEffect, useRef } from 'react';
2
+ import React__default, { useMemo, forwardRef, useState, useCallback, useId, useEffect, useRef } from 'react';
3
3
  import { TYPE_MAPPING, ICONS_MAPPING } from './components/Alert/consts.js';
4
4
  import classNames from 'classnames';
5
5
  import { Text } from './components/Text/Text.js';
@@ -20,14 +20,14 @@ import './helpers/format-date.js';
20
20
  import { getTranslationLocale } from './helpers/locale.js';
21
21
  import 'react-toastify';
22
22
  import { useIsMobile } from './hooks/useGetIsMobile.js';
23
- import { motion } from 'framer-motion';
24
- import { AnimatePresenceWrapper } from './helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
23
+ import { A as AnimatePresenceWrapper } from './AnimatePresenceWrapper-B3VV4GfQ.js';
25
24
  import { useOnOutsideClick } from './hooks/useOnOutsideClick.js';
26
25
  import { useHideBodyScroll } from './hooks/useHideBodyScroll.js';
27
26
  import { IconDismiss } from './components/SVGIcons/IconDismiss.js';
28
27
  import { Positions } from './components/Tooltip/types.js';
29
28
  import { Tooltip } from './components/Tooltip/Tooltip.js';
30
29
  import { uniqueFiles, noop } from './utils/helpers.js';
30
+ import { m as motion } from './proxy-CVuPfbZr.js';
31
31
  import 'react-syntax-highlighter';
32
32
  import { Link } from './components/Link/Link.js';
33
33
  import { PopoverDesktop } from './components/Popover/PopoverDesktop.js';
@@ -138,7 +138,7 @@ var ErrorItem = function ErrorItem(_ref) {
138
138
  }
139
139
  return '';
140
140
  }, [code]);
141
- return errorMessage ? /*#__PURE__*/React.createElement(Alert, {
141
+ return errorMessage ? /*#__PURE__*/React__default.createElement(Alert, {
142
142
  type: "error",
143
143
  text: errorMessage,
144
144
  closeIcon: true,
@@ -164,39 +164,39 @@ var PreviewItem = function PreviewItem(_ref) {
164
164
  event.stopPropagation();
165
165
  downloadFile(preview, file.name);
166
166
  };
167
- return /*#__PURE__*/React.createElement("div", {
167
+ return /*#__PURE__*/React__default.createElement("div", {
168
168
  className: classNames('dz-file-upload__files--item', {
169
169
  'dz-file-upload__files--item--view': mode === FileUploadMode.view
170
170
  }),
171
171
  onClick: handleItemClick
172
- }, /*#__PURE__*/React.createElement("div", {
172
+ }, /*#__PURE__*/React__default.createElement("div", {
173
173
  className: 'dz-file-upload__files--item__preview'
174
- }, /*#__PURE__*/React.createElement(FilePreview, {
174
+ }, /*#__PURE__*/React__default.createElement(FilePreview, {
175
175
  preview: preview,
176
176
  type: type
177
- })), /*#__PURE__*/React.createElement("div", {
177
+ })), /*#__PURE__*/React__default.createElement("div", {
178
178
  className: 'dz-file-upload__files--item__info'
179
- }, /*#__PURE__*/React.createElement("div", {
179
+ }, /*#__PURE__*/React__default.createElement("div", {
180
180
  className: "dz-file-upload__files--item__info-title"
181
- }, /*#__PURE__*/React.createElement(Text, {
181
+ }, /*#__PURE__*/React__default.createElement(Text, {
182
182
  weight: "semibold"
183
- }, shortenFileName(file.name, 40)), mode === FileUploadMode.attach && /*#__PURE__*/React.createElement(Button, {
183
+ }, shortenFileName(file.name, 40)), mode === FileUploadMode.attach && /*#__PURE__*/React__default.createElement(Button, {
184
184
  size: "small",
185
185
  type: "tertiary",
186
186
  onClick: onRemove,
187
187
  iconProps: {
188
188
  Component: IconDelete
189
189
  }
190
- }), mode === FileUploadMode.view && /*#__PURE__*/React.createElement(Button, {
190
+ }), mode === FileUploadMode.view && /*#__PURE__*/React__default.createElement(Button, {
191
191
  size: "small",
192
192
  type: "tertiary",
193
193
  onClick: onFileDownload,
194
194
  iconProps: {
195
195
  Component: IconArrowDownloadFilled
196
196
  }
197
- })), /*#__PURE__*/React.createElement("div", {
197
+ })), /*#__PURE__*/React__default.createElement("div", {
198
198
  className: "dz-file-upload__files--item__info-size"
199
- }, /*#__PURE__*/React.createElement(Text, {
199
+ }, /*#__PURE__*/React__default.createElement(Text, {
200
200
  size: "small"
201
201
  }, formatFileSize(file.size)))));
202
202
  };
@@ -278,29 +278,29 @@ var DropzoneFileUpload = /*#__PURE__*/forwardRef(function (_ref2, _ref) {
278
278
  setFieldValue(name, values);
279
279
  }
280
280
  }, [name, setFieldValue]);
281
- return /*#__PURE__*/React.createElement("div", {
281
+ return /*#__PURE__*/React__default.createElement("div", {
282
282
  className: "dz-file-upload"
283
- }, mode !== FileUploadMode.view ? /*#__PURE__*/React.createElement("div", _extends({}, getRootProps(), {
283
+ }, mode !== FileUploadMode.view ? /*#__PURE__*/React__default.createElement("div", _extends({}, getRootProps(), {
284
284
  className: classNames('dz-file-upload__area', {
285
285
  'dz-file-upload__area--focused': isFocused,
286
286
  'dz-file-upload__area--active': isDragActive
287
287
  })
288
- }), /*#__PURE__*/React.createElement(IconUpload, {
288
+ }), /*#__PURE__*/React__default.createElement(IconUpload, {
289
289
  className: "mb-20",
290
290
  size: "xlarge"
291
- }), /*#__PURE__*/React.createElement("input", _extends({}, getInputProps(), {
291
+ }), /*#__PURE__*/React__default.createElement("input", _extends({}, getInputProps(), {
292
292
  name: name
293
- })), /*#__PURE__*/React.createElement(Text, {
293
+ })), /*#__PURE__*/React__default.createElement(Text, {
294
294
  type: "primary",
295
295
  weight: "semibold",
296
296
  className: "mb-6"
297
- }, translation.title), /*#__PURE__*/React.createElement(Text, {
297
+ }, translation.title), /*#__PURE__*/React__default.createElement(Text, {
298
298
  size: "small"
299
- }, "".concat(areaContent.acceptTypesMessage, " ").concat((allowedTypes === null || allowedTypes === void 0 ? void 0 : allowedTypes.length) === 1 ? translation.format : translation.formats, ", ").concat(translation.maxSize.replace('$1', areaContent.maxSizeFormatted)))) : null, /*#__PURE__*/React.createElement("div", {
299
+ }, "".concat(areaContent.acceptTypesMessage, " ").concat((allowedTypes === null || allowedTypes === void 0 ? void 0 : allowedTypes.length) === 1 ? translation.format : translation.formats, ", ").concat(translation.maxSize.replace('$1', areaContent.maxSizeFormatted)))) : null, /*#__PURE__*/React__default.createElement("div", {
300
300
  className: "dz-file-upload__files"
301
301
  }, errors.map(function (_ref3, index) {
302
302
  var code = _ref3.code;
303
- return /*#__PURE__*/React.createElement(ErrorItem, {
303
+ return /*#__PURE__*/React__default.createElement(ErrorItem, {
304
304
  key: index,
305
305
  code: code,
306
306
  areaContent: areaContent,
@@ -310,7 +310,7 @@ var DropzoneFileUpload = /*#__PURE__*/forwardRef(function (_ref2, _ref) {
310
310
  locale: locale
311
311
  });
312
312
  }), initialFiles.map(function (file, index) {
313
- return /*#__PURE__*/React.createElement(PreviewItem, {
313
+ return /*#__PURE__*/React__default.createElement(PreviewItem, {
314
314
  key: index,
315
315
  file: file,
316
316
  onRemove: function onRemove() {
@@ -334,17 +334,17 @@ var ModalContent = function ModalContent(_ref) {
334
334
  confirmBtnTooltipText = _ref.confirmBtnTooltipText,
335
335
  buttonProps = _ref.buttonProps,
336
336
  onSubmit = _ref.onSubmit;
337
- return /*#__PURE__*/React.createElement(React.Fragment, null, title ? /*#__PURE__*/React.createElement("div", {
337
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, title ? /*#__PURE__*/React__default.createElement("div", {
338
338
  className: "modal__header"
339
- }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Text, {
339
+ }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Text, {
340
340
  lineHeight: "large",
341
341
  size: "large",
342
342
  weight: 'bolder',
343
343
  dataId: dataIdPrefix ? "".concat(dataIdPrefix, "-modal-title") : ''
344
- }, title), subtitle ? /*#__PURE__*/React.createElement(Text, {
344
+ }, title), subtitle ? /*#__PURE__*/React__default.createElement(Text, {
345
345
  className: 'mt-12',
346
346
  dataId: dataIdPrefix ? "".concat(dataIdPrefix, "-modal-title") : ''
347
- }, subtitle) : null), closeIcon ? /*#__PURE__*/React.createElement(Button, {
347
+ }, subtitle) : null), closeIcon ? /*#__PURE__*/React__default.createElement(Button, {
348
348
  className: 'modal__close ml-16',
349
349
  dataId: dataIdPrefix ? "".concat(dataIdPrefix, "-modal-close-button") : '',
350
350
  iconProps: {
@@ -352,20 +352,20 @@ var ModalContent = function ModalContent(_ref) {
352
352
  },
353
353
  onClick: onClose,
354
354
  type: "tertiary"
355
- }) : null) : null, /*#__PURE__*/React.createElement("div", {
355
+ }) : null) : null, /*#__PURE__*/React__default.createElement("div", {
356
356
  className: "modal__content scrollbar scrollbar--vertical"
357
- }, children), withFooter && buttonProps ? /*#__PURE__*/React.createElement("div", {
357
+ }, children), withFooter && buttonProps ? /*#__PURE__*/React__default.createElement("div", {
358
358
  className: "modal__footer"
359
- }, buttonProps.cancel && /*#__PURE__*/React.createElement(Button, _extends({
359
+ }, buttonProps.cancel && /*#__PURE__*/React__default.createElement(Button, _extends({
360
360
  type: "tertiary",
361
361
  className: "modal__footer__btn mr-16",
362
362
  onClick: onClose,
363
363
  dataId: dataIdPrefix ? "".concat(dataIdPrefix, "-modal-cancel-button") : ''
364
- }, buttonProps.cancel || {})), confirmBtnTooltipText ? /*#__PURE__*/React.createElement(Tooltip, {
364
+ }, buttonProps.cancel || {})), confirmBtnTooltipText ? /*#__PURE__*/React__default.createElement(Tooltip, {
365
365
  text: confirmBtnTooltipText,
366
366
  id: 'confirm-btn-tooltip',
367
367
  position: Positions.TOP_CENTER
368
- }) : null, /*#__PURE__*/React.createElement(Button, _extends({
368
+ }) : null, /*#__PURE__*/React__default.createElement(Button, _extends({
369
369
  id: 'confirm-btn-tooltip',
370
370
  className: 'modal__footer__btn',
371
371
  type: "primary",
@@ -435,7 +435,7 @@ var Modal = function Modal(props) {
435
435
  setContainerRef = _useState2[1];
436
436
  useOnOutsideClick(containerRef, onClose, closeOnOutsideClick && isOpen, useId());
437
437
  useHideBodyScroll(isOpen);
438
- return /*#__PURE__*/React.createElement(AnimatePresenceWrapper, null, isOpen ? /*#__PURE__*/React.createElement(motion.div, {
438
+ return /*#__PURE__*/React__default.createElement(AnimatePresenceWrapper, null, isOpen ? /*#__PURE__*/React__default.createElement(motion.div, {
439
439
  className: classNames('modal', "modal--".concat(size), className),
440
440
  initial: {
441
441
  opacity: 0
@@ -449,12 +449,12 @@ var Modal = function Modal(props) {
449
449
  transition: {
450
450
  duration: isMobile ? 0 : 0.4
451
451
  }
452
- }, /*#__PURE__*/React.createElement(motion.div, _extends({
452
+ }, /*#__PURE__*/React__default.createElement(motion.div, _extends({
453
453
  className: classNames('modal__container', {
454
454
  modal__container_fullScreen: isMobile && isMobileFullScreen
455
455
  }),
456
456
  ref: setContainerRef
457
- }, isMobile ? MOBILE_ANIMATION(isMobileFullScreen) : DESKTOP_ANIMATION), /*#__PURE__*/React.createElement(ModalContent, _extends({}, rest, {
457
+ }, isMobile ? MOBILE_ANIMATION(isMobileFullScreen) : DESKTOP_ANIMATION), /*#__PURE__*/React__default.createElement(ModalContent, _extends({}, rest, {
458
458
  onClose: onClose
459
459
  })))) : null);
460
460
  };
@@ -468,19 +468,19 @@ var PopoverMobile = function PopoverMobile(props) {
468
468
  _props$clicked = props.clicked,
469
469
  clicked = _props$clicked === void 0 ? false : _props$clicked,
470
470
  children = props.children;
471
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Modal, {
471
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Modal, {
472
472
  closeIcon: true,
473
473
  title: mobileTitle,
474
474
  onClose: hideMessage,
475
475
  isOpen: clicked
476
- }, clicked && /*#__PURE__*/React.createElement(React.Fragment, null, linkAddons ? /*#__PURE__*/React.createElement(Link, {
476
+ }, clicked && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, linkAddons ? /*#__PURE__*/React__default.createElement(Link, {
477
477
  dataId: linkAddons.dataId,
478
478
  url: linkAddons.url,
479
479
  beforeLink: linkAddons.beforeLink,
480
480
  afterLink: linkAddons.afterLink,
481
481
  target: linkAddons.target,
482
482
  className: 'popover__link'
483
- }, text) : /*#__PURE__*/React.createElement(Text, {
483
+ }, text) : /*#__PURE__*/React__default.createElement(Text, {
484
484
  dataId: dataId ? "".concat(dataId, "-popover-text") : '',
485
485
  type: "primary",
486
486
  weight: "regular",
@@ -526,10 +526,10 @@ var Popover = function Popover(props) {
526
526
  setIsClicked(clicked);
527
527
  }
528
528
  }, [clicked]);
529
- return isMobile ? /*#__PURE__*/React.createElement(PopoverMobile, _extends({}, rest, {
529
+ return isMobile ? /*#__PURE__*/React__default.createElement(PopoverMobile, _extends({}, rest, {
530
530
  clicked: isClicked,
531
531
  hideMessage: hideMessage
532
- })) : /*#__PURE__*/React.createElement(PopoverDesktop, _extends({}, rest, {
532
+ })) : /*#__PURE__*/React__default.createElement(PopoverDesktop, _extends({}, rest, {
533
533
  parent: parent,
534
534
  clicked: isClicked,
535
535
  showMessage: showMessage,
@@ -575,11 +575,11 @@ var Checkbox = /*#__PURE__*/forwardRef(function (props, ref) {
575
575
  onClick(!isChecked);
576
576
  }
577
577
  };
578
- var checkboxLabelPopover = popoverAddons ? /*#__PURE__*/React.createElement(Popover, _extends({
578
+ var checkboxLabelPopover = popoverAddons ? /*#__PURE__*/React__default.createElement(Popover, _extends({
579
579
  id: "".concat(popoverAddons.id)
580
- }, popoverAddons), /*#__PURE__*/React.createElement("div", {
580
+ }, popoverAddons), /*#__PURE__*/React__default.createElement("div", {
581
581
  id: "".concat(popoverAddons.id)
582
- }, /*#__PURE__*/React.createElement(IconInfo, {
582
+ }, /*#__PURE__*/React__default.createElement(IconInfo, {
583
583
  dataId: "".concat(dataId, "-icon"),
584
584
  type: "information",
585
585
  size: "xsmall",
@@ -597,31 +597,31 @@ var Checkbox = /*#__PURE__*/forwardRef(function (props, ref) {
597
597
  return label;
598
598
  }
599
599
  if (!link) {
600
- return /*#__PURE__*/React.createElement(Text, {
600
+ return /*#__PURE__*/React__default.createElement(Text, {
601
601
  type: disabled ? 'disabled' : 'primary',
602
602
  className: "controller__label"
603
- }, /*#__PURE__*/React.createElement(React.Fragment, null, label, required && /*#__PURE__*/React.createElement("sup", null, "*")));
603
+ }, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, label, required && /*#__PURE__*/React__default.createElement("sup", null, "*")));
604
604
  }
605
- return /*#__PURE__*/React.createElement(Text, {
605
+ return /*#__PURE__*/React__default.createElement(Text, {
606
606
  type: disabled ? 'disabled' : 'primary',
607
607
  className: "controller__label"
608
- }, /*#__PURE__*/React.createElement(React.Fragment, null, beforeLink && /*#__PURE__*/React.createElement("span", {
608
+ }, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, beforeLink && /*#__PURE__*/React__default.createElement("span", {
609
609
  className: "mr-4"
610
- }, beforeLink), /*#__PURE__*/React.createElement(Link, {
610
+ }, beforeLink), /*#__PURE__*/React__default.createElement(Link, {
611
611
  dataId: dataId,
612
612
  url: link,
613
613
  target: "_blank"
614
- }, label), afterLink && /*#__PURE__*/React.createElement("span", {
614
+ }, label), afterLink && /*#__PURE__*/React__default.createElement("span", {
615
615
  className: "ml-4"
616
- }, afterLink), required && /*#__PURE__*/React.createElement("sup", null, "*")));
616
+ }, afterLink), required && /*#__PURE__*/React__default.createElement("sup", null, "*")));
617
617
  }, [label, link]);
618
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("label", {
618
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("label", {
619
619
  className: classNames('controller', _defineProperty({
620
620
  'controller--checkbox': true,
621
621
  'controller--disabled': disabled,
622
622
  'controller--error': isInvalid
623
623
  }, className, !!className))
624
- }, /*#__PURE__*/React.createElement("input", {
624
+ }, /*#__PURE__*/React__default.createElement("input", {
625
625
  "data-id": dataId,
626
626
  type: "checkbox",
627
627
  ref: inputRef,
@@ -629,18 +629,18 @@ var Checkbox = /*#__PURE__*/forwardRef(function (props, ref) {
629
629
  onChange: changeHandler,
630
630
  checked: Boolean(isChecked),
631
631
  disabled: disabled
632
- }), /*#__PURE__*/React.createElement("span", {
632
+ }), /*#__PURE__*/React__default.createElement("span", {
633
633
  className: "controller__icon"
634
- }, /*#__PURE__*/React.createElement(IconDynamicComponent, {
634
+ }, /*#__PURE__*/React__default.createElement(IconDynamicComponent, {
635
635
  componentName: iconProps.name,
636
636
  size: "xxsmall",
637
637
  type: disabled ? 'disabled' : 'inverse',
638
638
  className: "controller__mark"
639
- })), checkboxLabel ? /*#__PURE__*/React.createElement("div", {
639
+ })), checkboxLabel ? /*#__PURE__*/React__default.createElement("div", {
640
640
  className: "controller__right"
641
- }, /*#__PURE__*/React.createElement("div", {
641
+ }, /*#__PURE__*/React__default.createElement("div", {
642
642
  className: "flexbox"
643
- }, checkboxLabel, checkboxLabelPopover), helperText ? /*#__PURE__*/React.createElement(Text, {
643
+ }, checkboxLabel, checkboxLabelPopover), helperText ? /*#__PURE__*/React__default.createElement(Text, {
644
644
  size: "small",
645
645
  type: disabled ? 'disabled' : 'secondary'
646
646
  }, helperText) : null) : null));
@@ -676,7 +676,7 @@ var Button = function Button(props) {
676
676
  }
677
677
  onClick === null || onClick === void 0 || onClick(e);
678
678
  };
679
- return /*#__PURE__*/React.createElement("button", _extends({
679
+ return /*#__PURE__*/React__default.createElement("button", _extends({
680
680
  ref: refHandler,
681
681
  "data-id": dataId,
682
682
  disabled: disabled,
@@ -686,14 +686,14 @@ var Button = function Button(props) {
686
686
  }, "btn--icon-".concat((iconProps === null || iconProps === void 0 ? void 0 : iconProps.alignment) || 'left'), !isLoading && !justIcon && (iconProps === null || iconProps === void 0 ? void 0 : iconProps.Component)), className),
687
687
  onClick: clickHandler,
688
688
  form: formId
689
- }, rest), isLoading ? /*#__PURE__*/React.createElement(Loader, {
689
+ }, rest), isLoading ? /*#__PURE__*/React__default.createElement(Loader, {
690
690
  size: size,
691
691
  type: LITE_LOADER_TYPES.indexOf(type) === -1 ? 'dark' : 'lite'
692
- }) : /*#__PURE__*/React.createElement(React.Fragment, null, iconProps !== null && iconProps !== void 0 && iconProps.Component ? /*#__PURE__*/React.createElement(iconProps.Component, {
692
+ }) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, iconProps !== null && iconProps !== void 0 && iconProps.Component ? /*#__PURE__*/React__default.createElement(iconProps.Component, {
693
693
  size: ICON_SIZE_MAPPING[iconProps.size || size],
694
694
  type: ICON_TYPE_MAPPING[iconProps.type || type],
695
695
  className: "btn__icon"
696
- }) : null, buttonText || children ? /*#__PURE__*/React.createElement("span", {
696
+ }) : null, buttonText || children ? /*#__PURE__*/React__default.createElement("span", {
697
697
  className: "btn__text"
698
698
  }, buttonText || children) : null));
699
699
  };
@@ -710,37 +710,37 @@ var Alert = function Alert(props) {
710
710
  onClose = props.onClose,
711
711
  _props$className = props.className,
712
712
  className = _props$className === void 0 ? '' : _props$className;
713
- return /*#__PURE__*/React.createElement("div", {
713
+ return /*#__PURE__*/React__default.createElement("div", {
714
714
  className: classNames('alert', "alert--".concat(type, " alert--").concat(position), className)
715
- }, /*#__PURE__*/React.createElement("div", {
715
+ }, /*#__PURE__*/React__default.createElement("div", {
716
716
  className: "alert__content"
717
- }, /*#__PURE__*/React.createElement(IconDynamicComponent, {
717
+ }, /*#__PURE__*/React__default.createElement(IconDynamicComponent, {
718
718
  componentName: ICONS_MAPPING[type],
719
719
  size: "small",
720
720
  type: TYPE_MAPPING[type]
721
- }), /*#__PURE__*/React.createElement("div", {
721
+ }), /*#__PURE__*/React__default.createElement("div", {
722
722
  className: "alert__text pl-8"
723
- }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Text, {
723
+ }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Text, {
724
724
  type: "primary",
725
725
  size: "standard",
726
726
  weight: "regular",
727
727
  lineHeight: "large"
728
- }, text), subtext ? /*#__PURE__*/React.createElement(Text, {
728
+ }, text), subtext ? /*#__PURE__*/React__default.createElement(Text, {
729
729
  className: 'mt-4',
730
730
  type: "secondary",
731
731
  size: "small",
732
732
  weight: "regular",
733
733
  lineHeight: "large"
734
- }, subtext) : null), buttonProps ? /*#__PURE__*/React.createElement("div", {
734
+ }, subtext) : null), buttonProps ? /*#__PURE__*/React__default.createElement("div", {
735
735
  className: "alert__actions"
736
- }, buttonProps.confirm && /*#__PURE__*/React.createElement(Button, _extends({
736
+ }, buttonProps.confirm && /*#__PURE__*/React__default.createElement(Button, _extends({
737
737
  size: "medium",
738
738
  type: "secondary"
739
- }, buttonProps.confirm)), buttonProps.cancel && /*#__PURE__*/React.createElement(Button, _extends({
739
+ }, buttonProps.confirm)), buttonProps.cancel && /*#__PURE__*/React__default.createElement(Button, _extends({
740
740
  size: "medium",
741
741
  type: "tertiary",
742
742
  className: "ml-12"
743
- }, buttonProps.cancel))) : null), closeIcon ? /*#__PURE__*/React.createElement(IconDismissFilled, {
743
+ }, buttonProps.cancel))) : null), closeIcon ? /*#__PURE__*/React__default.createElement(IconDismissFilled, {
744
744
  type: TYPE_MAPPING[type],
745
745
  size: "xsmall",
746
746
  className: "ml-12 pointer",