@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
@@ -1,76 +1,124 @@
1
- import { jsx as t, jsxs as v, Fragment as I } from "react/jsx-runtime";
2
- import S from "@unicom-cloud/icons/IconUiEdit";
3
- import $ from "lodash/isArray";
4
- import s from "lodash/isPlainObject";
5
- import { useEffect as O } from "react";
6
- import w from "../copy/index.js";
7
- import A from "../components/common/hooks/useKeyboardEvent.js";
8
- import F from "../tooltip/index.js";
9
- import { mergedToString as x } from "../components/common/utils/mergedToString.js";
10
- function J(g) {
1
+ import { jsx as r, jsxs as I, Fragment as S } from "react/jsx-runtime";
2
+ import $ from "@unicom-cloud/icons/IconUiEdit";
3
+ import v from "lodash/isArray";
4
+ import n from "lodash/isPlainObject";
5
+ import { useEffect as F } from "react";
6
+ import O from "../copy/index.js";
7
+ import w from "../components/common/hooks/useKeyboardEvent.js";
8
+ import A from "../tooltip/index.js";
9
+ import "@unicom-cloud/utils/case-name";
10
+ import "@unicom-cloud/utils/class-name";
11
+ import "../dist/tinycolor/chunk/BOzCVdr0.js";
12
+ import "@unicom-cloud/utils/constant/ui";
13
+ import "../utils/contextHolder.js";
14
+ import "@unicom-cloud/utils/dayjs";
15
+ import "@unicom-cloud/utils/clipboard-copy";
16
+ import "../components/common/utils/dayjs.js";
17
+ import "../components/common/utils/dom.js";
18
+ import "@unicom-cloud/utils/file/fileToURL";
19
+ import "lodash/escapeRegExp";
20
+ import "lodash/isNumber";
21
+ import "lodash/isString";
22
+ import "lodash/isFunction";
23
+ import "lodash/throttle";
24
+ import "../components/common/utils/is.js";
25
+ import "lodash/camelCase";
26
+ import "lodash/capitalize";
27
+ import "lodash/cloneDeep";
28
+ import "lodash/debounce";
29
+ import "lodash/get";
30
+ import "lodash/has";
31
+ import "lodash/kebabCase";
32
+ import "lodash/merge";
33
+ import "lodash/mergeWith";
34
+ import "lodash/set";
35
+ import "lodash/setWith";
36
+ import "lodash/snakeCase";
37
+ import "lodash/startCase";
38
+ import "lodash/uniq";
39
+ import "lodash/upperFirst";
40
+ import "@unicom-cloud/utils/math";
41
+ import { mergedToString as g } from "../components/common/utils/mergedToString.js";
42
+ import "../dist/react-transition-group/src/CSSTransition.js";
43
+ import "../dist/react-transition-group/src/ReplaceTransition.js";
44
+ import "../dist/react-transition-group/src/SwitchTransition.js";
45
+ import "../dist/react-transition-group/chunk/CPfP7aNL.js";
46
+ import "../dist/react-transition-group/src/TransitionGroup.js";
47
+ import "../components/common/utils/reactDOM.js";
48
+ import "@unicom-cloud/utils/file/saveAs";
49
+ import "@unicom-cloud/utils/screenfull";
50
+ import "@unicom-cloud/utils/constant/ui.js";
51
+ import "react-is";
52
+ import "@unicom-cloud/utils/tree";
53
+ import { isFunction as K } from "@unicom-cloud/utils/is";
54
+ import "uuid";
55
+ import "../dist/validate/src/index.js";
56
+ import "@unicom-cloud/utils/constant/keyboardCode";
57
+ function zo(u) {
11
58
  const {
12
- children: l,
13
- copyable: n,
14
- editable: r,
15
- ellipsis: a,
59
+ children: s,
60
+ copyable: i,
61
+ editable: p,
62
+ ellipsis: l,
16
63
  expanding: E,
17
- setEditing: u,
18
- onClickExpand: c,
19
- forceShowExpand: b,
20
- isEllipsis: h,
21
- currentContext: C = {}
22
- } = g, d = A(), { getPrefixCls: P, locale: o } = C, i = P?.("typography"), p = s(a) ? a : {}, m = s(r) ? r : {}, f = $(p.expandNodes) ? p.expandNodes : [o?.Typography?.fold, o?.Typography?.unfold], y = (j) => {
23
- m.onStart?.(x(l), j), u(!0);
24
- }, e = s(n) ? { ...n } : {};
25
- e.text === void 0 && (e.text = x(l));
26
- const T = !!n && /* @__PURE__ */ t(
27
- w,
64
+ setEditing: b,
65
+ onClickExpand: a,
66
+ forceShowExpand: h,
67
+ isEllipsis: C,
68
+ currentContext: T = {}
69
+ } = u, c = w(), { getPrefixCls: N, locale: t } = T, e = N?.("typography"), d = n(i) ? i : {}, m = n(l) ? l : {}, f = n(p) ? p : {}, x = v(m.expandNodes) ? m.expandNodes : [t?.Typography?.fold, t?.Typography?.unfold], y = (o) => {
70
+ f.onStart?.(g(s), o), b(!0);
71
+ }, P = !!i && /* @__PURE__ */ r(
72
+ O,
28
73
  {
29
- ...e,
30
- className: `${i}-operation-copy`,
31
- tooltipProps: e.tooltipProps
74
+ ...d,
75
+ text: () => {
76
+ let o = d.text;
77
+ return K(o) && (o = o()), o || (o = g(s)), o;
78
+ },
79
+ className: `${e}-operation-copy`
32
80
  }
33
- ), N = r && /* @__PURE__ */ t(
34
- F,
81
+ ), k = p && /* @__PURE__ */ r(
82
+ A,
35
83
  {
36
- content: o?.Typography?.edit,
37
- ...m.tooltipProps,
38
- children: /* @__PURE__ */ t(
84
+ content: t?.Typography?.edit,
85
+ ...f.tooltipProps,
86
+ children: /* @__PURE__ */ r(
39
87
  "span",
40
88
  {
41
89
  tabIndex: 0,
42
- "aria-label": o?.Typography?.edit,
90
+ "aria-label": t?.Typography?.edit,
43
91
  role: "button",
44
- className: `${i}-operation-edit`,
92
+ className: `${e}-operation-edit`,
45
93
  onClick: y,
46
- ...d({
94
+ ...c({
47
95
  onPressEnter: y
48
96
  }),
49
- children: /* @__PURE__ */ t(S, {})
97
+ children: /* @__PURE__ */ r($, {})
50
98
  }
51
99
  )
52
100
  }
53
- ), k = b || p.expandable && h ? /* @__PURE__ */ t(
101
+ ), j = h || m.expandable && C ? /* @__PURE__ */ r(
54
102
  "a",
55
103
  {
56
- className: `${i}-operation-expand`,
57
- onClick: c,
104
+ className: `${e}-operation-expand`,
105
+ onClick: a,
58
106
  role: "button",
59
107
  tabIndex: 0,
60
- "aria-label": o?.Typography?.unfold,
61
- ...d({
62
- onPressEnter: c
108
+ "aria-label": t?.Typography?.unfold,
109
+ ...c({
110
+ onPressEnter: a
63
111
  }),
64
- children: E ? f[0] : f[1]
112
+ children: E ? x[0] : x[1]
65
113
  }
66
114
  ) : null;
67
- return O(() => () => {
68
- }, []), /* @__PURE__ */ v(I, { children: [
115
+ return F(() => () => {
116
+ }, []), /* @__PURE__ */ I(S, { children: [
117
+ j,
69
118
  k,
70
- N,
71
- T
119
+ P
72
120
  ] });
73
121
  }
74
122
  export {
75
- J as default
123
+ zo as default
76
124
  };
@@ -1,8 +1,9 @@
1
- import p from "lodash/isUndefined";
2
- import { useMemo as u } from "react";
1
+ import { useMemo as p } from "react";
2
+ import "../components/common/utils/is.js";
3
+ import { isUndefined as u } from "@unicom-cloud/utils/is";
3
4
  const w = (e, t) => {
4
5
  if (typeof window < "u" && window.CSS && window.CSS.supports)
5
- return p(t) ? window.CSS.supports(e) : window.CSS.supports(e, t);
6
+ return u(t) ? window.CSS.supports(e) : window.CSS.supports(e, t);
6
7
  if (typeof document < "u" && document.createElement) {
7
8
  const i = document.createElement("div");
8
9
  return i.setAttribute("style", `${e}:${t};`), typeof i.style[e] < "u";
@@ -14,8 +15,8 @@ const w = (e, t) => {
14
15
  }, f = () => Object.entries(d).every(
15
16
  ([e, t]) => w(e, t)
16
17
  );
17
- function S(e) {
18
- const { cssEllipsis: t, ellipsisStr: i = "...", suffix: s, rows: o } = e, n = u(() => !t || o > 1 && !f() ? !1 : i === "..." && !s, [i, t, o, s]), r = {
18
+ function a(e) {
19
+ const { cssEllipsis: t, ellipsisStr: i = "...", suffix: s, rows: o } = e, n = p(() => !t || o > 1 && !f() ? !1 : i === "..." && !s, [i, t, o, s]), r = {
19
20
  textOverflow: "ellipsis",
20
21
  whiteSpace: "nowrap",
21
22
  overflow: "hidden"
@@ -33,5 +34,5 @@ function S(e) {
33
34
  };
34
35
  }
35
36
  export {
36
- S as default
37
+ a as default
37
38
  };
package/utils/index.js CHANGED
@@ -2,7 +2,7 @@ import { default as s } from "@unicom-cloud/utils/case-name";
2
2
  import { default as m } from "@unicom-cloud/utils/class-name";
3
3
  import { cmykToRgb as p, convertDecimalToHex as l, convertHexToDecimal as n, hslToRgb as d, hsvToRgb as x, numberInputToObject as u, parseIntFromHex as c, rgbToCmyk as g, rgbToHex as y, rgbToHsl as T, rgbToHsv as S, rgbToRgb as R, rgbaToArgbHex as b, rgbaToHex as C } from "../dist/tinycolor/src/conversion.js";
4
4
  import { names as E } from "../dist/tinycolor/src/css-color-names.js";
5
- import { inputToRGB as A, isValidCSSUnit as v, stringInputToObject as D } from "../dist/tinycolor/src/format-input.js";
5
+ import { inputToRGB as N, isValidCSSUnit as v, stringInputToObject as D } from "../dist/tinycolor/src/format-input.js";
6
6
  import { compareColorByRange as O } from "../dist/tinycolor/customize/index.js";
7
7
  import { TinyColor as P } from "../dist/tinycolor/src/index.js";
8
8
  import { a as B } from "../dist/tinycolor/chunk/BOzCVdr0.js";
@@ -18,7 +18,7 @@ import { fillNBSP as Te } from "../components/common/utils/fillNBSP.js";
18
18
  import { getHighlightText as Re } from "../components/common/utils/getHighlightText.js";
19
19
  import { getHotkeyHandler as Ce } from "../components/common/utils/getHotkeyHandler.js";
20
20
  import { getStringLength as Ee } from "../components/common/utils/getStringLength.js";
21
- import { include as Ae } from "../components/common/utils/include.js";
21
+ import { include as Ne } from "../components/common/utils/include.js";
22
22
  import "lodash/isFunction";
23
23
  import { default as De } from "lodash/throttle";
24
24
  import * as r from "./is.js";
@@ -44,7 +44,7 @@ import { COMPONENT_NAMES as gr } from "./names.js";
44
44
  import { omit as Tr } from "../components/common/utils/omit.js";
45
45
  import { padEnd as Rr, padStart as br } from "../components/common/utils/pad.js";
46
46
  import { pick as hr, pickDataAttributes as Er } from "../components/common/utils/pick.js";
47
- import { PqbCSSTransition as Ar } from "../components/common/utils/PqbCSSTransition.js";
47
+ import { PqbCSSTransition as Nr } from "../components/common/utils/PqbCSSTransition.js";
48
48
  import { callbackOriginRef as Dr, findDOMNode_ as Mr } from "../components/common/utils/reactDOM.js";
49
49
  import { default as Ir } from "../dist/react-transition-group/src/CSSTransition.js";
50
50
  import { default as kr } from "../dist/react-transition-group/src/ReplaceTransition.js";
@@ -60,34 +60,35 @@ import { setPrimaryColor as tt } from "./setPrimaryColor.js";
60
60
  import { setTheme as at } from "./setTheme.js";
61
61
  import { fixedWidth as it, getStyle as mt, setTransformStyle as ft } from "../components/common/utils/style.js";
62
62
  import { throttleByRaf as lt } from "../components/common/utils/throttleByRaf.js";
63
- import { findNodeBy as dt, getChildWithParentBy as xt, getItemBy as ut, getItemBy2 as ct, getItemBy3 as gt, getItemByID as yt, getLabelFromDictionaryByValue as Tt } from "@unicom-cloud/utils/tree";
64
- import { Tween as Rt } from "../dist/tween/src/tween.js";
65
- import { default as Ct } from "../dist/tween/src/easing.js";
66
- import { v4 as Et, v4 as Nt } from "uuid";
67
- import { Schema as vt, default as Dt } from "../dist/validate/src/index.js";
68
- import { d as Ot } from "../dist/validate/chunk/BXTR2LmP.js";
69
- import { warning as Pt } from "../components/common/utils/warning.js";
63
+ import { toArray as dt } from "./toArray.js";
64
+ import { findNodeBy as ut, getChildWithParentBy as ct, getItemBy as gt, getItemBy2 as yt, getItemBy3 as Tt, getItemByID as St, getLabelFromDictionaryByValue as Rt } from "@unicom-cloud/utils/tree";
65
+ import { Tween as Ct } from "../dist/tween/src/tween.js";
66
+ import { default as Et } from "../dist/tween/src/easing.js";
67
+ import { v4 as Nt, v4 as vt } from "uuid";
68
+ import { Schema as Mt, default as Ot } from "../dist/validate/src/index.js";
69
+ import { d as Pt } from "../dist/validate/chunk/BXTR2LmP.js";
70
+ import { warning as Bt } from "../components/common/utils/warning.js";
70
71
  import * as t from "@unicom-cloud/utils/constant/keyboardCode";
71
- import { UI_PC_KEY as Bt, UI_PC_THEME_DARK_CLASS_NAME as wt } from "@unicom-cloud/utils/constant/ui";
72
- import { NOOP as jt } from "../components/common/utils/constant.js";
73
- import { isArguments as Ht, isArray as Lt, isArrayBuffer as Wt, isArrayLike as _t, isArrayLikeObject as Ut, isBlob as zt, isBoolean as qt, isBuffer as Gt, isColor as Kt, isColor2 as Jt, isDate as Yt, isElement as Qt, isEmpty as Xt, isEmptyArray as Zt, isEmptyObject as $t, isEmptyValue as eo, isEqual as ro, isEqualWith as to, isError as oo, isFile as ao, isFinite as so, isFunction as io, isInteger as mo, isJSON as fo, isLength as po, isMap as lo, isMatch as no, isMatchWith as xo, isNaN as uo, isNative as co, isNil as go, isNull as yo, isNumber as To, isObject as So, isObjectLike as Ro, isPlainObject as bo, isPromise as Co, isReadableByteStreamControllerSupported as ho, isReadableStream as Eo, isReadableStreamDefaultControllerSupported as No, isReadableStreamSupported as Ao, isReadableStreamSymbolAsyncIteratorSupported as vo, isRegExp as Do, isSafeInteger as Mo, isSet as Oo, isString as Io, isSymbol as Po, isTypedArray as ko, isUndefined as Bo, isValidColor as wo, isWeakMap as Vo, isWeakSet as jo } from "@unicom-cloud/utils/is";
74
- import { isClassComponent as Ho, isDOMElement as Lo, isDayjs as Wo, isEmptyReactNode as _o, isExist as Uo, isForwardRefReact as zo, isNullOrUndefined as qo, isReact18 as Go, isReact19 as Ko, isReactComponent as Jo, isSupportRef as Yo, isWindow as Qo, supportRef as Xo } from "../components/common/utils/is.js";
75
- import { isAsyncMode as $o, isConcurrentMode as ea, isContextConsumer as ra, isContextProvider as ta, isElement as oa, isForwardRef as aa, isFragment as sa, isLazy as ia, isMemo as ma, isPortal as fa, isProfiler as pa, isStrictMode as la, isSuspense as na, isValidElementType as da } from "react-is";
72
+ import { UI_PC_KEY as Vt, UI_PC_THEME_DARK_CLASS_NAME as jt } from "@unicom-cloud/utils/constant/ui";
73
+ import { NOOP as Ht } from "../components/common/utils/constant.js";
74
+ import { isArguments as Wt, isArray as _t, isArrayBuffer as Ut, isArrayLike as zt, isArrayLikeObject as qt, isBlob as Gt, isBoolean as Kt, isBuffer as Jt, isColor as Yt, isColor2 as Qt, isDate as Xt, isElement as Zt, isEmpty as $t, isEmptyArray as eo, isEmptyObject as ro, isEmptyValue as to, isEqual as oo, isEqualWith as ao, isError as so, isFile as io, isFinite as mo, isFunction as fo, isInteger as po, isJSON as lo, isLength as no, isMap as xo, isMatch as uo, isMatchWith as co, isNaN as go, isNative as yo, isNil as To, isNull as So, isNumber as Ro, isObject as bo, isObjectLike as Co, isPlainObject as ho, isPromise as Eo, isReadableByteStreamControllerSupported as Ao, isReadableStream as No, isReadableStreamDefaultControllerSupported as vo, isReadableStreamSupported as Do, isReadableStreamSymbolAsyncIteratorSupported as Mo, isRegExp as Oo, isSafeInteger as Io, isSet as Po, isString as ko, isSymbol as Bo, isTypedArray as wo, isUndefined as Vo, isValidColor as jo, isWeakMap as Fo, isWeakSet as Ho } from "@unicom-cloud/utils/is";
75
+ import { isClassComponent as Wo, isDOMElement as _o, isDayjs as Uo, isEmptyReactNode as zo, isExist as qo, isForwardRefReact as Go, isNullOrUndefined as Ko, isReact18 as Jo, isReact19 as Yo, isReactComponent as Qo, isSupportRef as Xo, isWindow as Zo, supportRef as $o } from "../components/common/utils/is.js";
76
+ import { isAsyncMode as ra, isConcurrentMode as ta, isContextConsumer as oa, isContextProvider as aa, isElement as sa, isForwardRef as ia, isFragment as ma, isLazy as fa, isMemo as pa, isPortal as la, isProfiler as na, isStrictMode as da, isSuspense as xa, isValidElementType as ua } from "react-is";
76
77
  export {
77
78
  gr as COMPONENT_NAMES,
78
79
  Ir as CSSTransition,
79
80
  _ as ContextHolderElement,
80
- Ot as DefaultValidateMessage,
81
- jt as NOOP,
82
- Ar as PqbCSSTransition,
81
+ Pt as DefaultValidateMessage,
82
+ Ht as NOOP,
83
+ Nr as PqbCSSTransition,
83
84
  kr as ReplaceTransition,
84
- vt as Schema,
85
+ Mt as Schema,
85
86
  wr as SwitchTransition,
86
87
  P as TinyColor,
87
88
  jr as Transition,
88
89
  Hr as TransitionGroup,
89
- Bt as UI_PC_KEY,
90
- wt as UI_PC_THEME_DARK_CLASS_NAME,
90
+ Vt as UI_PC_KEY,
91
+ jt as UI_PC_THEME_DARK_CLASS_NAME,
91
92
  Dr as callbackOriginRef,
92
93
  Oe as camelCase,
93
94
  Pe as capitalize,
@@ -109,22 +110,22 @@ export {
109
110
  Y as dayjs,
110
111
  Ve as debounce,
111
112
  ir as div,
112
- Ct as easing,
113
+ Et as easing,
113
114
  ge as fileToURL,
114
115
  Te as fillNBSP,
115
116
  Mr as findDOMNode_,
116
- dt as findNodeBy,
117
+ ut as findNodeBy,
117
118
  it as fixedWidth,
118
119
  Fe as get,
119
- xt as getChildWithParentBy,
120
+ ct as getChildWithParentBy,
120
121
  Q as getDayjsValue,
121
122
  Re as getHighlightText,
122
123
  Ce as getHotkeyHandler,
123
- ut as getItemBy,
124
- ct as getItemBy2,
125
- gt as getItemBy3,
126
- yt as getItemByID,
127
- Tt as getLabelFromDictionaryByValue,
124
+ gt as getItemBy,
125
+ yt as getItemBy2,
126
+ Tt as getItemBy3,
127
+ St as getItemByID,
128
+ Rt as getLabelFromDictionaryByValue,
128
129
  X as getNow,
129
130
  le as getScrollElements,
130
131
  Z as getSortedDayjsArray,
@@ -135,93 +136,93 @@ export {
135
136
  Le as has,
136
137
  d as hslToRgb,
137
138
  x as hsvToRgb,
138
- Ae as include,
139
- A as inputToRGB,
139
+ Ne as include,
140
+ N as inputToRGB,
140
141
  r as is,
141
- Ht as isArguments,
142
- Lt as isArray,
143
- Wt as isArrayBuffer,
144
- _t as isArrayLike,
145
- Ut as isArrayLikeObject,
146
- zt as isBlob,
147
- qt as isBoolean,
148
- Gt as isBuffer,
149
- Ho as isClassComponent,
150
- Kt as isColor,
151
- Jt as isColor2,
152
- Lo as isDOMElement,
153
- Yt as isDate,
154
- Wo as isDayjs,
142
+ Wt as isArguments,
143
+ _t as isArray,
144
+ Ut as isArrayBuffer,
145
+ zt as isArrayLike,
146
+ qt as isArrayLikeObject,
147
+ Gt as isBlob,
148
+ Kt as isBoolean,
149
+ Jt as isBuffer,
150
+ Wo as isClassComponent,
151
+ Yt as isColor,
152
+ Qt as isColor2,
153
+ _o as isDOMElement,
154
+ Xt as isDate,
155
+ Uo as isDayjs,
155
156
  re as isDayjsArrayChange,
156
157
  te as isDayjsChange,
157
- Qt as isElement,
158
- Xt as isEmpty,
159
- Zt as isEmptyArray,
160
- $t as isEmptyObject,
161
- _o as isEmptyReactNode,
162
- eo as isEmptyValue,
163
- ro as isEqual,
164
- to as isEqualWith,
165
- oo as isError,
166
- Uo as isExist,
167
- ao as isFile,
168
- so as isFinite,
169
- zo as isForwardRefReact,
170
- io as isFunction,
171
- mo as isInteger,
172
- fo as isJSON,
173
- po as isLength,
174
- lo as isMap,
175
- no as isMatch,
176
- xo as isMatchWith,
177
- uo as isNaN,
178
- co as isNative,
179
- go as isNil,
180
- yo as isNull,
181
- qo as isNullOrUndefined,
182
- To as isNumber,
183
- So as isObject,
184
- Ro as isObjectLike,
185
- bo as isPlainObject,
186
- Co as isPromise,
187
- Go as isReact18,
188
- Ko as isReact19,
189
- $o as isReactAsyncMode,
190
- Jo as isReactComponent,
191
- ea as isReactConcurrentMode,
192
- ra as isReactContextConsumer,
193
- ta as isReactContextProvider,
194
- oa as isReactElement,
195
- aa as isReactForwardRef,
196
- sa as isReactFragment,
197
- ia as isReactLazy,
198
- ma as isReactMemo,
199
- fa as isReactPortal,
200
- pa as isReactProfiler,
201
- la as isReactStrictMode,
202
- na as isReactSuspense,
203
- da as isReactValidElementType,
204
- ho as isReadableByteStreamControllerSupported,
205
- Eo as isReadableStream,
206
- No as isReadableStreamDefaultControllerSupported,
207
- Ao as isReadableStreamSupported,
208
- vo as isReadableStreamSymbolAsyncIteratorSupported,
209
- Do as isRegExp,
210
- Mo as isSafeInteger,
158
+ Zt as isElement,
159
+ $t as isEmpty,
160
+ eo as isEmptyArray,
161
+ ro as isEmptyObject,
162
+ zo as isEmptyReactNode,
163
+ to as isEmptyValue,
164
+ oo as isEqual,
165
+ ao as isEqualWith,
166
+ so as isError,
167
+ qo as isExist,
168
+ io as isFile,
169
+ mo as isFinite,
170
+ Go as isForwardRefReact,
171
+ fo as isFunction,
172
+ po as isInteger,
173
+ lo as isJSON,
174
+ no as isLength,
175
+ xo as isMap,
176
+ uo as isMatch,
177
+ co as isMatchWith,
178
+ go as isNaN,
179
+ yo as isNative,
180
+ To as isNil,
181
+ So as isNull,
182
+ Ko as isNullOrUndefined,
183
+ Ro as isNumber,
184
+ bo as isObject,
185
+ Co as isObjectLike,
186
+ ho as isPlainObject,
187
+ Eo as isPromise,
188
+ Jo as isReact18,
189
+ Yo as isReact19,
190
+ ra as isReactAsyncMode,
191
+ Qo as isReactComponent,
192
+ ta as isReactConcurrentMode,
193
+ oa as isReactContextConsumer,
194
+ aa as isReactContextProvider,
195
+ sa as isReactElement,
196
+ ia as isReactForwardRef,
197
+ ma as isReactFragment,
198
+ fa as isReactLazy,
199
+ pa as isReactMemo,
200
+ la as isReactPortal,
201
+ na as isReactProfiler,
202
+ da as isReactStrictMode,
203
+ xa as isReactSuspense,
204
+ ua as isReactValidElementType,
205
+ Ao as isReadableByteStreamControllerSupported,
206
+ No as isReadableStream,
207
+ vo as isReadableStreamDefaultControllerSupported,
208
+ Do as isReadableStreamSupported,
209
+ Mo as isReadableStreamSymbolAsyncIteratorSupported,
210
+ Oo as isRegExp,
211
+ Io as isSafeInteger,
211
212
  ne as isScrollElement,
212
213
  de as isServerRendering,
213
- Oo as isSet,
214
- Io as isString,
215
- Yo as isSupportRef,
216
- Po as isSymbol,
217
- ko as isTypedArray,
218
- Bo as isUndefined,
214
+ Po as isSet,
215
+ ko as isString,
216
+ Xo as isSupportRef,
217
+ Bo as isSymbol,
218
+ wo as isTypedArray,
219
+ Vo as isUndefined,
219
220
  v as isValidCSSUnit,
220
- wo as isValidColor,
221
+ jo as isValidColor,
221
222
  oe as isValidTimeString,
222
- Vo as isWeakMap,
223
- jo as isWeakSet,
224
- Qo as isWindow,
223
+ Fo as isWeakMap,
224
+ Ho as isWeakSet,
225
+ Zo as isWindow,
225
226
  _e as kebabCase,
226
227
  t as keyboardCode,
227
228
  mr as math,
@@ -268,18 +269,19 @@ export {
268
269
  Ze as snakeCase,
269
270
  er as startCase,
270
271
  D as stringInputToObject,
271
- Xo as supportRef,
272
+ $o as supportRef,
272
273
  De as throttle,
273
274
  lt as throttleByRaf,
274
275
  lr as times,
275
276
  se as timezoneToOffset,
277
+ dt as toArray,
276
278
  ie as toLocal,
277
279
  me as toTimezone,
278
- Rt as tween,
280
+ Ct as tween,
279
281
  tr as uniq,
280
282
  ar as upperFirst,
281
- Et as uuid,
282
- Nt as uuidv4,
283
- Dt as validate,
284
- Pt as warning
283
+ Nt as uuid,
284
+ vt as uuidv4,
285
+ Ot as validate,
286
+ Bt as warning
285
287
  };
package/utils/names.js CHANGED
@@ -570,6 +570,10 @@ const e = {
570
570
  Splitter: {
571
571
  zh: "分隔面板",
572
572
  en: "Splitter"
573
+ },
574
+ Flex: {
575
+ zh: "弹性布局",
576
+ en: "Flex"
573
577
  }
574
578
  };
575
579
  export {
@@ -0,0 +1,12 @@
1
+ import t from "react";
2
+ import { isFragment as f } from "react-is";
3
+ function s(a, p = {}) {
4
+ const e = [];
5
+ return t.Children.forEach(a, (r) => {
6
+ r == null && !p.keepEmpty || (Array.isArray(r) ? e.push(...s(r, p)) : f(r) && "props" in r && r.props ? e.push(...s(r.props.children, p)) : t.isValidElement(r) && e.push(r));
7
+ }), e;
8
+ }
9
+ export {
10
+ s as default,
11
+ s as toArray
12
+ };
package/version/index.js CHANGED
@@ -1,4 +1,4 @@
1
- const I = "2025-06-30 15:08:45", t = "1751267325326", E = "2.66.0";
1
+ const I = "2025-07-04 19:25:46", t = "1751628346265", E = "2.66.0";
2
2
  export {
3
3
  E as VERSION,
4
4
  I as VERSION_BUILD_DATE,
File without changes