@tsiky/components-r19 8.2.9 → 8.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -8337,7 +8337,7 @@
8337
8337
  ${ee.datePickerButton}
8338
8338
  ${Qe?ee.datePickerButtonOpen:""}
8339
8339
  ${s?ee.datePickerButtonDisabled:""}
8340
- `,style:Zz,disabled:s,"aria-expanded":Qe,"aria-haspopup":"dialog","aria-label":iV,"aria-labelledby":n?`${n}-label`:void 0,children:[TC?o.jsx("span",{className:ee.displayNode,"aria-hidden":!0,children:he}):o.jsx("span",{className:`${ee.datePickerLabel} ${dt?"":ee.placeholder}`,style:dt?void 0:tV,children:dt?PC:c}),o.jsxs("span",{className:ee.trailingIcons,children:[oV&&o.jsx("span",{role:"button",tabIndex:0,className:ee.clearButton,"aria-label":xz,onClick:H=>{H.stopPropagation(),t(null)},onKeyDown:H=>{(H.key==="Enter"||H.key===" ")&&(H.preventDefault(),H.stopPropagation(),t(null))},children:o.jsx(W7e,{fill:"var(--color-text)",style:cV})}),Pe?o.jsx("span",{className:ee.chevron,style:zC,children:Pe}):o.jsx(p1,{fill:"var(--color-text)",className:`${ee.chevron} ${Qe?ee.chevronOpen:""}`,style:zC})]})]}),d&&o.jsx("div",{className:ee.errorMessage,style:aV,children:d}),(Je||Qe)&&!s&&Vw.createPortal(o.jsxs("div",{id:"datepicker-dropdown",ref:CC,className:`${ee.dropdown} ${Je?ee.dropdownAdvanced:""}`,style:Je?{position:"relative",top:"auto",right:"auto"}:Qz,role:"dialog","aria-label":kz,children:[o.jsxs("div",{style:Jz,children:[o.jsxs("div",{style:Yz,children:[o.jsxs("div",{className:ee.calendarHeader,children:[o.jsx("button",{type:"button",className:ee.navButton,onClick:Dz,"aria-label":pz,disabled:iI,style:iI?{opacity:.3,cursor:"not-allowed"}:void 0,children:"‹"}),o.jsxs("div",{className:ee.headerSelectors,children:[o.jsxs("div",{className:ee.monthSelector,ref:oI,children:[o.jsxs("button",{type:"button",className:ee.selectorButton,onClick:()=>Gc(!aI),style:{color:z,"--hover-color":N},children:[(We||Qj)[ke.getMonth()],o.jsx(p1,{fill:"var(--color-text)",className:`${ee.selectorChevron} ${aI?ee.selectorChevronOpen:""}`,style:{width:"0.75rem",height:"0.75rem",marginLeft:"0.25rem"}})]}),aI&&o.jsx("div",{className:ee.monthDropdown,children:(We||Qj).map((H,X)=>{const _e=Wz(X);return o.jsx("button",{type:"button",disabled:_e,className:`${ee.monthItem} ${ke.getMonth()===X?ee.monthItemSelected:""}`,onClick:()=>!_e&&Ez(X),style:{padding:v,backgroundColor:ke.getMonth()===X?M||"var(--color-lite-primary, #e7f1ff)":C,opacity:_e?.3:1,cursor:_e?"not-allowed":"pointer"},onMouseEnter:Te=>{N&&ke.getMonth()!==X&&!_e&&(Te.currentTarget.style.backgroundColor=N)},onMouseLeave:Te=>{N&&(Te.currentTarget.style.backgroundColor=ke.getMonth()===X?M||"var(--color-lite-primary, #e7f1ff)":C)},children:H},X)})})]}),o.jsxs("div",{className:ee.yearSelector,ref:cI,children:[o.jsxs("button",{type:"button",className:ee.selectorButton,onClick:()=>Kc(!nI),style:{color:z,"--hover-color":N},children:[ke.getFullYear(),o.jsx(p1,{fill:"var(--color-text)",className:`${ee.selectorChevron} ${nI?ee.selectorChevronOpen:""}`,style:{width:"0.75rem",height:"0.75rem",marginLeft:"0.25rem"}})]}),nI&&o.jsx("div",{className:ee.yearDropdown,children:Uz().map(H=>o.jsx("button",{type:"button",className:`${ee.yearItem} ${ke.getFullYear()===H?ee.yearItemSelected:""}`,onClick:()=>Oz(H),style:{padding:v,backgroundColor:ke.getFullYear()===H?M||"var(--color-lite-primary, #e7f1ff)":C},onMouseEnter:X=>{N&&ke.getFullYear()!==H&&(X.currentTarget.style.backgroundColor=N)},onMouseLeave:X=>{N&&(X.currentTarget.style.backgroundColor=ke.getFullYear()===H?M||"var(--color-lite-primary, #e7f1ff)":C)},children:H},H))})]})]}),o.jsx("button",{type:"button",className:ee.navButton,onClick:Hz,"aria-label":yz,disabled:rI,style:rI?{opacity:.3,cursor:"not-allowed"}:void 0,children:"›"})]}),o.jsx("div",{className:ee.weekdays,children:(JL||G7e).map(H=>o.jsx("div",{className:ee.weekday,style:{color:B},children:H},H))}),o.jsx("div",{className:ee.calendarGrid,children:nV.map((H,X)=>{if(!H)return null;const _e=Ee=>new Date(Ee.getFullYear(),Ee.getMonth(),Ee.getDate()).getTime(),Te=Ee=>Ee?`${Ee.getFullYear()}-${Ee.getMonth()}-${Ee.getDate()}`:"",Re=`${H.getFullYear()}-${H.getMonth()}-${H.getDate()}`,De=ri==="multiple"?Iz?.(H)??Mz.some(Ee=>Ee&&Te(Ee)===Re):ri==="range"?(bz?.(H)??(!!si&&Te(si)===Re))||(wz?.(H)??(!!di&&Te(di)===Re)):Pz(H,_1),Fe=ri==="range"?Lz?.(H)??(!!si&&!!di&&_e(H)>=_e(si)&&_e(H)<=_e(di)):!1,sI=Tz(H),Jc=!!(U&&_e(H)<_e(U)||se&&_e(H)>_e(se)),DC="color-mix(in srgb, var(--color-primary) 16%, transparent)";return Cz&&!sI?o.jsx("span",{"aria-hidden":"true",style:{display:"block",width:j,height:j}},X):o.jsx("button",{type:"button",className:`${ee.dateCell} ${De?ee.dateCellSelected:""} ${De?ee.dateCellOtherMonthSelected:""} ${Fe&&!De?ee.dateCellInRange:""} ${sI?"":ee.dateCellOtherMonth} ${Jc?ee.dateCellDisabled:""}`,onClick:()=>!Jc&&Bz(H),disabled:Jc,style:{width:j,height:j,borderRadius:ri==="multiple"&&De?"50%":void 0,color:De?F:sI?P:E,backgroundColor:De?Z:Fe?DC:"transparent",opacity:Jc?.4:1,cursor:Jc?"not-allowed":"pointer"},onMouseEnter:Ee=>{!De&&!Jc&&N&&(Ee.currentTarget.style.backgroundColor=N)},onMouseLeave:Ee=>{De||(Ee.currentTarget.style.backgroundColor=Fe?DC:"transparent")},children:H.getDate()},X)})})]}),ge==="minutes"&&o.jsxs("div",{className:ee.timePickerContainer,style:Xz,children:[o.jsxs("div",{className:ee.timeGroup,children:[o.jsx("span",{className:ee.timeLabel,children:Lt}),o.jsx("div",{className:ee.timeInputWrapper,children:o.jsx("input",{type:"number",min:"0",max:"23",value:hi,onChange:H=>{const X=parseInt(H.target.value);!isNaN(X)&&X>=0&&X<=23&&eI(X)},className:ee.timeInput,style:Yc?{borderColor:"#dc2626",color:"#dc2626"}:void 0})})]}),!Se&&o.jsx("span",{className:ee.timeSeparator,children:":"}),o.jsxs("div",{className:ee.timeGroup,children:[o.jsx("span",{className:ee.timeLabel,children:G}),o.jsx("div",{className:ee.timeInputWrapper,children:o.jsx("input",{type:"number",min:"0",max:"59",value:ui,onChange:H=>{const X=parseInt(H.target.value);!isNaN(X)&&X>=0&&X<=59&&tI(X)},className:ee.timeInput,style:Yc?{borderColor:"#dc2626",color:"#dc2626"}:void 0})})]})]})]}),Yc&&o.jsx("div",{role:"alert",style:{color:"#dc2626",fontSize:"0.75rem",padding:"0 4px 4px",textAlign:"center"},children:we}),!Je&&o.jsxs("div",{className:ee.calendarFooter,children:[o.jsx("button",{type:"button",className:ee.cancelButton,onClick:Fz,style:{backgroundColor:W,color:re,borderRadius:q,padding:ie??v,fontSize:ae},children:hz}),o.jsx("button",{type:"button",className:ee.applyButton,onClick:Rz,disabled:Yc,style:{backgroundColor:de,color:fe,borderRadius:q,padding:ie??v,fontSize:ae,opacity:Yc?.5:1,cursor:Yc?"not-allowed":"pointer"},children:uz})]})]}),Je&&Nz&&M1.current?M1.current:document.body)]})},K7e="_container_ayee2_1",Z7e="_chevron_ayee2_6",X7e="_trigger_ayee2_14",Y7e="_popover_ayee2_37",J7e="_top_ayee2_51",Q7e="_tabs_ayee2_60",eve="_tabActive_ayee2_82",tve="_summary_ayee2_87",ave="_selectionCount_ayee2_88",nve="_calendars_ayee2_107",ove="_datePickerPair_ayee2_134",cve="_footer_ayee2_191",ive="_presets_ayee2_200",rve="_actions_ayee2_214",sve="_daysCount_ayee2_219",dve="_clear_ayee2_224",lve="_apply_ayee2_231",qe={container:K7e,chevron:Z7e,trigger:X7e,popover:Y7e,top:J7e,tabs:Q7e,tabActive:eve,summary:tve,selectionCount:ave,calendars:nve,datePickerPair:ove,footer:cve,presets:ive,actions:rve,daysCount:sve,clear:dve,apply:lve},hve=["single","range","multiple"],uve=["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],pve=["L","M","M","J","V","S","D"],yve=[],kve=[],zc=(e,t)=>(e?.getTime()??null)===(t?.getTime()??null),e$=(e,t)=>e.length===t.length&&e.every((n,c)=>zc(n,t[c])),mve=e=>`${String(e.getDate()).padStart(2,"0")}/${String(e.getMonth()+1).padStart(2,"0")}/${e.getFullYear()}`,TL=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),QA=(e,t="fr-FR")=>{const n=[...e].sort((s,d)=>s.getTime()-d.getTime()),c=[];n.forEach(s=>{const d=`${s.getFullYear()}-${s.getMonth()}`,l=s.toLocaleDateString(t,{month:"short"}),h=c[c.length-1];!h||h.key!==d?c.push({key:d,label:l,days:[s.getDate()]}):h.days.push(s.getDate())});const i=`${n.length} date${n.length>1?"s":""}`,r=c.map(s=>`${s.days.join(", ")} ${s.label}`).join(" · ");return r?`${i} · ${r}`:i},fve=(e,t)=>{if(!e&&!t)return[];const n=TL(e??t),c=TL(t??e),i=n.getTime()<=c.getTime()?n:c,r=n.getTime()<=c.getTime()?c:n,s=[];for(let d=new Date(i);d.getTime()<=r.getTime();d.setDate(d.getDate()+1))s.push(new Date(d));return s},gve=({mode:e="range",availableModes:t,startDate:n=null,endDate:c=null,dates:i=yve,onRangeChange:r,onDatesChange:s,onClear:d,onApply:l,presets:h=kve,placeholder:u="Sélectionner une période...",displayFormat:p,datesFormat:k=QA,dateFormat:m=mve,months:g=uve,weekdays:f=pve,labels:v={},lowerLimit:_,upperLimit:x,disabled:I=!1,width:b="20rem",calendarNode:C,previewStart:N,previewEnd:M,previewDates:L,onModeChange:$,onDraftRangeChange:w,onDraftDatesChange:S,className:q=""})=>{const[A,D]=y.useState(!1),T=(t??hve).join("|"),V=y.useMemo(()=>(T?T.split("|"):[]).filter((U,se,Wc)=>Wc.indexOf(U)===se),[T]),[j,z]=y.useState(V.includes(e)?e:V[0]??"range");y.useEffect(()=>{V.includes(j)||z(V[0]??"range")},[j,V]),y.useEffect(()=>{V.includes(e)&&z(e)},[V,e]);const[B,P]=y.useState(n),[E,Z]=y.useState(c),[F,W]=y.useState(i),[re,de]=y.useState(e),fe=E??B??F[0]??new Date,[ie,ae]=y.useState(new Date(fe.getFullYear(),fe.getMonth()-1,1)),ce=y.useMemo(()=>new Date(ie.getFullYear(),ie.getMonth()+1,1),[ie]),he=y.useRef(null);y.useEffect(()=>{N!==void 0||M!==void 0||(P(G=>zc(G,n)?G:n),Z(G=>zc(G,c)?G:c))},[n,c,N,M]),y.useEffect(()=>{if(N===void 0&&M===void 0)return;const G=N??null,U=M??null;P(se=>zc(se,G)?se:G),Z(se=>zc(se,U)?se:U)},[N,M]),y.useEffect(()=>{L===void 0&&W(G=>e$(G,i)?G:i)},[i,L]),y.useEffect(()=>{L!==void 0&&W(G=>e$(G,L)?G:L)},[L]);const pe=y.useRef("");y.useEffect(()=>{const G=`${B?.getTime()??""}:${E?.getTime()??""}`;pe.current!==G&&(pe.current=G,w?.(B,E))},[B,E,w]);const me=y.useRef("");y.useEffect(()=>{const G=F.map(U=>U?.getTime()??"").join("|");me.current!==G&&(me.current=G,S?.(F))},[F,S]),y.useEffect(()=>{const G=U=>{he.current?.contains(U.target)||D(!1)};return document.addEventListener("mousedown",G),()=>document.removeEventListener("mousedown",G)},[]);const K=y.useMemo(()=>re==="multiple"?i.length?k(i):u:re==="single"?n?p?p(n,null):m(n):u:n?p?p(n,c):c?`${m(n)} - ${m(c)}`:m(n):u,[re,i,k,c,n,p,m,u]),Q=G=>{if(!G)return;const U=new Date(G.getFullYear(),G.getMonth(),G.getDate());if(!B||E){P(U),Z(null);return}const se=new Date(B.getFullYear(),B.getMonth(),B.getDate());if(U.getTime()<se.getTime()){P(U),Z(se);return}Z(U)},le=G=>{G&&(P(TL(G)),Z(null))},Ne=G=>{if(!G)return;const U=TL(G);W(se=>(se.some(We=>zc(We,U))?se.filter(We=>!zc(We,U)):[...se,U]).sort((We,JL)=>We.getTime()-JL.getTime()))},Pe=G=>{const U=G.applyDates?G.applyDates(new Date):{start:G.start,end:G.end};if(j==="multiple"){W(U.dates??fve(U.start,U.end));return}if(j==="single"){P(U.end??U.start??null),Z(null);return}P(U.start??null),Z(U.end??null),U.dates&&W(U.dates)},ge=()=>{P(null),Z(null),W([]),d?.()},Se=()=>{j==="single"&&!B||j==="range"&&(!B||!E)||j==="multiple"&&!F.length||(j==="multiple"?s?.(F):j==="single"?r?.(B,null):r?.(B,E),de(j),l?.(),D(!1))},Lt=y.useMemo(()=>{if(j!=="range"||!B)return j==="multiple"?F.length:0;const G=E??B;return Math.round((new Date(G.getFullYear(),G.getMonth(),G.getDate()).getTime()-new Date(B.getFullYear(),B.getMonth(),B.getDate()).getTime())/864e5)+1},[j,F.length,E,B]);return o.jsxs("div",{ref:he,className:`${qe.container} ${q}`,style:{width:b},children:[o.jsxs("button",{type:"button",className:qe.trigger,onClick:()=>!I&&D(G=>!G),disabled:I,"aria-expanded":A,"aria-haspopup":"dialog",children:[o.jsx("span",{children:K}),o.jsx(p1,{"aria-hidden":"true",fill:"var(--color-text)",className:qe.chevron,style:{width:"var(--select-icon-size, 1.5rem)",height:"var(--select-icon-size, 1.5rem)",color:"var(--select-icon-color, #6c757d)","--icon-rotation":A?"rotate(180deg)":"rotate(0deg)"}})]}),A&&o.jsxs("div",{className:qe.popover,role:"dialog","aria-label":"Sélecteur de date avancé",children:[o.jsxs("div",{className:qe.top,children:[o.jsx("div",{className:qe.tabs,children:["single","range","multiple"].map(G=>o.jsx("button",{type:"button",className:j===G?qe.tabActive:"",disabled:!V.includes(G),onClick:()=>{z(G),$?.(G)},children:G==="single"?v.single??"Date unique":G==="range"?v.range??"Période":v.multiple??"Dates multiples"},G))}),j==="range"&&o.jsxs("div",{className:qe.summary,children:[o.jsxs("span",{children:[o.jsx("small",{children:v.start??"Début"}),B?m(B):"-"]}),o.jsxs("span",{children:[o.jsx("small",{children:v.end??"Fin"}),E?m(E):"-"]})]}),j==="single"&&o.jsx("div",{className:qe.summary,children:o.jsxs("span",{children:[o.jsx("small",{children:v.selection??"Sélection"}),B?m(B):"—"]})}),j==="multiple"&&o.jsxs("div",{className:qe.selectionCount,children:[o.jsx("small",{children:v.selection??"Sélection"}),F.length," date",F.length>1?"s":""]})]}),o.jsx("div",{className:qe.calendars,children:C??o.jsxs("div",{className:qe.datePickerPair,children:[o.jsx(ti,{isAdvanced:!0,hideOutsideDays:!0,value:j==="single"?B:null,onChange:j==="range"?Q:j==="multiple"?Ne:le,lowerLimit:_,upperLimit:x,months:g,weekdays:f,selectionMode:j,rangeStart:B,rangeEnd:E,selectedDates:F,dateCellSize:"2rem",displayMonth:ie,onDisplayMonthChange:ae,fullWidth:!0}),o.jsx(ti,{isAdvanced:!0,hideOutsideDays:!0,value:j==="range"?E:B,onChange:j==="range"?Q:j==="multiple"?Ne:le,lowerLimit:_,upperLimit:x,months:g,weekdays:f,selectionMode:j,rangeStart:B,rangeEnd:E,selectedDates:F,dateCellSize:"2rem",displayMonth:ce,onDisplayMonthChange:G=>{const U=new Date(G.getFullYear(),G.getMonth()-1,1);ae(se=>se.getFullYear()===U.getFullYear()&&se.getMonth()===U.getMonth()?se:U)},fullWidth:!0})]})}),o.jsxs("div",{className:qe.footer,children:[o.jsx("div",{className:qe.presets,children:h.map(G=>o.jsx("button",{type:"button",disabled:G.disabled,onClick:()=>Pe(G),children:G.label},G.id))}),o.jsxs("div",{className:qe.actions,children:[o.jsxs("div",{className:qe.daysCount,children:[j==="range"&&o.jsxs("span",{children:[Lt," jour",Lt>1?"s":""]}),j==="multiple"&&o.jsxs("span",{children:[F.length," date",F.length>1?"s":""]})]}),o.jsx("button",{type:"button",className:qe.clear,onClick:ge,children:v.clear??"Effacer"}),o.jsx("button",{type:"button",className:qe.apply,onClick:Se,disabled:j==="single"&&!B||j==="range"&&(!B||!E)||j==="multiple"&&!F.length,children:v.apply??"Valider"})]})]})]})]})},vve="_selectContainer_1ptm9_1",xve="_label_1ptm9_15",_ve="_selectButton_1ptm9_23",Mve="_selectButtonDisabled_1ptm9_43",Lve="_selectButtonOpen_1ptm9_48",Ive="_selectButtonContent_1ptm9_58",bve="_selectIcon_1ptm9_66",wve="_selectLabel_1ptm9_72",Cve="_placeholder_1ptm9_79",Nve="_chevron_1ptm9_84",Sve="_errorMessage_1ptm9_93",jve="_dropdown_1ptm9_99",$ve="_dropdownContent_1ptm9_123",qve="_item_1ptm9_129",Ave="_itemSelected_1ptm9_151",zve="_itemContent_1ptm9_155",Vve="_itemIcon_1ptm9_162",Pve="_itemLabel_1ptm9_168",$e={selectContainer:vve,label:xve,selectButton:_ve,selectButtonDisabled:Mve,selectButtonOpen:Lve,selectButtonContent:Ive,selectIcon:bve,selectLabel:wve,placeholder:Cve,chevron:Nve,errorMessage:Sve,dropdown:jve,dropdownContent:$ve,item:qve,itemSelected:Ave,itemContent:zve,itemIcon:Vve,itemLabel:Pve},ez=({items:e,value:t,onChange:n,label:c,placeholder:i="Sélectionner...",className:r="",fullWidth:s=!0,disabled:d=!1,error:l,buttonHeight:h="var(--select-button-height, 2.75rem)",buttonPadding:u="var(--select-button-padding, 0.75rem)",dropdownMaxHeight:p="var(--select-dropdown-max-height, 15rem)",fontSize:k="var(--select-font-size, 0.875rem)",fontWeight:m,iconSize:g="var(--select-icon-size, 1.5rem)",labelMarginBottom:f="var(--select-label-margin-bottom, 0.5rem)",errorMarginTop:v="var(--select-error-margin-top, 0.25rem)",dropdownMarginTop:_="var(--select-dropdown-margin-top, 0.25rem)",itemPadding:x="var(--select-item-padding, 0.5rem 0.75rem)",gap:I="var(--select-gap, 0.5rem)",buttonBgColor:b,buttonBorderColor:C,buttonTextColor:N,dropdownBgColor:M,itemHoverColor:L,selectedItemBgColor:$,iconColor:w,errorColor:S,labelColor:q,placeholderColor:A,border:D,borderRadius:T="var(--select-border-radius, 0.5rem)",borderWidth:V="var(--select-border-width, 0.0625rem)",boxShadow:j="var(--select-box-shadow, 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1))",transitionDuration:z="var(--select-transition-duration, 0.2s)",transitionTiming:B="var(--select-transition-timing, ease)",scrollbarWidth:P="var(--select-scrollbar-width, 0.375rem)",scrollbarTrackColor:E="var(--select-scrollbar-track-color, #f1f1f1)",scrollbarThumbColor:Z="var(--select-scrollbar-thumb-color, #c1c1c1)",width:F,minWidth:W,dropdownPosition:re="bottom",dropdownAlignment:de="right",dropdownWidth:fe,a11yConfig:ie,titleKey:ae})=>{const[ce,he]=y.useState(!1),pe=y.useRef(null),me=e.find(we=>we.value===t);y.useEffect(()=>{const we=We=>{pe.current&&!pe.current.contains(We.target)&&he(!1)};return document.addEventListener("mousedown",we),()=>document.removeEventListener("mousedown",we)},[]);const K=we=>{d||(n(we),he(!1))},Q=we=>{if(!d)switch(we.key){case"Enter":case" ":we.preventDefault(),he(!ce);break;case"Escape":he(!1);break;case"Tab":ce&&he(!1);break}},le={width:F||(s?"100%":"auto"),minWidth:W,fontSize:k},Ne={height:h,padding:u,backgroundColor:b||"var(--select-button-bg-color, #ffffff)",border:D,borderColor:l?S||"var(--select-error-color, #dc3545)":C||"var(--select-button-border-color, #dee2e6)",color:N||"var(--select-button-text-color, #212529)",borderRadius:T,borderWidth:V,transition:`all ${z} ${B}`,fontWeight:m},Pe={backgroundColor:M||"var(--select-dropdown-bg-color, #ffffff)",maxHeight:p,borderRadius:T,borderWidth:V,boxShadow:j,transition:`opacity ${z} ${B}, transform ${z} ${B}`,position:"absolute",top:re==="bottom"?"100%":"auto",bottom:re==="top"?"100%":"auto",left:de==="left"?0:"auto",right:de==="right"?0:"auto",width:fe||(s?"100%":"auto"),marginTop:re==="bottom"?_:0,marginBottom:re==="top"?_:0,zIndex:1001},ge={width:g,height:g,color:w||"var(--select-icon-color, #6c757d)","--icon-rotation":ce?"rotate(180deg)":"rotate(0deg)"},Se={color:q||"var(--select-label-color, #212529)",marginBottom:f},Lt={color:A||"var(--select-placeholder-color, #6c757d)"},G={color:S||"var(--select-error-color, #dc3545)",marginTop:v},U={padding:x,transition:`background-color ${z} ${B}`,fontWeight:m},se={gap:I},Wc={"--scrollbar-width":P,"--scrollbar-track-color":E,"--scrollbar-thumb-color":Z};return o.jsxs("div",{className:`${$e.selectContainer} ${r}`,ref:pe,style:le,"data-fullwidth":s,"data-disabled":d,"data-error":!!l,title:te(ie,ae),children:[c&&o.jsx("label",{className:$e.label,style:Se,children:c}),o.jsxs("button",{type:"button",onClick:()=>!d&&he(!ce),onKeyDown:Q,className:`
8340
+ `,style:Zz,disabled:s,"aria-expanded":Qe,"aria-haspopup":"dialog","aria-label":iV,"aria-labelledby":n?`${n}-label`:void 0,children:[TC?o.jsx("span",{className:ee.displayNode,"aria-hidden":!0,children:he}):o.jsx("span",{className:`${ee.datePickerLabel} ${dt?"":ee.placeholder}`,style:dt?void 0:tV,children:dt?PC:c}),o.jsxs("span",{className:ee.trailingIcons,children:[oV&&o.jsx("span",{role:"button",tabIndex:0,className:ee.clearButton,"aria-label":xz,onClick:H=>{H.stopPropagation(),t(null)},onKeyDown:H=>{(H.key==="Enter"||H.key===" ")&&(H.preventDefault(),H.stopPropagation(),t(null))},children:o.jsx(W7e,{fill:"var(--color-text)",style:cV})}),Pe?o.jsx("span",{className:ee.chevron,style:zC,children:Pe}):o.jsx(p1,{fill:"var(--color-text)",className:`${ee.chevron} ${Qe?ee.chevronOpen:""}`,style:zC})]})]}),d&&o.jsx("div",{className:ee.errorMessage,style:aV,children:d}),(Je||Qe)&&!s&&Vw.createPortal(o.jsxs("div",{id:"datepicker-dropdown",ref:CC,className:`${ee.dropdown} ${Je?ee.dropdownAdvanced:""}`,style:Je?{position:"relative",top:"auto",right:"auto"}:Qz,role:"dialog","aria-label":kz,children:[o.jsxs("div",{style:Jz,children:[o.jsxs("div",{style:Yz,children:[o.jsxs("div",{className:ee.calendarHeader,children:[o.jsx("button",{type:"button",className:ee.navButton,onClick:Dz,"aria-label":pz,disabled:iI,style:iI?{opacity:.3,cursor:"not-allowed"}:void 0,children:"‹"}),o.jsxs("div",{className:ee.headerSelectors,children:[o.jsxs("div",{className:ee.monthSelector,ref:oI,children:[o.jsxs("button",{type:"button",className:ee.selectorButton,onClick:()=>Gc(!aI),style:{color:z,"--hover-color":N},children:[(We||Qj)[ke.getMonth()],o.jsx(p1,{fill:"var(--color-text)",className:`${ee.selectorChevron} ${aI?ee.selectorChevronOpen:""}`,style:{width:"0.75rem",height:"0.75rem",marginLeft:"0.25rem"}})]}),aI&&o.jsx("div",{className:ee.monthDropdown,children:(We||Qj).map((H,X)=>{const _e=Wz(X);return o.jsx("button",{type:"button",disabled:_e,className:`${ee.monthItem} ${ke.getMonth()===X?ee.monthItemSelected:""}`,onClick:()=>!_e&&Ez(X),style:{padding:v,backgroundColor:ke.getMonth()===X?M||"var(--color-lite-primary, #e7f1ff)":C,opacity:_e?.3:1,cursor:_e?"not-allowed":"pointer"},onMouseEnter:Te=>{N&&ke.getMonth()!==X&&!_e&&(Te.currentTarget.style.backgroundColor=N)},onMouseLeave:Te=>{N&&(Te.currentTarget.style.backgroundColor=ke.getMonth()===X?M||"var(--color-lite-primary, #e7f1ff)":C)},children:H},X)})})]}),o.jsxs("div",{className:ee.yearSelector,ref:cI,children:[o.jsxs("button",{type:"button",className:ee.selectorButton,onClick:()=>Kc(!nI),style:{color:z,"--hover-color":N},children:[ke.getFullYear(),o.jsx(p1,{fill:"var(--color-text)",className:`${ee.selectorChevron} ${nI?ee.selectorChevronOpen:""}`,style:{width:"0.75rem",height:"0.75rem",marginLeft:"0.25rem"}})]}),nI&&o.jsx("div",{className:ee.yearDropdown,children:Uz().map(H=>o.jsx("button",{type:"button",className:`${ee.yearItem} ${ke.getFullYear()===H?ee.yearItemSelected:""}`,onClick:()=>Oz(H),style:{padding:v,backgroundColor:ke.getFullYear()===H?M||"var(--color-lite-primary, #e7f1ff)":C},onMouseEnter:X=>{N&&ke.getFullYear()!==H&&(X.currentTarget.style.backgroundColor=N)},onMouseLeave:X=>{N&&(X.currentTarget.style.backgroundColor=ke.getFullYear()===H?M||"var(--color-lite-primary, #e7f1ff)":C)},children:H},H))})]})]}),o.jsx("button",{type:"button",className:ee.navButton,onClick:Hz,"aria-label":yz,disabled:rI,style:rI?{opacity:.3,cursor:"not-allowed"}:void 0,children:"›"})]}),o.jsx("div",{className:ee.weekdays,children:(JL||G7e).map(H=>o.jsx("div",{className:ee.weekday,style:{color:B},children:H},H))}),o.jsx("div",{className:ee.calendarGrid,children:nV.map((H,X)=>{if(!H)return null;const _e=Ee=>new Date(Ee.getFullYear(),Ee.getMonth(),Ee.getDate()).getTime(),Te=Ee=>Ee?`${Ee.getFullYear()}-${Ee.getMonth()}-${Ee.getDate()}`:"",Re=`${H.getFullYear()}-${H.getMonth()}-${H.getDate()}`,De=ri==="multiple"?Iz?.(H)??Mz.some(Ee=>Ee&&Te(Ee)===Re):ri==="range"?(bz?.(H)??(!!si&&Te(si)===Re))||(wz?.(H)??(!!di&&Te(di)===Re)):Pz(H,_1),Fe=ri==="range"?Lz?.(H)??(!!si&&!!di&&_e(H)>=_e(si)&&_e(H)<=_e(di)):!1,sI=Tz(H),Jc=!!(U&&_e(H)<_e(U)||se&&_e(H)>_e(se)),DC="color-mix(in srgb, var(--color-primary) 16%, transparent)";return Cz&&!sI?o.jsx("span",{"aria-hidden":"true",style:{display:"block",width:j,height:j}},X):o.jsx("button",{type:"button",className:`${ee.dateCell} ${De?ee.dateCellSelected:""} ${De?ee.dateCellOtherMonthSelected:""} ${Fe&&!De?ee.dateCellInRange:""} ${sI?"":ee.dateCellOtherMonth} ${Jc?ee.dateCellDisabled:""}`,onClick:()=>!Jc&&Bz(H),disabled:Jc,style:{width:j,height:j,borderRadius:ri==="multiple"&&De?"50%":void 0,color:De?F:sI?P:E,backgroundColor:De?Z:Fe?DC:"transparent",opacity:Jc?.4:1,cursor:Jc?"not-allowed":"pointer"},onMouseEnter:Ee=>{!De&&!Jc&&N&&(Ee.currentTarget.style.backgroundColor=N)},onMouseLeave:Ee=>{De||(Ee.currentTarget.style.backgroundColor=Fe?DC:"transparent")},children:H.getDate()},X)})})]}),ge==="minutes"&&o.jsxs("div",{className:ee.timePickerContainer,style:Xz,children:[o.jsxs("div",{className:ee.timeGroup,children:[o.jsx("span",{className:ee.timeLabel,children:Lt}),o.jsx("div",{className:ee.timeInputWrapper,children:o.jsx("input",{type:"number",min:"0",max:"23",value:hi,onChange:H=>{const X=parseInt(H.target.value);!isNaN(X)&&X>=0&&X<=23&&eI(X)},className:ee.timeInput,style:Yc?{borderColor:"#dc2626",color:"#dc2626"}:void 0})})]}),!Se&&o.jsx("span",{className:ee.timeSeparator,children:":"}),o.jsxs("div",{className:ee.timeGroup,children:[o.jsx("span",{className:ee.timeLabel,children:G}),o.jsx("div",{className:ee.timeInputWrapper,children:o.jsx("input",{type:"number",min:"0",max:"59",value:ui,onChange:H=>{const X=parseInt(H.target.value);!isNaN(X)&&X>=0&&X<=59&&tI(X)},className:ee.timeInput,style:Yc?{borderColor:"#dc2626",color:"#dc2626"}:void 0})})]})]})]}),Yc&&o.jsx("div",{role:"alert",style:{color:"#dc2626",fontSize:"0.75rem",padding:"0 4px 4px",textAlign:"center"},children:we}),!Je&&o.jsxs("div",{className:ee.calendarFooter,children:[o.jsx("button",{type:"button",className:ee.cancelButton,onClick:Fz,style:{backgroundColor:W,color:re,borderRadius:q,padding:ie??v,fontSize:ae},children:hz}),o.jsx("button",{type:"button",className:ee.applyButton,onClick:Rz,disabled:Yc,style:{backgroundColor:de,color:fe,borderRadius:q,padding:ie??v,fontSize:ae,opacity:Yc?.5:1,cursor:Yc?"not-allowed":"pointer"},children:uz})]})]}),Je&&Nz&&M1.current?M1.current:document.body)]})},K7e="_container_ayee2_1",Z7e="_chevron_ayee2_6",X7e="_trigger_ayee2_14",Y7e="_popover_ayee2_37",J7e="_top_ayee2_51",Q7e="_tabs_ayee2_60",eve="_tabActive_ayee2_82",tve="_summary_ayee2_87",ave="_selectionCount_ayee2_88",nve="_calendars_ayee2_107",ove="_datePickerPair_ayee2_134",cve="_footer_ayee2_191",ive="_presets_ayee2_200",rve="_actions_ayee2_214",sve="_daysCount_ayee2_219",dve="_clear_ayee2_224",lve="_apply_ayee2_231",qe={container:K7e,chevron:Z7e,trigger:X7e,popover:Y7e,top:J7e,tabs:Q7e,tabActive:eve,summary:tve,selectionCount:ave,calendars:nve,datePickerPair:ove,footer:cve,presets:ive,actions:rve,daysCount:sve,clear:dve,apply:lve},hve=["single","range","multiple"],uve=["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],pve=["L","M","M","J","V","S","D"],yve=[],kve=[],zc=(e,t)=>(e?.getTime()??null)===(t?.getTime()??null),e$=(e,t)=>e.length===t.length&&e.every((n,c)=>zc(n,t[c])),mve=e=>`${String(e.getDate()).padStart(2,"0")}/${String(e.getMonth()+1).padStart(2,"0")}/${e.getFullYear()}`,TL=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),QA=(e,t="fr-FR")=>{const n=[...e].sort((s,d)=>s.getTime()-d.getTime()),c=[];n.forEach(s=>{const d=`${s.getFullYear()}-${s.getMonth()}`,l=s.toLocaleDateString(t,{month:"short"}),h=c[c.length-1];!h||h.key!==d?c.push({key:d,label:l,days:[s.getDate()]}):h.days.push(s.getDate())});const i=`${n.length} date${n.length>1?"s":""}`,r=c.map(s=>`${s.days.join(", ")} ${s.label}`).join(" · ");return r?`${i} · ${r}`:i},fve=(e,t)=>{if(!e&&!t)return[];const n=TL(e??t),c=TL(t??e),i=n.getTime()<=c.getTime()?n:c,r=n.getTime()<=c.getTime()?c:n,s=[];for(let d=new Date(i);d.getTime()<=r.getTime();d.setDate(d.getDate()+1))s.push(new Date(d));return s},gve=({mode:e="range",availableModes:t,startDate:n=null,endDate:c=null,dates:i=yve,onRangeChange:r,onDatesChange:s,onClear:d,onApply:l,presets:h=kve,placeholder:u="Sélectionner une période...",displayFormat:p,datesFormat:k=QA,dateFormat:m=mve,months:g=uve,weekdays:f=pve,labels:v={},lowerLimit:_,upperLimit:x,disabled:I=!1,width:b="20rem",calendarNode:C,previewStart:N,previewEnd:M,previewDates:L,onModeChange:$,onDraftRangeChange:w,onDraftDatesChange:S,className:q=""})=>{const[A,D]=y.useState(!1),T=(t??hve).join("|"),V=y.useMemo(()=>(T?T.split("|"):[]).filter((U,se,Wc)=>Wc.indexOf(U)===se),[T]),[j,z]=y.useState(V.includes(e)?e:V[0]??"range");y.useEffect(()=>{V.includes(j)||z(V[0]??"range")},[j,V]),y.useEffect(()=>{V.includes(e)&&z(e)},[V,e]);const[B,P]=y.useState(n),[E,Z]=y.useState(c),[F,W]=y.useState(i),[re,de]=y.useState(e),fe=E??B??F[0]??new Date,[ie,ae]=y.useState(new Date(fe.getFullYear(),fe.getMonth()-1,1)),ce=y.useMemo(()=>new Date(ie.getFullYear(),ie.getMonth()+1,1),[ie]),he=y.useRef(null);y.useEffect(()=>{N!==void 0||M!==void 0||(P(G=>zc(G,n)?G:n),Z(G=>zc(G,c)?G:c))},[n,c,N,M]),y.useEffect(()=>{if(N===void 0&&M===void 0)return;const G=N??null,U=M??null;P(se=>zc(se,G)?se:G),Z(se=>zc(se,U)?se:U)},[N,M]),y.useEffect(()=>{L===void 0&&W(G=>e$(G,i)?G:i)},[i,L]),y.useEffect(()=>{L!==void 0&&W(G=>e$(G,L)?G:L)},[L]);const pe=y.useRef("");y.useEffect(()=>{const G=`${B?.getTime()??""}:${E?.getTime()??""}`;pe.current!==G&&(pe.current=G,w?.(B,E))},[B,E,w]);const me=y.useRef("");y.useEffect(()=>{const G=F.map(U=>U?.getTime()??"").join("|");me.current!==G&&(me.current=G,S?.(F))},[F,S]),y.useEffect(()=>{const G=U=>{he.current?.contains(U.target)||D(!1)};return document.addEventListener("mousedown",G),()=>document.removeEventListener("mousedown",G)},[]);const K=y.useMemo(()=>re==="multiple"?i.length?k(i):u:re==="single"?n?p?p(n,null):m(n):u:n?p?p(n,c):c?`${m(n)} - ${m(c)}`:m(n):u,[re,i,k,c,n,p,m,u]),Q=G=>{if(!G)return;const U=new Date(G.getFullYear(),G.getMonth(),G.getDate());if(!B||E){P(U),Z(null);return}const se=new Date(B.getFullYear(),B.getMonth(),B.getDate());if(U.getTime()<se.getTime()){P(U),Z(se);return}Z(U)},le=G=>{G&&(P(TL(G)),Z(null))},Ne=G=>{if(!G)return;const U=TL(G);W(se=>(se.some(We=>zc(We,U))?se.filter(We=>!zc(We,U)):[...se,U]).sort((We,JL)=>We.getTime()-JL.getTime()))},Pe=G=>{const U=G.applyDates?G.applyDates(new Date):{start:G.start,end:G.end};if(j==="multiple"){W(U.dates??fve(U.start,U.end));return}if(j==="single"){P(U.end??U.start??null),Z(null);return}P(U.start??null),Z(U.end??null),U.dates&&W(U.dates)},ge=()=>{P(null),Z(null),W([]),d?.()},Se=()=>{j==="single"&&!B||j==="range"&&(!B||!E)||j==="multiple"&&!F.length||(j==="multiple"?s?.(F):j==="single"?r?.(B,null):r?.(B,E),de(j),l?.(),D(!1))},Lt=y.useMemo(()=>{if(j!=="range"||!B)return j==="multiple"?F.length:0;const G=E??B;return Math.round((new Date(G.getFullYear(),G.getMonth(),G.getDate()).getTime()-new Date(B.getFullYear(),B.getMonth(),B.getDate()).getTime())/864e5)+1},[j,F.length,E,B]);return o.jsxs("div",{ref:he,className:`${qe.container} ${q}`,style:{width:b},children:[o.jsxs("button",{type:"button",className:qe.trigger,onClick:()=>!I&&D(G=>!G),disabled:I,"aria-expanded":A,"aria-haspopup":"dialog",children:[o.jsx("span",{children:K}),o.jsx(p1,{"aria-hidden":"true",fill:"var(--color-text)",className:qe.chevron,style:{width:"var(--select-icon-size, 1.5rem)",height:"var(--select-icon-size, 1.5rem)",color:"var(--select-icon-color, #6c757d)","--icon-rotation":A?"rotate(180deg)":"rotate(0deg)"}})]}),A&&o.jsxs("div",{className:qe.popover,role:"dialog","aria-label":"Sélecteur de date avancé",children:[o.jsxs("div",{className:qe.top,children:[o.jsx("div",{className:qe.tabs,children:["single","range","multiple"].map(G=>o.jsx("button",{type:"button",className:j===G?qe.tabActive:"",disabled:!V.includes(G),onClick:()=>{z(G),$?.(G)},children:G==="single"?v.single??"Date unique":G==="range"?v.range??"Période":v.multiple??"Dates multiples"},G))}),j==="range"&&o.jsxs("div",{className:qe.summary,children:[o.jsxs("span",{children:[o.jsx("small",{children:v.start??"Début"}),B?m(B):"-"]}),o.jsxs("span",{children:[o.jsx("small",{children:v.end??"Fin"}),E?m(E):"-"]})]}),j==="single"&&o.jsx("div",{className:qe.summary,children:o.jsxs("span",{children:[o.jsx("small",{children:v.selection??"Sélection"}),B?m(B):"—"]})}),j==="multiple"&&o.jsxs("div",{className:qe.selectionCount,children:[o.jsx("small",{children:v.selection??"Sélection"}),F.length," date",F.length>1?"s":""]})]}),o.jsx("div",{className:qe.calendars,children:C??o.jsxs("div",{className:qe.datePickerPair,children:[o.jsx(ti,{isAdvanced:!0,hideOutsideDays:!0,value:j==="single"?B:null,onChange:j==="range"?Q:j==="multiple"?Ne:le,lowerLimit:_,upperLimit:x,months:g,weekdays:f,selectionMode:j,rangeStart:B,rangeEnd:E,selectedDates:F,dateCellSize:"2rem",displayMonth:ie,onDisplayMonthChange:ae,fullWidth:!0}),o.jsx(ti,{isAdvanced:!0,hideOutsideDays:!0,value:j==="range"?E:B,onChange:j==="range"?Q:j==="multiple"?Ne:le,lowerLimit:_,upperLimit:x,months:g,weekdays:f,selectionMode:j,rangeStart:B,rangeEnd:E,selectedDates:F,dateCellSize:"2rem",displayMonth:ce,onDisplayMonthChange:G=>{const U=new Date(G.getFullYear(),G.getMonth()-1,1);ae(se=>se.getFullYear()===U.getFullYear()&&se.getMonth()===U.getMonth()?se:U)},fullWidth:!0})]})}),o.jsxs("div",{className:qe.footer,children:[o.jsx("div",{className:qe.presets,children:h.map(G=>o.jsx("button",{type:"button",disabled:G.disabled,onClick:()=>Pe(G),children:G.label},G.id))}),o.jsxs("div",{className:qe.actions,children:[o.jsxs("div",{className:qe.daysCount,children:[j==="range"&&o.jsxs("span",{children:[Lt," ",v.day,Lt>1?"s":""]}),j==="multiple"&&o.jsxs("span",{children:[F.length," ",v.date,F.length>1?"s":""]})]}),o.jsx("button",{type:"button",className:qe.clear,onClick:ge,children:v.clear??"Effacer"}),o.jsx("button",{type:"button",className:qe.apply,onClick:Se,disabled:j==="single"&&!B||j==="range"&&(!B||!E)||j==="multiple"&&!F.length,children:v.apply??"Valider"})]})]})]})]})},vve="_selectContainer_1ptm9_1",xve="_label_1ptm9_15",_ve="_selectButton_1ptm9_23",Mve="_selectButtonDisabled_1ptm9_43",Lve="_selectButtonOpen_1ptm9_48",Ive="_selectButtonContent_1ptm9_58",bve="_selectIcon_1ptm9_66",wve="_selectLabel_1ptm9_72",Cve="_placeholder_1ptm9_79",Nve="_chevron_1ptm9_84",Sve="_errorMessage_1ptm9_93",jve="_dropdown_1ptm9_99",$ve="_dropdownContent_1ptm9_123",qve="_item_1ptm9_129",Ave="_itemSelected_1ptm9_151",zve="_itemContent_1ptm9_155",Vve="_itemIcon_1ptm9_162",Pve="_itemLabel_1ptm9_168",$e={selectContainer:vve,label:xve,selectButton:_ve,selectButtonDisabled:Mve,selectButtonOpen:Lve,selectButtonContent:Ive,selectIcon:bve,selectLabel:wve,placeholder:Cve,chevron:Nve,errorMessage:Sve,dropdown:jve,dropdownContent:$ve,item:qve,itemSelected:Ave,itemContent:zve,itemIcon:Vve,itemLabel:Pve},ez=({items:e,value:t,onChange:n,label:c,placeholder:i="Sélectionner...",className:r="",fullWidth:s=!0,disabled:d=!1,error:l,buttonHeight:h="var(--select-button-height, 2.75rem)",buttonPadding:u="var(--select-button-padding, 0.75rem)",dropdownMaxHeight:p="var(--select-dropdown-max-height, 15rem)",fontSize:k="var(--select-font-size, 0.875rem)",fontWeight:m,iconSize:g="var(--select-icon-size, 1.5rem)",labelMarginBottom:f="var(--select-label-margin-bottom, 0.5rem)",errorMarginTop:v="var(--select-error-margin-top, 0.25rem)",dropdownMarginTop:_="var(--select-dropdown-margin-top, 0.25rem)",itemPadding:x="var(--select-item-padding, 0.5rem 0.75rem)",gap:I="var(--select-gap, 0.5rem)",buttonBgColor:b,buttonBorderColor:C,buttonTextColor:N,dropdownBgColor:M,itemHoverColor:L,selectedItemBgColor:$,iconColor:w,errorColor:S,labelColor:q,placeholderColor:A,border:D,borderRadius:T="var(--select-border-radius, 0.5rem)",borderWidth:V="var(--select-border-width, 0.0625rem)",boxShadow:j="var(--select-box-shadow, 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1))",transitionDuration:z="var(--select-transition-duration, 0.2s)",transitionTiming:B="var(--select-transition-timing, ease)",scrollbarWidth:P="var(--select-scrollbar-width, 0.375rem)",scrollbarTrackColor:E="var(--select-scrollbar-track-color, #f1f1f1)",scrollbarThumbColor:Z="var(--select-scrollbar-thumb-color, #c1c1c1)",width:F,minWidth:W,dropdownPosition:re="bottom",dropdownAlignment:de="right",dropdownWidth:fe,a11yConfig:ie,titleKey:ae})=>{const[ce,he]=y.useState(!1),pe=y.useRef(null),me=e.find(we=>we.value===t);y.useEffect(()=>{const we=We=>{pe.current&&!pe.current.contains(We.target)&&he(!1)};return document.addEventListener("mousedown",we),()=>document.removeEventListener("mousedown",we)},[]);const K=we=>{d||(n(we),he(!1))},Q=we=>{if(!d)switch(we.key){case"Enter":case" ":we.preventDefault(),he(!ce);break;case"Escape":he(!1);break;case"Tab":ce&&he(!1);break}},le={width:F||(s?"100%":"auto"),minWidth:W,fontSize:k},Ne={height:h,padding:u,backgroundColor:b||"var(--select-button-bg-color, #ffffff)",border:D,borderColor:l?S||"var(--select-error-color, #dc3545)":C||"var(--select-button-border-color, #dee2e6)",color:N||"var(--select-button-text-color, #212529)",borderRadius:T,borderWidth:V,transition:`all ${z} ${B}`,fontWeight:m},Pe={backgroundColor:M||"var(--select-dropdown-bg-color, #ffffff)",maxHeight:p,borderRadius:T,borderWidth:V,boxShadow:j,transition:`opacity ${z} ${B}, transform ${z} ${B}`,position:"absolute",top:re==="bottom"?"100%":"auto",bottom:re==="top"?"100%":"auto",left:de==="left"?0:"auto",right:de==="right"?0:"auto",width:fe||(s?"100%":"auto"),marginTop:re==="bottom"?_:0,marginBottom:re==="top"?_:0,zIndex:1001},ge={width:g,height:g,color:w||"var(--select-icon-color, #6c757d)","--icon-rotation":ce?"rotate(180deg)":"rotate(0deg)"},Se={color:q||"var(--select-label-color, #212529)",marginBottom:f},Lt={color:A||"var(--select-placeholder-color, #6c757d)"},G={color:S||"var(--select-error-color, #dc3545)",marginTop:v},U={padding:x,transition:`background-color ${z} ${B}`,fontWeight:m},se={gap:I},Wc={"--scrollbar-width":P,"--scrollbar-track-color":E,"--scrollbar-thumb-color":Z};return o.jsxs("div",{className:`${$e.selectContainer} ${r}`,ref:pe,style:le,"data-fullwidth":s,"data-disabled":d,"data-error":!!l,title:te(ie,ae),children:[c&&o.jsx("label",{className:$e.label,style:Se,children:c}),o.jsxs("button",{type:"button",onClick:()=>!d&&he(!ce),onKeyDown:Q,className:`
8341
8341
  ${$e.selectButton}
