@cloudtower/eagle 0.27.25 → 0.27.27

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/umd/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('@linaria/core'), require('@cloudtower/parrot'), require('react-i18next'), require('antd'), require('@cloudtower/icons-react'), require('classnames'), require('linaria/react'), require('lodash'), require('react-svg-unique-id'), require('react-transition-group'), require('@linaria/react'), require('dayjs'), require('dayjs/plugin/utc'), require('dayjs/plugin/customParseFormat'), require('moment'), require('react-dom'), require('react-is'), require('@ant-design/icons'), require('react-highlight-words'), require('recharts'), require('react-beautiful-dnd'), require('antd5'), require('@ant-design/icons/CheckCircleFilled'), require('@ant-design/icons/CloseCircleFilled'), require('@ant-design/icons/ExclamationCircleFilled'), require('@ant-design/icons/InfoCircleFilled'), require('@ant-design/icons/LoadingOutlined'), require('@cloudtower/rc-notification'), require('redux'), require('react-redux'), require('timezones.json'), require('antd/lib/locale/en_US'), require('antd/lib/locale/zh_CN')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'react', '@linaria/core', '@cloudtower/parrot', 'react-i18next', 'antd', '@cloudtower/icons-react', 'classnames', 'linaria/react', 'lodash', 'react-svg-unique-id', 'react-transition-group', '@linaria/react', 'dayjs', 'dayjs/plugin/utc', 'dayjs/plugin/customParseFormat', 'moment', 'react-dom', 'react-is', '@ant-design/icons', 'react-highlight-words', 'recharts', 'react-beautiful-dnd', 'antd5', '@ant-design/icons/CheckCircleFilled', '@ant-design/icons/CloseCircleFilled', '@ant-design/icons/ExclamationCircleFilled', '@ant-design/icons/InfoCircleFilled', '@ant-design/icons/LoadingOutlined', '@cloudtower/rc-notification', 'redux', 'react-redux', 'timezones.json', 'antd/lib/locale/en_US', 'antd/lib/locale/zh_CN'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.index = {}, global.React, global.core, global.parrot, global.reactI18next, global.antd, global.iconsReact, global.cs, global.react, global._, global.reactSvgUniqueId, global.reactTransitionGroup, global.react$1, global.dayjs, global.UTC, global.customParseFormat, global.moment, global.reactDom, global.reactIs, global.icons, global.Highlighter, global.recharts, global.reactBeautifulDnd, global.antd5, global.CheckCircleFilled, global.CloseCircleFilled, global.ExclamationCircleFilled, global.InfoCircleFilled, global.LoadingOutlined, global.RCNotification, global.redux, global.reactRedux, global.TimeZones, global.enUS, global.zhCN));
5
- })(this, (function (exports, React, core, parrot, reactI18next, antd, iconsReact, cs, react, _, reactSvgUniqueId, reactTransitionGroup, react$1, dayjs, UTC, customParseFormat, moment, reactDom, reactIs, icons, Highlighter, recharts, reactBeautifulDnd, antd5, CheckCircleFilled, CloseCircleFilled, ExclamationCircleFilled, InfoCircleFilled, LoadingOutlined, RCNotification, redux, reactRedux, TimeZones, enUS, zhCN) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('@linaria/core'), require('@cloudtower/parrot'), require('react-i18next'), require('antd'), require('@cloudtower/icons-react'), require('classnames'), require('linaria/react'), require('lodash'), require('react-svg-unique-id'), require('react-transition-group'), require('@linaria/react'), require('antd5'), require('dayjs'), require('dayjs/plugin/utc'), require('dayjs/plugin/customParseFormat'), require('moment'), require('react-dom'), require('react-is'), require('@ant-design/icons'), require('react-highlight-words'), require('recharts'), require('react-beautiful-dnd'), require('@ant-design/icons/CheckCircleFilled'), require('@ant-design/icons/CloseCircleFilled'), require('@ant-design/icons/ExclamationCircleFilled'), require('@ant-design/icons/InfoCircleFilled'), require('@ant-design/icons/LoadingOutlined'), require('@cloudtower/rc-notification'), require('redux'), require('react-redux'), require('timezones.json'), require('antd/lib/locale/en_US'), require('antd/lib/locale/zh_CN')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'react', '@linaria/core', '@cloudtower/parrot', 'react-i18next', 'antd', '@cloudtower/icons-react', 'classnames', 'linaria/react', 'lodash', 'react-svg-unique-id', 'react-transition-group', '@linaria/react', 'antd5', 'dayjs', 'dayjs/plugin/utc', 'dayjs/plugin/customParseFormat', 'moment', 'react-dom', 'react-is', '@ant-design/icons', 'react-highlight-words', 'recharts', 'react-beautiful-dnd', '@ant-design/icons/CheckCircleFilled', '@ant-design/icons/CloseCircleFilled', '@ant-design/icons/ExclamationCircleFilled', '@ant-design/icons/InfoCircleFilled', '@ant-design/icons/LoadingOutlined', '@cloudtower/rc-notification', 'redux', 'react-redux', 'timezones.json', 'antd/lib/locale/en_US', 'antd/lib/locale/zh_CN'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.index = {}, global.React, global.core, global.parrot, global.reactI18next, global.antd, global.iconsReact, global.cs, global.react, global._, global.reactSvgUniqueId, global.reactTransitionGroup, global.react$1, global.antd5, global.dayjs, global.UTC, global.customParseFormat, global.moment, global.reactDom, global.reactIs, global.icons, global.Highlighter, global.recharts, global.reactBeautifulDnd, global.CheckCircleFilled, global.CloseCircleFilled, global.ExclamationCircleFilled, global.InfoCircleFilled, global.LoadingOutlined, global.RCNotification, global.redux, global.reactRedux, global.TimeZones, global.enUS, global.zhCN));
5
+ })(this, (function (exports, React, core, parrot, reactI18next, antd, iconsReact, cs, react, _, reactSvgUniqueId, reactTransitionGroup, react$1, antd5, dayjs, UTC, customParseFormat, moment, reactDom, reactIs, icons, Highlighter, recharts, reactBeautifulDnd, CheckCircleFilled, CloseCircleFilled, ExclamationCircleFilled, InfoCircleFilled, LoadingOutlined, RCNotification, redux, reactRedux, TimeZones, enUS, zhCN) { 'use strict';
6
6
 
7
7
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
8
 
@@ -226,6 +226,36 @@
226
226
  return /* @__PURE__ */ React__namespace.default.createElement("span", { className, style }, "-");
227
227
  };
228
228
 
229
+ var __defProp$17 = Object.defineProperty;
230
+ var __getOwnPropSymbols$18 = Object.getOwnPropertySymbols;
231
+ var __hasOwnProp$18 = Object.prototype.hasOwnProperty;
232
+ var __propIsEnum$18 = Object.prototype.propertyIsEnumerable;
233
+ var __defNormalProp$17 = (obj, key, value) => key in obj ? __defProp$17(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
234
+ var __spreadValues$16 = (a, b) => {
235
+ for (var prop in b || (b = {}))
236
+ if (__hasOwnProp$18.call(b, prop))
237
+ __defNormalProp$17(a, prop, b[prop]);
238
+ if (__getOwnPropSymbols$18)
239
+ for (var prop of __getOwnPropSymbols$18(b)) {
240
+ if (__propIsEnum$18.call(b, prop))
241
+ __defNormalProp$17(a, prop, b[prop]);
242
+ }
243
+ return a;
244
+ };
245
+ const Bit = ({
246
+ rawValue,
247
+ decimals,
248
+ unitClassName,
249
+ valueClassName,
250
+ emptyProps
251
+ }) => {
252
+ if (isEmpty(rawValue)) {
253
+ return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$16({}, emptyProps));
254
+ }
255
+ const { value, unit } = formatBits(rawValue, decimals);
256
+ return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
257
+ };
258
+
229
259
  var __defProp$16 = Object.defineProperty;
230
260
  var __getOwnPropSymbols$17 = Object.getOwnPropertySymbols;
231
261
  var __hasOwnProp$17 = Object.prototype.hasOwnProperty;
@@ -242,17 +272,17 @@
242
272
  }
243
273
  return a;
244
274
  };
