@20minutes/hela
Advanced tools
Comparing version 0.1.141 to 0.1.142
@@ -1,35 +0,38 @@ | ||
var S = /* @__PURE__ */ ((e) => (e.MOBILE = "mobile", e.DESKTOP = "desktop", e))(S || {}); | ||
const w = (e) => { | ||
var k = Object.defineProperty; | ||
var I = (e, t, s) => t in e ? k(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s; | ||
var m = (e, t, s) => (I(e, typeof t != "symbol" ? t + "" : t, s), s); | ||
var A = /* @__PURE__ */ ((e) => (e.MOBILE = "mobile", e.DESKTOP = "desktop", e))(A || {}); | ||
const j = (e) => { | ||
e.stopImmediatePropagation(), e.preventDefault(); | ||
const t = e.currentTarget, s = t.parentElement, o = s == null ? void 0 : s.querySelector( | ||
const t = e.currentTarget, s = t.parentElement, i = s == null ? void 0 : s.querySelector( | ||
`#${t.getAttribute("aria-controls")}` | ||
); | ||
t.getAttribute("aria-expanded") === "true" ? (t.setAttribute("aria-expanded", "false"), o == null || o.setAttribute("aria-hidden", "true")) : (t.setAttribute("aria-expanded", "true"), o == null || o.setAttribute("aria-hidden", "false")); | ||
}, A = (e = document.querySelector( | ||
t.getAttribute("aria-expanded") === "true" ? (t.setAttribute("aria-expanded", "false"), i == null || i.setAttribute("aria-hidden", "true")) : (t.setAttribute("aria-expanded", "true"), i == null || i.setAttribute("aria-hidden", "false")); | ||
}, W = (e = document.querySelector( | ||
".js-collapse__button" | ||
)) => { | ||
e && document.querySelectorAll(".c-collapse__button").forEach((s) => { | ||
s.addEventListener("click", (o) => { | ||
w(o); | ||
s.addEventListener("click", (i) => { | ||
j(i); | ||
}); | ||
}); | ||
}, q = (e) => { | ||
}, D = (e) => { | ||
var s; | ||
const t = e.querySelector(".js-expandButton__label"); | ||
e.setAttribute("aria-expanded", "true"), t.innerHTML = "Voir moins", (s = e.previousElementSibling) == null || s.setAttribute("aria-hidden", "false"); | ||
}, T = (e) => { | ||
}, C = (e) => { | ||
var s; | ||
const t = e.querySelector(".js-expandButton__label"); | ||
e.setAttribute("aria-expanded", "false"), t.innerHTML = "Voir plus", (s = e.previousElementSibling) == null || s.setAttribute("aria-hidden", "true"); | ||
}, x = (e) => { | ||
}, F = (e) => { | ||
const t = e.currentTarget; | ||
return e.preventDefault(), t.getAttribute("aria-expanded") === "true" ? T(t) : q(t); | ||
}, k = (e = document.querySelector( | ||
return e.preventDefault(), t.getAttribute("aria-expanded") === "true" ? C(t) : D(t); | ||
}, R = (e = document.querySelector( | ||
".js-expandButton" | ||
)) => { | ||
e && document.querySelectorAll(".js-expandButton").forEach((s) => s.addEventListener("click", x)); | ||
}, $ = (e) => { | ||
e && document.querySelectorAll(".js-expandButton").forEach((s) => s.addEventListener("click", F)); | ||
}, O = (e) => { | ||
const t = e.querySelector(".js-live-form__textarea"), s = e.querySelector("#live-form-submit-section"); | ||
t == null || t.setAttribute("aria-expanded", "true"), s == null || s.setAttribute("aria-hidden", "false"); | ||
}, j = () => { | ||
}, H = () => { | ||
const e = document.querySelector(".js-live-form"); | ||
@@ -40,150 +43,236 @@ if (e) { | ||
); | ||
t == null || t.addEventListener("focus", $.bind(!1, e)); | ||
t == null || t.addEventListener("focus", O.bind(!1, e)); | ||
} | ||
}, r = { | ||
inert: ":not([inert]):not([inert] *)", | ||
negTabIndex: ':not([tabindex^="-"])', | ||
disabled: ":not(:disabled)" | ||
}; | ||
var W = [ | ||
'a[href]:not([tabindex^="-"])', | ||
'area[href]:not([tabindex^="-"])', | ||
'input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])', | ||
'input[type="radio"]:not([disabled]):not([tabindex^="-"])', | ||
'select:not([disabled]):not([tabindex^="-"])', | ||
'textarea:not([disabled]):not([tabindex^="-"])', | ||
'button:not([disabled]):not([tabindex^="-"])', | ||
'iframe:not([tabindex^="-"])', | ||
'audio[controls]:not([tabindex^="-"])', | ||
'video[controls]:not([tabindex^="-"])', | ||
'[contenteditable]:not([tabindex^="-"])', | ||
'[tabindex]:not([tabindex^="-"])' | ||
], D = "Tab", I = "Escape"; | ||
function u(e) { | ||
this._show = this.show.bind(this), this._hide = this.hide.bind(this), this._maintainFocus = this._maintainFocus.bind(this), this._bindKeypress = this._bindKeypress.bind(this), this.$el = e, this.shown = !1, this._id = this.$el.getAttribute("data-a11y-dialog") || this.$el.id, this._previouslyFocused = null, this._listeners = {}, this.create(); | ||
var M = [ | ||
`a[href]${r.inert}${r.negTabIndex}`, | ||
`area[href]${r.inert}${r.negTabIndex}`, | ||
`input:not([type="hidden"]):not([type="radio"])${r.inert}${r.negTabIndex}${r.disabled}`, | ||
`input[type="radio"]${r.inert}${r.negTabIndex}${r.disabled}`, | ||
`select${r.inert}${r.negTabIndex}${r.disabled}`, | ||
`textarea${r.inert}${r.negTabIndex}${r.disabled}`, | ||
`button${r.inert}${r.negTabIndex}${r.disabled}`, | ||
`details${r.inert} > summary:first-of-type${r.negTabIndex}`, | ||
// Discard until Firefox supports `:has()` | ||
// See: https://github.com/KittyGiraudel/focusable-selectors/issues/12 | ||
// `details:not(:has(> summary))${not.inert}${not.negTabIndex}`, | ||
`iframe${r.inert}${r.negTabIndex}`, | ||
`audio[controls]${r.inert}${r.negTabIndex}`, | ||
`video[controls]${r.inert}${r.negTabIndex}`, | ||
`[contenteditable]${r.inert}${r.negTabIndex}`, | ||
`[tabindex]${r.inert}${r.negTabIndex}` | ||
]; | ||
function _(e) { | ||
(e.querySelector("[autofocus]") || e).focus(); | ||
} | ||
u.prototype.create = function() { | ||
this.$el.setAttribute("aria-hidden", !0), this.$el.setAttribute("aria-modal", !0), this.$el.setAttribute("tabindex", -1), this.$el.hasAttribute("role") || this.$el.setAttribute("role", "dialog"), this._openers = m('[data-a11y-dialog-show="' + this._id + '"]'), this._openers.forEach( | ||
(function(t) { | ||
t.addEventListener("click", this._show); | ||
}).bind(this) | ||
); | ||
const e = this.$el; | ||
return this._closers = m("[data-a11y-dialog-hide]", this.$el).filter(function(t) { | ||
return t.closest('[aria-modal="true"], [data-a11y-dialog]') === e; | ||
}).concat(m('[data-a11y-dialog-hide="' + this._id + '"]')), this._closers.forEach( | ||
(function(t) { | ||
t.addEventListener("click", this._hide); | ||
}).bind(this) | ||
), this._fire("create"), this; | ||
function K(e) { | ||
const t = y(e, !0), s = t ? y(e, !1) || t : null; | ||
return [t, s]; | ||
} | ||
function y(e, t) { | ||
if (t && L(e)) | ||
return e; | ||
if (N(e)) | ||
if (e.shadowRoot) { | ||
let s = S(e.shadowRoot, t); | ||
for (; s; ) { | ||
const i = y(s, t); | ||
if (i) | ||
return i; | ||
s = E(s, t); | ||
} | ||
} else if (e.localName === "slot") { | ||
const s = e.assignedElements({ | ||
flatten: !0 | ||
}); | ||
t || s.reverse(); | ||
for (const i of s) { | ||
const n = y(i, t); | ||
if (n) | ||
return n; | ||
} | ||
} else { | ||
let s = S(e, t); | ||
for (; s; ) { | ||
const i = y(s, t); | ||
if (i) | ||
return i; | ||
s = E(s, t); | ||
} | ||
} | ||
return !t && L(e) ? e : null; | ||
} | ||
function S(e, t) { | ||
return t ? e.firstElementChild : e.lastElementChild; | ||
} | ||
function E(e, t) { | ||
return t ? e.nextElementSibling : e.previousElementSibling; | ||
} | ||
const B = (e) => e.matches("details:not([open]) *") && !e.matches("details>summary:first-of-type") ? !0 : !(e.offsetWidth || e.offsetHeight || e.getClientRects().length), L = (e) => { | ||
var t; | ||
return (t = e.shadowRoot) != null && t.delegatesFocus ? !1 : e.matches(M.join(",")) && !B(e); | ||
}; | ||
u.prototype.show = function(e) { | ||
return this.shown ? this : (this._previouslyFocused = document.activeElement, this.$el.removeAttribute("aria-hidden"), this.shown = !0, L(this.$el), document.body.addEventListener("focus", this._maintainFocus, !0), document.addEventListener("keydown", this._bindKeypress), this._fire("show", e), this); | ||
}; | ||
u.prototype.hide = function(e) { | ||
return this.shown ? (this.shown = !1, this.$el.setAttribute("aria-hidden", "true"), this._previouslyFocused && this._previouslyFocused.focus && this._previouslyFocused.focus(), document.body.removeEventListener("focus", this._maintainFocus, !0), document.removeEventListener("keydown", this._bindKeypress), this._fire("hide", e), this) : this; | ||
}; | ||
u.prototype.destroy = function() { | ||
return this.hide(), this._openers.forEach( | ||
(function(e) { | ||
e.removeEventListener("click", this._show); | ||
}).bind(this) | ||
), this._closers.forEach( | ||
(function(e) { | ||
e.removeEventListener("click", this._hide); | ||
}).bind(this) | ||
), this._fire("destroy"), this._listeners = {}, this; | ||
}; | ||
u.prototype.on = function(e, t) { | ||
return typeof this._listeners[e] > "u" && (this._listeners[e] = []), this._listeners[e].push(t), this; | ||
}; | ||
u.prototype.off = function(e, t) { | ||
var s = (this._listeners[e] || []).indexOf(t); | ||
return s > -1 && this._listeners[e].splice(s, 1), this; | ||
}; | ||
u.prototype._fire = function(e, t) { | ||
var s = this._listeners[e] || [], o = new CustomEvent(e, { detail: t }); | ||
this.$el.dispatchEvent(o), s.forEach( | ||
(function(n) { | ||
n(this.$el, t); | ||
}).bind(this) | ||
); | ||
}; | ||
u.prototype._bindKeypress = function(e) { | ||
const t = document.activeElement; | ||
t && t.closest('[aria-modal="true"]') !== this.$el || (this.shown && e.key === I && this.$el.getAttribute("role") !== "alertdialog" && (e.preventDefault(), this.hide(e)), this.shown && e.key === D && M(this.$el, e)); | ||
}; | ||
u.prototype._maintainFocus = function(e) { | ||
this.shown && !e.target.closest('[aria-modal="true"]') && !e.target.closest("[data-a11y-dialog-ignore-focus-trap]") && L(this.$el); | ||
}; | ||
function O(e) { | ||
return Array.prototype.slice.call(e); | ||
function N(e) { | ||
return e.shadowRoot && e.getAttribute("tabindex") === "-1" ? !1 : !e.matches(":disabled,[hidden],[inert]"); | ||
} | ||
function m(e, t) { | ||
return O((t || document).querySelectorAll(e)); | ||
function v(e = document) { | ||
const t = e.activeElement; | ||
return t ? t.shadowRoot ? v(t.shadowRoot) || document.activeElement : t : null; | ||
} | ||
function L(e) { | ||
var t = e.querySelector("[autofocus]") || e; | ||
t.focus(); | ||
function P(e, t) { | ||
const [s, i] = K(e); | ||
if (!s) | ||
return t.preventDefault(); | ||
const n = v(); | ||
t.shiftKey && n === s ? (i.focus(), t.preventDefault()) : !t.shiftKey && n === i && (s.focus(), t.preventDefault()); | ||
} | ||
function F(e) { | ||
return m(W.join(","), e).filter(function(t) { | ||
return !!(t.offsetWidth || t.offsetHeight || t.getClientRects().length); | ||
}); | ||
class q { | ||
constructor(t) { | ||
m(this, "$el"); | ||
m(this, "id"); | ||
m(this, "previouslyFocused"); | ||
m(this, "shown"); | ||
this.$el = t, this.id = this.$el.getAttribute("data-a11y-dialog") || this.$el.id, this.previouslyFocused = null, this.shown = !1, this.maintainFocus = this.maintainFocus.bind(this), this.bindKeypress = this.bindKeypress.bind(this), this.handleTriggerClicks = this.handleTriggerClicks.bind(this), this.show = this.show.bind(this), this.hide = this.hide.bind(this), this.$el.setAttribute("aria-hidden", "true"), this.$el.setAttribute("aria-modal", "true"), this.$el.setAttribute("tabindex", "-1"), this.$el.hasAttribute("role") || this.$el.setAttribute("role", "dialog"), document.addEventListener("click", this.handleTriggerClicks, !0); | ||
} | ||
/** | ||
* Destroy the current instance (after making sure the dialog has been hidden) | ||
* and remove all associated listeners from dialog openers and closers | ||
*/ | ||
destroy() { | ||
return this.hide(), document.removeEventListener("click", this.handleTriggerClicks, !0), this.$el.replaceWith(this.$el.cloneNode(!0)), this.fire("destroy"), this; | ||
} | ||
/** | ||
* Show the dialog element, trap the current focus within it, listen for some | ||
* specific key presses and fire all registered callbacks for `show` event | ||
*/ | ||
show(t) { | ||
var s; | ||
return this.shown ? this : (this.shown = !0, this.$el.removeAttribute("aria-hidden"), this.previouslyFocused = v(), ((s = this.previouslyFocused) == null ? void 0 : s.tagName) === "BODY" && (t != null && t.target) && (this.previouslyFocused = t.target), _(this.$el), document.body.addEventListener("focus", this.maintainFocus, !0), this.$el.addEventListener("keydown", this.bindKeypress, !0), this.fire("show", t), this); | ||
} | ||
/** | ||
* Hide the dialog element, restore the focus to the previously active | ||
* element, stop listening for some specific key presses and fire all | ||
* registered callbacks for `hide` event | ||
*/ | ||
hide(t) { | ||
var s, i; | ||
return this.shown ? (this.shown = !1, this.$el.setAttribute("aria-hidden", "true"), (i = (s = this.previouslyFocused) == null ? void 0 : s.focus) == null || i.call(s), document.body.removeEventListener("focus", this.maintainFocus, !0), this.$el.removeEventListener("keydown", this.bindKeypress, !0), this.fire("hide", t), this) : this; | ||
} | ||
/** | ||
* Register a new callback for the given event type | ||
*/ | ||
on(t, s, i) { | ||
return this.$el.addEventListener(t, s, i), this; | ||
} | ||
/** | ||
* Unregister an existing callback for the given event type | ||
*/ | ||
off(t, s, i) { | ||
return this.$el.removeEventListener(t, s, i), this; | ||
} | ||
/** | ||
* Dispatch a custom event from the DOM element associated with this dialog. | ||
* This allows authors to listen for and respond to the events in their own | ||
* code | ||
*/ | ||
fire(t, s) { | ||
this.$el.dispatchEvent(new CustomEvent(t, { | ||
detail: s, | ||
cancelable: !0 | ||
})); | ||
} | ||
/** | ||
* Add a delegated event listener for when elememts that open or close the | ||
* dialog are clicked, and call `show` or `hide`, respectively | ||
*/ | ||
handleTriggerClicks(t) { | ||
const s = t.target; | ||
s.closest(`[data-a11y-dialog-show="${this.id}"]`) && this.show(t), (s.closest(`[data-a11y-dialog-hide="${this.id}"]`) || s.closest("[data-a11y-dialog-hide]") && s.closest('[aria-modal="true"]') === this.$el) && this.hide(t); | ||
} | ||
/** | ||
* Private event handler used when listening to some specific key presses | ||
* (namely ESC and TAB) | ||
*/ | ||
bindKeypress(t) { | ||
var s; | ||
((s = document.activeElement) == null ? void 0 : s.closest('[aria-modal="true"]')) === this.$el && (t.key === "Escape" && this.$el.getAttribute("role") !== "alertdialog" && (t.preventDefault(), this.hide(t)), t.key === "Tab" && P(this.$el, t)); | ||
} | ||
/** | ||
* If the dialog is shown and the focus is not within a dialog element (either | ||
* this one or another one in case of nested dialogs) or attribute, move it | ||
* back to the dialog container | ||
* See: https://github.com/KittyGiraudel/a11y-dialog/issues/177 | ||
*/ | ||
maintainFocus(t) { | ||
t.target.closest('[aria-modal="true"], [data-a11y-dialog-ignore-focus-trap]') || _(this.$el); | ||
} | ||
} | ||
function M(e, t) { | ||
var s = F(e), o = s.indexOf(document.activeElement); | ||
t.shiftKey && o === 0 ? (s[s.length - 1].focus(), t.preventDefault()) : !t.shiftKey && o === s.length - 1 && (s[0].focus(), t.preventDefault()); | ||
function $() { | ||
for (const e of document.querySelectorAll("[data-a11y-dialog]")) | ||
new q(e); | ||
} | ||
function y() { | ||
m("[data-a11y-dialog]").forEach(function(e) { | ||
new u(e); | ||
}); | ||
} | ||
typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", y) : window.requestAnimationFrame ? window.requestAnimationFrame(y) : window.setTimeout(y, 16)); | ||
const H = (e = document.querySelector(".js-modal")) => { | ||
e && new u(e).on("show", () => (document.documentElement.style.overflowY = "hidden", !0)).on("hide", () => (document.documentElement.style.overflowY = "", !0)); | ||
}, C = ({ navigatedList: e, nextBtn: t, prevBtn: s }) => { | ||
const o = e.scrollLeft > 0, n = e.scrollLeft + e.clientWidth < e.scrollWidth; | ||
o && n ? (t.classList.add("o-nav-button--visible"), s.classList.add("o-nav-button--visible")) : o ? (t.classList.remove("o-nav-button--visible"), s.classList.add("o-nav-button--visible")) : n ? (t.classList.add("o-nav-button--visible"), s.classList.remove("o-nav-button--visible")) : (t.classList.remove("o-nav-button--visible"), s.classList.remove("o-nav-button--visible")); | ||
}, R = ({ | ||
typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", $) : $()); | ||
const V = (e = document.querySelector(".js-modal")) => { | ||
if (e) { | ||
const t = new q(e), s = { | ||
x: 0, | ||
y: 0 | ||
}; | ||
t.on("show", () => { | ||
s.x = window.scrollX, s.y = window.scrollY, document.body.style.top = `-${s.y}px`, document.body.classList.add("noscroll"); | ||
}).on("hide", () => { | ||
document.body.classList.remove("noscroll"), document.body.style.top = "", window.scroll(s.x, s.y); | ||
}); | ||
} | ||
}, z = ({ navigatedList: e, nextBtn: t, prevBtn: s }) => { | ||
const i = e.scrollLeft > 0, n = e.scrollLeft + e.clientWidth < e.scrollWidth; | ||
i && n ? (t.classList.add("o-nav-button--visible"), s.classList.add("o-nav-button--visible")) : i ? (t.classList.remove("o-nav-button--visible"), s.classList.add("o-nav-button--visible")) : n ? (t.classList.add("o-nav-button--visible"), s.classList.remove("o-nav-button--visible")) : (t.classList.remove("o-nav-button--visible"), s.classList.remove("o-nav-button--visible")); | ||
}, Y = ({ | ||
navigatedList: e, | ||
nextBtn: t, | ||
prevBtn: s, | ||
sliderVariant: o | ||
sliderVariant: i | ||
}) => { | ||
if (e) { | ||
const n = e.closest(".js-overview-bar-container"), l = n == null ? void 0 : n.querySelector(".c-stepper"), c = l == null ? void 0 : l.querySelectorAll(".c-stepper__item"); | ||
if (c) { | ||
const i = Array.from(c).findIndex( | ||
(r) => r.classList.contains("c-stepper__item--loading") | ||
const n = e.closest(".js-overview-bar-container"), c = n == null ? void 0 : n.querySelector(".c-stepper"), a = c == null ? void 0 : c.querySelectorAll(".c-stepper__item"); | ||
if (a) { | ||
const o = Array.from(a).findIndex( | ||
(l) => l.classList.contains("c-stepper__item--loading") | ||
); | ||
if (i < 0) | ||
c[0].classList.add("c-stepper__item--loading"); | ||
if (o < 0) | ||
a[0].classList.add("c-stepper__item--loading"); | ||
else { | ||
c[i].classList.remove("c-stepper__item--loading"), c[i].classList.add("c-stepper__item--loaded"); | ||
const r = c[i].querySelector(".c-stepper__loader"); | ||
r && r instanceof HTMLElement && (r.style.transition = "width 0s linear"), i + 1 < c.length && c[i + 1].classList.add("c-stepper__item--loading"); | ||
a[o].classList.remove("c-stepper__item--loading"), a[o].classList.add("c-stepper__item--loaded"); | ||
const l = a[o].querySelector(".c-stepper__loader"); | ||
l && l instanceof HTMLElement && (l.style.transition = "width 0s linear"), o + 1 < a.length && a[o + 1].classList.add("c-stepper__item--loading"); | ||
} | ||
} | ||
if (e.scrollWidth - e.clientWidth > e.clientWidth) { | ||
let i = e.scrollLeft; | ||
switch (o) { | ||
let o = e.scrollLeft; | ||
switch (i) { | ||
case "partners": | ||
i += e.clientWidth + 32; | ||
o += e.clientWidth + 32; | ||
break; | ||
case "rubrics": | ||
i += e.clientWidth - 36; | ||
o += e.clientWidth - 36; | ||
break; | ||
case "overviewbar": | ||
i += e.clientWidth - 20; | ||
o += e.clientWidth - 20; | ||
break; | ||
default: | ||
i += Math.ceil(e.clientWidth * 0.6); | ||
o += Math.ceil(e.clientWidth * 0.6); | ||
break; | ||
} | ||
e.scrollTo({ | ||
left: i, | ||
left: o, | ||
behavior: "smooth" | ||
}), s.classList.add("o-nav-button--visible"), i + e.clientWidth >= e.scrollWidth && t.classList.remove("o-nav-button--visible"); | ||
}), s.classList.add("o-nav-button--visible"), o + e.clientWidth >= e.scrollWidth && t.classList.remove("o-nav-button--visible"); | ||
} else { | ||
const i = e.scrollWidth - e.clientWidth; | ||
const o = e.scrollWidth - e.clientWidth; | ||
e.scrollTo({ | ||
left: i, | ||
left: o, | ||
behavior: "smooth" | ||
@@ -193,40 +282,40 @@ }), t.classList.remove("o-nav-button--visible"), s.classList.add("o-nav-button--visible"); | ||
} | ||
}, K = ({ | ||
}, U = ({ | ||
navigatedList: e, | ||
nextBtn: t, | ||
prevBtn: s, | ||
sliderVariant: o, | ||
sliderVariant: i, | ||
delay: n | ||
}) => { | ||
if (e) { | ||
const l = e.closest(".js-overview-bar-container"), c = l == null ? void 0 : l.querySelector(".c-stepper"), i = c == null ? void 0 : c.querySelectorAll(".c-stepper__item"); | ||
if (i) { | ||
const r = Array.from(i).findIndex( | ||
(a) => a.classList.contains("c-stepper__item--loading") | ||
const c = e.closest(".js-overview-bar-container"), a = c == null ? void 0 : c.querySelector(".c-stepper"), o = a == null ? void 0 : a.querySelectorAll(".c-stepper__item"); | ||
if (o) { | ||
const l = Array.from(o).findIndex( | ||
(d) => d.classList.contains("c-stepper__item--loading") | ||
); | ||
r < 0 ? i[0].classList.add("c-stepper__item--loading") : (i[r].classList.remove("c-stepper__item--loading"), i[r].classList.remove("c-stepper__item--loaded"), r - 1 > 0 && (i[r - 1].classList.remove("c-stepper__item--loading"), i[r - 1].classList.remove("c-stepper__item--loaded"), setTimeout(() => { | ||
const a = i[r - 1].querySelector(".c-stepper__loader"); | ||
i[r - 1].classList.add("c-stepper__item--loading"), a && a instanceof HTMLElement && (a.style.transition = `width ${n / 1e3}s linear`); | ||
l < 0 ? o[0].classList.add("c-stepper__item--loading") : (o[l].classList.remove("c-stepper__item--loading"), o[l].classList.remove("c-stepper__item--loaded"), l - 1 > 0 && (o[l - 1].classList.remove("c-stepper__item--loading"), o[l - 1].classList.remove("c-stepper__item--loaded"), setTimeout(() => { | ||
const d = o[l - 1].querySelector(".c-stepper__loader"); | ||
o[l - 1].classList.add("c-stepper__item--loading"), d && d instanceof HTMLElement && (d.style.transition = `width ${n / 1e3}s linear`); | ||
}, 0))); | ||
} | ||
if (e.clientWidth < e.scrollLeft) { | ||
let r = e.scrollLeft; | ||
switch (o) { | ||
let l = e.scrollLeft; | ||
switch (i) { | ||
case "partners": | ||
r -= e.clientWidth + 32; | ||
l -= e.clientWidth + 32; | ||
break; | ||
case "rubrics": | ||
r -= e.clientWidth - 36; | ||
l -= e.clientWidth - 36; | ||
break; | ||
case "overviewbar": | ||
r -= e.clientWidth - 24; | ||
l -= e.clientWidth - 24; | ||
break; | ||
default: | ||
r -= Math.ceil(e.clientWidth * 0.6); | ||
l -= Math.ceil(e.clientWidth * 0.6); | ||
break; | ||
} | ||
e.scrollTo({ | ||
left: r, | ||
left: l, | ||
behavior: "smooth" | ||
}), t.classList.add("o-nav-button--visible"), r === 0 && s.classList.remove("o-nav-button--visible"); | ||
}), t.classList.add("o-nav-button--visible"), l === 0 && s.classList.remove("o-nav-button--visible"); | ||
} else | ||
@@ -238,4 +327,4 @@ e.scrollTo({ | ||
} | ||
}, P = ({ navigatedList: e, nextBtn: t, prevBtn: s }) => { | ||
C({ | ||
}, X = ({ navigatedList: e, nextBtn: t, prevBtn: s }) => { | ||
z({ | ||
navigatedList: e, | ||
@@ -245,10 +334,10 @@ nextBtn: t, | ||
}); | ||
}, B = () => { | ||
}, G = () => { | ||
const e = document.querySelectorAll(".js-navigation-container"); | ||
for (const t of Array.from(e)) { | ||
const { sliderVariant: s } = t.dataset, { sliderAuto: o } = t.dataset, { sliderDelay: n } = t.dataset, l = n ? parseInt(n, 10) : 3e3, c = t.closest(".js-overview-bar-container"), i = c == null ? void 0 : c.querySelector(".c-stepper"), r = i == null ? void 0 : i.querySelectorAll(".c-stepper__item"); | ||
const { sliderVariant: s } = t.dataset, { sliderAuto: i } = t.dataset, { sliderDelay: n } = t.dataset, c = n ? parseInt(n, 10) : 3e3, a = t.closest(".js-overview-bar-container"), o = a == null ? void 0 : a.querySelector(".c-stepper"), l = o == null ? void 0 : o.querySelectorAll(".c-stepper__item"); | ||
if (t) { | ||
const a = t.querySelector( | ||
const d = t.querySelector( | ||
".js-navigation-container__list" | ||
), d = t.querySelector( | ||
), u = t.querySelector( | ||
".o-nav-button--next-button" | ||
@@ -258,7 +347,7 @@ ), h = t.querySelector( | ||
); | ||
if (a && a.clientWidth < a.scrollWidth && (d == null || d.classList.add("o-nav-button--visible")), d == null || d.addEventListener( | ||
if (d && d.clientWidth < d.scrollWidth && (u == null || u.classList.add("o-nav-button--visible")), u == null || u.addEventListener( | ||
"click", | ||
R.bind(!1, { | ||
navigatedList: a, | ||
nextBtn: d, | ||
Y.bind(!1, { | ||
navigatedList: d, | ||
nextBtn: u, | ||
prevBtn: h, | ||
@@ -269,28 +358,28 @@ sliderVariant: s | ||
"click", | ||
K.bind(!1, { | ||
navigatedList: a, | ||
nextBtn: d, | ||
U.bind(!1, { | ||
navigatedList: d, | ||
nextBtn: u, | ||
prevBtn: h, | ||
sliderVariant: s, | ||
delay: l | ||
delay: c | ||
}) | ||
), o === "true" && d) { | ||
const E = i ? i.querySelector(".c-stepper__item--loading") : null; | ||
r && (r.forEach((b) => { | ||
), i === "true" && u) { | ||
const x = o ? o.querySelector(".c-stepper__item--loading") : null; | ||
l && (l.forEach((b) => { | ||
const f = b.querySelector(".c-stepper__loader"); | ||
f && f instanceof HTMLElement && (f.style.transition = `width ${l / 1e3}s linear`); | ||
}), E || r[0].classList.add("c-stepper__item--loading")), setInterval(() => { | ||
d.classList.contains("o-nav-button--visible") ? d.click() : a && h && (a.scrollLeft = 0, r && (r.forEach((b) => { | ||
f && f instanceof HTMLElement && (f.style.transition = `width ${c / 1e3}s linear`); | ||
}), x || l[0].classList.add("c-stepper__item--loading")), setInterval(() => { | ||
u.classList.contains("o-nav-button--visible") ? u.click() : d && h && (d.scrollLeft = 0, l && (l.forEach((b) => { | ||
const f = b.querySelector(".c-stepper__loader"); | ||
f && f instanceof HTMLElement && (f.style.transition = "width 0s linear"), b.classList.remove("c-stepper__item--loading"), b.classList.remove("c-stepper__item--loaded"), setTimeout(() => { | ||
f && f instanceof HTMLElement && (f.style.transition = `width ${l / 1e3}s linear`); | ||
f && f instanceof HTMLElement && (f.style.transition = `width ${c / 1e3}s linear`); | ||
}, 0); | ||
}), setTimeout(() => { | ||
r[0].classList.add("c-stepper__item--loading"); | ||
l[0].classList.add("c-stepper__item--loading"); | ||
}, 0)), h.click()); | ||
}, l); | ||
}, c); | ||
} | ||
} | ||
} | ||
}, V = () => { | ||
}, J = () => { | ||
const e = document.querySelectorAll(".js-navigation-container"); | ||
@@ -300,7 +389,7 @@ for (const t of Array.from(e)) { | ||
if (t) { | ||
const o = t.querySelector( | ||
const i = t.querySelector( | ||
".js-navigation-container__list" | ||
), n = t.querySelector( | ||
".o-nav-button--next-button" | ||
), l = t.querySelector( | ||
), c = t.querySelector( | ||
".o-nav-button--previous-button" | ||
@@ -310,6 +399,6 @@ ); | ||
"resize", | ||
P.bind(!1, { | ||
navigatedList: o, | ||
X.bind(!1, { | ||
navigatedList: i, | ||
nextBtn: n, | ||
prevBtn: l, | ||
prevBtn: c, | ||
sliderVariant: s | ||
@@ -320,3 +409,3 @@ }) | ||
} | ||
}, Y = () => { | ||
}, Q = () => { | ||
const e = document.querySelectorAll(".js-header-link"), t = document.querySelector(".js-overlay"); | ||
@@ -326,5 +415,5 @@ if (t) | ||
s.addEventListener("mouseenter", () => { | ||
const o = s.querySelector(".js-sub-menu"); | ||
if (o) { | ||
if (window.getComputedStyle(o).getPropertyValue("display") !== "none") { | ||
const i = s.querySelector(".js-sub-menu"); | ||
if (i) { | ||
if (window.getComputedStyle(i).getPropertyValue("display") !== "none") { | ||
setTimeout(() => t.classList.remove("u-hidden"), 300); | ||
@@ -338,19 +427,19 @@ return; | ||
}); | ||
}, z = () => { | ||
}, Z = () => { | ||
const e = document.querySelector(".js-limit-scroll-progress-bar"), t = document.querySelector(".c-progress__bar"), { documentElement: s } = document; | ||
if (!t) | ||
return; | ||
let o = s.scrollHeight - s.clientHeight; | ||
if (!o) | ||
let i = s.scrollHeight - s.clientHeight; | ||
if (!i) | ||
return; | ||
const n = s.scrollTop; | ||
e && (o = e.scrollHeight - s.clientHeight + (window.pageYOffset + e.getBoundingClientRect().top)); | ||
const l = Math.round(n / o * 100); | ||
t.style.width = `${l}%`, l >= 100 && (t.style.width = "100%"); | ||
}, N = () => { | ||
document.querySelector(".c-progress") && window.addEventListener("scroll", z); | ||
e && (i = e.scrollHeight - s.clientHeight + (window.pageYOffset + e.getBoundingClientRect().top)); | ||
const c = Math.round(n / i * 100); | ||
t.style.width = `${c}%`, c >= 100 && (t.style.width = "100%"); | ||
}, ee = () => { | ||
document.querySelector(".c-progress") && window.addEventListener("scroll", Z); | ||
}; | ||
let p, _ = 0; | ||
const U = () => { | ||
p = null, document.body.getBoundingClientRect().top > _ + 2 && (p = "up"), document.body.getBoundingClientRect().top < _ - 2 && (p = "down"), _ = document.body.getBoundingClientRect().top; | ||
let p, g = 0; | ||
const te = () => { | ||
p = null, document.body.getBoundingClientRect().top > g + 2 && (p = "up"), document.body.getBoundingClientRect().top < g - 2 && (p = "down"), g = document.body.getBoundingClientRect().top; | ||
const e = document.querySelector(".c-read-also-banner"); | ||
@@ -361,3 +450,3 @@ if (e) { | ||
} | ||
}, G = (e = document.querySelector( | ||
}, se = (e = document.querySelector( | ||
".c-read-also-banner" | ||
@@ -368,11 +457,11 @@ )) => { | ||
window.addEventListener("scroll", () => { | ||
clearTimeout(t), t = setTimeout(U, 100); | ||
clearTimeout(t), t = setTimeout(te, 100); | ||
}); | ||
} | ||
}, J = (e) => { | ||
var o; | ||
}, ie = (e) => { | ||
var i; | ||
e.preventDefault(); | ||
const t = e.currentTarget, s = (o = t.closest(".js-search-toggle")) == null ? void 0 : o.querySelector(".c-search-form"); | ||
const t = e.currentTarget, s = (i = t.closest(".js-search-toggle")) == null ? void 0 : i.querySelector(".c-search-form"); | ||
t.setAttribute("aria-hidden", "true"), s == null || s.setAttribute("aria-hidden", "false"); | ||
}, Q = (e = document.querySelector( | ||
}, oe = (e = document.querySelector( | ||
".js-search-toggle" | ||
@@ -382,5 +471,5 @@ )) => { | ||
const t = e.querySelector(".c-header__search-button"); | ||
t == null || t.addEventListener("click", J); | ||
t == null || t.addEventListener("click", ie); | ||
} | ||
}, X = () => { | ||
}, ne = () => { | ||
if (typeof navigator.share == "function") { | ||
@@ -397,7 +486,7 @@ const e = document.title, t = window.location.href; | ||
} | ||
}, Z = (e = document.querySelector( | ||
}, re = (e = document.querySelector( | ||
".js-mobile-share-button" | ||
)) => { | ||
e && e.addEventListener("click", X); | ||
}, ee = (e) => { | ||
e && e.addEventListener("click", ne); | ||
}, le = (e) => { | ||
const { target: t } = e; | ||
@@ -408,3 +497,3 @@ if (t instanceof Element) { | ||
} | ||
}, te = (e = document.querySelector( | ||
}, ce = (e = document.querySelector( | ||
".c-search-form--button" | ||
@@ -414,5 +503,5 @@ )) => { | ||
"click", | ||
(t) => ee(t) | ||
(t) => le(t) | ||
); | ||
}, se = ({ | ||
}, ae = ({ | ||
tabsContainerElement: e, | ||
@@ -422,16 +511,16 @@ event: t | ||
t.preventDefault(); | ||
const s = t.target, o = e.querySelectorAll('[role="tab"]'), n = e.querySelectorAll('[role="tabpanel"]'), l = s.getAttribute("aria-controls"), c = Object.values(n).find( | ||
(i) => i.id === l | ||
const s = t.target, i = e.querySelectorAll('[role="tab"]'), n = e.querySelectorAll('[role="tabpanel"]'), c = s.getAttribute("aria-controls"), a = Object.values(n).find( | ||
(o) => o.id === c | ||
); | ||
o.forEach((i) => { | ||
i.setAttribute("aria-selected", "false"); | ||
}), n.forEach((i) => { | ||
i.setAttribute("aria-hidden", "true"); | ||
}), s.setAttribute("aria-selected", "true"), c && c.removeAttribute("aria-hidden"); | ||
}, v = (e) => e.code === "ArrowLeft" || e.keyCode === 39, g = (e) => e.code === "ArrowRight" || e.keyCode === 37, oe = (e = document.querySelector(".js-tabs")) => { | ||
i.forEach((o) => { | ||
o.setAttribute("aria-selected", "false"); | ||
}), n.forEach((o) => { | ||
o.setAttribute("aria-hidden", "true"); | ||
}), s.setAttribute("aria-selected", "true"), a && a.removeAttribute("aria-hidden"); | ||
}, w = (e) => e.code === "ArrowLeft" || e.keyCode === 39, T = (e) => e.code === "ArrowRight" || e.keyCode === 37, de = (e = document.querySelector(".js-tabs")) => { | ||
if (e) { | ||
const t = e.querySelectorAll('[role="tab"]'); | ||
t.forEach((o) => { | ||
o.addEventListener("click", (n) => { | ||
se({ tabsContainerElement: e, event: n }); | ||
t.forEach((i) => { | ||
i.addEventListener("click", (n) => { | ||
ae({ tabsContainerElement: e, event: n }); | ||
}); | ||
@@ -441,13 +530,13 @@ }); | ||
if (s && t.length > 0) { | ||
let o = 0; | ||
let i = 0; | ||
s.addEventListener("keydown", (n) => { | ||
n instanceof KeyboardEvent && (v(n) || g(n)) && (t[o].setAttribute("tabindex", "-1"), v(n) ? (o += 1, o >= t.length && (o = 0)) : g(n) && (o -= 1, o < 0 && (o = t.length - 1)), t[o].setAttribute("tabindex", "0"), t[o].focus()); | ||
n instanceof KeyboardEvent && (w(n) || T(n)) && (t[i].setAttribute("tabindex", "-1"), w(n) ? (i += 1, i >= t.length && (i = 0)) : T(n) && (i -= 1, i < 0 && (i = t.length - 1)), t[i].setAttribute("tabindex", "0"), t[i].focus()); | ||
}); | ||
} | ||
} | ||
}, ie = () => { | ||
k(), oe(), A(), N(), Q(), Z(), H(), G(), j(), te(), B(), V(), window.layout === S.DESKTOP && Y(); | ||
}, fe = () => { | ||
R(), de(), W(), ee(), oe(), re(), V(), se(), H(), ce(), G(), J(), window.layout === A.DESKTOP && Q(); | ||
}; | ||
export { | ||
ie as initScripts | ||
fe as initScripts | ||
}; |
@@ -1,1 +0,1 @@ | ||
(function(b,p){typeof exports=="object"&&typeof module<"u"?p(exports):typeof define=="function"&&define.amd?define(["exports"],p):(b=typeof globalThis<"u"?globalThis:b||self,p(b.scripts={}))})(this,function(b){"use strict";var p=(e=>(e.MOBILE="mobile",e.DESKTOP="desktop",e))(p||{});const w=e=>{e.stopImmediatePropagation(),e.preventDefault();const t=e.currentTarget,s=t.parentElement,o=s==null?void 0:s.querySelector(`#${t.getAttribute("aria-controls")}`);t.getAttribute("aria-expanded")==="true"?(t.setAttribute("aria-expanded","false"),o==null||o.setAttribute("aria-hidden","true")):(t.setAttribute("aria-expanded","true"),o==null||o.setAttribute("aria-hidden","false"))},A=(e=document.querySelector(".js-collapse__button"))=>{e&&document.querySelectorAll(".c-collapse__button").forEach(s=>{s.addEventListener("click",o=>{w(o)})})},q=e=>{var s;const t=e.querySelector(".js-expandButton__label");e.setAttribute("aria-expanded","true"),t.innerHTML="Voir moins",(s=e.previousElementSibling)==null||s.setAttribute("aria-hidden","false")},T=e=>{var s;const t=e.querySelector(".js-expandButton__label");e.setAttribute("aria-expanded","false"),t.innerHTML="Voir plus",(s=e.previousElementSibling)==null||s.setAttribute("aria-hidden","true")},x=e=>{const t=e.currentTarget;return e.preventDefault(),t.getAttribute("aria-expanded")==="true"?T(t):q(t)},k=(e=document.querySelector(".js-expandButton"))=>{e&&document.querySelectorAll(".js-expandButton").forEach(s=>s.addEventListener("click",x))},j=e=>{const t=e.querySelector(".js-live-form__textarea"),s=e.querySelector("#live-form-submit-section");t==null||t.setAttribute("aria-expanded","true"),s==null||s.setAttribute("aria-hidden","false")},$=()=>{const e=document.querySelector(".js-live-form");if(e){const t=e.querySelector(".js-live-form__textarea textarea");t==null||t.addEventListener("focus",j.bind(!1,e))}};var W=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])','input[type="radio"]:not([disabled]):not([tabindex^="-"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','iframe:not([tabindex^="-"])','audio[controls]:not([tabindex^="-"])','video[controls]:not([tabindex^="-"])','[contenteditable]:not([tabindex^="-"])','[tabindex]:not([tabindex^="-"])'],D="Tab",O="Escape";function d(e){this._show=this.show.bind(this),this._hide=this.hide.bind(this),this._maintainFocus=this._maintainFocus.bind(this),this._bindKeypress=this._bindKeypress.bind(this),this.$el=e,this.shown=!1,this._id=this.$el.getAttribute("data-a11y-dialog")||this.$el.id,this._previouslyFocused=null,this._listeners={},this.create()}d.prototype.create=function(){this.$el.setAttribute("aria-hidden",!0),this.$el.setAttribute("aria-modal",!0),this.$el.setAttribute("tabindex",-1),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),this._openers=m('[data-a11y-dialog-show="'+this._id+'"]'),this._openers.forEach((function(t){t.addEventListener("click",this._show)}).bind(this));const e=this.$el;return this._closers=m("[data-a11y-dialog-hide]",this.$el).filter(function(t){return t.closest('[aria-modal="true"], [data-a11y-dialog]')===e}).concat(m('[data-a11y-dialog-hide="'+this._id+'"]')),this._closers.forEach((function(t){t.addEventListener("click",this._hide)}).bind(this)),this._fire("create"),this},d.prototype.show=function(e){return this.shown?this:(this._previouslyFocused=document.activeElement,this.$el.removeAttribute("aria-hidden"),this.shown=!0,S(this.$el),document.body.addEventListener("focus",this._maintainFocus,!0),document.addEventListener("keydown",this._bindKeypress),this._fire("show",e),this)},d.prototype.hide=function(e){return this.shown?(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),this._previouslyFocused&&this._previouslyFocused.focus&&this._previouslyFocused.focus(),document.body.removeEventListener("focus",this._maintainFocus,!0),document.removeEventListener("keydown",this._bindKeypress),this._fire("hide",e),this):this},d.prototype.destroy=function(){return this.hide(),this._openers.forEach((function(e){e.removeEventListener("click",this._show)}).bind(this)),this._closers.forEach((function(e){e.removeEventListener("click",this._hide)}).bind(this)),this._fire("destroy"),this._listeners={},this},d.prototype.on=function(e,t){return typeof this._listeners[e]>"u"&&(this._listeners[e]=[]),this._listeners[e].push(t),this},d.prototype.off=function(e,t){var s=(this._listeners[e]||[]).indexOf(t);return s>-1&&this._listeners[e].splice(s,1),this},d.prototype._fire=function(e,t){var s=this._listeners[e]||[],o=new CustomEvent(e,{detail:t});this.$el.dispatchEvent(o),s.forEach((function(n){n(this.$el,t)}).bind(this))},d.prototype._bindKeypress=function(e){const t=document.activeElement;t&&t.closest('[aria-modal="true"]')!==this.$el||(this.shown&&e.key===O&&this.$el.getAttribute("role")!=="alertdialog"&&(e.preventDefault(),this.hide(e)),this.shown&&e.key===D&&M(this.$el,e))},d.prototype._maintainFocus=function(e){this.shown&&!e.target.closest('[aria-modal="true"]')&&!e.target.closest("[data-a11y-dialog-ignore-focus-trap]")&&S(this.$el)};function I(e){return Array.prototype.slice.call(e)}function m(e,t){return I((t||document).querySelectorAll(e))}function S(e){var t=e.querySelector("[autofocus]")||e;t.focus()}function F(e){return m(W.join(","),e).filter(function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)})}function M(e,t){var s=F(e),o=s.indexOf(document.activeElement);t.shiftKey&&o===0?(s[s.length-1].focus(),t.preventDefault()):!t.shiftKey&&o===s.length-1&&(s[0].focus(),t.preventDefault())}function v(){m("[data-a11y-dialog]").forEach(function(e){new d(e)})}typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16));const H=(e=document.querySelector(".js-modal"))=>{e&&new d(e).on("show",()=>(document.documentElement.style.overflowY="hidden",!0)).on("hide",()=>(document.documentElement.style.overflowY="",!0))},C=({navigatedList:e,nextBtn:t,prevBtn:s})=>{const o=e.scrollLeft>0,n=e.scrollLeft+e.clientWidth<e.scrollWidth;o&&n?(t.classList.add("o-nav-button--visible"),s.classList.add("o-nav-button--visible")):o?(t.classList.remove("o-nav-button--visible"),s.classList.add("o-nav-button--visible")):n?(t.classList.add("o-nav-button--visible"),s.classList.remove("o-nav-button--visible")):(t.classList.remove("o-nav-button--visible"),s.classList.remove("o-nav-button--visible"))},R=({navigatedList:e,nextBtn:t,prevBtn:s,sliderVariant:o})=>{if(e){const n=e.closest(".js-overview-bar-container"),l=n==null?void 0:n.querySelector(".c-stepper"),c=l==null?void 0:l.querySelectorAll(".c-stepper__item");if(c){const i=Array.from(c).findIndex(r=>r.classList.contains("c-stepper__item--loading"));if(i<0)c[0].classList.add("c-stepper__item--loading");else{c[i].classList.remove("c-stepper__item--loading"),c[i].classList.add("c-stepper__item--loaded");const r=c[i].querySelector(".c-stepper__loader");r&&r instanceof HTMLElement&&(r.style.transition="width 0s linear"),i+1<c.length&&c[i+1].classList.add("c-stepper__item--loading")}}if(e.scrollWidth-e.clientWidth>e.clientWidth){let i=e.scrollLeft;switch(o){case"partners":i+=e.clientWidth+32;break;case"rubrics":i+=e.clientWidth-36;break;case"overviewbar":i+=e.clientWidth-20;break;default:i+=Math.ceil(e.clientWidth*.6);break}e.scrollTo({left:i,behavior:"smooth"}),s.classList.add("o-nav-button--visible"),i+e.clientWidth>=e.scrollWidth&&t.classList.remove("o-nav-button--visible")}else{const i=e.scrollWidth-e.clientWidth;e.scrollTo({left:i,behavior:"smooth"}),t.classList.remove("o-nav-button--visible"),s.classList.add("o-nav-button--visible")}}},K=({navigatedList:e,nextBtn:t,prevBtn:s,sliderVariant:o,delay:n})=>{if(e){const l=e.closest(".js-overview-bar-container"),c=l==null?void 0:l.querySelector(".c-stepper"),i=c==null?void 0:c.querySelectorAll(".c-stepper__item");if(i){const r=Array.from(i).findIndex(a=>a.classList.contains("c-stepper__item--loading"));r<0?i[0].classList.add("c-stepper__item--loading"):(i[r].classList.remove("c-stepper__item--loading"),i[r].classList.remove("c-stepper__item--loaded"),r-1>0&&(i[r-1].classList.remove("c-stepper__item--loading"),i[r-1].classList.remove("c-stepper__item--loaded"),setTimeout(()=>{const a=i[r-1].querySelector(".c-stepper__loader");i[r-1].classList.add("c-stepper__item--loading"),a&&a instanceof HTMLElement&&(a.style.transition=`width ${n/1e3}s linear`)},0)))}if(e.clientWidth<e.scrollLeft){let r=e.scrollLeft;switch(o){case"partners":r-=e.clientWidth+32;break;case"rubrics":r-=e.clientWidth-36;break;case"overviewbar":r-=e.clientWidth-24;break;default:r-=Math.ceil(e.clientWidth*.6);break}e.scrollTo({left:r,behavior:"smooth"}),t.classList.add("o-nav-button--visible"),r===0&&s.classList.remove("o-nav-button--visible")}else e.scrollTo({left:0,behavior:"smooth"}),s.classList.remove("o-nav-button--visible"),e.clientWidth<e.scrollWidth&&t.classList.add("o-nav-button--visible")}},P=({navigatedList:e,nextBtn:t,prevBtn:s})=>{C({navigatedList:e,nextBtn:t,prevBtn:s})},B=()=>{const e=document.querySelectorAll(".js-navigation-container");for(const t of Array.from(e)){const{sliderVariant:s}=t.dataset,{sliderAuto:o}=t.dataset,{sliderDelay:n}=t.dataset,l=n?parseInt(n,10):3e3,c=t.closest(".js-overview-bar-container"),i=c==null?void 0:c.querySelector(".c-stepper"),r=i==null?void 0:i.querySelectorAll(".c-stepper__item");if(t){const a=t.querySelector(".js-navigation-container__list"),u=t.querySelector(".o-nav-button--next-button"),h=t.querySelector(".o-nav-button--previous-button");if(a&&a.clientWidth<a.scrollWidth&&(u==null||u.classList.add("o-nav-button--visible")),u==null||u.addEventListener("click",R.bind(!1,{navigatedList:a,nextBtn:u,prevBtn:h,sliderVariant:s})),h==null||h.addEventListener("click",K.bind(!1,{navigatedList:a,nextBtn:u,prevBtn:h,sliderVariant:s,delay:l})),o==="true"&&u){const ne=i?i.querySelector(".c-stepper__item--loading"):null;r&&(r.forEach(_=>{const f=_.querySelector(".c-stepper__loader");f&&f instanceof HTMLElement&&(f.style.transition=`width ${l/1e3}s linear`)}),ne||r[0].classList.add("c-stepper__item--loading")),setInterval(()=>{u.classList.contains("o-nav-button--visible")?u.click():a&&h&&(a.scrollLeft=0,r&&(r.forEach(_=>{const f=_.querySelector(".c-stepper__loader");f&&f instanceof HTMLElement&&(f.style.transition="width 0s linear"),_.classList.remove("c-stepper__item--loading"),_.classList.remove("c-stepper__item--loaded"),setTimeout(()=>{f&&f instanceof HTMLElement&&(f.style.transition=`width ${l/1e3}s linear`)},0)}),setTimeout(()=>{r[0].classList.add("c-stepper__item--loading")},0)),h.click())},l)}}}},V=()=>{const e=document.querySelectorAll(".js-navigation-container");for(const t of Array.from(e)){const{sliderVariant:s}=t.dataset;if(t){const o=t.querySelector(".js-navigation-container__list"),n=t.querySelector(".o-nav-button--next-button"),l=t.querySelector(".o-nav-button--previous-button");window.addEventListener("resize",P.bind(!1,{navigatedList:o,nextBtn:n,prevBtn:l,sliderVariant:s}))}}},Y=()=>{const e=document.querySelectorAll(".js-header-link"),t=document.querySelector(".js-overlay");if(t)for(const s of e)s.addEventListener("mouseenter",()=>{const o=s.querySelector(".js-sub-menu");if(o){if(window.getComputedStyle(o).getPropertyValue("display")!=="none"){setTimeout(()=>t.classList.remove("u-hidden"),300);return}t.classList.add("u-hidden")}}),s.addEventListener("mouseleave",()=>{setTimeout(()=>t.classList.add("u-hidden"),300)})},z=()=>{const e=document.querySelector(".js-limit-scroll-progress-bar"),t=document.querySelector(".c-progress__bar"),{documentElement:s}=document;if(!t)return;let o=s.scrollHeight-s.clientHeight;if(!o)return;const n=s.scrollTop;e&&(o=e.scrollHeight-s.clientHeight+(window.pageYOffset+e.getBoundingClientRect().top));const l=Math.round(n/o*100);t.style.width=`${l}%`,l>=100&&(t.style.width="100%")},N=()=>{document.querySelector(".c-progress")&&window.addEventListener("scroll",z)};let y,g=0;const U=()=>{y=null,document.body.getBoundingClientRect().top>g+2&&(y="up"),document.body.getBoundingClientRect().top<g-2&&(y="down"),g=document.body.getBoundingClientRect().top;const e=document.querySelector(".c-read-also-banner");if(e){const t=e.dataset.bannerLimitTop||"0";y==="up"&&-document.body.getBoundingClientRect().top>=parseInt(t,10)&&(e.classList.remove("c-read-also-banner__scrolldirection--down"),e.style.paddingTop="0.75em",e.style.paddingBottom="0.75em",e.style.borderWidth="1px",e.classList.contains("c-read-also-banner__scrolldirection--up")||e.classList.add("c-read-also-banner__scrolldirection--up")),(y==="down"||-document.body.getBoundingClientRect().top<=parseInt(t,10))&&(e.classList.remove("c-read-also-banner__scrolldirection--up"),e.style.paddingTop="0",e.style.paddingBottom="0",e.style.borderWidth="0",e.classList.contains("c-read-also-banner__scrolldirection--down")||e.classList.add("c-read-also-banner__scrolldirection--down"))}},G=(e=document.querySelector(".c-read-also-banner"))=>{if(e){let t;window.addEventListener("scroll",()=>{clearTimeout(t),t=setTimeout(U,100)})}},J=e=>{var o;e.preventDefault();const t=e.currentTarget,s=(o=t.closest(".js-search-toggle"))==null?void 0:o.querySelector(".c-search-form");t.setAttribute("aria-hidden","true"),s==null||s.setAttribute("aria-hidden","false")},Q=(e=document.querySelector(".js-search-toggle"))=>{if(e){const t=e.querySelector(".c-header__search-button");t==null||t.addEventListener("click",J)}},X=()=>{if(typeof navigator.share=="function"){const e=document.title,t=window.location.href;navigator.share({title:e,url:t}).then(()=>{console.log("Contenu partagé avec succès")}).catch(s=>{console.log(s)})}},Z=(e=document.querySelector(".js-mobile-share-button"))=>{e&&e.addEventListener("click",X)},ee=e=>{const{target:t}=e;if(t instanceof Element){const s=t.closest(".c-search-form--button");s&&(e.preventDefault(),s.classList.remove("c-search-form--button"))}},te=(e=document.querySelector(".c-search-form--button"))=>{e&&e.addEventListener("click",t=>ee(t))},se=({tabsContainerElement:e,event:t})=>{t.preventDefault();const s=t.target,o=e.querySelectorAll('[role="tab"]'),n=e.querySelectorAll('[role="tabpanel"]'),l=s.getAttribute("aria-controls"),c=Object.values(n).find(i=>i.id===l);o.forEach(i=>{i.setAttribute("aria-selected","false")}),n.forEach(i=>{i.setAttribute("aria-hidden","true")}),s.setAttribute("aria-selected","true"),c&&c.removeAttribute("aria-hidden")},L=e=>e.code==="ArrowLeft"||e.keyCode===39,E=e=>e.code==="ArrowRight"||e.keyCode===37,oe=(e=document.querySelector(".js-tabs"))=>{if(e){const t=e.querySelectorAll('[role="tab"]');t.forEach(o=>{o.addEventListener("click",n=>{se({tabsContainerElement:e,event:n})})});const s=e.querySelector('[role="tablist"]');if(s&&t.length>0){let o=0;s.addEventListener("keydown",n=>{n instanceof KeyboardEvent&&(L(n)||E(n))&&(t[o].setAttribute("tabindex","-1"),L(n)?(o+=1,o>=t.length&&(o=0)):E(n)&&(o-=1,o<0&&(o=t.length-1)),t[o].setAttribute("tabindex","0"),t[o].focus())})}}},ie=()=>{k(),oe(),A(),N(),Q(),Z(),H(),G(),$(),te(),B(),V(),window.layout===p.DESKTOP&&Y()};b.initScripts=ie,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})}); | ||
(function(f,d){typeof exports=="object"&&typeof module<"u"?d(exports):typeof define=="function"&&define.amd?define(["exports"],d):(f=typeof globalThis<"u"?globalThis:f||self,d(f.scripts={}))})(this,function(f){"use strict";var ue=Object.defineProperty;var fe=(f,d,m)=>d in f?ue(f,d,{enumerable:!0,configurable:!0,writable:!0,value:m}):f[d]=m;var _=(f,d,m)=>(fe(f,typeof d!="symbol"?d+"":d,m),m);var d=(e=>(e.MOBILE="mobile",e.DESKTOP="desktop",e))(d||{});const m=e=>{e.stopImmediatePropagation(),e.preventDefault();const t=e.currentTarget,s=t.parentElement,i=s==null?void 0:s.querySelector(`#${t.getAttribute("aria-controls")}`);t.getAttribute("aria-expanded")==="true"?(t.setAttribute("aria-expanded","false"),i==null||i.setAttribute("aria-hidden","true")):(t.setAttribute("aria-expanded","true"),i==null||i.setAttribute("aria-hidden","false"))},I=(e=document.querySelector(".js-collapse__button"))=>{e&&document.querySelectorAll(".c-collapse__button").forEach(s=>{s.addEventListener("click",i=>{m(i)})})},j=e=>{var s;const t=e.querySelector(".js-expandButton__label");e.setAttribute("aria-expanded","true"),t.innerHTML="Voir moins",(s=e.previousElementSibling)==null||s.setAttribute("aria-hidden","false")},W=e=>{var s;const t=e.querySelector(".js-expandButton__label");e.setAttribute("aria-expanded","false"),t.innerHTML="Voir plus",(s=e.previousElementSibling)==null||s.setAttribute("aria-hidden","true")},D=e=>{const t=e.currentTarget;return e.preventDefault(),t.getAttribute("aria-expanded")==="true"?W(t):j(t)},C=(e=document.querySelector(".js-expandButton"))=>{e&&document.querySelectorAll(".js-expandButton").forEach(s=>s.addEventListener("click",D))},F=e=>{const t=e.querySelector(".js-live-form__textarea"),s=e.querySelector("#live-form-submit-section");t==null||t.setAttribute("aria-expanded","true"),s==null||s.setAttribute("aria-hidden","false")},O=()=>{const e=document.querySelector(".js-live-form");if(e){const t=e.querySelector(".js-live-form__textarea textarea");t==null||t.addEventListener("focus",F.bind(!1,e))}},r={inert:":not([inert]):not([inert] *)",negTabIndex:':not([tabindex^="-"])',disabled:":not(:disabled)"};var R=[`a[href]${r.inert}${r.negTabIndex}`,`area[href]${r.inert}${r.negTabIndex}`,`input:not([type="hidden"]):not([type="radio"])${r.inert}${r.negTabIndex}${r.disabled}`,`input[type="radio"]${r.inert}${r.negTabIndex}${r.disabled}`,`select${r.inert}${r.negTabIndex}${r.disabled}`,`textarea${r.inert}${r.negTabIndex}${r.disabled}`,`button${r.inert}${r.negTabIndex}${r.disabled}`,`details${r.inert} > summary:first-of-type${r.negTabIndex}`,`iframe${r.inert}${r.negTabIndex}`,`audio[controls]${r.inert}${r.negTabIndex}`,`video[controls]${r.inert}${r.negTabIndex}`,`[contenteditable]${r.inert}${r.negTabIndex}`,`[tabindex]${r.inert}${r.negTabIndex}`];function L(e){(e.querySelector("[autofocus]")||e).focus()}function H(e){const t=y(e,!0),s=t?y(e,!1)||t:null;return[t,s]}function y(e,t){if(t&&T(e))return e;if(K(e))if(e.shadowRoot){let s=$(e.shadowRoot,t);for(;s;){const i=y(s,t);if(i)return i;s=w(s,t)}}else if(e.localName==="slot"){const s=e.assignedElements({flatten:!0});t||s.reverse();for(const i of s){const n=y(i,t);if(n)return n}}else{let s=$(e,t);for(;s;){const i=y(s,t);if(i)return i;s=w(s,t)}}return!t&&T(e)?e:null}function $(e,t){return t?e.firstElementChild:e.lastElementChild}function w(e,t){return t?e.nextElementSibling:e.previousElementSibling}const M=e=>e.matches("details:not([open]) *")&&!e.matches("details>summary:first-of-type")?!0:!(e.offsetWidth||e.offsetHeight||e.getClientRects().length),T=e=>{var t;return(t=e.shadowRoot)!=null&&t.delegatesFocus?!1:e.matches(R.join(","))&&!M(e)};function K(e){return e.shadowRoot&&e.getAttribute("tabindex")==="-1"?!1:!e.matches(":disabled,[hidden],[inert]")}function S(e=document){const t=e.activeElement;return t?t.shadowRoot?S(t.shadowRoot)||document.activeElement:t:null}function P(e,t){const[s,i]=H(e);if(!s)return t.preventDefault();const n=S();t.shiftKey&&n===s?(i.focus(),t.preventDefault()):!t.shiftKey&&n===i&&(s.focus(),t.preventDefault())}class A{constructor(t){_(this,"$el");_(this,"id");_(this,"previouslyFocused");_(this,"shown");this.$el=t,this.id=this.$el.getAttribute("data-a11y-dialog")||this.$el.id,this.previouslyFocused=null,this.shown=!1,this.maintainFocus=this.maintainFocus.bind(this),this.bindKeypress=this.bindKeypress.bind(this),this.handleTriggerClicks=this.handleTriggerClicks.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.$el.setAttribute("aria-hidden","true"),this.$el.setAttribute("aria-modal","true"),this.$el.setAttribute("tabindex","-1"),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),document.addEventListener("click",this.handleTriggerClicks,!0)}destroy(){return this.hide(),document.removeEventListener("click",this.handleTriggerClicks,!0),this.$el.replaceWith(this.$el.cloneNode(!0)),this.fire("destroy"),this}show(t){var s;return this.shown?this:(this.shown=!0,this.$el.removeAttribute("aria-hidden"),this.previouslyFocused=S(),((s=this.previouslyFocused)==null?void 0:s.tagName)==="BODY"&&(t!=null&&t.target)&&(this.previouslyFocused=t.target),L(this.$el),document.body.addEventListener("focus",this.maintainFocus,!0),this.$el.addEventListener("keydown",this.bindKeypress,!0),this.fire("show",t),this)}hide(t){var s,i;return this.shown?(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),(i=(s=this.previouslyFocused)==null?void 0:s.focus)==null||i.call(s),document.body.removeEventListener("focus",this.maintainFocus,!0),this.$el.removeEventListener("keydown",this.bindKeypress,!0),this.fire("hide",t),this):this}on(t,s,i){return this.$el.addEventListener(t,s,i),this}off(t,s,i){return this.$el.removeEventListener(t,s,i),this}fire(t,s){this.$el.dispatchEvent(new CustomEvent(t,{detail:s,cancelable:!0}))}handleTriggerClicks(t){const s=t.target;s.closest(`[data-a11y-dialog-show="${this.id}"]`)&&this.show(t),(s.closest(`[data-a11y-dialog-hide="${this.id}"]`)||s.closest("[data-a11y-dialog-hide]")&&s.closest('[aria-modal="true"]')===this.$el)&&this.hide(t)}bindKeypress(t){var s;((s=document.activeElement)==null?void 0:s.closest('[aria-modal="true"]'))===this.$el&&(t.key==="Escape"&&this.$el.getAttribute("role")!=="alertdialog"&&(t.preventDefault(),this.hide(t)),t.key==="Tab"&&P(this.$el,t))}maintainFocus(t){t.target.closest('[aria-modal="true"], [data-a11y-dialog-ignore-focus-trap]')||L(this.$el)}}function q(){for(const e of document.querySelectorAll("[data-a11y-dialog]"))new A(e)}typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",q):q());const B=(e=document.querySelector(".js-modal"))=>{if(e){const t=new A(e),s={x:0,y:0};t.on("show",()=>{s.x=window.scrollX,s.y=window.scrollY,document.body.style.top=`-${s.y}px`,document.body.classList.add("noscroll")}).on("hide",()=>{document.body.classList.remove("noscroll"),document.body.style.top="",window.scroll(s.x,s.y)})}},N=({navigatedList:e,nextBtn:t,prevBtn:s})=>{const i=e.scrollLeft>0,n=e.scrollLeft+e.clientWidth<e.scrollWidth;i&&n?(t.classList.add("o-nav-button--visible"),s.classList.add("o-nav-button--visible")):i?(t.classList.remove("o-nav-button--visible"),s.classList.add("o-nav-button--visible")):n?(t.classList.add("o-nav-button--visible"),s.classList.remove("o-nav-button--visible")):(t.classList.remove("o-nav-button--visible"),s.classList.remove("o-nav-button--visible"))},V=({navigatedList:e,nextBtn:t,prevBtn:s,sliderVariant:i})=>{if(e){const n=e.closest(".js-overview-bar-container"),c=n==null?void 0:n.querySelector(".c-stepper"),a=c==null?void 0:c.querySelectorAll(".c-stepper__item");if(a){const o=Array.from(a).findIndex(l=>l.classList.contains("c-stepper__item--loading"));if(o<0)a[0].classList.add("c-stepper__item--loading");else{a[o].classList.remove("c-stepper__item--loading"),a[o].classList.add("c-stepper__item--loaded");const l=a[o].querySelector(".c-stepper__loader");l&&l instanceof HTMLElement&&(l.style.transition="width 0s linear"),o+1<a.length&&a[o+1].classList.add("c-stepper__item--loading")}}if(e.scrollWidth-e.clientWidth>e.clientWidth){let o=e.scrollLeft;switch(i){case"partners":o+=e.clientWidth+32;break;case"rubrics":o+=e.clientWidth-36;break;case"overviewbar":o+=e.clientWidth-20;break;default:o+=Math.ceil(e.clientWidth*.6);break}e.scrollTo({left:o,behavior:"smooth"}),s.classList.add("o-nav-button--visible"),o+e.clientWidth>=e.scrollWidth&&t.classList.remove("o-nav-button--visible")}else{const o=e.scrollWidth-e.clientWidth;e.scrollTo({left:o,behavior:"smooth"}),t.classList.remove("o-nav-button--visible"),s.classList.add("o-nav-button--visible")}}},z=({navigatedList:e,nextBtn:t,prevBtn:s,sliderVariant:i,delay:n})=>{if(e){const c=e.closest(".js-overview-bar-container"),a=c==null?void 0:c.querySelector(".c-stepper"),o=a==null?void 0:a.querySelectorAll(".c-stepper__item");if(o){const l=Array.from(o).findIndex(u=>u.classList.contains("c-stepper__item--loading"));l<0?o[0].classList.add("c-stepper__item--loading"):(o[l].classList.remove("c-stepper__item--loading"),o[l].classList.remove("c-stepper__item--loaded"),l-1>0&&(o[l-1].classList.remove("c-stepper__item--loading"),o[l-1].classList.remove("c-stepper__item--loaded"),setTimeout(()=>{const u=o[l-1].querySelector(".c-stepper__loader");o[l-1].classList.add("c-stepper__item--loading"),u&&u instanceof HTMLElement&&(u.style.transition=`width ${n/1e3}s linear`)},0)))}if(e.clientWidth<e.scrollLeft){let l=e.scrollLeft;switch(i){case"partners":l-=e.clientWidth+32;break;case"rubrics":l-=e.clientWidth-36;break;case"overviewbar":l-=e.clientWidth-24;break;default:l-=Math.ceil(e.clientWidth*.6);break}e.scrollTo({left:l,behavior:"smooth"}),t.classList.add("o-nav-button--visible"),l===0&&s.classList.remove("o-nav-button--visible")}else e.scrollTo({left:0,behavior:"smooth"}),s.classList.remove("o-nav-button--visible"),e.clientWidth<e.scrollWidth&&t.classList.add("o-nav-button--visible")}},Y=({navigatedList:e,nextBtn:t,prevBtn:s})=>{N({navigatedList:e,nextBtn:t,prevBtn:s})},U=()=>{const e=document.querySelectorAll(".js-navigation-container");for(const t of Array.from(e)){const{sliderVariant:s}=t.dataset,{sliderAuto:i}=t.dataset,{sliderDelay:n}=t.dataset,c=n?parseInt(n,10):3e3,a=t.closest(".js-overview-bar-container"),o=a==null?void 0:a.querySelector(".c-stepper"),l=o==null?void 0:o.querySelectorAll(".c-stepper__item");if(t){const u=t.querySelector(".js-navigation-container__list"),h=t.querySelector(".o-nav-button--next-button"),p=t.querySelector(".o-nav-button--previous-button");if(u&&u.clientWidth<u.scrollWidth&&(h==null||h.classList.add("o-nav-button--visible")),h==null||h.addEventListener("click",V.bind(!1,{navigatedList:u,nextBtn:h,prevBtn:p,sliderVariant:s})),p==null||p.addEventListener("click",z.bind(!1,{navigatedList:u,nextBtn:h,prevBtn:p,sliderVariant:s,delay:c})),i==="true"&&h){const de=o?o.querySelector(".c-stepper__item--loading"):null;l&&(l.forEach(v=>{const b=v.querySelector(".c-stepper__loader");b&&b instanceof HTMLElement&&(b.style.transition=`width ${c/1e3}s linear`)}),de||l[0].classList.add("c-stepper__item--loading")),setInterval(()=>{h.classList.contains("o-nav-button--visible")?h.click():u&&p&&(u.scrollLeft=0,l&&(l.forEach(v=>{const b=v.querySelector(".c-stepper__loader");b&&b instanceof HTMLElement&&(b.style.transition="width 0s linear"),v.classList.remove("c-stepper__item--loading"),v.classList.remove("c-stepper__item--loaded"),setTimeout(()=>{b&&b instanceof HTMLElement&&(b.style.transition=`width ${c/1e3}s linear`)},0)}),setTimeout(()=>{l[0].classList.add("c-stepper__item--loading")},0)),p.click())},c)}}}},X=()=>{const e=document.querySelectorAll(".js-navigation-container");for(const t of Array.from(e)){const{sliderVariant:s}=t.dataset;if(t){const i=t.querySelector(".js-navigation-container__list"),n=t.querySelector(".o-nav-button--next-button"),c=t.querySelector(".o-nav-button--previous-button");window.addEventListener("resize",Y.bind(!1,{navigatedList:i,nextBtn:n,prevBtn:c,sliderVariant:s}))}}},G=()=>{const e=document.querySelectorAll(".js-header-link"),t=document.querySelector(".js-overlay");if(t)for(const s of e)s.addEventListener("mouseenter",()=>{const i=s.querySelector(".js-sub-menu");if(i){if(window.getComputedStyle(i).getPropertyValue("display")!=="none"){setTimeout(()=>t.classList.remove("u-hidden"),300);return}t.classList.add("u-hidden")}}),s.addEventListener("mouseleave",()=>{setTimeout(()=>t.classList.add("u-hidden"),300)})},J=()=>{const e=document.querySelector(".js-limit-scroll-progress-bar"),t=document.querySelector(".c-progress__bar"),{documentElement:s}=document;if(!t)return;let i=s.scrollHeight-s.clientHeight;if(!i)return;const n=s.scrollTop;e&&(i=e.scrollHeight-s.clientHeight+(window.pageYOffset+e.getBoundingClientRect().top));const c=Math.round(n/i*100);t.style.width=`${c}%`,c>=100&&(t.style.width="100%")},Q=()=>{document.querySelector(".c-progress")&&window.addEventListener("scroll",J)};let g,E=0;const Z=()=>{g=null,document.body.getBoundingClientRect().top>E+2&&(g="up"),document.body.getBoundingClientRect().top<E-2&&(g="down"),E=document.body.getBoundingClientRect().top;const e=document.querySelector(".c-read-also-banner");if(e){const t=e.dataset.bannerLimitTop||"0";g==="up"&&-document.body.getBoundingClientRect().top>=parseInt(t,10)&&(e.classList.remove("c-read-also-banner__scrolldirection--down"),e.style.paddingTop="0.75em",e.style.paddingBottom="0.75em",e.style.borderWidth="1px",e.classList.contains("c-read-also-banner__scrolldirection--up")||e.classList.add("c-read-also-banner__scrolldirection--up")),(g==="down"||-document.body.getBoundingClientRect().top<=parseInt(t,10))&&(e.classList.remove("c-read-also-banner__scrolldirection--up"),e.style.paddingTop="0",e.style.paddingBottom="0",e.style.borderWidth="0",e.classList.contains("c-read-also-banner__scrolldirection--down")||e.classList.add("c-read-also-banner__scrolldirection--down"))}},ee=(e=document.querySelector(".c-read-also-banner"))=>{if(e){let t;window.addEventListener("scroll",()=>{clearTimeout(t),t=setTimeout(Z,100)})}},te=e=>{var i;e.preventDefault();const t=e.currentTarget,s=(i=t.closest(".js-search-toggle"))==null?void 0:i.querySelector(".c-search-form");t.setAttribute("aria-hidden","true"),s==null||s.setAttribute("aria-hidden","false")},se=(e=document.querySelector(".js-search-toggle"))=>{if(e){const t=e.querySelector(".c-header__search-button");t==null||t.addEventListener("click",te)}},ie=()=>{if(typeof navigator.share=="function"){const e=document.title,t=window.location.href;navigator.share({title:e,url:t}).then(()=>{console.log("Contenu partagé avec succès")}).catch(s=>{console.log(s)})}},oe=(e=document.querySelector(".js-mobile-share-button"))=>{e&&e.addEventListener("click",ie)},ne=e=>{const{target:t}=e;if(t instanceof Element){const s=t.closest(".c-search-form--button");s&&(e.preventDefault(),s.classList.remove("c-search-form--button"))}},re=(e=document.querySelector(".c-search-form--button"))=>{e&&e.addEventListener("click",t=>ne(t))},le=({tabsContainerElement:e,event:t})=>{t.preventDefault();const s=t.target,i=e.querySelectorAll('[role="tab"]'),n=e.querySelectorAll('[role="tabpanel"]'),c=s.getAttribute("aria-controls"),a=Object.values(n).find(o=>o.id===c);i.forEach(o=>{o.setAttribute("aria-selected","false")}),n.forEach(o=>{o.setAttribute("aria-hidden","true")}),s.setAttribute("aria-selected","true"),a&&a.removeAttribute("aria-hidden")},x=e=>e.code==="ArrowLeft"||e.keyCode===39,k=e=>e.code==="ArrowRight"||e.keyCode===37,ce=(e=document.querySelector(".js-tabs"))=>{if(e){const t=e.querySelectorAll('[role="tab"]');t.forEach(i=>{i.addEventListener("click",n=>{le({tabsContainerElement:e,event:n})})});const s=e.querySelector('[role="tablist"]');if(s&&t.length>0){let i=0;s.addEventListener("keydown",n=>{n instanceof KeyboardEvent&&(x(n)||k(n))&&(t[i].setAttribute("tabindex","-1"),x(n)?(i+=1,i>=t.length&&(i=0)):k(n)&&(i-=1,i<0&&(i=t.length-1)),t[i].setAttribute("tabindex","0"),t[i].focus())})}}},ae=()=>{C(),ce(),I(),Q(),se(),oe(),B(),ee(),O(),re(),U(),X(),window.layout===d.DESKTOP&&G()};f.initScripts=ae,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})}); |
@@ -12,2 +12,5 @@ import React from 'react'; | ||
argTypes: { | ||
size: { | ||
options: readonly ("s" | "m" | "xxs-3" | "xxs-2" | "xxs" | "xs" | "l" | "xl" | "xxl")[]; | ||
}; | ||
inline: { | ||
@@ -14,0 +17,0 @@ type: string; |
@@ -5,10 +5,6 @@ import React from 'react'; | ||
export interface BreadcrumbProps extends BoxProps { | ||
rubric: { | ||
rubrics?: { | ||
label: string; | ||
link?: string; | ||
}; | ||
parentRubric?: { | ||
label: string; | ||
link?: string; | ||
}; | ||
}[]; | ||
tags?: { | ||
@@ -15,0 +11,0 @@ label: string; |
@@ -13,4 +13,6 @@ import React from 'react'; | ||
export declare const Overview: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./Breadcrumb").BreadcrumbProps>; | ||
export declare const RubricLimitMax: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./Breadcrumb").BreadcrumbProps>; | ||
export declare const Color: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./Breadcrumb").BreadcrumbProps>; | ||
export declare const Long: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./Breadcrumb").BreadcrumbProps>; | ||
export declare const RubricLimitMaxVeryLong: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./Breadcrumb").BreadcrumbProps>; | ||
export declare const VeryLong: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./Breadcrumb").BreadcrumbProps>; |
import React from 'react'; | ||
declare const _default: { | ||
title: string; | ||
component: import("../../..").ComponentWithAs<"div", import("./Collapse").CollapseProps>; | ||
component: import("../../..").ComponentWithAs<"div", import('../../../components').CollapseProps>; | ||
}; | ||
export default _default; | ||
export declare const Overview: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("../../..").OmitCommonProps<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "as" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import("../../..").SystemProps | keyof import("./Collapse").CollapseOptions> & import("./Collapse").CollapseOptions & import("../../..").SystemProps & Omit<import("../../..").PropsOf<"div">, "color" | "align" | "ref"> & { | ||
export declare const Overview: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("../../..").OmitCommonProps<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "as" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import("../../..").SystemProps | keyof import('../../../components').CollapseOptions> & import('../../../components').CollapseOptions & import("../../..").SystemProps & Omit<import("../../..").PropsOf<"div">, "color" | "align" | "ref"> & { | ||
as?: import("../../..").As<any> | undefined; | ||
} & import("../../..").OmitCommonProps<any, "slot" | "style" | "as" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import("../../..").SystemProps | keyof import("./Collapse").CollapseOptions> & { | ||
} & import("../../..").OmitCommonProps<any, "slot" | "style" | "as" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import("../../..").SystemProps | keyof import('../../../components').CollapseOptions> & { | ||
as?: import("../../..").As<any> | undefined; | ||
}>; | ||
export declare const FAQ: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("../../..").OmitCommonProps<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "as" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import("../../..").SystemProps | keyof import("./Collapse").CollapseOptions> & import("./Collapse").CollapseOptions & import("../../..").SystemProps & Omit<import("../../..").PropsOf<"div">, "color" | "align" | "ref"> & { | ||
export declare const FAQ: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("../../..").OmitCommonProps<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "as" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import("../../..").SystemProps | keyof import('../../../components').CollapseOptions> & import('../../../components').CollapseOptions & import("../../..").SystemProps & Omit<import("../../..").PropsOf<"div">, "color" | "align" | "ref"> & { | ||
as?: import("../../..").As<any> | undefined; | ||
} & import("../../..").OmitCommonProps<any, "slot" | "style" | "as" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import("../../..").SystemProps | keyof import("./Collapse").CollapseOptions> & { | ||
} & import("../../..").OmitCommonProps<any, "slot" | "style" | "as" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof import("../../..").SystemProps | keyof import('../../../components').CollapseOptions> & { | ||
as?: import("../../..").As<any> | undefined; | ||
}>; |
import React from 'react'; | ||
import { type BoxProps, type MediaProps } from '../../../../components'; | ||
import { type BoxProps, type MediaProps, type TextProps } from '../../../../components'; | ||
import { type ColorType, LayoutType, type SponsorType } from '../../../../types'; | ||
@@ -16,3 +16,4 @@ export interface HeaderPageProps extends BoxProps { | ||
mediaProps?: MediaProps; | ||
contentProps?: TextProps; | ||
} | ||
export declare const HeaderPage: React.FC<HeaderPageProps>; |
@@ -47,1 +47,2 @@ import React from 'react'; | ||
export declare const MobileWithMedia: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./HeaderPage").HeaderPageProps>; | ||
export declare const DesktopSecondary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./HeaderPage").HeaderPageProps>; |
{ | ||
"name": "@20minutes/hela", | ||
"version": "0.1.141", | ||
"version": "0.1.142", | ||
"repository": "git@github.com:20minutes/hela.git", | ||
@@ -54,3 +54,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"a11y-dialog": "^7.5.2", | ||
"a11y-dialog": "^8.0.1", | ||
"classnames": "^2.3.2", | ||
@@ -66,3 +66,3 @@ "normalize.css": "^8.0.1", | ||
"@20minutes/eslint-config": "^1.2.6", | ||
"@aws-sdk/client-s3": "3.414.0", | ||
"@aws-sdk/client-s3": "3.417.0", | ||
"@babel/core": "^7.22.20", | ||
@@ -73,13 +73,13 @@ "@babel/eslint-parser": "^7.22.15", | ||
"@octokit/core": "5.0.0", | ||
"@storybook/addon-actions": "^7.4.2", | ||
"@storybook/addon-essentials": "^7.4.2", | ||
"@storybook/addon-links": "^7.4.2", | ||
"@storybook/addon-mdx-gfm": "^7.4.2", | ||
"@storybook/blocks": "^7.4.2", | ||
"@storybook/react": "^7.4.2", | ||
"@storybook/react-vite": "^7.4.2", | ||
"@storybook/addon-actions": "^7.4.3", | ||
"@storybook/addon-essentials": "^7.4.3", | ||
"@storybook/addon-links": "^7.4.3", | ||
"@storybook/addon-mdx-gfm": "^7.4.3", | ||
"@storybook/blocks": "^7.4.3", | ||
"@storybook/react": "^7.4.3", | ||
"@storybook/react-vite": "^7.4.3", | ||
"@svgr/cli": "^8.1.0", | ||
"@testing-library/react": "^14.0.0", | ||
"@types/merge-stream": "^1.1.2", | ||
"@types/node": "^20.6.2", | ||
"@types/node": "^20.6.3", | ||
"@types/react": "^18.2.22", | ||
@@ -91,3 +91,3 @@ "@types/react-dom": "^18.2.7", | ||
"@whitespace/storybook-addon-html": "^5.1.6", | ||
"autoprefixer": "^10.4.15", | ||
"autoprefixer": "^10.4.16", | ||
"babel-loader": "^9.1.3", | ||
@@ -106,3 +106,3 @@ "babel-preset-env": "^1.7.0", | ||
"eslint-plugin-simple-import-sort": "^10.0.0", | ||
"eslint-plugin-storybook": "^0.6.13", | ||
"eslint-plugin-storybook": "^0.6.14", | ||
"husky": "^8.0.3", | ||
@@ -121,3 +121,3 @@ "jsdom": "^22.1.0", | ||
"sass": "^1.67.0", | ||
"storybook": "^7.4.2", | ||
"storybook": "^7.4.3", | ||
"style-dictionary": "^3.8.0", | ||
@@ -124,0 +124,0 @@ "stylelint": "^15.10.3", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1585975
15271
+ Addeda11y-dialog@8.1.1(transitive)
+ Addedfocusable-selectors@0.8.4(transitive)
- Removeda11y-dialog@7.5.3(transitive)
- Removedfocusable-selectors@0.4.0(transitive)
Updateda11y-dialog@^8.0.1