@unicom-cloud/ui 0.8.81 → 0.8.82

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 (262) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +1 -1
  3. package/AutoComplete.js +2 -2
  4. package/BackTop.js +2 -2
  5. package/Badge.js +1 -1
  6. package/Breadcrumb.js +2 -2
  7. package/Button.js +1 -1
  8. package/Calendar.js +2 -2
  9. package/Card.js +1 -1
  10. package/Carousel.js +1 -1
  11. package/Cascader.js +1 -1
  12. package/Checkbox.js +1 -1
  13. package/Collapse.js +1 -1
  14. package/ColorPicker.js +2 -2
  15. package/Comment.js +1 -1
  16. package/ConfigProvider.js +5 -4
  17. package/Copy.js +1 -1
  18. package/DatePicker.js +7 -7
  19. package/Descriptions.js +1 -1
  20. package/Divider.js +1 -1
  21. package/Draggable.js +1 -1
  22. package/Dropdown.js +1 -1
  23. package/Empty.js +1 -1
  24. package/Icon.js +1 -1
  25. package/IconHover.js +1 -1
  26. package/Image.js +1 -1
  27. package/InputNumber.js +1 -1
  28. package/Layout.js +1 -1
  29. package/Link.js +1 -1
  30. package/List.js +2 -2
  31. package/Mentions.js +2 -2
  32. package/Menu.js +1 -1
  33. package/Message.js +1 -1
  34. package/Modal.js +1 -1
  35. package/Notice.js +1 -1
  36. package/Notification.js +5 -5
  37. package/OverflowEllipsis.js +1 -1
  38. package/PageHeader.js +1 -1
  39. package/Pagination.js +1 -1
  40. package/Popconfirm.js +1 -1
  41. package/Popover.js +1 -1
  42. package/Progress.js +1 -1
  43. package/Radio.js +1 -1
  44. package/Rate.js +1 -1
  45. package/ResizeBox.js +1 -1
  46. package/Result.js +1 -1
  47. package/Select.js +1 -1
  48. package/Skeleton.js +1 -1
  49. package/Slider.js +1 -1
  50. package/Space.js +1 -1
  51. package/SpeechSynthesis.js +1 -1
  52. package/Spin.js +1 -1
  53. package/Statistic.js +2 -2
  54. package/Steps.js +1 -1
  55. package/Switch.js +1 -1
  56. package/Table.js +1 -1
  57. package/Tabs.js +1 -1
  58. package/Tag.js +1 -1
  59. package/Tooltip.js +1 -1
  60. package/Transfer.js +2 -2
  61. package/Tree.js +1 -1
  62. package/TreeSelect.js +1 -1
  63. package/Trigger.js +1 -1
  64. package/Typography.js +1 -1
  65. package/affix/index.js +60 -57
  66. package/alert/index.js +53 -53
  67. package/anchor/Anchor.js +72 -72
  68. package/anchor/Link.js +27 -27
  69. package/anchor/util.js +1 -1
  70. package/auto-complete/index.js +2 -2
  71. package/avatar/Avatar.js +31 -31
  72. package/avatar/Group.js +25 -25
  73. package/back-top/index.js +30 -30
  74. package/badge/index.js +37 -37
  75. package/breadcrumb/index.js +26 -26
  76. package/button/Group.js +7 -7
  77. package/button/index.js +29 -29
  78. package/calendar/index.js +2 -2
  79. package/card/Grid.js +12 -12
  80. package/card/Meta.js +17 -17
  81. package/card/index.js +44 -44
  82. package/carousel/Arrow.js +19 -19
  83. package/carousel/Indicator.js +25 -25
  84. package/carousel/index.js +77 -77
  85. package/cascader/Cascader.js +2 -2
  86. package/cascader/index.js +1 -1
  87. package/cascader/util.js +1 -1
  88. package/checkbox/Checkbox.js +2 -2
  89. package/checkbox/Group.js +2 -2
  90. package/checkbox/GroupBlock.js +2 -2
  91. package/checkbox/index.js +2 -2
  92. package/chunk/{yLRv5RIK.js → CQI1gsQs.js} +181 -181
  93. package/chunk/CmMehQON.js +1464 -0
  94. package/chunk/Cplu5dtQ.js +730 -0
  95. package/chunk/{C5X4hOkx.js → D0338Pbq.js} +80 -80
  96. package/chunk/{DYspELhF.js → DXDbeIai.js} +223 -223
  97. package/chunk/{DEiyXzBZ.js → DfrB26fI.js} +63 -63
  98. package/chunk/{BG7YGUsx.js → dKvAiKxr.js} +119 -119
  99. package/chunk/{BNevupAU.js → uKZyjtff.js} +5 -4
  100. package/chunk/{DLBfXSnU.js → w221i0nK.js} +2872 -2871
  101. package/collapse/Collapse.js +2 -2
  102. package/collapse/Item.js +2 -2
  103. package/collapse/index.js +1 -1
  104. package/color-picker/ControlBar.js +36 -36
  105. package/color-picker/InputAlpha.js +11 -11
  106. package/color-picker/InputHex.js +24 -24
  107. package/color-picker/InputRgb.js +23 -23
  108. package/color-picker/Palette.js +18 -18
  109. package/color-picker/Panel.js +2 -2
  110. package/color-picker/index.js +2 -2
  111. package/comment/index.js +31 -31
  112. package/config-provider/ConfigProvider.js +5 -4
  113. package/config-provider/context.js +2 -2
  114. package/config-provider/index.js +4 -3
  115. package/copy/index.js +28 -28
  116. package/date-picker/Picker.js +276 -276
  117. package/date-picker/{PickerRange.js → RangePicker.js} +2 -2
  118. package/date-picker/index.js +26 -27
  119. package/descriptions/index.js +33 -33
  120. package/divider/index.js +12 -12
  121. package/draggable/index.js +23 -23
  122. package/drawer/Drawer.js +81 -81
  123. package/dropdown/Button.js +1 -1
  124. package/dropdown/index.js +56 -56
  125. package/empty/index.js +1 -1
  126. package/form/Form.js +76 -76
  127. package/form/FormItem.js +64 -64
  128. package/grid/Col.js +53 -53
  129. package/grid/Row.js +34 -34
  130. package/grid/grid-item.js +29 -29
  131. package/grid/grid.js +50 -50
  132. package/icon/index.js +20 -19
  133. package/icon-hover/index.js +1 -1
  134. package/image/Image.js +86 -86
  135. package/image/ImagePreview.js +2 -2
  136. package/image/ImagePreviewArrow.js +22 -22
  137. package/image/ImagePreviewGroup.js +1 -1
  138. package/image/index.js +1 -1
  139. package/index.js +410 -408
  140. package/input/Group.js +8 -8
  141. package/input/Input.js +322 -322
  142. package/input/InputElement.js +1 -1
  143. package/input/Password.js +1 -1
  144. package/input/Search.js +1 -1
  145. package/input/Textarea.js +1 -1
  146. package/input-number/index.js +1 -1
  147. package/input-tag/InputTag.js +40 -40
  148. package/layout/Content.js +7 -7
  149. package/layout/Footer.js +9 -9
  150. package/layout/Header.js +7 -7
  151. package/layout/Sider.js +55 -55
  152. package/layout/index.js +32 -32
  153. package/link/index.js +35 -35
  154. package/list/Item.js +29 -29
  155. package/list/Meta.js +12 -12
  156. package/list/index.js +2 -2
  157. package/mentions/index.js +2 -2
  158. package/menu/Menu.js +2 -2
  159. package/menu/OverflowWrap.js +1 -1
  160. package/menu/index.js +2 -2
  161. package/message/index.js +1 -1
  162. package/message/useMessage.js +1 -1
  163. package/modal/Confirm.js +2 -2
  164. package/modal/Modal.js +2 -2
  165. package/modal/index.js +1 -1
  166. package/notice/index.js +1 -1
  167. package/notification/index.js +5 -5
  168. package/notification/useNotification.js +1 -1
  169. package/overflow-ellipsis/OverflowItem.js +12 -12
  170. package/overflow-ellipsis/index.js +24 -24
  171. package/package.json +1 -1
  172. package/page-header/index.js +38 -38
  173. package/pagination/PageItem.js +16 -16
  174. package/pagination/PageJumper.js +1 -1
  175. package/pagination/PageOption.js +2 -2
  176. package/pagination/Pagination.js +2 -2
  177. package/pagination/index.js +1 -1
  178. package/picker/Input.js +69 -69
  179. package/picker/InputRange.js +111 -111
  180. package/popconfirm/index.js +61 -61
  181. package/popover/index.js +35 -35
  182. package/progress/index.js +22 -22
  183. package/radio/Group.js +2 -2
  184. package/radio/GroupBlock.js +2 -2
  185. package/radio/Radio.js +2 -2
  186. package/radio/index.js +2 -2
  187. package/rate/index.js +49 -49
  188. package/resize-box/ResizeTrigger.js +34 -34
  189. package/resize-box/Split.js +56 -56
  190. package/resize-box/SplitGroup.js +55 -55
  191. package/resize-box/index.js +51 -51
  192. package/result/index.js +41 -41
  193. package/select/Option.js +1 -1
  194. package/select/Select.js +2 -2
  195. package/select/index.js +2 -2
  196. package/select/util.js +1 -1
  197. package/select-view/Core.js +125 -125
  198. package/skeleton/index.js +20 -20
  199. package/slider/Button.js +57 -57
  200. package/slider/index.js +116 -116
  201. package/space/index.js +46 -44
  202. package/speech-synthesis/index.js +1 -1
  203. package/spin/DotLoading.js +10 -10
  204. package/spin/index.js +44 -44
  205. package/statistic/Countdown.js +34 -34
  206. package/statistic/index.js +67 -67
  207. package/steps/index.js +55 -55
  208. package/style.css +1 -1
  209. package/switch/index.js +54 -54
  210. package/table/Table.js +3 -3
  211. package/table/index.js +1 -1
  212. package/tabs/Tab.js +2 -2
  213. package/tabs/TabContent.js +2 -2
  214. package/tabs/TabPane.js +12 -12
  215. package/tabs/index.js +2 -2
  216. package/tag/index.js +45 -45
  217. package/time-picker/Picker.js +76 -76
  218. package/time-picker/TimePicker.js +136 -136
  219. package/time-picker/index.js +8 -8
  220. package/time-picker/util.js +5 -5
  221. package/timeline/Item.js +47 -47
  222. package/timeline/Timeline.js +41 -41
  223. package/tooltip/index.js +29 -29
  224. package/transfer/Item.js +2 -2
  225. package/transfer/List.js +2 -2
  226. package/transfer/index.js +2 -2
  227. package/tree/Animation.js +2 -2
  228. package/tree/Node.js +2 -2
  229. package/tree/NodeList.js +1 -1
  230. package/tree/Tree.js +2 -2
  231. package/tree/index.js +1 -1
  232. package/tree-select/List.js +1 -1
  233. package/tree-select/Select.js +2 -2
  234. package/tree-select/index.js +2 -2
  235. package/trigger/index.js +60 -60
  236. package/types/config-provider/ConfigProvider.d.ts +2 -2
  237. package/types/config-provider/context.d.ts +1 -1
  238. package/types/date-picker/index.d.ts +8 -9
  239. package/types/date-picker/interface.d.ts +9 -9
  240. package/types/index.d.ts +1 -1
  241. package/types/picker/Input.d.ts +2 -2
  242. package/types/space/index.d.ts +2 -1
  243. package/types/utils/names.d.ts +1 -1
  244. package/typography/Base.js +53 -53
  245. package/typography/Ellipsis.js +9 -8
  246. package/typography/Operations.js +28 -28
  247. package/typography/Paragraph.js +8 -8
  248. package/typography/Typography.js +7 -7
  249. package/typography/index.js +1 -1
  250. package/upload/TriggerNode.js +47 -47
  251. package/upload/Upload.js +184 -184
  252. package/utils/contextHolder.js +3 -3
  253. package/utils/index.js +13 -13
  254. package/utils/names.js +1 -1
  255. package/utils/setPrimaryColor.js +18 -13
  256. package/utils/tween.js +1 -1
  257. package/verification-code/VerificationCode.js +49 -49
  258. package/version/index.js +1 -1
  259. package/watermark/Watermark.js +24 -24
  260. package/chunk/CQvM33Vg.js +0 -724
  261. package/chunk/yhU2zeeu.js +0 -1461
  262. /package/types/date-picker/{PickerRange.d.ts → RangePicker.d.ts} +0 -0