245
- const Bit = ({
275
+ const BitPerSeconds = ({
246
276
  rawValue,
247
277
  decimals,
248
- unitClassName,
249
278
  valueClassName,
279
+ unitClassName,
250
280
  emptyProps
251
281
  }) => {
252
282
  if (isEmpty(rawValue)) {
253
283
  return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$15({}, emptyProps));
254
284
  }
255
- const { value, unit } = formatBits(rawValue, decimals);
285
+ const { value, unit } = formatBitPerSecond(rawValue, decimals);
256
286
  return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
257
287
  };
258
288
 
@@ -272,7 +302,7 @@
272
302
  }
273
303
  return a;
274
304
  };
275
- const BitPerSeconds = ({
305
+ const Bps = ({
276
306
  rawValue,
277
307
  decimals,
278
308
  valueClassName,
@@ -282,10 +312,16 @@
282
312
  if (isEmpty(rawValue)) {
283
313
  return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$14({}, emptyProps));
284
314
  }
285
- const { value, unit } = formatBitPerSecond(rawValue, decimals);
315
+ const { value, unit } = formatBps(rawValue, decimals);
286
316
  return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
287
317
  };
288
318
 
319
+ const useParrotTranslation = () => {
320
+ return reactI18next.useTranslation(void 0, {
321
+ i18n: parrot.parrotI18n
322
+ });
323
+ };
324
+
289
325
  var __defProp$14 = Object.defineProperty;
290
326
  var __getOwnPropSymbols$15 = Object.getOwnPropertySymbols;
291
327
  var __hasOwnProp$15 = Object.prototype.hasOwnProperty;
@@ -302,26 +338,28 @@
302
338
  }
303
339
  return a;
304
340
  };
