@cloudtower/eagle 0.26.23 → 0.26.24

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/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Alert as Alert$1, Badge as Badge$1, Button as Button$1, Tooltip as Tooltip$1, Checkbox as Checkbox$1, Card as Card$1, Collapse, DatePicker, Select as Select$1, InputNumber as InputNumber$1, Input as Input$1, TimePicker as TimePicker$1, Form as Form$1, Modal as Modal$1, Steps as Steps$1, Dropdown, Menu, Progress as Progress$1, Radio as Radio$1, Tag as Tag$1, Switch as Switch$1, Table as Table$1, Space, List, Row, Col, Tree, Divider, Skeleton, Layout, AutoComplete, Popover, Timeline, Typography, Cascader, Upload, Calendar, Tabs, message, Empty as Empty$1, TreeSelect, Drawer, ConfigProvider } from 'antd';
1
+ import { Alert as Alert$1, Badge as Badge$1, Button as Button$1, Tooltip as Tooltip$1, Checkbox as Checkbox$1, Card as Card$1, Collapse, DatePicker, Select as Select$1, InputNumber as InputNumber$1, Input as Input$1, TimePicker as TimePicker$1, Form as Form$1, Steps as Steps$1, Modal as Modal$1, Dropdown, Menu, Progress as Progress$1, Radio as Radio$1, Tag as Tag$1, Switch as Switch$1, Table as Table$1, Space, List, Row, Col, Tree, Divider, Skeleton, Layout, AutoComplete, Popover, Timeline, Typography, Cascader, Upload, Calendar, Tabs, message, Empty as Empty$1, TreeSelect, Drawer, ConfigProvider } from 'antd';
2
2
  export { Col, Row } from 'antd';
3
3
  import * as React from 'react';
4
4
  import React__default, { useState, useMemo, useRef, useCallback, useEffect, forwardRef, Fragment, useLayoutEffect, createContext, memo, useImperativeHandle, useContext } from 'react';
@@ -10,11 +10,11 @@ export * from '@cloudtower/parrot';
10
10
  import { useTranslation, withTranslation } from 'react-i18next';
11
11
  import { cx } from '@linaria/core';
12
12
  import { styled } from '@linaria/react';
13
- import { ArrowRightGrayIcon, ArrowChevronUp16SecondaryIcon, ArrowChevronDown16SecondaryIcon, Loading8GradientBlueIcon, CheckmarkDoneSuccessCorrect16SecondaryIcon, PlusAddCreateNew16SecondaryIcon, HandlePoint816SecondaryIcon, HandlePoint816BlueIcon, XmarkRemove16SecondaryIcon, XmarkRemove16RegularRedIcon, CheckmarkDoneSuccessCorrect16BlueIcon, XmarkRemoveSmall16RegularInheritIcon } from '@cloudtower/icons-react';
13
+ import { ArrowRightGrayIcon, ArrowChevronUp16SecondaryIcon, ArrowChevronDown16SecondaryIcon, CheckmarkDoneSuccessCorrect16SecondaryIcon, Loading8GradientBlueIcon, PlusAddCreateNew16SecondaryIcon, HandlePoint816SecondaryIcon, HandlePoint816BlueIcon, XmarkRemove16SecondaryIcon, XmarkRemove16RegularRedIcon, CheckmarkDoneSuccessCorrect16BlueIcon, XmarkRemoveSmall16RegularInheritIcon } from '@cloudtower/icons-react';
14
14
  import moment from 'moment';
15
15
  import { findDOMNode } from 'react-dom';
16
16
  import { isElement } from 'react-is';
17
- import { CloseCircleFilled, CheckOutlined, SearchOutlined, EyeOutlined, EyeInvisibleOutlined } from '@ant-design/icons';
17
+ import { CloseCircleFilled, SearchOutlined, EyeOutlined, EyeInvisibleOutlined } from '@ant-design/icons';
18
18
  import CheckCircleFilled from '@ant-design/icons/CheckCircleFilled';
19
19
  import CloseCircleFilled$1 from '@ant-design/icons/CloseCircleFilled';
20
20
  import ExclamationCircleFilled from '@ant-design/icons/ExclamationCircleFilled';
@@ -252,30 +252,30 @@ function getAlertIcon(type) {
252
252
  }
253
253
  }
254
254
 
