@unicom-cloud/ui 0.8.107 → 0.8.108

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 (137) hide show
  1. package/ColorPicker.js +15 -14
  2. package/Constant.js +4 -0
  3. package/Copy.js +4 -3
  4. package/Countdown.js +25 -0
  5. package/Grid.js +8 -10
  6. package/LiquidFill.js +4 -3
  7. package/List.js +7 -6
  8. package/Marquee.js +4 -3
  9. package/PageHeader.js +3 -2
  10. package/QrCode.js +4 -3
  11. package/RowCol.js +8 -0
  12. package/Segmented.js +14 -4
  13. package/Statistic.js +5 -4
  14. package/Tour.js +4 -3
  15. package/Transfer.js +4 -2
  16. package/anchor/Link.js +1 -1
  17. package/avatar/Group.js +1 -1
  18. package/button/index.js +52 -51
  19. package/calendar/Lunar.js +21 -21
  20. package/cascader/base/node.js +22 -20
  21. package/cascader/base/store.js +10 -10
  22. package/cascader/util.js +29 -27
  23. package/color-picker/Mode.js +8 -7
  24. package/color-picker/hooks/useColorPicker.js +56 -55
  25. package/color-picker/index.js +54 -53
  26. package/color-picker/utils.js +58 -57
  27. package/components/common/empty/index.js +2 -2
  28. package/components/common/flex/index.js +64 -55
  29. package/components/common/flex/interface.js +6 -6
  30. package/components/common/hooks/useInterval.js +6 -6
  31. package/components/common/space/index.js +53 -53
  32. package/components/common/utils/dayjs.js +75 -62
  33. package/components/common/utils/toArray.js +7 -5
  34. package/constant/index.js +4 -0
  35. package/copy/index.js +2 -1
  36. package/countdown/index.js +113 -0
  37. package/countdown/interface.js +1 -0
  38. package/countdown/util.js +29 -0
  39. package/descriptions/index.js +26 -26
  40. package/dropdown/Button.js +1 -1
  41. package/flex/index.js +30 -29
  42. package/form/FormItem.js +126 -122
  43. package/grid/Grid.js +40 -41
  44. package/grid/Item.js +37 -37
  45. package/grid/context.js +2 -3
  46. package/grid/index.js +6 -8
  47. package/hooks/useResponsiveState.js +54 -0
  48. package/index.js +614 -610
  49. package/input/InputElement.js +25 -24
  50. package/layout/Sider.js +1 -1
  51. package/liquid-fill/index.js +4 -3
  52. package/list/Item.js +21 -21
  53. package/list/index.js +53 -52
  54. package/marquee/index.js +20 -19
  55. package/marquee-/index.js +4 -3
  56. package/mentions/util.js +9 -8
  57. package/package.json +1 -1
  58. package/page-header/index.js +57 -56
  59. package/pagination/Pagination.js +89 -92
  60. package/qr-code/index.js +4 -3
  61. package/radio/Group.js +1 -1
  62. package/row-col/Col-.js +88 -0
  63. package/row-col/Col.js +159 -0
  64. package/row-col/Row.js +73 -0
  65. package/row-col/context.js +5 -0
  66. package/row-col/index.js +11 -0
  67. package/row-col/interface.js +1 -0
  68. package/segmented/index.js +257 -206
  69. package/select/Select.js +191 -191
  70. package/select/util.js +50 -50
  71. package/space/index.js +15 -13
  72. package/statistic/index.js +56 -55
  73. package/statistic/interface.js +4 -1
  74. package/style.css +1 -1
  75. package/table/hook/useColumns.js +27 -26
  76. package/table/hook/useStickyClassNames.js +9 -8
  77. package/table/hook/useThResizable.js +4 -3
  78. package/table/th-resizable/index.js +11 -10
  79. package/table/thead/index.js +18 -16
  80. package/timeline/Item.js +1 -1
  81. package/tour/index.js +4 -3
  82. package/transfer/index.js +93 -91
  83. package/trigger/index.js +66 -66
  84. package/types/common/flex/index.d.ts +3 -9
  85. package/types/common/flex/interface.d.ts +15 -4
  86. package/types/common/space/index.d.ts +3 -5
  87. package/types/common/space/interface.d.ts +2 -0
  88. package/types/common/utils/dayjs.d.ts +3 -1
  89. package/types/pc/button/interface.d.ts +2 -2
  90. package/types/pc/config-provider/interface.d.ts +16 -11
  91. package/types/pc/constant/index.d.ts +1 -0
  92. package/types/pc/countdown/interface.d.ts +65 -0
  93. package/types/pc/countdown/util.d.ts +7 -0
  94. package/types/pc/flex/index.d.ts +8 -6
  95. package/types/pc/flex/interface.d.ts +3 -10
  96. package/types/pc/form/FormItem.d.ts +1 -1
  97. package/types/pc/form/interface.d.ts +1 -1
  98. package/types/pc/grid/Grid.d.ts +1 -2
  99. package/types/pc/grid/Item.d.ts +1 -2
  100. package/types/pc/grid/context.d.ts +0 -5
  101. package/types/pc/grid/index.d.ts +4 -6
  102. package/types/pc/grid/interface.d.ts +7 -125
  103. package/types/pc/hooks/useResponsiveState.d.ts +3 -0
  104. package/types/pc/index.d.ts +7 -3
  105. package/types/pc/list/interface.d.ts +2 -1
  106. package/types/pc/pagination/PageOption.d.ts +0 -1
  107. package/types/pc/pagination/interface.d.ts +5 -6
  108. package/types/pc/{grid → row-col}/Col-.d.ts +1 -1
  109. package/types/pc/{grid → row-col}/Col.d.ts +1 -2
  110. package/types/pc/{grid → row-col}/Row.d.ts +1 -2
  111. package/types/pc/row-col/context.d.ts +6 -0
  112. package/types/pc/row-col/index.d.ts +7 -0
  113. package/types/pc/row-col/interface.d.ts +112 -0
  114. package/types/pc/segmented/index.d.ts +3 -7
  115. package/types/pc/segmented/interface.d.ts +38 -5
  116. package/types/pc/space/index.d.ts +5 -7
  117. package/types/pc/space/interface.d.ts +3 -10
  118. package/types/pc/statistic/index.d.ts +1 -1
  119. package/types/pc/statistic/interface.d.ts +1 -49
  120. package/types/pc/utils/names.d.ts +121 -113
  121. package/types/pc/utils/responsiveObserve.d.ts +8 -8
  122. package/typography/Ellipsis.js +5 -4
  123. package/typography/Operations.js +4 -3
  124. package/utils/dayjs.js +13 -11
  125. package/utils/index.js +244 -242
  126. package/utils/names.js +15 -10
  127. package/utils/responsiveObserve.js +43 -36
  128. package/version/index.js +1 -1
  129. package/grid/Col-.js +0 -86
  130. package/grid/Col.js +0 -169
  131. package/grid/Row.js +0 -96
  132. package/grid/hook/useResponsiveState.js +0 -35
  133. package/statistic/Countdown.js +0 -56
  134. package/statistic/util.js +0 -33
  135. package/types/pc/grid/hook/useResponsiveState.d.ts +0 -2
  136. package/types/pc/statistic/util.d.ts +0 -1
  137. /package/types/pc/{statistic/Countdown.d.ts → countdown/index.d.ts} +0 -0
