@lifesg/react-design-system 1.0.0-alpha.3 → 1.0.0-alpha.5

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.
Files changed (155) hide show
  1. package/accordion/index.css +1 -0
  2. package/accordion/index.js +70 -73
  3. package/accordion/index.js.map +1 -1
  4. package/alert/index.css +1 -0
  5. package/alert/index.js +48 -51
  6. package/alert/index.js.map +1 -1
  7. package/animations/index.css +1 -0
  8. package/box-container/index.css +1 -0
  9. package/box-container/index.js +58 -61
  10. package/box-container/index.js.map +1 -1
  11. package/breadcrumb/index.css +1 -0
  12. package/breadcrumb/index.js +52 -55
  13. package/breadcrumb/index.js.map +1 -1
  14. package/button/index.css +1 -0
  15. package/button/index.js +48 -51
  16. package/button/index.js.map +1 -1
  17. package/checkbox/index.css +1 -0
  18. package/checkbox/index.js +5 -8
  19. package/checkbox/index.js.map +1 -1
  20. package/cjs/index.css +1 -0
  21. package/cjs/index.js +676 -82
  22. package/cjs/index.js.map +1 -1
  23. package/color/index.css +1 -0
  24. package/color/index.js.map +1 -1
  25. package/date-input/index.css +1 -0
  26. package/date-input/index.js +53 -68
  27. package/date-input/index.js.map +1 -1
  28. package/footer/footer-download-app.d.ts +2 -0
  29. package/footer/footer-download-app.style.d.ts +6 -0
  30. package/footer/footer-helper.d.ts +12 -0
  31. package/footer/footer.d.ts +3 -0
  32. package/footer/footer.style.d.ts +12 -0
  33. package/footer/index.css +1 -0
  34. package/footer/index.d.ts +2 -0
  35. package/footer/index.js +361 -0
  36. package/footer/index.js.map +1 -0
  37. package/footer/package.json +7 -0
  38. package/footer/types.d.ts +31 -0
  39. package/form/form-label.d.ts +1 -1
  40. package/form/form-label.style.d.ts +1 -0
  41. package/form/index.css +1 -0
  42. package/form/index.d.ts +1 -1
  43. package/form/index.js +194 -191
  44. package/form/index.js.map +1 -1
  45. package/form/types.d.ts +2 -0
  46. package/icon/cross-icon.d.ts +3 -0
  47. package/icon/index.css +1 -0
  48. package/icon/index.js +3 -6
  49. package/icon/index.js.map +1 -1
  50. package/icon/play-icon.d.ts +3 -0
  51. package/icon-button/index.css +1 -0
  52. package/icon-button/index.js +7 -10
  53. package/icon-button/index.js.map +1 -1
  54. package/index.css +1 -0
  55. package/index.d.ts +5 -0
  56. package/index.js +677 -83
  57. package/index.js.map +1 -1
  58. package/input/index.css +1 -0
  59. package/input/index.js +15 -3
  60. package/input/index.js.map +1 -1
  61. package/input/input.style.d.ts +2 -0
  62. package/input-group/index.css +1 -0
  63. package/input-group/index.js +128 -119
  64. package/input-group/index.js.map +1 -1
  65. package/input-group/input-group.style.d.ts +1 -0
  66. package/input-select/index.css +1 -0
  67. package/input-select/index.js +98 -104
  68. package/input-select/index.js.map +1 -1
  69. package/input-textarea/index.css +1 -0
  70. package/input-textarea/index.js +118 -111
  71. package/input-textarea/index.js.map +1 -1
  72. package/input-textarea/textarea-counter.d.ts +2 -1
  73. package/input-textarea/types.d.ts +1 -0
  74. package/layout/container.d.ts +3 -0
  75. package/layout/content.d.ts +3 -0
  76. package/layout/index.css +1 -0
  77. package/layout/index.d.ts +7 -0
  78. package/layout/index.js +51 -0
  79. package/layout/index.js.map +1 -0
  80. package/layout/package.json +7 -0
  81. package/layout/section.d.ts +3 -0
  82. package/layout/types.d.ts +15 -0
  83. package/link-list/index.css +1 -0
  84. package/link-list/index.js +55 -58
  85. package/link-list/index.js.map +1 -1
  86. package/masonry/index.css +1 -0
  87. package/masonry/index.js.map +1 -1
  88. package/masthead/index.css +1 -0
  89. package/masthead/index.d.ts +1 -0
  90. package/masthead/index.js +5 -0
  91. package/masthead/index.js.map +1 -0
  92. package/masthead/masthead.d.ts +3 -0
  93. package/masthead/package.json +7 -0
  94. package/media/index.css +1 -0
  95. package/media/index.js +1 -1
  96. package/media/index.js.map +1 -1
  97. package/media/media.d.ts +2 -1
  98. package/modal/index.css +1 -0
  99. package/modal/index.js +12 -15
  100. package/modal/index.js.map +1 -1
  101. package/navbar/brand.d.ts +10 -0
  102. package/navbar/brand.styles.d.ts +5 -0
  103. package/navbar/drawer.d.ts +3 -0
  104. package/navbar/drawer.styles.d.ts +12 -0
  105. package/navbar/index.css +1 -0
  106. package/navbar/index.d.ts +6 -0
  107. package/navbar/index.js +659 -0
  108. package/navbar/index.js.map +1 -0
  109. package/navbar/navbar-action-buttons.d.ts +10 -0
  110. package/navbar/navbar-action-buttons.styles.d.ts +9 -0
  111. package/navbar/navbar-items.d.ts +11 -0
  112. package/navbar/navbar-items.styles.d.ts +10 -0
  113. package/navbar/navbar.d.ts +3 -0
  114. package/navbar/navbar.styles.d.ts +14 -0
  115. package/navbar/package.json +7 -0
  116. package/navbar/types.d.ts +56 -0
  117. package/notification-banner/index.css +1 -0
  118. package/notification-banner/index.d.ts +3 -0
  119. package/notification-banner/index.js +262 -0
  120. package/notification-banner/index.js.map +1 -0
  121. package/notification-banner/notification-banner-hoc.d.ts +3 -0
  122. package/notification-banner/notification-banner-label.d.ts +3 -0
  123. package/notification-banner/notification-banner.d.ts +6 -0
  124. package/notification-banner/notification-banner.styles.d.ts +12 -0
  125. package/notification-banner/package.json +7 -0
  126. package/notification-banner/types.d.ts +22 -0
  127. package/overlay/index.css +1 -0
  128. package/package.json +1 -1
  129. package/popover/index.css +1 -0
  130. package/popover/index.js +55 -58
  131. package/popover/index.js.map +1 -1
  132. package/radio-button/index.css +1 -0
  133. package/radio-button/index.js.map +1 -1
  134. package/text/index.css +1 -0
  135. package/text/index.js +25 -28
  136. package/text/index.js.map +1 -1
  137. package/text-list/index.css +1 -0
  138. package/text-list/index.js.map +1 -1
  139. package/theme/index.css +1 -0
  140. package/theme/index.js.map +1 -1
  141. package/theme/types.d.ts +2 -2
  142. package/timeline/index.css +1 -0
  143. package/timeline/index.js +52 -55
  144. package/timeline/index.js.map +1 -1
  145. package/timepicker/index.css +1 -0
  146. package/timepicker/index.js +88 -91
  147. package/timepicker/index.js.map +1 -1
  148. package/toggle-button/index.css +1 -0
  149. package/toggle-button/index.js +110 -113
  150. package/toggle-button/index.js.map +1 -1
  151. package/tooltip/index.css +1 -0
  152. package/tooltip/index.js +51 -54
  153. package/tooltip/index.js.map +1 -1
  154. package/transition/index.css +1 -0
  155. package/icon/play-alt-icon.d.ts +0 -3
