@notificationapi/react 0.0.8 → 0.0.10
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/assets/BellOutlined.js +18 -15
- package/dist/assets/Inbox.js +2376 -2270
- package/dist/assets/Notification.js +1960 -1340
- package/dist/assets/Preferences.js +564 -533
- package/dist/assets/PurePanel.js +24 -23
- package/dist/assets/button.js +275 -265
- package/dist/assets/colors.js +19298 -7652
- package/dist/assets/index.js +48 -47
- package/dist/assets/index2.js +94 -92
- package/dist/assets/index3.js +2990 -2647
- package/dist/components/Notifications/Inbox.d.ts +0 -1
- package/dist/components/Notifications/InboxHeader.d.ts +2 -3
- package/dist/components/Notifications/InboxHeader.js +14 -13
- package/dist/components/Notifications/Notification.d.ts +2 -3
- package/dist/components/Notifications/NotificationCounter.d.ts +1 -1
- package/dist/components/Notifications/NotificationFeed.d.ts +0 -1
- package/dist/components/Notifications/NotificationLauncher.d.ts +0 -1
- package/dist/components/Notifications/NotificationPopup.d.ts +0 -1
- package/dist/components/Notifications/UnreadBadge.d.ts +1 -1
- package/dist/components/Preferences/NotificationPreferencesInline.d.ts +2 -3
- package/dist/components/Preferences/NotificationPreferencesPopup.d.ts +2 -3
- package/dist/components/Preferences/NotificationPreferencesPopup.js +682 -646
- package/dist/components/Preferences/PreferenceGroup.d.ts +1 -2
- package/dist/components/Preferences/Preferences.d.ts +1 -2
- package/dist/components/Provider/index.d.ts +3 -2
- package/dist/components/Provider/index.js +102 -96
- package/package.json +1 -1
package/dist/assets/index2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as l from "react";
|
|
2
2
|
import { useMemo as et, useRef as X } from "react";
|
|
3
|
-
import { g as nt, K as z, e as rt, r as it, u as j, m as
|
|
4
|
-
const
|
|
3
|
+
import { g as nt, K as z, e as rt, r as it, u as j, m as Ot, a as K, i as st, c as w, b as at, f as xt } from "./colors.js";
|
|
4
|
+
const wt = new z("antStatusProcessing", {
|
|
5
5
|
"0%": {
|
|
6
6
|
transform: "scale(0.8)",
|
|
7
7
|
opacity: 0.5
|
|
@@ -10,7 +10,7 @@ const Nt = new z("antStatusProcessing", {
|
|
|
10
10
|
transform: "scale(2.4)",
|
|
11
11
|
opacity: 0
|
|
12
12
|
}
|
|
13
|
-
}),
|
|
13
|
+
}), jt = new z("antZoomBadgeIn", {
|
|
14
14
|
"0%": {
|
|
15
15
|
transform: "scale(0) translate(50%, -50%)",
|
|
16
16
|
opacity: 0
|
|
@@ -18,7 +18,7 @@ const Nt = new z("antStatusProcessing", {
|
|
|
18
18
|
"100%": {
|
|
19
19
|
transform: "scale(1) translate(50%, -50%)"
|
|
20
20
|
}
|
|
21
|
-
}),
|
|
21
|
+
}), Et = new z("antZoomBadgeOut", {
|
|
22
22
|
"0%": {
|
|
23
23
|
transform: "scale(1) translate(50%, -50%)"
|
|
24
24
|
},
|
|
@@ -26,7 +26,7 @@ const Nt = new z("antStatusProcessing", {
|
|
|
26
26
|
transform: "scale(0) translate(50%, -50%)",
|
|
27
27
|
opacity: 0
|
|
28
28
|
}
|
|
29
|
-
}),
|
|
29
|
+
}), Pt = new z("antNoWrapperZoomBadgeIn", {
|
|
30
30
|
"0%": {
|
|
31
31
|
transform: "scale(0)",
|
|
32
32
|
opacity: 0
|
|
@@ -34,7 +34,7 @@ const Nt = new z("antStatusProcessing", {
|
|
|
34
34
|
"100%": {
|
|
35
35
|
transform: "scale(1)"
|
|
36
36
|
}
|
|
37
|
-
}),
|
|
37
|
+
}), It = new z("antNoWrapperZoomBadgeOut", {
|
|
38
38
|
"0%": {
|
|
39
39
|
transform: "scale(1)"
|
|
40
40
|
},
|
|
@@ -42,7 +42,7 @@ const Nt = new z("antStatusProcessing", {
|
|
|
42
42
|
transform: "scale(0)",
|
|
43
43
|
opacity: 0
|
|
44
44
|
}
|
|
45
|
-
}),
|
|
45
|
+
}), zt = new z("antBadgeLoadingCircle", {
|
|
46
46
|
"0%": {
|
|
47
47
|
transformOrigin: "50%"
|
|
48
48
|
},
|
|
@@ -50,7 +50,7 @@ const Nt = new z("antStatusProcessing", {
|
|
|
50
50
|
transform: "translate(50%, -50%) rotate(360deg)",
|
|
51
51
|
transformOrigin: "50%"
|
|
52
52
|
}
|
|
53
|
-
}),
|
|
53
|
+
}), Bt = (t) => {
|
|
54
54
|
const {
|
|
55
55
|
componentCls: e,
|
|
56
56
|
iconCls: i,
|
|
@@ -58,8 +58,8 @@ const Nt = new z("antStatusProcessing", {
|
|
|
58
58
|
badgeShadowSize: o,
|
|
59
59
|
motionDurationSlow: d,
|
|
60
60
|
textFontSize: a,
|
|
61
|
-
textFontSizeSM:
|
|
62
|
-
statusSize:
|
|
61
|
+
textFontSizeSM: h,
|
|
62
|
+
statusSize: y,
|
|
63
63
|
dotSize: g,
|
|
64
64
|
textFontWeight: m,
|
|
65
65
|
indicatorHeight: s,
|
|
@@ -117,7 +117,7 @@ const Nt = new z("antStatusProcessing", {
|
|
|
117
117
|
[`${e}-count-sm`]: {
|
|
118
118
|
minWidth: c,
|
|
119
119
|
height: c,
|
|
120
|
-
fontSize:
|
|
120
|
+
fontSize: h,
|
|
121
121
|
lineHeight: j(c),
|
|
122
122
|
borderRadius: v(c).div(2).equal()
|
|
123
123
|
},
|
|
@@ -146,7 +146,7 @@ const Nt = new z("antStatusProcessing", {
|
|
|
146
146
|
transform: "translate(50%, -50%)",
|
|
147
147
|
transformOrigin: "100% 0%",
|
|
148
148
|
[`&${i}-spin`]: {
|
|
149
|
-
animationName:
|
|
149
|
+
animationName: zt,
|
|
150
150
|
animationDuration: "1s",
|
|
151
151
|
animationIterationCount: "infinite",
|
|
152
152
|
animationTimingFunction: "linear"
|
|
@@ -160,8 +160,8 @@ const Nt = new z("antStatusProcessing", {
|
|
|
160
160
|
top: -1,
|
|
161
161
|
// Magic number, but seems better experience
|
|
162
162
|
display: "inline-block",
|
|
163
|
-
width:
|
|
164
|
-
height:
|
|
163
|
+
width: y,
|
|
164
|
+
height: y,
|
|
165
165
|
verticalAlign: "middle",
|
|
166
166
|
borderRadius: "50%"
|
|
167
167
|
},
|
|
@@ -182,7 +182,7 @@ const Nt = new z("antStatusProcessing", {
|
|
|
182
182
|
borderStyle: "solid",
|
|
183
183
|
borderColor: "inherit",
|
|
184
184
|
borderRadius: "50%",
|
|
185
|
-
animationName:
|
|
185
|
+
animationName: wt,
|
|
186
186
|
animationDuration: t.badgeProcessingDuration,
|
|
187
187
|
animationIterationCount: "infinite",
|
|
188
188
|
animationTimingFunction: "ease-in-out",
|
|
@@ -206,25 +206,25 @@ const Nt = new z("antStatusProcessing", {
|
|
|
206
206
|
}
|
|
207
207
|
}), C), {
|
|
208
208
|
[`${e}-zoom-appear, ${e}-zoom-enter`]: {
|
|
209
|
-
animationName:
|
|
209
|
+
animationName: jt,
|
|
210
210
|
animationDuration: t.motionDurationSlow,
|
|
211
211
|
animationTimingFunction: t.motionEaseOutBack,
|
|
212
212
|
animationFillMode: "both"
|
|
213
213
|
},
|
|
214
214
|
[`${e}-zoom-leave`]: {
|
|
215
|
-
animationName:
|
|
215
|
+
animationName: Et,
|
|
216
216
|
animationDuration: t.motionDurationSlow,
|
|
217
217
|
animationTimingFunction: t.motionEaseOutBack,
|
|
218
218
|
animationFillMode: "both"
|
|
219
219
|
},
|
|
220
220
|
[`&${e}-not-a-wrapper`]: {
|
|
221
221
|
[`${e}-zoom-appear, ${e}-zoom-enter`]: {
|
|
222
|
-
animationName:
|
|
222
|
+
animationName: Pt,
|
|
223
223
|
animationDuration: t.motionDurationSlow,
|
|
224
224
|
animationTimingFunction: t.motionEaseOutBack
|
|
225
225
|
},
|
|
226
226
|
[`${e}-zoom-leave`]: {
|
|
227
|
-
animationName:
|
|
227
|
+
animationName: It,
|
|
228
228
|
animationDuration: t.motionDurationSlow,
|
|
229
229
|
animationTimingFunction: t.motionEaseOutBack
|
|
230
230
|
},
|
|
@@ -276,12 +276,12 @@ const Nt = new z("antStatusProcessing", {
|
|
|
276
276
|
lineWidth: i,
|
|
277
277
|
marginXS: n,
|
|
278
278
|
colorBorderBg: o
|
|
279
|
-
} = t, d = e, a = i,
|
|
280
|
-
return
|
|
279
|
+
} = t, d = e, a = i, h = t.colorBgContainer, y = t.colorError, g = t.colorErrorHover;
|
|
280
|
+
return Ot(t, {
|
|
281
281
|
badgeFontHeight: d,
|
|
282
282
|
badgeShadowSize: a,
|
|
283
|
-
badgeTextColor:
|
|
284
|
-
badgeColor:
|
|
283
|
+
badgeTextColor: h,
|
|
284
|
+
badgeColor: y,
|
|
285
285
|
badgeColorHover: g,
|
|
286
286
|
badgeShadowColor: o,
|
|
287
287
|
badgeProcessingDuration: "1.2s",
|
|
@@ -307,17 +307,17 @@ const Nt = new z("antStatusProcessing", {
|
|
|
307
307
|
textFontWeight: "normal",
|
|
308
308
|
statusSize: n / 2
|
|
309
309
|
};
|
|
310
|
-
},
|
|
310
|
+
}, Tt = nt("Badge", (t) => {
|
|
311
311
|
const e = lt(t);
|
|
312
|
-
return
|
|
313
|
-
}, ct),
|
|
312
|
+
return Bt(e);
|
|
313
|
+
}, ct), Rt = (t) => {
|
|
314
314
|
const {
|
|
315
315
|
antCls: e,
|
|
316
316
|
badgeFontHeight: i,
|
|
317
317
|
marginXS: n,
|
|
318
318
|
badgeRibbonOffset: o,
|
|
319
319
|
calc: d
|
|
320
|
-
} = t, a = `${e}-ribbon`,
|
|
320
|
+
} = t, a = `${e}-ribbon`, h = `${e}-ribbon-wrapper`, y = rt(t, (g, m) => {
|
|
321
321
|
let {
|
|
322
322
|
darkColor: s
|
|
323
323
|
} = m;
|
|
@@ -329,7 +329,7 @@ const Nt = new z("antStatusProcessing", {
|
|
|
329
329
|
};
|
|
330
330
|
});
|
|
331
331
|
return {
|
|
332
|
-
[`${
|
|
332
|
+
[`${h}`]: {
|
|
333
333
|
position: "relative"
|
|
334
334
|
},
|
|
335
335
|
[`${a}`]: Object.assign(Object.assign(Object.assign(Object.assign({}, it(t)), {
|
|
@@ -355,7 +355,7 @@ const Nt = new z("antStatusProcessing", {
|
|
|
355
355
|
transformOrigin: "top",
|
|
356
356
|
filter: t.badgeRibbonCornerFilter
|
|
357
357
|
}
|
|
358
|
-
}),
|
|
358
|
+
}), y), {
|
|
359
359
|
[`&${a}-placement-end`]: {
|
|
360
360
|
insetInlineEnd: d(o).mul(-1).equal(),
|
|
361
361
|
borderEndEndRadius: 0,
|
|
@@ -380,10 +380,10 @@ const Nt = new z("antStatusProcessing", {
|
|
|
380
380
|
}
|
|
381
381
|
})
|
|
382
382
|
};
|
|
383
|
-
},
|
|
383
|
+
}, Dt = nt(["Badge", "Ribbon"], (t) => {
|
|
384
384
|
const e = lt(t);
|
|
385
|
-
return
|
|
386
|
-
}, ct),
|
|
385
|
+
return Rt(e);
|
|
386
|
+
}, ct), dt = (t) => {
|
|
387
387
|
const {
|
|
388
388
|
className: e,
|
|
389
389
|
prefixCls: i,
|
|
@@ -391,17 +391,17 @@ const Nt = new z("antStatusProcessing", {
|
|
|
391
391
|
color: o,
|
|
392
392
|
children: d,
|
|
393
393
|
text: a,
|
|
394
|
-
placement:
|
|
395
|
-
rootClassName:
|
|
394
|
+
placement: h = "end",
|
|
395
|
+
rootClassName: y
|
|
396
396
|
} = t, {
|
|
397
397
|
getPrefixCls: g,
|
|
398
398
|
direction: m
|
|
399
|
-
} = l.useContext(K), s = g("ribbon", i), c = `${s}-wrapper`, [f, v, u] =
|
|
399
|
+
} = l.useContext(K), s = g("ribbon", i), c = `${s}-wrapper`, [f, v, u] = Dt(s, c), C = st(o, !1), b = w(s, `${s}-placement-${h}`, {
|
|
400
400
|
[`${s}-rtl`]: m === "rtl",
|
|
401
401
|
[`${s}-color-${o}`]: C
|
|
402
402
|
}, e), $ = {}, S = {};
|
|
403
403
|
return o && !C && ($.background = o, S.color = o), f(/* @__PURE__ */ l.createElement("div", {
|
|
404
|
-
className: w(c,
|
|
404
|
+
className: w(c, y, v, u)
|
|
405
405
|
}, d, /* @__PURE__ */ l.createElement("div", {
|
|
406
406
|
className: w(b, v),
|
|
407
407
|
style: Object.assign(Object.assign({}, $), n)
|
|
@@ -412,6 +412,7 @@ const Nt = new z("antStatusProcessing", {
|
|
|
412
412
|
style: S
|
|
413
413
|
}))));
|
|
414
414
|
};
|
|
415
|
+
process.env.NODE_ENV !== "production" && (dt.displayName = "Ribbon");
|
|
415
416
|
function ot(t) {
|
|
416
417
|
let {
|
|
417
418
|
prefixCls: e,
|
|
@@ -430,19 +431,19 @@ function ot(t) {
|
|
|
430
431
|
})
|
|
431
432
|
}, i);
|
|
432
433
|
}
|
|
433
|
-
function
|
|
434
|
+
function Wt(t, e, i) {
|
|
434
435
|
let n = t, o = 0;
|
|
435
436
|
for (; (n + 10) % 10 !== e; )
|
|
436
437
|
n += i, o += i;
|
|
437
438
|
return o;
|
|
438
439
|
}
|
|
439
|
-
function
|
|
440
|
+
function Ft(t) {
|
|
440
441
|
const {
|
|
441
442
|
prefixCls: e,
|
|
442
443
|
count: i,
|
|
443
444
|
value: n
|
|
444
|
-
} = t, o = Number(n), d = Math.abs(i), [a,
|
|
445
|
-
|
|
445
|
+
} = t, o = Number(n), d = Math.abs(i), [a, h] = l.useState(o), [y, g] = l.useState(d), m = () => {
|
|
446
|
+
h(o), g(d);
|
|
446
447
|
};
|
|
447
448
|
l.useEffect(() => {
|
|
448
449
|
const f = setTimeout(() => {
|
|
@@ -475,9 +476,9 @@ function Wt(t) {
|
|
|
475
476
|
current: $ === u
|
|
476
477
|
}));
|
|
477
478
|
});
|
|
478
|
-
const C =
|
|
479
|
+
const C = y < d ? 1 : -1;
|
|
479
480
|
c = {
|
|
480
|
-
transform: `translateY(${-
|
|
481
|
+
transform: `translateY(${-Wt(a, o, C)}00%)`
|
|
481
482
|
};
|
|
482
483
|
}
|
|
483
484
|
return /* @__PURE__ */ l.createElement("span", {
|
|
@@ -486,7 +487,7 @@ function Wt(t) {
|
|
|
486
487
|
onTransitionEnd: m
|
|
487
488
|
}, s);
|
|
488
489
|
}
|
|
489
|
-
var
|
|
490
|
+
var Ht = function(t, e) {
|
|
490
491
|
var i = {};
|
|
491
492
|
for (var n in t)
|
|
492
493
|
Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
|
|
@@ -495,29 +496,29 @@ var Ft = function(t, e) {
|
|
|
495
496
|
e.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[o]) && (i[n[o]] = t[n[o]]);
|
|
496
497
|
return i;
|
|
497
498
|
};
|
|
498
|
-
const
|
|
499
|
+
const _t = /* @__PURE__ */ l.forwardRef((t, e) => {
|
|
499
500
|
const {
|
|
500
501
|
prefixCls: i,
|
|
501
502
|
count: n,
|
|
502
503
|
className: o,
|
|
503
504
|
motionClassName: d,
|
|
504
505
|
style: a,
|
|
505
|
-
title:
|
|
506
|
-
show:
|
|
506
|
+
title: h,
|
|
507
|
+
show: y,
|
|
507
508
|
component: g = "sup",
|
|
508
509
|
children: m
|
|
509
|
-
} = t, s =
|
|
510
|
+
} = t, s = Ht(t, ["prefixCls", "count", "className", "motionClassName", "style", "title", "show", "component", "children"]), {
|
|
510
511
|
getPrefixCls: c
|
|
511
512
|
} = l.useContext(K), f = c("scroll-number", i), v = Object.assign(Object.assign({}, s), {
|
|
512
|
-
"data-show":
|
|
513
|
+
"data-show": y,
|
|
513
514
|
style: a,
|
|
514
515
|
className: w(f, o, d),
|
|
515
|
-
title:
|
|
516
|
+
title: h
|
|
516
517
|
});
|
|
517
518
|
let u = n;
|
|
518
519
|
if (n && Number(n) % 1 === 0) {
|
|
519
520
|
const C = String(n).split("");
|
|
520
|
-
u = /* @__PURE__ */ l.createElement("bdi", null, C.map((b, $) => /* @__PURE__ */ l.createElement(
|
|
521
|
+
u = /* @__PURE__ */ l.createElement("bdi", null, C.map((b, $) => /* @__PURE__ */ l.createElement(Ft, {
|
|
521
522
|
prefixCls: f,
|
|
522
523
|
count: Number(n),
|
|
523
524
|
value: b,
|
|
@@ -545,8 +546,8 @@ var Zt = function(t, e) {
|
|
|
545
546
|
const Mt = /* @__PURE__ */ l.forwardRef((t, e) => {
|
|
546
547
|
var i, n, o, d, a;
|
|
547
548
|
const {
|
|
548
|
-
prefixCls:
|
|
549
|
-
scrollNumberPrefixCls:
|
|
549
|
+
prefixCls: h,
|
|
550
|
+
scrollNumberPrefixCls: y,
|
|
550
551
|
children: g,
|
|
551
552
|
status: m,
|
|
552
553
|
text: s,
|
|
@@ -558,54 +559,54 @@ const Mt = /* @__PURE__ */ l.forwardRef((t, e) => {
|
|
|
558
559
|
title: b,
|
|
559
560
|
offset: $,
|
|
560
561
|
style: S,
|
|
561
|
-
className:
|
|
562
|
-
rootClassName:
|
|
563
|
-
classNames:
|
|
564
|
-
styles:
|
|
562
|
+
className: mt,
|
|
563
|
+
rootClassName: bt,
|
|
564
|
+
classNames: x,
|
|
565
|
+
styles: N,
|
|
565
566
|
showZero: F = !1
|
|
566
567
|
} = t, U = Zt(t, ["prefixCls", "scrollNumberPrefixCls", "children", "status", "text", "color", "count", "overflowCount", "dot", "size", "title", "offset", "style", "className", "rootClassName", "classNames", "styles", "showZero"]), {
|
|
567
568
|
getPrefixCls: Y,
|
|
568
569
|
direction: H,
|
|
569
570
|
badge: r
|
|
570
|
-
} = l.useContext(K), p = Y("badge",
|
|
571
|
+
} = l.useContext(K), p = Y("badge", h), [k, gt, ft] = Tt(p), _ = f > v ? `${v}+` : f, T = _ === "0" || _ === 0, pt = f === null || T && !F, Z = (m != null || c != null) && pt, B = u && !T, E = B ? "" : _, P = et(() => (E == null || E === "" || T && !F) && !B, [E, T, F, B]), G = X(f);
|
|
571
572
|
P || (G.current = f);
|
|
572
573
|
const I = G.current, J = X(E);
|
|
573
574
|
P || (J.current = E);
|
|
574
|
-
const
|
|
575
|
-
P || (Q.current =
|
|
575
|
+
const M = J.current, Q = X(B);
|
|
576
|
+
P || (Q.current = B);
|
|
576
577
|
const R = et(() => {
|
|
577
578
|
if (!$)
|
|
578
579
|
return Object.assign(Object.assign({}, r == null ? void 0 : r.style), S);
|
|
579
|
-
const
|
|
580
|
+
const O = {
|
|
580
581
|
marginTop: $[1]
|
|
581
582
|
};
|
|
582
|
-
return H === "rtl" ?
|
|
583
|
-
}, [H, $, S, r == null ? void 0 : r.style]),
|
|
583
|
+
return H === "rtl" ? O.left = parseInt($[0], 10) : O.right = -parseInt($[0], 10), Object.assign(Object.assign(Object.assign({}, O), r == null ? void 0 : r.style), S);
|
|
584
|
+
}, [H, $, S, r == null ? void 0 : r.style]), vt = b ?? (typeof I == "string" || typeof I == "number" ? I : void 0), Ct = P || !s ? null : /* @__PURE__ */ l.createElement("span", {
|
|
584
585
|
className: `${p}-status-text`
|
|
585
|
-
}, s),
|
|
586
|
-
style: Object.assign(Object.assign({}, R),
|
|
587
|
-
})), D = st(c, !1),
|
|
588
|
-
[`${p}-status-dot`]:
|
|
586
|
+
}, s), $t = !I || typeof I != "object" ? void 0 : at(I, (O) => ({
|
|
587
|
+
style: Object.assign(Object.assign({}, R), O.style)
|
|
588
|
+
})), D = st(c, !1), yt = w(x == null ? void 0 : x.indicator, (i = r == null ? void 0 : r.classNames) === null || i === void 0 ? void 0 : i.indicator, {
|
|
589
|
+
[`${p}-status-dot`]: Z,
|
|
589
590
|
[`${p}-status-${m}`]: !!m,
|
|
590
591
|
[`${p}-color-${c}`]: D
|
|
591
592
|
}), V = {};
|
|
592
593
|
c && !D && (V.color = c, V.background = c);
|
|
593
594
|
const tt = w(p, {
|
|
594
|
-
[`${p}-status`]:
|
|
595
|
+
[`${p}-status`]: Z,
|
|
595
596
|
[`${p}-not-a-wrapper`]: !g,
|
|
596
597
|
[`${p}-rtl`]: H === "rtl"
|
|
597
|
-
},
|
|
598
|
-
if (!g &&
|
|
599
|
-
const
|
|
598
|
+
}, mt, bt, r == null ? void 0 : r.className, (n = r == null ? void 0 : r.classNames) === null || n === void 0 ? void 0 : n.root, x == null ? void 0 : x.root, gt, ft);
|
|
599
|
+
if (!g && Z) {
|
|
600
|
+
const O = R.color;
|
|
600
601
|
return k(/* @__PURE__ */ l.createElement("span", Object.assign({}, U, {
|
|
601
602
|
className: tt,
|
|
602
|
-
style: Object.assign(Object.assign(Object.assign({},
|
|
603
|
+
style: Object.assign(Object.assign(Object.assign({}, N == null ? void 0 : N.root), (o = r == null ? void 0 : r.styles) === null || o === void 0 ? void 0 : o.root), R)
|
|
603
604
|
}), /* @__PURE__ */ l.createElement("span", {
|
|
604
|
-
className:
|
|
605
|
-
style: Object.assign(Object.assign(Object.assign({},
|
|
605
|
+
className: yt,
|
|
606
|
+
style: Object.assign(Object.assign(Object.assign({}, N == null ? void 0 : N.indicator), (d = r == null ? void 0 : r.styles) === null || d === void 0 ? void 0 : d.indicator), V)
|
|
606
607
|
}), s && /* @__PURE__ */ l.createElement("span", {
|
|
607
608
|
style: {
|
|
608
|
-
color:
|
|
609
|
+
color: O
|
|
609
610
|
},
|
|
610
611
|
className: `${p}-status-text`
|
|
611
612
|
}, s)));
|
|
@@ -614,39 +615,40 @@ const Mt = /* @__PURE__ */ l.forwardRef((t, e) => {
|
|
|
614
615
|
ref: e
|
|
615
616
|
}, U, {
|
|
616
617
|
className: tt,
|
|
617
|
-
style: Object.assign(Object.assign({}, (a = r == null ? void 0 : r.styles) === null || a === void 0 ? void 0 : a.root),
|
|
618
|
+
style: Object.assign(Object.assign({}, (a = r == null ? void 0 : r.styles) === null || a === void 0 ? void 0 : a.root), N == null ? void 0 : N.root)
|
|
618
619
|
}), g, /* @__PURE__ */ l.createElement(xt, {
|
|
619
620
|
visible: !P,
|
|
620
621
|
motionName: `${p}-zoom`,
|
|
621
622
|
motionAppear: !1,
|
|
622
623
|
motionDeadline: 1e3
|
|
623
|
-
}, (
|
|
624
|
+
}, (O) => {
|
|
624
625
|
let {
|
|
625
|
-
className:
|
|
626
|
-
} =
|
|
626
|
+
className: ht
|
|
627
|
+
} = O;
|
|
627
628
|
var A, q;
|
|
628
|
-
const
|
|
629
|
+
const St = Y("scroll-number", y), L = Q.current, Nt = w(x == null ? void 0 : x.indicator, (A = r == null ? void 0 : r.classNames) === null || A === void 0 ? void 0 : A.indicator, {
|
|
629
630
|
[`${p}-dot`]: L,
|
|
630
631
|
[`${p}-count`]: !L,
|
|
631
632
|
[`${p}-count-sm`]: C === "small",
|
|
632
|
-
[`${p}-multiple-words`]: !L &&
|
|
633
|
+
[`${p}-multiple-words`]: !L && M && M.toString().length > 1,
|
|
633
634
|
[`${p}-status-${m}`]: !!m,
|
|
634
635
|
[`${p}-color-${c}`]: D
|
|
635
636
|
});
|
|
636
|
-
let W = Object.assign(Object.assign(Object.assign({},
|
|
637
|
-
return c && !D && (W = W || {}, W.background = c), /* @__PURE__ */ l.createElement(
|
|
638
|
-
prefixCls:
|
|
637
|
+
let W = Object.assign(Object.assign(Object.assign({}, N == null ? void 0 : N.indicator), (q = r == null ? void 0 : r.styles) === null || q === void 0 ? void 0 : q.indicator), R);
|
|
638
|
+
return c && !D && (W = W || {}, W.background = c), /* @__PURE__ */ l.createElement(_t, {
|
|
639
|
+
prefixCls: St,
|
|
639
640
|
show: !P,
|
|
640
|
-
motionClassName:
|
|
641
|
-
className:
|
|
642
|
-
count:
|
|
643
|
-
title:
|
|
641
|
+
motionClassName: ht,
|
|
642
|
+
className: Nt,
|
|
643
|
+
count: M,
|
|
644
|
+
title: vt,
|
|
644
645
|
style: W,
|
|
645
646
|
key: "scrollNumber"
|
|
646
|
-
},
|
|
647
|
-
}),
|
|
648
|
-
}),
|
|
649
|
-
|
|
647
|
+
}, $t);
|
|
648
|
+
}), Ct));
|
|
649
|
+
}), ut = Mt;
|
|
650
|
+
ut.Ribbon = dt;
|
|
651
|
+
process.env.NODE_ENV !== "production" && (ut.displayName = "Badge");
|
|
650
652
|
export {
|
|
651
|
-
|
|
653
|
+
ut as B
|
|
652
654
|
};
|