@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.
@@ -0,0 +1,39 @@
1
+ /// <reference types="react" />
2
+ import { Meta } from "@storybook/react";
3
+ import SegmentControl from "./";
4
+ declare const meta: Meta<typeof SegmentControl>;
5
+ export default meta;
6
+ export declare const Simple: {
7
+ docs: {
8
+ description: {
9
+ story: string;
10
+ };
11
+ };
12
+ args: {
13
+ options: string[];
14
+ };
15
+ };
16
+ export declare const SmallSize: {
17
+ docs: {
18
+ description: {
19
+ story: string;
20
+ };
21
+ };
22
+ args: {
23
+ size: string;
24
+ options: string[];
25
+ };
26
+ };
27
+ export declare const CustomRender: {
28
+ docs: {
29
+ description: {
30
+ story: string;
31
+ };
32
+ };
33
+ args: {
34
+ options: {
35
+ label: JSX.Element;
36
+ value: string;
37
+ }[];
38
+ };
39
+ };
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ISegmentedControlProps } from "../../spec/type";
3
+ declare const SegmentControl: (props: ISegmentedControlProps) => JSX.Element;
4
+ export default SegmentControl;
package/dist/esm/index.js CHANGED
@@ -13,6 +13,7 @@ import _, { isEqual, debounce, uniqBy, groupBy, sortBy, toPairs } from 'lodash';
13
13
  import { SVGUniqueID } from 'react-svg-unique-id';
14
14
  import { CSSTransition } from 'react-transition-group';
15
15
  import { styled as styled$1 } from '@linaria/react';
16
+ import { Segmented, Cascader as Cascader$1 } from 'antd5';
16
17
  import dayjs from 'dayjs';
17
18
  import UTC from 'dayjs/plugin/utc';
18
19
  import customParseFormat from 'dayjs/plugin/customParseFormat';
@@ -23,7 +24,6 @@ import { CloseCircleFilled, LeftOutlined, RightOutlined, FormOutlined, SearchOut
23
24
  import Highlighter from 'react-highlight-words';
24
25
  import { RadialBarChart, PolarAngleAxis, RadialBar } from 'recharts';
25
26
  import { Draggable, DragDropContext, Droppable } from 'react-beautiful-dnd';
26
- import { Cascader as Cascader$1 } from 'antd5';
27
27
  import CheckCircleFilled from '@ant-design/icons/CheckCircleFilled';
28
28
  import CloseCircleFilled$1 from '@ant-design/icons/CloseCircleFilled';
29
29
  import ExclamationCircleFilled from '@ant-design/icons/ExclamationCircleFilled';
@@ -220,6 +220,36 @@ const Empty = (props) => {
220
220
  return /* @__PURE__ */ React__default.createElement("span", { className, style }, "-");
221
221
  };
222
222
 
223
+ var __defProp$17 = Object.defineProperty;
224
+ var __getOwnPropSymbols$18 = Object.getOwnPropertySymbols;
225
+ var __hasOwnProp$18 = Object.prototype.hasOwnProperty;
226
+ var __propIsEnum$18 = Object.prototype.propertyIsEnumerable;
227
+ var __defNormalProp$17 = (obj, key, value) => key in obj ? __defProp$17(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
228
+ var __spreadValues$16 = (a, b) => {
229
+ for (var prop in b || (b = {}))
230
+ if (__hasOwnProp$18.call(b, prop))
231
+ __defNormalProp$17(a, prop, b[prop]);
232
+ if (__getOwnPropSymbols$18)
233
+ for (var prop of __getOwnPropSymbols$18(b)) {
234
+ if (__propIsEnum$18.call(b, prop))
235
+ __defNormalProp$17(a, prop, b[prop]);
236
+ }
237
+ return a;
238
+ };
239
+ const Bit = ({
240
+ rawValue,
241
+ decimals,
242
+ unitClassName,
243
+ valueClassName,
244
+ emptyProps
245
+ }) => {
246
+ if (isEmpty(rawValue)) {
247
+ return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$16({}, emptyProps));
248
+ }
249
+ const { value, unit } = formatBits(rawValue, decimals);
250
+ 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}`));
251
+ };
252
+
223
253
  var __defProp$16 = Object.defineProperty;
224
254
  var __getOwnPropSymbols$17 = Object.getOwnPropertySymbols;
225
255
  var __hasOwnProp$17 = Object.prototype.hasOwnProperty;
@@ -236,17 +266,17 @@ var __spreadValues$15 = (a, b) => {
236
266
  }
237
267
  return a;
238
268
  };
239
- const Bit = ({
269
+ const BitPerSeconds = ({
240
270
  rawValue,
241
271
  decimals,
242
- unitClassName,
243
272
  valueClassName,
273
+ unitClassName,
244
274
  emptyProps
245
275
  }) => {
246
276
  if (isEmpty(rawValue)) {
247
277
  return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$15({}, emptyProps));
248
278
  }
249
- const { value, unit } = formatBits(rawValue, decimals);
279
+ const { value, unit } = formatBitPerSecond(rawValue, decimals);
250
280
  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}`));
