@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.
- package/Anchor.js +3 -1
- package/Badge.js +7 -6
- package/Copy.js +49 -2
- package/Flex.js +12 -0
- package/Grid.js +1 -1
- package/LiquidFill.js +3 -2
- package/Marquee.js +3 -2
- package/QrCode.js +3 -2
- package/Splitter.js +4 -5
- package/Tag.js +3 -2
- package/Tour.js +3 -2
- package/alert/index.js +38 -39
- package/anchor/index.js +5 -3
- package/badge/index.js +19 -18
- package/copy/index.js +83 -35
- package/flex/index.js +59 -0
- package/flex/interface.js +34 -0
- package/flex/utils.js +13 -0
- package/grid/{GridItem.js → Item.js} +15 -15
- package/grid/index.js +1 -1
- package/index.js +503 -493
- package/input/Button.js +39 -34
- package/input/Textarea.js +108 -104
- package/liquid-fill/index.js +3 -2
- package/marquee/index.js +3 -2
- package/package.json +1 -1
- package/qr-code/index.js +3 -2
- package/segmented/index.js +112 -104
- package/spin/index.js +75 -62
- package/splitter/Panel.js +39 -0
- package/splitter/SplitBar.js +157 -0
- package/splitter/Splitter.js +139 -0
- package/splitter/hooks/useEvent.js +12 -0
- package/splitter/hooks/useItems.js +26 -0
- package/splitter/hooks/useResizable.js +26 -0
- package/splitter/hooks/useResize.js +68 -0
- package/splitter/hooks/useSizes.js +60 -0
- package/splitter/index.js +5 -115
- package/style.css +1 -1
- package/table/Table.js +1 -1
- package/table/hook/useThResizable.js +72 -26
- package/table/tbody/Td.js +80 -77
- package/table/th-resizable/index.js +92 -35
- package/tag/index.js +42 -41
- package/tooltip/index.js +89 -82
- package/tour/index.js +5 -6
- package/types/common/space/index.d.ts +2 -1
- package/types/pc/affix/interface.d.ts +0 -2
- package/types/pc/alert/index.d.ts +2 -2
- package/types/pc/anchor/index.d.ts +2 -1
- package/types/pc/anchor/interface.d.ts +0 -2
- package/types/pc/auto-complete/interface.d.ts +0 -6
- package/types/pc/avatar/interface.d.ts +0 -4
- package/types/pc/breadcrumb/interface.d.ts +0 -3
- package/types/pc/carousel/interface.d.ts +2 -6
- package/types/pc/cascader/interface.d.ts +6 -18
- package/types/pc/checkbox/interface.d.ts +0 -1
- package/types/pc/collapse/interface.d.ts +0 -2
- package/types/pc/color-picker/interface.d.ts +0 -2
- package/types/pc/config-provider/interface.d.ts +13 -17
- package/types/pc/copy/interface.d.ts +2 -1
- package/types/pc/date-picker/interface.d.ts +0 -17
- package/types/pc/descriptions/interface.d.ts +0 -1
- package/types/pc/drawer/interface.d.ts +0 -7
- package/types/pc/dropdown/interface.d.ts +0 -1
- package/types/pc/flex/index.d.ts +9 -0
- package/types/pc/flex/interface.d.ts +61 -0
- package/types/pc/flex/utils.d.ts +9 -0
- package/types/pc/form/interface.d.ts +9 -22
- package/types/pc/form/util.d.ts +1 -1
- package/types/pc/grid/index.d.ts +3 -3
- package/types/pc/grid/interface.d.ts +1 -6
- package/types/pc/image/interface.d.ts +0 -13
- package/types/pc/index.d.ts +6 -2
- package/types/pc/input/Textarea.d.ts +2 -6
- package/types/pc/input/interface.d.ts +5 -13
- package/types/pc/input-number/interface.d.ts +0 -4
- package/types/pc/input-tag/interface.d.ts +0 -13
- package/types/pc/layout/interface.d.ts +0 -1
- package/types/pc/link/interface.d.ts +0 -1
- package/types/pc/list/interface.d.ts +0 -4
- package/types/pc/menu/interface.d.ts +0 -8
- package/types/pc/message/interface.d.ts +0 -2
- package/types/pc/modal/interface.d.ts +0 -5
- package/types/pc/notification/interface.d.ts +0 -1
- package/types/pc/pagination/interface.d.ts +0 -2
- package/types/pc/popconfirm/interface.d.ts +8 -10
- package/types/pc/popover/interface.d.ts +0 -1
- package/types/pc/progress/interface.d.ts +0 -3
- package/types/pc/resize-box/interface.d.ts +1 -7
- package/types/pc/select/interface.d.ts +0 -12
- package/types/pc/select-view/interface.d.ts +0 -7
- package/types/pc/slider/interface.d.ts +0 -4
- package/types/pc/space/index.d.ts +1 -0
- package/types/pc/spin/interface.d.ts +4 -1
- package/types/pc/splitter/Panel.d.ts +8 -0
- package/types/pc/splitter/SplitBar.d.ts +21 -0
- package/types/pc/splitter/Splitter.d.ts +4 -0
- package/types/pc/splitter/hooks/useEvent.d.ts +3 -0
- package/types/pc/splitter/hooks/useItems.d.ts +10 -0
- package/types/pc/splitter/hooks/useResizable.d.ts +8 -0
- package/types/pc/splitter/hooks/useResize.d.ts +4 -0
- package/types/pc/splitter/hooks/useSizes.d.ts +5 -0
- package/types/pc/splitter/index.d.ts +8 -4
- package/types/pc/splitter/interface.d.ts +181 -38
- package/types/pc/statistic/interface.d.ts +0 -4
- package/types/pc/steps/interface.d.ts +0 -3
- package/types/pc/table/hook/useThResizable.d.ts +2 -2
- package/types/pc/table/interface.d.ts +4 -15
- package/types/pc/tabs/interface.d.ts +0 -7
- package/types/pc/tag/index.d.ts +2 -0
- package/types/pc/tag/interface.d.ts +0 -1
- package/types/pc/time-picker/interface.d.ts +0 -7
- package/types/pc/tooltip/interface.d.ts +4 -1
- package/types/pc/transfer/interface.d.ts +2 -9
- package/types/pc/tree/interface.d.ts +2 -8
- package/types/pc/tree-select/interface.d.ts +0 -8
- package/types/pc/trigger/interface.d.ts +0 -5
- package/types/pc/typography/EditContent.d.ts +2 -1
- package/types/pc/typography/interface.d.ts +45 -30
- package/types/pc/upload/interface.d.ts +6 -11
- package/types/pc/utils/index.d.ts +1 -0
- package/types/pc/utils/names.d.ts +6 -0
- package/types/pc/utils/toArray.d.ts +7 -0
- package/types/pc/verification-code/interface.d.ts +0 -2
- package/types/pc/watermark/interface.d.ts +0 -2
- package/typography/Base.js +73 -73
- package/typography/EditContent.js +43 -33
- package/typography/Ellipsis.js +117 -184
- package/typography/Operations.js +97 -49
- package/typography/useCssEllipsis.js +7 -6
- package/utils/index.js +117 -115
- package/utils/names.js +4 -0
- package/utils/toArray.js +12 -0
- package/version/index.js +1 -1
- /package/types/pc/grid/{GridItem.d.ts → Item.d.ts} +0 -0
package/typography/Operations.js
CHANGED
|
@@ -1,76 +1,124 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { useEffect as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
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:
|
|
13
|
-
copyable:
|
|
14
|
-
editable:
|
|
15
|
-
ellipsis:
|
|
59
|
+
children: s,
|
|
60
|
+
copyable: i,
|
|
61
|
+
editable: p,
|
|
62
|
+
ellipsis: l,
|
|
16
63
|
expanding: E,
|
|
17
|
-
setEditing:
|
|
18
|
-
onClickExpand:
|
|
19
|
-
forceShowExpand:
|
|
20
|
-
isEllipsis:
|
|
21
|
-
currentContext:
|
|
22
|
-
} =
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
|
|
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
|
-
...
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
),
|
|
34
|
-
|
|
81
|
+
), k = p && /* @__PURE__ */ r(
|
|
82
|
+
A,
|
|
35
83
|
{
|
|
36
|
-
content:
|
|
37
|
-
...
|
|
38
|
-
children: /* @__PURE__ */
|
|
84
|
+
content: t?.Typography?.edit,
|
|
85
|
+
...f.tooltipProps,
|
|
86
|
+
children: /* @__PURE__ */ r(
|
|
39
87
|
"span",
|
|
40
88
|
{
|
|
41
89
|
tabIndex: 0,
|
|
42
|
-
"aria-label":
|
|
90
|
+
"aria-label": t?.Typography?.edit,
|
|
43
91
|
role: "button",
|
|
44
|
-
className: `${
|
|
92
|
+
className: `${e}-operation-edit`,
|
|
45
93
|
onClick: y,
|
|
46
|
-
...
|
|
94
|
+
...c({
|
|
47
95
|
onPressEnter: y
|
|
48
96
|
}),
|
|
49
|
-
children: /* @__PURE__ */
|
|
97
|
+
children: /* @__PURE__ */ r($, {})
|
|
50
98
|
}
|
|
51
99
|
)
|
|
52
100
|
}
|
|
53
|
-
),
|
|
101
|
+
), j = h || m.expandable && C ? /* @__PURE__ */ r(
|
|
54
102
|
"a",
|
|
55
103
|
{
|
|
56
|
-
className: `${
|
|
57
|
-
onClick:
|
|
104
|
+
className: `${e}-operation-expand`,
|
|
105
|
+
onClick: a,
|
|
58
106
|
role: "button",
|
|
59
107
|
tabIndex: 0,
|
|
60
|
-
"aria-label":
|
|
61
|
-
...
|
|
62
|
-
onPressEnter:
|
|
108
|
+
"aria-label": t?.Typography?.unfold,
|
|
109
|
+
...c({
|
|
110
|
+
onPressEnter: a
|
|
63
111
|
}),
|
|
64
|
-
children: E ?
|
|
112
|
+
children: E ? x[0] : x[1]
|
|
65
113
|
}
|
|
66
114
|
) : null;
|
|
67
|
-
return
|
|
68
|
-
}, []), /* @__PURE__ */
|
|
115
|
+
return F(() => () => {
|
|
116
|
+
}, []), /* @__PURE__ */ I(S, { children: [
|
|
117
|
+
j,
|
|
69
118
|
k,
|
|
70
|
-
|
|
71
|
-
T
|
|
119
|
+
P
|
|
72
120
|
] });
|
|
73
121
|
}
|
|
74
122
|
export {
|
|
75
|
-
|
|
123
|
+
zo as default
|
|
76
124
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import p from "
|
|
2
|
-
import
|
|
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
|
|
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
|
|
18
|
-
const { cssEllipsis: t, ellipsisStr: i = "...", suffix: s, rows: o } = e, n =
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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 {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
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
|
|
72
|
-
import { NOOP as
|
|
73
|
-
import { isArguments as
|
|
74
|
-
import { isClassComponent as
|
|
75
|
-
import { isAsyncMode as
|
|
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
|
-
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
Pt as DefaultValidateMessage,
|
|
82
|
+
Ht as NOOP,
|
|
83
|
+
Nr as PqbCSSTransition,
|
|
83
84
|
kr as ReplaceTransition,
|
|
84
|
-
|
|
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
|
-
|
|
90
|
-
|
|
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
|
-
|
|
113
|
+
Et as easing,
|
|
113
114
|
ge as fileToURL,
|
|
114
115
|
Te as fillNBSP,
|
|
115
116
|
Mr as findDOMNode_,
|
|
116
|
-
|
|
117
|
+
ut as findNodeBy,
|
|
117
118
|
it as fixedWidth,
|
|
118
119
|
Fe as get,
|
|
119
|
-
|
|
120
|
+
ct as getChildWithParentBy,
|
|
120
121
|
Q as getDayjsValue,
|
|
121
122
|
Re as getHighlightText,
|
|
122
123
|
Ce as getHotkeyHandler,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
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
|
-
|
|
139
|
-
|
|
139
|
+
Ne as include,
|
|
140
|
+
N as inputToRGB,
|
|
140
141
|
r as is,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
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
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
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
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
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
|
-
|
|
221
|
+
jo as isValidColor,
|
|
221
222
|
oe as isValidTimeString,
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
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
|
-
|
|
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
|
-
|
|
280
|
+
Ct as tween,
|
|
279
281
|
tr as uniq,
|
|
280
282
|
ar as upperFirst,
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
283
|
+
Nt as uuid,
|
|
284
|
+
vt as uuidv4,
|
|
285
|
+
Ot as validate,
|
|
286
|
+
Bt as warning
|
|
285
287
|
};
|
package/utils/names.js
CHANGED
package/utils/toArray.js
ADDED
|
@@ -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
|
File without changes
|