package/select/util.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { jsx as K } from "react/jsx-runtime";
2
2
  import { isEmptyArray as B } from "@unicom-cloud/utils/is";
3
- import a from "lodash/get";
4
- import $ from "lodash/isArray";
3
+ import _ from "lodash/get";
4
+ import O from "lodash/isArray";
5
5
  import F from "lodash/isNil";
6
6
  import I from "lodash/isNumber";
7
- import h from "lodash/isPlainObject";
7
+ import L from "lodash/isPlainObject";
8
8
  import N from "lodash/isString";
9
- import g from "react";
9
+ import u from "react";
10
10
  import { fillNBSP as U } from "../components/common/utils/fillNBSP.js";
11
11
  import { getHighlightText as j } from "../components/common/utils/getHighlightText.js";
12
12
  import z from "./Option.js";
@@ -14,18 +14,18 @@ function ne(r) {
14
14
  r?.preventDefault?.();
15
15
  }
16
16
  function D(r, p) {
17
- return p ? !$(r) || B(r) : F(r);
17
+ return p ? !O(r) || B(r) : F(r);
18
18
  }
19
19
  function se(r, p, l) {
20
- return l && (p ? r = Array.isArray(r) ? r.map(
21
- (o) => h(o) && "label" in o ? o.value : o
22
- ) : r : r = h(r) && "label" in r ? r.value : r), D(r, p) ? p ? Array.isArray(r) ? r : [] : void 0 : r;
20
+ return l && (p ? r = O(r) ? r.map(
21
+ (o) => L(o) && "label" in o ? o.value : o
22
+ ) : r : r = L(r) && "label" in r ? r.value : r), D(r, p) ? p ? O(r) ? r : [] : void 0 : r;
23
23
  }
