@unicom-cloud/ui 0.8.75 → 0.8.77
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 +1 -1
- package/AutoComplete.js +3 -5
- package/BackTop.js +1 -1
- package/Badge.js +1 -1
- package/Breadcrumb.js +2 -2
- package/Button.js +1 -1
- package/Calendar.js +3 -3
- package/Card.js +1 -1
- package/Carousel.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +6 -2
- package/Collapse.js +1 -1
- package/ColorPicker.js +3 -4
- package/Comment.js +1 -1
- package/ConfigProvider.js +2 -3
- 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 +1 -1
- 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 +5 -6
- package/Mentions.js +3 -4
- package/Menu.js +1 -1
- package/Message.js +1 -1
- package/Modal.js +1 -1
- package/Notice.js +1 -1
- package/Notification.js +1 -1
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Pagination.js +2 -2
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/Radio.js +5 -4
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/Select.js +5 -6
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +1 -1
- package/SpeechSynthesis.js +4 -3
- package/Spin.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/Switch.js +1 -1
- package/Table.js +15 -16
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/Tooltip.js +2 -2
- package/Transfer.js +3 -4
- package/Tree.js +2 -3
- package/TreeSelect.js +3 -3
- package/Trigger.js +1 -1
- package/Typography.js +3 -3
- package/affix/index.js +86 -82
- package/alert/index.js +1 -1
- package/anchor/Anchor.js +1 -1
- package/anchor/Link.js +1 -1
- package/auto-complete/index.js +13 -147
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/back-top/index.js +1 -1
- package/badge/index.js +1 -1
- package/breadcrumb/index.js +2 -2
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +12 -318
- 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 +8 -8
- package/checkbox/Checkbox.js +7 -4
- package/checkbox/Group.js +5 -5
- package/checkbox/GroupBlock.js +8 -0
- package/checkbox/index.js +7 -2
- package/chunk/{BbqvFW5R.js → 9TSjT7x_.js} +112 -112
- package/chunk/ATwvJ8j2.js +6 -0
- package/chunk/{Dv6USvVF.js → BC5fEyWK.js} +2 -1
- package/chunk/{WVoGhvMI.js → BPQXH_5i.js} +32 -31
- package/chunk/{BPD5iNdA.js → CB4jGw4K.js} +22 -18
- package/chunk/{B8hkFIar.js → CBgu99gQ.js} +1 -1
- package/chunk/CBzE-PUr.js +23 -0
- package/chunk/CNcLypMY.js +723 -0
- package/chunk/{CPlPBkN7.js → C_4I3haT.js} +1 -1
- package/chunk/{0mWCmQHr.js → CjqvxJml.js} +2 -2
- package/chunk/Cwm8LL5p.js +7818 -0
- package/chunk/D0ZWT7db.js +5 -0
- package/chunk/{CWlklVfi.js → tpmioyz1.js} +1 -1
- package/collapse/Collapse.js +2 -2
- package/collapse/Item.js +2 -2
- 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 +2 -2
- package/color-picker/InputRgb.js +2 -2
- package/color-picker/Palette.js +2 -2
- package/color-picker/Panel.js +15 -266
- package/color-picker/colors.js +4 -4
- package/color-picker/index.js +13 -268
- package/color-picker/utils.js +1 -1
- package/comment/index.js +1 -1
- package/config-provider/ConfigProvider.js +4 -6
- package/config-provider/context.js +3 -2
- package/config-provider/index.js +4 -5
- 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 +30 -21
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +1 -1
- package/empty/index.js +1 -1
- package/form/Form.js +10 -10
- package/form/FormItem.js +1 -1
- package/form/context.js +1 -1
- 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/useWindowSize.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 +2 -2
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +453 -463
- 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 +1 -1
- 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 +17 -267
- package/mentions/index.js +11 -144
- package/menu/Menu.js +2 -2
- package/menu/OverflowWrap.js +1 -1
- package/menu/index.js +2 -2
- package/message/index.js +1 -1
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +2 -2
- package/modal/index.js +1 -1
- package/notice/index.js +1 -1
- package/notification/index.js +1 -1
- 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 +5 -45
- package/pagination/Pagination.js +11 -243
- package/pagination/index.js +2 -2
- 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 +5 -5
- package/radio/GroupBlock.js +9 -0
- package/radio/Radio.js +6 -5
- package/radio/index.js +4 -3
- 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 +6 -93
- package/select/Select.js +23 -546
- package/select/index.js +3 -3
- package/select/util.js +18 -139
- 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 +4 -3
- 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/style/variables.less +0 -484
- package/style.css +1 -1
- package/switch/index.js +1 -1
- package/table/Table.js +2 -3
- package/table/index.js +15 -109
- 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 +2 -2
- package/transfer/Item.js +9 -104
- package/transfer/List.js +13 -184
- package/transfer/index.js +13 -180
- package/tree/Animation.js +2 -2
- package/tree/Node.js +3 -4
- package/tree/NodeList.js +6 -80
- package/tree/Tree.js +17 -578
- package/tree/index.js +2 -3
- package/tree-select/List.js +6 -122
- package/tree-select/Select.js +22 -392
- package/tree-select/index.js +3 -3
- package/trigger/index.js +1 -1
- package/types/checkbox/Checkbox.d.ts +5 -2
- package/types/checkbox/GroupBlock.d.ts +7 -0
- package/types/checkbox/index.d.ts +2 -1
- package/types/config-provider/ConfigProvider.d.ts +0 -27
- package/types/config-provider/interface.d.ts +3 -1
- package/types/index.d.ts +2 -2
- package/types/menu/context.d.ts +1 -1
- package/types/radio/GroupBlock.d.ts +7 -0
- package/types/radio/Radio.d.ts +5 -3
- package/types/utils/constant.d.ts +2 -1
- package/types/utils/index.d.ts +1 -0
- package/types/utils/setDarkTheme.d.ts +2 -3
- package/types/utils/setPrimaryColor.d.ts +2 -0
- package/typography/Base.js +1 -1
- package/typography/Ellipsis.js +9 -22
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/index.js +10 -276
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +1 -1
- package/upload/Uploader.js +43 -44
- package/upload/request.js +1 -1
- package/upload/request_.js +1 -1
- package/utils/caseName.js +1 -1
- package/utils/color.js +1 -1
- package/utils/constant.js +7 -5
- package/utils/contextHolder.js +1 -1
- package/utils/dom.js +1 -1
- package/utils/index.js +199 -195
- package/utils/setDarkTheme.js +34 -5
- package/utils/setPrimaryColor.js +26 -0
- package/utils/tinycolor.js +1 -1
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +1 -1
- package/watermark/Watermark.js +1 -1
- package/chunk/BViFMHr-.js +0 -1820
- package/chunk/BsWphzcT.js +0 -20
- package/chunk/BxZ39GzB.js +0 -209
- package/chunk/C9XYyypq.js +0 -713
- package/chunk/CIkPwQlq.js +0 -6
- package/chunk/DFcz9ZPP.js +0 -1020
- package/chunk/DeCsZrXb.js +0 -310
- package/chunk/DskaI8QL.js +0 -25
- package/chunk/EL5Jmjgr.js +0 -170
package/chunk/BsWphzcT.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import p from "lodash/camelCase.js";
|
|
2
|
-
import s from "lodash/capitalize.js";
|
|
3
|
-
import f from "lodash/kebabCase.js";
|
|
4
|
-
import n from "lodash/snakeCase.js";
|
|
5
|
-
import C from "lodash/startCase.js";
|
|
6
|
-
import N from "lodash/upperFirst.js";
|
|
7
|
-
function x(m) {
|
|
8
|
-
const o = f(m), r = s(m), e = p(m), t = n(m), a = C(m), i = N(e);
|
|
9
|
-
return {
|
|
10
|
-
kebabCaseName: o,
|
|
11
|
-
capitalizeName: r,
|
|
12
|
-
camelCaseName: e,
|
|
13
|
-
snakeCaseName: t,
|
|
14
|
-
startCaseName: a,
|
|
15
|
-
ComponentCaseName: i
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
x as d
|
|
20
|
-
};
|
package/chunk/BxZ39GzB.js
DELETED
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
import { jsx as n, jsxs as A, Fragment as L } from "react/jsx-runtime";
|
|
2
|
-
import T from "@unicom-cloud/icons/IconUiCheck";
|
|
3
|
-
import W from "@unicom-cloud/icons/IconUiMinus";
|
|
4
|
-
import E from "lodash/isFunction";
|
|
5
|
-
import q from "lodash/isNil";
|
|
6
|
-
import $, { createContext as B, useState as J, useContext as I, useCallback as F, useRef as K, useEffect as Q } from "react";
|
|
7
|
-
import { a as M, I as X } from "./C9XYyypq.js";
|
|
8
|
-
import { u as Y } from "./BFTV6myl.js";
|
|
9
|
-
import { u as S } from "./DeV0v__J.js";
|
|
10
|
-
import { p as U } from "./CUFsOxJ2.js";
|
|
11
|
-
import { o as Z } from "./BKKEev13.js";
|
|
12
|
-
import _ from "lodash/isArray";
|
|
13
|
-
import N from "lodash/isPlainObject";
|
|
14
|
-
import { pickTriggerPropsFromRest as ee } from "../utils/constant.js";
|
|
15
|
-
import ae from "../checkbox/useCheckbox.js";
|
|
16
|
-
const z = {
|
|
17
|
-
isCheckboxGroup: !1,
|
|
18
|
-
checkboxGroupValue: [],
|
|
19
|
-
onGroupChange: () => {
|
|
20
|
-
},
|
|
21
|
-
registerValue: () => {
|
|
22
|
-
},
|
|
23
|
-
unRegisterValue: () => {
|
|
24
|
-
}
|
|
25
|
-
}, j = B(z), xe = ({
|
|
26
|
-
children: c
|
|
27
|
-
}) => /* @__PURE__ */ n(j.Provider, { value: z, children: c });
|
|
28
|
-
function D(c) {
|
|
29
|
-
const [m, x] = S([], {
|
|
30
|
-
defaultValue: "defaultValue" in c ? c.defaultValue || [] : void 0,
|
|
31
|
-
value: "value" in c ? c.value || [] : void 0
|
|
32
|
-
}), [p, h] = J([]), { getPrefixCls: P, rtl: r } = I(M), {
|
|
33
|
-
disabled: t,
|
|
34
|
-
options: a,
|
|
35
|
-
style: f,
|
|
36
|
-
className: l,
|
|
37
|
-
error: k,
|
|
38
|
-
children: C,
|
|
39
|
-
direction: v = "horizontal"
|
|
40
|
-
} = c, u = P("checkbox"), R = U(
|
|
41
|
-
`${u}-group`,
|
|
42
|
-
{
|
|
43
|
-
[`${u}-group-is-error`]: k,
|
|
44
|
-
[`${u}-group-direction-${v}`]: v,
|
|
45
|
-
[`${u}-group-rtl`]: r
|
|
46
|
-
},
|
|
47
|
-
l
|
|
48
|
-
), b = F(
|
|
49
|
-
(e, o, i) => {
|
|
50
|
-
var V;
|
|
51
|
-
const d = m.slice();
|
|
52
|
-
o ? d.push(e) : d.splice(m.indexOf(e), 1), x(d), (V = c.onChange) == null || V.call(
|
|
53
|
-
c,
|
|
54
|
-
d.filter((O) => p.indexOf(O) > -1),
|
|
55
|
-
i
|
|
56
|
-
);
|
|
57
|
-
},
|
|
58
|
-
[m, c.onChange, p]
|
|
59
|
-
);
|
|
60
|
-
return /* @__PURE__ */ n(
|
|
61
|
-
"span",
|
|
62
|
-
{
|
|
63
|
-
className: R,
|
|
64
|
-
style: f,
|
|
65
|
-
...ee(c),
|
|
66
|
-
children: /* @__PURE__ */ n(
|
|
67
|
-
j.Provider,
|
|
68
|
-
{
|
|
69
|
-
value: {
|
|
70
|
-
isCheckboxGroup: !0,
|
|
71
|
-
checkboxGroupValue: m,
|
|
72
|
-
onGroupChange: b,
|
|
73
|
-
disabled: t,
|
|
74
|
-
registerValue: (e) => {
|
|
75
|
-
h((o) => Array.from(/* @__PURE__ */ new Set([...o, e])));
|
|
76
|
-
},
|
|
77
|
-
unRegisterValue: (e) => {
|
|
78
|
-
h((o) => o.filter((i) => i !== e));
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
children: _(a) ? a.map((e) => {
|
|
82
|
-
const o = N(e) ? e.label : e, i = N(e) ? e.value : e, d = N(e) ? e.icon : void 0;
|
|
83
|
-
return /* @__PURE__ */ n(
|
|
84
|
-
y,
|
|
85
|
-
{
|
|
86
|
-
disabled: t || N(e) && e.disabled,
|
|
87
|
-
value: i,
|
|
88
|
-
icon: d,
|
|
89
|
-
children: o
|
|
90
|
-
},
|
|
91
|
-
i
|
|
92
|
-
);
|
|
93
|
-
}) : C
|
|
94
|
-
}
|
|
95
|
-
)
|
|
96
|
-
}
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
D.displayName = "CheckboxGroup";
|
|
100
|
-
function ce(c, m) {
|
|
101
|
-
const x = K(null), { getPrefixCls: p, componentConfig: h, rtl: P } = I(M), r = Y(
|
|
102
|
-
c,
|
|
103
|
-
{},
|
|
104
|
-
h == null ? void 0 : h.Checkbox
|
|
105
|
-
), t = I(j), a = p("checkbox"), { onGroupChange: f } = t, l = { ...r };
|
|
106
|
-
t.isCheckboxGroup && (l.checked = t.checkboxGroupValue.indexOf(r.value) !== -1, l.disabled = "disabled" in r ? r.disabled : t.disabled);
|
|
107
|
-
const {
|
|
108
|
-
disabled: k,
|
|
109
|
-
children: C,
|
|
110
|
-
className: v,
|
|
111
|
-
value: u,
|
|
112
|
-
style: R,
|
|
113
|
-
indeterminate: b,
|
|
114
|
-
error: e,
|
|
115
|
-
...o
|
|
116
|
-
} = l, [i, d] = S(!1, {
|
|
117
|
-
value: l.checked,
|
|
118
|
-
defaultValue: l.defaultChecked
|
|
119
|
-
}), V = U(
|
|
120
|
-
a,
|
|
121
|
-
{
|
|
122
|
-
[`${a}-disabled`]: !!k,
|
|
123
|
-
[`${a}-indeterminate`]: !!b,
|
|
124
|
-
[`${a}-checked`]: i,
|
|
125
|
-
[`${a}-rtl`]: P,
|
|
126
|
-
error: e
|
|
127
|
-
},
|
|
128
|
-
v
|
|
129
|
-
);
|
|
130
|
-
Q(() => (t.registerValue(u), () => {
|
|
131
|
-
t.unRegisterValue(u);
|
|
132
|
-
}), [u]);
|
|
133
|
-
const O = F(
|
|
134
|
-
(s) => {
|
|
135
|
-
var g;
|
|
136
|
-
s.persist(), s.stopPropagation(), d(s.target.checked), t.isCheckboxGroup && (f == null || f(r.value, s.target.checked, s)), (g = r.onChange) == null || g.call(r, s.target.checked, s);
|
|
137
|
-
},
|
|
138
|
-
[f, t.isCheckboxGroup, r.onChange, r.value]
|
|
139
|
-
), H = $.useCallback(
|
|
140
|
-
(s) => {
|
|
141
|
-
var g;
|
|
142
|
-
E(r.children) && (s.preventDefault(), x.current && x.current.click()), (g = o.onClick) == null || g.call(o, s);
|
|
143
|
-
},
|
|
144
|
-
[r.children, o.onClick]
|
|
145
|
-
), w = { strokeWidth: 10 };
|
|
146
|
-
let G = /* @__PURE__ */ n(
|
|
147
|
-
T,
|
|
148
|
-
{
|
|
149
|
-
className: `${a}-mask-icon`,
|
|
150
|
-
style: { ...w }
|
|
151
|
-
}
|
|
152
|
-
);
|
|
153
|
-
return l.icon && ($.isValidElement(l.icon) ? G = $.cloneElement(l.icon, {
|
|
154
|
-
className: `${a}-mask-icon`,
|
|
155
|
-
style: { ...w }
|
|
156
|
-
}) : G = l.icon), b && (G = /* @__PURE__ */ n(
|
|
157
|
-
W,
|
|
158
|
-
{
|
|
159
|
-
className: `${a}-mask-icon`,
|
|
160
|
-
style: { ...w }
|
|
161
|
-
}
|
|
162
|
-
)), /* @__PURE__ */ A(
|
|
163
|
-
"label",
|
|
164
|
-
{
|
|
165
|
-
ref: m,
|
|
166
|
-
"aria-disabled": k,
|
|
167
|
-
...Z(o, ["onChange"]),
|
|
168
|
-
onClick: H,
|
|
169
|
-
className: V,
|
|
170
|
-
style: R,
|
|
171
|
-
children: [
|
|
172
|
-
/* @__PURE__ */ n(
|
|
173
|
-
"input",
|
|
174
|
-
{
|
|
175
|
-
value: u,
|
|
176
|
-
disabled: !!k,
|
|
177
|
-
ref: x,
|
|
178
|
-
checked: !!i,
|
|
179
|
-
onChange: O,
|
|
180
|
-
onClick: (s) => s.stopPropagation(),
|
|
181
|
-
type: "checkbox"
|
|
182
|
-
}
|
|
183
|
-
),
|
|
184
|
-
E(C) ? C({ checked: i, indeterminate: b }) : /* @__PURE__ */ A(L, { children: [
|
|
185
|
-
/* @__PURE__ */ n(
|
|
186
|
-
X,
|
|
187
|
-
{
|
|
188
|
-
prefix: a,
|
|
189
|
-
className: `${a}-mask-wrapper`,
|
|
190
|
-
disabled: i || k || b,
|
|
191
|
-
children: /* @__PURE__ */ n("div", { className: `${a}-mask`, children: G })
|
|
192
|
-
}
|
|
193
|
-
),
|
|
194
|
-
!q(C) && /* @__PURE__ */ n("span", { className: `${a}-text`, children: C })
|
|
195
|
-
] })
|
|
196
|
-
]
|
|
197
|
-
}
|
|
198
|
-
);
|
|
199
|
-
}
|
|
200
|
-
const y = $.forwardRef(ce);
|
|
201
|
-
y.displayName = "Checkbox";
|
|
202
|
-
y.Group = D;
|
|
203
|
-
y.useCheckbox = ae;
|
|
204
|
-
export {
|
|
205
|
-
y as C,
|
|
206
|
-
D as G,
|
|
207
|
-
j as a,
|
|
208
|
-
xe as b
|
|
209
|
-
};
|