@lifesg/react-design-system 2.8.0 → 2.9.0-canary.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.
@@ -0,0 +1,3 @@
1
+ export * from "./local-nav-dropdown/local-nav-dropdown";
2
+ export * from "./local-nav-menu/local-nav-menu";
3
+ export * from "./types";
@@ -0,0 +1,219 @@
1
+ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import i,{useRef as r,useState as a,useImperativeHandle as o,useEffect as l}from"react";import{ChevronDownIcon as c}from"@lifesg/react-icons/chevron-down";import{TickIcon as d}from"@lifesg/react-icons/tick";import g,{css as s}from"styled-components";import{ExternalIcon as h}from"@lifesg/react-icons/external";var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var p=Array.isArray,F="object"==typeof f&&f&&f.Object===Object&&f,S="object"==typeof self&&self&&self.Object===Object&&self,m=F||S||Function("return this")(),y=m.Symbol,B=y,D=Object.prototype,v=D.hasOwnProperty,H=D.toString,b=B?B.toStringTag:void 0;var $=function(e){var t=v.call(e,b),n=e[b];try{e[b]=void 0;var i=!0}catch(e){}var r=H.call(e);return i&&(t?e[b]=n:delete e[b]),r},E=Object.prototype.toString;var x=$,k=function(e){return E.call(e)},A=y?y.toStringTag:void 0;var O=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":A&&A in Object(e)?x(e):k(e)};var w=O,z=function(e){return null!=e&&"object"==typeof e};var C=function(e){return"symbol"==typeof e||z(e)&&"[object Symbol]"==w(e)},_=p,W=C,P=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,I=/^\w*$/;var j=function(e,t){if(_(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!W(e))||(I.test(e)||!P.test(e)||null!=t&&e in Object(t))};var N=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},L=O,R=N;var T,V=function(e){if(!R(e))return!1;var t=L(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},J=m["__core-js_shared__"],M=(T=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+T:"";var G=function(e){return!!M&&M in e},X=Function.prototype.toString;var U=V,q=G,K=N,Q=function(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Y=/^\[object .+?Constructor\]$/,Z=Function.prototype,ee=Object.prototype,te=Z.toString,ne=ee.hasOwnProperty,ie=RegExp("^"+te.call(ne).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var re=function(e){return!(!K(e)||q(e))&&(U(e)?ie:Y).test(Q(e))},ae=function(e,t){return null==e?void 0:e[t]};var oe=function(e,t){var n=ae(e,t);return re(n)?n:void 0},le=oe(Object,"create"),ce=le;var de=function(){this.__data__=ce?ce(null):{},this.size=0};var ge=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},se=le,he=Object.prototype.hasOwnProperty;var fe=function(e){var t=this.__data__;if(se){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return he.call(t,e)?t[e]:void 0},ue=le,pe=Object.prototype.hasOwnProperty;var Fe=le;var Se=de,me=ge,ye=fe,Be=function(e){var t=this.__data__;return ue?void 0!==t[e]:pe.call(t,e)},De=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Fe&&void 0===t?"__lodash_hash_undefined__":t,this};function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}ve.prototype.clear=Se,ve.prototype.delete=me,ve.prototype.get=ye,ve.prototype.has=Be,ve.prototype.set=De;var He=ve;var be=function(){this.__data__=[],this.size=0};var $e=function(e,t){return e===t||e!=e&&t!=t};var Ee=function(e,t){for(var n=e.length;n--;)if($e(e[n][0],t))return n;return-1},xe=Ee,ke=Array.prototype.splice;var Ae=Ee;var Oe=Ee;var we=Ee;var ze=be,Ce=function(e){var t=this.__data__,n=xe(t,e);return!(n<0)&&(n==t.length-1?t.pop():ke.call(t,n,1),--this.size,!0)},_e=function(e){var t=this.__data__,n=Ae(t,e);return n<0?void 0:t[n][1]},We=function(e){return Oe(this.__data__,e)>-1},Pe=function(e,t){var n=this.__data__,i=we(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function Ie(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Ie.prototype.clear=ze,Ie.prototype.delete=Ce,Ie.prototype.get=_e,Ie.prototype.has=We,Ie.prototype.set=Pe;var je=Ie,Ne=oe(m,"Map"),Le=He,Re=je,Te=Ne;var Ve=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Je=function(e,t){var n=e.__data__;return Ve(t)?n["string"==typeof t?"string":"hash"]:n.map},Me=Je;var Ge=Je;var Xe=Je;var Ue=Je;var qe=function(){this.size=0,this.__data__={hash:new Le,map:new(Te||Re),string:new Le}},Ke=function(e){var t=Me(this,e).delete(e);return this.size-=t?1:0,t},Qe=function(e){return Ge(this,e).get(e)},Ye=function(e){return Xe(this,e).has(e)},Ze=function(e,t){var n=Ue(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function et(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}et.prototype.clear=qe,et.prototype.delete=Ke,et.prototype.get=Qe,et.prototype.has=Ye,et.prototype.set=Ze;var tt=et;function nt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],a=n.cache;if(a.has(r))return a.get(r);var o=e.apply(this,i);return n.cache=a.set(r,o)||a,o};return n.cache=new(nt.Cache||tt),n}nt.Cache=tt;var it=nt;var rt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,at=/\\(\\)?/g,ot=function(e){var t=it(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(rt,(function(e,n,i,r){t.push(i?r.replace(at,"$1"):n||e)})),t}));var lt=function(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r},ct=p,dt=C,gt=y?y.prototype:void 0,st=gt?gt.toString:void 0;var ht=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 n=t+"";return"0"==n&&1/t==-1/0?"-0":n},ft=ht;var ut=p,pt=j,Ft=ot,St=function(e){return null==e?"":ft(e)};var mt=C;var yt=function(e,t){return ut(e)?e:pt(e,t)?[e]:Ft(St(e))},Bt=function(e){if("string"==typeof e||mt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};var Dt=function(e,t){for(var n=0,i=(t=yt(t,e)).length;null!=e&&n<i;)e=e[Bt(t[n++])];return n&&n==i?e:void 0};var vt=u((function(e,t,n){var i=null==e?void 0:Dt(e,t);return void 0===i?n:i}));const Ht=(e,t,n)=>t?vt(n,t)||vt(e,t):n||e,bt=(e,t)=>{const n=t||e.defaultValue;return vt(e.collections,n)};var $t;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme",e.designTokenScheme="designTokenScheme",e.resourceScheme="resourceScheme"}($t||($t={}));const Et={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#4B539F",2:"#6D74B1",3:"#959BC5"},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:"#977ECC",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)"}},rbs:{Brand:{1:"#3E4DFF",2:"#AEACFF",3:"#AD44FF",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#4855D4",PrimaryDark:"#3E49B2",Secondary:"#364891",Accent:{Dark:{1:"#5E516E",2:"#7A6F87",3:"#C5C0CC"},Light:{1:"#8397FC",2:"#ABB8FC",3:"#CED6FD ",4:"#E1E4FA",5:"#F0F2FF",6:"#FAFBFF"}},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(90, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}},mylegacy:{Brand:{1:"#24588D",2:"#FFC166",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#0C7BB3",PrimaryDark:"#066391",Secondary:"#066391",Accent:{Dark:{1:"#4B539F",2:"#6D74B1",3:"#959BC5"},Light:{1:"#229AD6",2:"#8DD4F7",3:"#A4DDF9",4:"#BBE5FA",5:"#E8F4FA",6:"#F7FBFC"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#1A5230",Icon:"#2A854E",Border:"#7DDBA3",Background:"#E1FAEB"},Orange:{Text:"#693D07",Icon:"#CF7911",Border:"#F9CB77",Background:"#FCF2E6",Badge:"#F57F17"},Red:{Text:"#CB2213",Icon:"#CB2213",Border:"#DC6363",Background:"#FAF0F0"},Blue:{Text:"#064D70",Icon:" #066391",Border:"#84B7DB",Background:"#E8F4FA"}},Shadow:{Accent:"rgba(34, 154, 214, 0.6)",Red:"rgba(203, 34, 19, 0.5)",Elevation:"rgba(75, 83, 159, 0.24)"}},ccube:{Brand:{1:"#8D5197",2:"#FE3399",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#8D5197",PrimaryDark:"#6B3E73",Secondary:"#C02673",Accent:{Dark:{1:"#921D58",2:"#FF409F",3:"#FF88C4"},Light:{1:"#B07DB7",2:"#C7A2CC",3:"#D9C2DD",4:"#E9DBEB",5:"#F3ECF4",6:"#FAF7FA"}},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(210, 77, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}},oneservice:{Brand:{1:"#009F97",2:"#49C3CA",3:"#A81E5E",4:"#ED1386",5:"#F7D414",6:"#000000"},Primary:"#2D7990",PrimaryDark:"#205666",Secondary:"#0056B3",Accent:{Dark:{1:"#4B539F",2:"#6D74B1",3:"#959BC5"},Light:{1:"#5D97A9",2:"#8CB6C2",3:"#B2CED6",4:"#D1E2E7",5:"#E8F0F3",6:"#F7FAFB"}},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(45, 121, 144, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}}},defaultValue:"base"},xt=e=>t=>{const n=t.theme,i=bt(Et,n[$t.colorScheme]);return n.options&&n.options.color?Ht(i,e,n.options.color):Ht(i,e)},kt={Brand:{1:xt("Brand.1"),2:xt("Brand.2"),3:xt("Brand.3"),4:xt("Brand.4"),5:xt("Brand.5"),6:xt("Brand.6")},Primary:xt("Primary"),PrimaryDark:xt("PrimaryDark"),Secondary:xt("Secondary"),Accent:{Light:{1:xt("Accent.Light.1"),2:xt("Accent.Light.2"),3:xt("Accent.Light.3"),4:xt("Accent.Light.4"),5:xt("Accent.Light.5"),6:xt("Accent.Light.6")},Dark:{1:xt("Accent.Dark.1"),2:xt("Accent.Dark.2"),3:xt("Accent.Dark.3")}},Neutral:{1:xt("Neutral.1"),2:xt("Neutral.2"),3:xt("Neutral.3"),4:xt("Neutral.4"),5:xt("Neutral.5"),6:xt("Neutral.6"),7:xt("Neutral.7"),8:xt("Neutral.8")},Validation:{Green:{Text:xt("Validation.Green.Text"),Icon:xt("Validation.Green.Icon"),Border:xt("Validation.Green.Border"),Background:xt("Validation.Green.Background")},Orange:{Text:xt("Validation.Orange.Text"),Icon:xt("Validation.Orange.Icon"),Border:xt("Validation.Orange.Border"),Background:xt("Validation.Orange.Background"),Badge:xt("Validation.Orange.Badge")},Red:{Text:xt("Validation.Red.Text"),Icon:xt("Validation.Red.Icon"),Border:xt("Validation.Red.Border"),Background:xt("Validation.Red.Background")},Blue:{Text:xt("Validation.Blue.Text"),Icon:xt("Validation.Blue.Icon"),Border:xt("Validation.Blue.Border"),Background:xt("Validation.Blue.Background")}},Shadow:{Accent:xt("Shadow.Accent"),Red:xt("Shadow.Red"),Elevation:xt("Shadow.Elevation")}};"function"==typeof SuppressedError&&SuppressedError;const At={OpenSans:{Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},PlusJakartaSans:{Regular:"Plus Jakarta Sans",Semibold:"Plus Jakarta Sans Semibold",Bold:"Plus Jakarta Sans Bold",Light:"Plus Jakarta Sans Light"},MerriWeather:"Merriweather"},Ot={D1:{fontFamily:At.OpenSans.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:At.OpenSans.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:At.OpenSans.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:At.OpenSans.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:At.OpenSans.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:At.OpenSans.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:At.OpenSans.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:At.OpenSans.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:At.OpenSans.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:At.OpenSans.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:At.OpenSans.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:At.OpenSans.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:At.OpenSans.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:At.OpenSans.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}},wt={D1:{fontFamily:At.PlusJakartaSans.Bold,fontSize:3,fontWeight:700,lineHeight:3.5,letterSpacing:-.056},D2:{fontFamily:At.PlusJakartaSans.Bold,fontSize:2.5,fontWeight:700,lineHeight:3,letterSpacing:-.032},D3:{fontFamily:At.PlusJakartaSans.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:At.PlusJakartaSans.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:At.PlusJakartaSans.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:At.PlusJakartaSans.Bold,fontSize:2,fontWeight:700,lineHeight:2.5,letterSpacing:-.032},H2:{fontFamily:At.PlusJakartaSans.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:At.PlusJakartaSans.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:At.PlusJakartaSans.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.75},H5:{fontFamily:At.PlusJakartaSans.Bold,fontSize:1,fontWeight:700,lineHeight:1.5},H6:{fontFamily:At.PlusJakartaSans.Bold,fontSize:.875,fontWeight:700,lineHeight:1.625,letterSpacing:.012},Body:{fontFamily:At.PlusJakartaSans.Regular,fontSize:1.125,lineHeight:1.75},BodySmall:{fontFamily:At.PlusJakartaSans.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:At.PlusJakartaSans.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}},zt={collections:{base:Ot,oneservice:{D1:{fontFamily:At.OpenSans.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5},D2:{fontFamily:At.OpenSans.Bold,fontSize:2,fontWeight:700,lineHeight:3},D3:{fontFamily:At.OpenSans.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:At.OpenSans.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:At.OpenSans.Regular,fontSize:1.125,lineHeight:1.625},H1:{fontFamily:At.OpenSans.Bold,fontSize:1.75,fontWeight:700,lineHeight:2.625},H2:{fontFamily:At.OpenSans.Bold,fontSize:1.375,fontWeight:700,lineHeight:2},H3:{fontFamily:At.OpenSans.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H4:{fontFamily:At.OpenSans.Bold,fontSize:1,fontWeight:700,lineHeight:1.5},H5:{fontFamily:At.OpenSans.Bold,fontSize:.875,fontWeight:700,lineHeight:1.313},H6:{fontFamily:At.OpenSans.Bold,fontSize:.75,fontWeight:700,lineHeight:1.125},Body:{fontFamily:At.OpenSans.Regular,fontSize:1,lineHeight:1.5},BodySmall:{fontFamily:At.OpenSans.Regular,fontSize:.875,lineHeight:1.313},XSmall:{fontFamily:At.OpenSans.Regular,fontSize:.75,lineHeight:1.125}},plusJakartaSans:wt},defaultValue:"base"},Ct=e=>t=>{const n=t.theme,i=bt(zt,n[$t.textStyleScheme]);return n.options&&n.options.textStyle?Ht(i,e,n.options.textStyle):Ht(i,e)},_t={D1:{fontFamily:Ct("D1.fontFamily"),fontSize:Ct("D1.fontSize"),fontWeight:Ct("D1.fontWeight"),lineHeight:Ct("D1.lineHeight"),letterSpacing:Ct("D1.letterSpacing")},D2:{fontFamily:Ct("D2.fontFamily"),fontSize:Ct("D2.fontSize"),fontWeight:Ct("D2.fontWeight"),lineHeight:Ct("D2.lineHeight"),letterSpacing:Ct("D2.letterSpacing")},D3:{fontFamily:Ct("D3.fontFamily"),fontSize:Ct("D3.fontSize"),fontWeight:Ct("D3.fontWeight"),lineHeight:Ct("D3.lineHeight"),letterSpacing:Ct("D3.letterSpacing")},D4:{fontFamily:Ct("D4.fontFamily"),fontSize:Ct("D4.fontSize"),fontWeight:Ct("D4.fontWeight"),lineHeight:Ct("D4.lineHeight"),letterSpacing:Ct("D4.letterSpacing")},DBody:{fontFamily:Ct("DBody.fontFamily"),fontSize:Ct("DBody.fontSize"),fontWeight:Ct("DBody.fontWeight"),lineHeight:Ct("DBody.lineHeight"),letterSpacing:Ct("DBody.letterSpacing")},H1:{fontFamily:Ct("H1.fontFamily"),fontSize:Ct("H1.fontSize"),fontWeight:Ct("H1.fontWeight"),lineHeight:Ct("H1.lineHeight"),letterSpacing:Ct("H1.letterSpacing")},H2:{fontFamily:Ct("H2.fontFamily"),fontSize:Ct("H2.fontSize"),fontWeight:Ct("H2.fontWeight"),lineHeight:Ct("H2.lineHeight"),letterSpacing:Ct("H2.letterSpacing")},H3:{fontFamily:Ct("H3.fontFamily"),fontSize:Ct("H3.fontSize"),fontWeight:Ct("H3.fontWeight"),lineHeight:Ct("H3.lineHeight"),letterSpacing:Ct("H3.letterSpacing")},H4:{fontFamily:Ct("H4.fontFamily"),fontSize:Ct("H4.fontSize"),fontWeight:Ct("H4.fontWeight"),lineHeight:Ct("H4.lineHeight"),letterSpacing:Ct("H4.letterSpacing")},H5:{fontFamily:Ct("H5.fontFamily"),fontSize:Ct("H5.fontSize"),fontWeight:Ct("H5.fontWeight"),lineHeight:Ct("H5.lineHeight"),letterSpacing:Ct("H5.letterSpacing")},H6:{fontFamily:Ct("H6.fontFamily"),fontSize:Ct("H6.fontSize"),fontWeight:Ct("H6.fontWeight"),lineHeight:Ct("H6.lineHeight"),letterSpacing:Ct("H6.letterSpacing")},Body:{fontFamily:Ct("Body.fontFamily"),fontSize:Ct("Body.fontSize"),fontWeight:Ct("Body.fontWeight"),lineHeight:Ct("Body.lineHeight"),letterSpacing:Ct("Body.letterSpacing")},BodySmall:{fontFamily:Ct("BodySmall.fontFamily"),fontSize:Ct("BodySmall.fontSize"),fontWeight:Ct("BodySmall.fontWeight"),lineHeight:Ct("BodySmall.lineHeight"),letterSpacing:Ct("BodySmall.letterSpacing")},XSmall:{fontFamily:Ct("XSmall.fontFamily"),fontSize:Ct("XSmall.fontSize"),fontWeight:Ct("XSmall.fontWeight"),lineHeight:Ct("XSmall.lineHeight"),letterSpacing:Ct("XSmall.letterSpacing")}},Wt=[At.OpenSans,At.PlusJakartaSans],Pt=(e,t)=>{switch(t){case 700:case"bold":return e.Bold;case 600:case"semibold":return e.Semibold;case 300:case"light":return e.Light;case 400:case"regular":return e.Regular;default:return""}},It=(e,t)=>n=>{var i;const r=_t[e].fontFamily(n),a=_t[e].fontWeight(n),o=Wt.find((e=>Object.values(e).includes(r)));return o?s`
2
+ font-family: ${Pt(o,t)||Pt(o,a)||r};
3
+ font-weight: normal !important;
4
+ `:s`
5
+ font-family: ${r};
6
+ font-weight: ${null!==(i=jt(t)||a)&&void 0!==i?i:"normal"};
7
+ `},jt=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""}},Nt=e=>{if(e>0)return s`
8
+ display: -webkit-box;
9
+ -webkit-box-orient: vertical;
10
+ -webkit-line-clamp: ${e};
11
+ line-clamp: ${e};
12
+ overflow: hidden;
13
+ `},Lt=(e,t,n=!1)=>i=>{const r=_t[e],a=r.fontSize(i);return s`
14
+ ${It(e,t)}
15
+ font-size: ${a}rem !important;
16
+ line-height: ${r.lineHeight}rem !important;
17
+ letter-spacing: ${r.letterSpacing(i)||0}rem !important;
18
+ ${s`
19
+ margin-bottom: ${a*(n?1.05:0)}rem;
20
+ `}
21
+ `},Rt=(e=!1,t=!1,n=void 0)=>t?s`
22
+ display: block;
23
+ ${Nt(n)}
24
+ `:e?s`
25
+ display: inline;
26
+ `:s`
27
+ display: block;
28
+ ${Nt(n)}
29
+ `;var Tt;!function(e){e.D1=g.h1`
30
+ ${e=>s`
31
+ ${Lt("D1",e.weight,e.paragraph)}
32
+ color: ${kt.Neutral[1]};
33
+ ${Rt(e.inline,e.paragraph,e.maxLines)}
34
+ `}
35
+ `,e.D2=g.h1`
36
+ ${e=>s`
37
+ ${Lt("D2",e.weight,e.paragraph)}
38
+ color: ${kt.Neutral[1]};
39
+ ${Rt(e.inline,e.paragraph,e.maxLines)}
40
+ `}
41
+ `,e.D3=g.h1`
42
+ ${e=>s`
43
+ ${Lt("D3",e.weight,e.paragraph)}
44
+ color: ${kt.Neutral[1]};
45
+ ${Rt(e.inline,e.paragraph,e.maxLines)}
46
+ `}
47
+ `,e.D4=g.h1`
48
+ ${e=>s`
49
+ ${Lt("D4",e.weight,e.paragraph)}
50
+ color: ${kt.Neutral[1]};
51
+ ${Rt(e.inline,e.paragraph,e.maxLines)}
52
+ `}
53
+ `,e.DBody=g.h1`
54
+ ${e=>s`
55
+ ${Lt("DBody",e.weight,e.paragraph)}
56
+ color: ${kt.Neutral[1]};
57
+ ${Rt(e.inline,e.paragraph,e.maxLines)}
58
+ `}
59
+ `,e.H1=g.h1`
60
+ ${e=>s`
61
+ ${Lt("H1",e.weight,e.paragraph)}
62
+ color: ${kt.Neutral[1]};
63
+ ${Rt(e.inline,e.paragraph,e.maxLines)}
64
+ `}
65
+ `,e.H2=g.h2`
66
+ ${e=>s`
67
+ ${Lt("H2",e.weight,e.paragraph)}
68
+ color: ${kt.Neutral[1]};
69
+ ${Rt(e.inline,e.paragraph,e.maxLines)}
70
+ `}
71
+ `,e.H3=g.h3`
72
+ ${e=>s`
73
+ ${Lt("H3",e.weight,e.paragraph)}
74
+ color: ${kt.Neutral[1]};
75
+ ${Rt(e.inline,e.paragraph,e.maxLines)}
76
+ `}
77
+ `,e.H4=g.h4`
78
+ ${e=>s`
79
+ ${Lt("H4",e.weight,e.paragraph)}
80
+ color: ${kt.Neutral[1]};
81
+ ${Rt(e.inline,e.paragraph,e.maxLines)}
82
+ `}
83
+ `,e.H5=g.h5`
84
+ ${e=>s`
85
+ ${Lt("H5",e.weight,e.paragraph)}
86
+ color: ${kt.Neutral[1]};
87
+ ${Rt(e.inline,e.paragraph,e.maxLines)}
88
+ `}
89
+ `,e.H6=g.h6`
90
+ ${e=>s`
91
+ ${Lt("H6",e.weight,e.paragraph)}
92
+ color: ${kt.Neutral[1]};
93
+ ${Rt(e.inline,e.paragraph,e.maxLines)}
94
+ `}
95
+ `,e.Body=g.p`
96
+ ${e=>s`
97
+ ${Lt("Body",e.weight,e.paragraph)}
98
+ color: ${kt.Neutral[1]};
99
+ ${Rt(e.inline,e.paragraph,e.maxLines)}
100
+ `}
101
+ `,e.BodySmall=g.p`
102
+ ${e=>s`
103
+ ${Lt("BodySmall",e.weight,e.paragraph)}
104
+ color: ${kt.Neutral[1]};
105
+ ${Rt(e.inline,e.paragraph,e.maxLines)}
106
+ `}
107
+ `,e.XSmall=g.span`
108
+ ${e=>s`
109
+ ${Lt("XSmall",e.weight,e.paragraph)}
110
+ color: ${kt.Neutral[1]};
111
+ ${Rt(e.inline,e.paragraph,e.maxLines)}
112
+ `}
113
+ `,e.Hyperlink={Default:e=>Mt(Object.assign(Object.assign({},e),{textStyle:"Body"})),Small:e=>Mt(Object.assign(Object.assign({},e),{textStyle:"BodySmall"}))}}(Tt||(Tt={}));const Vt=g.a`
114
+ ${e=>s`
115
+ ${Lt(e.textStyle,e.weight)}
116
+ color: ${kt.Primary};
117
+ text-decoration: none;
118
+
119
+ :hover,
120
+ :active,
121
+ :focus {
122
+ color: ${kt.Secondary};
123
+
124
+ svg {
125
+ color: ${kt.Secondary};
126
+ }
127
+ }
128
+ `}
129
+ `,Jt=g(h)`
130
+ height: 1rem;
131
+ width: 1rem;
132
+ margin-left: 0.4rem;
133
+ vertical-align: middle;
134
+ `,Mt=n=>{var{external:i=!1,children:r}=n,a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(n,["external","children"]);return e(Vt,Object.assign({},a,{children:[r,i&&t(Jt,{})]}))},Gt=g.div`
135
+ position: fixed;
136
+ top: 0;
137
+ right: 0;
138
+ left: 0;
139
+ bottom: 0;
140
+ background-color: ${kt.Neutral[1]}D9;
141
+ z-index: -1;
142
+ `,Xt=g(Tt.BodySmall)`
143
+ margin: 0;
144
+ ${e=>e.$isSelected&&s`
145
+ color: ${kt.Primary};
146
+ `}
147
+ `,Ut=g(d)`
148
+ color: ${kt.Primary};
149
+ margin: 0 8px;
150
+ `,qt=g(c)`
151
+ color: ${kt.Primary};
152
+ transition: transform 250ms ease-in-out;
153
+ transform: rotate(${e=>e.$isDropdownExpanded?180:0}deg);
154
+ `,Kt=g.div`
155
+ cursor: pointer;
156
+ background: ${kt.Neutral[8]};
157
+ padding: 12px 16px;
158
+ box-shadow: 0px 0px 1px 1px ${kt.Neutral[5]};
159
+ overflow: hidden;
160
+ border-radius: ${e=>e.$isDropdownExpanded?"4px 4px 0 0":"4px"};
161
+ display: flex;
162
+ justify-content: space-between;
163
+ align-items: center;
164
+ transition: all 200ms linear;
165
+ `,Qt=g.li`
166
+ padding: ${e=>e.$isSelected?"12px 8px 12px 0":"12px 8px 12px 32px"};
167
+ background: ${e=>e.$isSelected?kt.Accent.Light[5]:kt.Neutral[8]};
168
+ position: relative; /* Ensures that the tick mark is positioned relative to the selected item */
169
+ display: flex;
170
+ align-items: center; /* Vertically align text and tick */
171
+ `,Yt=g.ul`
172
+ transition: all 300ms;
173
+ transform-origin: top;
174
+ list-style-type: none;
175
+ padding: 0px 8px 0px 8px;
176
+ margin: 0;
177
+ background: ${kt.Neutral[8]};
178
+ cursor: pointer;
179
+ box-shadow: 0px 0px 1px 1px ${kt.Neutral[5]};
180
+ border-bottom-right-radius: 4px;
181
+ border-bottom-left-radius: 4px;
182
+ overflow-y: auto; /* Enables vertical scrolling */
183
+ max-height: ${e=>e.$viewportHeight}px; /* Set a max height for the dropdown list */
184
+ `,Zt=g.nav`
185
+ display: block;
186
+ position: sticky;
187
+ top: ${e=>e.$stickyOffset}px;
188
+ width: 100%;
189
+ z-index: 10;
190
+
191
+ ${e=>e.$isStickied&&`${Kt} {\n ${e.$sideMargin&&`margin: 0 -${e.$sideMargin}px;`}\n\t\t\tpadding: 12px 16px;\n\t\t\tborder-radius: 0;\n\t\t}\n\n\t\t${Yt} {\n ${e.$sideMargin&&`margin-left: -${e.$sideMargin}px;`}\n ${e.$sideMargin&&`margin-right: -${e.$sideMargin}px;`}\n\t\t\tborder-radius-bottom-left: 4px;\n\t\t\tborder-radius-bottom-right: 4px;\n\n\t\t}\n\n\t\t`}
192
+ `,en=i.forwardRef((({defaultLabel:i,stickyOffset:c=0,onNavItemSelect:d,items:g,selectedItemIndex:s,id:h,"data-testid":f,className:u,renderItem:p},F)=>{const S=r(null),m=r(null),y=r(null),[B,D]=a(!1),[v,H]=a(!1),[b,$]=a(0),[E,x]=a(0),[k,A]=a(0),O=f||"local-nav-dropdown";o(F,(()=>y.current));const w=s>=0&&B?g[s].title:i;l((()=>{if(m.current){const e=m.current.getBoundingClientRect().height;x(e)}}),[]),l((()=>{$(window.innerHeight);const e=()=>{$(window.innerHeight)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),l((()=>{const e=new IntersectionObserver((e=>{const[t]=e;D(!t.isIntersecting)}),{threshold:1,rootMargin:`-${c}px 0px 0px 0px`});return S.current&&e.observe(S.current),()=>e.disconnect()}),[c]),l((()=>{document.body.style.overflow=v&&B?"hidden":"auto"}),[v,B]),l((()=>{const e=()=>{const e=null==y?void 0:y.current;if(e){const t=e.getBoundingClientRect(),n=document.body.clientWidth-t.right,i=t.left,r=Math.max(n,i);A(r)}};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]);return e(n,{children:[t("span",{ref:S,"data-testid":"sticky-ref"}),e(Zt,Object.assign({$isStickied:B,$sideMargin:k,$stickyOffset:c,ref:y,id:h,"data-testid":O,className:u},{children:[e(Kt,Object.assign({ref:m,onClick:()=>{H((e=>!e))},"data-testid":`${O}-label`,$isDropdownExpanded:v},{children:[t(Xt,Object.assign({weight:"bold"},{children:w})),t(qt,{$isDropdownExpanded:v})]})),v&&t(Yt,Object.assign({"data-testid":`${O}-dropdown-list`,$viewportHeight:b-E-c},{children:g.map(((i,r)=>(({handleClick:i,isSelected:r,item:a,renderItem:o})=>{const{id:l,title:c}=a;return t(Qt,Object.assign({id:l,$isSelected:r,onClick:i},{children:o?o(a,{selected:r}):e(n,{children:[r&&t(Ut,{}),t(Xt,Object.assign({$isSelected:r},{children:c}))]})}))})({handleClick:e=>((e,t,n)=>{d&&d(e,t,n),H(!1)})(e,i,r),isSelected:r===s&&B,item:i,renderItem:p})))})),v&&B&&t(Gt,{onClick:()=>{H(!1)}})]}))]})})),tn=g.ul`
193
+ list-style-type: none;
194
+ padding: 0;
195
+ margin-top: 0;
196
+ `,nn=g(Tt.Body)`
197
+ margin: 0;
198
+ `,rn=g.li`
199
+ position: relative;
200
+ margin: 0;
201
+ padding: 1rem;
202
+ cursor: pointer;
203
+
204
+ &::before {
205
+ content: "";
206
+ position: absolute;
207
+ left: 0;
208
+ width: 4px;
209
+ height: 100%;
210
+ top: 0;
211
+ background-color: ${e=>e.$isSelected?kt.Primary:kt.Accent.Light[5]};
212
+ transition: all 250ms linear;
213
+ }
214
+
215
+ &:hover {
216
+ background-color: ${kt.Accent.Light[6]};
217
+ }
218
+ `,an=i.forwardRef((({onNavItemSelect:e,items:n,selectedItemIndex:i,id:r,"data-testid":a,className:o,renderItem:l},c)=>{const d=a||"local-nav-menu";return t(tn,Object.assign({ref:c,id:r,className:o,"data-testid":d},{children:n.map(((n,r)=>(({handleClick:e,isSelected:n,item:i,renderItem:r})=>{const{id:a,title:o}=i;return t(rn,Object.assign({id:a,$isSelected:n,onClick:e},{children:r?r(i,{selected:n}):t(nn,Object.assign({weight:n?"semibold":"regular"},{children:o}))}))})({handleClick:t=>e(t,n,r),isSelected:r===i,item:n,renderItem:l})))}))}));export{en as LocalNavDropdown,an as LocalNavMenu};
219
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../node_modules/lodash/isArray.js","../../node_modules/lodash/_root.js","../../node_modules/lodash/_freeGlobal.js","../../node_modules/lodash/_Symbol.js","../../node_modules/lodash/_getRawTag.js","../../node_modules/lodash/_objectToString.js","../../node_modules/lodash/_baseGetTag.js","../../node_modules/lodash/isObjectLike.js","../../node_modules/lodash/isSymbol.js","../../node_modules/lodash/_isKey.js","../../node_modules/lodash/isObject.js","../../node_modules/lodash/isFunction.js","../../node_modules/lodash/_isMasked.js","../../node_modules/lodash/_coreJsData.js","../../node_modules/lodash/_toSource.js","../../node_modules/lodash/_baseIsNative.js","../../node_modules/lodash/_getValue.js","../../node_modules/lodash/_getNative.js","../../node_modules/lodash/_nativeCreate.js","../../node_modules/lodash/_hashClear.js","../../node_modules/lodash/_hashDelete.js","../../node_modules/lodash/_hashGet.js","../../node_modules/lodash/_hashHas.js","../../node_modules/lodash/_hashSet.js","../../node_modules/lodash/_Hash.js","../../node_modules/lodash/_listCacheClear.js","../../node_modules/lodash/eq.js","../../node_modules/lodash/_assocIndexOf.js","../../node_modules/lodash/_listCacheDelete.js","../../node_modules/lodash/_listCacheGet.js","../../node_modules/lodash/_listCacheHas.js","../../node_modules/lodash/_listCacheSet.js","../../node_modules/lodash/_ListCache.js","../../node_modules/lodash/_Map.js","../../node_modules/lodash/_mapCacheClear.js","../../node_modules/lodash/_isKeyable.js","../../node_modules/lodash/_getMapData.js","../../node_modules/lodash/_mapCacheDelete.js","../../node_modules/lodash/_mapCacheGet.js","../../node_modules/lodash/_mapCacheHas.js","../../node_modules/lodash/_mapCacheSet.js","../../node_modules/lodash/_MapCache.js","../../node_modules/lodash/memoize.js","../../node_modules/lodash/_memoizeCapped.js","../../node_modules/lodash/_stringToPath.js","../../node_modules/lodash/_arrayMap.js","../../node_modules/lodash/_baseToString.js","../../node_modules/lodash/toString.js","../../node_modules/lodash/_castPath.js","../../node_modules/lodash/_toKey.js","../../node_modules/lodash/_baseGet.js","../../node_modules/lodash/get.js","../../src/theme/helper.ts","../../src/theme/types.ts","../../src/theme/color-theme-helper.ts","../../src/spec/color-spec/base-color-set.ts","../../src/spec/color-spec/bookingsg-color-set.ts","../../src/spec/color-spec/rbs-color-set.ts","../../src/spec/color-spec/mylegacy-color-set.ts","../../src/spec/color-spec/ccube-color-set.ts","../../src/spec/color-spec/oneservice-color-set.ts","../../src/color/color.ts","../../src/spec/text-spec/font-spec.ts","../../src/spec/text-spec/base-text-style-set.ts","../../src/spec/text-spec/base-plus-jakarta-sans-text-style-set.ts","../../src/theme/text-theme-helper.ts","../../src/spec/text-spec/oneservice-text-style-set.ts","../../src/text/text-style.ts","../../src/text/helper.ts","../../src/text/text.tsx","../../src/local-nav/local-nav-dropdown/local-nav-dropdown.styles.tsx","../../src/local-nav/local-nav-dropdown/local-nav-dropdown.tsx","../../src/local-nav/local-nav-menu/local-nav-menu.styles.tsx","../../src/local-nav/local-nav-menu/local-nav-menu.tsx"],"sourcesContent":["/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/;\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n}\n\nmodule.exports = isKey;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n","var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n","var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","var getNative = require('./_getNative');\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n","var nativeCreate = require('./_nativeCreate');\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nmodule.exports = hashClear;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n","var hashClear = require('./_hashClear'),\n hashDelete = require('./_hashDelete'),\n hashGet = require('./_hashGet'),\n hashHas = require('./_hashHas'),\n hashSet = require('./_hashSet');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n","var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nmodule.exports = listCacheSet;\n","var listCacheClear = require('./_listCacheClear'),\n listCacheDelete = require('./_listCacheDelete'),\n listCacheGet = require('./_listCacheGet'),\n listCacheHas = require('./_listCacheHas'),\n listCacheSet = require('./_listCacheSet');\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n","var Hash = require('./_Hash'),\n ListCache = require('./_ListCache'),\n Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nmodule.exports = mapCacheClear;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nmodule.exports = isKeyable;\n","var isKeyable = require('./_isKeyable');\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nmodule.exports = getMapData;\n","var getMapData = require('./_getMapData');\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = mapCacheDelete;\n","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n","var getMapData = require('./_getMapData');\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n","var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;\n","var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n","var MapCache = require('./_MapCache');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n}\n\n// Expose `MapCache`.\nmemoize.Cache = MapCache;\n\nmodule.exports = memoize;\n","var memoize = require('./memoize');\n\n/** Used as the maximum memoize cache size. */\nvar MAX_MEMOIZE_SIZE = 500;\n\n/**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\nfunction memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n}\n\nmodule.exports = memoizeCapped;\n","var memoizeCapped = require('./_memoizeCapped');\n\n/** Used to match property names within property paths. */\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n});\n\nmodule.exports = stringToPath;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n","var Symbol = require('./_Symbol'),\n arrayMap = require('./_arrayMap'),\n isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n","var baseToString = require('./_baseToString');\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n","var isArray = require('./isArray'),\n isKey = require('./_isKey'),\n stringToPath = require('./_stringToPath'),\n toString = require('./toString');\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\n\nmodule.exports = castPath;\n","var isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = toKey;\n","var castPath = require('./_castPath'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n}\n\nmodule.exports = baseGet;\n","var baseGet = require('./_baseGet');\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n}\n\nmodule.exports = get;\n","import get from \"lodash/get\";\nimport { ThemeCollectionSpec } from \"./types\";\n\n/**\n *\n * @param collection the collection of theme-specific style attributes\n * @param attributePath (optional) the path to the value within the selected collection\n * @param attributePath (optional) the path to the value within the selected collection\n * @returns style value\n */\nexport const getValue = <C, T>(\n collection: C,\n attributePath?: string,\n customCollection?: T\n): string | number => {\n return attributePath\n ? get(customCollection, attributePath) || get(collection, attributePath)\n : customCollection || collection;\n};\n\n/**\n * Gets the theme set based on the theme context value\n * @param collectionSpec the collections of theme-specific style attributes\n * @param contextValue (optional) the theme context value\n * @returns the selected collection\n */\nexport const getCollection = <T, V, C>(\n collectionSpec: ThemeCollectionSpec<T, V>,\n contextValue?: string\n): C => {\n const themeContextValue = contextValue || collectionSpec.defaultValue;\n return get(collectionSpec.collections, themeContextValue as string);\n};\n","import { ColorSet, ColorSetOptions } from \"../color/types\";\nimport { DesignTokenSet, DesignTokenSetOptions } from \"../design-token/types\";\nimport { TextStyleSetOptionsType, TextStyleSetType } from \"../text/types\";\n\nexport type ThemeLayout = \"normal\";\n\n// =============================================================================\n// COLOR THEMES\n// =============================================================================\nexport type ColorScheme =\n | \"base\"\n | \"bookingsg\"\n | \"rbs\"\n | \"mylegacy\"\n | \"ccube\"\n | \"oneservice\";\nexport type ColorCollectionsMap = {\n [key in ColorScheme]: ColorSet;\n};\n\n// =============================================================================\n// FONT STYLE THEMES\n// =============================================================================\nexport type TextStyleScheme = \"base\" | \"oneservice\" | \"plusJakartaSans\";\nexport type FontStyleCollectionsMap = {\n [key in TextStyleScheme]: TextStyleSetType;\n};\n\n// =============================================================================\n// DESIGN TOKEN THEMES\n// =============================================================================\nexport type DesignTokenScheme = \"base\" | \"rbs\";\nexport type DesignTokenCollectionsMap = {\n [key in DesignTokenScheme]: DesignTokenSet;\n};\n\n// =============================================================================\n// RESOURCE THEMES\n// =============================================================================\nexport type ResourceScheme =\n | \"base\"\n | \"bookingsg\"\n | \"rbs\"\n | \"ccube\"\n | \"mylegacy\";\n\n// =============================================================================\n// GENERAL\n// =============================================================================\nexport enum ThemeContextKeys {\n colorScheme = \"colorScheme\",\n layout = \"layout\",\n textStyleScheme = \"textStyleScheme\",\n designTokenScheme = \"designTokenScheme\",\n resourceScheme = \"resourceScheme\",\n}\n\nexport interface ThemeSpecOptions {\n /** for color customisation, can specify subset of set */\n color?: ColorSetOptions | undefined;\n textStyle?: TextStyleSetOptionsType | undefined;\n designToken?: DesignTokenSetOptions | undefined;\n}\n\nexport interface ThemeSpec {\n /** Sets the color scheme of the theme */\n [ThemeContextKeys.colorScheme]: ColorScheme;\n /** Sets the text style scheme of the theme */\n [ThemeContextKeys.textStyleScheme]: TextStyleScheme;\n /** Sets the design token scheme of the theme */\n [ThemeContextKeys.designTokenScheme]: DesignTokenScheme;\n /** Sets the layout scheme of the theme */\n [ThemeContextKeys.layout]?: ThemeLayout | undefined;\n /** Sets the resource scheme (e.g. images, text) of the theme */\n [ThemeContextKeys.resourceScheme]: ResourceScheme;\n /** For specific customisations to any schemes */\n options?: ThemeSpecOptions | undefined;\n}\n\nexport interface ThemeCollectionSpec<T, V> {\n collections: T;\n defaultValue: V;\n}\n","import { ColorSet } from \"../color/types\";\nimport { BaseColorSet } from \"../spec/color-spec/base-color-set\";\nimport { BookingSGColorSet } from \"../spec/color-spec/bookingsg-color-set\";\nimport { CCubeColorSet } from \"../spec/color-spec/ccube-color-set\";\nimport { MyLegacyColorSet } from \"../spec/color-spec/mylegacy-color-set\";\nimport { OneServiceColorSet } from \"../spec/color-spec/oneservice-color-set\";\nimport { RBSColorSet } from \"../spec/color-spec/rbs-color-set\";\nimport { getCollection, getValue } from \"./helper\";\nimport {\n ColorCollectionsMap,\n ColorScheme,\n ThemeCollectionSpec,\n ThemeContextKeys,\n ThemeSpec,\n} from \"./types\";\n\n// =============================================================================\n// THEME SPECIFICATION\n// =============================================================================\nconst ColorSpec: ThemeCollectionSpec<ColorCollectionsMap, ColorScheme> = {\n collections: {\n base: BaseColorSet,\n bookingsg: BookingSGColorSet,\n rbs: RBSColorSet,\n mylegacy: MyLegacyColorSet,\n ccube: CCubeColorSet,\n oneservice: OneServiceColorSet,\n },\n defaultValue: \"base\",\n};\n\n// =============================================================================\n// HELPER FUNCTIONS\n// =============================================================================\nexport const getThemeColors = (attributePath: string) => {\n return (props: any): string => {\n const theme = props.theme as ThemeSpec;\n const colorSet: ColorSet = getCollection(\n ColorSpec,\n theme[ThemeContextKeys.colorScheme]\n );\n\n return theme.options && theme.options.color\n ? (getValue(colorSet, attributePath, theme.options.color) as string)\n : (getValue(colorSet, attributePath) as string);\n };\n};\n","import { ColorSet, ValidationTypes } from \"../../color/types\";\n\nexport const BaseColorSet: ColorSet = {\n Brand: {\n 1: \"#EF413D\",\n 2: \"#F26664\",\n 3: \"#F58E8B\",\n 4: \"#F9B5B2\",\n 5: \"#FDDDD7\",\n 6: \"#FFEEEA\",\n },\n Primary: \"#1C76D5\",\n PrimaryDark: \"#1869BF\",\n Secondary: \"#0056b3\",\n Accent: {\n Dark: {\n 1: \"#4B539F\",\n 2: \"#6D74B1\",\n 3: \"#959BC5\",\n },\n Light: {\n 1: \"#57A9FF\",\n 2: \"#81BFFF\",\n 3: \"#BED7FF\",\n 4: \"#E2ECFD\",\n 5: \"#F6F8FF\",\n 6: \"#FBFCFE\",\n },\n },\n Neutral: {\n 1: \"#282828\", // Text Black\n 2: \"#424242\",\n 3: \"#686868\", // Text Grey\n 4: \"#A4A4A4\",\n 5: \"#E0E4E5\",\n 6: \"#ECEFEF\",\n 7: \"#F8F8F8\",\n 8: \"#FFFFFF\",\n },\n Validation: {\n Green: {\n Text: \"#097123\", // Validation Text\n Icon: \"#4FC029\",\n Border: \"#95D97F\",\n Background: \"#F9FDF8\", // Validation Background\n },\n Orange: {\n Text: \"#B34E00\", // Validation Text\n Icon: \"#FEAB10\",\n Border: \"#F9CB77\",\n Background: \"#FFFCF7\", // Validation Background\n Badge: \"#F57F17\", // Orange Badge Notification\n },\n Red: {\n Text: \"#C60000\", // Validation Text\n Icon: \"#C60000\",\n Border: \"#DD6666\",\n Background: \"#FDF7F7\", // Validation Background\n },\n Blue: {\n Text: \"#064D70\", // Validation Text\n Icon: \" #066391\",\n Border: \"#84B7DB\",\n Background: \"#E8F4FA\", // Validation Background\n },\n } as ValidationTypes,\n Shadow: {\n Accent: \"rgba(87, 169, 255, 0.5)\",\n Red: \"rgba(221, 102, 102, 0.8)\",\n Elevation: \"rgba(75, 83, 159, 0.24)\",\n },\n};\n","import { ColorSet, ValidationTypes } from \"../../color/types\";\n\nexport const BookingSGColorSet: ColorSet = {\n Brand: {\n 1: \"#EF413D\",\n 2: \"#F26664\",\n 3: \"#F58E8B\",\n 4: \"#F9B5B2\",\n 5: \"#FDDDD7\",\n 6: \"#FFEEEA\",\n },\n Primary: \"#6F4AB8\",\n PrimaryDark: \"#6443A6\",\n Secondary: \"#6443A6\",\n Accent: {\n Dark: {\n 1: \"#355985\",\n 2: \"#68819D\",\n 3: \"#9AABBE\",\n },\n Light: {\n 1: \"#977ECC\",\n 2: \"#B5A5D7\",\n 3: \"#CEC3E4 \",\n 4: \"#E2DBEF\",\n 5: \"#F2EFF8\",\n 6: \"#F7F6FB\",\n },\n },\n Neutral: {\n 1: \"#282828\", // Text Black\n 2: \"#424242\",\n 3: \"#686868\", // Text Grey\n 4: \"#A4A4A4\",\n 5: \"#E0E4E5\",\n 6: \"#ECEFEF\",\n 7: \"#F8F8F8\",\n 8: \"#FFFFFF\",\n },\n Validation: {\n Green: {\n Text: \"#097123\", // Validation Text\n Icon: \"#4FC029\",\n Border: \"#95D97F\",\n Background: \"#F9FDF8\", // Validation Background\n },\n Orange: {\n Text: \"#B34E00\", // Validation Text\n Icon: \"#FEAB10\",\n Border: \"#F9CB77\",\n Background: \"#FFFCF7\", // Validation Background\n Badge: \"#F57F17\", // Orange Badge Notification\n },\n Red: {\n Text: \"#C60000\", // Validation Text\n Icon: \"#C60000\",\n Border: \"#DD6666\",\n Background: \"#FDF7F7\", // Validation Background\n },\n Blue: {\n Text: \"#064D70\", // Validation Text\n Icon: \" #066391\",\n Border: \"#84B7DB\",\n Background: \"#E8F4FA\", // Validation Background\n },\n } as ValidationTypes,\n Shadow: {\n Accent: \"rgba(161, 87, 255, 0.5)\",\n Red: \"rgba(221, 102, 102, 0.8)\",\n Elevation: \"rgba(75, 83, 159, 0.24)\",\n },\n};\n","import { ColorSet, ValidationTypes } from \"../../color/types\";\n\nexport const RBSColorSet: ColorSet = {\n Brand: {\n 1: \"#3E4DFF\",\n 2: \"#AEACFF\",\n 3: \"#AD44FF\",\n 4: \"#F9B5B2\",\n 5: \"#FDDDD7\",\n 6: \"#FFEEEA\",\n },\n Primary: \"#4855D4\",\n PrimaryDark: \"#3E49B2\",\n Secondary: \"#364891\",\n Accent: {\n Dark: {\n 1: \"#5E516E\",\n 2: \"#7A6F87\",\n 3: \"#C5C0CC\",\n },\n Light: {\n 1: \"#8397FC\",\n 2: \"#ABB8FC\",\n 3: \"#CED6FD \",\n 4: \"#E1E4FA\",\n 5: \"#F0F2FF\",\n 6: \"#FAFBFF\",\n },\n },\n Neutral: {\n 1: \"#282828\",\n 2: \"#424242\",\n 3: \"#686868\",\n 4: \"#A4A4A4\",\n 5: \"#E0E4E5\",\n 6: \"#ECEFEF\",\n 7: \"#F8F8F8\",\n 8: \"#FFFFFF\",\n },\n Validation: {\n Green: {\n Text: \"#097123\",\n Icon: \"#4FC029\",\n Border: \"#95D97F\",\n Background: \"#F9FDF8\",\n },\n Orange: {\n Text: \"#B34E00\",\n Icon: \"#FEAB10\",\n Border: \"#F9CB77\",\n Background: \"#FFFCF7\",\n Badge: \"#F57F17\",\n },\n Red: {\n Text: \"#C60000\",\n Icon: \"#C60000\",\n Border: \"#DD6666\",\n Background: \"#FDF7F7\",\n },\n Blue: {\n Text: \"#064D70\",\n Icon: \" #066391\",\n Border: \"#84B7DB\",\n Background: \"#E8F4FA\",\n },\n } as ValidationTypes,\n Shadow: {\n Accent: \"rgba(90, 87, 255, 0.5)\",\n Red: \"rgba(221, 102, 102, 0.8)\",\n Elevation: \"rgba(75, 83, 159, 0.24)\",\n },\n};\n","import { ColorSet, ValidationTypes } from \"../../color/types\";\n\nexport const MyLegacyColorSet: ColorSet = {\n Brand: {\n 1: \"#24588D\",\n 2: \"#FFC166\",\n 3: \"#F58E8B\",\n 4: \"#F9B5B2\",\n 5: \"#FDDDD7\",\n 6: \"#FFEEEA\",\n },\n Primary: \"#0C7BB3\",\n PrimaryDark: \"#066391\",\n Secondary: \"#066391\",\n Accent: {\n Dark: {\n 1: \"#4B539F\",\n 2: \"#6D74B1\",\n 3: \"#959BC5\",\n },\n Light: {\n 1: \"#229AD6\",\n 2: \"#8DD4F7\",\n 3: \"#A4DDF9\",\n 4: \"#BBE5FA\",\n 5: \"#E8F4FA\",\n 6: \"#F7FBFC\",\n },\n },\n Neutral: {\n 1: \"#282828\",\n 2: \"#424242\",\n 3: \"#686868\",\n 4: \"#A4A4A4\",\n 5: \"#E0E4E5\",\n 6: \"#ECEFEF\",\n 7: \"#F8F8F8\",\n 8: \"#FFFFFF\",\n },\n Validation: {\n Green: {\n Text: \"#1A5230\", // Validation Text\n Icon: \"#2A854E\",\n Border: \"#7DDBA3\",\n Background: \"#E1FAEB\", // Validation Background\n },\n Orange: {\n Text: \"#693D07\", // Validation Text\n Icon: \"#CF7911\",\n Border: \"#F9CB77\",\n Background: \"#FCF2E6\", // Validation Background\n Badge: \"#F57F17\", // Orange Badge Notification\n },\n Red: {\n Text: \"#CB2213\", // Validation Text\n Icon: \"#CB2213\",\n Border: \"#DC6363\",\n Background: \"#FAF0F0\", // Validation Background\n },\n Blue: {\n Text: \"#064D70\", // Validation Text\n Icon: \" #066391\",\n Border: \"#84B7DB\",\n Background: \"#E8F4FA\", // Validation Background\n },\n } as ValidationTypes,\n Shadow: {\n Accent: \"rgba(34, 154, 214, 0.6)\",\n Red: \"rgba(203, 34, 19, 0.5)\",\n Elevation: \"rgba(75, 83, 159, 0.24)\",\n },\n};\n","import { ColorSet, ValidationTypes } from \"../../color\";\n\nexport const CCubeColorSet: ColorSet = {\n Brand: {\n 1: \"#8D5197\",\n 2: \"#FE3399\",\n 3: \"#F58E8B\",\n 4: \"#F9B5B2\",\n 5: \"#FDDDD7\",\n 6: \"#FFEEEA\",\n },\n Primary: \"#8D5197\",\n PrimaryDark: \"#6B3E73\",\n Secondary: \"#C02673\",\n Accent: {\n Dark: {\n 1: \"#921D58\",\n 2: \"#FF409F\",\n 3: \"#FF88C4\",\n },\n Light: {\n 1: \"#B07DB7\",\n 2: \"#C7A2CC\",\n 3: \"#D9C2DD\",\n 4: \"#E9DBEB\",\n 5: \"#F3ECF4\",\n 6: \"#FAF7FA\",\n },\n },\n Neutral: {\n 1: \"#282828\", // Text Black\n 2: \"#424242\",\n 3: \"#686868\", // Text Grey\n 4: \"#A4A4A4\",\n 5: \"#E0E4E5\",\n 6: \"#ECEFEF\",\n 7: \"#F8F8F8\",\n 8: \"#FFFFFF\",\n },\n Validation: {\n Green: {\n Text: \"#097123\", // Validation Text\n Icon: \"#4FC029\",\n Border: \"#95D97F\",\n Background: \"#F9FDF8\", // Validation Background\n },\n Orange: {\n Text: \"#B34E00\", // Validation Text\n Icon: \"#FEAB10\",\n Border: \"#F9CB77\",\n Background: \"#FFFCF7\", // Validation Background\n Badge: \"#F57F17\", // Orange Badge Notification\n },\n Red: {\n Text: \"#C60000\", // Validation Text\n Icon: \"#C60000\",\n Border: \"#DD6666\",\n Background: \"#FDF7F7\", // Validation Background\n },\n Blue: {\n Text: \"#064D70\", // Validation Text\n Icon: \" #066391\",\n Border: \"#84B7DB\",\n Background: \"#E8F4FA\", // Validation Background\n },\n } as ValidationTypes,\n Shadow: {\n Accent: \"rgba(210, 77, 255, 0.5)\",\n Red: \"rgba(221, 102, 102, 0.8)\",\n Elevation: \"rgba(75, 83, 159, 0.24)\",\n },\n};\n","import { ColorSet, ValidationTypes } from \"../../color/types\";\n\nexport const OneServiceColorSet: ColorSet = {\n Brand: {\n 1: \"#009F97\",\n 2: \"#49C3CA\",\n 3: \"#A81E5E\",\n 4: \"#ED1386\",\n 5: \"#F7D414\",\n 6: \"#000000\", // No brand6 for OneService\n },\n Primary: \"#2D7990\",\n PrimaryDark: \"#205666\",\n Secondary: \"#0056B3\",\n Accent: {\n Dark: {\n 1: \"#4B539F\",\n 2: \"#6D74B1\",\n 3: \"#959BC5\",\n },\n Light: {\n 1: \"#5D97A9\",\n 2: \"#8CB6C2\",\n 3: \"#B2CED6\",\n 4: \"#D1E2E7\",\n 5: \"#E8F0F3\",\n 6: \"#F7FAFB\",\n },\n },\n Neutral: {\n 1: \"#282828\", // Text Black\n 2: \"#424242\",\n 3: \"#686868\", // Text Grey\n 4: \"#A4A4A4\",\n 5: \"#E0E4E5\",\n 6: \"#ECEFEF\",\n 7: \"#F8F8F8\",\n 8: \"#FFFFFF\",\n },\n Validation: {\n Green: {\n Text: \"#097123\", // Validation Text\n Icon: \"#4FC029\",\n Border: \"#95D97F\",\n Background: \"#F9FDF8\", // Validation Background\n },\n Orange: {\n Text: \"#B34E00\", // Validation Text\n Icon: \"#FEAB10\",\n Border: \"#F9CB77\",\n Background: \"#FFFCF7\", // Validation Background\n Badge: \"#F57F17\", // Orange Badge Notification\n },\n Red: {\n Text: \"#C60000\", // Validation Text\n Icon: \"#C60000\",\n Border: \"#DD6666\",\n Background: \"#FDF7F7\", // Validation Background\n },\n Blue: {\n Text: \"#064D70\", // Validation Text\n Icon: \" #066391\",\n Border: \"#84B7DB\",\n Background: \"#E8F4FA\", // Validation Background\n },\n } as ValidationTypes,\n Shadow: {\n Accent: \"rgba(45, 121, 144, 0.5)\",\n Red: \"rgba(221, 102, 102, 0.8)\",\n Elevation: \"rgba(75, 83, 159, 0.24)\",\n },\n};\n","import { getThemeColors } from \"../theme/color-theme-helper\";\nimport { PropertiesToType } from \"../util/utility-types\";\nimport { ColorSet } from \"./types\";\n\nexport const Color: PropertiesToType<\n ColorSet,\n ReturnType<typeof getThemeColors>\n> = {\n Brand: {\n 1: getThemeColors(\"Brand.1\"),\n 2: getThemeColors(\"Brand.2\"),\n 3: getThemeColors(\"Brand.3\"),\n 4: getThemeColors(\"Brand.4\"),\n 5: getThemeColors(\"Brand.5\"),\n 6: getThemeColors(\"Brand.6\"),\n },\n Primary: getThemeColors(\"Primary\"),\n PrimaryDark: getThemeColors(\"PrimaryDark\"),\n Secondary: getThemeColors(\"Secondary\"),\n Accent: {\n Light: {\n 1: getThemeColors(\"Accent.Light.1\"),\n 2: getThemeColors(\"Accent.Light.2\"),\n 3: getThemeColors(\"Accent.Light.3\"),\n 4: getThemeColors(\"Accent.Light.4\"),\n 5: getThemeColors(\"Accent.Light.5\"),\n 6: getThemeColors(\"Accent.Light.6\"),\n },\n Dark: {\n 1: getThemeColors(\"Accent.Dark.1\"),\n 2: getThemeColors(\"Accent.Dark.2\"),\n 3: getThemeColors(\"Accent.Dark.3\"),\n },\n },\n Neutral: {\n 1: getThemeColors(\"Neutral.1\"),\n 2: getThemeColors(\"Neutral.2\"),\n 3: getThemeColors(\"Neutral.3\"),\n 4: getThemeColors(\"Neutral.4\"),\n 5: getThemeColors(\"Neutral.5\"),\n 6: getThemeColors(\"Neutral.6\"),\n 7: getThemeColors(\"Neutral.7\"),\n 8: getThemeColors(\"Neutral.8\"),\n },\n Validation: {\n Green: {\n Text: getThemeColors(\"Validation.Green.Text\"),\n Icon: getThemeColors(\"Validation.Green.Icon\"),\n Border: getThemeColors(\"Validation.Green.Border\"),\n Background: getThemeColors(\"Validation.Green.Background\"),\n },\n Orange: {\n Text: getThemeColors(\"Validation.Orange.Text\"),\n Icon: getThemeColors(\"Validation.Orange.Icon\"),\n Border: getThemeColors(\"Validation.Orange.Border\"),\n Background: getThemeColors(\"Validation.Orange.Background\"),\n Badge: getThemeColors(\"Validation.Orange.Badge\"),\n },\n Red: {\n Text: getThemeColors(\"Validation.Red.Text\"),\n Icon: getThemeColors(\"Validation.Red.Icon\"),\n Border: getThemeColors(\"Validation.Red.Border\"),\n Background: getThemeColors(\"Validation.Red.Background\"),\n },\n Blue: {\n Text: getThemeColors(\"Validation.Blue.Text\"),\n Icon: getThemeColors(\"Validation.Blue.Icon\"),\n Border: getThemeColors(\"Validation.Blue.Border\"),\n Background: getThemeColors(\"Validation.Blue.Background\"),\n },\n },\n Shadow: {\n Accent: getThemeColors(\"Shadow.Accent\"),\n Red: getThemeColors(\"Shadow.Red\"),\n Elevation: getThemeColors(\"Shadow.Elevation\"),\n },\n};\n","import { TFontFamily } from \"./types\";\n\nexport const FontFamily = {\n OpenSans: {\n Regular: \"Open Sans\",\n Semibold: \"Open Sans Semibold\",\n Bold: \"Open Sans Bold\",\n Light: \"Open Sans Light\",\n },\n PlusJakartaSans: {\n Regular: \"Plus Jakarta Sans\",\n Semibold: \"Plus Jakarta Sans Semibold\",\n Bold: \"Plus Jakarta Sans Bold\",\n Light: \"Plus Jakarta Sans Light\",\n },\n MerriWeather: \"Merriweather\",\n} satisfies TFontFamily;\n","import { FontFamily } from \"./font-spec\";\nimport { TextStyleSetType } from \"../../text/types\";\n\n// In rem unit\nexport const BaseTextStyleSet: TextStyleSetType = {\n D1: {\n fontFamily: FontFamily.OpenSans.Bold,\n fontSize: 3,\n fontWeight: 700,\n lineHeight: 4,\n letterSpacing: -0.056,\n },\n D2: {\n fontFamily: FontFamily.OpenSans.Bold,\n fontSize: 2.5,\n fontWeight: 700,\n lineHeight: 3.5,\n letterSpacing: -0.032,\n },\n D3: {\n fontFamily: FontFamily.OpenSans.Bold,\n fontSize: 1.625,\n fontWeight: 700,\n lineHeight: 2.25,\n },\n D4: {\n fontFamily: FontFamily.OpenSans.Bold,\n fontSize: 1.375,\n fontWeight: 700,\n lineHeight: 1.75,\n },\n DBody: {\n fontFamily: FontFamily.OpenSans.Regular,\n fontSize: 1.375,\n lineHeight: 1.75,\n },\n H1: {\n fontFamily: FontFamily.OpenSans.Bold,\n fontSize: 2,\n fontWeight: 700,\n lineHeight: 2.5,\n },\n H2: {\n fontFamily: FontFamily.OpenSans.Bold,\n fontSize: 1.625,\n fontWeight: 700,\n lineHeight: 2.25,\n },\n H3: {\n fontFamily: FontFamily.OpenSans.Bold,\n fontSize: 1.375,\n fontWeight: 700,\n lineHeight: 1.75,\n },\n H4: {\n fontFamily: FontFamily.OpenSans.Bold,\n fontSize: 1.125,\n fontWeight: 700,\n lineHeight: 1.625,\n },\n H5: {\n fontFamily: FontFamily.OpenSans.Bold,\n fontSize: 1,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0.014,\n },\n H6: {\n fontFamily: FontFamily.OpenSans.Bold,\n fontSize: 0.875,\n fontWeight: 700,\n lineHeight: 1.6,\n letterSpacing: 0.012,\n },\n Body: {\n fontFamily: FontFamily.OpenSans.Regular,\n fontSize: 1.125,\n lineHeight: 1.625,\n },\n BodySmall: {\n fontFamily: FontFamily.OpenSans.Regular,\n fontSize: 1,\n lineHeight: 1.5,\n letterSpacing: 0.014,\n },\n XSmall: {\n fontFamily: FontFamily.OpenSans.Regular,\n fontSize: 0.75,\n lineHeight: 1.2,\n letterSpacing: 0.012,\n },\n};\n","import { FontFamily } from \"./font-spec\";\nimport { TextStyleSetType } from \"../../text/types\";\n\n// In rem unit\nexport const BasePlusSansJakartaStyleSet: TextStyleSetType = {\n D1: {\n fontFamily: FontFamily.PlusJakartaSans.Bold,\n fontSize: 3,\n fontWeight: 700,\n lineHeight: 3.5,\n letterSpacing: -0.056,\n },\n D2: {\n fontFamily: FontFamily.PlusJakartaSans.Bold,\n fontSize: 2.5,\n fontWeight: 700,\n lineHeight: 3,\n letterSpacing: -0.032,\n },\n D3: {\n fontFamily: FontFamily.PlusJakartaSans.Bold,\n fontSize: 1.625,\n fontWeight: 700,\n lineHeight: 2.25,\n },\n D4: {\n fontFamily: FontFamily.PlusJakartaSans.Bold,\n fontSize: 1.375,\n fontWeight: 700,\n lineHeight: 1.75,\n },\n\n DBody: {\n fontFamily: FontFamily.PlusJakartaSans.Regular,\n fontSize: 1.375,\n lineHeight: 1.75,\n },\n H1: {\n fontFamily: FontFamily.PlusJakartaSans.Bold,\n fontSize: 2,\n fontWeight: 700,\n lineHeight: 2.5,\n letterSpacing: -0.032,\n },\n H2: {\n fontFamily: FontFamily.PlusJakartaSans.Bold,\n fontSize: 1.625,\n fontWeight: 700,\n lineHeight: 2.25,\n },\n H3: {\n fontFamily: FontFamily.PlusJakartaSans.Bold,\n fontSize: 1.375,\n fontWeight: 700,\n lineHeight: 1.75,\n },\n H4: {\n fontFamily: FontFamily.PlusJakartaSans.Bold,\n fontSize: 1.125,\n fontWeight: 700,\n lineHeight: 1.75,\n },\n H5: {\n fontFamily: FontFamily.PlusJakartaSans.Bold,\n fontSize: 1,\n fontWeight: 700,\n lineHeight: 1.5,\n },\n H6: {\n fontFamily: FontFamily.PlusJakartaSans.Bold,\n fontSize: 0.875,\n fontWeight: 700,\n lineHeight: 1.625,\n letterSpacing: 0.012,\n },\n Body: {\n fontFamily: FontFamily.PlusJakartaSans.Regular,\n fontSize: 1.125,\n lineHeight: 1.75,\n },\n BodySmall: {\n fontFamily: FontFamily.PlusJakartaSans.Regular,\n fontSize: 1,\n lineHeight: 1.5,\n letterSpacing: 0.014,\n },\n XSmall: {\n fontFamily: FontFamily.PlusJakartaSans.Regular,\n fontSize: 0.75,\n lineHeight: 1.2,\n letterSpacing: 0.012,\n },\n};\n","import { BaseTextStyleSet } from \"../spec/text-spec/base-text-style-set\";\nimport { BasePlusSansJakartaStyleSet } from \"../spec/text-spec/base-plus-jakarta-sans-text-style-set\";\nimport { OneServiceTextStyleSet } from \"../spec/text-spec/oneservice-text-style-set\";\nimport { TextStyleSetType } from \"../text/types\";\nimport { getCollection, getValue } from \"./helper\";\nimport {\n FontStyleCollectionsMap,\n TextStyleScheme,\n ThemeCollectionSpec,\n ThemeContextKeys,\n ThemeSpec,\n} from \"./types\";\n\n// =============================================================================\n// THEME SPECIFICATION\n// =============================================================================\nconst TextStyleSpec: ThemeCollectionSpec<\n FontStyleCollectionsMap,\n TextStyleScheme\n> = {\n collections: {\n base: BaseTextStyleSet,\n oneservice: OneServiceTextStyleSet,\n plusJakartaSans: BasePlusSansJakartaStyleSet,\n },\n defaultValue: \"base\",\n};\n\n// =============================================================================\n// HELPER FUNCTIONS\n// =============================================================================\nexport const getThemeTextStyles = (attributePath: string) => {\n return (props: any): string | number => {\n const theme = props.theme as ThemeSpec;\n const textStyleSet: TextStyleSetType = getCollection(\n TextStyleSpec,\n theme[ThemeContextKeys.textStyleScheme]\n );\n\n return theme.options && theme.options.textStyle\n ? getValue(textStyleSet, attributePath, theme.options.textStyle)\n : getValue(textStyleSet, attributePath);\n };\n};\n","import { FontFamily } from \"./font-spec\";\nimport { TextStyleSetType } from \"../../text/types\";\n\n// In rem unit\nexport const OneServiceTextStyleSet: TextStyleSetType = {\n D1: {\n fontFamily: FontFamily.OpenSans.Bold,\n fontSize: 2.5,\n fontWeight: 700,\n lineHeight: 3.5,\n },\n D2: {\n fontFamily: FontFamily.OpenSans.Bold,\n fontSize: 2,\n fontWeight: 700,\n lineHeight: 3,\n },\n /* not used for OS */\n D3: {\n fontFamily: FontFamily.OpenSans.Bold,\n fontSize: 1.625,\n fontWeight: 700,\n lineHeight: 2.25,\n },\n /* not used for OS */\n D4: {\n fontFamily: FontFamily.OpenSans.Bold,\n fontSize: 1.375,\n fontWeight: 700,\n lineHeight: 1.75,\n },\n DBody: {\n fontFamily: FontFamily.OpenSans.Regular,\n fontSize: 1.125,\n lineHeight: 1.625,\n },\n H1: {\n fontFamily: FontFamily.OpenSans.Bold,\n fontSize: 1.75,\n fontWeight: 700,\n lineHeight: 2.625,\n },\n H2: {\n fontFamily: FontFamily.OpenSans.Bold,\n fontSize: 1.375,\n fontWeight: 700,\n lineHeight: 2,\n },\n H3: {\n fontFamily: FontFamily.OpenSans.Bold,\n fontSize: 1.125,\n fontWeight: 700,\n lineHeight: 1.625,\n },\n H4: {\n fontFamily: FontFamily.OpenSans.Bold,\n fontSize: 1,\n fontWeight: 700,\n lineHeight: 1.5,\n },\n H5: {\n fontFamily: FontFamily.OpenSans.Bold,\n fontSize: 0.875,\n fontWeight: 700,\n lineHeight: 1.313,\n },\n H6: {\n fontFamily: FontFamily.OpenSans.Bold,\n fontSize: 0.75,\n fontWeight: 700,\n lineHeight: 1.125,\n },\n Body: {\n fontFamily: FontFamily.OpenSans.Regular,\n fontSize: 1,\n lineHeight: 1.5,\n },\n BodySmall: {\n fontFamily: FontFamily.OpenSans.Regular,\n fontSize: 0.875,\n lineHeight: 1.313,\n },\n XSmall: {\n fontFamily: FontFamily.OpenSans.Regular,\n fontSize: 0.75,\n lineHeight: 1.125,\n },\n};\n","import { getThemeTextStyles } from \"../theme/text-theme-helper\";\nimport { PropertiesToType } from \"../util/utility-types\";\nimport { TextStyleSetType } from \"./types\";\n\nexport const TextStyle: PropertiesToType<\n TextStyleSetType,\n ReturnType<typeof getThemeTextStyles>\n> = {\n D1: {\n fontFamily: getThemeTextStyles(\"D1.fontFamily\"),\n fontSize: getThemeTextStyles(\"D1.fontSize\"),\n fontWeight: getThemeTextStyles(\"D1.fontWeight\"),\n lineHeight: getThemeTextStyles(\"D1.lineHeight\"),\n letterSpacing: getThemeTextStyles(\"D1.letterSpacing\"),\n },\n D2: {\n fontFamily: getThemeTextStyles(\"D2.fontFamily\"),\n fontSize: getThemeTextStyles(\"D2.fontSize\"),\n fontWeight: getThemeTextStyles(\"D2.fontWeight\"),\n lineHeight: getThemeTextStyles(\"D2.lineHeight\"),\n letterSpacing: getThemeTextStyles(\"D2.letterSpacing\"),\n },\n D3: {\n fontFamily: getThemeTextStyles(\"D3.fontFamily\"),\n fontSize: getThemeTextStyles(\"D3.fontSize\"),\n fontWeight: getThemeTextStyles(\"D3.fontWeight\"),\n lineHeight: getThemeTextStyles(\"D3.lineHeight\"),\n letterSpacing: getThemeTextStyles(\"D3.letterSpacing\"),\n },\n D4: {\n fontFamily: getThemeTextStyles(\"D4.fontFamily\"),\n fontSize: getThemeTextStyles(\"D4.fontSize\"),\n fontWeight: getThemeTextStyles(\"D4.fontWeight\"),\n lineHeight: getThemeTextStyles(\"D4.lineHeight\"),\n letterSpacing: getThemeTextStyles(\"D4.letterSpacing\"),\n },\n DBody: {\n fontFamily: getThemeTextStyles(\"DBody.fontFamily\"),\n fontSize: getThemeTextStyles(\"DBody.fontSize\"),\n fontWeight: getThemeTextStyles(\"DBody.fontWeight\"),\n lineHeight: getThemeTextStyles(\"DBody.lineHeight\"),\n letterSpacing: getThemeTextStyles(\"DBody.letterSpacing\"),\n },\n H1: {\n fontFamily: getThemeTextStyles(\"H1.fontFamily\"),\n fontSize: getThemeTextStyles(\"H1.fontSize\"),\n fontWeight: getThemeTextStyles(\"H1.fontWeight\"),\n lineHeight: getThemeTextStyles(\"H1.lineHeight\"),\n letterSpacing: getThemeTextStyles(\"H1.letterSpacing\"),\n },\n H2: {\n fontFamily: getThemeTextStyles(\"H2.fontFamily\"),\n fontSize: getThemeTextStyles(\"H2.fontSize\"),\n fontWeight: getThemeTextStyles(\"H2.fontWeight\"),\n lineHeight: getThemeTextStyles(\"H2.lineHeight\"),\n letterSpacing: getThemeTextStyles(\"H2.letterSpacing\"),\n },\n H3: {\n fontFamily: getThemeTextStyles(\"H3.fontFamily\"),\n fontSize: getThemeTextStyles(\"H3.fontSize\"),\n fontWeight: getThemeTextStyles(\"H3.fontWeight\"),\n lineHeight: getThemeTextStyles(\"H3.lineHeight\"),\n letterSpacing: getThemeTextStyles(\"H3.letterSpacing\"),\n },\n H4: {\n fontFamily: getThemeTextStyles(\"H4.fontFamily\"),\n fontSize: getThemeTextStyles(\"H4.fontSize\"),\n fontWeight: getThemeTextStyles(\"H4.fontWeight\"),\n lineHeight: getThemeTextStyles(\"H4.lineHeight\"),\n letterSpacing: getThemeTextStyles(\"H4.letterSpacing\"),\n },\n H5: {\n fontFamily: getThemeTextStyles(\"H5.fontFamily\"),\n fontSize: getThemeTextStyles(\"H5.fontSize\"),\n fontWeight: getThemeTextStyles(\"H5.fontWeight\"),\n lineHeight: getThemeTextStyles(\"H5.lineHeight\"),\n letterSpacing: getThemeTextStyles(\"H5.letterSpacing\"),\n },\n H6: {\n fontFamily: getThemeTextStyles(\"H6.fontFamily\"),\n fontSize: getThemeTextStyles(\"H6.fontSize\"),\n fontWeight: getThemeTextStyles(\"H6.fontWeight\"),\n lineHeight: getThemeTextStyles(\"H6.lineHeight\"),\n letterSpacing: getThemeTextStyles(\"H6.letterSpacing\"),\n },\n Body: {\n fontFamily: getThemeTextStyles(\"Body.fontFamily\"),\n fontSize: getThemeTextStyles(\"Body.fontSize\"),\n fontWeight: getThemeTextStyles(\"Body.fontWeight\"),\n lineHeight: getThemeTextStyles(\"Body.lineHeight\"),\n letterSpacing: getThemeTextStyles(\"Body.letterSpacing\"),\n },\n BodySmall: {\n fontFamily: getThemeTextStyles(\"BodySmall.fontFamily\"),\n fontSize: getThemeTextStyles(\"BodySmall.fontSize\"),\n fontWeight: getThemeTextStyles(\"BodySmall.fontWeight\"),\n lineHeight: getThemeTextStyles(\"BodySmall.lineHeight\"),\n letterSpacing: getThemeTextStyles(\"BodySmall.letterSpacing\"),\n },\n XSmall: {\n fontFamily: getThemeTextStyles(\"XSmall.fontFamily\"),\n fontSize: getThemeTextStyles(\"XSmall.fontSize\"),\n fontWeight: getThemeTextStyles(\"XSmall.fontWeight\"),\n lineHeight: getThemeTextStyles(\"XSmall.lineHeight\"),\n letterSpacing: getThemeTextStyles(\"XSmall.letterSpacing\"),\n },\n};\n","import { css } from \"styled-components\";\nimport { FontFamily } from \"../spec/text-spec/font-spec\";\nimport { FontWeightSpec } from \"../spec/text-spec/types\";\nimport { TextStyle } from \"./text-style\";\nimport { TextLinkSizeType, TextSizeType, TextWeight } from \"./types\";\n\n// =============================================================================\n// FONT STYLE\n// =============================================================================\nconst FONTS_WITH_WEIGHTS = [FontFamily.OpenSans, FontFamily.PlusJakartaSans];\n\nconst getFont = (fontFamily: FontWeightSpec, weight: TextWeight) => {\n switch (weight) {\n case 700:\n case \"bold\":\n return fontFamily.Bold;\n case 600:\n case \"semibold\":\n return fontFamily.Semibold;\n case 300:\n case \"light\":\n return fontFamily.Light;\n case 400:\n case \"regular\":\n return fontFamily.Regular;\n default:\n return \"\";\n }\n};\n\nconst getFontFamily = (\n type: TextSizeType | TextLinkSizeType,\n weight?: TextWeight\n) => {\n return (props: any) => {\n const fontFamilyFromTheme = TextStyle[type].fontFamily(props) as string;\n const fontWeightFromTheme = TextStyle[type].fontWeight(\n props\n ) as TextWeight;\n\n const fontFamily = FONTS_WITH_WEIGHTS.find((set) =>\n Object.values(set).includes(fontFamilyFromTheme)\n );\n\n if (fontFamily) {\n return css`\n font-family: ${getFont(fontFamily, weight) ||\n getFont(fontFamily, fontWeightFromTheme) ||\n fontFamilyFromTheme};\n font-weight: normal !important;\n `;\n }\n\n return css`\n font-family: ${fontFamilyFromTheme};\n font-weight: ${(getFontWeight(weight) || fontWeightFromTheme) ??\n \"normal\"};\n `;\n };\n};\n\nconst getFontWeight = (weight: TextWeight) => {\n switch (weight) {\n case 300:\n case \"light\":\n return 300;\n case 400:\n case \"regular\":\n return 400;\n case 600:\n case \"semibold\":\n return 600;\n case 700:\n case \"bold\":\n return 700;\n case 900:\n case \"black\":\n return 900;\n default:\n return \"\";\n }\n};\n\n// =============================================================================\n// TEXT STYLE\n// =============================================================================\nconst getMaxLinesLineStyle = (maxLines: number | undefined) => {\n if (maxLines > 0) {\n return css`\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: ${maxLines};\n line-clamp: ${maxLines};\n overflow: hidden;\n `;\n }\n};\n\nconst getTextStyle = (\n type: TextSizeType | TextLinkSizeType,\n weight: TextWeight,\n paragraph = false\n) => {\n return (props: any) => {\n const attrs = TextStyle[type];\n const fontSize = attrs.fontSize(props) as number;\n\n // Add extra margin for paragraphs\n const getMarginBottomStyle = () => {\n const marginBottomScale = paragraph ? 1.05 : 0;\n return css`\n margin-bottom: ${fontSize * marginBottomScale}rem;\n `;\n };\n\n return css`\n ${getFontFamily(type, weight)}\n font-size: ${fontSize}rem !important;\n line-height: ${attrs.lineHeight}rem !important;\n letter-spacing: ${attrs.letterSpacing(props) || 0}rem !important;\n ${getMarginBottomStyle()}\n `;\n };\n};\n\nconst getDisplayStyle = (\n inline = false,\n paragraph = false,\n maxLines: number | undefined = undefined\n) => {\n if (paragraph) {\n return css`\n display: block;\n ${getMaxLinesLineStyle(maxLines)}\n `;\n } else if (inline) {\n return css`\n display: inline;\n `;\n } else {\n return css`\n display: block;\n ${getMaxLinesLineStyle(maxLines)}\n `;\n }\n};\n\n// =============================================================================\n// EXPORTS\n// =============================================================================\nexport const TextStyleHelper = {\n getFontFamily,\n getTextStyle,\n getDisplayStyle,\n};\n","import { ExternalIcon } from \"@lifesg/react-icons/external\";\nimport styled, { css } from \"styled-components\";\nimport { Color } from \"../color/color\";\nimport { TextStyleHelper } from \"./helper\";\nimport { TextLinkProps, TextLinkStyleProps, TextProps } from \"./types\";\n\nexport namespace Text {\n export const D1 = styled.h1<TextProps>`\n ${(props) => {\n return css`\n ${TextStyleHelper.getTextStyle(\n \"D1\",\n props.weight,\n props.paragraph\n )}\n color: ${Color.Neutral[1]};\n ${TextStyleHelper.getDisplayStyle(\n props.inline,\n props.paragraph,\n props.maxLines\n )}\n `;\n }}\n `;\n\n export const D2 = styled.h1<TextProps>`\n ${(props) => {\n return css`\n ${TextStyleHelper.getTextStyle(\n \"D2\",\n props.weight,\n props.paragraph\n )}\n color: ${Color.Neutral[1]};\n ${TextStyleHelper.getDisplayStyle(\n props.inline,\n props.paragraph,\n props.maxLines\n )}\n `;\n }}\n `;\n\n export const D3 = styled.h1<TextProps>`\n ${(props) => {\n return css`\n ${TextStyleHelper.getTextStyle(\n \"D3\",\n props.weight,\n props.paragraph\n )}\n color: ${Color.Neutral[1]};\n ${TextStyleHelper.getDisplayStyle(\n props.inline,\n props.paragraph,\n props.maxLines\n )}\n `;\n }}\n `;\n\n export const D4 = styled.h1<TextProps>`\n ${(props) => {\n return css`\n ${TextStyleHelper.getTextStyle(\n \"D4\",\n props.weight,\n props.paragraph\n )}\n color: ${Color.Neutral[1]};\n ${TextStyleHelper.getDisplayStyle(\n props.inline,\n props.paragraph,\n props.maxLines\n )}\n `;\n }}\n `;\n\n export const DBody = styled.h1<TextProps>`\n ${(props) => {\n return css`\n ${TextStyleHelper.getTextStyle(\n \"DBody\",\n props.weight,\n props.paragraph\n )}\n color: ${Color.Neutral[1]};\n ${TextStyleHelper.getDisplayStyle(\n props.inline,\n props.paragraph,\n props.maxLines\n )}\n `;\n }}\n `;\n\n export const H1 = styled.h1<TextProps>`\n ${(props) => {\n return css`\n ${TextStyleHelper.getTextStyle(\n \"H1\",\n props.weight,\n props.paragraph\n )}\n color: ${Color.Neutral[1]};\n ${TextStyleHelper.getDisplayStyle(\n props.inline,\n props.paragraph,\n props.maxLines\n )}\n `;\n }}\n `;\n\n export const H2 = styled.h2<TextProps>`\n ${(props) => {\n return css`\n ${TextStyleHelper.getTextStyle(\n \"H2\",\n props.weight,\n props.paragraph\n )}\n color: ${Color.Neutral[1]};\n ${TextStyleHelper.getDisplayStyle(\n props.inline,\n props.paragraph,\n props.maxLines\n )}\n `;\n }}\n `;\n\n export const H3 = styled.h3<TextProps>`\n ${(props) => {\n return css`\n ${TextStyleHelper.getTextStyle(\n \"H3\",\n props.weight,\n props.paragraph\n )}\n color: ${Color.Neutral[1]};\n ${TextStyleHelper.getDisplayStyle(\n props.inline,\n props.paragraph,\n props.maxLines\n )}\n `;\n }}\n `;\n\n export const H4 = styled.h4<TextProps>`\n ${(props) => {\n return css`\n ${TextStyleHelper.getTextStyle(\n \"H4\",\n props.weight,\n props.paragraph\n )}\n color: ${Color.Neutral[1]};\n ${TextStyleHelper.getDisplayStyle(\n props.inline,\n props.paragraph,\n props.maxLines\n )}\n `;\n }}\n `;\n\n export const H5 = styled.h5<TextProps>`\n ${(props) => {\n return css`\n ${TextStyleHelper.getTextStyle(\n \"H5\",\n props.weight,\n props.paragraph\n )}\n color: ${Color.Neutral[1]};\n ${TextStyleHelper.getDisplayStyle(\n props.inline,\n props.paragraph,\n props.maxLines\n )}\n `;\n }}\n `;\n\n export const H6 = styled.h6<TextProps>`\n ${(props) => {\n return css`\n ${TextStyleHelper.getTextStyle(\n \"H6\",\n props.weight,\n props.paragraph\n )}\n color: ${Color.Neutral[1]};\n ${TextStyleHelper.getDisplayStyle(\n props.inline,\n props.paragraph,\n props.maxLines\n )}\n `;\n }}\n `;\n\n export const Body = styled.p<TextProps>`\n ${(props) => {\n return css`\n ${TextStyleHelper.getTextStyle(\n \"Body\",\n props.weight,\n props.paragraph\n )}\n color: ${Color.Neutral[1]};\n ${TextStyleHelper.getDisplayStyle(\n props.inline,\n props.paragraph,\n props.maxLines\n )}\n `;\n }}\n `;\n\n export const BodySmall = styled.p<TextProps>`\n ${(props) => {\n return css`\n ${TextStyleHelper.getTextStyle(\n \"BodySmall\",\n props.weight,\n props.paragraph\n )}\n color: ${Color.Neutral[1]};\n ${TextStyleHelper.getDisplayStyle(\n props.inline,\n props.paragraph,\n props.maxLines\n )}\n `;\n }}\n `;\n\n export const XSmall = styled.span<TextProps>`\n ${(props) => {\n return css`\n ${TextStyleHelper.getTextStyle(\n \"XSmall\",\n props.weight,\n props.paragraph\n )}\n color: ${Color.Neutral[1]};\n ${TextStyleHelper.getDisplayStyle(\n props.inline,\n props.paragraph,\n props.maxLines\n )}\n `;\n }}\n `;\n\n export const Hyperlink = {\n Default: (props: TextLinkProps) =>\n HyperlinkComponent({ ...props, textStyle: \"Body\" }),\n Small: (props: TextLinkProps) =>\n HyperlinkComponent({ ...props, textStyle: \"BodySmall\" }),\n };\n}\n\n// =============================================================================\n// NON-EXPORTABLES\n// =============================================================================\n\nconst HyperlinkBase = styled.a<TextLinkStyleProps>`\n ${(props) => {\n return css`\n ${TextStyleHelper.getTextStyle(props.textStyle, props.weight)}\n color: ${Color.Primary};\n text-decoration: none;\n\n :hover,\n :active,\n :focus {\n color: ${Color.Secondary};\n\n svg {\n color: ${Color.Secondary};\n }\n }\n `;\n }}\n`;\n\nconst StyledExternalIcon = styled(ExternalIcon)`\n height: 1rem;\n width: 1rem;\n margin-left: 0.4rem;\n vertical-align: middle;\n`;\n\nconst HyperlinkComponent = ({\n external = false,\n children,\n ...rest\n}: TextLinkStyleProps) => {\n return (\n <HyperlinkBase {...rest}>\n {children}\n {external && <StyledExternalIcon />}\n </HyperlinkBase>\n );\n};\n","import { ChevronDownIcon } from \"@lifesg/react-icons/chevron-down\";\nimport { TickIcon } from \"@lifesg/react-icons/tick\";\nimport styled, { css } from \"styled-components\";\nimport { Color } from \"../../color\";\nimport { Text } from \"../../text/text\";\n\n// =============================================================================\n// STYLE INTERFACES, transient props are denoted with $\n// See more https://styled-components.com/docs/api#transient-props\n// =============================================================================\ninterface DropdownNavStyleProps {\n $isStickied?: boolean;\n $stickyOffset: number;\n $sideMargin?: number;\n}\ninterface NavItemListStyleProps {\n $viewportHeight?: number;\n}\n\ninterface NavItemStyleProps {\n $isSelected?: boolean;\n}\ninterface DropdownExpandedProps {\n $isDropdownExpanded: boolean;\n}\n\ninterface NavIconStyleProps extends DropdownExpandedProps {}\ninterface NavLabelStyleProps extends DropdownExpandedProps {}\n// =============================================================================\n// STYLING\n// =============================================================================\n// use #rrggbbaa format for color (D9 is 0.85 alpha)\n// LINK: https://rgbacolorpicker.com/rgba-to-hex\nexport const Backdrop = styled.div`\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n background-color: ${Color.Neutral[1]}D9;\n z-index: -1;\n`;\n\nexport const LabelText = styled(Text.BodySmall)<NavItemStyleProps>`\n margin: 0;\n ${(props) =>\n props.$isSelected &&\n css`\n color: ${Color.Primary};\n `}\n`;\n\nexport const StyledTickIcon = styled(TickIcon)`\n color: ${Color.Primary};\n margin: 0 8px;\n`;\n\nexport const NavIcon = styled(ChevronDownIcon)<NavIconStyleProps>`\n color: ${Color.Primary};\n transition: transform 250ms ease-in-out;\n transform: rotate(${(props) => (props.$isDropdownExpanded ? 180 : 0)}deg);\n`;\n\nexport const NavLabel = styled.div<NavLabelStyleProps>`\n cursor: pointer;\n background: ${Color.Neutral[8]};\n padding: 12px 16px;\n box-shadow: 0px 0px 1px 1px ${Color.Neutral[5]};\n overflow: hidden;\n border-radius: ${(props) =>\n props.$isDropdownExpanded ? \"4px 4px 0 0\" : \"4px\"};\n display: flex;\n justify-content: space-between;\n align-items: center;\n transition: all 200ms linear;\n`;\n\nexport const NavItem = styled.li<NavItemStyleProps>`\n padding: ${(props) =>\n props.$isSelected ? \"12px 8px 12px 0\" : \"12px 8px 12px 32px\"};\n background: ${(props) =>\n props.$isSelected ? Color.Accent.Light[5] : Color.Neutral[8]};\n position: relative; /* Ensures that the tick mark is positioned relative to the selected item */\n display: flex;\n align-items: center; /* Vertically align text and tick */\n`;\n\nexport const NavItemList = styled.ul<NavItemListStyleProps>`\n transition: all 300ms;\n transform-origin: top;\n list-style-type: none;\n padding: 0px 8px 0px 8px;\n margin: 0;\n background: ${Color.Neutral[8]};\n cursor: pointer;\n box-shadow: 0px 0px 1px 1px ${Color.Neutral[5]};\n border-bottom-right-radius: 4px;\n border-bottom-left-radius: 4px;\n overflow-y: auto; /* Enables vertical scrolling */\n max-height: ${(props) =>\n props.$viewportHeight}px; /* Set a max height for the dropdown list */\n`;\n\nexport const NavWrapper = styled.nav<DropdownNavStyleProps>`\n display: block;\n position: sticky;\n top: ${(props) => props.$stickyOffset}px;\n width: 100%;\n z-index: 10;\n\n ${(props) =>\n props.$isStickied &&\n `${NavLabel} {\n ${props.$sideMargin && `margin: 0 -${props.$sideMargin}px;`}\n\t\t\tpadding: 12px 16px;\n\t\t\tborder-radius: 0;\n\t\t}\n\n\t\t${NavItemList} {\n ${props.$sideMargin && `margin-left: -${props.$sideMargin}px;`}\n ${props.$sideMargin && `margin-right: -${props.$sideMargin}px;`}\n\t\t\tborder-radius-bottom-left: 4px;\n\t\t\tborder-radius-bottom-right: 4px;\n\n\t\t}\n\n\t\t`}\n`;\n","/* eslint-disable react/display-name */\nimport React, { useEffect, useImperativeHandle, useRef, useState } from \"react\";\nimport { LocalNavItemComponentProps } from \"../internal-types\";\nimport { LocalNavDropdownProps, LocalNavItemProps } from \"../types\";\nimport {\n Backdrop,\n LabelText,\n NavIcon,\n NavItem,\n NavItemList,\n NavLabel,\n NavWrapper,\n StyledTickIcon,\n} from \"./local-nav-dropdown.styles\";\n\nconst Component = (\n {\n defaultLabel,\n stickyOffset = 0,\n onNavItemSelect,\n items,\n selectedItemIndex,\n id,\n \"data-testid\": testId,\n className,\n renderItem,\n }: LocalNavDropdownProps,\n ref: React.Ref<HTMLElement>\n): JSX.Element => {\n // =============================================================================\n // CONST, STATE, REF\n // =============================================================================\n const detectStickyRef = useRef<HTMLSpanElement>(null);\n const dropdownRef = useRef<HTMLDivElement>(null);\n const navWrapperRef = useRef<HTMLElement>(null);\n const [isStickied, setIsStickied] = useState<boolean>(false);\n const [isDropdownExpanded, setIsDropdownExpanded] =\n useState<boolean>(false);\n const [viewportHeight, setViewportHeight] = useState(0);\n const [dropdowntHeight, setDropdownHeight] = useState(0);\n const [dynamicMargin, setDynamicMargin] = useState(0);\n const navTestId = testId || \"local-nav-dropdown\";\n\n useImperativeHandle(ref, () => navWrapperRef.current);\n\n const labelText =\n selectedItemIndex >= 0 && isStickied\n ? items[selectedItemIndex].title\n : defaultLabel;\n\n // =============================================================================\n // EFFECTS, EVENT LISTENERS\n // ============================================================================\n\n useEffect(() => {\n if (dropdownRef.current) {\n const dropdownHeight =\n dropdownRef.current.getBoundingClientRect().height;\n setDropdownHeight(dropdownHeight);\n }\n }, []);\n\n useEffect(() => {\n setViewportHeight(window.innerHeight);\n const handleResize = () => {\n setViewportHeight(window.innerHeight);\n };\n window.addEventListener(\"resize\", handleResize);\n return () => window.removeEventListener(\"resize\", handleResize);\n }, []);\n\n useEffect(() => {\n const callback = (entries: IntersectionObserverEntry[]) => {\n const [entry] = entries;\n setIsStickied(!entry.isIntersecting);\n };\n\n const observer = new IntersectionObserver(callback, {\n threshold: 1,\n rootMargin: `-${stickyOffset}px 0px 0px 0px`,\n });\n\n if (detectStickyRef.current) {\n observer.observe(detectStickyRef.current);\n }\n\n return () => observer.disconnect();\n }, [stickyOffset]);\n\n useEffect(() => {\n document.body.style.overflow =\n isDropdownExpanded && isStickied ? \"hidden\" : \"auto\";\n }, [isDropdownExpanded, isStickied]);\n\n useEffect(() => {\n const adjustPadding = () => {\n const dropdown = navWrapperRef?.current;\n if (dropdown) {\n const dropdownRect = dropdown.getBoundingClientRect();\n const spaceToRight =\n document.body.clientWidth - dropdownRect.right;\n const spaceToLeft = dropdownRect.left;\n // Calculate the padding needed to balance the dropdown in the viewport\n const sidePadding = Math.max(spaceToRight, spaceToLeft);\n setDynamicMargin(sidePadding);\n }\n };\n adjustPadding();\n\n window.addEventListener(\"resize\", adjustPadding);\n\n return () => {\n window.removeEventListener(\"resize\", adjustPadding);\n };\n }, []);\n\n // =============================================================================\n // EVENT HANDLERS\n // =============================================================================\n\n const handleToggleDropdown = () => {\n setIsDropdownExpanded((prev) => !prev);\n };\n\n const handleDismissBackdrop = () => {\n setIsDropdownExpanded(false);\n };\n\n const handleNavItemClick = (\n e: React.MouseEvent,\n item: LocalNavItemProps,\n index: number\n ) => {\n if (onNavItemSelect) {\n onNavItemSelect(e, item, index);\n }\n setIsDropdownExpanded(false);\n };\n\n // =============================================================================\n // RENDER FUNCTIONS\n // =============================================================================\n\n const renderDropdownNavItem = ({\n handleClick,\n isSelected,\n item,\n renderItem,\n }: LocalNavItemComponentProps) => {\n const { id, title } = item;\n\n const renderTitle = () => {\n if (renderItem) {\n return renderItem(item, { selected: isSelected });\n }\n return (\n <>\n {isSelected && <StyledTickIcon />}\n <LabelText $isSelected={isSelected}>{title}</LabelText>\n </>\n );\n };\n\n return (\n <NavItem id={id} $isSelected={isSelected} onClick={handleClick}>\n {renderTitle()}\n </NavItem>\n );\n };\n\n return (\n <>\n <span ref={detectStickyRef} data-testid={\"sticky-ref\"} />\n <NavWrapper\n $isStickied={isStickied}\n $sideMargin={dynamicMargin}\n $stickyOffset={stickyOffset}\n ref={navWrapperRef}\n id={id}\n data-testid={navTestId}\n className={className}\n >\n <NavLabel\n ref={dropdownRef}\n onClick={handleToggleDropdown}\n data-testid={`${navTestId}-label`}\n $isDropdownExpanded={isDropdownExpanded}\n >\n <LabelText weight=\"bold\">{labelText}</LabelText>\n <NavIcon $isDropdownExpanded={isDropdownExpanded} />\n </NavLabel>\n {isDropdownExpanded && (\n <NavItemList\n data-testid={`${navTestId}-dropdown-list`}\n $viewportHeight={\n viewportHeight - dropdowntHeight - stickyOffset\n }\n >\n {items.map((item, i) =>\n renderDropdownNavItem({\n handleClick: (e) =>\n handleNavItemClick(e, item, i),\n isSelected:\n i === selectedItemIndex && isStickied,\n item,\n renderItem,\n })\n )}\n </NavItemList>\n )}\n {isDropdownExpanded && isStickied && (\n <Backdrop onClick={handleDismissBackdrop} />\n )}\n </NavWrapper>\n </>\n );\n};\n\nexport const LocalNavDropdown = React.forwardRef(Component);\n","import styled from \"styled-components\";\nimport { Color } from \"../../color\";\nimport { Text } from \"../../text/text\";\n\n// =============================================================================\n// STYLE INTERFACES, transient props are denoted with $\n// See more https://styled-components.com/docs/api#transient-props\n// =============================================================================\ninterface NavItemStyleProps {\n $isSelected?: boolean;\n}\n\n// =============================================================================\n// STYLING\n// =============================================================================\n\nexport const Nav = styled.ul`\n list-style-type: none;\n padding: 0;\n margin-top: 0;\n`;\nexport const TextLabel = styled(Text.Body)<NavItemStyleProps>`\n margin: 0;\n`;\n\nexport const NavItem = styled.li<NavItemStyleProps>`\n position: relative;\n margin: 0;\n padding: 1rem;\n cursor: pointer;\n\n &::before {\n content: \"\";\n position: absolute;\n left: 0;\n width: 4px;\n height: 100%;\n top: 0;\n background-color: ${(props) =>\n props.$isSelected ? Color.Primary : Color.Accent.Light[5]};\n transition: all 250ms linear;\n }\n\n &:hover {\n background-color: ${Color.Accent.Light[6]};\n }\n`;\n","/* eslint-disable react/display-name */\nimport React from \"react\";\nimport { LocalNavItemComponentProps } from \"../internal-types\";\nimport { LocalNavMenuProps } from \"../types\";\nimport { Nav, NavItem, TextLabel } from \"./local-nav-menu.styles\";\n\n/**\n * A sidebar navigation element. The currently visible section will be highlighted.\n *\n * This component should be placed inside a container that aligns it to the side.\n * The container can also have `position: sticky` in order to make it a sticky sidebar.\n */\nconst Component = (\n {\n onNavItemSelect,\n items,\n selectedItemIndex,\n id,\n \"data-testid\": dataTestId,\n className,\n renderItem,\n }: LocalNavMenuProps,\n ref: React.Ref<HTMLUListElement>\n): JSX.Element => {\n // =============================================================================\n // CONST, STATE, REF\n // =============================================================================\n const localNavMenuId = dataTestId || \"local-nav-menu\";\n\n // =============================================================================\n // RENDER FUNCTIONS\n // =============================================================================\n\n const renderLocalNavItem = ({\n handleClick,\n isSelected,\n item,\n renderItem,\n }: LocalNavItemComponentProps) => {\n const { id, title } = item;\n\n const renderTitle = () => {\n if (renderItem) {\n return renderItem(item, { selected: isSelected });\n }\n return (\n <TextLabel weight={isSelected ? \"semibold\" : \"regular\"}>\n {title}\n </TextLabel>\n );\n };\n\n return (\n <NavItem id={id} $isSelected={isSelected} onClick={handleClick}>\n {renderTitle()}\n </NavItem>\n );\n };\n return (\n <Nav\n ref={ref}\n id={id}\n className={className}\n data-testid={localNavMenuId}\n >\n {items.map((item, i) => {\n const isSelected = i === selectedItemIndex;\n return renderLocalNavItem({\n handleClick: (e) => onNavItemSelect(e, item, i),\n isSelected,\n item,\n renderItem,\n });\n })}\n </Nav>\n );\n};\n\nexport const LocalNavMenu = React.forwardRef(Component);\n"],"names":["isArray_1","Array","isArray","freeGlobal","global","Object","freeSelf","self","_root","Function","_Symbol","require$$0","Symbol","objectProto","prototype","hasOwnProperty","nativeObjectToString","toString","symToStringTag","toStringTag","undefined","_getRawTag","value","isOwn","call","tag","unmasked","e","result","getRawTag","require$$1","objectToString","_baseGetTag","baseGetTag","isObjectLike","isSymbol_1","isSymbol","reIsDeepProp","reIsPlainProp","_isKey","object","type","test","isObject_1","isObject","uid","isFunction_1","coreJsData","maskSrcKey","exec","keys","IE_PROTO","_isMasked","func","funcToString","isFunction","isMasked","require$$2","toSource","reIsHostCtor","funcProto","reIsNative","RegExp","replace","baseIsNative","getValue","key","_getNative","_nativeCreate","nativeCreate","_hashClear","this","__data__","size","_hashDelete","has","_hashGet","data","hashClear","hashDelete","hashGet","hashHas","hashSet","Hash","entries","index","length","clear","entry","set","get","_Hash","_listCacheClear","eq","other","_assocIndexOf","array","assocIndexOf","splice","listCacheClear","listCacheDelete","pop","listCacheGet","listCacheHas","listCacheSet","push","ListCache","_ListCache","Map","isKeyable","_getMapData","map","getMapData","mapCacheClear","hash","string","mapCacheDelete","mapCacheGet","mapCacheHas","mapCacheSet","MapCache","memoize","resolver","TypeError","memoized","args","arguments","apply","cache","Cache","rePropName","reEscapeChar","_stringToPath","memoizeCapped","charCodeAt","match","number","quote","subString","arrayMap","iteratee","require$$3","symbolProto","symbolToString","_baseToString","baseToString","isKey","stringToPath","castPath","toKey","baseGet","path","defaultValue","collection","attributePath","customCollection","getCollection","collectionSpec","contextValue","themeContextValue","collections","ThemeContextKeys","ColorSpec","base","Brand","Primary","PrimaryDark","Secondary","Accent","Dark","Light","Neutral","Validation","Green","Text","Icon","Border","Background","Orange","Badge","Red","Blue","Shadow","Elevation","bookingsg","rbs","mylegacy","ccube","oneservice","getThemeColors","props","theme","colorSet","colorScheme","options","color","Color","FontFamily","OpenSans","Regular","Semibold","Bold","PlusJakartaSans","MerriWeather","BaseTextStyleSet","D1","fontFamily","fontSize","fontWeight","lineHeight","letterSpacing","D2","D3","D4","DBody","H1","H2","H3","H4","H5","H6","Body","BodySmall","XSmall","BasePlusSansJakartaStyleSet","TextStyleSpec","plusJakartaSans","getThemeTextStyles","textStyleSet","textStyleScheme","textStyle","TextStyle","FONTS_WITH_WEIGHTS","getFont","weight","getFontFamily","fontFamilyFromTheme","fontWeightFromTheme","find","values","includes","css","_a","getFontWeight","getMaxLinesLineStyle","maxLines","TextStyleHelper","paragraph","attrs","inline","styled","h1","h2","h3","h4","h5","h6","p","span","Hyperlink","Default","HyperlinkComponent","assign","Small","HyperlinkBase","a","StyledExternalIcon","ExternalIcon","external","children","rest","__rest","_jsxs","_jsx","Backdrop","div","LabelText","$isSelected","StyledTickIcon","TickIcon","NavIcon","ChevronDownIcon","$isDropdownExpanded","NavLabel","NavItem","li","NavItemList","ul","$viewportHeight","NavWrapper","nav","$stickyOffset","$isStickied","$sideMargin","LocalNavDropdown","React","forwardRef","defaultLabel","stickyOffset","onNavItemSelect","items","selectedItemIndex","id","testId","className","renderItem","ref","detectStickyRef","useRef","dropdownRef","navWrapperRef","isStickied","setIsStickied","useState","isDropdownExpanded","setIsDropdownExpanded","viewportHeight","setViewportHeight","dropdowntHeight","setDropdownHeight","dynamicMargin","setDynamicMargin","navTestId","useImperativeHandle","current","labelText","title","useEffect","dropdownHeight","getBoundingClientRect","height","window","innerHeight","handleResize","addEventListener","removeEventListener","observer","IntersectionObserver","isIntersecting","threshold","rootMargin","observe","disconnect","document","body","style","overflow","adjustPadding","dropdown","dropdownRect","spaceToRight","clientWidth","right","spaceToLeft","left","sidePadding","Math","max","onClick","prev","item","i","handleClick","isSelected","selected","_Fragment","renderDropdownNavItem","handleNavItemClick","Nav","TextLabel","LocalNavMenu","dataTestId","localNavMenuId","renderLocalNavItem"],"mappings":"+mBAuBA,IAEAA,EAFcC,MAAMC,QCvBhBC,ECC8B,iBAAVC,GAAsBA,GAAUA,EAAOC,SAAWA,QAAUD,EDEhFE,EAA0B,iBAARC,MAAoBA,MAAQA,KAAKF,SAAWA,QAAUE,KAK5EC,EAFWL,GAAcG,GAAYG,SAAS,cAATA,GEDrCC,EALWC,EAGOC,OCHdA,EAASD,EAGTE,EAAcR,OAAOS,UAGrBC,EAAiBF,EAAYE,eAO7BC,EAAuBH,EAAYI,SAGnCC,EAAiBN,EAASA,EAAOO,iBAAcC,EA6BnD,IAAAC,EApBA,SAAmBC,GACjB,IAAIC,EAAQR,EAAeS,KAAKF,EAAOJ,GACnCO,EAAMH,EAAMJ,GAEhB,IACEI,EAAMJ,QAAkBE,EACxB,IAAIM,GAAW,CACnB,CAAI,MAAOC,GAAK,CAEd,IAAIC,EAASZ,EAAqBQ,KAAKF,GAQvC,OAPII,IACEH,EACFD,EAAMJ,GAAkBO,SAEjBH,EAAMJ,IAGVU,CACT,ECnCIZ,EAPcX,OAAOS,UAOcG,SAavC,ICpBIY,EAAYC,EACZC,EDeJ,SAAwBT,GACtB,OAAON,EAAqBQ,KAAKF,EACnC,ECVIJ,EATSP,IASwBQ,iBAAcC,EAkBnD,IAAAY,EATA,SAAoBV,GAClB,OAAa,MAATA,OACeF,IAAVE,EAdQ,qBADL,gBAiBJJ,GAAkBA,KAAkBb,OAAOiB,GAC/CO,EAAUP,GACVS,EAAeT,EACrB,ECGA,IC5BIW,EAAatB,EACbuB,EDuBJ,SAAsBZ,GACpB,OAAgB,MAATA,GAAiC,iBAATA,CACjC,ECEA,IAAAa,EALA,SAAkBb,GAChB,MAAuB,iBAATA,GACXY,EA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google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51]}
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { LocalNavItemProps } from "./types";
3
+ export interface LocalNavItemComponentProps {
4
+ handleClick: React.MouseEventHandler<HTMLLIElement>;
5
+ isSelected: boolean;
6
+ item: LocalNavItemProps;
7
+ renderItem?: ((item: LocalNavItemProps, renderProps: {
8
+ selected: boolean;
9
+ }) => React.ReactNode) | undefined;
10
+ }
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { LocalNavDropdownProps } from "../types";
3
+ export declare const LocalNavDropdown: (props: LocalNavDropdownProps & React.RefAttributes<HTMLElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
@@ -0,0 +1,34 @@
1
+ /// <reference types="react" />
2
+ interface DropdownNavStyleProps {
3
+ $isStickied?: boolean;
4
+ $stickyOffset: number;
5
+ $sideMargin?: number;
6
+ }
7
+ interface NavItemListStyleProps {
8
+ $viewportHeight?: number;
9
+ }
10
+ interface NavItemStyleProps {
11
+ $isSelected?: boolean;
12
+ }
13
+ interface DropdownExpandedProps {
14
+ $isDropdownExpanded: boolean;
15
+ }
16
+ interface NavIconStyleProps extends DropdownExpandedProps {
17
+ }
18
+ interface NavLabelStyleProps extends DropdownExpandedProps {
19
+ }
20
+ export declare const Backdrop: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
21
+ export declare const LabelText: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, import("../..").TextProps & NavItemStyleProps, never>;
22
+ export declare const StyledTickIcon: import("styled-components").StyledComponent<{
23
+ (props: import("react").SVGProps<SVGSVGElement>): JSX.Element;
24
+ displayName: string;
25
+ }, import("styled-components").DefaultTheme, {}, never>;
26
+ export declare const NavIcon: import("styled-components").StyledComponent<{
27
+ (props: import("react").SVGProps<SVGSVGElement>): JSX.Element;
28
+ displayName: string;
29
+ }, import("styled-components").DefaultTheme, NavIconStyleProps, never>;
30
+ export declare const NavLabel: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, NavLabelStyleProps, never>;
31
+ export declare const NavItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, NavItemStyleProps, never>;
32
+ export declare const NavItemList: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, NavItemListStyleProps, never>;
33
+ export declare const NavWrapper: import("styled-components").StyledComponent<"nav", import("styled-components").DefaultTheme, DropdownNavStyleProps, never>;
34
+ export {};
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { LocalNavMenuProps } from "../types";
3
+ export declare const LocalNavMenu: (props: LocalNavMenuProps & React.RefAttributes<HTMLUListElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
@@ -0,0 +1,7 @@
1
+ interface NavItemStyleProps {
2
+ $isSelected?: boolean;
3
+ }
4
+ export declare const Nav: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const TextLabel: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, import("../..").TextProps & NavItemStyleProps, never>;
6
+ export declare const NavItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, NavItemStyleProps, never>;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "@lifesg/react-design-system/local-nav",
3
+ "private": true,
4
+ "main": "../cjs/index.js",
5
+ "module": "./index.js",
6
+ "types": "./index.d.ts"
7
+ }
@@ -0,0 +1,24 @@
1
+ /// <reference types="react" />
2
+ export interface LocalNavItemProps {
3
+ title: string | React.ReactNode;
4
+ id?: string | undefined;
5
+ }
6
+ export interface LocalNavItemRenderProps {
7
+ selected: boolean;
8
+ }
9
+ interface BaseLocalNavProps {
10
+ className?: string | undefined;
11
+ id?: string | undefined;
12
+ "data-testid"?: string | undefined;
13
+ onNavItemSelect: (e: React.MouseEvent, item: LocalNavItemProps, index: number) => void;
14
+ items: LocalNavItemProps[];
15
+ selectedItemIndex?: number | undefined;
16
+ renderItem?: ((item: LocalNavItemProps, renderProps: LocalNavItemRenderProps) => React.ReactNode) | undefined;
17
+ }
18
+ export interface LocalNavMenuProps extends BaseLocalNavProps {
19
+ }
20
+ export interface LocalNavDropdownProps extends BaseLocalNavProps {
21
+ defaultLabel: string | React.ReactNode;
22
+ stickyOffset?: number | undefined;
23
+ }
24
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lifesg/react-design-system",
3
- "version": "2.8.0",
3
+ "version": "2.9.0-canary.1",
4
4
  "description": "A component design system for LifeSG web apps",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./index.js",