@unicom-cloud/ui 0.8.74 → 0.8.76

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 (255) hide show
  1. package/Affix.js +1 -1
  2. package/Alert.js +1 -1
  3. package/AutoComplete.js +1 -1
  4. package/BackTop.js +1 -1
  5. package/Badge.js +1 -1
  6. package/Breadcrumb.js +2 -2
  7. package/Button.js +1 -1
  8. package/Calendar.js +1 -1
  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 +1 -1
  15. package/Comment.js +1 -1
  16. package/ConfigProvider.js +1 -1
  17. package/Copy.js +1 -1
  18. package/DatePicker.js +1 -1
  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 +1 -1
  31. package/Mentions.js +1 -1
  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 +1 -1
  37. package/OverflowEllipsis.js +1 -1
  38. package/PageHeader.js +1 -1
  39. package/Popconfirm.js +1 -1
  40. package/Popover.js +1 -1
  41. package/Progress.js +1 -1
  42. package/Radio.js +1 -1
  43. package/Rate.js +1 -1
  44. package/ResizeBox.js +1 -1
  45. package/Result.js +1 -1
  46. package/Skeleton.js +1 -1
  47. package/Slider.js +1 -1
  48. package/Space.js +1 -1
  49. package/SpeechSynthesis.js +4 -3
  50. package/Spin.js +1 -1
  51. package/Statistic.js +1 -1
  52. package/Steps.js +1 -1
  53. package/Switch.js +1 -1
  54. package/Table.js +1 -1
  55. package/Tabs.js +1 -1
  56. package/Tag.js +1 -1
  57. package/Tooltip.js +2 -2
  58. package/Transfer.js +1 -1
  59. package/Tree.js +1 -1
  60. package/Trigger.js +1 -1
  61. package/affix/index.js +86 -82
  62. package/alert/index.js +1 -1
  63. package/anchor/Anchor.js +1 -1
  64. package/anchor/Link.js +1 -1
  65. package/auto-complete/index.js +1 -1
  66. package/avatar/Avatar.js +1 -1
  67. package/avatar/Group.js +1 -1
  68. package/back-top/index.js +1 -1
  69. package/badge/index.js +1 -1
  70. package/breadcrumb/index.js +2 -2
  71. package/button/Group.js +1 -1
  72. package/button/index.js +1 -1
  73. package/calendar/index.js +2 -2
  74. package/card/Grid.js +1 -1
  75. package/card/Meta.js +1 -1
  76. package/card/index.js +1 -1
  77. package/carousel/Arrow.js +1 -1
  78. package/carousel/Indicator.js +1 -1
  79. package/carousel/index.js +1 -1
  80. package/cascader/Cascader.js +2 -2
  81. package/cascader/index.js +1 -1
  82. package/cascader/util.js +1 -1
  83. package/checkbox/Checkbox.js +2 -2
  84. package/checkbox/Group.js +2 -2
  85. package/checkbox/index.js +1 -1
  86. package/chunk/ATwvJ8j2.js +6 -0
  87. package/chunk/BGmWsXl0.js +257 -0
  88. package/chunk/{_L2dKF58.js → ByRETFRI.js} +1 -1
  89. package/chunk/CBzE-PUr.js +23 -0
  90. package/chunk/CQzKdjhX.js +714 -0
  91. package/chunk/{CWjvjpyc.js → CqtaeJXT.js} +280 -226
  92. package/chunk/{Dn7KbmZ7.js → CzaoCNQH.js} +2 -2
  93. package/chunk/{D5UfU6-H.js → D0qXkqyq.js} +3 -3
  94. package/chunk/{BoUHPeG7.js → D9JpbqFT.js} +1 -1
  95. package/chunk/{Bu8A2l60.js → DM_DBvmG.js} +2 -2
  96. package/chunk/{NmSLBKjp.js → DQrLGkIG.js} +1 -1
  97. package/chunk/{Bd9zhOZS.js → DezXC21w.js} +1 -1
  98. package/chunk/{DdT3C0ih.js → J07pQqQ7.js} +2 -2
  99. package/chunk/{BDZpJpz-.js → OPbfCome.js} +1 -1
  100. package/chunk/{DJ8rDYjb.js → lf-xRLXx.js} +1 -1
  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 +1 -1
  105. package/color-picker/InputAlpha.js +1 -1
  106. package/color-picker/InputHex.js +7 -7
  107. package/color-picker/InputRgb.js +6 -6
  108. package/color-picker/Palette.js +5 -5
  109. package/color-picker/Panel.js +3 -3
  110. package/color-picker/colors.js +7 -23
  111. package/color-picker/index.js +2 -2
  112. package/color-picker/utils.js +1 -1
  113. package/comment/index.js +1 -1
  114. package/config-provider/ConfigProvider.js +7 -6
  115. package/config-provider/context.js +3 -2
  116. package/config-provider/index.js +2 -2
  117. package/copy/index.js +1 -1
  118. package/date-picker/Picker.js +1 -1
  119. package/date-picker/PickerRange.js +2 -2
  120. package/date-picker/index.js +1 -1
  121. package/descriptions/index.js +1 -1
  122. package/divider/index.js +1 -1
  123. package/draggable/index.js +1 -1
  124. package/drawer/Drawer.js +1 -1
  125. package/dropdown/Button.js +1 -1
  126. package/dropdown/index.js +1 -1
  127. package/empty/index.js +1 -1
  128. package/form/Form.js +1 -1
  129. package/form/FormItem.js +1 -1
  130. package/grid/Col.js +1 -1
  131. package/grid/Row.js +1 -1
  132. package/grid/grid-item.js +1 -1
  133. package/grid/grid.js +1 -1
  134. package/icon/index.js +1 -1
  135. package/icon-hover/index.js +1 -1
  136. package/image/Image.js +2 -2
  137. package/image/ImagePreview.js +2 -2
  138. package/image/ImagePreviewArrow.js +1 -1
  139. package/image/ImagePreviewGroup.js +1 -1
  140. package/image/index.js +1 -1
  141. package/index.js +488 -482
  142. package/input/Group.js +1 -1
  143. package/input/Input.js +1 -1
  144. package/input/InputElement.js +1 -1
  145. package/input/Password.js +1 -1
  146. package/input/Search.js +1 -1
  147. package/input/Textarea.js +1 -1
  148. package/input-number/index.js +1 -1
  149. package/input-tag/InputTag.js +1 -1
  150. package/layout/Content.js +1 -1
  151. package/layout/Footer.js +1 -1
  152. package/layout/Header.js +1 -1
  153. package/layout/Sider.js +1 -1
  154. package/layout/index.js +1 -1
  155. package/link/index.js +1 -1
  156. package/list/Item.js +1 -1
  157. package/list/Meta.js +1 -1
  158. package/list/index.js +1 -1
  159. package/mentions/index.js +1 -1
  160. package/menu/Menu.js +2 -2
  161. package/menu/OverflowWrap.js +1 -1
  162. package/menu/index.js +2 -2
  163. package/message/index.js +1 -1
  164. package/message/useMessage.js +1 -1
  165. package/modal/Confirm.js +2 -2
  166. package/modal/Modal.js +2 -2
  167. package/modal/index.js +1 -1
  168. package/notice/index.js +1 -1
  169. package/notification/index.js +1 -1
  170. package/notification/useNotification.js +1 -1
  171. package/overflow-ellipsis/OverflowItem.js +1 -1
  172. package/overflow-ellipsis/index.js +1 -1
  173. package/package.json +1 -1
  174. package/page-header/index.js +1 -1
  175. package/pagination/PageItem.js +1 -1
  176. package/pagination/PageJumper.js +1 -1
  177. package/pagination/PageOption.js +1 -1
  178. package/pagination/Pagination.js +1 -1
  179. package/picker/Input.js +1 -1
  180. package/picker/InputRange.js +1 -1
  181. package/popconfirm/index.js +1 -1
  182. package/popover/index.js +1 -1
  183. package/progress/index.js +1 -1
  184. package/radio/Group.js +2 -2
  185. package/radio/Radio.js +2 -2
  186. package/radio/index.js +2 -2
  187. package/rate/index.js +1 -1
  188. package/resize-box/ResizeTrigger.js +1 -1
  189. package/resize-box/Split.js +1 -1
  190. package/resize-box/SplitGroup.js +1 -1
  191. package/resize-box/index.js +1 -1
  192. package/result/index.js +1 -1
  193. package/select/Option.js +1 -1
  194. package/select/Select.js +2 -2
  195. package/select-view/Core.js +1 -1
  196. package/skeleton/index.js +1 -1
  197. package/slider/Button.js +1 -1
  198. package/slider/index.js +1 -1
  199. package/space/index.js +1 -1
  200. package/speech-synthesis/index.js +4 -3
  201. package/spin/DotLoading.js +1 -1
  202. package/spin/index.js +1 -1
  203. package/statistic/Countdown.js +1 -1
  204. package/statistic/index.js +1 -1
  205. package/steps/index.js +1 -1
  206. package/style/variables.less +0 -819
  207. package/style.css +1 -1
  208. package/switch/index.js +1 -1
  209. package/table/Table.js +2 -2
  210. package/table/index.js +3 -3
  211. package/tabs/Tab.js +2 -2
  212. package/tabs/TabContent.js +2 -2
  213. package/tabs/TabPane.js +1 -1
  214. package/tabs/index.js +2 -2
  215. package/tag/index.js +1 -1
  216. package/time-picker/Picker.js +1 -1
  217. package/time-picker/TimePicker.js +1 -1
  218. package/timeline/Item.js +1 -1
  219. package/timeline/Timeline.js +1 -1
  220. package/tooltip/index.js +2 -2
  221. package/transfer/Item.js +2 -2
  222. package/transfer/List.js +2 -2
  223. package/transfer/index.js +1 -1
  224. package/tree/Animation.js +2 -2
  225. package/tree/Node.js +3 -3
  226. package/tree/NodeList.js +1 -1
  227. package/tree/Tree.js +2 -2
  228. package/tree/index.js +1 -1
  229. package/tree-select/Select.js +1 -1
  230. package/trigger/index.js +1 -1
  231. package/types/config-provider/interface.d.ts +0 -1
  232. package/types/utils/constant.d.ts +1 -0
  233. package/types/utils/index.d.ts +1 -0
  234. package/types/utils/setDarkTheme.d.ts +3 -0
  235. package/typography/Base.js +1 -1
  236. package/typography/Ellipsis.js +12 -11
  237. package/typography/Paragraph.js +1 -1
  238. package/typography/Typography.js +1 -1
  239. package/typography/index.js +10 -9
  240. package/upload/TriggerNode.js +1 -1
  241. package/upload/Upload.js +1 -1
  242. package/upload/Uploader.js +1 -1
  243. package/utils/caseName.js +1 -1
  244. package/utils/color.js +1 -1
  245. package/utils/constant.js +5 -2
  246. package/utils/contextHolder.js +1 -1
  247. package/utils/index.js +219 -213
  248. package/utils/setDarkTheme.js +35 -0
  249. package/utils/tinycolor.js +3 -3
  250. package/verification-code/VerificationCode.js +1 -1
  251. package/version/index.js +1 -1
  252. package/watermark/Watermark.js +1 -1
  253. package/chunk/9we0Q8Kh.js +0 -257
  254. package/chunk/BsWphzcT.js +0 -20
  255. package/chunk/Crs3isAx.js +0 -724