305
- const Bps = ({
341
+ const Byte = ({
306
342
  rawValue,
343
+ noUnitOnZero,
307
344
  decimals,
308
345
  valueClassName,
309
346
  unitClassName,
310
347
  emptyProps
311
348
  }) => {
349
+ const { t } = useParrotTranslation();
312
350
  if (isEmpty(rawValue)) {
313
351
  return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$13({}, emptyProps));
314
352
  }
315
- const { value, unit } = formatBps(rawValue, decimals);
353
+ if (rawValue === -1) {
354
+ return /* @__PURE__ */ React__namespace.default.createElement("span", null, t("common.calculation"));
355
+ }
356
+ const { value, unit } = formatBytes(rawValue, decimals);
357
+ if (noUnitOnZero && value === 0) {
358
+ return /* @__PURE__ */ React__namespace.default.createElement("span", { className: "value" }, value);
359
+ }
316
360
  return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
317
361
  };
318
362
 
319
- const useParrotTranslation = () => {
320
- return reactI18next.useTranslation(void 0, {
321
- i18n: parrot.parrotI18n
322
- });
323
- };
324
-
325
363
  var __defProp$13 = Object.defineProperty;
326
364
  var __getOwnPropSymbols$14 = Object.getOwnPropertySymbols;
327
365
  var __hasOwnProp$14 = Object.prototype.hasOwnProperty;
@@ -338,25 +376,17 @@
338
376
  }
339
377
  return a;
340
378
  };
341
- const Byte = ({
379
+ const Frequency = ({
342
380
  rawValue,
343
- noUnitOnZero,
344
381
  decimals,
345
382
  valueClassName,
346
383
  unitClassName,
347
384
  emptyProps
348
385
  }) => {
349
- const { t } = useParrotTranslation();
350
386
  if (isEmpty(rawValue)) {
351
387
  return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$12({}, emptyProps));
352
388
  }
353
- if (rawValue === -1) {
354
- return /* @__PURE__ */ React__namespace.default.createElement("span", null, t("common.calculation"));
355
- }
356
- const { value, unit } = formatBytes(rawValue, decimals);
357
- if (noUnitOnZero && value === 0) {
358
- return /* @__PURE__ */ React__namespace.default.createElement("span", { className: "value" }, value);
359
- }
389
+ const { value, unit } = formatFrequency(rawValue, decimals);
360
390
  return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
361
391
  };
362
392
 
@@ -376,9 +406,10 @@
376
406
  }
377
407
  return a;
378
408
  };
