@lifesg/react-design-system 1.0.0-alpha.19 → 1.0.0-alpha.20
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.js +4 -4
- package/accordion/index.js.map +1 -1
- package/alert/index.js +42 -42
- package/alert/index.js.map +1 -1
- package/box-container/index.js +5 -5
- package/box-container/index.js.map +1 -1
- package/breadcrumb/index.js +2 -2
- package/breadcrumb/index.js.map +1 -1
- package/button/index.js +125 -125
- package/button/index.js.map +1 -1
- package/card/index.js +23 -23
- package/card/index.js.map +1 -1
- package/checkbox/index.js +3 -3
- package/checkbox/index.js.map +1 -1
- package/cjs/index.js +44 -46
- 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 +4 -0
- package/date-input/index.js +53 -49
- package/date-input/index.js.map +1 -1
- 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/{icon → design-token}/package.json +1 -1
- package/design-token/types.d.ts +7 -0
- package/error-display/index.js +92 -92
- package/error-display/index.js.map +1 -1
- package/feedback-rating/index.js +58 -58
- package/feedback-rating/index.js.map +1 -1
- package/footer/index.js +10 -10
- package/footer/index.js.map +1 -1
- package/form/index.js +144 -140
- package/form/index.js.map +1 -1
- package/icon-button/index.js +3 -3
- package/icon-button/index.js.map +1 -1
- package/index.d.ts +0 -1
- package/index.js +63 -65
- package/index.js.map +1 -1
- package/input/index.js +18 -14
- package/input/index.js.map +1 -1
- package/input-group/index.js +125 -121
- package/input-group/index.js.map +1 -1
- package/input-select/index.js +32 -28
- package/input-select/index.js.map +1 -1
- package/input-textarea/index.js +112 -108
- package/input-textarea/index.js.map +1 -1
- package/link-list/index.js +35 -35
- package/link-list/index.js.map +1 -1
- package/modal/index.js +15 -15
- package/modal/index.js.map +1 -1
- package/navbar/index.js +188 -188
- package/navbar/index.js.map +1 -1
- package/notification-banner/index.js +2 -2
- package/notification-banner/index.js.map +1 -1
- package/package.json +1 -1
- package/phone-number-input/index.js +126 -122
- package/phone-number-input/index.js.map +1 -1
- package/popover/index.js +7 -7
- package/popover/index.js.map +1 -1
- package/progress-indicator/index.js +7 -7
- package/progress-indicator/index.js.map +1 -1
- package/radio-button/index.js +7 -7
- package/radio-button/index.js.map +1 -1
- package/smart-app-banner/index.js +14 -14
- package/smart-app-banner/index.js.map +1 -1
- package/spec/design-token-spec/base-design-token-set.d.ts +2 -0
- package/text/index.js +18 -18
- 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 +10 -1
- package/timeline/index.js +8 -8
- package/timeline/index.js.map +1 -1
- package/timepicker/index.js +61 -57
- package/timepicker/index.js.map +1 -1
- package/toggle-button/index.js +109 -109
- package/toggle-button/index.js.map +1 -1
- package/tooltip/index.js +5 -5
- package/tooltip/index.js.map +1 -1
- package/unit-number/index.js +113 -109
- package/unit-number/index.js.map +1 -1
- package/util/utility-types.d.ts +3 -0
- package/icon/document-with-pencil-icon.d.ts +0 -5
- package/icon/icon-data.d.ts +0 -3
- package/icon/icon-style.d.ts +0 -1
- package/icon/icon.d.ts +0 -6
- package/icon/index.d.ts +0 -2
- package/icon/index.js +0 -8
- package/icon/index.js.map +0 -1
- package/icon/location-unknown-icon.d.ts +0 -5
- package/icon/mail-unread-icon.d.ts +0 -5
- package/icon/types.d.ts +0 -18
package/feedback-rating/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e,{jsxs as t,jsx as r}from"react/jsx-runtime";import n,{css as i,keyframes as a}from"styled-components";import o from"react";const l="https://assets.life.gov.sg/react-design-system/img/feedback-rating/feedback-rating-banner.png",c="Submit",d="Rate your experience",h={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},s={D1:{fontFamily:h.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:h.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:h.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:h.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:h.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:h.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:h.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:h.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:h.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:h.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:h.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:h.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:h.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:h.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}};var g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},u=Array.isArray,f="object"==typeof g&&g&&g.Object===Object&&g,p="object"==typeof self&&self&&self.Object===Object&&self,m=f||p||Function("return this")(),y=m.Symbol,S=y,F=Object.prototype,b=F.hasOwnProperty,$=F.toString,v=S?S.toStringTag:void 0;var B=function(e){var t=b.call(e,v),r=e[v];try{e[v]=void 0;var n=!0}catch(e){}var i=$.call(e);return n&&(t?e[v]=r:delete e[v]),i},H=Object.prototype.toString;var C=B,D=function(e){return H.call(e)},w=y?y.toStringTag:void 0;var x=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":w&&w in Object(e)?C(e):D(e)};var _=x,z=function(e){return null!=e&&"object"==typeof e};var L=function(e){return"symbol"==typeof e||z(e)&&"[object Symbol]"==_(e)},k=u,E=L,N=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,W=/^\w*$/;var j=function(e,t){if(k(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!E(e))||(W.test(e)||!N.test(e)||null!=t&&e in Object(t))};var O=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},A=x,T=O;var P,V=function(e){if(!T(e))return!1;var t=A(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},I=m["__core-js_shared__"],R=(P=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+P:"";var M=function(e){return!!R&&R in e},X=Function.prototype.toString;var G=V,Z=M,U=O,Y=function(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""},q=/^\[object .+?Constructor\]$/,J=Function.prototype,K=Object.prototype,Q=J.toString,ee=K.hasOwnProperty,te=RegExp("^"+Q.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var re=function(e){return!(!U(e)||Z(e))&&(G(e)?te:q).test(Y(e))},ne=function(e,t){return null==e?void 0:e[t]};var ie=function(e,t){var r=ne(e,t);return re(r)?r:void 0},ae=ie(Object,"create"),oe=ae;var le=function(){this.__data__=oe?oe(null):{},this.size=0};var ce=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},de=ae,he=Object.prototype.hasOwnProperty;var se=function(e){var t=this.__data__;if(de){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return he.call(t,e)?t[e]:void 0},ge=ae,ue=Object.prototype.hasOwnProperty;var fe=ae;var pe=le,me=ce,ye=se,Se=function(e){var t=this.__data__;return ge?void 0!==t[e]:ue.call(t,e)},Fe=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=fe&&void 0===t?"__lodash_hash_undefined__":t,this};function be(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}be.prototype.clear=pe,be.prototype.delete=me,be.prototype.get=ye,be.prototype.has=Se,be.prototype.set=Fe;var $e=be;var ve=function(){this.__data__=[],this.size=0};var Be=function(e,t){return e===t||e!=e&&t!=t};var He=function(e,t){for(var r=e.length;r--;)if(Be(e[r][0],t))return r;return-1},Ce=He,De=Array.prototype.splice;var we=He;var xe=He;var _e=He;var ze=ve,Le=function(e){var t=this.__data__,r=Ce(t,e);return!(r<0)&&(r==t.length-1?t.pop():De.call(t,r,1),--this.size,!0)},ke=function(e){var t=this.__data__,r=we(t,e);return r<0?void 0:t[r][1]},Ee=function(e){return xe(this.__data__,e)>-1},Ne=function(e,t){var r=this.__data__,n=_e(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function We(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}We.prototype.clear=ze,We.prototype.delete=Le,We.prototype.get=ke,We.prototype.has=Ee,We.prototype.set=Ne;var je=We,Oe=ie(m,"Map"),Ae=$e,Te=je,Pe=Oe;var Ve=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ie=function(e,t){var r=e.__data__;return Ve(t)?r["string"==typeof t?"string":"hash"]:r.map},Re=Ie;var Me=Ie;var Xe=Ie;var Ge=Ie;var Ze=function(){this.size=0,this.__data__={hash:new Ae,map:new(Pe||Te),string:new Ae}},Ue=function(e){var t=Re(this,e).delete(e);return this.size-=t?1:0,t},Ye=function(e){return Me(this,e).get(e)},qe=function(e){return Xe(this,e).has(e)},Je=function(e,t){var r=Ge(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function Ke(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ke.prototype.clear=Ze,Ke.prototype.delete=Ue,Ke.prototype.get=Ye,Ke.prototype.has=qe,Ke.prototype.set=Je;var Qe=Ke;function et(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(et.Cache||Qe),r}et.Cache=Qe;var tt=et;var rt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nt=/\\(\\)?/g,it=function(e){var t=tt(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(rt,(function(e,r,n,i){t.push(n?i.replace(nt,"$1"):r||e)})),t}));var at=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i},ot=u,lt=L,ct=y?y.prototype:void 0,dt=ct?ct.toString:void 0;var ht=function e(t){if("string"==typeof t)return t;if(ot(t))return at(t,e)+"";if(lt(t))return dt?dt.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r},st=ht;var gt=u,ut=j,ft=it,pt=function(e){return null==e?"":st(e)};var mt=L;var yt=function(e,t){return gt(e)?e:ut(e,t)?[e]:ft(pt(e))},St=function(e){if("string"==typeof e||mt(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var Ft=function(e,t){for(var r=0,n=(t=yt(t,e)).length;null!=e&&r<n;)e=e[St(t[r++])];return r&&r==n?e:void 0};var bt=function(e,t,r){var n=null==e?void 0:Ft(e,t);return void 0===n?r:n};const $t=(e,t,r)=>t?bt(r,t)||bt(e,t):r||e,vt=(e,t)=>{const r=t||e.defaultValue;return bt(e.collections,r)};var Bt;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme"}(Bt||(Bt={}));const Ht={collections:{base:s},defaultValue:"base"},Ct=e=>t=>{const r=t.theme,n=vt(Ht,r[Bt.textStyleScheme]);return r.options&&r.options.textStyle?$t(n,e,r.options.textStyle):$t(n,e)},Dt={D1:{fontFamily:Ct("D1.fontFamily"),fontSize:Ct("D1.fontSize"),fontWeight:Ct("D1.fontWeight"),lineHeight:Ct("D1.lineHeight"),letterSpacing:Ct("D1.letterSpacing")},D2:{fontFamily:Ct("D2.fontFamily"),fontSize:Ct("D2.fontSize"),fontWeight:Ct("D2.fontWeight"),lineHeight:Ct("D2.lineHeight"),letterSpacing:Ct("D2.letterSpacing")},D3:{fontFamily:Ct("D3.fontFamily"),fontSize:Ct("D3.fontSize"),fontWeight:Ct("D3.fontWeight"),lineHeight:Ct("D3.lineHeight"),letterSpacing:Ct("D3.letterSpacing")},D4:{fontFamily:Ct("D4.fontFamily"),fontSize:Ct("D4.fontSize"),fontWeight:Ct("D4.fontWeight"),lineHeight:Ct("D4.lineHeight"),letterSpacing:Ct("D4.letterSpacing")},DBody:{fontFamily:Ct("DBody.fontFamily"),fontSize:Ct("DBody.fontSize"),fontWeight:Ct("DBody.fontWeight"),lineHeight:Ct("DBody.lineHeight"),letterSpacing:Ct("DBody.letterSpacing")},H1:{fontFamily:Ct("H1.fontFamily"),fontSize:Ct("H1.fontSize"),fontWeight:Ct("H1.fontWeight"),lineHeight:Ct("H1.lineHeight"),letterSpacing:Ct("H1.letterSpacing")},H2:{fontFamily:Ct("H2.fontFamily"),fontSize:Ct("H2.fontSize"),fontWeight:Ct("H2.fontWeight"),lineHeight:Ct("H2.lineHeight"),letterSpacing:Ct("H2.letterSpacing")},H3:{fontFamily:Ct("H3.fontFamily"),fontSize:Ct("H3.fontSize"),fontWeight:Ct("H3.fontWeight"),lineHeight:Ct("H3.lineHeight"),letterSpacing:Ct("H3.letterSpacing")},H4:{fontFamily:Ct("H4.fontFamily"),fontSize:Ct("H4.fontSize"),fontWeight:Ct("H4.fontWeight"),lineHeight:Ct("H4.lineHeight"),letterSpacing:Ct("H4.letterSpacing")},H5:{fontFamily:Ct("H5.fontFamily"),fontSize:Ct("H5.fontSize"),fontWeight:Ct("H5.fontWeight"),lineHeight:Ct("H5.lineHeight"),letterSpacing:Ct("H5.letterSpacing")},H6:{fontFamily:Ct("H6.fontFamily"),fontSize:Ct("H6.fontSize"),fontWeight:Ct("H6.fontWeight"),lineHeight:Ct("H6.lineHeight"),letterSpacing:Ct("H6.letterSpacing")},Body:{fontFamily:Ct("Body.fontFamily"),fontSize:Ct("Body.fontSize"),fontWeight:Ct("Body.fontWeight"),lineHeight:Ct("Body.lineHeight"),letterSpacing:Ct("Body.letterSpacing")},BodySmall:{fontFamily:Ct("BodySmall.fontFamily"),fontSize:Ct("BodySmall.fontSize"),fontWeight:Ct("BodySmall.fontWeight"),lineHeight:Ct("BodySmall.lineHeight"),letterSpacing:Ct("BodySmall.letterSpacing")},XSmall:{fontFamily:Ct("XSmall.fontFamily"),fontSize:Ct("XSmall.fontSize"),fontWeight:Ct("XSmall.fontWeight"),lineHeight:Ct("XSmall.lineHeight"),letterSpacing:Ct("XSmall.letterSpacing")}},wt=e=>{switch(e){case 700:case"bold":return h.Bold;case 600:case"semibold":return h.Semibold;case 300:case"light":return h.Light;case 400:case"regular":return h.Regular;default:return""}},xt=(e,t)=>r=>{const n=Dt[e].fontFamily(r),a=Dt[e].fontWeight(r);return Object.values(h).includes(n)?i`
|
|
1
|
+
import e,{jsxs as t,jsx as r}from"react/jsx-runtime";import n,{css as i,keyframes as a}from"styled-components";import o from"react";const l="https://assets.life.gov.sg/react-design-system/img/feedback-rating/feedback-rating-banner.png",c="Submit",d="Rate your experience",h={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},s={D1:{fontFamily:h.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:h.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:h.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:h.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:h.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:h.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:h.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:h.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:h.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:h.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:h.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:h.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:h.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:h.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}};var g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},u=Array.isArray,f="object"==typeof g&&g&&g.Object===Object&&g,p="object"==typeof self&&self&&self.Object===Object&&self,m=f||p||Function("return this")(),y=m.Symbol,S=y,b=Object.prototype,F=b.hasOwnProperty,$=b.toString,v=S?S.toStringTag:void 0;var B=function(e){var t=F.call(e,v),r=e[v];try{e[v]=void 0;var n=!0}catch(e){}var i=$.call(e);return n&&(t?e[v]=r:delete e[v]),i},H=Object.prototype.toString;var C=B,D=function(e){return H.call(e)},w=y?y.toStringTag:void 0;var x=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":w&&w in Object(e)?C(e):D(e)};var _=x,z=function(e){return null!=e&&"object"==typeof e};var k=function(e){return"symbol"==typeof e||z(e)&&"[object Symbol]"==_(e)},L=u,E=k,N=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,W=/^\w*$/;var A=function(e,t){if(L(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!E(e))||(W.test(e)||!N.test(e)||null!=t&&e in Object(t))};var j=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},O=x,T=j;var P,R=function(e){if(!T(e))return!1;var t=O(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},V=m["__core-js_shared__"],I=(P=/[^.]+$/.exec(V&&V.keys&&V.keys.IE_PROTO||""))?"Symbol(src)_1."+P:"";var M=function(e){return!!I&&I in e},X=Function.prototype.toString;var G=R,Z=M,U=j,Y=function(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""},q=/^\[object .+?Constructor\]$/,J=Function.prototype,K=Object.prototype,Q=J.toString,ee=K.hasOwnProperty,te=RegExp("^"+Q.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var re=function(e){return!(!U(e)||Z(e))&&(G(e)?te:q).test(Y(e))},ne=function(e,t){return null==e?void 0:e[t]};var ie=function(e,t){var r=ne(e,t);return re(r)?r:void 0},ae=ie(Object,"create"),oe=ae;var le=function(){this.__data__=oe?oe(null):{},this.size=0};var ce=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},de=ae,he=Object.prototype.hasOwnProperty;var se=function(e){var t=this.__data__;if(de){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return he.call(t,e)?t[e]:void 0},ge=ae,ue=Object.prototype.hasOwnProperty;var fe=ae;var pe=le,me=ce,ye=se,Se=function(e){var t=this.__data__;return ge?void 0!==t[e]:ue.call(t,e)},be=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=fe&&void 0===t?"__lodash_hash_undefined__":t,this};function Fe(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Fe.prototype.clear=pe,Fe.prototype.delete=me,Fe.prototype.get=ye,Fe.prototype.has=Se,Fe.prototype.set=be;var $e=Fe;var ve=function(){this.__data__=[],this.size=0};var Be=function(e,t){return e===t||e!=e&&t!=t};var He=function(e,t){for(var r=e.length;r--;)if(Be(e[r][0],t))return r;return-1},Ce=He,De=Array.prototype.splice;var we=He;var xe=He;var _e=He;var ze=ve,ke=function(e){var t=this.__data__,r=Ce(t,e);return!(r<0)&&(r==t.length-1?t.pop():De.call(t,r,1),--this.size,!0)},Le=function(e){var t=this.__data__,r=we(t,e);return r<0?void 0:t[r][1]},Ee=function(e){return xe(this.__data__,e)>-1},Ne=function(e,t){var r=this.__data__,n=_e(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function We(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}We.prototype.clear=ze,We.prototype.delete=ke,We.prototype.get=Le,We.prototype.has=Ee,We.prototype.set=Ne;var Ae=We,je=ie(m,"Map"),Oe=$e,Te=Ae,Pe=je;var Re=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ve=function(e,t){var r=e.__data__;return Re(t)?r["string"==typeof t?"string":"hash"]:r.map},Ie=Ve;var Me=Ve;var Xe=Ve;var Ge=Ve;var Ze=function(){this.size=0,this.__data__={hash:new Oe,map:new(Pe||Te),string:new Oe}},Ue=function(e){var t=Ie(this,e).delete(e);return this.size-=t?1:0,t},Ye=function(e){return Me(this,e).get(e)},qe=function(e){return Xe(this,e).has(e)},Je=function(e,t){var r=Ge(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function Ke(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ke.prototype.clear=Ze,Ke.prototype.delete=Ue,Ke.prototype.get=Ye,Ke.prototype.has=qe,Ke.prototype.set=Je;var Qe=Ke;function et(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(et.Cache||Qe),r}et.Cache=Qe;var tt=et;var rt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nt=/\\(\\)?/g,it=function(e){var t=tt(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(rt,(function(e,r,n,i){t.push(n?i.replace(nt,"$1"):r||e)})),t}));var at=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i},ot=u,lt=k,ct=y?y.prototype:void 0,dt=ct?ct.toString:void 0;var ht=function e(t){if("string"==typeof t)return t;if(ot(t))return at(t,e)+"";if(lt(t))return dt?dt.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r},st=ht;var gt=u,ut=A,ft=it,pt=function(e){return null==e?"":st(e)};var mt=k;var yt=function(e,t){return gt(e)?e:ut(e,t)?[e]:ft(pt(e))},St=function(e){if("string"==typeof e||mt(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var bt=function(e,t){for(var r=0,n=(t=yt(t,e)).length;null!=e&&r<n;)e=e[St(t[r++])];return r&&r==n?e:void 0};var Ft=function(e,t,r){var n=null==e?void 0:bt(e,t);return void 0===n?r:n};const $t=(e,t,r)=>t?Ft(r,t)||Ft(e,t):r||e,vt=(e,t)=>{const r=t||e.defaultValue;return Ft(e.collections,r)};var Bt;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme",e.designTokenScheme="designTokenScheme"}(Bt||(Bt={}));const Ht={collections:{base:s},defaultValue:"base"},Ct=e=>t=>{const r=t.theme,n=vt(Ht,r[Bt.textStyleScheme]);return r.options&&r.options.textStyle?$t(n,e,r.options.textStyle):$t(n,e)},Dt={D1:{fontFamily:Ct("D1.fontFamily"),fontSize:Ct("D1.fontSize"),fontWeight:Ct("D1.fontWeight"),lineHeight:Ct("D1.lineHeight"),letterSpacing:Ct("D1.letterSpacing")},D2:{fontFamily:Ct("D2.fontFamily"),fontSize:Ct("D2.fontSize"),fontWeight:Ct("D2.fontWeight"),lineHeight:Ct("D2.lineHeight"),letterSpacing:Ct("D2.letterSpacing")},D3:{fontFamily:Ct("D3.fontFamily"),fontSize:Ct("D3.fontSize"),fontWeight:Ct("D3.fontWeight"),lineHeight:Ct("D3.lineHeight"),letterSpacing:Ct("D3.letterSpacing")},D4:{fontFamily:Ct("D4.fontFamily"),fontSize:Ct("D4.fontSize"),fontWeight:Ct("D4.fontWeight"),lineHeight:Ct("D4.lineHeight"),letterSpacing:Ct("D4.letterSpacing")},DBody:{fontFamily:Ct("DBody.fontFamily"),fontSize:Ct("DBody.fontSize"),fontWeight:Ct("DBody.fontWeight"),lineHeight:Ct("DBody.lineHeight"),letterSpacing:Ct("DBody.letterSpacing")},H1:{fontFamily:Ct("H1.fontFamily"),fontSize:Ct("H1.fontSize"),fontWeight:Ct("H1.fontWeight"),lineHeight:Ct("H1.lineHeight"),letterSpacing:Ct("H1.letterSpacing")},H2:{fontFamily:Ct("H2.fontFamily"),fontSize:Ct("H2.fontSize"),fontWeight:Ct("H2.fontWeight"),lineHeight:Ct("H2.lineHeight"),letterSpacing:Ct("H2.letterSpacing")},H3:{fontFamily:Ct("H3.fontFamily"),fontSize:Ct("H3.fontSize"),fontWeight:Ct("H3.fontWeight"),lineHeight:Ct("H3.lineHeight"),letterSpacing:Ct("H3.letterSpacing")},H4:{fontFamily:Ct("H4.fontFamily"),fontSize:Ct("H4.fontSize"),fontWeight:Ct("H4.fontWeight"),lineHeight:Ct("H4.lineHeight"),letterSpacing:Ct("H4.letterSpacing")},H5:{fontFamily:Ct("H5.fontFamily"),fontSize:Ct("H5.fontSize"),fontWeight:Ct("H5.fontWeight"),lineHeight:Ct("H5.lineHeight"),letterSpacing:Ct("H5.letterSpacing")},H6:{fontFamily:Ct("H6.fontFamily"),fontSize:Ct("H6.fontSize"),fontWeight:Ct("H6.fontWeight"),lineHeight:Ct("H6.lineHeight"),letterSpacing:Ct("H6.letterSpacing")},Body:{fontFamily:Ct("Body.fontFamily"),fontSize:Ct("Body.fontSize"),fontWeight:Ct("Body.fontWeight"),lineHeight:Ct("Body.lineHeight"),letterSpacing:Ct("Body.letterSpacing")},BodySmall:{fontFamily:Ct("BodySmall.fontFamily"),fontSize:Ct("BodySmall.fontSize"),fontWeight:Ct("BodySmall.fontWeight"),lineHeight:Ct("BodySmall.lineHeight"),letterSpacing:Ct("BodySmall.letterSpacing")},XSmall:{fontFamily:Ct("XSmall.fontFamily"),fontSize:Ct("XSmall.fontSize"),fontWeight:Ct("XSmall.fontWeight"),lineHeight:Ct("XSmall.lineHeight"),letterSpacing:Ct("XSmall.letterSpacing")}},wt=e=>{switch(e){case 700:case"bold":return h.Bold;case 600:case"semibold":return h.Semibold;case 300:case"light":return h.Light;case 400:case"regular":return h.Regular;default:return""}},xt=(e,t)=>r=>{const n=Dt[e].fontFamily(r),a=Dt[e].fontWeight(r);return Object.values(h).includes(n)?i`
|
|
2
2
|
font-family: ${wt(t)||wt(a)||n};
|
|
3
3
|
font-weight: normal !important;
|
|
4
4
|
`:i`
|
|
@@ -12,118 +12,118 @@ import e,{jsxs as t,jsx as r}from"react/jsx-runtime";import n,{css as i,keyframe
|
|
|
12
12
|
${i`
|
|
13
13
|
margin-bottom: ${o*(r?1.05:0)}rem;
|
|
14
14
|
`}
|
|
15
|
-
`},
|
|
15
|
+
`},kt=(e=!1,t=!1)=>t?i`
|
|
16
16
|
display: block;
|
|
17
17
|
`:e?i`
|
|
18
18
|
display: inline;
|
|
19
19
|
`:i`
|
|
20
20
|
display: block;
|
|
21
|
-
`;var
|
|
21
|
+
`;var Lt,Et={};Object.defineProperty(Et,"__esModule",{value:!0});var Nt=e;const Wt=e=>Nt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Nt.jsx("path",{d:"M4.25 17.5C3.764 17.5 3.35067 17.33 3.01 16.99C2.67 16.6493 2.5 16.236 2.5 15.75V4.25C2.5 3.764 2.67 3.35067 3.01 3.01C3.35067 2.67 3.764 2.5 4.25 2.5H9.208C9.444 2.5 9.649 2.58667 9.823 2.76C9.99633 2.934 10.083 3.139 10.083 3.375C10.083 3.611 9.99633 3.816 9.823 3.99C9.649 4.16333 9.444 4.25 9.208 4.25H4.25V15.75H15.75V10.792C15.75 10.556 15.8367 10.351 16.01 10.177C16.184 10.0037 16.389 9.917 16.625 9.917C16.861 9.917 17.066 10.0037 17.24 10.177C17.4133 10.351 17.5 10.556 17.5 10.792V15.75C17.5 16.236 17.33 16.6493 16.99 16.99C16.6493 17.33 16.236 17.5 15.75 17.5H4.25ZM7.5 12.5C7.33333 12.3333 7.25 12.1283 7.25 11.885C7.25 11.6423 7.33333 11.4377 7.5 11.271L14.521 4.25H12.708C12.472 4.25 12.2673 4.16333 12.094 3.99C11.92 3.816 11.833 3.611 11.833 3.375C11.833 3.139 11.92 2.934 12.094 2.76C12.2673 2.58667 12.472 2.5 12.708 2.5H16.625C16.861 2.5 17.066 2.58667 17.24 2.76C17.4133 2.934 17.5 3.139 17.5 3.375V7.292C17.5 7.528 17.4133 7.73267 17.24 7.906C17.066 8.08 16.861 8.167 16.625 8.167C16.389 8.167 16.184 8.08 16.01 7.906C15.8367 7.73267 15.75 7.528 15.75 7.292V5.479L8.708 12.521C8.54133 12.6877 8.34367 12.771 8.115 12.771C7.88567 12.771 7.68067 12.6807 7.5 12.5Z",fill:"currentColor"})});Wt.displayName="ExternalIcon",Lt=Et.ExternalIcon=Wt;const At={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"},jt=e=>t=>{const r=t.theme,n=vt(At,r[Bt.colorScheme]);return r.options&&r.options.color?$t(n,e,r.options.color):$t(n,e)},Ot={Brand:{1:jt("Brand.1"),2:jt("Brand.2"),3:jt("Brand.3"),4:jt("Brand.4"),5:jt("Brand.5"),6:jt("Brand.6")},Primary:jt("Primary"),PrimaryDark:jt("PrimaryDark"),Secondary:jt("Secondary"),Accent:{Light:{1:jt("Accent.Light.1"),2:jt("Accent.Light.2"),3:jt("Accent.Light.3"),4:jt("Accent.Light.4"),5:jt("Accent.Light.5"),6:jt("Accent.Light.6")},Dark:{1:jt("Accent.Dark.1"),2:jt("Accent.Dark.2"),3:jt("Accent.Dark.3")}},Neutral:{1:jt("Neutral.1"),2:jt("Neutral.2"),3:jt("Neutral.3"),4:jt("Neutral.4"),5:jt("Neutral.5"),6:jt("Neutral.6"),7:jt("Neutral.7"),8:jt("Neutral.8")},Validation:{Green:{Text:jt("Validation.Green.Text"),Icon:jt("Validation.Green.Icon"),Border:jt("Validation.Green.Border"),Background:jt("Validation.Green.Background")},Orange:{Text:jt("Validation.Orange.Text"),Icon:jt("Validation.Orange.Icon"),Border:jt("Validation.Orange.Border"),Background:jt("Validation.Orange.Background"),Badge:jt("Validation.Orange.Badge")},Red:{Text:jt("Validation.Red.Text"),Icon:jt("Validation.Red.Icon"),Border:jt("Validation.Red.Border"),Background:jt("Validation.Red.Background")}},Shadow:{Accent:jt("Shadow.Accent"),Red:jt("Shadow.Red")}};var Tt;!function(e){e.D1=n.h1`
|
|
22
22
|
${e=>i`
|
|
23
23
|
${zt("D1",e.weight,e.paragraph)}
|
|
24
|
-
color: ${
|
|
25
|
-
${
|
|
24
|
+
color: ${Ot.Neutral[1]};
|
|
25
|
+
${kt(e.inline,e.paragraph)}
|
|
26
26
|
`}
|
|
27
27
|
`,e.D2=n.h1`
|
|
28
28
|
${e=>i`
|
|
29
29
|
${zt("D2",e.weight,e.paragraph)}
|
|
30
|
-
color: ${
|
|
31
|
-
${
|
|
30
|
+
color: ${Ot.Neutral[1]};
|
|
31
|
+
${kt(e.inline,e.paragraph)}
|
|
32
32
|
`}
|
|
33
33
|
`,e.D3=n.h1`
|
|
34
34
|
${e=>i`
|
|
35
35
|
${zt("D3",e.weight,e.paragraph)}
|
|
36
|
-
color: ${
|
|
37
|
-
${
|
|
36
|
+
color: ${Ot.Neutral[1]};
|
|
37
|
+
${kt(e.inline,e.paragraph)}
|
|
38
38
|
`}
|
|
39
39
|
`,e.D4=n.h1`
|
|
40
40
|
${e=>i`
|
|
41
41
|
${zt("D4",e.weight,e.paragraph)}
|
|
42
|
-
color: ${
|
|
43
|
-
${
|
|
42
|
+
color: ${Ot.Neutral[1]};
|
|
43
|
+
${kt(e.inline,e.paragraph)}
|
|
44
44
|
`}
|
|
45
45
|
`,e.DBody=n.h1`
|
|
46
46
|
${e=>i`
|
|
47
47
|
${zt("DBody",e.weight,e.paragraph)}
|
|
48
|
-
color: ${
|
|
49
|
-
${
|
|
48
|
+
color: ${Ot.Neutral[1]};
|
|
49
|
+
${kt(e.inline,e.paragraph)}
|
|
50
50
|
`}
|
|
51
51
|
`,e.H1=n.h1`
|
|
52
52
|
${e=>i`
|
|
53
53
|
${zt("H1",e.weight,e.paragraph)}
|
|
54
|
-
color: ${
|
|
55
|
-
${
|
|
54
|
+
color: ${Ot.Neutral[1]};
|
|
55
|
+
${kt(e.inline,e.paragraph)}
|
|
56
56
|
`}
|
|
57
57
|
`,e.H2=n.h2`
|
|
58
58
|
${e=>i`
|
|
59
59
|
${zt("H2",e.weight,e.paragraph)}
|
|
60
|
-
color: ${
|
|
61
|
-
${
|
|
60
|
+
color: ${Ot.Neutral[1]};
|
|
61
|
+
${kt(e.inline,e.paragraph)}
|
|
62
62
|
`}
|
|
63
63
|
`,e.H3=n.h3`
|
|
64
64
|
${e=>i`
|
|
65
65
|
${zt("H3",e.weight,e.paragraph)}
|
|
66
|
-
color: ${
|
|
67
|
-
${
|
|
66
|
+
color: ${Ot.Neutral[1]};
|
|
67
|
+
${kt(e.inline,e.paragraph)}
|
|
68
68
|
`}
|
|
69
69
|
`,e.H4=n.h4`
|
|
70
70
|
${e=>i`
|
|
71
71
|
${zt("H4",e.weight,e.paragraph)}
|
|
72
|
-
color: ${
|
|
73
|
-
${
|
|
72
|
+
color: ${Ot.Neutral[1]};
|
|
73
|
+
${kt(e.inline,e.paragraph)}
|
|
74
74
|
`}
|
|
75
75
|
`,e.H5=n.h5`
|
|
76
76
|
${e=>i`
|
|
77
77
|
${zt("H5",e.weight,e.paragraph)}
|
|
78
|
-
color: ${
|
|
79
|
-
${
|
|
78
|
+
color: ${Ot.Neutral[1]};
|
|
79
|
+
${kt(e.inline,e.paragraph)}
|
|
80
80
|
`}
|
|
81
81
|
`,e.H6=n.h6`
|
|
82
82
|
${e=>i`
|
|
83
83
|
${zt("H6",e.weight,e.paragraph)}
|
|
84
|
-
color: ${
|
|
85
|
-
${
|
|
84
|
+
color: ${Ot.Neutral[1]};
|
|
85
|
+
${kt(e.inline,e.paragraph)}
|
|
86
86
|
`}
|
|
87
87
|
`,e.Body=n.p`
|
|
88
88
|
${e=>i`
|
|
89
89
|
${zt("Body",e.weight,e.paragraph)}
|
|
90
|
-
color: ${
|
|
91
|
-
${
|
|
90
|
+
color: ${Ot.Neutral[1]};
|
|
91
|
+
${kt(e.inline,e.paragraph)}
|
|
92
92
|
`}
|
|
93
93
|
`,e.BodySmall=n.p`
|
|
94
94
|
${e=>i`
|
|
95
95
|
${zt("BodySmall",e.weight,e.paragraph)}
|
|
96
|
-
color: ${
|
|
97
|
-
${
|
|
96
|
+
color: ${Ot.Neutral[1]};
|
|
97
|
+
${kt(e.inline,e.paragraph)}
|
|
98
98
|
`}
|
|
99
99
|
`,e.XSmall=n.span`
|
|
100
100
|
${e=>i`
|
|
101
101
|
${zt("XSmall",e.weight,e.paragraph)}
|
|
102
|
-
color: ${
|
|
103
|
-
${
|
|
102
|
+
color: ${Ot.Neutral[1]};
|
|
103
|
+
${kt(e.inline,e.paragraph)}
|
|
104
104
|
`}
|
|
105
|
-
`,e.Hyperlink={Default:e=>
|
|
105
|
+
`,e.Hyperlink={Default:e=>Vt({...e,textStyle:"Body"}),Small:e=>Vt({...e,textStyle:"BodySmall"})}}(Tt||(Tt={}));const Pt=n.a`
|
|
106
106
|
${e=>i`
|
|
107
107
|
${zt(e.textStyle,e.weight)}
|
|
108
|
-
color: ${
|
|
108
|
+
color: ${Ot.Primary};
|
|
109
109
|
text-decoration: none;
|
|
110
110
|
|
|
111
111
|
:hover,
|
|
112
112
|
:active,
|
|
113
113
|
:focus {
|
|
114
|
-
color: ${
|
|
114
|
+
color: ${Ot.Secondary};
|
|
115
115
|
|
|
116
116
|
svg {
|
|
117
|
-
color: ${
|
|
117
|
+
color: ${Ot.Secondary};
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
`}
|
|
121
|
-
`,
|
|
121
|
+
`,Rt=n(Lt)`
|
|
122
122
|
height: 1rem;
|
|
123
123
|
width: 1rem;
|
|
124
124
|
margin-left: 0.4rem;
|
|
125
125
|
vertical-align: middle;
|
|
126
|
-
`,
|
|
126
|
+
`,Vt=({external:e=!1,children:n,...i})=>t(Pt,{...i,children:[n,e&&r(Rt,{})]});var It;!function(e){e[e.Subpage=0]="Subpage",e[e.Domain=1]="Domain"}(It||(It={}));const Mt={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840},Xt=e=>Object.keys(Mt).reduce(((t,r)=>{const n=Mt[r];return t[r]=`@media screen and (${e}: ${n}px)`,t}),{}),Gt=Xt("max-width"),Zt=(Xt("min-width"),n.div`
|
|
127
127
|
display: inline-block;
|
|
128
128
|
position: relative;
|
|
129
129
|
width: ${e=>e.$size}px;
|
|
@@ -145,7 +145,7 @@ import e,{jsxs as t,jsx as r}from"react/jsx-runtime";import n,{css as i,keyframe
|
|
|
145
145
|
border-width: ${e=>e.$borderWidth}px;
|
|
146
146
|
border-style: solid;
|
|
147
147
|
border-radius: 50%;
|
|
148
|
-
border-color: ${e=>e.$color||
|
|
148
|
+
border-color: ${e=>e.$color||Ot.Neutral[8](e)}
|
|
149
149
|
transparent transparent transparent;
|
|
150
150
|
animation: ${Ut} 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
|
|
151
151
|
`,qt=n(Yt)`
|
|
@@ -174,21 +174,21 @@ import e,{jsxs as t,jsx as r}from"react/jsx-runtime";import n,{css as i,keyframe
|
|
|
174
174
|
// BUTTON STYLE + TEXT COLOR
|
|
175
175
|
// -----------------------------------------------------------------------------
|
|
176
176
|
${e=>{switch(e.$buttonStyle){case"secondary":return i`
|
|
177
|
-
background-color: ${
|
|
178
|
-
border: 1px solid ${
|
|
177
|
+
background-color: ${Ot.Neutral[8](e)};
|
|
178
|
+
border: 1px solid ${Ot.Primary(e)};
|
|
179
179
|
|
|
180
180
|
span {
|
|
181
|
-
color: ${
|
|
181
|
+
color: ${Ot.Primary(e)};
|
|
182
182
|
}
|
|
183
183
|
`;case"light":return i`
|
|
184
|
-
background-color: ${
|
|
185
|
-
border: 1px solid ${
|
|
184
|
+
background-color: ${Ot.Neutral[8](e)};
|
|
185
|
+
border: 1px solid ${Ot.Neutral[5](e)};
|
|
186
186
|
|
|
187
187
|
span {
|
|
188
|
-
color: ${
|
|
188
|
+
color: ${Ot.Primary(e)};
|
|
189
189
|
}
|
|
190
190
|
`;case"disabled":return i`
|
|
191
|
-
background-color: ${
|
|
191
|
+
background-color: ${Ot.Neutral[6](e)};
|
|
192
192
|
border: 1px solid transparent;
|
|
193
193
|
cursor: not-allowed;
|
|
194
194
|
|
|
@@ -197,7 +197,7 @@ import e,{jsxs as t,jsx as r}from"react/jsx-runtime";import n,{css as i,keyframe
|
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
span {
|
|
200
|
-
color: ${
|
|
200
|
+
color: ${Ot.Neutral[3](e)};
|
|
201
201
|
}
|
|
202
202
|
`;case"link":return i`
|
|
203
203
|
background-color: transparent;
|
|
@@ -208,16 +208,16 @@ import e,{jsxs as t,jsx as r}from"react/jsx-runtime";import n,{css as i,keyframe
|
|
|
208
208
|
box-shadow: none;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
color: ${
|
|
211
|
+
color: ${Ot.Primary};
|
|
212
212
|
:hover,
|
|
213
213
|
:active,
|
|
214
214
|
:focus {
|
|
215
215
|
span {
|
|
216
|
-
color: ${
|
|
216
|
+
color: ${Ot.Secondary};
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
`;default:return i`
|
|
220
|
-
background-color: ${
|
|
220
|
+
background-color: ${Ot.Primary(e)};
|
|
221
221
|
border: 1px solid transparent;
|
|
222
222
|
|
|
223
223
|
${Gt.mobileL} {
|
|
@@ -225,7 +225,7 @@ import e,{jsxs as t,jsx as r}from"react/jsx-runtime";import n,{css as i,keyframe
|
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
span {
|
|
228
|
-
color: ${
|
|
228
|
+
color: ${Ot.Neutral[8](e)};
|
|
229
229
|
}
|
|
230
230
|
`}}}
|
|
231
231
|
|
|
@@ -253,7 +253,7 @@ import e,{jsxs as t,jsx as r}from"react/jsx-runtime";import n,{css as i,keyframe
|
|
|
253
253
|
`}
|
|
254
254
|
`,er=n((({color:e,className:n,size:i=18})=>t(Zt,{className:n,$size:i,$color:e,children:[r(Yt,{id:"inner1",$size:i-2,$borderWidth:2}),r(qt,{id:"inner2",$size:i-2,$borderWidth:2}),r(Jt,{id:"inner3",$size:i-2,$borderWidth:2}),r(Kt,{id:"inner4",$size:i-2,$borderWidth:2})]})))`
|
|
255
255
|
margin-right: 0.5rem;
|
|
256
|
-
${e=>{let t;switch(e.$buttonStyle){case"secondary":case"light":case"link":t=
|
|
256
|
+
${e=>{let t;switch(e.$buttonStyle){case"secondary":case"light":case"link":t=Ot.Primary(e);break;case"disabled":t=Ot.Neutral[3](e);break;default:t=Ot.Neutral[8](e)}return i`
|
|
257
257
|
#inner1,
|
|
258
258
|
#inner2,
|
|
259
259
|
#inner3,
|
|
@@ -271,8 +271,8 @@ import e,{jsxs as t,jsx as r}from"react/jsx-runtime";import n,{css as i,keyframe
|
|
|
271
271
|
margin: 0;
|
|
272
272
|
}
|
|
273
273
|
`,nr=n.div`
|
|
274
|
-
border-top: 1px solid ${
|
|
275
|
-
border-bottom: 1px solid ${
|
|
274
|
+
border-top: 1px solid ${Ot.Neutral[5]};
|
|
275
|
+
border-bottom: 1px solid ${Ot.Neutral[5]};
|
|
276
276
|
display: flex;
|
|
277
277
|
flex-direction: row;
|
|
278
278
|
align-items: center;
|
|
@@ -305,9 +305,9 @@ import e,{jsxs as t,jsx as r}from"react/jsx-runtime";import n,{css as i,keyframe
|
|
|
305
305
|
`,mr=i`
|
|
306
306
|
width: 2.75rem;
|
|
307
307
|
height: 2.75rem;
|
|
308
|
-
color: ${
|
|
308
|
+
color: ${Ot.Primary};
|
|
309
309
|
${pr}:focus-visible + & {
|
|
310
|
-
outline: 0.125rem solid ${
|
|
310
|
+
outline: 0.125rem solid ${Ot.Primary};
|
|
311
311
|
outline-offset: -0.0625rem;
|
|
312
312
|
border-radius: 0.25rem;
|
|
313
313
|
}
|
|
@@ -315,15 +315,15 @@ import e,{jsxs as t,jsx as r}from"react/jsx-runtime";import n,{css as i,keyframe
|
|
|
315
315
|
${mr}
|
|
316
316
|
`,Sr=n(sr)`
|
|
317
317
|
${mr}
|
|
318
|
-
`,
|
|
318
|
+
`,br=n.label`
|
|
319
319
|
margin: 0 0.5rem;
|
|
320
320
|
line-height: 0;
|
|
321
321
|
@media screen and (max-width: 38rem) {
|
|
322
322
|
margin: 0 0.5rem;
|
|
323
323
|
}
|
|
324
|
-
`,
|
|
324
|
+
`,Fr=n.div`
|
|
325
325
|
display: flex;
|
|
326
326
|
justify-content: center;
|
|
327
327
|
margin: 0.5rem 1rem;
|
|
328
|
-
`,$r=e=>{const{description:n,rating:i,onRatingChange:a}=e,o=e=>{const t=`${e} star${1===e?"":"s"}`;return r(e<=i?Sr:yr,{"aria-label":t})};return r(
|
|
328
|
+
`,$r=e=>{const{description:n,rating:i,onRatingChange:a}=e,o=e=>{const t=`${e} star${1===e?"":"s"}`;return r(e<=i?Sr:yr,{"aria-label":t})};return r(Fr,{role:"radiogroup","aria-label":n,children:[...Array(or)].map(((e,n)=>{const l=n+1;return t(br,{children:[r(pr,{type:"radio",name:"star",checked:l===i,onChange:()=>(e=>{a(e)})(l)}),o(l)]},l)}))})},vr=e=>{const{imgSrc:n,buttonLabel:i,description:a,rating:o,className:h,onRatingChange:s,onSubmit:g}=e,u=n??l,f=a??d;return t(nr,{className:h,children:[u&&r(rr,{src:u,alt:"",onError:e=>e.currentTarget.style.display="none"}),t(ir,{children:[r(Tt.H3,{weight:"semibold",children:f}),r($r,{description:f,rating:o,onRatingChange:s}),r(ar,{disabled:!o,onClick:g,children:i??c})]})]})};export{vr as FeedbackRating};
|
|
329
329
|
//# sourceMappingURL=index.js.map
|