@@ -0,0 +1 @@
1
+ :root{--sgds-masthead-font-family:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--sgds-masthead-background-color:hsl(0, 0%, 94%);--sgds-masthead-text-color:hsl(0, 0%, 28%);--sgds-masthead-link-color:hsl(220, 100%, 47%);--sgds-masthead-link-hover-color:hsl(220, 100%, 37%);--sgds-masthead-tablet-padding-x:1.25rem;--sgds-masthead-tablet-font-size:0.75rem;--sgds-masthead-crest-color:rgb(239, 51, 32)}
package/alert/index.js CHANGED
@@ -1,120 +1,117 @@
1
- import{jsx as t,jsxs as e}from"react/jsx-runtime";import n,{css as r}from"styled-components";var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a=Array.isArray,o="object"==typeof i&&i&&i.Object===Object&&i,l="object"==typeof self&&self&&self.Object===Object&&self,c=o||l||Function("return this")(),h=c.Symbol,g=h,f=Object.prototype,d=f.hasOwnProperty,u=f.toString,p=g?g.toStringTag:void 0;var s=function(t){var e=d.call(t,p),n=t[p];try{t[p]=void 0;var r=!0}catch(t){}var i=u.call(t);return r&&(e?t[p]=n:delete t[p]),i},y=Object.prototype.toString;var m=s,F=function(t){return y.call(t)},S=h?h.toStringTag:void 0;var v=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":S&&S in Object(t)?m(t):F(t)};var B=v,H=function(t){return null!=t&&"object"==typeof t};var $=function(t){return"symbol"==typeof t||H(t)&&"[object Symbol]"==B(t)},D=a,_=$,b=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,w=/^\w*$/;var z=function(t,e){if(D(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!_(t))||(w.test(t)||!b.test(t)||null!=e&&t in Object(e))};var C=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},x=v,E=C;var k,W=function(t){if(!E(t))return!1;var e=x(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},A=c["__core-js_shared__"],O=(k=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+k:"";var N=function(t){return!!O&&O in t},j=Function.prototype.toString;var V=W,R=N,T=C,L=function(t){if(null!=t){try{return j.call(t)}catch(t){}try{return t+""}catch(t){}}return""},P=/^\[object .+?Constructor\]$/,I=Function.prototype,G=Object.prototype,X=I.toString,M=G.hasOwnProperty,Z=RegExp("^"+X.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var U=function(t){return!(!T(t)||R(t))&&(V(t)?Z:P).test(L(t))},q=function(t,e){return null==t?void 0:t[e]};var J=function(t,e){var n=q(t,e);return U(n)?n:void 0},K=J(Object,"create"),Q=K;var Y=function(){this.__data__=Q?Q(null):{},this.size=0};var tt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},et=K,nt=Object.prototype.hasOwnProperty;var rt=function(t){var e=this.__data__;if(et){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return nt.call(e,t)?e[t]:void 0},it=K,at=Object.prototype.hasOwnProperty;var ot=K;var lt=Y,ct=tt,ht=rt,gt=function(t){var e=this.__data__;return it?void 0!==e[t]:at.call(e,t)},ft=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ot&&void 0===e?"__lodash_hash_undefined__":e,this};function dt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}dt.prototype.clear=lt,dt.prototype.delete=ct,dt.prototype.get=ht,dt.prototype.has=gt,dt.prototype.set=ft;var ut=dt;var pt=function(){this.__data__=[],this.size=0};var st=function(t,e){return t===e||t!=t&&e!=e};var yt=function(t,e){for(var n=t.length;n--;)if(st(t[n][0],e))return n;return-1},mt=yt,Ft=Array.prototype.splice;var St=yt;var vt=yt;var Bt=yt;var Ht=pt,$t=function(t){var e=this.__data__,n=mt(e,t);return!(n<0)&&(n==e.length-1?e.pop():Ft.call(e,n,1),--this.size,!0)},Dt=function(t){var e=this.__data__,n=St(e,t);return n<0?void 0:e[n][1]},_t=function(t){return vt(this.__data__,t)>-1},bt=function(t,e){var n=this.__data__,r=Bt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function wt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}wt.prototype.clear=Ht,wt.prototype.delete=$t,wt.prototype.get=Dt,wt.prototype.has=_t,wt.prototype.set=bt;var zt=wt,Ct=J(c,"Map"),xt=ut,Et=zt,kt=Ct;var Wt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var At=function(t,e){var n=t.__data__;return Wt(e)?n["string"==typeof e?"string":"hash"]:n.map},Ot=At;var Nt=At;var jt=At;var Vt=At;var Rt=function(){this.size=0,this.__data__={hash:new xt,map:new(kt||Et),string:new xt}},Tt=function(t){var e=Ot(this,t).delete(t);return this.size-=e?1:0,e},Lt=function(t){return Nt(this,t).get(t)},Pt=function(t){return jt(this,t).has(t)},It=function(t,e){var n=Vt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Gt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Gt.prototype.clear=Rt,Gt.prototype.delete=Tt,Gt.prototype.get=Lt,Gt.prototype.has=Pt,Gt.prototype.set=It;var Xt=Gt;function Mt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Mt.Cache||Xt),n}Mt.Cache=Xt;var Zt=Mt;var Ut=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qt=/\\(\\)?/g,Jt=function(t){var e=Zt(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Ut,(function(t,n,r,i){e.push(r?i.replace(qt,"$1"):n||t)})),e}));var Kt=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i},Qt=a,Yt=$,te=h?h.prototype:void 0,ee=te?te.toString:void 0;var ne=function t(e){if("string"==typeof e)return e;if(Qt(e))return Kt(e,t)+"";if(Yt(e))return ee?ee.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},re=ne;var ie=a,ae=z,oe=Jt,le=function(t){return null==t?"":re(t)};var ce=$;var he=function(t,e){return ie(t)?t:ae(t,e)?[t]:oe(le(t))},ge=function(t){if("string"==typeof t||ce(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var fe=function(t,e){for(var n=0,r=(e=he(e,t)).length;null!=t&&n<r;)t=t[ge(e[n++])];return n&&n==r?t:void 0};var de=function(t,e,n){var r=null==t?void 0:fe(t,e);return void 0===r?n:r};const ue=(t,e,n)=>e?de(n,e)||de(t,e):n||t,pe=(t,e)=>{const n=e||t.defaultValue;return de(t.collections,n)};var se;!function(t){t.colorScheme="colorScheme",t.layout="layout",t.textStyleScheme="textStyleScheme"}(se||(se={}));const ye={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#465A88",2:"#556D99",3:"#8D8DBF"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}}},bookingsg:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#9F82D9",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}}}},defaultValue:"base"},me=t=>e=>{const n=e.theme,r=pe(ye,n[se.colorScheme]);return n.options&&n.options.color?ue(r,t,n.options.color):ue(r,t)},Fe={Brand:{1:me("Brand.1"),2:me("Brand.2"),3:me("Brand.3"),4:me("Brand.4"),5:me("Brand.5"),6:me("Brand.6")},Primary:me("Primary"),PrimaryDark:me("PrimaryDark"),Secondary:me("Secondary"),Accent:{Light:{1:me("Accent.Light.1"),2:me("Accent.Light.2"),3:me("Accent.Light.3"),4:me("Accent.Light.4"),5:me("Accent.Light.5"),6:me("Accent.Light.6")},Dark:{1:me("Accent.Dark.1"),2:me("Accent.Dark.2"),3:me("Accent.Dark.3")}},Neutral:{1:me("Neutral.1"),2:me("Neutral.2"),3:me("Neutral.3"),4:me("Neutral.4"),5:me("Neutral.5"),6:me("Neutral.6"),7:me("Neutral.7"),8:me("Neutral.8")},Validation:{Green:{Text:me("Validation.Green.Text"),Icon:me("Validation.Green.Icon"),Border:me("Validation.Green.Border"),Background:me("Validation.Green.Background")},Orange:{Text:me("Validation.Orange.Text"),Icon:me("Validation.Orange.Icon"),Border:me("Validation.Orange.Border"),Background:me("Validation.Orange.Background"),Badge:me("Validation.Orange.Badge")},Red:{Text:me("Validation.Red.Text"),Icon:me("Validation.Red.Icon"),Border:me("Validation.Red.Border"),Background:me("Validation.Red.Background")}}},Se=n.svg`
1
+ import{jsx as t,jsxs as e}from"react/jsx-runtime";import n,{css as r}from"styled-components";var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a=Array.isArray,o="object"==typeof i&&i&&i.Object===Object&&i,l="object"==typeof self&&self&&self.Object===Object&&self,c=o||l||Function("return this")(),h=c.Symbol,g=h,f=Object.prototype,d=f.hasOwnProperty,u=f.toString,p=g?g.toStringTag:void 0;var s=function(t){var e=d.call(t,p),n=t[p];try{t[p]=void 0;var r=!0}catch(t){}var i=u.call(t);return r&&(e?t[p]=n:delete t[p]),i},y=Object.prototype.toString;var m=s,F=function(t){return y.call(t)},S=h?h.toStringTag:void 0;var v=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":S&&S in Object(t)?m(t):F(t)};var B=v,H=function(t){return null!=t&&"object"==typeof t};var $=function(t){return"symbol"==typeof t||H(t)&&"[object Symbol]"==B(t)},D=a,w=$,_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,b=/^\w*$/;var z=function(t,e){if(D(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!w(t))||(b.test(t)||!_.test(t)||null!=e&&t in Object(e))};var C=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},x=v,E=C;var k,W=function(t){if(!E(t))return!1;var e=x(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},A=c["__core-js_shared__"],O=(k=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+k:"";var N=function(t){return!!O&&O in t},L=Function.prototype.toString;var j=W,V=N,R=C,P=function(t){if(null!=t){try{return L.call(t)}catch(t){}try{return t+""}catch(t){}}return""},T=/^\[object .+?Constructor\]$/,I=Function.prototype,G=Object.prototype,X=I.toString,M=G.hasOwnProperty,Z=RegExp("^"+X.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var U=function(t){return!(!R(t)||V(t))&&(j(t)?Z:T).test(P(t))},q=function(t,e){return null==t?void 0:t[e]};var J=function(t,e){var n=q(t,e);return U(n)?n:void 0},K=J(Object,"create"),Q=K;var Y=function(){this.__data__=Q?Q(null):{},this.size=0};var tt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},et=K,nt=Object.prototype.hasOwnProperty;var rt=function(t){var e=this.__data__;if(et){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return nt.call(e,t)?e[t]:void 0},it=K,at=Object.prototype.hasOwnProperty;var ot=K;var lt=Y,ct=tt,ht=rt,gt=function(t){var e=this.__data__;return it?void 0!==e[t]:at.call(e,t)},ft=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ot&&void 0===e?"__lodash_hash_undefined__":e,this};function dt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}dt.prototype.clear=lt,dt.prototype.delete=ct,dt.prototype.get=ht,dt.prototype.has=gt,dt.prototype.set=ft;var ut=dt;var pt=function(){this.__data__=[],this.size=0};var st=function(t,e){return t===e||t!=t&&e!=e};var yt=function(t,e){for(var n=t.length;n--;)if(st(t[n][0],e))return n;return-1},mt=yt,Ft=Array.prototype.splice;var St=yt;var vt=yt;var Bt=yt;var Ht=pt,$t=function(t){var e=this.__data__,n=mt(e,t);return!(n<0)&&(n==e.length-1?e.pop():Ft.call(e,n,1),--this.size,!0)},Dt=function(t){var e=this.__data__,n=St(e,t);return n<0?void 0:e[n][1]},wt=function(t){return vt(this.__data__,t)>-1},_t=function(t,e){var n=this.__data__,r=Bt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function bt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}bt.prototype.clear=Ht,bt.prototype.delete=$t,bt.prototype.get=Dt,bt.prototype.has=wt,bt.prototype.set=_t;var zt=bt,Ct=J(c,"Map"),xt=ut,Et=zt,kt=Ct;var Wt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var At=function(t,e){var n=t.__data__;return Wt(e)?n["string"==typeof e?"string":"hash"]:n.map},Ot=At;var Nt=At;var Lt=At;var jt=At;var Vt=function(){this.size=0,this.__data__={hash:new xt,map:new(kt||Et),string:new xt}},Rt=function(t){var e=Ot(this,t).delete(t);return this.size-=e?1:0,e},Pt=function(t){return Nt(this,t).get(t)},Tt=function(t){return Lt(this,t).has(t)},It=function(t,e){var n=jt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Gt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Gt.prototype.clear=Vt,Gt.prototype.delete=Rt,Gt.prototype.get=Pt,Gt.prototype.has=Tt,Gt.prototype.set=It;var Xt=Gt;function Mt(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Mt.Cache||Xt),n}Mt.Cache=Xt;var Zt=Mt;var Ut=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qt=/\\(\\)?/g,Jt=function(t){var e=Zt(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Ut,(function(t,n,r,i){e.push(r?i.replace(qt,"$1"):n||t)})),e}));var Kt=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i},Qt=a,Yt=$,te=h?h.prototype:void 0,ee=te?te.toString:void 0;var ne=function t(e){if("string"==typeof e)return e;if(Qt(e))return Kt(e,t)+"";if(Yt(e))return ee?ee.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},re=ne;var ie=a,ae=z,oe=Jt,le=function(t){return null==t?"":re(t)};var ce=$;var he=function(t,e){return ie(t)?t:ae(t,e)?[t]:oe(le(t))},ge=function(t){if("string"==typeof t||ce(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var fe=function(t,e){for(var n=0,r=(e=he(e,t)).length;null!=t&&n<r;)t=t[ge(e[n++])];return n&&n==r?t:void 0};var de=function(t,e,n){var r=null==t?void 0:fe(t,e);return void 0===r?n:r};const ue=(t,e,n)=>e?de(n,e)||de(t,e):n||t,pe=(t,e)=>{const n=e||t.defaultValue;return de(t.collections,n)};var se;!function(t){t.colorScheme="colorScheme",t.layout="layout",t.textStyleScheme="textStyleScheme"}(se||(se={}));const ye={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#465A88",2:"#556D99",3:"#8D8DBF"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}}},bookingsg:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#9F82D9",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}}}},defaultValue:"base"},me=t=>e=>{const n=e.theme,r=pe(ye,n[se.colorScheme]);return n.options&&n.options.color?ue(r,t,n.options.color):ue(r,t)},Fe={Brand:{1:me("Brand.1"),2:me("Brand.2"),3:me("Brand.3"),4:me("Brand.4"),5:me("Brand.5"),6:me("Brand.6")},Primary:me("Primary"),PrimaryDark:me("PrimaryDark"),Secondary:me("Secondary"),Accent:{Light:{1:me("Accent.Light.1"),2:me("Accent.Light.2"),3:me("Accent.Light.3"),4:me("Accent.Light.4"),5:me("Accent.Light.5"),6:me("Accent.Light.6")},Dark:{1:me("Accent.Dark.1"),2:me("Accent.Dark.2"),3:me("Accent.Dark.3")}},Neutral:{1:me("Neutral.1"),2:me("Neutral.2"),3:me("Neutral.3"),4:me("Neutral.4"),5:me("Neutral.5"),6:me("Neutral.6"),7:me("Neutral.7"),8:me("Neutral.8")},Validation:{Green:{Text:me("Validation.Green.Text"),Icon:me("Validation.Green.Icon"),Border:me("Validation.Green.Border"),Background:me("Validation.Green.Background")},Orange:{Text:me("Validation.Orange.Text"),Icon:me("Validation.Orange.Icon"),Border:me("Validation.Orange.Border"),Background:me("Validation.Orange.Background"),Badge:me("Validation.Orange.Badge")},Red:{Text:me("Validation.Red.Text"),Icon:me("Validation.Red.Icon"),Border:me("Validation.Red.Border"),Background:me("Validation.Red.Background")}}},Se=n.svg`
2
2
  height: 1rem;
