@cloudtower/eagle 0.27.0 → 0.27.1

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.
Files changed (84) hide show
  1. package/dist/UIKitProvider/UIKitProvider.stories.d.ts +7 -0
  2. package/dist/UIKitProvider/index.d.ts +1 -1
  3. package/dist/components/Alert/Alert.stories.d.ts +11 -0
  4. package/dist/components/Arch/Arch.stories.d.ts +18 -0
  5. package/dist/components/BaseIcon/BaseIcon.stories.d.ts +4 -0
  6. package/dist/components/Bit/Bit.stories.d.ts +17 -0
  7. package/dist/components/BitPerSecond/BitPerSecond.stories.d.ts +17 -0
  8. package/dist/components/Bps/Bps.stories.d.ts +17 -0
  9. package/dist/components/Button/Button.stories.d.ts +20 -0
  10. package/dist/components/Button/HoverableElement.stories.d.ts +3 -0
  11. package/dist/components/Byte/Byte.stories.d.ts +17 -0
  12. package/dist/components/Card/Card.stories.d.ts +23 -0
  13. package/dist/components/ExpandableList/CustomHeader.stories.d.ts +4 -0
  14. package/dist/components/ExpandableList/ExpandableItem.stories.d.ts +10 -0
  15. package/dist/components/ExpandableList/ExpandableList.stories.d.ts +5 -0
  16. package/dist/components/Fields/FieldsBoolean/FieldsBoolean.stories.d.ts +9 -0
  17. package/dist/components/Fields/FieldsDateTimeRange/FieldsDateTimeRange.stories.d.ts +5 -0
  18. package/dist/components/Fields/FieldsDateTimeRange/index.d.ts +2 -2
  19. package/dist/components/Fields/FieldsEnum/FieldsEnum.stories.d.ts +7 -0
  20. package/dist/components/Fields/FieldsInteger/FieldsInteger.stories.d.ts +7 -0
  21. package/dist/components/Fields/FieldsString/FieldsString.stories.d.ts +17 -0
  22. package/dist/components/Fields/FieldsTimePicker/FieldsTimePicker.stories.d.ts +9 -0
  23. package/dist/components/Fields/index.d.ts +2 -2
  24. package/dist/components/FormItem/Form.stories.d.ts +3 -0
  25. package/dist/components/Frequency/Frequency.stories.d.ts +17 -0
  26. package/dist/components/I18nNameTag/I18nNameTag.stories.d.ts +13 -0
  27. package/dist/components/Icon/Icon.stories.d.ts +21 -0
  28. package/dist/components/Input/Input.simple.stories.d.ts +12 -0
  29. package/dist/components/Input/Input.stories.d.ts +28 -0
  30. package/dist/components/InputGroup/inputGroup.stories.d.ts +6 -0
  31. package/dist/components/Loading/Loading.stories.d.ts +12 -0
  32. package/dist/components/Loading/style.d.ts +4 -0
  33. package/dist/components/Metric/Metric.stories.d.ts +4 -0
  34. package/dist/components/Modal/Modal.stories.d.ts +16 -0
  35. package/dist/components/OverflowTooltip/OverflowTooltip.stories.d.ts +17 -0
  36. package/dist/components/Pagination/Pagination.stories.d.ts +6 -0
  37. package/dist/components/Percent/Percent.stories.d.ts +32 -0
  38. package/dist/components/Radio/Radio.stories.d.ts +29 -0
  39. package/dist/components/Radio/RadioButton.stories.d.ts +8 -0
  40. package/dist/components/Radio/RadioGroup.stories.d.ts +23 -0
  41. package/dist/components/SearchInput/SearchInput.stories.d.ts +14 -0
  42. package/dist/components/Second/Second.stories.d.ts +22 -0
  43. package/dist/components/Select/Select.Simple.stories.d.ts +10 -0
  44. package/dist/components/Select/Select.stories.d.ts +16 -0
  45. package/dist/components/SimplePagination/SimplePagination.stories.d.ts +7 -0
  46. package/dist/components/Space/Space.stories.d.ts +8 -0
  47. package/dist/components/Speed/Speed.stories.d.ts +17 -0
  48. package/dist/components/StatusCapsule/StatusCapsule.stories.d.ts +12 -0
  49. package/dist/components/Steps/Steps.stories.d.ts +8 -0
  50. package/dist/components/Switch/Switch.stories.d.ts +17 -0
  51. package/dist/components/Table/Table.stories.d.ts +16 -0
  52. package/dist/components/TableForm/TableForm.stories.d.ts +17 -0
  53. package/dist/components/Tag/Tag.stories.d.ts +29 -0
  54. package/dist/components/Time/time.stories.d.ts +6 -0
  55. package/dist/components/TimeZoneSelect/TimeZoneSelect.stories.d.ts +17 -0
  56. package/dist/components/Token/Token.stories.d.ts +24 -0
  57. package/dist/components/Tooltip/Tooltip.stories.d.ts +6 -0
  58. package/dist/components/Truncate/Truncate.stories.d.ts +8 -0
  59. package/dist/components/message-group/message-group.stories.d.ts +17 -0
  60. package/dist/components.css +990 -1287
  61. package/dist/core/AccordionCard/AccordionCard.stories.d.ts +7 -0
  62. package/dist/core/Breadcrumb/Breadcrumb.stories.d.ts +6 -0
  63. package/dist/core/Breadcrumb/index.d.ts +7 -0
  64. package/dist/core/DetailCard/DetailCard.stories.d.ts +7 -0
  65. package/dist/coreX/Counting/Counting.stories.d.ts +29 -0
  66. package/dist/coreX/Counting/index.d.ts +4 -0
  67. package/dist/coreX/TruncatedTextWithTooltip/TruncatedTextWithTooltip.stories.d.ts +7 -0
  68. package/dist/coreX/TruncatedTextWithTooltip/index.d.ts +10 -0
  69. package/dist/esm/index.js +510 -378
  70. package/dist/esm/stats1.html +1 -1
  71. package/dist/spec/base.d.ts +8 -1
  72. package/dist/spec/type.d.ts +15 -0
  73. package/dist/{components/Stack/index.d.ts → stories/Stack.d.ts} +2 -2
  74. package/dist/stories/Story.d.ts +5 -0
  75. package/dist/stories/changeLng.stories.d.ts +8 -0
  76. package/dist/stories/icons-react.stories.d.ts +3 -0
  77. package/dist/stories/index.d.ts +2 -0
  78. package/dist/stories/menu.stories.d.ts +17 -0
  79. package/dist/style.css +857 -1154
  80. package/dist/umd/index.js +508 -376
  81. package/dist/umd/stats1.html +1 -1
  82. package/package.json +5 -5
  83. /package/dist/components/Card/__test__/{Card.spec.d.ts → Card.test.d.ts} +0 -0
  84. /package/dist/components/TableForm/__test__/{utils.spec.d.ts → utils.test.d.ts} +0 -0
