beca-ui 0.1.45 → 0.1.46
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/dist/beca-ui.js
CHANGED
|
@@ -63860,7 +63860,7 @@ Modal$2.config = modalGlobalConfig;
|
|
|
63860
63860
|
Modal$2._InternalPanelDoNotUseOrYouWillBeFired = PurePanel$7;
|
|
63861
63861
|
process.env.NODE_ENV !== "production" && (Modal$2.displayName = "Modal");
|
|
63862
63862
|
const AntModal = Modal$2;
|
|
63863
|
-
let notification
|
|
63863
|
+
let notification = null, act = (a) => a(), taskQueue = [], defaultGlobalConfig = {};
|
|
63864
63864
|
function getGlobalContext$1() {
|
|
63865
63865
|
const {
|
|
63866
63866
|
prefixCls: a,
|
|
@@ -63900,11 +63900,11 @@ const GlobalHolder = /* @__PURE__ */ React$3.forwardRef((a, s) => {
|
|
|
63900
63900
|
}, m);
|
|
63901
63901
|
});
|
|
63902
63902
|
function flushNotice() {
|
|
63903
|
-
if (!notification
|
|
63903
|
+
if (!notification) {
|
|
63904
63904
|
const a = document.createDocumentFragment(), s = {
|
|
63905
63905
|
fragment: a
|
|
63906
63906
|
};
|
|
63907
|
-
notification
|
|
63907
|
+
notification = s, act(() => {
|
|
63908
63908
|
render$2(/* @__PURE__ */ React$3.createElement(GlobalHolder, {
|
|
63909
63909
|
ref: (c) => {
|
|
63910
63910
|
const {
|
|
@@ -63919,17 +63919,17 @@ function flushNotice() {
|
|
|
63919
63919
|
});
|
|
63920
63920
|
return;
|
|
63921
63921
|
}
|
|
63922
|
-
notification
|
|
63922
|
+
notification.instance && (taskQueue.forEach((a) => {
|
|
63923
63923
|
switch (a.type) {
|
|
63924
63924
|
case "open": {
|
|
63925
63925
|
act(() => {
|
|
63926
|
-
notification
|
|
63926
|
+
notification.instance.open(Object.assign(Object.assign({}, defaultGlobalConfig), a.config));
|
|
63927
63927
|
});
|
|
63928
63928
|
break;
|
|
63929
63929
|
}
|
|
63930
63930
|
case "destroy":
|
|
63931
63931
|
act(() => {
|
|
63932
|
-
notification
|
|
63932
|
+
notification == null || notification.instance.destroy(a.key);
|
|
63933
63933
|
});
|
|
63934
63934
|
break;
|
|
63935
63935
|
}
|
|
@@ -63938,7 +63938,7 @@ function flushNotice() {
|
|
|
63938
63938
|
function setNotificationGlobalConfig(a) {
|
|
63939
63939
|
defaultGlobalConfig = Object.assign(Object.assign({}, defaultGlobalConfig), a), act(() => {
|
|
63940
63940
|
var s;
|
|
63941
|
-
(s = notification
|
|
63941
|
+
(s = notification == null ? void 0 : notification.sync) === null || s === void 0 || s.call(notification);
|
|
63942
63942
|
});
|
|
63943
63943
|
}
|
|
63944
63944
|
function open(a) {
|
|
@@ -63966,7 +63966,7 @@ methods.forEach((a) => {
|
|
|
63966
63966
|
}));
|
|
63967
63967
|
});
|
|
63968
63968
|
process.env.NODE_ENV;
|
|
63969
|
-
const
|
|
63969
|
+
const notification$1 = staticMethods, genBaseStyle$7 = (a) => {
|
|
63970
63970
|
const {
|
|
63971
63971
|
componentCls: s,
|
|
63972
63972
|
iconCls: c,
|
|
@@ -91004,18 +91004,21 @@ const ResizableTitle = (a) => {
|
|
|
91004
91004
|
wrapClassName: `bu2-modal-wrap ${c ? " " + c : ""}`,
|
|
91005
91005
|
closeIcon: d ?? /* @__PURE__ */ jsx("span", { className: "bu2-icon", children: /* @__PURE__ */ jsx(CloseIcon, {}) }),
|
|
91006
91006
|
footer: y === null ? null : y ?? [
|
|
91007
|
-
/* @__PURE__ */ jsx(
|
|
91007
|
+
!(u != null && u.hidden) && /* @__PURE__ */ jsx(
|
|
91008
91008
|
Button$3,
|
|
91009
91009
|
{
|
|
91010
91010
|
type: "primary",
|
|
91011
91011
|
onClick: f,
|
|
91012
91012
|
...u,
|
|
91013
|
-
className:
|
|
91013
|
+
className: classNames$1(
|
|
91014
|
+
"bu2-modal__action-button modal-cancel-button",
|
|
91015
|
+
u == null ? void 0 : u.className
|
|
91016
|
+
),
|
|
91014
91017
|
children: m
|
|
91015
91018
|
},
|
|
91016
91019
|
"modalOK"
|
|
91017
91020
|
),
|
|
91018
|
-
/* @__PURE__ */ createElement(
|
|
91021
|
+
!(p != null && p.hidden) && /* @__PURE__ */ createElement(
|
|
91019
91022
|
Button$3,
|
|
91020
91023
|
{
|
|
91021
91024
|
...p,
|
|
@@ -91023,7 +91026,10 @@ const ResizableTitle = (a) => {
|
|
|
91023
91026
|
type: "primary",
|
|
91024
91027
|
status: "info",
|
|
91025
91028
|
onClick: b,
|
|
91026
|
-
className:
|
|
91029
|
+
className: classNames$1(
|
|
91030
|
+
"bu2-modal__action-button modal-ok-button",
|
|
91031
|
+
p == null ? void 0 : p.className
|
|
91032
|
+
)
|
|
91027
91033
|
},
|
|
91028
91034
|
h
|
|
91029
91035
|
)
|
|
@@ -114210,9 +114216,9 @@ const getClassName$6 = (a) => {
|
|
|
114210
114216
|
] })
|
|
114211
114217
|
] }) })
|
|
114212
114218
|
] });
|
|
114213
|
-
}, VideoPlayer = forwardRef(VideoPlayerComponent), VideoPlayer$1 = VideoPlayer
|
|
114214
|
-
notification.config({ closeIcon: /* @__PURE__ */ jsx(SvgCloseOutlinedStyle, {}) });
|
|
114215
|
-
const
|
|
114219
|
+
}, VideoPlayer = forwardRef(VideoPlayerComponent), VideoPlayer$1 = VideoPlayer;
|
|
114220
|
+
notification$1.config({ closeIcon: /* @__PURE__ */ jsx(SvgCloseOutlinedStyle, {}) });
|
|
114221
|
+
const getClassName$5 = (a) => {
|
|
114216
114222
|
const { className: s } = a;
|
|
114217
114223
|
let c = "bu2-rate";
|
|
114218
114224
|
return s && (c += " " + s), c;
|