@@ -1,25 +1,25 @@
1
- import { jsx as t, jsxs as E } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as P } from "react/jsx-runtime";
2
2
  import We, { useRef as ue, useContext as qe, useState as de, useEffect as Xe, useImperativeHandle as Je, useMemo as Qe, createElement as Ye } from "react";
3
3
  import Ze from "@unicom-cloud/icons/IconUiClose";
4
4
  import eo from "@unicom-cloud/icons/IconUiDown";
5
5
  import oo from "@unicom-cloud/icons/IconUiLoading";
6
6
  import no from "@unicom-cloud/icons/IconUiSearch";
7
7
  import ro from "lodash/isFunction";
8
- import fe from "lodash/isUndefined";
9
- import { a as to, I as so } from "../chunk/CQvM33Vg.js";
8
+ import pe from "lodash/isUndefined";
9
+ import { a as to, I as so } from "../chunk/Cplu5dtQ.js";
10
10
  import { u as ao } from "../chunk/CQ_WOOmf.js";
11
11
  import { u as co } from "../chunk/BsY85n3_.js";
12
12
  import lo from "../input-tag/InputTag.js";
13
13
  import io from "../input/InputElement.js";
14
14
  import uo from "../popover/index.js";
15
- import pe from "../tag/index.js";
16
- import k from "@unicom-cloud/utils/class-name";
17
- import { f as me } from "../chunk/CftuXmo_.js";
18
- import { i as fo } from "../chunk/CYhxqVkn.js";
15
+ import me from "../tag/index.js";
16
+ import D from "@unicom-cloud/utils/class-name";
17
+ import { f as fe } from "../chunk/CftuXmo_.js";
18
+ import { i as po } from "../chunk/CYhxqVkn.js";
19
19
  import "../chunk/ClM74To2.js";
