uikit-react-public 0.25.2 → 0.25.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +319 -316
- package/lib/hooks/useMediaQuery.ts +11 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13695,7 +13695,7 @@ const { light: L, primitives: qe } = Nt, { sans: pl, mono: Em } = qe.font.family
|
|
|
13695
13695
|
dmMonoMedium: $4,
|
|
13696
13696
|
dmMonoMediumItalic: _4,
|
|
13697
13697
|
dmMonoRegular: ey
|
|
13698
|
-
},
|
|
13698
|
+
}, Pw = {
|
|
13699
13699
|
"DM Sans": [
|
|
13700
13700
|
{
|
|
13701
13701
|
src: He.dmSansNormal,
|
|
@@ -13807,7 +13807,7 @@ const { light: L, primitives: qe } = Nt, { sans: pl, mono: Em } = qe.font.family
|
|
|
13807
13807
|
font-style: normal;
|
|
13808
13808
|
font-display: swap;
|
|
13809
13809
|
}
|
|
13810
|
-
`,
|
|
13810
|
+
`, Uw = ({ children: e, initialTheme: t }) => /* @__PURE__ */ g(yl.Provider, { value: ny(t), children: [
|
|
13811
13811
|
/* @__PURE__ */ n(Hm, { styles: ry }),
|
|
13812
13812
|
e
|
|
13813
13813
|
] }), I = () => {
|
|
@@ -14050,7 +14050,7 @@ const { light: L, primitives: qe } = Nt, { sans: pl, mono: Em } = qe.font.family
|
|
|
14050
14050
|
text: dy,
|
|
14051
14051
|
link: uy,
|
|
14052
14052
|
speciality: hy
|
|
14053
|
-
},
|
|
14053
|
+
}, jw = {
|
|
14054
14054
|
// new
|
|
14055
14055
|
primitiveColour: gl,
|
|
14056
14056
|
colour: So,
|
|
@@ -14442,7 +14442,7 @@ const zn = "ucl-uikit-base-link", bl = Se(function({
|
|
|
14442
14442
|
children: a
|
|
14443
14443
|
}
|
|
14444
14444
|
);
|
|
14445
|
-
}), Nn = "ucl-uikit-standalone-link",
|
|
14445
|
+
}), Nn = "ucl-uikit-standalone-link", Jw = Se(function({
|
|
14446
14446
|
variant: t = "primary",
|
|
14447
14447
|
icon: o,
|
|
14448
14448
|
iconPosition: r = "left",
|
|
@@ -17024,7 +17024,7 @@ const y3 = (e, t) => {
|
|
|
17024
17024
|
}
|
|
17025
17025
|
);
|
|
17026
17026
|
}
|
|
17027
|
-
),
|
|
17027
|
+
), Yw = N(P3), U3 = (e) => {
|
|
17028
17028
|
if (typeof e != "string" || e === "" || e === null || e === void 0)
|
|
17029
17029
|
return "";
|
|
17030
17030
|
const t = e.trim().split(" ");
|
|
@@ -17169,7 +17169,7 @@ const y3 = (e, t) => {
|
|
|
17169
17169
|
color: e.colour.text.disabled,
|
|
17170
17170
|
backgroundColor: e.colour.fill.disabled
|
|
17171
17171
|
}
|
|
17172
|
-
}), nr = "ucl-uikit-badge",
|
|
17172
|
+
}), nr = "ucl-uikit-badge", Qw = ({
|
|
17173
17173
|
testId: e = nr,
|
|
17174
17174
|
className: t,
|
|
17175
17175
|
variant: o = "neutral",
|
|
@@ -17316,7 +17316,7 @@ const y3 = (e, t) => {
|
|
|
17316
17316
|
}
|
|
17317
17317
|
);
|
|
17318
17318
|
}
|
|
17319
|
-
),
|
|
17319
|
+
), Gw = N(G3), ir = "ucl-uikit-heading", Bl = N(
|
|
17320
17320
|
({
|
|
17321
17321
|
level: e = 1,
|
|
17322
17322
|
as: t,
|
|
@@ -17793,7 +17793,7 @@ const y3 = (e, t) => {
|
|
|
17793
17793
|
}
|
|
17794
17794
|
);
|
|
17795
17795
|
}
|
|
17796
|
-
),
|
|
17796
|
+
), Kw = N(_3), eb = ({ testId: e, ...t }) => /* @__PURE__ */ g(
|
|
17797
17797
|
"svg",
|
|
17798
17798
|
{
|
|
17799
17799
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -17841,7 +17841,7 @@ const y3 = (e, t) => {
|
|
|
17841
17841
|
)
|
|
17842
17842
|
]
|
|
17843
17843
|
}
|
|
17844
|
-
),
|
|
17844
|
+
), Xw = N(tb), {
|
|
17845
17845
|
logos: {
|
|
17846
17846
|
ucl: { Primary: ob },
|
|
17847
17847
|
ucl: { Secondary: nb },
|
|
@@ -17942,7 +17942,7 @@ const y3 = (e, t) => {
|
|
|
17942
17942
|
children: o
|
|
17943
17943
|
}
|
|
17944
17944
|
);
|
|
17945
|
-
}, hb = N(ub), hr = "ucl-uikit-app-header", fb = 3,
|
|
17945
|
+
}, hb = N(ub), hr = "ucl-uikit-app-header", fb = 3, $w = en + zl, pb = ({
|
|
17946
17946
|
fixed: e = !0,
|
|
17947
17947
|
sticky: t = !1,
|
|
17948
17948
|
testId: o = hr,
|
|
@@ -18292,7 +18292,7 @@ const pr = "ucl-uikit-checkbox", xb = Se(
|
|
|
18292
18292
|
}
|
|
18293
18293
|
);
|
|
18294
18294
|
}
|
|
18295
|
-
),
|
|
18295
|
+
), _w = N(kb), mr = "ucl-uikit-toggle__handle", Sb = ({ checked: e, className: t }) => {
|
|
18296
18296
|
const [o] = I(), r = u`
|
|
18297
18297
|
box-sizing: border-box;
|
|
18298
18298
|
width: 20px;
|
|
@@ -18379,9 +18379,12 @@ const pr = "ucl-uikit-checkbox", xb = Se(
|
|
|
18379
18379
|
}
|
|
18380
18380
|
);
|
|
18381
18381
|
}
|
|
18382
|
-
),
|
|
18383
|
-
const [t, o] = me(
|
|
18382
|
+
), e5 = N(Cb), Mb = (e) => typeof window > "u" ? !1 : window.matchMedia(e).matches, ht = (e) => {
|
|
18383
|
+
const [t, o] = me(
|
|
18384
|
+
() => Mb(e)
|
|
18385
|
+
);
|
|
18384
18386
|
return _(() => {
|
|
18387
|
+
if (typeof window > "u") return;
|
|
18385
18388
|
const r = window.matchMedia(e);
|
|
18386
18389
|
o(r.matches);
|
|
18387
18390
|
const i = (l) => {
|
|
@@ -18391,7 +18394,7 @@ const pr = "ucl-uikit-checkbox", xb = Se(
|
|
|
18391
18394
|
r.removeEventListener("change", i);
|
|
18392
18395
|
};
|
|
18393
18396
|
}, [e]), t;
|
|
18394
|
-
}, Dl = Qe({}), nn = () => Ne(Dl),
|
|
18397
|
+
}, Dl = Qe({}), nn = () => Ne(Dl), Lb = ({
|
|
18395
18398
|
defaultOpen: e = !1,
|
|
18396
18399
|
children: t
|
|
18397
18400
|
}) => {
|
|
@@ -18564,7 +18567,7 @@ const pr = "ucl-uikit-checkbox", xb = Se(
|
|
|
18564
18567
|
children: M
|
|
18565
18568
|
}
|
|
18566
18569
|
);
|
|
18567
|
-
}, vr = "ucl-app-menu__content",
|
|
18570
|
+
}, vr = "ucl-app-menu__content", Ib = ({
|
|
18568
18571
|
testId: e = vr,
|
|
18569
18572
|
children: t,
|
|
18570
18573
|
className: o,
|
|
@@ -18646,7 +18649,7 @@ const pr = "ucl-uikit-checkbox", xb = Se(
|
|
|
18646
18649
|
}
|
|
18647
18650
|
);
|
|
18648
18651
|
return c ? b : _o.createPortal(b, document.body);
|
|
18649
|
-
}, wr = "ucl-app-menu__divider",
|
|
18652
|
+
}, wr = "ucl-app-menu__divider", Hb = ({
|
|
18650
18653
|
testId: e = wr,
|
|
18651
18654
|
className: t,
|
|
18652
18655
|
...o
|
|
@@ -18665,7 +18668,7 @@ const pr = "ucl-uikit-checkbox", xb = Se(
|
|
|
18665
18668
|
...o
|
|
18666
18669
|
}
|
|
18667
18670
|
);
|
|
18668
|
-
}, xr = "ucl-app-menu__trigger",
|
|
18671
|
+
}, xr = "ucl-app-menu__trigger", Wb = ({
|
|
18669
18672
|
testId: e = xr,
|
|
18670
18673
|
className: t,
|
|
18671
18674
|
children: o,
|
|
@@ -18695,7 +18698,7 @@ const pr = "ucl-uikit-checkbox", xb = Se(
|
|
|
18695
18698
|
children: o
|
|
18696
18699
|
}
|
|
18697
18700
|
);
|
|
18698
|
-
}, kr = "ucl-app-menu",
|
|
18701
|
+
}, kr = "ucl-app-menu", Eb = ({
|
|
18699
18702
|
testId: e = kr,
|
|
18700
18703
|
defaultOpen: t = !1,
|
|
18701
18704
|
children: o,
|
|
@@ -18712,15 +18715,15 @@ const pr = "ucl-uikit-checkbox", xb = Se(
|
|
|
18712
18715
|
className: d,
|
|
18713
18716
|
"data-testid": e,
|
|
18714
18717
|
...i,
|
|
18715
|
-
children: /* @__PURE__ */ n(
|
|
18718
|
+
children: /* @__PURE__ */ n(Lb, { defaultOpen: t, children: o })
|
|
18716
18719
|
}
|
|
18717
18720
|
);
|
|
18718
|
-
}, yo =
|
|
18719
|
-
yo.Trigger =
|
|
18720
|
-
yo.Content =
|
|
18721
|
+
}, yo = Eb;
|
|
18722
|
+
yo.Trigger = Wb;
|
|
18723
|
+
yo.Content = Ib;
|
|
18721
18724
|
yo.MenuItem = Nl;
|
|
18722
|
-
yo.Divider =
|
|
18723
|
-
const Tl = Qe({}), Rl = () => Ne(Tl),
|
|
18725
|
+
yo.Divider = Hb;
|
|
18726
|
+
const Tl = Qe({}), Rl = () => Ne(Tl), Fb = ({
|
|
18724
18727
|
defaultOpen: e = !1,
|
|
18725
18728
|
children: t
|
|
18726
18729
|
}) => {
|
|
@@ -18775,7 +18778,7 @@ const Tl = Qe({}), Rl = () => Ne(Tl), Eb = ({
|
|
|
18775
18778
|
contentRef: d
|
|
18776
18779
|
};
|
|
18777
18780
|
return /* @__PURE__ */ n(Tl.Provider, { value: s, children: t });
|
|
18778
|
-
}, Sr = "ucl-uikit-menu__content",
|
|
18781
|
+
}, Sr = "ucl-uikit-menu__content", Bb = ({
|
|
18779
18782
|
title: e,
|
|
18780
18783
|
testId: t = Sr,
|
|
18781
18784
|
position: o = "right",
|
|
@@ -18874,7 +18877,7 @@ const Tl = Qe({}), Rl = () => Ne(Tl), Eb = ({
|
|
|
18874
18877
|
}
|
|
18875
18878
|
);
|
|
18876
18879
|
return h ? A : _o.createPortal(A, document.body);
|
|
18877
|
-
},
|
|
18880
|
+
}, zb = N(Bb), Ar = "ucl-uikit-menu__item", Db = ({
|
|
18878
18881
|
testId: e = Ar,
|
|
18879
18882
|
icon: t,
|
|
18880
18883
|
children: o,
|
|
@@ -18941,7 +18944,7 @@ const Tl = Qe({}), Rl = () => Ne(Tl), Eb = ({
|
|
|
18941
18944
|
]
|
|
18942
18945
|
}
|
|
18943
18946
|
);
|
|
18944
|
-
},
|
|
18947
|
+
}, Nb = N(Db), Tb = "ucl-uikit-menu__section", Rb = ({
|
|
18945
18948
|
className: e,
|
|
18946
18949
|
children: t,
|
|
18947
18950
|
...o
|
|
@@ -18954,7 +18957,7 @@ const Tl = Qe({}), Rl = () => Ne(Tl), Eb = ({
|
|
|
18954
18957
|
&:not(:last-of-type) {
|
|
18955
18958
|
border-bottom: 1px solid ${r.color.neutral.grey10};
|
|
18956
18959
|
}
|
|
18957
|
-
`, l = k(
|
|
18960
|
+
`, l = k(Tb, i, e), a = u`
|
|
18958
18961
|
list-style: none;
|
|
18959
18962
|
margin: 0;
|
|
18960
18963
|
padding: 0;
|
|
@@ -18968,8 +18971,8 @@ const Tl = Qe({}), Rl = () => Ne(Tl), Eb = ({
|
|
|
18968
18971
|
children: /* @__PURE__ */ n("ul", { className: a, children: t })
|
|
18969
18972
|
}
|
|
18970
18973
|
);
|
|
18971
|
-
},
|
|
18972
|
-
const { toggleMenu: o, isOpen: r, triggerRef: i } = Rl(), l = k(
|
|
18974
|
+
}, Vb = "ucl-uikit-menu__trigger", Ob = "Menu button", Zb = ({ className: e, ...t }) => {
|
|
18975
|
+
const { toggleMenu: o, isOpen: r, triggerRef: i } = Rl(), l = k(Vb, e);
|
|
18973
18976
|
return /* @__PURE__ */ n(
|
|
18974
18977
|
De,
|
|
18975
18978
|
{
|
|
@@ -18977,14 +18980,14 @@ const Tl = Qe({}), Rl = () => Ne(Tl), Eb = ({
|
|
|
18977
18980
|
ref: i,
|
|
18978
18981
|
className: l,
|
|
18979
18982
|
onClick: o,
|
|
18980
|
-
"aria-label":
|
|
18983
|
+
"aria-label": Ob,
|
|
18981
18984
|
"aria-haspopup": "true",
|
|
18982
18985
|
"aria-expanded": r ? "true" : "false",
|
|
18983
18986
|
...t,
|
|
18984
18987
|
children: /* @__PURE__ */ n(z.Menu, {})
|
|
18985
18988
|
}
|
|
18986
18989
|
);
|
|
18987
|
-
},
|
|
18990
|
+
}, qb = N(Zb), Io = "ucl-uikit-menu", Pb = ({
|
|
18988
18991
|
defaultOpen: e = !1,
|
|
18989
18992
|
title: t,
|
|
18990
18993
|
position: o = "right",
|
|
@@ -19004,10 +19007,10 @@ const Tl = Qe({}), Rl = () => Ne(Tl), Eb = ({
|
|
|
19004
19007
|
className: p,
|
|
19005
19008
|
"data-testid": i,
|
|
19006
19009
|
...d,
|
|
19007
|
-
children: /* @__PURE__ */ g(
|
|
19008
|
-
/* @__PURE__ */ n(
|
|
19010
|
+
children: /* @__PURE__ */ g(Fb, { defaultOpen: e, children: [
|
|
19011
|
+
/* @__PURE__ */ n(qb, { "aria-controls": r }),
|
|
19009
19012
|
/* @__PURE__ */ n(
|
|
19010
|
-
|
|
19013
|
+
zb,
|
|
19011
19014
|
{
|
|
19012
19015
|
id: r,
|
|
19013
19016
|
title: t,
|
|
@@ -19018,9 +19021,9 @@ const Tl = Qe({}), Rl = () => Ne(Tl), Eb = ({
|
|
|
19018
19021
|
] })
|
|
19019
19022
|
}
|
|
19020
19023
|
);
|
|
19021
|
-
},
|
|
19022
|
-
Vl.Section =
|
|
19023
|
-
Vl.Item =
|
|
19024
|
+
}, Ub = N(Pb), Vl = Ub;
|
|
19025
|
+
Vl.Section = Rb;
|
|
19026
|
+
Vl.Item = Nb;
|
|
19024
19027
|
const Rt = ({
|
|
19025
19028
|
icon: e,
|
|
19026
19029
|
iconPosition: t = "left",
|
|
@@ -19084,13 +19087,13 @@ const Rt = ({
|
|
|
19084
19087
|
]
|
|
19085
19088
|
}
|
|
19086
19089
|
);
|
|
19087
|
-
},
|
|
19090
|
+
}, jb = "ucl-uikit-menu__divider", Jb = ({ className: e, ...t }) => {
|
|
19088
19091
|
const [o] = I(), r = u`
|
|
19089
19092
|
border: 0;
|
|
19090
19093
|
height: 1px;
|
|
19091
19094
|
background-color: ${o.colour.border.subtle};
|
|
19092
19095
|
margin: ${o.margin.m16} 0;
|
|
19093
|
-
`, i = k(
|
|
19096
|
+
`, i = k(jb, r, e);
|
|
19094
19097
|
return /* @__PURE__ */ n(
|
|
19095
19098
|
"hr",
|
|
19096
19099
|
{
|
|
@@ -19098,7 +19101,7 @@ const Rt = ({
|
|
|
19098
19101
|
...t
|
|
19099
19102
|
}
|
|
19100
19103
|
);
|
|
19101
|
-
}, Cr = "ucl-uikit-menu__heading",
|
|
19104
|
+
}, Cr = "ucl-uikit-menu__heading", Yb = ({
|
|
19102
19105
|
testId: e = Cr,
|
|
19103
19106
|
className: t,
|
|
19104
19107
|
children: o,
|
|
@@ -19135,7 +19138,7 @@ const Rt = ({
|
|
|
19135
19138
|
)
|
|
19136
19139
|
}
|
|
19137
19140
|
);
|
|
19138
|
-
}, Mr = "ucl-uikit-menu__section",
|
|
19141
|
+
}, Mr = "ucl-uikit-menu__section", Qb = ({
|
|
19139
19142
|
testId: e = Mr,
|
|
19140
19143
|
className: t,
|
|
19141
19144
|
children: o,
|
|
@@ -19158,7 +19161,7 @@ const Rt = ({
|
|
|
19158
19161
|
children: o
|
|
19159
19162
|
}
|
|
19160
19163
|
);
|
|
19161
|
-
},
|
|
19164
|
+
}, Gb = "ucl-uikit-menu__item-text", bo = ({
|
|
19162
19165
|
asChild: e = !1,
|
|
19163
19166
|
className: t,
|
|
19164
19167
|
children: o
|
|
@@ -19181,7 +19184,7 @@ const Rt = ({
|
|
|
19181
19184
|
outline: none;
|
|
19182
19185
|
box-shadow: none;
|
|
19183
19186
|
}
|
|
19184
|
-
`, i = k(
|
|
19187
|
+
`, i = k(Gb, t);
|
|
19185
19188
|
if (e) {
|
|
19186
19189
|
const l = da.only(o);
|
|
19187
19190
|
if (Gi(l))
|
|
@@ -19190,7 +19193,7 @@ const Rt = ({
|
|
|
19190
19193
|
}) });
|
|
19191
19194
|
}
|
|
19192
19195
|
return /* @__PURE__ */ n(Oo, { className: i, children: o });
|
|
19193
|
-
},
|
|
19196
|
+
}, Kb = ({
|
|
19194
19197
|
expanded: e,
|
|
19195
19198
|
className: t
|
|
19196
19199
|
}) => e ? /* @__PURE__ */ n(
|
|
@@ -19211,7 +19214,7 @@ const Rt = ({
|
|
|
19211
19214
|
focusable: "false",
|
|
19212
19215
|
testId: "ucl-uikit-menu__accordion__icon--chevron-down"
|
|
19213
19216
|
}
|
|
19214
|
-
), Lr = "ucl-uikit-menu__accordion-item",
|
|
19217
|
+
), Lr = "ucl-uikit-menu__accordion-item", Xb = ({
|
|
19215
19218
|
asChild: e,
|
|
19216
19219
|
testId: t = Lr,
|
|
19217
19220
|
className: o,
|
|
@@ -19237,7 +19240,7 @@ const Rt = ({
|
|
|
19237
19240
|
children: /* @__PURE__ */ n(bo, { asChild: e, children: r })
|
|
19238
19241
|
}
|
|
19239
19242
|
);
|
|
19240
|
-
},
|
|
19243
|
+
}, $b = "ucl-uikit-menu__accordion", _b = ({
|
|
19241
19244
|
className: e,
|
|
19242
19245
|
label: t,
|
|
19243
19246
|
children: o,
|
|
@@ -19256,7 +19259,7 @@ const Rt = ({
|
|
|
19256
19259
|
&:hover {
|
|
19257
19260
|
background-color: ${a.colour.fill.brandSubtleHover};
|
|
19258
19261
|
}
|
|
19259
|
-
`, p = k(
|
|
19262
|
+
`, p = k($b, s, e), h = u``, f = u`
|
|
19260
19263
|
display: inline-flex;
|
|
19261
19264
|
align-items: center;
|
|
19262
19265
|
gap: ${a.margin.m16};
|
|
@@ -19274,7 +19277,7 @@ const Rt = ({
|
|
|
19274
19277
|
onClick: (y) => {
|
|
19275
19278
|
c((v) => !v), i == null || i(y);
|
|
19276
19279
|
},
|
|
19277
|
-
endAdornment: /* @__PURE__ */ n(
|
|
19280
|
+
endAdornment: /* @__PURE__ */ n(Kb, { expanded: d }),
|
|
19278
19281
|
"aria-expanded": d,
|
|
19279
19282
|
...l,
|
|
19280
19283
|
children: /* @__PURE__ */ n("span", { className: f, children: /* @__PURE__ */ n(bo, { className: h, children: t }) })
|
|
@@ -19282,12 +19285,12 @@ const Rt = ({
|
|
|
19282
19285
|
),
|
|
19283
19286
|
d && /* @__PURE__ */ n("div", { className: m, children: o })
|
|
19284
19287
|
] });
|
|
19285
|
-
},
|
|
19286
|
-
N(
|
|
19288
|
+
}, ev = Object.assign(
|
|
19289
|
+
N(_b),
|
|
19287
19290
|
{
|
|
19288
|
-
Item:
|
|
19291
|
+
Item: Xb
|
|
19289
19292
|
}
|
|
19290
|
-
),
|
|
19293
|
+
), tv = "ucl-uikit-menu__action-button", ov = ({
|
|
19291
19294
|
className: e,
|
|
19292
19295
|
children: t,
|
|
19293
19296
|
...o
|
|
@@ -19295,7 +19298,7 @@ const Rt = ({
|
|
|
19295
19298
|
const [r] = I(), i = u`
|
|
19296
19299
|
margin: ${r.margin.m8} 0;
|
|
19297
19300
|
background-color: ${r.colour.surface.primary};
|
|
19298
|
-
`, l = k(
|
|
19301
|
+
`, l = k(tv, i, e);
|
|
19299
19302
|
return /* @__PURE__ */ n(
|
|
19300
19303
|
Te,
|
|
19301
19304
|
{
|
|
@@ -19307,7 +19310,7 @@ const Rt = ({
|
|
|
19307
19310
|
children: t
|
|
19308
19311
|
}
|
|
19309
19312
|
);
|
|
19310
|
-
},
|
|
19313
|
+
}, nv = "ucl-uikit-menu__primary-item", rv = ({
|
|
19311
19314
|
className: e,
|
|
19312
19315
|
children: t,
|
|
19313
19316
|
asChild: o,
|
|
@@ -19320,7 +19323,7 @@ const Rt = ({
|
|
|
19320
19323
|
@media screen and (min-width: ${l.breakpoints.tablet}px) {
|
|
19321
19324
|
padding: 0 ${l.padding.p16};
|
|
19322
19325
|
}
|
|
19323
|
-
`, d = k(
|
|
19326
|
+
`, d = k(nv, a, e), c = u``, s = u`
|
|
19324
19327
|
display: inline-flex;
|
|
19325
19328
|
align-items: center;
|
|
19326
19329
|
gap: ${l.margin.m16};
|
|
@@ -19345,7 +19348,7 @@ const Rt = ({
|
|
|
19345
19348
|
] })
|
|
19346
19349
|
}
|
|
19347
19350
|
);
|
|
19348
|
-
},
|
|
19351
|
+
}, iv = "ucl-uikit-menu__secondary-item", lv = ({
|
|
19349
19352
|
className: e,
|
|
19350
19353
|
children: t,
|
|
19351
19354
|
asChild: o,
|
|
@@ -19355,7 +19358,7 @@ const Rt = ({
|
|
|
19355
19358
|
const [l] = I(), a = u`
|
|
19356
19359
|
padding-inline: ${l.margin.m16};
|
|
19357
19360
|
color: ${l.colour.text.secondary};
|
|
19358
|
-
`, d = k(
|
|
19361
|
+
`, d = k(iv, a, e), c = u`
|
|
19359
19362
|
color: ${l.colour.text.secondary};
|
|
19360
19363
|
`, s = u`
|
|
19361
19364
|
display: inline-flex;
|
|
@@ -19388,8 +19391,8 @@ const Rt = ({
|
|
|
19388
19391
|
] })
|
|
19389
19392
|
}
|
|
19390
19393
|
);
|
|
19391
|
-
},
|
|
19392
|
-
testId: e =
|
|
19394
|
+
}, av = "ucl-uikit-menu", sv = ({
|
|
19395
|
+
testId: e = av,
|
|
19393
19396
|
className: t,
|
|
19394
19397
|
children: o,
|
|
19395
19398
|
border: r = !1,
|
|
@@ -19415,16 +19418,16 @@ const Rt = ({
|
|
|
19415
19418
|
children: o
|
|
19416
19419
|
}
|
|
19417
19420
|
);
|
|
19418
|
-
},
|
|
19419
|
-
Section:
|
|
19420
|
-
Heading:
|
|
19421
|
-
Accordion:
|
|
19422
|
-
Divider:
|
|
19421
|
+
}, t5 = Object.assign(N(sv), {
|
|
19422
|
+
Section: Qb,
|
|
19423
|
+
Heading: Yb,
|
|
19424
|
+
Accordion: ev,
|
|
19425
|
+
Divider: Jb,
|
|
19423
19426
|
BaseItem: Rt,
|
|
19424
|
-
PrimaryItem:
|
|
19425
|
-
SecondaryItem:
|
|
19426
|
-
ActionButton:
|
|
19427
|
-
}), Ir = "ucl-uikit-select",
|
|
19427
|
+
PrimaryItem: rv,
|
|
19428
|
+
SecondaryItem: lv,
|
|
19429
|
+
ActionButton: ov
|
|
19430
|
+
}), Ir = "ucl-uikit-select", cv = [
|
|
19428
19431
|
"a[href]",
|
|
19429
19432
|
"button:not([disabled])",
|
|
19430
19433
|
"textarea:not([disabled])",
|
|
@@ -19435,7 +19438,7 @@ const Rt = ({
|
|
|
19435
19438
|
"audio[controls]",
|
|
19436
19439
|
"video[controls]",
|
|
19437
19440
|
"details > summary:first-of-type"
|
|
19438
|
-
].join(", "),
|
|
19441
|
+
].join(", "), dv = ({
|
|
19439
19442
|
selectionBehaviour: e = "focus",
|
|
19440
19443
|
value: t,
|
|
19441
19444
|
options: o = [],
|
|
@@ -19512,7 +19515,7 @@ const Rt = ({
|
|
|
19512
19515
|
}, Y = (D) => {
|
|
19513
19516
|
if (!C.current) return !1;
|
|
19514
19517
|
const K = Array.from(
|
|
19515
|
-
document.querySelectorAll(
|
|
19518
|
+
document.querySelectorAll(cv)
|
|
19516
19519
|
).filter(Fe), se = X.current;
|
|
19517
19520
|
if (!se) return !1;
|
|
19518
19521
|
const ve = K.indexOf(se);
|
|
@@ -19688,7 +19691,7 @@ const Rt = ({
|
|
|
19688
19691
|
...y,
|
|
19689
19692
|
children: [
|
|
19690
19693
|
/* @__PURE__ */ n(
|
|
19691
|
-
|
|
19694
|
+
yv,
|
|
19692
19695
|
{
|
|
19693
19696
|
isOpen: F,
|
|
19694
19697
|
selectedOption: Ct,
|
|
@@ -19699,7 +19702,7 @@ const Rt = ({
|
|
|
19699
19702
|
onClear: Ke,
|
|
19700
19703
|
clearButtonRef: ee,
|
|
19701
19704
|
children: m && /* @__PURE__ */ n(
|
|
19702
|
-
|
|
19705
|
+
bv,
|
|
19703
19706
|
{
|
|
19704
19707
|
value: U,
|
|
19705
19708
|
onChange: G,
|
|
@@ -19717,14 +19720,14 @@ const Rt = ({
|
|
|
19717
19720
|
}
|
|
19718
19721
|
),
|
|
19719
19722
|
F && /* @__PURE__ */ g(
|
|
19720
|
-
|
|
19723
|
+
mv,
|
|
19721
19724
|
{
|
|
19722
19725
|
className: f,
|
|
19723
19726
|
id: $,
|
|
19724
19727
|
role: "listbox",
|
|
19725
19728
|
children: [
|
|
19726
19729
|
P.map((D, K) => /* @__PURE__ */ n(
|
|
19727
|
-
|
|
19730
|
+
gv,
|
|
19728
19731
|
{
|
|
19729
19732
|
id: `${ce}-option-${ye[K]}`,
|
|
19730
19733
|
value: D.value,
|
|
@@ -19748,7 +19751,7 @@ const Rt = ({
|
|
|
19748
19751
|
]
|
|
19749
19752
|
}
|
|
19750
19753
|
);
|
|
19751
|
-
},
|
|
19754
|
+
}, uv = ({ ...e }) => {
|
|
19752
19755
|
const { title: t, ...o } = e;
|
|
19753
19756
|
return /* @__PURE__ */ g(
|
|
19754
19757
|
"svg",
|
|
@@ -19768,8 +19771,8 @@ const Rt = ({
|
|
|
19768
19771
|
}
|
|
19769
19772
|
);
|
|
19770
19773
|
};
|
|
19771
|
-
N(
|
|
19772
|
-
const
|
|
19774
|
+
N(uv);
|
|
19775
|
+
const hv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22{{COLOUR}}%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20width%3D%2224%22%20height%3D%2224%22%20class%3D%22ucl-icon%20css-4bxmzw%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E", fv = (e) => hv.replace("{{COLOUR}}", encodeURIComponent(e)), Hr = "ucl-uikit-select--native", pv = ({
|
|
19773
19776
|
options: e,
|
|
19774
19777
|
width: t,
|
|
19775
19778
|
disabled: o,
|
|
@@ -19778,7 +19781,7 @@ const uv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
19778
19781
|
className: l,
|
|
19779
19782
|
...a
|
|
19780
19783
|
}) => {
|
|
19781
|
-
const [d] = I(), c = o ? d.colour.icon.disabled : d.colour.icon.default, s =
|
|
19784
|
+
const [d] = I(), c = o ? d.colour.icon.disabled : d.colour.icon.default, s = fv(c), p = u`
|
|
19782
19785
|
padding: 0 ${d.padding.p40} 0 ${d.padding.p16};
|
|
19783
19786
|
height: ${d.padding.p48};
|
|
19784
19787
|
line-height: ${d.font.lineHeight.h150};
|
|
@@ -19848,7 +19851,7 @@ const uv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
19848
19851
|
]
|
|
19849
19852
|
}
|
|
19850
19853
|
);
|
|
19851
|
-
}, Wr = "ucl-uikit-select__option",
|
|
19854
|
+
}, Wr = "ucl-uikit-select__option", gv = ({
|
|
19852
19855
|
value: e,
|
|
19853
19856
|
optionIndex: t,
|
|
19854
19857
|
isSelected: o = !1,
|
|
@@ -19911,7 +19914,7 @@ const uv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
19911
19914
|
children: d
|
|
19912
19915
|
}
|
|
19913
19916
|
);
|
|
19914
|
-
}, Er = "ucl-uikit-select__panel",
|
|
19917
|
+
}, Er = "ucl-uikit-select__panel", mv = ({ className: e, ...t }) => {
|
|
19915
19918
|
const [o] = I(), r = (a) => {
|
|
19916
19919
|
a.stopPropagation();
|
|
19917
19920
|
}, i = u`
|
|
@@ -19939,7 +19942,7 @@ const uv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
19939
19942
|
...t
|
|
19940
19943
|
}
|
|
19941
19944
|
);
|
|
19942
|
-
}, Ho = "ucl-uikit-select__visible-field",
|
|
19945
|
+
}, Ho = "ucl-uikit-select__visible-field", yv = ({
|
|
19943
19946
|
selectedOption: e,
|
|
19944
19947
|
isOpen: t,
|
|
19945
19948
|
placeholder: o,
|
|
@@ -20017,7 +20020,7 @@ const uv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
20017
20020
|
]
|
|
20018
20021
|
}
|
|
20019
20022
|
);
|
|
20020
|
-
},
|
|
20023
|
+
}, bv = ({
|
|
20021
20024
|
value: e,
|
|
20022
20025
|
onChange: t,
|
|
20023
20026
|
onBlur: o,
|
|
@@ -20074,7 +20077,7 @@ const uv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
20074
20077
|
...h
|
|
20075
20078
|
}
|
|
20076
20079
|
);
|
|
20077
|
-
},
|
|
20080
|
+
}, o5 = ((e) => {
|
|
20078
20081
|
const {
|
|
20079
20082
|
native: t,
|
|
20080
20083
|
nativeHtmlAttributes: o,
|
|
@@ -20092,7 +20095,7 @@ const uv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
20092
20095
|
...f
|
|
20093
20096
|
} = o || {};
|
|
20094
20097
|
return /* @__PURE__ */ n(
|
|
20095
|
-
|
|
20098
|
+
pv,
|
|
20096
20099
|
{
|
|
20097
20100
|
value: (typeof c == "string" || typeof c == "number" ? c : void 0) ?? p,
|
|
20098
20101
|
onChange: h,
|
|
@@ -20103,7 +20106,7 @@ const uv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
20103
20106
|
);
|
|
20104
20107
|
}
|
|
20105
20108
|
return /* @__PURE__ */ n(
|
|
20106
|
-
|
|
20109
|
+
dv,
|
|
20107
20110
|
{
|
|
20108
20111
|
onValueChange: l,
|
|
20109
20112
|
filterable: r,
|
|
@@ -20112,7 +20115,7 @@ const uv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
20112
20115
|
...d
|
|
20113
20116
|
}
|
|
20114
20117
|
);
|
|
20115
|
-
}), Fr = "ucl-uikit-footer__column",
|
|
20118
|
+
}), Fr = "ucl-uikit-footer__column", vv = ({
|
|
20116
20119
|
heading: e,
|
|
20117
20120
|
testId: t = Fr,
|
|
20118
20121
|
className: o,
|
|
@@ -20145,7 +20148,7 @@ const uv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
20145
20148
|
]
|
|
20146
20149
|
}
|
|
20147
20150
|
);
|
|
20148
|
-
},
|
|
20151
|
+
}, wv = N(vv), Br = "ucl-uikit-footer__social-link", xv = ({
|
|
20149
20152
|
socialNetwork: e,
|
|
20150
20153
|
testId: t = Br,
|
|
20151
20154
|
className: o,
|
|
@@ -20220,7 +20223,7 @@ const uv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
20220
20223
|
)
|
|
20221
20224
|
}
|
|
20222
20225
|
);
|
|
20223
|
-
}, rt = N(
|
|
20226
|
+
}, rt = N(xv), zr = "ucl-uikit-footer__nav-link", kv = ({
|
|
20224
20227
|
href: e,
|
|
20225
20228
|
testId: t = zr,
|
|
20226
20229
|
className: o,
|
|
@@ -20257,7 +20260,7 @@ const uv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
20257
20260
|
children: r
|
|
20258
20261
|
}
|
|
20259
20262
|
);
|
|
20260
|
-
},
|
|
20263
|
+
}, Sv = N(kv), Dr = "ucl-uikit-footer", Av = ({
|
|
20261
20264
|
testId: e = Dr,
|
|
20262
20265
|
className: t,
|
|
20263
20266
|
disclaimer: o = "https://www.ucl.ac.uk/legal-services/disclaimer",
|
|
@@ -20395,7 +20398,7 @@ const uv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
20395
20398
|
/* @__PURE__ */ n(rt, { socialNetwork: "instagram" })
|
|
20396
20399
|
] })
|
|
20397
20400
|
] }),
|
|
20398
|
-
/* @__PURE__ */ n(
|
|
20401
|
+
/* @__PURE__ */ n(Rv, {}),
|
|
20399
20402
|
/* @__PURE__ */ g("div", { className: C, children: [
|
|
20400
20403
|
/* @__PURE__ */ n("span", { className: M, children: "University College London, Gower Street, London, WC1E 6BT" }),
|
|
20401
20404
|
/* @__PURE__ */ n(
|
|
@@ -20465,10 +20468,10 @@ const uv = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F200
|
|
|
20465
20468
|
] })
|
|
20466
20469
|
}
|
|
20467
20470
|
);
|
|
20468
|
-
},
|
|
20469
|
-
Ol.Column =
|
|
20470
|
-
Ol.NavLink =
|
|
20471
|
-
const Nr = "ucl-uikit-footer__column",
|
|
20471
|
+
}, Cv = N(Av), Ol = Cv;
|
|
20472
|
+
Ol.Column = wv;
|
|
20473
|
+
Ol.NavLink = Sv;
|
|
20474
|
+
const Nr = "ucl-uikit-footer__column", Mv = ({
|
|
20472
20475
|
heading: e,
|
|
20473
20476
|
testId: t = Nr,
|
|
20474
20477
|
className: o,
|
|
@@ -20527,7 +20530,7 @@ const Nr = "ucl-uikit-footer__column", Cv = ({
|
|
|
20527
20530
|
]
|
|
20528
20531
|
}
|
|
20529
20532
|
);
|
|
20530
|
-
},
|
|
20533
|
+
}, Lv = N(Mv), Tr = "ucl-uikit-footer__nav-link", Iv = ({
|
|
20531
20534
|
href: e,
|
|
20532
20535
|
testId: t = Tr,
|
|
20533
20536
|
className: o,
|
|
@@ -20570,7 +20573,7 @@ const Nr = "ucl-uikit-footer__column", Cv = ({
|
|
|
20570
20573
|
children: r
|
|
20571
20574
|
}
|
|
20572
20575
|
);
|
|
20573
|
-
},
|
|
20576
|
+
}, Hv = N(Iv), Rr = "ucl-uikit-footer__social-link", Wv = ({
|
|
20574
20577
|
socialNetwork: e,
|
|
20575
20578
|
testId: t = Rr,
|
|
20576
20579
|
className: o,
|
|
@@ -20648,7 +20651,7 @@ const Nr = "ucl-uikit-footer__column", Cv = ({
|
|
|
20648
20651
|
)
|
|
20649
20652
|
}
|
|
20650
20653
|
);
|
|
20651
|
-
}, $e = N(
|
|
20654
|
+
}, $e = N(Wv), Vr = "ucl-uikit-footer__logo-address-social", Ev = ({
|
|
20652
20655
|
compact: e = !1,
|
|
20653
20656
|
addressFormat: t,
|
|
20654
20657
|
showSocialLinks: o = !0,
|
|
@@ -20761,7 +20764,7 @@ const Nr = "ucl-uikit-footer__column", Cv = ({
|
|
|
20761
20764
|
]
|
|
20762
20765
|
}
|
|
20763
20766
|
);
|
|
20764
|
-
}, Or = "ucl-uikit-footer__legal-and-copyright",
|
|
20767
|
+
}, Or = "ucl-uikit-footer__legal-and-copyright", Fv = ({
|
|
20765
20768
|
disclaimer: e,
|
|
20766
20769
|
freedomOfInformation: t,
|
|
20767
20770
|
accessibility: o,
|
|
@@ -20896,16 +20899,16 @@ const Nr = "ucl-uikit-footer__column", Cv = ({
|
|
|
20896
20899
|
]
|
|
20897
20900
|
}
|
|
20898
20901
|
);
|
|
20899
|
-
},
|
|
20902
|
+
}, Bv = () => {
|
|
20900
20903
|
window == null || window.scrollTo({ top: 0, behavior: "smooth" });
|
|
20901
|
-
}, Zr = "ucl-uikit-footer__back-to-top",
|
|
20904
|
+
}, Zr = "ucl-uikit-footer__back-to-top", zv = ({
|
|
20902
20905
|
compact: e,
|
|
20903
20906
|
testId: t = Zr,
|
|
20904
20907
|
className: o,
|
|
20905
20908
|
...r
|
|
20906
20909
|
}) => {
|
|
20907
20910
|
const [i] = I(), l = () => {
|
|
20908
|
-
|
|
20911
|
+
Bv();
|
|
20909
20912
|
}, a = u`
|
|
20910
20913
|
margin-top: ${i.margin.m56};
|
|
20911
20914
|
text-align: right;
|
|
@@ -20959,7 +20962,7 @@ const Nr = "ucl-uikit-footer__column", Cv = ({
|
|
|
20959
20962
|
)
|
|
20960
20963
|
}
|
|
20961
20964
|
);
|
|
20962
|
-
}, qr = "ucl-uikit-footer__links",
|
|
20965
|
+
}, qr = "ucl-uikit-footer__links", Dv = ({
|
|
20963
20966
|
testId: e = qr,
|
|
20964
20967
|
className: t,
|
|
20965
20968
|
children: o,
|
|
@@ -20985,7 +20988,7 @@ const Nr = "ucl-uikit-footer__column", Cv = ({
|
|
|
20985
20988
|
children: o
|
|
20986
20989
|
}
|
|
20987
20990
|
);
|
|
20988
|
-
}, Pr = "ucl-uikit-footer",
|
|
20991
|
+
}, Pr = "ucl-uikit-footer", Nv = ({
|
|
20989
20992
|
testId: e = Pr,
|
|
20990
20993
|
className: t,
|
|
20991
20994
|
addressFormat: o = "full",
|
|
@@ -21026,9 +21029,9 @@ const Nr = "ucl-uikit-footer__column", Cv = ({
|
|
|
21026
21029
|
...f,
|
|
21027
21030
|
children: [
|
|
21028
21031
|
/* @__PURE__ */ g("div", { className: A, children: [
|
|
21029
|
-
m && /* @__PURE__ */ n(
|
|
21032
|
+
m && /* @__PURE__ */ n(Dv, { children: h }),
|
|
21030
21033
|
/* @__PURE__ */ n(
|
|
21031
|
-
|
|
21034
|
+
Ev,
|
|
21032
21035
|
{
|
|
21033
21036
|
compact: b,
|
|
21034
21037
|
addressFormat: o,
|
|
@@ -21036,9 +21039,9 @@ const Nr = "ucl-uikit-footer__column", Cv = ({
|
|
|
21036
21039
|
}
|
|
21037
21040
|
)
|
|
21038
21041
|
] }),
|
|
21039
|
-
/* @__PURE__ */ n(
|
|
21042
|
+
/* @__PURE__ */ n(zv, { compact: b }),
|
|
21040
21043
|
/* @__PURE__ */ n(
|
|
21041
|
-
|
|
21044
|
+
Fv,
|
|
21042
21045
|
{
|
|
21043
21046
|
disclaimer: i,
|
|
21044
21047
|
freedomOfInformation: l,
|
|
@@ -21052,10 +21055,10 @@ const Nr = "ucl-uikit-footer__column", Cv = ({
|
|
|
21052
21055
|
]
|
|
21053
21056
|
}
|
|
21054
21057
|
);
|
|
21055
|
-
},
|
|
21056
|
-
Zl.Column =
|
|
21057
|
-
Zl.NavLink =
|
|
21058
|
-
const Ur = "ucl-divider",
|
|
21058
|
+
}, Tv = N(Nv), Zl = Tv;
|
|
21059
|
+
Zl.Column = Lv;
|
|
21060
|
+
Zl.NavLink = Hv;
|
|
21061
|
+
const Ur = "ucl-divider", Rv = ({ testId: e = Ur, className: t, ...o }) => {
|
|
21059
21062
|
const [r] = I(), i = u`
|
|
21060
21063
|
margin: 0;
|
|
21061
21064
|
height: 1px;
|
|
@@ -21071,7 +21074,7 @@ const Ur = "ucl-divider", Tv = ({ testId: e = Ur, className: t, ...o }) => {
|
|
|
21071
21074
|
...o
|
|
21072
21075
|
}
|
|
21073
21076
|
);
|
|
21074
|
-
}, jr = "ucl-uikit-header__menu",
|
|
21077
|
+
}, jr = "ucl-uikit-header__menu", Vv = ({
|
|
21075
21078
|
testId: e = jr,
|
|
21076
21079
|
className: t,
|
|
21077
21080
|
children: o,
|
|
@@ -21094,7 +21097,7 @@ const Ur = "ucl-divider", Tv = ({ testId: e = Ur, className: t, ...o }) => {
|
|
|
21094
21097
|
children: o
|
|
21095
21098
|
}
|
|
21096
21099
|
);
|
|
21097
|
-
}, Jr = "ucl-uikit-header",
|
|
21100
|
+
}, Jr = "ucl-uikit-header", Ov = 72, Zv = 48, qv = 3, Pv = ({
|
|
21098
21101
|
title: e,
|
|
21099
21102
|
fixed: t = !1,
|
|
21100
21103
|
titleAs: o = "div",
|
|
@@ -21121,17 +21124,17 @@ const Ur = "ucl-divider", Tv = ({ testId: e = Ur, className: t, ...o }) => {
|
|
|
21121
21124
|
display: flex;
|
|
21122
21125
|
justify-content: center;
|
|
21123
21126
|
align-items: center;
|
|
21124
|
-
height: ${
|
|
21127
|
+
height: ${Zv}px;
|
|
21125
21128
|
|
|
21126
21129
|
@media (min-width: ${f.breakpoints.desktop}px) {
|
|
21127
|
-
height: ${
|
|
21130
|
+
height: ${Ov}px;
|
|
21128
21131
|
}
|
|
21129
21132
|
`, b = u`
|
|
21130
21133
|
position: fixed;
|
|
21131
21134
|
left: 0;
|
|
21132
21135
|
top: 0;
|
|
21133
21136
|
width: 100%;
|
|
21134
|
-
z-index: ${
|
|
21137
|
+
z-index: ${qv};
|
|
21135
21138
|
`, y = k(Jr, m, t && b, s), v = u`
|
|
21136
21139
|
position: absolute;
|
|
21137
21140
|
left: 16px;
|
|
@@ -21204,9 +21207,9 @@ const Ur = "ucl-divider", Tv = ({ testId: e = Ur, className: t, ...o }) => {
|
|
|
21204
21207
|
]
|
|
21205
21208
|
}
|
|
21206
21209
|
);
|
|
21207
|
-
},
|
|
21208
|
-
|
|
21209
|
-
const Yr = "ucl-uikit-header__menu-container",
|
|
21210
|
+
}, Uv = N(Pv), jv = Uv;
|
|
21211
|
+
jv.Menu = Vv;
|
|
21212
|
+
const Yr = "ucl-uikit-header__menu-container", Jv = ({
|
|
21210
21213
|
testId: e = Yr,
|
|
21211
21214
|
className: t,
|
|
21212
21215
|
children: o,
|
|
@@ -21228,7 +21231,7 @@ const Yr = "ucl-uikit-header__menu-container", jv = ({
|
|
|
21228
21231
|
children: o
|
|
21229
21232
|
}
|
|
21230
21233
|
);
|
|
21231
|
-
}, Qr = "ucl-uikit-header__item",
|
|
21234
|
+
}, Qr = "ucl-uikit-header__item", Yv = ({
|
|
21232
21235
|
testId: e = Qr,
|
|
21233
21236
|
className: t,
|
|
21234
21237
|
children: o,
|
|
@@ -21253,7 +21256,7 @@ const Yr = "ucl-uikit-header__menu-container", jv = ({
|
|
|
21253
21256
|
children: o
|
|
21254
21257
|
}
|
|
21255
21258
|
);
|
|
21256
|
-
}, Gr = "ucl-uikit-header__title",
|
|
21259
|
+
}, Gr = "ucl-uikit-header__title", Qv = ({
|
|
21257
21260
|
title: e,
|
|
21258
21261
|
as: t = "span",
|
|
21259
21262
|
testId: o = Gr,
|
|
@@ -21291,7 +21294,7 @@ const Yr = "ucl-uikit-header__menu-container", jv = ({
|
|
|
21291
21294
|
children: e
|
|
21292
21295
|
}
|
|
21293
21296
|
);
|
|
21294
|
-
}, Kr = "ucl-uikit-header__logo",
|
|
21297
|
+
}, Kr = "ucl-uikit-header__logo", Gv = ({
|
|
21295
21298
|
linkHref: e,
|
|
21296
21299
|
linkProps: t,
|
|
21297
21300
|
testId: o = Kr,
|
|
@@ -21343,7 +21346,7 @@ const Yr = "ucl-uikit-header__menu-container", jv = ({
|
|
|
21343
21346
|
...i
|
|
21344
21347
|
}
|
|
21345
21348
|
);
|
|
21346
|
-
}, Xr = "ucl-uikit-header__border",
|
|
21349
|
+
}, Xr = "ucl-uikit-header__border", Kv = ({
|
|
21347
21350
|
testId: e = Xr,
|
|
21348
21351
|
className: t,
|
|
21349
21352
|
...o
|
|
@@ -21379,7 +21382,7 @@ const Yr = "ucl-uikit-header__menu-container", jv = ({
|
|
|
21379
21382
|
children: /* @__PURE__ */ n("div", { className: a })
|
|
21380
21383
|
}
|
|
21381
21384
|
);
|
|
21382
|
-
},
|
|
21385
|
+
}, Xv = 78, $v = 48, $r = "ucl-uikit-header", _v = ({
|
|
21383
21386
|
title: e,
|
|
21384
21387
|
titleAs: t = "div",
|
|
21385
21388
|
titleClassName: o,
|
|
@@ -21402,12 +21405,12 @@ const Yr = "ucl-uikit-header__menu-container", jv = ({
|
|
|
21402
21405
|
color: ${p.color.text.inverted};
|
|
21403
21406
|
display: flex;
|
|
21404
21407
|
align-items: center;
|
|
21405
|
-
height: ${
|
|
21408
|
+
height: ${$v}px;
|
|
21406
21409
|
box-sizing: border-box;
|
|
21407
21410
|
padding: 0 ${p.padding.p16} 0 ${p.padding.p40};
|
|
21408
21411
|
|
|
21409
21412
|
@media (min-width: ${p.breakpoints.desktop}px) {
|
|
21410
|
-
height: ${
|
|
21413
|
+
height: ${Xv}px;
|
|
21411
21414
|
padding: 0 ${p.padding.p48} 0 ${p.padding.p64};
|
|
21412
21415
|
border-bottom: 1px solid ${p.colour.border.default};
|
|
21413
21416
|
}
|
|
@@ -21419,16 +21422,16 @@ const Yr = "ucl-uikit-header__menu-container", jv = ({
|
|
|
21419
21422
|
"data-testid": a,
|
|
21420
21423
|
...s,
|
|
21421
21424
|
children: [
|
|
21422
|
-
/* @__PURE__ */ n(
|
|
21425
|
+
/* @__PURE__ */ n(Kv, {}),
|
|
21423
21426
|
/* @__PURE__ */ n(
|
|
21424
|
-
|
|
21427
|
+
Gv,
|
|
21425
21428
|
{
|
|
21426
21429
|
linkHref: i,
|
|
21427
21430
|
linkProps: l
|
|
21428
21431
|
}
|
|
21429
21432
|
),
|
|
21430
21433
|
/* @__PURE__ */ n(
|
|
21431
|
-
|
|
21434
|
+
Qv,
|
|
21432
21435
|
{
|
|
21433
21436
|
className: o,
|
|
21434
21437
|
title: e,
|
|
@@ -21440,10 +21443,10 @@ const Yr = "ucl-uikit-header__menu-container", jv = ({
|
|
|
21440
21443
|
]
|
|
21441
21444
|
}
|
|
21442
21445
|
);
|
|
21443
|
-
},
|
|
21444
|
-
ql.MenuContainer =
|
|
21445
|
-
ql.Item =
|
|
21446
|
-
const _r = "ucl-uikit-header__bottom--breadcrumbs",
|
|
21446
|
+
}, e6 = N(_v), ql = e6;
|
|
21447
|
+
ql.MenuContainer = Jv;
|
|
21448
|
+
ql.Item = Yv;
|
|
21449
|
+
const _r = "ucl-uikit-header__bottom--breadcrumbs", t6 = ({
|
|
21447
21450
|
testId: e = _r,
|
|
21448
21451
|
className: t,
|
|
21449
21452
|
children: o,
|
|
@@ -21472,7 +21475,7 @@ const _r = "ucl-uikit-header__bottom--breadcrumbs", e6 = ({
|
|
|
21472
21475
|
children: /* @__PURE__ */ n("ul", { className: d, children: o })
|
|
21473
21476
|
}
|
|
21474
21477
|
);
|
|
21475
|
-
},
|
|
21478
|
+
}, o6 = N(t6), ei = "ucl-uikit-header__avatar", n6 = ({
|
|
21476
21479
|
heading: e,
|
|
21477
21480
|
subheading: t,
|
|
21478
21481
|
name: o,
|
|
@@ -21572,7 +21575,7 @@ const _r = "ucl-uikit-header__bottom--breadcrumbs", e6 = ({
|
|
|
21572
21575
|
]
|
|
21573
21576
|
}
|
|
21574
21577
|
);
|
|
21575
|
-
},
|
|
21578
|
+
}, r6 = N(n6), ti = "ucl-uikit-header__breadcrumb", i6 = ({
|
|
21576
21579
|
link: e = !1,
|
|
21577
21580
|
testId: t = ti,
|
|
21578
21581
|
className: o,
|
|
@@ -21622,8 +21625,8 @@ const _r = "ucl-uikit-header__bottom--breadcrumbs", e6 = ({
|
|
|
21622
21625
|
]
|
|
21623
21626
|
}
|
|
21624
21627
|
);
|
|
21625
|
-
},
|
|
21626
|
-
testId: e =
|
|
21628
|
+
}, l6 = N(i6), a6 = "ucl-uikit-header__menu", Pl = ({
|
|
21629
|
+
testId: e = a6,
|
|
21627
21630
|
children: t,
|
|
21628
21631
|
...o
|
|
21629
21632
|
}) => /* @__PURE__ */ n(
|
|
@@ -21633,7 +21636,7 @@ const _r = "ucl-uikit-header__bottom--breadcrumbs", e6 = ({
|
|
|
21633
21636
|
...o,
|
|
21634
21637
|
children: t
|
|
21635
21638
|
}
|
|
21636
|
-
), oi = "ucl-uikit-header", ni = 72,
|
|
21639
|
+
), oi = "ucl-uikit-header", ni = 72, s6 = 3, c6 = ({
|
|
21637
21640
|
variant: e,
|
|
21638
21641
|
title: t,
|
|
21639
21642
|
heading: o,
|
|
@@ -21665,7 +21668,7 @@ const _r = "ucl-uikit-header__bottom--breadcrumbs", e6 = ({
|
|
|
21665
21668
|
left: 0;
|
|
21666
21669
|
top: 0;
|
|
21667
21670
|
width: 100%;
|
|
21668
|
-
z-index: ${
|
|
21671
|
+
z-index: ${s6};
|
|
21669
21672
|
`, C = u`
|
|
21670
21673
|
position: sticky;
|
|
21671
21674
|
top: -${ni}px;
|
|
@@ -21728,9 +21731,9 @@ const _r = "ucl-uikit-header__bottom--breadcrumbs", e6 = ({
|
|
|
21728
21731
|
t && /* @__PURE__ */ n("h1", { className: H, children: t }),
|
|
21729
21732
|
d && /* @__PURE__ */ n("div", { className: F, children: y })
|
|
21730
21733
|
] }),
|
|
21731
|
-
e === "breadcrumbs" && /* @__PURE__ */ n(
|
|
21734
|
+
e === "breadcrumbs" && /* @__PURE__ */ n(o6, { children: v }),
|
|
21732
21735
|
e === "avatar" && /* @__PURE__ */ n(
|
|
21733
|
-
|
|
21736
|
+
r6,
|
|
21734
21737
|
{
|
|
21735
21738
|
heading: o,
|
|
21736
21739
|
subheading: r,
|
|
@@ -21742,10 +21745,10 @@ const _r = "ucl-uikit-header__bottom--breadcrumbs", e6 = ({
|
|
|
21742
21745
|
]
|
|
21743
21746
|
}
|
|
21744
21747
|
);
|
|
21745
|
-
},
|
|
21746
|
-
Ul.Breadcrumb =
|
|
21748
|
+
}, d6 = N(c6), Ul = d6;
|
|
21749
|
+
Ul.Breadcrumb = l6;
|
|
21747
21750
|
Ul.Menu = Pl;
|
|
21748
|
-
const ri = "ucl-uikit-table__head",
|
|
21751
|
+
const ri = "ucl-uikit-table__head", u6 = ({ className: e, children: t, ...o }) => {
|
|
21749
21752
|
const [r] = I(), i = u`
|
|
21750
21753
|
height: 40px;
|
|
21751
21754
|
background-color: #f8f8f8; // TODO: Add a design token
|
|
@@ -21761,7 +21764,7 @@ const ri = "ucl-uikit-table__head", d6 = ({ className: e, children: t, ...o }) =
|
|
|
21761
21764
|
children: /* @__PURE__ */ n("tr", { className: l, children: t })
|
|
21762
21765
|
}
|
|
21763
21766
|
);
|
|
21764
|
-
},
|
|
21767
|
+
}, h6 = ({ sortOrder: e, size: t = 16 }) => {
|
|
21765
21768
|
const [o] = I(), r = e === "asc" ? o.color.neutral.black : o.color.neutral.grey20, i = e === "desc" ? o.color.neutral.black : o.color.neutral.grey20;
|
|
21766
21769
|
return /* @__PURE__ */ n(
|
|
21767
21770
|
"svg",
|
|
@@ -21816,7 +21819,7 @@ const ri = "ucl-uikit-table__head", d6 = ({ className: e, children: t, ...o }) =
|
|
|
21816
21819
|
] })
|
|
21817
21820
|
}
|
|
21818
21821
|
);
|
|
21819
|
-
}, ii = "ucl-uikit-table__head-cell-content",
|
|
21822
|
+
}, ii = "ucl-uikit-table__head-cell-content", f6 = ({
|
|
21820
21823
|
variant: e,
|
|
21821
21824
|
sort: t,
|
|
21822
21825
|
showSortIcon: o,
|
|
@@ -21844,7 +21847,7 @@ const ri = "ucl-uikit-table__head", d6 = ({ className: e, children: t, ...o }) =
|
|
|
21844
21847
|
children: [
|
|
21845
21848
|
e === "default" && /* @__PURE__ */ g(Re, { children: [
|
|
21846
21849
|
a,
|
|
21847
|
-
o && /* @__PURE__ */ n(
|
|
21850
|
+
o && /* @__PURE__ */ n(h6, { sortOrder: t })
|
|
21848
21851
|
] }),
|
|
21849
21852
|
e === "checkbox" && /* @__PURE__ */ n(
|
|
21850
21853
|
on,
|
|
@@ -21857,7 +21860,7 @@ const ri = "ucl-uikit-table__head", d6 = ({ className: e, children: t, ...o }) =
|
|
|
21857
21860
|
]
|
|
21858
21861
|
}
|
|
21859
21862
|
);
|
|
21860
|
-
}, Wo = "ucl-uikit-table__head-cell",
|
|
21863
|
+
}, Wo = "ucl-uikit-table__head-cell", p6 = ({
|
|
21861
21864
|
variant: e = "default",
|
|
21862
21865
|
accessor: t,
|
|
21863
21866
|
sort: o = null,
|
|
@@ -21902,7 +21905,7 @@ const ri = "ucl-uikit-table__head", d6 = ({ className: e, children: t, ...o }) =
|
|
|
21902
21905
|
"aria-sort": m ? o === "asc" ? "ascending" : o === "desc" ? "descending" : "none" : void 0,
|
|
21903
21906
|
...h,
|
|
21904
21907
|
children: /* @__PURE__ */ n(
|
|
21905
|
-
|
|
21908
|
+
f6,
|
|
21906
21909
|
{
|
|
21907
21910
|
variant: e,
|
|
21908
21911
|
sort: o,
|
|
@@ -21915,15 +21918,15 @@ const ri = "ucl-uikit-table__head", d6 = ({ className: e, children: t, ...o }) =
|
|
|
21915
21918
|
)
|
|
21916
21919
|
}
|
|
21917
21920
|
);
|
|
21918
|
-
},
|
|
21921
|
+
}, g6 = "ucl-uikit-table__body", m6 = ({ className: e, children: t, ...o }) => /* @__PURE__ */ n(
|
|
21919
21922
|
"tbody",
|
|
21920
21923
|
{
|
|
21921
21924
|
className: e,
|
|
21922
|
-
"data-testid":
|
|
21925
|
+
"data-testid": g6,
|
|
21923
21926
|
...o,
|
|
21924
21927
|
children: t
|
|
21925
21928
|
}
|
|
21926
|
-
), li = "ucl-uikit-table__row",
|
|
21929
|
+
), li = "ucl-uikit-table__row", y6 = ({
|
|
21927
21930
|
selected: e = !1,
|
|
21928
21931
|
className: t,
|
|
21929
21932
|
children: o,
|
|
@@ -21953,7 +21956,7 @@ const ri = "ucl-uikit-table__head", d6 = ({ className: e, children: t, ...o }) =
|
|
|
21953
21956
|
children: o
|
|
21954
21957
|
}
|
|
21955
21958
|
);
|
|
21956
|
-
}, ai = "ucl-uikit-table__cell-content",
|
|
21959
|
+
}, ai = "ucl-uikit-table__cell-content", b6 = ({
|
|
21957
21960
|
variant: e,
|
|
21958
21961
|
icon: t,
|
|
21959
21962
|
checked: o,
|
|
@@ -22023,7 +22026,7 @@ const ri = "ucl-uikit-table__head", d6 = ({ className: e, children: t, ...o }) =
|
|
|
22023
22026
|
]
|
|
22024
22027
|
}
|
|
22025
22028
|
);
|
|
22026
|
-
}, Eo = "ucl-uikit-table__cell",
|
|
22029
|
+
}, Eo = "ucl-uikit-table__cell", v6 = ({
|
|
22027
22030
|
variant: e = "default",
|
|
22028
22031
|
icon: t,
|
|
22029
22032
|
onCheck: o,
|
|
@@ -22059,7 +22062,7 @@ const ri = "ucl-uikit-table__head", d6 = ({ className: e, children: t, ...o }) =
|
|
|
22059
22062
|
"data-testid": l,
|
|
22060
22063
|
...p,
|
|
22061
22064
|
children: /* @__PURE__ */ n(
|
|
22062
|
-
|
|
22065
|
+
b6,
|
|
22063
22066
|
{
|
|
22064
22067
|
variant: e,
|
|
22065
22068
|
icon: t,
|
|
@@ -22098,12 +22101,12 @@ const ri = "ucl-uikit-table__head", d6 = ({ className: e, children: t, ...o }) =
|
|
|
22098
22101
|
}
|
|
22099
22102
|
);
|
|
22100
22103
|
};
|
|
22101
|
-
Vt.Head =
|
|
22102
|
-
Vt.HeadCell =
|
|
22103
|
-
Vt.Body =
|
|
22104
|
-
Vt.Row =
|
|
22105
|
-
Vt.Cell =
|
|
22106
|
-
const ci = "ucl-uikit-alert__message",
|
|
22104
|
+
Vt.Head = u6;
|
|
22105
|
+
Vt.HeadCell = p6;
|
|
22106
|
+
Vt.Body = m6;
|
|
22107
|
+
Vt.Row = y6;
|
|
22108
|
+
Vt.Cell = v6;
|
|
22109
|
+
const ci = "ucl-uikit-alert__message", w6 = ({
|
|
22107
22110
|
testId: e = ci,
|
|
22108
22111
|
className: t,
|
|
22109
22112
|
children: o
|
|
@@ -22122,9 +22125,9 @@ const ci = "ucl-uikit-alert__message", v6 = ({
|
|
|
22122
22125
|
children: o
|
|
22123
22126
|
}
|
|
22124
22127
|
);
|
|
22125
|
-
},
|
|
22128
|
+
}, x6 = "ucl-uikit-alert__title", k6 = ({
|
|
22126
22129
|
children: e,
|
|
22127
|
-
testId: t =
|
|
22130
|
+
testId: t = x6
|
|
22128
22131
|
}) => {
|
|
22129
22132
|
const o = u`
|
|
22130
22133
|
margin: 0 0 ${de.margin.m8} 0;
|
|
@@ -22141,14 +22144,14 @@ const ci = "ucl-uikit-alert__message", v6 = ({
|
|
|
22141
22144
|
children: e
|
|
22142
22145
|
}
|
|
22143
22146
|
);
|
|
22144
|
-
},
|
|
22147
|
+
}, S6 = (e) => e.charAt(0).toUpperCase() + e.slice(1), di = "ucl-uikit-alert", A6 = Qe(null), rn = ({
|
|
22145
22148
|
type: e,
|
|
22146
22149
|
children: t,
|
|
22147
22150
|
testId: o = di,
|
|
22148
22151
|
className: r,
|
|
22149
22152
|
...i
|
|
22150
22153
|
}) => {
|
|
22151
|
-
const l =
|
|
22154
|
+
const l = S6(e), [a] = I(), { padding: d } = a, c = u`
|
|
22152
22155
|
display: flex;
|
|
22153
22156
|
font-family: ${a.font.family.primary};
|
|
22154
22157
|
align-items: flex-start;
|
|
@@ -22196,7 +22199,7 @@ const ci = "ucl-uikit-alert__message", v6 = ({
|
|
|
22196
22199
|
warning: z.AlertTriangle,
|
|
22197
22200
|
error: z.XCircle
|
|
22198
22201
|
}[e];
|
|
22199
|
-
return /* @__PURE__ */ n(
|
|
22202
|
+
return /* @__PURE__ */ n(A6.Provider, { value: { type: e }, children: /* @__PURE__ */ g(
|
|
22200
22203
|
"div",
|
|
22201
22204
|
{
|
|
22202
22205
|
className: m,
|
|
@@ -22215,15 +22218,15 @@ const ci = "ucl-uikit-alert__message", v6 = ({
|
|
|
22215
22218
|
]
|
|
22216
22219
|
}
|
|
22217
22220
|
) });
|
|
22218
|
-
},
|
|
22219
|
-
rn.Title =
|
|
22220
|
-
rn.Message =
|
|
22221
|
-
const jl = Qe(void 0),
|
|
22221
|
+
}, n5 = rn;
|
|
22222
|
+
rn.Title = k6;
|
|
22223
|
+
rn.Message = w6;
|
|
22224
|
+
const jl = Qe(void 0), C6 = () => {
|
|
22222
22225
|
const e = dt(jl);
|
|
22223
22226
|
if (!e)
|
|
22224
22227
|
throw new Error("Tab components must be used within a Tabs component");
|
|
22225
22228
|
return e;
|
|
22226
|
-
}, ui = "ucl-uikit-tabs__tab",
|
|
22229
|
+
}, ui = "ucl-uikit-tabs__tab", M6 = ({
|
|
22227
22230
|
testId: e = ui,
|
|
22228
22231
|
className: t,
|
|
22229
22232
|
label: o,
|
|
@@ -22232,7 +22235,7 @@ const jl = Qe(void 0), A6 = () => {
|
|
|
22232
22235
|
ref: l,
|
|
22233
22236
|
...a
|
|
22234
22237
|
}) => {
|
|
22235
|
-
const [d] = I(), { activeTab: c, setActiveTab: s, fullWidth: p, color: h } =
|
|
22238
|
+
const [d] = I(), { activeTab: c, setActiveTab: s, fullWidth: p, color: h } = C6(), f = c === r, m = u`
|
|
22236
22239
|
background: transparent;
|
|
22237
22240
|
border: none;
|
|
22238
22241
|
cursor: pointer;
|
|
@@ -22283,7 +22286,7 @@ const jl = Qe(void 0), A6 = () => {
|
|
|
22283
22286
|
]
|
|
22284
22287
|
}
|
|
22285
22288
|
);
|
|
22286
|
-
},
|
|
22289
|
+
}, L6 = N(M6), hi = "ucl-uikit-tabs", I6 = ({
|
|
22287
22290
|
activeTab: e,
|
|
22288
22291
|
onChange: t,
|
|
22289
22292
|
fullWidth: o = !0,
|
|
@@ -22323,9 +22326,9 @@ const jl = Qe(void 0), A6 = () => {
|
|
|
22323
22326
|
)
|
|
22324
22327
|
}
|
|
22325
22328
|
);
|
|
22326
|
-
},
|
|
22327
|
-
|
|
22328
|
-
const fi = "ucl-uikit-accordion__heading", pi = "ucl-uikit-accordion__heading__icon",
|
|
22329
|
+
}, H6 = N(I6);
|
|
22330
|
+
H6.Tab = L6;
|
|
22331
|
+
const fi = "ucl-uikit-accordion__heading", pi = "ucl-uikit-accordion__heading__icon", W6 = ({
|
|
22329
22332
|
children: e,
|
|
22330
22333
|
as: t = "div",
|
|
22331
22334
|
testId: o = fi,
|
|
@@ -22399,7 +22402,7 @@ const fi = "ucl-uikit-accordion__heading", pi = "ucl-uikit-accordion__heading__i
|
|
|
22399
22402
|
]
|
|
22400
22403
|
}
|
|
22401
22404
|
);
|
|
22402
|
-
}, gi = "ucl-uikit-accordion__panel",
|
|
22405
|
+
}, gi = "ucl-uikit-accordion__panel", E6 = ({
|
|
22403
22406
|
children: e,
|
|
22404
22407
|
className: t,
|
|
22405
22408
|
testId: o = gi
|
|
@@ -22499,9 +22502,9 @@ const fi = "ucl-uikit-accordion__heading", pi = "ucl-uikit-accordion__heading__i
|
|
|
22499
22502
|
}
|
|
22500
22503
|
);
|
|
22501
22504
|
};
|
|
22502
|
-
Ql.Heading =
|
|
22503
|
-
Ql.Panel =
|
|
22504
|
-
const
|
|
22505
|
+
Ql.Heading = W6;
|
|
22506
|
+
Ql.Panel = E6;
|
|
22507
|
+
const F6 = (e, t, o) => {
|
|
22505
22508
|
if (t <= o)
|
|
22506
22509
|
return Array.from(
|
|
22507
22510
|
{ length: t },
|
|
@@ -22521,7 +22524,7 @@ const E6 = (e, t, o) => {
|
|
|
22521
22524
|
for (let c = d; c <= a; c++)
|
|
22522
22525
|
r.push(c);
|
|
22523
22526
|
return a < t - 1 && r.push("...2"), r.push(t), r;
|
|
22524
|
-
},
|
|
22527
|
+
}, B6 = [
|
|
22525
22528
|
"a[href]",
|
|
22526
22529
|
"button:not([disabled])",
|
|
22527
22530
|
"textarea:not([disabled])",
|
|
@@ -22542,7 +22545,7 @@ const E6 = (e, t, o) => {
|
|
|
22542
22545
|
}) => {
|
|
22543
22546
|
const a = ue(null), d = Ve(() => {
|
|
22544
22547
|
if (!t.current) return [];
|
|
22545
|
-
const s = t.current.querySelectorAll(
|
|
22548
|
+
const s = t.current.querySelectorAll(B6);
|
|
22546
22549
|
return Array.from(s);
|
|
22547
22550
|
}, [t]), c = Ve(
|
|
22548
22551
|
(s) => {
|
|
@@ -22585,8 +22588,8 @@ const E6 = (e, t, o) => {
|
|
|
22585
22588
|
return () => clearTimeout(s);
|
|
22586
22589
|
}
|
|
22587
22590
|
}, [e, r, i]);
|
|
22588
|
-
}, yi = "ucl-ukit-pagination__controls",
|
|
22589
|
-
maxNumberButtons: e =
|
|
22591
|
+
}, yi = "ucl-ukit-pagination__controls", z6 = 9, D6 = ({
|
|
22592
|
+
maxNumberButtons: e = z6,
|
|
22590
22593
|
testId: t = yi,
|
|
22591
22594
|
className: o
|
|
22592
22595
|
}) => {
|
|
@@ -22603,7 +22606,7 @@ const E6 = (e, t, o) => {
|
|
|
22603
22606
|
);
|
|
22604
22607
|
if (!l)
|
|
22605
22608
|
return null;
|
|
22606
|
-
const { offset: d, limit: c, total: s } = l, p = Math.ceil(s / c), h = Math.floor(d / c) + 1, f =
|
|
22609
|
+
const { offset: d, limit: c, total: s } = l, p = Math.ceil(s / c), h = Math.floor(d / c) + 1, f = F6(
|
|
22607
22610
|
h,
|
|
22608
22611
|
p,
|
|
22609
22612
|
i ? e : 5
|
|
@@ -22730,7 +22733,7 @@ const E6 = (e, t, o) => {
|
|
|
22730
22733
|
] })
|
|
22731
22734
|
}
|
|
22732
22735
|
);
|
|
22733
|
-
},
|
|
22736
|
+
}, N6 = N(D6), T6 = "ucl-uikit-pagination__info", R6 = ({
|
|
22734
22737
|
format: e = "pages",
|
|
22735
22738
|
itemsPluralName: t,
|
|
22736
22739
|
testId: o,
|
|
@@ -22753,7 +22756,7 @@ const E6 = (e, t, o) => {
|
|
|
22753
22756
|
@media (min-width: ${l.breakpoints.tablet}px) {
|
|
22754
22757
|
margin: ${l.margin.m24} 0;
|
|
22755
22758
|
}
|
|
22756
|
-
`, v = k(
|
|
22759
|
+
`, v = k(T6, y, r);
|
|
22757
22760
|
return /* @__PURE__ */ n(
|
|
22758
22761
|
"div",
|
|
22759
22762
|
{
|
|
@@ -22765,7 +22768,7 @@ const E6 = (e, t, o) => {
|
|
|
22765
22768
|
children: b
|
|
22766
22769
|
}
|
|
22767
22770
|
);
|
|
22768
|
-
},
|
|
22771
|
+
}, V6 = N(R6), O6 = "ucl-uikit-pagination", ln = Qe(void 0), Z6 = ({
|
|
22769
22772
|
offset: e,
|
|
22770
22773
|
limit: t,
|
|
22771
22774
|
total: o,
|
|
@@ -22783,7 +22786,7 @@ const E6 = (e, t, o) => {
|
|
|
22783
22786
|
}, p = u`
|
|
22784
22787
|
margin-left: auto;
|
|
22785
22788
|
margin-right: auto;
|
|
22786
|
-
`, h = k(
|
|
22789
|
+
`, h = k(O6, p, ke(d, c), l);
|
|
22787
22790
|
return /* @__PURE__ */ n(ln.Provider, { value: s, children: /* @__PURE__ */ n(
|
|
22788
22791
|
"div",
|
|
22789
22792
|
{
|
|
@@ -22793,10 +22796,10 @@ const E6 = (e, t, o) => {
|
|
|
22793
22796
|
children: a
|
|
22794
22797
|
}
|
|
22795
22798
|
) });
|
|
22796
|
-
}, Kl =
|
|
22797
|
-
Kl.Controls =
|
|
22798
|
-
Kl.Info =
|
|
22799
|
-
const bi = "ucl-uikit-dialog__header",
|
|
22799
|
+
}, Kl = Z6;
|
|
22800
|
+
Kl.Controls = N6;
|
|
22801
|
+
Kl.Info = V6;
|
|
22802
|
+
const bi = "ucl-uikit-dialog__header", q6 = ({
|
|
22800
22803
|
decoration: e,
|
|
22801
22804
|
headingProps: t,
|
|
22802
22805
|
closeButtonStopPropagation: o = !0,
|
|
@@ -22851,7 +22854,7 @@ const bi = "ucl-uikit-dialog__header", Z6 = ({
|
|
|
22851
22854
|
]
|
|
22852
22855
|
}
|
|
22853
22856
|
);
|
|
22854
|
-
}, vi = "ucl-uikit-dialog__body",
|
|
22857
|
+
}, vi = "ucl-uikit-dialog__body", P6 = ({
|
|
22855
22858
|
children: e,
|
|
22856
22859
|
testId: t = vi,
|
|
22857
22860
|
className: o
|
|
@@ -22869,7 +22872,7 @@ const bi = "ucl-uikit-dialog__header", Z6 = ({
|
|
|
22869
22872
|
children: e
|
|
22870
22873
|
}
|
|
22871
22874
|
);
|
|
22872
|
-
},
|
|
22875
|
+
}, U6 = N(P6), j6 = "ucl-uikit-dialog__footer", J6 = ({
|
|
22873
22876
|
primaryButton: e,
|
|
22874
22877
|
secondaryButton: t,
|
|
22875
22878
|
primaryButtonProps: o,
|
|
@@ -22889,7 +22892,7 @@ const bi = "ucl-uikit-dialog__header", Z6 = ({
|
|
|
22889
22892
|
`, v = u`
|
|
22890
22893
|
justify-content: space-between;
|
|
22891
22894
|
`, x = k(
|
|
22892
|
-
|
|
22895
|
+
j6,
|
|
22893
22896
|
m,
|
|
22894
22897
|
d && b,
|
|
22895
22898
|
c && y,
|
|
@@ -22925,7 +22928,7 @@ const bi = "ucl-uikit-dialog__header", Z6 = ({
|
|
|
22925
22928
|
]
|
|
22926
22929
|
}
|
|
22927
22930
|
);
|
|
22928
|
-
}, wi = "ucl-uikit-dialog", Ot = Qe({}),
|
|
22931
|
+
}, wi = "ucl-uikit-dialog", Ot = Qe({}), Y6 = ({
|
|
22929
22932
|
onClose: e,
|
|
22930
22933
|
onAction: t,
|
|
22931
22934
|
onSecondaryAction: o,
|
|
@@ -22944,7 +22947,7 @@ const bi = "ucl-uikit-dialog__header", Z6 = ({
|
|
|
22944
22947
|
box-shadow: ${d.boxShadow.x2y4};
|
|
22945
22948
|
`, f = k(wi, h, i);
|
|
22946
22949
|
return /* @__PURE__ */ n(Ot, { value: p, children: /* @__PURE__ */ n(
|
|
22947
|
-
|
|
22950
|
+
$6,
|
|
22948
22951
|
{
|
|
22949
22952
|
onClose: e,
|
|
22950
22953
|
testId: r,
|
|
@@ -22954,11 +22957,11 @@ const bi = "ucl-uikit-dialog__header", Z6 = ({
|
|
|
22954
22957
|
children: l
|
|
22955
22958
|
}
|
|
22956
22959
|
) });
|
|
22957
|
-
}, vt =
|
|
22958
|
-
vt.Header =
|
|
22959
|
-
vt.Body =
|
|
22960
|
-
vt.Footer =
|
|
22961
|
-
const xi = "ucl-uikit-base-dialog",
|
|
22960
|
+
}, vt = Y6;
|
|
22961
|
+
vt.Header = q6;
|
|
22962
|
+
vt.Body = U6;
|
|
22963
|
+
vt.Footer = J6;
|
|
22964
|
+
const xi = "ucl-uikit-base-dialog", Q6 = 495, G6 = 495, K6 = 740, X6 = ({
|
|
22962
22965
|
open: e = !1,
|
|
22963
22966
|
size: t = "medium",
|
|
22964
22967
|
modal: o = !0,
|
|
@@ -22977,9 +22980,9 @@ const xi = "ucl-uikit-base-dialog", Y6 = 495, Q6 = 495, G6 = 740, K6 = ({
|
|
|
22977
22980
|
...y
|
|
22978
22981
|
}) => {
|
|
22979
22982
|
const v = {
|
|
22980
|
-
small:
|
|
22981
|
-
medium:
|
|
22982
|
-
large:
|
|
22983
|
+
small: Q6,
|
|
22984
|
+
medium: G6,
|
|
22985
|
+
large: K6
|
|
22983
22986
|
}[t], [x] = I(), A = ue(null), C = ue(null), M = Ne(Ot), w = M == null ? void 0 : M.dialogHeaderId, E = M == null ? void 0 : M.dialogBodyId;
|
|
22984
22987
|
Gl({
|
|
22985
22988
|
isActive: e && o && !h,
|
|
@@ -23065,7 +23068,7 @@ const xi = "ucl-uikit-base-dialog", Y6 = 495, Q6 = 495, G6 = 740, K6 = ({
|
|
|
23065
23068
|
children: c
|
|
23066
23069
|
}
|
|
23067
23070
|
) : null;
|
|
23068
|
-
},
|
|
23071
|
+
}, $6 = N(X6), ki = "ucl-uikit-dialog--feedback", Fo = 72, r5 = ({
|
|
23069
23072
|
type: e,
|
|
23070
23073
|
heading: t,
|
|
23071
23074
|
buttonLabel: o,
|
|
@@ -23160,7 +23163,7 @@ const xi = "ucl-uikit-base-dialog", Y6 = 495, Q6 = 495, G6 = 740, K6 = ({
|
|
|
23160
23163
|
]
|
|
23161
23164
|
}
|
|
23162
23165
|
);
|
|
23163
|
-
}, Si = "ucl-uikit-radio",
|
|
23166
|
+
}, Si = "ucl-uikit-radio", _6 = Se(
|
|
23164
23167
|
({ checked: e, defaultChecked: t, disabled: o, testId: r = Si, className: i, ...l }, a) => {
|
|
23165
23168
|
const [d] = I(), c = e !== void 0, [s, p] = me(
|
|
23166
23169
|
t ?? !1
|
|
@@ -23247,7 +23250,7 @@ const xi = "ucl-uikit-base-dialog", Y6 = 495, Q6 = 495, G6 = 740, K6 = ({
|
|
|
23247
23250
|
h && /* @__PURE__ */ n("div", { className: M })
|
|
23248
23251
|
] });
|
|
23249
23252
|
}
|
|
23250
|
-
),
|
|
23253
|
+
), ew = N(_6), Ai = "ucl-uikit-labelled-radio", tw = Se(
|
|
23251
23254
|
({
|
|
23252
23255
|
id: e,
|
|
23253
23256
|
labelProps: t,
|
|
@@ -23307,7 +23310,7 @@ const xi = "ucl-uikit-base-dialog", Y6 = 495, Q6 = 495, G6 = 740, K6 = ({
|
|
|
23307
23310
|
"data-testid": o,
|
|
23308
23311
|
children: [
|
|
23309
23312
|
/* @__PURE__ */ n(
|
|
23310
|
-
|
|
23313
|
+
ew,
|
|
23311
23314
|
{
|
|
23312
23315
|
ref: b,
|
|
23313
23316
|
className: M,
|
|
@@ -23329,7 +23332,7 @@ const xi = "ucl-uikit-base-dialog", Y6 = 495, Q6 = 495, G6 = 740, K6 = ({
|
|
|
23329
23332
|
}
|
|
23330
23333
|
);
|
|
23331
23334
|
}
|
|
23332
|
-
),
|
|
23335
|
+
), i5 = N(tw), Xl = (e, t, o) => {
|
|
23333
23336
|
const r = (p) => (p.setHours(0, 0, 0, 0), p), i = /[-/ ]/, l = e.trim().split(i), a = parseInt(l[0], 10), d = parseInt(l[1], 10), c = parseInt(l[2], 10);
|
|
23334
23337
|
if (isNaN(a) || isNaN(d) || isNaN(c))
|
|
23335
23338
|
return null;
|
|
@@ -23341,7 +23344,7 @@ const xi = "ucl-uikit-base-dialog", Y6 = 495, Q6 = 495, G6 = 740, K6 = ({
|
|
|
23341
23344
|
), null) : s;
|
|
23342
23345
|
};
|
|
23343
23346
|
let it = null, pt = [], $t = !1, qo = "";
|
|
23344
|
-
const
|
|
23347
|
+
const ow = 100, nw = 1e3, rw = () => {
|
|
23345
23348
|
if (typeof document > "u" || it || !(document.body || document.documentElement)) return;
|
|
23346
23349
|
const t = document.createElement("div");
|
|
23347
23350
|
t.setAttribute("aria-live", "polite"), t.setAttribute("aria-atomic", "true"), t.setAttribute("role", "status"), t.setAttribute("data-testid", "aria-live-region"), t.style.position = "absolute", t.style.left = "-9999px", t.style.width = "1px", t.style.height = "1px", t.style.overflow = "hidden", document.body.appendChild(t), it = t;
|
|
@@ -23352,11 +23355,11 @@ const tw = 100, ow = 1e3, nw = () => {
|
|
|
23352
23355
|
qo = e, $t = !0, it.textContent = "", setTimeout(() => {
|
|
23353
23356
|
it && (it.textContent = e), setTimeout(() => {
|
|
23354
23357
|
$t = !1, $l();
|
|
23355
|
-
},
|
|
23356
|
-
},
|
|
23358
|
+
}, nw);
|
|
23359
|
+
}, ow);
|
|
23357
23360
|
}, Ci = (e, t = !1) => {
|
|
23358
|
-
typeof document > "u" || (it ||
|
|
23359
|
-
}, Mi = "ucl-uikit-datepicker",
|
|
23361
|
+
typeof document > "u" || (it || rw(), t && (pt.length = 0), !(!t && e === qo && pt.length === 0) && (pt.includes(e) || $t && qo === e || (pt.push(e), $l())));
|
|
23362
|
+
}, Mi = "ucl-uikit-datepicker", iw = ({
|
|
23360
23363
|
value: e = null,
|
|
23361
23364
|
onValueChange: t = () => {
|
|
23362
23365
|
},
|
|
@@ -23446,7 +23449,7 @@ const tw = 100, ow = 1e3, nw = () => {
|
|
|
23446
23449
|
...b,
|
|
23447
23450
|
children: [
|
|
23448
23451
|
/* @__PURE__ */ n(
|
|
23449
|
-
|
|
23452
|
+
lw,
|
|
23450
23453
|
{
|
|
23451
23454
|
inputValue: U,
|
|
23452
23455
|
onInputChange: j,
|
|
@@ -23476,7 +23479,7 @@ const tw = 100, ow = 1e3, nw = () => {
|
|
|
23476
23479
|
]
|
|
23477
23480
|
}
|
|
23478
23481
|
);
|
|
23479
|
-
}, Yt = "ucl-uikit-datepicker__visible-field",
|
|
23482
|
+
}, Yt = "ucl-uikit-datepicker__visible-field", lw = ({
|
|
23480
23483
|
inputValue: e,
|
|
23481
23484
|
onInputChange: t,
|
|
23482
23485
|
onInputKeyDown: o,
|
|
@@ -23538,7 +23541,7 @@ const tw = 100, ow = 1e3, nw = () => {
|
|
|
23538
23541
|
"data-testid": Yt,
|
|
23539
23542
|
children: [
|
|
23540
23543
|
/* @__PURE__ */ n(
|
|
23541
|
-
|
|
23544
|
+
aw,
|
|
23542
23545
|
{
|
|
23543
23546
|
value: e,
|
|
23544
23547
|
onChange: t,
|
|
@@ -23575,7 +23578,7 @@ const tw = 100, ow = 1e3, nw = () => {
|
|
|
23575
23578
|
]
|
|
23576
23579
|
}
|
|
23577
23580
|
);
|
|
23578
|
-
}, Li = "ucl-uikit-datepicker__input",
|
|
23581
|
+
}, Li = "ucl-uikit-datepicker__input", aw = ({
|
|
23579
23582
|
disabled: e,
|
|
23580
23583
|
placeholder: t = "DD/MM/YYYY",
|
|
23581
23584
|
inputMode: o = "numeric",
|
|
@@ -23638,7 +23641,7 @@ const tw = 100, ow = 1e3, nw = () => {
|
|
|
23638
23641
|
children: t
|
|
23639
23642
|
}
|
|
23640
23643
|
);
|
|
23641
|
-
},
|
|
23644
|
+
}, l5 = ({
|
|
23642
23645
|
value: e,
|
|
23643
23646
|
onValueChange: t,
|
|
23644
23647
|
minDate: o,
|
|
@@ -23648,7 +23651,7 @@ const tw = 100, ow = 1e3, nw = () => {
|
|
|
23648
23651
|
clearable: a,
|
|
23649
23652
|
...d
|
|
23650
23653
|
}) => /* @__PURE__ */ n(
|
|
23651
|
-
|
|
23654
|
+
iw,
|
|
23652
23655
|
{
|
|
23653
23656
|
value: e,
|
|
23654
23657
|
onValueChange: t,
|
|
@@ -23659,7 +23662,7 @@ const tw = 100, ow = 1e3, nw = () => {
|
|
|
23659
23662
|
clearable: a,
|
|
23660
23663
|
...d
|
|
23661
23664
|
}
|
|
23662
|
-
),
|
|
23665
|
+
), sw = (e) => e ? e.toLocaleDateString("sv-SE") : null, Hi = "ucl-uikit-native-datepicker", a5 = ({
|
|
23663
23666
|
value: e,
|
|
23664
23667
|
onValueChange: t,
|
|
23665
23668
|
minDate: o,
|
|
@@ -23700,7 +23703,7 @@ const tw = 100, ow = 1e3, nw = () => {
|
|
|
23700
23703
|
"input",
|
|
23701
23704
|
{
|
|
23702
23705
|
type: "date",
|
|
23703
|
-
value:
|
|
23706
|
+
value: sw(e) ?? "",
|
|
23704
23707
|
onChange: (f) => {
|
|
23705
23708
|
const m = f.target.value;
|
|
23706
23709
|
t == null || t(m ? new Date(m) : null, f);
|
|
@@ -23714,7 +23717,7 @@ const tw = 100, ow = 1e3, nw = () => {
|
|
|
23714
23717
|
...c
|
|
23715
23718
|
}
|
|
23716
23719
|
);
|
|
23717
|
-
}, Wi = "ucl-uikit-calendar__controls",
|
|
23720
|
+
}, Wi = "ucl-uikit-calendar__controls", cw = ({ month: e, changeMonth: t }) => {
|
|
23718
23721
|
const [o] = I(), r = u`
|
|
23719
23722
|
display: flex;
|
|
23720
23723
|
justify-content: space-between;
|
|
@@ -23774,15 +23777,15 @@ const tw = 100, ow = 1e3, nw = () => {
|
|
|
23774
23777
|
return isNaN(t.getTime()) ? (console.warn(
|
|
23775
23778
|
`Calendar: Invalid date string provided: "${e}". Expected format is ISO 8601 (YYYY-MM-DD)`
|
|
23776
23779
|
), null) : t;
|
|
23777
|
-
},
|
|
23780
|
+
}, dw = (e) => {
|
|
23778
23781
|
const t = new Date(e), r = (t.getDay() + 6) % 7;
|
|
23779
23782
|
return t.setDate(t.getDate() - r), t.setHours(0, 0, 0, 0), t;
|
|
23780
|
-
},
|
|
23783
|
+
}, uw = (e, t) => {
|
|
23781
23784
|
if (!e || e.length === 0)
|
|
23782
23785
|
return console.warn("Datepicker: No academic weeks provided"), [];
|
|
23783
23786
|
if (!t || !(t instanceof Date) || Number.isNaN(t.getTime()))
|
|
23784
23787
|
return console.warn("Datepicker: Invalid target date provided"), [];
|
|
23785
|
-
const o = t.getFullYear(), r = t.getMonth(), i = new Date(o, r, 1), l =
|
|
23788
|
+
const o = t.getFullYear(), r = t.getMonth(), i = new Date(o, r, 1), l = dw(i), a = [];
|
|
23786
23789
|
a.push(l);
|
|
23787
23790
|
const d = new Date(l);
|
|
23788
23791
|
for (d.setDate(l.getDate() + 7); d.getMonth() === r; )
|
|
@@ -23793,7 +23796,7 @@ const tw = 100, ow = 1e3, nw = () => {
|
|
|
23793
23796
|
);
|
|
23794
23797
|
return p == null ? void 0 : p.number;
|
|
23795
23798
|
});
|
|
23796
|
-
},
|
|
23799
|
+
}, hw = (e) => {
|
|
23797
23800
|
if (!e || !(e instanceof Date))
|
|
23798
23801
|
throw new Error("No date provided");
|
|
23799
23802
|
const t = e.getMonth(), o = new Date(
|
|
@@ -23849,8 +23852,8 @@ const tw = 100, ow = 1e3, nw = () => {
|
|
|
23849
23852
|
)
|
|
23850
23853
|
);
|
|
23851
23854
|
return r.unshift(...l), r.push(...p), r;
|
|
23852
|
-
}, Fi = "ucl-uikit-calendar__academic-weeks",
|
|
23853
|
-
const [o] = I(), r =
|
|
23855
|
+
}, Fi = "ucl-uikit-calendar__academic-weeks", fw = ({ date: e, weeks: t }) => {
|
|
23856
|
+
const [o] = I(), r = uw(t, e), i = u`
|
|
23854
23857
|
display: flex;
|
|
23855
23858
|
flex-direction: column;
|
|
23856
23859
|
padding-top: 32px;
|
|
@@ -23864,7 +23867,7 @@ const tw = 100, ow = 1e3, nw = () => {
|
|
|
23864
23867
|
"data-testid": Fi,
|
|
23865
23868
|
className: l,
|
|
23866
23869
|
children: r.map((a) => /* @__PURE__ */ n(
|
|
23867
|
-
|
|
23870
|
+
pw,
|
|
23868
23871
|
{
|
|
23869
23872
|
weekNumber: a
|
|
23870
23873
|
},
|
|
@@ -23872,7 +23875,7 @@ const tw = 100, ow = 1e3, nw = () => {
|
|
|
23872
23875
|
))
|
|
23873
23876
|
}
|
|
23874
23877
|
);
|
|
23875
|
-
}, Bi = "ucl-uikit-calendar__academic-week",
|
|
23878
|
+
}, Bi = "ucl-uikit-calendar__academic-week", pw = ({ weekNumber: e }) => {
|
|
23876
23879
|
const [t] = I(), o = u`
|
|
23877
23880
|
display: flex;
|
|
23878
23881
|
align-items: center;
|
|
@@ -23893,21 +23896,21 @@ const tw = 100, ow = 1e3, nw = () => {
|
|
|
23893
23896
|
}
|
|
23894
23897
|
);
|
|
23895
23898
|
}, zi = "ucl-uikit-calendar__grid";
|
|
23896
|
-
function
|
|
23899
|
+
function gw(e) {
|
|
23897
23900
|
const [t, o, r] = e.split("-").map(Number);
|
|
23898
23901
|
return new Date(t, o - 1, r);
|
|
23899
23902
|
}
|
|
23900
23903
|
function ea(e) {
|
|
23901
23904
|
return e.toISOString().split("T")[0];
|
|
23902
23905
|
}
|
|
23903
|
-
function
|
|
23906
|
+
function mw(e) {
|
|
23904
23907
|
const t = /* @__PURE__ */ new Map();
|
|
23905
23908
|
return e.forEach((o) => {
|
|
23906
|
-
const r =
|
|
23909
|
+
const r = gw(o.date), i = ea(r);
|
|
23907
23910
|
t.has(i) || t.set(i, []), t.get(i).push(o);
|
|
23908
23911
|
}), t;
|
|
23909
23912
|
}
|
|
23910
|
-
const
|
|
23913
|
+
const yw = ({
|
|
23911
23914
|
month: e,
|
|
23912
23915
|
pickedDate: t,
|
|
23913
23916
|
onDatePick: o = () => {
|
|
@@ -23917,7 +23920,7 @@ const mw = ({
|
|
|
23917
23920
|
events: l
|
|
23918
23921
|
}) => {
|
|
23919
23922
|
r && !isNaN(r.getTime()) && r.setHours(0, 0, 0, 0);
|
|
23920
|
-
const [a] = I(), d = ["M", "T", "W", "T", "F", "S", "S"], c =
|
|
23923
|
+
const [a] = I(), d = ["M", "T", "W", "T", "F", "S", "S"], c = hw(e), s = gt(() => mw(l), [l]), p = u`
|
|
23921
23924
|
display: grid;
|
|
23922
23925
|
grid-template-columns: repeat(7, 1fr);
|
|
23923
23926
|
gap: 0;
|
|
@@ -23933,7 +23936,7 @@ const mw = ({
|
|
|
23933
23936
|
"data-testid": zi,
|
|
23934
23937
|
children: [
|
|
23935
23938
|
d.map((f, m) => /* @__PURE__ */ n(
|
|
23936
|
-
|
|
23939
|
+
bw,
|
|
23937
23940
|
{
|
|
23938
23941
|
index: m,
|
|
23939
23942
|
day: f,
|
|
@@ -23944,7 +23947,7 @@ const mw = ({
|
|
|
23944
23947
|
c.map((f) => {
|
|
23945
23948
|
const m = ea(f), b = s.get(m) || [];
|
|
23946
23949
|
return /* @__PURE__ */ n(
|
|
23947
|
-
|
|
23950
|
+
vw,
|
|
23948
23951
|
{
|
|
23949
23952
|
date: f,
|
|
23950
23953
|
isSelected: (t == null ? void 0 : t.toDateString()) === f.toDateString(),
|
|
@@ -23960,7 +23963,7 @@ const mw = ({
|
|
|
23960
23963
|
]
|
|
23961
23964
|
}
|
|
23962
23965
|
);
|
|
23963
|
-
}, Di = "ucl-uikit-calendar__column-heading",
|
|
23966
|
+
}, Di = "ucl-uikit-calendar__column-heading", bw = ({ index: e, day: t, isWeekend: o }) => {
|
|
23964
23967
|
const [r] = I(), i = u`
|
|
23965
23968
|
display: flex;
|
|
23966
23969
|
align-items: center;
|
|
@@ -23979,7 +23982,7 @@ const mw = ({
|
|
|
23979
23982
|
},
|
|
23980
23983
|
e
|
|
23981
23984
|
);
|
|
23982
|
-
}, Ni = "ucl-uikit-calendar__day",
|
|
23985
|
+
}, Ni = "ucl-uikit-calendar__day", vw = ({
|
|
23983
23986
|
date: e,
|
|
23984
23987
|
onPick: t,
|
|
23985
23988
|
isSelected: o = !1,
|
|
@@ -24053,7 +24056,7 @@ const mw = ({
|
|
|
24053
24056
|
children: [
|
|
24054
24057
|
/* @__PURE__ */ n("div", { className: h, children: e.getDate() }),
|
|
24055
24058
|
/* @__PURE__ */ n("div", { className: f, children: c.map((b, y) => /* @__PURE__ */ n(
|
|
24056
|
-
|
|
24059
|
+
ww,
|
|
24057
24060
|
{
|
|
24058
24061
|
inverted: o,
|
|
24059
24062
|
inCurrentMonth: i
|
|
@@ -24063,7 +24066,7 @@ const mw = ({
|
|
|
24063
24066
|
]
|
|
24064
24067
|
}
|
|
24065
24068
|
);
|
|
24066
|
-
}, Ti = "ucl-uikit-calendar__event-dot",
|
|
24069
|
+
}, Ti = "ucl-uikit-calendar__event-dot", ww = ({ inverted: e, inCurrentMonth: t }) => {
|
|
24067
24070
|
const [o] = I(), r = t ? e ? o.colour.icon.inverse : o.colour.icon.brand : o.colour.icon.tertiary, i = u`
|
|
24068
24071
|
width: 6px;
|
|
24069
24072
|
height: 6px;
|
|
@@ -24077,7 +24080,7 @@ const mw = ({
|
|
|
24077
24080
|
className: l
|
|
24078
24081
|
}
|
|
24079
24082
|
);
|
|
24080
|
-
},
|
|
24083
|
+
}, xw = "ucl-uikit-calendar", ta = ({
|
|
24081
24084
|
pickedDate: e = null,
|
|
24082
24085
|
onDatePick: t,
|
|
24083
24086
|
minDate: o = null,
|
|
@@ -24085,7 +24088,7 @@ const mw = ({
|
|
|
24085
24088
|
events: i = [],
|
|
24086
24089
|
showAcademicWeeks: l = !1,
|
|
24087
24090
|
academicWeeks: a = [],
|
|
24088
|
-
testId: d =
|
|
24091
|
+
testId: d = xw,
|
|
24089
24092
|
className: c
|
|
24090
24093
|
}) => {
|
|
24091
24094
|
const [s] = I();
|
|
@@ -24126,7 +24129,7 @@ const mw = ({
|
|
|
24126
24129
|
"data-testid": d,
|
|
24127
24130
|
children: [
|
|
24128
24131
|
/* @__PURE__ */ n(
|
|
24129
|
-
|
|
24132
|
+
cw,
|
|
24130
24133
|
{
|
|
24131
24134
|
month: h,
|
|
24132
24135
|
changeMonth: y
|
|
@@ -24134,14 +24137,14 @@ const mw = ({
|
|
|
24134
24137
|
),
|
|
24135
24138
|
/* @__PURE__ */ g("div", { className: A, children: [
|
|
24136
24139
|
l && /* @__PURE__ */ n(
|
|
24137
|
-
|
|
24140
|
+
fw,
|
|
24138
24141
|
{
|
|
24139
24142
|
date: h,
|
|
24140
24143
|
weeks: a
|
|
24141
24144
|
}
|
|
24142
24145
|
),
|
|
24143
24146
|
/* @__PURE__ */ n(
|
|
24144
|
-
|
|
24147
|
+
yw,
|
|
24145
24148
|
{
|
|
24146
24149
|
month: h,
|
|
24147
24150
|
pickedDate: e,
|
|
@@ -24155,7 +24158,7 @@ const mw = ({
|
|
|
24155
24158
|
]
|
|
24156
24159
|
}
|
|
24157
24160
|
);
|
|
24158
|
-
}, Ri = "ucl-uikit-weekpicker",
|
|
24161
|
+
}, Ri = "ucl-uikit-weekpicker", kw = ({
|
|
24159
24162
|
value: e = null,
|
|
24160
24163
|
onValueChange: t = () => {
|
|
24161
24164
|
},
|
|
@@ -24268,7 +24271,7 @@ const mw = ({
|
|
|
24268
24271
|
}
|
|
24269
24272
|
),
|
|
24270
24273
|
/* @__PURE__ */ n(
|
|
24271
|
-
|
|
24274
|
+
Sw,
|
|
24272
24275
|
{
|
|
24273
24276
|
inputValue: T,
|
|
24274
24277
|
onInputChange: V,
|
|
@@ -24306,7 +24309,7 @@ const mw = ({
|
|
|
24306
24309
|
]
|
|
24307
24310
|
}
|
|
24308
24311
|
);
|
|
24309
|
-
}, Vi = "ucl-uikit-weekpicker__visible-field",
|
|
24312
|
+
}, Vi = "ucl-uikit-weekpicker__visible-field", Sw = ({
|
|
24310
24313
|
inputValue: e,
|
|
24311
24314
|
onInputChange: t,
|
|
24312
24315
|
onInputKeyDown: o,
|
|
@@ -24374,7 +24377,7 @@ const mw = ({
|
|
|
24374
24377
|
}
|
|
24375
24378
|
),
|
|
24376
24379
|
/* @__PURE__ */ n(
|
|
24377
|
-
|
|
24380
|
+
Aw,
|
|
24378
24381
|
{
|
|
24379
24382
|
value: e,
|
|
24380
24383
|
onChange: t,
|
|
@@ -24402,7 +24405,7 @@ const mw = ({
|
|
|
24402
24405
|
]
|
|
24403
24406
|
}
|
|
24404
24407
|
);
|
|
24405
|
-
}, Oi = "ucl-uikit-weekpicker__input",
|
|
24408
|
+
}, Oi = "ucl-uikit-weekpicker__input", Aw = ({
|
|
24406
24409
|
value: e,
|
|
24407
24410
|
onChange: t,
|
|
24408
24411
|
onKeyDown: o,
|
|
@@ -24466,7 +24469,7 @@ const mw = ({
|
|
|
24466
24469
|
"aria-label": `Currently selected date: ${e} - Week from ${x}. ${d ? `(Academic Week ${d})` : ""}`
|
|
24467
24470
|
}
|
|
24468
24471
|
);
|
|
24469
|
-
},
|
|
24472
|
+
}, s5 = ({
|
|
24470
24473
|
value: e,
|
|
24471
24474
|
onValueChange: t,
|
|
24472
24475
|
minDate: o,
|
|
@@ -24475,7 +24478,7 @@ const mw = ({
|
|
|
24475
24478
|
className: l,
|
|
24476
24479
|
...a
|
|
24477
24480
|
}) => /* @__PURE__ */ n(
|
|
24478
|
-
|
|
24481
|
+
kw,
|
|
24479
24482
|
{
|
|
24480
24483
|
value: e,
|
|
24481
24484
|
onValueChange: t,
|
|
@@ -24485,7 +24488,7 @@ const mw = ({
|
|
|
24485
24488
|
disabled: i,
|
|
24486
24489
|
...a
|
|
24487
24490
|
}
|
|
24488
|
-
), Zi = "ucl-uikit-fileinput",
|
|
24491
|
+
), Zi = "ucl-uikit-fileinput", c5 = ({
|
|
24489
24492
|
testId: e = Zi,
|
|
24490
24493
|
children: t,
|
|
24491
24494
|
labelId: o = "1",
|
|
@@ -24532,12 +24535,12 @@ const mw = ({
|
|
|
24532
24535
|
}
|
|
24533
24536
|
)
|
|
24534
24537
|
] });
|
|
24535
|
-
},
|
|
24538
|
+
}, Cw = (e) => {
|
|
24536
24539
|
if (!e)
|
|
24537
24540
|
return "";
|
|
24538
24541
|
const t = e.getHours().toString().padStart(2, "0"), o = e.getMinutes().toString().padStart(2, "0");
|
|
24539
24542
|
return `${t}:${o}`;
|
|
24540
|
-
}, qi = "ucl-uikit-timepicker",
|
|
24543
|
+
}, qi = "ucl-uikit-timepicker", d5 = ({
|
|
24541
24544
|
testId: e = qi,
|
|
24542
24545
|
value: t,
|
|
24543
24546
|
className: o,
|
|
@@ -24577,7 +24580,7 @@ const mw = ({
|
|
|
24577
24580
|
return /* @__PURE__ */ n(
|
|
24578
24581
|
"input",
|
|
24579
24582
|
{
|
|
24580
|
-
value:
|
|
24583
|
+
value: Cw(t ?? null),
|
|
24581
24584
|
onChange: c,
|
|
24582
24585
|
className: d,
|
|
24583
24586
|
"data-testid": e,
|
|
@@ -24585,9 +24588,9 @@ const mw = ({
|
|
|
24585
24588
|
...i
|
|
24586
24589
|
}
|
|
24587
24590
|
);
|
|
24588
|
-
}, Pi = "ucl-uikit-cookie-notice",
|
|
24589
|
-
policyHref: e =
|
|
24590
|
-
text: t =
|
|
24591
|
+
}, Pi = "ucl-uikit-cookie-notice", Mw = "https://www.ucl.ac.uk/legal-services/privacy/cookie-policy", Lw = "We use necessary cookies to manage your session and essential site functions. We also use Google Analytics cookies to understand how our site is used. You can accept or reject non-essential cookies.", u5 = ({
|
|
24592
|
+
policyHref: e = Mw,
|
|
24593
|
+
text: t = Lw,
|
|
24591
24594
|
onAccept: o,
|
|
24592
24595
|
onReject: r,
|
|
24593
24596
|
trapFocus: i = !1,
|
|
@@ -24668,7 +24671,7 @@ const mw = ({
|
|
|
24668
24671
|
]
|
|
24669
24672
|
}
|
|
24670
24673
|
);
|
|
24671
|
-
}, Ui = "ucl-uikit-search",
|
|
24674
|
+
}, Ui = "ucl-uikit-search", h5 = ({
|
|
24672
24675
|
placeholder: e = "",
|
|
24673
24676
|
testId: t = Ui,
|
|
24674
24677
|
onSearch: o,
|
|
@@ -24799,7 +24802,7 @@ const mw = ({
|
|
|
24799
24802
|
if (!e)
|
|
24800
24803
|
throw new Error("Dropdown components must be used within a Dropdown");
|
|
24801
24804
|
return e;
|
|
24802
|
-
},
|
|
24805
|
+
}, Iw = ({
|
|
24803
24806
|
defaultOpen: e = !1,
|
|
24804
24807
|
children: t
|
|
24805
24808
|
}) => {
|
|
@@ -24814,7 +24817,7 @@ const mw = ({
|
|
|
24814
24817
|
[o]
|
|
24815
24818
|
);
|
|
24816
24819
|
return /* @__PURE__ */ n(oa.Provider, { value: a, children: t });
|
|
24817
|
-
},
|
|
24820
|
+
}, Hw = "ucl-uikit-dropdown__trigger", Ww = ({ children: e }) => {
|
|
24818
24821
|
const { isOpen: t, toggle: o, triggerRef: r } = an();
|
|
24819
24822
|
if (!Gi(e))
|
|
24820
24823
|
return null;
|
|
@@ -24823,7 +24826,7 @@ const mw = ({
|
|
|
24823
24826
|
};
|
|
24824
24827
|
return Wt(e, {
|
|
24825
24828
|
ref: r,
|
|
24826
|
-
className: [
|
|
24829
|
+
className: [Hw, i.className].filter(Boolean).join(" "),
|
|
24827
24830
|
onClick: (c) => {
|
|
24828
24831
|
l == null || l(c), c.defaultPrevented || o();
|
|
24829
24832
|
},
|
|
@@ -24831,7 +24834,7 @@ const mw = ({
|
|
|
24831
24834
|
"aria-haspopup": i["aria-haspopup"] ?? "menu",
|
|
24832
24835
|
"aria-expanded": t
|
|
24833
24836
|
});
|
|
24834
|
-
},
|
|
24837
|
+
}, Ew = N(Ww), ji = "ucl-uikit-dropdown__content", Fw = ({
|
|
24835
24838
|
testId: e = ji,
|
|
24836
24839
|
align: t = "right",
|
|
24837
24840
|
className: o,
|
|
@@ -24874,7 +24877,7 @@ const mw = ({
|
|
|
24874
24877
|
children: r
|
|
24875
24878
|
}
|
|
24876
24879
|
);
|
|
24877
|
-
},
|
|
24880
|
+
}, Bw = N(Fw), Ji = "ucl-uikit-dropdown", zw = ({
|
|
24878
24881
|
testId: e = Ji,
|
|
24879
24882
|
className: t,
|
|
24880
24883
|
children: o,
|
|
@@ -24907,10 +24910,10 @@ const mw = ({
|
|
|
24907
24910
|
children: o
|
|
24908
24911
|
}
|
|
24909
24912
|
);
|
|
24910
|
-
},
|
|
24911
|
-
et.Trigger =
|
|
24912
|
-
et.Content =
|
|
24913
|
-
const
|
|
24913
|
+
}, Dw = ({ defaultOpen: e = !1, ...t }) => /* @__PURE__ */ n(Iw, { defaultOpen: e, children: /* @__PURE__ */ n(zw, { ...t }) }), et = Dw;
|
|
24914
|
+
et.Trigger = Ew;
|
|
24915
|
+
et.Content = Bw;
|
|
24916
|
+
const Nw = ({
|
|
24914
24917
|
isDesktop: e,
|
|
24915
24918
|
label: t,
|
|
24916
24919
|
triggerAriaLabelCollapsed: o,
|
|
@@ -24952,7 +24955,7 @@ const Dw = ({
|
|
|
24952
24955
|
children: c
|
|
24953
24956
|
}
|
|
24954
24957
|
);
|
|
24955
|
-
},
|
|
24958
|
+
}, Tw = "ucl-uikit-dropdown-menu", f5 = ({
|
|
24956
24959
|
children: e,
|
|
24957
24960
|
label: t = "MENU",
|
|
24958
24961
|
triggerAriaLabelCollapsed: o = "Open menu",
|
|
@@ -24970,7 +24973,7 @@ const Dw = ({
|
|
|
24970
24973
|
font-family: ${s.typography.body.mdNumeric.fontFamily};
|
|
24971
24974
|
font-weight: ${s.typography.body.mdNumeric.fontWeight};
|
|
24972
24975
|
font-size: 14px;
|
|
24973
|
-
`, f = k(
|
|
24976
|
+
`, f = k(Tw, i), m = k(
|
|
24974
24977
|
h,
|
|
24975
24978
|
d,
|
|
24976
24979
|
l
|
|
@@ -24982,7 +24985,7 @@ const Dw = ({
|
|
|
24982
24985
|
...c,
|
|
24983
24986
|
children: [
|
|
24984
24987
|
/* @__PURE__ */ n(et.Trigger, { children: /* @__PURE__ */ n(
|
|
24985
|
-
|
|
24988
|
+
Nw,
|
|
24986
24989
|
{
|
|
24987
24990
|
isDesktop: p,
|
|
24988
24991
|
label: t,
|
|
@@ -24995,7 +24998,7 @@ const Dw = ({
|
|
|
24995
24998
|
]
|
|
24996
24999
|
}
|
|
24997
25000
|
);
|
|
24998
|
-
},
|
|
25001
|
+
}, Rw = "ucl-uikit-dropdown-user-menu", p5 = ({
|
|
24999
25002
|
children: e,
|
|
25000
25003
|
userName: t,
|
|
25001
25004
|
imageUrl: o,
|
|
@@ -25039,7 +25042,7 @@ const Dw = ({
|
|
|
25039
25042
|
white-space: nowrap;
|
|
25040
25043
|
`, x = u`
|
|
25041
25044
|
pointer-events: none;
|
|
25042
|
-
`, A = k(
|
|
25045
|
+
`, A = k(Rw, a), C = k(
|
|
25043
25046
|
y,
|
|
25044
25047
|
h,
|
|
25045
25048
|
d
|
|
@@ -25079,9 +25082,9 @@ const Dw = ({
|
|
|
25079
25082
|
]
|
|
25080
25083
|
}
|
|
25081
25084
|
);
|
|
25082
|
-
},
|
|
25085
|
+
}, Vw = "ucl-uikit-layout", Ow = ({
|
|
25083
25086
|
children: e,
|
|
25084
|
-
testId: t =
|
|
25087
|
+
testId: t = Vw,
|
|
25085
25088
|
className: o,
|
|
25086
25089
|
...r
|
|
25087
25090
|
}) => {
|
|
@@ -25123,7 +25126,7 @@ const Dw = ({
|
|
|
25123
25126
|
children: e
|
|
25124
25127
|
}
|
|
25125
25128
|
);
|
|
25126
|
-
}, Yi = "ucl-uikit-main",
|
|
25129
|
+
}, Yi = "ucl-uikit-main", g5 = ({
|
|
25127
25130
|
layout: e = !1,
|
|
25128
25131
|
testId: t = Yi,
|
|
25129
25132
|
className: o,
|
|
@@ -25137,37 +25140,37 @@ const Dw = ({
|
|
|
25137
25140
|
className: l,
|
|
25138
25141
|
"data-testid": t,
|
|
25139
25142
|
...i,
|
|
25140
|
-
children: e ? /* @__PURE__ */ n(
|
|
25143
|
+
children: e ? /* @__PURE__ */ n(Ow, { children: r }) : r
|
|
25141
25144
|
}
|
|
25142
25145
|
);
|
|
25143
25146
|
};
|
|
25144
25147
|
export {
|
|
25145
|
-
|
|
25148
|
+
$w as APP_HEADER_HEIGHT,
|
|
25146
25149
|
Ql as Accordion,
|
|
25147
|
-
|
|
25150
|
+
n5 as Alert,
|
|
25148
25151
|
tn as AppHeader,
|
|
25149
25152
|
yo as AppMenu,
|
|
25150
25153
|
J3 as Avatar,
|
|
25151
|
-
|
|
25152
|
-
|
|
25154
|
+
Qw as Badge,
|
|
25155
|
+
$6 as BaseDialog,
|
|
25153
25156
|
El as Blanket,
|
|
25154
25157
|
wb as Breadcrumbs,
|
|
25155
25158
|
Te as Button,
|
|
25156
25159
|
ta as Calendar,
|
|
25157
25160
|
on as Checkbox,
|
|
25158
|
-
|
|
25159
|
-
|
|
25161
|
+
u5 as CookieNotice,
|
|
25162
|
+
l5 as Datepicker,
|
|
25160
25163
|
vt as Dialog,
|
|
25161
|
-
|
|
25164
|
+
Rv as Divider,
|
|
25162
25165
|
et as Dropdown,
|
|
25163
|
-
|
|
25164
|
-
|
|
25165
|
-
|
|
25166
|
+
f5 as DropdownMenu,
|
|
25167
|
+
p5 as DropdownUserMenu,
|
|
25168
|
+
r5 as FeedbackDialog,
|
|
25166
25169
|
Go as Field,
|
|
25167
|
-
|
|
25170
|
+
c5 as FileInput,
|
|
25168
25171
|
Ol as Footer,
|
|
25169
25172
|
Zl as FooterNew,
|
|
25170
|
-
|
|
25173
|
+
jv as Header,
|
|
25171
25174
|
Ul as HeaderDraft,
|
|
25172
25175
|
ql as HeaderNew,
|
|
25173
25176
|
Bl as Heading,
|
|
@@ -25176,44 +25179,44 @@ export {
|
|
|
25176
25179
|
De as IconButton,
|
|
25177
25180
|
vy as Input,
|
|
25178
25181
|
Fl as Label,
|
|
25179
|
-
|
|
25180
|
-
|
|
25181
|
-
|
|
25182
|
+
_w as LabelledCheckbox,
|
|
25183
|
+
i5 as LabelledRadio,
|
|
25184
|
+
Ow as Layout,
|
|
25182
25185
|
Ye as Link,
|
|
25183
|
-
|
|
25186
|
+
g5 as Main,
|
|
25184
25187
|
Vl as Menu,
|
|
25185
|
-
|
|
25186
|
-
|
|
25187
|
-
|
|
25188
|
+
t5 as MenuNew,
|
|
25189
|
+
Kw as Modal,
|
|
25190
|
+
a5 as NativeDatepicker,
|
|
25188
25191
|
S3 as Overlay,
|
|
25189
25192
|
Kl as Pagination,
|
|
25190
25193
|
X3 as Paragraph,
|
|
25191
25194
|
X3 as ParagraphNew,
|
|
25192
|
-
|
|
25193
|
-
|
|
25194
|
-
|
|
25195
|
-
|
|
25195
|
+
ew as Radio,
|
|
25196
|
+
h5 as Search,
|
|
25197
|
+
o5 as Select,
|
|
25198
|
+
Yw as Snackbar,
|
|
25196
25199
|
Sy as Spinner,
|
|
25197
|
-
|
|
25200
|
+
Jw as StandaloneLink,
|
|
25198
25201
|
Vt as Table,
|
|
25199
|
-
|
|
25202
|
+
H6 as Tabs,
|
|
25200
25203
|
Oo as Text,
|
|
25201
|
-
|
|
25202
|
-
|
|
25203
|
-
|
|
25204
|
-
|
|
25204
|
+
Gw as Textarea,
|
|
25205
|
+
Uw as ThemeContextProvider,
|
|
25206
|
+
d5 as Timepicker,
|
|
25207
|
+
e5 as Toggle,
|
|
25205
25208
|
C3 as Tooltip,
|
|
25206
25209
|
mo as UclLogo,
|
|
25207
|
-
|
|
25210
|
+
Xw as UclLogoNegativeSpace,
|
|
25208
25211
|
Zo as UclLogoNew,
|
|
25209
|
-
|
|
25212
|
+
s5 as WeekPicker,
|
|
25210
25213
|
Ci as announce,
|
|
25211
25214
|
u as css,
|
|
25212
25215
|
k as cx,
|
|
25213
|
-
|
|
25216
|
+
jw as lightTheme,
|
|
25214
25217
|
de as theme,
|
|
25215
25218
|
He as uikitFontUrls,
|
|
25216
|
-
|
|
25219
|
+
Pw as uikitFonts,
|
|
25217
25220
|
Gl as useFocusTrap,
|
|
25218
25221
|
ht as useMediaQuery,
|
|
25219
25222
|
I as useTheme
|