379
- const Frequency = ({
409
+ const Percent = ({
380
410
  rawValue,
381
411
  decimals,
412
+ saturated,
382
413
  valueClassName,
383
414
  unitClassName,
384
415
  emptyProps
@@ -386,8 +417,8 @@
386
417
  if (isEmpty(rawValue)) {
387
418
  return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$11({}, emptyProps));
388
419
  }
389
- const { value, unit } = formatFrequency(rawValue, decimals);
390
- return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
420
+ const { value, unit } = formatPercent(rawValue, decimals, saturated);
421
+ return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, unit));
391
422
  };
392
423
 
393
424
  var __defProp$11 = Object.defineProperty;
@@ -406,19 +437,20 @@
406
437
  }
407
438
  return a;
408
439
  };
409
- const Percent = ({
440
+ const Second = ({
410
441
  rawValue,
411
442
  decimals,
412
- saturated,
413
443
  valueClassName,
414
444
  unitClassName,
445
+ abbreviate,
415
446
  emptyProps
416
447
  }) => {
448
+ const { t } = useParrotTranslation();
417
449
  if (isEmpty(rawValue)) {
418
450
  return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$10({}, emptyProps));
419
451
  }
420
- const { value, unit } = formatPercent(rawValue, decimals, saturated);
421
- return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, unit));
452
+ const { value, unit } = formatSeconds(rawValue, decimals);
453
+ return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value, " "), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, t(`common.${abbreviate ? `${unit}_abbreviation` : unit}`)));
422
454
  };
423
455
 
424
456
  var __defProp$10 = Object.defineProperty;
@@ -437,20 +469,18 @@
437
469
  }
438
470
  return a;
439
471
  };
440
- const Second = ({
472
+ const Speed = ({
441
473
  rawValue,
442
474
  decimals,
443
475
  valueClassName,
444
476
  unitClassName,
445
- abbreviate,
446
477
  emptyProps
447
478
  }) => {
448
- const { t } = useParrotTranslation();
449
479
  if (isEmpty(rawValue)) {
450
480
  return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$$({}, emptyProps));
451
481
  }
452
- const { value, unit } = formatSeconds(rawValue, decimals);
453
- return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value, " "), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, t(`common.${abbreviate ? `${unit}_abbreviation` : unit}`)));
482
+ const { value, unit } = formatSpeed(rawValue, decimals);
483
+ return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
454
484
  };
455
485
 
456
486
  var __defProp$$ = Object.defineProperty;
@@ -469,44 +499,14 @@
469
499
  }
470
500
  return a;
471
501
  };
472
- const Speed = ({
473
- rawValue,
474
- decimals,
475
- valueClassName,
476
- unitClassName,
477
- emptyProps
478
- }) => {
479
- if (isEmpty(rawValue)) {
480
- return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$_({}, emptyProps));
481
- }
482
- const { value, unit } = formatSpeed(rawValue, decimals);
483
- return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
484
- };
485
-
486
- var __defProp$_ = Object.defineProperty;
487
- var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
488
- var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
489
- var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
490
- var __defNormalProp$_ = (obj, key, value) => key in obj ? __defProp$_(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
491
- var __spreadValues$Z = (a, b) => {
492
- for (var prop in b || (b = {}))
493
- if (__hasOwnProp$$.call(b, prop))
494
- __defNormalProp$_(a, prop, b[prop]);
495
- if (__getOwnPropSymbols$$)
496
- for (var prop of __getOwnPropSymbols$$(b)) {
497
- if (__propIsEnum$$.call(b, prop))
498
- __defNormalProp$_(a, prop, b[prop]);
499
- }
500
- return a;
501
- };
502
502
  var __objRest$D = (source, exclude) => {
503
503
  var target = {};
504
504
  for (var prop in source)
505
- if (__hasOwnProp$$.call(source, prop) && exclude.indexOf(prop) < 0)
505
+ if (__hasOwnProp$10.call(source, prop) && exclude.indexOf(prop) < 0)
506
506
  target[prop] = source[prop];
507
- if (source != null && __getOwnPropSymbols$$)
508
- for (var prop of __getOwnPropSymbols$$(source)) {
509
- if (exclude.indexOf(prop) < 0 && __propIsEnum$$.call(source, prop))
507
+ if (source != null && __getOwnPropSymbols$10)
508
+ for (var prop of __getOwnPropSymbols$10(source)) {
509
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$10.call(source, prop))
510
510
  target[prop] = source[prop];
511
511
  }
512
512
  return target;
@@ -538,10 +538,10 @@
538
538
  ]);
