@unicom-cloud/ui 0.8.70 → 0.8.71
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 +1 -1
- package/Alert.js +2 -2
- package/AutoComplete.js +1 -1
- package/BackTop.js +2 -2
- package/Badge.js +2 -2
- package/Breadcrumb.js +2 -2
- 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 +2 -2
- 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 +1 -1
- package/Mentions.js +1 -1
- package/Menu.js +1 -1
- package/Message.js +2 -2
- package/Modal.js +1 -1
- package/Notice.js +2 -2
- package/Notification.js +2 -2
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +1 -1
- package/SpeechSynthesis.js +3 -3
- package/Spin.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/Switch.js +2 -2
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/Tooltip.js +1 -1
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/Trigger.js +3 -3
- package/affix/index.js +1 -1
- package/alert/index.js +2 -2
- package/anchor/Anchor.js +1 -1
- package/anchor/Link.js +1 -1
- package/auto-complete/index.js +1 -1
- 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 +2 -2
- package/breadcrumb/index.js +2 -2
- 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 +2 -2
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +2 -2
- package/checkbox/Group.js +2 -2
- package/checkbox/index.js +1 -1
- package/chunk/{Cm9BS47C.js → 8V534cS3.js} +3 -3
- package/chunk/{CCv-5KFt.js → BHL-PzAD.js} +149 -152
- package/chunk/{B80D01PB.js → BlElSWJg.js} +2 -2
- package/chunk/{Bh8AO6R8.js → BzPNDYAX.js} +1 -1
- package/chunk/{tIRvN_q7.js → C5X9bDyX.js} +3 -3
- package/chunk/C6AJxF7d.js +1820 -0
- package/chunk/CQTxhsUk.js +170 -0
- package/chunk/{DFf75sXd.js → CUs1AOCZ.js} +2 -2
- package/chunk/{CASwN1hB.js → CZWGeRVA.js} +188 -183
- package/chunk/{C48SmsN-.js → ClaNycDy.js} +27 -18
- package/chunk/{-C2QiGwq.js → D2DSUGNT.js} +1 -1
- package/chunk/{DonYzv30.js → DV7ywe_q.js} +1 -1
- package/chunk/{YUHbzjGj.js → Dm1NCTkX.js} +3 -3
- package/chunk/{CSk3yQDO.js → EHx6bIK_.js} +3 -3
- package/chunk/{iOWILwNv.js → I1dqAgn_.js} +3 -3
- package/chunk/{DzVH9IBy.js → fFjj2KuF.js} +1 -1
- package/chunk/{bgmEVbGy.js → pEI3aB9Z.js} +2 -2
- package/collapse/Collapse.js +2 -2
- 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 +1 -1
- package/color-picker/InputRgb.js +1 -1
- package/color-picker/Palette.js +1 -1
- package/color-picker/Panel.js +2 -2
- package/color-picker/index.js +1 -1
- package/comment/index.js +1 -1
- package/config-provider/ConfigProvider.js +1 -1
- 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 +1 -1
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +3 -3
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +2 -2
- package/empty/index.js +1 -1
- package/form/Form.js +1 -1
- package/form/FormItem.js +2 -2
- package/form/util.js +11 -11
- package/grid/Col.js +1 -1
- package/grid/Row.js +1 -1
- package/grid/grid-item.js +1 -1
- package/grid/grid.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/useOverrideRef.js +1 -1
- package/icon/index.js +1 -1
- package/icon-hover/index.js +1 -1
- package/image/Image.js +2 -2
- package/image/ImagePreview.js +4 -4
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +16 -16
- package/input/Group.js +1 -1
- package/input/Input.js +1 -1
- package/input/InputElement.js +1 -1
- package/input/Password.js +1 -1
- package/input/Search.js +1 -1
- package/input/Textarea.js +1 -1
- package/input-number/index.js +1 -1
- package/input-tag/InputTag.js +2 -2
- package/layout/Content.js +1 -1
- package/layout/Footer.js +1 -1
- package/layout/Header.js +1 -1
- package/layout/Sider.js +1 -1
- 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 +1 -1
- package/locale/en-US.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/mentions/index.js +1 -1
- package/menu/Menu.js +2 -2
- package/menu/OverflowWrap.js +1 -1
- package/menu/index.js +2 -2
- package/message/index.js +2 -2
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +4 -4
- package/modal/index.js +1 -1
- package/notice/index.js +2 -2
- package/notification/index.js +2 -2
- 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 +1 -1
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/popconfirm/index.js +1 -1
- package/popover/index.js +1 -1
- package/progress/index.js +1 -1
- package/radio/Group.js +2 -2
- package/radio/Radio.js +2 -2
- package/radio/index.js +2 -2
- package/rate/index.js +1 -1
- package/resize-box/ResizeTrigger.js +1 -1
- package/resize-box/Split.js +1 -1
- package/resize-box/SplitGroup.js +1 -1
- package/resize-box/index.js +1 -1
- package/result/index.js +1 -1
- package/select/Option.js +1 -1
- package/select/Select.js +2 -2
- package/select-view/Core.js +1 -1
- package/skeleton/index.js +1 -1
- package/slider/Button.js +1 -1
- package/slider/index.js +1 -1
- package/space/index.js +1 -1
- package/speech-synthesis/index.js +39 -39
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +1 -1
- package/statistic/Countdown.js +1 -1
- package/statistic/index.js +1 -1
- package/steps/index.js +1 -1
- package/switch/index.js +2 -2
- package/table/Table.js +2 -2
- package/table/index.js +3 -3
- package/tabs/Tab.js +2 -2
- 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 +1 -1
- package/transfer/Item.js +2 -2
- package/transfer/List.js +2 -2
- package/transfer/index.js +1 -1
- package/tree/Animation.js +3 -3
- package/tree/Node.js +3 -3
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +2 -2
- package/tree/index.js +1 -1
- package/tree-select/Select.js +1 -1
- package/trigger/index.js +3 -3
- package/types/locale/en-US.d.ts +12 -12
- package/types/locale/tr-TR.d.ts +12 -12
- package/types/table/interface.d.ts +3 -1
- package/types/utils/react19Adapter.d.ts +1 -0
- package/typography/Base.js +1 -1
- package/typography/Ellipsis.js +11 -11
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/index.js +11 -11
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +2 -2
- package/upload/Uploader.js +2 -2
- package/utils/CSSTransition.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/index.js +4 -4
- package/utils/react19Adapter.js +3 -0
- package/utils/reactDOM.js +1 -1
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +1 -1
- package/virtual-list/VirtualList.js +1 -1
- package/watermark/Watermark.js +1 -1
- package/chunk/DC-pxreh.js +0 -1817
- package/chunk/DcYqcuGl.js +0 -166
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { jsx as i, jsxs as z, Fragment as H } from "react/jsx-runtime";
|
|
2
|
+
import _ from "lodash/isFunction";
|
|
3
|
+
import L from "lodash/isNil";
|
|
4
|
+
import Q, { createContext as S, useContext as G, useRef as T } from "react";
|
|
5
|
+
import { a as j, I as q } from "./CZWGeRVA.js";
|
|
6
|
+
import { u as A } from "./BFTV6myl.js";
|
|
7
|
+
import { u as D } from "./CdaT1b_F.js";
|
|
8
|
+
import { m as F } from "./JPPo5nY_.js";
|
|
9
|
+
import { o as E } from "./BKKEev13.js";
|
|
10
|
+
import J from "lodash/isArray";
|
|
11
|
+
import K from "lodash/isPlainObject";
|
|
12
|
+
import { pickTriggerPropsFromRest as U } from "../utils/constant.js";
|
|
13
|
+
import { a as W } from "./ClqoGc3r.js";
|
|
14
|
+
const I = {
|
|
15
|
+
type: "radio"
|
|
16
|
+
}, X = {
|
|
17
|
+
type: "radio",
|
|
18
|
+
mode: "outline",
|
|
19
|
+
direction: "horizontal"
|
|
20
|
+
}, y = S(I), de = ({ children: b }) => /* @__PURE__ */ i(y.Provider, { value: I, children: b });
|
|
21
|
+
function M(b) {
|
|
22
|
+
const {
|
|
23
|
+
getPrefixCls: g,
|
|
24
|
+
size: N,
|
|
25
|
+
componentConfig: d,
|
|
26
|
+
rtl: R
|
|
27
|
+
} = G(j), e = A(
|
|
28
|
+
b,
|
|
29
|
+
X,
|
|
30
|
+
d == null ? void 0 : d["Radio.Group"]
|
|
31
|
+
), {
|
|
32
|
+
style: a,
|
|
33
|
+
className: o,
|
|
34
|
+
name: c,
|
|
35
|
+
children: m,
|
|
36
|
+
direction: p,
|
|
37
|
+
type: k,
|
|
38
|
+
mode: $,
|
|
39
|
+
options: v,
|
|
40
|
+
disabled: t
|
|
41
|
+
} = e, [l, P] = D(void 0, {
|
|
42
|
+
defaultValue: e.defaultValue,
|
|
43
|
+
value: e.value
|
|
44
|
+
}), x = e.size || N, n = g("radio"), V = F(
|
|
45
|
+
`${n}-group`,
|
|
46
|
+
{
|
|
47
|
+
[`${n}-group-type-button`]: k !== "radio",
|
|
48
|
+
[`${n}-size-${x}`]: !!x,
|
|
49
|
+
[`${n}-mode-${$}`]: !!$,
|
|
50
|
+
[`${n}-group-disabled`]: t,
|
|
51
|
+
[`${n}-group-direction-vertical`]: p === "vertical",
|
|
52
|
+
[`${n}-group-rtl`]: R
|
|
53
|
+
},
|
|
54
|
+
o
|
|
55
|
+
), u = {
|
|
56
|
+
onChangeValue: (s, f) => {
|
|
57
|
+
const { onChange: h } = e;
|
|
58
|
+
s !== l && ("value" in e || P(s), h == null || h(s, f));
|
|
59
|
+
},
|
|
60
|
+
type: k,
|
|
61
|
+
value: l,
|
|
62
|
+
disabled: t,
|
|
63
|
+
group: !0,
|
|
64
|
+
name: c
|
|
65
|
+
};
|
|
66
|
+
return /* @__PURE__ */ i(y.Provider, { value: u, children: /* @__PURE__ */ i(
|
|
67
|
+
"div",
|
|
68
|
+
{
|
|
69
|
+
className: V,
|
|
70
|
+
role: "radiogroup",
|
|
71
|
+
style: a,
|
|
72
|
+
...U(e),
|
|
73
|
+
...W(e),
|
|
74
|
+
children: v && J(v) ? v.map((s, f) => {
|
|
75
|
+
const { value: h, label: O, disabled: w, ...B } = s;
|
|
76
|
+
return K(s) ? /* @__PURE__ */ i(
|
|
77
|
+
C,
|
|
78
|
+
{
|
|
79
|
+
...B,
|
|
80
|
+
disabled: t || w,
|
|
81
|
+
value: h,
|
|
82
|
+
children: O
|
|
83
|
+
},
|
|
84
|
+
h
|
|
85
|
+
) : /* @__PURE__ */ i(C, { value: s, disabled: t, children: s }, f);
|
|
86
|
+
}) : m
|
|
87
|
+
}
|
|
88
|
+
) });
|
|
89
|
+
}
|
|
90
|
+
M.displayName = "RadioGroup";
|
|
91
|
+
function C(b) {
|
|
92
|
+
const g = T(null), { getPrefixCls: N, componentConfig: d, rtl: R } = G(j), e = A(
|
|
93
|
+
b,
|
|
94
|
+
{},
|
|
95
|
+
d == null ? void 0 : d.Radio
|
|
96
|
+
), a = G(y), o = N("radio"), c = { ...e };
|
|
97
|
+
a.group && (c.checked = a.value === e.value, c.disabled = "disabled" in e ? e.disabled : a.disabled);
|
|
98
|
+
const { disabled: m, children: p, value: k, style: $, className: v, ...t } = c, [l, P] = D(!1, {
|
|
99
|
+
value: c.checked,
|
|
100
|
+
defaultValue: c.defaultChecked
|
|
101
|
+
}), x = F(
|
|
102
|
+
`${o}${a.type === "button" ? "-button" : ""}`,
|
|
103
|
+
{
|
|
104
|
+
[`${o}-checked`]: l,
|
|
105
|
+
[`${o}-disabled`]: m,
|
|
106
|
+
[`${o}-rtl`]: R
|
|
107
|
+
},
|
|
108
|
+
v
|
|
109
|
+
), n = (r) => {
|
|
110
|
+
var f;
|
|
111
|
+
const { onChange: u, value: s } = c;
|
|
112
|
+
m || (a.group ? (f = a.onChangeValue) == null || f.call(a, s, r) : !("checked" in e) && !l && P(!0), !l && (u == null || u(!0, r)));
|
|
113
|
+
}, V = Q.useCallback(
|
|
114
|
+
(r) => {
|
|
115
|
+
var u;
|
|
116
|
+
_(e.children) && (r.preventDefault(), g.current && g.current.click()), (u = t.onClick) == null || u.call(t, r);
|
|
117
|
+
},
|
|
118
|
+
[e.children, t.onClick]
|
|
119
|
+
);
|
|
120
|
+
return /* @__PURE__ */ z(
|
|
121
|
+
"label",
|
|
122
|
+
{
|
|
123
|
+
...E(t, ["checked", "onChange"]),
|
|
124
|
+
onClick: V,
|
|
125
|
+
style: $,
|
|
126
|
+
className: x,
|
|
127
|
+
children: [
|
|
128
|
+
/* @__PURE__ */ i(
|
|
129
|
+
"input",
|
|
130
|
+
{
|
|
131
|
+
ref: g,
|
|
132
|
+
disabled: m,
|
|
133
|
+
value: k || "",
|
|
134
|
+
type: "radio",
|
|
135
|
+
...a.name ? { name: a.name } : {},
|
|
136
|
+
checked: l,
|
|
137
|
+
onChange: (r) => {
|
|
138
|
+
r.persist(), n(r);
|
|
139
|
+
},
|
|
140
|
+
onClick: (r) => {
|
|
141
|
+
r.stopPropagation();
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
),
|
|
145
|
+
_(p) ? p({ checked: l }) : a.type === "radio" ? /* @__PURE__ */ z(H, { children: [
|
|
146
|
+
/* @__PURE__ */ i(
|
|
147
|
+
q,
|
|
148
|
+
{
|
|
149
|
+
prefix: o,
|
|
150
|
+
className: `${o}-mask-wrapper`,
|
|
151
|
+
disabled: l || m,
|
|
152
|
+
children: /* @__PURE__ */ i("div", { className: `${o}-mask` })
|
|
153
|
+
}
|
|
154
|
+
),
|
|
155
|
+
!L(p) && /* @__PURE__ */ i("span", { className: `${o}-text`, children: p })
|
|
156
|
+
] }) : a.type === "button" && /* @__PURE__ */ i("span", { className: `${o}-button-inner`, children: p })
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
C.__PQB_RADIO = !0;
|
|
162
|
+
C.displayName = "Radio";
|
|
163
|
+
C.Group = M;
|
|
164
|
+
C.GroupContext = y;
|
|
165
|
+
export {
|
|
166
|
+
de as C,
|
|
167
|
+
M as G,
|
|
168
|
+
C as R,
|
|
169
|
+
y as a
|
|
170
|
+
};
|
|
@@ -3,7 +3,7 @@ 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 "./CZWGeRVA.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";
|
|
@@ -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 "./fFjj2KuF.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";
|