@granto-umbrella/umbrella-components 2.3.20 → 2.3.21
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/umbrella-components.es.js +228 -208
- package/dist/umbrella-components.umd.js +11 -11
- package/package.json +1 -1
- package/src/components/atoms/Pill/Pill.styles.ts +46 -0
- package/src/components/atoms/Pill/Pill.tsx +36 -0
- package/src/components/atoms/Pill/Pill.types.ts +18 -0
- package/src/styles/tokens/colors.ts +25 -3
|
@@ -113,7 +113,7 @@ function Jm2() {
|
|
|
113
113
|
var d0 = D.displayName || D.name || "";
|
|
114
114
|
return d0 !== "" ? W + "(" + d0 + ")" : W;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function x(w) {
|
|
117
117
|
return w.displayName || "Context";
|
|
118
118
|
}
|
|
119
119
|
function q(w) {
|
|
@@ -141,10 +141,10 @@ function Jm2() {
|
|
|
141
141
|
switch (w.$$typeof) {
|
|
142
142
|
case s:
|
|
143
143
|
var D = w;
|
|
144
|
-
return
|
|
144
|
+
return x(D) + ".Consumer";
|
|
145
145
|
case p:
|
|
146
146
|
var W = w;
|
|
147
|
-
return
|
|
147
|
+
return x(W._context) + ".Provider";
|
|
148
148
|
case u:
|
|
149
149
|
return k(w, w.render, "ForwardRef");
|
|
150
150
|
case v:
|
|
@@ -161,14 +161,14 @@ function Jm2() {
|
|
|
161
161
|
}
|
|
162
162
|
return null;
|
|
163
163
|
}
|
|
164
|
-
var U = Object.assign, Y = 0,
|
|
164
|
+
var U = Object.assign, Y = 0, N, B, G, Q, n0, m0, l0;
|
|
165
165
|
function V0() {
|
|
166
166
|
}
|
|
167
167
|
V0.__reactDisabledLog = !0;
|
|
168
168
|
function _0() {
|
|
169
169
|
{
|
|
170
170
|
if (Y === 0) {
|
|
171
|
-
|
|
171
|
+
N = console.log, B = console.info, G = console.warn, Q = console.error, n0 = console.group, m0 = console.groupCollapsed, l0 = console.groupEnd;
|
|
172
172
|
var w = {
|
|
173
173
|
configurable: !0,
|
|
174
174
|
enumerable: !0,
|
|
@@ -198,7 +198,7 @@ function Jm2() {
|
|
|
198
198
|
};
|
|
199
199
|
Object.defineProperties(console, {
|
|
200
200
|
log: U({}, w, {
|
|
201
|
-
value:
|
|
201
|
+
value: N
|
|
202
202
|
}),
|
|
203
203
|
info: U({}, w, {
|
|
204
204
|
value: B
|
|
@@ -3255,7 +3255,7 @@ function Ks2(a, e, t) {
|
|
|
3255
3255
|
var y = new Us2(t, f, l ? c.componentStyle : void 0);
|
|
3256
3256
|
function g(M, E) {
|
|
3257
3257
|
return function(j, V, P) {
|
|
3258
|
-
var C = j.attrs, S = j.componentStyle, k = j.defaultProps,
|
|
3258
|
+
var C = j.attrs, S = j.componentStyle, k = j.defaultProps, x = j.foldedComponentIds, q = j.styledComponentId, U = j.target, Y = r.useContext(Nt), N = va(), B = j.shouldForwardProp || N.shouldForwardProp;
|
|
3259
3259
|
process.env.NODE_ENV !== "production" && Vr(q);
|
|
3260
3260
|
var G = RJ0(V, Y, k) || O8, Q = function(T0, Z0, C0) {
|
|
3261
3261
|
for (var w0, I0 = m1(m1({}, Z0), { className: void 0, theme: C0 }), a1 = 0; a1 < T0.length; a1 += 1) {
|
|
@@ -3270,7 +3270,7 @@ function Ks2(a, e, t) {
|
|
|
3270
3270
|
return process.env.NODE_ENV !== "production" && Vr(w0), w0;
|
|
3271
3271
|
}(S, Q);
|
|
3272
3272
|
process.env.NODE_ENV !== "production" && j.warnTooManyClasses && j.warnTooManyClasses(V0);
|
|
3273
|
-
var _0 = Y2(
|
|
3273
|
+
var _0 = Y2(x, q);
|
|
3274
3274
|
return V0 && (_0 += " " + V0), Q.className && (_0 += " " + Q.className), m0[S4(n0) && !sa.has(n0) ? "class" : "className"] = _0, m0.ref = P, ce(n0, m0);
|
|
3275
3275
|
}(O, M, E);
|
|
3276
3276
|
}
|
|
@@ -3403,7 +3403,7 @@ const Ge = {
|
|
|
3403
3403
|
md: Ge.width.x1,
|
|
3404
3404
|
lg: Ge.width.x2
|
|
3405
3405
|
}
|
|
3406
|
-
},
|
|
3406
|
+
}, I = {
|
|
3407
3407
|
base: {
|
|
3408
3408
|
white: "#ffffff",
|
|
3409
3409
|
black: "#000000"
|
|
@@ -3515,156 +3515,176 @@ const Ge = {
|
|
|
3515
3515
|
}
|
|
3516
3516
|
}, F = {
|
|
3517
3517
|
base: {
|
|
3518
|
-
background:
|
|
3519
|
-
text:
|
|
3518
|
+
background: I.base.white,
|
|
3519
|
+
text: I.base.black
|
|
3520
3520
|
},
|
|
3521
3521
|
neutral: {
|
|
3522
|
-
100:
|
|
3523
|
-
200:
|
|
3524
|
-
300:
|
|
3525
|
-
400:
|
|
3526
|
-
500:
|
|
3527
|
-
600:
|
|
3528
|
-
700:
|
|
3522
|
+
100: I.gray[100],
|
|
3523
|
+
200: I.gray[200],
|
|
3524
|
+
300: I.gray[300],
|
|
3525
|
+
400: I.gray[400],
|
|
3526
|
+
500: I.gray[500],
|
|
3527
|
+
600: I.gray[600],
|
|
3528
|
+
700: I.gray[700]
|
|
3529
3529
|
},
|
|
3530
3530
|
branding: {
|
|
3531
3531
|
surface: {
|
|
3532
|
-
disabled:
|
|
3533
|
-
enabled:
|
|
3534
|
-
hover:
|
|
3535
|
-
pressed:
|
|
3532
|
+
disabled: I.purple[100],
|
|
3533
|
+
enabled: I.purple[700],
|
|
3534
|
+
hover: I.purple[800],
|
|
3535
|
+
pressed: I.purple[1e3]
|
|
3536
3536
|
},
|
|
3537
3537
|
border: {
|
|
3538
|
-
enabled:
|
|
3539
|
-
hover:
|
|
3540
|
-
pressed:
|
|
3541
|
-
disabled:
|
|
3538
|
+
enabled: I.purple[700],
|
|
3539
|
+
hover: I.purple[800],
|
|
3540
|
+
pressed: I.purple[1e3],
|
|
3541
|
+
disabled: I.purple[100]
|
|
3542
3542
|
},
|
|
3543
3543
|
text: {
|
|
3544
3544
|
accent: {
|
|
3545
|
-
enabled:
|
|
3546
|
-
hover:
|
|
3547
|
-
pressed:
|
|
3548
|
-
disabled:
|
|
3545
|
+
enabled: I.purple[700],
|
|
3546
|
+
hover: I.purple[800],
|
|
3547
|
+
pressed: I.purple[1e3],
|
|
3548
|
+
disabled: I.purple[100]
|
|
3549
3549
|
},
|
|
3550
3550
|
onSurfaceAccent: {
|
|
3551
|
-
enabled:
|
|
3551
|
+
enabled: I.base.white
|
|
3552
3552
|
}
|
|
3553
3553
|
}
|
|
3554
3554
|
},
|
|
3555
3555
|
success: {
|
|
3556
3556
|
surface: {
|
|
3557
|
-
feedback:
|
|
3557
|
+
feedback: I.green[100]
|
|
3558
3558
|
},
|
|
3559
3559
|
text: {
|
|
3560
3560
|
feedback: {
|
|
3561
|
-
strong:
|
|
3562
|
-
accent:
|
|
3561
|
+
strong: I.green[1100],
|
|
3562
|
+
accent: I.green[700]
|
|
3563
3563
|
}
|
|
3564
3564
|
}
|
|
3565
3565
|
},
|
|
3566
3566
|
danger: {
|
|
3567
3567
|
surface: {
|
|
3568
|
-
enabled:
|
|
3569
|
-
hover:
|
|
3570
|
-
pressed:
|
|
3571
|
-
disabled:
|
|
3568
|
+
enabled: I.red[600],
|
|
3569
|
+
hover: I.red[700],
|
|
3570
|
+
pressed: I.red[900],
|
|
3571
|
+
disabled: I.red[100]
|
|
3572
3572
|
},
|
|
3573
3573
|
text: {
|
|
3574
|
-
enabled:
|
|
3575
|
-
hover:
|
|
3576
|
-
pressed:
|
|
3577
|
-
disabled:
|
|
3578
|
-
onSurface:
|
|
3574
|
+
enabled: I.red[600],
|
|
3575
|
+
hover: I.red[700],
|
|
3576
|
+
pressed: I.red[900],
|
|
3577
|
+
disabled: I.red[100],
|
|
3578
|
+
onSurface: I.base.white,
|
|
3579
3579
|
feedback: {
|
|
3580
|
-
strong:
|
|
3581
|
-
accent:
|
|
3580
|
+
strong: I.red[1100],
|
|
3581
|
+
accent: I.red[700]
|
|
3582
3582
|
}
|
|
3583
3583
|
},
|
|
3584
3584
|
border: {
|
|
3585
|
-
enabled:
|
|
3586
|
-
hover:
|
|
3587
|
-
pressed:
|
|
3588
|
-
disabled:
|
|
3585
|
+
enabled: I.red[600],
|
|
3586
|
+
hover: I.red[700],
|
|
3587
|
+
pressed: I.red[900],
|
|
3588
|
+
disabled: I.red[100]
|
|
3589
3589
|
}
|
|
3590
3590
|
},
|
|
3591
3591
|
warning: {
|
|
3592
3592
|
surface: {
|
|
3593
|
-
feedback:
|
|
3593
|
+
feedback: I.yellow[100],
|
|
3594
|
+
pills: {
|
|
3595
|
+
supply: I.orange[200]
|
|
3596
|
+
}
|
|
3594
3597
|
},
|
|
3595
3598
|
text: {
|
|
3596
3599
|
feedback: {
|
|
3597
|
-
strong:
|
|
3600
|
+
strong: I.yellow[1100]
|
|
3601
|
+
},
|
|
3602
|
+
pills: {
|
|
3603
|
+
supply: I.orange[1e3]
|
|
3598
3604
|
}
|
|
3599
|
-
},
|
|
3600
|
-
border: {
|
|
3601
|
-
feedback: x.yellow[900]
|
|
3602
3605
|
}
|
|
3603
3606
|
},
|
|
3607
|
+
border: {
|
|
3608
|
+
feedback: I.yellow[900]
|
|
3609
|
+
},
|
|
3604
3610
|
info: {
|
|
3605
3611
|
surface: {
|
|
3606
|
-
feedback:
|
|
3612
|
+
feedback: I.blue[100],
|
|
3613
|
+
pills: {
|
|
3614
|
+
tradicional: I.blue[100]
|
|
3615
|
+
}
|
|
3607
3616
|
},
|
|
3608
3617
|
text: {
|
|
3609
3618
|
feedback: {
|
|
3610
|
-
strong:
|
|
3619
|
+
strong: I.blue[1100]
|
|
3620
|
+
},
|
|
3621
|
+
pills: {
|
|
3622
|
+
tradicional: I.blue[1e3]
|
|
3611
3623
|
}
|
|
3612
3624
|
},
|
|
3613
3625
|
border: {
|
|
3614
|
-
feedback:
|
|
3626
|
+
feedback: I.blue[900]
|
|
3615
3627
|
}
|
|
3616
3628
|
},
|
|
3617
3629
|
global: {
|
|
3630
|
+
foreground: {
|
|
3631
|
+
default: I.gray[100]
|
|
3632
|
+
},
|
|
3618
3633
|
surface: {
|
|
3619
|
-
default:
|
|
3634
|
+
default: I.base.white,
|
|
3620
3635
|
overlay: "rgba(0, 0, 0, 0.5)",
|
|
3621
|
-
disabled:
|
|
3636
|
+
disabled: I.gray[200],
|
|
3622
3637
|
danger: {
|
|
3623
|
-
enabled:
|
|
3624
|
-
hover:
|
|
3625
|
-
pressed:
|
|
3626
|
-
disabled:
|
|
3638
|
+
enabled: I.red[600],
|
|
3639
|
+
hover: I.red[700],
|
|
3640
|
+
pressed: I.red[900],
|
|
3641
|
+
disabled: I.red[100]
|
|
3627
3642
|
}
|
|
3628
3643
|
},
|
|
3644
|
+
status: {
|
|
3645
|
+
online: I.green[600],
|
|
3646
|
+
notification: I.red[600],
|
|
3647
|
+
offline: I.gray[600]
|
|
3648
|
+
},
|
|
3629
3649
|
text: {
|
|
3630
3650
|
default: {
|
|
3631
|
-
enabled:
|
|
3651
|
+
enabled: I.base.black
|
|
3632
3652
|
},
|
|
3633
3653
|
onSurface: {
|
|
3634
|
-
subtitle:
|
|
3635
|
-
enabled:
|
|
3654
|
+
subtitle: I.gray[500],
|
|
3655
|
+
enabled: I.gray[800]
|
|
3636
3656
|
},
|
|
3637
3657
|
subtitle: {
|
|
3638
|
-
enabled:
|
|
3658
|
+
enabled: I.gray[700]
|
|
3639
3659
|
},
|
|
3640
3660
|
feedback: {
|
|
3641
|
-
error:
|
|
3642
|
-
info:
|
|
3643
|
-
success:
|
|
3644
|
-
warning:
|
|
3661
|
+
error: I.red[100],
|
|
3662
|
+
info: I.blue[100],
|
|
3663
|
+
success: I.green[100],
|
|
3664
|
+
warning: I.yellow[100],
|
|
3645
3665
|
strong: {
|
|
3646
|
-
error:
|
|
3647
|
-
info:
|
|
3648
|
-
success:
|
|
3649
|
-
warning:
|
|
3666
|
+
error: I.red[1100],
|
|
3667
|
+
info: I.blue[1100],
|
|
3668
|
+
success: I.green[1100],
|
|
3669
|
+
warning: I.yellow[1100]
|
|
3650
3670
|
}
|
|
3651
3671
|
}
|
|
3652
3672
|
},
|
|
3653
3673
|
border: {
|
|
3654
|
-
default:
|
|
3655
|
-
medium:
|
|
3656
|
-
strong:
|
|
3674
|
+
default: I.gray[200],
|
|
3675
|
+
medium: I.gray[400],
|
|
3676
|
+
strong: I.gray[700],
|
|
3657
3677
|
feedback: {
|
|
3658
|
-
error:
|
|
3659
|
-
info:
|
|
3660
|
-
success:
|
|
3661
|
-
warning:
|
|
3678
|
+
error: I.red[900],
|
|
3679
|
+
info: I.blue[900],
|
|
3680
|
+
success: I.green[900],
|
|
3681
|
+
warning: I.yellow[900]
|
|
3662
3682
|
},
|
|
3663
3683
|
danger: {
|
|
3664
|
-
enabled:
|
|
3665
|
-
hover:
|
|
3666
|
-
pressed:
|
|
3667
|
-
disabled:
|
|
3684
|
+
enabled: I.red[600],
|
|
3685
|
+
hover: I.red[700],
|
|
3686
|
+
pressed: I.red[900],
|
|
3687
|
+
disabled: I.red[100]
|
|
3668
3688
|
}
|
|
3669
3689
|
}
|
|
3670
3690
|
}
|
|
@@ -83443,19 +83463,19 @@ var _Ht = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue
|
|
|
83443
83463
|
function WHt(a) {
|
|
83444
83464
|
var e = a.defaultInputValue, t = e === void 0 ? "" : e, l = a.defaultMenuIsOpen, c = l === void 0 ? !1 : l, o = a.defaultValue, p = o === void 0 ? null : o, s = a.inputValue, u = a.menuIsOpen, h = a.onChange, b = a.onInputChange, v = a.onMenuClose, f = a.onMenuOpen, A = a.value, d = g2(a, _Ht), Z = L1(s !== void 0 ? s : t), H = f2(Z, 2), y = H[0], g = H[1], O = L1(u !== void 0 ? u : c), M = f2(O, 2), E = M[0], j = M[1], V = L1(A !== void 0 ? A : p), P = f2(V, 2), C = P[0], S = P[1], k = P0(function(G, Q) {
|
|
83445
83465
|
typeof h == "function" && h(G, Q), S(G);
|
|
83446
|
-
}, [h]),
|
|
83466
|
+
}, [h]), x = P0(function(G, Q) {
|
|
83447
83467
|
var n0;
|
|
83448
83468
|
typeof b == "function" && (n0 = b(G, Q)), g(n0 !== void 0 ? n0 : G);
|
|
83449
83469
|
}, [b]), q = P0(function() {
|
|
83450
83470
|
typeof f == "function" && f(), j(!0);
|
|
83451
83471
|
}, [f]), U = P0(function() {
|
|
83452
83472
|
typeof v == "function" && v(), j(!1);
|
|
83453
|
-
}, [v]), Y = s !== void 0 ? s : y,
|
|
83473
|
+
}, [v]), Y = s !== void 0 ? s : y, N = u !== void 0 ? u : E, B = A !== void 0 ? A : C;
|
|
83454
83474
|
return e0(e0({}, d), {}, {
|
|
83455
83475
|
inputValue: Y,
|
|
83456
|
-
menuIsOpen:
|
|
83476
|
+
menuIsOpen: N,
|
|
83457
83477
|
onChange: k,
|
|
83458
|
-
onInputChange:
|
|
83478
|
+
onInputChange: x,
|
|
83459
83479
|
onMenuClose: U,
|
|
83460
83480
|
onMenuOpen: q,
|
|
83461
83481
|
value: B
|
|
@@ -84285,7 +84305,7 @@ function Lyt() {
|
|
|
84285
84305
|
}
|
|
84286
84306
|
}
|
|
84287
84307
|
}
|
|
84288
|
-
var E = u, j = h, V = s, P = p, C = e, S = b, k = l,
|
|
84308
|
+
var E = u, j = h, V = s, P = p, C = e, S = b, k = l, x = d, q = A, U = t, Y = o, N = c, B = v, G = !1;
|
|
84289
84309
|
function Q(R) {
|
|
84290
84310
|
return G || (G = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), n0(R) || M(R) === u;
|
|
84291
84311
|
}
|
|
@@ -84325,7 +84345,7 @@ function Lyt() {
|
|
|
84325
84345
|
function c1(R) {
|
|
84326
84346
|
return M(R) === v;
|
|
84327
84347
|
}
|
|
84328
|
-
y0.AsyncMode = E, y0.ConcurrentMode = j, y0.ContextConsumer = V, y0.ContextProvider = P, y0.Element = C, y0.ForwardRef = S, y0.Fragment = k, y0.Lazy =
|
|
84348
|
+
y0.AsyncMode = E, y0.ConcurrentMode = j, y0.ContextConsumer = V, y0.ContextProvider = P, y0.Element = C, y0.ForwardRef = S, y0.Fragment = k, y0.Lazy = x, y0.Memo = q, y0.Portal = U, y0.Profiler = Y, y0.StrictMode = N, y0.Suspense = B, y0.isAsyncMode = Q, y0.isConcurrentMode = n0, y0.isContextConsumer = m0, y0.isContextProvider = l0, y0.isElement = V0, y0.isForwardRef = _0, y0.isFragment = T0, y0.isLazy = Z0, y0.isMemo = C0, y0.isPortal = w0, y0.isProfiler = I0, y0.isStrictMode = a1, y0.isSuspense = c1, y0.isValidElementType = O, y0.typeOf = M;
|
|
84329
84349
|
}()), y0;
|
|
84330
84350
|
}
|
|
84331
84351
|
var $Y0;
|
|
@@ -84988,17 +85008,17 @@ const i$t = (a) => ({
|
|
|
84988
85008
|
}, A = Xt(c), d = Yt(A), Z = await p.getDimensions(h), H = A === "y", y = H ? "top" : "left", g = H ? "bottom" : "right", O = H ? "clientHeight" : "clientWidth", M = o.reference[d] + o.reference[A] - f[A] - o.floating[d], E = f[A] - o.reference[A], j = await (p.getOffsetParent == null ? void 0 : p.getOffsetParent(h));
|
|
84989
85009
|
let V = j ? j[O] : 0;
|
|
84990
85010
|
(!V || !await (p.isElement == null ? void 0 : p.isElement(j))) && (V = s.floating[O] || o.floating[d]);
|
|
84991
|
-
const P = M / 2 - E / 2, C = V / 2 - Z[d] / 2 - 1, S = x2(v[y], C), k = x2(v[g], C),
|
|
85011
|
+
const P = M / 2 - E / 2, C = V / 2 - Z[d] / 2 - 1, S = x2(v[y], C), k = x2(v[g], C), x = S, q = V - Z[d] - k, U = V / 2 - Z[d] / 2 + P, Y = ct(x, U, q), N = !u.arrow && k8(c) != null && U !== Y && o.reference[d] / 2 - (U < x ? S : k) - Z[d] / 2 < 0, B = N ? U < x ? U - x : U - q : 0;
|
|
84992
85012
|
return {
|
|
84993
85013
|
[A]: f[A] + B,
|
|
84994
85014
|
data: {
|
|
84995
85015
|
[A]: Y,
|
|
84996
85016
|
centerOffset: U - Y - B,
|
|
84997
|
-
...
|
|
85017
|
+
...N && {
|
|
84998
85018
|
alignmentOffset: B
|
|
84999
85019
|
}
|
|
85000
85020
|
},
|
|
85001
|
-
reset:
|
|
85021
|
+
reset: N
|
|
85002
85022
|
};
|
|
85003
85023
|
}
|
|
85004
85024
|
}), p$t = function(a) {
|
|
@@ -85037,7 +85057,7 @@ const i$t = (a) => ({
|
|
|
85037
85057
|
placement: c,
|
|
85038
85058
|
overflows: C
|
|
85039
85059
|
}], !C.every((U) => U <= 0)) {
|
|
85040
|
-
var k,
|
|
85060
|
+
var k, x;
|
|
85041
85061
|
const U = (((k = o.flip) == null ? void 0 : k.index) || 0) + 1, Y = V[U];
|
|
85042
85062
|
if (Y)
|
|
85043
85063
|
return {
|
|
@@ -85049,8 +85069,8 @@ const i$t = (a) => ({
|
|
|
85049
85069
|
placement: Y
|
|
85050
85070
|
}
|
|
85051
85071
|
};
|
|
85052
|
-
let
|
|
85053
|
-
if (!
|
|
85072
|
+
let N = (x = S.filter((B) => B.overflows[0] <= 0).sort((B, G) => B.overflows[1] - G.overflows[1])[0]) == null ? void 0 : x.placement;
|
|
85073
|
+
if (!N)
|
|
85054
85074
|
switch (A) {
|
|
85055
85075
|
case "bestFit": {
|
|
85056
85076
|
var q;
|
|
@@ -85063,17 +85083,17 @@ const i$t = (a) => ({
|
|
|
85063
85083
|
}
|
|
85064
85084
|
return !0;
|
|
85065
85085
|
}).map((G) => [G.placement, G.overflows.filter((Q) => Q > 0).reduce((Q, n0) => Q + n0, 0)]).sort((G, Q) => G[1] - Q[1])[0]) == null ? void 0 : q[0];
|
|
85066
|
-
B && (
|
|
85086
|
+
B && (N = B);
|
|
85067
85087
|
break;
|
|
85068
85088
|
}
|
|
85069
85089
|
case "initialPlacement":
|
|
85070
|
-
|
|
85090
|
+
N = s;
|
|
85071
85091
|
break;
|
|
85072
85092
|
}
|
|
85073
|
-
if (c !==
|
|
85093
|
+
if (c !== N)
|
|
85074
85094
|
return {
|
|
85075
85095
|
reset: {
|
|
85076
|
-
placement:
|
|
85096
|
+
placement: N
|
|
85077
85097
|
}
|
|
85078
85098
|
};
|
|
85079
85099
|
}
|
|
@@ -85305,8 +85325,8 @@ const h$t = function(a) {
|
|
|
85305
85325
|
const g = Z - b.top - b.bottom, O = d - b.left - b.right, M = x2(Z - b[H], g), E = x2(d - b[y], O), j = !e.middlewareData.shift;
|
|
85306
85326
|
let V = M, P = E;
|
|
85307
85327
|
if ((t = e.middlewareData.shift) != null && t.enabled.x && (P = O), (l = e.middlewareData.shift) != null && l.enabled.y && (V = g), j && !f) {
|
|
85308
|
-
const S = E1(b.left, 0), k = E1(b.right, 0),
|
|
85309
|
-
A ? P = d - 2 * (S !== 0 || k !== 0 ? S + k : E1(b.left, b.right)) : V = Z - 2 * (
|
|
85328
|
+
const S = E1(b.left, 0), k = E1(b.right, 0), x = E1(b.top, 0), q = E1(b.bottom, 0);
|
|
85329
|
+
A ? P = d - 2 * (S !== 0 || k !== 0 ? S + k : E1(b.left, b.right)) : V = Z - 2 * (x !== 0 || q !== 0 ? x + q : E1(b.top, b.bottom));
|
|
85310
85330
|
}
|
|
85311
85331
|
await u({
|
|
85312
85332
|
...e,
|
|
@@ -85940,7 +85960,7 @@ function tgt(a) {
|
|
|
85940
85960
|
maxHeight: e
|
|
85941
85961
|
};
|
|
85942
85962
|
if (!t || !t.offsetParent) return h;
|
|
85943
|
-
var b = u.getBoundingClientRect(), v = b.height, f = t.getBoundingClientRect(), A = f.bottom, d = f.height, Z = f.top, H = t.offsetParent.getBoundingClientRect(), y = H.top, g = p ? window.innerHeight : _$t(u), O = Yc2(u), M = parseInt(getComputedStyle(t).marginBottom, 10), E = parseInt(getComputedStyle(t).marginTop, 10), j = y - E, V = g - Z, P = j + O, C = v - O - Z, S = A - g + O + M, k = O + Z - E,
|
|
85963
|
+
var b = u.getBoundingClientRect(), v = b.height, f = t.getBoundingClientRect(), A = f.bottom, d = f.height, Z = f.top, H = t.offsetParent.getBoundingClientRect(), y = H.top, g = p ? window.innerHeight : _$t(u), O = Yc2(u), M = parseInt(getComputedStyle(t).marginBottom, 10), E = parseInt(getComputedStyle(t).marginTop, 10), j = y - E, V = g - Z, P = j + O, C = v - O - Z, S = A - g + O + M, k = O + Z - E, x = 160;
|
|
85944
85964
|
switch (c) {
|
|
85945
85965
|
case "auto":
|
|
85946
85966
|
case "bottom":
|
|
@@ -85950,12 +85970,12 @@ function tgt(a) {
|
|
|
85950
85970
|
maxHeight: e
|
|
85951
85971
|
};
|
|
85952
85972
|
if (C >= d && !p)
|
|
85953
|
-
return o && Ye(u, S,
|
|
85973
|
+
return o && Ye(u, S, x), {
|
|
85954
85974
|
placement: "bottom",
|
|
85955
85975
|
maxHeight: e
|
|
85956
85976
|
};
|
|
85957
85977
|
if (!p && C >= l || p && V >= l) {
|
|
85958
|
-
o && Ye(u, S,
|
|
85978
|
+
o && Ye(u, S, x);
|
|
85959
85979
|
var q = p ? V - M : C - M;
|
|
85960
85980
|
return {
|
|
85961
85981
|
placement: "bottom",
|
|
@@ -85982,15 +86002,15 @@ function tgt(a) {
|
|
|
85982
86002
|
maxHeight: e
|
|
85983
86003
|
};
|
|
85984
86004
|
if (P >= d && !p)
|
|
85985
|
-
return o && Ye(u, k,
|
|
86005
|
+
return o && Ye(u, k, x), {
|
|
85986
86006
|
placement: "top",
|
|
85987
86007
|
maxHeight: e
|
|
85988
86008
|
};
|
|
85989
86009
|
if (!p && P >= l || p && j >= l) {
|
|
85990
|
-
var
|
|
85991
|
-
return (!p && P >= l || p && j >= l) && (
|
|
86010
|
+
var N = e;
|
|
86011
|
+
return (!p && P >= l || p && j >= l) && (N = p ? j - E : P - E), o && Ye(u, k, x), {
|
|
85992
86012
|
placement: "top",
|
|
85993
|
-
maxHeight:
|
|
86013
|
+
maxHeight: N
|
|
85994
86014
|
};
|
|
85995
86015
|
}
|
|
85996
86016
|
return {
|
|
@@ -86719,9 +86739,9 @@ var dOt = process.env.NODE_ENV === "production" ? {
|
|
|
86719
86739
|
}, [v]), C = h2(function() {
|
|
86720
86740
|
var Y = "";
|
|
86721
86741
|
if (t && P.onChange) {
|
|
86722
|
-
var
|
|
86742
|
+
var N = t.option, B = t.options, G = t.removedValue, Q = t.removedValues, n0 = t.value, m0 = function(w0) {
|
|
86723
86743
|
return Array.isArray(w0) ? null : w0;
|
|
86724
|
-
}, l0 = G ||
|
|
86744
|
+
}, l0 = G || N || m0(n0), V0 = l0 ? f(l0) : "", _0 = B || Q || void 0, T0 = _0 ? _0.map(f) : [], Z0 = e0({
|
|
86725
86745
|
// multiSelected items are usually items that have already been selected
|
|
86726
86746
|
// or set by the user as a default value so we assume they are not disabled
|
|
86727
86747
|
isDisabled: l0 && Z(l0, s),
|
|
@@ -86732,15 +86752,15 @@ var dOt = process.env.NODE_ENV === "production" ? {
|
|
|
86732
86752
|
}
|
|
86733
86753
|
return Y;
|
|
86734
86754
|
}, [t, P, Z, s, f]), S = h2(function() {
|
|
86735
|
-
var Y = "",
|
|
86736
|
-
if (
|
|
86755
|
+
var Y = "", N = l || c, B = !!(l && s && s.includes(l));
|
|
86756
|
+
if (N && P.onFocus) {
|
|
86737
86757
|
var G = {
|
|
86738
|
-
focused:
|
|
86739
|
-
label: f(
|
|
86740
|
-
isDisabled: Z(
|
|
86758
|
+
focused: N,
|
|
86759
|
+
label: f(N),
|
|
86760
|
+
isDisabled: Z(N, s),
|
|
86741
86761
|
isSelected: B,
|
|
86742
86762
|
options: o,
|
|
86743
|
-
context:
|
|
86763
|
+
context: N === l ? "menu" : "value",
|
|
86744
86764
|
selectValue: s,
|
|
86745
86765
|
isAppleDevice: b
|
|
86746
86766
|
};
|
|
@@ -86750,31 +86770,31 @@ var dOt = process.env.NODE_ENV === "production" ? {
|
|
|
86750
86770
|
}, [l, c, f, Z, P, o, s, b]), k = h2(function() {
|
|
86751
86771
|
var Y = "";
|
|
86752
86772
|
if (y && g.length && !E && P.onFilter) {
|
|
86753
|
-
var
|
|
86773
|
+
var N = O({
|
|
86754
86774
|
count: o.length
|
|
86755
86775
|
});
|
|
86756
86776
|
Y = P.onFilter({
|
|
86757
86777
|
inputValue: A,
|
|
86758
|
-
resultsMessage:
|
|
86778
|
+
resultsMessage: N
|
|
86759
86779
|
});
|
|
86760
86780
|
}
|
|
86761
86781
|
return Y;
|
|
86762
|
-
}, [o, A, y, P, g, O, E]),
|
|
86782
|
+
}, [o, A, y, P, g, O, E]), x = (t == null ? void 0 : t.action) === "initial-input-focus", q = h2(function() {
|
|
86763
86783
|
var Y = "";
|
|
86764
86784
|
if (P.guidance) {
|
|
86765
|
-
var
|
|
86785
|
+
var N = c ? "value" : y ? "menu" : "input";
|
|
86766
86786
|
Y = P.guidance({
|
|
86767
86787
|
"aria-label": j,
|
|
86768
|
-
context:
|
|
86788
|
+
context: N,
|
|
86769
86789
|
isDisabled: l && Z(l, s),
|
|
86770
86790
|
isMulti: d,
|
|
86771
86791
|
isSearchable: H,
|
|
86772
86792
|
tabSelectsValue: M,
|
|
86773
|
-
isInitialFocus:
|
|
86793
|
+
isInitialFocus: x
|
|
86774
86794
|
});
|
|
86775
86795
|
}
|
|
86776
86796
|
return Y;
|
|
86777
|
-
}, [j, l, c, d, Z, H, y, P, s, M,
|
|
86797
|
+
}, [j, l, c, d, Z, H, y, P, s, M, x]), U = K(la, null, K("span", {
|
|
86778
86798
|
id: "aria-selection"
|
|
86779
86799
|
}, C), K("span", {
|
|
86780
86800
|
id: "aria-focused"
|
|
@@ -86785,12 +86805,12 @@ var dOt = process.env.NODE_ENV === "production" ? {
|
|
|
86785
86805
|
}, q));
|
|
86786
86806
|
return K(la, null, K(kY0, {
|
|
86787
86807
|
id: h
|
|
86788
|
-
},
|
|
86808
|
+
}, x && U), K(kY0, {
|
|
86789
86809
|
"aria-live": V,
|
|
86790
86810
|
"aria-atomic": "false",
|
|
86791
86811
|
"aria-relevant": "additions text",
|
|
86792
86812
|
role: "log"
|
|
86793
|
-
}, p && !
|
|
86813
|
+
}, p && !x && U));
|
|
86794
86814
|
}, gOt = $Ot, pt = [{
|
|
86795
86815
|
base: "A",
|
|
86796
86816
|
letters: "AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"
|
|
@@ -88165,9 +88185,9 @@ var ho2 = function(e) {
|
|
|
88165
88185
|
}, {
|
|
88166
88186
|
key: "renderMenu",
|
|
88167
88187
|
value: function() {
|
|
88168
|
-
var c = this, o = this.getComponents(), p = o.Group, s = o.GroupHeading, u = o.Menu, h = o.MenuList, b = o.MenuPortal, v = o.LoadingMessage, f = o.NoOptionsMessage, A = o.Option, d = this.commonProps, Z = this.state.focusedOption, H = this.props, y = H.captureMenuScroll, g = H.inputValue, O = H.isLoading, M = H.loadingMessage, E = H.minMenuHeight, j = H.maxMenuHeight, V = H.menuIsOpen, P = H.menuPlacement, C = H.menuPosition, S = H.menuPortalTarget, k = H.menuShouldBlockScroll,
|
|
88188
|
+
var c = this, o = this.getComponents(), p = o.Group, s = o.GroupHeading, u = o.Menu, h = o.MenuList, b = o.MenuPortal, v = o.LoadingMessage, f = o.NoOptionsMessage, A = o.Option, d = this.commonProps, Z = this.state.focusedOption, H = this.props, y = H.captureMenuScroll, g = H.inputValue, O = H.isLoading, M = H.loadingMessage, E = H.minMenuHeight, j = H.maxMenuHeight, V = H.menuIsOpen, P = H.menuPlacement, C = H.menuPosition, S = H.menuPortalTarget, k = H.menuShouldBlockScroll, x = H.menuShouldScrollIntoView, q = H.noOptionsMessage, U = H.onMenuScrollToTop, Y = H.onMenuScrollToBottom;
|
|
88169
88189
|
if (!V) return null;
|
|
88170
|
-
var
|
|
88190
|
+
var N = function(V0, _0) {
|
|
88171
88191
|
var T0 = V0.type, Z0 = V0.data, C0 = V0.isDisabled, w0 = V0.isSelected, I0 = V0.label, a1 = V0.value, c1 = Z === Z0, R = C0 ? void 0 : function() {
|
|
88172
88192
|
return c.onOptionHover(Z0);
|
|
88173
88193
|
}, u1 = C0 ? void 0 : function() {
|
|
@@ -88210,10 +88230,10 @@ var ho2 = function(e) {
|
|
|
88210
88230
|
},
|
|
88211
88231
|
label: c.formatGroupLabel(l0.data)
|
|
88212
88232
|
}), l0.options.map(function(w0) {
|
|
88213
|
-
return
|
|
88233
|
+
return N(w0, "".concat(T0, "-").concat(w0.index));
|
|
88214
88234
|
}));
|
|
88215
88235
|
} else if (l0.type === "option")
|
|
88216
|
-
return
|
|
88236
|
+
return N(l0, "".concat(l0.index));
|
|
88217
88237
|
});
|
|
88218
88238
|
else if (O) {
|
|
88219
88239
|
var G = M({
|
|
@@ -88233,7 +88253,7 @@ var ho2 = function(e) {
|
|
|
88233
88253
|
maxMenuHeight: j,
|
|
88234
88254
|
menuPlacement: P,
|
|
88235
88255
|
menuPosition: C,
|
|
88236
|
-
menuShouldScrollIntoView:
|
|
88256
|
+
menuShouldScrollIntoView: x
|
|
88237
88257
|
}, m0 = /* @__PURE__ */ $.createElement(ngt, t0({}, d, n0), function(l0) {
|
|
88238
88258
|
var V0 = l0.ref, _0 = l0.placerProps, T0 = _0.placement, Z0 = _0.maxHeight;
|
|
88239
88259
|
return /* @__PURE__ */ $.createElement(u, t0({}, d, n0, {
|
|
@@ -91905,15 +91925,15 @@ function DMt(a, e, t, l) {
|
|
|
91905
91925
|
`The format string mustn't contain \`${P}\` and any other token at the same time`
|
|
91906
91926
|
);
|
|
91907
91927
|
f.push({ token: C, fullToken: P });
|
|
91908
|
-
const
|
|
91928
|
+
const x = S.run(
|
|
91909
91929
|
a,
|
|
91910
91930
|
P,
|
|
91911
91931
|
p.match,
|
|
91912
91932
|
h
|
|
91913
91933
|
);
|
|
91914
|
-
if (!
|
|
91934
|
+
if (!x)
|
|
91915
91935
|
return c();
|
|
91916
|
-
b.push(
|
|
91936
|
+
b.push(x.setter), a = x.rest;
|
|
91917
91937
|
} else {
|
|
91918
91938
|
if (C.match(SMt))
|
|
91919
91939
|
throw new RangeError(
|
|
@@ -92685,15 +92705,15 @@ function ijt(a, e, { classNames: t, months: l, focused: c, dateLib: o }) {
|
|
|
92685
92705
|
function pjt(a, e, t, l) {
|
|
92686
92706
|
const c = a[0], o = a[a.length - 1], { ISOWeek: p, fixedWeeks: s, broadcastCalendar: u } = t ?? {}, { addDays: h, differenceInCalendarDays: b, differenceInCalendarMonths: v, endOfBroadcastWeek: f, endOfISOWeek: A, endOfMonth: d, endOfWeek: Z, isAfter: H, startOfBroadcastWeek: y, startOfISOWeek: g, startOfWeek: O } = l, M = u ? y(c, l) : p ? g(c) : O(c), E = u ? f(o, l) : p ? A(d(o)) : Z(d(o)), j = b(E, M), V = v(o, c) + 1, P = [];
|
|
92687
92707
|
for (let k = 0; k <= j; k++) {
|
|
92688
|
-
const
|
|
92689
|
-
if (e && H(
|
|
92708
|
+
const x = h(M, k);
|
|
92709
|
+
if (e && H(x, e))
|
|
92690
92710
|
break;
|
|
92691
|
-
P.push(
|
|
92711
|
+
P.push(x);
|
|
92692
92712
|
}
|
|
92693
92713
|
const S = (u ? 35 : 42) * V;
|
|
92694
92714
|
if (s && P.length < S) {
|
|
92695
92715
|
const k = S - P.length;
|
|
92696
|
-
for (let
|
|
92716
|
+
for (let x = 0; x < k; x++) {
|
|
92697
92717
|
const q = h(P[P.length - 1], 1);
|
|
92698
92718
|
P.push(q);
|
|
92699
92719
|
}
|
|
@@ -92760,7 +92780,7 @@ function vjt(a, e, t, l) {
|
|
|
92760
92780
|
O.push(...V);
|
|
92761
92781
|
}
|
|
92762
92782
|
const E = O.reduce((V, P) => {
|
|
92763
|
-
const C = t.ISOWeek ? h(P) : b(P), S = V.find((
|
|
92783
|
+
const C = t.ISOWeek ? h(P) : b(P), S = V.find((x) => x.weekNumber === C), k = new xo2(P, H, l);
|
|
92764
92784
|
return S ? S.days.push(k) : V.push(new bjt(C, [k])), V;
|
|
92765
92785
|
}, []), j = new hjt(H, E);
|
|
92766
92786
|
return Z.push(j), Z;
|
|
@@ -92946,9 +92966,9 @@ function Ojt(a, e, t) {
|
|
|
92946
92966
|
for (const O of a) {
|
|
92947
92967
|
const { date: M, displayMonth: E } = O, j = !!(E && !b(M, E)), V = !!(Z && f(M, Z)), P = !!(H && d(M, H)), C = !!(l && v2(M, l, t)), S = !!(c && v2(M, c, t)) || V || P || // Broadcast calendar will show outside days as default
|
|
92948
92968
|
!s && !p && j || s && p === !1 && j, k = h(M, u ?? t.today());
|
|
92949
|
-
j && y.outside.push(O), C && y.disabled.push(O), S && y.hidden.push(O), k && y.today.push(O), o && Object.keys(o).forEach((
|
|
92950
|
-
const q = o == null ? void 0 : o[
|
|
92951
|
-
q && v2(M, q, t) && (g[
|
|
92969
|
+
j && y.outside.push(O), C && y.disabled.push(O), S && y.hidden.push(O), k && y.today.push(O), o && Object.keys(o).forEach((x) => {
|
|
92970
|
+
const q = o == null ? void 0 : o[x];
|
|
92971
|
+
q && v2(M, q, t) && (g[x] ? g[x].push(O) : g[x] = [O]);
|
|
92952
92972
|
});
|
|
92953
92973
|
}
|
|
92954
92974
|
return (O) => {
|
|
@@ -93118,11 +93138,11 @@ function Fjt(a) {
|
|
|
93118
93138
|
a.formatters,
|
|
93119
93139
|
a.labels,
|
|
93120
93140
|
a.classNames
|
|
93121
|
-
]), { captionLayout: s, mode: u, onDayBlur: h, onDayClick: b, onDayFocus: v, onDayKeyDown: f, onDayMouseEnter: A, onDayMouseLeave: d, onNextClick: Z, onPrevClick: H, showWeekNumber: y, styles: g } = a, { formatCaption: O, formatDay: M, formatMonthDropdown: E, formatWeekNumber: j, formatWeekNumberHeader: V, formatWeekdayName: P, formatYearDropdown: C } = t, S = Hjt(a, c), { days: k, months:
|
|
93141
|
+
]), { captionLayout: s, mode: u, onDayBlur: h, onDayClick: b, onDayFocus: v, onDayKeyDown: f, onDayMouseEnter: A, onDayMouseLeave: d, onNextClick: Z, onPrevClick: H, showWeekNumber: y, styles: g } = a, { formatCaption: O, formatDay: M, formatMonthDropdown: E, formatWeekNumber: j, formatWeekNumberHeader: V, formatWeekdayName: P, formatYearDropdown: C } = t, S = Hjt(a, c), { days: k, months: x, navStart: q, navEnd: U, previousMonth: Y, nextMonth: N, goToMonth: B } = S, G = Ojt(k, a, c), { isSelected: Q, select: n0, selected: m0 } = Ljt(a, c) ?? {}, { blur: l0, focused: V0, isFocusTarget: _0, moveFocus: T0, setFocused: Z0 } = gjt(a, S, G, Q ?? (() => !1), c), { labelDayButton: C0, labelGridcell: w0, labelGrid: I0, labelMonthDropdown: a1, labelNav: c1, labelWeekday: R, labelWeekNumber: u1, labelWeekNumberHeader: f1, labelYearDropdown: y1 } = l, s2 = h2(() => zwt(c, a.ISOWeek), [c, a.ISOWeek]), _2 = u !== void 0 || b !== void 0, o8 = P0(() => {
|
|
93122
93142
|
Y && (B(Y), H == null || H(Y));
|
|
93123
93143
|
}, [Y, B, H]), N1 = P0(() => {
|
|
93124
|
-
|
|
93125
|
-
}, [B,
|
|
93144
|
+
N && (B(N), Z == null || Z(N));
|
|
93145
|
+
}, [B, N, Z]), A4 = P0((i0, N0) => (j0) => {
|
|
93126
93146
|
j0.preventDefault(), j0.stopPropagation(), Z0(i0), n0 == null || n0(i0.date, N0, j0), b == null || b(i0.date, N0, j0);
|
|
93127
93147
|
}, [n0, b, Z0]), Z4 = P0((i0, N0) => (j0) => {
|
|
93128
93148
|
Z0(i0), v == null || v(i0.date, N0, j0);
|
|
@@ -93161,7 +93181,7 @@ function Fjt(a) {
|
|
|
93161
93181
|
}), [p, a.className, a.style, g]), Pe = Cwt(a), Le = l1(null);
|
|
93162
93182
|
ijt(Le, !!a.animate, {
|
|
93163
93183
|
classNames: p,
|
|
93164
|
-
months:
|
|
93184
|
+
months: x,
|
|
93165
93185
|
focused: V0,
|
|
93166
93186
|
dateLib: c
|
|
93167
93187
|
});
|
|
@@ -93170,8 +93190,8 @@ function Fjt(a) {
|
|
|
93170
93190
|
selected: m0,
|
|
93171
93191
|
select: n0,
|
|
93172
93192
|
isSelected: Q,
|
|
93173
|
-
months:
|
|
93174
|
-
nextMonth:
|
|
93193
|
+
months: x,
|
|
93194
|
+
nextMonth: N,
|
|
93175
93195
|
previousMonth: Y,
|
|
93176
93196
|
goToMonth: B,
|
|
93177
93197
|
getModifiers: G,
|
|
@@ -93190,8 +93210,8 @@ function Fjt(a) {
|
|
|
93190
93210
|
r.createElement(
|
|
93191
93211
|
e.Months,
|
|
93192
93212
|
{ className: p[a0.Months], style: g == null ? void 0 : g[a0.Months] },
|
|
93193
|
-
!a.hideNavigation && r.createElement(e.Nav, { "data-animated-nav": a.animate ? "true" : void 0, className: p[a0.Nav], style: g == null ? void 0 : g[a0.Nav], "aria-label": c1(), onPreviousClick: o8, onNextClick: N1, previousMonth: Y, nextMonth:
|
|
93194
|
-
|
|
93213
|
+
!a.hideNavigation && r.createElement(e.Nav, { "data-animated-nav": a.animate ? "true" : void 0, className: p[a0.Nav], style: g == null ? void 0 : g[a0.Nav], "aria-label": c1(), onPreviousClick: o8, onNextClick: N1, previousMonth: Y, nextMonth: N }),
|
|
93214
|
+
x.map((i0, N0) => {
|
|
93195
93215
|
const j0 = _wt(i0.date, q, U, t, c), G1 = qwt(q, U, t, c);
|
|
93196
93216
|
return r.createElement(
|
|
93197
93217
|
e.Month,
|
|
@@ -93746,7 +93766,7 @@ function Uo2(a) {
|
|
|
93746
93766
|
G !== j.current && (j.current = G, Z(G));
|
|
93747
93767
|
}, []), O = $.useCallback((G) => {
|
|
93748
93768
|
G !== V.current && (V.current = G, y(G));
|
|
93749
|
-
}, []), M = o || d, E = p || H, j = $.useRef(null), V = $.useRef(null), P = $.useRef(b), C = u != null, S = K4(u), k = K4(c),
|
|
93769
|
+
}, []), M = o || d, E = p || H, j = $.useRef(null), V = $.useRef(null), P = $.useRef(b), C = u != null, S = K4(u), k = K4(c), x = K4(h), q = $.useCallback(() => {
|
|
93750
93770
|
if (!j.current || !V.current)
|
|
93751
93771
|
return;
|
|
93752
93772
|
const G = {
|
|
@@ -93761,13 +93781,13 @@ function Uo2(a) {
|
|
|
93761
93781
|
// but still mounted (such as when transitioning out). To ensure
|
|
93762
93782
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
93763
93783
|
// setting it to `true` when `open === false` (must be specified).
|
|
93764
|
-
isPositioned:
|
|
93784
|
+
isPositioned: x.current !== !1
|
|
93765
93785
|
};
|
|
93766
93786
|
U.current && !G6(P.current, n0) && (P.current = n0, $t.flushSync(() => {
|
|
93767
93787
|
v(n0);
|
|
93768
93788
|
}));
|
|
93769
93789
|
});
|
|
93770
|
-
}, [f, e, t, k,
|
|
93790
|
+
}, [f, e, t, k, x]);
|
|
93771
93791
|
d6(() => {
|
|
93772
93792
|
h === !1 && P.current.isPositioned && (P.current.isPositioned = !1, v((G) => ({
|
|
93773
93793
|
...G,
|
|
@@ -93789,7 +93809,7 @@ function Uo2(a) {
|
|
|
93789
93809
|
floating: V,
|
|
93790
93810
|
setReference: g,
|
|
93791
93811
|
setFloating: O
|
|
93792
|
-
}), [g, O]),
|
|
93812
|
+
}), [g, O]), N = $.useMemo(() => ({
|
|
93793
93813
|
reference: M,
|
|
93794
93814
|
floating: E
|
|
93795
93815
|
}), [M, E]), B = $.useMemo(() => {
|
|
@@ -93798,13 +93818,13 @@ function Uo2(a) {
|
|
|
93798
93818
|
left: 0,
|
|
93799
93819
|
top: 0
|
|
93800
93820
|
};
|
|
93801
|
-
if (!
|
|
93821
|
+
if (!N.floating)
|
|
93802
93822
|
return G;
|
|
93803
|
-
const Q = HX0(
|
|
93823
|
+
const Q = HX0(N.floating, b.x), n0 = HX0(N.floating, b.y);
|
|
93804
93824
|
return s ? {
|
|
93805
93825
|
...G,
|
|
93806
93826
|
transform: "translate(" + Q + "px, " + n0 + "px)",
|
|
93807
|
-
...Jo2(
|
|
93827
|
+
...Jo2(N.floating) >= 1.5 && {
|
|
93808
93828
|
willChange: "transform"
|
|
93809
93829
|
}
|
|
93810
93830
|
} : {
|
|
@@ -93812,14 +93832,14 @@ function Uo2(a) {
|
|
|
93812
93832
|
left: Q,
|
|
93813
93833
|
top: n0
|
|
93814
93834
|
};
|
|
93815
|
-
}, [t, s,
|
|
93835
|
+
}, [t, s, N.floating, b.x, b.y]);
|
|
93816
93836
|
return $.useMemo(() => ({
|
|
93817
93837
|
...b,
|
|
93818
93838
|
update: q,
|
|
93819
93839
|
refs: Y,
|
|
93820
|
-
elements:
|
|
93840
|
+
elements: N,
|
|
93821
93841
|
floatingStyles: B
|
|
93822
|
-
}), [b, q, Y,
|
|
93842
|
+
}), [b, q, Y, N, B]);
|
|
93823
93843
|
}
|
|
93824
93844
|
const Ujt = (a) => {
|
|
93825
93845
|
function e(t) {
|
|
@@ -93983,12 +94003,12 @@ var vr = "PopperContent", [iPt, pPt] = rm2(vr), im2 = $.forwardRef(
|
|
|
93983
94003
|
updatePositionStrategy: A = "optimized",
|
|
93984
94004
|
onPlaced: d,
|
|
93985
94005
|
...Z
|
|
93986
|
-
} = a, H = nm2(vr, t), [y, g] = $.useState(null), O = v1(e, (u1) => g(u1)), [M, E] = $.useState(null), j = oPt(M), V = (j == null ? void 0 : j.width) ?? 0, P = (j == null ? void 0 : j.height) ?? 0, C = l + (o !== "center" ? "-" + o : ""), S = typeof b == "number" ? b : { top: 0, right: 0, bottom: 0, left: 0, ...b }, k = Array.isArray(h) ? h : [h],
|
|
94006
|
+
} = a, H = nm2(vr, t), [y, g] = $.useState(null), O = v1(e, (u1) => g(u1)), [M, E] = $.useState(null), j = oPt(M), V = (j == null ? void 0 : j.width) ?? 0, P = (j == null ? void 0 : j.height) ?? 0, C = l + (o !== "center" ? "-" + o : ""), S = typeof b == "number" ? b : { top: 0, right: 0, bottom: 0, left: 0, ...b }, k = Array.isArray(h) ? h : [h], x = k.length > 0, q = {
|
|
93987
94007
|
padding: S,
|
|
93988
94008
|
boundary: k.filter(uPt),
|
|
93989
94009
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
93990
|
-
altBoundary:
|
|
93991
|
-
}, { refs: U, floatingStyles: Y, placement:
|
|
94010
|
+
altBoundary: x
|
|
94011
|
+
}, { refs: U, floatingStyles: Y, placement: N, isPositioned: B, middlewareData: G } = Uo2({
|
|
93992
94012
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
93993
94013
|
strategy: "fixed",
|
|
93994
94014
|
placement: C,
|
|
@@ -94018,7 +94038,7 @@ var vr = "PopperContent", [iPt, pPt] = rm2(vr), im2 = $.forwardRef(
|
|
|
94018
94038
|
hPt({ arrowWidth: V, arrowHeight: P }),
|
|
94019
94039
|
f && aPt({ strategy: "referenceHidden", ...q })
|
|
94020
94040
|
]
|
|
94021
|
-
}), [Q, n0] = um2(
|
|
94041
|
+
}), [Q, n0] = um2(N), m0 = C1(d);
|
|
94022
94042
|
T1(() => {
|
|
94023
94043
|
B && (m0 == null || m0());
|
|
94024
94044
|
}, [B, m0]);
|
|
@@ -94969,28 +94989,28 @@ const LLt = /* @__PURE__ */ $.forwardRef(function(e, t) {
|
|
|
94969
94989
|
const [M, E] = l.split("-"), j = M === "top" || M === "bottom";
|
|
94970
94990
|
let V = v;
|
|
94971
94991
|
(j && p != null && p.x || !j && p != null && p.y) && (V = null);
|
|
94972
|
-
const P = b * 2, C = P / 2, S = s / 2 * (h / -8 + 1), k = u / 2 * h / 4,
|
|
94992
|
+
const P = b * 2, C = P / 2, S = s / 2 * (h / -8 + 1), k = u / 2 * h / 4, x = !!A, q = V && E === "end" ? "bottom" : "top";
|
|
94973
94993
|
let U = V && E === "end" ? "right" : "left";
|
|
94974
94994
|
V && g && (U = E === "end" ? "left" : "right");
|
|
94975
|
-
const Y = (o == null ? void 0 : o.x) != null ? V || o.x : "",
|
|
94976
|
-
top:
|
|
94977
|
-
left:
|
|
94978
|
-
bottom:
|
|
94979
|
-
right:
|
|
94995
|
+
const Y = (o == null ? void 0 : o.x) != null ? V || o.x : "", N = (o == null ? void 0 : o.y) != null ? V || o.y : "", B = A || "M0,0" + (" H" + s) + (" L" + (s - S) + "," + (u - k)) + (" Q" + s / 2 + "," + u + " " + S + "," + (u - k)) + " Z", G = {
|
|
94996
|
+
top: x ? "rotate(180deg)" : "",
|
|
94997
|
+
left: x ? "rotate(90deg)" : "rotate(-90deg)",
|
|
94998
|
+
bottom: x ? "" : "rotate(180deg)",
|
|
94999
|
+
right: x ? "rotate(-90deg)" : "rotate(90deg)"
|
|
94980
95000
|
}[M];
|
|
94981
95001
|
return /* @__PURE__ */ L.jsxs("svg", {
|
|
94982
95002
|
...H,
|
|
94983
95003
|
"aria-hidden": !0,
|
|
94984
95004
|
ref: t,
|
|
94985
|
-
width:
|
|
95005
|
+
width: x ? s : s + P,
|
|
94986
95006
|
height: s,
|
|
94987
95007
|
viewBox: "0 0 " + s + " " + (u > s ? u : s),
|
|
94988
95008
|
style: {
|
|
94989
95009
|
position: "absolute",
|
|
94990
95010
|
pointerEvents: "none",
|
|
94991
95011
|
[U]: Y,
|
|
94992
|
-
[q]:
|
|
94993
|
-
[M]: j ||
|
|
95012
|
+
[q]: N,
|
|
95013
|
+
[M]: j || x ? "100%" : "calc(100% - " + P / 2 + "px)",
|
|
94994
95014
|
transform: [G, d].filter((Q) => !!Q).join(" "),
|
|
94995
95015
|
...Z
|
|
94996
95016
|
},
|
|
@@ -95007,7 +95027,7 @@ const LLt = /* @__PURE__ */ $.forwardRef(function(e, t) {
|
|
|
95007
95027
|
id: y,
|
|
95008
95028
|
children: /* @__PURE__ */ L.jsx("rect", {
|
|
95009
95029
|
x: -C,
|
|
95010
|
-
y: C * (
|
|
95030
|
+
y: C * (x ? -1 : 1),
|
|
95011
95031
|
width: s + P,
|
|
95012
95032
|
height: s
|
|
95013
95033
|
})
|
|
@@ -96070,46 +96090,46 @@ var hFt = (
|
|
|
96070
96090
|
var p, s = t.props, u = s.selected, h = s.preSelection, b = s.setPreSelection, v = s.minDate, f = s.maxDate, A = s.showFourColumnMonthYearPicker, d = s.showTwoColumnMonthYearPicker;
|
|
96071
96091
|
if (h) {
|
|
96072
96092
|
var Z = xX0(A, d), H = t.getVerticalOffset(Z), y = (p = aa[Z]) === null || p === void 0 ? void 0 : p.grid, g = function(V, P, C) {
|
|
96073
|
-
var S, k,
|
|
96093
|
+
var S, k, x = P, q = C;
|
|
96074
96094
|
switch (V) {
|
|
96075
96095
|
case T.ArrowRight:
|
|
96076
|
-
|
|
96096
|
+
x = I1(P, r6), q = C === 11 ? 0 : C + r6;
|
|
96077
96097
|
break;
|
|
96078
96098
|
case T.ArrowLeft:
|
|
96079
|
-
|
|
96099
|
+
x = K2(P, r6), q = C === 0 ? 11 : C - r6;
|
|
96080
96100
|
break;
|
|
96081
96101
|
case T.ArrowUp:
|
|
96082
|
-
|
|
96102
|
+
x = K2(P, H), q = !((S = y == null ? void 0 : y[0]) === null || S === void 0) && S.includes(C) ? C + 12 - H : C - H;
|
|
96083
96103
|
break;
|
|
96084
96104
|
case T.ArrowDown:
|
|
96085
|
-
|
|
96105
|
+
x = I1(P, H), q = !((k = y == null ? void 0 : y[y.length - 1]) === null || k === void 0) && k.includes(C) ? C - 12 + H : C + H;
|
|
96086
96106
|
break;
|
|
96087
96107
|
}
|
|
96088
|
-
return { newCalculatedDate:
|
|
96108
|
+
return { newCalculatedDate: x, newCalculatedMonth: q };
|
|
96089
96109
|
}, O = function(V, P, C) {
|
|
96090
|
-
for (var S = 40, k = V,
|
|
96110
|
+
for (var S = 40, k = V, x = !1, q = 0, U = g(k, P, C), Y = U.newCalculatedDate, N = U.newCalculatedMonth; !x; ) {
|
|
96091
96111
|
if (q >= S) {
|
|
96092
|
-
Y = P,
|
|
96112
|
+
Y = P, N = C;
|
|
96093
96113
|
break;
|
|
96094
96114
|
}
|
|
96095
96115
|
if (v && Y < v) {
|
|
96096
96116
|
k = T.ArrowRight;
|
|
96097
|
-
var B = g(k, Y,
|
|
96098
|
-
Y = B.newCalculatedDate,
|
|
96117
|
+
var B = g(k, Y, N);
|
|
96118
|
+
Y = B.newCalculatedDate, N = B.newCalculatedMonth;
|
|
96099
96119
|
}
|
|
96100
96120
|
if (f && Y > f) {
|
|
96101
96121
|
k = T.ArrowLeft;
|
|
96102
|
-
var B = g(k, Y,
|
|
96103
|
-
Y = B.newCalculatedDate,
|
|
96122
|
+
var B = g(k, Y, N);
|
|
96123
|
+
Y = B.newCalculatedDate, N = B.newCalculatedMonth;
|
|
96104
96124
|
}
|
|
96105
96125
|
if (KLt(Y, t.props)) {
|
|
96106
|
-
var B = g(k, Y,
|
|
96107
|
-
Y = B.newCalculatedDate,
|
|
96126
|
+
var B = g(k, Y, N);
|
|
96127
|
+
Y = B.newCalculatedDate, N = B.newCalculatedMonth;
|
|
96108
96128
|
} else
|
|
96109
|
-
|
|
96129
|
+
x = !0;
|
|
96110
96130
|
q++;
|
|
96111
96131
|
}
|
|
96112
|
-
return { newCalculatedDate: Y, newCalculatedMonth:
|
|
96132
|
+
return { newCalculatedDate: Y, newCalculatedMonth: N };
|
|
96113
96133
|
};
|
|
96114
96134
|
if (c === T.Enter) {
|
|
96115
96135
|
t.isMonthDisabled(o) || (t.onMonthClick(l, o), b == null || b(u));
|
|
@@ -97551,39 +97571,39 @@ var ta = "Date input not valid.", SFt = (
|
|
|
97551
97571
|
}, l.onDayKeyDown = function(c) {
|
|
97552
97572
|
var o, p, s, u, h, b, v = l.props, f = v.minDate, A = v.maxDate, d = v.disabledKeyboardNavigation, Z = v.showWeekPicker, H = v.shouldCloseOnSelect, y = v.locale, g = v.calendarStartDay, O = v.adjustDateOnChange, M = v.inline;
|
|
97553
97573
|
if ((p = (o = l.props).onKeyDown) === null || p === void 0 || p.call(o, c), !d) {
|
|
97554
|
-
var E = c.key, j = c.shiftKey, V = g0(l.state.preSelection), P = function(Y,
|
|
97555
|
-
var B =
|
|
97574
|
+
var E = c.key, j = c.shiftKey, V = g0(l.state.preSelection), P = function(Y, N) {
|
|
97575
|
+
var B = N;
|
|
97556
97576
|
switch (Y) {
|
|
97557
97577
|
case T.ArrowRight:
|
|
97558
|
-
B = Z ? ue(
|
|
97578
|
+
B = Z ? ue(N, 1) : F1(N, 1);
|
|
97559
97579
|
break;
|
|
97560
97580
|
case T.ArrowLeft:
|
|
97561
|
-
B = Z ? iX0(
|
|
97581
|
+
B = Z ? iX0(N) : xMt(N);
|
|
97562
97582
|
break;
|
|
97563
97583
|
case T.ArrowUp:
|
|
97564
|
-
B = iX0(
|
|
97584
|
+
B = iX0(N);
|
|
97565
97585
|
break;
|
|
97566
97586
|
case T.ArrowDown:
|
|
97567
|
-
B = ue(
|
|
97587
|
+
B = ue(N, 1);
|
|
97568
97588
|
break;
|
|
97569
97589
|
case T.PageUp:
|
|
97570
|
-
B = j ? P8(
|
|
97590
|
+
B = j ? P8(N, 1) : K2(N, 1);
|
|
97571
97591
|
break;
|
|
97572
97592
|
case T.PageDown:
|
|
97573
|
-
B = j ? l2(
|
|
97593
|
+
B = j ? l2(N, 1) : I1(N, 1);
|
|
97574
97594
|
break;
|
|
97575
97595
|
case T.Home:
|
|
97576
|
-
B = D2(
|
|
97596
|
+
B = D2(N, y, g);
|
|
97577
97597
|
break;
|
|
97578
97598
|
case T.End:
|
|
97579
|
-
B = WLt(
|
|
97599
|
+
B = WLt(N);
|
|
97580
97600
|
break;
|
|
97581
97601
|
}
|
|
97582
97602
|
return B;
|
|
97583
|
-
}, C = function(Y,
|
|
97584
|
-
for (var B = 40, G = Y, Q = !1, n0 = 0, m0 = P(Y,
|
|
97603
|
+
}, C = function(Y, N) {
|
|
97604
|
+
for (var B = 40, G = Y, Q = !1, n0 = 0, m0 = P(Y, N); !Q; ) {
|
|
97585
97605
|
if (n0 >= B) {
|
|
97586
|
-
m0 =
|
|
97606
|
+
m0 = N;
|
|
97587
97607
|
break;
|
|
97588
97608
|
}
|
|
97589
97609
|
f && m0 < f && (G = T.ArrowRight, m0 = P1(f, l.props) ? P(G, m0) : f), A && m0 > A && (G = T.ArrowLeft, m0 = P1(A, l.props) ? P(G, m0) : A), P1(m0, l.props) ? ((G === T.PageUp || G === T.Home) && (G = T.ArrowRight), (G === T.PageDown || G === T.End) && (G = T.ArrowLeft), m0 = P(G, m0)) : Q = !0, n0++;
|
|
@@ -97615,8 +97635,8 @@ var ta = "Date input not valid.", SFt = (
|
|
|
97615
97635
|
return;
|
|
97616
97636
|
}
|
|
97617
97637
|
if (c.preventDefault(), l.setState({ lastPreSelectChange: ra }), O && l.setSelected(S), l.setPreSelection(S), M) {
|
|
97618
|
-
var k = p1(V),
|
|
97619
|
-
k !==
|
|
97638
|
+
var k = p1(V), x = p1(S), q = o0(V), U = o0(S);
|
|
97639
|
+
k !== x || q !== U ? l.setState({ shouldFocusDayInline: !0 }) : l.setState({ shouldFocusDayInline: !1 });
|
|
97620
97640
|
}
|
|
97621
97641
|
}
|
|
97622
97642
|
}, l.onPopperKeyDown = function(c) {
|
|
@@ -98269,7 +98289,7 @@ export {
|
|
|
98269
98289
|
KY0 as Text,
|
|
98270
98290
|
VCt as Textarea,
|
|
98271
98291
|
Ge as primitiveBorders,
|
|
98272
|
-
|
|
98292
|
+
I as primitiveColors,
|
|
98273
98293
|
q8 as primitiveRadius,
|
|
98274
98294
|
_e as primitiveShadows,
|
|
98275
98295
|
x0 as primitiveSizes,
|