@sellgar/kit 0.0.35 → 0.0.37
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/index.js +104 -94
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as d, jsxs as z, Fragment as Bl } from "react/jsx-runtime";
|
|
2
2
|
import * as b from "react";
|
|
3
|
-
import
|
|
3
|
+
import E, { useLayoutEffect as Yl, useEffect as ql, useRef as ma, Children as ha, cloneElement as pa, useMemo as Zi, forwardRef as ga, useState as Bt, useCallback as at, useImperativeHandle as va } from "react";
|
|
4
4
|
import './index.css';function Ul(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
6
|
}
|
|
@@ -59,7 +59,7 @@ const W = /* @__PURE__ */ Ul(ya), _a = "_wrapper_y5p8d_1", he = {
|
|
|
59
59
|
"color--red": "_color--red_y5p8d_49",
|
|
60
60
|
"color--purple": "_color--purple_y5p8d_52"
|
|
61
61
|
}, tl = ({ size: e = "2xl", color: t = "gray" }) => {
|
|
62
|
-
const l =
|
|
62
|
+
const l = E.useMemo(
|
|
63
63
|
() => W(
|
|
64
64
|
he.wrapper,
|
|
65
65
|
{
|
|
@@ -2299,7 +2299,7 @@ const W = /* @__PURE__ */ Ul(ya), _a = "_wrapper_y5p8d_1", he = {
|
|
|
2299
2299
|
leadicon: a,
|
|
2300
2300
|
tailicon: o
|
|
2301
2301
|
}) => {
|
|
2302
|
-
const c =
|
|
2302
|
+
const c = E.useMemo(
|
|
2303
2303
|
() => W(
|
|
2304
2304
|
X.wrapper,
|
|
2305
2305
|
{
|
|
@@ -2366,7 +2366,7 @@ const W = /* @__PURE__ */ Ul(ya), _a = "_wrapper_y5p8d_1", he = {
|
|
|
2366
2366
|
label: a,
|
|
2367
2367
|
...o
|
|
2368
2368
|
}) => {
|
|
2369
|
-
const c =
|
|
2369
|
+
const c = E.useMemo(
|
|
2370
2370
|
() => W(
|
|
2371
2371
|
ne.wrapper,
|
|
2372
2372
|
{
|
|
@@ -2419,7 +2419,7 @@ const W = /* @__PURE__ */ Ul(ya), _a = "_wrapper_y5p8d_1", he = {
|
|
|
2419
2419
|
icon: n,
|
|
2420
2420
|
...r
|
|
2421
2421
|
}) => {
|
|
2422
|
-
const a =
|
|
2422
|
+
const a = E.useMemo(
|
|
2423
2423
|
() => W(
|
|
2424
2424
|
pe.wrapper,
|
|
2425
2425
|
{
|
|
@@ -2465,7 +2465,7 @@ const W = /* @__PURE__ */ Ul(ya), _a = "_wrapper_y5p8d_1", he = {
|
|
|
2465
2465
|
label: a,
|
|
2466
2466
|
...o
|
|
2467
2467
|
}) => {
|
|
2468
|
-
const c =
|
|
2468
|
+
const c = E.useMemo(
|
|
2469
2469
|
() => W(
|
|
2470
2470
|
Pe.wrapper,
|
|
2471
2471
|
{
|
|
@@ -2505,7 +2505,7 @@ const W = /* @__PURE__ */ Ul(ya), _a = "_wrapper_y5p8d_1", he = {
|
|
|
2505
2505
|
"font-weight__extra-bold": "_font-weight__extra-bold_yyj49_77",
|
|
2506
2506
|
"font-weight__black": "_font-weight__black_yyj49_80"
|
|
2507
2507
|
}, Q = (e) => {
|
|
2508
|
-
const t =
|
|
2508
|
+
const t = E.useMemo(
|
|
2509
2509
|
() => W(
|
|
2510
2510
|
{
|
|
2511
2511
|
[ee["font-size__h1"]]: e.size === "h1",
|
|
@@ -2533,10 +2533,10 @@ const W = /* @__PURE__ */ Ul(ya), _a = "_wrapper_y5p8d_1", he = {
|
|
|
2533
2533
|
),
|
|
2534
2534
|
[e.size, e.weight]
|
|
2535
2535
|
);
|
|
2536
|
-
return
|
|
2537
|
-
if (
|
|
2536
|
+
return E.Children.map(e.children, (l) => {
|
|
2537
|
+
if (E.isValidElement(l)) {
|
|
2538
2538
|
const i = l;
|
|
2539
|
-
return
|
|
2539
|
+
return E.cloneElement(i, {
|
|
2540
2540
|
className: W(t, i.props.className)
|
|
2541
2541
|
});
|
|
2542
2542
|
}
|
|
@@ -2549,7 +2549,7 @@ const W = /* @__PURE__ */ Ul(ya), _a = "_wrapper_y5p8d_1", he = {
|
|
|
2549
2549
|
"size--md": "_size--md_1x3lz_29",
|
|
2550
2550
|
"size--sm": "_size--sm_1x3lz_33"
|
|
2551
2551
|
}, $a = ({ size: e = "md", ...t }) => {
|
|
2552
|
-
const l =
|
|
2552
|
+
const l = E.useMemo(
|
|
2553
2553
|
() => W(xt.icon, {
|
|
2554
2554
|
[xt["size--md"]]: e === "md",
|
|
2555
2555
|
[xt["size--sm"]]: e === "sm"
|
|
@@ -2571,7 +2571,7 @@ const W = /* @__PURE__ */ Ul(ya), _a = "_wrapper_y5p8d_1", he = {
|
|
|
2571
2571
|
"with-label": "_with-label_rhquy_36",
|
|
2572
2572
|
"size--small": "_size--small_rhquy_42"
|
|
2573
2573
|
}, Xd = ({ size: e = "md", label: t, caption: l, ...i }) => {
|
|
2574
|
-
const n =
|
|
2574
|
+
const n = E.useMemo(
|
|
2575
2575
|
() => W(
|
|
2576
2576
|
Ae.wrapper,
|
|
2577
2577
|
{
|
|
@@ -2600,7 +2600,7 @@ const W = /* @__PURE__ */ Ul(ya), _a = "_wrapper_y5p8d_1", he = {
|
|
|
2600
2600
|
"size--medium": "_size--medium_1nz91_39",
|
|
2601
2601
|
"size--small": "_size--small_1nz91_44"
|
|
2602
2602
|
}, Xa = ({ size: e = "md", ...t }) => {
|
|
2603
|
-
const l =
|
|
2603
|
+
const l = E.useMemo(
|
|
2604
2604
|
() => W(
|
|
2605
2605
|
He.wrapper,
|
|
2606
2606
|
{
|
|
@@ -2630,7 +2630,7 @@ const W = /* @__PURE__ */ Ul(ya), _a = "_wrapper_y5p8d_1", he = {
|
|
|
2630
2630
|
"with-label": "_with-label_uamo5_25",
|
|
2631
2631
|
"size--small": "_size--small_uamo5_31"
|
|
2632
2632
|
}, Jd = ({ size: e = "md", label: t, caption: l, ...i }) => {
|
|
2633
|
-
const n =
|
|
2633
|
+
const n = E.useMemo(
|
|
2634
2634
|
() => W(
|
|
2635
2635
|
We.wrapper,
|
|
2636
2636
|
{
|
|
@@ -2663,7 +2663,7 @@ const W = /* @__PURE__ */ Ul(ya), _a = "_wrapper_y5p8d_1", he = {
|
|
|
2663
2663
|
destructive: oo,
|
|
2664
2664
|
disabled: so
|
|
2665
2665
|
}, Qd = ({ size: e = "md", target: t, leadicon: l, tailicon: i, badge: n, ...r }) => {
|
|
2666
|
-
const [a, o] =
|
|
2666
|
+
const [a, o] = E.useState(!1), c = E.useMemo(
|
|
2667
2667
|
() => W(
|
|
2668
2668
|
ke.wrapper,
|
|
2669
2669
|
{
|
|
@@ -2702,15 +2702,15 @@ const W = /* @__PURE__ */ Ul(ya), _a = "_wrapper_y5p8d_1", he = {
|
|
|
2702
2702
|
destructive: ho,
|
|
2703
2703
|
disabled: po
|
|
2704
2704
|
}, go = (e, t) => {
|
|
2705
|
-
|
|
2705
|
+
E.useEffect(() => {
|
|
2706
2706
|
e && (e.style.height = "auto", e.style.height = `${e.scrollHeight}px`);
|
|
2707
2707
|
}, [e, t]);
|
|
2708
2708
|
}, Zd = ({ ref: e, size: t = "md", target: l, ...i }) => {
|
|
2709
|
-
const n =
|
|
2709
|
+
const n = E.useRef(null), [r, a] = E.useState(i.defaultValue || i.value), [o, c] = E.useState(!1), s = E.useMemo(
|
|
2710
2710
|
() => W(
|
|
2711
2711
|
Ve.wrapper,
|
|
2712
2712
|
{
|
|
2713
|
-
[Ve.focused]:
|
|
2713
|
+
[Ve.focused]: o
|
|
2714
2714
|
},
|
|
2715
2715
|
{
|
|
2716
2716
|
[Ve["size--medium"]]: t === "md",
|
|
@@ -2723,15 +2723,25 @@ const W = /* @__PURE__ */ Ul(ya), _a = "_wrapper_y5p8d_1", he = {
|
|
|
2723
2723
|
[Ve.destructive]: l === "destructive"
|
|
2724
2724
|
}
|
|
2725
2725
|
),
|
|
2726
|
-
[
|
|
2726
|
+
[o, t, l, i.disabled]
|
|
2727
2727
|
);
|
|
2728
|
-
|
|
2729
|
-
const
|
|
2730
|
-
|
|
2731
|
-
},
|
|
2732
|
-
|
|
2728
|
+
E.useImperativeHandle(e, () => n.current, [n]), go(n.current, r);
|
|
2729
|
+
const m = () => {
|
|
2730
|
+
c(!0);
|
|
2731
|
+
}, f = () => {
|
|
2732
|
+
c(!1);
|
|
2733
2733
|
};
|
|
2734
|
-
return /* @__PURE__ */ d("div", { className:
|
|
2734
|
+
return /* @__PURE__ */ d("div", { className: s, children: /* @__PURE__ */ d("div", { className: Ve.content, children: /* @__PURE__ */ d(
|
|
2735
|
+
"textarea",
|
|
2736
|
+
{
|
|
2737
|
+
ref: n,
|
|
2738
|
+
...i,
|
|
2739
|
+
className: Ve.input,
|
|
2740
|
+
onFocus: m,
|
|
2741
|
+
onBlur: f,
|
|
2742
|
+
onInput: (u) => a(u.target.value)
|
|
2743
|
+
}
|
|
2744
|
+
) }) });
|
|
2735
2745
|
}, vo = "_wrapper_asagy_1", bo = "_label_asagy_8", yo = "_caption_asagy_13", _o = "_required_asagy_19", Yt = {
|
|
2736
2746
|
wrapper: vo,
|
|
2737
2747
|
label: bo,
|
|
@@ -2749,7 +2759,7 @@ const W = /* @__PURE__ */ Ul(ya), _a = "_wrapper_y5p8d_1", he = {
|
|
|
2749
2759
|
"state--success": "_state--success_sjjpm_26",
|
|
2750
2760
|
"state--destructive": "_state--destructive_sjjpm_29"
|
|
2751
2761
|
}, tm = ({ state: e = "default", ...t }) => {
|
|
2752
|
-
const l =
|
|
2762
|
+
const l = E.useMemo(
|
|
2753
2763
|
() => W(ot.wrapper, {
|
|
2754
2764
|
[ot["state--default"]]: e === "default",
|
|
2755
2765
|
[ot["state--success"]]: e === "success",
|
|
@@ -2779,7 +2789,7 @@ const W = /* @__PURE__ */ Ul(ya), _a = "_wrapper_y5p8d_1", he = {
|
|
|
2779
2789
|
"size--large": "_size--large_1lle3_62",
|
|
2780
2790
|
"size--medium": "_size--medium_1lle3_65"
|
|
2781
2791
|
}, nm = ({ size: e = "lg", ...t }) => {
|
|
2782
|
-
const [l, i] =
|
|
2792
|
+
const [l, i] = E.useState(() => t.defaultState ?? !1), n = E.useMemo(
|
|
2783
2793
|
() => W(
|
|
2784
2794
|
Te.wrapper,
|
|
2785
2795
|
{
|
|
@@ -2792,9 +2802,9 @@ const W = /* @__PURE__ */ Ul(ya), _a = "_wrapper_y5p8d_1", he = {
|
|
|
2792
2802
|
),
|
|
2793
2803
|
[l, e]
|
|
2794
2804
|
);
|
|
2795
|
-
return
|
|
2805
|
+
return E.useEffect(() => {
|
|
2796
2806
|
t.onState && t.onState(l);
|
|
2797
|
-
}, [l]),
|
|
2807
|
+
}, [l]), E.useEffect(() => {
|
|
2798
2808
|
t.expanded !== void 0 && i(t.expanded);
|
|
2799
2809
|
}, [t.expanded]), /* @__PURE__ */ z("div", { className: n, onClick: () => {
|
|
2800
2810
|
i(!l);
|
|
@@ -2827,7 +2837,7 @@ const W = /* @__PURE__ */ Ul(ya), _a = "_wrapper_y5p8d_1", he = {
|
|
|
2827
2837
|
"color--red": "_color--red_6mzzf_105",
|
|
2828
2838
|
"color--purple": "_color--purple_6mzzf_111"
|
|
2829
2839
|
}, jo = ({ size: e = "2xl", color: t = "gray", ...l }) => {
|
|
2830
|
-
const i =
|
|
2840
|
+
const i = E.useMemo(
|
|
2831
2841
|
() => W(
|
|
2832
2842
|
ie.wrapper,
|
|
2833
2843
|
{
|
|
@@ -2874,7 +2884,7 @@ const W = /* @__PURE__ */ Ul(ya), _a = "_wrapper_y5p8d_1", he = {
|
|
|
2874
2884
|
label: n,
|
|
2875
2885
|
leadicon: r
|
|
2876
2886
|
}) => {
|
|
2877
|
-
const a =
|
|
2887
|
+
const a = E.useMemo(
|
|
2878
2888
|
() => W(
|
|
2879
2889
|
Oe.wrapper,
|
|
2880
2890
|
{
|
|
@@ -2920,7 +2930,7 @@ const W = /* @__PURE__ */ Ul(ya), _a = "_wrapper_y5p8d_1", he = {
|
|
|
2920
2930
|
label: n,
|
|
2921
2931
|
leadslot: r
|
|
2922
2932
|
}) => {
|
|
2923
|
-
const a =
|
|
2933
|
+
const a = E.useMemo(
|
|
2924
2934
|
() => W(
|
|
2925
2935
|
De.wrapper,
|
|
2926
2936
|
{
|
|
@@ -3084,7 +3094,7 @@ let ei = function(e) {
|
|
|
3084
3094
|
r.length || (r = Pn(i.defaultValue)), n.pendingResizeTimeouts = [];
|
|
3085
3095
|
const a = [];
|
|
3086
3096
|
for (let o = 0; o < r.length; o += 1) r[o] = Ge(r[o], i), a.push(o);
|
|
3087
|
-
return n.resizeObserver = null, n.resizeElementRef =
|
|
3097
|
+
return n.resizeObserver = null, n.resizeElementRef = E.createRef(), n.state = { index: -1, upperBound: 0, sliderLength: 0, value: r, zIndices: a }, n;
|
|
3088
3098
|
}
|
|
3089
3099
|
Xo(t, e);
|
|
3090
3100
|
var l = t.prototype;
|
|
@@ -3243,12 +3253,12 @@ let ei = function(e) {
|
|
|
3243
3253
|
const i = [], { value: n } = this.state, r = n.length;
|
|
3244
3254
|
for (let s = 0; s < r; s += 1) i[s] = this.calcOffset(n[s], s);
|
|
3245
3255
|
const a = this.props.withTracks ? this.renderTracks(i) : null, o = this.renderThumbs(i), c = this.props.marks ? this.renderMarks() : null;
|
|
3246
|
-
return
|
|
3256
|
+
return E.createElement("div", { ref: (s) => {
|
|
3247
3257
|
this.slider = s, this.resizeElementRef.current = s;
|
|
3248
3258
|
}, style: { position: "relative" }, className: this.props.className + (this.props.disabled ? " disabled" : ""), onMouseDown: this.onSliderMouseDown, onClick: this.onSliderClick }, a, o, c);
|
|
3249
3259
|
}, t;
|
|
3250
|
-
}(
|
|
3251
|
-
ei.displayName = "ReactSlider", ei.defaultProps = { min: 0, max: 100, step: 1, pageFn: (e) => 10 * e, minDistance: 0, defaultValue: 0, orientation: "horizontal", className: "slider", thumbClassName: "thumb", thumbActiveClassName: "active", trackClassName: "track", markClassName: "mark", withTracks: !0, pearling: !1, disabled: !1, snapDragDisabled: !1, invert: !1, marks: [], renderThumb: (e) =>
|
|
3260
|
+
}(E.Component);
|
|
3261
|
+
ei.displayName = "ReactSlider", ei.defaultProps = { min: 0, max: 100, step: 1, pageFn: (e) => 10 * e, minDistance: 0, defaultValue: 0, orientation: "horizontal", className: "slider", thumbClassName: "thumb", thumbActiveClassName: "active", trackClassName: "track", markClassName: "mark", withTracks: !0, pearling: !1, disabled: !1, snapDragDisabled: !1, invert: !1, marks: [], renderThumb: (e) => E.createElement("div", e), renderTrack: (e) => E.createElement("div", e), renderMark: (e) => E.createElement("span", e) };
|
|
3252
3262
|
var Jo = ei;
|
|
3253
3263
|
const Qo = "_wrapper_1qb3z_1", Zo = "_slider_1qb3z_11", es = "_thumb_1qb3z_15", ts = "_track_1qb3z_28", Kt = {
|
|
3254
3264
|
wrapper: Qo,
|
|
@@ -3262,7 +3272,7 @@ const Qo = "_wrapper_1qb3z_1", Zo = "_slider_1qb3z_11", es = "_thumb_1qb3z_15",
|
|
|
3262
3272
|
"size--md": "_size--md_2g33r_67",
|
|
3263
3273
|
"size--sm": "_size--sm_2g33r_71"
|
|
3264
3274
|
}, rs = ({ size: e = "md", ...t }) => {
|
|
3265
|
-
const l =
|
|
3275
|
+
const l = E.useMemo(
|
|
3266
3276
|
() => W(kt.icon, {
|
|
3267
3277
|
[kt["size--md"]]: e === "md",
|
|
3268
3278
|
[kt["size--sm"]]: e === "sm"
|
|
@@ -3284,7 +3294,7 @@ const Qo = "_wrapper_1qb3z_1", Zo = "_slider_1qb3z_11", es = "_thumb_1qb3z_15",
|
|
|
3284
3294
|
"with-label": "_with-label_rhquy_36",
|
|
3285
3295
|
"size--small": "_size--small_rhquy_42"
|
|
3286
3296
|
}, rm = ({ size: e = "md", label: t, caption: l, ...i }) => {
|
|
3287
|
-
const n =
|
|
3297
|
+
const n = E.useMemo(
|
|
3288
3298
|
() => W(
|
|
3289
3299
|
Le.wrapper,
|
|
3290
3300
|
{
|
|
@@ -3794,7 +3804,7 @@ var rl;
|
|
|
3794
3804
|
function Us() {
|
|
3795
3805
|
if (rl) return ae;
|
|
3796
3806
|
rl = 1;
|
|
3797
|
-
var e =
|
|
3807
|
+
var e = E;
|
|
3798
3808
|
function t(c) {
|
|
3799
3809
|
var s = "https://react.dev/errors/" + c;
|
|
3800
3810
|
if (1 < arguments.length) {
|
|
@@ -3982,7 +3992,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
3982
3992
|
), f;
|
|
3983
3993
|
}
|
|
3984
3994
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
3985
|
-
var o =
|
|
3995
|
+
var o = E, c = {
|
|
3986
3996
|
d: {
|
|
3987
3997
|
f: e,
|
|
3988
3998
|
r: function() {
|
|
@@ -4342,12 +4352,12 @@ const Xs = (e) => ({
|
|
|
4342
4352
|
}, h = Oi(n), g = ki(h), p = await a.getDimensions(s), v = h === "y", y = v ? "top" : "left", x = v ? "bottom" : "right", k = v ? "clientHeight" : "clientWidth", D = r.reference[g] + r.reference[h] - u[h] - r.floating[g], C = u[h] - r.reference[h], M = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(s));
|
|
4343
4353
|
let P = M ? M[k] : 0;
|
|
4344
4354
|
(!P || !await (a.isElement == null ? void 0 : a.isElement(M))) && (P = o.floating[k] || r.floating[g]);
|
|
4345
|
-
const j = D / 2 - C / 2, F = P / 2 - p[g] / 2 - 1, I = ht(f[y], F), V = ht(f[x], F), L = I, B = P - p[g] - V, A = P / 2 - p[g] / 2 + j,
|
|
4355
|
+
const j = D / 2 - C / 2, F = P / 2 - p[g] / 2 - 1, I = ht(f[y], F), V = ht(f[x], F), L = I, B = P - p[g] - V, A = P / 2 - p[g] / 2 + j, T = ri(L, A, B), N = !c.arrow && Mt(n) != null && A !== T && r.reference[g] / 2 - (A < L ? I : V) - p[g] / 2 < 0, O = N ? A < L ? A - L : A - B : 0;
|
|
4346
4356
|
return {
|
|
4347
4357
|
[h]: u[h] + O,
|
|
4348
4358
|
data: {
|
|
4349
|
-
[h]:
|
|
4350
|
-
centerOffset: A -
|
|
4359
|
+
[h]: T,
|
|
4360
|
+
centerOffset: A - T - O,
|
|
4351
4361
|
...N && {
|
|
4352
4362
|
alignmentOffset: O
|
|
4353
4363
|
}
|
|
@@ -4392,15 +4402,15 @@ const Xs = (e) => ({
|
|
|
4392
4402
|
overflows: F
|
|
4393
4403
|
}], !F.every((A) => A <= 0)) {
|
|
4394
4404
|
var V, L;
|
|
4395
|
-
const A = (((V = r.flip) == null ? void 0 : V.index) || 0) + 1,
|
|
4396
|
-
if (
|
|
4405
|
+
const A = (((V = r.flip) == null ? void 0 : V.index) || 0) + 1, T = P[A];
|
|
4406
|
+
if (T)
|
|
4397
4407
|
return {
|
|
4398
4408
|
data: {
|
|
4399
4409
|
index: A,
|
|
4400
4410
|
overflows: I
|
|
4401
4411
|
},
|
|
4402
4412
|
reset: {
|
|
4403
|
-
placement:
|
|
4413
|
+
placement: T
|
|
4404
4414
|
}
|
|
4405
4415
|
};
|
|
4406
4416
|
let N = (L = I.filter((O) => O.overflows[0] <= 0).sort((O, w) => O.overflows[1] - w.overflows[1])[0]) == null ? void 0 : L.placement;
|
|
@@ -5029,7 +5039,7 @@ function wc(e) {
|
|
|
5029
5039
|
B();
|
|
5030
5040
|
}
|
|
5031
5041
|
}, [D, C, B, I, F]);
|
|
5032
|
-
const
|
|
5042
|
+
const T = b.useMemo(() => ({
|
|
5033
5043
|
reference: M,
|
|
5034
5044
|
floating: P,
|
|
5035
5045
|
setReference: x,
|
|
@@ -5061,10 +5071,10 @@ function wc(e) {
|
|
|
5061
5071
|
return b.useMemo(() => ({
|
|
5062
5072
|
...m,
|
|
5063
5073
|
update: B,
|
|
5064
|
-
refs:
|
|
5074
|
+
refs: T,
|
|
5065
5075
|
elements: N,
|
|
5066
5076
|
floatingStyles: O
|
|
5067
|
-
}), [m, B,
|
|
5077
|
+
}), [m, B, T, N, O]);
|
|
5068
5078
|
}
|
|
5069
5079
|
const xc = (e) => {
|
|
5070
5080
|
function t(l) {
|
|
@@ -5197,7 +5207,7 @@ const pl = /* @__PURE__ */ b.forwardRef(function(t, l) {
|
|
|
5197
5207
|
const j = m * 2, F = j / 2, I = o / 2 * (s / -8 + 1), V = c / 2 * s / 4, L = !!h, B = P && C === "end" ? "bottom" : "top";
|
|
5198
5208
|
let A = P && C === "end" ? "right" : "left";
|
|
5199
5209
|
P && x && (A = C === "end" ? "left" : "right");
|
|
5200
|
-
const
|
|
5210
|
+
const T = (r == null ? void 0 : r.x) != null ? P || r.x : "", N = (r == null ? void 0 : r.y) != null ? P || r.y : "", O = h || "M0,0" + (" H" + o) + (" L" + (o - I) + "," + (c - V)) + (" Q" + o / 2 + "," + c + " " + I + "," + (c - V)) + " Z", w = {
|
|
5201
5211
|
top: L ? "rotate(180deg)" : "",
|
|
5202
5212
|
left: L ? "rotate(90deg)" : "rotate(-90deg)",
|
|
5203
5213
|
bottom: L ? "" : "rotate(180deg)",
|
|
@@ -5213,7 +5223,7 @@ const pl = /* @__PURE__ */ b.forwardRef(function(t, l) {
|
|
|
5213
5223
|
style: {
|
|
5214
5224
|
position: "absolute",
|
|
5215
5225
|
pointerEvents: "none",
|
|
5216
|
-
[A]:
|
|
5226
|
+
[A]: T,
|
|
5217
5227
|
[B]: N,
|
|
5218
5228
|
[D]: M || L ? "100%" : "calc(100% - " + j / 2 + "px)",
|
|
5219
5229
|
transform: [w, g].filter((_) => !!_).join(" "),
|
|
@@ -5399,7 +5409,7 @@ function jc(e, t) {
|
|
|
5399
5409
|
}, [l, L, B]), b.useEffect(() => () => {
|
|
5400
5410
|
L(), clearTimeout(k.current), clearTimeout(C.current), B();
|
|
5401
5411
|
}, [o, a.domReference, L, B]);
|
|
5402
|
-
const
|
|
5412
|
+
const T = b.useMemo(() => {
|
|
5403
5413
|
function O(w) {
|
|
5404
5414
|
x.current = w.pointerType;
|
|
5405
5415
|
}
|
|
@@ -5425,9 +5435,9 @@ function jc(e, t) {
|
|
|
5425
5435
|
}
|
|
5426
5436
|
}), [V, A]);
|
|
5427
5437
|
return b.useMemo(() => o ? {
|
|
5428
|
-
reference:
|
|
5438
|
+
reference: T,
|
|
5429
5439
|
floating: N
|
|
5430
|
-
} : {}, [o,
|
|
5440
|
+
} : {}, [o, T, N]);
|
|
5431
5441
|
}
|
|
5432
5442
|
function Fn(e, t) {
|
|
5433
5443
|
let l = e.filter((n) => {
|
|
@@ -5647,12 +5657,12 @@ function Hc(e, t) {
|
|
|
5647
5657
|
} = wl(h), {
|
|
5648
5658
|
escapeKey: M,
|
|
5649
5659
|
outsidePress: P
|
|
5650
|
-
} = wl(g), j = b.useRef(!1), F = je((
|
|
5660
|
+
} = wl(g), j = b.useRef(!1), F = je((T) => {
|
|
5651
5661
|
var N;
|
|
5652
|
-
if (!l || !a || !o ||
|
|
5662
|
+
if (!l || !a || !o || T.key !== "Escape" || j.current)
|
|
5653
5663
|
return;
|
|
5654
5664
|
const O = (N = r.current.floatingContext) == null ? void 0 : N.nodeId, w = p ? Fn(p.nodesRef.current, O) : [];
|
|
5655
|
-
if (!D && (
|
|
5665
|
+
if (!D && (T.stopPropagation(), w.length > 0)) {
|
|
5656
5666
|
let _ = !0;
|
|
5657
5667
|
if (w.forEach((S) => {
|
|
5658
5668
|
var R;
|
|
@@ -5663,22 +5673,22 @@ function Hc(e, t) {
|
|
|
5663
5673
|
}), !_)
|
|
5664
5674
|
return;
|
|
5665
5675
|
}
|
|
5666
|
-
i(!1, vs(
|
|
5667
|
-
}), I = je((
|
|
5676
|
+
i(!1, vs(T) ? T.nativeEvent : T, "escape-key");
|
|
5677
|
+
}), I = je((T) => {
|
|
5668
5678
|
var N;
|
|
5669
5679
|
const O = () => {
|
|
5670
5680
|
var w;
|
|
5671
|
-
F(
|
|
5681
|
+
F(T), (w = ct(T)) == null || w.removeEventListener("keydown", O);
|
|
5672
5682
|
};
|
|
5673
|
-
(N = ct(
|
|
5674
|
-
}), V = je((
|
|
5683
|
+
(N = ct(T)) == null || N.addEventListener("keydown", O);
|
|
5684
|
+
}), V = je((T) => {
|
|
5675
5685
|
var N;
|
|
5676
5686
|
const O = x.current;
|
|
5677
5687
|
x.current = !1;
|
|
5678
5688
|
const w = k.current;
|
|
5679
|
-
if (k.current = !1, s === "click" && w || O || typeof y == "function" && !y(
|
|
5689
|
+
if (k.current = !1, s === "click" && w || O || typeof y == "function" && !y(T))
|
|
5680
5690
|
return;
|
|
5681
|
-
const _ = ct(
|
|
5691
|
+
const _ = ct(T), S = "[" + Pt("inert") + "]", R = Be(n.floating).querySelectorAll(S);
|
|
5682
5692
|
let q = U(_) ? _ : null;
|
|
5683
5693
|
for (; q && !$e(q); ) {
|
|
5684
5694
|
const te = Ie(q);
|
|
@@ -5692,15 +5702,15 @@ function Hc(e, t) {
|
|
|
5692
5702
|
Array.from(R).every((te) => !mt(q, te)))
|
|
5693
5703
|
return;
|
|
5694
5704
|
if (ge(_) && A) {
|
|
5695
|
-
const te = $e(_), ce = ve(_), _e = /auto|scroll/, Ne = te || _e.test(ce.overflowX), yt = te || _e.test(ce.overflowY), _t = Ne && _.clientWidth > 0 && _.scrollWidth > _.clientWidth, rt = yt && _.clientHeight > 0 && _.scrollHeight > _.clientHeight, wt = ce.direction === "rtl", J = rt && (wt ?
|
|
5705
|
+
const te = $e(_), ce = ve(_), _e = /auto|scroll/, Ne = te || _e.test(ce.overflowX), yt = te || _e.test(ce.overflowY), _t = Ne && _.clientWidth > 0 && _.scrollWidth > _.clientWidth, rt = yt && _.clientHeight > 0 && _.scrollHeight > _.clientHeight, wt = ce.direction === "rtl", J = rt && (wt ? T.offsetX <= _.offsetWidth - _.clientWidth : T.offsetX > _.clientWidth), Ke = _t && T.offsetY > _.clientHeight;
|
|
5696
5706
|
if (J || Ke)
|
|
5697
5707
|
return;
|
|
5698
5708
|
}
|
|
5699
5709
|
const ye = (N = r.current.floatingContext) == null ? void 0 : N.nodeId, Me = p && Fn(p.nodesRef.current, ye).some((te) => {
|
|
5700
5710
|
var ce;
|
|
5701
|
-
return An(
|
|
5711
|
+
return An(T, (ce = te.context) == null ? void 0 : ce.elements.floating);
|
|
5702
5712
|
});
|
|
5703
|
-
if (An(
|
|
5713
|
+
if (An(T, n.floating) || An(T, n.domReference) || Me)
|
|
5704
5714
|
return;
|
|
5705
5715
|
const lt = p ? Fn(p.nodesRef.current, ye) : [];
|
|
5706
5716
|
if (lt.length > 0) {
|
|
@@ -5714,28 +5724,28 @@ function Hc(e, t) {
|
|
|
5714
5724
|
}), !te)
|
|
5715
5725
|
return;
|
|
5716
5726
|
}
|
|
5717
|
-
i(!1,
|
|
5718
|
-
}), L = je((
|
|
5727
|
+
i(!1, T, "outside-press");
|
|
5728
|
+
}), L = je((T) => {
|
|
5719
5729
|
var N;
|
|
5720
5730
|
const O = () => {
|
|
5721
5731
|
var w;
|
|
5722
|
-
V(
|
|
5732
|
+
V(T), (w = ct(T)) == null || w.removeEventListener(s, O);
|
|
5723
5733
|
};
|
|
5724
|
-
(N = ct(
|
|
5734
|
+
(N = ct(T)) == null || N.addEventListener(s, O);
|
|
5725
5735
|
});
|
|
5726
5736
|
b.useEffect(() => {
|
|
5727
5737
|
if (!l || !a)
|
|
5728
5738
|
return;
|
|
5729
5739
|
r.current.__escapeKeyBubbles = D, r.current.__outsidePressBubbles = C;
|
|
5730
|
-
let
|
|
5740
|
+
let T = -1;
|
|
5731
5741
|
function N(R) {
|
|
5732
5742
|
i(!1, R, "ancestor-scroll");
|
|
5733
5743
|
}
|
|
5734
5744
|
function O() {
|
|
5735
|
-
window.clearTimeout(
|
|
5745
|
+
window.clearTimeout(T), j.current = !0;
|
|
5736
5746
|
}
|
|
5737
5747
|
function w() {
|
|
5738
|
-
|
|
5748
|
+
T = window.setTimeout(
|
|
5739
5749
|
() => {
|
|
5740
5750
|
j.current = !1;
|
|
5741
5751
|
},
|
|
@@ -5757,7 +5767,7 @@ function Hc(e, t) {
|
|
|
5757
5767
|
}), () => {
|
|
5758
5768
|
o && (_.removeEventListener("keydown", M ? I : F, M), _.removeEventListener("compositionstart", O), _.removeEventListener("compositionend", w)), y && _.removeEventListener(s, P ? L : V, P), S.forEach((R) => {
|
|
5759
5769
|
R.removeEventListener("scroll", N);
|
|
5760
|
-
}), window.clearTimeout(
|
|
5770
|
+
}), window.clearTimeout(T);
|
|
5761
5771
|
};
|
|
5762
5772
|
}, [r, n, o, y, s, l, i, u, a, D, C, F, M, I, V, P, L]), b.useEffect(() => {
|
|
5763
5773
|
x.current = !1;
|
|
@@ -5765,12 +5775,12 @@ function Hc(e, t) {
|
|
|
5765
5775
|
const B = b.useMemo(() => ({
|
|
5766
5776
|
onKeyDown: F,
|
|
5767
5777
|
...m && {
|
|
5768
|
-
[Uc[f]]: (
|
|
5769
|
-
i(!1,
|
|
5778
|
+
[Uc[f]]: (T) => {
|
|
5779
|
+
i(!1, T.nativeEvent, "reference-press");
|
|
5770
5780
|
},
|
|
5771
5781
|
...f !== "click" && {
|
|
5772
|
-
onClick(
|
|
5773
|
-
i(!1,
|
|
5782
|
+
onClick(T) {
|
|
5783
|
+
i(!1, T.nativeEvent, "reference-press");
|
|
5774
5784
|
}
|
|
5775
5785
|
}
|
|
5776
5786
|
}
|
|
@@ -6098,7 +6108,7 @@ const tu = "_wrapper_iejlm_1", Bn = {
|
|
|
6098
6108
|
"size--sm": "_size--sm_iejlm_12",
|
|
6099
6109
|
"size--md": "_size--md_iejlm_15"
|
|
6100
6110
|
}, nu = (e) => {
|
|
6101
|
-
const t =
|
|
6111
|
+
const t = E.useMemo(
|
|
6102
6112
|
() => W(Bn.wrapper, {
|
|
6103
6113
|
[Bn["size--sm"]]: e.size === "sm",
|
|
6104
6114
|
[Bn["size--md"]]: e.size === "md"
|
|
@@ -6773,7 +6783,7 @@ function Wr(e, t) {
|
|
|
6773
6783
|
}
|
|
6774
6784
|
var Re = "react-calendar__navigation";
|
|
6775
6785
|
function cf(e) {
|
|
6776
|
-
var t = e.activeStartDate, l = e.drillUp, i = e.formatMonthYear, n = i === void 0 ? Lr : i, r = e.formatYear, a = r === void 0 ? bn : r, o = e.locale, c = e.maxDate, s = e.minDate, m = e.navigationAriaLabel, f = m === void 0 ? "" : m, u = e.navigationAriaLive, h = e.navigationLabel, g = e.next2AriaLabel, p = g === void 0 ? "" : g, v = e.next2Label, y = v === void 0 ? "»" : v, x = e.nextAriaLabel, k = x === void 0 ? "" : x, D = e.nextLabel, C = D === void 0 ? "›" : D, M = e.prev2AriaLabel, P = M === void 0 ? "" : M, j = e.prev2Label, F = j === void 0 ? "«" : j, I = e.prevAriaLabel, V = I === void 0 ? "" : I, L = e.prevLabel, B = L === void 0 ? "‹" : L, A = e.setActiveStartDate,
|
|
6786
|
+
var t = e.activeStartDate, l = e.drillUp, i = e.formatMonthYear, n = i === void 0 ? Lr : i, r = e.formatYear, a = r === void 0 ? bn : r, o = e.locale, c = e.maxDate, s = e.minDate, m = e.navigationAriaLabel, f = m === void 0 ? "" : m, u = e.navigationAriaLive, h = e.navigationLabel, g = e.next2AriaLabel, p = g === void 0 ? "" : g, v = e.next2Label, y = v === void 0 ? "»" : v, x = e.nextAriaLabel, k = x === void 0 ? "" : x, D = e.nextLabel, C = D === void 0 ? "›" : D, M = e.prev2AriaLabel, P = M === void 0 ? "" : M, j = e.prev2Label, F = j === void 0 ? "«" : j, I = e.prevAriaLabel, V = I === void 0 ? "" : I, L = e.prevLabel, B = L === void 0 ? "‹" : L, A = e.setActiveStartDate, T = e.showDoubleView, N = e.view, O = e.views, w = O.indexOf(N) > 0, _ = N !== "century", S = ef(N, t), R = _ ? tf(N, t) : void 0, q = jr(N, t), ye = _ ? nf(N, t) : void 0, Me = function() {
|
|
6777
6787
|
if (S.getFullYear() < 0)
|
|
6778
6788
|
return !0;
|
|
6779
6789
|
var J = lf(N, t);
|
|
@@ -6820,7 +6830,7 @@ function cf(e) {
|
|
|
6820
6830
|
}
|
|
6821
6831
|
function wt() {
|
|
6822
6832
|
var J = "".concat(Re, "__label");
|
|
6823
|
-
return z("button", { "aria-label": f, "aria-live": u, className: J, disabled: !w, onClick: l, style: { flexGrow: 1 }, type: "button", children: [d("span", { className: "".concat(J, "__labelText ").concat(J, "__labelText--from"), children: rt(t) }),
|
|
6833
|
+
return z("button", { "aria-label": f, "aria-live": u, className: J, disabled: !w, onClick: l, style: { flexGrow: 1 }, type: "button", children: [d("span", { className: "".concat(J, "__labelText ").concat(J, "__labelText--from"), children: rt(t) }), T ? z(Bl, { children: [d("span", { className: "".concat(J, "__divider"), children: " – " }), d("span", { className: "".concat(J, "__labelText ").concat(J, "__labelText--to"), children: rt(q) })] }) : null] });
|
|
6824
6834
|
}
|
|
6825
6835
|
return z("div", { className: Re, children: [F !== null && _ ? d("button", { "aria-label": P, className: "".concat(Re, "__arrow ").concat(Re, "__prev2-button"), disabled: lt, onClick: Ne, type: "button", children: F }) : null, B !== null && d("button", { "aria-label": V, className: "".concat(Re, "__arrow ").concat(Re, "__prev-button"), disabled: Me, onClick: _e, type: "button", children: B }), wt(), C !== null && d("button", { "aria-label": k, className: "".concat(Re, "__arrow ").concat(Re, "__next-button"), disabled: te, onClick: yt, type: "button", children: C }), y !== null && _ ? d("button", { "aria-label": p, className: "".concat(Re, "__arrow ").concat(Re, "__next2-button"), disabled: ce, onClick: _t, type: "button", children: y }) : null] });
|
|
6826
6836
|
}
|
|
@@ -7378,7 +7388,7 @@ function Qt(e, t) {
|
|
|
7378
7388
|
return e instanceof Date && t instanceof Date && e.getTime() === t.getTime();
|
|
7379
7389
|
}
|
|
7380
7390
|
var Bf = ga(function(t, l) {
|
|
7381
|
-
var i = t.activeStartDate, n = t.allowPartialRange, r = t.calendarType, a = t.className, o = t.defaultActiveStartDate, c = t.defaultValue, s = t.defaultView, m = t.formatDay, f = t.formatLongDate, u = t.formatMonth, h = t.formatMonthYear, g = t.formatShortWeekday, p = t.formatWeekday, v = t.formatYear, y = t.goToRangeStartOnSelect, x = y === void 0 ? !0 : y, k = t.inputRef, D = t.locale, C = t.maxDate, M = C === void 0 ? $f : C, P = t.maxDetail, j = P === void 0 ? "month" : P, F = t.minDate, I = F === void 0 ? ji : F, V = t.minDetail, L = V === void 0 ? "century" : V, B = t.navigationAriaLabel, A = t.navigationAriaLive,
|
|
7391
|
+
var i = t.activeStartDate, n = t.allowPartialRange, r = t.calendarType, a = t.className, o = t.defaultActiveStartDate, c = t.defaultValue, s = t.defaultView, m = t.formatDay, f = t.formatLongDate, u = t.formatMonth, h = t.formatMonthYear, g = t.formatShortWeekday, p = t.formatWeekday, v = t.formatYear, y = t.goToRangeStartOnSelect, x = y === void 0 ? !0 : y, k = t.inputRef, D = t.locale, C = t.maxDate, M = C === void 0 ? $f : C, P = t.maxDetail, j = P === void 0 ? "month" : P, F = t.minDate, I = F === void 0 ? ji : F, V = t.minDetail, L = V === void 0 ? "century" : V, B = t.navigationAriaLabel, A = t.navigationAriaLive, T = t.navigationLabel, N = t.next2AriaLabel, O = t.next2Label, w = t.nextAriaLabel, _ = t.nextLabel, S = t.onActiveStartDateChange, R = t.onChange, q = t.onClickDay, ye = t.onClickDecade, Me = t.onClickMonth, lt = t.onClickWeekNumber, te = t.onClickYear, ce = t.onDrillDown, _e = t.onDrillUp, Ne = t.onViewChange, yt = t.prev2AriaLabel, _t = t.prev2Label, rt = t.prevAriaLabel, wt = t.prevLabel, J = t.returnValue, Ke = J === void 0 ? "start" : J, be = t.selectRange, It = t.showDoubleView, Fi = t.showFixedNumberOfWeeks, Wi = t.showNavigation, Gr = Wi === void 0 ? !0 : Wi, Xr = t.showNeighboringCentury, Jr = t.showNeighboringDecade, Vi = t.showNeighboringMonth, Qr = Vi === void 0 ? !0 : Vi, Zr = t.showWeekNumbers, ea = t.tileClassName, ta = t.tileContent, na = t.tileDisabled, xn = t.value, Bi = t.view, Yi = Bt(o), ia = Yi[0], Ft = Yi[1], qi = Bt(null), la = qi[0], Ui = qi[1], Ki = Bt(Array.isArray(c) ? c.map(function($) {
|
|
7382
7392
|
return $ !== null ? St($) : null;
|
|
7383
7393
|
}) : c != null ? St(c) : null), kn = Ki[0], ra = Ki[1], Hi = Bt(s), aa = Hi[0], Gi = Hi[1], fe = i || ia || Vf({
|
|
7384
7394
|
activeStartDate: i,
|
|
@@ -7602,7 +7612,7 @@ var Bf = ga(function(t, l) {
|
|
|
7602
7612
|
}
|
|
7603
7613
|
}
|
|
7604
7614
|
function ca() {
|
|
7605
|
-
return Gr ? d(cf, { activeStartDate: fe, drillUp: Nn, formatMonthYear: h, formatYear: v, locale: D, maxDate: M, minDate: I, navigationAriaLabel: B, navigationAriaLive: A, navigationLabel:
|
|
7615
|
+
return Gr ? d(cf, { activeStartDate: fe, drillUp: Nn, formatMonthYear: h, formatYear: v, locale: D, maxDate: M, minDate: I, navigationAriaLabel: B, navigationAriaLive: A, navigationLabel: T, next2AriaLabel: N, next2Label: O, nextAriaLabel: w, nextLabel: _, prev2AriaLabel: yt, prev2Label: _t, prevAriaLabel: rt, prevLabel: wt, setActiveStartDate: Dn, showDoubleView: It, view: H, views: Ee }) : null;
|
|
7606
7616
|
}
|
|
7607
7617
|
var ua = Array.isArray(de) ? de : [de];
|
|
7608
7618
|
return z("div", { className: hn(Jt, be && ua.length === 1 && "".concat(Jt, "--selectRange"), It && "".concat(Jt, "--doubleView"), a), ref: k, children: [ca(), z("div", { className: "".concat(Jt, "__viewContainer"), onBlur: be ? Tn : void 0, onMouseLeave: be ? Tn : void 0, children: [Qi(), It ? Qi(!0) : null] })] });
|
|
@@ -7634,7 +7644,7 @@ const Yf = "_wrapper_1w27z_1", qf = "_calendar_1w27z_14", Vl = {
|
|
|
7634
7644
|
onLeftActionClick: c,
|
|
7635
7645
|
onRightActionClick: s
|
|
7636
7646
|
}) => {
|
|
7637
|
-
const m =
|
|
7647
|
+
const m = E.useMemo(
|
|
7638
7648
|
() => W(
|
|
7639
7649
|
le.wrapper,
|
|
7640
7650
|
{
|
|
@@ -7650,12 +7660,12 @@ const Yf = "_wrapper_1w27z_1", qf = "_calendar_1w27z_14", Vl = {
|
|
|
7650
7660
|
}
|
|
7651
7661
|
),
|
|
7652
7662
|
[e, t, l]
|
|
7653
|
-
), f =
|
|
7663
|
+
), f = E.useMemo(
|
|
7654
7664
|
() => W(le["left-action"], {
|
|
7655
7665
|
[le.disabled]: i
|
|
7656
7666
|
}),
|
|
7657
7667
|
[i]
|
|
7658
|
-
), u =
|
|
7668
|
+
), u = E.useMemo(
|
|
7659
7669
|
() => W(le["right-action"], {
|
|
7660
7670
|
[le.disabled]: n
|
|
7661
7671
|
}),
|
|
@@ -7694,7 +7704,7 @@ const Yf = "_wrapper_1w27z_1", qf = "_calendar_1w27z_14", Vl = {
|
|
|
7694
7704
|
divider: i = ">",
|
|
7695
7705
|
...n
|
|
7696
7706
|
}) => {
|
|
7697
|
-
const r =
|
|
7707
|
+
const r = E.useMemo(
|
|
7698
7708
|
() => W(
|
|
7699
7709
|
se["lead-icon"],
|
|
7700
7710
|
{
|
|
@@ -7706,7 +7716,7 @@ const Yf = "_wrapper_1w27z_1", qf = "_calendar_1w27z_14", Vl = {
|
|
|
7706
7716
|
}
|
|
7707
7717
|
),
|
|
7708
7718
|
[n.leadicon, t, e]
|
|
7709
|
-
), a =
|
|
7719
|
+
), a = E.useMemo(
|
|
7710
7720
|
() => W(
|
|
7711
7721
|
se["tail-icon"],
|
|
7712
7722
|
{
|
|
@@ -7718,7 +7728,7 @@ const Yf = "_wrapper_1w27z_1", qf = "_calendar_1w27z_14", Vl = {
|
|
|
7718
7728
|
}
|
|
7719
7729
|
),
|
|
7720
7730
|
[n.leadicon, t, e]
|
|
7721
|
-
), o =
|
|
7731
|
+
), o = E.useMemo(
|
|
7722
7732
|
() => W(
|
|
7723
7733
|
se.divider,
|
|
7724
7734
|
{
|
|
@@ -7730,7 +7740,7 @@ const Yf = "_wrapper_1w27z_1", qf = "_calendar_1w27z_14", Vl = {
|
|
|
7730
7740
|
}
|
|
7731
7741
|
),
|
|
7732
7742
|
[n.leadicon, t, e]
|
|
7733
|
-
), c =
|
|
7743
|
+
), c = E.useMemo(
|
|
7734
7744
|
() => W(se.label, {
|
|
7735
7745
|
[se.active]: e
|
|
7736
7746
|
}),
|
|
@@ -7781,7 +7791,7 @@ const Yf = "_wrapper_1w27z_1", qf = "_calendar_1w27z_14", Vl = {
|
|
|
7781
7791
|
caption: ud,
|
|
7782
7792
|
badge: fd
|
|
7783
7793
|
}, um = (e) => {
|
|
7784
|
-
const t =
|
|
7794
|
+
const t = E.useMemo(
|
|
7785
7795
|
() => W(st.wrapper, {
|
|
7786
7796
|
[st.active]: e.active
|
|
7787
7797
|
}),
|
|
@@ -7791,7 +7801,7 @@ const Yf = "_wrapper_1w27z_1", qf = "_calendar_1w27z_14", Vl = {
|
|
|
7791
7801
|
e.leadicon && /* @__PURE__ */ d("div", { className: st["lead-icon"], children: /* @__PURE__ */ d(Y, { icon: e.leadicon }) }),
|
|
7792
7802
|
/* @__PURE__ */ z("div", { className: st.content, children: [
|
|
7793
7803
|
/* @__PURE__ */ d("div", { className: st.caption, children: /* @__PURE__ */ d(Q, { size: "caption-l", weight: "semi-bold", children: /* @__PURE__ */ d("p", { children: e.caption }) }) }),
|
|
7794
|
-
e.badge && /* @__PURE__ */ d("div", { className: st.badge, children:
|
|
7804
|
+
e.badge && /* @__PURE__ */ d("div", { className: st.badge, children: E.cloneElement(e.badge, {
|
|
7795
7805
|
size: "xs",
|
|
7796
7806
|
stroke: !0,
|
|
7797
7807
|
color: "orange"
|
|
@@ -7803,7 +7813,7 @@ const Yf = "_wrapper_1w27z_1", qf = "_calendar_1w27z_14", Vl = {
|
|
|
7803
7813
|
label: md,
|
|
7804
7814
|
content: hd,
|
|
7805
7815
|
caption: pd
|
|
7806
|
-
}, gd = (e) => /* @__PURE__ */ d("div", { className: wn.label, children: e.children }), vd = (e) => /* @__PURE__ */ d("div", { className: wn.content, children: e.children }), bd = (e) => /* @__PURE__ */ d("div", { className: wn.caption, children: e.children }), yd = (e) => /* @__PURE__ */ d("div", { className: wn.wrapper, children:
|
|
7816
|
+
}, gd = (e) => /* @__PURE__ */ d("div", { className: wn.label, children: e.children }), vd = (e) => /* @__PURE__ */ d("div", { className: wn.content, children: e.children }), bd = (e) => /* @__PURE__ */ d("div", { className: wn.caption, children: e.children }), yd = (e) => /* @__PURE__ */ d("div", { className: wn.wrapper, children: E.Children.map(e.children, (t) => E.isValidElement(t) ? t : null) }), fm = Object.assign(yd, {
|
|
7807
7817
|
Label: gd,
|
|
7808
7818
|
Content: vd,
|
|
7809
7819
|
Caption: bd
|