3
3
  width: 1rem;
4
4
  vertical-align: text-top;
5
-
6
- #path {
7
- fill: ${Fe.Neutral[8]};
8
- }
9
- `,ve=e=>t(Se,{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 16 16",...e,children:t("g",{fill:"none",fillRule:"evenodd",children:t("g",{id:"path",fillRule:"nonzero",children:t("g",{children:t("g",{children:t("g",{children:t("path",{d:"M8.706 14.603l6.075-6.075c.294-.29.294-.765 0-1.06L8.706 1.398c-.29-.294-.765-.294-1.06 0l-.693.694c-.3.297-.294.78.013 1.072L10.73 6.75H1.75c-.416 0-.75.334-.75.75v1c0 .416.334.75.75.75h8.981l-3.765 3.587c-.304.291-.31.775-.013 1.072l.694.694c.29.294.765.294 1.06 0z",transform:"translate(-2384.000000, -760.000000) translate(2253.000000, 692.000000) translate(16.000000, 64.000000) translate(115.000000, 4.000000) translate(0.000000, 0.000000)"})})})})})})}),Be=e=>t(Se,{width:"1rem",height:"1rem",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",...e,children:t("path",{id:"path",d:"M20\n\t\t8.639c-.934\n\t\t0-1.742.342-2.43 1.03-.684.684-1.03 1.495-1.03 2.429 0 .931.346 1.742 1.03 2.426.688.688 1.496 1.03 2.43 1.03.931 0 1.742-.342 2.43-1.03.684-.684 1.026-1.495 1.026-2.426 0-.934-.342-1.745-1.026-2.43-.688-.687-1.499-1.03-2.43-1.03m4.61 20.91v-1.976a.959.959 0 0 0-.287-.7.959.959 0 0 0-.7-.286h-.99v-8.232a.954.954 0 0 0-.287-.7.945.945 0 0 0-.7-.29h-5.269a.95.95 0 0 0-.7.29.954.954 0 0 0-.286.7v1.976c0 .271.095.506.286.7a.959.959 0 0 0 .7.287h.99v5.269h-.99a.959.959 0 0 0-.7.286.959.959 0 0 0-.286.7v1.977c0 .274.095.505.286.7a.959.959 0 0 0 .7.286h7.246a.959.959 0 0 0 .7-.287.959.959 0 0 0 .286-.7M20 2.5c3.15 0 6.068.788 8.75 2.365a17.67 17.67 0 0 1 6.385 6.386C36.71 13.933 37.5 16.848 37.5 20c0 3.15-.79 6.068-2.365 8.751a17.71 17.71 0 0 1-6.385 6.385C26.068 36.712 23.15 37.5 20 37.5c-3.153 0-6.068-.788-8.75-2.363a17.71 17.71 0 0 1-6.385-6.385c-1.575-2.683-2.365-5.6-2.365-8.75 0-3.154.79-6.069 2.365-8.751a17.67 17.67 0 0 1 6.385-6.386C13.932 3.288 16.847 2.5 20 2.5",fillRule:"nonzero"})}),He=e=>t(Se,{xmlns:"http://www.w3.org/2000/svg",width:"2rem",height:"2rem",viewBox:"0 0 64 64",id:"play-icon",...e,children:t("path",{id:"path",d:"M52.762 37.237 20.474 53.38A5.856 5.856 0 0 1 12 48.143V15.856a5.856 5.856 0 0 1 8.474-5.238l32.288 16.144a5.856 5.856 0 0 1 0 10.475z",fillRule:"nonzero"})}),$e=e=>t(Se,{xmlns:"http://www.w3.org/2000/svg",width:"2rem",height:"2rem",viewBox:"0 0 32 32",fill:"none",...e,children:t("g",{id:"search",children:t("path",{id:"path",fillRule:"evenodd",clipRule:"evenodd",d:"M7.60986 7.60986C5.86994 9.34977 5 11.445 5 13.8956C5 16.3462 5.86994 18.4414 7.60986 20.1813C9.34977 21.9212 11.445 22.7911 13.8956 22.7911C15.6355 22.7911 17.2345 22.3133 18.6926 21.3576L24.2063 26.8713C24.3044 26.9571 24.4146 27 24.5372 27C24.6597 27 24.77 26.9571 24.868 26.8713L26.8713 24.868C26.9571 24.77 27 24.6597 27 24.5372C27 24.4146 26.9571 24.3044 26.8713 24.2063L21.3576 18.6926C22.3133 17.2345 22.7911 15.6355 22.7911 13.8956C22.7911 11.445 21.9212 9.34977 20.1813 7.60986C18.4414 5.86994 16.3462 5 13.8956 5C11.445 5 9.34977 5.86994 7.60986 7.60986ZM9.59484 18.178C8.4063 16.9894 7.81205 15.562 7.81205 13.8956C7.81205 12.2292 8.4063 10.8017 9.59484 9.61321C10.7834 8.42468 12.2169 7.83042 13.8956 7.83042C15.5742 7.83042 17.0047 8.42162 18.1872 9.60403C19.3696 10.7864 19.9608 12.2169 19.9608 13.8956C19.9608 15.5742 19.3696 17.0047 18.1872 18.1872C17.0047 19.3696 15.5742 19.9608 13.8956 19.9608C12.2169 19.9608 10.7834 19.3665 9.59484 18.178Z"})})}),De=({type:e,...n})=>{switch(e){case"arrow-right":return t(ve,{...n});case"info":return t(Be,{...n});case"search":return t($e,{...n});case"play-alt":return t(He,{...n});default:{const r=`sgds-icon sgds-icon-${e}`,i=n.className?`${r} ${n.className}`:r;return t(_e,{...n,className:i})}}},_e=n.span`
5
+ color: ${Fe.Primary};
6
+ `,ve=e=>t(Se,{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 16 16",...e,children:t("path",{fill:"currentColor",d:"M8.706 14.603l6.075-6.075c.294-.29.294-.765 0-1.06L8.706 1.398c-.29-.294-.765-.294-1.06 0l-.693.694c-.3.297-.294.78.013 1.072L10.73 6.75H1.75c-.416 0-.75.334-.75.75v1c0 .416.334.75.75.75h8.981l-3.765 3.587c-.304.291-.31.775-.013 1.072l.694.694c.29.294.765.294 1.06 0z",transform:"translate(-2384.000000, -760.000000) translate(2253.000000, 692.000000) translate(16.000000, 64.000000) translate(115.000000, 4.000000) translate(0.000000, 0.000000)"})}),Be=e=>t(Se,{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:t("path",{fill:"currentColor",d:"M23.8785 5.13337C24.0563 4.95554 24.3408 4.95554 24.5186 5.13337L26.8666 7.48184C27.0444 7.65572 27.0444 7.9442 26.8666 8.11808L19.3082 15.6819C19.1304 15.8558 19.1304 16.1442 19.3082 16.3221L26.8666 23.8819C27.0444 24.0558 27.0444 24.3443 26.8666 24.5182L24.5186 26.8666C24.3408 27.0445 24.0563 27.0445 23.8785 26.8666L16.32 19.3068C16.1422 19.129 15.8578 19.129 15.68 19.3068L8.12148 26.8666C7.94368 27.0445 7.65919 27.0445 7.48139 26.8666L5.13335 24.5182C4.95555 24.3443 4.95555 24.0558 5.13335 23.8819L12.6918 16.3221C12.8696 16.1442 12.8696 15.8558 12.6918 15.6819L5.13335 8.11808C4.95555 7.9442 4.95555 7.65572 5.13335 7.48184L7.48139 5.13337C7.65919 4.95554 7.94368 4.95554 8.12148 5.13337L15.68 12.6932C15.8578 12.871 16.1422 12.871 16.32 12.6932L23.8785 5.13337Z"})}),He=e=>t(Se,{width:"1rem",height:"1rem",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",...e,children:t("path",{fill:"currentColor",id:"path",d:"M20\n\t\t8.639c-.934\n\t\t0-1.742.342-2.43 1.03-.684.684-1.03 1.495-1.03 2.429 0 .931.346 1.742 1.03 2.426.688.688 1.496 1.03 2.43 1.03.931 0 1.742-.342 2.43-1.03.684-.684 1.026-1.495 1.026-2.426 0-.934-.342-1.745-1.026-2.43-.688-.687-1.499-1.03-2.43-1.03m4.61 20.91v-1.976a.959.959 0 0 0-.287-.7.959.959 0 0 0-.7-.286h-.99v-8.232a.954.954 0 0 0-.287-.7.945.945 0 0 0-.7-.29h-5.269a.95.95 0 0 0-.7.29.954.954 0 0 0-.286.7v1.976c0 .271.095.506.286.7a.959.959 0 0 0 .7.287h.99v5.269h-.99a.959.959 0 0 0-.7.286.959.959 0 0 0-.286.7v1.977c0 .274.095.505.286.7a.959.959 0 0 0 .7.286h7.246a.959.959 0 0 0 .7-.287.959.959 0 0 0 .286-.7M20 2.5c3.15 0 6.068.788 8.75 2.365a17.67 17.67 0 0 1 6.385 6.386C36.71 13.933 37.5 16.848 37.5 20c0 3.15-.79 6.068-2.365 8.751a17.71 17.71 0 0 1-6.385 6.385C26.068 36.712 23.15 37.5 20 37.5c-3.153 0-6.068-.788-8.75-2.363a17.71 17.71 0 0 1-6.385-6.385c-1.575-2.683-2.365-5.6-2.365-8.75 0-3.154.79-6.069 2.365-8.751a17.67 17.67 0 0 1 6.385-6.386C13.932 3.288 16.847 2.5 20 2.5",fillRule:"nonzero"})}),$e=e=>t(Se,{xmlns:"http://www.w3.org/2000/svg",width:"2rem",height:"2rem",viewBox:"0 0 64 64",id:"play-icon",...e,children:t("path",{fill:"currentColor",fillRule:"nonzero",d:"M52.762 37.237 20.474 53.38A5.856 5.856 0 0 1 12 48.143V15.856a5.856 5.856 0 0 1 8.474-5.238l32.288 16.144a5.856 5.856 0 0 1 0 10.475z"})}),De=e=>t(Se,{xmlns:"http://www.w3.org/2000/svg",width:"2rem",height:"2rem",viewBox:"0 0 32 32",...e,children:t("path",{id:"path",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M7.60986 7.60986C5.86994 9.34977 5 11.445 5 13.8956C5 16.3462 5.86994 18.4414 7.60986 20.1813C9.34977 21.9212 11.445 22.7911 13.8956 22.7911C15.6355 22.7911 17.2345 22.3133 18.6926 21.3576L24.2063 26.8713C24.3044 26.9571 24.4146 27 24.5372 27C24.6597 27 24.77 26.9571 24.868 26.8713L26.8713 24.868C26.9571 24.77 27 24.6597 27 24.5372C27 24.4146 26.9571 24.3044 26.8713 24.2063L21.3576 18.6926C22.3133 17.2345 22.7911 15.6355 22.7911 13.8956C22.7911 11.445 21.9212 9.34977 20.1813 7.60986C18.4414 5.86994 16.3462 5 13.8956 5C11.445 5 9.34977 5.86994 7.60986 7.60986ZM9.59484 18.178C8.4063 16.9894 7.81205 15.562 7.81205 13.8956C7.81205 12.2292 8.4063 10.8017 9.59484 9.61321C10.7834 8.42468 12.2169 7.83042 13.8956 7.83042C15.5742 7.83042 17.0047 8.42162 18.1872 9.60403C19.3696 10.7864 19.9608 12.2169 19.9608 13.8956C19.9608 15.5742 19.3696 17.0047 18.1872 18.1872C17.0047 19.3696 15.5742 19.9608 13.8956 19.9608C12.2169 19.9608 10.7834 19.3665 9.59484 18.178Z"})}),we=({type:e,...n})=>{switch(e){case"arrow-right":return t(ve,{...n});case"info":return t(He,{...n});case"cross":return t(Be,{...n});case"play":return t($e,{...n});case"search":return t(De,{...n});default:{const r=`sgds-icon sgds-icon-${e}`,i=n.className?`${r} ${n.className}`:r;return t(_e,{...n,className:i})}}},_e=n.span`
10
7
  font-size: 1rem;
