@unicom-cloud/ui 0.8.72 → 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 +3 -3
- package/Alert.js +3 -3
- package/AutoComplete.js +3 -3
- package/BackTop.js +4 -4
- package/Badge.js +3 -3
- package/Breadcrumb.js +4 -4
- 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 +5 -5
- 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 +3 -3
- package/Mentions.js +3 -3
- package/Menu.js +1 -1
- package/Message.js +7 -6
- package/Modal.js +1 -1
- package/Notice.js +5 -5
- package/Notification.js +8 -7
- package/OverflowEllipsis.js +2 -2
- package/PageHeader.js +2 -2
- package/Popconfirm.js +3 -3
- package/Popover.js +3 -3
- package/Progress.js +2 -2
- package/Radio.js +1 -1
- package/Rate.js +3 -3
- package/ResizeBox.js +3 -3
- package/Result.js +2 -2
- package/SelectView.js +5 -4
- package/Skeleton.js +2 -2
- package/Slider.js +4 -4
- package/Space.js +2 -2
- package/SpeechSynthesis.js +21 -21
- package/Spin.js +3 -3
- package/Statistic.js +3 -3
- package/Steps.js +2 -2
- package/Switch.js +8 -6
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +2 -2
- package/Tooltip.js +4 -4
- package/Transfer.js +3 -3
- package/Tree.js +1 -1
- package/Trigger.js +9 -8
- package/affix/index.js +3 -3
- package/alert/index.js +9 -9
- package/anchor/Anchor.js +62 -59
- package/anchor/Link.js +2 -2
- package/anchor/util.js +2 -2
- package/auto-complete/index.js +3 -3
- 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 +52 -50
- package/breadcrumb/Item.js +6 -6
- package/breadcrumb/index.js +4 -4
- 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 +5 -5
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +4 -4
- package/checkbox/Group.js +4 -4
- package/checkbox/index.js +1 -1
- package/chunk/{6nKl68Er.js → 9we0Q8Kh.js} +4 -4
- package/chunk/{b1e8awfs.js → B0n0iRhF.js} +1 -1
- package/chunk/{Cf4qn5jY.js → BDZpJpz-.js} +3 -3
- package/chunk/BFmckYou.js +25 -0
- package/chunk/{fFjj2KuF.js → BJ9_azwQ.js} +493 -515
- package/chunk/{BnWo0OJ0.js → Bd9zhOZS.js} +9 -9
- package/chunk/{uKZyjtff.js → BhBEMwvI.js} +21 -20
- package/chunk/{Bfq4YEcr.js → Bmvhjhzq.js} +9 -8
- package/chunk/{CdAuhef7.js → BoUHPeG7.js} +2 -2
- package/chunk/BpYX5PN4.js +27 -0
- package/chunk/{CP7Ac47f.js → Bu8A2l60.js} +4 -4
- package/chunk/{URXCKjXr.js → C0pRaDCf.js} +23 -23
- package/chunk/CUFsOxJ2.js +10 -0
- package/chunk/CWjvjpyc.js +873 -0
- package/chunk/{ClaNycDy.js → Cc_-i0o_.js} +2 -2
- package/chunk/Coz3rCng.js +33 -0
- package/chunk/{BHL-PzAD.js → CplLA01W.js} +17 -17
- package/chunk/{Cgbja_v_.js → Crs3isAx.js} +14 -13
- package/chunk/{Ey4YJCkX.js → D0Dlbc2g.js} +2 -1
- package/chunk/{y9unmTx_.js → D5UfU6-H.js} +127 -127
- package/chunk/DAAff-FT.js +59 -0
- package/chunk/{rp1MtSd0.js → DJ8rDYjb.js} +4 -4
- package/chunk/{AwZqeapI.js → DRTWRsgI.js} +1 -1
- package/chunk/DU1RCDfh.js +29 -0
- package/chunk/{CAVVFFyZ.js → DdT3C0ih.js} +6 -8
- package/chunk/{CdaT1b_F.js → DeV0v__J.js} +2 -2
- package/chunk/{IUjEMHU1.js → Dn7KbmZ7.js} +194 -191
- package/chunk/{DpoumMDw.js → DohlrJ4S.js} +1 -1
- package/chunk/{BDHuWwhT.js → NmSLBKjp.js} +3 -3
- package/chunk/{DV7ywe_q.js → RS6OAxzv.js} +2 -2
- package/chunk/{Biupwn8l.js → ZrBrCzQX.js} +6 -5
- package/chunk/_L2dKF58.js +647 -0
- package/chunk/{BJ1soa2K.js → uEGHykhe.js} +18 -18
- package/chunk/{D090jlwP.js → xAb6ZgqS.js} +1 -1
- package/collapse/Collapse.js +4 -4
- 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 +8 -8
- package/color-picker/InputRgb.js +6 -6
- package/color-picker/Palette.js +2 -2
- package/color-picker/Panel.js +17 -17
- package/color-picker/colors.js +20 -9
- package/color-picker/index.js +21 -21
- 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 +3 -3
- package/divider/index.js +5 -5
- package/draggable/Item.js +1 -1
- package/draggable/index.js +9 -9
- package/drawer/Drawer.js +122 -112
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +5 -5
- package/empty/index.js +2 -2
- package/form/Control.js +1 -1
- package/form/Form.js +3 -3
- package/form/FormItem.js +3 -3
- package/form/FormLabel.js +9 -9
- package/form/promisify.js +9 -8
- package/form/store.js +1 -1
- package/form/util.js +1 -1
- package/grid/Col.js +2 -2
- package/grid/Row.js +3 -3
- package/grid/grid-item.js +3 -3
- package/grid/grid.js +9 -9
- package/hooks/index.js +5 -5
- package/hooks/useInView.js +1 -1
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useMergeValue.js +1 -1
- package/hooks/useOverflowHidden.js +1 -1
- package/hooks/useOverrideRef.js +1 -1
- package/hooks/useVerificationCode.js +2 -2
- package/icon/index.js +11 -11
- package/icon-hover/index.js +2 -2
- package/image/Image.js +6 -6
- package/image/ImageFooter.js +2 -2
- package/image/ImagePreview.js +10 -10
- package/image/ImagePreviewArrow.js +4 -4
- package/image/ImagePreviewGroup.js +2 -2
- package/image/ImagePreviewToolbar.js +1 -1
- package/image/TriggerForToolbar.js +4 -4
- package/image/index.js +1 -1
- package/index.js +585 -575
- package/input/Group.js +4 -4
- package/input/Input.js +5 -4
- package/input/InputElement.js +4 -4
- package/input/Password.js +3 -3
- package/input/Search.js +3 -3
- package/input/Textarea.js +7 -6
- package/input-number/index.js +2 -2
- package/input-tag/InputTag.js +53 -51
- package/layout/Content.js +2 -2
- package/layout/Footer.js +5 -5
- package/layout/Header.js +4 -4
- package/layout/Sider.js +4 -4
- 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 +3 -3
- package/locale/en-US.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/mentions/index.js +3 -3
- package/menu/Item.js +6 -6
- package/menu/ItemGroup.js +1 -1
- package/menu/Menu.js +4 -4
- package/menu/OverflowWrap.js +2 -2
- package/menu/index.js +2 -2
- package/message/index.js +7 -6
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +9 -8
- package/modal/index.js +1 -1
- package/notice/index.js +5 -5
- package/notification/index.js +8 -7
- 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 +24 -24
- package/picker/Input.js +7 -7
- package/picker/InputRange.js +9 -9
- package/popconfirm/index.js +3 -3
- package/popover/index.js +3 -3
- 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 +4 -4
- package/radio/Radio.js +4 -4
- package/radio/index.js +2 -2
- package/rate/index.js +27 -27
- package/resize-box/ResizeTrigger.js +26 -25
- package/resize-box/Split.js +12 -12
- package/resize-box/SplitGroup.js +2 -2
- package/resize-box/index.js +3 -3
- package/result/index.js +9 -9
- package/select/Option.js +2 -2
- package/select/Select.js +6 -5
- package/select/util.js +12 -12
- package/select-view/Core.js +29 -29
- package/select-view/index.js +3 -2
- package/skeleton/Image.js +4 -4
- package/skeleton/Text.js +7 -7
- package/skeleton/index.js +2 -2
- package/slider/Button.js +3 -3
- package/slider/Dot.js +5 -5
- package/slider/Input.js +12 -12
- package/slider/Tick.js +7 -7
- package/slider/index.js +20 -20
- package/slider/util.js +8 -8
- package/space/index.js +12 -12
- package/speech-synthesis/index.js +21 -21
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +3 -3
- 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/variables.less +1 -1
- package/style.css +1 -1
- package/switch/index.js +17 -15
- package/table/Table.js +4 -4
- package/table/index.js +4 -4
- package/tabs/Tab.js +4 -4
- 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 +4 -4
- package/transfer/Item.js +3 -3
- package/transfer/List.js +3 -3
- package/transfer/index.js +3 -3
- package/tree/Animation.js +3 -3
- package/tree/Node.js +4 -4
- package/tree/NodeList.js +2 -2
- package/tree/Tree.js +4 -4
- package/tree/index.js +1 -1
- package/tree-select/Select.js +25 -25
- package/trigger/getPopupStyle.js +2 -2
- package/trigger/index.js +8 -7
- package/types/badge/interface.d.ts +1 -0
- package/types/color-picker/colors.d.ts +1 -1
- package/types/date-picker/util.d.ts +1 -1
- package/types/drawer/interface.d.ts +10 -0
- package/types/index.d.ts +0 -7
- package/types/modal/Confirm.d.ts +1 -0
- package/types/utils/PqbCSSTransition.d.ts +3 -0
- package/types/utils/caseName.d.ts +1 -0
- package/types/utils/className.d.ts +1 -0
- package/types/utils/color.d.ts +1 -0
- package/types/utils/computeScrollIntoView.d.ts +1 -0
- package/types/utils/contextHolder.d.ts +1 -0
- package/types/utils/copy.d.ts +1 -0
- package/types/utils/fileToURL.d.ts +1 -0
- package/types/utils/fillNBSP.d.ts +1 -0
- package/types/utils/getHighlightText.d.ts +1 -0
- package/types/utils/getHotkeyHandler.d.ts +1 -0
- package/types/utils/getStringLength.d.ts +1 -0
- package/types/utils/include.d.ts +1 -0
- package/types/utils/index.d.ts +29 -25
- package/types/utils/is.d.ts +1 -1
- package/types/utils/keyboardCode.d.ts +1 -0
- package/types/utils/math.d.ts +1 -0
- package/types/utils/mergeProps.d.ts +1 -0
- package/types/utils/mergedToString.d.ts +1 -0
- package/types/utils/names.d.ts +497 -81
- package/types/utils/omit.d.ts +1 -0
- package/types/utils/pick.d.ts +1 -1
- package/types/utils/reactTransitionGroup.d.ts +1 -0
- package/types/utils/responsiveObserve.d.ts +1 -0
- package/types/utils/saveAs.d.ts +1 -0
- package/types/utils/screenfull.d.ts +1 -0
- package/types/utils/scrollIntoView.d.ts +1 -0
- package/types/utils/tinycolor.d.ts +1 -0
- package/types/utils/tree.d.ts +1 -0
- package/types/utils/tween.d.ts +1 -0
- package/types/utils/uuid.d.ts +1 -0
- package/types/utils/validate.d.ts +1 -0
- package/types/version/index.d.ts +1 -1
- package/typography/Base.js +7 -6
- package/typography/EditContent.js +1 -1
- package/typography/Ellipsis.js +28 -28
- package/typography/Paragraph.js +6 -6
- package/typography/Typography.js +5 -5
- package/typography/index.js +28 -28
- package/upload/TriggerNode.js +2 -2
- package/upload/Upload.js +62 -60
- package/upload/Uploader.js +21 -21
- package/upload/request_.js +4 -3
- package/utils/PqbCSSTransition.js +5 -0
- package/utils/caseName.js +3 -2
- package/utils/className.js +3 -2
- package/utils/color.js +4 -0
- package/utils/computeScrollIntoView.js +128 -0
- package/utils/contextHolder.js +3 -2
- package/utils/copy.js +4 -2
- package/utils/fileToURL.js +3 -2
- package/utils/fillNBSP.js +2 -1
- package/utils/getHighlightText.js +2 -1
- package/utils/getHotkeyHandler.js +2 -1
- package/utils/getStringLength.js +2 -1
- package/utils/include.js +2 -1
- package/utils/index.js +299 -256
- package/utils/is.js +104 -101
- package/utils/keyboardCode.js +2 -1
- package/utils/math.js +35 -0
- package/utils/mergeProps.js +2 -1
- package/utils/mergedToString.js +2 -1
- package/utils/names.js +332 -81
- package/utils/omit.js +2 -1
- package/utils/pick.js +1 -0
- package/utils/react19Adapter.js +1 -1
- package/utils/reactDOM.js +1 -1
- package/utils/reactTransitionGroup.js +10 -0
- package/utils/responsiveObserve.js +2 -1
- package/utils/saveAs.js +3 -2
- package/utils/screenfull.js +2 -1
- package/utils/scrollIntoView.js +4 -2
- package/utils/tinycolor.js +30 -0
- package/utils/tree.js +87 -0
- package/utils/tween.js +6 -0
- package/utils/uuid.js +5 -0
- package/utils/validate.js +7 -0
- package/verification-code/VerificationCode.js +7 -7
- package/version/index.js +3 -3
- package/virtual-list/VirtualList.js +1 -1
- package/watermark/Watermark.js +6 -6
- package/chunk/B4JiMp8I.js +0 -764
- package/chunk/B6X4lnd0.js +0 -116
- package/chunk/BibHFOCF.js +0 -34
- package/chunk/CTxjmYmx.js +0 -19
- package/chunk/CVYWxu00.js +0 -155
- package/chunk/CbLaCJmG.js +0 -26
- package/chunk/D-TPB2Do.js +0 -56
- package/chunk/DVfOiRp-.js +0 -629
- package/chunk/DxxOUMSa.js +0 -98
- package/chunk/JPPo5nY_.js +0 -9
- package/types/utils/CSSTransition.d.ts +0 -2
- package/utils/CSSTransition.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as y } from "react/jsx-runtime";
|
|
2
2
|
import w from "@unicom-cloud/icons/IconUiCheck";
|
|
3
3
|
import W from "@unicom-cloud/icons/IconUiExclamation";
|
|
4
4
|
import I from "lodash/isFunction";
|
|
@@ -6,7 +6,7 @@ import T from "lodash/isPlainObject";
|
|
|
6
6
|
import { useCallback as b } from "react";
|
|
7
7
|
import { u as j } from "../chunk/B4YRLi8r.js";
|
|
8
8
|
import S from "../tooltip/index.js";
|
|
9
|
-
import {
|
|
9
|
+
import { p as C } from "../chunk/CUFsOxJ2.js";
|
|
10
10
|
const G = {
|
|
11
11
|
mini: 4,
|
|
12
12
|
small: 3,
|
|
@@ -40,8 +40,8 @@ const G = {
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
[c, o]
|
|
43
|
-
), v = j(`${h}-linear-gradient-`),
|
|
44
|
-
let d = /* @__PURE__ */
|
|
43
|
+
), v = j(`${h}-linear-gradient-`), p = $ ? `url(#${v})` : t.color;
|
|
44
|
+
let d = /* @__PURE__ */ y(
|
|
45
45
|
"div",
|
|
46
46
|
{
|
|
47
47
|
className: `${i}-wrapper`,
|
|
@@ -51,7 +51,7 @@ const G = {
|
|
|
51
51
|
"aria-valuenow": o,
|
|
52
52
|
style: { width: r, height: r },
|
|
53
53
|
children: [
|
|
54
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ y("svg", { viewBox: `0 0 ${r} ${r}`, className: `${N}`, children: [
|
|
55
55
|
$ && /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("linearGradient", { id: v, x1: "0", y1: "1", x2: "0", y2: "0", children: Object.keys(t.color).sort().map((a) => /* @__PURE__ */ e("stop", { offset: a, stopColor: t.color[a] }, a)) }) }),
|
|
56
56
|
/* @__PURE__ */ e(
|
|
57
57
|
"circle",
|
|
@@ -77,7 +77,7 @@ const G = {
|
|
|
77
77
|
r: m,
|
|
78
78
|
strokeWidth: n,
|
|
79
79
|
style: {
|
|
80
|
-
stroke:
|
|
80
|
+
stroke: p,
|
|
81
81
|
strokeDasharray: k,
|
|
82
82
|
strokeDashoffset: (o > 100 ? 100 : 1 - o / 100) * k
|
|
83
83
|
}
|
|
@@ -96,7 +96,7 @@ const G = {
|
|
|
96
96
|
]
|
|
97
97
|
}
|
|
98
98
|
);
|
|
99
|
-
return s === "mini" && x === "success" && t.type === "circle" && (d = /* @__PURE__ */ e("div", { className: `${i}-wrapper`, style: { width: r, height: r }, children: /* @__PURE__ */ e(w, { style: { fontSize: r - 2, color:
|
|
99
|
+
return s === "mini" && x === "success" && t.type === "circle" && (d = /* @__PURE__ */ e("div", { className: `${i}-wrapper`, style: { width: r, height: r }, children: /* @__PURE__ */ e(w, { style: { fontSize: r - 2, color: p } }) })), s === "mini" && f ? /* @__PURE__ */ e(
|
|
100
100
|
S,
|
|
101
101
|
{
|
|
102
102
|
content: /* @__PURE__ */ e(
|
package/progress/LineProgess.js
CHANGED
|
@@ -3,7 +3,7 @@ import C from "@unicom-cloud/icons/IconUiExclamationCircleFill";
|
|
|
3
3
|
import j from "lodash/isFunction";
|
|
4
4
|
import N from "lodash/isPlainObject";
|
|
5
5
|
import { useCallback as y } from "react";
|
|
6
|
-
import {
|
|
6
|
+
import { p as u } from "../chunk/CUFsOxJ2.js";
|
|
7
7
|
const m = (t, a) => {
|
|
8
8
|
if (N(t)) {
|
|
9
9
|
const s = Object.keys(t).map((e) => `${t[e]} ${e}`).join(","), o = a ? { backgroundSize: `${100 * 100 / a}%` } : {};
|
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
|
-
import "../chunk/
|
|
8
|
-
import "../chunk/
|
|
7
|
+
import "../chunk/DeV0v__J.js";
|
|
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
|
-
import "../chunk/
|
|
8
|
-
import "../chunk/
|
|
7
|
+
import "../chunk/DeV0v__J.js";
|
|
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
|
@@ -3,12 +3,12 @@ import Z from "@unicom-cloud/icons/IconUiFaceFrownFill";
|
|
|
3
3
|
import E from "@unicom-cloud/icons/IconUiFaceMehFill";
|
|
4
4
|
import x from "@unicom-cloud/icons/IconUiFaceSmileFill";
|
|
5
5
|
import tt from "@unicom-cloud/icons/IconUiStarFill";
|
|
6
|
-
import {
|
|
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, {}),
|
|
@@ -35,41 +35,41 @@ function nt(S, _) {
|
|
|
35
35
|
onChange: c,
|
|
36
36
|
onHoverChange: l,
|
|
37
37
|
...q
|
|
38
|
-
} = F, [B, M] = y(T || N || 0), [d, b] = y(0), [h, w] = y(),
|
|
39
|
-
|
|
38
|
+
} = F, [B, M] = y(T || N || 0), [d, b] = y(0), [h, w] = y(), r = j("rate"), G = U(
|
|
39
|
+
r,
|
|
40
40
|
{
|
|
41
|
-
[`${
|
|
42
|
-
[`${
|
|
43
|
-
[`${
|
|
41
|
+
[`${r}-readonly`]: p,
|
|
42
|
+
[`${r}-disabled`]: u,
|
|
43
|
+
[`${r}-rtl`]: z
|
|
44
44
|
},
|
|
45
45
|
L
|
|
46
46
|
), n = "value" in F ? N : B, R = () => {
|
|
47
47
|
d && (b(0), l == null || l(0));
|
|
48
48
|
}, V = (t, s) => {
|
|
49
|
-
const
|
|
50
|
-
|
|
49
|
+
const e = s && a ? t + 0.5 : t + 1;
|
|
50
|
+
e !== d && (b(e), l == null || l(e));
|
|
51
51
|
}, A = (t, s) => {
|
|
52
|
-
const
|
|
53
|
-
w(!0),
|
|
52
|
+
const e = s && a ? t + 0.5 : t + 1;
|
|
53
|
+
w(!0), e !== n ? (M(e), c == null || c(e)) : W && (M(0), c == null || c(0), R());
|
|
54
54
|
}, H = (t) => {
|
|
55
|
-
const s = a ?
|
|
55
|
+
const s = a ? et(+rt(n || 0, 0.5).toFixed(0), 0.5) : Math.round(n), e = d || s;
|
|
56
56
|
let i = typeof f == "function" ? f(t) : f;
|
|
57
|
-
C && (
|
|
58
|
-
const J = U(`${
|
|
59
|
-
[`${
|
|
60
|
-
[`${
|
|
61
|
-
[`${
|
|
57
|
+
C && (e <= 2 ? i = /* @__PURE__ */ o(Z, {}) : e <= 3 ? i = /* @__PURE__ */ o(E, {}) : i = /* @__PURE__ */ o(x, {}), e <= t && (i = /* @__PURE__ */ o(E, {})));
|
|
58
|
+
const J = U(`${r}-character`, {
|
|
59
|
+
[`${r}-character-half`]: a && t + 0.5 === e,
|
|
60
|
+
[`${r}-character-full`]: t + 1 <= e,
|
|
61
|
+
[`${r}-character-scale`]: h && t + 1 < n
|
|
62
62
|
}), K = p || u ? {} : {
|
|
63
63
|
onMouseEnter: V.bind(this, t, !0),
|
|
64
64
|
onClick: A.bind(this, t, !0)
|
|
65
65
|
}, O = p || u ? {} : {
|
|
66
66
|
onMouseEnter: V.bind(this, t, !1),
|
|
67
67
|
onClick: A.bind(this, t, !1)
|
|
68
|
-
},
|
|
69
|
-
function
|
|
68
|
+
}, v = P && P[t], Q = v ? ct : g.Fragment, X = v ? { content: v } : {};
|
|
69
|
+
function $(k) {
|
|
70
70
|
return {
|
|
71
71
|
role: "radio",
|
|
72
|
-
"aria-checked": t + (k ? 0.5 : 1) <=
|
|
72
|
+
"aria-checked": t + (k ? 0.5 : 1) <= e,
|
|
73
73
|
"aria-setsize": I,
|
|
74
74
|
"aria-posinset": t + (k ? 0.5 : 1)
|
|
75
75
|
};
|
|
@@ -82,23 +82,23 @@ function nt(S, _) {
|
|
|
82
82
|
onAnimationEnd: () => {
|
|
83
83
|
h && t + 1 >= n - 1 && w(!1);
|
|
84
84
|
},
|
|
85
|
-
...a ? {} :
|
|
85
|
+
...a ? {} : $(),
|
|
86
86
|
children: [
|
|
87
87
|
/* @__PURE__ */ o(
|
|
88
88
|
"div",
|
|
89
89
|
{
|
|
90
|
-
className: `${
|
|
90
|
+
className: `${r}-character-left`,
|
|
91
91
|
...K,
|
|
92
|
-
...a ?
|
|
92
|
+
...a ? $(!0) : {},
|
|
93
93
|
children: i
|
|
94
94
|
}
|
|
95
95
|
),
|
|
96
96
|
/* @__PURE__ */ o(
|
|
97
97
|
"div",
|
|
98
98
|
{
|
|
99
|
-
className: `${
|
|
99
|
+
className: `${r}-character-right`,
|
|
100
100
|
...O,
|
|
101
|
-
...a ?
|
|
101
|
+
...a ? $() : {},
|
|
102
102
|
children: i
|
|
103
103
|
}
|
|
104
104
|
)
|
|
@@ -114,7 +114,7 @@ function nt(S, _) {
|
|
|
114
114
|
style: D,
|
|
115
115
|
className: G,
|
|
116
116
|
onMouseLeave: R,
|
|
117
|
-
children: /* @__PURE__ */ o("div", { className: `${
|
|
117
|
+
children: /* @__PURE__ */ o("div", { className: `${r}-inner`, children: Array.apply(null, Array(C ? 5 : I)).map(
|
|
118
118
|
(t, s) => H(s)
|
|
119
119
|
) })
|
|
120
120
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r, jsxs as O } from "react/jsx-runtime";
|
|
2
2
|
import F from "@unicom-cloud/icons/IconUiCaretDown";
|
|
3
3
|
import N from "@unicom-cloud/icons/IconUiCaretLeft";
|
|
4
4
|
import h from "@unicom-cloud/icons/IconUiCaretRight";
|
|
@@ -7,13 +7,14 @@ 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 {
|
|
12
|
-
import "../chunk/
|
|
10
|
+
import { a as B } from "../chunk/Crs3isAx.js";
|
|
11
|
+
import { p as o } from "../chunk/CUFsOxJ2.js";
|
|
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";
|
|
15
|
+
import "../chunk/C0pRaDCf.js";
|
|
15
16
|
import z from "lodash/isPlainObject.js";
|
|
16
|
-
function
|
|
17
|
+
function ar(I) {
|
|
17
18
|
const {
|
|
18
19
|
className: D,
|
|
19
20
|
direction: U,
|
|
@@ -25,54 +26,54 @@ function ce(I) {
|
|
|
25
26
|
resizable: l = !0,
|
|
26
27
|
renderChildren: c,
|
|
27
28
|
...T
|
|
28
|
-
} = I, { getPrefixCls: k, rtl: C } = V(B),
|
|
29
|
-
|
|
30
|
-
`${
|
|
31
|
-
{ [`${
|
|
32
|
-
{ [`${
|
|
29
|
+
} = I, { getPrefixCls: k, rtl: C } = V(B), e = k("resizebox-trigger"), t = U === "horizontal", y = C && !t, x = o(
|
|
30
|
+
e,
|
|
31
|
+
`${e}-${t ? "horizontal" : "vertical"}`,
|
|
32
|
+
{ [`${e}-not-resizable`]: !l },
|
|
33
|
+
{ [`${e}-rtl`]: C },
|
|
33
34
|
D
|
|
34
|
-
),
|
|
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) ? {
|
|
35
36
|
...n.prev,
|
|
36
|
-
icon: n.prev.icon || (t ? /* @__PURE__ */
|
|
37
|
+
icon: n.prev.icon || (t ? /* @__PURE__ */ r(H, {}) : v[0])
|
|
37
38
|
} : {}, s = z(n.next) ? {
|
|
38
39
|
...n.next,
|
|
39
|
-
icon: n.next.icon || (t ? /* @__PURE__ */
|
|
40
|
-
} : {}, j = () => i.icon && !i.collapsed || s.collapsed ? /* @__PURE__ */
|
|
40
|
+
icon: n.next.icon || (t ? /* @__PURE__ */ r(F, {}) : v[1])
|
|
41
|
+
} : {}, j = () => i.icon && !i.collapsed || s.collapsed ? /* @__PURE__ */ r(
|
|
41
42
|
"span",
|
|
42
43
|
{
|
|
43
|
-
className: o(`${
|
|
44
|
+
className: o(`${e}-icon`, o(`${e}-prev`)),
|
|
44
45
|
onClick: i.onClick,
|
|
45
46
|
children: i.icon
|
|
46
47
|
}
|
|
47
|
-
) : /* @__PURE__ */
|
|
48
|
+
) : /* @__PURE__ */ r("span", { className: o(`${e}-icon-empty`) }), w = () => s.icon && !s.collapsed || i.collapsed ? /* @__PURE__ */ r(
|
|
48
49
|
"span",
|
|
49
50
|
{
|
|
50
|
-
className: o(`${
|
|
51
|
+
className: o(`${e}-icon`, o(`${e}-next`)),
|
|
51
52
|
onClick: s.onClick,
|
|
52
53
|
children: s.icon
|
|
53
54
|
}
|
|
54
|
-
) : /* @__PURE__ */
|
|
55
|
-
|
|
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,
|
|
56
57
|
f,
|
|
57
58
|
d
|
|
58
59
|
] });
|
|
59
60
|
return l ? (A(() => {
|
|
60
61
|
if (!g(a)) return;
|
|
61
|
-
const E = J([
|
|
62
|
+
const E = J([p.current], a);
|
|
62
63
|
return () => {
|
|
63
64
|
E();
|
|
64
65
|
};
|
|
65
|
-
}, [
|
|
66
|
+
}, [p.current, a]), /* @__PURE__ */ r(
|
|
66
67
|
"div",
|
|
67
68
|
{
|
|
68
|
-
ref:
|
|
69
|
+
ref: p,
|
|
69
70
|
...G(T, ["style"]),
|
|
70
71
|
className: x,
|
|
71
72
|
onMouseDown: R,
|
|
72
|
-
children: g(c) ? c(
|
|
73
|
+
children: g(c) ? c(m, f, d) : u || $()
|
|
73
74
|
}
|
|
74
|
-
)) : /* @__PURE__ */
|
|
75
|
+
)) : /* @__PURE__ */ r("div", { className: x, children: g(c) ? c(m, f, d) : u || $() });
|
|
75
76
|
}
|
|
76
77
|
export {
|
|
77
|
-
|
|
78
|
+
ar as default
|
|
78
79
|
};
|
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
|
-
import { u as W } from "../chunk/
|
|
7
|
-
import {
|
|
6
|
+
import { u as W } from "../chunk/DeV0v__J.js";
|
|
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,16 +2,16 @@ 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
|
-
import { u as Re } from "../chunk/
|
|
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
|
-
import "../chunk/
|
|
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";
|
|
16
16
|
import { o as Et } from "../chunk/BKKEev13.js";
|
|
17
17
|
import { r as Ft } from "../chunk/CIRG541s.js";
|
|
@@ -20,6 +20,7 @@ import Nt from "../virtual-list/VirtualList.js";
|
|
|
20
20
|
import Lt from "./OptGroup.js";
|
|
21
21
|
import Tt from "./Option.js";
|
|
22
22
|
import { getValidValue as Ge, flatChildren as Ut, isEmpty as de, preventDefaultEvent as Pt, isSelectOptGroup as Dt, isSelectOption as Rt } from "./util.js";
|
|
23
|
+
import "../chunk/C0pRaDCf.js";
|
|
23
24
|
import v from "lodash/isPlainObject.js";
|
|
24
25
|
const je = "userCreatingOption", Ht = {
|
|
25
26
|
trigger: "click",
|