package/dist/esm/index.js CHANGED
@@ -1,7 +1,7 @@
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$2, 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';
1
+ import { Tooltip as Tooltip$1, Alert as Alert$1, Badge as Badge$1, Button as Button$1, Checkbox as Checkbox$1, Card as Card$2, 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
- import React__default, { useState, useMemo, useRef, useCallback, useEffect, forwardRef, Fragment, useLayoutEffect, createContext, memo, useImperativeHandle, useContext } from 'react';
4
+ import React__default, { useState, useMemo, useEffect, useRef, useCallback, useLayoutEffect, forwardRef, Fragment, createContext, memo, useImperativeHandle, useContext } from 'react';
5
5
  import { XmarkRemove24SecondaryIcon, ArrowRightGrayIcon, ArrowChevronUp16SecondaryIcon, ArrowChevronDown16SecondaryIcon, CheckmarkDoneSuccessCorrect16SecondaryIcon, Loading8GradientBlueIcon, PlusAddCreateNew16SecondaryIcon, HandlePoint816SecondaryIcon, HandlePoint816BlueIcon, XmarkRemove16SecondaryIcon, XmarkRemove16RegularRedIcon, CheckmarkDoneSuccessCorrect16BlueIcon, XmarkRemoveSmall16RegularInheritIcon } from '@cloudtower/icons-react';
6
6
  import cs from 'classnames';
7
7
  import { styled } from 'linaria/react';
@@ -32,30 +32,30 @@ import 'recharts';
32
32
  import enUS from 'antd/lib/locale/en_US';
33
33
  import zhCN from 'antd/lib/locale/zh_CN';
34
34
 
35
- var __defProp$X = Object.defineProperty;
36
- var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
37
- var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
38
- var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
39
- var __defNormalProp$X = (obj, key, value) => key in obj ? __defProp$X(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
40
- var __spreadValues$X = (a, b) => {
35
+ var __defProp$Y = Object.defineProperty;
36
+ var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
37
+ var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
38
+ var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
39
+ var __defNormalProp$Y = (obj, key, value) => key in obj ? __defProp$Y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
40
+ var __spreadValues$Y = (a, b) => {
41
41
  for (var prop in b || (b = {}))
42
- if (__hasOwnProp$Z.call(b, prop))
43
- __defNormalProp$X(a, prop, b[prop]);
44
- if (__getOwnPropSymbols$Z)
45
- for (var prop of __getOwnPropSymbols$Z(b)) {
46
- if (__propIsEnum$Z.call(b, prop))
47
- __defNormalProp$X(a, prop, b[prop]);
42
+ if (__hasOwnProp$_.call(b, prop))
43
+ __defNormalProp$Y(a, prop, b[prop]);
44
+ if (__getOwnPropSymbols$_)
45
+ for (var prop of __getOwnPropSymbols$_(b)) {
46
+ if (__propIsEnum$_.call(b, prop))
47
+ __defNormalProp$Y(a, prop, b[prop]);
48
48
  }
49
49
  return a;
50
50
  };
51
- var __objRest$A = (source, exclude) => {
51
+ var __objRest$B = (source, exclude) => {
52
52
  var target = {};
53
53
  for (var prop in source)
54
- if (__hasOwnProp$Z.call(source, prop) && exclude.indexOf(prop) < 0)
54
+ if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
55
55
  target[prop] = source[prop];
56
- if (source != null && __getOwnPropSymbols$Z)
57
- for (var prop of __getOwnPropSymbols$Z(source)) {
58
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Z.call(source, prop))
56
+ if (source != null && __getOwnPropSymbols$_)
57
+ for (var prop of __getOwnPropSymbols$_(source)) {
58
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
59
59
  target[prop] = source[prop];
60
60
  }
61
61
  return target;
@@ -73,7 +73,7 @@ const BaseIcon = React__default.forwardRef(
73
73
  prefixNode,
74
74
  suffixIconSrc: SuffixSrc,
75
75
  src: Src
76
- } = _a, HTMLSpanElementProps = __objRest$A(_a, [
76
+ } = _a, HTMLSpanElementProps = __objRest$B(_a, [
77
77
  "alt",
78
78
  "className",
79
79
  "width",
@@ -87,10 +87,10 @@ const BaseIcon = React__default.forwardRef(
87
87
  ]);
88
88
  return /* @__PURE__ */ React__default.createElement(
89
89
  "span",
90
- __spreadValues$X({
90
+ __spreadValues$Y({
91
91
  ref,
92
92
  className,
93
- style: _.pickBy(__spreadValues$X({ cursor }, style))
93
+ style: _.pickBy(__spreadValues$Y({ cursor }, style))
94
94
  }, HTMLSpanElementProps),
95
95
  prefixNode,
96
96
  /* @__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 }))),
@@ -100,31 +100,31 @@ const BaseIcon = React__default.forwardRef(
100
100
  }
101
101
  );
102
102
 
103
- var __defProp$W = Object.defineProperty;
104
- var __defProps$D = Object.defineProperties;
105
- var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
106
- var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
107
- var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
108
- var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
109
- var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, {
103
+ var __defProp$X = Object.defineProperty;
104
+ var __defProps$E = Object.defineProperties;
105
+ var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
106
+ var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
107
+ var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
108
+ var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
109
+ var __defNormalProp$X = (obj, key, value) => key in obj ? __defProp$X(obj, key, {
110
110
  enumerable: true,
111
111
  configurable: true,
112
112
  writable: true,
113
113
  value
114
114
  }) : obj[key] = value;
115
- var __spreadValues$W = (a, b) => {
116
- for (var prop in b || (b = {})) if (__hasOwnProp$Y.call(b, prop)) __defNormalProp$W(a, prop, b[prop]);
117
- if (__getOwnPropSymbols$Y) for (var prop of __getOwnPropSymbols$Y(b)) {
118
- if (__propIsEnum$Y.call(b, prop)) __defNormalProp$W(a, prop, b[prop]);
115
+ var __spreadValues$X = (a, b) => {
116
+ for (var prop in b || (b = {})) if (__hasOwnProp$Z.call(b, prop)) __defNormalProp$X(a, prop, b[prop]);
117
+ if (__getOwnPropSymbols$Z) for (var prop of __getOwnPropSymbols$Z(b)) {
118
+ if (__propIsEnum$Z.call(b, prop)) __defNormalProp$X(a, prop, b[prop]);
119
119
  }
120
120
  return a;
121
121
  };
122
- var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
123
- var __objRest$z = (source, exclude) => {
122
+ var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
123
+ var __objRest$A = (source, exclude) => {
124
124
  var target = {};
125
- for (var prop in source) if (__hasOwnProp$Y.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
126
- if (source != null && __getOwnPropSymbols$Y) for (var prop of __getOwnPropSymbols$Y(source)) {
127
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Y.call(source, prop)) target[prop] = source[prop];
125
+ for (var prop in source) if (__hasOwnProp$Z.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
126
+ if (source != null && __getOwnPropSymbols$Z) for (var prop of __getOwnPropSymbols$Z(source)) {
127
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$Z.call(source, prop)) target[prop] = source[prop];
128
128
  }
129
129
  return target;
130
130
  };
@@ -148,7 +148,7 @@ const Icon = React__default.forwardRef((props, ref) => {
148
148
  prefix,
149
149
  suffix
150
150
  } = _a,
151
- restProps = __objRest$z(_a, ["src", "hoverSrc", "active", "activeSrc", "onMouseEnter", "onMouseLeave", "onMouseMove", "className", "iconWidth", "iconHeight", "cursor", "style", "isRotate", "prefix", "suffix"]);
151
+ restProps = __objRest$A(_a, ["src", "hoverSrc", "active", "activeSrc", "onMouseEnter", "onMouseLeave", "onMouseMove", "className", "iconWidth", "iconHeight", "cursor", "style", "isRotate", "prefix", "suffix"]);
152
152
  const [hover, setHover] = useState(false);
153
153
  const _src = useMemo(() => {
154
154
  if (active && activeSrc) {
@@ -176,14 +176,14 @@ const Icon = React__default.forwardRef((props, ref) => {
176
176
  }
177
177
  return src2;
178
178
  }, [active, hover, suffix]);
179
- return /* @__PURE__ */React__default.createElement(BaseIcon, __spreadProps$D(__spreadValues$W({
179
+ return /* @__PURE__ */React__default.createElement(BaseIcon, __spreadProps$E(__spreadValues$X({
180
180
  src: _src,
181
181
  className: cs(IconWrapper, "icon-wrapper", className, isRotate && "is-rotate"),
182
182
  suffixIconSrc,
183
183
  height: iconHeight,
184
184
  width: iconWidth,
185
185
  prefixNode: prefix,
186
- style: _.pickBy(__spreadValues$W({
186
+ style: _.pickBy(__spreadValues$X({
187
187
  cursor
188
188
  }, style))
189
189
  }, restProps), {
@@ -208,30 +208,30 @@ const Icon = React__default.forwardRef((props, ref) => {
208
208
  }));
209
209
  });
210
210
 
211
- var __defProp$V = Object.defineProperty;
212
- var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
213
- var __hasOwnProp$X = Object.prototype.hasOwnProperty;
214
- var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
215
- var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
216
- var __spreadValues$V = (a, b) => {
211
+ var __defProp$W = Object.defineProperty;
212
+ var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
213
+ var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
214
+ var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
215
+ var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
216
+ var __spreadValues$W = (a, b) => {
217
217
  for (var prop in b || (b = {}))
218
- if (__hasOwnProp$X.call(b, prop))
219
- __defNormalProp$V(a, prop, b[prop]);
220
- if (__getOwnPropSymbols$X)
221
- for (var prop of __getOwnPropSymbols$X(b)) {
222
- if (__propIsEnum$X.call(b, prop))
223
- __defNormalProp$V(a, prop, b[prop]);
218
+ if (__hasOwnProp$Y.call(b, prop))
219
+ __defNormalProp$W(a, prop, b[prop]);
220
+ if (__getOwnPropSymbols$Y)
221
+ for (var prop of __getOwnPropSymbols$Y(b)) {
222
+ if (__propIsEnum$Y.call(b, prop))
223
+ __defNormalProp$W(a, prop, b[prop]);
224
224
  }
225
225
  return a;
226
226
  };
227
- var __objRest$y = (source, exclude) => {
227
+ var __objRest$z = (source, exclude) => {
228
228
  var target = {};
229
229
  for (var prop in source)
230
- if (__hasOwnProp$X.call(source, prop) && exclude.indexOf(prop) < 0)
230
+ if (__hasOwnProp$Y.call(source, prop) && exclude.indexOf(prop) < 0)
231
231
  target[prop] = source[prop];
232
- if (source != null && __getOwnPropSymbols$X)
233
- for (var prop of __getOwnPropSymbols$X(source)) {
234
- if (exclude.indexOf(prop) < 0 && __propIsEnum$X.call(source, prop))
232
+ if (source != null && __getOwnPropSymbols$Y)
233
+ for (var prop of __getOwnPropSymbols$Y(source)) {
234
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$Y.call(source, prop))
235
235
  target[prop] = source[prop];
236
236
  }
237
237
  return target;
@@ -243,7 +243,7 @@ const DropdownTransition = (props) => {
243
243
  children,
244
244
  mountOnEnter = true,
245
245
  unmountOnExit = true
246
- } = _a, restProps = __objRest$y(_a, [
246
+ } = _a, restProps = __objRest$z(_a, [
247
247
  "visible",
248
248
  "timeout",
249
249
  "children",
@@ -252,7 +252,7 @@ const DropdownTransition = (props) => {
252
252
  ]);
253
253
  return /* @__PURE__ */ React__default.createElement(
254
254
  CSSTransition,
255
- __spreadValues$V({
255
+ __spreadValues$W({
256
256
  in: visible,
257
257
  timeout: timeout || 200,
258
258
  mountOnEnter,
@@ -322,6 +322,180 @@ const AccordionCard = props => {
322
322
  };
323
323
  AccordionCard.CloseButton = CloseButton;
324
324
 
325
+ const d1_bold_title = "d6j0lbj";
326
+ const d1s_bold_title = "d1xhvvxe";
327
+ const d1_regular_title = "dk10mxq";
328
+ const d2_bold_title = "dxsait";
329
+ const d2_regular_title = "dokn0h3";
330
+ const d3_bold_title = "dobau4p";
331
+ const d3_regular_title = "dvolwok";
332
+ const h1_bold_title = "h181qhg4";
333
+ const h1_regular_title = "h1phgmcq";
334
+ const h2_bold_title = "h173xnl1";
335
+ const h2_regular_title = "hedm4pz";
336
+ const h3_bold_title = "h1kd8xld";
337
+ const h3_regular_title = "hp14fr";
338
+ const h3_bold_upper = "hgrg7mn";
339
+ const h3_regular_upper = "h6zme9x";
340
+ const l1_regular = "locjvsv";
341
+ const l1_bold = "l13gi131";
342
+ const l1_regular_title = "l1ynemsu";
343
+ const l1_bold_title = "l1cft1cx";
344
+ const l1_regular_upper = "l17tqc8p";
345
+ const l1_bold_upper = "l1j1e5w7";
346
+ const l2_regular = "l1gf91jb";
347
+ const l2_medium = "lu7hlr6";
348
+ const l2_bold = "l3l3jf0";
349
+ const l2_regular_title = "l12j5nqp";
350
+ const l2_bold_title = "l1tecqht";
351
+ const l2_regular_upper = "l6sa990";
352
+ const l2_bold_upper = "lckqe8j";
353
+ const l3_regular = "l1kuminb";
354
+ const l3_semibold = "l1pbuf5j";
355
+ const l3_bold = "l1r4ztu";
356
+ const l3_regular_title = "ly8vzok";
357
+ const l3_semibold_title = "lumfmf";
358
+ const l3_bold_title = "l16ujwmv";
359
+ const l3_regular_upper = "l17o1ffr";
360
+ const l3_bold_upper = "lngllvn";
361
+ const l4_regular = "l2i7fo9";
362
+ const l4_medium = "l1x7hscx";
363
+ const l4_bold = "le1jwan";
364
+ const l4_regular_title = "lyxynfj";
365
+ const l4_medium_title = "lpb2nxv";
366
+ const l4_bold_title = "l1r8o3vv";
367
+ const l4_regular_upper = "lemnjy2";
368
+ const l4_bold_upper = "lrc42gb";
369
+ const f1_regular = "fqaz4mb";
370
+ const f1_regular_title = "f13we5o";
371
+ const f2_regular = "ffmjua2";
372
+ const f2_regular_title = "fz2mxw0";
373
+ const t1_regular_mono = "t1ertzoh";
374
+ const t1_regular_slash = "t19bge8r";
375
+ const t2_regular_mono = "tjrzfyl";
376
+ const t2_medium_mono = "tm6s7bo";
377
+ const t2_regular_slash = "t19zq6ic";
378
+ const t2_medium_slash = "t1gduru8";
379
+ const t16_bold_slash = "t55raab";
380
+ const u1 = "u1w9abfe";
381
+ const Typo = {
382
+ Display: {
383
+ d1_bold_title,
384
+ d1s_bold_title,
385
+ d1_regular_title,
386
+ d2_bold_title,
387
+ d2_regular_title,
388
+ d3_bold_title,
389
+ d3_regular_title
390
+ },
391
+ Heading: {
392
+ h1_bold_title,
393
+ h1_regular_title,
394
+ h2_bold_title,
395
+ h2_regular_title,
396
+ h3_bold_title,
397
+ h3_bold_upper,
398
+ h3_regular_title,
399
+ h3_regular_upper
400
+ },
401
+ Label: {
402
+ l1_bold,
403
+ l1_bold_title,
404
+ l1_bold_upper,
405
+ l1_regular,
406
+ l1_regular_title,
407
+ l1_regular_upper,
408
+ l2_bold,
409
+ l2_bold_title,
410
+ l2_bold_upper,
411
+ l2_regular,
412
+ l2_regular_title,
413
+ l2_regular_upper,
414
+ l2_medium,
415
+ l3_bold,
416
+ l3_semibold,
417
+ l3_bold_title,
418
+ l3_bold_upper,
419
+ l3_regular,
420
+ l3_regular_title,
421
+ l3_semibold_title,
422
+ l3_regular_upper,
423
+ l4_bold,
424
+ l4_bold_title,
425
+ l4_bold_upper,
426
+ l4_regular,
427
+ l4_medium,
428
+ l4_regular_title,
429
+ l4_medium_title,
430
+ l4_regular_upper
431
+ },
432
+ Footnote: {
433
+ f1_regular,
434
+ f1_regular_title,
435
+ f2_regular,
436
+ f2_regular_title
437
+ },
438
+ Tabular: {
439
+ t1_regular_mono,
440
+ t1_regular_slash,
441
+ t2_regular_mono,
442
+ t2_medium_mono,
443
+ t2_regular_slash,
444
+ t2_medium_slash,
445
+ t16_bold_slash
446
+ },
447
+ UNKNOWN: {
448
+ u1
449
+ }
450
+ };
451
+
452
+ const BreadWrapper = /*#__PURE__*/styled$1('div')({
453
+ name: "BreadWrapper",
454
+ class: "berrcjl",
455
+ propsAsIs: false
456
+ });
457
+ const Breadcrumb = props => {
458
+ const {
459
+ items
460
+ } = props;
461
+ return /* @__PURE__ */React__default.createElement(BreadWrapper, {
462
+ className: Typo.Heading.h3_bold_title
463
+ }, items.map((item, index) => {
464
+ return /* @__PURE__ */React__default.createElement("span", {
465
+ key: index
466
+ }, index > 0 ? /* @__PURE__ */React__default.createElement("svg", {
467
+ style: {
468
+ margin: "0 9.6px"
469
+ },
470
+ width: "6",
471
+ height: "8",
472
+ viewBox: "0 0 6 8",
473
+ fill: "none",
474
+ xmlns: "http://www.w3.org/2000/svg"
475
+ }, /* @__PURE__ */React__default.createElement("path", {
476
+ d: "M4.81662 3.33203C5.15455 3.555 5.32351 3.66649 5.38224 3.80736C5.43358 3.93049 5.43358 4.06904 5.38224 4.19218C5.32351 4.33305 5.15455 4.44454 4.81662 4.66751L1.81921 6.64529C1.4159 6.91141 1.21424 7.04446 1.04715 7.03393C0.901576 7.02475 0.767265 6.95246 0.679429 6.836C0.578613 6.70234 0.578613 6.46074 0.578613 5.97755L0.578613 2.02199C0.578613 1.53879 0.578613 1.2972 0.679429 1.16353C0.767265 1.04708 0.901576 0.974785 1.04715 0.965607C1.21424 0.955073 1.4159 1.08813 1.81921 1.35425L4.81662 3.33203Z",
477
+ fill: "#031E4F",
478
+ fillOpacity: "0.18"
479
+ })) : null, /* @__PURE__ */React__default.createElement("span", {
480
+ className: "breadcrumb-link",
481
+ onClick: item.onClick
482
+ }, item.name), index === items.length - 1 && /* @__PURE__ */React__default.createElement("svg", {
483
+ style: {
484
+ margin: "0 9.6px"
485
+ },
486
+ width: "6",
487
+ height: "8",
488
+ viewBox: "0 0 6 8",
489
+ fill: "none",
490
+ xmlns: "http://www.w3.org/2000/svg"
491
+ }, /* @__PURE__ */React__default.createElement("path", {
492
+ d: "M4.81662 3.33203C5.15455 3.555 5.32351 3.66649 5.38224 3.80736C5.43358 3.93049 5.43358 4.06904 5.38224 4.19218C5.32351 4.33305 5.15455 4.44454 4.81662 4.66751L1.81921 6.64529C1.4159 6.91141 1.21424 7.04446 1.04715 7.03393C0.901576 7.02475 0.767265 6.95246 0.679429 6.836C0.578613 6.70234 0.578613 6.46074 0.578613 5.97755L0.578613 2.02199C0.578613 1.53879 0.578613 1.2972 0.679429 1.16353C0.767265 1.04708 0.901576 0.974785 1.04715 0.965607C1.21424 0.955073 1.4159 1.08813 1.81921 1.35425L4.81662 3.33203Z",
493
+ fill: "#031E4F",
494
+ fillOpacity: "0.18"
495
+ })));
496
+ }));
497
+ };
498
+
325
499
  const CardWrapper$1 = /*#__PURE__*/styled$1('div')({
326
500
  name: "CardWrapper",
327
501
  class: "c1uzzomf",
@@ -338,6 +512,174 @@ const DetailCard = props => {
338
512
  }, props.children));
339
513
  };
340
514
 
515
+ const Counting = (props) => {
516
+ const { stop, interval = 1e3, render } = props;
517
+ const [, setState] = useState(true);
518
+ useEffect(() => {
519
+ if (stop)
520
+ return;
521
+ const timer = setInterval(() => {
522
+ setState((state) => !state);
523
+ }, interval);
524
+ return () => {
525
+ clearInterval(timer);
526
+ };
527
+ }, [stop, interval]);
528
+ return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, render());
529
+ };
530
+
531
+ var __defProp$V = Object.defineProperty;
532
+ var __defProps$D = Object.defineProperties;
533
+ var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
534
+ var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
535
+ var __hasOwnProp$X = Object.prototype.hasOwnProperty;
536
+ var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
537
+ var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
538
+ var __spreadValues$V = (a, b) => {
539
+ for (var prop in b || (b = {}))
540
+ if (__hasOwnProp$X.call(b, prop))
541
+ __defNormalProp$V(a, prop, b[prop]);
542
+ if (__getOwnPropSymbols$X)
543
+ for (var prop of __getOwnPropSymbols$X(b)) {
544
+ if (__propIsEnum$X.call(b, prop))
545
+ __defNormalProp$V(a, prop, b[prop]);
546
+ }
547
+ return a;
548
+ };
549
+ var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
550
+ var __objRest$y = (source, exclude) => {
551
+ var target = {};
552
+ for (var prop in source)
553
+ if (__hasOwnProp$X.call(source, prop) && exclude.indexOf(prop) < 0)
554
+ target[prop] = source[prop];
555
+ if (source != null && __getOwnPropSymbols$X)
556
+ for (var prop of __getOwnPropSymbols$X(source)) {
557
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$X.call(source, prop))
558
+ target[prop] = source[prop];
559
+ }
560
+ return target;
561
+ };
562
+ let componentId = 0;
563
+ const Tooltip = (props) => {
564
+ const _a = props, {
565
+ followMouse,
566
+ overlayClassName,
567
+ overlayStyle,
568
+ children
569
+ } = _a, restProps = __objRest$y(_a, [
570
+ "followMouse",
571
+ "overlayClassName",
572
+ "overlayStyle",
573
+ "children"
574
+ ]);
575
+ const id = useRef(++componentId);
576
+ const uniquePopupClass = `kit-popup-${id.current}`;
577
+ const uniqueContainerClass = `kit-tooltip-${id.current}`;
578
+ const _children = useMemo(() => {
579
+ if (followMouse) {
580
+ const child = React__default.isValidElement(children) ? children : /* @__PURE__ */ React__default.createElement("span", null, children);
581
+ return React__default.cloneElement(child, {
582
+ className: cs(child.props.className, uniqueContainerClass)
583
+ });
584
+ } else {
585
+ return children;
586
+ }
587
+ }, [children, followMouse, uniqueContainerClass]);
588
+ const onmousemove = useCallback(
589
+ (event) => {
590
+ const popup = document.querySelector(`.${uniquePopupClass}`);
591
+ if (!popup)
592
+ return;
593
+ popup.style.left = event.pageX + "px";
594
+ popup.style.top = event.pageY + "px";
595
+ },
596
+ [uniquePopupClass]
597
+ );
598
+ useEffect(() => {
599
+ if (followMouse) {
600
+ const container = document.querySelector(
601
+ `.${uniqueContainerClass}`
602
+ );
603
+ container == null ? void 0 : container.addEventListener("mousemove", onmousemove);
604
+ return () => {
605
+ container == null ? void 0 : container.removeEventListener("mousemove", onmousemove);
606
+ };
607
+ }
608
+ }, [followMouse, onmousemove, uniqueContainerClass]);
609
+ return /* @__PURE__ */ React__default.createElement(
610
+ Tooltip$1,
611
+ __spreadProps$D(__spreadValues$V({}, restProps), {
612
+ overlayClassName: followMouse ? cs(overlayClassName, uniquePopupClass) : overlayClassName,
613
+ children: _children,
614
+ overlayStyle: followMouse ? __spreadValues$V({
615
+ transform: "translate(-50%, -100%)",
616
+ pointerEvents: "none"
617
+ }, overlayStyle) : overlayStyle
618
+ })
619
+ );
620
+ };
621
+
622
+ var __defProp$U = Object.defineProperty;
623
+ var __defProps$C = Object.defineProperties;
624
+ var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
625
+ var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
626
+ var __hasOwnProp$W = Object.prototype.hasOwnProperty;
627
+ var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
628
+ var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, {
629
+ enumerable: true,
630
+ configurable: true,
631
+ writable: true,
632
+ value
633
+ }) : obj[key] = value;
634
+ var __spreadValues$U = (a, b) => {
635
+ for (var prop in b || (b = {})) if (__hasOwnProp$W.call(b, prop)) __defNormalProp$U(a, prop, b[prop]);
636
+ if (__getOwnPropSymbols$W) for (var prop of __getOwnPropSymbols$W(b)) {
637
+ if (__propIsEnum$W.call(b, prop)) __defNormalProp$U(a, prop, b[prop]);
638
+ }
639
+ return a;
640
+ };
641
+ var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
642
+ var __objRest$x = (source, exclude) => {
643
+ var target = {};
644
+ for (var prop in source) if (__hasOwnProp$W.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
645
+ if (source != null && __getOwnPropSymbols$W) for (var prop of __getOwnPropSymbols$W(source)) {
646
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$W.call(source, prop)) target[prop] = source[prop];
647
+ }
648
+ return target;
649
+ };
650
+ const TruncatedTextWrapper = /*#__PURE__*/styled('div')({
651
+ name: "TruncatedTextWrapper",
652
+ class: "tje3huy",
653
+ propsAsIs: false
654
+ });
655
+ const TruncatedTextWithTooltip = props => {
656
+ const _a = props,
657
+ {
658
+ text,
659
+ textWrapperCls
660
+ } = _a,
661
+ restProps = __objRest$x(_a, ["text", "textWrapperCls"]);
662
+ const [isTextTruncated, setTextTruncated] = useState(false);
663
+ const textWrapper = useRef(null);
664
+ useLayoutEffect(() => {
665
+ const ele = textWrapper.current;
666
+ if (ele) {
667
+ const parent = ele.parentElement;
668
+ if (parent && (parent == null ? void 0 : parent.scrollWidth) > (parent == null ? void 0 : parent.clientWidth)) {
669
+ setTextTruncated(true);
670
+ }
671
+ }
672
+ }, [text]);
673
+ const renderName = () => /* @__PURE__ */React__default.createElement("span", {
674
+ ref: textWrapper,
675
+ className: textWrapperCls
676
+ }, text);
677
+ return isTextTruncated ? /* @__PURE__ */React__default.createElement(Tooltip, __spreadProps$C(__spreadValues$U({}, restProps), {
678
+ title: text,
679
+ "data-testid": "text-tooltip"
680
+ }), /* @__PURE__ */React__default.createElement(TruncatedTextWrapper, null, renderName())) : renderName();
681
+ };
682
+
341
683
  const EMPTY_FUNCTION = () => {
342
684
  };
343
685
 
@@ -560,31 +902,31 @@ function getAlertIcon(type) {
560
902
  }
561
903
  }
562
904
 
563
- var __defProp$U = Object.defineProperty;
564
- var __defProps$C = Object.defineProperties;
565
- var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
566
- var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
567
- var __hasOwnProp$W = Object.prototype.hasOwnProperty;
568
- var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
569
- var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, {
905
+ var __defProp$T = Object.defineProperty;
906
+ var __defProps$B = Object.defineProperties;
907
+ var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
908
+ var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
909
+ var __hasOwnProp$V = Object.prototype.hasOwnProperty;
910
+ var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
911
+ var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, {
570
912
  enumerable: true,
571
913
  configurable: true,
572
914
  writable: true,
573
915
  value
574
916
  }) : obj[key] = value;
575
- var __spreadValues$U = (a, b) => {
576
- for (var prop in b || (b = {})) if (__hasOwnProp$W.call(b, prop)) __defNormalProp$U(a, prop, b[prop]);
577
- if (__getOwnPropSymbols$W) for (var prop of __getOwnPropSymbols$W(b)) {
578
- if (__propIsEnum$W.call(b, prop)) __defNormalProp$U(a, prop, b[prop]);
917
+ var __spreadValues$T = (a, b) => {
918
+ for (var prop in b || (b = {})) if (__hasOwnProp$V.call(b, prop)) __defNormalProp$T(a, prop, b[prop]);
919
+ if (__getOwnPropSymbols$V) for (var prop of __getOwnPropSymbols$V(b)) {
920
+ if (__propIsEnum$V.call(b, prop)) __defNormalProp$T(a, prop, b[prop]);
579
921
  }
580
922
  return a;
581
923
  };
582
- var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
583
- var __objRest$x = (source, exclude) => {
924
+ var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
925
+ var __objRest$w = (source, exclude) => {
584
926
  var target = {};
585
- for (var prop in source) if (__hasOwnProp$W.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
586
- if (source != null && __getOwnPropSymbols$W) for (var prop of __getOwnPropSymbols$W(source)) {
587
- if (exclude.indexOf(prop) < 0 && __propIsEnum$W.call(source, prop)) target[prop] = source[prop];
927
+ for (var prop in source) if (__hasOwnProp$V.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
928
+ if (source != null && __getOwnPropSymbols$V) for (var prop of __getOwnPropSymbols$V(source)) {
929
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$V.call(source, prop)) target[prop] = source[prop];
588
930
  }
589
931
  return target;
590
932
  };
@@ -602,13 +944,13 @@ const Alert = _a => {
602
944
  action,
603
945
  message
604
946
  } = _b,
605
- props = __objRest$x(_b, ["type", "icon", "showIcon", "className", "onClose", "closeText", "action", "message"]);
947
+ props = __objRest$w(_b, ["type", "icon", "showIcon", "className", "onClose", "closeText", "action", "message"]);
606
948
  const _icon = /* @__PURE__ */React__default.createElement(Icon, {
607
949
  alt: type,
608
950
  src: getAlertIcon(type)
609
951
  });
610
952
  const _type = type === "normal" ? "info" : type;
611
- return /* @__PURE__ */React__default.createElement(Alert$1, __spreadProps$C(__spreadValues$U({}, props), {
953
+ return /* @__PURE__ */React__default.createElement(Alert$1, __spreadProps$B(__spreadValues$T({}, props), {
612
954
  className: cs(AlertStyle, type ? `alert-${type}` : "", className, {
613
955
  action
614
956
  }),
@@ -646,89 +988,59 @@ const Arch = (props) => {
646
988
  return /* @__PURE__ */ React__default.createElement("span", null, text);
647
989
  };
648
990
 
649
- var __defProp$T = Object.defineProperty;
650
- var __defProps$B = Object.defineProperties;
651
- var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
652
- var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
653
- var __hasOwnProp$V = Object.prototype.hasOwnProperty;
654
- var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
655
- var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
656
- var __spreadValues$T = (a, b) => {
991
+ var __defProp$S = Object.defineProperty;
992
+ var __defProps$A = Object.defineProperties;
993
+ var __getOwnPropDescs$A = Object.getOwnPropertyDescriptors;
994
+ var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
995
+ var __hasOwnProp$U = Object.prototype.hasOwnProperty;
996
+ var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
997
+ var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
998
+ var __spreadValues$S = (a, b) => {
657
999
  for (var prop in b || (b = {}))
658
- if (__hasOwnProp$V.call(b, prop))
659
- __defNormalProp$T(a, prop, b[prop]);
660
- if (__getOwnPropSymbols$V)
661
- for (var prop of __getOwnPropSymbols$V(b)) {
662
- if (__propIsEnum$V.call(b, prop))
663
- __defNormalProp$T(a, prop, b[prop]);
1000
+ if (__hasOwnProp$U.call(b, prop))
1001
+ __defNormalProp$S(a, prop, b[prop]);
1002
+ if (__getOwnPropSymbols$U)
1003
+ for (var prop of __getOwnPropSymbols$U(b)) {
1004
+ if (__propIsEnum$U.call(b, prop))
1005
+ __defNormalProp$S(a, prop, b[prop]);
664
1006
  }
665
1007
  return a;
666
1008
  };
667
- var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
668
- var __objRest$w = (source, exclude) => {
1009
+ var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
1010
+ var __objRest$v = (source, exclude) => {
669
1011
  var target = {};
670
1012
  for (var prop in source)
671
- if (__hasOwnProp$V.call(source, prop) && exclude.indexOf(prop) < 0)
1013
+ if (__hasOwnProp$U.call(source, prop) && exclude.indexOf(prop) < 0)
672
1014
  target[prop] = source[prop];
673
- if (source != null && __getOwnPropSymbols$V)
674
- for (var prop of __getOwnPropSymbols$V(source)) {
675
- if (exclude.indexOf(prop) < 0 && __propIsEnum$V.call(source, prop))
1015
+ if (source != null && __getOwnPropSymbols$U)
1016
+ for (var prop of __getOwnPropSymbols$U(source)) {
1017
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$U.call(source, prop))
676
1018
  target[prop] = source[prop];
677
1019
  }
678
1020
  return target;
679
1021
  };
680
1022
  const Badge = (_a) => {
681
- var _b = _a, { type = "error", className } = _b, props = __objRest$w(_b, ["type", "className"]);
1023
+ var _b = _a, { type = "error", className } = _b, props = __objRest$v(_b, ["type", "className"]);
682
1024
  return /* @__PURE__ */ React__default.createElement(
683
1025
  Badge$1,
684
- __spreadProps$B(__spreadValues$T({
1026
+ __spreadProps$A(__spreadValues$S({
685
1027
  className: cx(`badge-${type}`, className)
686
1028
  }, props), {
687
1029
  showZero: false
688
1030
  })
689
1031
  );
690
- };
691
-
692
- function isEmpty(rawValue) {
693
- if (rawValue === null || rawValue === void 0 || rawValue === MAGIC_METRIC_NULL || Number.isNaN(rawValue) || !Number.isFinite(rawValue)) {
694
- return true;
695
- }
696
- return false;
697
- }
698
-
699
- const Empty = (props) => {
700
- const { className, style } = props;
701
- return /* @__PURE__ */ React__default.createElement("span", { className, style }, "-");
702
- };
703
-
704
- var __defProp$S = Object.defineProperty;
705
- var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
706
- var __hasOwnProp$U = Object.prototype.hasOwnProperty;
707
- var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
708
- var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
709
- var __spreadValues$S = (a, b) => {
710
- for (var prop in b || (b = {}))
711
- if (__hasOwnProp$U.call(b, prop))
712
- __defNormalProp$S(a, prop, b[prop]);
713
- if (__getOwnPropSymbols$U)
714
- for (var prop of __getOwnPropSymbols$U(b)) {
715
- if (__propIsEnum$U.call(b, prop))
716
- __defNormalProp$S(a, prop, b[prop]);
717
- }
718
- return a;
719
- };
720
- const Bit = ({
721
- rawValue,
722
- decimals,
723
- unitClassName,
724
- valueClassName,
725
- emptyProps
726
- }) => {
727
- if (isEmpty(rawValue)) {
728
- return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$S({}, emptyProps));
1032
+ };
1033
+
1034
+ function isEmpty(rawValue) {
1035
+ if (rawValue === null || rawValue === void 0 || rawValue === MAGIC_METRIC_NULL || Number.isNaN(rawValue) || !Number.isFinite(rawValue)) {
1036
+ return true;
729
1037
  }
730
- const { value, unit } = formatBits(rawValue, decimals);
731
- 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}`));
1038
+ return false;
1039
+ }
1040
+
1041
+ const Empty = (props) => {
1042
+ const { className, style } = props;
1043
+ return /* @__PURE__ */ React__default.createElement("span", { className, style }, "-");
732
1044
  };
733
1045
 
734
1046
  var __defProp$R = Object.defineProperty;
@@ -747,17 +1059,17 @@ var __spreadValues$R = (a, b) => {
747
1059
  }
748
1060
  return a;
749
1061
  };
750
- const BitPerSeconds = ({
1062
+ const Bit = ({
751
1063
  rawValue,
752
1064
  decimals,
753
- valueClassName,
754
1065
  unitClassName,
1066
+ valueClassName,
755
1067
  emptyProps
756
1068
  }) => {
757
1069
  if (isEmpty(rawValue)) {
758
1070
  return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$R({}, emptyProps));
759
1071
  }
760
- const { value, unit } = formatBitPerSecond(rawValue, decimals);
1072
+ const { value, unit } = formatBits(rawValue, decimals);
761
1073
  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}`));
762
1074
  };
763
1075
 
@@ -777,7 +1089,7 @@ var __spreadValues$Q = (a, b) => {
777
1089
  }
778
1090
  return a;
779
1091
  };
780
- const Bps = ({
1092
+ const BitPerSeconds = ({
781
1093
  rawValue,
782
1094
  decimals,
783
1095
  valueClassName,
@@ -787,135 +1099,38 @@ const Bps = ({
787
1099
  if (isEmpty(rawValue)) {
788
1100
  return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$Q({}, emptyProps));
789
1101
  }
790
- const { value, unit } = formatBps(rawValue, decimals);
1102
+ const { value, unit } = formatBitPerSecond(rawValue, decimals);
791
1103
  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}`));
792
1104
  };
793
1105
 
794
- const d1_bold_title = "d6j0lbj";
795
- const d1s_bold_title = "d1xhvvxe";
796
- const d1_regular_title = "dk10mxq";
797
- const d2_bold_title = "dxsait";
798
- const d2_regular_title = "dokn0h3";
799
- const d3_bold_title = "dobau4p";
800
- const d3_regular_title = "dvolwok";
801
- const h1_bold_title = "h181qhg4";
802
- const h1_regular_title = "h1phgmcq";
803
- const h2_bold_title = "h173xnl1";
804
- const h2_regular_title = "hedm4pz";
805
- const h3_bold_title = "h1kd8xld";
806
- const h3_regular_title = "hp14fr";
807
- const h3_bold_upper = "hgrg7mn";
808
- const h3_regular_upper = "h6zme9x";
809
- const l1_regular = "locjvsv";
810
- const l1_bold = "l13gi131";
811
- const l1_regular_title = "l1ynemsu";
812
- const l1_bold_title = "l1cft1cx";
813
- const l1_regular_upper = "l17tqc8p";
814
- const l1_bold_upper = "l1j1e5w7";
815
- const l2_regular = "l1gf91jb";
816
- const l2_medium = "lu7hlr6";
817
- const l2_bold = "l3l3jf0";
818
- const l2_regular_title = "l12j5nqp";
819
- const l2_bold_title = "l1tecqht";
820
- const l2_regular_upper = "l6sa990";
821
- const l2_bold_upper = "lckqe8j";
822
- const l3_regular = "l1kuminb";
823
- const l3_semibold = "l1pbuf5j";
824
- const l3_bold = "l1r4ztu";
825
- const l3_regular_title = "ly8vzok";
826
- const l3_semibold_title = "lumfmf";
827
- const l3_bold_title = "l16ujwmv";
828
- const l3_regular_upper = "l17o1ffr";
829
- const l3_bold_upper = "lngllvn";
830
- const l4_regular = "l2i7fo9";
831
- const l4_medium = "l1x7hscx";
832
- const l4_bold = "le1jwan";
833
- const l4_regular_title = "lyxynfj";
834
- const l4_medium_title = "lpb2nxv";
835
- const l4_bold_title = "l1r8o3vv";
836
- const l4_regular_upper = "lemnjy2";
837
- const l4_bold_upper = "lrc42gb";
838
- const f1_regular = "fqaz4mb";
839
- const f1_regular_title = "f13we5o";
840
- const f2_regular = "ffmjua2";
841
- const f2_regular_title = "fz2mxw0";
842
- const t1_regular_mono = "t1ertzoh";
843
- const t1_regular_slash = "t19bge8r";
844
- const t2_regular_mono = "tjrzfyl";
845
- const t2_medium_mono = "tm6s7bo";
846
- const t2_regular_slash = "t19zq6ic";
847
- const t2_medium_slash = "t1gduru8";
848
- const t16_bold_slash = "t55raab";
849
- const u1 = "u1w9abfe";
850
- const Typo = {
851
- Display: {
852
- d1_bold_title,
853
- d1s_bold_title,
854
- d1_regular_title,
855
- d2_bold_title,
856
- d2_regular_title,
857
- d3_bold_title,
858
- d3_regular_title
859
- },
860
- Heading: {
861
- h1_bold_title,
862
- h1_regular_title,
863
- h2_bold_title,
864
- h2_regular_title,
865
- h3_bold_title,
866
- h3_bold_upper,
867
- h3_regular_title,
868
- h3_regular_upper
869
- },
870
- Label: {
871
- l1_bold,
872
- l1_bold_title,
873
- l1_bold_upper,
874
- l1_regular,
875
- l1_regular_title,
876
- l1_regular_upper,
877
- l2_bold,
878
- l2_bold_title,
879
- l2_bold_upper,
880
- l2_regular,
881
- l2_regular_title,
882
- l2_regular_upper,
883
- l2_medium,
884
- l3_bold,
885
- l3_semibold,
886
- l3_bold_title,
887
- l3_bold_upper,
888
- l3_regular,
889
- l3_regular_title,
890
- l3_semibold_title,
891
- l3_regular_upper,
892
- l4_bold,
893
- l4_bold_title,
894
- l4_bold_upper,
895
- l4_regular,
896
- l4_medium,
897
- l4_regular_title,
898
- l4_medium_title,
899
- l4_regular_upper
900
- },
901
- Footnote: {
902
- f1_regular,
903
- f1_regular_title,
904
- f2_regular,
905
- f2_regular_title
906
- },
907
- Tabular: {
908
- t1_regular_mono,
909
- t1_regular_slash,
910
- t2_regular_mono,
911
- t2_medium_mono,
912
- t2_regular_slash,
913
- t2_medium_slash,
914
- t16_bold_slash
915
- },
916
- UNKNOWN: {
917
- u1
1106
+ var __defProp$P = Object.defineProperty;
1107
+ var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
1108
+ var __hasOwnProp$R = Object.prototype.hasOwnProperty;
1109
+ var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
1110
+ var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1111
+ var __spreadValues$P = (a, b) => {
1112
+ for (var prop in b || (b = {}))
1113
+ if (__hasOwnProp$R.call(b, prop))
1114
+ __defNormalProp$P(a, prop, b[prop]);
1115
+ if (__getOwnPropSymbols$R)
1116
+ for (var prop of __getOwnPropSymbols$R(b)) {
1117
+ if (__propIsEnum$R.call(b, prop))
1118
+ __defNormalProp$P(a, prop, b[prop]);
1119
+ }
1120
+ return a;
1121
+ };
1122
+ const Bps = ({
1123
+ rawValue,
1124
+ decimals,
1125
+ valueClassName,
1126
+ unitClassName,
1127
+ emptyProps
1128
+ }) => {
1129
+ if (isEmpty(rawValue)) {
1130
+ return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$P({}, emptyProps));
918
1131
  }
1132
+ const { value, unit } = formatBps(rawValue, decimals);
1133
+ 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}`));
919
1134
  };
920
1135
 
921
1136
  const HoverableElement = (props) => {
@@ -926,28 +1141,28 @@ const HoverableElement = (props) => {
926
1141
  return icon != null ? React__default.cloneElement(icon, { className }) : null;
927
1142
  };
928
1143
 
929
- var __defProp$P = Object.defineProperty;
930
- var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
931
- var __hasOwnProp$R = Object.prototype.hasOwnProperty;
932
- var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
933
- var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, {
1144
+ var __defProp$O = Object.defineProperty;
1145
+ var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
1146
+ var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
1147
+ var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
1148
+ var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, {
934
1149
  enumerable: true,
935
1150
  configurable: true,
936
1151
  writable: true,
937
1152
  value
938
1153
  }) : obj[key] = value;
939
- var __spreadValues$P = (a, b) => {
940
- for (var prop in b || (b = {})) if (__hasOwnProp$R.call(b, prop)) __defNormalProp$P(a, prop, b[prop]);
941
- if (__getOwnPropSymbols$R) for (var prop of __getOwnPropSymbols$R(b)) {
942
- if (__propIsEnum$R.call(b, prop)) __defNormalProp$P(a, prop, b[prop]);
1154
+ var __spreadValues$O = (a, b) => {
1155
+ for (var prop in b || (b = {})) if (__hasOwnProp$Q.call(b, prop)) __defNormalProp$O(a, prop, b[prop]);
1156
+ if (__getOwnPropSymbols$Q) for (var prop of __getOwnPropSymbols$Q(b)) {
1157
+ if (__propIsEnum$Q.call(b, prop)) __defNormalProp$O(a, prop, b[prop]);
943
1158
  }
944
1159
  return a;
945
1160
  };
946
- var __objRest$v = (source, exclude) => {
1161
+ var __objRest$u = (source, exclude) => {
947
1162
  var target = {};
948
- for (var prop in source) if (__hasOwnProp$R.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
949
- if (source != null && __getOwnPropSymbols$R) for (var prop of __getOwnPropSymbols$R(source)) {
950
- if (exclude.indexOf(prop) < 0 && __propIsEnum$R.call(source, prop)) target[prop] = source[prop];
1163
+ for (var prop in source) if (__hasOwnProp$Q.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
1164
+ if (source != null && __getOwnPropSymbols$Q) for (var prop of __getOwnPropSymbols$Q(source)) {
1165
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$Q.call(source, prop)) target[prop] = source[prop];
951
1166
  }
952
1167
  return target;
953
1168
  };
@@ -970,12 +1185,12 @@ const Button = React__default.forwardRef((props, ref) => {
970
1185
  onMouseLeave,
971
1186
  size = "middle"
972
1187
  } = _a,
973
- restProps = __objRest$v(_a, ["type", "className", "children", "prefixIcon", "hoverPrefixIcon", "suffixIcon", "hoverSuffixIcon", "onMouseEnter", "onMouseLeave", "size"]);
1188
+ restProps = __objRest$u(_a, ["type", "className", "children", "prefixIcon", "hoverPrefixIcon", "suffixIcon", "hoverSuffixIcon", "onMouseEnter", "onMouseLeave", "size"]);
974
1189
  const [status, setStatus] = useState("normal");
975
1190
  const hasIcon = prefixIcon || suffixIcon;
976
1191
  const hasHoverIcon = hoverPrefixIcon || hoverSuffixIcon;
977
1192
  const onlyIcon = !children && (prefixIcon || suffixIcon);
978
- return /* @__PURE__ */React__default.createElement(Button$1, __spreadValues$P({
1193
+ return /* @__PURE__ */React__default.createElement(Button$1, __spreadValues$O({
979
1194
  ref,
980
1195
  className: cs(className, ButtonStyle$1, type === "link" && NoPadding, 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"),
981
1196
  type: isAntdButtonTypes(type) ? type : void 0,
@@ -1005,97 +1220,6 @@ const Button = React__default.forwardRef((props, ref) => {
1005
1220
  }));
1006
1221
  });
1007
1222
 
1008
- var __defProp$O = Object.defineProperty;
1009
- var __defProps$A = Object.defineProperties;
1010
- var __getOwnPropDescs$A = Object.getOwnPropertyDescriptors;
1011
- var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
1012
- var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
1013
- var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
1014
- var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1015
- var __spreadValues$O = (a, b) => {
1016
- for (var prop in b || (b = {}))
1017
- if (__hasOwnProp$Q.call(b, prop))
1018
- __defNormalProp$O(a, prop, b[prop]);
1019
- if (__getOwnPropSymbols$Q)
1020
- for (var prop of __getOwnPropSymbols$Q(b)) {
1021
- if (__propIsEnum$Q.call(b, prop))
1022
- __defNormalProp$O(a, prop, b[prop]);
1023
- }
1024
- return a;
1025
- };
1026
- var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
1027
- var __objRest$u = (source, exclude) => {
1028
- var target = {};
1029
- for (var prop in source)
1030
- if (__hasOwnProp$Q.call(source, prop) && exclude.indexOf(prop) < 0)
1031
- target[prop] = source[prop];
1032
- if (source != null && __getOwnPropSymbols$Q)
1033
- for (var prop of __getOwnPropSymbols$Q(source)) {
1034
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Q.call(source, prop))
1035
- target[prop] = source[prop];
1036
- }
1037
- return target;
1038
- };
1039
- let componentId = 0;
1040
- const Tooltip = (props) => {
1041
- const _a = props, {
1042
- followMouse,
1043
- overlayClassName,
1044
- overlayStyle,
1045
- children
1046
- } = _a, restProps = __objRest$u(_a, [
1047
- "followMouse",
1048
- "overlayClassName",
1049
- "overlayStyle",
1050
- "children"
1051
- ]);
1052
- const id = useRef(++componentId);
1053
- const uniquePopupClass = `kit-popup-${id.current}`;
1054
- const uniqueContainerClass = `kit-tooltip-${id.current}`;
1055
- const _children = useMemo(() => {
1056
- if (followMouse) {
1057
- const child = React__default.isValidElement(children) ? children : /* @__PURE__ */ React__default.createElement("span", null, children);
1058
- return React__default.cloneElement(child, {
1059
- className: cs(child.props.className, uniqueContainerClass)
1060
- });
1061
- } else {
1062
- return children;
1063
- }
1064
- }, [children, followMouse, uniqueContainerClass]);
1065
- const onmousemove = useCallback(
1066
- (event) => {
1067
- const popup = document.querySelector(`.${uniquePopupClass}`);
1068
- if (!popup)
1069
- return;
1070
- popup.style.left = event.pageX + "px";
1071
- popup.style.top = event.pageY + "px";
1072
- },
1073
- [uniquePopupClass]
1074
- );
1075
- useEffect(() => {
1076
- if (followMouse) {
1077
- const container = document.querySelector(
1078
- `.${uniqueContainerClass}`
1079
- );
1080
- container == null ? void 0 : container.addEventListener("mousemove", onmousemove);
1081
- return () => {
1082
- container == null ? void 0 : container.removeEventListener("mousemove", onmousemove);
1083
- };
1084
- }
1085
- }, [followMouse, onmousemove, uniqueContainerClass]);
1086
- return /* @__PURE__ */ React__default.createElement(
1087
- Tooltip$1,
1088
- __spreadProps$A(__spreadValues$O({}, restProps), {
1089
- overlayClassName: followMouse ? cs(overlayClassName, uniquePopupClass) : overlayClassName,
1090
- children: _children,
1091
- overlayStyle: followMouse ? __spreadValues$O({
1092
- transform: "translate(-50%, -100%)",
1093
- pointerEvents: "none"
1094
- }, overlayStyle) : overlayStyle
1095
- })
1096
- );
1097
- };
1098
-
1099
1223
  var __defProp$N = Object.defineProperty;
1100
1224
  var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
1101
1225
  var __hasOwnProp$P = Object.prototype.hasOwnProperty;
@@ -1601,6 +1725,11 @@ const FullView = /*#__PURE__*/styled$1('div')({
1601
1725
  const InputStyle = "ipd9bk";
1602
1726
  const KitInputStyle = "kypn5o5";
1603
1727
 
1728
+ const LoadingWrapper = "l4bld33";
1729
+ const LoadingLine1 = "lgitjoj";
1730
+ const LoadingLine2 = "l13g0exg";
1731
+ const LoadingLine3 = "l1exo3h6";
1732
+
1604
1733
  var __defProp$H = Object.defineProperty;
1605
1734
  var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
1606
1735
  var __hasOwnProp$I = Object.prototype.hasOwnProperty;
@@ -1620,7 +1749,7 @@ var __spreadValues$H = (a, b) => {
1620
1749
  const Loading = ({ fullView = true }) => {
1621
1750
  const Wrapper = fullView ? FullView : Fragment;
1622
1751
  const props = fullView ? { className: "loading-full-view" } : {};
1623
- return /* @__PURE__ */ React__default.createElement(Wrapper, __spreadValues$H({}, props), /* @__PURE__ */ React__default.createElement("div", { className: "loading" }, /* @__PURE__ */ React__default.createElement("div", { className: "loading-indicator__line1" }), /* @__PURE__ */ React__default.createElement("div", { className: "loading-indicator__line2" }), /* @__PURE__ */ React__default.createElement("div", { className: "loading-indicator__line3" })));
1752
+ return /* @__PURE__ */ React__default.createElement(Wrapper, __spreadValues$H({}, props), /* @__PURE__ */ React__default.createElement("div", { className: LoadingWrapper }, /* @__PURE__ */ React__default.createElement("div", { className: LoadingLine1 }), /* @__PURE__ */ React__default.createElement("div", { className: LoadingLine2 }), /* @__PURE__ */ React__default.createElement("div", { className: LoadingLine3 })));
1624
1753
  };
1625
1754
 
1626
1755
  var __defProp$G = Object.defineProperty;
@@ -5829,7 +5958,10 @@ function getAntdKit() {
5829
5958
  time: Time,
5830
5959
  DropdownTransition,
5831
5960
  AccordionCard,
5832
- DetailCard
5961
+ DetailCard,
5962
+ TruncatedTextWithTooltip,
5963
+ Counting,
5964
+ Breadcrumb
5833
5965
  };
5834
5966
  kit.option.isSelectOption = true;
5835
5967
  kit.button.__ANT_BUTTON = true;