11
- `,be={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},we={collections:{base:{D1:{fontFamily:be.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:be.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:be.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:be.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:be.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:be.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:be.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:be.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:be.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:be.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:be.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:be.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:be.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:be.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},ze=t=>e=>{const n=e.theme,r=pe(we,n[se.textStyleScheme]);return n.options&&n.options.textStyle?ue(r,t,n.options.textStyle):ue(r,t)},Ce={D1:{fontFamily:ze("D1.fontFamily"),fontSize:ze("D1.fontSize"),fontWeight:ze("D1.fontWeight"),lineHeight:ze("D1.lineHeight"),letterSpacing:ze("D1.letterSpacing")},D2:{fontFamily:ze("D2.fontFamily"),fontSize:ze("D2.fontSize"),fontWeight:ze("D2.fontWeight"),lineHeight:ze("D2.lineHeight"),letterSpacing:ze("D2.letterSpacing")},D3:{fontFamily:ze("D3.fontFamily"),fontSize:ze("D3.fontSize"),fontWeight:ze("D3.fontWeight"),lineHeight:ze("D3.lineHeight"),letterSpacing:ze("D3.letterSpacing")},D4:{fontFamily:ze("D4.fontFamily"),fontSize:ze("D4.fontSize"),fontWeight:ze("D4.fontWeight"),lineHeight:ze("D4.lineHeight"),letterSpacing:ze("D4.letterSpacing")},DBody:{fontFamily:ze("DBody.fontFamily"),fontSize:ze("DBody.fontSize"),fontWeight:ze("DBody.fontWeight"),lineHeight:ze("DBody.lineHeight"),letterSpacing:ze("DBody.letterSpacing")},H1:{fontFamily:ze("H1.fontFamily"),fontSize:ze("H1.fontSize"),fontWeight:ze("H1.fontWeight"),lineHeight:ze("H1.lineHeight"),letterSpacing:ze("H1.letterSpacing")},H2:{fontFamily:ze("H2.fontFamily"),fontSize:ze("H2.fontSize"),fontWeight:ze("H2.fontWeight"),lineHeight:ze("H2.lineHeight"),letterSpacing:ze("H2.letterSpacing")},H3:{fontFamily:ze("H3.fontFamily"),fontSize:ze("H3.fontSize"),fontWeight:ze("H3.fontWeight"),lineHeight:ze("H3.lineHeight"),letterSpacing:ze("H3.letterSpacing")},H4:{fontFamily:ze("H4.fontFamily"),fontSize:ze("H4.fontSize"),fontWeight:ze("H4.fontWeight"),lineHeight:ze("H4.lineHeight"),letterSpacing:ze("H4.letterSpacing")},H5:{fontFamily:ze("H5.fontFamily"),fontSize:ze("H5.fontSize"),fontWeight:ze("H5.fontWeight"),lineHeight:ze("H5.lineHeight"),letterSpacing:ze("H5.letterSpacing")},H6:{fontFamily:ze("H6.fontFamily"),fontSize:ze("H6.fontSize"),fontWeight:ze("H6.fontWeight"),lineHeight:ze("H6.lineHeight"),letterSpacing:ze("H6.letterSpacing")},Body:{fontFamily:ze("Body.fontFamily"),fontSize:ze("Body.fontSize"),fontWeight:ze("Body.fontWeight"),lineHeight:ze("Body.lineHeight"),letterSpacing:ze("Body.letterSpacing")},BodySmall:{fontFamily:ze("BodySmall.fontFamily"),fontSize:ze("BodySmall.fontSize"),fontWeight:ze("BodySmall.fontWeight"),lineHeight:ze("BodySmall.lineHeight"),letterSpacing:ze("BodySmall.letterSpacing")},XSmall:{fontFamily:ze("XSmall.fontFamily"),fontSize:ze("XSmall.fontSize"),fontWeight:ze("XSmall.fontWeight"),lineHeight:ze("XSmall.lineHeight"),letterSpacing:ze("XSmall.letterSpacing")}},xe=t=>{switch(t){case 700:case"bold":return be.Bold;case 600:case"semibold":return be.Semibold;case 300:case"light":return be.Light;case 400:case"regular":return be.Regular;default:return""}},Ee=(t,e)=>n=>{const i=Ce[t].fontFamily(n),a=Ce[t].fontWeight(n);return Object.values(be).includes(i)?r`
12
- font-family: ${xe(e)||xe(a)||i};
8
+ `,be={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},ze={collections:{base:{D1:{fontFamily:be.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:be.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:be.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:be.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:be.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:be.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:be.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:be.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:be.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:be.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:be.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:be.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:be.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:be.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},Ce=t=>e=>{const n=e.theme,r=pe(ze,n[se.textStyleScheme]);return n.options&&n.options.textStyle?ue(r,t,n.options.textStyle):ue(r,t)},xe={D1:{fontFamily:Ce("D1.fontFamily"),fontSize:Ce("D1.fontSize"),fontWeight:Ce("D1.fontWeight"),lineHeight:Ce("D1.lineHeight"),letterSpacing:Ce("D1.letterSpacing")},D2:{fontFamily:Ce("D2.fontFamily"),fontSize:Ce("D2.fontSize"),fontWeight:Ce("D2.fontWeight"),lineHeight:Ce("D2.lineHeight"),letterSpacing:Ce("D2.letterSpacing")},D3:{fontFamily:Ce("D3.fontFamily"),fontSize:Ce("D3.fontSize"),fontWeight:Ce("D3.fontWeight"),lineHeight:Ce("D3.lineHeight"),letterSpacing:Ce("D3.letterSpacing")},D4:{fontFamily:Ce("D4.fontFamily"),fontSize:Ce("D4.fontSize"),fontWeight:Ce("D4.fontWeight"),lineHeight:Ce("D4.lineHeight"),letterSpacing:Ce("D4.letterSpacing")},DBody:{fontFamily:Ce("DBody.fontFamily"),fontSize:Ce("DBody.fontSize"),fontWeight:Ce("DBody.fontWeight"),lineHeight:Ce("DBody.lineHeight"),letterSpacing:Ce("DBody.letterSpacing")},H1:{fontFamily:Ce("H1.fontFamily"),fontSize:Ce("H1.fontSize"),fontWeight:Ce("H1.fontWeight"),lineHeight:Ce("H1.lineHeight"),letterSpacing:Ce("H1.letterSpacing")},H2:{fontFamily:Ce("H2.fontFamily"),fontSize:Ce("H2.fontSize"),fontWeight:Ce("H2.fontWeight"),lineHeight:Ce("H2.lineHeight"),letterSpacing:Ce("H2.letterSpacing")},H3:{fontFamily:Ce("H3.fontFamily"),fontSize:Ce("H3.fontSize"),fontWeight:Ce("H3.fontWeight"),lineHeight:Ce("H3.lineHeight"),letterSpacing:Ce("H3.letterSpacing")},H4:{fontFamily:Ce("H4.fontFamily"),fontSize:Ce("H4.fontSize"),fontWeight:Ce("H4.fontWeight"),lineHeight:Ce("H4.lineHeight"),letterSpacing:Ce("H4.letterSpacing")},H5:{fontFamily:Ce("H5.fontFamily"),fontSize:Ce("H5.fontSize"),fontWeight:Ce("H5.fontWeight"),lineHeight:Ce("H5.lineHeight"),letterSpacing:Ce("H5.letterSpacing")},H6:{fontFamily:Ce("H6.fontFamily"),fontSize:Ce("H6.fontSize"),fontWeight:Ce("H6.fontWeight"),lineHeight:Ce("H6.lineHeight"),letterSpacing:Ce("H6.letterSpacing")},Body:{fontFamily:Ce("Body.fontFamily"),fontSize:Ce("Body.fontSize"),fontWeight:Ce("Body.fontWeight"),lineHeight:Ce("Body.lineHeight"),letterSpacing:Ce("Body.letterSpacing")},BodySmall:{fontFamily:Ce("BodySmall.fontFamily"),fontSize:Ce("BodySmall.fontSize"),fontWeight:Ce("BodySmall.fontWeight"),lineHeight:Ce("BodySmall.lineHeight"),letterSpacing:Ce("BodySmall.letterSpacing")},XSmall:{fontFamily:Ce("XSmall.fontFamily"),fontSize:Ce("XSmall.fontSize"),fontWeight:Ce("XSmall.fontWeight"),lineHeight:Ce("XSmall.lineHeight"),letterSpacing:Ce("XSmall.letterSpacing")}},Ee=t=>{switch(t){case 700:case"bold":return be.Bold;case 600:case"semibold":return be.Semibold;case 300:case"light":return be.Light;case 400:case"regular":return be.Regular;default:return""}},ke=(t,e)=>n=>{const i=xe[t].fontFamily(n),a=xe[t].fontWeight(n);return Object.values(be).includes(i)?r`
9
+ font-family: ${Ee(e)||Ee(a)||i};
13
10
  font-weight: normal !important;
