design-system-silkhaus 2.5.0-beta.travel-list.2 → 2.5.0-beta.travel-list.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -225,7 +225,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
225
225
|
`+t.toString());return}var o=i.options.parent;if(o){var s=o.rules.raw[e.extend];Gn(s,t,r,n)}return}if(Array.isArray(e.extend)){for(var l=0;l<e.extend.length;l++){var u=e.extend[l],c=typeof u=="string"?Qe({},e,{extend:u}):e.extend[l];Gn(c,t,r,n)}return}for(var d in e.extend){if(d==="extend"){Gn(e.extend.extend,t,r,n);continue}if(xo(e.extend[d])){d in n||(n[d]={}),Gn(e.extend[d],t,r,n[d]);continue}n[d]=e.extend[d]}}function W9(e,t,r,n){for(var a in e)if(a!=="extend"){if(xo(n[a])&&xo(e[a])){Gn(e[a],t,r,n[a]);continue}if(xo(e[a])){n[a]=Gn(e[a],t,r);continue}n[a]=e[a]}}function Gn(e,t,r,n){return n===void 0&&(n={}),$9(e,t,r,n),W9(e,t,r,n),n}function H9(){function e(r,n,a){return"extend"in r?Gn(r,n,a):r}function t(r,n,a){if(n!=="extend")return r;if(r==null||r===!1){for(var i in a[Pv])a.prop(i,null);return a[Pv]=null,null}if(typeof r=="object"){for(var o in r)a.prop(o,r[o]);a[Pv]=r}return null}return{onProcessStyle:e,onChangeValue:t}}var lS=/\s*,\s*/g,z9=/&/g,B9=/\$([\w-]+)/g;function V9(){function e(a,i){return function(o,s){var l=a.getRule(s)||i&&i.getRule(s);return l?l.selector:(process.env.NODE_ENV!=="production"&&Wt(!1,'[JSS] Could not find the referenced rule "'+s+'" in "'+(a.options.meta||a.toString())+'".'),s)}}function t(a,i){for(var o=i.split(lS),s=a.split(lS),l="",u=0;u<o.length;u++)for(var c=o[u],d=0;d<s.length;d++){var f=s[d];l&&(l+=", "),l+=f.indexOf("&")!==-1?f.replace(z9,c):c+" "+f}return l}function r(a,i,o){if(o)return Qe({},o,{index:o.index+1});var s=a.options.nestingLevel;s=s===void 0?1:s+1;var l=Qe({},a.options,{nestingLevel:s,index:i.indexOf(a)+1});return delete l.name,l}function n(a,i,o){if(i.type!=="style")return a;var s=i,l=s.options.parent,u,c;for(var d in a){var f=d.indexOf("&")!==-1,h=d[0]==="@";if(!(!f&&!h)){if(u=r(s,l,u),f){var y=t(d,s.selector);c||(c=e(l,o)),y=y.replace(B9,c);var g=s.key+"-"+d;"replaceRule"in l?l.replaceRule(g,a[d],Qe({},u,{selector:y})):l.addRule(g,a[d],Qe({},u,{selector:y}))}else h&&l.addRule(d,{},u).addRule(s.key,a[d],{selector:s.selector});delete a[d]}}return a}return{onProcessStyle:n}}function kp(e,t){if(!t)return!0;if(Array.isArray(t)){for(var r=0;r<t.length;r++){var n=kp(e,t[r]);if(!n)return!1}return!0}if(t.indexOf(" ")>-1)return kp(e,t.split(" "));var a=e.options.parent;if(t[0]==="$"){var i=a.getRule(t.substr(1));return i?i===e?(process.env.NODE_ENV!=="production"&&Wt(!1,`[JSS] Cyclic composition detected.
|
|
226
226
|
`+e.toString()),!1):(a.classes[e.key]+=" "+a.classes[i.key],!0):(process.env.NODE_ENV!=="production"&&Wt(!1,`[JSS] Referenced rule is not defined.
|
|
227
227
|
`+e.toString()),!1)}return a.classes[e.key]+=" "+t,!0}function Y9(){function e(t,r){return"composes"in t&&(kp(r,t.composes),delete t.composes),t}return{onProcessStyle:e}}var U9=/[A-Z]/g,K9=/^ms-/,xv={};function G9(e){return"-"+e.toLowerCase()}function bC(e){if(xv.hasOwnProperty(e))return xv[e];var t=e.replace(U9,G9);return xv[e]=K9.test(t)?"-"+t:t}function Uo(e){var t={};for(var r in e){var n=r.indexOf("--")===0?r:bC(r);t[n]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Uo):t.fallbacks=Uo(e.fallbacks)),t}function X9(){function e(r){if(Array.isArray(r)){for(var n=0;n<r.length;n++)r[n]=Uo(r[n]);return r}return Uo(r)}function t(r,n,a){if(n.indexOf("--")===0)return r;var i=bC(n);return n===i?r:(a.prop(i,r),null)}return{onProcessStyle:e,onChangeValue:t}}var ve=my&&CSS?CSS.px:"px",go=my&&CSS?CSS.ms:"ms",fa=my&&CSS?CSS.percent:"%",Z9={"animation-delay":go,"animation-duration":go,"background-position":ve,"background-position-x":ve,"background-position-y":ve,"background-size":ve,border:ve,"border-bottom":ve,"border-bottom-left-radius":ve,"border-bottom-right-radius":ve,"border-bottom-width":ve,"border-left":ve,"border-left-width":ve,"border-radius":ve,"border-right":ve,"border-right-width":ve,"border-top":ve,"border-top-left-radius":ve,"border-top-right-radius":ve,"border-top-width":ve,"border-width":ve,"border-block":ve,"border-block-end":ve,"border-block-end-width":ve,"border-block-start":ve,"border-block-start-width":ve,"border-block-width":ve,"border-inline":ve,"border-inline-end":ve,"border-inline-end-width":ve,"border-inline-start":ve,"border-inline-start-width":ve,"border-inline-width":ve,"border-start-start-radius":ve,"border-start-end-radius":ve,"border-end-start-radius":ve,"border-end-end-radius":ve,margin:ve,"margin-bottom":ve,"margin-left":ve,"margin-right":ve,"margin-top":ve,"margin-block":ve,"margin-block-end":ve,"margin-block-start":ve,"margin-inline":ve,"margin-inline-end":ve,"margin-inline-start":ve,padding:ve,"padding-bottom":ve,"padding-left":ve,"padding-right":ve,"padding-top":ve,"padding-block":ve,"padding-block-end":ve,"padding-block-start":ve,"padding-inline":ve,"padding-inline-end":ve,"padding-inline-start":ve,"mask-position-x":ve,"mask-position-y":ve,"mask-size":ve,height:ve,width:ve,"min-height":ve,"max-height":ve,"min-width":ve,"max-width":ve,bottom:ve,left:ve,top:ve,right:ve,inset:ve,"inset-block":ve,"inset-block-end":ve,"inset-block-start":ve,"inset-inline":ve,"inset-inline-end":ve,"inset-inline-start":ve,"box-shadow":ve,"text-shadow":ve,"column-gap":ve,"column-rule":ve,"column-rule-width":ve,"column-width":ve,"font-size":ve,"font-size-delta":ve,"letter-spacing":ve,"text-decoration-thickness":ve,"text-indent":ve,"text-stroke":ve,"text-stroke-width":ve,"word-spacing":ve,motion:ve,"motion-offset":ve,outline:ve,"outline-offset":ve,"outline-width":ve,perspective:ve,"perspective-origin-x":fa,"perspective-origin-y":fa,"transform-origin":fa,"transform-origin-x":fa,"transform-origin-y":fa,"transform-origin-z":fa,"transition-delay":go,"transition-duration":go,"vertical-align":ve,"flex-basis":ve,"shape-margin":ve,size:ve,gap:ve,grid:ve,"grid-gap":ve,"row-gap":ve,"grid-row-gap":ve,"grid-column-gap":ve,"grid-template-rows":ve,"grid-template-columns":ve,"grid-auto-rows":ve,"grid-auto-columns":ve,"box-shadow-x":ve,"box-shadow-y":ve,"box-shadow-blur":ve,"box-shadow-spread":ve,"font-line-height":ve,"text-shadow-x":ve,"text-shadow-y":ve,"text-shadow-blur":ve};function wC(e){var t=/(-[a-z])/g,r=function(o){return o[1].toUpperCase()},n={};for(var a in e)n[a]=e[a],n[a.replace(t,r)]=e[a];return n}var Q9=wC(Z9);function Pi(e,t,r){if(t==null)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=Pi(e,t[n],r);else if(typeof t=="object")if(e==="fallbacks")for(var a in t)t[a]=Pi(a,t[a],r);else for(var i in t)t[i]=Pi(e+"-"+i,t[i],r);else if(typeof t=="number"&&isNaN(t)===!1){var o=r[e]||Q9[e];return o&&!(t===0&&o===ve)?typeof o=="function"?o(t).toString():""+t+o:t.toString()}return t}function J9(e){e===void 0&&(e={});var t=wC(e);function r(a,i){if(i.type!=="style")return a;for(var o in a)a[o]=Pi(o,a[o],t);return a}function n(a,i){return Pi(i,a,t)}return{onProcessStyle:r,onChangeValue:n}}var eA={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},tA={position:!0,size:!0},yo={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},Ov={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function rA(e,t,r){return e.map(function(n){return SC(n,t,r,!1,!0)})}function _C(e,t,r,n){return r[t]==null?e:e.length===0?[]:Array.isArray(e[0])?_C(e[0],t,r,n):typeof e[0]=="object"?rA(e,t,n):[e]}function SC(e,t,r,n,a){if(!(yo[t]||Ov[t]))return[];var i=[];if(Ov[t]&&(e=nA(e,r,Ov[t],n)),Object.keys(e).length)for(var o in yo[t]){if(e[o]){Array.isArray(e[o])?i.push(tA[o]===null?e[o]:e[o].join(" ")):i.push(e[o]);continue}yo[t][o]!=null&&i.push(yo[t][o])}return!i.length||a?i:[i]}function nA(e,t,r,n){for(var a in r){var i=r[a];if(typeof e[a]!="undefined"&&(n||!t.prop(i))){var o,s=Ni((o={},o[i]=e[a],o),t)[i];n?t.style.fallbacks[i]=s:t.style[i]=s}delete e[a]}return e}function Ni(e,t,r){for(var n in e){var a=e[n];if(Array.isArray(a)){if(!Array.isArray(a[0])){if(n==="fallbacks"){for(var i=0;i<e.fallbacks.length;i++)e.fallbacks[i]=Ni(e.fallbacks[i],t,!0);continue}e[n]=_C(a,n,eA,t),e[n].length||delete e[n]}}else if(typeof a=="object"){if(n==="fallbacks"){e.fallbacks=Ni(e.fallbacks,t,!0);continue}e[n]=SC(a,n,t,r),e[n].length||delete e[n]}else e[n]===""&&delete e[n]}return e}function aA(){function e(t,r){if(!t||r.type!=="style")return t;if(Array.isArray(t)){for(var n=0;n<t.length;n++)t[n]=Ni(t[n],r);return t}return Ni(t,r)}return{onProcessStyle:e}}function Rp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function iA(e){if(Array.isArray(e))return Rp(e)}function oA(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DC(e,t){if(e){if(typeof e=="string")return Rp(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Rp(e,t):void 0}}function sA(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
228
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lA(e){return iA(e)||oA(e)||DC(e)||sA()}var wi="",Ep="",PC="",xC="",uA=Za&&"ontouchstart"in document.documentElement;if(Za){var Cv={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},cA=document.createElement("p"),Tv=cA.style,dA="Transform";for(var Mv in Cv)if(Mv+dA in Tv){wi=Mv,Ep=Cv[Mv];break}wi==="Webkit"&&"msHyphens"in Tv&&(wi="ms",Ep=Cv.ms,xC="edge"),wi==="Webkit"&&"-apple-trailing-word"in Tv&&(PC="apple")}var Ge={js:wi,css:Ep,vendor:PC,browser:xC,isTouch:uA};function fA(e){return e[1]==="-"||Ge.js==="ms"?e:"@"+Ge.css+"keyframes"+e.substr(10)}var hA={noPrefill:["appearance"],supportedProperty:function(t){return t!=="appearance"?!1:Ge.js==="ms"?"-webkit-"+t:Ge.css+t}},vA={noPrefill:["color-adjust"],supportedProperty:function(t){return t!=="color-adjust"?!1:Ge.js==="Webkit"?Ge.css+"print-"+t:t}},pA=/[-\s]+(.)?/g;function gA(e,t){return t?t.toUpperCase():""}function by(e){return e.replace(pA,gA)}function jn(e){return by("-"+e)}var yA={noPrefill:["mask"],supportedProperty:function(t,r){if(!/^mask/.test(t))return!1;if(Ge.js==="Webkit"){var n="mask-image";if(by(n)in r)return t;if(Ge.js+jn(n)in r)return Ge.css+t}return t}},mA={noPrefill:["text-orientation"],supportedProperty:function(t){return t!=="text-orientation"?!1:Ge.vendor==="apple"&&!Ge.isTouch?Ge.css+t:t}},bA={noPrefill:["transform"],supportedProperty:function(t,r,n){return t!=="transform"?!1:n.transform?t:Ge.css+t}},wA={noPrefill:["transition"],supportedProperty:function(t,r,n){return t!=="transition"?!1:n.transition?t:Ge.css+t}},_A={noPrefill:["writing-mode"],supportedProperty:function(t){return t!=="writing-mode"?!1:Ge.js==="Webkit"||Ge.js==="ms"&&Ge.browser!=="edge"?Ge.css+t:t}},SA={noPrefill:["user-select"],supportedProperty:function(t){return t!=="user-select"?!1:Ge.js==="Moz"||Ge.js==="ms"||Ge.vendor==="apple"?Ge.css+t:t}},DA={supportedProperty:function(t,r){if(!/^break-/.test(t))return!1;if(Ge.js==="Webkit"){var n="WebkitColumn"+jn(t);return n in r?Ge.css+"column-"+t:!1}if(Ge.js==="Moz"){var a="page"+jn(t);return a in r?"page-"+t:!1}return!1}},PA={supportedProperty:function(t,r){if(!/^(border|margin|padding)-inline/.test(t))return!1;if(Ge.js==="Moz")return t;var n=t.replace("-inline","");return Ge.js+jn(n)in r?Ge.css+n:!1}},xA={supportedProperty:function(t,r){return by(t)in r?t:!1}},OA={supportedProperty:function(t,r){var n=jn(t);return t[0]==="-"||t[0]==="-"&&t[1]==="-"?t:Ge.js+n in r?Ge.css+t:Ge.js!=="Webkit"&&"Webkit"+n in r?"-webkit-"+t:!1}},CA={supportedProperty:function(t){return t.substring(0,11)!=="scroll-snap"?!1:Ge.js==="ms"?""+Ge.css+t:t}},TA={supportedProperty:function(t){return t!=="overscroll-behavior"?!1:Ge.js==="ms"?Ge.css+"scroll-chaining":t}},MA={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},kA={supportedProperty:function(t,r){var n=MA[t];return n&&Ge.js+jn(n)in r?Ge.css+n:!1}},OC={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},RA=Object.keys(OC),EA=function(t){return Ge.css+t},IA={supportedProperty:function(t,r,n){var a=n.multiple;if(RA.indexOf(t)>-1){var i=OC[t];if(!Array.isArray(i))return Ge.js+jn(i)in r?Ge.css+i:!1;if(!a)return!1;for(var o=0;o<i.length;o++)if(!(Ge.js+jn(i[0])in r))return!1;return i.map(EA)}return!1}},CC=[hA,vA,yA,mA,bA,wA,_A,SA,DA,PA,xA,OA,CA,TA,kA,IA],uS=CC.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),NA=CC.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,lA(t.noPrefill)),e},[]),_i,Yn={};if(Za){_i=document.createElement("p");var kv=window.getComputedStyle(document.documentElement,"");for(var Rv in kv)isNaN(Rv)||(Yn[kv[Rv]]=kv[Rv]);NA.forEach(function(e){return delete Yn[e]})}function Ip(e,t){if(t===void 0&&(t={}),!_i)return e;if(process.env.NODE_ENV!=="benchmark"&&Yn[e]!=null)return Yn[e];(e==="transition"||e==="transform")&&(t[e]=e in _i.style);for(var r=0;r<uS.length&&(Yn[e]=uS[r](e,_i.style,t),!Yn[e]);r++);try{_i.style[e]=""}catch(n){return!1}return Yn[e]}var ha={},AA={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},jA=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,Pn;function LA(e,t,r){if(t==="var")return"var";if(t==="all")return"all";if(r==="all")return", all";var n=t?Ip(t):", "+Ip(r);return n||t||r}Za&&(Pn=document.createElement("p"));function cS(e,t){var r=t;if(!Pn||e==="content")return t;if(typeof r!="string"||!isNaN(parseInt(r,10)))return r;var n=e+r;if(process.env.NODE_ENV!=="benchmark"&&ha[n]!=null)return ha[n];try{Pn.style[e]=r}catch(a){return ha[n]=!1,!1}if(AA[e])r=r.replace(jA,LA);else if(Pn.style[e]===""&&(r=Ge.css+r,r==="-ms-flex"&&(Pn.style[e]="-ms-flexbox"),Pn.style[e]=r,Pn.style[e]===""))return ha[n]=!1,!1;return Pn.style[e]="",ha[n]=r,ha[n]}function FA(){function e(a){if(a.type==="keyframes"){var i=a;i.at=fA(i.at)}}function t(a){for(var i in a){var o=a[i];if(i==="fallbacks"&&Array.isArray(o)){a[i]=o.map(t);continue}var s=!1,l=Ip(i);l&&l!==i&&(s=!0);var u=!1,c=cS(l,Zn(o));c&&c!==o&&(u=!0),(s||u)&&(s&&delete a[i],a[l||i]=c||o)}return a}function r(a,i){return i.type!=="style"?a:t(a)}function n(a,i){return cS(i,Zn(a))||a}return{onProcessRule:e,onProcessStyle:r,onChangeValue:n}}function qA(){var e=function(r,n){return r.length===n.length?r>n?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var a={},i=Object.keys(r).sort(e),o=0;o<i.length;o++)a[i[o]]=r[i[o]];return a}}}var $A=function(t){return t===void 0&&(t={}),{plugins:[C9(),M9(t.observable),I9(),q9(),H9(),V9(),Y9(),X9(),J9(t.defaultUnit),aA(),FA(),qA()]}},WA=Number.MIN_SAFE_INTEGER||-1e9,HA=function(){return WA++},zA=H.createContext({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!Za}),dS=new Map,wy=function(t,r){var n=t.managers;if(n)return n[r]||(n[r]=new iS),n[r];var a=dS.get(r);return a||(a=new iS,dS.set(r,a)),a},fS=function(t){var r=t.sheet,n=t.context,a=t.index,i=t.theme;if(r){var o=wy(n,a);o.manage(i),n.registry&&n.registry.add(r)}},BA=function(t){if(t.sheet){var r=wy(t.context,t.index);r.unmanage(t.theme)}},VA=pC($A()),TC=new WeakMap,MC=function(t){return TC.get(t)},YA=function(t,r){TC.set(t,r)},UA=function(t){var r=t.styles;return typeof r!="function"?r:(process.env.NODE_ENV!=="production"&&Wt(r.length!==0,"[JSS] <"+(t.name||"Hook")+` />'s styles function doesn't rely on the "theme" argument. We recommend declaring styles as an object instead.`),r(t.theme))};function KA(e,t){var r;e.context.id&&e.context.id.minify!=null&&(r=e.context.id.minify);var n=e.context.classNamePrefix||"";e.name&&!r&&(n+=e.name.replace(/\s/g,"-")+"-");var a="";return e.name&&(a=e.name+", "),a+=typeof e.styles=="function"?"Themed":"Unthemed",Qe({},e.sheetOptions,{index:e.index,meta:a,classNamePrefix:n,link:t,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}var GA=function(t){if(!t.context.disableStylesGeneration){var r=wy(t.context,t.index),n=r.get(t.theme);if(n)return n;var a=t.context.jss||VA,i=UA(t),o=gC(i),s=a.createStyleSheet(i,KA(t,o!==null));return YA(s,{dynamicStyles:o,styles:i}),r.add(t.theme,s),s}},XA=function(t,r){for(var n in r)t.deleteRule(r[n])},ZA=function(t,r,n){for(var a in n)r.updateOne(n[a],t)},QA=function(t,r){var n=MC(t);if(n){var a={};for(var i in n.dynamicStyles)for(var o=t.rules.index.length,s=t.addRule(i,n.dynamicStyles[i]),l=o;l<t.rules.index.length;l++){var u=t.rules.index[l];t.updateOne(u,r),a[s===u?i:u.key]=u}return a}},JA=function(t,r){if(!r)return t.classes;var n=MC(t);if(!n)return t.classes;var a={};for(var i in n.styles)a[i]=t.classes[i],i in r&&(a[i]+=" "+t.classes[r[i].key]);return a};function hS(e){return e?H.useEffect:H.useInsertionEffect||H.useLayoutEffect}var Ev={},ej=function(t,r){r===void 0&&(r={});var n=r,a=n.index,i=a===void 0?HA():a,o=n.theming,s=n.name,l=$n(n,["index","theming","name"]),u=o&&o.context||lC,c=function(h){return typeof t=="function"&&(h||H.useContext(u))||Ev},d={};return function(h){var y=H.useRef(!0),g=H.useContext(zA),m=c(h&&h.theme),w=H.useMemo(function(){var M=GA({context:g,styles:t,name:s,theme:m,index:i,sheetOptions:l});return M&&g.isSSR&&fS({index:i,context:g,sheet:M,theme:m}),[M,M?QA(M,h):null]},[g,m]),b=w[0],_=w[1];hS(g.isSSR)(function(){b&&_&&!y.current&&ZA(h,b,_)},[h]),hS(g.isSSR)(function(){return b&&fS({index:i,context:g,sheet:b,theme:m}),function(){b&&(BA({index:i,context:g,sheet:b,theme:m}),_&&XA(b,_))}},[b]);var O=H.useMemo(function(){return b&&_?JA(b,_):d},[b,_]);return H.useDebugValue(O),H.useDebugValue(m===Ev?"No theme":m),H.useEffect(function(){y.current=!1}),O}};const Us=H.forwardRef(({className:e="",secondaryBtnClick:t,primaryBtnClick:r,primaryBtnTxt:n,secondaryBtnTxt:a,primaryBtnDisabled:i=!1,secondaryBtnDisabled:o=!1,thirdColumn:s},l)=>p.jsxs("div",{ref:l,className:Ve(Ce(!s&&t&&a&&"ds-flex ds-flex-row ds-items-center ds-justify-between",!s&&!t&&!a&&"ds-flex ds-flex-col ds-items-stretch ds-justify-stretch","ds-flex ds-flex-row ds-items-center ds-justify-between",e)),children:[s&&p.jsx("div",{children:s}),p.jsxs("div",{className:Ve(Ce(!s&&t&&a&&"ds-flex ds-flex-grow ds-flex-row ds-justify-between",!s&&!t&&!a&&"ds-flex ds-flex-grow ds-flex-col ds-items-stretch ds-justify-stretch",s&&"ds-flex ds-flex-row ds-items-stretch ds-justify-end ds-self-stretch")),children:[t&&a&&p.jsx(lr,{color:"tertiary",size:"large",onClick:t,disabled:o,children:a}),t&&a&&p.jsx("span",{className:"ds-me-4"}),p.jsx(lr,{color:"primary",size:"large",onClick:r,disabled:i,children:n})]})]}));Us.displayName="ActionFooter";const Iv={main:{small:"ds-min-h-[64px]",large:"ds-min-h-[72px]"},imageContainer:{small:"ds-ml-2 ds-mt-2 ds-mb-2 ds-w-14 ds-rounded",large:"ds-w-32"},image:{small:"ds-w-12 ds-h-12 ds-object-contain",large:"ds-w-24 ds-h-24 ds-object-contain"},textContainer:{small:"ds-p-2",large:"ds-py-2 ds-px-6"}},_y=H.forwardRef(({image:e,title:t,desc:r,bgColor:n,size:a,className:i=""},o)=>p.jsxs("div",{className:Ce(Iv.main[a],i,"ds-flex ds-flex-row ds-overflow-hidden ds-rounded ds-border ds-border-Fills-quadrutery ds-shadow"),ref:o,children:[p.jsx("div",{style:{backgroundColor:n},className:Ce(Iv.imageContainer[a],"ds-flex ds-items-center ds-justify-center"),children:p.jsx("img",{className:"ds-h-12 ds-w-14 ds-object-contain",src:e,alt:"banner-image"})}),p.jsxs("div",{className:Ce(Iv.textContainer[a],"ds-flex ds-flex-col ds-justify-center"),children:[t&&p.jsx("span",{className:"ds_MediumCalloutEmphasized ds-mb-1 ds-text-black",children:t}),r&&p.jsx("span",{className:"ds-text-mediumFootnoteRegular ds-text-black",children:r})]})]}));_y.displayName="LongTermBanner";const tj="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23hei1mmknga)'%3e%3cpath%20d='M3.261%2014.356a.664.664%200%200%200%20.92%200l4.629-4.63%204.63%204.63a.657.657%200%200%200%20.918%200%20.655.655%200%200%200%200-.911l-4.63-4.637%204.63-4.63a.648.648%200%200%200%200-.911.65.65%200%200%200-.919%200l-4.63%204.63-4.629-4.63a.644.644%200%200%200-.919%200%20.655.655%200%200%200%200%20.911l4.63%204.63-4.63%204.637a.648.648%200%200%200%200%20.911z'%20fill='%23000'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='hei1mmknga'%3e%3cpath%20fill='%23fff'%20transform='translate(.11%20.111)'%20d='M0%200h17.778v17.778H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",kC=H.forwardRef(({className:e,title:t,onClose:r},n)=>p.jsx("div",{className:Ve(Ce(e,"mobile-header ds-px-space300 ds-py-space200")),ref:n,children:p.jsxs("div",{className:"ds-relative ds-flex ds-w-full ds-flex-row ds-items-center ds-justify-center ds-bg-white",children:[p.jsx("div",{className:"ds-absolute ds-left-0 ds-cursor-pointer",onClick:r,children:p.jsx("img",{src:tj,alt:"close-icon"})}),p.jsx("span",{className:"ds_MediumBodyEmphasized ds-text-Text-primary",children:t})]})}));kC.displayName="OverlayNavMobile";function rj(e,t){const r=H.useRef(e),n=H.useRef(null);H.useEffect(()=>{r.current=e},[e]);const a=(...i)=>{n.current!==null&&clearTimeout(n.current),n.current=window.setTimeout(()=>{r.current(...i)},t)};return H.useEffect(()=>()=>{n.current!==null&&clearTimeout(n.current)},[]),a}const Ks=Number(Gp.theme.screens["ds-tablet"].min.replace("px","")),RC=Number(Gp.theme.screens["ds-desktop"].min.replace("px","")),vS=e=>e<Ks?"mobile":e<RC?"tablet":"desktop",EC=()=>{const[e,t]=H.useState(document.documentElement.clientWidth),[r,n]=H.useState(document.documentElement.clientHeight),[a,i]=H.useState(vS(document.documentElement.clientWidth));return H.useEffect(()=>{const o=()=>{t(document.documentElement.clientWidth),n(document.documentElement.clientHeight),i(vS(document.documentElement.clientWidth))};return window.addEventListener("resize",o),o(),()=>{window.removeEventListener("resize",o)}},[]),{documentWidth:e,documentHeight:r,screenSize:a}};function nj(e,t){const r=e.year(),n=e.month(),a=t.year(),i=t.month(),o=r===a;return o&&n===i?e.date()<t.date():o?n<i:r<a}function aj(e,t){return e.date()===t.date()&&e.month()===t.month()&&e.year()===t.year()}function ij(e,t){return!nj(e,t)&&!aj(e,t)}const IC=H.forwardRef(({onDatesSelected:e,onDatesChange:t,initialStartDate:r=null,initialEndDate:n=null,focusedInput:a="startDate",onFocusChange:i,lTBannerImage:o,lTBannerTitle:s,lTBannerDesc:l,lTBannerBgColor:u="transparent",onMobileCloseClick:c,onOutsideClick:d,onPrevMonthClick:f,onNextMonthClick:h,renderCalendarDay:y,renderDayContents:g,renderCalendarInfo:m,_daySize:w=32,_mobileDaySize:b=48,thirdColumn:_,mobileBreakPoint:O=768,isDayBlocked:M,isAdjustHeightForViewport:E},j)=>{const A=H.useRef(null),[R,P]=H.useState({}),[S,D]=H.useState(r),[x,N]=H.useState(n),[k,z]=H.useState(a),[$,I]=H.useState("horizontal"),{documentWidth:F,documentHeight:C}=EC(),[v,q]=H.useState(2),[V,Y]=H.useState(!1),[Q,K]=H.useState(w),[J,re]=H.useState(F<O?"small":"large"),U=oj({mobileBreakPoint:O}),T=({startDate:ce,endDate:ae})=>{e&&e({startDate:ce,endDate:ae}),D(ce),N(ae)},B=H.useCallback(ce=>{const ae=ce||"startDate";z(ae),i&&i(ae)},[i]),W=H.useCallback(()=>{D(null),N(null),t&&t({startDate:null,endDate:null}),e&&e({startDate:null,endDate:null}),z("startDate")},[t,e]),G=H.useCallback(()=>{t&&t({startDate:S,endDate:x})},[x,t,S]);H.useEffect(()=>{F<O?(I("verticalScrollable"),q(13),Y(!0),re("small"),K(b)):(I("horizontal"),q(2),Y(!1),re("large"),K(w))},[w,b,F,O]);const[ie,Z]=H.useState(0),L=()=>{te(),E&&oe()},te=H.useCallback(()=>{if(F<O){const ce=document.querySelector(".CalendarDay"),ae=document.querySelectorAll(".DayPicker_weekHeader_li");if(ce){const fe=ce.offsetWidth;Z(fe),ae&&ae.forEach(xe=>{xe.style.width=`${Math.floor(fe)}px`})}const ue=document.querySelector(".DayPicker__verticalScrollable"),ge=document.querySelector(".info-panel"),ke=document.querySelector(".mobile-header");if(ue){const fe=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0);ue.style.height=fe-ge.offsetHeight-ke.offsetHeight+"px"}}else se()},[F,O]),oe=H.useCallback(()=>{const ce=A==null?void 0:A.current;if(F<O||!ce)P({});else{const ae=ce.getBoundingClientRect(),ue=ce.scrollHeight,ge=C-ae.top-12;ge<ue?P({height:Math.max(ge,250)+"px",overflowY:"scroll",paddingLeft:"30px",paddingRight:"30px"}):P({})}},[F,C,O]),le=rj(L,200);H.useEffect(()=>(setTimeout(()=>{le()},100),window.addEventListener("resize",le),()=>{window.removeEventListener("resize",le)}),[le,te]);const se=()=>{const ce=document.querySelector(".DayPicker__horizontal"),ae=document.querySelector(".DayPicker_transitionContainer__horizontal"),ue=document.querySelectorAll(".CalendarMonthGrid_month__horizontal");if(ue&&ce&&ae){let ge=ue[0].offsetHeight;ue.forEach(ke=>{ge=Math.max(ke.offsetHeight,ge)}),ce.style.height=`${ge}px`,ae.style.height=`${ge}px`}},de=H.useCallback(ce=>{h&&h(ce),se()},[h]),me=H.useCallback(ce=>{f&&f(ce),se()},[f]),we=H.useCallback(ce=>{if(d){const ae=document.getElementById("silkhaus_date_picker");ae!=null&&ae.contains(ce.target)||d(ce)}},[d]);return p.jsx("div",{ref:j,className:Ve(Ce(F<O&&"ds-w-full ds-p-0",F>=O&&"ds-inline-block ds-w-auto ds-p-6")),id:"silkhaus_date_picker",children:p.jsxs("div",{className:Ce(U.dateWrapper,"date-wrapper ds-bg-white"),ref:A,style:R,children:[p.jsxs("div",{className:"mobile-header",children:[p.jsx(kC,{title:"Select Date",onClose:c}),p.jsx("div",{className:"ds-px-space300 ds-py-space050",children:p.jsxs("div",{className:"ds-flex ds-flex-row ds-flex-nowrap ds-items-center ds-justify-between",children:[p.jsxs("div",{className:"btn-checkin-checkout ds-block",children:[p.jsx("span",{className:"ds_SmallCaption1Emphasized ds-py-space100 ds-text-Text-primary",children:"Check-in"}),p.jsx("div",{className:"ds_xSmallBodyEmphasized ds-rounded ds-border ds-border-Fills-quadrutery ds-px-[14px] ds-py-[14px] ds-text-center ds-text-Text-secondary",children:S?p.jsx("span",{className:"ds-text-Text-primary",children:Oe(S).format("DD/MM/YY")}):"Check in"})]}),p.jsxs("div",{className:"btn-checkin-checkout ds-block",children:[p.jsx("span",{className:"ds_SmallCaption1Emphasized ds-py-space100 ds-text-Text-primary",children:"Check out"}),p.jsx("div",{className:"ds_xSmallBodyEmphasized ds-rounded ds-border ds-border-Fills-quadrutery ds-px-[14px] ds-py-[14px] ds-text-center ds-text-Text-secondary",children:x?p.jsx("span",{className:"ds-text-Text-primary",children:Oe(x).format("DD/MM/YY")}):"Check out"})]})]})})]}),p.jsx(B8.DayPickerRangeController,{orientation:$,startDate:S,endDate:x,onDatesChange:T,focusedInput:k,onFocusChange:B,minDate:Oe(),maxDate:Oe().add("M",12),isOutsideRange:ce=>!ij(ce,Oe().subtract(1,"days")),numberOfMonths:v,noBorder:!0,hideKeyboardShortcutsPanel:!0,initialVisibleMonth:()=>Oe(),daySize:Q,horizontalMonthPadding:8,verticalBorderSpacing:8,noNavButtons:V,enableOutsideDays:!1,onPrevMonthClick:me,onNextMonthClick:de,onOutsideClick:we,renderCalendarDay:y,renderDayContents:g,renderCalendarInfo:m,isDayBlocked:M}),p.jsxs("div",{className:Ve(Ce(F<O&&"ds-pt-4",F>=O&&"ds-pt-0","info-panel ds-px-6 ds-pb-4")),children:[o&&s&&l&&p.jsx(_y,{className:"ds-mb-4",image:o,title:s,desc:l,bgColor:u,size:J}),p.jsx(Us,{className:Ve(Ce(F>=O&&"ds-border-t ds-border-Fills-quintiary ds-pt-4")),primaryBtnTxt:"Apply",secondaryBtnTxt:"Clear",primaryBtnClick:G,secondaryBtnClick:W,thirdColumn:_})]})]})})}),oj=ej({dateWrapper:e=>({height:"auto","& .mobile-header":{display:"none"},"& .info-panel":{boxShadow:"none"},[`@media (max-width: ${e.mobileBreakPoint-1}px)`]:{display:"flex",flexDirection:"column",overflow:"hidden",height:"100vh","& .DayPicker_weekHeader":{backgroundColor:"#f0f2f5",boxShadow:"0 6px 12px 0 rgba(0, 0, 0, 0.12)"},"& .DayPicker_weekHeader_li ":{paddingRight:"13px"},"& .CalendarMonth_caption__verticalScrollable":{paddingTop:"25px"},"& .info-panel":{boxShadow:"0 -6px 12px 0 rgba(0, 0, 0, 0.12)",position:"relative",zIndex:10},"& .mobile-header":{display:"block"}}})});IC.displayName="SilkhausDatePicker";const Sy=H.forwardRef(e=>{const{label:t,isChecked:r,onSelectionChange:n,onClick:a,disabled:i}=e;return p.jsxs("label",{className:"custom-checkbox "+(i?"ds-cursor-default":"ds-cursor-pointer"),children:[p.jsx("input",{id:"checkBox",name:"checkBox",type:"checkbox",className:"ds-me-4 ds-mt-1",checked:r,value:t,onChange:n,disabled:i}),p.jsx("span",{className:"checkmark ds-mt-1",onClick:a})]})});Sy.displayName="Checkbox";const NC="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23hei1mmknga)'%3e%3cpath%20d='M3.261%2014.356a.664.664%200%200%200%20.92%200l4.629-4.63%204.63%204.63a.657.657%200%200%200%20.918%200%20.655.655%200%200%200%200-.911l-4.63-4.637%204.63-4.63a.648.648%200%200%200%200-.911.65.65%200%200%200-.919%200l-4.63%204.63-4.629-4.63a.644.644%200%200%200-.919%200%20.655.655%200%200%200%200%20.911l4.63%204.63-4.63%204.637a.648.648%200%200%200%200%20.911z'%20fill='%23000'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='hei1mmknga'%3e%3cpath%20fill='%23fff'%20transform='translate(.11%20.111)'%20d='M0%200h17.778v17.778H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",AC="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14%203.45752C14%202.97386%2013.5701%202.67321%2012.9139%202.67321L3.07856%202.66667C2.42238%202.66667%202%202.96732%202%203.45098C2%203.71242%202.13576%203.92811%202.28661%204.20262L6.99309%2012.6013C7.30987%2013.1568%207.59648%2013.3333%207.99623%2013.3333C8.39598%2013.3333%208.69014%2013.1568%209.00692%2012.6013L13.7058%204.20262C13.8642%203.93464%2014%203.71896%2014%203.45752Z'%20fill='black'%20fill-opacity='0.85'/%3e%3c/svg%3e",jC=H.forwardRef((e,t)=>{var j;const E=e,{label:r,value:n=[],options:a,onSelectionChange:i=()=>{},placeholder:o,selected:s,setCheckBoxValue:l,dropdownIcon:u,error:c,noDataError:d,icon:f,disabled:h}=E,y=Ft(E,["label","value","options","onSelectionChange","placeholder","selected","setCheckBoxValue","dropdownIcon","error","noDataError","icon","disabled"]),[g,m]=H.useState([]),[w,b]=H.useState(!1);H.useEffect(()=>{n&&n.length?m(n):m([])},[n]);const _=(A,R)=>{let P=[...g];const S=A==="All"?1:-1,D=P.findIndex(N=>N.label==="All"),x=P.findIndex(N=>R?N.id===R:N.label===A);x!==-1?P.splice(x,1):P.push({label:A,id:R}),S!==-1&&D===-1?P=[...a]:S!==-1&&D!==-1?P=[]:P.length===(a==null?void 0:a.length)-1&&D===-1?P=[...a]:P.length<(a==null?void 0:a.length)&&(P=P.filter(N=>N.label!=="All")),m(P)},O=()=>{m([]),i([])},M=()=>{i(g),b(!w)};return p.jsxs("div",ze(pe({className:Rt("ds-mb-6",h&&"ds-cursor-not-allowed ds-opacity-30"),ref:t},y),{children:[p.jsxs("div",{className:"design-dropdown",children:[p.jsxs("button",{className:Ce("design-dropdown-toggle",{"design-dropdown-toggle-active":s}),onClick:()=>{!c&&!d&&b(!w)},disabled:h,children:[p.jsxs("div",{className:Ce((f||u)&&"ds-relative ds-ps-8"),children:[(f||u)&&p.jsxs("div",{className:Ce(s&&"ds-text-black",!s&&"ds-text-Fills-secondary","ds-absolute ds-left-0 ds-top-1/2 ds-max-w-6 -ds-translate-y-1/2"),children:[f&&!u?f:"",u&&!f?p.jsx("span",{children:p.jsx("img",{src:u,alt:"dropdownIcon"})}):""]}),p.jsx("span",{className:"ds_xSmallBodyRegular",children:l?Array.isArray(n)&&(n==null?void 0:n.length)>0?n.findIndex(A=>A.label==="All")!==-1?"All":(n==null?void 0:n.length)===1?(j=n[0])==null?void 0:j.label:`Selected (${n==null?void 0:n.length})`:p.jsx("span",{className:"ds-text-Text-secondary",children:o}):p.jsx("span",{className:"ds-text-Text-secondary",children:o})})]}),p.jsx("span",{children:p.jsx("img",{src:AC,alt:"downArrow"})})]}),w&&p.jsxs("div",{className:Ce("design-dropdown-menu","ds-flex ds-flex-col"),children:[p.jsxs("div",{className:"design-dropdown-header ds-z-[1]",children:[p.jsx("button",{onClick:()=>b(!w),children:p.jsx("img",{src:NC,alt:"close"})}),p.jsx("div",{className:"ds-flex ds-w-full ds-justify-center",children:p.jsx("span",{className:"ds_MediumBodyEmphasized",children:r})})]}),p.jsx("div",{className:"design-options-section ds-z-0 ds-flex-1 ds-overflow-auto ds-px-6",children:(a==null?void 0:a.length)>0?a.map((A,R)=>p.jsx("div",{className:"design-dropdown-item",onClick:()=>{_(A.label,A.id)},children:p.jsxs("div",{className:"ds-flex ds-justify-between",children:[p.jsx("span",{className:"ds_MediumBodyRegular",children:A.label}),p.jsx(Sy,{label:A.label,isChecked:g.findIndex(P=>P.label===A.label)!==-1,onSelectionChange:()=>_(A.label,A.id),onClick:P=>P.stopPropagation()})]})},R)):p.jsx("div",{className:"design-no-data-error ds_xSmallSubheadRegular",children:d})}),p.jsx("div",{className:"design-action-footer ds-z-[2] ds-w-full ds-px-6 ds-pb-4 ds-pt-4",children:p.jsx(Us,{primaryBtnTxt:"Apply",secondaryBtnTxt:"Clear",primaryBtnClick:M,secondaryBtnClick:O})})]})]}),p.jsx("div",{className:"design-field-error ds_xSmallSubheadRegular",children:a!=null&&a.length?c:d})]}))});jC.displayName="MobileMultiSelectFilterDropDown";const LC=H.forwardRef((e,t)=>{const{show:r,handleClose:n,closeIcon:a,backgroundImage:i,filterHeader:o,filterDescription:s,isSecondary:l,animation:u="slideUp",marginTop:c,maxWidth:d,children:f}=e,h=!l&&i?{backgroundImage:`url(${i})`}:{backgroundColor:"white"};return p.jsx($a,{animation:u,ref:t,show:r,maxWidth:d,marginTop:c,children:p.jsxs("div",{style:h,className:"ds-h-dvh",children:[p.jsx("div",{children:p.jsxs("div",{className:Ce(!l&&"ds-p-6",l&&"ds-relative ds-flex ds-items-center ds-justify-center ds-px-8 ds-py-4 ds-shadow-[0px_2px_8px_0px_rgba(0,0,0,0.08)]"),children:[p.jsx("button",{onClick:n,className:Ce(l&&"animated-modal-close-icon ds-absolute ds-left-6 ds-top-1/2 -ds-translate-y-1/2"),children:p.jsx("img",{src:a,alt:"next"})}),l&&p.jsx("h1",{className:"ds_MediumBodyEmphasized ds-mb-0 ds-text-black",children:o})]})}),p.jsxs("div",{children:[!l&&p.jsxs("div",{className:"ds-p-6",children:[p.jsx("h1",{className:"ds_xSmallHeroTitleRegular ds-mb-2 ds-mt-12 ds-text-Text-textPrimaryDark",children:o}),p.jsx("p",{className:"ds_xSmallBodyEmphasized ds-pt-2 ds-text-Text-textPrimaryDark",children:s})]}),p.jsx("div",{className:`ds-bg-white ${l?"filter-content-secondary":"filter-content ds-rounded-t-lg"}`,children:f})]})]})})});LC.displayName="MobileFilterMenu";const FC=H.forwardRef((e,t)=>{const m=e,{label:r,value:n,options:a,onSelectionChange:i=()=>{},placeholder:o,selected:s,dropdownIcon:l,error:u,noDataError:c,icon:d,disabled:f}=m,h=Ft(m,["label","value","options","onSelectionChange","placeholder","selected","dropdownIcon","error","noDataError","icon","disabled"]),[y,g]=H.useState(!1);return p.jsxs("div",ze(pe({className:Rt("ds-mb-6",f&&"ds-cursor-not-allowed ds-opacity-30"),ref:t},h),{children:[p.jsxs("div",{className:"design-dropdown",children:[p.jsxs("button",{className:Ce("design-dropdown-toggle",{"design-dropdown-toggle-active":s}),onClick:()=>g(!y),disabled:f,children:[p.jsxs("div",{className:Ce((d||l)&&"ds-relative ds-ps-8"),children:[(d||l)&&p.jsxs("div",{className:Ce(s&&"ds-text-black",!s&&"ds-text-Fills-secondary","ds-absolute ds-left-0 ds-top-1/2 ds-max-w-6 -ds-translate-y-1/2"),children:[d&&!l?d:"",l&&!d?p.jsx("span",{children:p.jsx("img",{src:l,alt:"dropdownIcon"})}):""]}),p.jsx("span",{className:"ds_xSmallBodyRegular ds-pl-2",children:n||p.jsx("span",{className:"ds-text-Text-secondary",children:o})})]}),p.jsx("span",{children:p.jsx("img",{src:AC,alt:"downArrow"})})]}),y&&p.jsxs("div",{className:Ce("design-dropdown-menu","ds-flex ds-flex-col"),children:[p.jsxs("div",{className:"design-dropdown-header ds-z-[1]",children:[p.jsx("button",{onClick:()=>g(!y),children:p.jsx("img",{src:NC,alt:"close"})}),p.jsx("div",{className:"ds-flex ds-w-full ds-justify-center",children:p.jsx("span",{className:"ds_MediumBodyEmphasized",children:r})})]}),p.jsx("div",{className:"ds-z-0 ds-flex-1 ds-overflow-auto ds-p-6",children:(a==null?void 0:a.length)>0?a.map((w,b)=>p.jsxs("div",{className:"design-dropdown-select-item",onClick:()=>{i(w),g(!1)},children:[p.jsx("img",{className:"design-option-image",src:w==null?void 0:w.imgUrl,alt:w==null?void 0:w.label}),p.jsx("span",{className:"ds_MediumBodyEmphasized ds-pl-6",children:(w==null?void 0:w.label)||""})]},b)):p.jsx("div",{className:"design-no-data-error ds_xSmallSubheadRegular",children:c})})]})]}),p.jsx("div",{className:"design-field-error ds_xSmallSubheadRegular",children:a!=null&&a.length?u:c})]}))});FC.displayName="MobileSelectCardDropDown";const sj={light:"ds-bg-[rgba(255,255,255,0.64)] ds-text-Text-primary",dark:"ds-bg-[rgba(0,0,0,0.24)] ds-text-Fills-white",amenity:"ds-bg-Fills-quintiary ds-text-Text-secondary"},Ko=H.forwardRef(({icon:e,label:t,variant:r,className:n},a)=>p.jsxs("div",{ref:a,className:Ve(Ce(n,"ds-inline-flex ds-flex-row ds-justify-center ds-items-center ds-rounded ds-px-2 ds-py-1 ds-backdrop-blur",sj[r])),children:[e&&p.jsx("span",{className:"ds-mr-1 ds-inline-flex",children:e}),p.jsx("span",{className:"ds_MediumCaption2Emphasized ds-inline-flex",children:t})]}));Ko.displayName="Badge";var qC={},$C={},Gs={},WC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};e.default=t})(WC);var lj="Expected a function",pS=NaN,uj="[object Symbol]",cj=/^\s+|\s+$/g,dj=/^[-+]0x[0-9a-f]+$/i,fj=/^0b[01]+$/i,hj=/^0o[0-7]+$/i,vj=parseInt,pj=typeof Kt=="object"&&Kt&&Kt.Object===Object&&Kt,gj=typeof self=="object"&&self&&self.Object===Object&&self,yj=pj||gj||Function("return this")(),mj=Object.prototype,bj=mj.toString,wj=Math.max,_j=Math.min,Nv=function(){return yj.Date.now()};function Sj(e,t,r){var n,a,i,o,s,l,u=0,c=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(lj);t=gS(t)||0,Np(r)&&(c=!!r.leading,d="maxWait"in r,i=d?wj(gS(r.maxWait)||0,t):i,f="trailing"in r?!!r.trailing:f);function h(E){var j=n,A=a;return n=a=void 0,u=E,o=e.apply(A,j),o}function y(E){return u=E,s=setTimeout(w,t),c?h(E):o}function g(E){var j=E-l,A=E-u,R=t-j;return d?_j(R,i-A):R}function m(E){var j=E-l,A=E-u;return l===void 0||j>=t||j<0||d&&A>=i}function w(){var E=Nv();if(m(E))return b(E);s=setTimeout(w,g(E))}function b(E){return s=void 0,f&&n?h(E):(n=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,n=l=a=s=void 0}function O(){return s===void 0?o:b(Nv())}function M(){var E=Nv(),j=m(E);if(n=arguments,a=this,l=E,j){if(s===void 0)return y(l);if(d)return s=setTimeout(w,t),h(l)}return s===void 0&&(s=setTimeout(w,t)),o}return M.cancel=_,M.flush=O,M}function Np(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Dj(e){return!!e&&typeof e=="object"}function Pj(e){return typeof e=="symbol"||Dj(e)&&bj.call(e)==uj}function gS(e){if(typeof e=="number")return e;if(Pj(e))return pS;if(Np(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Np(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(cj,"");var r=fj.test(e);return r||hj.test(e)?vj(e.slice(2),r?2:8):dj.test(e)?pS:+e}var xj=Sj,HC={exports:{}};/*!
|
|
228
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lA(e){return iA(e)||oA(e)||DC(e)||sA()}var wi="",Ep="",PC="",xC="",uA=Za&&"ontouchstart"in document.documentElement;if(Za){var Cv={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},cA=document.createElement("p"),Tv=cA.style,dA="Transform";for(var Mv in Cv)if(Mv+dA in Tv){wi=Mv,Ep=Cv[Mv];break}wi==="Webkit"&&"msHyphens"in Tv&&(wi="ms",Ep=Cv.ms,xC="edge"),wi==="Webkit"&&"-apple-trailing-word"in Tv&&(PC="apple")}var Ge={js:wi,css:Ep,vendor:PC,browser:xC,isTouch:uA};function fA(e){return e[1]==="-"||Ge.js==="ms"?e:"@"+Ge.css+"keyframes"+e.substr(10)}var hA={noPrefill:["appearance"],supportedProperty:function(t){return t!=="appearance"?!1:Ge.js==="ms"?"-webkit-"+t:Ge.css+t}},vA={noPrefill:["color-adjust"],supportedProperty:function(t){return t!=="color-adjust"?!1:Ge.js==="Webkit"?Ge.css+"print-"+t:t}},pA=/[-\s]+(.)?/g;function gA(e,t){return t?t.toUpperCase():""}function by(e){return e.replace(pA,gA)}function jn(e){return by("-"+e)}var yA={noPrefill:["mask"],supportedProperty:function(t,r){if(!/^mask/.test(t))return!1;if(Ge.js==="Webkit"){var n="mask-image";if(by(n)in r)return t;if(Ge.js+jn(n)in r)return Ge.css+t}return t}},mA={noPrefill:["text-orientation"],supportedProperty:function(t){return t!=="text-orientation"?!1:Ge.vendor==="apple"&&!Ge.isTouch?Ge.css+t:t}},bA={noPrefill:["transform"],supportedProperty:function(t,r,n){return t!=="transform"?!1:n.transform?t:Ge.css+t}},wA={noPrefill:["transition"],supportedProperty:function(t,r,n){return t!=="transition"?!1:n.transition?t:Ge.css+t}},_A={noPrefill:["writing-mode"],supportedProperty:function(t){return t!=="writing-mode"?!1:Ge.js==="Webkit"||Ge.js==="ms"&&Ge.browser!=="edge"?Ge.css+t:t}},SA={noPrefill:["user-select"],supportedProperty:function(t){return t!=="user-select"?!1:Ge.js==="Moz"||Ge.js==="ms"||Ge.vendor==="apple"?Ge.css+t:t}},DA={supportedProperty:function(t,r){if(!/^break-/.test(t))return!1;if(Ge.js==="Webkit"){var n="WebkitColumn"+jn(t);return n in r?Ge.css+"column-"+t:!1}if(Ge.js==="Moz"){var a="page"+jn(t);return a in r?"page-"+t:!1}return!1}},PA={supportedProperty:function(t,r){if(!/^(border|margin|padding)-inline/.test(t))return!1;if(Ge.js==="Moz")return t;var n=t.replace("-inline","");return Ge.js+jn(n)in r?Ge.css+n:!1}},xA={supportedProperty:function(t,r){return by(t)in r?t:!1}},OA={supportedProperty:function(t,r){var n=jn(t);return t[0]==="-"||t[0]==="-"&&t[1]==="-"?t:Ge.js+n in r?Ge.css+t:Ge.js!=="Webkit"&&"Webkit"+n in r?"-webkit-"+t:!1}},CA={supportedProperty:function(t){return t.substring(0,11)!=="scroll-snap"?!1:Ge.js==="ms"?""+Ge.css+t:t}},TA={supportedProperty:function(t){return t!=="overscroll-behavior"?!1:Ge.js==="ms"?Ge.css+"scroll-chaining":t}},MA={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},kA={supportedProperty:function(t,r){var n=MA[t];return n&&Ge.js+jn(n)in r?Ge.css+n:!1}},OC={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},RA=Object.keys(OC),EA=function(t){return Ge.css+t},IA={supportedProperty:function(t,r,n){var a=n.multiple;if(RA.indexOf(t)>-1){var i=OC[t];if(!Array.isArray(i))return Ge.js+jn(i)in r?Ge.css+i:!1;if(!a)return!1;for(var o=0;o<i.length;o++)if(!(Ge.js+jn(i[0])in r))return!1;return i.map(EA)}return!1}},CC=[hA,vA,yA,mA,bA,wA,_A,SA,DA,PA,xA,OA,CA,TA,kA,IA],uS=CC.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),NA=CC.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,lA(t.noPrefill)),e},[]),_i,Yn={};if(Za){_i=document.createElement("p");var kv=window.getComputedStyle(document.documentElement,"");for(var Rv in kv)isNaN(Rv)||(Yn[kv[Rv]]=kv[Rv]);NA.forEach(function(e){return delete Yn[e]})}function Ip(e,t){if(t===void 0&&(t={}),!_i)return e;if(process.env.NODE_ENV!=="benchmark"&&Yn[e]!=null)return Yn[e];(e==="transition"||e==="transform")&&(t[e]=e in _i.style);for(var r=0;r<uS.length&&(Yn[e]=uS[r](e,_i.style,t),!Yn[e]);r++);try{_i.style[e]=""}catch(n){return!1}return Yn[e]}var ha={},AA={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},jA=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,Pn;function LA(e,t,r){if(t==="var")return"var";if(t==="all")return"all";if(r==="all")return", all";var n=t?Ip(t):", "+Ip(r);return n||t||r}Za&&(Pn=document.createElement("p"));function cS(e,t){var r=t;if(!Pn||e==="content")return t;if(typeof r!="string"||!isNaN(parseInt(r,10)))return r;var n=e+r;if(process.env.NODE_ENV!=="benchmark"&&ha[n]!=null)return ha[n];try{Pn.style[e]=r}catch(a){return ha[n]=!1,!1}if(AA[e])r=r.replace(jA,LA);else if(Pn.style[e]===""&&(r=Ge.css+r,r==="-ms-flex"&&(Pn.style[e]="-ms-flexbox"),Pn.style[e]=r,Pn.style[e]===""))return ha[n]=!1,!1;return Pn.style[e]="",ha[n]=r,ha[n]}function FA(){function e(a){if(a.type==="keyframes"){var i=a;i.at=fA(i.at)}}function t(a){for(var i in a){var o=a[i];if(i==="fallbacks"&&Array.isArray(o)){a[i]=o.map(t);continue}var s=!1,l=Ip(i);l&&l!==i&&(s=!0);var u=!1,c=cS(l,Zn(o));c&&c!==o&&(u=!0),(s||u)&&(s&&delete a[i],a[l||i]=c||o)}return a}function r(a,i){return i.type!=="style"?a:t(a)}function n(a,i){return cS(i,Zn(a))||a}return{onProcessRule:e,onProcessStyle:r,onChangeValue:n}}function qA(){var e=function(r,n){return r.length===n.length?r>n?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var a={},i=Object.keys(r).sort(e),o=0;o<i.length;o++)a[i[o]]=r[i[o]];return a}}}var $A=function(t){return t===void 0&&(t={}),{plugins:[C9(),M9(t.observable),I9(),q9(),H9(),V9(),Y9(),X9(),J9(t.defaultUnit),aA(),FA(),qA()]}},WA=Number.MIN_SAFE_INTEGER||-1e9,HA=function(){return WA++},zA=H.createContext({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!Za}),dS=new Map,wy=function(t,r){var n=t.managers;if(n)return n[r]||(n[r]=new iS),n[r];var a=dS.get(r);return a||(a=new iS,dS.set(r,a)),a},fS=function(t){var r=t.sheet,n=t.context,a=t.index,i=t.theme;if(r){var o=wy(n,a);o.manage(i),n.registry&&n.registry.add(r)}},BA=function(t){if(t.sheet){var r=wy(t.context,t.index);r.unmanage(t.theme)}},VA=pC($A()),TC=new WeakMap,MC=function(t){return TC.get(t)},YA=function(t,r){TC.set(t,r)},UA=function(t){var r=t.styles;return typeof r!="function"?r:(process.env.NODE_ENV!=="production"&&Wt(r.length!==0,"[JSS] <"+(t.name||"Hook")+` />'s styles function doesn't rely on the "theme" argument. We recommend declaring styles as an object instead.`),r(t.theme))};function KA(e,t){var r;e.context.id&&e.context.id.minify!=null&&(r=e.context.id.minify);var n=e.context.classNamePrefix||"";e.name&&!r&&(n+=e.name.replace(/\s/g,"-")+"-");var a="";return e.name&&(a=e.name+", "),a+=typeof e.styles=="function"?"Themed":"Unthemed",Qe({},e.sheetOptions,{index:e.index,meta:a,classNamePrefix:n,link:t,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}var GA=function(t){if(!t.context.disableStylesGeneration){var r=wy(t.context,t.index),n=r.get(t.theme);if(n)return n;var a=t.context.jss||VA,i=UA(t),o=gC(i),s=a.createStyleSheet(i,KA(t,o!==null));return YA(s,{dynamicStyles:o,styles:i}),r.add(t.theme,s),s}},XA=function(t,r){for(var n in r)t.deleteRule(r[n])},ZA=function(t,r,n){for(var a in n)r.updateOne(n[a],t)},QA=function(t,r){var n=MC(t);if(n){var a={};for(var i in n.dynamicStyles)for(var o=t.rules.index.length,s=t.addRule(i,n.dynamicStyles[i]),l=o;l<t.rules.index.length;l++){var u=t.rules.index[l];t.updateOne(u,r),a[s===u?i:u.key]=u}return a}},JA=function(t,r){if(!r)return t.classes;var n=MC(t);if(!n)return t.classes;var a={};for(var i in n.styles)a[i]=t.classes[i],i in r&&(a[i]+=" "+t.classes[r[i].key]);return a};function hS(e){return e?H.useEffect:H.useInsertionEffect||H.useLayoutEffect}var Ev={},ej=function(t,r){r===void 0&&(r={});var n=r,a=n.index,i=a===void 0?HA():a,o=n.theming,s=n.name,l=$n(n,["index","theming","name"]),u=o&&o.context||lC,c=function(h){return typeof t=="function"&&(h||H.useContext(u))||Ev},d={};return function(h){var y=H.useRef(!0),g=H.useContext(zA),m=c(h&&h.theme),w=H.useMemo(function(){var M=GA({context:g,styles:t,name:s,theme:m,index:i,sheetOptions:l});return M&&g.isSSR&&fS({index:i,context:g,sheet:M,theme:m}),[M,M?QA(M,h):null]},[g,m]),b=w[0],_=w[1];hS(g.isSSR)(function(){b&&_&&!y.current&&ZA(h,b,_)},[h]),hS(g.isSSR)(function(){return b&&fS({index:i,context:g,sheet:b,theme:m}),function(){b&&(BA({index:i,context:g,sheet:b,theme:m}),_&&XA(b,_))}},[b]);var O=H.useMemo(function(){return b&&_?JA(b,_):d},[b,_]);return H.useDebugValue(O),H.useDebugValue(m===Ev?"No theme":m),H.useEffect(function(){y.current=!1}),O}};const Us=H.forwardRef(({className:e="",secondaryBtnClick:t,primaryBtnClick:r,primaryBtnTxt:n,secondaryBtnTxt:a,primaryBtnDisabled:i=!1,secondaryBtnDisabled:o=!1,thirdColumn:s},l)=>p.jsxs("div",{ref:l,className:Ve(Ce(!s&&t&&a&&"ds-flex ds-flex-row ds-items-center ds-justify-between",!s&&!t&&!a&&"ds-flex ds-flex-col ds-items-stretch ds-justify-stretch","ds-flex ds-flex-row ds-items-center ds-justify-between",e)),children:[s&&p.jsx("div",{children:s}),p.jsxs("div",{className:Ve(Ce(!s&&t&&a&&"ds-flex ds-flex-grow ds-flex-row ds-justify-between",!s&&!t&&!a&&"ds-flex ds-flex-grow ds-flex-col ds-items-stretch ds-justify-stretch",s&&"ds-flex ds-flex-row ds-items-stretch ds-justify-end ds-self-stretch")),children:[t&&a&&p.jsx(lr,{color:"tertiary",size:"large",onClick:t,disabled:o,children:a}),t&&a&&p.jsx("span",{className:"ds-me-4"}),p.jsx(lr,{color:"primary",size:"large",onClick:r,disabled:i,children:n})]})]}));Us.displayName="ActionFooter";const Iv={main:{small:"ds-min-h-[64px]",large:"ds-min-h-[72px]"},imageContainer:{small:"ds-ml-2 ds-mt-2 ds-mb-2 ds-w-14 ds-rounded",large:"ds-w-32"},image:{small:"ds-w-12 ds-h-12 ds-object-contain",large:"ds-w-24 ds-h-24 ds-object-contain"},textContainer:{small:"ds-p-2",large:"ds-py-2 ds-px-6"}},_y=H.forwardRef(({image:e,title:t,desc:r,bgColor:n,size:a,className:i=""},o)=>p.jsxs("div",{className:Ce(Iv.main[a],i,"ds-flex ds-flex-row ds-overflow-hidden ds-rounded ds-border ds-border-Fills-quadrutery ds-shadow"),ref:o,children:[p.jsx("div",{style:{backgroundColor:n},className:Ce(Iv.imageContainer[a],"ds-flex ds-items-center ds-justify-center"),children:p.jsx("img",{className:"ds-h-12 ds-w-14 ds-object-contain",src:e,alt:"banner-image"})}),p.jsxs("div",{className:Ce(Iv.textContainer[a],"ds-flex ds-flex-col ds-justify-center"),children:[t&&p.jsx("span",{className:"ds_MediumCalloutEmphasized ds-mb-1 ds-text-black",children:t}),r&&p.jsx("span",{className:"ds-text-mediumFootnoteRegular ds-text-black",children:r})]})]}));_y.displayName="LongTermBanner";const tj="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23hei1mmknga)'%3e%3cpath%20d='M3.261%2014.356a.664.664%200%200%200%20.92%200l4.629-4.63%204.63%204.63a.657.657%200%200%200%20.918%200%20.655.655%200%200%200%200-.911l-4.63-4.637%204.63-4.63a.648.648%200%200%200%200-.911.65.65%200%200%200-.919%200l-4.63%204.63-4.629-4.63a.644.644%200%200%200-.919%200%20.655.655%200%200%200%200%20.911l4.63%204.63-4.63%204.637a.648.648%200%200%200%200%20.911z'%20fill='%23000'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='hei1mmknga'%3e%3cpath%20fill='%23fff'%20transform='translate(.11%20.111)'%20d='M0%200h17.778v17.778H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",kC=H.forwardRef(({className:e,title:t,onClose:r},n)=>p.jsx("div",{className:Ve(Ce(e,"mobile-header ds-px-space300 ds-py-space200")),ref:n,children:p.jsxs("div",{className:"ds-relative ds-flex ds-w-full ds-flex-row ds-items-center ds-justify-center ds-bg-white",children:[p.jsx("div",{className:"ds-absolute ds-left-0 ds-cursor-pointer",onClick:r,children:p.jsx("img",{src:tj,alt:"close-icon"})}),p.jsx("span",{className:"ds_MediumBodyEmphasized ds-text-Text-primary",children:t})]})}));kC.displayName="OverlayNavMobile";function rj(e,t){const r=H.useRef(e),n=H.useRef(null);H.useEffect(()=>{r.current=e},[e]);const a=(...i)=>{n.current!==null&&clearTimeout(n.current),n.current=window.setTimeout(()=>{r.current(...i)},t)};return H.useEffect(()=>()=>{n.current!==null&&clearTimeout(n.current)},[]),a}const Ks=Number(Gp.theme.screens["ds-tablet"].min.replace("px","")),RC=Number(Gp.theme.screens["ds-desktop"].min.replace("px","")),vS=e=>e<Ks?"mobile":e<RC?"tablet":"desktop",EC=()=>{const[e,t]=H.useState(document.documentElement.clientWidth),[r,n]=H.useState(document.documentElement.clientHeight),[a,i]=H.useState(vS(document.documentElement.clientWidth));return H.useEffect(()=>{const o=()=>{t(document.documentElement.clientWidth),n(document.documentElement.clientHeight),i(vS(document.documentElement.clientWidth))};return window.addEventListener("resize",o),o(),()=>{window.removeEventListener("resize",o)}},[]),{documentWidth:e,documentHeight:r,screenSize:a}};function nj(e,t){const r=e.year(),n=e.month(),a=t.year(),i=t.month(),o=r===a;return o&&n===i?e.date()<t.date():o?n<i:r<a}function aj(e,t){return e.date()===t.date()&&e.month()===t.month()&&e.year()===t.year()}function ij(e,t){return!nj(e,t)&&!aj(e,t)}const IC=H.forwardRef(({onDatesSelected:e,onDatesChange:t,initialStartDate:r=null,initialEndDate:n=null,focusedInput:a="startDate",onFocusChange:i,lTBannerImage:o,lTBannerTitle:s,lTBannerDesc:l,lTBannerBgColor:u="transparent",onMobileCloseClick:c,onOutsideClick:d,onPrevMonthClick:f,onNextMonthClick:h,renderCalendarDay:y,renderDayContents:g,renderCalendarInfo:m,_daySize:w=32,_mobileDaySize:b=48,thirdColumn:_,mobileBreakPoint:O=768,isDayBlocked:M,isAdjustHeightForViewport:E},j)=>{const A=H.useRef(null),[R,P]=H.useState({}),[S,D]=H.useState(r),[x,N]=H.useState(n),[k,z]=H.useState(a),[$,I]=H.useState("horizontal"),{documentWidth:F,documentHeight:C}=EC(),[v,q]=H.useState(2),[V,Y]=H.useState(!1),[Q,K]=H.useState(w),[J,re]=H.useState(F<O?"small":"large"),U=oj({mobileBreakPoint:O}),T=({startDate:ce,endDate:ae})=>{e&&e({startDate:ce,endDate:ae}),D(ce),N(ae)},B=H.useCallback(ce=>{const ae=ce||"startDate";z(ae),i&&i(ae)},[i]),W=H.useCallback(()=>{D(null),N(null),t&&t({startDate:null,endDate:null}),e&&e({startDate:null,endDate:null}),z("startDate")},[t,e]),G=H.useCallback(()=>{t&&t({startDate:S,endDate:x})},[x,t,S]);H.useEffect(()=>{F<O?(I("verticalScrollable"),q(13),Y(!0),re("small"),K(b)):(I("horizontal"),q(2),Y(!1),re("large"),K(w))},[w,b,F,O]);const[ie,Z]=H.useState(0),L=()=>{te(),E&&oe()},te=H.useCallback(()=>{if(F<O){const ce=document.querySelector(".CalendarDay"),ae=document.querySelectorAll(".DayPicker_weekHeader_li");if(ce){const fe=ce.offsetWidth;Z(fe),ae&&ae.forEach(xe=>{xe.style.width=`${Math.floor(fe)}px`})}const ue=document.querySelector(".DayPicker__verticalScrollable"),ge=document.querySelector(".info-panel"),ke=document.querySelector(".mobile-header");if(ue){const fe=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0);ue.style.height=fe-ge.offsetHeight-ke.offsetHeight+"px"}}else se()},[F,O]),oe=H.useCallback(()=>{const ce=A==null?void 0:A.current;if(F<O||!ce)P({});else{const ae=ce.getBoundingClientRect(),ue=ce.scrollHeight,ge=C-ae.top-12;ge<ue?P({height:Math.max(ge,250)+"px",overflowY:"scroll",paddingLeft:"30px",paddingRight:"30px"}):P({})}},[F,C,O]),le=rj(L,200);H.useEffect(()=>(setTimeout(()=>{le()},100),window.addEventListener("resize",le),()=>{window.removeEventListener("resize",le)}),[le,te]);const se=()=>{const ce=document.querySelector(".DayPicker__horizontal"),ae=document.querySelector(".DayPicker_transitionContainer__horizontal"),ue=document.querySelectorAll(".CalendarMonthGrid_month__horizontal");if(ue&&ce&&ae){let ge=ue[0].offsetHeight;ue.forEach(ke=>{ge=Math.max(ke.offsetHeight,ge)}),ce.style.height=`${ge}px`,ae.style.height=`${ge}px`}},de=H.useCallback(ce=>{h&&h(ce),se()},[h]),me=H.useCallback(ce=>{f&&f(ce),se()},[f]),we=H.useCallback(ce=>{if(d){const ae=document.getElementById("silkhaus_date_picker");ae!=null&&ae.contains(ce.target)||d(ce)}},[d]);return p.jsx("div",{ref:j,className:Ve(Ce(F<O&&"ds-w-full ds-p-0",F>=O&&"ds-inline-block ds-w-auto ds-p-6")),id:"silkhaus_date_picker",children:p.jsxs("div",{className:Ce(U.dateWrapper,"date-wrapper ds-bg-white"),ref:A,style:R,children:[p.jsxs("div",{className:"mobile-header",children:[p.jsx(kC,{title:"Select Date",onClose:c}),p.jsx("div",{className:"ds-px-space300 ds-py-space050",children:p.jsxs("div",{className:"ds-flex ds-flex-row ds-flex-nowrap ds-items-center ds-justify-between",children:[p.jsxs("div",{className:"btn-checkin-checkout ds-block",children:[p.jsx("span",{className:"ds_SmallCaption1Emphasized ds-py-space100 ds-text-Text-primary",children:"Check-in"}),p.jsx("div",{className:"ds_xSmallBodyEmphasized ds-rounded ds-border ds-border-Fills-quadrutery ds-px-[14px] ds-py-[14px] ds-text-center ds-text-Text-secondary",children:S?p.jsx("span",{className:"ds-text-Text-primary",children:Oe(S).format("DD/MM/YY")}):"Check in"})]}),p.jsxs("div",{className:"btn-checkin-checkout ds-block",children:[p.jsx("span",{className:"ds_SmallCaption1Emphasized ds-py-space100 ds-text-Text-primary",children:"Check out"}),p.jsx("div",{className:"ds_xSmallBodyEmphasized ds-rounded ds-border ds-border-Fills-quadrutery ds-px-[14px] ds-py-[14px] ds-text-center ds-text-Text-secondary",children:x?p.jsx("span",{className:"ds-text-Text-primary",children:Oe(x).format("DD/MM/YY")}):"Check out"})]})]})})]}),p.jsx(B8.DayPickerRangeController,{orientation:$,startDate:S,endDate:x,onDatesChange:T,focusedInput:k,onFocusChange:B,minDate:Oe(),maxDate:Oe().add("M",12),isOutsideRange:ce=>!ij(ce,Oe().subtract(1,"days")),numberOfMonths:v,noBorder:!0,hideKeyboardShortcutsPanel:!0,initialVisibleMonth:()=>Oe(),daySize:Q,horizontalMonthPadding:8,verticalBorderSpacing:8,noNavButtons:V,enableOutsideDays:!1,onPrevMonthClick:me,onNextMonthClick:de,onOutsideClick:we,renderCalendarDay:y,renderDayContents:g,renderCalendarInfo:m,isDayBlocked:M}),p.jsxs("div",{className:Ve(Ce(F<O&&"ds-pt-4",F>=O&&"ds-pt-0","info-panel ds-px-6 ds-pb-4")),children:[o&&s&&l&&p.jsx(_y,{className:"ds-mb-4",image:o,title:s,desc:l,bgColor:u,size:J}),p.jsx(Us,{className:Ve(Ce(F>=O&&"ds-border-t ds-border-Fills-quintiary ds-pt-4")),primaryBtnTxt:"Apply",secondaryBtnTxt:"Clear",primaryBtnClick:G,secondaryBtnClick:W,thirdColumn:_})]})]})})}),oj=ej({dateWrapper:e=>({height:"auto","& .mobile-header":{display:"none"},"& .info-panel":{boxShadow:"none"},[`@media (max-width: ${e.mobileBreakPoint-1}px)`]:{display:"flex",flexDirection:"column",overflow:"hidden",height:"100vh","& .DayPicker_weekHeader":{backgroundColor:"#f0f2f5",boxShadow:"0 6px 12px 0 rgba(0, 0, 0, 0.12)"},"& .DayPicker_weekHeader_li ":{paddingRight:"13px"},"& .CalendarMonth_caption__verticalScrollable":{paddingTop:"25px"},"& .info-panel":{boxShadow:"0 -6px 12px 0 rgba(0, 0, 0, 0.12)",position:"relative",zIndex:10},"& .mobile-header":{display:"block"}}})});IC.displayName="SilkhausDatePicker";const Sy=H.forwardRef((e,t)=>{const{label:r,isChecked:n,onSelectionChange:a,onClick:i,disabled:o}=e;return p.jsxs("label",{className:"custom-checkbox "+(o?"ds-cursor-default":"ds-cursor-pointer"),children:[p.jsx("input",{id:"checkBox",name:"checkBox",type:"checkbox",className:"ds-me-4 ds-mt-1",checked:n,value:r,onChange:a,disabled:o,ref:t}),p.jsx("span",{className:"checkmark ds-mt-1",onClick:i})]})});Sy.displayName="Checkbox";const NC="data:image/svg+xml,%3csvg%20width='18'%20height='18'%20viewBox='0%200%2018%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23hei1mmknga)'%3e%3cpath%20d='M3.261%2014.356a.664.664%200%200%200%20.92%200l4.629-4.63%204.63%204.63a.657.657%200%200%200%20.918%200%20.655.655%200%200%200%200-.911l-4.63-4.637%204.63-4.63a.648.648%200%200%200%200-.911.65.65%200%200%200-.919%200l-4.63%204.63-4.629-4.63a.644.644%200%200%200-.919%200%20.655.655%200%200%200%200%20.911l4.63%204.63-4.63%204.637a.648.648%200%200%200%200%20.911z'%20fill='%23000'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='hei1mmknga'%3e%3cpath%20fill='%23fff'%20transform='translate(.11%20.111)'%20d='M0%200h17.778v17.778H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",AC="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14%203.45752C14%202.97386%2013.5701%202.67321%2012.9139%202.67321L3.07856%202.66667C2.42238%202.66667%202%202.96732%202%203.45098C2%203.71242%202.13576%203.92811%202.28661%204.20262L6.99309%2012.6013C7.30987%2013.1568%207.59648%2013.3333%207.99623%2013.3333C8.39598%2013.3333%208.69014%2013.1568%209.00692%2012.6013L13.7058%204.20262C13.8642%203.93464%2014%203.71896%2014%203.45752Z'%20fill='black'%20fill-opacity='0.85'/%3e%3c/svg%3e",jC=H.forwardRef((e,t)=>{var j;const E=e,{label:r,value:n=[],options:a,onSelectionChange:i=()=>{},placeholder:o,selected:s,setCheckBoxValue:l,dropdownIcon:u,error:c,noDataError:d,icon:f,disabled:h}=E,y=Ft(E,["label","value","options","onSelectionChange","placeholder","selected","setCheckBoxValue","dropdownIcon","error","noDataError","icon","disabled"]),[g,m]=H.useState([]),[w,b]=H.useState(!1);H.useEffect(()=>{n&&n.length?m(n):m([])},[n]);const _=(A,R)=>{let P=[...g];const S=A==="All"?1:-1,D=P.findIndex(N=>N.label==="All"),x=P.findIndex(N=>R?N.id===R:N.label===A);x!==-1?P.splice(x,1):P.push({label:A,id:R}),S!==-1&&D===-1?P=[...a]:S!==-1&&D!==-1?P=[]:P.length===(a==null?void 0:a.length)-1&&D===-1?P=[...a]:P.length<(a==null?void 0:a.length)&&(P=P.filter(N=>N.label!=="All")),m(P)},O=()=>{m([]),i([])},M=()=>{i(g),b(!w)};return p.jsxs("div",ze(pe({className:Rt("ds-mb-6",h&&"ds-cursor-not-allowed ds-opacity-30"),ref:t},y),{children:[p.jsxs("div",{className:"design-dropdown",children:[p.jsxs("button",{className:Ce("design-dropdown-toggle",{"design-dropdown-toggle-active":s}),onClick:()=>{!c&&!d&&b(!w)},disabled:h,children:[p.jsxs("div",{className:Ce((f||u)&&"ds-relative ds-ps-8"),children:[(f||u)&&p.jsxs("div",{className:Ce(s&&"ds-text-black",!s&&"ds-text-Fills-secondary","ds-absolute ds-left-0 ds-top-1/2 ds-max-w-6 -ds-translate-y-1/2"),children:[f&&!u?f:"",u&&!f?p.jsx("span",{children:p.jsx("img",{src:u,alt:"dropdownIcon"})}):""]}),p.jsx("span",{className:"ds_xSmallBodyRegular",children:l?Array.isArray(n)&&(n==null?void 0:n.length)>0?n.findIndex(A=>A.label==="All")!==-1?"All":(n==null?void 0:n.length)===1?(j=n[0])==null?void 0:j.label:`Selected (${n==null?void 0:n.length})`:p.jsx("span",{className:"ds-text-Text-secondary",children:o}):p.jsx("span",{className:"ds-text-Text-secondary",children:o})})]}),p.jsx("span",{children:p.jsx("img",{src:AC,alt:"downArrow"})})]}),w&&p.jsxs("div",{className:Ce("design-dropdown-menu","ds-flex ds-flex-col"),children:[p.jsxs("div",{className:"design-dropdown-header ds-z-[1]",children:[p.jsx("button",{onClick:()=>b(!w),children:p.jsx("img",{src:NC,alt:"close"})}),p.jsx("div",{className:"ds-flex ds-w-full ds-justify-center",children:p.jsx("span",{className:"ds_MediumBodyEmphasized",children:r})})]}),p.jsx("div",{className:"design-options-section ds-z-0 ds-flex-1 ds-overflow-auto ds-px-6",children:(a==null?void 0:a.length)>0?a.map((A,R)=>p.jsx("div",{className:"design-dropdown-item",onClick:()=>{_(A.label,A.id)},children:p.jsxs("div",{className:"ds-flex ds-justify-between",children:[p.jsx("span",{className:"ds_MediumBodyRegular",children:A.label}),p.jsx(Sy,{label:A.label,isChecked:g.findIndex(P=>P.label===A.label)!==-1,onSelectionChange:()=>_(A.label,A.id),onClick:P=>P.stopPropagation()})]})},R)):p.jsx("div",{className:"design-no-data-error ds_xSmallSubheadRegular",children:d})}),p.jsx("div",{className:"design-action-footer ds-z-[2] ds-w-full ds-px-6 ds-pb-4 ds-pt-4",children:p.jsx(Us,{primaryBtnTxt:"Apply",secondaryBtnTxt:"Clear",primaryBtnClick:M,secondaryBtnClick:O})})]})]}),p.jsx("div",{className:"design-field-error ds_xSmallSubheadRegular",children:a!=null&&a.length?c:d})]}))});jC.displayName="MobileMultiSelectFilterDropDown";const LC=H.forwardRef((e,t)=>{const{show:r,handleClose:n,closeIcon:a,backgroundImage:i,filterHeader:o,filterDescription:s,isSecondary:l,animation:u="slideUp",marginTop:c,maxWidth:d,children:f}=e,h=!l&&i?{backgroundImage:`url(${i})`}:{backgroundColor:"white"};return p.jsx($a,{animation:u,ref:t,show:r,maxWidth:d,marginTop:c,children:p.jsxs("div",{style:h,className:"ds-h-dvh",children:[p.jsx("div",{children:p.jsxs("div",{className:Ce(!l&&"ds-p-6",l&&"ds-relative ds-flex ds-items-center ds-justify-center ds-px-8 ds-py-4 ds-shadow-[0px_2px_8px_0px_rgba(0,0,0,0.08)]"),children:[p.jsx("button",{onClick:n,className:Ce(l&&"animated-modal-close-icon ds-absolute ds-left-6 ds-top-1/2 -ds-translate-y-1/2"),children:p.jsx("img",{src:a,alt:"next"})}),l&&p.jsx("h1",{className:"ds_MediumBodyEmphasized ds-mb-0 ds-text-black",children:o})]})}),p.jsxs("div",{children:[!l&&p.jsxs("div",{className:"ds-p-6",children:[p.jsx("h1",{className:"ds_xSmallHeroTitleRegular ds-mb-2 ds-mt-12 ds-text-Text-textPrimaryDark",children:o}),p.jsx("p",{className:"ds_xSmallBodyEmphasized ds-pt-2 ds-text-Text-textPrimaryDark",children:s})]}),p.jsx("div",{className:`ds-bg-white ${l?"filter-content-secondary":"filter-content ds-rounded-t-lg"}`,children:f})]})]})})});LC.displayName="MobileFilterMenu";const FC=H.forwardRef((e,t)=>{const m=e,{label:r,value:n,options:a,onSelectionChange:i=()=>{},placeholder:o,selected:s,dropdownIcon:l,error:u,noDataError:c,icon:d,disabled:f}=m,h=Ft(m,["label","value","options","onSelectionChange","placeholder","selected","dropdownIcon","error","noDataError","icon","disabled"]),[y,g]=H.useState(!1);return p.jsxs("div",ze(pe({className:Rt("ds-mb-6",f&&"ds-cursor-not-allowed ds-opacity-30"),ref:t},h),{children:[p.jsxs("div",{className:"design-dropdown",children:[p.jsxs("button",{className:Ce("design-dropdown-toggle",{"design-dropdown-toggle-active":s}),onClick:()=>g(!y),disabled:f,children:[p.jsxs("div",{className:Ce((d||l)&&"ds-relative ds-ps-8"),children:[(d||l)&&p.jsxs("div",{className:Ce(s&&"ds-text-black",!s&&"ds-text-Fills-secondary","ds-absolute ds-left-0 ds-top-1/2 ds-max-w-6 -ds-translate-y-1/2"),children:[d&&!l?d:"",l&&!d?p.jsx("span",{children:p.jsx("img",{src:l,alt:"dropdownIcon"})}):""]}),p.jsx("span",{className:"ds_xSmallBodyRegular ds-pl-2",children:n||p.jsx("span",{className:"ds-text-Text-secondary",children:o})})]}),p.jsx("span",{children:p.jsx("img",{src:AC,alt:"downArrow"})})]}),y&&p.jsxs("div",{className:Ce("design-dropdown-menu","ds-flex ds-flex-col"),children:[p.jsxs("div",{className:"design-dropdown-header ds-z-[1]",children:[p.jsx("button",{onClick:()=>g(!y),children:p.jsx("img",{src:NC,alt:"close"})}),p.jsx("div",{className:"ds-flex ds-w-full ds-justify-center",children:p.jsx("span",{className:"ds_MediumBodyEmphasized",children:r})})]}),p.jsx("div",{className:"ds-z-0 ds-flex-1 ds-overflow-auto ds-p-6",children:(a==null?void 0:a.length)>0?a.map((w,b)=>p.jsxs("div",{className:"design-dropdown-select-item",onClick:()=>{i(w),g(!1)},children:[p.jsx("img",{className:"design-option-image",src:w==null?void 0:w.imgUrl,alt:w==null?void 0:w.label}),p.jsx("span",{className:"ds_MediumBodyEmphasized ds-pl-6",children:(w==null?void 0:w.label)||""})]},b)):p.jsx("div",{className:"design-no-data-error ds_xSmallSubheadRegular",children:c})})]})]}),p.jsx("div",{className:"design-field-error ds_xSmallSubheadRegular",children:a!=null&&a.length?u:c})]}))});FC.displayName="MobileSelectCardDropDown";const sj={light:"ds-bg-[rgba(255,255,255,0.64)] ds-text-Text-primary",dark:"ds-bg-[rgba(0,0,0,0.24)] ds-text-Fills-white",amenity:"ds-bg-Fills-quintiary ds-text-Text-secondary"},Ko=H.forwardRef(({icon:e,label:t,variant:r,className:n},a)=>p.jsxs("div",{ref:a,className:Ve(Ce(n,"ds-inline-flex ds-flex-row ds-justify-center ds-items-center ds-rounded ds-px-2 ds-py-1 ds-backdrop-blur",sj[r])),children:[e&&p.jsx("span",{className:"ds-mr-1 ds-inline-flex",children:e}),p.jsx("span",{className:"ds_MediumCaption2Emphasized ds-inline-flex",children:t})]}));Ko.displayName="Badge";var qC={},$C={},Gs={},WC={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};e.default=t})(WC);var lj="Expected a function",pS=NaN,uj="[object Symbol]",cj=/^\s+|\s+$/g,dj=/^[-+]0x[0-9a-f]+$/i,fj=/^0b[01]+$/i,hj=/^0o[0-7]+$/i,vj=parseInt,pj=typeof Kt=="object"&&Kt&&Kt.Object===Object&&Kt,gj=typeof self=="object"&&self&&self.Object===Object&&self,yj=pj||gj||Function("return this")(),mj=Object.prototype,bj=mj.toString,wj=Math.max,_j=Math.min,Nv=function(){return yj.Date.now()};function Sj(e,t,r){var n,a,i,o,s,l,u=0,c=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(lj);t=gS(t)||0,Np(r)&&(c=!!r.leading,d="maxWait"in r,i=d?wj(gS(r.maxWait)||0,t):i,f="trailing"in r?!!r.trailing:f);function h(E){var j=n,A=a;return n=a=void 0,u=E,o=e.apply(A,j),o}function y(E){return u=E,s=setTimeout(w,t),c?h(E):o}function g(E){var j=E-l,A=E-u,R=t-j;return d?_j(R,i-A):R}function m(E){var j=E-l,A=E-u;return l===void 0||j>=t||j<0||d&&A>=i}function w(){var E=Nv();if(m(E))return b(E);s=setTimeout(w,g(E))}function b(E){return s=void 0,f&&n?h(E):(n=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,n=l=a=s=void 0}function O(){return s===void 0?o:b(Nv())}function M(){var E=Nv(),j=m(E);if(n=arguments,a=this,l=E,j){if(s===void 0)return y(l);if(d)return s=setTimeout(w,t),h(l)}return s===void 0&&(s=setTimeout(w,t)),o}return M.cancel=_,M.flush=O,M}function Np(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Dj(e){return!!e&&typeof e=="object"}function Pj(e){return typeof e=="symbol"||Dj(e)&&bj.call(e)==uj}function gS(e){if(typeof e=="number")return e;if(Pj(e))return pS;if(Np(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Np(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(cj,"");var r=fj.test(e);return r||hj.test(e)?vj(e.slice(2),r?2:8):dj.test(e)?pS:+e}var xj=Sj,HC={exports:{}};/*!
|
|
229
229
|
Copyright (c) 2018 Jed Watson.
|
|
230
230
|
Licensed under the MIT License (MIT), see
|
|
231
231
|
http://jedwatson.github.io/classnames
|
package/dist/index.d.ts
CHANGED
|
@@ -230,9 +230,9 @@ declare const cardVariants: (props?: ({
|
|
|
230
230
|
cardType?: "default" | "shadowCard" | null | undefined;
|
|
231
231
|
} & ClassProp) | undefined) => string;
|
|
232
232
|
|
|
233
|
-
export declare const Checkbox: default_2.ForwardRefExoticComponent<CheckboxProps & default_2.RefAttributes<
|
|
233
|
+
export declare const Checkbox: default_2.ForwardRefExoticComponent<CheckboxProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
234
234
|
|
|
235
|
-
export declare interface CheckboxProps extends HTMLAttributes<
|
|
235
|
+
export declare interface CheckboxProps extends HTMLAttributes<HTMLInputElement> {
|
|
236
236
|
isChecked: boolean;
|
|
237
237
|
onSelectionChange: () => void;
|
|
238
238
|
label: string;
|
package/dist/index.js
CHANGED
|
@@ -27812,9 +27812,9 @@ const HA = se.forwardRef(
|
|
|
27812
27812
|
})
|
|
27813
27813
|
});
|
|
27814
27814
|
HA.displayName = "SilkhausDatePicker";
|
|
27815
|
-
const cC = _r((e) => {
|
|
27816
|
-
const { label:
|
|
27817
|
-
return /* @__PURE__ */ p.jsxs("label", { className: "custom-checkbox " + (
|
|
27815
|
+
const cC = _r((e, t) => {
|
|
27816
|
+
const { label: r, isChecked: n, onSelectionChange: a, onClick: i, disabled: o } = e;
|
|
27817
|
+
return /* @__PURE__ */ p.jsxs("label", { className: "custom-checkbox " + (o ? "ds-cursor-default" : "ds-cursor-pointer"), children: [
|
|
27818
27818
|
/* @__PURE__ */ p.jsx(
|
|
27819
27819
|
"input",
|
|
27820
27820
|
{
|
|
@@ -27822,17 +27822,18 @@ const cC = _r((e) => {
|
|
|
27822
27822
|
name: "checkBox",
|
|
27823
27823
|
type: "checkbox",
|
|
27824
27824
|
className: "ds-me-4 ds-mt-1",
|
|
27825
|
-
checked:
|
|
27826
|
-
value:
|
|
27827
|
-
onChange:
|
|
27828
|
-
disabled:
|
|
27825
|
+
checked: n,
|
|
27826
|
+
value: r,
|
|
27827
|
+
onChange: a,
|
|
27828
|
+
disabled: o,
|
|
27829
|
+
ref: t
|
|
27829
27830
|
}
|
|
27830
27831
|
),
|
|
27831
27832
|
/* @__PURE__ */ p.jsx(
|
|
27832
27833
|
"span",
|
|
27833
27834
|
{
|
|
27834
27835
|
className: "checkmark ds-mt-1",
|
|
27835
|
-
onClick:
|
|
27836
|
+
onClick: i
|
|
27836
27837
|
}
|
|
27837
27838
|
)
|
|
27838
27839
|
] });
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "design-system-silkhaus",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.5.0-beta.travel-list.
|
|
4
|
+
"version": "2.5.0-beta.travel-list.3",
|
|
5
5
|
"description": "Design system for Silkhaus built with Typescript, React and Tailwind",
|
|
6
6
|
"author": "silkhaus",
|
|
7
7
|
"license": "MIT",
|