539
539
  return /* @__PURE__ */ React__namespace.default.createElement(
540
540
  "span",
541
- __spreadValues$Z({
541
+ __spreadValues$_({
542
542
  ref,
543
543
  className,
544
- style: ___default.default.pickBy(__spreadValues$Z({ cursor }, style))
544
+ style: ___default.default.pickBy(__spreadValues$_({ cursor }, style))
545
545
  }, HTMLSpanElementProps),
546
546
  prefixNode,
547
547
  /* @__PURE__ */ React__namespace.default.createElement("span", { className: "icon-inner" }, typeof Src === "string" ? /* @__PURE__ */ React__namespace.default.createElement("img", { alt, src: Src, width, height }) : /* @__PURE__ */ React__namespace.default.createElement(reactSvgUniqueId.SVGUniqueID, null, Src({ width, height }))),
@@ -551,31 +551,31 @@
551
551
  }
552
552
  );
553
553
 
554
- var __defProp$Z = Object.defineProperty;
554
+ var __defProp$_ = Object.defineProperty;
555
555
  var __defProps$J = Object.defineProperties;
556
556
  var __getOwnPropDescs$J = Object.getOwnPropertyDescriptors;
557
- var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
558
- var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
559
- var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
560
- var __defNormalProp$Z = (obj, key, value) => key in obj ? __defProp$Z(obj, key, {
557
+ var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
558
+ var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
559
+ var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
560
+ var __defNormalProp$_ = (obj, key, value) => key in obj ? __defProp$_(obj, key, {
561
561
  enumerable: true,
562
562
  configurable: true,
563
563
  writable: true,
564
564
  value
565
565
  }) : obj[key] = value;
566
- var __spreadValues$Y = (a, b) => {
567
- for (var prop in b || (b = {})) if (__hasOwnProp$_.call(b, prop)) __defNormalProp$Z(a, prop, b[prop]);
568
- if (__getOwnPropSymbols$_) for (var prop of __getOwnPropSymbols$_(b)) {
569
- if (__propIsEnum$_.call(b, prop)) __defNormalProp$Z(a, prop, b[prop]);
566
+ var __spreadValues$Z = (a, b) => {
567
+ for (var prop in b || (b = {})) if (__hasOwnProp$$.call(b, prop)) __defNormalProp$_(a, prop, b[prop]);
568
+ if (__getOwnPropSymbols$$) for (var prop of __getOwnPropSymbols$$(b)) {
569
+ if (__propIsEnum$$.call(b, prop)) __defNormalProp$_(a, prop, b[prop]);
570
570
  }
571
571
  return a;
572
572
  };
573
573
  var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
574
574
  var __objRest$C = (source, exclude) => {
575
575
  var target = {};
576
- for (var prop in source) if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
577
- if (source != null && __getOwnPropSymbols$_) for (var prop of __getOwnPropSymbols$_(source)) {
578
- if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop)) target[prop] = source[prop];
576
+ for (var prop in source) if (__hasOwnProp$$.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
577
+ if (source != null && __getOwnPropSymbols$$) for (var prop of __getOwnPropSymbols$$(source)) {
578
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$$.call(source, prop)) target[prop] = source[prop];
579
579
  }
580
580
  return target;
581
581
  };
@@ -627,14 +627,14 @@
627
627
  }
628
628
  return src2;
629
629
  }, [active, hover, suffix]);
630
- return /* @__PURE__ */React__namespace.default.createElement(BaseIcon, __spreadProps$J(__spreadValues$Y({
630
+ return /* @__PURE__ */React__namespace.default.createElement(BaseIcon, __spreadProps$J(__spreadValues$Z({
631
631
  src: _src,
632
632
  className: cs__default.default(IconWrapper, "icon-wrapper", className, isRotate && "is-rotate"),
633
633
  suffixIconSrc,
634
634
  height: iconHeight,
635
635
  width: iconWidth,
636
636
  prefixNode: prefix,
637
- style: ___default.default.pickBy(__spreadValues$Y({
637
+ style: ___default.default.pickBy(__spreadValues$Z({
638
638
  cursor
639
639
  }, style))
640
640
  }, restProps), {
@@ -659,30 +659,30 @@
659
659
  }));
660
660
  });
661
661
 
662
- var __defProp$Y = Object.defineProperty;
663
- var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
664
- var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
665
- var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
666
- var __defNormalProp$Y = (obj, key, value) => key in obj ? __defProp$Y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
667
- var __spreadValues$X = (a, b) => {
662
+ var __defProp$Z = Object.defineProperty;
663
+ var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
664
+ var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
665
+ var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
666
+ var __defNormalProp$Z = (obj, key, value) => key in obj ? __defProp$Z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
667
+ var __spreadValues$Y = (a, b) => {
668
668
  for (var prop in b || (b = {}))
669
- if (__hasOwnProp$Z.call(b, prop))
670
- __defNormalProp$Y(a, prop, b[prop]);
671
- if (__getOwnPropSymbols$Z)
672
- for (var prop of __getOwnPropSymbols$Z(b)) {
673
- if (__propIsEnum$Z.call(b, prop))
674
- __defNormalProp$Y(a, prop, b[prop]);
669
+ if (__hasOwnProp$_.call(b, prop))
670
+ __defNormalProp$Z(a, prop, b[prop]);
671
+ if (__getOwnPropSymbols$_)
672
+ for (var prop of __getOwnPropSymbols$_(b)) {
673
+ if (__propIsEnum$_.call(b, prop))
674
+ __defNormalProp$Z(a, prop, b[prop]);
675
675
  }
676
676
  return a;
677
677
  };
678
678
  var __objRest$B = (source, exclude) => {
679
679
  var target = {};
680
680
  for (var prop in source)
681
- if (__hasOwnProp$Z.call(source, prop) && exclude.indexOf(prop) < 0)
681
+ if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
682
682
  target[prop] = source[prop];
683
- if (source != null && __getOwnPropSymbols$Z)
684
- for (var prop of __getOwnPropSymbols$Z(source)) {
685
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Z.call(source, prop))
683
+ if (source != null && __getOwnPropSymbols$_)
684
+ for (var prop of __getOwnPropSymbols$_(source)) {
685
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
686
686
  target[prop] = source[prop];
687
687
  }
688
688
  return target;
@@ -703,7 +703,7 @@
703
703
  ]);
704
704
  return /* @__PURE__ */ React__namespace.default.createElement(
705
705
  reactTransitionGroup.CSSTransition,
706
- __spreadValues$X({
706
+ __spreadValues$Y({
707
707
  in: visible,
708
708
  timeout: timeout || 200,
709
709
  mountOnEnter,
@@ -963,21 +963,21 @@
963
963
  }, props.children));
964
964
  };
965
965
 
966
- var __defProp$X = Object.defineProperty;
966
+ var __defProp$Y = Object.defineProperty;
967
967
  var __defProps$I = Object.defineProperties;
968
968
  var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
969
- var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
970
- var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
971
- var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
972
- var __defNormalProp$X = (obj, key, value) => key in obj ? __defProp$X(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
973
- var __spreadValues$W = (a, b) => {
969
+ var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
970
+ var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
971
+ var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
972
+ var __defNormalProp$Y = (obj, key, value) => key in obj ? __defProp$Y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
973
+ var __spreadValues$X = (a, b) => {
974
974
  for (var prop in b || (b = {}))
975
- if (__hasOwnProp$Y.call(b, prop))
976
- __defNormalProp$X(a, prop, b[prop]);
977
- if (__getOwnPropSymbols$Y)
978
- for (var prop of __getOwnPropSymbols$Y(b)) {
979
- if (__propIsEnum$Y.call(b, prop))
980
- __defNormalProp$X(a, prop, b[prop]);
975
+ if (__hasOwnProp$Z.call(b, prop))
976
+ __defNormalProp$Y(a, prop, b[prop]);
977
+ if (__getOwnPropSymbols$Z)
978
+ for (var prop of __getOwnPropSymbols$Z(b)) {
979
+ if (__propIsEnum$Z.call(b, prop))
980
+ __defNormalProp$Y(a, prop, b[prop]);
981
981
  }
982
982
  return a;
983
983
  };
@@ -985,11 +985,11 @@
985
985
  var __objRest$A = (source, exclude) => {
986
986
  var target = {};
987
987
  for (var prop in source)
988
- if (__hasOwnProp$Y.call(source, prop) && exclude.indexOf(prop) < 0)
988
+ if (__hasOwnProp$Z.call(source, prop) && exclude.indexOf(prop) < 0)
989
989
  target[prop] = source[prop];
990
- if (source != null && __getOwnPropSymbols$Y)
991
- for (var prop of __getOwnPropSymbols$Y(source)) {
992
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Y.call(source, prop))
990
+ if (source != null && __getOwnPropSymbols$Z)
991
+ for (var prop of __getOwnPropSymbols$Z(source)) {
992
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$Z.call(source, prop))
993
993
  target[prop] = source[prop];
994
994
  }
995
995
  return target;
@@ -1043,10 +1043,10 @@
1043
1043
  }, [followMouse, onmousemove, uniqueContainerClass]);
1044
1044
  return /* @__PURE__ */ React__namespace.default.createElement(
1045
1045
  antd.Tooltip,
1046
- __spreadProps$I(__spreadValues$W({}, restProps), {
1046
+ __spreadProps$I(__spreadValues$X({}, restProps), {
1047
1047
  overlayClassName: followMouse ? cs__default.default(overlayClassName, uniquePopupClass) : overlayClassName,
1048
1048
  children: _children,
1049
- overlayStyle: followMouse ? __spreadValues$W({
1049
+ overlayStyle: followMouse ? __spreadValues$X({
1050
1050
  transform: "translate(-50%, -100%)",
1051
1051
  pointerEvents: "none"
1052
1052
  }, overlayStyle) : overlayStyle
@@ -1108,6 +1108,41 @@
1108
1108
  }, /* @__PURE__ */React__namespace.default.createElement("span", null, slotsElements.trigger ? slotsElements.trigger({}) : null));
1109
1109
  };
1110
1110
 
1111
+ var __defProp$X = Object.defineProperty;
1112
+ var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
1113
+ var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
1114
+ var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
1115
+ var __defNormalProp$X = (obj, key, value) => key in obj ? __defProp$X(obj, key, {
1116
+ enumerable: true,
1117
+ configurable: true,
1118
+ writable: true,
1119
+ value
1120
+ }) : obj[key] = value;
1121
+ var __spreadValues$W = (a, b) => {
1122
+ for (var prop in b || (b = {})) if (__hasOwnProp$Y.call(b, prop)) __defNormalProp$X(a, prop, b[prop]);
1123
+ if (__getOwnPropSymbols$Y) for (var prop of __getOwnPropSymbols$Y(b)) {
1124
+ if (__propIsEnum$Y.call(b, prop)) __defNormalProp$X(a, prop, b[prop]);
1125
+ }
1126
+ return a;
1127
+ };
1128
+ const Segment = "s11wux3h";
1129
+ const SmallSegment = "s1t2an3z";
1130
+ const MediumSegment = "ma64lna";
1131
+ const ColorSegment = "ckld275";
1132
+ const SegmentControl = props => {
1133
+ const {
1134
+ size = "middle",
1135
+ className
1136
+ } = props;
1137
+ return /* @__PURE__ */React__namespace.default.createElement(antd5.Segmented, __spreadValues$W({
1138
+ className: cs__default.default(className, {
1139
+ [SmallSegment]: size === "small",
1140
+ [MediumSegment]: size === "middle"
1141
+ }, Segment, ColorSegment),
1142
+ size
1143
+ }, props));
1144
+ };
1145
+
1111
1146
  const CircleProgressStyle = "c1bus5hc";
1112
1147
  const CircleProgress = props => {
1113
1148
  const {
@@ -9343,7 +9378,8 @@
9343
9378
  Link,
9344
9379
  DropdownMenu,
9345
9380
  BatchOperation,
9346
- DateRangePicker
9381
+ DateRangePicker,
9382
+ SegmentedControl: SegmentControl
9347
9383
  };
9348
9384
  kit.option.isSelectOption = true;
9349
9385
  kit.button.__ANT_BUTTON = true;