251
281
  };
252
282
 
@@ -266,7 +296,7 @@ var __spreadValues$14 = (a, b) => {
266
296
  }
267
297
  return a;
268
298
  };
269
- const BitPerSeconds = ({
299
+ const Bps = ({
270
300
  rawValue,
271
301
  decimals,
272
302
  valueClassName,
@@ -276,10 +306,16 @@ const BitPerSeconds = ({
276
306
  if (isEmpty(rawValue)) {
277
307
  return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$14({}, emptyProps));
278
308
  }
279
- const { value, unit } = formatBitPerSecond(rawValue, decimals);
309
+ const { value, unit } = formatBps(rawValue, decimals);
280
310
  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}`));
281
311
  };
282
312
 
313
+ const useParrotTranslation = () => {
314
+ return useTranslation(void 0, {
315
+ i18n: parrotI18n
316
+ });
317
+ };
318
+
283
319
  var __defProp$14 = Object.defineProperty;
284
320
  var __getOwnPropSymbols$15 = Object.getOwnPropertySymbols;
285
321
  var __hasOwnProp$15 = Object.prototype.hasOwnProperty;
@@ -296,26 +332,28 @@ var __spreadValues$13 = (a, b) => {
296
332
  }
297
333
  return a;
298
334
  };
299
- const Bps = ({
335
+ const Byte = ({
300
336
  rawValue,
337
+ noUnitOnZero,
301
338
  decimals,
302
339
  valueClassName,
303
340
  unitClassName,
304
341
  emptyProps
305
342
  }) => {
343
+ const { t } = useParrotTranslation();
306
344
  if (isEmpty(rawValue)) {
307
345
  return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$13({}, emptyProps));
308
346
  }
309
- const { value, unit } = formatBps(rawValue, decimals);
347
+ if (rawValue === -1) {
348
+ return /* @__PURE__ */ React__default.createElement("span", null, t("common.calculation"));
349
+ }
350
+ const { value, unit } = formatBytes(rawValue, decimals);
351
+ if (noUnitOnZero && value === 0) {
352
+ return /* @__PURE__ */ React__default.createElement("span", { className: "value" }, value);
353
+ }
310
354
  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}`));
311
355
  };
312
356
 
313
- const useParrotTranslation = () => {
314
- return useTranslation(void 0, {
315
- i18n: parrotI18n
316
- });
317
- };
318
-
319
357
  var __defProp$13 = Object.defineProperty;
320
358
  var __getOwnPropSymbols$14 = Object.getOwnPropertySymbols;
321
359
  var __hasOwnProp$14 = Object.prototype.hasOwnProperty;
@@ -332,25 +370,17 @@ var __spreadValues$12 = (a, b) => {
332
370
  }
333
371
  return a;
334
372
  };
