@lifesg/react-design-system 1.0.0-alpha.4 → 1.0.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/index.css +1 -0
- package/accordion/index.js +70 -73
- package/accordion/index.js.map +1 -1
- package/alert/index.css +1 -0
- package/alert/index.js +48 -51
- package/alert/index.js.map +1 -1
- package/animations/index.css +1 -0
- package/box-container/index.css +1 -0
- package/box-container/index.js +58 -61
- package/box-container/index.js.map +1 -1
- package/breadcrumb/index.css +1 -0
- package/breadcrumb/index.js +52 -55
- package/breadcrumb/index.js.map +1 -1
- package/button/index.css +1 -0
- package/button/index.js +48 -51
- package/button/index.js.map +1 -1
- package/checkbox/index.css +1 -0
- package/checkbox/index.js +5 -8
- package/checkbox/index.js.map +1 -1
- package/cjs/index.css +1 -0
- package/cjs/index.js +798 -87
- package/cjs/index.js.map +1 -1
- package/color/index.css +1 -0
- package/color/index.js.map +1 -1
- package/date-input/index.css +1 -0
- package/date-input/index.js +53 -68
- package/date-input/index.js.map +1 -1
- package/error-display/error-display-data.d.ts +11 -0
- package/error-display/error-display.d.ts +3 -0
- package/error-display/error-display.style.d.ts +7 -0
- package/error-display/index.css +1 -0
- package/error-display/index.d.ts +2 -0
- package/error-display/index.js +322 -0
- package/error-display/index.js.map +1 -0
- package/error-display/package.json +7 -0
- package/error-display/types.d.ts +20 -0
- package/footer/footer-download-app.d.ts +2 -0
- package/footer/footer-download-app.style.d.ts +6 -0
- package/footer/footer-helper.d.ts +12 -0
- package/footer/footer.d.ts +3 -0
- package/footer/footer.style.d.ts +12 -0
- package/footer/index.css +1 -0
- package/footer/index.d.ts +2 -0
- package/footer/index.js +361 -0
- package/footer/index.js.map +1 -0
- package/footer/package.json +7 -0
- package/footer/types.d.ts +31 -0
- package/form/form-label.d.ts +1 -1
- package/form/form-label.style.d.ts +1 -0
- package/form/index.css +1 -0
- package/form/index.d.ts +1 -1
- package/form/index.js +194 -191
- package/form/index.js.map +1 -1
- package/form/types.d.ts +2 -0
- package/icon/cross-icon.d.ts +3 -0
- package/icon/index.css +1 -0
- package/icon/index.js +3 -6
- package/icon/index.js.map +1 -1
- package/icon/play-icon.d.ts +3 -0
- package/icon-button/index.css +1 -0
- package/icon-button/index.js +7 -10
- package/icon-button/index.js.map +1 -1
- package/index.css +1 -0
- package/index.d.ts +7 -0
- package/index.js +826 -115
- package/index.js.map +1 -1
- package/input/index.css +1 -0
- package/input/index.js +15 -3
- package/input/index.js.map +1 -1
- package/input/input.style.d.ts +2 -0
- package/input-group/index.css +1 -0
- package/input-group/index.js +128 -119
- package/input-group/index.js.map +1 -1
- package/input-group/input-group.style.d.ts +1 -0
- package/input-select/index.css +1 -0
- package/input-select/index.js +98 -104
- package/input-select/index.js.map +1 -1
- package/input-textarea/index.css +1 -0
- package/input-textarea/index.js +118 -111
- package/input-textarea/index.js.map +1 -1
- package/input-textarea/textarea-counter.d.ts +2 -1
- package/input-textarea/types.d.ts +1 -0
- package/layout/container.d.ts +3 -0
- package/layout/content.d.ts +3 -0
- package/layout/index.css +1 -0
- package/layout/index.d.ts +7 -0
- package/layout/index.js +51 -0
- package/layout/index.js.map +1 -0
- package/layout/package.json +7 -0
- package/layout/section.d.ts +3 -0
- package/layout/types.d.ts +15 -0
- package/link-list/index.css +1 -0
- package/link-list/index.js +55 -58
- package/link-list/index.js.map +1 -1
- package/masonry/index.css +1 -0
- package/masthead/index.css +1 -0
- package/masthead/index.d.ts +1 -0
- package/masthead/index.js +5 -0
- package/masthead/index.js.map +1 -0
- package/masthead/masthead.d.ts +3 -0
- package/masthead/package.json +7 -0
- package/media/index.css +1 -0
- package/modal/index.css +1 -0
- package/modal/index.js +12 -15
- package/modal/index.js.map +1 -1
- package/navbar/brand.d.ts +10 -0
- package/navbar/brand.styles.d.ts +5 -0
- package/navbar/drawer.d.ts +3 -0
- package/navbar/drawer.styles.d.ts +12 -0
- package/navbar/index.css +1 -0
- package/navbar/index.d.ts +6 -0
- package/navbar/index.js +659 -0
- package/navbar/index.js.map +1 -0
- package/navbar/navbar-action-buttons.d.ts +10 -0
- package/navbar/navbar-action-buttons.styles.d.ts +9 -0
- package/navbar/navbar-items.d.ts +11 -0
- package/navbar/navbar-items.styles.d.ts +10 -0
- package/navbar/navbar.d.ts +3 -0
- package/navbar/navbar.styles.d.ts +14 -0
- package/navbar/package.json +7 -0
- package/navbar/types.d.ts +56 -0
- package/notification-banner/index.css +1 -0
- package/notification-banner/index.d.ts +3 -0
- package/notification-banner/index.js +262 -0
- package/notification-banner/index.js.map +1 -0
- package/notification-banner/notification-banner-hoc.d.ts +3 -0
- package/notification-banner/notification-banner-label.d.ts +3 -0
- package/notification-banner/notification-banner.d.ts +6 -0
- package/notification-banner/notification-banner.styles.d.ts +12 -0
- package/notification-banner/package.json +7 -0
- package/notification-banner/types.d.ts +22 -0
- package/overlay/index.css +1 -0
- package/package.json +1 -1
- package/popover/index.css +1 -0
- package/popover/index.js +55 -58
- package/popover/index.js.map +1 -1
- package/progress-indicator/index.css +1 -0
- package/progress-indicator/index.d.ts +2 -0
- package/progress-indicator/index.js +236 -0
- package/progress-indicator/index.js.map +1 -0
- package/progress-indicator/package.json +7 -0
- package/progress-indicator/progress-indicator.d.ts +3 -0
- package/progress-indicator/progress-indicator.style.d.ts +19 -0
- package/progress-indicator/types.d.ts +9 -0
- package/radio-button/index.css +1 -0
- package/radio-button/index.js.map +1 -1
- package/text/index.css +1 -0
- package/text/index.js +25 -28
- package/text/index.js.map +1 -1
- package/text-list/index.css +1 -0
- package/text-list/index.js.map +1 -1
- package/theme/index.css +1 -0
- package/theme/index.js.map +1 -1
- package/theme/types.d.ts +2 -2
- package/timeline/index.css +1 -0
- package/timeline/index.js +52 -55
- package/timeline/index.js.map +1 -1
- package/timepicker/index.css +1 -0
- package/timepicker/index.js +88 -91
- package/timepicker/index.js.map +1 -1
- package/toggle-button/index.css +1 -0
- package/toggle-button/index.js +110 -113
- package/toggle-button/index.js.map +1 -1
- package/tooltip/index.css +1 -0
- package/tooltip/index.js +51 -54
- package/tooltip/index.js.map +1 -1
- package/transition/index.css +1 -0
- package/icon/play-alt-icon.d.ts +0 -3
package/text/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import t,{css as e}from"styled-components";import{jsx as n,jsxs as i}from"react/jsx-runtime";const r={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},a={D1:{fontFamily:r.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:r.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:r.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:r.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:r.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:r.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:r.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:r.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:r.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:r.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:r.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:r.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:r.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:r.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}};var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l=Array.isArray,c="object"==typeof o&&o&&o.Object===Object&&o,g="object"==typeof self&&self&&self.Object===Object&&self,h=c||g||Function("return this")(),f=h.Symbol,p=f,s=Object.prototype,u=s.hasOwnProperty,y=s.toString,d=p?p.toStringTag:void 0;var S=function(t){var e=u.call(t,d),n=t[d];try{t[d]=void 0;var i=!0}catch(t){}var r=y.call(t);return i&&(e?t[d]=n:delete t[d]),r},F=Object.prototype.toString;var m=S,v=function(t){return F.call(t)},D=f?f.toStringTag:void 0;var H=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":D&&D in Object(t)?m(t):v(t)};var B=H,$=function(t){return null!=t&&"object"==typeof t};var _=function(t){return"symbol"==typeof t||$(t)&&"[object Symbol]"==B(t)},w=l,z=_,b=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,x=/^\w*$/;var C=function(t,e){if(w(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!z(t))||(x.test(t)||!b.test(t)||null!=e&&t in Object(e))};var E=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},W=H,A=E;var O,T=function(t){if(!A(t))return!1;var e=W(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},j=h["__core-js_shared__"],k=(O=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+O:"";var R=function(t){return!!k&&k in t},V=Function.prototype.toString;var L=T,N=R,P=E,I=function(t){if(null!=t){try{return V.call(t)}catch(t){}try{return t+""}catch(t){}}return""},X=/^\[object .+?Constructor\]$/,G=Function.prototype,M=Object.prototype,Z=G.toString,U=M.hasOwnProperty,q=RegExp("^"+Z.call(U).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var J=function(t){return!(!P(t)||N(t))&&(L(t)?q:X).test(I(t))},K=function(t,e){return null==t?void 0:t[e]};var Q=function(t,e){var n=K(t,e);return J(n)?n:void 0},Y=Q(Object,"create"),tt=Y;var et=function(){this.__data__=tt?tt(null):{},this.size=0};var nt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},it=Y,rt=Object.prototype.hasOwnProperty;var at=function(t){var e=this.__data__;if(it){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return rt.call(e,t)?e[t]:void 0},ot=Y,lt=Object.prototype.hasOwnProperty;var ct=Y;var gt=et,ht=nt,ft=at,pt=function(t){var e=this.__data__;return ot?void 0!==e[t]:lt.call(e,t)},st=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ct&&void 0===e?"__lodash_hash_undefined__":e,this};function ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}ut.prototype.clear=gt,ut.prototype.delete=ht,ut.prototype.get=ft,ut.prototype.has=pt,ut.prototype.set=st;var yt=ut;var dt=function(){this.__data__=[],this.size=0};var St=function(t,e){return t===e||t!=t&&e!=e};var Ft=function(t,e){for(var n=t.length;n--;)if(St(t[n][0],e))return n;return-1},mt=Ft,vt=Array.prototype.splice;var Dt=Ft;var Ht=Ft;var Bt=Ft;var $t=dt,_t=function(t){var e=this.__data__,n=mt(e,t);return!(n<0)&&(n==e.length-1?e.pop():vt.call(e,n,1),--this.size,!0)},wt=function(t){var e=this.__data__,n=Dt(e,t);return n<0?void 0:e[n][1]},zt=function(t){return Ht(this.__data__,t)>-1},bt=function(t,e){var n=this.__data__,i=Bt(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};function xt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}xt.prototype.clear=$t,xt.prototype.delete=_t,xt.prototype.get=wt,xt.prototype.has=zt,xt.prototype.set=bt;var Ct=xt,Et=Q(h,"Map"),Wt=yt,At=Ct,Ot=Et;var Tt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var jt=function(t,e){var n=t.__data__;return Tt(e)?n["string"==typeof e?"string":"hash"]:n.map},kt=jt;var Rt=jt;var Vt=jt;var Lt=jt;var Nt=function(){this.size=0,this.__data__={hash:new Wt,map:new(Ot||At),string:new Wt}},Pt=function(t){var e=kt(this,t).delete(t);return this.size-=e?1:0,e},It=function(t){return Rt(this,t).get(t)},Xt=function(t){return Vt(this,t).has(t)},Gt=function(t,e){var n=Lt(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this};function Mt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Mt.prototype.clear=Nt,Mt.prototype.delete=Pt,Mt.prototype.get=It,Mt.prototype.has=Xt,Mt.prototype.set=Gt;var Zt=Mt;function Ut(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],a=n.cache;if(a.has(r))return a.get(r);var o=t.apply(this,i);return n.cache=a.set(r,o)||a,o};return n.cache=new(Ut.Cache||Zt),n}Ut.Cache=Zt;var qt=Ut;var Jt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kt=/\\(\\)?/g,Qt=function(t){var e=qt(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(Jt,(function(t,n,i,r){e.push(i?r.replace(Kt,"$1"):n||t)})),e}));var Yt=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r},te=l,ee=_,ne=f?f.prototype:void 0,ie=ne?ne.toString:void 0;var re=function t(e){if("string"==typeof e)return e;if(te(e))return Yt(e,t)+"";if(ee(e))return ie?ie.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},ae=re;var oe=l,le=C,ce=Qt,ge=function(t){return null==t?"":ae(t)};var he=_;var fe=function(t,e){return oe(t)?t:le(t,e)?[t]:ce(ge(t))},pe=function(t){if("string"==typeof t||he(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var se=function(t,e){for(var n=0,i=(e=fe(e,t)).length;null!=t&&n<i;)t=t[pe(e[n++])];return n&&n==i?t:void 0};var ue=function(t,e,n){var i=null==t?void 0:se(t,e);return void 0===i?n:i};const ye=(t,e,n)=>e?ue(n,e)||ue(t,e):n||t,de=(t,e)=>{const n=e||t.defaultValue;return ue(t.collections,n)};var Se;!function(t){t.colorScheme="colorScheme",t.layout="layout",t.textStyleScheme="textStyleScheme"}(Se||(Se={}));const Fe={collections:{base:a},defaultValue:"base"},me=t=>e=>{const n=e.theme,i=de(Fe,n[Se.textStyleScheme]);return n.options&&n.options.textStyle?ye(i,t,n.options.textStyle):ye(i,t)},ve={D1:{fontFamily:me("D1.fontFamily"),fontSize:me("D1.fontSize"),fontWeight:me("D1.fontWeight"),lineHeight:me("D1.lineHeight"),letterSpacing:me("D1.letterSpacing")},D2:{fontFamily:me("D2.fontFamily"),fontSize:me("D2.fontSize"),fontWeight:me("D2.fontWeight"),lineHeight:me("D2.lineHeight"),letterSpacing:me("D2.letterSpacing")},D3:{fontFamily:me("D3.fontFamily"),fontSize:me("D3.fontSize"),fontWeight:me("D3.fontWeight"),lineHeight:me("D3.lineHeight"),letterSpacing:me("D3.letterSpacing")},D4:{fontFamily:me("D4.fontFamily"),fontSize:me("D4.fontSize"),fontWeight:me("D4.fontWeight"),lineHeight:me("D4.lineHeight"),letterSpacing:me("D4.letterSpacing")},DBody:{fontFamily:me("DBody.fontFamily"),fontSize:me("DBody.fontSize"),fontWeight:me("DBody.fontWeight"),lineHeight:me("DBody.lineHeight"),letterSpacing:me("DBody.letterSpacing")},H1:{fontFamily:me("H1.fontFamily"),fontSize:me("H1.fontSize"),fontWeight:me("H1.fontWeight"),lineHeight:me("H1.lineHeight"),letterSpacing:me("H1.letterSpacing")},H2:{fontFamily:me("H2.fontFamily"),fontSize:me("H2.fontSize"),fontWeight:me("H2.fontWeight"),lineHeight:me("H2.lineHeight"),letterSpacing:me("H2.letterSpacing")},H3:{fontFamily:me("H3.fontFamily"),fontSize:me("H3.fontSize"),fontWeight:me("H3.fontWeight"),lineHeight:me("H3.lineHeight"),letterSpacing:me("H3.letterSpacing")},H4:{fontFamily:me("H4.fontFamily"),fontSize:me("H4.fontSize"),fontWeight:me("H4.fontWeight"),lineHeight:me("H4.lineHeight"),letterSpacing:me("H4.letterSpacing")},H5:{fontFamily:me("H5.fontFamily"),fontSize:me("H5.fontSize"),fontWeight:me("H5.fontWeight"),lineHeight:me("H5.lineHeight"),letterSpacing:me("H5.letterSpacing")},H6:{fontFamily:me("H6.fontFamily"),fontSize:me("H6.fontSize"),fontWeight:me("H6.fontWeight"),lineHeight:me("H6.lineHeight"),letterSpacing:me("H6.letterSpacing")},Body:{fontFamily:me("Body.fontFamily"),fontSize:me("Body.fontSize"),fontWeight:me("Body.fontWeight"),lineHeight:me("Body.lineHeight"),letterSpacing:me("Body.letterSpacing")},BodySmall:{fontFamily:me("BodySmall.fontFamily"),fontSize:me("BodySmall.fontSize"),fontWeight:me("BodySmall.fontWeight"),lineHeight:me("BodySmall.lineHeight"),letterSpacing:me("BodySmall.letterSpacing")},XSmall:{fontFamily:me("XSmall.fontFamily"),fontSize:me("XSmall.fontSize"),fontWeight:me("XSmall.fontWeight"),lineHeight:me("XSmall.lineHeight"),letterSpacing:me("XSmall.letterSpacing")}},De=t=>{switch(t){case 700:case"bold":return r.Bold;case 600:case"semibold":return r.Semibold;case 300:case"light":return r.Light;case 400:case"regular":return r.Regular;default:return""}},He=(t,n)=>i=>{const a=ve[t].fontFamily(i),o=ve[t].fontWeight(i);return Object.values(r).includes(a)?e`
|
|
1
|
+
import t,{css as e}from"styled-components";import{jsx as n,jsxs as i}from"react/jsx-runtime";const r={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},a={D1:{fontFamily:r.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:r.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:r.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:r.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:r.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:r.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:r.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:r.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:r.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:r.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:r.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:r.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:r.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:r.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}};var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l=Array.isArray,c="object"==typeof o&&o&&o.Object===Object&&o,g="object"==typeof self&&self&&self.Object===Object&&self,h=c||g||Function("return this")(),f=h.Symbol,p=f,s=Object.prototype,u=s.hasOwnProperty,y=s.toString,d=p?p.toStringTag:void 0;var S=function(t){var e=u.call(t,d),n=t[d];try{t[d]=void 0;var i=!0}catch(t){}var r=y.call(t);return i&&(e?t[d]=n:delete t[d]),r},F=Object.prototype.toString;var m=S,v=function(t){return F.call(t)},D=f?f.toStringTag:void 0;var B=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":D&&D in Object(t)?m(t):v(t)};var H=B,$=function(t){return null!=t&&"object"==typeof t};var _=function(t){return"symbol"==typeof t||$(t)&&"[object Symbol]"==H(t)},w=l,z=_,C=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,b=/^\w*$/;var x=function(t,e){if(w(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!z(t))||(b.test(t)||!C.test(t)||null!=e&&t in Object(e))};var E=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},W=B,A=E;var O,T=function(t){if(!A(t))return!1;var e=W(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},L=h["__core-js_shared__"],j=(O=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+O:"";var k=function(t){return!!j&&j in t},V=Function.prototype.toString;var R=T,N=k,P=E,I=function(t){if(null!=t){try{return V.call(t)}catch(t){}try{return t+""}catch(t){}}return""},X=/^\[object .+?Constructor\]$/,M=Function.prototype,G=Object.prototype,Z=M.toString,U=G.hasOwnProperty,q=RegExp("^"+Z.call(U).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var J=function(t){return!(!P(t)||N(t))&&(R(t)?q:X).test(I(t))},K=function(t,e){return null==t?void 0:t[e]};var Q=function(t,e){var n=K(t,e);return J(n)?n:void 0},Y=Q(Object,"create"),tt=Y;var et=function(){this.__data__=tt?tt(null):{},this.size=0};var nt=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},it=Y,rt=Object.prototype.hasOwnProperty;var at=function(t){var e=this.__data__;if(it){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return rt.call(e,t)?e[t]:void 0},ot=Y,lt=Object.prototype.hasOwnProperty;var ct=Y;var gt=et,ht=nt,ft=at,pt=function(t){var e=this.__data__;return ot?void 0!==e[t]:lt.call(e,t)},st=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ct&&void 0===e?"__lodash_hash_undefined__":e,this};function ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}ut.prototype.clear=gt,ut.prototype.delete=ht,ut.prototype.get=ft,ut.prototype.has=pt,ut.prototype.set=st;var yt=ut;var dt=function(){this.__data__=[],this.size=0};var St=function(t,e){return t===e||t!=t&&e!=e};var Ft=function(t,e){for(var n=t.length;n--;)if(St(t[n][0],e))return n;return-1},mt=Ft,vt=Array.prototype.splice;var Dt=Ft;var Bt=Ft;var Ht=Ft;var $t=dt,_t=function(t){var e=this.__data__,n=mt(e,t);return!(n<0)&&(n==e.length-1?e.pop():vt.call(e,n,1),--this.size,!0)},wt=function(t){var e=this.__data__,n=Dt(e,t);return n<0?void 0:e[n][1]},zt=function(t){return Bt(this.__data__,t)>-1},Ct=function(t,e){var n=this.__data__,i=Ht(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};function bt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}bt.prototype.clear=$t,bt.prototype.delete=_t,bt.prototype.get=wt,bt.prototype.has=zt,bt.prototype.set=Ct;var xt=bt,Et=Q(h,"Map"),Wt=yt,At=xt,Ot=Et;var Tt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Lt=function(t,e){var n=t.__data__;return Tt(e)?n["string"==typeof e?"string":"hash"]:n.map},jt=Lt;var kt=Lt;var Vt=Lt;var Rt=Lt;var Nt=function(){this.size=0,this.__data__={hash:new Wt,map:new(Ot||At),string:new Wt}},Pt=function(t){var e=jt(this,t).delete(t);return this.size-=e?1:0,e},It=function(t){return kt(this,t).get(t)},Xt=function(t){return Vt(this,t).has(t)},Mt=function(t,e){var n=Rt(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this};function Gt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Gt.prototype.clear=Nt,Gt.prototype.delete=Pt,Gt.prototype.get=It,Gt.prototype.has=Xt,Gt.prototype.set=Mt;var Zt=Gt;function Ut(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],a=n.cache;if(a.has(r))return a.get(r);var o=t.apply(this,i);return n.cache=a.set(r,o)||a,o};return n.cache=new(Ut.Cache||Zt),n}Ut.Cache=Zt;var qt=Ut;var Jt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kt=/\\(\\)?/g,Qt=function(t){var e=qt(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(Jt,(function(t,n,i,r){e.push(i?r.replace(Kt,"$1"):n||t)})),e}));var Yt=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r},te=l,ee=_,ne=f?f.prototype:void 0,ie=ne?ne.toString:void 0;var re=function t(e){if("string"==typeof e)return e;if(te(e))return Yt(e,t)+"";if(ee(e))return ie?ie.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},ae=re;var oe=l,le=x,ce=Qt,ge=function(t){return null==t?"":ae(t)};var he=_;var fe=function(t,e){return oe(t)?t:le(t,e)?[t]:ce(ge(t))},pe=function(t){if("string"==typeof t||he(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var se=function(t,e){for(var n=0,i=(e=fe(e,t)).length;null!=t&&n<i;)t=t[pe(e[n++])];return n&&n==i?t:void 0};var ue=function(t,e,n){var i=null==t?void 0:se(t,e);return void 0===i?n:i};const ye=(t,e,n)=>e?ue(n,e)||ue(t,e):n||t,de=(t,e)=>{const n=e||t.defaultValue;return ue(t.collections,n)};var Se;!function(t){t.colorScheme="colorScheme",t.layout="layout",t.textStyleScheme="textStyleScheme"}(Se||(Se={}));const Fe={collections:{base:a},defaultValue:"base"},me=t=>e=>{const n=e.theme,i=de(Fe,n[Se.textStyleScheme]);return n.options&&n.options.textStyle?ye(i,t,n.options.textStyle):ye(i,t)},ve={D1:{fontFamily:me("D1.fontFamily"),fontSize:me("D1.fontSize"),fontWeight:me("D1.fontWeight"),lineHeight:me("D1.lineHeight"),letterSpacing:me("D1.letterSpacing")},D2:{fontFamily:me("D2.fontFamily"),fontSize:me("D2.fontSize"),fontWeight:me("D2.fontWeight"),lineHeight:me("D2.lineHeight"),letterSpacing:me("D2.letterSpacing")},D3:{fontFamily:me("D3.fontFamily"),fontSize:me("D3.fontSize"),fontWeight:me("D3.fontWeight"),lineHeight:me("D3.lineHeight"),letterSpacing:me("D3.letterSpacing")},D4:{fontFamily:me("D4.fontFamily"),fontSize:me("D4.fontSize"),fontWeight:me("D4.fontWeight"),lineHeight:me("D4.lineHeight"),letterSpacing:me("D4.letterSpacing")},DBody:{fontFamily:me("DBody.fontFamily"),fontSize:me("DBody.fontSize"),fontWeight:me("DBody.fontWeight"),lineHeight:me("DBody.lineHeight"),letterSpacing:me("DBody.letterSpacing")},H1:{fontFamily:me("H1.fontFamily"),fontSize:me("H1.fontSize"),fontWeight:me("H1.fontWeight"),lineHeight:me("H1.lineHeight"),letterSpacing:me("H1.letterSpacing")},H2:{fontFamily:me("H2.fontFamily"),fontSize:me("H2.fontSize"),fontWeight:me("H2.fontWeight"),lineHeight:me("H2.lineHeight"),letterSpacing:me("H2.letterSpacing")},H3:{fontFamily:me("H3.fontFamily"),fontSize:me("H3.fontSize"),fontWeight:me("H3.fontWeight"),lineHeight:me("H3.lineHeight"),letterSpacing:me("H3.letterSpacing")},H4:{fontFamily:me("H4.fontFamily"),fontSize:me("H4.fontSize"),fontWeight:me("H4.fontWeight"),lineHeight:me("H4.lineHeight"),letterSpacing:me("H4.letterSpacing")},H5:{fontFamily:me("H5.fontFamily"),fontSize:me("H5.fontSize"),fontWeight:me("H5.fontWeight"),lineHeight:me("H5.lineHeight"),letterSpacing:me("H5.letterSpacing")},H6:{fontFamily:me("H6.fontFamily"),fontSize:me("H6.fontSize"),fontWeight:me("H6.fontWeight"),lineHeight:me("H6.lineHeight"),letterSpacing:me("H6.letterSpacing")},Body:{fontFamily:me("Body.fontFamily"),fontSize:me("Body.fontSize"),fontWeight:me("Body.fontWeight"),lineHeight:me("Body.lineHeight"),letterSpacing:me("Body.letterSpacing")},BodySmall:{fontFamily:me("BodySmall.fontFamily"),fontSize:me("BodySmall.fontSize"),fontWeight:me("BodySmall.fontWeight"),lineHeight:me("BodySmall.lineHeight"),letterSpacing:me("BodySmall.letterSpacing")},XSmall:{fontFamily:me("XSmall.fontFamily"),fontSize:me("XSmall.fontSize"),fontWeight:me("XSmall.fontWeight"),lineHeight:me("XSmall.lineHeight"),letterSpacing:me("XSmall.letterSpacing")}},De=t=>{switch(t){case 700:case"bold":return r.Bold;case 600:case"semibold":return r.Semibold;case 300:case"light":return r.Light;case 400:case"regular":return r.Regular;default:return""}},Be=(t,n)=>i=>{const a=ve[t].fontFamily(i),o=ve[t].fontWeight(i);return Object.values(r).includes(a)?e`
|
|
2
2
|
font-family: ${De(n)||De(o)||a};
|
|
3
3
|
font-weight: normal !important;
|
|
4
4
|
`:e`
|
|
5
5
|
font-family: ${a};
|
|
6
|
-
font-weight: ${(
|
|
7
|
-
`},
|
|
8
|
-
${
|
|
6
|
+
font-weight: ${(He(n)||o)??"normal"};
|
|
7
|
+
`},He=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""}},$e={getFontFamily:Be,getTextStyle:(t,n,i=!1)=>r=>{const a=ve[t],o=a.fontSize(r);return e`
|
|
8
|
+
${Be(t,n)}
|
|
9
9
|
font-size: ${o}rem !important;
|
|
10
10
|
line-height: ${a.lineHeight}rem !important;
|
|
11
11
|
letter-spacing: ${a.letterSpacing(r)||0}rem !important;
|
|
@@ -18,101 +18,98 @@ import t,{css as e}from"styled-components";import{jsx as n,jsxs as i}from"react/
|
|
|
18
18
|
display: inline;
|
|
19
19
|
`:e`
|
|
20
20
|
display: block;
|
|
21
|
-
`},_e={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"},we=t=>e=>{const n=e.theme,i=de(_e,n[Se.colorScheme]);return n.options&&n.options.color?ye(i,t,n.options.color):ye(i,t)},ze=(we("Brand.1"),we("Brand.2"),we("Brand.3"),we("Brand.4"),we("Brand.5"),we("Brand.6"),we("Primary")),
|
|
21
|
+
`},_e={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"},we=t=>e=>{const n=e.theme,i=de(_e,n[Se.colorScheme]);return n.options&&n.options.color?ye(i,t,n.options.color):ye(i,t)},ze=(we("Brand.1"),we("Brand.2"),we("Brand.3"),we("Brand.4"),we("Brand.5"),we("Brand.6"),we("Primary")),Ce=(we("PrimaryDark"),we("Secondary")),be=(we("Accent.Light.1"),we("Accent.Light.2"),we("Accent.Light.3"),we("Accent.Light.4"),we("Accent.Light.5"),we("Accent.Light.6"),we("Accent.Dark.1"),we("Accent.Dark.2"),we("Accent.Dark.3"),{1:we("Neutral.1"),2:we("Neutral.2"),3:we("Neutral.3"),4:we("Neutral.4"),5:we("Neutral.5"),6:we("Neutral.6"),7:we("Neutral.7"),8:we("Neutral.8")}),xe=(we("Validation.Green.Text"),we("Validation.Green.Icon"),we("Validation.Green.Border"),we("Validation.Green.Background"),we("Validation.Orange.Text"),we("Validation.Orange.Icon"),we("Validation.Orange.Border"),we("Validation.Orange.Background"),we("Validation.Orange.Badge"),we("Validation.Red.Text"),we("Validation.Red.Icon"),we("Validation.Red.Border"),we("Validation.Red.Background"),t.svg`
|
|
22
22
|
height: 1rem;
|
|
23
23
|
width: 1rem;
|
|
24
24
|
vertical-align: text-top;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
fill: ${xe[8]};
|
|
28
|
-
}
|
|
29
|
-
`),Ee=t=>n(Ce,{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 16 16",...t,children:n("g",{fill:"none",fillRule:"evenodd",children:n("g",{id:"path",fillRule:"nonzero",children:n("g",{children:n("g",{children:n("g",{children:n("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)"})})})})})})}),We=t=>n(Ce,{width:"1rem",height:"1rem",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",...t,children:n("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"})}),Ae=t=>n(Ce,{xmlns:"http://www.w3.org/2000/svg",width:"2rem",height:"2rem",viewBox:"0 0 64 64",id:"play-icon",...t,children:n("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"})}),Oe=t=>n(Ce,{xmlns:"http://www.w3.org/2000/svg",width:"2rem",height:"2rem",viewBox:"0 0 32 32",fill:"none",...t,children:n("g",{id:"search",children:n("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"})})}),Te=t.span`
|
|
25
|
+
color: ${ze};
|
|
26
|
+
`),Ee=t=>n(xe,{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 16 16",...t,children:n("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)"})}),We=t=>n(xe,{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:n("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"})}),Ae=t=>n(xe,{width:"1rem",height:"1rem",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",...t,children:n("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"})}),Oe=t=>n(xe,{xmlns:"http://www.w3.org/2000/svg",width:"2rem",height:"2rem",viewBox:"0 0 64 64",id:"play-icon",...t,children:n("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"})}),Te=t=>n(xe,{xmlns:"http://www.w3.org/2000/svg",width:"2rem",height:"2rem",viewBox:"0 0 32 32",...t,children:n("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"})}),Le=t.span`
|
|
30
27
|
font-size: 1rem;
|
|
31
28
|
`;var je;!function(n){n.D1=t.h1`
|
|
32
29
|
${t=>e`
|
|
33
30
|
${$e.getTextStyle("D1",t.weight,t.paragraph)}
|
|
34
|
-
color: ${
|
|
31
|
+
color: ${be[1]};
|
|
35
32
|
${$e.getDisplayStyle(t.inline,t.paragraph)}
|
|
36
33
|
`}
|
|
37
34
|
`,n.D2=t.h1`
|
|
38
35
|
${t=>e`
|
|
39
36
|
${$e.getTextStyle("D2",t.weight,t.paragraph)}
|
|
40
|
-
color: ${
|
|
37
|
+
color: ${be[1]};
|
|
41
38
|
${$e.getDisplayStyle(t.inline,t.paragraph)}
|
|
42
39
|
`}
|
|
43
40
|
`,n.D3=t.h1`
|
|
44
41
|
${t=>e`
|
|
45
42
|
${$e.getTextStyle("D3",t.weight,t.paragraph)}
|
|
46
|
-
color: ${
|
|
43
|
+
color: ${be[1]};
|
|
47
44
|
${$e.getDisplayStyle(t.inline,t.paragraph)}
|
|
48
45
|
`}
|
|
49
46
|
`,n.D4=t.h1`
|
|
50
47
|
${t=>e`
|
|
51
48
|
${$e.getTextStyle("D4",t.weight,t.paragraph)}
|
|
52
|
-
color: ${
|
|
49
|
+
color: ${be[1]};
|
|
53
50
|
${$e.getDisplayStyle(t.inline,t.paragraph)}
|
|
54
51
|
`}
|
|
55
52
|
`,n.DBody=t.h1`
|
|
56
53
|
${t=>e`
|
|
57
54
|
${$e.getTextStyle("DBody",t.weight,t.paragraph)}
|
|
58
|
-
color: ${
|
|
55
|
+
color: ${be[1]};
|
|
59
56
|
${$e.getDisplayStyle(t.inline,t.paragraph)}
|
|
60
57
|
`}
|
|
61
58
|
`,n.H1=t.h1`
|
|
62
59
|
${t=>e`
|
|
63
60
|
${$e.getTextStyle("H1",t.weight,t.paragraph)}
|
|
64
|
-
color: ${
|
|
61
|
+
color: ${be[1]};
|
|
65
62
|
${$e.getDisplayStyle(t.inline,t.paragraph)}
|
|
66
63
|
`}
|
|
67
64
|
`,n.H2=t.h2`
|
|
68
65
|
${t=>e`
|
|
69
66
|
${$e.getTextStyle("H2",t.weight,t.paragraph)}
|
|
70
|
-
color: ${
|
|
67
|
+
color: ${be[1]};
|
|
71
68
|
${$e.getDisplayStyle(t.inline,t.paragraph)}
|
|
72
69
|
`}
|
|
73
70
|
`,n.H3=t.h3`
|
|
74
71
|
${t=>e`
|
|
75
72
|
${$e.getTextStyle("H3",t.weight,t.paragraph)}
|
|
76
|
-
color: ${
|
|
73
|
+
color: ${be[1]};
|
|
77
74
|
${$e.getDisplayStyle(t.inline,t.paragraph)}
|
|
78
75
|
`}
|
|
79
76
|
`,n.H4=t.h4`
|
|
80
77
|
${t=>e`
|
|
81
78
|
${$e.getTextStyle("H4",t.weight,t.paragraph)}
|
|
82
|
-
color: ${
|
|
79
|
+
color: ${be[1]};
|
|
83
80
|
${$e.getDisplayStyle(t.inline,t.paragraph)}
|
|
84
81
|
`}
|
|
85
82
|
`,n.H5=t.h5`
|
|
86
83
|
${t=>e`
|
|
87
84
|
${$e.getTextStyle("H5",t.weight,t.paragraph)}
|
|
88
|
-
color: ${
|
|
85
|
+
color: ${be[1]};
|
|
89
86
|
${$e.getDisplayStyle(t.inline,t.paragraph)}
|
|
90
87
|
`}
|
|
91
88
|
`,n.H6=t.h6`
|
|
92
89
|
${t=>e`
|
|
93
90
|
${$e.getTextStyle("H6",t.weight,t.paragraph)}
|
|
94
|
-
color: ${
|
|
91
|
+
color: ${be[1]};
|
|
95
92
|
${$e.getDisplayStyle(t.inline,t.paragraph)}
|
|
96
93
|
`}
|
|
97
94
|
`,n.Body=t.p`
|
|
98
95
|
${t=>e`
|
|
99
96
|
${$e.getTextStyle("Body",t.weight,t.paragraph)}
|
|
100
|
-
color: ${
|
|
97
|
+
color: ${be[1]};
|
|
101
98
|
${$e.getDisplayStyle(t.inline,t.paragraph)}
|
|
102
99
|
`}
|
|
103
100
|
`,n.BodySmall=t.p`
|
|
104
101
|
${t=>e`
|
|
105
102
|
${$e.getTextStyle("BodySmall",t.weight,t.paragraph)}
|
|
106
|
-
color: ${
|
|
103
|
+
color: ${be[1]};
|
|
107
104
|
${$e.getDisplayStyle(t.inline,t.paragraph)}
|
|
108
105
|
`}
|
|
109
106
|
`,n.XSmall=t.span`
|
|
110
107
|
${t=>e`
|
|
111
108
|
${$e.getTextStyle("XSmall",t.weight,t.paragraph)}
|
|
112
|
-
color: ${
|
|
109
|
+
color: ${be[1]};
|
|
113
110
|
${$e.getDisplayStyle(t.inline,t.paragraph)}
|
|
114
111
|
`}
|
|
115
|
-
`,n.Hyperlink={Default:t=>
|
|
112
|
+
`,n.Hyperlink={Default:t=>Re({...t,textStyle:"Body"}),Small:t=>Re({...t,textStyle:"BodySmall"})}}(je||(je={}));const ke=t.a`
|
|
116
113
|
${t=>e`
|
|
117
114
|
${$e.getTextStyle(t.textStyle,t.weight)}
|
|
118
115
|
color: ${ze};
|
|
@@ -121,10 +118,10 @@ import t,{css as e}from"styled-components";import{jsx as n,jsxs as i}from"react/
|
|
|
121
118
|
:hover,
|
|
122
119
|
:active,
|
|
123
120
|
:focus {
|
|
124
|
-
color: ${
|
|
121
|
+
color: ${Ce};
|
|
125
122
|
}
|
|
126
123
|
`}
|
|
127
|
-
`,
|
|
124
|
+
`,Ve=t((({type:t,...e})=>{switch(t){case"arrow-right":return n(Ee,{...e});case"info":return n(Ae,{...e});case"cross":return n(We,{...e});case"play":return n(Oe,{...e});case"search":return n(Te,{...e});default:{const i=`sgds-icon sgds-icon-${t}`,r=e.className?`${i} ${e.className}`:i;return n(Le,{...e,className:r})}}}))`
|
|
128
125
|
margin-left: 0.4rem;
|
|
129
|
-
`,
|
|
126
|
+
`,Re=({external:t=!1,children:e,...r})=>i(ke,{...r,children:[e,t&&n(Ve,{type:"external"})]});var Ne;!function(t){t[t.Subpage=0]="Subpage",t[t.Domain=1]="Domain"}(Ne||(Ne={}));export{Ne as RedirectScope,je as Text,ve as TextStyle,$e as TextStyleHelper};
|
|
130
127
|
//# sourceMappingURL=index.js.map
|