@unicom-cloud/ui 0.8.99 → 0.8.100

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 (136) hide show
  1. package/Anchor.js +3 -1
  2. package/Badge.js +7 -6
  3. package/Copy.js +49 -2
  4. package/Flex.js +12 -0
  5. package/Grid.js +1 -1
  6. package/LiquidFill.js +3 -2
  7. package/Marquee.js +3 -2
  8. package/QrCode.js +3 -2
  9. package/Splitter.js +4 -5
  10. package/Tag.js +3 -2
  11. package/Tour.js +3 -2
  12. package/alert/index.js +38 -39
  13. package/anchor/index.js +5 -3
  14. package/badge/index.js +19 -18
  15. package/copy/index.js +83 -35
  16. package/flex/index.js +59 -0
  17. package/flex/interface.js +34 -0
  18. package/flex/utils.js +13 -0
  19. package/grid/{GridItem.js → Item.js} +15 -15
  20. package/grid/index.js +1 -1
  21. package/index.js +503 -493
  22. package/input/Button.js +39 -34
  23. package/input/Textarea.js +108 -104
  24. package/liquid-fill/index.js +3 -2
  25. package/marquee/index.js +3 -2
  26. package/package.json +1 -1
  27. package/qr-code/index.js +3 -2
  28. package/segmented/index.js +112 -104
  29. package/spin/index.js +75 -62
  30. package/splitter/Panel.js +39 -0
  31. package/splitter/SplitBar.js +157 -0
  32. package/splitter/Splitter.js +139 -0
  33. package/splitter/hooks/useEvent.js +12 -0
  34. package/splitter/hooks/useItems.js +26 -0
  35. package/splitter/hooks/useResizable.js +26 -0
  36. package/splitter/hooks/useResize.js +68 -0
  37. package/splitter/hooks/useSizes.js +60 -0
  38. package/splitter/index.js +5 -115
  39. package/style.css +1 -1
  40. package/table/Table.js +1 -1
  41. package/table/hook/useThResizable.js +72 -26
  42. package/table/tbody/Td.js +80 -77
  43. package/table/th-resizable/index.js +92 -35
  44. package/tag/index.js +42 -41
  45. package/tooltip/index.js +89 -82
  46. package/tour/index.js +5 -6
  47. package/types/common/space/index.d.ts +2 -1
  48. package/types/pc/affix/interface.d.ts +0 -2
  49. package/types/pc/alert/index.d.ts +2 -2
  50. package/types/pc/anchor/index.d.ts +2 -1
  51. package/types/pc/anchor/interface.d.ts +0 -2
  52. package/types/pc/auto-complete/interface.d.ts +0 -6
  53. package/types/pc/avatar/interface.d.ts +0 -4
  54. package/types/pc/breadcrumb/interface.d.ts +0 -3
  55. package/types/pc/carousel/interface.d.ts +2 -6
  56. package/types/pc/cascader/interface.d.ts +6 -18
  57. package/types/pc/checkbox/interface.d.ts +0 -1
  58. package/types/pc/collapse/interface.d.ts +0 -2
  59. package/types/pc/color-picker/interface.d.ts +0 -2
  60. package/types/pc/config-provider/interface.d.ts +13 -17
  61. package/types/pc/copy/interface.d.ts +2 -1
  62. package/types/pc/date-picker/interface.d.ts +0 -17
  63. package/types/pc/descriptions/interface.d.ts +0 -1
  64. package/types/pc/drawer/interface.d.ts +0 -7
  65. package/types/pc/dropdown/interface.d.ts +0 -1
  66. package/types/pc/flex/index.d.ts +9 -0
  67. package/types/pc/flex/interface.d.ts +61 -0
  68. package/types/pc/flex/utils.d.ts +9 -0
  69. package/types/pc/form/interface.d.ts +9 -22
  70. package/types/pc/form/util.d.ts +1 -1
  71. package/types/pc/grid/index.d.ts +3 -3
  72. package/types/pc/grid/interface.d.ts +1 -6
  73. package/types/pc/image/interface.d.ts +0 -13
  74. package/types/pc/index.d.ts +6 -2
  75. package/types/pc/input/Textarea.d.ts +2 -6
  76. package/types/pc/input/interface.d.ts +5 -13
  77. package/types/pc/input-number/interface.d.ts +0 -4
  78. package/types/pc/input-tag/interface.d.ts +0 -13
  79. package/types/pc/layout/interface.d.ts +0 -1
  80. package/types/pc/link/interface.d.ts +0 -1
  81. package/types/pc/list/interface.d.ts +0 -4
  82. package/types/pc/menu/interface.d.ts +0 -8
  83. package/types/pc/message/interface.d.ts +0 -2
  84. package/types/pc/modal/interface.d.ts +0 -5
  85. package/types/pc/notification/interface.d.ts +0 -1
  86. package/types/pc/pagination/interface.d.ts +0 -2
  87. package/types/pc/popconfirm/interface.d.ts +8 -10
  88. package/types/pc/popover/interface.d.ts +0 -1
  89. package/types/pc/progress/interface.d.ts +0 -3
  90. package/types/pc/resize-box/interface.d.ts +1 -7
  91. package/types/pc/select/interface.d.ts +0 -12
  92. package/types/pc/select-view/interface.d.ts +0 -7
  93. package/types/pc/slider/interface.d.ts +0 -4
  94. package/types/pc/space/index.d.ts +1 -0
  95. package/types/pc/spin/interface.d.ts +4 -1
  96. package/types/pc/splitter/Panel.d.ts +8 -0
  97. package/types/pc/splitter/SplitBar.d.ts +21 -0
  98. package/types/pc/splitter/Splitter.d.ts +4 -0
  99. package/types/pc/splitter/hooks/useEvent.d.ts +3 -0
  100. package/types/pc/splitter/hooks/useItems.d.ts +10 -0
  101. package/types/pc/splitter/hooks/useResizable.d.ts +8 -0
  102. package/types/pc/splitter/hooks/useResize.d.ts +4 -0
  103. package/types/pc/splitter/hooks/useSizes.d.ts +5 -0
  104. package/types/pc/splitter/index.d.ts +8 -4
  105. package/types/pc/splitter/interface.d.ts +181 -38
  106. package/types/pc/statistic/interface.d.ts +0 -4
  107. package/types/pc/steps/interface.d.ts +0 -3
  108. package/types/pc/table/hook/useThResizable.d.ts +2 -2
  109. package/types/pc/table/interface.d.ts +4 -15
  110. package/types/pc/tabs/interface.d.ts +0 -7
  111. package/types/pc/tag/index.d.ts +2 -0
  112. package/types/pc/tag/interface.d.ts +0 -1
  113. package/types/pc/time-picker/interface.d.ts +0 -7
  114. package/types/pc/tooltip/interface.d.ts +4 -1
  115. package/types/pc/transfer/interface.d.ts +2 -9
  116. package/types/pc/tree/interface.d.ts +2 -8
  117. package/types/pc/tree-select/interface.d.ts +0 -8
  118. package/types/pc/trigger/interface.d.ts +0 -5
  119. package/types/pc/typography/EditContent.d.ts +2 -1
  120. package/types/pc/typography/interface.d.ts +45 -30
  121. package/types/pc/upload/interface.d.ts +6 -11
  122. package/types/pc/utils/index.d.ts +1 -0
  123. package/types/pc/utils/names.d.ts +6 -0
  124. package/types/pc/utils/toArray.d.ts +7 -0
  125. package/types/pc/verification-code/interface.d.ts +0 -2
  126. package/types/pc/watermark/interface.d.ts +0 -2
  127. package/typography/Base.js +73 -73
  128. package/typography/EditContent.js +43 -33
  129. package/typography/Ellipsis.js +117 -184
  130. package/typography/Operations.js +97 -49
  131. package/typography/useCssEllipsis.js +7 -6
  132. package/utils/index.js +117 -115
  133. package/utils/names.js +4 -0
  134. package/utils/toArray.js +12 -0
  135. package/version/index.js +1 -1
  136. /package/types/pc/grid/{GridItem.d.ts → Item.d.ts} +0 -0