24
24
  function Q(r) {
25
- return a(r, "props.isSelectOption") || a(r, "type.__PQB_SELECT_OPTION__");
25
+ return _(r, "props.isSelectOption") || _(r, "type.__PQB_SELECT_OPTION__");
26
26
  }
27
27
  function R(r) {
28
- return a(r, "props.isSelectOptGroup") || a(r, "type.__PQB_SELECT_OPTGROUP__");
28
+ return _(r, "props.isSelectOptGroup") || _(r, "type.__PQB_SELECT_OPTGROUP__");
29
29
  }
30
30
  function v({
31
31
  children: r,
@@ -33,46 +33,46 @@ function v({
33
33
  filterOption: l
34
34
  }, {
35
35
  inputValue: o = "",
36
- userCreatedOptions: k,
37
- userCreatingOption: L,
38
- prefixCls: E
36
+ userCreatedOptions: T,
37
+ userCreatingOption: E,
38
+ prefixCls: b
39
39
  }, {
40
40
  optionInfoMap: m = /* @__PURE__ */ new Map(),
41
- optionValueList: u = [],
42
- customNodeCount: O = 0
41
+ optionValueList: y = [],
42
+ customNodeCount: x = 0
43
43
  } = {}) {
44
- let b = !1, c = !1, i = [], y = [];
45
- const T = (e) => {
46
- const s = a(e, "props.value"), t = a(e, "props.children");
44
+ let S = !1, c = !1, i = [], d = [];
45
+ const A = (e) => {
46
+ const s = _(e, "props.value"), t = _(e, "props.children");
47
47
  return s === void 0 && t !== null && t !== void 0 ? t.toString() : s;
48
- }, d = ({ label: e, value: s }, t, n) => !e && !s && !t ? (O++, `custom_node_${O}`) : n ? t || `group_${e}` : t || `${typeof s}_${s}` || `${e}_${m.size}`, S = (e, s, t) => {
49
- const n = T(e);
48
+ }, g = ({ label: e, value: s }, t, n) => !e && !s && !t ? (x++, `custom_node_${x}`) : n ? t || `group_${e}` : t || `${typeof s}_${s}` || `${e}_${m.size}`, w = (e, s, t) => {
49
+ const n = A(e);
50
50
  let f = !0;
51
51
  l === !0 ? f = n !== void 0 && String(n).toLowerCase().indexOf(o.toLowerCase()) !== -1 : typeof l == "function" && (f = !o || l(o, e, t));
52
- const _ = m.get(n), A = _?._origin === "userCreatedOptions" || _?._origin === "userCreatingOption";
53
- if (!_ || A) {
54
- "_key" in e.props || (e = g.cloneElement(e, {
55
- _key: d(e.props, e.key)
52
+ const a = m.get(n), P = a?._origin === "userCreatedOptions" || a?._origin === "userCreatingOption";
53
+ if (!a || P) {
54
+ "_key" in e.props || (e = u.cloneElement(e, {
55
+ _key: g(e.props, e.key)
56
56
  }));
57
- const w = m.size, P = {
57
+ const $ = m.size, k = {
58
58
  child: e,
59
59
  ...e.props,
60
60
  value: n,
61
- _index: w,
61
+ _index: $,
62
62
  _origin: s,
63
63
  _valid: f
64
64
  };
65
- if (m.set(n, P), A) {
66
- const C = i.findIndex(
65
+ if (m.set(n, k), P) {
66
+ const h = i.findIndex(
67
67
  (G) => G?.props?.value === n
68
68
  );
69
- C > -1 && (f ? i[C] = e : i.splice(C, 1));
69
+ h > -1 && (f ? i[h] = e : i.splice(h, 1));
70
70
  } else
71
- u.push(n), f && (i.push(e), P.disabled || y.push(w));
71
+ y.push(n), f && (i.push(e), k.disabled || d.push($));
72
72
  }
73
73
  typeof e.props.children != "string" && (c = !0);
74
- }, x = (e, s) => {
75
- s && $(e) && e.length && e.forEach((t) => {
74
+ }, C = (e, s) => {
75
+ s && O(e) && e.length && e.forEach((t) => {
76
76
  (N(t) || I(t)) && (t = {
77
77
  label: t,
78
78
  value: t
@@ -80,50 +80,50 @@ function v({
80
80
  const n = /* @__PURE__ */ K(
81
81
  z,
82
82
  {
83
- _key: d(t),
83
+ _key: g(t),
84
84
  value: t.value,
85
85
  disabled: t.disabled === !0,
86
86
  extra: t.extra,
87
87
  children: U(t.label)
88
88
  }
89
89
  );
90
- S(n, s, t);
90
+ w(n, s, t);
91
91
  });
92
92
  };
93
- return L && x([L], "userCreatingOption"), r && g.Children.map(r, (e) => {
93
+ return E && C([E], "userCreatingOption"), r && u.Children.map(r, (e) => {
94
94
  if (R(e)) {
95
95
  const { children: s, options: t } = e.props, {
96
96
  childrenList: n,
97
97
  optionIndexListForArrowKey: f,
98
- hasComplexLabelInOptions: _
98
+ hasComplexLabelInOptions: a
99
99
  } = v(
100
100
  { children: s, options: t, filterOption: l },
101
- { inputValue: o, prefixCls: E },
102
- { optionInfoMap: m, optionValueList: u, customNodeCount: O }
101
+ { inputValue: o, prefixCls: b },
102
+ { optionInfoMap: m, optionValueList: y, customNodeCount: x }
103
103
  );
104
104
  n.length && (i.push(
105
- g.cloneElement(e, {
105
+ u.cloneElement(e, {
106
106
  children: null,
107
- _key: d(e.props, e.key, !0)
107
+ _key: g(e.props, e.key, !0)
108
108
  })
109
- ), i = i.concat(n), y = y.concat(
109
+ ), i = i.concat(n), d = d.concat(
110
110
  f
111
- ), b = !0, c = c || _);
112
- } else Q(e) ? S(e, "children", null) : h(e) && e.props && i.push(
113
- g.cloneElement(e, {
114
- _key: d(e.props, e.key)
111
+ ), S = !0, c = c || a);
112
+ } else Q(e) ? w(e, "children", null) : L(e) && e.props && i.push(
113
+ u.cloneElement(e, {
114
+ _key: g(e.props, e.key)
115
115
  })
116
116
  );
117
- }), x(p, "options"), x(k, "userCreatedOptions"), {
117
+ }), C(p, "options"), C(T, "userCreatedOptions"), {
118
118
  childrenList: j({
119
119
  nodeList: i,
120
120
  pattern: o,
121
- highlightClassName: `${E}-highlight`
121
+ highlightClassName: `${b}-highlight`
122
122
  }),
123
123
  optionInfoMap: m,
124
- optionValueList: u,
125
- optionIndexListForArrowKey: y,
126
- hasOptGroup: b,
124
+ optionValueList: y,
125
+ optionIndexListForArrowKey: d,
126
+ hasOptGroup: S,
127
127
  hasComplexLabelInOptions: c
128
128
  };
129
129
  }
package/space/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as s, useContext as S } from "react";
3
- import x from "../components/common/space/index.js";
3
+ import u from "../components/common/space/index.js";
4
4
  import "../config-provider/ConfigProvider.js";
5
5
  import "lodash/isEqualWith";
6
6
  import "../components/common/utils/is.js";
@@ -9,35 +9,35 @@ import "lodash/isNumber";
9
9
  import "lodash/merge";
10
10
  import "../components/common/utils/dom.js";
11
11
  import "../components/common/hooks/useIntersectionObserver.js";
12
- import N from "../components/common/hooks/useMergeProps.js";
12
+ import x from "../components/common/hooks/useMergeProps.js";
13
13
  import "../components/common/utils/reactDOM.js";
14
14
  import "@unicom-cloud/utils/constant";
15
15
  import "lodash/debounce";
16
- import g from "@unicom-cloud/utils/class-name";
17
- import u from "../config-provider/context.js";
16
+ import N from "@unicom-cloud/utils/class-name";
17
+ import g from "../config-provider/context.js";
18
18
  const $ = {
19
19
  size: "small",
20
20
  direction: "horizontal"
21
21
  }, i = s(
22
- (o, t) => {
23
- const { getPrefixCls: c, componentConfig: n, rtl: l } = S(u), f = N(
22
+ (o, r) => {
23
+ const { getPrefixCls: c, componentConfig: n, rtl: l } = S(g), f = x(
24
24
  o,
25
25
  $,
26
26
  n?.Space
27
- ), { className: d, direction: r = "horizontal", wrap: p, ...C } = f, e = c?.("space");
27
+ ), { className: d, direction: t = "horizontal", wrap: p, ...C } = f, e = c?.("space");
28
28
  return /* @__PURE__ */ a(
29
- x,
29
+ u,
30
30
  {
31
- ref: t,
32
- className: g(
31
+ ref: r,
32
+ className: N(
33
33
  e,
34
34
  {
35
35
  [`${e}-wrap`]: p,
36
- [`${e}-${r}`]: r
36
+ [`${e}-${t}`]: t
37
37
  },
38
38
  d
39
39
  ),
40
- direction: r,
40
+ direction: t,
41
41
  wrap: p,
42
42
  rtl: l,
43
43
  ...C
@@ -46,7 +46,9 @@ const $ = {
46
46
  }
47
47
  );
48
48
  i.displayName = "Space";
49
- const m = s((o, t) => /* @__PURE__ */ a(i, { ref: t, direction: "vertical", ...o }));
49
+ const m = s(
50
+ (o, r) => /* @__PURE__ */ a(i, { ...o, ref: r, direction: "vertical" })
51
+ );
50
52
  m.displayName = "SpaceVertical";
51
53
  const E = Object.assign(i, {
52
54
  Vertical: m
@@ -1,45 +1,46 @@
1
- import { jsxs as l, Fragment as L, jsx as a } from "react/jsx-runtime";
2
- import { Tween as T } from "../dist/tween/src/tween.js";
3
- import W from "../dist/tween/src/easing.js";
4
- import z from "dayjs";
5
- import A from "lodash/isFunction";
1
+ import { jsxs as l, Fragment as k, jsx as a } from "react/jsx-runtime";
2
+ import { Tween as q } from "../dist/tween/src/tween.js";
3
+ import H from "../dist/tween/src/easing.js";
4
+ import W from "dayjs";
5
+ import X from "lodash/isFunction";
6
6
  import c from "lodash/isNumber";
7
- import { forwardRef as B, useContext as G, useRef as F, useState as J, useEffect as K, useImperativeHandle as Q, useMemo as X } from "react";
7
+ import { forwardRef as z, useContext as B, useRef as w, useState as G, useEffect as J, useImperativeHandle as K, useMemo as Q } from "react";
8
8
  import "../config-provider/ConfigProvider.js";
9
- import Y from "../components/common/hooks/useMergeProps.js";
10
- import Z from "../skeleton/index.js";
11
- import tt from "@unicom-cloud/utils/class-name";
12
- import { omit as et } from "../components/common/utils/omit.js";
13
- import ot from "./Countdown.js";
14
- import rt from "../config-provider/context.js";
15
- function nt(y, D) {
9
+ import Y from "../countdown/index.js";
10
+ import Z from "../components/common/hooks/useMergeProps.js";
11
+ import ee from "../skeleton/index.js";
12
+ import te from "@unicom-cloud/utils/class-name";
13
+ import { omit as oe } from "../components/common/utils/omit.js";
14
+ import { PREFIX_CLASS_STATISTIC as re } from "./interface.js";
15
+ import ne from "../config-provider/context.js";
16
+ function ie(y, D) {
16
17
  const R = {
17
18
  countFrom: 0,
18
19
  countDuration: 2e3
19
- }, { getPrefixCls: U, componentConfig: P, rtl: V } = G(rt), t = Y(
20
+ }, { getPrefixCls: P, componentConfig: U, rtl: I } = B(ne), e = Z(
20
21
  y,
21
22
  R,
22
- P?.Statistic
23
+ U?.Statistic
23
24
  ), {
24
- className: j,
25
- style: M,
25
+ className: T,
26
+ style: V,
26
27
  title: x,
27
- extra: g,
28
- groupSeparator: h,
28
+ extra: S,
29
+ groupSeparator: g,
29
30
  precision: s,
30
31
  prefix: m,
31
32
  suffix: u,
32
33
  format: p,
33
- renderFormat: S,
34
- styleValue: O,
35
- styleDecimal: _,
36
- loading: k,
37
- ...q
38
- } = t, i = F(), C = F(), [e, d] = J(
39
- "value" in t ? t.value : void 0
40
- ), o = U?.("statistic"), f = (n = t.countFrom, r = t.value) => {
41
- const { countDuration: N } = t;
42
- n !== r && (i.current = new T({
34
+ renderFormat: h,
35
+ styleValue: _,
36
+ styleDecimal: j,
37
+ loading: M,
38
+ ...A
39
+ } = e, i = w(), C = w(), [t, f] = G(
40
+ "value" in e ? e.value : void 0
41
+ ), o = P?.(re), d = (n = e.countFrom, r = e.value) => {
42
+ const { countDuration: N } = e;
43
+ n !== r && (i.current = new q({
43
44
  from: {
44
45
  value: n
45
46
  },
@@ -47,59 +48,59 @@ function nt(y, D) {
47
48
  value: r
48
49
  },
49
50
  duration: N,
50
- easing: W.quartOut,
51
- onUpdate: (I) => {
52
- d(I.value.toFixed(s));
51
+ easing: H.quartOut,
52
+ onUpdate: (O) => {
53
+ f(O.value.toFixed(s));
53
54
  },
54
55
  onFinish: () => {
55
- d(r);
56
+ f(r);
56
57
  }
57
58
  }), i.current.start());
58
59
  };
59
- K(() => (t.countUp ? (i.current && i.current.stop(), e !== t.value ? f(Number(e), t.value) : f()) : d(t.value), () => {
60
+ J(() => (e.countUp ? (i.current && i.current.stop(), t !== e.value ? d(Number(t), e.value) : d()) : f(e.value), () => {
60
61
  i.current && i.current.stop(), i.current = null;
61
- }), [t.value]), Q(D, () => ({
62
- countUp: f,
62
+ }), [e.value]), K(D, () => ({
63
+ countUp: d,
63
64
  getRootDOMNode: () => C.current
64
65
  }));
65
- const { int: E, decimal: v } = X(() => {
66
- let n = e;
67
- p && (n = z(e).format(p)), c(s) && s >= 0 && (n = Number(e).toFixed(s));
66
+ const { int: E, decimal: v } = Q(() => {
67
+ let n = t;
68
+ p && (n = W(t).format(p)), c(s) && s >= 0 && (n = Number(t).toFixed(s));
68
69
  let r = String(n).split(".")[0];
69
70
  const N = String(n).split(".")[1];
70
- return h && c(Number(e)) && (r = Number(r).toLocaleString("en-US")), {
71
+ return g && c(Number(t)) && (r = Number(r).toLocaleString("en-US")), {
71
72
  int: r,
72
73
  decimal: N
73
74
  };
74
- }, [p, h, s, e]), H = A(S) ? S : (n, r) => r, $ = c(Number(e)), w = /* @__PURE__ */ l(L, { children: [
75
+ }, [p, g, s, t]), L = X(h) ? h : (n, r) => r, F = c(Number(t)), $ = /* @__PURE__ */ l(k, { children: [
75
76
  m != null ? /* @__PURE__ */ a("span", { className: `${o}-value-prefix`, children: m }) : null,
76
- H(e, $ ? E : e)
77
+ L(t, F ? E : t)
77
78
  ] });
78
79
  return /* @__PURE__ */ l(
79
80
  "div",
80
81
  {
81
- className: tt(`${o}`, { [`${o}-rtl`]: V }, j),
82
- style: M,
83
- ...et(q, ["value", "countUp", "countFrom", "countDuration"]),
82
+ className: te(`${o}`, { [`${o}-rtl`]: I }, T),
83
+ style: V,
84
+ ...oe(A, ["value", "countUp", "countFrom", "countDuration"]),
84
85
  ref: C,
85
86
  children: [
86
87
  x && /* @__PURE__ */ a("div", { className: `${o}-title`, children: x }),
87
88
  /* @__PURE__ */ l("div", { className: `${o}-content`, children: [
88
89
  /* @__PURE__ */ a(
89
- Z,
90
+ ee,
90
91
  {
91
92
  animation: !0,
92
- loading: !!k,
93
+ loading: !!M,
93
94
  text: { rows: 1, width: "100%" },
94
- children: /* @__PURE__ */ l("div", { className: `${o}-value`, style: O, children: [
95
- $ ? /* @__PURE__ */ a("span", { className: `${o}-value-int`, children: w }) : w,
95
+ children: /* @__PURE__ */ l("div", { className: `${o}-value`, style: _, children: [
96
+ F ? /* @__PURE__ */ a("span", { className: `${o}-value-int`, children: $ }) : $,
96
97
  v !== void 0 || u ? /* @__PURE__ */ l(
97
98
  "span",
98
99
  {
99
100
  className: `${o}-value-decimal`,
100
- style: _,
101
+ style: j,
101
102
  children: [
102
- c(Number(e)) && v !== void 0 && `.${v}`,
103
+ c(Number(t)) && v !== void 0 && `.${v}`,
103
104
  u != null ? /* @__PURE__ */ a("span", { className: `${o}-value-suffix`, children: u }) : null
104
105
  ]
105
106
  }
@@ -107,16 +108,16 @@ function nt(y, D) {
107
108
  ] })
108
109
  }
109
110
  ),
110
- g && /* @__PURE__ */ a("div", { className: `${o}-extra`, children: g })
111
+ S && /* @__PURE__ */ a("div", { className: `${o}-extra`, children: S })
111
112
  ] })
112
113
  ]
113
114
  }
114
115
  );
115
116
  }
116
- const it = B(nt), b = it;
117
+ const ae = z(ie), b = ae;
117
118
  b.displayName = "Statistic";
118
- b.Countdown = ot;
119
+ b.Countdown = Y;
119
120
  export {
120
- ot as StatisticCountdown,
121
+ Y as StatisticCountdown,
121
122
  b as default
122
123
  };
@@ -1 +1,4 @@
1
-
1
+ const t = "statistic";
2
+ export {
3
+ t as PREFIX_CLASS_STATISTIC
4
+ };