package/chunk/9we0Q8Kh.js DELETED
@@ -1,257 +0,0 @@
1
- import { jsxs as w, jsx as r } from "react/jsx-runtime";
2
- import U from "@unicom-cloud/icons/IconUiCaretLeft";
3
- import L from "@unicom-cloud/icons/IconUiCaretRight";
4
- import V from "lodash/isFunction";
5
- import M, { useContext as K, useRef as A, createContext as B } from "react";
6
- import { a as T, I as S } from "./Crs3isAx.js";
7
- import { u as q } from "./BFTV6myl.js";
8
- import { u as D } from "./DeV0v__J.js";
9
- import { p as m } from "./CUFsOxJ2.js";
10
- import { o as G } from "./BKKEev13.js";
11
- import { u as J } from "./BJ9_azwQ.js";
12
- import { u as Q } from "./XTEsYGuF.js";
13
- import { off as W, on as X } from "../utils/dom.js";
14
- function Y(f, u) {
15
- var I;
16
- const { getPrefixCls: g } = K(T), o = K(j), $ = Q(), {
17
- children: s,
18
- name: a,
19
- header: H,
20
- className: E,
21
- style: b,
22
- contentStyle: N,
23
- extra: y,
24
- disabled: c,
25
- destroyOnHide: v,
26
- expandIcon: C,
27
- showExpandIcon: P = !0,
28
- ...R
29
- } = f, i = A(null), p = A(null), n = g("collapse-item"), d = ((I = o.activeKeys) == null ? void 0 : I.indexOf(a)) > -1, x = P ? "expandIcon" in f ? C : o.expandIcon : null, h = (e, t) => {
30
- var O;
31
- if (c)
32
- return;
33
- const { triggerRegion: l } = o;
34
- (t === (l === "icon" ? 0 : l === "header" ? 1 : 2) || // When triggerRegion is set to header, clicking icon should trigger onChange as well
35
- l === "header" && [0, 1].includes(t)) && ((O = o.onToggle) == null || O.call(o, a, e));
36
- };
37
- return /* @__PURE__ */ w(
38
- "div",
39
- {
40
- ref: u,
41
- ...R,
42
- className: m(
43
- n,
44
- {
45
- [`${n}-active`]: d,
46
- [`${n}-no-icon`]: !x,
47
- [`${n}-disabled`]: c
48
- },
49
- E
50
- ),
51
- style: b,
52
- children: [
53
- /* @__PURE__ */ w(
54
- "div",
55
- {
56
- role: "button",
57
- "aria-disabled": c,
58
- "aria-expanded": d,
59
- "data-active-region": o.triggerRegion,
60
- tabIndex: c ? -1 : 0,
61
- className: m(
62
- `${n}-header`,
63
- `${n}-header-${o.expandIconPosition}`,
64
- {
65
- [`${n}-header-disabled`]: c
66
- }
67
- ),
68
- onClick: (e) => h(e, 2),
69
- ...$({
70
- onPressEnter: (e) => {
71
- !c && o.onToggle(a, e);
72
- }
73
- }),
74
- children: [
75
- x && /* @__PURE__ */ r(
76
- S,
77
- {
78
- prefix: n,
79
- disabled: c,
80
- className: m({
81
- [`${n}-icon-hover-right`]: o.expandIconPosition === "right",
82
- [`${n}-header-icon-right`]: o.expandIconPosition === "right"
83
- }),
84
- onClick: (e) => h(e, 0),
85
- children: /* @__PURE__ */ r(
86
- "span",
87
- {
88
- className: m(`${n}-header-icon`, {
89
- [`${n}-header-icon-down`]: d
90
- }),
91
- children: x
92
- }
93
- )
94
- }
95
- ),
96
- /* @__PURE__ */ r(
97
- "div",
98
- {
99
- className: `${n}-header-title`,
100
- onClick: (e) => h(e, 1),
101
- children: H
102
- }
103
- ),
104
- y && /* @__PURE__ */ r(
105
- "div",
106
- {
107
- className: `${n}-header-extra`,
108
- onClick: (e) => {
109
- e.stopPropagation();
110
- },
111
- children: y
112
- }
113
- )
114
- ]
115
- }
116
- ),
117
- /* @__PURE__ */ r(
118
- J,
119
- {
120
- nodeRef: i,
121
- in: d,
122
- addEndListener: (e) => {
123
- W(i.current, "transitionend", e), X(i.current, "transitionend", e);
124
- },
125
- mountOnEnter: "destroyOnHide" in f ? v : o.destroyOnHide || o.lazyload,
126
- unmountOnExit: "destroyOnHide" in f ? v : o.destroyOnHide,
127
- onEnter: (e) => {
128
- const t = i.current;
129
- t.style.height = "0", t.style.display = "block";
130
- },
131
- onEntering: (e) => {
132
- const t = i.current, l = p.current;
133
- t.style.height = `${Math.max(t.scrollHeight, l.scrollHeight)}px`;
134
- },
135
- onEntered: (e) => {
136
- const t = i.current;
137
- t.style.height = "auto";
138
- },
139
- onExit: (e) => {
140
- const t = i.current, l = p.current;
141
- t.offsetHeight, l.offsetHeight, t.style.display = "block", t.style.height = `${t.offsetHeight}px`, t.style.height = `${Math.max(t.offsetHeight, l.offsetHeight)}px`, t.offsetHeight, l.offsetHeight;
142
- },
143
- onExiting: (e) => {
144
- const t = i.current;
145
- t.style.height = "0";
146
- },
147
- onExited: (e) => {
148
- const t = i.current;
149
- t.style.display = "none", t.style.height = "auto";
150
- },
151
- children: /* @__PURE__ */ r(
152
- "div",
153
- {
154
- ref: i,
155
- role: "region",
156
- className: m(`${n}-content`, {
157
- [`${n}-content-expanded`]: d
158
- }),
159
- children: /* @__PURE__ */ r(
160
- "div",
161
- {
162
- ref: p,
163
- style: N,
164
- className: `${n}-content-box`,
165
- children: s
166
- }
167
- )
168
- }
169
- )
170
- }
171
- )
172
- ]
173
- }
174
- );
175
- }
176
- const z = M.forwardRef(
177
- Y
178
- );
179
- z.displayName = "CollapseItem";
180
- const k = (f, u) => {
181
- const g = [].concat(f);
182
- return u ? g.slice(0, 1) : g;
183
- }, Z = {
184
- bordered: !0,
185
- lazyload: !0,
186
- expandIconPosition: "left"
187
- }, j = B({
188
- expandIconPosition: "left",
189
- expandIcon: /* @__PURE__ */ r(L, {}),
190
- activeKeys: [],
191
- onToggle: () => {
192
- }
193
- });
194
- function _(f, u) {
195
- const { getPrefixCls: g, componentConfig: o, rtl: $ } = K(T), s = q(
196
- f,
197
- Z,
198
- o == null ? void 0 : o.Collapse
199
- ), [a, H] = D([], {
200
- defaultValue: "defaultActiveKey" in s ? k(s.defaultActiveKey, s.accordion) : void 0,
201
- value: "activeKey" in s ? k(s.activeKey, s.accordion) : void 0
202
- }), {
203
- children: E,
204
- className: b,
205
- style: N,
206
- bordered: y,
207
- lazyload: c,
208
- expandIcon: v,
209
- expandIconPosition: C,
210
- destroyOnHide: P,
211
- accordion: R,
212
- triggerRegion: i,
213
- onChange: p,
214
- ...n
215
- } = s, d = g("collapse"), x = (h, I) => {
216
- let e = [...a || []];
217
- const t = a == null ? void 0 : a.indexOf(h);
218
- t > -1 ? e.splice(t, 1) : R ? e = [h] : e.push(h), "activeKey" in s || H(e), V(p) && p(h, e, I);
219
- };
220
- return /* @__PURE__ */ r(
221
- j.Provider,
222
- {
223
- value: {
224
- activeKeys: a,
225
- triggerRegion: i,
226
- lazyload: c,
227
- destroyOnHide: P,
228
- expandIconPosition: C,
229
- onToggle: x,
230
- expandIcon: "expandIcon" in s ? v : C === "right" ? /* @__PURE__ */ r(U, {}) : /* @__PURE__ */ r(L, {})
231
- },
232
- children: /* @__PURE__ */ r(
233
- "div",
234
- {
235
- ref: u,
236
- ...G(n, ["activeKey", "defaultActiveKey"]),
237
- className: m(
238
- d,
239
- `${d}-${y ? "border" : "borderless"}`,
240
- { [`${d}-rtl`]: $ },
241
- b
242
- ),
243
- style: N,
244
- children: E
245
- }
246
- )
247
- }
248
- );
249
- }
250
- const ee = M.forwardRef(_), F = ee;
251
- F.displayName = "Collapse";
252
- F.Item = z;
253
- export {
254
- F as C,
255
- z as I,
256
- j as a
257
- };
package/chunk/BsWphzcT.js DELETED
@@ -1,20 +0,0 @@
1
- import p from "lodash/camelCase.js";
2
- import s from "lodash/capitalize.js";
3
- import f from "lodash/kebabCase.js";
4
- import n from "lodash/snakeCase.js";
5
- import C from "lodash/startCase.js";
6
- import N from "lodash/upperFirst.js";
7
- function x(m) {
8
- const o = f(m), r = s(m), e = p(m), t = n(m), a = C(m), i = N(e);
9
- return {
10
- kebabCaseName: o,
11
- capitalizeName: r,
12
- camelCaseName: e,
13
- snakeCaseName: t,
14
- startCaseName: a,
15
- ComponentCaseName: i
16
- };
17
- }
18
- export {
19
- x as d
20
- };