package/tag/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { jsx as r, jsxs as y, Fragment as B } from "react/jsx-runtime";
2
- import D from "@unicom-cloud/icons/IconUiClose";
3
- import G from "@unicom-cloud/icons/IconUiLoading";
4
- import C from "lodash/isPlainObject";
1
+ import { jsx as r, jsxs as y, Fragment as q } from "react/jsx-runtime";
2
+ import B from "@unicom-cloud/icons/IconUiClose";
3
+ import D from "@unicom-cloud/icons/IconUiLoading";
4
+ import g from "lodash/isPlainObject";
5
5
  import { forwardRef as J, useContext as Q, useState as b } from "react";
6
6
  import "../config-provider/ConfigProvider.js";
7
7
  import W from "../components/common/hooks/useKeyboardEvent.js";
@@ -27,89 +27,89 @@ const ce = [
27
27
  ], se = {
28
28
  size: "default"
29
29
  };
30
- function re(P, I) {
31
- const { getPrefixCls: O, componentConfig: E, rtl: T } = Q(ne), _ = W(), n = X(
32
- P,
30
+ function re(O, P) {
31
+ const { getPrefixCls: I, componentConfig: T, rtl: _ } = Q(ne), E = W(), n = X(
32
+ O,
33
33
  se,
34
- E?.Tag
34
+ T?.Tag
35
35
  ), {
36
- className: j,
37
- style: z,
36
+ className: L,
37
+ style: S,
38
38
  children: k,
39
39
  color: s,
40
40
  closable: c,
41
41
  checkable: t,
42
- defaultChecked: H,
42
+ defaultChecked: j,
43
43
  size: u,
44
- onClose: L,
45
- onCheck: S,
44
+ onClose: z,
45
+ onCheck: H,
46
46
  icon: $,
47
47
  closeIcon: l,
48
- bordered: w,
49
- __closeIconProps: K,
50
- ...R
51
- } = n, e = O?.("tag"), [U, v] = b(
48
+ bordered: R,
49
+ __closeIconProps: w,
50
+ ...K
51
+ } = n, e = I?.("tag"), [U, v] = b(
52
52
  "visible" in n ? n.visible : !0
53
- ), [V, F] = b(
54
- "checked" in n ? n.checked : H
55
- ), [a, m] = b(), x = "checked" in n ? n.checked : V, M = "visible" in n ? n.visible : U;
53
+ ), [V, A] = b(
54
+ "checked" in n ? n.checked : j
55
+ ), [a, m] = b(), x = "checked" in n ? n.checked : V, F = "visible" in n ? n.visible : U;
56
56
  function d(o) {
57
- const g = L?.(o);
58
- g && g.then ? (m(!0), g.then(() => {
57
+ const C = z?.(o);
58
+ C && C.then ? (m(!0), C.then(() => {
59
59
  m(!1), v(!1);
60
60
  }).catch(() => {
61
61
  m(!1);
62
62
  })) : v(!1);
63
63
  }
64
- function q() {
64
+ function G() {
65
65
  const o = !x;
66
- "checked" in n || F(o), S?.(o);
66
+ "checked" in n || A(o), H?.(o);
67
67
  }
68
- const i = s && ce.indexOf(s) !== -1 ? s : "", p = t ? x : !0, A = ee(
68
+ const i = s && ce.indexOf(s) !== -1 ? s : "", p = t ? x : !0, M = ee(
69
69
  e,
70
70
  {
71
71
  [`${e}-loading`]: a,
72
- [`${e}-hide`]: !M,
72
+ [`${e}-hide`]: !F,
73
73
  [`${e}-${i}`]: i,
74
74
  [`${e}-checkable`]: t,
75
75
  [`${e}-checked`]: p,
76
76
  [`${e}-size-${u}`]: u,
77
- [`${e}-bordered`]: w,
77
+ [`${e}-bordered`]: R,
78
78
  [`${e}-custom-color`]: p && s && !i,
79
- [`${e}-rtl`]: T
79
+ [`${e}-rtl`]: _
80
80
  },
81
- j
81
+ L
82
82
  ), f = {
83
- ...z
83
+ ...S
84
84
  };
85
85
  s && !i && p && (f.backgroundColor ||= s, f.borderColor ||= s);
86
- const N = oe(R, ["visible"]);
87
- t && (N.onClick = q);
86
+ const N = oe(K, ["visible"]);
87
+ t && (N.onClick = G);
88
88
  let h = /* @__PURE__ */ r(
89
89
  Y,
90
90
  {
91
91
  prefix: e,
92
92
  className: `${e}-close-btn`,
93
93
  onClick: (o) => {
94
- C(c?.popconfirm) || d(o);
94
+ g(c?.popconfirm) || d(o);
95
95
  },
96
96
  role: "button",
97
97
  tabIndex: 0,
98
- ..._({
98
+ ...E({
99
99
  onPressEnter(o) {
100
- C(c?.popconfirm) || d(o);
100
+ g(c?.popconfirm) || d(o);
101
101
  }
102
102
  }),
103
103
  "aria-label": "Close",
104
- ...K,
105
- children: l !== void 0 ? l : /* @__PURE__ */ r(D, {})
104
+ ...w,
105
+ children: l !== void 0 ? l : /* @__PURE__ */ r(B, {})
106
106
  }
107
107
  );
108
- return C(c?.popconfirm) && (h = /* @__PURE__ */ r(
108
+ return g(c?.popconfirm) && (h = /* @__PURE__ */ r(
109
109
  Z,
110
110
  {
111
111
  ...c?.popconfirm,
112
- title: c?.popconfirm?.title || /* @__PURE__ */ y(B, { children: [
112
+ title: c?.popconfirm?.title || /* @__PURE__ */ y(q, { children: [
113
113
  "确定要关闭 ",
114
114
  k
115
115
  ] }),
@@ -121,15 +121,16 @@ function re(P, I) {
121
121
  },
122
122
  children: h
123
123
  }
124
- )), /* @__PURE__ */ y("div", { ref: I, style: f, className: A, ...N, children: [
124
+ )), /* @__PURE__ */ y("div", { ref: P, style: f, className: M, ...N, children: [
125
125
  $ && /* @__PURE__ */ r("span", { className: `${e}-icon`, children: $ }),
126
126
  /* @__PURE__ */ r("span", { className: `${e}-content`, children: k }),
127
127
  !!c && !a && l !== null && h,
128
- a && /* @__PURE__ */ r("span", { className: `${e}-loading-icon`, children: /* @__PURE__ */ r(G, {}) })
128
+ a && /* @__PURE__ */ r("span", { className: `${e}-loading-icon`, children: /* @__PURE__ */ r(D, {}) })
129
129
  ] });
130
130
  }
131
131
  const ie = J(re);
132
132
  ie.displayName = "Tag";
133
133
  export {
134
+ ce as TAG_COLORS,
134
135
  ie as default
135
136
  };
package/tooltip/index.js CHANGED
@@ -1,69 +1,71 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
2
  import "../dist/tinycolor/chunk/BOzCVdr0.js";
3
- import { TinyColor as L } from "../dist/tinycolor/src/index.js";
4
- import F from "lodash/isFunction";
5
- import { forwardRef as I, useContext as S, useRef as j, useImperativeHandle as z, useMemo as B } from "react";
3
+ import { TinyColor as F } from "../dist/tinycolor/src/index.js";
4
+ import I from "lodash/isFunction";
5
+ import { forwardRef as S, useContext as j, useRef as z, useImperativeHandle as B, useMemo as W } from "react";
6
6
  import "../config-provider/ConfigProvider.js";
7
- import W from "../components/common/hooks/useMergeProps.js";
8
- import q, { EventsByTriggerNeed as G } from "../trigger/index.js";
9
- import f from "@unicom-cloud/utils/class-name";
10
- import { isEmptyReactNode as J } from "../components/common/utils/is.js";
11
- import { pickDataAttributes as K, pick as Q } from "../components/common/utils/pick.js";
12
- import U from "../config-provider/context.js";
13
- const X = {
7
+ import q from "../components/common/hooks/useMergeProps.js";
8
+ import G, { EventsByTriggerNeed as J } from "../trigger/index.js";
9
+ import g from "@unicom-cloud/utils/class-name";
10
+ import { isEmptyReactNode as K } from "../components/common/utils/is.js";
11
+ import { pickDataAttributes as Q, pick as U } from "../components/common/utils/pick.js";
12
+ import X from "../config-provider/context.js";
13
+ const Y = {
14
14
  position: "top",
15
15
  trigger: "hover",
16
16
  escToClose: !1,
17
17
  unmountOnExit: !0,
18
18
  blurToHide: !0,
19
19
  popupHoverStay: !0
20
- }, Y = {
20
+ }, Z = {
21
21
  enter: 300,
22
22
  exit: 100
23
- }, Z = {
23
+ }, _ = {
24
24
  left: 12,
25
25
  right: 12,
26
26
  top: 12,
27
27
  bottom: 12
28
28
  };
29
- function _(g, d) {
30
- const { getPrefixCls: P, componentConfig: C } = S(U), n = W(
31
- g,
32
- X,
33
- C?.Tooltip
29
+ function oo(d, P) {
30
+ const { getPrefixCls: C, componentConfig: b } = j(X), n = q(
31
+ d,
32
+ Y,
33
+ b?.Tooltip
34
34
  ), {
35
- style: b,
35
+ style: h,
36
36
  className: l,
37
- children: h,
38
- trigger: x,
39
- escToClose: N,
40
- defaultPopupVisible: y,
37
+ children: x,
38
+ trigger: N,
39
+ escToClose: y,
40
+ defaultPopupVisible: T,
41
41
  position: a,
42
- unmountOnExit: T,
43
- popupVisible: w,
44
- prefixCls: V,
45
- blurToHide: v,
46
- popupHoverStay: $,
47
- disabled: D,
42
+ unmountOnExit: w,
43
+ popupVisible: V,
44
+ prefixCls: v,
45
+ blurToHide: $,
46
+ popupHoverStay: D,
47
+ disabled: E,
48
48
  onVisibleChange: A,
49
49
  triggerProps: u,
50
- childrenPrefix: E,
51
- getPopupContainer: H,
52
- content: i,
53
- mini: O,
54
- color: e,
55
- ...c
56
- } = n, t = j(), R = (s = 0, M) => {
57
- t.current?.updatePopupPosition?.(s, M);
50
+ childrenPrefix: H,
51
+ getPopupContainer: O,
52
+ content: s,
53
+ mini: R,
54
+ color: r,
55
+ pre: c,
56
+ // 潘启宝添加
57
+ ...m
58
+ } = n, t = z(), k = (i = 0, L) => {
59
+ t.current?.updatePopupPosition?.(i, L);
58
60
  };
59
- z(
60
- d,
61
+ B(
62
+ P,
61
63
  () => ({
62
64
  // ...refTrigger.current,
63
- updatePopupPosition: R,
65
+ updatePopupPosition: k,
64
66
  getRootDOMNode: () => t.current?.getRootDOMNode?.(),
65
- setPopupVisible(s) {
66
- t.current?.setPopupVisible?.(s);
67
+ setPopupVisible(i) {
68
+ t.current?.setPopupVisible?.(i);
67
69
  },
68
70
  hide() {
69
71
  t.current?.setPopupVisible?.(!1);
@@ -71,66 +73,71 @@ function _(g, d) {
71
73
  }),
72
74
  []
73
75
  );
74
- const r = V || P?.("tooltip"), o = {
75
- ...Q(c, G),
76
- ...K(c),
76
+ const e = v || C?.("tooltip"), o = {
77
+ ...U(m, J),
78
+ ...Q(m),
77
79
  ...u,
78
- className: f(l, u?.className)
79
- }, m = F(i) ? i() : i;
80
- "popupVisible" in n ? o.popupVisible = w : J(m, !0) && (o.popupVisible = !1), (o.showArrow !== !1 || o.arrowProps) && (o.arrowProps = o.arrowProps || {}, e && (o.arrowProps.style = {
81
- backgroundColor: e,
80
+ className: g(l, u?.className)
81
+ }, f = I(s) ? s() : s;
82
+ "popupVisible" in n ? o.popupVisible = V : K(f, !0) && (o.popupVisible = !1), (o.showArrow !== !1 || o.arrowProps) && (o.arrowProps = o.arrowProps || {}, r && (o.arrowProps.style = {
83
+ backgroundColor: r,
82
84
  ...o.arrowProps.style
83
85
  }));
84
- const k = B(() => e ? new L(e).isLight() ?? !1 : !1, [e]);
86
+ const M = W(() => r ? new F(r).isLight() ?? !1 : !1, [r]);
85
87
  return /* @__PURE__ */ p(
86
- q,
88
+ G,
87
89
  {
88
90
  style: {
89
91
  maxWidth: 350,
90
- ...b
92
+ ...h
91
93
  },
92
94
  className: l,
93
95
  ref: t,
94
96
  classNames: "zoomInFadeOut",
95
- duration: Y,
96
- popup: () => /* @__PURE__ */ p(
97
- "div",
98
- {
99
- style: { backgroundColor: e },
100
- className: f(
101
- `${r}-content`,
102
- `${r}-content-${a}`,
103
- {
104
- [`${r}-mini`]: O,
105
- [`${r}-light-color`]: k
106
- }
107
- ),
108
- role: "tooltip",
109
- children: /* @__PURE__ */ p("div", { className: `${r}-content-inner`, children: m })
110
- }
111
- ),
97
+ duration: Z,
98
+ popup: () => {
99
+ const i = c ? "pre" : "div";
100
+ return /* @__PURE__ */ p(
101
+ "div",
102
+ {
103
+ style: { backgroundColor: r },
104
+ className: g(
105
+ `${e}-content`,
106
+ `${e}-content-${a}`,
107
+ {
108
+ [`${e}-mini`]: R,
109
+ [`${e}-pre`]: c,
110
+ // 潘启宝添加
111
+ [`${e}-light-color`]: M
112
+ }
113
+ ),
114
+ role: "tooltip",
115
+ children: /* @__PURE__ */ p(i, { className: `${e}-content-inner`, children: f })
116
+ }
117
+ );
118
+ },
112
119
  position: a,
113
- disabled: D,
114
- trigger: x,
115
- escToClose: N,
120
+ disabled: E,
121
+ trigger: N,
122
+ escToClose: y,
116
123
  showArrow: !0,
117
- popupAlign: Z,
124
+ popupAlign: _,
118
125
  mouseEnterDelay: 200,
119
126
  mouseLeaveDelay: 200,
120
- unmountOnExit: T,
121
- popupHoverStay: $,
122
- blurToHide: v,
123
- childrenPrefix: E || r,
124
- getPopupContainer: H,
127
+ unmountOnExit: w,
128
+ popupHoverStay: D,
129
+ blurToHide: $,
130
+ childrenPrefix: H || e,
131
+ getPopupContainer: O,
125
132
  onVisibleChange: A,
126
- defaultPopupVisible: y,
133
+ defaultPopupVisible: T,
127
134
  ...o,
128
- children: h
135
+ children: x
129
136
  }
130
137
  );
131
138
  }
132
- const oo = I(_);
133
- oo.displayName = "Tooltip";
139
+ const eo = S(oo);
140
+ eo.displayName = "Tooltip";
134
141
  export {
135
- oo as default
142
+ eo as default
136
143
  };
package/tour/index.js CHANGED
@@ -56,6 +56,7 @@ import { resizeObserver as yt } from "../components/common/utils/resizeObserver.
56
56
  import "@unicom-cloud/utils/file/saveAs";
57
57
  import "@unicom-cloud/utils/screenfull";
58
58
  import "@unicom-cloud/utils/constant/ui.js";
59
+ import "react-is";
59
60
  import "@unicom-cloud/utils/tree";
60
61
  import "@unicom-cloud/utils/is";
61
62
  import "uuid";
@@ -73,13 +74,12 @@ const xt = {
73
74
  zIndex: 1e3,
74
75
  current: 0
75
76
  };
76
- function je(L) {
77
+ function Me(L) {
77
78
  const { getPrefixCls: X, componentConfig: Y, rtl: kt } = ct($t), K = gt(
78
79
  L,
79
80
  xt,
80
81
  Y?.Tour
81
- );
82
- let {
82
+ ), {
83
83
  style: U,
84
84
  className: _,
85
85
  steps: n,
@@ -96,8 +96,7 @@ function je(L) {
96
96
  onFinish: tt,
97
97
  onStepChange: O,
98
98
  ...Ct
99
- } = K;
100
- const o = X?.("tour"), [r, H] = C(S), [e, j] = C(null), [W, et] = C(w), [f, I] = C(N), M = F(null), c = F(null), E = `0 0 0 ${Math.max(window.innerWidth, window.innerHeight)}px var(--pqb-mask-bg-color),0 0 15px 0 var(--pqb-mask-bg-color)`, p = typeof n[r]?.target == "string" ? document.querySelector(n[r].target) : n[r]?.target, v = () => {
99
+ } = K, o = X?.("tour"), [r, H] = C(S), [e, j] = C(null), [W, et] = C(w), [f, I] = C(N), M = F(null), c = F(null), E = `0 0 0 ${Math.max(window.innerWidth, window.innerHeight)}px var(--pqb-mask-bg-color),0 0 15px 0 var(--pqb-mask-bg-color)`, p = typeof n[r]?.target == "string" ? document.querySelector(n[r].target) : n[r]?.target, v = () => {
101
100
  let t;
102
101
  if (p ? t = p.getBoundingClientRect() : t = new DOMRect(
103
102
  window.innerWidth / 2 - (c.current?.offsetWidth ?? 0) / 2,
@@ -307,5 +306,5 @@ function je(L) {
307
306
  );
308
307
  }
309
308
  export {
310
- je as default
309
+ Me as default
311
310
  };
@@ -1,8 +1,9 @@
1
+ import React from 'react';
1
2
  import { SpaceGap, SpaceProps } from './interface';
2
3
  declare const Space: React.ForwardRefExoticComponent<SpaceProps & React.RefAttributes<unknown>> & {
3
4
  Vertical: typeof SpaceVertical;
4
5
  };
5
- declare const SpaceVertical: import("react").ForwardRefExoticComponent<SpaceProps & import("react").RefAttributes<unknown>>;
6
+ declare const SpaceVertical: React.ForwardRefExoticComponent<SpaceProps & React.RefAttributes<unknown>>;
6
7
  export { SpaceVertical };
7
8
  export default Space;
8
9
  export type { SpaceGap, SpaceProps };
@@ -8,14 +8,12 @@ export interface AffixProps {
8
8
  /**
9
9
  * @zh 给 `fixed` 的元素设置 className。
10
10
  * @en ClassName of the fixed element.
11
- * @version 2.8.0
12
11
  */
13
12
  affixClassName?: string | string[];
14
13
  /**
15
14
  * @zh
16
15
  * 给 `fixed` 的元素设置 style,注意不要设置 `position` `top` `width` `height`, 因为这几个属性是在元素 fixed 时候用于定位的。
17
16
  * @en Style of the fixed elements. Don't set `position` `top` `width` `height` attributes as they are used for positioning when the element is fixed.
18
- * @version 2.8.0
19
17
  */
20
18
  affixStyle?: CSSProperties;
21
19
  /**
@@ -1,4 +1,4 @@
1
1
  import { AlertProps } from './interface';
2
- declare const AlertComponent: import("react").ForwardRefExoticComponent<AlertProps & import("react").RefAttributes<unknown>>;
3
- export default AlertComponent;
2
+ declare const Alert: import("react").ForwardRefExoticComponent<AlertProps & import("react").RefAttributes<unknown>>;
3
+ export default Alert;
4
4
  export type { AlertProps };
@@ -1,4 +1,5 @@
1
1
  import Anchor, { AnchorLink } from './Anchor';
2
- export { AnchorLink };
2
+ import { findNode } from './util';
3
+ export { AnchorLink, findNode as findAnchorLinkNode };
3
4
  export default Anchor;
4
5
  export type { AnchorProps } from './interface';
@@ -15,7 +15,6 @@ export interface AnchorProps {
15
15
  * @zh 方向
16
16
  * @en Direction
17
17
  * @defaultValue vertical
18
- * @version 2.51.0
19
18
  */
20
19
  direction?: 'vertical' | 'horizontal';
21
20
  /**
@@ -77,7 +76,6 @@ export interface AnchorProps {
77
76
  */
78
77
  lineless?: boolean;
79
78
  /**
80
- * @version 2.22.0
81
79
  * @zh 容器中基准线的位置相对容器顶部的偏移量,在没有设置的时候,取值为滚动容器高度的一半。当锚点到达或离开基准线的时候会更新锚点的状态。
82
80
  * @en The offset of the baseline relative to the top of the container.
83
81
  * The value is half of the height of the scrolling container if not specified.
@@ -57,7 +57,6 @@ export interface AutoCompleteProps extends PartialSelectProps {
57
57
  /**
58
58
  * @zh 状态
59
59
  * @en Status
60
- * @version 2.45.0
61
60
  */
62
61
  status?: 'error' | 'warning';
63
62
  /**
@@ -68,14 +67,12 @@ export interface AutoCompleteProps extends PartialSelectProps {
68
67
  /**
69
68
  * @zh 是否处于加载状态。
70
69
  * @en Whether the component is loading data.
71
- * @version 2.10.0
72
70
  */
73
71
  loading?: boolean;
74
72
  /**
75
73
  * @zh 自定义触发元素
76
74
  * @en Custom trigger element
77
75
  * @defaultValue <Input />
78
- * @version `() => ReactElement` in 2.31.0
79
76
  */
80
77
  triggerElement?: ReactElement | (({ value }: {
81
78
  value: any;
@@ -98,7 +95,6 @@ export interface AutoCompleteProps extends PartialSelectProps {
98
95
  /**
99
96
  * @zh 按下回车键的回调
100
97
  * @en Callback when Enter is pressed
101
- * @version `activeOption` in 2.25.1
102
98
  */
103
99
  onPressEnter?: (e: any, activeOption?: OptionInfo) => void;
104
100
  /**
@@ -114,13 +110,11 @@ export interface AutoCompleteProps extends PartialSelectProps {
114
110
  /**
115
111
  * @zh 传递虚拟滚动属性。
116
112
  * @en Virtual scroll properties.
117
- * @version 2.2.0
118
113
  */
119
114
  virtualListProps?: AvailableVirtualListProps;
120
115
  /**
121
116
  * @zh 传递 Input 组件的属性。
122
117
  * @en Properties of Input component.
123
- * @version 2.10.0
124
118
  */
125
119
  inputProps?: Partial<InputProps>;
126
120
  }
@@ -71,25 +71,21 @@ export interface AvatarGroupProps {
71
71
  /**
72
72
  * @zh 头像组内的头像 `z-index` 递增,默认是递减。
73
73
  * @en Whether `z-index` of the avatars in group are in ascending order. The default is in descending order.
74
- * @version 2.3.0
75
74
  */
76
75
  zIndexAscend?: boolean;
77
76
  /**
78
77
  * @zh 头像组最多显示的头像数量,多余头像将以 `+x` 的形式展示。
79
78
  * @en The maximum number of avatars displayed in the avatar group. The rest of avatars will be displayed as a `+x`.
80
- * @version 2.4.0
81
79
  */
82
80
  maxCount?: number;
83
81
  /**
84
82
  * @zh 多余头像样式。
85
83
  * @en Style for `+x`.
86
- * @version 2.4.0
87
84
  */
88
85
  maxStyle?: CSSProperties;
89
86
  /**
90
87
  * @zh 多余头像气泡的 `TriggerProps`。
91
88
  * @en `TriggerProps` for popover around `+x`.
92
- * @version 2.4.0
93
89
  */
94
90
  maxPopoverTriggerProps?: TriggerProps;
95
91
  }
@@ -58,19 +58,16 @@ export interface BreadCrumbItemProps extends CustomHTMLElement {
58
58
  /**
59
59
  * @zh 超链接地址
60
60
  * @en href
61
- * @version 2.40.0
62
61
  */
63
62
  href?: string;
64
63
  /**
65
64
  * @zh 点击回调
66
65
  * @en click callback
67
- * @version 2.40.0
68
66
  */
69
67
  onClick?: (e: any) => void;
70
68
  /**
71
69
  * @zh 标签名,可以是 html 标签或是组件
72
70
  * @en Configure the outermost label, which can be an html label or a component
73
- * @version 2.40.0
74
71
  * @defaultValue div
75
72
  */
76
73
  tagName?: string | React.FC<any> | React.ComponentClass<any>;
@@ -27,10 +27,10 @@ export interface CarouselProps {
27
27
  currentIndex?: number;
28
28
  /**
29
29
  * @zh
30
- * 是否自动循环展示,或者传入 `{ interval: 自动切换的时间间隔(默认: 3000), hoverToPause: 鼠标悬浮时是否暂停自动切换(默认: true) }` 进行高级配置 (`2.14.0` 支持传入对象)
30
+ * 是否自动循环展示,或者传入 `{ interval: 自动切换的时间间隔(默认: 3000), hoverToPause: 鼠标悬浮时是否暂停自动切换(默认: true) }` 进行高级配置
31
31
  * @en
32
32
  * Whether to scroll automatically, or pass in `{ interval: the time interval for switching (default: 3000),
33
- * hoverToPause: whether to pause switching while hover (default: true) }` for configuration (object is supported from `2.14.0`)
33
+ * hoverToPause: whether to pause switching while hover (default: true) }` for configuration
34
34
  */
35
35
  autoPlay?: boolean | {
36
36
  interval?: number;
@@ -41,7 +41,6 @@ export interface CarouselProps {
41
41
  * 是否仅渲染满足动画效果的最少数量的 children
42
42
  * @en
43
43
  * Whether to render only the minimum number of children that meet the animation effect
44
- * @version 2.21.0
45
44
  */
46
45
  miniRender?: boolean;
47
46
  autoPlaySpeed?: number;
@@ -83,7 +82,6 @@ export interface CarouselProps {
83
82
  /**
84
83
  * @zh 自定义图标
85
84
  * @en Customize icons
86
- * @version 2.25.0
87
85
  */
88
86
  icons?: {
89
87
  prev?: ReactNode;
@@ -118,13 +116,11 @@ export interface CarouselProps {
118
116
  /**
119
117
  * @zh 幻灯片发生切换时的回调函数。
120
118
  * @en Callback when slide changes.
121
- * @version `isManual` in 2.4.0
122
119
  */
123
120
  onChange?: (index: number, prevIndex: number, isManual: boolean) => void;
124
121
  /**
125
122
  * @zh 用于获得带有 API 方法的 Carousel 引用。
126
123
  * @en Carousel reference for imperative API calls.
127
- * @version 2.16.1
128
124
  */
129
125
  carousel?: MutableRefObject<CarouselHandle>;
130
126
  }