14
11
  `:r`
15
12
  font-family: ${i};
16
- font-weight: ${(ke(e)||a)??"normal"};
17
- `},ke=t=>{switch(t){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""}},We=Ee,Ae=(t,e,n=!1)=>i=>{const a=Ce[t],o=a.fontSize(i);return r`
18
- ${Ee(t,e)}
13
+ font-weight: ${(We(e)||a)??"normal"};
14
+ `},We=t=>{switch(t){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""}},Ae=ke,Oe=(t,e,n=!1)=>i=>{const a=xe[t],o=a.fontSize(i);return r`
15
+ ${ke(t,e)}
19
16
  font-size: ${o}rem !important;
20
17
  line-height: ${a.lineHeight}rem !important;
21
18
  letter-spacing: ${a.letterSpacing(i)||0}rem !important;
22
19
  ${r`
23
20
  margin-bottom: ${o*(n?1.05:0)}rem;
24
21
  `}
25
- `},Oe=(t=!1,e=!1)=>e?r`
22
+ `},Ne=(t=!1,e=!1)=>e?r`
26
23
  display: block;
27
24
  `:t?r`
28
25
  display: inline;
29
26
  `:r`
30
27
  display: block;
31
- `;var Ne;!function(t){t.D1=n.h1`
28
+ `;var Le;!function(t){t.D1=n.h1`
32
29
  ${t=>r`
33
- ${Ae("D1",t.weight,t.paragraph)}
30
+ ${Oe("D1",t.weight,t.paragraph)}
34
31
  color: ${Fe.Neutral[1]};
35
- ${Oe(t.inline,t.paragraph)}
32
+ ${Ne(t.inline,t.paragraph)}
36
33
  `}
