uikit-react-public 0.25.0 → 0.25.1
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/components/MenuNew/Menu.d.ts +1 -0
- package/dist/components/MenuNew/MenuBaseItem.d.ts +1 -1
- package/dist/components/MenuNew/PrimaryMenuItem.d.ts +2 -2
- package/dist/index.js +461 -437
- package/lib/components/MenuNew/Menu.tsx +12 -3
- package/lib/components/MenuNew/MenuBaseItem.tsx +28 -1
- package/lib/components/MenuNew/PrimaryMenuItem.tsx +3 -3
- package/lib/components/MenuNew/SecondaryMenuItem.tsx +7 -1
- package/lib/components/MenuNew/__tests__/Menu.test.tsx +51 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -194,11 +194,11 @@ function Sa(e) {
|
|
|
194
194
|
return $l(Gt("", null, null, null, [""], e = Xl(e), 0, [0], e));
|
|
195
195
|
}
|
|
196
196
|
function Gt(e, t, o, r, l, i, a, d, s) {
|
|
197
|
-
for (var c = 0, p = 0, h = a, f = 0, m = 0,
|
|
198
|
-
switch (
|
|
197
|
+
for (var c = 0, p = 0, h = a, f = 0, m = 0, y = 0, b = 1, w = 1, x = 1, C = 0, M = "", A = l, v = i, E = r, H = M; w; )
|
|
198
|
+
switch (y = C, C = Be()) {
|
|
199
199
|
// (
|
|
200
200
|
case 40:
|
|
201
|
-
if (
|
|
201
|
+
if (y != 108 && Ce(H, h - 1) == 58) {
|
|
202
202
|
Bo(H += ne(Qt(C), "&", "&\f"), "&\f") != -1 && (x = -1);
|
|
203
203
|
break;
|
|
204
204
|
}
|
|
@@ -213,7 +213,7 @@ function Gt(e, t, o, r, l, i, a, d, s) {
|
|
|
213
213
|
case 10:
|
|
214
214
|
case 13:
|
|
215
215
|
case 32:
|
|
216
|
-
H += va(
|
|
216
|
+
H += va(y);
|
|
217
217
|
break;
|
|
218
218
|
// \
|
|
219
219
|
case 92:
|
|
@@ -231,10 +231,10 @@ function Gt(e, t, o, r, l, i, a, d, s) {
|
|
|
231
231
|
}
|
|
232
232
|
break;
|
|
233
233
|
// {
|
|
234
|
-
case 123 *
|
|
234
|
+
case 123 * b:
|
|
235
235
|
d[c++] = Ze(H) * x;
|
|
236
236
|
// } ; \0
|
|
237
|
-
case 125 *
|
|
237
|
+
case 125 * b:
|
|
238
238
|
case 59:
|
|
239
239
|
case 0:
|
|
240
240
|
switch (C) {
|
|
@@ -267,19 +267,19 @@ function Gt(e, t, o, r, l, i, a, d, s) {
|
|
|
267
267
|
Gt(H, E, E, E, [""], v, 0, d, v);
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
|
-
c = p = m = 0,
|
|
270
|
+
c = p = m = 0, b = x = 1, M = H = "", h = a;
|
|
271
271
|
break;
|
|
272
272
|
// :
|
|
273
273
|
case 58:
|
|
274
|
-
h = 1 + Ze(H), m =
|
|
274
|
+
h = 1 + Ze(H), m = y;
|
|
275
275
|
default:
|
|
276
|
-
if (
|
|
276
|
+
if (b < 1) {
|
|
277
277
|
if (C == 123)
|
|
278
|
-
--
|
|
279
|
-
else if (C == 125 &&
|
|
278
|
+
--b;
|
|
279
|
+
else if (C == 125 && b++ == 0 && ba() == 125)
|
|
280
280
|
continue;
|
|
281
281
|
}
|
|
282
|
-
switch (H += lo(C), C *
|
|
282
|
+
switch (H += lo(C), C * b) {
|
|
283
283
|
// &
|
|
284
284
|
case 38:
|
|
285
285
|
x = p > 0 ? 1 : (H += "\f", -1);
|
|
@@ -294,15 +294,15 @@ function Gt(e, t, o, r, l, i, a, d, s) {
|
|
|
294
294
|
break;
|
|
295
295
|
// -
|
|
296
296
|
case 45:
|
|
297
|
-
|
|
297
|
+
y === 45 && Ze(H) == 2 && (b = 0);
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
return i;
|
|
301
301
|
}
|
|
302
302
|
function dn(e, t, o, r, l, i, a, d, s, c, p) {
|
|
303
|
-
for (var h = l - 1, f = l === 0 ? i : [""], m = Uo(f),
|
|
304
|
-
for (var x = 0, C = Et(e, h + 1, h = ha(
|
|
305
|
-
(M = Gl(
|
|
303
|
+
for (var h = l - 1, f = l === 0 ? i : [""], m = Uo(f), y = 0, b = 0, w = 0; y < r; ++y)
|
|
304
|
+
for (var x = 0, C = Et(e, h + 1, h = ha(b = a[y])), M = e; x < m; ++x)
|
|
305
|
+
(M = Gl(b > 0 ? f[x] + " " + C : ne(C, /&\f/g, f[x]))) && (s[w++] = M);
|
|
306
306
|
return ao(e, t, o, l === 0 ? qo : d, s, c, p);
|
|
307
307
|
}
|
|
308
308
|
function Ca(e, t, o) {
|
|
@@ -576,9 +576,9 @@ var za = function(t, o, r, l) {
|
|
|
576
576
|
var o = t.key;
|
|
577
577
|
if (o === "css") {
|
|
578
578
|
var r = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
579
|
-
Array.prototype.forEach.call(r, function(
|
|
580
|
-
var w =
|
|
581
|
-
w.indexOf(" ") !== -1 && (document.head.appendChild(
|
|
579
|
+
Array.prototype.forEach.call(r, function(b) {
|
|
580
|
+
var w = b.getAttribute("data-emotion");
|
|
581
|
+
w.indexOf(" ") !== -1 && (document.head.appendChild(b), b.setAttribute("data-s", ""));
|
|
582
582
|
});
|
|
583
583
|
}
|
|
584
584
|
var l = t.stylisPlugins || Da, i = {}, a, d = [];
|
|
@@ -586,24 +586,24 @@ var za = function(t, o, r, l) {
|
|
|
586
586
|
// this means we will ignore elements which don't have a space in them which
|
|
587
587
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
588
588
|
document.querySelectorAll('style[data-emotion^="' + o + ' "]'),
|
|
589
|
-
function(
|
|
590
|
-
for (var w =
|
|
589
|
+
function(b) {
|
|
590
|
+
for (var w = b.getAttribute("data-emotion").split(" "), x = 1; x < w.length; x++)
|
|
591
591
|
i[w[x]] = !0;
|
|
592
|
-
d.push(
|
|
592
|
+
d.push(b);
|
|
593
593
|
}
|
|
594
594
|
);
|
|
595
595
|
var s, c = [Fa, Ba];
|
|
596
596
|
{
|
|
597
|
-
var p, h = [Aa, La(function(
|
|
598
|
-
p.insert(
|
|
597
|
+
var p, h = [Aa, La(function(b) {
|
|
598
|
+
p.insert(b);
|
|
599
599
|
})], f = Ma(c.concat(l, h)), m = function(w) {
|
|
600
600
|
return mt(Sa(w), f);
|
|
601
601
|
};
|
|
602
602
|
s = function(w, x, C, M) {
|
|
603
|
-
p = C, m(w ? w + "{" + x.styles + "}" : x.styles), M && (
|
|
603
|
+
p = C, m(w ? w + "{" + x.styles + "}" : x.styles), M && (y.inserted[x.name] = !0);
|
|
604
604
|
};
|
|
605
605
|
}
|
|
606
|
-
var
|
|
606
|
+
var y = {
|
|
607
607
|
key: o,
|
|
608
608
|
sheet: new ca({
|
|
609
609
|
key: o,
|
|
@@ -618,7 +618,7 @@ var za = function(t, o, r, l) {
|
|
|
618
618
|
registered: {},
|
|
619
619
|
insert: s
|
|
620
620
|
};
|
|
621
|
-
return
|
|
621
|
+
return y.sheet.hydrate(d), y;
|
|
622
622
|
};
|
|
623
623
|
function Na(e) {
|
|
624
624
|
for (var t = 0, o, r = 0, l = e.length; l >= 4; ++r, l -= 4)
|
|
@@ -12562,7 +12562,7 @@ var wn;
|
|
|
12562
12562
|
function gm() {
|
|
12563
12563
|
if (wn) return re;
|
|
12564
12564
|
wn = 1;
|
|
12565
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, l = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115,
|
|
12565
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, l = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
12566
12566
|
function M(v) {
|
|
12567
12567
|
if (typeof v == "object" && v !== null) {
|
|
12568
12568
|
var E = v.$$typeof;
|
|
@@ -12580,7 +12580,7 @@ function gm() {
|
|
|
12580
12580
|
switch (v = v && v.$$typeof, v) {
|
|
12581
12581
|
case d:
|
|
12582
12582
|
case p:
|
|
12583
|
-
case
|
|
12583
|
+
case y:
|
|
12584
12584
|
case m:
|
|
12585
12585
|
case a:
|
|
12586
12586
|
return v;
|
|
@@ -12596,7 +12596,7 @@ function gm() {
|
|
|
12596
12596
|
function A(v) {
|
|
12597
12597
|
return M(v) === c;
|
|
12598
12598
|
}
|
|
12599
|
-
return re.AsyncMode = s, re.ConcurrentMode = c, re.ContextConsumer = d, re.ContextProvider = a, re.Element = t, re.ForwardRef = p, re.Fragment = r, re.Lazy =
|
|
12599
|
+
return re.AsyncMode = s, re.ConcurrentMode = c, re.ContextConsumer = d, re.ContextProvider = a, re.Element = t, re.ForwardRef = p, re.Fragment = r, re.Lazy = y, re.Memo = m, re.Portal = o, re.Profiler = i, re.StrictMode = l, re.Suspense = h, re.isAsyncMode = function(v) {
|
|
12600
12600
|
return A(v) || M(v) === s;
|
|
12601
12601
|
}, re.isConcurrentMode = A, re.isContextConsumer = function(v) {
|
|
12602
12602
|
return M(v) === d;
|
|
@@ -12609,7 +12609,7 @@ function gm() {
|
|
|
12609
12609
|
}, re.isFragment = function(v) {
|
|
12610
12610
|
return M(v) === r;
|
|
12611
12611
|
}, re.isLazy = function(v) {
|
|
12612
|
-
return M(v) ===
|
|
12612
|
+
return M(v) === y;
|
|
12613
12613
|
}, re.isMemo = function(v) {
|
|
12614
12614
|
return M(v) === m;
|
|
12615
12615
|
}, re.isPortal = function(v) {
|
|
@@ -12621,7 +12621,7 @@ function gm() {
|
|
|
12621
12621
|
}, re.isSuspense = function(v) {
|
|
12622
12622
|
return M(v) === h;
|
|
12623
12623
|
}, re.isValidElementType = function(v) {
|
|
12624
|
-
return typeof v == "string" || typeof v == "function" || v === r || v === c || v === i || v === l || v === h || v === f || typeof v == "object" && v !== null && (v.$$typeof ===
|
|
12624
|
+
return typeof v == "string" || typeof v == "function" || v === r || v === c || v === i || v === l || v === h || v === f || typeof v == "object" && v !== null && (v.$$typeof === y || v.$$typeof === m || v.$$typeof === a || v.$$typeof === d || v.$$typeof === p || v.$$typeof === w || v.$$typeof === x || v.$$typeof === C || v.$$typeof === b);
|
|
12625
12625
|
}, re.typeOf = M, re;
|
|
12626
12626
|
}
|
|
12627
12627
|
var le = {};
|
|
@@ -12636,10 +12636,10 @@ var le = {};
|
|
|
12636
12636
|
var xn;
|
|
12637
12637
|
function mm() {
|
|
12638
12638
|
return xn || (xn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
12639
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, l = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115,
|
|
12639
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, l = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
12640
12640
|
function M(O) {
|
|
12641
12641
|
return typeof O == "string" || typeof O == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
12642
|
-
O === r || O === c || O === i || O === l || O === h || O === f || typeof O == "object" && O !== null && (O.$$typeof ===
|
|
12642
|
+
O === r || O === c || O === i || O === l || O === h || O === f || typeof O == "object" && O !== null && (O.$$typeof === y || O.$$typeof === m || O.$$typeof === a || O.$$typeof === d || O.$$typeof === p || O.$$typeof === w || O.$$typeof === x || O.$$typeof === C || O.$$typeof === b);
|
|
12643
12643
|
}
|
|
12644
12644
|
function A(O) {
|
|
12645
12645
|
if (typeof O == "object" && O !== null) {
|
|
@@ -12660,7 +12660,7 @@ function mm() {
|
|
|
12660
12660
|
switch (Mt) {
|
|
12661
12661
|
case d:
|
|
12662
12662
|
case p:
|
|
12663
|
-
case
|
|
12663
|
+
case y:
|
|
12664
12664
|
case m:
|
|
12665
12665
|
case a:
|
|
12666
12666
|
return Mt;
|
|
@@ -12673,7 +12673,7 @@ function mm() {
|
|
|
12673
12673
|
}
|
|
12674
12674
|
}
|
|
12675
12675
|
}
|
|
12676
|
-
var v = s, E = c, H = d, F = a, T = t, U = p, G = r, V =
|
|
12676
|
+
var v = s, E = c, H = d, F = a, T = t, U = p, G = r, V = y, j = m, J = o, te = i, X = l, ee = h, Q = !1;
|
|
12677
12677
|
function ce(O) {
|
|
12678
12678
|
return Q || (Q = !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.")), $(O) || A(O) === s;
|
|
12679
12679
|
}
|
|
@@ -12696,7 +12696,7 @@ function mm() {
|
|
|
12696
12696
|
return A(O) === r;
|
|
12697
12697
|
}
|
|
12698
12698
|
function ae(O) {
|
|
12699
|
-
return A(O) ===
|
|
12699
|
+
return A(O) === y;
|
|
12700
12700
|
}
|
|
12701
12701
|
function ye(O) {
|
|
12702
12702
|
return A(O) === m;
|
|
@@ -12759,30 +12759,30 @@ function bm() {
|
|
|
12759
12759
|
type: !0
|
|
12760
12760
|
}, i = {};
|
|
12761
12761
|
i[e.ForwardRef] = r, i[e.Memo] = l;
|
|
12762
|
-
function a(
|
|
12763
|
-
return e.isMemo(
|
|
12762
|
+
function a(y) {
|
|
12763
|
+
return e.isMemo(y) ? l : i[y.$$typeof] || t;
|
|
12764
12764
|
}
|
|
12765
12765
|
var d = Object.defineProperty, s = Object.getOwnPropertyNames, c = Object.getOwnPropertySymbols, p = Object.getOwnPropertyDescriptor, h = Object.getPrototypeOf, f = Object.prototype;
|
|
12766
|
-
function m(
|
|
12767
|
-
if (typeof
|
|
12766
|
+
function m(y, b, w) {
|
|
12767
|
+
if (typeof b != "string") {
|
|
12768
12768
|
if (f) {
|
|
12769
|
-
var x = h(
|
|
12770
|
-
x && x !== f && m(
|
|
12769
|
+
var x = h(b);
|
|
12770
|
+
x && x !== f && m(y, x, w);
|
|
12771
12771
|
}
|
|
12772
|
-
var C = s(
|
|
12773
|
-
c && (C = C.concat(c(
|
|
12774
|
-
for (var M = a(
|
|
12772
|
+
var C = s(b);
|
|
12773
|
+
c && (C = C.concat(c(b)));
|
|
12774
|
+
for (var M = a(y), A = a(b), v = 0; v < C.length; ++v) {
|
|
12775
12775
|
var E = C[v];
|
|
12776
12776
|
if (!o[E] && !(w && w[E]) && !(A && A[E]) && !(M && M[E])) {
|
|
12777
|
-
var H = p(
|
|
12777
|
+
var H = p(b, E);
|
|
12778
12778
|
try {
|
|
12779
|
-
d(
|
|
12779
|
+
d(y, E, H);
|
|
12780
12780
|
} catch {
|
|
12781
12781
|
}
|
|
12782
12782
|
}
|
|
12783
12783
|
}
|
|
12784
12784
|
}
|
|
12785
|
-
return
|
|
12785
|
+
return y;
|
|
12786
12786
|
}
|
|
12787
12787
|
return xo = m, xo;
|
|
12788
12788
|
}
|
|
@@ -14244,11 +14244,11 @@ const Bn = "ucl-uikit-input", fy = "ucl-uikit-input__input", py = Se(
|
|
|
14244
14244
|
&::placeholder {
|
|
14245
14245
|
color: ${s.color.text.muted};
|
|
14246
14246
|
}
|
|
14247
|
-
`,
|
|
14247
|
+
`, y = u`
|
|
14248
14248
|
&:focus-visible {
|
|
14249
14249
|
box-shadow: ${s.boxShadow.focus};
|
|
14250
14250
|
}
|
|
14251
|
-
`,
|
|
14251
|
+
`, b = u`
|
|
14252
14252
|
color: ${s.color.text.disabled};
|
|
14253
14253
|
border-color: ${s.color.neutral.grey20};
|
|
14254
14254
|
cursor: not-allowed;
|
|
@@ -14259,8 +14259,8 @@ const Bn = "ucl-uikit-input", fy = "ucl-uikit-input__input", py = Se(
|
|
|
14259
14259
|
`, C = k(
|
|
14260
14260
|
fy,
|
|
14261
14261
|
m,
|
|
14262
|
-
!h &&
|
|
14263
|
-
h &&
|
|
14262
|
+
!h && y,
|
|
14263
|
+
h && b,
|
|
14264
14264
|
t && o === "left" && w,
|
|
14265
14265
|
(t && o === "right" || r) && x,
|
|
14266
14266
|
l
|
|
@@ -14317,7 +14317,7 @@ const zn = "ucl-uikit-base-link", gi = Se(function({
|
|
|
14317
14317
|
to: d,
|
|
14318
14318
|
...s
|
|
14319
14319
|
}, c) {
|
|
14320
|
-
const [p] = I(), h = a || "a", f = yy(s) ? s : {}, { href: m, onClick:
|
|
14320
|
+
const [p] = I(), h = a || "a", f = yy(s) ? s : {}, { href: m, onClick: y, ...b } = f, w = h === "a", x = Te(
|
|
14321
14321
|
(E) => (E.preventDefault(), E.stopPropagation(), !1),
|
|
14322
14322
|
[]
|
|
14323
14323
|
), C = u`
|
|
@@ -14354,9 +14354,9 @@ const zn = "ucl-uikit-base-link", gi = Se(function({
|
|
|
14354
14354
|
"aria-disabled": i || void 0,
|
|
14355
14355
|
tabIndex: i ? -1 : s.tabIndex,
|
|
14356
14356
|
href: w ? i ? void 0 : m ?? d : void 0,
|
|
14357
|
-
onClick: i ? x :
|
|
14357
|
+
onClick: i ? x : y,
|
|
14358
14358
|
...w ? {} : d ? { to: d } : m ? { href: m } : {},
|
|
14359
|
-
...
|
|
14359
|
+
...b,
|
|
14360
14360
|
children: r
|
|
14361
14361
|
}
|
|
14362
14362
|
);
|
|
@@ -14389,11 +14389,11 @@ const zn = "ucl-uikit-base-link", gi = Se(function({
|
|
|
14389
14389
|
&:visited {
|
|
14390
14390
|
color: ${c.colour.link.visited};
|
|
14391
14391
|
}
|
|
14392
|
-
`,
|
|
14392
|
+
`, y = u`
|
|
14393
14393
|
&:visited {
|
|
14394
14394
|
color: ${c.colour.link.default};
|
|
14395
14395
|
}
|
|
14396
|
-
`,
|
|
14396
|
+
`, b = u`
|
|
14397
14397
|
&:visited {
|
|
14398
14398
|
color: ${c.color.link.secondaryDefault};
|
|
14399
14399
|
}
|
|
@@ -14416,11 +14416,11 @@ const zn = "ucl-uikit-base-link", gi = Se(function({
|
|
|
14416
14416
|
let M;
|
|
14417
14417
|
o === "primary" ? M = k(
|
|
14418
14418
|
h,
|
|
14419
|
-
t && !r &&
|
|
14419
|
+
t && !r && y,
|
|
14420
14420
|
!r && w
|
|
14421
14421
|
) : o === "secondary" && (M = k(
|
|
14422
14422
|
f,
|
|
14423
|
-
t && !r &&
|
|
14423
|
+
t && !r && b,
|
|
14424
14424
|
!r && x
|
|
14425
14425
|
));
|
|
14426
14426
|
const A = k(
|
|
@@ -14462,10 +14462,10 @@ const zn = "ucl-uikit-base-link", gi = Se(function({
|
|
|
14462
14462
|
align-items: center;
|
|
14463
14463
|
gap: 8px;
|
|
14464
14464
|
text-decoration: none;
|
|
14465
|
-
`,
|
|
14465
|
+
`, y = u`
|
|
14466
14466
|
color: ${f.colour.link.brand};
|
|
14467
14467
|
font-weight: 700;
|
|
14468
|
-
`,
|
|
14468
|
+
`, b = u`
|
|
14469
14469
|
color: ${f.colour.link.primary};
|
|
14470
14470
|
`, w = u`
|
|
14471
14471
|
color: ${f.colour.link.primary};
|
|
@@ -14523,12 +14523,12 @@ const zn = "ucl-uikit-base-link", gi = Se(function({
|
|
|
14523
14523
|
`;
|
|
14524
14524
|
let F;
|
|
14525
14525
|
t === "primary" ? F = k(
|
|
14526
|
-
|
|
14526
|
+
y,
|
|
14527
14527
|
l && !i && C,
|
|
14528
14528
|
!i && v,
|
|
14529
14529
|
!l && !i && x
|
|
14530
14530
|
) : t === "secondary" ? F = k(
|
|
14531
|
-
|
|
14531
|
+
b,
|
|
14532
14532
|
l && !i && M,
|
|
14533
14533
|
!i && E,
|
|
14534
14534
|
!l && !i && x
|
|
@@ -14796,7 +14796,7 @@ async function Hy(e, t) {
|
|
|
14796
14796
|
elementContext: h = "floating",
|
|
14797
14797
|
altBoundary: f = !1,
|
|
14798
14798
|
padding: m = 0
|
|
14799
|
-
} = so(t, e),
|
|
14799
|
+
} = so(t, e), y = Iy(m), w = d[f ? h === "floating" ? "reference" : "floating" : h], x = no(await i.getClippingRect({
|
|
14800
14800
|
element: (o = await (i.isElement == null ? void 0 : i.isElement(w))) == null || o ? w : w.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(d.floating)),
|
|
14801
14801
|
boundary: c,
|
|
14802
14802
|
rootBoundary: p,
|
|
@@ -14819,10 +14819,10 @@ async function Hy(e, t) {
|
|
|
14819
14819
|
strategy: s
|
|
14820
14820
|
}) : C);
|
|
14821
14821
|
return {
|
|
14822
|
-
top: (x.top - v.top +
|
|
14823
|
-
bottom: (v.bottom - x.bottom +
|
|
14824
|
-
left: (x.left - v.left +
|
|
14825
|
-
right: (v.right - x.right +
|
|
14822
|
+
top: (x.top - v.top + y.top) / A.y,
|
|
14823
|
+
bottom: (v.bottom - x.bottom + y.bottom) / A.y,
|
|
14824
|
+
left: (x.left - v.left + y.left) / A.x,
|
|
14825
|
+
right: (v.right - x.right + y.right) / A.x
|
|
14826
14826
|
};
|
|
14827
14827
|
}
|
|
14828
14828
|
const Wy = 50, Ey = async (e, t, o) => {
|
|
@@ -14843,9 +14843,9 @@ const Wy = 50, Ey = async (e, t, o) => {
|
|
|
14843
14843
|
x: p,
|
|
14844
14844
|
y: h
|
|
14845
14845
|
} = Zn(c, r, s), f = r, m = 0;
|
|
14846
|
-
const
|
|
14847
|
-
for (let
|
|
14848
|
-
const w = i[
|
|
14846
|
+
const y = {};
|
|
14847
|
+
for (let b = 0; b < i.length; b++) {
|
|
14848
|
+
const w = i[b];
|
|
14849
14849
|
if (!w)
|
|
14850
14850
|
continue;
|
|
14851
14851
|
const {
|
|
@@ -14862,7 +14862,7 @@ const Wy = 50, Ey = async (e, t, o) => {
|
|
|
14862
14862
|
initialPlacement: r,
|
|
14863
14863
|
placement: f,
|
|
14864
14864
|
strategy: l,
|
|
14865
|
-
middlewareData:
|
|
14865
|
+
middlewareData: y,
|
|
14866
14866
|
rects: c,
|
|
14867
14867
|
platform: d,
|
|
14868
14868
|
elements: {
|
|
@@ -14870,8 +14870,8 @@ const Wy = 50, Ey = async (e, t, o) => {
|
|
|
14870
14870
|
floating: t
|
|
14871
14871
|
}
|
|
14872
14872
|
});
|
|
14873
|
-
p = M ?? p, h = A ?? h,
|
|
14874
|
-
...
|
|
14873
|
+
p = M ?? p, h = A ?? h, y[x] = {
|
|
14874
|
+
...y[x],
|
|
14875
14875
|
...v
|
|
14876
14876
|
}, E && m < Wy && (m++, typeof E == "object" && (E.placement && (f = E.placement), E.rects && (c = E.rects === !0 ? await a.getElementRects({
|
|
14877
14877
|
reference: e,
|
|
@@ -14880,14 +14880,14 @@ const Wy = 50, Ey = async (e, t, o) => {
|
|
|
14880
14880
|
}) : E.rects), {
|
|
14881
14881
|
x: p,
|
|
14882
14882
|
y: h
|
|
14883
|
-
} = Zn(c, f, s)),
|
|
14883
|
+
} = Zn(c, f, s)), b = -1);
|
|
14884
14884
|
}
|
|
14885
14885
|
return {
|
|
14886
14886
|
x: p,
|
|
14887
14887
|
y: h,
|
|
14888
14888
|
placement: f,
|
|
14889
14889
|
strategy: l,
|
|
14890
|
-
middlewareData:
|
|
14890
|
+
middlewareData: y
|
|
14891
14891
|
};
|
|
14892
14892
|
}, Fy = function(e) {
|
|
14893
14893
|
return e === void 0 && (e = {}), {
|
|
@@ -14907,14 +14907,14 @@ const Wy = 50, Ey = async (e, t, o) => {
|
|
|
14907
14907
|
crossAxis: h = !0,
|
|
14908
14908
|
fallbackPlacements: f,
|
|
14909
14909
|
fallbackStrategy: m = "bestFit",
|
|
14910
|
-
fallbackAxisSideDirection:
|
|
14911
|
-
flipAlignment:
|
|
14910
|
+
fallbackAxisSideDirection: y = "none",
|
|
14911
|
+
flipAlignment: b = !0,
|
|
14912
14912
|
...w
|
|
14913
14913
|
} = so(e, t);
|
|
14914
14914
|
if ((o = i.arrow) != null && o.alignmentOffset)
|
|
14915
14915
|
return {};
|
|
14916
|
-
const x = st(l), C = _e(d), M = st(d) === d, A = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), v = f || (M || !
|
|
14917
|
-
!f && E && v.push(...My(d,
|
|
14916
|
+
const x = st(l), C = _e(d), M = st(d) === d, A = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), v = f || (M || !b ? [oo(d)] : ky(d)), E = y !== "none";
|
|
14917
|
+
!f && E && v.push(...My(d, b, y, A));
|
|
14918
14918
|
const H = [d, ...v], F = await s.detectOverflow(t, w), T = [];
|
|
14919
14919
|
let U = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
14920
14920
|
if (p && T.push(F[x]), h) {
|
|
@@ -14980,7 +14980,7 @@ async function zy(e, t) {
|
|
|
14980
14980
|
let {
|
|
14981
14981
|
mainAxis: f,
|
|
14982
14982
|
crossAxis: m,
|
|
14983
|
-
alignmentAxis:
|
|
14983
|
+
alignmentAxis: y
|
|
14984
14984
|
} = typeof h == "number" ? {
|
|
14985
14985
|
mainAxis: h,
|
|
14986
14986
|
crossAxis: 0,
|
|
@@ -14990,7 +14990,7 @@ async function zy(e, t) {
|
|
|
14990
14990
|
crossAxis: h.crossAxis || 0,
|
|
14991
14991
|
alignmentAxis: h.alignmentAxis
|
|
14992
14992
|
};
|
|
14993
|
-
return d && typeof
|
|
14993
|
+
return d && typeof y == "number" && (m = d === "end" ? y * -1 : y), s ? {
|
|
14994
14994
|
x: m * p,
|
|
14995
14995
|
y: f * c
|
|
14996
14996
|
} : {
|
|
@@ -15050,19 +15050,19 @@ const Dy = function(e) {
|
|
|
15050
15050
|
x: o,
|
|
15051
15051
|
y: r
|
|
15052
15052
|
}, h = await i.detectOverflow(t, c), f = _e(st(l)), m = mi(f);
|
|
15053
|
-
let
|
|
15053
|
+
let y = p[m], b = p[f];
|
|
15054
15054
|
if (a) {
|
|
15055
|
-
const x = m === "y" ? "top" : "left", C = m === "y" ? "bottom" : "right", M =
|
|
15056
|
-
|
|
15055
|
+
const x = m === "y" ? "top" : "left", C = m === "y" ? "bottom" : "right", M = y + h[x], A = y - h[C];
|
|
15056
|
+
y = Rn(M, y, A);
|
|
15057
15057
|
}
|
|
15058
15058
|
if (d) {
|
|
15059
|
-
const x = f === "y" ? "top" : "left", C = f === "y" ? "bottom" : "right", M =
|
|
15060
|
-
|
|
15059
|
+
const x = f === "y" ? "top" : "left", C = f === "y" ? "bottom" : "right", M = b + h[x], A = b - h[C];
|
|
15060
|
+
b = Rn(M, b, A);
|
|
15061
15061
|
}
|
|
15062
15062
|
const w = s.fn({
|
|
15063
15063
|
...t,
|
|
15064
|
-
[m]:
|
|
15065
|
-
[f]:
|
|
15064
|
+
[m]: y,
|
|
15065
|
+
[f]: b
|
|
15066
15066
|
});
|
|
15067
15067
|
return {
|
|
15068
15068
|
...w,
|
|
@@ -15240,10 +15240,10 @@ function ct(e, t, o, r) {
|
|
|
15240
15240
|
let s = (l.left + d.x) / a.x, c = (l.top + d.y) / a.y, p = l.width / a.x, h = l.height / a.y;
|
|
15241
15241
|
if (i) {
|
|
15242
15242
|
const f = ze(i), m = r && Re(r) ? ze(r) : r;
|
|
15243
|
-
let
|
|
15244
|
-
for (;
|
|
15245
|
-
const w = bt(
|
|
15246
|
-
s *= w.x, c *= w.y, p *= w.x, h *= w.y, s += M, c += A,
|
|
15243
|
+
let y = f, b = Ro(y);
|
|
15244
|
+
for (; b && r && m !== y; ) {
|
|
15245
|
+
const w = bt(b), x = b.getBoundingClientRect(), C = Ve(b), M = x.left + (b.clientLeft + parseFloat(C.paddingLeft)) * w.x, A = x.top + (b.clientTop + parseFloat(C.paddingTop)) * w.y;
|
|
15246
|
+
s *= w.x, c *= w.y, p *= w.x, h *= w.y, s += M, c += A, y = ze(b), b = Ro(y);
|
|
15247
15247
|
}
|
|
15248
15248
|
}
|
|
15249
15249
|
return no({
|
|
@@ -15316,8 +15316,8 @@ function Jy(e, t) {
|
|
|
15316
15316
|
}
|
|
15317
15317
|
const c = po(r);
|
|
15318
15318
|
if (c <= 0) {
|
|
15319
|
-
const p = r.ownerDocument, h = p.body, f = getComputedStyle(h), m = p.compatMode === "CSS1Compat" && parseFloat(f.marginLeft) + parseFloat(f.marginRight) || 0,
|
|
15320
|
-
|
|
15319
|
+
const p = r.ownerDocument, h = p.body, f = getComputedStyle(h), m = p.compatMode === "CSS1Compat" && parseFloat(f.marginLeft) + parseFloat(f.marginRight) || 0, y = Math.abs(r.clientWidth - h.clientWidth - m);
|
|
15320
|
+
y <= Pn && (i -= y);
|
|
15321
15321
|
} else c <= Pn && (i += c);
|
|
15322
15322
|
return {
|
|
15323
15323
|
width: i,
|
|
@@ -15501,8 +15501,8 @@ function t3(e, t) {
|
|
|
15501
15501
|
} = c;
|
|
15502
15502
|
if (d || t(), !f || !m)
|
|
15503
15503
|
return;
|
|
15504
|
-
const
|
|
15505
|
-
rootMargin: -
|
|
15504
|
+
const y = Ut(h), b = Ut(l.clientWidth - (p + f)), w = Ut(l.clientHeight - (h + m)), x = Ut(p), M = {
|
|
15505
|
+
rootMargin: -y + "px " + -b + "px " + -w + "px " + -x + "px",
|
|
15506
15506
|
threshold: it(0, eo(1, s)) || 1
|
|
15507
15507
|
};
|
|
15508
15508
|
let A = !0;
|
|
@@ -15553,17 +15553,17 @@ function o3(e, t, o, r) {
|
|
|
15553
15553
|
(M = m) == null || M.observe(t);
|
|
15554
15554
|
})), o();
|
|
15555
15555
|
}), c && !s && m.observe(c), t && m.observe(t));
|
|
15556
|
-
let
|
|
15556
|
+
let y, b = s ? ct(e) : null;
|
|
15557
15557
|
s && w();
|
|
15558
15558
|
function w() {
|
|
15559
15559
|
const x = ct(e);
|
|
15560
|
-
|
|
15560
|
+
b && !Mi(b, x) && o(), b = x, y = requestAnimationFrame(w);
|
|
15561
15561
|
}
|
|
15562
15562
|
return o(), () => {
|
|
15563
15563
|
var x;
|
|
15564
15564
|
p.forEach((C) => {
|
|
15565
15565
|
l && C.removeEventListener("scroll", o), i && C.removeEventListener("resize", o);
|
|
15566
|
-
}), h == null || h(), (x = m) == null || x.disconnect(), m = null, s && cancelAnimationFrame(
|
|
15566
|
+
}), h == null || h(), (x = m) == null || x.disconnect(), m = null, s && cancelAnimationFrame(y);
|
|
15567
15567
|
};
|
|
15568
15568
|
}
|
|
15569
15569
|
const n3 = Dy, r3 = Ny, l3 = Fy, i3 = (e, t, o) => {
|
|
@@ -15741,19 +15741,19 @@ function s3() {
|
|
|
15741
15741
|
return "" + h;
|
|
15742
15742
|
}
|
|
15743
15743
|
function o(h, f, m) {
|
|
15744
|
-
var
|
|
15744
|
+
var y = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
15745
15745
|
try {
|
|
15746
|
-
t(
|
|
15747
|
-
var
|
|
15746
|
+
t(y);
|
|
15747
|
+
var b = !1;
|
|
15748
15748
|
} catch {
|
|
15749
|
-
|
|
15749
|
+
b = !0;
|
|
15750
15750
|
}
|
|
15751
|
-
return
|
|
15751
|
+
return b && (console.error(
|
|
15752
15752
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
15753
|
-
typeof Symbol == "function" && Symbol.toStringTag &&
|
|
15754
|
-
), t(
|
|
15753
|
+
typeof Symbol == "function" && Symbol.toStringTag && y[Symbol.toStringTag] || y.constructor.name || "Object"
|
|
15754
|
+
), t(y)), {
|
|
15755
15755
|
$$typeof: c,
|
|
15756
|
-
key:
|
|
15756
|
+
key: y == null ? null : "" + y,
|
|
15757
15757
|
children: h,
|
|
15758
15758
|
containerInfo: f,
|
|
15759
15759
|
implementation: m
|
|
@@ -15856,18 +15856,18 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
15856
15856
|
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
15857
15857
|
l(h)
|
|
15858
15858
|
), typeof h == "string" && f && typeof f.as == "string") {
|
|
15859
|
-
var m = f.as,
|
|
15859
|
+
var m = f.as, y = r(m, f.crossOrigin), b = typeof f.integrity == "string" ? f.integrity : void 0, w = typeof f.fetchPriority == "string" ? f.fetchPriority : void 0;
|
|
15860
15860
|
m === "style" ? s.d.S(
|
|
15861
15861
|
h,
|
|
15862
15862
|
typeof f.precedence == "string" ? f.precedence : void 0,
|
|
15863
15863
|
{
|
|
15864
|
-
crossOrigin:
|
|
15865
|
-
integrity:
|
|
15864
|
+
crossOrigin: y,
|
|
15865
|
+
integrity: b,
|
|
15866
15866
|
fetchPriority: w
|
|
15867
15867
|
}
|
|
15868
15868
|
) : m === "script" && s.d.X(h, {
|
|
15869
|
-
crossOrigin:
|
|
15870
|
-
integrity:
|
|
15869
|
+
crossOrigin: y,
|
|
15870
|
+
integrity: b,
|
|
15871
15871
|
fetchPriority: w,
|
|
15872
15872
|
nonce: typeof f.nonce == "string" ? f.nonce : void 0
|
|
15873
15873
|
});
|
|
@@ -15905,12 +15905,12 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
15905
15905
|
m
|
|
15906
15906
|
), typeof h == "string" && typeof f == "object" && f !== null && typeof f.as == "string") {
|
|
15907
15907
|
m = f.as;
|
|
15908
|
-
var
|
|
15908
|
+
var y = r(
|
|
15909
15909
|
m,
|
|
15910
15910
|
f.crossOrigin
|
|
15911
15911
|
);
|
|
15912
15912
|
s.d.L(h, m, {
|
|
15913
|
-
crossOrigin:
|
|
15913
|
+
crossOrigin: y,
|
|
15914
15914
|
integrity: typeof f.integrity == "string" ? f.integrity : void 0,
|
|
15915
15915
|
nonce: typeof f.nonce == "string" ? f.nonce : void 0,
|
|
15916
15916
|
type: typeof f.type == "string" ? f.type : void 0,
|
|
@@ -16030,11 +16030,11 @@ function h3(e) {
|
|
|
16030
16030
|
isPositioned: !1
|
|
16031
16031
|
}), [f, m] = ie.useState(r);
|
|
16032
16032
|
ro(f, r) || m(r);
|
|
16033
|
-
const [
|
|
16034
|
-
Q !== E.current && (E.current = Q,
|
|
16033
|
+
const [y, b] = ie.useState(null), [w, x] = ie.useState(null), C = ie.useCallback((Q) => {
|
|
16034
|
+
Q !== E.current && (E.current = Q, b(Q));
|
|
16035
16035
|
}, []), M = ie.useCallback((Q) => {
|
|
16036
16036
|
Q !== H.current && (H.current = Q, x(Q));
|
|
16037
|
-
}, []), A = i ||
|
|
16037
|
+
}, []), A = i || y, v = a || w, E = ie.useRef(null), H = ie.useRef(null), F = ie.useRef(p), T = s != null, U = Ao(s), G = Ao(l), V = Ao(c), j = ie.useCallback(() => {
|
|
16038
16038
|
if (!E.current || !H.current)
|
|
16039
16039
|
return;
|
|
16040
16040
|
const Q = {
|
|
@@ -16185,13 +16185,13 @@ const f3 = (e, t) => {
|
|
|
16185
16185
|
...h
|
|
16186
16186
|
}, f) => {
|
|
16187
16187
|
var j, J;
|
|
16188
|
-
const m = ue(null),
|
|
16188
|
+
const m = ue(null), y = ue(null);
|
|
16189
16189
|
la(
|
|
16190
16190
|
f,
|
|
16191
16191
|
() => m.current
|
|
16192
16192
|
);
|
|
16193
|
-
const
|
|
16194
|
-
r &&
|
|
16193
|
+
const b = [];
|
|
16194
|
+
r && b.push(g3()), l && b.push(p3()), i && b.push(f3(i));
|
|
16195
16195
|
const {
|
|
16196
16196
|
x: w,
|
|
16197
16197
|
y: x,
|
|
@@ -16200,7 +16200,7 @@ const f3 = (e, t) => {
|
|
|
16200
16200
|
placement: A
|
|
16201
16201
|
} = h3({
|
|
16202
16202
|
open: !0,
|
|
16203
|
-
middleware:
|
|
16203
|
+
middleware: b,
|
|
16204
16204
|
placement: t,
|
|
16205
16205
|
// strategy: 'absolute',
|
|
16206
16206
|
whileElementsMounted: o3
|
|
@@ -16210,7 +16210,7 @@ const f3 = (e, t) => {
|
|
|
16210
16210
|
jl(() => {
|
|
16211
16211
|
C.setReference(e.current);
|
|
16212
16212
|
}, [e, C]);
|
|
16213
|
-
const { width: E, height: H } = ((J = (j =
|
|
16213
|
+
const { width: E, height: H } = ((J = (j = y == null ? void 0 : y.current) == null ? void 0 : j.getBoundingClientRect) == null ? void 0 : J.call(j)) || {
|
|
16214
16214
|
width: 0,
|
|
16215
16215
|
height: 0
|
|
16216
16216
|
}, F = u`
|
|
@@ -16260,7 +16260,7 @@ const f3 = (e, t) => {
|
|
|
16260
16260
|
), V = Wt(te, {
|
|
16261
16261
|
className: G,
|
|
16262
16262
|
// @ts-expect-error ref typing - todo
|
|
16263
|
-
ref:
|
|
16263
|
+
ref: y
|
|
16264
16264
|
});
|
|
16265
16265
|
}
|
|
16266
16266
|
return /* @__PURE__ */ g(Je, { children: [
|
|
@@ -16371,10 +16371,10 @@ const f3 = (e, t) => {
|
|
|
16371
16371
|
background-color: ${e.colour.fill.inverse};
|
|
16372
16372
|
color: ${d};
|
|
16373
16373
|
border-color: ${s};
|
|
16374
|
-
`,
|
|
16374
|
+
`, y = u`
|
|
16375
16375
|
background-color: ${e.colour.fill.brandSubtleSelected};
|
|
16376
16376
|
border-color: ${s};
|
|
16377
|
-
`,
|
|
16377
|
+
`, b = u`
|
|
16378
16378
|
cursor: pointer;
|
|
16379
16379
|
|
|
16380
16380
|
&:hover {
|
|
@@ -16394,18 +16394,18 @@ const f3 = (e, t) => {
|
|
|
16394
16394
|
`;
|
|
16395
16395
|
return k(
|
|
16396
16396
|
m,
|
|
16397
|
-
t &&
|
|
16398
|
-
!o && !r &&
|
|
16397
|
+
t && y,
|
|
16398
|
+
!o && !r && b,
|
|
16399
16399
|
o && w
|
|
16400
16400
|
);
|
|
16401
16401
|
}, A3 = (e, t, o, r, l) => {
|
|
16402
16402
|
const {
|
|
16403
16403
|
colour: { fill: i, text: a }
|
|
16404
|
-
} = e, d = a.brand, s = d, c = i.brandSubtleHover, p = d, h = i.brandSubtleHover, f = i.brandSubtleHover,
|
|
16404
|
+
} = e, d = a.brand, s = d, c = i.brandSubtleHover, p = d, h = i.brandSubtleHover, f = i.brandSubtleHover, y = u`
|
|
16405
16405
|
background-color: transparent;
|
|
16406
16406
|
color: ${d};
|
|
16407
16407
|
padding: 0 ${l}px;
|
|
16408
|
-
`,
|
|
16408
|
+
`, b = u`
|
|
16409
16409
|
border-color: transparent;
|
|
16410
16410
|
background-color: ${f};
|
|
16411
16411
|
`, w = u`
|
|
@@ -16424,8 +16424,8 @@ const f3 = (e, t) => {
|
|
|
16424
16424
|
color: ${e.colour.text.disabled};
|
|
16425
16425
|
`;
|
|
16426
16426
|
return k(
|
|
16427
|
-
|
|
16428
|
-
t &&
|
|
16427
|
+
y,
|
|
16428
|
+
t && b,
|
|
16429
16429
|
!o && !r && w,
|
|
16430
16430
|
o && x
|
|
16431
16431
|
);
|
|
@@ -16465,11 +16465,11 @@ const f3 = (e, t) => {
|
|
|
16465
16465
|
background-color: ${e.colour.fill.inverse};
|
|
16466
16466
|
color: ${d};
|
|
16467
16467
|
border-color: ${s};
|
|
16468
|
-
`,
|
|
16468
|
+
`, y = u`
|
|
16469
16469
|
background-color: ${i.criticalSelected};
|
|
16470
16470
|
color: ${a.inverse};
|
|
16471
16471
|
border-color: transparent;
|
|
16472
|
-
`,
|
|
16472
|
+
`, b = u`
|
|
16473
16473
|
cursor: pointer;
|
|
16474
16474
|
|
|
16475
16475
|
&:hover {
|
|
@@ -16489,18 +16489,18 @@ const f3 = (e, t) => {
|
|
|
16489
16489
|
`;
|
|
16490
16490
|
return k(
|
|
16491
16491
|
m,
|
|
16492
|
-
t &&
|
|
16493
|
-
!o && !r &&
|
|
16492
|
+
t && y,
|
|
16493
|
+
!o && !r && b,
|
|
16494
16494
|
o && w
|
|
16495
16495
|
);
|
|
16496
16496
|
}, I3 = (e, t, o, r, l) => {
|
|
16497
16497
|
const {
|
|
16498
16498
|
colour: { fill: i, text: a }
|
|
16499
|
-
} = e, d = a.critical, s = i.inverse, c = i.criticalHover, p = a.inverse, h = i.criticalPressed, f = a.inverse, m = i.criticalSelected,
|
|
16499
|
+
} = e, d = a.critical, s = i.inverse, c = i.criticalHover, p = a.inverse, h = i.criticalPressed, f = a.inverse, m = i.criticalSelected, y = o ? l + 1 : l + 2, b = u`
|
|
16500
16500
|
border: none;
|
|
16501
16501
|
background-color: transparent;
|
|
16502
16502
|
color: ${d};
|
|
16503
|
-
padding: 0 ${
|
|
16503
|
+
padding: 0 ${y}px;
|
|
16504
16504
|
`, w = u`
|
|
16505
16505
|
color: ${f};
|
|
16506
16506
|
background-color: ${m};
|
|
@@ -16521,7 +16521,7 @@ const f3 = (e, t) => {
|
|
|
16521
16521
|
color: ${e.colour.text.disabled};
|
|
16522
16522
|
`;
|
|
16523
16523
|
return k(
|
|
16524
|
-
|
|
16524
|
+
b,
|
|
16525
16525
|
t && w,
|
|
16526
16526
|
!o && !r && x,
|
|
16527
16527
|
o && C
|
|
@@ -16544,7 +16544,7 @@ const f3 = (e, t) => {
|
|
|
16544
16544
|
&:active {
|
|
16545
16545
|
background-color: ${c};
|
|
16546
16546
|
}
|
|
16547
|
-
`,
|
|
16547
|
+
`, y = u`
|
|
16548
16548
|
border-color: ${e.colour.fill.disabled};
|
|
16549
16549
|
background-color: ${e.colour.fill.disabled};
|
|
16550
16550
|
color: ${e.colour.text.onBgFillDisabled};
|
|
@@ -16553,20 +16553,20 @@ const f3 = (e, t) => {
|
|
|
16553
16553
|
h,
|
|
16554
16554
|
t && f,
|
|
16555
16555
|
!o && !r && m,
|
|
16556
|
-
o &&
|
|
16556
|
+
o && y
|
|
16557
16557
|
);
|
|
16558
16558
|
}, W3 = (e, t, o, r, l) => {
|
|
16559
16559
|
const {
|
|
16560
16560
|
colour: { border: i, fill: a, text: d }
|
|
16561
|
-
} = e, s = a.inverse, c = i.subtle, p = a.hover, h = a.hover, f = a.brandSubtleHover, m = i.brand,
|
|
16561
|
+
} = e, s = a.inverse, c = i.subtle, p = a.hover, h = a.hover, f = a.brandSubtleHover, m = i.brand, y = d.brandHover, b = l + 1, w = u`
|
|
16562
16562
|
background-color: ${s};
|
|
16563
16563
|
border: 1px solid ${c};
|
|
16564
16564
|
color: ${e.colour.text.default};
|
|
16565
|
-
padding: 0 ${
|
|
16565
|
+
padding: 0 ${b}px;
|
|
16566
16566
|
`, x = u`
|
|
16567
16567
|
background-color: ${f};
|
|
16568
16568
|
border-color: ${m};
|
|
16569
|
-
color: ${
|
|
16569
|
+
color: ${y};
|
|
16570
16570
|
`, C = u`
|
|
16571
16571
|
cursor: pointer;
|
|
16572
16572
|
|
|
@@ -16590,7 +16590,7 @@ const f3 = (e, t) => {
|
|
|
16590
16590
|
}, E3 = (e, t, o, r, l) => {
|
|
16591
16591
|
const {
|
|
16592
16592
|
colour: { border: i, fill: a, text: d }
|
|
16593
|
-
} = e, s = d.brand, c = i.subtle, p = d.brandHover, h = a.brandSubtleHover, f = i.brandSubtle, m = d.brandHover,
|
|
16593
|
+
} = e, s = d.brand, c = i.subtle, p = d.brandHover, h = a.brandSubtleHover, f = i.brandSubtle, m = d.brandHover, y = a.brandSubtleHover, b = i.brandSubtle, w = a.brandSubtleHover, x = i.brand, C = d.brandHover, M = l + 1, A = u`
|
|
16594
16594
|
background-color: ${e.color.neutral.white};
|
|
16595
16595
|
color: ${s};
|
|
16596
16596
|
border: ${e.border.b1} solid ${c};
|
|
@@ -16609,9 +16609,9 @@ const f3 = (e, t) => {
|
|
|
16609
16609
|
}
|
|
16610
16610
|
|
|
16611
16611
|
&:active {
|
|
16612
|
-
background-color: ${
|
|
16612
|
+
background-color: ${y};
|
|
16613
16613
|
color: ${m};
|
|
16614
|
-
border-color: ${
|
|
16614
|
+
border-color: ${b};
|
|
16615
16615
|
}
|
|
16616
16616
|
`, H = u`
|
|
16617
16617
|
border-color: ${i.disabled};
|
|
@@ -16675,8 +16675,8 @@ const f3 = (e, t) => {
|
|
|
16675
16675
|
testId: h = $n,
|
|
16676
16676
|
ref: f,
|
|
16677
16677
|
children: m,
|
|
16678
|
-
className:
|
|
16679
|
-
...
|
|
16678
|
+
className: y,
|
|
16679
|
+
...b
|
|
16680
16680
|
}) => {
|
|
16681
16681
|
const w = e || "button", x = ue(null), C = f || x, [M, A] = be(!1), [v] = I(), E = D3(t, o), H = z3(r), F = u`
|
|
16682
16682
|
all: unset;
|
|
@@ -16782,7 +16782,7 @@ const f3 = (e, t) => {
|
|
|
16782
16782
|
`, $ = k(
|
|
16783
16783
|
$n,
|
|
16784
16784
|
F,
|
|
16785
|
-
ke(
|
|
16785
|
+
ke(b, v),
|
|
16786
16786
|
H === "xsmall" && V,
|
|
16787
16787
|
H === "small" && j,
|
|
16788
16788
|
H === "medium" && J,
|
|
@@ -16792,7 +16792,7 @@ const f3 = (e, t) => {
|
|
|
16792
16792
|
i && Q,
|
|
16793
16793
|
c && ce,
|
|
16794
16794
|
!m && G,
|
|
16795
|
-
|
|
16795
|
+
y
|
|
16796
16796
|
);
|
|
16797
16797
|
return /* @__PURE__ */ g(Je, { children: [
|
|
16798
16798
|
/* @__PURE__ */ n(
|
|
@@ -16805,8 +16805,8 @@ const f3 = (e, t) => {
|
|
|
16805
16805
|
className: $,
|
|
16806
16806
|
"data-testid": h,
|
|
16807
16807
|
"aria-disabled": i,
|
|
16808
|
-
...
|
|
16809
|
-
href: w === "a" && i ? void 0 :
|
|
16808
|
+
...b,
|
|
16809
|
+
href: w === "a" && i ? void 0 : b.href,
|
|
16810
16810
|
children: c ? /* @__PURE__ */ n(
|
|
16811
16811
|
vy,
|
|
16812
16812
|
{
|
|
@@ -16854,11 +16854,11 @@ const f3 = (e, t) => {
|
|
|
16854
16854
|
color: ${s.color.neutral.grey90};
|
|
16855
16855
|
font-family: ${s.font.family.primary};
|
|
16856
16856
|
font-size: ${s.font.size.f16};
|
|
16857
|
-
`,
|
|
16857
|
+
`, y = u`
|
|
16858
16858
|
display: block;
|
|
16859
16859
|
font-weight: ${s.font.weight.bold};
|
|
16860
16860
|
line-height: ${s.font.lineHeight.h140};
|
|
16861
|
-
`,
|
|
16861
|
+
`, b = u`
|
|
16862
16862
|
display: inline;
|
|
16863
16863
|
font-weight: ${s.font.weight.regular};
|
|
16864
16864
|
line-height: ${s.font.lineHeight.h150};
|
|
@@ -16868,8 +16868,8 @@ const f3 = (e, t) => {
|
|
|
16868
16868
|
_n,
|
|
16869
16869
|
m,
|
|
16870
16870
|
ke(a, s),
|
|
16871
|
-
e === "block" &&
|
|
16872
|
-
e === "inline" &&
|
|
16871
|
+
e === "block" && y,
|
|
16872
|
+
e === "inline" && b,
|
|
16873
16873
|
t && w,
|
|
16874
16874
|
l
|
|
16875
16875
|
), C = u`
|
|
@@ -17041,9 +17041,9 @@ const f3 = (e, t) => {
|
|
|
17041
17041
|
_(() => {
|
|
17042
17042
|
h(!1);
|
|
17043
17043
|
}, [t]);
|
|
17044
|
-
const f = r * 2 / 5, m = O3(o),
|
|
17044
|
+
const f = r * 2 / 5, m = O3(o), y = (E) => {
|
|
17045
17045
|
console.error("Avatar image failed to load", E), h(!0);
|
|
17046
|
-
},
|
|
17046
|
+
}, b = u`
|
|
17047
17047
|
display: flex;
|
|
17048
17048
|
justify-content: center;
|
|
17049
17049
|
align-items: center;
|
|
@@ -17082,7 +17082,7 @@ const f3 = (e, t) => {
|
|
|
17082
17082
|
padding-top: 0.1em;
|
|
17083
17083
|
`, v = k(
|
|
17084
17084
|
or,
|
|
17085
|
-
|
|
17085
|
+
b,
|
|
17086
17086
|
!l && w,
|
|
17087
17087
|
l && x,
|
|
17088
17088
|
a
|
|
@@ -17100,7 +17100,7 @@ const f3 = (e, t) => {
|
|
|
17100
17100
|
{
|
|
17101
17101
|
src: t,
|
|
17102
17102
|
alt: o ?? "Avatar",
|
|
17103
|
-
onError:
|
|
17103
|
+
onError: y,
|
|
17104
17104
|
"data-testid": `${i}-image`,
|
|
17105
17105
|
className: C
|
|
17106
17106
|
}
|
|
@@ -17176,7 +17176,7 @@ const f3 = (e, t) => {
|
|
|
17176
17176
|
children: a,
|
|
17177
17177
|
...d
|
|
17178
17178
|
}) => {
|
|
17179
|
-
const [s] = I(), c = r === "large" ? s.typography.body.sm : s.typography.body.xs, p = r === "large" ? 16 : 14, h = U3(s), { color: f, backgroundColor: m, border:
|
|
17179
|
+
const [s] = I(), c = r === "large" ? s.typography.body.sm : s.typography.body.xs, p = r === "large" ? 16 : 14, h = U3(s), { color: f, backgroundColor: m, border: y } = h[o], b = u`
|
|
17180
17180
|
display: inline-flex;
|
|
17181
17181
|
align-items: center;
|
|
17182
17182
|
justify-content: center;
|
|
@@ -17186,7 +17186,7 @@ const f3 = (e, t) => {
|
|
|
17186
17186
|
|
|
17187
17187
|
color: ${f};
|
|
17188
17188
|
background-color: ${m};
|
|
17189
|
-
border: ${
|
|
17189
|
+
border: ${y ?? "none"};
|
|
17190
17190
|
|
|
17191
17191
|
font-family: ${c.fontFamily};
|
|
17192
17192
|
font-feature-settings: ${c.fontSettings};
|
|
@@ -17198,7 +17198,7 @@ const f3 = (e, t) => {
|
|
|
17198
17198
|
white-space: nowrap;
|
|
17199
17199
|
gap: 4px;
|
|
17200
17200
|
vertical-align: middle;
|
|
17201
|
-
`, w = k(nr,
|
|
17201
|
+
`, w = k(nr, b, t), x = u`
|
|
17202
17202
|
display: block;
|
|
17203
17203
|
border-radius: 50%;
|
|
17204
17204
|
background-color: currentColor;
|
|
@@ -17287,17 +17287,17 @@ const f3 = (e, t) => {
|
|
|
17287
17287
|
&:focus-visible {
|
|
17288
17288
|
box-shadow: ${a.boxShadow.focus};
|
|
17289
17289
|
}
|
|
17290
|
-
`,
|
|
17290
|
+
`, y = u`
|
|
17291
17291
|
color: ${a.color.text.disabled};
|
|
17292
17292
|
border-color: ${a.color.neutral.grey20};
|
|
17293
17293
|
cursor: not-allowed;
|
|
17294
17294
|
resize: none;
|
|
17295
|
-
`,
|
|
17295
|
+
`, b = k(
|
|
17296
17296
|
rr,
|
|
17297
17297
|
f,
|
|
17298
17298
|
ke(l, a),
|
|
17299
17299
|
!p && m,
|
|
17300
|
-
p &&
|
|
17300
|
+
p && y,
|
|
17301
17301
|
r
|
|
17302
17302
|
);
|
|
17303
17303
|
return /* @__PURE__ */ n(
|
|
@@ -17306,7 +17306,7 @@ const f3 = (e, t) => {
|
|
|
17306
17306
|
ref: i,
|
|
17307
17307
|
value: e,
|
|
17308
17308
|
id: h,
|
|
17309
|
-
className:
|
|
17309
|
+
className: b,
|
|
17310
17310
|
"data-testid": o,
|
|
17311
17311
|
disabled: p,
|
|
17312
17312
|
...l
|
|
@@ -17326,9 +17326,9 @@ const f3 = (e, t) => {
|
|
|
17326
17326
|
}) => {
|
|
17327
17327
|
const [s] = I(), {
|
|
17328
17328
|
typography: {
|
|
17329
|
-
heading: { xxl: c, xl: p, lg: h, md: f, sm: m, xs:
|
|
17329
|
+
heading: { xxl: c, xl: p, lg: h, md: f, sm: m, xs: y }
|
|
17330
17330
|
}
|
|
17331
|
-
} = s,
|
|
17331
|
+
} = s, b = e === 1 ? "xxl" : e === 2 ? "xl" : e === 3 ? "lg" : e === 4 ? "md" : e, w = b === "xxl" ? "h1" : b === "xl" ? "h2" : b === "lg" ? "h3" : b === "md" ? "h4" : b === "sm" ? "h5" : "h6", x = u`
|
|
17332
17332
|
font-family: ${f.md.fontFamily};
|
|
17333
17333
|
font-feature-settings: ${f.md.fontSettings};
|
|
17334
17334
|
color: ${s.colour.text.default};
|
|
@@ -17379,23 +17379,23 @@ const f3 = (e, t) => {
|
|
|
17379
17379
|
line-height: ${m.md.lineHeight}%;
|
|
17380
17380
|
}
|
|
17381
17381
|
`, H = u`
|
|
17382
|
-
font-size: ${
|
|
17383
|
-
font-weight: ${
|
|
17384
|
-
line-height: ${
|
|
17382
|
+
font-size: ${y.sm.fontSize}px;
|
|
17383
|
+
font-weight: ${y.sm.fontWeight};
|
|
17384
|
+
line-height: ${y.sm.lineHeight}%;
|
|
17385
17385
|
@media screen and (min-width: ${s.breakpoints.tablet}px) {
|
|
17386
|
-
font-size: ${
|
|
17387
|
-
font-weight: ${
|
|
17388
|
-
line-height: ${
|
|
17386
|
+
font-size: ${y.md.fontSize}px;
|
|
17387
|
+
font-weight: ${y.md.fontWeight};
|
|
17388
|
+
line-height: ${y.md.lineHeight}%;
|
|
17389
17389
|
}
|
|
17390
17390
|
`, F = k(
|
|
17391
17391
|
lr,
|
|
17392
17392
|
x,
|
|
17393
|
-
|
|
17394
|
-
|
|
17395
|
-
|
|
17396
|
-
|
|
17397
|
-
|
|
17398
|
-
|
|
17393
|
+
b === "xxl" && C,
|
|
17394
|
+
b === "xl" && M,
|
|
17395
|
+
b === "lg" && A,
|
|
17396
|
+
b === "md" && v,
|
|
17397
|
+
b === "sm" && E,
|
|
17398
|
+
b === "xs" && H,
|
|
17399
17399
|
ke(
|
|
17400
17400
|
{ ...d, noMargins: a || o === !1 },
|
|
17401
17401
|
s
|
|
@@ -17495,8 +17495,8 @@ const f3 = (e, t) => {
|
|
|
17495
17495
|
lg: h,
|
|
17496
17496
|
lgMedium: f,
|
|
17497
17497
|
lgSemibold: m,
|
|
17498
|
-
lgBold:
|
|
17499
|
-
md:
|
|
17498
|
+
lgBold: y,
|
|
17499
|
+
md: b,
|
|
17500
17500
|
mdMedium: w,
|
|
17501
17501
|
mdSemibold: x,
|
|
17502
17502
|
mdMediumNumeric: C,
|
|
@@ -17508,8 +17508,8 @@ const f3 = (e, t) => {
|
|
|
17508
17508
|
}
|
|
17509
17509
|
}
|
|
17510
17510
|
} = p, F = e || (t === "standfirst" ? o === "medium" ? "lg-medium" : "lg" : t === "small" ? o === "medium" ? "sm-medium" : "sm" : o === "medium" ? "md-medium" : "md"), T = u`
|
|
17511
|
-
font-family: ${
|
|
17512
|
-
font-feature-settings: ${
|
|
17511
|
+
font-family: ${b.fontFamily};
|
|
17512
|
+
font-feature-settings: ${b.fontSettings};
|
|
17513
17513
|
color: ${o === "medium" ? p.colour.text.secondary : p.colour.text.default};
|
|
17514
17514
|
margin: 0;
|
|
17515
17515
|
`, U = u`
|
|
@@ -17525,13 +17525,13 @@ const f3 = (e, t) => {
|
|
|
17525
17525
|
font-weight: ${m.fontWeight};
|
|
17526
17526
|
line-height: ${m.lineHeight}%;
|
|
17527
17527
|
`, j = u`
|
|
17528
|
-
font-size: ${b.fontSize}px;
|
|
17529
|
-
font-weight: ${b.fontWeight};
|
|
17530
|
-
line-height: ${b.lineHeight}%;
|
|
17531
|
-
`, J = u`
|
|
17532
17528
|
font-size: ${y.fontSize}px;
|
|
17533
17529
|
font-weight: ${y.fontWeight};
|
|
17534
17530
|
line-height: ${y.lineHeight}%;
|
|
17531
|
+
`, J = u`
|
|
17532
|
+
font-size: ${b.fontSize}px;
|
|
17533
|
+
font-weight: ${b.fontWeight};
|
|
17534
|
+
line-height: ${b.lineHeight}%;
|
|
17535
17535
|
`, te = u`
|
|
17536
17536
|
font-size: ${w.fontSize}px;
|
|
17537
17537
|
font-weight: ${w.fontWeight};
|
|
@@ -17633,8 +17633,8 @@ const f3 = (e, t) => {
|
|
|
17633
17633
|
mdMedium: h,
|
|
17634
17634
|
mdSemibold: f,
|
|
17635
17635
|
mdMediumNumeric: m,
|
|
17636
|
-
sm:
|
|
17637
|
-
smMedium:
|
|
17636
|
+
sm: y,
|
|
17637
|
+
smMedium: b,
|
|
17638
17638
|
smSemibold: w,
|
|
17639
17639
|
xs: x,
|
|
17640
17640
|
xsMedium: C
|
|
@@ -17678,13 +17678,13 @@ const f3 = (e, t) => {
|
|
|
17678
17678
|
font-weight: ${m.fontWeight};
|
|
17679
17679
|
line-height: ${m.lineHeight}%;
|
|
17680
17680
|
`, V = u`
|
|
17681
|
-
font-size: ${b.fontSize}px;
|
|
17682
|
-
font-weight: ${b.fontWeight};
|
|
17683
|
-
line-height: ${b.lineHeight}%;
|
|
17684
|
-
`, j = u`
|
|
17685
17681
|
font-size: ${y.fontSize}px;
|
|
17686
17682
|
font-weight: ${y.fontWeight};
|
|
17687
17683
|
line-height: ${y.lineHeight}%;
|
|
17684
|
+
`, j = u`
|
|
17685
|
+
font-size: ${b.fontSize}px;
|
|
17686
|
+
font-weight: ${b.fontWeight};
|
|
17687
|
+
line-height: ${b.lineHeight}%;
|
|
17688
17688
|
`, J = u`
|
|
17689
17689
|
font-size: ${w.fontSize}px;
|
|
17690
17690
|
font-weight: ${w.fontWeight};
|
|
@@ -17759,8 +17759,8 @@ const f3 = (e, t) => {
|
|
|
17759
17759
|
outline: 0;
|
|
17760
17760
|
pointer-events: auto;
|
|
17761
17761
|
`, m = Te(
|
|
17762
|
-
(
|
|
17763
|
-
|
|
17762
|
+
(y) => {
|
|
17763
|
+
y.target === y.currentTarget && o && o();
|
|
17764
17764
|
},
|
|
17765
17765
|
[o]
|
|
17766
17766
|
);
|
|
@@ -18094,10 +18094,10 @@ const pr = "ucl-uikit-checkbox", bb = Se(
|
|
|
18094
18094
|
}, s) => {
|
|
18095
18095
|
const [c] = I(), p = t !== void 0, [h, f] = be(
|
|
18096
18096
|
o ?? !1
|
|
18097
|
-
), m = p ? t : h,
|
|
18097
|
+
), m = p ? t : h, y = (F) => {
|
|
18098
18098
|
var T;
|
|
18099
18099
|
p || f(F.target.checked), (T = d.onChange) == null || T.call(d, F);
|
|
18100
|
-
},
|
|
18100
|
+
}, b = u`
|
|
18101
18101
|
position: relative;
|
|
18102
18102
|
display: inline-block;
|
|
18103
18103
|
width: 24px;
|
|
@@ -18130,7 +18130,7 @@ const pr = "ucl-uikit-checkbox", bb = Se(
|
|
|
18130
18130
|
cursor: not-allowed;
|
|
18131
18131
|
`, A = k(
|
|
18132
18132
|
pr,
|
|
18133
|
-
|
|
18133
|
+
b,
|
|
18134
18134
|
ke(d, c),
|
|
18135
18135
|
!r && w,
|
|
18136
18136
|
m && x,
|
|
@@ -18174,7 +18174,7 @@ const pr = "ucl-uikit-checkbox", bb = Se(
|
|
|
18174
18174
|
"aria-label": i,
|
|
18175
18175
|
...p ? { checked: t } : { defaultChecked: o },
|
|
18176
18176
|
disabled: r,
|
|
18177
|
-
onChange:
|
|
18177
|
+
onChange: y,
|
|
18178
18178
|
...d
|
|
18179
18179
|
}
|
|
18180
18180
|
),
|
|
@@ -18223,19 +18223,19 @@ const pr = "ucl-uikit-checkbox", bb = Se(
|
|
|
18223
18223
|
className: h,
|
|
18224
18224
|
children: f,
|
|
18225
18225
|
...m
|
|
18226
|
-
},
|
|
18227
|
-
const [
|
|
18226
|
+
}, y) => {
|
|
18227
|
+
const [b] = I(), w = wt();
|
|
18228
18228
|
e = e ?? w;
|
|
18229
18229
|
const x = u`
|
|
18230
|
-
margin-top: ${
|
|
18231
|
-
margin-bottom: ${
|
|
18230
|
+
margin-top: ${b.margin.m16};
|
|
18231
|
+
margin-bottom: ${b.margin.m16};
|
|
18232
18232
|
display: flex;
|
|
18233
18233
|
align-items: center;
|
|
18234
|
-
gap: ${
|
|
18234
|
+
gap: ${b.m16};
|
|
18235
18235
|
width: fit-content;
|
|
18236
18236
|
`, C = u`
|
|
18237
18237
|
&:focus-within {
|
|
18238
|
-
box-shadow: ${
|
|
18238
|
+
box-shadow: ${b.boxShadow.focus};
|
|
18239
18239
|
}
|
|
18240
18240
|
`, M = k(
|
|
18241
18241
|
gr,
|
|
@@ -18252,7 +18252,7 @@ const pr = "ucl-uikit-checkbox", bb = Se(
|
|
|
18252
18252
|
mr: c,
|
|
18253
18253
|
noMargins: p
|
|
18254
18254
|
},
|
|
18255
|
-
|
|
18255
|
+
b
|
|
18256
18256
|
),
|
|
18257
18257
|
h
|
|
18258
18258
|
), A = u`
|
|
@@ -18269,7 +18269,7 @@ const pr = "ucl-uikit-checkbox", bb = Se(
|
|
|
18269
18269
|
/* @__PURE__ */ n(
|
|
18270
18270
|
tn,
|
|
18271
18271
|
{
|
|
18272
|
-
ref:
|
|
18272
|
+
ref: y,
|
|
18273
18273
|
className: A,
|
|
18274
18274
|
id: e,
|
|
18275
18275
|
"data-testid": `${o}__checkbox`,
|
|
@@ -18417,23 +18417,23 @@ const pr = "ucl-uikit-checkbox", bb = Se(
|
|
|
18417
18417
|
return C.getAttribute("aria-disabled") !== "true" && C.tabIndex >= 0 && C.offsetParent !== null;
|
|
18418
18418
|
});
|
|
18419
18419
|
if (m.length === 0) return;
|
|
18420
|
-
const
|
|
18420
|
+
const y = m[0], b = m[m.length - 1], w = m.indexOf(
|
|
18421
18421
|
document.activeElement
|
|
18422
18422
|
);
|
|
18423
18423
|
if (f.key === "Tab")
|
|
18424
|
-
f.shiftKey && document.activeElement ===
|
|
18424
|
+
f.shiftKey && document.activeElement === y ? (b.focus(), f.preventDefault()) : !f.shiftKey && document.activeElement === b && (y.focus(), f.preventDefault());
|
|
18425
18425
|
else if (f.key === "ArrowDown")
|
|
18426
18426
|
if (w !== -1) {
|
|
18427
18427
|
const x = (w + 1) % m.length;
|
|
18428
18428
|
m[x].focus(), f.preventDefault();
|
|
18429
18429
|
} else
|
|
18430
|
-
|
|
18430
|
+
y.focus(), f.preventDefault();
|
|
18431
18431
|
else if (f.key === "ArrowUp")
|
|
18432
18432
|
if (w !== -1) {
|
|
18433
18433
|
const x = (w - 1 + m.length) % m.length;
|
|
18434
18434
|
m[x].focus(), f.preventDefault();
|
|
18435
18435
|
} else
|
|
18436
|
-
|
|
18436
|
+
b.focus(), f.preventDefault();
|
|
18437
18437
|
};
|
|
18438
18438
|
return document.addEventListener("mousedown", p), document.addEventListener("keydown", h), () => {
|
|
18439
18439
|
document.removeEventListener("mousedown", p), document.removeEventListener("keydown", h);
|
|
@@ -18458,9 +18458,9 @@ const pr = "ucl-uikit-checkbox", bb = Se(
|
|
|
18458
18458
|
onClick: s,
|
|
18459
18459
|
...c
|
|
18460
18460
|
}) => {
|
|
18461
|
-
const p = !!(s || l || i), [h] = I(), { toggleMenu: f } = on(), m = gt(() => typeof d == "boolean" ? d : typeof window < "u" && l ? window.location.pathname === l : !1, [d, l]),
|
|
18461
|
+
const p = !!(s || l || i), [h] = I(), { toggleMenu: f } = on(), m = gt(() => typeof d == "boolean" ? d : typeof window < "u" && l ? window.location.pathname === l : !1, [d, l]), y = (v) => {
|
|
18462
18462
|
m && (v.preventDefault(), f()), s && s(v);
|
|
18463
|
-
},
|
|
18463
|
+
}, b = u`
|
|
18464
18464
|
height: 40px;
|
|
18465
18465
|
padding: 0 16px;
|
|
18466
18466
|
display: flex;
|
|
@@ -18502,7 +18502,7 @@ const pr = "ucl-uikit-checkbox", bb = Se(
|
|
|
18502
18502
|
margin-right: 8px;
|
|
18503
18503
|
`, M = k(
|
|
18504
18504
|
br,
|
|
18505
|
-
|
|
18505
|
+
b,
|
|
18506
18506
|
p && w,
|
|
18507
18507
|
r
|
|
18508
18508
|
), A = /* @__PURE__ */ g(Je, { children: [
|
|
@@ -18519,7 +18519,7 @@ const pr = "ucl-uikit-checkbox", bb = Se(
|
|
|
18519
18519
|
role: "menuitem",
|
|
18520
18520
|
tabIndex: 0,
|
|
18521
18521
|
"aria-label": m ? `${o} - Currently selected` : void 0,
|
|
18522
|
-
onClick:
|
|
18522
|
+
onClick: y,
|
|
18523
18523
|
children: /* @__PURE__ */ n(
|
|
18524
18524
|
"li",
|
|
18525
18525
|
{
|
|
@@ -18569,8 +18569,8 @@ const pr = "ucl-uikit-checkbox", bb = Se(
|
|
|
18569
18569
|
}) => {
|
|
18570
18570
|
const { isOpen: l, contentRef: i, toggleMenu: a } = on(), [d] = I(), s = ht(
|
|
18571
18571
|
`(min-width: ${d.breakpoints.desktop}px)`
|
|
18572
|
-
), c = (
|
|
18573
|
-
|
|
18572
|
+
), c = (b) => {
|
|
18573
|
+
b.key === "Enter" && a();
|
|
18574
18574
|
}, p = u`
|
|
18575
18575
|
z-index: 9999;
|
|
18576
18576
|
position: absolute;
|
|
@@ -18612,10 +18612,10 @@ const pr = "ucl-uikit-checkbox", bb = Se(
|
|
|
18612
18612
|
}
|
|
18613
18613
|
`;
|
|
18614
18614
|
_(() => {
|
|
18615
|
-
const
|
|
18616
|
-
|
|
18615
|
+
const b = document.getElementById("root");
|
|
18616
|
+
b && (!s && l ? b.style.display = "none" : b.style.display = "");
|
|
18617
18617
|
}, [l, s]);
|
|
18618
|
-
const m = k(vr, p, l && h, o),
|
|
18618
|
+
const m = k(vr, p, l && h, o), y = /* @__PURE__ */ g(
|
|
18619
18619
|
"ul",
|
|
18620
18620
|
{
|
|
18621
18621
|
id: "app-menu",
|
|
@@ -18642,7 +18642,7 @@ const pr = "ucl-uikit-checkbox", bb = Se(
|
|
|
18642
18642
|
]
|
|
18643
18643
|
}
|
|
18644
18644
|
);
|
|
18645
|
-
return s ?
|
|
18645
|
+
return s ? y : $o.createPortal(y, document.body);
|
|
18646
18646
|
}, wr = "ucl-app-menu__divider", Ab = ({
|
|
18647
18647
|
testId: e = wr,
|
|
18648
18648
|
className: t,
|
|
@@ -18743,23 +18743,23 @@ const Bi = Qe({}), zi = () => Ne(Bi), Ib = ({
|
|
|
18743
18743
|
return C.getAttribute("aria-disabled") !== "true" && C.tabIndex >= 0 && C.offsetParent !== null;
|
|
18744
18744
|
});
|
|
18745
18745
|
if (m.length === 0) return;
|
|
18746
|
-
const
|
|
18746
|
+
const y = m[0], b = m[m.length - 1], w = m.indexOf(
|
|
18747
18747
|
document.activeElement
|
|
18748
18748
|
);
|
|
18749
18749
|
if (f.key === "Tab")
|
|
18750
|
-
f.shiftKey && document.activeElement ===
|
|
18750
|
+
f.shiftKey && document.activeElement === y ? (b.focus(), f.preventDefault()) : !f.shiftKey && document.activeElement === b && (y.focus(), f.preventDefault());
|
|
18751
18751
|
else if (f.key === "ArrowDown")
|
|
18752
18752
|
if (w !== -1) {
|
|
18753
18753
|
const x = (w + 1) % m.length;
|
|
18754
18754
|
m[x].focus(), f.preventDefault();
|
|
18755
18755
|
} else
|
|
18756
|
-
|
|
18756
|
+
y.focus(), f.preventDefault();
|
|
18757
18757
|
else if (f.key === "ArrowUp")
|
|
18758
18758
|
if (w !== -1) {
|
|
18759
18759
|
const x = (w - 1 + m.length) % m.length;
|
|
18760
18760
|
m[x].focus(), f.preventDefault();
|
|
18761
18761
|
} else
|
|
18762
|
-
|
|
18762
|
+
b.focus(), f.preventDefault();
|
|
18763
18763
|
};
|
|
18764
18764
|
return document.addEventListener("mousedown", p), document.addEventListener("keydown", h), () => {
|
|
18765
18765
|
document.removeEventListener("mousedown", p), document.removeEventListener("keydown", h);
|
|
@@ -18812,7 +18812,7 @@ const Bi = Qe({}), zi = () => Ne(Bi), Ib = ({
|
|
|
18812
18812
|
}
|
|
18813
18813
|
`, m = u`
|
|
18814
18814
|
display: block;
|
|
18815
|
-
`,
|
|
18815
|
+
`, y = k(Sr, f, a && m, l), b = u`
|
|
18816
18816
|
display: flex;
|
|
18817
18817
|
justify-content: space-between;
|
|
18818
18818
|
padding: ${p.p64} ${p.p24} ${p.p16};
|
|
@@ -18842,9 +18842,9 @@ const Bi = Qe({}), zi = () => Ne(Bi), Ib = ({
|
|
|
18842
18842
|
"div",
|
|
18843
18843
|
{
|
|
18844
18844
|
ref: d,
|
|
18845
|
-
className:
|
|
18845
|
+
className: y,
|
|
18846
18846
|
children: [
|
|
18847
|
-
/* @__PURE__ */ g("header", { className:
|
|
18847
|
+
/* @__PURE__ */ g("header", { className: b, children: [
|
|
18848
18848
|
/* @__PURE__ */ n("h3", { className: w, children: e }),
|
|
18849
18849
|
/* @__PURE__ */ n(
|
|
18850
18850
|
De,
|
|
@@ -18910,7 +18910,7 @@ const Bi = Qe({}), zi = () => Ne(Bi), Ib = ({
|
|
|
18910
18910
|
p,
|
|
18911
18911
|
s && h,
|
|
18912
18912
|
r
|
|
18913
|
-
),
|
|
18913
|
+
), y = /* @__PURE__ */ g(Je, { children: [
|
|
18914
18914
|
at.isValidElement(t) && /* @__PURE__ */ n("span", { className: f, children: t }),
|
|
18915
18915
|
o
|
|
18916
18916
|
] });
|
|
@@ -18925,7 +18925,7 @@ const Bi = Qe({}), zi = () => Ne(Bi), Ib = ({
|
|
|
18925
18925
|
onClick: l,
|
|
18926
18926
|
...d,
|
|
18927
18927
|
children: [
|
|
18928
|
-
|
|
18928
|
+
y,
|
|
18929
18929
|
a && /* @__PURE__ */ n(
|
|
18930
18930
|
D.ExternalLink,
|
|
18931
18931
|
{
|
|
@@ -19023,26 +19023,36 @@ const yo = ({
|
|
|
19023
19023
|
iconPosition: t = "left",
|
|
19024
19024
|
className: o,
|
|
19025
19025
|
children: r,
|
|
19026
|
-
|
|
19026
|
+
onClick: l,
|
|
19027
|
+
onKeyDown: i,
|
|
19028
|
+
role: a,
|
|
19029
|
+
tabIndex: d,
|
|
19030
|
+
...s
|
|
19027
19031
|
}) => {
|
|
19028
|
-
const [
|
|
19032
|
+
const [c] = I(), p = typeof l == "function", h = (y) => {
|
|
19033
|
+
i == null || i(y), !(y.defaultPrevented || !p) && (y.key === "Enter" && y.currentTarget.click(), y.key === " " && (y.preventDefault(), y.currentTarget.click()));
|
|
19034
|
+
}, f = u`
|
|
19029
19035
|
width: 360px;
|
|
19030
19036
|
box-sizing: border-box;
|
|
19031
19037
|
min-height: 48px;
|
|
19032
19038
|
display: flex;
|
|
19033
19039
|
align-items: center;
|
|
19034
|
-
gap: ${
|
|
19040
|
+
gap: ${c.margin.m32};
|
|
19035
19041
|
cursor: pointer;
|
|
19036
19042
|
|
|
19037
19043
|
&:hover .ucl-uikit-menu__item-text {
|
|
19038
19044
|
text-decoration: underline;
|
|
19039
19045
|
}
|
|
19040
|
-
`,
|
|
19046
|
+
`, m = k(f, o);
|
|
19041
19047
|
return /* @__PURE__ */ g(
|
|
19042
19048
|
"div",
|
|
19043
19049
|
{
|
|
19044
|
-
className:
|
|
19045
|
-
|
|
19050
|
+
className: m,
|
|
19051
|
+
onClick: l,
|
|
19052
|
+
onKeyDown: h,
|
|
19053
|
+
role: a ?? (p ? "button" : void 0),
|
|
19054
|
+
tabIndex: d ?? (p ? 0 : void 0),
|
|
19055
|
+
...s,
|
|
19046
19056
|
children: [
|
|
19047
19057
|
t === "left" && e,
|
|
19048
19058
|
r,
|
|
@@ -19108,7 +19118,7 @@ const yo = ({
|
|
|
19108
19118
|
className: e,
|
|
19109
19119
|
children: t,
|
|
19110
19120
|
asChild: o,
|
|
19111
|
-
|
|
19121
|
+
trailingContent: r,
|
|
19112
19122
|
...l
|
|
19113
19123
|
}) => {
|
|
19114
19124
|
const [i] = I(), a = u`
|
|
@@ -19167,25 +19177,39 @@ const yo = ({
|
|
|
19167
19177
|
children: t
|
|
19168
19178
|
}
|
|
19169
19179
|
),
|
|
19170
|
-
r && /* @__PURE__ */ n(
|
|
19180
|
+
r && /* @__PURE__ */ n(
|
|
19181
|
+
D.ExternalLink,
|
|
19182
|
+
{
|
|
19183
|
+
size: 16,
|
|
19184
|
+
"aria-hidden": "true",
|
|
19185
|
+
focusable: "false"
|
|
19186
|
+
}
|
|
19187
|
+
)
|
|
19171
19188
|
] })
|
|
19172
19189
|
}
|
|
19173
19190
|
);
|
|
19174
|
-
}, Kb = "ucl-uikit-menu", Xb = ({
|
|
19175
|
-
|
|
19176
|
-
|
|
19191
|
+
}, Kb = "ucl-uikit-menu", Xb = ({
|
|
19192
|
+
testId: e = Kb,
|
|
19193
|
+
className: t,
|
|
19194
|
+
children: o,
|
|
19195
|
+
border: r = !1,
|
|
19196
|
+
...l
|
|
19197
|
+
}) => {
|
|
19198
|
+
const [i] = I(), a = u`
|
|
19199
|
+
padding: ${i.padding.p16} ${i.padding.p24};
|
|
19177
19200
|
|
|
19178
|
-
@media screen and (min-width: ${
|
|
19179
|
-
padding: ${
|
|
19180
|
-
border: 1px solid ${l.colour.border.subtle};
|
|
19201
|
+
@media screen and (min-width: ${i.breakpoints.tablet}px) {
|
|
19202
|
+
padding: ${i.padding.p48} ${i.padding.p64};
|
|
19181
19203
|
}
|
|
19182
|
-
`,
|
|
19204
|
+
`, d = u`
|
|
19205
|
+
border: 1px solid ${i.colour.border.subtle};
|
|
19206
|
+
`, s = k(a, r && d, t);
|
|
19183
19207
|
return /* @__PURE__ */ n(
|
|
19184
19208
|
"nav",
|
|
19185
19209
|
{
|
|
19186
|
-
className:
|
|
19210
|
+
className: s,
|
|
19187
19211
|
"data-testid": e,
|
|
19188
|
-
...
|
|
19212
|
+
...l,
|
|
19189
19213
|
children: o
|
|
19190
19214
|
}
|
|
19191
19215
|
);
|
|
@@ -19221,8 +19245,8 @@ const yo = ({
|
|
|
19221
19245
|
className: h,
|
|
19222
19246
|
panelClassName: f,
|
|
19223
19247
|
filterable: m = !1,
|
|
19224
|
-
ref:
|
|
19225
|
-
...
|
|
19248
|
+
ref: y,
|
|
19249
|
+
...b
|
|
19226
19250
|
}) => {
|
|
19227
19251
|
c !== void 0 && console.warn(
|
|
19228
19252
|
"Select width prop is deprecated; it has no effect. Use className instead."
|
|
@@ -19241,12 +19265,12 @@ const yo = ({
|
|
|
19241
19265
|
);
|
|
19242
19266
|
}, [x]);
|
|
19243
19267
|
const C = ue(null), M = C, A = ue(!1), v = ue(!1), E = (z) => {
|
|
19244
|
-
C.current = z, typeof
|
|
19268
|
+
C.current = z, typeof y == "function" ? y(z) : y && "current" in y && (y.current = z);
|
|
19245
19269
|
}, [H] = I(), [F, T] = be(!1), [U, G] = be(""), [V, j] = be(
|
|
19246
19270
|
null
|
|
19247
19271
|
), [J, te] = be(
|
|
19248
19272
|
null
|
|
19249
|
-
), X = ue(null), ee = ue(null), Q = wt(), ce =
|
|
19273
|
+
), X = ue(null), ee = ue(null), Q = wt(), ce = b.id ?? `${p}-${Q.replace(/[:]/g, "")}`, $ = `${ce}-listbox`, me = gt(() => {
|
|
19250
19274
|
const z = U.toLowerCase();
|
|
19251
19275
|
return m ? o.reduce((K, se, ve) => (se.label.toLowerCase().includes(z) && K.push(ve), K), []) : o.map((K, se) => se);
|
|
19252
19276
|
}, [m, o, U]), P = gt(
|
|
@@ -19456,7 +19480,7 @@ const yo = ({
|
|
|
19456
19480
|
"aria-expanded": F,
|
|
19457
19481
|
"aria-controls": F ? $ : void 0,
|
|
19458
19482
|
"aria-activedescendant": cn,
|
|
19459
|
-
...
|
|
19483
|
+
...b,
|
|
19460
19484
|
children: [
|
|
19461
19485
|
/* @__PURE__ */ n(
|
|
19462
19486
|
iv,
|
|
@@ -19583,7 +19607,7 @@ const tv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
19583
19607
|
&:hover {
|
|
19584
19608
|
background-color: ${d.colour.fill.inverse};
|
|
19585
19609
|
}
|
|
19586
|
-
`,
|
|
19610
|
+
`, y = k(
|
|
19587
19611
|
Mr,
|
|
19588
19612
|
p,
|
|
19589
19613
|
!!t && h,
|
|
@@ -19594,7 +19618,7 @@ const tv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
19594
19618
|
return /* @__PURE__ */ g(
|
|
19595
19619
|
"select",
|
|
19596
19620
|
{
|
|
19597
|
-
className:
|
|
19621
|
+
className: y,
|
|
19598
19622
|
"data-testid": l,
|
|
19599
19623
|
disabled: o,
|
|
19600
19624
|
...a,
|
|
@@ -19608,13 +19632,13 @@ const tv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
19608
19632
|
children: r
|
|
19609
19633
|
}
|
|
19610
19634
|
),
|
|
19611
|
-
e ? e.map((
|
|
19635
|
+
e ? e.map((b) => /* @__PURE__ */ n(
|
|
19612
19636
|
"option",
|
|
19613
19637
|
{
|
|
19614
|
-
value:
|
|
19615
|
-
children:
|
|
19638
|
+
value: b.value,
|
|
19639
|
+
children: b.label
|
|
19616
19640
|
},
|
|
19617
|
-
|
|
19641
|
+
b.value
|
|
19618
19642
|
)) : null
|
|
19619
19643
|
]
|
|
19620
19644
|
}
|
|
@@ -19655,18 +19679,18 @@ const tv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
19655
19679
|
&:hover {
|
|
19656
19680
|
background-color: ${c.colour.fill.brandSubtleHover};
|
|
19657
19681
|
}
|
|
19658
|
-
`,
|
|
19682
|
+
`, y = u`
|
|
19659
19683
|
white-space: nowrap;
|
|
19660
19684
|
text-overflow: ellipsis;
|
|
19661
|
-
`,
|
|
19685
|
+
`, b = u`
|
|
19662
19686
|
word-break: break-all;
|
|
19663
19687
|
`, w = u`
|
|
19664
19688
|
background-color: ${c.colour.fill.brandSubtleSelected};
|
|
19665
19689
|
`, x = k(
|
|
19666
19690
|
Lr,
|
|
19667
19691
|
m,
|
|
19668
|
-
!l &&
|
|
19669
|
-
l &&
|
|
19692
|
+
!l && y,
|
|
19693
|
+
l && b,
|
|
19670
19694
|
o && w,
|
|
19671
19695
|
a
|
|
19672
19696
|
);
|
|
@@ -19736,14 +19760,14 @@ const tv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
19736
19760
|
flex-shrink: 0;
|
|
19737
19761
|
margin-left: auto;
|
|
19738
19762
|
color: ${c.colour.icon.default};
|
|
19739
|
-
`, b = u`
|
|
19740
|
-
transform: rotate(180deg);
|
|
19741
19763
|
`, y = u`
|
|
19764
|
+
transform: rotate(180deg);
|
|
19765
|
+
`, b = u`
|
|
19742
19766
|
color: ${c.colour.icon.disabled};
|
|
19743
19767
|
`, w = k(
|
|
19744
19768
|
m,
|
|
19745
|
-
t &&
|
|
19746
|
-
r &&
|
|
19769
|
+
t && y,
|
|
19770
|
+
r && b
|
|
19747
19771
|
), x = u`
|
|
19748
19772
|
display: flex;
|
|
19749
19773
|
align-items: center;
|
|
@@ -19802,13 +19826,13 @@ const tv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
19802
19826
|
ariaActiveDescendant: p,
|
|
19803
19827
|
...h
|
|
19804
19828
|
}) => {
|
|
19805
|
-
const [f] = I(), m = (
|
|
19806
|
-
if (
|
|
19807
|
-
r == null || r(
|
|
19829
|
+
const [f] = I(), m = (b) => {
|
|
19830
|
+
if (b.key === "Tab") {
|
|
19831
|
+
r == null || r(b);
|
|
19808
19832
|
return;
|
|
19809
19833
|
}
|
|
19810
|
-
|
|
19811
|
-
},
|
|
19834
|
+
b.key === "Escape" || b.key === "Enter" || b.key === "ArrowUp" || b.key === "ArrowDown" || b.stopPropagation();
|
|
19835
|
+
}, y = u`
|
|
19812
19836
|
flex: 1;
|
|
19813
19837
|
border: none;
|
|
19814
19838
|
outline: none;
|
|
@@ -19827,14 +19851,14 @@ const tv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
19827
19851
|
"input",
|
|
19828
19852
|
{
|
|
19829
19853
|
ref: a,
|
|
19830
|
-
className: k(
|
|
19854
|
+
className: k(y, d),
|
|
19831
19855
|
value: e,
|
|
19832
19856
|
placeholder: l,
|
|
19833
19857
|
disabled: i,
|
|
19834
|
-
onChange: (
|
|
19858
|
+
onChange: (b) => t(b.target.value),
|
|
19835
19859
|
onBlur: o,
|
|
19836
|
-
onClick: (
|
|
19837
|
-
onKeyDown: (
|
|
19860
|
+
onClick: (b) => b.stopPropagation(),
|
|
19861
|
+
onKeyDown: (b) => m(b),
|
|
19838
19862
|
"aria-label": "Filter options",
|
|
19839
19863
|
"aria-autocomplete": "list",
|
|
19840
19864
|
role: "searchbox",
|
|
@@ -20046,11 +20070,11 @@ const tv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
20046
20070
|
font-family: ${h.font.family.primary};
|
|
20047
20071
|
font-weight: 300;
|
|
20048
20072
|
padding: ${h.padding.p40} 0 ${h.padding.p40};
|
|
20049
|
-
`, m = k(Fr, f, t),
|
|
20073
|
+
`, m = k(Fr, f, t), y = u`
|
|
20050
20074
|
max-width: 1080px;
|
|
20051
20075
|
margin: 0 auto;
|
|
20052
20076
|
padding: 0 ${h.padding.p24};
|
|
20053
|
-
`,
|
|
20077
|
+
`, b = u`
|
|
20054
20078
|
@media screen and (min-width: ${h.breakpoints.tablet}px) {
|
|
20055
20079
|
margin-right: 10%;
|
|
20056
20080
|
display: flex;
|
|
@@ -20152,8 +20176,8 @@ const tv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
20152
20176
|
className: m,
|
|
20153
20177
|
"data-testid": e,
|
|
20154
20178
|
...c,
|
|
20155
|
-
children: /* @__PURE__ */ g("div", { className:
|
|
20156
|
-
/* @__PURE__ */ n("nav", { className:
|
|
20179
|
+
children: /* @__PURE__ */ g("div", { className: y, children: [
|
|
20180
|
+
/* @__PURE__ */ n("nav", { className: b, children: s }),
|
|
20157
20181
|
/* @__PURE__ */ g("div", { className: w, children: [
|
|
20158
20182
|
/* @__PURE__ */ n(go, { className: x }),
|
|
20159
20183
|
/* @__PURE__ */ g("div", { className: C, children: [
|
|
@@ -20462,7 +20486,7 @@ const Br = "ucl-uikit-footer__column", gv = ({
|
|
|
20462
20486
|
line-height: ${a.typography.body.md.lineHeight}%; // todo: change foundations lib to use non-percent number
|
|
20463
20487
|
`, m = u`
|
|
20464
20488
|
margin-top: ${a.margin.m4};
|
|
20465
|
-
`,
|
|
20489
|
+
`, y = u`
|
|
20466
20490
|
color: ${a.colour.text.inverse};
|
|
20467
20491
|
opacity: 0.6; // todo: use alpha white colour from theme
|
|
20468
20492
|
font-family: ${a.typography.body.md.fontFamily};
|
|
@@ -20482,7 +20506,7 @@ const Br = "ucl-uikit-footer__column", gv = ({
|
|
|
20482
20506
|
&:hover {
|
|
20483
20507
|
text-decoration: underline;
|
|
20484
20508
|
}
|
|
20485
|
-
`,
|
|
20509
|
+
`, b = u`
|
|
20486
20510
|
margin-top: ${a.margin.m24};
|
|
20487
20511
|
display: flex;
|
|
20488
20512
|
flex-wrap: wrap;
|
|
@@ -20513,13 +20537,13 @@ const Br = "ucl-uikit-footer__column", gv = ({
|
|
|
20513
20537
|
/* @__PURE__ */ n("div", { className: m, children: /* @__PURE__ */ n(
|
|
20514
20538
|
"a",
|
|
20515
20539
|
{
|
|
20516
|
-
className:
|
|
20540
|
+
className: y,
|
|
20517
20541
|
href: "tel:+4402076792000",
|
|
20518
20542
|
children: "Tel: +44 (0) 20 7679 2000"
|
|
20519
20543
|
}
|
|
20520
20544
|
) })
|
|
20521
20545
|
] }),
|
|
20522
|
-
o && /* @__PURE__ */ g("div", { className:
|
|
20546
|
+
o && /* @__PURE__ */ g("div", { className: b, children: [
|
|
20523
20547
|
/* @__PURE__ */ n($e, { socialNetwork: "instagram" }),
|
|
20524
20548
|
/* @__PURE__ */ n($e, { socialNetwork: "linkedin" }),
|
|
20525
20549
|
/* @__PURE__ */ n($e, { socialNetwork: "youtube" }),
|
|
@@ -20556,7 +20580,7 @@ const Br = "ucl-uikit-footer__column", gv = ({
|
|
|
20556
20580
|
@media screen and (min-width: ${h.breakpoints.desktopLarge}px) {
|
|
20557
20581
|
display: flex;
|
|
20558
20582
|
}
|
|
20559
|
-
`, m = k(Tr, f, s),
|
|
20583
|
+
`, m = k(Tr, f, s), y = u`
|
|
20560
20584
|
color: ${h.colour.text.brandInverseSecondary};
|
|
20561
20585
|
font-family: ${h.typography.body.md.fontFamily};
|
|
20562
20586
|
font-size: 14px;
|
|
@@ -20568,7 +20592,7 @@ const Br = "ucl-uikit-footer__column", gv = ({
|
|
|
20568
20592
|
@media screen and (min-width: ${h.breakpoints.desktop}px) {
|
|
20569
20593
|
gap: 32px;
|
|
20570
20594
|
}
|
|
20571
|
-
`,
|
|
20595
|
+
`, b = u`
|
|
20572
20596
|
text-decoration: none;
|
|
20573
20597
|
color: inherit;
|
|
20574
20598
|
transition: color 0.2s ease-out;
|
|
@@ -20601,11 +20625,11 @@ const Br = "ucl-uikit-footer__column", gv = ({
|
|
|
20601
20625
|
"data-testid": d,
|
|
20602
20626
|
...c,
|
|
20603
20627
|
children: [
|
|
20604
|
-
/* @__PURE__ */ g("div", { className:
|
|
20628
|
+
/* @__PURE__ */ g("div", { className: y, children: [
|
|
20605
20629
|
/* @__PURE__ */ n(
|
|
20606
20630
|
"a",
|
|
20607
20631
|
{
|
|
20608
|
-
className:
|
|
20632
|
+
className: b,
|
|
20609
20633
|
href: e,
|
|
20610
20634
|
children: "Disclaimer"
|
|
20611
20635
|
}
|
|
@@ -20613,7 +20637,7 @@ const Br = "ucl-uikit-footer__column", gv = ({
|
|
|
20613
20637
|
/* @__PURE__ */ n(
|
|
20614
20638
|
"a",
|
|
20615
20639
|
{
|
|
20616
|
-
className:
|
|
20640
|
+
className: b,
|
|
20617
20641
|
href: t,
|
|
20618
20642
|
children: "Freedom of Information"
|
|
20619
20643
|
}
|
|
@@ -20621,7 +20645,7 @@ const Br = "ucl-uikit-footer__column", gv = ({
|
|
|
20621
20645
|
/* @__PURE__ */ n(
|
|
20622
20646
|
"a",
|
|
20623
20647
|
{
|
|
20624
|
-
className:
|
|
20648
|
+
className: b,
|
|
20625
20649
|
href: o,
|
|
20626
20650
|
children: "Accessibility"
|
|
20627
20651
|
}
|
|
@@ -20629,7 +20653,7 @@ const Br = "ucl-uikit-footer__column", gv = ({
|
|
|
20629
20653
|
/* @__PURE__ */ n(
|
|
20630
20654
|
"a",
|
|
20631
20655
|
{
|
|
20632
|
-
className:
|
|
20656
|
+
className: b,
|
|
20633
20657
|
href: r,
|
|
20634
20658
|
children: "Cookies"
|
|
20635
20659
|
}
|
|
@@ -20637,7 +20661,7 @@ const Br = "ucl-uikit-footer__column", gv = ({
|
|
|
20637
20661
|
/* @__PURE__ */ n(
|
|
20638
20662
|
"a",
|
|
20639
20663
|
{
|
|
20640
|
-
className:
|
|
20664
|
+
className: b,
|
|
20641
20665
|
href: l,
|
|
20642
20666
|
children: "Privacy"
|
|
20643
20667
|
}
|
|
@@ -20645,7 +20669,7 @@ const Br = "ucl-uikit-footer__column", gv = ({
|
|
|
20645
20669
|
/* @__PURE__ */ n(
|
|
20646
20670
|
"a",
|
|
20647
20671
|
{
|
|
20648
|
-
className:
|
|
20672
|
+
className: b,
|
|
20649
20673
|
href: i,
|
|
20650
20674
|
children: "Slavery statement"
|
|
20651
20675
|
}
|
|
@@ -20653,7 +20677,7 @@ const Br = "ucl-uikit-footer__column", gv = ({
|
|
|
20653
20677
|
a && /* @__PURE__ */ n(
|
|
20654
20678
|
"a",
|
|
20655
20679
|
{
|
|
20656
|
-
className:
|
|
20680
|
+
className: b,
|
|
20657
20681
|
href: a,
|
|
20658
20682
|
children: "Login"
|
|
20659
20683
|
}
|
|
@@ -20771,21 +20795,21 @@ const Br = "ucl-uikit-footer__column", gv = ({
|
|
|
20771
20795
|
children: h,
|
|
20772
20796
|
...f
|
|
20773
20797
|
}) => {
|
|
20774
|
-
const m = !!h,
|
|
20775
|
-
background-color: ${
|
|
20776
|
-
color: ${
|
|
20777
|
-
padding: ${
|
|
20798
|
+
const m = !!h, y = !m, [b] = I(), w = u`
|
|
20799
|
+
background-color: ${b.colour.surface.inverseBrandPrimary};
|
|
20800
|
+
color: ${b.colour.text.brandInverse};
|
|
20801
|
+
padding: ${b.padding.p40} ${b.padding.p16};
|
|
20778
20802
|
box-sizing: border-box;
|
|
20779
20803
|
|
|
20780
|
-
@media screen and (min-width: ${
|
|
20781
|
-
padding: ${
|
|
20804
|
+
@media screen and (min-width: ${b.breakpoints.tablet}px) {
|
|
20805
|
+
padding: ${b.padding.p64} ${b.padding.p32};
|
|
20782
20806
|
}
|
|
20783
20807
|
|
|
20784
|
-
@media screen and (min-width: ${
|
|
20785
|
-
padding: ${
|
|
20808
|
+
@media screen and (min-width: ${b.breakpoints.desktop}px) {
|
|
20809
|
+
padding: ${b.padding.p64} ${b.padding.p64} ${b.padding.p48};
|
|
20786
20810
|
}
|
|
20787
20811
|
`, x = k(Or, w, t), C = u`
|
|
20788
|
-
@media screen and (min-width: ${
|
|
20812
|
+
@media screen and (min-width: ${b.breakpoints.desktopLarge}px) {
|
|
20789
20813
|
display: flex;
|
|
20790
20814
|
}
|
|
20791
20815
|
`;
|
|
@@ -20801,13 +20825,13 @@ const Br = "ucl-uikit-footer__column", gv = ({
|
|
|
20801
20825
|
/* @__PURE__ */ n(
|
|
20802
20826
|
wv,
|
|
20803
20827
|
{
|
|
20804
|
-
compact:
|
|
20828
|
+
compact: y,
|
|
20805
20829
|
addressFormat: o,
|
|
20806
20830
|
showSocialLinks: r
|
|
20807
20831
|
}
|
|
20808
20832
|
)
|
|
20809
20833
|
] }),
|
|
20810
|
-
/* @__PURE__ */ n(Sv, { compact:
|
|
20834
|
+
/* @__PURE__ */ n(Sv, { compact: y }),
|
|
20811
20835
|
/* @__PURE__ */ n(
|
|
20812
20836
|
xv,
|
|
20813
20837
|
{
|
|
@@ -20897,13 +20921,13 @@ const Zr = "ucl-divider", Lv = ({ testId: e = Zr, className: t, ...o }) => {
|
|
|
20897
20921
|
@media (min-width: ${f.breakpoints.desktop}px) {
|
|
20898
20922
|
height: ${Hv}px;
|
|
20899
20923
|
}
|
|
20900
|
-
`,
|
|
20924
|
+
`, y = u`
|
|
20901
20925
|
position: fixed;
|
|
20902
20926
|
left: 0;
|
|
20903
20927
|
top: 0;
|
|
20904
20928
|
width: 100%;
|
|
20905
20929
|
z-index: ${Ev};
|
|
20906
|
-
`,
|
|
20930
|
+
`, b = k(Pr, m, t && y, c), w = u`
|
|
20907
20931
|
position: absolute;
|
|
20908
20932
|
left: 16px;
|
|
20909
20933
|
bottom: -0.5px;
|
|
@@ -20957,7 +20981,7 @@ const Zr = "ucl-divider", Lv = ({ testId: e = Zr, className: t, ...o }) => {
|
|
|
20957
20981
|
return /* @__PURE__ */ g(
|
|
20958
20982
|
"header",
|
|
20959
20983
|
{
|
|
20960
|
-
className:
|
|
20984
|
+
className: b,
|
|
20961
20985
|
"data-testid": s,
|
|
20962
20986
|
...h,
|
|
20963
20987
|
children: [
|
|
@@ -21274,7 +21298,7 @@ const Kr = "ucl-uikit-header__bottom--breadcrumbs", Uv = ({
|
|
|
21274
21298
|
font-size: ${s.font.size.f16};
|
|
21275
21299
|
font-weight: 400;
|
|
21276
21300
|
line-height: 16px;
|
|
21277
|
-
`,
|
|
21301
|
+
`, y = u`
|
|
21278
21302
|
margin-top: -4px;
|
|
21279
21303
|
margin-bottom: -4px;
|
|
21280
21304
|
margin-right: -${s.padding.p8}; // subtract padding-right
|
|
@@ -21289,7 +21313,7 @@ const Kr = "ucl-uikit-header__bottom--breadcrumbs", Uv = ({
|
|
|
21289
21313
|
&:hover {
|
|
21290
21314
|
background-color: ${s.color.neutral.grey5};
|
|
21291
21315
|
}
|
|
21292
|
-
`,
|
|
21316
|
+
`, b = u`
|
|
21293
21317
|
margin-right: ${s.margin.m16};
|
|
21294
21318
|
width: 40px;
|
|
21295
21319
|
height: 40px;
|
|
@@ -21319,8 +21343,8 @@ const Kr = "ucl-uikit-header__bottom--breadcrumbs", Uv = ({
|
|
|
21319
21343
|
/* @__PURE__ */ n("h1", { className: f, children: e }),
|
|
21320
21344
|
/* @__PURE__ */ n("h2", { className: m, children: t })
|
|
21321
21345
|
] }),
|
|
21322
|
-
/* @__PURE__ */ g("div", { className:
|
|
21323
|
-
/* @__PURE__ */ n("div", { className:
|
|
21346
|
+
/* @__PURE__ */ g("div", { className: y, children: [
|
|
21347
|
+
/* @__PURE__ */ n("div", { className: b, children: /* @__PURE__ */ n(
|
|
21324
21348
|
"img",
|
|
21325
21349
|
{
|
|
21326
21350
|
className: w,
|
|
@@ -21420,13 +21444,13 @@ const Kr = "ucl-uikit-header__bottom--breadcrumbs", Uv = ({
|
|
|
21420
21444
|
children: f,
|
|
21421
21445
|
...m
|
|
21422
21446
|
}) => {
|
|
21423
|
-
const [
|
|
21447
|
+
const [y] = I(), b = [], w = [];
|
|
21424
21448
|
at.Children.forEach(f, (T) => {
|
|
21425
|
-
at.isValidElement(T) && T.type === Vi ?
|
|
21449
|
+
at.isValidElement(T) && T.type === Vi ? b.push(T) : w.push(T);
|
|
21426
21450
|
});
|
|
21427
21451
|
const x = u`
|
|
21428
|
-
background-color: ${
|
|
21429
|
-
font-family: ${
|
|
21452
|
+
background-color: ${y.color.neutral.white};
|
|
21453
|
+
font-family: ${y.font.family.primary};
|
|
21430
21454
|
font-synthesis: none;
|
|
21431
21455
|
text-rendering: optimizeLegibility;
|
|
21432
21456
|
-webkit-font-smoothing: antialiased;
|
|
@@ -21449,8 +21473,8 @@ const Kr = "ucl-uikit-header__bottom--breadcrumbs", Uv = ({
|
|
|
21449
21473
|
), v = u`
|
|
21450
21474
|
position: relative;
|
|
21451
21475
|
height: ${el}px;
|
|
21452
|
-
background-color: ${
|
|
21453
|
-
color: ${
|
|
21476
|
+
background-color: ${y.color.neutral.grey90};
|
|
21477
|
+
color: ${y.color.text.inverted};
|
|
21454
21478
|
display: flex;
|
|
21455
21479
|
justify-content: center;
|
|
21456
21480
|
align-items: center;
|
|
@@ -21462,17 +21486,17 @@ const Kr = "ucl-uikit-header__bottom--breadcrumbs", Uv = ({
|
|
|
21462
21486
|
`, H = u`
|
|
21463
21487
|
display: block;
|
|
21464
21488
|
margin: 0;
|
|
21465
|
-
font-size: ${
|
|
21489
|
+
font-size: ${y.font.size.f18};
|
|
21466
21490
|
font-weight: 700;
|
|
21467
21491
|
text-align: center;
|
|
21468
21492
|
`, F = u`
|
|
21469
21493
|
position: absolute;
|
|
21470
21494
|
right: 60px;
|
|
21471
21495
|
height: 40px;
|
|
21472
|
-
padding: 0 ${
|
|
21473
|
-
background-color: ${
|
|
21474
|
-
color: ${
|
|
21475
|
-
font-size: ${
|
|
21496
|
+
padding: 0 ${y.padding.p16};
|
|
21497
|
+
background-color: ${y.color.neutral.white};
|
|
21498
|
+
color: ${y.color.text.primary};
|
|
21499
|
+
font-size: ${y.font.size.f16};
|
|
21476
21500
|
font-weight: 700;
|
|
21477
21501
|
border: none;
|
|
21478
21502
|
display: flex;
|
|
@@ -21483,8 +21507,8 @@ const Kr = "ucl-uikit-header__bottom--breadcrumbs", Uv = ({
|
|
|
21483
21507
|
color 0.15s ease-out;
|
|
21484
21508
|
|
|
21485
21509
|
&:hover {
|
|
21486
|
-
color: ${
|
|
21487
|
-
background-color: ${
|
|
21510
|
+
color: ${y.color.text.primary};
|
|
21511
|
+
background-color: ${y.color.neutral.grey5};
|
|
21488
21512
|
}
|
|
21489
21513
|
`;
|
|
21490
21514
|
return /* @__PURE__ */ g(
|
|
@@ -21497,7 +21521,7 @@ const Kr = "ucl-uikit-header__bottom--breadcrumbs", Uv = ({
|
|
|
21497
21521
|
/* @__PURE__ */ g("div", { className: v, children: [
|
|
21498
21522
|
/* @__PURE__ */ n(go, { className: E }),
|
|
21499
21523
|
t && /* @__PURE__ */ n("h1", { className: H, children: t }),
|
|
21500
|
-
d && /* @__PURE__ */ n("div", { className: F, children:
|
|
21524
|
+
d && /* @__PURE__ */ n("div", { className: F, children: b })
|
|
21501
21525
|
] }),
|
|
21502
21526
|
e === "breadcrumbs" && /* @__PURE__ */ n(jv, { children: w }),
|
|
21503
21527
|
e === "avatar" && /* @__PURE__ */ n(
|
|
@@ -21642,12 +21666,12 @@ const tl = "ucl-uikit-table__head", e6 = ({ className: e, children: t, ...o }) =
|
|
|
21642
21666
|
checkboxAriaLabel: p = "Select all rows",
|
|
21643
21667
|
...h
|
|
21644
21668
|
}) => {
|
|
21645
|
-
const [f] = I(), m = e !== "checkbox" && r && t,
|
|
21669
|
+
const [f] = I(), m = e !== "checkbox" && r && t, y = (A) => {
|
|
21646
21670
|
r && !t ? console.warn(`${Ho}: onSortChange requires an accessor to be defined.`) : m && (o === "asc" ? r(t, "desc", A) : o === "desc" ? r(t, null, A) : r(t, "asc", A));
|
|
21647
|
-
},
|
|
21648
|
-
|
|
21671
|
+
}, b = (A) => {
|
|
21672
|
+
y(A);
|
|
21649
21673
|
}, w = (A) => {
|
|
21650
|
-
(A.key === "Enter" || A.key === " ") && (A.preventDefault(),
|
|
21674
|
+
(A.key === "Enter" || A.key === " ") && (A.preventDefault(), y(A));
|
|
21651
21675
|
}, x = (A) => {
|
|
21652
21676
|
e === "checkbox" && a && a(A.target.checked, A);
|
|
21653
21677
|
}, C = u`
|
|
@@ -21662,7 +21686,7 @@ const tl = "ucl-uikit-table__head", e6 = ({ className: e, children: t, ...o }) =
|
|
|
21662
21686
|
return /* @__PURE__ */ n(
|
|
21663
21687
|
"th",
|
|
21664
21688
|
{
|
|
21665
|
-
onClick:
|
|
21689
|
+
onClick: b,
|
|
21666
21690
|
onKeyDown: w,
|
|
21667
21691
|
scope: "col",
|
|
21668
21692
|
className: M,
|
|
@@ -21816,17 +21840,17 @@ const tl = "ucl-uikit-table__head", e6 = ({ className: e, children: t, ...o }) =
|
|
|
21816
21840
|
e === "checkbox" && o && o(w.target.checked, w);
|
|
21817
21841
|
}, m = (w) => {
|
|
21818
21842
|
e === "button" && l && l(w);
|
|
21819
|
-
},
|
|
21843
|
+
}, y = u`
|
|
21820
21844
|
box-sizing: border-box;
|
|
21821
21845
|
padding: 0 ${h.padding.p16};
|
|
21822
21846
|
height: 40px;
|
|
21823
21847
|
font-family: ${h.font.family.primary};
|
|
21824
21848
|
font-size: ${h.font.size.f14};
|
|
21825
|
-
`,
|
|
21849
|
+
`, b = k(y, a, Wo);
|
|
21826
21850
|
return /* @__PURE__ */ n(
|
|
21827
21851
|
"td",
|
|
21828
21852
|
{
|
|
21829
|
-
className:
|
|
21853
|
+
className: b,
|
|
21830
21854
|
"data-testid": i,
|
|
21831
21855
|
...p,
|
|
21832
21856
|
children: /* @__PURE__ */ n(
|
|
@@ -21948,7 +21972,7 @@ const il = "ucl-uikit-alert__message", c6 = ({
|
|
|
21948
21972
|
e === "warning" && h,
|
|
21949
21973
|
e === "error" && f,
|
|
21950
21974
|
r
|
|
21951
|
-
),
|
|
21975
|
+
), y = k(
|
|
21952
21976
|
e === "info" && u`
|
|
21953
21977
|
color: ${a.colour.icon.brand};
|
|
21954
21978
|
`,
|
|
@@ -21961,7 +21985,7 @@ const il = "ucl-uikit-alert__message", c6 = ({
|
|
|
21961
21985
|
e === "error" && u`
|
|
21962
21986
|
color: ${a.colour.icon.critical};
|
|
21963
21987
|
`
|
|
21964
|
-
),
|
|
21988
|
+
), b = {
|
|
21965
21989
|
info: D.Info,
|
|
21966
21990
|
success: D.CheckCircle,
|
|
21967
21991
|
warning: D.AlertTriangle,
|
|
@@ -21976,9 +22000,9 @@ const il = "ucl-uikit-alert__message", c6 = ({
|
|
|
21976
22000
|
...l,
|
|
21977
22001
|
children: [
|
|
21978
22002
|
/* @__PURE__ */ n(
|
|
21979
|
-
|
|
22003
|
+
b,
|
|
21980
22004
|
{
|
|
21981
|
-
className:
|
|
22005
|
+
className: y,
|
|
21982
22006
|
"aria-label": i
|
|
21983
22007
|
}
|
|
21984
22008
|
),
|
|
@@ -22027,7 +22051,7 @@ const Zi = Qe(void 0), p6 = () => {
|
|
|
22027
22051
|
&:hover {
|
|
22028
22052
|
text-decoration: underline;
|
|
22029
22053
|
}
|
|
22030
|
-
`,
|
|
22054
|
+
`, y = u`
|
|
22031
22055
|
border-bottom: 4px solid ${h || d.colour.border.brand};
|
|
22032
22056
|
color: ${d.colour.text.default};
|
|
22033
22057
|
margin-bottom: -1px;
|
|
@@ -22036,12 +22060,12 @@ const Zi = Qe(void 0), p6 = () => {
|
|
|
22036
22060
|
&:hover {
|
|
22037
22061
|
text-decoration: none;
|
|
22038
22062
|
}
|
|
22039
|
-
`,
|
|
22063
|
+
`, b = k(sl, m, f && y, t);
|
|
22040
22064
|
return /* @__PURE__ */ g(
|
|
22041
22065
|
"button",
|
|
22042
22066
|
{
|
|
22043
22067
|
ref: i,
|
|
22044
|
-
className:
|
|
22068
|
+
className: b,
|
|
22045
22069
|
"data-testid": e,
|
|
22046
22070
|
role: "tab",
|
|
22047
22071
|
"aria-selected": f,
|
|
@@ -22145,9 +22169,9 @@ const dl = "ucl-uikit-accordion__heading", ul = "ucl-uikit-accordion__heading__i
|
|
|
22145
22169
|
transform: rotate(${i ? "180deg" : "0deg"});
|
|
22146
22170
|
transition: transform 0.15s ease;
|
|
22147
22171
|
color: ${l.colour.icon.brand};
|
|
22148
|
-
`,
|
|
22172
|
+
`, y = u`
|
|
22149
22173
|
color: ${l.colour.icon.disabled};
|
|
22150
|
-
`,
|
|
22174
|
+
`, b = k(ul, m, d && y);
|
|
22151
22175
|
return /* @__PURE__ */ g(
|
|
22152
22176
|
t,
|
|
22153
22177
|
{
|
|
@@ -22164,7 +22188,7 @@ const dl = "ucl-uikit-accordion__heading", ul = "ucl-uikit-accordion__heading__i
|
|
|
22164
22188
|
D.ChevronDown,
|
|
22165
22189
|
{
|
|
22166
22190
|
size: s === "medium" ? 32 : 24,
|
|
22167
|
-
className:
|
|
22191
|
+
className: b
|
|
22168
22192
|
}
|
|
22169
22193
|
)
|
|
22170
22194
|
]
|
|
@@ -22220,7 +22244,7 @@ const dl = "ucl-uikit-accordion__heading", ul = "ucl-uikit-accordion__heading__i
|
|
|
22220
22244
|
testId: i = fl
|
|
22221
22245
|
}) => {
|
|
22222
22246
|
const [a, d] = be(o), [s] = I(), c = () => {
|
|
22223
|
-
t || d((
|
|
22247
|
+
t || d((b) => !b);
|
|
22224
22248
|
}, p = u`
|
|
22225
22249
|
width: 660px;
|
|
22226
22250
|
min-width: 288px;
|
|
@@ -22241,7 +22265,7 @@ const dl = "ucl-uikit-accordion__heading", ul = "ucl-uikit-accordion__heading__i
|
|
|
22241
22265
|
pointer-events: none;
|
|
22242
22266
|
background-color: ${s.colour.fill.inverse};
|
|
22243
22267
|
color: ${s.colour.text.disabled};
|
|
22244
|
-
`,
|
|
22268
|
+
`, y = k(
|
|
22245
22269
|
fl,
|
|
22246
22270
|
p,
|
|
22247
22271
|
e === "small" && h,
|
|
@@ -22261,7 +22285,7 @@ const dl = "ucl-uikit-accordion__heading", ul = "ucl-uikit-accordion__heading__i
|
|
|
22261
22285
|
children: /* @__PURE__ */ n(
|
|
22262
22286
|
"div",
|
|
22263
22287
|
{
|
|
22264
|
-
className:
|
|
22288
|
+
className: y,
|
|
22265
22289
|
"aria-disabled": t,
|
|
22266
22290
|
"data-testid": i,
|
|
22267
22291
|
children: r
|
|
@@ -22317,7 +22341,7 @@ const x6 = (e, t, o) => {
|
|
|
22317
22341
|
return Array.from(c);
|
|
22318
22342
|
}, [t]), s = Te(
|
|
22319
22343
|
(c) => {
|
|
22320
|
-
var
|
|
22344
|
+
var y, b;
|
|
22321
22345
|
if (!e || c.key !== "Tab") return;
|
|
22322
22346
|
const p = d();
|
|
22323
22347
|
if (p.length === 0) {
|
|
@@ -22325,7 +22349,7 @@ const x6 = (e, t, o) => {
|
|
|
22325
22349
|
return;
|
|
22326
22350
|
}
|
|
22327
22351
|
const h = p[0], f = p[p.length - 1], m = document.activeElement;
|
|
22328
|
-
c.shiftKey ? (m === h || !((
|
|
22352
|
+
c.shiftKey ? (m === h || !((y = t.current) != null && y.contains(m))) && (c.preventDefault(), f.focus()) : (m === f || !((b = t.current) != null && b.contains(m))) && (c.preventDefault(), h.focus());
|
|
22329
22353
|
},
|
|
22330
22354
|
[e, d, t]
|
|
22331
22355
|
);
|
|
@@ -22378,7 +22402,7 @@ const x6 = (e, t, o) => {
|
|
|
22378
22402
|
h,
|
|
22379
22403
|
p,
|
|
22380
22404
|
l ? e : 5
|
|
22381
|
-
), m = u``,
|
|
22405
|
+
), m = u``, y = k(pl, m, o), b = u`
|
|
22382
22406
|
margin: 0;
|
|
22383
22407
|
padding: 0;
|
|
22384
22408
|
display: flex;
|
|
@@ -22445,10 +22469,10 @@ const x6 = (e, t, o) => {
|
|
|
22445
22469
|
return /* @__PURE__ */ n(
|
|
22446
22470
|
"nav",
|
|
22447
22471
|
{
|
|
22448
|
-
className:
|
|
22472
|
+
className: y,
|
|
22449
22473
|
"aria-label": `Pagination, ${p} pages total`,
|
|
22450
22474
|
"data-testid": t,
|
|
22451
|
-
children: /* @__PURE__ */ g("ul", { className:
|
|
22475
|
+
children: /* @__PURE__ */ g("ul", { className: b, children: [
|
|
22452
22476
|
/* @__PURE__ */ n("li", { children: /* @__PURE__ */ n(
|
|
22453
22477
|
Pe,
|
|
22454
22478
|
{
|
|
@@ -22511,10 +22535,10 @@ const x6 = (e, t, o) => {
|
|
|
22511
22535
|
const [i] = I(), a = Ne(ln);
|
|
22512
22536
|
if (!a)
|
|
22513
22537
|
return null;
|
|
22514
|
-
const { offset: d, limit: s, total: c } = a, p = Math.ceil(c / s), h = Math.floor(d / s) + 1, f = d + 1, m = Math.min(d + s, c),
|
|
22538
|
+
const { offset: d, limit: s, total: c } = a, p = Math.ceil(c / s), h = Math.floor(d / s) + 1, f = d + 1, m = Math.min(d + s, c), y = {
|
|
22515
22539
|
pages: `Page ${h} of ${p}`,
|
|
22516
22540
|
items: `${f}-${m} of ${c}${t ? ` ${t}` : ""}`
|
|
22517
|
-
}[e],
|
|
22541
|
+
}[e], b = u`
|
|
22518
22542
|
margin: ${i.margin.m16} 0;
|
|
22519
22543
|
text-align: center;
|
|
22520
22544
|
color: ${i.colour.text.secondary};
|
|
@@ -22524,16 +22548,16 @@ const x6 = (e, t, o) => {
|
|
|
22524
22548
|
@media (min-width: ${i.breakpoints.tablet}px) {
|
|
22525
22549
|
margin: ${i.margin.m24} 0;
|
|
22526
22550
|
}
|
|
22527
|
-
`, w = k(M6,
|
|
22551
|
+
`, w = k(M6, b, r);
|
|
22528
22552
|
return /* @__PURE__ */ n(
|
|
22529
22553
|
"div",
|
|
22530
22554
|
{
|
|
22531
22555
|
className: w,
|
|
22532
22556
|
"data-testid": o,
|
|
22533
22557
|
"aria-live": "polite",
|
|
22534
|
-
"aria-label": `Pagination info: ${
|
|
22558
|
+
"aria-label": `Pagination info: ${y}`,
|
|
22535
22559
|
...l,
|
|
22536
|
-
children:
|
|
22560
|
+
children: y
|
|
22537
22561
|
}
|
|
22538
22562
|
);
|
|
22539
22563
|
}, I6 = N(L6), H6 = "ucl-uikit-pagination", ln = Qe(void 0), W6 = ({
|
|
@@ -22653,17 +22677,17 @@ const gl = "ucl-uikit-dialog__header", E6 = ({
|
|
|
22653
22677
|
display: flex;
|
|
22654
22678
|
align-items: center;
|
|
22655
22679
|
margin: ${f.margin.m24} ${f.margin.m32} ${f.margin.m32};
|
|
22656
|
-
`, b = u`
|
|
22657
|
-
justify-content: flex-end;
|
|
22658
22680
|
`, y = u`
|
|
22681
|
+
justify-content: flex-end;
|
|
22682
|
+
`, b = u`
|
|
22659
22683
|
justify-content: flex-start;
|
|
22660
22684
|
`, w = u`
|
|
22661
22685
|
justify-content: space-between;
|
|
22662
22686
|
`, x = k(
|
|
22663
22687
|
z6,
|
|
22664
22688
|
m,
|
|
22665
|
-
d &&
|
|
22666
|
-
s &&
|
|
22689
|
+
d && y,
|
|
22690
|
+
s && b,
|
|
22667
22691
|
c && w,
|
|
22668
22692
|
i
|
|
22669
22693
|
);
|
|
@@ -22744,8 +22768,8 @@ const bl = "ucl-uikit-base-dialog", T6 = 495, R6 = 495, V6 = 740, O6 = ({
|
|
|
22744
22768
|
disableFocusTrap: h = !1,
|
|
22745
22769
|
restoreFocus: f = !0,
|
|
22746
22770
|
skipCloseOnInitialFocus: m = !1,
|
|
22747
|
-
testId:
|
|
22748
|
-
...
|
|
22771
|
+
testId: y = bl,
|
|
22772
|
+
...b
|
|
22749
22773
|
}) => {
|
|
22750
22774
|
const w = {
|
|
22751
22775
|
small: T6,
|
|
@@ -22826,13 +22850,13 @@ const bl = "ucl-uikit-base-dialog", T6 = 495, R6 = 495, V6 = 740, O6 = ({
|
|
|
22826
22850
|
{
|
|
22827
22851
|
ref: C,
|
|
22828
22852
|
className: G,
|
|
22829
|
-
"data-testid":
|
|
22853
|
+
"data-testid": y,
|
|
22830
22854
|
onClick: F,
|
|
22831
22855
|
onClose: T,
|
|
22832
22856
|
"aria-modal": o ? "true" : "false",
|
|
22833
22857
|
"aria-labelledby": v,
|
|
22834
22858
|
"aria-describedby": E,
|
|
22835
|
-
...
|
|
22859
|
+
...b,
|
|
22836
22860
|
children: s
|
|
22837
22861
|
}
|
|
22838
22862
|
) : null;
|
|
@@ -22888,7 +22912,7 @@ const bl = "ucl-uikit-base-dialog", T6 = 495, R6 = 495, V6 = 740, O6 = ({
|
|
|
22888
22912
|
className: f
|
|
22889
22913
|
}
|
|
22890
22914
|
)
|
|
22891
|
-
}[e],
|
|
22915
|
+
}[e], y = u``, b = k(vl, y, a), w = u`
|
|
22892
22916
|
text-align: center;
|
|
22893
22917
|
`, x = u`
|
|
22894
22918
|
margin-left: ${c.margin.m32};
|
|
@@ -22903,7 +22927,7 @@ const bl = "ucl-uikit-base-dialog", T6 = 495, R6 = 495, V6 = 740, O6 = ({
|
|
|
22903
22927
|
vt,
|
|
22904
22928
|
{
|
|
22905
22929
|
testId: i,
|
|
22906
|
-
className:
|
|
22930
|
+
className: b,
|
|
22907
22931
|
...s,
|
|
22908
22932
|
children: [
|
|
22909
22933
|
/* @__PURE__ */ n(
|
|
@@ -22954,11 +22978,11 @@ const bl = "ucl-uikit-base-dialog", T6 = 495, R6 = 495, V6 = 740, O6 = ({
|
|
|
22954
22978
|
background-color 0.15s ease-out,
|
|
22955
22979
|
border-color 0.15s ease-out;
|
|
22956
22980
|
cursor: pointer;
|
|
22957
|
-
`,
|
|
22981
|
+
`, y = u`
|
|
22958
22982
|
&:focus-within {
|
|
22959
22983
|
box-shadow: ${d.boxShadow.focus};
|
|
22960
22984
|
}
|
|
22961
|
-
`,
|
|
22985
|
+
`, b = u`
|
|
22962
22986
|
background-color: ${d.colour.icon.brand};
|
|
22963
22987
|
border-color: ${d.colour.icon.brand};
|
|
22964
22988
|
color: ${d.colour.icon.inverse};
|
|
@@ -22973,8 +22997,8 @@ const bl = "ucl-uikit-base-dialog", T6 = 495, R6 = 495, V6 = 740, O6 = ({
|
|
|
22973
22997
|
wl,
|
|
22974
22998
|
m,
|
|
22975
22999
|
ke(i, d),
|
|
22976
|
-
!o &&
|
|
22977
|
-
h &&
|
|
23000
|
+
!o && y,
|
|
23001
|
+
h && b,
|
|
22978
23002
|
!h && w,
|
|
22979
23003
|
o && x,
|
|
22980
23004
|
l
|
|
@@ -23034,19 +23058,19 @@ const bl = "ucl-uikit-base-dialog", T6 = 495, R6 = 495, V6 = 740, O6 = ({
|
|
|
23034
23058
|
className: h,
|
|
23035
23059
|
children: f,
|
|
23036
23060
|
...m
|
|
23037
|
-
},
|
|
23038
|
-
const [
|
|
23061
|
+
}, y) => {
|
|
23062
|
+
const [b] = I(), w = wt();
|
|
23039
23063
|
e = e ?? w;
|
|
23040
23064
|
const x = u`
|
|
23041
|
-
margin-top: ${
|
|
23042
|
-
margin-bottom: ${
|
|
23065
|
+
margin-top: ${b.margin.m16};
|
|
23066
|
+
margin-bottom: ${b.margin.m16};
|
|
23043
23067
|
display: flex;
|
|
23044
23068
|
align-items: center;
|
|
23045
|
-
gap: ${
|
|
23069
|
+
gap: ${b.m16};
|
|
23046
23070
|
width: fit-content;
|
|
23047
23071
|
`, C = u`
|
|
23048
23072
|
&:focus-within {
|
|
23049
|
-
box-shadow: ${
|
|
23073
|
+
box-shadow: ${b.boxShadow.focus};
|
|
23050
23074
|
}
|
|
23051
23075
|
`, M = k(
|
|
23052
23076
|
xl,
|
|
@@ -23063,7 +23087,7 @@ const bl = "ucl-uikit-base-dialog", T6 = 495, R6 = 495, V6 = 740, O6 = ({
|
|
|
23063
23087
|
mr: c,
|
|
23064
23088
|
noMargins: p
|
|
23065
23089
|
},
|
|
23066
|
-
|
|
23090
|
+
b
|
|
23067
23091
|
),
|
|
23068
23092
|
h
|
|
23069
23093
|
), A = u`
|
|
@@ -23080,7 +23104,7 @@ const bl = "ucl-uikit-base-dialog", T6 = 495, R6 = 495, V6 = 740, O6 = ({
|
|
|
23080
23104
|
/* @__PURE__ */ n(
|
|
23081
23105
|
P6,
|
|
23082
23106
|
{
|
|
23083
|
-
ref:
|
|
23107
|
+
ref: y,
|
|
23084
23108
|
className: A,
|
|
23085
23109
|
id: e,
|
|
23086
23110
|
"data-testid": `${o}__radio`,
|
|
@@ -23143,10 +23167,10 @@ const j6 = 100, J6 = 1e3, Y6 = () => {
|
|
|
23143
23167
|
ref: h,
|
|
23144
23168
|
inputRef: f,
|
|
23145
23169
|
inputProps: m = {},
|
|
23146
|
-
...
|
|
23170
|
+
...y
|
|
23147
23171
|
}) => {
|
|
23148
23172
|
e && isNaN(e.getTime()) && (console.warn("CustomDatepicker: value is invalid, defaulting to null"), e = null);
|
|
23149
|
-
const
|
|
23173
|
+
const b = ue(null), w = h || b, x = ue(null), C = f || x, M = ue(!1), [A, v] = be(!1), E = (e == null ? void 0 : e.getDate().toString().padStart(2, "0")) ?? "", H = e ? (e.getMonth() + 1).toString().padStart(2, "0") : "", F = (e == null ? void 0 : e.getFullYear().toString()) ?? "", T = e ? `${E}/${H}/${F}` : "", [U, G] = be(T), V = Te(() => {
|
|
23150
23174
|
G(T);
|
|
23151
23175
|
}, [G, T]);
|
|
23152
23176
|
_(() => {
|
|
@@ -23214,7 +23238,7 @@ const j6 = 100, J6 = 1e3, Y6 = () => {
|
|
|
23214
23238
|
className: me,
|
|
23215
23239
|
"data-testid": c,
|
|
23216
23240
|
ref: w,
|
|
23217
|
-
...
|
|
23241
|
+
...y,
|
|
23218
23242
|
children: [
|
|
23219
23243
|
/* @__PURE__ */ n(
|
|
23220
23244
|
G6,
|
|
@@ -23283,7 +23307,7 @@ const j6 = 100, J6 = 1e3, Y6 = () => {
|
|
|
23283
23307
|
& * {
|
|
23284
23308
|
cursor: not-allowed;
|
|
23285
23309
|
}
|
|
23286
|
-
`,
|
|
23310
|
+
`, y = u`
|
|
23287
23311
|
display: flex;
|
|
23288
23312
|
align-items: center;
|
|
23289
23313
|
justify-content: center;
|
|
@@ -23298,7 +23322,7 @@ const j6 = 100, J6 = 1e3, Y6 = () => {
|
|
|
23298
23322
|
outline: none;
|
|
23299
23323
|
box-shadow: ${h.boxShadow.focus};
|
|
23300
23324
|
}
|
|
23301
|
-
`,
|
|
23325
|
+
`, b = u`
|
|
23302
23326
|
min-width: 24px;
|
|
23303
23327
|
color: ${a ? h.color.text.disabled : "#8C8C8C"}; // TODO: Needs a design token
|
|
23304
23328
|
`, w = d && s && !a, x = k(Jt, f, a && m);
|
|
@@ -23325,22 +23349,22 @@ const j6 = 100, J6 = 1e3, Y6 = () => {
|
|
|
23325
23349
|
{
|
|
23326
23350
|
type: "button",
|
|
23327
23351
|
onClick: i,
|
|
23328
|
-
className:
|
|
23352
|
+
className: y,
|
|
23329
23353
|
"aria-label": "Clear date",
|
|
23330
23354
|
"data-testid": `${Jt}-icon-button`,
|
|
23331
|
-
children: /* @__PURE__ */ n(D.X, { className:
|
|
23355
|
+
children: /* @__PURE__ */ n(D.X, { className: b })
|
|
23332
23356
|
}
|
|
23333
23357
|
) : /* @__PURE__ */ n(
|
|
23334
23358
|
De,
|
|
23335
23359
|
{
|
|
23336
23360
|
type: "button",
|
|
23337
23361
|
onClick: l,
|
|
23338
|
-
className:
|
|
23362
|
+
className: y,
|
|
23339
23363
|
"aria-label": "Open calendar",
|
|
23340
23364
|
"data-testid": `${Jt}-icon-button`,
|
|
23341
23365
|
tabIndex: -1,
|
|
23342
23366
|
disabled: a,
|
|
23343
|
-
children: /* @__PURE__ */ n(D.Calendar, { className:
|
|
23367
|
+
children: /* @__PURE__ */ n(D.Calendar, { className: b })
|
|
23344
23368
|
}
|
|
23345
23369
|
)
|
|
23346
23370
|
]
|
|
@@ -23572,16 +23596,16 @@ const j6 = 100, J6 = 1e3, Y6 = () => {
|
|
|
23572
23596
|
t + 1,
|
|
23573
23597
|
0
|
|
23574
23598
|
).getDate(), r = [];
|
|
23575
|
-
for (let
|
|
23576
|
-
const
|
|
23599
|
+
for (let y = 1; y <= o; y++) {
|
|
23600
|
+
const b = new Date(
|
|
23577
23601
|
e.getFullYear(),
|
|
23578
23602
|
t,
|
|
23579
|
-
|
|
23603
|
+
y
|
|
23580
23604
|
);
|
|
23581
|
-
if (
|
|
23582
|
-
r.push(
|
|
23605
|
+
if (b.getMonth() !== t) break;
|
|
23606
|
+
r.push(b);
|
|
23583
23607
|
}
|
|
23584
|
-
const l = (
|
|
23608
|
+
const l = (y) => y === 0 ? 6 : y - 1, i = [], a = new Date(
|
|
23585
23609
|
e.getFullYear(),
|
|
23586
23610
|
t - 1,
|
|
23587
23611
|
1
|
|
@@ -23594,12 +23618,12 @@ const j6 = 100, J6 = 1e3, Y6 = () => {
|
|
|
23594
23618
|
t,
|
|
23595
23619
|
0
|
|
23596
23620
|
).getDate();
|
|
23597
|
-
for (let
|
|
23621
|
+
for (let y = s; y > 0; y--)
|
|
23598
23622
|
i.push(
|
|
23599
23623
|
new Date(
|
|
23600
23624
|
a.getFullYear(),
|
|
23601
23625
|
a.getMonth(),
|
|
23602
|
-
c -
|
|
23626
|
+
c - y + 1
|
|
23603
23627
|
)
|
|
23604
23628
|
);
|
|
23605
23629
|
const p = [], h = new Date(
|
|
@@ -23611,12 +23635,12 @@ const j6 = 100, J6 = 1e3, Y6 = () => {
|
|
|
23611
23635
|
t,
|
|
23612
23636
|
o
|
|
23613
23637
|
).getDay(), m = 6 - l(f);
|
|
23614
|
-
for (let
|
|
23638
|
+
for (let y = 1; y <= m; y++)
|
|
23615
23639
|
p.push(
|
|
23616
23640
|
new Date(
|
|
23617
23641
|
h.getFullYear(),
|
|
23618
23642
|
h.getMonth(),
|
|
23619
|
-
|
|
23643
|
+
y
|
|
23620
23644
|
)
|
|
23621
23645
|
);
|
|
23622
23646
|
return r.unshift(...i), r.push(...p), r;
|
|
@@ -23713,7 +23737,7 @@ const iw = ({
|
|
|
23713
23737
|
m
|
|
23714
23738
|
)),
|
|
23715
23739
|
s.map((f) => {
|
|
23716
|
-
const m = Ki(f),
|
|
23740
|
+
const m = Ki(f), y = c.get(m) || [];
|
|
23717
23741
|
return /* @__PURE__ */ n(
|
|
23718
23742
|
sw,
|
|
23719
23743
|
{
|
|
@@ -23723,7 +23747,7 @@ const iw = ({
|
|
|
23723
23747
|
isInCurrentMonth: e.getMonth() === f.getMonth(),
|
|
23724
23748
|
isDisabled: r !== null && f < r || l !== null && f > l,
|
|
23725
23749
|
onPick: o,
|
|
23726
|
-
events:
|
|
23750
|
+
events: y
|
|
23727
23751
|
},
|
|
23728
23752
|
f.toISOString()
|
|
23729
23753
|
);
|
|
@@ -23759,8 +23783,8 @@ const iw = ({
|
|
|
23759
23783
|
isDisabled: i = !1,
|
|
23760
23784
|
events: a = []
|
|
23761
23785
|
}) => {
|
|
23762
|
-
const [d] = I(), s = a.slice(0, 3), c = (
|
|
23763
|
-
e && !i && t && t(e,
|
|
23786
|
+
const [d] = I(), s = a.slice(0, 3), c = (y) => {
|
|
23787
|
+
e && !i && t && t(e, y);
|
|
23764
23788
|
}, p = u`
|
|
23765
23789
|
display: flex;
|
|
23766
23790
|
justify-content: center;
|
|
@@ -23823,13 +23847,13 @@ const iw = ({
|
|
|
23823
23847
|
"data-testid": Bl,
|
|
23824
23848
|
children: [
|
|
23825
23849
|
/* @__PURE__ */ n("div", { className: h, children: e.getDate() }),
|
|
23826
|
-
/* @__PURE__ */ n("div", { className: f, children: s.map((
|
|
23850
|
+
/* @__PURE__ */ n("div", { className: f, children: s.map((y, b) => /* @__PURE__ */ n(
|
|
23827
23851
|
cw,
|
|
23828
23852
|
{
|
|
23829
23853
|
inverted: o,
|
|
23830
23854
|
inCurrentMonth: l
|
|
23831
23855
|
},
|
|
23832
|
-
|
|
23856
|
+
b
|
|
23833
23857
|
)) })
|
|
23834
23858
|
]
|
|
23835
23859
|
}
|
|
@@ -23864,14 +23888,14 @@ const iw = ({
|
|
|
23864
23888
|
const p = ue(e ?? null), [h, f] = be(
|
|
23865
23889
|
// Display month initialises as either the picked date's month or the current month
|
|
23866
23890
|
Fo(e ?? /* @__PURE__ */ new Date())
|
|
23867
|
-
), m = o ? Il(o) : null,
|
|
23891
|
+
), m = o ? Il(o) : null, y = r ? Il(r) : null;
|
|
23868
23892
|
_(() => {
|
|
23869
23893
|
var A;
|
|
23870
23894
|
// If the picked date is valid
|
|
23871
23895
|
e && !isNaN(e.getTime()) && // If the picked date has changed
|
|
23872
23896
|
((A = p.current) == null ? void 0 : A.getTime()) !== e.getTime() && (e.getMonth() !== h.getMonth() || e.getFullYear() !== h.getFullYear()) && f(Fo(e)), p.current = e;
|
|
23873
23897
|
}, [e, h]);
|
|
23874
|
-
const
|
|
23898
|
+
const b = (A) => {
|
|
23875
23899
|
const v = new Date(h);
|
|
23876
23900
|
v.setMonth(v.getMonth() + A), f(Fo(v));
|
|
23877
23901
|
}, x = u`
|
|
@@ -23900,7 +23924,7 @@ const iw = ({
|
|
|
23900
23924
|
$6,
|
|
23901
23925
|
{
|
|
23902
23926
|
month: h,
|
|
23903
|
-
changeMonth:
|
|
23927
|
+
changeMonth: b
|
|
23904
23928
|
}
|
|
23905
23929
|
),
|
|
23906
23930
|
/* @__PURE__ */ g("div", { className: C, children: [
|
|
@@ -23918,7 +23942,7 @@ const iw = ({
|
|
|
23918
23942
|
pickedDate: e,
|
|
23919
23943
|
onDatePick: t,
|
|
23920
23944
|
minDate: m,
|
|
23921
|
-
maxDate:
|
|
23945
|
+
maxDate: y,
|
|
23922
23946
|
events: l
|
|
23923
23947
|
}
|
|
23924
23948
|
)
|
|
@@ -23950,7 +23974,7 @@ const iw = ({
|
|
|
23950
23974
|
const ye = parseInt(ae[0]), we = parseInt(ae[1]) - 1, Ae = parseInt(ae[2]), We = new Date(Ae, we, ye);
|
|
23951
23975
|
return isNaN(We.getTime()) ? null : We;
|
|
23952
23976
|
}
|
|
23953
|
-
function
|
|
23977
|
+
function y(Y, ae = !0) {
|
|
23954
23978
|
const ye = new Date(Y);
|
|
23955
23979
|
ye.setHours(0, 0, 0, 0);
|
|
23956
23980
|
const we = ye.getDay(), Ae = ae ? we === 0 ? -6 : 1 - we : -we, We = new Date(ye);
|
|
@@ -23958,7 +23982,7 @@ const iw = ({
|
|
|
23958
23982
|
const Ke = new Date(We);
|
|
23959
23983
|
return Ke.setDate(We.getDate() + 6), { start: We, end: Ke };
|
|
23960
23984
|
}
|
|
23961
|
-
const
|
|
23985
|
+
const b = ue(null), w = p || b, x = ue(null), C = h || x, [M, A] = be(!1), v = (e == null ? void 0 : e.getDate().toString().padStart(2, "0")) ?? "", E = e ? (e.getMonth() + 1).toString().padStart(2, "0") : "", H = (e == null ? void 0 : e.getFullYear().toString()) ?? "", F = e ? `${v}/${E}/${H}` : "", [T, U] = be(F), G = Te(() => {
|
|
23962
23986
|
U(F);
|
|
23963
23987
|
}, [U, F]);
|
|
23964
23988
|
_(() => {
|
|
@@ -24002,7 +24026,7 @@ const iw = ({
|
|
|
24002
24026
|
align-items: center;
|
|
24003
24027
|
justify-content: space-between;
|
|
24004
24028
|
gap: 16px;
|
|
24005
|
-
`, ce = k(Dl, c, Q), $ = m(T), me = $ ?
|
|
24029
|
+
`, ce = k(Dl, c, Q), $ = m(T), me = $ ? y($) : null;
|
|
24006
24030
|
let P = null;
|
|
24007
24031
|
if ($)
|
|
24008
24032
|
for (let Y = 0; Y < d.length; Y++) {
|
|
@@ -24120,14 +24144,14 @@ const iw = ({
|
|
|
24120
24144
|
height: 100%;
|
|
24121
24145
|
cursor: pointer;
|
|
24122
24146
|
padding-right: 8px;
|
|
24123
|
-
`,
|
|
24147
|
+
`, y = u`
|
|
24124
24148
|
min-width: 16px;
|
|
24125
24149
|
color: ${i ? p.color.text.disabled : p.color.text.primary}; // TODO: Needs a design token
|
|
24126
|
-
`,
|
|
24150
|
+
`, b = k(Nl, h, i && f);
|
|
24127
24151
|
return /* @__PURE__ */ g(
|
|
24128
24152
|
"div",
|
|
24129
24153
|
{
|
|
24130
|
-
className:
|
|
24154
|
+
className: b,
|
|
24131
24155
|
"data-testid": Nl,
|
|
24132
24156
|
children: [
|
|
24133
24157
|
/* @__PURE__ */ n(
|
|
@@ -24138,7 +24162,7 @@ const iw = ({
|
|
|
24138
24162
|
children: /* @__PURE__ */ n(
|
|
24139
24163
|
D.Calendar,
|
|
24140
24164
|
{
|
|
24141
|
-
className:
|
|
24165
|
+
className: y,
|
|
24142
24166
|
size: 16
|
|
24143
24167
|
}
|
|
24144
24168
|
)
|
|
@@ -24209,14 +24233,14 @@ const iw = ({
|
|
|
24209
24233
|
&::placeholder {
|
|
24210
24234
|
color: ${c.color.text.disabled};
|
|
24211
24235
|
}
|
|
24212
|
-
`,
|
|
24236
|
+
`, y = k(Tl, f, l && m), b = (M) => new Date(M).toLocaleDateString("en-GB", {
|
|
24213
24237
|
day: "2-digit",
|
|
24214
24238
|
month: "short"
|
|
24215
24239
|
}), w = (M) => new Date(M).toLocaleDateString("en-GB", {
|
|
24216
24240
|
day: "2-digit",
|
|
24217
24241
|
month: "short",
|
|
24218
24242
|
year: "numeric"
|
|
24219
|
-
}), x = i && a ? `${
|
|
24243
|
+
}), x = i && a ? `${b(i)} - ${w(a)}` : "";
|
|
24220
24244
|
return /* @__PURE__ */ n(
|
|
24221
24245
|
"input",
|
|
24222
24246
|
{
|
|
@@ -24231,7 +24255,7 @@ const iw = ({
|
|
|
24231
24255
|
type: "text",
|
|
24232
24256
|
inputMode: "numeric",
|
|
24233
24257
|
placeholder: "DD/MM/YYYY",
|
|
24234
|
-
className:
|
|
24258
|
+
className: y,
|
|
24235
24259
|
"data-testid": Tl,
|
|
24236
24260
|
ref: s,
|
|
24237
24261
|
"aria-label": `Currently selected date: ${e} - Week from ${x}. ${d ? `(Academic Week ${d})` : ""}`
|
|
@@ -24337,13 +24361,13 @@ const iw = ({
|
|
|
24337
24361
|
console.error("Invalid time format:", p);
|
|
24338
24362
|
return;
|
|
24339
24363
|
}
|
|
24340
|
-
const [f, m] = h,
|
|
24341
|
-
if (Number.isNaN(
|
|
24342
|
-
console.error("Invalid time values:", { hours:
|
|
24364
|
+
const [f, m] = h, y = Number(f), b = Number(m);
|
|
24365
|
+
if (Number.isNaN(y) || Number.isNaN(b) || y < 0 || y > 23 || b < 0 || b > 59) {
|
|
24366
|
+
console.error("Invalid time values:", { hours: y, minutes: b });
|
|
24343
24367
|
return;
|
|
24344
24368
|
}
|
|
24345
24369
|
const w = t ? new Date(t) : /* @__PURE__ */ new Date();
|
|
24346
|
-
w.setHours(
|
|
24370
|
+
w.setHours(y, b, 0, 0), r && r(w, c);
|
|
24347
24371
|
};
|
|
24348
24372
|
return /* @__PURE__ */ n(
|
|
24349
24373
|
"input",
|
|
@@ -24392,7 +24416,7 @@ const iw = ({
|
|
|
24392
24416
|
&:visited {
|
|
24393
24417
|
color: ${s.color.text.primary};
|
|
24394
24418
|
}
|
|
24395
|
-
`,
|
|
24419
|
+
`, y = u`
|
|
24396
24420
|
margin-top: -1px;
|
|
24397
24421
|
margin-left: ${s.margin.m4};
|
|
24398
24422
|
`;
|
|
@@ -24431,7 +24455,7 @@ const iw = ({
|
|
|
24431
24455
|
target: "_blank",
|
|
24432
24456
|
children: [
|
|
24433
24457
|
"Cookies policy ",
|
|
24434
|
-
/* @__PURE__ */ n(D.ExternalLink, { className:
|
|
24458
|
+
/* @__PURE__ */ n(D.ExternalLink, { className: y })
|
|
24435
24459
|
]
|
|
24436
24460
|
}
|
|
24437
24461
|
)
|
|
@@ -24454,8 +24478,8 @@ const iw = ({
|
|
|
24454
24478
|
noMargins: h,
|
|
24455
24479
|
inputProps: f,
|
|
24456
24480
|
clearButtonProps: m,
|
|
24457
|
-
submitButtonProps:
|
|
24458
|
-
className:
|
|
24481
|
+
submitButtonProps: y,
|
|
24482
|
+
className: b,
|
|
24459
24483
|
...w
|
|
24460
24484
|
}) => {
|
|
24461
24485
|
const [x, C] = be(""), M = ue(null), [A] = I(), v = (ee) => {
|
|
@@ -24484,7 +24508,7 @@ const iw = ({
|
|
|
24484
24508
|
},
|
|
24485
24509
|
A
|
|
24486
24510
|
),
|
|
24487
|
-
|
|
24511
|
+
b
|
|
24488
24512
|
), U = u`
|
|
24489
24513
|
width: 100%;
|
|
24490
24514
|
box-sizing: border-box;
|
|
@@ -24555,7 +24579,7 @@ const iw = ({
|
|
|
24555
24579
|
onClick: H,
|
|
24556
24580
|
"aria-label": "Search",
|
|
24557
24581
|
"data-testid": `${t}-search-btn`,
|
|
24558
|
-
...
|
|
24582
|
+
...y,
|
|
24559
24583
|
children: /* @__PURE__ */ n(D.Search, {})
|
|
24560
24584
|
}
|
|
24561
24585
|
)
|
|
@@ -24654,9 +24678,9 @@ const iw = ({
|
|
|
24654
24678
|
const [l] = I(), { setIsOpen: i, triggerRef: a, contentRef: d } = an();
|
|
24655
24679
|
_(() => {
|
|
24656
24680
|
const p = (f) => {
|
|
24657
|
-
var
|
|
24681
|
+
var y, b;
|
|
24658
24682
|
const m = f.target;
|
|
24659
|
-
(
|
|
24683
|
+
(y = a.current) != null && y.contains(m) || (b = d.current) != null && b.contains(m) || i(!1);
|
|
24660
24684
|
}, h = (f) => {
|
|
24661
24685
|
f.key === "Escape" && i(!1);
|
|
24662
24686
|
};
|
|
@@ -24747,9 +24771,9 @@ const Aw = "ucl-uikit-dropdown-menu", t5 = ({
|
|
|
24747
24771
|
className: h,
|
|
24748
24772
|
...f
|
|
24749
24773
|
}) => {
|
|
24750
|
-
const [m] = I(),
|
|
24774
|
+
const [m] = I(), y = ht(
|
|
24751
24775
|
`(min-width: ${m.breakpoints.desktop}px)`
|
|
24752
|
-
),
|
|
24776
|
+
), b = u`
|
|
24753
24777
|
display: inline-flex;
|
|
24754
24778
|
align-items: center;
|
|
24755
24779
|
gap: ${m.padding.p8};
|
|
@@ -24777,7 +24801,7 @@ const Aw = "ucl-uikit-dropdown-menu", t5 = ({
|
|
|
24777
24801
|
`, x = u`
|
|
24778
24802
|
pointer-events: none;
|
|
24779
24803
|
`, C = k(Mw, a), M = k(
|
|
24780
|
-
|
|
24804
|
+
b,
|
|
24781
24805
|
h,
|
|
24782
24806
|
d
|
|
24783
24807
|
), A = k(w, p), v = k(x, c);
|
|
@@ -24795,7 +24819,7 @@ const Aw = "ucl-uikit-dropdown-menu", t5 = ({
|
|
|
24795
24819
|
"aria-label": i,
|
|
24796
24820
|
className: M,
|
|
24797
24821
|
children: [
|
|
24798
|
-
|
|
24822
|
+
y ? /* @__PURE__ */ n("span", { className: A, children: t }) : null,
|
|
24799
24823
|
/* @__PURE__ */ n(
|
|
24800
24824
|
q3,
|
|
24801
24825
|
{
|