@unicom-cloud/ui 0.8.73 → 0.8.74
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/Affix.js +2 -2
- package/Alert.js +3 -3
- package/AutoComplete.js +2 -2
- package/BackTop.js +4 -4
- package/Badge.js +3 -3
- package/Breadcrumb.js +3 -3
- package/Button.js +2 -2
- package/Calendar.js +3 -3
- package/Card.js +2 -2
- package/Carousel.js +2 -2
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +2 -2
- package/Comment.js +2 -2
- package/ConfigProvider.js +1 -1
- package/Copy.js +3 -3
- package/DatePicker.js +1 -1
- package/Descriptions.js +2 -2
- package/Divider.js +2 -2
- package/Draggable.js +2 -2
- package/Dropdown.js +2 -2
- package/Empty.js +2 -2
- package/Icon.js +2 -2
- package/IconHover.js +2 -2
- package/Image.js +1 -1
- package/InputNumber.js +2 -2
- package/Layout.js +2 -2
- package/Link.js +2 -2
- package/List.js +2 -2
- package/Mentions.js +2 -2
- package/Menu.js +1 -1
- package/Message.js +4 -4
- package/Modal.js +1 -1
- package/Notice.js +2 -2
- package/Notification.js +4 -4
- package/OverflowEllipsis.js +2 -2
- package/PageHeader.js +2 -2
- package/Popconfirm.js +2 -2
- package/Popover.js +2 -2
- package/Progress.js +2 -2
- package/Radio.js +1 -1
- package/Rate.js +2 -2
- package/ResizeBox.js +2 -2
- package/Result.js +2 -2
- package/SelectView.js +1 -1
- package/Skeleton.js +2 -2
- package/Slider.js +2 -2
- package/Space.js +2 -2
- package/SpeechSynthesis.js +4 -4
- package/Spin.js +2 -2
- package/Statistic.js +3 -3
- package/Steps.js +2 -2
- package/Switch.js +4 -4
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +2 -2
- package/Tooltip.js +3 -3
- package/Transfer.js +2 -2
- package/Tree.js +1 -1
- package/Trigger.js +3 -3
- package/affix/index.js +2 -2
- package/alert/index.js +9 -9
- package/anchor/Anchor.js +26 -26
- package/anchor/Link.js +2 -2
- package/anchor/util.js +1 -1
- package/auto-complete/index.js +2 -2
- package/avatar/Avatar.js +2 -2
- package/avatar/Group.js +2 -2
- package/back-top/index.js +11 -11
- package/badge/Count.js +7 -7
- package/badge/index.js +9 -9
- package/breadcrumb/Item.js +6 -6
- package/breadcrumb/index.js +3 -3
- package/button/Group.js +2 -2
- package/button/index.js +2 -2
- package/calendar/Month.js +2 -2
- package/calendar/Year.js +1 -1
- package/calendar/index.js +4 -4
- package/card/Grid.js +5 -5
- package/card/Meta.js +4 -4
- package/card/index.js +2 -2
- package/carousel/Arrow.js +2 -2
- package/carousel/Indicator.js +6 -6
- package/carousel/index.js +2 -2
- package/cascader/Cascader.js +3 -3
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +3 -3
- package/checkbox/Group.js +3 -3
- package/checkbox/index.js +1 -1
- package/chunk/{B0UZ1Ee2.js → 9we0Q8Kh.js} +3 -3
- package/chunk/{DJDOFlqC.js → BDZpJpz-.js} +2 -2
- package/chunk/BFmckYou.js +25 -0
- package/chunk/{Cj2SQJiO.js → BJ9_azwQ.js} +487 -487
- package/chunk/{7HDzVe32.js → Bd9zhOZS.js} +4 -4
- package/chunk/{uKZyjtff.js → BhBEMwvI.js} +21 -20
- package/chunk/{uH6uxyao.js → BoUHPeG7.js} +2 -2
- package/chunk/{Bj4EV0eG.js → BpYX5PN4.js} +1 -1
- package/chunk/{oHDWCJnz.js → Bu8A2l60.js} +3 -3
- package/chunk/CUFsOxJ2.js +10 -0
- package/chunk/CWjvjpyc.js +873 -0
- package/chunk/{Byd0ztYY.js → Crs3isAx.js} +4 -4
- package/chunk/{Ey4YJCkX.js → D0Dlbc2g.js} +2 -1
- package/chunk/{Dg0M2OmF.js → D5UfU6-H.js} +5 -5
- package/chunk/{UDX9U6M7.js → DJ8rDYjb.js} +3 -3
- package/chunk/{AwZqeapI.js → DRTWRsgI.js} +1 -1
- package/chunk/{D2LLXZQX.js → DdT3C0ih.js} +4 -4
- package/chunk/{DejjIa3N.js → Dn7KbmZ7.js} +35 -35
- package/chunk/{DpoumMDw.js → DohlrJ4S.js} +1 -1
- package/chunk/{B7hulkj9.js → NmSLBKjp.js} +2 -2
- package/chunk/{CiY7w1ZO.js → _L2dKF58.js} +3 -3
- package/chunk/{BJ1soa2K.js → uEGHykhe.js} +18 -18
- package/collapse/Collapse.js +3 -3
- package/collapse/Item.js +4 -4
- package/collapse/index.js +1 -1
- package/color-picker/ControlBar.js +2 -2
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +2 -2
- package/color-picker/InputRgb.js +2 -2
- package/color-picker/Palette.js +2 -2
- package/color-picker/Panel.js +4 -4
- package/color-picker/colors.js +20 -9
- package/color-picker/index.js +20 -20
- package/color-picker/utils.js +1 -1
- package/comment/index.js +6 -6
- package/config-provider/ConfigProvider.js +2 -2
- package/config-provider/context.js +1 -1
- package/config-provider/index.js +2 -2
- package/copy/index.js +16 -16
- package/date-picker/Picker.js +2 -2
- package/date-picker/PickerRange.js +3 -3
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +2 -2
- package/divider/index.js +5 -5
- package/draggable/Item.js +1 -1
- package/draggable/index.js +9 -9
- package/drawer/Drawer.js +3 -3
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +2 -2
- package/empty/index.js +2 -2
- package/form/Control.js +1 -1
- package/form/Form.js +2 -2
- package/form/FormItem.js +3 -3
- package/form/FormLabel.js +9 -9
- package/grid/Col.js +2 -2
- package/grid/Row.js +2 -2
- package/grid/grid-item.js +2 -2
- package/grid/grid.js +8 -8
- package/icon/index.js +11 -11
- package/icon-hover/index.js +2 -2
- package/image/Image.js +4 -4
- package/image/ImageFooter.js +2 -2
- package/image/ImagePreview.js +5 -5
- package/image/ImagePreviewArrow.js +4 -4
- package/image/ImagePreviewGroup.js +1 -1
- package/image/ImagePreviewToolbar.js +1 -1
- package/image/TriggerForToolbar.js +4 -4
- package/image/index.js +1 -1
- package/index.js +565 -575
- package/input/Group.js +4 -4
- package/input/Input.js +45 -45
- package/input/InputElement.js +2 -2
- package/input/Password.js +2 -2
- package/input/Search.js +2 -2
- package/input/Textarea.js +2 -2
- package/input-number/index.js +2 -2
- package/input-tag/InputTag.js +4 -4
- package/layout/Content.js +2 -2
- package/layout/Footer.js +5 -5
- package/layout/Header.js +4 -4
- package/layout/Sider.js +2 -2
- package/layout/index.js +2 -2
- package/link/index.js +5 -5
- package/list/Item.js +2 -2
- package/list/Meta.js +4 -4
- package/list/index.js +2 -2
- package/mentions/index.js +2 -2
- package/menu/Item.js +5 -5
- package/menu/ItemGroup.js +1 -1
- package/menu/Menu.js +3 -3
- package/menu/OverflowWrap.js +2 -2
- package/menu/index.js +2 -2
- package/message/index.js +4 -4
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +4 -4
- package/modal/index.js +1 -1
- package/notice/index.js +2 -2
- package/notification/index.js +4 -4
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +6 -6
- package/overflow-ellipsis/index.js +8 -8
- package/package.json +1 -1
- package/page-header/index.js +2 -2
- package/pagination/PageItem.js +2 -2
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +1 -1
- package/pagination/Pagination.js +23 -23
- package/picker/Input.js +7 -7
- package/picker/InputRange.js +9 -9
- package/popconfirm/index.js +2 -2
- package/popover/index.js +2 -2
- package/progress/CircleProgress.js +7 -7
- package/progress/LineProgess.js +1 -1
- package/progress/StepProgress.js +7 -7
- package/progress/index.js +8 -8
- package/radio/Group.js +3 -3
- package/radio/Radio.js +3 -3
- package/radio/index.js +2 -2
- package/rate/index.js +2 -2
- package/resize-box/ResizeTrigger.js +10 -10
- package/resize-box/Split.js +12 -12
- package/resize-box/SplitGroup.js +2 -2
- package/resize-box/index.js +2 -2
- package/result/index.js +9 -9
- package/select/Option.js +2 -2
- package/select/Select.js +3 -3
- package/select-view/Core.js +27 -27
- package/select-view/index.js +1 -1
- package/skeleton/Image.js +4 -4
- package/skeleton/Text.js +7 -7
- package/skeleton/index.js +2 -2
- package/slider/Button.js +2 -2
- package/slider/Dot.js +5 -5
- package/slider/Input.js +12 -12
- package/slider/Tick.js +6 -6
- package/slider/index.js +2 -2
- package/space/index.js +12 -12
- package/speech-synthesis/index.js +4 -4
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +2 -2
- package/statistic/Countdown.js +7 -7
- package/statistic/index.js +20 -20
- package/steps/Step.js +1 -1
- package/steps/index.js +2 -2
- package/style.css +1 -1
- package/switch/index.js +4 -4
- package/table/Table.js +4 -4
- package/table/index.js +4 -4
- package/tabs/Tab.js +3 -3
- package/tabs/TabContent.js +3 -3
- package/tabs/TabPane.js +2 -2
- package/tabs/index.js +2 -2
- package/tag/index.js +6 -6
- package/time-picker/Picker.js +2 -2
- package/time-picker/TimeColumn.js +7 -7
- package/time-picker/TimePicker.js +23 -23
- package/time-picker/util.js +5 -5
- package/timeline/Item.js +2 -2
- package/timeline/Timeline.js +2 -2
- package/tooltip/index.js +3 -3
- package/transfer/Item.js +3 -3
- package/transfer/List.js +3 -3
- package/transfer/index.js +2 -2
- package/tree/Animation.js +3 -3
- package/tree/Node.js +4 -4
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +3 -3
- package/tree/index.js +1 -1
- package/tree-select/Select.js +2 -2
- package/trigger/index.js +3 -3
- package/types/color-picker/colors.d.ts +1 -1
- package/types/utils/color.d.ts +1 -1
- package/typography/Base.js +2 -2
- package/typography/EditContent.js +1 -1
- package/typography/Ellipsis.js +14 -15
- package/typography/Paragraph.js +6 -6
- package/typography/Typography.js +5 -5
- package/typography/index.js +12 -13
- package/upload/TriggerNode.js +2 -2
- package/upload/Upload.js +5 -5
- package/upload/Uploader.js +2 -2
- package/utils/PqbCSSTransition.js +1 -1
- package/utils/className.js +3 -3
- package/utils/color.js +2 -116
- package/utils/contextHolder.js +1 -1
- package/utils/copy.js +4 -4
- package/utils/fileToURL.js +1 -1
- package/utils/index.js +299 -309
- package/utils/reactTransitionGroup.js +1 -1
- package/utils/saveAs.js +1 -1
- package/utils/tinycolor.js +12 -12
- package/utils/tween.js +1 -1
- package/verification-code/VerificationCode.js +7 -7
- package/version/index.js +1 -1
- package/watermark/Watermark.js +6 -6
- package/chunk/CCVU-Kst.js +0 -770
- package/chunk/CTxjmYmx.js +0 -19
- package/chunk/JPPo5nY_.js +0 -9
package/progress/StepProgress.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as n, jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import g from "@unicom-cloud/icons/IconUiExclamationCircleFill";
|
|
3
3
|
import C from "lodash/isFunction";
|
|
4
4
|
import { useCallback as k } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { p as c } from "../chunk/CUFsOxJ2.js";
|
|
6
6
|
const F = (r) => {
|
|
7
7
|
const {
|
|
8
8
|
prefixCls: m,
|
|
@@ -11,11 +11,11 @@ const F = (r) => {
|
|
|
11
11
|
type: d,
|
|
12
12
|
formatText: a,
|
|
13
13
|
trailColor: f,
|
|
14
|
-
showText:
|
|
15
|
-
inlineText:
|
|
16
|
-
size:
|
|
14
|
+
showText: p = !0,
|
|
15
|
+
inlineText: x = !1,
|
|
16
|
+
size: h = "default",
|
|
17
17
|
status: i = "normal"
|
|
18
|
-
} = r, $ = r.strokeWidth || (
|
|
18
|
+
} = r, $ = r.strokeWidth || (h === "small" ? 8 : 4), e = `${m}-${d}`, v = $, w = k(() => {
|
|
19
19
|
if (C(a))
|
|
20
20
|
return a(t);
|
|
21
21
|
switch (i) {
|
|
@@ -56,12 +56,12 @@ const F = (r) => {
|
|
|
56
56
|
})
|
|
57
57
|
}
|
|
58
58
|
),
|
|
59
|
-
|
|
59
|
+
p && /* @__PURE__ */ s(
|
|
60
60
|
"div",
|
|
61
61
|
{
|
|
62
62
|
className: c(`${e}-text`, {
|
|
63
63
|
[`${e}-text-with-icon`]: i,
|
|
64
|
-
[`${e}-text-inline`]:
|
|
64
|
+
[`${e}-text-inline`]: x
|
|
65
65
|
}),
|
|
66
66
|
children: w()
|
|
67
67
|
}
|
package/progress/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as w, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as y, useContext as $ } from "react";
|
|
3
|
-
import { a as k } from "../chunk/
|
|
3
|
+
import { a as k } from "../chunk/Crs3isAx.js";
|
|
4
4
|
import { u as S } from "../chunk/BFTV6myl.js";
|
|
5
|
-
import {
|
|
5
|
+
import { p as T } from "../chunk/CUFsOxJ2.js";
|
|
6
6
|
import { o as N } from "../chunk/BKKEev13.js";
|
|
7
7
|
import m from "./CircleProgress.js";
|
|
8
8
|
import W from "./LineProgess.js";
|
|
@@ -24,12 +24,12 @@ function z(f, c) {
|
|
|
24
24
|
style: x,
|
|
25
25
|
size: a,
|
|
26
26
|
width: o,
|
|
27
|
-
strokeWidth:
|
|
27
|
+
strokeWidth: n,
|
|
28
28
|
steps: g,
|
|
29
29
|
percent: C,
|
|
30
30
|
...P
|
|
31
|
-
} = t, s = g && t.type !== "circle" ? "steps" : t.type, r = h("progress"), e = "status" in t ? t.status : C >= 100 ? "success" : "normal",
|
|
32
|
-
return a === "mini" && s === "line" && (
|
|
31
|
+
} = t, s = g && t.type !== "circle" ? "steps" : t.type, r = h("progress"), e = "status" in t ? t.status : C >= 100 ? "success" : "normal", p = { width: o };
|
|
32
|
+
return a === "mini" && s === "line" && (p.width = o || 16, p.height = o || 16), /* @__PURE__ */ w(
|
|
33
33
|
"div",
|
|
34
34
|
{
|
|
35
35
|
ref: c,
|
|
@@ -43,7 +43,7 @@ function z(f, c) {
|
|
|
43
43
|
},
|
|
44
44
|
u
|
|
45
45
|
),
|
|
46
|
-
style: { ...
|
|
46
|
+
style: { ...p, ...x },
|
|
47
47
|
...N(P, [
|
|
48
48
|
"type",
|
|
49
49
|
"animation",
|
|
@@ -81,9 +81,9 @@ function z(f, c) {
|
|
|
81
81
|
{
|
|
82
82
|
pathStrokeColor: t.trailColor,
|
|
83
83
|
...t,
|
|
84
|
-
pathStrokeWidth:
|
|
84
|
+
pathStrokeWidth: n || 4,
|
|
85
85
|
width: o || 16,
|
|
86
|
-
strokeWidth:
|
|
86
|
+
strokeWidth: n || 4,
|
|
87
87
|
prefixCls: r,
|
|
88
88
|
status: e
|
|
89
89
|
}
|
package/radio/Group.js
CHANGED
|
@@ -2,13 +2,13 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "lodash/isArray";
|
|
3
3
|
import "lodash/isPlainObject";
|
|
4
4
|
import "react";
|
|
5
|
-
import "../chunk/
|
|
5
|
+
import "../chunk/Crs3isAx.js";
|
|
6
6
|
import "../chunk/BFTV6myl.js";
|
|
7
7
|
import "../chunk/DeV0v__J.js";
|
|
8
|
-
import "../chunk/
|
|
8
|
+
import "../chunk/CUFsOxJ2.js";
|
|
9
9
|
import "../utils/constant.js";
|
|
10
10
|
import "../chunk/ClqoGc3r.js";
|
|
11
|
-
import { C as x, a as G, G as f } from "../chunk/
|
|
11
|
+
import { C as x, a as G, G as f } from "../chunk/BDZpJpz-.js";
|
|
12
12
|
export {
|
|
13
13
|
x as ClearRadioGroupContext,
|
|
14
14
|
G as RadioGroupContext,
|
package/radio/Radio.js
CHANGED
|
@@ -2,12 +2,12 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "lodash/isFunction";
|
|
3
3
|
import "lodash/isNil";
|
|
4
4
|
import "react";
|
|
5
|
-
import "../chunk/
|
|
5
|
+
import "../chunk/Crs3isAx.js";
|
|
6
6
|
import "../chunk/BFTV6myl.js";
|
|
7
7
|
import "../chunk/DeV0v__J.js";
|
|
8
|
-
import "../chunk/
|
|
8
|
+
import "../chunk/CUFsOxJ2.js";
|
|
9
9
|
import "../chunk/BKKEev13.js";
|
|
10
|
-
import { G, a as R, R as f } from "../chunk/
|
|
10
|
+
import { G, a as R, R as f } from "../chunk/BDZpJpz-.js";
|
|
11
11
|
export {
|
|
12
12
|
G as RadioGroup,
|
|
13
13
|
R as RadioGroupContext,
|
package/radio/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as a } from "../chunk/
|
|
2
|
-
import { C as e, G as p, a as d } from "../chunk/
|
|
1
|
+
import { R as a } from "../chunk/BDZpJpz-.js";
|
|
2
|
+
import { C as e, G as p, a as d } from "../chunk/BDZpJpz-.js";
|
|
3
3
|
export {
|
|
4
4
|
e as ClearRadioGroupContext,
|
|
5
5
|
p as RadioGroup,
|
package/rate/index.js
CHANGED
|
@@ -5,10 +5,10 @@ import x from "@unicom-cloud/icons/IconUiFaceSmileFill";
|
|
|
5
5
|
import tt from "@unicom-cloud/icons/IconUiStarFill";
|
|
6
6
|
import { times as et, divide as rt } from "../utils/math.js";
|
|
7
7
|
import g, { useContext as ot, useState as y } from "react";
|
|
8
|
-
import { a as at } from "../chunk/
|
|
8
|
+
import { a as at } from "../chunk/Crs3isAx.js";
|
|
9
9
|
import { u as st } from "../chunk/BFTV6myl.js";
|
|
10
10
|
import ct from "../tooltip/index.js";
|
|
11
|
-
import {
|
|
11
|
+
import { p as U } from "../chunk/CUFsOxJ2.js";
|
|
12
12
|
import { o as lt } from "../chunk/BKKEev13.js";
|
|
13
13
|
const it = {
|
|
14
14
|
character: /* @__PURE__ */ o(tt, {}),
|
|
@@ -7,8 +7,8 @@ import L from "@unicom-cloud/icons/IconUiDragDot";
|
|
|
7
7
|
import M from "@unicom-cloud/icons/IconUiDragDotVertical";
|
|
8
8
|
import g from "lodash/isFunction";
|
|
9
9
|
import { useContext as V, useRef as q, useEffect as A } from "react";
|
|
10
|
-
import { a as B } from "../chunk/
|
|
11
|
-
import {
|
|
10
|
+
import { a as B } from "../chunk/Crs3isAx.js";
|
|
11
|
+
import { p as o } from "../chunk/CUFsOxJ2.js";
|
|
12
12
|
import "../chunk/DAAff-FT.js";
|
|
13
13
|
import { o as G } from "../chunk/BKKEev13.js";
|
|
14
14
|
import { r as J } from "../chunk/CIRG541s.js";
|
|
@@ -32,7 +32,7 @@ function ar(I) {
|
|
|
32
32
|
{ [`${e}-not-resizable`]: !l },
|
|
33
33
|
{ [`${e}-rtl`]: C },
|
|
34
34
|
D
|
|
35
|
-
),
|
|
35
|
+
), p = q(), v = y ? [/* @__PURE__ */ r(h, {}, "prev"), /* @__PURE__ */ r(N, {}, "next")] : [/* @__PURE__ */ r(N, {}, "prev"), /* @__PURE__ */ r(h, {}, "next")], i = z(n.prev) ? {
|
|
36
36
|
...n.prev,
|
|
37
37
|
icon: n.prev.icon || (t ? /* @__PURE__ */ r(H, {}) : v[0])
|
|
38
38
|
} : {}, s = z(n.next) ? {
|
|
@@ -52,27 +52,27 @@ function ar(I) {
|
|
|
52
52
|
onClick: s.onClick,
|
|
53
53
|
children: s.icon
|
|
54
54
|
}
|
|
55
|
-
) : /* @__PURE__ */ r("span", { className: o(`${e}-icon-empty`) }), P = () => l ? /* @__PURE__ */ r("span", { className: `${e}-icon`, children: b || (t ? /* @__PURE__ */ r(L, {}) : /* @__PURE__ */ r(M, {})) }) : /* @__PURE__ */ r("span", { className: o(`${e}-icon-empty`) }),
|
|
56
|
-
|
|
55
|
+
) : /* @__PURE__ */ r("span", { className: o(`${e}-icon-empty`) }), P = () => l ? /* @__PURE__ */ r("span", { className: `${e}-icon`, children: b || (t ? /* @__PURE__ */ r(L, {}) : /* @__PURE__ */ r(M, {})) }) : /* @__PURE__ */ r("span", { className: o(`${e}-icon-empty`) }), m = j(), f = P(), d = w(), $ = () => /* @__PURE__ */ O("div", { className: `${e}-icon-wrapper`, children: [
|
|
56
|
+
m,
|
|
57
57
|
f,
|
|
58
58
|
d
|
|
59
59
|
] });
|
|
60
60
|
return l ? (A(() => {
|
|
61
61
|
if (!g(a)) return;
|
|
62
|
-
const E = J([
|
|
62
|
+
const E = J([p.current], a);
|
|
63
63
|
return () => {
|
|
64
64
|
E();
|
|
65
65
|
};
|
|
66
|
-
}, [
|
|
66
|
+
}, [p.current, a]), /* @__PURE__ */ r(
|
|
67
67
|
"div",
|
|
68
68
|
{
|
|
69
|
-
ref:
|
|
69
|
+
ref: p,
|
|
70
70
|
...G(T, ["style"]),
|
|
71
71
|
className: x,
|
|
72
72
|
onMouseDown: R,
|
|
73
|
-
children: g(c) ? c(
|
|
73
|
+
children: g(c) ? c(m, f, d) : u || $()
|
|
74
74
|
}
|
|
75
|
-
)) : /* @__PURE__ */ r("div", { className: x, children: g(c) ? c(
|
|
75
|
+
)) : /* @__PURE__ */ r("div", { className: x, children: g(c) ? c(m, f, d) : u || $() });
|
|
76
76
|
}
|
|
77
77
|
export {
|
|
78
78
|
ar as default
|
package/resize-box/Split.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as y, jsxs as ie } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as ce, useContext as ae, useState as D, useRef as T, useImperativeHandle as fe, useEffect as ue } from "react";
|
|
3
|
-
import { a as
|
|
4
|
-
import { u as
|
|
5
|
-
import {
|
|
6
|
-
import { on as
|
|
3
|
+
import { a as le } from "../chunk/Crs3isAx.js";
|
|
4
|
+
import { u as me } from "../chunk/B2yFlXke.js";
|
|
5
|
+
import { p as $ } from "../chunk/CUFsOxJ2.js";
|
|
6
|
+
import { on as l, off as m } from "../utils/dom.js";
|
|
7
7
|
import de from "./ResizeTrigger.js";
|
|
8
8
|
const C = "horizontal", W = "vertical";
|
|
9
9
|
function ge(n, A) {
|
|
@@ -11,7 +11,7 @@ function ge(n, A) {
|
|
|
11
11
|
style: L,
|
|
12
12
|
className: V,
|
|
13
13
|
component: j = "div",
|
|
14
|
-
direction:
|
|
14
|
+
direction: p = "horizontal",
|
|
15
15
|
icon: B,
|
|
16
16
|
size: d = 0.5,
|
|
17
17
|
min: v,
|
|
@@ -19,10 +19,10 @@ function ge(n, A) {
|
|
|
19
19
|
panes: _,
|
|
20
20
|
disabled: Z,
|
|
21
21
|
trigger: k
|
|
22
|
-
} = n, { getPrefixCls: q, rtl:
|
|
22
|
+
} = n, { getPrefixCls: q, rtl: H } = ae(le), s = q("resizebox-split"), g = p.includes(C), I = p.includes("reverse"), G = g && H, R = !g, J = $(
|
|
23
23
|
s,
|
|
24
24
|
`${s}-${g ? C : W}`,
|
|
25
|
-
{ [`${s}-rtl`]:
|
|
25
|
+
{ [`${s}-rtl`]: H },
|
|
26
26
|
V
|
|
27
27
|
), [K, Q] = _, i = typeof d == "string", [c, E] = D(parseFloat(d)), [F, U] = D(0), t = T({
|
|
28
28
|
startX: 0,
|
|
@@ -38,7 +38,7 @@ function ge(n, A) {
|
|
|
38
38
|
}
|
|
39
39
|
function M(e, o, r, f) {
|
|
40
40
|
const X = typeof v == "string" ? z(parseFloat(v), e) : v || 0, Y = typeof x == "string" ? z(parseFloat(x), e) : x || 1;
|
|
41
|
-
let N =
|
|
41
|
+
let N = I ? -1 : 1;
|
|
42
42
|
N *= G ? -1 : 1;
|
|
43
43
|
let u = i ? o + (f - r) * N : z(
|
|
44
44
|
e * o + (f - r) * N,
|
|
@@ -49,7 +49,7 @@ function ge(n, A) {
|
|
|
49
49
|
}
|
|
50
50
|
function ee(e) {
|
|
51
51
|
var o, r, f;
|
|
52
|
-
(o = n.onMovingStart) == null || o.call(n), t.current.moving = !0, t.current.startX = e.pageX, t.current.startY = e.pageY, t.current.startWidth = (r = w.current) == null ? void 0 : r.offsetWidth, t.current.startHeight = (f = w.current) == null ? void 0 : f.offsetHeight, t.current.startOffset = c,
|
|
52
|
+
(o = n.onMovingStart) == null || o.call(n), t.current.moving = !0, t.current.startX = e.pageX, t.current.startY = e.pageY, t.current.startWidth = (r = w.current) == null ? void 0 : r.offsetWidth, t.current.startHeight = (f = w.current) == null ? void 0 : f.offsetHeight, t.current.startOffset = c, l(window, "mousemove", h), l(window, "touchmove", h), l(window, "mouseup", a), l(window, "touchend", a), l(window, "contextmenu", a), document.body.style.cursor = R ? "row-resize" : "col-resize";
|
|
53
53
|
}
|
|
54
54
|
function h(e) {
|
|
55
55
|
var o;
|
|
@@ -70,7 +70,7 @@ function ge(n, A) {
|
|
|
70
70
|
}
|
|
71
71
|
function a() {
|
|
72
72
|
var e;
|
|
73
|
-
t.current.moving = !1,
|
|
73
|
+
t.current.moving = !1, m(window, "mousemove", h), m(window, "touchmove", h), m(window, "mouseup", a), m(window, "touchend", a), m(window, "contextmenu", a), document.body.style.cursor = "default", (e = n.onMovingEnd) == null || e.call(n);
|
|
74
74
|
}
|
|
75
75
|
function te(e) {
|
|
76
76
|
const { contentRect: o } = e[0], r = o[R ? "height" : "width"];
|
|
@@ -83,7 +83,7 @@ function ge(n, A) {
|
|
|
83
83
|
ue(() => {
|
|
84
84
|
var e;
|
|
85
85
|
(e = n.onPaneResize) == null || e.call(n, O.current);
|
|
86
|
-
}, [c, F]),
|
|
86
|
+
}, [c, F]), me(() => {
|
|
87
87
|
const e = parseFloat(d);
|
|
88
88
|
c !== e && E(e);
|
|
89
89
|
}, [d]);
|
|
@@ -106,7 +106,7 @@ function ge(n, A) {
|
|
|
106
106
|
},
|
|
107
107
|
children: Q
|
|
108
108
|
}
|
|
109
|
-
), S =
|
|
109
|
+
), S = I ? [P, b] : [b, P];
|
|
110
110
|
return /* @__PURE__ */ ie(oe, { style: L, className: J, ref: w, children: [
|
|
111
111
|
S[0],
|
|
112
112
|
!Z && /* @__PURE__ */ y(
|
package/resize-box/SplitGroup.js
CHANGED
|
@@ -5,8 +5,8 @@ import S from "lodash/isPlainObject";
|
|
|
5
5
|
import Ot from "lodash/isString";
|
|
6
6
|
import W from "lodash/isUndefined";
|
|
7
7
|
import Ct, { forwardRef as xt, useContext as St, useRef as z, useState as y, useEffect as L, useImperativeHandle as zt } from "react";
|
|
8
|
-
import { a as Pt } from "../chunk/
|
|
9
|
-
import {
|
|
8
|
+
import { a as Pt } from "../chunk/Crs3isAx.js";
|
|
9
|
+
import { p as Rt } from "../chunk/CUFsOxJ2.js";
|
|
10
10
|
import { on as P, off as R } from "../utils/dom.js";
|
|
11
11
|
import { o as Nt } from "../chunk/BKKEev13.js";
|
|
12
12
|
import pt from "./ResizeTrigger.js";
|
package/resize-box/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as ot, jsx as rt } from "react/jsx-runtime";
|
|
2
2
|
import B from "lodash/isNumber";
|
|
3
3
|
import { forwardRef as nt, useContext as st, useState as it, useRef as E, useImperativeHandle as ct } from "react";
|
|
4
|
-
import { a as at } from "../chunk/
|
|
4
|
+
import { a as at } from "../chunk/Crs3isAx.js";
|
|
5
5
|
import { u as ut } from "../chunk/BFTV6myl.js";
|
|
6
6
|
import { u as W } from "../chunk/DeV0v__J.js";
|
|
7
|
-
import {
|
|
7
|
+
import { p as mt } from "../chunk/CUFsOxJ2.js";
|
|
8
8
|
import { on as g, off as l } from "../utils/dom.js";
|
|
9
9
|
import { o as dt } from "../chunk/BKKEev13.js";
|
|
10
10
|
import gt from "./ResizeTrigger.js";
|
package/result/index.js
CHANGED
|
@@ -4,9 +4,9 @@ import v from "@unicom-cloud/icons/IconUiClose";
|
|
|
4
4
|
import C from "@unicom-cloud/icons/IconUiExclamation";
|
|
5
5
|
import R from "@unicom-cloud/icons/IconUiInfo";
|
|
6
6
|
import { forwardRef as U, useContext as P } from "react";
|
|
7
|
-
import { a as b } from "../chunk/
|
|
7
|
+
import { a as b } from "../chunk/Crs3isAx.js";
|
|
8
8
|
import { u as j } from "../chunk/BFTV6myl.js";
|
|
9
|
-
import {
|
|
9
|
+
import { p as m } from "../chunk/CUFsOxJ2.js";
|
|
10
10
|
import w from "./403.js";
|
|
11
11
|
import y from "./404.js";
|
|
12
12
|
import k from "./500.js";
|
|
@@ -33,15 +33,15 @@ function T(f, p) {
|
|
|
33
33
|
title: i,
|
|
34
34
|
subTitle: c,
|
|
35
35
|
extra: n,
|
|
36
|
-
children:
|
|
36
|
+
children: a,
|
|
37
37
|
icon: I,
|
|
38
38
|
...N
|
|
39
|
-
} = e, s = u("result"),
|
|
39
|
+
} = e, s = u("result"), l = "icon" in e ? I : E[t];
|
|
40
40
|
return /* @__PURE__ */ h(
|
|
41
41
|
"div",
|
|
42
42
|
{
|
|
43
43
|
ref: p,
|
|
44
|
-
className:
|
|
44
|
+
className: m(
|
|
45
45
|
s,
|
|
46
46
|
{
|
|
47
47
|
[`${s}-is-${t}`]: t,
|
|
@@ -52,20 +52,20 @@ function T(f, p) {
|
|
|
52
52
|
style: x,
|
|
53
53
|
...N,
|
|
54
54
|
children: [
|
|
55
|
-
|
|
55
|
+
l && /* @__PURE__ */ o("div", { className: `${s}-icon`, children: /* @__PURE__ */ o(
|
|
56
56
|
"span",
|
|
57
57
|
{
|
|
58
|
-
className:
|
|
58
|
+
className: m(`${s}-icon-tip`, {
|
|
59
59
|
[`${s}-icon-${t}`]: t,
|
|
60
60
|
[`${s}-icon-custom`]: t === null
|
|
61
61
|
}),
|
|
62
|
-
children:
|
|
62
|
+
children: l
|
|
63
63
|
}
|
|
64
64
|
) }),
|
|
65
65
|
i && /* @__PURE__ */ o("div", { className: `${s}-title`, children: i }),
|
|
66
66
|
c && /* @__PURE__ */ o("div", { className: `${s}-subtitle`, children: c }),
|
|
67
67
|
n && /* @__PURE__ */ o("div", { className: `${s}-extra`, children: n }),
|
|
68
|
-
|
|
68
|
+
a && /* @__PURE__ */ o("div", { className: `${s}-content`, children: a })
|
|
69
69
|
]
|
|
70
70
|
}
|
|
71
71
|
);
|
package/select/Option.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as j, jsx as C } from "react/jsx-runtime";
|
|
2
2
|
import y from "react";
|
|
3
|
-
import { C as E } from "../chunk/
|
|
4
|
-
import {
|
|
3
|
+
import { C as E } from "../chunk/NmSLBKjp.js";
|
|
4
|
+
import { p as v } from "../chunk/CUFsOxJ2.js";
|
|
5
5
|
import { o as L } from "../chunk/BKKEev13.js";
|
|
6
6
|
function P(l, _) {
|
|
7
7
|
const {
|
package/select/Select.js
CHANGED
|
@@ -2,14 +2,14 @@ import { jsx as _, jsxs as gt } from "react/jsx-runtime";
|
|
|
2
2
|
import U from "lodash/isArray";
|
|
3
3
|
import Ot from "lodash/isFunction";
|
|
4
4
|
import ht, { useContext as Ct, useState as W, useMemo as De, useRef as b, useCallback as pe, useEffect as V, useImperativeHandle as vt } from "react";
|
|
5
|
-
import { C as yt } from "../chunk/
|
|
6
|
-
import { a as bt } from "../chunk/
|
|
5
|
+
import { C as yt } from "../chunk/NmSLBKjp.js";
|
|
6
|
+
import { a as bt } from "../chunk/Crs3isAx.js";
|
|
7
7
|
import { u as Vt } from "../chunk/B4YRLi8r.js";
|
|
8
8
|
import { u as kt } from "../chunk/BFTV6myl.js";
|
|
9
9
|
import { u as Re } from "../chunk/DeV0v__J.js";
|
|
10
10
|
import xt from "../select-view/index.js";
|
|
11
11
|
import wt from "../trigger/index.js";
|
|
12
|
-
import {
|
|
12
|
+
import { p as fe } from "../chunk/CUFsOxJ2.js";
|
|
13
13
|
import { g as St } from "../chunk/Dh7Osrvr.js";
|
|
14
14
|
import "../chunk/DAAff-FT.js";
|
|
15
15
|
import { o as At, e as He, c as $e, d as It, r as _t } from "../chunk/BrOW642m.js";
|
package/select-view/Core.js
CHANGED
|
@@ -5,19 +5,19 @@ import eo from "@unicom-cloud/icons/IconUiDown";
|
|
|
5
5
|
import oo from "@unicom-cloud/icons/IconUiLoading";
|
|
6
6
|
import ro from "@unicom-cloud/icons/IconUiSearch";
|
|
7
7
|
import no from "lodash/isFunction";
|
|
8
|
-
import
|
|
9
|
-
import { a as to, I as so } from "../chunk/
|
|
8
|
+
import pe from "lodash/isUndefined";
|
|
9
|
+
import { a as to, I as so } from "../chunk/Crs3isAx.js";
|
|
10
10
|
import { u as ao } from "../chunk/CQ_WOOmf.js";
|
|
11
11
|
import { u as lo } from "../chunk/BsY85n3_.js";
|
|
12
12
|
import co from "../input-tag/InputTag.js";
|
|
13
13
|
import io from "../input/InputElement.js";
|
|
14
14
|
import uo from "../popover/index.js";
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
15
|
+
import fe from "../tag/index.js";
|
|
16
|
+
import { p as k } from "../chunk/CUFsOxJ2.js";
|
|
17
17
|
import { f as me } from "../chunk/CftuXmo_.js";
|
|
18
|
-
import { i as
|
|
18
|
+
import { i as po } from "../chunk/CYhxqVkn.js";
|
|
19
19
|
import "../chunk/DAAff-FT.js";
|
|
20
|
-
import { e as
|
|
20
|
+
import { e as fo, t as mo } from "../chunk/BrOW642m.js";
|
|
21
21
|
import "../chunk/C0pRaDCf.js";
|
|
22
22
|
import C from "lodash/isPlainObject.js";
|
|
23
23
|
import he from "lodash/isNumber.js";
|
|
@@ -47,7 +47,7 @@ const J = "__pqb_value_tag_placeholder", I = {
|
|
|
47
47
|
renderText: ee,
|
|
48
48
|
value: g,
|
|
49
49
|
inputValue: F,
|
|
50
|
-
popupVisible:
|
|
50
|
+
popupVisible: f,
|
|
51
51
|
maxTagCount: l,
|
|
52
52
|
isMultiple: w,
|
|
53
53
|
isEmptyValue: O,
|
|
@@ -66,29 +66,29 @@ const J = "__pqb_value_tag_placeholder", I = {
|
|
|
66
66
|
onRemoveCheckedItem: z,
|
|
67
67
|
onSort: B,
|
|
68
68
|
...Oe
|
|
69
|
-
} = v, N = ue(null), m = ue(null), { size: Re, getPrefixCls: re } = qe(to), [Me, ne] = de(I.NONE), [L, te] = de(!1), Ae = ao(), T = "showSearch" in v ? v.showSearch : w,
|
|
69
|
+
} = v, N = ue(null), m = ue(null), { size: Re, getPrefixCls: re } = qe(to), [Me, ne] = de(I.NONE), [L, te] = de(!1), Ae = ao(), T = "showSearch" in v ? v.showSearch : w, p = T || Ne, S = ve || Re, j = L || f, _e = C(T) && T.retainInputValue, b = !w && g !== void 0 ? ee(g).text : "", H = (e) => {
|
|
70
70
|
var o;
|
|
71
71
|
(o = e == null ? void 0 : e.preventDefault) == null || o.call(e);
|
|
72
72
|
}, G = (e) => {
|
|
73
|
-
const o =
|
|
73
|
+
const o = p ? N.current : m.current;
|
|
74
74
|
o && (e === "focus" ? o.focus() : o.blur());
|
|
75
75
|
}, y = (e, o) => {
|
|
76
|
-
|
|
76
|
+
p && o.target === m.current || (e === "focus" ? (te(!0), U == null || U(o)) : (te(!1), V == null || V(o)));
|
|
77
77
|
}, se = (e) => {
|
|
78
|
-
if (
|
|
78
|
+
if (p && e.currentTarget === m.current)
|
|
79
79
|
return;
|
|
80
|
-
e.key ===
|
|
80
|
+
e.key === fo.key && e.preventDefault(), A == null || A(e);
|
|
81
81
|
};
|
|
82
82
|
Xe(() => {
|
|
83
|
-
G(
|
|
84
|
-
}, [
|
|
83
|
+
G(f ? "focus" : "blur"), p && ne(f ? I.BEFORE : I.NONE);
|
|
84
|
+
}, [f]), Je(ge, () => ({
|
|
85
85
|
dom: m.current,
|
|
86
86
|
getRootDOMNode: () => m.current,
|
|
87
87
|
focus: G.bind(null, "focus"),
|
|
88
88
|
blur: G.bind(null, "blur"),
|
|
89
89
|
getWidth: () => m.current && m.current.clientWidth
|
|
90
90
|
}));
|
|
91
|
-
const Ue = "arrowIcon" in v ? Y === null ? null : /* @__PURE__ */ t("div", { className: `${r}-arrow-icon`, children: Y }) : /* @__PURE__ */ t("div", { className: `${r}-arrow-icon`, children: /* @__PURE__ */ t(eo, {}) }), Ve = $e ? /* @__PURE__ */ t("span", { className: `${r}-loading-icon`, children: /* @__PURE__ */ t(oo, {}) }) : Q ? /* @__PURE__ */ t("span", { className: `${r}-suffix-icon`, children: Q }) : v.showSearch &&
|
|
91
|
+
const Ue = "arrowIcon" in v ? Y === null ? null : /* @__PURE__ */ t("div", { className: `${r}-arrow-icon`, children: Y }) : /* @__PURE__ */ t("div", { className: `${r}-arrow-icon`, children: /* @__PURE__ */ t(eo, {}) }), Ve = $e ? /* @__PURE__ */ t("span", { className: `${r}-loading-icon`, children: /* @__PURE__ */ t(oo, {}) }) : Q ? /* @__PURE__ */ t("span", { className: `${r}-suffix-icon`, children: Q }) : v.showSearch && f ? /* @__PURE__ */ t("div", { className: `${r}-search-icon`, children: /* @__PURE__ */ t(ro, {}) }) : Ue, i = {
|
|
92
92
|
paste: De,
|
|
93
93
|
keyDown: se,
|
|
94
94
|
focus: (e) => {
|
|
@@ -113,14 +113,14 @@ const J = "__pqb_value_tag_placeholder", I = {
|
|
|
113
113
|
e = b;
|
|
114
114
|
break;
|
|
115
115
|
}
|
|
116
|
-
const o = !!(j &&
|
|
116
|
+
const o = !!(j && p || O), s = {
|
|
117
117
|
style: { width: "100%" },
|
|
118
118
|
// _inputValue after renderText(value) may be rich text, but the value of <input> cannot be object
|
|
119
119
|
value: o && typeof e != "object" ? e : "",
|
|
120
120
|
// Allow placeholder to display the selected value first when searching
|
|
121
|
-
placeholder:
|
|
121
|
+
placeholder: p && b && typeof b != "object" ? b : Z
|
|
122
122
|
};
|
|
123
|
-
return
|
|
123
|
+
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__ */ E("span", { className: `${r}-view-selector`, children: [
|
|
124
124
|
/* @__PURE__ */ t(
|
|
125
125
|
io,
|
|
126
126
|
{
|
|
@@ -150,11 +150,11 @@ const J = "__pqb_value_tag_placeholder", I = {
|
|
|
150
150
|
}, W = Qe(() => {
|
|
151
151
|
if (!w)
|
|
152
152
|
return [];
|
|
153
|
-
const e =
|
|
153
|
+
const e = pe(g) ? [] : [].concat(g);
|
|
154
154
|
return (he(ae) ? e.slice(0, ae) : e).map((P) => le(P));
|
|
155
155
|
}, [g, w, l, K]), Be = () => {
|
|
156
156
|
const e = C(l) ? l.count : l, o = C(l) && l.showPopover, s = re("input-tag"), P = (n) => C(l) && no(l.render) ? l.render(n) : e === "responsive" ? /* @__PURE__ */ E(
|
|
157
|
-
|
|
157
|
+
fe,
|
|
158
158
|
{
|
|
159
159
|
className: `${s}-tag`,
|
|
160
160
|
children: [
|
|
@@ -164,7 +164,7 @@ const J = "__pqb_value_tag_placeholder", I = {
|
|
|
164
164
|
]
|
|
165
165
|
},
|
|
166
166
|
J
|
|
167
|
-
) : `+${n}...`, x =
|
|
167
|
+
) : `+${n}...`, x = pe(g) ? [] : [].concat(g), He = () => {
|
|
168
168
|
for (let n = x.length - 1; n >= 0; n--) {
|
|
169
169
|
const c = x[n];
|
|
170
170
|
if (!K(c).disabled)
|
|
@@ -212,7 +212,7 @@ const J = "__pqb_value_tag_placeholder", I = {
|
|
|
212
212
|
a.index,
|
|
213
213
|
W.concat(c)
|
|
214
214
|
) : /* @__PURE__ */ Ye(
|
|
215
|
-
|
|
215
|
+
fe,
|
|
216
216
|
{
|
|
217
217
|
...d,
|
|
218
218
|
key: d.value,
|
|
@@ -297,7 +297,7 @@ const J = "__pqb_value_tag_placeholder", I = {
|
|
|
297
297
|
`${r}-${w ? "multiple" : "single"}`,
|
|
298
298
|
{
|
|
299
299
|
[`${r}-show-search`]: T,
|
|
300
|
-
[`${r}-open`]:
|
|
300
|
+
[`${r}-open`]: f,
|
|
301
301
|
[`${r}-size-${S}`]: S,
|
|
302
302
|
[`${r}-focused`]: j,
|
|
303
303
|
[`${r}-${ce}`]: ce,
|
|
@@ -313,10 +313,10 @@ const J = "__pqb_value_tag_placeholder", I = {
|
|
|
313
313
|
role: "combobox",
|
|
314
314
|
"aria-haspopup": "listbox",
|
|
315
315
|
"aria-autocomplete": "list",
|
|
316
|
-
"aria-expanded":
|
|
316
|
+
"aria-expanded": f,
|
|
317
317
|
"aria-disabled": h,
|
|
318
318
|
"aria-controls": Pe,
|
|
319
|
-
...
|
|
319
|
+
...po(Oe, ["onClick", "onMouseEnter", "onMouseLeave"]),
|
|
320
320
|
...ke,
|
|
321
321
|
ref: m,
|
|
322
322
|
tabIndex: h ? -1 : 0,
|
|
@@ -325,7 +325,7 @@ const J = "__pqb_value_tag_placeholder", I = {
|
|
|
325
325
|
className: je,
|
|
326
326
|
onKeyDown: se,
|
|
327
327
|
onFocus: (e) => {
|
|
328
|
-
!h && !oe && (
|
|
328
|
+
!h && !oe && (p ? N.current && N.current.focus() : y("focus", e));
|
|
329
329
|
},
|
|
330
330
|
onBlur: (e) => y("blur", e),
|
|
331
331
|
children: /* @__PURE__ */ E(
|
|
@@ -335,7 +335,7 @@ const J = "__pqb_value_tag_placeholder", I = {
|
|
|
335
335
|
className: k(`${r}-view`, {
|
|
336
336
|
[`${r}-view-with-prefix`]: R
|
|
337
337
|
}),
|
|
338
|
-
onClick: (e) =>
|
|
338
|
+
onClick: (e) => f && p && e.stopPropagation(),
|
|
339
339
|
children: [
|
|
340
340
|
R && /* @__PURE__ */ t(
|
|
341
341
|
"div",
|
package/select-view/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as p, jsxs as N } from "react/jsx-runtime";
|
|
2
2
|
import y, { useRef as V, useImperativeHandle as W } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { p as b } from "../chunk/CUFsOxJ2.js";
|
|
4
4
|
import "../chunk/DAAff-FT.js";
|
|
5
5
|
import { a as x } from "../chunk/ClqoGc3r.js";
|
|
6
6
|
import C from "./Core.js";
|
package/skeleton/Image.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
function
|
|
2
|
+
import { p } from "../chunk/CUFsOxJ2.js";
|
|
3
|
+
function f(m) {
|
|
4
4
|
const {
|
|
5
5
|
style: t,
|
|
6
6
|
shape: s = "square",
|
|
@@ -8,7 +8,7 @@ function n(m) {
|
|
|
8
8
|
position: i = "left",
|
|
9
9
|
className: o,
|
|
10
10
|
prefixCls: e
|
|
11
|
-
} = m, r =
|
|
11
|
+
} = m, r = p(
|
|
12
12
|
`${e}-image`,
|
|
13
13
|
{
|
|
14
14
|
[`${e}-image-${i}`]: i,
|
|
@@ -20,5 +20,5 @@ function n(m) {
|
|
|
20
20
|
return /* @__PURE__ */ l("div", { className: r, style: t });
|
|
21
21
|
}
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
f as default
|
|
24
24
|
};
|
package/skeleton/Text.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import m from "lodash/isArray";
|
|
3
|
+
import { p as u } from "../chunk/CUFsOxJ2.js";
|
|
4
4
|
function h(l) {
|
|
5
|
-
const { style: n, width: r = "60%", rows: s = 3, className: a, prefixCls: e } = l,
|
|
6
|
-
function
|
|
7
|
-
if (
|
|
5
|
+
const { style: n, width: r = "60%", rows: s = 3, className: a, prefixCls: e } = l, c = u(`${e}-text`, a), o = [];
|
|
6
|
+
function f(t) {
|
|
7
|
+
if (m(r))
|
|
8
8
|
return r[t];
|
|
9
9
|
if (s - 1 === t)
|
|
10
10
|
return r;
|
|
@@ -15,12 +15,12 @@ function h(l) {
|
|
|
15
15
|
"li",
|
|
16
16
|
{
|
|
17
17
|
className: `${e}-text-row`,
|
|
18
|
-
style: { width:
|
|
18
|
+
style: { width: f(t) }
|
|
19
19
|
},
|
|
20
20
|
t
|
|
21
21
|
)
|
|
22
22
|
);
|
|
23
|
-
return /* @__PURE__ */ i("ul", { className:
|
|
23
|
+
return /* @__PURE__ */ i("ul", { className: c, style: n, children: o });
|
|
24
24
|
}
|
|
25
25
|
export {
|
|
26
26
|
h as default
|
package/skeleton/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as e, jsxs as N } from "react/jsx-runtime";
|
|
2
2
|
import $ from "lodash/isPlainObject";
|
|
3
3
|
import S, { forwardRef as j, useContext as v } from "react";
|
|
4
|
-
import { a as b } from "../chunk/
|
|
4
|
+
import { a as b } from "../chunk/Crs3isAx.js";
|
|
5
5
|
import { u as y } from "../chunk/BFTV6myl.js";
|
|
6
|
-
import {
|
|
6
|
+
import { p as R } from "../chunk/CUFsOxJ2.js";
|
|
7
7
|
import { a as w } from "../chunk/ClqoGc3r.js";
|
|
8
8
|
import A from "./Image.js";
|
|
9
9
|
import D from "./Text.js";
|