8342
8342
  ${ce?$e.selectButtonOpen:""}
8343
8343
  ${d?$e.selectButtonDisabled:""}
package/dist/index.js CHANGED
@@ -46693,12 +46693,14 @@ const Swe = ({
46693
46693
  /* @__PURE__ */ m("div", { className: Re.daysCount, children: [
46694
46694
  $ === "range" && /* @__PURE__ */ m("span", { children: [
46695
46695
  At,
46696
- " jour",
46696
+ " ",
46697
+ v.day,
46697
46698
  At > 1 ? "s" : ""
46698
46699
  ] }),
46699
46700
  $ === "multiple" && /* @__PURE__ */ m("span", { children: [
46700
46701
  E.length,
46701
- " date",
46702
+ " ",
46703
+ v.date,
46702
46704
  E.length > 1 ? "s" : ""
46703
46705
  ] })
46704
46706
  ] }),
@@ -38,6 +38,8 @@ export interface AdvancedDatePickerProps {
38
38
  selection?: string;
39
39
  clear?: string;
40
40
  apply?: string;
41
+ day?: string;
42
+ date?: string;
41
43
  };
42
44
  lowerLimit?: Date | null;
43
45
  upperLimit?: Date | null;
@@ -1 +1 @@
1
- {"version":3,"file":"AdvancedDatePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/AdvancedDatePicker/AdvancedDatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAKpE,MAAM,MAAM,sBAAsB,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAC;AAGrE,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,KAAK;QAAE,KAAK,CAAC,EAAE,IAAI,CAAC;QAAC,GAAG,CAAC,EAAE,IAAI,CAAC;QAAC,KAAK,CAAC,EAAE,IAAI,EAAE,CAAA;KAAE,CAAC;IAC3E,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,EAAE,sBAAsB,CAAC;IAC9B,cAAc,CAAC,EAAE,sBAAsB,EAAE,CAAC;IAC1C,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,EAAE,GAAG,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IACxC,OAAO,CAAC,EAAE,MAAM,IAAI,C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