37
34
  `,t.D2=n.h1`
38
35
  ${t=>r`
39
- ${Ae("D2",t.weight,t.paragraph)}
36
+ ${Oe("D2",t.weight,t.paragraph)}
40
37
  color: ${Fe.Neutral[1]};
41
- ${Oe(t.inline,t.paragraph)}
38
+ ${Ne(t.inline,t.paragraph)}
42
39
  `}
43
40
  `,t.D3=n.h1`
44
41
  ${t=>r`
45
- ${Ae("D3",t.weight,t.paragraph)}
42
+ ${Oe("D3",t.weight,t.paragraph)}
46
43
  color: ${Fe.Neutral[1]};
47
- ${Oe(t.inline,t.paragraph)}
44
+ ${Ne(t.inline,t.paragraph)}
48
45
  `}
49
46
  `,t.D4=n.h1`
50
47
  ${t=>r`
51
- ${Ae("D4",t.weight,t.paragraph)}
48
+ ${Oe("D4",t.weight,t.paragraph)}
52
49
  color: ${Fe.Neutral[1]};
53
- ${Oe(t.inline,t.paragraph)}
50
+ ${Ne(t.inline,t.paragraph)}
54
51
  `}
55
52
  `,t.DBody=n.h1`
56
53
  ${t=>r`
57
- ${Ae("DBody",t.weight,t.paragraph)}
54
+ ${Oe("DBody",t.weight,t.paragraph)}
58
55
  color: ${Fe.Neutral[1]};
59
- ${Oe(t.inline,t.paragraph)}
56
+ ${Ne(t.inline,t.paragraph)}
60
57
  `}