335
- const Byte = ({
373
+ const Frequency = ({
336
374
  rawValue,
337
- noUnitOnZero,
338
375
  decimals,
339
376
  valueClassName,
340
377
  unitClassName,
341
378
  emptyProps
342
379
  }) => {
343
- const { t } = useParrotTranslation();
344
380
  if (isEmpty(rawValue)) {
345
381
  return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$12({}, emptyProps));
346
382
  }
347
- if (rawValue === -1) {
348
- return /* @__PURE__ */ React__default.createElement("span", null, t("common.calculation"));
349
- }
350
- const { value, unit } = formatBytes(rawValue, decimals);
351
- if (noUnitOnZero && value === 0) {
352
- return /* @__PURE__ */ React__default.createElement("span", { className: "value" }, value);
353
- }
383
+ const { value, unit } = formatFrequency(rawValue, decimals);
354
384
  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}`));
355
385
  };
356
386
 
@@ -370,9 +400,10 @@ var __spreadValues$11 = (a, b) => {
370
400
  }
371
401
  return a;
372
402
  };
373
- const Frequency = ({
403
+ const Percent = ({
374
404
  rawValue,
375
405
  decimals,
406
+ saturated,
376
407
  valueClassName,
377
408
  unitClassName,
378
409
  emptyProps
@@ -380,8 +411,8 @@ const Frequency = ({
380
411
  if (isEmpty(rawValue)) {
381
412
  return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$11({}, emptyProps));
382
413
  }
383
- const { value, unit } = formatFrequency(rawValue, decimals);
384
- 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}`));
414
+ const { value, unit } = formatPercent(rawValue, decimals, saturated);
415
+ 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));
385
416
  };
386
417
 
387
418
  var __defProp$11 = Object.defineProperty;
@@ -400,19 +431,20 @@ var __spreadValues$10 = (a, b) => {
400
431
  }
401
432
  return a;
402
433
  };
