@unicom-cloud/ui 0.8.71 → 0.8.73
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 +2 -2
- package/AutoComplete.js +2 -2
- package/BackTop.js +2 -2
- package/Badge.js +2 -2
- package/Breadcrumb.js +3 -3
- package/Button.js +1 -1
- package/Calendar.js +1 -1
- package/Card.js +1 -1
- package/Carousel.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +1 -1
- package/Comment.js +1 -1
- package/ConfigProvider.js +1 -1
- package/Copy.js +1 -1
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Dropdown.js +4 -4
- package/Empty.js +1 -1
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/InputNumber.js +1 -1
- package/Layout.js +1 -1
- package/Link.js +1 -1
- package/List.js +2 -2
- package/Mentions.js +2 -2
- package/Menu.js +1 -1
- package/Message.js +6 -5
- package/Modal.js +1 -1
- package/Notice.js +4 -4
- package/Notification.js +7 -6
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Popconfirm.js +2 -2
- package/Popover.js +2 -2
- package/Progress.js +1 -1
- package/Radio.js +1 -1
- package/Rate.js +2 -2
- package/ResizeBox.js +2 -2
- package/Result.js +1 -1
- package/SelectView.js +4 -3
- package/Skeleton.js +1 -1
- package/Slider.js +3 -3
- package/Space.js +1 -1
- package/SpeechSynthesis.js +20 -20
- package/Spin.js +2 -2
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/Switch.js +7 -5
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/Tooltip.js +3 -3
- package/Transfer.js +2 -2
- package/Tree.js +1 -1
- package/Trigger.js +8 -7
- package/affix/index.js +2 -2
- package/alert/index.js +2 -2
- package/anchor/Anchor.js +53 -50
- package/anchor/Link.js +1 -1
- package/anchor/util.js +1 -1
- package/auto-complete/index.js +2 -2
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/back-top/index.js +2 -2
- package/badge/Count.js +1 -1
- package/badge/index.js +50 -48
- package/breadcrumb/index.js +3 -3
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +2 -2
- package/card/Grid.js +1 -1
- package/card/Meta.js +1 -1
- package/card/index.js +1 -1
- package/carousel/Arrow.js +1 -1
- package/carousel/Indicator.js +1 -1
- package/carousel/index.js +1 -1
- package/cascader/Cascader.js +4 -4
- 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/{C5X9bDyX.js → 7HDzVe32.js} +7 -7
- package/chunk/{BlElSWJg.js → B0UZ1Ee2.js} +3 -3
- package/chunk/{b1e8awfs.js → B0n0iRhF.js} +1 -1
- package/chunk/{BzPNDYAX.js → B7hulkj9.js} +2 -2
- package/chunk/Bj4EV0eG.js +27 -0
- package/chunk/{Bfq4YEcr.js → Bmvhjhzq.js} +9 -8
- package/chunk/Byd0ztYY.js +724 -0
- package/chunk/{URXCKjXr.js → C0pRaDCf.js} +23 -23
- package/chunk/{B4JiMp8I.js → CCVU-Kst.js} +8 -2
- package/chunk/{ClaNycDy.js → Cc_-i0o_.js} +2 -2
- package/chunk/CiY7w1ZO.js +647 -0
- package/chunk/{fFjj2KuF.js → Cj2SQJiO.js} +392 -414
- package/chunk/Coz3rCng.js +33 -0
- package/chunk/{BHL-PzAD.js → CplLA01W.js} +17 -17
- package/chunk/{8V534cS3.js → D2LLXZQX.js} +5 -7
- package/chunk/DAAff-FT.js +59 -0
- package/chunk/{CQTxhsUk.js → DJDOFlqC.js} +2 -2
- package/chunk/DU1RCDfh.js +29 -0
- package/chunk/{CdaT1b_F.js → DeV0v__J.js} +2 -2
- package/chunk/{I1dqAgn_.js → DejjIa3N.js} +176 -173
- package/chunk/{C6AJxF7d.js → Dg0M2OmF.js} +125 -125
- package/chunk/{DV7ywe_q.js → RS6OAxzv.js} +2 -2
- package/chunk/{CUs1AOCZ.js → UDX9U6M7.js} +3 -3
- package/chunk/{Biupwn8l.js → ZrBrCzQX.js} +6 -5
- package/chunk/{pEI3aB9Z.js → oHDWCJnz.js} +3 -3
- package/chunk/{D2DSUGNT.js → uH6uxyao.js} +1 -1
- package/chunk/{D090jlwP.js → xAb6ZgqS.js} +1 -1
- package/collapse/Collapse.js +3 -3
- package/collapse/Item.js +3 -3
- package/collapse/index.js +1 -1
- package/color-picker/ControlBar.js +1 -1
- 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 +16 -16
- package/color-picker/colors.js +4 -4
- package/color-picker/index.js +3 -3
- package/color-picker/utils.js +1 -1
- package/comment/index.js +1 -1
- 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 +1 -1
- package/date-picker/Picker.js +1 -1
- package/date-picker/PickerRange.js +2 -2
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +2 -2
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +121 -111
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +4 -4
- package/empty/index.js +1 -1
- package/form/Form.js +2 -2
- package/form/FormItem.js +2 -2
- package/form/promisify.js +9 -8
- package/form/store.js +1 -1
- package/form/util.js +1 -1
- package/grid/Col.js +1 -1
- package/grid/Row.js +2 -2
- package/grid/grid-item.js +2 -2
- package/grid/grid.js +2 -2
- 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 +1 -1
- package/icon-hover/index.js +1 -1
- package/image/Image.js +4 -4
- package/image/ImagePreview.js +8 -8
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +2 -2
- package/image/index.js +1 -1
- package/index.js +591 -571
- package/input/Group.js +1 -1
- package/input/Input.js +47 -46
- package/input/InputElement.js +3 -3
- package/input/Password.js +2 -2
- package/input/Search.js +2 -2
- package/input/Textarea.js +6 -5
- package/input-number/index.js +1 -1
- package/input-tag/InputTag.js +52 -50
- package/layout/Content.js +1 -1
- package/layout/Footer.js +1 -1
- package/layout/Header.js +1 -1
- package/layout/Sider.js +3 -3
- package/layout/index.js +1 -1
- package/link/index.js +1 -1
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +2 -2
- package/locale/en-US.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/mentions/index.js +2 -2
- package/menu/Item.js +1 -1
- package/menu/Menu.js +3 -3
- package/menu/OverflowWrap.js +1 -1
- package/menu/index.js +2 -2
- package/message/index.js +6 -5
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +8 -7
- package/modal/index.js +1 -1
- package/notice/index.js +4 -4
- package/notification/index.js +7 -6
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +1 -1
- package/overflow-ellipsis/index.js +1 -1
- package/package.json +1 -1
- package/page-header/index.js +1 -1
- package/pagination/PageItem.js +1 -1
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +1 -1
- package/pagination/Pagination.js +2 -2
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/popconfirm/index.js +2 -2
- package/popover/index.js +2 -2
- package/progress/index.js +1 -1
- package/radio/Group.js +3 -3
- package/radio/Radio.js +3 -3
- package/radio/index.js +2 -2
- package/rate/index.js +26 -26
- package/resize-box/ResizeTrigger.js +21 -20
- package/resize-box/Split.js +1 -1
- package/resize-box/SplitGroup.js +1 -1
- package/resize-box/index.js +2 -2
- package/result/index.js +1 -1
- package/select/Option.js +1 -1
- package/select/Select.js +5 -4
- package/select/util.js +12 -12
- package/select-view/Core.js +3 -3
- package/select-view/index.js +2 -1
- package/skeleton/index.js +1 -1
- package/slider/Button.js +2 -2
- package/slider/Tick.js +1 -1
- package/slider/index.js +19 -19
- package/slider/util.js +8 -8
- package/space/index.js +1 -1
- package/speech-synthesis/index.js +20 -20
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +2 -2
- package/statistic/Countdown.js +1 -1
- package/statistic/index.js +1 -1
- package/steps/index.js +1 -1
- package/style/variables.less +1 -1
- package/style.css +1 -1
- package/switch/index.js +16 -14
- package/table/Table.js +2 -2
- package/table/index.js +3 -3
- package/tabs/Tab.js +3 -3
- package/tabs/TabContent.js +2 -2
- package/tabs/TabPane.js +1 -1
- package/tabs/index.js +2 -2
- package/tag/index.js +1 -1
- package/time-picker/Picker.js +1 -1
- package/time-picker/TimePicker.js +1 -1
- package/timeline/Item.js +1 -1
- package/timeline/Timeline.js +1 -1
- package/tooltip/index.js +3 -3
- package/transfer/Item.js +2 -2
- package/transfer/List.js +2 -2
- package/transfer/index.js +2 -2
- package/tree/Animation.js +3 -3
- package/tree/Node.js +3 -3
- package/tree/NodeList.js +2 -2
- package/tree/Tree.js +3 -3
- package/tree/index.js +1 -1
- package/tree-select/Select.js +25 -25
- package/trigger/getPopupStyle.js +2 -2
- package/trigger/index.js +7 -6
- 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 +6 -5
- package/typography/Ellipsis.js +30 -29
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/index.js +28 -27
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +60 -58
- 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/{chunk/B6X4lnd0.js → utils/color.js} +55 -53
- 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 +302 -249
- 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 +1 -1
- package/version/index.js +3 -3
- package/virtual-list/VirtualList.js +1 -1
- package/watermark/Watermark.js +1 -1
- package/chunk/BibHFOCF.js +0 -34
- package/chunk/CVYWxu00.js +0 -155
- package/chunk/CZWGeRVA.js +0 -715
- package/chunk/CbLaCJmG.js +0 -26
- package/chunk/D-TPB2Do.js +0 -56
- package/chunk/Dm1NCTkX.js +0 -629
- package/chunk/EHx6bIK_.js +0 -98
- package/types/utils/CSSTransition.d.ts +0 -2
- package/utils/CSSTransition.js +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import f, { useCallback as s, isValidElement as u, cloneElement as c } from "react";
|
|
2
|
-
import { s as l } from "./
|
|
3
|
-
import { c as a } from "./
|
|
2
|
+
import { s as l } from "./DAAff-FT.js";
|
|
3
|
+
import { c as a } from "./Cc_-i0o_.js";
|
|
4
4
|
function R() {
|
|
5
5
|
const r = f.useRef(null);
|
|
6
6
|
return [s((e) => u(e) && l(e) ? c(e, {
|
|
@@ -3,12 +3,12 @@ import Ke from "@unicom-cloud/icons/IconUiMenuFold";
|
|
|
3
3
|
import _e from "@unicom-cloud/icons/IconUiMenuUnfold";
|
|
4
4
|
import Re from "lodash/isPlainObject";
|
|
5
5
|
import F, { useContext as T, useState as fe, forwardRef as he, useEffect as te, useRef as ne, useMemo as Te } from "react";
|
|
6
|
-
import { a as ge } from "./
|
|
6
|
+
import { a as ge } from "./Byd0ztYY.js";
|
|
7
7
|
import { u as Ae } from "./CQ_WOOmf.js";
|
|
8
8
|
import { u as oe } from "./B4YRLi8r.js";
|
|
9
9
|
import { u as Ue } from "./XTEsYGuF.js";
|
|
10
10
|
import { u as Le } from "./BFTV6myl.js";
|
|
11
|
-
import { u as Z } from "./
|
|
11
|
+
import { u as Z } from "./DeV0v__J.js";
|
|
12
12
|
import { SiderContext as ze } from "../layout/Sider.js";
|
|
13
13
|
import { m as U } from "./JPPo5nY_.js";
|
|
14
14
|
import { o as Y } from "./BKKEev13.js";
|
|
@@ -21,7 +21,7 @@ import Me from "@unicom-cloud/icons/IconUiDown";
|
|
|
21
21
|
import { u as We } from "./Duezix3m.js";
|
|
22
22
|
import ye from "../menu/Indent.js";
|
|
23
23
|
import { isChildrenSelected as be, processChildren as we, PROPS_NEED_TO_BE_PASSED_IN_SUBMENU as Fe, generateInfoMap as je } from "../menu/util.js";
|
|
24
|
-
import { P as qe } from "./
|
|
24
|
+
import { P as qe } from "./Bj4EV0eG.js";
|
|
25
25
|
import { e as ve, y as Ge, n as Qe } from "./BrOW642m.js";
|
|
26
26
|
import { p as Ye } from "./ClqoGc3r.js";
|
|
27
27
|
import Je from "@unicom-cloud/icons/IconUiLeft";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { useRef as
|
|
2
|
-
import { isServerRendering as
|
|
3
|
-
import "./
|
|
1
|
+
import { useRef as i } from "react";
|
|
2
|
+
import { isServerRendering as c } from "../utils/dom.js";
|
|
3
|
+
import "./DAAff-FT.js";
|
|
4
|
+
import "./C0pRaDCf.js";
|
|
4
5
|
import u from "lodash/isUndefined.js";
|
|
5
|
-
const v = !
|
|
6
|
+
const v = !c && !u(window == null ? void 0 : window.IntersectionObserver);
|
|
6
7
|
function O(t, s = {}) {
|
|
7
|
-
const r =
|
|
8
|
+
const r = i(), e = () => {
|
|
8
9
|
r.current && (r.current.disconnect(), r.current = null);
|
|
9
10
|
}, o = (n) => {
|
|
10
11
|
n && (e(), v && (r.current = new IntersectionObserver(
|
|
@@ -2,10 +2,10 @@ import { jsx as u, jsxs as ee } from "react/jsx-runtime";
|
|
|
2
2
|
import fe from "lodash/isFunction";
|
|
3
3
|
import ke from "lodash/isPlainObject";
|
|
4
4
|
import te, { useContext as ie, useRef as V, useState as we, useEffect as L, useMemo as ae, useCallback as at, useImperativeHandle as ct } from "react";
|
|
5
|
-
import { a as Oe, I as me } from "./
|
|
5
|
+
import { a as Oe, I as me } from "./Byd0ztYY.js";
|
|
6
6
|
import { u as st } from "./B4YRLi8r.js";
|
|
7
7
|
import { u as lt } from "./BFTV6myl.js";
|
|
8
|
-
import { u as dt } from "./
|
|
8
|
+
import { u as dt } from "./DeV0v__J.js";
|
|
9
9
|
import { m as X } from "./JPPo5nY_.js";
|
|
10
10
|
import { o as ye } from "./BKKEev13.js";
|
|
11
11
|
import ft from "../tabs/TabPane.js";
|
|
@@ -19,7 +19,7 @@ import { setTransformStyle as pt } from "../utils/style.js";
|
|
|
19
19
|
import Ye from "@unicom-cloud/icons/IconUiDown";
|
|
20
20
|
import je from "lodash/isNull";
|
|
21
21
|
import bt from "../dropdown/index.js";
|
|
22
|
-
import { M as Ae } from "./
|
|
22
|
+
import { M as Ae } from "./UDX9U6M7.js";
|
|
23
23
|
import gt from "lodash/isEqualWith";
|
|
24
24
|
import vt from "../utils/throttleByRaf.js";
|
|
25
25
|
import Me from "@unicom-cloud/icons/IconUiLeft";
|
|
@@ -6,7 +6,7 @@ import G from "lodash/isArray";
|
|
|
6
6
|
import Ge from "lodash/isPlainObject";
|
|
7
7
|
import Fn from "lodash/isUndefined";
|
|
8
8
|
import _n, { useContext as ce, useMemo as un, forwardRef as Wn, useRef as Ve, useImperativeHandle as Bn, useState as ie, useEffect as Ke } from "react";
|
|
9
|
-
import { a as Re } from "./
|
|
9
|
+
import { a as Re } from "./Byd0ztYY.js";
|
|
10
10
|
import { u as zn } from "./BFTV6myl.js";
|
|
11
11
|
import { u as Xt } from "./VSe_Wq1g.js";
|
|
12
12
|
import { u as Zt } from "./a3hR6zLw.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import x from "lodash/isPlainObject";
|
|
2
2
|
import { useRef as b, useState as l, useEffect as R, useMemo as S } from "react";
|
|
3
|
-
import c,
|
|
3
|
+
import { responsiveObserve as c, responsiveArray as f } from "../utils/responsiveObserve.js";
|
|
4
4
|
function m(e) {
|
|
5
5
|
return x(e);
|
|
6
6
|
}
|
package/collapse/Collapse.js
CHANGED
|
@@ -3,12 +3,12 @@ import "@unicom-cloud/icons/IconUiCaretLeft";
|
|
|
3
3
|
import "@unicom-cloud/icons/IconUiCaretRight";
|
|
4
4
|
import "lodash/isFunction";
|
|
5
5
|
import "react";
|
|
6
|
-
import "../chunk/
|
|
6
|
+
import "../chunk/Byd0ztYY.js";
|
|
7
7
|
import "../chunk/BFTV6myl.js";
|
|
8
|
-
import "../chunk/
|
|
8
|
+
import "../chunk/DeV0v__J.js";
|
|
9
9
|
import "../chunk/JPPo5nY_.js";
|
|
10
10
|
import "../chunk/BKKEev13.js";
|
|
11
|
-
import { a as x, C as d } from "../chunk/
|
|
11
|
+
import { a as x, C as d } from "../chunk/B0UZ1Ee2.js";
|
|
12
12
|
export {
|
|
13
13
|
x as CollapseContext,
|
|
14
14
|
d as default
|
package/collapse/Item.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../chunk/
|
|
2
|
+
import "../chunk/Cj2SQJiO.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../chunk/
|
|
4
|
+
import "../chunk/Byd0ztYY.js";
|
|
5
5
|
import "../chunk/XTEsYGuF.js";
|
|
6
6
|
import "../chunk/JPPo5nY_.js";
|
|
7
7
|
import "../utils/dom.js";
|
|
8
|
-
import { I as d } from "../chunk/
|
|
8
|
+
import { I as d } from "../chunk/B0UZ1Ee2.js";
|
|
9
9
|
export {
|
|
10
10
|
d as default
|
|
11
11
|
};
|
package/collapse/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { useContext as b } from "react";
|
|
3
|
-
import { a as l } from "../chunk/
|
|
3
|
+
import { a as l } from "../chunk/Byd0ztYY.js";
|
|
4
4
|
import { m as B } from "../chunk/JPPo5nY_.js";
|
|
5
5
|
import { u as R } from "../chunk/k-OUstoD.js";
|
|
6
6
|
const P = ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { useContext as i } from "react";
|
|
3
|
-
import { a as p } from "../chunk/
|
|
3
|
+
import { a as p } from "../chunk/Byd0ztYY.js";
|
|
4
4
|
import { InputNumber as s } from "../input/Input.js";
|
|
5
5
|
const l = ({ value: o, onChange: t }) => {
|
|
6
6
|
const { getPrefixCls: n } = i(p), r = n("color-picker");
|
package/color-picker/InputHex.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as v, jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { a as c } from "../chunk/CCVU-Kst.js";
|
|
3
3
|
import { useContext as I, useState as j, useEffect as D } from "react";
|
|
4
|
-
import { a as E } from "../chunk/
|
|
4
|
+
import { a as E } from "../chunk/Byd0ztYY.js";
|
|
5
5
|
import f from "../input/Input.js";
|
|
6
6
|
import { InputAlpha as H } from "./InputAlpha.js";
|
|
7
7
|
const N = ({
|
|
@@ -11,14 +11,14 @@ const N = ({
|
|
|
11
11
|
onAlphaChange: h,
|
|
12
12
|
disabledAlpha: l
|
|
13
13
|
}) => {
|
|
14
|
-
const { getPrefixCls: g } = I(E), s = g("color-picker"), [o,
|
|
14
|
+
const { getPrefixCls: g } = I(E), s = g("color-picker"), [o, a] = j(n.hex);
|
|
15
15
|
D(() => {
|
|
16
|
-
n.hex !== o &&
|
|
16
|
+
n.hex !== o && a(n.hex);
|
|
17
17
|
}, [n]);
|
|
18
|
-
const
|
|
18
|
+
const r = (e) => {
|
|
19
19
|
var p;
|
|
20
20
|
const t = ((p = e.match(/[a-fA-F0-9]*/g)) == null ? void 0 : p.join("")) ?? "";
|
|
21
|
-
t !== o &&
|
|
21
|
+
t !== o && a(t.toUpperCase());
|
|
22
22
|
}, i = () => {
|
|
23
23
|
let e = new c(o);
|
|
24
24
|
e.ok || (e = new c({
|
|
@@ -30,7 +30,7 @@ const N = ({
|
|
|
30
30
|
x(t);
|
|
31
31
|
}, C = (e) => {
|
|
32
32
|
let t = e.clipboardData.getData("Text");
|
|
33
|
-
t.startsWith("#") && (t = t.slice(1)),
|
|
33
|
+
t.startsWith("#") && (t = t.slice(1)), r(t), e.preventDefault();
|
|
34
34
|
};
|
|
35
35
|
return /* @__PURE__ */ v(f.Group, { className: `${s}-input-group`, compact: !0, children: [
|
|
36
36
|
/* @__PURE__ */ m(
|
|
@@ -41,7 +41,7 @@ const N = ({
|
|
|
41
41
|
size: "mini",
|
|
42
42
|
maxLength: 6,
|
|
43
43
|
value: o,
|
|
44
|
-
onChange:
|
|
44
|
+
onChange: r,
|
|
45
45
|
onBlur: i,
|
|
46
46
|
onPressEnter: i,
|
|
47
47
|
onPaste: C
|
package/color-picker/InputRgb.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs as h, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { a as x } from "../chunk/CCVU-Kst.js";
|
|
3
3
|
import { useContext as f } from "react";
|
|
4
|
-
import { a as b } from "../chunk/
|
|
4
|
+
import { a as b } from "../chunk/Byd0ztYY.js";
|
|
5
5
|
import I, { InputNumber as m } from "../input/Input.js";
|
|
6
6
|
import { InputAlpha as d } from "./InputAlpha.js";
|
|
7
7
|
const E = ({
|
|
8
8
|
color: s,
|
|
9
9
|
alpha: p,
|
|
10
|
-
onHsvChange:
|
|
11
|
-
onAlphaChange:
|
|
10
|
+
onHsvChange: a,
|
|
11
|
+
onAlphaChange: u,
|
|
12
12
|
disabledAlpha: c
|
|
13
13
|
}) => {
|
|
14
14
|
const { getPrefixCls: g } = f(b), C = g("color-picker"), t = (n) => {
|
|
@@ -17,7 +17,7 @@ const E = ({
|
|
|
17
17
|
g: n.g,
|
|
18
18
|
b: n.b
|
|
19
19
|
}).toHsv_();
|
|
20
|
-
|
|
20
|
+
a(l);
|
|
21
21
|
}, { r, g: e, b: i } = s.rgb;
|
|
22
22
|
return /* @__PURE__ */ h(I.Group, { className: `${C}-input-group`, compact: !0, children: [
|
|
23
23
|
/* @__PURE__ */ o(
|
|
@@ -53,7 +53,7 @@ const E = ({
|
|
|
53
53
|
onChange: (n) => t({ r, g: e, b: n })
|
|
54
54
|
}
|
|
55
55
|
),
|
|
56
|
-
!c && /* @__PURE__ */ o(d, { value: p, onChange:
|
|
56
|
+
!c && /* @__PURE__ */ o(d, { value: p, onChange: u })
|
|
57
57
|
] });
|
|
58
58
|
};
|
|
59
59
|
export {
|
package/color-picker/Palette.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { a as C } from "../chunk/CCVU-Kst.js";
|
|
3
3
|
import { useContext as d, useMemo as h } from "react";
|
|
4
|
-
import { a as g } from "../chunk/
|
|
4
|
+
import { a as g } from "../chunk/Byd0ztYY.js";
|
|
5
5
|
import { u as x } from "../chunk/k-OUstoD.js";
|
|
6
6
|
const w = ({ color: l, onChange: c }) => {
|
|
7
7
|
const { getPrefixCls: a } = d(g), e = a("color-picker"), { h: r, s: t, v: n } = l.hsv, { blockRef: f, handlerRef: i, onMouseDown: m } = x({
|
package/color-picker/Panel.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { useContext as
|
|
4
|
-
import { a as dr } from "../chunk/
|
|
5
|
-
import { R as x } from "../chunk/
|
|
2
|
+
import { a as d } from "../chunk/CCVU-Kst.js";
|
|
3
|
+
import { useContext as ar, useState as ir, useMemo as sr } from "react";
|
|
4
|
+
import { a as dr } from "../chunk/Byd0ztYY.js";
|
|
5
|
+
import { R as x } from "../chunk/DJDOFlqC.js";
|
|
6
6
|
import mr from "../select/Select.js";
|
|
7
7
|
import X from "../tooltip/index.js";
|
|
8
8
|
import { m as ur } from "../chunk/JPPo5nY_.js";
|
|
@@ -20,7 +20,7 @@ const hr = x.Group, zr = ({
|
|
|
20
20
|
gradientColors: m,
|
|
21
21
|
activeColorId: K,
|
|
22
22
|
activeColorIdRef: L,
|
|
23
|
-
color:
|
|
23
|
+
color: i,
|
|
24
24
|
alpha: u,
|
|
25
25
|
disabledAlpha: k,
|
|
26
26
|
historyColors: C,
|
|
@@ -37,10 +37,10 @@ const hr = x.Group, zr = ({
|
|
|
37
37
|
onGradientColorsChange: j,
|
|
38
38
|
onActiveColorIdChange: z
|
|
39
39
|
}) => {
|
|
40
|
-
const { getPrefixCls: Q, locale: f } =
|
|
40
|
+
const { getPrefixCls: Q, locale: f } = ar(dr), r = Q("color-picker"), [T, U] = ir("hex"), v = sr(() => {
|
|
41
41
|
const n = new Set(C ?? []);
|
|
42
42
|
return Array.from(n);
|
|
43
|
-
}, [C]), { h: E, s: V, v: W } =
|
|
43
|
+
}, [C]), { h: E, s: V, v: W } = i.hsv, { r: b, g: h, b: $ } = i.rgb, Y = (n) => {
|
|
44
44
|
let c = new d(n);
|
|
45
45
|
c.ok || (c = new d({
|
|
46
46
|
r: 255,
|
|
@@ -72,10 +72,10 @@ const hr = x.Group, zr = ({
|
|
|
72
72
|
));
|
|
73
73
|
}, rr = () => {
|
|
74
74
|
const n = (t) => {
|
|
75
|
-
const o = Math.round(t * 100),
|
|
76
|
-
j(w), z(
|
|
75
|
+
const o = Math.round(t * 100), a = br(m, o), w = F(m.concat(a));
|
|
76
|
+
j(w), z(a.id), s(a.color.hsv), g(a.alpha);
|
|
77
77
|
}, c = (t) => {
|
|
78
|
-
const o = m.find((
|
|
78
|
+
const o = m.find((a) => a.id === t);
|
|
79
79
|
z(t), s(o.color.hsv), g(o.alpha);
|
|
80
80
|
};
|
|
81
81
|
return /* @__PURE__ */ e("div", { className: `${r}-control-bar-gradient`, children: /* @__PURE__ */ e(
|
|
@@ -98,12 +98,12 @@ const hr = x.Group, zr = ({
|
|
|
98
98
|
renderHandlerCenterStyle: (t) => {
|
|
99
99
|
const {
|
|
100
100
|
color: {
|
|
101
|
-
rgb: { r: o, g:
|
|
101
|
+
rgb: { r: o, g: a, b: w }
|
|
102
102
|
},
|
|
103
103
|
alpha: lr
|
|
104
104
|
} = m.find((cr) => cr.id === t);
|
|
105
105
|
return {
|
|
106
|
-
background: new d({ r: o, g:
|
|
106
|
+
background: new d({ r: o, g: a, b: w, a: lr }).toRgbaString()
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
109
|
}
|
|
@@ -111,7 +111,7 @@ const hr = x.Group, zr = ({
|
|
|
111
111
|
}, er = () => T === "rgb" ? /* @__PURE__ */ e(
|
|
112
112
|
gr,
|
|
113
113
|
{
|
|
114
|
-
color:
|
|
114
|
+
color: i,
|
|
115
115
|
alpha: u,
|
|
116
116
|
onHsvChange: s,
|
|
117
117
|
onAlphaChange: g,
|
|
@@ -120,7 +120,7 @@ const hr = x.Group, zr = ({
|
|
|
120
120
|
) : /* @__PURE__ */ e(
|
|
121
121
|
pr,
|
|
122
122
|
{
|
|
123
|
-
color:
|
|
123
|
+
color: i,
|
|
124
124
|
alpha: u,
|
|
125
125
|
onHsvChange: s,
|
|
126
126
|
onAlphaChange: g,
|
|
@@ -168,7 +168,7 @@ const hr = x.Group, zr = ({
|
|
|
168
168
|
/* @__PURE__ */ e(
|
|
169
169
|
fr,
|
|
170
170
|
{
|
|
171
|
-
color:
|
|
171
|
+
color: i,
|
|
172
172
|
onChange: (n, c) => {
|
|
173
173
|
s({ h: E, s: n, v: c });
|
|
174
174
|
}
|
|
@@ -211,7 +211,7 @@ const hr = x.Group, zr = ({
|
|
|
211
211
|
}
|
|
212
212
|
) })
|
|
213
213
|
] }),
|
|
214
|
-
/* @__PURE__ */ e(X, { mini: !0, content:
|
|
214
|
+
/* @__PURE__ */ e(X, { mini: !0, content: i.hex8String, color: i.string, children: /* @__PURE__ */ e(
|
|
215
215
|
"div",
|
|
216
216
|
{
|
|
217
217
|
className: `${r}-preview`,
|
package/color-picker/colors.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { a as o } from "../chunk/CCVU-Kst.js";
|
|
2
|
+
import { colors as a, palette as s } from "../utils/color.js";
|
|
3
3
|
new o("#eee");
|
|
4
4
|
const i = [
|
|
5
|
-
Object.entries(
|
|
6
|
-
Object.entries(
|
|
5
|
+
Object.entries(a).map(([t, e], r, l) => s({ color: e, level: 4 })),
|
|
6
|
+
Object.entries(a).map(([t, e], r, l) => e),
|
|
7
7
|
!1,
|
|
8
8
|
!1,
|
|
9
9
|
!1,
|
package/color-picker/index.js
CHANGED
|
@@ -2,15 +2,15 @@ import { jsx as P, jsxs as K } from "react/jsx-runtime";
|
|
|
2
2
|
import te from "lodash/isFunction";
|
|
3
3
|
import ne from "lodash/isNil";
|
|
4
4
|
import ie, { useState as k, useRef as L, useMemo as q, useCallback as Q, useEffect as D, useContext as se } from "react";
|
|
5
|
-
import { a as ae } from "../chunk/
|
|
5
|
+
import { a as ae } from "../chunk/Byd0ztYY.js";
|
|
6
6
|
import le from "../copy/index.js";
|
|
7
7
|
import { u as ce } from "../chunk/BFTV6myl.js";
|
|
8
8
|
import de from "../trigger/index.js";
|
|
9
9
|
import { m as ue } from "../chunk/JPPo5nY_.js";
|
|
10
10
|
import { colors as me } from "./colors.js";
|
|
11
|
-
import {
|
|
11
|
+
import { a as U } from "../chunk/CCVU-Kst.js";
|
|
12
12
|
import { u as fe } from "../chunk/oopARUrq.js";
|
|
13
|
-
import { u as W } from "../chunk/
|
|
13
|
+
import { u as W } from "../chunk/DeV0v__J.js";
|
|
14
14
|
import { ColorPickerMode as w } from "./interface.js";
|
|
15
15
|
import { getModeByValue as ge, isGradientMode as J, isSingleMode as pe } from "./Mode.js";
|
|
16
16
|
import { mapValueToGradientColor as Ce, getColorFromHsv as X, formatRgba as ve, formatHex as he, isEqualsColors as Ae, equalsHsv as be, getRandomId as Y, getGradientString as ye, renderBackground as xe } from "./utils.js";
|
package/color-picker/utils.js
CHANGED
package/comment/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as n, jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import g from "lodash/isPlainObject";
|
|
3
3
|
import N from "lodash/isString";
|
|
4
4
|
import { forwardRef as u, useContext as v } from "react";
|
|
5
|
-
import { a as C } from "../chunk/
|
|
5
|
+
import { a as C } from "../chunk/Byd0ztYY.js";
|
|
6
6
|
import { u as x } from "../chunk/BFTV6myl.js";
|
|
7
7
|
import { m as d } from "../chunk/JPPo5nY_.js";
|
|
8
8
|
import { a as P } from "../chunk/ClqoGc3r.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@unicom-cloud/icons/context";
|
|
3
|
-
import "../chunk/
|
|
3
|
+
import "../chunk/CCVU-Kst.js";
|
|
4
4
|
import "lodash/isPlainObject";
|
|
5
5
|
import "react";
|
|
6
6
|
import "../chunk/BFTV6myl.js";
|
|
7
|
-
import { C as f, a as n, e as g, b as l } from "../chunk/
|
|
7
|
+
import { C as f, a as n, e as g, b as l } from "../chunk/Byd0ztYY.js";
|
|
8
8
|
import "../modal/config.js";
|
|
9
9
|
import "../chunk/BKKEev13.js";
|
|
10
10
|
export {
|
package/config-provider/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as r } from "../chunk/
|
|
2
|
-
import { C as s, a as f, e as t } from "../chunk/
|
|
1
|
+
import { b as r } from "../chunk/Byd0ztYY.js";
|
|
2
|
+
import { C as s, a as f, e as t } from "../chunk/Byd0ztYY.js";
|
|
3
3
|
export {
|
|
4
4
|
s as ConfigConsumer,
|
|
5
5
|
f as ConfigContext,
|
package/copy/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as r, jsxs as T } from "react/jsx-runtime";
|
|
|
2
2
|
import h from "@unicom-cloud/icons/IconUiCheckCircleFill";
|
|
3
3
|
import b from "@unicom-cloud/icons/IconUiCopy";
|
|
4
4
|
import { useContext as P, useState as w, useRef as E, useEffect as k } from "react";
|
|
5
|
-
import { a as v } from "../chunk/
|
|
5
|
+
import { a as v } from "../chunk/Byd0ztYY.js";
|
|
6
6
|
import { u as I } from "../chunk/XTEsYGuF.js";
|
|
7
7
|
import N from "../tooltip/index.js";
|
|
8
8
|
import { m as j } from "../chunk/JPPo5nY_.js";
|
package/date-picker/Picker.js
CHANGED
|
@@ -6,7 +6,7 @@ import Ie from "lodash/isArray";
|
|
|
6
6
|
import bo from "lodash/isPlainObject";
|
|
7
7
|
import ko from "lodash/isUndefined";
|
|
8
8
|
import jo, { forwardRef as To, useContext as Lo, useRef as ie, useImperativeHandle as No, useState as m, useEffect as Ho } from "react";
|
|
9
|
-
import { a as Mo } from "../chunk/
|
|
9
|
+
import { a as Mo } from "../chunk/Byd0ztYY.js";
|
|
10
10
|
import { u as Io } from "../chunk/BFTV6myl.js";
|
|
11
11
|
import { u as Ee } from "../chunk/VSe_Wq1g.js";
|
|
12
12
|
import { u as Eo } from "../chunk/a3hR6zLw.js";
|
|
@@ -6,7 +6,7 @@ import "lodash/isArray";
|
|
|
6
6
|
import "lodash/isPlainObject";
|
|
7
7
|
import "lodash/isUndefined";
|
|
8
8
|
import "react";
|
|
9
|
-
import "../chunk/
|
|
9
|
+
import "../chunk/Byd0ztYY.js";
|
|
10
10
|
import "../chunk/BFTV6myl.js";
|
|
11
11
|
import "../chunk/VSe_Wq1g.js";
|
|
12
12
|
import "../chunk/a3hR6zLw.js";
|
|
@@ -17,7 +17,7 @@ import "../chunk/tamGhTJp.js";
|
|
|
17
17
|
import "../chunk/ClqoGc3r.js";
|
|
18
18
|
import "./context.js";
|
|
19
19
|
import "../chunk/CC---6jO.js";
|
|
20
|
-
import { P as q } from "../chunk/
|
|
20
|
+
import { P as q } from "../chunk/uH6uxyao.js";
|
|
21
21
|
import "./util.js";
|
|
22
22
|
export {
|
|
23
23
|
q as default
|
package/date-picker/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import k, { useRef as P, useImperativeHandle as d } from "react";
|
|
3
3
|
import p from "./Picker.js";
|
|
4
|
-
import { P as u, D as f, Q as l, W as y, Y as N, M as $ } from "../chunk/
|
|
4
|
+
import { P as u, D as f, Q as l, W as y, Y as N, M as $ } from "../chunk/uH6uxyao.js";
|
|
5
5
|
function c(s, i) {
|
|
6
6
|
function o(n, m) {
|
|
7
7
|
const t = P();
|
package/descriptions/index.js
CHANGED
|
@@ -3,10 +3,10 @@ import C from "lodash/isArray";
|
|
|
3
3
|
import V from "lodash/isNumber";
|
|
4
4
|
import q from "lodash/isPlainObject";
|
|
5
5
|
import { useContext as B, useState as G, useRef as J, useEffect as K, Fragment as x } from "react";
|
|
6
|
-
import { a as Q } from "../chunk/
|
|
6
|
+
import { a as Q } from "../chunk/Byd0ztYY.js";
|
|
7
7
|
import { u as U } from "../chunk/BFTV6myl.js";
|
|
8
8
|
import { m as W } from "../chunk/JPPo5nY_.js";
|
|
9
|
-
import P,
|
|
9
|
+
import { responsiveObserve as P, responsiveArray as k } from "../utils/responsiveObserve.js";
|
|
10
10
|
const z = (f) => C(f) ? f.reduce((h, p) => h + (p.span || 1), 0) : 0, X = {
|
|
11
11
|
layout: "horizontal",
|
|
12
12
|
column: 3,
|
package/divider/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as x, useContext as u } from "react";
|
|
3
|
-
import { a as $ } from "../chunk/
|
|
3
|
+
import { a as $ } from "../chunk/Byd0ztYY.js";
|
|
4
4
|
import { u as h } from "../chunk/BFTV6myl.js";
|
|
5
5
|
import { m as v } from "../chunk/JPPo5nY_.js";
|
|
6
6
|
const C = {
|
package/draggable/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import x, { useContext as I, useState as C } from "react";
|
|
3
|
-
import { a as D } from "../chunk/
|
|
3
|
+
import { a as D } from "../chunk/Byd0ztYY.js";
|
|
4
4
|
import { m as h } from "../chunk/JPPo5nY_.js";
|
|
5
5
|
import v from "./Item.js";
|
|
6
6
|
function R(s) {
|