@unicom-cloud/ui 0.8.78 → 0.8.79
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 +5 -5
- package/BackTop.js +5 -5
- package/Badge.js +3 -3
- package/Breadcrumb.js +4 -4
- package/Button.js +2 -2
- package/Calendar.js +4 -4
- 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 +3 -3
- package/Comment.js +2 -2
- package/ConfigProvider.js +1 -1
- package/Copy.js +4 -4
- 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 +9 -5
- package/IconHover.js +2 -2
- package/Image.js +1 -1
- package/InputNumber.js +3 -3
- package/Layout.js +2 -2
- package/Link.js +3 -3
- package/List.js +4 -4
- package/Mentions.js +5 -5
- package/Menu.js +1 -1
- package/Message.js +3 -3
- package/Modal.js +1 -1
- package/Notice.js +9 -8
- package/Notification.js +3 -3
- package/OverflowEllipsis.js +2 -2
- package/PageHeader.js +3 -3
- package/Pagination.js +1 -1
- 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/Select.js +1 -1
- package/SelectView.js +5 -6
- package/Skeleton.js +2 -2
- package/Slider.js +4 -4
- package/Space.js +2 -2
- package/SpeechSynthesis.js +18 -20
- package/Spin.js +3 -3
- package/Statistic.js +3 -3
- package/Steps.js +2 -2
- package/Switch.js +7 -8
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +3 -3
- package/Tooltip.js +3 -3
- package/Transfer.js +4 -4
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +9 -10
- package/Typography.js +1 -1
- package/affix/index.js +17 -17
- package/alert/index.js +13 -13
- package/anchor/Anchor.js +40 -40
- package/anchor/Link.js +14 -14
- package/anchor/util.js +2 -2
- package/auto-complete/index.js +5 -5
- package/avatar/Avatar.js +17 -17
- package/avatar/Group.js +13 -13
- package/back-top/index.js +13 -13
- package/badge/Count.js +13 -13
- package/badge/index.js +21 -21
- package/breadcrumb/Item.js +25 -25
- package/breadcrumb/index.js +12 -12
- package/button/Group.js +6 -6
- package/button/index.js +30 -30
- package/calendar/Month.js +2 -2
- package/calendar/Year.js +1 -1
- package/calendar/index.js +4 -4
- package/card/Grid.js +13 -13
- package/card/Meta.js +13 -13
- package/card/index.js +29 -29
- package/carousel/Arrow.js +6 -6
- package/carousel/Indicator.js +27 -27
- package/carousel/index.js +24 -24
- package/cascader/Cascader.js +8 -8
- 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/GroupBlock.js +3 -3
- package/checkbox/index.js +2 -2
- package/chunk/{ZrBrCzQX.js → B4WG1mhs.js} +6 -7
- package/chunk/{Cwm8LL5p.js → B4mZh-RK.js} +7245 -7249
- package/chunk/{CjqvxJml.js → BG7YGUsx.js} +32 -32
- package/chunk/{BhBEMwvI.js → BNevupAU.js} +18 -20
- package/chunk/BYdIoY50.js +17 -0
- package/chunk/{Cc_-i0o_.js → BZ3igxQN.js} +6 -7
- package/chunk/{uEGHykhe.js → BZ9g7J4R.js} +1 -1
- package/chunk/BsUZRQDT.js +23 -0
- package/chunk/{CBgu99gQ.js → C5X4hOkx.js} +130 -130
- package/chunk/{B0n0iRhF.js → CCKr5jj1.js} +1 -1
- package/chunk/{CNcLypMY.js → CQvM33Vg.js} +190 -189
- package/chunk/CXPOj2uy.js +19 -0
- package/chunk/{DAAff-FT.js → ClM74To2.js} +9 -10
- package/chunk/{RS6OAxzv.js → D-ap9qEk.js} +2 -2
- package/chunk/{tpmioyz1.js → DEiyXzBZ.js} +28 -28
- package/chunk/{CplLA01W.js → DEuVgCzp.js} +45 -52
- package/chunk/{BPQXH_5i.js → DYspELhF.js} +43 -43
- package/chunk/DxYoPlum.js +50 -0
- package/chunk/{BpYX5PN4.js → NPajzdOv.js} +2 -2
- package/chunk/{BBkdXHrJ.js → rT6qmv-Y.js} +1 -1
- package/chunk/{BC5fEyWK.js → yLRv5RIK.js} +61 -61
- package/chunk/{C_4I3haT.js → yhU2zeeu.js} +96 -96
- package/collapse/Collapse.js +4 -4
- package/collapse/Item.js +4 -4
- package/collapse/index.js +1 -1
- package/color-picker/ControlBar.js +22 -22
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +1 -1
- package/color-picker/InputRgb.js +1 -1
- package/color-picker/Palette.js +1 -1
- package/color-picker/Panel.js +4 -4
- package/color-picker/index.js +3 -3
- package/comment/index.js +18 -18
- package/config-provider/ConfigProvider.js +2 -2
- package/config-provider/context.js +2 -2
- package/config-provider/index.js +2 -2
- package/copy/index.js +23 -23
- package/date-picker/Picker.js +41 -41
- package/date-picker/PickerRange.js +3 -3
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +28 -28
- package/divider/index.js +15 -15
- package/draggable/Item.js +11 -11
- package/draggable/index.js +15 -15
- package/drawer/Drawer.js +31 -31
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +22 -22
- package/empty/index.js +2 -2
- package/form/Control.js +46 -46
- package/form/Form.js +12 -12
- package/form/FormItem.js +12 -12
- package/form/FormLabel.js +11 -11
- package/form/context.js +7 -6
- package/form/promisify.js +9 -10
- package/form/store.js +1 -1
- package/form/util.js +1 -1
- package/grid/Col.js +38 -38
- package/grid/Row.js +15 -15
- package/grid/grid-item.js +17 -17
- package/grid/grid.js +28 -28
- package/hooks/index.js +6 -6
- package/hooks/useInView.js +1 -1
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useKeyboardEvent.js +1 -1
- package/hooks/useMergeValue.js +1 -1
- package/hooks/useOverrideRef.js +1 -1
- package/hooks/usePrefersColorSchemeDark.js +1 -1
- package/hooks/useVerificationCode.js +30 -30
- package/icon/index.js +20 -16
- package/icon-hover/index.js +2 -2
- package/image/Image.js +22 -22
- package/image/ImageFooter.js +2 -2
- package/image/ImagePreview.js +11 -11
- package/image/ImagePreviewArrow.js +16 -16
- package/image/ImagePreviewGroup.js +2 -2
- package/image/ImagePreviewToolbar.js +7 -7
- package/image/TriggerForToolbar.js +7 -7
- package/image/index.js +1 -1
- package/index.js +547 -580
- package/input/Group.js +10 -10
- package/input/Input.js +213 -214
- package/input/InputElement.js +10 -11
- package/input/Password.js +4 -4
- package/input/Search.js +3 -3
- package/input/Textarea.js +7 -8
- package/input/useComposition.js +6 -6
- package/input-number/index.js +3 -3
- package/input-tag/InputTag.js +110 -111
- package/layout/Content.js +4 -4
- package/layout/Footer.js +6 -6
- package/layout/Header.js +8 -8
- package/layout/Sider.js +29 -29
- package/layout/index.js +16 -16
- package/link/index.js +27 -27
- package/list/Item.js +5 -5
- package/list/Meta.js +11 -11
- package/list/index.js +4 -4
- package/locale/en-US.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/mentions/index.js +5 -5
- package/menu/Item.js +11 -11
- package/menu/ItemGroup.js +8 -8
- package/menu/Menu.js +5 -5
- package/menu/OverflowWrap.js +2 -2
- package/menu/index.js +2 -2
- package/message/index.js +3 -3
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +7 -7
- package/modal/index.js +1 -1
- package/notice/index.js +9 -8
- package/notification/index.js +3 -3
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +6 -6
- package/overflow-ellipsis/index.js +27 -27
- package/package.json +1 -1
- package/page-header/index.js +3 -3
- package/pagination/PageItem.js +7 -7
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +3 -3
- package/pagination/Pagination.js +4 -4
- package/pagination/index.js +1 -1
- package/picker/Input.js +7 -7
- package/picker/InputRange.js +77 -77
- package/popconfirm/index.js +11 -11
- package/popover/index.js +21 -21
- package/progress/CircleProgress.js +14 -14
- package/progress/LineProgess.js +14 -14
- package/progress/StepProgress.js +9 -9
- package/progress/index.js +26 -26
- package/radio/Group.js +4 -4
- package/radio/GroupBlock.js +3 -3
- package/radio/Radio.js +4 -4
- package/radio/index.js +2 -2
- package/rate/index.js +16 -16
- package/resize-box/ResizeTrigger.js +27 -28
- package/resize-box/Split.js +21 -21
- package/resize-box/SplitGroup.js +40 -40
- package/resize-box/index.js +23 -23
- package/result/index.js +29 -29
- package/select/Option.js +2 -2
- package/select/Select.js +11 -12
- package/select/index.js +2 -2
- package/select/util.js +5 -5
- package/select-view/Core.js +104 -106
- package/select-view/index.js +22 -23
- package/skeleton/Image.js +14 -14
- package/skeleton/Text.js +16 -16
- package/skeleton/index.js +11 -11
- package/slider/Button.js +4 -4
- package/slider/Dot.js +9 -9
- package/slider/Input.js +20 -20
- package/slider/Tick.js +14 -14
- package/slider/index.js +103 -103
- package/slider/util.js +3 -3
- package/space/index.js +14 -14
- package/speech-synthesis/index.js +26 -28
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +16 -16
- package/statistic/Countdown.js +17 -17
- package/statistic/index.js +32 -32
- package/steps/Step.js +8 -8
- package/steps/index.js +17 -17
- package/switch/index.js +32 -33
- package/table/Table.js +5 -5
- package/table/index.js +1 -1
- package/tabs/Tab.js +4 -4
- package/tabs/TabContent.js +3 -3
- package/tabs/TabPane.js +11 -11
- package/tabs/index.js +2 -2
- package/tabs/util.js +1 -1
- package/tag/index.js +16 -16
- package/time-picker/Picker.js +50 -50
- package/time-picker/TimeColumn.js +8 -8
- package/time-picker/TimePicker.js +32 -32
- package/time-picker/util.js +1 -1
- package/timeline/Item.js +15 -15
- package/timeline/Timeline.js +24 -24
- package/tooltip/index.js +23 -23
- package/transfer/Item.js +4 -4
- package/transfer/List.js +4 -4
- package/transfer/index.js +4 -4
- package/tree/Animation.js +3 -3
- package/tree/Node.js +3 -3
- package/tree/NodeList.js +2 -2
- package/tree/Tree.js +4 -4
- package/tree/index.js +1 -1
- package/tree-select/List.js +2 -2
- package/tree-select/Select.js +8 -9
- package/tree-select/index.js +2 -2
- package/trigger/getPopupStyle.js +18 -19
- package/trigger/index.js +32 -33
- package/types/button/index.d.ts +2 -2
- package/types/color-picker/colors.d.ts +1 -1
- package/types/date-picker/util.d.ts +1 -1
- package/types/icon/index.d.ts +3 -1
- package/types/index.d.ts +1 -1
- package/types/menu/context.d.ts +1 -1
- package/typography/Base.js +33 -35
- package/typography/EditContent.js +16 -16
- package/typography/Ellipsis.js +24 -26
- package/typography/Operations.js +1 -1
- package/typography/Paragraph.js +8 -8
- package/typography/Typography.js +7 -7
- package/typography/index.js +1 -1
- package/upload/TriggerNode.js +8 -8
- package/upload/Upload.js +64 -65
- package/upload/Uploader.js +12 -12
- package/upload/request.js +13 -12
- package/upload/request_.js +5 -6
- package/utils/PqbCSSTransition.js +1 -1
- package/utils/caseName.js +4 -3
- package/utils/className.js +4 -3
- package/utils/constant.js +3 -3
- package/utils/contextHolder.js +1 -1
- package/utils/copy.js +5 -4
- package/utils/fileToURL.js +4 -3
- package/utils/index.js +261 -298
- package/utils/is.js +78 -115
- package/utils/keyboardCode.js +4 -26
- package/utils/math.js +10 -32
- package/utils/react19Adapter.js +1 -1
- package/utils/reactDOM.js +1 -1
- package/utils/saveAs.js +4 -3
- package/utils/screenfull.js +4 -3
- package/utils/scrollIntoView.js +1 -1
- package/utils/setDarkTheme.js +1 -1
- package/utils/tree.js +7 -83
- package/utils/tween.js +1 -1
- package/utils/validate.js +1 -1
- package/verification-code/VerificationCode.js +25 -25
- package/version/index.js +1 -1
- package/virtual-list/VirtualList.js +1 -1
- package/watermark/Watermark.js +8 -8
- package/chunk/ATwvJ8j2.js +0 -6
- package/chunk/BFmckYou.js +0 -25
- package/chunk/Bl7BnD1R.js +0 -119
- package/chunk/Bmvhjhzq.js +0 -24
- package/chunk/BrOW642m.js +0 -130
- package/chunk/C0pRaDCf.js +0 -96
- package/chunk/CBzE-PUr.js +0 -23
- package/chunk/CUFsOxJ2.js +0 -10
- package/chunk/Ce1j9KTi.js +0 -6
- package/chunk/D0Dlbc2g.js +0 -41
- package/chunk/DRTWRsgI.js +0 -34
- package/chunk/DeV0v__J.js +0 -20
- package/chunk/DohlrJ4S.js +0 -50
- package/chunk/XTEsYGuF.js +0 -17
- package/chunk/yl4BU7Sd.js +0 -1068
package/breadcrumb/Item.js
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as C, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import w from "@unicom-cloud/icons/IconUiDown";
|
|
3
3
|
import V from "lodash/isString";
|
|
4
|
-
import { useState as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { o as
|
|
4
|
+
import { useState as $ } from "react";
|
|
5
|
+
import x from "../dropdown/index.js";
|
|
6
|
+
import n from "@unicom-cloud/utils/class-name";
|
|
7
|
+
import { o as D } from "../chunk/BKKEev13.js";
|
|
8
8
|
import { a as I } from "../chunk/ClqoGc3r.js";
|
|
9
9
|
function j(l) {
|
|
10
10
|
const {
|
|
11
11
|
children: c,
|
|
12
12
|
style: d,
|
|
13
13
|
className: p,
|
|
14
|
-
prefixCls:
|
|
14
|
+
prefixCls: i,
|
|
15
15
|
droplist: t,
|
|
16
|
-
dropdownProps:
|
|
17
|
-
href:
|
|
16
|
+
dropdownProps: e,
|
|
17
|
+
href: m,
|
|
18
18
|
onClick: f,
|
|
19
19
|
tagName: h = "div",
|
|
20
|
-
...
|
|
21
|
-
} = l, [
|
|
22
|
-
|
|
20
|
+
...N
|
|
21
|
+
} = l, [u, b] = $(!1), g = V(m) ? "a" : h, a = /* @__PURE__ */ C(
|
|
22
|
+
g,
|
|
23
23
|
{
|
|
24
|
-
href:
|
|
24
|
+
href: m,
|
|
25
25
|
onClick: f,
|
|
26
26
|
role: "listitem",
|
|
27
27
|
style: d,
|
|
28
|
-
className:
|
|
29
|
-
`${
|
|
28
|
+
className: n(
|
|
29
|
+
`${i}-item`,
|
|
30
30
|
{
|
|
31
|
-
[`${
|
|
31
|
+
[`${i}-item-with-dropdown`]: t
|
|
32
32
|
},
|
|
33
33
|
p
|
|
34
34
|
),
|
|
35
|
-
...I(
|
|
35
|
+
...I(N),
|
|
36
36
|
children: [
|
|
37
37
|
c,
|
|
38
38
|
t && /* @__PURE__ */ o(
|
|
39
39
|
"span",
|
|
40
40
|
{
|
|
41
41
|
"aria-hidden": !0,
|
|
42
|
-
className:
|
|
43
|
-
[`${
|
|
42
|
+
className: n(`${i}-item-dropdown-icon`, {
|
|
43
|
+
[`${i}-item-dropdown-icon-active`]: u
|
|
44
44
|
}),
|
|
45
45
|
children: /* @__PURE__ */ o(w, {})
|
|
46
46
|
}
|
|
@@ -49,17 +49,17 @@ function j(l) {
|
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
51
|
return t ? /* @__PURE__ */ o(
|
|
52
|
-
|
|
52
|
+
x,
|
|
53
53
|
{
|
|
54
54
|
droplist: t,
|
|
55
|
-
onVisibleChange: (
|
|
56
|
-
var
|
|
57
|
-
|
|
55
|
+
onVisibleChange: (r) => {
|
|
56
|
+
var s;
|
|
57
|
+
b(r), (s = e == null ? void 0 : e.onVisibleChange) == null || s.call(e, r);
|
|
58
58
|
},
|
|
59
|
-
|
|
60
|
-
children:
|
|
59
|
+
...D(e, ["onVisibleChange"]),
|
|
60
|
+
children: a
|
|
61
61
|
}
|
|
62
|
-
) :
|
|
62
|
+
) : a;
|
|
63
63
|
}
|
|
64
64
|
j.displayName = "BreadcrumbItem";
|
|
65
65
|
export {
|
package/breadcrumb/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import O from "@unicom-cloud/icons/IconUiObliqueLine";
|
|
3
3
|
import c, { forwardRef as S, useContext as _ } from "react";
|
|
4
|
-
import { a as k } from "../chunk/
|
|
4
|
+
import { a as k } from "../chunk/CQvM33Vg.js";
|
|
5
5
|
import { u as q } from "../chunk/BFTV6myl.js";
|
|
6
|
-
import { M as
|
|
7
|
-
import
|
|
8
|
-
import { c as F } from "../chunk/
|
|
6
|
+
import { M as N } from "../chunk/C5X4hOkx.js";
|
|
7
|
+
import v from "@unicom-cloud/utils/class-name";
|
|
8
|
+
import { c as F } from "../chunk/ClM74To2.js";
|
|
9
9
|
import { o as K } from "../chunk/BKKEev13.js";
|
|
10
|
-
import
|
|
10
|
+
import C from "./Item.js";
|
|
11
11
|
const L = (m, l, i) => l.indexOf(m) === l.length - 1 ? /* @__PURE__ */ t("span", { children: m.breadcrumbName }) : /* @__PURE__ */ t("a", { href: `#/${i.join("/").replace(/^\//, "")}`, children: m.breadcrumbName }), U = {
|
|
12
12
|
separator: /* @__PURE__ */ t(O, {})
|
|
13
13
|
};
|
|
@@ -16,26 +16,26 @@ function V(m, l) {
|
|
|
16
16
|
m,
|
|
17
17
|
U,
|
|
18
18
|
p == null ? void 0 : p.Breadcrumb
|
|
19
|
-
), { className: B, children: I, style: R, routes: n, maxCount: h, separator:
|
|
19
|
+
), { className: B, children: I, style: R, routes: n, maxCount: h, separator: $, ...x } = d, s = i("breadcrumb"), f = "itemRender" in d ? d.itemRender : L, E = /* @__PURE__ */ t(
|
|
20
20
|
"span",
|
|
21
21
|
{
|
|
22
22
|
"aria-label": "ellipses of breadcrumb items",
|
|
23
23
|
className: `${s}-item-ellipses`,
|
|
24
24
|
children: "..."
|
|
25
25
|
}
|
|
26
|
-
), M = /* @__PURE__ */ t("span", { "aria-hidden": !0, className: `${s}-item-separator`, children:
|
|
26
|
+
), M = /* @__PURE__ */ t("span", { "aria-hidden": !0, className: `${s}-item-separator`, children: $ }), b = (r, o, e) => {
|
|
27
27
|
const a = c.cloneElement(M, {
|
|
28
28
|
key: `${e}_separator`
|
|
29
29
|
});
|
|
30
|
-
return o > 0 ? e === 0 ? [r, a,
|
|
30
|
+
return o > 0 ? e === 0 ? [r, a, E] : e > o ? [a, r] : null : e === 0 ? [r] : [a, r];
|
|
31
31
|
}, P = () => {
|
|
32
32
|
const r = [], o = n.length - h;
|
|
33
33
|
return n.map((e, a) => {
|
|
34
34
|
r.push((e.path || "").replace(/^\//, ""));
|
|
35
|
-
const w = e.children ? /* @__PURE__ */ t(
|
|
35
|
+
const w = e.children ? /* @__PURE__ */ t(N, { children: e.children.map((u) => /* @__PURE__ */ t(N.Item, { children: f(u, n, r) }, u.path || u.breadcrumbName)) }) : null;
|
|
36
36
|
return b(
|
|
37
37
|
/* @__PURE__ */ t(
|
|
38
|
-
|
|
38
|
+
C,
|
|
39
39
|
{
|
|
40
40
|
prefixCls: s,
|
|
41
41
|
droplist: w,
|
|
@@ -68,14 +68,14 @@ function V(m, l) {
|
|
|
68
68
|
ref: l,
|
|
69
69
|
style: R,
|
|
70
70
|
className: v(s, { [`${s}-rtl`]: y }, B),
|
|
71
|
-
...K(
|
|
71
|
+
...K(x, ["itemRender"]),
|
|
72
72
|
children: n && n.length ? P() : j()
|
|
73
73
|
}
|
|
74
74
|
);
|
|
75
75
|
}
|
|
76
76
|
const W = S(V), g = W;
|
|
77
77
|
g.displayName = "Breadcrumb";
|
|
78
|
-
g.Item =
|
|
78
|
+
g.Item = C;
|
|
79
79
|
export {
|
|
80
80
|
g as default
|
|
81
81
|
};
|
package/button/Group.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import f, { useContext as i } from "react";
|
|
3
|
-
import { a as l } from "../chunk/
|
|
4
|
-
import
|
|
5
|
-
function x(o,
|
|
6
|
-
const { className:
|
|
7
|
-
return /* @__PURE__ */
|
|
3
|
+
import { a as l } from "../chunk/CQvM33Vg.js";
|
|
4
|
+
import u from "@unicom-cloud/utils/class-name";
|
|
5
|
+
function x(o, s) {
|
|
6
|
+
const { className: t, style: e, children: r, ...a } = o, { getPrefixCls: n } = i(l), m = n("btn-group"), c = u(m, t);
|
|
7
|
+
return /* @__PURE__ */ p("div", { ref: s, className: c, style: e, ...a, children: r });
|
|
8
8
|
}
|
|
9
9
|
const C = f.forwardRef(x);
|
|
10
10
|
C.displayName = "ButtonGroup";
|
package/button/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsx as l, jsxs as A, Fragment as M } from "react/jsx-runtime";
|
|
2
2
|
import Q from "@unicom-cloud/icons/IconUiLoading";
|
|
3
3
|
import _, { forwardRef as W, useContext as Y, useState as H, useRef as J, useEffect as K } from "react";
|
|
4
|
-
import { a as V } from "../chunk/
|
|
4
|
+
import { a as V } from "../chunk/CQvM33Vg.js";
|
|
5
5
|
import { u as X } from "../chunk/BFTV6myl.js";
|
|
6
|
-
import
|
|
6
|
+
import Z from "@unicom-cloud/utils/class-name";
|
|
7
7
|
import v from "./Group.js";
|
|
8
8
|
const tt = /^[\u4e00-\u9fa5]{2}$/;
|
|
9
9
|
function et(u) {
|
|
10
10
|
const o = [];
|
|
11
|
-
let
|
|
11
|
+
let i = !1;
|
|
12
12
|
return _.Children.forEach(u, (n) => {
|
|
13
|
-
const
|
|
14
|
-
if (
|
|
13
|
+
const a = typeof n == "string" || typeof n == "number";
|
|
14
|
+
if (a && i) {
|
|
15
15
|
const s = o.length - 1, f = o[s];
|
|
16
16
|
o[s] = `${f}${n}`;
|
|
17
17
|
} else
|
|
18
18
|
o.push(n);
|
|
19
|
-
|
|
19
|
+
i = a;
|
|
20
20
|
}), _.Children.map(
|
|
21
21
|
o,
|
|
22
22
|
(n) => typeof n == "string" ? /* @__PURE__ */ l("span", { children: n }) : n
|
|
@@ -29,9 +29,9 @@ const nt = {
|
|
|
29
29
|
};
|
|
30
30
|
function ot(u, o) {
|
|
31
31
|
const {
|
|
32
|
-
getPrefixCls:
|
|
32
|
+
getPrefixCls: i,
|
|
33
33
|
size: n,
|
|
34
|
-
autoInsertSpaceInButton:
|
|
34
|
+
autoInsertSpaceInButton: a,
|
|
35
35
|
componentConfig: s,
|
|
36
36
|
rtl: f
|
|
37
37
|
} = Y(V), I = X(
|
|
@@ -39,12 +39,12 @@ function ot(u, o) {
|
|
|
39
39
|
nt,
|
|
40
40
|
s == null ? void 0 : s.Button
|
|
41
41
|
), {
|
|
42
|
-
style:
|
|
42
|
+
style: y,
|
|
43
43
|
className: S,
|
|
44
44
|
children: p,
|
|
45
45
|
htmlType: U,
|
|
46
46
|
type: g,
|
|
47
|
-
status:
|
|
47
|
+
status: N,
|
|
48
48
|
size: z,
|
|
49
49
|
shape: O,
|
|
50
50
|
href: d,
|
|
@@ -58,27 +58,27 @@ function ot(u, o) {
|
|
|
58
58
|
iconRight: D,
|
|
59
59
|
onClick: m,
|
|
60
60
|
long: L,
|
|
61
|
-
...
|
|
62
|
-
} = I,
|
|
61
|
+
...T
|
|
62
|
+
} = I, B = h ? /* @__PURE__ */ l(Q, {}) : F, [C, P] = H(!1), q = J(), r = o || q;
|
|
63
63
|
K(() => {
|
|
64
|
-
if (
|
|
64
|
+
if (a && r && r.current) {
|
|
65
65
|
const e = r.current.textContent;
|
|
66
66
|
tt.test(e) ? C || P(!0) : C && P(!1);
|
|
67
67
|
}
|
|
68
|
-
}, [r.current,
|
|
69
|
-
const t =
|
|
68
|
+
}, [r.current, a]);
|
|
69
|
+
const t = i("btn"), $ = g === "default" ? "secondary" : g, w = Z(
|
|
70
70
|
t,
|
|
71
|
-
|
|
72
|
-
`${t}-${
|
|
73
|
-
|
|
71
|
+
$ === "text-only" && `${t}-text`,
|
|
72
|
+
`${t}-${$}`,
|
|
73
|
+
$ !== "text-only" && `${t}-size-${z || n}`,
|
|
74
74
|
`${t}-shape-${O}`,
|
|
75
75
|
{
|
|
76
76
|
[`${t}-long`]: L,
|
|
77
|
-
[`${t}-status-${
|
|
77
|
+
[`${t}-status-${N}`]: N,
|
|
78
78
|
[`${t}-loading-fixed-width`]: E,
|
|
79
79
|
[`${t}-loading`]: h,
|
|
80
80
|
[`${t}-link`]: d,
|
|
81
|
-
[`${t}-icon-only`]: G || !p && p !== 0 &&
|
|
81
|
+
[`${t}-icon-only`]: G || !p && p !== 0 && B,
|
|
82
82
|
[`${t}-disabled`]: c,
|
|
83
83
|
[`${t}-two-chinese-chars`]: C,
|
|
84
84
|
[`${t}-rtl`]: f
|
|
@@ -91,7 +91,7 @@ function ot(u, o) {
|
|
|
91
91
|
}
|
|
92
92
|
m == null || m(e);
|
|
93
93
|
}, R = /* @__PURE__ */ A(M, { children: [
|
|
94
|
-
|
|
94
|
+
B,
|
|
95
95
|
et(p),
|
|
96
96
|
D,
|
|
97
97
|
j
|
|
@@ -102,9 +102,9 @@ function ot(u, o) {
|
|
|
102
102
|
"a",
|
|
103
103
|
{
|
|
104
104
|
ref: r,
|
|
105
|
-
...
|
|
105
|
+
...T,
|
|
106
106
|
...e,
|
|
107
|
-
style:
|
|
107
|
+
style: y,
|
|
108
108
|
className: w,
|
|
109
109
|
onClick: b,
|
|
110
110
|
children: R
|
|
@@ -115,8 +115,8 @@ function ot(u, o) {
|
|
|
115
115
|
"button",
|
|
116
116
|
{
|
|
117
117
|
ref: r,
|
|
118
|
-
...
|
|
119
|
-
style:
|
|
118
|
+
...T,
|
|
119
|
+
style: y,
|
|
120
120
|
className: w,
|
|
121
121
|
type: U,
|
|
122
122
|
disabled: c,
|
|
@@ -125,10 +125,10 @@ function ot(u, o) {
|
|
|
125
125
|
}
|
|
126
126
|
);
|
|
127
127
|
}
|
|
128
|
-
const st = W(ot),
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
128
|
+
const st = W(ot), x = st;
|
|
129
|
+
x.__PQB_BUTTON = !0;
|
|
130
|
+
x.Group = v;
|
|
131
|
+
x.displayName = "Button";
|
|
132
132
|
const pt = [
|
|
133
133
|
"default",
|
|
134
134
|
"primary",
|
|
@@ -142,5 +142,5 @@ export {
|
|
|
142
142
|
dt as BUTTON_STATUS,
|
|
143
143
|
pt as BUTTON_TYPE,
|
|
144
144
|
v as ButtonGroup,
|
|
145
|
-
|
|
145
|
+
x as default
|
|
146
146
|
};
|
package/calendar/Month.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "
|
|
3
|
+
import "@unicom-cloud/utils/class-name";
|
|
4
4
|
import "../utils/constant.js";
|
|
5
5
|
import "../chunk/tamGhTJp.js";
|
|
6
6
|
import "../utils/pad.js";
|
|
7
7
|
import "./WeekList.js";
|
|
8
|
-
import { M as s, g as f } from "../chunk/
|
|
8
|
+
import { M as s, g as f } from "../chunk/BZ9g7J4R.js";
|
|
9
9
|
export {
|
|
10
10
|
s as default,
|
|
11
11
|
f as getAllDaysByTime
|
package/calendar/Year.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as r, jsxs as C } from "react/jsx-runtime";
|
|
|
2
2
|
import M from "react";
|
|
3
3
|
import { d as S } from "../chunk/tamGhTJp.js";
|
|
4
4
|
import { padStart as w } from "../utils/pad.js";
|
|
5
|
-
import { u as x, M as D } from "../chunk/
|
|
5
|
+
import { u as x, M as D } from "../chunk/BZ9g7J4R.js";
|
|
6
6
|
const v = [
|
|
7
7
|
"January",
|
|
8
8
|
"February",
|
package/calendar/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "lodash/merge";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../chunk/
|
|
4
|
+
import "../chunk/CQvM33Vg.js";
|
|
5
5
|
import "../chunk/BFTV6myl.js";
|
|
6
|
-
import "
|
|
6
|
+
import "@unicom-cloud/utils/class-name";
|
|
7
7
|
import "../chunk/tamGhTJp.js";
|
|
8
8
|
import "../chunk/ClqoGc3r.js";
|
|
9
|
-
import "../chunk/
|
|
9
|
+
import "../chunk/BZ9g7J4R.js";
|
|
10
10
|
import "./Year.js";
|
|
11
|
-
import { C as u } from "../chunk/
|
|
11
|
+
import { C as u } from "../chunk/B4mZh-RK.js";
|
|
12
12
|
export {
|
|
13
13
|
u as default
|
|
14
14
|
};
|
package/card/Grid.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { a as
|
|
4
|
-
import
|
|
5
|
-
function p(
|
|
6
|
-
const { children:
|
|
7
|
-
return /* @__PURE__ */
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import c, { useContext as l } from "react";
|
|
3
|
+
import { a as d } from "../chunk/CQvM33Vg.js";
|
|
4
|
+
import f from "@unicom-cloud/utils/class-name";
|
|
5
|
+
function p(e, o) {
|
|
6
|
+
const { children: a, style: s, className: t, hoverable: i } = e, { getPrefixCls: m } = l(d), r = m("card-grid");
|
|
7
|
+
return /* @__PURE__ */ n(
|
|
8
8
|
"div",
|
|
9
9
|
{
|
|
10
|
-
ref:
|
|
11
|
-
style:
|
|
12
|
-
className:
|
|
10
|
+
ref: o,
|
|
11
|
+
style: s,
|
|
12
|
+
className: f(
|
|
13
13
|
r,
|
|
14
14
|
{ [`${r}-hoverable`]: i },
|
|
15
|
-
|
|
15
|
+
t
|
|
16
16
|
),
|
|
17
|
-
children:
|
|
17
|
+
children: a
|
|
18
18
|
}
|
|
19
19
|
);
|
|
20
20
|
}
|
|
21
|
-
const C =
|
|
21
|
+
const C = c.forwardRef(p);
|
|
22
22
|
C.displayName = "CardGrid";
|
|
23
23
|
export {
|
|
24
24
|
C as default
|
package/card/Meta.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { jsxs as o, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { a as h } from "../chunk/
|
|
4
|
-
import
|
|
5
|
-
function u(
|
|
6
|
-
const { className:
|
|
7
|
-
return /* @__PURE__ */ o("div", { ...
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
import p, { useContext as v } from "react";
|
|
3
|
+
import { a as h } from "../chunk/CQvM33Vg.js";
|
|
4
|
+
import c from "@unicom-cloud/utils/class-name";
|
|
5
|
+
function u(l, n) {
|
|
6
|
+
const { className: m, title: s, avatar: e, description: t, actionList: r, ...d } = l, { getPrefixCls: f } = v(h), a = f("card-meta"), N = c(a, m);
|
|
7
|
+
return /* @__PURE__ */ o("div", { ...d, ref: n, className: N, children: [
|
|
8
|
+
s || t ? /* @__PURE__ */ o("div", { className: `${a}-content`, children: [
|
|
9
|
+
s && /* @__PURE__ */ i("div", { className: `${a}-title`, children: s }),
|
|
10
|
+
t && /* @__PURE__ */ i("div", { className: `${a}-description`, children: t })
|
|
11
11
|
] }) : null,
|
|
12
12
|
e || r ? /* @__PURE__ */ o(
|
|
13
13
|
"div",
|
|
14
14
|
{
|
|
15
|
-
className:
|
|
16
|
-
[`${
|
|
15
|
+
className: c(`${a}-footer `, {
|
|
16
|
+
[`${a}-footer-only-actions`]: !e
|
|
17
17
|
}),
|
|
18
18
|
children: [
|
|
19
|
-
e ? /* @__PURE__ */ i("div", { className: `${
|
|
19
|
+
e ? /* @__PURE__ */ i("div", { className: `${a}-avatar`, children: e }) : null,
|
|
20
20
|
r
|
|
21
21
|
]
|
|
22
22
|
}
|
|
23
23
|
) : null
|
|
24
24
|
] });
|
|
25
25
|
}
|
|
26
|
-
const x =
|
|
26
|
+
const x = p.forwardRef(u);
|
|
27
27
|
x.displayName = "CardMeta";
|
|
28
28
|
export {
|
|
29
29
|
x as default
|
package/card/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { a as k } from "../chunk/
|
|
1
|
+
import { jsx as a, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import n, { useContext as L } from "react";
|
|
3
|
+
import { a as k } from "../chunk/CQvM33Vg.js";
|
|
4
4
|
import { u as q } from "../chunk/BFTV6myl.js";
|
|
5
5
|
import A from "../spin/index.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import $ from "@unicom-cloud/utils/class-name";
|
|
7
|
+
import C from "./Grid.js";
|
|
8
8
|
import u from "./Meta.js";
|
|
9
9
|
const B = {
|
|
10
10
|
size: "default",
|
|
11
11
|
bordered: !0
|
|
12
12
|
};
|
|
13
|
-
function D(
|
|
14
|
-
const { getPrefixCls: y, loadingElement: x, componentConfig:
|
|
15
|
-
|
|
13
|
+
function D(N, v) {
|
|
14
|
+
const { getPrefixCls: y, loadingElement: x, componentConfig: s, rtl: g } = L(k), b = q(
|
|
15
|
+
N,
|
|
16
16
|
B,
|
|
17
|
-
|
|
17
|
+
s == null ? void 0 : s.Card
|
|
18
18
|
), {
|
|
19
19
|
className: M,
|
|
20
20
|
children: z,
|
|
@@ -22,14 +22,14 @@ function D(v, N) {
|
|
|
22
22
|
loading: c,
|
|
23
23
|
hoverable: R,
|
|
24
24
|
size: S,
|
|
25
|
-
title:
|
|
26
|
-
extra:
|
|
25
|
+
title: t,
|
|
26
|
+
extra: o,
|
|
27
27
|
cover: m,
|
|
28
|
-
actions:
|
|
28
|
+
actions: i,
|
|
29
29
|
headerStyle: j,
|
|
30
30
|
bodyStyle: w,
|
|
31
31
|
...E
|
|
32
|
-
} = b, e = y("card"), p =
|
|
32
|
+
} = b, e = y("card"), p = i && i.length ? /* @__PURE__ */ a("div", { className: `${e}-actions`, children: /* @__PURE__ */ a("div", { className: `${e}-actions-right`, children: i.map((r, F) => /* @__PURE__ */ a(
|
|
33
33
|
"span",
|
|
34
34
|
{
|
|
35
35
|
className: `${e}-actions-item`,
|
|
@@ -38,24 +38,24 @@ function D(v, N) {
|
|
|
38
38
|
`action-${F}`
|
|
39
39
|
)) }) }) : null;
|
|
40
40
|
let f = !1, h = !1;
|
|
41
|
-
const G =
|
|
41
|
+
const G = n.Children.map(
|
|
42
42
|
z,
|
|
43
43
|
(r) => {
|
|
44
44
|
if (r && r.type) {
|
|
45
|
-
if (r.type ===
|
|
45
|
+
if (r.type === C)
|
|
46
46
|
f = !0;
|
|
47
47
|
else if (r.type === u)
|
|
48
|
-
return h = !0,
|
|
48
|
+
return h = !0, n.cloneElement(r, { actionList: p });
|
|
49
49
|
}
|
|
50
50
|
return r;
|
|
51
51
|
}
|
|
52
52
|
);
|
|
53
|
-
return /* @__PURE__ */
|
|
53
|
+
return /* @__PURE__ */ l(
|
|
54
54
|
"div",
|
|
55
55
|
{
|
|
56
56
|
...E,
|
|
57
|
-
ref:
|
|
58
|
-
className:
|
|
57
|
+
ref: v,
|
|
58
|
+
className: $(
|
|
59
59
|
e,
|
|
60
60
|
`${e}-size-${S}`,
|
|
61
61
|
{
|
|
@@ -68,31 +68,31 @@ function D(v, N) {
|
|
|
68
68
|
M
|
|
69
69
|
),
|
|
70
70
|
children: [
|
|
71
|
-
|
|
71
|
+
t || o ? /* @__PURE__ */ l(
|
|
72
72
|
"div",
|
|
73
73
|
{
|
|
74
|
-
className:
|
|
75
|
-
[`${e}-header-no-title`]: !
|
|
74
|
+
className: $(`${e}-header`, {
|
|
75
|
+
[`${e}-header-no-title`]: !t
|
|
76
76
|
}),
|
|
77
77
|
style: j,
|
|
78
78
|
children: [
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
t && /* @__PURE__ */ a("div", { className: `${e}-header-title`, children: t }),
|
|
80
|
+
o && /* @__PURE__ */ a("div", { className: `${e}-header-extra`, children: o })
|
|
81
81
|
]
|
|
82
82
|
}
|
|
83
83
|
) : null,
|
|
84
|
-
m ? /* @__PURE__ */
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
c ? x || /* @__PURE__ */
|
|
84
|
+
m ? /* @__PURE__ */ a("div", { className: `${e}-cover`, children: m }) : null,
|
|
85
|
+
/* @__PURE__ */ l("div", { className: `${e}-body`, style: w, children: [
|
|
86
|
+
c ? x || /* @__PURE__ */ a(A, {}) : G,
|
|
87
87
|
h ? null : p
|
|
88
88
|
] })
|
|
89
89
|
]
|
|
90
90
|
}
|
|
91
91
|
);
|
|
92
92
|
}
|
|
93
|
-
const H =
|
|
93
|
+
const H = n.forwardRef(D), d = H;
|
|
94
94
|
d.Meta = u;
|
|
95
|
-
d.Grid =
|
|
95
|
+
d.Grid = C;
|
|
96
96
|
d.displayName = "Card";
|
|
97
97
|
export {
|
|
98
98
|
d as default
|
package/carousel/Arrow.js
CHANGED
|
@@ -4,10 +4,10 @@ import x from "@unicom-cloud/icons/IconUiLeft";
|
|
|
4
4
|
import u from "@unicom-cloud/icons/IconUiRight";
|
|
5
5
|
import C from "@unicom-cloud/icons/IconUiUp";
|
|
6
6
|
import b, { useContext as y } from "react";
|
|
7
|
-
import { a as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
function
|
|
7
|
+
import { a as N } from "../chunk/CQvM33Vg.js";
|
|
8
|
+
import { u as $ } from "../chunk/BYdIoY50.js";
|
|
9
|
+
import I from "@unicom-cloud/utils/class-name";
|
|
10
|
+
function P(i, c) {
|
|
11
11
|
const {
|
|
12
12
|
className: l,
|
|
13
13
|
direction: t = "horizontal",
|
|
@@ -15,7 +15,7 @@ function g(i, c) {
|
|
|
15
15
|
prev: n,
|
|
16
16
|
next: s,
|
|
17
17
|
icons: o
|
|
18
|
-
} = i, a =
|
|
18
|
+
} = i, a = $(), { getPrefixCls: p } = y(N), e = p("carousel"), f = I(
|
|
19
19
|
`${e}-arrow`,
|
|
20
20
|
{
|
|
21
21
|
[`${e}-arrow-hover`]: m === "hover"
|
|
@@ -48,7 +48,7 @@ function g(i, c) {
|
|
|
48
48
|
] });
|
|
49
49
|
}
|
|
50
50
|
const K = b.forwardRef(
|
|
51
|
-
|
|
51
|
+
P
|
|
52
52
|
);
|
|
53
53
|
export {
|
|
54
54
|
K as default
|