403
- const Percent = ({
434
+ const Second = ({
404
435
  rawValue,
405
436
  decimals,
406
- saturated,
407
437
  valueClassName,
408
438
  unitClassName,
439
+ abbreviate,
409
440
  emptyProps
410
441
  }) => {
442
+ const { t } = useParrotTranslation();
411
443
  if (isEmpty(rawValue)) {
412
444
  return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$10({}, emptyProps));
413
445
  }
414
- const { value, unit } = formatPercent(rawValue, decimals, saturated);
415
- 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));
446
+ const { value, unit } = formatSeconds(rawValue, decimals);
447
+ 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}`)));
416
448
  };
417
449
 
418
450
  var __defProp$10 = Object.defineProperty;
@@ -431,20 +463,18 @@ var __spreadValues$$ = (a, b) => {
431
463
  }
432
464
  return a;
433
465
  };
434
- const Second = ({
466
+ const Speed = ({
435
467
  rawValue,
436
468
  decimals,
437
469
  valueClassName,
438
470
  unitClassName,
439
- abbreviate,
440
471
  emptyProps
441
472
  }) => {
442
- const { t } = useParrotTranslation();
443
473
  if (isEmpty(rawValue)) {
444
474
  return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$$({}, emptyProps));
445
475
  }
446
- const { value, unit } = formatSeconds(rawValue, decimals);
447
- 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}`)));
476
+ const { value, unit } = formatSpeed(rawValue, decimals);
477
+ 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}`));
448
478
  };
449
479
 
450
480
  var __defProp$$ = Object.defineProperty;
@@ -463,44 +493,14 @@ var __spreadValues$_ = (a, b) => {
463
493
  }
464
494
  return a;
465
495
  };
466
- const Speed = ({
467
- rawValue,
468
- decimals,
469
- valueClassName,
470
- unitClassName,
471
- emptyProps
472
- }) => {
473
- if (isEmpty(rawValue)) {
474
- return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$_({}, emptyProps));
475
- }
476
- const { value, unit } = formatSpeed(rawValue, decimals);
477
- 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}`));
478
- };
479
-
480
- var __defProp$_ = Object.defineProperty;
481
- var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
482
- var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
483
- var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
484
- var __defNormalProp$_ = (obj, key, value) => key in obj ? __defProp$_(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
485
- var __spreadValues$Z = (a, b) => {
486
- for (var prop in b || (b = {}))
487
- if (__hasOwnProp$$.call(b, prop))
488
- __defNormalProp$_(a, prop, b[prop]);
489
- if (__getOwnPropSymbols$$)
490
- for (var prop of __getOwnPropSymbols$$(b)) {
491
- if (__propIsEnum$$.call(b, prop))
492
- __defNormalProp$_(a, prop, b[prop]);
493
- }
494
- return a;
495
- };
496
496
  var __objRest$D = (source, exclude) => {
497
497
  var target = {};
498
498
  for (var prop in source)
499
- if (__hasOwnProp$$.call(source, prop) && exclude.indexOf(prop) < 0)
499
+ if (__hasOwnProp$10.call(source, prop) && exclude.indexOf(prop) < 0)
500
500
  target[prop] = source[prop];
501
- if (source != null && __getOwnPropSymbols$$)
502
- for (var prop of __getOwnPropSymbols$$(source)) {
503
- if (exclude.indexOf(prop) < 0 && __propIsEnum$$.call(source, prop))
501
+ if (source != null && __getOwnPropSymbols$10)
502
+ for (var prop of __getOwnPropSymbols$10(source)) {
503
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$10.call(source, prop))
504
504
  target[prop] = source[prop];
505
505
  }
506
506
  return target;
@@ -532,10 +532,10 @@ const BaseIcon = React__default.forwardRef(
532
532
  ]);
533
533
  return /* @__PURE__ */ React__default.createElement(
534
534
  "span",
535
- __spreadValues$Z({
535
+ __spreadValues$_({
536
536
  ref,
537
537
  className,
538
- style: _.pickBy(__spreadValues$Z({ cursor }, style))
538
+ style: _.pickBy(__spreadValues$_({ cursor }, style))
539
539
  }, HTMLSpanElementProps),
540
540
  prefixNode,
541
541
  /* @__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 }))),
@@ -545,31 +545,31 @@ const BaseIcon = React__default.forwardRef(
545
545
  }
546
546
  );
547
547
 
548
- var __defProp$Z = Object.defineProperty;
548
+ var __defProp$_ = Object.defineProperty;
549
549
  var __defProps$J = Object.defineProperties;
550
550
  var __getOwnPropDescs$J = Object.getOwnPropertyDescriptors;
551
- var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
552
- var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
553
- var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
554
- var __defNormalProp$Z = (obj, key, value) => key in obj ? __defProp$Z(obj, key, {
551
+ var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
552
+ var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
553
+ var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
554
+ var __defNormalProp$_ = (obj, key, value) => key in obj ? __defProp$_(obj, key, {
555
555
  enumerable: true,
556
556
  configurable: true,
557
557
  writable: true,
558
558
  value
559
559
  }) : obj[key] = value;
560
- var __spreadValues$Y = (a, b) => {
561
- for (var prop in b || (b = {})) if (__hasOwnProp$_.call(b, prop)) __defNormalProp$Z(a, prop, b[prop]);
562
- if (__getOwnPropSymbols$_) for (var prop of __getOwnPropSymbols$_(b)) {
563
- if (__propIsEnum$_.call(b, prop)) __defNormalProp$Z(a, prop, b[prop]);
560
+ var __spreadValues$Z = (a, b) => {
561
+ for (var prop in b || (b = {})) if (__hasOwnProp$$.call(b, prop)) __defNormalProp$_(a, prop, b[prop]);
562
+ if (__getOwnPropSymbols$$) for (var prop of __getOwnPropSymbols$$(b)) {
563
+ if (__propIsEnum$$.call(b, prop)) __defNormalProp$_(a, prop, b[prop]);
564
564
  }
565
565
  return a;
566
566
  };
567
567
  var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
568
568
  var __objRest$C = (source, exclude) => {
569
569
  var target = {};
570
- for (var prop in source) if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
571
- if (source != null && __getOwnPropSymbols$_) for (var prop of __getOwnPropSymbols$_(source)) {
572
- if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop)) target[prop] = source[prop];
570
+ for (var prop in source) if (__hasOwnProp$$.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
571
+ if (source != null && __getOwnPropSymbols$$) for (var prop of __getOwnPropSymbols$$(source)) {
572
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$$.call(source, prop)) target[prop] = source[prop];
573
573
  }
574
574
  return target;
575
575
  };
@@ -621,14 +621,14 @@ const Icon = React__default.forwardRef((props, ref) => {
621
621
  }
622
622
  return src2;
623
623
  }, [active, hover, suffix]);
624
- return /* @__PURE__ */React__default.createElement(BaseIcon, __spreadProps$J(__spreadValues$Y({
624
+ return /* @__PURE__ */React__default.createElement(BaseIcon, __spreadProps$J(__spreadValues$Z({
625
625
  src: _src,
626
626
  className: cs(IconWrapper, "icon-wrapper", className, isRotate && "is-rotate"),
627
627
  suffixIconSrc,
628
628
  height: iconHeight,
629
629
  width: iconWidth,
630
630
  prefixNode: prefix,
631
- style: _.pickBy(__spreadValues$Y({
631
+ style: _.pickBy(__spreadValues$Z({
632
632
  cursor
633
633
  }, style))
634
634
  }, restProps), {
@@ -653,30 +653,30 @@ const Icon = React__default.forwardRef((props, ref) => {
653
653
  }));
654
654
  });
655
655
 
656
- var __defProp$Y = Object.defineProperty;
657
- var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
658
- var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
659
- var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
660
- var __defNormalProp$Y = (obj, key, value) => key in obj ? __defProp$Y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
661
- var __spreadValues$X = (a, b) => {
656
+ var __defProp$Z = Object.defineProperty;
657
+ var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
658
+ var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
659
+ var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
660
+ var __defNormalProp$Z = (obj, key, value) => key in obj ? __defProp$Z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
661
+ var __spreadValues$Y = (a, b) => {
662
662
  for (var prop in b || (b = {}))
663
- if (__hasOwnProp$Z.call(b, prop))
664
- __defNormalProp$Y(a, prop, b[prop]);
665
- if (__getOwnPropSymbols$Z)
666
- for (var prop of __getOwnPropSymbols$Z(b)) {
667
- if (__propIsEnum$Z.call(b, prop))
668
- __defNormalProp$Y(a, prop, b[prop]);
663
+ if (__hasOwnProp$_.call(b, prop))
664
+ __defNormalProp$Z(a, prop, b[prop]);
665
+ if (__getOwnPropSymbols$_)
666
+ for (var prop of __getOwnPropSymbols$_(b)) {
667
+ if (__propIsEnum$_.call(b, prop))
668
+ __defNormalProp$Z(a, prop, b[prop]);
669
669
  }
670
670
  return a;
671
671
  };
672
672
  var __objRest$B = (source, exclude) => {
673
673
  var target = {};
674
674
  for (var prop in source)
675
- if (__hasOwnProp$Z.call(source, prop) && exclude.indexOf(prop) < 0)
675
+ if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
676
676
  target[prop] = source[prop];
677
- if (source != null && __getOwnPropSymbols$Z)
678
- for (var prop of __getOwnPropSymbols$Z(source)) {
679
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Z.call(source, prop))
677
+ if (source != null && __getOwnPropSymbols$_)
678
+ for (var prop of __getOwnPropSymbols$_(source)) {
679
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
680
680
  target[prop] = source[prop];
681
681
  }
682
682
  return target;
@@ -697,7 +697,7 @@ const DropdownTransition = (props) => {
697
697
  ]);
698
698
  return /* @__PURE__ */ React__default.createElement(
699
699
  CSSTransition,
700
- __spreadValues$X({
700
+ __spreadValues$Y({
701
701
  in: visible,
702
702
  timeout: timeout || 200,
703
703
  mountOnEnter,
@@ -957,21 +957,21 @@ const DetailCard = props => {
957
957
  }, props.children));
958
958
  };
959
959
 
960
- var __defProp$X = Object.defineProperty;
960
+ var __defProp$Y = Object.defineProperty;
961
961
  var __defProps$I = Object.defineProperties;
962
962
  var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
963
- var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
964
- var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
965
- var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
966
- var __defNormalProp$X = (obj, key, value) => key in obj ? __defProp$X(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
967
- var __spreadValues$W = (a, b) => {
963
+ var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
964
+ var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
965
+ var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
966
+ var __defNormalProp$Y = (obj, key, value) => key in obj ? __defProp$Y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
967
+ var __spreadValues$X = (a, b) => {
968
968
  for (var prop in b || (b = {}))
969
- if (__hasOwnProp$Y.call(b, prop))
970
- __defNormalProp$X(a, prop, b[prop]);
971
- if (__getOwnPropSymbols$Y)
972
- for (var prop of __getOwnPropSymbols$Y(b)) {
973
- if (__propIsEnum$Y.call(b, prop))
974
- __defNormalProp$X(a, prop, b[prop]);
969
+ if (__hasOwnProp$Z.call(b, prop))
970
+ __defNormalProp$Y(a, prop, b[prop]);
971
+ if (__getOwnPropSymbols$Z)
972
+ for (var prop of __getOwnPropSymbols$Z(b)) {
973
+ if (__propIsEnum$Z.call(b, prop))
974
+ __defNormalProp$Y(a, prop, b[prop]);
975
975
  }
976
976
  return a;
977
977
  };
@@ -979,11 +979,11 @@ var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
979
979
  var __objRest$A = (source, exclude) => {
980
980
  var target = {};
981
981
  for (var prop in source)
982
- if (__hasOwnProp$Y.call(source, prop) && exclude.indexOf(prop) < 0)
982
+ if (__hasOwnProp$Z.call(source, prop) && exclude.indexOf(prop) < 0)
983
983
  target[prop] = source[prop];
984
- if (source != null && __getOwnPropSymbols$Y)
985
- for (var prop of __getOwnPropSymbols$Y(source)) {
986
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Y.call(source, prop))
984
+ if (source != null && __getOwnPropSymbols$Z)
985
+ for (var prop of __getOwnPropSymbols$Z(source)) {
986
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$Z.call(source, prop))
987
987
  target[prop] = source[prop];
988
988
  }
989
989
  return target;
@@ -1037,10 +1037,10 @@ const Tooltip = (props) => {
1037
1037
  }, [followMouse, onmousemove, uniqueContainerClass]);
1038
1038
  return /* @__PURE__ */ React__default.createElement(
1039
1039
  Tooltip$1,
1040
- __spreadProps$I(__spreadValues$W({}, restProps), {
1040
+ __spreadProps$I(__spreadValues$X({}, restProps), {
1041
1041
  overlayClassName: followMouse ? cs(overlayClassName, uniquePopupClass) : overlayClassName,
1042
1042
  children: _children,
1043
- overlayStyle: followMouse ? __spreadValues$W({
1043
+ overlayStyle: followMouse ? __spreadValues$X({
1044
1044
  transform: "translate(-50%, -100%)",
1045
1045
  pointerEvents: "none"
1046
1046
  }, overlayStyle) : overlayStyle
@@ -1102,6 +1102,41 @@ const DropdownMenu = ({
1102
1102
  }, /* @__PURE__ */React__default.createElement("span", null, slotsElements.trigger ? slotsElements.trigger({}) : null));
1103
1103
  };
1104
1104
 
1105
+ var __defProp$X = Object.defineProperty;
1106
+ var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
1107
+ var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
1108
+ var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
1109
+ var __defNormalProp$X = (obj, key, value) => key in obj ? __defProp$X(obj, key, {
1110
+ enumerable: true,
1111
+ configurable: true,
1112
+ writable: true,
1113
+ value
1114
+ }) : obj[key] = value;
1115
+ var __spreadValues$W = (a, b) => {
1116
+ for (var prop in b || (b = {})) if (__hasOwnProp$Y.call(b, prop)) __defNormalProp$X(a, prop, b[prop]);
1117
+ if (__getOwnPropSymbols$Y) for (var prop of __getOwnPropSymbols$Y(b)) {
1118
+ if (__propIsEnum$Y.call(b, prop)) __defNormalProp$X(a, prop, b[prop]);
1119
+ }
1120
+ return a;
1121
+ };
1122
+ const Segment = "s11wux3h";
1123
+ const SmallSegment = "s1t2an3z";
1124
+ const MediumSegment = "ma64lna";
1125
+ const ColorSegment = "ckld275";
1126
+ const SegmentControl = props => {
1127
+ const {
1128
+ size = "middle",
1129
+ className
1130
+ } = props;
1131
+ return /* @__PURE__ */React__default.createElement(Segmented, __spreadValues$W({
1132
+ className: cs(className, {
1133
+ [SmallSegment]: size === "small",
1134
+ [MediumSegment]: size === "middle"
1135
+ }, Segment, ColorSegment),
1136
+ size
1137
+ }, props));
1138
+ };
1139
+
1105
1140
  const CircleProgressStyle = "c1bus5hc";
1106
1141
  const CircleProgress = props => {
1107
1142
  const {
@@ -9337,7 +9372,8 @@ function getAntdKit() {
9337
9372
  Link,
9338
9373
  DropdownMenu,
9339
9374
  BatchOperation,
9340
- DateRangePicker
9375
+ DateRangePicker,
9376
+ SegmentedControl: SegmentControl
9341
9377
  };
9342
9378
  kit.option.isSelectOption = true;
9343
9379
  kit.button.__ANT_BUTTON = true;