255
- var __defProp$T = Object.defineProperty;
256
- var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
257
- var __hasOwnProp$U = Object.prototype.hasOwnProperty;
258
- var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
259
- var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
260
- var __spreadValues$T = (a, b) => {
255
+ var __defProp$U = Object.defineProperty;
256
+ var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
257
+ var __hasOwnProp$V = Object.prototype.hasOwnProperty;
258
+ var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
259
+ var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
260
+ var __spreadValues$U = (a, b) => {
261
261
  for (var prop in b || (b = {}))
262
- if (__hasOwnProp$U.call(b, prop))
263
- __defNormalProp$T(a, prop, b[prop]);
264
- if (__getOwnPropSymbols$U)
265
- for (var prop of __getOwnPropSymbols$U(b)) {
266
- if (__propIsEnum$U.call(b, prop))
267
- __defNormalProp$T(a, prop, b[prop]);
262
+ if (__hasOwnProp$V.call(b, prop))
263
+ __defNormalProp$U(a, prop, b[prop]);
264
+ if (__getOwnPropSymbols$V)
265
+ for (var prop of __getOwnPropSymbols$V(b)) {
266
+ if (__propIsEnum$V.call(b, prop))
267
+ __defNormalProp$U(a, prop, b[prop]);
268
268
  }
269
269
  return a;
270
270
  };
271
- var __objRest$x = (source, exclude) => {
271
+ var __objRest$y = (source, exclude) => {
272
272
  var target = {};
273
273
  for (var prop in source)
274
- if (__hasOwnProp$U.call(source, prop) && exclude.indexOf(prop) < 0)
274
+ if (__hasOwnProp$V.call(source, prop) && exclude.indexOf(prop) < 0)
275
275
  target[prop] = source[prop];
276
- if (source != null && __getOwnPropSymbols$U)
277
- for (var prop of __getOwnPropSymbols$U(source)) {
278
- if (exclude.indexOf(prop) < 0 && __propIsEnum$U.call(source, prop))
276
+ if (source != null && __getOwnPropSymbols$V)
277
+ for (var prop of __getOwnPropSymbols$V(source)) {
278
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$V.call(source, prop))
279
279
  target[prop] = source[prop];
280
280
  }
281
281
  return target;
@@ -293,7 +293,7 @@ const BaseIcon = React__default.forwardRef(
293
293
  prefixNode,
294
294
  suffixIconSrc: SuffixSrc,
295
295
  src: Src
296
- } = _a, HTMLSpanElementProps = __objRest$x(_a, [
296
+ } = _a, HTMLSpanElementProps = __objRest$y(_a, [
297
297
  "alt",
298
298
  "className",
299
299
  "width",
@@ -307,10 +307,10 @@ const BaseIcon = React__default.forwardRef(
307
307
  ]);
308
308
  return /* @__PURE__ */ React__default.createElement(
309
309
  "span",
310
- __spreadValues$T({
310
+ __spreadValues$U({
311
311
  ref,
312
312
  className,
313
- style: _.pickBy(__spreadValues$T({ cursor }, style))
313
+ style: _.pickBy(__spreadValues$U({ cursor }, style))
314
314
  }, HTMLSpanElementProps),
315
315
  prefixNode,
316
316
  /* @__PURE__ */ React__default.createElement("span", { className: "icon-inner" }, typeof Src === "string" ? /* @__PURE__ */ React__default.createElement("img", { alt, src: Src, width, height }) : /* @__PURE__ */ React__default.createElement(SVGUniqueID, null, Src({ width, height }))),
@@ -320,31 +320,31 @@ const BaseIcon = React__default.forwardRef(
320
320
  }
321
321
  );
322
322
 
323
- var __defProp$S = Object.defineProperty;
323
+ var __defProp$T = Object.defineProperty;
324
324
  var __defProps$C = Object.defineProperties;
325
325
  var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
326
- var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
327
- var __hasOwnProp$T = Object.prototype.hasOwnProperty;
328
- var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
329
- var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, {
326
+ var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
327
+ var __hasOwnProp$U = Object.prototype.hasOwnProperty;
328
+ var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
329
+ var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, {
330
330
  enumerable: true,
331
331
  configurable: true,
332
332
  writable: true,
333
333
  value
334
334
  }) : obj[key] = value;
335
- var __spreadValues$S = (a, b) => {
336
- for (var prop in b || (b = {})) if (__hasOwnProp$T.call(b, prop)) __defNormalProp$S(a, prop, b[prop]);
337
- if (__getOwnPropSymbols$T) for (var prop of __getOwnPropSymbols$T(b)) {
338
- if (__propIsEnum$T.call(b, prop)) __defNormalProp$S(a, prop, b[prop]);
335
+ var __spreadValues$T = (a, b) => {
336
+ for (var prop in b || (b = {})) if (__hasOwnProp$U.call(b, prop)) __defNormalProp$T(a, prop, b[prop]);
337
+ if (__getOwnPropSymbols$U) for (var prop of __getOwnPropSymbols$U(b)) {
338
+ if (__propIsEnum$U.call(b, prop)) __defNormalProp$T(a, prop, b[prop]);
339
339
  }
340
340
  return a;
341
341
  };
342
342
  var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
343
- var __objRest$w = (source, exclude) => {
343
+ var __objRest$x = (source, exclude) => {
344
344
  var target = {};
345
- for (var prop in source) if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
346
- if (source != null && __getOwnPropSymbols$T) for (var prop of __getOwnPropSymbols$T(source)) {
347
- if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop)) target[prop] = source[prop];
345
+ for (var prop in source) if (__hasOwnProp$U.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
346
+ if (source != null && __getOwnPropSymbols$U) for (var prop of __getOwnPropSymbols$U(source)) {
347
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$U.call(source, prop)) target[prop] = source[prop];
348
348
  }
349
349
  return target;
350
350
  };
@@ -368,7 +368,7 @@ const Icon = React__default.forwardRef((props, ref) => {
368
368
  prefix,
369
369
  suffix
370
370
  } = _a,
371
- restProps = __objRest$w(_a, ["src", "hoverSrc", "active", "activeSrc", "onMouseEnter", "onMouseLeave", "onMouseMove", "className", "iconWidth", "iconHeight", "cursor", "style", "isRotate", "prefix", "suffix"]);
371
+ restProps = __objRest$x(_a, ["src", "hoverSrc", "active", "activeSrc", "onMouseEnter", "onMouseLeave", "onMouseMove", "className", "iconWidth", "iconHeight", "cursor", "style", "isRotate", "prefix", "suffix"]);
372
372
  const [hover, setHover] = useState(false);
373
373
  const _src = useMemo(() => {
374
374
  if (active && activeSrc) {
@@ -396,14 +396,14 @@ const Icon = React__default.forwardRef((props, ref) => {
396
396
  }
397
397
  return src2;
398
398
  }, [active, hover, suffix]);
399
- return /* @__PURE__ */React__default.createElement(BaseIcon, __spreadProps$C(__spreadValues$S({
399
+ return /* @__PURE__ */React__default.createElement(BaseIcon, __spreadProps$C(__spreadValues$T({
400
400
  src: _src,
401
401
  className: cs(IconWrapper, "icon-wrapper", className, isRotate && "is-rotate"),
402
402
  suffixIconSrc,
403
403
  height: iconHeight,
404
404
  width: iconWidth,
405
405
  prefixNode: prefix,
406
- style: _.pickBy(__spreadValues$S({
406
+ style: _.pickBy(__spreadValues$T({
407
407
  cursor
408
408
  }, style))
409
409
  }, restProps), {
@@ -428,31 +428,31 @@ const Icon = React__default.forwardRef((props, ref) => {
428
428
  }));
429
429
  });
430
430
 
431
- var __defProp$R = Object.defineProperty;
431
+ var __defProp$S = Object.defineProperty;
432
432
  var __defProps$B = Object.defineProperties;
433
433
  var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
434
- var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
435
- var __hasOwnProp$S = Object.prototype.hasOwnProperty;
436
- var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
437
- var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, {
434
+ var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
435
+ var __hasOwnProp$T = Object.prototype.hasOwnProperty;
436
+ var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
437
+ var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, {
438
438
  enumerable: true,
439
439
  configurable: true,
440
440
  writable: true,
441
441
  value
442
442
  }) : obj[key] = value;
443
- var __spreadValues$R = (a, b) => {
444
- for (var prop in b || (b = {})) if (__hasOwnProp$S.call(b, prop)) __defNormalProp$R(a, prop, b[prop]);
445
- if (__getOwnPropSymbols$S) for (var prop of __getOwnPropSymbols$S(b)) {
446
- if (__propIsEnum$S.call(b, prop)) __defNormalProp$R(a, prop, b[prop]);
443
+ var __spreadValues$S = (a, b) => {
444
+ for (var prop in b || (b = {})) if (__hasOwnProp$T.call(b, prop)) __defNormalProp$S(a, prop, b[prop]);
445
+ if (__getOwnPropSymbols$T) for (var prop of __getOwnPropSymbols$T(b)) {
446
+ if (__propIsEnum$T.call(b, prop)) __defNormalProp$S(a, prop, b[prop]);
447
447
  }
448
448
  return a;
449
449
  };
450
450
  var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
451
- var __objRest$v = (source, exclude) => {
451
+ var __objRest$w = (source, exclude) => {
452
452
  var target = {};
453
- for (var prop in source) if (__hasOwnProp$S.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
454
- if (source != null && __getOwnPropSymbols$S) for (var prop of __getOwnPropSymbols$S(source)) {
455
- if (exclude.indexOf(prop) < 0 && __propIsEnum$S.call(source, prop)) target[prop] = source[prop];
453
+ for (var prop in source) if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
454
+ if (source != null && __getOwnPropSymbols$T) for (var prop of __getOwnPropSymbols$T(source)) {
455
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop)) target[prop] = source[prop];
456
456
  }
457
457
  return target;
458
458
  };
@@ -470,13 +470,13 @@ const Alert = _a => {
470
470
  action,
471
471
  message
472
472
  } = _b,
473
- props = __objRest$v(_b, ["type", "icon", "showIcon", "className", "onClose", "closeText", "action", "message"]);
473
+ props = __objRest$w(_b, ["type", "icon", "showIcon", "className", "onClose", "closeText", "action", "message"]);
474
474
  const _icon = /* @__PURE__ */React__default.createElement(Icon, {
475
475
  alt: type,
476
476
  src: getAlertIcon(type)
477
477
  });
478
478
  const _type = type === "normal" ? "info" : type;
479
- return /* @__PURE__ */React__default.createElement(Alert$1, __spreadProps$B(__spreadValues$R({}, props), {
479
+ return /* @__PURE__ */React__default.createElement(Alert$1, __spreadProps$B(__spreadValues$S({}, props), {
480
480
  className: cs(AlertStyle, type ? `alert-${type}` : "", className, {
481
481
  action
482
482
  }),
@@ -514,42 +514,42 @@ const Arch = (props) => {
514
514
  return /* @__PURE__ */ React__default.createElement("span", null, text);
515
515
  };
516
516
 
517
- var __defProp$Q = Object.defineProperty;
517
+ var __defProp$R = Object.defineProperty;
518
518
  var __defProps$A = Object.defineProperties;
519
519
  var __getOwnPropDescs$A = Object.getOwnPropertyDescriptors;
520
- var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
521
- var __hasOwnProp$R = Object.prototype.hasOwnProperty;
522
- var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
523
- var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
524
- var __spreadValues$Q = (a, b) => {
520
+ var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
521
+ var __hasOwnProp$S = Object.prototype.hasOwnProperty;
522
+ var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
523
+ var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
524
+ var __spreadValues$R = (a, b) => {
525
525
  for (var prop in b || (b = {}))
526
- if (__hasOwnProp$R.call(b, prop))
527
- __defNormalProp$Q(a, prop, b[prop]);
528
- if (__getOwnPropSymbols$R)
529
- for (var prop of __getOwnPropSymbols$R(b)) {
530
- if (__propIsEnum$R.call(b, prop))
531
- __defNormalProp$Q(a, prop, b[prop]);
526
+ if (__hasOwnProp$S.call(b, prop))
527
+ __defNormalProp$R(a, prop, b[prop]);
528
+ if (__getOwnPropSymbols$S)
529
+ for (var prop of __getOwnPropSymbols$S(b)) {
530
+ if (__propIsEnum$S.call(b, prop))
531
+ __defNormalProp$R(a, prop, b[prop]);
532
532
  }
533
533
  return a;
534
534
  };
535
535
  var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
536
- var __objRest$u = (source, exclude) => {
536
+ var __objRest$v = (source, exclude) => {
537
537
  var target = {};
538
538
  for (var prop in source)
539
- if (__hasOwnProp$R.call(source, prop) && exclude.indexOf(prop) < 0)
539
+ if (__hasOwnProp$S.call(source, prop) && exclude.indexOf(prop) < 0)
540
540
  target[prop] = source[prop];
541
- if (source != null && __getOwnPropSymbols$R)
542
- for (var prop of __getOwnPropSymbols$R(source)) {
543
- if (exclude.indexOf(prop) < 0 && __propIsEnum$R.call(source, prop))
541
+ if (source != null && __getOwnPropSymbols$S)
542
+ for (var prop of __getOwnPropSymbols$S(source)) {
543
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$S.call(source, prop))
544
544
  target[prop] = source[prop];
545
545
  }
546
546
  return target;
547
547
  };
548
548
  const Badge = (_a) => {
549
- var _b = _a, { type = "error", className } = _b, props = __objRest$u(_b, ["type", "className"]);
549
+ var _b = _a, { type = "error", className } = _b, props = __objRest$v(_b, ["type", "className"]);
550
550
  return /* @__PURE__ */ React__default.createElement(
551
551
  Badge$1,
552
- __spreadProps$A(__spreadValues$Q({
552
+ __spreadProps$A(__spreadValues$R({
553
553
  className: cx(`badge-${type}`, className)
554
554
  }, props), {
555
555
  showZero: false
@@ -569,6 +569,36 @@ const Empty = (props) => {
569
569
  return /* @__PURE__ */ React__default.createElement("span", { className, style }, "-");
570
570
  };
571
571
 
572
+ var __defProp$Q = Object.defineProperty;
573
+ var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
574
+ var __hasOwnProp$R = Object.prototype.hasOwnProperty;
575
+ var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
576
+ var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
577
+ var __spreadValues$Q = (a, b) => {
578
+ for (var prop in b || (b = {}))
579
+ if (__hasOwnProp$R.call(b, prop))
580
+ __defNormalProp$Q(a, prop, b[prop]);
581
+ if (__getOwnPropSymbols$R)
582
+ for (var prop of __getOwnPropSymbols$R(b)) {
583
+ if (__propIsEnum$R.call(b, prop))
584
+ __defNormalProp$Q(a, prop, b[prop]);
585
+ }
586
+ return a;
587
+ };
588
+ const Bit = ({
589
+ rawValue,
590
+ decimals,
591
+ unitClassName,
592
+ valueClassName,
593
+ emptyProps
594
+ }) => {
595
+ if (isEmpty(rawValue)) {
596
+ return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$Q({}, emptyProps));
597
+ }
598
+ const { value, unit } = formatBits(rawValue, decimals);
599
+ return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
600
+ };
601
+
572
602
  var __defProp$P = Object.defineProperty;
573
603
  var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
574
604
  var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
@@ -585,17 +615,17 @@ var __spreadValues$P = (a, b) => {
585
615
  }
586
616
  return a;
587
617
  };
588
- const Bit = ({
618
+ const BitPerSeconds = ({
589
619
  rawValue,
590
620
  decimals,
591
- unitClassName,
592
621
  valueClassName,
622
+ unitClassName,
593
623
  emptyProps
594
624
  }) => {
595
625
  if (isEmpty(rawValue)) {
596
626
  return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$P({}, emptyProps));
597
627
  }
598
- const { value, unit } = formatBits(rawValue, decimals);
628
+ const { value, unit } = formatBitPerSecond(rawValue, decimals);
599
629
  return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
600
630
  };
601
631
 
@@ -615,36 +645,6 @@ var __spreadValues$O = (a, b) => {
615
645
  }
616
646
  return a;
617
647
  };
618
- const BitPerSeconds = ({
619
- rawValue,
620
- decimals,
621
- valueClassName,
622
- unitClassName,
623
- emptyProps
624
- }) => {
625
- if (isEmpty(rawValue)) {
626
- return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$O({}, emptyProps));
627
- }
628
- const { value, unit } = formatBitPerSecond(rawValue, decimals);
629
- return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
630
- };
631
-
632
- var __defProp$N = Object.defineProperty;
633
- var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
634
- var __hasOwnProp$O = Object.prototype.hasOwnProperty;
635
- var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
636
- var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
637
- var __spreadValues$N = (a, b) => {
638
- for (var prop in b || (b = {}))
639
- if (__hasOwnProp$O.call(b, prop))
640
- __defNormalProp$N(a, prop, b[prop]);
641
- if (__getOwnPropSymbols$O)
642
- for (var prop of __getOwnPropSymbols$O(b)) {
643
- if (__propIsEnum$O.call(b, prop))
644
- __defNormalProp$N(a, prop, b[prop]);
645
- }
646
- return a;
647
- };
648
648
  const Bps = ({
649
649
  rawValue,
650
650
  decimals,
@@ -653,7 +653,7 @@ const Bps = ({
653
653
  emptyProps
654
654
  }) => {
655
655
  if (isEmpty(rawValue)) {
656
- return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$N({}, emptyProps));
656
+ return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$O({}, emptyProps));
657
657
  }
658
658
  const { value, unit } = formatBps(rawValue, decimals);
659
659
  return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
@@ -794,28 +794,28 @@ const HoverableElement = (props) => {
794
794
  return icon != null ? React__default.cloneElement(icon, { className }) : null;
795
795
  };
796
796
 
797
- var __defProp$M = Object.defineProperty;
798
- var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
799
- var __hasOwnProp$N = Object.prototype.hasOwnProperty;
800
- var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
801
- var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, {
797
+ var __defProp$N = Object.defineProperty;
798
+ var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
799
+ var __hasOwnProp$O = Object.prototype.hasOwnProperty;
800
+ var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
801
+ var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, {
802
802
  enumerable: true,
803
803
  configurable: true,
804
804
  writable: true,
805
805
  value
806
806
  }) : obj[key] = value;
807
- var __spreadValues$M = (a, b) => {
808
- for (var prop in b || (b = {})) if (__hasOwnProp$N.call(b, prop)) __defNormalProp$M(a, prop, b[prop]);
809
- if (__getOwnPropSymbols$N) for (var prop of __getOwnPropSymbols$N(b)) {
810
- if (__propIsEnum$N.call(b, prop)) __defNormalProp$M(a, prop, b[prop]);
807
+ var __spreadValues$N = (a, b) => {
808
+ for (var prop in b || (b = {})) if (__hasOwnProp$O.call(b, prop)) __defNormalProp$N(a, prop, b[prop]);
809
+ if (__getOwnPropSymbols$O) for (var prop of __getOwnPropSymbols$O(b)) {
810
+ if (__propIsEnum$O.call(b, prop)) __defNormalProp$N(a, prop, b[prop]);
811
811
  }
812
812
  return a;
813
813
  };
814
- var __objRest$t = (source, exclude) => {
814
+ var __objRest$u = (source, exclude) => {
815
815
  var target = {};
816
- for (var prop in source) if (__hasOwnProp$N.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
817
- if (source != null && __getOwnPropSymbols$N) for (var prop of __getOwnPropSymbols$N(source)) {
818
- if (exclude.indexOf(prop) < 0 && __propIsEnum$N.call(source, prop)) target[prop] = source[prop];
816
+ for (var prop in source) if (__hasOwnProp$O.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
817
+ if (source != null && __getOwnPropSymbols$O) for (var prop of __getOwnPropSymbols$O(source)) {
818
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$O.call(source, prop)) target[prop] = source[prop];
819
819
  }
820
820
  return target;
821
821
  };
@@ -838,12 +838,12 @@ const Button = React__default.forwardRef((props, ref) => {
838
838
  onMouseLeave,
839
839
  size = "middle"
840
840
  } = _a,
841
- restProps = __objRest$t(_a, ["type", "className", "children", "prefixIcon", "hoverPrefixIcon", "suffixIcon", "hoverSuffixIcon", "onMouseEnter", "onMouseLeave", "size"]);
841
+ restProps = __objRest$u(_a, ["type", "className", "children", "prefixIcon", "hoverPrefixIcon", "suffixIcon", "hoverSuffixIcon", "onMouseEnter", "onMouseLeave", "size"]);
842
842
  const [status, setStatus] = useState("normal");
843
843
  const hasIcon = prefixIcon || suffixIcon;
844
844
  const hasHoverIcon = hoverPrefixIcon || hoverSuffixIcon;
845
845
  const onlyIcon = !children && (prefixIcon || suffixIcon);
846
- return /* @__PURE__ */React__default.createElement(Button$1, __spreadValues$M({
846
+ return /* @__PURE__ */React__default.createElement(Button$1, __spreadValues$N({
847
847
  ref,
848
848
  className: cs(className, ButtonStyle$1, type === "link" && NoPadding, (prefixIcon || suffixIcon) && "has-icon", size === "large" && Typo.Label.l1_regular_title, size === "middle" && Typo.Label.l2_regular_title, size === "small" && Typo.Label.l3_regular_title, type && `ant-btn-${type}`, onlyIcon && "ant-btn-icon-only"),
849
849
  type: isAntdButtonTypes(type) ? type : void 0,
@@ -873,33 +873,33 @@ const Button = React__default.forwardRef((props, ref) => {
873
873
  }));
874
874
  });
875
875
 
876
- var __defProp$L = Object.defineProperty;
876
+ var __defProp$M = Object.defineProperty;
877
877
  var __defProps$z = Object.defineProperties;
878
878
  var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
879
- var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
880
- var __hasOwnProp$M = Object.prototype.hasOwnProperty;
881
- var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
882
- var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
883
- var __spreadValues$L = (a, b) => {
879
+ var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
880
+ var __hasOwnProp$N = Object.prototype.hasOwnProperty;
881
+ var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
882
+ var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
883
+ var __spreadValues$M = (a, b) => {
884
884
  for (var prop in b || (b = {}))
885
- if (__hasOwnProp$M.call(b, prop))
886
- __defNormalProp$L(a, prop, b[prop]);
887
- if (__getOwnPropSymbols$M)
888
- for (var prop of __getOwnPropSymbols$M(b)) {
889
- if (__propIsEnum$M.call(b, prop))
890
- __defNormalProp$L(a, prop, b[prop]);
885
+ if (__hasOwnProp$N.call(b, prop))
886
+ __defNormalProp$M(a, prop, b[prop]);
887
+ if (__getOwnPropSymbols$N)
888
+ for (var prop of __getOwnPropSymbols$N(b)) {
889
+ if (__propIsEnum$N.call(b, prop))
890
+ __defNormalProp$M(a, prop, b[prop]);
891
891
  }
892
892
  return a;
893
893
  };
894
894
  var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
895
- var __objRest$s = (source, exclude) => {
895
+ var __objRest$t = (source, exclude) => {
896
896
  var target = {};
897
897
  for (var prop in source)
898
- if (__hasOwnProp$M.call(source, prop) && exclude.indexOf(prop) < 0)
898
+ if (__hasOwnProp$N.call(source, prop) && exclude.indexOf(prop) < 0)
899
899
  target[prop] = source[prop];
900
- if (source != null && __getOwnPropSymbols$M)
901
- for (var prop of __getOwnPropSymbols$M(source)) {
902
- if (exclude.indexOf(prop) < 0 && __propIsEnum$M.call(source, prop))
900
+ if (source != null && __getOwnPropSymbols$N)
901
+ for (var prop of __getOwnPropSymbols$N(source)) {
902
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$N.call(source, prop))
903
903
  target[prop] = source[prop];
904
904
  }
905
905
  return target;
@@ -911,7 +911,7 @@ const Tooltip = (props) => {
911
911
  overlayClassName,
912
912
  overlayStyle,
913
913
  children
914
- } = _a, restProps = __objRest$s(_a, [
914
+ } = _a, restProps = __objRest$t(_a, [
915
915
  "followMouse",
916
916
  "overlayClassName",
917
917
  "overlayStyle",
@@ -953,10 +953,10 @@ const Tooltip = (props) => {
953
953
  }, [followMouse, onmousemove, uniqueContainerClass]);
954
954
  return /* @__PURE__ */ React__default.createElement(
955
955
  Tooltip$1,
956
- __spreadProps$z(__spreadValues$L({}, restProps), {
956
+ __spreadProps$z(__spreadValues$M({}, restProps), {
957
957
  overlayClassName: followMouse ? cs(overlayClassName, uniquePopupClass) : overlayClassName,
958
958
  children: _children,
959
- overlayStyle: followMouse ? __spreadValues$L({
959
+ overlayStyle: followMouse ? __spreadValues$M({
960
960
  transform: "translate(-50%, -100%)",
961
961
  pointerEvents: "none"
962
962
  }, overlayStyle) : overlayStyle
@@ -964,28 +964,28 @@ const Tooltip = (props) => {
964
964
  );
965
965
  };
966
966
 
967
- var __defProp$K = Object.defineProperty;
968
- var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
969
- var __hasOwnProp$L = Object.prototype.hasOwnProperty;
970
- var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
971
- var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, {
967
+ var __defProp$L = Object.defineProperty;
968
+ var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
969
+ var __hasOwnProp$M = Object.prototype.hasOwnProperty;
970
+ var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
971
+ var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, {
972
972
  enumerable: true,
973
973
  configurable: true,
974
974
  writable: true,
975
975
  value
976
976
  }) : obj[key] = value;
977
- var __spreadValues$K = (a, b) => {
978
- for (var prop in b || (b = {})) if (__hasOwnProp$L.call(b, prop)) __defNormalProp$K(a, prop, b[prop]);
979
- if (__getOwnPropSymbols$L) for (var prop of __getOwnPropSymbols$L(b)) {
980
- if (__propIsEnum$L.call(b, prop)) __defNormalProp$K(a, prop, b[prop]);
977
+ var __spreadValues$L = (a, b) => {
978
+ for (var prop in b || (b = {})) if (__hasOwnProp$M.call(b, prop)) __defNormalProp$L(a, prop, b[prop]);
979
+ if (__getOwnPropSymbols$M) for (var prop of __getOwnPropSymbols$M(b)) {
980
+ if (__propIsEnum$M.call(b, prop)) __defNormalProp$L(a, prop, b[prop]);
981
981
  }
982
982
  return a;
983
983
  };
984
- var __objRest$r = (source, exclude) => {
984
+ var __objRest$s = (source, exclude) => {
985
985
  var target = {};
986
- for (var prop in source) if (__hasOwnProp$L.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
987
- if (source != null && __getOwnPropSymbols$L) for (var prop of __getOwnPropSymbols$L(source)) {
988
- if (exclude.indexOf(prop) < 0 && __propIsEnum$L.call(source, prop)) target[prop] = source[prop];
986
+ for (var prop in source) if (__hasOwnProp$M.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
987
+ if (source != null && __getOwnPropSymbols$M) for (var prop of __getOwnPropSymbols$M(source)) {
988
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$M.call(source, prop)) target[prop] = source[prop];
989
989
  }
990
990
  return target;
991
991
  };
@@ -1020,7 +1020,7 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
1020
1020
  hideTitle,
1021
1021
  title
1022
1022
  } = _a,
1023
- buttonPropArgs = __objRest$r(_a, ["key", "icon", "type", "children", "danger", "ghost", "className", "hideTitle", "title"]);
1023
+ buttonPropArgs = __objRest$s(_a, ["key", "icon", "type", "children", "danger", "ghost", "className", "hideTitle", "title"]);
1024
1024
  if (hideTitle) {
1025
1025
  return /* @__PURE__ */React__default.createElement(Tooltip, {
1026
1026
  key: key || index,
@@ -1029,7 +1029,7 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
1029
1029
  style: {
1030
1030
  cursor: "not-allowed"
1031
1031
  }
1032
- }, /* @__PURE__ */React__default.createElement(Button, __spreadValues$K({
1032
+ }, /* @__PURE__ */React__default.createElement(Button, __spreadValues$L({
1033
1033
  style: {
1034
1034
  pointerEvents: "none"
1035
1035
  },
@@ -1039,7 +1039,7 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
1039
1039
  ghost,
1040
1040
  className: cx(ButtonStyle, className2),
1041
1041
  prefixIcon: icon
1042
- }, buttonPropArgs))) : /* @__PURE__ */React__default.createElement(Button, __spreadValues$K({
1042
+ }, buttonPropArgs))) : /* @__PURE__ */React__default.createElement(Button, __spreadValues$L({
1043
1043
  type,
1044
1044
  size,
1045
1045
  danger,
@@ -1048,7 +1048,7 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
1048
1048
  prefixIcon: icon
1049
1049
  }, buttonPropArgs)));
1050
1050
  }
1051
- return /* @__PURE__ */React__default.createElement(Button, __spreadValues$K({
1051
+ return /* @__PURE__ */React__default.createElement(Button, __spreadValues$L({
1052
1052
  key: key || index,
1053
1053
  type,
1054
1054
  size,
@@ -1062,19 +1062,19 @@ const ButtonGroup = React__default.forwardRef((props, ref) => {
1062
1062
  }));
1063
1063
  });
1064
1064
 
1065
- var __defProp$J = Object.defineProperty;
1066
- var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
1067
- var __hasOwnProp$K = Object.prototype.hasOwnProperty;
1068
- var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
1069
- var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1070
- var __spreadValues$J = (a, b) => {
1065
+ var __defProp$K = Object.defineProperty;
1066
+ var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
1067
+ var __hasOwnProp$L = Object.prototype.hasOwnProperty;
1068
+ var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
1069
+ var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1070
+ var __spreadValues$K = (a, b) => {
1071
1071
  for (var prop in b || (b = {}))
1072
- if (__hasOwnProp$K.call(b, prop))
1073
- __defNormalProp$J(a, prop, b[prop]);
1074
- if (__getOwnPropSymbols$K)
1075
- for (var prop of __getOwnPropSymbols$K(b)) {
1076
- if (__propIsEnum$K.call(b, prop))
1077
- __defNormalProp$J(a, prop, b[prop]);
1072
+ if (__hasOwnProp$L.call(b, prop))
1073
+ __defNormalProp$K(a, prop, b[prop]);
1074
+ if (__getOwnPropSymbols$L)
1075
+ for (var prop of __getOwnPropSymbols$L(b)) {
1076
+ if (__propIsEnum$L.call(b, prop))
1077
+ __defNormalProp$K(a, prop, b[prop]);
1078
1078
  }
1079
1079
  return a;
1080
1080
  };
@@ -1088,7 +1088,7 @@ const Byte = ({
1088
1088
  }) => {
1089
1089
  const { t } = useParrotTranslation();
1090
1090
  if (isEmpty(rawValue)) {
1091
- return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$J({}, emptyProps));
1091
+ return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$K({}, emptyProps));
1092
1092
  }
1093
1093
  if (rawValue === -1) {
1094
1094
  return /* @__PURE__ */ React__default.createElement("span", null, t("common.calculation"));
@@ -1112,18 +1112,45 @@ const CardTitle = /*#__PURE__*/styled('div')({
1112
1112
  propsAsIs: false
1113
1113
  });
1114
1114
 
1115
+ var __defProp$J = Object.defineProperty;
1116
+ var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
1117
+ var __hasOwnProp$K = Object.prototype.hasOwnProperty;
1118
+ var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
1119
+ var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, {
1120
+ enumerable: true,
1121
+ configurable: true,
1122
+ writable: true,
1123
+ value
1124
+ }) : obj[key] = value;
1125
+ var __spreadValues$J = (a, b) => {
1126
+ for (var prop in b || (b = {})) if (__hasOwnProp$K.call(b, prop)) __defNormalProp$J(a, prop, b[prop]);
1127
+ if (__getOwnPropSymbols$K) for (var prop of __getOwnPropSymbols$K(b)) {
1128
+ if (__propIsEnum$K.call(b, prop)) __defNormalProp$J(a, prop, b[prop]);
1129
+ }
1130
+ return a;
1131
+ };
1132
+ var __objRest$r = (source, exclude) => {
1133
+ var target = {};
1134
+ for (var prop in source) if (__hasOwnProp$K.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
1135
+ if (source != null && __getOwnPropSymbols$K) for (var prop of __getOwnPropSymbols$K(source)) {
1136
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$K.call(source, prop)) target[prop] = source[prop];
1137
+ }
1138
+ return target;
1139
+ };
1115
1140
  const boxShadow = "bab9xum";
1116
1141
  const Wrapper = forwardRef(props => {
1117
- const {
1118
- children,
1119
- className,
1120
- shadow
1121
- } = props;
1122
- return /* @__PURE__ */React__default.createElement("div", {
1142
+ const _a = props,
1143
+ {
1144
+ children,
1145
+ className,
1146
+ shadow
1147
+ } = _a,
1148
+ otherProps = __objRest$r(_a, ["children", "className", "shadow"]);
1149
+ return /* @__PURE__ */React__default.createElement("div", __spreadValues$J({
1123
1150
  className: cs({
1124
1151
  [boxShadow]: shadow
1125
1152
  }, className)
1126
- }, children);
1153
+ }, otherProps), children);
1127
1154
  });
1128
1155
  const _exp$3 = () => Wrapper;
1129
1156
  const CardWrapper = /*#__PURE__*/styled(_exp$3())({
@@ -2941,6 +2968,12 @@ const KitStoreProvider = (props) => {
2941
2968
  const useKitDispatch = createDispatchHook(ctx);
2942
2969
  const useKitSelector = createSelectorHook(ctx);
2943
2970
 
2971
+ const StepsStyle = "sq6vos1";
2972
+ const HorizontalStyle = "hjtnwxg";
2973
+ const VerticalStyle = "v1p8siwu";
2974
+ const HorizontalStepContentStyle = "h1xo7yjb";
2975
+ const VerticalStepContentStyle = "v1f2f7cy";
2976
+
2944
2977
  var __defProp$m = Object.defineProperty;
2945
2978
  var __defProps$g = Object.defineProperties;
2946
2979
  var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
@@ -2972,41 +3005,144 @@ var __objRest$9 = (source, exclude) => {
2972
3005
  }
2973
3006
  return target;
2974
3007
  };
2975
- const Modal = (props) => {
2976
- var _b;
2977
- const { t } = useParrotTranslation();
3008
+ const StepTitle = (props) => {
3009
+ const { current, step, index, isVerticalMode } = props;
3010
+ const textRef = useRef(null);
3011
+ const [tooltipEnable, setTooltipEnable] = useState({
3012
+ visible: false
3013
+ });
3014
+ useLayoutEffect(() => {
3015
+ if (textRef.current && textRef.current.offsetWidth < textRef.current.scrollWidth) {
3016
+ setTooltipEnable({});
3017
+ }
3018
+ }, [textRef]);
3019
+ return /* @__PURE__ */ React__default.createElement(Tooltip, __spreadProps$g(__spreadValues$m({}, tooltipEnable), { title: step.title }), /* @__PURE__ */ React__default.createElement(
3020
+ "div",
3021
+ {
3022
+ className: isVerticalMode ? VerticalStepContentStyle : HorizontalStepContentStyle
3023
+ },
3024
+ /* @__PURE__ */ React__default.createElement("span", { className: "step-item-prefix-container" }, index < current ? /* @__PURE__ */ React__default.createElement(CheckmarkDoneSuccessCorrect16SecondaryIcon, null) : index + 1),
3025
+ /* @__PURE__ */ React__default.createElement("span", { ref: textRef, className: "step-item-title" }, /* @__PURE__ */ React__default.createElement("span", { className: "step-item-title" }, step.title))
3026
+ ));
3027
+ };
3028
+ const Steps = (props) => {
2978
3029
  const _a = props, {
2979
- error,
2980
- okText = t("common.confirm"),
2981
- cancelText = t("common.cancel"),
2982
- confirmLoading,
2983
- okButtonProps,
2984
- onOk,
2985
- cancelButtonProps,
2986
- onCancel,
2987
- maskClosable = false,
2988
- normal = true,
2989
- className,
2990
- fullscreen,
2991
- wizard,
2992
- footer,
2993
- width,
2994
- showCancel = true,
2995
- showOk = true,
2996
- afterClose
2997
- } = _a, restProps = __objRest$9(_a, [
2998
- "error",
2999
- "okText",
3000
- "cancelText",
3001
- "confirmLoading",
3002
- "okButtonProps",
3003
- "onOk",
3004
- "cancelButtonProps",
3005
- "onCancel",
3006
- "maskClosable",
3007
- "normal",
3008
- "className",
3009
- "fullscreen",
3030
+ stepsConfig,
3031
+ direction,
3032
+ containerClassname,
3033
+ current = 0,
3034
+ disabled
3035
+ } = _a, stepsProps = __objRest$9(_a, [
3036
+ "stepsConfig",
3037
+ "direction",
3038
+ "containerClassname",
3039
+ "current",
3040
+ "disabled"
3041
+ ]);
3042
+ const isVerticalMode = direction === "vertical";
3043
+ return /* @__PURE__ */ React__default.createElement(
3044
+ "div",
3045
+ {
3046
+ className: cs(
3047
+ containerClassname,
3048
+ StepsStyle,
3049
+ isVerticalMode ? VerticalStyle : HorizontalStyle
3050
+ )
3051
+ },
3052
+ /* @__PURE__ */ React__default.createElement(
3053
+ Steps$1,
3054
+ __spreadProps$g(__spreadValues$m({}, stepsProps), {
3055
+ direction,
3056
+ current,
3057
+ type: "default"
3058
+ }),
3059
+ (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */ React__default.createElement(
3060
+ Steps$1.Step,
3061
+ __spreadProps$g(__spreadValues$m({
3062
+ key: index
3063
+ }, step), {
3064
+ disabled: disabled || index > current,
3065
+ title: /* @__PURE__ */ React__default.createElement(
3066
+ StepTitle,
3067
+ {
3068
+ index,
3069
+ step,
3070
+ current,
3071
+ isVerticalMode
3072
+ }
3073
+ )
3074
+ })
3075
+ )) : props.children
3076
+ )
3077
+ );
3078
+ };
3079
+
3080
+ var __defProp$l = Object.defineProperty;
3081
+ var __defProps$f = Object.defineProperties;
3082
+ var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
3083
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
3084
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
3085
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
3086
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3087
+ var __spreadValues$l = (a, b) => {
3088
+ for (var prop in b || (b = {}))
3089
+ if (__hasOwnProp$l.call(b, prop))
3090
+ __defNormalProp$l(a, prop, b[prop]);
3091
+ if (__getOwnPropSymbols$l)
3092
+ for (var prop of __getOwnPropSymbols$l(b)) {
3093
+ if (__propIsEnum$l.call(b, prop))
3094
+ __defNormalProp$l(a, prop, b[prop]);
3095
+ }
3096
+ return a;
3097
+ };
3098
+ var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
3099
+ var __objRest$8 = (source, exclude) => {
3100
+ var target = {};
3101
+ for (var prop in source)
3102
+ if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
3103
+ target[prop] = source[prop];
3104
+ if (source != null && __getOwnPropSymbols$l)
3105
+ for (var prop of __getOwnPropSymbols$l(source)) {
3106
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
3107
+ target[prop] = source[prop];
3108
+ }
3109
+ return target;
3110
+ };
3111
+ const Modal = (props) => {
3112
+ var _b;
3113
+ const { t } = useParrotTranslation();
3114
+ const _a = props, {
3115
+ error,
3116
+ okText = t("common.confirm"),
3117
+ cancelText = t("common.cancel"),
3118
+ confirmLoading,
3119
+ okButtonProps,
3120
+ onOk,
3121
+ cancelButtonProps,
3122
+ onCancel,
3123
+ maskClosable = false,
3124
+ normal = true,
3125
+ className,
3126
+ fullscreen,
3127
+ wizard,
3128
+ footer,
3129
+ width,
3130
+ showCancel = true,
3131
+ showOk = true,
3132
+ afterClose
3133
+ } = _a, restProps = __objRest$8(_a, [
3134
+ "error",
3135
+ "okText",
3136
+ "cancelText",
3137
+ "confirmLoading",
3138
+ "okButtonProps",
3139
+ "onOk",
3140
+ "cancelButtonProps",
3141
+ "onCancel",
3142
+ "maskClosable",
3143
+ "normal",
3144
+ "className",
3145
+ "fullscreen",
3010
3146
  "wizard",
3011
3147
  "footer",
3012
3148
  "width",
@@ -3049,7 +3185,7 @@ const Modal = (props) => {
3049
3185
  }
3050
3186
  return /* @__PURE__ */ React__default.createElement(
3051
3187
  Modal$1,
3052
- __spreadProps$g(__spreadValues$m({
3188
+ __spreadProps$f(__spreadValues$l({
3053
3189
  maskClosable,
3054
3190
  className: cs(
3055
3191
  className,
@@ -3084,7 +3220,7 @@ const Modal = (props) => {
3084
3220
  prevText
3085
3221
  ), error && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("span", { className: "modal-error" }, error))), /* @__PURE__ */ React__default.createElement("div", { className: "modal-footer-btn-group" }, showCancel && /* @__PURE__ */ React__default.createElement(
3086
3222
  Button,
3087
- __spreadValues$m({
3223
+ __spreadValues$l({
3088
3224
  type: "quiet",
3089
3225
  onMouseDown: (e) => {
3090
3226
  e.preventDefault();
@@ -3098,7 +3234,7 @@ const Modal = (props) => {
3098
3234
  cancelText
3099
3235
  ), showOk && /* @__PURE__ */ React__default.createElement(
3100
3236
  Button,
3101
- __spreadValues$m({
3237
+ __spreadValues$l({
3102
3238
  onClick: (e) => {
3103
3239
  var _a2, _b2;
3104
3240
  onOk == null ? void 0 : onOk(e);
@@ -3114,24 +3250,19 @@ const Modal = (props) => {
3114
3250
  ))) : footer)
3115
3251
  }),
3116
3252
  wizard && typeof wizard === "object" ? /* @__PURE__ */ React__default.createElement(WizardBody, null, /* @__PURE__ */ React__default.createElement("div", { className: "left" }, /* @__PURE__ */ React__default.createElement(
3117
- Steps$1,
3253
+ Steps,
3118
3254
  {
3119
- style: { minWidth: 192 },
3120
3255
  current: wizard.step,
3121
3256
  onChange: (value) => {
3122
3257
  var _a2;
3123
3258
  return (_a2 = wizard.onStepChange) == null ? void 0 : _a2.call(wizard, value);
3124
3259
  },
3125
- direction: "vertical"
3126
- },
3127
- wizard.steps.map((s, idx) => /* @__PURE__ */ React__default.createElement(
3128
- Steps$1.Step,
3129
- {
3130
- key: idx,
3131
- title: /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, idx >= wizard.step ? /* @__PURE__ */ React__default.createElement("span", { className: "step-index" }, idx + 1) : /* @__PURE__ */ React__default.createElement(CheckOutlined, { className: "step-index" }), s.title),
3132
- disabled: s.disabled || idx > wizard.step || wizard.disablePrevStep && idx !== wizard.step
3133
- }
3134
- ))
3260
+ direction: "vertical",
3261
+ stepsConfig: wizard.steps.map((s) => ({
3262
+ title: s.title,
3263
+ disabled: s.disabled
3264
+ }))
3265
+ }
3135
3266
  )), /* @__PURE__ */ React__default.createElement("div", { className: "middle" }, restProps.children, wizard.destroyOtherStep ? wizard.steps[wizard.step].render : stepsRef.current.map((step, index) => /* @__PURE__ */ React__default.createElement(
3136
3267
  "div",
3137
3268
  {
@@ -3250,19 +3381,19 @@ const Pagination = props => {
3250
3381
  }))));
3251
3382
  };
3252
3383
 
3253
- var __defProp$l = Object.defineProperty;
3254
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
3255
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
3256
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
3257
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3258
- var __spreadValues$l = (a, b) => {
3384
+ var __defProp$k = Object.defineProperty;
3385
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
3386
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
3387
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
3388
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3389
+ var __spreadValues$k = (a, b) => {
3259
3390
  for (var prop in b || (b = {}))
3260
- if (__hasOwnProp$l.call(b, prop))
3261
- __defNormalProp$l(a, prop, b[prop]);
3262
- if (__getOwnPropSymbols$l)
3263
- for (var prop of __getOwnPropSymbols$l(b)) {
3264
- if (__propIsEnum$l.call(b, prop))
3265
- __defNormalProp$l(a, prop, b[prop]);
3391
+ if (__hasOwnProp$k.call(b, prop))
3392
+ __defNormalProp$k(a, prop, b[prop]);
3393
+ if (__getOwnPropSymbols$k)
3394
+ for (var prop of __getOwnPropSymbols$k(b)) {
3395
+ if (__propIsEnum$k.call(b, prop))
3396
+ __defNormalProp$k(a, prop, b[prop]);
3266
3397
  }
3267
3398
  return a;
3268
3399
  };
@@ -3275,52 +3406,52 @@ const Percent = ({
3275
3406
  emptyProps
3276
3407
  }) => {
3277
3408
  if (isEmpty(rawValue)) {
3278
- return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$l({}, emptyProps));
3409
+ return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$k({}, emptyProps));
3279
3410
  }
3280
3411
  const { value, unit } = formatPercent(rawValue, decimals, saturated);
3281
3412
  return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, unit));
3282
3413
  };
3283
3414
 
3284
- var __defProp$k = Object.defineProperty;
3285
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
3286
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
3287
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
3288
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3289
- var __spreadValues$k = (a, b) => {
3415
+ var __defProp$j = Object.defineProperty;
3416
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
3417
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
3418
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
3419
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3420
+ var __spreadValues$j = (a, b) => {
3290
3421
  for (var prop in b || (b = {}))
3291
- if (__hasOwnProp$k.call(b, prop))
3292
- __defNormalProp$k(a, prop, b[prop]);
3293
- if (__getOwnPropSymbols$k)
3294
- for (var prop of __getOwnPropSymbols$k(b)) {
3295
- if (__propIsEnum$k.call(b, prop))
3296
- __defNormalProp$k(a, prop, b[prop]);
3422
+ if (__hasOwnProp$j.call(b, prop))
3423
+ __defNormalProp$j(a, prop, b[prop]);
3424
+ if (__getOwnPropSymbols$j)
3425
+ for (var prop of __getOwnPropSymbols$j(b)) {
3426
+ if (__propIsEnum$j.call(b, prop))
3427
+ __defNormalProp$j(a, prop, b[prop]);
3297
3428
  }
3298
3429
  return a;
3299
3430
  };
3300
- const Progress = (props) => /* @__PURE__ */ React__default.createElement(Progress$1, __spreadValues$k({}, props));
3431
+ const Progress = (props) => /* @__PURE__ */ React__default.createElement(Progress$1, __spreadValues$j({}, props));
3301
3432
 
3302
- var __defProp$j = Object.defineProperty;
3303
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
3304
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
3305
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
3306
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, {
3433
+ var __defProp$i = Object.defineProperty;
3434
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
3435
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
3436
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
3437
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, {
3307
3438
  enumerable: true,
3308
3439
  configurable: true,
3309
3440
  writable: true,
3310
3441
  value
3311
3442
  }) : obj[key] = value;
3312
- var __spreadValues$j = (a, b) => {
3313
- for (var prop in b || (b = {})) if (__hasOwnProp$j.call(b, prop)) __defNormalProp$j(a, prop, b[prop]);
3314
- if (__getOwnPropSymbols$j) for (var prop of __getOwnPropSymbols$j(b)) {
3315
- if (__propIsEnum$j.call(b, prop)) __defNormalProp$j(a, prop, b[prop]);
3443
+ var __spreadValues$i = (a, b) => {
3444
+ for (var prop in b || (b = {})) if (__hasOwnProp$i.call(b, prop)) __defNormalProp$i(a, prop, b[prop]);
3445
+ if (__getOwnPropSymbols$i) for (var prop of __getOwnPropSymbols$i(b)) {
3446
+ if (__propIsEnum$i.call(b, prop)) __defNormalProp$i(a, prop, b[prop]);
3316
3447
  }
3317
3448
  return a;
3318
3449
  };
3319
- var __objRest$8 = (source, exclude) => {
3450
+ var __objRest$7 = (source, exclude) => {
3320
3451
  var target = {};
3321
- for (var prop in source) if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
3322
- if (source != null && __getOwnPropSymbols$j) for (var prop of __getOwnPropSymbols$j(source)) {
3323
- if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop)) target[prop] = source[prop];
3452
+ for (var prop in source) if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
3453
+ if (source != null && __getOwnPropSymbols$i) for (var prop of __getOwnPropSymbols$i(source)) {
3454
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop)) target[prop] = source[prop];
3324
3455
  }
3325
3456
  return target;
3326
3457
  };
@@ -3336,7 +3467,7 @@ const Radio = _a => {
3336
3467
  checked,
3337
3468
  compact = false
3338
3469
  } = _b,
3339
- props = __objRest$8(_b, ["children", "className", "checked", "compact"]);
3470
+ props = __objRest$7(_b, ["children", "className", "checked", "compact"]);
3340
3471
  const {
3341
3472
  description
3342
3473
  } = props;
@@ -3346,7 +3477,7 @@ const Radio = _a => {
3346
3477
  className: cx("radio-description", Typo.Label.l4_regular)
3347
3478
  }, description));
3348
3479
  }
3349
- return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Radio$1, __spreadValues$j({
3480
+ return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Radio$1, __spreadValues$i({
3350
3481
  className: cx(className, RadioStyle, compact && "compact"),
3351
3482
  checked: checked || false,
3352
3483
  "data-test": context.name ? `${context.name}-${String(props.value)}` : String(props.value)
@@ -3358,13 +3489,13 @@ const RadioGroup = _c => {
3358
3489
  children,
3359
3490
  className
3360
3491
  } = _d,
3361
- props = __objRest$8(_d, ["children", "className"]);
3492
+ props = __objRest$7(_d, ["children", "className"]);
3362
3493
  return /* @__PURE__ */React__default.createElement(KitRadioGroupContext.Provider, {
3363
3494
  value: {
3364
3495
  disabled: props.disabled,
3365
3496
  name: props.name
3366
3497
  }
3367
- }, /* @__PURE__ */React__default.createElement(Radio$1.Group, __spreadValues$j({
3498
+ }, /* @__PURE__ */React__default.createElement(Radio$1.Group, __spreadValues$i({
3368
3499
  className: cx(className, RadioGroupStyle)
3369
3500
  }, props), children ? children : null));
3370
3501
  };
@@ -3374,7 +3505,7 @@ const RadioButton = _e => {
3374
3505
  children,
3375
3506
  className
3376
3507
  } = _f,
3377
- props = __objRest$8(_f, ["children", "className"]);
3508
+ props = __objRest$7(_f, ["children", "className"]);
3378
3509
  const {
3379
3510
  type,
3380
3511
  placeholder = "Label",
@@ -3420,46 +3551,46 @@ const RadioButton = _e => {
3420
3551
  className: "ant-radio-button-input-label"
3421
3552
  }, typeof children === "string" ? children : ""));
3422
3553
  };
3423
- return /* @__PURE__ */React__default.createElement(Radio$1.Button, __spreadValues$j({
3554
+ return /* @__PURE__ */React__default.createElement(Radio$1.Button, __spreadValues$i({
3424
3555
  className: cx(className, RadioButtonStyle),
3425
3556
  value: radioButtonValue
3426
3557
  }, props), renderChildren());
3427
3558
  };
3428
3559
 
3429
- var __defProp$i = Object.defineProperty;
3430
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
3431
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
3432
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
3433
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3434
- var __spreadValues$i = (a, b) => {
3560
+ var __defProp$h = Object.defineProperty;
3561
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
3562
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
3563
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
3564
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3565
+ var __spreadValues$h = (a, b) => {
3435
3566
  for (var prop in b || (b = {}))
3436
- if (__hasOwnProp$i.call(b, prop))
3437
- __defNormalProp$i(a, prop, b[prop]);
3438
- if (__getOwnPropSymbols$i)
3439
- for (var prop of __getOwnPropSymbols$i(b)) {
3440
- if (__propIsEnum$i.call(b, prop))
3441
- __defNormalProp$i(a, prop, b[prop]);
3567
+ if (__hasOwnProp$h.call(b, prop))
3568
+ __defNormalProp$h(a, prop, b[prop]);
3569
+ if (__getOwnPropSymbols$h)
3570
+ for (var prop of __getOwnPropSymbols$h(b)) {
3571
+ if (__propIsEnum$h.call(b, prop))
3572
+ __defNormalProp$h(a, prop, b[prop]);
3442
3573
  }
3443
3574
  return a;
3444
3575
  };
3445
- var __objRest$7 = (source, exclude) => {
3576
+ var __objRest$6 = (source, exclude) => {
3446
3577
  var target = {};
3447
3578
  for (var prop in source)
3448
- if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
3579
+ if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
3449
3580
  target[prop] = source[prop];
3450
- if (source != null && __getOwnPropSymbols$i)
3451
- for (var prop of __getOwnPropSymbols$i(source)) {
3452
- if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
3581
+ if (source != null && __getOwnPropSymbols$h)
3582
+ for (var prop of __getOwnPropSymbols$h(source)) {
3583
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
3453
3584
  target[prop] = source[prop];
3454
3585
  }
3455
3586
  return target;
3456
3587
  };
3457
3588
  const SearchInput = (props) => {
3458
- const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$7(_a, ["onChange", "debounceWait"]);
3589
+ const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$6(_a, ["onChange", "debounceWait"]);
3459
3590
  const onSearch = _.debounce(onChange, debounceWait);
3460
3591
  return /* @__PURE__ */ React__default.createElement(
3461
3592
  Input,
3462
- __spreadValues$i({
3593
+ __spreadValues$h({
3463
3594
  style: { width: 276 },
3464
3595
  prefix: /* @__PURE__ */ React__default.createElement(SearchOutlined, null),
3465
3596
  onChange: (e) => onSearch(e.target.value)
@@ -3467,19 +3598,19 @@ const SearchInput = (props) => {
3467
3598
  );
3468
3599
  };
3469
3600
 
3470
- var __defProp$h = Object.defineProperty;
3471
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
3472
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
3473
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
3474
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3475
- var __spreadValues$h = (a, b) => {
3601
+ var __defProp$g = Object.defineProperty;
3602
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
3603
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
3604
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
3605
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3606
+ var __spreadValues$g = (a, b) => {
3476
3607
  for (var prop in b || (b = {}))
3477
- if (__hasOwnProp$h.call(b, prop))
3478
- __defNormalProp$h(a, prop, b[prop]);
3479
- if (__getOwnPropSymbols$h)
3480
- for (var prop of __getOwnPropSymbols$h(b)) {
3481
- if (__propIsEnum$h.call(b, prop))
3482
- __defNormalProp$h(a, prop, b[prop]);
3608
+ if (__hasOwnProp$g.call(b, prop))
3609
+ __defNormalProp$g(a, prop, b[prop]);
3610
+ if (__getOwnPropSymbols$g)
3611
+ for (var prop of __getOwnPropSymbols$g(b)) {
3612
+ if (__propIsEnum$g.call(b, prop))
3613
+ __defNormalProp$g(a, prop, b[prop]);
3483
3614
  }
3484
3615
  return a;
3485
3616
  };
@@ -3493,7 +3624,7 @@ const Second = ({
3493
3624
  }) => {
3494
3625
  const { t } = useParrotTranslation();
3495
3626
  if (isEmpty(rawValue)) {
3496
- return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$h({}, emptyProps));
3627
+ return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$g({}, emptyProps));
3497
3628
  }
3498
3629
  const { value, unit } = formatSeconds(rawValue, decimals);
3499
3630
  return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value, " "), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, t(`common.${abbreviate ? `${unit}_abbreviation` : unit}`)));
@@ -3575,19 +3706,19 @@ const SimplePagination = props => {
3575
3706
  })));
3576
3707
  };
3577
3708
 
3578
- var __defProp$g = Object.defineProperty;
3579
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
3580
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
3581
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
3582
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3583
- var __spreadValues$g = (a, b) => {
3709
+ var __defProp$f = Object.defineProperty;
3710
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
3711
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
3712
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
3713
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3714
+ var __spreadValues$f = (a, b) => {
3584
3715
  for (var prop in b || (b = {}))
3585
- if (__hasOwnProp$g.call(b, prop))
3586
- __defNormalProp$g(a, prop, b[prop]);
3587
- if (__getOwnPropSymbols$g)
3588
- for (var prop of __getOwnPropSymbols$g(b)) {
3589
- if (__propIsEnum$g.call(b, prop))
3590
- __defNormalProp$g(a, prop, b[prop]);
3716
+ if (__hasOwnProp$f.call(b, prop))
3717
+ __defNormalProp$f(a, prop, b[prop]);
3718
+ if (__getOwnPropSymbols$f)
3719
+ for (var prop of __getOwnPropSymbols$f(b)) {
3720
+ if (__propIsEnum$f.call(b, prop))
3721
+ __defNormalProp$f(a, prop, b[prop]);
3591
3722
  }
3592
3723
  return a;
3593
3724
  };
@@ -3599,37 +3730,37 @@ const Speed = ({
3599
3730
  emptyProps
3600
3731
  }) => {
3601
3732
  if (isEmpty(rawValue)) {
3602
- return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$g({}, emptyProps));
3733
+ return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$f({}, emptyProps));
3603
3734
  }
3604
3735
  const { value, unit } = formatSpeed(rawValue, decimals);
3605
3736
  return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
3606
3737
  };
3607
3738
 
3608
- var __defProp$f = Object.defineProperty;
3609
- var __defProps$f = Object.defineProperties;
3610
- var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
3611
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
3612
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
3613
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
3614
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, {
3739
+ var __defProp$e = Object.defineProperty;
3740
+ var __defProps$e = Object.defineProperties;
3741
+ var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
3742
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
3743
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
3744
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
3745
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, {
3615
3746
  enumerable: true,
3616
3747
  configurable: true,
3617
3748
  writable: true,
3618
3749
  value
3619
3750
  }) : obj[key] = value;
3620
- var __spreadValues$f = (a, b) => {
3621
- for (var prop in b || (b = {})) if (__hasOwnProp$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
3622
- if (__getOwnPropSymbols$f) for (var prop of __getOwnPropSymbols$f(b)) {
3623
- if (__propIsEnum$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
3751
+ var __spreadValues$e = (a, b) => {
3752
+ for (var prop in b || (b = {})) if (__hasOwnProp$e.call(b, prop)) __defNormalProp$e(a, prop, b[prop]);
3753
+ if (__getOwnPropSymbols$e) for (var prop of __getOwnPropSymbols$e(b)) {
3754
+ if (__propIsEnum$e.call(b, prop)) __defNormalProp$e(a, prop, b[prop]);
3624
3755
  }
3625
3756
  return a;
3626
3757
  };
3627
- var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
3628
- var __objRest$6 = (source, exclude) => {
3758
+ var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
3759
+ var __objRest$5 = (source, exclude) => {
3629
3760
  var target = {};
3630
- for (var prop in source) if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
3631
- if (source != null && __getOwnPropSymbols$f) for (var prop of __getOwnPropSymbols$f(source)) {
3632
- if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop)) target[prop] = source[prop];
3761
+ for (var prop in source) if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
3762
+ if (source != null && __getOwnPropSymbols$e) for (var prop of __getOwnPropSymbols$e(source)) {
3763
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop)) target[prop] = source[prop];
3633
3764
  }
3634
3765
  return target;
3635
3766
  };
@@ -3672,9 +3803,9 @@ const StatusCapsule = _a => {
3672
3803
  offWhiteMode,
3673
3804
  number
3674
3805
  } = _b,
3675
- props = __objRest$6(_b, ["color", "className", "loading", "hoverable", "children", "offWhiteMode", "number"]);
3806
+ props = __objRest$5(_b, ["color", "className", "loading", "hoverable", "children", "offWhiteMode", "number"]);
3676
3807
  const computedColor = ColorMap[color] || color;
3677
- return /* @__PURE__ */React__default.createElement(Tag$1, __spreadProps$f(__spreadValues$f({}, props), {
3808
+ return /* @__PURE__ */React__default.createElement(Tag$1, __spreadProps$e(__spreadValues$e({}, props), {
3678
3809
  className: cs(className, StatusCapsuleStyle, Typo.Label.l4_regular, "ui-kit-status-capsule", {
3679
3810
  [`ant-tag-${computedColor}`]: PresetColors$3.includes(computedColor),
3680
3811
  "tag-hover": hoverable,
@@ -3689,115 +3820,6 @@ const StatusCapsule = _a => {
3689
3820
  }, number));
3690
3821
  };
3691
3822
 
3692
- const StepsStyle = "sq6vos1";
3693
- const HorizontalStyle = "hjtnwxg";
3694
- const VerticalStyle = "v1p8siwu";
3695
- const HorizontalStepContentStyle = "h1xo7yjb";
3696
- const VerticalStepContentStyle = "v1f2f7cy";
3697
-
3698
- var __defProp$e = Object.defineProperty;
3699
- var __defProps$e = Object.defineProperties;
3700
- var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
3701
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
3702
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
3703
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
3704
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3705
- var __spreadValues$e = (a, b) => {
3706
- for (var prop in b || (b = {}))
3707
- if (__hasOwnProp$e.call(b, prop))
3708
- __defNormalProp$e(a, prop, b[prop]);
3709
- if (__getOwnPropSymbols$e)
3710
- for (var prop of __getOwnPropSymbols$e(b)) {
3711
- if (__propIsEnum$e.call(b, prop))
3712
- __defNormalProp$e(a, prop, b[prop]);
3713
- }
3714
- return a;
3715
- };
3716
- var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
3717
- var __objRest$5 = (source, exclude) => {
3718
- var target = {};
3719
- for (var prop in source)
3720
- if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
3721
- target[prop] = source[prop];
3722
- if (source != null && __getOwnPropSymbols$e)
3723
- for (var prop of __getOwnPropSymbols$e(source)) {
3724
- if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
3725
- target[prop] = source[prop];
3726
- }
3727
- return target;
3728
- };
3729
- const StepTitle = (props) => {
3730
- const { current, step, index, isVerticalMode } = props;
3731
- const textRef = useRef(null);
3732
- const [tooltipEnable, setTooltipEnable] = useState({
3733
- visible: false
3734
- });
3735
- useLayoutEffect(() => {
3736
- if (textRef.current && textRef.current.offsetWidth < textRef.current.scrollWidth) {
3737
- setTooltipEnable({});
3738
- }
3739
- }, [textRef]);
3740
- return /* @__PURE__ */ React__default.createElement(Tooltip, __spreadProps$e(__spreadValues$e({}, tooltipEnable), { title: step.title }), /* @__PURE__ */ React__default.createElement(
3741
- "div",
3742
- {
3743
- className: isVerticalMode ? VerticalStepContentStyle : HorizontalStepContentStyle
3744
- },
3745
- /* @__PURE__ */ React__default.createElement("span", { className: "step-item-prefix-container" }, index < current ? /* @__PURE__ */ React__default.createElement(CheckmarkDoneSuccessCorrect16SecondaryIcon, null) : index + 1),
3746
- /* @__PURE__ */ React__default.createElement("span", { ref: textRef, className: "step-item-title" }, /* @__PURE__ */ React__default.createElement("span", { className: "step-item-title" }, step.title))
3747
- ));
3748
- };
3749
- const Steps = (props) => {
3750
- const _a = props, {
3751
- stepsConfig,
3752
- direction,
3753
- containerClassname,
3754
- current = 0,
3755
- disabled
3756
- } = _a, stepsProps = __objRest$5(_a, [
3757
- "stepsConfig",
3758
- "direction",
3759
- "containerClassname",
3760
- "current",
3761
- "disabled"
3762
- ]);
3763
- const isVerticalMode = direction === "vertical";
3764
- return /* @__PURE__ */ React__default.createElement(
3765
- "div",
3766
- {
3767
- className: cs(
3768
- containerClassname,
3769
- StepsStyle,
3770
- isVerticalMode ? VerticalStyle : HorizontalStyle
3771
- )
3772
- },
3773
- /* @__PURE__ */ React__default.createElement(
3774
- Steps$1,
3775
- __spreadProps$e(__spreadValues$e({}, stepsProps), {
3776
- direction,
3777
- current,
3778
- type: "default"
3779
- }),
3780
- (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */ React__default.createElement(
3781
- Steps$1.Step,
3782
- __spreadProps$e(__spreadValues$e({
3783
- key: index
3784
- }, step), {
3785
- disabled: disabled || index > current,
3786
- title: /* @__PURE__ */ React__default.createElement(
3787
- StepTitle,
3788
- {
3789
- index,
3790
- step,
3791
- current,
3792
- isVerticalMode
3793
- }
3794
- )
3795
- })
3796
- )) : props.children
3797
- )
3798
- );
3799
- };
3800
-
3801
3823
  var __defProp$d = Object.defineProperty;
3802
3824
  var __defProps$d = Object.defineProperties;
3803
3825
  var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;