20
- import { Enter as po, Backspace as mo } from "@unicom-cloud/utils/constant/keyboardCode";
20
+ import { Enter as mo, Backspace as fo } from "@unicom-cloud/utils/constant/keyboardCode";
21
21
  import { isPlainObject as C, isNumber as he } from "@unicom-cloud/utils/is";
22
- const J = "__pqb_value_tag_placeholder", w = {
22
+ const Q = "__pqb_value_tag_placeholder", I = {
23
23
  BEFORE: 0,
24
24
  EDITING: 1,
25
25
  NONE: 2
@@ -37,122 +37,122 @@ const J = "__pqb_value_tag_placeholder", w = {
37
37
  disabled: h,
38
38
  animation: Se,
39
39
  prefixCls: n,
40
- suffixIcon: Q,
41
- arrowIcon: Y,
40
+ suffixIcon: Y,
41
+ arrowIcon: Z,
42
42
  removeIcon: ye,
43
- clearIcon: D,
44
- placeholder: Z,
45
- renderText: ee,
43
+ clearIcon: F,
44
+ placeholder: ee,
45
+ renderText: oe,
46
46
  value: g,
47
- inputValue: F,
48
- popupVisible: p,
47
+ inputValue: O,
48
+ popupVisible: m,
49
49
  maxTagCount: c,
50
50
  isMultiple: v,
51
- isEmptyValue: O,
52
- prefix: R,
53
- ariaControls: Pe,
54
- renderTag: M,
55
- dragToSort: oe,
56
- rtl: Ee,
57
- htmlDataAttributes: ke,
58
- onKeyDown: A,
59
- onChangeInputValue: _,
51
+ isEmptyValue: R,
52
+ prefix: M,
53
+ ariaControls: Ee,
54
+ renderTag: A,
55
+ dragToSort: ne,
56
+ rtl: ke,
57
+ htmlDataAttributes: Pe,
58
+ onKeyDown: _,
59
+ onChangeInputValue: U,
60
60
  onPaste: De,
61
61
  onClear: Fe,
62
- onFocus: U,
63
- onBlur: B,
64
- onRemoveCheckedItem: V,
65
- onSort: z,
62
+ onFocus: B,
63
+ onBlur: V,
64
+ onRemoveCheckedItem: z,
65
+ onSort: L,
66
66
  ...Oe
67
- } = N, I = ue(null), m = ue(null), { size: Re, getPrefixCls: ne } = qe(to), [Me, re] = de(w.NONE), [L, te] = de(!1), Ae = ao(), T = "showSearch" in N ? N.showSearch : v, f = T || Ie, S = Ne || Re, j = L || p, _e = C(T) && T.retainInputValue, b = !v && g !== void 0 ? ee(g).text : "", H = (e) => {
67
+ } = N, T = ue(null), f = ue(null), { size: Re, getPrefixCls: w } = qe(to), [Me, re] = de(I.NONE), [j, te] = de(!1), Ae = ao(), $ = "showSearch" in N ? N.showSearch : v, p = $ || Ie, y = Ne || Re, H = j || m, _e = C($) && $.retainInputValue, b = !v && g !== void 0 ? oe(g).text : "", G = (e) => {
68
68
  var o;
69
69
  (o = e == null ? void 0 : e.preventDefault) == null || o.call(e);
70
- }, G = (e) => {
71
- const o = f ? I.current : m.current;
70
+ }, K = (e) => {
71
+ const o = p ? T.current : f.current;
72
72
  o && (e === "focus" ? o.focus() : o.blur());
73
- }, y = (e, o) => {
74
- f && o.target === m.current || (e === "focus" ? (te(!0), U == null || U(o)) : (te(!1), B == null || B(o)));
73
+ }, E = (e, o) => {
74
+ p && o.target === f.current || (e === "focus" ? (te(!0), B == null || B(o)) : (te(!1), V == null || V(o)));
75
75
  }, se = (e) => {
76
- if (f && e.currentTarget === m.current)
76
+ if (p && e.currentTarget === f.current)
77
77
  return;
78
- e.key === po.key && e.preventDefault(), A == null || A(e);
78
+ e.key === mo.key && e.preventDefault(), _ == null || _(e);
79
79
  };
80
80
  Xe(() => {
81
- G(p ? "focus" : "blur"), f && re(p ? w.BEFORE : w.NONE);
82
- }, [p]), Je(ge, () => ({
83
- dom: m.current,
84
- getRootDOMNode: () => m.current,
85
- focus: G.bind(null, "focus"),
86
- blur: G.bind(null, "blur"),
87
- getWidth: () => m.current && m.current.clientWidth
81
+ K(m ? "focus" : "blur"), p && re(m ? I.BEFORE : I.NONE);
82
+ }, [m]), Je(ge, () => ({
83
+ dom: f.current,
84
+ getRootDOMNode: () => f.current,
85
+ focus: K.bind(null, "focus"),
86
+ blur: K.bind(null, "blur"),
87
+ getWidth: () => f.current && f.current.clientWidth
88
88
  }));
89
- const Ue = "arrowIcon" in N ? Y === null ? null : /* @__PURE__ */ t("div", { className: `${n}-arrow-icon`, children: Y }) : /* @__PURE__ */ t("div", { className: `${n}-arrow-icon`, children: /* @__PURE__ */ t(eo, {}) }), Be = $e ? /* @__PURE__ */ t("span", { className: `${n}-loading-icon`, children: /* @__PURE__ */ t(oo, {}) }) : Q ? /* @__PURE__ */ t("span", { className: `${n}-suffix-icon`, children: Q }) : N.showSearch && p ? /* @__PURE__ */ t("div", { className: `${n}-search-icon`, children: /* @__PURE__ */ t(no, {}) }) : Ue, i = {
89
+ const Ue = "arrowIcon" in N ? Z === null ? null : /* @__PURE__ */ t("div", { className: `${n}-arrow-icon`, children: Z }) : /* @__PURE__ */ t("div", { className: `${n}-arrow-icon`, children: /* @__PURE__ */ t(eo, {}) }), Be = $e ? /* @__PURE__ */ t("span", { className: `${n}-loading-icon`, children: /* @__PURE__ */ t(oo, {}) }) : Y ? /* @__PURE__ */ t("span", { className: `${n}-suffix-icon`, children: Y }) : N.showSearch && m ? /* @__PURE__ */ t("div", { className: `${n}-search-icon`, children: /* @__PURE__ */ t(no, {}) }) : Ue, i = {
90
90
  paste: De,
91
91
  keyDown: se,
92
92
  focus: (e) => {
93
- e.stopPropagation(), y("focus", e);
93
+ e.stopPropagation(), E("focus", e);
94
94
  },
95
95
  blur: (e) => {
96
- e.stopPropagation(), y("blur", e);
96
+ e.stopPropagation(), E("blur", e);
97
97
  },
98
98
  change: (e, o) => {
99
- re(w.EDITING), _ == null || _(e, o);
99
+ re(I.EDITING), U == null || U(e, o);
100
100
  }
101
101
  }, Ve = () => {
102
102
  let e;
103
103
  switch (Me) {
104
- case w.BEFORE:
105
- e = F || (_e ? b : "");
104
+ case I.BEFORE:
105
+ e = O || (_e ? b : "");
106
106
  break;
107
- case w.EDITING:
108
- e = F || "";
107
+ case I.EDITING:
108
+ e = O || "";
109
109
  break;
110
110
  default:
111
111
  e = b;
112
112
  break;
113
113
  }
114
- const o = !!(j && f || O), s = {
114
+ const o = !!(H && p || R), s = {
115
115
  style: { width: "100%" },
116
116
  // _inputValue after renderText(value) may be rich text, but the value of <input> cannot be object
117
117
  value: o && typeof e != "object" ? e : "",
118
118
  // Allow placeholder to display the selected value first when searching
119
- placeholder: f && b && typeof b != "object" ? b : Z
119
+ placeholder: p && b && typeof b != "object" ? b : ee
120
120
  };
121
- return f ? (s.onPaste = i.paste, s.onKeyDown = i.keyDown, s.onFocus = i.focus, s.onBlur = i.blur, s.onChange = i.change) : (s.tabIndex = -1, s.style.pointerEvents = "none"), /* @__PURE__ */ E("span", { className: `${n}-view-selector`, children: [
121
+ return p ? (s.onPaste = i.paste, s.onKeyDown = i.keyDown, s.onFocus = i.focus, s.onBlur = i.blur, s.onChange = i.change) : (s.tabIndex = -1, s.style.pointerEvents = "none"), /* @__PURE__ */ P("span", { className: `${n}-view-selector`, children: [
122
122
  /* @__PURE__ */ t(
123
123
  io,
124
124
  {
125
125
  "aria-hidden": !o || void 0,
126
- ref: I,
126
+ ref: T,
127
127
  disabled: h,
128
- className: k(`${n}-view-input`, {
128
+ className: D(`${n}-view-input`, {
129
129
  [`${n}-hidden`]: !o
130
130
  }),
131
131
  autoComplete: "off",
132
132
  ...s
133
133
  }
134
134
  ),
135
- o ? /* @__PURE__ */ t("span", { className: `${n}-view-value-mirror`, children: me(s.value ? e : s.placeholder) }) : null,
135
+ o ? /* @__PURE__ */ t("span", { className: `${n}-view-value-mirror`, children: fe(s.value ? e : s.placeholder) }) : null,
136
136
  /* @__PURE__ */ t(
137
137
  "span",
138
138
  {
139
139
  style: o ? { display: "none" } : {},
140
140
  className: `${n}-view-value`,
141
- children: me(O ? s.placeholder : e)
141
+ children: fe(R ? s.placeholder : e)
142
142
  }
143
143
  )
144
144
  ] });
145
- }, K = co(ee), ae = C(c) ? c.count : c, ce = (e) => {
146
- const o = K(e);
145
+ }, W = co(oe), ae = C(c) ? c.count : c, ce = (e) => {
146
+ const o = W(e);
147
147
  return { value: e, label: o.text, closable: !o.disabled };
148
- }, W = Qe(() => {
148
+ }, q = Qe(() => {
149
149
  if (!v)
150
150
  return [];
151
- const e = fe(g) ? [] : [].concat(g);
152
- return (he(ae) ? e.slice(0, ae) : e).map((P) => ce(P));
153
- }, [g, v, c, K]), ze = () => {
154
- const e = C(c) ? c.count : c, o = C(c) && c.showPopover, s = ne("input-tag"), P = (r) => C(c) && ro(c.render) ? c.render(r) : e === "responsive" ? /* @__PURE__ */ E(
155
- pe,
151
+ const e = pe(g) ? [] : [].concat(g);
152
+ return (he(ae) ? e.slice(0, ae) : e).map((k) => ce(k));
153
+ }, [g, v, c, W]), ze = () => {
154
+ const e = C(c) ? c.count : c, o = C(c) && c.showPopover, s = w == null ? void 0 : w("input-tag"), k = (r) => C(c) && ro(c.render) ? c.render(r) : e === "responsive" ? /* @__PURE__ */ P(
155
+ me,
156
156
  {
157
157
  className: `${s}-tag`,
158
158
  children: [
@@ -161,24 +161,24 @@ const J = "__pqb_value_tag_placeholder", w = {
161
161
  "..."
162
162
  ]
163
163
  },
164
- J
165
- ) : `+${r}...`, x = fe(g) ? [] : [].concat(g), He = () => {
164
+ Q
165
+ ) : `+${r}...`, x = pe(g) ? [] : [].concat(g), He = () => {
166
166
  for (let r = x.length - 1; r >= 0; r--) {
167
167
  const l = x[r];
168
- if (!K(l).disabled)
168
+ if (!W(l).disabled)
169
169
  return r;
170
170
  }
171
171
  return -1;
172
- }, q = {
172
+ }, X = {
173
173
  onPaste: i.paste,
174
174
  onKeyDown: i.keyDown,
175
175
  onFocus: i.focus,
176
176
  onBlur: i.blur,
177
177
  onInputChange: i.change,
178
178
  onRemove: (r, l, u) => {
179
- const $ = u.key;
179
+ const S = u.key;
180
180
  let a = -1;
181
- $ === mo.key && (a = He()) !== -1 && (r = x[a], l = a), c && Ae(), V == null || V(r, l, u);
181
+ S === fo.key && (a = He()) !== -1 && (r = x[a], l = a), c && Ae(), z == null || z(r, l, u);
182
182
  }
183
183
  }, Ge = {
184
184
  suffix: null,
@@ -192,38 +192,38 @@ const J = "__pqb_value_tag_placeholder", w = {
192
192
  const r = x.length - e;
193
193
  if (r > 0) {
194
194
  const l = {
195
- label: P(r),
195
+ label: k(r),
196
196
  closable: !1,
197
197
  // InputTag needs to extract value as key
198
- value: J
198
+ value: Q
199
199
  };
200
200
  if (o) {
201
201
  const u = x.map((a, d) => ({ val: a, index: d })).slice(e).map((a) => {
202
202
  const d = ce(a.val);
203
- return M ? M(
203
+ return A ? A(
204
204
  {
205
205
  ...d,
206
- onClose: (X) => {
207
- q.onRemove(d.value, a.index, X);
206
+ onClose: (J) => {
207
+ X.onRemove(d.value, a.index, J);
208
208
  }
209
209
  },
210
210
  a.index,
211
- W.concat(l)
211
+ q.concat(l)
212
212
  ) : /* @__PURE__ */ Ye(
213
- pe,
213
+ me,
214
214
  {
215
215
  ...d,
216
216
  key: d.value,
217
217
  className: `${s}-tag`,
218
- onClose: (X) => q.onRemove(d.value, a.index, X)
218
+ onClose: (J) => X.onRemove(d.value, a.index, J)
219
219
  },
220
220
  d.label
221
221
  );
222
- }), $ = C(o) ? o : {};
222
+ }), S = C(o) ? o : {};
223
223
  l.label = /* @__PURE__ */ t(
224
224
  uo,
225
225
  {
226
- ...$,
226
+ ...S,
227
227
  content: !!u.length && /* @__PURE__ */ t(
228
228
  "div",
229
229
  {
@@ -240,68 +240,68 @@ const J = "__pqb_value_tag_placeholder", w = {
240
240
  return l;
241
241
  }
242
242
  }
243
- })(), Ke = ie ? W.concat(ie) : W;
243
+ })(), Ke = ie ? q.concat(ie) : q;
244
244
  return /* @__PURE__ */ t(
245
245
  lo,
246
246
  {
247
247
  ...Ge,
248
- className: j ? `${ne("input-tag")}-focus` : "",
249
- ref: I,
248
+ className: H ? `${w == null ? void 0 : w("input-tag")}-focus` : "",
249
+ ref: T,
250
250
  disabled: h,
251
- dragToSort: oe,
252
- disableInput: !T,
251
+ dragToSort: ne,
252
+ disableInput: !$,
253
253
  animation: Se,
254
- placeholder: Z,
254
+ placeholder: ee,
255
255
  value: Ke,
256
- inputValue: F,
257
- size: S,
256
+ inputValue: O,
257
+ size: y,
258
258
  tagClassName: `${n}-tag`,
259
- renderTag: M,
259
+ renderTag: A,
260
260
  icon: { removeIcon: ye },
261
261
  maxTagCount: e === "responsive" ? {
262
262
  count: e,
263
- render: P,
263
+ render: k,
264
264
  popoverProps: C(o) ? o : o ? {} : { disabled: !0 }
265
265
  } : void 0,
266
266
  onChange: (r, l) => {
267
- if (z && l === "sort") {
267
+ if (L && l === "sort") {
268
268
  const u = r.indexOf(
269
- J
269
+ Q
270
270
  );
271
271
  if (u > -1) {
272
- const $ = r.slice(0, u), a = r.slice(u + 1), d = x.slice(
272
+ const S = r.slice(0, u), a = r.slice(u + 1), d = x.slice(
273
273
  r.length - 1 - x.length
274
274
  );
275
- z($.concat(d, a));
275
+ L(S.concat(d, a));
276
276
  } else
277
- z(r);
277
+ L(r);
278
278
  }
279
279
  },
280
- ...q
280
+ ...X
281
281
  }
282
282
  );
283
- }, le = Te || (N.error ? "error" : void 0), Le = !h && !O && we ? /* @__PURE__ */ t(
283
+ }, le = Te || (N.error ? "error" : void 0), Le = !h && !R && we ? /* @__PURE__ */ t(
284
284
  so,
285
285
  {
286
- size: S,
286
+ size: y,
287
287
  className: `${n}-clear-icon`,
288
288
  onClick: Fe,
289
- onMouseDown: H,
290
- children: D ?? /* @__PURE__ */ t(Ze, {})
289
+ onMouseDown: G,
290
+ children: F ?? /* @__PURE__ */ t(Ze, {})
291
291
  },
292
292
  "clearIcon"
293
- ) : null, je = k(
293
+ ) : null, je = D(
294
294
  n,
295
295
  `${n}-${v ? "multiple" : "single"}`,
296
296
  {
297
- [`${n}-show-search`]: T,
298
- [`${n}-open`]: p,
299
- [`${n}-size-${S}`]: S,
300
- [`${n}-focused`]: j,
297
+ [`${n}-show-search`]: $,
298
+ [`${n}-open`]: m,
299
+ [`${n}-size-${y}`]: y,
300
+ [`${n}-focused`]: H,
301
301
  [`${n}-${le}`]: le,
302
302
  [`${n}-disabled`]: h,
303
303
  [`${n}-no-border`]: !ve,
304
- [`${n}-rtl`]: Ee
304
+ [`${n}-rtl`]: ke
305
305
  },
306
306
  Ce
307
307
  );
@@ -311,46 +311,46 @@ const J = "__pqb_value_tag_placeholder", w = {
311
311
  role: "combobox",
312
312
  "aria-haspopup": "listbox",
313
313
  "aria-autocomplete": "list",
314
- "aria-expanded": p,
314
+ "aria-expanded": m,
315
315
  "aria-disabled": h,
316
- "aria-controls": Pe,
317
- ...fo(Oe, ["onClick", "onMouseEnter", "onMouseLeave"]),
318
- ...ke,
319
- ref: m,
316
+ "aria-controls": Ee,
317
+ ...po(Oe, ["onClick", "onMouseEnter", "onMouseLeave"]),
318
+ ...Pe,
319
+ ref: f,
320
320
  tabIndex: h ? -1 : 0,
321
321
  id: be,
322
322
  style: xe,
323
323
  className: je,
324
324
  onKeyDown: se,
325
325
  onFocus: (e) => {
326
- !h && !oe && (f ? I.current && I.current.focus() : y("focus", e));
326
+ !h && !ne && (p ? T.current && T.current.focus() : E("focus", e));
327
327
  },
328
- onBlur: (e) => y("blur", e),
329
- children: /* @__PURE__ */ E(
328
+ onBlur: (e) => E("blur", e),
329
+ children: /* @__PURE__ */ P(
330
330
  "div",
331
331
  {
332
332
  title: typeof b == "string" ? b : void 0,
333
- className: k(`${n}-view`, {
334
- [`${n}-view-with-prefix`]: R
333
+ className: D(`${n}-view`, {
334
+ [`${n}-view-with-prefix`]: M
335
335
  }),
336
- onClick: (e) => p && f && e.stopPropagation(),
336
+ onClick: (e) => m && p && e.stopPropagation(),
337
337
  children: [
338
- R && /* @__PURE__ */ t(
338
+ M && /* @__PURE__ */ t(
339
339
  "div",
340
340
  {
341
341
  "aria-hidden": "true",
342
- className: k(`${n}-prefix`),
343
- onMouseDown: (e) => L && H(e),
344
- children: R
342
+ className: D(`${n}-prefix`),
343
+ onMouseDown: (e) => j && G(e),
344
+ children: M
345
345
  }
346
346
  ),
347
347
  v ? ze() : Ve(),
348
- /* @__PURE__ */ E(
348
+ /* @__PURE__ */ P(
349
349
  "div",
350
350
  {
351
351
  "aria-hidden": "true",
352
352
  className: `${n}-suffix`,
353
- onMouseDown: (e) => L && H(e),
353
+ onMouseDown: (e) => j && G(e),
354
354
  children: [
355
355
  Le,
356
356
  Be
package/skeleton/index.js CHANGED
@@ -1,49 +1,49 @@
1
- import { jsx as e, jsxs as k } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as P } from "react/jsx-runtime";
2
2
  import C from "lodash/isPlainObject";
3
3
  import S, { forwardRef as j, useContext as v } from "react";
4
- import { a as b } from "../chunk/CQvM33Vg.js";
4
+ import { a as b } from "../chunk/Cplu5dtQ.js";
5
5
  import { u as y } from "../chunk/BFTV6myl.js";
6
6
  import R from "@unicom-cloud/utils/class-name";
7
7
  import { a as w } from "../chunk/ClqoGc3r.js";
8
8
  import A from "./Image.js";
9
9
  import D from "./Text.js";
10
- function c(o) {
10
+ function l(o) {
11
11
  return C(o) ? o : {};
12
12
  }
13
13
  const F = {
14
14
  text: !0,
15
15
  loading: !0
16
16
  };
17
- function I(o, l) {
18
- const { getPrefixCls: p, componentConfig: r, rtl: f } = v(b), s = y(
17
+ function I(o, p) {
18
+ const { getPrefixCls: r, componentConfig: n, rtl: d } = v(b), a = y(
19
19
  o,
20
20
  F,
21
- r == null ? void 0 : r.Skeleton
22
- ), { style: d, className: u, animation: g, loading: x, image: i, text: a, children: h } = s, n = c(i), N = c(a), t = p("skeleton"), P = R(
21
+ n == null ? void 0 : n.Skeleton
22
+ ), { style: f, className: u, animation: g, loading: x, image: i, text: m, children: h } = a, s = l(i), N = l(m), t = r == null ? void 0 : r("skeleton"), $ = R(
23
23
  t,
24
24
  {
25
25
  [`${t}-animate`]: g,
26
- [`${t}-rtl`]: f
26
+ [`${t}-rtl`]: d
27
27
  },
28
28
  u
29
29
  );
30
- function m() {
31
- return i && /* @__PURE__ */ e("div", { className: `${t}-header`, children: /* @__PURE__ */ e(A, { prefixCls: t, ...n }) });
30
+ function c() {
31
+ return i && /* @__PURE__ */ e("div", { className: `${t}-header`, children: /* @__PURE__ */ e(A, { prefixCls: t, ...s }) });
32
32
  }
33
- function $() {
34
- return a && /* @__PURE__ */ e("div", { className: `${t}-content`, children: /* @__PURE__ */ e(D, { prefixCls: t, ...N }) });
33
+ function k() {
34
+ return m && /* @__PURE__ */ e("div", { className: `${t}-content`, children: /* @__PURE__ */ e(D, { prefixCls: t, ...N }) });
35
35
  }
36
- return /* @__PURE__ */ e(S.Fragment, { children: x ? /* @__PURE__ */ k(
36
+ return /* @__PURE__ */ e(S.Fragment, { children: x ? /* @__PURE__ */ P(
37
37
  "div",
38
38
  {
39
- ...w(s),
40
- className: P,
41
- style: d,
42
- ref: l,
39
+ ...w(a),
40
+ className: $,
41
+ style: f,
42
+ ref: p,
43
43
  children: [
44
- n.position !== "right" && m(),
45
- $(),
46
- n.position === "right" && m()
44
+ s.position !== "right" && c(),
45
+ k(),
46
+ s.position === "right" && c()
47
47
  ]
48
48
  }
49
49
  ) : h });