@unicom-cloud/ui 0.8.113 → 0.8.115
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 +1 -1
- package/BackTop.js +3 -3
- 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/ColorPicker.js +1 -1
- package/Comment.js +1 -1
- package/ConfigProvider.js +1 -1
- package/Copy.js +1 -1
- package/Countdown.js +4 -4
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Details.js +4 -4
- package/Development.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Dropdown.js +2 -2
- package/Empty.js +1 -1
- package/Flex.js +4 -4
- package/Form.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/LiquidFill.js +4 -4
- package/List.js +6 -5
- package/Loading.js +4 -4
- package/Marquee.js +7 -6
- package/Mentions.js +1 -1
- package/Menu.js +1 -1
- package/Message.js +2 -2
- package/Modal.js +1 -1
- package/Notice.js +4 -4
- package/Notification.js +2 -2
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Pagination.js +4 -2
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/QrCode.js +7 -7
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +2 -2
- package/Result.js +1 -1
- package/RichText.js +1 -1
- package/Segmented.js +4 -4
- package/Skeleton.js +1 -1
- package/Slider.js +2 -2
- package/Space.js +4 -4
- 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/Tour.js +4 -4
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +3 -3
- package/affix/index.js +2 -2
- package/alert/index.js +2 -2
- package/anchor/Anchor.js +2 -2
- package/anchor/Link.js +1 -1
- package/app/App.js +2 -2
- package/auto-complete/index.js +1 -1
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/back-top/index.js +3 -3
- 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/GroupBlock.js +2 -2
- package/checkbox/index.js +2 -2
- package/chunk/{C6A94b7f.js → BcWPf1id.js} +1 -1
- package/chunk/BcdTSJks.js +48 -0
- package/chunk/{RjJoagzL.js → CEAeR6xB.js} +1 -1
- package/chunk/{yWKJUe_w.js → CKojyqln.js} +4 -4
- package/chunk/{DrYaod6k.js → CRgtPpMG.js} +1 -1
- package/chunk/{3t4FwEoB.js → CVjWKHBo.js} +1 -1
- package/chunk/{DB0hUIM1.js → CYPFoLks.js} +4 -4
- package/chunk/{D0dVE1v1.js → CcH9qbbg.js} +418 -416
- package/chunk/{Bzx5BueA.js → Ch4iApRQ.js} +2 -2
- package/chunk/{CbXCgtzv.js → Cs9GrNJa.js} +5 -5
- package/chunk/CxbF1opI.js +231 -0
- package/chunk/{CRdegvoa.js → D3F0iWPu.js} +1 -1
- package/chunk/{DzlfiVe2.js → D6I1_o6O.js} +1 -1
- package/chunk/{DA5AMZwY.js → DPDyV8yt.js} +3 -3
- package/chunk/{B--6x-RL.js → DQ8_XXrH.js} +1 -1
- package/chunk/{hc_ufgVf.js → DmHIX8hU.js} +166 -121
- package/chunk/{CYDaUML7.js → DstheLSK.js} +4 -4
- package/chunk/{BHAu6wbC.js → HFPyZ48d.js} +37 -35
- package/chunk/{Bcl7dWlJ.js → efH9HX0H.js} +3 -3
- package/chunk/exc7v_Hl.js +53 -0
- package/collapse/Collapse.js +2 -2
- package/collapse/Item.js +2 -2
- 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/countdown/index.js +4 -4
- package/date-picker/Picker.js +1 -1
- package/date-picker/RangePicker.js +2 -2
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +1 -1
- package/details/index.js +4 -4
- package/development/index.js +1 -1
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +89 -93
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +2 -2
- package/empty/index.js +1 -1
- package/flex/index.js +4 -4
- package/form/Control.js +115 -103
- package/form/Form.js +2 -2
- package/form/FormItem.js +2 -2
- package/form/index.js +1 -1
- package/form/promisify.js +10 -19
- package/form/store.js +3 -3
- package/form/util.js +62 -52
- package/grid/Grid.js +1 -1
- package/grid/Item.js +1 -1
- package/hooks/index.js +3 -3
- package/hooks/useInView.js +1 -1
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useOverrideRef.js +1 -1
- package/hooks/useWatermark.js +1 -1
- package/icon/addFromIconFontCn.js +1 -1
- package/icon/index.js +2 -2
- package/icon-hover/index.js +1 -1
- package/icons/file.js +1 -1
- package/image/Image.js +3 -3
- package/image/ImagePreview.js +6 -6
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +739 -726
- package/input/Button.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +2 -2
- 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/autoSizeTextAreaHeight.js +29 -20
- 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/liquid-fill/index.js +4 -4
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +2 -1
- package/loading/index.js +4 -4
- package/locale/en-US.js +5 -3
- package/locale/tr-TR.js +5 -3
- package/marquee/index.js +7 -6
- package/marquee-/index.js +7 -6
- 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 +5 -5
- package/modal/index.js +2 -2
- package/notice/index.js +4 -4
- 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 +103 -31
- package/pagination/Pagination.js +38 -35
- package/pagination/index.js +2 -0
- 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/qr-code/index.js +1233 -45
- package/radio/Group.js +2 -2
- package/radio/GroupBlock.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 +2 -2
- package/resize-box/SplitGroup.js +2 -2
- package/resize-box/index.js +2 -2
- package/result/index.js +1 -1
- package/rich-text/index.js +1 -1
- package/row-col/Col-.js +1 -1
- package/row-col/Col.js +1 -1
- package/row-col/Row.js +1 -1
- package/segmented/index.js +21 -21
- 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 +2 -2
- package/slider/index.js +2 -2
- package/space/index.js +4 -4
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +1 -1
- package/splitter/Panel.js +1 -1
- package/splitter/SplitBar.js +2 -2
- package/splitter/Splitter.js +2 -2
- package/statistic/index.js +1 -1
- package/steps/index.js +1 -1
- package/style.css +1 -1
- package/switch/index.js +2 -2
- package/table/Table.js +5 -4
- package/table/index.js +4 -4
- 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/tour/index.js +4 -4
- 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 +2 -2
- package/tree-select/index.js +1 -1
- package/trigger/getPopupStyle.js +1 -1
- package/trigger/index.js +145 -145
- package/types/common/hooks/useWindowSize.d.ts +4 -4
- package/types/common/utils/dom.d.ts +1 -1
- package/types/common/utils/lodash.d.ts +2 -1
- package/types/common/utils/reactDOM.d.ts +10 -1
- package/types/common/utils/validate.d.ts +2 -0
- package/types/pc/form/interface.d.ts +6 -1
- package/types/pc/form/promisify.d.ts +5 -0
- package/types/pc/form/store.d.ts +1 -1
- package/types/pc/form/util.d.ts +1 -1
- package/types/pc/input/autoSizeTextAreaHeight.d.ts +4 -2
- package/types/pc/pagination/PageOption.d.ts +3 -0
- package/types/pc/pagination/index.d.ts +2 -0
- package/types/pc/pagination/interface.d.ts +5 -0
- package/types/pc/qr-code/examples/demo.d.ts +1 -0
- package/types/pc/qr-code/examples/download.d.ts +2 -0
- package/types/pc/qr-code/examples/full.d.ts +2 -0
- package/types/pc/qr-code/examples/image.d.ts +2 -0
- package/types/pc/qr-code/index.d.ts +2 -0
- package/types/pc/qr-code/src/index.d.ts +116 -0
- package/types/pc/qr-code/src/qrcodegen.d.ts +95 -0
- package/types/pc/qr-code/src/qrcodegen2.d.ts +325 -0
- package/types/pc/utils/validate.d.ts +1 -1
- package/typography/Base.js +1 -1
- package/typography/Ellipsis.js +2 -2
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +2 -2
- package/upload/Uploader.js +1 -1
- package/upload/request_.js +1972 -41
- package/utils/PqbCSSTransition.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/dom.js +1 -1
- package/utils/index.js +247 -235
- package/utils/lodash.js +33 -32
- package/utils/react19Adapter.js +1 -1
- package/utils/reactDOM.js +1 -1
- package/utils/validate.js +15 -5
- 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/CXrVhA6-.js +0 -54
- package/chunk/De8RLlOK.js +0 -231
- package/chunk/d1c9z8T1.js +0 -49
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as I, jsxs as N } from "react/jsx-runtime";
|
|
2
2
|
import R, { forwardRef as b, useContext as w, useRef as F, createElement as j } from "react";
|
|
3
|
-
import { a as z } from "../chunk/
|
|
3
|
+
import { a as z } from "../chunk/DstheLSK.js";
|
|
4
4
|
import { u as D } from "../chunk/FgWHhRFz.js";
|
|
5
5
|
import E from "../input/InputElement.js";
|
|
6
6
|
import p from "@unicom-cloud/utils/class-name";
|
package/version/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { u as Yt } from "../chunk/Cy26_CKq.js";
|
|
|
10
10
|
import { r as qt } from "../chunk/CHQ8c547.js";
|
|
11
11
|
import xt from "./Filler.js";
|
|
12
12
|
import { g as Gt } from "../chunk/DKHXj8Kf.js";
|
|
13
|
-
import { f as Wt } from "../chunk/
|
|
13
|
+
import { f as Wt } from "../chunk/exc7v_Hl.js";
|
|
14
14
|
function zt(o, s, r, e) {
|
|
15
15
|
const l = r - o, i = s - r, I = Math.min(l, i) * 2;
|
|
16
16
|
if (e <= I) {
|
package/watermark/Watermark.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as l, useContext as p, useRef as u, useCallback as g, useEffect as d } from "react";
|
|
3
|
-
import { a as C } from "../chunk/
|
|
3
|
+
import { a as C } from "../chunk/DstheLSK.js";
|
|
4
4
|
import { useWatermark as h } from "../hooks/useWatermark.js";
|
|
5
5
|
import { u as x } from "../chunk/FgWHhRFz.js";
|
|
6
6
|
import k from "@unicom-cloud/utils/class-name";
|
package/chunk/CXrVhA6-.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { Component as s } from "react";
|
|
2
|
-
import u, { findDOMNode as f } from "react-dom";
|
|
3
|
-
import d from "react-dom/client";
|
|
4
|
-
import { g as c, f as l } from "./DsaQZE4X.js";
|
|
5
|
-
import m from "../utils/warning.js";
|
|
6
|
-
import { isFunction as o } from "@unicom-cloud/utils/is";
|
|
7
|
-
const p = u;
|
|
8
|
-
let a;
|
|
9
|
-
try {
|
|
10
|
-
a = p.createRoot || d.createRoot;
|
|
11
|
-
} catch (t) {
|
|
12
|
-
console.error(t);
|
|
13
|
-
}
|
|
14
|
-
let i;
|
|
15
|
-
function R(t) {
|
|
16
|
-
const r = t.constructor;
|
|
17
|
-
if (!o(r)) return !1;
|
|
18
|
-
i ||= /* @__PURE__ */ new WeakSet();
|
|
19
|
-
const e = i.has(r);
|
|
20
|
-
return i.add(r), e;
|
|
21
|
-
}
|
|
22
|
-
function E(t, r) {
|
|
23
|
-
if (!t) return null;
|
|
24
|
-
const e = t;
|
|
25
|
-
if (t instanceof Element)
|
|
26
|
-
return t;
|
|
27
|
-
if (e.dom instanceof Element)
|
|
28
|
-
return e.dom;
|
|
29
|
-
if (e.current instanceof Element)
|
|
30
|
-
return e.current;
|
|
31
|
-
if (c) {
|
|
32
|
-
const n = e.props?.ref;
|
|
33
|
-
if (n && "current" in n && n.current instanceof Element)
|
|
34
|
-
return n.current;
|
|
35
|
-
}
|
|
36
|
-
return o(e.getRootDOMNode) ? e.getRootDOMNode() : e instanceof s && o(f) ? f(e) : r && (m(
|
|
37
|
-
l && !R(r),
|
|
38
|
-
"Element does not define the `getRootDOMNode` method causing a call to React.findDOMNode. but findDOMNode is deprecated in StrictMode. Please check the code logic",
|
|
39
|
-
{ element: t, instance: r }
|
|
40
|
-
), o(f)) ? f(r) : null;
|
|
41
|
-
}
|
|
42
|
-
function k(t, r) {
|
|
43
|
-
if (!t) return;
|
|
44
|
-
let e;
|
|
45
|
-
c ? e = t?.props?.ref ?? t?.ref : e = t?.ref, e && (o(e) ? e(r) : "current" in e && (e.current = r));
|
|
46
|
-
}
|
|
47
|
-
function C(t) {
|
|
48
|
-
a = t;
|
|
49
|
-
}
|
|
50
|
-
export {
|
|
51
|
-
k as c,
|
|
52
|
-
E as f,
|
|
53
|
-
C as s
|
|
54
|
-
};
|
package/chunk/De8RLlOK.js
DELETED
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import { jsx as a, jsxs as x, Fragment as H } from "react/jsx-runtime";
|
|
2
|
-
import T from "lodash/isFunction";
|
|
3
|
-
import L from "lodash/isNil";
|
|
4
|
-
import Q, { createContext as S, useContext as y, useRef as q } from "react";
|
|
5
|
-
import { a as B, I as J } from "./CYDaUML7.js";
|
|
6
|
-
import { u as E } from "./FgWHhRFz.js";
|
|
7
|
-
import { u as j } from "./2vdCeheu.js";
|
|
8
|
-
import R from "@unicom-cloud/utils/class-name";
|
|
9
|
-
import { o as K } from "./BKKEev13.js";
|
|
10
|
-
import U from "lodash/isArray";
|
|
11
|
-
import W from "lodash/isPlainObject";
|
|
12
|
-
import { pickTriggerPropsFromRest as X } from "../utils/constant.js";
|
|
13
|
-
import { a as Y } from "./ClqoGc3r.js";
|
|
14
|
-
import _ from "../typography/index.js";
|
|
15
|
-
const A = {
|
|
16
|
-
type: "radio"
|
|
17
|
-
}, Z = {
|
|
18
|
-
type: "radio",
|
|
19
|
-
mode: "outline",
|
|
20
|
-
direction: "horizontal"
|
|
21
|
-
}, P = S(A), he = ({ children: m }) => /* @__PURE__ */ a(P.Provider, { value: A, children: m });
|
|
22
|
-
function D(m) {
|
|
23
|
-
const {
|
|
24
|
-
getPrefixCls: f,
|
|
25
|
-
size: g,
|
|
26
|
-
componentConfig: v,
|
|
27
|
-
rtl: h
|
|
28
|
-
} = y(B), e = E(
|
|
29
|
-
m,
|
|
30
|
-
Z,
|
|
31
|
-
v?.RadioGroup
|
|
32
|
-
), {
|
|
33
|
-
style: r,
|
|
34
|
-
className: s,
|
|
35
|
-
name: o,
|
|
36
|
-
children: t,
|
|
37
|
-
direction: n,
|
|
38
|
-
type: C,
|
|
39
|
-
mode: b,
|
|
40
|
-
options: $,
|
|
41
|
-
disabled: p
|
|
42
|
-
} = e, [d, G] = j(void 0, {
|
|
43
|
-
defaultValue: e.defaultValue,
|
|
44
|
-
value: e.value
|
|
45
|
-
}), k = e.size || g, i = f?.("radio"), V = R(
|
|
46
|
-
`${i}-group`,
|
|
47
|
-
{
|
|
48
|
-
[`${i}-group-type-button`]: C !== "radio",
|
|
49
|
-
[`${i}-size-${k}`]: !!k,
|
|
50
|
-
[`${i}-mode-${b}`]: !!b,
|
|
51
|
-
[`${i}-group-disabled`]: p,
|
|
52
|
-
[`${i}-group-direction-horizontal`]: n === "horizontal",
|
|
53
|
-
// 潘启宝添加
|
|
54
|
-
[`${i}-group-direction-vertical`]: n === "vertical",
|
|
55
|
-
[`${i}-group-rtl`]: h
|
|
56
|
-
},
|
|
57
|
-
s
|
|
58
|
-
), z = {
|
|
59
|
-
onChangeValue: (c, w) => {
|
|
60
|
-
const { onChange: N } = e;
|
|
61
|
-
c !== d && ("value" in e || G(c), N?.(c, w));
|
|
62
|
-
},
|
|
63
|
-
type: C,
|
|
64
|
-
value: d,
|
|
65
|
-
disabled: p,
|
|
66
|
-
group: !0,
|
|
67
|
-
name: o
|
|
68
|
-
};
|
|
69
|
-
return /* @__PURE__ */ a(P.Provider, { value: z, children: /* @__PURE__ */ a(
|
|
70
|
-
"div",
|
|
71
|
-
{
|
|
72
|
-
className: V,
|
|
73
|
-
role: "radiogroup",
|
|
74
|
-
style: r,
|
|
75
|
-
...X(e),
|
|
76
|
-
...Y(e),
|
|
77
|
-
children: $ && U($) ? $.map((c, w) => {
|
|
78
|
-
const { value: N, label: I, disabled: M, ...O } = c;
|
|
79
|
-
return W(c) ? /* @__PURE__ */ a(
|
|
80
|
-
u,
|
|
81
|
-
{
|
|
82
|
-
...O,
|
|
83
|
-
disabled: p || M,
|
|
84
|
-
value: N,
|
|
85
|
-
children: I
|
|
86
|
-
},
|
|
87
|
-
N
|
|
88
|
-
) : /* @__PURE__ */ a(u, { value: c, disabled: p, children: c }, w);
|
|
89
|
-
}) : t
|
|
90
|
-
}
|
|
91
|
-
) });
|
|
92
|
-
}
|
|
93
|
-
D.displayName = "RadioGroup";
|
|
94
|
-
const ee = {};
|
|
95
|
-
function F(m) {
|
|
96
|
-
const { getPrefixCls: f, componentConfig: g, rtl: v } = y(B), h = E(
|
|
97
|
-
m,
|
|
98
|
-
ee,
|
|
99
|
-
g?.["Radio.Block"]
|
|
100
|
-
), { className: e, options: r, ...s } = h, o = f?.("radio-group-block");
|
|
101
|
-
return /* @__PURE__ */ a(
|
|
102
|
-
u.Group,
|
|
103
|
-
{
|
|
104
|
-
className: R(`${o}`, e),
|
|
105
|
-
...s,
|
|
106
|
-
onChange: (t, n) => {
|
|
107
|
-
h.onChange?.(t, n);
|
|
108
|
-
},
|
|
109
|
-
children: r.map((t) => /* @__PURE__ */ a(u, { value: t.value, children: ({ checked: n }) => /* @__PURE__ */ x(
|
|
110
|
-
"div",
|
|
111
|
-
{
|
|
112
|
-
style: { width: t.width },
|
|
113
|
-
className: R(
|
|
114
|
-
`${o}-card`,
|
|
115
|
-
n && `${o}-card-checked`
|
|
116
|
-
),
|
|
117
|
-
children: [
|
|
118
|
-
/* @__PURE__ */ a("div", { className: `${o}-card-mask`, children: /* @__PURE__ */ a("div", { className: `${o}-card-mask-dot` }) }),
|
|
119
|
-
/* @__PURE__ */ x("div", { className: `${o}-card-content`, children: [
|
|
120
|
-
/* @__PURE__ */ a(
|
|
121
|
-
_.Ellipsis,
|
|
122
|
-
{
|
|
123
|
-
className: `${o}-card-content-title`,
|
|
124
|
-
rows: 1,
|
|
125
|
-
showTooltip: !0,
|
|
126
|
-
expandable: !1,
|
|
127
|
-
onExpand: (C) => {
|
|
128
|
-
},
|
|
129
|
-
children: t.title
|
|
130
|
-
}
|
|
131
|
-
),
|
|
132
|
-
/* @__PURE__ */ a(
|
|
133
|
-
_.Ellipsis,
|
|
134
|
-
{
|
|
135
|
-
className: `${o}-card-content-desc`,
|
|
136
|
-
rows: 1,
|
|
137
|
-
showTooltip: !0,
|
|
138
|
-
expandable: !1,
|
|
139
|
-
onExpand: (C) => {
|
|
140
|
-
},
|
|
141
|
-
children: t.desc
|
|
142
|
-
}
|
|
143
|
-
)
|
|
144
|
-
] })
|
|
145
|
-
]
|
|
146
|
-
}
|
|
147
|
-
) }, t.title))
|
|
148
|
-
}
|
|
149
|
-
);
|
|
150
|
-
}
|
|
151
|
-
F.displayName = "RadioGroupBlock";
|
|
152
|
-
function u(m) {
|
|
153
|
-
const f = q(null), { getPrefixCls: g, componentConfig: v, rtl: h } = y(B), e = E(
|
|
154
|
-
m,
|
|
155
|
-
{},
|
|
156
|
-
v?.Radio
|
|
157
|
-
), r = y(P), s = g?.("radio"), o = { ...e };
|
|
158
|
-
r.group && (o.checked = r.value === e.value, o.disabled = "disabled" in e ? e.disabled : r.disabled);
|
|
159
|
-
const { disabled: t, children: n, value: C, style: b, className: $, ...p } = o, [d, G] = j(!1, {
|
|
160
|
-
value: o.checked,
|
|
161
|
-
defaultValue: o.defaultChecked
|
|
162
|
-
}), k = R(
|
|
163
|
-
`${s}${r.type === "button" ? "-button" : ""}`,
|
|
164
|
-
{
|
|
165
|
-
[`${s}-checked`]: d,
|
|
166
|
-
[`${s}-disabled`]: t,
|
|
167
|
-
[`${s}-rtl`]: h
|
|
168
|
-
},
|
|
169
|
-
$
|
|
170
|
-
), i = (l) => {
|
|
171
|
-
const { onChange: z, value: c } = o;
|
|
172
|
-
t || (r.group ? r.onChangeValue?.(c, l) : !("checked" in e) && !d && G(!0), !d && z?.(!0, l));
|
|
173
|
-
}, V = Q.useCallback(
|
|
174
|
-
(l) => {
|
|
175
|
-
T(e.children) && (l.preventDefault(), f.current && f.current.click()), p.onClick?.(l);
|
|
176
|
-
},
|
|
177
|
-
[e.children, p.onClick]
|
|
178
|
-
);
|
|
179
|
-
return /* @__PURE__ */ x(
|
|
180
|
-
"label",
|
|
181
|
-
{
|
|
182
|
-
...K(p, ["checked", "onChange"]),
|
|
183
|
-
onClick: V,
|
|
184
|
-
style: b,
|
|
185
|
-
className: k,
|
|
186
|
-
children: [
|
|
187
|
-
/* @__PURE__ */ a(
|
|
188
|
-
"input",
|
|
189
|
-
{
|
|
190
|
-
ref: f,
|
|
191
|
-
disabled: t,
|
|
192
|
-
value: C || "",
|
|
193
|
-
type: "radio",
|
|
194
|
-
...r.name ? { name: r.name } : {},
|
|
195
|
-
checked: d,
|
|
196
|
-
onChange: (l) => {
|
|
197
|
-
l.persist(), i(l);
|
|
198
|
-
},
|
|
199
|
-
onClick: (l) => {
|
|
200
|
-
l.stopPropagation();
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
),
|
|
204
|
-
T(n) ? n({ checked: d }) : r.type === "radio" ? /* @__PURE__ */ x(H, { children: [
|
|
205
|
-
/* @__PURE__ */ a(
|
|
206
|
-
J,
|
|
207
|
-
{
|
|
208
|
-
prefix: s,
|
|
209
|
-
className: `${s}-mask-wrapper`,
|
|
210
|
-
disabled: d || t,
|
|
211
|
-
children: /* @__PURE__ */ a("div", { className: `${s}-mask` })
|
|
212
|
-
}
|
|
213
|
-
),
|
|
214
|
-
!L(n) && /* @__PURE__ */ a("span", { className: `${s}-text`, children: n })
|
|
215
|
-
] }) : r.type === "button" && /* @__PURE__ */ a("span", { className: `${s}-button-inner`, children: n })
|
|
216
|
-
]
|
|
217
|
-
}
|
|
218
|
-
);
|
|
219
|
-
}
|
|
220
|
-
u.__PQB_RADIO = !0;
|
|
221
|
-
u.displayName = "Radio";
|
|
222
|
-
u.Group = D;
|
|
223
|
-
u.GroupBlock = F;
|
|
224
|
-
u.GroupContext = P;
|
|
225
|
-
export {
|
|
226
|
-
he as C,
|
|
227
|
-
D as G,
|
|
228
|
-
u as R,
|
|
229
|
-
F as a,
|
|
230
|
-
P as b
|
|
231
|
-
};
|
package/chunk/d1c9z8T1.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { N as i } from "./CjNkKiBA.js";
|
|
2
|
-
const s = function() {
|
|
3
|
-
try {
|
|
4
|
-
return !(typeof window < "u" && document !== void 0);
|
|
5
|
-
} catch {
|
|
6
|
-
return !0;
|
|
7
|
-
}
|
|
8
|
-
}(), w = /* @__PURE__ */ function() {
|
|
9
|
-
return s ? i : function(t, o, n, e) {
|
|
10
|
-
t?.addEventListener?.(o, n, e || !1);
|
|
11
|
-
};
|
|
12
|
-
}(), g = /* @__PURE__ */ function() {
|
|
13
|
-
return s ? i : function(t, o, n, e) {
|
|
14
|
-
t?.removeEventListener?.(o, n, e || !1);
|
|
15
|
-
};
|
|
16
|
-
}(), E = function(t, o) {
|
|
17
|
-
if (!t)
|
|
18
|
-
return !1;
|
|
19
|
-
if (t.contains)
|
|
20
|
-
return t.contains(o);
|
|
21
|
-
let n = o;
|
|
22
|
-
for (; n; ) {
|
|
23
|
-
if (n === t)
|
|
24
|
-
return !0;
|
|
25
|
-
n = n.parentNode;
|
|
26
|
-
}
|
|
27
|
-
return !1;
|
|
28
|
-
};
|
|
29
|
-
function h(t) {
|
|
30
|
-
if (!(t instanceof HTMLElement) || t === document.documentElement || t === window)
|
|
31
|
-
return !1;
|
|
32
|
-
const o = t === document.documentElement ? t.clientHeight : t.offsetHeight, n = t === document.documentElement ? t.clientWidth : t.offsetWidth, e = t.scrollHeight, l = t.scrollWidth, c = window.getComputedStyle(t), u = c.getPropertyValue("overflow-x"), f = c.getPropertyValue("overflow-y"), r = ["scroll", "auto"], a = e > o && r.includes(f), d = l > n && r.includes(u);
|
|
33
|
-
return a || d;
|
|
34
|
-
}
|
|
35
|
-
const p = (t, o = document.documentElement) => {
|
|
36
|
-
const n = [];
|
|
37
|
-
let e = t;
|
|
38
|
-
for (; e && e !== o; )
|
|
39
|
-
h(e) && n.push(e), e = e.parentElement;
|
|
40
|
-
return n;
|
|
41
|
-
};
|
|
42
|
-
export {
|
|
43
|
-
s as a,
|
|
44
|
-
w as b,
|
|
45
|
-
E as c,
|
|
46
|
-
p as g,
|
|
47
|
-
h as i,
|
|
48
|
-
g as o
|
|
49
|
-
};
|