61
58
  `,t.H1=n.h1`
62
59
  ${t=>r`
63
- ${Ae("H1",t.weight,t.paragraph)}
60
+ ${Oe("H1",t.weight,t.paragraph)}
64
61
  color: ${Fe.Neutral[1]};
65
- ${Oe(t.inline,t.paragraph)}
62
+ ${Ne(t.inline,t.paragraph)}
66
63
  `}
67
64
  `,t.H2=n.h2`
68
65
  ${t=>r`
69
- ${Ae("H2",t.weight,t.paragraph)}
66
+ ${Oe("H2",t.weight,t.paragraph)}
70
67
  color: ${Fe.Neutral[1]};
71
- ${Oe(t.inline,t.paragraph)}
68
+ ${Ne(t.inline,t.paragraph)}
72
69
  `}
73
70
  `,t.H3=n.h3`
74
71
  ${t=>r`
75
- ${Ae("H3",t.weight,t.paragraph)}
72
+ ${Oe("H3",t.weight,t.paragraph)}
76
73
  color: ${Fe.Neutral[1]};
77
- ${Oe(t.inline,t.paragraph)}
74
+ ${Ne(t.inline,t.paragraph)}
78
75
  `}
79
76
  `,t.H4=n.h4`
80
77
  ${t=>r`
81
- ${Ae("H4",t.weight,t.paragraph)}
78
+ ${Oe("H4",t.weight,t.paragraph)}
82
79
  color: ${Fe.Neutral[1]};
83
- ${Oe(t.inline,t.paragraph)}
80
+ ${Ne(t.inline,t.paragraph)}
84
81
  `}
