@ilo-org/react 0.23.4 → 0.24.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/lib/cjs/_store/Breadcrumb-chunk-BFveDqpn.js +1 -0
- package/lib/cjs/_store/{Breadcrumb-entry-BroW68u4.js → Breadcrumb-entry-Cf-EAu2Z.js} +1 -1
- package/lib/cjs/_store/{Cards-entry-D_M0rUf1.js → Cards-entry-DP-Xck6d.js} +1 -1
- package/lib/cjs/_store/{Checkbox-chunk-C0TreicR.js → Checkbox-chunk-CDFIXTn9.js} +1 -1
- package/lib/cjs/_store/{Checkbox-entry-DSo6zQ9X.js → Checkbox-entry-DNbcaLP7.js} +1 -1
- package/lib/cjs/_store/{DatePicker-chunk-Dl0GaODr.js → DatePicker-chunk-DouvjE3X.js} +1 -1
- package/lib/cjs/_store/{DatePicker-entry-D0ZGNOBa.js → DatePicker-entry-Ci2NFgfR.js} +1 -1
- package/lib/cjs/_store/{Dropdown-chunk-DyCHTZMD.js → Dropdown-chunk-BjeJjYZD.js} +1 -1
- package/lib/cjs/_store/{Dropdown-entry-BaMzO6Kv.js → Dropdown-entry-BpdKN773.js} +1 -1
- package/lib/cjs/_store/Fieldset-chunk-Dykzn_3y.js +1 -0
- package/lib/cjs/_store/{Fieldset-entry-BXHX9lh2.js → Fieldset-entry-CgUV-ElS.js} +1 -1
- package/lib/cjs/_store/{FileUpload-chunk-DASUCDJs.js → FileUpload-chunk-CC1oePLc.js} +1 -1
- package/lib/cjs/_store/{FileUpload-entry-DohgXShA.js → FileUpload-entry-DwKrIcA0.js} +1 -1
- package/lib/cjs/_store/Form-chunk-Bhz_CsMf.js +1 -0
- package/lib/cjs/_store/{Form-entry-BAkn3BkW.js → Form-entry-DkAB5Wzc.js} +1 -1
- package/lib/cjs/_store/FormControl-chunk-Bv623HDr.js +1 -0
- package/lib/cjs/_store/{FormControl-entry-B3EdY4s4.js → FormControl-entry-Bu1yj8yC.js} +1 -1
- package/lib/cjs/_store/{Hero-chunk-Blm775AV.js → Hero-chunk-BgeQPg_6.js} +1 -1
- package/lib/cjs/_store/{Hero-entry-Dym2gQ5h.js → Hero-entry-BDFK6TqZ.js} +1 -1
- package/lib/cjs/_store/{Input-chunk-sjstsyZQ.js → Input-chunk-DUdxvEKw.js} +1 -1
- package/lib/cjs/_store/{Input-entry-CHQay_-X.js → Input-entry-C3vOeYic.js} +1 -1
- package/lib/cjs/_store/{Nav-entry-BaGFEK89.js → Nav-entry-B46iUi8w.js} +1 -1
- package/lib/cjs/_store/{NumberPicker-chunk-BuYxdQBu.js → NumberPicker-chunk-kaW8wv3h.js} +1 -1
- package/lib/cjs/_store/{NumberPicker-entry-CP8qKRH4.js → NumberPicker-entry-CwXGzUsE.js} +1 -1
- package/lib/cjs/_store/Pagination-chunk-D3Ve2ASf.js +1 -0
- package/lib/cjs/_store/{Pagination-entry-578nR00W.js → Pagination-entry-B-PLD6Os.js} +1 -1
- package/lib/cjs/_store/{Radio-chunk-U-ZyTPH7.js → Radio-chunk-DoLctty-.js} +1 -1
- package/lib/cjs/_store/{Radio-entry-hNkJLhk7.js → Radio-entry-rG2UfQcr.js} +1 -1
- package/lib/cjs/_store/{ReadMore-chunk-D36Ibsoy.js → ReadMore-chunk-Cz3Dc9Cz.js} +1 -1
- package/lib/cjs/_store/{ReadMore-entry-o6NAV4k0.js → ReadMore-entry-DoeHMibd.js} +1 -1
- package/lib/cjs/_store/RichText-chunk-CLfo33Pr.js +1 -0
- package/lib/cjs/_store/{RichText-entry-BAqZEwbl.js → RichText-entry-BMEaokVO.js} +1 -1
- package/lib/cjs/_store/ScoreCard-chunk-CYb8wTsk.js +1 -0
- package/lib/cjs/_store/{SearchField-chunk-CUGa67lu.js → SearchField-chunk-BuB-C9aK.js} +1 -1
- package/lib/cjs/_store/{SearchField-entry-Bo7Zww4C.js → SearchField-entry-CZ0XwZwr.js} +1 -1
- package/lib/cjs/_store/SubsiteNav-chunk-CVWgp2ti.js +1 -0
- package/lib/cjs/_store/{TextInput-entry-kwL7qsH7.js → TextInput-entry-D5kHzQCt.js} +1 -1
- package/lib/cjs/_store/{TextInput.args-chunk-DIxsZT_y.js → TextInput.args-chunk-Bs7YIRuJ.js} +1 -1
- package/lib/cjs/_store/{Textarea-chunk-Gr_D4IfG.js → Textarea-chunk-XYsrIeDn.js} +1 -1
- package/lib/cjs/_store/{Textarea-entry-ChgzYZSz.js → Textarea-entry-rsUP7-OD.js} +1 -1
- package/lib/cjs/_store/{Toggle-entry-BuFM2YXY.js → Toggle-entry-CrF6OlKl.js} +1 -1
- package/lib/cjs/_store/{Tooltip-chunk-Dk0E60Nc.js → Tooltip-chunk-CQu5vz01.js} +1 -1
- package/lib/cjs/_store/{Tooltip-entry-D5w7X3z_.js → Tooltip-entry-B52nIoTe.js} +1 -1
- package/lib/cjs/_store/{components-entry-DI-IAypP.js → components-entry-3bYkJbl2.js} +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/esm/_store/Breadcrumb-chunk-DjN2sOwo.js +132 -0
- package/lib/esm/_store/Breadcrumb-entry-BdsMn8X1.js +4 -0
- package/lib/esm/_store/{Cards-entry-BsTiPrJs.js → Cards-entry-C6lcDtCN.js} +1 -1
- package/lib/esm/_store/{Checkbox-chunk-OsF35mGH.js → Checkbox-chunk-lwnCSzbU.js} +2 -2
- package/lib/esm/_store/{Checkbox-entry-fyDheYn3.js → Checkbox-entry-iDYW3mII.js} +1 -1
- package/lib/esm/_store/{DatePicker-chunk-BUOrwC0Y.js → DatePicker-chunk-Dh48mMAP.js} +1 -1
- package/lib/esm/_store/DatePicker-entry-DA2mnr5y.js +4 -0
- package/lib/esm/_store/{Dropdown-chunk-fpN7RweM.js → Dropdown-chunk-DaOJI8GU.js} +1 -1
- package/lib/esm/_store/Dropdown-entry-yIppvxFB.js +4 -0
- package/lib/esm/_store/Fieldset-chunk-JT4tXIzJ.js +61 -0
- package/lib/esm/_store/Fieldset-entry-BU1iTqO6.js +4 -0
- package/lib/esm/_store/{FileUpload-chunk-Dw6vDrtN.js → FileUpload-chunk-Cfr5vOip.js} +1 -1
- package/lib/esm/_store/FileUpload-entry-B_cQHX8H.js +4 -0
- package/lib/esm/_store/Form-chunk-BUqXdVaD.js +14 -0
- package/lib/esm/_store/{Form-entry-z2FiIQ-u.js → Form-entry-D0WjXxpC.js} +1 -1
- package/lib/esm/_store/FormControl-chunk-CJhnDujX.js +81 -0
- package/lib/esm/_store/FormControl-entry-ShYwA_1H.js +4 -0
- package/lib/esm/_store/{Hero-chunk-CqARzKwt.js → Hero-chunk-rnL21UKu.js} +2 -2
- package/lib/esm/_store/Hero-entry-prlmncq4.js +4 -0
- package/lib/esm/_store/{Input-chunk-CCDILCqo.js → Input-chunk-XCiBTjUt.js} +1 -1
- package/lib/esm/_store/Input-entry-hEad-fr1.js +4 -0
- package/lib/esm/_store/Nav-entry-uKA3aXck.js +4 -0
- package/lib/esm/_store/{NumberPicker-chunk-CaNDffBy.js → NumberPicker-chunk-j6uKlj6R.js} +1 -1
- package/lib/esm/_store/NumberPicker-entry-DLV6zbka.js +4 -0
- package/lib/esm/_store/{Pagination-chunk-B5541Ksz.js → Pagination-chunk-CRESCE8P.js} +37 -38
- package/lib/esm/_store/Pagination-entry-DDD4AfVJ.js +4 -0
- package/lib/esm/_store/{Radio-chunk-DE_LEr18.js → Radio-chunk-6JgiY5AT.js} +2 -2
- package/lib/esm/_store/{Radio-entry-g1635wr3.js → Radio-entry-CEkjEsjC.js} +1 -1
- package/lib/esm/_store/{ReadMore-chunk-pjNnS8Ji.js → ReadMore-chunk-CyCJMFw8.js} +1 -1
- package/lib/esm/_store/ReadMore-entry-D7Qpu2o4.js +4 -0
- package/lib/esm/_store/RichText-chunk-BWOoOlCR.js +20 -0
- package/lib/esm/_store/RichText-entry-BjufLWsb.js +4 -0
- package/lib/esm/_store/ScoreCard-chunk-DPDwOSdN.js +491 -0
- package/lib/esm/_store/{SearchField-chunk-C1BKjgFA.js → SearchField-chunk-C7r7Ectd.js} +1 -1
- package/lib/esm/_store/SearchField-entry-MVIyW8fs.js +4 -0
- package/lib/esm/_store/{SubsiteNav-chunk-SOH4RAJ1.js → SubsiteNav-chunk-DTA21jDN.js} +104 -116
- package/lib/esm/_store/TextInput-entry-CpSwj1ey.js +5 -0
- package/lib/esm/_store/{TextInput.args-chunk-gw5WCsYI.js → TextInput.args-chunk-DCwrQ9lS.js} +1 -1
- package/lib/esm/_store/{Textarea-chunk-BjZncFjh.js → Textarea-chunk-CEAOC4yE.js} +1 -1
- package/lib/esm/_store/{Textarea-entry-DVlbgKTT.js → Textarea-entry-Bh6ZxG82.js} +1 -1
- package/lib/esm/_store/{Toggle-entry-RwBHvx2w.js → Toggle-entry-BdxawvoW.js} +1 -1
- package/lib/esm/_store/{Tooltip-chunk-BIPZucx0.js → Tooltip-chunk-CC5huzaB.js} +49 -50
- package/lib/esm/_store/Tooltip-entry-DyEW_ai7.js +4 -0
- package/lib/esm/_store/{components-entry-BxxKZOP5.js → components-entry-CWXSZN_z.js} +19 -19
- package/lib/esm/index.js +19 -19
- package/lib/styles/components/breadcrumb.css +1 -1
- package/lib/styles/components/card.css +1 -1
- package/lib/styles/components/datacard.css +1 -1
- package/lib/styles/components/detailcard.css +1 -1
- package/lib/styles/components/featurecard.css +1 -1
- package/lib/styles/components/fieldset.css +1 -1
- package/lib/styles/components/form.css +1 -1
- package/lib/styles/components/formcontrol.css +1 -1
- package/lib/styles/components/languagetoggle.css +1 -1
- package/lib/styles/components/multilinkcard.css +1 -1
- package/lib/styles/components/pagination.css +1 -1
- package/lib/styles/components/richtext.css +1 -1
- package/lib/styles/components/scorecard.css +1 -1
- package/lib/styles/global.css.map +1 -1
- package/lib/styles/index.css +2 -2
- package/lib/styles/index.css.map +1 -1
- package/lib/styles/monorepo.css +2 -2
- package/lib/styles/monorepo.css.map +1 -1
- package/lib/types/components/Breadcrumb/Breadcrumb.d.ts +5 -0
- package/lib/types/components/Fieldset/Fieldset.props.d.ts +4 -0
- package/lib/types/components/Form/Form.d.ts +5 -0
- package/lib/types/components/Form/Form.props.d.ts +1 -1
- package/lib/types/components/FormControl/FormControl.props.d.ts +5 -0
- package/lib/types/components/Nav/Navigation.props.d.ts +0 -4
- package/lib/types/components/Pagination/Pagination.props.d.ts +4 -0
- package/lib/types/components/RichText/RichText.props.d.ts +7 -0
- package/package.json +3 -3
- package/lib/cjs/_store/Breadcrumb-chunk-BV3TmRn5.js +0 -1
- package/lib/cjs/_store/Fieldset-chunk-ChX_vSBT.js +0 -1
- package/lib/cjs/_store/Form-chunk-BJA6abAs.js +0 -1
- package/lib/cjs/_store/FormControl-chunk-CTRPINwt.js +0 -1
- package/lib/cjs/_store/Pagination-chunk-DYcRUXLg.js +0 -1
- package/lib/cjs/_store/RichText-chunk-B8HoKl_2.js +0 -1
- package/lib/cjs/_store/ScoreCard-chunk-CdqvfjmP.js +0 -1
- package/lib/cjs/_store/SubsiteNav-chunk-Cfmr4rbb.js +0 -1
- package/lib/esm/_store/Breadcrumb-chunk-DxH8m_ti.js +0 -126
- package/lib/esm/_store/Breadcrumb-entry-DCWVKCJk.js +0 -4
- package/lib/esm/_store/DatePicker-entry-iTkl-QSl.js +0 -4
- package/lib/esm/_store/Dropdown-entry-cEgUhErA.js +0 -4
- package/lib/esm/_store/Fieldset-chunk-BYqbIcGY.js +0 -57
- package/lib/esm/_store/Fieldset-entry-BuAubc6Z.js +0 -4
- package/lib/esm/_store/FileUpload-entry-BS-_F8ZK.js +0 -4
- package/lib/esm/_store/Form-chunk-CnI3CSpO.js +0 -13
- package/lib/esm/_store/FormControl-chunk-k6iX88xc.js +0 -77
- package/lib/esm/_store/FormControl-entry-DxxbHspw.js +0 -4
- package/lib/esm/_store/Hero-entry-xdofG0qk.js +0 -4
- package/lib/esm/_store/Input-entry-DZN_IP5o.js +0 -4
- package/lib/esm/_store/Nav-entry-DII1wFGi.js +0 -4
- package/lib/esm/_store/NumberPicker-entry-gJSmumaB.js +0 -4
- package/lib/esm/_store/Pagination-entry-CTafIaXw.js +0 -4
- package/lib/esm/_store/ReadMore-entry-Be7_PncI.js +0 -4
- package/lib/esm/_store/RichText-chunk-BQLMR58V.js +0 -18
- package/lib/esm/_store/RichText-entry-B5WFlH5n.js +0 -4
- package/lib/esm/_store/ScoreCard-chunk-T3fANZpV.js +0 -480
- package/lib/esm/_store/SearchField-entry-HNmMCvOI.js +0 -4
- package/lib/esm/_store/TextInput-entry-C1VYOhZw.js +0 -5
- package/lib/esm/_store/Tooltip-entry-BdZs-1tq.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import { memo as z, useRef as L, useCallback as S, useEffect as y, useId as G, useState as x, forwardRef as O, useImperativeHandle as B } from "react";
|
|
3
3
|
import { u as v } from "./useGlobalSettings-chunk-Bu2lRvQa.js";
|
|
4
4
|
import { createPortal as A } from "react-dom";
|
|
@@ -11,19 +11,19 @@ const q = ({
|
|
|
11
11
|
navRef: c,
|
|
12
12
|
children: n
|
|
13
13
|
}) => {
|
|
14
|
-
const { prefix: a } = v(),
|
|
15
|
-
if (!(
|
|
14
|
+
const { prefix: a } = v(), t = L(null), _ = `${a}--nav-dropdown`, i = S(() => {
|
|
15
|
+
if (!(t != null && t.current) || !(c != null && c.current))
|
|
16
16
|
return;
|
|
17
17
|
const o = c.current.getBoundingClientRect();
|
|
18
|
-
|
|
18
|
+
t.current.style.top = `${o.bottom}px`, t.current.style.width = `${o.width}px`;
|
|
19
19
|
}, [c]);
|
|
20
|
-
return y(() => (
|
|
21
|
-
window.removeEventListener("resize",
|
|
20
|
+
return y(() => (i(), window.addEventListener("resize", i), () => {
|
|
21
|
+
window.removeEventListener("resize", i);
|
|
22
22
|
}), [c]), typeof document > "u" ? null : A(
|
|
23
23
|
/* @__PURE__ */ e(
|
|
24
24
|
"div",
|
|
25
25
|
{
|
|
26
|
-
ref:
|
|
26
|
+
ref: t,
|
|
27
27
|
className: b({
|
|
28
28
|
[_]: !0,
|
|
29
29
|
[`${_}--open`]: s,
|
|
@@ -41,8 +41,8 @@ const q = ({
|
|
|
41
41
|
const { prefix: r } = v(), c = `${r}--nav-menu-grid`, n = [];
|
|
42
42
|
for (let a = 0; a < s.length; a += 5)
|
|
43
43
|
n.push(s.slice(a, a + 5));
|
|
44
|
-
return /* @__PURE__ */ e("div", { className: c, children: n.map((a,
|
|
45
|
-
var
|
|
44
|
+
return /* @__PURE__ */ e("div", { className: c, children: n.map((a, t) => /* @__PURE__ */ e("div", { className: `${c}__column`, children: a.map((_) => {
|
|
45
|
+
var i;
|
|
46
46
|
return /* @__PURE__ */ e(
|
|
47
47
|
f,
|
|
48
48
|
{
|
|
@@ -50,16 +50,16 @@ const q = ({
|
|
|
50
50
|
href: _.href,
|
|
51
51
|
label: _.label
|
|
52
52
|
},
|
|
53
|
-
(
|
|
53
|
+
(i = _.label) == null ? void 0 : i.toString()
|
|
54
54
|
);
|
|
55
|
-
}) },
|
|
55
|
+
}) }, t)) });
|
|
56
56
|
}, I = ({
|
|
57
57
|
menu: s
|
|
58
58
|
}) => {
|
|
59
59
|
const { prefix: r } = v(), c = `${r}--nav-mobile-menu`;
|
|
60
60
|
return /* @__PURE__ */ e("ul", { className: `${c}`, children: s.map((n, a) => {
|
|
61
|
-
const
|
|
62
|
-
return /* @__PURE__ */
|
|
61
|
+
const t = typeof n.isActive == "function" ? n.isActive() : n.isActive;
|
|
62
|
+
return /* @__PURE__ */ m("li", { className: `${c}__item`, children: [
|
|
63
63
|
/* @__PURE__ */ e(
|
|
64
64
|
f,
|
|
65
65
|
{
|
|
@@ -68,7 +68,7 @@ const q = ({
|
|
|
68
68
|
className: `${c}__link`
|
|
69
69
|
}
|
|
70
70
|
),
|
|
71
|
-
|
|
71
|
+
t && /* @__PURE__ */ e("span", { className: `${c}__marked` })
|
|
72
72
|
] }, a);
|
|
73
73
|
}) });
|
|
74
74
|
}, M = ({
|
|
@@ -77,19 +77,19 @@ const q = ({
|
|
|
77
77
|
header: c,
|
|
78
78
|
widgets: n,
|
|
79
79
|
children: a,
|
|
80
|
-
className:
|
|
80
|
+
className: t
|
|
81
81
|
}) => {
|
|
82
|
-
const { prefix: _ } = v(),
|
|
82
|
+
const { prefix: _ } = v(), i = G(), o = `${_}--nav-mobile-drawer`;
|
|
83
83
|
return typeof document > "u" ? null : A(
|
|
84
|
-
/* @__PURE__ */
|
|
84
|
+
/* @__PURE__ */ m(
|
|
85
85
|
"div",
|
|
86
86
|
{
|
|
87
|
-
id: `${o}__${
|
|
88
|
-
className: b(o,
|
|
87
|
+
id: `${o}__${i}`,
|
|
88
|
+
className: b(o, t, {
|
|
89
89
|
[`${o}--open`]: s
|
|
90
90
|
}),
|
|
91
91
|
children: [
|
|
92
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ m("div", { className: `${o}__header`, children: [
|
|
93
93
|
/* @__PURE__ */ e("div", { className: `${o}__header-main`, children: c }),
|
|
94
94
|
/* @__PURE__ */ e(
|
|
95
95
|
"button",
|
|
@@ -101,7 +101,7 @@ const q = ({
|
|
|
101
101
|
}
|
|
102
102
|
)
|
|
103
103
|
] }),
|
|
104
|
-
/* @__PURE__ */
|
|
104
|
+
/* @__PURE__ */ m("div", { className: `${o}__container`, children: [
|
|
105
105
|
/* @__PURE__ */ e("div", { className: `${o}__widgets`, children: n }),
|
|
106
106
|
a
|
|
107
107
|
] })
|
|
@@ -126,23 +126,20 @@ const q = ({
|
|
|
126
126
|
menu: { items: c, labels: n },
|
|
127
127
|
widgets: a
|
|
128
128
|
},
|
|
129
|
-
onClose:
|
|
129
|
+
onClose: t
|
|
130
130
|
}) => {
|
|
131
131
|
var k, g, C;
|
|
132
|
-
const { prefix: _ } = v(), [
|
|
133
|
-
o(!1),
|
|
134
|
-
}, []), u = `${_}--nav-mobile`, p =
|
|
135
|
-
return /* @__PURE__ */
|
|
132
|
+
const { prefix: _ } = v(), [i, o] = x(!1), [$, d] = x(!1), h = S(() => {
|
|
133
|
+
o(!1), d(!1);
|
|
134
|
+
}, []), u = `${_}--nav-mobile`, p = i || $, N = c.slice(0, 5), l = c.slice(5);
|
|
135
|
+
return /* @__PURE__ */ m(
|
|
136
136
|
M,
|
|
137
137
|
{
|
|
138
138
|
isOpen: s,
|
|
139
|
-
onClose:
|
|
140
|
-
header: /* @__PURE__ */
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
] }),
|
|
144
|
-
widgets: /* @__PURE__ */ i("div", { className: `${u}__widgets`, children: [
|
|
145
|
-
(a == null ? void 0 : a.search) && /* @__PURE__ */ i(
|
|
139
|
+
onClose: t,
|
|
140
|
+
header: /* @__PURE__ */ e("div", { className: `${u}__branding`, children: /* @__PURE__ */ e("div", { className: `${u}__logo`, children: r.logo.drawer || r.logo.main }) }),
|
|
141
|
+
widgets: /* @__PURE__ */ m("div", { className: `${u}__widgets`, children: [
|
|
142
|
+
(a == null ? void 0 : a.search) && /* @__PURE__ */ m(
|
|
146
143
|
"a",
|
|
147
144
|
{
|
|
148
145
|
className: `${u}__widgets-search`,
|
|
@@ -163,16 +160,16 @@ const q = ({
|
|
|
163
160
|
label: a.link.label
|
|
164
161
|
}
|
|
165
162
|
),
|
|
166
|
-
(a == null ? void 0 : a.language) && /* @__PURE__ */
|
|
163
|
+
(a == null ? void 0 : a.language) && /* @__PURE__ */ m(
|
|
167
164
|
"button",
|
|
168
165
|
{
|
|
169
166
|
className: `${u}__widgets-language`,
|
|
170
|
-
onClick: () =>
|
|
167
|
+
onClick: () => d(!0),
|
|
171
168
|
"aria-expanded": $,
|
|
172
169
|
"aria-controls": "language-list",
|
|
173
170
|
"aria-label": "Select language",
|
|
174
171
|
children: [
|
|
175
|
-
/* @__PURE__ */
|
|
172
|
+
/* @__PURE__ */ m("span", { className: `${u}__widgets-language__label`, children: [
|
|
176
173
|
a.language.label,
|
|
177
174
|
": ",
|
|
178
175
|
a.language.language
|
|
@@ -184,12 +181,12 @@ const q = ({
|
|
|
184
181
|
] }),
|
|
185
182
|
children: [
|
|
186
183
|
/* @__PURE__ */ e(I, { menu: N }),
|
|
187
|
-
!!l.length && /* @__PURE__ */
|
|
184
|
+
!!l.length && /* @__PURE__ */ m(
|
|
188
185
|
"button",
|
|
189
186
|
{
|
|
190
187
|
className: `${u}__more`,
|
|
191
188
|
onClick: () => o(!0),
|
|
192
|
-
"aria-expanded":
|
|
189
|
+
"aria-expanded": i,
|
|
193
190
|
"aria-controls": "more-items",
|
|
194
191
|
"aria-label": "More items",
|
|
195
192
|
children: [
|
|
@@ -202,11 +199,11 @@ const q = ({
|
|
|
202
199
|
M,
|
|
203
200
|
{
|
|
204
201
|
className: `${u}__nested`,
|
|
205
|
-
header: /* @__PURE__ */
|
|
202
|
+
header: /* @__PURE__ */ m(
|
|
206
203
|
"button",
|
|
207
204
|
{
|
|
208
205
|
className: `${u}__nested__header`,
|
|
209
|
-
onClick:
|
|
206
|
+
onClick: h,
|
|
210
207
|
"aria-label": "Back to menu",
|
|
211
208
|
children: [
|
|
212
209
|
/* @__PURE__ */ e("span", { className: `${u}__nested__header__icon` }),
|
|
@@ -214,11 +211,11 @@ const q = ({
|
|
|
214
211
|
]
|
|
215
212
|
}
|
|
216
213
|
),
|
|
217
|
-
widgets: /* @__PURE__ */ e("span", { className: `${u}__nested__title`, children:
|
|
214
|
+
widgets: /* @__PURE__ */ e("span", { className: `${u}__nested__title`, children: i ? n.more : (k = a == null ? void 0 : a.language) == null ? void 0 : k.label }),
|
|
218
215
|
isOpen: p,
|
|
219
|
-
onClose:
|
|
216
|
+
onClose: h,
|
|
220
217
|
"aria-modal": "true",
|
|
221
|
-
children:
|
|
218
|
+
children: i ? /* @__PURE__ */ e(I, { menu: l, id: "more-items" }) : /* @__PURE__ */ e(
|
|
222
219
|
F,
|
|
223
220
|
{
|
|
224
221
|
selected: ((g = a == null ? void 0 : a.language) == null ? void 0 : g.language) || "",
|
|
@@ -233,37 +230,37 @@ const q = ({
|
|
|
233
230
|
);
|
|
234
231
|
};
|
|
235
232
|
function X({ menu: s, split: r }) {
|
|
236
|
-
const { breakpoint: c } = H(), [n, a] = x(!1), [
|
|
233
|
+
const { breakpoint: c } = H(), [n, a] = x(!1), [t, _] = x(!1), [i, o] = x(!1), $ = L(null), d = ["xl", "xxl"].includes(c || "md"), h = d ? r.desktop : r.mobile, u = s.slice(0, h), p = s.slice(h);
|
|
237
234
|
return y(() => {
|
|
238
235
|
o(!0);
|
|
239
236
|
}, []), {
|
|
240
237
|
menu: { facade: u, more: p },
|
|
241
238
|
more: [n, a],
|
|
242
|
-
mobile: [
|
|
243
|
-
isDesktop:
|
|
244
|
-
isClient:
|
|
239
|
+
mobile: [t, _],
|
|
240
|
+
isDesktop: d,
|
|
241
|
+
isClient: i,
|
|
245
242
|
ref: $
|
|
246
243
|
};
|
|
247
244
|
}
|
|
248
245
|
const j = ({ className: s, menu: r, more: c }) => {
|
|
249
246
|
const { prefix: n } = v(), a = `${n}--nav-menu`;
|
|
250
|
-
return /* @__PURE__ */
|
|
251
|
-
/* @__PURE__ */ e("ul", { className: `${a}__list`, children: r.map(({ isActive:
|
|
247
|
+
return /* @__PURE__ */ m("div", { className: b(a, s), children: [
|
|
248
|
+
/* @__PURE__ */ e("ul", { className: `${a}__list`, children: r.map(({ isActive: t, ..._ }) => {
|
|
252
249
|
var o;
|
|
253
|
-
const
|
|
250
|
+
const i = typeof t == "function" ? t() : t;
|
|
254
251
|
return /* @__PURE__ */ e("li", { className: `${a}__item`, children: /* @__PURE__ */ e(
|
|
255
252
|
f,
|
|
256
253
|
{
|
|
257
254
|
..._,
|
|
258
255
|
className: b({
|
|
259
256
|
[`${a}__link`]: !0,
|
|
260
|
-
[`${a}__link--active`]:
|
|
257
|
+
[`${a}__link--active`]: i,
|
|
261
258
|
[_.className || ""]: _.className
|
|
262
259
|
})
|
|
263
260
|
}
|
|
264
261
|
) }, (o = _.label) == null ? void 0 : o.toString());
|
|
265
262
|
}) }),
|
|
266
|
-
c && /* @__PURE__ */
|
|
263
|
+
c && /* @__PURE__ */ m(
|
|
267
264
|
"button",
|
|
268
265
|
{
|
|
269
266
|
onClick: c.onClick,
|
|
@@ -288,20 +285,20 @@ const j = ({ className: s, menu: r, more: c }) => {
|
|
|
288
285
|
widgets: n
|
|
289
286
|
}
|
|
290
287
|
}, a) => {
|
|
291
|
-
const { prefix:
|
|
292
|
-
menu: { facade: _, more:
|
|
288
|
+
const { prefix: t } = v(), {
|
|
289
|
+
menu: { facade: _, more: i },
|
|
293
290
|
more: [o, $],
|
|
294
|
-
mobile: [
|
|
291
|
+
mobile: [d, h],
|
|
295
292
|
isDesktop: u,
|
|
296
293
|
ref: p,
|
|
297
294
|
isClient: N
|
|
298
295
|
} = X({ menu: r, split: { desktop: 4, mobile: 2 } });
|
|
299
296
|
B(a, () => p.current);
|
|
300
|
-
const l = `${
|
|
301
|
-
return /* @__PURE__ */
|
|
302
|
-
/* @__PURE__ */
|
|
303
|
-
/* @__PURE__ */
|
|
304
|
-
/* @__PURE__ */
|
|
297
|
+
const l = `${t}--subsite-nav-compact`;
|
|
298
|
+
return /* @__PURE__ */ m("header", { ref: p, className: l, children: [
|
|
299
|
+
/* @__PURE__ */ m("div", { className: `${l}__container`, children: [
|
|
300
|
+
/* @__PURE__ */ m("nav", { className: `${l}__nav`, children: [
|
|
301
|
+
/* @__PURE__ */ e(
|
|
305
302
|
"div",
|
|
306
303
|
{
|
|
307
304
|
className: `${l}__branding`,
|
|
@@ -309,10 +306,7 @@ const j = ({ className: s, menu: r, more: c }) => {
|
|
|
309
306
|
role: "button",
|
|
310
307
|
"aria-label": "Branding",
|
|
311
308
|
tabIndex: 0,
|
|
312
|
-
children:
|
|
313
|
-
/* @__PURE__ */ e("div", { className: `${l}__branding-logo`, children: s.logo.main }),
|
|
314
|
-
/* @__PURE__ */ e("h3", { className: `${l}__branding-name`, children: s.name })
|
|
315
|
-
]
|
|
309
|
+
children: /* @__PURE__ */ e("div", { className: `${l}__branding-logo`, children: s.logo.main })
|
|
316
310
|
}
|
|
317
311
|
),
|
|
318
312
|
/* @__PURE__ */ e(
|
|
@@ -320,7 +314,7 @@ const j = ({ className: s, menu: r, more: c }) => {
|
|
|
320
314
|
{
|
|
321
315
|
className: `${l}__menu`,
|
|
322
316
|
menu: _,
|
|
323
|
-
more:
|
|
317
|
+
more: i.length ? {
|
|
324
318
|
label: c.more,
|
|
325
319
|
onClick: () => $(!o),
|
|
326
320
|
isOpen: o
|
|
@@ -328,9 +322,9 @@ const j = ({ className: s, menu: r, more: c }) => {
|
|
|
328
322
|
}
|
|
329
323
|
)
|
|
330
324
|
] }),
|
|
331
|
-
n && /* @__PURE__ */
|
|
325
|
+
n && /* @__PURE__ */ m("div", { className: `${l}__widget-bar`, children: [
|
|
332
326
|
/* @__PURE__ */ e("span", { className: `${l}__widget-bar-corner` }),
|
|
333
|
-
/* @__PURE__ */
|
|
327
|
+
/* @__PURE__ */ m("div", { className: `${l}__widget-bar-content`, children: [
|
|
334
328
|
n.link && /* @__PURE__ */ e(
|
|
335
329
|
f,
|
|
336
330
|
{
|
|
@@ -363,19 +357,19 @@ const j = ({ className: s, menu: r, more: c }) => {
|
|
|
363
357
|
{
|
|
364
358
|
className: `${l}__burger`,
|
|
365
359
|
"aria-label": "Toggle navigation",
|
|
366
|
-
"aria-expanded":
|
|
367
|
-
onClick: () =>
|
|
360
|
+
"aria-expanded": d,
|
|
361
|
+
onClick: () => h(!d),
|
|
368
362
|
children: /* @__PURE__ */ e("span", { className: `${l}__burger-icon` })
|
|
369
363
|
}
|
|
370
364
|
)
|
|
371
365
|
] }),
|
|
372
|
-
|
|
366
|
+
i && N && /* @__PURE__ */ e(P, { isOpen: o, navRef: p, children: /* @__PURE__ */ e(T, { menu: i }) }),
|
|
373
367
|
N && /* @__PURE__ */ e(
|
|
374
368
|
E,
|
|
375
369
|
{
|
|
376
|
-
isOpen:
|
|
370
|
+
isOpen: d,
|
|
377
371
|
onClose: () => {
|
|
378
|
-
|
|
372
|
+
h(!1);
|
|
379
373
|
},
|
|
380
374
|
navigationProps: {
|
|
381
375
|
widgets: n,
|
|
@@ -398,18 +392,18 @@ const j = ({ className: s, menu: r, more: c }) => {
|
|
|
398
392
|
}
|
|
399
393
|
}, a) => {
|
|
400
394
|
var k, g, C;
|
|
401
|
-
const { prefix:
|
|
402
|
-
menu: { facade: _, more:
|
|
395
|
+
const { prefix: t } = v(), {
|
|
396
|
+
menu: { facade: _, more: i },
|
|
403
397
|
more: [o, $],
|
|
404
|
-
mobile: [
|
|
398
|
+
mobile: [d, h],
|
|
405
399
|
isDesktop: u,
|
|
406
400
|
ref: p,
|
|
407
401
|
isClient: N
|
|
408
402
|
} = X({ menu: r, split: { desktop: 6, mobile: 5 } });
|
|
409
403
|
B(a, () => p.current);
|
|
410
|
-
const l = `${
|
|
411
|
-
return /* @__PURE__ */
|
|
412
|
-
/* @__PURE__ */ e("div", { className: b(`${l}-bg--light`), children: /* @__PURE__ */
|
|
404
|
+
const l = `${t}--subsite-nav-complex`;
|
|
405
|
+
return /* @__PURE__ */ m("header", { ref: p, className: l, children: [
|
|
406
|
+
/* @__PURE__ */ e("div", { className: b(`${l}-bg--light`), children: /* @__PURE__ */ m(
|
|
413
407
|
"div",
|
|
414
408
|
{
|
|
415
409
|
className: b(
|
|
@@ -418,7 +412,7 @@ const j = ({ className: s, menu: r, more: c }) => {
|
|
|
418
412
|
),
|
|
419
413
|
children: [
|
|
420
414
|
/* @__PURE__ */ e("span", { className: `${l}__widgets-bar-corner` }),
|
|
421
|
-
/* @__PURE__ */
|
|
415
|
+
/* @__PURE__ */ m("span", { className: `${l}__widgets-bar`, children: [
|
|
422
416
|
(n == null ? void 0 : n.link) && /* @__PURE__ */ e(
|
|
423
417
|
f,
|
|
424
418
|
{
|
|
@@ -439,7 +433,7 @@ const j = ({ className: s, menu: r, more: c }) => {
|
|
|
439
433
|
]
|
|
440
434
|
}
|
|
441
435
|
) }),
|
|
442
|
-
/* @__PURE__ */ e("div", { className: b(`${l}-bg--light`), children: /* @__PURE__ */
|
|
436
|
+
/* @__PURE__ */ e("div", { className: b(`${l}-bg--light`), children: /* @__PURE__ */ m(
|
|
443
437
|
"div",
|
|
444
438
|
{
|
|
445
439
|
className: b(
|
|
@@ -447,28 +441,25 @@ const j = ({ className: s, menu: r, more: c }) => {
|
|
|
447
441
|
`${l}__container`
|
|
448
442
|
),
|
|
449
443
|
children: [
|
|
450
|
-
/* @__PURE__ */
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
{
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
/* @__PURE__ */ e("h3", { className: `${l}__branding-main__name`, children: s.name })
|
|
463
|
-
] }),
|
|
464
|
-
/* @__PURE__ */ i("div", { className: `${l}__branding-tag`, children: [
|
|
444
|
+
/* @__PURE__ */ e("div", { className: `${l}__branding-main`, children: /* @__PURE__ */ e(
|
|
445
|
+
"div",
|
|
446
|
+
{
|
|
447
|
+
className: `${l}__branding-main__logo`,
|
|
448
|
+
onClick: s == null ? void 0 : s.onClick,
|
|
449
|
+
role: "button",
|
|
450
|
+
"aria-label": "Branding",
|
|
451
|
+
tabIndex: 0,
|
|
452
|
+
children: s.logo.main
|
|
453
|
+
}
|
|
454
|
+
) }),
|
|
455
|
+
/* @__PURE__ */ m("div", { className: `${l}__branding-tag`, children: [
|
|
465
456
|
/* @__PURE__ */ e("h4", { className: `${l}__branding-tag__main`, children: (k = s.tag) == null ? void 0 : k.main }),
|
|
466
457
|
((g = s.tag) == null ? void 0 : g.sub) && /* @__PURE__ */ e("span", { className: `${l}__branding-tag__sub`, children: (C = s.tag) == null ? void 0 : C.sub })
|
|
467
458
|
] })
|
|
468
459
|
]
|
|
469
460
|
}
|
|
470
461
|
) }),
|
|
471
|
-
/* @__PURE__ */ e("div", { className: b(`${l}-bg--dark`), children: /* @__PURE__ */
|
|
462
|
+
/* @__PURE__ */ e("div", { className: b(`${l}-bg--dark`), children: /* @__PURE__ */ m(
|
|
472
463
|
"nav",
|
|
473
464
|
{
|
|
474
465
|
className: b(
|
|
@@ -476,26 +467,23 @@ const j = ({ className: s, menu: r, more: c }) => {
|
|
|
476
467
|
`${l}__container`
|
|
477
468
|
),
|
|
478
469
|
children: [
|
|
479
|
-
/* @__PURE__ */
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
{
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
),
|
|
491
|
-
/* @__PURE__ */ e("h3", { className: `${l}__nav-mobile__name`, children: s.name })
|
|
492
|
-
] }),
|
|
470
|
+
/* @__PURE__ */ e("div", { className: `${l}__nav-mobile`, children: /* @__PURE__ */ e(
|
|
471
|
+
"div",
|
|
472
|
+
{
|
|
473
|
+
className: `${l}__nav-mobile__logo`,
|
|
474
|
+
onClick: s == null ? void 0 : s.onClick,
|
|
475
|
+
role: "button",
|
|
476
|
+
"aria-label": "Branding",
|
|
477
|
+
tabIndex: 0,
|
|
478
|
+
children: s.logo.mobile
|
|
479
|
+
}
|
|
480
|
+
) }),
|
|
493
481
|
_ && /* @__PURE__ */ e(
|
|
494
482
|
j,
|
|
495
483
|
{
|
|
496
484
|
className: `${l}__nav-menu`,
|
|
497
485
|
menu: _,
|
|
498
|
-
more:
|
|
486
|
+
more: i.length ? {
|
|
499
487
|
label: c.more,
|
|
500
488
|
onClick: () => $(!o),
|
|
501
489
|
isOpen: o
|
|
@@ -516,21 +504,21 @@ const j = ({ className: s, menu: r, more: c }) => {
|
|
|
516
504
|
{
|
|
517
505
|
className: `${l}__nav-burger`,
|
|
518
506
|
"aria-label": "Toggle navigation",
|
|
519
|
-
"aria-expanded":
|
|
520
|
-
onClick: () =>
|
|
507
|
+
"aria-expanded": d,
|
|
508
|
+
onClick: () => h(!d),
|
|
521
509
|
children: /* @__PURE__ */ e("span", { className: `${l}__nav-burger__icon` })
|
|
522
510
|
}
|
|
523
511
|
)
|
|
524
512
|
]
|
|
525
513
|
}
|
|
526
514
|
) }),
|
|
527
|
-
|
|
515
|
+
i && N && /* @__PURE__ */ e(P, { isOpen: o, navRef: p, children: /* @__PURE__ */ e(T, { menu: i }) }),
|
|
528
516
|
N && /* @__PURE__ */ e(
|
|
529
517
|
E,
|
|
530
518
|
{
|
|
531
|
-
isOpen:
|
|
519
|
+
isOpen: d,
|
|
532
520
|
onClose: () => {
|
|
533
|
-
|
|
521
|
+
h(!1);
|
|
534
522
|
},
|
|
535
523
|
navigationProps: {
|
|
536
524
|
widgets: n,
|
package/lib/esm/_store/{TextInput.args-chunk-gw5WCsYI.js → TextInput.args-chunk-DCwrQ9lS.js}
RENAMED
|
@@ -2,7 +2,7 @@ import { jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import p from "react";
|
|
3
3
|
import { c as w } from "./index-chunk-CY3PQDr4.js";
|
|
4
4
|
import { u as g } from "./useGlobalSettings-chunk-Bu2lRvQa.js";
|
|
5
|
-
import { u as _, F as C } from "./FormControl-chunk-
|
|
5
|
+
import { u as _, F as C } from "./FormControl-chunk-CJhnDujX.js";
|
|
6
6
|
const I = p.forwardRef(
|
|
7
7
|
({
|
|
8
8
|
onChange: t,
|
|
@@ -2,7 +2,7 @@ import { jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import i from "react";
|
|
3
3
|
import { c as b } from "./index-chunk-CY3PQDr4.js";
|
|
4
4
|
import { u } from "./useGlobalSettings-chunk-Bu2lRvQa.js";
|
|
5
|
-
import { u as C, F as y } from "./FormControl-chunk-
|
|
5
|
+
import { u as C, F as y } from "./FormControl-chunk-CJhnDujX.js";
|
|
6
6
|
const F = i.forwardRef(
|
|
7
7
|
({ error: e, className: s, name: r, id: t, ...o }, a) => {
|
|
8
8
|
const { prefix: l } = u(), m = C(), { ariaDescribedBy: d } = m, c = `${l}--textarea`, f = `${c}__error`, x = b(c, s, {
|
|
@@ -2,7 +2,7 @@ import { jsxs as z, jsx as a } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as d } from "react";
|
|
3
3
|
import { u as S } from "./useGlobalSettings-chunk-Bu2lRvQa.js";
|
|
4
4
|
import { c as $ } from "./index-chunk-CY3PQDr4.js";
|
|
5
|
-
import { u as j, F as D } from "./FormControl-chunk-
|
|
5
|
+
import { u as j, F as D } from "./FormControl-chunk-CJhnDujX.js";
|
|
6
6
|
const v = d(
|
|
7
7
|
({
|
|
8
8
|
size: s = "medium",
|