@20minutes/hela
Advanced tools
Comparing version 0.1.170 to 0.1.171
@@ -42,3 +42,3 @@ var k = Object.defineProperty; | ||
} | ||
}, C = (e) => { | ||
}, D = (e) => { | ||
var s; | ||
@@ -48,3 +48,3 @@ e.setAttribute("aria-expanded", "true"), (s = e.previousElementSibling) == null || s.setAttribute("aria-hidden", "false"); | ||
t instanceof HTMLButtonElement && (t.innerHTML = "Voir moins"); | ||
}, D = (e) => { | ||
}, C = (e) => { | ||
var s; | ||
@@ -56,3 +56,3 @@ (s = e.previousElementSibling) == null || s.setAttribute("aria-hidden", "true"), e.setAttribute("aria-expanded", "false"); | ||
const t = e.currentTarget; | ||
return e.preventDefault(), t instanceof HTMLButtonElement ? t.getAttribute("aria-expanded") === "true" ? D(t) : C(t) : null; | ||
return e.preventDefault(), t instanceof HTMLButtonElement ? t.getAttribute("aria-expanded") === "true" ? C(t) : D(t) : null; | ||
}, F = (e = document.querySelector( | ||
@@ -88,3 +88,3 @@ ".js-expandButton" | ||
} | ||
function O(e) { | ||
function B(e) { | ||
const t = g(e, !0), s = t ? g(e, !1) || t : null; | ||
@@ -98,3 +98,3 @@ return [t, s]; | ||
if (e.shadowRoot) { | ||
let s = S(e.shadowRoot, t); | ||
let s = L(e.shadowRoot, t); | ||
for (; s; ) { | ||
@@ -104,3 +104,3 @@ const o = g(s, t); | ||
return o; | ||
s = L(s, t); | ||
s = S(s, t); | ||
} | ||
@@ -118,3 +118,3 @@ } else if (e.localName === "slot") { | ||
} else { | ||
let s = S(e, t); | ||
let s = L(e, t); | ||
for (; s; ) { | ||
@@ -124,3 +124,3 @@ const o = g(s, t); | ||
return o; | ||
s = L(s, t); | ||
s = S(s, t); | ||
} | ||
@@ -130,11 +130,11 @@ } | ||
} | ||
function S(e, t) { | ||
function L(e, t) { | ||
return t ? e.firstElementChild : e.lastElementChild; | ||
} | ||
function L(e, t) { | ||
function S(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), w = (e) => { | ||
const O = (e) => e.matches("details:not([open]) *") && !e.matches("details>summary:first-of-type") ? !0 : !(e.offsetWidth || e.offsetHeight || e.getClientRects().length), w = (e) => { | ||
var t; | ||
return (t = e.shadowRoot) != null && t.delegatesFocus ? !1 : e.matches(R.join(",")) && !B(e); | ||
return (t = e.shadowRoot) != null && t.delegatesFocus ? !1 : e.matches(R.join(",")) && !O(e); | ||
}; | ||
@@ -149,3 +149,3 @@ function K(e) { | ||
function N(e, t) { | ||
const [s, o] = O(e); | ||
const [s, o] = B(e); | ||
if (!s) | ||
@@ -410,3 +410,3 @@ return t.preventDefault(); | ||
} | ||
}, U = () => { | ||
}, J = () => { | ||
const e = document.querySelectorAll(".js-navigation-container"); | ||
@@ -431,3 +431,3 @@ for (const t of Array.from(e)) | ||
} | ||
}, J = () => { | ||
}, Q = () => { | ||
const e = document.querySelector(".js-limit-scroll-progress-bar"), t = document.querySelector(".c-progress__bar"); | ||
@@ -444,4 +444,4 @@ if (!t) | ||
t.style.width = `${a}%`, a >= 100 && (t.style.width = "100%"); | ||
}, Q = () => { | ||
document.querySelector(".c-progress") && window.addEventListener("scroll", J); | ||
}, U = () => { | ||
document.querySelector(".c-progress") && window.addEventListener("scroll", Q); | ||
}; | ||
@@ -480,19 +480,3 @@ let y, v = 0; | ||
} | ||
}, oe = () => { | ||
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); | ||
}); | ||
} | ||
}, ie = (e = document.querySelector( | ||
".js-mobile-share-button" | ||
)) => { | ||
e && e.addEventListener("click", oe); | ||
}, ne = (e) => { | ||
}, oe = (e) => { | ||
const { target: t } = e; | ||
@@ -503,9 +487,9 @@ if (t instanceof Element) { | ||
} | ||
}, re = (e = document.querySelector( | ||
}, ie = (e = document.querySelector( | ||
".c-search-form--button" | ||
)) => { | ||
e && e.addEventListener("click", (t) => { | ||
ne(t); | ||
oe(t); | ||
}); | ||
}, le = ({ | ||
}, ne = ({ | ||
tabsContainerElement: e, | ||
@@ -526,3 +510,3 @@ event: t | ||
}), s.setAttribute("aria-selected", "true"), c && c.removeAttribute("aria-hidden"); | ||
}, $ = (e) => e.code === "ArrowLeft" || e.keyCode === 39, A = (e) => e.code === "ArrowRight" || e.keyCode === 37, ce = (e = document.querySelector(".js-tabs")) => { | ||
}, $ = (e) => e.code === "ArrowLeft" || e.keyCode === 39, A = (e) => e.code === "ArrowRight" || e.keyCode === 37, re = (e = document.querySelector(".js-tabs")) => { | ||
if (e) { | ||
@@ -532,3 +516,3 @@ const t = e.querySelectorAll('[role="tab"]'); | ||
o.addEventListener("click", (n) => { | ||
le({ tabsContainerElement: e, event: n }); | ||
ne({ tabsContainerElement: e, event: n }); | ||
}); | ||
@@ -544,7 +528,7 @@ }); | ||
} | ||
}, de = () => { | ||
F(), ce(), M(), Q(), se(), ie(), P(), ee(), re(), W("olympicsGames", "countdown-olympics-games"), X(), U(); | ||
}, ce = () => { | ||
F(), re(), M(), U(), se(), P(), ee(), ie(), W("olympicsGames", "countdown-olympics-games"), X(), J(); | ||
}; | ||
export { | ||
de as initScripts | ||
ce as initScripts | ||
}; |
@@ -1,1 +0,1 @@ | ||
(function(b,h){typeof exports=="object"&&typeof module<"u"?h(exports):typeof define=="function"&&define.amd?define(["exports"],h):(b=typeof globalThis<"u"?globalThis:b||self,h(b.scripts={}))})(this,function(b){"use strict";var ae=Object.defineProperty;var de=(b,h,p)=>h in b?ae(b,h,{enumerable:!0,configurable:!0,writable:!0,value:p}):b[h]=p;var S=(b,h,p)=>(de(b,typeof h!="symbol"?h+"":h,p),p);const h=e=>{e.stopImmediatePropagation(),e.preventDefault();const t=e.currentTarget;if(t instanceof HTMLButtonElement){const 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"))}},p=(e=document.querySelector(".js-collapse__button"))=>{e&&document.querySelectorAll(".c-collapse__button").forEach(s=>{s.addEventListener("click",o=>{h(o)})})},M=(e,t)=>{const s=document.querySelector(`#${t}`);if(s){const o=s.querySelector(".js-countdown-days"),n=s.querySelector(".js-countdown-hours"),a=s.querySelector(".js-countdown-minutes"),c=s.querySelector(".js-countdown-seconds");if(!o||!n||!a||!c)return;window.counters={olympicsGames:"2024-07-26 20:00:00"};const i=window.counters[e],r=new Date(i).getTime(),d=setInterval(()=>{const u=new Date().getTime(),f=r-u;if(f<=0)clearInterval(d);else{const g=Math.floor(f/864e5),y=Math.floor(f%(1e3*60*60*24)/(1e3*60*60)),m=Math.floor(f%(1e3*60*60)/(1e3*60)),ce=Math.floor(f%(1e3*60)/1e3);o.innerHTML=g.toString(),n.innerHTML=y.toString(),a.innerHTML=m.toString(),c.innerHTML=ce.toString()}},1e3)}},H=e=>{var s;e.setAttribute("aria-expanded","true"),(s=e.previousElementSibling)==null||s.setAttribute("aria-hidden","false");const t=e.querySelector(".js-expandButton__label");t instanceof HTMLButtonElement&&(t.innerHTML="Voir moins")},j=e=>{var s;(s=e.previousElementSibling)==null||s.setAttribute("aria-hidden","true"),e.setAttribute("aria-expanded","false");const t=e.querySelector(".js-expandButton__label");t instanceof HTMLButtonElement&&(t.innerHTML="Voir plus")},W=e=>{const t=e.currentTarget;return e.preventDefault(),t instanceof HTMLButtonElement?t.getAttribute("aria-expanded")==="true"?j(t):H(t):null},C=(e=document.querySelector(".js-expandButton"))=>{e&&document.querySelectorAll(".js-expandButton").forEach(s=>s.addEventListener("click",W))},l={inert:":not([inert]):not([inert] *)",negTabIndex:':not([tabindex^="-"])',disabled:":not(:disabled)"};var D=[`a[href]${l.inert}${l.negTabIndex}`,`area[href]${l.inert}${l.negTabIndex}`,`input:not([type="hidden"]):not([type="radio"])${l.inert}${l.negTabIndex}${l.disabled}`,`input[type="radio"]${l.inert}${l.negTabIndex}${l.disabled}`,`select${l.inert}${l.negTabIndex}${l.disabled}`,`textarea${l.inert}${l.negTabIndex}${l.disabled}`,`button${l.inert}${l.negTabIndex}${l.disabled}`,`details${l.inert} > summary:first-of-type${l.negTabIndex}`,`iframe${l.inert}${l.negTabIndex}`,`audio[controls]${l.inert}${l.negTabIndex}`,`video[controls]${l.inert}${l.negTabIndex}`,`[contenteditable]${l.inert}${l.negTabIndex}`,`[tabindex]${l.inert}${l.negTabIndex}`];function w(e){(e.querySelector("[autofocus]")||e).focus()}function F(e){const t=v(e,!0),s=t?v(e,!1)||t:null;return[t,s]}function v(e,t){if(t&&A(e))return e;if(O(e))if(e.shadowRoot){let s=T(e.shadowRoot,t);for(;s;){const o=v(s,t);if(o)return o;s=$(s,t)}}else if(e.localName==="slot"){const s=e.assignedElements({flatten:!0});t||s.reverse();for(const o of s){const n=v(o,t);if(n)return n}}else{let s=T(e,t);for(;s;){const o=v(s,t);if(o)return o;s=$(s,t)}}return!t&&A(e)?e:null}function T(e,t){return t?e.firstElementChild:e.lastElementChild}function $(e,t){return t?e.nextElementSibling:e.previousElementSibling}const R=e=>e.matches("details:not([open]) *")&&!e.matches("details>summary:first-of-type")?!0:!(e.offsetWidth||e.offsetHeight||e.getClientRects().length),A=e=>{var t;return(t=e.shadowRoot)!=null&&t.delegatesFocus?!1:e.matches(D.join(","))&&!R(e)};function O(e){return e.shadowRoot&&e.getAttribute("tabindex")==="-1"?!1:!e.matches(":disabled,[hidden],[inert]")}function _(e=document){const t=e.activeElement;return t?t.shadowRoot?_(t.shadowRoot)||document.activeElement:t:null}function B(e,t){const[s,o]=F(e);if(!s)return t.preventDefault();const n=_();t.shiftKey&&n===s?(o.focus(),t.preventDefault()):!t.shiftKey&&n===o&&(s.focus(),t.preventDefault())}class q{constructor(t){S(this,"$el");S(this,"id");S(this,"previouslyFocused");S(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=this.previouslyFocused)==null?void 0:s.tagName)==="BODY"&&(t!=null&&t.target)&&(this.previouslyFocused=t.target),(t==null?void 0:t.type)==="focus"?this.maintainFocus(t):w(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,o;return this.shown?(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),(o=(s=this.previouslyFocused)==null?void 0:s.focus)==null||o.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,o){return this.$el.addEventListener(t,s,o),this}off(t,s,o){return this.$el.removeEventListener(t,s,o),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 o;if(((o=document.activeElement)==null?void 0:o.closest('[aria-modal="true"]'))!==this.$el)return;let s=!1;try{s=!!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open')}catch{}t.key==="Escape"&&this.$el.getAttribute("role")!=="alertdialog"&&!s&&(t.preventDefault(),this.hide(t)),t.key==="Tab"&&B(this.$el,t)}maintainFocus(t){t.target.closest('[aria-modal="true"], [data-a11y-dialog-ignore-focus-trap]')||w(this.$el)}}function x(){for(const e of document.querySelectorAll("[data-a11y-dialog]"))new q(e)}typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",x):x());const K=()=>document.querySelectorAll(".js-modal").forEach(e=>{if(!(e instanceof HTMLElement))return;const t=new q(e),s={x:0,y:0};t.on("show",()=>{s.x=window.scrollX,s.y=window.scrollY,document.body.classList.add("noscroll"),document.body.style.top=`-${s.y}px`}).on("hide",()=>{document.body.classList.remove("noscroll"),document.body.style.top="",(window.scrollY!==s.y||window.scrollX!==s.x)&&window.scroll(s.x,s.y)})}),N=({navigatedList:e,nextBtn:t,prevBtn:s})=>{var a,c,i,r,d,u,f,g;const o=e.scrollLeft>0,n=e.scrollLeft+e.clientWidth<e.scrollWidth;o&&n?((a=t.classList)==null||a.add("o-nav-button--visible"),(c=s.classList)==null||c.add("o-nav-button--visible")):o?((i=t.classList)==null||i.remove("o-nav-button--visible"),(r=s.classList)==null||r.add("o-nav-button--visible")):n?((d=t.classList)==null||d.add("o-nav-button--visible"),(u=s.classList)==null||u.remove("o-nav-button--visible")):((f=t.classList)==null||f.remove("o-nav-button--visible"),(g=s.classList)==null||g.remove("o-nav-button--visible"))},P=({navigatedList:e,nextBtn:t,prevBtn:s,sliderVariant:o})=>{if(e){const n=e.closest(".js-overview-bar-container"),a=n==null?void 0:n.querySelector(".c-stepper"),c=a==null?void 0:a.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")}}},z=({navigatedList:e,nextBtn:t,prevBtn:s,sliderVariant:o,delay:n})=>{if(e){const a=e.closest(".js-overview-bar-container"),c=a==null?void 0:a.querySelector(".c-stepper"),i=c==null?void 0:c.querySelectorAll(".c-stepper__item");if(i){const r=Array.from(i).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 d=i[r-1].querySelector(".c-stepper__loader");i[r-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){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")}},V=({navigatedList:e,nextBtn:t,prevBtn:s})=>{N({navigatedList:e,nextBtn:t,prevBtn:s})},Y=()=>{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,a=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 d=t.querySelector(".js-navigation-container__list"),u=t.querySelector(".o-nav-button--next-button"),f=t.querySelector(".o-nav-button--previous-button");if(d&&d.clientWidth<d.scrollWidth&&(u==null||u.classList.add("o-nav-button--visible")),d&&u&&f&&(u==null||u.addEventListener("click",P.bind(!1,{navigatedList:d,nextBtn:u,prevBtn:f,sliderVariant:s})),f==null||f.addEventListener("click",z.bind(!1,{navigatedList:d,nextBtn:u,prevBtn:f,sliderVariant:s,delay:a}))),o==="true"&&u){const g=i?i.querySelector(".c-stepper__item--loading"):null;r&&(r.forEach(y=>{const m=y.querySelector(".c-stepper__loader");m&&m instanceof HTMLElement&&(m.style.transition=`width ${a/1e3}s linear`)}),g||r[0].classList.add("c-stepper__item--loading")),setInterval(()=>{u.classList.contains("o-nav-button--visible")?u.click():d&&f&&(d.scrollLeft=0,r&&(r.forEach(y=>{const m=y.querySelector(".c-stepper__loader");m&&m instanceof HTMLElement&&(m.style.transition="width 0s linear"),y.classList.remove("c-stepper__item--loading"),y.classList.remove("c-stepper__item--loaded"),setTimeout(()=>{m&&m instanceof HTMLElement&&(m.style.transition=`width ${a/1e3}s linear`)},0)}),setTimeout(()=>{r[0].classList.add("c-stepper__item--loading")},0)),f.click())},a)}}}},G=()=>{const e=document.querySelectorAll(".js-navigation-container");for(const t of Array.from(e))if(t){const s=t.querySelector(".js-navigation-container__list"),o=t.querySelector(".o-nav-button--next-button"),n=t.querySelector(".o-nav-button--previous-button");s&&o&&n&&window.addEventListener("resize",V.bind(!1,{navigatedList:s,nextBtn:o,prevBtn:n}))}},X=()=>{const e=document.querySelector(".js-limit-scroll-progress-bar"),t=document.querySelector(".c-progress__bar");if(!t)return;const{documentElement:s}=document;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 a=Math.round(n/o*100);t.style.width=`${a}%`,a>=100&&(t.style.width="100%")},U=()=>{document.querySelector(".c-progress")&&window.addEventListener("scroll",X)};let E,L=0;const J=()=>{E=null,document.body.getBoundingClientRect().top>L+2&&(E="up"),document.body.getBoundingClientRect().top<L-2&&(E="down"),L=document.body.getBoundingClientRect().top;const e=document.querySelector(".c-read-also-banner");if(e){const t=e.dataset.bannerLimitTop||"0";E==="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")),(E==="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"))}},Q=(e=document.querySelector(".c-read-also-banner"))=>{if(e){let t;window.addEventListener("scroll",()=>{clearTimeout(t),t=setTimeout(J,100)})}},Z=e=>{var o;e.preventDefault();const t=e.currentTarget;if(!(t instanceof HTMLButtonElement))return;const 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")},ee=(e=document.querySelector(".js-search-toggle"))=>{if(e){const t=e.querySelector(".c-header__search-button");t==null||t.addEventListener("click",Z)}},te=()=>{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)})}},se=(e=document.querySelector(".js-mobile-share-button"))=>{e&&e.addEventListener("click",te)},oe=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"))}},ie=(e=document.querySelector(".c-search-form--button"))=>{e&&e.addEventListener("click",t=>{oe(t)})},ne=({tabsContainerElement:e,event:t})=>{t.preventDefault();const s=t.target;if(!(s instanceof HTMLButtonElement))return;const o=e.querySelectorAll('[role="tab"]'),n=e.querySelectorAll('[role="tabpanel"]'),a=s.getAttribute("aria-controls"),c=Object.values(n).find(i=>i.id===a);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")},k=e=>e.code==="ArrowLeft"||e.keyCode===39,I=e=>e.code==="ArrowRight"||e.keyCode===37,re=(e=document.querySelector(".js-tabs"))=>{if(e){const t=e.querySelectorAll('[role="tab"]');t.forEach(o=>{o.addEventListener("click",n=>{ne({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&&(k(n)||I(n))&&(t[o].setAttribute("tabindex","-1"),k(n)?(o+=1,o>=t.length&&(o=0)):I(n)&&(o-=1,o<0&&(o=t.length-1)),t[o].setAttribute("tabindex","0"),t[o].focus())})}}},le=()=>{C(),re(),p(),U(),ee(),se(),K(),Q(),ie(),M("olympicsGames","countdown-olympics-games"),Y(),G()};b.initScripts=le,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})}); | ||
(function(b,h){typeof exports=="object"&&typeof module<"u"?h(exports):typeof define=="function"&&define.amd?define(["exports"],h):(b=typeof globalThis<"u"?globalThis:b||self,h(b.scripts={}))})(this,function(b){"use strict";var le=Object.defineProperty;var ce=(b,h,p)=>h in b?le(b,h,{enumerable:!0,configurable:!0,writable:!0,value:p}):b[h]=p;var _=(b,h,p)=>(ce(b,typeof h!="symbol"?h+"":h,p),p);const h=e=>{e.stopImmediatePropagation(),e.preventDefault();const t=e.currentTarget;if(t instanceof HTMLButtonElement){const 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"))}},p=(e=document.querySelector(".js-collapse__button"))=>{e&&document.querySelectorAll(".c-collapse__button").forEach(s=>{s.addEventListener("click",o=>{h(o)})})},H=(e,t)=>{const s=document.querySelector(`#${t}`);if(s){const o=s.querySelector(".js-countdown-days"),n=s.querySelector(".js-countdown-hours"),a=s.querySelector(".js-countdown-minutes"),c=s.querySelector(".js-countdown-seconds");if(!o||!n||!a||!c)return;window.counters={olympicsGames:"2024-07-26 20:00:00"};const i=window.counters[e],r=new Date(i).getTime(),d=setInterval(()=>{const u=new Date().getTime(),f=r-u;if(f<=0)clearInterval(d);else{const g=Math.floor(f/864e5),y=Math.floor(f%(1e3*60*60*24)/(1e3*60*60)),m=Math.floor(f%(1e3*60*60)/(1e3*60)),re=Math.floor(f%(1e3*60)/1e3);o.innerHTML=g.toString(),n.innerHTML=y.toString(),a.innerHTML=m.toString(),c.innerHTML=re.toString()}},1e3)}},M=e=>{var s;e.setAttribute("aria-expanded","true"),(s=e.previousElementSibling)==null||s.setAttribute("aria-hidden","false");const t=e.querySelector(".js-expandButton__label");t instanceof HTMLButtonElement&&(t.innerHTML="Voir moins")},W=e=>{var s;(s=e.previousElementSibling)==null||s.setAttribute("aria-hidden","true"),e.setAttribute("aria-expanded","false");const t=e.querySelector(".js-expandButton__label");t instanceof HTMLButtonElement&&(t.innerHTML="Voir plus")},j=e=>{const t=e.currentTarget;return e.preventDefault(),t instanceof HTMLButtonElement?t.getAttribute("aria-expanded")==="true"?W(t):M(t):null},D=(e=document.querySelector(".js-expandButton"))=>{e&&document.querySelectorAll(".js-expandButton").forEach(s=>s.addEventListener("click",j))},l={inert:":not([inert]):not([inert] *)",negTabIndex:':not([tabindex^="-"])',disabled:":not(:disabled)"};var C=[`a[href]${l.inert}${l.negTabIndex}`,`area[href]${l.inert}${l.negTabIndex}`,`input:not([type="hidden"]):not([type="radio"])${l.inert}${l.negTabIndex}${l.disabled}`,`input[type="radio"]${l.inert}${l.negTabIndex}${l.disabled}`,`select${l.inert}${l.negTabIndex}${l.disabled}`,`textarea${l.inert}${l.negTabIndex}${l.disabled}`,`button${l.inert}${l.negTabIndex}${l.disabled}`,`details${l.inert} > summary:first-of-type${l.negTabIndex}`,`iframe${l.inert}${l.negTabIndex}`,`audio[controls]${l.inert}${l.negTabIndex}`,`video[controls]${l.inert}${l.negTabIndex}`,`[contenteditable]${l.inert}${l.negTabIndex}`,`[tabindex]${l.inert}${l.negTabIndex}`];function w(e){(e.querySelector("[autofocus]")||e).focus()}function F(e){const t=v(e,!0),s=t?v(e,!1)||t:null;return[t,s]}function v(e,t){if(t&&A(e))return e;if(O(e))if(e.shadowRoot){let s=T(e.shadowRoot,t);for(;s;){const o=v(s,t);if(o)return o;s=$(s,t)}}else if(e.localName==="slot"){const s=e.assignedElements({flatten:!0});t||s.reverse();for(const o of s){const n=v(o,t);if(n)return n}}else{let s=T(e,t);for(;s;){const o=v(s,t);if(o)return o;s=$(s,t)}}return!t&&A(e)?e:null}function T(e,t){return t?e.firstElementChild:e.lastElementChild}function $(e,t){return t?e.nextElementSibling:e.previousElementSibling}const R=e=>e.matches("details:not([open]) *")&&!e.matches("details>summary:first-of-type")?!0:!(e.offsetWidth||e.offsetHeight||e.getClientRects().length),A=e=>{var t;return(t=e.shadowRoot)!=null&&t.delegatesFocus?!1:e.matches(C.join(","))&&!R(e)};function O(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 B(e,t){const[s,o]=F(e);if(!s)return t.preventDefault();const n=S();t.shiftKey&&n===s?(o.focus(),t.preventDefault()):!t.shiftKey&&n===o&&(s.focus(),t.preventDefault())}class q{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),(t==null?void 0:t.type)==="focus"?this.maintainFocus(t):w(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,o;return this.shown?(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),(o=(s=this.previouslyFocused)==null?void 0:s.focus)==null||o.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,o){return this.$el.addEventListener(t,s,o),this}off(t,s,o){return this.$el.removeEventListener(t,s,o),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 o;if(((o=document.activeElement)==null?void 0:o.closest('[aria-modal="true"]'))!==this.$el)return;let s=!1;try{s=!!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open')}catch{}t.key==="Escape"&&this.$el.getAttribute("role")!=="alertdialog"&&!s&&(t.preventDefault(),this.hide(t)),t.key==="Tab"&&B(this.$el,t)}maintainFocus(t){t.target.closest('[aria-modal="true"], [data-a11y-dialog-ignore-focus-trap]')||w(this.$el)}}function x(){for(const e of document.querySelectorAll("[data-a11y-dialog]"))new q(e)}typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",x):x());const K=()=>document.querySelectorAll(".js-modal").forEach(e=>{if(!(e instanceof HTMLElement))return;const t=new q(e),s={x:0,y:0};t.on("show",()=>{s.x=window.scrollX,s.y=window.scrollY,document.body.classList.add("noscroll"),document.body.style.top=`-${s.y}px`}).on("hide",()=>{document.body.classList.remove("noscroll"),document.body.style.top="",(window.scrollY!==s.y||window.scrollX!==s.x)&&window.scroll(s.x,s.y)})}),N=({navigatedList:e,nextBtn:t,prevBtn:s})=>{var a,c,i,r,d,u,f,g;const o=e.scrollLeft>0,n=e.scrollLeft+e.clientWidth<e.scrollWidth;o&&n?((a=t.classList)==null||a.add("o-nav-button--visible"),(c=s.classList)==null||c.add("o-nav-button--visible")):o?((i=t.classList)==null||i.remove("o-nav-button--visible"),(r=s.classList)==null||r.add("o-nav-button--visible")):n?((d=t.classList)==null||d.add("o-nav-button--visible"),(u=s.classList)==null||u.remove("o-nav-button--visible")):((f=t.classList)==null||f.remove("o-nav-button--visible"),(g=s.classList)==null||g.remove("o-nav-button--visible"))},P=({navigatedList:e,nextBtn:t,prevBtn:s,sliderVariant:o})=>{if(e){const n=e.closest(".js-overview-bar-container"),a=n==null?void 0:n.querySelector(".c-stepper"),c=a==null?void 0:a.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")}}},z=({navigatedList:e,nextBtn:t,prevBtn:s,sliderVariant:o,delay:n})=>{if(e){const a=e.closest(".js-overview-bar-container"),c=a==null?void 0:a.querySelector(".c-stepper"),i=c==null?void 0:c.querySelectorAll(".c-stepper__item");if(i){const r=Array.from(i).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 d=i[r-1].querySelector(".c-stepper__loader");i[r-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){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")}},V=({navigatedList:e,nextBtn:t,prevBtn:s})=>{N({navigatedList:e,nextBtn:t,prevBtn:s})},Y=()=>{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,a=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 d=t.querySelector(".js-navigation-container__list"),u=t.querySelector(".o-nav-button--next-button"),f=t.querySelector(".o-nav-button--previous-button");if(d&&d.clientWidth<d.scrollWidth&&(u==null||u.classList.add("o-nav-button--visible")),d&&u&&f&&(u==null||u.addEventListener("click",P.bind(!1,{navigatedList:d,nextBtn:u,prevBtn:f,sliderVariant:s})),f==null||f.addEventListener("click",z.bind(!1,{navigatedList:d,nextBtn:u,prevBtn:f,sliderVariant:s,delay:a}))),o==="true"&&u){const g=i?i.querySelector(".c-stepper__item--loading"):null;r&&(r.forEach(y=>{const m=y.querySelector(".c-stepper__loader");m&&m instanceof HTMLElement&&(m.style.transition=`width ${a/1e3}s linear`)}),g||r[0].classList.add("c-stepper__item--loading")),setInterval(()=>{u.classList.contains("o-nav-button--visible")?u.click():d&&f&&(d.scrollLeft=0,r&&(r.forEach(y=>{const m=y.querySelector(".c-stepper__loader");m&&m instanceof HTMLElement&&(m.style.transition="width 0s linear"),y.classList.remove("c-stepper__item--loading"),y.classList.remove("c-stepper__item--loaded"),setTimeout(()=>{m&&m instanceof HTMLElement&&(m.style.transition=`width ${a/1e3}s linear`)},0)}),setTimeout(()=>{r[0].classList.add("c-stepper__item--loading")},0)),f.click())},a)}}}},G=()=>{const e=document.querySelectorAll(".js-navigation-container");for(const t of Array.from(e))if(t){const s=t.querySelector(".js-navigation-container__list"),o=t.querySelector(".o-nav-button--next-button"),n=t.querySelector(".o-nav-button--previous-button");s&&o&&n&&window.addEventListener("resize",V.bind(!1,{navigatedList:s,nextBtn:o,prevBtn:n}))}},X=()=>{const e=document.querySelector(".js-limit-scroll-progress-bar"),t=document.querySelector(".c-progress__bar");if(!t)return;const{documentElement:s}=document;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 a=Math.round(n/o*100);t.style.width=`${a}%`,a>=100&&(t.style.width="100%")},J=()=>{document.querySelector(".c-progress")&&window.addEventListener("scroll",X)};let E,L=0;const Q=()=>{E=null,document.body.getBoundingClientRect().top>L+2&&(E="up"),document.body.getBoundingClientRect().top<L-2&&(E="down"),L=document.body.getBoundingClientRect().top;const e=document.querySelector(".c-read-also-banner");if(e){const t=e.dataset.bannerLimitTop||"0";E==="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")),(E==="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"))}},U=(e=document.querySelector(".c-read-also-banner"))=>{if(e){let t;window.addEventListener("scroll",()=>{clearTimeout(t),t=setTimeout(Q,100)})}},Z=e=>{var o;e.preventDefault();const t=e.currentTarget;if(!(t instanceof HTMLButtonElement))return;const 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")},ee=(e=document.querySelector(".js-search-toggle"))=>{if(e){const t=e.querySelector(".c-header__search-button");t==null||t.addEventListener("click",Z)}},te=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"))}},se=(e=document.querySelector(".c-search-form--button"))=>{e&&e.addEventListener("click",t=>{te(t)})},oe=({tabsContainerElement:e,event:t})=>{t.preventDefault();const s=t.target;if(!(s instanceof HTMLButtonElement))return;const o=e.querySelectorAll('[role="tab"]'),n=e.querySelectorAll('[role="tabpanel"]'),a=s.getAttribute("aria-controls"),c=Object.values(n).find(i=>i.id===a);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")},k=e=>e.code==="ArrowLeft"||e.keyCode===39,I=e=>e.code==="ArrowRight"||e.keyCode===37,ie=(e=document.querySelector(".js-tabs"))=>{if(e){const t=e.querySelectorAll('[role="tab"]');t.forEach(o=>{o.addEventListener("click",n=>{oe({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&&(k(n)||I(n))&&(t[o].setAttribute("tabindex","-1"),k(n)?(o+=1,o>=t.length&&(o=0)):I(n)&&(o-=1,o<0&&(o=t.length-1)),t[o].setAttribute("tabindex","0"),t[o].focus())})}}},ne=()=>{D(),ie(),p(),J(),ee(),K(),U(),se(),H("olympicsGames","countdown-olympics-games"),Y(),G()};b.initScripts=ne,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})}); |
@@ -5,5 +5,5 @@ import React from 'react'; | ||
export interface CardExtraSmallProps extends CardType, SystemProps, Pick<BoxProps, 'className'> { | ||
layout: LayoutType; | ||
layout?: LayoutType; | ||
socialBarProps?: SocialBarProps; | ||
} | ||
export declare const CardExtraSmall: React.FC<CardExtraSmallProps>; |
@@ -9,3 +9,4 @@ import React from 'react'; | ||
messageProps: TextareaProps; | ||
otherSelectProps?: SelectProps[]; | ||
} | ||
export declare const ContactForm: React.FC<ContactFormProps>; |
@@ -8,1 +8,2 @@ import React from 'react'; | ||
export declare const Overview: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("./ContactForm").ContactFormProps>; | ||
export declare const Custom: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("./ContactForm").ContactFormProps>; |
{ | ||
"name": "@20minutes/hela", | ||
"version": "0.1.170", | ||
"version": "0.1.171", | ||
"repository": "git@github.com:20minutes/hela.git", | ||
@@ -66,3 +66,3 @@ "license": "MIT", | ||
"@20minutes/eslint-config": "^1.2.6", | ||
"@aws-sdk/client-s3": "3.473.0", | ||
"@aws-sdk/client-s3": "3.474.0", | ||
"@babel/core": "^7.23.6", | ||
@@ -73,15 +73,15 @@ "@babel/eslint-parser": "^7.23.3", | ||
"@octokit/core": "5.0.2", | ||
"@storybook/addon-actions": "^7.6.4", | ||
"@storybook/addon-essentials": "^7.6.4", | ||
"@storybook/addon-links": "^7.6.4", | ||
"@storybook/addon-mdx-gfm": "^7.6.4", | ||
"@storybook/blocks": "^7.6.4", | ||
"@storybook/react": "^7.6.4", | ||
"@storybook/react-vite": "^7.6.4", | ||
"@storybook/addon-actions": "^7.6.5", | ||
"@storybook/addon-essentials": "^7.6.5", | ||
"@storybook/addon-links": "^7.6.5", | ||
"@storybook/addon-mdx-gfm": "^7.6.5", | ||
"@storybook/blocks": "^7.6.5", | ||
"@storybook/react": "^7.6.5", | ||
"@storybook/react-vite": "^7.6.5", | ||
"@svgr/cli": "^8.1.0", | ||
"@testing-library/react": "^14.1.2", | ||
"@types/merge-stream": "^1.1.5", | ||
"@types/node": "^20.10.4", | ||
"@types/node": "^20.10.5", | ||
"@types/react": "^18.2.42", | ||
"@types/react-dom": "^18.2.17", | ||
"@types/react-dom": "^18.2.18", | ||
"@typescript-eslint/eslint-plugin": "^6.14.0", | ||
@@ -95,3 +95,3 @@ "@typescript-eslint/parser": "^6.14.0", | ||
"babel-preset-react": "^6.24.1", | ||
"eslint": "^8.55.0", | ||
"eslint": "^8.56.0", | ||
"eslint-config-airbnb": "^19.0.4", | ||
@@ -101,3 +101,3 @@ "eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-babel": "^5.3.1", | ||
"eslint-plugin-import": "^2.29.0", | ||
"eslint-plugin-import": "^2.29.1", | ||
"eslint-plugin-jsx-a11y": "^6.8.0", | ||
@@ -121,3 +121,3 @@ "eslint-plugin-prettier": "^4.2.1", | ||
"sass": "^1.69.5", | ||
"storybook": "^7.6.4", | ||
"storybook": "^7.6.5", | ||
"style-dictionary": "^3.9.1", | ||
@@ -124,0 +124,0 @@ "stylelint": "^15.11.0", |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1614487
490
15982