85
82
  `,t.H5=n.h5`
86
83
  ${t=>r`
87
- ${Ae("H5",t.weight,t.paragraph)}
84
+ ${Oe("H5",t.weight,t.paragraph)}
88
85
  color: ${Fe.Neutral[1]};
89
- ${Oe(t.inline,t.paragraph)}
86
+ ${Ne(t.inline,t.paragraph)}
90
87
  `}
91
88
  `,t.H6=n.h6`
92
89
  ${t=>r`
93
- ${Ae("H6",t.weight,t.paragraph)}
90
+ ${Oe("H6",t.weight,t.paragraph)}
94
91
  color: ${Fe.Neutral[1]};
95
- ${Oe(t.inline,t.paragraph)}
92
+ ${Ne(t.inline,t.paragraph)}
96
93
  `}
97
94
  `,t.Body=n.p`
98
95
  ${t=>r`
99
- ${Ae("Body",t.weight,t.paragraph)}
96
+ ${Oe("Body",t.weight,t.paragraph)}
100
97
  color: ${Fe.Neutral[1]};
101
- ${Oe(t.inline,t.paragraph)}
98
+ ${Ne(t.inline,t.paragraph)}
102
99
  `}
103
100
  `,t.BodySmall=n.p`
104
101
  ${t=>r`
105
- ${Ae("BodySmall",t.weight,t.paragraph)}
102
+ ${Oe("BodySmall",t.weight,t.paragraph)}
106
103
  color: ${Fe.Neutral[1]};
107
- ${Oe(t.inline,t.paragraph)}
104
+ ${Ne(t.inline,t.paragraph)}
108
105
  `}
109
106
  `,t.XSmall=n.span`
110
107
  ${t=>r`
111
- ${Ae("XSmall",t.weight,t.paragraph)}
108
+ ${Oe("XSmall",t.weight,t.paragraph)}
112
109
  color: ${Fe.Neutral[1]};
113
- ${Oe(t.inline,t.paragraph)}
110
+ ${Ne(t.inline,t.paragraph)}
114
111
  `}
115
- `,t.Hyperlink={Default:t=>Re({...t,textStyle:"Body"}),Small:t=>Re({...t,textStyle:"BodySmall"})}}(Ne||(Ne={}));const je=n.a`
112
+ `,t.Hyperlink={Default:t=>Re({...t,textStyle:"Body"}),Small:t=>Re({...t,textStyle:"BodySmall"})}}(Le||(Le={}));const je=n.a`
116
113
  ${t=>r`
117
- ${Ae(t.textStyle,t.weight)}
114
+ ${Oe(t.textStyle,t.weight)}
118
115
  color: ${Fe.Primary};
119
116
  text-decoration: none;
120
117
 
@@ -124,22 +121,22 @@ import{jsx as t,jsxs as e}from"react/jsx-runtime";import n,{css as r}from"styled
124
121
  color: ${Fe.Secondary};
125
122
  }
126
123
  `}
127
- `,Ve=n(De)`
124
+ `,Ve=n(we)`
128
125
  margin-left: 0.4rem;
129
- `,Re=({external:n=!1,children:r,...i})=>e(je,{...i,children:[r,n&&t(Ve,{type:"external"})]});var Te;!function(t){t[t.Subpage=0]="Subpage",t[t.Domain=1]="Domain"}(Te||(Te={}));const Le=n.div`
126
+ `,Re=({external:n=!1,children:r,...i})=>e(je,{...i,children:[r,n&&t(Ve,{type:"external"})]});var Pe;!function(t){t[t.Subpage=0]="Subpage",t[t.Domain=1]="Domain"}(Pe||(Pe={}));const Te=n.div`
130
127
  padding: 0.5rem 1rem;
131
128
  display: flex;
132
129
  flex-direction: column;
133
- ${Ae("BodySmall","regular")}
130
+ ${Oe("BodySmall","regular")}
134
131
 
135
132
  ${t=>{let e,n;switch(t.$type){case"error":e=Fe.Validation.Red.Background(t),n=Fe.Validation.Red.Border(t);break;case"success":default:e=Fe.Validation.Green.Background(t),n=Fe.Validation.Green.Border(t);break;case"warning":e=Fe.Validation.Orange.Background(t),n=Fe.Validation.Orange.Border(t)}return`\n\t\t\tbackground: ${e};\n\t\t\tborder-left: 2pt solid ${n};\n\t\t`}}
136
133
 
137
134
  p {
138
- ${Ae("BodySmall","regular")}
135
+ ${Oe("BodySmall","regular")}
139
136
  /* display: inline-block; */
140
137
 
141
138
  strong {
142
- ${We("BodySmall","semibold")}
139
+ ${Ae("BodySmall","semibold")}
143
140
  }
144
141
 
145
142
  a {
@@ -153,7 +150,7 @@ import{jsx as t,jsxs as e}from"react/jsx-runtime";import n,{css as r}from"styled
153
150
  }
154
151
  }
155
152
  }
156
- `,Pe=n(Ne.Hyperlink.Small)`
153
+ `,Ie=n(Le.Hyperlink.Small)`
157
154
  margin-bottom: 0;
158
155
  margin-top: 0.5rem;
159
156
  display: flex;
@@ -165,11 +162,11 @@ import{jsx as t,jsxs as e}from"react/jsx-runtime";import n,{css as r}from"styled
165
162
  fill: ${Fe.Secondary};
166
163
  }
167
164
  }
168
- `,Ie=n(De)`
165
+ `,Ge=n(we)`
169
166
  margin-left: 0.25rem;
170
167
 
171
168
  #path {
172
169
  fill: ${Fe.Primary};
173
170
  }
174
- `,Ge=({type:n,className:r,children:i,actionLink:a,...o})=>e(Le,{className:r,$type:n,"data-testid":o["data-testid"],children:[i,a&&e(Pe,{weight:"semibold",...a,"data-testid":"action-link",children:[a.children,t(Ie,{type:"arrow-right"})]})]});export{Ge as Alert};
171
+ `,Xe=({type:n,className:r,children:i,actionLink:a,...o})=>e(Te,{className:r,$type:n,"data-testid":o["data-testid"],children:[i,a&&e(Ie,{weight:"semibold",...a,"data-testid":"action-link",children:[a.children,t(Ge,{type:"arrow-right"})]})]});export{Xe as Alert};
175
172
  //# sourceMappingURL=index.js.map