@lifesg/react-design-system 1.0.0-alpha.2 → 1.0.0-alpha.21
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/README.md +2 -0
- package/accordion/accordion-item.style.d.ts +5 -2
- package/accordion/accordion.style.d.ts +1 -1
- package/accordion/index.js +165 -172
- package/accordion/index.js.map +1 -1
- package/alert/alert.style.d.ts +4 -1
- package/alert/index.js +107 -119
- package/alert/index.js.map +1 -1
- package/animations/index.d.ts +1 -0
- package/animations/index.js +6 -3
- package/animations/index.js.map +1 -1
- package/animations/loading-dots-spinner/loading-dots-spinner.d.ts +2 -0
- package/animations/loading-dots-spinner/lottie-animation.d.ts +2 -0
- package/box-container/box-container.styles.d.ts +8 -1
- package/box-container/index.js +69 -74
- package/box-container/index.js.map +1 -1
- package/breadcrumb/breadcrumb.style.d.ts +4 -4
- package/breadcrumb/index.js +102 -106
- package/breadcrumb/index.js.map +1 -1
- package/breadcrumb/types.d.ts +5 -1
- package/button/button.d.ts +2 -2
- package/button/index.js +140 -143
- package/button/index.js.map +1 -1
- package/calendar/calendar-day.d.ts +11 -0
- package/calendar/calendar-day.style.d.ts +23 -0
- package/calendar/calendar-month.d.ts +12 -0
- package/calendar/calendar-month.style.d.ts +12 -0
- package/calendar/calendar-year.d.ts +12 -0
- package/calendar/calendar-year.style.d.ts +12 -0
- package/calendar/calendar.d.ts +4 -0
- package/calendar/calendar.style.d.ts +35 -0
- package/calendar/index.d.ts +2 -0
- package/calendar/index.js +381 -0
- package/calendar/index.js.map +1 -0
- package/calendar/package.json +7 -0
- package/calendar/types.d.ts +15 -0
- package/card/card.d.ts +3 -0
- package/card/card.style.d.ts +1 -0
- package/card/index.d.ts +1 -0
- package/card/index.js +132 -0
- package/card/index.js.map +1 -0
- package/{icon → card}/package.json +1 -1
- package/card/types.d.ts +4 -0
- package/checkbox/checkbox.d.ts +1 -1
- package/checkbox/checkbox.style.d.ts +4 -1
- package/checkbox/index.js +11 -21
- package/checkbox/index.js.map +1 -1
- package/cjs/index.js +2240 -1057
- package/cjs/index.js.map +1 -1
- package/color/color.d.ts +4 -59
- package/color/index.js +1 -1
- package/color/index.js.map +1 -1
- package/color/types.d.ts +5 -1
- package/date-input/date-input.d.ts +1 -1
- package/date-input/date-input.style.d.ts +2 -6
- package/date-input/index.js +132 -147
- package/date-input/index.js.map +1 -1
- package/date-input/types.d.ts +14 -16
- package/design-token/design-token.d.ts +4 -0
- package/design-token/index.d.ts +2 -0
- package/design-token/index.js +6 -0
- package/design-token/index.js.map +1 -0
- package/design-token/package.json +7 -0
- package/design-token/types.d.ts +7 -0
- 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.d.ts +2 -0
- package/error-display/index.js +323 -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/feedback-rating/feedback-rating-data.d.ts +5 -0
- package/feedback-rating/feedback-rating-stars-container-data.d.ts +3 -0
- package/feedback-rating/feedback-rating-stars-container.d.ts +3 -0
- package/feedback-rating/feedback-rating-stars-container.styles.d.ts +12 -0
- package/feedback-rating/feedback-rating.d.ts +3 -0
- package/feedback-rating/feedback-rating.styles.d.ts +5 -0
- package/feedback-rating/index.d.ts +2 -0
- package/feedback-rating/index.js +329 -0
- package/feedback-rating/index.js.map +1 -0
- package/feedback-rating/package.json +7 -0
- package/feedback-rating/types.d.ts +14 -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.d.ts +2 -0
- package/footer/index.js +373 -0
- package/footer/index.js.map +1 -0
- package/footer/package.json +7 -0
- package/footer/types.d.ts +31 -0
- package/form/form-custom-field.d.ts +3 -0
- package/form/form-input-group.d.ts +1 -1
- package/form/form-input.d.ts +1 -1
- package/form/form-label-addon.d.ts +1 -2
- package/form/form-label.d.ts +1 -1
- package/form/form-label.style.d.ts +1 -0
- package/form/form-phone-number-input.d.ts +3 -0
- package/form/form-textarea.d.ts +1 -1
- package/form/form-unit-number-input.d.ts +3 -0
- package/form/index.d.ts +9 -6
- package/form/index.js +771 -657
- package/form/index.js.map +1 -1
- package/form/types.d.ts +14 -5
- package/icon-button/icon-button.d.ts +1 -1
- package/icon-button/icon-button.style.d.ts +6 -1
- package/icon-button/index.js +9 -15
- package/icon-button/index.js.map +1 -1
- package/icon-button/types.d.ts +2 -3
- package/index.d.ts +12 -1
- package/index.js +2217 -1034
- package/index.js.map +1 -1
- package/input/index.js +93 -49
- package/input/index.js.map +1 -1
- package/input/input.d.ts +1 -1
- package/input/input.style.d.ts +9 -4
- package/input/types.d.ts +2 -0
- package/input-group/index.js +435 -343
- package/input-group/index.js.map +1 -1
- package/input-group/input-group-list-addon.d.ts +1 -1
- package/input-group/input-group-list-addon.style.d.ts +13 -2
- package/input-group/input-group.d.ts +1 -1
- package/input-group/input-group.style.d.ts +4 -8
- package/input-group/types.d.ts +11 -10
- package/input-select/index.js +286 -244
- package/input-select/index.js.map +1 -1
- package/input-select/input-select-wrapper.d.ts +1 -1
- package/input-select/input-select.d.ts +1 -1
- package/input-select/input-select.styles.d.ts +5 -1
- package/input-select/types.d.ts +15 -11
- package/input-textarea/index.js +132 -121
- package/input-textarea/index.js.map +1 -1
- package/input-textarea/textarea-counter.d.ts +2 -1
- package/input-textarea/textarea.d.ts +2 -2
- 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.d.ts +7 -0
- package/layout/index.js +55 -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.js +130 -130
- package/link-list/index.js.map +1 -1
- package/link-list/link-list.styles.d.ts +12 -2
- package/link-list/types.d.ts +1 -1
- package/masonry/index.js.map +1 -1
- package/masonry/masonry.d.ts +2 -2
- package/masthead/index.d.ts +1 -0
- package/masthead/index.js +9 -0
- package/masthead/index.js.map +1 -0
- package/masthead/masthead.d.ts +2 -0
- package/masthead/masthead.style.d.ts +1 -0
- package/masthead/package.json +7 -0
- package/media/index.js +1 -1
- package/media/index.js.map +1 -1
- package/media/media.d.ts +2 -1
- package/modal/index.d.ts +1 -1
- package/modal/index.js +30 -43
- package/modal/index.js.map +1 -1
- package/modal/modal-box.styles.d.ts +5 -2
- package/modal/modal.d.ts +1 -1
- package/modal/modal.styles.d.ts +1 -0
- package/modal/types.d.ts +4 -2
- 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 +15 -0
- package/navbar/index.d.ts +7 -0
- package/navbar/index.js +651 -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 +19 -0
- package/navbar/package.json +7 -0
- package/navbar/types.d.ts +56 -0
- package/notification-banner/index.d.ts +3 -0
- package/notification-banner/index.js +266 -0
- package/notification-banner/index.js.map +1 -0
- package/notification-banner/notification-banner-hoc.d.ts +3 -0
- package/notification-banner/notification-banner.d.ts +6 -0
- package/notification-banner/notification-banner.styles.d.ts +15 -0
- package/notification-banner/package.json +7 -0
- package/notification-banner/types.d.ts +22 -0
- package/otp-input/index.d.ts +2 -0
- package/otp-input/index.js +600 -0
- package/otp-input/index.js.map +1 -0
- package/otp-input/otp-input.d.ts +3 -0
- package/otp-input/otp-input.styles.d.ts +5 -0
- package/otp-input/package.json +7 -0
- package/otp-input/types.d.ts +22 -0
- package/overlay/index.js +1 -1
- package/overlay/index.js.map +1 -1
- package/overlay/types.d.ts +1 -1
- package/package.json +4 -1
- package/phone-number-input/data/country-code.d.ts +1 -0
- package/phone-number-input/index.d.ts +2 -0
- package/phone-number-input/index.js +860 -0
- package/phone-number-input/index.js.map +1 -0
- package/phone-number-input/package.json +7 -0
- package/phone-number-input/phone-number-input-helper.d.ts +5 -0
- package/phone-number-input/phone-number-input.d.ts +3 -0
- package/phone-number-input/types.d.ts +51 -0
- package/popover/index.js +148 -153
- package/popover/index.js.map +1 -1
- package/popover/popover.styles.d.ts +1 -1
- package/popover/types.d.ts +3 -3
- package/progress-indicator/index.d.ts +2 -0
- package/progress-indicator/index.js +240 -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.js +7 -7
- package/radio-button/index.js.map +1 -1
- package/shared/dropdown-list/dropdown-list.d.ts +1 -1
- package/shared/dropdown-list/dropdown-list.styles.d.ts +6 -2
- package/shared/dropdown-list/dropdown-search.d.ts +2 -1
- package/shared/dropdown-list/dropdown-search.styles.d.ts +9 -1
- package/shared/dropdown-list/types.d.ts +22 -12
- package/shared/input-wrapper/input-wrapper.d.ts +8 -0
- package/smart-app-banner/index.d.ts +2 -0
- package/smart-app-banner/index.js +373 -0
- package/smart-app-banner/index.js.map +1 -0
- package/smart-app-banner/package.json +7 -0
- package/smart-app-banner/smart-app-banner.d.ts +3 -0
- package/smart-app-banner/smart-app-banner.styles.d.ts +31 -0
- package/smart-app-banner/types.d.ts +18 -0
- package/spec/design-token-spec/base-design-token-set.d.ts +2 -0
- package/text/index.js +62 -65
- package/text/index.js.map +1 -1
- package/text/text-style.d.ts +4 -100
- package/text-list/index.js +7 -7
- package/text-list/index.js.map +1 -1
- package/theme/design-token-helper.d.ts +2 -0
- package/theme/index.js +1 -1
- package/theme/index.js.map +1 -1
- package/theme/types.d.ts +12 -3
- package/timeline/index.js +95 -98
- package/timeline/index.js.map +1 -1
- package/timepicker/index.js +213 -207
- package/timepicker/index.js.map +1 -1
- package/timepicker/timepicker-dropdown.styles.d.ts +2 -2
- package/timepicker/types.d.ts +3 -3
- package/toggle-button/index.js +118 -121
- package/toggle-button/index.js.map +1 -1
- package/tooltip/index.js +127 -125
- package/tooltip/index.js.map +1 -1
- package/tooltip/tooltip.styles.d.ts +3 -1
- package/unit-number/index.d.ts +2 -0
- package/unit-number/index.js +357 -0
- package/unit-number/index.js.map +1 -0
- package/unit-number/package.json +7 -0
- package/unit-number/types.d.ts +27 -0
- package/unit-number/unit-number-input.d.ts +3 -0
- package/unit-number/unit-number-input.style.d.ts +11 -0
- package/util/calendar-helper.d.ts +10 -0
- package/util/date-helper.d.ts +19 -0
- package/util/index.d.ts +3 -0
- package/util/utility-types.d.ts +3 -0
- package/icon/arrow-right-icon.d.ts +0 -3
- package/icon/icon.d.ts +0 -3
- package/icon/index.d.ts +0 -2
- package/icon/index.js +0 -12
- package/icon/index.js.map +0 -1
- package/icon/info-icon.d.ts +0 -3
- package/icon/play-alt-icon.d.ts +0 -3
- package/icon/search-icon.d.ts +0 -3
- package/icon/shared.style.d.ts +0 -1
- package/icon/types.d.ts +0 -9
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
import e,{jsxs as t,Fragment as r,jsx as i}from"react/jsx-runtime";import n,{keyframes as o,css as a}from"styled-components";import l from"react";const s={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840},c={base:"https://assets.life.gov.sg/react-design-system/img/error/400.png",md:"https://assets.life.gov.sg/react-design-system/img/error/400@2x.png",lg:"https://assets.life.gov.sg/react-design-system/img/error/400@3x.png"},d={base:"https://assets.life.gov.sg/react-design-system/img/error/403.png",md:"https://assets.life.gov.sg/react-design-system/img/error/403@2x.png",lg:"https://assets.life.gov.sg/react-design-system/img/error/403@3x.png"},g={base:"https://assets.life.gov.sg/react-design-system/img/error/404.png",md:"https://assets.life.gov.sg/react-design-system/img/error/404@2x.png",lg:"https://assets.life.gov.sg/react-design-system/img/error/404@3x.png"},h={base:"https://assets.life.gov.sg/react-design-system/img/error/generic-error.png",md:"https://assets.life.gov.sg/react-design-system/img/error/generic-error@2x.png",lg:"https://assets.life.gov.sg/react-design-system/img/error/generic-error@3x.png"},p={base:"https://assets.life.gov.sg/react-design-system/img/error/503.png",md:"https://assets.life.gov.sg/react-design-system/img/error/503@2x.png",lg:"https://assets.life.gov.sg/react-design-system/img/error/503@3x.png"},f={base:"https://assets.life.gov.sg/react-design-system/img/error/generic-error.png",md:"https://assets.life.gov.sg/react-design-system/img/error/generic-error@2x.png",lg:"https://assets.life.gov.sg/react-design-system/img/error/generic-error@3x.png"},u=e=>{const{base:t,md:r,lg:i}=e;return{srcSet:`${t} 416w, ${r} 832w, ${i} 1248w`,src:i,sizes:`(max-width: ${s.mobileL}px) 416px, (max-width: ${s.tablet}px) 832px, 1248px`}},m=e=>{const{base:t,md:r,lg:i}=e;return{srcSet:`${t} 400w, ${r} 800w, ${i} 1200w`,src:i,sizes:`(max-width: ${s.mobileL}px) 400px, (max-width: ${s.tablet}px) 800px, 1200px`}},y=new Map([["400",{img:u(c),title:"Something went wrong",description:t(r,{children:["Please refresh the page or try again later. If it’s still not working, email"," ",i("a",{href:"mailto:helpdesk@life.gov.sg",children:"helpdesk@life.gov.sg"})," ","and let us know you received a HTTP 400 error."]})}],["403",{img:u(d),title:"Error loading page",description:t(r,{children:["You may not have permission to view this page. If you believe this is a mistake, email"," ",i("a",{href:"mailto:helpdesk@life.gov.sg",children:"helpdesk@life.gov.sg"}),"."]})}],["404",{img:u(g),title:"Page not found",description:t(r,{children:["If you entered or pasted the URL, check that it’s correct. If you followed a link on LifeSG, email"," ",i("a",{href:"mailto:helpdesk@life.gov.sg",children:"helpdesk@life.gov.sg"})," ","to let us know."]})}],["408",{img:u(c),title:"Something went wrong",description:t(r,{children:["Please refresh the page or try again later. If it’s still not working, email"," ",i("a",{href:"mailto:helpdesk@life.gov.sg",children:"helpdesk@life.gov.sg"})," ","and let us know you received a HTTP 408 error."]})}],["500",{img:m(h),title:"Something went wrong",description:t(r,{children:["Please try again later. If it’s still not working, email"," ",i("a",{href:"mailto:helpdesk@life.gov.sg","data-testid":"link--helpdesk",children:"helpdesk@life.gov.sg"})," and let us know you received a HTTP 500 error. Do include a screenshot of this page in your email."]}),renderDescription:e=>t(r,{children:["Please try again later. If it’s still not working, email"," ",i("a",{href:"mailto:helpdesk@life.gov.sg","data-testid":"link--helpdesk",children:"helpdesk@life.gov.sg"})," and let us know you received a HTTP 500 error. Do include a screenshot of this page or this reference ID in your email: ",i("strong",{children:e.referenceId}),"."]})}],["503",{img:u(p),title:"Service under maintenance",description:"This service is currently unavailable. Please try again later."}],["maintenance",{img:u(p),title:"Service under maintenance",description:"This service is currently unavailable. Please try again later.",renderDescription:e=>t(r,{children:["This service is currently unavailable. Please try again after ",i("strong",{children:e.dateString}),"."]})}],["unsupported-browser",{img:m(f),title:"Browser not supported",description:"To use LifeSG, download the latest version of Chrome, Edge, Firefox or Safari."}],["partially-supported-browser",{img:m(f),title:"Browser not supported",description:"LifeSG works best with the latest version of Chrome, Edge, Firefox or Safari. If you continue with your browser, you may run into problems."}]]);var S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},v=Array.isArray,$="object"==typeof S&&S&&S.Object===Object&&S,b="object"==typeof self&&self&&self.Object===Object&&self,F=$||b||Function("return this")(),B=F.Symbol,H=B,w=Object.prototype,D=w.hasOwnProperty,x=w.toString,k=H?H.toStringTag:void 0;var z=function(e){var t=D.call(e,k),r=e[k];try{e[k]=void 0;var i=!0}catch(e){}var n=x.call(e);return i&&(t?e[k]=r:delete e[k]),n},_=Object.prototype.toString;var C=z,E=function(e){return _.call(e)},T=B?B.toStringTag:void 0;var W=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":T&&T in Object(e)?C(e):E(e)};var N=W,A=function(e){return null!=e&&"object"==typeof e};var O=function(e){return"symbol"==typeof e||A(e)&&"[object Symbol]"==N(e)},P=v,j=O,I=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,L=/^\w*$/;var V=function(e,t){if(P(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!j(e))||(L.test(e)||!I.test(e)||null!=t&&e in Object(t))};var R=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},G=W,X=R;var M,U=function(e){if(!X(e))return!1;var t=G(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Z=F["__core-js_shared__"],Y=(M=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+M:"";var q=function(e){return!!Y&&Y in e},J=Function.prototype.toString;var K=U,Q=q,ee=R,te=function(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""},re=/^\[object .+?Constructor\]$/,ie=Function.prototype,ne=Object.prototype,oe=ie.toString,ae=ne.hasOwnProperty,le=RegExp("^"+oe.call(ae).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var se=function(e){return!(!ee(e)||Q(e))&&(K(e)?le:re).test(te(e))},ce=function(e,t){return null==e?void 0:e[t]};var de=function(e,t){var r=ce(e,t);return se(r)?r:void 0},ge=de(Object,"create"),he=ge;var pe=function(){this.__data__=he?he(null):{},this.size=0};var fe=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ue=ge,me=Object.prototype.hasOwnProperty;var ye=function(e){var t=this.__data__;if(ue){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return me.call(t,e)?t[e]:void 0},Se=ge,ve=Object.prototype.hasOwnProperty;var $e=ge;var be=pe,Fe=fe,Be=ye,He=function(e){var t=this.__data__;return Se?void 0!==t[e]:ve.call(t,e)},we=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=$e&&void 0===t?"__lodash_hash_undefined__":t,this};function De(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}De.prototype.clear=be,De.prototype.delete=Fe,De.prototype.get=Be,De.prototype.has=He,De.prototype.set=we;var xe=De;var ke=function(){this.__data__=[],this.size=0};var ze=function(e,t){return e===t||e!=e&&t!=t};var _e=function(e,t){for(var r=e.length;r--;)if(ze(e[r][0],t))return r;return-1},Ce=_e,Ee=Array.prototype.splice;var Te=_e;var We=_e;var Ne=_e;var Ae=ke,Oe=function(e){var t=this.__data__,r=Ce(t,e);return!(r<0)&&(r==t.length-1?t.pop():Ee.call(t,r,1),--this.size,!0)},Pe=function(e){var t=this.__data__,r=Te(t,e);return r<0?void 0:t[r][1]},je=function(e){return We(this.__data__,e)>-1},Ie=function(e,t){var r=this.__data__,i=Ne(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this};function Le(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Le.prototype.clear=Ae,Le.prototype.delete=Oe,Le.prototype.get=Pe,Le.prototype.has=je,Le.prototype.set=Ie;var Ve=Le,Re=de(F,"Map"),Ge=xe,Xe=Ve,Me=Re;var Ue=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ze=function(e,t){var r=e.__data__;return Ue(t)?r["string"==typeof t?"string":"hash"]:r.map},Ye=Ze;var qe=Ze;var Je=Ze;var Ke=Ze;var Qe=function(){this.size=0,this.__data__={hash:new Ge,map:new(Me||Xe),string:new Ge}},et=function(e){var t=Ye(this,e).delete(e);return this.size-=t?1:0,t},tt=function(e){return qe(this,e).get(e)},rt=function(e){return Je(this,e).has(e)},it=function(e,t){var r=Ke(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this};function nt(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}nt.prototype.clear=Qe,nt.prototype.delete=et,nt.prototype.get=tt,nt.prototype.has=rt,nt.prototype.set=it;var ot=nt;function at(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],o=r.cache;if(o.has(n))return o.get(n);var a=e.apply(this,i);return r.cache=o.set(n,a)||o,a};return r.cache=new(at.Cache||ot),r}at.Cache=ot;var lt=at;var st=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ct=/\\(\\)?/g,dt=function(e){var t=lt(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(st,(function(e,r,i,n){t.push(i?n.replace(ct,"$1"):r||e)})),t}));var gt=function(e,t){for(var r=-1,i=null==e?0:e.length,n=Array(i);++r<i;)n[r]=t(e[r],r,e);return n},ht=v,pt=O,ft=B?B.prototype:void 0,ut=ft?ft.toString:void 0;var mt=function e(t){if("string"==typeof t)return t;if(ht(t))return gt(t,e)+"";if(pt(t))return ut?ut.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r},yt=mt;var St=v,vt=V,$t=dt,bt=function(e){return null==e?"":yt(e)};var Ft=O;var Bt=function(e,t){return St(e)?e:vt(e,t)?[e]:$t(bt(e))},Ht=function(e){if("string"==typeof e||Ft(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var wt=function(e,t){for(var r=0,i=(t=Bt(t,e)).length;null!=e&&r<i;)e=e[Ht(t[r++])];return r&&r==i?e:void 0};var Dt=function(e,t,r){var i=null==e?void 0:wt(e,t);return void 0===i?r:i};const xt=(e,t,r)=>t?Dt(r,t)||Dt(e,t):r||e,kt=(e,t)=>{const r=t||e.defaultValue;return Dt(e.collections,r)};var zt;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme",e.designTokenScheme="designTokenScheme"}(zt||(zt={}));const _t={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"}},Shadow:{Accent:"rgba(87, 169, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)"}},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"}},Shadow:{Accent:"rgba(161, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)"}}},defaultValue:"base"},Ct=e=>t=>{const r=t.theme,i=kt(_t,r[zt.colorScheme]);return r.options&&r.options.color?xt(i,e,r.options.color):xt(i,e)},Et={Brand:{1:Ct("Brand.1"),2:Ct("Brand.2"),3:Ct("Brand.3"),4:Ct("Brand.4"),5:Ct("Brand.5"),6:Ct("Brand.6")},Primary:Ct("Primary"),PrimaryDark:Ct("PrimaryDark"),Secondary:Ct("Secondary"),Accent:{Light:{1:Ct("Accent.Light.1"),2:Ct("Accent.Light.2"),3:Ct("Accent.Light.3"),4:Ct("Accent.Light.4"),5:Ct("Accent.Light.5"),6:Ct("Accent.Light.6")},Dark:{1:Ct("Accent.Dark.1"),2:Ct("Accent.Dark.2"),3:Ct("Accent.Dark.3")}},Neutral:{1:Ct("Neutral.1"),2:Ct("Neutral.2"),3:Ct("Neutral.3"),4:Ct("Neutral.4"),5:Ct("Neutral.5"),6:Ct("Neutral.6"),7:Ct("Neutral.7"),8:Ct("Neutral.8")},Validation:{Green:{Text:Ct("Validation.Green.Text"),Icon:Ct("Validation.Green.Icon"),Border:Ct("Validation.Green.Border"),Background:Ct("Validation.Green.Background")},Orange:{Text:Ct("Validation.Orange.Text"),Icon:Ct("Validation.Orange.Icon"),Border:Ct("Validation.Orange.Border"),Background:Ct("Validation.Orange.Background"),Badge:Ct("Validation.Orange.Badge")},Red:{Text:Ct("Validation.Red.Text"),Icon:Ct("Validation.Red.Icon"),Border:Ct("Validation.Red.Border"),Background:Ct("Validation.Red.Background")}},Shadow:{Accent:Ct("Shadow.Accent"),Red:Ct("Shadow.Red")}},Tt=e=>Object.keys(s).reduce(((t,r)=>{const i=s[r];return t[r]=`@media screen and (${e}: ${i}px)`,t}),{}),Wt=Tt("max-width"),Nt=(Tt("min-width"),n.div`
|
|
2
|
+
display: inline-block;
|
|
3
|
+
position: relative;
|
|
4
|
+
width: ${e=>e.$size}px;
|
|
5
|
+
height: ${e=>e.$size}px;
|
|
6
|
+
`),At=o`
|
|
7
|
+
0% {
|
|
8
|
+
transform: rotate(0deg);
|
|
9
|
+
}
|
|
10
|
+
100% {
|
|
11
|
+
transform: rotate(360deg);
|
|
12
|
+
}
|
|
13
|
+
`,Ot=n.div`
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
display: block;
|
|
16
|
+
position: absolute;
|
|
17
|
+
width: ${e=>e.$size}px;
|
|
18
|
+
height: ${e=>e.$size}px;
|
|
19
|
+
margin: ${e=>e.$borderWidth}px;
|
|
20
|
+
border-width: ${e=>e.$borderWidth}px;
|
|
21
|
+
border-style: solid;
|
|
22
|
+
border-radius: 50%;
|
|
23
|
+
border-color: ${e=>e.$color||Et.Neutral[8](e)}
|
|
24
|
+
transparent transparent transparent;
|
|
25
|
+
animation: ${At} 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
|
|
26
|
+
`,Pt=n(Ot)`
|
|
27
|
+
animation-delay: -0.45s;
|
|
28
|
+
`,jt=n(Ot)`
|
|
29
|
+
animation-delay: -0.3s;
|
|
30
|
+
`,It=n(Ot)`
|
|
31
|
+
animation-delay: -0.15s;
|
|
32
|
+
`,Lt={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},Vt={collections:{base:{D1:{fontFamily:Lt.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:Lt.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:Lt.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:Lt.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:Lt.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:Lt.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:Lt.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:Lt.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:Lt.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:Lt.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:Lt.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:Lt.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:Lt.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:Lt.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},Rt=e=>t=>{const r=t.theme,i=kt(Vt,r[zt.textStyleScheme]);return r.options&&r.options.textStyle?xt(i,e,r.options.textStyle):xt(i,e)},Gt={D1:{fontFamily:Rt("D1.fontFamily"),fontSize:Rt("D1.fontSize"),fontWeight:Rt("D1.fontWeight"),lineHeight:Rt("D1.lineHeight"),letterSpacing:Rt("D1.letterSpacing")},D2:{fontFamily:Rt("D2.fontFamily"),fontSize:Rt("D2.fontSize"),fontWeight:Rt("D2.fontWeight"),lineHeight:Rt("D2.lineHeight"),letterSpacing:Rt("D2.letterSpacing")},D3:{fontFamily:Rt("D3.fontFamily"),fontSize:Rt("D3.fontSize"),fontWeight:Rt("D3.fontWeight"),lineHeight:Rt("D3.lineHeight"),letterSpacing:Rt("D3.letterSpacing")},D4:{fontFamily:Rt("D4.fontFamily"),fontSize:Rt("D4.fontSize"),fontWeight:Rt("D4.fontWeight"),lineHeight:Rt("D4.lineHeight"),letterSpacing:Rt("D4.letterSpacing")},DBody:{fontFamily:Rt("DBody.fontFamily"),fontSize:Rt("DBody.fontSize"),fontWeight:Rt("DBody.fontWeight"),lineHeight:Rt("DBody.lineHeight"),letterSpacing:Rt("DBody.letterSpacing")},H1:{fontFamily:Rt("H1.fontFamily"),fontSize:Rt("H1.fontSize"),fontWeight:Rt("H1.fontWeight"),lineHeight:Rt("H1.lineHeight"),letterSpacing:Rt("H1.letterSpacing")},H2:{fontFamily:Rt("H2.fontFamily"),fontSize:Rt("H2.fontSize"),fontWeight:Rt("H2.fontWeight"),lineHeight:Rt("H2.lineHeight"),letterSpacing:Rt("H2.letterSpacing")},H3:{fontFamily:Rt("H3.fontFamily"),fontSize:Rt("H3.fontSize"),fontWeight:Rt("H3.fontWeight"),lineHeight:Rt("H3.lineHeight"),letterSpacing:Rt("H3.letterSpacing")},H4:{fontFamily:Rt("H4.fontFamily"),fontSize:Rt("H4.fontSize"),fontWeight:Rt("H4.fontWeight"),lineHeight:Rt("H4.lineHeight"),letterSpacing:Rt("H4.letterSpacing")},H5:{fontFamily:Rt("H5.fontFamily"),fontSize:Rt("H5.fontSize"),fontWeight:Rt("H5.fontWeight"),lineHeight:Rt("H5.lineHeight"),letterSpacing:Rt("H5.letterSpacing")},H6:{fontFamily:Rt("H6.fontFamily"),fontSize:Rt("H6.fontSize"),fontWeight:Rt("H6.fontWeight"),lineHeight:Rt("H6.lineHeight"),letterSpacing:Rt("H6.letterSpacing")},Body:{fontFamily:Rt("Body.fontFamily"),fontSize:Rt("Body.fontSize"),fontWeight:Rt("Body.fontWeight"),lineHeight:Rt("Body.lineHeight"),letterSpacing:Rt("Body.letterSpacing")},BodySmall:{fontFamily:Rt("BodySmall.fontFamily"),fontSize:Rt("BodySmall.fontSize"),fontWeight:Rt("BodySmall.fontWeight"),lineHeight:Rt("BodySmall.lineHeight"),letterSpacing:Rt("BodySmall.letterSpacing")},XSmall:{fontFamily:Rt("XSmall.fontFamily"),fontSize:Rt("XSmall.fontSize"),fontWeight:Rt("XSmall.fontWeight"),lineHeight:Rt("XSmall.lineHeight"),letterSpacing:Rt("XSmall.letterSpacing")}},Xt=e=>{switch(e){case 700:case"bold":return Lt.Bold;case 600:case"semibold":return Lt.Semibold;case 300:case"light":return Lt.Light;case 400:case"regular":return Lt.Regular;default:return""}},Mt=(e,t)=>r=>{const i=Gt[e].fontFamily(r),n=Gt[e].fontWeight(r);return Object.values(Lt).includes(i)?a`
|
|
33
|
+
font-family: ${Xt(t)||Xt(n)||i};
|
|
34
|
+
font-weight: normal !important;
|
|
35
|
+
`:a`
|
|
36
|
+
font-family: ${i};
|
|
37
|
+
font-weight: ${(Ut(t)||n)??"normal"};
|
|
38
|
+
`},Ut=e=>{switch(e){case 300:case"light":return 300;case 400:case"regular":return 400;case 600:case"semibold":return 600;case 700:case"bold":return 700;case 900:case"black":return 900;default:return""}},Zt=Mt,Yt=(e,t,r=!1)=>i=>{const n=Gt[e],o=n.fontSize(i);return a`
|
|
39
|
+
${Mt(e,t)}
|
|
40
|
+
font-size: ${o}rem !important;
|
|
41
|
+
line-height: ${n.lineHeight}rem !important;
|
|
42
|
+
letter-spacing: ${n.letterSpacing(i)||0}rem !important;
|
|
43
|
+
${a`
|
|
44
|
+
margin-bottom: ${o*(r?1.05:0)}rem;
|
|
45
|
+
`}
|
|
46
|
+
`},qt=(e=!1,t=!1)=>t?a`
|
|
47
|
+
display: block;
|
|
48
|
+
`:e?a`
|
|
49
|
+
display: inline;
|
|
50
|
+
`:a`
|
|
51
|
+
display: block;
|
|
52
|
+
`;var Jt,Kt={};Object.defineProperty(Kt,"__esModule",{value:!0});var Qt=e;const er=e=>Qt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Qt.jsx("path",{d:"M4.25 17.5C3.764 17.5 3.35067 17.33 3.01 16.99C2.67 16.6493 2.5 16.236 2.5 15.75V4.25C2.5 3.764 2.67 3.35067 3.01 3.01C3.35067 2.67 3.764 2.5 4.25 2.5H9.208C9.444 2.5 9.649 2.58667 9.823 2.76C9.99633 2.934 10.083 3.139 10.083 3.375C10.083 3.611 9.99633 3.816 9.823 3.99C9.649 4.16333 9.444 4.25 9.208 4.25H4.25V15.75H15.75V10.792C15.75 10.556 15.8367 10.351 16.01 10.177C16.184 10.0037 16.389 9.917 16.625 9.917C16.861 9.917 17.066 10.0037 17.24 10.177C17.4133 10.351 17.5 10.556 17.5 10.792V15.75C17.5 16.236 17.33 16.6493 16.99 16.99C16.6493 17.33 16.236 17.5 15.75 17.5H4.25ZM7.5 12.5C7.33333 12.3333 7.25 12.1283 7.25 11.885C7.25 11.6423 7.33333 11.4377 7.5 11.271L14.521 4.25H12.708C12.472 4.25 12.2673 4.16333 12.094 3.99C11.92 3.816 11.833 3.611 11.833 3.375C11.833 3.139 11.92 2.934 12.094 2.76C12.2673 2.58667 12.472 2.5 12.708 2.5H16.625C16.861 2.5 17.066 2.58667 17.24 2.76C17.4133 2.934 17.5 3.139 17.5 3.375V7.292C17.5 7.528 17.4133 7.73267 17.24 7.906C17.066 8.08 16.861 8.167 16.625 8.167C16.389 8.167 16.184 8.08 16.01 7.906C15.8367 7.73267 15.75 7.528 15.75 7.292V5.479L8.708 12.521C8.54133 12.6877 8.34367 12.771 8.115 12.771C7.88567 12.771 7.68067 12.6807 7.5 12.5Z",fill:"currentColor"})});var tr;er.displayName="ExternalIcon",Jt=Kt.ExternalIcon=er,function(e){e.D1=n.h1`
|
|
53
|
+
${e=>a`
|
|
54
|
+
${Yt("D1",e.weight,e.paragraph)}
|
|
55
|
+
color: ${Et.Neutral[1]};
|
|
56
|
+
${qt(e.inline,e.paragraph)}
|
|
57
|
+
`}
|
|
58
|
+
`,e.D2=n.h1`
|
|
59
|
+
${e=>a`
|
|
60
|
+
${Yt("D2",e.weight,e.paragraph)}
|
|
61
|
+
color: ${Et.Neutral[1]};
|
|
62
|
+
${qt(e.inline,e.paragraph)}
|
|
63
|
+
`}
|
|
64
|
+
`,e.D3=n.h1`
|
|
65
|
+
${e=>a`
|
|
66
|
+
${Yt("D3",e.weight,e.paragraph)}
|
|
67
|
+
color: ${Et.Neutral[1]};
|
|
68
|
+
${qt(e.inline,e.paragraph)}
|
|
69
|
+
`}
|
|
70
|
+
`,e.D4=n.h1`
|
|
71
|
+
${e=>a`
|
|
72
|
+
${Yt("D4",e.weight,e.paragraph)}
|
|
73
|
+
color: ${Et.Neutral[1]};
|
|
74
|
+
${qt(e.inline,e.paragraph)}
|
|
75
|
+
`}
|
|
76
|
+
`,e.DBody=n.h1`
|
|
77
|
+
${e=>a`
|
|
78
|
+
${Yt("DBody",e.weight,e.paragraph)}
|
|
79
|
+
color: ${Et.Neutral[1]};
|
|
80
|
+
${qt(e.inline,e.paragraph)}
|
|
81
|
+
`}
|
|
82
|
+
`,e.H1=n.h1`
|
|
83
|
+
${e=>a`
|
|
84
|
+
${Yt("H1",e.weight,e.paragraph)}
|
|
85
|
+
color: ${Et.Neutral[1]};
|
|
86
|
+
${qt(e.inline,e.paragraph)}
|
|
87
|
+
`}
|
|
88
|
+
`,e.H2=n.h2`
|
|
89
|
+
${e=>a`
|
|
90
|
+
${Yt("H2",e.weight,e.paragraph)}
|
|
91
|
+
color: ${Et.Neutral[1]};
|
|
92
|
+
${qt(e.inline,e.paragraph)}
|
|
93
|
+
`}
|
|
94
|
+
`,e.H3=n.h3`
|
|
95
|
+
${e=>a`
|
|
96
|
+
${Yt("H3",e.weight,e.paragraph)}
|
|
97
|
+
color: ${Et.Neutral[1]};
|
|
98
|
+
${qt(e.inline,e.paragraph)}
|
|
99
|
+
`}
|
|
100
|
+
`,e.H4=n.h4`
|
|
101
|
+
${e=>a`
|
|
102
|
+
${Yt("H4",e.weight,e.paragraph)}
|
|
103
|
+
color: ${Et.Neutral[1]};
|
|
104
|
+
${qt(e.inline,e.paragraph)}
|
|
105
|
+
`}
|
|
106
|
+
`,e.H5=n.h5`
|
|
107
|
+
${e=>a`
|
|
108
|
+
${Yt("H5",e.weight,e.paragraph)}
|
|
109
|
+
color: ${Et.Neutral[1]};
|
|
110
|
+
${qt(e.inline,e.paragraph)}
|
|
111
|
+
`}
|
|
112
|
+
`,e.H6=n.h6`
|
|
113
|
+
${e=>a`
|
|
114
|
+
${Yt("H6",e.weight,e.paragraph)}
|
|
115
|
+
color: ${Et.Neutral[1]};
|
|
116
|
+
${qt(e.inline,e.paragraph)}
|
|
117
|
+
`}
|
|
118
|
+
`,e.Body=n.p`
|
|
119
|
+
${e=>a`
|
|
120
|
+
${Yt("Body",e.weight,e.paragraph)}
|
|
121
|
+
color: ${Et.Neutral[1]};
|
|
122
|
+
${qt(e.inline,e.paragraph)}
|
|
123
|
+
`}
|
|
124
|
+
`,e.BodySmall=n.p`
|
|
125
|
+
${e=>a`
|
|
126
|
+
${Yt("BodySmall",e.weight,e.paragraph)}
|
|
127
|
+
color: ${Et.Neutral[1]};
|
|
128
|
+
${qt(e.inline,e.paragraph)}
|
|
129
|
+
`}
|
|
130
|
+
`,e.XSmall=n.span`
|
|
131
|
+
${e=>a`
|
|
132
|
+
${Yt("XSmall",e.weight,e.paragraph)}
|
|
133
|
+
color: ${Et.Neutral[1]};
|
|
134
|
+
${qt(e.inline,e.paragraph)}
|
|
135
|
+
`}
|
|
136
|
+
`,e.Hyperlink={Default:e=>nr({...e,textStyle:"Body"}),Small:e=>nr({...e,textStyle:"BodySmall"})}}(tr||(tr={}));const rr=n.a`
|
|
137
|
+
${e=>a`
|
|
138
|
+
${Yt(e.textStyle,e.weight)}
|
|
139
|
+
color: ${Et.Primary};
|
|
140
|
+
text-decoration: none;
|
|
141
|
+
|
|
142
|
+
:hover,
|
|
143
|
+
:active,
|
|
144
|
+
:focus {
|
|
145
|
+
color: ${Et.Secondary};
|
|
146
|
+
|
|
147
|
+
svg {
|
|
148
|
+
color: ${Et.Secondary};
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
`}
|
|
152
|
+
`,ir=n(Jt)`
|
|
153
|
+
height: 1rem;
|
|
154
|
+
width: 1rem;
|
|
155
|
+
margin-left: 0.4rem;
|
|
156
|
+
vertical-align: middle;
|
|
157
|
+
`,nr=({external:e=!1,children:r,...n})=>t(rr,{...n,children:[r,e&&i(ir,{})]});var or;!function(e){e[e.Subpage=0]="Subpage",e[e.Domain=1]="Domain"}(or||(or={}));const ar=n.button`
|
|
158
|
+
padding: 0.5rem 1rem;
|
|
159
|
+
min-width: 4rem;
|
|
160
|
+
border-radius: 4px;
|
|
161
|
+
transition: all 200ms ease;
|
|
162
|
+
cursor: pointer;
|
|
163
|
+
display: flex;
|
|
164
|
+
align-items: center;
|
|
165
|
+
justify-content: center;
|
|
166
|
+
|
|
167
|
+
@media (hover: hover) {
|
|
168
|
+
&:hover {
|
|
169
|
+
box-shadow: 1px 1px 4px 2px rgba(0, 0, 0, 0.2);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// -----------------------------------------------------------------------------
|
|
174
|
+
// BUTTON STYLE + TEXT COLOR
|
|
175
|
+
// -----------------------------------------------------------------------------
|
|
176
|
+
${e=>{switch(e.$buttonStyle){case"secondary":return a`
|
|
177
|
+
background-color: ${Et.Neutral[8](e)};
|
|
178
|
+
border: 1px solid ${Et.Primary(e)};
|
|
179
|
+
|
|
180
|
+
span {
|
|
181
|
+
color: ${Et.Primary(e)};
|
|
182
|
+
}
|
|
183
|
+
`;case"light":return a`
|
|
184
|
+
background-color: ${Et.Neutral[8](e)};
|
|
185
|
+
border: 1px solid ${Et.Neutral[5](e)};
|
|
186
|
+
|
|
187
|
+
span {
|
|
188
|
+
color: ${Et.Primary(e)};
|
|
189
|
+
}
|
|
190
|
+
`;case"disabled":return a`
|
|
191
|
+
background-color: ${Et.Neutral[6](e)};
|
|
192
|
+
border: 1px solid transparent;
|
|
193
|
+
cursor: not-allowed;
|
|
194
|
+
|
|
195
|
+
&:hover {
|
|
196
|
+
box-shadow: none;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
span {
|
|
200
|
+
color: ${Et.Neutral[3](e)};
|
|
201
|
+
}
|
|
202
|
+
`;case"link":return a`
|
|
203
|
+
background-color: transparent;
|
|
204
|
+
border: none;
|
|
205
|
+
border-radius: unset;
|
|
206
|
+
|
|
207
|
+
&:hover {
|
|
208
|
+
box-shadow: none;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
color: ${Et.Primary};
|
|
212
|
+
:hover,
|
|
213
|
+
:active,
|
|
214
|
+
:focus {
|
|
215
|
+
span {
|
|
216
|
+
color: ${Et.Secondary};
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
`;default:return a`
|
|
220
|
+
background-color: ${Et.Primary(e)};
|
|
221
|
+
border: 1px solid transparent;
|
|
222
|
+
|
|
223
|
+
${Wt.mobileL} {
|
|
224
|
+
width: 100%;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
span {
|
|
228
|
+
color: ${Et.Neutral[8](e)};
|
|
229
|
+
}
|
|
230
|
+
`}}}
|
|
231
|
+
|
|
232
|
+
// -----------------------------------------------------------------------------
|
|
233
|
+
// BUTTON SIZE + TEXT SIZE
|
|
234
|
+
// -----------------------------------------------------------------------------
|
|
235
|
+
${e=>"small"===e.$buttonSizeStyle?a`
|
|
236
|
+
height: 2.5rem;
|
|
237
|
+
span {
|
|
238
|
+
${Yt("H5","semibold")}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
${Wt.mobileS} {
|
|
242
|
+
height: auto;
|
|
243
|
+
}
|
|
244
|
+
`:a`
|
|
245
|
+
height: 3rem;
|
|
246
|
+
span {
|
|
247
|
+
${Yt("H4","semibold")}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
${Wt.mobileS} {
|
|
251
|
+
height: auto;
|
|
252
|
+
}
|
|
253
|
+
`}
|
|
254
|
+
`,lr=n((({color:e,className:r,size:n=18})=>t(Nt,{className:r,$size:n,$color:e,children:[i(Ot,{id:"inner1",$size:n-2,$borderWidth:2}),i(Pt,{id:"inner2",$size:n-2,$borderWidth:2}),i(jt,{id:"inner3",$size:n-2,$borderWidth:2}),i(It,{id:"inner4",$size:n-2,$borderWidth:2})]})))`
|
|
255
|
+
margin-right: 0.5rem;
|
|
256
|
+
${e=>{let t;switch(e.$buttonStyle){case"secondary":case"light":case"link":t=Et.Primary(e);break;case"disabled":t=Et.Neutral[3](e);break;default:t=Et.Neutral[8](e)}return a`
|
|
257
|
+
#inner1,
|
|
258
|
+
#inner2,
|
|
259
|
+
#inner3,
|
|
260
|
+
#inner4 {
|
|
261
|
+
border-color: ${t} transparent transparent transparent;
|
|
262
|
+
}
|
|
263
|
+
`}}
|
|
264
|
+
`,sr={Default:l.forwardRef(((e,r)=>{const{children:n,disabled:o=!1,loading:a=!1,styleType:l="default",...s}=e,c={$buttonStyle:o?"disabled":l,$buttonSizeStyle:"default"};return t(ar,{ref:r,"data-testid":s["data-testid"]||"button",disabled:o,...c,...s,children:[a&&i(lr,{...c}),i("span",{children:n})]})})),Small:l.forwardRef(((e,r)=>{const{children:n,disabled:o=!1,loading:a=!1,styleType:l="default",...s}=e,c={$buttonStyle:o?"disabled":l,$buttonSizeStyle:"small"};return t(ar,{ref:r,"data-testid":s["data-testid"]||"button",disabled:o,...c,...s,children:[a&&i(lr,{...c,size:16}),i("span",{children:n})]})}))},cr=n.div`
|
|
265
|
+
display: flex;
|
|
266
|
+
flex-direction: column;
|
|
267
|
+
align-items: center;
|
|
268
|
+
justify-content: center;
|
|
269
|
+
position: relative;
|
|
270
|
+
`,dr=n.img`
|
|
271
|
+
position: relative;
|
|
272
|
+
width: 25rem;
|
|
273
|
+
height: auto;
|
|
274
|
+
|
|
275
|
+
${Wt.mobileL} {
|
|
276
|
+
width: 20rem;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
${Wt.mobileM} {
|
|
280
|
+
width: 18rem;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
${Wt.mobileS} {
|
|
284
|
+
width: 15rem;
|
|
285
|
+
}
|
|
286
|
+
`,gr=n.div`
|
|
287
|
+
display: flex;
|
|
288
|
+
flex-direction: column;
|
|
289
|
+
align-items: center;
|
|
290
|
+
justify-content: center;
|
|
291
|
+
`,hr=n(tr.H1)`
|
|
292
|
+
margin: 2rem 0 1rem;
|
|
293
|
+
letter-spacing: -0.032rem !important;
|
|
294
|
+
text-align: center;
|
|
295
|
+
`,pr=n.div`
|
|
296
|
+
${Yt("Body","regular")} // Follow styling of Text.Body
|
|
297
|
+
color: ${Et.Neutral[1]}; // Follow styling of Text.Body
|
|
298
|
+
text-align: center;
|
|
299
|
+
|
|
300
|
+
strong {
|
|
301
|
+
${Zt("Body","semibold")}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
a {
|
|
305
|
+
${Yt("Body","semibold")}
|
|
306
|
+
color: ${Et.Primary};
|
|
307
|
+
|
|
308
|
+
:hover,
|
|
309
|
+
:active,
|
|
310
|
+
:focus {
|
|
311
|
+
color: ${Et.Secondary};
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
`,fr=n(sr.Default)`
|
|
315
|
+
margin: 4rem auto 0;
|
|
316
|
+
width: 21rem;
|
|
317
|
+
|
|
318
|
+
${Wt.mobileL} {
|
|
319
|
+
width: 100%;
|
|
320
|
+
margin: 2rem auto 0;
|
|
321
|
+
}
|
|
322
|
+
`,ur=({type:e,img:r,title:n,description:o,actionButton:a,additionalProps:l,...s})=>{const c=y.get(e),d=s["data-testid"]||"error-display",g=()=>{switch(e){case"maintenance":{const e=l;return l&&e.dateString?c.renderDescription(e):o||void 0}case"500":{const e=l;return l&&e.referenceId?c.renderDescription(e):o||void 0}default:return o||void 0}};if(!c)return null;const h={...c,...r&&{img:r},...n&&{title:n},...g()&&{description:g()}};return t(cr,{...s,"data-testid":d,children:[i(dr,{...h.img,alt:""}),t(gr,{children:[i(hr,{"data-testid":`${d}--title`,children:h.title}),i(pr,{"data-testid":`${d}--description`,children:"string"==typeof h.description?i("p",{children:h.description}):h.description})]}),a&&(()=>{const e={children:"Proceed",...a};return i(fr,{...e})})()]})};export{ur as ErrorDisplay};
|
|
323
|
+
//# sourceMappingURL=index.js.map
|