@lifesg/react-design-system 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/toggle/index.js CHANGED
@@ -1,129 +1,129 @@
1
- import e,{jsxs as t,jsx as r}from"react/jsx-runtime";import{useState as n,useRef as o,useEffect as a}from"react";import i,{css as l}from"styled-components";var c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},d=Array.isArray,h="object"==typeof c&&c&&c.Object===Object&&c,g="object"==typeof self&&self&&self.Object===Object&&self,s=h||g||Function("return this")(),u=s.Symbol,f=u,p=Object.prototype,y=p.hasOwnProperty,m=p.toString,C=f?f.toStringTag:void 0;var v=function(e){var t=y.call(e,C),r=e[C];try{e[C]=void 0;var n=!0}catch(e){}var o=m.call(e);return n&&(t?e[C]=r:delete e[C]),o},S=Object.prototype.toString;var F=v,$=function(e){return S.call(e)},B=u?u.toStringTag:void 0;var b=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":B&&B in Object(e)?F(e):$(e)};var H=b,w=function(e){return null!=e&&"object"==typeof e};var D=function(e){return"symbol"==typeof e||w(e)&&"[object Symbol]"==H(e)},x=d,_=D,k=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,z=/^\w*$/;var j=function(e,t){if(x(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!_(e))||(z.test(e)||!k.test(e)||null!=t&&e in Object(t))};var E=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},N=b,A=E;var O,W=function(e){if(!A(e))return!1;var t=N(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},V=s["__core-js_shared__"],I=(O=/[^.]+$/.exec(V&&V.keys&&V.keys.IE_PROTO||""))?"Symbol(src)_1."+O:"";var L=function(e){return!!I&&I in e},T=Function.prototype.toString;var P=W,R=L,M=E,Z=function(e){if(null!=e){try{return T.call(e)}catch(e){}try{return e+""}catch(e){}}return""},X=/^\[object .+?Constructor\]$/,G=Function.prototype,q=Object.prototype,U=G.toString,J=q.hasOwnProperty,K=RegExp("^"+U.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Q=function(e){return!(!M(e)||R(e))&&(P(e)?K:X).test(Z(e))},Y=function(e,t){return null==e?void 0:e[t]};var ee=function(e,t){var r=Y(e,t);return Q(r)?r:void 0},te=ee(Object,"create"),re=te;var ne=function(){this.__data__=re?re(null):{},this.size=0};var oe=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ae=te,ie=Object.prototype.hasOwnProperty;var le=function(e){var t=this.__data__;if(ae){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ie.call(t,e)?t[e]:void 0},ce=te,de=Object.prototype.hasOwnProperty;var he=te;var ge=ne,se=oe,ue=le,fe=function(e){var t=this.__data__;return ce?void 0!==t[e]:de.call(t,e)},pe=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=he&&void 0===t?"__lodash_hash_undefined__":t,this};function ye(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ye.prototype.clear=ge,ye.prototype.delete=se,ye.prototype.get=ue,ye.prototype.has=fe,ye.prototype.set=pe;var me=ye;var Ce=function(){this.__data__=[],this.size=0};var ve=function(e,t){return e===t||e!=e&&t!=t};var Se=function(e,t){for(var r=e.length;r--;)if(ve(e[r][0],t))return r;return-1},Fe=Se,$e=Array.prototype.splice;var Be=Se;var be=Se;var He=Se;var we=Ce,De=function(e){var t=this.__data__,r=Fe(t,e);return!(r<0)&&(r==t.length-1?t.pop():$e.call(t,r,1),--this.size,!0)},xe=function(e){var t=this.__data__,r=Be(t,e);return r<0?void 0:t[r][1]},_e=function(e){return be(this.__data__,e)>-1},ke=function(e,t){var r=this.__data__,n=He(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function ze(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ze.prototype.clear=we,ze.prototype.delete=De,ze.prototype.get=xe,ze.prototype.has=_e,ze.prototype.set=ke;var je=ze,Ee=ee(s,"Map"),Ne=me,Ae=je,Oe=Ee;var We=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ve=function(e,t){var r=e.__data__;return We(t)?r["string"==typeof t?"string":"hash"]:r.map},Ie=Ve;var Le=Ve;var Te=Ve;var Pe=Ve;var Re=function(){this.size=0,this.__data__={hash:new Ne,map:new(Oe||Ae),string:new Ne}},Me=function(e){var t=Ie(this,e).delete(e);return this.size-=t?1:0,t},Ze=function(e){return Le(this,e).get(e)},Xe=function(e){return Te(this,e).has(e)},Ge=function(e,t){var r=Pe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function qe(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}qe.prototype.clear=Re,qe.prototype.delete=Me,qe.prototype.get=Ze,qe.prototype.has=Xe,qe.prototype.set=Ge;var Ue=qe;function Je(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Je.Cache||Ue),r}Je.Cache=Ue;var Ke=Je;var Qe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ye=/\\(\\)?/g,et=function(e){var t=Ke(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Qe,(function(e,r,n,o){t.push(n?o.replace(Ye,"$1"):r||e)})),t}));var tt=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},rt=d,nt=D,ot=u?u.prototype:void 0,at=ot?ot.toString:void 0;var it=function e(t){if("string"==typeof t)return t;if(rt(t))return tt(t,e)+"";if(nt(t))return at?at.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r},lt=it;var ct=d,dt=j,ht=et,gt=function(e){return null==e?"":lt(e)};var st=D;var ut=function(e,t){return ct(e)?e:dt(e,t)?[e]:ht(gt(e))},ft=function(e){if("string"==typeof e||st(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var pt=function(e,t){for(var r=0,n=(t=ut(t,e)).length;null!=e&&r<n;)e=e[ft(t[r++])];return r&&r==n?e:void 0};var yt=function(e,t,r){var n=null==e?void 0:pt(e,t);return void 0===n?r:n};const mt=(e,t,r)=>t?yt(r,t)||yt(e,t):r||e,Ct=(e,t)=>{const r=t||e.defaultValue;return yt(e.collections,r)};var vt;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme",e.designTokenScheme="designTokenScheme",e.resourceScheme="resourceScheme"}(vt||(vt={}));const St={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#465A88",2:"#556D99",3:"#8D8DBF"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"},Blue:{Text:"#064D70",Icon:" #066391",Border:"#84B7DB",Background:"#E8F4FA"}},Shadow:{Accent:"rgba(87, 169, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}},bookingsg:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#9F82D9",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"},Blue:{Text:"#064D70",Icon:" #066391",Border:"#84B7DB",Background:"#E8F4FA"}},Shadow:{Accent:"rgba(161, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}}},defaultValue:"base"},Ft=e=>t=>{const r=t.theme,n=Ct(St,r[vt.colorScheme]);return r.options&&r.options.color?mt(n,e,r.options.color):mt(n,e)},$t={Brand:{1:Ft("Brand.1"),2:Ft("Brand.2"),3:Ft("Brand.3"),4:Ft("Brand.4"),5:Ft("Brand.5"),6:Ft("Brand.6")},Primary:Ft("Primary"),PrimaryDark:Ft("PrimaryDark"),Secondary:Ft("Secondary"),Accent:{Light:{1:Ft("Accent.Light.1"),2:Ft("Accent.Light.2"),3:Ft("Accent.Light.3"),4:Ft("Accent.Light.4"),5:Ft("Accent.Light.5"),6:Ft("Accent.Light.6")},Dark:{1:Ft("Accent.Dark.1"),2:Ft("Accent.Dark.2"),3:Ft("Accent.Dark.3")}},Neutral:{1:Ft("Neutral.1"),2:Ft("Neutral.2"),3:Ft("Neutral.3"),4:Ft("Neutral.4"),5:Ft("Neutral.5"),6:Ft("Neutral.6"),7:Ft("Neutral.7"),8:Ft("Neutral.8")},Validation:{Green:{Text:Ft("Validation.Green.Text"),Icon:Ft("Validation.Green.Icon"),Border:Ft("Validation.Green.Border"),Background:Ft("Validation.Green.Background")},Orange:{Text:Ft("Validation.Orange.Text"),Icon:Ft("Validation.Orange.Icon"),Border:Ft("Validation.Orange.Border"),Background:Ft("Validation.Orange.Background"),Badge:Ft("Validation.Orange.Badge")},Red:{Text:Ft("Validation.Red.Text"),Icon:Ft("Validation.Red.Icon"),Border:Ft("Validation.Red.Border"),Background:Ft("Validation.Red.Background")},Blue:{Text:Ft("Validation.Blue.Text"),Icon:Ft("Validation.Blue.Icon"),Border:Ft("Validation.Blue.Border"),Background:Ft("Validation.Blue.Background")}},Shadow:{Accent:Ft("Shadow.Accent"),Red:Ft("Shadow.Red"),Elevation:Ft("Shadow.Elevation")}},Bt={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},bt={collections:{base:{D1:{fontFamily:Bt.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:Bt.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:Bt.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:Bt.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:Bt.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:Bt.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:Bt.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:Bt.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:Bt.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:Bt.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:Bt.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:Bt.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:Bt.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:Bt.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},Ht=e=>t=>{const r=t.theme,n=Ct(bt,r[vt.textStyleScheme]);return r.options&&r.options.textStyle?mt(n,e,r.options.textStyle):mt(n,e)},wt={D1:{fontFamily:Ht("D1.fontFamily"),fontSize:Ht("D1.fontSize"),fontWeight:Ht("D1.fontWeight"),lineHeight:Ht("D1.lineHeight"),letterSpacing:Ht("D1.letterSpacing")},D2:{fontFamily:Ht("D2.fontFamily"),fontSize:Ht("D2.fontSize"),fontWeight:Ht("D2.fontWeight"),lineHeight:Ht("D2.lineHeight"),letterSpacing:Ht("D2.letterSpacing")},D3:{fontFamily:Ht("D3.fontFamily"),fontSize:Ht("D3.fontSize"),fontWeight:Ht("D3.fontWeight"),lineHeight:Ht("D3.lineHeight"),letterSpacing:Ht("D3.letterSpacing")},D4:{fontFamily:Ht("D4.fontFamily"),fontSize:Ht("D4.fontSize"),fontWeight:Ht("D4.fontWeight"),lineHeight:Ht("D4.lineHeight"),letterSpacing:Ht("D4.letterSpacing")},DBody:{fontFamily:Ht("DBody.fontFamily"),fontSize:Ht("DBody.fontSize"),fontWeight:Ht("DBody.fontWeight"),lineHeight:Ht("DBody.lineHeight"),letterSpacing:Ht("DBody.letterSpacing")},H1:{fontFamily:Ht("H1.fontFamily"),fontSize:Ht("H1.fontSize"),fontWeight:Ht("H1.fontWeight"),lineHeight:Ht("H1.lineHeight"),letterSpacing:Ht("H1.letterSpacing")},H2:{fontFamily:Ht("H2.fontFamily"),fontSize:Ht("H2.fontSize"),fontWeight:Ht("H2.fontWeight"),lineHeight:Ht("H2.lineHeight"),letterSpacing:Ht("H2.letterSpacing")},H3:{fontFamily:Ht("H3.fontFamily"),fontSize:Ht("H3.fontSize"),fontWeight:Ht("H3.fontWeight"),lineHeight:Ht("H3.lineHeight"),letterSpacing:Ht("H3.letterSpacing")},H4:{fontFamily:Ht("H4.fontFamily"),fontSize:Ht("H4.fontSize"),fontWeight:Ht("H4.fontWeight"),lineHeight:Ht("H4.lineHeight"),letterSpacing:Ht("H4.letterSpacing")},H5:{fontFamily:Ht("H5.fontFamily"),fontSize:Ht("H5.fontSize"),fontWeight:Ht("H5.fontWeight"),lineHeight:Ht("H5.lineHeight"),letterSpacing:Ht("H5.letterSpacing")},H6:{fontFamily:Ht("H6.fontFamily"),fontSize:Ht("H6.fontSize"),fontWeight:Ht("H6.fontWeight"),lineHeight:Ht("H6.lineHeight"),letterSpacing:Ht("H6.letterSpacing")},Body:{fontFamily:Ht("Body.fontFamily"),fontSize:Ht("Body.fontSize"),fontWeight:Ht("Body.fontWeight"),lineHeight:Ht("Body.lineHeight"),letterSpacing:Ht("Body.letterSpacing")},BodySmall:{fontFamily:Ht("BodySmall.fontFamily"),fontSize:Ht("BodySmall.fontSize"),fontWeight:Ht("BodySmall.fontWeight"),lineHeight:Ht("BodySmall.lineHeight"),letterSpacing:Ht("BodySmall.letterSpacing")},XSmall:{fontFamily:Ht("XSmall.fontFamily"),fontSize:Ht("XSmall.fontSize"),fontWeight:Ht("XSmall.fontWeight"),lineHeight:Ht("XSmall.lineHeight"),letterSpacing:Ht("XSmall.letterSpacing")}},Dt=e=>{switch(e){case 700:case"bold":return Bt.Bold;case 600:case"semibold":return Bt.Semibold;case 300:case"light":return Bt.Light;case 400:case"regular":return Bt.Regular;default:return""}},xt=(e,t)=>r=>{const n=wt[e].fontFamily(r),o=wt[e].fontWeight(r);return Object.values(Bt).includes(n)?l`
2
- font-family: ${Dt(t)||Dt(o)||n};
1
+ import e,{jsxs as t,jsx as r}from"react/jsx-runtime";import{useState as n,useRef as o,useEffect as a}from"react";import i,{css as l}from"styled-components";let c;const d=new Uint8Array(16);function h(){if(!c&&(c="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!c))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return c(d)}const s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));var g={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function u(e,t,r){if(g.randomUUID&&!t&&!e)return g.randomUUID();const n=(e=e||{}).random||(e.rng||h)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return function(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}(n)}var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},p=Array.isArray,y="object"==typeof f&&f&&f.Object===Object&&f,m="object"==typeof self&&self&&self.Object===Object&&self,C=y||m||Function("return this")(),v=C.Symbol,S=v,F=Object.prototype,$=F.hasOwnProperty,b=F.toString,B=S?S.toStringTag:void 0;var H=function(e){var t=$.call(e,B),r=e[B];try{e[B]=void 0;var n=!0}catch(e){}var o=b.call(e);return n&&(t?e[B]=r:delete e[B]),o},w=Object.prototype.toString;var D=H,x=function(e){return w.call(e)},_=v?v.toStringTag:void 0;var k=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":_&&_ in Object(e)?D(e):x(e)};var z=k,j=function(e){return null!=e&&"object"==typeof e};var E=function(e){return"symbol"==typeof e||j(e)&&"[object Symbol]"==z(e)},A=p,N=E,V=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,I=/^\w*$/;var O=function(e,t){if(A(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!N(e))||(I.test(e)||!V.test(e)||null!=t&&e in Object(t))};var W=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},L=k,T=W;var P,R=function(e){if(!T(e))return!1;var t=L(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},M=C["__core-js_shared__"],Z=(P=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||""))?"Symbol(src)_1."+P:"";var U=function(e){return!!Z&&Z in e},X=Function.prototype.toString;var G=R,q=U,J=W,K=function(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Q=/^\[object .+?Constructor\]$/,Y=Function.prototype,ee=Object.prototype,te=Y.toString,re=ee.hasOwnProperty,ne=RegExp("^"+te.call(re).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var oe=function(e){return!(!J(e)||q(e))&&(G(e)?ne:Q).test(K(e))},ae=function(e,t){return null==e?void 0:e[t]};var ie=function(e,t){var r=ae(e,t);return oe(r)?r:void 0},le=ie(Object,"create"),ce=le;var de=function(){this.__data__=ce?ce(null):{},this.size=0};var he=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},se=le,ge=Object.prototype.hasOwnProperty;var ue=function(e){var t=this.__data__;if(se){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ge.call(t,e)?t[e]:void 0},fe=le,pe=Object.prototype.hasOwnProperty;var ye=le;var me=de,Ce=he,ve=ue,Se=function(e){var t=this.__data__;return fe?void 0!==t[e]:pe.call(t,e)},Fe=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ye&&void 0===t?"__lodash_hash_undefined__":t,this};function $e(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}$e.prototype.clear=me,$e.prototype.delete=Ce,$e.prototype.get=ve,$e.prototype.has=Se,$e.prototype.set=Fe;var be=$e;var Be=function(){this.__data__=[],this.size=0};var He=function(e,t){return e===t||e!=e&&t!=t};var we=function(e,t){for(var r=e.length;r--;)if(He(e[r][0],t))return r;return-1},De=we,xe=Array.prototype.splice;var _e=we;var ke=we;var ze=we;var je=Be,Ee=function(e){var t=this.__data__,r=De(t,e);return!(r<0)&&(r==t.length-1?t.pop():xe.call(t,r,1),--this.size,!0)},Ae=function(e){var t=this.__data__,r=_e(t,e);return r<0?void 0:t[r][1]},Ne=function(e){return ke(this.__data__,e)>-1},Ve=function(e,t){var r=this.__data__,n=ze(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function Ie(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ie.prototype.clear=je,Ie.prototype.delete=Ee,Ie.prototype.get=Ae,Ie.prototype.has=Ne,Ie.prototype.set=Ve;var Oe=Ie,We=ie(C,"Map"),Le=be,Te=Oe,Pe=We;var Re=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Me=function(e,t){var r=e.__data__;return Re(t)?r["string"==typeof t?"string":"hash"]:r.map},Ze=Me;var Ue=Me;var Xe=Me;var Ge=Me;var qe=function(){this.size=0,this.__data__={hash:new Le,map:new(Pe||Te),string:new Le}},Je=function(e){var t=Ze(this,e).delete(e);return this.size-=t?1:0,t},Ke=function(e){return Ue(this,e).get(e)},Qe=function(e){return Xe(this,e).has(e)},Ye=function(e,t){var r=Ge(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function et(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}et.prototype.clear=qe,et.prototype.delete=Je,et.prototype.get=Ke,et.prototype.has=Qe,et.prototype.set=Ye;var tt=et;function rt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(rt.Cache||tt),r}rt.Cache=tt;var nt=rt;var ot=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,at=/\\(\\)?/g,it=function(e){var t=nt(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ot,(function(e,r,n,o){t.push(n?o.replace(at,"$1"):r||e)})),t}));var lt=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o},ct=p,dt=E,ht=v?v.prototype:void 0,st=ht?ht.toString:void 0;var gt=function e(t){if("string"==typeof t)return t;if(ct(t))return lt(t,e)+"";if(dt(t))return st?st.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r},ut=gt;var ft=p,pt=O,yt=it,mt=function(e){return null==e?"":ut(e)};var Ct=E;var vt=function(e,t){return ft(e)?e:pt(e,t)?[e]:yt(mt(e))},St=function(e){if("string"==typeof e||Ct(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var Ft=function(e,t){for(var r=0,n=(t=vt(t,e)).length;null!=e&&r<n;)e=e[St(t[r++])];return r&&r==n?e:void 0};var $t=function(e,t,r){var n=null==e?void 0:Ft(e,t);return void 0===n?r:n};const bt=(e,t,r)=>t?$t(r,t)||$t(e,t):r||e,Bt=(e,t)=>{const r=t||e.defaultValue;return $t(e.collections,r)};var Ht;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme",e.designTokenScheme="designTokenScheme",e.resourceScheme="resourceScheme"}(Ht||(Ht={}));const wt={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#465A88",2:"#556D99",3:"#8D8DBF"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"},Blue:{Text:"#064D70",Icon:" #066391",Border:"#84B7DB",Background:"#E8F4FA"}},Shadow:{Accent:"rgba(87, 169, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}},bookingsg:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#9F82D9",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"},Blue:{Text:"#064D70",Icon:" #066391",Border:"#84B7DB",Background:"#E8F4FA"}},Shadow:{Accent:"rgba(161, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}}},defaultValue:"base"},Dt=e=>t=>{const r=t.theme,n=Bt(wt,r[Ht.colorScheme]);return r.options&&r.options.color?bt(n,e,r.options.color):bt(n,e)},xt={Brand:{1:Dt("Brand.1"),2:Dt("Brand.2"),3:Dt("Brand.3"),4:Dt("Brand.4"),5:Dt("Brand.5"),6:Dt("Brand.6")},Primary:Dt("Primary"),PrimaryDark:Dt("PrimaryDark"),Secondary:Dt("Secondary"),Accent:{Light:{1:Dt("Accent.Light.1"),2:Dt("Accent.Light.2"),3:Dt("Accent.Light.3"),4:Dt("Accent.Light.4"),5:Dt("Accent.Light.5"),6:Dt("Accent.Light.6")},Dark:{1:Dt("Accent.Dark.1"),2:Dt("Accent.Dark.2"),3:Dt("Accent.Dark.3")}},Neutral:{1:Dt("Neutral.1"),2:Dt("Neutral.2"),3:Dt("Neutral.3"),4:Dt("Neutral.4"),5:Dt("Neutral.5"),6:Dt("Neutral.6"),7:Dt("Neutral.7"),8:Dt("Neutral.8")},Validation:{Green:{Text:Dt("Validation.Green.Text"),Icon:Dt("Validation.Green.Icon"),Border:Dt("Validation.Green.Border"),Background:Dt("Validation.Green.Background")},Orange:{Text:Dt("Validation.Orange.Text"),Icon:Dt("Validation.Orange.Icon"),Border:Dt("Validation.Orange.Border"),Background:Dt("Validation.Orange.Background"),Badge:Dt("Validation.Orange.Badge")},Red:{Text:Dt("Validation.Red.Text"),Icon:Dt("Validation.Red.Icon"),Border:Dt("Validation.Red.Border"),Background:Dt("Validation.Red.Background")},Blue:{Text:Dt("Validation.Blue.Text"),Icon:Dt("Validation.Blue.Icon"),Border:Dt("Validation.Blue.Border"),Background:Dt("Validation.Blue.Background")}},Shadow:{Accent:Dt("Shadow.Accent"),Red:Dt("Shadow.Red"),Elevation:Dt("Shadow.Elevation")}},_t={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},kt={collections:{base:{D1:{fontFamily:_t.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:_t.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:_t.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:_t.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:_t.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:_t.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:_t.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:_t.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:_t.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:_t.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:_t.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:_t.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:_t.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:_t.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},zt=e=>t=>{const r=t.theme,n=Bt(kt,r[Ht.textStyleScheme]);return r.options&&r.options.textStyle?bt(n,e,r.options.textStyle):bt(n,e)},jt={D1:{fontFamily:zt("D1.fontFamily"),fontSize:zt("D1.fontSize"),fontWeight:zt("D1.fontWeight"),lineHeight:zt("D1.lineHeight"),letterSpacing:zt("D1.letterSpacing")},D2:{fontFamily:zt("D2.fontFamily"),fontSize:zt("D2.fontSize"),fontWeight:zt("D2.fontWeight"),lineHeight:zt("D2.lineHeight"),letterSpacing:zt("D2.letterSpacing")},D3:{fontFamily:zt("D3.fontFamily"),fontSize:zt("D3.fontSize"),fontWeight:zt("D3.fontWeight"),lineHeight:zt("D3.lineHeight"),letterSpacing:zt("D3.letterSpacing")},D4:{fontFamily:zt("D4.fontFamily"),fontSize:zt("D4.fontSize"),fontWeight:zt("D4.fontWeight"),lineHeight:zt("D4.lineHeight"),letterSpacing:zt("D4.letterSpacing")},DBody:{fontFamily:zt("DBody.fontFamily"),fontSize:zt("DBody.fontSize"),fontWeight:zt("DBody.fontWeight"),lineHeight:zt("DBody.lineHeight"),letterSpacing:zt("DBody.letterSpacing")},H1:{fontFamily:zt("H1.fontFamily"),fontSize:zt("H1.fontSize"),fontWeight:zt("H1.fontWeight"),lineHeight:zt("H1.lineHeight"),letterSpacing:zt("H1.letterSpacing")},H2:{fontFamily:zt("H2.fontFamily"),fontSize:zt("H2.fontSize"),fontWeight:zt("H2.fontWeight"),lineHeight:zt("H2.lineHeight"),letterSpacing:zt("H2.letterSpacing")},H3:{fontFamily:zt("H3.fontFamily"),fontSize:zt("H3.fontSize"),fontWeight:zt("H3.fontWeight"),lineHeight:zt("H3.lineHeight"),letterSpacing:zt("H3.letterSpacing")},H4:{fontFamily:zt("H4.fontFamily"),fontSize:zt("H4.fontSize"),fontWeight:zt("H4.fontWeight"),lineHeight:zt("H4.lineHeight"),letterSpacing:zt("H4.letterSpacing")},H5:{fontFamily:zt("H5.fontFamily"),fontSize:zt("H5.fontSize"),fontWeight:zt("H5.fontWeight"),lineHeight:zt("H5.lineHeight"),letterSpacing:zt("H5.letterSpacing")},H6:{fontFamily:zt("H6.fontFamily"),fontSize:zt("H6.fontSize"),fontWeight:zt("H6.fontWeight"),lineHeight:zt("H6.lineHeight"),letterSpacing:zt("H6.letterSpacing")},Body:{fontFamily:zt("Body.fontFamily"),fontSize:zt("Body.fontSize"),fontWeight:zt("Body.fontWeight"),lineHeight:zt("Body.lineHeight"),letterSpacing:zt("Body.letterSpacing")},BodySmall:{fontFamily:zt("BodySmall.fontFamily"),fontSize:zt("BodySmall.fontSize"),fontWeight:zt("BodySmall.fontWeight"),lineHeight:zt("BodySmall.lineHeight"),letterSpacing:zt("BodySmall.letterSpacing")},XSmall:{fontFamily:zt("XSmall.fontFamily"),fontSize:zt("XSmall.fontSize"),fontWeight:zt("XSmall.fontWeight"),lineHeight:zt("XSmall.lineHeight"),letterSpacing:zt("XSmall.letterSpacing")}},Et=e=>{switch(e){case 700:case"bold":return _t.Bold;case 600:case"semibold":return _t.Semibold;case 300:case"light":return _t.Light;case 400:case"regular":return _t.Regular;default:return""}},At=(e,t)=>r=>{const n=jt[e].fontFamily(r),o=jt[e].fontWeight(r);return Object.values(_t).includes(n)?l`
2
+ font-family: ${Et(t)||Et(o)||n};
3
3
  font-weight: normal !important;
4
4
  `:l`
5
5
  font-family: ${n};
6
- font-weight: ${(_t(t)||o)??"normal"};
7
- `},_t=e=>{switch(e){case 300:case"light":return 300;case 400:case"regular":return 400;case 600:case"semibold":return 600;case 700:case"bold":return 700;case 900:case"black":return 900;default:return""}},kt=(e,t,r=!1)=>n=>{const o=wt[e],a=o.fontSize(n);return l`
8
- ${xt(e,t)}
6
+ font-weight: ${(Nt(t)||o)??"normal"};
7
+ `},Nt=e=>{switch(e){case 300:case"light":return 300;case 400:case"regular":return 400;case 600:case"semibold":return 600;case 700:case"bold":return 700;case 900:case"black":return 900;default:return""}},Vt=(e,t,r=!1)=>n=>{const o=jt[e],a=o.fontSize(n);return l`
8
+ ${At(e,t)}
9
9
  font-size: ${a}rem !important;
10
10
  line-height: ${o.lineHeight}rem !important;
11
11
  letter-spacing: ${o.letterSpacing(n)||0}rem !important;
12
12
  ${l`
13
13
  margin-bottom: ${a*(r?1.05:0)}rem;
14
14
  `}
15
- `},zt=(e=!1,t=!1)=>t?l`
15
+ `},It=(e=!1,t=!1)=>t?l`
16
16
  display: block;
17
17
  `:e?l`
18
18
  display: inline;
19
19
  `:l`
20
20
  display: block;
21
- `;var jt,Et={};Object.defineProperty(Et,"__esModule",{value:!0});var Nt=e;const At=e=>Nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Nt.jsx("path",{d:"M4.25 17.5C3.764 17.5 3.35067 17.33 3.01 16.99C2.67 16.6493 2.5 16.236 2.5 15.75V4.25C2.5 3.764 2.67 3.35067 3.01 3.01C3.35067 2.67 3.764 2.5 4.25 2.5H9.208C9.444 2.5 9.649 2.58667 9.823 2.76C9.99633 2.934 10.083 3.139 10.083 3.375C10.083 3.611 9.99633 3.816 9.823 3.99C9.649 4.16333 9.444 4.25 9.208 4.25H4.25V15.75H15.75V10.792C15.75 10.556 15.8367 10.351 16.01 10.177C16.184 10.0037 16.389 9.917 16.625 9.917C16.861 9.917 17.066 10.0037 17.24 10.177C17.4133 10.351 17.5 10.556 17.5 10.792V15.75C17.5 16.236 17.33 16.6493 16.99 16.99C16.6493 17.33 16.236 17.5 15.75 17.5H4.25ZM7.5 12.5C7.33333 12.3333 7.25 12.1283 7.25 11.885C7.25 11.6423 7.33333 11.4377 7.5 11.271L14.521 4.25H12.708C12.472 4.25 12.2673 4.16333 12.094 3.99C11.92 3.816 11.833 3.611 11.833 3.375C11.833 3.139 11.92 2.934 12.094 2.76C12.2673 2.58667 12.472 2.5 12.708 2.5H16.625C16.861 2.5 17.066 2.58667 17.24 2.76C17.4133 2.934 17.5 3.139 17.5 3.375V7.292C17.5 7.528 17.4133 7.73267 17.24 7.906C17.066 8.08 16.861 8.167 16.625 8.167C16.389 8.167 16.184 8.08 16.01 7.906C15.8367 7.73267 15.75 7.528 15.75 7.292V5.479L8.708 12.521C8.54133 12.6877 8.34367 12.771 8.115 12.771C7.88567 12.771 7.68067 12.6807 7.5 12.5Z",fill:"currentColor"})});var Ot;At.displayName="ExternalIcon",jt=Et.ExternalIcon=At,function(e){e.D1=i.h1`
21
+ `;var Ot,Wt={};Object.defineProperty(Wt,"__esModule",{value:!0});var Lt=e;const Tt=e=>Lt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Lt.jsx("path",{d:"M4.25 17.5C3.764 17.5 3.35067 17.33 3.01 16.99C2.67 16.6493 2.5 16.236 2.5 15.75V4.25C2.5 3.764 2.67 3.35067 3.01 3.01C3.35067 2.67 3.764 2.5 4.25 2.5H9.208C9.444 2.5 9.649 2.58667 9.823 2.76C9.99633 2.934 10.083 3.139 10.083 3.375C10.083 3.611 9.99633 3.816 9.823 3.99C9.649 4.16333 9.444 4.25 9.208 4.25H4.25V15.75H15.75V10.792C15.75 10.556 15.8367 10.351 16.01 10.177C16.184 10.0037 16.389 9.917 16.625 9.917C16.861 9.917 17.066 10.0037 17.24 10.177C17.4133 10.351 17.5 10.556 17.5 10.792V15.75C17.5 16.236 17.33 16.6493 16.99 16.99C16.6493 17.33 16.236 17.5 15.75 17.5H4.25ZM7.5 12.5C7.33333 12.3333 7.25 12.1283 7.25 11.885C7.25 11.6423 7.33333 11.4377 7.5 11.271L14.521 4.25H12.708C12.472 4.25 12.2673 4.16333 12.094 3.99C11.92 3.816 11.833 3.611 11.833 3.375C11.833 3.139 11.92 2.934 12.094 2.76C12.2673 2.58667 12.472 2.5 12.708 2.5H16.625C16.861 2.5 17.066 2.58667 17.24 2.76C17.4133 2.934 17.5 3.139 17.5 3.375V7.292C17.5 7.528 17.4133 7.73267 17.24 7.906C17.066 8.08 16.861 8.167 16.625 8.167C16.389 8.167 16.184 8.08 16.01 7.906C15.8367 7.73267 15.75 7.528 15.75 7.292V5.479L8.708 12.521C8.54133 12.6877 8.34367 12.771 8.115 12.771C7.88567 12.771 7.68067 12.6807 7.5 12.5Z",fill:"currentColor"})});var Pt;Tt.displayName="ExternalIcon",Ot=Wt.ExternalIcon=Tt,function(e){e.D1=i.h1`
22
22
  ${e=>l`
23
- ${kt("D1",e.weight,e.paragraph)}
24
- color: ${$t.Neutral[1]};
25
- ${zt(e.inline,e.paragraph)}
23
+ ${Vt("D1",e.weight,e.paragraph)}
24
+ color: ${xt.Neutral[1]};
25
+ ${It(e.inline,e.paragraph)}
26
26
  `}
27
27
  `,e.D2=i.h1`
28
28
  ${e=>l`
29
- ${kt("D2",e.weight,e.paragraph)}
30
- color: ${$t.Neutral[1]};
31
- ${zt(e.inline,e.paragraph)}
29
+ ${Vt("D2",e.weight,e.paragraph)}
30
+ color: ${xt.Neutral[1]};
31
+ ${It(e.inline,e.paragraph)}
32
32
  `}
33
33
  `,e.D3=i.h1`
34
34
  ${e=>l`
35
- ${kt("D3",e.weight,e.paragraph)}
36
- color: ${$t.Neutral[1]};
37
- ${zt(e.inline,e.paragraph)}
35
+ ${Vt("D3",e.weight,e.paragraph)}
36
+ color: ${xt.Neutral[1]};
37
+ ${It(e.inline,e.paragraph)}
38
38
  `}
39
39
  `,e.D4=i.h1`
40
40
  ${e=>l`
41
- ${kt("D4",e.weight,e.paragraph)}
42
- color: ${$t.Neutral[1]};
43
- ${zt(e.inline,e.paragraph)}
41
+ ${Vt("D4",e.weight,e.paragraph)}
42
+ color: ${xt.Neutral[1]};
43
+ ${It(e.inline,e.paragraph)}
44
44
  `}
45
45
  `,e.DBody=i.h1`
46
46
  ${e=>l`
47
- ${kt("DBody",e.weight,e.paragraph)}
48
- color: ${$t.Neutral[1]};
49
- ${zt(e.inline,e.paragraph)}
47
+ ${Vt("DBody",e.weight,e.paragraph)}
48
+ color: ${xt.Neutral[1]};
49
+ ${It(e.inline,e.paragraph)}
50
50
  `}
51
51
  `,e.H1=i.h1`
52
52
  ${e=>l`
53
- ${kt("H1",e.weight,e.paragraph)}
54
- color: ${$t.Neutral[1]};
55
- ${zt(e.inline,e.paragraph)}
53
+ ${Vt("H1",e.weight,e.paragraph)}
54
+ color: ${xt.Neutral[1]};
55
+ ${It(e.inline,e.paragraph)}
56
56
  `}
57
57
  `,e.H2=i.h2`
58
58
  ${e=>l`
59
- ${kt("H2",e.weight,e.paragraph)}
60
- color: ${$t.Neutral[1]};
61
- ${zt(e.inline,e.paragraph)}
59
+ ${Vt("H2",e.weight,e.paragraph)}
60
+ color: ${xt.Neutral[1]};
61
+ ${It(e.inline,e.paragraph)}
62
62
  `}
63
63
  `,e.H3=i.h3`
64
64
  ${e=>l`
65
- ${kt("H3",e.weight,e.paragraph)}
66
- color: ${$t.Neutral[1]};
67
- ${zt(e.inline,e.paragraph)}
65
+ ${Vt("H3",e.weight,e.paragraph)}
66
+ color: ${xt.Neutral[1]};
67
+ ${It(e.inline,e.paragraph)}
68
68
  `}
69
69
  `,e.H4=i.h4`
70
70
  ${e=>l`
71
- ${kt("H4",e.weight,e.paragraph)}
72
- color: ${$t.Neutral[1]};
73
- ${zt(e.inline,e.paragraph)}
71
+ ${Vt("H4",e.weight,e.paragraph)}
72
+ color: ${xt.Neutral[1]};
73
+ ${It(e.inline,e.paragraph)}
74
74
  `}
75
75
  `,e.H5=i.h5`
76
76
  ${e=>l`
77
- ${kt("H5",e.weight,e.paragraph)}
78
- color: ${$t.Neutral[1]};
79
- ${zt(e.inline,e.paragraph)}
77
+ ${Vt("H5",e.weight,e.paragraph)}
78
+ color: ${xt.Neutral[1]};
79
+ ${It(e.inline,e.paragraph)}
80
80
  `}
81
81
  `,e.H6=i.h6`
82
82
  ${e=>l`
83
- ${kt("H6",e.weight,e.paragraph)}
84
- color: ${$t.Neutral[1]};
85
- ${zt(e.inline,e.paragraph)}
83
+ ${Vt("H6",e.weight,e.paragraph)}
84
+ color: ${xt.Neutral[1]};
85
+ ${It(e.inline,e.paragraph)}
86
86
  `}
87
87
  `,e.Body=i.p`
88
88
  ${e=>l`
89
- ${kt("Body",e.weight,e.paragraph)}
90
- color: ${$t.Neutral[1]};
91
- ${zt(e.inline,e.paragraph)}
89
+ ${Vt("Body",e.weight,e.paragraph)}
90
+ color: ${xt.Neutral[1]};
91
+ ${It(e.inline,e.paragraph)}
92
92
  `}
93
93
  `,e.BodySmall=i.p`
94
94
  ${e=>l`
95
- ${kt("BodySmall",e.weight,e.paragraph)}
96
- color: ${$t.Neutral[1]};
97
- ${zt(e.inline,e.paragraph)}
95
+ ${Vt("BodySmall",e.weight,e.paragraph)}
96
+ color: ${xt.Neutral[1]};
97
+ ${It(e.inline,e.paragraph)}
98
98
  `}
99
99
  `,e.XSmall=i.span`
100
100
  ${e=>l`
101
- ${kt("XSmall",e.weight,e.paragraph)}
102
- color: ${$t.Neutral[1]};
103
- ${zt(e.inline,e.paragraph)}
101
+ ${Vt("XSmall",e.weight,e.paragraph)}
102
+ color: ${xt.Neutral[1]};
103
+ ${It(e.inline,e.paragraph)}
104
104
  `}
105
- `,e.Hyperlink={Default:e=>It({...e,textStyle:"Body"}),Small:e=>It({...e,textStyle:"BodySmall"})}}(Ot||(Ot={}));const Wt=i.a`
105
+ `,e.Hyperlink={Default:e=>Zt({...e,textStyle:"Body"}),Small:e=>Zt({...e,textStyle:"BodySmall"})}}(Pt||(Pt={}));const Rt=i.a`
106
106
  ${e=>l`
107
- ${kt(e.textStyle,e.weight)}
108
- color: ${$t.Primary};
107
+ ${Vt(e.textStyle,e.weight)}
108
+ color: ${xt.Primary};
109
109
  text-decoration: none;
110
110
 
111
111
  :hover,
112
112
  :active,
113
113
  :focus {
114
- color: ${$t.Secondary};
114
+ color: ${xt.Secondary};
115
115
 
116
116
  svg {
117
- color: ${$t.Secondary};
117
+ color: ${xt.Secondary};
118
118
  }
119
119
  }
120
120
  `}
121
- `,Vt=i(jt)`
121
+ `,Mt=i(Ot)`
122
122
  height: 1rem;
123
123
  width: 1rem;
124
124
  margin-left: 0.4rem;
125
125
  vertical-align: middle;
126
- `,It=({external:e=!1,children:n,...o})=>t(Wt,{...o,children:[n,e&&r(Vt,{})]});var Lt;!function(e){e[e.Subpage=0]="Subpage",e[e.Domain=1]="Domain"}(Lt||(Lt={}));const Tt=i.div`
126
+ `,Zt=({external:e=!1,children:n,...o})=>t(Rt,{...o,children:[n,e&&r(Mt,{})]});var Ut;!function(e){e[e.Subpage=0]="Subpage",e[e.Domain=1]="Domain"}(Ut||(Ut={}));const Xt=i.div`
127
127
  position: relative;
128
128
  display: inline-flex;
129
129
  min-width: 10.375rem;
@@ -140,11 +140,11 @@ import e,{jsxs as t,jsx as r}from"react/jsx-runtime";import{useState as n,useRef
140
140
 
141
141
  // Background, Hover and Border style
142
142
  ${e=>"no-border"===e.$styleType?e.$error?l`
143
- border-color: ${$t.Validation.Red.Icon};
144
- background: ${$t.Neutral[8]};
143
+ border-color: ${xt.Validation.Red.Icon};
144
+ background: ${xt.Neutral[8]};
145
145
 
146
146
  :hover {
147
- box-shadow: 0 0 4px 1px ${$t.Shadow.Red};
147
+ box-shadow: 0 0 4px 1px ${xt.Shadow.Red};
148
148
  }
149
149
  `:e.$disabled?l`
150
150
  border-color: transparent;
@@ -152,38 +152,38 @@ import e,{jsxs as t,jsx as r}from"react/jsx-runtime";import{useState as n,useRef
152
152
  border-color: transparent;
153
153
 
154
154
  :hover {
155
- background: ${$t.Accent.Light[6]};
155
+ background: ${xt.Accent.Light[6]};
156
156
  }
157
157
  `:e.$disabled&&!e.$selected?l`
158
- background: ${$t.Neutral[6]};
159
- border-color: ${$t.Neutral[5]};
158
+ background: ${xt.Neutral[6]};
159
+ border-color: ${xt.Neutral[5]};
160
160
  `:e.$disabled&&e.$selected?l`
161
- background: ${$t.Neutral[6]};
162
- border-color: ${$t.Neutral[4]};
161
+ background: ${xt.Neutral[6]};
162
+ border-color: ${xt.Neutral[4]};
163
163
  `:e.$error?l`
164
- background: ${$t.Neutral[8]};
165
- border-color: ${$t.Validation.Red.Border};
164
+ background: ${xt.Neutral[8]};
165
+ border-color: ${xt.Validation.Red.Border};
166
166
 
167
167
  :hover {
168
- box-shadow: 0 0 4px 1px ${$t.Shadow.Red};
168
+ box-shadow: 0 0 4px 1px ${xt.Shadow.Red};
169
169
  }
170
170
  `:e.$selected?l`
171
- background: ${$t.Accent.Light[5]};
172
- border-color: ${$t.Primary};
171
+ background: ${xt.Accent.Light[5]};
172
+ border-color: ${xt.Primary};
173
173
 
174
174
  :hover {
175
- box-shadow: 0 0 4px 1px ${$t.Shadow.Accent};
175
+ box-shadow: 0 0 4px 1px ${xt.Shadow.Accent};
176
176
  }
177
177
  `:l`
178
- background: ${$t.Neutral[8]};
179
- border-color: ${$t.Neutral[5]};
178
+ background: ${xt.Neutral[8]};
179
+ border-color: ${xt.Neutral[5]};
180
180
 
181
181
  :hover {
182
- box-shadow: 0 0 4px 1px ${$t.Shadow.Accent};
183
- border-color: ${$t.Accent.Light[1]};
182
+ box-shadow: 0 0 4px 1px ${xt.Shadow.Accent};
183
+ border-color: ${xt.Accent.Light[1]};
184
184
  }
185
185
  `}
186
- `,Pt=i.input`
186
+ `,Gt=i.input`
187
187
  position: absolute;
188
188
  height: 100%;
189
189
  width: 100%;
@@ -194,24 +194,24 @@ import e,{jsxs as t,jsx as r}from"react/jsx-runtime";import{useState as n,useRef
194
194
  /* Hide appearance but keep it focusable using keyboard interactions */
195
195
  appearance: none;
196
196
  background: transparent;
197
- `,Rt=i.div`
197
+ `,qt=i.div`
198
198
  display: flex;
199
199
  flex-direction: column;
200
- `,Mt=i.label`
200
+ `,Jt=i.label`
201
201
  ${e=>e.$selected&&!e.$indicator?l`
202
- ${kt("H4","semibold")}
202
+ ${Vt("H4","semibold")}
203
203
  `:l`
204
- ${kt("H4","regular")}
204
+ ${Vt("H4","regular")}
205
205
  `}
206
206
 
207
- color: ${$t.Neutral[1]};
207
+ color: ${xt.Neutral[1]};
208
208
 
209
209
  ${e=>e.$disabled?l`
210
- color: ${$t.Neutral[3](e)};
210
+ color: ${xt.Neutral[3](e)};
211
211
  `:e.$selected?l`
212
- color: ${$t.Primary(e)};
212
+ color: ${xt.Primary(e)};
213
213
  `:void 0}
214
- `;var Zt,Xt={};Object.defineProperty(Xt,"__esModule",{value:!0});var Gt=e;const qt=e=>Gt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Gt.jsx("path",{d:"M10 18C8.90267 18 7.868 17.7917 6.896 17.375C5.924 16.9583 5.07333 16.3853 4.344 15.656C3.61467 14.9267 3.04167 14.076 2.625 13.104C2.20833 12.132 2 11.0973 2 10C2 8.88867 2.20833 7.85033 2.625 6.885C3.04167 5.92033 3.61467 5.07333 4.344 4.344C5.07333 3.61467 5.924 3.04167 6.896 2.625C7.868 2.20833 8.90267 2 10 2C11.1113 2 12.1497 2.20833 13.115 2.625C14.0797 3.04167 14.9267 3.61467 15.656 4.344C16.3853 5.07333 16.9583 5.92033 17.375 6.885C17.7917 7.85033 18 8.88867 18 10C18 11.0973 17.7917 12.132 17.375 13.104C16.9583 14.076 16.3853 14.9267 15.656 15.656C14.9267 16.3853 14.0797 16.9583 13.115 17.375C12.1497 17.7917 11.1113 18 10 18ZM10 16.5C11.8053 16.5 13.34 15.868 14.604 14.604C15.868 13.34 16.5 11.8053 16.5 10C16.5 8.19467 15.868 6.66 14.604 5.396C13.34 4.132 11.8053 3.5 10 3.5C8.19467 3.5 6.66 4.132 5.396 5.396C4.132 6.66 3.5 8.19467 3.5 10C3.5 11.8053 4.132 13.34 5.396 14.604C6.66 15.868 8.19467 16.5 10 16.5Z",fill:"currentColor"})});qt.displayName="CircleIcon",Zt=Xt.CircleIcon=qt;var Ut,Jt={};Object.defineProperty(Jt,"__esModule",{value:!0});var Kt=e;const Qt=e=>Kt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Kt.jsx("path",{d:"M10 14C11.1113 14 12.0557 13.611 12.833 12.833C13.611 12.0557 14 11.1113 14 10C14 8.88867 13.611 7.94433 12.833 7.167C12.0557 6.389 11.1113 6 10 6C8.88867 6 7.94433 6.389 7.167 7.167C6.389 7.94433 6 8.88867 6 10C6 11.1113 6.389 12.0557 7.167 12.833C7.94433 13.611 8.88867 14 10 14ZM10 18C8.90267 18 7.868 17.7917 6.896 17.375C5.924 16.9583 5.07333 16.3853 4.344 15.656C3.61467 14.9267 3.04167 14.076 2.625 13.104C2.20833 12.132 2 11.0973 2 10C2 8.88867 2.20833 7.85033 2.625 6.885C3.04167 5.92033 3.61467 5.07333 4.344 4.344C5.07333 3.61467 5.924 3.04167 6.896 2.625C7.868 2.20833 8.90267 2 10 2C11.1113 2 12.1497 2.20833 13.115 2.625C14.0797 3.04167 14.9267 3.61467 15.656 4.344C16.3853 5.07333 16.9583 5.92033 17.375 6.885C17.7917 7.85033 18 8.88867 18 10C18 11.0973 17.7917 12.132 17.375 13.104C16.9583 14.076 16.3853 14.9267 15.656 15.656C14.9267 16.3853 14.0797 16.9583 13.115 17.375C12.1497 17.7917 11.1113 18 10 18ZM10 16.5C11.8053 16.5 13.34 15.868 14.604 14.604C15.868 13.34 16.5 11.8053 16.5 10C16.5 8.19467 15.868 6.66 14.604 5.396C13.34 4.132 11.8053 3.5 10 3.5C8.19467 3.5 6.66 4.132 5.396 5.396C4.132 6.66 3.5 8.19467 3.5 10C3.5 11.8053 4.132 13.34 5.396 14.604C6.66 15.868 8.19467 16.5 10 16.5Z",fill:"currentColor"})});Qt.displayName="CircleDotIcon",Ut=Jt.CircleDotIcon=Qt;var Yt,er={};Object.defineProperty(er,"__esModule",{value:!0});var tr=e;const rr=e=>tr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:tr.jsx("path",{d:"M9.99991 11.229L5.97891 15.25C5.81224 15.4167 5.61091 15.4967 5.37491 15.49C5.13891 15.4827 4.93757 15.3957 4.77091 15.229C4.60424 15.0623 4.52091 14.8577 4.52091 14.615C4.52091 14.3717 4.60424 14.1667 4.77091 14L8.77091 10L4.74991 5.979C4.58324 5.81233 4.50324 5.60767 4.50991 5.365C4.51724 5.12167 4.60424 4.91667 4.77091 4.75C4.93757 4.58333 5.14224 4.5 5.38491 4.5C5.62824 4.5 5.83324 4.58333 5.99991 4.75L9.99991 8.771L14.0209 4.75C14.1876 4.58333 14.3922 4.5 14.6349 4.5C14.8782 4.5 15.0832 4.58333 15.2499 4.75C15.4166 4.91667 15.4999 5.12167 15.4999 5.365C15.4999 5.60767 15.4166 5.81233 15.2499 5.979L11.2289 10L15.2499 14.021C15.4166 14.1877 15.4999 14.389 15.4999 14.625C15.4999 14.861 15.4166 15.0623 15.2499 15.229C15.0832 15.3957 14.8782 15.479 14.6349 15.479C14.3922 15.479 14.1876 15.3957 14.0209 15.229L9.99991 11.229Z",fill:"currentColor"})});rr.displayName="CrossIcon",Yt=er.CrossIcon=rr;var nr,or={};Object.defineProperty(or,"__esModule",{value:!0});var ar=e;const ir=e=>ar.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:ar.jsx("path",{d:"M4.5 17C4.08333 17 3.72933 16.854 3.438 16.562C3.146 16.2707 3 15.9167 3 15.5V4.5C3 4.08333 3.146 3.72933 3.438 3.438C3.72933 3.146 4.08333 3 4.5 3H15.5C15.9167 3 16.2707 3.146 16.562 3.438C16.854 3.72933 17 4.08333 17 4.5V15.5C17 15.9167 16.854 16.2707 16.562 16.562C16.2707 16.854 15.9167 17 15.5 17H4.5ZM4.5 15.5H15.5V4.5H4.5V15.5Z",fill:"currentColor"})});ir.displayName="SquareIcon",nr=or.SquareIcon=ir;var lr,cr={};Object.defineProperty(cr,"__esModule",{value:!0});var dr=e;const hr=e=>dr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:dr.jsx("path",{d:"M4.25 17.5C3.764 17.5 3.35067 17.33 3.01 16.99C2.67 16.6493 2.5 16.236 2.5 15.75V4.25C2.5 3.764 2.67 3.35067 3.01 3.01C3.35067 2.67 3.764 2.5 4.25 2.5H15.75C16.236 2.5 16.6493 2.67 16.99 3.01C17.33 3.35067 17.5 3.764 17.5 4.25V15.75C17.5 16.236 17.33 16.6493 16.99 16.99C16.6493 17.33 16.236 17.5 15.75 17.5H4.25ZM8.875 13.188C8.98633 13.188 9.094 13.167 9.198 13.125C9.302 13.083 9.40267 13.0137 9.5 12.917L14.125 8.292C14.2917 8.12533 14.375 7.924 14.375 7.688C14.375 7.45133 14.2917 7.24267 14.125 7.062C13.9443 6.89533 13.736 6.812 13.5 6.812C13.264 6.812 13.0627 6.89533 12.896 7.062L8.875 11.083L7.125 9.333C6.95833 9.16633 6.757 9.083 6.521 9.083C6.285 9.083 6.08367 9.16633 5.917 9.333C5.73633 9.51367 5.646 9.722 5.646 9.958C5.646 10.194 5.73633 10.3953 5.917 10.562L8.25 12.917C8.34733 13.0137 8.448 13.083 8.552 13.125C8.656 13.167 8.76367 13.188 8.875 13.188Z",fill:"currentColor"})});hr.displayName="SquareTickFillIcon",lr=cr.SquareTickFillIcon=hr;var gr,sr={};Object.defineProperty(sr,"__esModule",{value:!0});var ur=e;const fr=e=>ur.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:ur.jsx("path",{d:"M7.97897 14.646C7.86764 14.646 7.75997 14.625 7.65597 14.583C7.55197 14.5417 7.4513 14.4723 7.35397 14.375L3.83297 10.854C3.6663 10.6873 3.58664 10.4757 3.59397 10.219C3.60064 9.96167 3.6873 9.74967 3.85397 9.583C4.02064 9.41634 4.22897 9.333 4.47897 9.333C4.72897 9.333 4.9373 9.41634 5.10397 9.583L8.02097 12.5L14.917 5.604C15.0836 5.43734 15.2883 5.354 15.531 5.354C15.7743 5.354 15.9793 5.43734 16.146 5.604C16.3126 5.77067 16.396 5.97567 16.396 6.219C16.396 6.46167 16.3126 6.66634 16.146 6.833L8.60397 14.375C8.50664 14.4723 8.40597 14.5417 8.30197 14.583C8.19797 14.625 8.0903 14.646 7.97897 14.646Z",fill:"currentColor"})});fr.displayName="TickIcon",gr=sr.TickIcon=fr;const pr=i.div`
214
+ `;var Kt,Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});var Yt=e;const er=e=>Yt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Yt.jsx("path",{d:"M10 18C8.90267 18 7.868 17.7917 6.896 17.375C5.924 16.9583 5.07333 16.3853 4.344 15.656C3.61467 14.9267 3.04167 14.076 2.625 13.104C2.20833 12.132 2 11.0973 2 10C2 8.88867 2.20833 7.85033 2.625 6.885C3.04167 5.92033 3.61467 5.07333 4.344 4.344C5.07333 3.61467 5.924 3.04167 6.896 2.625C7.868 2.20833 8.90267 2 10 2C11.1113 2 12.1497 2.20833 13.115 2.625C14.0797 3.04167 14.9267 3.61467 15.656 4.344C16.3853 5.07333 16.9583 5.92033 17.375 6.885C17.7917 7.85033 18 8.88867 18 10C18 11.0973 17.7917 12.132 17.375 13.104C16.9583 14.076 16.3853 14.9267 15.656 15.656C14.9267 16.3853 14.0797 16.9583 13.115 17.375C12.1497 17.7917 11.1113 18 10 18ZM10 16.5C11.8053 16.5 13.34 15.868 14.604 14.604C15.868 13.34 16.5 11.8053 16.5 10C16.5 8.19467 15.868 6.66 14.604 5.396C13.34 4.132 11.8053 3.5 10 3.5C8.19467 3.5 6.66 4.132 5.396 5.396C4.132 6.66 3.5 8.19467 3.5 10C3.5 11.8053 4.132 13.34 5.396 14.604C6.66 15.868 8.19467 16.5 10 16.5Z",fill:"currentColor"})});er.displayName="CircleIcon",Kt=Qt.CircleIcon=er;var tr,rr={};Object.defineProperty(rr,"__esModule",{value:!0});var nr=e;const or=e=>nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:nr.jsx("path",{d:"M10 14C11.1113 14 12.0557 13.611 12.833 12.833C13.611 12.0557 14 11.1113 14 10C14 8.88867 13.611 7.94433 12.833 7.167C12.0557 6.389 11.1113 6 10 6C8.88867 6 7.94433 6.389 7.167 7.167C6.389 7.94433 6 8.88867 6 10C6 11.1113 6.389 12.0557 7.167 12.833C7.94433 13.611 8.88867 14 10 14ZM10 18C8.90267 18 7.868 17.7917 6.896 17.375C5.924 16.9583 5.07333 16.3853 4.344 15.656C3.61467 14.9267 3.04167 14.076 2.625 13.104C2.20833 12.132 2 11.0973 2 10C2 8.88867 2.20833 7.85033 2.625 6.885C3.04167 5.92033 3.61467 5.07333 4.344 4.344C5.07333 3.61467 5.924 3.04167 6.896 2.625C7.868 2.20833 8.90267 2 10 2C11.1113 2 12.1497 2.20833 13.115 2.625C14.0797 3.04167 14.9267 3.61467 15.656 4.344C16.3853 5.07333 16.9583 5.92033 17.375 6.885C17.7917 7.85033 18 8.88867 18 10C18 11.0973 17.7917 12.132 17.375 13.104C16.9583 14.076 16.3853 14.9267 15.656 15.656C14.9267 16.3853 14.0797 16.9583 13.115 17.375C12.1497 17.7917 11.1113 18 10 18ZM10 16.5C11.8053 16.5 13.34 15.868 14.604 14.604C15.868 13.34 16.5 11.8053 16.5 10C16.5 8.19467 15.868 6.66 14.604 5.396C13.34 4.132 11.8053 3.5 10 3.5C8.19467 3.5 6.66 4.132 5.396 5.396C4.132 6.66 3.5 8.19467 3.5 10C3.5 11.8053 4.132 13.34 5.396 14.604C6.66 15.868 8.19467 16.5 10 16.5Z",fill:"currentColor"})});or.displayName="CircleDotIcon",tr=rr.CircleDotIcon=or;var ar,ir={};Object.defineProperty(ir,"__esModule",{value:!0});var lr=e;const cr=e=>lr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:lr.jsx("path",{d:"M9.99991 11.229L5.97891 15.25C5.81224 15.4167 5.61091 15.4967 5.37491 15.49C5.13891 15.4827 4.93757 15.3957 4.77091 15.229C4.60424 15.0623 4.52091 14.8577 4.52091 14.615C4.52091 14.3717 4.60424 14.1667 4.77091 14L8.77091 10L4.74991 5.979C4.58324 5.81233 4.50324 5.60767 4.50991 5.365C4.51724 5.12167 4.60424 4.91667 4.77091 4.75C4.93757 4.58333 5.14224 4.5 5.38491 4.5C5.62824 4.5 5.83324 4.58333 5.99991 4.75L9.99991 8.771L14.0209 4.75C14.1876 4.58333 14.3922 4.5 14.6349 4.5C14.8782 4.5 15.0832 4.58333 15.2499 4.75C15.4166 4.91667 15.4999 5.12167 15.4999 5.365C15.4999 5.60767 15.4166 5.81233 15.2499 5.979L11.2289 10L15.2499 14.021C15.4166 14.1877 15.4999 14.389 15.4999 14.625C15.4999 14.861 15.4166 15.0623 15.2499 15.229C15.0832 15.3957 14.8782 15.479 14.6349 15.479C14.3922 15.479 14.1876 15.3957 14.0209 15.229L9.99991 11.229Z",fill:"currentColor"})});cr.displayName="CrossIcon",ar=ir.CrossIcon=cr;var dr,hr={};Object.defineProperty(hr,"__esModule",{value:!0});var sr=e;const gr=e=>sr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:sr.jsx("path",{d:"M4.5 17C4.08333 17 3.72933 16.854 3.438 16.562C3.146 16.2707 3 15.9167 3 15.5V4.5C3 4.08333 3.146 3.72933 3.438 3.438C3.72933 3.146 4.08333 3 4.5 3H15.5C15.9167 3 16.2707 3.146 16.562 3.438C16.854 3.72933 17 4.08333 17 4.5V15.5C17 15.9167 16.854 16.2707 16.562 16.562C16.2707 16.854 15.9167 17 15.5 17H4.5ZM4.5 15.5H15.5V4.5H4.5V15.5Z",fill:"currentColor"})});gr.displayName="SquareIcon",dr=hr.SquareIcon=gr;var ur,fr={};Object.defineProperty(fr,"__esModule",{value:!0});var pr=e;const yr=e=>pr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:pr.jsx("path",{d:"M4.25 17.5C3.764 17.5 3.35067 17.33 3.01 16.99C2.67 16.6493 2.5 16.236 2.5 15.75V4.25C2.5 3.764 2.67 3.35067 3.01 3.01C3.35067 2.67 3.764 2.5 4.25 2.5H15.75C16.236 2.5 16.6493 2.67 16.99 3.01C17.33 3.35067 17.5 3.764 17.5 4.25V15.75C17.5 16.236 17.33 16.6493 16.99 16.99C16.6493 17.33 16.236 17.5 15.75 17.5H4.25ZM8.875 13.188C8.98633 13.188 9.094 13.167 9.198 13.125C9.302 13.083 9.40267 13.0137 9.5 12.917L14.125 8.292C14.2917 8.12533 14.375 7.924 14.375 7.688C14.375 7.45133 14.2917 7.24267 14.125 7.062C13.9443 6.89533 13.736 6.812 13.5 6.812C13.264 6.812 13.0627 6.89533 12.896 7.062L8.875 11.083L7.125 9.333C6.95833 9.16633 6.757 9.083 6.521 9.083C6.285 9.083 6.08367 9.16633 5.917 9.333C5.73633 9.51367 5.646 9.722 5.646 9.958C5.646 10.194 5.73633 10.3953 5.917 10.562L8.25 12.917C8.34733 13.0137 8.448 13.083 8.552 13.125C8.656 13.167 8.76367 13.188 8.875 13.188Z",fill:"currentColor"})});yr.displayName="SquareTickFillIcon",ur=fr.SquareTickFillIcon=yr;var mr,Cr={};Object.defineProperty(Cr,"__esModule",{value:!0});var vr=e;const Sr=e=>vr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:vr.jsx("path",{d:"M7.97897 14.646C7.86764 14.646 7.75997 14.625 7.65597 14.583C7.55197 14.5417 7.4513 14.4723 7.35397 14.375L3.83297 10.854C3.6663 10.6873 3.58664 10.4757 3.59397 10.219C3.60064 9.96167 3.6873 9.74967 3.85397 9.583C4.02064 9.41634 4.22897 9.333 4.47897 9.333C4.72897 9.333 4.9373 9.41634 5.10397 9.583L8.02097 12.5L14.917 5.604C15.0836 5.43734 15.2883 5.354 15.531 5.354C15.7743 5.354 15.9793 5.43734 16.146 5.604C16.3126 5.77067 16.396 5.97567 16.396 6.219C16.396 6.46167 16.3126 6.66634 16.146 6.833L8.60397 14.375C8.50664 14.4723 8.40597 14.5417 8.30197 14.583C8.19797 14.625 8.0903 14.646 7.97897 14.646Z",fill:"currentColor"})});Sr.displayName="TickIcon",mr=Cr.TickIcon=Sr;const Fr=i.div`
215
215
  height: 1.625rem;
216
216
  width: 1.625rem;
217
217
  margin-right: 0.5rem;
@@ -221,10 +221,10 @@ import e,{jsxs as t,jsx as r}from"react/jsx-runtime";import{useState as n,useRef
221
221
  width: 100%;
222
222
 
223
223
  ${e=>e.$active&&!e.disabled?l`
224
- color: ${$t.Primary};
224
+ color: ${xt.Primary};
225
225
  `:l`
226
- color: ${$t.Neutral[4]};
226
+ color: ${xt.Neutral[4]};
227
227
  `};
228
228
  }
229
- `,yr=({type:e,active:t=!1,disabled:n,className:o})=>{let a;switch(e){case"checkbox":a=r(t?lr:nr,{});break;case"radio":a=r(t?Ut:Zt,{});break;case"tick":a=r(gr,{});break;case"cross":a=r(Yt,{});break;default:a=null}return r(pr,{className:o,$active:t,disabled:n,children:a})},mr=({type:e="checkbox",indicator:i,checked:l,styleType:c="default",children:d,disabled:h,error:g,name:s,id:u,className:f,"data-testid":p,onChange:y})=>{const[m,C]=n(l),[v]=n((()=>crypto.randomUUID())),S=u?`${u}-input`:v,F=o();a((()=>{C(l)}),[l]);return t(Tt,{$selected:m,$disabled:h,className:f,$styleType:c,$error:g,$indicator:i,id:u,"data-testid":p,children:[i&&(()=>{let t;switch(e){case"yes":t="tick";break;case"no":t="cross";break;case"checkbox":case"radio":t=e}return r(yr,{type:t,active:m,disabled:h})})(),r(Pt,{ref:F,name:s,id:S,type:"checkbox"===e?"checkbox":"radio","data-testid":"toggle-input",disabled:h,onChange:t=>{if(!h){switch(e){case"checkbox":m||C((e=>!e));break;case"radio":case"yes":case"no":m||C(!0)}y&&y(t)}},checked:m}),r(Rt,{children:r(Mt,{htmlFor:S,$selected:m,$indicator:i,$disabled:h,"data-testid":"toggle-label",children:d})})]})};export{mr as Toggle};
229
+ `,$r=({type:e,active:t=!1,disabled:n,className:o})=>{let a;switch(e){case"checkbox":a=r(t?ur:dr,{});break;case"radio":a=r(t?tr:Kt,{});break;case"tick":a=r(mr,{});break;case"cross":a=r(ar,{});break;default:a=null}return r(Fr,{className:o,$active:t,disabled:n,children:a})},br=({type:e="checkbox",indicator:i,checked:l,styleType:c="default",children:d,disabled:h,error:s,name:g,id:f,className:p,"data-testid":y,onChange:m})=>{const[C,v]=n(l),[S]=n((()=>u())),F=f?`${f}-input`:S,$=o();a((()=>{v(l)}),[l]);return t(Xt,{$selected:C,$disabled:h,className:p,$styleType:c,$error:s,$indicator:i,id:f,"data-testid":y,children:[i&&(()=>{let t;switch(e){case"yes":t="tick";break;case"no":t="cross";break;case"checkbox":case"radio":t=e}return r($r,{type:t,active:C,disabled:h})})(),r(Gt,{ref:$,name:g,id:F,type:"checkbox"===e?"checkbox":"radio","data-testid":"toggle-input",disabled:h,onChange:t=>{if(!h){switch(e){case"checkbox":C||v((e=>!e));break;case"radio":case"yes":case"no":C||v(!0)}m&&m(t)}},checked:C}),r(qt,{children:r(Jt,{htmlFor:F,$selected:C,$indicator:i,$disabled:h,"data-testid":"toggle-label",children:d})})]})};export{br as Toggle};
230
230
  //# sourceMappingURL=index.js.map